Rocky_Mountain_Vending/.pnpm-store/v10/files/9f/800de7ea3920b5403e6fcd97de3083e29a27a96056fbea913402cfae275042a4a2c6410178808c3fef70e71ab6c83d7d2f9a1e6e929b9405dba813d833cdf1
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
5.2 KiB
Text

{"version":3,"sources":["../../../../../src/client/dev/hot-reloader/pages/websocket.ts"],"sourcesContent":["import { logQueue } from '../../../../next-devtools/userspace/app/forward-logs'\nimport {\n HMR_MESSAGE_SENT_TO_BROWSER,\n type HmrMessageSentToBrowser,\n} from '../../../../server/dev/hot-reloader-types'\nimport { getSocketUrl } from '../get-socket-url'\nimport { WEB_SOCKET_MAX_RECONNECTIONS } from '../../../../lib/constants'\n\nlet source: WebSocket\n\ntype MessageCallback = (message: HmrMessageSentToBrowser) => void\n\nconst messageCallbacks: Array<MessageCallback> = []\n\nexport function addMessageListener(callback: MessageCallback) {\n messageCallbacks.push(callback)\n}\n\nexport function sendMessage(data: string) {\n if (!source || source.readyState !== source.OPEN) return\n return source.send(data)\n}\n\nlet reconnections = 0\nlet reloading = false\nlet serverSessionId: number | null = null\n\nexport function connectHMR(options: { path: string; assetPrefix: string }) {\n let timer: ReturnType<typeof setTimeout>\n\n function init() {\n if (source) source.close()\n\n function handleOnline() {\n logQueue.onSocketReady(source)\n reconnections = 0\n window.console.log('[HMR] connected')\n }\n\n function handleMessage(event: MessageEvent<string>) {\n // While the page is reloading, don't respond to any more messages.\n // On reconnect, the server may send an empty list of changes if it was restarted.\n if (reloading) {\n return\n }\n\n const message: HmrMessageSentToBrowser = JSON.parse(event.data)\n\n if (message.type === HMR_MESSAGE_SENT_TO_BROWSER.TURBOPACK_CONNECTED) {\n if (\n serverSessionId !== null &&\n serverSessionId !== message.data.sessionId\n ) {\n // Either the server's session id has changed and it's a new server, or\n // it's been too long since we disconnected and we should reload the page.\n // There could be 1) unhandled server errors and/or 2) stale content.\n // Perform a hard reload of the page.\n window.location.reload()\n\n reloading = true\n return\n }\n\n serverSessionId = message.data.sessionId\n }\n\n for (const messageCallback of messageCallbacks) {\n messageCallback(message)\n }\n }\n\n function handleDisconnect() {\n source.onerror = null\n source.onclose = null\n source.close()\n reconnections++\n // After 25 reconnects we'll want to reload the page as it indicates the dev server is no longer running.\n if (reconnections > WEB_SOCKET_MAX_RECONNECTIONS) {\n reloading = true\n window.location.reload()\n return\n }\n\n clearTimeout(timer)\n // Try again after 5 seconds\n timer = setTimeout(init, reconnections > 5 ? 5000 : 1000)\n }\n\n const url = getSocketUrl(options.assetPrefix)\n\n source = new window.WebSocket(`${url}${options.path}`)\n source.onopen = handleOnline\n source.onerror = handleDisconnect\n source.onclose = handleDisconnect\n source.onmessage = handleMessage\n }\n\n init()\n}\n"],"names":["logQueue","HMR_MESSAGE_SENT_TO_BROWSER","getSocketUrl","WEB_SOCKET_MAX_RECONNECTIONS","source","messageCallbacks","addMessageListener","callback","push","sendMessage","data","readyState","OPEN","send","reconnections","reloading","serverSessionId","connectHMR","options","timer","init","close","handleOnline","onSocketReady","window","console","log","handleMessage","event","message","JSON","parse","type","TURBOPACK_CONNECTED","sessionId","location","reload","messageCallback","handleDisconnect","onerror","onclose","clearTimeout","setTimeout","url","assetPrefix","WebSocket","path","onopen","onmessage"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,uDAAsD;AAC/E,SACEC,2BAA2B,QAEtB,4CAA2C;AAClD,SAASC,YAAY,QAAQ,oBAAmB;AAChD,SAASC,4BAA4B,QAAQ,4BAA2B;AAExE,IAAIC;AAIJ,MAAMC,mBAA2C,EAAE;AAEnD,OAAO,SAASC,mBAAmBC,QAAyB;IAC1DF,iBAAiBG,IAAI,CAACD;AACxB;AAEA,OAAO,SAASE,YAAYC,IAAY;IACtC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