@lssm/lib.ui-kit 1.41.0 → 1.42.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/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/organisms/ListPage/ListPage.js +1 -1
- package/package.json +4 -3
- package/dist/node_modules/@hookform/resolvers/dist/resolvers.js +0 -34
- package/dist/node_modules/@hookform/resolvers/zod/dist/zod.js +0 -118
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +0 -14
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +0 -35
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +0 -25
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -24
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -21
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-left.js +0 -20
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-right.js +0 -20
- package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis.js +0 -33
- package/dist/node_modules/lucide-react/dist/esm/icons/funnel.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/icons/house.js +0 -20
- package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/icons/plus.js +0 -20
- package/dist/node_modules/lucide-react/dist/esm/icons/refresh-ccw.js +0 -31
- package/dist/node_modules/lucide-react/dist/esm/icons/refresh-cw.js +0 -31
- package/dist/node_modules/lucide-react/dist/esm/icons/search.js +0 -22
- package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.js +0 -27
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +0 -20
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -22
- package/dist/node_modules/next/dist/client/add-base-path.js +0 -30
- package/dist/node_modules/next/dist/client/add-locale.js +0 -29
- package/dist/node_modules/next/dist/client/detect-domain-locale.js +0 -26
- package/dist/node_modules/next/dist/client/get-domain-locale.js +0 -41
- package/dist/node_modules/next/dist/client/has-base-path.js +0 -28
- package/dist/node_modules/next/dist/client/link.js +0 -311
- package/dist/node_modules/next/dist/client/normalize-locale-path.js +0 -30
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +0 -34
- package/dist/node_modules/next/dist/client/request-idle-callback.js +0 -44
- package/dist/node_modules/next/dist/client/resolve-href.js +0 -86
- package/dist/node_modules/next/dist/client/use-intersection.js +0 -104
- package/dist/node_modules/next/dist/client/use-merged-ref.js +0 -56
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +0 -372
- package/dist/node_modules/next/dist/lib/constants.js +0 -316
- package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +0 -69
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +0 -23
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -22
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -42
- package/dist/node_modules/next/dist/shared/lib/invariant-error.js +0 -23
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -23
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -30
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -24
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +0 -41
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +0 -78
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +0 -151
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +0 -77
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +0 -32
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +0 -92
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +0 -41
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -26
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +0 -31
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +0 -24
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +0 -33
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -36
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -24
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +0 -56
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -26
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +0 -94
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +0 -46
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +0 -203
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -167
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -20
- package/dist/node_modules/next/dist/shared/lib/segment.js +0 -80
- package/dist/node_modules/next/dist/shared/lib/utils/error-once.js +0 -25
- package/dist/node_modules/next/dist/shared/lib/utils.js +0 -172
- package/dist/node_modules/next/link.js +0 -12
- package/dist/node_modules/react-hook-form/dist/index.esm.js +0 -2074
- package/dist/node_modules/zod/v4/classic/errors.js +0 -29
- package/dist/node_modules/zod/v4/classic/iso.js +0 -37
- package/dist/node_modules/zod/v4/classic/parse.js +0 -19
- package/dist/node_modules/zod/v4/classic/schemas.js +0 -418
- package/dist/node_modules/zod/v4/core/api.js +0 -404
- package/dist/node_modules/zod/v4/core/checks.js +0 -225
- package/dist/node_modules/zod/v4/core/core.js +0 -61
- package/dist/node_modules/zod/v4/core/errors.js +0 -62
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +0 -148
- package/dist/node_modules/zod/v4/core/parse.js +0 -109
- package/dist/node_modules/zod/v4/core/regexes.js +0 -57
- package/dist/node_modules/zod/v4/core/registries.js +0 -52
- package/dist/node_modules/zod/v4/core/schemas.js +0 -744
- package/dist/node_modules/zod/v4/core/to-json-schema.js +0 -260
- package/dist/node_modules/zod/v4/core/util.js +0 -155
- package/dist/node_modules/zod/v4/core/versions.js +0 -9
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { createLucideIcon } from "../createLucideIcon.js";
|
|
2
|
-
|
|
3
|
-
//#region ../../../node_modules/lucide-react/dist/esm/icons/x.js
|
|
4
|
-
/**
|
|
5
|
-
* @license lucide-react v0.535.0 - ISC
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the ISC license.
|
|
8
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/
|
|
10
|
-
const __iconNode = [["path", {
|
|
11
|
-
d: "M18 6 6 18",
|
|
12
|
-
key: "1bl5f8"
|
|
13
|
-
}], ["path", {
|
|
14
|
-
d: "m6 6 12 12",
|
|
15
|
-
key: "d8bk6v"
|
|
16
|
-
}]];
|
|
17
|
-
const X = createLucideIcon("x", __iconNode);
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export { X };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
//#region ../../../node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
2
|
-
/**
|
|
3
|
-
* @license lucide-react v0.535.0 - ISC
|
|
4
|
-
*
|
|
5
|
-
* This source code is licensed under the ISC license.
|
|
6
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
7
|
-
*/
|
|
8
|
-
const toKebabCase = (string) => string.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
9
|
-
const toCamelCase = (string) => string.replace(/^([A-Z])|[\s-_]+(\w)/g, (match, p1, p2) => p2 ? p2.toUpperCase() : p1.toLowerCase());
|
|
10
|
-
const toPascalCase = (string) => {
|
|
11
|
-
const camelCase = toCamelCase(string);
|
|
12
|
-
return camelCase.charAt(0).toUpperCase() + camelCase.slice(1);
|
|
13
|
-
};
|
|
14
|
-
const mergeClasses = (...classes) => classes.filter((className, index, array) => {
|
|
15
|
-
return Boolean(className) && className.trim() !== "" && array.indexOf(className) === index;
|
|
16
|
-
}).join(" ").trim();
|
|
17
|
-
const hasA11yProp = (props) => {
|
|
18
|
-
for (const prop in props) if (prop.startsWith("aria-") || prop === "role" || prop === "title") return true;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
//#endregion
|
|
22
|
-
export { hasA11yProp, mergeClasses, toKebabCase, toPascalCase };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_normalize_trailing_slash } from "./normalize-trailing-slash.js";
|
|
3
|
-
import { require_add_path_prefix } from "../shared/lib/router/utils/add-path-prefix.js";
|
|
4
|
-
|
|
5
|
-
//#region ../../../node_modules/next/dist/client/add-base-path.js
|
|
6
|
-
var require_add_base_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
Object.defineProperty(exports, "addBasePath", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function() {
|
|
11
|
-
return addBasePath;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
const _addpathprefix = require_add_path_prefix();
|
|
15
|
-
const _normalizetrailingslash = require_normalize_trailing_slash();
|
|
16
|
-
const basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
17
|
-
function addBasePath(path, required) {
|
|
18
|
-
return (0, _normalizetrailingslash.normalizePathTrailingSlash)(process.env.__NEXT_MANUAL_CLIENT_BASE_PATH && !required ? path : (0, _addpathprefix.addPathPrefix)(path, basePath));
|
|
19
|
-
}
|
|
20
|
-
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
21
|
-
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
22
|
-
Object.assign(exports.default, exports);
|
|
23
|
-
module.exports = exports.default;
|
|
24
|
-
}
|
|
25
|
-
}));
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
export default require_add_base_path();
|
|
29
|
-
|
|
30
|
-
export { require_add_base_path };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_normalize_trailing_slash } from "./normalize-trailing-slash.js";
|
|
3
|
-
import { require_add_locale as require_add_locale$1 } from "../shared/lib/router/utils/add-locale.js";
|
|
4
|
-
|
|
5
|
-
//#region ../../../node_modules/next/dist/client/add-locale.js
|
|
6
|
-
var require_add_locale = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
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 _normalizetrailingslash = require_normalize_trailing_slash();
|
|
15
|
-
const addLocale = (path, ...args) => {
|
|
16
|
-
if (process.env.__NEXT_I18N_SUPPORT) return (0, _normalizetrailingslash.normalizePathTrailingSlash)(require_add_locale$1().addLocale(path, ...args));
|
|
17
|
-
return path;
|
|
18
|
-
};
|
|
19
|
-
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
20
|
-
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
21
|
-
Object.assign(exports.default, exports);
|
|
22
|
-
module.exports = exports.default;
|
|
23
|
-
}
|
|
24
|
-
}));
|
|
25
|
-
|
|
26
|
-
//#endregion
|
|
27
|
-
export default require_add_locale();
|
|
28
|
-
|
|
29
|
-
export { require_add_locale };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_detect_domain_locale as require_detect_domain_locale$1 } from "../shared/lib/i18n/detect-domain-locale.js";
|
|
3
|
-
|
|
4
|
-
//#region ../../../node_modules/next/dist/client/detect-domain-locale.js
|
|
5
|
-
var require_detect_domain_locale = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
Object.defineProperty(exports, "detectDomainLocale", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function() {
|
|
10
|
-
return detectDomainLocale;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
const detectDomainLocale = (...args) => {
|
|
14
|
-
if (process.env.__NEXT_I18N_SUPPORT) return require_detect_domain_locale$1().detectDomainLocale(...args);
|
|
15
|
-
};
|
|
16
|
-
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
17
|
-
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
18
|
-
Object.assign(exports.default, exports);
|
|
19
|
-
module.exports = exports.default;
|
|
20
|
-
}
|
|
21
|
-
}));
|
|
22
|
-
|
|
23
|
-
//#endregion
|
|
24
|
-
export default require_detect_domain_locale();
|
|
25
|
-
|
|
26
|
-
export { require_detect_domain_locale };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_normalize_trailing_slash } from "./normalize-trailing-slash.js";
|
|
3
|
-
import { require_normalize_locale_path } from "./normalize-locale-path.js";
|
|
4
|
-
import { require_detect_domain_locale } from "./detect-domain-locale.js";
|
|
5
|
-
|
|
6
|
-
//#region ../../../node_modules/next/dist/client/get-domain-locale.js
|
|
7
|
-
var require_get_domain_locale = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
Object.defineProperty(exports, "getDomainLocale", {
|
|
10
|
-
enumerable: true,
|
|
11
|
-
get: function() {
|
|
12
|
-
return getDomainLocale;
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
const _normalizetrailingslash = require_normalize_trailing_slash();
|
|
16
|
-
const basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
17
|
-
function getDomainLocale(path, locale, locales, domainLocales) {
|
|
18
|
-
if (process.env.__NEXT_I18N_SUPPORT) {
|
|
19
|
-
const normalizeLocalePath = require_normalize_locale_path().normalizeLocalePath;
|
|
20
|
-
const detectDomainLocale = require_detect_domain_locale().detectDomainLocale;
|
|
21
|
-
const target = locale || normalizeLocalePath(path, locales).detectedLocale;
|
|
22
|
-
const domain = detectDomainLocale(domainLocales, void 0, target);
|
|
23
|
-
if (domain) {
|
|
24
|
-
const proto = `http${domain.http ? "" : "s"}://`;
|
|
25
|
-
const finalLocale = target === domain.defaultLocale ? "" : `/${target}`;
|
|
26
|
-
return `${proto}${domain.domain}${(0, _normalizetrailingslash.normalizePathTrailingSlash)(`${basePath}${finalLocale}${path}`)}`;
|
|
27
|
-
}
|
|
28
|
-
return false;
|
|
29
|
-
} else return false;
|
|
30
|
-
}
|
|
31
|
-
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
32
|
-
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
33
|
-
Object.assign(exports.default, exports);
|
|
34
|
-
module.exports = exports.default;
|
|
35
|
-
}
|
|
36
|
-
}));
|
|
37
|
-
|
|
38
|
-
//#endregion
|
|
39
|
-
export default require_get_domain_locale();
|
|
40
|
-
|
|
41
|
-
export { require_get_domain_locale };
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_path_has_prefix } from "../shared/lib/router/utils/path-has-prefix.js";
|
|
3
|
-
|
|
4
|
-
//#region ../../../node_modules/next/dist/client/has-base-path.js
|
|
5
|
-
var require_has_base_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
Object.defineProperty(exports, "hasBasePath", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function() {
|
|
10
|
-
return hasBasePath;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
const _pathhasprefix = require_path_has_prefix();
|
|
14
|
-
const basePath = process.env.__NEXT_ROUTER_BASEPATH || "";
|
|
15
|
-
function hasBasePath(path) {
|
|
16
|
-
return (0, _pathhasprefix.pathHasPrefix)(path, basePath);
|
|
17
|
-
}
|
|
18
|
-
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
19
|
-
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
20
|
-
Object.assign(exports.default, exports);
|
|
21
|
-
module.exports = exports.default;
|
|
22
|
-
}
|
|
23
|
-
}));
|
|
24
|
-
|
|
25
|
-
//#endregion
|
|
26
|
-
export default require_has_base_path();
|
|
27
|
-
|
|
28
|
-
export { require_has_base_path };
|
|
@@ -1,311 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { __commonJSMin, __require } from "../../../../_virtual/rolldown_runtime.js";
|
|
4
|
-
import { require__interop_require_wildcard } from "../../../@swc/helpers/cjs/_interop_require_wildcard.js";
|
|
5
|
-
import { require_format_url } from "../shared/lib/router/utils/format-url.js";
|
|
6
|
-
import { require_utils } from "../shared/lib/utils.js";
|
|
7
|
-
import { require_is_local_url } from "../shared/lib/router/utils/is-local-url.js";
|
|
8
|
-
import { require_resolve_href } from "./resolve-href.js";
|
|
9
|
-
import { require_add_locale } from "./add-locale.js";
|
|
10
|
-
import { require_router_context_shared_runtime } from "../shared/lib/router-context.shared-runtime.js";
|
|
11
|
-
import { require_use_intersection } from "./use-intersection.js";
|
|
12
|
-
import { require_get_domain_locale } from "./get-domain-locale.js";
|
|
13
|
-
import { require_add_base_path } from "./add-base-path.js";
|
|
14
|
-
import { require_use_merged_ref } from "./use-merged-ref.js";
|
|
15
|
-
import { require_error_once } from "../shared/lib/utils/error-once.js";
|
|
16
|
-
|
|
17
|
-
//#region ../../../node_modules/next/dist/client/link.js
|
|
18
|
-
var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
function _export(target, all) {
|
|
21
|
-
for (var name in all) Object.defineProperty(target, name, {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: all[name]
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
_export(exports, {
|
|
27
|
-
default: function() {
|
|
28
|
-
return _default;
|
|
29
|
-
},
|
|
30
|
-
useLinkStatus: function() {
|
|
31
|
-
return useLinkStatus;
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
const _interop_require_wildcard = require__interop_require_wildcard();
|
|
35
|
-
const _jsxruntime = __require("react/jsx-runtime");
|
|
36
|
-
const _react = /* @__PURE__ */ _interop_require_wildcard._(__require("react"));
|
|
37
|
-
const _resolvehref = require_resolve_href();
|
|
38
|
-
const _islocalurl = require_is_local_url();
|
|
39
|
-
const _formaturl = require_format_url();
|
|
40
|
-
const _utils = require_utils();
|
|
41
|
-
const _addlocale = require_add_locale();
|
|
42
|
-
const _routercontextsharedruntime = require_router_context_shared_runtime();
|
|
43
|
-
const _useintersection = require_use_intersection();
|
|
44
|
-
const _getdomainlocale = require_get_domain_locale();
|
|
45
|
-
const _addbasepath = require_add_base_path();
|
|
46
|
-
const _usemergedref = require_use_merged_ref();
|
|
47
|
-
const _erroronce = require_error_once();
|
|
48
|
-
const prefetched = /* @__PURE__ */ new Set();
|
|
49
|
-
function prefetch(router, href, as, options) {
|
|
50
|
-
if (typeof window === "undefined") return;
|
|
51
|
-
if (!(0, _islocalurl.isLocalURL)(href)) return;
|
|
52
|
-
if (!options.bypassPrefetchedCheck) {
|
|
53
|
-
const locale = typeof options.locale !== "undefined" ? options.locale : "locale" in router ? router.locale : void 0;
|
|
54
|
-
const prefetchedKey = href + "%" + as + "%" + locale;
|
|
55
|
-
if (prefetched.has(prefetchedKey)) return;
|
|
56
|
-
prefetched.add(prefetchedKey);
|
|
57
|
-
}
|
|
58
|
-
router.prefetch(href, as, options).catch((err) => {
|
|
59
|
-
throw err;
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
function isModifiedEvent(event) {
|
|
63
|
-
const target = event.currentTarget.getAttribute("target");
|
|
64
|
-
return target && target !== "_self" || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || event.nativeEvent && event.nativeEvent.which === 2;
|
|
65
|
-
}
|
|
66
|
-
function linkClicked(e, router, href, as, replace, shallow, scroll, locale, onNavigate) {
|
|
67
|
-
const { nodeName } = e.currentTarget;
|
|
68
|
-
if (nodeName.toUpperCase() === "A" && isModifiedEvent(e) || e.currentTarget.hasAttribute("download")) return;
|
|
69
|
-
if (!(0, _islocalurl.isLocalURL)(href)) {
|
|
70
|
-
if (replace) {
|
|
71
|
-
e.preventDefault();
|
|
72
|
-
location.replace(href);
|
|
73
|
-
}
|
|
74
|
-
return;
|
|
75
|
-
}
|
|
76
|
-
e.preventDefault();
|
|
77
|
-
const navigate = () => {
|
|
78
|
-
if (onNavigate) {
|
|
79
|
-
let isDefaultPrevented = false;
|
|
80
|
-
onNavigate({ preventDefault: () => {
|
|
81
|
-
isDefaultPrevented = true;
|
|
82
|
-
} });
|
|
83
|
-
if (isDefaultPrevented) return;
|
|
84
|
-
}
|
|
85
|
-
const routerScroll = scroll ?? true;
|
|
86
|
-
if ("beforePopState" in router) router[replace ? "replace" : "push"](href, as, {
|
|
87
|
-
shallow,
|
|
88
|
-
locale,
|
|
89
|
-
scroll: routerScroll
|
|
90
|
-
});
|
|
91
|
-
else router[replace ? "replace" : "push"](as || href, { scroll: routerScroll });
|
|
92
|
-
};
|
|
93
|
-
navigate();
|
|
94
|
-
}
|
|
95
|
-
function formatStringOrUrl(urlObjOrString) {
|
|
96
|
-
if (typeof urlObjOrString === "string") return urlObjOrString;
|
|
97
|
-
return (0, _formaturl.formatUrl)(urlObjOrString);
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* A React component that extends the HTML `<a>` element to provide [prefetching](https://nextjs.org/docs/app/building-your-application/routing/linking-and-navigating#2-prefetching)
|
|
101
|
-
* and client-side navigation between routes.
|
|
102
|
-
*
|
|
103
|
-
* It is the primary way to navigate between routes in Next.js.
|
|
104
|
-
*
|
|
105
|
-
* Read more: [Next.js docs: `<Link>`](https://nextjs.org/docs/app/api-reference/components/link)
|
|
106
|
-
*/ const Link = /* @__PURE__ */ _react.default.forwardRef(function LinkComponent(props, forwardedRef) {
|
|
107
|
-
let children;
|
|
108
|
-
const { href: hrefProp, as: asProp, children: childrenProp, prefetch: prefetchProp = null, passHref, replace, shallow, scroll, locale, onClick, onNavigate, onMouseEnter: onMouseEnterProp, onTouchStart: onTouchStartProp, legacyBehavior = false, ...restProps } = props;
|
|
109
|
-
children = childrenProp;
|
|
110
|
-
if (legacyBehavior && (typeof children === "string" || typeof children === "number")) children = /* @__PURE__ */ (0, _jsxruntime.jsx)("a", { children });
|
|
111
|
-
const router = _react.default.useContext(_routercontextsharedruntime.RouterContext);
|
|
112
|
-
const prefetchEnabled = prefetchProp !== false;
|
|
113
|
-
{
|
|
114
|
-
function createPropError(args) {
|
|
115
|
-
return Object.defineProperty(/* @__PURE__ */ new Error(`Failed prop type: The prop \`${args.key}\` expects a ${args.expected} in \`<Link>\`, but got \`${args.actual}\` instead.` + (typeof window !== "undefined" ? "\nOpen your browser's console to view the Component stack trace." : "")), "__NEXT_ERROR_CODE", {
|
|
116
|
-
value: "E319",
|
|
117
|
-
enumerable: false,
|
|
118
|
-
configurable: true
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
Object.keys({ href: true }).forEach((key) => {
|
|
122
|
-
if (key === "href") {
|
|
123
|
-
if (props[key] == null || typeof props[key] !== "string" && typeof props[key] !== "object") throw createPropError({
|
|
124
|
-
key,
|
|
125
|
-
expected: "`string` or `object`",
|
|
126
|
-
actual: props[key] === null ? "null" : typeof props[key]
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
Object.keys({
|
|
131
|
-
as: true,
|
|
132
|
-
replace: true,
|
|
133
|
-
scroll: true,
|
|
134
|
-
shallow: true,
|
|
135
|
-
passHref: true,
|
|
136
|
-
prefetch: true,
|
|
137
|
-
locale: true,
|
|
138
|
-
onClick: true,
|
|
139
|
-
onMouseEnter: true,
|
|
140
|
-
onTouchStart: true,
|
|
141
|
-
legacyBehavior: true,
|
|
142
|
-
onNavigate: true
|
|
143
|
-
}).forEach((key) => {
|
|
144
|
-
const valType = typeof props[key];
|
|
145
|
-
if (key === "as") {
|
|
146
|
-
if (props[key] && valType !== "string" && valType !== "object") throw createPropError({
|
|
147
|
-
key,
|
|
148
|
-
expected: "`string` or `object`",
|
|
149
|
-
actual: valType
|
|
150
|
-
});
|
|
151
|
-
} else if (key === "locale") {
|
|
152
|
-
if (props[key] && valType !== "string") throw createPropError({
|
|
153
|
-
key,
|
|
154
|
-
expected: "`string`",
|
|
155
|
-
actual: valType
|
|
156
|
-
});
|
|
157
|
-
} else if (key === "onClick" || key === "onMouseEnter" || key === "onTouchStart" || key === "onNavigate") {
|
|
158
|
-
if (props[key] && valType !== "function") throw createPropError({
|
|
159
|
-
key,
|
|
160
|
-
expected: "`function`",
|
|
161
|
-
actual: valType
|
|
162
|
-
});
|
|
163
|
-
} else if (key === "replace" || key === "scroll" || key === "shallow" || key === "passHref" || key === "legacyBehavior") {
|
|
164
|
-
if (props[key] != null && valType !== "boolean") throw createPropError({
|
|
165
|
-
key,
|
|
166
|
-
expected: "`boolean`",
|
|
167
|
-
actual: valType
|
|
168
|
-
});
|
|
169
|
-
} else if (key === "prefetch") {
|
|
170
|
-
if (props[key] != null && valType !== "boolean" && props[key] !== "auto") throw createPropError({
|
|
171
|
-
key,
|
|
172
|
-
expected: "`boolean | \"auto\"`",
|
|
173
|
-
actual: valType
|
|
174
|
-
});
|
|
175
|
-
}
|
|
176
|
-
});
|
|
177
|
-
}
|
|
178
|
-
const { href, as } = _react.default.useMemo(() => {
|
|
179
|
-
if (!router) {
|
|
180
|
-
const resolvedHref$1 = formatStringOrUrl(hrefProp);
|
|
181
|
-
return {
|
|
182
|
-
href: resolvedHref$1,
|
|
183
|
-
as: asProp ? formatStringOrUrl(asProp) : resolvedHref$1
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
const [resolvedHref, resolvedAs] = (0, _resolvehref.resolveHref)(router, hrefProp, true);
|
|
187
|
-
return {
|
|
188
|
-
href: resolvedHref,
|
|
189
|
-
as: asProp ? (0, _resolvehref.resolveHref)(router, asProp) : resolvedAs || resolvedHref
|
|
190
|
-
};
|
|
191
|
-
}, [
|
|
192
|
-
router,
|
|
193
|
-
hrefProp,
|
|
194
|
-
asProp
|
|
195
|
-
]);
|
|
196
|
-
const previousHref = _react.default.useRef(href);
|
|
197
|
-
const previousAs = _react.default.useRef(as);
|
|
198
|
-
let child;
|
|
199
|
-
if (legacyBehavior) {
|
|
200
|
-
if (onClick) console.warn(`"onClick" was passed to <Link> with \`href\` of \`${hrefProp}\` but "legacyBehavior" was set. The legacy behavior requires onClick be set on the child of next/link`);
|
|
201
|
-
if (onMouseEnterProp) console.warn(`"onMouseEnter" was passed to <Link> with \`href\` of \`${hrefProp}\` but "legacyBehavior" was set. The legacy behavior requires onMouseEnter be set on the child of next/link`);
|
|
202
|
-
try {
|
|
203
|
-
child = _react.default.Children.only(children);
|
|
204
|
-
} catch (err) {
|
|
205
|
-
if (!children) throw Object.defineProperty(/* @__PURE__ */ new Error(`No children were passed to <Link> with \`href\` of \`${hrefProp}\` but one child is required https://nextjs.org/docs/messages/link-no-children`), "__NEXT_ERROR_CODE", {
|
|
206
|
-
value: "E320",
|
|
207
|
-
enumerable: false,
|
|
208
|
-
configurable: true
|
|
209
|
-
});
|
|
210
|
-
throw Object.defineProperty(/* @__PURE__ */ new Error(`Multiple children were passed to <Link> with \`href\` of \`${hrefProp}\` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children` + (typeof window !== "undefined" ? " \nOpen your browser's console to view the Component stack trace." : "")), "__NEXT_ERROR_CODE", {
|
|
211
|
-
value: "E266",
|
|
212
|
-
enumerable: false,
|
|
213
|
-
configurable: true
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
} else if (children?.type === "a") throw Object.defineProperty(/* @__PURE__ */ new Error("Invalid <Link> with <a> child. Please remove <a> or use <Link legacyBehavior>.\nLearn more: https://nextjs.org/docs/messages/invalid-new-link-with-extra-anchor"), "__NEXT_ERROR_CODE", {
|
|
217
|
-
value: "E209",
|
|
218
|
-
enumerable: false,
|
|
219
|
-
configurable: true
|
|
220
|
-
});
|
|
221
|
-
const childRef = legacyBehavior ? child && typeof child === "object" && child.ref : forwardedRef;
|
|
222
|
-
const [setIntersectionRef, isVisible, resetVisible] = (0, _useintersection.useIntersection)({ rootMargin: "200px" });
|
|
223
|
-
const setIntersectionWithResetRef = _react.default.useCallback((el) => {
|
|
224
|
-
if (previousAs.current !== as || previousHref.current !== href) {
|
|
225
|
-
resetVisible();
|
|
226
|
-
previousAs.current = as;
|
|
227
|
-
previousHref.current = href;
|
|
228
|
-
}
|
|
229
|
-
setIntersectionRef(el);
|
|
230
|
-
}, [
|
|
231
|
-
as,
|
|
232
|
-
href,
|
|
233
|
-
resetVisible,
|
|
234
|
-
setIntersectionRef
|
|
235
|
-
]);
|
|
236
|
-
const setRef = (0, _usemergedref.useMergedRef)(setIntersectionWithResetRef, childRef);
|
|
237
|
-
_react.default.useEffect(() => {}, [
|
|
238
|
-
as,
|
|
239
|
-
href,
|
|
240
|
-
isVisible,
|
|
241
|
-
locale,
|
|
242
|
-
prefetchEnabled,
|
|
243
|
-
router?.locale,
|
|
244
|
-
router
|
|
245
|
-
]);
|
|
246
|
-
const childProps = {
|
|
247
|
-
ref: setRef,
|
|
248
|
-
onClick(e) {
|
|
249
|
-
if (!e) throw Object.defineProperty(/* @__PURE__ */ new Error(`Component rendered inside next/link has to pass click event to "onClick" prop.`), "__NEXT_ERROR_CODE", {
|
|
250
|
-
value: "E312",
|
|
251
|
-
enumerable: false,
|
|
252
|
-
configurable: true
|
|
253
|
-
});
|
|
254
|
-
if (!legacyBehavior && typeof onClick === "function") onClick(e);
|
|
255
|
-
if (legacyBehavior && child.props && typeof child.props.onClick === "function") child.props.onClick(e);
|
|
256
|
-
if (!router) return;
|
|
257
|
-
if (e.defaultPrevented) return;
|
|
258
|
-
linkClicked(e, router, href, as, replace, shallow, scroll, locale, onNavigate);
|
|
259
|
-
},
|
|
260
|
-
onMouseEnter(e) {
|
|
261
|
-
if (!legacyBehavior && typeof onMouseEnterProp === "function") onMouseEnterProp(e);
|
|
262
|
-
if (legacyBehavior && child.props && typeof child.props.onMouseEnter === "function") child.props.onMouseEnter(e);
|
|
263
|
-
if (!router) return;
|
|
264
|
-
prefetch(router, href, as, {
|
|
265
|
-
locale,
|
|
266
|
-
priority: true,
|
|
267
|
-
bypassPrefetchedCheck: true
|
|
268
|
-
});
|
|
269
|
-
},
|
|
270
|
-
onTouchStart: process.env.__NEXT_LINK_NO_TOUCH_START ? void 0 : function onTouchStart(e) {
|
|
271
|
-
if (!legacyBehavior && typeof onTouchStartProp === "function") onTouchStartProp(e);
|
|
272
|
-
if (legacyBehavior && child.props && typeof child.props.onTouchStart === "function") child.props.onTouchStart(e);
|
|
273
|
-
if (!router) return;
|
|
274
|
-
prefetch(router, href, as, {
|
|
275
|
-
locale,
|
|
276
|
-
priority: true,
|
|
277
|
-
bypassPrefetchedCheck: true
|
|
278
|
-
});
|
|
279
|
-
}
|
|
280
|
-
};
|
|
281
|
-
if ((0, _utils.isAbsoluteUrl)(as)) childProps.href = as;
|
|
282
|
-
else if (!legacyBehavior || passHref || child.type === "a" && !("href" in child.props)) {
|
|
283
|
-
const curLocale = typeof locale !== "undefined" ? locale : router?.locale;
|
|
284
|
-
childProps.href = router?.isLocaleDomain && (0, _getdomainlocale.getDomainLocale)(as, curLocale, router?.locales, router?.domainLocales) || (0, _addbasepath.addBasePath)((0, _addlocale.addLocale)(as, curLocale, router?.defaultLocale));
|
|
285
|
-
}
|
|
286
|
-
if (legacyBehavior) {
|
|
287
|
-
(0, _erroronce.errorOnce)("`legacyBehavior` is deprecated and will be removed in a future release. A codemod is available to upgrade your components:\n\nnpx @next/codemod@latest new-link .\n\nLearn more: https://nextjs.org/docs/app/building-your-application/upgrading/codemods#remove-a-tags-from-link-components");
|
|
288
|
-
return /* @__PURE__ */ _react.default.cloneElement(child, childProps);
|
|
289
|
-
}
|
|
290
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)("a", {
|
|
291
|
-
...restProps,
|
|
292
|
-
...childProps,
|
|
293
|
-
children
|
|
294
|
-
});
|
|
295
|
-
});
|
|
296
|
-
const LinkStatusContext = /* @__PURE__ */ (0, _react.createContext)({ pending: false });
|
|
297
|
-
const useLinkStatus = () => {
|
|
298
|
-
return (0, _react.useContext)(LinkStatusContext);
|
|
299
|
-
};
|
|
300
|
-
const _default = Link;
|
|
301
|
-
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
302
|
-
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
303
|
-
Object.assign(exports.default, exports);
|
|
304
|
-
module.exports = exports.default;
|
|
305
|
-
}
|
|
306
|
-
}));
|
|
307
|
-
|
|
308
|
-
//#endregion
|
|
309
|
-
export default require_link();
|
|
310
|
-
|
|
311
|
-
export { require_link };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_normalize_locale_path as require_normalize_locale_path$1 } from "../shared/lib/i18n/normalize-locale-path.js";
|
|
3
|
-
|
|
4
|
-
//#region ../../../node_modules/next/dist/client/normalize-locale-path.js
|
|
5
|
-
var require_normalize_locale_path = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
Object.defineProperty(exports, "normalizeLocalePath", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function() {
|
|
10
|
-
return normalizeLocalePath;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
const normalizeLocalePath = (pathname, locales) => {
|
|
14
|
-
if (process.env.__NEXT_I18N_SUPPORT) return require_normalize_locale_path$1().normalizeLocalePath(pathname, locales);
|
|
15
|
-
return {
|
|
16
|
-
pathname,
|
|
17
|
-
detectedLocale: void 0
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
21
|
-
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
22
|
-
Object.assign(exports.default, exports);
|
|
23
|
-
module.exports = exports.default;
|
|
24
|
-
}
|
|
25
|
-
}));
|
|
26
|
-
|
|
27
|
-
//#endregion
|
|
28
|
-
export default require_normalize_locale_path();
|
|
29
|
-
|
|
30
|
-
export { require_normalize_locale_path };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_remove_trailing_slash } from "../shared/lib/router/utils/remove-trailing-slash.js";
|
|
3
|
-
import { require_parse_path } from "../shared/lib/router/utils/parse-path.js";
|
|
4
|
-
|
|
5
|
-
//#region ../../../node_modules/next/dist/client/normalize-trailing-slash.js
|
|
6
|
-
var require_normalize_trailing_slash = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
Object.defineProperty(exports, "normalizePathTrailingSlash", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function() {
|
|
11
|
-
return normalizePathTrailingSlash;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
const _removetrailingslash = require_remove_trailing_slash();
|
|
15
|
-
const _parsepath = require_parse_path();
|
|
16
|
-
const normalizePathTrailingSlash = (path) => {
|
|
17
|
-
if (!path.startsWith("/") || process.env.__NEXT_MANUAL_TRAILING_SLASH) return path;
|
|
18
|
-
const { pathname, query, hash } = (0, _parsepath.parsePath)(path);
|
|
19
|
-
if (process.env.__NEXT_TRAILING_SLASH) if (/\.[^/]+\/?$/.test(pathname)) return `${(0, _removetrailingslash.removeTrailingSlash)(pathname)}${query}${hash}`;
|
|
20
|
-
else if (pathname.endsWith("/")) return `${pathname}${query}${hash}`;
|
|
21
|
-
else return `${pathname}/${query}${hash}`;
|
|
22
|
-
return `${(0, _removetrailingslash.removeTrailingSlash)(pathname)}${query}${hash}`;
|
|
23
|
-
};
|
|
24
|
-
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
25
|
-
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
26
|
-
Object.assign(exports.default, exports);
|
|
27
|
-
module.exports = exports.default;
|
|
28
|
-
}
|
|
29
|
-
}));
|
|
30
|
-
|
|
31
|
-
//#endregion
|
|
32
|
-
export default require_normalize_trailing_slash();
|
|
33
|
-
|
|
34
|
-
export { require_normalize_trailing_slash };
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { __commonJSMin } from "../../../../_virtual/rolldown_runtime.js";
|
|
2
|
-
|
|
3
|
-
//#region ../../../node_modules/next/dist/client/request-idle-callback.js
|
|
4
|
-
var require_request_idle_callback = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
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
|
-
cancelIdleCallback: function() {
|
|
14
|
-
return cancelIdleCallback;
|
|
15
|
-
},
|
|
16
|
-
requestIdleCallback: function() {
|
|
17
|
-
return requestIdleCallback;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
const requestIdleCallback = typeof self !== "undefined" && self.requestIdleCallback && self.requestIdleCallback.bind(window) || function(cb) {
|
|
21
|
-
let start = Date.now();
|
|
22
|
-
return self.setTimeout(function() {
|
|
23
|
-
cb({
|
|
24
|
-
didTimeout: false,
|
|
25
|
-
timeRemaining: function() {
|
|
26
|
-
return Math.max(0, 50 - (Date.now() - start));
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
}, 1);
|
|
30
|
-
};
|
|
31
|
-
const cancelIdleCallback = typeof self !== "undefined" && self.cancelIdleCallback && self.cancelIdleCallback.bind(window) || function(id) {
|
|
32
|
-
return clearTimeout(id);
|
|
33
|
-
};
|
|
34
|
-
if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
|
|
35
|
-
Object.defineProperty(exports.default, "__esModule", { value: true });
|
|
36
|
-
Object.assign(exports.default, exports);
|
|
37
|
-
module.exports = exports.default;
|
|
38
|
-
}
|
|
39
|
-
}));
|
|
40
|
-
|
|
41
|
-
//#endregion
|
|
42
|
-
export default require_request_idle_callback();
|
|
43
|
-
|
|
44
|
-
export { require_request_idle_callback };
|