import{j as m}from"./d48819c6-0c4c-4770-81f9-ac1b5c309d08.DZIiRdYb.js";import{r as i}from"./b88072d2-91f5-4815-abcd-d59a5b69b266.BYkOx-QV.js";import{a as p,s as u}from"../../index.js";import{s as c}from"./index.6cqiAEjd.js";import"./495e1c5f-f357-4baf-ae1e-e0511467485f.C0Zqfgkc.js";import"./9c8e94b5-8260-483d-9877-eeb7559a085b.D5fGgdNQ.js";import"./0813ed87-fdbd-4d7a-aabc-d9d8071d81c5._vCv0u-I.js";import"./598830cb-a3c2-4d09-ab90-604263fb78c9.BZasVZGj.js";import"./f737e302-3da9-4622-bcf0-3846c29e0340.Li0bcaz3.js";import"./088556fa-dfbb-4531-849e-7a1347dcc4a0.jWVkH3MO.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};
