import{j as t}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0286.js";import{a as i}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0282.js";import{p as u,k as x,B as h,q as j}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02821.js";import{u as g}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0285.js";import{a as A,S as T,c as E}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b0288.js";import"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b02856.js";import{E as w}from"./v_7_4_3_48_026858c9-0735-4edd-ae06-f5f59030b028124.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-f5f59030b0287.js";function H({atendente:r}){const{trasferir_atendimento:o}=u(),{close:n}=x(),{trasferirAtendimento:m}=h(),{user:c}=j.getState().activeChat?.id,{language:e}=g(),[a,l]=i.useState(""),[s,d]=i.useState(!1),p=()=>{n(),o(r,a,s),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(w,{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:a,setText:f=>l(f),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:s,switchUpdate:()=>d(!s),id:"urgencia"})]})}),t.jsx(E,{name:e.botaoTransferir,funcao:p})]})}export{H as default};
