import{j as m}from"./98ca111a-d47f-42bf-88df-187a0fd70aa6.D0vL-0_D.js";import{a as s}from"./3717adf3-d6aa-4233-96c1-f99066bb21f5.CbsicDbU.js";import{a as p,s as c}from"../../index.js";import{s as l}from"./index.6cqiAEjd.js";import"./179bd2e7-fdc4-446b-afd3-3eeedfdcf333.BzbxczBO.js";import"./b7e60b26-73d9-4d3c-b7bf-bc48ada1881a.Dq7h7Pqt.js";import"./47079789-6f90-456c-9064-0730da4d3f08.2lWgI6Qj.js";import"./cc324315-564b-4a53-b3c4-dd9f3a622a0d.nML9b0j-.js";import"./77cbbd88-6619-4546-8ad6-70f162e6ac01.D-2jerRn.js";import"./d4f56392-3bab-4fc3-8482-ee3e6adc2c89.D9a77g4C.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};
