import{r as s,j as u}from"./80371c85-4aa7-432e-a7c3-6a037670446a.k3JKT82G.js";import{u as c,s as l}from"../../index.js";import{s as p}from"./index.B4BawKGx.js";const i=(t,n)=>{document.querySelector(`aside[render-name="acao"] div[action-id="${n}"]`)?.setAttribute("draggable",t.toString())};function g({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=>l(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{g as default};
