import{j as f}from"./6abd3f6d-5915-464f-a3cb-3d9768f2f00b.DKbqw7xL.js";import{a as s}from"./ba47b11f-93c3-40d9-92d3-517b5cac37d2.DiKAzxfG.js";import{e as d,h as l,g as p}from"../../index.js";import"./3ed4cd0f-ec07-4e31-afc1-ce64ffcd5464.JPR2e1ux.js";import"./cd158c8f-89d5-4587-a0da-70a28122abb6.Cy8NaIIt.js";import"./ab0fa902-5fd7-4602-ba29-02cd60ac750c.B9ygI19o.js";import"./dcfdaf80-13ac-4e1c-8d28-18700a0c1a10.DgRnpLVA.js";import"./99e57599-182b-45aa-ad77-ab31b4543d77.CoxT2IFn.js";import"./4e27391c-200b-4f29-9b56-e5be298e1644.IOPnwoYa.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};
