import{j as m}from"./3555d203-2538-4509-8b24-bc3613546676.CEUjTIxG.js";import{a as i}from"./22dd7e42-87be-4398-b1bd-5d76b303be77.DiKAzxfG.js";import{a as p,s as u}from"../../index.js";import{s as c}from"./index.6cqiAEjd.js";import"./02e7782e-41f9-47f3-a7e1-1cc15ddfad06.BlNUIreo.js";import"./78e4e052-9712-4753-97c5-8c13ab5d82b5.hEZ_3ehH.js";import"./a28668d0-723d-4ff0-a148-26e7159e0c61.B9ygI19o.js";import"./b7bf59fc-7460-48c4-8430-448b99c389f2.Dp7_4q2L.js";import"./5ef095bd-1088-472f-9deb-bd030454de5f.DfFmyfWN.js";import"./5a360292-97f8-4e7e-af1c-0c91c64bffd9.ChPk2P_C.js";const s=(t,n)=>{document.querySelector(`aside[render-name="acao"] div[action-id="${n}"]`)?.setAttribute("draggable",t.toString())};function C({id:t}){const r=p(e=>e.getContainer(t))(e=>e.emojiArea),a=i.useRef(null);return i.useEffect(()=>{const e=o=>{o.shiftKey&&o.key==="?"&&(o.preventDefault(),o.stopPropagation(),c(t,"?"))};return a.current.addEventListener("keydown",e),()=>{a?.current?.removeEventListener("keydown",e)}},[]),m.jsx("textarea",{id:t,ref:a,placeholder:r.placeholder,onClick:e=>e.stopPropagation(),onFocus:()=>s(!1,t),onBlur:()=>s(!0,t),value:r.text,onChange:e=>u(t,e.target.value),className:"textarea textarea-bordered textarea-sm w-full resize-none pr-7 leading-[1.1] px-2 pt-2 !min-h-0",style:{lineHeight:"1.3",...r.heightCamp?{height:`${r.heightCamp}px`}:{}}})}export{C as default};
