import{j as e}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc.js";import{C as x,bm as h,s as g,q as A}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc24.js";import{u as f}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc20.js";import{$ as i,z as j,I as o}from"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc11.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc7.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc9.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc6.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc8.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc19.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc4.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc3.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc2.js";import"./v_7_4_2_27_fac7f92f-33f6-4d26-8a6f-b87b9638d3cc10.js";function O({actionID:n,acaoModel:r}){const{multi_atendente:a,atendente:m,getAtendimentoByDeviceID:l}=x(),{setAcaoPropriedades:d}=h[r](),{label:c}=g(),{close:p}=A(),{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(j,{className:c.cor_primaria?"text-[var(--primaria)]":""}),e.jsxs(i,{size:"16",weight:"600",children:[t.assinatura," ",m.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:l(t.user_id)})]})]}))]})}export{O as default};
