import{j as e,_ as i,ax as I,aD as z}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf10.js";import{a as r}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf4.js";import{u as C}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf26.js";import{u as w}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf27.js";import{u as S}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf34.js";import{A as k,y as M,o as P,B as D,p as E,q as O,aj as R}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf23.js";import{u as T}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf19.js";import{u as V}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf71.js";import{L as F,M as B}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf132.js";import{a as q,N as G}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf33.js";import{T as U}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf133.js";import{d as W}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf41.js";import{I as H}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf108.js";import{c as J}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf8.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf18.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf6.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf7.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf9.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf5.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf2.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf3.js";const K=r.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf129.js")),[]));function Q(){return e.jsx(r.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(K,{})})}const X=r.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf130.js")),[]));function Y(){return e.jsx(r.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(X,{})})}const Z=r.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf131.js")),[]));function $({userID:t}){return e.jsx(r.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(Z,{userID:t})})}function Le(){var l,c;const{language:t,idioma:d}=T(),{getProduct:u}=C(),{notifications:p}=w(),{notes:x}=q(),{agendamentos:f}=S(),{variaveisWA:g}=k(),a=(c=(l=M().activeChat)==null?void 0:l.id)==null?void 0:c.user,{open:o}=P(),{setMenuContent:h}=D(),{open:j}=E(),{label:_}=O(),{menuVerticalOpen:n,setMenuVerticalOpen:v}=V(),b=[{id:1,title:t.modal_createAReminder_title,ico:e.jsx(U,{className:"w-6 h-6 text-[var(--primaria)] mb-[3px]"}),tam:p.filter(s=>s.user_id===a).length,funcao:()=>o(e.jsx(F,{userID:a}))},{id:2,title:t.note_list_title,ico:e.jsx(J,{size:24,className:"text-[var(--primaria)]"}),tam:x.filter(s=>s.userID===a).length,funcao:()=>o(e.jsxs(r.Suspense,{fallback:e.jsx(e.Fragment,{}),children:[" ",e.jsx(G,{userID:a,viwerModel:"modal",id:"notes_chat_open"})," "]}))},{id:3,title:t.modal_schedulingCallendar_title,ico:e.jsx(W,{className:"w-6 h-6 text-[var(--primaria)]"}),funcao:()=>o(e.jsx(Y,{}))},{id:4,title:t.agendamento_title,ico:e.jsx(I,{className:"w-6 h-6 text-[var(--primaria)]"}),tam:f.filter(s=>s.userID===a).length,funcao:()=>o(e.jsx(B,{userId:a}))},{id:5,title:t.modal_contactProfile,ico:e.jsx(R,{className:"w-6 h-6 text-[var(--primaria)]"}),funcao:()=>h("children","perfilContato")},{id:6,title:t.modal_orders_title,ico:e.jsx(z,{className:"w-6 h-6 text-[var(--primaria)]"}),tam:a?u(a).length:0,disabled:d!=="pt",funcao:()=>o(e.jsx($,{userID:a}))},{id:7,title:"Agente IA",ico:e.jsx(H,{color:"var(--primaria)"}),disabled:_.ia_wascript.length===0,funcao:s=>j(e.jsx(Q,{}),{placement:"right"},s.target)}];return e.jsx("ul",{children:e.jsxs("div",{className:"z-[999] absolute bottom-4 left-4 gap-2 flex items-center flex-col-reverse",children:[e.jsx("li",{className:"lg:tooltip  lg:tooltip-right","data-tip":t.chat_horizontal_btn,children:e.jsx("div",{className:"pulse cursor-pointer bg-[var(--dropdown-background)] rounded-full w-9 h-9 shadow-lg flex items-center justify-center",onClick:()=>v(!n),children:e.jsx("span",{children:e.jsx("img",{src:chrome.runtime.getURL("label/icons/icon.png"),className:"w-10 rounded-full"})})})}),n&&b.map(({id:s,title:L,ico:A,tam:m,disabled:N,funcao:y})=>!N&&e.jsx("li",{className:"lg:tooltip lg:tooltip-right","data-tip":L,children:e.jsxs("div",{className:"pulse cursor-pointer bg-[var(--dropdown-background)] rounded-[10px] hover:rounded-full w-9 h-9 shadow-lg flex items-center justify-center relative",onClick:y,children:[e.jsx("span",{children:A}),m>0&&e.jsx("div",{className:"absolute -top-1 -right-1",children:e.jsx("span",{className:g.aba+" bg-[var(--primaria)] !text-[var(--letra)] p-1",children:m})})]})},s))]})})}export{Le as default};
