import{r as s,j as u}from"./86c90f16-0b12-4fcb-9f07-86ab6af6b7b1.AWGCnt0w.js";import{u as p,s as c}from"../../index.js";import{s as m}from"./index.B4BawKGx.js";import"./08b64fe5-ab3b-4c7a-8007-468eb8d58383.B3Xih90K.js";import"./8c5d81d1-653a-40c3-8a2b-efb5be1d0a44.C5lf40W-.js";import"./120de60a-0ffa-4350-bb9e-c2a66147aa4a.CHVDsmLo.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};
