import{cP as f,j as d,cS as l,cR as p}from"./v_7_4_2_12_5cc5c70e-17b9-46d5-a61c-750829962ec510.js";import{a as c}from"./v_7_4_2_12_5cc5c70e-17b9-46d5-a61c-750829962ec54.js";import"./v_7_4_2_12_5cc5c70e-17b9-46d5-a61c-750829962ec518.js";import"./v_7_4_2_12_5cc5c70e-17b9-46d5-a61c-750829962ec56.js";import"./v_7_4_2_12_5cc5c70e-17b9-46d5-a61c-750829962ec58.js";import"./v_7_4_2_12_5cc5c70e-17b9-46d5-a61c-750829962ec5.js";import"./v_7_4_2_12_5cc5c70e-17b9-46d5-a61c-750829962ec55.js";import"./v_7_4_2_12_5cc5c70e-17b9-46d5-a61c-750829962ec519.js";import"./v_7_4_2_12_5cc5c70e-17b9-46d5-a61c-750829962ec57.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)},s=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=f(function(t){return t.getContainer(e)}),i=r(function(t){return t.emojiArea}),n=c.useRef(null);return c.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)}},[]),d.jsx("textarea",{id:e,ref:n,placeholder:i.placeholder,onClick:function(t){return t.stopPropagation()},onFocus:function(){return s(!1,e)},onBlur:function(){return s(!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};
