import{j as e,r}from"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b764581.js";import{u as l}from"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b76458146.js";import{y as f,m as h,n as _,z as v,F as j,az as b,aA as g,aB as y,aq as z}from"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b76458123.js";import{u as A,d as k}from"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b76458120.js";import{u as w}from"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b764581132.js";import{_ as d,aW as F,aB as N}from"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b76458111.js";import{w as L}from"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b764581108.js";import{b as E}from"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b76458136.js";import"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b7645818.js";import"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b7645817.js";import"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b76458119.js";import"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b7645814.js";import"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b7645813.js";import"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b7645812.js";import"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b76458110.js";import"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b7645816.js";import"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b7645819.js";const O=r.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b764581148.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_14_49a76bb0-8cf2-4908-a016-18478b764581149.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=A(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}=k(l(t=>({icons_cor_primaria:t.icons_cor_primaria})));return[{id:"signature",tooltip:a.menuFooter_Ass,children:e.jsx(F,{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(y,{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(E,{className:c?"text-[var(--primaria)]":"",strokeWidth:1,size:22}),func:()=>p()},{id:"replace_text",tooltip:a.menuFooter_replace_text,children:e.jsx(z,{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(N,{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 ee(){const n=w(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),L(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,ee as default};
