Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
47 lines
No EOL
1.1 KiB
Text
47 lines
No EOL
1.1 KiB
Text
"use strict";
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
0 && (module.exports = {
|
|
createFallbackRouteParam: null,
|
|
encodeParam: null,
|
|
normalizePathname: null
|
|
});
|
|
function _export(target, all) {
|
|
for(var name in all)Object.defineProperty(target, name, {
|
|
enumerable: true,
|
|
get: all[name]
|
|
});
|
|
}
|
|
_export(exports, {
|
|
createFallbackRouteParam: function() {
|
|
return createFallbackRouteParam;
|
|
},
|
|
encodeParam: function() {
|
|
return encodeParam;
|
|
},
|
|
normalizePathname: function() {
|
|
return normalizePathname;
|
|
}
|
|
});
|
|
function encodeParam(value, encoder) {
|
|
let replaceValue;
|
|
if (Array.isArray(value)) {
|
|
replaceValue = value.map(encoder).join('/');
|
|
} else {
|
|
replaceValue = encoder(value);
|
|
}
|
|
return replaceValue;
|
|
}
|
|
function normalizePathname(pathname) {
|
|
return pathname.replace(/\\/g, '/').replace(/(?!^)\/$/, '');
|
|
}
|
|
function createFallbackRouteParam(paramName, paramType, isParallelRouteParam) {
|
|
return {
|
|
paramName,
|
|
paramType,
|
|
isParallelRouteParam
|
|
};
|
|
}
|
|
|
|
//# sourceMappingURL=utils.js.map |