import{j as s}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0286.js";import{p as x,aF as g}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02821.js";import{u as h,c as A}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0285.js";import{u as f}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02833.js";import{b as i,u as j,I as o}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0288.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0282.js";import{u as _}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02857.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0284.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0283.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02820.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b028.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02838.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0289.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02810.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0287.js";function k({actionID:r,acaoModel:n}){const{multi_atendente:a,atendente:m,getAtendimentoByDeviceID:c}=x(),{setAcaoPropriedades:l}=g[n](),{close:p}=f(),{language:t}=h(),{icons_cor_primaria:d}=A(_(e=>({icons_cor_primaria:e.icons_cor_primaria}))),u=e=>{p(),e.userLogado?(l(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:d?"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:c(e.user_id)})]})]}))]})}export{k as default};
