✨ 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
121 lines
4.5 KiB
JavaScript
121 lines
4.5 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
0 && (module.exports = {
|
|
getMaybePagePath: null,
|
|
getPagePath: null,
|
|
requireFontManifest: null,
|
|
requirePage: null
|
|
});
|
|
function _export(target, all) {
|
|
for(var name in all)Object.defineProperty(target, name, {
|
|
enumerable: true,
|
|
get: all[name]
|
|
});
|
|
}
|
|
_export(exports, {
|
|
getMaybePagePath: function() {
|
|
return getMaybePagePath;
|
|
},
|
|
getPagePath: function() {
|
|
return getPagePath;
|
|
},
|
|
requireFontManifest: function() {
|
|
return requireFontManifest;
|
|
},
|
|
requirePage: function() {
|
|
return requirePage;
|
|
}
|
|
});
|
|
const _path = /*#__PURE__*/ _interop_require_default(require("path"));
|
|
const _constants = require("../shared/lib/constants");
|
|
const _normalizelocalepath = require("../shared/lib/i18n/normalize-locale-path");
|
|
const _normalizepagepath = require("../shared/lib/page-path/normalize-page-path");
|
|
const _denormalizepagepath = require("../shared/lib/page-path/denormalize-page-path");
|
|
const _utils = require("../shared/lib/utils");
|
|
const _lrucache = /*#__PURE__*/ _interop_require_default(require("next/dist/compiled/lru-cache"));
|
|
const _loadmanifest = require("./load-manifest");
|
|
const _fs = require("fs");
|
|
function _interop_require_default(obj) {
|
|
return obj && obj.__esModule ? obj : {
|
|
default: obj
|
|
};
|
|
}
|
|
const isDev = process.env.NODE_ENV === "development";
|
|
const pagePathCache = !isDev ? new _lrucache.default({
|
|
max: 1000
|
|
}) : null;
|
|
function getMaybePagePath(page, distDir, locales, isAppPath) {
|
|
const cacheKey = `${page}:${distDir}:${locales}:${isAppPath}`;
|
|
let pagePath = pagePathCache == null ? void 0 : pagePathCache.get(cacheKey);
|
|
// If we have a cached path, we can return it directly.
|
|
if (pagePath) return pagePath;
|
|
const serverBuildPath = _path.default.join(distDir, _constants.SERVER_DIRECTORY);
|
|
let appPathsManifest;
|
|
if (isAppPath) {
|
|
appPathsManifest = (0, _loadmanifest.loadManifest)(_path.default.join(serverBuildPath, _constants.APP_PATHS_MANIFEST), !isDev);
|
|
}
|
|
const pagesManifest = (0, _loadmanifest.loadManifest)(_path.default.join(serverBuildPath, _constants.PAGES_MANIFEST), !isDev);
|
|
try {
|
|
page = (0, _denormalizepagepath.denormalizePagePath)((0, _normalizepagepath.normalizePagePath)(page));
|
|
} catch (err) {
|
|
console.error(err);
|
|
throw new _utils.PageNotFoundError(page);
|
|
}
|
|
const checkManifest = (manifest)=>{
|
|
let curPath = manifest[page];
|
|
if (!manifest[curPath] && locales) {
|
|
const manifestNoLocales = {};
|
|
for (const key of Object.keys(manifest)){
|
|
manifestNoLocales[(0, _normalizelocalepath.normalizeLocalePath)(key, locales).pathname] = pagesManifest[key];
|
|
}
|
|
curPath = manifestNoLocales[page];
|
|
}
|
|
return curPath;
|
|
};
|
|
if (appPathsManifest) {
|
|
pagePath = checkManifest(appPathsManifest);
|
|
}
|
|
if (!pagePath) {
|
|
pagePath = checkManifest(pagesManifest);
|
|
}
|
|
if (!pagePath) {
|
|
pagePathCache == null ? void 0 : pagePathCache.set(cacheKey, null);
|
|
return null;
|
|
}
|
|
pagePath = _path.default.join(serverBuildPath, pagePath);
|
|
pagePathCache == null ? void 0 : pagePathCache.set(cacheKey, pagePath);
|
|
return pagePath;
|
|
}
|
|
function getPagePath(page, distDir, locales, isAppPath) {
|
|
const pagePath = getMaybePagePath(page, distDir, locales, isAppPath);
|
|
if (!pagePath) {
|
|
throw new _utils.PageNotFoundError(page);
|
|
}
|
|
return pagePath;
|
|
}
|
|
function requirePage(page, distDir, isAppPath) {
|
|
const pagePath = getPagePath(page, distDir, undefined, isAppPath);
|
|
if (pagePath.endsWith(".html")) {
|
|
return _fs.promises.readFile(pagePath, "utf8").catch((err)=>{
|
|
throw new _utils.MissingStaticPage(page, err.message);
|
|
});
|
|
}
|
|
// since require is synchronous we can set the specific runtime
|
|
// we are requiring for the require-hook and then clear after
|
|
try {
|
|
process.env.__NEXT_PRIVATE_RUNTIME_TYPE = isAppPath ? "app" : "pages";
|
|
const mod = process.env.NEXT_MINIMAL ? __non_webpack_require__(pagePath) : require(pagePath);
|
|
return mod;
|
|
} finally{
|
|
process.env.__NEXT_PRIVATE_RUNTIME_TYPE = "";
|
|
}
|
|
}
|
|
function requireFontManifest(distDir) {
|
|
const serverBuildPath = _path.default.join(distDir, _constants.SERVER_DIRECTORY);
|
|
const fontManifest = (0, _loadmanifest.loadManifest)(_path.default.join(serverBuildPath, _constants.AUTOMATIC_FONT_OPTIMIZATION_MANIFEST));
|
|
return fontManifest;
|
|
}
|
|
|
|
//# sourceMappingURL=require.js.map
|