/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/navigation.js (7942B)
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { ReadonlyURLSearchParams: null, RedirectType: null, ServerInsertedHTMLContext: null, forbidden: null, notFound: null, permanentRedirect: null, redirect: null, unauthorized: null, unstable_isUnrecognizedActionError: null, unstable_rethrow: null, useParams: null, usePathname: null, useRouter: null, useSearchParams: null, useSelectedLayoutSegment: null, useSelectedLayoutSegments: null, useServerInsertedHTML: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { ReadonlyURLSearchParams: function() { return _navigationreactserver.ReadonlyURLSearchParams; }, RedirectType: function() { return _navigationreactserver.RedirectType; }, ServerInsertedHTMLContext: function() { return _serverinsertedhtmlsharedruntime.ServerInsertedHTMLContext; }, forbidden: function() { return _navigationreactserver.forbidden; }, notFound: function() { return _navigationreactserver.notFound; }, permanentRedirect: function() { return _navigationreactserver.permanentRedirect; }, redirect: function() { return _navigationreactserver.redirect; }, unauthorized: function() { return _navigationreactserver.unauthorized; }, unstable_isUnrecognizedActionError: function() { return _unrecognizedactionerror.unstable_isUnrecognizedActionError; }, unstable_rethrow: function() { return _navigationreactserver.unstable_rethrow; }, useParams: function() { return useParams; }, usePathname: function() { return usePathname; }, useRouter: function() { return useRouter; }, useSearchParams: function() { return useSearchParams; }, useSelectedLayoutSegment: function() { return useSelectedLayoutSegment; }, useSelectedLayoutSegments: function() { return useSelectedLayoutSegments; }, useServerInsertedHTML: function() { return _serverinsertedhtmlsharedruntime.useServerInsertedHTML; } }); const _react = require("react"); const _approutercontextsharedruntime = require("../../shared/lib/app-router-context.shared-runtime"); const _hooksclientcontextsharedruntime = require("../../shared/lib/hooks-client-context.shared-runtime"); const _getsegmentvalue = require("./router-reducer/reducers/get-segment-value"); const _segment = require("../../shared/lib/segment"); const _navigationreactserver = require("./navigation.react-server"); const _serverinsertedhtmlsharedruntime = require("../../shared/lib/server-inserted-html.shared-runtime"); const _unrecognizedactionerror = require("./unrecognized-action-error"); const useDynamicRouteParams = typeof window === 'undefined' ? require('../../server/app-render/dynamic-rendering').useDynamicRouteParams : undefined; function useSearchParams() { const searchParams = (0, _react.useContext)(_hooksclientcontextsharedruntime.SearchParamsContext); // In the case where this is `null`, the compat types added in // `next-env.d.ts` will add a new overload that changes the return type to // include `null`. const readonlySearchParams = (0, _react.useMemo)(()=>{ if (!searchParams) { // When the router is not ready in pages, we won't have the search params // available. return null; } return new _navigationreactserver.ReadonlyURLSearchParams(searchParams); }, [ searchParams ]); if (typeof window === 'undefined') { // AsyncLocalStorage should not be included in the client bundle. const { bailoutToClientRendering } = require('./bailout-to-client-rendering'); // TODO-APP: handle dynamic = 'force-static' here and on the client bailoutToClientRendering('useSearchParams()'); } return readonlySearchParams; } function usePathname() { useDynamicRouteParams == null ? void 0 : useDynamicRouteParams('usePathname()'); // In the case where this is `null`, the compat types added in `next-env.d.ts` // will add a new overload that changes the return type to include `null`. return (0, _react.useContext)(_hooksclientcontextsharedruntime.PathnameContext); } function useRouter() { const router = (0, _react.useContext)(_approutercontextsharedruntime.AppRouterContext); if (router === null) { throw Object.defineProperty(new Error('invariant expected app router to be mounted'), "__NEXT_ERROR_CODE", { value: "E238", enumerable: false, configurable: true }); } return router; } function useParams() { useDynamicRouteParams == null ? void 0 : useDynamicRouteParams('useParams()'); return (0, _react.useContext)(_hooksclientcontextsharedruntime.PathParamsContext); } /** Get the canonical parameters from the current level to the leaf node. */ // Client components API function getSelectedLayoutSegmentPath(tree, parallelRouteKey, first, segmentPath) { if (first === void 0) first = true; if (segmentPath === void 0) segmentPath = []; let node; if (first) { // Use the provided parallel route key on the first parallel route node = tree[1][parallelRouteKey]; } else { // After first parallel route prefer children, if there's no children pick the first parallel route. const parallelRoutes = tree[1]; var _parallelRoutes_children; node = (_parallelRoutes_children = parallelRoutes.children) != null ? _parallelRoutes_children : Object.values(parallelRoutes)[0]; } if (!node) return segmentPath; const segment = node[0]; let segmentValue = (0, _getsegmentvalue.getSegmentValue)(segment); if (!segmentValue || segmentValue.startsWith(_segment.PAGE_SEGMENT_KEY)) { return segmentPath; } segmentPath.push(segmentValue); return getSelectedLayoutSegmentPath(node, parallelRouteKey, false, segmentPath); } function useSelectedLayoutSegments(parallelRouteKey) { if (parallelRouteKey === void 0) parallelRouteKey = 'children'; useDynamicRouteParams == null ? void 0 : useDynamicRouteParams('useSelectedLayoutSegments()'); const context = (0, _react.useContext)(_approutercontextsharedruntime.LayoutRouterContext); // @ts-expect-error This only happens in `pages`. Type is overwritten in navigation.d.ts if (!context) return null; return getSelectedLayoutSegmentPath(context.parentTree, parallelRouteKey); } function useSelectedLayoutSegment(parallelRouteKey) { if (parallelRouteKey === void 0) parallelRouteKey = 'children'; useDynamicRouteParams == null ? void 0 : useDynamicRouteParams('useSelectedLayoutSegment()'); const selectedLayoutSegments = useSelectedLayoutSegments(parallelRouteKey); if (!selectedLayoutSegments || selectedLayoutSegments.length === 0) { return null; } const selectedLayoutSegment = parallelRouteKey === 'children' ? selectedLayoutSegments[0] : selectedLayoutSegments[selectedLayoutSegments.length - 1]; // if the default slot is showing, we return null since it's not technically "selected" (it's a fallback) // and returning an internal value like `__DEFAULT__` would be confusing. return selectedLayoutSegment === _segment.DEFAULT_SEGMENT_KEY ? null : selectedLayoutSegment; } 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=navigation.js.map