import{r as s,j as c}from"./0dbad563-2f06-4e38-a3dc-27a8264d3b76.DVitnfmq.js";import{u as m,s as u}from"../../index.js";import{s as l}from"./index.B4BawKGx.js";import"./96925352-673d-4fc1-9ae6-c4caec31e61c.BAK6bdel.js";import"./a5fe8d6a-5bd8-44ba-9ca3-cbbb9cf3c8be.DxJS0PdL.js";import"./424f74cb-998b-48f0-a7f2-2cd07c945a41.BPXkgXni.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};
