import{j as m}from"./8bbe6333-6242-4956-8433-9ab482a4054b.B42l20xK.js";import{r as i}from"./2b078188-5efb-4452-8ca5-7900b5d63e9c.DJkumxIr.js";import{a as p,s as u}from"../../index.js";import{s as c}from"./index.6cqiAEjd.js";import"./968a5d25-c22b-48fb-a949-8b1a51108ca8.B8_nURbH.js";import"./06fa802d-ba98-44cf-bde0-ec08e5ff92e8.wKKXqRvV.js";import"./c8517cf8-cfbd-48ef-99a8-2967003b413e.CBqVp_2c.js";import"./e72c2e74-1fea-4659-b00e-2ce620d58699.Dy5LTAT8.js";import"./929ddbaf-2e88-45b7-b940-dadb9764caf2.bSM1X-nk.js";import"./2fdb4ea3-e694-4386-a220-a3ce9c346741.CElZwULG.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};
