Rocky_Mountain_Vending/.pnpm-store/v10/files/72/7c8f7beb48c5434ae68b1b1f34578d0cd36795e0871dd6b925dc4c7ada3759405037848bae2d24a2923347186ef9af0e9255c653f51db0859b5555d6d533cb
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
7.7 KiB
Text

{"version":3,"sources":["../../../../src/server/route-matcher-providers/dev/dev-app-route-route-matcher-provider.ts"],"sourcesContent":["import type { FileReader } from './helpers/file-reader/file-reader'\nimport type { Normalizer } from '../../normalizers/normalizer'\nimport { AppRouteRouteMatcher } from '../../route-matchers/app-route-route-matcher'\nimport { RouteKind } from '../../route-kind'\nimport { FileCacheRouteMatcherProvider } from './file-cache-route-matcher-provider'\nimport { isAppRouteRoute } from '../../../lib/is-app-route-route'\nimport { DevAppNormalizers } from '../../normalizers/built/app'\nimport {\n isMetadataRouteFile,\n isStaticMetadataRoute,\n isStaticMetadataFile,\n} from '../../../lib/metadata/is-metadata-route'\nimport { normalizeMetadataPageToRoute } from '../../../lib/metadata/get-metadata-route'\nimport path from '../../../shared/lib/isomorphic/path'\n\nexport class DevAppRouteRouteMatcherProvider extends FileCacheRouteMatcherProvider<AppRouteRouteMatcher> {\n private readonly normalizers: {\n page: Normalizer\n pathname: Normalizer\n bundlePath: Normalizer\n }\n private readonly appDir: string\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.appDir = appDir\n this.isTurbopack = isTurbopack\n this.normalizers = new DevAppNormalizers(appDir, extensions, isTurbopack)\n }\n\n protected async transform(\n files: ReadonlyArray<string>\n ): Promise<ReadonlyArray<AppRouteRouteMatcher>> {\n const matchers: Array<AppRouteRouteMatcher> = []\n for (const filename of files) {\n // Skip static metadata files as they are served from filesystem.\n if (isStaticMetadataFile(filename.replace(this.appDir, ''))) {\n continue\n }\n\n let page = this.normalizers.page.normalize(filename)\n\n // If the file isn't a match for this matcher, then skip it.\n if (!isAppRouteRoute(page)) continue\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 const pathname = this.normalizers.pathname.normalize(filename)\n const bundlePath = this.normalizers.bundlePath.normalize(filename)\n const ext = path.extname(filename).slice(1)\n const isEntryMetadataRouteFile = isMetadataRouteFile(\n filename.replace(this.appDir, ''),\n [ext],\n true\n )\n\n if (isEntryMetadataRouteFile && !isStaticMetadataRoute(page)) {\n // Matching dynamic metadata routes.\n // Add 2 possibilities for both single and multiple routes:\n {\n // single:\n // /sitemap.ts -> /sitemap.xml/route\n // /icon.ts -> /icon/route\n // We'll map the filename before normalization:\n // sitemap.ts -> sitemap.xml/route.ts\n // icon.ts -> icon/route.ts\n const metadataPage = normalizeMetadataPageToRoute(page, false)\n const metadataPathname = normalizeMetadataPageToRoute(pathname, false)\n const metadataBundlePath = normalizeMetadataPageToRoute(\n bundlePath,\n false\n )\n\n const matcher = new AppRouteRouteMatcher({\n kind: RouteKind.APP_ROUTE,\n page: metadataPage,\n pathname: metadataPathname,\n bundlePath: metadataBundlePath,\n filename,\n })\n matchers.push(matcher)\n }\n {\n // multiple:\n // /sitemap.ts -> /sitemap/[__metadata_id__]/route\n // /icon.ts -> /icon/[__metadata_id__]/route\n // We'll map the filename before normalization:\n // sitemap.ts -> sitemap.xml/[__metadata_id__].ts\n // icon.ts -> icon/[__metadata_id__].ts\n const metadataPage = normalizeMetadataPageToRoute(page, true)\n const metadataPathname = normalizeMetadataPageToRoute(pathname, true)\n const metadataBundlePath = normalizeMetadataPageToRoute(\n bundlePath,\n true\n )\n\n const matcher = new AppRouteRouteMatcher({\n kind: RouteKind.APP_ROUTE,\n page: metadataPage,\n pathname: metadataPathname,\n bundlePath: metadataBundlePath,\n filename,\n })\n matchers.push(matcher)\n }\n } else {\n // Normal app routes.\n matchers.push(\n new AppRouteRouteMatcher({\n kind: RouteKind.APP_ROUTE,\n page,\n pathname,\n bundlePath,\n filename,\n })\n )\n }\n }\n\n return matchers\n }\n}\n"],"names":["DevAppRouteRouteMatcherProvider","FileCacheRouteMatcherProvider","constructor","appDir","extensions","reader","isTurbopack","normalizers","DevAppNormalizers","transform","files","matchers","filename","isStaticMetadataFile","replace","page","normalize","isAppRouteRoute","includes","pathname","bundlePath","ext","path","extname","slice","isEntryMetadataRouteFile","isMetadataRouteFile","isStaticMetadataRoute","metadataPage","normalizeMetadataPageToRoute","metadataPathname","metadataBundlePath","matcher","AppRouteRouteMatcher","kind","RouteKind","APP_ROUTE","push"],"mappings":";;;;+BAeaA;;;eAAAA;;;sCAbwB;2BACX;+CACoB;iCACd;qBACE;iCAK3B;kCACsC;6DAC5B;;;;;;AAEV,MAAMA,wCAAwCC,4DAA6B;IAShFC,YACEC,MAAc,EACdC,UAAiC,EACjCC,MAAkB,EAClBC,WAAoB,CACpB;QACA,KAAK,CAACH,QAAQE;QAEd,IAAI,CAACF,MAAM,GAAGA;QACd,IAAI,CAACG,WAAW,GAAGA;QACnB,IAAI,CAACC,WAAW,GAAG,IAAIC,sBAAiB,CAACL,QAAQC,YAAYE;IAC/D;IAEA,MAAgBG,UACdC,KAA4B,EACkB;QAC9C,MAAMC,WAAwC,EAAE;QAChD,KAAK,MAAMC,YAAYF,MAAO;YAC5B,iEAAiE;YACjE,IAAIG,IAAAA,qCAAoB,EAACD,SAASE,OAAO,CAAC,IAAI,CAACX,MAAM,EAAE,MAAM;gBAC3D;YACF;YA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