import{j as m}from"./89b55194-468e-4b30-86cd-4c277b203739.DNIwjpl2.js";import{r as i}from"./71a3646a-ebe8-445e-b2db-c2ebea39045d.4dCso91-.js";import{a as p,s as u}from"../../index.js";import{s as c}from"./index.6cqiAEjd.js";import"./237f9f23-af5e-4b90-a130-79c3ce02f226.B8_nURbH.js";import"./1648d0af-214d-4dd1-88b4-0172735358b4.BER1yHK7.js";import"./14f3f455-4c46-43b2-a15e-a0af3d1e268c.CHDjWRKX.js";import"./388dc74a-c373-40bd-a66f-7bef24f93b3b.DjcJQmk9.js";import"./59788672-7faa-49c6-ac0c-d26c42127dbf.VaCdhUl_.js";import"./8f5e5c66-5678-4b62-a285-4e9874b5697d.DGnGgHRl.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};
