import{j as f}from"./7e9e5b2a-4945-46bc-8833-f32678ff993b.B8syaM8b.js";import{a as s}from"./c07d242a-5b4a-4661-882b-c0ab5dd00093.DY4-Cj1r.js";import{e as d,h as l,g as p}from"../../index.js";import"./c3b2133e-74e3-4cbc-93ae-c23404a4b741.DegroQ2J.js";import"./c44ef250-861a-40aa-90df-115eddb53024.BtQIQt1-.js";import"./714dcc15-f748-4b9d-85c3-0eee70c7793a.NIGUFBhG.js";import"./9737f6c3-b96e-4d76-865a-a131e3d36057.j2JXV5k-.js";import"./cdf811dc-33bd-497a-ba45-472c195ff5b5.BrVdrNdq.js";import"./445fb246-2203-4174-89de-dbe8a626f7ee.CzSfud0t.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==null?void 0: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};
