import{u as r}from"./v_7_4_3_16_fa303664-d39f-4aec-85e8-7c81b2445eab46.js";const m=(c,n)=>{const s=r.getState().getContainer(c),t=s.getState().emojiArea;if(t){const e=document.querySelector(`aside[render-name='emojiArea'] #${CSS.escape(t.id)}`),o=e.selectionStart||0,i=e.selectionEnd||0,a=e.value.slice(0,o)+n+e.value.slice(i);t.setText(a),s.setState({emojiArea:{...t,text:a}}),setTimeout(()=>{e.selectionStart=o+n.length,e.selectionEnd=o+n.length,e.focus()},150)}};export{m as s};
