import{r as s,j as u}from"./09441ece-b6ca-4df9-9508-51a40e0c0a1b.AWGCnt0w.js";import{u as p,s as c}from"../../index.js";import{s as m}from"./index.B4BawKGx.js";import"./5a0192c7-f9ab-44df-aac2-1f9ad02a20a8.BPclnktB.js";import"./6d9a3aca-fca5-42c4-bc2c-2db063e4d98f.BXXv95AT.js";import"./7c568c1b-0913-41c6-a771-91916497f0c4.DRVNJP4T.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};
