✨ MAJOR FEATURES: • Auto-zoom intelligence với smart bounds fitting • Enhanced 3D GPS markers với pulsing effects • Professional route display với 6-layer rendering • Status-based parking icons với availability indicators • Production-ready build optimizations 🗺️ AUTO-ZOOM FEATURES: • Smart bounds fitting cho GPS + selected parking • Adaptive padding (50px) cho visual balance • Max zoom control (level 16) để tránh quá gần • Dynamic centering khi không có selection 🎨 ENHANCED VISUALS: • 3D GPS marker với multi-layer pulse effects • Advanced parking icons với status colors • Selection highlighting với animation • Dimming system cho non-selected items 🛣️ ROUTE SYSTEM: • OpenRouteService API integration • Multi-layer route rendering (glow, shadow, main, animated) • Real-time distance & duration calculation • Visual route info trong popup 📱 PRODUCTION READY: • SSR safe với dynamic imports • Build errors resolved • Global deployment via Vercel • Optimized performance 🌍 DEPLOYMENT: • Vercel: https://whatever-ctk2auuxr-phong12hexdockworks-projects.vercel.app • Bundle size: 22.8 kB optimized • Global CDN distribution • HTTPS enabled 💾 VERSION CONTROL: • MapView-v2.0.tsx backup created • MAPVIEW_VERSIONS.md documentation • Full version history tracking
31 lines
1.4 KiB
JavaScript
31 lines
1.4 KiB
JavaScript
// The minimum length of the national significant number.
|
|
export const MIN_LENGTH_FOR_NSN = 2
|
|
|
|
// The ITU says the maximum length should be 15,
|
|
// but one can find longer numbers in Germany.
|
|
export const MAX_LENGTH_FOR_NSN = 17
|
|
|
|
// The maximum length of the country calling code.
|
|
export const MAX_LENGTH_COUNTRY_CODE = 3
|
|
|
|
// Digits accepted in phone numbers
|
|
// (ascii, fullwidth, arabic-indic, and eastern arabic digits).
|
|
export const VALID_DIGITS = '0-9\uFF10-\uFF19\u0660-\u0669\u06F0-\u06F9'
|
|
|
|
// `DASHES` will be right after the opening square bracket of the "character class"
|
|
const DASHES = '-\u2010-\u2015\u2212\u30FC\uFF0D'
|
|
const SLASHES = '\uFF0F/'
|
|
const DOTS = '\uFF0E.'
|
|
export const WHITESPACE = ' \u00A0\u00AD\u200B\u2060\u3000'
|
|
const BRACKETS = '()\uFF08\uFF09\uFF3B\uFF3D\\[\\]'
|
|
// export const OPENING_BRACKETS = '(\uFF08\uFF3B\\\['
|
|
const TILDES = '~\u2053\u223C\uFF5E'
|
|
|
|
// Regular expression of acceptable punctuation found in phone numbers. This
|
|
// excludes punctuation found as a leading character only. This consists of dash
|
|
// characters, white space characters, full stops, slashes, square brackets,
|
|
// parentheses and tildes. Full-width variants are also present.
|
|
export const VALID_PUNCTUATION = `${DASHES}${SLASHES}${DOTS}${WHITESPACE}${BRACKETS}${TILDES}`
|
|
|
|
export const PLUS_CHARS = '+\uFF0B'
|
|
// const LEADING_PLUS_CHARS_PATTERN = new RegExp('^[' + PLUS_CHARS + ']+')
|