import{j as m}from"./20e36d67-8d83-4178-8f0b-a506491a9a10.auOyiB6P.js";import{r as i}from"./3bbebd79-6302-425b-9fe5-35fdbb439250.CAYVRFqY.js";import{a as p,s as u}from"../../index.js";import{s as c}from"./index.6cqiAEjd.js";import"./5620f695-e1ba-4d15-beef-d325b68e1ce2.C0Zqfgkc.js";import"./1c4b12bd-07a5-4e51-a942-9f4e016c7422.CTm5XBKq.js";import"./63b76abc-7191-4509-95e0-083c2d58bdf4.ChcTiR6y.js";import"./59fa0bd5-cf00-49ec-9e19-0c0ddb44c6dd.BTceWfoi.js";import"./cbcb672d-a3bf-4248-8bad-dfb9a25d4a62.9bbJlnql.js";import"./062d221a-2b06-4d4f-9e75-5263b7fbc0b8.BkIv7D6H.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};
