{ openedData = null }}>
{openedData.name}
{#if openedData.authorname}
Made by {openedData.authorname}
{/if} {#if openedData.original}
{ const original = openedData.original openedData = null getRealmInfo(original) }}>Forked
{/if}
{#each openedData.tags as tag, i}
{tag}
{/each}
{language.popularityLevel.replace('{}', openedData.download.toString())}
{#if openedData.hasEmotion}
{ alertNormal("This character includes emotion images") })}>
{/if} {#if openedData.hasAsset}
{ alertNormal("This character includes additional Assets") })}>
{/if} {#if openedData.hasLore}
{ alertNormal("This character includes lorebook") })}>
{/if}
{ e.stopPropagation() const conf = await alertConfirm('Report this character?') if(conf){ const report = await alertInput('Write a report text that would be sent to the admin (for copywrite issues, use email)') const da = await fetch(hubURL + '/hub/report', { method: "POST", body: JSON.stringify({ id: openedData.id, report: report }) }) alertNormal(await da.text()) } })}>
{#if (DBState.db.account?.token?.split('-') ?? [])[1] === openedData.creator}
{ e.stopPropagation() const conf = await alertConfirm('Do you want to remove this character from Realm?') if(conf){ const da = await fetch(hubURL + '/hub/remove', { method: "POST", body: JSON.stringify({ id: openedData.id, token: DBState.db.account?.token }) }) alertNormal(await da.text()) } })}>
{/if}
{ e.stopPropagation() await navigator.clipboard.writeText(`https://realm.risuai.net/character/${openedData.id}`) alertNormal(language.clipboardSuccess) })}>
{ downloadRisuHub(openedData.id) openedData = null }}> Chat