import{j as e,r as o}from"./v_7_4_3_6_3dde09db-99f5-4187-8a7e-903456f0360f.js";import{y as u,aj as x,m as g,n as h,Q as j,aq as _}from"./v_7_4_3_6_3dde09db-99f5-4187-8a7e-903456f0360f23.js";import{u as f,d as v}from"./v_7_4_3_6_3dde09db-99f5-4187-8a7e-903456f0360f20.js";import{_ as N,au as z,I as w,P as A}from"./v_7_4_3_6_3dde09db-99f5-4187-8a7e-903456f0360f11.js";import{k as y}from"./v_7_4_3_6_3dde09db-99f5-4187-8a7e-903456f0360f59.js";import{u as E}from"./v_7_4_3_6_3dde09db-99f5-4187-8a7e-903456f0360f46.js";import"./v_7_4_3_6_3dde09db-99f5-4187-8a7e-903456f0360f8.js";import"./v_7_4_3_6_3dde09db-99f5-4187-8a7e-903456f0360f7.js";import"./v_7_4_3_6_3dde09db-99f5-4187-8a7e-903456f0360f19.js";import"./v_7_4_3_6_3dde09db-99f5-4187-8a7e-903456f0360f4.js";import"./v_7_4_3_6_3dde09db-99f5-4187-8a7e-903456f0360f3.js";import"./v_7_4_3_6_3dde09db-99f5-4187-8a7e-903456f0360f2.js";import"./v_7_4_3_6_3dde09db-99f5-4187-8a7e-903456f0360f10.js";import"./v_7_4_3_6_3dde09db-99f5-4187-8a7e-903456f0360f6.js";import"./v_7_4_3_6_3dde09db-99f5-4187-8a7e-903456f0360f9.js";const P=o.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_6_3dde09db-99f5-4187-8a7e-903456f0360f185.js")),[]));function F(){return e.jsx(o.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(P,{})})}function B({userId:i}){const{send_atendimento:r}=u(),{variaveisWA:t}=x(),{open:m}=g(),{language:a}=f(),{close:s}=h(),{finalizarAtendimento:c}=j(),{icons_cor_primaria:n}=v(E(p=>({icons_cor_primaria:p.icons_cor_primaria}))),l=()=>{s(),m(e.jsx(F,{}))},d=async()=>{s(),await _("close_service")!==!0&&(w({type:"Success",message:a.fimAtendimento_Notif,position:"top-right"}),r(A(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(y,{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{B as default};
