import{j as l}from"./e7c37f89-36d4-4f7f-b90d-129f0761f279.B085ahH0.js";import{a as s}from"./abfedb32-04d8-4ef7-8358-c48f3b756915.CbsicDbU.js";import{a as u}from"../../index.js";import"./7ddd4e6f-a151-4dbd-b3b3-2494756b1601.DM5NhRdU.js";import"./47d0469b-8f62-4762-a108-e82d46bfd0e4.D8rVyQy1.js";import"./6cd76d28-c8df-43ec-9ed3-fb0d2876b272.COtiJzgn.js";import"./159f7389-16df-46f2-b8d1-7286965133d9.tZ8sTG1J.js";import"./122f595b-7312-4d1a-a5de-b04f043fe713.p97Adcu1.js";import"./a10916d1-e179-4f2d-9ce3-a46ab0c5048f.Unol4AE4.js";const m=(r,i)=>{var o;(o=document.querySelector(`aside[render-name="acao"] div[action-id="${i}"]`))==null||o.setAttribute("draggable",r.toString())};function A({id:r}){const o=u(e=>e.getContainer)(r),p=o(e=>e.insertEmoji),n=o(e=>e.emojiArea),c=o(e=>e.setUpdateText),a=s.useRef(null);return s.useEffect(()=>{const e=t=>{t.shiftKey&&t.key==="?"&&(t.preventDefault(),t.stopPropagation(),p("?"))};return a.current.addEventListener("keydown",e),()=>{var t;(t=a==null?void 0:a.current)==null||t.removeEventListener("keydown",e)}},[]),l.jsx("textarea",{id:r,ref:a,placeholder:n.placeholder,onClick:e=>e.stopPropagation(),onFocus:()=>m(!1,r),onBlur:()=>m(!0,r),value:n.text,onChange:e=>c(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",...n.heightCamp?{height:`${n.heightCamp}px`}:{}}})}export{A as default};
