import{j as m}from"./4b903977-b269-4e5d-80c7-6ccd4edfc44b.CXLluKKh.js";import{r as i}from"./ef8a9734-6f10-44fa-987a-cb2781f2527c.CqRPSjAm.js";import{a as p,s as u}from"../../index.js";import{s as c}from"./index.6cqiAEjd.js";import"./7433640d-2a9f-4216-aa88-3edada1025fe.C0Zqfgkc.js";import"./4f7db02f-cfef-42f1-aca3-87ddf9f143f9.BzwAIBt7.js";import"./a4d1ab8c-f290-4aa1-95c8-ee166146ccd6.B-mGZpfC.js";import"./3f2a8e88-ccdc-43b1-9360-5a3403a34ffd.DafXowCB.js";import"./d49fcf60-e7e5-49f9-ac7a-1e19166178fb.DxyxIXoE.js";import"./52ed941a-5058-4fc3-8b32-0efd5d1fc845.DN8v6gPO.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};
