import{j as e}from"./v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c05.js";import{u as o}from"./v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c046.js";import{x as f,m as h,n as v,B as _,F as j,an as b,ao as g}from"./v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c023.js";import{u as y,e as z}from"./v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c04.js";import{u as k}from"./v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c0132.js";import{u as A}from"./v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c022.js";import{_ as m,aE as w,ak as F}from"./v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c07.js";import{r}from"./v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c0.js";import{w as N}from"./v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c0108.js";import{b as E}from"./v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c036.js";import{j as L,f as T}from"./v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c034.js";import"./v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c03.js";import"./v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c09.js";import"./v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c010.js";import"./v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c02.js";import"./v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c08.js";import"./v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c020.js";import"./v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c045.js";import"./v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c06.js";import"./v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c047.js";import"./v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c011.js";const O=r.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c0148.js")),[]));function R(){return e.jsx(r.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(O,{})})}const M=r.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_36_62a71d0d-e1f2-40c3-9412-27ba137864c0149.js")),[]));function S(){return e.jsx(r.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(M,{})})}function P(){const n=f(t=>t.chatActive_atentendes),a=y(t=>t.language),i=h(t=>t.open),c=v(t=>t.open),{assinatura:s,insertName:l}=_(o(t=>({assinatura:t.assinatura,insertName:t.insertName}))),{assistente:x,setAssistente:d}=j(o(t=>({assistente:t.assistente,setAssistente:t.setAssistente}))),u=b(t=>t.isEnabled),{icons_cor_primaria:p}=z(o(t=>({icons_cor_primaria:t.icons_cor_primaria})));return[{id:"signature",tooltip:a.menuFooter_Ass,children:e.jsx(w,{className:s.active?"text-[var(--wds-teal-500)]":p?"text-[var(--primaria)]":"",size:20}),func:()=>i(e.jsx(g,{}))},{id:"chat_assistant",tooltip:a.assistenteDeChat,children:e.jsx(L,{className:x.active?"text-[var(--wds-teal-500)]":p?"text-[var(--primaria)]":"",size:22}),func:()=>d("active",!x.active)},{id:"insert_name",tooltip:a.menuFooter_colarNome,children:e.jsx(E,{className:p?"text-[var(--primaria)]":"",strokeWidth:1,size:22}),func:()=>l()},{id:"replace_text",tooltip:a.menuFooter_replace_text,children:e.jsx(T,{className:u?"text-[var(--wds-teal-500)]":"text-[var(--primaria)]",size:22}),func:()=>i(e.jsx(R,{}))},{id:"view_attendants",tooltip:a.atendentesNesseChat,children:e.jsxs("div",{className:"text-[var(--button-round-background)] flex gap-1",children:[e.jsx("span",{children:e.jsx(F,{size:20})}),e.jsx("span",{className:"font-semibold text-lg !leading-[21px]",children:n.length})]}),func:t=>c(e.jsx(S,{}),{placement:"top"},t.target),disabled:n.length<=1}]}function ie(){const n=k(s=>s.chatOpenFooterFuncs),a=P().filter(s=>!s?.disabled&&n[s.id]),{openWithGetEvents:i}=A(o(s=>({openWithGetEvents:s.openWithGetEvents}))),c=a.map(s=>e.jsx("div",{className:"x100vrsf x1vqgdyp x78zum5 x6s0dn4 xpvyfi4","data-tip":s.tooltip,...i(s.tooltip,{placement:"top"}),children:e.jsx("button",{className:"xjb2p0i xk390pu x1ypdohk xjbqb8w x972fbf x10w94by x1qhh985 x14e42zd x78zum5 xh8yej3 x5yr21d x6s0dn4 xl56j7k x1c9tyrk xeusxvb x1pahc9y x1ertn4p xlkovuz xzwifym x16j0l1c x1y1aw1k xf159sx xwib8y2 xmzvs34 x1ry1tff xtnn1bt x9v5kkp xmw7ebm xrdum7p","data-tab":"10",type:"button",onClick:l=>{s.func(l),N(s.id)},children:e.jsx("span",{"aria-hidden":"true",children:s.children})})},s.id));return e.jsx("div",{className:"flex self-end",children:c})}export{P as RenderItensFooter,ie as default};
