import{j as m}from"./dd6e34a1-2dce-4b2f-a506-c3a3a97e6a60.BtGh0rES.js";import{a as s}from"./f1826ddd-a2d8-4fce-af3d-c958dcb59062.CC2qRq32.js";import{a as p,s as c}from"../../index.js";import{s as l}from"./index.6cqiAEjd.js";import"./bedc3458-6184-4e7f-bdf2-1a32ce9d7bc1.BX5SC7r6.js";import"./209d2e31-398d-4115-83ca-f4e360d8f14c.DB_X1qgl.js";import"./c4f8119f-a26b-4cdd-9922-48b96c4c3f7c.NIGUFBhG.js";import"./b7a206fb-30c2-4638-9063-0e98f38a14e0.CABIgbxA.js";import"./53ad9472-c185-4918-b159-c74d9c5aa814.ClFOar0Y.js";import"./67cae666-16ae-4928-a3d7-31b63441b60a.De5D-E6y.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 C({id:t}){const r=p(e=>e.getContainer(t))(e=>e.emojiArea),a=s.useRef(null);return s.useEffect(()=>{const e=o=>{o.shiftKey&&o.key==="?"&&(o.preventDefault(),o.stopPropagation(),l(t,"?"))};return a.current.addEventListener("keydown",e),()=>{var o;(o=a==null?void 0:a.current)==null||o.removeEventListener("keydown",e)}},[]),m.jsx("textarea",{id:t,ref:a,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{C as default};
