@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,69 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../../node_modules/next/dist/lib/route-pattern-normalizer.js
|
|
4
|
+
var require_route_pattern_normalizer = /* @__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
|
+
PARAM_SEPARATOR: function() {
|
|
14
|
+
return PARAM_SEPARATOR;
|
|
15
|
+
},
|
|
16
|
+
hasAdjacentParameterIssues: function() {
|
|
17
|
+
return hasAdjacentParameterIssues;
|
|
18
|
+
},
|
|
19
|
+
normalizeAdjacentParameters: function() {
|
|
20
|
+
return normalizeAdjacentParameters;
|
|
21
|
+
},
|
|
22
|
+
normalizeTokensForRegexp: function() {
|
|
23
|
+
return normalizeTokensForRegexp;
|
|
24
|
+
},
|
|
25
|
+
stripNormalizedSeparators: function() {
|
|
26
|
+
return stripNormalizedSeparators;
|
|
27
|
+
},
|
|
28
|
+
stripParameterSeparators: function() {
|
|
29
|
+
return stripParameterSeparators;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
const PARAM_SEPARATOR = "_NEXTSEP_";
|
|
33
|
+
function hasAdjacentParameterIssues(route) {
|
|
34
|
+
if (typeof route !== "string") return false;
|
|
35
|
+
if (/\/\(\.{1,3}\):[^/\s]+/.test(route)) return true;
|
|
36
|
+
if (/:[a-zA-Z_][a-zA-Z0-9_]*:[a-zA-Z_][a-zA-Z0-9_]*/.test(route)) return true;
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
function normalizeAdjacentParameters(route) {
|
|
40
|
+
let normalized = route;
|
|
41
|
+
normalized = normalized.replace(/(\([^)]*\)):([^/\s]+)/g, `$1${PARAM_SEPARATOR}:$2`);
|
|
42
|
+
normalized = normalized.replace(/:([^:/\s)]+)(?=:)/g, `:$1${PARAM_SEPARATOR}`);
|
|
43
|
+
return normalized;
|
|
44
|
+
}
|
|
45
|
+
function normalizeTokensForRegexp(tokens) {
|
|
46
|
+
return tokens.map((token) => {
|
|
47
|
+
if (typeof token === "object" && token !== null && "modifier" in token && (token.modifier === "*" || token.modifier === "+") && "prefix" in token && "suffix" in token && token.prefix === "" && token.suffix === "") return {
|
|
48
|
+
...token,
|
|
49
|
+
prefix: "/"
|
|
50
|
+
};
|
|
51
|
+
return token;
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function stripNormalizedSeparators(pathname) {
|
|
55
|
+
return pathname.replace(new RegExp(`\\)${PARAM_SEPARATOR}`, "g"), ")");
|
|
56
|
+
}
|
|
57
|
+
function stripParameterSeparators(params) {
|
|
58
|
+
const cleaned = {};
|
|
59
|
+
for (const [key, value] of Object.entries(params)) if (typeof value === "string") cleaned[key] = value.replace(/* @__PURE__ */ new RegExp(`^${PARAM_SEPARATOR}`), "");
|
|
60
|
+
else if (Array.isArray(value)) cleaned[key] = value.map((item) => typeof item === "string" ? item.replace(/* @__PURE__ */ new RegExp(`^${PARAM_SEPARATOR}`), "") : item);
|
|
61
|
+
else cleaned[key] = value;
|
|
62
|
+
return cleaned;
|
|
63
|
+
}
|
|
64
|
+
}));
|
|
65
|
+
|
|
66
|
+
//#endregion
|
|
67
|
+
export default require_route_pattern_normalizer();
|
|
68
|
+
|
|
69
|
+
export { require_route_pattern_normalizer };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../../node_modules/next/dist/shared/lib/escape-regexp.js
|
|
4
|
+
var require_escape_regexp = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
Object.defineProperty(exports, "escapeStringRegexp", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function() {
|
|
9
|
+
return escapeStringRegexp;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
const reHasRegExp = /[|\\{}()[\]^$+*?.-]/;
|
|
13
|
+
const reReplaceRegExp = /[|\\{}()[\]^$+*?.-]/g;
|
|
14
|
+
function escapeStringRegexp(str) {
|
|
15
|
+
if (reHasRegExp.test(str)) return str.replace(reReplaceRegExp, "\\$&");
|
|
16
|
+
return str;
|
|
17
|
+
}
|
|
18
|
+
}));
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export default require_escape_regexp();
|
|
22
|
+
|
|
23
|
+
export { require_escape_regexp };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../../node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js
|
|
4
|
+
var require_detect_domain_locale = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
Object.defineProperty(exports, "detectDomainLocale", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function() {
|
|
9
|
+
return detectDomainLocale;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
function detectDomainLocale(domainItems, hostname, detectedLocale) {
|
|
13
|
+
if (!domainItems) return;
|
|
14
|
+
if (detectedLocale) detectedLocale = detectedLocale.toLowerCase();
|
|
15
|
+
for (const item of domainItems) if (hostname === item.domain?.split(":", 1)[0].toLowerCase() || detectedLocale === item.defaultLocale.toLowerCase() || item.locales?.some((locale) => locale.toLowerCase() === detectedLocale)) return item;
|
|
16
|
+
}
|
|
17
|
+
}));
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export default require_detect_domain_locale();
|
|
21
|
+
|
|
22
|
+
export { require_detect_domain_locale };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../../node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js
|
|
4
|
+
var require_normalize_locale_path = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
Object.defineProperty(exports, "normalizeLocalePath", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function() {
|
|
9
|
+
return normalizeLocalePath;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
/**
|
|
13
|
+
* A cache of lowercased locales for each list of locales. This is stored as a
|
|
14
|
+
* WeakMap so if the locales are garbage collected, the cache entry will be
|
|
15
|
+
* removed as well.
|
|
16
|
+
*/ const cache = /* @__PURE__ */ new WeakMap();
|
|
17
|
+
function normalizeLocalePath(pathname, locales) {
|
|
18
|
+
if (!locales) return { pathname };
|
|
19
|
+
let lowercasedLocales = cache.get(locales);
|
|
20
|
+
if (!lowercasedLocales) {
|
|
21
|
+
lowercasedLocales = locales.map((locale) => locale.toLowerCase());
|
|
22
|
+
cache.set(locales, lowercasedLocales);
|
|
23
|
+
}
|
|
24
|
+
let detectedLocale;
|
|
25
|
+
const segments = pathname.split("/", 2);
|
|
26
|
+
if (!segments[1]) return { pathname };
|
|
27
|
+
const segment = segments[1].toLowerCase();
|
|
28
|
+
const index = lowercasedLocales.indexOf(segment);
|
|
29
|
+
if (index < 0) return { pathname };
|
|
30
|
+
detectedLocale = locales[index];
|
|
31
|
+
pathname = pathname.slice(detectedLocale.length + 1) || "/";
|
|
32
|
+
return {
|
|
33
|
+
pathname,
|
|
34
|
+
detectedLocale
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
}));
|
|
38
|
+
|
|
39
|
+
//#endregion
|
|
40
|
+
export default require_normalize_locale_path();
|
|
41
|
+
|
|
42
|
+
export { require_normalize_locale_path };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../../node_modules/next/dist/shared/lib/invariant-error.js
|
|
4
|
+
var require_invariant_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
Object.defineProperty(exports, "InvariantError", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function() {
|
|
9
|
+
return InvariantError;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
var InvariantError = class extends Error {
|
|
13
|
+
constructor(message, options) {
|
|
14
|
+
super(`Invariant: ${message.endsWith(".") ? message : message + "."} This is a bug in Next.js.`, options);
|
|
15
|
+
this.name = "InvariantError";
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
}));
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export default require_invariant_error();
|
|
22
|
+
|
|
23
|
+
export { require_invariant_error };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../../node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js
|
|
4
|
+
/**
|
|
5
|
+
* For a given page path, this function ensures that there is a leading slash.
|
|
6
|
+
* If there is not a leading slash, one is added, otherwise it is noop.
|
|
7
|
+
*/ var require_ensure_leading_slash = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
Object.defineProperty(exports, "ensureLeadingSlash", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function() {
|
|
12
|
+
return ensureLeadingSlash;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
function ensureLeadingSlash(path) {
|
|
16
|
+
return path.startsWith("/") ? path : `/${path}`;
|
|
17
|
+
}
|
|
18
|
+
}));
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export default require_ensure_leading_slash();
|
|
22
|
+
|
|
23
|
+
export { require_ensure_leading_slash };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require_path_has_prefix } from "./path-has-prefix.js";
|
|
3
|
+
import { require_add_path_prefix } from "./add-path-prefix.js";
|
|
4
|
+
|
|
5
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/add-locale.js
|
|
6
|
+
var require_add_locale = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
Object.defineProperty(exports, "addLocale", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function() {
|
|
11
|
+
return addLocale;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
const _addpathprefix = require_add_path_prefix();
|
|
15
|
+
const _pathhasprefix = require_path_has_prefix();
|
|
16
|
+
function addLocale(path, locale, defaultLocale, ignorePrefix) {
|
|
17
|
+
if (!locale || locale === defaultLocale) return path;
|
|
18
|
+
const lower = path.toLowerCase();
|
|
19
|
+
if (!ignorePrefix) {
|
|
20
|
+
if ((0, _pathhasprefix.pathHasPrefix)(lower, "/api")) return path;
|
|
21
|
+
if ((0, _pathhasprefix.pathHasPrefix)(lower, `/${locale.toLowerCase()}`)) return path;
|
|
22
|
+
}
|
|
23
|
+
return (0, _addpathprefix.addPathPrefix)(path, `/${locale}`);
|
|
24
|
+
}
|
|
25
|
+
}));
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
export default require_add_locale();
|
|
29
|
+
|
|
30
|
+
export { require_add_locale };
|
|
@@ -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/add-path-prefix.js
|
|
5
|
+
var require_add_path_prefix = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
Object.defineProperty(exports, "addPathPrefix", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function() {
|
|
10
|
+
return addPathPrefix;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
const _parsepath = require_parse_path();
|
|
14
|
+
function addPathPrefix(path, prefix) {
|
|
15
|
+
if (!path.startsWith("/") || !prefix) return path;
|
|
16
|
+
const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
|
|
17
|
+
return `${prefix}${pathname}${query}${hash}`;
|
|
18
|
+
}
|
|
19
|
+
}));
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
export default require_add_path_prefix();
|
|
23
|
+
|
|
24
|
+
export { require_add_path_prefix };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require_ensure_leading_slash } from "../../page-path/ensure-leading-slash.js";
|
|
3
|
+
import { require_segment } from "../../segment.js";
|
|
4
|
+
|
|
5
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/app-paths.js
|
|
6
|
+
var require_app_paths = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
function _export(target, all) {
|
|
9
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: all[name]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
_export(exports, {
|
|
15
|
+
normalizeAppPath: function() {
|
|
16
|
+
return normalizeAppPath;
|
|
17
|
+
},
|
|
18
|
+
normalizeRscURL: function() {
|
|
19
|
+
return normalizeRscURL;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
const _ensureleadingslash = require_ensure_leading_slash();
|
|
23
|
+
const _segment = require_segment();
|
|
24
|
+
function normalizeAppPath(route) {
|
|
25
|
+
return (0, _ensureleadingslash.ensureLeadingSlash)(route.split("/").reduce((pathname, segment, index, segments) => {
|
|
26
|
+
if (!segment) return pathname;
|
|
27
|
+
if ((0, _segment.isGroupSegment)(segment)) return pathname;
|
|
28
|
+
if (segment[0] === "@") return pathname;
|
|
29
|
+
if ((segment === "page" || segment === "route") && index === segments.length - 1) return pathname;
|
|
30
|
+
return `${pathname}/${segment}`;
|
|
31
|
+
}, ""));
|
|
32
|
+
}
|
|
33
|
+
function normalizeRscURL(url) {
|
|
34
|
+
return url.replace(/\.rsc($|\?)/, "$1");
|
|
35
|
+
}
|
|
36
|
+
}));
|
|
37
|
+
|
|
38
|
+
//#endregion
|
|
39
|
+
export default require_app_paths();
|
|
40
|
+
|
|
41
|
+
export { require_app_paths };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require__interop_require_wildcard } from "../../../../../../@swc/helpers/cjs/_interop_require_wildcard.js";
|
|
3
|
+
import { require_querystring } from "./querystring.js";
|
|
4
|
+
|
|
5
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/format-url.js
|
|
6
|
+
var require_format_url = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
function _export(target, all) {
|
|
9
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: all[name]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
_export(exports, {
|
|
15
|
+
formatUrl: function() {
|
|
16
|
+
return formatUrl;
|
|
17
|
+
},
|
|
18
|
+
formatWithValidation: function() {
|
|
19
|
+
return formatWithValidation;
|
|
20
|
+
},
|
|
21
|
+
urlObjectKeys: function() {
|
|
22
|
+
return urlObjectKeys;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
const _querystring = /* @__PURE__ */ require__interop_require_wildcard()._(require_querystring());
|
|
26
|
+
const slashedProtocols = /https?|ftp|gopher|file/;
|
|
27
|
+
function formatUrl(urlObj) {
|
|
28
|
+
let { auth, hostname } = urlObj;
|
|
29
|
+
let protocol = urlObj.protocol || "";
|
|
30
|
+
let pathname = urlObj.pathname || "";
|
|
31
|
+
let hash = urlObj.hash || "";
|
|
32
|
+
let query = urlObj.query || "";
|
|
33
|
+
let host = false;
|
|
34
|
+
auth = auth ? encodeURIComponent(auth).replace(/%3A/i, ":") + "@" : "";
|
|
35
|
+
if (urlObj.host) host = auth + urlObj.host;
|
|
36
|
+
else if (hostname) {
|
|
37
|
+
host = auth + (~hostname.indexOf(":") ? `[${hostname}]` : hostname);
|
|
38
|
+
if (urlObj.port) host += ":" + urlObj.port;
|
|
39
|
+
}
|
|
40
|
+
if (query && typeof query === "object") query = String(_querystring.urlQueryToSearchParams(query));
|
|
41
|
+
let search = urlObj.search || query && `?${query}` || "";
|
|
42
|
+
if (protocol && !protocol.endsWith(":")) protocol += ":";
|
|
43
|
+
if (urlObj.slashes || (!protocol || slashedProtocols.test(protocol)) && host !== false) {
|
|
44
|
+
host = "//" + (host || "");
|
|
45
|
+
if (pathname && pathname[0] !== "/") pathname = "/" + pathname;
|
|
46
|
+
} else if (!host) host = "";
|
|
47
|
+
if (hash && hash[0] !== "#") hash = "#" + hash;
|
|
48
|
+
if (search && search[0] !== "?") search = "?" + search;
|
|
49
|
+
pathname = pathname.replace(/[?#]/g, encodeURIComponent);
|
|
50
|
+
search = search.replace("#", "%23");
|
|
51
|
+
return `${protocol}${host}${pathname}${search}${hash}`;
|
|
52
|
+
}
|
|
53
|
+
const urlObjectKeys = [
|
|
54
|
+
"auth",
|
|
55
|
+
"hash",
|
|
56
|
+
"host",
|
|
57
|
+
"hostname",
|
|
58
|
+
"href",
|
|
59
|
+
"path",
|
|
60
|
+
"pathname",
|
|
61
|
+
"port",
|
|
62
|
+
"protocol",
|
|
63
|
+
"query",
|
|
64
|
+
"search",
|
|
65
|
+
"slashes"
|
|
66
|
+
];
|
|
67
|
+
function formatWithValidation(url) {
|
|
68
|
+
if (url !== null && typeof url === "object") Object.keys(url).forEach((key) => {
|
|
69
|
+
if (!urlObjectKeys.includes(key)) console.warn(`Unknown key passed via urlObject into url.format: ${key}`);
|
|
70
|
+
});
|
|
71
|
+
return formatUrl(url);
|
|
72
|
+
}
|
|
73
|
+
}));
|
|
74
|
+
|
|
75
|
+
//#endregion
|
|
76
|
+
export default require_format_url();
|
|
77
|
+
|
|
78
|
+
export { require_format_url };
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require_invariant_error } from "../../invariant-error.js";
|
|
3
|
+
import { require_parse_loader_tree } from "./parse-loader-tree.js";
|
|
4
|
+
import { require_get_segment_param } from "./get-segment-param.js";
|
|
5
|
+
|
|
6
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js
|
|
7
|
+
var require_get_dynamic_param = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
function _export(target, all) {
|
|
10
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: all[name]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
_export(exports, {
|
|
16
|
+
PARAMETER_PATTERN: function() {
|
|
17
|
+
return PARAMETER_PATTERN;
|
|
18
|
+
},
|
|
19
|
+
getDynamicParam: function() {
|
|
20
|
+
return getDynamicParam;
|
|
21
|
+
},
|
|
22
|
+
interpolateParallelRouteParams: function() {
|
|
23
|
+
return interpolateParallelRouteParams;
|
|
24
|
+
},
|
|
25
|
+
parseMatchedParameter: function() {
|
|
26
|
+
return parseMatchedParameter;
|
|
27
|
+
},
|
|
28
|
+
parseParameter: function() {
|
|
29
|
+
return parseParameter;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
const _invarianterror = require_invariant_error();
|
|
33
|
+
const _parseloadertree = require_parse_loader_tree();
|
|
34
|
+
const _getsegmentparam = require_get_segment_param();
|
|
35
|
+
/**
|
|
36
|
+
* Gets the value of a param from the params object. This correctly handles the
|
|
37
|
+
* case where the param is a fallback route param and encodes the resulting
|
|
38
|
+
* value.
|
|
39
|
+
*
|
|
40
|
+
* @param interpolatedParams - The params object.
|
|
41
|
+
* @param segmentKey - The key of the segment.
|
|
42
|
+
* @param fallbackRouteParams - The fallback route params.
|
|
43
|
+
* @returns The value of the param.
|
|
44
|
+
*/ function getParamValue(interpolatedParams, segmentKey, fallbackRouteParams) {
|
|
45
|
+
let value = interpolatedParams[segmentKey];
|
|
46
|
+
if (fallbackRouteParams?.has(segmentKey)) {
|
|
47
|
+
const [searchValue] = fallbackRouteParams.get(segmentKey);
|
|
48
|
+
value = searchValue;
|
|
49
|
+
} else if (Array.isArray(value)) value = value.map((i) => encodeURIComponent(i));
|
|
50
|
+
else if (typeof value === "string") value = encodeURIComponent(value);
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
function interpolateParallelRouteParams(loaderTree, params, pagePath, fallbackRouteParams) {
|
|
54
|
+
const interpolated = structuredClone(params);
|
|
55
|
+
const stack = [{
|
|
56
|
+
tree: loaderTree,
|
|
57
|
+
depth: 0
|
|
58
|
+
}];
|
|
59
|
+
const pathSegments = pagePath.split("/").slice(1);
|
|
60
|
+
while (stack.length > 0) {
|
|
61
|
+
const { tree, depth } = stack.pop();
|
|
62
|
+
const { segment, parallelRoutes } = (0, _parseloadertree.parseLoaderTree)(tree);
|
|
63
|
+
const segmentParam = (0, _getsegmentparam.getSegmentParam)(segment);
|
|
64
|
+
if (segmentParam && !interpolated.hasOwnProperty(segmentParam.param) && !fallbackRouteParams?.has(segmentParam.param)) switch (segmentParam.type) {
|
|
65
|
+
case "catchall":
|
|
66
|
+
case "optional-catchall":
|
|
67
|
+
case "catchall-intercepted-(..)(..)":
|
|
68
|
+
case "catchall-intercepted-(.)":
|
|
69
|
+
case "catchall-intercepted-(..)":
|
|
70
|
+
case "catchall-intercepted-(...)":
|
|
71
|
+
const processedSegments = pathSegments.slice(depth).flatMap((pathSegment) => {
|
|
72
|
+
const param = (0, _getsegmentparam.getSegmentParam)(pathSegment);
|
|
73
|
+
return param ? interpolated[param.param] : pathSegment;
|
|
74
|
+
}).filter((s) => s !== void 0);
|
|
75
|
+
if (processedSegments.length > 0) interpolated[segmentParam.param] = processedSegments;
|
|
76
|
+
break;
|
|
77
|
+
case "dynamic":
|
|
78
|
+
case "dynamic-intercepted-(..)(..)":
|
|
79
|
+
case "dynamic-intercepted-(.)":
|
|
80
|
+
case "dynamic-intercepted-(..)":
|
|
81
|
+
case "dynamic-intercepted-(...)":
|
|
82
|
+
if (depth < pathSegments.length) {
|
|
83
|
+
const pathSegment = pathSegments[depth];
|
|
84
|
+
const param = (0, _getsegmentparam.getSegmentParam)(pathSegment);
|
|
85
|
+
interpolated[segmentParam.param] = param ? interpolated[param.param] : pathSegment;
|
|
86
|
+
}
|
|
87
|
+
break;
|
|
88
|
+
default: segmentParam.type;
|
|
89
|
+
}
|
|
90
|
+
let nextDepth = depth;
|
|
91
|
+
if (!(segment.startsWith("(") && segment.endsWith(")")) && segment !== "") nextDepth++;
|
|
92
|
+
for (const route of Object.values(parallelRoutes)) stack.push({
|
|
93
|
+
tree: route,
|
|
94
|
+
depth: nextDepth
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
return interpolated;
|
|
98
|
+
}
|
|
99
|
+
function getDynamicParam(interpolatedParams, segmentKey, dynamicParamType, fallbackRouteParams) {
|
|
100
|
+
let value = getParamValue(interpolatedParams, segmentKey, fallbackRouteParams);
|
|
101
|
+
if (!value || value.length === 0) {
|
|
102
|
+
if (dynamicParamType === "oc") return {
|
|
103
|
+
param: segmentKey,
|
|
104
|
+
value: null,
|
|
105
|
+
type: dynamicParamType,
|
|
106
|
+
treeSegment: [
|
|
107
|
+
segmentKey,
|
|
108
|
+
"",
|
|
109
|
+
dynamicParamType
|
|
110
|
+
]
|
|
111
|
+
};
|
|
112
|
+
throw Object.defineProperty(new _invarianterror.InvariantError(`Missing value for segment key: "${segmentKey}" with dynamic param type: ${dynamicParamType}`), "__NEXT_ERROR_CODE", {
|
|
113
|
+
value: "E864",
|
|
114
|
+
enumerable: false,
|
|
115
|
+
configurable: true
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
return {
|
|
119
|
+
param: segmentKey,
|
|
120
|
+
value,
|
|
121
|
+
treeSegment: [
|
|
122
|
+
segmentKey,
|
|
123
|
+
Array.isArray(value) ? value.join("/") : value,
|
|
124
|
+
dynamicParamType
|
|
125
|
+
],
|
|
126
|
+
type: dynamicParamType
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
const PARAMETER_PATTERN = /^([^[]*)\[((?:\[[^\]]*\])|[^\]]+)\](.*)$/;
|
|
130
|
+
function parseParameter(param) {
|
|
131
|
+
const match = param.match(PARAMETER_PATTERN);
|
|
132
|
+
if (!match) return parseMatchedParameter(param);
|
|
133
|
+
return parseMatchedParameter(match[2]);
|
|
134
|
+
}
|
|
135
|
+
function parseMatchedParameter(param) {
|
|
136
|
+
const optional = param.startsWith("[") && param.endsWith("]");
|
|
137
|
+
if (optional) param = param.slice(1, -1);
|
|
138
|
+
const repeat = param.startsWith("...");
|
|
139
|
+
if (repeat) param = param.slice(3);
|
|
140
|
+
return {
|
|
141
|
+
key: param,
|
|
142
|
+
repeat,
|
|
143
|
+
optional
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
}));
|
|
147
|
+
|
|
148
|
+
//#endregion
|
|
149
|
+
export default require_get_dynamic_param();
|
|
150
|
+
|
|
151
|
+
export { require_get_dynamic_param };
|
|
@@ -0,0 +1,77 @@
|
|
|
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/get-segment-param.js
|
|
5
|
+
var require_get_segment_param = /* @__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
|
+
getParamProperties: function() {
|
|
15
|
+
return getParamProperties;
|
|
16
|
+
},
|
|
17
|
+
getSegmentParam: function() {
|
|
18
|
+
return getSegmentParam;
|
|
19
|
+
},
|
|
20
|
+
isCatchAll: function() {
|
|
21
|
+
return isCatchAll;
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
const _interceptionroutes = require_interception_routes();
|
|
25
|
+
function getSegmentParam(segment) {
|
|
26
|
+
const interceptionMarker = _interceptionroutes.INTERCEPTION_ROUTE_MARKERS.find((marker) => segment.startsWith(marker));
|
|
27
|
+
if (interceptionMarker) segment = segment.slice(interceptionMarker.length);
|
|
28
|
+
if (segment.startsWith("[[...") && segment.endsWith("]]")) return {
|
|
29
|
+
type: "optional-catchall",
|
|
30
|
+
param: segment.slice(5, -2)
|
|
31
|
+
};
|
|
32
|
+
if (segment.startsWith("[...") && segment.endsWith("]")) return {
|
|
33
|
+
type: interceptionMarker ? `catchall-intercepted-${interceptionMarker}` : "catchall",
|
|
34
|
+
param: segment.slice(4, -1)
|
|
35
|
+
};
|
|
36
|
+
if (segment.startsWith("[") && segment.endsWith("]")) return {
|
|
37
|
+
type: interceptionMarker ? `dynamic-intercepted-${interceptionMarker}` : "dynamic",
|
|
38
|
+
param: segment.slice(1, -1)
|
|
39
|
+
};
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
function isCatchAll(type) {
|
|
43
|
+
return type === "catchall" || type === "catchall-intercepted-(..)(..)" || type === "catchall-intercepted-(.)" || type === "catchall-intercepted-(..)" || type === "catchall-intercepted-(...)" || type === "optional-catchall";
|
|
44
|
+
}
|
|
45
|
+
function getParamProperties(paramType) {
|
|
46
|
+
let repeat = false;
|
|
47
|
+
let optional = false;
|
|
48
|
+
switch (paramType) {
|
|
49
|
+
case "catchall":
|
|
50
|
+
case "catchall-intercepted-(..)(..)":
|
|
51
|
+
case "catchall-intercepted-(.)":
|
|
52
|
+
case "catchall-intercepted-(..)":
|
|
53
|
+
case "catchall-intercepted-(...)":
|
|
54
|
+
repeat = true;
|
|
55
|
+
break;
|
|
56
|
+
case "optional-catchall":
|
|
57
|
+
repeat = true;
|
|
58
|
+
optional = true;
|
|
59
|
+
break;
|
|
60
|
+
case "dynamic":
|
|
61
|
+
case "dynamic-intercepted-(..)(..)":
|
|
62
|
+
case "dynamic-intercepted-(.)":
|
|
63
|
+
case "dynamic-intercepted-(..)":
|
|
64
|
+
case "dynamic-intercepted-(...)": break;
|
|
65
|
+
default:
|
|
66
|
+
}
|
|
67
|
+
return {
|
|
68
|
+
repeat,
|
|
69
|
+
optional
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
}));
|
|
73
|
+
|
|
74
|
+
//#endregion
|
|
75
|
+
export default require_get_segment_param();
|
|
76
|
+
|
|
77
|
+
export { require_get_segment_param };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require_sorted_routes } from "./sorted-routes.js";
|
|
3
|
+
import { require_is_dynamic } from "./is-dynamic.js";
|
|
4
|
+
|
|
5
|
+
//#region ../../../node_modules/next/dist/shared/lib/router/utils/index.js
|
|
6
|
+
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
function _export(target, all) {
|
|
9
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: all[name]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
_export(exports, {
|
|
15
|
+
getSortedRouteObjects: function() {
|
|
16
|
+
return _sortedroutes.getSortedRouteObjects;
|
|
17
|
+
},
|
|
18
|
+
getSortedRoutes: function() {
|
|
19
|
+
return _sortedroutes.getSortedRoutes;
|
|
20
|
+
},
|
|
21
|
+
isDynamicRoute: function() {
|
|
22
|
+
return _isdynamic.isDynamicRoute;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
const _sortedroutes = require_sorted_routes();
|
|
26
|
+
const _isdynamic = require_is_dynamic();
|
|
27
|
+
}));
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
export default require_utils();
|
|
31
|
+
|
|
32
|
+
export { require_utils };
|