import{j as f}from"./4b903977-b269-4e5d-80c7-6ccd4edfc44b.CXLluKKh.js";import{r as s}from"./ef8a9734-6f10-44fa-987a-cb2781f2527c.CqRPSjAm.js";import{e as d,h as l,g as p}from"../../index.js";import"./7433640d-2a9f-4216-aa88-3edada1025fe.C0Zqfgkc.js";import"./4f7db02f-cfef-42f1-aca3-87ddf9f143f9.BzwAIBt7.js";import"./a4d1ab8c-f290-4aa1-95c8-ee166146ccd6.B-mGZpfC.js";import"./3f2a8e88-ccdc-43b1-9360-5a3403a34ffd.DafXowCB.js";import"./d49fcf60-e7e5-49f9-ac7a-1e19166178fb.DxyxIXoE.js";import"./52ed941a-5058-4fc3-8b32-0efd5d1fc845.DN8v6gPO.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};
