Files
Laca-City/frontend/node_modules/next/dist/server/load-components.js
PhongPham c65cc97a33 🎯 MapView v2.0 - Global Deployment Ready
 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
2025-07-20 19:52:16 +07:00

128 lines
5.1 KiB
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
evalManifestWithRetries: null,
loadComponents: null,
loadManifestWithRetries: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
evalManifestWithRetries: function() {
return evalManifestWithRetries;
},
loadComponents: function() {
return loadComponents;
},
loadManifestWithRetries: function() {
return loadManifestWithRetries;
}
});
const _constants = require("../shared/lib/constants");
const _path = require("path");
const _require = require("./require");
const _interopdefault = require("../lib/interop-default");
const _tracer = require("./lib/trace/tracer");
const _constants1 = require("./lib/trace/constants");
const _loadmanifest = require("./load-manifest");
const _wait = require("../lib/wait");
const _encryptionutils = require("./app-render/encryption-utils");
const _actionutils = require("./app-render/action-utils");
async function loadManifestWithRetries(manifestPath, attempts = 3) {
while(true){
try {
return (0, _loadmanifest.loadManifest)(manifestPath);
} catch (err) {
attempts--;
if (attempts <= 0) throw err;
await (0, _wait.wait)(100);
}
}
}
async function evalManifestWithRetries(manifestPath, attempts = 3) {
while(true){
try {
return (0, _loadmanifest.evalManifest)(manifestPath);
} catch (err) {
attempts--;
if (attempts <= 0) throw err;
await (0, _wait.wait)(100);
}
}
}
async function loadClientReferenceManifest(manifestPath, entryName, attempts) {
try {
const context = await evalManifestWithRetries(manifestPath, attempts);
return context.__RSC_MANIFEST[entryName];
} catch (err) {
return undefined;
}
}
async function loadComponentsImpl({ distDir, page, isAppPath, isDev }) {
let DocumentMod = {};
let AppMod = {};
if (!isAppPath) {
[DocumentMod, AppMod] = await Promise.all([
Promise.resolve().then(()=>(0, _require.requirePage)("/_document", distDir, false)),
Promise.resolve().then(()=>(0, _require.requirePage)("/_app", distDir, false))
]);
}
// Make sure to avoid loading the manifest for Route Handlers
const hasClientManifest = isAppPath && (page.endsWith("/page") || page === _constants.UNDERSCORE_NOT_FOUND_ROUTE);
// In dev mode we retry loading a manifest file to handle a race condition
// that can occur while app and pages are compiling at the same time, and the
// build-manifest is still being written to disk while an app path is
// attempting to load.
const manifestLoadAttempts = isDev ? 3 : 1;
// Load the manifest files first
const [buildManifest, reactLoadableManifest, clientReferenceManifest, serverActionsManifest] = await Promise.all([
loadManifestWithRetries((0, _path.join)(distDir, _constants.BUILD_MANIFEST), manifestLoadAttempts),
loadManifestWithRetries((0, _path.join)(distDir, _constants.REACT_LOADABLE_MANIFEST), manifestLoadAttempts),
hasClientManifest ? loadClientReferenceManifest((0, _path.join)(distDir, "server", "app", page.replace(/%5F/g, "_") + "_" + _constants.CLIENT_REFERENCE_MANIFEST + ".js"), page.replace(/%5F/g, "_"), manifestLoadAttempts) : undefined,
isAppPath ? loadManifestWithRetries((0, _path.join)(distDir, "server", _constants.SERVER_REFERENCE_MANIFEST + ".json"), manifestLoadAttempts).catch(()=>null) : null
]);
// Before requring the actual page module, we have to set the reference manifests
// to our global store so Server Action's encryption util can access to them
// at the top level of the page module.
if (serverActionsManifest && clientReferenceManifest) {
(0, _encryptionutils.setReferenceManifestsSingleton)({
clientReferenceManifest,
serverActionsManifest,
serverModuleMap: (0, _actionutils.createServerModuleMap)({
serverActionsManifest,
pageName: page
})
});
}
const ComponentMod = await Promise.resolve().then(()=>(0, _require.requirePage)(page, distDir, isAppPath));
const Component = (0, _interopdefault.interopDefault)(ComponentMod);
const Document = (0, _interopdefault.interopDefault)(DocumentMod);
const App = (0, _interopdefault.interopDefault)(AppMod);
const { getServerSideProps, getStaticProps, getStaticPaths, routeModule } = ComponentMod;
return {
App,
Document,
Component,
buildManifest,
reactLoadableManifest,
pageConfig: ComponentMod.config || {},
ComponentMod,
getServerSideProps,
getStaticProps,
getStaticPaths,
clientReferenceManifest,
serverActionsManifest,
isAppPath,
page,
routeModule
};
}
const loadComponents = (0, _tracer.getTracer)().wrap(_constants1.LoadComponentsSpan.loadComponents, loadComponentsImpl);
//# sourceMappingURL=load-components.js.map