import{j as f}from"./98ca111a-d47f-42bf-88df-187a0fd70aa6.D0vL-0_D.js";import{a as s}from"./3717adf3-d6aa-4233-96c1-f99066bb21f5.CbsicDbU.js";import{e as d,h as l,g as p}from"../../index.js";import"./179bd2e7-fdc4-446b-afd3-3eeedfdcf333.BzbxczBO.js";import"./b7e60b26-73d9-4d3c-b7bf-bc48ada1881a.Dq7h7Pqt.js";import"./47079789-6f90-456c-9064-0730da4d3f08.2lWgI6Qj.js";import"./cc324315-564b-4a53-b3c4-dd9f3a622a0d.nML9b0j-.js";import"./77cbbd88-6619-4546-8ad6-70f162e6ac01.D-2jerRn.js";import"./d4f56392-3bab-4fc3-8482-ee3e6adc2c89.D9a77g4C.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};
