import{j as f}from"./86559299-b4db-4d4a-91d1-a5b16a832290.DNAe3rgy.js";import{a as s}from"./3be07107-f826-4553-a584-c09b1f768eb4.DiKAzxfG.js";import{e as d,h as l,g as p}from"../../index.js";import"./cfa9b772-2d34-4d58-9a8e-135780f13e97.C1tr_lPN.js";import"./d803732d-59aa-40e7-911b-76c14d2f701c.Bo2UEwAP.js";import"./03bdaa01-c6d3-4805-9602-23eaef7ef89e.muuHxO4w.js";import"./7dd95b95-3243-4c6a-9225-5da922c7ed9e.B9ygI19o.js";import"./ba1b8ccf-a862-4f34-9556-ea5ecb69796a.BNN5RA9m.js";import"./f3ccf36e-59b2-42bf-ba52-32dd1beb180e.IKDEduMJ.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};
