import{j as m}from"./a5f526de-da5f-479a-b47d-61bdb3e6f0b6.CfLEhvO6.js";import{a as i}from"./a12ebf00-228a-4505-90c3-731141055e49.BjN0DH1t.js";import{a as p,s as u}from"../../index.js";import{s as c}from"./index.6cqiAEjd.js";import"./ff03022f-eab5-45ca-a2c0-1f0b9e75af33.C4YbHzbX.js";import"./0f74652c-a560-4f25-b864-7db1c24b3dc7.Cdt37bdh.js";import"./f5c54029-9fc4-4762-b3c0-7a53347c4d23.B9ygI19o.js";import"./8d3bf143-33b3-45ba-867b-6be145ccccaf.CNyJLWbZ.js";import"./8c1be74c-6eee-4d4c-93b4-57a96b567016.D9myXJ8k.js";import"./740eb74f-0d41-42d4-941a-f77cbccccfa7.CWsqm7F9.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};
