import{r as s,j as c}from"./2e913a89-1025-47cc-b0b2-d05ac7c313d5.nmG0cI1G.js";import{u as m,s as u}from"../../index.js";import{s as l}from"./index.B4BawKGx.js";import"./7b962976-1ce9-4543-aa0d-2ce6dcbfc702.DQQJh6Zh.js";import"./ba8a0249-8732-416f-81b3-3f219307cc9d.JczR_oFx.js";import"./aec866a5-0b30-4bb4-9c90-b417bf74921c.Br61r6ca.js";const i=(t,n)=>{var r;(r=document.querySelector(`aside[render-name="acao"] div[action-id="${n}"]`))==null||r.setAttribute("draggable",t.toString())};function j({id:t}){const r=m(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(),l(t,"?"))};return o.current.addEventListener("keydown",e),()=>{var a;(a=o==null?void 0:o.current)==null||a.removeEventListener("keydown",e)}},[]),c.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=>u(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};
