import{j as f}from"./27cbb885-9bc5-418d-9ec6-2b35bff547d0.BEgz5TI0.js";import{a as s}from"./ba0f904d-b7bd-4a7d-8bd1-47e39e655dbc.DiKAzxfG.js";import{e as d,h as l,g as p}from"../../index.js";import"./b813fac5-cbf4-4bdd-aa14-89e1842aae3c.C5hV1yqq.js";import"./1553a3d2-88ea-454c-b1d6-ad16e655d307.BU4QC3MU.js";import"./43178910-39de-4a44-8ec5-3a1260b397dc.B9ygI19o.js";import"./7dfaa908-1fad-4330-a684-d3c24caf3b25.DBPB70EQ.js";import"./3f5e89eb-0b99-4989-ba42-9f14a1e0c07d.l-wE_TeF.js";import"./04eec2b6-5979-4c64-9e60-6995690ff008.dCeXI94U.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};
