import{j as f}from"./5c518819-7ebe-4103-a851-be46e3d65bf0.Dcj1nwh_.js";import{a as s}from"./1f0bf85d-2689-4c10-8430-da1b1e7d0010.DY4-Cj1r.js";import{e as d,h as l,g as p}from"../../index.js";import"./e84eb26f-796c-4faa-a317-5109ba85e700.SSAC4PCw.js";import"./ef4e8458-aacd-4e21-abed-1d0b17bc11a3.CyjCDOIy.js";import"./e1900af0-9d5c-481a-93b4-1db686ad9ab7.NIGUFBhG.js";import"./477600f5-f774-4453-9a21-0252efb3f679.CkA9_P0Y.js";import"./a894b5ab-841b-4164-9f83-9c6b468c53bf.BG2J9fa4.js";import"./471e0139-b0ca-46b2-9e30-f7acc4ebcbb3.Bp0eb5mn.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};
