import{j as t,r as l}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc.js";import{u as o}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc62.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_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc24.js";import{u as A}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc20.js";import{u as N}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc131.js";import{_ as k,aP as w,at as F}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc11.js";import{V as L}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc149.js";import{b as M}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc38.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc7.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc9.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc6.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc8.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc19.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc4.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc3.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc2.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc10.js";const O=l.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc148.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};
