@dovetail-v2/refine 0.0.2 → 0.0.4

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.
@@ -7,7 +7,7 @@ var __publicField = (obj, key, value) => {
7
7
  import React, { useCallback, useContext, createContext, useState, useRef, useEffect, useMemo, forwardRef, useImperativeHandle, Suspense, useLayoutEffect } from "react";
8
8
  import { ResourceContext, matchResourceFromRoute, useResource, useForm as useForm$1, pickNotDeprecated, useWarnAboutChange, useList, useDelete, useParsed, useGo, useTable, useNavigation, useDeleteMany, useShow, useMenu, Refine } from "@refinedev/core";
9
9
  import { parse, stringify } from "qs";
10
- import { useLocation, useHistory, useParams, matchPath, Link, Route, NavLink, BrowserRouter, Switch } from "react-router-dom";
10
+ import { useLocation, useHistory, useParams, matchPath, Link, Route, NavLink, Router, Switch } from "react-router-dom";
11
11
  import { useUIKit, Typo, Icon, kitContext } from "@cloudtower/eagle";
12
12
  import yaml from "js-yaml";
13
13
  import { isObject, merge, get } from "lodash-es";
@@ -18,6 +18,7 @@ import { setDiagnosticsOptions } from "monaco-yaml";
18
18
  import ReactDOM from "react-dom";
19
19
  import require$$0 from "ky";
20
20
  import require$$2 from "mitt";
21
+ import i18n from "i18next";
21
22
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
22
23
  var jsxRuntime = { exports: {} };
23
24
  var reactJsxRuntime_production_min = {};
@@ -142,9 +143,9 @@ function requireReactJsxRuntime_development() {
142
143
  var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
143
144
  var stack = "";
144
145
  if (currentlyValidatingElement) {
145
- var name = getComponentName(currentlyValidatingElement.type);
146
+ var name2 = getComponentName(currentlyValidatingElement.type);
146
147
  var owner = currentlyValidatingElement._owner;
147
- stack += describeComponentFrame(name, currentlyValidatingElement._source, owner && getComponentName(owner.type));
148
+ stack += describeComponentFrame(name2, currentlyValidatingElement._source, owner && getComponentName(owner.type));
148
149
  }
149
150
  stack += ReactDebugCurrentFrame.getStackAddendum();
150
151
  if (stack !== "") {
@@ -159,22 +160,22 @@ function requireReactJsxRuntime_development() {
159
160
  }
160
161
  }
161
162
  var enableScopeAPI = false;
162
- function isValidElementType(type) {
163
- if (typeof type === "string" || typeof type === "function") {
163
+ function isValidElementType(type2) {
164
+ if (typeof type2 === "string" || typeof type2 === "function") {
164
165
  return true;
165
166
  }
166
- if (type === exports.Fragment || type === REACT_PROFILER_TYPE || type === REACT_DEBUG_TRACING_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || type === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {
167
+ if (type2 === exports.Fragment || type2 === REACT_PROFILER_TYPE || type2 === REACT_DEBUG_TRACING_MODE_TYPE || type2 === REACT_STRICT_MODE_TYPE || type2 === REACT_SUSPENSE_TYPE || type2 === REACT_SUSPENSE_LIST_TYPE || type2 === REACT_LEGACY_HIDDEN_TYPE || enableScopeAPI) {
167
168
  return true;
168
169
  }
169
- if (typeof type === "object" && type !== null) {
170
- if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_BLOCK_TYPE || type[0] === REACT_SERVER_BLOCK_TYPE) {
170
+ if (typeof type2 === "object" && type2 !== null) {
171
+ if (type2.$$typeof === REACT_LAZY_TYPE || type2.$$typeof === REACT_MEMO_TYPE || type2.$$typeof === REACT_PROVIDER_TYPE || type2.$$typeof === REACT_CONTEXT_TYPE || type2.$$typeof === REACT_FORWARD_REF_TYPE || type2.$$typeof === REACT_FUNDAMENTAL_TYPE || type2.$$typeof === REACT_BLOCK_TYPE || type2[0] === REACT_SERVER_BLOCK_TYPE) {
171
172
  return true;
172
173
  }
173
174
  }
174
175
  return false;
175
176
  }
176
177
  var BEFORE_SLASH_RE = /^(.*)[\\\/]/;
177
- function describeComponentFrame(name, source, ownerName) {
178
+ function describeComponentFrame(name2, source, ownerName) {
178
179
  var sourceInfo = "";
179
180
  if (source) {
180
181
  var path = source.fileName;
@@ -195,7 +196,7 @@ function requireReactJsxRuntime_development() {
195
196
  } else if (ownerName) {
196
197
  sourceInfo = " (created by " + ownerName + ")";
197
198
  }
198
- return "\n in " + (name || "Unknown") + sourceInfo;
199
+ return "\n in " + (name2 || "Unknown") + sourceInfo;
199
200
  }
200
201
  var Resolved = 1;
201
202
  function refineResolvedLazyComponent(lazyComponent) {
@@ -205,22 +206,22 @@ function requireReactJsxRuntime_development() {
205
206
  var functionName = innerType.displayName || innerType.name || "";
206
207
  return outerType.displayName || (functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName);
207
208
  }
208
- function getComponentName(type) {
209
- if (type == null) {
209
+ function getComponentName(type2) {
210
+ if (type2 == null) {
210
211
  return null;
211
212
  }
212
213
  {
213
- if (typeof type.tag === "number") {
214
+ if (typeof type2.tag === "number") {
214
215
  error("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue.");
215
216
  }
216
217
  }
217
- if (typeof type === "function") {
218
- return type.displayName || type.name || null;
218
+ if (typeof type2 === "function") {
219
+ return type2.displayName || type2.name || null;
219
220
  }
220
- if (typeof type === "string") {
221
- return type;
221
+ if (typeof type2 === "string") {
222
+ return type2;
222
223
  }
223
- switch (type) {
224
+ switch (type2) {
224
225
  case exports.Fragment:
225
226
  return "Fragment";
226
227
  case REACT_PORTAL_TYPE:
@@ -234,20 +235,20 @@ function requireReactJsxRuntime_development() {
234
235
  case REACT_SUSPENSE_LIST_TYPE:
235
236
  return "SuspenseList";
236
237
  }
237
- if (typeof type === "object") {
238
- switch (type.$$typeof) {
238
+ if (typeof type2 === "object") {
239
+ switch (type2.$$typeof) {
239
240
  case REACT_CONTEXT_TYPE:
240
241
  return "Context.Consumer";
241
242
  case REACT_PROVIDER_TYPE:
242
243
  return "Context.Provider";
243
244
  case REACT_FORWARD_REF_TYPE:
244
- return getWrappedName(type, type.render, "ForwardRef");
245
+ return getWrappedName(type2, type2.render, "ForwardRef");
245
246
  case REACT_MEMO_TYPE:
246
- return getComponentName(type.type);
247
+ return getComponentName(type2.type);
247
248
  case REACT_BLOCK_TYPE:
248
- return getComponentName(type.render);
249
+ return getComponentName(type2.render);
249
250
  case REACT_LAZY_TYPE: {
250
- var thenable = type;
251
+ var thenable = type2;
251
252
  var resolvedThenable = refineResolvedLazyComponent(thenable);
252
253
  if (resolvedThenable) {
253
254
  return getComponentName(resolvedThenable);
@@ -374,10 +375,10 @@ function requireReactJsxRuntime_development() {
374
375
  });
375
376
  }
376
377
  }
377
- var ReactElement = function(type, key, ref, self2, source, owner, props) {
378
+ var ReactElement = function(type2, key, ref, self2, source, owner, props) {
378
379
  var element = {
379
380
  $$typeof: REACT_ELEMENT_TYPE,
380
- type,
381
+ type: type2,
381
382
  key,
382
383
  ref,
383
384
  props,
@@ -410,7 +411,7 @@ function requireReactJsxRuntime_development() {
410
411
  }
411
412
  return element;
412
413
  };
413
- function jsxDEV(type, config, maybeKey, source, self2) {
414
+ function jsxDEV(type2, config, maybeKey, source, self2) {
414
415
  {
415
416
  var propName;
416
417
  var props = {};
@@ -431,8 +432,8 @@ function requireReactJsxRuntime_development() {
431
432
  props[propName] = config[propName];
432
433
  }
433
434
  }
434
- if (type && type.defaultProps) {
435
- var defaultProps = type.defaultProps;
435
+ if (type2 && type2.defaultProps) {
436
+ var defaultProps = type2.defaultProps;
436
437
  for (propName in defaultProps) {
437
438
  if (props[propName] === void 0) {
438
439
  props[propName] = defaultProps[propName];
@@ -440,7 +441,7 @@ function requireReactJsxRuntime_development() {
440
441
  }
441
442
  }
442
443
  if (key || ref) {
443
- var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
444
+ var displayName = typeof type2 === "function" ? type2.displayName || type2.name || "Unknown" : type2;
444
445
  if (key) {
445
446
  defineKeyPropWarningGetter(props, displayName);
446
447
  }
@@ -448,7 +449,7 @@ function requireReactJsxRuntime_development() {
448
449
  defineRefPropWarningGetter(props, displayName);
449
450
  }
450
451
  }
451
- return ReactElement(type, key, ref, self2, source, ReactCurrentOwner.current, props);
452
+ return ReactElement(type2, key, ref, self2, source, ReactCurrentOwner.current, props);
452
453
  }
453
454
  }
454
455
  var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
@@ -468,9 +469,9 @@ function requireReactJsxRuntime_development() {
468
469
  function getDeclarationErrorAddendum() {
469
470
  {
470
471
  if (ReactCurrentOwner$1.current) {
471
- var name = getComponentName(ReactCurrentOwner$1.current.type);
472
- if (name) {
473
- return "\n\nCheck the render method of `" + name + "`.";
472
+ var name2 = getComponentName(ReactCurrentOwner$1.current.type);
473
+ if (name2) {
474
+ return "\n\nCheck the render method of `" + name2 + "`.";
474
475
  }
475
476
  }
476
477
  return "";
@@ -553,27 +554,27 @@ function requireReactJsxRuntime_development() {
553
554
  }
554
555
  function validatePropTypes(element) {
555
556
  {
556
- var type = element.type;
557
- if (type === null || type === void 0 || typeof type === "string") {
557
+ var type2 = element.type;
558
+ if (type2 === null || type2 === void 0 || typeof type2 === "string") {
558
559
  return;
559
560
  }
560
561
  var propTypes;
561
- if (typeof type === "function") {
562
- propTypes = type.propTypes;
563
- } else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_MEMO_TYPE)) {
564
- propTypes = type.propTypes;
562
+ if (typeof type2 === "function") {
563
+ propTypes = type2.propTypes;
564
+ } else if (typeof type2 === "object" && (type2.$$typeof === REACT_FORWARD_REF_TYPE || type2.$$typeof === REACT_MEMO_TYPE)) {
565
+ propTypes = type2.propTypes;
565
566
  } else {
566
567
  return;
567
568
  }
568
569
  if (propTypes) {
569
- var name = getComponentName(type);
570
- checkPropTypes(propTypes, element.props, "prop", name, element);
571
- } else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
570
+ var name2 = getComponentName(type2);
571
+ checkPropTypes(propTypes, element.props, "prop", name2, element);
572
+ } else if (type2.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
572
573
  propTypesMisspellWarningShown = true;
573
- var _name = getComponentName(type);
574
+ var _name = getComponentName(type2);
574
575
  error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
575
576
  }
576
- if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
577
+ if (typeof type2.getDefaultProps === "function" && !type2.getDefaultProps.isReactClassApproved) {
577
578
  error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
578
579
  }
579
580
  }
@@ -597,12 +598,12 @@ function requireReactJsxRuntime_development() {
597
598
  }
598
599
  }
599
600
  }
600
- function jsxWithValidation(type, props, key, isStaticChildren, source, self2) {
601
+ function jsxWithValidation(type2, props, key, isStaticChildren, source, self2) {
601
602
  {
602
- var validType = isValidElementType(type);
603
+ var validType = isValidElementType(type2);
603
604
  if (!validType) {
604
605
  var info = "";
605
- if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
606
+ if (type2 === void 0 || typeof type2 === "object" && type2 !== null && Object.keys(type2).length === 0) {
606
607
  info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
607
608
  }
608
609
  var sourceInfo = getSourceInfoErrorAddendum(source);
@@ -612,19 +613,19 @@ function requireReactJsxRuntime_development() {
612
613
  info += getDeclarationErrorAddendum();
613
614
  }
614
615
  var typeString;
615
- if (type === null) {
616
+ if (type2 === null) {
616
617
  typeString = "null";
617
- } else if (Array.isArray(type)) {
618
+ } else if (Array.isArray(type2)) {
618
619
  typeString = "array";
619
- } else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
620
- typeString = "<" + (getComponentName(type.type) || "Unknown") + " />";
620
+ } else if (type2 !== void 0 && type2.$$typeof === REACT_ELEMENT_TYPE) {
621
+ typeString = "<" + (getComponentName(type2.type) || "Unknown") + " />";
621
622
  info = " Did you accidentally export a JSX literal instead of a component?";
622
623
  } else {
623
- typeString = typeof type;
624
+ typeString = typeof type2;
624
625
  }
625
626
  error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
626
627
  }
627
- var element = jsxDEV(type, props, key, source, self2);
628
+ var element = jsxDEV(type2, props, key, source, self2);
628
629
  if (element == null) {
629
630
  return element;
630
631
  }
@@ -634,7 +635,7 @@ function requireReactJsxRuntime_development() {
634
635
  if (isStaticChildren) {
635
636
  if (Array.isArray(children)) {
636
637
  for (var i = 0; i < children.length; i++) {
637
- validateChildKeys(children[i], type);
638
+ validateChildKeys(children[i], type2);
638
639
  }
639
640
  if (Object.freeze) {
640
641
  Object.freeze(children);
@@ -643,11 +644,11 @@ function requireReactJsxRuntime_development() {
643
644
  error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
644
645
  }
645
646
  } else {
646
- validateChildKeys(children, type);
647
+ validateChildKeys(children, type2);
647
648
  }
648
649
  }
649
650
  }
650
- if (type === exports.Fragment) {
651
+ if (type2 === exports.Fragment) {
651
652
  validateFragmentProps(element);
652
653
  } else {
653
654
  validatePropTypes(element);
@@ -655,14 +656,14 @@ function requireReactJsxRuntime_development() {
655
656
  return element;
656
657
  }
657
658
  }
658
- function jsxWithValidationStatic(type, props, key) {
659
+ function jsxWithValidationStatic(type2, props, key) {
659
660
  {
660
- return jsxWithValidation(type, props, key, true);
661
+ return jsxWithValidation(type2, props, key, true);
661
662
  }
662
663
  }
663
- function jsxWithValidationDynamic(type, props, key) {
664
+ function jsxWithValidationDynamic(type2, props, key) {
664
665
  {
665
- return jsxWithValidation(type, props, key, false);
666
+ return jsxWithValidation(type2, props, key, false);
666
667
  }
667
668
  }
668
669
  var jsx = jsxWithValidationDynamic;
@@ -701,9 +702,9 @@ const convertToNumberIfPossible = (value) => {
701
702
  const routerProvider = {
702
703
  go: () => {
703
704
  const { search: existingSearch, hash: existingHash } = useLocation();
704
- const history = useHistory();
705
+ const history2 = useHistory();
705
706
  const fn = useCallback(
706
- ({ to, type, query, hash, options: { keepQuery, keepHash } = {} }) => {
707
+ ({ to, type: type2, query, hash, options: { keepQuery, keepHash } = {} }) => {
707
708
  const urlQuery = {
708
709
  ...keepQuery && existingSearch && parse(existingSearch, { ignoreQueryPrefix: true }),
709
710
  ...query
@@ -719,30 +720,30 @@ const routerProvider = {
719
720
  const hasUrlHash = urlHash.length > 1;
720
721
  const urlTo = to || "";
721
722
  const fullPath = `${urlTo}${hasUrlQuery ? stringify(urlQuery, stringifyConfig) : ""}${hasUrlHash ? urlHash : ""}`;
722
- if (type === "path") {
723
+ if (type2 === "path") {
723
724
  return fullPath;
724
725
  }
725
- return history[type || "push"](fullPath);
726
+ return history2[type2 || "push"](fullPath);
726
727
  },
727
- [existingHash, existingSearch, history]
728
+ [existingHash, existingSearch, history2]
728
729
  );
729
730
  return fn;
730
731
  },
731
732
  back: () => {
732
- const history = useHistory();
733
+ const history2 = useHistory();
733
734
  const fn = useCallback(() => {
734
- history.go(-1);
735
- }, [history]);
735
+ history2.go(-1);
736
+ }, [history2]);
736
737
  return fn;
737
738
  },
738
739
  parse: () => {
739
740
  var _a;
740
741
  let params = useParams();
741
742
  const { pathname, search } = useLocation();
742
- const { resources } = useContext(ResourceContext);
743
+ const { resources: resources2 } = useContext(ResourceContext);
743
744
  const { resource, action, matchedRoute } = React.useMemo(() => {
744
- return matchResourceFromRoute(pathname, resources);
745
- }, [resources, pathname]);
745
+ return matchResourceFromRoute(pathname, resources2);
746
+ }, [resources2, pathname]);
746
747
  if (Object.entries(params).length === 0 && matchedRoute) {
747
748
  params = ((_a = matchPath(matchedRoute, pathname)) == null ? void 0 : _a.params) || {};
748
749
  }
@@ -772,6 +773,20 @@ const routerProvider = {
772
773
  return /* @__PURE__ */ jsxRuntime.exports.jsx(Link, { ...props, ref });
773
774
  })
774
775
  };
776
+ function _extends() {
777
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
778
+ for (var i = 1; i < arguments.length; i++) {
779
+ var source = arguments[i];
780
+ for (var key in source) {
781
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
782
+ target[key] = source[key];
783
+ }
784
+ }
785
+ }
786
+ return target;
787
+ };
788
+ return _extends.apply(this, arguments);
789
+ }
775
790
  function warn() {
776
791
  if (console && console.warn) {
777
792
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -793,63 +808,63 @@ function warnOnce() {
793
808
  alreadyWarned[args[0]] = new Date();
794
809
  warn(...args);
795
810
  }
796
- const loadedClb = (i18n, cb) => () => {
797
- if (i18n.isInitialized) {
811
+ const loadedClb = (i18n2, cb) => () => {
812
+ if (i18n2.isInitialized) {
798
813
  cb();
799
814
  } else {
800
815
  const initialized = () => {
801
816
  setTimeout(() => {
802
- i18n.off("initialized", initialized);
817
+ i18n2.off("initialized", initialized);
803
818
  }, 0);
804
819
  cb();
805
820
  };
806
- i18n.on("initialized", initialized);
821
+ i18n2.on("initialized", initialized);
807
822
  }
808
823
  };
809
- function loadNamespaces(i18n, ns, cb) {
810
- i18n.loadNamespaces(ns, loadedClb(i18n, cb));
824
+ function loadNamespaces(i18n2, ns, cb) {
825
+ i18n2.loadNamespaces(ns, loadedClb(i18n2, cb));
811
826
  }
812
- function loadLanguages(i18n, lng, ns, cb) {
827
+ function loadLanguages(i18n2, lng, ns, cb) {
813
828
  if (typeof ns === "string")
814
829
  ns = [ns];
815
830
  ns.forEach((n) => {
816
- if (i18n.options.ns.indexOf(n) < 0)
817
- i18n.options.ns.push(n);
831
+ if (i18n2.options.ns.indexOf(n) < 0)
832
+ i18n2.options.ns.push(n);
818
833
  });
819
- i18n.loadLanguages(lng, loadedClb(i18n, cb));
834
+ i18n2.loadLanguages(lng, loadedClb(i18n2, cb));
820
835
  }
821
- function oldI18nextHasLoadedNamespace(ns, i18n) {
836
+ function oldI18nextHasLoadedNamespace(ns, i18n2) {
822
837
  let options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
823
- const lng = i18n.languages[0];
824
- const fallbackLng = i18n.options ? i18n.options.fallbackLng : false;
825
- const lastLng = i18n.languages[i18n.languages.length - 1];
838
+ const lng = i18n2.languages[0];
839
+ const fallbackLng = i18n2.options ? i18n2.options.fallbackLng : false;
840
+ const lastLng = i18n2.languages[i18n2.languages.length - 1];
826
841
  if (lng.toLowerCase() === "cimode")
827
842
  return true;
828
843
  const loadNotPending = (l, n) => {
829
- const loadState = i18n.services.backendConnector.state[`${l}|${n}`];
844
+ const loadState = i18n2.services.backendConnector.state[`${l}|${n}`];
830
845
  return loadState === -1 || loadState === 2;
831
846
  };
832
- if (options.bindI18n && options.bindI18n.indexOf("languageChanging") > -1 && i18n.services.backendConnector.backend && i18n.isLanguageChangingTo && !loadNotPending(i18n.isLanguageChangingTo, ns))
847
+ if (options.bindI18n && options.bindI18n.indexOf("languageChanging") > -1 && i18n2.services.backendConnector.backend && i18n2.isLanguageChangingTo && !loadNotPending(i18n2.isLanguageChangingTo, ns))
833
848
  return false;
834
- if (i18n.hasResourceBundle(lng, ns))
849
+ if (i18n2.hasResourceBundle(lng, ns))
835
850
  return true;
836
- if (!i18n.services.backendConnector.backend || i18n.options.resources && !i18n.options.partialBundledLanguages)
851
+ if (!i18n2.services.backendConnector.backend || i18n2.options.resources && !i18n2.options.partialBundledLanguages)
837
852
  return true;
838
853
  if (loadNotPending(lng, ns) && (!fallbackLng || loadNotPending(lastLng, ns)))
839
854
  return true;
840
855
  return false;
841
856
  }
842
- function hasLoadedNamespace(ns, i18n) {
857
+ function hasLoadedNamespace(ns, i18n2) {
843
858
  let options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
844
- if (!i18n.languages || !i18n.languages.length) {
845
- warnOnce("i18n.languages were undefined or empty", i18n.languages);
859
+ if (!i18n2.languages || !i18n2.languages.length) {
860
+ warnOnce("i18n.languages were undefined or empty", i18n2.languages);
846
861
  return true;
847
862
  }
848
- const isNewerI18next = i18n.options.ignoreJSONStructure !== void 0;
863
+ const isNewerI18next = i18n2.options.ignoreJSONStructure !== void 0;
849
864
  if (!isNewerI18next) {
850
- return oldI18nextHasLoadedNamespace(ns, i18n, options);
865
+ return oldI18nextHasLoadedNamespace(ns, i18n2, options);
851
866
  }
852
- return i18n.hasLoadedNamespace(ns, {
867
+ return i18n2.hasLoadedNamespace(ns, {
853
868
  lng: options.lng,
854
869
  precheck: (i18nInstance2, loadNotPending) => {
855
870
  if (options.bindI18n && options.bindI18n.indexOf("languageChanging") > -1 && i18nInstance2.services.backendConnector.backend && i18nInstance2.isLanguageChangingTo && !loadNotPending(i18nInstance2.isLanguageChangingTo, ns))
@@ -892,13 +907,30 @@ let defaultOptions = {
892
907
  useSuspense: true,
893
908
  unescape
894
909
  };
910
+ function setDefaults() {
911
+ let options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
912
+ defaultOptions = {
913
+ ...defaultOptions,
914
+ ...options
915
+ };
916
+ }
895
917
  function getDefaults() {
896
918
  return defaultOptions;
897
919
  }
898
920
  let i18nInstance;
921
+ function setI18n(instance) {
922
+ i18nInstance = instance;
923
+ }
899
924
  function getI18n() {
900
925
  return i18nInstance;
901
926
  }
927
+ const initReactI18next = {
928
+ type: "3rdParty",
929
+ init(instance) {
930
+ setDefaults(instance.options.react);
931
+ setI18n(instance);
932
+ }
933
+ };
902
934
  const I18nContext = createContext();
903
935
  class ReportNamespaces {
904
936
  constructor() {
@@ -930,10 +962,10 @@ function useTranslation(ns) {
930
962
  i18n: i18nFromContext,
931
963
  defaultNS: defaultNSFromContext
932
964
  } = useContext(I18nContext) || {};
933
- const i18n = i18nFromProps || i18nFromContext || getI18n();
934
- if (i18n && !i18n.reportNamespaces)
935
- i18n.reportNamespaces = new ReportNamespaces();
936
- if (!i18n) {
965
+ const i18n2 = i18nFromProps || i18nFromContext || getI18n();
966
+ if (i18n2 && !i18n2.reportNamespaces)
967
+ i18n2.reportNamespaces = new ReportNamespaces();
968
+ if (!i18n2) {
937
969
  warnOnce("You will need to pass in an i18next instance by using initReactI18next");
938
970
  const notReadyT = (k2, optsOrDefaultValue) => {
939
971
  if (typeof optsOrDefaultValue === "string")
@@ -948,24 +980,24 @@ function useTranslation(ns) {
948
980
  retNotReady.ready = false;
949
981
  return retNotReady;
950
982
  }
951
- if (i18n.options.react && i18n.options.react.wait !== void 0)
983
+ if (i18n2.options.react && i18n2.options.react.wait !== void 0)
952
984
  warnOnce("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
953
985
  const i18nOptions = {
954
986
  ...getDefaults(),
955
- ...i18n.options.react,
987
+ ...i18n2.options.react,
956
988
  ...props
957
989
  };
958
990
  const {
959
991
  useSuspense,
960
992
  keyPrefix
961
993
  } = i18nOptions;
962
- let namespaces = ns || defaultNSFromContext || i18n.options && i18n.options.defaultNS;
994
+ let namespaces = ns || defaultNSFromContext || i18n2.options && i18n2.options.defaultNS;
963
995
  namespaces = typeof namespaces === "string" ? [namespaces] : namespaces || ["translation"];
964
- if (i18n.reportNamespaces.addUsedNamespaces)
965
- i18n.reportNamespaces.addUsedNamespaces(namespaces);
966
- const ready = (i18n.isInitialized || i18n.initializedStoreOnce) && namespaces.every((n) => hasLoadedNamespace(n, i18n, i18nOptions));
996
+ if (i18n2.reportNamespaces.addUsedNamespaces)
997
+ i18n2.reportNamespaces.addUsedNamespaces(namespaces);
998
+ const ready2 = (i18n2.isInitialized || i18n2.initializedStoreOnce) && namespaces.every((n) => hasLoadedNamespace(n, i18n2, i18nOptions));
967
999
  function getT() {
968
- return i18n.getFixedT(props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
1000
+ return i18n2.getFixedT(props.lng || null, i18nOptions.nsMode === "fallback" ? namespaces : namespaces[0], keyPrefix);
969
1001
  }
970
1002
  const [t, setT] = useState(getT);
971
1003
  let joinedNS = namespaces.join();
@@ -979,58 +1011,58 @@ function useTranslation(ns) {
979
1011
  bindI18nStore
980
1012
  } = i18nOptions;
981
1013
  isMounted.current = true;
982
- if (!ready && !useSuspense) {
1014
+ if (!ready2 && !useSuspense) {
983
1015
  if (props.lng) {
984
- loadLanguages(i18n, props.lng, namespaces, () => {
1016
+ loadLanguages(i18n2, props.lng, namespaces, () => {
985
1017
  if (isMounted.current)
986
1018
  setT(getT);
987
1019
  });
988
1020
  } else {
989
- loadNamespaces(i18n, namespaces, () => {
1021
+ loadNamespaces(i18n2, namespaces, () => {
990
1022
  if (isMounted.current)
991
1023
  setT(getT);
992
1024
  });
993
1025
  }
994
1026
  }
995
- if (ready && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) {
1027
+ if (ready2 && previousJoinedNS && previousJoinedNS !== joinedNS && isMounted.current) {
996
1028
  setT(getT);
997
1029
  }
998
1030
  function boundReset() {
999
1031
  if (isMounted.current)
1000
1032
  setT(getT);
1001
1033
  }
1002
- if (bindI18n && i18n)
1003
- i18n.on(bindI18n, boundReset);
1004
- if (bindI18nStore && i18n)
1005
- i18n.store.on(bindI18nStore, boundReset);
1034
+ if (bindI18n && i18n2)
1035
+ i18n2.on(bindI18n, boundReset);
1036
+ if (bindI18nStore && i18n2)
1037
+ i18n2.store.on(bindI18nStore, boundReset);
1006
1038
  return () => {
1007
1039
  isMounted.current = false;
1008
- if (bindI18n && i18n)
1009
- bindI18n.split(" ").forEach((e) => i18n.off(e, boundReset));
1010
- if (bindI18nStore && i18n)
1011
- bindI18nStore.split(" ").forEach((e) => i18n.store.off(e, boundReset));
1040
+ if (bindI18n && i18n2)
1041
+ bindI18n.split(" ").forEach((e) => i18n2.off(e, boundReset));
1042
+ if (bindI18nStore && i18n2)
1043
+ bindI18nStore.split(" ").forEach((e) => i18n2.store.off(e, boundReset));
1012
1044
  };
1013
- }, [i18n, joinedNS]);
1045
+ }, [i18n2, joinedNS]);
1014
1046
  const isInitial = useRef(true);
1015
1047
  useEffect(() => {
1016
1048
  if (isMounted.current && !isInitial.current) {
1017
1049
  setT(getT);
1018
1050
  }
1019
1051
  isInitial.current = false;
1020
- }, [i18n, keyPrefix]);
1021
- const ret = [t, i18n, ready];
1052
+ }, [i18n2, keyPrefix]);
1053
+ const ret = [t, i18n2, ready2];
1022
1054
  ret.t = t;
1023
- ret.i18n = i18n;
1024
- ret.ready = ready;
1025
- if (ready)
1055
+ ret.i18n = i18n2;
1056
+ ret.ready = ready2;
1057
+ if (ready2)
1026
1058
  return ret;
1027
- if (!ready && !useSuspense)
1059
+ if (!ready2 && !useSuspense)
1028
1060
  return ret;
1029
1061
  throw new Promise((resolve) => {
1030
1062
  if (props.lng) {
1031
- loadLanguages(i18n, props.lng, namespaces, () => resolve());
1063
+ loadLanguages(i18n2, props.lng, namespaces, () => resolve());
1032
1064
  } else {
1033
- loadNamespaces(i18n, namespaces, () => resolve());
1065
+ loadNamespaces(i18n2, namespaces, () => resolve());
1034
1066
  }
1035
1067
  });
1036
1068
  }
@@ -1652,9 +1684,9 @@ var lodash = { exports: {} };
1652
1684
  return reHasUnicodeWord.test(string);
1653
1685
  }
1654
1686
  function iteratorToArray(iterator) {
1655
- var data, result = [];
1656
- while (!(data = iterator.next()).done) {
1657
- result.push(data.value);
1687
+ var data2, result = [];
1688
+ while (!(data2 = iterator.next()).done) {
1689
+ result.push(data2.value);
1658
1690
  }
1659
1691
  return result;
1660
1692
  }
@@ -1863,11 +1895,11 @@ var lodash = { exports: {} };
1863
1895
  index += dir;
1864
1896
  var iterIndex = -1, value = array[index];
1865
1897
  while (++iterIndex < iterLength) {
1866
- var data = iteratees[iterIndex], iteratee2 = data.iteratee, type = data.type, computed = iteratee2(value);
1867
- if (type == LAZY_MAP_FLAG) {
1898
+ var data2 = iteratees[iterIndex], iteratee2 = data2.iteratee, type2 = data2.type, computed = iteratee2(value);
1899
+ if (type2 == LAZY_MAP_FLAG) {
1868
1900
  value = computed;
1869
1901
  } else if (!computed) {
1870
- if (type == LAZY_FILTER_FLAG) {
1902
+ if (type2 == LAZY_FILTER_FLAG) {
1871
1903
  continue outer;
1872
1904
  } else {
1873
1905
  break outer;
@@ -1898,21 +1930,21 @@ var lodash = { exports: {} };
1898
1930
  return result2;
1899
1931
  }
1900
1932
  function hashGet(key) {
1901
- var data = this.__data__;
1933
+ var data2 = this.__data__;
1902
1934
  if (nativeCreate) {
1903
- var result2 = data[key];
1935
+ var result2 = data2[key];
1904
1936
  return result2 === HASH_UNDEFINED ? undefined$1 : result2;
1905
1937
  }
1906
- return hasOwnProperty.call(data, key) ? data[key] : undefined$1;
1938
+ return hasOwnProperty.call(data2, key) ? data2[key] : undefined$1;
1907
1939
  }
1908
1940
  function hashHas(key) {
1909
- var data = this.__data__;
1910
- return nativeCreate ? data[key] !== undefined$1 : hasOwnProperty.call(data, key);
1941
+ var data2 = this.__data__;
1942
+ return nativeCreate ? data2[key] !== undefined$1 : hasOwnProperty.call(data2, key);
1911
1943
  }
1912
1944
  function hashSet(key, value) {
1913
- var data = this.__data__;
1945
+ var data2 = this.__data__;
1914
1946
  this.size += this.has(key) ? 0 : 1;
1915
- data[key] = nativeCreate && value === undefined$1 ? HASH_UNDEFINED : value;
1947
+ data2[key] = nativeCreate && value === undefined$1 ? HASH_UNDEFINED : value;
1916
1948
  return this;
1917
1949
  }
1918
1950
  Hash.prototype.clear = hashClear;
@@ -1933,33 +1965,33 @@ var lodash = { exports: {} };
1933
1965
  this.size = 0;
1934
1966
  }
1935
1967
  function listCacheDelete(key) {
1936
- var data = this.__data__, index = assocIndexOf(data, key);
1968
+ var data2 = this.__data__, index = assocIndexOf(data2, key);
1937
1969
  if (index < 0) {
1938
1970
  return false;
1939
1971
  }
1940
- var lastIndex = data.length - 1;
1972
+ var lastIndex = data2.length - 1;
1941
1973
  if (index == lastIndex) {
1942
- data.pop();
1974
+ data2.pop();
1943
1975
  } else {
1944
- splice.call(data, index, 1);
1976
+ splice.call(data2, index, 1);
1945
1977
  }
1946
1978
  --this.size;
1947
1979
  return true;
1948
1980
  }
1949
1981
  function listCacheGet(key) {
1950
- var data = this.__data__, index = assocIndexOf(data, key);
1951
- return index < 0 ? undefined$1 : data[index][1];
1982
+ var data2 = this.__data__, index = assocIndexOf(data2, key);
1983
+ return index < 0 ? undefined$1 : data2[index][1];
1952
1984
  }
1953
1985
  function listCacheHas(key) {
1954
1986
  return assocIndexOf(this.__data__, key) > -1;
1955
1987
  }
1956
1988
  function listCacheSet(key, value) {
1957
- var data = this.__data__, index = assocIndexOf(data, key);
1989
+ var data2 = this.__data__, index = assocIndexOf(data2, key);
1958
1990
  if (index < 0) {
1959
1991
  ++this.size;
1960
- data.push([key, value]);
1992
+ data2.push([key, value]);
1961
1993
  } else {
1962
- data[index][1] = value;
1994
+ data2[index][1] = value;
1963
1995
  }
1964
1996
  return this;
1965
1997
  }
@@ -1996,9 +2028,9 @@ var lodash = { exports: {} };
1996
2028
  return getMapData(this, key).has(key);
1997
2029
  }
1998
2030
  function mapCacheSet(key, value) {
1999
- var data = getMapData(this, key), size2 = data.size;
2000
- data.set(key, value);
2001
- this.size += data.size == size2 ? 0 : 1;
2031
+ var data2 = getMapData(this, key), size2 = data2.size;
2032
+ data2.set(key, value);
2033
+ this.size += data2.size == size2 ? 0 : 1;
2002
2034
  return this;
2003
2035
  }
2004
2036
  MapCache.prototype.clear = mapCacheClear;
@@ -2023,16 +2055,16 @@ var lodash = { exports: {} };
2023
2055
  SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
2024
2056
  SetCache.prototype.has = setCacheHas;
2025
2057
  function Stack(entries) {
2026
- var data = this.__data__ = new ListCache(entries);
2027
- this.size = data.size;
2058
+ var data2 = this.__data__ = new ListCache(entries);
2059
+ this.size = data2.size;
2028
2060
  }
2029
2061
  function stackClear() {
2030
2062
  this.__data__ = new ListCache();
2031
2063
  this.size = 0;
2032
2064
  }
2033
2065
  function stackDelete(key) {
2034
- var data = this.__data__, result2 = data["delete"](key);
2035
- this.size = data.size;
2066
+ var data2 = this.__data__, result2 = data2["delete"](key);
2067
+ this.size = data2.size;
2036
2068
  return result2;
2037
2069
  }
2038
2070
  function stackGet(key) {
@@ -2042,18 +2074,18 @@ var lodash = { exports: {} };
2042
2074
  return this.__data__.has(key);
2043
2075
  }
2044
2076
  function stackSet(key, value) {
2045
- var data = this.__data__;
2046
- if (data instanceof ListCache) {
2047
- var pairs = data.__data__;
2077
+ var data2 = this.__data__;
2078
+ if (data2 instanceof ListCache) {
2079
+ var pairs = data2.__data__;
2048
2080
  if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
2049
2081
  pairs.push([key, value]);
2050
- this.size = ++data.size;
2082
+ this.size = ++data2.size;
2051
2083
  return this;
2052
2084
  }
2053
- data = this.__data__ = new MapCache(pairs);
2085
+ data2 = this.__data__ = new MapCache(pairs);
2054
2086
  }
2055
- data.set(key, value);
2056
- this.size = data.size;
2087
+ data2.set(key, value);
2088
+ this.size = data2.size;
2057
2089
  return this;
2058
2090
  }
2059
2091
  Stack.prototype.clear = stackClear;
@@ -2472,15 +2504,15 @@ var lodash = { exports: {} };
2472
2504
  }
2473
2505
  object = Object2(object);
2474
2506
  while (index--) {
2475
- var data = matchData[index];
2476
- if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
2507
+ var data2 = matchData[index];
2508
+ if (noCustomizer && data2[2] ? data2[1] !== object[data2[0]] : !(data2[0] in object)) {
2477
2509
  return false;
2478
2510
  }
2479
2511
  }
2480
2512
  while (++index < length) {
2481
- data = matchData[index];
2482
- var key = data[0], objValue = object[key], srcValue = data[1];
2483
- if (noCustomizer && data[2]) {
2513
+ data2 = matchData[index];
2514
+ var key = data2[0], objValue = object[key], srcValue = data2[1];
2515
+ if (noCustomizer && data2[2]) {
2484
2516
  if (objValue === undefined$1 && !(key in object)) {
2485
2517
  return false;
2486
2518
  }
@@ -2783,8 +2815,8 @@ var lodash = { exports: {} };
2783
2815
  }
2784
2816
  return object;
2785
2817
  }
2786
- var baseSetData = !metaMap ? identity : function(func, data) {
2787
- metaMap.set(func, data);
2818
+ var baseSetData = !metaMap ? identity : function(func, data2) {
2819
+ metaMap.set(func, data2);
2788
2820
  return func;
2789
2821
  };
2790
2822
  var baseSetToString = !defineProperty ? identity : function(func, string) {
@@ -3288,9 +3320,9 @@ var lodash = { exports: {} };
3288
3320
  index = wrapper ? index : length;
3289
3321
  while (++index < length) {
3290
3322
  func = funcs[index];
3291
- var funcName = getFuncName(func), data = funcName == "wrapper" ? getData(func) : undefined$1;
3292
- if (data && isLaziable(data[0]) && data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data[4].length && data[9] == 1) {
3293
- wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);
3323
+ var funcName = getFuncName(func), data2 = funcName == "wrapper" ? getData(func) : undefined$1;
3324
+ if (data2 && isLaziable(data2[0]) && data2[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) && !data2[4].length && data2[9] == 1) {
3325
+ wrapper = wrapper[getFuncName(data2[0])].apply(wrapper, data2[3]);
3294
3326
  } else {
3295
3327
  wrapper = func.length == 1 && isLaziable(func) ? wrapper[funcName]() : wrapper.thru(func);
3296
3328
  }
@@ -3517,7 +3549,7 @@ var lodash = { exports: {} };
3517
3549
  var partialsRight = partials, holdersRight = holders;
3518
3550
  partials = holders = undefined$1;
3519
3551
  }
3520
- var data = isBindKey ? undefined$1 : getData(func);
3552
+ var data2 = isBindKey ? undefined$1 : getData(func);
3521
3553
  var newData = [
3522
3554
  func,
3523
3555
  bitmask,
@@ -3530,8 +3562,8 @@ var lodash = { exports: {} };
3530
3562
  ary2,
3531
3563
  arity
3532
3564
  ];
3533
- if (data) {
3534
- mergeData(newData, data);
3565
+ if (data2) {
3566
+ mergeData(newData, data2);
3535
3567
  }
3536
3568
  func = newData[0];
3537
3569
  bitmask = newData[1];
@@ -3551,7 +3583,7 @@ var lodash = { exports: {} };
3551
3583
  } else {
3552
3584
  result2 = createHybrid.apply(undefined$1, newData);
3553
3585
  }
3554
- var setter = data ? baseSetData : setData;
3586
+ var setter = data2 ? baseSetData : setData;
3555
3587
  return setWrapToString(setter(result2, newData), func, bitmask);
3556
3588
  }
3557
3589
  function customDefaultsAssignIn(objValue, srcValue, key, object) {
@@ -3718,9 +3750,9 @@ var lodash = { exports: {} };
3718
3750
  function getFuncName(func) {
3719
3751
  var result2 = func.name + "", array = realNames[result2], length = hasOwnProperty.call(realNames, result2) ? array.length : 0;
3720
3752
  while (length--) {
3721
- var data = array[length], otherFunc = data.func;
3753
+ var data2 = array[length], otherFunc = data2.func;
3722
3754
  if (otherFunc == null || otherFunc == func) {
3723
- return data.name;
3755
+ return data2.name;
3724
3756
  }
3725
3757
  }
3726
3758
  return result2;
@@ -3735,8 +3767,8 @@ var lodash = { exports: {} };
3735
3767
  return arguments.length ? result2(arguments[0], arguments[1]) : result2;
3736
3768
  }
3737
3769
  function getMapData(map2, key) {
3738
- var data = map2.__data__;
3739
- return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
3770
+ var data2 = map2.__data__;
3771
+ return isKeyable(key) ? data2[typeof key == "string" ? "string" : "hash"] : data2.map;
3740
3772
  }
3741
3773
  function getMatchData(object) {
3742
3774
  var result2 = keys(object), length = result2.length;
@@ -3808,8 +3840,8 @@ var lodash = { exports: {} };
3808
3840
  function getView(start, end, transforms) {
3809
3841
  var index = -1, length = transforms.length;
3810
3842
  while (++index < length) {
3811
- var data = transforms[index], size2 = data.size;
3812
- switch (data.type) {
3843
+ var data2 = transforms[index], size2 = data2.size;
3844
+ switch (data2.type) {
3813
3845
  case "drop":
3814
3846
  start += size2;
3815
3847
  break;
@@ -3904,16 +3936,16 @@ var lodash = { exports: {} };
3904
3936
  return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
3905
3937
  }
3906
3938
  function isIndex(value, length) {
3907
- var type = typeof value;
3939
+ var type2 = typeof value;
3908
3940
  length = length == null ? MAX_SAFE_INTEGER : length;
3909
- return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
3941
+ return !!length && (type2 == "number" || type2 != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
3910
3942
  }
3911
3943
  function isIterateeCall(value, index, object) {
3912
3944
  if (!isObject2(object)) {
3913
3945
  return false;
3914
3946
  }
3915
- var type = typeof index;
3916
- if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) {
3947
+ var type2 = typeof index;
3948
+ if (type2 == "number" ? isArrayLike(object) && isIndex(index, object.length) : type2 == "string" && index in object) {
3917
3949
  return eq(object[index], value);
3918
3950
  }
3919
3951
  return false;
@@ -3922,15 +3954,15 @@ var lodash = { exports: {} };
3922
3954
  if (isArray(value)) {
3923
3955
  return false;
3924
3956
  }
3925
- var type = typeof value;
3926
- if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) {
3957
+ var type2 = typeof value;
3958
+ if (type2 == "number" || type2 == "symbol" || type2 == "boolean" || value == null || isSymbol(value)) {
3927
3959
  return true;
3928
3960
  }
3929
3961
  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object2(object);
3930
3962
  }
3931
3963
  function isKeyable(value) {
3932
- var type = typeof value;
3933
- return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
3964
+ var type2 = typeof value;
3965
+ return type2 == "string" || type2 == "number" || type2 == "symbol" || type2 == "boolean" ? value !== "__proto__" : value === null;
3934
3966
  }
3935
3967
  function isLaziable(func) {
3936
3968
  var funcName = getFuncName(func), other = lodash2[funcName];
@@ -3940,8 +3972,8 @@ var lodash = { exports: {} };
3940
3972
  if (func === other) {
3941
3973
  return true;
3942
3974
  }
3943
- var data = getData(other);
3944
- return !!data && func === data[0];
3975
+ var data2 = getData(other);
3976
+ return !!data2 && func === data2[0];
3945
3977
  }
3946
3978
  function isMasked(func) {
3947
3979
  return !!maskSrcKey && maskSrcKey in func;
@@ -3972,41 +4004,41 @@ var lodash = { exports: {} };
3972
4004
  var cache = result2.cache;
3973
4005
  return result2;
3974
4006
  }
3975
- function mergeData(data, source) {
3976
- var bitmask = data[1], srcBitmask = source[1], newBitmask = bitmask | srcBitmask, isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
3977
- var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG && data[7].length <= source[8] || srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG) && source[7].length <= source[8] && bitmask == WRAP_CURRY_FLAG;
4007
+ function mergeData(data2, source) {
4008
+ var bitmask = data2[1], srcBitmask = source[1], newBitmask = bitmask | srcBitmask, isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);
4009
+ var isCombo = srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_CURRY_FLAG || srcBitmask == WRAP_ARY_FLAG && bitmask == WRAP_REARG_FLAG && data2[7].length <= source[8] || srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG) && source[7].length <= source[8] && bitmask == WRAP_CURRY_FLAG;
3978
4010
  if (!(isCommon || isCombo)) {
3979
- return data;
4011
+ return data2;
3980
4012
  }
3981
4013
  if (srcBitmask & WRAP_BIND_FLAG) {
3982
- data[2] = source[2];
4014
+ data2[2] = source[2];
3983
4015
  newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;
3984
4016
  }
3985
4017
  var value = source[3];
3986
4018
  if (value) {
3987
- var partials = data[3];
3988
- data[3] = partials ? composeArgs(partials, value, source[4]) : value;
3989
- data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];
4019
+ var partials = data2[3];
4020
+ data2[3] = partials ? composeArgs(partials, value, source[4]) : value;
4021
+ data2[4] = partials ? replaceHolders(data2[3], PLACEHOLDER) : source[4];
3990
4022
  }
3991
4023
  value = source[5];
3992
4024
  if (value) {
3993
- partials = data[5];
3994
- data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
3995
- data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];
4025
+ partials = data2[5];
4026
+ data2[5] = partials ? composeArgsRight(partials, value, source[6]) : value;
4027
+ data2[6] = partials ? replaceHolders(data2[5], PLACEHOLDER) : source[6];
3996
4028
  }
3997
4029
  value = source[7];
3998
4030
  if (value) {
3999
- data[7] = value;
4031
+ data2[7] = value;
4000
4032
  }
4001
4033
  if (srcBitmask & WRAP_ARY_FLAG) {
4002
- data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);
4034
+ data2[8] = data2[8] == null ? source[8] : nativeMin(data2[8], source[8]);
4003
4035
  }
4004
- if (data[9] == null) {
4005
- data[9] = source[9];
4036
+ if (data2[9] == null) {
4037
+ data2[9] = source[9];
4006
4038
  }
4007
- data[0] = source[0];
4008
- data[1] = newBitmask;
4009
- return data;
4039
+ data2[0] = source[0];
4040
+ data2[1] = newBitmask;
4041
+ return data2;
4010
4042
  }
4011
4043
  function nativeKeysIn(object) {
4012
4044
  var result2 = [];
@@ -4875,7 +4907,7 @@ var lodash = { exports: {} };
4875
4907
  lastArgs = lastThis = undefined$1;
4876
4908
  return result2;
4877
4909
  }
4878
- function cancel() {
4910
+ function cancel2() {
4879
4911
  if (timerId !== undefined$1) {
4880
4912
  clearTimeout2(timerId);
4881
4913
  }
@@ -4905,7 +4937,7 @@ var lodash = { exports: {} };
4905
4937
  }
4906
4938
  return result2;
4907
4939
  }
4908
- debounced.cancel = cancel;
4940
+ debounced.cancel = cancel2;
4909
4941
  debounced.flush = flush;
4910
4942
  return debounced;
4911
4943
  }
@@ -5125,8 +5157,8 @@ var lodash = { exports: {} };
5125
5157
  return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
5126
5158
  }
5127
5159
  function isObject2(value) {
5128
- var type = typeof value;
5129
- return value != null && (type == "object" || type == "function");
5160
+ var type2 = typeof value;
5161
+ return value != null && (type2 == "object" || type2 == "function");
5130
5162
  }
5131
5163
  function isObjectLike(value) {
5132
5164
  return value != null && typeof value == "object";
@@ -5272,7 +5304,7 @@ var lodash = { exports: {} };
5272
5304
  copyObject(source, keys(source), object, customizer);
5273
5305
  });
5274
5306
  var at = flatRest(baseAt);
5275
- function create(prototype, properties) {
5307
+ function create2(prototype, properties) {
5276
5308
  var result2 = baseCreate(prototype);
5277
5309
  return properties == null ? result2 : baseAssign(result2, properties);
5278
5310
  }
@@ -5956,9 +5988,9 @@ var lodash = { exports: {} };
5956
5988
  }
5957
5989
  return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));
5958
5990
  }
5959
- function uniqueId(prefix) {
5991
+ function uniqueId(prefix2) {
5960
5992
  var id = ++idCounter;
5961
- return toString(prefix) + id;
5993
+ return toString(prefix2) + id;
5962
5994
  }
5963
5995
  var add = createMathOperation(function(augend, addend) {
5964
5996
  return augend + addend;
@@ -6019,7 +6051,7 @@ var lodash = { exports: {} };
6019
6051
  lodash2.conforms = conforms;
6020
6052
  lodash2.constant = constant;
6021
6053
  lodash2.countBy = countBy;
6022
- lodash2.create = create;
6054
+ lodash2.create = create2;
6023
6055
  lodash2.curry = curry;
6024
6056
  lodash2.curryRight = curryRight;
6025
6057
  lodash2.debounce = debounce;
@@ -6337,12 +6369,12 @@ var lodash = { exports: {} };
6337
6369
  };
6338
6370
  });
6339
6371
  arrayEach(["filter", "map", "takeWhile"], function(methodName, index) {
6340
- var type = index + 1, isFilter = type == LAZY_FILTER_FLAG || type == LAZY_WHILE_FLAG;
6372
+ var type2 = index + 1, isFilter = type2 == LAZY_FILTER_FLAG || type2 == LAZY_WHILE_FLAG;
6341
6373
  LazyWrapper.prototype[methodName] = function(iteratee2) {
6342
6374
  var result2 = this.clone();
6343
6375
  result2.__iteratees__.push({
6344
6376
  "iteratee": getIteratee(iteratee2, 3),
6345
- "type": type
6377
+ "type": type2
6346
6378
  });
6347
6379
  result2.__filtered__ = result2.__filtered__ || isFilter;
6348
6380
  return result2;
@@ -6910,14 +6942,14 @@ const rfc1035LabelRules = [
6910
6942
  function NamespaceSelectWidget(props) {
6911
6943
  const kit = useUIKit();
6912
6944
  const { action } = useResource();
6913
- const { data } = useList({
6945
+ const { data: data2 } = useList({
6914
6946
  resource: "namespaces",
6915
6947
  meta: {
6916
6948
  resourceBasePath: "/api/v1",
6917
6949
  kind: "Namespace"
6918
6950
  }
6919
6951
  });
6920
- return /* @__PURE__ */ jsxRuntime.exports.jsx(kit.select, { input: props, disabled: action === "edit", children: data == null ? void 0 : data.data.map((namespace) => /* @__PURE__ */ jsxRuntime.exports.jsx(kit.option, { value: namespace.metadata.name, children: namespace.metadata.name }, namespace.metadata.name)) });
6952
+ return /* @__PURE__ */ jsxRuntime.exports.jsx(kit.select, { input: props, disabled: action === "edit", children: data2 == null ? void 0 : data2.data.map((namespace2) => /* @__PURE__ */ jsxRuntime.exports.jsx(kit.option, { value: namespace2.metadata.name, children: namespace2.metadata.name }, namespace2.metadata.name)) });
6921
6953
  }
6922
6954
  const namespaceRules = [
6923
6955
  {
@@ -7181,16 +7213,16 @@ const BASE_WORKLOAD_SPEC_INIT_VALUE = {
7181
7213
  }
7182
7214
  });
7183
7215
  class ResourceModel {
7184
- constructor(data) {
7216
+ constructor(data2) {
7185
7217
  __publicField(this, "id");
7186
7218
  __publicField(this, "apiVersion");
7187
7219
  __publicField(this, "kind");
7188
7220
  __publicField(this, "metadata");
7189
- this.data = data;
7190
- this.id = data.id;
7191
- this.apiVersion = data.apiVersion;
7192
- this.kind = data.kind;
7193
- this.metadata = data.metadata;
7221
+ this.data = data2;
7222
+ this.id = data2.id;
7223
+ this.apiVersion = data2.apiVersion;
7224
+ this.kind = data2.kind;
7225
+ this.metadata = data2.metadata;
7194
7226
  }
7195
7227
  get name() {
7196
7228
  var _a;
@@ -7274,7 +7306,7 @@ const ErrorMsgStyle = "eh2qjnl";
7274
7306
  const ErrorWrapperStyle = "e19q2bnp";
7275
7307
  const YamlEditorStyle = "y16u5v3w";
7276
7308
  const MonacoYamlEditor$2 = React.lazy(() => Promise.resolve().then(() => MonacoYamlEditor$1));
7277
- const MonacoYamlDiffEditor = React.lazy(() => import("./MonacoYamlDiffEditor.a7832cec.js"));
7309
+ const MonacoYamlDiffEditor = React.lazy(() => import("./MonacoYamlDiffEditor.0954476c.js"));
7278
7310
  const YamlEditorComponent = forwardRef(
7279
7311
  function YamlEditorComponent2(props, ref) {
7280
7312
  const {
@@ -7523,7 +7555,7 @@ function copyToClipboard(text) {
7523
7555
  document.execCommand("copy");
7524
7556
  document.body.removeChild(input);
7525
7557
  }
7526
- function getCommonErrors(response, i18n) {
7558
+ function getCommonErrors(response, i18n2) {
7527
7559
  var _a;
7528
7560
  if (!((response == null ? void 0 : response.message) || (response == null ? void 0 : response.code) || (response == null ? void 0 : response.reason) || (response == null ? void 0 : response.details) || (response == null ? void 0 : response.graphQLErrors))) {
7529
7561
  return [];
@@ -7532,17 +7564,17 @@ function getCommonErrors(response, i18n) {
7532
7564
  if (causes.length) {
7533
7565
  return causes.map((cause) => {
7534
7566
  let params = {};
7535
- let message = cause.message;
7567
+ let message2 = cause.message;
7536
7568
  try {
7537
7569
  const info = JSON.parse(cause.message);
7538
7570
  params = info.params;
7539
- message = info.message;
7571
+ message2 = info.message;
7540
7572
  } catch {
7541
- return i18n.t(
7573
+ return i18n2.t(
7542
7574
  [
7543
7575
  `error.${cause.reason}`,
7544
7576
  `error.${cause.code}`,
7545
- `${message}${cause.field ? `(${cause.field})` : ""}`
7577
+ `${message2}${cause.field ? `(${cause.field})` : ""}`
7546
7578
  ],
7547
7579
  {
7548
7580
  ...params,
@@ -7550,11 +7582,11 @@ function getCommonErrors(response, i18n) {
7550
7582
  }
7551
7583
  );
7552
7584
  }
7553
- return i18n.t(
7585
+ return i18n2.t(
7554
7586
  [
7555
7587
  `error.${cause.reason}`,
7556
7588
  `error.${cause.code}`,
7557
- `${message}${cause.field ? `(${cause.field})` : ""}`
7589
+ `${message2}${cause.field ? `(${cause.field})` : ""}`
7558
7590
  ],
7559
7591
  {
7560
7592
  ...params,
@@ -7564,7 +7596,7 @@ function getCommonErrors(response, i18n) {
7564
7596
  });
7565
7597
  }
7566
7598
  return [
7567
- i18n.t(
7599
+ i18n2.t(
7568
7600
  [`error.${response.code}`, `error.${response.reason}`, response.message || ""],
7569
7601
  { fallbackLng: "" }
7570
7602
  )
@@ -7584,9 +7616,9 @@ function YamlForm(props) {
7584
7616
  const kit = useUIKit();
7585
7617
  const {
7586
7618
  t,
7587
- i18n
7619
+ i18n: i18n2
7588
7620
  } = useTranslation();
7589
- const responseErrors = errorResponseBody ? getCommonErrors(errorResponseBody, i18n) : [];
7621
+ const responseErrors = errorResponseBody ? getCommonErrors(errorResponseBody, i18n2) : [];
7590
7622
  return /* @__PURE__ */ jsxRuntime.exports.jsx(FormLayout, {
7591
7623
  children: /* @__PURE__ */ jsxRuntime.exports.jsx(kit.form, {
7592
7624
  ...formProps,
@@ -7687,15 +7719,15 @@ function download(filename, content) {
7687
7719
  }
7688
7720
  function useDownloadYAML() {
7689
7721
  return function(options) {
7690
- const { name, item } = options;
7722
+ const { name: name2, item } = options;
7691
7723
  const content = yaml.dump(item);
7692
- download(`${name}.yaml`, content);
7724
+ download(`${name2}.yaml`, content);
7693
7725
  };
7694
7726
  }
7695
7727
  function useEdit() {
7696
7728
  const { resource } = useParsed();
7697
7729
  const go = useGo();
7698
- const edit = useCallback(
7730
+ const edit2 = useCallback(
7699
7731
  (id) => {
7700
7732
  go({
7701
7733
  to: `/${resource == null ? void 0 : resource.name}/edit`,
@@ -7706,14 +7738,14 @@ function useEdit() {
7706
7738
  },
7707
7739
  [go, resource == null ? void 0 : resource.name]
7708
7740
  );
7709
- return { edit };
7741
+ return { edit: edit2 };
7710
7742
  }
7711
7743
  function K8sDropdown(props) {
7712
- const { data } = props;
7744
+ const { data: data2 } = props;
7713
7745
  const kit = useUIKit();
7714
7746
  const useResourceResult = useResource();
7715
7747
  const resource = useResourceResult.resource;
7716
- const { edit } = useEdit();
7748
+ const { edit: edit2 } = useEdit();
7717
7749
  const { modalProps, visible, openDeleteConfirmModal } = useDeleteModal(
7718
7750
  (resource == null ? void 0 : resource.name) || ""
7719
7751
  );
@@ -7728,8 +7760,8 @@ function K8sDropdown(props) {
7728
7760
  kit.menuItem,
7729
7761
  {
7730
7762
  onClick: () => {
7731
- if (data.id) {
7732
- edit(data.id);
7763
+ if (data2.id) {
7764
+ edit2(data2.id);
7733
7765
  }
7734
7766
  },
7735
7767
  children: /* @__PURE__ */ jsxRuntime.exports.jsx(Icon, { src: EditPen16PrimaryIcon, children: t("edit") })
@@ -7740,7 +7772,7 @@ function K8sDropdown(props) {
7740
7772
  {
7741
7773
  danger: true,
7742
7774
  onClick: () => {
7743
- openDeleteConfirmModal(data.id);
7775
+ openDeleteConfirmModal(data2.id);
7744
7776
  },
7745
7777
  children: /* @__PURE__ */ jsxRuntime.exports.jsx(Icon, { src: TrashBinDelete16Icon, children: t("delete") })
7746
7778
  }
@@ -7750,10 +7782,10 @@ function K8sDropdown(props) {
7750
7782
  {
7751
7783
  onClick: () => {
7752
7784
  var _a;
7753
- if (data.id) {
7785
+ if (data2.id) {
7754
7786
  download2({
7755
- name: ((_a = data.metadata) == null ? void 0 : _a.name) || data.kind || "",
7756
- item: data
7787
+ name: ((_a = data2.metadata) == null ? void 0 : _a.name) || data2.kind || "",
7788
+ item: data2
7757
7789
  });
7758
7790
  }
7759
7791
  },
@@ -7908,7 +7940,7 @@ const useNamespacesFilter = () => {
7908
7940
  const NamespacesFilter = () => {
7909
7941
  const kit = useUIKit();
7910
7942
  const { t } = useTranslation();
7911
- const { data } = useList({
7943
+ const { data: data2 } = useList({
7912
7944
  resource: "namespaces",
7913
7945
  meta: {
7914
7946
  resourceBasePath: "/api/v1",
@@ -7927,9 +7959,9 @@ const NamespacesFilter = () => {
7927
7959
  },
7928
7960
  children: [
7929
7961
  /* @__PURE__ */ jsxRuntime.exports.jsx(kit.option, { value: "_all", children: t("dovetail.all_namespaces") }, "_all"),
7930
- data == null ? void 0 : data.data.map((namespace) => {
7931
- const { name } = namespace.metadata;
7932
- return /* @__PURE__ */ jsxRuntime.exports.jsx(kit.option, { value: name, children: name }, name);
7962
+ data2 == null ? void 0 : data2.data.map((namespace2) => {
7963
+ const { name: name2 } = namespace2.metadata;
7964
+ return /* @__PURE__ */ jsxRuntime.exports.jsx(kit.option, { value: name2, children: name2 }, name2);
7933
7965
  })
7934
7966
  ]
7935
7967
  }
@@ -7989,7 +8021,7 @@ const useEagleTable = (params) => {
7989
8021
  return { tableProps: finalProps, selectedKeys, ...table };
7990
8022
  };
7991
8023
  const index_86mllf = "";
7992
- const StateTag = ({ state }) => {
8024
+ const StateTag = ({ state: state2 }) => {
7993
8025
  const kit = useUIKit();
7994
8026
  const colorMap = {
7995
8027
  running: "green",
@@ -7998,7 +8030,7 @@ const StateTag = ({ state }) => {
7998
8030
  terminated: "red",
7999
8031
  pending: "gray"
8000
8032
  };
8001
- return /* @__PURE__ */ jsxRuntime.exports.jsx(kit.tag, { color: colorMap[(state == null ? void 0 : state.toLowerCase()) || ""] || "green", children: state || "Active" });
8033
+ return /* @__PURE__ */ jsxRuntime.exports.jsx(kit.tag, { color: colorMap[(state2 == null ? void 0 : state2.toLowerCase()) || ""] || "green", children: state2 || "Active" });
8002
8034
  };
8003
8035
  var dayjs_min = { exports: {} };
8004
8036
  (function(module, exports) {
@@ -8323,7 +8355,7 @@ const Time = (props) => {
8323
8355
  const index_1wf16rt = "";
8324
8356
  const NameLink = (props) => {
8325
8357
  var _a;
8326
- const { name, id, resource } = props;
8358
+ const { name: name2, id, resource } = props;
8327
8359
  const kit = useUIKit();
8328
8360
  const go = useGo();
8329
8361
  const navigation = useNavigation();
@@ -8341,7 +8373,7 @@ const NameLink = (props) => {
8341
8373
  }
8342
8374
  });
8343
8375
  },
8344
- children: name
8376
+ children: name2
8345
8377
  }
8346
8378
  );
8347
8379
  };
@@ -8497,13 +8529,13 @@ function styled(tag) {
8497
8529
  const { vars } = options;
8498
8530
  if (vars) {
8499
8531
  const style2 = {};
8500
- for (const name in vars) {
8501
- const variable = vars[name];
8532
+ for (const name2 in vars) {
8533
+ const variable = vars[name2];
8502
8534
  const result = variable[0];
8503
8535
  const unit = variable[1] || "";
8504
8536
  const value = typeof result === "function" ? result(props) : result;
8505
8537
  warnIfInvalid(value, options.name);
8506
- style2[`--${name}`] = `${value}${unit}`;
8538
+ style2[`--${name2}`] = `${value}${unit}`;
8507
8539
  }
8508
8540
  const ownStyle = filteredProps.style || {};
8509
8541
  const keys = Object.keys(ownStyle);
@@ -8620,14 +8652,14 @@ function Table(props) {
8620
8652
  }
8621
8653
  function CreateButton() {
8622
8654
  const { resource } = useResource();
8623
- const { create } = useNavigation();
8655
+ const { create: create2 } = useNavigation();
8624
8656
  const kit = useUIKit();
8625
8657
  const { t } = useTranslation();
8626
8658
  const onClick = useCallback(() => {
8627
8659
  if (resource == null ? void 0 : resource.name) {
8628
- create(resource.name);
8660
+ create2(resource.name);
8629
8661
  }
8630
- }, [create, resource == null ? void 0 : resource.name]);
8662
+ }, [create2, resource == null ? void 0 : resource.name]);
8631
8663
  return /* @__PURE__ */ jsxRuntime.exports.jsx(kit.button, { type: "primary", onClick, children: t("create") });
8632
8664
  }
8633
8665
  const useDeleteManyModal = (resource, ids) => {
@@ -8718,14 +8750,14 @@ function ListPage(props) {
8718
8750
  });
8719
8751
  }
8720
8752
  function ResourceList(props) {
8721
- const { formatter, name, columns, Dropdown } = props;
8722
- const { i18n } = useTranslation();
8753
+ const { formatter, name: name2, columns, Dropdown } = props;
8754
+ const { i18n: i18n2 } = useTranslation();
8723
8755
  const { tableProps, selectedKeys } = useEagleTable({
8724
8756
  useTableParams: {},
8725
8757
  columns: [
8726
- PhaseColumnRenderer(i18n),
8727
- NameColumnRenderer(i18n),
8728
- NameSpaceColumnRenderer(i18n),
8758
+ PhaseColumnRenderer(i18n2),
8759
+ NameColumnRenderer(i18n2),
8760
+ NameSpaceColumnRenderer(i18n2),
8729
8761
  ...columns
8730
8762
  ],
8731
8763
  tableProps: {
@@ -8734,7 +8766,7 @@ function ResourceList(props) {
8734
8766
  formatter,
8735
8767
  Dropdown
8736
8768
  });
8737
- return /* @__PURE__ */ jsxRuntime.exports.jsx(ListPage, { title: name || "", selectedKeys, tableProps });
8769
+ return /* @__PURE__ */ jsxRuntime.exports.jsx(ListPage, { title: name2 || "", selectedKeys, tableProps });
8738
8770
  }
8739
8771
  const index_1hr2h38 = "";
8740
8772
  const index_m52iq6 = "";
@@ -8934,12 +8966,12 @@ const ShowContent = (props) => {
8934
8966
  t
8935
8967
  } = useTranslation();
8936
8968
  const {
8937
- data
8969
+ data: data2
8938
8970
  } = queryResult;
8939
- if (!(data == null ? void 0 : data.data)) {
8971
+ if (!(data2 == null ? void 0 : data2.data)) {
8940
8972
  return null;
8941
8973
  }
8942
- const record = formatter(data == null ? void 0 : data.data);
8974
+ const record = formatter(data2 == null ? void 0 : data2.data);
8943
8975
  const FirstLineFields = [{
8944
8976
  key: "NameSpace",
8945
8977
  title: t("namespace"),
@@ -9093,7 +9125,7 @@ function ResourceShow(props) {
9093
9125
  }
9094
9126
  const ResourceCRUD = (props) => {
9095
9127
  const { configs, urlPrefix } = props;
9096
- const { i18n } = useTranslation();
9128
+ const { i18n: i18n2 } = useTranslation();
9097
9129
  return /* @__PURE__ */ jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, { children: configs.map((config) => {
9098
9130
  var _a, _b;
9099
9131
  const formatter = config.formatter || ((v2) => new ResourceModel(v2));
@@ -9103,7 +9135,7 @@ const ResourceCRUD = (props) => {
9103
9135
  {
9104
9136
  name: config.kind,
9105
9137
  formatter,
9106
- columns: ((_a = config.columns) == null ? void 0 : _a.call(config, i18n)) || [],
9138
+ columns: ((_a = config.columns) == null ? void 0 : _a.call(config, i18n2)) || [],
9107
9139
  Dropdown: config.Dropdown
9108
9140
  }
9109
9141
  ) }),
@@ -9111,7 +9143,7 @@ const ResourceCRUD = (props) => {
9111
9143
  ResourceShow,
9112
9144
  {
9113
9145
  formatter,
9114
- filedGroups: ((_b = config.showFields) == null ? void 0 : _b.call(config, i18n)) || [],
9146
+ filedGroups: ((_b = config.showFields) == null ? void 0 : _b.call(config, i18n2)) || [],
9115
9147
  Dropdown: config.Dropdown
9116
9148
  }
9117
9149
  ) }),
@@ -9684,6 +9716,480 @@ lib.informerLog = R;
9684
9716
  var liveProvider = lib.liveProvider = It;
9685
9717
  lib.mapOperator = nt;
9686
9718
  lib.sortData = M;
9719
+ function isAbsolute(pathname) {
9720
+ return pathname.charAt(0) === "/";
9721
+ }
9722
+ function spliceOne(list, index) {
9723
+ for (var i = index, k2 = i + 1, n = list.length; k2 < n; i += 1, k2 += 1) {
9724
+ list[i] = list[k2];
9725
+ }
9726
+ list.pop();
9727
+ }
9728
+ function resolvePathname(to, from) {
9729
+ if (from === void 0)
9730
+ from = "";
9731
+ var toParts = to && to.split("/") || [];
9732
+ var fromParts = from && from.split("/") || [];
9733
+ var isToAbs = to && isAbsolute(to);
9734
+ var isFromAbs = from && isAbsolute(from);
9735
+ var mustEndAbs = isToAbs || isFromAbs;
9736
+ if (to && isAbsolute(to)) {
9737
+ fromParts = toParts;
9738
+ } else if (toParts.length) {
9739
+ fromParts.pop();
9740
+ fromParts = fromParts.concat(toParts);
9741
+ }
9742
+ if (!fromParts.length)
9743
+ return "/";
9744
+ var hasTrailingSlash;
9745
+ if (fromParts.length) {
9746
+ var last = fromParts[fromParts.length - 1];
9747
+ hasTrailingSlash = last === "." || last === ".." || last === "";
9748
+ } else {
9749
+ hasTrailingSlash = false;
9750
+ }
9751
+ var up = 0;
9752
+ for (var i = fromParts.length; i >= 0; i--) {
9753
+ var part = fromParts[i];
9754
+ if (part === ".") {
9755
+ spliceOne(fromParts, i);
9756
+ } else if (part === "..") {
9757
+ spliceOne(fromParts, i);
9758
+ up++;
9759
+ } else if (up) {
9760
+ spliceOne(fromParts, i);
9761
+ up--;
9762
+ }
9763
+ }
9764
+ if (!mustEndAbs)
9765
+ for (; up--; up)
9766
+ fromParts.unshift("..");
9767
+ if (mustEndAbs && fromParts[0] !== "" && (!fromParts[0] || !isAbsolute(fromParts[0])))
9768
+ fromParts.unshift("");
9769
+ var result = fromParts.join("/");
9770
+ if (hasTrailingSlash && result.substr(-1) !== "/")
9771
+ result += "/";
9772
+ return result;
9773
+ }
9774
+ var isProduction$1 = process.env.NODE_ENV === "production";
9775
+ function warning(condition2, message2) {
9776
+ if (!isProduction$1) {
9777
+ if (condition2) {
9778
+ return;
9779
+ }
9780
+ var text = "Warning: " + message2;
9781
+ if (typeof console !== "undefined") {
9782
+ console.warn(text);
9783
+ }
9784
+ try {
9785
+ throw Error(text);
9786
+ } catch (x2) {
9787
+ }
9788
+ }
9789
+ }
9790
+ var isProduction = process.env.NODE_ENV === "production";
9791
+ var prefix = "Invariant failed";
9792
+ function invariant(condition2, message2) {
9793
+ if (condition2) {
9794
+ return;
9795
+ }
9796
+ if (isProduction) {
9797
+ throw new Error(prefix);
9798
+ }
9799
+ var provided = typeof message2 === "function" ? message2() : message2;
9800
+ var value = provided ? "".concat(prefix, ": ").concat(provided) : prefix;
9801
+ throw new Error(value);
9802
+ }
9803
+ function addLeadingSlash(path) {
9804
+ return path.charAt(0) === "/" ? path : "/" + path;
9805
+ }
9806
+ function stripLeadingSlash(path) {
9807
+ return path.charAt(0) === "/" ? path.substr(1) : path;
9808
+ }
9809
+ function hasBasename(path, prefix2) {
9810
+ return path.toLowerCase().indexOf(prefix2.toLowerCase()) === 0 && "/?#".indexOf(path.charAt(prefix2.length)) !== -1;
9811
+ }
9812
+ function stripBasename(path, prefix2) {
9813
+ return hasBasename(path, prefix2) ? path.substr(prefix2.length) : path;
9814
+ }
9815
+ function stripTrailingSlash(path) {
9816
+ return path.charAt(path.length - 1) === "/" ? path.slice(0, -1) : path;
9817
+ }
9818
+ function parsePath(path) {
9819
+ var pathname = path || "/";
9820
+ var search = "";
9821
+ var hash = "";
9822
+ var hashIndex = pathname.indexOf("#");
9823
+ if (hashIndex !== -1) {
9824
+ hash = pathname.substr(hashIndex);
9825
+ pathname = pathname.substr(0, hashIndex);
9826
+ }
9827
+ var searchIndex = pathname.indexOf("?");
9828
+ if (searchIndex !== -1) {
9829
+ search = pathname.substr(searchIndex);
9830
+ pathname = pathname.substr(0, searchIndex);
9831
+ }
9832
+ return {
9833
+ pathname,
9834
+ search: search === "?" ? "" : search,
9835
+ hash: hash === "#" ? "" : hash
9836
+ };
9837
+ }
9838
+ function createPath(location2) {
9839
+ var pathname = location2.pathname, search = location2.search, hash = location2.hash;
9840
+ var path = pathname || "/";
9841
+ if (search && search !== "?")
9842
+ path += search.charAt(0) === "?" ? search : "?" + search;
9843
+ if (hash && hash !== "#")
9844
+ path += hash.charAt(0) === "#" ? hash : "#" + hash;
9845
+ return path;
9846
+ }
9847
+ function createLocation(path, state2, key, currentLocation) {
9848
+ var location2;
9849
+ if (typeof path === "string") {
9850
+ location2 = parsePath(path);
9851
+ location2.state = state2;
9852
+ } else {
9853
+ location2 = _extends({}, path);
9854
+ if (location2.pathname === void 0)
9855
+ location2.pathname = "";
9856
+ if (location2.search) {
9857
+ if (location2.search.charAt(0) !== "?")
9858
+ location2.search = "?" + location2.search;
9859
+ } else {
9860
+ location2.search = "";
9861
+ }
9862
+ if (location2.hash) {
9863
+ if (location2.hash.charAt(0) !== "#")
9864
+ location2.hash = "#" + location2.hash;
9865
+ } else {
9866
+ location2.hash = "";
9867
+ }
9868
+ if (state2 !== void 0 && location2.state === void 0)
9869
+ location2.state = state2;
9870
+ }
9871
+ try {
9872
+ location2.pathname = decodeURI(location2.pathname);
9873
+ } catch (e) {
9874
+ if (e instanceof URIError) {
9875
+ throw new URIError('Pathname "' + location2.pathname + '" could not be decoded. This is likely caused by an invalid percent-encoding.');
9876
+ } else {
9877
+ throw e;
9878
+ }
9879
+ }
9880
+ if (key)
9881
+ location2.key = key;
9882
+ if (currentLocation) {
9883
+ if (!location2.pathname) {
9884
+ location2.pathname = currentLocation.pathname;
9885
+ } else if (location2.pathname.charAt(0) !== "/") {
9886
+ location2.pathname = resolvePathname(location2.pathname, currentLocation.pathname);
9887
+ }
9888
+ } else {
9889
+ if (!location2.pathname) {
9890
+ location2.pathname = "/";
9891
+ }
9892
+ }
9893
+ return location2;
9894
+ }
9895
+ function createTransitionManager() {
9896
+ var prompt = null;
9897
+ function setPrompt(nextPrompt) {
9898
+ process.env.NODE_ENV !== "production" ? warning(prompt == null, "A history supports only one prompt at a time") : void 0;
9899
+ prompt = nextPrompt;
9900
+ return function() {
9901
+ if (prompt === nextPrompt)
9902
+ prompt = null;
9903
+ };
9904
+ }
9905
+ function confirmTransitionTo(location2, action, getUserConfirmation, callback) {
9906
+ if (prompt != null) {
9907
+ var result = typeof prompt === "function" ? prompt(location2, action) : prompt;
9908
+ if (typeof result === "string") {
9909
+ if (typeof getUserConfirmation === "function") {
9910
+ getUserConfirmation(result, callback);
9911
+ } else {
9912
+ process.env.NODE_ENV !== "production" ? warning(false, "A history needs a getUserConfirmation function in order to use a prompt message") : void 0;
9913
+ callback(true);
9914
+ }
9915
+ } else {
9916
+ callback(result !== false);
9917
+ }
9918
+ } else {
9919
+ callback(true);
9920
+ }
9921
+ }
9922
+ var listeners = [];
9923
+ function appendListener(fn) {
9924
+ var isActive = true;
9925
+ function listener() {
9926
+ if (isActive)
9927
+ fn.apply(void 0, arguments);
9928
+ }
9929
+ listeners.push(listener);
9930
+ return function() {
9931
+ isActive = false;
9932
+ listeners = listeners.filter(function(item) {
9933
+ return item !== listener;
9934
+ });
9935
+ };
9936
+ }
9937
+ function notifyListeners() {
9938
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
9939
+ args[_key] = arguments[_key];
9940
+ }
9941
+ listeners.forEach(function(listener) {
9942
+ return listener.apply(void 0, args);
9943
+ });
9944
+ }
9945
+ return {
9946
+ setPrompt,
9947
+ confirmTransitionTo,
9948
+ appendListener,
9949
+ notifyListeners
9950
+ };
9951
+ }
9952
+ var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
9953
+ function getConfirmation(message2, callback) {
9954
+ callback(window.confirm(message2));
9955
+ }
9956
+ function supportsGoWithoutReloadUsingHash() {
9957
+ return window.navigator.userAgent.indexOf("Firefox") === -1;
9958
+ }
9959
+ var HashChangeEvent$1 = "hashchange";
9960
+ var HashPathCoders = {
9961
+ hashbang: {
9962
+ encodePath: function encodePath(path) {
9963
+ return path.charAt(0) === "!" ? path : "!/" + stripLeadingSlash(path);
9964
+ },
9965
+ decodePath: function decodePath(path) {
9966
+ return path.charAt(0) === "!" ? path.substr(1) : path;
9967
+ }
9968
+ },
9969
+ noslash: {
9970
+ encodePath: stripLeadingSlash,
9971
+ decodePath: addLeadingSlash
9972
+ },
9973
+ slash: {
9974
+ encodePath: addLeadingSlash,
9975
+ decodePath: addLeadingSlash
9976
+ }
9977
+ };
9978
+ function stripHash(url) {
9979
+ var hashIndex = url.indexOf("#");
9980
+ return hashIndex === -1 ? url : url.slice(0, hashIndex);
9981
+ }
9982
+ function getHashPath() {
9983
+ var href = window.location.href;
9984
+ var hashIndex = href.indexOf("#");
9985
+ return hashIndex === -1 ? "" : href.substring(hashIndex + 1);
9986
+ }
9987
+ function pushHashPath(path) {
9988
+ window.location.hash = path;
9989
+ }
9990
+ function replaceHashPath(path) {
9991
+ window.location.replace(stripHash(window.location.href) + "#" + path);
9992
+ }
9993
+ function createHashHistory(props) {
9994
+ if (props === void 0) {
9995
+ props = {};
9996
+ }
9997
+ !canUseDOM ? process.env.NODE_ENV !== "production" ? invariant(false, "Hash history needs a DOM") : invariant(false) : void 0;
9998
+ var globalHistory = window.history;
9999
+ var canGoWithoutReload = supportsGoWithoutReloadUsingHash();
10000
+ var _props = props, _props$getUserConfirm = _props.getUserConfirmation, getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm, _props$hashType = _props.hashType, hashType = _props$hashType === void 0 ? "slash" : _props$hashType;
10001
+ var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : "";
10002
+ var _HashPathCoders$hashT = HashPathCoders[hashType], encodePath2 = _HashPathCoders$hashT.encodePath, decodePath2 = _HashPathCoders$hashT.decodePath;
10003
+ function getDOMLocation() {
10004
+ var path2 = decodePath2(getHashPath());
10005
+ process.env.NODE_ENV !== "production" ? warning(!basename || hasBasename(path2, basename), 'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "' + path2 + '" to begin with "' + basename + '".') : void 0;
10006
+ if (basename)
10007
+ path2 = stripBasename(path2, basename);
10008
+ return createLocation(path2);
10009
+ }
10010
+ var transitionManager = createTransitionManager();
10011
+ function setState(nextState) {
10012
+ _extends(history2, nextState);
10013
+ history2.length = globalHistory.length;
10014
+ transitionManager.notifyListeners(history2.location, history2.action);
10015
+ }
10016
+ var forceNextPop = false;
10017
+ var ignorePath = null;
10018
+ function locationsAreEqual$$1(a, b2) {
10019
+ return a.pathname === b2.pathname && a.search === b2.search && a.hash === b2.hash;
10020
+ }
10021
+ function handleHashChange() {
10022
+ var path2 = getHashPath();
10023
+ var encodedPath2 = encodePath2(path2);
10024
+ if (path2 !== encodedPath2) {
10025
+ replaceHashPath(encodedPath2);
10026
+ } else {
10027
+ var location2 = getDOMLocation();
10028
+ var prevLocation = history2.location;
10029
+ if (!forceNextPop && locationsAreEqual$$1(prevLocation, location2))
10030
+ return;
10031
+ if (ignorePath === createPath(location2))
10032
+ return;
10033
+ ignorePath = null;
10034
+ handlePop(location2);
10035
+ }
10036
+ }
10037
+ function handlePop(location2) {
10038
+ if (forceNextPop) {
10039
+ forceNextPop = false;
10040
+ setState();
10041
+ } else {
10042
+ var action = "POP";
10043
+ transitionManager.confirmTransitionTo(location2, action, getUserConfirmation, function(ok) {
10044
+ if (ok) {
10045
+ setState({
10046
+ action,
10047
+ location: location2
10048
+ });
10049
+ } else {
10050
+ revertPop(location2);
10051
+ }
10052
+ });
10053
+ }
10054
+ }
10055
+ function revertPop(fromLocation) {
10056
+ var toLocation = history2.location;
10057
+ var toIndex = allPaths.lastIndexOf(createPath(toLocation));
10058
+ if (toIndex === -1)
10059
+ toIndex = 0;
10060
+ var fromIndex = allPaths.lastIndexOf(createPath(fromLocation));
10061
+ if (fromIndex === -1)
10062
+ fromIndex = 0;
10063
+ var delta = toIndex - fromIndex;
10064
+ if (delta) {
10065
+ forceNextPop = true;
10066
+ go(delta);
10067
+ }
10068
+ }
10069
+ var path = getHashPath();
10070
+ var encodedPath = encodePath2(path);
10071
+ if (path !== encodedPath)
10072
+ replaceHashPath(encodedPath);
10073
+ var initialLocation = getDOMLocation();
10074
+ var allPaths = [createPath(initialLocation)];
10075
+ function createHref(location2) {
10076
+ var baseTag = document.querySelector("base");
10077
+ var href = "";
10078
+ if (baseTag && baseTag.getAttribute("href")) {
10079
+ href = stripHash(window.location.href);
10080
+ }
10081
+ return href + "#" + encodePath2(basename + createPath(location2));
10082
+ }
10083
+ function push(path2, state2) {
10084
+ process.env.NODE_ENV !== "production" ? warning(state2 === void 0, "Hash history cannot push state; it is ignored") : void 0;
10085
+ var action = "PUSH";
10086
+ var location2 = createLocation(path2, void 0, void 0, history2.location);
10087
+ transitionManager.confirmTransitionTo(location2, action, getUserConfirmation, function(ok) {
10088
+ if (!ok)
10089
+ return;
10090
+ var path3 = createPath(location2);
10091
+ var encodedPath2 = encodePath2(basename + path3);
10092
+ var hashChanged = getHashPath() !== encodedPath2;
10093
+ if (hashChanged) {
10094
+ ignorePath = path3;
10095
+ pushHashPath(encodedPath2);
10096
+ var prevIndex = allPaths.lastIndexOf(createPath(history2.location));
10097
+ var nextPaths = allPaths.slice(0, prevIndex + 1);
10098
+ nextPaths.push(path3);
10099
+ allPaths = nextPaths;
10100
+ setState({
10101
+ action,
10102
+ location: location2
10103
+ });
10104
+ } else {
10105
+ process.env.NODE_ENV !== "production" ? warning(false, "Hash history cannot PUSH the same path; a new entry will not be added to the history stack") : void 0;
10106
+ setState();
10107
+ }
10108
+ });
10109
+ }
10110
+ function replace(path2, state2) {
10111
+ process.env.NODE_ENV !== "production" ? warning(state2 === void 0, "Hash history cannot replace state; it is ignored") : void 0;
10112
+ var action = "REPLACE";
10113
+ var location2 = createLocation(path2, void 0, void 0, history2.location);
10114
+ transitionManager.confirmTransitionTo(location2, action, getUserConfirmation, function(ok) {
10115
+ if (!ok)
10116
+ return;
10117
+ var path3 = createPath(location2);
10118
+ var encodedPath2 = encodePath2(basename + path3);
10119
+ var hashChanged = getHashPath() !== encodedPath2;
10120
+ if (hashChanged) {
10121
+ ignorePath = path3;
10122
+ replaceHashPath(encodedPath2);
10123
+ }
10124
+ var prevIndex = allPaths.indexOf(createPath(history2.location));
10125
+ if (prevIndex !== -1)
10126
+ allPaths[prevIndex] = path3;
10127
+ setState({
10128
+ action,
10129
+ location: location2
10130
+ });
10131
+ });
10132
+ }
10133
+ function go(n) {
10134
+ process.env.NODE_ENV !== "production" ? warning(canGoWithoutReload, "Hash history go(n) causes a full page reload in this browser") : void 0;
10135
+ globalHistory.go(n);
10136
+ }
10137
+ function goBack() {
10138
+ go(-1);
10139
+ }
10140
+ function goForward() {
10141
+ go(1);
10142
+ }
10143
+ var listenerCount = 0;
10144
+ function checkDOMListeners(delta) {
10145
+ listenerCount += delta;
10146
+ if (listenerCount === 1 && delta === 1) {
10147
+ window.addEventListener(HashChangeEvent$1, handleHashChange);
10148
+ } else if (listenerCount === 0) {
10149
+ window.removeEventListener(HashChangeEvent$1, handleHashChange);
10150
+ }
10151
+ }
10152
+ var isBlocked = false;
10153
+ function block(prompt) {
10154
+ if (prompt === void 0) {
10155
+ prompt = false;
10156
+ }
10157
+ var unblock = transitionManager.setPrompt(prompt);
10158
+ if (!isBlocked) {
10159
+ checkDOMListeners(1);
10160
+ isBlocked = true;
10161
+ }
10162
+ return function() {
10163
+ if (isBlocked) {
10164
+ isBlocked = false;
10165
+ checkDOMListeners(-1);
10166
+ }
10167
+ return unblock();
10168
+ };
10169
+ }
10170
+ function listen(listener) {
10171
+ var unlisten = transitionManager.appendListener(listener);
10172
+ checkDOMListeners(1);
10173
+ return function() {
10174
+ checkDOMListeners(-1);
10175
+ unlisten();
10176
+ };
10177
+ }
10178
+ var history2 = {
10179
+ length: globalHistory.length,
10180
+ action: "POP",
10181
+ location: initialLocation,
10182
+ createHref,
10183
+ push,
10184
+ replace,
10185
+ go,
10186
+ goBack,
10187
+ goForward,
10188
+ block,
10189
+ listen
10190
+ };
10191
+ return history2;
10192
+ }
9687
10193
  const index_1wt5px2 = "";
9688
10194
  const MenuStyle = "mdppgn0";
9689
10195
  const Menu = () => {
@@ -9753,6 +10259,148 @@ const Layout = ({
9753
10259
  })]
9754
10260
  });
9755
10261
  };
10262
+ const copy$1 = "Copy";
10263
+ const reset_arguments$1 = "Reset";
10264
+ const view_changes$1 = "Show Diff";
10265
+ const back_to_edit$1 = "Edit";
10266
+ const configure_file$1 = "Configuration";
10267
+ const yaml_format_wrong$1 = "Configuration is in an invalid YAML format.";
10268
+ const yaml_value_wrong$1 = "Configuration has invalid values.";
10269
+ const edit_yaml$1 = "Edit YAML";
10270
+ const copied$1 = "Copied";
10271
+ const already_reset$1 = "Already reset";
10272
+ const dovetail$1 = {
10273
+ copy: copy$1,
10274
+ reset_arguments: reset_arguments$1,
10275
+ view_changes: view_changes$1,
10276
+ back_to_edit: back_to_edit$1,
10277
+ configure_file: configure_file$1,
10278
+ yaml_format_wrong: yaml_format_wrong$1,
10279
+ yaml_value_wrong: yaml_value_wrong$1,
10280
+ edit_yaml: edit_yaml$1,
10281
+ copied: copied$1,
10282
+ already_reset: already_reset$1
10283
+ };
10284
+ const EN = {
10285
+ dovetail: dovetail$1
10286
+ };
10287
+ const copy = "\u590D\u5236";
10288
+ const reset_arguments = "\u91CD\u7F6E";
10289
+ const view_changes = "\u67E5\u770B\u6539\u52A8";
10290
+ const back_to_edit = "\u7F16\u8F91";
10291
+ const configure_file = "\u914D\u7F6E\u5185\u5BB9";
10292
+ const yaml_format_wrong = "\u914D\u7F6E\u5185\u5BB9\u4E0D\u662F\u6709\u6548\u7684 yaml \u683C\u5F0F\u3002";
10293
+ const yaml_value_wrong = "\u914D\u7F6E\u5185\u5BB9\u4E2D\u5B58\u5728\u4E0D\u5408\u6CD5\u7684\u503C\u3002";
10294
+ const edit_yaml = "\u7F16\u8F91 YAML";
10295
+ const copied = "\u5DF2\u590D\u5236";
10296
+ const already_reset = "\u5DF2\u91CD\u7F6E";
10297
+ const cancel = "\u53D6\u6D88";
10298
+ const create = "\u521B\u5EFA";
10299
+ const confirm_delete_text = "\u786E\u5B9A\u8981\u5220\u9664 {{target}} \u5417\uFF1F";
10300
+ const edit = "\u7F16\u8F91";
10301
+ const namespace = "\u540D\u5B57\u7A7A\u95F4";
10302
+ const name = "\u540D\u5B57";
10303
+ const state = "\u72B6\u6001";
10304
+ const status = "\u72B6\u6001";
10305
+ const phase = "\u72B6\u6001";
10306
+ const image = "\u955C\u50CF";
10307
+ const replicas = "\u526F\u672C\u6570";
10308
+ const created_time = "\u521B\u5EFA\u65F6\u95F4";
10309
+ const label = "\u6807\u7B7E";
10310
+ const annotation = "\u6CE8\u91CA";
10311
+ const type = "\u7C7B\u578B";
10312
+ const condition = "Condition";
10313
+ const download_yaml = "\u4E0B\u8F7D YAML";
10314
+ const detail = "\u8BE6\u60C5";
10315
+ const node_name = "\u4E3B\u673A\u540D\u79F0";
10316
+ const restarts = "\u91CD\u542F\u6B21\u6570";
10317
+ const updated_time = "\u66F4\u65B0\u65F6\u95F4";
10318
+ const message = "\u6D88\u606F";
10319
+ const save = "\u4FDD\u5B58";
10320
+ const more = "\u66F4\u591A";
10321
+ const workload = "\u5DE5\u4F5C\u8D1F\u8F7D";
10322
+ const all_namespaces = "\u6240\u6709\u540D\u5B57\u7A7A\u95F4";
10323
+ const empty = "\u65E0\u53EF\u663E\u793A\u7684\u6570\u636E";
10324
+ const schedule = "\u8C03\u5EA6";
10325
+ const lastScheduleTime = "\u4E0A\u6B21\u8C03\u5EA6";
10326
+ const duration = "\u6301\u7EED\u65F6\u95F4";
10327
+ const completions = "\u5B8C\u6210 Job \u5386\u53F2\u6570";
10328
+ const started = "\u5F00\u59CB\u65F6\u95F4";
10329
+ const ready = "\u5C31\u7EEA";
10330
+ const init_container = "\u521D\u59CB\u5316\u5BB9\u5668";
10331
+ const container = "\u5BB9\u5668";
10332
+ const redeploy = "\u91CD\u65B0\u90E8\u7F72";
10333
+ const data = "\u6570\u636E";
10334
+ const suspend = "\u6682\u505C";
10335
+ const resume = "\u91CD\u65B0\u5F00\u59CB";
10336
+ const dovetail = {
10337
+ copy,
10338
+ reset_arguments,
10339
+ view_changes,
10340
+ back_to_edit,
10341
+ configure_file,
10342
+ yaml_format_wrong,
10343
+ yaml_value_wrong,
10344
+ edit_yaml,
10345
+ copied,
10346
+ already_reset,
10347
+ cancel,
10348
+ "delete": "\u5220\u9664",
10349
+ create,
10350
+ confirm_delete_text,
10351
+ edit,
10352
+ namespace,
10353
+ name,
10354
+ state,
10355
+ status,
10356
+ phase,
10357
+ image,
10358
+ replicas,
10359
+ created_time,
10360
+ label,
10361
+ annotation,
10362
+ type,
10363
+ condition,
10364
+ download_yaml,
10365
+ detail,
10366
+ node_name,
10367
+ restarts,
10368
+ updated_time,
10369
+ message,
10370
+ save,
10371
+ more,
10372
+ workload,
10373
+ all_namespaces,
10374
+ empty,
10375
+ schedule,
10376
+ lastScheduleTime,
10377
+ duration,
10378
+ completions,
10379
+ started,
10380
+ ready,
10381
+ init_container,
10382
+ container,
10383
+ redeploy,
10384
+ data,
10385
+ suspend,
10386
+ resume
10387
+ };
10388
+ const ZH = {
10389
+ dovetail
10390
+ };
10391
+ const resources = {
10392
+ "en-US": EN,
10393
+ "zh-CN": ZH
10394
+ };
10395
+ i18n.use(initReactI18next).init({
10396
+ supportedLngs: ["en-US", "zh-CN"],
10397
+ resources,
10398
+ ns: Object.keys(resources["zh-CN"]),
10399
+ defaultNS: "dovetail",
10400
+ fallbackLng: ["en-US", "zh-CN"],
10401
+ lng: "zh-CN",
10402
+ nsSeparator: "."
10403
+ });
9756
10404
  const styles = "";
9757
10405
  const antd = "";
9758
10406
  const style = "";
@@ -9761,9 +10409,10 @@ const globalStore = new GlobalStore({
9761
10409
  watchWsApiUrl: "api/sks-ws/k8s",
9762
10410
  prefix: "default"
9763
10411
  });
10412
+ const history = createHashHistory();
9764
10413
  const Dovetail = (props) => {
9765
10414
  const { resourcesConfig, urlPrefix } = props;
9766
- return /* @__PURE__ */ jsxRuntime.exports.jsx(BrowserRouter, { children: /* @__PURE__ */ jsxRuntime.exports.jsx(
10415
+ return /* @__PURE__ */ jsxRuntime.exports.jsx(Router, { history, children: /* @__PURE__ */ jsxRuntime.exports.jsx(
9767
10416
  Refine,
9768
10417
  {
9769
10418
  dataProvider: {