math-main-components 0.0.196 → 0.0.198
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/dist/components/Accordeon/Accordeon.d.ts +4 -1
- package/dist/components/Accordeon/Accordeon.stories.d.ts +13 -0
- package/dist/components/Button/Button.d.ts +3 -3
- package/dist/components/Button/Button.stories.d.ts +13 -0
- package/dist/components/{AuthButton/AuthButton.d.ts → Button2/Button2.d.ts} +2 -2
- package/dist/components/Button2/Button2.stories.d.ts +13 -0
- package/dist/components/Button2/index.d.ts +1 -0
- package/dist/components/CardButton/CardButton.d.ts +3 -3
- package/dist/components/CardButton/CardButton.stories.d.ts +13 -0
- package/dist/components/Checkbox/Checkbox.stories.d.ts +13 -0
- package/dist/components/ChooseRole/ChooseRole.d.ts +3 -4
- package/dist/components/ChooseRole/ChooseRole.stories.d.ts +13 -0
- package/dist/components/ChooseRole/index.d.ts +1 -1
- package/dist/components/CopyCode/CopyCode.d.ts +3 -4
- package/dist/components/CopyCode/CopyCode.stories.d.ts +13 -0
- package/dist/components/EmptyCard/EmptyCard.stories.d.ts +13 -0
- package/dist/components/FormButton/FormButton.d.ts +4 -4
- package/dist/components/FormButton/FormButton.stories.d.ts +13 -0
- package/dist/components/FormText/FormText.stories.d.ts +13 -0
- package/dist/components/ForwardButton/ForwardButton.stories.d.ts +13 -0
- package/dist/index.cjs.js +39 -48
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +39 -47
- package/dist/styles/font.scss +5 -0
- package/dist/styles/material-symbols.scss +24 -0
- package/dist/styles/theme-colors.scss +164 -0
- package/dist/styles/theme-styles.scss +8 -0
- package/package.json +19 -3
- package/styles/font.scss +11 -0
- package/styles/material-symbols.scss +24 -0
- package/styles/theme-colors.scss +164 -0
- package/styles/theme-styles.scss +8 -0
- package/dist/_virtual/_interop_require_default.cjs.js +0 -3
- package/dist/_virtual/_interop_require_wildcard.cjs.js +0 -3
- package/dist/_virtual/add-base-path.js +0 -3
- package/dist/_virtual/add-locale.js +0 -3
- package/dist/_virtual/add-locale2.js +0 -3
- package/dist/_virtual/add-path-prefix.js +0 -3
- package/dist/_virtual/add-path-suffix.js +0 -3
- package/dist/_virtual/app-paths.js +0 -3
- package/dist/_virtual/app-router-context.shared-runtime.js +0 -3
- package/dist/_virtual/app-router-headers.js +0 -3
- package/dist/_virtual/bloom-filter.js +0 -3
- package/dist/_virtual/compare-states.js +0 -3
- package/dist/_virtual/denormalize-page-path.js +0 -3
- package/dist/_virtual/detect-domain-locale.js +0 -3
- package/dist/_virtual/detect-domain-locale2.js +0 -3
- package/dist/_virtual/ensure-leading-slash.js +0 -3
- package/dist/_virtual/escape-regexp.js +0 -3
- package/dist/_virtual/format-next-pathname-info.js +0 -3
- package/dist/_virtual/format-url.js +0 -3
- package/dist/_virtual/get-asset-path-from-route.js +0 -3
- package/dist/_virtual/get-cookie-parser.js +0 -3
- package/dist/_virtual/get-domain-locale.js +0 -3
- package/dist/_virtual/get-next-pathname-info.js +0 -3
- package/dist/_virtual/handle-smooth-scroll.js +0 -3
- package/dist/_virtual/has-base-path.js +0 -3
- package/dist/_virtual/head-manager-context.shared-runtime.js +0 -3
- package/dist/_virtual/head-manager.js +0 -3
- package/dist/_virtual/index.js +0 -3
- package/dist/_virtual/index2.js +0 -3
- package/dist/_virtual/index3.js +0 -3
- package/dist/_virtual/index4.js +0 -3
- package/dist/_virtual/index5.js +0 -3
- package/dist/_virtual/interception-routes.js +0 -3
- package/dist/_virtual/interpolate-as.js +0 -3
- package/dist/_virtual/is-api-route.js +0 -3
- package/dist/_virtual/is-bot.js +0 -3
- package/dist/_virtual/is-dynamic.js +0 -3
- package/dist/_virtual/is-error.js +0 -3
- package/dist/_virtual/is-local-url.js +0 -3
- package/dist/_virtual/is-plain-object.js +0 -3
- package/dist/_virtual/link.js +0 -3
- package/dist/_virtual/link2.js +0 -3
- package/dist/_virtual/mitt.js +0 -3
- package/dist/_virtual/normalize-locale-path.js +0 -3
- package/dist/_virtual/normalize-locale-path2.js +0 -3
- package/dist/_virtual/normalize-path-sep.js +0 -3
- package/dist/_virtual/normalize-trailing-slash.js +0 -3
- package/dist/_virtual/omit.js +0 -3
- package/dist/_virtual/parse-path.js +0 -3
- package/dist/_virtual/parse-relative-url.js +0 -3
- package/dist/_virtual/parse-url.js +0 -3
- package/dist/_virtual/path-has-prefix.js +0 -3
- package/dist/_virtual/path-match.js +0 -3
- package/dist/_virtual/prepare-destination.js +0 -3
- package/dist/_virtual/querystring.js +0 -3
- package/dist/_virtual/react-is.development.js +0 -3
- package/dist/_virtual/react-is.production.min.js +0 -3
- package/dist/_virtual/remove-base-path.js +0 -3
- package/dist/_virtual/remove-locale.js +0 -3
- package/dist/_virtual/remove-path-prefix.js +0 -3
- package/dist/_virtual/remove-trailing-slash.js +0 -3
- package/dist/_virtual/request-idle-callback.js +0 -3
- package/dist/_virtual/resolve-href.js +0 -3
- package/dist/_virtual/resolve-rewrites.js +0 -3
- package/dist/_virtual/route-loader.js +0 -3
- package/dist/_virtual/route-matcher.js +0 -3
- package/dist/_virtual/route-regex.js +0 -3
- package/dist/_virtual/router-context.shared-runtime.js +0 -3
- package/dist/_virtual/router-reducer-types.js +0 -3
- package/dist/_virtual/router.js +0 -3
- package/dist/_virtual/router2.js +0 -3
- package/dist/_virtual/router3.js +0 -3
- package/dist/_virtual/script.js +0 -3
- package/dist/_virtual/segment.js +0 -3
- package/dist/_virtual/sorted-routes.js +0 -3
- package/dist/_virtual/trusted-types.js +0 -3
- package/dist/_virtual/use-intersection.js +0 -3
- package/dist/_virtual/utils.js +0 -3
- package/dist/_virtual/with-router.js +0 -3
- package/dist/components/Accordeon/Accordeon.types.d.ts +0 -4
- package/dist/components/AuthButton/index.d.ts +0 -1
- package/dist/components/Dialog/Dialog.types.d.ts +0 -7
- package/dist/components/PrimaryButton/PrimaryButton.d.ts +0 -8
- package/dist/components/PrimaryButton/index.d.ts +0 -1
- package/dist/components/SvgIcon/SvgIcon.types.d.ts +0 -8
- package/dist/components/index.d.ts +0 -31
- package/dist/components/useDimensions.d.ts +0 -4
- package/dist/components/useOrientation.d.ts +0 -3
- package/dist/components/useScroll.d.ts +0 -4
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.cjs.js +0 -7
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs.js +0 -48
- package/dist/node_modules/clsx/dist/clsx.m.js +0 -3
- package/dist/node_modules/external-svg-loader/dist/svg-loader.min.js +0 -1
- package/dist/node_modules/next/dist/client/add-base-path.js +0 -38
- package/dist/node_modules/next/dist/client/add-locale.js +0 -42
- package/dist/node_modules/next/dist/client/components/app-router-headers.js +0 -78
- package/dist/node_modules/next/dist/client/components/router-reducer/router-reducer-types.js +0 -69
- package/dist/node_modules/next/dist/client/detect-domain-locale.js +0 -39
- package/dist/node_modules/next/dist/client/get-domain-locale.js +0 -51
- package/dist/node_modules/next/dist/client/has-base-path.js +0 -36
- package/dist/node_modules/next/dist/client/head-manager.js +0 -212
- package/dist/node_modules/next/dist/client/link.js +0 -431
- package/dist/node_modules/next/dist/client/normalize-locale-path.js +0 -40
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +0 -50
- package/dist/node_modules/next/dist/client/remove-base-path.js +0 -45
- package/dist/node_modules/next/dist/client/remove-locale.js +0 -41
- package/dist/node_modules/next/dist/client/request-idle-callback.js +0 -52
- package/dist/node_modules/next/dist/client/resolve-href.js +0 -99
- package/dist/node_modules/next/dist/client/route-loader.js +0 -327
- package/dist/node_modules/next/dist/client/router.js +0 -202
- package/dist/node_modules/next/dist/client/script.js +0 -353
- package/dist/node_modules/next/dist/client/trusted-types.js +0 -54
- package/dist/node_modules/next/dist/client/use-intersection.js +0 -129
- package/dist/node_modules/next/dist/client/with-router.js +0 -52
- package/dist/node_modules/next/dist/compiled/cookie/index.js +0 -18
- package/dist/node_modules/next/dist/compiled/gzip-size/index.js +0 -15
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +0 -416
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.development.js +0 -230
- package/dist/node_modules/next/dist/compiled/react-is/cjs/react-is.production.min.js +0 -26
- package/dist/node_modules/next/dist/compiled/react-is/index.js +0 -21
- package/dist/node_modules/next/dist/lib/is-api-route.js +0 -27
- package/dist/node_modules/next/dist/lib/is-error.js +0 -53
- package/dist/node_modules/next/dist/server/api-utils/get-cookie-parser.js +0 -35
- package/dist/node_modules/next/dist/server/future/helpers/interception-routes.js +0 -97
- package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +0 -63
- package/dist/node_modules/next/dist/shared/lib/bloom-filter.js +0 -96
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -38
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -42
- package/dist/node_modules/next/dist/shared/lib/is-plain-object.js +0 -50
- package/dist/node_modules/next/dist/shared/lib/mitt.js +0 -57
- package/dist/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/page-path/normalize-path-sep.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/router.js +0 -1771
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -42
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-suffix.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +0 -61
- package/dist/node_modules/next/dist/shared/lib/router/utils/compare-states.js +0 -46
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-next-pathname-info.js +0 -43
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +0 -99
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-asset-path-from-route.js +0 -29
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-next-pathname-info.js +0 -69
- package/dist/node_modules/next/dist/shared/lib/router/utils/handle-smooth-scroll.js +0 -49
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +0 -36
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +0 -67
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-bot.js +0 -27
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -28
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +0 -40
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -47
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-relative-url.js +0 -43
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-url.js +0 -44
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-match.js +0 -62
- package/dist/node_modules/next/dist/shared/lib/router/utils/prepare-destination.js +0 -245
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +0 -80
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-path-prefix.js +0 -52
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -35
- package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-rewrites.js +0 -136
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +0 -53
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +0 -200
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -182
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/segment.js +0 -28
- package/dist/node_modules/next/dist/shared/lib/utils.js +0 -196
- package/dist/node_modules/next/link.js +0 -7
- package/dist/node_modules/next/router.js +0 -6
- package/dist/node_modules/react-toastify/dist/react-toastify.esm.mjs.js +0 -7
- package/dist/node_modules/style-inject/dist/style-inject.es.js +0 -28
- package/dist/services/prisma.service.d.ts +0 -2
- package/dist/src/components/Accordeon/Accordeon.js +0 -14
- package/dist/src/components/Accordeon/styles.module.scss.js +0 -7
- package/dist/src/components/AuthButton/styles.module.scss.js +0 -4
- package/dist/src/components/CardButton/styles.module.scss.js +0 -4
- package/dist/src/components/Checkbox/styles.module.scss.js +0 -4
- package/dist/src/components/ChooseRole/styles.module.scss.js +0 -4
- package/dist/src/components/CopyCode/styles.module.scss.js +0 -4
- package/dist/src/components/Dialog/Dialog.js +0 -14
- package/dist/src/components/Dialog/styles.module.scss.js +0 -7
- package/dist/src/components/FormButton/styles.module.scss.js +0 -4
- package/dist/src/components/FormText/styles.module.scss.js +0 -4
- package/dist/src/components/ForwardButton/styles.module.scss.js +0 -4
- package/dist/src/components/Gap/Gap.js +0 -7
- package/dist/src/components/InputMail/styles.module.scss.js +0 -4
- package/dist/src/components/InputNames/styles.module.scss.js +0 -4
- package/dist/src/components/InputNumber/styles.module.scss.js +0 -4
- package/dist/src/components/InputPassword/styles.module.scss.js +0 -4
- package/dist/src/components/InputPin/styles.module.scss.js +0 -4
- package/dist/src/components/InputText/styles.module.scss.js +0 -4
- package/dist/src/components/OptionField/styles.module.scss.js +0 -4
- package/dist/src/components/OptionFieldHorizontal/styles.module.scss.js +0 -4
- package/dist/src/components/PrimaryButton/styles.module.scss.js +0 -4
- package/dist/src/components/ProgressBar/styles.module.scss.js +0 -4
- package/dist/src/components/RadioButtons/styles.module.scss.js +0 -4
- package/dist/src/components/RedirectButton/styles.module.scss.js +0 -4
- package/dist/src/components/SearchChips/styles.module.scss.js +0 -4
- package/dist/src/components/Searchbar/styles.module.scss.js +0 -4
- package/dist/src/components/Slider/styles.module.scss.js +0 -4
- package/dist/src/components/StepBack/styles.module.scss.js +0 -4
- package/dist/src/components/SvgIcon/SvgIcon.js +0 -9
- package/dist/src/components/Table/Table.js +0 -12
- package/dist/src/components/Table/styles.module.scss.js +0 -4
- package/dist/src/components/TextWithIcon/styles.module.scss.js +0 -4
- package/dist/src/components/UsageCard/styles.module.scss.js +0 -4
- package/dist/src/index.js +0 -36
- package/dist/types/Concept.d.ts +0 -7
- package/dist/types/Content.d.ts +0 -15
- package/dist/types/CourseAnnouncement.d.ts +0 -13
- package/dist/types/CourseAnnouncementAsset.d.ts +0 -22
- package/dist/types/CourseAnnouncementAssset.d.ts +0 -21
- package/dist/types/CourseMessage.d.ts +0 -13
- package/dist/types/CourseParticipant.d.ts +0 -9
- package/dist/types/CoursePin.d.ts +0 -8
- package/dist/types/File.d.ts +0 -13
- package/dist/types/HelpData.d.ts +0 -8
- package/dist/types/News.d.ts +0 -13
- package/dist/types/OrganizationMember.d.ts +0 -12
- package/dist/types/Page.d.ts +0 -8
- package/dist/types/ProductFeature.d.ts +0 -8
- package/dist/types/ProductLimit.d.ts +0 -8
- package/dist/types/PublicUser.d.ts +0 -7
- package/dist/types/index.d.ts +0 -2
- package/dist/types/marketing/BenefitForIndividuals.d.ts +0 -9
- package/dist/types/marketing/BenefitForSchools.d.ts +0 -9
- package/dist/types/marketing/Page.d.ts +0 -8
- package/dist/types/marketing/WebsiteData.d.ts +0 -23
@@ -1,42 +0,0 @@
|
|
1
|
-
import { __exports as addLocale } from '../../../../../../../_virtual/add-locale2.js';
|
2
|
-
import { __require as requireAddPathPrefix } from './add-path-prefix.js';
|
3
|
-
import { __require as requirePathHasPrefix } from './path-has-prefix.js';
|
4
|
-
|
5
|
-
var hasRequiredAddLocale;
|
6
|
-
|
7
|
-
function requireAddLocale () {
|
8
|
-
if (hasRequiredAddLocale) return addLocale;
|
9
|
-
hasRequiredAddLocale = 1;
|
10
|
-
(function (exports) {
|
11
|
-
Object.defineProperty(exports, "__esModule", {
|
12
|
-
value: true
|
13
|
-
});
|
14
|
-
Object.defineProperty(exports, "addLocale", {
|
15
|
-
enumerable: true,
|
16
|
-
get: function() {
|
17
|
-
return addLocale;
|
18
|
-
}
|
19
|
-
});
|
20
|
-
const _addpathprefix = requireAddPathPrefix();
|
21
|
-
const _pathhasprefix = requirePathHasPrefix();
|
22
|
-
function addLocale(path, locale, defaultLocale, ignorePrefix) {
|
23
|
-
// If no locale was given or the locale is the default locale, we don't need
|
24
|
-
// to prefix the path.
|
25
|
-
if (!locale || locale === defaultLocale) return path;
|
26
|
-
const lower = path.toLowerCase();
|
27
|
-
// If the path is an API path or the path already has the locale prefix, we
|
28
|
-
// don't need to prefix the path.
|
29
|
-
if (!ignorePrefix) {
|
30
|
-
if ((0, _pathhasprefix.pathHasPrefix)(lower, "/api")) return path;
|
31
|
-
if ((0, _pathhasprefix.pathHasPrefix)(lower, "/" + locale.toLowerCase())) return path;
|
32
|
-
}
|
33
|
-
// Add the locale prefix to the path.
|
34
|
-
return (0, _addpathprefix.addPathPrefix)(path, "/" + locale);
|
35
|
-
}
|
36
|
-
|
37
|
-
|
38
|
-
} (addLocale));
|
39
|
-
return addLocale;
|
40
|
-
}
|
41
|
-
|
42
|
-
export { requireAddLocale as __require };
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { __exports as addPathPrefix } from '../../../../../../../_virtual/add-path-prefix.js';
|
2
|
-
import { __require as requireParsePath } from './parse-path.js';
|
3
|
-
|
4
|
-
var hasRequiredAddPathPrefix;
|
5
|
-
|
6
|
-
function requireAddPathPrefix () {
|
7
|
-
if (hasRequiredAddPathPrefix) return addPathPrefix;
|
8
|
-
hasRequiredAddPathPrefix = 1;
|
9
|
-
(function (exports) {
|
10
|
-
Object.defineProperty(exports, "__esModule", {
|
11
|
-
value: true
|
12
|
-
});
|
13
|
-
Object.defineProperty(exports, "addPathPrefix", {
|
14
|
-
enumerable: true,
|
15
|
-
get: function() {
|
16
|
-
return addPathPrefix;
|
17
|
-
}
|
18
|
-
});
|
19
|
-
const _parsepath = requireParsePath();
|
20
|
-
function addPathPrefix(path, prefix) {
|
21
|
-
if (!path.startsWith("/") || !prefix) {
|
22
|
-
return path;
|
23
|
-
}
|
24
|
-
const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
|
25
|
-
return "" + prefix + pathname + query + hash;
|
26
|
-
}
|
27
|
-
|
28
|
-
|
29
|
-
} (addPathPrefix));
|
30
|
-
return addPathPrefix;
|
31
|
-
}
|
32
|
-
|
33
|
-
export { requireAddPathPrefix as __require };
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { __exports as addPathSuffix } from '../../../../../../../_virtual/add-path-suffix.js';
|
2
|
-
import { __require as requireParsePath } from './parse-path.js';
|
3
|
-
|
4
|
-
var hasRequiredAddPathSuffix;
|
5
|
-
|
6
|
-
function requireAddPathSuffix () {
|
7
|
-
if (hasRequiredAddPathSuffix) return addPathSuffix;
|
8
|
-
hasRequiredAddPathSuffix = 1;
|
9
|
-
(function (exports) {
|
10
|
-
Object.defineProperty(exports, "__esModule", {
|
11
|
-
value: true
|
12
|
-
});
|
13
|
-
Object.defineProperty(exports, "addPathSuffix", {
|
14
|
-
enumerable: true,
|
15
|
-
get: function() {
|
16
|
-
return addPathSuffix;
|
17
|
-
}
|
18
|
-
});
|
19
|
-
const _parsepath = requireParsePath();
|
20
|
-
function addPathSuffix(path, suffix) {
|
21
|
-
if (!path.startsWith("/") || !suffix) {
|
22
|
-
return path;
|
23
|
-
}
|
24
|
-
const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
|
25
|
-
return "" + pathname + suffix + query + hash;
|
26
|
-
}
|
27
|
-
|
28
|
-
|
29
|
-
} (addPathSuffix));
|
30
|
-
return addPathSuffix;
|
31
|
-
}
|
32
|
-
|
33
|
-
export { requireAddPathSuffix as __require };
|
@@ -1,61 +0,0 @@
|
|
1
|
-
import { __exports as appPaths } from '../../../../../../../_virtual/app-paths.js';
|
2
|
-
import { __require as requireEnsureLeadingSlash } from '../../page-path/ensure-leading-slash.js';
|
3
|
-
import { __require as requireSegment } from '../../segment.js';
|
4
|
-
|
5
|
-
var hasRequiredAppPaths;
|
6
|
-
|
7
|
-
function requireAppPaths () {
|
8
|
-
if (hasRequiredAppPaths) return appPaths;
|
9
|
-
hasRequiredAppPaths = 1;
|
10
|
-
(function (exports) {
|
11
|
-
Object.defineProperty(exports, "__esModule", {
|
12
|
-
value: true
|
13
|
-
});
|
14
|
-
function _export(target, all) {
|
15
|
-
for(var name in all)Object.defineProperty(target, name, {
|
16
|
-
enumerable: true,
|
17
|
-
get: all[name]
|
18
|
-
});
|
19
|
-
}
|
20
|
-
_export(exports, {
|
21
|
-
normalizeAppPath: function() {
|
22
|
-
return normalizeAppPath;
|
23
|
-
},
|
24
|
-
normalizeRscPath: function() {
|
25
|
-
return normalizeRscPath;
|
26
|
-
}
|
27
|
-
});
|
28
|
-
const _ensureleadingslash = requireEnsureLeadingSlash();
|
29
|
-
const _segment = requireSegment();
|
30
|
-
function normalizeAppPath(route) {
|
31
|
-
return (0, _ensureleadingslash.ensureLeadingSlash)(route.split("/").reduce((pathname, segment, index, segments)=>{
|
32
|
-
// Empty segments are ignored.
|
33
|
-
if (!segment) {
|
34
|
-
return pathname;
|
35
|
-
}
|
36
|
-
// Groups are ignored.
|
37
|
-
if ((0, _segment.isGroupSegment)(segment)) {
|
38
|
-
return pathname;
|
39
|
-
}
|
40
|
-
// Parallel segments are ignored.
|
41
|
-
if (segment[0] === "@") {
|
42
|
-
return pathname;
|
43
|
-
}
|
44
|
-
// The last segment (if it's a leaf) should be ignored.
|
45
|
-
if ((segment === "page" || segment === "route") && index === segments.length - 1) {
|
46
|
-
return pathname;
|
47
|
-
}
|
48
|
-
return pathname + "/" + segment;
|
49
|
-
}, ""));
|
50
|
-
}
|
51
|
-
function normalizeRscPath(pathname, enabled) {
|
52
|
-
return enabled ? pathname.replace(/\.rsc($|\?)/, // $1 ensures `?` is preserved
|
53
|
-
"$1") : pathname;
|
54
|
-
}
|
55
|
-
|
56
|
-
|
57
|
-
} (appPaths));
|
58
|
-
return appPaths;
|
59
|
-
}
|
60
|
-
|
61
|
-
export { requireAppPaths as __require };
|
@@ -1,46 +0,0 @@
|
|
1
|
-
import { __exports as compareStates } from '../../../../../../../_virtual/compare-states.js';
|
2
|
-
|
3
|
-
var hasRequiredCompareStates;
|
4
|
-
|
5
|
-
function requireCompareStates () {
|
6
|
-
if (hasRequiredCompareStates) return compareStates;
|
7
|
-
hasRequiredCompareStates = 1;
|
8
|
-
(function (exports) {
|
9
|
-
Object.defineProperty(exports, "__esModule", {
|
10
|
-
value: true
|
11
|
-
});
|
12
|
-
Object.defineProperty(exports, "compareRouterStates", {
|
13
|
-
enumerable: true,
|
14
|
-
get: function() {
|
15
|
-
return compareRouterStates;
|
16
|
-
}
|
17
|
-
});
|
18
|
-
function compareRouterStates(a, b) {
|
19
|
-
const stateKeys = Object.keys(a);
|
20
|
-
if (stateKeys.length !== Object.keys(b).length) return false;
|
21
|
-
for(let i = stateKeys.length; i--;){
|
22
|
-
const key = stateKeys[i];
|
23
|
-
if (key === "query") {
|
24
|
-
const queryKeys = Object.keys(a.query);
|
25
|
-
if (queryKeys.length !== Object.keys(b.query).length) {
|
26
|
-
return false;
|
27
|
-
}
|
28
|
-
for(let j = queryKeys.length; j--;){
|
29
|
-
const queryKey = queryKeys[j];
|
30
|
-
if (!b.query.hasOwnProperty(queryKey) || a.query[queryKey] !== b.query[queryKey]) {
|
31
|
-
return false;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
} else if (!b.hasOwnProperty(key) || a[key] !== b[key]) {
|
35
|
-
return false;
|
36
|
-
}
|
37
|
-
}
|
38
|
-
return true;
|
39
|
-
}
|
40
|
-
|
41
|
-
|
42
|
-
} (compareStates));
|
43
|
-
return compareStates;
|
44
|
-
}
|
45
|
-
|
46
|
-
export { requireCompareStates as __require };
|
@@ -1,43 +0,0 @@
|
|
1
|
-
import { __exports as formatNextPathnameInfo } from '../../../../../../../_virtual/format-next-pathname-info.js';
|
2
|
-
import { __require as requireRemoveTrailingSlash } from './remove-trailing-slash.js';
|
3
|
-
import { __require as requireAddPathPrefix } from './add-path-prefix.js';
|
4
|
-
import { __require as requireAddPathSuffix } from './add-path-suffix.js';
|
5
|
-
import { __require as requireAddLocale } from './add-locale.js';
|
6
|
-
|
7
|
-
var hasRequiredFormatNextPathnameInfo;
|
8
|
-
|
9
|
-
function requireFormatNextPathnameInfo () {
|
10
|
-
if (hasRequiredFormatNextPathnameInfo) return formatNextPathnameInfo;
|
11
|
-
hasRequiredFormatNextPathnameInfo = 1;
|
12
|
-
(function (exports) {
|
13
|
-
Object.defineProperty(exports, "__esModule", {
|
14
|
-
value: true
|
15
|
-
});
|
16
|
-
Object.defineProperty(exports, "formatNextPathnameInfo", {
|
17
|
-
enumerable: true,
|
18
|
-
get: function() {
|
19
|
-
return formatNextPathnameInfo;
|
20
|
-
}
|
21
|
-
});
|
22
|
-
const _removetrailingslash = requireRemoveTrailingSlash();
|
23
|
-
const _addpathprefix = requireAddPathPrefix();
|
24
|
-
const _addpathsuffix = requireAddPathSuffix();
|
25
|
-
const _addlocale = requireAddLocale();
|
26
|
-
function formatNextPathnameInfo(info) {
|
27
|
-
let pathname = (0, _addlocale.addLocale)(info.pathname, info.locale, info.buildId ? undefined : info.defaultLocale, info.ignorePrefix);
|
28
|
-
if (info.buildId || !info.trailingSlash) {
|
29
|
-
pathname = (0, _removetrailingslash.removeTrailingSlash)(pathname);
|
30
|
-
}
|
31
|
-
if (info.buildId) {
|
32
|
-
pathname = (0, _addpathsuffix.addPathSuffix)((0, _addpathprefix.addPathPrefix)(pathname, "/_next/data/" + info.buildId), info.pathname === "/" ? "index.json" : ".json");
|
33
|
-
}
|
34
|
-
pathname = (0, _addpathprefix.addPathPrefix)(pathname, info.basePath);
|
35
|
-
return !info.buildId && info.trailingSlash ? !pathname.endsWith("/") ? (0, _addpathsuffix.addPathSuffix)(pathname, "/") : pathname : (0, _removetrailingslash.removeTrailingSlash)(pathname);
|
36
|
-
}
|
37
|
-
|
38
|
-
|
39
|
-
} (formatNextPathnameInfo));
|
40
|
-
return formatNextPathnameInfo;
|
41
|
-
}
|
42
|
-
|
43
|
-
export { requireFormatNextPathnameInfo as __require };
|
@@ -1,99 +0,0 @@
|
|
1
|
-
import { __exports as formatUrl } from '../../../../../../../_virtual/format-url.js';
|
2
|
-
import { __require as require_interop_require_wildcard } from '../../../../../../@swc/helpers/cjs/_interop_require_wildcard.cjs.js';
|
3
|
-
import { __require as requireQuerystring } from './querystring.js';
|
4
|
-
|
5
|
-
var hasRequiredFormatUrl;
|
6
|
-
|
7
|
-
function requireFormatUrl () {
|
8
|
-
if (hasRequiredFormatUrl) return formatUrl;
|
9
|
-
hasRequiredFormatUrl = 1;
|
10
|
-
(function (exports) {
|
11
|
-
Object.defineProperty(exports, "__esModule", {
|
12
|
-
value: true
|
13
|
-
});
|
14
|
-
function _export(target, all) {
|
15
|
-
for(var name in all)Object.defineProperty(target, name, {
|
16
|
-
enumerable: true,
|
17
|
-
get: all[name]
|
18
|
-
});
|
19
|
-
}
|
20
|
-
_export(exports, {
|
21
|
-
formatUrl: function() {
|
22
|
-
return formatUrl;
|
23
|
-
},
|
24
|
-
urlObjectKeys: function() {
|
25
|
-
return urlObjectKeys;
|
26
|
-
},
|
27
|
-
formatWithValidation: function() {
|
28
|
-
return formatWithValidation;
|
29
|
-
}
|
30
|
-
});
|
31
|
-
const _interop_require_wildcard = require_interop_require_wildcard();
|
32
|
-
const _querystring = /*#__PURE__*/ _interop_require_wildcard._(requireQuerystring());
|
33
|
-
const slashedProtocols = /https?|ftp|gopher|file/;
|
34
|
-
function formatUrl(urlObj) {
|
35
|
-
let { auth, hostname } = urlObj;
|
36
|
-
let protocol = urlObj.protocol || "";
|
37
|
-
let pathname = urlObj.pathname || "";
|
38
|
-
let hash = urlObj.hash || "";
|
39
|
-
let query = urlObj.query || "";
|
40
|
-
let host = false;
|
41
|
-
auth = auth ? encodeURIComponent(auth).replace(/%3A/i, ":") + "@" : "";
|
42
|
-
if (urlObj.host) {
|
43
|
-
host = auth + urlObj.host;
|
44
|
-
} else if (hostname) {
|
45
|
-
host = auth + (~hostname.indexOf(":") ? "[" + hostname + "]" : hostname);
|
46
|
-
if (urlObj.port) {
|
47
|
-
host += ":" + urlObj.port;
|
48
|
-
}
|
49
|
-
}
|
50
|
-
if (query && typeof query === "object") {
|
51
|
-
query = String(_querystring.urlQueryToSearchParams(query));
|
52
|
-
}
|
53
|
-
let search = urlObj.search || query && "?" + query || "";
|
54
|
-
if (protocol && !protocol.endsWith(":")) protocol += ":";
|
55
|
-
if (urlObj.slashes || (!protocol || slashedProtocols.test(protocol)) && host !== false) {
|
56
|
-
host = "//" + (host || "");
|
57
|
-
if (pathname && pathname[0] !== "/") pathname = "/" + pathname;
|
58
|
-
} else if (!host) {
|
59
|
-
host = "";
|
60
|
-
}
|
61
|
-
if (hash && hash[0] !== "#") hash = "#" + hash;
|
62
|
-
if (search && search[0] !== "?") search = "?" + search;
|
63
|
-
pathname = pathname.replace(/[?#]/g, encodeURIComponent);
|
64
|
-
search = search.replace("#", "%23");
|
65
|
-
return "" + protocol + host + pathname + search + hash;
|
66
|
-
}
|
67
|
-
const urlObjectKeys = [
|
68
|
-
"auth",
|
69
|
-
"hash",
|
70
|
-
"host",
|
71
|
-
"hostname",
|
72
|
-
"href",
|
73
|
-
"path",
|
74
|
-
"pathname",
|
75
|
-
"port",
|
76
|
-
"protocol",
|
77
|
-
"query",
|
78
|
-
"search",
|
79
|
-
"slashes"
|
80
|
-
];
|
81
|
-
function formatWithValidation(url) {
|
82
|
-
if (process.env.NODE_ENV === "development") {
|
83
|
-
if (url !== null && typeof url === "object") {
|
84
|
-
Object.keys(url).forEach((key)=>{
|
85
|
-
if (!urlObjectKeys.includes(key)) {
|
86
|
-
console.warn("Unknown key passed via urlObject into url.format: " + key);
|
87
|
-
}
|
88
|
-
});
|
89
|
-
}
|
90
|
-
}
|
91
|
-
return formatUrl(url);
|
92
|
-
}
|
93
|
-
|
94
|
-
|
95
|
-
} (formatUrl));
|
96
|
-
return formatUrl;
|
97
|
-
}
|
98
|
-
|
99
|
-
export { requireFormatUrl as __require };
|
@@ -1,29 +0,0 @@
|
|
1
|
-
import { __exports as getAssetPathFromRoute } from '../../../../../../../_virtual/get-asset-path-from-route.js';
|
2
|
-
|
3
|
-
var hasRequiredGetAssetPathFromRoute;
|
4
|
-
|
5
|
-
function requireGetAssetPathFromRoute () {
|
6
|
-
if (hasRequiredGetAssetPathFromRoute) return getAssetPathFromRoute;
|
7
|
-
hasRequiredGetAssetPathFromRoute = 1;
|
8
|
-
(function (exports) {
|
9
|
-
Object.defineProperty(exports, "__esModule", {
|
10
|
-
value: true
|
11
|
-
});
|
12
|
-
Object.defineProperty(exports, "default", {
|
13
|
-
enumerable: true,
|
14
|
-
get: function() {
|
15
|
-
return getAssetPathFromRoute;
|
16
|
-
}
|
17
|
-
});
|
18
|
-
function getAssetPathFromRoute(route, ext) {
|
19
|
-
if (ext === void 0) ext = "";
|
20
|
-
const path = route === "/" ? "/index" : /^\/index(\/|$)/.test(route) ? "/index" + route : "" + route;
|
21
|
-
return path + ext;
|
22
|
-
}
|
23
|
-
|
24
|
-
|
25
|
-
} (getAssetPathFromRoute));
|
26
|
-
return getAssetPathFromRoute;
|
27
|
-
}
|
28
|
-
|
29
|
-
export { requireGetAssetPathFromRoute as __require };
|
@@ -1,69 +0,0 @@
|
|
1
|
-
import { __exports as getNextPathnameInfo } from '../../../../../../../_virtual/get-next-pathname-info.js';
|
2
|
-
import { __require as requireNormalizeLocalePath } from '../../i18n/normalize-locale-path.js';
|
3
|
-
import { __require as requireRemovePathPrefix } from './remove-path-prefix.js';
|
4
|
-
import { __require as requirePathHasPrefix } from './path-has-prefix.js';
|
5
|
-
|
6
|
-
var hasRequiredGetNextPathnameInfo;
|
7
|
-
|
8
|
-
function requireGetNextPathnameInfo () {
|
9
|
-
if (hasRequiredGetNextPathnameInfo) return getNextPathnameInfo;
|
10
|
-
hasRequiredGetNextPathnameInfo = 1;
|
11
|
-
(function (exports) {
|
12
|
-
Object.defineProperty(exports, "__esModule", {
|
13
|
-
value: true
|
14
|
-
});
|
15
|
-
Object.defineProperty(exports, "getNextPathnameInfo", {
|
16
|
-
enumerable: true,
|
17
|
-
get: function() {
|
18
|
-
return getNextPathnameInfo;
|
19
|
-
}
|
20
|
-
});
|
21
|
-
const _normalizelocalepath = requireNormalizeLocalePath();
|
22
|
-
const _removepathprefix = requireRemovePathPrefix();
|
23
|
-
const _pathhasprefix = requirePathHasPrefix();
|
24
|
-
function getNextPathnameInfo(pathname, options) {
|
25
|
-
var _options_nextConfig;
|
26
|
-
const { basePath, i18n, trailingSlash } = (_options_nextConfig = options.nextConfig) != null ? _options_nextConfig : {};
|
27
|
-
const info = {
|
28
|
-
pathname,
|
29
|
-
trailingSlash: pathname !== "/" ? pathname.endsWith("/") : trailingSlash
|
30
|
-
};
|
31
|
-
if (basePath && (0, _pathhasprefix.pathHasPrefix)(info.pathname, basePath)) {
|
32
|
-
info.pathname = (0, _removepathprefix.removePathPrefix)(info.pathname, basePath);
|
33
|
-
info.basePath = basePath;
|
34
|
-
}
|
35
|
-
let pathnameNoDataPrefix = info.pathname;
|
36
|
-
if (info.pathname.startsWith("/_next/data/") && info.pathname.endsWith(".json")) {
|
37
|
-
const paths = info.pathname.replace(/^\/_next\/data\//, "").replace(/\.json$/, "").split("/");
|
38
|
-
const buildId = paths[0];
|
39
|
-
info.buildId = buildId;
|
40
|
-
pathnameNoDataPrefix = paths[1] !== "index" ? "/" + paths.slice(1).join("/") : "/";
|
41
|
-
// update pathname with normalized if enabled although
|
42
|
-
// we use normalized to populate locale info still
|
43
|
-
if (options.parseData === true) {
|
44
|
-
info.pathname = pathnameNoDataPrefix;
|
45
|
-
}
|
46
|
-
}
|
47
|
-
// If provided, use the locale route normalizer to detect the locale instead
|
48
|
-
// of the function below.
|
49
|
-
if (i18n) {
|
50
|
-
let result = options.i18nProvider ? options.i18nProvider.analyze(info.pathname) : (0, _normalizelocalepath.normalizeLocalePath)(info.pathname, i18n.locales);
|
51
|
-
info.locale = result.detectedLocale;
|
52
|
-
var _result_pathname;
|
53
|
-
info.pathname = (_result_pathname = result.pathname) != null ? _result_pathname : info.pathname;
|
54
|
-
if (!result.detectedLocale && info.buildId) {
|
55
|
-
result = options.i18nProvider ? options.i18nProvider.analyze(pathnameNoDataPrefix) : (0, _normalizelocalepath.normalizeLocalePath)(pathnameNoDataPrefix, i18n.locales);
|
56
|
-
if (result.detectedLocale) {
|
57
|
-
info.locale = result.detectedLocale;
|
58
|
-
}
|
59
|
-
}
|
60
|
-
}
|
61
|
-
return info;
|
62
|
-
}
|
63
|
-
|
64
|
-
|
65
|
-
} (getNextPathnameInfo));
|
66
|
-
return getNextPathnameInfo;
|
67
|
-
}
|
68
|
-
|
69
|
-
export { requireGetNextPathnameInfo as __require };
|
@@ -1,49 +0,0 @@
|
|
1
|
-
import { __exports as handleSmoothScroll } from '../../../../../../../_virtual/handle-smooth-scroll.js';
|
2
|
-
|
3
|
-
/**
|
4
|
-
* Run function with `scroll-behavior: auto` applied to `<html/>`.
|
5
|
-
* This css change will be reverted after the function finishes.
|
6
|
-
*/
|
7
|
-
|
8
|
-
var hasRequiredHandleSmoothScroll;
|
9
|
-
|
10
|
-
function requireHandleSmoothScroll () {
|
11
|
-
if (hasRequiredHandleSmoothScroll) return handleSmoothScroll;
|
12
|
-
hasRequiredHandleSmoothScroll = 1;
|
13
|
-
(function (exports) {
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
15
|
-
value: true
|
16
|
-
});
|
17
|
-
Object.defineProperty(exports, "handleSmoothScroll", {
|
18
|
-
enumerable: true,
|
19
|
-
get: function() {
|
20
|
-
return handleSmoothScroll;
|
21
|
-
}
|
22
|
-
});
|
23
|
-
function handleSmoothScroll(fn, options) {
|
24
|
-
if (options === void 0) options = {};
|
25
|
-
// if only the hash is changed, we don't need to disable smooth scrolling
|
26
|
-
// we only care to prevent smooth scrolling when navigating to a new page to avoid jarring UX
|
27
|
-
if (options.onlyHashChange) {
|
28
|
-
fn();
|
29
|
-
return;
|
30
|
-
}
|
31
|
-
const htmlElement = document.documentElement;
|
32
|
-
const existing = htmlElement.style.scrollBehavior;
|
33
|
-
htmlElement.style.scrollBehavior = "auto";
|
34
|
-
if (!options.dontForceLayout) {
|
35
|
-
// In Chrome-based browsers we need to force reflow before calling `scrollTo`.
|
36
|
-
// Otherwise it will not pickup the change in scrollBehavior
|
37
|
-
// More info here: https://github.com/vercel/next.js/issues/40719#issuecomment-1336248042
|
38
|
-
htmlElement.getClientRects();
|
39
|
-
}
|
40
|
-
fn();
|
41
|
-
htmlElement.style.scrollBehavior = existing;
|
42
|
-
}
|
43
|
-
|
44
|
-
|
45
|
-
} (handleSmoothScroll));
|
46
|
-
return handleSmoothScroll;
|
47
|
-
}
|
48
|
-
|
49
|
-
export { requireHandleSmoothScroll as __require };
|
@@ -1,36 +0,0 @@
|
|
1
|
-
import { __exports as utils } from '../../../../../../../_virtual/index.js';
|
2
|
-
import { __require as requireSortedRoutes } from './sorted-routes.js';
|
3
|
-
import { __require as requireIsDynamic } from './is-dynamic.js';
|
4
|
-
|
5
|
-
var hasRequiredUtils;
|
6
|
-
|
7
|
-
function requireUtils () {
|
8
|
-
if (hasRequiredUtils) return utils;
|
9
|
-
hasRequiredUtils = 1;
|
10
|
-
(function (exports) {
|
11
|
-
Object.defineProperty(exports, "__esModule", {
|
12
|
-
value: true
|
13
|
-
});
|
14
|
-
function _export(target, all) {
|
15
|
-
for(var name in all)Object.defineProperty(target, name, {
|
16
|
-
enumerable: true,
|
17
|
-
get: all[name]
|
18
|
-
});
|
19
|
-
}
|
20
|
-
_export(exports, {
|
21
|
-
getSortedRoutes: function() {
|
22
|
-
return _sortedroutes.getSortedRoutes;
|
23
|
-
},
|
24
|
-
isDynamicRoute: function() {
|
25
|
-
return _isdynamic.isDynamicRoute;
|
26
|
-
}
|
27
|
-
});
|
28
|
-
const _sortedroutes = requireSortedRoutes();
|
29
|
-
const _isdynamic = requireIsDynamic();
|
30
|
-
|
31
|
-
|
32
|
-
} (utils));
|
33
|
-
return utils;
|
34
|
-
}
|
35
|
-
|
36
|
-
export { requireUtils as __require };
|
@@ -1,67 +0,0 @@
|
|
1
|
-
import { __exports as interpolateAs } from '../../../../../../../_virtual/interpolate-as.js';
|
2
|
-
import { __require as requireRouteMatcher } from './route-matcher.js';
|
3
|
-
import { __require as requireRouteRegex } from './route-regex.js';
|
4
|
-
|
5
|
-
var hasRequiredInterpolateAs;
|
6
|
-
|
7
|
-
function requireInterpolateAs () {
|
8
|
-
if (hasRequiredInterpolateAs) return interpolateAs;
|
9
|
-
hasRequiredInterpolateAs = 1;
|
10
|
-
(function (exports) {
|
11
|
-
Object.defineProperty(exports, "__esModule", {
|
12
|
-
value: true
|
13
|
-
});
|
14
|
-
Object.defineProperty(exports, "interpolateAs", {
|
15
|
-
enumerable: true,
|
16
|
-
get: function() {
|
17
|
-
return interpolateAs;
|
18
|
-
}
|
19
|
-
});
|
20
|
-
const _routematcher = requireRouteMatcher();
|
21
|
-
const _routeregex = requireRouteRegex();
|
22
|
-
function interpolateAs(route, asPathname, query) {
|
23
|
-
let interpolatedRoute = "";
|
24
|
-
const dynamicRegex = (0, _routeregex.getRouteRegex)(route);
|
25
|
-
const dynamicGroups = dynamicRegex.groups;
|
26
|
-
const dynamicMatches = // Try to match the dynamic route against the asPath
|
27
|
-
(asPathname !== route ? (0, _routematcher.getRouteMatcher)(dynamicRegex)(asPathname) : "") || // Fall back to reading the values from the href
|
28
|
-
// TODO: should this take priority; also need to change in the router.
|
29
|
-
query;
|
30
|
-
interpolatedRoute = route;
|
31
|
-
const params = Object.keys(dynamicGroups);
|
32
|
-
if (!params.every((param)=>{
|
33
|
-
let value = dynamicMatches[param] || "";
|
34
|
-
const { repeat, optional } = dynamicGroups[param];
|
35
|
-
// support single-level catch-all
|
36
|
-
// TODO: more robust handling for user-error (passing `/`)
|
37
|
-
let replaced = "[" + (repeat ? "..." : "") + param + "]";
|
38
|
-
if (optional) {
|
39
|
-
replaced = (!value ? "/" : "") + "[" + replaced + "]";
|
40
|
-
}
|
41
|
-
if (repeat && !Array.isArray(value)) value = [
|
42
|
-
value
|
43
|
-
];
|
44
|
-
return (optional || param in dynamicMatches) && // Interpolate group into data URL if present
|
45
|
-
(interpolatedRoute = interpolatedRoute.replace(replaced, repeat ? value.map(// these values should be fully encoded instead of just
|
46
|
-
// path delimiter escaped since they are being inserted
|
47
|
-
// into the URL and we expect URL encoded segments
|
48
|
-
// when parsing dynamic route params
|
49
|
-
(segment)=>encodeURIComponent(segment)).join("/") : encodeURIComponent(value)) || "/");
|
50
|
-
})) {
|
51
|
-
interpolatedRoute = "" // did not satisfy all requirements
|
52
|
-
;
|
53
|
-
// n.b. We ignore this error because we handle warning for this case in
|
54
|
-
// development in the `<Link>` component directly.
|
55
|
-
}
|
56
|
-
return {
|
57
|
-
params,
|
58
|
-
result: interpolatedRoute
|
59
|
-
};
|
60
|
-
}
|
61
|
-
|
62
|
-
|
63
|
-
} (interpolateAs));
|
64
|
-
return interpolateAs;
|
65
|
-
}
|
66
|
-
|
67
|
-
export { requireInterpolateAs as __require };
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import { __exports as isBot } from '../../../../../../../_virtual/is-bot.js';
|
2
|
-
|
3
|
-
var hasRequiredIsBot;
|
4
|
-
|
5
|
-
function requireIsBot () {
|
6
|
-
if (hasRequiredIsBot) return isBot;
|
7
|
-
hasRequiredIsBot = 1;
|
8
|
-
(function (exports) {
|
9
|
-
Object.defineProperty(exports, "__esModule", {
|
10
|
-
value: true
|
11
|
-
});
|
12
|
-
Object.defineProperty(exports, "isBot", {
|
13
|
-
enumerable: true,
|
14
|
-
get: function() {
|
15
|
-
return isBot;
|
16
|
-
}
|
17
|
-
});
|
18
|
-
function isBot(userAgent) {
|
19
|
-
return /Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(userAgent);
|
20
|
-
}
|
21
|
-
|
22
|
-
|
23
|
-
} (isBot));
|
24
|
-
return isBot;
|
25
|
-
}
|
26
|
-
|
27
|
-
export { requireIsBot as __require };
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import { __exports as isDynamic } from '../../../../../../../_virtual/is-dynamic.js';
|
2
|
-
|
3
|
-
var hasRequiredIsDynamic;
|
4
|
-
|
5
|
-
function requireIsDynamic () {
|
6
|
-
if (hasRequiredIsDynamic) return isDynamic;
|
7
|
-
hasRequiredIsDynamic = 1;
|
8
|
-
(function (exports) {
|
9
|
-
Object.defineProperty(exports, "__esModule", {
|
10
|
-
value: true
|
11
|
-
});
|
12
|
-
Object.defineProperty(exports, "isDynamicRoute", {
|
13
|
-
enumerable: true,
|
14
|
-
get: function() {
|
15
|
-
return isDynamicRoute;
|
16
|
-
}
|
17
|
-
});
|
18
|
-
const TEST_ROUTE = /\/\[[^/]+?\](?=\/|$)/;
|
19
|
-
function isDynamicRoute(route) {
|
20
|
-
return TEST_ROUTE.test(route);
|
21
|
-
}
|
22
|
-
|
23
|
-
|
24
|
-
} (isDynamic));
|
25
|
-
return isDynamic;
|
26
|
-
}
|
27
|
-
|
28
|
-
export { requireIsDynamic as __require };
|