Rocky_Mountain_Vending/.pnpm-store/v10/files/83/d95cc8e6eced1f244955dd1ccc4f3fb2d5b81376f0cb0e89e760ba8c28163a735a8fc548f1bfeeb3e318366b59cb347b12d3f670117c083685298036d403f6
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
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>
2026-02-12 16:22:15 -07:00

1 line
No EOL
6 KiB
Text

{"version":3,"sources":["../../../../src/server/route-matcher-providers/dev/dev-app-page-route-matcher-provider.ts"],"sourcesContent":["import type { FileReader } from './helpers/file-reader/file-reader'\nimport { AppPageRouteMatcher } from '../../route-matchers/app-page-route-matcher'\nimport { RouteKind } from '../../route-kind'\nimport { FileCacheRouteMatcherProvider } from './file-cache-route-matcher-provider'\n\nimport { DevAppNormalizers } from '../../normalizers/built/app'\nimport { normalizeCatchAllRoutes } from '../../../build/normalize-catchall-routes'\n\nexport class DevAppPageRouteMatcherProvider extends FileCacheRouteMatcherProvider<AppPageRouteMatcher> {\n private readonly expression: RegExp\n private readonly normalizers: DevAppNormalizers\n private readonly isTurbopack: boolean\n\n constructor(\n appDir: string,\n extensions: ReadonlyArray<string>,\n reader: FileReader,\n isTurbopack: boolean\n ) {\n super(appDir, reader)\n\n this.normalizers = new DevAppNormalizers(appDir, extensions, isTurbopack)\n\n // Match any page file that ends with `/page.${extension}` or `/default.${extension}` under the app\n // directory.\n this.expression = new RegExp(\n `[/\\\\\\\\](page|default)\\\\.(?:${extensions.join('|')})$`\n )\n this.isTurbopack = isTurbopack\n }\n\n protected async transform(\n files: ReadonlyArray<string>\n ): Promise<ReadonlyArray<AppPageRouteMatcher>> {\n // Collect all the app paths for each page. This could include any parallel\n // routes.\n const cache = new Map<\n string,\n { page: string; pathname: string; bundlePath: string }\n >()\n const routeFilenames = new Array<string>()\n let appPaths: Record<string, string[]> = {}\n for (const filename of files) {\n // If the file isn't a match for this matcher, then skip it.\n if (!this.expression.test(filename)) continue\n\n let page = this.normalizers.page.normalize(filename)\n\n // Validate that this is not an ignored page.\n if (page.includes('/_')) continue\n\n // Turbopack uses the correct page name with the underscore normalized.\n // TODO: Move implementation to packages/next/src/server/normalizers/built/app/app-page-normalizer.ts.\n // The `includes('/_')` check above needs to be moved for that to work as otherwise `%5Fsegmentname`\n // will result in `_segmentname` which hits that includes check and be skipped.\n if (this.isTurbopack) {\n page = page.replace(/%5F/g, '_')\n }\n\n // This is a valid file that we want to create a matcher for.\n routeFilenames.push(filename)\n\n const pathname = this.normalizers.pathname.normalize(filename)\n const bundlePath = this.normalizers.bundlePath.normalize(filename)\n\n // Save the normalization results.\n cache.set(filename, { page, pathname, bundlePath })\n\n if (pathname in appPaths) appPaths[pathname].push(page)\n else appPaths[pathname] = [page]\n }\n\n normalizeCatchAllRoutes(appPaths)\n\n // Make sure to sort parallel routes to make the result deterministic.\n appPaths = Object.fromEntries(\n Object.entries(appPaths).map(([k, v]) => [k, v.sort()])\n )\n\n const matchers: Array<AppPageRouteMatcher> = []\n for (const filename of routeFilenames) {\n // Grab the cached values (and the appPaths).\n const cached = cache.get(filename)\n if (!cached) {\n throw new Error('Invariant: expected filename to exist in cache')\n }\n const { pathname, page, bundlePath } = cached\n\n matchers.push(\n new AppPageRouteMatcher({\n kind: RouteKind.APP_PAGE,\n pathname,\n page,\n bundlePath,\n filename,\n appPaths: appPaths[pathname],\n })\n )\n }\n return matchers\n }\n}\n"],"names":["DevAppPageRouteMatcherProvider","FileCacheRouteMatcherProvider","constructor","appDir","extensions","reader","isTurbopack","normalizers","DevAppNormalizers","expression","RegExp","join","transform","files","cache","Map","routeFilenames","Array","appPaths","filename","test","page","normalize","includes","replace","push","pathname","bundlePath","set","normalizeCatchAllRoutes","Object","fromEntries","entries","map","k","v","sort","matchers","cached","get","Error","AppPageRouteMatcher","kind","RouteKind","APP_PAGE"],"mappings":";;;;+BAQaA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