import{j as e,r}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b.js";import{u as l}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b47.js";import{x as f,m as h,n as _,y as v,E as j,am as b,an as g}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b23.js";import{u as y,d as z}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b20.js";import{u as A}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b133.js";import{_ as d,aX as k,aC as w}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b11.js";import{w as N}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b109.js";import{b as F}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b37.js";import{j as E,f as L}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b35.js";import"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b8.js";import"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b7.js";import"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b19.js";import"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b4.js";import"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b3.js";import"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b2.js";import"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b10.js";import"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b6.js";import"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b9.js";const O=r.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b149.js")),[]));function R(){return e.jsx(r.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(O,{})})}const T=r.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b150.js")),[]));function M(){return e.jsx(r.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(T,{})})}function S(){const n=f(t=>t.chatActive_atentendes),a=y(t=>t.language),i=h(t=>t.open),s=_(t=>t.open),{assinatura:o,insertName:p}=v(l(t=>({assinatura:t.assinatura,insertName:t.insertName}))),{assistente:x,setAssistente:m}=j(l(t=>({assistente:t.assistente,setAssistente:t.setAssistente}))),u=b(t=>t.isEnabled),{icons_cor_primaria:c}=z(l(t=>({icons_cor_primaria:t.icons_cor_primaria})));return[{id:"signature",tooltip:a.menuFooter_Ass,children:e.jsx(k,{className:o.active?"text-[var(--wds-teal-500)]":c?"text-[var(--primaria)]":"",size:20}),func:()=>i(e.jsx(g,{}))},{id:"chat_assistant",tooltip:a.assistenteDeChat,children:e.jsx(E,{className:x.active?"text-[var(--wds-teal-500)]":c?"text-[var(--primaria)]":"",size:22}),func:()=>m("active",!x.active)},{id:"insert_name",tooltip:a.menuFooter_colarNome,children:e.jsx(F,{className:c?"text-[var(--primaria)]":"",strokeWidth:1,size:22}),func:()=>p()},{id:"replace_text",tooltip:a.menuFooter_replace_text,children:e.jsx(L,{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(w,{size:20})}),e.jsx("span",{className:"font-semibold text-lg !leading-[21px]",children:n.length})]}),func:t=>s(e.jsx(M,{}),{placement:"top"},t.target),disabled:n.length<=1}]}function te(){const n=A(s=>s.chatOpenFooterFuncs),i=S().filter(s=>!s?.disabled&&n[s.id]).map(s=>e.jsx("div",{className:"x100vrsf x1vqgdyp x78zum5 x6s0dn4 xpvyfi4 lg:tooltip","data-tip":s.tooltip,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:o=>{s.func(o),N(s.id)},children:e.jsx("span",{"aria-hidden":"true",children:s.children})})},s.id));return e.jsx("div",{className:"flex self-end",children:i})}export{S as RenderItensFooter,te as default};
