import{j as f}from"./20e36d67-8d83-4178-8f0b-a506491a9a10.auOyiB6P.js";import{r as s}from"./3bbebd79-6302-425b-9fe5-35fdbb439250.CAYVRFqY.js";import{e as d,h as l,g as p}from"../../index.js";import"./5620f695-e1ba-4d15-beef-d325b68e1ce2.C0Zqfgkc.js";import"./1c4b12bd-07a5-4e51-a942-9f4e016c7422.CTm5XBKq.js";import"./63b76abc-7191-4509-95e0-083c2d58bdf4.ChcTiR6y.js";import"./59fa0bd5-cf00-49ec-9e19-0c0ddb44c6dd.BTceWfoi.js";import"./cbcb672d-a3bf-4248-8bad-dfb9a25d4a62.9bbJlnql.js";import"./062d221a-2b06-4d4f-9e75-5263b7fbc0b8.BkIv7D6H.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?.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};
