import{j as f}from"./657d868a-dfeb-4b3c-8978-32948b761cdd.CCazTecF.js";import{a as s}from"./fed8cd34-9240-4aff-abd8-ee3b70d043ec.DiKAzxfG.js";import{e as d,h as l,g as p}from"../../index.js";import"./6c3e10ff-13dd-4042-a7d0-86bfe0d77bac.BqPE2dob.js";import"./a1f79a2b-5364-4d74-aebf-79f28e52bd0b.DMeseWhP.js";import"./e37bfcea-b6db-4459-9ce4-eaef6a0fb7a5.B9ygI19o.js";import"./a97acad4-5ae4-426f-a8b6-cfde2ddcaf5d.BgmuaWon.js";import"./a9a31cad-4a65-4e16-a67b-87588fc854ff.C4HK9OPA.js";import"./1e89e3ff-17e0-464d-ac54-28cfb3138864.Dhp_wK1f.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?.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};
