import{j as f}from"./12fcc156-8432-4f6a-a756-bc5c4804a065.C5GaJATJ.js";import{r as s}from"./c72cd99e-5730-4cc2-aabe-4ae7e97095c6.DeMVsG9D.js";import{e as d,h as l,g as p}from"../../index.js";import"./07781464-665d-4951-b240-5b40a39e22dc.C0Zqfgkc.js";import"./f4074a0d-5acc-4a62-bc3a-03856ffc70c7.BUHHOS2s.js";import"./4b2a7e94-c8bf-4a6c-b737-60c84fbf1cdf.1pKRhbiQ.js";import"./58b66b3a-d812-4734-9eca-e501bc74e5aa.t6OGrC2p.js";import"./a5eb2f53-38cd-408f-aa75-e59898683a8e.C4WI4RHp.js";import"./07412ec9-ac8d-49eb-8fb8-8ea994d77cb8.Bh1YKqXA.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};
