import{j as e}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc35.js";import{u as o}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc347.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_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc323.js";import{u as y,e as z}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc34.js";import{u as k}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc3133.js";import{u as A}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc322.js";import{_ as m,aE as w,ak as N}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc37.js";import{r}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc3.js";import{w as E}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc3109.js";import{b as F}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc337.js";import{j as L,f as T}from"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc335.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc33.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc32.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc39.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc310.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc320.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc38.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc346.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc36.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc348.js";import"./v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc311.js";const O=r.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc3149.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_31_3bb7ccc9-19a6-4120-bc11-61c531f17fc3150.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};
