import{j as f}from"./c6da697c-7ad5-4d16-9811-816f0637e41e.BdjJkayk.js";import{a as s}from"./4a12e97a-6677-4e6a-883a-a04a57fd20dd.DY4-Cj1r.js";import{e as d,h as l,g as p}from"../../index.js";import"./914bdab0-2682-4422-a464-334586081859.BoGZ5jVn.js";import"./32b3f534-34be-418b-9c8b-be5708dbe5cf.6TUYENWA.js";import"./3d453f92-beed-4b03-a011-590d43576b2c.B9ygI19o.js";import"./fe8226ae-b013-4dcf-aa9d-e4201e8e35b0.B-7fKKSZ.js";import"./978fb8d0-2053-450f-9044-bd797f558ba4.DMNgrc0g.js";import"./aa7eadab-d177-4fbc-9520-18b634d565e1.DbqKyC1Q.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};
