Update carousels, card hover, and IranBay branding.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-10-04 13:21:27 +03:30
co-authored by Cursor
commit 1153e8e78f
178 changed files with 30517 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
/** Normalize Iranian/local input to E.164 (e.g. +989121111111). */
export function toE164CellNumber(input: string): string {
const digits = input.replace(/\D/g, "");
if (!digits) {
return "";
}
if (digits.startsWith("98")) {
return `+${digits}`;
}
if (digits.startsWith("0")) {
return `+98${digits.slice(1)}`;
}
if (digits.length === 10 && digits.startsWith("9")) {
return `+98${digits}`;
}
return `+${digits}`;
}