import{j as f}from"./d8b19121-e9fc-49e9-8142-19fbce982310.8NPokGP7.js";import{a as s}from"./0c701c52-5cba-48d6-98df-4f5b753f13f7.CC2qRq32.js";import{e as d,h as l,g as p}from"../../index.js";import"./06976958-2b60-47c3-970f-9f27d3ea9b79.yfF5fDV5.js";import"./56d541b3-2aa4-476b-b31b-d6d874c8bb4e.jCwxG3rJ.js";import"./08844670-82c3-4ca0-9ddd-2397ca7f358b.NIGUFBhG.js";import"./8c1ecbd4-71b2-49a0-b829-e0c80926f4f0.CKtqdVA5.js";import"./c43ad591-412e-4c1a-a9e9-defbbc3d7951.DofTJsYH.js";import"./8ef66cb6-9046-410b-b73e-4c487d20e895.lbO9uG2P.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==null?void 0: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};
