import{j as t,r as l}from"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b.js";import{u as o}from"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b62.js";import{C as u,s as h,p as f,q as v,D as b,J as j,aH as g,aI as _,aJ as y,az as z}from"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b24.js";import{u as A}from"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b20.js";import{u as N}from"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b131.js";import{_ as k,aP as w,at as F}from"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b11.js";import{V as L}from"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b149.js";import{b as M}from"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b38.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b7.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b9.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b6.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b8.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b19.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b4.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b3.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b2.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b10.js";const O=l.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b148.js")),[]));function R(){return t.jsx(l.Suspense,{fallback:t.jsx(t.Fragment,{}),children:t.jsx(O,{})})}function T(){const i=u(e=>e.chatActive_atentendes),n=h(e=>e.label),a=A(e=>e.language),s=f(e=>e.open),c=v(e=>e.open),{assinatura:x,insertName:p}=b(o(e=>({assinatura:e.assinatura,insertName:e.insertName}))),{assistente:r,setAssistente:d}=j(o(e=>({assistente:e.assistente,setAssistente:e.setAssistente}))),m=g(e=>e.isEnabled);return[{id:"signature",tooltip:a.menuFooter_Ass,children:t.jsx(w,{className:x.active?"text-[var(--wds-teal-500)]":n.cor_primaria?"text-[var(--primaria)]":"",size:20}),func:()=>s(t.jsx(_,{}))},{id:"chat_assistant",tooltip:a.assistenteDeChat,children:t.jsx(y,{className:r.active?"text-[var(--wds-teal-500)]":n.cor_primaria?"text-[var(--primaria)]":"",size:22}),func:()=>d("active",!r.active)},{id:"insert_name",tooltip:a.menuFooter_colarNome,children:t.jsx(M,{className:n.cor_primaria?"text-[var(--primaria)]":"",strokeWidth:1,size:22}),func:()=>p()},{id:"replace_text",tooltip:a.menuFooter_replace_text,children:t.jsx(z,{className:m?"text-[var(--wds-teal-500)]":"text-[var(--primaria)]",size:22}),func:()=>s(t.jsx(R,{}))},{id:"view_attendants",tooltip:a.atendentesNesseChat,children:t.jsxs("div",{className:"text-[var(--button-round-background)] flex gap-1",children:[t.jsx("span",{children:t.jsx(F,{size:20})}),t.jsx("span",{className:"font-semibold text-lg !leading-[21px]",children:i.length})]}),func:e=>c(t.jsx(L,{}),{placement:"top"},e.target),disabled:i.length<=1}]}function Z(){const i=N(s=>s.chatOpenFooterFuncs),a=T().filter(s=>!s?.disabled&&i[s.id]).map(s=>t.jsx("div",{className:"x100vrsf x1vqgdyp x78zum5 x6s0dn4 xpvyfi4 lg:tooltip","data-tip":s.tooltip,children:t.jsx("button",{onClick:s.func,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",children:t.jsx("span",{"aria-hidden":"true",children:s.children})})},s.id));return t.jsx("div",{className:"flex self-end",children:a})}export{T as RenderItensFooter,Z as default};
