import{j as f}from"./ff1761f3-7ac7-4db6-b87c-089232b93bd3.E8qYqNTw.js";import{r as s}from"./aaa7a7fd-224b-4b1f-ad88-9f3b70fd4f86.gbTC2lG0.js";import{e as d,h as l,g as p}from"../../index.js";import"./76913f01-39fe-47b1-9273-8a59d735f607.C0Zqfgkc.js";import"./0e40adfc-7384-42ac-af7b-2ce5fa0bf1f3.Brdxvojs.js";import"./65ed2e5a-0634-4498-8f4c-922d744ed712.CJ_pEw1H.js";import"./59c2715c-2c39-4e11-94d1-b606cb82260e.BgNCiAZl.js";import"./f2df44b4-a3e9-445e-b900-44f9dc849664.BtjVOTyv.js";import"./4215af16-6144-4769-997c-6c91f7c9528c.DHJz9GMK.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};
