import{j as e,J as i,q as x,I as o}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9910.js";import{Q as h,aK as g,q as A,p as j}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9923.js";import{u as f}from"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9919.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c9918.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c996.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c998.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c994.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c99.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c995.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c997.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c999.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c992.js";import"./v_7_4_2_1_59f2e4f7-dc00-41f3-9942-b1c61b935c993.js";function M({actionID:n,acaoModel:r}){const{multi_atendente:a,atendente:l,getAtendimentoByDeviceID:m}=h(),{setAcaoPropriedades:d}=g[r](),{label:c}=A(),{close:p}=j(),{language:s}=f(),u=t=>{p(),t.userLogado?(d(n,{email:t.email}),o({type:"Success",message:s.emailDoAtendenteCapturado,position:"top-right"})):o({type:"Error",message:s.atendenteSemAcessoPremium,position:"top-right"})};return e.jsxs("div",{className:"flex flex-col gap-2 px-2",children:[e.jsx(i,{size:"18",weight:"600",children:s.selecioneAtendente}),a.map(t=>e.jsxs("div",{className:"flex flex-col px-2 py-1 border border-solid border-base-200 rounded-xl hoverShadown cursor-pointer",onClick:()=>u(t),children:[e.jsxs("span",{className:"flex gap-1 items-center",children:[e.jsx(x,{className:c.cor_primaria?"text-[var(--primaria)]":""}),e.jsxs(i,{size:"16",weight:"600",children:[t.assinatura," ",l.id===t.id&&"(Você)"]})]}),t.email.length>0&&e.jsxs("span",{children:["Email: ",e.jsx(i,{size:"14",weight:"500",children:t.email})]}),e.jsxs("span",{children:[s.atendimentosEmAndamento," ",e.jsx(i,{size:"14",weight:"500",children:m(t.user_id)})]})]}))]})}export{M as default};
