✨ 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
86 lines
4.2 KiB
JavaScript
86 lines
4.2 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
Object.defineProperty(exports, "eventCliSession", {
|
|
enumerable: true,
|
|
get: function() {
|
|
return eventCliSession;
|
|
}
|
|
});
|
|
const _path = /*#__PURE__*/ _interop_require_default(require("path"));
|
|
function _interop_require_default(obj) {
|
|
return obj && obj.__esModule ? obj : {
|
|
default: obj
|
|
};
|
|
}
|
|
const EVENT_VERSION = "NEXT_CLI_SESSION_STARTED";
|
|
function hasBabelConfig(dir) {
|
|
try {
|
|
var _res_options_presets, _res_options, _res_options_plugins, _res_options1;
|
|
const noopFile = _path.default.join(dir, "noop.js");
|
|
const res = require("next/dist/compiled/babel/core").loadPartialConfig({
|
|
cwd: dir,
|
|
filename: noopFile,
|
|
sourceFileName: noopFile
|
|
});
|
|
const isForTooling = ((_res_options = res.options) == null ? void 0 : (_res_options_presets = _res_options.presets) == null ? void 0 : _res_options_presets.every((e)=>{
|
|
var _e_file;
|
|
return (e == null ? void 0 : (_e_file = e.file) == null ? void 0 : _e_file.request) === "next/babel";
|
|
})) && ((_res_options1 = res.options) == null ? void 0 : (_res_options_plugins = _res_options1.plugins) == null ? void 0 : _res_options_plugins.length) === 0;
|
|
return res.hasFilesystemConfig() && !isForTooling;
|
|
} catch {
|
|
return false;
|
|
}
|
|
}
|
|
function eventCliSession(dir, nextConfig, event) {
|
|
var _nextConfig_experimental_staleTimes, _nextConfig_experimental_staleTimes1;
|
|
// This should be an invariant, if it fails our build tooling is broken.
|
|
if (typeof "14.2.30" !== "string") {
|
|
return [];
|
|
}
|
|
const { images, i18n } = nextConfig || {};
|
|
const payload = {
|
|
nextVersion: "14.2.30",
|
|
nodeVersion: process.version,
|
|
cliCommand: event.cliCommand,
|
|
isSrcDir: event.isSrcDir,
|
|
hasNowJson: event.hasNowJson,
|
|
isCustomServer: event.isCustomServer,
|
|
hasNextConfig: nextConfig.configOrigin !== "default",
|
|
buildTarget: "default",
|
|
hasWebpackConfig: typeof (nextConfig == null ? void 0 : nextConfig.webpack) === "function",
|
|
hasBabelConfig: hasBabelConfig(dir),
|
|
imageEnabled: !!images,
|
|
imageFutureEnabled: !!images,
|
|
basePathEnabled: !!(nextConfig == null ? void 0 : nextConfig.basePath),
|
|
i18nEnabled: !!i18n,
|
|
locales: (i18n == null ? void 0 : i18n.locales) ? i18n.locales.join(",") : null,
|
|
localeDomainsCount: (i18n == null ? void 0 : i18n.domains) ? i18n.domains.length : null,
|
|
localeDetectionEnabled: !i18n ? null : i18n.localeDetection !== false,
|
|
imageDomainsCount: (images == null ? void 0 : images.domains) ? images.domains.length : null,
|
|
imageRemotePatternsCount: (images == null ? void 0 : images.remotePatterns) ? images.remotePatterns.length : null,
|
|
imageLocalPatternsCount: (images == null ? void 0 : images.localPatterns) ? images.localPatterns.length : null,
|
|
imageSizes: (images == null ? void 0 : images.imageSizes) ? images.imageSizes.join(",") : null,
|
|
imageQualities: (images == null ? void 0 : images.qualities) ? images.qualities.join(",") : null,
|
|
imageLoader: images == null ? void 0 : images.loader,
|
|
imageFormats: (images == null ? void 0 : images.formats) ? images.formats.join(",") : null,
|
|
nextConfigOutput: (nextConfig == null ? void 0 : nextConfig.output) || null,
|
|
trailingSlashEnabled: !!(nextConfig == null ? void 0 : nextConfig.trailingSlash),
|
|
reactStrictMode: !!(nextConfig == null ? void 0 : nextConfig.reactStrictMode),
|
|
webpackVersion: event.webpackVersion || null,
|
|
turboFlag: event.turboFlag || false,
|
|
appDir: event.appDir,
|
|
pagesDir: event.pagesDir,
|
|
staticStaleTime: ((_nextConfig_experimental_staleTimes = nextConfig.experimental.staleTimes) == null ? void 0 : _nextConfig_experimental_staleTimes.static) ?? null,
|
|
dynamicStaleTime: ((_nextConfig_experimental_staleTimes1 = nextConfig.experimental.staleTimes) == null ? void 0 : _nextConfig_experimental_staleTimes1.dynamic) ?? null
|
|
};
|
|
return [
|
|
{
|
|
eventName: EVENT_VERSION,
|
|
payload
|
|
}
|
|
];
|
|
}
|
|
|
|
//# sourceMappingURL=version.js.map
|