import{j as e}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d15.js";import{x,ad as u,m as g,n as h,P as j,ai as _}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d123.js";import{u as f,e as v,P as N}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d14.js";import{_ as z,ai as w,I as A}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d17.js";import{r as o}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d1.js";import{k as P}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d159.js";import{u as E}from"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d146.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d13.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d19.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d110.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d12.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d18.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d120.js";import"./v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d16.js";const y=o.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_40_a1f3a86e-ffe7-4e8d-af35-2585c84ec3d1185.js")),[]));function F(){return e.jsx(o.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(y,{})})}function B({userId:a}){const{send_atendimento:r}=x(),{variaveisWA:t}=u(),{open:m}=g(),{language:i}=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&&(A({type:"Success",message:i.fimAtendimento_Notif,position:"top-right"}),r(N(a),"Finalizado"),c(a))};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(P,{className:n?"text-[var(--primaria)]":"",size:20})}),e.jsx("span",{className:t.listagem.content5,children:i.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(w,{className:n?"text-[var(--primaria)]":"",size:20})}),e.jsx("span",{className:t.listagem.content5,children:i.edit})]})})})]})}export{B as default};
