import{j as s}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a53.js";import{m as g,aT as x,r as h}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a525.js";import{u as A,e as f}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a54.js";import{E as i,v as j,I as o}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a58.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a52.js";import{u as S}from"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a556.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a55.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a56.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a59.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a510.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a57.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a5.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a520.js";import"./v_7_4_3_73_d3c9bac7-c74e-47f6-ac42-499f067843a543.js";function M({actionID:r,acaoModel:n}){const{multi_atendente:a,atendente:m,getAtendimentoByDeviceID:l}=g(),{setAcaoPropriedades:c}=x[n](),{close:d}=h(),{language:t}=A(),{icons_cor_primaria:p}=f(S(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)})]})]},`${String(e.user_id??"").trim()}#${String(e.whatsappID??"").trim()}#${String(e.email??"").trim().toLowerCase()}`))]})}export{M as default};
