import{j as m}from"./773247f3-1949-4c22-8cfb-871ac199fb7d.D3tlKWF8.js";import{a as s}from"./80256efe-7657-4e86-a787-3a5fd603a748.CC2qRq32.js";import{a as p,s as c}from"../../index.js";import{s as l}from"./index.6cqiAEjd.js";import"./4a0e9a81-8e8b-4161-a060-236d0eab758a.jH4eI3mQ.js";import"./83b4ebe5-1fd0-4992-8086-c22d87ed770d.ClRrp0rp.js";import"./afbe9a2c-558a-4583-8e0b-ed179f638036.NIGUFBhG.js";import"./71a76447-4966-46ec-b88e-5ae140e7bd9a.BXHe5XKZ.js";import"./4a415e05-3d89-4bc0-8d21-b65c5fb82a0e.DKgJqhcM.js";import"./0ba57069-1f5e-443d-b149-05e6a21ebe1f.B7BfMgt9.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};
