import{j as m}from"./8b4fd2af-4e6c-4aeb-b444-eaaa5e212cca.CC5s4FxV.js";import{a as s}from"./e4e40f4a-5802-4d1d-ae16-f5de7083887e.CC2qRq32.js";import{a as p,s as c}from"../../index.js";import{s as l}from"./index.6cqiAEjd.js";import"./95a3399a-8fb9-4bc6-b9e5-d500552f7963.DwUmnjuT.js";import"./495899d5-526c-4abd-9a81-30e028633bec.lro3OFZl.js";import"./b485c9d4-3434-42a5-942f-5272cf76a0dd.NIGUFBhG.js";import"./b67b8309-fa28-4cfe-8ba3-a0f9c73f7363.BJV7ljaW.js";import"./4a14c428-8836-4e67-b1c3-b0e6756bfe4f.CBjVyGub.js";import"./e48c6079-eb0b-4319-adb4-a4395710582e.BCVHUtG3.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};
