import{j as m}from"./9fde061d-c486-4976-9464-7198c3b19b29.1_3RW29Q.js";import{a as s}from"./de7308a2-ea2f-4d1e-bb0c-62d74c4832ff.CC2qRq32.js";import{a as p,s as c}from"../../index.js";import{s as l}from"./index.6cqiAEjd.js";import"./abf60f9c-2d94-4647-a0f3-e527029006be.C3MP-_Sz.js";import"./bb706f54-4ac3-4b89-adab-0b087546aee3.Cn17aUV2.js";import"./06be914e-e02b-4f5e-af99-1580549adc3f.NIGUFBhG.js";import"./e856a9de-c75e-4836-9430-fcb32ac87451.xXD7CyFa.js";import"./371677bf-5a33-4aba-8902-17e3bae28f1f.DOTBBtpN.js";import"./71a3f3bb-3a09-48a3-859a-80567eff0f92.BgL4M75h.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};
