import{j as m}from"./12728c7f-a885-4090-a0ec-756bbcfc134b.DaTHzKwO.js";import{a as s}from"./d939214e-5bdd-4d85-988a-e0e19a9d44fb.CC2qRq32.js";import{a as p,s as c}from"../../index.js";import{s as l}from"./index.6cqiAEjd.js";import"./432719ca-ca15-49cd-bfb0-2d74cba889f3.vmQPZsnS.js";import"./ab85f0c2-83f1-4008-a033-a1a345b837aa.CE5aiCBP.js";import"./382eb425-f420-4d7c-b327-04ecc51dc0c7.NIGUFBhG.js";import"./24d46475-fb5c-4648-b7db-6bc4d3a32710.W1ymj3vX.js";import"./51633842-cd53-4079-b996-ea6883b6b414.y-0x-YU8.js";import"./ec5bfd76-7ecd-487e-9aa7-862475f81a0d.BpbwkdwC.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};
