import{j as m}from"./6abd3f6d-5915-464f-a3cb-3d9768f2f00b.DKbqw7xL.js";import{a as i}from"./ba47b11f-93c3-40d9-92d3-517b5cac37d2.DiKAzxfG.js";import{a as p,s as u}from"../../index.js";import{s as c}from"./index.6cqiAEjd.js";import"./3ed4cd0f-ec07-4e31-afc1-ce64ffcd5464.JPR2e1ux.js";import"./cd158c8f-89d5-4587-a0da-70a28122abb6.Cy8NaIIt.js";import"./ab0fa902-5fd7-4602-ba29-02cd60ac750c.B9ygI19o.js";import"./dcfdaf80-13ac-4e1c-8d28-18700a0c1a10.DgRnpLVA.js";import"./99e57599-182b-45aa-ad77-ab31b4543d77.CoxT2IFn.js";import"./4e27391c-200b-4f29-9b56-e5be298e1644.IOPnwoYa.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};
