import{j as e,m as l}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67155.js";import{g as m,u as r,b as c}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67154.js";import{x as p,B as u}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b671523.js";import{B as x}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b671547.js";import{t as h,o as g,p as a,S as n}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67157.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b6715.js";import{a as j}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67153.js";import{W as f,V as w}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67152.js";import{R as v}from"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67156.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67159.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b671510.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b67158.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b671520.js";import"./v_7_4_3_42_40a29d0b-9b36-4e19-997c-87ed486b671511.js";const b=()=>{const{whatsappID:t}=m.getState(),s=r.getState().language;f.MultiAtendimento("setAtendimento",{atendimentos:[],user:c.getState().user}),p.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 P(){const{language:t}=r(),{assinatura:s,setAssinatura:i,setMultiATendimento:o}=u();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{P as default};
