import{j as e,r as o}from"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb.js";import{x,ac as u,m as h,n as g,O as j,ah as _}from"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb23.js";import{u as f,d as v}from"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb20.js";import{_ as N,aA as z,I as A,P as w}from"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb11.js";import{k as E}from"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb60.js";import{u as P}from"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb47.js";import"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb8.js";import"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb7.js";import"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb19.js";import"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb4.js";import"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb3.js";import"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb2.js";import"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb10.js";import"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb6.js";import"./v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb9.js";const y=o.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_15_0399e866-74c7-4569-9f5c-4e0b92137cdb185.js")),[]));function F(){return e.jsx(o.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(y,{})})}function G({userId:i}){const{send_atendimento:r}=x(),{variaveisWA:t}=u(),{open:c}=h(),{language:a}=f(),{close:s}=g(),{finalizarAtendimento:m}=j(),{icons_cor_primaria:n}=v(P(p=>({icons_cor_primaria:p.icons_cor_primaria}))),l=()=>{s(),c(e.jsx(F,{}))},d=async()=>{s(),await _("close_service")!==!0&&(A({type:"Success",message:a.fimAtendimento_Notif,position:"top-right"}),r(w(i),"Finalizado"),m(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(E,{className:n?"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(z,{className:n?"text-[var(--primaria)]":"",size:20})}),e.jsx("span",{className:t.listagem.content5,children:a.edit})]})})})]})}export{G as default};
