import{j as e,_ as c,p as f,a1 as h}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9910.js";import{R as v}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c995.js";import{a as n}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c994.js";import{E as p,q as x,p as L,D as C,C as u,X as g,x as b}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9923.js";import{G as j,c as _}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c998.js";import{g as m}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9921.js";import{N as z}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9932.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9918.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c996.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9919.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c997.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c99.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c999.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c992.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c993.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9947.js";const M=n.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9995.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_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9996.js")).then(a=>a.i),[])),k=n.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9997.js")).then(a=>a.i),[]));function X(){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{X as default};
