import{j as e,r}from"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab.js";import{u as l}from"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab47.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_16_fa303664-d39f-4aec-85e8-7c81b2445eab23.js";import{u as y,d as z}from"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab20.js";import{u as A}from"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab133.js";import{_ as d,aX as k,aC as w}from"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab11.js";import{w as N}from"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab109.js";import{b as F}from"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab37.js";import{j as E,f as L}from"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab35.js";import"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab8.js";import"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab7.js";import"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab19.js";import"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab4.js";import"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab3.js";import"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab2.js";import"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab10.js";import"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab6.js";import"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab9.js";const O=r.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab149.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_16_fa303664-d39f-4aec-85e8-7c81b2445eab150.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};
