import{j as e,_ as c,p as v,a0 as f}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080910.js";import{R as h}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508095.js";import{a as t}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508094.js";import{E as p,q as x,p as g,D as b,C as m,W as L,x as j}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080923.js";import{c as _}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508098.js";import{g as u}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080921.js";import{N as C}from"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080932.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080918.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080919.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508097.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b2250809.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508096.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508092.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508093.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b22508099.js";import"./v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080947.js";const R=t.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080996.js")),[]));function z(){return e.jsx(t.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(R,{})})}m.subscribe(a=>{a.activeChat.id.server==="@lid"&&p.getState().setMenuContent("children","respostasRapidas")});function M(){const{menuContent:a,setMenuContent:s}=p(),{label:i}=x(),{open:d}=g(),{isNewModel:o}=b(),{activeChat:n}=m(),l=[{id:"perfilContato",ico:e.jsx(L,{size:20}),name:"perfilContato",renderInLid:!1,funcao:()=>s("children","perfilContato")},{id:"respostasRapidas",ico:e.jsx(v,{size:20}),name:"RespostaRapida",renderInLid:!0,funcao:()=>s("children","respostasRapidas")},{id:"anotacoes",ico:e.jsx(_,{size:20}),name:"Agendamentos",renderInLid:!1,funcao:()=>s("children","anotacoes")},{id:"close",ico:e.jsx(f,{size:20}),name:"Close",renderInLid:!0,funcao:r=>d(e.jsx(z,{}),{placement:"bottom"},r.target)}];return e.jsx("div",{className:o?"bg-[var(--background-default)]":"bg-[var(--panel-header-background)]",children:e.jsx("div",{className:"h-[64px] p-2 flex gap-2 items-center "+(i.cor_primaria?"fill-[var(--primaria)] text-[var(--primaria)]":"fill-[var(--panel-header-icon)] text-[var(--panel-header-icon)]"),children:l.map(r=>n&&n.id.server==="@lid"&&!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.cor_primaria?"text-[var(--primaria)]":"text-[var(--panel-header-icon)]"}`),children:r.ico})},r.id))})})}const y=t.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080997.js")).then(a=>a.i),[])),E=t.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_1_21_73d2acb1-b7f3-47a2-a8fe-3772b225080998.js")).then(a=>a.i),[]));function G(){var o,n;const{menuContent:a}=p(),s=(n=(o=m().activeChat)==null?void 0:o.id)==null?void 0:n.user,i={perfilContato:e.jsx(y,{}),respostasRapidas:e.jsx(E,{}),anotacoes:e.jsx(C,{userID:s,viwerModel:"res",id:"notes_quick_reply"})};t.useEffect(()=>{j.getState().getSeletor("menuLateral",l=>{l.insertAdjacentElement("afterend",u)})},[]);const d=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(t.Suspense,{fallback:e.jsx(e.Fragment,{}),children:i[a.children]})})]})});return h.createPortal(d,u)}export{G as default};
