import{j as e}from"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f5.js";import{u as o}from"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f47.js";import{x as f,m as h,n as v,y as _,E as j,am as b,an as g}from"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f23.js";import{u as y,e as z}from"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f4.js";import{u as k}from"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f133.js";import{u as A}from"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f22.js";import{_ as m,aE as w,ak as N}from"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f7.js";import{r}from"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f.js";import{w as E}from"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f109.js";import{b as F}from"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f37.js";import{j as L,f as T}from"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f35.js";import"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f3.js";import"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f2.js";import"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f9.js";import"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f10.js";import"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f20.js";import"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f8.js";import"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f46.js";import"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f6.js";import"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f48.js";import"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f11.js";const O=r.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f149.js")),[]));function R(){return e.jsx(r.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(O,{})})}const M=r.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f150.js")),[]));function S(){return e.jsx(r.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(M,{})})}function P(){const n=f(t=>t.chatActive_atentendes),a=y(t=>t.language),i=h(t=>t.open),c=v(t=>t.open),{assinatura:s,insertName:l}=_(o(t=>({assinatura:t.assinatura,insertName:t.insertName}))),{assistente:x,setAssistente:d}=j(o(t=>({assistente:t.assistente,setAssistente:t.setAssistente}))),u=b(t=>t.isEnabled),{icons_cor_primaria:p}=z(o(t=>({icons_cor_primaria:t.icons_cor_primaria})));return[{id:"signature",tooltip:a.menuFooter_Ass,children:e.jsx(w,{className:s.active?"text-[var(--wds-teal-500)]":p?"text-[var(--primaria)]":"",size:20}),func:()=>i(e.jsx(g,{}))},{id:"chat_assistant",tooltip:a.assistenteDeChat,children:e.jsx(L,{className:x.active?"text-[var(--wds-teal-500)]":p?"text-[var(--primaria)]":"",size:22}),func:()=>d("active",!x.active)},{id:"insert_name",tooltip:a.menuFooter_colarNome,children:e.jsx(F,{className:p?"text-[var(--primaria)]":"",strokeWidth:1,size:22}),func:()=>l()},{id:"replace_text",tooltip:a.menuFooter_replace_text,children:e.jsx(T,{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=>c(e.jsx(S,{}),{placement:"top"},t.target),disabled:n.length<=1}]}function ie(){const n=k(s=>s.chatOpenFooterFuncs),a=P().filter(s=>!s?.disabled&&n[s.id]),{openWithGetEvents:i}=A(o(s=>({openWithGetEvents:s.openWithGetEvents}))),c=a.map(s=>e.jsx("div",{className:"x100vrsf x1vqgdyp x78zum5 x6s0dn4 xpvyfi4","data-tip":s.tooltip,...i(s.tooltip,{placement:"top"}),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:l=>{s.func(l),E(s.id)},children:e.jsx("span",{"aria-hidden":"true",children:s.children})})},s.id));return e.jsx("div",{className:"flex self-end",children:c})}export{P as RenderItensFooter,ie as default};
