import{j as f}from"./38021034-1e5c-4003-ba45-be534fb03fb7.CbAfohY-.js";import{a as s}from"./0a61bd63-c70b-44f9-afc9-32261a5610de.CC2qRq32.js";import{e as d,h as l,g as p}from"../../index.js";import"./db40e10c-484b-4789-a4e3-0850712c31a0.B8MoJlsw.js";import"./da80831f-ef96-4213-a2b0-39b33b0c7648.VMg3nHyz.js";import"./3bc9eba8-19c2-41fc-a34c-e13935f1fe9b.NIGUFBhG.js";import"./32861fc8-5701-48b3-b245-38795508faa7.BBHY1K2W.js";import"./c5bd358c-4cff-40c3-b6f6-92aec5e967e0.BgFnXKiI.js";import"./2ead2a7a-5ab5-483e-9adb-af10f23d73b3.77CEOPDO.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};
