import{j as t,v as x,F as h,J as j}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e10.js";import{a as o}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e4.js";import{L as g,n as A,O as T,z as E}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e22.js";import{u as v}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e19.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e46.js";import{E as w}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e113.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e18.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e8.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e5.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e7.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e6.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e2.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e3.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e9.js";function R({atendente:r}){var a;const{trasferir_atendimento:n}=g(),{close:m}=A(),{trasferirAtendimento:c}=T(),{user:l}=(a=E.getState().activeChat)==null?void 0:a.id,{language:e}=v(),[s,d]=o.useState(""),[i,p]=o.useState(!1),u=()=>{m(),n(r,s,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:s,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{R as default};
