import{j as e,r as o}from"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b.js";import{C as p,A as x,p as u,s as h,q as j,aq as g,aA as v}from"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b24.js";import{u as f}from"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b20.js";import{_,ar as N,I as A,P as z}from"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b11.js";import{b as w}from"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b59.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b7.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b9.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b6.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b8.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b19.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b4.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b3.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b2.js";import"./v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b10.js";const E=o.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_2_25_48461181-0d14-4d2a-b9c3-5de50369a90b186.js")),[]));function y(){return e.jsx(o.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(E,{})})}function D({userId:i}){const{send_atendimento:r}=p(),{variaveisWA:t}=x(),{open:m}=u(),{label:s}=h(),{language:a}=f(),{close:n}=j(),{finalizarAtendimento:c}=g(),l=()=>{n(),m(e.jsx(y,{}))},d=async()=>{n(),await v("close_service")!==!0&&(A({type:"Success",message:a.fimAtendimento_Notif,position:"top-right"}),r(z(i),"Finalizado"),c(i))};return e.jsxs(e.Fragment,{children:[e.jsx("div",{className:t.listagem.content1+"hoverShadown",children:e.jsx("li",{tabIndex:0,className:t.listagem.content2+"!opacity-100","data-animate-dropdown-item":"true",children:e.jsxs("div",{className:t.listagem.content3,onClick:d,children:[e.jsx("div",{className:t.listagem.content4,children:e.jsx(w,{className:s.cor_primaria?"text-[var(--primaria)]":"",size:20})}),e.jsx("span",{className:t.listagem.content5,children:a.fimAtendimento_encerrar})]})})}),e.jsx("div",{className:t.listagem.content1+"hoverShadown",children:e.jsx("li",{tabIndex:0,className:t.listagem.content2+"!opacity-100","data-animate-dropdown-item":"true",children:e.jsxs("div",{className:t.listagem.content3,onClick:l,children:[e.jsx("div",{className:t.listagem.content4,children:e.jsx(N,{className:s.cor_primaria?"text-[var(--primaria)]":"",size:20})}),e.jsx("span",{className:t.listagem.content5,children:a.edit})]})})})]})}export{D as default};
