/home/techb158/balavpn.abdallabala.com/node_modules/next/dist/client/components
NameSizeModeActions
builtin/-0777rm
errors/-0777rm
http-access-fallback/-0777rm
metadata/-0777rm
router-reducer/-0777rm
segment-cache-impl/-0777rm
styles/-0777rm
app-router-announcer.d.ts1960666editdlrm
app-router-announcer.js33520666editdlrm
app-router-announcer.js.map46780666editdlrm
app-router-headers.d.ts12430666editdlrm
app-router-headers.js37970666editdlrm
app-router-headers.js.map31100666editdlrm
app-router-instance.d.ts20810666editdlrm
app-router-instance.js144320666editdlrm
app-router-instance.js.map211790666editdlrm
app-router.d.ts9320666editdlrm
app-router.js249870666editdlrm
app-router.js.map348630666editdlrm
bailout-to-client-rendering.d.ts800666editdlrm
bailout-to-client-rendering.js18770666editdlrm
bailout-to-client-rendering.js.map16650666editdlrm
bfcache.d.ts13970666editdlrm
bfcache.js40350666editdlrm
bfcache.js.map63760666editdlrm
client-page.d.ts8760666editdlrm
client-page.js26030666editdlrm
client-page.js.map39070666editdlrm
client-segment.d.ts8420666editdlrm
client-segment.js21920666editdlrm
client-segment.js.map30870666editdlrm
dev-root-http-access-fallback-boundary.d.ts2300666editdlrm
dev-root-http-access-fallback-boundary.js18620666editdlrm
dev-root-http-access-fallback-boundary.js.map12900666editdlrm
error-boundary.d.ts15660666editdlrm
error-boundary.js54990666editdlrm
error-boundary.js.map74090666editdlrm
forbidden.d.ts440666editdlrm
forbidden.js20770666editdlrm
forbidden.js.map19860666editdlrm
handle-isr-error.d.ts780666editdlrm
handle-isr-error.js10850666editdlrm
handle-isr-error.js.map12950666editdlrm
hooks-server-context.d.ts3260666editdlrm
hooks-server-context.js13520666editdlrm
hooks-server-context.js.map11820666editdlrm
is-next-router-error.d.ts4310666editdlrm
is-next-router-error.js8860666editdlrm
is-next-router-error.js.map8990666editdlrm
layout-router.d.ts9990666editdlrm
layout-router.js279470666editdlrm
layout-router.js.map377010666editdlrm
links.d.ts22410666editdlrm
links.js140530666editdlrm
links.js.map210560666editdlrm
match-segments.d.ts1540666editdlrm
match-segments.js10540666editdlrm
match-segments.js.map10450666editdlrm
nav-failure-handler.d.ts1230666editdlrm
nav-failure-handler.js24920666editdlrm
nav-failure-handler.js.map28680666editdlrm
navigation-untracked.d.ts110666editdlrm
navigation-untracked.js26070666editdlrm
navigation-untracked.js.map33490666editdlrm
navigation.d.ts46350666editdlrm
navigation.js79420666editdlrm
navigation.js.map127130666editdlrm
navigation.react-server.d.ts12380666editdlrm
navigation.react-server.js35010666editdlrm
navigation.react-server.js.map28380666editdlrm
noop-head.d.ts420666editdlrm
noop-head.js6070666editdlrm
noop-head.js.map2490666editdlrm
not-found.d.ts430666editdlrm
not-found.js18880666editdlrm
not-found.js.map17500666editdlrm
promise-queue.d.ts1920666editdlrm
promise-queue.js42740666editdlrm
promise-queue.js.map36070666editdlrm
redirect-boundary.d.ts7760666editdlrm
redirect-boundary.js32700666editdlrm
redirect-boundary.js.map39750666editdlrm
redirect-error.d.ts6330666editdlrm
redirect-error.js18190666editdlrm
redirect-error.js.map21240666editdlrm
redirect-status-code.d.ts1200666editdlrm
redirect-status-code.js9670666editdlrm
redirect-status-code.js.map3300666editdlrm
redirect.d.ts24690666editdlrm
redirect.js37460666editdlrm
redirect.js.map59190666editdlrm
render-from-template-context.d.ts1000666editdlrm
render-from-template-context.js11700666editdlrm
render-from-template-context.js.map6450666editdlrm
segment-cache.d.ts34980666editdlrm
segment-cache.js76110666editdlrm
segment-cache.js.map89460666editdlrm
static-generation-bailout.d.ts2050666editdlrm
static-generation-bailout.js13020666editdlrm
static-generation-bailout.js.map9260666editdlrm
unauthorized.d.ts470666editdlrm
unauthorized.js21100666editdlrm
unauthorized.js.map20180666editdlrm
unrecognized-action-error.d.ts7900666editdlrm
unrecognized-action-error.js12440666editdlrm
unrecognized-action-error.js.map15020666editdlrm
unresolved-thenable.d.ts1830666editdlrm
unresolved-thenable.js7690666editdlrm
unresolved-thenable.js.map4500666editdlrm
unstable-rethrow.browser.d.ts640666editdlrm
unstable-rethrow.browser.js10110666editdlrm
unstable-rethrow.browser.js.map8320666editdlrm
unstable-rethrow.d.ts5910666editdlrm
unstable-rethrow.js12500666editdlrm
unstable-rethrow.js.map11220666editdlrm
unstable-rethrow.server.d.ts640666editdlrm
unstable-rethrow.server.js15210666editdlrm
unstable-rethrow.server.js.map15050666editdlrm
use-action-queue.d.ts3300666editdlrm
use-action-queue.js29030666editdlrm
use-action-queue.js.map33000666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/next/dist/client/components/error-boundary.js (5499B)
'use client'; "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { ErrorBoundary: null, ErrorBoundaryHandler: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { ErrorBoundary: function() { return ErrorBoundary; }, ErrorBoundaryHandler: function() { return ErrorBoundaryHandler; } }); const _interop_require_default = require("@swc/helpers/_/_interop_require_default"); const _jsxruntime = require("react/jsx-runtime"); const _react = /*#__PURE__*/ _interop_require_default._(require("react")); const _navigationuntracked = require("./navigation-untracked"); const _isnextroutererror = require("./is-next-router-error"); const _navfailurehandler = require("./nav-failure-handler"); const _handleisrerror = require("./handle-isr-error"); const _isbot = require("../../shared/lib/router/utils/is-bot"); const isBotUserAgent = typeof window !== 'undefined' && (0, _isbot.isBot)(window.navigator.userAgent); class ErrorBoundaryHandler extends _react.default.Component { static getDerivedStateFromError(error) { if ((0, _isnextroutererror.isNextRouterError)(error)) { // Re-throw if an expected internal Next.js router error occurs // this means it should be handled by a different boundary (such as a NotFound boundary in a parent segment) throw error; } return { error }; } static getDerivedStateFromProps(props, state) { const { error } = state; // if we encounter an error while // a navigation is pending we shouldn't render // the error boundary and instead should fallback // to a hard navigation to attempt recovering if (process.env.__NEXT_APP_NAV_FAIL_HANDLING) { if (error && (0, _navfailurehandler.handleHardNavError)(error)) { // clear error so we don't render anything return { error: null, previousPathname: props.pathname }; } } /** * Handles reset of the error boundary when a navigation happens. * Ensures the error boundary does not stay enabled when navigating to a new page. * Approach of setState in render is safe as it checks the previous pathname and then overrides * it as outlined in https://react.dev/reference/react/useState#storing-information-from-previous-renders */ if (props.pathname !== state.previousPathname && state.error) { return { error: null, previousPathname: props.pathname }; } return { error: state.error, previousPathname: props.pathname }; } // Explicit type is needed to avoid the generated `.d.ts` having a wide return type that could be specific to the `@types/react` version. render() { //When it's bot request, segment level error boundary will keep rendering the children, // the final error will be caught by the root error boundary and determine wether need to apply graceful degrade. if (this.state.error && !isBotUserAgent) { return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, { children: [ /*#__PURE__*/ (0, _jsxruntime.jsx)(_handleisrerror.HandleISRError, { error: this.state.error }), this.props.errorStyles, this.props.errorScripts, /*#__PURE__*/ (0, _jsxruntime.jsx)(this.props.errorComponent, { error: this.state.error, reset: this.reset }) ] }); } return this.props.children; } constructor(props){ super(props), this.reset = ()=>{ this.setState({ error: null }); }; this.state = { error: null, previousPathname: this.props.pathname }; } } function ErrorBoundary(param) { let { errorComponent, errorStyles, errorScripts, children } = param; // When we're rendering the missing params shell, this will return null. This // is because we won't be rendering any not found boundaries or error // boundaries for the missing params shell. When this runs on the client // (where these errors can occur), we will get the correct pathname. const pathname = (0, _navigationuntracked.useUntrackedPathname)(); if (errorComponent) { return /*#__PURE__*/ (0, _jsxruntime.jsx)(ErrorBoundaryHandler, { pathname: pathname, errorComponent: errorComponent, errorStyles: errorStyles, errorScripts: errorScripts, children: children }); } return /*#__PURE__*/ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, { children: children }); } if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') { Object.defineProperty(exports.default, '__esModule', { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=error-boundary.js.map