import{j as m}from"./86559299-b4db-4d4a-91d1-a5b16a832290.DNAe3rgy.js";import{a as i}from"./3be07107-f826-4553-a584-c09b1f768eb4.DiKAzxfG.js";import{a as p,s as u}from"../../index.js";import{s as c}from"./index.6cqiAEjd.js";import"./cfa9b772-2d34-4d58-9a8e-135780f13e97.C1tr_lPN.js";import"./d803732d-59aa-40e7-911b-76c14d2f701c.Bo2UEwAP.js";import"./03bdaa01-c6d3-4805-9602-23eaef7ef89e.muuHxO4w.js";import"./7dd95b95-3243-4c6a-9225-5da922c7ed9e.B9ygI19o.js";import"./ba1b8ccf-a862-4f34-9556-ea5ecb69796a.BNN5RA9m.js";import"./f3ccf36e-59b2-42bf-ba52-32dd1beb180e.IKDEduMJ.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};
