import{j as m}from"./b88ccfae-34fa-4cdb-9e39-421b0d33a912.B5kNVuoR.js";import{r as i}from"./8fad2510-989d-47e8-b45d-329dc3efd27e.QebfNFDM.js";import{a as p,s as u}from"../../index.js";import{s as c}from"./index.6cqiAEjd.js";import"./cce0add5-e68f-41e0-af14-e232e58f3d6c.C0Zqfgkc.js";import"./beb09b81-b1b4-4907-9a7e-389003244f2c.CdPm_NXK.js";import"./a56befbe-dc0f-4060-9944-0c49bb0bdad8.BOUJIqqs.js";import"./970566ba-5835-4003-b4c7-d560f91444e5.eXa2RSbJ.js";import"./035448ff-3806-429f-8c74-515f49676192.DW5y17Hb.js";import"./51b06891-1b0f-48e1-b37a-578b757973e7.DZ2NRQM4.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};
