import{r as f,j as p}from"./35cfa646-9ab6-42a2-8c31-4c211f257271.fA9bAEYr.js";import{h as v}from"./332a5867-fdbb-43c7-ad56-a412ce956721.B_5Mff4E.js";import"./e5a2f637-302a-420f-94de-cacd45b03f37.Cj_ALb9R.js";var c=function(){return c=Object.assign||function(a){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(a[i]=t[i])}return a},c.apply(this,arguments)},d=function(a,t){var r;(r=document.querySelector('aside[render-name="acao"] div[action-id="'.concat(t,'"]')))===null||r===void 0||r.setAttribute("draggable",a.toString())};function x(a){var t=a.id,r=v(function(e){return e.getContainer}),o=r(t),i=o(function(e){return e.insertEmoji}),s=o(function(e){return e.emojiArea}),l=o(function(e){return e.setUpdateText}),u=f.useRef(null);return f.useEffect(function(){var e=function(n){n.shiftKey&&n.key==="?"&&(n.preventDefault(),n.stopPropagation(),i("?"))};return u.current.addEventListener("keydown",e),function(){var n;(n=u==null?void 0:u.current)===null||n===void 0||n.removeEventListener("keydown",e)}},[]),p.jsx("textarea",{id:t,ref:u,placeholder:s.placeholder,onClick:function(e){return e.stopPropagation()},onFocus:function(){return d(!1,t)},onBlur:function(){return d(!0,t)},value:s.text,onChange:function(e){return l(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:c({lineHeight:"1.3"},s.heightCamp?{height:"".concat(s.heightCamp,"px")}:{})})}export{x as default};
