unknown

system

const globals = { systemUrl: "https://system.availabooks.com", appUrl: "https://app.availabooks.com", // "https://local.availabooks.com:2732", bookInfo: null, pageData: {}, variables: {}, user: {}, courses: [], assessment:{}, /** @type {{ lastByBook?: Record } | null} */ bookActivity: null, /** When true, section changes are saved to the course book-activity API. */ trackBookActivity: false, /** @type {ReturnType | null} */ bookActivitySaveTimer: null, /** Last section id applied by scroll-spy ("" = chapter intro / no hash). */ lastScrollSectionKey: null, /** When true, scroll-spy will not rewrite the location hash. */ suppressSectionScrollSpy: false, /** Cross-tab auth sync client from Pro `/auth-sync.js`, when loaded. */ authSync: null, /** Publishes queued until authSync is ready. */ authSyncPending: [], /** @type {Promise} Resolves once the first getUserRecord() call has settled globals.user - see resolveUserReady below. */ userReady: null, } // `const globals` only becomes a bare-identifier global, not a `window` // property - fine when every module runs as a plain