import{j as m}from"./a72bb423-9665-4384-b19f-0f86d7fa6a53.DdCOsrV1.js";import{a as i}from"./4696bbc3-6cfe-4288-8f61-075c725c52ef.DiKAzxfG.js";import{a as p,s as u}from"../../index.js";import{s as c}from"./index.6cqiAEjd.js";import"./37b70895-b6c7-4546-a8c8-62bf50aa2b9e.DXLhuare.js";import"./238770a7-eb8f-43ee-9948-a24642fcb357.DEb0wo5k.js";import"./abe405b3-b655-4462-bcc1-195666cd4aa8.B9ygI19o.js";import"./71fcc253-8ae5-484e-92b9-b3980dbbee0c.CmMH2Gxe.js";import"./47bdf853-663c-4eee-a6ff-8d67644884ee.BGaKFpUN.js";import"./08eb3043-32c8-4d8d-8894-5e6e78a5c46b.sKdyQkuf.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};
