import{j as m}from"./5c518819-7ebe-4103-a851-be46e3d65bf0.Dcj1nwh_.js";import{a as s}from"./1f0bf85d-2689-4c10-8430-da1b1e7d0010.DY4-Cj1r.js";import{a as p,s as c}from"../../index.js";import{s as l}from"./index.6cqiAEjd.js";import"./e84eb26f-796c-4faa-a317-5109ba85e700.SSAC4PCw.js";import"./ef4e8458-aacd-4e21-abed-1d0b17bc11a3.CyjCDOIy.js";import"./e1900af0-9d5c-481a-93b4-1db686ad9ab7.NIGUFBhG.js";import"./477600f5-f774-4453-9a21-0252efb3f679.CkA9_P0Y.js";import"./a894b5ab-841b-4164-9f83-9c6b468c53bf.BG2J9fa4.js";import"./471e0139-b0ca-46b2-9e30-f7acc4ebcbb3.Bp0eb5mn.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};
