// The first start (spec ยง10.3): not connected and an empty library. The demo always has a library, so the screen is // drawn here into the page body, as the library draws it when it finds nothing, with the header count of an empty one. const { welcome } = await import('/js/pages/welcome.js'); const { t } = await import('/js/core/text.js'); const body = document.querySelector('.corpo'); body.replaceChildren(welcome()); document.querySelector('.strumenti')?.setAttribute('hidden', ''); const count = document.querySelector('.testa .quanti'); if (count) count.textContent = t('libreria.quanti', { elementi: t('comune.elementi', { n: 0 }), account: t('comune.account', { n: 0 }) }); await new Promise((r) => setTimeout(r, 300)); return [document.querySelectorAll('.benvenuto .btn').length, count?.textContent];