@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.82 → 0.0.1-alpha.84

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.
@@ -2504,7 +2504,7 @@ const CustomTreeProvider = st.div`
2504
2504
  justify-content: center;
2505
2505
  }
2506
2506
  `;
2507
- const Styled$n = {
2507
+ const Styled$o = {
2508
2508
  CustomTreeProvider
2509
2509
  };
2510
2510
 
@@ -2569,7 +2569,7 @@ const TreeWithSearch = ({ treeData, onSelect }) => {
2569
2569
  });
2570
2570
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
2571
2571
  /* @__PURE__ */ jsxRuntimeExports.jsx(Search, { style: { marginBottom: 8 }, placeholder: "Search", onChange }),
2572
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$n.CustomTreeProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
2572
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$o.CustomTreeProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
2573
2573
  Tree,
2574
2574
  {
2575
2575
  treeData: loop(treeData),
@@ -8424,14 +8424,14 @@ const ContentContainer = st.div`
8424
8424
  display: ${({ $displayFlex }) => $displayFlex ? "flex" : "block"};
8425
8425
  flex-flow: ${({ $flexFlow }) => $flexFlow};
8426
8426
  `;
8427
- const Styled$m = {
8427
+ const Styled$n = {
8428
8428
  ContentContainer
8429
8429
  };
8430
8430
 
8431
8431
  const ContentCard$1 = ({ children, flexGrow, displayFlex, flexFlow, maxHeight }) => {
8432
8432
  const { token } = theme.useToken();
8433
8433
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
8434
- Styled$m.ContentContainer,
8434
+ Styled$n.ContentContainer,
8435
8435
  {
8436
8436
  $flexGrow: flexGrow,
8437
8437
  $bgColor: token.colorBgContainer,
@@ -8444,6 +8444,10 @@ const ContentCard$1 = ({ children, flexGrow, displayFlex, flexFlow, maxHeight })
8444
8444
  );
8445
8445
  };
8446
8446
 
8447
+ const FlexGrow = st.div`
8448
+ flex-grow: 1;
8449
+ `;
8450
+
8447
8451
  const getDirectUnknownResource = async ({ uri }) => {
8448
8452
  return axios.get(uri);
8449
8453
  };
@@ -8547,7 +8551,7 @@ const NoWrapContainer = st.div`
8547
8551
  flex-wrap: nowrap !important;
8548
8552
  }
8549
8553
  `;
8550
- const Styled$l = {
8554
+ const Styled$m = {
8551
8555
  PositionRelativeContainer,
8552
8556
  FullWidthContainer,
8553
8557
  NoWrapContainer
@@ -8590,9 +8594,9 @@ const CollapsibleBreadcrumb = ({ items }) => {
8590
8594
  };
8591
8595
  return [firstItem, ellipsisItem, lastItem];
8592
8596
  };
8593
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$l.PositionRelativeContainer, { children: [
8594
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$l.FullWidthContainer, { ref: containerRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumb, { separator: ">", items: renderItems() }) }),
8595
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$l.NoWrapContainer, { ref: breadcrumbRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumb, { separator: ">", items, style: { display: "flex", flexWrap: "nowrap" } }) })
8597
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$m.PositionRelativeContainer, { children: [
8598
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$m.FullWidthContainer, { ref: containerRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumb, { separator: ">", items: renderItems() }) }),
8599
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$m.NoWrapContainer, { ref: breadcrumbRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumb, { separator: ">", items, style: { display: "flex", flexWrap: "nowrap" } }) })
8596
8600
  ] });
8597
8601
  };
8598
8602
 
@@ -8600,12 +8604,12 @@ const HeightDiv = st.div`
8600
8604
  min-height: 22px;
8601
8605
  width: 100%;
8602
8606
  `;
8603
- const Styled$k = {
8607
+ const Styled$l = {
8604
8608
  HeightDiv
8605
8609
  };
8606
8610
 
8607
8611
  const ManageableBreadcrumbs = ({ data }) => {
8608
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$k.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(CollapsibleBreadcrumb, { items: data.breadcrumbItems }) });
8612
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$l.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(CollapsibleBreadcrumb, { items: data.breadcrumbItems }) });
8609
8613
  };
8610
8614
  const ManageableBreadcrumbsWithDataProvider = ({
8611
8615
  uri,
@@ -8629,7 +8633,7 @@ const ManageableBreadcrumbsWithDataProvider = ({
8629
8633
  return null;
8630
8634
  }
8631
8635
  if (rawDataLoading) {
8632
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$k.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
8636
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$l.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
8633
8637
  }
8634
8638
  if (!rawData) {
8635
8639
  return null;
@@ -8644,7 +8648,7 @@ const ManageableBreadcrumbsWithDataProvider = ({
8644
8648
  idToCompare
8645
8649
  });
8646
8650
  if (!result) {
8647
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$k.HeightDiv, {});
8651
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$l.HeightDiv, {});
8648
8652
  }
8649
8653
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ManageableBreadcrumbs, { data: result });
8650
8654
  };
@@ -8735,7 +8739,7 @@ const CustomMenu = st(Menu)`
8735
8739
  margin: 0 !important;
8736
8740
  }
8737
8741
  `;
8738
- const Styled$j = {
8742
+ const Styled$k = {
8739
8743
  CustomMenu
8740
8744
  };
8741
8745
 
@@ -8762,7 +8766,7 @@ const ManageableSidebar = ({ data, noMarginTop }) => {
8762
8766
  setSelectedKeys(data.selectedKeys);
8763
8767
  }, [data.selectedKeys]);
8764
8768
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
8765
- Styled$j.CustomMenu,
8769
+ Styled$k.CustomMenu,
8766
8770
  {
8767
8771
  selectedKeys,
8768
8772
  onSelect: () => {
@@ -26039,7 +26043,7 @@ const ShortenedText = st.div`
26039
26043
  white-space: nowrap;
26040
26044
  text-overflow: ellipsis;
26041
26045
  `;
26042
- const Styled$i = {
26046
+ const Styled$j = {
26043
26047
  ShortenedText
26044
26048
  };
26045
26049
 
@@ -26048,7 +26052,7 @@ const ShortenedTextWithTooltip = ({ text, trimLength, maxWidth = 200 }) => {
26048
26052
  const trimmedText = text.substring(0, trimLength);
26049
26053
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: text, placement: "top", children: trimmedText });
26050
26054
  }
26051
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: text, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$i.ShortenedText, { $maxWidth: maxWidth, children: text }) });
26055
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: text, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$j.ShortenedText, { $maxWidth: maxWidth, children: text }) });
26052
26056
  };
26053
26057
 
26054
26058
  const FilterDropdown = ({
@@ -41584,7 +41588,7 @@ const BorderRadiusContainer$1 = st.div`
41584
41588
  border-radius: 8px;
41585
41589
  }
41586
41590
  `;
41587
- const Styled$h = {
41591
+ const Styled$i = {
41588
41592
  BorderRadiusContainer: BorderRadiusContainer$1
41589
41593
  };
41590
41594
 
@@ -41593,7 +41597,7 @@ const YamlEditor = ({ theme, currentValues, onChange }) => {
41593
41597
  useEffect(() => {
41594
41598
  setYamlData(stringify(currentValues));
41595
41599
  }, [currentValues]);
41596
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$h.BorderRadiusContainer, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
41600
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$i.BorderRadiusContainer, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
41597
41601
  Ft,
41598
41602
  {
41599
41603
  defaultLanguage: "yaml",
@@ -41632,7 +41636,7 @@ const BigText$1 = st.div`
41632
41636
  font-size: 16px;
41633
41637
  line-height: 24px;
41634
41638
  `;
41635
- const Styled$g = {
41639
+ const Styled$h = {
41636
41640
  BorderRadiusContainer,
41637
41641
  ControlsRowContainer: ControlsRowContainer$1,
41638
41642
  BigText: BigText$1
@@ -41711,7 +41715,7 @@ const YamlEditorSingleton$1 = ({
41711
41715
  };
41712
41716
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
41713
41717
  contextHolder,
41714
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$g.BorderRadiusContainer, { $designNewLayoutHeight: designNewLayoutHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
41718
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$h.BorderRadiusContainer, { $designNewLayoutHeight: designNewLayoutHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
41715
41719
  Ft,
41716
41720
  {
41717
41721
  defaultLanguage: "yaml",
@@ -41727,7 +41731,7 @@ const YamlEditorSingleton$1 = ({
41727
41731
  }
41728
41732
  }
41729
41733
  ) }),
41730
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$g.ControlsRowContainer, { $bgColor: token.colorPrimaryBg, $designNewLayout: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: designNewLayout ? 10 : 16, align: "center", children: [
41734
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$h.ControlsRowContainer, { $bgColor: token.colorPrimaryBg, $designNewLayout: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: designNewLayout ? 10 : 16, align: "center", children: [
41731
41735
  /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "primary", onClick: onSubmit, loading: isLoading, children: "Submit" }),
41732
41736
  backlink && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: () => navigate(backlink), children: "Cancel" })
41733
41737
  ] }) }),
@@ -41737,7 +41741,7 @@ const YamlEditorSingleton$1 = ({
41737
41741
  open: !!error,
41738
41742
  onOk: () => setError(void 0),
41739
41743
  onCancel: () => setError(void 0),
41740
- title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$g.BigText, { children: "Error!" }) }),
41744
+ title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$h.BigText, { children: "Error!" }) }),
41741
41745
  cancelButtonProps: { style: { display: "none" } },
41742
41746
  children: [
41743
41747
  "An error has occurred: ",
@@ -41817,7 +41821,7 @@ const Content$1 = st.div`
41817
41821
  display: ${({ $isOpen }) => $isOpen ? "block" : "none"};
41818
41822
  padding: ${({ $designNewLayout }) => $designNewLayout ? "0 0 0 6px" : "4px"};
41819
41823
  `;
41820
- const Styled$f = {
41824
+ const Styled$g = {
41821
41825
  Container: Container$1,
41822
41826
  TitleBar,
41823
41827
  Content: Content$1
@@ -41844,14 +41848,14 @@ const CustomCollapse = ({
41844
41848
  }
41845
41849
  };
41846
41850
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
41847
- Styled$f.Container,
41851
+ Styled$g.Container,
41848
41852
  {
41849
41853
  $designNewLayout: designNewLayout,
41850
41854
  $borderColor: token.colorBorder,
41851
41855
  $bgColor: token.colorBgContainer,
41852
41856
  children: [
41853
41857
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "space-between", children: [
41854
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$f.TitleBar, { onClick: () => toggleCollapse(), children: [
41858
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$g.TitleBar, { onClick: () => toggleCollapse(), children: [
41855
41859
  !designNewLayout && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: isOpen ? /* @__PURE__ */ jsxRuntimeExports.jsx(CaretDownOutlined, { size: 14 }) : /* @__PURE__ */ jsxRuntimeExports.jsx(CaretRightOutlined, { size: 14 }) }),
41856
41860
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: title }),
41857
41861
  designNewLayout && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: isOpen ? /* @__PURE__ */ jsxRuntimeExports.jsx(DownIcon, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(UpIcon, {}) })
@@ -41862,7 +41866,7 @@ const CustomCollapse = ({
41862
41866
  persistedCheckbox
41863
41867
  ] })
41864
41868
  ] }),
41865
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$f.Content, { $isOpen: isOpen, $designNewLayout: designNewLayout, children })
41869
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$g.Content, { $isOpen: isOpen, $designNewLayout: designNewLayout, children })
41866
41870
  ]
41867
41871
  }
41868
41872
  );
@@ -41896,13 +41900,13 @@ const CustomSizeTitle = st.div`
41896
41900
  const Content = st.div`
41897
41901
  padding: ${({ $designNewLayout }) => $designNewLayout ? "0 0 0 6px" : "4px"};
41898
41902
  `;
41899
- const Styled$e = {
41903
+ const Styled$f = {
41900
41904
  Content
41901
41905
  };
41902
41906
 
41903
41907
  const ArrayInsideContainer = ({ children }) => {
41904
41908
  const designNewLayout = useDesignNewLayout();
41905
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$e.Content, { $designNewLayout: designNewLayout, children });
41909
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$f.Content, { $designNewLayout: designNewLayout, children });
41906
41910
  };
41907
41911
 
41908
41912
  const arraysEqual = (arr1, arr2) => {
@@ -42578,7 +42582,7 @@ const CrossContainer = st.div`
42578
42582
  cursor: pointer;
42579
42583
  padding-top: 11px;
42580
42584
  `;
42581
- const Styled$d = {
42585
+ const Styled$e = {
42582
42586
  SwitchAndCrossContainer,
42583
42587
  CrossContainer
42584
42588
  };
@@ -42603,7 +42607,7 @@ const FormBooleanInput = ({
42603
42607
  onRemoveByMinus && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "text", onClick: onRemoveByMinus, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MinusIcon, {}) })
42604
42608
  ] })
42605
42609
  ] }),
42606
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$d.SwitchAndCrossContainer, { children: [
42610
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$e.SwitchAndCrossContainer, { children: [
42607
42611
  /* @__PURE__ */ jsxRuntimeExports.jsx(
42608
42612
  ResetedFormItem,
42609
42613
  {
@@ -42613,7 +42617,7 @@ const FormBooleanInput = ({
42613
42617
  arrKey !== void 0 ? arrKey : Array.isArray(name) ? name.slice(-1)[0] : name
42614
42618
  ),
42615
42619
  /* @__PURE__ */ jsxRuntimeExports.jsx(
42616
- Styled$d.CrossContainer,
42620
+ Styled$e.CrossContainer,
42617
42621
  {
42618
42622
  onClick: () => {
42619
42623
  if (makeValueUndefined) {
@@ -42829,7 +42833,7 @@ const BigText = st.div`
42829
42833
  font-size: 16px;
42830
42834
  line-height: 24px;
42831
42835
  `;
42832
- const Styled$c = {
42836
+ const Styled$d = {
42833
42837
  ResetedFormList,
42834
42838
  Container,
42835
42839
  OverflowContainer: OverflowContainer$1,
@@ -43077,7 +43081,7 @@ const getArrayFormItemFromSwagger = ({
43077
43081
  }
43078
43082
  ),
43079
43083
  /* @__PURE__ */ jsxRuntimeExports.jsx(
43080
- Styled$c.ResetedFormList,
43084
+ Styled$d.ResetedFormList,
43081
43085
  {
43082
43086
  name: arrName || name,
43083
43087
  rules: !forceNonRequired && required?.includes(getStringByName(name)) ? [
@@ -43804,8 +43808,8 @@ const BlackholeForm = ({
43804
43808
  setPersistedKeys([...persistedKeys.filter((arr) => JSON.stringify(arr) !== JSON.stringify(value))]);
43805
43809
  };
43806
43810
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
43807
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$c.Container, { $designNewLayout: designNewLayout, $designNewLayoutHeight: designNewLayoutHeight, children: [
43808
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$c.OverflowContainer, { ref: overflowRef, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
43811
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$d.Container, { $designNewLayout: designNewLayout, $designNewLayoutHeight: designNewLayoutHeight, children: [
43812
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$d.OverflowContainer, { ref: overflowRef, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
43809
43813
  Form,
43810
43814
  {
43811
43815
  form,
@@ -43848,7 +43852,8 @@ const BlackholeForm = ({
43848
43852
  ) }),
43849
43853
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(YamlEditor, { theme: theme$1, currentValues: yamlValues || {}, onChange: onYamlChangeCallback }) })
43850
43854
  ] }),
43851
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$c.ControlsRowContainer, { $bgColor: token.colorPrimaryBg, $designNewLayout: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: designNewLayout ? 10 : 16, align: "center", children: [
43855
+ /* @__PURE__ */ jsxRuntimeExports.jsx(FlexGrow, {}),
43856
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$d.ControlsRowContainer, { $bgColor: token.colorPrimaryBg, $designNewLayout: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: designNewLayout ? 10 : 16, align: "center", children: [
43852
43857
  /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "primary", onClick: onSubmit, loading: isLoading, children: "Submit" }),
43853
43858
  backlink && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: () => navigate(backlink), children: "Cancel" }),
43854
43859
  /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: () => setIsDebugModalOpen(true), icon: /* @__PURE__ */ jsxRuntimeExports.jsx(BugOutlined, {}) }),
@@ -43860,7 +43865,7 @@ const BlackholeForm = ({
43860
43865
  open: !!error,
43861
43866
  onOk: () => setError(void 0),
43862
43867
  onCancel: () => setError(void 0),
43863
- title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$c.BigText, { children: "Error!" }) }),
43868
+ title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$d.BigText, { children: "Error!" }) }),
43864
43869
  cancelButtonProps: { style: { display: "none" } },
43865
43870
  children: [
43866
43871
  "An error has occurred: ",
@@ -43876,7 +43881,7 @@ const BlackholeForm = ({
43876
43881
  onCancel: () => setIsDebugModalOpen(false),
43877
43882
  title: "Debug for properties",
43878
43883
  width: "90vw",
43879
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$c.DebugContainer, { $designNewLayoutHeight: designNewLayoutHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
43884
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$d.DebugContainer, { $designNewLayoutHeight: designNewLayoutHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ jsxRuntimeExports.jsx(
43880
43885
  Editor,
43881
43886
  {
43882
43887
  defaultLanguage: "json",
@@ -44030,12 +44035,12 @@ const CustomCard$5 = st(Card)`
44030
44035
  padding: 8px;
44031
44036
  }
44032
44037
  `;
44033
- const Styled$b = {
44038
+ const Styled$c = {
44034
44039
  CustomCard: CustomCard$5
44035
44040
  };
44036
44041
 
44037
44042
  const AddCard = ({ onAddClick }) => {
44038
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$b.CustomCard, { onClick: onAddClick, children: /* @__PURE__ */ jsxRuntimeExports.jsx(PlusOutlined, {}) });
44043
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$c.CustomCard, { onClick: onAddClick, children: /* @__PURE__ */ jsxRuntimeExports.jsx(PlusOutlined, {}) });
44039
44044
  };
44040
44045
 
44041
44046
  const byteToHex = [];
@@ -44339,7 +44344,7 @@ const EditButtonContainer = st.div`
44339
44344
  bottom: 6px;
44340
44345
  right: 6px;
44341
44346
  `;
44342
- const Styled$a = {
44347
+ const Styled$b = {
44343
44348
  CustomCard: CustomCard$4,
44344
44349
  ImageContainer,
44345
44350
  OverflowContainer,
@@ -44415,14 +44420,14 @@ const MarketplaceCard$1 = ({
44415
44420
  return null;
44416
44421
  }
44417
44422
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
44418
- Styled$a.CustomCard,
44423
+ Styled$b.CustomCard,
44419
44424
  {
44420
44425
  $isDisabled: disabled,
44421
44426
  $hoverColor: token.colorPrimary,
44422
44427
  onClick: () => disabled ? null : navigate(navigateUrl),
44423
44428
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { vertical: true, style: { width: "100%", height: "100%" }, justify: "spaceBetween", children: [
44424
44429
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "space-between", children: [
44425
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$a.ImageContainer, { dangerouslySetInnerHTML: { __html: decodedIcon } }),
44430
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$b.ImageContainer, { dangerouslySetInnerHTML: { __html: decodedIcon } }),
44426
44431
  isEditMode && /* @__PURE__ */ jsxRuntimeExports.jsx(
44427
44432
  "div",
44428
44433
  {
@@ -44443,8 +44448,8 @@ const MarketplaceCard$1 = ({
44443
44448
  }
44444
44449
  )
44445
44450
  ] }),
44446
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$a.OverflowContainer, { children: [
44447
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$a.TitleContainer, { children: [
44451
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$b.OverflowContainer, { children: [
44452
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$b.TitleContainer, { children: [
44448
44453
  name,
44449
44454
  " ",
44450
44455
  addedMode && /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { children: [
@@ -44452,10 +44457,10 @@ const MarketplaceCard$1 = ({
44452
44457
  k8sList?.items?.length
44453
44458
  ] })
44454
44459
  ] }),
44455
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$a.TagsContainer, { children: tags.map((tag) => /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$a.CustomTag, { children: tag }, tag)) }),
44456
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$a.DescriptionContainer, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "secondary", children: description }) })
44460
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$b.TagsContainer, { children: tags.map((tag) => /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$b.CustomTag, { children: tag }, tag)) }),
44461
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$b.DescriptionContainer, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "secondary", children: description }) })
44457
44462
  ] }),
44458
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$a.EditButtonContainer, { children: isEditMode && /* @__PURE__ */ jsxRuntimeExports.jsx(
44463
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$b.EditButtonContainer, { children: isEditMode && /* @__PURE__ */ jsxRuntimeExports.jsx(
44459
44464
  "div",
44460
44465
  {
44461
44466
  onClick: (e) => {
@@ -44513,7 +44518,7 @@ const BigValue = st.div`
44513
44518
  line-clamp: 1;
44514
44519
  word-break: break-all;
44515
44520
  `;
44516
- const Styled$9 = {
44521
+ const Styled$a = {
44517
44522
  BigValue
44518
44523
  };
44519
44524
 
@@ -44623,7 +44628,7 @@ const MarketPlace = ({
44623
44628
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "space-between", children: [
44624
44629
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 12, vertical: true, children: [
44625
44630
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "secondary", children: "Available Products" }) }),
44626
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$9.BigValue, { children: "Marketplace" }) })
44631
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$a.BigValue, { children: "Marketplace" }) })
44627
44632
  ] }) }),
44628
44633
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 12, vertical: true, children: [
44629
44634
  /* @__PURE__ */ jsxRuntimeExports.jsx(SearchTextInput, { uniqueTags, selectedTags, onSelectedTags: setSelectedTags }),
@@ -44826,7 +44831,7 @@ st.div`
44826
44831
  line-clamp: 1;
44827
44832
  word-break: break-all;
44828
44833
  `;
44829
- const Styled$8 = {
44834
+ const Styled$9 = {
44830
44835
  ActionMenuPlaceholder};
44831
44836
 
44832
44837
  const ProjectInfoCard$1 = ({
@@ -44904,7 +44909,7 @@ const ProjectInfoCard$1 = ({
44904
44909
  } : void 0,
44905
44910
  onUpdate: updatePermission.data?.status.allowed ? openUpdate : void 0
44906
44911
  }
44907
- ) : /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$8.ActionMenuPlaceholder, {}) }),
44912
+ ) : /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$9.ActionMenuPlaceholder, {}) }),
44908
44913
  /* @__PURE__ */ jsxRuntimeExports.jsx(DropdownAccessGroups, { accessGroups })
44909
44914
  ] }) })
44910
44915
  ] }),
@@ -44990,7 +44995,7 @@ const FullWidthDiv$3 = st.div`
44990
44995
  width: 100%;
44991
44996
  height: calc(100vh - ${({ $substractHeight }) => $substractHeight}px);
44992
44997
  `;
44993
- const Styled$7 = {
44998
+ const Styled$8 = {
44994
44999
  FullWidthDiv: FullWidthDiv$3,
44995
45000
  CustomCard: CustomCard$3
44996
45001
  };
@@ -45075,7 +45080,7 @@ const XTerminal$2 = ({ endpoint, namespace, podName, container, substractHeight
45075
45080
  };
45076
45081
  }, [terminal, endpoint, namespace, podName, container]);
45077
45082
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
45078
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$7.CustomCard, { $isVisible: !isLoading && !error, $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$7.FullWidthDiv, { $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: terminalRef, style: { width: "100%", height: "100%" } }) }) }),
45083
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$8.CustomCard, { $isVisible: !isLoading && !error, $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$8.FullWidthDiv, { $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: terminalRef, style: { width: "100%", height: "100%" } }) }) }),
45079
45084
  isLoading && !error && /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}),
45080
45085
  error && /* @__PURE__ */ jsxRuntimeExports.jsx(Result, { status: "error", title: "Error", subTitle: JSON.stringify(error) })
45081
45086
  ] });
@@ -45086,7 +45091,7 @@ const CustomSelect$3 = st.div`
45086
45091
  width: 200px;
45087
45092
  }
45088
45093
  `;
45089
- const Styled$6 = {
45094
+ const Styled$7 = {
45090
45095
  CustomSelect: CustomSelect$3
45091
45096
  };
45092
45097
 
@@ -45097,7 +45102,7 @@ const PodTerminal$1 = ({ cluster, namespace, podName, containers, substractHeigh
45097
45102
  return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: "No Running Containers" });
45098
45103
  }
45099
45104
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
45100
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$6.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
45105
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$7.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
45101
45106
  Select,
45102
45107
  {
45103
45108
  placeholder: "Select container",
@@ -45149,7 +45154,7 @@ const ProgressContainer = st.div`
45149
45154
  align-items: center;
45150
45155
  gap: 8px;
45151
45156
  `;
45152
- const Styled$5 = {
45157
+ const Styled$6 = {
45153
45158
  FullWidthDiv: FullWidthDiv$2,
45154
45159
  CustomCard: CustomCard$2,
45155
45160
  ProgressContainer
@@ -45281,8 +45286,8 @@ const XTerminal$1 = ({ endpoint, nodeName, profile, substractHeight }) => {
45281
45286
  };
45282
45287
  }, [terminal, endpoint, nodeName, profile]);
45283
45288
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
45284
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$5.CustomCard, { $isVisible: isTerminalVisible, $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$5.FullWidthDiv, { $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: terminalRef, style: { width: "100%", height: "100%" } }) }) }),
45285
- !isTerminalVisible && !error && isWarmingUp && /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$5.ProgressContainer, { $substractHeight: substractHeight, children: [
45289
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$6.CustomCard, { $isVisible: isTerminalVisible, $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$6.FullWidthDiv, { $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: terminalRef, style: { width: "100%", height: "100%" } }) }) }),
45290
+ !isTerminalVisible && !error && isWarmingUp && /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$6.ProgressContainer, { $substractHeight: substractHeight, children: [
45286
45291
  isLoading && /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}),
45287
45292
  !isLoading && /* @__PURE__ */ jsxRuntimeExports.jsx(Progress, { type: "circle", percent: progressPercent }),
45288
45293
  warmupMessage && /* @__PURE__ */ jsxRuntimeExports.jsxs(Typography.Text, { children: [
@@ -45303,7 +45308,7 @@ const CustomSelect$2 = st.div`
45303
45308
  width: 200px;
45304
45309
  }
45305
45310
  `;
45306
- const Styled$4 = {
45311
+ const Styled$5 = {
45307
45312
  CustomSelect: CustomSelect$2
45308
45313
  };
45309
45314
 
@@ -45312,7 +45317,7 @@ const NodeTerminal$1 = ({ cluster, nodeName, substractHeight, defaultProfile })
45312
45317
  const endpoint = `/api/clusters/${cluster}/openapi-bff-ws/terminal/terminalNode/terminalNode`;
45313
45318
  const profiles = ["legacy", "general", "baseline", "netadmin", "restricted", "sysadmin"];
45314
45319
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
45315
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$4.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
45320
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$5.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
45316
45321
  Select,
45317
45322
  {
45318
45323
  placeholder: "Select profile",
@@ -45351,7 +45356,7 @@ const FullWidthDiv$1 = st.div`
45351
45356
  width: 100%;
45352
45357
  height: calc(100vh - ${({ $substractHeight }) => $substractHeight}px);
45353
45358
  `;
45354
- const Styled$3 = {
45359
+ const Styled$4 = {
45355
45360
  FullWidthDiv: FullWidthDiv$1,
45356
45361
  CustomCard: CustomCard$1
45357
45362
  };
@@ -45432,7 +45437,7 @@ const XTerminal = ({ endpoint, namespace, podName, container, substractHeight })
45432
45437
  };
45433
45438
  }, [terminal, endpoint, namespace, podName, container]);
45434
45439
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
45435
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$3.CustomCard, { $isVisible: isTerminalVisible, $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$3.FullWidthDiv, { $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: terminalRef, style: { width: "100%", height: "100%" } }) }) }),
45440
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$4.CustomCard, { $isVisible: isTerminalVisible, $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$4.FullWidthDiv, { $substractHeight: substractHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: terminalRef, style: { width: "100%", height: "100%" } }) }) }),
45436
45441
  isLoading && !error && /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}),
45437
45442
  error && /* @__PURE__ */ jsxRuntimeExports.jsx(Result, { status: "error", title: "Error", subTitle: JSON.stringify(error) })
45438
45443
  ] });
@@ -45443,7 +45448,7 @@ const CustomSelect$1 = st.div`
45443
45448
  width: 200px;
45444
45449
  }
45445
45450
  `;
45446
- const Styled$2 = {
45451
+ const Styled$3 = {
45447
45452
  CustomSelect: CustomSelect$1
45448
45453
  };
45449
45454
 
@@ -45454,7 +45459,7 @@ const PodLogs$1 = ({ cluster, namespace, podName, containers, substractHeight })
45454
45459
  return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: "No Running Containers" });
45455
45460
  }
45456
45461
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
45457
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$2.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
45462
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$3.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
45458
45463
  Select,
45459
45464
  {
45460
45465
  placeholder: "Select container",
@@ -45496,7 +45501,7 @@ const CustomCard = st.div`
45496
45501
  scrollbar-width: thin;
45497
45502
  }
45498
45503
  `;
45499
- const VisibilityContainer = st.div`
45504
+ const VisibilityContainer$2 = st.div`
45500
45505
  visibility: ${({ $isVisible }) => $isVisible ? "visible" : "hidden"};
45501
45506
  margin-top: -51px;
45502
45507
  `;
@@ -45504,10 +45509,10 @@ const CursorPointerDiv = st.div`
45504
45509
  cursor: pointer;
45505
45510
  user-select: none;
45506
45511
  `;
45507
- const Styled$1 = {
45512
+ const Styled$2 = {
45508
45513
  FullWidthDiv,
45509
45514
  CustomCard,
45510
- VisibilityContainer,
45515
+ VisibilityContainer: VisibilityContainer$2,
45511
45516
  CursorPointerDiv
45512
45517
  };
45513
45518
 
@@ -45578,9 +45583,9 @@ const MonacoEditor = ({
45578
45583
  };
45579
45584
  }, [endpoint, namespace, podName, container, previous]);
45580
45585
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
45581
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$1.VisibilityContainer, { $isVisible: isTerminalVisible, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "start", align: "center", gap: 16, children: [
45586
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$2.VisibilityContainer, { $isVisible: isTerminalVisible, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "start", align: "center", gap: 16, children: [
45582
45587
  /* @__PURE__ */ jsxRuntimeExports.jsx(
45583
- Styled$1.CursorPointerDiv,
45588
+ Styled$2.CursorPointerDiv,
45584
45589
  {
45585
45590
  onClick: () => {
45586
45591
  if (isPaused) {
@@ -45605,7 +45610,7 @@ const MonacoEditor = ({
45605
45610
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: isPaused ? "Not streaming events" : "Streaming events" })
45606
45611
  ] }) }),
45607
45612
  /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 16, $samespace: true }),
45608
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$1.CustomCard, { $isVisible: isTerminalVisible, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$1.FullWidthDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
45613
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$2.CustomCard, { $isVisible: isTerminalVisible, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$2.FullWidthDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
45609
45614
  Ft,
45610
45615
  {
45611
45616
  defaultLanguage: "plaintext",
@@ -45636,7 +45641,7 @@ const CustomSelect = st.div`
45636
45641
  width: 200px;
45637
45642
  }
45638
45643
  `;
45639
- const Styled = {
45644
+ const Styled$1 = {
45640
45645
  TopRowContent,
45641
45646
  CustomSelect
45642
45647
  };
@@ -45682,8 +45687,8 @@ const PodLogsMonaco = ({
45682
45687
  }
45683
45688
  ];
45684
45689
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
45685
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled.TopRowContent, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 16, children: [
45686
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
45690
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$1.TopRowContent, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 16, children: [
45691
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$1.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
45687
45692
  Select,
45688
45693
  {
45689
45694
  placeholder: "Select container",
@@ -45698,7 +45703,7 @@ const PodLogsMonaco = ({
45698
45703
  }
45699
45704
  }
45700
45705
  ) }),
45701
- currentContainer && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
45706
+ currentContainer && /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$1.CustomSelect, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
45702
45707
  Select,
45703
45708
  {
45704
45709
  placeholder: "Select current/previous",
@@ -45843,8 +45848,14 @@ const parsePartsOfUrl = ({
45843
45848
  }) => {
45844
45849
  return prepareTemplate({ template, replaceValues });
45845
45850
  };
45846
- const parseMutliqueryText = ({ text, multiQueryData }) => {
45847
- if (!text) return "";
45851
+ const parseMutliqueryText = ({
45852
+ text,
45853
+ multiQueryData,
45854
+ customFallback
45855
+ }) => {
45856
+ if (!text) {
45857
+ return "";
45858
+ }
45848
45859
  return text.replace(
45849
45860
  /\{reqs\[(\d+)\]\[((?:\s*['"][^'"]+['"]\s*,?)+)\](?:\[\s*['"]([^'"]+)['"]\s*\])?\}/g,
45850
45861
  (_match, reqIndexStr, rawPath, fallback) => {
@@ -45854,9 +45865,12 @@ const parseMutliqueryText = ({ text, multiQueryData }) => {
45854
45865
  (m) => m[1]
45855
45866
  );
45856
45867
  const value = _$1.get(multiQueryData[`req${reqIndex}`], path, fallback !== void 0 ? fallback : void 0);
45857
- if (value == null) {
45868
+ if (value == null && !customFallback) {
45858
45869
  return fallback ?? "Undefined with no fallback";
45859
45870
  }
45871
+ if (customFallback && (value === void 0 || value === null)) {
45872
+ return customFallback;
45873
+ }
45860
45874
  return String(value);
45861
45875
  } catch {
45862
45876
  return _match;
@@ -45866,7 +45880,8 @@ const parseMutliqueryText = ({ text, multiQueryData }) => {
45866
45880
  };
45867
45881
  const parseJsonPathTemplate = ({
45868
45882
  text,
45869
- multiQueryData
45883
+ multiQueryData,
45884
+ customFallback
45870
45885
  }) => {
45871
45886
  if (!text) return "";
45872
45887
  const placeholderRegex = /\{reqsJsonPath\[(\d+)\]\s*\[\s*(['"])([^'"]+)\2\s*\](?:\s*\[\s*(['"])([^'"]*)\4\s*\])?\}/g;
@@ -45876,11 +45891,17 @@ const parseJsonPathTemplate = ({
45876
45891
  try {
45877
45892
  const reqIndex = parseInt(reqIndexStr, 10);
45878
45893
  const jsonRoot = multiQueryData[`req${reqIndex}`];
45879
- if (jsonRoot === void 0) {
45894
+ if (jsonRoot === void 0 && !customFallback) {
45880
45895
  return fallback;
45881
45896
  }
45897
+ if (jsonRoot === void 0 && customFallback) {
45898
+ return customFallback;
45899
+ }
45882
45900
  const results = jp.query(jsonRoot, `$${jsonPathExpr}`);
45883
45901
  if (results.length === 0 || results[0] == null || results[0] === void 0) {
45902
+ if (customFallback) {
45903
+ return customFallback;
45904
+ }
45884
45905
  return fallback;
45885
45906
  }
45886
45907
  return String(results[0]);
@@ -45890,6 +45911,21 @@ const parseJsonPathTemplate = ({
45890
45911
  }
45891
45912
  );
45892
45913
  };
45914
+ const parseWithoutPartsOfUrl = ({
45915
+ text,
45916
+ multiQueryData,
45917
+ customFallback
45918
+ }) => {
45919
+ return parseJsonPathTemplate({
45920
+ text: parseMutliqueryText({
45921
+ text,
45922
+ multiQueryData,
45923
+ customFallback
45924
+ }),
45925
+ multiQueryData,
45926
+ customFallback
45927
+ });
45928
+ };
45893
45929
  const parseAll = ({
45894
45930
  text,
45895
45931
  replaceValues,
@@ -46521,6 +46557,35 @@ const YamlEditorSingleton = ({
46521
46557
  ] });
46522
46558
  };
46523
46559
 
46560
+ const VisibilityContainer$1 = st.div`
46561
+ display: ${({ $hidden }) => $hidden ? "none" : "block"};
46562
+ `;
46563
+ const Styled = {
46564
+ VisibilityContainer: VisibilityContainer$1
46565
+ };
46566
+
46567
+ const VisibilityContainer = ({
46568
+ data,
46569
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
46570
+ children
46571
+ }) => {
46572
+ const { data: multiQueryData, isLoading: isMultiqueryLoading } = useMultiQuery();
46573
+ const {
46574
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
46575
+ id,
46576
+ value
46577
+ } = data;
46578
+ const valuePrepared = parseWithoutPartsOfUrl({
46579
+ text: value,
46580
+ multiQueryData,
46581
+ customFallback: "~undefined-value~"
46582
+ });
46583
+ if (isMultiqueryLoading) {
46584
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading multiquery" });
46585
+ }
46586
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled.VisibilityContainer, { $hidden: valuePrepared === "~undefined-value~", children });
46587
+ };
46588
+
46524
46589
  const DynamicComponents = {
46525
46590
  DefaultDiv,
46526
46591
  antdText: AntdText,
@@ -46544,7 +46609,8 @@ const DynamicComponents = {
46544
46609
  PodTerminal,
46545
46610
  NodeTerminal,
46546
46611
  PodLogs,
46547
- YamlEditorSingleton
46612
+ YamlEditorSingleton,
46613
+ VisibilityContainer
46548
46614
  };
46549
46615
 
46550
46616
  const prepareUrlsToFetchForDynamicRenderer = ({
@@ -47046,5 +47112,5 @@ const useCrdData = ({
47046
47112
  });
47047
47113
  };
47048
47114
 
47049
- export { BackToDefaultIcon, BlackholeForm, BlackholeFormDataProvider, ContentCard$1 as ContentCard, DeleteIcon, DeleteModal, DeleteModalMany, DownIcon, DynamicComponents, DynamicRenderer, DynamicRendererWithProviders, EditIcon, EnrichedTable$1 as EnrichedTable, EnrichedTableProvider, LockedIcon, ManageableBreadcrumbs, ManageableBreadcrumbsWithDataProvider, ManageableSidebar, ManageableSidebarWithDataProvider, MarketPlace, MarketplaceCard$1 as MarketplaceCard, MinusIcon, NodeTerminal$1 as NodeTerminal, PauseCircleIcon, PlusIcon, PodLogs$1 as PodLogs, PodLogsMonaco, PodTerminal$1 as PodTerminal, ProjectInfoCard$1 as ProjectInfoCard, ResumeCircleIcon, Spacer$1 as Spacer, SuccessIcon, TreeWithSearch, UnlockedIcon, UpIcon, YamlEditorSingleton$1 as YamlEditorSingleton, checkIfApiInstanceNamespaceScoped, checkIfBuiltInInstanceNamespaceScoped, checkPermission, createContextFactory, createNewEntry, deleteEntry, feedbackIcons, filterIfApiInstanceNamespaceScoped, filterIfBuiltInInstanceNamespaceScoped, filterSelectOptions, floorToDecimal, getAllPathsFromObj, getApiResourceSingle, getApiResourceTypes, getApiResourceTypesByApiGroup, getApiResources, getBuiltinResourceSingle, getBuiltinResourceTypes, getBuiltinResources, getBuiltinTreeData, getClusterList, getCrdData, getCrdResourceSingle, getCrdResources, getDirectUnknownResource, getEnrichedColumns, getEnrichedColumnsWithControls, getGroupsByCategory, getObjectFormItemsDraft, getPrefixSubarrays, getStringByName, getSwagger, groupsToTreeData, isFlatObject, normalizeValuesForQuotasToNumber, parseQuotaValue, parseQuotaValueCpu, parseQuotaValueMemoryAndStorage, prepareDataForManageableBreadcrumbs, prepareDataForManageableSidebar, prepareTemplate, prepareUrlsToFetchForDynamicRenderer, updateEntry, useApiResourceSingle, useApiResourceTypesByGroup, useApiResources, useApisResourceTypes, useBuiltinResourceSingle, useBuiltinResourceTypes, useBuiltinResources, useClusterList, useCrdData, useCrdResourceSingle, useCrdResources, useDirectUnknownResource, usePermissions };
47115
+ export { BackToDefaultIcon, BlackholeForm, BlackholeFormDataProvider, ContentCard$1 as ContentCard, DeleteIcon, DeleteModal, DeleteModalMany, DownIcon, DynamicComponents, DynamicRenderer, DynamicRendererWithProviders, EditIcon, EnrichedTable$1 as EnrichedTable, EnrichedTableProvider, FlexGrow, LockedIcon, ManageableBreadcrumbs, ManageableBreadcrumbsWithDataProvider, ManageableSidebar, ManageableSidebarWithDataProvider, MarketPlace, MarketplaceCard$1 as MarketplaceCard, MinusIcon, NodeTerminal$1 as NodeTerminal, PauseCircleIcon, PlusIcon, PodLogs$1 as PodLogs, PodLogsMonaco, PodTerminal$1 as PodTerminal, ProjectInfoCard$1 as ProjectInfoCard, ResumeCircleIcon, Spacer$1 as Spacer, SuccessIcon, TreeWithSearch, UnlockedIcon, UpIcon, YamlEditorSingleton$1 as YamlEditorSingleton, checkIfApiInstanceNamespaceScoped, checkIfBuiltInInstanceNamespaceScoped, checkPermission, createContextFactory, createNewEntry, deleteEntry, feedbackIcons, filterIfApiInstanceNamespaceScoped, filterIfBuiltInInstanceNamespaceScoped, filterSelectOptions, floorToDecimal, getAllPathsFromObj, getApiResourceSingle, getApiResourceTypes, getApiResourceTypesByApiGroup, getApiResources, getBuiltinResourceSingle, getBuiltinResourceTypes, getBuiltinResources, getBuiltinTreeData, getClusterList, getCrdData, getCrdResourceSingle, getCrdResources, getDirectUnknownResource, getEnrichedColumns, getEnrichedColumnsWithControls, getGroupsByCategory, getObjectFormItemsDraft, getPrefixSubarrays, getStringByName, getSwagger, groupsToTreeData, isFlatObject, normalizeValuesForQuotasToNumber, parseQuotaValue, parseQuotaValueCpu, parseQuotaValueMemoryAndStorage, prepareDataForManageableBreadcrumbs, prepareDataForManageableSidebar, prepareTemplate, prepareUrlsToFetchForDynamicRenderer, updateEntry, useApiResourceSingle, useApiResourceTypesByGroup, useApiResources, useApisResourceTypes, useBuiltinResourceSingle, useBuiltinResourceTypes, useBuiltinResources, useClusterList, useCrdData, useCrdResourceSingle, useCrdResources, useDirectUnknownResource, usePermissions };
47050
47116
  //# sourceMappingURL=openapi-k8s-toolkit.es.js.map