import{j as m}from"./f3ebac85-864e-42dc-a659-2806087e38db.BAGqt0vZ.js";import{r as i}from"./568be58d-1896-4466-82b7-58fa062d3d2b.DxbklC8L.js";import{a as p,s as u}from"../../index.js";import{s as c}from"./index.6cqiAEjd.js";import"./8ffc78f0-749f-460d-aa4a-f564a26f67d7.C0Zqfgkc.js";import"./ae172fec-5465-426d-970b-8aaa4d989875.74VhvXvf.js";import"./6a12e818-0a80-4bfa-9588-a3247b3fb2e1.BrN0ga_2.js";import"./637d169e-861e-4ae6-abea-2758829c5b7f.8xGVmhvV.js";import"./48f0ea31-78af-4d7d-9a39-1fcffd2cfe1f.eDZiHdIK.js";import"./aa3c92e9-efa0-4484-83a9-869d529b1a1c.C4Om4Lq8.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};
