"use strict"; /** Safe empty payloads when a dashboard subsection fails or times out. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.dashboardFallbacks = void 0; const emptySegment = () => ({ users: 0, predictions: 0, stakeRaw: 0, netPnlRaw: 0, winRate: 0, }); const emptyMoneyKpi = () => ({ totalAmountRaw: 0, totalCount: 0, uniqueUsers: 0, averagePerUserRaw: 0, maxAmountRaw: 0, }); exports.dashboardFallbacks = { users: { totalUsers: 0, newUsers: 0, activeUsers: 0, inactiveUsers: 0, signupGrowthRate: 0, onlineNow: 0, onlineInApp: 0, adminCount: 0, }, deposits: emptyMoneyKpi(), withdrawals: emptyMoneyKpi(), bonuses: { totalAmountRaw: 0, uniqueUsers: 0, averagePerUserRaw: 0, byType: { manualBonusRaw: 0, referralCommissionRaw: 0 }, }, adjustments: { uniqueUsers: 0, totalAmountRaw: 0, averageRaw: 0, }, balances: { mainWalletRaw: 0, bonusWalletRaw: 0, testWalletRaw: 0, totalRaw: 0, distribution: [], }, performance: { platformNetPnlRaw: 0, platformNetPnlTestRaw: 0, bonusCostRaw: 0, adjustmentCostRaw: 0, depositWithdrawalRatio: null, }, games: { participation: { uniqueParticipants: 0, totalPredictions: 0, avgPredictionsPerUser: 0, totalStakeRaw: 0, }, manual: emptySegment(), auto: emptySegment(), multiCandle: emptySegment(), testWallet: { uniqueUsers: 0, totalStakeRaw: 0, netPnlRaw: 0 }, cross: { realManual: emptySegment(), realAuto: emptySegment(), realMulti: emptySegment(), testManual: emptySegment(), testAuto: emptySegment(), testMulti: emptySegment(), }, }, security: { emailVerified: 0, emailUnverified: 0, totpEnabled: 0, totpDisabled: 0, suspendedAccounts: 0, disabledAccounts: 0, expiredAccounts: 0, credentialsExpired: 0, underSurveillance: 0, withdrawalsBlocked: 0, }, activity: { activeToday: 0, activeThisWeek: 0, activeThisMonth: 0, inactiveInPeriod: 0, }, recentLogins: [], geography: [], demographics: { byGender: [], byAge: [], }, charts: { signups: [], activeUsers: [], verifiedUsers: [], totpEnabled: [], deposits: [], withdrawals: [], bonuses: [], adjustments: [], netPnl: [], predictionsManual: [], predictionsAuto: [], predictionsMultiCandle: [], shortVsLong: [], byInterval: [], loginHours: [], betHours: [], retention: { newUsers: 0, returningUsers: 0 }, }, alerts: { openAlertsCount: 0, failedLoginAlerts: 0, depositSpike: { currentRaw: 0, previousRaw: 0, spikePercent: 0, isUnusual: false }, withdrawalSpike: { currentRaw: 0, previousRaw: 0, spikePercent: 0, isUnusual: false }, recentAlerts: [], }, settings: { allow_withdrawals: true }, }; //# sourceMappingURL=analyticsDashboardFallbacks.js.map