import{j as m}from"./b36d97aa-80d4-4b65-93b9-b58f5b2a13e9.BsYNDQPD.js";import{r as i}from"./d87839bb-e2bc-48b4-b67d-1eb433409cd5.8PUOyUqv.js";import{a as p,s as u}from"../../index.js";import{s as c}from"./index.6cqiAEjd.js";import"./a9860043-dc0a-4a50-879a-c729847710dd.B8_nURbH.js";import"./d1f06c4a-28de-4fe6-8307-ee19d106ed02.D-XmQ74-.js";import"./ff2895e3-9fdb-46e4-87b6-4a742017c9ed.CHDSY5-p.js";import"./2793b3a7-e768-45f9-86c5-f1c60fc2c23b.CZNyQ0Pg.js";import"./f508b904-cd16-42b7-a817-b7f86d5f204d.C9IAwhsR.js";import"./9604c129-61a4-4a64-a6e4-c0dec0078cc2.DCjXnq4r.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};
