// /my: signed-in member: checks, credits, the share box. Signed out: the network sign-in button.
(function () {
'use strict';
var out = WWI.$('out'), esc = WWI.esc;
fetch('/api/me').then(function (r) { return r.json(); }).then(function (j) {
if (!j.member) {
out.innerHTML = '
Sign in with the networkUse your InstantAdPay or LinkSpin account: one account across the network. Signing in never asks you to connect a wallet.'
+ (j.sso ? 'Sign in with the network' : 'Network sign-in is not switched on for this staging site yet.') + '
Share WebWorthItYour referral link. When someone you referred buys a report, you earn 20% as their direct sponsor, plus 5% on levels 2 to 5 of your team. You earn only when people choose to buy.