import{r as i,j as l}from"./35cfa646-9ab6-42a2-8c31-4c211f257271.fA9bAEYr.js";import{u as m}from"../../index.js";import"./332a5867-fdbb-43c7-ad56-a412ce956721.B_5Mff4E.js";import"./e5a2f637-302a-420f-94de-cacd45b03f37.Cj_ALb9R.js";import"./62ed8818-f728-41b3-9575-844940e5a1c4.DKdXhNFG.js";const c=(r,s)=>{var o;(o=document.querySelector(`aside[render-name="acao"] div[action-id="${s}"]`))==null||o.setAttribute("draggable",r.toString())};function j({id:r}){const o=m(e=>e.getContainer)(r),p=o(e=>e.insertEmoji),n=o(e=>e.emojiArea),u=o(e=>e.setUpdateText),a=i.useRef(null);return i.useEffect(()=>{const e=t=>{t.shiftKey&&t.key==="?"&&(t.preventDefault(),t.stopPropagation(),p("?"))};return a.current.addEventListener("keydown",e),()=>{var t;(t=a==null?void 0:a.current)==null||t.removeEventListener("keydown",e)}},[]),l.jsx("textarea",{id:r,ref:a,placeholder:n.placeholder,onClick:e=>e.stopPropagation(),onFocus:()=>c(!1,r),onBlur:()=>c(!0,r),value:n.text,onChange:e=>u(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",...n.heightCamp?{height:`${n.heightCamp}px`}:{}}})}export{j as default};
