Rocky_Mountain_Vending/.pnpm-store/v10/files/a8/204fc010df61eb6769ef4ebe4000b3c2b8f7a6cf96decaae968c4c2954755f97d3ad848cbe7fadf93cb47a25be463ec13149b6967081b3c00eeb46893ddfd6
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
3 KiB
Text

{"version":3,"sources":["../../../../src/build/segment-config/app/collect-root-param-keys.ts"],"sourcesContent":["import { getSegmentParam } from '../../../shared/lib/router/utils/get-segment-param'\nimport type AppPageRouteModule from '../../../server/route-modules/app-page/module'\nimport {\n isAppPageRouteModule,\n isAppRouteRouteModule,\n} from '../../../server/route-modules/checks'\nimport type { RouteModule } from '../../../server/route-modules/route-module'\nimport { InvariantError } from '../../../shared/lib/invariant-error'\n\nfunction collectAppPageRootParamKeys(\n routeModule: AppPageRouteModule\n): readonly string[] {\n let rootParams: string[] = []\n\n let current = routeModule.userland.loaderTree\n while (current) {\n const [name, parallelRoutes, modules] = current\n\n // If this is a dynamic segment, then we collect the param.\n const param = getSegmentParam(name)?.param\n if (param) {\n rootParams.push(param)\n }\n\n // If this has a layout module, then we've found the root layout because\n // we return once we found the first layout.\n if (typeof modules.layout !== 'undefined') {\n return rootParams\n }\n\n // This didn't include a root layout, so we need to continue. We don't need\n // to collect from other parallel routes because we can't have a parallel\n // route above a root layout.\n current = parallelRoutes.children\n }\n\n // If we didn't find a root layout, then we don't have any params.\n return []\n}\n\n/**\n * Collects the segments for a given route module.\n *\n * @param components the loaded components\n * @returns the segments for the route module\n */\nexport function collectRootParamKeys(\n routeModule: RouteModule\n): readonly string[] {\n if (isAppRouteRouteModule(routeModule)) {\n return []\n }\n\n if (isAppPageRouteModule(routeModule)) {\n return collectAppPageRootParamKeys(routeModule)\n }\n\n throw new InvariantError(\n 'Expected a route module to be one of app route or page'\n )\n}\n"],"names":["getSegmentParam","isAppPageRouteModule","isAppRouteRouteModule","InvariantError","collectAppPageRootParamKeys","routeModule","rootParams","current","userland","loaderTree","name","parallelRoutes","modules","param","push","layout","children","collectRootParamKeys"],"mappings":"AAAA,SAASA,eAAe,QAAQ,qDAAoD;AAEpF,SACEC,oBAAoB,EACpBC,qBAAqB,QAChB,uCAAsC;AAE7C,SAASC,cAAc,QAAQ,sCAAqC;AAEpE,SAASC,4BACPC,WAA+B;IAE/B,IAAIC,aAAuB,EAAE;IAE7B,IAAIC,UAAUF,YAAYG,QAAQ,CAACC,UAAU;IAC7C,MAAOF,QAAS;YAIAP;QAHd,MAAM,CAACU,MAAMC,gBAAgBC,QAAQ,GAAGL;QAExC,2DAA2D;QAC3D,MAAMM,SAAQb,mBAAAA,gBAAgBU,0BAAhBV,iBAAuBa,KAAK;QAC1C,IAAIA,OAAO;YACTP,WAAWQ,IAAI,CAACD;QAClB;QAEA,wEAAwE;QACxE,4CAA4C;QAC5C,IAAI,OAAOD,QAAQG,MAAM,KAAK,aAAa;YACzC,OAAOT;QACT;QAEA,2EAA2E;QAC3E,yEAAyE;QACzE,6BAA6B;QAC7BC,UAAUI,eAAeK,QAAQ;IACnC;IAEA,kEAAkE;IAClE,OAAO,EAAE;AACX;AAEA;;;;;CAKC,GACD,OAAO,SAASC,qBACdZ,WAAwB;IAExB,IAAIH,sBAAsBG,cAAc;QACtC,OAAO,EAAE;IACX;IAEA,IAAIJ,qBAAqBI,cAAc;QACrC,OAAOD,4BAA4BC;IACrC;IAEA,MAAM,qBAEL,CAFK,IAAIF,eACR,2DADI,qBAAA;eAAA;oBAAA;sBAAA;IAEN;AACF","ignoreList":[0]}