import{j as f}from"./8bbe6333-6242-4956-8433-9ab482a4054b.B42l20xK.js";import{r as s}from"./2b078188-5efb-4452-8ca5-7900b5d63e9c.DJkumxIr.js";import{e as d,h as l,g as p}from"../../index.js";import"./968a5d25-c22b-48fb-a949-8b1a51108ca8.B8_nURbH.js";import"./06fa802d-ba98-44cf-bde0-ec08e5ff92e8.wKKXqRvV.js";import"./c8517cf8-cfbd-48ef-99a8-2967003b413e.CBqVp_2c.js";import"./e72c2e74-1fea-4659-b00e-2ce620d58699.Dy5LTAT8.js";import"./929ddbaf-2e88-45b7-b940-dadb9764caf2.bSM1X-nk.js";import"./2fdb4ea3-e694-4386-a220-a3ce9c346741.CElZwULG.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};
