fix chart

This commit is contained in:
2026-06-21 20:27:13 +03:30
parent bbca1c8991
commit 5586985d1e
21 changed files with 1727 additions and 1147 deletions
+17
View File
@@ -0,0 +1,17 @@
export const DEPLOY_ADMIN_MOBILE = '09128081392'
const DEPLOY_ADMIN_MOBILE_CORE = '9128081392'
export function normalizeMobile(mobile?: string | number | null): string {
let digits = String(mobile ?? '').replace(/\D/g, '')
if (digits.startsWith('98') && digits.length >= 12) {
digits = digits.slice(2)
}
if (digits.length === 11 && digits.startsWith('0')) {
digits = digits.slice(1)
}
return digits
}
export function isDeployAdmin(mobile?: string | number | null): boolean {
return normalizeMobile(mobile) === DEPLOY_ADMIN_MOBILE_CORE
}