import{j as e}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0286.js";import{p as u,k as x,B as h,C as g}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02821.js";import{h as j,u as _}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02833.js";import{u as f,c as v,P as N}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0285.js";import{_ as z,ao as w,I as A}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0288.js";import{a as n}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0282.js";import{k as E}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02867.js";import{u as P}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";const y=n.lazy(() => __vitePreload(()=>import(chrome.runtime.getURL("content/assets/js/v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b028194.js")),[]));function F(){return e.jsx(n.Suspense,{fallback:e.jsx(e.Fragment,{}),children:e.jsx(y,{})})}function H({userId:a}){const{send_atendimento:r}=u(),{variaveisWA:t}=j(),{open:m}=x(),{language:i}=f(),{close:s}=_(),{finalizarAtendimento:c}=h(),{icons_cor_primaria:o}=v(P(p=>({icons_cor_primaria:p.icons_cor_primaria}))),l=()=>{s(),m(e.jsx(F,{}))},d=async()=>{s(),await g("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(E,{className:o?"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:o?"text-[var(--primaria)]":"",size:20})}),e.jsx("span",{className:t.listagem.content5,children:i.edit})]})})})]})}export{H as default};
