import{j as m}from"./7ee2072d-4dc9-4371-9c01-8261dc99176e.DU6dOwt5.js";import{r as i}from"./07a391ae-cb03-44e8-9dc3-2adfaa0f0d7b.Co0aK9Ho.js";import{a as p,s as u}from"../../index.js";import{s as c}from"./index.6cqiAEjd.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";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};
