import{j as f}from"./3e314277-6fbe-48ae-b141-f77e577f6b48.l7s9hXjs.js";import{r as s}from"./14cbe65f-819b-4726-9a42-e77bd350647f.0kpvat_1.js";import{e as d,h as l,g as p}from"../../index.js";import"./b45ec88a-99bb-427a-bd23-9e53cfdaade4.C0Zqfgkc.js";import"./5f6343ba-56bd-45eb-9ce5-d87f20ea1089.DMyavOMM.js";import"./5842b5c8-250b-43eb-9a91-ee4836e18072.Cd7YwKZL.js";import"./40dc46d9-a7fa-41c5-9ee0-dafdce2dd195.CYWZ-cKi.js";import"./628471c9-b488-4eb8-adb5-88be47ac4f1a.DHXzBZ_-.js";import"./7ea845ad-be30-435c-909b-004fc9666f3c.DKHCzKx5.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};
