@prorobotech/openapi-k8s-toolkit 1.5.0-alpha.2 → 1.5.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/{index-BYGA57EJ.mjs → index-D8riHM_k.mjs} +1101 -268
  2. package/dist/{index-BYGA57EJ.mjs.map → index-D8riHM_k.mjs.map} +1 -1
  3. package/dist/{index-DoND5hQh.mjs → index-DHTFNSby.mjs} +2 -2
  4. package/dist/{index-DoND5hQh.mjs.map → index-DHTFNSby.mjs.map} +1 -1
  5. package/dist/openapi-k8s-toolkit.es.js +1 -1
  6. package/dist/openapi-k8s-toolkit.umd.js +1099 -266
  7. package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
  8. package/dist/types/components/molecules/BlackholeForm/molecules/FormListInput/FormListInput.d.ts +2 -0
  9. package/dist/types/components/molecules/BlackholeForm/molecules/FormNamespaceInput/FormNamespaceInput.d.ts +9 -2
  10. package/dist/types/components/molecules/BlackholeForm/molecules/FormNamespaceInput/FormNamespaceInput.test.d.ts +1 -0
  11. package/dist/types/components/molecules/BlackholeForm/molecules/FormNumberInput/FormNumberInput.d.ts +3 -0
  12. package/dist/types/components/molecules/BlackholeForm/molecules/FormObjectFromSwagger/FormObjectFromSwagger.d.ts +2 -1
  13. package/dist/types/components/molecules/BlackholeForm/molecules/FormStringInput/FormStringInput.d.ts +4 -0
  14. package/dist/types/components/molecules/BlackholeForm/molecules/FormStringMultilineInput/FormStringMultilineInput.d.ts +4 -0
  15. package/dist/types/components/molecules/BlackholeForm/molecules/helpers/oneOfBranch.d.ts +9 -0
  16. package/dist/types/components/molecules/BlackholeForm/molecules/helpers/oneOfBranch.test.d.ts +1 -0
  17. package/dist/types/components/molecules/BlackholeForm/molecules/helpers/validation.d.ts +18 -0
  18. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/oneOfBranchCleanup.d.ts +7 -0
  19. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/oneOfBranchCleanup.test.d.ts +1 -0
  20. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/oneOfBranchVisibility.d.ts +6 -0
  21. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/oneOfBranchVisibility.test.d.ts +1 -0
  22. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/utils.d.ts +20 -5
  23. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeFormProvider/styled.d.ts +8 -0
  24. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTable/EnrichedTable.d.ts +1 -0
  25. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/EnrichedTableProvider.d.ts +1 -0
  26. package/dist/types/components/molecules/EnrichedTable/organisms/EnrichedTableProvider/styled.d.ts +8 -0
  27. package/dist/types/localTypes/formSchema.d.ts +15 -0
  28. package/package.json +1 -1
@@ -1593,7 +1593,7 @@
1593
1593
  justify-content: center;
1594
1594
  }
1595
1595
  `;
1596
- const Styled$M = {
1596
+ const Styled$O = {
1597
1597
  CustomTreeProvider
1598
1598
  };
1599
1599
 
@@ -1658,7 +1658,7 @@
1658
1658
  });
1659
1659
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
1660
1660
  /* @__PURE__ */ jsxRuntimeExports.jsx(Search$1, { style: { marginBottom: 8 }, placeholder: "Search", onChange }),
1661
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$M.CustomTreeProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1661
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$O.CustomTreeProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1662
1662
  antd.Tree,
1663
1663
  {
1664
1664
  treeData: loop(treeData),
@@ -1714,7 +1714,7 @@
1714
1714
  *
1715
1715
  * @returns {boolean} True if value is an Array, otherwise false
1716
1716
  */
1717
- const {isArray: isArray$4} = Array;
1717
+ const {isArray: isArray$5} = Array;
1718
1718
 
1719
1719
  /**
1720
1720
  * Determine if a value is undefined
@@ -1960,7 +1960,7 @@
1960
1960
  obj = [obj];
1961
1961
  }
1962
1962
 
1963
- if (isArray$4(obj)) {
1963
+ if (isArray$5(obj)) {
1964
1964
  // Iterate over array values
1965
1965
  for (i = 0, l = obj.length; i < l; i++) {
1966
1966
  fn.call(null, obj[i], i, obj);
@@ -2036,7 +2036,7 @@
2036
2036
  result[targetKey] = merge$2(result[targetKey], val);
2037
2037
  } else if (isPlainObject$6(val)) {
2038
2038
  result[targetKey] = merge$2({}, val);
2039
- } else if (isArray$4(val)) {
2039
+ } else if (isArray$5(val)) {
2040
2040
  result[targetKey] = val.slice();
2041
2041
  } else if (!skipUndefined || !isUndefined(val)) {
2042
2042
  result[targetKey] = val;
@@ -2166,7 +2166,7 @@
2166
2166
  */
2167
2167
  const toArray$3 = (thing) => {
2168
2168
  if (!thing) return null;
2169
- if (isArray$4(thing)) return thing;
2169
+ if (isArray$5(thing)) return thing;
2170
2170
  let i = thing.length;
2171
2171
  if (!isNumber$1(i)) return null;
2172
2172
  const arr = new Array(i);
@@ -2244,7 +2244,7 @@
2244
2244
  };
2245
2245
 
2246
2246
  /* Creating a function that will check if an object has a property. */
2247
- const hasOwnProperty$5 = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
2247
+ const hasOwnProperty$7 = (({hasOwnProperty}) => (obj, prop) => hasOwnProperty.call(obj, prop))(Object.prototype);
2248
2248
 
2249
2249
  /**
2250
2250
  * Determine if a value is a RegExp object
@@ -2309,7 +2309,7 @@
2309
2309
  });
2310
2310
  };
2311
2311
 
2312
- isArray$4(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
2312
+ isArray$5(arrayOrString) ? define(arrayOrString) : define(String(arrayOrString).split(delimiter));
2313
2313
 
2314
2314
  return obj;
2315
2315
  };
@@ -2350,7 +2350,7 @@
2350
2350
 
2351
2351
  if(!('toJSON' in source)) {
2352
2352
  stack[i] = source;
2353
- const target = isArray$4(source) ? [] : {};
2353
+ const target = isArray$5(source) ? [] : {};
2354
2354
 
2355
2355
  forEach(source, (value, key) => {
2356
2356
  const reducedValue = visit(value, i + 1);
@@ -2409,7 +2409,7 @@
2409
2409
 
2410
2410
 
2411
2411
  const utils$1 = {
2412
- isArray: isArray$4,
2412
+ isArray: isArray$5,
2413
2413
  isArrayBuffer,
2414
2414
  isBuffer,
2415
2415
  isFormData,
@@ -2448,8 +2448,8 @@
2448
2448
  forEachEntry,
2449
2449
  matchAll,
2450
2450
  isHTMLForm,
2451
- hasOwnProperty: hasOwnProperty$5,
2452
- hasOwnProp: hasOwnProperty$5, // an alias to avoid ESLint no-prototype-builtins detection
2451
+ hasOwnProperty: hasOwnProperty$7,
2452
+ hasOwnProp: hasOwnProperty$7, // an alias to avoid ESLint no-prototype-builtins detection
2453
2453
  reduceDescriptors,
2454
2454
  freezeMethods,
2455
2455
  toObjectSet,
@@ -8273,14 +8273,14 @@
8273
8273
  display: ${({ $displayFlex }) => $displayFlex ? "flex" : "block"};
8274
8274
  flex-flow: ${({ $flexFlow }) => $flexFlow};
8275
8275
  `;
8276
- const Styled$L = {
8276
+ const Styled$N = {
8277
8277
  ContentContainer
8278
8278
  };
8279
8279
 
8280
8280
  const ContentCard$1 = ({ children, flexGrow, displayFlex, flexFlow, maxHeight }) => {
8281
8281
  const { token } = antd.theme.useToken();
8282
8282
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
8283
- Styled$L.ContentContainer,
8283
+ Styled$N.ContentContainer,
8284
8284
  {
8285
8285
  $flexGrow: flexGrow,
8286
8286
  $bgColor: token.colorBgContainer,
@@ -8341,13 +8341,13 @@
8341
8341
  padding-inline: 8px;
8342
8342
  }
8343
8343
  `;
8344
- const Styled$K = {
8344
+ const Styled$M = {
8345
8345
  UncontrolledSelect: UncontrolledSelect$1
8346
8346
  };
8347
8347
 
8348
8348
  const UncontrolledSelect = (props) => {
8349
8349
  const { isCursorPointer } = props;
8350
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$K.UncontrolledSelect, { ...props, $isCursorPointer: isCursorPointer });
8350
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$M.UncontrolledSelect, { ...props, $isCursorPointer: isCursorPointer });
8351
8351
  };
8352
8352
 
8353
8353
  const CustomSelect$5 = styled(antd.Select)`
@@ -8395,13 +8395,13 @@
8395
8395
  margin-block: 0 !important;
8396
8396
  }
8397
8397
  `;
8398
- const Styled$J = {
8398
+ const Styled$L = {
8399
8399
  CustomSelect: CustomSelect$5
8400
8400
  };
8401
8401
 
8402
8402
  const CustomSelect$4 = (props) => {
8403
8403
  const { paddingContainerEnd, ...rest } = props;
8404
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$J.CustomSelect, { $paddingContainerEnd: paddingContainerEnd, ...rest });
8404
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$L.CustomSelect, { $paddingContainerEnd: paddingContainerEnd, ...rest });
8405
8405
  };
8406
8406
 
8407
8407
  const CursorPointerTag = styled(antd.Tag)`
@@ -8551,7 +8551,7 @@
8551
8551
  height: min-content;
8552
8552
  margin-right: 4px;
8553
8553
  `;
8554
- const Styled$I = {
8554
+ const Styled$K = {
8555
8555
  Abbr: Abbr$2
8556
8556
  };
8557
8557
 
@@ -8591,7 +8591,7 @@
8591
8591
  baseFactoriesMapping
8592
8592
  });
8593
8593
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(antd.Flex, { align: "center", gap: 8, children: [
8594
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$I.Abbr, { $bgColor: bgColor, children: abbr }),
8594
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$K.Abbr, { $bgColor: bgColor, children: abbr }),
8595
8595
  resourceLink ? /* @__PURE__ */ jsxRuntimeExports.jsx(
8596
8596
  antd.Typography.Link,
8597
8597
  {
@@ -9675,7 +9675,7 @@
9675
9675
  flex-wrap: nowrap !important;
9676
9676
  }
9677
9677
  `;
9678
- const Styled$H = {
9678
+ const Styled$J = {
9679
9679
  PositionRelativeContainer,
9680
9680
  FullWidthContainer,
9681
9681
  NoWrapContainer
@@ -9718,9 +9718,9 @@
9718
9718
  };
9719
9719
  return [firstItem, ellipsisItem, lastItem];
9720
9720
  };
9721
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$H.PositionRelativeContainer, { children: [
9722
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$H.FullWidthContainer, { ref: containerRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Breadcrumb, { separator: ">", items: renderItems() }) }),
9723
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$H.NoWrapContainer, { ref: breadcrumbRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Breadcrumb, { separator: ">", items, style: { display: "flex", flexWrap: "nowrap" } }) })
9721
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$J.PositionRelativeContainer, { children: [
9722
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$J.FullWidthContainer, { ref: containerRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Breadcrumb, { separator: ">", items: renderItems() }) }),
9723
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$J.NoWrapContainer, { ref: breadcrumbRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Breadcrumb, { separator: ">", items, style: { display: "flex", flexWrap: "nowrap" } }) })
9724
9724
  ] });
9725
9725
  };
9726
9726
 
@@ -9728,12 +9728,12 @@
9728
9728
  min-height: 22px;
9729
9729
  width: 100%;
9730
9730
  `;
9731
- const Styled$G = {
9731
+ const Styled$I = {
9732
9732
  HeightDiv: HeightDiv$1
9733
9733
  };
9734
9734
 
9735
9735
  const ManageableBreadcrumbs = ({ data }) => {
9736
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$G.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(CollapsibleBreadcrumb, { items: data.breadcrumbItems }) });
9736
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$I.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(CollapsibleBreadcrumb, { items: data.breadcrumbItems }) });
9737
9737
  };
9738
9738
 
9739
9739
  const prepareTemplate = ({
@@ -9792,7 +9792,7 @@
9792
9792
  min-height: 22px;
9793
9793
  width: 100%;
9794
9794
  `;
9795
- const Styled$F = {
9795
+ const Styled$H = {
9796
9796
  HeightDiv
9797
9797
  };
9798
9798
 
@@ -9822,7 +9822,7 @@
9822
9822
  return null;
9823
9823
  }
9824
9824
  if (rawDataLoading) {
9825
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$F.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Spin, {}) });
9825
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$H.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Spin, {}) });
9826
9826
  }
9827
9827
  if (!rawData) {
9828
9828
  return null;
@@ -9838,7 +9838,7 @@
9838
9838
  fallbackIdToCompare
9839
9839
  });
9840
9840
  if (!result) {
9841
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$F.HeightDiv, {});
9841
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$H.HeightDiv, {});
9842
9842
  }
9843
9843
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ManageableBreadcrumbs, { data: result }, JSON.stringify(idToCompare));
9844
9844
  };
@@ -9866,7 +9866,7 @@
9866
9866
  margin: 0 !important;
9867
9867
  }
9868
9868
  `;
9869
- const Styled$E = {
9869
+ const Styled$G = {
9870
9870
  CustomMenu
9871
9871
  };
9872
9872
 
@@ -9893,7 +9893,7 @@
9893
9893
  setSelectedKeys(data.selectedKeys);
9894
9894
  }, [data.selectedKeys]);
9895
9895
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
9896
- Styled$E.CustomMenu,
9896
+ Styled$G.CustomMenu,
9897
9897
  {
9898
9898
  selectedKeys,
9899
9899
  onSelect: () => {
@@ -34467,7 +34467,7 @@
34467
34467
  white-space: nowrap;
34468
34468
  text-overflow: ellipsis;
34469
34469
  `;
34470
- const Styled$D = {
34470
+ const Styled$F = {
34471
34471
  ShortenedText
34472
34472
  };
34473
34473
 
@@ -34476,7 +34476,7 @@
34476
34476
  const trimmedText = text.substring(0, trimLength);
34477
34477
  return /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Tooltip, { title: text, placement: "top", children: trimmedText });
34478
34478
  }
34479
- return /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Tooltip, { title: text, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$D.ShortenedText, { $maxWidth: maxWidth, children: text }) });
34479
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Tooltip, { title: text, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$F.ShortenedText, { $maxWidth: maxWidth, children: text }) });
34480
34480
  };
34481
34481
 
34482
34482
  const FilterDropdown = ({
@@ -34627,16 +34627,16 @@
34627
34627
  overflow: hidden;
34628
34628
  text-overflow: ellipsis;
34629
34629
  `;
34630
- const Styled$C = {
34630
+ const Styled$E = {
34631
34631
  TableTag,
34632
34632
  TooltipTagsContainer,
34633
34633
  TooltipTag
34634
34634
  };
34635
34635
 
34636
34636
  const TrimmedTags = ({ tags, trimLength }) => {
34637
- const renderTableTags = (tags2) => tags2.map((tag) => /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$C.TableTag, { children: tag }, tag));
34637
+ const renderTableTags = (tags2) => tags2.map((tag) => /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$E.TableTag, { children: tag }, tag));
34638
34638
  const popoverTheme = { components: { Popover: { zIndexPopup: 2100 } } };
34639
- const renderTooltipTags = (tags2) => /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$C.TooltipTagsContainer, { vertical: true, gap: 4, children: tags2.map((tag) => /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$C.TooltipTag, { children: tag }, tag)) });
34639
+ const renderTooltipTags = (tags2) => /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$E.TooltipTagsContainer, { vertical: true, gap: 4, children: tags2.map((tag) => /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$E.TooltipTag, { children: tag }, tag)) });
34640
34640
  if (trimLength && trimLength < tags.length) {
34641
34641
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(antd.Flex, { wrap: "nowrap", gap: "4px", children: [
34642
34642
  renderTableTags(tags.slice(0, trimLength)),
@@ -34645,7 +34645,7 @@
34645
34645
  {
34646
34646
  content: renderTooltipTags(tags.slice(trimLength)),
34647
34647
  styles: { root: { maxWidth: "min(95vw, 900px)" } },
34648
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$C.TableTag, { children: [
34648
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$E.TableTag, { children: [
34649
34649
  "+",
34650
34650
  tags.length - trimLength
34651
34651
  ] }, "more")
@@ -36485,14 +36485,14 @@
36485
36485
  return typeof value === 'function';
36486
36486
  }
36487
36487
 
36488
- function hasOwnProperty$4(object, property) {
36488
+ function hasOwnProperty$6(object, property) {
36489
36489
  return Object.prototype.hasOwnProperty.call(object, property);
36490
36490
  }
36491
36491
 
36492
36492
  function validateChanges(initial, changes) {
36493
36493
  if (!isObject$7(changes)) errorHandler$1('changeType');
36494
36494
  if (Object.keys(changes).some(function (field) {
36495
- return !hasOwnProperty$4(initial, field);
36495
+ return !hasOwnProperty$6(initial, field);
36496
36496
  })) errorHandler$1('changeField');
36497
36497
  return changes;
36498
36498
  }
@@ -43781,7 +43781,7 @@
43781
43781
  font-size: 16px;
43782
43782
  line-height: 24px;
43783
43783
  `;
43784
- const Styled$B = {
43784
+ const Styled$D = {
43785
43785
  BorderRadiusContainer: BorderRadiusContainer$1,
43786
43786
  ControlsRowContainer: ControlsRowContainer$1,
43787
43787
  BigText: BigText$1
@@ -44011,7 +44011,7 @@
44011
44011
  };
44012
44012
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
44013
44013
  contextHolder,
44014
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$B.BorderRadiusContainer, { $designNewLayoutHeight: designNewLayoutHeight, $colorBorder: token.colorBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
44014
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$D.BorderRadiusContainer, { $designNewLayoutHeight: designNewLayoutHeight, $colorBorder: token.colorBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
44015
44015
  Ft$1,
44016
44016
  {
44017
44017
  defaultLanguage: "yaml",
@@ -44036,7 +44036,7 @@
44036
44036
  }
44037
44037
  }
44038
44038
  ) }),
44039
- !readOnly && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$B.ControlsRowContainer, { $bgColor: token.colorPrimaryBg, $designNewLayout: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(antd.Flex, { gap: designNewLayout ? 10 : 16, align: "center", children: [
44039
+ !readOnly && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$D.ControlsRowContainer, { $bgColor: token.colorPrimaryBg, $designNewLayout: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(antd.Flex, { gap: designNewLayout ? 10 : 16, align: "center", children: [
44040
44040
  /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Button, { type: "primary", onClick: onSubmit, loading: isLoading, disabled: canEdit === false, children: "Submit" }),
44041
44041
  backlink && /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Button, { onClick: () => navigate(backlink), children: "Cancel" }),
44042
44042
  /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Button, { onClick: handleReload, children: "Reload" })
@@ -44047,7 +44047,7 @@
44047
44047
  open: !!error,
44048
44048
  onOk: () => setError(void 0),
44049
44049
  onCancel: () => setError(void 0),
44050
- title: /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$B.BigText, { children: "Error!" }) }),
44050
+ title: /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$D.BigText, { children: "Error!" }) }),
44051
44051
  cancelButtonProps: { style: { display: "none" } },
44052
44052
  centered: true,
44053
44053
  styles: {
@@ -44208,7 +44208,7 @@
44208
44208
  const VisibilityContainer$1 = styled.div`
44209
44209
  display: ${({ $hidden }) => $hidden ? "none" : "block"};
44210
44210
  `;
44211
- const Styled$A = {
44211
+ const Styled$C = {
44212
44212
  VisibilityContainer: VisibilityContainer$1
44213
44213
  };
44214
44214
 
@@ -44258,7 +44258,7 @@
44258
44258
  return /* @__PURE__ */ jsxRuntimeExports.jsx(PerRequestError, { error: errorToShow });
44259
44259
  }
44260
44260
  const shouldAutoHide = !criteria && (!valuePrepared || valuePrepared === "~undefined-value~");
44261
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$A.VisibilityContainer, { $hidden: shouldAutoHide || shouldHideByCriteria, children });
44261
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$C.VisibilityContainer, { $hidden: shouldAutoHide || shouldHideByCriteria, children });
44262
44262
  };
44263
44263
 
44264
44264
  const unknownToString = (value) => {
@@ -44511,7 +44511,7 @@
44511
44511
  display: ${({ $isOpen }) => $isOpen ? "block" : "none"};
44512
44512
  padding: ${({ $designNewLayout }) => $designNewLayout ? "0 0 0 6px" : "4px"};
44513
44513
  `;
44514
- const Styled$z = {
44514
+ const Styled$B = {
44515
44515
  Container: Container$3,
44516
44516
  TitleBar,
44517
44517
  Content: Content$1
@@ -44538,14 +44538,14 @@
44538
44538
  }
44539
44539
  };
44540
44540
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
44541
- Styled$z.Container,
44541
+ Styled$B.Container,
44542
44542
  {
44543
44543
  $designNewLayout: designNewLayout,
44544
44544
  $borderColor: token.colorBorder,
44545
44545
  $bgColor: token.colorBgContainer,
44546
44546
  children: [
44547
44547
  /* @__PURE__ */ jsxRuntimeExports.jsxs(antd.Flex, { justify: "space-between", children: [
44548
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$z.TitleBar, { onClick: () => toggleCollapse(), children: [
44548
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$B.TitleBar, { onClick: () => toggleCollapse(), children: [
44549
44549
  !designNewLayout && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: isOpen ? /* @__PURE__ */ jsxRuntimeExports.jsx(AntIcons.CaretDownOutlined, { size: 14 }) : /* @__PURE__ */ jsxRuntimeExports.jsx(AntIcons.CaretRightOutlined, { size: 14 }) }),
44550
44550
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: title }),
44551
44551
  designNewLayout && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: isOpen ? /* @__PURE__ */ jsxRuntimeExports.jsx(DownIcon, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(UpIcon, {}) })
@@ -44556,7 +44556,7 @@
44556
44556
  persistedCheckbox
44557
44557
  ] })
44558
44558
  ] }),
44559
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$z.Content, { $isOpen: isOpen, $designNewLayout: designNewLayout, children })
44559
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$B.Content, { $isOpen: isOpen, $designNewLayout: designNewLayout, children })
44560
44560
  ]
44561
44561
  }
44562
44562
  );
@@ -44636,13 +44636,13 @@
44636
44636
  const Content = styled.div`
44637
44637
  padding: ${({ $designNewLayout }) => $designNewLayout ? "0 0 0 6px" : "4px"};
44638
44638
  `;
44639
- const Styled$y = {
44639
+ const Styled$A = {
44640
44640
  Content
44641
44641
  };
44642
44642
 
44643
44643
  const ArrayInsideContainer = ({ children }) => {
44644
44644
  const designNewLayout = useDesignNewLayout();
44645
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$y.Content, { $designNewLayout: designNewLayout, children });
44645
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$A.Content, { $designNewLayout: designNewLayout, children });
44646
44646
  };
44647
44647
 
44648
44648
  const includesPath = (haystack, needle) => haystack.some((h) => h.length === needle.length && h.every((seg, i) => seg === String(needle[i])));
@@ -44657,21 +44657,22 @@
44657
44657
  const secondArr = toArray$2(secondName);
44658
44658
  const isHidden = !!hiddenPaths && !!nameArr && includesPath(hiddenPaths, nameArr);
44659
44659
  const isHiddenSecond = !!hiddenPaths && !!secondArr && includesPath(hiddenPaths, secondArr);
44660
- return /* @__PURE__ */ jsxRuntimeExports.jsx(PossibleHiddenContainer, { $isHidden: !hiddenPaths || isHidden || isHiddenSecond, children });
44660
+ const shouldHide = !hiddenPaths || isHidden || isHiddenSecond;
44661
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(PossibleHiddenContainer, { $isHidden: shouldHide, "aria-hidden": shouldHide, hidden: shouldHide || void 0, children });
44661
44662
  };
44662
44663
 
44663
44664
  const HeightContainer = styled.div`
44664
44665
  height: ${({ $height }) => $height}px;
44665
44666
  `;
44666
44667
 
44667
- const Styled$x = {
44668
+ const Styled$z = {
44668
44669
  BulbIcon: styled(AntIcons.BulbOutlined)`
44669
44670
  margin-left: 6px;
44670
44671
  `
44671
44672
  };
44672
44673
 
44673
44674
  const ExampleTooltipIcon = ({ tooltip }) => {
44674
- return /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Tooltip, { title: tooltip, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$x.BulbIcon, {}) });
44675
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Tooltip, { title: tooltip, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$z.BulbIcon, {}) });
44675
44676
  };
44676
44677
 
44677
44678
  const NullToggleButton = ({ isNull, onSetNull, onClear, disabled }) => {
@@ -44828,7 +44829,7 @@
44828
44829
  const ResetedFormList$3 = styled(antd.Form.List)`
44829
44830
  margin-bottom: 8px;
44830
44831
  `;
44831
- const Styled$w = {
44832
+ const Styled$y = {
44832
44833
  ResetedFormList: ResetedFormList$3
44833
44834
  };
44834
44835
 
@@ -44919,7 +44920,7 @@
44919
44920
  /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Col, { span: cols[3], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {}) })
44920
44921
  ] }),
44921
44922
  /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
44922
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$w.ResetedFormList, { name: "taints", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
44923
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$y.ResetedFormList, { name: "taints", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
44923
44924
  fields.map(({ key, name, ...restField }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(antd.Row, { gutter: [16, 16], children: [
44924
44925
  /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Col, { span: cols[0], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
44925
44926
  ResetedFormItem$1,
@@ -44980,7 +44981,7 @@
44980
44981
  const ResetedFormList$2 = styled(antd.Form.List)`
44981
44982
  margin-bottom: 8px;
44982
44983
  `;
44983
- const Styled$v = {
44984
+ const Styled$x = {
44984
44985
  ResetedFormList: ResetedFormList$2
44985
44986
  };
44986
44987
 
@@ -45081,7 +45082,7 @@
45081
45082
  /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Col, { span: cols[4], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {}) })
45082
45083
  ] }),
45083
45084
  /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
45084
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$v.ResetedFormList, { name: "tolerations", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
45085
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$x.ResetedFormList, { name: "tolerations", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
45085
45086
  fields.map(({ key, name, ...restField }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(antd.Row, { gutter: [16, 16], children: [
45086
45087
  /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Col, { span: cols[0], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
45087
45088
  ResetedFormItem$1,
@@ -45173,7 +45174,7 @@
45173
45174
  const ResetedFormList$1 = styled(antd.Form.List)`
45174
45175
  margin-bottom: 8px;
45175
45176
  `;
45176
- const Styled$u = {
45177
+ const Styled$w = {
45177
45178
  ResetedFormList: ResetedFormList$1
45178
45179
  };
45179
45180
 
@@ -45269,7 +45270,7 @@
45269
45270
  /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Col, { span: cols[2], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {}) })
45270
45271
  ] }),
45271
45272
  /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
45272
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$u.ResetedFormList, { name: "annotations", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
45273
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$w.ResetedFormList, { name: "annotations", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
45273
45274
  fields.map(({ key, name, ...restField }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(antd.Row, { gutter: [16, 16], children: [
45274
45275
  /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Col, { span: cols[0], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
45275
45276
  ResetedFormItem$1,
@@ -47347,7 +47348,7 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
47347
47348
  margin-bottom: 0 !important;
47348
47349
  }
47349
47350
  `;
47350
- const Styled$t = {
47351
+ const Styled$v = {
47351
47352
  NoSelect,
47352
47353
  DisabledInput,
47353
47354
  DisabledTextArea,
@@ -47465,8 +47466,8 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
47465
47466
  const shownValue = useNiceLooking ? value2 : effectiveHidden ? "" : value2;
47466
47467
  const resolvedMultilineRows = resolveMultilineRows(value2, multilineRows);
47467
47468
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(antd.Flex, { gap: 8, ...flexProps, children: [
47468
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$t.NoSelect, { style: inputContainerStyle, children: useNiceLooking ? /* @__PURE__ */ jsxRuntimeExports.jsx(te, { theme, hidden: effectiveHidden, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
47469
- Styled$t.DisabledInput,
47469
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$v.NoSelect, { style: inputContainerStyle, children: useNiceLooking ? /* @__PURE__ */ jsxRuntimeExports.jsx(te, { theme, hidden: effectiveHidden, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
47470
+ Styled$v.DisabledInput,
47470
47471
  {
47471
47472
  $hidden: effectiveHidden,
47472
47473
  onClick: (e) => handleInputClick(e, effectiveHidden, value2),
@@ -47474,7 +47475,7 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
47474
47475
  readOnly: true
47475
47476
  }
47476
47477
  ) }) : multiline ? /* @__PURE__ */ jsxRuntimeExports.jsx(
47477
- Styled$t.DisabledTextArea,
47478
+ Styled$v.DisabledTextArea,
47478
47479
  {
47479
47480
  $hidden: effectiveHidden,
47480
47481
  onClick: (e) => handleInputClick(e, effectiveHidden, value2),
@@ -47483,7 +47484,7 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
47483
47484
  readOnly: true
47484
47485
  }
47485
47486
  ) : /* @__PURE__ */ jsxRuntimeExports.jsx(
47486
- Styled$t.DisabledInput,
47487
+ Styled$v.DisabledInput,
47487
47488
  {
47488
47489
  $hidden: effectiveHidden,
47489
47490
  onClick: (e) => handleInputClick(e, effectiveHidden, value2),
@@ -47506,13 +47507,13 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
47506
47507
  const secretsEntries = objectToRender ? Object.entries(objectToRender) : [];
47507
47508
  if (secretsEntries.length === 0) {
47508
47509
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: containerStyle, children: [
47509
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$t.NotificationOverrides, {}),
47510
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$v.NotificationOverrides, {}),
47510
47511
  emptyTextPrepared && /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Typography.Text, { style: textStyle, children: emptyTextPrepared }),
47511
47512
  contextHolder
47512
47513
  ] });
47513
47514
  }
47514
47515
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: containerStyle, children: [
47515
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$t.NotificationOverrides, {}),
47516
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$v.NotificationOverrides, {}),
47516
47517
  /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Flex, { vertical: true, gap: 8, children: secretsEntries.map(([key, rawValue]) => {
47517
47518
  const parsedValue = parseAll({
47518
47519
  text: typeof rawValue === "string" ? rawValue : String(rawValue),
@@ -47538,7 +47539,7 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
47538
47539
  ] });
47539
47540
  }
47540
47541
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: containerStyle, children: [
47541
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$t.NotificationOverrides, {}),
47542
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$v.NotificationOverrides, {}),
47542
47543
  renderSecretField({
47543
47544
  value: decodedText,
47544
47545
  isHidden: hidden,
@@ -47561,7 +47562,7 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
47561
47562
  letter-spacing: 0.02em;
47562
47563
  box-sizing: content-box;
47563
47564
  `;
47564
- const Styled$s = {
47565
+ const Styled$u = {
47565
47566
  RoundSpan
47566
47567
  };
47567
47568
 
@@ -47598,7 +47599,7 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
47598
47599
  multiQueryData
47599
47600
  }) : getUppercase(parsedValue);
47600
47601
  const bgColor = hslFromString(parsedValue, theme);
47601
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$s.RoundSpan, { $bgColor: bgColor, style, children: parsedAbbreviation });
47602
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$u.RoundSpan, { $bgColor: bgColor, style, children: parsedAbbreviation });
47602
47603
  };
47603
47604
 
47604
47605
  const serializeLabelsWithNoEncoding = (input) => {
@@ -49662,7 +49663,7 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
49662
49663
  exports.isDeepKey = isDeepKey;
49663
49664
  } (isDeepKey));
49664
49665
 
49665
- var toKey$2 = {};
49666
+ var toKey$3 = {};
49666
49667
 
49667
49668
  (function (exports) {
49668
49669
 
@@ -49679,7 +49680,7 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
49679
49680
  }
49680
49681
 
49681
49682
  exports.toKey = toKey;
49682
- } (toKey$2));
49683
+ } (toKey$3));
49683
49684
 
49684
49685
  var toPath = {};
49685
49686
 
@@ -49714,7 +49715,7 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
49714
49715
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
49715
49716
 
49716
49717
  const toString = toString$3;
49717
- const toKey = toKey$2;
49718
+ const toKey = toKey$3;
49718
49719
 
49719
49720
  function toPath(deepKey) {
49720
49721
  if (Array.isArray(deepKey)) {
@@ -49799,7 +49800,7 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
49799
49800
 
49800
49801
  const isUnsafeProperty$1 = isUnsafeProperty;
49801
49802
  const isDeepKey$1 = isDeepKey;
49802
- const toKey = toKey$2;
49803
+ const toKey = toKey$3;
49803
49804
  const toPath$1 = toPath;
49804
49805
 
49805
49806
  function get(object, path, defaultValue) {
@@ -50357,7 +50358,7 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
50357
50358
 
50358
50359
  var isArrayLike = {};
50359
50360
 
50360
- var isLength = {};
50361
+ var isLength$2 = {};
50361
50362
 
50362
50363
  (function (exports) {
50363
50364
 
@@ -50368,22 +50369,22 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
50368
50369
  }
50369
50370
 
50370
50371
  exports.isLength = isLength;
50371
- } (isLength));
50372
+ } (isLength$2));
50372
50373
 
50373
50374
  (function (exports) {
50374
50375
 
50375
50376
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
50376
50377
 
50377
- const isLength$1 = isLength;
50378
+ const isLength = isLength$2;
50378
50379
 
50379
50380
  function isArrayLike(value) {
50380
- return value != null && typeof value !== 'function' && isLength$1.isLength(value.length);
50381
+ return value != null && typeof value !== 'function' && isLength.isLength(value.length);
50381
50382
  }
50382
50383
 
50383
50384
  exports.isArrayLike = isArrayLike;
50384
50385
  } (isArrayLike));
50385
50386
 
50386
- var isObjectLike$3 = {};
50387
+ var isObjectLike$5 = {};
50387
50388
 
50388
50389
  (function (exports) {
50389
50390
 
@@ -50394,14 +50395,14 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
50394
50395
  }
50395
50396
 
50396
50397
  exports.isObjectLike = isObjectLike;
50397
- } (isObjectLike$3));
50398
+ } (isObjectLike$5));
50398
50399
 
50399
50400
  (function (exports) {
50400
50401
 
50401
50402
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
50402
50403
 
50403
50404
  const isArrayLike$1 = isArrayLike;
50404
- const isObjectLike = isObjectLike$3;
50405
+ const isObjectLike = isObjectLike$5;
50405
50406
 
50406
50407
  function isArrayLikeObject(value) {
50407
50408
  return isObjectLike.isObjectLike(value) && isArrayLike$1.isArrayLike(value);
@@ -51020,9 +51021,9 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
51020
51021
  exports.cloneDeep = cloneDeep;
51021
51022
  } (cloneDeep));
51022
51023
 
51023
- var has$1 = {};
51024
+ var has$3 = {};
51024
51025
 
51025
- var isIndex = {};
51026
+ var isIndex$2 = {};
51026
51027
 
51027
51028
  (function (exports) {
51028
51029
 
@@ -51044,9 +51045,9 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
51044
51045
  }
51045
51046
 
51046
51047
  exports.isIndex = isIndex;
51047
- } (isIndex));
51048
+ } (isIndex$2));
51048
51049
 
51049
- var isArguments = {};
51050
+ var isArguments$2 = {};
51050
51051
 
51051
51052
  (function (exports) {
51052
51053
 
@@ -51059,15 +51060,15 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
51059
51060
  }
51060
51061
 
51061
51062
  exports.isArguments = isArguments;
51062
- } (isArguments));
51063
+ } (isArguments$2));
51063
51064
 
51064
51065
  (function (exports) {
51065
51066
 
51066
51067
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
51067
51068
 
51068
51069
  const isDeepKey$1 = isDeepKey;
51069
- const isIndex$1 = isIndex;
51070
- const isArguments$1 = isArguments;
51070
+ const isIndex = isIndex$2;
51071
+ const isArguments = isArguments$2;
51071
51072
  const toPath$1 = toPath;
51072
51073
 
51073
51074
  function has(object, path) {
@@ -51088,7 +51089,7 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
51088
51089
  for (let i = 0; i < resolvedPath.length; i++) {
51089
51090
  const key = resolvedPath[i];
51090
51091
  if (current == null || !Object.hasOwn(current, key)) {
51091
- const isSparseIndex = (Array.isArray(current) || isArguments$1.isArguments(current)) && isIndex$1.isIndex(key) && key < current.length;
51092
+ const isSparseIndex = (Array.isArray(current) || isArguments.isArguments(current)) && isIndex.isIndex(key) && key < current.length;
51092
51093
  if (!isSparseIndex) {
51093
51094
  return false;
51094
51095
  }
@@ -51099,17 +51100,17 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
51099
51100
  }
51100
51101
 
51101
51102
  exports.has = has;
51102
- } (has$1));
51103
+ } (has$3));
51103
51104
 
51104
51105
  (function (exports) {
51105
51106
 
51106
51107
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
51107
51108
 
51108
51109
  const isMatch$1 = isMatch;
51109
- const toKey = toKey$2;
51110
+ const toKey = toKey$3;
51110
51111
  const cloneDeep$1 = cloneDeep;
51111
51112
  const get = get$4;
51112
- const has = has$1;
51113
+ const has = has$3;
51113
51114
 
51114
51115
  function matchesProperty(property, source) {
51115
51116
  switch (typeof property) {
@@ -52168,7 +52169,7 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
52168
52169
 
52169
52170
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
52170
52171
 
52171
- const isIndex$1 = isIndex;
52172
+ const isIndex = isIndex$2;
52172
52173
  const isArrayLike$1 = isArrayLike;
52173
52174
  const isObject = isObject$4;
52174
52175
  const eq = eq$2;
@@ -52177,7 +52178,7 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
52177
52178
  if (!isObject.isObject(object)) {
52178
52179
  return false;
52179
52180
  }
52180
- if ((typeof index === 'number' && isArrayLike$1.isArrayLike(object) && isIndex$1.isIndex(index) && index < object.length) ||
52181
+ if ((typeof index === 'number' && isArrayLike$1.isArrayLike(object) && isIndex.isIndex(index) && index < object.length) ||
52181
52182
  (typeof index === 'string' && index in object)) {
52182
52183
  return eq.eq(object[index], value);
52183
52184
  }
@@ -52715,7 +52716,7 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
52715
52716
  const state = thing[DRAFT_STATE];
52716
52717
  return state ? state.type_ : Array.isArray(thing) ? 1 /* Array */ : isMap(thing) ? 2 /* Map */ : isSet(thing) ? 3 /* Set */ : 0 /* Object */;
52717
52718
  }
52718
- function has(thing, prop) {
52719
+ function has$2(thing, prop) {
52719
52720
  return getArchtype(thing) === 2 /* Map */ ? thing.has(prop) : Object.prototype.hasOwnProperty.call(thing, prop);
52720
52721
  }
52721
52722
  function set(thing, propOrOldValue, value) {
@@ -52937,7 +52938,7 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
52937
52938
  die(5);
52938
52939
  if (isDraft(childValue)) {
52939
52940
  const path = rootPath && parentState && parentState.type_ !== 3 /* Set */ && // Set objects are atomic since they have no keys.
52940
- !has(parentState.assigned_, prop) ? rootPath.concat(prop) : void 0;
52941
+ !has$2(parentState.assigned_, prop) ? rootPath.concat(prop) : void 0;
52941
52942
  const res = finalize(rootScope, childValue, path);
52942
52943
  set(targetObject, prop, res);
52943
52944
  if (isDraft(res)) {
@@ -53004,7 +53005,7 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
53004
53005
  if (prop === DRAFT_STATE)
53005
53006
  return state;
53006
53007
  const source = latest(state);
53007
- if (!has(source, prop)) {
53008
+ if (!has$2(source, prop)) {
53008
53009
  return readPropFromProto(state, source, prop);
53009
53010
  }
53010
53011
  const value = source[prop];
@@ -53037,7 +53038,7 @@ if (_IS_WORKLET) registerPaint("spoiler", SpoilerPainterWorklet);
53037
53038
  state.assigned_[prop] = false;
53038
53039
  return true;
53039
53040
  }
53040
- if (is$1(value, current2) && (value !== void 0 || has(state.base_, prop)))
53041
+ if (is$1(value, current2) && (value !== void 0 || has$2(state.base_, prop)))
53041
53042
  return true;
53042
53043
  prepareCopy(state);
53043
53044
  markChanged(state);
@@ -61600,8 +61601,8 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
61600
61601
  ONE,
61601
61602
  BASE = 1e7,
61602
61603
  LOG_BASE = 7,
61603
- MAX_SAFE_INTEGER = 9007199254740991,
61604
- MAX_E = mathfloor(MAX_SAFE_INTEGER / LOG_BASE), // 1286742750677284
61604
+ MAX_SAFE_INTEGER$2 = 9007199254740991,
61605
+ MAX_E = mathfloor(MAX_SAFE_INTEGER$2 / LOG_BASE), // 1286742750677284
61605
61606
 
61606
61607
  // Decimal.prototype object
61607
61608
  P = {};
@@ -62291,7 +62292,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
62291
62292
  if (sign < 0) throw Error(decimalError + 'NaN');
62292
62293
 
62293
62294
  // If y is a small integer use the 'exponentiation by squaring' algorithm.
62294
- } else if ((k = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER) {
62295
+ } else if ((k = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER$2) {
62295
62296
  r = new Ctor(ONE);
62296
62297
 
62297
62298
  // Max k of 9007199254740991 takes 53 loop iterations.
@@ -78305,7 +78306,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
78305
78306
  }
78306
78307
  }
78307
78308
  `;
78308
- const Styled$r = {
78309
+ const Styled$t = {
78309
78310
  TitleSelect
78310
78311
  };
78311
78312
 
@@ -78390,7 +78391,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
78390
78391
  }
78391
78392
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
78392
78393
  /* @__PURE__ */ jsxRuntimeExports.jsx(
78393
- Styled$r.TitleSelect,
78394
+ Styled$t.TitleSelect,
78394
78395
  {
78395
78396
  value: currentValuePrepared,
78396
78397
  onChange: handleChange,
@@ -78977,7 +78978,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
78977
78978
  const HiddenContainer = styled.div`
78978
78979
  display: ${({ $isHidden }) => $isHidden ? "none" : "auto"};
78979
78980
  `;
78980
- const Styled$q = {
78981
+ const Styled$s = {
78981
78982
  Card: Card$1,
78982
78983
  CardTitle,
78983
78984
  CardNumber,
@@ -79056,7 +79057,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
79056
79057
  const jsonRoot = multiQueryData[`req${counter.props.reqIndex}`];
79057
79058
  if (jsonRoot === void 0) {
79058
79059
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
79059
- Styled$q.Card,
79060
+ Styled$s.Card,
79060
79061
  {
79061
79062
  $colorBorder: token.colorBorder,
79062
79063
  $colorBgContainer: token.colorBgContainer,
@@ -79071,15 +79072,15 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
79071
79072
  children: [
79072
79073
  /* @__PURE__ */ jsxRuntimeExports.jsxs(antd.Flex, { gap: 4, vertical: true, children: [
79073
79074
  /* @__PURE__ */ jsxRuntimeExports.jsx(
79074
- Styled$q.CardTitle,
79075
+ Styled$s.CardTitle,
79075
79076
  {
79076
79077
  $colorTextDescription: token.colorTextDescription,
79077
79078
  children: `Counter: ${id}: No root for json path`
79078
79079
  }
79079
79080
  ),
79080
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.CardNumber, { $colorText: token.colorText, children: "-" })
79081
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$s.CardNumber, { $colorText: token.colorText, children: "-" })
79081
79082
  ] }),
79082
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.CardIcon, { $colorInfo: token.colorInfo, children: iconBase64Encoded && renderIcon$1(iconBase64Encoded, token.colorInfo) })
79083
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$s.CardIcon, { $colorInfo: token.colorInfo, children: iconBase64Encoded && renderIcon$1(iconBase64Encoded, token.colorInfo) })
79083
79084
  ]
79084
79085
  }
79085
79086
  );
@@ -79089,7 +79090,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
79089
79090
  const { counter: counterToDisplay, error: errorParsingCounter } = counter.type === "item" ? getItemCounterItemsInside(anythingForNow) : getKeyCounterItemsInside(anythingForNow);
79090
79091
  if (errorParsingCounter) {
79091
79092
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
79092
- Styled$q.Card,
79093
+ Styled$s.Card,
79093
79094
  {
79094
79095
  $colorBorder: token.colorBorder,
79095
79096
  $colorBgContainer: token.colorBgContainer,
@@ -79103,10 +79104,10 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
79103
79104
  },
79104
79105
  children: [
79105
79106
  /* @__PURE__ */ jsxRuntimeExports.jsxs(antd.Flex, { gap: 4, vertical: true, children: [
79106
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.CardTitle, { $colorTextDescription: token.colorTextDescription, children: errorParsingCounter }),
79107
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.CardNumber, { $colorText: token.colorText, children: "-" })
79107
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$s.CardTitle, { $colorTextDescription: token.colorTextDescription, children: errorParsingCounter }),
79108
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$s.CardNumber, { $colorText: token.colorText, children: "-" })
79108
79109
  ] }),
79109
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.CardIcon, { $colorInfo: token.colorInfo, children: iconBase64Encoded && renderIcon$1(iconBase64Encoded, token.colorInfo) })
79110
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$s.CardIcon, { $colorInfo: token.colorInfo, children: iconBase64Encoded && renderIcon$1(iconBase64Encoded, token.colorInfo) })
79110
79111
  ]
79111
79112
  }
79112
79113
  );
@@ -79114,7 +79115,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
79114
79115
  const parsedText = parseAll({ text, replaceValues, multiQueryData });
79115
79116
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
79116
79117
  /* @__PURE__ */ jsxRuntimeExports.jsxs(
79117
- Styled$q.Card,
79118
+ Styled$s.Card,
79118
79119
  {
79119
79120
  $colorBorder: token.colorBorder,
79120
79121
  $colorBgContainer: token.colorBgContainer,
@@ -79128,14 +79129,14 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
79128
79129
  },
79129
79130
  children: [
79130
79131
  /* @__PURE__ */ jsxRuntimeExports.jsxs(antd.Flex, { gap: 4, vertical: true, children: [
79131
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.CardTitle, { $colorTextDescription: token.colorTextDescription, children: parsedText }),
79132
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.CardNumber, { $colorText: token.colorText, children: counterToDisplay })
79132
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$s.CardTitle, { $colorTextDescription: token.colorTextDescription, children: parsedText }),
79133
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$s.CardNumber, { $colorText: token.colorText, children: counterToDisplay })
79133
79134
  ] }),
79134
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.CardIcon, { $colorInfo: token.colorInfo, children: iconBase64Encoded && renderIcon$1(iconBase64Encoded, token.colorInfo) })
79135
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$s.CardIcon, { $colorInfo: token.colorInfo, children: iconBase64Encoded && renderIcon$1(iconBase64Encoded, token.colorInfo) })
79135
79136
  ]
79136
79137
  }
79137
79138
  ),
79138
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.HiddenContainer, { $isHidden: !open, children: canOpenActiveType && renderActiveType(activeType, {
79139
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$s.HiddenContainer, { $isHidden: !open, children: canOpenActiveType && renderActiveType(activeType, {
79139
79140
  open,
79140
79141
  onClose: () => setOpen(false),
79141
79142
  disableSubmit: !canSubmitActiveType
@@ -79564,7 +79565,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
79564
79565
  white-space: nowrap;
79565
79566
  z-index: 3;
79566
79567
  `;
79567
- const Styled$p = {
79568
+ const Styled$r = {
79568
79569
  TooltipContent,
79569
79570
  TooltipRow,
79570
79571
  TooltipDot,
@@ -79714,17 +79715,17 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
79714
79715
  const usedPercent = clampPercent(resolvedUsed ?? NaN, resolvedLimit ?? NaN);
79715
79716
  const limitPercent = 100;
79716
79717
  const gradientMidStop = `${requestedPercent.toFixed(2)}%`;
79717
- const tooltipTitle = /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$p.TooltipContent, { $colorInfoBgHover: token.colorInfoBgHover, children: [
79718
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$p.TooltipRow, { $colorText: token.colorText, children: [
79719
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.TooltipDot, { $color: "#5EDBBD" }),
79718
+ const tooltipTitle = /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$r.TooltipContent, { $colorInfoBgHover: token.colorInfoBgHover, children: [
79719
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$r.TooltipRow, { $colorText: token.colorText, children: [
79720
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.TooltipDot, { $color: "#5EDBBD" }),
79720
79721
  "Requested"
79721
79722
  ] }),
79722
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$p.TooltipRow, { $colorText: token.colorText, children: [
79723
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.TooltipDot, { $color: "#FF1C1C" }),
79723
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$r.TooltipRow, { $colorText: token.colorText, children: [
79724
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.TooltipDot, { $color: "#FF1C1C" }),
79724
79725
  "Used"
79725
79726
  ] }),
79726
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$p.TooltipRow, { $colorText: token.colorText, children: [
79727
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.TooltipDot, { $color: "#FD9125" }),
79727
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$r.TooltipRow, { $colorText: token.colorText, children: [
79728
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.TooltipDot, { $color: "#FD9125" }),
79728
79729
  "Limit"
79729
79730
  ] })
79730
79731
  ] });
@@ -79805,10 +79806,10 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
79805
79806
  if (shouldShowError) {
79806
79807
  return /* @__PURE__ */ jsxRuntimeExports.jsx(PerRequestError, { error: errorToShow });
79807
79808
  }
79808
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$p.Wrapper, { style: containerStyle, $colorBgContainer: token.colorBgContainer, $colorBorder: token.colorBorder, children: [
79809
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.Header, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.Title, { $colorText: token.colorText, children: title }) }),
79810
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$p.ChartContainer, { children: [
79811
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.ChartWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.ChartInner, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ResponsiveContainer, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(ComposedChart, { data: chartData, margin: { top: 8, right: 12, left: 12, bottom: 0 }, children: [
79809
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$r.Wrapper, { style: containerStyle, $colorBgContainer: token.colorBgContainer, $colorBorder: token.colorBorder, children: [
79810
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.Header, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.Title, { $colorText: token.colorText, children: title }) }),
79811
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$r.ChartContainer, { children: [
79812
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.ChartWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.ChartInner, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ResponsiveContainer, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(ComposedChart, { data: chartData, margin: { top: 8, right: 12, left: 12, bottom: 0 }, children: [
79812
79813
  /* @__PURE__ */ jsxRuntimeExports.jsx(XAxis, { dataKey: "index", hide: true }),
79813
79814
  /* @__PURE__ */ jsxRuntimeExports.jsx(YAxis, { hide: true, domain: yDomain, padding: { top: 6, bottom: 24 } }),
79814
79815
  /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -79832,9 +79833,9 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
79832
79833
  }
79833
79834
  )
79834
79835
  ] }) }) }) }),
79835
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.ChartOverlay, { $isDark: isDark })
79836
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.ChartOverlay, { $isDark: isDark })
79836
79837
  ] }),
79837
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.GradientBarWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$p.GradientBarContainer, { children: [
79838
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.GradientBarWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$r.GradientBarContainer, { children: [
79838
79839
  /* @__PURE__ */ jsxRuntimeExports.jsx(
79839
79840
  antd.Tooltip,
79840
79841
  {
@@ -79846,7 +79847,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
79846
79847
  body: { padding: 0, borderRadius: 6 }
79847
79848
  },
79848
79849
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
79849
- Styled$p.GradientBar,
79850
+ Styled$r.GradientBar,
79850
79851
  {
79851
79852
  $minColor: minColor,
79852
79853
  $midColor: midColor,
@@ -79856,12 +79857,12 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
79856
79857
  )
79857
79858
  }
79858
79859
  ),
79859
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$p.BadgesContainer, { ref: badgesContainerRef, children: [
79860
- resolvedRequested !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.BarMarker, { $left: requestedPercent, $edgeAlign: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(RequestedMarkerSvg, {}) }),
79861
- resolvedUsed !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.BarMarker, { $left: usedPercent, $flipX: true, $paddingTop: 10, children: /* @__PURE__ */ jsxRuntimeExports.jsx(UsedMarkerSvg, {}) }),
79862
- resolvedLimit !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.BarMarker, { $left: limitPercent, children: /* @__PURE__ */ jsxRuntimeExports.jsx(LimitMarkerSvg, {}) }),
79860
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$r.BadgesContainer, { ref: badgesContainerRef, children: [
79861
+ resolvedRequested !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.BarMarker, { $left: requestedPercent, $edgeAlign: true, children: /* @__PURE__ */ jsxRuntimeExports.jsx(RequestedMarkerSvg, {}) }),
79862
+ resolvedUsed !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.BarMarker, { $left: usedPercent, $flipX: true, $paddingTop: 10, children: /* @__PURE__ */ jsxRuntimeExports.jsx(UsedMarkerSvg, {}) }),
79863
+ resolvedLimit !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.BarMarker, { $left: limitPercent, children: /* @__PURE__ */ jsxRuntimeExports.jsx(LimitMarkerSvg, {}) }),
79863
79864
  resolvedUsed !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(
79864
- Styled$p.UsedBadge,
79865
+ Styled$r.UsedBadge,
79865
79866
  {
79866
79867
  ref: usedBadgeRef,
79867
79868
  $left: clampedUsedPercent ?? usedPercent,
@@ -79883,7 +79884,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
79883
79884
  }
79884
79885
  ),
79885
79886
  resolvedRequested !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(
79886
- Styled$p.MarkerLabel,
79887
+ Styled$r.MarkerLabel,
79887
79888
  {
79888
79889
  ref: requestedLabelRef,
79889
79890
  $left: clampedRequestedPercent ?? requestedPercent,
@@ -79904,7 +79905,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
79904
79905
  }
79905
79906
  ),
79906
79907
  resolvedLimit !== void 0 && /* @__PURE__ */ jsxRuntimeExports.jsxs(
79907
- Styled$p.MarkerLabel,
79908
+ Styled$r.MarkerLabel,
79908
79909
  {
79909
79910
  ref: limitLabelRef,
79910
79911
  $left: limitPercent,
@@ -79972,7 +79973,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
79972
79973
  font-size: 16px;
79973
79974
  }
79974
79975
  `;
79975
- const Styled$o = {
79976
+ const Styled$q = {
79976
79977
  IconWrapper,
79977
79978
  IconScaler,
79978
79979
  IconButton
@@ -80022,7 +80023,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
80022
80023
  };
80023
80024
  const getActionIcon = (action) => {
80024
80025
  if (action.props.iconBase64Encoded) {
80025
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$o.IconWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$o.IconScaler, { children: renderIcon$1(action.props.iconBase64Encoded, "currentColor") }) });
80026
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.IconWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.IconScaler, { children: renderIcon$1(action.props.iconBase64Encoded, "currentColor") }) });
80026
80027
  }
80027
80028
  if (action.props.icon) {
80028
80029
  return renderAntIcon(action.props.icon);
@@ -81445,7 +81446,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
81445
81446
  };
81446
81447
  const renderButton = () => {
81447
81448
  if (buttonVariant === "icon") {
81448
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$o.IconButton, { type: "text", size: "small", icon: /* @__PURE__ */ jsxRuntimeExports.jsx(AntIcons.MoreOutlined, {}) });
81449
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.IconButton, { type: "text", size: "small", icon: /* @__PURE__ */ jsxRuntimeExports.jsx(AntIcons.MoreOutlined, {}) });
81449
81450
  }
81450
81451
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(antd.Button, { children: [
81451
81452
  buttonText,
@@ -82084,7 +82085,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
82084
82085
  justify-content: center;
82085
82086
  flex: 1;
82086
82087
  `;
82087
- const Styled$n = {
82088
+ const Styled$p = {
82088
82089
  CenteredResultWrapper
82089
82090
  };
82090
82091
 
@@ -82108,7 +82109,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
82108
82109
  const status = data.status ?? result.resultStatus;
82109
82110
  const title = data.title ? parseAll({ text: data.title, replaceValues, multiQueryData }) : getDefaultTitle(status);
82110
82111
  const subTitle = data.subTitle ? parseAll({ text: data.subTitle, replaceValues, multiQueryData }) : result.message;
82111
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$n.CenteredResultWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Result, { status, title, subTitle, style: data.style }) });
82112
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.CenteredResultWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Result, { status, title, subTitle, style: data.style }) });
82112
82113
  }
82113
82114
  if (Array.isArray(data.reqIndex)) {
82114
82115
  const worst = findWorstError(data.reqIndex, multiQueryData, getErrorForReq, shouldCheckEmpty, data.itemsPath);
@@ -82118,11 +82119,11 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
82118
82119
  const status = data.status ?? worst.resultStatus;
82119
82120
  const title = data.title ? parseAll({ text: data.title, replaceValues, multiQueryData }) : getDefaultTitle(status);
82120
82121
  const subTitle = data.subTitle ? parseAll({ text: data.subTitle, replaceValues, multiQueryData }) : worst.message;
82121
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$n.CenteredResultWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Result, { status, title, subTitle, style: data.style }) });
82122
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.CenteredResultWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Result, { status, title, subTitle, style: data.style }) });
82122
82123
  }
82123
82124
  const parsedTitle = data.title ? parseAll({ text: data.title, replaceValues, multiQueryData }) : void 0;
82124
82125
  const parsedSubTitle = data.subTitle ? parseAll({ text: data.subTitle, replaceValues, multiQueryData }) : void 0;
82125
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$n.CenteredResultWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Result, { status: data.status, title: parsedTitle, subTitle: parsedSubTitle, style: data.style, children }) });
82126
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.CenteredResultWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Result, { status: data.status, title: parsedTitle, subTitle: parsedSubTitle, style: data.style, children }) });
82126
82127
  };
82127
82128
 
82128
82129
  const DynamicComponents = {
@@ -82923,6 +82924,22 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
82923
82924
  );
82924
82925
  };
82925
82926
 
82927
+ const getMinHeight = (minHeight) => {
82928
+ if (typeof minHeight === "number") {
82929
+ return `${minHeight}px`;
82930
+ }
82931
+ return minHeight || "auto";
82932
+ };
82933
+ const LoadingContainer$2 = styled.div`
82934
+ display: flex;
82935
+ align-items: center;
82936
+ justify-content: center;
82937
+ min-height: ${({ $minHeight }) => getMinHeight($minHeight)};
82938
+ `;
82939
+ const Styled$o = {
82940
+ LoadingContainer: LoadingContainer$2
82941
+ };
82942
+
82926
82943
  const prepare = ({
82927
82944
  dataItems,
82928
82945
  pathToKey,
@@ -83206,13 +83223,13 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
83206
83223
  // isNamespaced,
83207
83224
  ]);
83208
83225
  if (!preparedProps && isLoading) {
83209
- return /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Flex, { justify: "center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Spin, {}) });
83226
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$o.LoadingContainer, { $minHeight: tableProps?.loadingMinHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Spin, {}) });
83210
83227
  }
83211
83228
  if (isError) {
83212
83229
  return /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Alert, { message: isError, type: "error" });
83213
83230
  }
83214
83231
  if (!preparedProps) {
83215
- return /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Flex, { justify: "center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Spin, {}) });
83232
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$o.LoadingContainer, { $minHeight: tableProps?.loadingMinHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Spin, {}) });
83216
83233
  }
83217
83234
  const fullPath = `${location.pathname}${location.search}`;
83218
83235
  const { dataSource, columns } = prepare({
@@ -83303,14 +83320,14 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
83303
83320
  var root$4 = freeGlobal$2 || freeSelf$1 || Function('return this')();
83304
83321
 
83305
83322
  /** Used for built-in method references. */
83306
- var objectProto$5 = Object.prototype;
83323
+ var objectProto$7 = Object.prototype;
83307
83324
 
83308
83325
  /**
83309
83326
  * Used to resolve the
83310
83327
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
83311
83328
  * of values.
83312
83329
  */
83313
- var objectToString$2 = objectProto$5.toString;
83330
+ var objectToString$2 = objectProto$7.toString;
83314
83331
 
83315
83332
  /* Built-in method references for those with the same name as other `lodash` methods. */
83316
83333
  var nativeMax = Math.max,
@@ -83566,7 +83583,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
83566
83583
  * _.isObjectLike(null);
83567
83584
  * // => false
83568
83585
  */
83569
- function isObjectLike$2(value) {
83586
+ function isObjectLike$4(value) {
83570
83587
  return !!value && typeof value == 'object';
83571
83588
  }
83572
83589
 
@@ -83589,7 +83606,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
83589
83606
  */
83590
83607
  function isSymbol$4(value) {
83591
83608
  return typeof value == 'symbol' ||
83592
- (isObjectLike$2(value) && objectToString$2.call(value) == symbolTag$1);
83609
+ (isObjectLike$4(value) && objectToString$2.call(value) == symbolTag$1);
83593
83610
  }
83594
83611
 
83595
83612
  /**
@@ -83843,7 +83860,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
83843
83860
  border-radius: 8px;
83844
83861
  }
83845
83862
  `;
83846
- const Styled$m = {
83863
+ const Styled$n = {
83847
83864
  BorderRadiusContainer
83848
83865
  };
83849
83866
 
@@ -83890,7 +83907,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
83890
83907
  }
83891
83908
  }
83892
83909
  }, [yamlData, editorUri]);
83893
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$m.BorderRadiusContainer, { $colorBorder: token.colorBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
83910
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$n.BorderRadiusContainer, { $colorBorder: token.colorBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
83894
83911
  Ft$1,
83895
83912
  {
83896
83913
  language: "yaml",
@@ -84031,9 +84048,9 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
84031
84048
  * // => false
84032
84049
  */
84033
84050
 
84034
- var isArray$3 = Array.isArray;
84051
+ var isArray$4 = Array.isArray;
84035
84052
 
84036
- var isArray_1 = isArray$3;
84053
+ var isArray_1 = isArray$4;
84037
84054
 
84038
84055
  /** Detect free variable `global` from Node.js. */
84039
84056
 
@@ -84061,17 +84078,17 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
84061
84078
  var Symbol$3 = _Symbol;
84062
84079
 
84063
84080
  /** Used for built-in method references. */
84064
- var objectProto$4 = Object.prototype;
84081
+ var objectProto$6 = Object.prototype;
84065
84082
 
84066
84083
  /** Used to check objects for own properties. */
84067
- var hasOwnProperty$3 = objectProto$4.hasOwnProperty;
84084
+ var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
84068
84085
 
84069
84086
  /**
84070
84087
  * Used to resolve the
84071
84088
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
84072
84089
  * of values.
84073
84090
  */
84074
- var nativeObjectToString$1 = objectProto$4.toString;
84091
+ var nativeObjectToString$1 = objectProto$6.toString;
84075
84092
 
84076
84093
  /** Built-in value references. */
84077
84094
  var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : undefined;
@@ -84084,7 +84101,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
84084
84101
  * @returns {string} Returns the raw `toStringTag`.
84085
84102
  */
84086
84103
  function getRawTag$1(value) {
84087
- var isOwn = hasOwnProperty$3.call(value, symToStringTag$1),
84104
+ var isOwn = hasOwnProperty$5.call(value, symToStringTag$1),
84088
84105
  tag = value[symToStringTag$1];
84089
84106
 
84090
84107
  try {
@@ -84107,14 +84124,14 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
84107
84124
 
84108
84125
  /** Used for built-in method references. */
84109
84126
 
84110
- var objectProto$3 = Object.prototype;
84127
+ var objectProto$5 = Object.prototype;
84111
84128
 
84112
84129
  /**
84113
84130
  * Used to resolve the
84114
84131
  * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
84115
84132
  * of values.
84116
84133
  */
84117
- var nativeObjectToString = objectProto$3.toString;
84134
+ var nativeObjectToString = objectProto$5.toString;
84118
84135
 
84119
84136
  /**
84120
84137
  * Converts `value` to a string using `Object.prototype.toString`.
@@ -84147,7 +84164,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
84147
84164
  * @param {*} value The value to query.
84148
84165
  * @returns {string} Returns the `toStringTag`.
84149
84166
  */
84150
- function baseGetTag$2(value) {
84167
+ function baseGetTag$3(value) {
84151
84168
  if (value == null) {
84152
84169
  return value === undefined ? undefinedTag : nullTag;
84153
84170
  }
@@ -84156,7 +84173,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
84156
84173
  : objectToString(value);
84157
84174
  }
84158
84175
 
84159
- var _baseGetTag = baseGetTag$2;
84176
+ var _baseGetTag = baseGetTag$3;
84160
84177
 
84161
84178
  /**
84162
84179
  * Checks if `value` is object-like. A value is object-like if it's not `null`
@@ -84183,14 +84200,14 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
84183
84200
  * // => false
84184
84201
  */
84185
84202
 
84186
- function isObjectLike$1(value) {
84203
+ function isObjectLike$3(value) {
84187
84204
  return value != null && typeof value == 'object';
84188
84205
  }
84189
84206
 
84190
- var isObjectLike_1 = isObjectLike$1;
84207
+ var isObjectLike_1 = isObjectLike$3;
84191
84208
 
84192
- var baseGetTag$1 = _baseGetTag,
84193
- isObjectLike = isObjectLike_1;
84209
+ var baseGetTag$2 = _baseGetTag,
84210
+ isObjectLike$2 = isObjectLike_1;
84194
84211
 
84195
84212
  /** `Object#toString` result references. */
84196
84213
  var symbolTag = '[object Symbol]';
@@ -84214,12 +84231,12 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
84214
84231
  */
84215
84232
  function isSymbol$3(value) {
84216
84233
  return typeof value == 'symbol' ||
84217
- (isObjectLike(value) && baseGetTag$1(value) == symbolTag);
84234
+ (isObjectLike$2(value) && baseGetTag$2(value) == symbolTag);
84218
84235
  }
84219
84236
 
84220
84237
  var isSymbol_1 = isSymbol$3;
84221
84238
 
84222
- var isArray$2 = isArray_1,
84239
+ var isArray$3 = isArray_1,
84223
84240
  isSymbol$2 = isSymbol_1;
84224
84241
 
84225
84242
  /** Used to match property names within property paths. */
@@ -84235,7 +84252,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
84235
84252
  * @returns {boolean} Returns `true` if `value` is a property name, else `false`.
84236
84253
  */
84237
84254
  function isKey$1(value, object) {
84238
- if (isArray$2(value)) {
84255
+ if (isArray$3(value)) {
84239
84256
  return false;
84240
84257
  }
84241
84258
  var type = typeof value;
@@ -84282,7 +84299,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
84282
84299
 
84283
84300
  var isObject_1 = isObject$2;
84284
84301
 
84285
- var baseGetTag = _baseGetTag,
84302
+ var baseGetTag$1 = _baseGetTag,
84286
84303
  isObject$1 = isObject_1;
84287
84304
 
84288
84305
  /** `Object#toString` result references. */
@@ -84314,7 +84331,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
84314
84331
  }
84315
84332
  // The use of `Object#toString` avoids issues with the `typeof` operator
84316
84333
  // in Safari 9 which returns 'object' for typed arrays and other constructors.
84317
- var tag = baseGetTag(value);
84334
+ var tag = baseGetTag$1(value);
84318
84335
  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
84319
84336
  }
84320
84337
 
@@ -84392,17 +84409,17 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
84392
84409
 
84393
84410
  /** Used for built-in method references. */
84394
84411
  var funcProto = Function.prototype,
84395
- objectProto$2 = Object.prototype;
84412
+ objectProto$4 = Object.prototype;
84396
84413
 
84397
84414
  /** Used to resolve the decompiled source of functions. */
84398
84415
  var funcToString = funcProto.toString;
84399
84416
 
84400
84417
  /** Used to check objects for own properties. */
84401
- var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
84418
+ var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
84402
84419
 
84403
84420
  /** Used to detect if a method is native. */
84404
84421
  var reIsNative = RegExp('^' +
84405
- funcToString.call(hasOwnProperty$2).replace(reRegExpChar, '\\$&')
84422
+ funcToString.call(hasOwnProperty$4).replace(reRegExpChar, '\\$&')
84406
84423
  .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
84407
84424
  );
84408
84425
 
@@ -84505,10 +84522,10 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
84505
84522
  var HASH_UNDEFINED$1 = '__lodash_hash_undefined__';
84506
84523
 
84507
84524
  /** Used for built-in method references. */
84508
- var objectProto$1 = Object.prototype;
84525
+ var objectProto$3 = Object.prototype;
84509
84526
 
84510
84527
  /** Used to check objects for own properties. */
84511
- var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
84528
+ var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
84512
84529
 
84513
84530
  /**
84514
84531
  * Gets the hash value for `key`.
@@ -84525,7 +84542,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
84525
84542
  var result = data[key];
84526
84543
  return result === HASH_UNDEFINED$1 ? undefined : result;
84527
84544
  }
84528
- return hasOwnProperty$1.call(data, key) ? data[key] : undefined;
84545
+ return hasOwnProperty$3.call(data, key) ? data[key] : undefined;
84529
84546
  }
84530
84547
 
84531
84548
  var _hashGet = hashGet$1;
@@ -84533,10 +84550,10 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
84533
84550
  var nativeCreate$1 = _nativeCreate;
84534
84551
 
84535
84552
  /** Used for built-in method references. */
84536
- var objectProto = Object.prototype;
84553
+ var objectProto$2 = Object.prototype;
84537
84554
 
84538
84555
  /** Used to check objects for own properties. */
84539
- var hasOwnProperty = objectProto.hasOwnProperty;
84556
+ var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
84540
84557
 
84541
84558
  /**
84542
84559
  * Checks if a hash value for `key` exists.
@@ -84549,7 +84566,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
84549
84566
  */
84550
84567
  function hashHas$1(key) {
84551
84568
  var data = this.__data__;
84552
- return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty.call(data, key);
84569
+ return nativeCreate$1 ? (data[key] !== undefined) : hasOwnProperty$2.call(data, key);
84553
84570
  }
84554
84571
 
84555
84572
  var _hashHas = hashHas$1;
@@ -85149,7 +85166,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
85149
85166
 
85150
85167
  var Symbol$1 = _Symbol,
85151
85168
  arrayMap = _arrayMap,
85152
- isArray$1 = isArray_1,
85169
+ isArray$2 = isArray_1,
85153
85170
  isSymbol$1 = isSymbol_1;
85154
85171
 
85155
85172
  /** Used to convert symbols to primitives and strings. */
@@ -85169,7 +85186,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
85169
85186
  if (typeof value == 'string') {
85170
85187
  return value;
85171
85188
  }
85172
- if (isArray$1(value)) {
85189
+ if (isArray$2(value)) {
85173
85190
  // Recursively convert values (susceptible to call stack limits).
85174
85191
  return arrayMap(value, baseToString$1) + '';
85175
85192
  }
@@ -85211,7 +85228,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
85211
85228
 
85212
85229
  var toString_1 = toString$1;
85213
85230
 
85214
- var isArray = isArray_1,
85231
+ var isArray$1 = isArray_1,
85215
85232
  isKey = _isKey,
85216
85233
  stringToPath = _stringToPath,
85217
85234
  toString = toString_1;
@@ -85224,14 +85241,14 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
85224
85241
  * @param {Object} [object] The object to query keys on.
85225
85242
  * @returns {Array} Returns the cast property path array.
85226
85243
  */
85227
- function castPath$1(value, object) {
85228
- if (isArray(value)) {
85244
+ function castPath$2(value, object) {
85245
+ if (isArray$1(value)) {
85229
85246
  return value;
85230
85247
  }
85231
85248
  return isKey(value, object) ? [value] : stringToPath(toString(value));
85232
85249
  }
85233
85250
 
85234
- var _castPath = castPath$1;
85251
+ var _castPath = castPath$2;
85235
85252
 
85236
85253
  var isSymbol = isSymbol_1;
85237
85254
 
@@ -85242,7 +85259,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
85242
85259
  * @param {*} value The value to inspect.
85243
85260
  * @returns {string|symbol} Returns the key.
85244
85261
  */
85245
- function toKey$1(value) {
85262
+ function toKey$2(value) {
85246
85263
  if (typeof value == 'string' || isSymbol(value)) {
85247
85264
  return value;
85248
85265
  }
@@ -85250,10 +85267,10 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
85250
85267
  return (result == '0' && (1 / value) == -Infinity) ? '-0' : result;
85251
85268
  }
85252
85269
 
85253
- var _toKey = toKey$1;
85270
+ var _toKey = toKey$2;
85254
85271
 
85255
- var castPath = _castPath,
85256
- toKey = _toKey;
85272
+ var castPath$1 = _castPath,
85273
+ toKey$1 = _toKey;
85257
85274
 
85258
85275
  /**
85259
85276
  * The base implementation of `_.get` without support for default values.
@@ -85264,13 +85281,13 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
85264
85281
  * @returns {*} Returns the resolved value.
85265
85282
  */
85266
85283
  function baseGet$1(object, path) {
85267
- path = castPath(path, object);
85284
+ path = castPath$1(path, object);
85268
85285
 
85269
85286
  var index = 0,
85270
85287
  length = path.length;
85271
85288
 
85272
85289
  while (object != null && index < length) {
85273
- object = object[toKey(path[index++])];
85290
+ object = object[toKey$1(path[index++])];
85274
85291
  }
85275
85292
  return (index && index == length) ? object : undefined;
85276
85293
  }
@@ -85313,10 +85330,82 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
85313
85330
 
85314
85331
  const get$1 = /*@__PURE__*/getDefaultExportFromCjs(get_1);
85315
85332
 
85333
+ const toOneOfBranchPath = (path) => path.split(".").filter(Boolean);
85334
+ const getOneOfBranchPathKey = (path) => JSON.stringify(path);
85335
+ const matchesOneOfBranch = (value, branch) => {
85336
+ const matchEntries = Object.entries(branch.match || {});
85337
+ if (matchEntries.length === 0) {
85338
+ return false;
85339
+ }
85340
+ return matchEntries.every(([path, expectedValue]) => get$1(value, path) === expectedValue);
85341
+ };
85342
+ const collectOneOfBranchMatchKeys = (branches) => {
85343
+ const set = /* @__PURE__ */ new Set();
85344
+ branches.forEach((branch) => {
85345
+ Object.keys(branch.match || {}).forEach((key) => {
85346
+ set.add(key);
85347
+ });
85348
+ });
85349
+ return Array.from(set);
85350
+ };
85351
+ const collectInactiveOneOfBranchPaths = ({
85352
+ branches,
85353
+ activeBranch
85354
+ }) => {
85355
+ const visibleBranchPathKeys = /* @__PURE__ */ new Set([
85356
+ ...Object.keys(activeBranch.match || {}).map((matchPath) => getOneOfBranchPathKey(toOneOfBranchPath(matchPath))),
85357
+ ...(activeBranch.required || []).map((requiredPath) => getOneOfBranchPathKey(toOneOfBranchPath(requiredPath)))
85358
+ ]);
85359
+ const candidatePathKeys = /* @__PURE__ */ new Set();
85360
+ const candidatePaths = [];
85361
+ const addCandidatePath = (branchPath) => {
85362
+ const normalizedPath = toOneOfBranchPath(branchPath);
85363
+ const key = getOneOfBranchPathKey(normalizedPath);
85364
+ if (visibleBranchPathKeys.has(key) || candidatePathKeys.has(key)) {
85365
+ return;
85366
+ }
85367
+ candidatePathKeys.add(key);
85368
+ candidatePaths.push(normalizedPath);
85369
+ };
85370
+ (activeBranch.forbidden || []).forEach(addCandidatePath);
85371
+ branches.filter((branch) => branch !== activeBranch).forEach((branch) => {
85372
+ (branch.required || []).forEach(addCandidatePath);
85373
+ (branch.forbidden || []).forEach(addCandidatePath);
85374
+ });
85375
+ return candidatePaths;
85376
+ };
85377
+
85316
85378
  const prettyFieldPath = (name) => {
85317
85379
  return Array.isArray(name) ? name.map((segment) => String(segment)).join(".") : String(name);
85318
85380
  };
85319
85381
  const isEmptyValue = (value) => value === void 0 || value === "" || Array.isArray(value) && value.length === 0;
85382
+ const INT32_MIN = -2147483648;
85383
+ const INT32_MAX = 2147483647;
85384
+ const DATE_PATTERN = /^(\d{4})-(\d{2})-(\d{2})$/;
85385
+ const DATE_TIME_PATTERN = /^(\d{4})-(\d{2})-(\d{2})[Tt](\d{2}):(\d{2}):(\d{2})(\.\d+)?([Zz]|[+-](\d{2}):(\d{2}))$/;
85386
+ const isValidDateParts = (year, month, day) => {
85387
+ if (month < 1 || month > 12) return false;
85388
+ const isLeapYear = year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
85389
+ const daysByMonth = [31, isLeapYear ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
85390
+ return day >= 1 && day <= daysByMonth[month - 1];
85391
+ };
85392
+ const matchesDateFormat = (value) => {
85393
+ const match = DATE_PATTERN.exec(value);
85394
+ if (!match) return false;
85395
+ const [, year, month, day] = match.map(Number);
85396
+ return isValidDateParts(year, month, day);
85397
+ };
85398
+ const matchesDateTimeFormat = (value) => {
85399
+ const match = DATE_TIME_PATTERN.exec(value);
85400
+ if (!match) return false;
85401
+ const [, year, month, day, hour, minute, second, , , offsetHour, offsetMinute] = match;
85402
+ const parsedHour = Number(hour);
85403
+ const parsedMinute = Number(minute);
85404
+ const parsedSecond = Number(second);
85405
+ const parsedOffsetHour = offsetHour === void 0 ? void 0 : Number(offsetHour);
85406
+ const parsedOffsetMinute = offsetMinute === void 0 ? void 0 : Number(offsetMinute);
85407
+ return isValidDateParts(Number(year), Number(month), Number(day)) && parsedHour >= 0 && parsedHour <= 23 && parsedMinute >= 0 && parsedMinute <= 59 && parsedSecond >= 0 && parsedSecond <= 59 && (parsedOffsetHour === void 0 || parsedOffsetHour >= 0 && parsedOffsetHour <= 23) && (parsedOffsetMinute === void 0 || parsedOffsetMinute >= 0 && parsedOffsetMinute <= 59);
85408
+ };
85320
85409
  const isPresentForOneOf = (value) => {
85321
85410
  if (value === null) return true;
85322
85411
  if (value === void 0) return false;
@@ -85344,23 +85433,75 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
85344
85433
  }
85345
85434
  return getOneOfRequiredGroupsMessage(name, groups);
85346
85435
  };
85436
+ const formatOneOfBranchMatch = (branch) => {
85437
+ const matchEntries = Object.entries(branch.match || {});
85438
+ if (matchEntries.length === 0) {
85439
+ return "selected branch";
85440
+ }
85441
+ return matchEntries.map(([path, expectedValue]) => `${path}=${String(expectedValue)}`).join(", ");
85442
+ };
85443
+ const getOneOfBranchErrors = ({
85444
+ value,
85445
+ name,
85446
+ branches
85447
+ }) => {
85448
+ if (!isPresentForOneOf(value)) {
85449
+ return [];
85450
+ }
85451
+ const matchedBranches = branches.filter((branch) => matchesOneOfBranch(value, branch));
85452
+ if (matchedBranches.length === 0) {
85453
+ return [];
85454
+ }
85455
+ if (matchedBranches.length > 1) {
85456
+ const branchText2 = matchedBranches.map(formatOneOfBranchMatch).join(", ");
85457
+ return [`Please match exactly one branch for ${prettyFieldPath(name)}: ${branchText2}`];
85458
+ }
85459
+ const [activeBranch] = matchedBranches;
85460
+ const branchText = formatOneOfBranchMatch(activeBranch);
85461
+ const missingRequiredFields = (activeBranch.required || []).filter((path) => !isPresentForOneOf(get$1(value, path)));
85462
+ const presentForbiddenFields = (activeBranch.forbidden || []).filter((path) => isPresentForOneOf(get$1(value, path)));
85463
+ const errors = [];
85464
+ if (missingRequiredFields.length > 0) {
85465
+ errors.push(
85466
+ `Please provide required fields for ${prettyFieldPath(name)} when ${branchText}: ${formatOneOfGroup(
85467
+ missingRequiredFields
85468
+ )}`
85469
+ );
85470
+ }
85471
+ if (presentForbiddenFields.length > 0) {
85472
+ errors.push(
85473
+ `Please remove forbidden fields for ${prettyFieldPath(name)} when ${branchText}: ${formatOneOfGroup(
85474
+ presentForbiddenFields
85475
+ )}`
85476
+ );
85477
+ }
85478
+ return errors;
85479
+ };
85347
85480
  const getCurrentOneOfRequiredGroupState = ({
85348
85481
  path,
85349
85482
  nodeOneOfRequiredGroups,
85483
+ nodeOneOfBranches,
85350
85484
  value
85351
85485
  }) => {
85352
- if (!nodeOneOfRequiredGroups || nodeOneOfRequiredGroups.length === 0) {
85486
+ const hasRequiredGroups = Boolean(nodeOneOfRequiredGroups && nodeOneOfRequiredGroups.length > 0);
85487
+ const hasBranches = Boolean(nodeOneOfBranches && nodeOneOfBranches.length > 0);
85488
+ if (!hasRequiredGroups && !hasBranches) {
85353
85489
  return [];
85354
85490
  }
85355
- const error = getOneOfRequiredGroupsError({
85491
+ const requiredGroupError = hasRequiredGroups ? getOneOfRequiredGroupsError({
85356
85492
  value,
85357
85493
  name: path,
85358
- groups: nodeOneOfRequiredGroups
85359
- });
85494
+ groups: nodeOneOfRequiredGroups || []
85495
+ }) : void 0;
85496
+ const branchErrors = hasBranches ? getOneOfBranchErrors({
85497
+ value,
85498
+ name: path,
85499
+ branches: nodeOneOfBranches || []
85500
+ }) : [];
85360
85501
  return [
85361
85502
  {
85362
85503
  name: path,
85363
- errors: error ? [error] : []
85504
+ errors: [...requiredGroupError ? [requiredGroupError] : [], ...branchErrors]
85364
85505
  }
85365
85506
  ];
85366
85507
  };
@@ -85375,6 +85516,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
85375
85516
  const currentState = getCurrentOneOfRequiredGroupState({
85376
85517
  path,
85377
85518
  nodeOneOfRequiredGroups: node.oneOfRequiredGroups,
85519
+ nodeOneOfBranches: node.oneOfBranches,
85378
85520
  value
85379
85521
  });
85380
85522
  const nestedObjectStates = node.properties && value && typeof value === "object" && !Array.isArray(value) ? collectOneOfRequiredGroupStates({
@@ -85386,6 +85528,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
85386
85528
  ...getCurrentOneOfRequiredGroupState({
85387
85529
  path: [...path, index],
85388
85530
  nodeOneOfRequiredGroups: node.items?.oneOfRequiredGroups,
85531
+ nodeOneOfBranches: node.items?.oneOfBranches,
85389
85532
  value: get$1(values, [...path, index])
85390
85533
  }),
85391
85534
  ...node.items?.properties ? collectOneOfRequiredGroupStates({
@@ -85416,6 +85559,145 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
85416
85559
  }
85417
85560
  return { required: true, message };
85418
85561
  };
85562
+ const getPatternRule = (pattern, name) => {
85563
+ if (!pattern) {
85564
+ return void 0;
85565
+ }
85566
+ let regexp;
85567
+ const fieldPath = prettyFieldPath(name);
85568
+ try {
85569
+ regexp = new RegExp(pattern);
85570
+ } catch (error) {
85571
+ console.warn("[BlackholeForm] OpenAPI pattern cannot be compiled as JavaScript RegExp", {
85572
+ fieldPath,
85573
+ pattern,
85574
+ error
85575
+ });
85576
+ return void 0;
85577
+ }
85578
+ const message = `Value must match pattern for ${fieldPath}: ${pattern}`;
85579
+ return {
85580
+ validator: async (_, value) => {
85581
+ if (value === void 0 || value === null || value === "") return;
85582
+ if (typeof value !== "string") return;
85583
+ if (!regexp.test(value)) {
85584
+ throw new Error(message);
85585
+ }
85586
+ }
85587
+ };
85588
+ };
85589
+ const getStringLengthRule = ({
85590
+ minLength,
85591
+ maxLength,
85592
+ name
85593
+ }) => {
85594
+ if (minLength === void 0 && maxLength === void 0) {
85595
+ return void 0;
85596
+ }
85597
+ let message = `Value must be at most ${maxLength} characters for ${prettyFieldPath(name)}`;
85598
+ if (minLength !== void 0 && maxLength !== void 0) {
85599
+ message = `Value must be between ${minLength} and ${maxLength} characters for ${prettyFieldPath(name)}`;
85600
+ } else if (minLength !== void 0) {
85601
+ message = `Value must be at least ${minLength} characters for ${prettyFieldPath(name)}`;
85602
+ }
85603
+ return {
85604
+ validator: async (_, value) => {
85605
+ if (value === void 0 || value === null || value === "") return;
85606
+ if (typeof value !== "string") return;
85607
+ if (minLength !== void 0 && value.length < minLength) {
85608
+ throw new Error(message);
85609
+ }
85610
+ if (maxLength !== void 0 && value.length > maxLength) {
85611
+ throw new Error(message);
85612
+ }
85613
+ }
85614
+ };
85615
+ };
85616
+ const getStringFormatRule = (format, name) => {
85617
+ if (!format || format !== "date" && format !== "date-time") {
85618
+ return void 0;
85619
+ }
85620
+ const message = format === "date" ? `Value must match date format for ${prettyFieldPath(name)}: YYYY-MM-DD` : `Value must match date-time format for ${prettyFieldPath(name)}: RFC 3339 date-time`;
85621
+ return {
85622
+ validator: async (_, value) => {
85623
+ if (value === void 0 || value === null || value === "") return;
85624
+ if (typeof value !== "string") return;
85625
+ const matchesFormat = format === "date" ? matchesDateFormat(value) : matchesDateTimeFormat(value);
85626
+ if (!matchesFormat) {
85627
+ throw new Error(message);
85628
+ }
85629
+ }
85630
+ };
85631
+ };
85632
+ const getArrayItemsRule = ({
85633
+ minItems,
85634
+ maxItems,
85635
+ name
85636
+ }) => {
85637
+ if (minItems === void 0 && maxItems === void 0) {
85638
+ return void 0;
85639
+ }
85640
+ let message = `Value must contain at most ${maxItems} items for ${prettyFieldPath(name)}`;
85641
+ if (minItems !== void 0 && maxItems !== void 0) {
85642
+ message = `Value must contain between ${minItems} and ${maxItems} items for ${prettyFieldPath(name)}`;
85643
+ } else if (minItems !== void 0) {
85644
+ message = `Value must contain at least ${minItems} items for ${prettyFieldPath(name)}`;
85645
+ }
85646
+ return {
85647
+ validator: async (_, value) => {
85648
+ if (value === void 0 || value === null) return;
85649
+ if (!Array.isArray(value)) return;
85650
+ if (minItems !== void 0 && value.length < minItems) {
85651
+ throw new Error(message);
85652
+ }
85653
+ if (maxItems !== void 0 && value.length > maxItems) {
85654
+ throw new Error(message);
85655
+ }
85656
+ }
85657
+ };
85658
+ };
85659
+ const getNumberFormatRule = (format, name) => {
85660
+ if (format !== "int32") {
85661
+ return void 0;
85662
+ }
85663
+ const message = `Value must be a 32-bit signed integer for ${prettyFieldPath(name)}`;
85664
+ return {
85665
+ validator: async (_, value) => {
85666
+ if (value === void 0 || value === null || value === "") return;
85667
+ if (typeof value !== "number") return;
85668
+ if (!Number.isInteger(value) || value < INT32_MIN || value > INT32_MAX) {
85669
+ throw new Error(message);
85670
+ }
85671
+ }
85672
+ };
85673
+ };
85674
+ const getNumberRangeRule = ({
85675
+ minimum,
85676
+ maximum,
85677
+ name
85678
+ }) => {
85679
+ if (minimum === void 0 && maximum === void 0) {
85680
+ return void 0;
85681
+ }
85682
+ let message = `Value must be at most ${maximum} for ${prettyFieldPath(name)}`;
85683
+ if (minimum !== void 0 && maximum !== void 0) {
85684
+ message = `Value must be between ${minimum} and ${maximum} for ${prettyFieldPath(name)}`;
85685
+ } else if (minimum !== void 0) {
85686
+ message = `Value must be at least ${minimum} for ${prettyFieldPath(name)}`;
85687
+ }
85688
+ return {
85689
+ validator: async (_, value) => {
85690
+ if (value === void 0 || value === null || value === "") return;
85691
+ if (typeof value !== "number") return;
85692
+ if (minimum !== void 0 && value < minimum) {
85693
+ throw new Error(message);
85694
+ }
85695
+ if (maximum !== void 0 && value > maximum) {
85696
+ throw new Error(message);
85697
+ }
85698
+ }
85699
+ };
85700
+ };
85419
85701
 
85420
85702
  const FormListInput = ({
85421
85703
  name,
@@ -85431,7 +85713,9 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
85431
85713
  customProps,
85432
85714
  urlParams,
85433
85715
  onRemoveByMinus,
85434
- defaultValue
85716
+ defaultValue,
85717
+ minItems,
85718
+ maxItems
85435
85719
  }) => {
85436
85720
  const designNewLayout = useDesignNewLayout();
85437
85721
  const onValuesChangeCallBack = useOnValuesChangeCallback();
@@ -85443,6 +85727,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
85443
85727
  const fixedName = name === "nodeName" ? "nodeNameBecauseOfSuddenBug" : name;
85444
85728
  const formFieldName = arrName || fixedName;
85445
85729
  const defaultBtn = useDefaultValueButton(formFieldName, defaultValue);
85730
+ const arrayItemsRule = getArrayItemsRule({ minItems, maxItems, name });
85446
85731
  const fullFieldPath = normalizeNameToPath(fixedName);
85447
85732
  const baseForRelative = listItemBasePath(fullFieldPath);
85448
85733
  const relatedPath = customProps.relatedValuePath ? resolveFormPath(customProps.relatedValuePath, baseForRelative) : void 0;
@@ -85578,7 +85863,10 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
85578
85863
  ResetedFormItem$1,
85579
85864
  {
85580
85865
  name: formFieldName,
85581
- rules: [getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name)],
85866
+ rules: [
85867
+ getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name),
85868
+ ...arrayItemsRule ? [arrayItemsRule] : []
85869
+ ],
85582
85870
  validateTrigger: "onBlur",
85583
85871
  hasFeedback: designNewLayout ? { icons: feedbackIcons } : true,
85584
85872
  style: { flex: 1 },
@@ -85989,15 +86277,42 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
85989
86277
  );
85990
86278
  };
85991
86279
 
86280
+ const isNamespaceAvailable = (candidate, namespaceData) => namespaceData.selectValues.some((option) => option.value === candidate);
85992
86281
  const FormNamespaceInput = ({
85993
86282
  name,
85994
86283
  namespaceData,
85995
86284
  isAdditionalProperties,
85996
86285
  removeField,
85997
- defaultValue
86286
+ defaultValue,
86287
+ contextNamespace
85998
86288
  }) => {
85999
86289
  const designNewLayout = useDesignNewLayout();
86290
+ const form = antd.Form.useFormInstance();
86000
86291
  const defaultBtn = useDefaultValueButton(name, defaultValue);
86292
+ const cascadeAppliedRef = React$1.useRef(false);
86293
+ React$1.useEffect(() => {
86294
+ if (cascadeAppliedRef.current) return;
86295
+ if (!namespaceData) return;
86296
+ const currentValue = form.getFieldValue(name);
86297
+ if (currentValue !== void 0 && currentValue !== null && currentValue !== "") {
86298
+ cascadeAppliedRef.current = true;
86299
+ return;
86300
+ }
86301
+ const defaultIsValid = defaultValue !== void 0 && isNamespaceAvailable(defaultValue, namespaceData);
86302
+ if (defaultValue !== void 0 && !defaultIsValid) {
86303
+ console.warn(
86304
+ `[FormNamespaceInput] Default namespace "${defaultValue}" is not available in this cluster for ${prettyFieldPath(
86305
+ name
86306
+ )}, falling back to URL context`
86307
+ );
86308
+ }
86309
+ if (defaultIsValid) {
86310
+ form.setFieldValue(name, defaultValue);
86311
+ } else if (contextNamespace !== void 0 && isNamespaceAvailable(contextNamespace, namespaceData)) {
86312
+ form.setFieldValue(name, contextNamespace);
86313
+ }
86314
+ cascadeAppliedRef.current = true;
86315
+ }, [namespaceData, defaultValue, contextNamespace, form, name]);
86001
86316
  if (!namespaceData) {
86002
86317
  return null;
86003
86318
  }
@@ -86080,7 +86395,11 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86080
86395
  onRemoveByMinus,
86081
86396
  defaultValue,
86082
86397
  example,
86083
- nullable
86398
+ nullable,
86399
+ format,
86400
+ pattern,
86401
+ minLength,
86402
+ maxLength
86084
86403
  }) => {
86085
86404
  const designNewLayout = useDesignNewLayout();
86086
86405
  const fixedName = name === "nodeName" ? "nodeNameBecauseOfSuddenBug" : name;
@@ -86088,6 +86407,9 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86088
86407
  const defaultBtn = useDefaultValueButton(formFieldName, defaultValue, nullable);
86089
86408
  const nullBtn = useNullToggleButton(formFieldName, nullable);
86090
86409
  const exampleTooltip = getExampleTooltip(defaultValue, example);
86410
+ const formatRule = getStringFormatRule(format, name);
86411
+ const patternRule = getPatternRule(pattern, name);
86412
+ const lengthRule = getStringLengthRule({ minLength, maxLength, name });
86091
86413
  const title = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
86092
86414
  getStringByName(name),
86093
86415
  required?.includes(getStringByName(name)) && /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Typography.Text, { type: "danger", children: "*" }),
@@ -86117,7 +86439,10 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86117
86439
  {
86118
86440
  name: formFieldName,
86119
86441
  rules: [
86120
- getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name, nullable)
86442
+ getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name, nullable),
86443
+ ...formatRule ? [formatRule] : [],
86444
+ ...patternRule ? [patternRule] : [],
86445
+ ...lengthRule ? [lengthRule] : []
86121
86446
  ],
86122
86447
  validateTrigger: "onBlur",
86123
86448
  hasFeedback: designNewLayout ? { icons: feedbackIcons } : true,
@@ -86156,7 +86481,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86156
86481
  const MarginBottom = styled.div`
86157
86482
  margin-bottom: 8px;
86158
86483
  `;
86159
- const Styled$l = {
86484
+ const Styled$m = {
86160
86485
  MarginBottom
86161
86486
  };
86162
86487
 
@@ -86175,7 +86500,11 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86175
86500
  isBase64,
86176
86501
  defaultValue,
86177
86502
  example,
86178
- nullable
86503
+ nullable,
86504
+ format,
86505
+ pattern,
86506
+ minLength,
86507
+ maxLength
86179
86508
  }) => {
86180
86509
  const designNewLayout = useDesignNewLayout();
86181
86510
  const placeholder = buildPlaceholder(name, defaultValue, example);
@@ -86186,6 +86515,9 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86186
86515
  const form = antd.Form.useFormInstance();
86187
86516
  const defaultBtn = useDefaultValueButton(formFieldName, defaultValue, nullable);
86188
86517
  const nullBtn = useNullToggleButton(formFieldName, nullable);
86518
+ const formatRule = !isBase64 ? getStringFormatRule(format, name) : void 0;
86519
+ const patternRule = !isBase64 ? getPatternRule(pattern, name) : void 0;
86520
+ const lengthRule = !isBase64 ? getStringLengthRule({ minLength, maxLength, name }) : void 0;
86189
86521
  const title = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
86190
86522
  getStringByName(name),
86191
86523
  required?.includes(getStringByName(name)) && /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Typography.Text, { type: "danger", children: "*" }),
@@ -86224,7 +86556,10 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86224
86556
  {
86225
86557
  name: arrName || fixedName,
86226
86558
  rules: [
86227
- getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name, nullable)
86559
+ getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name, nullable),
86560
+ ...formatRule ? [formatRule] : [],
86561
+ ...patternRule ? [patternRule] : [],
86562
+ ...lengthRule ? [lengthRule] : []
86228
86563
  ],
86229
86564
  validateTrigger: "onBlur",
86230
86565
  hasFeedback: designNewLayout ? { icons: feedbackIcons } : true,
@@ -86243,7 +86578,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86243
86578
  },
86244
86579
  arrKey !== void 0 ? arrKey : Array.isArray(name) ? name.slice(-1)[0] : name
86245
86580
  ),
86246
- isBase64 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$l.MarginBottom, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
86581
+ isBase64 && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$m.MarginBottom, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
86247
86582
  antd.Input.TextArea,
86248
86583
  {
86249
86584
  placeholder,
@@ -86270,7 +86605,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86270
86605
  cursor: pointer;
86271
86606
  padding-top: 11px;
86272
86607
  `;
86273
- const Styled$k = {
86608
+ const Styled$l = {
86274
86609
  SwitchAndCrossContainer,
86275
86610
  CrossContainer
86276
86611
  };
@@ -86298,7 +86633,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86298
86633
  onRemoveByMinus && /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Button, { size: "small", type: "text", onClick: onRemoveByMinus, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MinusIcon, {}) })
86299
86634
  ] })
86300
86635
  ] }),
86301
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$k.SwitchAndCrossContainer, { children: [
86636
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$l.SwitchAndCrossContainer, { children: [
86302
86637
  /* @__PURE__ */ jsxRuntimeExports.jsx(
86303
86638
  ResetedFormItem$1,
86304
86639
  {
@@ -86317,7 +86652,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86317
86652
  }
86318
86653
  ),
86319
86654
  !defaultBtn.visible && /* @__PURE__ */ jsxRuntimeExports.jsx(
86320
- Styled$k.CrossContainer,
86655
+ Styled$l.CrossContainer,
86321
86656
  {
86322
86657
  onClick: () => {
86323
86658
  if (makeValueUndefined) {
@@ -86416,13 +86751,18 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86416
86751
  onRemoveByMinus,
86417
86752
  defaultValue,
86418
86753
  example,
86419
- nullable
86754
+ nullable,
86755
+ format,
86756
+ minimum,
86757
+ maximum
86420
86758
  }) => {
86421
86759
  const designNewLayout = useDesignNewLayout();
86422
86760
  const formFieldName = arrName || name;
86423
86761
  const defaultBtn = useDefaultValueButton(formFieldName, defaultValue, nullable);
86424
86762
  const nullBtn = useNullToggleButton(formFieldName, nullable);
86425
86763
  const exampleTooltip = getExampleTooltip(defaultValue, example);
86764
+ const formatRule = getNumberFormatRule(format, name);
86765
+ const rangeRule = getNumberRangeRule({ minimum, maximum, name });
86426
86766
  const title = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
86427
86767
  getStringByName(name),
86428
86768
  required?.includes(getStringByName(name)) && /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Typography.Text, { type: "danger", children: "*" }),
@@ -86452,7 +86792,9 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86452
86792
  {
86453
86793
  name: formFieldName,
86454
86794
  rules: [
86455
- getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name, nullable)
86795
+ getRequiredRule(forceNonRequired === false && !!required?.includes(getStringByName(name)), name, nullable),
86796
+ ...formatRule ? [formatRule] : [],
86797
+ ...rangeRule ? [rangeRule] : []
86456
86798
  ],
86457
86799
  validateTrigger: "onBlur",
86458
86800
  hasFeedback: designNewLayout ? { icons: feedbackIcons } : true,
@@ -86461,6 +86803,8 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86461
86803
  {
86462
86804
  placeholder: buildPlaceholder(name, defaultValue, example),
86463
86805
  step: isNumber ? 0.1 : 1,
86806
+ min: minimum,
86807
+ max: maximum,
86464
86808
  disabled: nullBtn.visible && nullBtn.isNull
86465
86809
  }
86466
86810
  )
@@ -86483,6 +86827,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86483
86827
  collapseTitle,
86484
86828
  collapseFormName,
86485
86829
  oneOfRequiredGroups,
86830
+ oneOfBranches,
86486
86831
  validationErrors,
86487
86832
  data,
86488
86833
  inputProps,
@@ -86491,6 +86836,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86491
86836
  const designNewLayout = useDesignNewLayout();
86492
86837
  const form = antd.Form.useFormInstance();
86493
86838
  const [additionalPropValue, setAddditionalPropValue] = React$1.useState();
86839
+ const hasOneOfValidation = Boolean(oneOfRequiredGroups && oneOfRequiredGroups.length > 0) || Boolean(oneOfBranches && oneOfBranches.length > 0);
86494
86840
  const focusFieldInput = (path) => {
86495
86841
  if (typeof window === "undefined" || typeof document === "undefined") {
86496
86842
  return;
@@ -86554,7 +86900,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86554
86900
  persistedCheckbox: inputProps ? void 0 : /* @__PURE__ */ jsxRuntimeExports.jsx(PersistedCheckbox, { formName: persistName || name, persistedControls, type: "obj" }),
86555
86901
  children: [
86556
86902
  data,
86557
- oneOfRequiredGroups && oneOfRequiredGroups.length > 0 ? /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Form.ErrorList, { errors: validationErrors }) : null,
86903
+ hasOneOfValidation ? /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Form.ErrorList, { errors: validationErrors }) : null,
86558
86904
  inputProps && /* @__PURE__ */ jsxRuntimeExports.jsx(
86559
86905
  antd.Input,
86560
86906
  {
@@ -86607,7 +86953,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86607
86953
  border-radius: 8px;
86608
86954
  }
86609
86955
  `;
86610
- const Styled$j = {
86956
+ const Styled$k = {
86611
86957
  Container: Container$2
86612
86958
  };
86613
86959
 
@@ -86661,7 +87007,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86661
87007
  }
86662
87008
  }
86663
87009
  }, [yamlText, modelUri]);
86664
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$j.Container, { $colorBorder: token.colorBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
87010
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$k.Container, { $colorBorder: token.colorBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
86665
87011
  Ft$1,
86666
87012
  {
86667
87013
  language: "yaml",
@@ -86944,7 +87290,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86944
87290
  font-size: 16px;
86945
87291
  line-height: 24px;
86946
87292
  `;
86947
- const Styled$i = {
87293
+ const Styled$j = {
86948
87294
  ResetedFormList,
86949
87295
  Container: Container$1,
86950
87296
  OverflowContainer: OverflowContainer$1,
@@ -86968,7 +87314,12 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86968
87314
  onRemoveByMinus,
86969
87315
  defaultValue,
86970
87316
  example,
86971
- nullable
87317
+ nullable,
87318
+ format,
87319
+ pattern,
87320
+ minLength,
87321
+ maxLength,
87322
+ urlParams
86972
87323
  }) => {
86973
87324
  if (Array.isArray(name) && name.length === 2 && name[0] === "metadata" && name[1] === "namespace" && namespaceData) {
86974
87325
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -86977,7 +87328,9 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86977
87328
  name,
86978
87329
  namespaceData,
86979
87330
  isAdditionalProperties,
86980
- removeField
87331
+ removeField,
87332
+ defaultValue,
87333
+ contextNamespace: urlParams?.namespace
86981
87334
  },
86982
87335
  `${arrKey}-${JSON.stringify(name)}-namespace`
86983
87336
  );
@@ -86998,7 +87351,11 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
86998
87351
  onRemoveByMinus,
86999
87352
  defaultValue,
87000
87353
  example,
87001
- nullable
87354
+ nullable,
87355
+ format,
87356
+ pattern,
87357
+ minLength,
87358
+ maxLength
87002
87359
  },
87003
87360
  `${arrKey}-${JSON.stringify(name)}`
87004
87361
  );
@@ -87057,7 +87414,10 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87057
87414
  onRemoveByMinus,
87058
87415
  defaultValue,
87059
87416
  example,
87060
- nullable
87417
+ nullable,
87418
+ format,
87419
+ minimum,
87420
+ maximum
87061
87421
  }) => {
87062
87422
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
87063
87423
  FormNumberInput,
@@ -87076,7 +87436,10 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87076
87436
  onRemoveByMinus,
87077
87437
  defaultValue,
87078
87438
  example,
87079
- nullable
87439
+ nullable,
87440
+ format,
87441
+ minimum,
87442
+ maximum
87080
87443
  },
87081
87444
  `${arrKey}-${JSON.stringify(name)}`
87082
87445
  );
@@ -87129,7 +87492,11 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87129
87492
  isBase64,
87130
87493
  defaultValue,
87131
87494
  example,
87132
- nullable
87495
+ nullable,
87496
+ format,
87497
+ pattern,
87498
+ minLength,
87499
+ maxLength
87133
87500
  }) => {
87134
87501
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
87135
87502
  FormStringMultilineInput,
@@ -87148,7 +87515,11 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87148
87515
  isBase64,
87149
87516
  defaultValue,
87150
87517
  example,
87151
- nullable
87518
+ nullable,
87519
+ format,
87520
+ pattern,
87521
+ minLength,
87522
+ maxLength
87152
87523
  },
87153
87524
  `${arrKey}-${JSON.stringify(name)}`
87154
87525
  );
@@ -87167,7 +87538,9 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87167
87538
  customProps,
87168
87539
  urlParams,
87169
87540
  onRemoveByMinus,
87170
- defaultValue
87541
+ defaultValue,
87542
+ minItems,
87543
+ maxItems
87171
87544
  }) => {
87172
87545
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
87173
87546
  FormListInput,
@@ -87185,7 +87558,9 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87185
87558
  customProps,
87186
87559
  urlParams,
87187
87560
  onRemoveByMinus,
87188
- defaultValue
87561
+ defaultValue,
87562
+ minItems,
87563
+ maxItems
87189
87564
  },
87190
87565
  `${arrKey}-${JSON.stringify(name)}`
87191
87566
  );
@@ -87240,6 +87615,21 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87240
87615
  onRemoveByMinus
87241
87616
  }) => {
87242
87617
  if (schema.type === "array") {
87618
+ const requiredArrayRule = !forceNonRequired && required?.includes(getStringByName(name)) ? {
87619
+ validator: async (_, value) => {
87620
+ if (!Array.isArray(value) || value.length < 1) {
87621
+ return Promise.reject(new Error(`Please enter ${prettyFieldPath(name)}`));
87622
+ }
87623
+ }
87624
+ } : void 0;
87625
+ const arrayItemsRule = getArrayItemsRule({
87626
+ minItems: schema.minItems,
87627
+ maxItems: schema.maxItems,
87628
+ name
87629
+ });
87630
+ const arrayRules = [];
87631
+ if (requiredArrayRule) arrayRules.push(requiredArrayRule);
87632
+ if (arrayItemsRule) arrayRules.push(arrayItemsRule);
87243
87633
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(HiddenContainer$1, { name, children: [
87244
87634
  /* @__PURE__ */ jsxRuntimeExports.jsx(
87245
87635
  FormArrayHeader,
@@ -87255,18 +87645,10 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87255
87645
  }
87256
87646
  ),
87257
87647
  /* @__PURE__ */ jsxRuntimeExports.jsx(
87258
- Styled$i.ResetedFormList,
87648
+ Styled$j.ResetedFormList,
87259
87649
  {
87260
87650
  name: arrName || name,
87261
- rules: !forceNonRequired && required?.includes(getStringByName(name)) ? [
87262
- {
87263
- validator: async (_, value) => {
87264
- if (!value || value.length < 1) {
87265
- return Promise.reject(new Error(`Please enter ${prettyFieldPath(name)}`));
87266
- }
87267
- }
87268
- }
87269
- ] : void 0,
87651
+ rules: arrayRules.length > 0 ? arrayRules : void 0,
87270
87652
  children: (fields, { add, remove }, { errors }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
87271
87653
  fields.map((field) => {
87272
87654
  const itemSchema = schema.items;
@@ -87285,7 +87667,12 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87285
87667
  description: description2,
87286
87668
  removeField,
87287
87669
  persistedControls,
87288
- onRemoveByMinus: () => remove(field.name)
87670
+ onRemoveByMinus: () => remove(field.name),
87671
+ format: itemSchema?.format,
87672
+ pattern: itemSchema?.pattern,
87673
+ minLength: itemSchema?.minLength,
87674
+ maxLength: itemSchema?.maxLength,
87675
+ urlParams
87289
87676
  }),
87290
87677
  (fieldType === "number" || fieldType === "integer") && getNumberFormItemFromSwagger({
87291
87678
  isNumber: fieldType === "number",
@@ -87297,7 +87684,10 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87297
87684
  description: description2,
87298
87685
  removeField,
87299
87686
  persistedControls,
87300
- onRemoveByMinus: () => remove(field.name)
87687
+ onRemoveByMinus: () => remove(field.name),
87688
+ format: itemSchema?.format,
87689
+ minimum: itemSchema?.minimum,
87690
+ maximum: itemSchema?.maximum
87301
87691
  }),
87302
87692
  (fieldType === "rangeInputCpu" || fieldType === "rangeInputMemory") && getRangeInputFormItemFromSwagger({
87303
87693
  name: Array.isArray(name) ? [...name, field.name] : [name, field.name],
@@ -87323,7 +87713,9 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87323
87713
  persistedControls,
87324
87714
  customProps: schema.items.customProps,
87325
87715
  urlParams,
87326
- onRemoveByMinus: () => remove(field.name)
87716
+ onRemoveByMinus: () => remove(field.name),
87717
+ minItems: itemSchema?.minItems,
87718
+ maxItems: itemSchema?.maxItems
87327
87719
  }),
87328
87720
  (fieldType === "multilineString" || fieldType === "multilineStringBase64") && getStringMultilineFormItemFromSwagger({
87329
87721
  name: Array.isArray(name) ? [...name, field.name] : [name, field.name],
@@ -87335,7 +87727,11 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87335
87727
  removeField,
87336
87728
  persistedControls,
87337
87729
  onRemoveByMinus: () => remove(field.name),
87338
- isBase64: fieldType === "multilineStringBase64"
87730
+ isBase64: fieldType === "multilineStringBase64",
87731
+ format: itemSchema?.format,
87732
+ pattern: itemSchema?.pattern,
87733
+ minLength: itemSchema?.minLength,
87734
+ maxLength: itemSchema?.maxLength
87339
87735
  }),
87340
87736
  fieldType === "boolean" && getBooleanFormItemFromSwagger({
87341
87737
  name: Array.isArray(name) ? [...name, field.name] : [name, field.name],
@@ -87370,6 +87766,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87370
87766
  // merging properties near items by this
87371
87767
  properties: deepMerge(entry.properties, additionalProperties?.[field.key]?.properties || {}),
87372
87768
  oneOfRequiredGroups: entry.oneOfRequiredGroups,
87769
+ oneOfBranches: entry.oneOfBranches,
87373
87770
  name: Array.isArray(name) ? [...name, field.name] : [name, field.name],
87374
87771
  arrKey: field.key,
87375
87772
  arrName: [field.name],
@@ -87398,6 +87795,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87398
87795
  {
87399
87796
  type: "text",
87400
87797
  size: "small",
87798
+ disabled: schema.maxItems !== void 0 && fields.length >= schema.maxItems,
87401
87799
  onClick: () => {
87402
87800
  add();
87403
87801
  },
@@ -87497,7 +87895,12 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87497
87895
  persistedControls,
87498
87896
  defaultValue: extractStringDefault(properties[el].default),
87499
87897
  example: extractStringDefault(properties[el].example),
87500
- nullable: properties[el].nullable
87898
+ nullable: properties[el].nullable,
87899
+ format: properties[el].format,
87900
+ pattern: properties[el].pattern,
87901
+ minLength: properties[el].minLength,
87902
+ maxLength: properties[el].maxLength,
87903
+ urlParams
87501
87904
  });
87502
87905
  }
87503
87906
  if (properties[el].type === "number" || properties[el].type === "integer") {
@@ -87516,7 +87919,10 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87516
87919
  persistedControls,
87517
87920
  defaultValue: extractNumberDefault(properties[el].default),
87518
87921
  example: extractNumberDefault(properties[el].example),
87519
- nullable: properties[el].nullable
87922
+ nullable: properties[el].nullable,
87923
+ format: properties[el].format,
87924
+ minimum: properties[el].minimum,
87925
+ maximum: properties[el].maximum
87520
87926
  });
87521
87927
  }
87522
87928
  if (properties[el].type === "rangeInputCpu" || properties[el].type === "rangeInputMemory") {
@@ -87549,7 +87955,9 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87549
87955
  removeField,
87550
87956
  persistedControls,
87551
87957
  urlParams,
87552
- defaultValue: extractListInputDefault(properties[el].default)
87958
+ defaultValue: extractListInputDefault(properties[el].default),
87959
+ minItems: properties[el].minItems,
87960
+ maxItems: properties[el].maxItems
87553
87961
  });
87554
87962
  }
87555
87963
  if (properties[el].type === "multilineString" || properties[el].type === "multilineStringBase64") {
@@ -87568,7 +87976,11 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87568
87976
  isBase64: properties[el].type === "multilineStringBase64",
87569
87977
  defaultValue: extractStringDefault(properties[el].default),
87570
87978
  example: extractStringDefault(properties[el].example),
87571
- nullable: properties[el].nullable
87979
+ nullable: properties[el].nullable,
87980
+ format: properties[el].format,
87981
+ pattern: properties[el].pattern,
87982
+ minLength: properties[el].minLength,
87983
+ maxLength: properties[el].maxLength
87572
87984
  });
87573
87985
  }
87574
87986
  if (properties[el].type === "boolean") {
@@ -87653,6 +88065,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87653
88065
  return getObjectFormItemFromSwagger({
87654
88066
  properties: properties[el].properties,
87655
88067
  oneOfRequiredGroups: properties[el].oneOfRequiredGroups,
88068
+ oneOfBranches: properties[el].oneOfBranches,
87656
88069
  name: Array.isArray(name) ? [...name, String(el)] : [name, String(el)],
87657
88070
  arrKey,
87658
88071
  arrName: Array.isArray(arrName) ? [...arrName, String(el)] : void 0,
@@ -87681,6 +88094,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87681
88094
  const getObjectFormItemFromSwagger = ({
87682
88095
  properties,
87683
88096
  oneOfRequiredGroups,
88097
+ oneOfBranches,
87684
88098
  objectValidationErrors,
87685
88099
  name,
87686
88100
  arrKey,
@@ -87732,6 +88146,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87732
88146
  selfRequired,
87733
88147
  description,
87734
88148
  oneOfRequiredGroups,
88149
+ oneOfBranches,
87735
88150
  validationErrors: objectValidationErrors?.[pathKey$1(Array.isArray(name) ? name : [name])],
87736
88151
  isAdditionalProperties,
87737
88152
  removeField,
@@ -87888,6 +88303,370 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
87888
88303
  const toStringPath = (p) => isPathArray(p) ? p.map(String) : [String(p)];
87889
88304
  const isPrefix = (full, prefix) => prefix.length <= full.length && prefix.every((seg, i) => full[i] === seg);
87890
88305
 
88306
+ const isPresentForOneOfBranchVisibility = (value) => {
88307
+ if (value === null) return true;
88308
+ if (value === void 0) return false;
88309
+ if (typeof value === "string") return value.length > 0;
88310
+ if (Array.isArray(value)) return value.length > 0;
88311
+ if (typeof value === "object") return Object.keys(value).length > 0;
88312
+ return true;
88313
+ };
88314
+ const getCurrentNodeHiddenPaths = ({
88315
+ node,
88316
+ value,
88317
+ path
88318
+ }) => {
88319
+ if (!node.oneOfBranches || node.oneOfBranches.length === 0) {
88320
+ return [];
88321
+ }
88322
+ const matchedBranches = node.oneOfBranches.filter((branch) => matchesOneOfBranch(value, branch));
88323
+ if (matchedBranches.length !== 1) {
88324
+ return [];
88325
+ }
88326
+ const [activeBranch] = matchedBranches;
88327
+ return collectInactiveOneOfBranchPaths({ branches: node.oneOfBranches, activeBranch }).filter((branchPath) => !isPresentForOneOfBranchVisibility(get$1(value, branchPath))).map((branchPath) => [...path, ...branchPath]);
88328
+ };
88329
+ const collectOneOfBranchHiddenPaths = ({
88330
+ properties,
88331
+ values,
88332
+ currentPath = []
88333
+ }) => {
88334
+ return Object.entries(properties).flatMap(([key, node]) => {
88335
+ const path = [...currentPath, key];
88336
+ const value = get$1(values, path);
88337
+ const currentHiddenPaths = getCurrentNodeHiddenPaths({
88338
+ node,
88339
+ value,
88340
+ path
88341
+ });
88342
+ const nestedObjectHiddenPaths = node.properties ? collectOneOfBranchHiddenPaths({
88343
+ properties: node.properties,
88344
+ values,
88345
+ currentPath: path
88346
+ }) : [];
88347
+ const nestedArrayHiddenPaths = node.type === "array" && node.items && Array.isArray(value) ? value.flatMap((_, index) => {
88348
+ const itemPath = [...path, index];
88349
+ const itemValue = get$1(values, itemPath);
88350
+ const itemHiddenPaths = getCurrentNodeHiddenPaths({
88351
+ node: node.items,
88352
+ value: itemValue,
88353
+ path: itemPath
88354
+ });
88355
+ return [
88356
+ ...itemHiddenPaths,
88357
+ ...node.items?.properties ? collectOneOfBranchHiddenPaths({
88358
+ properties: node.items.properties,
88359
+ values,
88360
+ currentPath: itemPath
88361
+ }) : []
88362
+ ];
88363
+ }) : [];
88364
+ return [...currentHiddenPaths, ...nestedObjectHiddenPaths, ...nestedArrayHiddenPaths];
88365
+ });
88366
+ };
88367
+
88368
+ /** Used for built-in method references. */
88369
+
88370
+ var objectProto$1 = Object.prototype;
88371
+
88372
+ /** Used to check objects for own properties. */
88373
+ var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
88374
+
88375
+ /**
88376
+ * The base implementation of `_.has` without support for deep paths.
88377
+ *
88378
+ * @private
88379
+ * @param {Object} [object] The object to query.
88380
+ * @param {Array|string} key The key to check.
88381
+ * @returns {boolean} Returns `true` if `key` exists, else `false`.
88382
+ */
88383
+ function baseHas$1(object, key) {
88384
+ return object != null && hasOwnProperty$1.call(object, key);
88385
+ }
88386
+
88387
+ var _baseHas = baseHas$1;
88388
+
88389
+ var baseGetTag = _baseGetTag,
88390
+ isObjectLike$1 = isObjectLike_1;
88391
+
88392
+ /** `Object#toString` result references. */
88393
+ var argsTag = '[object Arguments]';
88394
+
88395
+ /**
88396
+ * The base implementation of `_.isArguments`.
88397
+ *
88398
+ * @private
88399
+ * @param {*} value The value to check.
88400
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
88401
+ */
88402
+ function baseIsArguments$1(value) {
88403
+ return isObjectLike$1(value) && baseGetTag(value) == argsTag;
88404
+ }
88405
+
88406
+ var _baseIsArguments = baseIsArguments$1;
88407
+
88408
+ var baseIsArguments = _baseIsArguments,
88409
+ isObjectLike = isObjectLike_1;
88410
+
88411
+ /** Used for built-in method references. */
88412
+ var objectProto = Object.prototype;
88413
+
88414
+ /** Used to check objects for own properties. */
88415
+ var hasOwnProperty = objectProto.hasOwnProperty;
88416
+
88417
+ /** Built-in value references. */
88418
+ var propertyIsEnumerable = objectProto.propertyIsEnumerable;
88419
+
88420
+ /**
88421
+ * Checks if `value` is likely an `arguments` object.
88422
+ *
88423
+ * @static
88424
+ * @memberOf _
88425
+ * @since 0.1.0
88426
+ * @category Lang
88427
+ * @param {*} value The value to check.
88428
+ * @returns {boolean} Returns `true` if `value` is an `arguments` object,
88429
+ * else `false`.
88430
+ * @example
88431
+ *
88432
+ * _.isArguments(function() { return arguments; }());
88433
+ * // => true
88434
+ *
88435
+ * _.isArguments([1, 2, 3]);
88436
+ * // => false
88437
+ */
88438
+ var isArguments$1 = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {
88439
+ return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&
88440
+ !propertyIsEnumerable.call(value, 'callee');
88441
+ };
88442
+
88443
+ var isArguments_1 = isArguments$1;
88444
+
88445
+ /** Used as references for various `Number` constants. */
88446
+
88447
+ var MAX_SAFE_INTEGER$1 = 9007199254740991;
88448
+
88449
+ /** Used to detect unsigned integer values. */
88450
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
88451
+
88452
+ /**
88453
+ * Checks if `value` is a valid array-like index.
88454
+ *
88455
+ * @private
88456
+ * @param {*} value The value to check.
88457
+ * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
88458
+ * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
88459
+ */
88460
+ function isIndex$1(value, length) {
88461
+ var type = typeof value;
88462
+ length = length == null ? MAX_SAFE_INTEGER$1 : length;
88463
+
88464
+ return !!length &&
88465
+ (type == 'number' ||
88466
+ (type != 'symbol' && reIsUint.test(value))) &&
88467
+ (value > -1 && value % 1 == 0 && value < length);
88468
+ }
88469
+
88470
+ var _isIndex = isIndex$1;
88471
+
88472
+ /** Used as references for various `Number` constants. */
88473
+
88474
+ var MAX_SAFE_INTEGER = 9007199254740991;
88475
+
88476
+ /**
88477
+ * Checks if `value` is a valid array-like length.
88478
+ *
88479
+ * **Note:** This method is loosely based on
88480
+ * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
88481
+ *
88482
+ * @static
88483
+ * @memberOf _
88484
+ * @since 4.0.0
88485
+ * @category Lang
88486
+ * @param {*} value The value to check.
88487
+ * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
88488
+ * @example
88489
+ *
88490
+ * _.isLength(3);
88491
+ * // => true
88492
+ *
88493
+ * _.isLength(Number.MIN_VALUE);
88494
+ * // => false
88495
+ *
88496
+ * _.isLength(Infinity);
88497
+ * // => false
88498
+ *
88499
+ * _.isLength('3');
88500
+ * // => false
88501
+ */
88502
+ function isLength$1(value) {
88503
+ return typeof value == 'number' &&
88504
+ value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
88505
+ }
88506
+
88507
+ var isLength_1 = isLength$1;
88508
+
88509
+ var castPath = _castPath,
88510
+ isArguments = isArguments_1,
88511
+ isArray = isArray_1,
88512
+ isIndex = _isIndex,
88513
+ isLength = isLength_1,
88514
+ toKey = _toKey;
88515
+
88516
+ /**
88517
+ * Checks if `path` exists on `object`.
88518
+ *
88519
+ * @private
88520
+ * @param {Object} object The object to query.
88521
+ * @param {Array|string} path The path to check.
88522
+ * @param {Function} hasFunc The function to check properties.
88523
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
88524
+ */
88525
+ function hasPath$1(object, path, hasFunc) {
88526
+ path = castPath(path, object);
88527
+
88528
+ var index = -1,
88529
+ length = path.length,
88530
+ result = false;
88531
+
88532
+ while (++index < length) {
88533
+ var key = toKey(path[index]);
88534
+ if (!(result = object != null && hasFunc(object, key))) {
88535
+ break;
88536
+ }
88537
+ object = object[key];
88538
+ }
88539
+ if (result || ++index != length) {
88540
+ return result;
88541
+ }
88542
+ length = object == null ? 0 : object.length;
88543
+ return !!length && isLength(length) && isIndex(key, length) &&
88544
+ (isArray(object) || isArguments(object));
88545
+ }
88546
+
88547
+ var _hasPath = hasPath$1;
88548
+
88549
+ var baseHas = _baseHas,
88550
+ hasPath = _hasPath;
88551
+
88552
+ /**
88553
+ * Checks if `path` is a direct property of `object`.
88554
+ *
88555
+ * @static
88556
+ * @since 0.1.0
88557
+ * @memberOf _
88558
+ * @category Object
88559
+ * @param {Object} object The object to query.
88560
+ * @param {Array|string} path The path to check.
88561
+ * @returns {boolean} Returns `true` if `path` exists, else `false`.
88562
+ * @example
88563
+ *
88564
+ * var object = { 'a': { 'b': 2 } };
88565
+ * var other = _.create({ 'a': _.create({ 'b': 2 }) });
88566
+ *
88567
+ * _.has(object, 'a');
88568
+ * // => true
88569
+ *
88570
+ * _.has(object, 'a.b');
88571
+ * // => true
88572
+ *
88573
+ * _.has(object, ['a', 'b']);
88574
+ * // => true
88575
+ *
88576
+ * _.has(other, 'a');
88577
+ * // => false
88578
+ */
88579
+ function has(object, path) {
88580
+ return object != null && hasPath(object, path, baseHas);
88581
+ }
88582
+
88583
+ var has_1 = has;
88584
+
88585
+ const has$1 = /*@__PURE__*/getDefaultExportFromCjs(has_1);
88586
+
88587
+ const isAnyMatchKeyChangedAtNode = ({
88588
+ branches,
88589
+ nodePath,
88590
+ changedValues
88591
+ }) => {
88592
+ return collectOneOfBranchMatchKeys(branches).some((matchKey) => {
88593
+ const fullPath = [...nodePath, ...toOneOfBranchPath(matchKey)];
88594
+ return has$1(changedValues, fullPath);
88595
+ });
88596
+ };
88597
+ const getCurrentNodeCleanupPaths = ({
88598
+ node,
88599
+ value,
88600
+ path,
88601
+ changedValues
88602
+ }) => {
88603
+ if (!node.oneOfBranches || node.oneOfBranches.length === 0) {
88604
+ return [];
88605
+ }
88606
+ if (!isAnyMatchKeyChangedAtNode({
88607
+ branches: node.oneOfBranches,
88608
+ nodePath: path,
88609
+ changedValues
88610
+ })) {
88611
+ return [];
88612
+ }
88613
+ const matchedBranches = node.oneOfBranches.filter((branch) => matchesOneOfBranch(value, branch));
88614
+ if (matchedBranches.length !== 1) {
88615
+ return [];
88616
+ }
88617
+ const [activeBranch] = matchedBranches;
88618
+ return collectInactiveOneOfBranchPaths({ branches: node.oneOfBranches, activeBranch }).map((branchPath) => [
88619
+ ...path,
88620
+ ...branchPath
88621
+ ]);
88622
+ };
88623
+ const collectInactiveBranchCleanupPaths = ({
88624
+ properties,
88625
+ values,
88626
+ changedValues,
88627
+ currentPath = []
88628
+ }) => {
88629
+ if (!changedValues) {
88630
+ return [];
88631
+ }
88632
+ return Object.entries(properties).flatMap(([key, node]) => {
88633
+ const path = [...currentPath, key];
88634
+ const value = get$1(values, path);
88635
+ const currentCleanupPaths = getCurrentNodeCleanupPaths({
88636
+ node,
88637
+ value,
88638
+ path,
88639
+ changedValues
88640
+ });
88641
+ const nestedObjectCleanupPaths = node.properties ? collectInactiveBranchCleanupPaths({
88642
+ properties: node.properties,
88643
+ values,
88644
+ changedValues,
88645
+ currentPath: path
88646
+ }) : [];
88647
+ const nestedArrayCleanupPaths = node.type === "array" && node.items && Array.isArray(value) ? value.flatMap((_, index) => {
88648
+ const itemPath = [...path, index];
88649
+ const itemValue = get$1(values, itemPath);
88650
+ const itemCleanupPaths = getCurrentNodeCleanupPaths({
88651
+ node: node.items,
88652
+ value: itemValue,
88653
+ path: itemPath,
88654
+ changedValues
88655
+ });
88656
+ return [
88657
+ ...itemCleanupPaths,
88658
+ ...node.items?.properties ? collectInactiveBranchCleanupPaths({
88659
+ properties: node.items.properties,
88660
+ values,
88661
+ changedValues,
88662
+ currentPath: itemPath
88663
+ }) : []
88664
+ ];
88665
+ }) : [];
88666
+ return [...currentCleanupPaths, ...nestedObjectCleanupPaths, ...nestedArrayCleanupPaths];
88667
+ });
88668
+ };
88669
+
87891
88670
  const handleSubmitError = ({
87892
88671
  error,
87893
88672
  expandedKeys
@@ -88180,7 +88959,9 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
88180
88959
  }
88181
88960
  });
88182
88961
  }
88183
- if (prefillValueNamespaceOnly) {
88962
+ const schemaNamespaceDefault = staticProperties.metadata?.properties?.namespace?.default;
88963
+ const hasSchemaNamespaceDefault = typeof schemaNamespaceDefault === "string" && schemaNamespaceDefault.length > 0;
88964
+ if (prefillValueNamespaceOnly && !hasSchemaNamespaceDefault) {
88184
88965
  _$1.set(allValues2, ["metadata", "namespace"], prefillValueNamespaceOnly);
88185
88966
  }
88186
88967
  if (normalizedPrefill) {
@@ -88190,7 +88971,15 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
88190
88971
  }
88191
88972
  const sorted = Object.fromEntries(Object.entries(allValues2).sort(([a], [b]) => a.localeCompare(b)));
88192
88973
  return sorted;
88193
- }, [formsPrefills, prefillValueNamespaceOnly, isCreate, apiGroupApiVersion, kind, normalizedPrefill]);
88974
+ }, [
88975
+ formsPrefills,
88976
+ prefillValueNamespaceOnly,
88977
+ isCreate,
88978
+ apiGroupApiVersion,
88979
+ kind,
88980
+ normalizedPrefill,
88981
+ staticProperties
88982
+ ]);
88194
88983
  const prefillTemplates = React$1.useMemo(() => {
88195
88984
  const templates = [];
88196
88985
  if (formsPrefills?.spec?.values?.length) {
@@ -88266,12 +89055,31 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
88266
89055
  sanitized.forEach((p, i) => wdbg(`#${i}`, prettyPath(p)));
88267
89056
  return sanitized;
88268
89057
  }, [expandedPaths]);
89058
+ const resolveHiddenPaths = React$1.useCallback(
89059
+ (values) => {
89060
+ const hiddenResolved = expandWildcardTemplates(hiddenWildcardTemplates, values, {
89061
+ includeMissingExact: true,
89062
+ includeMissingFinalForWildcard: true
89063
+ });
89064
+ const oneOfBranchHiddenPaths = collectOneOfBranchHiddenPaths({
89065
+ properties,
89066
+ values
89067
+ });
89068
+ const seen = /* @__PURE__ */ new Set();
89069
+ return [...hiddenResolved, ...oneOfBranchHiddenPaths].filter((path) => {
89070
+ const key = JSON.stringify(path);
89071
+ if (seen.has(key)) {
89072
+ return false;
89073
+ }
89074
+ seen.add(key);
89075
+ return true;
89076
+ });
89077
+ },
89078
+ [hiddenWildcardTemplates, properties]
89079
+ );
88269
89080
  React$1.useEffect(() => {
88270
89081
  if (!initialValues) return;
88271
- const hiddenResolved = expandWildcardTemplates(hiddenWildcardTemplates, initialValues, {
88272
- includeMissingExact: true,
88273
- includeMissingFinalForWildcard: true
88274
- });
89082
+ const hiddenResolved = resolveHiddenPaths(initialValues);
88275
89083
  wdbg("hidden resolved", hiddenResolved.map(prettyPath));
88276
89084
  setResolvedHiddenPaths(hiddenResolved);
88277
89085
  const expandedResolved = expandWildcardTemplates(expandedWildcardTemplates, initialValues);
@@ -88307,7 +89115,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
88307
89115
  }
88308
89116
  return merged;
88309
89117
  });
88310
- }, [initialValues, hiddenWildcardTemplates, expandedWildcardTemplates, persistedWildcardTemplates]);
89118
+ }, [initialValues, resolveHiddenPaths, expandedWildcardTemplates, persistedWildcardTemplates]);
88311
89119
  const resolvedHiddenStringPaths = React$1.useMemo(
88312
89120
  () => resolvedHiddenPaths.map(toStringPath),
88313
89121
  [resolvedHiddenPaths]
@@ -88334,14 +89142,28 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
88334
89142
  const onValuesChangeCallback = React$1.useCallback(
88335
89143
  (values, changedValues) => {
88336
89144
  const vRaw = values ?? form.getFieldsValue(true);
88337
- const v = scrubLiteralWildcardKeys(vRaw);
89145
+ let v = scrubLiteralWildcardKeys(vRaw);
89146
+ if (changedValues) {
89147
+ const inactiveCleanupPaths = collectInactiveBranchCleanupPaths({
89148
+ properties,
89149
+ values: v,
89150
+ changedValues
89151
+ });
89152
+ if (inactiveCleanupPaths.length > 0) {
89153
+ inactiveCleanupPaths.forEach((path) => {
89154
+ form.setFieldValue(path, void 0);
89155
+ });
89156
+ v = scrubLiteralWildcardKeys(form.getFieldsValue(true));
89157
+ const formattedPaths = inactiveCleanupPaths.map((path) => prettyFieldPath(path)).join(", ");
89158
+ notificationApi.info({
89159
+ message: inactiveCleanupPaths.length === 1 ? "Cleared 1 inactive branch field" : `Cleared ${inactiveCleanupPaths.length} inactive branch fields`,
89160
+ description: `Removed ${formattedPaths} to match the new selector.`,
89161
+ placement: "bottomRight"
89162
+ });
89163
+ }
89164
+ }
88338
89165
  applyOneOfValidationErrors(computeOneOfValidationStates(v));
88339
- const hiddenResolved = expandWildcardTemplates(
88340
- hiddenWildcardTemplates,
88341
- v,
88342
- { includeMissingExact: true, includeMissingFinalForWildcard: true }
88343
- // only hidden opts in
88344
- );
89166
+ const hiddenResolved = resolveHiddenPaths(v);
88345
89167
  wdbg("hidden resolved", hiddenResolved.map(prettyPath));
88346
89168
  setResolvedHiddenPaths(hiddenResolved);
88347
89169
  const expandedResolved = expandWildcardTemplates(expandedWildcardTemplates, v);
@@ -88485,8 +89307,9 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
88485
89307
  applyOneOfValidationErrors,
88486
89308
  applyPrefillForNewArrayItem,
88487
89309
  applyPersistedForNewArrayItem,
88488
- hiddenWildcardTemplates,
88489
- expandedWildcardTemplates
89310
+ resolveHiddenPaths,
89311
+ expandedWildcardTemplates,
89312
+ notificationApi
88490
89313
  ]
88491
89314
  );
88492
89315
  React$1.useEffect(() => {
@@ -88759,8 +89582,8 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
88759
89582
  setPersistedKeys([...persistedKeys.filter((arr) => JSON.stringify(arr) !== JSON.stringify(value))]);
88760
89583
  };
88761
89584
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
88762
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$i.Container, { $designNewLayout: designNewLayout, $designNewLayoutHeight: designNewLayoutHeight, children: [
88763
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$i.OverflowContainer, { ref: overflowRef, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
89585
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$j.Container, { $designNewLayout: designNewLayout, $designNewLayoutHeight: designNewLayoutHeight, children: [
89586
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$j.OverflowContainer, { ref: overflowRef, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
88764
89587
  antd.Form,
88765
89588
  {
88766
89589
  form,
@@ -88807,7 +89630,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
88807
89630
  ) })
88808
89631
  ] }),
88809
89632
  /* @__PURE__ */ jsxRuntimeExports.jsx(FlexGrow, {}),
88810
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$i.ControlsRowContainer, { $bgColor: token.colorPrimaryBg, $designNewLayout: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(antd.Flex, { gap: designNewLayout ? 10 : 16, align: "center", children: [
89633
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$j.ControlsRowContainer, { $bgColor: token.colorPrimaryBg, $designNewLayout: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(antd.Flex, { gap: designNewLayout ? 10 : 16, align: "center", children: [
88811
89634
  /* @__PURE__ */ jsxRuntimeExports.jsx(
88812
89635
  antd.Button,
88813
89636
  {
@@ -88828,7 +89651,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
88828
89651
  open: !!error,
88829
89652
  onOk: () => setError(void 0),
88830
89653
  onCancel: () => setError(void 0),
88831
- title: /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$i.BigText, { children: "Error!" }) }),
89654
+ title: /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$j.BigText, { children: "Error!" }) }),
88832
89655
  cancelButtonProps: { style: { display: "none" } },
88833
89656
  centered: true,
88834
89657
  styles: {
@@ -88856,7 +89679,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
88856
89679
  paddingRight: "30px"
88857
89680
  }
88858
89681
  },
88859
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$i.DebugContainer, { $designNewLayoutHeight: designNewLayoutHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(React$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
89682
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$j.DebugContainer, { $designNewLayoutHeight: designNewLayoutHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(React$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
88860
89683
  Editor,
88861
89684
  {
88862
89685
  defaultLanguage: "json",
@@ -88875,6 +89698,16 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
88875
89698
  ] });
88876
89699
  };
88877
89700
 
89701
+ const LoadingContainer$1 = styled.div`
89702
+ display: flex;
89703
+ align-items: center;
89704
+ justify-content: center;
89705
+ min-height: ${({ $minHeight }) => $minHeight ? `${$minHeight}px` : "auto"};
89706
+ `;
89707
+ const Styled$i = {
89708
+ LoadingContainer: LoadingContainer$1
89709
+ };
89710
+
88878
89711
  const BlackholeFormProvider = ({
88879
89712
  theme,
88880
89713
  cluster,
@@ -89023,7 +89856,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
89023
89856
  applyForceViewMode
89024
89857
  ]);
89025
89858
  if (isLoading) {
89026
- return /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Spin, {});
89859
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$i.LoadingContainer, { $minHeight: designNewLayoutHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(antd.Spin, {}) });
89027
89860
  }
89028
89861
  if (modeData?.current === "Manual") {
89029
89862
  return /* @__PURE__ */ jsxRuntimeExports.jsx(