import{j as f}from"./4e72af16-2dfe-4245-a054-4de89930de0f.HspIsJ53.js";import{r as s}from"./ad44b22f-97c7-45d0-b59a-413065b4cdbe.BGZk5hUf.js";import{e as d,h as l,g as p}from"../../index.js";import"./6dad934c-7865-47ae-9348-0f22f658f4f7.C0Zqfgkc.js";import"./c61b49b0-4146-4ad4-aa18-b81740c62e69.BLiVLrdB.js";import"./0403568d-e5eb-4cfc-92b1-4526d8f2fb52.C6VufEub.js";import"./0730b93f-3143-4541-b424-601cc4e2aa81.EwhviQ2i.js";import"./c76aeb1d-c8d9-4c90-ac49-27e93211c0f1.DqV-3RZS.js";import"./3c8ea625-cdcf-4e8e-8772-2cb8e1403711.CxjalAR8.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};
