import{j as e,_ as c,p as f,a0 as h}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b10.js";import{R as v}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b5.js";import{a as n}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b4.js";import{E as p,q as x,p as L,D as C,C as u,W as g,x as b}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b23.js";import{G as j,c as _}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b8.js";import{g as m}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b21.js";import{N as z}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b32.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b18.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b19.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-2c37d755bb5b6.js";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b9.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";import"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b47.js";const M=n.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b95.js")),[]));function R(){return e.jsx(n.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(M,{})})}function I(a){return j({attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{d:"M6.2253 4.81108C5.83477 4.42056 5.20161 4.42056 4.81108 4.81108C4.42056 5.20161 4.42056 5.83477 4.81108 6.2253L10.5858 12L4.81114 17.7747C4.42062 18.1652 4.42062 18.7984 4.81114 19.1889C5.20167 19.5794 5.83483 19.5794 6.22535 19.1889L12 13.4142L17.7747 19.1889C18.1652 19.5794 18.7984 19.5794 19.1889 19.1889C19.5794 18.7984 19.5794 18.1652 19.1889 17.7747L13.4142 12L19.189 6.2253C19.5795 5.83477 19.5795 5.20161 19.189 4.81108C18.7985 4.42056 18.1653 4.42056 17.7748 4.81108L12 10.5858L6.2253 4.81108Z",fill:"currentColor"},child:[]}]})(a)}u.subscribe(a=>{a.activeChat.id.server==="@lid"&&p.getState().setMenuContent("children","respostasRapidas")});function y(){const{menuContent:a,setMenuContent:t}=p(),{label:s}=x(),{open:l}=L(),{isNewModel:o}=C(),{activeChat:i}=u(),d=[{id:"perfilContato",ico:e.jsx(g,{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(_,{size:20}),name:"Agendamentos",renderInLid:!1,funcao:()=>t("children","anotacoes")},{id:"config",ico:e.jsx(h,{size:20}),name:"Config",renderInLid:!0,funcao:r=>l(e.jsx(R,{}),{placement:"bottom"},r.target)},{id:"close",ico:e.jsx(I,{size:20}),name:"Close",renderInLid:!0,funcao:r=>t("children","close")}];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 "+(s.cor_primaria?"fill-[var(--primaria)] text-[var(--primaria)]":"fill-[var(--panel-header-icon)] text-[var(--panel-header-icon)]"),children:d.map(r=>i&&i.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)] ${s.cor_primaria?"text-[var(--primaria)]":"text-[var(--panel-header-icon)]"}`),children:r.ico})},r.id))})})}const E=n.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b96.js")).then(a=>a.i),[])),k=n.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b97.js")).then(a=>a.i),[]));function Z(){var o,i;const{menuContent:a}=p(),t=(i=(o=u().activeChat)==null?void 0:o.id)==null?void 0:i.user,s={perfilContato:e.jsx(E,{}),respostasRapidas:e.jsx(k,{}),anotacoes:e.jsx(z,{userID:t,viwerModel:"res",id:"notes_quick_reply"})};n.useEffect(()=>{b.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(n.Suspense,{fallback:e.jsx(e.Fragment,{}),children:s[a.children]})})]})});return v.createPortal(l,m)}export{Z as default};
