import{j as m}from"./0d719ebe-9bc8-4321-95e4-3b7ae7188d0c.r_NqTohD.js";import{r as i}from"./1ceaed43-a081-4611-842e-ea805b3572ef.S9cV1odN.js";import{a as p,s as u}from"../../index.js";import{s as c}from"./index.6cqiAEjd.js";import"./39ee25f2-649f-4e0f-8e4f-88b1d0c97171.C0Zqfgkc.js";import"./e07df691-e7a2-483e-b65f-8ba7d037bbba.BSLb7CTL.js";import"./59cf4917-67b3-41cf-91ca-ed2802721e1e.Dh54gVB2.js";import"./07e3a7a0-437d-4980-bd33-7bc9cc8928ac.Dy55EDz2.js";import"./5b81b262-1f49-431b-aca6-a83860a02744.HcwuK2cG.js";import"./ba3872c6-bdb3-4908-9077-0c0463223713.DDjQGcMk.js";const s=(t,n)=>{document.querySelector(`aside[render-name="acao"] div[action-id="${n}"]`)?.setAttribute("draggable",t.toString())};function C({id:t}){const r=p(e=>e.getContainer(t))(e=>e.emojiArea),a=i.useRef(null);return i.useEffect(()=>{const e=o=>{o.shiftKey&&o.key==="?"&&(o.preventDefault(),o.stopPropagation(),c(t,"?"))};return a.current.addEventListener("keydown",e),()=>{a?.current?.removeEventListener("keydown",e)}},[]),m.jsx("textarea",{id:t,ref:a,placeholder:r.placeholder,onClick:e=>e.stopPropagation(),onFocus:()=>s(!1,t),onBlur:()=>s(!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{C as default};
