import{bv as p,j as m}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e10.js";import{a as f}from"./v_7_4_0_1_4b8cc392-a410-45f6-b662-85abdad9c03e4.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";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 A(a){var t=a.id,r=p(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)}},[]),m.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{A as default};
