import{j as f}from"./0d719ebe-9bc8-4321-95e4-3b7ae7188d0c.r_NqTohD.js";import{r as s}from"./1ceaed43-a081-4611-842e-ea805b3572ef.S9cV1odN.js";import{e as d,h as l,g as p}from"../../index.js";import"./39ee25f2-649f-4e0f-8e4f-88b1d0c97171.C0Zqfgkc.js";import"./e07df691-e7a2-483e-b65f-8ba7d037bbba.BSLb7CTL.js";import"./59cf4917-67b3-41cf-91ca-ed2802721e1e.Dh54gVB2.js";import"./07e3a7a0-437d-4980-bd33-7bc9cc8928ac.Dy55EDz2.js";import"./5b81b262-1f49-431b-aca6-a83860a02744.HcwuK2cG.js";import"./ba3872c6-bdb3-4908-9077-0c0463223713.DDjQGcMk.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};
