import{j as d}from"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f5.js";import{r as s}from"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f.js";import{d1 as f,d4 as l,d3 as p}from"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f7.js";import"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f6.js";import"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f4.js";import"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f3.js";import"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f2.js";import"./v_7_4_3_30_53befa88-12f2-496c-a84d-0f1f11019f4f8.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 A(o){var e=o.id,r=f(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)}},[]),d.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{A as default};
