import{j as u}from"./c7825da4-a69c-492a-942a-b7bfc0f30267.DP1D4UdL.js";import{r as s}from"./438b07b8-1159-4030-b434-0c6e3e91a51d.CPQLWPDL.js";import{u as c,s as m}from"../../index.js";import{s as p}from"./index.B4BawKGx.js";import"./099f9e39-cb58-4252-b444-4ca177e87e27.BH3Q6F3T.js";const i=(t,n)=>{document.querySelector(`aside[render-name="acao"] div[action-id="${n}"]`)?.setAttribute("draggable",t.toString())};function h({id:t}){const r=c(e=>e.getContainer(t))(e=>e.emojiArea),o=s.useRef(null);return s.useEffect(()=>{const e=a=>{a.shiftKey&&a.key==="?"&&(a.preventDefault(),a.stopPropagation(),p(t,"?"))};return o.current.addEventListener("keydown",e),()=>{o?.current?.removeEventListener("keydown",e)}},[]),u.jsx("textarea",{id:t,ref:o,placeholder:r.placeholder,onClick:e=>e.stopPropagation(),onFocus:()=>i(!1,t),onBlur:()=>i(!0,t),value:r.text,onChange:e=>m(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{h as default};
