import{j as m}from"./ff1761f3-7ac7-4db6-b87c-089232b93bd3.E8qYqNTw.js";import{r as i}from"./aaa7a7fd-224b-4b1f-ad88-9f3b70fd4f86.gbTC2lG0.js";import{a as p,s as u}from"../../index.js";import{s as c}from"./index.6cqiAEjd.js";import"./76913f01-39fe-47b1-9273-8a59d735f607.C0Zqfgkc.js";import"./0e40adfc-7384-42ac-af7b-2ce5fa0bf1f3.Brdxvojs.js";import"./65ed2e5a-0634-4498-8f4c-922d744ed712.CJ_pEw1H.js";import"./59c2715c-2c39-4e11-94d1-b606cb82260e.BgNCiAZl.js";import"./f2df44b4-a3e9-445e-b900-44f9dc849664.BtjVOTyv.js";import"./4215af16-6144-4769-997c-6c91f7c9528c.DHJz9GMK.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};
