securityos/node_modules/next/dist/esm/client/components/layout-router.js.map

1 line
9.8 KiB
Plaintext

{"version":3,"sources":["../../../src/client/components/layout-router.tsx"],"names":["React","useContext","use","startTransition","Suspense","ReactDOM","CacheStates","LayoutRouterContext","GlobalLayoutRouterContext","TemplateContext","fetchServerResponse","createInfinitePromise","ErrorBoundary","matchSegment","handleSmoothScroll","RedirectBoundary","NotFoundBoundary","getSegmentValue","createRouterCacheKey","createRecordFromThenable","walkAddRefetch","segmentPathToWalk","treeToRecreate","segment","parallelRouteKey","isLast","length","hasOwnProperty","subTree","undefined","slice","findDOMNode","instance","window","process","env","NODE_ENV","originalConsoleError","console","error","messages","includes","rectProperties","shouldSkipElement","element","getComputedStyle","position","warn","rect","getBoundingClientRect","every","item","topOfElementInViewport","viewportHeight","top","getHashFragmentDomNode","hashFragment","document","body","getElementById","getElementsByName","InnerScrollAndFocusHandler","Component","componentDidMount","handlePotentialScroll","componentDidUpdate","props","focusAndScrollRef","apply","render","children","segmentPath","segmentPaths","some","scrollRefSegmentPath","index","domNode","Element","HTMLElement","nextElementSibling","scrollIntoView","htmlElement","documentElement","clientHeight","scrollTop","dontForceLayout","onlyHashChange","focus","ScrollAndFocusHandler","context","Error","InnerLayoutRouter","parallelRouterKey","url","childNodes","childProp","tree","cacheKey","buildId","changeByServerResponse","fullTree","childNode","get","current","status","READY","data","subTreeData","parallelRoutes","Map","set","LAZY_INITIALIZED","refetchTree","DATA_FETCH","URL","location","origin","nextUrl","head","flightData","overrideCanonicalUrl","setTimeout","subtree","Provider","value","LoadingBoundary","loading","loadingStyles","hasLoading","fallback","OuterLayoutRouter","errorStyles","templateStyles","template","notFound","notFoundStyles","styles","childNodesForParallelRouter","treeSegment","childPropSegment","currentChildSegmentValue","preservedSegments","map","preservedSegment","isChildPropSegment","preservedSegmentValue","key","errorComponent","isActive"],"mappings":"AAAA;AAYA,OAAOA,SAASC,UAAU,EAAEC,GAAG,EAAEC,eAAe,EAAEC,QAAQ,QAAQ,QAAO;AACz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