import{j as f}from"./aeb8bec7-126f-4d16-ba8b-07a409185d11.EXIR9chA.js";import{a as s}from"./aea5e155-6328-40a6-9d63-263c0dcaecca.DiKAzxfG.js";import{e as d,h as l,g as p}from"../../index.js";import"./923e70ff-389f-43d0-824d-f08aad378a67.DNAultaL.js";import"./20480b3b-8c00-4713-be5a-c9562cb942ae.RkR8z2ER.js";import"./82aea7f3-e656-4b87-ba99-f674e3a7e5ba.B9ygI19o.js";import"./974ad018-db40-48a4-8cb6-af79a70d1a43.HGeehRIZ.js";import"./4a917a75-241f-4a3a-a625-4431bc18b7e0.U68TwGAK.js";import"./9d2dbb66-af43-47e3-adae-cf5f5d51cc35.CvM4tJXF.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};
