import{j as s}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d15.js";import{x,aZ as g,n as h}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d123.js";import{u as A,e as f}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d14.js";import{p as i,k as j,I as o}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d17.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d1.js";import{u as _}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d146.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d13.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d19.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d110.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d12.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d18.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d120.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d16.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};
