import{r as s,j as u}from"./c6640363-bce8-4501-b1fd-9b4189ee21fd.gj7OqE4P.js";import{u as p,s as c}from"../../index.js";import{s as m}from"./index.B4BawKGx.js";import"./5fe43b06-2254-4855-85cc-6e6571e793bd.BICvoo_S.js";import"./28c57f82-dc8e-4e85-935d-333724655db4.4iirCu6a.js";import"./b08006f1-95e3-4cb1-ade3-bb319d0abf67.ugiuNotR.js";const i=(t,n)=>{document.querySelector(`aside[render-name="acao"] div[action-id="${n}"]`)?.setAttribute("draggable",t.toString())};function j({id:t}){const r=p(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(),m(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=>c(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{j as default};
