import{j as m}from"./4e72af16-2dfe-4245-a054-4de89930de0f.HspIsJ53.js";import{r as i}from"./ad44b22f-97c7-45d0-b59a-413065b4cdbe.BGZk5hUf.js";import{a as p,s as u}from"../../index.js";import{s as c}from"./index.6cqiAEjd.js";import"./6dad934c-7865-47ae-9348-0f22f658f4f7.C0Zqfgkc.js";import"./c61b49b0-4146-4ad4-aa18-b81740c62e69.BLiVLrdB.js";import"./0403568d-e5eb-4cfc-92b1-4526d8f2fb52.C6VufEub.js";import"./0730b93f-3143-4541-b424-601cc4e2aa81.EwhviQ2i.js";import"./c76aeb1d-c8d9-4c90-ac49-27e93211c0f1.DqV-3RZS.js";import"./3c8ea625-cdcf-4e8e-8772-2cb8e1403711.CxjalAR8.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};
