import{j as m}from"./7e9e5b2a-4945-46bc-8833-f32678ff993b.B8syaM8b.js";import{a as s}from"./c07d242a-5b4a-4661-882b-c0ab5dd00093.DY4-Cj1r.js";import{a as p,s as c}from"../../index.js";import{s as l}from"./index.6cqiAEjd.js";import"./c3b2133e-74e3-4cbc-93ae-c23404a4b741.DegroQ2J.js";import"./c44ef250-861a-40aa-90df-115eddb53024.BtQIQt1-.js";import"./714dcc15-f748-4b9d-85c3-0eee70c7793a.NIGUFBhG.js";import"./9737f6c3-b96e-4d76-865a-a131e3d36057.j2JXV5k-.js";import"./cdf811dc-33bd-497a-ba45-472c195ff5b5.BrVdrNdq.js";import"./445fb246-2203-4174-89de-dbe8a626f7ee.CzSfud0t.js";const i=(t,n)=>{var r;(r=document.querySelector(`aside[render-name="acao"] div[action-id="${n}"]`))==null||r.setAttribute("draggable",t.toString())};function C({id:t}){const r=p(e=>e.getContainer(t))(e=>e.emojiArea),a=s.useRef(null);return s.useEffect(()=>{const e=o=>{o.shiftKey&&o.key==="?"&&(o.preventDefault(),o.stopPropagation(),l(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:()=>i(!1,t),onBlur:()=>i(!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{C as default};
