import{j as f}from"./d48819c6-0c4c-4770-81f9-ac1b5c309d08.DZIiRdYb.js";import{r as s}from"./b88072d2-91f5-4815-abcd-d59a5b69b266.BYkOx-QV.js";import{e as d,h as l,g as p}from"../../index.js";import"./495e1c5f-f357-4baf-ae1e-e0511467485f.C0Zqfgkc.js";import"./9c8e94b5-8260-483d-9877-eeb7559a085b.D5fGgdNQ.js";import"./0813ed87-fdbd-4d7a-aabc-d9d8071d81c5._vCv0u-I.js";import"./598830cb-a3c2-4d09-ab90-604263fb78c9.BZasVZGj.js";import"./f737e302-3da9-4622-bcf0-3846c29e0340.Li0bcaz3.js";import"./088556fa-dfbb-4531-849e-7a1347dcc4a0.jWVkH3MO.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};
