import{j as m}from"./12fcc156-8432-4f6a-a756-bc5c4804a065.C5GaJATJ.js";import{r as i}from"./c72cd99e-5730-4cc2-aabe-4ae7e97095c6.DeMVsG9D.js";import{a as p,s as u}from"../../index.js";import{s as c}from"./index.6cqiAEjd.js";import"./07781464-665d-4951-b240-5b40a39e22dc.C0Zqfgkc.js";import"./f4074a0d-5acc-4a62-bc3a-03856ffc70c7.BUHHOS2s.js";import"./4b2a7e94-c8bf-4a6c-b737-60c84fbf1cdf.1pKRhbiQ.js";import"./58b66b3a-d812-4734-9eca-e501bc74e5aa.t6OGrC2p.js";import"./a5eb2f53-38cd-408f-aa75-e59898683a8e.C4WI4RHp.js";import"./07412ec9-ac8d-49eb-8fb8-8ea994d77cb8.Bh1YKqXA.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};
