import{r as s,j as c}from"./88292db1-b0bf-4020-84e8-c67e7f95ec5b.D7NY-xPU.js";import{u as m,s as u}from"../../index.js";import{s as l}from"./index.B4BawKGx.js";import"./5b821acd-2cb2-41cd-a334-1fb4c2edd833.D1O8x7cn.js";import"./3f821edb-14ca-4d30-9704-2f6c7293724f.BPUefdEF.js";import"./a497bd40-65e0-4826-98e3-d7cb4830e030.D3LkOPxB.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};
