import{j as f}from"./3555d203-2538-4509-8b24-bc3613546676.CEUjTIxG.js";import{a as s}from"./22dd7e42-87be-4398-b1bd-5d76b303be77.DiKAzxfG.js";import{e as d,h as l,g as p}from"../../index.js";import"./02e7782e-41f9-47f3-a7e1-1cc15ddfad06.BlNUIreo.js";import"./78e4e052-9712-4753-97c5-8c13ab5d82b5.hEZ_3ehH.js";import"./a28668d0-723d-4ff0-a148-26e7159e0c61.B9ygI19o.js";import"./b7bf59fc-7460-48c4-8430-448b99c389f2.Dp7_4q2L.js";import"./5ef095bd-1088-472f-9deb-bd030454de5f.DfFmyfWN.js";import"./5a360292-97f8-4e7e-af1c-0c91c64bffd9.ChPk2P_C.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};
