import{j as p}from"./e7c37f89-36d4-4f7f-b90d-129f0761f279.B085ahH0.js";import{a as f}from"./abfedb32-04d8-4ef7-8358-c48f3b756915.CbsicDbU.js";import{e as m}from"../../index.js";import"./7ddd4e6f-a151-4dbd-b3b3-2494756b1601.DM5NhRdU.js";import"./47d0469b-8f62-4762-a108-e82d46bfd0e4.D8rVyQy1.js";import"./6cd76d28-c8df-43ec-9ed3-fb0d2876b272.COtiJzgn.js";import"./159f7389-16df-46f2-b8d1-7286965133d9.tZ8sTG1J.js";import"./122f595b-7312-4d1a-a5de-b04f043fe713.p97Adcu1.js";import"./a10916d1-e179-4f2d-9ce3-a46ab0c5048f.Unol4AE4.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){var t=a.id,r=m(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{_ as default};
