import{j as f}from"./c6e04f66-c0ef-44cc-84f2-dc1f59ff0119.Bgq73WwO.js";import{r as s}from"./3b0bc227-5ef3-4861-89b9-460eeecae3e8.BtjWlQs8.js";import{e as d,h as l,g as p}from"../../index.js";import"./e1737af6-e7d0-4244-b0c0-fa98a56d0595.C0Zqfgkc.js";import"./5b2e6e29-346a-4252-957e-3e95a1ecc2b8.07kyQYzC.js";import"./cf501645-18bb-4947-a78e-01226a7cda4e.CSl4WnvM.js";import"./9ce694e7-9bbb-4c12-97cd-0e82857a2981.C7VYKa5k.js";import"./cf50c038-9e08-4b8d-9b06-6ab260b4438d.C9ZETNXv.js";import"./e1eb6587-b2ce-48b1-af43-6ed853c059bf.xbsteCKk.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};
