import{j as f}from"./b36d97aa-80d4-4b65-93b9-b58f5b2a13e9.BsYNDQPD.js";import{r as s}from"./d87839bb-e2bc-48b4-b67d-1eb433409cd5.8PUOyUqv.js";import{e as d,h as l,g as p}from"../../index.js";import"./a9860043-dc0a-4a50-879a-c729847710dd.B8_nURbH.js";import"./d1f06c4a-28de-4fe6-8307-ee19d106ed02.D-XmQ74-.js";import"./ff2895e3-9fdb-46e4-87b6-4a742017c9ed.CHDSY5-p.js";import"./2793b3a7-e768-45f9-86c5-f1c60fc2c23b.CZNyQ0Pg.js";import"./f508b904-cd16-42b7-a817-b7f86d5f204d.C9IAwhsR.js";import"./9604c129-61a4-4a64-a6e4-c0dec0078cc2.DCjXnq4r.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};
