import{j as f}from"./9fde061d-c486-4976-9464-7198c3b19b29.1_3RW29Q.js";import{a as s}from"./de7308a2-ea2f-4d1e-bb0c-62d74c4832ff.CC2qRq32.js";import{e as d,h as l,g as p}from"../../index.js";import"./abf60f9c-2d94-4647-a0f3-e527029006be.C3MP-_Sz.js";import"./bb706f54-4ac3-4b89-adab-0b087546aee3.Cn17aUV2.js";import"./06be914e-e02b-4f5e-af99-1580549adc3f.NIGUFBhG.js";import"./e856a9de-c75e-4836-9430-fcb32ac87451.xXD7CyFa.js";import"./371677bf-5a33-4aba-8902-17e3bae28f1f.DOTBBtpN.js";import"./71a3f3bb-3a09-48a3-859a-80567eff0f92.BgL4M75h.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};
