/*!
 * Built by Revolist OU ❤️
 */
/**
 * Converts a VNode element into an HTML element and appends it to the specified parentHolder.
 */
export function convertVNodeToHTML(parentHolder, redraw) {
    return new Promise(resolve => {
        const vnode = document.createElement('vnode-html');
        parentHolder.appendChild(vnode);
        vnode.redraw = redraw;
        vnode.addEventListener('html', e => {
            vnode.remove();
            resolve(e.detail);
        });
    });
}
