✨ 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
3.7 KiB
JavaScript
121 lines
3.7 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
0 && (module.exports = {
|
|
default: null,
|
|
defineConfig: null,
|
|
test: null
|
|
});
|
|
function _export(target, all) {
|
|
for(var name in all)Object.defineProperty(target, name, {
|
|
enumerable: true,
|
|
get: all[name]
|
|
});
|
|
}
|
|
_export(exports, {
|
|
default: function() {
|
|
return _default;
|
|
},
|
|
defineConfig: function() {
|
|
return _index.defineConfig;
|
|
},
|
|
test: function() {
|
|
return test;
|
|
}
|
|
});
|
|
0 && __export(require("msw")) && __export(require("@playwright/test"));
|
|
const _index = require("./index");
|
|
const _msw = _export_star(require("msw"), exports);
|
|
const _stricteventemitter = require("strict-event-emitter");
|
|
_export_star(require("@playwright/test"), exports);
|
|
function _export_star(from, to) {
|
|
Object.keys(from).forEach(function(k) {
|
|
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
Object.defineProperty(to, k, {
|
|
enumerable: true,
|
|
get: function() {
|
|
return from[k];
|
|
}
|
|
});
|
|
}
|
|
});
|
|
return from;
|
|
}
|
|
const test = _index.test.extend({
|
|
mswHandlers: [
|
|
[],
|
|
{
|
|
option: true
|
|
}
|
|
],
|
|
msw: [
|
|
async ({ next, mswHandlers }, use)=>{
|
|
const handlers = [
|
|
...mswHandlers
|
|
];
|
|
const emitter = new _stricteventemitter.Emitter();
|
|
next.onFetch(async (request)=>{
|
|
const { body, method, headers, credentials, cache, redirect, integrity, keepalive, mode, destination, referrer, referrerPolicy } = request;
|
|
const mockedRequest = new _msw.MockedRequest(new URL(request.url), {
|
|
body: body ? await request.arrayBuffer() : undefined,
|
|
method,
|
|
headers: Object.fromEntries(headers),
|
|
credentials,
|
|
cache,
|
|
redirect,
|
|
integrity,
|
|
keepalive,
|
|
mode,
|
|
destination,
|
|
referrer,
|
|
referrerPolicy
|
|
});
|
|
let isUnhandled = false;
|
|
let isPassthrough = false;
|
|
let mockedResponse;
|
|
await (0, _msw.handleRequest)(mockedRequest, handlers.slice(0), {
|
|
onUnhandledRequest: ()=>{
|
|
isUnhandled = true;
|
|
}
|
|
}, emitter, {
|
|
onPassthroughResponse: ()=>{
|
|
isPassthrough = true;
|
|
},
|
|
onMockedResponse: (r)=>{
|
|
mockedResponse = r;
|
|
}
|
|
});
|
|
if (isUnhandled) {
|
|
return undefined;
|
|
}
|
|
if (isPassthrough) {
|
|
return "continue";
|
|
}
|
|
if (mockedResponse) {
|
|
const { status, headers: responseHeaders, body: responseBody, delay } = mockedResponse;
|
|
if (delay) {
|
|
await new Promise((resolve)=>setTimeout(resolve, delay));
|
|
}
|
|
return new Response(responseBody, {
|
|
status,
|
|
headers: new Headers(responseHeaders)
|
|
});
|
|
}
|
|
return "abort";
|
|
});
|
|
await use({
|
|
use: (...newHandlers)=>{
|
|
handlers.unshift(...newHandlers);
|
|
}
|
|
});
|
|
handlers.length = 0;
|
|
},
|
|
{
|
|
auto: true
|
|
}
|
|
]
|
|
});
|
|
const _default = test;
|
|
|
|
//# sourceMappingURL=msw.js.map
|