import{r as a,j as t}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b.js";import{x,m as f,O as h,v as j}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b23.js";import{u as g}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b20.js";import{D as A,J as T,Q as E}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b11.js";import"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b46.js";import{E as v}from"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b118.js";import"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b8.js";import"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b7.js";import"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b19.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";import"./v_7_4_3_17_17ffe662-3f12-45a2-ae5d-997b41d0d61b9.js";function P({atendente:r}){const{trasferir_atendimento:o}=x(),{close:n}=f(),{trasferirAtendimento:m}=h(),{user:c}=j.getState().activeChat?.id,{language:e}=g(),[s,l]=a.useState(""),[i,d]=a.useState(!1),p=()=>{n(),o(r,s,i),m(c,r.assinatura)};return t.jsxs("div",{className:"flex flex-col gap-4 w-[500px]",children:[t.jsx(A,{children:e.transferirAtendimentoTittle}),t.jsx(v,{id:"TransferirAtendimento_TextArea",titulo:t.jsxs(t.Fragment,{children:[e.transferirEmojiTittle," ",t.jsx("strong",{children:r.assinatura})]}),type:"textarea",className:"w-full",position:"right",placeholder:e.atendimentoEmojiAreaPlaceHolder,text:s,setText:u=>l(u),heightCamp:160}),t.jsx("label",{htmlFor:e.atendimentoUrgencia,children:t.jsxs("div",{className:"flex justify-between cursor-pointer items-center h-9 px-1 py-2",children:[t.jsx("span",{children:e.atendimentoComUrgencia}),t.jsx(T,{estado:i,switchUpdate:()=>d(!i),id:"urgencia"})]})}),t.jsx(E,{name:e.botaoTransferir,funcao:p})]})}export{P as default};
