import{j as f}from"./12728c7f-a885-4090-a0ec-756bbcfc134b.DaTHzKwO.js";import{a as s}from"./d939214e-5bdd-4d85-988a-e0e19a9d44fb.CC2qRq32.js";import{e as d,h as l,g as p}from"../../index.js";import"./432719ca-ca15-49cd-bfb0-2d74cba889f3.vmQPZsnS.js";import"./ab85f0c2-83f1-4008-a033-a1a345b837aa.CE5aiCBP.js";import"./382eb425-f420-4d7c-b327-04ecc51dc0c7.NIGUFBhG.js";import"./24d46475-fb5c-4648-b7db-6bc4d3a32710.W1ymj3vX.js";import"./51633842-cd53-4079-b996-ea6883b6b414.y-0x-YU8.js";import"./ec5bfd76-7ecd-487e-9aa7-862475f81a0d.BpbwkdwC.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};
