import{j as s}from"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b764581.js";import{y as x,bf as g,n as h}from"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b76458123.js";import{u as A,d as f}from"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b76458120.js";import{H as i,u as j,I as o}from"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b76458111.js";import{u as _}from"./v_7_4_3_14_49a76bb0-8cf2-4908-a016-18478b76458146.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";function T({actionID:r,acaoModel:n}){const{multi_atendente:a,atendente:m,getAtendimentoByDeviceID:l}=x(),{setAcaoPropriedades:c}=g[n](),{close:d}=h(),{language:t}=A(),{icons_cor_primaria:p}=f(_(e=>({icons_cor_primaria:e.icons_cor_primaria}))),u=e=>{d(),e.userLogado?(c(r,{email:e.email}),o({type:"Success",message:t.emailDoAtendenteCapturado,position:"top-right"})):o({type:"Error",message:t.atendenteSemAcessoPremium,position:"top-right"})};return s.jsxs("div",{className:"flex flex-col gap-2 px-2",children:[s.jsx(i,{size:"18",weight:"600",children:t.selecioneAtendente}),a.map(e=>s.jsxs("div",{className:"flex flex-col px-2 py-1 border border-solid border-base-200 rounded-xl hoverShadown cursor-pointer",onClick:()=>u(e),children:[s.jsxs("span",{className:"flex gap-1 items-center",children:[s.jsx(j,{className:p?"text-[var(--primaria)]":""}),s.jsxs(i,{size:"16",weight:"600",children:[e.assinatura," ",m.id===e.id&&"(Você)"]})]}),e.email.length>0&&s.jsxs("span",{children:["Email: ",s.jsx(i,{size:"14",weight:"500",children:e.email})]}),s.jsxs("span",{children:[t.atendimentosEmAndamento," ",s.jsx(i,{size:"14",weight:"500",children:l(e.user_id)})]})]}))]})}export{T as default};
