import{j as s}from"./v_7_4_3_24_809764e8-6124-4214-97af-e5adc1a4f3045.js";import{x,aW as g,n as h}from"./v_7_4_3_24_809764e8-6124-4214-97af-e5adc1a4f30423.js";import{u as A,e as f}from"./v_7_4_3_24_809764e8-6124-4214-97af-e5adc1a4f3044.js";import{p as i,k as j,I as o}from"./v_7_4_3_24_809764e8-6124-4214-97af-e5adc1a4f3047.js";import"./v_7_4_3_24_809764e8-6124-4214-97af-e5adc1a4f304.js";import{u as _}from"./v_7_4_3_24_809764e8-6124-4214-97af-e5adc1a4f30447.js";import"./v_7_4_3_24_809764e8-6124-4214-97af-e5adc1a4f3043.js";import"./v_7_4_3_24_809764e8-6124-4214-97af-e5adc1a4f3042.js";import"./v_7_4_3_24_809764e8-6124-4214-97af-e5adc1a4f3049.js";import"./v_7_4_3_24_809764e8-6124-4214-97af-e5adc1a4f30410.js";import"./v_7_4_3_24_809764e8-6124-4214-97af-e5adc1a4f30420.js";import"./v_7_4_3_24_809764e8-6124-4214-97af-e5adc1a4f3048.js";import"./v_7_4_3_24_809764e8-6124-4214-97af-e5adc1a4f3046.js";function M({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{M as default};
