import{j as f}from"./f430c946-0452-4bba-97c5-89f3f1de581a.-vflqN_Y.js";import{r as s}from"./e3dffcae-1f52-4da3-8bcf-140aec0913b5.BY24HJgJ.js";import{e as d,h as l,g as p}from"../../index.js";import"./3799a46f-55a1-427e-9341-5c16ae8c4d42.C0Zqfgkc.js";import"./85bef62d-ae49-4d0f-ba28-2a70859000ae.DTaF0dxa.js";import"./9bfc9582-54ea-4cdd-834c-2cca22d14700.ZIlkxfDO.js";import"./09b52c17-36b4-4842-a2eb-b6e5dc3d2684.BM6yZllj.js";import"./e89b335d-d795-4198-b8e5-5e579ee14b57.DVdg-Gtx.js";import"./13d8ea94-edf8-483a-bbc2-8631a2bd9cdc.BZiPFt1b.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};
