import{j as s}from"./v_7_4_3_23_c059010f-ff6a-45e1-bfa2-f58a98f4a3915.js";import{x,aW as g,n as h}from"./v_7_4_3_23_c059010f-ff6a-45e1-bfa2-f58a98f4a39123.js";import{u as A,e as f}from"./v_7_4_3_23_c059010f-ff6a-45e1-bfa2-f58a98f4a3914.js";import{p as i,k as j,I as o}from"./v_7_4_3_23_c059010f-ff6a-45e1-bfa2-f58a98f4a3917.js";import"./v_7_4_3_23_c059010f-ff6a-45e1-bfa2-f58a98f4a391.js";import{u as _}from"./v_7_4_3_23_c059010f-ff6a-45e1-bfa2-f58a98f4a39147.js";import"./v_7_4_3_23_c059010f-ff6a-45e1-bfa2-f58a98f4a3913.js";import"./v_7_4_3_23_c059010f-ff6a-45e1-bfa2-f58a98f4a3912.js";import"./v_7_4_3_23_c059010f-ff6a-45e1-bfa2-f58a98f4a3919.js";import"./v_7_4_3_23_c059010f-ff6a-45e1-bfa2-f58a98f4a39110.js";import"./v_7_4_3_23_c059010f-ff6a-45e1-bfa2-f58a98f4a39120.js";import"./v_7_4_3_23_c059010f-ff6a-45e1-bfa2-f58a98f4a3918.js";import"./v_7_4_3_23_c059010f-ff6a-45e1-bfa2-f58a98f4a3916.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};
