import{j as e}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67155.js";import{u as o}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b671546.js";import{x as f,m as h,n as v,B as _,F as j,an as b,ao as g}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b671523.js";import{u as y,e as z}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67154.js";import{u as k}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b6715132.js";import{u as A}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b671522.js";import{_ as m,aE as w,ak as F}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67157.js";import{r}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b6715.js";import{w as N}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b6715108.js";import{b as E}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b671536.js";import{j as L,f as T}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b671534.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67153.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67159.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b671510.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67152.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67158.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b671520.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b671545.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67156.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b671547.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b671511.js";const O=r.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b6715148.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_42_40a29d0b-9b36-4e19-997c-87ed486b6715149.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(E,{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(F,{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),N(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};
