import{j as f}from"./7ee2072d-4dc9-4371-9c01-8261dc99176e.DU6dOwt5.js";import{r as s}from"./07a391ae-cb03-44e8-9dc3-2adfaa0f0d7b.Co0aK9Ho.js";import{e as d,h as l,g as p}from"../../index.js";import"./ccc3fc54-c30c-4770-a120-bdc5e53e2555.C0Zqfgkc.js";import"./6d90672a-3285-4c42-bfe9-7b196415d59a.C7VQ5YCe.js";import"./e296c275-2985-47a2-876a-7683560dd882.r6vg5cHF.js";import"./8144d0ab-d248-476a-a2d5-04e1cc4051a3.C6eG0P9i.js";import"./884707c7-d00f-471f-a2d9-467a6206c4c9.dcTOQzJn.js";import"./cdc86230-26aa-43b5-b04c-57ba9b48f3ba.LEQ6CI15.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};
