import{j as f}from"./89b55194-468e-4b30-86cd-4c277b203739.DNIwjpl2.js";import{r as s}from"./71a3646a-ebe8-445e-b2db-c2ebea39045d.4dCso91-.js";import{e as d,h as l,g as p}from"../../index.js";import"./237f9f23-af5e-4b90-a130-79c3ce02f226.B8_nURbH.js";import"./1648d0af-214d-4dd1-88b4-0172735358b4.BER1yHK7.js";import"./14f3f455-4c46-43b2-a15e-a0af3d1e268c.CHDjWRKX.js";import"./388dc74a-c373-40bd-a66f-7bef24f93b3b.DjcJQmk9.js";import"./59788672-7faa-49c6-ac0c-d26c42127dbf.VaCdhUl_.js";import"./8f5e5c66-5678-4b62-a285-4e9874b5697d.DGnGgHRl.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};
