/opt/canhelp/node_modules/next/dist/client/components
NameSizeModeActions
builtin/-0755rm
errors/-0755rm
http-access-fallback/-0755rm
metadata/-0755rm
router-reducer/-0755rm
segment-cache-impl/-0755rm
styles/-0755rm
app-router-announcer.d.ts1960644editdlrm
app-router-announcer.js33520644editdlrm
app-router-announcer.js.map46780644editdlrm
app-router-headers.d.ts12430644editdlrm
app-router-headers.js37970644editdlrm
app-router-headers.js.map31100644editdlrm
app-router-instance.d.ts20810644editdlrm
app-router-instance.js144320644editdlrm
app-router-instance.js.map211790644editdlrm
app-router.d.ts9320644editdlrm
app-router.js249870644editdlrm
app-router.js.map348630644editdlrm
bailout-to-client-rendering.d.ts800644editdlrm
bailout-to-client-rendering.js18770644editdlrm
bailout-to-client-rendering.js.map16650644editdlrm
bfcache.d.ts13970644editdlrm
bfcache.js40350644editdlrm
bfcache.js.map63760644editdlrm
client-page.d.ts8760644editdlrm
client-page.js26030644editdlrm
client-page.js.map39070644editdlrm
client-segment.d.ts8420644editdlrm
client-segment.js21920644editdlrm
client-segment.js.map30870644editdlrm
dev-root-http-access-fallback-boundary.d.ts2300644editdlrm
dev-root-http-access-fallback-boundary.js18620644editdlrm
dev-root-http-access-fallback-boundary.js.map12900644editdlrm
error-boundary.d.ts15660644editdlrm
error-boundary.js54990644editdlrm
error-boundary.js.map74090644editdlrm
forbidden.d.ts440644editdlrm
forbidden.js20770644editdlrm
forbidden.js.map19860644editdlrm
handle-isr-error.d.ts780644editdlrm
handle-isr-error.js10850644editdlrm
handle-isr-error.js.map12950644editdlrm
hooks-server-context.d.ts3260644editdlrm
hooks-server-context.js13520644editdlrm
hooks-server-context.js.map11820644editdlrm
is-next-router-error.d.ts4310644editdlrm
is-next-router-error.js8860644editdlrm
is-next-router-error.js.map8990644editdlrm
layout-router.d.ts9990644editdlrm
layout-router.js279470644editdlrm
layout-router.js.map377010644editdlrm
links.d.ts22410644editdlrm
links.js140530644editdlrm
links.js.map210560644editdlrm
match-segments.d.ts1540644editdlrm
match-segments.js10540644editdlrm
match-segments.js.map10450644editdlrm
nav-failure-handler.d.ts1230644editdlrm
nav-failure-handler.js24920644editdlrm
nav-failure-handler.js.map28680644editdlrm
navigation-untracked.d.ts110644editdlrm
navigation-untracked.js26070644editdlrm
navigation-untracked.js.map33490644editdlrm
navigation.d.ts46350644editdlrm
navigation.js79420644editdlrm
navigation.js.map127130644editdlrm
navigation.react-server.d.ts12380644editdlrm
navigation.react-server.js35010644editdlrm
navigation.react-server.js.map28380644editdlrm
noop-head.d.ts420644editdlrm
noop-head.js6070644editdlrm
noop-head.js.map2490644editdlrm
not-found.d.ts430644editdlrm
not-found.js18880644editdlrm
not-found.js.map17500644editdlrm
promise-queue.d.ts1920644editdlrm
promise-queue.js42740644editdlrm
promise-queue.js.map36070644editdlrm
redirect-boundary.d.ts7760644editdlrm
redirect-boundary.js32700644editdlrm
redirect-boundary.js.map39750644editdlrm
redirect-error.d.ts6330644editdlrm
redirect-error.js18190644editdlrm
redirect-error.js.map21240644editdlrm
redirect-status-code.d.ts1200644editdlrm
redirect-status-code.js9670644editdlrm
redirect-status-code.js.map3300644editdlrm
redirect.d.ts24690644editdlrm
redirect.js37460644editdlrm
redirect.js.map59190644editdlrm
render-from-template-context.d.ts1000644editdlrm
render-from-template-context.js11700644editdlrm
render-from-template-context.js.map6450644editdlrm
segment-cache.d.ts34980644editdlrm
segment-cache.js76110644editdlrm
segment-cache.js.map89460644editdlrm
static-generation-bailout.d.ts2050644editdlrm
static-generation-bailout.js13020644editdlrm
static-generation-bailout.js.map9260644editdlrm
unauthorized.d.ts470644editdlrm
unauthorized.js21100644editdlrm
unauthorized.js.map20180644editdlrm
unrecognized-action-error.d.ts7900644editdlrm
unrecognized-action-error.js12440644editdlrm
unrecognized-action-error.js.map15020644editdlrm
unresolved-thenable.d.ts1830644editdlrm
unresolved-thenable.js7690644editdlrm
unresolved-thenable.js.map4500644editdlrm
unstable-rethrow.browser.d.ts640644editdlrm
unstable-rethrow.browser.js10110644editdlrm
unstable-rethrow.browser.js.map8320644editdlrm
unstable-rethrow.d.ts5910644editdlrm
unstable-rethrow.js12500644editdlrm
unstable-rethrow.js.map11220644editdlrm
unstable-rethrow.server.d.ts640644editdlrm
unstable-rethrow.server.js15210644editdlrm
unstable-rethrow.server.js.map15050644editdlrm
use-action-queue.d.ts3300644editdlrm
use-action-queue.js29030644editdlrm
use-action-queue.js.map33000644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/client/components/error-boundary.js.map (7409B)
{"version":3,"sources":["../../../src/client/components/error-boundary.tsx"],"sourcesContent":["'use client'\n\nimport React, { type JSX } from 'react'\nimport { useUntrackedPathname } from './navigation-untracked'\nimport { isNextRouterError } from './is-next-router-error'\nimport { handleHardNavError } from './nav-failure-handler'\nimport { HandleISRError } from './handle-isr-error'\nimport { isBot } from '../../shared/lib/router/utils/is-bot'\n\nconst isBotUserAgent =\n typeof window !== 'undefined' && isBot(window.navigator.userAgent)\n\nexport type ErrorComponent = React.ComponentType<{\n error: Error\n // global-error, there's no `reset` function;\n // regular error boundary, there's a `reset` function.\n reset?: () => void\n}>\n\nexport interface ErrorBoundaryProps {\n children?: React.ReactNode\n errorComponent: ErrorComponent | undefined\n errorStyles?: React.ReactNode | undefined\n errorScripts?: React.ReactNode | undefined\n}\n\ninterface ErrorBoundaryHandlerProps extends ErrorBoundaryProps {\n pathname: string | null\n errorComponent: ErrorComponent\n}\n\ninterface ErrorBoundaryHandlerState {\n error: Error | null\n previousPathname: string | null\n}\n\nexport class ErrorBoundaryHandler extends React.Component<\n ErrorBoundaryHandlerProps,\n ErrorBoundaryHandlerState\n> {\n constructor(props: ErrorBoundaryHandlerProps) {\n super(props)\n this.state = { error: null, previousPathname: this.props.pathname }\n }\n\n static getDerivedStateFromError(error: Error) {\n if (isNextRouterError(error)) {\n // Re-throw if an expected internal Next.js router error occurs\n // this means it should be handled by a different boundary (such as a NotFound boundary in a parent segment)\n throw error\n }\n\n return { error }\n }\n\n static getDerivedStateFromProps(\n props: ErrorBoundaryHandlerProps,\n state: ErrorBoundaryHandlerState\n ): ErrorBoundaryHandlerState | null {\n const { error } = state\n\n // if we encounter an error while\n // a navigation is pending we shouldn't render\n // the error boundary and instead should fallback\n // to a hard navigation to attempt recovering\n if (process.env.__NEXT_APP_NAV_FAIL_HANDLING) {\n if (error && handleHardNavError(error)) {\n // clear error so we don't render anything\n return {\n error: null,\n previousPathname: props.pathname,\n }\n }\n }\n\n /**\n * Handles reset of the error boundary when a navigation happens.\n * Ensures the error boundary does not stay enabled when navigating to a new page.\n * Approach of setState in render is safe as it checks the previous pathname and then overrides\n * it as outlined in https://react.dev/reference/react/useState#storing-information-from-previous-renders\n */\n if (props.pathname !== state.previousPathname && state.error) {\n return {\n error: null,\n previousPathname: props.pathname,\n }\n }\n return {\n error: state.error,\n previousPathname: props.pathname,\n }\n }\n\n reset = () => {\n this.setState({ error: null })\n }\n\n // Explicit type is needed to avoid the generated `.d.ts` having a wide return type that could be specific to the `@types/react` version.\n render(): React.ReactNode {\n //When it's bot request, segment level error boundary will keep rendering the children,\n // the final error will be caught by the root error boundary and determine wether need to apply graceful degrade.\n if (this.state.error && !isBotUserAgent) {\n return (\n <>\n \n {this.props.errorStyles}\n {this.props.errorScripts}\n \n \n )\n }\n\n return this.props.children\n }\n}\n\n/**\n * Handles errors through `getDerivedStateFromError`.\n * Renders the provided error component and provides a way to `reset` the error boundary state.\n */\n\n/**\n * Renders error boundary with the provided \"errorComponent\" property as the fallback.\n * If no \"errorComponent\" property is provided it renders the children without an error boundary.\n */\nexport function ErrorBoundary({\n errorComponent,\n errorStyles,\n errorScripts,\n children,\n}: ErrorBoundaryProps & {\n children: React.ReactNode\n}): JSX.Element {\n // When we're rendering the missing params shell, this will return null. This\n // is because we won't be rendering any not found boundaries or error\n // boundaries for the missing params shell. When this runs on the client\n // (where these errors can occur), we will get the correct pathname.\n const pathname = useUntrackedPathname()\n if (errorComponent) {\n return (\n \n {children}\n \n )\n }\n\n return <>{children}\n}\n"],"names":["ErrorBoundary","ErrorBoundaryHandler","isBotUserAgent","window","isBot","navigator","userAgent","React","Component","getDerivedStateFromError","error","isNextRouterError","getDerivedStateFromProps","props","state","process","env","__NEXT_APP_NAV_FAIL_HANDLING","handleHardNavError","previousPathname","pathname","render","HandleISRError","errorStyles","errorScripts","this","errorComponent","reset","children","constructor","setState","useUntrackedPathname"],"mappings":"AAAA;;;;;;;;;;;;;;;;IAgIgBA,aAAa;eAAbA;;IA5FHC,oBAAoB;eAApBA;;;;;gEAlCmB;qCACK;mCACH;mCACC;gCACJ;uBACT;AAEtB,MAAMC,iBACJ,OAAOC,WAAW,eAAeC,IAAAA,YAAK,EAACD,OAAOE,SAAS,CAACC,SAAS;AA0B5D,MAAML,6BAA6BM,cAAK,CAACC,SAAS;IASvD,OAAOC,yBAAyBC,KAAY,EAAE;QAC5C,IAAIC,IAAAA,oCAAiB,EAACD,QAAQ;YAC5B,+DAA+D;YAC/D,4GAA4G;YAC5G,MAAMA;QACR;QAEA,OAAO;YAAEA;QAAM;IACjB;IAEA,OAAOE,yBACLC,KAAgC,EAChCC,KAAgC,EACE;QAClC,MAAM,EAAEJ,KAAK,EAAE,GAAGI;QAElB,iCAAiC;QACjC,8CAA8C;QAC9C,iDAAiD;QACjD,6CAA6C;QAC7C,IAAIC,QAAQC,GAAG,CAACC,4BAA4B,EAAE;YAC5C,IAAIP,SAASQ,IAAAA,qCAAkB,EAACR,QAAQ;gBACtC,0CAA0C;gBAC1C,OAAO;oBACLA,OAAO;oBACPS,kBAAkBN,MAAMO,QAAQ;gBAClC;YACF;QACF;QAEA;;;;;KAKC,GACD,IAAIP,MAAMO,QAAQ,KAAKN,MAAMK,gBAAgB,IAAIL,MAAMJ,KAAK,EAAE;YAC5D,OAAO;gBACLA,OAAO;gBACPS,kBAAkBN,MAAMO,QAAQ;YAClC;QACF;QACA,OAAO;YACLV,OAAOI,MAAMJ,KAAK;YAClBS,kBAAkBN,MAAMO,QAAQ;QAClC;IACF;IAMA,yIAAyI;IACzIC,SAA0B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