import{j as m}from"./63ff95b2-66eb-44bc-9357-13bf0b6d2fdf.BR30HtGv.js";import{a as s}from"./fbeaa824-f437-454f-ac47-7e24750bb32e.CC2qRq32.js";import{a as p,s as c}from"../../index.js";import{s as l}from"./index.6cqiAEjd.js";import"./a62532da-bf11-485a-a43d-6a7b59b6a676.BVMidMd3.js";import"./5d669d12-c308-4594-b591-ef72fd34318c.CXmqblNO.js";import"./c415272e-9906-47be-a8c5-650457d64658.NIGUFBhG.js";import"./eb66d478-621e-4013-9b4f-c75719438dea.Cd_XWJzp.js";import"./c547856f-5009-45d1-bf41-7fccaf12121a.CfuHre9V.js";import"./d09e2553-bdd0-4775-8cad-0ef1791a1348.Dy-I0Pa_.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};
