import{j as m}from"./657d868a-dfeb-4b3c-8978-32948b761cdd.CCazTecF.js";import{a as i}from"./fed8cd34-9240-4aff-abd8-ee3b70d043ec.DiKAzxfG.js";import{a as p,s as u}from"../../index.js";import{s as c}from"./index.6cqiAEjd.js";import"./6c3e10ff-13dd-4042-a7d0-86bfe0d77bac.BqPE2dob.js";import"./a1f79a2b-5364-4d74-aebf-79f28e52bd0b.DMeseWhP.js";import"./e37bfcea-b6db-4459-9ce4-eaef6a0fb7a5.B9ygI19o.js";import"./a97acad4-5ae4-426f-a8b6-cfde2ddcaf5d.BgmuaWon.js";import"./a9a31cad-4a65-4e16-a67b-87588fc854ff.C4HK9OPA.js";import"./1e89e3ff-17e0-464d-ac54-28cfb3138864.Dhp_wK1f.js";const s=(t,n)=>{document.querySelector(`aside[render-name="acao"] div[action-id="${n}"]`)?.setAttribute("draggable",t.toString())};function C({id:t}){const r=p(e=>e.getContainer(t))(e=>e.emojiArea),a=i.useRef(null);return i.useEffect(()=>{const e=o=>{o.shiftKey&&o.key==="?"&&(o.preventDefault(),o.stopPropagation(),c(t,"?"))};return a.current.addEventListener("keydown",e),()=>{a?.current?.removeEventListener("keydown",e)}},[]),m.jsx("textarea",{id:t,ref:a,placeholder:r.placeholder,onClick:e=>e.stopPropagation(),onFocus:()=>s(!1,t),onBlur:()=>s(!0,t),value:r.text,onChange:e=>u(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};
