import{j as e,_ as c,n as u,Z as f}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e10.js";import{R as x}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e5.js";import{a as t}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e4.js";import{C as p,o as v,B as h,U as b,z as g,A as j}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e22.js";import{a as _}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e19.js";import{b as L}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e8.js";import{f as m}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e21.js";import{N as C}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e31.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e18.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e7.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e6.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e2.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e3.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e9.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e46.js";const z=t.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e90.js")),[]));function R(){return e.jsx(t.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(z,{})})}function y(){const{menuContent:a,setMenuContent:s}=p(),{label:o}=_(),{open:l}=v(),{isNewModel:i}=h(),n=[{id:"perfilContato",ico:e.jsx(b,{size:20}),name:"perfilContato",funcao:()=>s("children","perfilContato")},{id:"respostasRapidas",ico:e.jsx(u,{size:20}),name:"RespostaRapida",funcao:()=>s("children","respostasRapidas")},{id:"anotacoes",ico:e.jsx(L,{size:20}),name:"Agendamentos",funcao:()=>s("children","anotacoes")},{id:"close",ico:e.jsx(f,{size:20}),name:"Close",funcao:r=>l(e.jsx(R,{}),{placement:"bottom"},r.target)}];return e.jsx("div",{className:i?"bg-[var(--background-default)]":"bg-[var(--panel-header-background)]",children:e.jsx("div",{className:"h-[64px] p-2 flex gap-2 items-center "+(o.cor_primaria?"fill-[var(--primaria)] text-[var(--primaria)]":"fill-[var(--panel-header-icon)] text-[var(--panel-header-icon)]"),children:n.map(r=>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)] ${o.cor_primaria?"text-[var(--primaria)]":"text-[var(--panel-header-icon)]"}`),children:r.ico})},r.id))})})}const M=t.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e91.js")).then(a=>a.i),[])),E=t.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e92.js")).then(a=>a.i),[]));function U(){var i,n;const{menuContent:a}=p(),s=(n=(i=g().activeChat)==null?void 0:i.id)==null?void 0:n.user,o={perfilContato:e.jsx(M,{}),respostasRapidas:e.jsx(E,{}),anotacoes:e.jsx(C,{userID:s,viwerModel:"res",id:"notes_quick_reply"})};t.useEffect(()=>{j.getState().getSeletor("menuLateral",d=>{d.insertAdjacentElement("afterend",m)})},[]);const l=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(y,{}),e.jsx("div",{className:"bg-[var(--background-default)]",style:{maxHeight:"calc(100vh - 120px)"},children:e.jsx(t.Suspense,{fallback:e.jsx(e.Fragment,{}),children:o[a.children]})})]})});return x.createPortal(l,m)}export{U as default};
