import{j as e,r}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f.js";import{u as c}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f46.js";import{y as h,m as f,n as v,z as _,F as j,ay as b,az as g,aA as y,ap as z}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f23.js";import{u as A,d as F}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f20.js";import{u as N}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f132.js";import{_ as x,aS as k,aw as w}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f11.js";import{b as L}from"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f36.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f8.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f7.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f19.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f4.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f3.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f2.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f10.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f6.js";import"./v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f9.js";const E=r.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f148.js")),[]));function O(){return e.jsx(r.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(E,{})})}const R=r.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_7_e8fda66a-fa64-447c-bcdc-42ba13285e7f149.js")),[]));function S(){return e.jsx(r.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(R,{})})}function T(){const n=h(t=>t.chatActive_atentendes),a=A(t=>t.language),i=f(t=>t.open),s=v(t=>t.open),{assinatura:d,insertName:p}=_(c(t=>({assinatura:t.assinatura,insertName:t.insertName}))),{assistente:l,setAssistente:m}=j(c(t=>({assistente:t.assistente,setAssistente:t.setAssistente}))),u=b(t=>t.isEnabled),{icons_cor_primaria:o}=F(c(t=>({icons_cor_primaria:t.icons_cor_primaria})));return[{id:"signature",tooltip:a.menuFooter_Ass,children:e.jsx(k,{className:d.active?"text-[var(--wds-teal-500)]":o?"text-[var(--primaria)]":"",size:20}),func:()=>i(e.jsx(g,{}))},{id:"chat_assistant",tooltip:a.assistenteDeChat,children:e.jsx(y,{className:l.active?"text-[var(--wds-teal-500)]":o?"text-[var(--primaria)]":"",size:22}),func:()=>m("active",!l.active)},{id:"insert_name",tooltip:a.menuFooter_colarNome,children:e.jsx(L,{className:o?"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(O,{}))},{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(S,{}),{placement:"top"},t.target),disabled:n.length<=1}]}function Z(){const n=N(s=>s.chatOpenFooterFuncs),i=T().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",{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:e.jsx("span",{"aria-hidden":"true",children:s.children})})},s.id));return e.jsx("div",{className:"flex self-end",children:i})}export{T as RenderItensFooter,Z as default};
