import{j as f}from"./a72bb423-9665-4384-b19f-0f86d7fa6a53.DdCOsrV1.js";import{a as s}from"./4696bbc3-6cfe-4288-8f61-075c725c52ef.DiKAzxfG.js";import{e as d,h as l,g as p}from"../../index.js";import"./37b70895-b6c7-4546-a8c8-62bf50aa2b9e.DXLhuare.js";import"./238770a7-eb8f-43ee-9948-a24642fcb357.DEb0wo5k.js";import"./abe405b3-b655-4462-bcc1-195666cd4aa8.B9ygI19o.js";import"./71fcc253-8ae5-484e-92b9-b3980dbbee0c.CmMH2Gxe.js";import"./47bdf853-663c-4eee-a6ff-8d67644884ee.BGaKFpUN.js";import"./08eb3043-32c8-4d8d-8894-5e6e78a5c46b.sKdyQkuf.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};
