PHP 7.4.33
Preview: app-router-context.shared-runtime.js.map Size: 5.96 KB
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js.map
{"version":3,"sources":["../../../src/shared/lib/app-router-context.shared-runtime.ts"],"sourcesContent":["'use client'\n\nimport type { FetchServerResponseResult } from '../../client/components/router-reducer/fetch-server-response'\nimport type {\n  FocusAndScrollRef,\n  PrefetchKind,\n  RouterChangeByServerResponse,\n} from '../../client/components/router-reducer/router-reducer-types'\nimport type {\n  FlightRouterState,\n  FlightSegmentPath,\n} from '../../server/app-render/types'\nimport React from 'react'\n\nexport type ChildSegmentMap = Map<string, CacheNode>\n\n/**\n * Cache node used in app-router / layout-router.\n */\nexport type CacheNode = ReadyCacheNode | LazyCacheNode\n\nexport type LoadingModuleData =\n  | [React.JSX.Element, React.ReactNode, React.ReactNode]\n  | null\n\n/** viewport metadata node */\nexport type HeadData = React.ReactNode\n\nexport type LazyCacheNode = {\n  /**\n   * When rsc is null, this is a lazily-initialized cache node.\n   *\n   * If the app attempts to render it, it triggers a lazy data fetch,\n   * postpones the render, and schedules an update to a new tree.\n   *\n   * TODO: This mechanism should not be used when PPR is enabled, though it\n   * currently is in some cases until we've implemented partial\n   * segment fetching.\n   */\n  rsc: null\n\n  /**\n   * A prefetched version of the segment data. See explanation in corresponding\n   * field of ReadyCacheNode (below).\n   *\n   * Since LazyCacheNode mostly only exists in the non-PPR implementation, this\n   * will usually be null, but it could have been cloned from a previous\n   * CacheNode that was created by the PPR implementation. Eventually we want\n   * to migrate everything away from LazyCacheNode entirely.\n   */\n  prefetchRsc: React.ReactNode\n\n  /**\n   * A pending response for the lazy data fetch. If this is not present\n   * during render, it is lazily created.\n   */\n  lazyData: Promise<FetchServerResponseResult> | null\n\n  prefetchHead: HeadData | null\n\n  head: HeadData\n\n  loading: LoadingModuleData | Promise<LoadingModuleData>\n\n  /**\n   * Child parallel routes.\n   */\n  parallelRoutes: Map<string, ChildSegmentMap>\n}\n\nexport type ReadyCacheNode = {\n  /**\n   * When rsc is not null, it represents the RSC data for the\n   * corresponding segment.\n   *\n   * `null` is a valid React Node but because segment data is always a\n   * <LayoutRouter> component, we can use `null` to represent empty.\n   *\n   * TODO: For additional type safety, update this type to\n   * Exclude<React.ReactNode, null>. Need to update createEmptyCacheNode to\n   * accept rsc as an argument, or just inline the callers.\n   */\n  rsc: React.ReactNode\n\n  /**\n   * Represents a static version of the segment that can be shown immediately,\n   * and may or may not contain dynamic holes. It's prefetched before a\n   * navigation occurs.\n   *\n   * During rendering, we will choose whether to render `rsc` or `prefetchRsc`\n   * with `useDeferredValue`. As with the `rsc` field, a value of `null` means\n   * no value was provided. In this case, the LayoutRouter will go straight to\n   * rendering the `rsc` value; if that one is also missing, it will suspend and\n   * trigger a lazy fetch.\n   */\n  prefetchRsc: React.ReactNode\n\n  /**\n   * There should never be a lazy data request in this case.\n   */\n  lazyData: null\n  prefetchHead: HeadData | null\n\n  head: HeadData\n\n  loading: LoadingModuleData | Promise<LoadingModuleData>\n\n  parallelRoutes: Map<string, ChildSegmentMap>\n}\n\nexport interface NavigateOptions {\n  scroll?: boolean\n}\n\nexport interface PrefetchOptions {\n  kind: PrefetchKind\n}\n\nexport interface AppRouterInstance {\n  /**\n   * Navigate to the previous history entry.\n   */\n  back(): void\n  /**\n   * Navigate to the next history entry.\n   */\n  forward(): void\n  /**\n   * Refresh the current page.\n   */\n  refresh(): void\n  /**\n   * Refresh the current page. Use in development only.\n   * @internal\n   */\n  hmrRefresh(): void\n  /**\n   * Navigate to the provided href.\n   * Pushes a new history entry.\n   */\n  push(href: string, options?: NavigateOptions): void\n  /**\n   * Navigate to the provided href.\n   * Replaces the current history entry.\n   */\n  replace(href: string, options?: NavigateOptions): void\n  /**\n   * Prefetch the provided href.\n   */\n  prefetch(href: string, options?: PrefetchOptions): void\n}\n\nexport const AppRouterContext = React.createContext<AppRouterInstance | null>(\n  null\n)\nexport const LayoutRouterContext = React.createContext<{\n  parentTree: FlightRouterState\n  parentCacheNode: CacheNode\n  parentSegmentPath: FlightSegmentPath | null\n  url: string\n} | null>(null)\n\nexport const GlobalLayoutRouterContext = React.createContext<{\n  tree: FlightRouterState\n  changeByServerResponse: RouterChangeByServerResponse\n  focusAndScrollRef: FocusAndScrollRef\n  nextUrl: string | null\n}>(null as any)\n\nexport const TemplateContext = React.createContext<React.ReactNode>(null as any)\n\nif (process.env.NODE_ENV !== 'production') {\n  AppRouterContext.displayName = 'AppRouterContext'\n  LayoutRouterContext.displayName = 'LayoutRouterContext'\n  GlobalLayoutRouterContext.displayName = 'GlobalLayoutRouterContext'\n  TemplateContext.displayName = 'TemplateContext'\n}\n\nexport const MissingSlotContext = React.createContext<Set<string>>(new Set())\n"],"names":["AppRouterContext","GlobalLayoutRouterContext","LayoutRouterContext","MissingSlotContext","TemplateContext","React","createContext","process","env","NODE_ENV","displayName","Set"],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;IAwJaA,gBAAgB;eAAhBA;;IAUAC,yBAAyB;eAAzBA;;IAPAC,mBAAmB;eAAnBA;;IAuBAC,kBAAkB;eAAlBA;;IATAC,eAAe;eAAfA;;;;gEA7JK;AA4IX,MAAMJ,mBAAmBK,cAAK,CAACC,aAAa,CACjD;AAEK,MAAMJ,sBAAsBG,cAAK,CAACC,aAAa,CAK5C;AAEH,MAAML,4BAA4BI,cAAK,CAACC,aAAa,CAKzD;AAEI,MAAMF,kBAAkBC,cAAK,CAACC,aAAa,CAAkB;AAEpE,IAAIC,QAAQC,GAAG,CAACC,QAAQ,KAAK,cAAc;IACzCT,iBAAiBU,WAAW,GAAG;IAC/BR,oBAAoBQ,WAAW,GAAG;IAClCT,0BAA0BS,WAAW,GAAG;IACxCN,gBAAgBM,WAAW,GAAG;AAChC;AAEO,MAAMP,qBAAqBE,cAAK,CAACC,aAAa,CAAc,IAAIK"}

Directory Contents

Dirs: 8 × Files: 153
Name Size Perms Modified Actions
i18n DIR
- drwxr-xr-x 2025-03-28 11:04:45
Edit Download
- drwxr-xr-x 2025-03-28 11:04:45
Edit Download
- drwxr-xr-x 2025-03-28 11:04:45
Edit Download
page-path DIR
- drwxr-xr-x 2025-03-28 11:04:45
Edit Download
router DIR
- drwxr-xr-x 2025-03-28 11:04:45
Edit Download
- drwxr-xr-x 2025-03-28 11:04:45
Edit Download
turbopack DIR
- drwxr-xr-x 2025-03-28 11:04:45
Edit Download
utils DIR
- drwxr-xr-x 2025-03-28 11:04:45
Edit Download
85 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
592 B lrw-r--r-- 2025-03-28 11:04:38
Edit Download
564 B lrw-r--r-- 2025-03-28 11:04:43
Edit Download
191 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
419 B lrw-r--r-- 2025-03-28 11:04:38
Edit Download
469 B lrw-r--r-- 2025-03-28 11:04:43
Edit Download
43 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
1.00 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
591 B lrw-r--r-- 2025-03-28 11:04:43
Edit Download
875 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
1.24 KB lrw-r--r-- 2025-03-28 11:04:38
Edit Download
1.83 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
4.77 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
1.65 KB lrw-r--r-- 2025-03-28 11:04:39
Edit Download
5.96 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
598 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
2.90 KB lrw-r--r-- 2025-03-28 11:04:39
Edit Download
5.31 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
170 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
1.25 KB lrw-r--r-- 2025-03-28 11:04:39
Edit Download
1.42 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
4.78 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
13.14 KB lrw-r--r-- 2025-03-28 11:04:39
Edit Download
10.73 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
512 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
868 B lrw-r--r-- 2025-03-28 11:04:40
Edit Download
1.70 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
389 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
348 B lrw-r--r-- 2025-03-28 11:04:40
Edit Download
548 B lrw-r--r-- 2025-03-28 11:04:43
Edit Download
117 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.87 KB lrw-r--r-- 2025-03-28 11:04:40
Edit Download
2.49 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
1.67 KB lrw-r--r-- 2025-03-28 11:04:45
Edit Download
5.29 KB lrw-r--r-- 2025-03-28 11:04:40
Edit Download
7.33 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
61 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
362 B lrw-r--r-- 2025-03-28 11:04:40
Edit Download
452 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
231 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
858 B lrw-r--r-- 2025-03-28 11:04:40
Edit Download
1013 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
65 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
694 B lrw-r--r-- 2025-03-28 11:04:40
Edit Download
835 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
335 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
2.71 KB lrw-r--r-- 2025-03-28 11:04:40
Edit Download
3.98 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
454 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
679 B lrw-r--r-- 2025-03-28 11:04:40
Edit Download
1.33 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
3.12 KB lrw-r--r-- 2025-03-28 11:04:45
Edit Download
23.29 KB lrw-r--r-- 2025-03-28 11:04:40
Edit Download
34.88 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
100 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
2.07 KB lrw-r--r-- 2025-03-28 11:04:40
Edit Download
1.95 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
109 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.29 KB lrw-r--r-- 2025-03-28 11:04:40
Edit Download
1.47 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
288 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
616 B lrw-r--r-- 2025-03-28 11:04:40
Edit Download
846 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
446 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
7.68 KB lrw-r--r-- 2025-03-28 11:04:40
Edit Download
10.72 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
308 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.08 KB lrw-r--r-- 2025-03-28 11:04:40
Edit Download
1.10 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
1.85 KB lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.12 KB lrw-r--r-- 2025-03-28 11:04:40
Edit Download
2.71 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
370 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.46 KB lrw-r--r-- 2025-03-28 11:04:40
Edit Download
2.06 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
163 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
693 B lrw-r--r-- 2025-03-28 11:04:40
Edit Download
749 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
3.89 KB lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.32 KB lrw-r--r-- 2025-03-28 11:04:40
Edit Download
5.30 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
742 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.45 KB lrw-r--r-- 2025-03-28 11:04:40
Edit Download
2.12 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
271 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
4.95 KB lrw-r--r-- 2025-03-28 11:04:40
Edit Download
6.46 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
112 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
501 B lrw-r--r-- 2025-03-28 11:04:41
Edit Download
665 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
355 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.27 KB lrw-r--r-- 2025-03-28 11:04:41
Edit Download
1.25 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
125 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.15 KB lrw-r--r-- 2025-03-28 11:04:41
Edit Download
1.20 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
233 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
537 B lrw-r--r-- 2025-03-28 11:04:41
Edit Download
662 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
156 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
613 B lrw-r--r-- 2025-03-28 11:04:41
Edit Download
635 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
1.51 KB lrw-r--r-- 2025-03-28 11:04:45
Edit Download
8.26 KB lrw-r--r-- 2025-03-28 11:04:41
Edit Download
13.50 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
128 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
3.57 KB lrw-r--r-- 2025-03-28 11:04:41
Edit Download
4.03 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
253 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.27 KB lrw-r--r-- 2025-03-28 11:04:41
Edit Download
1.64 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
251 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.90 KB lrw-r--r-- 2025-03-28 11:04:41
Edit Download
2.65 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
263 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
2.19 KB lrw-r--r-- 2025-03-28 11:04:41
Edit Download
2.93 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
199 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
652 B lrw-r--r-- 2025-03-28 11:04:41
Edit Download
876 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
88 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
961 B lrw-r--r-- 2025-03-28 11:04:41
Edit Download
1.27 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
148 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
587 B lrw-r--r-- 2025-03-28 11:04:42
Edit Download
605 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
119 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
635 B lrw-r--r-- 2025-03-28 11:04:42
Edit Download
464 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
504 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.53 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
1.68 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
288 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.14 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
1.30 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
256 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
433 B lrw-r--r-- 2025-03-28 11:04:42
Edit Download
563 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
1.12 KB lrw-r--r-- 2025-03-28 11:04:45
Edit Download
1.56 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
3.25 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
452 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
2.68 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
3.84 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
43 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
99 B lrw-r--r-- 2025-03-28 11:04:42
Edit Download
214 B lrw-r--r-- 2025-03-28 11:04:44
Edit Download
8.99 KB lrw-r--r-- 2025-03-28 11:04:45
Edit Download
6.14 KB lrw-r--r-- 2025-03-28 11:04:42
Edit Download
15.68 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
381 B lrw-r--r-- 2025-03-28 11:04:45
Edit Download
3.28 KB lrw-r--r-- 2025-03-28 11:04:43
Edit Download
4.38 KB lrw-r--r-- 2025-03-28 11:04:44
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).