import{j as f}from"./8b4fd2af-4e6c-4aeb-b444-eaaa5e212cca.CC5s4FxV.js";import{a as s}from"./e4e40f4a-5802-4d1d-ae16-f5de7083887e.CC2qRq32.js";import{e as d,h as l,g as p}from"../../index.js";import"./95a3399a-8fb9-4bc6-b9e5-d500552f7963.DwUmnjuT.js";import"./495899d5-526c-4abd-9a81-30e028633bec.lro3OFZl.js";import"./b485c9d4-3434-42a5-942f-5272cf76a0dd.NIGUFBhG.js";import"./b67b8309-fa28-4cfe-8ba3-a0f9c73f7363.BJV7ljaW.js";import"./4a14c428-8836-4e67-b1c3-b0e6756bfe4f.CBjVyGub.js";import"./e48c6079-eb0b-4319-adb4-a4395710582e.BCVHUtG3.js";var u=function(){return u=Object.assign||function(o){for(var e,r=1,i=arguments.length;r<i;r++){e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n])}return o},u.apply(this,arguments)},c=function(o,e){var r;(r=document.querySelector('aside[render-name="acao"] div[action-id="'.concat(e,'"]')))===null||r===void 0||r.setAttribute("draggable",o.toString())};function C(o){var e=o.id,r=d(function(t){return t.getContainer(e)}),i=r(function(t){return t.emojiArea}),n=s.useRef(null);return s.useEffect(function(){var t=function(a){a.shiftKey&&a.key==="?"&&(a.preventDefault(),a.stopPropagation(),p(e,"?"))};return n.current.addEventListener("keydown",t),function(){var a;(a=n==null?void 0:n.current)===null||a===void 0||a.removeEventListener("keydown",t)}},[]),f.jsx("textarea",{id:e,ref:n,placeholder:i.placeholder,onClick:function(t){return t.stopPropagation()},onFocus:function(){return c(!1,e)},onBlur:function(){return c(!0,e)},value:i.text,onChange:function(t){return l(e,t.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:u({lineHeight:"1.3"},i.heightCamp?{height:"".concat(i.heightCamp,"px")}:{})})}export{C as default};
