// Network Weekend (Marty 2026-11-17): Black Friday to Cyber Monday 2026, Fri 11-27 00:00 CT to Tue 12-01 00:00 CT, exact instants // (late November is CST, UTC-6). On this site the deal is the owner's VABShop setSku: a $5 Boost carries 750 views instead of 500. // Nothing here changes what a Boost credits (the Purchase event's views do, shop.js); this only decides what the ribbon and the // chatbot say, always from the live chain value (chainskus.js syncBoost), so a late or early signature never shows a wrong number. // WEEKEND_NOW (ISO time) is the test clock: tests only, never set it on the server. 'use strict'; const START = Date.parse('2026-11-27T06:00:00Z'); // Fri 11-27 00:00 CT const END = Date.parse('2026-12-01T06:00:00Z'); // Tue 12-01 00:00 CT function now() { const o = process.env.WEEKEND_NOW; const t = o ? Date.parse(o) : NaN; return Number.isNaN(t) ? Date.now() : t; } function on(ms) { ms = ms == null ? now() : ms; return ms >= START && ms < END; } // more views than normal on chain right now (the owner has switched the SKU) const bonus = C => C.boost.normalViews != null && C.boost.views > C.boost.normalViews; // the ribbon's ViralAdBlitz line: only when the chain really holds the weekend Boost; otherwise no line rather than a wrong one function dealLine(C, d) { if (!bonus(C)) return null; const x = Object.assign({}, d, { text: 'A $' + C.boost.usd + ' Boost carries ' + C.boost.views.toLocaleString('en-US') + ' guaranteed views instead of ' + C.boost.normalViews.toLocaleString('en-US') + '.' }); delete x.byDay; return x; } module.exports = { START, END, now, on, bonus, dealLine };