import{j as m}from"./c6da697c-7ad5-4d16-9811-816f0637e41e.BdjJkayk.js";import{a as s}from"./4a12e97a-6677-4e6a-883a-a04a57fd20dd.DY4-Cj1r.js";import{a as p,s as c}from"../../index.js";import{s as l}from"./index.6cqiAEjd.js";import"./914bdab0-2682-4422-a464-334586081859.BoGZ5jVn.js";import"./32b3f534-34be-418b-9c8b-be5708dbe5cf.6TUYENWA.js";import"./3d453f92-beed-4b03-a011-590d43576b2c.B9ygI19o.js";import"./fe8226ae-b013-4dcf-aa9d-e4201e8e35b0.B-7fKKSZ.js";import"./978fb8d0-2053-450f-9044-bd797f558ba4.DMNgrc0g.js";import"./aa7eadab-d177-4fbc-9520-18b634d565e1.DbqKyC1Q.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};
