import{j as m}from"./3d807817-e816-4500-a9a7-ac5e78169597.DvnrkCrK.js";import{a as i}from"./83f0fd73-ea42-4f92-a76f-4edb15b122e6.DiKAzxfG.js";import{a as p,s as u}from"../../index.js";import{s as c}from"./index.6cqiAEjd.js";import"./7dd30cb7-9826-41ae-a6cf-480eea9dba3e.BIy9uQgi.js";import"./bb0cf78b-2065-447e-aa67-7e46ac570c2e.CtKGE-fM.js";import"./da0e1b11-fc73-40c8-a043-d7542bea1d9b.DvQ-608t.js";import"./e5b086ba-0129-450e-8373-b0fbebb9871c.B9ygI19o.js";import"./94b9af56-c425-4cfb-a77a-324b48aea7ad.CazJk8zJ.js";import"./e83096d2-0180-4048-95d6-6a839c11e2cf.DZDEIPZG.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};
