@lssm/lib.design-system 1.11.1 → 1.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/dist/_virtual/rolldown_runtime.js +9 -4
- package/dist/components/agent/ApprovalQueue.js +1 -1
- package/dist/components/atoms/Button.js +4 -5
- package/dist/components/atoms/ButtonLink.js +2 -2
- package/dist/components/atoms/Cta.js +4 -5
- package/dist/components/atoms/EmptyState.js +4 -4
- package/dist/components/atoms/ErrorState.js +1 -2
- package/dist/components/atoms/Input.js +5 -6
- package/dist/components/atoms/Link.js +1 -2
- package/dist/components/atoms/Link.web.js +4 -2
- package/dist/components/atoms/LoaderCircular.js +1 -2
- package/dist/components/atoms/Stepper.js +4 -4
- package/dist/components/atoms/Textarea.js +8 -9
- package/dist/components/data-view/DataViewRenderer.js +2 -2
- package/dist/components/forms/ActionForm.js +18 -0
- package/dist/components/forms/FormOneByOneLayout.js +3 -3
- package/dist/components/forms/FormStepsLayout.js +3 -3
- package/dist/components/forms/ZodForm.js +1 -1
- package/dist/components/legal/atoms/LegalCallout.js +1 -1
- package/dist/components/legal/atoms/LegalHeading.js +1 -1
- package/dist/components/legal/atoms/LegalList.js +1 -1
- package/dist/components/legal/atoms/LegalSection.js +1 -1
- package/dist/components/legal/atoms/LegalText.js +1 -1
- package/dist/components/legal/molecules/ContactFields.js +8 -8
- package/dist/components/legal/molecules/LegalTOC.js +1 -1
- package/dist/components/legal/organisms/ContactForm.js +3 -3
- package/dist/components/legal/organisms/GDPRDataRequest.js +2 -2
- package/dist/components/legal/templates/ContactTemplate.js +3 -3
- package/dist/components/marketing/MarketingCard.js +20 -0
- package/dist/components/marketing/MarketingCardsSection.js +28 -0
- package/dist/components/marketing/MarketingComparisonSection.js +52 -0
- package/dist/components/marketing/MarketingIconCard.js +73 -0
- package/dist/components/marketing/MarketingSection.js +61 -0
- package/dist/components/marketing/MarketingStepCard.js +36 -0
- package/dist/components/molecules/AiLinkButton.js +4 -4
- package/dist/components/molecules/Breadcrumbs.js +2 -2
- package/dist/components/molecules/CommandPalette.js +3 -3
- package/dist/components/molecules/CommandSearchTrigger.js +3 -3
- package/dist/components/molecules/FiltersToolbar.js +5 -5
- package/dist/components/molecules/HoverPreview.js +2 -2
- package/dist/components/molecules/LangSwitchDropdown.js +2 -2
- package/dist/components/molecules/LoaderBlock.js +1 -2
- package/dist/components/molecules/OverviewCard.js +5 -4
- package/dist/components/molecules/SkeletonBlock/index.web.js +1 -2
- package/dist/components/molecules/SkeletonCircle/index.web.js +1 -2
- package/dist/components/molecules/SkeletonList/index.web.js +4 -5
- package/dist/components/organisms/AcademyLayout.js +2 -2
- package/dist/components/organisms/AppLayout.js +2 -2
- package/dist/components/organisms/EmptySearchResult.js +5 -5
- package/dist/components/organisms/FAQSection.js +2 -2
- package/dist/components/organisms/Footer.js +2 -4
- package/dist/components/organisms/MarketingHeader.js +5 -5
- package/dist/components/organisms/MarketingHeaderMobile.js +2 -2
- package/dist/components/organisms/MarketingLayout.js +1 -0
- package/dist/components/templates/lists/ListPageTemplate/index.web.js +2 -2
- package/dist/hooks/useListUrlState.js +7 -7
- package/dist/index.js +9 -1
- package/dist/lib/keyboard.js +1 -172
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +14 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +35 -0
- package/dist/node_modules/next/dist/client/add-base-path.js +30 -0
- package/dist/node_modules/next/dist/client/add-locale.js +29 -0
- package/dist/node_modules/next/dist/client/detect-domain-locale.js +26 -0
- package/dist/node_modules/next/dist/client/get-domain-locale.js +41 -0
- package/dist/node_modules/next/dist/client/has-base-path.js +28 -0
- package/dist/node_modules/next/dist/client/link.js +311 -0
- package/dist/node_modules/next/dist/client/normalize-locale-path.js +30 -0
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +34 -0
- package/dist/node_modules/next/dist/client/request-idle-callback.js +44 -0
- package/dist/node_modules/next/dist/client/resolve-href.js +86 -0
- package/dist/node_modules/next/dist/client/use-intersection.js +104 -0
- package/dist/node_modules/next/dist/client/use-merged-ref.js +56 -0
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +372 -0
- package/dist/node_modules/next/dist/lib/constants.js +316 -0
- package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +69 -0
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +23 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +22 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +42 -0
- package/dist/node_modules/next/dist/shared/lib/invariant-error.js +23 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +23 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +30 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +24 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +41 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +78 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +151 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +77 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +32 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +92 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +41 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +26 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +31 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +24 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +36 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +24 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +56 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +26 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +94 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +46 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +203 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +167 -0
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +20 -0
- package/dist/node_modules/next/dist/shared/lib/segment.js +80 -0
- package/dist/node_modules/next/dist/shared/lib/utils/error-once.js +25 -0
- package/dist/node_modules/next/dist/shared/lib/utils.js +172 -0
- package/dist/node_modules/next/link.js +12 -0
- package/dist/platform/useColorScheme.js +3 -3
- package/dist/platform/useReducedMotion.js +3 -3
- package/dist/platform/useResponsive.js +4 -4
- package/dist/renderers/form-contract.js +1 -1
- package/package.json +13 -304
- package/dist/components/agent/AgentMonitor.d.ts +0 -28
- package/dist/components/agent/ApprovalQueue.d.ts +0 -25
- package/dist/components/atoms/ActionButtons.d.ts +0 -25
- package/dist/components/atoms/Button.d.ts +0 -39
- package/dist/components/atoms/Button.mobile.d.ts +0 -21
- package/dist/components/atoms/Button.mobile.js +0 -34
- package/dist/components/atoms/ButtonLink.d.ts +0 -21
- package/dist/components/atoms/ButtonLink.mobile.d.ts +0 -19
- package/dist/components/atoms/ButtonLink.mobile.js +0 -41
- package/dist/components/atoms/Cta.d.ts +0 -20
- package/dist/components/atoms/Cta.mobile.d.ts +0 -14
- package/dist/components/atoms/Cta.mobile.js +0 -38
- package/dist/components/atoms/DataChips.d.ts +0 -37
- package/dist/components/atoms/EmptyState.d.ts +0 -7
- package/dist/components/atoms/ErrorState.d.ts +0 -28
- package/dist/components/atoms/ErrorState.mobile.d.ts +0 -28
- package/dist/components/atoms/ErrorState.mobile.js +0 -41
- package/dist/components/atoms/Input.d.ts +0 -39
- package/dist/components/atoms/Input.mobile.d.ts +0 -37
- package/dist/components/atoms/Input.mobile.js +0 -27
- package/dist/components/atoms/Link.d.ts +0 -11
- package/dist/components/atoms/Link.native.d.ts +0 -1
- package/dist/components/atoms/Link.native.js +0 -0
- package/dist/components/atoms/Link.web.d.ts +0 -23
- package/dist/components/atoms/LoaderCircular.d.ts +0 -22
- package/dist/components/atoms/LoaderCircular.mobile.d.ts +0 -17
- package/dist/components/atoms/LoaderCircular.mobile.js +0 -26
- package/dist/components/atoms/NavBrand.d.ts +0 -18
- package/dist/components/atoms/Stepper.d.ts +0 -7
- package/dist/components/atoms/Textarea.d.ts +0 -41
- package/dist/components/atoms/Textarea.mobile.d.ts +0 -37
- package/dist/components/atoms/Textarea.mobile.js +0 -27
- package/dist/components/data-view/DataViewDetail.d.ts +0 -21
- package/dist/components/data-view/DataViewList.d.ts +0 -23
- package/dist/components/data-view/DataViewRenderer.d.ts +0 -47
- package/dist/components/data-view/DataViewTable.d.ts +0 -25
- package/dist/components/data-view/utils.d.ts +0 -5
- package/dist/components/forms/FormCardLayout.d.ts +0 -22
- package/dist/components/forms/FormDialog.d.ts +0 -24
- package/dist/components/forms/FormLayout.d.ts +0 -29
- package/dist/components/forms/FormOneByOneLayout.d.ts +0 -25
- package/dist/components/forms/FormStepsLayout.d.ts +0 -26
- package/dist/components/forms/ZodForm.d.ts +0 -21
- package/dist/components/legal/atoms/DefinitionList.d.ts +0 -16
- package/dist/components/legal/atoms/KeyValueList.d.ts +0 -16
- package/dist/components/legal/atoms/LegalCallout.d.ts +0 -17
- package/dist/components/legal/atoms/LegalHeading.d.ts +0 -24
- package/dist/components/legal/atoms/LegalList.d.ts +0 -20
- package/dist/components/legal/atoms/LegalSection.d.ts +0 -21
- package/dist/components/legal/atoms/LegalText.d.ts +0 -24
- package/dist/components/legal/molecules/Consent.d.ts +0 -35
- package/dist/components/legal/molecules/ContactFields.d.ts +0 -24
- package/dist/components/legal/molecules/LegalMeta.d.ts +0 -14
- package/dist/components/legal/molecules/LegalTOC.d.ts +0 -30
- package/dist/components/legal/organisms/ContactForm.d.ts +0 -29
- package/dist/components/legal/organisms/GDPRDataRequest.d.ts +0 -18
- package/dist/components/legal/organisms/GDPRRights.d.ts +0 -13
- package/dist/components/legal/organisms/LegalPageLayout.d.ts +0 -23
- package/dist/components/legal/templates/ContactTemplate.d.ts +0 -23
- package/dist/components/legal/templates/CookiesTemplate.d.ts +0 -32
- package/dist/components/legal/templates/PrivacyTemplate.d.ts +0 -32
- package/dist/components/legal/templates/SalesTermsTemplate.d.ts +0 -27
- package/dist/components/legal/templates/TermsTemplate.d.ts +0 -27
- package/dist/components/molecules/AiLinkButton.d.ts +0 -15
- package/dist/components/molecules/Breadcrumbs.d.ts +0 -15
- package/dist/components/molecules/CommandPalette.d.ts +0 -26
- package/dist/components/molecules/CommandSearchTrigger.d.ts +0 -18
- package/dist/components/molecules/DropdownMenu.d.ts +0 -1
- package/dist/components/molecules/DropdownMenu.js +0 -0
- package/dist/components/molecules/EntityCard.d.ts +0 -37
- package/dist/components/molecules/FiltersToolbar.d.ts +0 -35
- package/dist/components/molecules/FiltersToolbar.mobile.d.ts +0 -18
- package/dist/components/molecules/FiltersToolbar.mobile.js +0 -48
- package/dist/components/molecules/HoverPreview.d.ts +0 -20
- package/dist/components/molecules/LangSwitch.d.ts +0 -22
- package/dist/components/molecules/LangSwitchDropdown.d.ts +0 -21
- package/dist/components/molecules/LoaderBlock.d.ts +0 -18
- package/dist/components/molecules/LoaderBlock.mobile.d.ts +0 -18
- package/dist/components/molecules/LoaderBlock.mobile.js +0 -25
- package/dist/components/molecules/MobileNavMenu.d.ts +0 -13
- package/dist/components/molecules/NavItemCard.d.ts +0 -14
- package/dist/components/molecules/NavMain.d.ts +0 -13
- package/dist/components/molecules/NavUser.d.ts +0 -17
- package/dist/components/molecules/OverviewCard.d.ts +0 -20
- package/dist/components/molecules/SkeletonBlock/index.d.ts +0 -3
- package/dist/components/molecules/SkeletonBlock/index.js +0 -3
- package/dist/components/molecules/SkeletonBlock/index.mobile.d.ts +0 -12
- package/dist/components/molecules/SkeletonBlock/index.mobile.js +0 -18
- package/dist/components/molecules/SkeletonBlock/index.web.d.ts +0 -12
- package/dist/components/molecules/SkeletonBlock/types.d.ts +0 -9
- package/dist/components/molecules/SkeletonBlock/types.js +0 -0
- package/dist/components/molecules/SkeletonCircle/index.d.ts +0 -3
- package/dist/components/molecules/SkeletonCircle/index.js +0 -3
- package/dist/components/molecules/SkeletonCircle/index.mobile.d.ts +0 -11
- package/dist/components/molecules/SkeletonCircle/index.mobile.js +0 -23
- package/dist/components/molecules/SkeletonCircle/index.web.d.ts +0 -11
- package/dist/components/molecules/SkeletonCircle/types.d.ts +0 -8
- package/dist/components/molecules/SkeletonCircle/types.js +0 -0
- package/dist/components/molecules/SkeletonList/index.d.ts +0 -3
- package/dist/components/molecules/SkeletonList/index.js +0 -3
- package/dist/components/molecules/SkeletonList/index.mobile.d.ts +0 -10
- package/dist/components/molecules/SkeletonList/index.mobile.js +0 -22
- package/dist/components/molecules/SkeletonList/index.web.d.ts +0 -10
- package/dist/components/molecules/SkeletonList/types.d.ts +0 -7
- package/dist/components/molecules/SkeletonList/types.js +0 -0
- package/dist/components/molecules/StatCard.d.ts +0 -36
- package/dist/components/molecules/StatusChip.d.ts +0 -26
- package/dist/components/molecules/hover-previews/Doc.d.ts +0 -27
- package/dist/components/molecules/hover-previews/Media.d.ts +0 -20
- package/dist/components/molecules/hover-previews/Simple.d.ts +0 -25
- package/dist/components/molecules/hover-previews/Stats.d.ts +0 -22
- package/dist/components/molecules/hover-previews/User.d.ts +0 -25
- package/dist/components/native/BottomTabs.mobile.d.ts +0 -20
- package/dist/components/native/BottomTabs.mobile.js +0 -27
- package/dist/components/native/FlatListScreen.mobile.d.ts +0 -43
- package/dist/components/native/FlatListScreen.mobile.js +0 -63
- package/dist/components/native/SheetMenu.mobile.d.ts +0 -17
- package/dist/components/native/SheetMenu.mobile.js +0 -21
- package/dist/components/organisms/AcademyLayout.d.ts +0 -29
- package/dist/components/organisms/AppHeader.d.ts +0 -18
- package/dist/components/organisms/AppHeader.mobile.d.ts +0 -21
- package/dist/components/organisms/AppHeader.mobile.js +0 -52
- package/dist/components/organisms/AppLayout.d.ts +0 -28
- package/dist/components/organisms/AppSidebar.d.ts +0 -23
- package/dist/components/organisms/AppSidebar.mobile.d.ts +0 -1
- package/dist/components/organisms/AppSidebar.mobile.js +0 -0
- package/dist/components/organisms/EmptyDataList.d.ts +0 -20
- package/dist/components/organisms/EmptyDataList.mobile.d.ts +0 -20
- package/dist/components/organisms/EmptyDataList.mobile.js +0 -27
- package/dist/components/organisms/EmptyDataList.types.d.ts +0 -19
- package/dist/components/organisms/EmptyDataList.types.js +0 -1
- package/dist/components/organisms/EmptySearchResult.d.ts +0 -24
- package/dist/components/organisms/FAQSection.d.ts +0 -31
- package/dist/components/organisms/FeatureCarousel.d.ts +0 -18
- package/dist/components/organisms/FeaturesSection.d.ts +0 -19
- package/dist/components/organisms/Footer.d.ts +0 -25
- package/dist/components/organisms/GridLayout.d.ts +0 -25
- package/dist/components/organisms/GridLayout.js +0 -28
- package/dist/components/organisms/Header.d.ts +0 -37
- package/dist/components/organisms/Header.mobile.d.ts +0 -24
- package/dist/components/organisms/Header.mobile.js +0 -18
- package/dist/components/organisms/HeroResponsive.d.ts +0 -14
- package/dist/components/organisms/HeroSection.d.ts +0 -29
- package/dist/components/organisms/ListCardPage.d.ts +0 -36
- package/dist/components/organisms/ListGridPage.d.ts +0 -36
- package/dist/components/organisms/ListPageResponsive.d.ts +0 -7
- package/dist/components/organisms/ListTablePage.d.ts +0 -33
- package/dist/components/organisms/MarketingHeader.d.ts +0 -36
- package/dist/components/organisms/MarketingHeaderDesktop.d.ts +0 -15
- package/dist/components/organisms/MarketingHeaderMobile.d.ts +0 -12
- package/dist/components/organisms/MarketingLayout.d.ts +0 -18
- package/dist/components/organisms/PageHeaderResponsive.d.ts +0 -8
- package/dist/components/organisms/PageHeaderResponsive.mobile.d.ts +0 -22
- package/dist/components/organisms/PageHeaderResponsive.mobile.js +0 -32
- package/dist/components/organisms/PricingCarousel.d.ts +0 -24
- package/dist/components/organisms/PricingSection.d.ts +0 -18
- package/dist/components/organisms/TestimonialCarousel.d.ts +0 -19
- package/dist/components/templates/lists/ListPageTemplate/index.d.ts +0 -3
- package/dist/components/templates/lists/ListPageTemplate/index.js +0 -3
- package/dist/components/templates/lists/ListPageTemplate/index.mobile.d.ts +0 -21
- package/dist/components/templates/lists/ListPageTemplate/index.mobile.js +0 -32
- package/dist/components/templates/lists/ListPageTemplate/index.web.d.ts +0 -22
- package/dist/components/templates/lists/ListPageTemplate/types.d.ts +0 -25
- package/dist/components/templates/lists/ListPageTemplate/types.js +0 -1
- package/dist/hooks/useListUrlState.d.ts +0 -30
- package/dist/index.d.ts +0 -108
- package/dist/lib/keyboard.d.ts +0 -14
- package/dist/lib/utils.d.ts +0 -6
- package/dist/platform/useColorScheme.d.ts +0 -5
- package/dist/platform/useColorScheme.mobile.d.ts +0 -5
- package/dist/platform/useColorScheme.mobile.js +0 -20
- package/dist/platform/useReducedMotion.d.ts +0 -4
- package/dist/platform/useReducedMotion.mobile.d.ts +0 -4
- package/dist/platform/useReducedMotion.mobile.js +0 -28
- package/dist/platform/useResponsive.d.ts +0 -23
- package/dist/platform/useResponsive.mobile.d.ts +0 -23
- package/dist/platform/useResponsive.mobile.js +0 -42
- package/dist/platform/withPlatformUI.d.ts +0 -28
- package/dist/renderers/form-contract.d.ts +0 -11
- package/dist/renderers/index.d.ts +0 -2
- package/dist/renderers/index.js +0 -3
- package/dist/theme/tokenBridge.d.ts +0 -19
- package/dist/theme/tokens.d.ts +0 -50
- package/dist/theme/variants.d.ts +0 -21
- package/dist/types/nativewind-env.d.ts +0 -1
- package/dist/types/navigation.d.ts +0 -44
- package/dist/types/navigation.js +0 -1
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require_app_paths } from "./app-paths.js";
|
|
3
|
+
|
|
4
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/interception-routes.js
|
|
5
|
+
var require_interception_routes = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
function _export(target, all) {
|
|
8
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: all[name]
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
_export(exports, {
|
|
14
|
+
INTERCEPTION_ROUTE_MARKERS: function() {
|
|
15
|
+
return INTERCEPTION_ROUTE_MARKERS;
|
|
16
|
+
},
|
|
17
|
+
extractInterceptionRouteInformation: function() {
|
|
18
|
+
return extractInterceptionRouteInformation;
|
|
19
|
+
},
|
|
20
|
+
isInterceptionRouteAppPath: function() {
|
|
21
|
+
return isInterceptionRouteAppPath;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
const _apppaths = require_app_paths();
|
|
25
|
+
const INTERCEPTION_ROUTE_MARKERS = [
|
|
26
|
+
"(..)(..)",
|
|
27
|
+
"(.)",
|
|
28
|
+
"(..)",
|
|
29
|
+
"(...)"
|
|
30
|
+
];
|
|
31
|
+
function isInterceptionRouteAppPath(path) {
|
|
32
|
+
return path.split("/").find((segment) => INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m))) !== void 0;
|
|
33
|
+
}
|
|
34
|
+
function extractInterceptionRouteInformation(path) {
|
|
35
|
+
let interceptingRoute;
|
|
36
|
+
let marker;
|
|
37
|
+
let interceptedRoute;
|
|
38
|
+
for (const segment of path.split("/")) {
|
|
39
|
+
marker = INTERCEPTION_ROUTE_MARKERS.find((m) => segment.startsWith(m));
|
|
40
|
+
if (marker) {
|
|
41
|
+
[interceptingRoute, interceptedRoute] = path.split(marker, 2);
|
|
42
|
+
break;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
if (!interceptingRoute || !marker || !interceptedRoute) throw Object.defineProperty(/* @__PURE__ */ new Error(`Invalid interception route: ${path}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`), "__NEXT_ERROR_CODE", {
|
|
46
|
+
value: "E269",
|
|
47
|
+
enumerable: false,
|
|
48
|
+
configurable: true
|
|
49
|
+
});
|
|
50
|
+
interceptingRoute = (0, _apppaths.normalizeAppPath)(interceptingRoute);
|
|
51
|
+
switch (marker) {
|
|
52
|
+
case "(.)":
|
|
53
|
+
if (interceptingRoute === "/") interceptedRoute = `/${interceptedRoute}`;
|
|
54
|
+
else interceptedRoute = interceptingRoute + "/" + interceptedRoute;
|
|
55
|
+
break;
|
|
56
|
+
case "(..)":
|
|
57
|
+
if (interceptingRoute === "/") throw Object.defineProperty(/* @__PURE__ */ new Error(`Invalid interception route: ${path}. Cannot use (..) marker at the root level, use (.) instead.`), "__NEXT_ERROR_CODE", {
|
|
58
|
+
value: "E207",
|
|
59
|
+
enumerable: false,
|
|
60
|
+
configurable: true
|
|
61
|
+
});
|
|
62
|
+
interceptedRoute = interceptingRoute.split("/").slice(0, -1).concat(interceptedRoute).join("/");
|
|
63
|
+
break;
|
|
64
|
+
case "(...)":
|
|
65
|
+
interceptedRoute = "/" + interceptedRoute;
|
|
66
|
+
break;
|
|
67
|
+
case "(..)(..)":
|
|
68
|
+
const splitInterceptingRoute = interceptingRoute.split("/");
|
|
69
|
+
if (splitInterceptingRoute.length <= 2) throw Object.defineProperty(/* @__PURE__ */ new Error(`Invalid interception route: ${path}. Cannot use (..)(..) marker at the root level or one level up.`), "__NEXT_ERROR_CODE", {
|
|
70
|
+
value: "E486",
|
|
71
|
+
enumerable: false,
|
|
72
|
+
configurable: true
|
|
73
|
+
});
|
|
74
|
+
interceptedRoute = splitInterceptingRoute.slice(0, -2).concat(interceptedRoute).join("/");
|
|
75
|
+
break;
|
|
76
|
+
default: throw Object.defineProperty(/* @__PURE__ */ new Error("Invariant: unexpected marker"), "__NEXT_ERROR_CODE", {
|
|
77
|
+
value: "E112",
|
|
78
|
+
enumerable: false,
|
|
79
|
+
configurable: true
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
return {
|
|
83
|
+
interceptingRoute,
|
|
84
|
+
interceptedRoute
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
}));
|
|
88
|
+
|
|
89
|
+
//#endregion
|
|
90
|
+
export default require_interception_routes();
|
|
91
|
+
|
|
92
|
+
export { require_interception_routes };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require_route_matcher } from "./route-matcher.js";
|
|
3
|
+
import { require_route_regex } from "./route-regex.js";
|
|
4
|
+
|
|
5
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/interpolate-as.js
|
|
6
|
+
var require_interpolate_as = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
Object.defineProperty(exports, "interpolateAs", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function() {
|
|
11
|
+
return interpolateAs;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
const _routematcher = require_route_matcher();
|
|
15
|
+
const _routeregex = require_route_regex();
|
|
16
|
+
function interpolateAs(route, asPathname, query) {
|
|
17
|
+
let interpolatedRoute = "";
|
|
18
|
+
const dynamicRegex = (0, _routeregex.getRouteRegex)(route);
|
|
19
|
+
const dynamicGroups = dynamicRegex.groups;
|
|
20
|
+
const dynamicMatches = (asPathname !== route ? (0, _routematcher.getRouteMatcher)(dynamicRegex)(asPathname) : "") || query;
|
|
21
|
+
interpolatedRoute = route;
|
|
22
|
+
const params = Object.keys(dynamicGroups);
|
|
23
|
+
if (!params.every((param) => {
|
|
24
|
+
let value = dynamicMatches[param] || "";
|
|
25
|
+
const { repeat, optional } = dynamicGroups[param];
|
|
26
|
+
let replaced = `[${repeat ? "..." : ""}${param}]`;
|
|
27
|
+
if (optional) replaced = `${!value ? "/" : ""}[${replaced}]`;
|
|
28
|
+
if (repeat && !Array.isArray(value)) value = [value];
|
|
29
|
+
return (optional || param in dynamicMatches) && (interpolatedRoute = interpolatedRoute.replace(replaced, repeat ? value.map((segment) => encodeURIComponent(segment)).join("/") : encodeURIComponent(value)) || "/");
|
|
30
|
+
})) interpolatedRoute = "";
|
|
31
|
+
return {
|
|
32
|
+
params,
|
|
33
|
+
result: interpolatedRoute
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}));
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
export default require_interpolate_as();
|
|
40
|
+
|
|
41
|
+
export { require_interpolate_as };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require_interception_routes } from "./interception-routes.js";
|
|
3
|
+
|
|
4
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/is-dynamic.js
|
|
5
|
+
var require_is_dynamic = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
Object.defineProperty(exports, "isDynamicRoute", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function() {
|
|
10
|
+
return isDynamicRoute;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
const _interceptionroutes = require_interception_routes();
|
|
14
|
+
const TEST_ROUTE = /\/[^/]*\[[^/]+\][^/]*(?=\/|$)/;
|
|
15
|
+
const TEST_STRICT_ROUTE = /\/\[[^/]+\](?=\/|$)/;
|
|
16
|
+
function isDynamicRoute(route, strict = true) {
|
|
17
|
+
if ((0, _interceptionroutes.isInterceptionRouteAppPath)(route)) route = (0, _interceptionroutes.extractInterceptionRouteInformation)(route).interceptedRoute;
|
|
18
|
+
if (strict) return TEST_STRICT_ROUTE.test(route);
|
|
19
|
+
return TEST_ROUTE.test(route);
|
|
20
|
+
}
|
|
21
|
+
}));
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export default require_is_dynamic();
|
|
25
|
+
|
|
26
|
+
export { require_is_dynamic };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require_utils } from "../../utils.js";
|
|
3
|
+
import { require_has_base_path } from "../../../../client/has-base-path.js";
|
|
4
|
+
|
|
5
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/is-local-url.js
|
|
6
|
+
var require_is_local_url = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
Object.defineProperty(exports, "isLocalURL", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function() {
|
|
11
|
+
return isLocalURL;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
const _utils = require_utils();
|
|
15
|
+
const _hasbasepath = require_has_base_path();
|
|
16
|
+
function isLocalURL(url) {
|
|
17
|
+
if (!(0, _utils.isAbsoluteUrl)(url)) return true;
|
|
18
|
+
try {
|
|
19
|
+
const locationOrigin = (0, _utils.getLocationOrigin)();
|
|
20
|
+
const resolved = new URL(url, locationOrigin);
|
|
21
|
+
return resolved.origin === locationOrigin && (0, _hasbasepath.hasBasePath)(resolved.pathname);
|
|
22
|
+
} catch (_) {
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}));
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
export default require_is_local_url();
|
|
30
|
+
|
|
31
|
+
export { require_is_local_url };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/omit.js
|
|
4
|
+
var require_omit = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
Object.defineProperty(exports, "omit", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function() {
|
|
9
|
+
return omit;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
function omit(object, keys) {
|
|
13
|
+
const omitted = {};
|
|
14
|
+
Object.keys(object).forEach((key) => {
|
|
15
|
+
if (!keys.includes(key)) omitted[key] = object[key];
|
|
16
|
+
});
|
|
17
|
+
return omitted;
|
|
18
|
+
}
|
|
19
|
+
}));
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export default require_omit();
|
|
23
|
+
|
|
24
|
+
export { require_omit };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require_segment } from "../../segment.js";
|
|
3
|
+
|
|
4
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js
|
|
5
|
+
var require_parse_loader_tree = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
Object.defineProperty(exports, "parseLoaderTree", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function() {
|
|
10
|
+
return parseLoaderTree;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
const _segment = require_segment();
|
|
14
|
+
function parseLoaderTree(tree) {
|
|
15
|
+
const [segment, parallelRoutes, modules] = tree;
|
|
16
|
+
const { layout, template } = modules;
|
|
17
|
+
let { page } = modules;
|
|
18
|
+
page = segment === _segment.DEFAULT_SEGMENT_KEY ? modules.defaultPage : page;
|
|
19
|
+
const conventionPath = layout?.[1] || template?.[1] || page?.[1];
|
|
20
|
+
return {
|
|
21
|
+
page,
|
|
22
|
+
segment,
|
|
23
|
+
modules,
|
|
24
|
+
conventionPath,
|
|
25
|
+
parallelRoutes
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
}));
|
|
29
|
+
|
|
30
|
+
//#endregion
|
|
31
|
+
export default require_parse_loader_tree();
|
|
32
|
+
|
|
33
|
+
export { require_parse_loader_tree };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/parse-path.js
|
|
4
|
+
/**
|
|
5
|
+
* Given a path this function will find the pathname, query and hash and return
|
|
6
|
+
* them. This is useful to parse full paths on the client side.
|
|
7
|
+
* @param path A path to parse e.g. /foo/bar?id=1#hash
|
|
8
|
+
*/ var require_parse_path = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
Object.defineProperty(exports, "parsePath", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function() {
|
|
13
|
+
return parsePath;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
function parsePath(path) {
|
|
17
|
+
const hashIndex = path.indexOf("#");
|
|
18
|
+
const queryIndex = path.indexOf("?");
|
|
19
|
+
const hasQuery = queryIndex > -1 && (hashIndex < 0 || queryIndex < hashIndex);
|
|
20
|
+
if (hasQuery || hashIndex > -1) return {
|
|
21
|
+
pathname: path.substring(0, hasQuery ? queryIndex : hashIndex),
|
|
22
|
+
query: hasQuery ? path.substring(queryIndex, hashIndex > -1 ? hashIndex : void 0) : "",
|
|
23
|
+
hash: hashIndex > -1 ? path.slice(hashIndex) : ""
|
|
24
|
+
};
|
|
25
|
+
return {
|
|
26
|
+
pathname: path,
|
|
27
|
+
query: "",
|
|
28
|
+
hash: ""
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
}));
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export default require_parse_path();
|
|
35
|
+
|
|
36
|
+
export { require_parse_path };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require_parse_path } from "./parse-path.js";
|
|
3
|
+
|
|
4
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js
|
|
5
|
+
var require_path_has_prefix = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
Object.defineProperty(exports, "pathHasPrefix", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function() {
|
|
10
|
+
return pathHasPrefix;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
const _parsepath = require_parse_path();
|
|
14
|
+
function pathHasPrefix(path, prefix) {
|
|
15
|
+
if (typeof path !== "string") return false;
|
|
16
|
+
const { pathname } = (0, _parsepath.parsePath)(path);
|
|
17
|
+
return pathname === prefix || pathname.startsWith(prefix + "/");
|
|
18
|
+
}
|
|
19
|
+
}));
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export default require_path_has_prefix();
|
|
23
|
+
|
|
24
|
+
export { require_path_has_prefix };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/querystring.js
|
|
4
|
+
var require_querystring = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
function _export(target, all) {
|
|
7
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: all[name]
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
_export(exports, {
|
|
13
|
+
assign: function() {
|
|
14
|
+
return assign;
|
|
15
|
+
},
|
|
16
|
+
searchParamsToUrlQuery: function() {
|
|
17
|
+
return searchParamsToUrlQuery;
|
|
18
|
+
},
|
|
19
|
+
urlQueryToSearchParams: function() {
|
|
20
|
+
return urlQueryToSearchParams;
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
function searchParamsToUrlQuery(searchParams) {
|
|
24
|
+
const query = {};
|
|
25
|
+
for (const [key, value] of searchParams.entries()) {
|
|
26
|
+
const existing = query[key];
|
|
27
|
+
if (typeof existing === "undefined") query[key] = value;
|
|
28
|
+
else if (Array.isArray(existing)) existing.push(value);
|
|
29
|
+
else query[key] = [existing, value];
|
|
30
|
+
}
|
|
31
|
+
return query;
|
|
32
|
+
}
|
|
33
|
+
function stringifyUrlQueryParam(param) {
|
|
34
|
+
if (typeof param === "string") return param;
|
|
35
|
+
if (typeof param === "number" && !isNaN(param) || typeof param === "boolean") return String(param);
|
|
36
|
+
else return "";
|
|
37
|
+
}
|
|
38
|
+
function urlQueryToSearchParams(query) {
|
|
39
|
+
const searchParams = new URLSearchParams();
|
|
40
|
+
for (const [key, value] of Object.entries(query)) if (Array.isArray(value)) for (const item of value) searchParams.append(key, stringifyUrlQueryParam(item));
|
|
41
|
+
else searchParams.set(key, stringifyUrlQueryParam(value));
|
|
42
|
+
return searchParams;
|
|
43
|
+
}
|
|
44
|
+
function assign(target, ...searchParamsList) {
|
|
45
|
+
for (const searchParams of searchParamsList) {
|
|
46
|
+
for (const key of searchParams.keys()) target.delete(key);
|
|
47
|
+
for (const [key, value] of searchParams.entries()) target.append(key, value);
|
|
48
|
+
}
|
|
49
|
+
return target;
|
|
50
|
+
}
|
|
51
|
+
}));
|
|
52
|
+
|
|
53
|
+
//#endregion
|
|
54
|
+
export default require_querystring();
|
|
55
|
+
|
|
56
|
+
export { require_querystring };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js
|
|
4
|
+
/**
|
|
5
|
+
* Removes the trailing slash for a given route or page path. Preserves the
|
|
6
|
+
* root page. Examples:
|
|
7
|
+
* - `/foo/bar/` -> `/foo/bar`
|
|
8
|
+
* - `/foo/bar` -> `/foo/bar`
|
|
9
|
+
* - `/` -> `/`
|
|
10
|
+
*/ var require_remove_trailing_slash = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
Object.defineProperty(exports, "removeTrailingSlash", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function() {
|
|
15
|
+
return removeTrailingSlash;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
function removeTrailingSlash(route) {
|
|
19
|
+
return route.replace(/\/$/, "") || "/";
|
|
20
|
+
}
|
|
21
|
+
}));
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export default require_remove_trailing_slash();
|
|
25
|
+
|
|
26
|
+
export { require_remove_trailing_slash };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require_path_to_regexp } from "../../../../compiled/path-to-regexp/index.js";
|
|
3
|
+
import { require_route_pattern_normalizer } from "../../../../lib/route-pattern-normalizer.js";
|
|
4
|
+
|
|
5
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/route-match-utils.js
|
|
6
|
+
/**
|
|
7
|
+
* Client-safe utilities for route matching that don't import server-side
|
|
8
|
+
* utilities to avoid bundling issues with Turbopack
|
|
9
|
+
*/ var require_route_match_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
function _export(target, all) {
|
|
12
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: all[name]
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
_export(exports, {
|
|
18
|
+
safeCompile: function() {
|
|
19
|
+
return safeCompile;
|
|
20
|
+
},
|
|
21
|
+
safePathToRegexp: function() {
|
|
22
|
+
return safePathToRegexp;
|
|
23
|
+
},
|
|
24
|
+
safeRegexpToFunction: function() {
|
|
25
|
+
return safeRegexpToFunction;
|
|
26
|
+
},
|
|
27
|
+
safeRouteMatcher: function() {
|
|
28
|
+
return safeRouteMatcher;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
const _pathtoregexp = require_path_to_regexp();
|
|
32
|
+
const _routepatternnormalizer = require_route_pattern_normalizer();
|
|
33
|
+
function safePathToRegexp(route, keys, options) {
|
|
34
|
+
if (typeof route !== "string") return (0, _pathtoregexp.pathToRegexp)(route, keys, options);
|
|
35
|
+
const needsNormalization = (0, _routepatternnormalizer.hasAdjacentParameterIssues)(route);
|
|
36
|
+
const routeToUse = needsNormalization ? (0, _routepatternnormalizer.normalizeAdjacentParameters)(route) : route;
|
|
37
|
+
try {
|
|
38
|
+
return (0, _pathtoregexp.pathToRegexp)(routeToUse, keys, options);
|
|
39
|
+
} catch (error) {
|
|
40
|
+
if (!needsNormalization) try {
|
|
41
|
+
const normalizedRoute = (0, _routepatternnormalizer.normalizeAdjacentParameters)(route);
|
|
42
|
+
return (0, _pathtoregexp.pathToRegexp)(normalizedRoute, keys, options);
|
|
43
|
+
} catch (retryError) {
|
|
44
|
+
throw error;
|
|
45
|
+
}
|
|
46
|
+
throw error;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
function safeCompile(route, options) {
|
|
50
|
+
const needsNormalization = (0, _routepatternnormalizer.hasAdjacentParameterIssues)(route);
|
|
51
|
+
const routeToUse = needsNormalization ? (0, _routepatternnormalizer.normalizeAdjacentParameters)(route) : route;
|
|
52
|
+
try {
|
|
53
|
+
const compiler = (0, _pathtoregexp.compile)(routeToUse, options);
|
|
54
|
+
if (needsNormalization) return (params) => {
|
|
55
|
+
return (0, _routepatternnormalizer.stripNormalizedSeparators)(compiler(params));
|
|
56
|
+
};
|
|
57
|
+
return compiler;
|
|
58
|
+
} catch (error) {
|
|
59
|
+
if (!needsNormalization) try {
|
|
60
|
+
const normalizedRoute = (0, _routepatternnormalizer.normalizeAdjacentParameters)(route);
|
|
61
|
+
const compiler = (0, _pathtoregexp.compile)(normalizedRoute, options);
|
|
62
|
+
return (params) => {
|
|
63
|
+
return (0, _routepatternnormalizer.stripNormalizedSeparators)(compiler(params));
|
|
64
|
+
};
|
|
65
|
+
} catch (retryError) {
|
|
66
|
+
throw error;
|
|
67
|
+
}
|
|
68
|
+
throw error;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function safeRegexpToFunction(regexp, keys) {
|
|
72
|
+
const originalMatcher = (0, _pathtoregexp.regexpToFunction)(regexp, keys || []);
|
|
73
|
+
return (pathname) => {
|
|
74
|
+
const result = originalMatcher(pathname);
|
|
75
|
+
if (!result) return false;
|
|
76
|
+
return {
|
|
77
|
+
...result,
|
|
78
|
+
params: (0, _routepatternnormalizer.stripParameterSeparators)(result.params)
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
function safeRouteMatcher(matcherFn) {
|
|
83
|
+
return (pathname) => {
|
|
84
|
+
const result = matcherFn(pathname);
|
|
85
|
+
if (!result) return false;
|
|
86
|
+
return (0, _routepatternnormalizer.stripParameterSeparators)(result);
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
}));
|
|
90
|
+
|
|
91
|
+
//#endregion
|
|
92
|
+
export default require_route_match_utils();
|
|
93
|
+
|
|
94
|
+
export { require_route_match_utils };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require_utils } from "../../utils.js";
|
|
3
|
+
import { require_route_match_utils } from "./route-match-utils.js";
|
|
4
|
+
|
|
5
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/route-matcher.js
|
|
6
|
+
var require_route_matcher = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
Object.defineProperty(exports, "getRouteMatcher", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function() {
|
|
11
|
+
return getRouteMatcher;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
const _utils = require_utils();
|
|
15
|
+
const _routematchutils = require_route_match_utils();
|
|
16
|
+
function getRouteMatcher({ re, groups }) {
|
|
17
|
+
const rawMatcher = (pathname) => {
|
|
18
|
+
const routeMatch = re.exec(pathname);
|
|
19
|
+
if (!routeMatch) return false;
|
|
20
|
+
const decode = (param) => {
|
|
21
|
+
try {
|
|
22
|
+
return decodeURIComponent(param);
|
|
23
|
+
} catch {
|
|
24
|
+
throw Object.defineProperty(new _utils.DecodeError("failed to decode param"), "__NEXT_ERROR_CODE", {
|
|
25
|
+
value: "E528",
|
|
26
|
+
enumerable: false,
|
|
27
|
+
configurable: true
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
const params = {};
|
|
32
|
+
for (const [key, group] of Object.entries(groups)) {
|
|
33
|
+
const match = routeMatch[group.pos];
|
|
34
|
+
if (match !== void 0) if (group.repeat) params[key] = match.split("/").map((entry) => decode(entry));
|
|
35
|
+
else params[key] = decode(match);
|
|
36
|
+
}
|
|
37
|
+
return params;
|
|
38
|
+
};
|
|
39
|
+
return (0, _routematchutils.safeRouteMatcher)(rawMatcher);
|
|
40
|
+
}
|
|
41
|
+
}));
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
export default require_route_matcher();
|
|
45
|
+
|
|
46
|
+
export { require_route_matcher };
|