@dovetail-v2/refine 0.0.11 → 0.0.13

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.
@@ -5,8 +5,8 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  (function(global2, factory) {
8
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("@refinedev/core"), require("qs"), require("react"), require("react-router-dom"), require("@cloudtower/eagle"), require("js-yaml"), require("lodash-es"), require("sunflower-antd"), require("@cloudtower/icons-react"), require("monaco-editor"), require("monaco-yaml"), require("react-dom"), require("antd"), require("ky"), require("mitt"), require("i18next")) : typeof define === "function" && define.amd ? define(["exports", "@refinedev/core", "qs", "react", "react-router-dom", "@cloudtower/eagle", "js-yaml", "lodash-es", "sunflower-antd", "@cloudtower/icons-react", "monaco-editor", "monaco-yaml", "react-dom", "antd", "ky", "mitt", "i18next"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.dovetail = {}, global2.core, global2.qs, global2.React, global2.reactRouterDom, global2.eagle, global2.yaml, global2.lodashEs, global2.sunflowerAntd, global2.iconsReact, global2.monaco, global2.monacoYaml, global2.ReactDOM, global2.antd$1, global2.require$$0, global2.require$$2, global2.i18n));
9
- })(this, function(exports2, core, qs, React, reactRouterDom, eagle, yaml, lodashEs, sunflowerAntd, iconsReact, monaco, monacoYaml, ReactDOM, antd$1, require$$0, require$$2, i18n) {
8
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("@refinedev/core"), require("qs"), require("react"), require("react-router-dom"), require("@cloudtower/eagle"), require("js-yaml"), require("k8s-api-provider"), require("lodash-es"), require("sunflower-antd"), require("@cloudtower/icons-react"), require("monaco-editor"), require("monaco-yaml"), require("react-dom"), require("antd"), require("i18next")) : typeof define === "function" && define.amd ? define(["exports", "@refinedev/core", "qs", "react", "react-router-dom", "@cloudtower/eagle", "js-yaml", "k8s-api-provider", "lodash-es", "sunflower-antd", "@cloudtower/icons-react", "monaco-editor", "monaco-yaml", "react-dom", "antd", "i18next"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.dovetail = {}, global2.core, global2.qs, global2.React, global2.reactRouterDom, global2.eagle, global2.yaml, global2.k8sApiProvider, global2.lodashEs, global2.sunflowerAntd, global2.iconsReact, global2.monaco, global2.monacoYaml, global2.ReactDOM, global2.antd$1, global2.i18n));
9
+ })(this, function(exports2, core, qs, React, reactRouterDom, eagle, yaml, k8sApiProvider, lodashEs, sunflowerAntd, iconsReact, monaco, monacoYaml, ReactDOM, antd$1, i18n) {
10
10
  "use strict";
11
11
  const _interopDefaultLegacy = (e) => e && typeof e === "object" && "default" in e ? e : { default: e };
12
12
  function _interopNamespace(e) {
@@ -14,12 +14,12 @@ var __publicField = (obj, key, value) => {
14
14
  return e;
15
15
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
16
16
  if (e) {
17
- for (const k2 in e) {
18
- if (k2 !== "default") {
19
- const d2 = Object.getOwnPropertyDescriptor(e, k2);
20
- Object.defineProperty(n, k2, d2.get ? d2 : {
17
+ for (const k in e) {
18
+ if (k !== "default") {
19
+ const d = Object.getOwnPropertyDescriptor(e, k);
20
+ Object.defineProperty(n, k, d.get ? d : {
21
21
  enumerable: true,
22
- get: () => e[k2]
22
+ get: () => e[k]
23
23
  });
24
24
  }
25
25
  }
@@ -31,8 +31,6 @@ var __publicField = (obj, key, value) => {
31
31
  const yaml__default = /* @__PURE__ */ _interopDefaultLegacy(yaml);
32
32
  const monaco__namespace = /* @__PURE__ */ _interopNamespace(monaco);
33
33
  const ReactDOM__default = /* @__PURE__ */ _interopDefaultLegacy(ReactDOM);
34
- const require$$0__default = /* @__PURE__ */ _interopDefaultLegacy(require$$0);
35
- const require$$2__default = /* @__PURE__ */ _interopDefaultLegacy(require$$2);
36
34
  const i18n__default = /* @__PURE__ */ _interopDefaultLegacy(i18n);
37
35
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
38
36
  var jsxRuntime = { exports: {} };
@@ -50,28 +48,28 @@ var __publicField = (obj, key, value) => {
50
48
  if (hasRequiredReactJsxRuntime_production_min)
51
49
  return reactJsxRuntime_production_min;
52
50
  hasRequiredReactJsxRuntime_production_min = 1;
53
- var f2 = React__default.default, g = 60103;
51
+ var f = React__default.default, g = 60103;
54
52
  reactJsxRuntime_production_min.Fragment = 60107;
55
53
  if ("function" === typeof Symbol && Symbol.for) {
56
54
  var h = Symbol.for;
57
55
  g = h("react.element");
58
56
  reactJsxRuntime_production_min.Fragment = h("react.fragment");
59
57
  }
60
- var m = f2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = Object.prototype.hasOwnProperty, p = { key: true, ref: true, __self: true, __source: true };
61
- function q2(c, a, k2) {
62
- var b2, d2 = {}, e = null, l = null;
63
- void 0 !== k2 && (e = "" + k2);
58
+ var m = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, n = Object.prototype.hasOwnProperty, p = { key: true, ref: true, __self: true, __source: true };
59
+ function q(c, a, k) {
60
+ var b, d = {}, e = null, l = null;
61
+ void 0 !== k && (e = "" + k);
64
62
  void 0 !== a.key && (e = "" + a.key);
65
63
  void 0 !== a.ref && (l = a.ref);
66
- for (b2 in a)
67
- n.call(a, b2) && !p.hasOwnProperty(b2) && (d2[b2] = a[b2]);
64
+ for (b in a)
65
+ n.call(a, b) && !p.hasOwnProperty(b) && (d[b] = a[b]);
68
66
  if (c && c.defaultProps)
69
- for (b2 in a = c.defaultProps, a)
70
- void 0 === d2[b2] && (d2[b2] = a[b2]);
71
- return { $$typeof: g, type: c, key: e, ref: l, props: d2, _owner: m.current };
67
+ for (b in a = c.defaultProps, a)
68
+ void 0 === d[b] && (d[b] = a[b]);
69
+ return { $$typeof: g, type: c, key: e, ref: l, props: d, _owner: m.current };
72
70
  }
73
- reactJsxRuntime_production_min.jsx = q2;
74
- reactJsxRuntime_production_min.jsxs = q2;
71
+ reactJsxRuntime_production_min.jsx = q;
72
+ reactJsxRuntime_production_min.jsxs = q;
75
73
  return reactJsxRuntime_production_min;
76
74
  }
77
75
  var reactJsxRuntime_development = {};
@@ -282,7 +280,7 @@ var __publicField = (obj, key, value) => {
282
280
  currentlyValidatingElement = element;
283
281
  }
284
282
  }
285
- function checkPropTypes(typeSpecs, values, location2, componentName, element) {
283
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
286
284
  {
287
285
  var has = Function.call.bind(Object.prototype.hasOwnProperty);
288
286
  for (var typeSpecName in typeSpecs) {
@@ -290,23 +288,23 @@ var __publicField = (obj, key, value) => {
290
288
  var error$1 = void 0;
291
289
  try {
292
290
  if (typeof typeSpecs[typeSpecName] !== "function") {
293
- var err = Error((componentName || "React class") + ": " + location2 + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
291
+ var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
294
292
  err.name = "Invariant Violation";
295
293
  throw err;
296
294
  }
297
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location2, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
295
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
298
296
  } catch (ex) {
299
297
  error$1 = ex;
300
298
  }
301
299
  if (error$1 && !(error$1 instanceof Error)) {
302
300
  setCurrentlyValidatingElement(element);
303
- error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location2, typeSpecName, typeof error$1);
301
+ error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
304
302
  setCurrentlyValidatingElement(null);
305
303
  }
306
304
  if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
307
305
  loggedTypeFailures[error$1.message] = true;
308
306
  setCurrentlyValidatingElement(element);
309
- error("Failed %s type: %s", location2, error$1.message);
307
+ error("Failed %s type: %s", location, error$1.message);
310
308
  setCurrentlyValidatingElement(null);
311
309
  }
312
310
  }
@@ -788,20 +786,6 @@ var __publicField = (obj, key, value) => {
788
786
  return /* @__PURE__ */ jsxRuntime.exports.jsx(reactRouterDom.Link, { ...props, ref });
789
787
  })
790
788
  };
791
- function _extends() {
792
- _extends = Object.assign ? Object.assign.bind() : function(target) {
793
- for (var i = 1; i < arguments.length; i++) {
794
- var source = arguments[i];
795
- for (var key in source) {
796
- if (Object.prototype.hasOwnProperty.call(source, key)) {
797
- target[key] = source[key];
798
- }
799
- }
800
- }
801
- return target;
802
- };
803
- return _extends.apply(this, arguments);
804
- }
805
789
  function warn() {
806
790
  if (console && console.warn) {
807
791
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -982,12 +966,12 @@ var __publicField = (obj, key, value) => {
982
966
  i18n2.reportNamespaces = new ReportNamespaces();
983
967
  if (!i18n2) {
984
968
  warnOnce("You will need to pass in an i18next instance by using initReactI18next");
985
- const notReadyT = (k2, optsOrDefaultValue) => {
969
+ const notReadyT = (k, optsOrDefaultValue) => {
986
970
  if (typeof optsOrDefaultValue === "string")
987
971
  return optsOrDefaultValue;
988
972
  if (optsOrDefaultValue && typeof optsOrDefaultValue === "object" && typeof optsOrDefaultValue.defaultValue === "string")
989
973
  return optsOrDefaultValue.defaultValue;
990
- return Array.isArray(k2) ? k2[k2.length - 1] : k2;
974
+ return Array.isArray(k) ? k[k.length - 1] : k;
991
975
  };
992
976
  const retNotReady = [notReadyT, {}, false];
993
977
  retNotReady.t = notReadyT;
@@ -1081,16 +1065,52 @@ var __publicField = (obj, key, value) => {
1081
1065
  }
1082
1066
  });
1083
1067
  }
1068
+ function useK8sYamlEditor() {
1069
+ function foldSymbol(editor, symbol) {
1070
+ const model = editor.getModel();
1071
+ const matchs = (model == null ? void 0 : model.findMatches(
1072
+ symbol,
1073
+ false,
1074
+ false,
1075
+ false,
1076
+ "",
1077
+ false
1078
+ ).filter((match) => match.range.startColumn === 1)) || [];
1079
+ return new Promise(async (resolve, reject) => {
1080
+ try {
1081
+ for (const match of matchs) {
1082
+ const lineNumber = match.range.startLineNumber;
1083
+ editor.setPosition({ lineNumber, column: 1 });
1084
+ await editor.getAction("editor.fold").run();
1085
+ }
1086
+ resolve(null);
1087
+ } catch (e) {
1088
+ reject(e);
1089
+ }
1090
+ });
1091
+ }
1092
+ async function fold(editor) {
1093
+ await editor.getAction("editor.unfoldAll").run();
1094
+ const symbols = [
1095
+ " annotations:",
1096
+ " managedFields:",
1097
+ "status:",
1098
+ " kubectl.kubernetes.io/last-applied-configuration:"
1099
+ ];
1100
+ for (const symbol of symbols) {
1101
+ await foldSymbol(editor, symbol);
1102
+ }
1103
+ editor.setScrollPosition({ scrollTop: 0 });
1104
+ }
1105
+ return {
1106
+ fold
1107
+ };
1108
+ }
1084
1109
  function getApiVersion(resourceBasePath) {
1085
1110
  return resourceBasePath.replace(/^(\/api\/)|(\/apis\/)/, "");
1086
1111
  }
1087
- function pruneBeforeEdit(v2) {
1088
- var _a, _b;
1089
- delete v2.id;
1090
- (_a = v2.metadata) == null ? true : delete _a.managedFields;
1091
- if ((_b = v2.metadata) == null ? void 0 : _b.annotations) {
1092
- delete v2.metadata.annotations["kubectl.kubernetes.io/last-applied-configuration"];
1093
- }
1112
+ function pruneBeforeEdit(v) {
1113
+ delete v.id;
1094
1114
  }
1095
1115
  var lodash = { exports: {} };
1096
1116
  /**
@@ -1787,7 +1807,7 @@ var __publicField = (obj, key, value) => {
1787
1807
  return string.match(reUnicodeWord) || [];
1788
1808
  }
1789
1809
  var runInContext = function runInContext2(context) {
1790
- context = context == null ? root : _2.defaults(root.Object(), context, _2.pick(root, contextProps));
1810
+ context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));
1791
1811
  var Array2 = context.Array, Date2 = context.Date, Error2 = context.Error, Function2 = context.Function, Math2 = context.Math, Object2 = context.Object, RegExp2 = context.RegExp, String2 = context.String, TypeError2 = context.TypeError;
1792
1812
  var arrayProto = Array2.prototype, funcProto = Function2.prototype, objectProto = Object2.prototype;
1793
1813
  var coreJsData = context["__core-js_shared__"];
@@ -3053,7 +3073,7 @@ var __publicField = (obj, key, value) => {
3053
3073
  end = end === undefined$1 ? length : end;
3054
3074
  return !start && end >= length ? array : baseSlice(array, start, end);
3055
3075
  }
3056
- var clearTimeout2 = ctxClearTimeout || function(id) {
3076
+ var clearTimeout = ctxClearTimeout || function(id) {
3057
3077
  return root.clearTimeout(id);
3058
3078
  };
3059
3079
  function cloneBuffer(buffer, isDeep) {
@@ -4924,7 +4944,7 @@ var __publicField = (obj, key, value) => {
4924
4944
  }
4925
4945
  function cancel2() {
4926
4946
  if (timerId !== undefined$1) {
4927
- clearTimeout2(timerId);
4947
+ clearTimeout(timerId);
4928
4948
  }
4929
4949
  lastInvokeTime = 0;
4930
4950
  lastArgs = lastCallTime = lastThis = timerId = undefined$1;
@@ -4942,7 +4962,7 @@ var __publicField = (obj, key, value) => {
4942
4962
  return leadingEdge(lastCallTime);
4943
4963
  }
4944
4964
  if (maxing) {
4945
- clearTimeout2(timerId);
4965
+ clearTimeout(timerId);
4946
4966
  timerId = setTimeout2(timerExpired, wait);
4947
4967
  return invokeFunc(lastCallTime);
4948
4968
  }
@@ -6003,9 +6023,9 @@ var __publicField = (obj, key, value) => {
6003
6023
  }
6004
6024
  return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value)));
6005
6025
  }
6006
- function uniqueId(prefix2) {
6026
+ function uniqueId(prefix) {
6007
6027
  var id = ++idCounter;
6008
- return toString(prefix2) + id;
6028
+ return toString(prefix) + id;
6009
6029
  }
6010
6030
  var add = createMathOperation(function(augend, addend) {
6011
6031
  return augend + addend;
@@ -6521,12 +6541,12 @@ var __publicField = (obj, key, value) => {
6521
6541
  }
6522
6542
  return lodash2;
6523
6543
  };
6524
- var _2 = runInContext();
6544
+ var _ = runInContext();
6525
6545
  if (freeModule) {
6526
- (freeModule.exports = _2)._ = _2;
6527
- freeExports._ = _2;
6546
+ (freeModule.exports = _)._ = _;
6547
+ freeExports._ = _;
6528
6548
  } else {
6529
- root._ = _2;
6549
+ root._ = _;
6530
6550
  }
6531
6551
  }).call(commonjsGlobal);
6532
6552
  })(lodash, lodash.exports);
@@ -6594,7 +6614,7 @@ var __publicField = (obj, key, value) => {
6594
6614
  if (prune.metadata && [
6595
6615
  "io.k8s.apimachinery.pkg.apis.meta.v1.ListMeta",
6596
6616
  "io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
6597
- ].some((k2) => refKey.includes(k2)) && schema.properties) {
6617
+ ].some((k) => refKey.includes(k)) && schema.properties) {
6598
6618
  schema.properties = lodash.exports.pick(schema.properties, [
6599
6619
  "name",
6600
6620
  "namespace",
@@ -6768,8 +6788,9 @@ var __publicField = (obj, key, value) => {
6768
6788
  overtimeOptions,
6769
6789
  editorOptions
6770
6790
  } = {}) => {
6771
- var _a, _b, _c, _d;
6791
+ var _a, _b, _c;
6772
6792
  const editor = React.useRef(null);
6793
+ const isFoldRef = React.useRef(false);
6773
6794
  const { t } = useTranslation();
6774
6795
  const [enableEditor, setEnableEditor] = React.useState(false);
6775
6796
  const [isYamlValid, setIsYamlValid] = React.useState(true);
@@ -6784,6 +6805,7 @@ var __publicField = (obj, key, value) => {
6784
6805
  form: formAnt
6785
6806
  });
6786
6807
  const { form } = formSF;
6808
+ const { fold } = useK8sYamlEditor();
6787
6809
  const useFormCoreResult = core.useForm({
6788
6810
  onMutationSuccess: onMutationSuccessProp ? onMutationSuccessProp : void 0,
6789
6811
  onMutationError,
@@ -6813,13 +6835,19 @@ var __publicField = (obj, key, value) => {
6813
6835
  const { warnWhenUnsavedChanges: warnWhenUnsavedChangesRefine, setWarnWhen } = core.useWarnAboutChange();
6814
6836
  const warnWhenUnsavedChanges = warnWhenUnsavedChangesProp != null ? warnWhenUnsavedChangesProp : warnWhenUnsavedChangesRefine;
6815
6837
  React__default.default.useEffect(() => {
6838
+ var _a2;
6816
6839
  form.resetFields();
6817
6840
  if (editor.current) {
6818
6841
  const editorValue = yaml__default.default.dump(form.getFieldsValue(true));
6842
+ const editorInstance = editor.current.getEditorInstance();
6819
6843
  editor.current.setEditorValue(editorValue);
6820
6844
  editor.current.setValue(editorValue);
6845
+ if (((_a2 = queryResult == null ? void 0 : queryResult.data) == null ? void 0 : _a2.data) && editorInstance && !isFoldRef.current) {
6846
+ fold(editorInstance);
6847
+ isFoldRef.current = true;
6848
+ }
6821
6849
  }
6822
- }, [(_a = queryResult == null ? void 0 : queryResult.data) == null ? void 0 : _a.data, id, form]);
6850
+ }, [(_a = queryResult == null ? void 0 : queryResult.data) == null ? void 0 : _a.data, id, form, fold]);
6823
6851
  React__default.default.useEffect(() => {
6824
6852
  var _a2, _b2;
6825
6853
  const response = (_a2 = useFormCoreResult.mutationResult.error) == null ? void 0 : _a2.response;
@@ -6858,10 +6886,17 @@ var __publicField = (obj, key, value) => {
6858
6886
  if (yamlValid && schemaValid) {
6859
6887
  setEditorErrors([]);
6860
6888
  }
6889
+ },
6890
+ onEditorCreate(editor2) {
6891
+ var _a2;
6892
+ if (((_a2 = queryResult == null ? void 0 : queryResult.data) == null ? void 0 : _a2.data) && !isFoldRef.current) {
6893
+ fold(editor2);
6894
+ isFoldRef.current = true;
6895
+ }
6861
6896
  }
6862
6897
  };
6863
6898
  const initialValues = ((_c = queryResult == null ? void 0 : queryResult.data) == null ? void 0 : _c.data) ? {
6864
- ...(_d = queryResult == null ? void 0 : queryResult.data) == null ? void 0 : _d.data
6899
+ ...k8sApiProvider.relationPlugin.restoreItem(queryResult.data.data)
6865
6900
  } : void 0;
6866
6901
  if (initialValues) {
6867
6902
  pruneBeforeEdit(initialValues);
@@ -6873,8 +6908,8 @@ var __publicField = (obj, key, value) => {
6873
6908
  onFinish: (values) => {
6874
6909
  var _a2;
6875
6910
  const errors = [
6876
- !isYamlValid && t("dovetail.yaml_format_wrong"),
6877
- !isSchemaValid && t("dovetail.yaml_value_wrong")
6911
+ !isYamlValid ? t("dovetail.yaml_format_wrong") : "",
6912
+ !isSchemaValid ? t("dovetail.yaml_value_wrong") : ""
6878
6913
  ].filter((error) => !!error);
6879
6914
  if (errors.length) {
6880
6915
  setEditorErrors(errors);
@@ -7010,13 +7045,13 @@ var __publicField = (obj, key, value) => {
7010
7045
  !function(t, e) {
7011
7046
  module2.exports = e();
7012
7047
  }(commonjsGlobal, function() {
7013
- var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f2 = "quarter", h = "year", d2 = "date", l = "Invalid Date", $2 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y2 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M2 = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
7048
+ var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", c = "month", f = "quarter", h = "year", d = "date", l = "Invalid Date", $ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(t2) {
7014
7049
  var e2 = ["th", "st", "nd", "rd"], n2 = t2 % 100;
7015
7050
  return "[" + t2 + (e2[(n2 - 20) % 10] || e2[n2] || e2[0]) + "]";
7016
7051
  } }, m = function(t2, e2, n2) {
7017
7052
  var r2 = String(t2);
7018
7053
  return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
7019
- }, v2 = { s: m, z: function(t2) {
7054
+ }, v = { s: m, z: function(t2) {
7020
7055
  var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
7021
7056
  return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
7022
7057
  }, m: function t2(e2, n2) {
@@ -7027,53 +7062,53 @@ var __publicField = (obj, key, value) => {
7027
7062
  }, a: function(t2) {
7028
7063
  return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
7029
7064
  }, p: function(t2) {
7030
- return { M: c, y: h, w: o, d: a, D: d2, h: u, m: s, s: i, ms: r, Q: f2 }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
7065
+ return { M: c, y: h, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: f }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
7031
7066
  }, u: function(t2) {
7032
7067
  return void 0 === t2;
7033
- } }, g = "en", D2 = {};
7034
- D2[g] = M2;
7035
- var p = "$isDayjsObject", S2 = function(t2) {
7036
- return t2 instanceof _2 || !(!t2 || !t2[p]);
7037
- }, w2 = function t2(e2, n2, r2) {
7068
+ } }, g = "en", D = {};
7069
+ D[g] = M;
7070
+ var p = "$isDayjsObject", S = function(t2) {
7071
+ return t2 instanceof _ || !(!t2 || !t2[p]);
7072
+ }, w = function t2(e2, n2, r2) {
7038
7073
  var i2;
7039
7074
  if (!e2)
7040
7075
  return g;
7041
7076
  if ("string" == typeof e2) {
7042
7077
  var s2 = e2.toLowerCase();
7043
- D2[s2] && (i2 = s2), n2 && (D2[s2] = n2, i2 = s2);
7078
+ D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
7044
7079
  var u2 = e2.split("-");
7045
7080
  if (!i2 && u2.length > 1)
7046
7081
  return t2(u2[0]);
7047
7082
  } else {
7048
7083
  var a2 = e2.name;
7049
- D2[a2] = e2, i2 = a2;
7084
+ D[a2] = e2, i2 = a2;
7050
7085
  }
7051
7086
  return !r2 && i2 && (g = i2), i2 || !r2 && g;
7052
7087
  }, O = function(t2, e2) {
7053
- if (S2(t2))
7088
+ if (S(t2))
7054
7089
  return t2.clone();
7055
7090
  var n2 = "object" == typeof e2 ? e2 : {};
7056
- return n2.date = t2, n2.args = arguments, new _2(n2);
7057
- }, b2 = v2;
7058
- b2.l = w2, b2.i = S2, b2.w = function(t2, e2) {
7091
+ return n2.date = t2, n2.args = arguments, new _(n2);
7092
+ }, b = v;
7093
+ b.l = w, b.i = S, b.w = function(t2, e2) {
7059
7094
  return O(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
7060
7095
  };
7061
- var _2 = function() {
7062
- function M3(t2) {
7063
- this.$L = w2(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
7096
+ var _ = function() {
7097
+ function M2(t2) {
7098
+ this.$L = w(t2.locale, null, true), this.parse(t2), this.$x = this.$x || t2.x || {}, this[p] = true;
7064
7099
  }
7065
- var m2 = M3.prototype;
7100
+ var m2 = M2.prototype;
7066
7101
  return m2.parse = function(t2) {
7067
7102
  this.$d = function(t3) {
7068
7103
  var e2 = t3.date, n2 = t3.utc;
7069
7104
  if (null === e2)
7070
7105
  return new Date(NaN);
7071
- if (b2.u(e2))
7106
+ if (b.u(e2))
7072
7107
  return new Date();
7073
7108
  if (e2 instanceof Date)
7074
7109
  return new Date(e2);
7075
7110
  if ("string" == typeof e2 && !/Z$/i.test(e2)) {
7076
- var r2 = e2.match($2);
7111
+ var r2 = e2.match($);
7077
7112
  if (r2) {
7078
7113
  var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
7079
7114
  return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
@@ -7085,7 +7120,7 @@ var __publicField = (obj, key, value) => {
7085
7120
  var t2 = this.$d;
7086
7121
  this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
7087
7122
  }, m2.$utils = function() {
7088
- return b2;
7123
+ return b;
7089
7124
  }, m2.isValid = function() {
7090
7125
  return !(this.$d.toString() === l);
7091
7126
  }, m2.isSame = function(t2, e2) {
@@ -7096,94 +7131,94 @@ var __publicField = (obj, key, value) => {
7096
7131
  }, m2.isBefore = function(t2, e2) {
7097
7132
  return this.endOf(e2) < O(t2);
7098
7133
  }, m2.$g = function(t2, e2, n2) {
7099
- return b2.u(t2) ? this[e2] : this.set(n2, t2);
7134
+ return b.u(t2) ? this[e2] : this.set(n2, t2);
7100
7135
  }, m2.unix = function() {
7101
7136
  return Math.floor(this.valueOf() / 1e3);
7102
7137
  }, m2.valueOf = function() {
7103
7138
  return this.$d.getTime();
7104
7139
  }, m2.startOf = function(t2, e2) {
7105
- var n2 = this, r2 = !!b2.u(e2) || e2, f3 = b2.p(t2), l2 = function(t3, e3) {
7106
- var i2 = b2.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
7140
+ var n2 = this, r2 = !!b.u(e2) || e2, f2 = b.p(t2), l2 = function(t3, e3) {
7141
+ var i2 = b.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
7107
7142
  return r2 ? i2 : i2.endOf(a);
7108
- }, $3 = function(t3, e3) {
7109
- return b2.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
7110
- }, y3 = this.$W, M4 = this.$M, m3 = this.$D, v3 = "set" + (this.$u ? "UTC" : "");
7111
- switch (f3) {
7143
+ }, $2 = function(t3, e3) {
7144
+ return b.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
7145
+ }, y2 = this.$W, M3 = this.$M, m3 = this.$D, v2 = "set" + (this.$u ? "UTC" : "");
7146
+ switch (f2) {
7112
7147
  case h:
7113
7148
  return r2 ? l2(1, 0) : l2(31, 11);
7114
7149
  case c:
7115
- return r2 ? l2(1, M4) : l2(0, M4 + 1);
7150
+ return r2 ? l2(1, M3) : l2(0, M3 + 1);
7116
7151
  case o:
7117
- var g2 = this.$locale().weekStart || 0, D3 = (y3 < g2 ? y3 + 7 : y3) - g2;
7118
- return l2(r2 ? m3 - D3 : m3 + (6 - D3), M4);
7152
+ var g2 = this.$locale().weekStart || 0, D2 = (y2 < g2 ? y2 + 7 : y2) - g2;
7153
+ return l2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
7119
7154
  case a:
7120
- case d2:
7121
- return $3(v3 + "Hours", 0);
7155
+ case d:
7156
+ return $2(v2 + "Hours", 0);
7122
7157
  case u:
7123
- return $3(v3 + "Minutes", 1);
7158
+ return $2(v2 + "Minutes", 1);
7124
7159
  case s:
7125
- return $3(v3 + "Seconds", 2);
7160
+ return $2(v2 + "Seconds", 2);
7126
7161
  case i:
7127
- return $3(v3 + "Milliseconds", 3);
7162
+ return $2(v2 + "Milliseconds", 3);
7128
7163
  default:
7129
7164
  return this.clone();
7130
7165
  }
7131
7166
  }, m2.endOf = function(t2) {
7132
7167
  return this.startOf(t2, false);
7133
7168
  }, m2.$set = function(t2, e2) {
7134
- var n2, o2 = b2.p(t2), f3 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f3 + "Date", n2[d2] = f3 + "Date", n2[c] = f3 + "Month", n2[h] = f3 + "FullYear", n2[u] = f3 + "Hours", n2[s] = f3 + "Minutes", n2[i] = f3 + "Seconds", n2[r] = f3 + "Milliseconds", n2)[o2], $3 = o2 === a ? this.$D + (e2 - this.$W) : e2;
7169
+ var n2, o2 = b.p(t2), f2 = "set" + (this.$u ? "UTC" : ""), l2 = (n2 = {}, n2[a] = f2 + "Date", n2[d] = f2 + "Date", n2[c] = f2 + "Month", n2[h] = f2 + "FullYear", n2[u] = f2 + "Hours", n2[s] = f2 + "Minutes", n2[i] = f2 + "Seconds", n2[r] = f2 + "Milliseconds", n2)[o2], $2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
7135
7170
  if (o2 === c || o2 === h) {
7136
- var y3 = this.clone().set(d2, 1);
7137
- y3.$d[l2]($3), y3.init(), this.$d = y3.set(d2, Math.min(this.$D, y3.daysInMonth())).$d;
7171
+ var y2 = this.clone().set(d, 1);
7172
+ y2.$d[l2]($2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
7138
7173
  } else
7139
- l2 && this.$d[l2]($3);
7174
+ l2 && this.$d[l2]($2);
7140
7175
  return this.init(), this;
7141
7176
  }, m2.set = function(t2, e2) {
7142
7177
  return this.clone().$set(t2, e2);
7143
7178
  }, m2.get = function(t2) {
7144
- return this[b2.p(t2)]();
7145
- }, m2.add = function(r2, f3) {
7146
- var d3, l2 = this;
7179
+ return this[b.p(t2)]();
7180
+ }, m2.add = function(r2, f2) {
7181
+ var d2, l2 = this;
7147
7182
  r2 = Number(r2);
7148
- var $3 = b2.p(f3), y3 = function(t2) {
7183
+ var $2 = b.p(f2), y2 = function(t2) {
7149
7184
  var e2 = O(l2);
7150
- return b2.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
7185
+ return b.w(e2.date(e2.date() + Math.round(t2 * r2)), l2);
7151
7186
  };
7152
- if ($3 === c)
7187
+ if ($2 === c)
7153
7188
  return this.set(c, this.$M + r2);
7154
- if ($3 === h)
7189
+ if ($2 === h)
7155
7190
  return this.set(h, this.$y + r2);
7156
- if ($3 === a)
7157
- return y3(1);
7158
- if ($3 === o)
7159
- return y3(7);
7160
- var M4 = (d3 = {}, d3[s] = e, d3[u] = n, d3[i] = t, d3)[$3] || 1, m3 = this.$d.getTime() + r2 * M4;
7161
- return b2.w(m3, this);
7191
+ if ($2 === a)
7192
+ return y2(1);
7193
+ if ($2 === o)
7194
+ return y2(7);
7195
+ var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[$2] || 1, m3 = this.$d.getTime() + r2 * M3;
7196
+ return b.w(m3, this);
7162
7197
  }, m2.subtract = function(t2, e2) {
7163
7198
  return this.add(-1 * t2, e2);
7164
7199
  }, m2.format = function(t2) {
7165
7200
  var e2 = this, n2 = this.$locale();
7166
7201
  if (!this.isValid())
7167
7202
  return n2.invalidDate || l;
7168
- var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b2.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f3 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
7203
+ var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = b.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, c2 = n2.months, f2 = n2.meridiem, h2 = function(t3, n3, i3, s3) {
7169
7204
  return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
7170
- }, d3 = function(t3) {
7171
- return b2.s(s2 % 12 || 12, t3, "0");
7172
- }, $3 = f3 || function(t3, e3, n3) {
7205
+ }, d2 = function(t3) {
7206
+ return b.s(s2 % 12 || 12, t3, "0");
7207
+ }, $2 = f2 || function(t3, e3, n3) {
7173
7208
  var r3 = t3 < 12 ? "AM" : "PM";
7174
7209
  return n3 ? r3.toLowerCase() : r3;
7175
7210
  };
7176
- return r2.replace(y2, function(t3, r3) {
7211
+ return r2.replace(y, function(t3, r3) {
7177
7212
  return r3 || function(t4) {
7178
7213
  switch (t4) {
7179
7214
  case "YY":
7180
7215
  return String(e2.$y).slice(-2);
7181
7216
  case "YYYY":
7182
- return b2.s(e2.$y, 4, "0");
7217
+ return b.s(e2.$y, 4, "0");
7183
7218
  case "M":
7184
7219
  return a2 + 1;
7185
7220
  case "MM":
7186
- return b2.s(a2 + 1, 2, "0");
7221
+ return b.s(a2 + 1, 2, "0");
7187
7222
  case "MMM":
7188
7223
  return h2(n2.monthsShort, a2, c2, 3);
7189
7224
  case "MMMM":
@@ -7191,7 +7226,7 @@ var __publicField = (obj, key, value) => {
7191
7226
  case "D":
7192
7227
  return e2.$D;
7193
7228
  case "DD":
7194
- return b2.s(e2.$D, 2, "0");
7229
+ return b.s(e2.$D, 2, "0");
7195
7230
  case "d":
7196
7231
  return String(e2.$W);
7197
7232
  case "dd":
@@ -7203,25 +7238,25 @@ var __publicField = (obj, key, value) => {
7203
7238
  case "H":
7204
7239
  return String(s2);
7205
7240
  case "HH":
7206
- return b2.s(s2, 2, "0");
7241
+ return b.s(s2, 2, "0");
7207
7242
  case "h":
7208
- return d3(1);
7243
+ return d2(1);
7209
7244
  case "hh":
7210
- return d3(2);
7245
+ return d2(2);
7211
7246
  case "a":
7212
- return $3(s2, u2, true);
7247
+ return $2(s2, u2, true);
7213
7248
  case "A":
7214
- return $3(s2, u2, false);
7249
+ return $2(s2, u2, false);
7215
7250
  case "m":
7216
7251
  return String(u2);
7217
7252
  case "mm":
7218
- return b2.s(u2, 2, "0");
7253
+ return b.s(u2, 2, "0");
7219
7254
  case "s":
7220
7255
  return String(e2.$s);
7221
7256
  case "ss":
7222
- return b2.s(e2.$s, 2, "0");
7257
+ return b.s(e2.$s, 2, "0");
7223
7258
  case "SSS":
7224
- return b2.s(e2.$ms, 3, "0");
7259
+ return b.s(e2.$ms, 3, "0");
7225
7260
  case "Z":
7226
7261
  return i2;
7227
7262
  }
@@ -7230,50 +7265,50 @@ var __publicField = (obj, key, value) => {
7230
7265
  });
7231
7266
  }, m2.utcOffset = function() {
7232
7267
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
7233
- }, m2.diff = function(r2, d3, l2) {
7234
- var $3, y3 = this, M4 = b2.p(d3), m3 = O(r2), v3 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D3 = function() {
7235
- return b2.m(y3, m3);
7268
+ }, m2.diff = function(r2, d2, l2) {
7269
+ var $2, y2 = this, M3 = b.p(d2), m3 = O(r2), v2 = (m3.utcOffset() - this.utcOffset()) * e, g2 = this - m3, D2 = function() {
7270
+ return b.m(y2, m3);
7236
7271
  };
7237
- switch (M4) {
7272
+ switch (M3) {
7238
7273
  case h:
7239
- $3 = D3() / 12;
7274
+ $2 = D2() / 12;
7240
7275
  break;
7241
7276
  case c:
7242
- $3 = D3();
7277
+ $2 = D2();
7243
7278
  break;
7244
- case f2:
7245
- $3 = D3() / 3;
7279
+ case f:
7280
+ $2 = D2() / 3;
7246
7281
  break;
7247
7282
  case o:
7248
- $3 = (g2 - v3) / 6048e5;
7283
+ $2 = (g2 - v2) / 6048e5;
7249
7284
  break;
7250
7285
  case a:
7251
- $3 = (g2 - v3) / 864e5;
7286
+ $2 = (g2 - v2) / 864e5;
7252
7287
  break;
7253
7288
  case u:
7254
- $3 = g2 / n;
7289
+ $2 = g2 / n;
7255
7290
  break;
7256
7291
  case s:
7257
- $3 = g2 / e;
7292
+ $2 = g2 / e;
7258
7293
  break;
7259
7294
  case i:
7260
- $3 = g2 / t;
7295
+ $2 = g2 / t;
7261
7296
  break;
7262
7297
  default:
7263
- $3 = g2;
7298
+ $2 = g2;
7264
7299
  }
7265
- return l2 ? $3 : b2.a($3);
7300
+ return l2 ? $2 : b.a($2);
7266
7301
  }, m2.daysInMonth = function() {
7267
7302
  return this.endOf(c).$D;
7268
7303
  }, m2.$locale = function() {
7269
- return D2[this.$L];
7304
+ return D[this.$L];
7270
7305
  }, m2.locale = function(t2, e2) {
7271
7306
  if (!t2)
7272
7307
  return this.$L;
7273
- var n2 = this.clone(), r2 = w2(t2, e2, true);
7308
+ var n2 = this.clone(), r2 = w(t2, e2, true);
7274
7309
  return r2 && (n2.$L = r2), n2;
7275
7310
  }, m2.clone = function() {
7276
- return b2.w(this.$d, this);
7311
+ return b.w(this.$d, this);
7277
7312
  }, m2.toDate = function() {
7278
7313
  return new Date(this.valueOf());
7279
7314
  }, m2.toJSON = function() {
@@ -7282,17 +7317,17 @@ var __publicField = (obj, key, value) => {
7282
7317
  return this.$d.toISOString();
7283
7318
  }, m2.toString = function() {
7284
7319
  return this.$d.toUTCString();
7285
- }, M3;
7286
- }(), k2 = _2.prototype;
7287
- return O.prototype = k2, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d2]].forEach(function(t2) {
7288
- k2[t2[1]] = function(e2) {
7320
+ }, M2;
7321
+ }(), k = _.prototype;
7322
+ return O.prototype = k, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", c], ["$y", h], ["$D", d]].forEach(function(t2) {
7323
+ k[t2[1]] = function(e2) {
7289
7324
  return this.$g(e2, t2[0], t2[1]);
7290
7325
  };
7291
7326
  }), O.extend = function(t2, e2) {
7292
- return t2.$i || (t2(e2, _2, O), t2.$i = true), O;
7293
- }, O.locale = w2, O.isDayjs = S2, O.unix = function(t2) {
7327
+ return t2.$i || (t2(e2, _, O), t2.$i = true), O;
7328
+ }, O.locale = w, O.isDayjs = S, O.unix = function(t2) {
7294
7329
  return O(1e3 * t2);
7295
- }, O.en = D2[g], O.Ls = D2, O.p = {}, O;
7330
+ }, O.en = D[g], O.Ls = D, O.p = {}, O;
7296
7331
  });
7297
7332
  })(dayjs_min);
7298
7333
  const dayjs = dayjs_min.exports;
@@ -7343,13 +7378,13 @@ var __publicField = (obj, key, value) => {
7343
7378
  const canScale = record.kind === "Deployment" || record.kind === "StatefulSet";
7344
7379
  const currentReplicas = lodashEs.get(record, "spec.replicas", 0);
7345
7380
  const scale = (delta) => {
7346
- const v2 = record.scale(currentReplicas + delta);
7347
- const id = v2.id;
7348
- pruneBeforeEdit(v2);
7381
+ const v = record.scale(currentReplicas + delta);
7382
+ const id = v.id;
7383
+ pruneBeforeEdit(v);
7349
7384
  mutate({
7350
7385
  id,
7351
7386
  resource: (resource == null ? void 0 : resource.name) || "",
7352
- values: v2
7387
+ values: v
7353
7388
  });
7354
7389
  };
7355
7390
  return /* @__PURE__ */ jsxRuntime.exports.jsxs("span", {
@@ -7392,9 +7427,9 @@ var __publicField = (obj, key, value) => {
7392
7427
  }
7393
7428
  );
7394
7429
  };
7395
- const CommonSorter = (dataIndex) => (a, b2) => {
7430
+ const CommonSorter = (dataIndex) => (a, b) => {
7396
7431
  const valA = lodash.exports.get(a, dataIndex);
7397
- const valB = lodash.exports.get(b2, dataIndex);
7432
+ const valB = lodash.exports.get(b, dataIndex);
7398
7433
  if (valA === valB)
7399
7434
  return 0;
7400
7435
  if (valA > valB)
@@ -7410,8 +7445,8 @@ var __publicField = (obj, key, value) => {
7410
7445
  title: i18n2.t("name"),
7411
7446
  sortable: true,
7412
7447
  sorter: CommonSorter(dataIndex),
7413
- render: (v2, record) => {
7414
- return /* @__PURE__ */ jsxRuntime.exports.jsx(NameLink, { name: v2, id: record.id, resource });
7448
+ render: (v, record) => {
7449
+ return /* @__PURE__ */ jsxRuntime.exports.jsx(NameLink, { name: v, id: record.id, resource });
7415
7450
  }
7416
7451
  };
7417
7452
  };
@@ -7435,7 +7470,7 @@ var __publicField = (obj, key, value) => {
7435
7470
  title: i18n2.t("phase"),
7436
7471
  sortable: true,
7437
7472
  sorter: CommonSorter(dataIndex),
7438
- render: (v2) => /* @__PURE__ */ jsxRuntime.exports.jsx(StateTag, { state: v2 })
7473
+ render: (v) => /* @__PURE__ */ jsxRuntime.exports.jsx(StateTag, { state: v })
7439
7474
  };
7440
7475
  };
7441
7476
  const WorkloadImageColumnRenderer = (i18n2) => {
@@ -7461,7 +7496,7 @@ var __publicField = (obj, key, value) => {
7461
7496
  title: i18n2.t("replicas"),
7462
7497
  sortable: true,
7463
7498
  sorter: CommonSorter(dataIndex),
7464
- render: (_2, record) => {
7499
+ render: (_, record) => {
7465
7500
  return /* @__PURE__ */ jsxRuntime.exports.jsx(WorkloadReplicas, { record });
7466
7501
  }
7467
7502
  };
@@ -7474,9 +7509,9 @@ var __publicField = (obj, key, value) => {
7474
7509
  dataIndex,
7475
7510
  title: i18n2.t("created_time"),
7476
7511
  sortable: true,
7477
- sorter: (a, b2) => {
7512
+ sorter: (a, b) => {
7478
7513
  const valA = new Date(lodash.exports.get(a, dataIndex));
7479
- const valB = new Date(lodash.exports.get(b2, dataIndex));
7514
+ const valB = new Date(lodash.exports.get(b, dataIndex));
7480
7515
  if (valA === valB)
7481
7516
  return 0;
7482
7517
  if (valA > valB)
@@ -7532,6 +7567,17 @@ var __publicField = (obj, key, value) => {
7532
7567
  sorter: CommonSorter(dataIndex)
7533
7568
  };
7534
7569
  };
7570
+ const ServiceTypeColumnRenderer = (i18n2) => {
7571
+ const dataIndex = ["rawYaml", "spec", "type"];
7572
+ return {
7573
+ key: "type",
7574
+ title: i18n2.t("dovetail.type"),
7575
+ display: true,
7576
+ dataIndex,
7577
+ sortable: true,
7578
+ sorter: CommonSorter(dataIndex)
7579
+ };
7580
+ };
7535
7581
  function download(filename, content) {
7536
7582
  const element = document.createElement("a");
7537
7583
  element.setAttribute(
@@ -7836,7 +7882,7 @@ var __publicField = (obj, key, value) => {
7836
7882
  display: true,
7837
7883
  dataIndex: [],
7838
7884
  title: () => /* @__PURE__ */ jsxRuntime.exports.jsx(eagle.Icon, { src: iconsReact.SettingsGear16GradientGrayIcon }),
7839
- render: (_2, record) => {
7885
+ render: (_, record) => {
7840
7886
  return /* @__PURE__ */ jsxRuntime.exports.jsx(Dropdown, { data: record });
7841
7887
  }
7842
7888
  };
@@ -8968,7 +9014,6 @@ var __publicField = (obj, key, value) => {
8968
9014
  }
8969
9015
  );
8970
9016
  };
8971
- const WorkloadPodsTable_z2tsj7 = "";
8972
9017
  function matchSelector(pod, selector) {
8973
9018
  var _a, _b, _c;
8974
9019
  let match = true;
@@ -8979,6 +9024,7 @@ var __publicField = (obj, key, value) => {
8979
9024
  }
8980
9025
  return match;
8981
9026
  }
9027
+ const WorkloadPodsTable_z2tsj7 = "";
8982
9028
  const WorkloadPodsTable = ({
8983
9029
  selector
8984
9030
  }) => {
@@ -9039,7 +9085,7 @@ var __publicField = (obj, key, value) => {
9039
9085
  key: "Replicas",
9040
9086
  title: i18n2.t("replicas"),
9041
9087
  path: ["status", "replicas"],
9042
- render: (_2, record) => {
9088
+ render: (_, record) => {
9043
9089
  return /* @__PURE__ */ jsxRuntime.exports.jsx(WorkloadReplicas, { record });
9044
9090
  }
9045
9091
  };
@@ -9054,12 +9100,12 @@ var __publicField = (obj, key, value) => {
9054
9100
  }
9055
9101
  };
9056
9102
  };
9057
- const PodsField = (_2) => {
9103
+ const PodsField = (_) => {
9058
9104
  return {
9059
9105
  key: "pods",
9060
9106
  title: "Pods",
9061
9107
  path: [],
9062
- render: (_22, record) => {
9108
+ render: (_2, record) => {
9063
9109
  var _a, _b;
9064
9110
  return /* @__PURE__ */ jsxRuntime.exports.jsx(
9065
9111
  WorkloadPodsTable,
@@ -9072,12 +9118,12 @@ var __publicField = (obj, key, value) => {
9072
9118
  }
9073
9119
  };
9074
9120
  };
9075
- const JobsField = (_2) => {
9121
+ const JobsField = (_) => {
9076
9122
  return {
9077
9123
  key: "jobs",
9078
9124
  title: "Jobs",
9079
9125
  path: [],
9080
- render: (_22, record) => {
9126
+ render: (_2, record) => {
9081
9127
  var _a, _b, _c;
9082
9128
  return /* @__PURE__ */ jsxRuntime.exports.jsx(
9083
9129
  CronjobJobsTable,
@@ -9128,6 +9174,45 @@ var __publicField = (obj, key, value) => {
9128
9174
  }
9129
9175
  };
9130
9176
  };
9177
+ const ServiceTypeField = (i18n2) => {
9178
+ return {
9179
+ key: "type",
9180
+ title: i18n2.t("dovetail.type"),
9181
+ path: ["rawYaml", "spec", "type"]
9182
+ };
9183
+ };
9184
+ const ClusterIpField = (i18n2) => {
9185
+ return {
9186
+ key: "clusterIp",
9187
+ title: i18n2.t("dovetail.clusterIp"),
9188
+ path: ["rawYaml", "spec", "clusterIP"]
9189
+ };
9190
+ };
9191
+ const SessionAffinityField = (i18n2) => {
9192
+ return {
9193
+ key: "clusterIp",
9194
+ title: i18n2.t("dovetail.sessionAffinity"),
9195
+ path: ["rawYaml", "spec", "sessionAffinity"]
9196
+ };
9197
+ };
9198
+ const ServicePodsField = (_) => {
9199
+ return {
9200
+ key: "pods",
9201
+ title: "Pods",
9202
+ path: [],
9203
+ render: (_2, record) => {
9204
+ var _a, _b;
9205
+ return /* @__PURE__ */ jsxRuntime.exports.jsx(
9206
+ WorkloadPodsTable,
9207
+ {
9208
+ selector: (_b = (_a = record.metadata.relations) == null ? void 0 : _a.find((r) => {
9209
+ return r.kind === "Pod" && r.type === "selects";
9210
+ })) == null ? void 0 : _b.selector
9211
+ }
9212
+ );
9213
+ }
9214
+ };
9215
+ };
9131
9216
  const style_inzxm5 = "";
9132
9217
  const ToolBarStyle = "t1joof7s";
9133
9218
  const ToolBarHeaderStyle = "tti58uh";
@@ -9335,6 +9420,9 @@ var __publicField = (obj, key, value) => {
9335
9420
  const {
9336
9421
  t
9337
9422
  } = useTranslation();
9423
+ const {
9424
+ fold
9425
+ } = useK8sYamlEditor();
9338
9426
  const {
9339
9427
  data: data2
9340
9428
  } = queryResult;
@@ -9463,8 +9551,11 @@ var __publicField = (obj, key, value) => {
9463
9551
  }),
9464
9552
  ["yaml"]: /* @__PURE__ */ jsxRuntime.exports.jsx(MonacoYamlEditor$1, {
9465
9553
  className: EditorStyle$1,
9466
- defaultValue: yaml__default.default.dump(record),
9554
+ defaultValue: yaml__default.default.dump(lodashEs.omit(k8sApiProvider.relationPlugin.restoreItem(data2.data), "id")),
9467
9555
  schema: {},
9556
+ onEditorCreate: (editor) => {
9557
+ fold(editor);
9558
+ },
9468
9559
  readOnly: true
9469
9560
  })
9470
9561
  };
@@ -9517,7 +9608,7 @@ var __publicField = (obj, key, value) => {
9517
9608
  title: i18n2.t("state"),
9518
9609
  sortable: true,
9519
9610
  sorter: CommonSorter(["state"]),
9520
- render: (v2) => /* @__PURE__ */ jsxRuntime.exports.jsx(StateTag, { state: Object.keys(v2)[0] })
9611
+ render: (v) => /* @__PURE__ */ jsxRuntime.exports.jsx(StateTag, { state: Object.keys(v)[0] })
9521
9612
  },
9522
9613
  {
9523
9614
  key: "ready",
@@ -9525,10 +9616,10 @@ var __publicField = (obj, key, value) => {
9525
9616
  title: i18n2.t("ready"),
9526
9617
  sortable: true,
9527
9618
  sorter: CommonSorter(["ready"]),
9528
- render: (v2) => /* @__PURE__ */ jsxRuntime.exports.jsx(
9619
+ render: (v) => /* @__PURE__ */ jsxRuntime.exports.jsx(
9529
9620
  eagle.Icon,
9530
9621
  {
9531
- src: v2 ? iconsReact.CheckmarkDoneSuccessCorrect16BoldGreenIcon : iconsReact.XmarkFailed16BoldRedIcon
9622
+ src: v ? iconsReact.CheckmarkDoneSuccessCorrect16BoldGreenIcon : iconsReact.XmarkFailed16BoldRedIcon
9532
9623
  }
9533
9624
  )
9534
9625
  },
@@ -9550,7 +9641,7 @@ var __publicField = (obj, key, value) => {
9550
9641
  key: "init",
9551
9642
  dataIndex: [],
9552
9643
  title: i18n2.t("init_container"),
9553
- render: (_2, record) => {
9644
+ render: (_, record) => {
9554
9645
  const isInit = initContainerStatuses.some(
9555
9646
  (c) => c.containerID === record.containerID
9556
9647
  );
@@ -9607,13 +9698,13 @@ var __publicField = (obj, key, value) => {
9607
9698
  kit.menu.Item,
9608
9699
  {
9609
9700
  onClick: () => {
9610
- const v2 = data2.redeploy();
9611
- const id = v2.id;
9612
- pruneBeforeEdit(v2);
9701
+ const v = data2.redeploy();
9702
+ const id = v.id;
9703
+ pruneBeforeEdit(v);
9613
9704
  mutate({
9614
9705
  id,
9615
9706
  resource: (resource == null ? void 0 : resource.name) || "",
9616
- values: v2
9707
+ values: v
9617
9708
  });
9618
9709
  },
9619
9710
  children: /* @__PURE__ */ jsxRuntime.exports.jsx(eagle.Icon, { src: iconsReact.DynamicResourceSchedule16BlueIcon, children: t("dovetail.redeploy") })
@@ -9716,7 +9807,8 @@ var __publicField = (obj, key, value) => {
9716
9807
  getEditorValue: () => {
9717
9808
  var _a;
9718
9809
  return ((_a = editorInstance.current) == null ? void 0 : _a.getValue()) || "";
9719
- }
9810
+ },
9811
+ getEditorInstance: () => editorInstance.current || null
9720
9812
  };
9721
9813
  });
9722
9814
  const onChange = React.useCallback(
@@ -10034,7 +10126,8 @@ var __publicField = (obj, key, value) => {
10034
10126
  })
10035
10127
  });
10036
10128
  }
10037
- const ResourceForm = ({ config }) => {
10129
+ function ResourceForm(props) {
10130
+ const { config } = props;
10038
10131
  return /* @__PURE__ */ jsxRuntime.exports.jsx(
10039
10132
  YamlForm,
10040
10133
  {
@@ -10046,13 +10139,13 @@ var __publicField = (obj, key, value) => {
10046
10139
  }
10047
10140
  }
10048
10141
  );
10049
- };
10142
+ }
10050
10143
  const ResourceCRUD = (props) => {
10051
10144
  const { configs, urlPrefix } = props;
10052
10145
  const { i18n: i18n2 } = useTranslation();
10053
10146
  return /* @__PURE__ */ jsxRuntime.exports.jsx(jsxRuntime.exports.Fragment, { children: configs.map((config) => {
10054
10147
  var _a, _b;
10055
- const formatter = config.formatter || ((v2) => new ResourceModel(v2));
10148
+ const formatter = config.formatter || ((v) => new ResourceModel(v));
10056
10149
  return /* @__PURE__ */ jsxRuntime.exports.jsxs(React__default.default.Fragment, { children: [
10057
10150
  /* @__PURE__ */ jsxRuntime.exports.jsx(reactRouterDom.Route, { path: `${urlPrefix}/${config.name}`, exact: true, children: /* @__PURE__ */ jsxRuntime.exports.jsx(
10058
10151
  ResourceList,
@@ -10088,13 +10181,13 @@ var __publicField = (obj, key, value) => {
10088
10181
  kit.menu.Item,
10089
10182
  {
10090
10183
  onClick: () => {
10091
- const v2 = suspended ? data2.resume() : data2.suspend();
10092
- const id = v2.id;
10093
- pruneBeforeEdit(v2);
10184
+ const v = suspended ? data2.resume() : data2.suspend();
10185
+ const id = v.id;
10186
+ pruneBeforeEdit(v);
10094
10187
  mutate({
10095
10188
  id,
10096
10189
  resource: (resource == null ? void 0 : resource.name) || "",
10097
- values: v2
10190
+ values: v
10098
10191
  });
10099
10192
  },
10100
10193
  children: /* @__PURE__ */ jsxRuntime.exports.jsx(eagle.Icon, { src: suspended ? iconsReact.VmResume16Icon : iconsReact.SuspendedPause16GradientGrayIcon, children: t(suspended ? "dovetail.resume" : "dovetail.suspend") })
@@ -10281,1265 +10374,6 @@ var __publicField = (obj, key, value) => {
10281
10374
  }
10282
10375
  );
10283
10376
  };
10284
- function isAbsolute(pathname) {
10285
- return pathname.charAt(0) === "/";
10286
- }
10287
- function spliceOne(list, index) {
10288
- for (var i = index, k2 = i + 1, n = list.length; k2 < n; i += 1, k2 += 1) {
10289
- list[i] = list[k2];
10290
- }
10291
- list.pop();
10292
- }
10293
- function resolvePathname(to, from) {
10294
- if (from === void 0)
10295
- from = "";
10296
- var toParts = to && to.split("/") || [];
10297
- var fromParts = from && from.split("/") || [];
10298
- var isToAbs = to && isAbsolute(to);
10299
- var isFromAbs = from && isAbsolute(from);
10300
- var mustEndAbs = isToAbs || isFromAbs;
10301
- if (to && isAbsolute(to)) {
10302
- fromParts = toParts;
10303
- } else if (toParts.length) {
10304
- fromParts.pop();
10305
- fromParts = fromParts.concat(toParts);
10306
- }
10307
- if (!fromParts.length)
10308
- return "/";
10309
- var hasTrailingSlash;
10310
- if (fromParts.length) {
10311
- var last = fromParts[fromParts.length - 1];
10312
- hasTrailingSlash = last === "." || last === ".." || last === "";
10313
- } else {
10314
- hasTrailingSlash = false;
10315
- }
10316
- var up = 0;
10317
- for (var i = fromParts.length; i >= 0; i--) {
10318
- var part = fromParts[i];
10319
- if (part === ".") {
10320
- spliceOne(fromParts, i);
10321
- } else if (part === "..") {
10322
- spliceOne(fromParts, i);
10323
- up++;
10324
- } else if (up) {
10325
- spliceOne(fromParts, i);
10326
- up--;
10327
- }
10328
- }
10329
- if (!mustEndAbs)
10330
- for (; up--; up)
10331
- fromParts.unshift("..");
10332
- if (mustEndAbs && fromParts[0] !== "" && (!fromParts[0] || !isAbsolute(fromParts[0])))
10333
- fromParts.unshift("");
10334
- var result = fromParts.join("/");
10335
- if (hasTrailingSlash && result.substr(-1) !== "/")
10336
- result += "/";
10337
- return result;
10338
- }
10339
- var isProduction$1 = process.env.NODE_ENV === "production";
10340
- function warning(condition2, message2) {
10341
- if (!isProduction$1) {
10342
- if (condition2) {
10343
- return;
10344
- }
10345
- var text = "Warning: " + message2;
10346
- if (typeof console !== "undefined") {
10347
- console.warn(text);
10348
- }
10349
- try {
10350
- throw Error(text);
10351
- } catch (x2) {
10352
- }
10353
- }
10354
- }
10355
- var isProduction = process.env.NODE_ENV === "production";
10356
- var prefix = "Invariant failed";
10357
- function invariant(condition2, message2) {
10358
- if (condition2) {
10359
- return;
10360
- }
10361
- if (isProduction) {
10362
- throw new Error(prefix);
10363
- }
10364
- var provided = typeof message2 === "function" ? message2() : message2;
10365
- var value = provided ? "".concat(prefix, ": ").concat(provided) : prefix;
10366
- throw new Error(value);
10367
- }
10368
- function addLeadingSlash(path) {
10369
- return path.charAt(0) === "/" ? path : "/" + path;
10370
- }
10371
- function stripLeadingSlash(path) {
10372
- return path.charAt(0) === "/" ? path.substr(1) : path;
10373
- }
10374
- function hasBasename(path, prefix2) {
10375
- return path.toLowerCase().indexOf(prefix2.toLowerCase()) === 0 && "/?#".indexOf(path.charAt(prefix2.length)) !== -1;
10376
- }
10377
- function stripBasename(path, prefix2) {
10378
- return hasBasename(path, prefix2) ? path.substr(prefix2.length) : path;
10379
- }
10380
- function stripTrailingSlash(path) {
10381
- return path.charAt(path.length - 1) === "/" ? path.slice(0, -1) : path;
10382
- }
10383
- function parsePath(path) {
10384
- var pathname = path || "/";
10385
- var search = "";
10386
- var hash = "";
10387
- var hashIndex = pathname.indexOf("#");
10388
- if (hashIndex !== -1) {
10389
- hash = pathname.substr(hashIndex);
10390
- pathname = pathname.substr(0, hashIndex);
10391
- }
10392
- var searchIndex = pathname.indexOf("?");
10393
- if (searchIndex !== -1) {
10394
- search = pathname.substr(searchIndex);
10395
- pathname = pathname.substr(0, searchIndex);
10396
- }
10397
- return {
10398
- pathname,
10399
- search: search === "?" ? "" : search,
10400
- hash: hash === "#" ? "" : hash
10401
- };
10402
- }
10403
- function createPath(location2) {
10404
- var pathname = location2.pathname, search = location2.search, hash = location2.hash;
10405
- var path = pathname || "/";
10406
- if (search && search !== "?")
10407
- path += search.charAt(0) === "?" ? search : "?" + search;
10408
- if (hash && hash !== "#")
10409
- path += hash.charAt(0) === "#" ? hash : "#" + hash;
10410
- return path;
10411
- }
10412
- function createLocation(path, state2, key, currentLocation) {
10413
- var location2;
10414
- if (typeof path === "string") {
10415
- location2 = parsePath(path);
10416
- location2.state = state2;
10417
- } else {
10418
- location2 = _extends({}, path);
10419
- if (location2.pathname === void 0)
10420
- location2.pathname = "";
10421
- if (location2.search) {
10422
- if (location2.search.charAt(0) !== "?")
10423
- location2.search = "?" + location2.search;
10424
- } else {
10425
- location2.search = "";
10426
- }
10427
- if (location2.hash) {
10428
- if (location2.hash.charAt(0) !== "#")
10429
- location2.hash = "#" + location2.hash;
10430
- } else {
10431
- location2.hash = "";
10432
- }
10433
- if (state2 !== void 0 && location2.state === void 0)
10434
- location2.state = state2;
10435
- }
10436
- try {
10437
- location2.pathname = decodeURI(location2.pathname);
10438
- } catch (e) {
10439
- if (e instanceof URIError) {
10440
- throw new URIError('Pathname "' + location2.pathname + '" could not be decoded. This is likely caused by an invalid percent-encoding.');
10441
- } else {
10442
- throw e;
10443
- }
10444
- }
10445
- if (key)
10446
- location2.key = key;
10447
- if (currentLocation) {
10448
- if (!location2.pathname) {
10449
- location2.pathname = currentLocation.pathname;
10450
- } else if (location2.pathname.charAt(0) !== "/") {
10451
- location2.pathname = resolvePathname(location2.pathname, currentLocation.pathname);
10452
- }
10453
- } else {
10454
- if (!location2.pathname) {
10455
- location2.pathname = "/";
10456
- }
10457
- }
10458
- return location2;
10459
- }
10460
- function createTransitionManager() {
10461
- var prompt = null;
10462
- function setPrompt(nextPrompt) {
10463
- process.env.NODE_ENV !== "production" ? warning(prompt == null, "A history supports only one prompt at a time") : void 0;
10464
- prompt = nextPrompt;
10465
- return function() {
10466
- if (prompt === nextPrompt)
10467
- prompt = null;
10468
- };
10469
- }
10470
- function confirmTransitionTo(location2, action, getUserConfirmation, callback) {
10471
- if (prompt != null) {
10472
- var result = typeof prompt === "function" ? prompt(location2, action) : prompt;
10473
- if (typeof result === "string") {
10474
- if (typeof getUserConfirmation === "function") {
10475
- getUserConfirmation(result, callback);
10476
- } else {
10477
- process.env.NODE_ENV !== "production" ? warning(false, "A history needs a getUserConfirmation function in order to use a prompt message") : void 0;
10478
- callback(true);
10479
- }
10480
- } else {
10481
- callback(result !== false);
10482
- }
10483
- } else {
10484
- callback(true);
10485
- }
10486
- }
10487
- var listeners = [];
10488
- function appendListener(fn) {
10489
- var isActive = true;
10490
- function listener() {
10491
- if (isActive)
10492
- fn.apply(void 0, arguments);
10493
- }
10494
- listeners.push(listener);
10495
- return function() {
10496
- isActive = false;
10497
- listeners = listeners.filter(function(item) {
10498
- return item !== listener;
10499
- });
10500
- };
10501
- }
10502
- function notifyListeners() {
10503
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
10504
- args[_key] = arguments[_key];
10505
- }
10506
- listeners.forEach(function(listener) {
10507
- return listener.apply(void 0, args);
10508
- });
10509
- }
10510
- return {
10511
- setPrompt,
10512
- confirmTransitionTo,
10513
- appendListener,
10514
- notifyListeners
10515
- };
10516
- }
10517
- var canUseDOM = !!(typeof window !== "undefined" && window.document && window.document.createElement);
10518
- function getConfirmation(message2, callback) {
10519
- callback(window.confirm(message2));
10520
- }
10521
- function supportsHistory() {
10522
- var ua = window.navigator.userAgent;
10523
- if ((ua.indexOf("Android 2.") !== -1 || ua.indexOf("Android 4.0") !== -1) && ua.indexOf("Mobile Safari") !== -1 && ua.indexOf("Chrome") === -1 && ua.indexOf("Windows Phone") === -1)
10524
- return false;
10525
- return window.history && "pushState" in window.history;
10526
- }
10527
- function supportsPopStateOnHashChange() {
10528
- return window.navigator.userAgent.indexOf("Trident") === -1;
10529
- }
10530
- function supportsGoWithoutReloadUsingHash() {
10531
- return window.navigator.userAgent.indexOf("Firefox") === -1;
10532
- }
10533
- function isExtraneousPopstateEvent(event) {
10534
- return event.state === void 0 && navigator.userAgent.indexOf("CriOS") === -1;
10535
- }
10536
- var PopStateEvent = "popstate";
10537
- var HashChangeEvent = "hashchange";
10538
- function getHistoryState() {
10539
- try {
10540
- return window.history.state || {};
10541
- } catch (e) {
10542
- return {};
10543
- }
10544
- }
10545
- function createBrowserHistory(props) {
10546
- if (props === void 0) {
10547
- props = {};
10548
- }
10549
- !canUseDOM ? process.env.NODE_ENV !== "production" ? invariant(false, "Browser history needs a DOM") : invariant(false) : void 0;
10550
- var globalHistory = window.history;
10551
- var canUseHistory = supportsHistory();
10552
- var needsHashChangeListener = !supportsPopStateOnHashChange();
10553
- var _props = props, _props$forceRefresh = _props.forceRefresh, forceRefresh = _props$forceRefresh === void 0 ? false : _props$forceRefresh, _props$getUserConfirm = _props.getUserConfirmation, getUserConfirmation = _props$getUserConfirm === void 0 ? getConfirmation : _props$getUserConfirm, _props$keyLength = _props.keyLength, keyLength = _props$keyLength === void 0 ? 6 : _props$keyLength;
10554
- var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : "";
10555
- function getDOMLocation(historyState) {
10556
- var _ref = historyState || {}, key = _ref.key, state2 = _ref.state;
10557
- var _window$location = window.location, pathname = _window$location.pathname, search = _window$location.search, hash = _window$location.hash;
10558
- var path = pathname + search + hash;
10559
- process.env.NODE_ENV !== "production" ? warning(!basename || hasBasename(path, basename), 'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "' + path + '" to begin with "' + basename + '".') : void 0;
10560
- if (basename)
10561
- path = stripBasename(path, basename);
10562
- return createLocation(path, state2, key);
10563
- }
10564
- function createKey() {
10565
- return Math.random().toString(36).substr(2, keyLength);
10566
- }
10567
- var transitionManager = createTransitionManager();
10568
- function setState(nextState) {
10569
- _extends(history, nextState);
10570
- history.length = globalHistory.length;
10571
- transitionManager.notifyListeners(history.location, history.action);
10572
- }
10573
- function handlePopState(event) {
10574
- if (isExtraneousPopstateEvent(event))
10575
- return;
10576
- handlePop(getDOMLocation(event.state));
10577
- }
10578
- function handleHashChange() {
10579
- handlePop(getDOMLocation(getHistoryState()));
10580
- }
10581
- var forceNextPop = false;
10582
- function handlePop(location2) {
10583
- if (forceNextPop) {
10584
- forceNextPop = false;
10585
- setState();
10586
- } else {
10587
- var action = "POP";
10588
- transitionManager.confirmTransitionTo(location2, action, getUserConfirmation, function(ok) {
10589
- if (ok) {
10590
- setState({
10591
- action,
10592
- location: location2
10593
- });
10594
- } else {
10595
- revertPop(location2);
10596
- }
10597
- });
10598
- }
10599
- }
10600
- function revertPop(fromLocation) {
10601
- var toLocation = history.location;
10602
- var toIndex = allKeys.indexOf(toLocation.key);
10603
- if (toIndex === -1)
10604
- toIndex = 0;
10605
- var fromIndex = allKeys.indexOf(fromLocation.key);
10606
- if (fromIndex === -1)
10607
- fromIndex = 0;
10608
- var delta = toIndex - fromIndex;
10609
- if (delta) {
10610
- forceNextPop = true;
10611
- go(delta);
10612
- }
10613
- }
10614
- var initialLocation = getDOMLocation(getHistoryState());
10615
- var allKeys = [initialLocation.key];
10616
- function createHref(location2) {
10617
- return basename + createPath(location2);
10618
- }
10619
- function push(path, state2) {
10620
- process.env.NODE_ENV !== "production" ? warning(!(typeof path === "object" && path.state !== void 0 && state2 !== void 0), "You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored") : void 0;
10621
- var action = "PUSH";
10622
- var location2 = createLocation(path, state2, createKey(), history.location);
10623
- transitionManager.confirmTransitionTo(location2, action, getUserConfirmation, function(ok) {
10624
- if (!ok)
10625
- return;
10626
- var href = createHref(location2);
10627
- var key = location2.key, state3 = location2.state;
10628
- if (canUseHistory) {
10629
- globalHistory.pushState({
10630
- key,
10631
- state: state3
10632
- }, null, href);
10633
- if (forceRefresh) {
10634
- window.location.href = href;
10635
- } else {
10636
- var prevIndex = allKeys.indexOf(history.location.key);
10637
- var nextKeys = allKeys.slice(0, prevIndex + 1);
10638
- nextKeys.push(location2.key);
10639
- allKeys = nextKeys;
10640
- setState({
10641
- action,
10642
- location: location2
10643
- });
10644
- }
10645
- } else {
10646
- process.env.NODE_ENV !== "production" ? warning(state3 === void 0, "Browser history cannot push state in browsers that do not support HTML5 history") : void 0;
10647
- window.location.href = href;
10648
- }
10649
- });
10650
- }
10651
- function replace(path, state2) {
10652
- process.env.NODE_ENV !== "production" ? warning(!(typeof path === "object" && path.state !== void 0 && state2 !== void 0), "You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored") : void 0;
10653
- var action = "REPLACE";
10654
- var location2 = createLocation(path, state2, createKey(), history.location);
10655
- transitionManager.confirmTransitionTo(location2, action, getUserConfirmation, function(ok) {
10656
- if (!ok)
10657
- return;
10658
- var href = createHref(location2);
10659
- var key = location2.key, state3 = location2.state;
10660
- if (canUseHistory) {
10661
- globalHistory.replaceState({
10662
- key,
10663
- state: state3
10664
- }, null, href);
10665
- if (forceRefresh) {
10666
- window.location.replace(href);
10667
- } else {
10668
- var prevIndex = allKeys.indexOf(history.location.key);
10669
- if (prevIndex !== -1)
10670
- allKeys[prevIndex] = location2.key;
10671
- setState({
10672
- action,
10673
- location: location2
10674
- });
10675
- }
10676
- } else {
10677
- process.env.NODE_ENV !== "production" ? warning(state3 === void 0, "Browser history cannot replace state in browsers that do not support HTML5 history") : void 0;
10678
- window.location.replace(href);
10679
- }
10680
- });
10681
- }
10682
- function go(n) {
10683
- globalHistory.go(n);
10684
- }
10685
- function goBack() {
10686
- go(-1);
10687
- }
10688
- function goForward() {
10689
- go(1);
10690
- }
10691
- var listenerCount = 0;
10692
- function checkDOMListeners(delta) {
10693
- listenerCount += delta;
10694
- if (listenerCount === 1 && delta === 1) {
10695
- window.addEventListener(PopStateEvent, handlePopState);
10696
- if (needsHashChangeListener)
10697
- window.addEventListener(HashChangeEvent, handleHashChange);
10698
- } else if (listenerCount === 0) {
10699
- window.removeEventListener(PopStateEvent, handlePopState);
10700
- if (needsHashChangeListener)
10701
- window.removeEventListener(HashChangeEvent, handleHashChange);
10702
- }
10703
- }
10704
- var isBlocked = false;
10705
- function block(prompt) {
10706
- if (prompt === void 0) {
10707
- prompt = false;
10708
- }
10709
- var unblock = transitionManager.setPrompt(prompt);
10710
- if (!isBlocked) {
10711
- checkDOMListeners(1);
10712
- isBlocked = true;
10713
- }
10714
- return function() {
10715
- if (isBlocked) {
10716
- isBlocked = false;
10717
- checkDOMListeners(-1);
10718
- }
10719
- return unblock();
10720
- };
10721
- }
10722
- function listen(listener) {
10723
- var unlisten = transitionManager.appendListener(listener);
10724
- checkDOMListeners(1);
10725
- return function() {
10726
- checkDOMListeners(-1);
10727
- unlisten();
10728
- };
10729
- }
10730
- var history = {
10731
- length: globalHistory.length,
10732
- action: "POP",
10733
- location: initialLocation,
10734
- createHref,
10735
- push,
10736
- replace,
10737
- go,
10738
- goBack,
10739
- goForward,
10740
- block,
10741
- listen
10742
- };
10743
- return history;
10744
- }
10745
- var HashChangeEvent$1 = "hashchange";
10746
- var HashPathCoders = {
10747
- hashbang: {
10748
- encodePath: function encodePath(path) {
10749
- return path.charAt(0) === "!" ? path : "!/" + stripLeadingSlash(path);
10750
- },
10751
- decodePath: function decodePath(path) {
10752
- return path.charAt(0) === "!" ? path.substr(1) : path;
10753
- }
10754
- },
10755
- noslash: {
10756
- encodePath: stripLeadingSlash,
10757
- decodePath: addLeadingSlash
10758
- },
10759
- slash: {
10760
- encodePath: addLeadingSlash,
10761
- decodePath: addLeadingSlash
10762
- }
10763
- };
10764
- function stripHash(url) {
10765
- var hashIndex = url.indexOf("#");
10766
- return hashIndex === -1 ? url : url.slice(0, hashIndex);
10767
- }
10768
- function getHashPath() {
10769
- var href = window.location.href;
10770
- var hashIndex = href.indexOf("#");
10771
- return hashIndex === -1 ? "" : href.substring(hashIndex + 1);
10772
- }
10773
- function pushHashPath(path) {
10774
- window.location.hash = path;
10775
- }
10776
- function replaceHashPath(path) {
10777
- window.location.replace(stripHash(window.location.href) + "#" + path);
10778
- }
10779
- function createHashHistory(props) {
10780
- if (props === void 0) {
10781
- props = {};
10782
- }
10783
- !canUseDOM ? process.env.NODE_ENV !== "production" ? invariant(false, "Hash history needs a DOM") : invariant(false) : void 0;
10784
- var globalHistory = window.history;
10785
- var canGoWithoutReload = supportsGoWithoutReloadUsingHash();
10786
- 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;
10787
- var basename = props.basename ? stripTrailingSlash(addLeadingSlash(props.basename)) : "";
10788
- var _HashPathCoders$hashT = HashPathCoders[hashType], encodePath = _HashPathCoders$hashT.encodePath, decodePath = _HashPathCoders$hashT.decodePath;
10789
- function getDOMLocation() {
10790
- var path2 = decodePath(getHashPath());
10791
- 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;
10792
- if (basename)
10793
- path2 = stripBasename(path2, basename);
10794
- return createLocation(path2);
10795
- }
10796
- var transitionManager = createTransitionManager();
10797
- function setState(nextState) {
10798
- _extends(history, nextState);
10799
- history.length = globalHistory.length;
10800
- transitionManager.notifyListeners(history.location, history.action);
10801
- }
10802
- var forceNextPop = false;
10803
- var ignorePath = null;
10804
- function locationsAreEqual$$1(a, b2) {
10805
- return a.pathname === b2.pathname && a.search === b2.search && a.hash === b2.hash;
10806
- }
10807
- function handleHashChange() {
10808
- var path2 = getHashPath();
10809
- var encodedPath2 = encodePath(path2);
10810
- if (path2 !== encodedPath2) {
10811
- replaceHashPath(encodedPath2);
10812
- } else {
10813
- var location2 = getDOMLocation();
10814
- var prevLocation = history.location;
10815
- if (!forceNextPop && locationsAreEqual$$1(prevLocation, location2))
10816
- return;
10817
- if (ignorePath === createPath(location2))
10818
- return;
10819
- ignorePath = null;
10820
- handlePop(location2);
10821
- }
10822
- }
10823
- function handlePop(location2) {
10824
- if (forceNextPop) {
10825
- forceNextPop = false;
10826
- setState();
10827
- } else {
10828
- var action = "POP";
10829
- transitionManager.confirmTransitionTo(location2, action, getUserConfirmation, function(ok) {
10830
- if (ok) {
10831
- setState({
10832
- action,
10833
- location: location2
10834
- });
10835
- } else {
10836
- revertPop(location2);
10837
- }
10838
- });
10839
- }
10840
- }
10841
- function revertPop(fromLocation) {
10842
- var toLocation = history.location;
10843
- var toIndex = allPaths.lastIndexOf(createPath(toLocation));
10844
- if (toIndex === -1)
10845
- toIndex = 0;
10846
- var fromIndex = allPaths.lastIndexOf(createPath(fromLocation));
10847
- if (fromIndex === -1)
10848
- fromIndex = 0;
10849
- var delta = toIndex - fromIndex;
10850
- if (delta) {
10851
- forceNextPop = true;
10852
- go(delta);
10853
- }
10854
- }
10855
- var path = getHashPath();
10856
- var encodedPath = encodePath(path);
10857
- if (path !== encodedPath)
10858
- replaceHashPath(encodedPath);
10859
- var initialLocation = getDOMLocation();
10860
- var allPaths = [createPath(initialLocation)];
10861
- function createHref(location2) {
10862
- var baseTag = document.querySelector("base");
10863
- var href = "";
10864
- if (baseTag && baseTag.getAttribute("href")) {
10865
- href = stripHash(window.location.href);
10866
- }
10867
- return href + "#" + encodePath(basename + createPath(location2));
10868
- }
10869
- function push(path2, state2) {
10870
- process.env.NODE_ENV !== "production" ? warning(state2 === void 0, "Hash history cannot push state; it is ignored") : void 0;
10871
- var action = "PUSH";
10872
- var location2 = createLocation(path2, void 0, void 0, history.location);
10873
- transitionManager.confirmTransitionTo(location2, action, getUserConfirmation, function(ok) {
10874
- if (!ok)
10875
- return;
10876
- var path3 = createPath(location2);
10877
- var encodedPath2 = encodePath(basename + path3);
10878
- var hashChanged = getHashPath() !== encodedPath2;
10879
- if (hashChanged) {
10880
- ignorePath = path3;
10881
- pushHashPath(encodedPath2);
10882
- var prevIndex = allPaths.lastIndexOf(createPath(history.location));
10883
- var nextPaths = allPaths.slice(0, prevIndex + 1);
10884
- nextPaths.push(path3);
10885
- allPaths = nextPaths;
10886
- setState({
10887
- action,
10888
- location: location2
10889
- });
10890
- } else {
10891
- 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;
10892
- setState();
10893
- }
10894
- });
10895
- }
10896
- function replace(path2, state2) {
10897
- process.env.NODE_ENV !== "production" ? warning(state2 === void 0, "Hash history cannot replace state; it is ignored") : void 0;
10898
- var action = "REPLACE";
10899
- var location2 = createLocation(path2, void 0, void 0, history.location);
10900
- transitionManager.confirmTransitionTo(location2, action, getUserConfirmation, function(ok) {
10901
- if (!ok)
10902
- return;
10903
- var path3 = createPath(location2);
10904
- var encodedPath2 = encodePath(basename + path3);
10905
- var hashChanged = getHashPath() !== encodedPath2;
10906
- if (hashChanged) {
10907
- ignorePath = path3;
10908
- replaceHashPath(encodedPath2);
10909
- }
10910
- var prevIndex = allPaths.indexOf(createPath(history.location));
10911
- if (prevIndex !== -1)
10912
- allPaths[prevIndex] = path3;
10913
- setState({
10914
- action,
10915
- location: location2
10916
- });
10917
- });
10918
- }
10919
- function go(n) {
10920
- process.env.NODE_ENV !== "production" ? warning(canGoWithoutReload, "Hash history go(n) causes a full page reload in this browser") : void 0;
10921
- globalHistory.go(n);
10922
- }
10923
- function goBack() {
10924
- go(-1);
10925
- }
10926
- function goForward() {
10927
- go(1);
10928
- }
10929
- var listenerCount = 0;
10930
- function checkDOMListeners(delta) {
10931
- listenerCount += delta;
10932
- if (listenerCount === 1 && delta === 1) {
10933
- window.addEventListener(HashChangeEvent$1, handleHashChange);
10934
- } else if (listenerCount === 0) {
10935
- window.removeEventListener(HashChangeEvent$1, handleHashChange);
10936
- }
10937
- }
10938
- var isBlocked = false;
10939
- function block(prompt) {
10940
- if (prompt === void 0) {
10941
- prompt = false;
10942
- }
10943
- var unblock = transitionManager.setPrompt(prompt);
10944
- if (!isBlocked) {
10945
- checkDOMListeners(1);
10946
- isBlocked = true;
10947
- }
10948
- return function() {
10949
- if (isBlocked) {
10950
- isBlocked = false;
10951
- checkDOMListeners(-1);
10952
- }
10953
- return unblock();
10954
- };
10955
- }
10956
- function listen(listener) {
10957
- var unlisten = transitionManager.appendListener(listener);
10958
- checkDOMListeners(1);
10959
- return function() {
10960
- checkDOMListeners(-1);
10961
- unlisten();
10962
- };
10963
- }
10964
- var history = {
10965
- length: globalHistory.length,
10966
- action: "POP",
10967
- location: initialLocation,
10968
- createHref,
10969
- push,
10970
- replace,
10971
- go,
10972
- goBack,
10973
- goForward,
10974
- block,
10975
- listen
10976
- };
10977
- return history;
10978
- }
10979
- var lib = {};
10980
- Object.defineProperty(lib, "__esModule", { value: true });
10981
- var y = require$$0__default.default;
10982
- var U = lodash.exports;
10983
- var et = require$$2__default.default;
10984
- function _interopDefault$1(e) {
10985
- return e && e.__esModule ? e : { default: e };
10986
- }
10987
- var y__default = /* @__PURE__ */ _interopDefault$1(y);
10988
- var U__default = /* @__PURE__ */ _interopDefault$1(U);
10989
- var et__default = /* @__PURE__ */ _interopDefault$1(et);
10990
- var z = Object.defineProperty, q = Object.defineProperties;
10991
- var X = Object.getOwnPropertyDescriptors;
10992
- var D = Object.getOwnPropertySymbols;
10993
- var I = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable;
10994
- var C = (s, t, r) => t in s ? z(s, t, { enumerable: true, configurable: true, writable: true, value: r }) : s[t] = r, f = (s, t) => {
10995
- for (var r in t || (t = {}))
10996
- I.call(t, r) && C(s, r, t[r]);
10997
- if (D)
10998
- for (var r of D(t))
10999
- K.call(t, r) && C(s, r, t[r]);
11000
- return s;
11001
- }, b = (s, t) => q(s, X(t));
11002
- var k = (s, t) => {
11003
- var r = {};
11004
- for (var e in s)
11005
- I.call(s, e) && t.indexOf(e) < 0 && (r[e] = s[e]);
11006
- if (s != null && D)
11007
- for (var e of D(s))
11008
- t.indexOf(e) < 0 && K.call(s, e) && (r[e] = s[e]);
11009
- return r;
11010
- };
11011
- var d = (s, t, r) => new Promise((e, a) => {
11012
- var o = (c) => {
11013
- try {
11014
- n(r.next(c));
11015
- } catch (u) {
11016
- a(u);
11017
- }
11018
- }, i = (c) => {
11019
- try {
11020
- n(r.throw(c));
11021
- } catch (u) {
11022
- a(u);
11023
- }
11024
- }, n = (c) => c.done ? e(c.value) : Promise.resolve(c.value).then(o, i);
11025
- n((r = r.apply(s, t)).next());
11026
- });
11027
- var W = class {
11028
- processData(t) {
11029
- let { kind: r, apiVersion: e } = t;
11030
- return t.items = t.items.map((a) => this.processItem(b(f({}, a), { kind: r.replace(/List$/g, ""), apiVersion: e }))), t;
11031
- }
11032
- processItem(t) {
11033
- return this.processPodSelector(t), t;
11034
- }
11035
- restoreData(t) {
11036
- return t.items = t.items.map((r) => this.restoreItem(r)), t;
11037
- }
11038
- restoreItem(t) {
11039
- return delete t.metadata.relations, t;
11040
- }
11041
- processPodSelector(t) {
11042
- let { spec: r, kind: e } = t, a = r == null ? void 0 : r.selector;
11043
- if (!a || !e || !["Deployment", "DaemonSet", "StatefulSet", "ReplicaSet", "Job", "Service"].includes(e))
11044
- return t;
11045
- if (!a.matchLabels && !a.matchExpressions) {
11046
- a.matchLabels = {};
11047
- for (let o in a)
11048
- a.matchLabels[o] = a[o];
11049
- }
11050
- return this.appendRelation(t, { kind: "Pod", apiVersion: "v1", type: e === "Service" ? "selects" : "creates", selector: a, inbound: false }), t;
11051
- }
11052
- appendRelation(t, r) {
11053
- let e = t.metadata;
11054
- return e.relations || (e.relations = []), e.relations.push(r), t;
11055
- }
11056
- }, v = new W();
11057
- function R(s, ...t) {
11058
- return console.log(`[REFINE K8s ${s}]`, ...t);
11059
- }
11060
- function rt({ resourceBasePath: s, namespace: t, resource: r, name: e }) {
11061
- let a = [s];
11062
- return t && a.push(`namespaces/${t}`), a.push(r), e && a.push(e), a.join("/");
11063
- }
11064
- function G(s, t) {
11065
- if (s.indexOf(`
11066
- `) === -1)
11067
- return s;
11068
- let e = s.slice(0, s.indexOf(`
11069
- `)), a = s.slice(s.indexOf(`
11070
- `) + 1);
11071
- return t(e), G(a, t);
11072
- }
11073
- function V(s) {
11074
- clearTimeout(s.pingTimeout), s.pingTimeout = setTimeout(() => {
11075
- s.close();
11076
- }, 3e4 * 1.5);
11077
- }
11078
- var L = et__default.default(), E = class {
11079
- constructor(t) {
11080
- this.options = t;
11081
- this.maxTimeout = Math.pow(2, 10) * 1e3;
11082
- this.retryTimes = 0;
11083
- let { objectConstructor: r, basePath: e, watchWsBasePath: a } = t;
11084
- this.options = t, this.watchWsBasePath = a, this.basePath = e, this.resourceBasePath = r.resourceBasePath, this.namespace = r.namespace, this.resource = r.resource;
11085
- }
11086
- resetRetryState() {
11087
- this.retryTimes = 0, clearTimeout(this.retryTimer), this.retryTimer = void 0;
11088
- }
11089
- list() {
11090
- return d(this, arguments, function* ({ namespace: t, query: r, fetchOptions: e } = {}) {
11091
- let a = this.getUrl({ namespace: t });
11092
- return yield y__default.default.get(a, f({ searchParams: r, retry: 0 }, e || {})).json();
11093
- });
11094
- }
11095
- listWatch() {
11096
- return d(this, arguments, function* ({ namespace: t, query: r, onResponse: e, onEvent: a } = {}) {
11097
- let o = this.getUrl({ namespace: t }), i = this.watchWsBasePath ? this.getUrl({ namespace: t }, void 0, true) : o, n = yield this.list({ namespace: t, query: r, fetchOptions: { timeout: false } }), c = this.watch(i, n, e, a, this.listWatch.bind(this, { namespace: t, query: r, onResponse: e, onEvent: a }));
11098
- return e == null || e(n), c;
11099
- });
11100
- }
11101
- watch(t, r, e, a, o) {
11102
- return d(this, null, function* () {
11103
- let { items: i } = r, n = [], c = (u) => {
11104
- if (u.type === "PING")
11105
- return;
11106
- R("INFORMER", u);
11107
- let h = u.object.metadata.name, p = u.object.metadata.namespace;
11108
- switch (u.type) {
11109
- case "ADDED": {
11110
- let l = false;
11111
- i = i.map((m) => m.metadata.name === h && m.metadata.namespace === p ? (l = true, u.object) : m).concat(l ? [] : [u.object]);
11112
- break;
11113
- }
11114
- case "MODIFIED":
11115
- i = i.map((l) => l.metadata.name === h && l.metadata.namespace === p ? u.object : l);
11116
- break;
11117
- case "DELETED":
11118
- i = i.filter((l) => l.metadata.name !== h || l.metadata.namespace !== p);
11119
- break;
11120
- }
11121
- e == null || e(b(f({}, r), { items: i })), a == null || a(u);
11122
- };
11123
- return n.push(this.watchBySdk(r, c)), this.watchWsBasePath ? n.push(this.watchByWebsocket(t, r, c, o)) : n.push(this.watchByHttp(t, r, c, o)), () => {
11124
- n.forEach((u) => u());
11125
- };
11126
- });
11127
- }
11128
- watchBySdk(t, r) {
11129
- let e = (a) => {
11130
- let { type: o, basePath: i, items: n } = a;
11131
- i === this.basePath && n.forEach((c) => {
11132
- c.apiVersion === t.apiVersion && c.kind === t.kind.replace(/List$/g, "") && r({ type: o, object: c });
11133
- });
11134
- };
11135
- return L.on("change", e), () => {
11136
- L.off("change", e);
11137
- };
11138
- }
11139
- watchByWebsocket(t, r, e, a) {
11140
- let { resourceVersion: o = "" } = r.metadata, i = location.protocol.includes("https") ? "wss" : "ws", n = new WebSocket(t.includes("://") ? `${t}?resourceVersion=${o}&watch=1` : `${i}://${location.host}/${t}?resourceVersion=${o}&watch=1`), c = false, u = () => {
11141
- n.readyState === n.OPEN ? n.close(3001, "DOVETAIL_MANUAL_CLOSE") : c = true;
11142
- };
11143
- function h() {
11144
- u();
11145
- }
11146
- return n.addEventListener("open", () => {
11147
- if (c) {
11148
- n.close(3001, "DOVETAIL_MANUAL_CLOSE");
11149
- return;
11150
- }
11151
- V(n);
11152
- }), n.addEventListener("message", function(p) {
11153
- let l = JSON.parse(p.data);
11154
- V(n), e(l);
11155
- }), n.addEventListener("close", (p) => {
11156
- clearTimeout(n.pingTimeout), p.reason !== "DOVETAIL_MANUAL_CLOSE" && (this.retryFunc(() => d(this, null, function* () {
11157
- u = yield a();
11158
- })), u = () => {
11159
- clearTimeout(this.retryTimer);
11160
- });
11161
- }), h;
11162
- }
11163
- watchByHttp(t, r, e, a) {
11164
- let { resourceVersion: o = "" } = r.metadata, i = new AbortController(), { signal: n } = i, c = () => i.abort();
11165
- function u() {
11166
- c();
11167
- }
11168
- return d(this, null, function* () {
11169
- var h;
11170
- try {
11171
- let l = (h = (yield y__default.default.get(t, { searchParams: { watch: 1, resourceVersion: o }, timeout: false, signal: n })).body) == null ? void 0 : h.getReader(), m = new TextDecoder("utf-8"), P = "";
11172
- (function H() {
11173
- return d(this, null, function* () {
11174
- if (!l)
11175
- return Promise.reject();
11176
- let { done: J, value: Y } = yield l.read();
11177
- return J ? Promise.resolve() : (P += m.decode(Y), P = G(P, (B) => {
11178
- try {
11179
- let O = JSON.parse(B);
11180
- e(O);
11181
- } catch (O) {
11182
- R("INFORMER", "Error while parsing", B, `
11183
- `, O);
11184
- }
11185
- }), H());
11186
- });
11187
- })();
11188
- } catch (p) {
11189
- if (p.name === "AbortError")
11190
- return;
11191
- R("INFORMER", "watch API error:", p), c = yield a();
11192
- }
11193
- }), u;
11194
- }
11195
- getUrl({ name: t, namespace: r } = {}, e, a) {
11196
- let o = rt({ resourceBasePath: this.resourceBasePath, resource: this.resource, namespace: r || this.namespace, name: t }), i = new URLSearchParams(this.normalizeQuery(e));
11197
- return (a ? this.watchWsBasePath : this.basePath) + o + (e ? `?${i.toString()}` : "");
11198
- }
11199
- normalizeQuery(t = {}) {
11200
- return t.labelSelector && (t.labelSelector = [t.labelSelector].flat().join(",")), t.fieldSelector && (t.fieldSelector = [t.fieldSelector].flat().join(",")), t;
11201
- }
11202
- retryFunc(t) {
11203
- let r = Math.min(Math.pow(2, this.retryTimes) * 1e3, this.maxTimeout);
11204
- this.retryTimer = setTimeout(t, r), this.retryTimes++;
11205
- }
11206
- }, S = {}, w = class {
11207
- constructor(t) {
11208
- this.options = t;
11209
- this.defaultNamespace = "default";
11210
- let { basePath: r, fieldManager: e } = t;
11211
- this.options = t, this.basePath = r, this.fieldManager = e;
11212
- }
11213
- applyYaml(t, r, e) {
11214
- return d(this, null, function* () {
11215
- var c;
11216
- let a = t.filter((u) => u && u.kind && u.metadata).map((u) => v.restoreItem(u)), o = [], i = [], n = [];
11217
- for (let u in a) {
11218
- let h = a[u], p = U.cloneDeep(h);
11219
- p.metadata = p.metadata || {}, p.metadata.annotations = p.metadata.annotations || {}, r === "application/apply-patch+yaml" && (delete p.metadata.managedFields, delete p.metadata.resourceVersion);
11220
- let l = true;
11221
- try {
11222
- yield this.read(p);
11223
- } catch (P) {
11224
- if (((c = P.response) == null ? void 0 : c.status) === 404)
11225
- l = false;
11226
- else
11227
- throw P;
11228
- }
11229
- let m = l ? yield this.patch(p, r || "application/apply-patch+yaml", e == null ? void 0 : e[u]) : yield this.create(p);
11230
- l ? n.push(m) : i.push(m), o.push(m);
11231
- }
11232
- return i.length && L.emit("change", { type: "ADDED", basePath: this.basePath, items: i }), n.length && L.emit("change", { type: "MODIFIED", basePath: this.basePath, items: n }), o;
11233
- });
11234
- }
11235
- deleteYaml(t, r) {
11236
- return d(this, null, function* () {
11237
- let { sync: e } = r || {}, a = t.filter((n) => n && n.kind && n.metadata), o = [], i = [];
11238
- for (let n of a) {
11239
- n.metadata = n.metadata || {}, n.metadata.annotations = n.metadata.annotations || {};
11240
- let c = yield this.delete(n);
11241
- o.push(c), i.push(n);
11242
- }
11243
- return e && L.emit("change", { type: "DELETED", basePath: this.basePath, items: i }), o;
11244
- });
11245
- }
11246
- read(t) {
11247
- return d(this, null, function* () {
11248
- let r = yield this.specUriPath(t, "read");
11249
- return yield y__default.default.get(r, { retry: 0 }).json();
11250
- });
11251
- }
11252
- create(t) {
11253
- return d(this, null, function* () {
11254
- let r = yield this.specUriPath(t, "create");
11255
- return yield y__default.default.post(r, { retry: 0, json: t }).json();
11256
- });
11257
- }
11258
- patch(t, r, e) {
11259
- return d(this, null, function* () {
11260
- let a = yield this.specUriPath(t, "patch"), o = r === "application/json-patch+json" ? (e || []).map((n) => ({ op: "replace", path: "/" + n.split(".").join("/"), value: U.get(t, n) })) : t;
11261
- return yield y__default.default.patch(a, { headers: { "Content-Type": r }, retry: 0, json: o, searchParams: r === "application/apply-patch+yaml" ? { fieldManager: this.fieldManager || "refine", force: true } : void 0 }).json();
11262
- });
11263
- }
11264
- put(t) {
11265
- return d(this, null, function* () {
11266
- let r = yield this.specUriPath(t, "put");
11267
- return yield y__default.default.put(r, { retry: 0, json: t }).json();
11268
- });
11269
- }
11270
- delete(t) {
11271
- return d(this, null, function* () {
11272
- let r = yield this.specUriPath(t, "delete");
11273
- return yield y__default.default.delete(r, { retry: 0 }).json();
11274
- });
11275
- }
11276
- apiVersionPath(t) {
11277
- let r = t.includes("/") ? "apis" : "api";
11278
- return [this.basePath, r, t].join("/");
11279
- }
11280
- specUriPath(t, r) {
11281
- return d(this, null, function* () {
11282
- if (!t.kind)
11283
- throw new Error("Required spec property kind is not set");
11284
- t.apiVersion = t.apiVersion || "v1", t.metadata = t.metadata || {};
11285
- let e = yield this.resource(t.apiVersion, t.kind);
11286
- if (!e)
11287
- throw new Error(`Unrecognized API version and kind: ${t.apiVersion} ${t.kind}`);
11288
- e.namespaced && !t.metadata.namespace && r !== "list" && (t.metadata.namespace = this.defaultNamespace);
11289
- let a = [this.apiVersionPath(t.apiVersion)];
11290
- if (e.namespaced && t.metadata.namespace && a.push("namespaces", encodeURIComponent(String(t.metadata.namespace))), a.push(e.name), r !== "create" && r !== "list") {
11291
- if (!t.metadata.name)
11292
- throw new Error("Required spec property name is not set");
11293
- a.push(encodeURIComponent(String(t.metadata.name)));
11294
- }
11295
- return a.join("/").toLowerCase();
11296
- });
11297
- }
11298
- resource(t, r) {
11299
- return d(this, null, function* () {
11300
- let e = this.getApiVersionCacheKey(t);
11301
- if (S[e]) {
11302
- let i = S[e].resources.find((n) => n.kind === r);
11303
- if (i)
11304
- return i;
11305
- }
11306
- let a = this.apiVersionPath(t), o = yield y__default.default.get(a).json();
11307
- return S[e] = o, S[e].resources.find((i) => i.kind === r);
11308
- });
11309
- }
11310
- getApiVersionCacheKey(t) {
11311
- return `${t}@${this.basePath}`;
11312
- }
11313
- };
11314
- var A = (s, t) => !s || s.length === 0 ? t : t.filter((r) => s.every((e) => {
11315
- if ("field" in e) {
11316
- let { field: a, operator: o, value: i } = e;
11317
- return x(r, a, o, i);
11318
- } else {
11319
- let { operator: a, value: o } = e;
11320
- if (a === "or")
11321
- return o.some((i) => {
11322
- let { field: n, operator: c, value: u } = i;
11323
- return x(r, n, c, u);
11324
- });
11325
- if (a === "and")
11326
- return o.every((i) => {
11327
- let { field: n, operator: c, value: u } = i;
11328
- return x(r, n, c, u);
11329
- });
11330
- }
11331
- return true;
11332
- }));
11333
- function x(s, t, r, e) {
11334
- let a = U__default.default.get(s, t);
11335
- switch (r) {
11336
- case "eq":
11337
- return a === e;
11338
- case "ne":
11339
- return a !== e;
11340
- case "lt":
11341
- return a < e;
11342
- case "gt":
11343
- return a > e;
11344
- case "lte":
11345
- return a <= e;
11346
- case "gte":
11347
- return a >= e;
11348
- case "in":
11349
- return e.includes(a);
11350
- case "nin":
11351
- return !e.includes(a);
11352
- case "contains":
11353
- return a.includes(e);
11354
- case "ncontains":
11355
- return !a.includes(e);
11356
- case "containss":
11357
- return a.toLowerCase().includes(e.toLowerCase());
11358
- case "ncontainss":
11359
- return !a.toLowerCase().includes(e.toLowerCase());
11360
- case "between":
11361
- return e[0] <= a && a <= e[1];
11362
- case "nbetween":
11363
- return e[0] > a || a > e[1];
11364
- case "null":
11365
- return a === null;
11366
- case "nnull":
11367
- return a !== null;
11368
- case "startswith":
11369
- return a.startsWith(e);
11370
- case "nstartswith":
11371
- return !a.startsWith(e);
11372
- case "startswiths":
11373
- return a.toLowerCase().startsWith(e.toLowerCase());
11374
- case "nstartswiths":
11375
- return !a.toLowerCase().startsWith(e.toLowerCase());
11376
- case "endswith":
11377
- return a.endsWith(e);
11378
- case "nendswith":
11379
- return !a.endsWith(e);
11380
- case "endswiths":
11381
- return a.toLowerCase().endsWith(e.toLowerCase());
11382
- case "nendswiths":
11383
- return !a.toLowerCase().endsWith(e.toLowerCase());
11384
- default:
11385
- return true;
11386
- }
11387
- }
11388
- function M(s, t) {
11389
- return s != null && s.length ? [...t].sort((r, e) => {
11390
- for (let a of s) {
11391
- let { field: o, order: i } = a, n = U__default.default.get(r, o), c = U__default.default.get(e, o);
11392
- if (!(U__default.default.isNil(n) && U__default.default.isNil(c))) {
11393
- if (U__default.default.isNil(n))
11394
- return i === "asc" ? 1 : -1;
11395
- if (U__default.default.isNil(c) || n < c)
11396
- return i === "asc" ? -1 : 1;
11397
- if (n > c)
11398
- return i === "asc" ? 1 : -1;
11399
- }
11400
- }
11401
- return 0;
11402
- }) : t;
11403
- }
11404
- var N = (s, t) => {
11405
- let { current: r = 1, pageSize: e = 20, mode: a } = s != null ? s : {};
11406
- if (a !== "client")
11407
- return console.warn("k8s no support server paginateData"), t;
11408
- let o = 0, i = t.length, n = r * e;
11409
- return o = (r - 1) * e, i = n < i ? n : i, t.slice(o, i);
11410
- };
11411
- function T(s) {
11412
- var t, r, e, a;
11413
- return (t = s.metadata) != null && t.namespace ? `${(e = s.metadata) == null ? void 0 : e.namespace}/${(a = s.metadata) == null ? void 0 : a.name}` : ((r = s.metadata) == null ? void 0 : r.name) || "";
11414
- }
11415
- function $(s) {
11416
- return s.replace(/^(\/api\/)|(\/apis\/)/, "");
11417
- }
11418
- var F = (s) => {
11419
- let t = (r) => d(void 0, null, function* () {
11420
- let { resource: e, id: a, meta: o } = r, i = a.toString().split("/"), [n, c] = i.length === 1 ? [void 0, i[0]] : i, { items: u, kind: h, apiVersion: p } = yield s.get(e, o), l = u.find((m) => m.metadata.name === c && m.metadata.namespace === n);
11421
- return { data: b(f({}, l), { id: l ? T(l) : "", kind: h.replace(/List$/g, ""), apiVersion: p }) };
11422
- });
11423
- return { getList: (r) => d(void 0, null, function* () {
11424
- let { resource: e, pagination: a, filters: o, sorters: i, meta: n } = r, { items: c } = yield s.get(e, n);
11425
- return o && (c = A(o, c)), i && (c = M(i, c)), a && (c = N(a, c)), { data: c.map((u) => b(f({}, u), { id: T(u) })), total: c.length };
11426
- }), getMany: (r) => d(void 0, null, function* () {
11427
- let i = r, { ids: e } = i, a = k(i, ["ids"]);
11428
- return { data: yield Promise.all(e.map((n) => t(f({ id: n }, a)).then((c) => c.data))) };
11429
- }), create: (a) => d(void 0, [a], function* ({ variables: r, meta: e }) {
11430
- return { data: (yield new w({ basePath: s.apiUrl, fieldManager: s.fieldManager }).applyYaml([b(f({}, r), { apiVersion: $(e == null ? void 0 : e.resourceBasePath), kind: e == null ? void 0 : e.kind })]))[0] };
11431
- }), update: (a) => d(void 0, [a], function* ({ variables: r, meta: e }) {
11432
- let o = new w({ basePath: s.apiUrl, fieldManager: s.fieldManager }), i = [b(f({}, r), { apiVersion: $(e == null ? void 0 : e.resourceBasePath), kind: e == null ? void 0 : e.kind })];
11433
- return { data: (yield o.applyYaml(i, e == null ? void 0 : e.strategy, e == null ? void 0 : e.replacePaths))[0] };
11434
- }), getOne: t, deleteOne: (i) => d(void 0, null, function* () {
11435
- var n = i, { resource: r, id: e, meta: a } = n, o = k(n, ["resource", "id", "meta"]);
11436
- let c = new w({ basePath: s.apiUrl, fieldManager: s.fieldManager }), { data: u } = yield t(f({ id: e, resource: r, meta: a }, o));
11437
- return { data: (yield c.deleteYaml([u]))[0] };
11438
- }), getApiUrl: () => s.apiUrl };
11439
- };
11440
- var j = { ADDED: "created", MODIFIED: "updated", DELETED: "deleted", PING: "ping" };
11441
- function st(s) {
11442
- return Object.keys(j).find((t) => j[t] === s);
11443
- }
11444
- function _(s, t) {
11445
- return Array.isArray(s) ? s.find((r) => r.prefix === t) : s;
11446
- }
11447
- var It = (s) => ({ subscribe: ({ channel: t, params: r, callback: e }) => {
11448
- let { resource: a } = r != null ? r : {};
11449
- if (!a)
11450
- throw new Error("[WatchApi]: `resource` is required in `params` for k8s watch and globalStore");
11451
- let o = _(s, r == null ? void 0 : r.dataProviderName);
11452
- if (!o)
11453
- throw new Error("[WatchApi]: `GlobalStore` is required in `params` for k8s live provider, can not find matched `GlobalStore`");
11454
- return { stop: o.subscribe(a, (n) => {
11455
- let c = T(n.object);
11456
- e({ channel: t, type: j[n.type] || n.type, date: new Date(), payload: { ids: [c], object: n.object } });
11457
- }) };
11458
- }, unsubscribe: ({ stop: t }) => {
11459
- t == null || t();
11460
- }, publish: (t) => {
11461
- var o;
11462
- let r = _(s, (o = t.meta) == null ? void 0 : o.dataProviderName);
11463
- if (!r)
11464
- throw new Error("[WatchApi]: `GlobalStore` is required in `params` for k8s live provider, can not find matched `GlobalStore`");
11465
- let e = st(t.type), [, a] = t.channel.split("/");
11466
- if (!a)
11467
- throw new Error("[WatchApi]: `resource` is required in `params` for k8s watch and globalStore");
11468
- r.publish(a, { type: e, object: t.payload });
11469
- } });
11470
- var nt = (s) => {
11471
- switch (s) {
11472
- case "ne":
11473
- case "gte":
11474
- case "lte":
11475
- return `_${s}`;
11476
- case "contains":
11477
- return "_like";
11478
- case "eq":
11479
- default:
11480
- return "";
11481
- }
11482
- };
11483
- function it(s, t) {
11484
- return t != null && t.resourceBasePath ? { resourceBasePath: t == null ? void 0 : t.resourceBasePath, resource: s, namespace: t.namespace } : { resourceBasePath: "/api/v1", resource: "namespaces" };
11485
- }
11486
- var Q = class {
11487
- constructor(t) {
11488
- this._apiUrl = "";
11489
- this.store = /* @__PURE__ */ new Map();
11490
- this.subscribers = /* @__PURE__ */ new Map();
11491
- this.init(t);
11492
- }
11493
- get apiUrl() {
11494
- return this._apiUrl;
11495
- }
11496
- get(t, r) {
11497
- return new Promise((e, a) => {
11498
- if (this.store.has(t))
11499
- e(this.store.get(t));
11500
- else {
11501
- let o = new E({ basePath: this._apiUrl, watchWsBasePath: this.watchWsApiUrl, objectConstructor: it(t, r) }), i = false;
11502
- o.listWatch({ onResponse: (n) => {
11503
- v.processData(n), i || (e(n), i = true), this.store.set(t, n);
11504
- }, onEvent: (n) => {
11505
- v.processItem(n.object), this.notify(t, n);
11506
- } }).catch((n) => a(n));
11507
- }
11508
- });
11509
- }
11510
- subscribe(t, r) {
11511
- return this.subscribers.has(t) || this.subscribers.set(t, []), this.subscribers.get(t).push(r), () => {
11512
- let e = this.subscribers.get(t);
11513
- this.subscribers.set(t, (e == null ? void 0 : e.filter((a) => a !== r)) || []);
11514
- };
11515
- }
11516
- notify(t, r) {
11517
- let e = this.subscribers.get(t);
11518
- if (e)
11519
- for (let a of e)
11520
- a(r);
11521
- }
11522
- publish(t, r) {
11523
- this.notify(t, r);
11524
- }
11525
- init(t) {
11526
- let { apiUrl: r, watchWsApiUrl: e, prefix: a, fieldManager: o } = t;
11527
- this.store = /* @__PURE__ */ new Map(), this.subscribers = /* @__PURE__ */ new Map(), this._apiUrl = r, this.watchWsApiUrl = e, this.prefix = a, this.fieldManager = o;
11528
- }
11529
- };
11530
- var ee = F;
11531
- var GlobalStore = lib.GlobalStore = Q;
11532
- lib.KubeApi = E;
11533
- lib.KubeSdk = w;
11534
- var dataProvider = lib.dataProvider = F;
11535
- lib.default = ee;
11536
- lib.filterData = A;
11537
- lib.getId = T;
11538
- lib.getObjectConstructor = it;
11539
- lib.informerLog = R;
11540
- var liveProvider = lib.liveProvider = It;
11541
- lib.mapOperator = nt;
11542
- lib.sortData = M;
11543
10377
  const copy$1 = "Copy";
11544
10378
  const reset_arguments$1 = "Reset";
11545
10379
  const view_changes$1 = "Show Diff";
@@ -11614,6 +10448,11 @@ var __publicField = (obj, key, value) => {
11614
10448
  const data = "\u6570\u636E";
11615
10449
  const suspend = "\u6682\u505C";
11616
10450
  const resume = "\u91CD\u65B0\u5F00\u59CB";
10451
+ const cluster = "\u96C6\u7FA4";
10452
+ const storage = "\u5B58\u50A8";
10453
+ const network = "\u7F51\u7EDC";
10454
+ const clusterIp = "\u96C6\u7FA4 IP";
10455
+ const sessionAffinity = "\u4F1A\u8BDD\u4FDD\u6301";
11617
10456
  const dovetail = {
11618
10457
  copy,
11619
10458
  reset_arguments,
@@ -11664,7 +10503,12 @@ var __publicField = (obj, key, value) => {
11664
10503
  redeploy,
11665
10504
  data,
11666
10505
  suspend,
11667
- resume
10506
+ resume,
10507
+ cluster,
10508
+ storage,
10509
+ network,
10510
+ clusterIp,
10511
+ sessionAffinity
11668
10512
  };
11669
10513
  const ZH = {
11670
10514
  dovetail
@@ -11685,19 +10529,13 @@ var __publicField = (obj, key, value) => {
11685
10529
  const styles = "";
11686
10530
  const antd = "";
11687
10531
  const style = "";
11688
- const globalStore = new GlobalStore({
10532
+ const globalStore = new k8sApiProvider.GlobalStore({
11689
10533
  apiUrl: "/api/k8s",
11690
10534
  watchWsApiUrl: "api/sks-ws/k8s",
11691
10535
  prefix: "default"
11692
10536
  });
11693
10537
  const Dovetail = (props) => {
11694
- const { resourcesConfig, urlPrefix, useHashUrl, Layout: Layout2 } = props;
11695
- const history = React.useMemo(() => {
11696
- if (useHashUrl) {
11697
- return createHashHistory();
11698
- }
11699
- return createBrowserHistory();
11700
- }, [useHashUrl]);
10538
+ const { resourcesConfig, urlPrefix = "", useHashUrl, Layout: Layout2, history } = props;
11701
10539
  const notCustomResources = React.useMemo(() => {
11702
10540
  return resourcesConfig.filter((c) => !c.isCustom);
11703
10541
  }, [resourcesConfig]);
@@ -11715,10 +10553,10 @@ var __publicField = (obj, key, value) => {
11715
10553
  core.Refine,
11716
10554
  {
11717
10555
  dataProvider: {
11718
- default: dataProvider(globalStore)
10556
+ default: k8sApiProvider.dataProvider(globalStore)
11719
10557
  },
11720
10558
  routerProvider,
11721
- liveProvider: liveProvider(globalStore),
10559
+ liveProvider: k8sApiProvider.liveProvider(globalStore),
11722
10560
  options: {
11723
10561
  warnWhenUnsavedChanges: true,
11724
10562
  liveMode: "auto"
@@ -11744,7 +10582,9 @@ var __publicField = (obj, key, value) => {
11744
10582
  };
11745
10583
  var RESOURCE_GROUP = /* @__PURE__ */ ((RESOURCE_GROUP2) => {
11746
10584
  RESOURCE_GROUP2["WORKLOAD"] = "WORKLOAD";
11747
- RESOURCE_GROUP2["CORE"] = "CORE";
10585
+ RESOURCE_GROUP2["STORAGE"] = "STORAGE";
10586
+ RESOURCE_GROUP2["NETWORK"] = "NETWORK";
10587
+ RESOURCE_GROUP2["CLUSTER"] = "CLUSTER";
11748
10588
  return RESOURCE_GROUP2;
11749
10589
  })(RESOURCE_GROUP || {});
11750
10590
  const MonacoYamlDiffEditor = (props) => {
@@ -11792,6 +10632,7 @@ var __publicField = (obj, key, value) => {
11792
10632
  exports2.BASE_INIT_VALUE = BASE_INIT_VALUE;
11793
10633
  exports2.Breadcrumb = Breadcrumb;
11794
10634
  exports2.CRONJOB_INIT_VALUE = CRONJOB_INIT_VALUE;
10635
+ exports2.ClusterIpField = ClusterIpField;
11795
10636
  exports2.ColumnKeys = ColumnKeys;
11796
10637
  exports2.CommonSorter = CommonSorter;
11797
10638
  exports2.CompletionsCountColumnRenderer = CompletionsCountColumnRenderer;
@@ -11848,6 +10689,10 @@ var __publicField = (obj, key, value) => {
11848
10689
  exports2.STATEFULSET_INIT_VALUE = STATEFULSET_INIT_VALUE;
11849
10690
  exports2.SecretDataField = SecretDataField;
11850
10691
  exports2.Separator = Separator;
10692
+ exports2.ServicePodsField = ServicePodsField;
10693
+ exports2.ServiceTypeColumnRenderer = ServiceTypeColumnRenderer;
10694
+ exports2.ServiceTypeField = ServiceTypeField;
10695
+ exports2.SessionAffinityField = SessionAffinityField;
11851
10696
  exports2.ShowContent = ShowContent;
11852
10697
  exports2.StartTimeField = StartTimeField;
11853
10698
  exports2.StateTag = StateTag;