import{u as r}from"./v_7_4_1_31_281d2484-5da9-48a8-8939-2c37d755bb5b47.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};
