import{j as e,m as l}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b.js";import{h as m,u as r,a as c}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b20.js";import{x as u,y as p}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b23.js";import{B as x}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b48.js";import{t as h,D as g,H as a,J as n}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b11.js";import{a as j}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b7.js";import{W as f,V as w}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b19.js";import{R as v}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b9.js";import"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b8.js";import"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b4.js";import"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b3.js";import"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b2.js";import"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b10.js";import"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b6.js";const b=()=>{const{whatsappID:t}=m.getState(),s=r.getState().language;f.MultiAtendimento("setAtendimento",{atendimentos:[],user:c.getState().user}),u.setState({multi_atendente:[],chatActive_atentendes:[],atendimentos:[]}),j.get(`${w.webSocket["multi-atendimento"]}/ws/api/reset/${t}`,{headers:{"Content-Type":"application/json",accept:"application/json"}}),h.success(s.reset_success)};function L(){const{language:t}=r(),{assinatura:s,setAssinatura:i,setMultiATendimento:o}=p();return e.jsxs("div",{className:"grid gap-6 !w-[550px]",children:[e.jsxs("div",{children:[e.jsx(g,{children:t.ass_title}),e.jsx(a,{children:t.ass_text})]}),e.jsxs("label",{className:"input input-bordered border border-solid input-sm flex items-center gap-2 w-full",children:[e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",className:"h-4 w-4 opacity-70",children:e.jsx("path",{d:"M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6ZM12.735 14c.618 0 1.093-.561.872-1.139a6.002 6.002 0 0 0-11.215 0c-.22.578.254 1.139.872 1.139h9.47Z"})}),e.jsx("input",{type:"text",placeholder:t.ass_place,value:s.name,onChange:d=>i("name",d.target.value),className:"grow"})]}),e.jsxs("div",{className:"flex justify-between cursor-pointer items-center hover:bg-[var(--dropdown-background-hover)] h-9 px-1 py-2 rounded",children:[e.jsx(a,{children:t.ass_active}),e.jsx(n,{estado:s.active,switchUpdate:()=>i("active",!s.active),id:"assinatura"})]}),e.jsxs("div",{className:"flex justify-between cursor-pointer items-center hover:bg-[var(--dropdown-background-hover)] h-9 px-1 py-2 rounded",children:[e.jsx(a,{children:t.identificarAtendenteChat}),e.jsx(n,{estado:s.multiAtendimento,switchUpdate:o,id:"multi-atendimento"})]}),e.jsxs("div",{className:"flex justify-between items-center w-full p-2 h-12 rounded-md border border-transparent transition-all duration-200",children:[e.jsxs("div",{className:"flex flex-col justify-center",children:[e.jsx("span",{className:"text-sm font-medium leading-none text-foreground",children:t.reset_atendimento}),e.jsx("span",{className:"text-[12px] text-muted-foreground mt-1",children:t.reset_dados_atendimento})]}),e.jsx("div",{className:"flex justify-between items-center h-9 px-1 py-2 rounded transition-colors group",children:e.jsx(l.div,{whileTap:{scale:.95},children:e.jsxs(x,{size:"sm",onClick:b,className:"h-7 px-3 text-xs font-semibold text-white bg-red-600 hover:bg-red-700 shadow-sm border border-red-700/20 gap-2 transition-all",children:[e.jsx(v,{size:14,className:"text-white/90"}),t.reset_resetar]})})})]}),e.jsx("span",{className:"text-sm text-red-500",children:t.atendimentosNaoFinalizados})]})}export{L as default};
