@lssm/lib.ui-kit 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.
Files changed (244) hide show
  1. package/README.md +5 -0
  2. package/dist/-core/src/utils.js +10 -0
  3. package/dist/_virtual/rolldown_runtime.js +33 -0
  4. package/dist/node_modules/@hookform/resolvers/dist/resolvers.js +34 -0
  5. package/dist/node_modules/@hookform/resolvers/zod/dist/zod.js +118 -0
  6. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +14 -0
  7. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +35 -0
  8. package/dist/node_modules/lucide-react/dist/esm/Icon.js +25 -0
  9. package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +24 -0
  10. package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +21 -0
  11. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +17 -0
  12. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js +17 -0
  13. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +17 -0
  14. package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +17 -0
  15. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-left.js +20 -0
  16. package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-right.js +20 -0
  17. package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis.js +33 -0
  18. package/dist/node_modules/lucide-react/dist/esm/icons/funnel.js +17 -0
  19. package/dist/node_modules/lucide-react/dist/esm/icons/house.js +20 -0
  20. package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.js +17 -0
  21. package/dist/node_modules/lucide-react/dist/esm/icons/plus.js +20 -0
  22. package/dist/node_modules/lucide-react/dist/esm/icons/refresh-ccw.js +31 -0
  23. package/dist/node_modules/lucide-react/dist/esm/icons/refresh-cw.js +31 -0
  24. package/dist/node_modules/lucide-react/dist/esm/icons/search.js +22 -0
  25. package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.js +27 -0
  26. package/dist/node_modules/lucide-react/dist/esm/icons/x.js +20 -0
  27. package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +22 -0
  28. package/dist/node_modules/next/dist/client/add-base-path.js +30 -0
  29. package/dist/node_modules/next/dist/client/add-locale.js +29 -0
  30. package/dist/node_modules/next/dist/client/detect-domain-locale.js +26 -0
  31. package/dist/node_modules/next/dist/client/get-domain-locale.js +41 -0
  32. package/dist/node_modules/next/dist/client/has-base-path.js +28 -0
  33. package/dist/node_modules/next/dist/client/link.js +311 -0
  34. package/dist/node_modules/next/dist/client/normalize-locale-path.js +30 -0
  35. package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +34 -0
  36. package/dist/node_modules/next/dist/client/request-idle-callback.js +44 -0
  37. package/dist/node_modules/next/dist/client/resolve-href.js +86 -0
  38. package/dist/node_modules/next/dist/client/use-intersection.js +104 -0
  39. package/dist/node_modules/next/dist/client/use-merged-ref.js +56 -0
  40. package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +372 -0
  41. package/dist/node_modules/next/dist/lib/constants.js +316 -0
  42. package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +69 -0
  43. package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +23 -0
  44. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +22 -0
  45. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +42 -0
  46. package/dist/node_modules/next/dist/shared/lib/invariant-error.js +23 -0
  47. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +23 -0
  48. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +30 -0
  49. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +24 -0
  50. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +41 -0
  51. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +78 -0
  52. package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +151 -0
  53. package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +77 -0
  54. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +32 -0
  55. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +92 -0
  56. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +41 -0
  57. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +26 -0
  58. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +31 -0
  59. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +24 -0
  60. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +33 -0
  61. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +36 -0
  62. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +24 -0
  63. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +56 -0
  64. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +26 -0
  65. package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +94 -0
  66. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +46 -0
  67. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +203 -0
  68. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +167 -0
  69. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +20 -0
  70. package/dist/node_modules/next/dist/shared/lib/segment.js +80 -0
  71. package/dist/node_modules/next/dist/shared/lib/utils/error-once.js +25 -0
  72. package/dist/node_modules/next/dist/shared/lib/utils.js +172 -0
  73. package/dist/node_modules/next/link.js +12 -0
  74. package/dist/node_modules/react-hook-form/dist/index.esm.js +2074 -0
  75. package/dist/node_modules/zod/v4/classic/errors.js +29 -0
  76. package/dist/node_modules/zod/v4/classic/iso.js +37 -0
  77. package/dist/node_modules/zod/v4/classic/parse.js +19 -0
  78. package/dist/node_modules/zod/v4/classic/schemas.js +418 -0
  79. package/dist/node_modules/zod/v4/core/api.js +404 -0
  80. package/dist/node_modules/zod/v4/core/checks.js +225 -0
  81. package/dist/node_modules/zod/v4/core/core.js +61 -0
  82. package/dist/node_modules/zod/v4/core/errors.js +62 -0
  83. package/dist/node_modules/zod/v4/core/json-schema-processors.js +148 -0
  84. package/dist/node_modules/zod/v4/core/parse.js +109 -0
  85. package/dist/node_modules/zod/v4/core/regexes.js +57 -0
  86. package/dist/node_modules/zod/v4/core/registries.js +52 -0
  87. package/dist/node_modules/zod/v4/core/schemas.js +744 -0
  88. package/dist/node_modules/zod/v4/core/to-json-schema.js +260 -0
  89. package/dist/node_modules/zod/v4/core/util.js +155 -0
  90. package/dist/node_modules/zod/v4/core/versions.js +9 -0
  91. package/dist/tsconfig.tsbuildinfo +1 -1
  92. package/dist/ui/accordion.js +1 -1
  93. package/dist/ui/alert-dialog.js +1 -1
  94. package/dist/ui/alert.js +1 -1
  95. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js +3 -3
  96. package/dist/ui/atoms/Pagination/Pagination.js +4 -1
  97. package/dist/ui/atoms/SearchInput/SearchInput.js +2 -1
  98. package/dist/ui/avatar.js +1 -1
  99. package/dist/ui/badge.js +1 -1
  100. package/dist/ui/breadcrumb.js +4 -3
  101. package/dist/ui/button.js +1 -1
  102. package/dist/ui/card.js +1 -1
  103. package/dist/ui/checkbox.js +1 -1
  104. package/dist/ui/context-menu.js +1 -1
  105. package/dist/ui/date-picker.js +1 -1
  106. package/dist/ui/date-range-picker.js +1 -1
  107. package/dist/ui/dialog.js +1 -1
  108. package/dist/ui/dropdown-menu.js +1 -1
  109. package/dist/ui/empty-state.js +1 -1
  110. package/dist/ui/empty.js +1 -1
  111. package/dist/ui/fab.js +1 -1
  112. package/dist/ui/field.js +1 -1
  113. package/dist/ui/form.js +1 -1
  114. package/dist/ui/hover-card.js +1 -1
  115. package/dist/ui/input.js +1 -1
  116. package/dist/ui/label.js +1 -1
  117. package/dist/ui/link.js +1 -1
  118. package/dist/ui/marketing/Hero.js +1 -1
  119. package/dist/ui/marketing/PricingTable.js +1 -1
  120. package/dist/ui/menubar.js +1 -1
  121. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +4 -2
  122. package/dist/ui/nativewind-env.d.js +0 -0
  123. package/dist/ui/navigation-menu.js +1 -1
  124. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +5 -3
  125. package/dist/ui/organisms/ListPage/ListPage.js +12 -7
  126. package/dist/ui/page-header.js +1 -1
  127. package/dist/ui/popover.js +1 -1
  128. package/dist/ui/progress.js +1 -1
  129. package/dist/ui/radio-group.js +1 -1
  130. package/dist/ui/select.js +1 -1
  131. package/dist/ui/separator.js +1 -1
  132. package/dist/ui/skeleton.js +1 -1
  133. package/dist/ui/stack.js +1 -1
  134. package/dist/ui/stepper.js +1 -1
  135. package/dist/ui/switch.js +1 -1
  136. package/dist/ui/table.js +1 -1
  137. package/dist/ui/tabs.js +1 -1
  138. package/dist/ui/text.js +1 -1
  139. package/dist/ui/textarea.js +1 -1
  140. package/dist/ui/time-picker.js +1 -1
  141. package/dist/ui/toggle-group.js +1 -1
  142. package/dist/ui/toggle.js +1 -1
  143. package/dist/ui/tooltip.js +1 -1
  144. package/dist/ui/typography.js +1 -1
  145. package/package.json +204 -114
  146. package/dist/index.d.ts +0 -4
  147. package/dist/ui/accordion.d.ts +0 -35
  148. package/dist/ui/alert-dialog.d.ts +0 -71
  149. package/dist/ui/alert.d.ts +0 -36
  150. package/dist/ui/aspect-ratio.d.ts +0 -11
  151. package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +0 -7
  152. package/dist/ui/atoms/FilterSelect/index.d.ts +0 -3
  153. package/dist/ui/atoms/FilterSelect/types.d.ts +0 -18
  154. package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +0 -22
  155. package/dist/ui/atoms/LoadingSpinner/index.d.ts +0 -2
  156. package/dist/ui/atoms/Pagination/Pagination.d.ts +0 -7
  157. package/dist/ui/atoms/Pagination/index.d.ts +0 -3
  158. package/dist/ui/atoms/Pagination/types.d.ts +0 -15
  159. package/dist/ui/atoms/SearchInput/SearchInput.d.ts +0 -7
  160. package/dist/ui/atoms/SearchInput/index.d.ts +0 -3
  161. package/dist/ui/atoms/SearchInput/types.d.ts +0 -12
  162. package/dist/ui/avatar.d.ts +0 -27
  163. package/dist/ui/badge.d.ts +0 -21
  164. package/dist/ui/breadcrumb.d.ts +0 -38
  165. package/dist/ui/button.d.ts +0 -25
  166. package/dist/ui/card.d.ts +0 -43
  167. package/dist/ui/carousel.d.ts +0 -4
  168. package/dist/ui/checkbox.d.ts +0 -16
  169. package/dist/ui/collapsible.d.ts +0 -24
  170. package/dist/ui/command.d.ts +0 -4
  171. package/dist/ui/context-menu.d.ts +0 -109
  172. package/dist/ui/date-picker.d.ts +0 -23
  173. package/dist/ui/date-range-picker.d.ts +0 -30
  174. package/dist/ui/datetime-picker.d.ts +0 -27
  175. package/dist/ui/dialog.d.ts +0 -68
  176. package/dist/ui/dropdown-menu.d.ts +0 -111
  177. package/dist/ui/empty-state.d.ts +0 -28
  178. package/dist/ui/empty.d.ts +0 -36
  179. package/dist/ui/fab.d.ts +0 -35
  180. package/dist/ui/field.d.ts +0 -66
  181. package/dist/ui/form.d.ts +0 -49
  182. package/dist/ui/hover-card.d.ts +0 -29
  183. package/dist/ui/icons/Check.d.ts +0 -2
  184. package/dist/ui/icons/ChevronDown.d.ts +0 -2
  185. package/dist/ui/icons/ChevronRight.d.ts +0 -2
  186. package/dist/ui/icons/ChevronUp.d.ts +0 -2
  187. package/dist/ui/icons/CircleUser.d.ts +0 -2
  188. package/dist/ui/icons/Info.d.ts +0 -2
  189. package/dist/ui/icons/Key.d.ts +0 -2
  190. package/dist/ui/icons/MoonStar.d.ts +0 -2
  191. package/dist/ui/icons/Sun.d.ts +0 -2
  192. package/dist/ui/icons/X.d.ts +0 -2
  193. package/dist/ui/icons/iconWithClassName.d.ts +0 -6
  194. package/dist/ui/input.d.ts +0 -14
  195. package/dist/ui/label.d.ts +0 -15
  196. package/dist/ui/link.d.ts +0 -13
  197. package/dist/ui/loading-button.d.ts +0 -19
  198. package/dist/ui/loading-overlay.d.ts +0 -15
  199. package/dist/ui/loading-screen.d.ts +0 -13
  200. package/dist/ui/marketing/FeatureGrid.d.ts +0 -20
  201. package/dist/ui/marketing/Hero.d.ts +0 -27
  202. package/dist/ui/marketing/PricingTable.d.ts +0 -24
  203. package/dist/ui/marketing/index.d.ts +0 -4
  204. package/dist/ui/menubar.d.ts +0 -114
  205. package/dist/ui/molecules/Autocomplete/index.d.ts +0 -4
  206. package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +0 -7
  207. package/dist/ui/molecules/SearchAndFilter/index.d.ts +0 -3
  208. package/dist/ui/molecules/SearchAndFilter/types.d.ts +0 -24
  209. package/dist/ui/molecules/SkeletonList.d.ts +0 -15
  210. package/dist/ui/nativewind-env.d.ts +0 -1
  211. package/dist/ui/navigation-menu.d.ts +0 -67
  212. package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +0 -29
  213. package/dist/ui/organisms/ErrorBoundary/index.d.ts +0 -2
  214. package/dist/ui/organisms/ListPage/ListPage.d.ts +0 -28
  215. package/dist/ui/organisms/ListPage/index.d.ts +0 -3
  216. package/dist/ui/organisms/ListPage/types.d.ts +0 -41
  217. package/dist/ui/page-header.d.ts +0 -26
  218. package/dist/ui/password-strength.d.ts +0 -20
  219. package/dist/ui/popover.d.ts +0 -29
  220. package/dist/ui/progress.d.ts +0 -16
  221. package/dist/ui/radio-group.d.ts +0 -14
  222. package/dist/ui/select.d.ts +0 -83
  223. package/dist/ui/separator.d.ts +0 -15
  224. package/dist/ui/sheet.d.ts +0 -4
  225. package/dist/ui/sidebar.d.ts +0 -4
  226. package/dist/ui/skeleton.d.ts +0 -11
  227. package/dist/ui/stack.d.ts +0 -76
  228. package/dist/ui/stepper.d.ts +0 -22
  229. package/dist/ui/switch.d.ts +0 -14
  230. package/dist/ui/table.d.ts +0 -50
  231. package/dist/ui/tabs.d.ts +0 -32
  232. package/dist/ui/text.d.ts +0 -20
  233. package/dist/ui/textarea.d.ts +0 -9
  234. package/dist/ui/time-picker.d.ts +0 -21
  235. package/dist/ui/toggle-group.d.ts +0 -35
  236. package/dist/ui/toggle.d.ts +0 -33
  237. package/dist/ui/tooltip.d.ts +0 -31
  238. package/dist/ui/typography.d.ts +0 -64
  239. package/dist/ui/useColorScheme.d.ts +0 -11
  240. package/dist/ui/useListState.d.ts +0 -33
  241. package/dist/ui/usecases/UseCaseCard.d.ts +0 -18
  242. package/dist/ui/usecases/UserStoryCard.d.ts +0 -14
  243. package/dist/ui/usecases/index.d.ts +0 -3
  244. package/dist/ui/utils.d.ts +0 -6
@@ -0,0 +1,86 @@
1
+ import { __commonJSMin } from "../../../../_virtual/rolldown_runtime.js";
2
+ import { require_querystring } from "../shared/lib/router/utils/querystring.js";
3
+ import { require_format_url } from "../shared/lib/router/utils/format-url.js";
4
+ import { require_omit } from "../shared/lib/router/utils/omit.js";
5
+ import { require_utils } from "../shared/lib/utils.js";
6
+ import { require_normalize_trailing_slash } from "./normalize-trailing-slash.js";
7
+ import { require_is_local_url } from "../shared/lib/router/utils/is-local-url.js";
8
+ import { require_utils as require_utils$1 } from "../shared/lib/router/utils/index.js";
9
+ import { require_route_matcher } from "../shared/lib/router/utils/route-matcher.js";
10
+ import { require_route_regex } from "../shared/lib/router/utils/route-regex.js";
11
+ import { require_interpolate_as } from "../shared/lib/router/utils/interpolate-as.js";
12
+
13
+ //#region ../../../node_modules/next/dist/client/resolve-href.js
14
+ var require_resolve_href = /* @__PURE__ */ __commonJSMin(((exports, module) => {
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ Object.defineProperty(exports, "resolveHref", {
17
+ enumerable: true,
18
+ get: function() {
19
+ return resolveHref;
20
+ }
21
+ });
22
+ const _querystring = require_querystring();
23
+ const _formaturl = require_format_url();
24
+ const _omit = require_omit();
25
+ const _utils = require_utils();
26
+ const _normalizetrailingslash = require_normalize_trailing_slash();
27
+ const _islocalurl = require_is_local_url();
28
+ const _utils1 = require_utils$1();
29
+ const _interpolateas = require_interpolate_as();
30
+ const _routeregex = require_route_regex();
31
+ const _routematcher = require_route_matcher();
32
+ function resolveHref(router, href, resolveAs) {
33
+ let base;
34
+ let urlAsString = typeof href === "string" ? href : (0, _formaturl.formatWithValidation)(href);
35
+ const urlProtoMatch = urlAsString.match(/^[a-z][a-z0-9+.-]*:\/\//i);
36
+ const urlAsStringNoProto = urlProtoMatch ? urlAsString.slice(urlProtoMatch[0].length) : urlAsString;
37
+ if ((urlAsStringNoProto.split("?", 1)[0] || "").match(/(\/\/|\\)/)) {
38
+ console.error(`Invalid href '${urlAsString}' passed to next/router in page: '${router.pathname}'. Repeated forward-slashes (//) or backslashes \\ are not valid in the href.`);
39
+ const normalizedUrl = (0, _utils.normalizeRepeatedSlashes)(urlAsStringNoProto);
40
+ urlAsString = (urlProtoMatch ? urlProtoMatch[0] : "") + normalizedUrl;
41
+ }
42
+ if (!(0, _islocalurl.isLocalURL)(urlAsString)) return resolveAs ? [urlAsString] : urlAsString;
43
+ try {
44
+ let baseBase = urlAsString.startsWith("#") ? router.asPath : router.pathname;
45
+ if (urlAsString.startsWith("?")) {
46
+ baseBase = router.asPath;
47
+ if ((0, _utils1.isDynamicRoute)(router.pathname)) {
48
+ baseBase = router.pathname;
49
+ const routeRegex = (0, _routeregex.getRouteRegex)(router.pathname);
50
+ if (!(0, _routematcher.getRouteMatcher)(routeRegex)(router.asPath)) baseBase = router.asPath;
51
+ }
52
+ }
53
+ base = new URL(baseBase, "http://n");
54
+ } catch (_) {
55
+ base = new URL("/", "http://n");
56
+ }
57
+ try {
58
+ const finalUrl = new URL(urlAsString, base);
59
+ finalUrl.pathname = (0, _normalizetrailingslash.normalizePathTrailingSlash)(finalUrl.pathname);
60
+ let interpolatedAs = "";
61
+ if ((0, _utils1.isDynamicRoute)(finalUrl.pathname) && finalUrl.searchParams && resolveAs) {
62
+ const query = (0, _querystring.searchParamsToUrlQuery)(finalUrl.searchParams);
63
+ const { result, params } = (0, _interpolateas.interpolateAs)(finalUrl.pathname, finalUrl.pathname, query);
64
+ if (result) interpolatedAs = (0, _formaturl.formatWithValidation)({
65
+ pathname: result,
66
+ hash: finalUrl.hash,
67
+ query: (0, _omit.omit)(query, params)
68
+ });
69
+ }
70
+ const resolvedHref = finalUrl.origin === base.origin ? finalUrl.href.slice(finalUrl.origin.length) : finalUrl.href;
71
+ return resolveAs ? [resolvedHref, interpolatedAs || resolvedHref] : resolvedHref;
72
+ } catch (_) {
73
+ return resolveAs ? [urlAsString] : urlAsString;
74
+ }
75
+ }
76
+ if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
77
+ Object.defineProperty(exports.default, "__esModule", { value: true });
78
+ Object.assign(exports.default, exports);
79
+ module.exports = exports.default;
80
+ }
81
+ }));
82
+
83
+ //#endregion
84
+ export default require_resolve_href();
85
+
86
+ export { require_resolve_href };
@@ -0,0 +1,104 @@
1
+ import { __commonJSMin, __require } from "../../../../_virtual/rolldown_runtime.js";
2
+ import { require_request_idle_callback } from "./request-idle-callback.js";
3
+
4
+ //#region ../../../node_modules/next/dist/client/use-intersection.js
5
+ var require_use_intersection = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ Object.defineProperty(exports, "useIntersection", {
8
+ enumerable: true,
9
+ get: function() {
10
+ return useIntersection;
11
+ }
12
+ });
13
+ const _react = __require("react");
14
+ const _requestidlecallback = require_request_idle_callback();
15
+ const hasIntersectionObserver = typeof IntersectionObserver === "function";
16
+ const observers = /* @__PURE__ */ new Map();
17
+ const idList = [];
18
+ function createObserver(options) {
19
+ const id = {
20
+ root: options.root || null,
21
+ margin: options.rootMargin || ""
22
+ };
23
+ const existing = idList.find((obj) => obj.root === id.root && obj.margin === id.margin);
24
+ let instance;
25
+ if (existing) {
26
+ instance = observers.get(existing);
27
+ if (instance) return instance;
28
+ }
29
+ const elements = /* @__PURE__ */ new Map();
30
+ instance = {
31
+ id,
32
+ observer: new IntersectionObserver((entries) => {
33
+ entries.forEach((entry) => {
34
+ const callback = elements.get(entry.target);
35
+ const isVisible = entry.isIntersecting || entry.intersectionRatio > 0;
36
+ if (callback && isVisible) callback(isVisible);
37
+ });
38
+ }, options),
39
+ elements
40
+ };
41
+ idList.push(id);
42
+ observers.set(id, instance);
43
+ return instance;
44
+ }
45
+ function observe(element, callback, options) {
46
+ const { id, observer, elements } = createObserver(options);
47
+ elements.set(element, callback);
48
+ observer.observe(element);
49
+ return function unobserve() {
50
+ elements.delete(element);
51
+ observer.unobserve(element);
52
+ if (elements.size === 0) {
53
+ observer.disconnect();
54
+ observers.delete(id);
55
+ const index = idList.findIndex((obj) => obj.root === id.root && obj.margin === id.margin);
56
+ if (index > -1) idList.splice(index, 1);
57
+ }
58
+ };
59
+ }
60
+ function useIntersection({ rootRef, rootMargin, disabled }) {
61
+ const isDisabled = disabled || !hasIntersectionObserver;
62
+ const [visible, setVisible] = (0, _react.useState)(false);
63
+ const elementRef = (0, _react.useRef)(null);
64
+ const setElement = (0, _react.useCallback)((element) => {
65
+ elementRef.current = element;
66
+ }, []);
67
+ (0, _react.useEffect)(() => {
68
+ if (hasIntersectionObserver) {
69
+ if (isDisabled || visible) return;
70
+ const element = elementRef.current;
71
+ if (element && element.tagName) return observe(element, (isVisible) => isVisible && setVisible(isVisible), {
72
+ root: rootRef?.current,
73
+ rootMargin
74
+ });
75
+ } else if (!visible) {
76
+ const idleCallback = (0, _requestidlecallback.requestIdleCallback)(() => setVisible(true));
77
+ return () => (0, _requestidlecallback.cancelIdleCallback)(idleCallback);
78
+ }
79
+ }, [
80
+ isDisabled,
81
+ rootMargin,
82
+ rootRef,
83
+ visible,
84
+ elementRef.current
85
+ ]);
86
+ return [
87
+ setElement,
88
+ visible,
89
+ (0, _react.useCallback)(() => {
90
+ setVisible(false);
91
+ }, [])
92
+ ];
93
+ }
94
+ if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
95
+ Object.defineProperty(exports.default, "__esModule", { value: true });
96
+ Object.assign(exports.default, exports);
97
+ module.exports = exports.default;
98
+ }
99
+ }));
100
+
101
+ //#endregion
102
+ export default require_use_intersection();
103
+
104
+ export { require_use_intersection };
@@ -0,0 +1,56 @@
1
+ import { __commonJSMin, __require } from "../../../../_virtual/rolldown_runtime.js";
2
+
3
+ //#region ../../../node_modules/next/dist/client/use-merged-ref.js
4
+ var require_use_merged_ref = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ Object.defineProperty(exports, "useMergedRef", {
7
+ enumerable: true,
8
+ get: function() {
9
+ return useMergedRef;
10
+ }
11
+ });
12
+ const _react = __require("react");
13
+ function useMergedRef(refA, refB) {
14
+ const cleanupA = (0, _react.useRef)(null);
15
+ const cleanupB = (0, _react.useRef)(null);
16
+ return (0, _react.useCallback)((current) => {
17
+ if (current === null) {
18
+ const cleanupFnA = cleanupA.current;
19
+ if (cleanupFnA) {
20
+ cleanupA.current = null;
21
+ cleanupFnA();
22
+ }
23
+ const cleanupFnB = cleanupB.current;
24
+ if (cleanupFnB) {
25
+ cleanupB.current = null;
26
+ cleanupFnB();
27
+ }
28
+ } else {
29
+ if (refA) cleanupA.current = applyRef(refA, current);
30
+ if (refB) cleanupB.current = applyRef(refB, current);
31
+ }
32
+ }, [refA, refB]);
33
+ }
34
+ function applyRef(refA, current) {
35
+ if (typeof refA === "function") {
36
+ const cleanup = refA(current);
37
+ if (typeof cleanup === "function") return cleanup;
38
+ else return () => refA(null);
39
+ } else {
40
+ refA.current = current;
41
+ return () => {
42
+ refA.current = null;
43
+ };
44
+ }
45
+ }
46
+ if ((typeof exports.default === "function" || typeof exports.default === "object" && exports.default !== null) && typeof exports.default.__esModule === "undefined") {
47
+ Object.defineProperty(exports.default, "__esModule", { value: true });
48
+ Object.assign(exports.default, exports);
49
+ module.exports = exports.default;
50
+ }
51
+ }));
52
+
53
+ //#endregion
54
+ export default require_use_merged_ref();
55
+
56
+ export { require_use_merged_ref };
@@ -0,0 +1,372 @@
1
+ import { __commonJSMin } from "../../../../../_virtual/rolldown_runtime.js";
2
+
3
+ //#region ../../../node_modules/next/dist/compiled/path-to-regexp/index.js
4
+ var require_path_to_regexp = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5
+ (() => {
6
+ "use strict";
7
+ if (typeof __nccwpck_require__ !== "undefined") __nccwpck_require__.ab = __dirname + "/";
8
+ var e = {};
9
+ (() => {
10
+ var n = e;
11
+ Object.defineProperty(n, "__esModule", { value: true });
12
+ n.pathToRegexp = n.tokensToRegexp = n.regexpToFunction = n.match = n.tokensToFunction = n.compile = n.parse = void 0;
13
+ function lexer(e$1) {
14
+ var n$1 = [];
15
+ var r = 0;
16
+ while (r < e$1.length) {
17
+ var t = e$1[r];
18
+ if (t === "*" || t === "+" || t === "?") {
19
+ n$1.push({
20
+ type: "MODIFIER",
21
+ index: r,
22
+ value: e$1[r++]
23
+ });
24
+ continue;
25
+ }
26
+ if (t === "\\") {
27
+ n$1.push({
28
+ type: "ESCAPED_CHAR",
29
+ index: r++,
30
+ value: e$1[r++]
31
+ });
32
+ continue;
33
+ }
34
+ if (t === "{") {
35
+ n$1.push({
36
+ type: "OPEN",
37
+ index: r,
38
+ value: e$1[r++]
39
+ });
40
+ continue;
41
+ }
42
+ if (t === "}") {
43
+ n$1.push({
44
+ type: "CLOSE",
45
+ index: r,
46
+ value: e$1[r++]
47
+ });
48
+ continue;
49
+ }
50
+ if (t === ":") {
51
+ var a = "";
52
+ var i = r + 1;
53
+ while (i < e$1.length) {
54
+ var o = e$1.charCodeAt(i);
55
+ if (o >= 48 && o <= 57 || o >= 65 && o <= 90 || o >= 97 && o <= 122 || o === 95) {
56
+ a += e$1[i++];
57
+ continue;
58
+ }
59
+ break;
60
+ }
61
+ if (!a) throw new TypeError("Missing parameter name at ".concat(r));
62
+ n$1.push({
63
+ type: "NAME",
64
+ index: r,
65
+ value: a
66
+ });
67
+ r = i;
68
+ continue;
69
+ }
70
+ if (t === "(") {
71
+ var c = 1;
72
+ var f = "";
73
+ var i = r + 1;
74
+ if (e$1[i] === "?") throw new TypeError("Pattern cannot start with \"?\" at ".concat(i));
75
+ while (i < e$1.length) {
76
+ if (e$1[i] === "\\") {
77
+ f += e$1[i++] + e$1[i++];
78
+ continue;
79
+ }
80
+ if (e$1[i] === ")") {
81
+ c--;
82
+ if (c === 0) {
83
+ i++;
84
+ break;
85
+ }
86
+ } else if (e$1[i] === "(") {
87
+ c++;
88
+ if (e$1[i + 1] !== "?") throw new TypeError("Capturing groups are not allowed at ".concat(i));
89
+ }
90
+ f += e$1[i++];
91
+ }
92
+ if (c) throw new TypeError("Unbalanced pattern at ".concat(r));
93
+ if (!f) throw new TypeError("Missing pattern at ".concat(r));
94
+ n$1.push({
95
+ type: "PATTERN",
96
+ index: r,
97
+ value: f
98
+ });
99
+ r = i;
100
+ continue;
101
+ }
102
+ n$1.push({
103
+ type: "CHAR",
104
+ index: r,
105
+ value: e$1[r++]
106
+ });
107
+ }
108
+ n$1.push({
109
+ type: "END",
110
+ index: r,
111
+ value: ""
112
+ });
113
+ return n$1;
114
+ }
115
+ function parse(e$1, n$1) {
116
+ if (n$1 === void 0) n$1 = {};
117
+ var r = lexer(e$1);
118
+ var t = n$1.prefixes, a = t === void 0 ? "./" : t, i = n$1.delimiter, o = i === void 0 ? "/#?" : i;
119
+ var c = [];
120
+ var f = 0;
121
+ var u = 0;
122
+ var p = "";
123
+ var tryConsume = function(e$2) {
124
+ if (u < r.length && r[u].type === e$2) return r[u++].value;
125
+ };
126
+ var mustConsume = function(e$2) {
127
+ var n$2 = tryConsume(e$2);
128
+ if (n$2 !== void 0) return n$2;
129
+ var t$1 = r[u], a$1 = t$1.type, i$1 = t$1.index;
130
+ throw new TypeError("Unexpected ".concat(a$1, " at ").concat(i$1, ", expected ").concat(e$2));
131
+ };
132
+ var consumeText = function() {
133
+ var e$2 = "";
134
+ var n$2;
135
+ while (n$2 = tryConsume("CHAR") || tryConsume("ESCAPED_CHAR")) e$2 += n$2;
136
+ return e$2;
137
+ };
138
+ var isSafe = function(e$2) {
139
+ for (var n$2 = 0, r$1 = o; n$2 < r$1.length; n$2++) {
140
+ var t$1 = r$1[n$2];
141
+ if (e$2.indexOf(t$1) > -1) return true;
142
+ }
143
+ return false;
144
+ };
145
+ var safePattern = function(e$2) {
146
+ var n$2 = c[c.length - 1];
147
+ var r$1 = e$2 || (n$2 && typeof n$2 === "string" ? n$2 : "");
148
+ if (n$2 && !r$1) throw new TypeError("Must have text between two parameters, missing text after \"".concat(n$2.name, "\""));
149
+ if (!r$1 || isSafe(r$1)) return "[^".concat(escapeString(o), "]+?");
150
+ return "(?:(?!".concat(escapeString(r$1), ")[^").concat(escapeString(o), "])+?");
151
+ };
152
+ while (u < r.length) {
153
+ var v = tryConsume("CHAR");
154
+ var s = tryConsume("NAME");
155
+ var d = tryConsume("PATTERN");
156
+ if (s || d) {
157
+ var g = v || "";
158
+ if (a.indexOf(g) === -1) {
159
+ p += g;
160
+ g = "";
161
+ }
162
+ if (p) {
163
+ c.push(p);
164
+ p = "";
165
+ }
166
+ c.push({
167
+ name: s || f++,
168
+ prefix: g,
169
+ suffix: "",
170
+ pattern: d || safePattern(g),
171
+ modifier: tryConsume("MODIFIER") || ""
172
+ });
173
+ continue;
174
+ }
175
+ var x = v || tryConsume("ESCAPED_CHAR");
176
+ if (x) {
177
+ p += x;
178
+ continue;
179
+ }
180
+ if (p) {
181
+ c.push(p);
182
+ p = "";
183
+ }
184
+ if (tryConsume("OPEN")) {
185
+ var g = consumeText();
186
+ var l = tryConsume("NAME") || "";
187
+ var m = tryConsume("PATTERN") || "";
188
+ var T = consumeText();
189
+ mustConsume("CLOSE");
190
+ c.push({
191
+ name: l || (m ? f++ : ""),
192
+ pattern: l && !m ? safePattern(g) : m,
193
+ prefix: g,
194
+ suffix: T,
195
+ modifier: tryConsume("MODIFIER") || ""
196
+ });
197
+ continue;
198
+ }
199
+ mustConsume("END");
200
+ }
201
+ return c;
202
+ }
203
+ n.parse = parse;
204
+ function compile(e$1, n$1) {
205
+ return tokensToFunction(parse(e$1, n$1), n$1);
206
+ }
207
+ n.compile = compile;
208
+ function tokensToFunction(e$1, n$1) {
209
+ if (n$1 === void 0) n$1 = {};
210
+ var r = flags(n$1);
211
+ var t = n$1.encode, a = t === void 0 ? function(e$2) {
212
+ return e$2;
213
+ } : t, i = n$1.validate, o = i === void 0 ? true : i;
214
+ var c = e$1.map((function(e$2) {
215
+ if (typeof e$2 === "object") return new RegExp("^(?:".concat(e$2.pattern, ")$"), r);
216
+ }));
217
+ return function(n$2) {
218
+ var r$1 = "";
219
+ for (var t$1 = 0; t$1 < e$1.length; t$1++) {
220
+ var i$1 = e$1[t$1];
221
+ if (typeof i$1 === "string") {
222
+ r$1 += i$1;
223
+ continue;
224
+ }
225
+ var f = n$2 ? n$2[i$1.name] : void 0;
226
+ var u = i$1.modifier === "?" || i$1.modifier === "*";
227
+ var p = i$1.modifier === "*" || i$1.modifier === "+";
228
+ if (Array.isArray(f)) {
229
+ if (!p) throw new TypeError("Expected \"".concat(i$1.name, "\" to not repeat, but got an array"));
230
+ if (f.length === 0) {
231
+ if (u) continue;
232
+ throw new TypeError("Expected \"".concat(i$1.name, "\" to not be empty"));
233
+ }
234
+ for (var v = 0; v < f.length; v++) {
235
+ var s = a(f[v], i$1);
236
+ if (o && !c[t$1].test(s)) throw new TypeError("Expected all \"".concat(i$1.name, "\" to match \"").concat(i$1.pattern, "\", but got \"").concat(s, "\""));
237
+ r$1 += i$1.prefix + s + i$1.suffix;
238
+ }
239
+ continue;
240
+ }
241
+ if (typeof f === "string" || typeof f === "number") {
242
+ var s = a(String(f), i$1);
243
+ if (o && !c[t$1].test(s)) throw new TypeError("Expected \"".concat(i$1.name, "\" to match \"").concat(i$1.pattern, "\", but got \"").concat(s, "\""));
244
+ r$1 += i$1.prefix + s + i$1.suffix;
245
+ continue;
246
+ }
247
+ if (u) continue;
248
+ var d = p ? "an array" : "a string";
249
+ throw new TypeError("Expected \"".concat(i$1.name, "\" to be ").concat(d));
250
+ }
251
+ return r$1;
252
+ };
253
+ }
254
+ n.tokensToFunction = tokensToFunction;
255
+ function match(e$1, n$1) {
256
+ var r = [];
257
+ return regexpToFunction(pathToRegexp(e$1, r, n$1), r, n$1);
258
+ }
259
+ n.match = match;
260
+ function regexpToFunction(e$1, n$1, r) {
261
+ if (r === void 0) r = {};
262
+ var t = r.decode, a = t === void 0 ? function(e$2) {
263
+ return e$2;
264
+ } : t;
265
+ return function(r$1) {
266
+ var t$1 = e$1.exec(r$1);
267
+ if (!t$1) return false;
268
+ var i = t$1[0], o = t$1.index;
269
+ var c = Object.create(null);
270
+ var _loop_1 = function(e$2) {
271
+ if (t$1[e$2] === void 0) return "continue";
272
+ var r$2 = n$1[e$2 - 1];
273
+ if (r$2.modifier === "*" || r$2.modifier === "+") c[r$2.name] = t$1[e$2].split(r$2.prefix + r$2.suffix).map((function(e$3) {
274
+ return a(e$3, r$2);
275
+ }));
276
+ else c[r$2.name] = a(t$1[e$2], r$2);
277
+ };
278
+ for (var f = 1; f < t$1.length; f++) _loop_1(f);
279
+ return {
280
+ path: i,
281
+ index: o,
282
+ params: c
283
+ };
284
+ };
285
+ }
286
+ n.regexpToFunction = regexpToFunction;
287
+ function escapeString(e$1) {
288
+ return e$1.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1");
289
+ }
290
+ function flags(e$1) {
291
+ return e$1 && e$1.sensitive ? "" : "i";
292
+ }
293
+ function regexpToRegexp(e$1, n$1) {
294
+ if (!n$1) return e$1;
295
+ var r = /\((?:\?<(.*?)>)?(?!\?)/g;
296
+ var t = 0;
297
+ var a = r.exec(e$1.source);
298
+ while (a) {
299
+ n$1.push({
300
+ name: a[1] || t++,
301
+ prefix: "",
302
+ suffix: "",
303
+ modifier: "",
304
+ pattern: ""
305
+ });
306
+ a = r.exec(e$1.source);
307
+ }
308
+ return e$1;
309
+ }
310
+ function arrayToRegexp(e$1, n$1, r) {
311
+ var t = e$1.map((function(e$2) {
312
+ return pathToRegexp(e$2, n$1, r).source;
313
+ }));
314
+ return new RegExp("(?:".concat(t.join("|"), ")"), flags(r));
315
+ }
316
+ function stringToRegexp(e$1, n$1, r) {
317
+ return tokensToRegexp(parse(e$1, r), n$1, r);
318
+ }
319
+ function tokensToRegexp(e$1, n$1, r) {
320
+ if (r === void 0) r = {};
321
+ var t = r.strict, a = t === void 0 ? false : t, i = r.start, o = i === void 0 ? true : i, c = r.end, f = c === void 0 ? true : c, u = r.encode, p = u === void 0 ? function(e$2) {
322
+ return e$2;
323
+ } : u, v = r.delimiter, s = v === void 0 ? "/#?" : v, d = r.endsWith, g = d === void 0 ? "" : d;
324
+ var x = "[".concat(escapeString(g), "]|$");
325
+ var h = "[".concat(escapeString(s), "]");
326
+ var l = o ? "^" : "";
327
+ for (var m = 0, T = e$1; m < T.length; m++) {
328
+ var E = T[m];
329
+ if (typeof E === "string") l += escapeString(p(E));
330
+ else {
331
+ var w = escapeString(p(E.prefix));
332
+ var y = escapeString(p(E.suffix));
333
+ if (E.pattern) {
334
+ if (n$1) n$1.push(E);
335
+ if (w || y) if (E.modifier === "+" || E.modifier === "*") {
336
+ var R = E.modifier === "*" ? "?" : "";
337
+ l += "(?:".concat(w, "((?:").concat(E.pattern, ")(?:").concat(y).concat(w, "(?:").concat(E.pattern, "))*)").concat(y, ")").concat(R);
338
+ } else l += "(?:".concat(w, "(").concat(E.pattern, ")").concat(y, ")").concat(E.modifier);
339
+ else {
340
+ if (E.modifier === "+" || E.modifier === "*") throw new TypeError("Can not repeat \"".concat(E.name, "\" without a prefix and suffix"));
341
+ l += "(".concat(E.pattern, ")").concat(E.modifier);
342
+ }
343
+ } else l += "(?:".concat(w).concat(y, ")").concat(E.modifier);
344
+ }
345
+ }
346
+ if (f) {
347
+ if (!a) l += "".concat(h, "?");
348
+ l += !r.endsWith ? "$" : "(?=".concat(x, ")");
349
+ } else {
350
+ var A = e$1[e$1.length - 1];
351
+ var _ = typeof A === "string" ? h.indexOf(A[A.length - 1]) > -1 : A === void 0;
352
+ if (!a) l += "(?:".concat(h, "(?=").concat(x, "))?");
353
+ if (!_) l += "(?=".concat(h, "|").concat(x, ")");
354
+ }
355
+ return new RegExp(l, flags(r));
356
+ }
357
+ n.tokensToRegexp = tokensToRegexp;
358
+ function pathToRegexp(e$1, n$1, r) {
359
+ if (e$1 instanceof RegExp) return regexpToRegexp(e$1, n$1);
360
+ if (Array.isArray(e$1)) return arrayToRegexp(e$1, n$1, r);
361
+ return stringToRegexp(e$1, n$1, r);
362
+ }
363
+ n.pathToRegexp = pathToRegexp;
364
+ })();
365
+ module.exports = e;
366
+ })();
367
+ }));
368
+
369
+ //#endregion
370
+ export default require_path_to_regexp();
371
+
372
+ export { require_path_to_regexp };