import{j as f}from"./63ff95b2-66eb-44bc-9357-13bf0b6d2fdf.BR30HtGv.js";import{a as s}from"./fbeaa824-f437-454f-ac47-7e24750bb32e.CC2qRq32.js";import{e as d,h as l,g as p}from"../../index.js";import"./a62532da-bf11-485a-a43d-6a7b59b6a676.BVMidMd3.js";import"./5d669d12-c308-4594-b591-ef72fd34318c.CXmqblNO.js";import"./c415272e-9906-47be-a8c5-650457d64658.NIGUFBhG.js";import"./eb66d478-621e-4013-9b4f-c75719438dea.Cd_XWJzp.js";import"./c547856f-5009-45d1-bf41-7fccaf12121a.CfuHre9V.js";import"./d09e2553-bdd0-4775-8cad-0ef1791a1348.Dy-I0Pa_.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};
