import{j as m}from"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd94578110.js";import{a as i}from"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457814.js";import{u as p}from"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd94578145.js";import{s as c}from"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd945781111.js";import{s as u}from"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd945781109.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd94578118.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457816.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457818.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd945781.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457815.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd94578119.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457817.js";import"./v_7_4_2_19_142f09de-58e9-4005-bc9b-6e38dd9457819.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};
