Rocky_Mountain_Vending/.pnpm-store/v10/files/cb/3a2ddf4b01de0a0e580fbaeb4f77aedc8051088719d32db5f55d9f3c6244402c1b5926b53fbb46d919efed17f4dd7c5b5b74e4c82a290fcbd8d27c10ef7363
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
1.9 KiB
Text

{"version":3,"sources":["../../src/client/with-router.tsx"],"sourcesContent":["import React, { type JSX } from 'react'\nimport type {\n BaseContext,\n NextComponentType,\n NextPageContext,\n} from '../shared/lib/utils'\nimport type { NextRouter } from './router'\nimport { useRouter } from './router'\n\nexport type WithRouterProps = {\n router: NextRouter\n}\n\nexport type ExcludeRouterProps<P> = Pick<\n P,\n Exclude<keyof P, keyof WithRouterProps>\n>\n\nexport default function withRouter<\n P extends WithRouterProps,\n C extends BaseContext = NextPageContext,\n>(\n ComposedComponent: NextComponentType<C, any, P>\n): React.ComponentType<ExcludeRouterProps<P>> {\n function WithRouterWrapper(props: any): JSX.Element {\n return <ComposedComponent router={useRouter()} {...props} />\n }\n\n WithRouterWrapper.getInitialProps = ComposedComponent.getInitialProps\n // This is needed to allow checking for custom getInitialProps in _app\n ;(WithRouterWrapper as any).origGetInitialProps = (\n ComposedComponent as any\n ).origGetInitialProps\n if (process.env.NODE_ENV !== 'production') {\n const name =\n ComposedComponent.displayName || ComposedComponent.name || 'Unknown'\n WithRouterWrapper.displayName = `withRouter(${name})`\n }\n\n return WithRouterWrapper\n}\n"],"names":["React","useRouter","withRouter","ComposedComponent","WithRouterWrapper","props","router","getInitialProps","origGetInitialProps","process","env","NODE_ENV","name","displayName"],"mappings":";AAAA,OAAOA,WAAyB,QAAO;AAOvC,SAASC,SAAS,QAAQ,WAAU;AAWpC,eAAe,SAASC,WAItBC,iBAA+C;IAE/C,SAASC,kBAAkBC,KAAU;QACnC,qBAAO,KAACF;YAAkBG,QAAQL;YAAc,GAAGI,KAAK;;IAC1D;IAEAD,kBAAkBG,eAAe,GAAGJ,kBAAkBI,eAAe;IAEnEH,kBAA0BI,mBAAmB,GAAG,AAChDL,kBACAK,mBAAmB;IACrB,IAAIC,QAAQC,GAAG,CAACC,QAAQ,KAAK,cAAc;QACzC,MAAMC,OACJT,kBAAkBU,WAAW,IAAIV,kBAAkBS,IAAI,IAAI;QAC7DR,kBAAkBS,WAAW,GAAG,CAAC,WAAW,EAAED,KAAK,CAAC,CAAC;IACvD;IAEA,OAAOR;AACT","ignoreList":[0]}