import{j as m}from"./d8b19121-e9fc-49e9-8142-19fbce982310.8NPokGP7.js";import{a as s}from"./0c701c52-5cba-48d6-98df-4f5b753f13f7.CC2qRq32.js";import{a as p,s as c}from"../../index.js";import{s as l}from"./index.6cqiAEjd.js";import"./06976958-2b60-47c3-970f-9f27d3ea9b79.yfF5fDV5.js";import"./56d541b3-2aa4-476b-b31b-d6d874c8bb4e.jCwxG3rJ.js";import"./08844670-82c3-4ca0-9ddd-2397ca7f358b.NIGUFBhG.js";import"./8c1ecbd4-71b2-49a0-b829-e0c80926f4f0.CKtqdVA5.js";import"./c43ad591-412e-4c1a-a9e9-defbbc3d7951.DofTJsYH.js";import"./8ef66cb6-9046-410b-b73e-4c487d20e895.lbO9uG2P.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};
