import{j as u}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e10.js";import{a as s}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e4.js";import{u as l}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e46.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e18.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e8.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e5.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e19.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e6.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e7.js";import"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e9.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 v({id:r}){const o=l(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)}},[]),u.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{v as default};
