import{j as m}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf10.js";import{a as i}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf4.js";import{u as p}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf47.js";import{s as c}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf114.js";import{s as u}from"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf112.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf18.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf6.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf8.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf5.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf19.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf7.js";import"./v_7_4_2_9_8cb79d4f-81e0-49c1-b597-7f2344477fbf9.js";const s=(t,n)=>{var r;(r=document.querySelector(`aside[render-name="acao"] div[action-id="${n}"]`))==null||r.setAttribute("draggable",t.toString())};function b({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(),u(t,"?"))};return a.current.addEventListener("keydown",e),()=>{var o;(o=a==null?void 0:a.current)==null||o.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=>c(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{b as default};
