import{j as f}from"./97895ccd-eacb-468d-acaf-a05b0600c661.CCJ6x-uO.js";import{r as s}from"./fba659fd-141b-444a-9949-d1b1c9de2776.BGex24A5.js";import{e as d,h as l,g as p}from"../../index.js";import"./deffac6f-6080-4634-a313-9a9c19cb05b9.C0Zqfgkc.js";import"./3eb9cf24-1295-46e2-aedf-f7224a9cf267.CiXsu8Tu.js";import"./4c4f3386-b306-484e-9b07-c37143bd87f7.BexD02x3.js";import"./29195f33-83f4-4a9e-8d49-3174b1e2bbee.D2G3_5-M.js";import"./a68ba3ac-e057-4b8e-9d04-a24b0b99fdb5.-LVU_LFu.js";import"./1943e3b3-b854-4d0d-a6b7-6c00da964781.BNvKqlAS.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};
