import{j as m}from"./3e314277-6fbe-48ae-b141-f77e577f6b48.l7s9hXjs.js";import{r as i}from"./14cbe65f-819b-4726-9a42-e77bd350647f.0kpvat_1.js";import{a as p,s as u}from"../../index.js";import{s as c}from"./index.6cqiAEjd.js";import"./b45ec88a-99bb-427a-bd23-9e53cfdaade4.C0Zqfgkc.js";import"./5f6343ba-56bd-45eb-9ce5-d87f20ea1089.DMyavOMM.js";import"./5842b5c8-250b-43eb-9a91-ee4836e18072.Cd7YwKZL.js";import"./40dc46d9-a7fa-41c5-9ee0-dafdce2dd195.CYWZ-cKi.js";import"./628471c9-b488-4eb8-adb5-88be47ac4f1a.DHXzBZ_-.js";import"./7ea845ad-be30-435c-909b-004fc9666f3c.DKHCzKx5.js";const s=(t,n)=>{document.querySelector(`aside[render-name="acao"] div[action-id="${n}"]`)?.setAttribute("draggable",t.toString())};function C({id:t}){const r=p(e=>e.getContainer(t))(e=>e.emojiArea),a=i.useRef(null);return i.useEffect(()=>{const e=o=>{o.shiftKey&&o.key==="?"&&(o.preventDefault(),o.stopPropagation(),c(t,"?"))};return a.current.addEventListener("keydown",e),()=>{a?.current?.removeEventListener("keydown",e)}},[]),m.jsx("textarea",{id:t,ref:a,placeholder:r.placeholder,onClick:e=>e.stopPropagation(),onFocus:()=>s(!1,t),onBlur:()=>s(!0,t),value:r.text,onChange:e=>u(t,e.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:{lineHeight:"1.3",...r.heightCamp?{height:`${r.heightCamp}px`}:{}}})}export{C as default};
