import{j as t,X as x,a2 as h,a4 as j}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f10.js";import{a as o}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f4.js";import{C as g,p as A,am as T,z as E}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f23.js";import{u as C}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f19.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f45.js";import{E as w}from"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f114.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f18.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f6.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f8.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f5.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f7.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f9.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f2.js";import"./v_7_4_2_15_728248e3-b235-44ed-9cd5-d3199fba8c4f3.js";function k({atendente:r}){var s;const{trasferir_atendimento:n}=g(),{close:m}=A(),{trasferirAtendimento:c}=T(),{user:l}=(s=E.getState().activeChat)==null?void 0:s.id,{language:e}=C(),[a,d]=o.useState(""),[i,p]=o.useState(!1),u=()=>{m(),n(r,a,i),c(l,r.assinatura)};return t.jsxs("div",{className:"flex flex-col gap-4 w-[500px]",children:[t.jsx(x,{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=>d(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(h,{estado:i,switchUpdate:()=>p(!i),id:"urgencia"})]})}),t.jsx(j,{name:e.botaoTransferir,funcao:u})]})}export{k as default};
