import{j as f}from"./f3ebac85-864e-42dc-a659-2806087e38db.BAGqt0vZ.js";import{r as s}from"./568be58d-1896-4466-82b7-58fa062d3d2b.DxbklC8L.js";import{e as d,h as l,g as p}from"../../index.js";import"./8ffc78f0-749f-460d-aa4a-f564a26f67d7.C0Zqfgkc.js";import"./ae172fec-5465-426d-970b-8aaa4d989875.74VhvXvf.js";import"./6a12e818-0a80-4bfa-9588-a3247b3fb2e1.BrN0ga_2.js";import"./637d169e-861e-4ae6-abea-2758829c5b7f.8xGVmhvV.js";import"./48f0ea31-78af-4d7d-9a39-1fcffd2cfe1f.eDZiHdIK.js";import"./aa3c92e9-efa0-4484-83a9-869d529b1a1c.C4Om4Lq8.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};
