import{j as f}from"./b88ccfae-34fa-4cdb-9e39-421b0d33a912.B5kNVuoR.js";import{r as s}from"./8fad2510-989d-47e8-b45d-329dc3efd27e.QebfNFDM.js";import{e as d,h as l,g as p}from"../../index.js";import"./cce0add5-e68f-41e0-af14-e232e58f3d6c.C0Zqfgkc.js";import"./beb09b81-b1b4-4907-9a7e-389003244f2c.CdPm_NXK.js";import"./a56befbe-dc0f-4060-9944-0c49bb0bdad8.BOUJIqqs.js";import"./970566ba-5835-4003-b4c7-d560f91444e5.eXa2RSbJ.js";import"./035448ff-3806-429f-8c74-515f49676192.DW5y17Hb.js";import"./51b06891-1b0f-48e1-b37a-578b757973e7.DZ2NRQM4.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};
