@unifiedsoftware/react-ui 1.0.1 → 1.0.2

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 (3) hide show
  1. package/dist/index.js +12 -1096
  2. package/dist/index.mjs +19 -1103
  3. package/package.json +4 -3
package/dist/index.js CHANGED
@@ -102,9 +102,9 @@ var import_jsx_runtime = require("react/jsx-runtime");
102
102
  var prefixCls = "us-";
103
103
  var Button = (0, import_react.forwardRef)(
104
104
  (_a, ref) => {
105
- var _b = _a, { as: Component2 = "button", children, className, variant = "text", color = "primary", size = "md" } = _b, rest = __objRest(_b, ["as", "children", "className", "variant", "color", "size"]);
105
+ var _b = _a, { as: Component = "button", children, className, variant = "text", color = "primary", size = "md" } = _b, rest = __objRest(_b, ["as", "children", "className", "variant", "color", "size"]);
106
106
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
107
- Component2,
107
+ Component,
108
108
  __spreadProps(__spreadValues({
109
109
  ref,
110
110
  className: (0, import_clsx.default)(
@@ -148,7 +148,7 @@ var import_jsx_runtime2 = require("react/jsx-runtime");
148
148
  var prefixCls2 = "us-";
149
149
  var Tab = (0, import_react3.forwardRef)(
150
150
  (_a, ref) => {
151
- var _b = _a, { as: Component2 = "div", children, className, value, onClick } = _b, rest = __objRest(_b, ["as", "children", "className", "value", "onClick"]);
151
+ var _b = _a, { as: Component = "div", children, className, value, onClick } = _b, rest = __objRest(_b, ["as", "children", "className", "value", "onClick"]);
152
152
  const tabRef = (0, import_react3.useRef)(null);
153
153
  const tabs = useTabs();
154
154
  const handleClick = (event) => {
@@ -191,7 +191,7 @@ var Tab = (0, import_react3.forwardRef)(
191
191
  }
192
192
  }, []);
193
193
  return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
194
- Component2,
194
+ Component,
195
195
  __spreadProps(__spreadValues({
196
196
  ref: (0, import_merge_refs.default)(tabRef, ref),
197
197
  className: (0, import_clsx2.default)(`${prefixCls2}tab`, { [`${prefixCls2}tab--selected`]: value === tabs.value }, className),
@@ -507,1055 +507,7 @@ var useStep = (maxStep) => {
507
507
  var import_react15 = require("react");
508
508
  var import_md = require("react-icons/md");
509
509
  var import_vsc = require("react-icons/vsc");
510
-
511
- // ../../../node_modules/react-router-dom/dist/index.js
512
- var React2 = __toESM(require("react"));
513
-
514
- // ../../../node_modules/react-router/dist/index.js
515
- var React = __toESM(require("react"));
516
-
517
- // ../../../node_modules/@remix-run/router/dist/router.js
518
- function _extends() {
519
- _extends = Object.assign ? Object.assign.bind() : function(target) {
520
- for (var i = 1; i < arguments.length; i++) {
521
- var source = arguments[i];
522
- for (var key in source) {
523
- if (Object.prototype.hasOwnProperty.call(source, key)) {
524
- target[key] = source[key];
525
- }
526
- }
527
- }
528
- return target;
529
- };
530
- return _extends.apply(this, arguments);
531
- }
532
- var Action;
533
- (function(Action2) {
534
- Action2["Pop"] = "POP";
535
- Action2["Push"] = "PUSH";
536
- Action2["Replace"] = "REPLACE";
537
- })(Action || (Action = {}));
538
- function invariant(value, message) {
539
- if (value === false || value === null || typeof value === "undefined") {
540
- throw new Error(message);
541
- }
542
- }
543
- function warning(cond, message) {
544
- if (!cond) {
545
- if (typeof console !== "undefined")
546
- console.warn(message);
547
- try {
548
- throw new Error(message);
549
- } catch (e) {
550
- }
551
- }
552
- }
553
- function createPath(_ref) {
554
- let {
555
- pathname = "/",
556
- search = "",
557
- hash = ""
558
- } = _ref;
559
- if (search && search !== "?")
560
- pathname += search.charAt(0) === "?" ? search : "?" + search;
561
- if (hash && hash !== "#")
562
- pathname += hash.charAt(0) === "#" ? hash : "#" + hash;
563
- return pathname;
564
- }
565
- function parsePath(path) {
566
- let parsedPath = {};
567
- if (path) {
568
- let hashIndex = path.indexOf("#");
569
- if (hashIndex >= 0) {
570
- parsedPath.hash = path.substr(hashIndex);
571
- path = path.substr(0, hashIndex);
572
- }
573
- let searchIndex = path.indexOf("?");
574
- if (searchIndex >= 0) {
575
- parsedPath.search = path.substr(searchIndex);
576
- path = path.substr(0, searchIndex);
577
- }
578
- if (path) {
579
- parsedPath.pathname = path;
580
- }
581
- }
582
- return parsedPath;
583
- }
584
- var ResultType;
585
- (function(ResultType2) {
586
- ResultType2["data"] = "data";
587
- ResultType2["deferred"] = "deferred";
588
- ResultType2["redirect"] = "redirect";
589
- ResultType2["error"] = "error";
590
- })(ResultType || (ResultType = {}));
591
- function convertRouteMatchToUiMatch(match, loaderData) {
592
- let {
593
- route,
594
- pathname,
595
- params
596
- } = match;
597
- return {
598
- id: route.id,
599
- pathname,
600
- params,
601
- data: loaderData[route.id],
602
- handle: route.handle
603
- };
604
- }
605
- function stripBasename(pathname, basename) {
606
- if (basename === "/")
607
- return pathname;
608
- if (!pathname.toLowerCase().startsWith(basename.toLowerCase())) {
609
- return null;
610
- }
611
- let startIndex = basename.endsWith("/") ? basename.length - 1 : basename.length;
612
- let nextChar = pathname.charAt(startIndex);
613
- if (nextChar && nextChar !== "/") {
614
- return null;
615
- }
616
- return pathname.slice(startIndex) || "/";
617
- }
618
- function resolvePath(to, fromPathname) {
619
- if (fromPathname === void 0) {
620
- fromPathname = "/";
621
- }
622
- let {
623
- pathname: toPathname,
624
- search = "",
625
- hash = ""
626
- } = typeof to === "string" ? parsePath(to) : to;
627
- let pathname = toPathname ? toPathname.startsWith("/") ? toPathname : resolvePathname(toPathname, fromPathname) : fromPathname;
628
- return {
629
- pathname,
630
- search: normalizeSearch(search),
631
- hash: normalizeHash(hash)
632
- };
633
- }
634
- function resolvePathname(relativePath, fromPathname) {
635
- let segments = fromPathname.replace(/\/+$/, "").split("/");
636
- let relativeSegments = relativePath.split("/");
637
- relativeSegments.forEach((segment) => {
638
- if (segment === "..") {
639
- if (segments.length > 1)
640
- segments.pop();
641
- } else if (segment !== ".") {
642
- segments.push(segment);
643
- }
644
- });
645
- return segments.length > 1 ? segments.join("/") : "/";
646
- }
647
- function getInvalidPathError(char, field, dest, path) {
648
- return "Cannot include a '" + char + "' character in a manually specified " + ("`to." + field + "` field [" + JSON.stringify(path) + "]. Please separate it out to the ") + ("`to." + dest + "` field. Alternatively you may provide the full path as ") + 'a string in <Link to="..."> and the router will parse it for you.';
649
- }
650
- function getPathContributingMatches(matches) {
651
- return matches.filter((match, index) => index === 0 || match.route.path && match.route.path.length > 0);
652
- }
653
- function resolveTo(toArg, routePathnames, locationPathname, isPathRelative) {
654
- if (isPathRelative === void 0) {
655
- isPathRelative = false;
656
- }
657
- let to;
658
- if (typeof toArg === "string") {
659
- to = parsePath(toArg);
660
- } else {
661
- to = _extends({}, toArg);
662
- invariant(!to.pathname || !to.pathname.includes("?"), getInvalidPathError("?", "pathname", "search", to));
663
- invariant(!to.pathname || !to.pathname.includes("#"), getInvalidPathError("#", "pathname", "hash", to));
664
- invariant(!to.search || !to.search.includes("#"), getInvalidPathError("#", "search", "hash", to));
665
- }
666
- let isEmptyPath = toArg === "" || to.pathname === "";
667
- let toPathname = isEmptyPath ? "/" : to.pathname;
668
- let from;
669
- if (isPathRelative || toPathname == null) {
670
- from = locationPathname;
671
- } else {
672
- let routePathnameIndex = routePathnames.length - 1;
673
- if (toPathname.startsWith("..")) {
674
- let toSegments = toPathname.split("/");
675
- while (toSegments[0] === "..") {
676
- toSegments.shift();
677
- routePathnameIndex -= 1;
678
- }
679
- to.pathname = toSegments.join("/");
680
- }
681
- from = routePathnameIndex >= 0 ? routePathnames[routePathnameIndex] : "/";
682
- }
683
- let path = resolvePath(to, from);
684
- let hasExplicitTrailingSlash = toPathname && toPathname !== "/" && toPathname.endsWith("/");
685
- let hasCurrentTrailingSlash = (isEmptyPath || toPathname === ".") && locationPathname.endsWith("/");
686
- if (!path.pathname.endsWith("/") && (hasExplicitTrailingSlash || hasCurrentTrailingSlash)) {
687
- path.pathname += "/";
688
- }
689
- return path;
690
- }
691
- var joinPaths = (paths) => paths.join("/").replace(/\/\/+/g, "/");
692
- var normalizeSearch = (search) => !search || search === "?" ? "" : search.startsWith("?") ? search : "?" + search;
693
- var normalizeHash = (hash) => !hash || hash === "#" ? "" : hash.startsWith("#") ? hash : "#" + hash;
694
- var validMutationMethodsArr = ["post", "put", "patch", "delete"];
695
- var validMutationMethods = new Set(validMutationMethodsArr);
696
- var validRequestMethodsArr = ["get", ...validMutationMethodsArr];
697
- var validRequestMethods = new Set(validRequestMethodsArr);
698
- var UNSAFE_DEFERRED_SYMBOL = Symbol("deferred");
699
-
700
- // ../../../node_modules/react-router/dist/index.js
701
- function _extends2() {
702
- _extends2 = Object.assign ? Object.assign.bind() : function(target) {
703
- for (var i = 1; i < arguments.length; i++) {
704
- var source = arguments[i];
705
- for (var key in source) {
706
- if (Object.prototype.hasOwnProperty.call(source, key)) {
707
- target[key] = source[key];
708
- }
709
- }
710
- }
711
- return target;
712
- };
713
- return _extends2.apply(this, arguments);
714
- }
715
- var DataRouterContext = /* @__PURE__ */ React.createContext(null);
716
- if (process.env.NODE_ENV !== "production") {
717
- DataRouterContext.displayName = "DataRouter";
718
- }
719
- var DataRouterStateContext = /* @__PURE__ */ React.createContext(null);
720
- if (process.env.NODE_ENV !== "production") {
721
- DataRouterStateContext.displayName = "DataRouterState";
722
- }
723
- var AwaitContext = /* @__PURE__ */ React.createContext(null);
724
- if (process.env.NODE_ENV !== "production") {
725
- AwaitContext.displayName = "Await";
726
- }
727
- var NavigationContext = /* @__PURE__ */ React.createContext(null);
728
- if (process.env.NODE_ENV !== "production") {
729
- NavigationContext.displayName = "Navigation";
730
- }
731
- var LocationContext = /* @__PURE__ */ React.createContext(null);
732
- if (process.env.NODE_ENV !== "production") {
733
- LocationContext.displayName = "Location";
734
- }
735
- var RouteContext = /* @__PURE__ */ React.createContext({
736
- outlet: null,
737
- matches: [],
738
- isDataRoute: false
739
- });
740
- if (process.env.NODE_ENV !== "production") {
741
- RouteContext.displayName = "Route";
742
- }
743
- var RouteErrorContext = /* @__PURE__ */ React.createContext(null);
744
- if (process.env.NODE_ENV !== "production") {
745
- RouteErrorContext.displayName = "RouteError";
746
- }
747
- function useHref(to, _temp) {
748
- let {
749
- relative
750
- } = _temp === void 0 ? {} : _temp;
751
- !useInRouterContext() ? process.env.NODE_ENV !== "production" ? invariant(
752
- false,
753
- // TODO: This error is probably because they somehow have 2 versions of the
754
- // router loaded. We can help them understand how to avoid that.
755
- "useHref() may be used only in the context of a <Router> component."
756
- ) : invariant(false) : void 0;
757
- let {
758
- basename,
759
- navigator
760
- } = React.useContext(NavigationContext);
761
- let {
762
- hash,
763
- pathname,
764
- search
765
- } = useResolvedPath(to, {
766
- relative
767
- });
768
- let joinedPathname = pathname;
769
- if (basename !== "/") {
770
- joinedPathname = pathname === "/" ? basename : joinPaths([basename, pathname]);
771
- }
772
- return navigator.createHref({
773
- pathname: joinedPathname,
774
- search,
775
- hash
776
- });
777
- }
778
- function useInRouterContext() {
779
- return React.useContext(LocationContext) != null;
780
- }
781
- function useLocation() {
782
- !useInRouterContext() ? process.env.NODE_ENV !== "production" ? invariant(
783
- false,
784
- // TODO: This error is probably because they somehow have 2 versions of the
785
- // router loaded. We can help them understand how to avoid that.
786
- "useLocation() may be used only in the context of a <Router> component."
787
- ) : invariant(false) : void 0;
788
- return React.useContext(LocationContext).location;
789
- }
790
- var navigateEffectWarning = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
791
- function useIsomorphicLayoutEffect2(cb) {
792
- let isStatic = React.useContext(NavigationContext).static;
793
- if (!isStatic) {
794
- React.useLayoutEffect(cb);
795
- }
796
- }
797
- function useNavigate() {
798
- let {
799
- isDataRoute
800
- } = React.useContext(RouteContext);
801
- return isDataRoute ? useNavigateStable() : useNavigateUnstable();
802
- }
803
- function useNavigateUnstable() {
804
- !useInRouterContext() ? process.env.NODE_ENV !== "production" ? invariant(
805
- false,
806
- // TODO: This error is probably because they somehow have 2 versions of the
807
- // router loaded. We can help them understand how to avoid that.
808
- "useNavigate() may be used only in the context of a <Router> component."
809
- ) : invariant(false) : void 0;
810
- let dataRouterContext = React.useContext(DataRouterContext);
811
- let {
812
- basename,
813
- navigator
814
- } = React.useContext(NavigationContext);
815
- let {
816
- matches
817
- } = React.useContext(RouteContext);
818
- let {
819
- pathname: locationPathname
820
- } = useLocation();
821
- let routePathnamesJson = JSON.stringify(getPathContributingMatches(matches).map((match) => match.pathnameBase));
822
- let activeRef = React.useRef(false);
823
- useIsomorphicLayoutEffect2(() => {
824
- activeRef.current = true;
825
- });
826
- let navigate = React.useCallback(function(to, options) {
827
- if (options === void 0) {
828
- options = {};
829
- }
830
- process.env.NODE_ENV !== "production" ? warning(activeRef.current, navigateEffectWarning) : void 0;
831
- if (!activeRef.current)
832
- return;
833
- if (typeof to === "number") {
834
- navigator.go(to);
835
- return;
836
- }
837
- let path = resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, options.relative === "path");
838
- if (dataRouterContext == null && basename !== "/") {
839
- path.pathname = path.pathname === "/" ? basename : joinPaths([basename, path.pathname]);
840
- }
841
- (!!options.replace ? navigator.replace : navigator.push)(path, options.state, options);
842
- }, [basename, navigator, routePathnamesJson, locationPathname, dataRouterContext]);
843
- return navigate;
844
- }
845
- function useResolvedPath(to, _temp2) {
846
- let {
847
- relative
848
- } = _temp2 === void 0 ? {} : _temp2;
849
- let {
850
- matches
851
- } = React.useContext(RouteContext);
852
- let {
853
- pathname: locationPathname
854
- } = useLocation();
855
- let routePathnamesJson = JSON.stringify(getPathContributingMatches(matches).map((match) => match.pathnameBase));
856
- return React.useMemo(() => resolveTo(to, JSON.parse(routePathnamesJson), locationPathname, relative === "path"), [to, routePathnamesJson, locationPathname, relative]);
857
- }
858
- var DataRouterHook = /* @__PURE__ */ function(DataRouterHook3) {
859
- DataRouterHook3["UseBlocker"] = "useBlocker";
860
- DataRouterHook3["UseRevalidator"] = "useRevalidator";
861
- DataRouterHook3["UseNavigateStable"] = "useNavigate";
862
- return DataRouterHook3;
863
- }(DataRouterHook || {});
864
- var DataRouterStateHook = /* @__PURE__ */ function(DataRouterStateHook3) {
865
- DataRouterStateHook3["UseBlocker"] = "useBlocker";
866
- DataRouterStateHook3["UseLoaderData"] = "useLoaderData";
867
- DataRouterStateHook3["UseActionData"] = "useActionData";
868
- DataRouterStateHook3["UseRouteError"] = "useRouteError";
869
- DataRouterStateHook3["UseNavigation"] = "useNavigation";
870
- DataRouterStateHook3["UseRouteLoaderData"] = "useRouteLoaderData";
871
- DataRouterStateHook3["UseMatches"] = "useMatches";
872
- DataRouterStateHook3["UseRevalidator"] = "useRevalidator";
873
- DataRouterStateHook3["UseNavigateStable"] = "useNavigate";
874
- DataRouterStateHook3["UseRouteId"] = "useRouteId";
875
- return DataRouterStateHook3;
876
- }(DataRouterStateHook || {});
877
- function getDataRouterConsoleError(hookName) {
878
- return hookName + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
879
- }
880
- function useDataRouterContext(hookName) {
881
- let ctx = React.useContext(DataRouterContext);
882
- !ctx ? process.env.NODE_ENV !== "production" ? invariant(false, getDataRouterConsoleError(hookName)) : invariant(false) : void 0;
883
- return ctx;
884
- }
885
- function useDataRouterState(hookName) {
886
- let state = React.useContext(DataRouterStateContext);
887
- !state ? process.env.NODE_ENV !== "production" ? invariant(false, getDataRouterConsoleError(hookName)) : invariant(false) : void 0;
888
- return state;
889
- }
890
- function useRouteContext(hookName) {
891
- let route = React.useContext(RouteContext);
892
- !route ? process.env.NODE_ENV !== "production" ? invariant(false, getDataRouterConsoleError(hookName)) : invariant(false) : void 0;
893
- return route;
894
- }
895
- function useCurrentRouteId(hookName) {
896
- let route = useRouteContext(hookName);
897
- let thisRoute = route.matches[route.matches.length - 1];
898
- !thisRoute.route.id ? process.env.NODE_ENV !== "production" ? invariant(false, hookName + ' can only be used on routes that contain a unique "id"') : invariant(false) : void 0;
899
- return thisRoute.route.id;
900
- }
901
- function useRouteId() {
902
- return useCurrentRouteId(DataRouterStateHook.UseRouteId);
903
- }
904
- function useNavigation() {
905
- let state = useDataRouterState(DataRouterStateHook.UseNavigation);
906
- return state.navigation;
907
- }
908
- function useMatches() {
909
- let {
910
- matches,
911
- loaderData
912
- } = useDataRouterState(DataRouterStateHook.UseMatches);
913
- return React.useMemo(() => matches.map((m) => convertRouteMatchToUiMatch(m, loaderData)), [matches, loaderData]);
914
- }
915
- function useNavigateStable() {
916
- let {
917
- router
918
- } = useDataRouterContext(DataRouterHook.UseNavigateStable);
919
- let id = useCurrentRouteId(DataRouterStateHook.UseNavigateStable);
920
- let activeRef = React.useRef(false);
921
- useIsomorphicLayoutEffect2(() => {
922
- activeRef.current = true;
923
- });
924
- let navigate = React.useCallback(function(to, options) {
925
- if (options === void 0) {
926
- options = {};
927
- }
928
- process.env.NODE_ENV !== "production" ? warning(activeRef.current, navigateEffectWarning) : void 0;
929
- if (!activeRef.current)
930
- return;
931
- if (typeof to === "number") {
932
- router.navigate(to);
933
- } else {
934
- router.navigate(to, _extends2({
935
- fromRouteId: id
936
- }, options));
937
- }
938
- }, [router, id]);
939
- return navigate;
940
- }
941
- var START_TRANSITION = "startTransition";
942
- var startTransitionImpl = React[START_TRANSITION];
943
- function Router(_ref5) {
944
- let {
945
- basename: basenameProp = "/",
946
- children = null,
947
- location: locationProp,
948
- navigationType = Action.Pop,
949
- navigator,
950
- static: staticProp = false
951
- } = _ref5;
952
- !!useInRouterContext() ? process.env.NODE_ENV !== "production" ? invariant(false, "You cannot render a <Router> inside another <Router>. You should never have more than one in your app.") : invariant(false) : void 0;
953
- let basename = basenameProp.replace(/^\/*/, "/");
954
- let navigationContext = React.useMemo(() => ({
955
- basename,
956
- navigator,
957
- static: staticProp
958
- }), [basename, navigator, staticProp]);
959
- if (typeof locationProp === "string") {
960
- locationProp = parsePath(locationProp);
961
- }
962
- let {
963
- pathname = "/",
964
- search = "",
965
- hash = "",
966
- state = null,
967
- key = "default"
968
- } = locationProp;
969
- let locationContext = React.useMemo(() => {
970
- let trailingPathname = stripBasename(pathname, basename);
971
- if (trailingPathname == null) {
972
- return null;
973
- }
974
- return {
975
- location: {
976
- pathname: trailingPathname,
977
- search,
978
- hash,
979
- state,
980
- key
981
- },
982
- navigationType
983
- };
984
- }, [basename, pathname, search, hash, state, key, navigationType]);
985
- process.env.NODE_ENV !== "production" ? warning(locationContext != null, '<Router basename="' + basename + '"> is not able to match the URL ' + ('"' + pathname + search + hash + '" because it does not start with the ') + "basename, so the <Router> won't render anything.") : void 0;
986
- if (locationContext == null) {
987
- return null;
988
- }
989
- return /* @__PURE__ */ React.createElement(NavigationContext.Provider, {
990
- value: navigationContext
991
- }, /* @__PURE__ */ React.createElement(LocationContext.Provider, {
992
- children,
993
- value: locationContext
994
- }));
995
- }
996
- var neverSettledPromise = new Promise(() => {
997
- });
998
-
999
- // ../../../node_modules/react-router-dom/dist/index.js
1000
- function _extends3() {
1001
- _extends3 = Object.assign ? Object.assign.bind() : function(target) {
1002
- for (var i = 1; i < arguments.length; i++) {
1003
- var source = arguments[i];
1004
- for (var key in source) {
1005
- if (Object.prototype.hasOwnProperty.call(source, key)) {
1006
- target[key] = source[key];
1007
- }
1008
- }
1009
- }
1010
- return target;
1011
- };
1012
- return _extends3.apply(this, arguments);
1013
- }
1014
- function _objectWithoutPropertiesLoose(source, excluded) {
1015
- if (source == null)
1016
- return {};
1017
- var target = {};
1018
- var sourceKeys = Object.keys(source);
1019
- var key, i;
1020
- for (i = 0; i < sourceKeys.length; i++) {
1021
- key = sourceKeys[i];
1022
- if (excluded.indexOf(key) >= 0)
1023
- continue;
1024
- target[key] = source[key];
1025
- }
1026
- return target;
1027
- }
1028
- var defaultMethod = "get";
1029
- var defaultEncType = "application/x-www-form-urlencoded";
1030
- function isHtmlElement(object) {
1031
- return object != null && typeof object.tagName === "string";
1032
- }
1033
- function isButtonElement(object) {
1034
- return isHtmlElement(object) && object.tagName.toLowerCase() === "button";
1035
- }
1036
- function isFormElement(object) {
1037
- return isHtmlElement(object) && object.tagName.toLowerCase() === "form";
1038
- }
1039
- function isInputElement(object) {
1040
- return isHtmlElement(object) && object.tagName.toLowerCase() === "input";
1041
- }
1042
- function isModifiedEvent(event) {
1043
- return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
1044
- }
1045
- function shouldProcessLinkClick(event, target) {
1046
- return event.button === 0 && // Ignore everything but left clicks
1047
- (!target || target === "_self") && // Let browser handle "target=_blank" etc.
1048
- !isModifiedEvent(event);
1049
- }
1050
- var _formDataSupportsSubmitter = null;
1051
- function isFormDataSubmitterSupported() {
1052
- if (_formDataSupportsSubmitter === null) {
1053
- try {
1054
- new FormData(
1055
- document.createElement("form"),
1056
- // @ts-expect-error if FormData supports the submitter parameter, this will throw
1057
- 0
1058
- );
1059
- _formDataSupportsSubmitter = false;
1060
- } catch (e) {
1061
- _formDataSupportsSubmitter = true;
1062
- }
1063
- }
1064
- return _formDataSupportsSubmitter;
1065
- }
1066
- var supportedFormEncTypes = /* @__PURE__ */ new Set(["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"]);
1067
- function getFormEncType(encType) {
1068
- if (encType != null && !supportedFormEncTypes.has(encType)) {
1069
- process.env.NODE_ENV !== "production" ? warning(false, '"' + encType + '" is not a valid `encType` for `<Form>`/`<fetcher.Form>` ' + ('and will default to "' + defaultEncType + '"')) : void 0;
1070
- return null;
1071
- }
1072
- return encType;
1073
- }
1074
- function getFormSubmissionInfo(target, basename) {
1075
- let method;
1076
- let action;
1077
- let encType;
1078
- let formData;
1079
- let body;
1080
- if (isFormElement(target)) {
1081
- let attr = target.getAttribute("action");
1082
- action = attr ? stripBasename(attr, basename) : null;
1083
- method = target.getAttribute("method") || defaultMethod;
1084
- encType = getFormEncType(target.getAttribute("enctype")) || defaultEncType;
1085
- formData = new FormData(target);
1086
- } else if (isButtonElement(target) || isInputElement(target) && (target.type === "submit" || target.type === "image")) {
1087
- let form = target.form;
1088
- if (form == null) {
1089
- throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');
1090
- }
1091
- let attr = target.getAttribute("formaction") || form.getAttribute("action");
1092
- action = attr ? stripBasename(attr, basename) : null;
1093
- method = target.getAttribute("formmethod") || form.getAttribute("method") || defaultMethod;
1094
- encType = getFormEncType(target.getAttribute("formenctype")) || getFormEncType(form.getAttribute("enctype")) || defaultEncType;
1095
- formData = new FormData(form, target);
1096
- if (!isFormDataSubmitterSupported()) {
1097
- let {
1098
- name,
1099
- type,
1100
- value
1101
- } = target;
1102
- if (type === "image") {
1103
- let prefix = name ? name + "." : "";
1104
- formData.append(prefix + "x", "0");
1105
- formData.append(prefix + "y", "0");
1106
- } else if (name) {
1107
- formData.append(name, value);
1108
- }
1109
- }
1110
- } else if (isHtmlElement(target)) {
1111
- throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
1112
- } else {
1113
- method = defaultMethod;
1114
- action = null;
1115
- encType = defaultEncType;
1116
- body = target;
1117
- }
1118
- if (formData && encType === "text/plain") {
1119
- body = formData;
1120
- formData = void 0;
1121
- }
1122
- return {
1123
- action,
1124
- method: method.toLowerCase(),
1125
- encType,
1126
- formData,
1127
- body
1128
- };
1129
- }
1130
- var _excluded = ["onClick", "relative", "reloadDocument", "replace", "state", "target", "to", "preventScrollReset"];
1131
- var _excluded2 = ["aria-current", "caseSensitive", "className", "end", "style", "to", "children"];
1132
- var _excluded3 = ["reloadDocument", "replace", "state", "method", "action", "onSubmit", "submit", "relative", "preventScrollReset"];
1133
- var START_TRANSITION2 = "startTransition";
1134
- var startTransitionImpl2 = React2[START_TRANSITION2];
1135
- function HistoryRouter(_ref3) {
1136
- let {
1137
- basename,
1138
- children,
1139
- future,
1140
- history
1141
- } = _ref3;
1142
- let [state, setStateImpl] = React2.useState({
1143
- action: history.action,
1144
- location: history.location
1145
- });
1146
- let {
1147
- v7_startTransition
1148
- } = future || {};
1149
- let setState = React2.useCallback((newState) => {
1150
- v7_startTransition && startTransitionImpl2 ? startTransitionImpl2(() => setStateImpl(newState)) : setStateImpl(newState);
1151
- }, [setStateImpl, v7_startTransition]);
1152
- React2.useLayoutEffect(() => history.listen(setState), [history, setState]);
1153
- return /* @__PURE__ */ React2.createElement(Router, {
1154
- basename,
1155
- children,
1156
- location: state.location,
1157
- navigationType: state.action,
1158
- navigator: history
1159
- });
1160
- }
1161
- if (process.env.NODE_ENV !== "production") {
1162
- HistoryRouter.displayName = "unstable_HistoryRouter";
1163
- }
1164
- var isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined" && typeof window.document.createElement !== "undefined";
1165
- var ABSOLUTE_URL_REGEX = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;
1166
- var Link = /* @__PURE__ */ React2.forwardRef(function LinkWithRef(_ref4, ref) {
1167
- let {
1168
- onClick,
1169
- relative,
1170
- reloadDocument,
1171
- replace,
1172
- state,
1173
- target,
1174
- to,
1175
- preventScrollReset
1176
- } = _ref4, rest = _objectWithoutPropertiesLoose(_ref4, _excluded);
1177
- let {
1178
- basename
1179
- } = React2.useContext(NavigationContext);
1180
- let absoluteHref;
1181
- let isExternal = false;
1182
- if (typeof to === "string" && ABSOLUTE_URL_REGEX.test(to)) {
1183
- absoluteHref = to;
1184
- if (isBrowser) {
1185
- try {
1186
- let currentUrl = new URL(window.location.href);
1187
- let targetUrl = to.startsWith("//") ? new URL(currentUrl.protocol + to) : new URL(to);
1188
- let path = stripBasename(targetUrl.pathname, basename);
1189
- if (targetUrl.origin === currentUrl.origin && path != null) {
1190
- to = path + targetUrl.search + targetUrl.hash;
1191
- } else {
1192
- isExternal = true;
1193
- }
1194
- } catch (e) {
1195
- process.env.NODE_ENV !== "production" ? warning(false, '<Link to="' + to + '"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.') : void 0;
1196
- }
1197
- }
1198
- }
1199
- let href = useHref(to, {
1200
- relative
1201
- });
1202
- let internalOnClick = useLinkClickHandler(to, {
1203
- replace,
1204
- state,
1205
- target,
1206
- preventScrollReset,
1207
- relative
1208
- });
1209
- function handleClick(event) {
1210
- if (onClick)
1211
- onClick(event);
1212
- if (!event.defaultPrevented) {
1213
- internalOnClick(event);
1214
- }
1215
- }
1216
- return (
1217
- // eslint-disable-next-line jsx-a11y/anchor-has-content
1218
- /* @__PURE__ */ React2.createElement("a", _extends3({}, rest, {
1219
- href: absoluteHref || href,
1220
- onClick: isExternal || reloadDocument ? onClick : handleClick,
1221
- ref,
1222
- target
1223
- }))
1224
- );
1225
- });
1226
- if (process.env.NODE_ENV !== "production") {
1227
- Link.displayName = "Link";
1228
- }
1229
- var NavLink = /* @__PURE__ */ React2.forwardRef(function NavLinkWithRef(_ref5, ref) {
1230
- let {
1231
- "aria-current": ariaCurrentProp = "page",
1232
- caseSensitive = false,
1233
- className: classNameProp = "",
1234
- end = false,
1235
- style: styleProp,
1236
- to,
1237
- children
1238
- } = _ref5, rest = _objectWithoutPropertiesLoose(_ref5, _excluded2);
1239
- let path = useResolvedPath(to, {
1240
- relative: rest.relative
1241
- });
1242
- let location = useLocation();
1243
- let routerState = React2.useContext(DataRouterStateContext);
1244
- let {
1245
- navigator
1246
- } = React2.useContext(NavigationContext);
1247
- let toPathname = navigator.encodeLocation ? navigator.encodeLocation(path).pathname : path.pathname;
1248
- let locationPathname = location.pathname;
1249
- let nextLocationPathname = routerState && routerState.navigation && routerState.navigation.location ? routerState.navigation.location.pathname : null;
1250
- if (!caseSensitive) {
1251
- locationPathname = locationPathname.toLowerCase();
1252
- nextLocationPathname = nextLocationPathname ? nextLocationPathname.toLowerCase() : null;
1253
- toPathname = toPathname.toLowerCase();
1254
- }
1255
- let isActive = locationPathname === toPathname || !end && locationPathname.startsWith(toPathname) && locationPathname.charAt(toPathname.length) === "/";
1256
- let isPending = nextLocationPathname != null && (nextLocationPathname === toPathname || !end && nextLocationPathname.startsWith(toPathname) && nextLocationPathname.charAt(toPathname.length) === "/");
1257
- let ariaCurrent = isActive ? ariaCurrentProp : void 0;
1258
- let className;
1259
- if (typeof classNameProp === "function") {
1260
- className = classNameProp({
1261
- isActive,
1262
- isPending
1263
- });
1264
- } else {
1265
- className = [classNameProp, isActive ? "active" : null, isPending ? "pending" : null].filter(Boolean).join(" ");
1266
- }
1267
- let style = typeof styleProp === "function" ? styleProp({
1268
- isActive,
1269
- isPending
1270
- }) : styleProp;
1271
- return /* @__PURE__ */ React2.createElement(Link, _extends3({}, rest, {
1272
- "aria-current": ariaCurrent,
1273
- className,
1274
- ref,
1275
- style,
1276
- to
1277
- }), typeof children === "function" ? children({
1278
- isActive,
1279
- isPending
1280
- }) : children);
1281
- });
1282
- if (process.env.NODE_ENV !== "production") {
1283
- NavLink.displayName = "NavLink";
1284
- }
1285
- var Form = /* @__PURE__ */ React2.forwardRef((props, ref) => {
1286
- let submit = useSubmit();
1287
- return /* @__PURE__ */ React2.createElement(FormImpl, _extends3({}, props, {
1288
- submit,
1289
- ref
1290
- }));
1291
- });
1292
- if (process.env.NODE_ENV !== "production") {
1293
- Form.displayName = "Form";
1294
- }
1295
- var FormImpl = /* @__PURE__ */ React2.forwardRef((_ref6, forwardedRef) => {
1296
- let {
1297
- reloadDocument,
1298
- replace,
1299
- state,
1300
- method = defaultMethod,
1301
- action,
1302
- onSubmit,
1303
- submit,
1304
- relative,
1305
- preventScrollReset
1306
- } = _ref6, props = _objectWithoutPropertiesLoose(_ref6, _excluded3);
1307
- let formMethod = method.toLowerCase() === "get" ? "get" : "post";
1308
- let formAction = useFormAction(action, {
1309
- relative
1310
- });
1311
- let submitHandler = (event) => {
1312
- onSubmit && onSubmit(event);
1313
- if (event.defaultPrevented)
1314
- return;
1315
- event.preventDefault();
1316
- let submitter = event.nativeEvent.submitter;
1317
- let submitMethod = (submitter == null ? void 0 : submitter.getAttribute("formmethod")) || method;
1318
- submit(submitter || event.currentTarget, {
1319
- method: submitMethod,
1320
- replace,
1321
- state,
1322
- relative,
1323
- preventScrollReset
1324
- });
1325
- };
1326
- return /* @__PURE__ */ React2.createElement("form", _extends3({
1327
- ref: forwardedRef,
1328
- method: formMethod,
1329
- action: formAction,
1330
- onSubmit: reloadDocument ? onSubmit : submitHandler
1331
- }, props));
1332
- });
1333
- if (process.env.NODE_ENV !== "production") {
1334
- FormImpl.displayName = "FormImpl";
1335
- }
1336
- function ScrollRestoration(_ref7) {
1337
- let {
1338
- getKey,
1339
- storageKey
1340
- } = _ref7;
1341
- useScrollRestoration({
1342
- getKey,
1343
- storageKey
1344
- });
1345
- return null;
1346
- }
1347
- if (process.env.NODE_ENV !== "production") {
1348
- ScrollRestoration.displayName = "ScrollRestoration";
1349
- }
1350
- var DataRouterHook2;
1351
- (function(DataRouterHook3) {
1352
- DataRouterHook3["UseScrollRestoration"] = "useScrollRestoration";
1353
- DataRouterHook3["UseSubmit"] = "useSubmit";
1354
- DataRouterHook3["UseSubmitFetcher"] = "useSubmitFetcher";
1355
- DataRouterHook3["UseFetcher"] = "useFetcher";
1356
- })(DataRouterHook2 || (DataRouterHook2 = {}));
1357
- var DataRouterStateHook2;
1358
- (function(DataRouterStateHook3) {
1359
- DataRouterStateHook3["UseFetchers"] = "useFetchers";
1360
- DataRouterStateHook3["UseScrollRestoration"] = "useScrollRestoration";
1361
- })(DataRouterStateHook2 || (DataRouterStateHook2 = {}));
1362
- function getDataRouterConsoleError2(hookName) {
1363
- return hookName + " must be used within a data router. See https://reactrouter.com/routers/picking-a-router.";
1364
- }
1365
- function useDataRouterContext2(hookName) {
1366
- let ctx = React2.useContext(DataRouterContext);
1367
- !ctx ? process.env.NODE_ENV !== "production" ? invariant(false, getDataRouterConsoleError2(hookName)) : invariant(false) : void 0;
1368
- return ctx;
1369
- }
1370
- function useDataRouterState2(hookName) {
1371
- let state = React2.useContext(DataRouterStateContext);
1372
- !state ? process.env.NODE_ENV !== "production" ? invariant(false, getDataRouterConsoleError2(hookName)) : invariant(false) : void 0;
1373
- return state;
1374
- }
1375
- function useLinkClickHandler(to, _temp) {
1376
- let {
1377
- target,
1378
- replace: replaceProp,
1379
- state,
1380
- preventScrollReset,
1381
- relative
1382
- } = _temp === void 0 ? {} : _temp;
1383
- let navigate = useNavigate();
1384
- let location = useLocation();
1385
- let path = useResolvedPath(to, {
1386
- relative
1387
- });
1388
- return React2.useCallback((event) => {
1389
- if (shouldProcessLinkClick(event, target)) {
1390
- event.preventDefault();
1391
- let replace = replaceProp !== void 0 ? replaceProp : createPath(location) === createPath(path);
1392
- navigate(to, {
1393
- replace,
1394
- state,
1395
- preventScrollReset,
1396
- relative
1397
- });
1398
- }
1399
- }, [location, navigate, path, replaceProp, state, target, to, preventScrollReset, relative]);
1400
- }
1401
- function validateClientSideSubmission() {
1402
- if (typeof document === "undefined") {
1403
- throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");
1404
- }
1405
- }
1406
- function useSubmit() {
1407
- let {
1408
- router
1409
- } = useDataRouterContext2(DataRouterHook2.UseSubmit);
1410
- let {
1411
- basename
1412
- } = React2.useContext(NavigationContext);
1413
- let currentRouteId = useRouteId();
1414
- return React2.useCallback(function(target, options) {
1415
- if (options === void 0) {
1416
- options = {};
1417
- }
1418
- validateClientSideSubmission();
1419
- let {
1420
- action,
1421
- method,
1422
- encType,
1423
- formData,
1424
- body
1425
- } = getFormSubmissionInfo(target, basename);
1426
- router.navigate(options.action || action, {
1427
- preventScrollReset: options.preventScrollReset,
1428
- formData,
1429
- body,
1430
- formMethod: options.method || method,
1431
- formEncType: options.encType || encType,
1432
- replace: options.replace,
1433
- state: options.state,
1434
- fromRouteId: currentRouteId
1435
- });
1436
- }, [router, basename, currentRouteId]);
1437
- }
1438
- function useFormAction(action, _temp2) {
1439
- let {
1440
- relative
1441
- } = _temp2 === void 0 ? {} : _temp2;
1442
- let {
1443
- basename
1444
- } = React2.useContext(NavigationContext);
1445
- let routeContext = React2.useContext(RouteContext);
1446
- !routeContext ? process.env.NODE_ENV !== "production" ? invariant(false, "useFormAction must be used inside a RouteContext") : invariant(false) : void 0;
1447
- let [match] = routeContext.matches.slice(-1);
1448
- let path = _extends3({}, useResolvedPath(action ? action : ".", {
1449
- relative
1450
- }));
1451
- let location = useLocation();
1452
- if (action == null) {
1453
- path.search = location.search;
1454
- if (match.route.index) {
1455
- let params = new URLSearchParams(path.search);
1456
- params.delete("index");
1457
- path.search = params.toString() ? "?" + params.toString() : "";
1458
- }
1459
- }
1460
- if ((!action || action === ".") && match.route.index) {
1461
- path.search = path.search ? path.search.replace(/^\?/, "?index&") : "?index";
1462
- }
1463
- if (basename !== "/") {
1464
- path.pathname = path.pathname === "/" ? basename : joinPaths([basename, path.pathname]);
1465
- }
1466
- return createPath(path);
1467
- }
1468
- var SCROLL_RESTORATION_STORAGE_KEY = "react-router-scroll-positions";
1469
- var savedScrollPositions = {};
1470
- function useScrollRestoration(_temp3) {
1471
- let {
1472
- getKey,
1473
- storageKey
1474
- } = _temp3 === void 0 ? {} : _temp3;
1475
- let {
1476
- router
1477
- } = useDataRouterContext2(DataRouterHook2.UseScrollRestoration);
1478
- let {
1479
- restoreScrollPosition,
1480
- preventScrollReset
1481
- } = useDataRouterState2(DataRouterStateHook2.UseScrollRestoration);
1482
- let {
1483
- basename
1484
- } = React2.useContext(NavigationContext);
1485
- let location = useLocation();
1486
- let matches = useMatches();
1487
- let navigation = useNavigation();
1488
- React2.useEffect(() => {
1489
- window.history.scrollRestoration = "manual";
1490
- return () => {
1491
- window.history.scrollRestoration = "auto";
1492
- };
1493
- }, []);
1494
- usePageHide(React2.useCallback(() => {
1495
- if (navigation.state === "idle") {
1496
- let key = (getKey ? getKey(location, matches) : null) || location.key;
1497
- savedScrollPositions[key] = window.scrollY;
1498
- }
1499
- sessionStorage.setItem(storageKey || SCROLL_RESTORATION_STORAGE_KEY, JSON.stringify(savedScrollPositions));
1500
- window.history.scrollRestoration = "auto";
1501
- }, [storageKey, getKey, navigation.state, location, matches]));
1502
- if (typeof document !== "undefined") {
1503
- React2.useLayoutEffect(() => {
1504
- try {
1505
- let sessionPositions = sessionStorage.getItem(storageKey || SCROLL_RESTORATION_STORAGE_KEY);
1506
- if (sessionPositions) {
1507
- savedScrollPositions = JSON.parse(sessionPositions);
1508
- }
1509
- } catch (e) {
1510
- }
1511
- }, [storageKey]);
1512
- React2.useLayoutEffect(() => {
1513
- let getKeyWithoutBasename = getKey && basename !== "/" ? (location2, matches2) => getKey(
1514
- // Strip the basename to match useLocation()
1515
- _extends3({}, location2, {
1516
- pathname: stripBasename(location2.pathname, basename) || location2.pathname
1517
- }),
1518
- matches2
1519
- ) : getKey;
1520
- let disableScrollRestoration = router == null ? void 0 : router.enableScrollRestoration(savedScrollPositions, () => window.scrollY, getKeyWithoutBasename);
1521
- return () => disableScrollRestoration && disableScrollRestoration();
1522
- }, [router, basename, getKey]);
1523
- React2.useLayoutEffect(() => {
1524
- if (restoreScrollPosition === false) {
1525
- return;
1526
- }
1527
- if (typeof restoreScrollPosition === "number") {
1528
- window.scrollTo(0, restoreScrollPosition);
1529
- return;
1530
- }
1531
- if (location.hash) {
1532
- let el = document.getElementById(decodeURIComponent(location.hash.slice(1)));
1533
- if (el) {
1534
- el.scrollIntoView();
1535
- return;
1536
- }
1537
- }
1538
- if (preventScrollReset === true) {
1539
- return;
1540
- }
1541
- window.scrollTo(0, 0);
1542
- }, [location, restoreScrollPosition, preventScrollReset]);
1543
- }
1544
- }
1545
- function usePageHide(callback, options) {
1546
- let {
1547
- capture
1548
- } = options || {};
1549
- React2.useEffect(() => {
1550
- let opts = capture != null ? {
1551
- capture
1552
- } : void 0;
1553
- window.addEventListener("pagehide", callback, opts);
1554
- return () => {
1555
- window.removeEventListener("pagehide", callback, opts);
1556
- };
1557
- }, [callback, capture]);
1558
- }
510
+ var import_react_router_dom3 = require("react-router-dom");
1559
511
 
1560
512
  // src/styled-components/breadcrumb.ts
1561
513
  var import_styled_components = __toESM(require("styled-components"));
@@ -1596,8 +548,9 @@ var TitlePage = import_styled_components.default.div`
1596
548
  `;
1597
549
 
1598
550
  // src/styled-components/menu.ts
551
+ var import_react_router_dom = require("react-router-dom");
1599
552
  var import_styled_components2 = __toESM(require("styled-components"));
1600
- var MenuItem = (0, import_styled_components2.default)(Link)`
553
+ var MenuItem = (0, import_styled_components2.default)(import_react_router_dom.Link)`
1601
554
  text-decoration: none;
1602
555
  color: black;
1603
556
  display: flex;
@@ -1715,6 +668,7 @@ var MenuOptions = import_styled_components4.default.div`
1715
668
  `;
1716
669
 
1717
670
  // src/styled-components/sidebar.ts
671
+ var import_react_router_dom2 = require("react-router-dom");
1718
672
  var import_styled_components5 = __toESM(require("styled-components"));
1719
673
  var ItemSidebar = import_styled_components5.default.div`
1720
674
  padding: 10px 25px;
@@ -1917,7 +871,7 @@ var ConfigurationOption = import_styled_components5.default.nav`
1917
871
  transition: width 0.2s ease-in-out;
1918
872
  overflow: hidden !important;
1919
873
  `;
1920
- var ItemLinkSidebar = (0, import_styled_components5.default)(Link)`
874
+ var ItemLinkSidebar = (0, import_styled_components5.default)(import_react_router_dom2.Link)`
1921
875
  padding: 10px 25px;
1922
876
  display: flex;
1923
877
  align-items: center;
@@ -1987,7 +941,7 @@ var AppBreadCrumb = ({ title, paths }) => {
1987
941
  };
1988
942
  var AppBreadCrumbNav = ({ paths }) => {
1989
943
  const { active, path, routes, setRoutes } = (0, import_react15.useContext)(BreadCrumbContext);
1990
- const navigate = useNavigate();
944
+ const navigate = (0, import_react_router_dom3.useNavigate)();
1991
945
  const { updateList } = (0, import_react15.useContext)(HistoryContext);
1992
946
  (0, import_react15.useEffect)(() => {
1993
947
  updateList({ name: active, path });
@@ -1997,7 +951,7 @@ var AppBreadCrumbNav = ({ paths }) => {
1997
951
  }, [paths]);
1998
952
  return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Breadcrumb, { children: [
1999
953
  /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "d-flex align-items-center", children: [
2000
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Link, { to: "/", className: "link", children: "HOME" }),
954
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_react_router_dom3.Link, { to: "/", className: "link", children: "HOME" }),
2001
955
  routes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_vsc.VscChevronRight, { color: "black" }),
2002
956
  routes.length > 0 ? routes.map((i, idx, arr) => {
2003
957
  if (i.route === -1) {
@@ -2007,7 +961,7 @@ var AppBreadCrumbNav = ({ paths }) => {
2007
961
  idx + 1 === arr.length ? "" : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_vsc.VscChevronRight, { color: "black" })
2008
962
  ] }, idx);
2009
963
  }
2010
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(Link, { to: i.route, className: "link", children: [
964
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_react_router_dom3.Link, { to: i.route, className: "link", children: [
2011
965
  i.title,
2012
966
  " ",
2013
967
  idx + 1 === arr.length ? "" : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_vsc.VscChevronRight, { color: "black" })
@@ -2212,41 +1166,3 @@ var Title = ({ title }) => {
2212
1166
  usePrevious,
2213
1167
  useStep
2214
1168
  });
2215
- /*! Bundled license information:
2216
-
2217
- @remix-run/router/dist/router.js:
2218
- (**
2219
- * @remix-run/router v1.9.0
2220
- *
2221
- * Copyright (c) Remix Software Inc.
2222
- *
2223
- * This source code is licensed under the MIT license found in the
2224
- * LICENSE.md file in the root directory of this source tree.
2225
- *
2226
- * @license MIT
2227
- *)
2228
-
2229
- react-router/dist/index.js:
2230
- (**
2231
- * React Router v6.16.0
2232
- *
2233
- * Copyright (c) Remix Software Inc.
2234
- *
2235
- * This source code is licensed under the MIT license found in the
2236
- * LICENSE.md file in the root directory of this source tree.
2237
- *
2238
- * @license MIT
2239
- *)
2240
-
2241
- react-router-dom/dist/index.js:
2242
- (**
2243
- * React Router DOM v6.16.0
2244
- *
2245
- * Copyright (c) Remix Software Inc.
2246
- *
2247
- * This source code is licensed under the MIT license found in the
2248
- * LICENSE.md file in the root directory of this source tree.
2249
- *
2250
- * @license MIT
2251
- *)
2252
- */