import{j as f}from"./80457715-a8f8-43d8-9103-8d2c58c95a72.DgFF1LIx.js";import{r as s}from"./a48221f0-e562-421e-b88c-f1b037937fce.CHfez4ki.js";import{e as d,h as l,g as p}from"../../index.js";import"./e8f56c28-1ba3-48f0-a1a9-1913377e5e8d.C0Zqfgkc.js";import"./3f944ab7-6653-43e2-a187-8cae83b6e064.BqUZmmlv.js";import"./f4b9ec07-0745-47af-9211-356aa86cf78f.BJ4lSgTx.js";import"./2b4220fa-6f3b-4516-b2c4-6fe1e188dd63.CaTnHRcX.js";import"./4b2f64d4-cf0b-4b1f-8bd1-7a7a53e8e13b.2HTpTEz5.js";import"./853af0b4-6817-437b-b2a9-3b5e26db0fde.Bxr0Opk5.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};
