@devtron-labs/devtron-fe-common-lib 1.6.3 → 1.6.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.
@@ -1729,15 +1729,15 @@ const P0 = (t) => {
1729
1729
  iconClass: C,
1730
1730
  iconSize: S,
1731
1731
  onImageLoadError: T,
1732
- heading: A,
1732
+ heading: w,
1733
1733
  headingInfo: y,
1734
- infoTextHeading: w,
1734
+ infoTextHeading: A,
1735
1735
  hideHeading: k,
1736
1736
  infoText: N,
1737
1737
  showCloseButton: I,
1738
1738
  additionalContent: O,
1739
1739
  documentationLink: D,
1740
- documentationLinkText: V
1740
+ documentationLinkText: F
1741
1741
  } = t;
1742
1742
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
1743
1743
  !k && /* @__PURE__ */ a.jsxs(
@@ -1754,7 +1754,7 @@ const P0 = (t) => {
1754
1754
  onError: T
1755
1755
  }
1756
1756
  ) : E && /* @__PURE__ */ a.jsx("div", { className: `icon-dim-${S || 20} mr-6`, children: /* @__PURE__ */ a.jsx(E, { className: `icon-dim-${S || 20} ${C || ""}` }) }),
1757
- A && /* @__PURE__ */ a.jsx("span", { className: `fs-14 fw-6 lh-20 ${I ? "mr-12" : ""}`, children: A }),
1757
+ w && /* @__PURE__ */ a.jsx("span", { className: `fs-14 fw-6 lh-20 ${I ? "mr-12" : ""}`, children: w }),
1758
1758
  y && /* @__PURE__ */ a.jsx("div", { className: "icon-dim-20 cursor", onClick: c, children: /* @__PURE__ */ a.jsx(kr, { className: "icon-dim-20" }) }),
1759
1759
  I && /* @__PURE__ */ a.jsx("div", { className: "icon-dim-16 ml-auto", children: /* @__PURE__ */ a.jsx(
1760
1760
  Sn,
@@ -1776,11 +1776,11 @@ const P0 = (t) => {
1776
1776
  ]
1777
1777
  }
1778
1778
  ),
1779
- w && /* @__PURE__ */ a.jsx(
1779
+ A && /* @__PURE__ */ a.jsx(
1780
1780
  "div",
1781
1781
  {
1782
1782
  className: `dc__word-break dc__hyphens-auto fs-14 fw-6 lh-20 ${i ? "pl-12 pr-12" : "pl-20 pr-20"}`,
1783
- children: w
1783
+ children: A
1784
1784
  }
1785
1785
  ),
1786
1786
  N && /* @__PURE__ */ a.jsx(
@@ -1800,7 +1800,7 @@ const P0 = (t) => {
1800
1800
  className: "fs-13 cb-5 flex left",
1801
1801
  onClick: l,
1802
1802
  children: [
1803
- V || "Learn more",
1803
+ F || "Learn more",
1804
1804
  /* @__PURE__ */ a.jsx(Cw, { className: "icon-dim-14 ml-4 scb-5" })
1805
1805
  ]
1806
1806
  }
@@ -2679,16 +2679,16 @@ const o1 = (t = {}) => t ? Object.hasOwn(t, "shortcutKeyCombo") && "shortcutKeyC
2679
2679
  selectRef: C,
2680
2680
  shouldMenuAlignRight: S = !1,
2681
2681
  fullWidth: T = !1,
2682
- customSelectedOptionsCount: A = null,
2682
+ customSelectedOptionsCount: w = null,
2683
2683
  renderMenuListFooter: y,
2684
- isCreatable: w = !1,
2684
+ isCreatable: A = !1,
2685
2685
  onCreateOption: k,
2686
2686
  closeMenuOnSelect: N = !1,
2687
2687
  shouldShowNoOptionsMessage: I = !0,
2688
2688
  shouldRenderTextArea: O = !1,
2689
2689
  onKeyDown: D,
2690
- shouldHideMenu: V = !1,
2691
- warningText: $,
2690
+ shouldHideMenu: F = !1,
2691
+ warningText: V,
2692
2692
  layout: G,
2693
2693
  ariaLabel: Y,
2694
2694
  borderRadiusConfig: ee,
@@ -2697,8 +2697,8 @@ const o1 = (t = {}) => t ? Object.hasOwn(t, "shortcutKeyCombo") && "shortcutKeyC
2697
2697
  const [We, Q] = R(!1), [q, Se] = R(""), {
2698
2698
  inputId: Ee,
2699
2699
  required: je,
2700
- isDisabled: U,
2701
- controlShouldRenderValue: F = !0,
2700
+ isDisabled: $,
2701
+ controlShouldRenderValue: U = !0,
2702
2702
  value: J,
2703
2703
  options: _e,
2704
2704
  getOptionValue: he
@@ -2706,7 +2706,7 @@ const o1 = (t = {}) => t ? Object.hasOwn(t, "shortcutKeyCombo") && "shortcutKeyC
2706
2706
  isGroupHeadingSelectable: ke = !1,
2707
2707
  getIsOptionValid: oe = () => !0,
2708
2708
  customDisplayText: xt = null
2709
- } = _, Ut = F && !xt, St = g && Ut ? B.large : o, yn = !g && r, Vs = !E && v, Ld = de(
2709
+ } = _, Ut = U && !xt, St = g && Ut ? B.large : o, yn = !g && r, Vs = !E && v, Ld = de(
2710
2710
  () => i1({
2711
2711
  error: t,
2712
2712
  size: St,
@@ -2719,7 +2719,7 @@ const o1 = (t = {}) => t ? Object.hasOwn(t, "shortcutKeyCombo") && "shortcutKeyC
2719
2719
  [t, St, d, m, ke, S]
2720
2720
  ), Dd = ($e) => {
2721
2721
  const Nn = $e?.trim();
2722
- return w && !!Nn && !gr(
2722
+ return A && !!Nn && !gr(
2723
2723
  J,
2724
2724
  Nn,
2725
2725
  null,
@@ -2731,10 +2731,10 @@ const o1 = (t = {}) => t ? Object.hasOwn(t, "shortcutKeyCombo") && "shortcutKeyC
2731
2731
  {
2732
2732
  ...$e,
2733
2733
  showSelectedOptionsCount: c,
2734
- customSelectedOptionsCount: A
2734
+ customSelectedOptionsCount: w
2735
2735
  }
2736
2736
  ),
2737
- [c, A]
2737
+ [c, w]
2738
2738
  ), Le = dt(
2739
2739
  ($e) => /* @__PURE__ */ a.jsx(f1, { ...$e, disableDescriptionEllipsis: p }),
2740
2740
  [p]
@@ -2767,12 +2767,12 @@ const o1 = (t = {}) => t ? Object.hasOwn(t, "shortcutKeyCombo") && "shortcutKeyC
2767
2767
  label: i,
2768
2768
  error: t,
2769
2769
  helperText: s,
2770
- warningText: $,
2770
+ warningText: V,
2771
2771
  required: je,
2772
2772
  fullWidth: T,
2773
2773
  ariaLabel: Y,
2774
2774
  borderRadiusConfig: ee,
2775
- children: /* @__PURE__ */ a.jsx(Wt, { condition: U && !!l, wrap: ms, children: /* @__PURE__ */ a.jsx("div", { className: "w-100", children: /* @__PURE__ */ a.jsx(
2775
+ children: /* @__PURE__ */ a.jsx(Wt, { condition: $ && !!l, wrap: ms, children: /* @__PURE__ */ a.jsx("div", { className: "w-100", children: /* @__PURE__ */ a.jsx(
2776
2776
  Sw,
2777
2777
  {
2778
2778
  ...ue,
@@ -2811,7 +2811,7 @@ const o1 = (t = {}) => t ? Object.hasOwn(t, "shortcutKeyCombo") && "shortcutKeyC
2811
2811
  GroupHeading: rt,
2812
2812
  NoOptionsMessage: yt,
2813
2813
  Input: d1,
2814
- ...V && {
2814
+ ...F && {
2815
2815
  Menu: () => null,
2816
2816
  DropdownIndicator: () => null
2817
2817
  }
@@ -2890,8 +2890,8 @@ const o1 = (t = {}) => t ? Object.hasOwn(t, "shortcutKeyCombo") && "shortcutKeyC
2890
2890
  ${d.slice(v)}`;
2891
2891
  u(C);
2892
2892
  const S = h.current.inputRef, T = S.selectionStart, y = S.value.substring(0, T).split(`
2893
- `), w = parseInt(getComputedStyle(S).lineHeight, 10), N = y.length * w - S.scrollTop;
2894
- N < 0 ? S.scrollTop += N : N > S.offsetHeight - w && (S.scrollTop += N - S.offsetHeight + w), setTimeout(() => {
2893
+ `), A = parseInt(getComputedStyle(S).lineHeight, 10), N = y.length * A - S.scrollTop;
2894
+ N < 0 ? S.scrollTop += N : N > S.offsetHeight - A && (S.scrollTop += N - S.offsetHeight + A), setTimeout(() => {
2895
2895
  h.current.inputRef.selectionStart = E + 1, h.current.inputRef.selectionEnd = E + 1;
2896
2896
  });
2897
2897
  return;
@@ -3261,38 +3261,38 @@ const _p = () => ({
3261
3261
  localStorageKey: s
3262
3262
  } = {}) => {
3263
3263
  const n = zn(), i = qn(), r = ie(!1), l = (() => {
3264
- const A = new URLSearchParams(n.search);
3264
+ const w = new URLSearchParams(n.search);
3265
3265
  if (!r.current && s)
3266
3266
  if (n.search)
3267
3267
  xp(
3268
3268
  s,
3269
- JSON.stringify(e(A))
3269
+ JSON.stringify(e(w))
3270
3270
  );
3271
3271
  else {
3272
3272
  r.current = !0;
3273
3273
  const y = localStorage.getItem(s);
3274
3274
  if (y)
3275
3275
  try {
3276
- const w = Et("", JSON.parse(y)), k = new URLSearchParams(w.split("?")[1] ?? "");
3276
+ const A = Et("", JSON.parse(y)), k = new URLSearchParams(A.split("?")[1] ?? "");
3277
3277
  return i.replace({ search: k.toString() }), k;
3278
3278
  } catch {
3279
3279
  localStorage.removeItem(s);
3280
3280
  }
3281
3281
  }
3282
- return A;
3283
- })(), c = (A) => e ? e(A) : {}, { pageSize: d, pageNumber: u, searchKey: h, sortBy: f, sortOrder: m, parsedParams: p } = de(() => {
3284
- const A = l.get(bp), y = l.get(Ud), w = l.get(Ep), k = l.get(vp), I = l.get(Cp) || t || "", O = Object.values(we).includes(k) ? k : we.ASC, D = c(l);
3282
+ return w;
3283
+ })(), c = (w) => e ? e(w) : {}, { pageSize: d, pageNumber: u, searchKey: h, sortBy: f, sortOrder: m, parsedParams: p } = de(() => {
3284
+ const w = l.get(bp), y = l.get(Ud), A = l.get(Ep), k = l.get(vp), I = l.get(Cp) || t || "", O = Object.values(we).includes(k) ? k : we.ASC, D = c(l);
3285
3285
  return {
3286
- pageSize: Number(A) || zi,
3286
+ pageSize: Number(w) || zi,
3287
3287
  pageNumber: Number(y) || Ji,
3288
- searchKey: w || "",
3288
+ searchKey: A || "",
3289
3289
  sortBy: I,
3290
3290
  // sort order should only be applied if the key is available
3291
3291
  sortOrder: I ? O : "",
3292
3292
  parsedParams: D
3293
3293
  };
3294
- }, [l]), _ = d * (u - 1), g = (A, y) => {
3295
- l.set(A, String(y)), i.replace({ search: l.toString() });
3294
+ }, [l]), _ = d * (u - 1), g = (w, y) => {
3295
+ l.set(w, String(y)), i.replace({ search: l.toString() });
3296
3296
  }, x = () => {
3297
3297
  if (u !== Ji) {
3298
3298
  g(Ud, Ji);
@@ -3302,32 +3302,32 @@ const _p = () => ({
3302
3302
  };
3303
3303
  return {
3304
3304
  pageSize: d,
3305
- changePage: (A) => {
3306
- g(Ud, A);
3305
+ changePage: (w) => {
3306
+ g(Ud, w);
3307
3307
  },
3308
- changePageSize: (A) => {
3309
- g(bp, A), x();
3308
+ changePageSize: (w) => {
3309
+ g(bp, w), x();
3310
3310
  },
3311
3311
  searchKey: h,
3312
- handleSearch: (A) => {
3313
- g(Ep, A), x();
3312
+ handleSearch: (w) => {
3313
+ g(Ep, w), x();
3314
3314
  },
3315
3315
  offset: _,
3316
3316
  sortBy: f,
3317
3317
  sortOrder: m,
3318
- handleSorting: (A) => {
3318
+ handleSorting: (w) => {
3319
3319
  let y;
3320
- A === f && m === we.ASC ? y = we.DESC : y = we.ASC, g(Cp, A), g(vp, y), x();
3320
+ w === f && m === we.ASC ? y = we.DESC : y = we.ASC, g(Cp, w), g(vp, y), x();
3321
3321
  },
3322
3322
  clearFilters: () => {
3323
3323
  i.replace({ search: "" }), s && localStorage.removeItem(s);
3324
3324
  },
3325
3325
  ...p,
3326
- updateSearchParams: (A) => {
3327
- Object.keys(A).forEach((y) => {
3328
- b0.includes(A[y]) ? l.delete(y) : Array.isArray(A[y]) ? (l.delete(y), A[y].forEach((w) => {
3329
- l.append(y, w);
3330
- })) : l.set(y, A[y]);
3326
+ updateSearchParams: (w) => {
3327
+ Object.keys(w).forEach((y) => {
3328
+ b0.includes(w[y]) ? l.delete(y) : Array.isArray(w[y]) ? (l.delete(y), w[y].forEach((A) => {
3329
+ l.append(y, A);
3330
+ })) : l.set(y, w[y]);
3331
3331
  }), xp(s, JSON.stringify(c(l))), x();
3332
3332
  }
3333
3333
  };
@@ -4094,7 +4094,7 @@ const _p = () => ({
4094
4094
  profileInput: d,
4095
4095
  profileInputErrors: h,
4096
4096
  handleProfileInputChange: ({ action: b, data: E }) => {
4097
- const v = structuredClone(d), C = structuredClone(h), S = E && "targetPlatform" in E && Object.hasOwn(E, "targetPlatform") ? E.targetPlatform : "", T = v.configurations[S], A = structuredClone(
4097
+ const v = structuredClone(d), C = structuredClone(h), S = E && "targetPlatform" in E && Object.hasOwn(E, "targetPlatform") ? E.targetPlatform : "", T = v.configurations[S], w = structuredClone(
4098
4098
  o.profile.configurations[S] || T
4099
4099
  );
4100
4100
  switch (b) {
@@ -4112,21 +4112,21 @@ const _p = () => ({
4112
4112
  case M.CPU_REQUEST:
4113
4113
  case M.MEMORY_LIMIT:
4114
4114
  case M.MEMORY_REQUEST: {
4115
- const { value: y, unit: w } = E;
4115
+ const { value: y, unit: A } = E;
4116
4116
  T[b] = {
4117
4117
  ...T[b],
4118
4118
  key: b,
4119
4119
  value: y,
4120
- unit: w
4120
+ unit: A
4121
4121
  };
4122
4122
  const { keyToPersist: k, keyToPersistConfigType: N } = XA[b], { request: I, limit: O } = aO({
4123
4123
  request: {
4124
4124
  value: y,
4125
- unit: w
4125
+ unit: A
4126
4126
  },
4127
4127
  limit: {
4128
4128
  value: y,
4129
- unit: w
4129
+ unit: A
4130
4130
  },
4131
4131
  [k]: {
4132
4132
  value: T[N].value,
@@ -4142,12 +4142,12 @@ const _p = () => ({
4142
4142
  break;
4143
4143
  }
4144
4144
  case M.BUILD_TIMEOUT: {
4145
- const { value: y, unit: w } = E;
4145
+ const { value: y, unit: A } = E;
4146
4146
  T[b] = {
4147
4147
  ...T[b],
4148
4148
  key: b,
4149
4149
  value: y,
4150
- unit: w
4150
+ unit: A
4151
4151
  }, C[b] = nO(y).message;
4152
4152
  break;
4153
4153
  }
@@ -4159,7 +4159,7 @@ const _p = () => ({
4159
4159
  const y = ap[b];
4160
4160
  lp[y]?.forEach((k) => {
4161
4161
  T[k] = {
4162
- ...A[k],
4162
+ ...w[k],
4163
4163
  active: !0
4164
4164
  }, C[k] = null;
4165
4165
  });
@@ -4174,7 +4174,7 @@ const _p = () => ({
4174
4174
  lp[y]?.forEach((k) => {
4175
4175
  T[k] = {
4176
4176
  ...T[k],
4177
- ...A[k]?.defaultValue,
4177
+ ...w[k]?.defaultValue,
4178
4178
  active: !1
4179
4179
  }, C[k] = null;
4180
4180
  });
@@ -4184,7 +4184,7 @@ const _p = () => ({
4184
4184
  case "activate_cs":
4185
4185
  case "de_activate_cm":
4186
4186
  case "de_activate_cs": {
4187
- const { id: y, componentType: w } = E, k = ht[w], N = T[k].value, I = N.findIndex((D) => D.id === y);
4187
+ const { id: y, componentType: A } = E, k = ht[A], N = T[k].value, I = N.findIndex((D) => D.id === y);
4188
4188
  if (I === -1 || !N[I].canOverride) {
4189
4189
  const D = "Unable to customize this CM/CS";
4190
4190
  Ze.showToast({
@@ -4195,11 +4195,11 @@ const _p = () => ({
4195
4195
  }
4196
4196
  const O = b === "activate_cm" || b === "activate_cs";
4197
4197
  if (N[I].isOverridden = O, O) {
4198
- const V = (A[k]?.value || []).find(($) => $.id === y) || N[I];
4199
- N[I].useFormProps = V?.useFormProps, N[I].initialResponse = V?.initialResponse;
4198
+ const F = (w[k]?.value || []).find((V) => V.id === y) || N[I];
4199
+ N[I].useFormProps = F?.useFormProps, N[I].initialResponse = F?.initialResponse;
4200
4200
  } else
4201
4201
  N[I].useFormProps = N[I].defaultValue, N[I].initialResponse = N[I].defaultValueInitialResponse;
4202
- C[ht[w]] && (delete C[ht[w]][y], Object.keys(C[ht[w]]).length === 0 && (C[ht[w]] = null));
4202
+ C[ht[A]] && (delete C[ht[A]][y], Object.keys(C[ht[A]]).length === 0 && (C[ht[A]] = null));
4203
4203
  break;
4204
4204
  }
4205
4205
  case Kt.ADD_TARGET_PLATFORM: {
@@ -4210,10 +4210,10 @@ const _p = () => ({
4210
4210
  ).message : "", v.configurations[S] = o.fallbackPlatformConfigurationMap[S] || // Here need to update target platform name for each configuration
4211
4211
  Object.entries(
4212
4212
  o.fallbackPlatformConfigurationMap[hn]
4213
- ).reduce((w, [k, N]) => (w[k] = {
4213
+ ).reduce((A, [k, N]) => (A[k] = {
4214
4214
  ...N,
4215
4215
  targetPlatform: S
4216
- }, w), {}), y(v);
4216
+ }, A), {}), y(v);
4217
4217
  break;
4218
4218
  }
4219
4219
  case Kt.REMOVE_TARGET_PLATFORM: {
@@ -4230,8 +4230,8 @@ const _p = () => ({
4230
4230
  break;
4231
4231
  }
4232
4232
  case Kt.RENAME_TARGET_PLATFORM: {
4233
- const { originalPlatformName: y, newPlatformName: w, configSnapshot: k } = E, N = v.configurations[y];
4234
- if (y === w)
4233
+ const { originalPlatformName: y, newPlatformName: A, configSnapshot: k } = E, N = v.configurations[y];
4234
+ if (y === A)
4235
4235
  return;
4236
4236
  if (!N) {
4237
4237
  Ze.showToast({
@@ -4241,21 +4241,21 @@ const _p = () => ({
4241
4241
  return;
4242
4242
  }
4243
4243
  C[Lo.TARGET_PLATFORM] = wp(
4244
- w,
4244
+ A,
4245
4245
  _(v.configurations)
4246
4246
  ).message;
4247
- const I = o.fallbackPlatformConfigurationMap[w] || // Ideally should update targetPlatform for each configuration here itself but since we iterating over it again, we will do it there
4247
+ const I = o.fallbackPlatformConfigurationMap[A] || // Ideally should update targetPlatform for each configuration here itself but since we iterating over it again, we will do it there
4248
4248
  o.fallbackPlatformConfigurationMap[hn];
4249
- if (v.configurations[w] = Object.entries(
4249
+ if (v.configurations[A] = Object.entries(
4250
4250
  N
4251
4251
  ).reduce(
4252
- (O, [D, V]) => {
4253
- const $ = I[D]?.defaultValue, G = V?.active ? {} : $;
4252
+ (O, [D, F]) => {
4253
+ const V = I[D]?.defaultValue, G = F?.active ? {} : V;
4254
4254
  return O[D] = {
4255
- ...V,
4255
+ ...F,
4256
4256
  ...G,
4257
- targetPlatform: w,
4258
- defaultValue: $
4257
+ targetPlatform: A,
4258
+ defaultValue: V
4259
4259
  }, O;
4260
4260
  },
4261
4261
  {}
@@ -4268,20 +4268,20 @@ const _p = () => ({
4268
4268
  }
4269
4269
  case Kt.RESTORE_PROFILE_CONFIG_SNAPSHOT: {
4270
4270
  const { configSnapshot: y } = E;
4271
- v.configurations = y, Object.keys(C).forEach((w) => {
4272
- op[w] && (C[w] = null);
4271
+ v.configurations = y, Object.keys(C).forEach((A) => {
4272
+ op[A] && (C[A] = null);
4273
4273
  });
4274
4274
  break;
4275
4275
  }
4276
4276
  case Kt.ADD_NODE_SELECTOR_ITEM: {
4277
4277
  if (T[M.NODE_SELECTOR].key !== M.NODE_SELECTOR)
4278
4278
  break;
4279
- const w = {
4279
+ const A = {
4280
4280
  id: xr(),
4281
4281
  key: "",
4282
4282
  value: ""
4283
4283
  };
4284
- T[M.NODE_SELECTOR].value.unshift(w);
4284
+ T[M.NODE_SELECTOR].value.unshift(A);
4285
4285
  break;
4286
4286
  }
4287
4287
  case Kt.DELETE_NODE_SELECTOR_ITEM: {
@@ -4289,13 +4289,13 @@ const _p = () => ({
4289
4289
  break;
4290
4290
  const { id: y } = E;
4291
4291
  T[M.NODE_SELECTOR].value = T[M.NODE_SELECTOR].value.filter((k) => k.id !== y), delete C[M.NODE_SELECTOR]?.[y], Object.keys(C[M.NODE_SELECTOR] || {}).length === 0 && (C[M.NODE_SELECTOR] = null);
4292
- const w = T[M.NODE_SELECTOR].value.map(
4292
+ const A = T[M.NODE_SELECTOR].value.map(
4293
4293
  (k) => k.key
4294
4294
  );
4295
4295
  T[M.NODE_SELECTOR].value.forEach((k) => {
4296
4296
  Ap({
4297
4297
  selector: k,
4298
- existingKeys: w,
4298
+ existingKeys: A,
4299
4299
  profileInputErrors: C
4300
4300
  });
4301
4301
  });
@@ -4304,12 +4304,12 @@ const _p = () => ({
4304
4304
  case Kt.EDIT_NODE_SELECTOR_ITEM: {
4305
4305
  if (T[M.NODE_SELECTOR].key !== M.NODE_SELECTOR)
4306
4306
  break;
4307
- const { id: y, key: w, value: k } = E, N = T[M.NODE_SELECTOR].value.find(
4307
+ const { id: y, key: A, value: k } = E, N = T[M.NODE_SELECTOR].value.find(
4308
4308
  (O) => O.id === y
4309
4309
  );
4310
- N ? (N.key = w, N.value = k) : T[M.NODE_SELECTOR].value.unshift({
4310
+ N ? (N.key = A, N.value = k) : T[M.NODE_SELECTOR].value.unshift({
4311
4311
  id: y,
4312
- key: w,
4312
+ key: A,
4313
4313
  value: k
4314
4314
  });
4315
4315
  const I = T[M.NODE_SELECTOR].value.map(
@@ -4327,48 +4327,48 @@ const _p = () => ({
4327
4327
  case Kt.ADD_TOLERANCE_ITEM: {
4328
4328
  if (T[M.TOLERANCE].key !== M.TOLERANCE)
4329
4329
  break;
4330
- const w = {
4330
+ const A = {
4331
4331
  id: xr(),
4332
4332
  key: "",
4333
4333
  effect: ZA,
4334
4334
  operator: QA,
4335
4335
  value: ""
4336
4336
  };
4337
- T[M.TOLERANCE].value.unshift(w);
4337
+ T[M.TOLERANCE].value.unshift(A);
4338
4338
  break;
4339
4339
  }
4340
4340
  case Kt.DELETE_TOLERANCE_ITEM: {
4341
4341
  if (T[M.TOLERANCE].key !== M.TOLERANCE)
4342
4342
  break;
4343
4343
  const { id: y } = E;
4344
- T[M.TOLERANCE].value = T[M.TOLERANCE].value.filter((w) => w.id !== y), delete C[M.TOLERANCE]?.[y], Object.keys(C[M.TOLERANCE] || {}).length === 0 && (C[M.TOLERANCE] = null);
4344
+ T[M.TOLERANCE].value = T[M.TOLERANCE].value.filter((A) => A.id !== y), delete C[M.TOLERANCE]?.[y], Object.keys(C[M.TOLERANCE] || {}).length === 0 && (C[M.TOLERANCE] = null);
4345
4345
  break;
4346
4346
  }
4347
4347
  case Kt.EDIT_TOLERANCE_ITEM: {
4348
4348
  if (T[M.TOLERANCE].key !== M.TOLERANCE)
4349
4349
  break;
4350
- const { id: y, key: w, effect: k, operator: N, value: I } = E, O = T[M.TOLERANCE].value.find(
4350
+ const { id: y, key: A, effect: k, operator: N, value: I } = E, O = T[M.TOLERANCE].value.find(
4351
4351
  (Y) => Y.id === y
4352
4352
  );
4353
- O ? (O.key = w, O.effect = k, O.operator = N, O.value = I, N === Fn.EXISTS && delete O.value) : T[M.TOLERANCE].value.unshift({
4353
+ O ? (O.key = A, O.effect = k, O.operator = N, O.value = I, N === Fn.EXISTS && delete O.value) : T[M.TOLERANCE].value.unshift({
4354
4354
  id: y,
4355
- key: w,
4355
+ key: A,
4356
4356
  effect: k,
4357
4357
  operator: N,
4358
4358
  value: I
4359
4359
  });
4360
- const D = Of(w).messages, V = N !== Fn.EXISTS ? sb(I).messages : [], G = !(N === Fn.EXISTS ? !w : !w && !I) && (D.length > 0 || V.length > 0);
4360
+ const D = Of(A).messages, F = N !== Fn.EXISTS ? sb(I).messages : [], G = !(N === Fn.EXISTS ? !A : !A && !I) && (D.length > 0 || F.length > 0);
4361
4361
  C[M.TOLERANCE]?.[y] || (C[M.TOLERANCE] || (C[M.TOLERANCE] = {}), C[M.TOLERANCE][y] = {}), C[M.TOLERANCE][y] = {
4362
4362
  ...D.length > 0 && { [Yu.KEY]: D },
4363
- ...V.length > 0 && { [Yu.VALUE]: V }
4363
+ ...F.length > 0 && { [Yu.VALUE]: F }
4364
4364
  }, G || (delete C[M.TOLERANCE][y], Object.keys(C[M.TOLERANCE]).length === 0 && (C[M.TOLERANCE] = null));
4365
4365
  break;
4366
4366
  }
4367
4367
  case Kt.ADD_CM_CS_ITEM: {
4368
- const { id: y, infraConfigType: w } = E, N = {
4368
+ const { id: y, infraConfigType: A } = E, N = {
4369
4369
  useFormProps: Vm({
4370
4370
  configMapSecretData: null,
4371
- componentType: $0[w],
4371
+ componentType: $0[A],
4372
4372
  cmSecretStateLabel: ld.BASE,
4373
4373
  isJob: !0,
4374
4374
  fallbackMergeStrategy: null
@@ -4380,11 +4380,11 @@ const _p = () => ({
4380
4380
  defaultValue: null,
4381
4381
  defaultValueInitialResponse: null
4382
4382
  };
4383
- T[w].value.push(N);
4383
+ T[A].value.push(N);
4384
4384
  break;
4385
4385
  }
4386
4386
  case Kt.SYNC_CM_CS_ITEM: {
4387
- const { id: y, value: w, hasError: k, componentType: N } = E, I = T[ht[N]].value.findIndex((D) => D.id === y);
4387
+ const { id: y, value: A, hasError: k, componentType: N } = E, I = T[ht[N]].value.findIndex((D) => D.id === y);
4388
4388
  if (I === -1) {
4389
4389
  Ze.showToast({
4390
4390
  variant: Re.error,
@@ -4392,14 +4392,14 @@ const _p = () => ({
4392
4392
  }), Ll(new Error("ConfigMap does not exist"));
4393
4393
  return;
4394
4394
  }
4395
- T[ht[N]].value[I].useFormProps = w, C[ht[N]] || (C[ht[N]] = {}), k ? C[ht[N]][y] = !0 : C[ht[N]][y] && delete C[ht[N]][y], Object.keys(
4395
+ T[ht[N]].value[I].useFormProps = A, C[ht[N]] || (C[ht[N]] = {}), k ? C[ht[N]][y] = !0 : C[ht[N]][y] && delete C[ht[N]][y], Object.keys(
4396
4396
  C[ht[N]]
4397
4397
  ).length === 0 && (C[ht[N]] = null);
4398
4398
  break;
4399
4399
  }
4400
4400
  case Kt.DELETE_CM_CS_ITEM: {
4401
- const { id: y, componentType: w } = E, k = T[ht[w]].value.filter((N) => N.id !== y);
4402
- T[ht[w]].value = k, C[ht[w]] && (delete C[ht[w]][y], Object.keys(C[ht[w]]).length === 0 && (C[ht[w]] = null));
4401
+ const { id: y, componentType: A } = E, k = T[ht[A]].value.filter((N) => N.id !== y);
4402
+ T[ht[A]].value = k, C[ht[A]] && (delete C[ht[A]][y], Object.keys(C[ht[A]]).length === 0 && (C[ht[A]] = null));
4403
4403
  break;
4404
4404
  }
4405
4405
  }
@@ -7681,15 +7681,15 @@ const TI = {
7681
7681
  const b = lR(l, c.category, c.subCategory, m);
7682
7682
  if (b)
7683
7683
  return /* @__PURE__ */ a.jsx(vt, { ...b, imageType: ki.Large });
7684
- const { headers: E, rows: v, defaultSortIndex: C, hasExpandableRows: S } = m || oR(l, c.category, c.subCategory, u, r), { entities: T, lastScanTimeString: A, scanToolName: y, scanToolUrl: w } = m || aR(l, c.category, c.subCategory);
7684
+ const { headers: E, rows: v, defaultSortIndex: C, hasExpandableRows: S } = m || oR(l, c.category, c.subCategory, u, r), { entities: T, lastScanTimeString: w, scanToolName: y, scanToolUrl: A } = m || aR(l, c.category, c.subCategory);
7685
7685
  return /* @__PURE__ */ a.jsxs("div", { className: "flexbox-col p-20 dc__gap-16", children: [
7686
7686
  T?.length ? /* @__PURE__ */ a.jsx(
7687
7687
  BI,
7688
7688
  {
7689
7689
  entities: T,
7690
- lastScanTimeString: A,
7690
+ lastScanTimeString: w,
7691
7691
  scanToolName: y,
7692
- scanToolUrl: w
7692
+ scanToolUrl: A
7693
7693
  },
7694
7694
  `${c.category}-${c.subCategory}`
7695
7695
  ) : null,
@@ -8188,12 +8188,12 @@ const fR = {
8188
8188
  ...p
8189
8189
  }) => {
8190
8190
  const _ = ie(null), [g, x] = R(""), b = (T) => {
8191
- const A = _.current;
8192
- A && (A.style.height = `${T}px`);
8191
+ const w = _.current;
8192
+ w && (w.style.height = `${T}px`);
8193
8193
  }, E = () => {
8194
8194
  const T = parseInt(_.current.style.height, 10);
8195
- let A = _.current.scrollHeight || 0;
8196
- A < T || T > Wd || (A < Yd && (A = Yd), A > Wd && (A = Wd), b(A));
8195
+ let w = _.current.scrollHeight || 0;
8196
+ w < T || T > Wd || (w < Yd && (w = Yd), w > Wd && (w = Wd), b(w));
8197
8197
  };
8198
8198
  P(() => {
8199
8199
  x(m);
@@ -8202,8 +8202,8 @@ const fR = {
8202
8202
  x(T.target.value), p.onChange?.(T);
8203
8203
  }, C = (T) => {
8204
8204
  if (d) {
8205
- const A = T.target.value?.trim();
8206
- T.target.value !== A && (T.stopPropagation(), T.target.value = A, p.onChange(T));
8205
+ const w = T.target.value?.trim();
8206
+ T.target.value !== w && (T.stopPropagation(), T.target.value = w, p.onChange(T));
8207
8207
  }
8208
8208
  typeof c == "function" && c(T);
8209
8209
  }, S = (T) => {
@@ -8989,12 +8989,12 @@ const wR = (t) => os(`${X.ATTRIBUTES_USER}/${X.UPDATE}`, t), AR = ({ className:
8989
8989
  showAnnouncementHeader: u,
8990
8990
  tippyProps: h
8991
8991
  }) => {
8992
- const { loginCount: f, setLoginCount: m, showGettingStartedCard: p, setShowGettingStartedCard: _, setGettingStartedClicked: g } = hd(), { isTippyCustomized: x, tippyRedirectLink: b, TippyIcon: E, tippyMessage: v, onClickTippyButton: C, additionalContent: S } = h || {}, [T, A] = R(!1), [y, w] = R(!1), { email: k } = Rb(), [N, I] = R(
8992
+ const { loginCount: f, setLoginCount: m, showGettingStartedCard: p, setShowGettingStartedCard: _, setGettingStartedClicked: g } = hd(), { isTippyCustomized: x, tippyRedirectLink: b, TippyIcon: E, tippyMessage: v, onClickTippyButton: C, additionalContent: S } = h || {}, [T, w] = R(!1), [y, A] = R(!1), { email: k } = Rb(), [N, I] = R(
8993
8993
  {
8994
8994
  serverInfo: void 0,
8995
8995
  fetchingServerInfo: !1
8996
8996
  }
8997
- ), [O, D] = R(0), V = async () => {
8997
+ ), [O, D] = R(0), F = async () => {
8998
8998
  try {
8999
8999
  const { result: q } = await NR(!0, !0);
9000
9000
  I({
@@ -9011,12 +9011,12 @@ const wR = (t) => os(`${X.ATTRIBUTES_USER}/${X.UPDATE}`, t), AR = ({ className:
9011
9011
  P(() => {
9012
9012
  D(+localStorage.getItem("clickedOkay"));
9013
9013
  }, []);
9014
- const $ = (q) => {
9014
+ const V = (q) => {
9015
9015
  _(!1), q && m(+q);
9016
9016
  }, G = () => {
9017
- w(!y), T && A(!1), Jl("clickedOkay", 1), $();
9017
+ A(!y), T && w(!1), Jl("clickedOkay", 1), V();
9018
9018
  }, Y = async (q) => {
9019
- !window._env_.K8S_CLIENT && N.serverInfo?.installationType !== Xl.ENTERPRISE && await V(), A(!T), y && w(!1), Jl("clickedOkay", 1), $(), await Qu(q, Pu.HELP), Ei.event({
9019
+ !window._env_.K8S_CLIENT && N.serverInfo?.installationType !== Xl.ENTERPRISE && await F(), w(!T), y && A(!1), Jl("clickedOkay", 1), V(), await Qu(q, Pu.HELP), Ei.event({
9020
9020
  category: "Main Navigation",
9021
9021
  action: "Help Clicked"
9022
9022
  });
@@ -9113,7 +9113,7 @@ const wR = (t) => os(`${X.ATTRIBUTES_USER}/${X.UPDATE}`, t), AR = ({ className:
9113
9113
  RR,
9114
9114
  {
9115
9115
  className: `help-card__more-option ${window._env_.K8S_CLIENT ? "k8s-client-view" : ""}`,
9116
- setShowHelpCard: A,
9116
+ setShowHelpCard: w,
9117
9117
  serverInfo: N.serverInfo,
9118
9118
  fetchingServerInfo: N.fetchingServerInfo,
9119
9119
  setGettingStartedClicked: g,
@@ -9125,7 +9125,7 @@ const wR = (t) => os(`${X.ATTRIBUTES_USER}/${X.UPDATE}`, t), AR = ({ className:
9125
9125
  {
9126
9126
  className: "w-300",
9127
9127
  showHelpCard: !1,
9128
- hideGettingStartedCard: $,
9128
+ hideGettingStartedCard: V,
9129
9129
  loginCount: f
9130
9130
  }
9131
9131
  ),
@@ -9134,7 +9134,7 @@ const wR = (t) => os(`${X.ATTRIBUTES_USER}/${X.UPDATE}`, t), AR = ({ className:
9134
9134
  {
9135
9135
  className: "logout-card__more-option",
9136
9136
  userFirstLetter: k,
9137
- setShowLogOutCard: w,
9137
+ setShowLogOutCard: A,
9138
9138
  showLogOutCard: y
9139
9139
  }
9140
9140
  ),
@@ -9954,11 +9954,11 @@ const XR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
9954
9954
  if (!d)
9955
9955
  return;
9956
9956
  const C = JSON.parse(e), S = C.eventId, T = C.condition;
9957
- gp(S).then((A) => {
9958
- const y = A.result;
9957
+ gp(S).then((w) => {
9958
+ const y = w.result;
9959
9959
  f(y.name), p(Yp(y.name, T, y.selectors)), g(!1);
9960
- }).catch((A) => {
9961
- throw A;
9960
+ }).catch((w) => {
9961
+ throw w;
9962
9962
  });
9963
9963
  }
9964
9964
  function v() {
@@ -10080,7 +10080,7 @@ const XR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
10080
10080
  runSource: f,
10081
10081
  resourceId: m
10082
10082
  }) => {
10083
- const { path: p, params: _ } = rn(), { pathname: g } = zn(), x = g.split("/").pop(), { envId: b, ...E } = rs(), v = c === Xe.CD || c === Xe.GROUP_CD, C = v ? "triggerId" : "buildId", S = m === f?.id, T = ie(null), A = () => {
10083
+ const { path: p, params: _ } = rn(), { pathname: g } = zn(), x = g.split("/").pop(), { envId: b, ...E } = rs(), v = c === Xe.CD || c === Xe.GROUP_CD, C = v ? "triggerId" : "buildId", S = m === f?.id, T = ie(null), w = () => {
10084
10084
  const N = {
10085
10085
  ...E,
10086
10086
  envId: b,
@@ -10093,8 +10093,8 @@ const XR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
10093
10093
  P(() => {
10094
10094
  y();
10095
10095
  }, [T]);
10096
- const w = _[C], k = (N) => {
10097
- +w == +t && (T.current = N);
10096
+ const A = _[C], k = (N) => {
10097
+ +A == +t && (T.current = N);
10098
10098
  };
10099
10099
  return /* @__PURE__ */ a.jsx(
10100
10100
  Wt,
@@ -10122,7 +10122,7 @@ const XR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
10122
10122
  children: /* @__PURE__ */ a.jsx(
10123
10123
  $t,
10124
10124
  {
10125
- to: A,
10125
+ to: w,
10126
10126
  className: "w-100 deployment-history-card-container p-8 br-4",
10127
10127
  "data-testid": u,
10128
10128
  activeClassName: "active",
@@ -10220,10 +10220,10 @@ const XR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
10220
10220
  ] }),
10221
10221
  /* @__PURE__ */ a.jsxs("div", { className: "flex column top left flex-grow-1 dc__overflow-auto p-8", children: [
10222
10222
  r === Dn.SUCCESS && /* @__PURE__ */ a.jsx(ik, { handleViewAllHistory: o }),
10223
- Array.from(s).sort(([S], [T]) => T - S).map(([S, T], A) => /* @__PURE__ */ a.jsx(
10223
+ Array.from(s).sort(([S], [T]) => T - S).map(([S, T], w) => /* @__PURE__ */ a.jsx(
10224
10224
  rk,
10225
10225
  {
10226
- dataTestId: `deployment-history-${A}`,
10226
+ dataTestId: `deployment-history-${w}`,
10227
10227
  id: S,
10228
10228
  status: T.status,
10229
10229
  startedOn: T.startedOn,
@@ -10387,30 +10387,30 @@ const XR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
10387
10387
  return s.length ? s : null;
10388
10388
  }, R8 = (t) => {
10389
10389
  const e = ie(t?.initialValues || {}), [s, n] = R(e.current), [i, r] = R({}), [o, l] = R({}), [c, d] = R({}), [u, h] = R({}), f = (S = s) => t?.validations ? typeof t.validations == "function" ? t.validations(S) : t.validations : {}, m = (S) => {
10390
- const T = f(S), A = {};
10390
+ const T = f(S), w = {};
10391
10391
  return Object.keys(T || {}).forEach((y) => {
10392
- const w = T[y], k = Wr(S[y], w);
10393
- k && (A[y] = k);
10394
- }), A;
10395
- }, p = (S, T) => (A) => {
10396
- A?.preventDefault(), Object.keys(u).length !== Object.keys(s).length && h(Object.keys(s).reduce((w, k) => ({ ...w, [k]: !0 }), {}));
10392
+ const A = T[y], k = Wr(S[y], A);
10393
+ k && (w[y] = k);
10394
+ }), w;
10395
+ }, p = (S, T) => (w) => {
10396
+ w?.preventDefault(), Object.keys(u).length !== Object.keys(s).length && h(Object.keys(s).reduce((A, k) => ({ ...A, [k]: !0 }), {}));
10397
10397
  const y = m(s);
10398
10398
  if (Object.keys(y).length) {
10399
- d(y), T?.(y, A);
10399
+ d(y), T?.(y, w);
10400
10400
  return;
10401
10401
  }
10402
- d({}), S(s, A);
10402
+ d({}), S(s, w);
10403
10403
  };
10404
10404
  P(() => {
10405
10405
  t?.shouldValidateOnMount && p(Bt)();
10406
10406
  }, []);
10407
- const _ = (S, T, A) => (y) => {
10408
- const w = A ? y : y.target.value, k = T ? T(w) : w;
10407
+ const _ = (S, T, w) => (y) => {
10408
+ const A = w ? y : y.target.value, k = T ? T(A) : A;
10409
10409
  n((I) => {
10410
10410
  const O = { ...I, [S]: k }, D = t?.validationMode ?? "onChange";
10411
10411
  if (D === "onChange" || D === "all" || u[S] || c[S]) {
10412
- const V = f(O), $ = Wr(k, V[S]);
10413
- d({ ...c, [S]: $ });
10412
+ const F = f(O), V = Wr(k, F[S]);
10413
+ d({ ...c, [S]: V });
10414
10414
  }
10415
10415
  return O;
10416
10416
  });
@@ -10418,8 +10418,8 @@ const XR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
10418
10418
  r((I) => ({ ...I, [S]: !Ao(N[S], k) }));
10419
10419
  }, g = (S, T) => () => {
10420
10420
  if (T || n({ ...s, [S]: s[S]?.trim() }), t?.validationMode === "onBlur" || t?.validationMode === "all") {
10421
- const y = f(), w = Wr(s[S], y[S]);
10422
- w && !u[S] && h({ ...u, [S]: !0 }), d({ ...c, [S]: w });
10421
+ const y = f(), A = Wr(s[S], y[S]);
10422
+ A && !u[S] && h({ ...u, [S]: !0 }), d({ ...c, [S]: A });
10423
10423
  }
10424
10424
  }, x = (S) => () => {
10425
10425
  l((T) => ({ ...T, [S]: !0 }));
@@ -10439,46 +10439,46 @@ const XR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
10439
10439
  trigger: (S) => {
10440
10440
  const T = f();
10441
10441
  if (Array.isArray(S)) {
10442
- const A = {}, y = S.map((w) => {
10442
+ const w = {}, y = S.map((A) => {
10443
10443
  if (T) {
10444
- const k = T[w], N = Wr(s[w], k);
10445
- return A[w] = N, N;
10444
+ const k = T[A], N = Wr(s[A], k);
10445
+ return w[A] = N, N;
10446
10446
  }
10447
10447
  return null;
10448
10448
  });
10449
- return Object.keys(A).length && d({ ...c, ...A }), y;
10449
+ return Object.keys(w).length && d({ ...c, ...w }), y;
10450
10450
  }
10451
10451
  if (T) {
10452
- const A = T[S], y = Wr(s[S], A);
10452
+ const w = T[S], y = Wr(s[S], w);
10453
10453
  return y && d({ ...c, [S]: y }), y;
10454
10454
  }
10455
10455
  return null;
10456
10456
  },
10457
- setValue: (S, T, A) => {
10458
- if (n((y) => ({ ...y, [S]: T })), A?.shouldDirty) {
10457
+ setValue: (S, T, w) => {
10458
+ if (n((y) => ({ ...y, [S]: T })), w?.shouldDirty) {
10459
10459
  const y = e.current;
10460
- r((w) => ({ ...w, [S]: !Ao(y[S], T) }));
10460
+ r((A) => ({ ...A, [S]: !Ao(y[S], T) }));
10461
10461
  }
10462
- A?.shouldTouch && l((y) => ({ ...y, [S]: !0 }));
10462
+ w?.shouldTouch && l((y) => ({ ...y, [S]: !0 }));
10463
10463
  },
10464
10464
  reset: (S, T) => {
10465
10465
  const {
10466
- keepDirty: A = !1,
10466
+ keepDirty: w = !1,
10467
10467
  keepTouched: y = !1,
10468
- keepErrors: w = !1,
10468
+ keepErrors: A = !1,
10469
10469
  triggerDirty: k = !1,
10470
10470
  keepInitialValues: N = !1
10471
10471
  } = T ?? {};
10472
- if (n(S), N || (e.current = S), w || d({}), k) {
10472
+ if (n(S), N || (e.current = S), A || d({}), k) {
10473
10473
  const I = e.current, O = Object.keys(S).reduce(
10474
- (D, V) => ({
10474
+ (D, F) => ({
10475
10475
  ...D,
10476
- [V]: !Ao(S[V], I[V])
10476
+ [F]: !Ao(S[F], I[F])
10477
10477
  }),
10478
10478
  {}
10479
10479
  );
10480
10480
  r(O);
10481
- } else A || r({});
10481
+ } else w || r({});
10482
10482
  y || l({});
10483
10483
  },
10484
10484
  /** An object representing additional form state. */
@@ -11030,7 +11030,7 @@ const k8 = (t, e, s) => xe(`app/history/deployed-configuration/${t}/${e}/${s}`),
11030
11030
  }, Ok = ({ triggerDetails: t, isBlobStorageConfigured: e, parentType: s, fullScreenView: n }) => {
11031
11031
  const { pipelineId: i, envId: r, appId: o } = rs(), l = s === Xe.CI ? `${Ml}/${X.CI_CONFIG_GET}/${i}/workflow/${t.id}/logs` : `${Ml}/${X.CD_MATERIAL_GET}/workflow/logs/${o}/${r}/${i}/${t.id}`, [c, d, u] = Ak(
11032
11032
  t.podStatus && t.podStatus !== zd.PENDING && l
11033
- ), [h, f] = R([]), [m, p] = R([]), [_, g] = R(0), [x, b] = R([]), { searchKey: E, handleSearch: v } = J0(), C = m.length > 0, S = de(() => h.every((Q) => Q.isOpen), [h]), T = S ? "Collapse all stages" : "Expand all stages", { registerShortcut: A, unregisterShortcut: y } = da(), w = c[0]?.startsWith(Hp) || !1;
11033
+ ), [h, f] = R([]), [m, p] = R([]), [_, g] = R(0), [x, b] = R([]), { searchKey: E, handleSearch: v } = J0(), C = m.length > 0, S = de(() => h.every((Q) => Q.isOpen), [h]), T = S ? "Collapse all stages" : "Expand all stages", { registerShortcut: w, unregisterShortcut: y } = da(), A = c[0]?.startsWith(Hp) || !1;
11034
11034
  function k({
11035
11035
  log: Q,
11036
11036
  currentIndex: q = -1,
@@ -11038,13 +11038,13 @@ const k8 = (t, e, s) => xe(`app/history/deployed-configuration/${t}/${e}/${s}`),
11038
11038
  searchMatchResults: Ee = null,
11039
11039
  searchIndex: je = ""
11040
11040
  }) {
11041
- let U = !1;
11041
+ let $ = !1;
11042
11042
  try {
11043
- if (Q = Q.replace(/\[[.]*m/, (J) => `\x1B[${J}m`), Se && w) {
11043
+ if (Q = Q.replace(/\[[.]*m/, (J) => `\x1B[${J}m`), Se && A) {
11044
11044
  const J = Q.split(sp), _e = Q.match(sp) || [], he = new RegExp(`(${WO(Se)})`, "ig");
11045
11045
  Q = J.reduce((oe, xt, Ut) => {
11046
11046
  try {
11047
- U = U || he.test(xt), oe.push(
11047
+ $ = $ || he.test(xt), oe.push(
11048
11048
  xt.replace(he, (St) => (je && Ee?.push(je), `\x1B[0m\x1B[48;2;${Ee && q === Ee.length - 1 ? "0;102;204" : "197;141;54"}m${St}\x1B[0m${Ut > 0 ? _e[Ut - 1] : ""}`))
11049
11049
  );
11050
11050
  } catch {
@@ -11055,25 +11055,25 @@ const k8 = (t, e, s) => xe(`app/history/deployed-configuration/${t}/${e}/${s}`),
11055
11055
  }
11056
11056
  return {
11057
11057
  __html: new gN().ansi_to_html(Q),
11058
- isSearchKeyPresent: U
11058
+ isSearchKeyPresent: $
11059
11059
  };
11060
11060
  } catch {
11061
- return { __html: Q, isSearchKeyPresent: U };
11061
+ return { __html: Q, isSearchKeyPresent: $ };
11062
11062
  }
11063
11063
  }
11064
11064
  const N = (Q, q, Se, Ee) => {
11065
- const je = h.length === 0, U = q ?? !0;
11066
- return Ee ? Se || U : je ? Q !== Zi.SUCCESS || Se : U;
11065
+ const je = h.length === 0, $ = q ?? !0;
11066
+ return Ee ? Se || $ : je ? Q !== Zi.SUCCESS || Se : $;
11067
11067
  }, I = t.podStatus === zd.PENDING || !!(d && d.readyState <= 1), O = (Q, q) => {
11068
11068
  const Se = h.reduce(
11069
- (F, J) => (F[J.stage] || (F[J.stage] = {}), F[J.stage][J.startTime] = J, F),
11069
+ (U, J) => (U[J.stage] || (U[J.stage] = {}), U[J.stage][J.startTime] = J, U),
11070
11070
  {}
11071
- ), Ee = {}, je = [], U = c.reduce((F, J, _e) => {
11071
+ ), Ee = {}, je = [], $ = c.reduce((U, J, _e) => {
11072
11072
  if (J.startsWith(Hp))
11073
11073
  try {
11074
11074
  const { stage: he, startTime: ke, endTime: oe, status: xt, metadata: Ut } = JSON.parse(
11075
11075
  J.split(zR)[1]
11076
- ), St = F.find((Vs) => Vs.stage === he && Vs.startTime === ke), yn = Se[he]?.[ke] ?? {};
11076
+ ), St = U.find((Vs) => Vs.stage === he && Vs.startTime === ke), yn = Se[he]?.[ke] ?? {};
11077
11077
  if (St)
11078
11078
  St.endTime = oe, St.status = xt, St.isOpen = N(
11079
11079
  xt,
@@ -11083,7 +11083,7 @@ const k8 = (t, e, s) => xe(`app/history/deployed-configuration/${t}/${e}/${s}`),
11083
11083
  );
11084
11084
  else {
11085
11085
  const Vs = I ? Zi.PROGRESSING : Zi.FAILURE;
11086
- F.push({
11086
+ U.push({
11087
11087
  stage: he || `Untitled stage ${_e + 1}`,
11088
11088
  startTime: ke || "",
11089
11089
  endTime: oe || "",
@@ -11100,13 +11100,13 @@ const k8 = (t, e, s) => xe(`app/history/deployed-configuration/${t}/${e}/${s}`),
11100
11100
  logs: []
11101
11101
  });
11102
11102
  }
11103
- return F;
11103
+ return U;
11104
11104
  } catch {
11105
- return F;
11105
+ return U;
11106
11106
  }
11107
- if (F.length > 0) {
11108
- const he = F[F.length - 1], ke = Db({
11109
- stageIndex: F.length - 1,
11107
+ if (U.length > 0) {
11108
+ const he = U[U.length - 1], ke = Db({
11109
+ stageIndex: U.length - 1,
11110
11110
  lineNumberInsideStage: he.logs.length
11111
11111
  }), { __html: oe, isSearchKeyPresent: xt } = k({
11112
11112
  log: J,
@@ -11122,14 +11122,14 @@ const k8 = (t, e, s) => xe(`app/history/deployed-configuration/${t}/${e}/${s}`),
11122
11122
  !!q
11123
11123
  ), Ee[he.stage] || (Ee[he.stage] = {}), Ee[he.stage][he.startTime] = !0);
11124
11124
  }
11125
- return F;
11125
+ return U;
11126
11126
  }, []);
11127
- return p(je), U;
11127
+ return p(je), $;
11128
11128
  };
11129
11129
  P(() => {
11130
11130
  if (!c?.length)
11131
11131
  return;
11132
- if (!w) {
11132
+ if (!A) {
11133
11133
  const q = c.map((Se) => k({ log: Se }).__html);
11134
11134
  b(q);
11135
11135
  return;
@@ -11145,27 +11145,27 @@ const k8 = (t, e, s) => xe(`app/history/deployed-configuration/${t}/${e}/${s}`),
11145
11145
  }))
11146
11146
  );
11147
11147
  }, [S]);
11148
- P(() => (A({ callback: D, keys: ["E"] }), () => {
11148
+ P(() => (w({ callback: D, keys: ["E"] }), () => {
11149
11149
  y(["E"]);
11150
11150
  }), [D]);
11151
- const V = (Q, q = E) => {
11151
+ const F = (Q, q = E) => {
11152
11152
  if (m.length > 0 || Q === "reset") {
11153
11153
  let Se = 0;
11154
11154
  Q === "next" ? Se = (_ + 1) % m.length : Q === "prev" && (Se = _ > 0 ? _ - 1 : m.length - 1), g(Se), f(O(Se, q));
11155
11155
  }
11156
- }, $ = () => {
11157
- V("next");
11156
+ }, V = () => {
11157
+ F("next");
11158
11158
  }, G = () => {
11159
- V("prev");
11159
+ F("prev");
11160
11160
  }, Y = (Q) => {
11161
- v(Q), E === Q ? $() : V("reset", Q);
11161
+ v(Q), E === Q ? V() : F("reset", Q);
11162
11162
  }, ee = (Q) => {
11163
11163
  const q = structuredClone(h);
11164
11164
  q[Q].isOpen = !1, f(q);
11165
11165
  }, ue = (Q) => {
11166
11166
  const q = structuredClone(h);
11167
11167
  q[Q].isOpen = !0, f(q);
11168
- }, We = () => w ? /* @__PURE__ */ a.jsxs(
11168
+ }, We = () => A ? /* @__PURE__ */ a.jsxs(
11169
11169
  "div",
11170
11170
  {
11171
11171
  className: "flexbox-col pb-20 logs-renderer-container flex-grow-1",
@@ -11220,7 +11220,7 @@ const k8 = (t, e, s) => xe(`app/history/deployed-configuration/${t}/${e}/${s}`),
11220
11220
  {
11221
11221
  type: "button",
11222
11222
  className: `dc__unset-button-styles flex p-6 br-4 dc__bg-n0--opacity-0_2 ${C ? "" : "dc__disabled"}`,
11223
- onClick: $,
11223
+ onClick: V,
11224
11224
  "data-testid": "logs-next-search-match",
11225
11225
  "aria-label": "Focus the next search result match",
11226
11226
  disabled: !C,
@@ -11254,7 +11254,7 @@ const k8 = (t, e, s) => xe(`app/history/deployed-configuration/${t}/${e}/${s}`),
11254
11254
  }
11255
11255
  ),
11256
11256
  /* @__PURE__ */ a.jsx("div", { className: "flexbox-col px-12 dc__gap-4", children: h.map(
11257
- ({ stage: Q, isOpen: q, logs: Se, endTime: Ee, startTime: je, status: U, targetPlatforms: F }, J) => /* @__PURE__ */ a.jsx(
11257
+ ({ stage: Q, isOpen: q, logs: Se, endTime: Ee, startTime: je, status: $, targetPlatforms: U }, J) => /* @__PURE__ */ a.jsx(
11258
11258
  Nk,
11259
11259
  {
11260
11260
  stage: Q,
@@ -11262,8 +11262,8 @@ const k8 = (t, e, s) => xe(`app/history/deployed-configuration/${t}/${e}/${s}`),
11262
11262
  logs: Se,
11263
11263
  endTime: Ee,
11264
11264
  startTime: je,
11265
- targetPlatforms: F,
11266
- status: U,
11265
+ targetPlatforms: U,
11266
+ status: $,
11267
11267
  handleStageClose: ee,
11268
11268
  handleStageOpen: ue,
11269
11269
  stageIndex: J,
@@ -12073,12 +12073,12 @@ const Uk = ({
12073
12073
  g.current = o;
12074
12074
  }, [o]);
12075
12075
  const S = (y) => {
12076
- const w = g.current && l ? l(y) : kp(y);
12077
- v(), w.deploymentStatus === ye.INPROGRESS ? Fa = setTimeout(() => {
12076
+ const A = g.current && l ? l(y) : kp(y);
12077
+ v(), A.deploymentStatus === ye.INPROGRESS ? Fa = setTimeout(() => {
12078
12078
  C();
12079
12079
  }, 1e4) : Fa = setTimeout(() => {
12080
12080
  C();
12081
- }, 3e4), E(w);
12081
+ }, 3e4), E(A);
12082
12082
  }, T = () => {
12083
12083
  if (s) {
12084
12084
  d.push({
@@ -12091,7 +12091,7 @@ const Uk = ({
12091
12091
  pathname: `${Be.APP}/${h}/${Be.APP_DETAILS}/${f}/${Be.APP_DETAILS_K8}`,
12092
12092
  search: Vp
12093
12093
  });
12094
- }, A = () => !g.current && !b?.deploymentStatusBreakdown?.APP_HEALTH?.isCollapsed ? /* @__PURE__ */ a.jsx("div", { className: "h-100 flex", children: /* @__PURE__ */ a.jsx(
12094
+ }, w = () => !g.current && !b?.deploymentStatusBreakdown?.APP_HEALTH?.isCollapsed ? /* @__PURE__ */ a.jsx("div", { className: "h-100 flex", children: /* @__PURE__ */ a.jsx(
12095
12095
  Ik,
12096
12096
  {
12097
12097
  title: at.DEPLOYMENT_DETAILS_SETPS_PROGRESSING.TITLE,
@@ -12120,7 +12120,7 @@ const Uk = ({
12120
12120
  title: at.DEPLOYMENT_DETAILS_SETPS_FAILED.TITLE,
12121
12121
  subTitle: at.DEPLOYMENT_DETAILS_SETPS_FAILED.SUBTITLE
12122
12122
  }
12123
- ) }) : p ? /* @__PURE__ */ a.jsx(st, { pageLoader: !0 }) : A();
12123
+ ) }) : p ? /* @__PURE__ */ a.jsx(st, { pageLoader: !0 }) : w();
12124
12124
  }, Gf = ({ expand: t, onTransitionEnd: e, children: s }) => /* @__PURE__ */ a.jsx(f0, { children: t && /* @__PURE__ */ a.jsx(
12125
12125
  mr.div,
12126
12126
  {
@@ -12322,7 +12322,7 @@ const $b = {
12322
12322
  }
12323
12323
  ) });
12324
12324
  }, b = () => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
12325
- s.map(({ title: v, href: C, onClick: S, diffState: T, Icon: A }) => {
12325
+ s.map(({ title: v, href: C, onClick: S, diffState: T, Icon: w }) => {
12326
12326
  const y = d ? ao[T] : ao.hasDiff;
12327
12327
  return /* @__PURE__ */ a.jsxs(
12328
12328
  $t,
@@ -12332,7 +12332,7 @@ const $b = {
12332
12332
  to: C,
12333
12333
  onClick: S,
12334
12334
  children: [
12335
- A && /* @__PURE__ */ a.jsx(A, { className: "icon-dim-16 dc__nav-item__start-icon dc__no-shrink" }),
12335
+ w && /* @__PURE__ */ a.jsx(w, { className: "icon-dim-16 dc__nav-item__start-icon dc__no-shrink" }),
12336
12336
  /* @__PURE__ */ a.jsx("span", { className: "dc__truncate flex-grow-1", children: v }),
12337
12337
  !u && T !== gs.NO_DIFF && /* @__PURE__ */ a.jsx(
12338
12338
  fe,
@@ -13058,7 +13058,7 @@ const $b = {
13058
13058
  g.isAppAdmin,
13059
13059
  i,
13060
13060
  l
13061
- ), A = ug(
13061
+ ), w = ug(
13062
13062
  _.secretsData,
13063
13063
  g.secretsData,
13064
13064
  Ls.Secret,
@@ -13070,8 +13070,8 @@ const $b = {
13070
13070
  E,
13071
13071
  ...S ? [S] : [],
13072
13072
  ...T,
13073
- ...A
13074
- ], w = [
13073
+ ...w
13074
+ ], A = [
13075
13075
  {
13076
13076
  title: E.title,
13077
13077
  diffState: E.diffState,
@@ -13109,7 +13109,7 @@ const $b = {
13109
13109
  {
13110
13110
  header: "Secrets",
13111
13111
  id: At.Secret,
13112
- items: A.map(({ name: N, diffState: I, id: O }) => ({
13112
+ items: w.map(({ name: N, diffState: I, id: O }) => ({
13113
13113
  title: N,
13114
13114
  diffState: I,
13115
13115
  href: s(At.Secret, N),
@@ -13123,7 +13123,7 @@ const $b = {
13123
13123
  return {
13124
13124
  configList: y,
13125
13125
  collapsibleNavList: k,
13126
- navList: w
13126
+ navList: A
13127
13127
  };
13128
13128
  }
13129
13129
  const c = t, d = e, u = lg(c), h = lg(d), f = {
@@ -13295,8 +13295,8 @@ const $b = {
13295
13295
  );
13296
13296
  }
13297
13297
  return null;
13298
- }, x = () => n.map(({ id: E, primaryConfig: v, secondaryConfig: C, title: S, diffState: T, singleView: A }) => {
13299
- const { heading: y, list: w } = v, { heading: k, list: N } = C;
13298
+ }, x = () => n.map(({ id: E, primaryConfig: v, secondaryConfig: C, title: S, diffState: T, singleView: w }) => {
13299
+ const { heading: y, list: A } = v, { heading: k, list: N } = C;
13300
13300
  return /* @__PURE__ */ a.jsx(
13301
13301
  Yk,
13302
13302
  {
@@ -13308,17 +13308,17 @@ const $b = {
13308
13308
  onTransitionEnd: m(E),
13309
13309
  showDetailedDiffState: c,
13310
13310
  hideDiffState: d,
13311
- children: A ? /* @__PURE__ */ a.jsx(
13311
+ children: w ? /* @__PURE__ */ a.jsx(
13312
13312
  Hb,
13313
13313
  {
13314
- oldValue: w.codeEditorValue.value,
13314
+ oldValue: A.codeEditorValue.value,
13315
13315
  newValue: N.codeEditorValue.value,
13316
- ...w.codeEditorValue.value !== N.codeEditorValue.value && {
13316
+ ...A.codeEditorValue.value !== N.codeEditorValue.value && {
13317
13317
  leftTitle: y,
13318
13318
  rightTitle: k
13319
13319
  },
13320
13320
  codeFoldMessageRenderer: Gb(
13321
- w.codeEditorValue.value,
13321
+ A.codeEditorValue.value,
13322
13322
  N.codeEditorValue.value
13323
13323
  )
13324
13324
  }
@@ -13331,7 +13331,7 @@ const $b = {
13331
13331
  hL,
13332
13332
  {
13333
13333
  baseTemplateConfiguration: N,
13334
- currentConfiguration: w,
13334
+ currentConfiguration: A,
13335
13335
  previousConfigAvailable: !0,
13336
13336
  rootClassName: `${y && k ? "dc__no-top-radius dc__no-top-border" : ""}`
13337
13337
  }
@@ -13522,29 +13522,29 @@ const $b = {
13522
13522
  isCompareDeploymentConfigNotAvailable: u,
13523
13523
  ...h
13524
13524
  }) => {
13525
- const { path: f, params: m } = rn(), { resourceType: p, resourceName: _, appId: g, envId: x } = m, { compareWfrId: b, updateSearchParams: E, sortBy: v, sortOrder: C, handleSorting: S } = i, [T, A] = R({
13525
+ const { path: f, params: m } = rn(), { resourceType: p, resourceName: _, appId: g, envId: x } = m, { compareWfrId: b, updateSearchParams: E, sortBy: v, sortOrder: C, handleSorting: S } = i, [T, w] = R({
13526
13526
  isLoading: !1,
13527
13527
  data: l,
13528
13528
  hasMore: l.size >= zi
13529
- }), [y, w] = R(s);
13529
+ }), [y, A] = R(s);
13530
13530
  P(() => (E({ compareWfrId: b }), e(!0), v !== Jd && S(Jd), () => {
13531
13531
  o(!1), e(!1);
13532
13532
  }), []);
13533
13533
  const k = async (q) => {
13534
- A({ ...T, isLoading: !0 });
13534
+ w({ ...T, isLoading: !0 });
13535
13535
  try {
13536
13536
  const { result: Se } = await yk({
13537
13537
  appId: +g,
13538
13538
  envId: +x,
13539
13539
  pagination: { offset: q, size: zi }
13540
- }), Ee = new Map((Se.cdWorkflows || []).map((U) => [U.id, U])), je = new Map([...T.data, ...Ee]);
13541
- A({
13540
+ }), Ee = new Map((Se.cdWorkflows || []).map(($) => [$.id, $])), je = new Map([...T.data, ...Ee]);
13541
+ w({
13542
13542
  isLoading: !1,
13543
13543
  data: je,
13544
13544
  hasMore: Se.cdWorkflows?.length === zi
13545
- }), w(Yb(je));
13545
+ }), A(Yb(je));
13546
13546
  } catch {
13547
- A({ ...T, isLoading: !1 });
13547
+ w({ ...T, isLoading: !1 });
13548
13548
  }
13549
13549
  }, N = () => k(T.data.size), I = () => T.hasMore ? /* @__PURE__ */ a.jsx("div", { className: "px-4", children: /* @__PURE__ */ a.jsx(
13550
13550
  ge,
@@ -13563,10 +13563,10 @@ const $b = {
13563
13563
  triggerHistory: T.data,
13564
13564
  renderRunSource: c,
13565
13565
  resourceId: d
13566
- }), V = D.find(({ value: q }) => q === b), $ = !!D.length, G = ({ value: q }) => {
13566
+ }), F = D.find(({ value: q }) => q === b), V = !!D.length, G = ({ value: q }) => {
13567
13567
  E({ compareWfrId: q });
13568
13568
  }, Y = {
13569
- primaryConfig: $ ? [
13569
+ primaryConfig: V ? [
13570
13570
  {
13571
13571
  id: "deployment-config-diff-deployment-selector",
13572
13572
  type: "selectPicker",
@@ -13598,7 +13598,7 @@ const $b = {
13598
13598
  text: `Deployed on ${O}`
13599
13599
  }
13600
13600
  ]
13601
- }, ee = () => $ ? u ? `Diff unavailable: Configurations for deployment execution ‘${V?.label || "N/A"}’ not found` : `Showing diff in configuration deployed on: ${V?.label || "N/A"} & ${O}` : null, We = {
13601
+ }, ee = () => V ? u ? `Diff unavailable: Configurations for deployment execution ‘${F?.label || "N/A"}’ not found` : `Showing diff in configuration deployed on: ${F?.label || "N/A"} & ${O}` : null, We = {
13602
13602
  handleSorting: () => S(C !== we.DESC ? Jd : ""),
13603
13603
  sortBy: v,
13604
13604
  sortOrder: C
@@ -13612,7 +13612,7 @@ const $b = {
13612
13612
  ...h,
13613
13613
  showDetailedDiffState: !0,
13614
13614
  navHeading: `Comparing ${t}`,
13615
- headerText: $ ? void 0 : "",
13615
+ headerText: V ? void 0 : "",
13616
13616
  scrollIntoViewId: `${p}${_ ? `-${_}` : ""}`,
13617
13617
  navHelpText: ee(),
13618
13618
  isNavHelpTextShowingError: u,
@@ -13637,7 +13637,7 @@ const $b = {
13637
13637
  [m, n]
13638
13638
  ), g = !!_, x = J0({
13639
13639
  parseSearchParams: cL(_)
13640
- }), { compareWfrId: b, sortBy: E, sortOrder: v } = x, [C, S] = R(!1), [T, A, , y] = Bs(async () => {
13640
+ }), { compareWfrId: b, sortBy: E, sortOrder: v } = x, [C, S] = R(!1), [T, w, , y] = Bs(async () => {
13641
13641
  const G = [
13642
13642
  {
13643
13643
  appName: t,
@@ -13660,18 +13660,18 @@ const $b = {
13660
13660
  return Y.status !== "fulfilled" || !Y.value || Y.value.forEach((ue, We) => {
13661
13661
  ee[We].status !== "fulfilled" || !ee[We].value || ee[We].value.result.isAppAdmin || (ee[We].value.result.secretsData = ue.secretsData);
13662
13662
  }), ee;
13663
- }, [p, b]), w = (G, Y) => `${di(c, { ...d })}/${G}${Y ? `/${Y}` : ""}${h}`, k = de(() => {
13664
- if (!T && A) {
13665
- const G = g && A[1].status === "fulfilled" ? A[1].value.result : {
13663
+ }, [p, b]), A = (G, Y) => `${di(c, { ...d })}/${G}${Y ? `/${Y}` : ""}${h}`, k = de(() => {
13664
+ if (!T && w) {
13665
+ const G = g && w[1].status === "fulfilled" ? w[1].value.result : {
13666
13666
  configMapData: null,
13667
13667
  deploymentTemplate: null,
13668
13668
  secretsData: null,
13669
13669
  isAppAdmin: !1
13670
- }, Y = A[0].status === "fulfilled" ? A[0].value.result : null;
13670
+ }, Y = w[0].status === "fulfilled" ? w[0].value.result : null;
13671
13671
  return Qk({
13672
13672
  currentList: Y,
13673
13673
  compareList: G,
13674
- getNavItemHref: w,
13674
+ getNavItemHref: A,
13675
13675
  convertVariables: C,
13676
13676
  sortingConfig: { sortBy: E, sortOrder: v }
13677
13677
  });
@@ -13680,22 +13680,22 @@ const $b = {
13680
13680
  }, [
13681
13681
  g,
13682
13682
  T,
13683
- A,
13683
+ w,
13684
13684
  C,
13685
13685
  E,
13686
13686
  v
13687
13687
  ]), N = de(
13688
- () => !T && A ? mg(A[0]) || mg(A[1]) : null,
13689
- [T, A]
13688
+ () => !T && w ? mg(w[0]) || mg(w[1]) : null,
13689
+ [T, w]
13690
13690
  ), I = de(
13691
13691
  () => k ? nI(k.configList, "groupHeader") : [],
13692
13692
  [k]
13693
- ), O = A && fg(A[1]), D = !g || O, V = T || !N && !k, $ = {
13693
+ ), O = w && fg(w[1]), D = !g || O, F = T || !N && !k, V = {
13694
13694
  code: N?.code,
13695
13695
  error: N && !T,
13696
13696
  reload: y
13697
13697
  };
13698
- return A && fg(A[0]) ? /* @__PURE__ */ a.jsx("div", { className: "flex bg__primary h-100", children: /* @__PURE__ */ a.jsx(
13698
+ return w && fg(w[0]) ? /* @__PURE__ */ a.jsx("div", { className: "flex bg__primary h-100", children: /* @__PURE__ */ a.jsx(
13699
13699
  vt,
13700
13700
  {
13701
13701
  title: "Data not available",
@@ -13706,8 +13706,8 @@ const $b = {
13706
13706
  dL,
13707
13707
  {
13708
13708
  ...k,
13709
- isLoading: V,
13710
- errorConfig: $,
13709
+ isLoading: F,
13710
+ errorConfig: V,
13711
13711
  envName: e,
13712
13712
  wfrId: n,
13713
13713
  urlFilters: x,
@@ -13722,7 +13722,7 @@ const $b = {
13722
13722
  isCompareDeploymentConfigNotAvailable: O
13723
13723
  }
13724
13724
  ) }),
13725
- /* @__PURE__ */ a.jsx(oi, { children: N && !T ? /* @__PURE__ */ a.jsx(fd, { code: $.code, reload: $.reload }) : /* @__PURE__ */ a.jsx("div", { className: "p-16 flexbox-col dc__gap-16 bg__primary h-100", children: V ? /* @__PURE__ */ a.jsx(st, { fullHeight: !0, size: 48 }) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
13725
+ /* @__PURE__ */ a.jsx(oi, { children: N && !T ? /* @__PURE__ */ a.jsx(fd, { code: V.code, reload: V.reload }) : /* @__PURE__ */ a.jsx("div", { className: "p-16 flexbox-col dc__gap-16 bg__primary h-100", children: F ? /* @__PURE__ */ a.jsx(st, { fullHeight: !0, size: 48 }) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
13726
13726
  /* @__PURE__ */ a.jsx("h3", { className: "fs-13 lh-20 fw-6 cn-9 m-0", children: D ? "Configurations used for this deployment trigger" : "Showing configuration change with respect to previous deployment" }),
13727
13727
  /* @__PURE__ */ a.jsxs("div", { className: "flexbox-col dc__gap-16 dc__mxw-800", children: [
13728
13728
  /* @__PURE__ */ a.jsx("div", { className: "flexbox-col dc__gap-12", children: Object.keys(I).map(
@@ -13937,7 +13937,7 @@ const mL = ({
13937
13937
  }
13938
13938
  ) : null;
13939
13939
  function m(T) {
13940
- const A = ab(t, s);
13940
+ const w = ab(t, s);
13941
13941
  return /* @__PURE__ */ a.jsxs("div", { className: "flex column dc__gap-4 w-100", children: [
13942
13942
  T ? /* @__PURE__ */ a.jsxs("div", { className: "flex left lh-20 dc__gap-8 w-100", children: [
13943
13943
  /* @__PURE__ */ a.jsx(vf, { className: "icon-dim-16" }),
@@ -13953,9 +13953,9 @@ const mL = ({
13953
13953
  " ",
13954
13954
  u.data.author
13955
13955
  ] }) : null,
13956
- A ? /* @__PURE__ */ a.jsxs("div", { className: "material-history__text lh-20 flex left dc__gap-8 w-100", children: [
13956
+ w ? /* @__PURE__ */ a.jsxs("div", { className: "material-history__text lh-20 flex left dc__gap-8 w-100", children: [
13957
13957
  /* @__PURE__ */ a.jsx(Lu, { className: "icon-dim-16" }),
13958
- /* @__PURE__ */ a.jsx("time", { className: "cn-7 fs-12", children: A })
13958
+ /* @__PURE__ */ a.jsx("time", { className: "cn-7 fs-12", children: w })
13959
13959
  ] }) : null,
13960
13960
  u.data.message ? /* @__PURE__ */ a.jsxs("div", { className: "material-history__text lh-20 flex left dc__gap-8 top material-history-text--padded w-100", children: [
13961
13961
  /* @__PURE__ */ a.jsx(LT, { className: "icon-dim-16 mw-16 mr-8 mt-2" }),
@@ -13984,7 +13984,7 @@ const mL = ({
13984
13984
  )
13985
13985
  }
13986
13986
  ) : /* @__PURE__ */ a.jsx(Km, { "data-testid": "valid-git-commit" }), _ = () => c.isselected ? /* @__PURE__ */ a.jsx(qm, { "data-testid": "selected-git-commit", className: "dc__align-right icon-dim-20" }) : p(), g = () => u.data.title ? /* @__PURE__ */ a.jsx("span", { className: "flex left cn-9 fw-6 fs-13", children: u.data.title }) : null, x = (T) => {
13987
- const A = T?.split("/").pop();
13987
+ const w = T?.split("/").pop();
13988
13988
  return /* @__PURE__ */ a.jsxs("div", { className: "w-100 flex left dc__gap-4", children: [
13989
13989
  /* @__PURE__ */ a.jsxs(
13990
13990
  "a",
@@ -13997,7 +13997,7 @@ const mL = ({
13997
13997
  children: [
13998
13998
  /* @__PURE__ */ a.jsx(DT, {}),
13999
13999
  " ",
14000
- /* @__PURE__ */ a.jsx("span", { children: Number.isNaN(A) ? "PR" : A })
14000
+ /* @__PURE__ */ a.jsx("span", { children: Number.isNaN(w) ? "PR" : w })
14001
14001
  ]
14002
14002
  }
14003
14003
  ),
@@ -14685,14 +14685,14 @@ const xL = (t) => {
14685
14685
  fullScreenView: C,
14686
14686
  appName: S,
14687
14687
  triggerHistory: T,
14688
- targetPlatforms: A
14688
+ targetPlatforms: w
14689
14689
  }) => {
14690
- const { path: y } = rn(), { appId: w, pipelineId: k, triggerId: N, envId: I } = rs(), O = {
14691
- appId: w,
14690
+ const { path: y } = rn(), { appId: A, pipelineId: k, triggerId: N, envId: I } = rs(), O = {
14691
+ appId: A,
14692
14692
  envId: I,
14693
14693
  appName: `${t.helmPackageName}.tgz`,
14694
14694
  workflowId: t.id
14695
- }, D = `app/cd-pipeline/workflow/download/${w}/${I}/${k}/${N}`;
14695
+ }, D = `app/cd-pipeline/workflow/download/${A}/${I}/${k}/${N}`;
14696
14696
  return /* @__PURE__ */ a.jsx("div", { className: "trigger-outputs-container flexbox-col flex-grow-1 h-100", children: e ? /* @__PURE__ */ a.jsx(st, { pageLoader: !0 }) : /* @__PURE__ */ a.jsxs(Wx, { children: [
14697
14697
  t.stage !== "DEPLOY" ? !t.IsVirtualEnvironment && /* @__PURE__ */ a.jsxs(oi, { path: `${y}/logs`, children: [
14698
14698
  /* @__PURE__ */ a.jsx(
@@ -14745,7 +14745,7 @@ const xL = (t) => {
14745
14745
  selectedEnvironmentName: f,
14746
14746
  promotionApprovalMetadata: t?.promotionApprovalMetadata,
14747
14747
  renderCIListHeader: x,
14748
- targetPlatforms: A
14748
+ targetPlatforms: w
14749
14749
  }
14750
14750
  ) }),
14751
14751
  t.stage === "DEPLOY" && /* @__PURE__ */ a.jsx(oi, { path: `${y}${Be.DEPLOYMENT_HISTORY_CONFIGURATIONS}`, children: /* @__PURE__ */ a.jsx(
@@ -14764,7 +14764,7 @@ const xL = (t) => {
14764
14764
  (t.stage !== "DEPLOY" || t.IsVirtualEnvironment) && /* @__PURE__ */ a.jsx(oi, { path: `${y}/artifacts`, children: t.IsVirtualEnvironment && b ? b({
14765
14765
  status: t.status,
14766
14766
  title: t.helmPackageName,
14767
- params: { ...O, appId: Number(w), envId: Number(I) }
14767
+ params: { ...O, appId: Number(A), envId: Number(I) }
14768
14768
  }) : /* @__PURE__ */ a.jsx(
14769
14769
  Pb,
14770
14770
  {
@@ -14781,7 +14781,7 @@ const xL = (t) => {
14781
14781
  hideImageTaggingHardDelete: h,
14782
14782
  downloadArtifactUrl: D,
14783
14783
  renderCIListHeader: x,
14784
- targetPlatforms: A,
14784
+ targetPlatforms: w,
14785
14785
  rootClassName: "p-16 flex-grow-1"
14786
14786
  }
14787
14787
  ) }),
@@ -14819,21 +14819,21 @@ const xL = (t) => {
14819
14819
  renderTargetConfigInfo: S,
14820
14820
  appName: T
14821
14821
  }) => {
14822
- const { appId: A, triggerId: y, envId: w, pipelineId: k } = rs(), N = e.get(+y), [I, O, D, V] = Bs(
14823
- () => pk({ appId: A, envId: w, pipelineId: k, triggerId: y, fetchIdData: d }),
14822
+ const { appId: w, triggerId: y, envId: A, pipelineId: k } = rs(), N = e.get(+y), [I, O, D, F] = Bs(
14823
+ () => pk({ appId: w, envId: A, pipelineId: k, triggerId: y, fetchIdData: d }),
14824
14824
  // TODO: Ask if fetchIdData is required here as dependency
14825
- [y, A, w],
14825
+ [y, w, A],
14826
14826
  !!y && !!k
14827
- ), $ = dd(N?.targetPlatforms), G = (q, Se, Ee) => {
14827
+ ), V = dd(N?.targetPlatforms), G = (q, Se, Ee) => {
14828
14828
  if (Ee) {
14829
14829
  f?.result?.cdWorkflows?.length && s(Yy(f.result.cdWorkflows, "id")), u(Dn.SUSPEND);
14830
14830
  return;
14831
14831
  }
14832
14832
  if (q === Se?.id) {
14833
- const je = e.get(q)?.appliedFilters ?? [], U = e.get(q)?.appliedFiltersTimestamp, F = e.get(q)?.promotionApprovalMetadata, J = e.get(q)?.runSource, _e = e.get(q)?.targetConfig, he = e.get(q)?.userApprovalMetadata, ke = {
14833
+ const je = e.get(q)?.appliedFilters ?? [], $ = e.get(q)?.appliedFiltersTimestamp, U = e.get(q)?.promotionApprovalMetadata, J = e.get(q)?.runSource, _e = e.get(q)?.targetConfig, he = e.get(q)?.userApprovalMetadata, ke = {
14834
14834
  ...je.length ? { appliedFilters: je } : {},
14835
- ...U ? { appliedFiltersTimestamp: U } : {},
14836
- ...F ? { promotionApprovalMetadata: F } : {},
14835
+ ...$ ? { appliedFiltersTimestamp: $ } : {},
14836
+ ...U ? { promotionApprovalMetadata: U } : {},
14837
14837
  ...J ? { runSource: J } : {},
14838
14838
  ..._e ? { targetConfig: _e } : {},
14839
14839
  ...he ? { userApprovalMetadata: he } : {}
@@ -14871,7 +14871,7 @@ const xL = (t) => {
14871
14871
  G(+y, q, We);
14872
14872
  }, [ee, ue, We]);
14873
14873
  const Q = de(() => !N || XR.has(N.podStatus?.toLowerCase() || N.status?.toLowerCase()) ? null : ZR.has(N.status?.toLowerCase() || N.podStatus?.toLowerCase()) ? 1e4 : 3e4, [N]);
14874
- return Gy(V, Q), !Y && I && !N || !y || Y && (ee || I) && !N ? /* @__PURE__ */ a.jsx(st, { pageLoader: !0 }) : D?.code === 404 ? /* @__PURE__ */ a.jsx(
14874
+ return Gy(F, Q), !Y && I && !N || !y || Y && (ee || I) && !N ? /* @__PURE__ */ a.jsx(st, { pageLoader: !0 }) : D?.code === 404 ? /* @__PURE__ */ a.jsx(
14875
14875
  vt,
14876
14876
  {
14877
14877
  title: at.TRIGGER_NOT_FOUND.TITLE,
@@ -14980,7 +14980,7 @@ const xL = (t) => {
14980
14980
  fullScreenView: t,
14981
14981
  appName: T,
14982
14982
  triggerHistory: e,
14983
- targetPlatforms: $
14983
+ targetPlatforms: V
14984
14984
  },
14985
14985
  N.id
14986
14986
  )
@@ -15917,12 +15917,12 @@ const K8 = {
15917
15917
  }) => {
15918
15918
  const { appId: g } = rs(), [x, b] = R(c || []), [E, v] = R(u || 0), [C, S] = R(
15919
15919
  f || structuredClone(WL)
15920
- ), T = ie(new AbortController()), A = (F) => {
15921
- b(F), d?.(F);
15922
- }, y = (F) => {
15923
- v(F), h?.(F);
15924
- }, w = (F) => {
15925
- S(F), m?.(F);
15920
+ ), T = ie(new AbortController()), w = (U) => {
15921
+ b(U), d?.(U);
15922
+ }, y = (U) => {
15923
+ v(U), h?.(U);
15924
+ }, A = (U) => {
15925
+ S(U), m?.(U);
15926
15926
  }, { searchKey: k, selectedTags: N } = C || {}, I = () => T0(
15927
15927
  () => Jb({
15928
15928
  searchKey: k,
@@ -15932,7 +15932,7 @@ const K8 = {
15932
15932
  signal: T.current.signal
15933
15933
  }),
15934
15934
  T
15935
- ), [O, D, V, $] = Bs(
15935
+ ), [O, D, F, V] = Bs(
15936
15936
  I,
15937
15937
  // In case of persistFilters with change of searchKey or selectedTags we anyways clear the pluginList so no need to add dependency
15938
15938
  [k, g, N],
@@ -15945,12 +15945,12 @@ const K8 = {
15945
15945
  P(() => {
15946
15946
  !G && !ee && Y && e(Y);
15947
15947
  }, [G, Y, ee]);
15948
- const We = (F, J = !1) => {
15948
+ const We = (U, J = !1) => {
15949
15949
  const {
15950
15950
  pluginStore: { parentPluginStore: _e, pluginVersionStore: he },
15951
15951
  totalCount: ke,
15952
15952
  parentPluginIdList: oe
15953
- } = F;
15953
+ } = U;
15954
15954
  n(qL(s, _e, he)), y(ke);
15955
15955
  const xt = J ? structuredClone(x) : [], Ut = xt.reduce(
15956
15956
  (St, yn) => (St[yn.parentPluginId] = !0, St),
@@ -15960,35 +15960,35 @@ const K8 = {
15960
15960
  Ut[St] || (xt.push({
15961
15961
  parentPluginId: St
15962
15962
  }), Ut[St] = !0);
15963
- }), A(xt);
15963
+ }), w(xt);
15964
15964
  };
15965
15965
  P(() => {
15966
- !(O || en(V)) && !V && D && We(D);
15967
- }, [O, D, V]);
15966
+ !(O || en(F)) && !F && D && We(D);
15967
+ }, [O, D, F]);
15968
15968
  const Q = () => {
15969
- l && A([]);
15969
+ l && w([]);
15970
15970
  }, q = () => {
15971
- w({
15971
+ A({
15972
15972
  searchKey: "",
15973
15973
  selectedTags: []
15974
15974
  }), Q();
15975
- }, Se = (F) => {
15976
- w({
15975
+ }, Se = (U) => {
15976
+ A({
15977
15977
  ...C,
15978
- searchKey: F
15978
+ searchKey: U
15979
15979
  }), Q();
15980
- }, Ee = (F) => {
15981
- w({
15980
+ }, Ee = (U) => {
15981
+ A({
15982
15982
  ...C,
15983
- selectedTags: F
15983
+ selectedTags: U
15984
15984
  }), Q();
15985
- }, je = (F) => {
15986
- w({
15985
+ }, je = (U) => {
15986
+ A({
15987
15987
  ...C,
15988
- selectedTags: F.selectedTags
15988
+ selectedTags: U.selectedTags
15989
15989
  }), Q();
15990
- }, U = (F) => {
15991
- i(F);
15990
+ }, $ = (U) => {
15991
+ i(U);
15992
15992
  };
15993
15993
  return /* @__PURE__ */ a.jsxs("div", { className: `flexbox-col w-100 ${p}`, children: [
15994
15994
  /* @__PURE__ */ a.jsxs("div", { className: "w-100 flexbox dc__gap-12 py-12 dc__position-sticky dc__top-0 bg__primary dc__zi-1 flex-wrap", children: [
@@ -16032,12 +16032,12 @@ const K8 = {
16032
16032
  /* @__PURE__ */ a.jsx(
16033
16033
  L0,
16034
16034
  {
16035
- isLoading: O || en(V),
16035
+ isLoading: O || en(F),
16036
16036
  customLoader: /* @__PURE__ */ a.jsx(Xb, {}),
16037
- error: V,
16037
+ error: F,
16038
16038
  errorScreenManagerProps: {
16039
- code: V?.code,
16040
- reload: $
16039
+ code: F?.code,
16040
+ reload: V
16041
16041
  },
16042
16042
  children: /* @__PURE__ */ a.jsx(
16043
16043
  sD,
@@ -16047,7 +16047,7 @@ const K8 = {
16047
16047
  totalCount: E,
16048
16048
  handleDataUpdateForPluginResponse: We,
16049
16049
  filters: C,
16050
- handlePluginSelection: U,
16050
+ handlePluginSelection: $,
16051
16051
  selectedPluginsMap: o,
16052
16052
  isSelectable: r,
16053
16053
  handleClearFilters: q,
@@ -16086,31 +16086,31 @@ const K8 = {
16086
16086
  validateDuplicateKeys: m = !1,
16087
16087
  validateEmptyKeys: p = !1
16088
16088
  }) => {
16089
- const { headers: _, rows: g } = t, x = _[0].key, b = _[1].key, [E, v] = R(g), [C, S] = R(!1), T = c || l, A = !c && !l || !!E.length, y = !E[0]?.data[x].value && !E[0]?.data[b].value, w = E.length === 1 && y, { sortBy: k, sortOrder: N, handleSorting: I } = Q0({
16089
+ const { headers: _, rows: g } = t, x = _[0].key, b = _[1].key, [E, v] = R(g), [C, S] = R(!1), T = c || l, w = !c && !l || !!E.length, y = !E[0]?.data[x].value && !E[0]?.data[b].value, A = E.length === 1 && y, { sortBy: k, sortOrder: N, handleSorting: I } = Q0({
16090
16090
  initialSortKey: s ? x : null
16091
16091
  }), O = ie(), D = ie();
16092
- O.current || (O.current = E.reduce((U, F) => ({ ...U, [F.id]: On() }), {})), D.current || (D.current = E.reduce((U, F) => ({ ...U, [F.id]: On() }), {}));
16093
- const V = de(
16092
+ O.current || (O.current = E.reduce(($, U) => ({ ...$, [U.id]: On() }), {})), D.current || (D.current = E.reduce(($, U) => ({ ...$, [U.id]: On() }), {}));
16093
+ const F = de(
16094
16094
  () => E.reduce(
16095
- (U, F) => {
16096
- const J = F.data[x].value;
16097
- return J && (U[J] = (U[J] || 0) + 1), U;
16095
+ ($, U) => {
16096
+ const J = U.data[x].value;
16097
+ return J && ($[J] = ($[J] || 0) + 1), $;
16098
16098
  },
16099
16099
  {}
16100
16100
  ),
16101
16101
  [E]
16102
- ), $ = (U, F, J, _e = !0) => {
16102
+ ), V = ($, U, J, _e = !0) => {
16103
16103
  if (_e) {
16104
- const he = U.trim();
16105
- if (m && F === x && V[he] > 1 || p && F === x && !he && E.some(
16104
+ const he = $.trim();
16105
+ if (m && U === x && F[he] > 1 || p && U === x && !he && E.some(
16106
16106
  ({ id: oe, data: xt }) => oe === J && xt[b].value.trim()
16107
16107
  ))
16108
16108
  return !1;
16109
16109
  }
16110
- return u ? u(U, F, J) : !0;
16111
- }, G = (U) => {
16110
+ return u ? u($, U, J) : !0;
16111
+ }, G = ($) => {
16112
16112
  if (m) {
16113
- const { isAnyKeyDuplicated: J } = U.reduce(
16113
+ const { isAnyKeyDuplicated: J } = $.reduce(
16114
16114
  (_e, he) => {
16115
16115
  const { keysFrequency: ke } = _e, oe = he.data[x].value.trim();
16116
16116
  return oe && (ke[oe] = (ke[oe] || 0) + 1), {
@@ -16123,13 +16123,13 @@ const K8 = {
16123
16123
  if (J)
16124
16124
  return !1;
16125
16125
  }
16126
- return p && U.some(
16126
+ return p && $.some(
16127
16127
  (_e) => !_e.data[x].value.trim() && _e.data[b].value.trim()
16128
- ) ? !1 : U.every(
16129
- ({ data: J, id: _e }) => $(J[x].value, x, _e, !1) && $(J[b].value, b, _e, !1)
16128
+ ) ? !1 : $.every(
16129
+ ({ data: J, id: _e }) => V(J[x].value, x, _e, !1) && V(J[b].value, b, _e, !1)
16130
16130
  );
16131
16131
  }, Y = () => {
16132
- const U = (Date.now() * Math.random()).toString(16);
16132
+ const $ = (Date.now() * Math.random()).toString(16);
16133
16133
  return {
16134
16134
  data: {
16135
16135
  [x]: {
@@ -16139,11 +16139,11 @@ const K8 = {
16139
16139
  value: ""
16140
16140
  }
16141
16141
  },
16142
- id: U
16142
+ id: $
16143
16143
  };
16144
16144
  }, ee = () => {
16145
- const U = Y(), F = [U, ...E], { id: J } = U;
16146
- f?.(!G(F)), S(!0), v(F), O.current = {
16145
+ const $ = Y(), U = [$, ...E], { id: J } = $;
16146
+ f?.(!G(U)), S(!0), v(U), O.current = {
16147
16147
  ...O.current || {},
16148
16148
  [J]: On()
16149
16149
  }, D.current = {
@@ -16154,48 +16154,48 @@ const K8 = {
16154
16154
  P(() => {
16155
16155
  !T && !E.length && ee();
16156
16156
  }, []), P(() => {
16157
- s && v((U) => {
16158
- const F = structuredClone(U);
16159
- return F.sort(
16157
+ s && v(($) => {
16158
+ const U = structuredClone($);
16159
+ return U.sort(
16160
16160
  (J, _e) => wt(J.data[k].value, _e.data[k].value, N)
16161
- ), F;
16161
+ ), U;
16162
16162
  });
16163
16163
  }, [N]), P(() => {
16164
- const U = E[0];
16165
- if (U && C) {
16164
+ const $ = E[0];
16165
+ if ($ && C) {
16166
16166
  S(!1);
16167
- const F = O.current[U.id].current && D.current[U.id].current;
16168
- !U.data[x].value && F && D.current[U.id].current.focus(), !U.data[b].value && F && O.current[U.id].current.focus();
16167
+ const U = O.current[$.id].current && D.current[$.id].current;
16168
+ !$.data[x].value && U && D.current[$.id].current.focus(), !$.data[b].value && U && O.current[$.id].current.focus();
16169
16169
  }
16170
16170
  }, [C]);
16171
- const ue = () => I(k), We = (U) => () => {
16172
- const F = E.filter(({ id: J }) => J !== U.id);
16173
- if (F.length === 0 && !l) {
16171
+ const ue = () => I(k), We = ($) => () => {
16172
+ const U = E.filter(({ id: J }) => J !== $.id);
16173
+ if (U.length === 0 && !l) {
16174
16174
  const J = Y(), { id: _e } = J;
16175
16175
  S(!0), f?.(!G([J])), v([J]), O.current = {
16176
16176
  [_e]: On()
16177
16177
  }, D.current = {
16178
16178
  [_e]: On()
16179
- }, r?.(U.id);
16179
+ }, r?.($.id);
16180
16180
  return;
16181
16181
  }
16182
- f?.(!G(F)), v(F), delete O.current[U.id], delete D.current[U.id], r?.(U.id);
16183
- }, Q = (U, F) => (J) => {
16182
+ f?.(!G(U)), v(U), delete O.current[$.id], delete D.current[$.id], r?.($.id);
16183
+ }, Q = ($, U) => (J) => {
16184
16184
  const { value: _e } = J.target, he = {
16185
- ...U,
16185
+ ...$,
16186
16186
  data: {
16187
- ...U.data,
16188
- [F]: {
16189
- ...U.data[F],
16187
+ ...$.data,
16188
+ [U]: {
16189
+ ...$.data[U],
16190
16190
  value: _e
16191
16191
  }
16192
16192
  }
16193
- }, ke = E.map((oe) => oe.id === U.id ? he : oe);
16193
+ }, ke = E.map((oe) => oe.id === $.id ? he : oe);
16194
16194
  f?.(!G(ke)), v(ke);
16195
- }, q = (U, F) => (J) => {
16195
+ }, q = ($, U) => (J) => {
16196
16196
  const { value: _e } = J.target;
16197
- i?.(U.id, F, _e), f?.(!G(E));
16198
- }, Se = (U, F, J) => /* @__PURE__ */ a.jsxs(
16197
+ i?.($.id, U, _e), f?.(!G(E));
16198
+ }, Se = ($, U, J) => /* @__PURE__ */ a.jsxs(
16199
16199
  "div",
16200
16200
  {
16201
16201
  className: `bg__secondary py-8 px-12 flexbox dc__content-space dc__align-items-center ${E.length || !T ? "dc__top-left-radius" : "dc__left-radius-4"} ${J || ""}`,
@@ -16207,7 +16207,7 @@ const K8 = {
16207
16207
  className: "cn-7 fs-12 lh-20-imp fw-6 flexbox dc__align-items-center dc__gap-2 dc__transparent",
16208
16208
  onClick: ue,
16209
16209
  children: [
16210
- F,
16210
+ U,
16211
16211
  /* @__PURE__ */ a.jsx(
16212
16212
  nd,
16213
16213
  {
@@ -16222,9 +16222,9 @@ const K8 = {
16222
16222
  ) : /* @__PURE__ */ a.jsxs(
16223
16223
  "div",
16224
16224
  {
16225
- className: `cn-7 fs-12 lh-20 fw-6 flexbox dc__align-items-center dc__content-space dc__gap-2 ${A ? "dc__top-left-radius" : "dc__left-radius-4"}`,
16225
+ className: `cn-7 fs-12 lh-20 fw-6 flexbox dc__align-items-center dc__content-space dc__gap-2 ${w ? "dc__top-left-radius" : "dc__left-radius-4"}`,
16226
16226
  children: [
16227
- F,
16227
+ U,
16228
16228
  !!n && n
16229
16229
  ]
16230
16230
  }
@@ -16244,68 +16244,68 @@ const K8 = {
16244
16244
  )
16245
16245
  ]
16246
16246
  },
16247
- `${U}-header`
16248
- ), Ee = (U) => /* @__PURE__ */ a.jsxs("div", { className: "flexbox align-items-center dc__gap-4", children: [
16247
+ `${$}-header`
16248
+ ), Ee = ($) => /* @__PURE__ */ a.jsxs("div", { className: "flexbox align-items-center dc__gap-4", children: [
16249
16249
  /* @__PURE__ */ a.jsx(Ct, { className: "icon-dim-16 fcr-5 dc__align-self-start dc__no-shrink" }),
16250
- /* @__PURE__ */ a.jsx("p", { className: "fs-12 lh-16 cn-7 m-0", children: U })
16251
- ] }, U), je = (U, F, J) => d && !$(U, F, J) ? /* @__PURE__ */ a.jsxs("div", { className: "key-value-table__error bg__primary dc__border br-4 py-7 px-8 flexbox-col dc__gap-4", children: [
16250
+ /* @__PURE__ */ a.jsx("p", { className: "fs-12 lh-16 cn-7 m-0", children: $ })
16251
+ ] }, $), je = ($, U, J) => d && !V($, U, J) ? /* @__PURE__ */ a.jsxs("div", { className: "key-value-table__error bg__primary dc__border br-4 py-7 px-8 flexbox-col dc__gap-4", children: [
16252
16252
  m && Ee(nD),
16253
16253
  p && Ee(iD),
16254
16254
  h.map((he) => Ee(he))
16255
16255
  ] }) : null;
16256
16256
  return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
16257
- /* @__PURE__ */ a.jsx("div", { className: `bcn-2 p-1 ${A ? "dc__top-radius-4" : "br-4"}`, children: /* @__PURE__ */ a.jsx("div", { className: "key-value-table two-columns w-100 bcn-1 br-4", children: /* @__PURE__ */ a.jsx("div", { className: "key-value-table__row", children: _.map(
16258
- ({ key: U, label: F, className: J }) => U === x ? Se(U, F, J) : /* @__PURE__ */ a.jsxs(
16257
+ /* @__PURE__ */ a.jsx("div", { className: `bcn-2 p-1 ${w ? "dc__top-radius-4" : "br-4"}`, children: /* @__PURE__ */ a.jsx("div", { className: "key-value-table two-columns w-100 bcn-1 br-4", children: /* @__PURE__ */ a.jsx("div", { className: "key-value-table__row", children: _.map(
16258
+ ({ key: $, label: U, className: J }) => $ === x ? Se($, U, J) : /* @__PURE__ */ a.jsxs(
16259
16259
  "div",
16260
16260
  {
16261
- className: `bg__secondary cn-9 fs-13 lh-20 py-8 px-12 fw-6 flexbox dc__align-items-center dc__content-space dc__gap-2 ${U === x ? `${A ? "dc__top-left-radius" : "dc__left-radius-4"}` : `${A ? "dc__top-right-radius-4" : "dc__right-radius-4"}`} ${J || ""}`,
16261
+ className: `bg__secondary cn-9 fs-13 lh-20 py-8 px-12 fw-6 flexbox dc__align-items-center dc__content-space dc__gap-2 ${$ === x ? `${w ? "dc__top-left-radius" : "dc__left-radius-4"}` : `${w ? "dc__top-right-radius-4" : "dc__right-radius-4"}`} ${J || ""}`,
16262
16262
  children: [
16263
- F,
16263
+ U,
16264
16264
  !!n && n
16265
16265
  ]
16266
16266
  },
16267
- U
16267
+ $
16268
16268
  )
16269
16269
  ) }) }) }),
16270
- A && /* @__PURE__ */ a.jsx("div", { className: "bcn-2 px-1 pb-1 dc__bottom-radius-4", children: !!E.length && /* @__PURE__ */ a.jsx(
16270
+ w && /* @__PURE__ */ a.jsx("div", { className: "bcn-2 px-1 pb-1 dc__bottom-radius-4", children: !!E.length && /* @__PURE__ */ a.jsx(
16271
16271
  "div",
16272
16272
  {
16273
16273
  className: `key-value-table w-100 bcn-1 dc__bottom-radius-4 ${c ? "two-columns" : "three-columns"}`,
16274
- children: E.map((U) => /* @__PURE__ */ a.jsxs("div", { className: "key-value-table__row", children: [
16275
- _.map(({ key: F }) => /* @__PURE__ */ a.jsx(hr, { children: /* @__PURE__ */ a.jsx(Wt, { wrap: rD, condition: c, children: /* @__PURE__ */ a.jsx(
16274
+ children: E.map(($) => /* @__PURE__ */ a.jsxs("div", { className: "key-value-table__row", children: [
16275
+ _.map(({ key: U }) => /* @__PURE__ */ a.jsx(hr, { children: /* @__PURE__ */ a.jsx(Wt, { wrap: rD, condition: c, children: /* @__PURE__ */ a.jsx(
16276
16276
  "div",
16277
16277
  {
16278
- className: `key-value-table__cell bg__primary flexbox dc__align-items-center dc__gap-4 dc__position-rel ${c || U.data[F].disabled ? "cursor-not-allowed no-hover" : ""} ${d && !$(U.data[F].value, F, U.id) ? "key-value-table__cell--error no-hover" : ""}`,
16279
- children: e?.[F] && U.data[F].value ? /* @__PURE__ */ a.jsx("div", { className: "py-8 px-12 h-36 flex", children: O0 }) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
16278
+ className: `key-value-table__cell bg__primary flexbox dc__align-items-center dc__gap-4 dc__position-rel ${c || $.data[U].disabled ? "cursor-not-allowed no-hover" : ""} ${d && !V($.data[U].value, U, $.id) ? "key-value-table__cell--error no-hover" : ""}`,
16279
+ children: e?.[U] && $.data[U].value ? /* @__PURE__ */ a.jsx("div", { className: "py-8 px-12 h-36 flex", children: O0 }) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
16280
16280
  /* @__PURE__ */ a.jsx(
16281
16281
  Yf,
16282
16282
  {
16283
- ...U.data[F],
16284
- className: `key-value-table__cell-input placeholder-cn5 py-8 px-12 cn-9 fs-13 lh-20 dc__no-border-radius ${c || U.data[F].disabled ? "cursor-not-allowed" : ""}`,
16283
+ ...$.data[U],
16284
+ className: `key-value-table__cell-input placeholder-cn5 py-8 px-12 cn-9 fs-13 lh-20 dc__no-border-radius ${c || $.data[U].disabled ? "cursor-not-allowed" : ""}`,
16285
16285
  minHeight: 20,
16286
16286
  maxHeight: 160,
16287
- value: U.data[F].value,
16288
- placeholder: o[F],
16289
- onChange: Q(U, F),
16290
- onBlur: q(U, F),
16291
- refVar: F === x ? O.current?.[U.id] : D.current?.[U.id],
16292
- dependentRef: F === x ? D.current?.[U.id] : O.current?.[U.id],
16293
- disabled: c || U.data[F].disabled,
16287
+ value: $.data[U].value,
16288
+ placeholder: o[U],
16289
+ onChange: Q($, U),
16290
+ onBlur: q($, U),
16291
+ refVar: U === x ? O.current?.[$.id] : D.current?.[$.id],
16292
+ dependentRef: U === x ? D.current?.[$.id] : O.current?.[$.id],
16293
+ disabled: c || $.data[U].disabled,
16294
16294
  disableOnBlurResizeToMinHeight: !0
16295
16295
  }
16296
16296
  ),
16297
- U.data[F].required && /* @__PURE__ */ a.jsx("span", { className: "cr-5 fs-16 dc__align-self-start px-6 py-8", children: "*" }),
16298
- je(U.data[F].value, F, U.id)
16297
+ $.data[U].required && /* @__PURE__ */ a.jsx("span", { className: "cr-5 fs-16 dc__align-self-start px-6 py-8", children: "*" }),
16298
+ je($.data[U].value, U, $.id)
16299
16299
  ] })
16300
16300
  }
16301
- ) }) }, F)),
16301
+ ) }) }, U)),
16302
16302
  !c && /* @__PURE__ */ a.jsx(
16303
16303
  "button",
16304
16304
  {
16305
16305
  type: "button",
16306
- className: `key-value-table__row-delete-btn dc__unset-button-styles dc__align-self-stretch dc__no-shrink flex py-10 px-8 bg__primary dc__hover-n50 dc__tab-focus ${w ? "dc__disabled" : ""}`,
16307
- onClick: We(U),
16308
- disabled: w,
16306
+ className: `key-value-table__row-delete-btn dc__unset-button-styles dc__align-self-stretch dc__no-shrink flex py-10 px-8 bg__primary dc__hover-n50 dc__tab-focus ${A ? "dc__disabled" : ""}`,
16307
+ onClick: We($),
16308
+ disabled: A,
16309
16309
  children: /* @__PURE__ */ a.jsx(
16310
16310
  Sn,
16311
16311
  {
@@ -16315,7 +16315,7 @@ const K8 = {
16315
16315
  )
16316
16316
  }
16317
16317
  )
16318
- ] }, U.id))
16318
+ ] }, $.id))
16319
16319
  }
16320
16320
  ) })
16321
16321
  ] });
@@ -16481,9 +16481,9 @@ const K8 = {
16481
16481
  defaultValue: C,
16482
16482
  onKeyDown: S,
16483
16483
  required: T,
16484
- additionalErrorInfo: A,
16484
+ additionalErrorInfo: w,
16485
16485
  inputWrapClassName: y = "",
16486
- inputProps: w = {}
16486
+ inputProps: A = {}
16487
16487
  }) => {
16488
16488
  const k = ie();
16489
16489
  P(() => {
@@ -16503,10 +16503,10 @@ const K8 = {
16503
16503
  }, O = (G) => /* @__PURE__ */ a.jsxs("div", { className: "flex left mt-4 mb-4 dc__gap-4 cr-5 fs-11 lh-16 fw-4", children: [
16504
16504
  /* @__PURE__ */ a.jsx(Ri, { className: "icon-dim-16 p-1 form__icon--error dc__align-self-start dc__no-shrink" }),
16505
16505
  /* @__PURE__ */ a.jsx("span", { children: G }),
16506
- G && typeof A == "function" && A()
16507
- ] }, G), D = () => s?.length ? typeof s == "object" ? N(s).map((G) => O(G)) : O(s) : null, V = () => typeof r == "string" ? /* @__PURE__ */ a.jsx("span", { className: `${f ? "dc__required-field" : ""}`, children: r }) : r, $ = () => r ? /* @__PURE__ */ a.jsx("label", { className: `form__label ${c}`, "data-testid": `label-${h}`, children: V() }) : null;
16506
+ G && typeof w == "function" && w()
16507
+ ] }, G), D = () => s?.length ? typeof s == "object" ? N(s).map((G) => O(G)) : O(s) : null, F = () => typeof r == "string" ? /* @__PURE__ */ a.jsx("span", { className: `${f ? "dc__required-field" : ""}`, children: r }) : r, V = () => r ? /* @__PURE__ */ a.jsx("label", { className: `form__label ${c}`, "data-testid": `label-${h}`, children: F() }) : null;
16508
16508
  return /* @__PURE__ */ a.jsxs("div", { className: `flex column left top ${y}`, children: [
16509
- $(),
16509
+ V(),
16510
16510
  /* @__PURE__ */ a.jsx(
16511
16511
  "input",
16512
16512
  {
@@ -16530,7 +16530,7 @@ const K8 = {
16530
16530
  defaultValue: C,
16531
16531
  onKeyDown: S,
16532
16532
  required: T,
16533
- ...w,
16533
+ ...A,
16534
16534
  ref: k
16535
16535
  }
16536
16536
  ),
@@ -16568,19 +16568,19 @@ const K8 = {
16568
16568
  }, x = (y) => {
16569
16569
  d(y);
16570
16570
  }, b = (y) => {
16571
- const w = y ?? c;
16572
- x(w), i(w), s(""), h(!1), m(!1), _("");
16571
+ const A = y ?? c;
16572
+ x(A), i(A), s(""), h(!1), m(!1), _("");
16573
16573
  }, E = () => {
16574
16574
  b(n);
16575
16575
  }, v = () => {
16576
16576
  b();
16577
16577
  }, C = (y) => {
16578
- const { value: w } = y.target;
16579
- if (i(w), !w.trim()) {
16578
+ const { value: A } = y.target;
16579
+ if (i(A), !A.trim()) {
16580
16580
  s("");
16581
16581
  return;
16582
16582
  }
16583
- _(""), s(tb(w, !1).message);
16583
+ _(""), s(tb(A, !1).message);
16584
16584
  }, S = async () => {
16585
16585
  if (!n) {
16586
16586
  _(gg), Ze.showToast({
@@ -16601,10 +16601,10 @@ const K8 = {
16601
16601
  const y = await fetch(n, { mode: "cors" });
16602
16602
  if (!y.ok)
16603
16603
  throw new Error("Invalid network response");
16604
- const w = await y.blob();
16605
- if (w.size > pg)
16604
+ const A = await y.blob();
16605
+ if (A.size > pg)
16606
16606
  throw new Error(`Please add an image smaller than ${pg / (1024 * 1024)} MB`);
16607
- const k = URL.createObjectURL(w), N = await rO(k);
16607
+ const k = URL.createObjectURL(A), N = await rO(k);
16608
16608
  if (URL.revokeObjectURL(k), !N.isValid)
16609
16609
  throw new Error(N.message);
16610
16610
  E();
@@ -16615,7 +16615,7 @@ const K8 = {
16615
16615
  }
16616
16616
  }, T = async (y) => {
16617
16617
  y.key === "Enter" && (y.preventDefault(), await S());
16618
- }, A = (y, w) => /* @__PURE__ */ a.jsx(
16618
+ }, w = (y, A) => /* @__PURE__ */ a.jsx(
16619
16619
  Pf,
16620
16620
  {
16621
16621
  imageProps: {
@@ -16623,13 +16623,13 @@ const K8 = {
16623
16623
  src: c,
16624
16624
  height: tc.height,
16625
16625
  width: tc.width,
16626
- className: `br-4 dc__no-shrink ${w || ""}`
16626
+ className: `br-4 dc__no-shrink ${A || ""}`
16627
16627
  },
16628
16628
  fallbackImage: /* @__PURE__ */ a.jsx(fD, { defaultIcon: t, showEditIcon: y })
16629
16629
  }
16630
16630
  );
16631
16631
  return u ? /* @__PURE__ */ a.jsxs("div", { className: "flexbox dc__gap-20", children: [
16632
- A(!1),
16632
+ w(!1),
16633
16633
  /* @__PURE__ */ a.jsxs("div", { className: "flexbox-col dc__gap-16 flex-grow-1", children: [
16634
16634
  /* @__PURE__ */ a.jsx("div", { className: "flexbox-col dc__gap-6 w-100 dc__align-start", children: /* @__PURE__ */ a.jsx(
16635
16635
  pa,
@@ -16682,7 +16682,7 @@ const K8 = {
16682
16682
  "aria-label": `${r} image`,
16683
16683
  onClick: g,
16684
16684
  children: [
16685
- A(!0, Zb),
16685
+ w(!0, Zb),
16686
16686
  /* @__PURE__ */ a.jsx("div", { className: "flex p-4 br-4 bg__primary dc__border edit-image-form-field__figure-container--edit-image-icon dc__zi-1 bg__primary dc__hover-n50 icon-dim-24", children: /* @__PURE__ */ a.jsx(Qc, { className: "dc__no-shrink icon-dim-16" }) })
16687
16687
  ]
16688
16688
  }
@@ -16955,17 +16955,17 @@ const Dt = ({
16955
16955
  if (v.isIntersecting && v.intersectionRatio >= 1)
16956
16956
  c(1);
16957
16957
  else {
16958
- const { boundingClientRect: C, rootBounds: S } = v, { x: T, y: A, height: y, width: w } = C, {
16958
+ const { boundingClientRect: C, rootBounds: S } = v, { x: T, y: w, height: y, width: A } = C, {
16959
16959
  x: k,
16960
16960
  y: N,
16961
16961
  height: I,
16962
16962
  width: O,
16963
16963
  left: D,
16964
- right: V,
16965
- top: $,
16964
+ right: F,
16965
+ top: V,
16966
16966
  bottom: G
16967
16967
  } = u.current.getBoundingClientRect();
16968
- A + y > S.height && (o({ left: k, bottom: document.documentElement.clientHeight - N }), c(1)), T + w > S.width && (o((Y) => ({ ...Y, right: "20px", left: "unset" })), c(1));
16968
+ w + y > S.height && (o({ left: k, bottom: document.documentElement.clientHeight - N }), c(1)), T + A > S.width && (o((Y) => ({ ...Y, right: "20px", left: "unset" })), c(1));
16969
16969
  }
16970
16970
  });
16971
16971
  }
@@ -16982,8 +16982,8 @@ const Dt = ({
16982
16982
  function x(b) {
16983
16983
  if (!b) return;
16984
16984
  u.current = b;
16985
- const { bottom: E, height: v, left: C, right: S, top: T, width: A, x: y, y: w } = b.getBoundingClientRect();
16986
- h.current = A;
16985
+ const { bottom: E, height: v, left: C, right: S, top: T, width: w, x: y, y: A } = b.getBoundingClientRect();
16986
+ h.current = w;
16987
16987
  }
16988
16988
  return /* @__PURE__ */ a.jsx(
16989
16989
  tE.Provider,
@@ -17150,39 +17150,39 @@ const _g = ({
17150
17150
  }, x = (y) => {
17151
17151
  if (!y.relatedTarget || !y.relatedTarget.classList.value || !y.relatedTarget.classList.value.includes(`tag-${t}-class`)) {
17152
17152
  p("");
17153
- const w = { ...e };
17154
- w[r] = h, r === dn.KEY ? w.isInvalidKey = h || w.propagate ? !_.propagateTagKey(h).isValid : w.value !== "" : h || i || w.propagate ? (w.isInvalidValue = !_.propagateTagValue(h, w.key).isValid, w.isInvalidKey = !w.key || w.isInvalidKey) : (w.isInvalidValue = !1, w.isInvalidKey = w.key ? w.isInvalidKey : !1), s(t, w);
17153
+ const A = { ...e };
17154
+ A[r] = h, r === dn.KEY ? A.isInvalidKey = h || A.propagate ? !_.propagateTagKey(h).isValid : A.value !== "" : h || i || A.propagate ? (A.isInvalidValue = !_.propagateTagValue(h, A.key).isValid, A.isInvalidKey = !A.key || A.isInvalidKey) : (A.isInvalidValue = !1, A.isInvalidKey = A.key ? A.isInvalidKey : !1), s(t, A);
17155
17155
  }
17156
17156
  }, b = (y) => {
17157
17157
  f(y.target.value);
17158
17158
  }, E = (y) => {
17159
17159
  Oe(y);
17160
- const w = { ...e };
17161
- w[r] = y.currentTarget.dataset.key, w.propagate = y.currentTarget.dataset.propagate === "true", s(t, w), p("");
17160
+ const A = { ...e };
17161
+ A[r] = y.currentTarget.dataset.key, A.propagate = y.currentTarget.dataset.propagate === "true", s(t, A), p("");
17162
17162
  }, v = () => {
17163
17163
  let y = { isValid: !0, messages: [] };
17164
17164
  return r === dn.KEY ? (h || e.value) && (y = _.propagateTagKey(h)) : (i || h || e.propagate) && (y = _.propagateTagValue(h, e.key)), y.isValid ? null : /* @__PURE__ */ a.jsxs("div", { className: "p-4", onClick: Oe, "data-testid": "tag-label-cross-stop-propagation", children: [
17165
- y.messages.map((w) => /* @__PURE__ */ a.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
17165
+ y.messages.map((A) => /* @__PURE__ */ a.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
17166
17166
  /* @__PURE__ */ a.jsx("span", { children: /* @__PURE__ */ a.jsx(Sn, { className: "icon-dim-14 scr-5 mt-3 mr-4" }) }),
17167
- /* @__PURE__ */ a.jsx("span", { children: w })
17168
- ] }, w)),
17167
+ /* @__PURE__ */ a.jsx("span", { children: A })
17168
+ ] }, A)),
17169
17169
  r === dn.KEY && /* @__PURE__ */ a.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
17170
17170
  /* @__PURE__ */ a.jsx("span", { children: /* @__PURE__ */ a.jsx(fr, { className: "icon-dim-14 mt-3 mr-4" }) }),
17171
17171
  /* @__PURE__ */ a.jsx("span", { className: "dc__italic-font-style", children: "Key format: prefix/name or name" })
17172
17172
  ] })
17173
17173
  ] });
17174
- }, C = (y, w) => /* @__PURE__ */ a.jsx(
17174
+ }, C = (y, A) => /* @__PURE__ */ a.jsx(
17175
17175
  "div",
17176
17176
  {
17177
17177
  "data-key": y.label,
17178
17178
  "data-propagate": y.propagate,
17179
17179
  className: "dc__hover-n50 dc__ellipsis-right lh-20 fs-13 fw-4 pt-6 pr-8 pb-6 pl-8 cursor",
17180
17180
  onClick: E,
17181
- "data-testid": `tag-label-value-${w}`,
17181
+ "data-testid": `tag-label-value-${A}`,
17182
17182
  children: y.label
17183
17183
  },
17184
- `${y.value}-${w}`
17185
- ), S = (y, w) => /* @__PURE__ */ a.jsx(
17184
+ `${y.value}-${A}`
17185
+ ), S = (y, A) => /* @__PURE__ */ a.jsx(
17186
17186
  fe,
17187
17187
  {
17188
17188
  className: "default-tt",
@@ -17192,18 +17192,18 @@ const _g = ({
17192
17192
  /* @__PURE__ */ a.jsx("div", { className: "mb-10 fs-12 fw-6 dc__break-word", children: y.label }),
17193
17193
  /* @__PURE__ */ a.jsx("div", { className: "fs-12 fw-4 dc__break-word", children: y.description })
17194
17194
  ] }),
17195
- children: C(y, w)
17195
+ children: C(y, A)
17196
17196
  }
17197
17197
  ), T = () => {
17198
17198
  if (n?.length) {
17199
- const y = n.filter((w) => w.label.indexOf(h) >= 0);
17199
+ const y = n.filter((A) => A.label.indexOf(h) >= 0);
17200
17200
  if (y.length)
17201
17201
  return /* @__PURE__ */ a.jsx("div", { children: y.map(
17202
- (w, k) => w.description ? S(w, k) : C(w, k)
17202
+ (A, k) => A.description ? S(A, k) : C(A, k)
17203
17203
  ) });
17204
17204
  }
17205
17205
  return v();
17206
- }, A = m === `tag-${r}-${t}` ? T() : null;
17206
+ }, w = m === `tag-${r}-${t}` ? T() : null;
17207
17207
  return /* @__PURE__ */ a.jsxs(Dt, { autoClose: !0, autoPosition: !0, children: [
17208
17208
  /* @__PURE__ */ a.jsx(Dt.Button, { rootClassName: "bg__secondary flex top dc__no-border-imp", children: /* @__PURE__ */ a.jsx(
17209
17209
  Yf,
@@ -17222,14 +17222,14 @@ const _g = ({
17222
17222
  id: `tag-${r === dn.KEY ? "key" : "value"}-${t}`
17223
17223
  }
17224
17224
  ) }),
17225
- A && /* @__PURE__ */ a.jsx(
17225
+ w && /* @__PURE__ */ a.jsx(
17226
17226
  Dt.Body,
17227
17227
  {
17228
17228
  rootClassName: `mxh-210 dc__overflow-auto tag-${t}-class`,
17229
17229
  autoWidth: !0,
17230
17230
  preventWheelDisable: !0,
17231
17231
  noBackDrop: u,
17232
- children: A
17232
+ children: w
17233
17233
  }
17234
17234
  )
17235
17235
  ] });
@@ -17391,7 +17391,7 @@ const AD = (t) => {
17391
17391
  const E = de(() => t.map(({ id: N }) => N), [t]);
17392
17392
  P(() => {
17393
17393
  x(t.length > 0 && Object.keys(b.current).length < t.length);
17394
- const N = E.reduce((I, O) => (b.current[O] ? I[O] = b.current[O] : I[O] = e.reduce((D, { key: V }) => ({ ...D, [V]: On() }), {}), I), {});
17394
+ const N = E.reduce((I, O) => (b.current[O] ? I[O] = b.current[O] : I[O] = e.reduce((D, { key: F }) => ({ ...D, [F]: On() }), {}), I), {});
17395
17395
  b.current = N;
17396
17396
  }, [JSON.stringify(E)]), P(() => {
17397
17397
  if (g) {
@@ -17401,21 +17401,21 @@ const AD = (t) => {
17401
17401
  }, [g]);
17402
17402
  const v = (N, I) => (O) => {
17403
17403
  let D = "";
17404
- const V = { selectedValue: null, files: [] };
17404
+ const F = { selectedValue: null, files: [] };
17405
17405
  switch (N.data[I].type) {
17406
17406
  case Ot.DROPDOWN:
17407
17407
  case Ot.SELECT_TEXT:
17408
- D = O?.value || "", V.selectedValue = O;
17408
+ D = O?.value || "", F.selectedValue = O;
17409
17409
  break;
17410
17410
  case Ot.FILE_UPLOAD:
17411
- D = O[0]?.name || "", V.files = O;
17411
+ D = O[0]?.name || "", F.files = O;
17412
17412
  break;
17413
17413
  case Ot.TEXT:
17414
17414
  default:
17415
17415
  D = O.target.value;
17416
17416
  break;
17417
17417
  }
17418
- o(N, I, D, V);
17418
+ o(N, I, D, F);
17419
17419
  }, C = (N) => () => {
17420
17420
  l(N);
17421
17421
  }, S = (N, I) => {
@@ -17440,22 +17440,22 @@ const AD = (t) => {
17440
17440
  }
17441
17441
  ) });
17442
17442
  case Ot.SELECT_TEXT: {
17443
- const { value: D, props: V } = N.data[I], { isCreatable: $ = !0 } = V;
17443
+ const { value: D, props: F } = N.data[I], { isCreatable: V = !0 } = F;
17444
17444
  return /* @__PURE__ */ a.jsx("div", { className: "w-100 h-100 flex top dc__align-self-start", children: /* @__PURE__ */ a.jsx(
17445
17445
  v1,
17446
17446
  {
17447
- isCreatable: $,
17447
+ isCreatable: V,
17448
17448
  isClearable: !0,
17449
- ...V,
17449
+ ...F,
17450
17450
  variant: Vn.BORDER_LESS,
17451
17451
  classNamePrefix: "dynamic-data-table__cell__select-picker-text-area",
17452
17452
  inputId: `data-table-${N.id}-${I}-cell`,
17453
17453
  minHeight: 20,
17454
17454
  maxHeight: 160,
17455
17455
  value: gr(
17456
- V?.options,
17456
+ F?.options,
17457
17457
  D,
17458
- $ && D ? { label: D, value: D } : null
17458
+ V && D ? { label: D, value: D } : null
17459
17459
  ),
17460
17460
  onChange: v(N, I),
17461
17461
  isDisabled: O,
@@ -17518,7 +17518,7 @@ const AD = (t) => {
17518
17518
  }
17519
17519
  );
17520
17520
  }
17521
- }, T = (N, I) => N.data[I].required && /* @__PURE__ */ a.jsx("span", { className: "mt-10 px-6 w-20 cr-5 fs-16 lh-20 dc__align-self-start", children: "*" }), A = (N, I, O) => {
17521
+ }, T = (N, I) => N.data[I].required && /* @__PURE__ */ a.jsx("span", { className: "mt-10 px-6 w-20 cr-5 fs-16 lh-20 dc__align-self-start", children: "*" }), w = (N, I, O) => {
17522
17522
  const D = O ? c : d;
17523
17523
  return D?.[I]?.(N) ? /* @__PURE__ */ a.jsx(
17524
17524
  "div",
@@ -17530,17 +17530,17 @@ const AD = (t) => {
17530
17530
  }, y = (N) => /* @__PURE__ */ a.jsxs("div", { className: "flexbox align-items-center dc__gap-4", children: [
17531
17531
  /* @__PURE__ */ a.jsx(Ct, { className: "icon-dim-16 fcr-5 dc__align-self-start dc__no-shrink" }),
17532
17532
  /* @__PURE__ */ a.jsx("p", { className: "fs-12 lh-16 cn-7 m-0", children: N })
17533
- ] }, N), w = (N, I) => {
17534
- const { isValid: O, errorMessages: D } = !N.data[I].disabled && i[N.id]?.[I] ? i[N.id][I] : { isValid: !0, errorMessages: [] }, V = N.data[I].type === Ot.SELECT_TEXT;
17533
+ ] }, N), A = (N, I) => {
17534
+ const { isValid: O, errorMessages: D } = !N.data[I].disabled && i[N.id]?.[I] ? i[N.id][I] : { isValid: !0, errorMessages: [] }, F = N.data[I].type === Ot.SELECT_TEXT;
17535
17535
  return O ? null : /* @__PURE__ */ a.jsx(
17536
17536
  "div",
17537
17537
  {
17538
- className: `dynamic-data-table__error bg__primary dc__border br-4 py-7 px-8 flexbox-col dc__gap-4 ${V ? "no-error" : ""}`,
17539
- children: D.map(($) => y($))
17538
+ className: `dynamic-data-table__error bg__primary dc__border br-4 py-7 px-8 flexbox-col dc__gap-4 ${F ? "no-error" : ""}`,
17539
+ children: D.map((V) => y(V))
17540
17540
  }
17541
17541
  );
17542
17542
  }, k = (N, I, O) => {
17543
- const D = s || N.data[I].disabled || !1, V = !(i[N.id]?.[I]?.isValid ?? !0), $ = /* @__PURE__ */ a.jsx(
17543
+ const D = s || N.data[I].disabled || !1, F = !(i[N.id]?.[I]?.isValid ?? !0), V = /* @__PURE__ */ a.jsx(
17544
17544
  Ae,
17545
17545
  {
17546
17546
  alwaysShowTippyOnHover: !!N.data[I].tooltip?.content || D,
@@ -17551,13 +17551,13 @@ const AD = (t) => {
17551
17551
  children: /* @__PURE__ */ a.jsxs(
17552
17552
  "div",
17553
17553
  {
17554
- className: `dynamic-data-table__cell bg__primary flexbox dc__align-items-center dc__gap-4 dc__position-rel ${D ? "cursor-not-allowed no-hover" : ""} ${!D && V ? "dynamic-data-table__cell--error no-hover" : ""} ${vD(N.data[I].type) ? "" : "no-hover no-focus"}`,
17554
+ className: `dynamic-data-table__cell bg__primary flexbox dc__align-items-center dc__gap-4 dc__position-rel ${D ? "cursor-not-allowed no-hover" : ""} ${!D && F ? "dynamic-data-table__cell--error no-hover" : ""} ${vD(N.data[I].type) ? "" : "no-hover no-focus"}`,
17555
17555
  children: [
17556
- A(N, I, !0),
17556
+ w(N, I, !0),
17557
17557
  S(N, I),
17558
17558
  T(N, I),
17559
- A(N, I),
17560
- w(N, I)
17559
+ w(N, I),
17560
+ A(N, I)
17561
17561
  ]
17562
17562
  }
17563
17563
  )
@@ -17573,13 +17573,13 @@ const AD = (t) => {
17573
17573
  );
17574
17574
  return ee === "start" ? /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
17575
17575
  ue,
17576
- $
17576
+ V
17577
17577
  ] }) : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
17578
- $,
17578
+ V,
17579
17579
  ue
17580
17580
  ] });
17581
17581
  }
17582
- return $;
17582
+ return V;
17583
17583
  };
17584
17584
  return m ? /* @__PURE__ */ a.jsx("div", { className: "bcn-2 px-1 pb-1 dc__bottom-radius-4", children: /* @__PURE__ */ a.jsx(
17585
17585
  "div",
@@ -26005,36 +26005,36 @@ function OP(t, e, s) {
26005
26005
  let C = _ ? E(s.from, null, _) : v(m, !1), S = g ? E(null, s.to, g) : v(p, !0), T = [];
26006
26006
  return (_ || m).to < (g || p).from - (_ && g ? 1 : 0) || m.widgetLineBreaks > 1 && C.bottom + t.defaultLineHeight / 2 < S.top ? T.push(x(h, C.bottom, f, S.top)) : C.bottom < S.top && t.elementAtHeight((C.bottom + S.top) / 2).type == Gt.Text && (C.bottom = S.top = (C.bottom + S.top) / 2), b(C).concat(T).concat(b(S));
26007
26007
  }
26008
- function x(C, S, T, A) {
26009
- return new ba(e, C - c.left, S - c.top, T - C, A - S);
26008
+ function x(C, S, T, w) {
26009
+ return new ba(e, C - c.left, S - c.top, T - C, w - S);
26010
26010
  }
26011
26011
  function b({ top: C, bottom: S, horizontal: T }) {
26012
- let A = [];
26012
+ let w = [];
26013
26013
  for (let y = 0; y < T.length; y += 2)
26014
- A.push(x(T[y], C, T[y + 1], S));
26015
- return A;
26014
+ w.push(x(T[y], C, T[y + 1], S));
26015
+ return w;
26016
26016
  }
26017
26017
  function E(C, S, T) {
26018
- let A = 1e9, y = -1e9, w = [];
26019
- function k(O, D, V, $, G) {
26020
- let Y = t.coordsAtPos(O, O == T.to ? -2 : 2), ee = t.coordsAtPos(V, V == T.from ? 2 : -2);
26021
- !Y || !ee || (A = Math.min(Y.top, ee.top, A), y = Math.max(Y.bottom, ee.bottom, y), G == ze.LTR ? w.push(r && D ? h : Y.left, r && $ ? f : ee.right) : w.push(!r && $ ? h : ee.left, !r && D ? f : Y.right));
26018
+ let w = 1e9, y = -1e9, A = [];
26019
+ function k(O, D, F, V, G) {
26020
+ let Y = t.coordsAtPos(O, O == T.to ? -2 : 2), ee = t.coordsAtPos(F, F == T.from ? 2 : -2);
26021
+ !Y || !ee || (w = Math.min(Y.top, ee.top, w), y = Math.max(Y.bottom, ee.bottom, y), G == ze.LTR ? A.push(r && D ? h : Y.left, r && V ? f : ee.right) : A.push(!r && V ? h : ee.left, !r && D ? f : Y.right));
26022
26022
  }
26023
26023
  let N = C ?? T.from, I = S ?? T.to;
26024
26024
  for (let O of t.visibleRanges)
26025
26025
  if (O.to > N && O.from < I)
26026
- for (let D = Math.max(O.from, N), V = Math.min(O.to, I); ; ) {
26027
- let $ = t.state.doc.lineAt(D);
26028
- for (let G of t.bidiSpans($)) {
26029
- let Y = G.from + $.from, ee = G.to + $.from;
26030
- if (Y >= V)
26026
+ for (let D = Math.max(O.from, N), F = Math.min(O.to, I); ; ) {
26027
+ let V = t.state.doc.lineAt(D);
26028
+ for (let G of t.bidiSpans(V)) {
26029
+ let Y = G.from + V.from, ee = G.to + V.from;
26030
+ if (Y >= F)
26031
26031
  break;
26032
- ee > D && k(Math.max(Y, D), C == null && Y <= N, Math.min(ee, V), S == null && ee >= I, G.dir);
26032
+ ee > D && k(Math.max(Y, D), C == null && Y <= N, Math.min(ee, F), S == null && ee >= I, G.dir);
26033
26033
  }
26034
- if (D = $.to + 1, D >= V)
26034
+ if (D = V.to + 1, D >= F)
26035
26035
  break;
26036
26036
  }
26037
- return w.length == 0 && k(N, C == null, I, S == null, t.textDirection), { top: A, bottom: y, horizontal: w };
26037
+ return A.length == 0 && k(N, C == null, I, S == null, t.textDirection), { top: w, bottom: y, horizontal: A };
26038
26038
  }
26039
26039
  function v(C, S) {
26040
26040
  let T = l.top + (S ? C.top : C.bottom);
@@ -26735,11 +26735,11 @@ const ou = /* @__PURE__ */ W.define({
26735
26735
  } else u.style.height && (u.style.height = "");
26736
26736
  let S = v ? h.top - g - p - x.y : h.bottom + p + x.y, T = E + _;
26737
26737
  if (d.overlap !== !0)
26738
- for (let A of o)
26739
- A.left < T && A.right > E && A.top < S + g && A.bottom > S && (S = v ? A.top - g - 2 - p : A.bottom + p + 2);
26738
+ for (let w of o)
26739
+ w.left < T && w.right > E && w.top < S + g && w.bottom > S && (S = v ? w.top - g - 2 - p : w.bottom + p + 2);
26740
26740
  if (this.position == "absolute" ? (u.style.top = (S - t.parent.top) / r + "px", u_(u, (E - t.parent.left) / i)) : (u.style.top = S / r + "px", u_(u, E / i)), m) {
26741
- let A = h.left + (b ? x.x : -x.x) - (E + 14 - 7);
26742
- m.style.left = A / i + "px";
26741
+ let w = h.left + (b ? x.x : -x.x) - (E + 14 - 7);
26742
+ m.style.left = w / i + "px";
26743
26743
  }
26744
26744
  d.overlap !== !0 && o.push({ left: E, top: S, right: T, bottom: S + g }), u.classList.toggle("cm-tooltip-above", v), u.classList.toggle("cm-tooltip-below", !v), d.positioned && d.positioned(t.space);
26745
26745
  }
@@ -32742,7 +32742,7 @@ function yU(t) {
32742
32742
  basicSetup: v = !0,
32743
32743
  root: C,
32744
32744
  initialState: S
32745
- } = t, [T, A] = R(), [y, w] = R(), [k, N] = R(), I = H.theme({
32745
+ } = t, [T, w] = R(), [y, A] = R(), [k, N] = R(), I = H.theme({
32746
32746
  "&": {
32747
32747
  height: u,
32748
32748
  minHeight: h,
@@ -32754,14 +32754,14 @@ function yU(t) {
32754
32754
  "& .cm-scroller": {
32755
32755
  height: "100% !important"
32756
32756
  }
32757
- }), O = H.updateListener.of(($) => {
32758
- if ($.docChanged && typeof n == "function" && // Fix echoing of the remote changes:
32757
+ }), O = H.updateListener.of((V) => {
32758
+ if (V.docChanged && typeof n == "function" && // Fix echoing of the remote changes:
32759
32759
  // If transaction is market as remote we don't have to call `onChange` handler again
32760
- !$.transactions.some((ee) => ee.annotation(K_))) {
32761
- var G = $.state.doc, Y = G.toString();
32762
- n(Y, $);
32760
+ !V.transactions.some((ee) => ee.annotation(K_))) {
32761
+ var G = V.state.doc, Y = G.toString();
32762
+ n(Y, V);
32763
32763
  }
32764
- i && i(vU($));
32764
+ i && i(vU(V));
32765
32765
  }), D = CU({
32766
32766
  theme: d,
32767
32767
  editable: x,
@@ -32769,41 +32769,41 @@ function yU(t) {
32769
32769
  placeholder: g,
32770
32770
  indentWithTab: E,
32771
32771
  basicSetup: v
32772
- }), V = [O, I, ...D];
32773
- return o && typeof o == "function" && V.push(H.updateListener.of(o)), V = V.concat(l), P(() => {
32772
+ }), F = [O, I, ...D];
32773
+ return o && typeof o == "function" && F.push(H.updateListener.of(o)), F = F.concat(l), P(() => {
32774
32774
  if (T && !k) {
32775
- var $ = {
32775
+ var V = {
32776
32776
  doc: e,
32777
32777
  selection: s,
32778
- extensions: V
32779
- }, G = S ? me.fromJSON(S.json, $, S.fields) : me.create($);
32778
+ extensions: F
32779
+ }, G = S ? me.fromJSON(S.json, V, S.fields) : me.create(V);
32780
32780
  if (N(G), !y) {
32781
32781
  var Y = new H({
32782
32782
  state: G,
32783
32783
  parent: T,
32784
32784
  root: C
32785
32785
  });
32786
- w(Y), r && r(Y, G);
32786
+ A(Y), r && r(Y, G);
32787
32787
  }
32788
32788
  }
32789
32789
  return () => {
32790
- y && (N(void 0), w(void 0));
32790
+ y && (N(void 0), A(void 0));
32791
32791
  };
32792
- }, [T, k]), P(() => A(t.container), [t.container]), P(() => () => {
32793
- y && (y.destroy(), w(void 0));
32792
+ }, [T, k]), P(() => w(t.container), [t.container]), P(() => () => {
32793
+ y && (y.destroy(), A(void 0));
32794
32794
  }, [y]), P(() => {
32795
32795
  c && y && y.focus();
32796
32796
  }, [c, y]), P(() => {
32797
32797
  y && y.dispatch({
32798
- effects: se.reconfigure.of(V)
32798
+ effects: se.reconfigure.of(F)
32799
32799
  });
32800
32800
  }, [d, l, u, h, f, m, p, _, g, x, b, E, v, n, o]), P(() => {
32801
32801
  if (e !== void 0) {
32802
- var $ = y ? y.state.doc.toString() : "";
32803
- y && e !== $ && y.dispatch({
32802
+ var V = y ? y.state.doc.toString() : "";
32803
+ y && e !== V && y.dispatch({
32804
32804
  changes: {
32805
32805
  from: 0,
32806
- to: $.length,
32806
+ to: V.length,
32807
32807
  insert: e || ""
32808
32808
  },
32809
32809
  annotations: [K_.of(!0)]
@@ -32813,9 +32813,9 @@ function yU(t) {
32813
32813
  state: k,
32814
32814
  setState: N,
32815
32815
  view: y,
32816
- setView: w,
32816
+ setView: A,
32817
32817
  container: T,
32818
- setContainer: A
32818
+ setContainer: w
32819
32819
  };
32820
32820
  }
32821
32821
  var NU = ["className", "value", "selection", "extensions", "onChange", "onStatistics", "onCreateEditor", "onUpdate", "autoFocus", "theme", "height", "minHeight", "maxHeight", "width", "minWidth", "maxWidth", "basicSetup", "placeholder", "indentWithTab", "editable", "readOnly", "root", "initialState"], HS = /* @__PURE__ */ Gx((t, e) => {
@@ -32842,13 +32842,13 @@ var NU = ["className", "value", "selection", "extensions", "onChange", "onStatis
32842
32842
  editable: C,
32843
32843
  readOnly: S,
32844
32844
  root: T,
32845
- initialState: A
32846
- } = t, y = bi(t, NU), w = ie(null), {
32845
+ initialState: w
32846
+ } = t, y = bi(t, NU), A = ie(null), {
32847
32847
  state: k,
32848
32848
  view: N,
32849
32849
  container: I
32850
32850
  } = yU({
32851
- container: w.current,
32851
+ container: A.current,
32852
32852
  root: T,
32853
32853
  value: n,
32854
32854
  autoFocus: u,
@@ -32870,17 +32870,17 @@ var NU = ["className", "value", "selection", "extensions", "onChange", "onStatis
32870
32870
  onCreateEditor: c,
32871
32871
  onUpdate: d,
32872
32872
  extensions: r,
32873
- initialState: A
32873
+ initialState: w
32874
32874
  });
32875
32875
  if (hf(e, () => ({
32876
- editor: w.current,
32876
+ editor: A.current,
32877
32877
  state: k,
32878
32878
  view: N
32879
- }), [w, I, k, N]), typeof n != "string")
32879
+ }), [A, I, k, N]), typeof n != "string")
32880
32880
  throw new Error("value must be typeof string but got " + typeof n);
32881
32881
  var O = typeof h == "string" ? "cm-theme-" + h : "cm-theme";
32882
32882
  return /* @__PURE__ */ a.jsx("div", Ve({
32883
- ref: w,
32883
+ ref: A,
32884
32884
  className: "" + O + (s ? " " + s : "")
32885
32885
  }, y));
32886
32886
  });
@@ -34652,7 +34652,7 @@ const S$ = (t) => {
34652
34652
  validatorSchema: e,
34653
34653
  schemaURI: s
34654
34654
  }) => {
34655
- if (!Object.keys(e).length)
34655
+ if (!Object.keys(e ?? {}).length)
34656
34656
  return [];
34657
34657
  switch (t) {
34658
34658
  case Qt.JSON:
@@ -34769,15 +34769,15 @@ const S$ = (t) => {
34769
34769
  const [s, n] = R(new jc({ search: "" })), [i, r] = R({ count: 0, current: 1 }), [o, l] = R(!!s.replace), c = !i.count, d = t.state.readOnly, u = ({
34770
34770
  caseSensitive: O = s.caseSensitive,
34771
34771
  regexp: D = s.regexp,
34772
- replace: V = s.replace,
34773
- search: $ = s.search,
34772
+ replace: F = s.replace,
34773
+ search: V = s.search,
34774
34774
  wholeWord: G = s.wholeWord
34775
34775
  }) => {
34776
34776
  const Y = new jc({
34777
34777
  caseSensitive: O,
34778
34778
  regexp: D,
34779
- replace: V,
34780
- search: $,
34779
+ replace: F,
34780
+ search: V,
34781
34781
  wholeWord: G
34782
34782
  });
34783
34783
  Y.eq(s) || (n(Y), t.dispatch({ effects: Oi.of(Y) }), r(Zr(Y, t)));
@@ -34815,7 +34815,7 @@ const S$ = (t) => {
34815
34815
  u({ regexp: O });
34816
34816
  }, T = () => {
34817
34817
  l(!o);
34818
- }, A = (O) => {
34818
+ }, w = (O) => {
34819
34819
  O.preventDefault(), O.stopPropagation(), wd(t);
34820
34820
  }, y = () => /* @__PURE__ */ a.jsx("div", { className: "code-editor__search__replace-expand-button flexbox dc__align-self-stretch", children: /* @__PURE__ */ a.jsx(
34821
34821
  ge,
@@ -34842,7 +34842,7 @@ const S$ = (t) => {
34842
34842
  placement: "bottom"
34843
34843
  }
34844
34844
  }
34845
- ) }), w = () => /* @__PURE__ */ a.jsxs("div", { className: "code-editor__search__field-container", children: [
34845
+ ) }), A = () => /* @__PURE__ */ a.jsxs("div", { className: "code-editor__search__field-container", children: [
34846
34846
  /* @__PURE__ */ a.jsx(
34847
34847
  "input",
34848
34848
  {
@@ -34960,7 +34960,7 @@ const S$ = (t) => {
34960
34960
  variant: Te.borderLess,
34961
34961
  style: De.neutral,
34962
34962
  size: B.xxs,
34963
- onClick: A,
34963
+ onClick: w,
34964
34964
  showTooltip: !0,
34965
34965
  tooltipProps: {
34966
34966
  shortcutKeyCombo: {
@@ -35032,7 +35032,7 @@ const S$ = (t) => {
35032
35032
  !d && y(),
35033
35033
  /* @__PURE__ */ a.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
35034
35034
  /* @__PURE__ */ a.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
35035
- w(),
35035
+ A(),
35036
35036
  /* @__PURE__ */ a.jsx("p", { className: `m-0 w-80px fs-12 lh-18 cn-7 ${s.search && !i.count ? "cr-5" : ""}`, children: i.count ? `${i.current || "?"} of ${i.count}` : "No results" }),
35037
35037
  k(),
35038
35038
  N()
@@ -35050,12 +35050,12 @@ const S$ = (t) => {
35050
35050
  }, i = () => {
35051
35051
  const o = document.querySelector("[data-code-editor-find]");
35052
35052
  o?.focus(), o?.select();
35053
- }, r = ({ transactions: o, changes: l }) => {
35054
- o.forEach((c) => {
35055
- c.effects.forEach((d) => {
35056
- d.is(Oi) && n();
35053
+ }, r = ({ transactions: o, docChanged: l, state: c, startState: d }) => {
35054
+ o.forEach((u) => {
35055
+ u.effects.forEach((h) => {
35056
+ h.is(Oi) && n();
35057
35057
  });
35058
- }), l && n();
35058
+ }), (l || c.readOnly !== d.readOnly) && n();
35059
35059
  };
35060
35060
  return n(), {
35061
35061
  top: !0,
@@ -35334,10 +35334,10 @@ const X$ = (t) => (t ? by : _y)({
35334
35334
  fontSize: "14px",
35335
35335
  fontFamily: "Inconsolata, monospace",
35336
35336
  background: "var(--bg-code-editor-base)",
35337
- foreground: t ? "var(--white)" : "var(--black)",
35338
- caret: t ? "var(--white)" : "var(--black)",
35337
+ foreground: "var(--N900)",
35338
+ caret: "var(--N900)",
35339
35339
  gutterBackground: "var(--bg-code-editor-base-gutter)",
35340
- gutterForeground: t ? "var(--white)" : "var(--black)",
35340
+ gutterForeground: "var(--N900)",
35341
35341
  gutterBorder: "transparent",
35342
35342
  lineHighlight: "var(--active-line)"
35343
35343
  },
@@ -35421,7 +35421,7 @@ function tV(t) {
35421
35421
  basicSetup: v = !0,
35422
35422
  root: C,
35423
35423
  initialState: S
35424
- } = t, [T, A] = R(), [y, w] = R(), [k, N] = R(), I = H.theme({
35424
+ } = t, [T, w] = R(), [y, A] = R(), [k, N] = R(), I = H.theme({
35425
35425
  "&": {
35426
35426
  height: u,
35427
35427
  minHeight: h,
@@ -35433,14 +35433,14 @@ function tV(t) {
35433
35433
  "& .cm-scroller": {
35434
35434
  height: "100% !important"
35435
35435
  }
35436
- }), O = H.updateListener.of(($) => {
35437
- if ($.docChanged && typeof n == "function" && // Fix echoing of the remote changes:
35436
+ }), O = H.updateListener.of((V) => {
35437
+ if (V.docChanged && typeof n == "function" && // Fix echoing of the remote changes:
35438
35438
  // If transaction is market as remote we don't have to call `onChange` handler again
35439
- !$.transactions.some((ee) => ee.annotation(sx))) {
35440
- var G = $.state.doc, Y = G.toString();
35441
- n(Y, $);
35439
+ !V.transactions.some((ee) => ee.annotation(sx))) {
35440
+ var G = V.state.doc, Y = G.toString();
35441
+ n(Y, V);
35442
35442
  }
35443
- i && i(Q$($));
35443
+ i && i(Q$(V));
35444
35444
  }), D = mi({
35445
35445
  theme: d,
35446
35446
  editable: x,
@@ -35448,41 +35448,41 @@ function tV(t) {
35448
35448
  placeholder: g,
35449
35449
  indentWithTab: E,
35450
35450
  basicSetup: v
35451
- }), V = [O, I, ...D];
35452
- return o && typeof o == "function" && V.push(H.updateListener.of(o)), V = V.concat(l), P(() => {
35451
+ }), F = [O, I, ...D];
35452
+ return o && typeof o == "function" && F.push(H.updateListener.of(o)), F = F.concat(l), P(() => {
35453
35453
  if (T && !k) {
35454
- var $ = {
35454
+ var V = {
35455
35455
  doc: e,
35456
35456
  selection: s,
35457
- extensions: V
35458
- }, G = S ? me.fromJSON(S.json, $, S.fields) : me.create($);
35457
+ extensions: F
35458
+ }, G = S ? me.fromJSON(S.json, V, S.fields) : me.create(V);
35459
35459
  if (N(G), !y) {
35460
35460
  var Y = new H({
35461
35461
  state: G,
35462
35462
  parent: T,
35463
35463
  root: C
35464
35464
  });
35465
- w(Y), r && r(Y, G);
35465
+ A(Y), r && r(Y, G);
35466
35466
  }
35467
35467
  }
35468
35468
  return () => {
35469
- y && (N(void 0), w(void 0));
35469
+ y && (N(void 0), A(void 0));
35470
35470
  };
35471
- }, [T, k]), P(() => A(t.container), [t.container]), P(() => () => {
35472
- y && (y.destroy(), w(void 0));
35471
+ }, [T, k]), P(() => w(t.container), [t.container]), P(() => () => {
35472
+ y && (y.destroy(), A(void 0));
35473
35473
  }, [y]), P(() => {
35474
35474
  c && y && y.focus();
35475
35475
  }, [c, y]), P(() => {
35476
35476
  y && y.dispatch({
35477
- effects: se.reconfigure.of(V)
35477
+ effects: se.reconfigure.of(F)
35478
35478
  });
35479
35479
  }, [d, l, u, h, f, m, p, _, g, x, b, E, v, n, o]), P(() => {
35480
35480
  if (e !== void 0) {
35481
- var $ = y ? y.state.doc.toString() : "";
35482
- y && e !== $ && y.dispatch({
35481
+ var V = y ? y.state.doc.toString() : "";
35482
+ y && e !== V && y.dispatch({
35483
35483
  changes: {
35484
35484
  from: 0,
35485
- to: $.length,
35485
+ to: V.length,
35486
35486
  insert: e || ""
35487
35487
  },
35488
35488
  annotations: [sx.of(!0)]
@@ -35492,9 +35492,9 @@ function tV(t) {
35492
35492
  state: k,
35493
35493
  setState: N,
35494
35494
  view: y,
35495
- setView: w,
35495
+ setView: A,
35496
35496
  container: T,
35497
- setContainer: A
35497
+ setContainer: w
35498
35498
  };
35499
35499
  }
35500
35500
  var sV = ["className", "value", "selection", "extensions", "onChange", "onStatistics", "onCreateEditor", "onUpdate", "autoFocus", "theme", "height", "minHeight", "maxHeight", "width", "minWidth", "maxWidth", "basicSetup", "placeholder", "indentWithTab", "editable", "readOnly", "root", "initialState"], nV = /* @__PURE__ */ Gx((t, e) => {
@@ -35521,13 +35521,13 @@ var sV = ["className", "value", "selection", "extensions", "onChange", "onStatis
35521
35521
  editable: C,
35522
35522
  readOnly: S,
35523
35523
  root: T,
35524
- initialState: A
35525
- } = t, y = bi(t, sV), w = ie(null), {
35524
+ initialState: w
35525
+ } = t, y = bi(t, sV), A = ie(null), {
35526
35526
  state: k,
35527
35527
  view: N,
35528
35528
  container: I
35529
35529
  } = tV({
35530
- container: w.current,
35530
+ container: A.current,
35531
35531
  root: T,
35532
35532
  value: n,
35533
35533
  autoFocus: u,
@@ -35549,17 +35549,17 @@ var sV = ["className", "value", "selection", "extensions", "onChange", "onStatis
35549
35549
  onCreateEditor: c,
35550
35550
  onUpdate: d,
35551
35551
  extensions: r,
35552
- initialState: A
35552
+ initialState: w
35553
35553
  });
35554
35554
  if (hf(e, () => ({
35555
- editor: w.current,
35555
+ editor: A.current,
35556
35556
  state: k,
35557
35557
  view: N
35558
- }), [w, I, k, N]), typeof n != "string")
35558
+ }), [A, I, k, N]), typeof n != "string")
35559
35559
  throw new Error("value must be typeof string but got " + typeof n);
35560
35560
  var O = typeof h == "string" ? "cm-theme-" + h : "cm-theme";
35561
35561
  return /* @__PURE__ */ a.jsx("div", Ve({
35562
- ref: w,
35562
+ ref: A,
35563
35563
  className: "" + O + (s ? " " + s : "")
35564
35564
  }, y));
35565
35565
  });
@@ -36611,15 +36611,15 @@ var wV = ["className", "children", "orientation", "revertControls", "highlightCh
36611
36611
  parent: v.current
36612
36612
  }, S)
36613
36613
  }), [v, C, m, _, S]);
36614
- var T = H.updateListener.of((w) => {
36615
- if (w.docChanged && typeof g?.onChange == "function") {
36616
- var k = w.state.doc, N = k.toString();
36617
- g?.onChange(N, w);
36614
+ var T = H.updateListener.of((A) => {
36615
+ if (A.docChanged && typeof g?.onChange == "function") {
36616
+ var k = A.state.doc, N = k.toString();
36617
+ g?.onChange(N, A);
36618
36618
  }
36619
- }), A = H.updateListener.of((w) => {
36620
- if (w.docChanged && typeof p?.onChange == "function") {
36621
- var k = w.state.doc, N = k.toString();
36622
- p?.onChange(N, w);
36619
+ }), w = H.updateListener.of((A) => {
36620
+ if (A.docChanged && typeof p?.onChange == "function") {
36621
+ var k = A.state.doc, N = k.toString();
36622
+ p?.onChange(N, A);
36623
36623
  }
36624
36624
  });
36625
36625
  P(() => {
@@ -36632,7 +36632,7 @@ var wV = ["className", "children", "orientation", "revertControls", "highlightCh
36632
36632
  b: Ve({}, m, {
36633
36633
  extensions: [...p?.extension || [], ...mi(Ve({}, p?.option, {
36634
36634
  theme: x
36635
- })), A]
36635
+ })), w]
36636
36636
  }),
36637
36637
  parent: v.current
36638
36638
  }, S)), b({
@@ -36640,7 +36640,7 @@ var wV = ["className", "children", "orientation", "revertControls", "highlightCh
36640
36640
  }));
36641
36641
  }, [C, v, g, p]), P(() => {
36642
36642
  if (_ && _.doc && C.current) {
36643
- var w, k = (w = C.current) == null ? void 0 : w.a.state.doc.toString();
36643
+ var A, k = (A = C.current) == null ? void 0 : A.a.state.doc.toString();
36644
36644
  if (k !== _.doc) {
36645
36645
  var N;
36646
36646
  (N = C.current) == null || N.a.dispatch({
@@ -36674,7 +36674,7 @@ var wV = ["className", "children", "orientation", "revertControls", "highlightCh
36674
36674
  }
36675
36675
  }
36676
36676
  if (d && C.current) {
36677
- var V = C.current.a.state.selection.ranges[0].from, $ = C.current.b.state.selection.ranges[0].from;
36677
+ var F = C.current.a.state.selection.ranges[0].from, V = C.current.b.state.selection.ranges[0].from;
36678
36678
  C.current.destroy(), C.current = new bx(Ve({
36679
36679
  a: Ve({}, _, {
36680
36680
  extensions: [...g?.extension || [], ...mi(Ve({}, g?.option, {
@@ -36687,22 +36687,22 @@ var wV = ["className", "children", "orientation", "revertControls", "highlightCh
36687
36687
  }))]
36688
36688
  }),
36689
36689
  parent: v.current
36690
- }, S)), V && (C.current.a.focus(), C.current.a.dispatch({
36690
+ }, S)), F && (C.current.a.focus(), C.current.a.dispatch({
36691
36691
  selection: {
36692
- anchor: V,
36693
- head: V
36692
+ anchor: F,
36693
+ head: F
36694
36694
  }
36695
- })), $ && (C.current.b.focus(), C.current.b.dispatch({
36695
+ })), V && (C.current.b.focus(), C.current.b.dispatch({
36696
36696
  selection: {
36697
- anchor: $,
36698
- head: $
36697
+ anchor: V,
36698
+ head: V
36699
36699
  }
36700
36700
  }));
36701
36701
  }
36702
36702
  }, [C, x, v.current, _, m, g, p, d]), P(() => () => C.current && C.current.destroy(), []), P(() => {
36703
36703
  if (C.current) {
36704
- var w = {};
36705
- E.orientation !== i && (w.orientation = i), E.revertControls !== r && (w.revertControls = r), E.highlightChanges !== o && (w.highlightChanges = o), E.gutter !== l && (w.gutter = l), E.collapseUnchanged !== c && (w.collapseUnchanged = c), E.renderRevertControl !== u && (w.collapseUnchanged = c), Object.keys(w).length && b && C.current && (C.current.reconfigure(Ve({}, w)), b(Ve({}, w)));
36704
+ var A = {};
36705
+ E.orientation !== i && (A.orientation = i), E.revertControls !== r && (A.revertControls = r), E.highlightChanges !== o && (A.highlightChanges = o), E.gutter !== l && (A.gutter = l), E.collapseUnchanged !== c && (A.collapseUnchanged = c), E.renderRevertControl !== u && (A.collapseUnchanged = c), Object.keys(A).length && b && C.current && (C.current.reconfigure(Ve({}, A)), b(Ve({}, A)));
36706
36706
  }
36707
36707
  }, [b, C, i, r, o, l, c, u]);
36708
36708
  var y = "cm-merge-theme";
@@ -36750,28 +36750,34 @@ const RV = ({
36750
36750
  extensions: b,
36751
36751
  autoFocus: E
36752
36752
  }) => {
36753
- const [v, C] = R(!1), S = ie();
36753
+ const [v, C] = R(!1), [S, T] = R(0), w = ie(), y = () => {
36754
+ const F = document.querySelector(".cm-gutters");
36755
+ F && T(F.getBoundingClientRect().width);
36756
+ };
36754
36757
  P(() => {
36755
36758
  setTimeout(() => {
36756
- E && S.current?.view && S.current.view.focus();
36759
+ E && w.current?.view && w.current.view.focus();
36757
36760
  }, 100);
36758
36761
  }, [E]), P(() => {
36759
- const N = document.querySelector("html");
36760
- if (N) {
36761
- const { scrollWidth: I, clientWidth: O } = S.current?.view?.scrollDOM ?? {};
36762
- v && I > O ? N.classList.add("dc__overscroll-none") : N.classList.remove("dc__overscroll-none");
36762
+ const F = document.querySelector("body");
36763
+ if (F) {
36764
+ const { scrollWidth: V, clientWidth: G } = w.current?.view?.scrollDOM ?? {};
36765
+ v && V > G ? F.classList.add("dc__overscroll-none") : F.classList.remove("dc__overscroll-none");
36763
36766
  }
36767
+ y();
36764
36768
  }, [n.lhsCode, n.code, v]);
36765
- const T = (N) => {
36766
- C(!0), g?.(N);
36767
- }, A = (N) => {
36768
- C(!1), x?.(N);
36769
- }, { codeEditorClassName: y, codeEditorHeight: w, codeEditorParentClassName: k } = S$(s);
36770
- return t ? e || /* @__PURE__ */ a.jsx("div", { className: "flex mh-250", style: { height: w }, children: /* @__PURE__ */ a.jsx(st, { pageLoader: !0 }) }) : n.diffMode ? /* @__PURE__ */ a.jsxs(
36769
+ const A = () => {
36770
+ y();
36771
+ }, k = (F) => {
36772
+ C(!0), g?.(F);
36773
+ }, N = (F) => {
36774
+ C(!1), x?.(F);
36775
+ }, { codeEditorClassName: I, codeEditorHeight: O, codeEditorParentClassName: D } = S$(s);
36776
+ return t ? e || /* @__PURE__ */ a.jsx("div", { className: "flex mh-250", style: { height: O }, children: /* @__PURE__ */ a.jsx(st, { pageLoader: !0 }) }) : n.diffMode ? /* @__PURE__ */ a.jsxs(
36771
36777
  lr,
36772
36778
  {
36773
36779
  theme: i,
36774
- className: `w-100 vertical-divider ${o ? "cm-merge-theme__dark" : "cm-merge-theme__light"} ${k}`,
36780
+ className: `w-100 vertical-divider ${o ? "cm-merge-theme__dark" : "cm-merge-theme__light"} ${D}`,
36775
36781
  gutter: !0,
36776
36782
  destroyRerender: !1,
36777
36783
  children: [
@@ -36798,13 +36804,19 @@ const RV = ({
36798
36804
  ]
36799
36805
  },
36800
36806
  r
36801
- ) : /* @__PURE__ */ a.jsxs("div", { ref: m, className: `w-100 ${k}`, children: [
36807
+ ) : /* @__PURE__ */ a.jsxs("div", { ref: m, className: `w-100 ${D}`, children: [
36802
36808
  p && /* @__PURE__ */ a.jsxs(
36803
- "div",
36809
+ "p",
36804
36810
  {
36805
- className: `flexbox text__white code-editor__shebang ${o ? "code-editor__shebang__dark" : "code-editor__shebang__light"}`,
36811
+ className: `m-0 flexbox cn-9 code-editor__shebang ${o ? "code-editor__shebang__dark" : "code-editor__shebang__light"}`,
36806
36812
  children: [
36807
- /* @__PURE__ */ a.jsx("div", { className: "code-editor__shebang__gutter dc__align-self-stretch" }),
36813
+ /* @__PURE__ */ a.jsx(
36814
+ "span",
36815
+ {
36816
+ className: "code-editor__shebang__gutter dc__align-self-stretch",
36817
+ style: { flex: `0 0 ${S}px` }
36818
+ }
36819
+ ),
36808
36820
  p
36809
36821
  ]
36810
36822
  }
@@ -36812,17 +36824,18 @@ const RV = ({
36812
36824
  /* @__PURE__ */ a.jsx(
36813
36825
  HS,
36814
36826
  {
36815
- ref: S,
36827
+ ref: w,
36816
36828
  theme: i,
36817
- className: `${o ? "cm-theme__dark" : "cm-theme__light"} ${y}`,
36829
+ className: `${o ? "cm-theme__dark" : "cm-theme__light"} ${I}`,
36818
36830
  basicSetup: !1,
36819
36831
  value: n.code,
36820
36832
  placeholder: _,
36821
36833
  readOnly: l,
36822
- height: w,
36834
+ height: O,
36823
36835
  minHeight: "250px",
36824
- onFocus: T,
36825
- onBlur: A,
36836
+ onCreateEditor: A,
36837
+ onFocus: k,
36838
+ onBlur: N,
36826
36839
  onChange: h,
36827
36840
  extensions: b
36828
36841
  }
@@ -36853,13 +36866,13 @@ const RV = ({
36853
36866
  cleanData: C = !1,
36854
36867
  onBlur: S,
36855
36868
  onFocus: T,
36856
- autoFocus: A,
36869
+ autoFocus: w,
36857
36870
  disableSearch: y = !1
36858
36871
  }) => {
36859
- const { appTheme: w } = Ob(), k = de(() => {
36872
+ const { appTheme: A } = Ob(), k = de(() => {
36860
36873
  const oe = g ? n : e;
36861
36874
  return C ? Ox(oe) : oe;
36862
- }, [e, n, g]), N = de(() => C ? Ox(s) : s, [s]), I = ie(), O = (t ?? w) === Gn.dark, D = X$(O), [V, $] = R(), [G, Y] = R(!1), [ee, ue] = Yx(
36875
+ }, [e, n, g]), N = de(() => C ? Ox(s) : s, [s]), I = ie(), O = (t ?? A) === Gn.dark, D = X$(O), [F, V] = R(), [G, Y] = R(!1), [ee, ue] = Yx(
36863
36876
  U$,
36864
36877
  $$({
36865
36878
  mode: r,
@@ -36881,10 +36894,10 @@ const RV = ({
36881
36894
  ue({ type: "setDiff", value: g });
36882
36895
  }, [g]), P(
36883
36896
  () => {
36884
- $(xr());
36897
+ V(xr());
36885
36898
  },
36886
36899
  // Include any props that modify codemirror-merge extensions directly, as a workaround for the unresolved bug.
36887
- [p, c, y, w, r]
36900
+ [p, c, y, A, r]
36888
36901
  );
36889
36902
  const Q = (oe) => {
36890
36903
  ue({ type: "setCode", value: oe }), ee.diffMode ? m?.(oe) : h?.(oe);
@@ -36900,21 +36913,20 @@ const RV = ({
36900
36913
  defaultKeymap: !1,
36901
36914
  searchKeymap: !1,
36902
36915
  foldGutter: !1,
36903
- // TODO: need to remove this after getting proper colors from design
36904
36916
  drawSelection: !1,
36905
36917
  highlightActiveLineGutter: !1,
36906
36918
  tabSize: c
36907
36919
  }, je = (oe) => {
36908
36920
  Q(oe);
36909
- }, U = (oe) => {
36921
+ }, $ = (oe) => {
36910
36922
  q(oe);
36911
- }, F = dm({
36923
+ }, U = dm({
36912
36924
  markerDOM: N$
36913
36925
  }), J = [
36914
36926
  Xh(Ee),
36915
36927
  Xn.of(OU.filter(({ key: oe }) => !y || oe !== "Mod-f")),
36916
36928
  w$(r),
36917
- Se.of(F),
36929
+ Se.of(U),
36918
36930
  cU(),
36919
36931
  zB({
36920
36932
  createPanel: F$
@@ -36929,7 +36941,7 @@ const RV = ({
36929
36941
  /* @__PURE__ */ a.jsx(
36930
36942
  RV,
36931
36943
  {
36932
- codemirrorMergeKey: V,
36944
+ codemirrorMergeKey: F,
36933
36945
  codeMirrorParentDivRef: I,
36934
36946
  codeEditorTheme: D,
36935
36947
  isDarkTheme: O,
@@ -36941,11 +36953,11 @@ const RV = ({
36941
36953
  readOnly: p,
36942
36954
  placeholder: _,
36943
36955
  handleOnChange: je,
36944
- handleLhsOnChange: U,
36956
+ handleLhsOnChange: $,
36945
36957
  isOriginalModifiable: i,
36946
36958
  onBlur: S,
36947
36959
  onFocus: T,
36948
- autoFocus: A,
36960
+ autoFocus: w,
36949
36961
  originalViewExtensions: he,
36950
36962
  modifiedViewExtensions: ke,
36951
36963
  extensions: _e
@@ -37766,58 +37778,58 @@ const Wc = "Please provide valid YAML", Qr = {
37766
37778
  () => XV(e, s, n, r),
37767
37779
  [e, s, n]
37768
37780
  ), x = q0(), b = ie(null), E = de(() => {
37769
- const A = b.current?.getBoundingClientRect() || {
37781
+ const w = b.current?.getBoundingClientRect() || {
37770
37782
  x: 0,
37771
37783
  y: 0
37772
37784
  };
37773
- return { x: A.x, y: A.y };
37785
+ return { x: w.x, y: w.y };
37774
37786
  }, [b.current]);
37775
37787
  P(() => {
37776
- const A = new ResizeObserver((y) => {
37788
+ const w = new ResizeObserver((y) => {
37777
37789
  if (y?.length > 0 && l) {
37778
- const { height: w } = y[0].contentRect;
37779
- E.y + h.y + w > x.height && f({
37790
+ const { height: A } = y[0].contentRect;
37791
+ E.y + h.y + A > x.height && f({
37780
37792
  x: h.x,
37781
- y: x.height - w - E.y
37793
+ y: x.height - A - E.y
37782
37794
  });
37783
37795
  }
37784
37796
  });
37785
- return A.observe(b.current), () => {
37786
- A.disconnect();
37797
+ return w.observe(b.current), () => {
37798
+ w.disconnect();
37787
37799
  };
37788
37800
  }, [l, h, x, E]);
37789
37801
  const v = () => {
37790
- const A = {
37802
+ const w = {
37791
37803
  x: E.x + d.x,
37792
37804
  y: E.y + d.y
37793
37805
  };
37794
37806
  f({
37795
37807
  x: d.x,
37796
37808
  y: d.y
37797
- }), A.y > x.height - wn.height && f({
37809
+ }), w.y > x.height - wn.height && f({
37798
37810
  x: d.x,
37799
37811
  y: x.height - wn.height - E.y
37800
- }), A.x > x.width - wn.width && f({
37812
+ }), w.x > x.width - wn.width && f({
37801
37813
  x: x.width - wn.width - E.x,
37802
37814
  y: d.y
37803
- }), A.x > x.width - wn.width && A.y > x.height - wn.height && f({
37815
+ }), w.x > x.width - wn.width && w.y > x.height - wn.height && f({
37804
37816
  x: x.width - wn.width - E.x,
37805
37817
  y: x.height - wn.height - E.y
37806
37818
  }), c(!0);
37807
- }, C = dt((A) => {
37808
- A.stopPropagation(), c(!1);
37809
- }, []), S = (A, y) => {
37810
- const w = {
37819
+ }, C = dt((w) => {
37820
+ w.stopPropagation(), c(!1);
37821
+ }, []), S = (w, y) => {
37822
+ const A = {
37811
37823
  x: E.x + y.x,
37812
37824
  y: E.y + y.y
37813
37825
  };
37814
- w.y < 0 || w.x < 0 || w.x + (b.current?.getBoundingClientRect().width || 0) > x.width || w.y + (b.current?.getBoundingClientRect().height || 0) > x.height || u(y);
37815
- }, T = (A, y) => {
37816
- const w = {
37826
+ A.y < 0 || A.x < 0 || A.x + (b.current?.getBoundingClientRect().width || 0) > x.width || A.y + (b.current?.getBoundingClientRect().height || 0) > x.height || u(y);
37827
+ }, T = (w, y) => {
37828
+ const A = {
37817
37829
  x: E.x + y.x,
37818
37830
  y: E.y + y.y
37819
37831
  };
37820
- w.y < 0 || w.x < 0 || w.x + (b.current?.getBoundingClientRect().width || 0) > x.width || w.y + (b.current?.getBoundingClientRect().height || 0) > x.height || (f(y), u(y));
37832
+ A.y < 0 || A.x < 0 || A.x + (b.current?.getBoundingClientRect().width || 0) > x.width || A.y + (b.current?.getBoundingClientRect().height || 0) > x.height || (f(y), u(y));
37821
37833
  };
37822
37834
  return l ? /* @__PURE__ */ a.jsx(
37823
37835
  Dl,
@@ -38000,7 +38012,7 @@ const sH = ({
38000
38012
  (b, E) => {
38001
38013
  const v = Au.some((S) => S.label === u), C = tH[u] ?? ((S) => S);
38002
38014
  if (!v) {
38003
- const S = b.additionalKeys?.find((A) => A.label === u)?.value || "", T = E.additionalKeys?.find((A) => A.label === u)?.value || "";
38015
+ const S = b.additionalKeys?.find((w) => w.label === u)?.value || "", T = E.additionalKeys?.find((w) => w.label === u)?.value || "";
38004
38016
  return wt(S, T, h);
38005
38017
  }
38006
38018
  return (h === we.ASC ? 1 : -1) * (C(b[Sx[u]]) < C(E[Sx[u]]) ? -1 : 1);
@@ -38186,52 +38198,52 @@ const sH = ({
38186
38198
  }, b = async () => {
38187
38199
  try {
38188
38200
  h(!0);
38189
- let A = -1;
38201
+ let w = -1;
38190
38202
  const y = () => {
38191
- A >= 0 || (A = setTimeout(() => {
38192
- f((/* @__PURE__ */ new Date()).toISOString()), A = -1;
38203
+ w >= 0 || (w = setTimeout(() => {
38204
+ f((/* @__PURE__ */ new Date()).toISOString()), w = -1;
38193
38205
  }, 10));
38194
- }, w = m.current.map((k) => async () => {
38206
+ }, A = m.current.map((k) => async () => {
38195
38207
  const { operation: N, name: I, additionalKeys: O, renderContentAtResultRowEnd: D = null } = k;
38196
38208
  if (_.current.signal.aborted)
38197
38209
  throw new Error("bulk operations aborted");
38198
- let V = -1;
38210
+ let F = -1;
38199
38211
  try {
38200
- V = p.current.addResult({
38212
+ F = p.current.addResult({
38201
38213
  name: I,
38202
38214
  additionalKeys: O,
38203
38215
  status: "Progressing",
38204
38216
  message: "-"
38205
38217
  }), y();
38206
- const $ = await N(_, c);
38207
- p.current.updateResultStatus(V, {
38218
+ const V = await N(_, c);
38219
+ p.current.updateResultStatus(F, {
38208
38220
  status: "Completed",
38209
38221
  ...D ? {
38210
- renderContentAtResultRowEnd: () => D($)
38222
+ renderContentAtResultRowEnd: () => D(V)
38211
38223
  } : {}
38212
38224
  }), y();
38213
- } catch ($) {
38214
- if (en($)) {
38215
- p.current.updateResultStatus(V, {
38225
+ } catch (V) {
38226
+ if (en(V)) {
38227
+ p.current.updateResultStatus(F, {
38216
38228
  status: "Failed",
38217
38229
  message: "Aborted by you",
38218
38230
  retryOperation: k
38219
38231
  }), y();
38220
38232
  return;
38221
38233
  }
38222
- p.current.updateResultStatus(V, {
38234
+ p.current.updateResultStatus(F, {
38223
38235
  status: "Failed",
38224
- message: ($ && ($.message || $ instanceof Es && Array.isArray($.errors) && $.errors[0].userMessage)) ?? "",
38236
+ message: (V && (V.message || V instanceof Es && Array.isArray(V.errors) && V.errors[0].userMessage)) ?? "",
38225
38237
  retryOperation: k
38226
38238
  }), y();
38227
38239
  }
38228
38240
  });
38229
- await QV(w, !0), Ze.showToast({
38241
+ await QV(A, !0), Ze.showToast({
38230
38242
  variant: Re.info,
38231
38243
  description: "Action completed"
38232
38244
  }), i && x();
38233
- } catch (A) {
38234
- it(A);
38245
+ } catch (w) {
38246
+ it(w);
38235
38247
  } finally {
38236
38248
  h(!1);
38237
38249
  }
@@ -39757,22 +39769,22 @@ const XW = ({
39757
39769
  forceReInit: h,
39758
39770
  isSuperAdmin: f
39759
39771
  }) => {
39760
- const [m, p] = R(n || []), [_, g] = R(s ? s.comment : ""), [x, b] = R(r || []), [E, v] = R(s ? s.comment : ""), [C, S] = R(!1), [T, A] = R(!1), [y, w] = R(n || []), [k, N] = R(""), [I, O] = R([]), [D, V] = R([]), [$, G] = R([]), [Y, ee] = R(""), [ue, We] = R(""), [Q, q] = R(!1);
39772
+ const [m, p] = R(n || []), [_, g] = R(s ? s.comment : ""), [x, b] = R(r || []), [E, v] = R(s ? s.comment : ""), [C, S] = R(!1), [T, w] = R(!1), [y, A] = R(n || []), [k, N] = R(""), [I, O] = R([]), [D, F] = R([]), [V, G] = R([]), [Y, ee] = R(""), [ue, We] = R(""), [Q, q] = R(!1);
39761
39773
  P(() => {
39762
39774
  Se();
39763
39775
  }, [n, s, l]), P(() => {
39764
39776
  b(r || []);
39765
39777
  }, [r]);
39766
39778
  const Se = () => {
39767
- (h || !C) && (p(n || []), g(s ? s.comment : ""), v(s ? s.comment : ""), w(n || []), S(!1));
39779
+ (h || !C) && (p(n || []), g(s ? s.comment : ""), v(s ? s.comment : ""), A(n || []), S(!1));
39768
39780
  }, Ee = () => {
39769
39781
  S(!C), typeof d == "function" && d(e);
39770
39782
  }, je = (te) => {
39771
39783
  const Le = te.target.value;
39772
39784
  Le?.length > 500 ? ee("comment length cannot exceed 500 characters") : ee(""), v(Le);
39773
- }, U = () => {
39774
- w(m), v(_), O([]), V([]), G([]), Ee(), A(!1), N("");
39775
- }, F = (te) => {
39785
+ }, $ = () => {
39786
+ A(m), v(_), O([]), F([]), G([]), Ee(), w(!1), N("");
39787
+ }, U = (te) => {
39776
39788
  if (te.length == 0 || te.length >= 128 || te[0] == "." || te[0] == "-")
39777
39789
  return N("Label name cannot be empty or exceed 128 characters or cannot start with . or -"), !1;
39778
39790
  N("");
@@ -39783,7 +39795,7 @@ const XW = ({
39783
39795
  return Le || Ce || te === "latest" ? (N("This label is already being used in this application"), !1) : !0;
39784
39796
  }, J = (te) => {
39785
39797
  const Le = te.toLowerCase().trim();
39786
- if (F(Le)) {
39798
+ if (U(Le)) {
39787
39799
  const Ce = {
39788
39800
  id: 0,
39789
39801
  tagName: Le,
@@ -39792,7 +39804,7 @@ const XW = ({
39792
39804
  artifactId: 0,
39793
39805
  duplicateTag: !1
39794
39806
  }, rt = [...I, Ce];
39795
- return O(rt), w([...y, Ce]), A(!0), We(""), rt;
39807
+ return O(rt), A([...y, Ce]), w(!0), We(""), rt;
39796
39808
  }
39797
39809
  return I;
39798
39810
  }, _e = (te) => {
@@ -39802,15 +39814,15 @@ const XW = ({
39802
39814
  deleted: !Le[te].deleted
39803
39815
  };
39804
39816
  const Ce = Le[te], rt = [...D], yt = rt.findIndex((ms) => ms.tagName === Ce.tagName);
39805
- yt !== -1 ? rt.splice(yt, 1) : rt.push(Ce), w(Le), V(rt);
39817
+ yt !== -1 ? rt.splice(yt, 1) : rt.push(Ce), A(Le), F(rt);
39806
39818
  }, he = (te) => {
39807
39819
  const Le = y[te], Ce = I.filter((ms) => ms.tagName !== Le.tagName);
39808
39820
  O(Ce);
39809
39821
  const rt = [...y];
39810
- rt.splice(te, 1), w(rt);
39822
+ rt.splice(te, 1), A(rt);
39811
39823
  const yt = x.filter((ms) => ms.toLowerCase() !== Le.tagName.toLowerCase());
39812
39824
  if (b(yt), Le.id !== 0) {
39813
- const ms = [...$, Le];
39825
+ const ms = [...V, Le];
39814
39826
  G(ms);
39815
39827
  }
39816
39828
  }, ke = (te) => {
@@ -39824,7 +39836,7 @@ const XW = ({
39824
39836
  const ms = Ce.find((jd) => jd.tagName === yt.tagName);
39825
39837
  return ms ? { ...yt, duplicateTag: ms.duplicateTag } : yt;
39826
39838
  });
39827
- w(rt);
39839
+ A(rt);
39828
39840
  });
39829
39841
  }, oe = async (te) => {
39830
39842
  if (k) return;
@@ -39836,7 +39848,7 @@ const XW = ({
39836
39848
  comment: E.trim(),
39837
39849
  artifactId: 0
39838
39850
  },
39839
- hardDeleteTags: $
39851
+ hardDeleteTags: V
39840
39852
  };
39841
39853
  q(!0), D1(Le, t ?? 0, e).then((Ce) => {
39842
39854
  const rt = Ce.result?.imageReleaseTags?.map((yt) => ({
@@ -39846,7 +39858,7 @@ const XW = ({
39846
39858
  appId: 0,
39847
39859
  artifactId: 0
39848
39860
  }));
39849
- o && o(Ce.result?.appReleaseTags), c && c(Ce.result?.tagsEditable), p(rt), g(Ce.result?.imageComment?.comment), w(rt), v(Ce.result?.imageComment?.comment), O([]), V([]), G([]), Ee(), A(!1), N(""), i && i(e, rt, Ce.result?.imageComment);
39861
+ o && o(Ce.result?.appReleaseTags), c && c(Ce.result?.tagsEditable), p(rt), g(Ce.result?.imageComment?.comment), A(rt), v(Ce.result?.imageComment?.comment), O([]), F([]), G([]), Ee(), w(!1), N(""), i && i(e, rt, Ce.result?.imageComment);
39850
39862
  }).catch((Ce) => {
39851
39863
  Ce.errors?.[0]?.userMessage?.appReleaseTags?.length ? (Ze.showToast({
39852
39864
  variant: Re.error,
@@ -39876,7 +39888,7 @@ const XW = ({
39876
39888
  const yn = (te) => {
39877
39889
  te.key === "Enter" && te.target.value.trim() && J(te.target.value.trim());
39878
39890
  }, Vs = (te) => {
39879
- te.target.value && F(te.target.value), We(te.target.value);
39891
+ te.target.value && U(te.target.value), We(te.target.value);
39880
39892
  }, Ld = (te) => {
39881
39893
  Oe(te), ue.trim() && J(ue.trim());
39882
39894
  }, Dd = () => {
@@ -39965,7 +39977,7 @@ const XW = ({
39965
39977
  className: "cta flex cancel h-32 lh-32-imp",
39966
39978
  type: "button",
39967
39979
  onClick: (te) => {
39968
- Oe(te), U();
39980
+ Oe(te), $();
39969
39981
  },
39970
39982
  disabled: Q,
39971
39983
  children: "Cancel"
@@ -40208,12 +40220,12 @@ const Vr = ({
40208
40220
  }, [h]), useEffectAfterMount(() => {
40209
40221
  f(s);
40210
40222
  }, [s]);
40211
- function E(A, y) {
40212
- f(y), A.target.name = l, A.target.value = y, e(A);
40223
+ function E(w, y) {
40224
+ f(y), w.target.name = l, w.target.value = y, e(w);
40213
40225
  }
40214
40226
  if (!t) return null;
40215
40227
  const { button: v, body: C, optionLength: S, AsyncComponent: T } = pe.Children.toArray(t).reduce(
40216
- (A, y) => (y.type === iN ? A.button = y : y.type === rN ? A.AsyncComponent = y : ((y.type === sN || y.type === nN) && (A.optionLength += 1), A.body.push(y)), A),
40228
+ (w, y) => (y.type === iN ? w.button = y : y.type === rN ? w.AsyncComponent = y : ((y.type === sN || y.type === nN) && (w.optionLength += 1), w.body.push(y)), w),
40217
40229
  { button: null, body: [], optionLength: 0, AsyncComponent: null }
40218
40230
  );
40219
40231
  return /* @__PURE__ */ a.jsx(
@@ -40231,7 +40243,7 @@ const Vr = ({
40231
40243
  loading: x,
40232
40244
  setLoading: b
40233
40245
  },
40234
- children: /* @__PURE__ */ a.jsxs(Dt, { onToggleCallback: (A) => p(A), autoClose: m, children: [
40246
+ children: /* @__PURE__ */ a.jsxs(Dt, { onToggleCallback: (w) => p(w), autoClose: m, children: [
40235
40247
  /* @__PURE__ */ a.jsx(
40236
40248
  Dt.Button,
40237
40249
  {
@@ -40819,27 +40831,27 @@ const Ts = {
40819
40831
  P(() => {
40820
40832
  m(t);
40821
40833
  }, [t]);
40822
- const b = Ye(s), E = b.isValid() ? b.format(ns.TWELVE_HOURS_FORMAT) : s, v = (A) => {
40834
+ const b = Ye(s), E = b.isValid() ? b.format(ns.TWELVE_HOURS_FORMAT) : s, v = (w) => {
40823
40835
  let y = !0;
40824
- return A.length === 0 && (Ze.showToast({
40836
+ return w.length === 0 && (Ze.showToast({
40825
40837
  variant: Re.error,
40826
40838
  description: GH
40827
40839
  }), y = !1), y;
40828
40840
  }, C = () => {
40829
- let A = !0;
40830
- g && !u && (A = window.confirm(YH)), A && (m(t), h(!u), _(Gi.WRITE));
40841
+ let w = !0;
40842
+ g && !u && (w = window.confirm(YH)), w && (m(t), h(!u), _(Gi.WRITE));
40831
40843
  }, S = async () => {
40832
- const A = f.trim();
40833
- if (v(A))
40844
+ const w = f.trim();
40845
+ if (v(w))
40834
40846
  try {
40835
- d(!0), await r(A), h(!0), m(A);
40836
- } catch (w) {
40837
- it(w);
40847
+ d(!0), await r(w), h(!0), m(w);
40848
+ } catch (A) {
40849
+ it(A);
40838
40850
  } finally {
40839
40851
  d(!1);
40840
40852
  }
40841
- }, T = (A) => {
40842
- switch (A) {
40853
+ }, T = (w) => {
40854
+ switch (w) {
40843
40855
  case ps.HEADER:
40844
40856
  return /* @__PURE__ */ a.jsx(
40845
40857
  fe,
@@ -40847,7 +40859,7 @@ const Ts = {
40847
40859
  className: "default-tt",
40848
40860
  arrow: !1,
40849
40861
  placement: "bottom",
40850
- content: Ts[A],
40862
+ content: Ts[w],
40851
40863
  children: /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(yw, { className: "icon-dim-16 flex" }) })
40852
40864
  }
40853
40865
  );
@@ -40858,7 +40870,7 @@ const Ts = {
40858
40870
  className: "default-tt",
40859
40871
  arrow: !1,
40860
40872
  placement: "bottom",
40861
- content: Ts[A],
40873
+ content: Ts[w],
40862
40874
  children: /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(Nw, { className: "icon-dim-16 flex" }) })
40863
40875
  }
40864
40876
  );
@@ -40869,7 +40881,7 @@ const Ts = {
40869
40881
  className: "default-tt",
40870
40882
  arrow: !1,
40871
40883
  placement: "bottom",
40872
- content: Ts[A],
40884
+ content: Ts[w],
40873
40885
  children: /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(Tw, { className: "icon-dim-16 flex" }) })
40874
40886
  }
40875
40887
  );
@@ -40880,7 +40892,7 @@ const Ts = {
40880
40892
  className: "default-tt",
40881
40893
  arrow: !1,
40882
40894
  placement: "bottom",
40883
- content: Ts[A],
40895
+ content: Ts[w],
40884
40896
  children: /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(Aw, { className: "icon-dim-16 flex" }) })
40885
40897
  }
40886
40898
  );
@@ -40891,7 +40903,7 @@ const Ts = {
40891
40903
  className: "default-tt",
40892
40904
  arrow: !1,
40893
40905
  placement: "bottom",
40894
- content: Ts[A],
40906
+ content: Ts[w],
40895
40907
  children: /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(ww, { className: "icon-dim-16 flex" }) })
40896
40908
  }
40897
40909
  );
@@ -40902,7 +40914,7 @@ const Ts = {
40902
40914
  className: "default-tt",
40903
40915
  arrow: !1,
40904
40916
  placement: "bottom",
40905
- content: Ts[A],
40917
+ content: Ts[w],
40906
40918
  children: /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(Iw, { className: "icon-dim-16 flex" }) })
40907
40919
  }
40908
40920
  );
@@ -40913,7 +40925,7 @@ const Ts = {
40913
40925
  className: "default-tt",
40914
40926
  arrow: !1,
40915
40927
  placement: "bottom",
40916
- content: Ts[A],
40928
+ content: Ts[w],
40917
40929
  children: /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(Ow, { className: "icon-dim-16 flex" }) })
40918
40930
  }
40919
40931
  );
@@ -40924,7 +40936,7 @@ const Ts = {
40924
40936
  className: "default-tt",
40925
40937
  arrow: !1,
40926
40938
  placement: "bottom",
40927
- content: Ts[A],
40939
+ content: Ts[w],
40928
40940
  children: /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(Rw, { className: "icon-dim-16 flex" }) })
40929
40941
  }
40930
40942
  );
@@ -40935,7 +40947,7 @@ const Ts = {
40935
40947
  className: "default-tt",
40936
40948
  arrow: !1,
40937
40949
  placement: "bottom",
40938
- content: Ts[A],
40950
+ content: Ts[w],
40939
40951
  children: /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(Xm, { className: "icon-dim-16 flex" }) })
40940
40952
  }
40941
40953
  );
@@ -40946,7 +40958,7 @@ const Ts = {
40946
40958
  className: "default-tt",
40947
40959
  arrow: !1,
40948
40960
  placement: "bottom",
40949
- content: Ts[A],
40961
+ content: Ts[w],
40950
40962
  children: /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(kw, { className: "icon-dim-16 flex" }) })
40951
40963
  }
40952
40964
  );
@@ -40957,7 +40969,7 @@ const Ts = {
40957
40969
  className: "default-tt",
40958
40970
  arrow: !1,
40959
40971
  placement: "bottom",
40960
- content: Ts[A],
40972
+ content: Ts[w],
40961
40973
  children: /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(Lw, { className: "icon-dim-16 flex" }) })
40962
40974
  }
40963
40975
  );
@@ -41000,7 +41012,7 @@ const Ts = {
41000
41012
  value: t,
41001
41013
  selectedTab: "preview",
41002
41014
  minPreviewHeight: 150,
41003
- generateMarkdownPreview: (A) => Promise.resolve(/* @__PURE__ */ a.jsx(Lx, { markdown: A, breaks: !0, disableEscapedText: !0 }))
41015
+ generateMarkdownPreview: (w) => Promise.resolve(/* @__PURE__ */ a.jsx(Lx, { markdown: w, breaks: !0, disableEscapedText: !0 }))
41004
41016
  }
41005
41017
  )
41006
41018
  ] }) : /* @__PURE__ */ a.jsxs("div", { className: "min-w-500", children: [
@@ -41015,7 +41027,7 @@ const Ts = {
41015
41027
  preview: "mark-down-editor-preview pt-8",
41016
41028
  textArea: `mark-down-editor-textarea-wrapper ${n ? "" : "h-200-imp"}`
41017
41029
  },
41018
- getIcon: (A) => T(A),
41030
+ getIcon: (w) => T(w),
41019
41031
  toolbarCommands: HH,
41020
41032
  value: f,
41021
41033
  onChange: m,
@@ -41023,8 +41035,8 @@ const Ts = {
41023
41035
  minPreviewHeight: 150,
41024
41036
  selectedTab: p,
41025
41037
  onTabChange: _,
41026
- generateMarkdownPreview: (A) => Promise.resolve(
41027
- /* @__PURE__ */ a.jsx(Lx, { markdown: A || VH, breaks: !0 })
41038
+ generateMarkdownPreview: (w) => Promise.resolve(
41039
+ /* @__PURE__ */ a.jsx(Lx, { markdown: w || VH, breaks: !0 })
41028
41040
  ),
41029
41041
  childProps: {
41030
41042
  writeButton: {