import{_ as d,s as f,z as v}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0288.js";import{j as e}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0286.js";import{R as h}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b028.js";import{a as o}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0282.js";import{o as m,q as p,n as x}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02821.js";import{c as g}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0285.js";import{u as L}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02833.js";import{c as C}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02844.js";import{C as _}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02895.js";import{u as c}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02857.js";import{g as j}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0287.js";import{e as l}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02831.js";import{N as b}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02842.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0284.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0283.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02820.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02838.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0289.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02810.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02855.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02856.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02858.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02861.js";const z=o.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02892.js")),[]));function R(){return e.jsx(o.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(z,{})})}function M(){const{menuContent:a,setMenuContent:t}=m(c(r=>({menuContent:r.menuContent,setMenuContent:r.setMenuContent}))),{open:s}=L.getState(),n=p(r=>r.activeChat),{icons_cor_primaria:i}=g(c(r=>({icons_cor_primaria:r.icons_cor_primaria})));o.useEffect(()=>{n?.id?.server==="@lid"&&t("children","respostasRapidas")},[n,t]);const u=[{id:"perfilContato",ico:e.jsx(C,{size:20}),name:"perfilContato",renderInLid:!1,funcao:()=>t("children","perfilContato")},{id:"respostasRapidas",ico:e.jsx(f,{size:20}),name:"RespostaRapida",renderInLid:!0,funcao:()=>t("children","respostasRapidas")},{id:"anotacoes",ico:e.jsx(j,{size:20}),name:"Agendamentos",renderInLid:!1,funcao:()=>t("children","anotacoes")},{id:"config",ico:e.jsx(v,{size:20}),name:"Config",renderInLid:!0,funcao:r=>s(e.jsx(R,{}),{placement:"bottom"},r.target)},{id:"close",ico:e.jsx(_,{size:20}),name:"Close",renderInLid:!0,funcao:r=>t("children","close")}];return e.jsx("div",{className:"bg-[var(--background-default)]",children:e.jsx("div",{className:"h-[64px] p-2 flex gap-2 items-center "+(i?"fill-[var(--primaria)] text-[var(--primaria)]":"fill-[var(--panel-header-icon)] text-[var(--panel-header-icon)]"),children:u.map(r=>n&&n.id.server==="@lid"&&!n.accountLid&&!r.renderInLid?null:e.jsx("div",{onClick:r.funcao,className:r.id==="close"?"ml-auto":"",children:e.jsx("div",{className:"menu-item pulse cursor-pointer rounded-[10px] p-2 hover:!bg-[var(--primaria)] hover:!text-[var(--letra)] "+(a.children===r.id?"bg-[var(--primaria)] text-[var(--letra)]":`bg-[var(--menu-bar-item-background-active)] ${i?"text-[var(--primaria)]":"text-[var(--panel-header-icon)]"}`),children:r.ico})},r.id))})})}const y=o.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02893.js")).then(a=>a.i),[])),E=o.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02894.js")).then(a=>a.i),[]));function Z(){const{menuContent:a}=m(),t=p(i=>i.activeChat?.id?.user),s={perfilContato:e.jsx(y,{}),respostasRapidas:e.jsx(E,{}),anotacoes:e.jsx(b,{userID:t,viwerModel:"res",id:"notes_quick_reply"})};o.useEffect(()=>{x.getState().getSeletor("menuLateral",i=>{i.insertAdjacentElement("afterend",l)})},[]);const n=e.jsx("div",{className:"relative z-[100] h-full bg-[var(--background-default)] border-[var(--conversation-header-border)] border-solid shadow-sm border-l",children:e.jsxs("div",{style:{width:`${a.width}px`},children:[e.jsx(M,{}),e.jsx("div",{className:"bg-[var(--background-default)]",style:{maxHeight:"calc(100vh - 120px)"},children:e.jsx(o.Suspense,{fallback:e.jsx(e.Fragment,{}),children:s[a.children]})})]})});return h.createPortal(n,l)}export{Z as default};
