@devtron-labs/devtron-fe-common-lib 1.6.2 → 1.6.3

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.
@@ -1725,13 +1725,13 @@ const P0 = (t) => {
1725
1725
  }, d = () => {
1726
1726
  const {
1727
1727
  Icon: E,
1728
- iconPath: C,
1729
- iconClass: v,
1728
+ iconPath: v,
1729
+ iconClass: C,
1730
1730
  iconSize: S,
1731
- onImageLoadError: w,
1731
+ onImageLoadError: T,
1732
1732
  heading: A,
1733
1733
  headingInfo: y,
1734
- infoTextHeading: T,
1734
+ infoTextHeading: w,
1735
1735
  hideHeading: k,
1736
1736
  infoText: N,
1737
1737
  showCloseButton: I,
@@ -1745,15 +1745,15 @@ const P0 = (t) => {
1745
1745
  {
1746
1746
  className: `dc__word-break dc__hyphens-auto flex dc__align-start left ${i ? `p-12 cn-9 ${t.noHeadingBorder ? "" : "dc__border-bottom-n1"}` : "pt-20 pb-12 pr-20 pl-20 cn-0 top"}`,
1747
1747
  children: [
1748
- C ? /* @__PURE__ */ a.jsx(
1748
+ v ? /* @__PURE__ */ a.jsx(
1749
1749
  "img",
1750
1750
  {
1751
- className: `icon-dim-${S || 20} mr-6 ${v || ""}`,
1752
- src: C,
1751
+ className: `icon-dim-${S || 20} mr-6 ${C || ""}`,
1752
+ src: v,
1753
1753
  alt: "Heading",
1754
- onError: w
1754
+ onError: T
1755
1755
  }
1756
- ) : E && /* @__PURE__ */ a.jsx("div", { className: `icon-dim-${S || 20} mr-6`, children: /* @__PURE__ */ a.jsx(E, { className: `icon-dim-${S || 20} ${v || ""}` }) }),
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
1757
  A && /* @__PURE__ */ a.jsx("span", { className: `fs-14 fw-6 lh-20 ${I ? "mr-12" : ""}`, children: A }),
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(
@@ -1776,11 +1776,11 @@ const P0 = (t) => {
1776
1776
  ]
1777
1777
  }
1778
1778
  ),
1779
- T && /* @__PURE__ */ a.jsx(
1779
+ w && /* @__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: T
1783
+ children: w
1784
1784
  }
1785
1785
  ),
1786
1786
  N && /* @__PURE__ */ a.jsx(
@@ -1817,7 +1817,7 @@ const P0 = (t) => {
1817
1817
  content: d(),
1818
1818
  trigger: _ || "mouseenter",
1819
1819
  onMount: o,
1820
- onClickOutside: (E, C) => l(C),
1820
+ onClickOutside: (E, v) => l(v),
1821
1821
  showOnCreate: p || !1,
1822
1822
  animation: g || "fade",
1823
1823
  duration: x || 300,
@@ -2675,13 +2675,13 @@ const o1 = (t = {}) => t ? Object.hasOwn(t, "shortcutKeyCombo") && "shortcutKeyC
2675
2675
  name: x,
2676
2676
  classNamePrefix: b,
2677
2677
  shouldRenderCustomOptions: E = !1,
2678
- isSearchable: C,
2679
- selectRef: v,
2678
+ isSearchable: v,
2679
+ selectRef: C,
2680
2680
  shouldMenuAlignRight: S = !1,
2681
- fullWidth: w = !1,
2681
+ fullWidth: T = !1,
2682
2682
  customSelectedOptionsCount: A = null,
2683
2683
  renderMenuListFooter: y,
2684
- isCreatable: T = !1,
2684
+ isCreatable: w = !1,
2685
2685
  onCreateOption: k,
2686
2686
  closeMenuOnSelect: N = !1,
2687
2687
  shouldShowNoOptionsMessage: I = !0,
@@ -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 && C, Ld = de(
2709
+ } = _, Ut = F && !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 T && !!Nn && !gr(
2722
+ return w && !!Nn && !gr(
2723
2723
  J,
2724
2724
  Nn,
2725
2725
  null,
@@ -2769,7 +2769,7 @@ const o1 = (t = {}) => t ? Object.hasOwn(t, "shortcutKeyCombo") && "shortcutKeyC
2769
2769
  helperText: s,
2770
2770
  warningText: $,
2771
2771
  required: je,
2772
- fullWidth: w,
2772
+ fullWidth: T,
2773
2773
  ariaLabel: Y,
2774
2774
  borderRadiusConfig: ee,
2775
2775
  children: /* @__PURE__ */ a.jsx(Wt, { condition: U && !!l, wrap: ms, children: /* @__PURE__ */ a.jsx("div", { className: "w-100", children: /* @__PURE__ */ a.jsx(
@@ -2796,7 +2796,7 @@ const o1 = (t = {}) => t ? Object.hasOwn(t, "shortcutKeyCombo") && "shortcutKeyC
2796
2796
  hideSelectedOptions: !1,
2797
2797
  shouldRenderCustomOptions: E || !1,
2798
2798
  isMulti: g,
2799
- ref: v,
2799
+ ref: C,
2800
2800
  components: {
2801
2801
  IndicatorSeparator: null,
2802
2802
  LoadingIndicator: h1,
@@ -2858,8 +2858,8 @@ const o1 = (t = {}) => t ? Object.hasOwn(t, "shortcutKeyCombo") && "shortcutKeyC
2858
2858
  }, [t]);
2859
2859
  const f = (b) => {
2860
2860
  Object.values(l || {}).forEach((E) => {
2861
- const C = E?.current;
2862
- C && (C.style.height = `${b}px`);
2861
+ const v = E?.current;
2862
+ v && (v.style.height = `${b}px`);
2863
2863
  });
2864
2864
  }, m = (b) => {
2865
2865
  const E = o?.current;
@@ -2869,8 +2869,8 @@ const o1 = (t = {}) => t ? Object.hasOwn(t, "shortcutKeyCombo") && "shortcutKeyC
2869
2869
  m(i || 0);
2870
2870
  let b = o?.current?.scrollHeight || 0;
2871
2871
  l && Object.values(l).forEach((E) => {
2872
- const C = E.current;
2873
- C && C.scrollHeight > b && (b = C.scrollHeight);
2872
+ const v = E.current;
2873
+ v && v.scrollHeight > b && (b = v.scrollHeight);
2874
2874
  }), i && b < i && (b = i), r && b > r && (b = r), m(b);
2875
2875
  }, 500, [d]);
2876
2876
  const _ = (b, { action: E }) => {
@@ -2886,12 +2886,12 @@ const o1 = (t = {}) => t ? Object.hasOwn(t, "shortcutKeyCombo") && "shortcutKeyC
2886
2886
  }, x = (b) => {
2887
2887
  if (b.key === "Enter" && b.shiftKey) {
2888
2888
  b.preventDefault();
2889
- const { selectionStart: E, selectionEnd: C } = h.current.inputRef, v = `${d.slice(0, E)}
2890
- ${d.slice(C)}`;
2891
- u(v);
2892
- const S = h.current.inputRef, w = S.selectionStart, y = S.value.substring(0, w).split(`
2893
- `), T = parseInt(getComputedStyle(S).lineHeight, 10), N = y.length * T - S.scrollTop;
2894
- N < 0 ? S.scrollTop += N : N > S.offsetHeight - T && (S.scrollTop += N - S.offsetHeight + T), setTimeout(() => {
2889
+ const { selectionStart: E, selectionEnd: v } = h.current.inputRef, C = `${d.slice(0, E)}
2890
+ ${d.slice(v)}`;
2891
+ u(C);
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(() => {
2895
2895
  h.current.inputRef.selectionStart = E + 1, h.current.inputRef.selectionEnd = E + 1;
2896
2896
  });
2897
2897
  return;
@@ -3273,7 +3273,7 @@ const _p = () => ({
3273
3273
  const y = localStorage.getItem(s);
3274
3274
  if (y)
3275
3275
  try {
3276
- const T = Et("", JSON.parse(y)), k = new URLSearchParams(T.split("?")[1] ?? "");
3276
+ const w = Et("", JSON.parse(y)), k = new URLSearchParams(w.split("?")[1] ?? "");
3277
3277
  return i.replace({ search: k.toString() }), k;
3278
3278
  } catch {
3279
3279
  localStorage.removeItem(s);
@@ -3281,11 +3281,11 @@ const _p = () => ({
3281
3281
  }
3282
3282
  return A;
3283
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), T = l.get(Ep), k = l.get(vp), I = l.get(Cp) || t || "", O = Object.values(we).includes(k) ? k : we.ASC, D = c(l);
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);
3285
3285
  return {
3286
3286
  pageSize: Number(A) || zi,
3287
3287
  pageNumber: Number(y) || Ji,
3288
- searchKey: T || "",
3288
+ searchKey: w || "",
3289
3289
  sortBy: I,
3290
3290
  // sort order should only be applied if the key is available
3291
3291
  sortOrder: I ? O : "",
@@ -3325,8 +3325,8 @@ const _p = () => ({
3325
3325
  ...p,
3326
3326
  updateSearchParams: (A) => {
3327
3327
  Object.keys(A).forEach((y) => {
3328
- b0.includes(A[y]) ? l.delete(y) : Array.isArray(A[y]) ? (l.delete(y), A[y].forEach((T) => {
3329
- l.append(y, T);
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
3330
  })) : l.set(y, A[y]);
3331
3331
  }), xp(s, JSON.stringify(c(l))), x();
3332
3332
  }
@@ -3350,15 +3350,15 @@ const _p = () => ({
3350
3350
  }) => {
3351
3351
  const i = ie(!1), r = ie({}), o = ie(/* @__PURE__ */ new Set()), l = ie(-1), c = t ?? Y1, d = dt(
3352
3352
  ({ keys: x, callback: b, description: E = "" }) => {
3353
- const { keys: C, id: v } = ja(x);
3353
+ const { keys: v, id: C } = ja(x);
3354
3354
  if (typeof b != "function")
3355
3355
  throw new Error("callback provided is not a function");
3356
- const S = r.current[v] && _0(r.current[v].keys, x) ? r.current[v] : null;
3356
+ const S = r.current[C] && _0(r.current[C].keys, x) ? r.current[C] : null;
3357
3357
  if (S) {
3358
3358
  Pa(S.callbackStack), S.callbackStack.push(b);
3359
3359
  return;
3360
3360
  }
3361
- r.current[v] = { keys: C, callbackStack: [b], description: E };
3361
+ r.current[C] = { keys: v, callbackStack: [b], description: E };
3362
3362
  },
3363
3363
  []
3364
3364
  ), u = dt((x) => {
@@ -4083,8 +4083,8 @@ const _p = () => ({
4083
4083
  }), f(lO(i)));
4084
4084
  }, [o, r]);
4085
4085
  const _ = (b) => {
4086
- const E = Object.keys(b || {}), C = Object.keys(o?.profile?.configurations || {});
4087
- return E.concat(C).reduce((v, S) => (v[S] = !0, v), {});
4086
+ const E = Object.keys(b || {}), v = Object.keys(o?.profile?.configurations || {});
4087
+ return E.concat(v).reduce((C, S) => (C[S] = !0, C), {});
4088
4088
  };
4089
4089
  return {
4090
4090
  isLoading: r,
@@ -4094,61 +4094,61 @@ const _p = () => ({
4094
4094
  profileInput: d,
4095
4095
  profileInputErrors: h,
4096
4096
  handleProfileInputChange: ({ action: b, data: E }) => {
4097
- const C = structuredClone(d), v = structuredClone(h), S = E && "targetPlatform" in E && Object.hasOwn(E, "targetPlatform") ? E.targetPlatform : "", w = C.configurations[S], A = structuredClone(
4098
- o.profile.configurations[S] || w
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(
4098
+ o.profile.configurations[S] || T
4099
4099
  );
4100
4100
  switch (b) {
4101
4101
  case Os.DESCRIPTION: {
4102
4102
  const { value: y } = E;
4103
- C.description = y, v[Os.DESCRIPTION] = sO(y).message;
4103
+ v.description = y, C[Os.DESCRIPTION] = sO(y).message;
4104
4104
  break;
4105
4105
  }
4106
4106
  case Os.NAME: {
4107
4107
  const { value: y } = E;
4108
- C.name = y, v[Os.NAME] = tO(y).message;
4108
+ v.name = y, C[Os.NAME] = tO(y).message;
4109
4109
  break;
4110
4110
  }
4111
4111
  case M.CPU_LIMIT:
4112
4112
  case M.CPU_REQUEST:
4113
4113
  case M.MEMORY_LIMIT:
4114
4114
  case M.MEMORY_REQUEST: {
4115
- const { value: y, unit: T } = E;
4116
- w[b] = {
4117
- ...w[b],
4115
+ const { value: y, unit: w } = E;
4116
+ T[b] = {
4117
+ ...T[b],
4118
4118
  key: b,
4119
4119
  value: y,
4120
- unit: T
4120
+ unit: w
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: T
4125
+ unit: w
4126
4126
  },
4127
4127
  limit: {
4128
4128
  value: y,
4129
- unit: T
4129
+ unit: w
4130
4130
  },
4131
4131
  [k]: {
4132
- value: w[N].value,
4133
- unit: w[N].unit
4132
+ value: T[N].value,
4133
+ unit: T[N].unit
4134
4134
  },
4135
4135
  unitsMap: o.configurationUnits[b]
4136
4136
  });
4137
4137
  if (k === "limit") {
4138
- v[N] = O.message, v[b] = I.message;
4138
+ C[N] = O.message, C[b] = I.message;
4139
4139
  break;
4140
4140
  }
4141
- v[b] = O.message, v[N] = I.message;
4141
+ C[b] = O.message, C[N] = I.message;
4142
4142
  break;
4143
4143
  }
4144
4144
  case M.BUILD_TIMEOUT: {
4145
- const { value: y, unit: T } = E;
4146
- w[b] = {
4147
- ...w[b],
4145
+ const { value: y, unit: w } = E;
4146
+ T[b] = {
4147
+ ...T[b],
4148
4148
  key: b,
4149
4149
  value: y,
4150
- unit: T
4151
- }, v[b] = nO(y).message;
4150
+ unit: w
4151
+ }, C[b] = nO(y).message;
4152
4152
  break;
4153
4153
  }
4154
4154
  case "activate_tolerance":
@@ -4158,10 +4158,10 @@ const _p = () => ({
4158
4158
  case "activate_cpu": {
4159
4159
  const y = ap[b];
4160
4160
  lp[y]?.forEach((k) => {
4161
- w[k] = {
4161
+ T[k] = {
4162
4162
  ...A[k],
4163
4163
  active: !0
4164
- }, v[k] = null;
4164
+ }, C[k] = null;
4165
4165
  });
4166
4166
  break;
4167
4167
  }
@@ -4172,11 +4172,11 @@ const _p = () => ({
4172
4172
  case "de_activate_cpu": {
4173
4173
  const y = ap[b];
4174
4174
  lp[y]?.forEach((k) => {
4175
- w[k] = {
4176
- ...w[k],
4175
+ T[k] = {
4176
+ ...T[k],
4177
4177
  ...A[k]?.defaultValue,
4178
4178
  active: !1
4179
- }, v[k] = null;
4179
+ }, C[k] = null;
4180
4180
  });
4181
4181
  break;
4182
4182
  }
@@ -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: T } = E, k = ht[T], N = w[k].value, I = N.findIndex((D) => D.id === y);
4187
+ const { id: y, componentType: w } = E, k = ht[w], 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({
@@ -4199,39 +4199,39 @@ const _p = () => ({
4199
4199
  N[I].useFormProps = V?.useFormProps, N[I].initialResponse = V?.initialResponse;
4200
4200
  } else
4201
4201
  N[I].useFormProps = N[I].defaultValue, N[I].initialResponse = N[I].defaultValueInitialResponse;
4202
- v[ht[T]] && (delete v[ht[T]][y], Object.keys(v[ht[T]]).length === 0 && (v[ht[T]] = null));
4202
+ C[ht[w]] && (delete C[ht[w]][y], Object.keys(C[ht[w]]).length === 0 && (C[ht[w]] = null));
4203
4203
  break;
4204
4204
  }
4205
4205
  case Kt.ADD_TARGET_PLATFORM: {
4206
4206
  const { handleCaptureSnapshot: y } = E;
4207
- v[Lo.TARGET_PLATFORM] = S ? wp(
4207
+ C[Lo.TARGET_PLATFORM] = S ? wp(
4208
4208
  S,
4209
- _(C.configurations)
4210
- ).message : "", C.configurations[S] = o.fallbackPlatformConfigurationMap[S] || // Here need to update target platform name for each configuration
4209
+ _(v.configurations)
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((T, [k, N]) => (T[k] = {
4213
+ ).reduce((w, [k, N]) => (w[k] = {
4214
4214
  ...N,
4215
4215
  targetPlatform: S
4216
- }, T), {}), y(C);
4216
+ }, w), {}), y(v);
4217
4217
  break;
4218
4218
  }
4219
4219
  case Kt.REMOVE_TARGET_PLATFORM: {
4220
- if (!C.configurations[S]) {
4220
+ if (!v.configurations[S]) {
4221
4221
  Ze.showToast({
4222
4222
  variant: Re.error,
4223
4223
  description: "Platform does not exist"
4224
4224
  }), Ll(new Error("Platform does not exist"));
4225
4225
  return;
4226
4226
  }
4227
- delete C.configurations[S], Object.keys(v).forEach((y) => {
4228
- op[y] && (v[y] = null);
4227
+ delete v.configurations[S], Object.keys(C).forEach((y) => {
4228
+ op[y] && (C[y] = null);
4229
4229
  });
4230
4230
  break;
4231
4231
  }
4232
4232
  case Kt.RENAME_TARGET_PLATFORM: {
4233
- const { originalPlatformName: y, newPlatformName: T, configSnapshot: k } = E, N = C.configurations[y];
4234
- if (y === T)
4233
+ const { originalPlatformName: y, newPlatformName: w, configSnapshot: k } = E, N = v.configurations[y];
4234
+ if (y === w)
4235
4235
  return;
4236
4236
  if (!N) {
4237
4237
  Ze.showToast({
@@ -4240,13 +4240,13 @@ const _p = () => ({
4240
4240
  });
4241
4241
  return;
4242
4242
  }
4243
- v[Lo.TARGET_PLATFORM] = wp(
4244
- T,
4245
- _(C.configurations)
4243
+ C[Lo.TARGET_PLATFORM] = wp(
4244
+ w,
4245
+ _(v.configurations)
4246
4246
  ).message;
4247
- const I = o.fallbackPlatformConfigurationMap[T] || // 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[w] || // 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 (C.configurations[T] = Object.entries(
4249
+ if (v.configurations[w] = Object.entries(
4250
4250
  N
4251
4251
  ).reduce(
4252
4252
  (O, [D, V]) => {
@@ -4254,121 +4254,121 @@ const _p = () => ({
4254
4254
  return O[D] = {
4255
4255
  ...V,
4256
4256
  ...G,
4257
- targetPlatform: T,
4257
+ targetPlatform: w,
4258
4258
  defaultValue: $
4259
4259
  }, O;
4260
4260
  },
4261
4261
  {}
4262
4262
  ), k[y]) {
4263
- C.configurations[y] = k[y];
4263
+ v.configurations[y] = k[y];
4264
4264
  break;
4265
4265
  }
4266
- delete C.configurations[y];
4266
+ delete v.configurations[y];
4267
4267
  break;
4268
4268
  }
4269
4269
  case Kt.RESTORE_PROFILE_CONFIG_SNAPSHOT: {
4270
4270
  const { configSnapshot: y } = E;
4271
- C.configurations = y, Object.keys(v).forEach((T) => {
4272
- op[T] && (v[T] = null);
4271
+ v.configurations = y, Object.keys(C).forEach((w) => {
4272
+ op[w] && (C[w] = null);
4273
4273
  });
4274
4274
  break;
4275
4275
  }
4276
4276
  case Kt.ADD_NODE_SELECTOR_ITEM: {
4277
- if (w[M.NODE_SELECTOR].key !== M.NODE_SELECTOR)
4277
+ if (T[M.NODE_SELECTOR].key !== M.NODE_SELECTOR)
4278
4278
  break;
4279
- const T = {
4279
+ const w = {
4280
4280
  id: xr(),
4281
4281
  key: "",
4282
4282
  value: ""
4283
4283
  };
4284
- w[M.NODE_SELECTOR].value.unshift(T);
4284
+ T[M.NODE_SELECTOR].value.unshift(w);
4285
4285
  break;
4286
4286
  }
4287
4287
  case Kt.DELETE_NODE_SELECTOR_ITEM: {
4288
- if (w[M.NODE_SELECTOR].key !== M.NODE_SELECTOR)
4288
+ if (T[M.NODE_SELECTOR].key !== M.NODE_SELECTOR)
4289
4289
  break;
4290
4290
  const { id: y } = E;
4291
- w[M.NODE_SELECTOR].value = w[M.NODE_SELECTOR].value.filter((k) => k.id !== y), delete v[M.NODE_SELECTOR]?.[y], Object.keys(v[M.NODE_SELECTOR] || {}).length === 0 && (v[M.NODE_SELECTOR] = null);
4292
- const T = w[M.NODE_SELECTOR].value.map(
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(
4293
4293
  (k) => k.key
4294
4294
  );
4295
- w[M.NODE_SELECTOR].value.forEach((k) => {
4295
+ T[M.NODE_SELECTOR].value.forEach((k) => {
4296
4296
  Ap({
4297
4297
  selector: k,
4298
- existingKeys: T,
4299
- profileInputErrors: v
4298
+ existingKeys: w,
4299
+ profileInputErrors: C
4300
4300
  });
4301
4301
  });
4302
4302
  break;
4303
4303
  }
4304
4304
  case Kt.EDIT_NODE_SELECTOR_ITEM: {
4305
- if (w[M.NODE_SELECTOR].key !== M.NODE_SELECTOR)
4305
+ if (T[M.NODE_SELECTOR].key !== M.NODE_SELECTOR)
4306
4306
  break;
4307
- const { id: y, key: T, value: k } = E, N = w[M.NODE_SELECTOR].value.find(
4307
+ const { id: y, key: w, value: k } = E, N = T[M.NODE_SELECTOR].value.find(
4308
4308
  (O) => O.id === y
4309
4309
  );
4310
- N ? (N.key = T, N.value = k) : w[M.NODE_SELECTOR].value.unshift({
4310
+ N ? (N.key = w, N.value = k) : T[M.NODE_SELECTOR].value.unshift({
4311
4311
  id: y,
4312
- key: T,
4312
+ key: w,
4313
4313
  value: k
4314
4314
  });
4315
- const I = w[M.NODE_SELECTOR].value.map(
4315
+ const I = T[M.NODE_SELECTOR].value.map(
4316
4316
  (O) => O.key
4317
4317
  );
4318
- w[M.NODE_SELECTOR].value.forEach((O) => {
4318
+ T[M.NODE_SELECTOR].value.forEach((O) => {
4319
4319
  Ap({
4320
4320
  selector: O,
4321
4321
  existingKeys: I,
4322
- profileInputErrors: v
4322
+ profileInputErrors: C
4323
4323
  });
4324
4324
  });
4325
4325
  break;
4326
4326
  }
4327
4327
  case Kt.ADD_TOLERANCE_ITEM: {
4328
- if (w[M.TOLERANCE].key !== M.TOLERANCE)
4328
+ if (T[M.TOLERANCE].key !== M.TOLERANCE)
4329
4329
  break;
4330
- const T = {
4330
+ const w = {
4331
4331
  id: xr(),
4332
4332
  key: "",
4333
4333
  effect: ZA,
4334
4334
  operator: QA,
4335
4335
  value: ""
4336
4336
  };
4337
- w[M.TOLERANCE].value.unshift(T);
4337
+ T[M.TOLERANCE].value.unshift(w);
4338
4338
  break;
4339
4339
  }
4340
4340
  case Kt.DELETE_TOLERANCE_ITEM: {
4341
- if (w[M.TOLERANCE].key !== M.TOLERANCE)
4341
+ if (T[M.TOLERANCE].key !== M.TOLERANCE)
4342
4342
  break;
4343
4343
  const { id: y } = E;
4344
- w[M.TOLERANCE].value = w[M.TOLERANCE].value.filter((T) => T.id !== y), delete v[M.TOLERANCE]?.[y], Object.keys(v[M.TOLERANCE] || {}).length === 0 && (v[M.TOLERANCE] = null);
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);
4345
4345
  break;
4346
4346
  }
4347
4347
  case Kt.EDIT_TOLERANCE_ITEM: {
4348
- if (w[M.TOLERANCE].key !== M.TOLERANCE)
4348
+ if (T[M.TOLERANCE].key !== M.TOLERANCE)
4349
4349
  break;
4350
- const { id: y, key: T, effect: k, operator: N, value: I } = E, O = w[M.TOLERANCE].value.find(
4350
+ const { id: y, key: w, 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 = T, O.effect = k, O.operator = N, O.value = I, N === Fn.EXISTS && delete O.value) : w[M.TOLERANCE].value.unshift({
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({
4354
4354
  id: y,
4355
- key: T,
4355
+ key: w,
4356
4356
  effect: k,
4357
4357
  operator: N,
4358
4358
  value: I
4359
4359
  });
4360
- const D = Of(T).messages, V = N !== Fn.EXISTS ? sb(I).messages : [], G = !(N === Fn.EXISTS ? !T : !T && !I) && (D.length > 0 || V.length > 0);
4361
- v[M.TOLERANCE]?.[y] || (v[M.TOLERANCE] || (v[M.TOLERANCE] = {}), v[M.TOLERANCE][y] = {}), v[M.TOLERANCE][y] = {
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);
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
4363
  ...V.length > 0 && { [Yu.VALUE]: V }
4364
- }, G || (delete v[M.TOLERANCE][y], Object.keys(v[M.TOLERANCE]).length === 0 && (v[M.TOLERANCE] = null));
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: T } = E, N = {
4368
+ const { id: y, infraConfigType: w } = E, N = {
4369
4369
  useFormProps: Vm({
4370
4370
  configMapSecretData: null,
4371
- componentType: $0[T],
4371
+ componentType: $0[w],
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
- w[T].value.push(N);
4383
+ T[w].value.push(N);
4384
4384
  break;
4385
4385
  }
4386
4386
  case Kt.SYNC_CM_CS_ITEM: {
4387
- const { id: y, value: T, hasError: k, componentType: N } = E, I = w[ht[N]].value.findIndex((D) => D.id === y);
4387
+ const { id: y, value: w, 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,23 +4392,23 @@ const _p = () => ({
4392
4392
  }), Ll(new Error("ConfigMap does not exist"));
4393
4393
  return;
4394
4394
  }
4395
- w[ht[N]].value[I].useFormProps = T, v[ht[N]] || (v[ht[N]] = {}), k ? v[ht[N]][y] = !0 : v[ht[N]][y] && delete v[ht[N]][y], Object.keys(
4396
- v[ht[N]]
4397
- ).length === 0 && (v[ht[N]] = null);
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(
4396
+ C[ht[N]]
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: T } = E, k = w[ht[T]].value.filter((N) => N.id !== y);
4402
- w[ht[T]].value = k, v[ht[T]] && (delete v[ht[T]][y], Object.keys(v[ht[T]]).length === 0 && (v[ht[T]] = null));
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));
4403
4403
  break;
4404
4404
  }
4405
4405
  }
4406
- u(C), f(v);
4406
+ u(v), f(C);
4407
4407
  },
4408
4408
  loadingActionRequest: m,
4409
4409
  handleSubmit: async (b) => {
4410
4410
  if (b?.preventDefault(), Object.keys(h).filter(
4411
- (C) => h[C] !== null && h[C] !== void 0
4411
+ (v) => h[v] !== null && h[v] !== void 0
4412
4412
  ).length > 0) {
4413
4413
  Ze.showToast({
4414
4414
  variant: Re.error,
@@ -4426,8 +4426,8 @@ const _p = () => ({
4426
4426
  variant: Re.success,
4427
4427
  description: bt.getSubmitSuccessMessage(d.name, e)
4428
4428
  }), s ? s() : c();
4429
- } catch (C) {
4430
- it(C), p(!1);
4429
+ } catch (v) {
4430
+ it(v), p(!1);
4431
4431
  }
4432
4432
  }
4433
4433
  };
@@ -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: C, defaultSortIndex: v, hasExpandableRows: S } = m || oR(l, c.category, c.subCategory, u, r), { entities: w, lastScanTimeString: A, scanToolName: y, scanToolUrl: T } = 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: A, scanToolName: y, scanToolUrl: w } = m || aR(l, c.category, c.subCategory);
7685
7685
  return /* @__PURE__ */ a.jsxs("div", { className: "flexbox-col p-20 dc__gap-16", children: [
7686
- w?.length ? /* @__PURE__ */ a.jsx(
7686
+ T?.length ? /* @__PURE__ */ a.jsx(
7687
7687
  BI,
7688
7688
  {
7689
- entities: w,
7689
+ entities: T,
7690
7690
  lastScanTimeString: A,
7691
7691
  scanToolName: y,
7692
- scanToolUrl: T
7692
+ scanToolUrl: w
7693
7693
  },
7694
7694
  `${c.category}-${c.subCategory}`
7695
7695
  ) : null,
@@ -7697,8 +7697,8 @@ const TI = {
7697
7697
  MI,
7698
7698
  {
7699
7699
  headers: E,
7700
- rows: C,
7701
- defaultSortIndex: v,
7700
+ rows: v,
7701
+ defaultSortIndex: C,
7702
7702
  hasExpandableRows: S,
7703
7703
  headerTopPosition: m ? 40 : 0
7704
7704
  },
@@ -7892,18 +7892,18 @@ const TI = {
7892
7892
  subTitle: "",
7893
7893
  description: ""
7894
7894
  }
7895
- ) }) : /* @__PURE__ */ a.jsx("div", { className: "dc__grid security-cards", children: h[g].subCategories.map((C) => {
7896
- if (!t[g][C])
7895
+ ) }) : /* @__PURE__ */ a.jsx("div", { className: "dc__grid security-cards", children: h[g].subCategories.map((v) => {
7896
+ if (!t[g][v])
7897
7897
  return null;
7898
- const v = g === ae.IMAGE_SCAN && ql(t[g][C].list ?? []) === "Failed", S = C === ne.MISCONFIGURATIONS ? t[g][C]?.misConfSummary?.status : t[g][C]?.summary?.severities;
7898
+ const C = g === ae.IMAGE_SCAN && ql(t[g][v].list ?? []) === "Failed", S = v === ne.MISCONFIGURATIONS ? t[g][v]?.misConfSummary?.status : t[g][v]?.summary?.severities;
7899
7899
  return /* @__PURE__ */ a.jsx(
7900
7900
  Eb,
7901
7901
  {
7902
7902
  category: g,
7903
- subCategory: C,
7903
+ subCategory: v,
7904
7904
  severities: S,
7905
- handleCardClick: p(g, C),
7906
- scanFailed: v
7905
+ handleCardClick: p(g, v),
7906
+ scanFailed: C
7907
7907
  }
7908
7908
  );
7909
7909
  }) })
@@ -8184,25 +8184,30 @@ const fR = {
8184
8184
  size: u = B.large,
8185
8185
  ariaLabel: h,
8186
8186
  borderRadiusConfig: f,
8187
- ...m
8187
+ value: m,
8188
+ ...p
8188
8189
  }) => {
8189
- const p = ie(null), _ = (E) => {
8190
- const C = p.current;
8191
- C && (C.style.height = `${E}px`);
8190
+ const _ = ie(null), [g, x] = R(""), b = (T) => {
8191
+ const A = _.current;
8192
+ A && (A.style.height = `${T}px`);
8193
+ }, E = () => {
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));
8192
8197
  };
8193
- kd(() => {
8194
- const E = parseInt(p.current.style.height, 10);
8195
- let C = p.current.scrollHeight || 0;
8196
- C < E || E > Wd || (C < Yd && (C = Yd), C > Wd && (C = Wd), _(C));
8197
- }, 300, [m.value]);
8198
- const x = (E) => {
8198
+ P(() => {
8199
+ x(m);
8200
+ }, [m]), kd(E, 300, [g]);
8201
+ const v = (T) => {
8202
+ x(T.target.value), p.onChange?.(T);
8203
+ }, C = (T) => {
8199
8204
  if (d) {
8200
- const C = E.target.value?.trim();
8201
- E.target.value !== C && (E.stopPropagation(), E.target.value = C, m.onChange(E));
8205
+ const A = T.target.value?.trim();
8206
+ T.target.value !== A && (T.stopPropagation(), T.target.value = A, p.onChange(T));
8202
8207
  }
8203
- typeof c == "function" && c(E);
8204
- }, b = (E) => {
8205
- (E.key === "Enter" || E.key === "Escape") && E.stopPropagation();
8208
+ typeof c == "function" && c(T);
8209
+ }, S = (T) => {
8210
+ (T.key === "Enter" || T.key === "Escape") && T.stopPropagation();
8206
8211
  };
8207
8212
  return /* @__PURE__ */ a.jsx(
8208
8213
  Y0,
@@ -8220,7 +8225,7 @@ const fR = {
8220
8225
  children: /* @__PURE__ */ a.jsx(
8221
8226
  "textarea",
8222
8227
  {
8223
- ...m,
8228
+ ...p,
8224
8229
  ...G0({
8225
8230
  inputId: t,
8226
8231
  required: l,
@@ -8235,10 +8240,12 @@ const fR = {
8235
8240
  spellCheck: !1,
8236
8241
  "data-testid": t,
8237
8242
  required: l,
8238
- onBlur: x,
8239
- onKeyDown: b,
8243
+ value: g,
8244
+ onChange: v,
8245
+ onBlur: C,
8246
+ onKeyDown: S,
8240
8247
  className: `${ii[u]} ${TA[u]} ${b1(f)} w-100 dc__overflow-auto textarea`,
8241
- ref: p,
8248
+ ref: _,
8242
8249
  style: {
8243
8250
  // No max height when user is expanding
8244
8251
  maxHeight: "none",
@@ -8982,7 +8989,7 @@ const wR = (t) => os(`${X.ATTRIBUTES_USER}/${X.UPDATE}`, t), AR = ({ className:
8982
8989
  showAnnouncementHeader: u,
8983
8990
  tippyProps: h
8984
8991
  }) => {
8985
- const { loginCount: f, setLoginCount: m, showGettingStartedCard: p, setShowGettingStartedCard: _, setGettingStartedClicked: g } = hd(), { isTippyCustomized: x, tippyRedirectLink: b, TippyIcon: E, tippyMessage: C, onClickTippyButton: v, additionalContent: S } = h || {}, [w, A] = R(!1), [y, T] = 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, A] = R(!1), [y, w] = R(!1), { email: k } = Rb(), [N, I] = R(
8986
8993
  {
8987
8994
  serverInfo: void 0,
8988
8995
  fetchingServerInfo: !1
@@ -9007,9 +9014,9 @@ const wR = (t) => os(`${X.ATTRIBUTES_USER}/${X.UPDATE}`, t), AR = ({ className:
9007
9014
  const $ = (q) => {
9008
9015
  _(!1), q && m(+q);
9009
9016
  }, G = () => {
9010
- T(!y), w && A(!1), Jl("clickedOkay", 1), $();
9017
+ w(!y), T && A(!1), Jl("clickedOkay", 1), $();
9011
9018
  }, Y = async (q) => {
9012
- !window._env_.K8S_CLIENT && N.serverInfo?.installationType !== Xl.ENTERPRISE && await V(), A(!w), y && T(!1), Jl("clickedOkay", 1), $(), await Qu(q, Pu.HELP), Ei.event({
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({
9013
9020
  category: "Main Navigation",
9014
9021
  action: "Help Clicked"
9015
9022
  });
@@ -9020,7 +9027,7 @@ const wR = (t) => os(`${X.ATTRIBUTES_USER}/${X.UPDATE}`, t), AR = ({ className:
9020
9027
  /* @__PURE__ */ a.jsx(
9021
9028
  _n,
9022
9029
  {
9023
- style: { "--rotateBy": `${180 * Number(w)}deg` },
9030
+ style: { "--rotateBy": `${180 * Number(T)}deg` },
9024
9031
  className: "fcn-9 icon-dim-20 rotate pointer"
9025
9032
  }
9026
9033
  )
@@ -9059,7 +9066,7 @@ const wR = (t) => os(`${X.ATTRIBUTES_USER}/${X.UPDATE}`, t), AR = ({ className:
9059
9066
  h && (x ? /* @__PURE__ */ a.jsx(
9060
9067
  aa,
9061
9068
  {
9062
- infoText: C,
9069
+ infoText: v,
9063
9070
  heading: t,
9064
9071
  iconClassName: "icon-dim-20 ml-8 fcn-5",
9065
9072
  documentationLink: b,
@@ -9074,7 +9081,7 @@ const wR = (t) => os(`${X.ATTRIBUTES_USER}/${X.UPDATE}`, t), AR = ({ className:
9074
9081
  className: "dc__link flex",
9075
9082
  target: "_blank",
9076
9083
  href: b,
9077
- onClick: v,
9084
+ onClick: C,
9078
9085
  rel: "noreferrer",
9079
9086
  "aria-label": "tippy-icon",
9080
9087
  children: /* @__PURE__ */ a.jsx(
@@ -9085,7 +9092,7 @@ const wR = (t) => os(`${X.ATTRIBUTES_USER}/${X.UPDATE}`, t), AR = ({ className:
9085
9092
  placement: "top",
9086
9093
  content: /* @__PURE__ */ a.jsxs("span", { style: { display: "block", width: "66px" }, children: [
9087
9094
  " ",
9088
- C,
9095
+ v,
9089
9096
  " "
9090
9097
  ] }),
9091
9098
  children: /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(E, { className: "icon-dim-20 ml-8 cursor fcn-5" }) })
@@ -9102,7 +9109,7 @@ const wR = (t) => os(`${X.ATTRIBUTES_USER}/${X.UPDATE}`, t), AR = ({ className:
9102
9109
  ] })
9103
9110
  ] }),
9104
9111
  s && n(),
9105
- w && /* @__PURE__ */ a.jsx(
9112
+ T && /* @__PURE__ */ a.jsx(
9106
9113
  RR,
9107
9114
  {
9108
9115
  className: `help-card__more-option ${window._env_.K8S_CLIENT ? "k8s-client-view" : ""}`,
@@ -9110,7 +9117,7 @@ const wR = (t) => os(`${X.ATTRIBUTES_USER}/${X.UPDATE}`, t), AR = ({ className:
9110
9117
  serverInfo: N.serverInfo,
9111
9118
  fetchingServerInfo: N.fetchingServerInfo,
9112
9119
  setGettingStartedClicked: g,
9113
- showHelpCard: w
9120
+ showHelpCard: T
9114
9121
  }
9115
9122
  ),
9116
9123
  !window._env_.K8S_CLIENT && p && f >= 0 && f < C0 && ue() && /* @__PURE__ */ a.jsx(
@@ -9127,7 +9134,7 @@ const wR = (t) => os(`${X.ATTRIBUTES_USER}/${X.UPDATE}`, t), AR = ({ className:
9127
9134
  {
9128
9135
  className: "logout-card__more-option",
9129
9136
  userFirstLetter: k,
9130
- setShowLogOutCard: T,
9137
+ setShowLogOutCard: w,
9131
9138
  showLogOutCard: y
9132
9139
  }
9133
9140
  ),
@@ -9914,14 +9921,14 @@ const XR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
9914
9921
  }) => {
9915
9922
  const d = t === Ds.WEBHOOK, u = t === Ds.BranchRegex || !!r || o, [h, f] = R(""), [m, p] = R(""), [_, g] = R(!!d), x = () => {
9916
9923
  if (d) {
9917
- const v = JSON.parse(e);
9918
- gp(v.eventId).then((S) => {
9919
- const w = S.result;
9920
- f(w.name), p(
9924
+ const C = JSON.parse(e);
9925
+ gp(C.eventId).then((S) => {
9926
+ const T = S.result;
9927
+ f(T.name), p(
9921
9928
  Yp(
9922
- w.name,
9923
- v.condition,
9924
- w.selectors
9929
+ T.name,
9930
+ C.condition,
9931
+ T.selectors
9925
9932
  )
9926
9933
  ), g(!1);
9927
9934
  }).catch((S) => {
@@ -9946,19 +9953,19 @@ const XR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
9946
9953
  function E() {
9947
9954
  if (!d)
9948
9955
  return;
9949
- const v = JSON.parse(e), S = v.eventId, w = v.condition;
9956
+ const C = JSON.parse(e), S = C.eventId, T = C.condition;
9950
9957
  gp(S).then((A) => {
9951
9958
  const y = A.result;
9952
- f(y.name), p(Yp(y.name, w, y.selectors)), g(!1);
9959
+ f(y.name), p(Yp(y.name, T, y.selectors)), g(!1);
9953
9960
  }).catch((A) => {
9954
9961
  throw A;
9955
9962
  });
9956
9963
  }
9957
- function C() {
9964
+ function v() {
9958
9965
  u && p(b());
9959
9966
  }
9960
9967
  return P(() => {
9961
- E(), C();
9968
+ E(), v();
9962
9969
  }, []), /* @__PURE__ */ a.jsxs("div", { className: `flex left ${s ? "fw-5" : ""} ${c}`, children: [
9963
9970
  _ && n && /* @__PURE__ */ a.jsx("span", { className: "dc__loading-dots", children: "loading" }),
9964
9971
  !_ && /* @__PURE__ */ a.jsxs("div", { className: "flex dc__gap-4", children: [
@@ -10073,21 +10080,21 @@ const XR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
10073
10080
  runSource: f,
10074
10081
  resourceId: m
10075
10082
  }) => {
10076
- const { path: p, params: _ } = rn(), { pathname: g } = zn(), x = g.split("/").pop(), { envId: b, ...E } = rs(), C = c === Xe.CD || c === Xe.GROUP_CD, v = C ? "triggerId" : "buildId", S = m === f?.id, w = 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), A = () => {
10077
10084
  const N = {
10078
10085
  ...E,
10079
10086
  envId: b,
10080
- [v]: t
10087
+ [C]: t
10081
10088
  };
10082
10089
  return `${di(p, N)}/${x}`;
10083
10090
  }, y = () => {
10084
- w?.current && w.current.scrollIntoView({ behavior: "smooth" });
10091
+ T?.current && T.current.scrollIntoView({ behavior: "smooth" });
10085
10092
  };
10086
10093
  P(() => {
10087
10094
  y();
10088
- }, [w]);
10089
- const T = _[v], k = (N) => {
10090
- +T == +t && (w.current = N);
10095
+ }, [T]);
10096
+ const w = _[C], k = (N) => {
10097
+ +w == +t && (T.current = N);
10091
10098
  };
10092
10099
  return /* @__PURE__ */ a.jsx(
10093
10100
  Wt,
@@ -10126,7 +10133,7 @@ const XR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
10126
10133
  /* @__PURE__ */ a.jsxs("div", { className: "flex column left", children: [
10127
10134
  /* @__PURE__ */ a.jsx("div", { className: "cn-9 fs-13 lh-20", children: Ye(s).format(ns.TWELVE_HOURS_FORMAT) }),
10128
10135
  /* @__PURE__ */ a.jsxs("div", { className: "flex left cn-7 fs-12", children: [
10129
- C && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
10136
+ v && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
10130
10137
  /* @__PURE__ */ a.jsx("div", { className: "dc__first-letter-capitalize dc__no-shrink", children: ["pre", "post"].includes(d?.toLowerCase()) ? `${d}-deploy` : d }),
10131
10138
  /* @__PURE__ */ a.jsx("span", { className: "dc__bullet dc__bullet--d2 ml-4 mr-4" }),
10132
10139
  l && /* @__PURE__ */ a.jsxs("div", { className: "dc__app-commit__hash dc__app-commit__hash--no-bg dc__no-shrink", children: [
@@ -10169,8 +10176,8 @@ const XR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
10169
10176
  value: s.size
10170
10177
  }), i({ offset: s.size, size: 20 });
10171
10178
  }, x = () => t === Xe.CI || t === Xe.GROUP_CI ? u : t === Xe.GROUP_CD ? h : f, b = e?.find((S) => S.value === x()) ?? null;
10172
- e?.sort((S, w) => S.label > w.label ? 1 : -1);
10173
- const E = e?.filter((S) => !S.deploymentAppDeleteRequest), C = () => t === Xe.GROUP_CI || t === Xe.GROUP_CD ? Kd.APPLICATION : t === Xe.CI ? Kd.PIPELINE : Kd.ENVIRONMENT, v = (S) => (S.selectProps.styles.option = D0(), /* @__PURE__ */ a.jsx(et.Option, { ...S, children: /* @__PURE__ */ a.jsxs("div", { style: { display: "flex" }, children: [
10179
+ e?.sort((S, T) => S.label > T.label ? 1 : -1);
10180
+ const E = e?.filter((S) => !S.deploymentAppDeleteRequest), v = () => t === Xe.GROUP_CI || t === Xe.GROUP_CD ? Kd.APPLICATION : t === Xe.CI ? Kd.PIPELINE : Kd.ENVIRONMENT, C = (S) => (S.selectProps.styles.option = D0(), /* @__PURE__ */ a.jsx(et.Option, { ...S, children: /* @__PURE__ */ a.jsxs("div", { style: { display: "flex" }, children: [
10174
10181
  (t === Xe.CI || t === Xe.GROUP_CI) && /* @__PURE__ */ a.jsx(
10175
10182
  "div",
10176
10183
  {
@@ -10189,7 +10196,7 @@ const XR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
10189
10196
  "data-testid": "select-history-heading",
10190
10197
  children: [
10191
10198
  "Select ",
10192
- C()
10199
+ v()
10193
10200
  ]
10194
10201
  }
10195
10202
  ),
@@ -10202,7 +10209,7 @@ const XR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
10202
10209
  onChange: _,
10203
10210
  components: {
10204
10211
  IndicatorSeparator: null,
10205
- Option: v,
10212
+ Option: C,
10206
10213
  DropdownIndicator: pH
10207
10214
  },
10208
10215
  styles: $R,
@@ -10213,21 +10220,21 @@ const XR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
10213
10220
  ] }),
10214
10221
  /* @__PURE__ */ a.jsxs("div", { className: "flex column top left flex-grow-1 dc__overflow-auto p-8", children: [
10215
10222
  r === Dn.SUCCESS && /* @__PURE__ */ a.jsx(ik, { handleViewAllHistory: o }),
10216
- Array.from(s).sort(([S], [w]) => w - S).map(([S, w], A) => /* @__PURE__ */ a.jsx(
10223
+ Array.from(s).sort(([S], [T]) => T - S).map(([S, T], A) => /* @__PURE__ */ a.jsx(
10217
10224
  rk,
10218
10225
  {
10219
10226
  dataTestId: `deployment-history-${A}`,
10220
10227
  id: S,
10221
- status: w.status,
10222
- startedOn: w.startedOn,
10223
- triggeredBy: w.triggeredBy,
10224
- triggeredByEmail: w.triggeredByEmail,
10225
- ciMaterials: w.ciMaterials,
10226
- gitTriggers: w.gitTriggers,
10227
- artifact: w.artifact,
10228
- stage: w.stage,
10228
+ status: T.status,
10229
+ startedOn: T.startedOn,
10230
+ triggeredBy: T.triggeredBy,
10231
+ triggeredByEmail: T.triggeredByEmail,
10232
+ ciMaterials: T.ciMaterials,
10233
+ gitTriggers: T.gitTriggers,
10234
+ artifact: T.artifact,
10235
+ stage: T.stage,
10229
10236
  type: t,
10230
- runSource: w.runSource,
10237
+ runSource: T.runSource,
10231
10238
  renderRunSource: c,
10232
10239
  resourceId: d
10233
10240
  },
@@ -10380,16 +10387,16 @@ const XR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
10380
10387
  return s.length ? s : null;
10381
10388
  }, R8 = (t) => {
10382
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) => {
10383
- const w = f(S), A = {};
10384
- return Object.keys(w || {}).forEach((y) => {
10385
- const T = w[y], k = Wr(S[y], T);
10390
+ const T = f(S), A = {};
10391
+ return Object.keys(T || {}).forEach((y) => {
10392
+ const w = T[y], k = Wr(S[y], w);
10386
10393
  k && (A[y] = k);
10387
10394
  }), A;
10388
- }, p = (S, w) => (A) => {
10389
- A?.preventDefault(), Object.keys(u).length !== Object.keys(s).length && h(Object.keys(s).reduce((T, k) => ({ ...T, [k]: !0 }), {}));
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 }), {}));
10390
10397
  const y = m(s);
10391
10398
  if (Object.keys(y).length) {
10392
- d(y), w?.(y, A);
10399
+ d(y), T?.(y, A);
10393
10400
  return;
10394
10401
  }
10395
10402
  d({}), S(s, A);
@@ -10397,8 +10404,8 @@ const XR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
10397
10404
  P(() => {
10398
10405
  t?.shouldValidateOnMount && p(Bt)();
10399
10406
  }, []);
10400
- const _ = (S, w, A) => (y) => {
10401
- const T = A ? y : y.target.value, k = w ? w(T) : T;
10407
+ const _ = (S, T, A) => (y) => {
10408
+ const w = A ? y : y.target.value, k = T ? T(w) : w;
10402
10409
  n((I) => {
10403
10410
  const O = { ...I, [S]: k }, D = t?.validationMode ?? "onChange";
10404
10411
  if (D === "onChange" || D === "all" || u[S] || c[S]) {
@@ -10409,60 +10416,60 @@ const XR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
10409
10416
  });
10410
10417
  const N = e.current;
10411
10418
  r((I) => ({ ...I, [S]: !Ao(N[S], k) }));
10412
- }, g = (S, w) => () => {
10413
- if (w || n({ ...s, [S]: s[S]?.trim() }), t?.validationMode === "onBlur" || t?.validationMode === "all") {
10414
- const y = f(), T = Wr(s[S], y[S]);
10415
- T && !u[S] && h({ ...u, [S]: !0 }), d({ ...c, [S]: T });
10419
+ }, g = (S, T) => () => {
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 });
10416
10423
  }
10417
10424
  }, x = (S) => () => {
10418
- l((w) => ({ ...w, [S]: !0 }));
10425
+ l((T) => ({ ...T, [S]: !0 }));
10419
10426
  };
10420
10427
  return {
10421
10428
  /** The current form data. */
10422
10429
  data: s,
10423
10430
  /** An object containing validation errors for each form field. */
10424
10431
  errors: c,
10425
- register: (S, w) => ({
10426
- onChange: _(S, w?.sanitizeFn, w?.isCustomComponent),
10427
- onBlur: g(S, w?.noTrim),
10432
+ register: (S, T) => ({
10433
+ onChange: _(S, T?.sanitizeFn, T?.isCustomComponent),
10434
+ onBlur: g(S, T?.noTrim),
10428
10435
  onFocus: x(S),
10429
10436
  name: S
10430
10437
  }),
10431
10438
  handleSubmit: p,
10432
10439
  trigger: (S) => {
10433
- const w = f();
10440
+ const T = f();
10434
10441
  if (Array.isArray(S)) {
10435
- const A = {}, y = S.map((T) => {
10436
- if (w) {
10437
- const k = w[T], N = Wr(s[T], k);
10438
- return A[T] = N, N;
10442
+ const A = {}, y = S.map((w) => {
10443
+ if (T) {
10444
+ const k = T[w], N = Wr(s[w], k);
10445
+ return A[w] = N, N;
10439
10446
  }
10440
10447
  return null;
10441
10448
  });
10442
10449
  return Object.keys(A).length && d({ ...c, ...A }), y;
10443
10450
  }
10444
- if (w) {
10445
- const A = w[S], y = Wr(s[S], A);
10451
+ if (T) {
10452
+ const A = T[S], y = Wr(s[S], A);
10446
10453
  return y && d({ ...c, [S]: y }), y;
10447
10454
  }
10448
10455
  return null;
10449
10456
  },
10450
- setValue: (S, w, A) => {
10451
- if (n((y) => ({ ...y, [S]: w })), A?.shouldDirty) {
10457
+ setValue: (S, T, A) => {
10458
+ if (n((y) => ({ ...y, [S]: T })), A?.shouldDirty) {
10452
10459
  const y = e.current;
10453
- r((T) => ({ ...T, [S]: !Ao(y[S], w) }));
10460
+ r((w) => ({ ...w, [S]: !Ao(y[S], T) }));
10454
10461
  }
10455
10462
  A?.shouldTouch && l((y) => ({ ...y, [S]: !0 }));
10456
10463
  },
10457
- reset: (S, w) => {
10464
+ reset: (S, T) => {
10458
10465
  const {
10459
10466
  keepDirty: A = !1,
10460
10467
  keepTouched: y = !1,
10461
- keepErrors: T = !1,
10468
+ keepErrors: w = !1,
10462
10469
  triggerDirty: k = !1,
10463
10470
  keepInitialValues: N = !1
10464
- } = w ?? {};
10465
- if (n(S), N || (e.current = S), T || d({}), k) {
10471
+ } = T ?? {};
10472
+ if (n(S), N || (e.current = S), w || d({}), k) {
10466
10473
  const I = e.current, O = Object.keys(S).reduce(
10467
10474
  (D, V) => ({
10468
10475
  ...D,
@@ -10576,7 +10583,7 @@ const XR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
10576
10583
  targetPlatforms: _
10577
10584
  }) => {
10578
10585
  const { isSuperAdmin: g } = z0(), { handleDownload: x } = fk(), { triggerId: b, buildId: E } = rs();
10579
- async function C() {
10586
+ async function v() {
10580
10587
  await x({
10581
10588
  downloadUrl: i,
10582
10589
  fileName: `${E || b}.zip`
@@ -10637,7 +10644,7 @@ const XR = /* @__PURE__ */ new Set(["error", "healthy", "succeeded", "cancelled"
10637
10644
  "button",
10638
10645
  {
10639
10646
  type: "button",
10640
- onClick: C,
10647
+ onClick: v,
10641
10648
  className: "anchor p-0 cb-5 fs-12 flex left pointer",
10642
10649
  children: [
10643
10650
  "Download",
@@ -11023,7 +11030,7 @@ const k8 = (t, e, s) => xe(`app/history/deployed-configuration/${t}/${e}/${s}`),
11023
11030
  }, Ok = ({ triggerDetails: t, isBlobStorageConfigured: e, parentType: s, fullScreenView: n }) => {
11024
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(
11025
11032
  t.podStatus && t.podStatus !== zd.PENDING && l
11026
- ), [h, f] = R([]), [m, p] = R([]), [_, g] = R(0), [x, b] = R([]), { searchKey: E, handleSearch: C } = J0(), v = m.length > 0, S = de(() => h.every((Q) => Q.isOpen), [h]), w = S ? "Collapse all stages" : "Expand all stages", { registerShortcut: A, unregisterShortcut: y } = da(), T = 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: A, unregisterShortcut: y } = da(), w = c[0]?.startsWith(Hp) || !1;
11027
11034
  function k({
11028
11035
  log: Q,
11029
11036
  currentIndex: q = -1,
@@ -11033,7 +11040,7 @@ const k8 = (t, e, s) => xe(`app/history/deployed-configuration/${t}/${e}/${s}`),
11033
11040
  }) {
11034
11041
  let U = !1;
11035
11042
  try {
11036
- if (Q = Q.replace(/\[[.]*m/, (J) => `\x1B[${J}m`), Se && T) {
11043
+ if (Q = Q.replace(/\[[.]*m/, (J) => `\x1B[${J}m`), Se && w) {
11037
11044
  const J = Q.split(sp), _e = Q.match(sp) || [], he = new RegExp(`(${WO(Se)})`, "ig");
11038
11045
  Q = J.reduce((oe, xt, Ut) => {
11039
11046
  try {
@@ -11122,7 +11129,7 @@ const k8 = (t, e, s) => xe(`app/history/deployed-configuration/${t}/${e}/${s}`),
11122
11129
  P(() => {
11123
11130
  if (!c?.length)
11124
11131
  return;
11125
- if (!T) {
11132
+ if (!w) {
11126
11133
  const q = c.map((Se) => k({ log: Se }).__html);
11127
11134
  b(q);
11128
11135
  return;
@@ -11151,14 +11158,14 @@ const k8 = (t, e, s) => xe(`app/history/deployed-configuration/${t}/${e}/${s}`),
11151
11158
  }, G = () => {
11152
11159
  V("prev");
11153
11160
  }, Y = (Q) => {
11154
- C(Q), E === Q ? $() : V("reset", Q);
11161
+ v(Q), E === Q ? $() : V("reset", Q);
11155
11162
  }, ee = (Q) => {
11156
11163
  const q = structuredClone(h);
11157
11164
  q[Q].isOpen = !1, f(q);
11158
11165
  }, ue = (Q) => {
11159
11166
  const q = structuredClone(h);
11160
11167
  q[Q].isOpen = !0, f(q);
11161
- }, We = () => T ? /* @__PURE__ */ a.jsxs(
11168
+ }, We = () => w ? /* @__PURE__ */ a.jsxs(
11162
11169
  "div",
11163
11170
  {
11164
11171
  className: "flexbox-col pb-20 logs-renderer-container flex-grow-1",
@@ -11190,7 +11197,7 @@ const k8 = (t, e, s) => xe(`app/history/deployed-configuration/${t}/${e}/${s}`),
11190
11197
  ),
11191
11198
  !!E && /* @__PURE__ */ a.jsxs("div", { className: "flexbox px-10 py-6 dc__gap-8 dc__align-items-center", children: [
11192
11199
  /* @__PURE__ */ a.jsxs("span", { className: "fs-13 fw-4 lh-20 text__white", children: [
11193
- v ? _ + 1 : 0,
11200
+ C ? _ + 1 : 0,
11194
11201
  "/",
11195
11202
  m.length,
11196
11203
  " results"
@@ -11200,11 +11207,11 @@ const k8 = (t, e, s) => xe(`app/history/deployed-configuration/${t}/${e}/${s}`),
11200
11207
  "button",
11201
11208
  {
11202
11209
  type: "button",
11203
- className: `dc__unset-button-styles flex p-6 br-4 dc__bg-n0--opacity-0_2 ${v ? "" : "dc__disabled"}`,
11210
+ className: `dc__unset-button-styles flex p-6 br-4 dc__bg-n0--opacity-0_2 ${C ? "" : "dc__disabled"}`,
11204
11211
  onClick: G,
11205
11212
  "data-testid": "logs-previous-search-match",
11206
11213
  "aria-label": "Focus the previous search result match",
11207
- disabled: !v,
11214
+ disabled: !C,
11208
11215
  children: /* @__PURE__ */ a.jsx(xn, { className: "icon-stroke__white dc__flip-180 icon-dim-14 dc__no-shrink" })
11209
11216
  }
11210
11217
  ),
@@ -11212,11 +11219,11 @@ const k8 = (t, e, s) => xe(`app/history/deployed-configuration/${t}/${e}/${s}`),
11212
11219
  "button",
11213
11220
  {
11214
11221
  type: "button",
11215
- className: `dc__unset-button-styles flex p-6 br-4 dc__bg-n0--opacity-0_2 ${v ? "" : "dc__disabled"}`,
11222
+ className: `dc__unset-button-styles flex p-6 br-4 dc__bg-n0--opacity-0_2 ${C ? "" : "dc__disabled"}`,
11216
11223
  onClick: $,
11217
11224
  "data-testid": "logs-next-search-match",
11218
11225
  "aria-label": "Focus the next search result match",
11219
- disabled: !v,
11226
+ disabled: !C,
11220
11227
  children: /* @__PURE__ */ a.jsx(xn, { className: "icon-stroke__white icon-dim-14 dc__no-shrink" })
11221
11228
  }
11222
11229
  )
@@ -11226,7 +11233,7 @@ const k8 = (t, e, s) => xe(`app/history/deployed-configuration/${t}/${e}/${s}`),
11226
11233
  Ae,
11227
11234
  {
11228
11235
  shortcutKeyCombo: {
11229
- text: w,
11236
+ text: T,
11230
11237
  combo: ["E"]
11231
11238
  },
11232
11239
  className: "dc__mxw-500",
@@ -11237,7 +11244,7 @@ const k8 = (t, e, s) => xe(`app/history/deployed-configuration/${t}/${e}/${s}`),
11237
11244
  type: "button",
11238
11245
  className: "dc__unset-button-styles px-10 flex dc__bg-n0--opacity-0_2",
11239
11246
  onClick: D,
11240
- "aria-label": w,
11247
+ "aria-label": T,
11241
11248
  children: S ? /* @__PURE__ */ a.jsx(xT, { className: "icon-dim-16 dc__no-shrink dc__transition--transform icon-stroke__white" }) : /* @__PURE__ */ a.jsx(_T, { className: "icon-dim-16 dc__no-shrink dc__transition--transform icon-stroke__white" })
11242
11249
  }
11243
11250
  )
@@ -11616,8 +11623,8 @@ const jk = (t, e) => {
11616
11623
  let x = [];
11617
11624
  if (g.length > 0) {
11618
11625
  for (let b = 0; b < g.length; b++)
11619
- m.nodes[g[b]].forEach((C) => {
11620
- C.health && x.push(C);
11626
+ m.nodes[g[b]].forEach((v) => {
11627
+ v.health && x.push(v);
11621
11628
  });
11622
11629
  x.sort(
11623
11630
  (b, E) => Gp[b.health.status?.toLowerCase()] - Gp[E.health.status?.toLowerCase()]
@@ -12049,9 +12056,9 @@ const Uk = ({
12049
12056
  }) => {
12050
12057
  const d = qn(), { url: u } = rn(), { appId: h, envId: f, triggerId: m } = rs(), [p, _] = R(
12051
12058
  t?.toUpperCase() !== Z.ABORTED
12052
- ), g = ie(o), x = g.current && l ? l() : kp(), [b, E] = R(x), C = () => {
12059
+ ), g = ie(o), x = g.current && l ? l() : kp(), [b, E] = R(x), v = () => {
12053
12060
  Fa && clearTimeout(Fa);
12054
- }, v = () => {
12061
+ }, C = () => {
12055
12062
  bk(h, f, !0, m, s, n).then((y) => {
12056
12063
  t !== "Aborted" && S(y.result);
12057
12064
  }).catch(() => {
@@ -12060,19 +12067,19 @@ const Uk = ({
12060
12067
  _(!1);
12061
12068
  });
12062
12069
  };
12063
- P(() => (e === qi.HELM && d.replace(`${u.replace("deployment-steps", "source-code")}`), i && v(), () => {
12064
- C();
12070
+ P(() => (e === qi.HELM && d.replace(`${u.replace("deployment-steps", "source-code")}`), i && C(), () => {
12071
+ v();
12065
12072
  }), [n]), P(() => {
12066
12073
  g.current = o;
12067
12074
  }, [o]);
12068
12075
  const S = (y) => {
12069
- const T = g.current && l ? l(y) : kp(y);
12070
- C(), T.deploymentStatus === ye.INPROGRESS ? Fa = setTimeout(() => {
12071
- v();
12076
+ const w = g.current && l ? l(y) : kp(y);
12077
+ v(), w.deploymentStatus === ye.INPROGRESS ? Fa = setTimeout(() => {
12078
+ C();
12072
12079
  }, 1e4) : Fa = setTimeout(() => {
12073
- v();
12074
- }, 3e4), E(T);
12075
- }, w = () => {
12080
+ C();
12081
+ }, 3e4), E(w);
12082
+ }, T = () => {
12076
12083
  if (s) {
12077
12084
  d.push({
12078
12085
  pathname: `${Be.APP}/${Be.DEVTRON_CHARTS}/${Be.APP_DEPLOYMNENT_HISTORY}/${h}/env/${f}/${Be.DETAILS}/${Be.APP_DETAILS_K8}`,
@@ -12091,7 +12098,7 @@ const Uk = ({
12091
12098
  imgSource: ET,
12092
12099
  actionButtonClass: "bcb-5 cn-0",
12093
12100
  ActionButtonIcon: i0,
12094
- actionHandler: w,
12101
+ actionHandler: T,
12095
12102
  subtitle: at.DEPLOYMENT_DETAILS_SETPS_PROGRESSING.SUBTITLE,
12096
12103
  actionButtonText: "Check live status",
12097
12104
  actionButtonIconRight: !0,
@@ -12272,14 +12279,14 @@ const $b = {
12272
12279
  }) => {
12273
12280
  const [h, f] = R({});
12274
12281
  P(() => {
12275
- f(e.reduce((C, v) => ({ ...C, [v.id]: !!v.items.length }), {}));
12282
+ f(e.reduce((v, C) => ({ ...v, [C.id]: !!C.items.length }), {}));
12276
12283
  }, [e]);
12277
12284
  const m = e.map(
12278
- ({ items: C, ...v }) => ({
12279
- ...v,
12280
- isExpanded: h[v.id],
12281
- items: C.map(({ diffState: S, ...w }) => ({
12282
- ...w,
12285
+ ({ items: v, ...C }) => ({
12286
+ ...C,
12287
+ isExpanded: h[C.id],
12288
+ items: v.map(({ diffState: S, ...T }) => ({
12289
+ ...T,
12283
12290
  strikeThrough: d && S === gs.DELETED,
12284
12291
  ...!u && S !== gs.NO_DIFF ? {
12285
12292
  iconConfig: {
@@ -12293,45 +12300,45 @@ const $b = {
12293
12300
  } : {}
12294
12301
  }))
12295
12302
  })
12296
- ), p = (C) => {
12297
- f((v) => ({ ...v, [C]: !v[C] }));
12298
- }, _ = (C) => {
12299
- const { value: v } = C.target;
12300
- l?.activeTab !== v && l?.onClick?.(v);
12303
+ ), p = (v) => {
12304
+ f((C) => ({ ...C, [v]: !C[v] }));
12305
+ }, _ = (v) => {
12306
+ const { value: C } = v.target;
12307
+ l?.activeTab !== C && l?.onClick?.(C);
12301
12308
  }, g = () => /* @__PURE__ */ a.jsxs("div", { className: "p-12 flexbox dc__align-items-center dc__gap-8 dc__border-bottom-n1", children: [
12302
12309
  n && /* @__PURE__ */ a.jsx(Kn, { to: n, children: /* @__PURE__ */ a.jsx("span", { className: "dc__border br-4 p-1 flex dc__hover-n50", children: /* @__PURE__ */ a.jsx(Ct, { className: "icon-dim-16 fcn-6" }) }) }),
12303
12310
  /* @__PURE__ */ a.jsx("span", { className: "fs-13 lh-20 fw-6 cn-9 dc__truncate", children: i })
12304
12311
  ] }), x = () => {
12305
- const { tabs: C, activeTab: v } = l;
12312
+ const { tabs: v, activeTab: C } = l;
12306
12313
  return /* @__PURE__ */ a.jsx("div", { className: "p-12", children: /* @__PURE__ */ a.jsx(
12307
12314
  En,
12308
12315
  {
12309
12316
  name: "deployment-config-diff-tab-list",
12310
- initialTab: v,
12317
+ initialTab: C,
12311
12318
  onChange: _,
12312
12319
  disabled: t,
12313
12320
  className: "gui-yaml-switch deployment-config-diff__tab-list",
12314
- children: C.map((S) => /* @__PURE__ */ a.jsx(En.Radio, { value: S, className: "fs-12 lh-20 cn-7 fw-6", children: S }, S))
12321
+ children: v.map((S) => /* @__PURE__ */ a.jsx(En.Radio, { value: S, className: "fs-12 lh-20 cn-7 fw-6", children: S }, S))
12315
12322
  }
12316
12323
  ) });
12317
12324
  }, b = () => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
12318
- s.map(({ title: C, href: v, onClick: S, diffState: w, Icon: A }) => {
12319
- const y = d ? ao[w] : ao.hasDiff;
12325
+ s.map(({ title: v, href: C, onClick: S, diffState: T, Icon: A }) => {
12326
+ const y = d ? ao[T] : ao.hasDiff;
12320
12327
  return /* @__PURE__ */ a.jsxs(
12321
12328
  $t,
12322
12329
  {
12323
12330
  "data-testid": "env-deployment-template",
12324
12331
  className: "dc__nav-item cursor dc__gap-8 fs-13 lh-32 cn-7 w-100 br-4 px-8 flexbox dc__align-items-center dc__no-decor",
12325
- to: v,
12332
+ to: C,
12326
12333
  onClick: S,
12327
12334
  children: [
12328
12335
  A && /* @__PURE__ */ a.jsx(A, { className: "icon-dim-16 dc__nav-item__start-icon dc__no-shrink" }),
12329
- /* @__PURE__ */ a.jsx("span", { className: "dc__truncate flex-grow-1", children: C }),
12330
- !u && w !== gs.NO_DIFF && /* @__PURE__ */ a.jsx(
12336
+ /* @__PURE__ */ a.jsx("span", { className: "dc__truncate flex-grow-1", children: v }),
12337
+ !u && T !== gs.NO_DIFF && /* @__PURE__ */ a.jsx(
12331
12338
  fe,
12332
12339
  {
12333
12340
  className: "default-tt",
12334
- content: d ? Ua[w] : Ua.hasDiff,
12341
+ content: d ? Ua[T] : Ua.hasDiff,
12335
12342
  arrow: !1,
12336
12343
  placement: "right",
12337
12344
  children: /* @__PURE__ */ a.jsx("div", { className: "flex", children: /* @__PURE__ */ a.jsx(y, { className: "icon-dim-20 p-2 dc__no-shrink" }) })
@@ -12339,7 +12346,7 @@ const $b = {
12339
12346
  )
12340
12347
  ]
12341
12348
  },
12342
- C
12349
+ v
12343
12350
  );
12344
12351
  }),
12345
12352
  /* @__PURE__ */ a.jsx($k, { config: m, tabType: "navLink", onCollapseBtnClick: p }),
@@ -12347,7 +12354,7 @@ const $b = {
12347
12354
  /* @__PURE__ */ a.jsx("span", { className: "flex p-2 dc__align-self-start", children: o ? /* @__PURE__ */ a.jsx(sd, { className: "icon-dim-16 dc__no-shrink" }) : /* @__PURE__ */ a.jsx(fr, { className: "icon-dim-16 fcn-7 dc__no-shrink" }) }),
12348
12355
  /* @__PURE__ */ a.jsx("p", { className: `m-0 fs-12 lh-1-5 ${o ? "cr-5" : "cn-9"}`, children: r })
12349
12356
  ] })
12350
- ] }), E = () => t ? ["90", "70", "50"].map((C) => /* @__PURE__ */ a.jsx(Vk, { width: C }, C)) : c?.error ? /* @__PURE__ */ a.jsxs("div", { className: "mt-8 py-6 px-8 flexbox dc__align-items-center dc__gap-8", children: [
12357
+ ] }), E = () => t ? ["90", "70", "50"].map((v) => /* @__PURE__ */ a.jsx(Vk, { width: v }, v)) : c?.error ? /* @__PURE__ */ a.jsxs("div", { className: "mt-8 py-6 px-8 flexbox dc__align-items-center dc__gap-8", children: [
12351
12358
  /* @__PURE__ */ a.jsx("span", { className: "flex p-2 dc__align-self-start", children: /* @__PURE__ */ a.jsx(fr, { className: "icon-dim-16 fcn-7" }) }),
12352
12359
  /* @__PURE__ */ a.jsx("p", { className: "m-0 fs-12 lh-1-5 cn-9", children: "Failed to load files. Please reload or select a different reference to compare with." })
12353
12360
  ] }) : b();
@@ -13025,8 +13032,8 @@ const $b = {
13025
13032
  },
13026
13033
  diffState: xl(x, b)
13027
13034
  };
13028
- let C, v, S;
13029
- (_.pipelineConfigData || g.pipelineConfigData) && (C = cg(_.pipelineConfigData, l), v = cg(
13035
+ let v, C, S;
13036
+ (_.pipelineConfigData || g.pipelineConfigData) && (v = cg(_.pipelineConfigData, l), C = cg(
13030
13037
  g.pipelineConfigData,
13031
13038
  l
13032
13039
  ), S = {
@@ -13035,15 +13042,15 @@ const $b = {
13035
13042
  title: "Pipeline Configuration",
13036
13043
  primaryConfig: {
13037
13044
  heading: null,
13038
- list: v
13045
+ list: C
13039
13046
  },
13040
13047
  secondaryConfig: {
13041
13048
  heading: null,
13042
- list: C
13049
+ list: v
13043
13050
  },
13044
- diffState: xl(C, v)
13051
+ diffState: xl(v, C)
13045
13052
  });
13046
- const w = ug(
13053
+ const T = ug(
13047
13054
  _.configMapData,
13048
13055
  g.configMapData,
13049
13056
  Ls.ConfigMap,
@@ -13062,9 +13069,9 @@ const $b = {
13062
13069
  ), y = [
13063
13070
  E,
13064
13071
  ...S ? [S] : [],
13065
- ...w,
13072
+ ...T,
13066
13073
  ...A
13067
- ], T = [
13074
+ ], w = [
13068
13075
  {
13069
13076
  title: E.title,
13070
13077
  diffState: E.diffState,
@@ -13089,7 +13096,7 @@ const $b = {
13089
13096
  {
13090
13097
  header: "ConfigMaps",
13091
13098
  id: At.ConfigMap,
13092
- items: w.map(({ name: N, diffState: I, id: O }) => ({
13099
+ items: T.map(({ name: N, diffState: I, id: O }) => ({
13093
13100
  title: N,
13094
13101
  diffState: I,
13095
13102
  href: s(At.ConfigMap, N),
@@ -13116,7 +13123,7 @@ const $b = {
13116
13123
  return {
13117
13124
  configList: y,
13118
13125
  collapsibleNavList: k,
13119
- navList: T
13126
+ navList: w
13120
13127
  };
13121
13128
  }
13122
13129
  const c = t, d = e, u = lg(c), h = lg(d), f = {
@@ -13214,17 +13221,17 @@ const $b = {
13214
13221
  ...u,
13215
13222
  [E]: !u[E]
13216
13223
  });
13217
- }, m = (E) => (C) => {
13218
- o === E && C.target === C.currentTarget && setTimeout(() => {
13224
+ }, m = (E) => (v) => {
13225
+ o === E && v.target === v.currentTarget && setTimeout(() => {
13219
13226
  document.querySelector(`#${o}`)?.scrollIntoView({ block: "start" });
13220
13227
  });
13221
13228
  };
13222
13229
  P(() => {
13223
13230
  t || h(
13224
13231
  n.reduce(
13225
- (E, C) => ({
13232
+ (E, v) => ({
13226
13233
  ...E,
13227
- [C.id]: o === C.id || C.diffState !== gs.NO_DIFF
13234
+ [v.id]: o === v.id || v.diffState !== gs.NO_DIFF
13228
13235
  }),
13229
13236
  {}
13230
13237
  )
@@ -13232,13 +13239,13 @@ const $b = {
13232
13239
  }, [t]), P(() => {
13233
13240
  o && h((E) => ({ ...E, [o]: !0 }));
13234
13241
  }, [o]);
13235
- const p = (E) => E.map((C, v) => {
13236
- if (C.type === "string")
13242
+ const p = (E) => E.map((v, C) => {
13243
+ if (v.type === "string")
13237
13244
  return /* @__PURE__ */ a.jsxs(hr, { children: [
13238
- typeof C.text == "string" ? /* @__PURE__ */ a.jsx("p", { className: "m-0 cn-9 fs-13 lh-20 fw-6", children: C.text }) : C.text,
13239
- !i?.hideDivider && v !== E.length - 1 && /* @__PURE__ */ a.jsx("span", { className: "cn-9 fs-13 lh-20", children: "/" })
13240
- ] }, C.id);
13241
- const { selectPickerProps: S } = C;
13245
+ typeof v.text == "string" ? /* @__PURE__ */ a.jsx("p", { className: "m-0 cn-9 fs-13 lh-20 fw-6", children: v.text }) : v.text,
13246
+ !i?.hideDivider && C !== E.length - 1 && /* @__PURE__ */ a.jsx("span", { className: "cn-9 fs-13 lh-20", children: "/" })
13247
+ ] }, v.id);
13248
+ const { selectPickerProps: S } = v;
13242
13249
  return /* @__PURE__ */ a.jsxs(hr, { children: [
13243
13250
  /* @__PURE__ */ a.jsx("div", { className: "dc__mxw-300", children: /* @__PURE__ */ a.jsx(
13244
13251
  tn,
@@ -13247,11 +13254,11 @@ const $b = {
13247
13254
  isDisabled: t || S?.isDisabled
13248
13255
  }
13249
13256
  ) }),
13250
- !i?.hideDivider && v !== E.length - 1 && /* @__PURE__ */ a.jsx("span", { className: "cn-9 fs-13 lh-20", children: "/" })
13251
- ] }, C.id);
13257
+ !i?.hideDivider && C !== E.length - 1 && /* @__PURE__ */ a.jsx("span", { className: "cn-9 fs-13 lh-20", children: "/" })
13258
+ ] }, v.id);
13252
13259
  }), _ = () => {
13253
13260
  if (r) {
13254
- const { handleSorting: E, sortBy: C, sortOrder: v } = r;
13261
+ const { handleSorting: E, sortBy: v, sortOrder: C } = r;
13255
13262
  return /* @__PURE__ */ a.jsx(
13256
13263
  ge,
13257
13264
  {
@@ -13260,12 +13267,12 @@ const $b = {
13260
13267
  variant: Te.borderLess,
13261
13268
  style: De.neutral,
13262
13269
  size: B.small,
13263
- startIcon: C ? /* @__PURE__ */ a.jsx(
13270
+ startIcon: v ? /* @__PURE__ */ a.jsx(
13264
13271
  nd,
13265
13272
  {
13266
13273
  className: "rotate",
13267
13274
  style: {
13268
- "--rotateBy": v === we.ASC ? "0deg" : "180deg"
13275
+ "--rotateBy": C === we.ASC ? "0deg" : "180deg"
13269
13276
  }
13270
13277
  }
13271
13278
  ) : /* @__PURE__ */ a.jsx(a0, {}),
@@ -13277,26 +13284,26 @@ const $b = {
13277
13284
  return null;
13278
13285
  }, g = () => {
13279
13286
  if (l) {
13280
- const { convertVariables: E, onConvertVariablesClick: C } = l;
13287
+ const { convertVariables: E, onConvertVariablesClick: v } = l;
13281
13288
  return /* @__PURE__ */ a.jsx(
13282
13289
  eL,
13283
13290
  {
13284
13291
  resolveScopedVariables: E,
13285
- handleToggleScopedVariablesView: C,
13292
+ handleToggleScopedVariablesView: v,
13286
13293
  throttleOnChange: !0
13287
13294
  }
13288
13295
  );
13289
13296
  }
13290
13297
  return null;
13291
- }, x = () => n.map(({ id: E, primaryConfig: C, secondaryConfig: v, title: S, diffState: w, singleView: A }) => {
13292
- const { heading: y, list: T } = C, { heading: k, list: N } = v;
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;
13293
13300
  return /* @__PURE__ */ a.jsx(
13294
13301
  Yk,
13295
13302
  {
13296
13303
  id: E,
13297
13304
  title: S,
13298
13305
  isExpanded: u[E],
13299
- diffState: w,
13306
+ diffState: T,
13300
13307
  onClick: f(E),
13301
13308
  onTransitionEnd: m(E),
13302
13309
  showDetailedDiffState: c,
@@ -13304,14 +13311,14 @@ const $b = {
13304
13311
  children: A ? /* @__PURE__ */ a.jsx(
13305
13312
  Hb,
13306
13313
  {
13307
- oldValue: T.codeEditorValue.value,
13314
+ oldValue: w.codeEditorValue.value,
13308
13315
  newValue: N.codeEditorValue.value,
13309
- ...T.codeEditorValue.value !== N.codeEditorValue.value && {
13316
+ ...w.codeEditorValue.value !== N.codeEditorValue.value && {
13310
13317
  leftTitle: y,
13311
13318
  rightTitle: k
13312
13319
  },
13313
13320
  codeFoldMessageRenderer: Gb(
13314
- T.codeEditorValue.value,
13321
+ w.codeEditorValue.value,
13315
13322
  N.codeEditorValue.value
13316
13323
  )
13317
13324
  }
@@ -13324,7 +13331,7 @@ const $b = {
13324
13331
  hL,
13325
13332
  {
13326
13333
  baseTemplateConfiguration: N,
13327
- currentConfiguration: T,
13334
+ currentConfiguration: w,
13328
13335
  previousConfigAvailable: !0,
13329
13336
  rootClassName: `${y && k ? "dc__no-top-radius dc__no-top-border" : ""}`
13330
13337
  }
@@ -13515,34 +13522,34 @@ const $b = {
13515
13522
  isCompareDeploymentConfigNotAvailable: u,
13516
13523
  ...h
13517
13524
  }) => {
13518
- const { path: f, params: m } = rn(), { resourceType: p, resourceName: _, appId: g, envId: x } = m, { compareWfrId: b, updateSearchParams: E, sortBy: C, sortOrder: v, handleSorting: S } = i, [w, 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, A] = R({
13519
13526
  isLoading: !1,
13520
13527
  data: l,
13521
13528
  hasMore: l.size >= zi
13522
- }), [y, T] = R(s);
13523
- P(() => (E({ compareWfrId: b }), e(!0), C !== Jd && S(Jd), () => {
13529
+ }), [y, w] = R(s);
13530
+ P(() => (E({ compareWfrId: b }), e(!0), v !== Jd && S(Jd), () => {
13524
13531
  o(!1), e(!1);
13525
13532
  }), []);
13526
13533
  const k = async (q) => {
13527
- A({ ...w, isLoading: !0 });
13534
+ A({ ...T, isLoading: !0 });
13528
13535
  try {
13529
13536
  const { result: Se } = await yk({
13530
13537
  appId: +g,
13531
13538
  envId: +x,
13532
13539
  pagination: { offset: q, size: zi }
13533
- }), Ee = new Map((Se.cdWorkflows || []).map((U) => [U.id, U])), je = new Map([...w.data, ...Ee]);
13540
+ }), Ee = new Map((Se.cdWorkflows || []).map((U) => [U.id, U])), je = new Map([...T.data, ...Ee]);
13534
13541
  A({
13535
13542
  isLoading: !1,
13536
13543
  data: je,
13537
13544
  hasMore: Se.cdWorkflows?.length === zi
13538
- }), T(Yb(je));
13545
+ }), w(Yb(je));
13539
13546
  } catch {
13540
- A({ ...w, isLoading: !1 });
13547
+ A({ ...T, isLoading: !1 });
13541
13548
  }
13542
- }, N = () => k(w.data.size), I = () => w.hasMore ? /* @__PURE__ */ a.jsx("div", { className: "px-4", children: /* @__PURE__ */ a.jsx(
13549
+ }, N = () => k(T.data.size), I = () => T.hasMore ? /* @__PURE__ */ a.jsx("div", { className: "px-4", children: /* @__PURE__ */ a.jsx(
13543
13550
  ge,
13544
13551
  {
13545
- isLoading: w.isLoading,
13552
+ isLoading: T.isLoading,
13546
13553
  onClick: N,
13547
13554
  dataTestId: "load-more-previous-deployments",
13548
13555
  variant: Te.borderLess,
@@ -13553,7 +13560,7 @@ const $b = {
13553
13560
  ) }) : null, { currentDeployment: O, pipelineDeploymentsOptions: D } = lL({
13554
13561
  pipelineDeployments: y,
13555
13562
  wfrId: n,
13556
- triggerHistory: w.data,
13563
+ triggerHistory: T.data,
13557
13564
  renderRunSource: c,
13558
13565
  resourceId: d
13559
13566
  }), V = D.find(({ value: q }) => q === b), $ = !!D.length, G = ({ value: q }) => {
@@ -13592,9 +13599,9 @@ const $b = {
13592
13599
  }
13593
13600
  ]
13594
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 = {
13595
- handleSorting: () => S(v !== we.DESC ? Jd : ""),
13596
- sortBy: C,
13597
- sortOrder: v
13602
+ handleSorting: () => S(C !== we.DESC ? Jd : ""),
13603
+ sortBy: v,
13604
+ sortOrder: C
13598
13605
  }, Q = {
13599
13606
  convertVariables: r,
13600
13607
  onConvertVariablesClick: () => o(!r)
@@ -13630,7 +13637,7 @@ const $b = {
13630
13637
  [m, n]
13631
13638
  ), g = !!_, x = J0({
13632
13639
  parseSearchParams: cL(_)
13633
- }), { compareWfrId: b, sortBy: E, sortOrder: C } = x, [v, S] = R(!1), [w, A, , y] = Bs(async () => {
13640
+ }), { compareWfrId: b, sortBy: E, sortOrder: v } = x, [C, S] = R(!1), [T, A, , y] = Bs(async () => {
13634
13641
  const G = [
13635
13642
  {
13636
13643
  appName: t,
@@ -13653,8 +13660,8 @@ const $b = {
13653
13660
  return Y.status !== "fulfilled" || !Y.value || Y.value.forEach((ue, We) => {
13654
13661
  ee[We].status !== "fulfilled" || !ee[We].value || ee[We].value.result.isAppAdmin || (ee[We].value.result.secretsData = ue.secretsData);
13655
13662
  }), ee;
13656
- }, [p, b]), T = (G, Y) => `${di(c, { ...d })}/${G}${Y ? `/${Y}` : ""}${h}`, k = de(() => {
13657
- if (!w && A) {
13663
+ }, [p, b]), w = (G, Y) => `${di(c, { ...d })}/${G}${Y ? `/${Y}` : ""}${h}`, k = de(() => {
13664
+ if (!T && A) {
13658
13665
  const G = g && A[1].status === "fulfilled" ? A[1].value.result : {
13659
13666
  configMapData: null,
13660
13667
  deploymentTemplate: null,
@@ -13664,28 +13671,28 @@ const $b = {
13664
13671
  return Qk({
13665
13672
  currentList: Y,
13666
13673
  compareList: G,
13667
- getNavItemHref: T,
13668
- convertVariables: v,
13669
- sortingConfig: { sortBy: E, sortOrder: C }
13674
+ getNavItemHref: w,
13675
+ convertVariables: C,
13676
+ sortingConfig: { sortBy: E, sortOrder: v }
13670
13677
  });
13671
13678
  }
13672
13679
  return null;
13673
13680
  }, [
13674
13681
  g,
13675
- w,
13682
+ T,
13676
13683
  A,
13677
- v,
13684
+ C,
13678
13685
  E,
13679
- C
13686
+ v
13680
13687
  ]), N = de(
13681
- () => !w && A ? mg(A[0]) || mg(A[1]) : null,
13682
- [w, A]
13688
+ () => !T && A ? mg(A[0]) || mg(A[1]) : null,
13689
+ [T, A]
13683
13690
  ), I = de(
13684
13691
  () => k ? nI(k.configList, "groupHeader") : [],
13685
13692
  [k]
13686
- ), O = A && fg(A[1]), D = !g || O, V = w || !N && !k, $ = {
13693
+ ), O = A && fg(A[1]), D = !g || O, V = T || !N && !k, $ = {
13687
13694
  code: N?.code,
13688
- error: N && !w,
13695
+ error: N && !T,
13689
13696
  reload: y
13690
13697
  };
13691
13698
  return A && fg(A[0]) ? /* @__PURE__ */ a.jsx("div", { className: "flex bg__primary h-100", children: /* @__PURE__ */ a.jsx(
@@ -13706,7 +13713,7 @@ const $b = {
13706
13713
  urlFilters: x,
13707
13714
  pipelineDeployments: m,
13708
13715
  setFullScreenView: r,
13709
- convertVariables: v,
13716
+ convertVariables: C,
13710
13717
  setConvertVariables: S,
13711
13718
  triggerHistory: i,
13712
13719
  resourceId: o,
@@ -13715,7 +13722,7 @@ const $b = {
13715
13722
  isCompareDeploymentConfigNotAvailable: O
13716
13723
  }
13717
13724
  ) }),
13718
- /* @__PURE__ */ a.jsx(oi, { children: N && !w ? /* @__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: $.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: [
13719
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" }),
13720
13727
  /* @__PURE__ */ a.jsxs("div", { className: "flexbox-col dc__gap-16 dc__mxw-800", children: [
13721
13728
  /* @__PURE__ */ a.jsx("div", { className: "flexbox-col dc__gap-12", children: Object.keys(I).map(
@@ -13918,21 +13925,21 @@ const mL = ({
13918
13925
  index: o,
13919
13926
  isExcluded: l = !1
13920
13927
  }) => {
13921
- const c = Lf(s), d = t === Ds.WEBHOOK || c && c.webhookdata && c.webhookdata.id !== 0, u = d ? c.webhookdata : {}, h = d ? null : c.commiturl ? c.commiturl : ca(i, c.commit), f = (w) => w ? /* @__PURE__ */ a.jsx(
13928
+ const c = Lf(s), d = t === Ds.WEBHOOK || c && c.webhookdata && c.webhookdata.id !== 0, u = d ? c.webhookdata : {}, h = d ? null : c.commiturl ? c.commiturl : ca(i, c.commit), f = (T) => T ? /* @__PURE__ */ a.jsx(
13922
13929
  "a",
13923
13930
  {
13924
- href: V1(i, w),
13931
+ href: V1(i, T),
13925
13932
  target: "_blank",
13926
13933
  rel: "noopener noreferrer",
13927
13934
  className: "commit-hash fs-14 px-6 mono",
13928
13935
  onClick: Oe,
13929
- children: w
13936
+ children: T
13930
13937
  }
13931
13938
  ) : null;
13932
- function m(w) {
13939
+ function m(T) {
13933
13940
  const A = ab(t, s);
13934
13941
  return /* @__PURE__ */ a.jsxs("div", { className: "flex column dc__gap-4 w-100", children: [
13935
- w ? /* @__PURE__ */ a.jsxs("div", { className: "flex left lh-20 dc__gap-8 w-100", children: [
13942
+ T ? /* @__PURE__ */ a.jsxs("div", { className: "flex left lh-20 dc__gap-8 w-100", children: [
13936
13943
  /* @__PURE__ */ a.jsx(vf, { className: "icon-dim-16" }),
13937
13944
  /* @__PURE__ */ a.jsxs("div", { className: "flex left dc__gap-4", children: [
13938
13945
  "Merge commit into ",
@@ -13976,13 +13983,13 @@ const mL = ({
13976
13983
  }
13977
13984
  )
13978
13985
  }
13979
- ) : /* @__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 = (w) => {
13980
- const A = w?.split("/").pop();
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();
13981
13988
  return /* @__PURE__ */ a.jsxs("div", { className: "w-100 flex left dc__gap-4", children: [
13982
13989
  /* @__PURE__ */ a.jsxs(
13983
13990
  "a",
13984
13991
  {
13985
- href: w,
13992
+ href: T,
13986
13993
  target: "_blank",
13987
13994
  rel: "noopener noreferrer",
13988
13995
  className: "commit-hash fs-13 px-6 dc__w-fit-content cursor flex left dc__gap-4",
@@ -13994,19 +14001,19 @@ const mL = ({
13994
14001
  ]
13995
14002
  }
13996
14003
  ),
13997
- /* @__PURE__ */ a.jsx("span", { className: "git-commit-info-generic__copy dc__visibility-hidden p-2", "data-testid": "git-commit-copy", children: /* @__PURE__ */ a.jsx(sn, { content: w }) })
14004
+ /* @__PURE__ */ a.jsx("span", { className: "git-commit-info-generic__copy dc__visibility-hidden p-2", "data-testid": "git-commit-copy", children: /* @__PURE__ */ a.jsx(sn, { content: T }) })
13998
14005
  ] });
13999
- }, b = (w) => /* @__PURE__ */ a.jsxs("div", { className: "commit-hash px-6 dc__w-fit-content dc__gap-4 fs-13", children: [
14006
+ }, b = (T) => /* @__PURE__ */ a.jsxs("div", { className: "commit-hash px-6 dc__w-fit-content dc__gap-4 fs-13", children: [
14000
14007
  /* @__PURE__ */ a.jsx(Zc, { className: "icon-dim-14 scb-5" }),
14001
- w
14002
- ] }), E = () => n ? c.isselected ? /* @__PURE__ */ a.jsx(qm, { className: "dc__align-right icon-dim-20" }) : /* @__PURE__ */ a.jsx(Km, { "data-testid": "valid-git-commit icon-dim-20" }) : null, C = () => /* @__PURE__ */ a.jsxs("div", { className: "flex column left dc__gap-8", children: [
14008
+ T
14009
+ ] }), E = () => n ? c.isselected ? /* @__PURE__ */ a.jsx(qm, { className: "dc__align-right icon-dim-20" }) : /* @__PURE__ */ a.jsx(Km, { "data-testid": "valid-git-commit icon-dim-20" }) : null, v = () => /* @__PURE__ */ a.jsxs("div", { className: "flex column left dc__gap-8", children: [
14003
14010
  /* @__PURE__ */ a.jsxs("div", { className: "flex dc__content-space w-100", children: [
14004
14011
  x(u.data["git url"]),
14005
14012
  E()
14006
14013
  ] }),
14007
14014
  g(),
14008
14015
  m(!0)
14009
- ] }), v = () => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
14016
+ ] }), C = () => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
14010
14017
  /* @__PURE__ */ a.jsxs("div", { className: "flex left dc__content-space", children: [
14011
14018
  b(u.data["target checkout"]),
14012
14019
  E()
@@ -14014,8 +14021,8 @@ const mL = ({
14014
14021
  m()
14015
14022
  ] }), S = () => {
14016
14023
  if (!d) return null;
14017
- const w = u.eventactiontype === pL.MERGED;
14018
- return i.includes(Yi.GITLAB) ? w ? v() : C() : w ? C() : v();
14024
+ const T = u.eventactiontype === pL.MERGED;
14025
+ return i.includes(Yi.GITLAB) ? T ? C() : v() : T ? v() : C();
14019
14026
  };
14020
14027
  return /* @__PURE__ */ a.jsxs("div", { className: "git-commit-info-generic__wrapper cn-9 fs-12", children: [
14021
14028
  r && (d || c.commit) && /* @__PURE__ */ a.jsx(
@@ -14174,8 +14181,8 @@ const mL = ({
14174
14181
  );
14175
14182
  const E = Vl(s);
14176
14183
  return /* @__PURE__ */ a.jsxs("div", { className: "history-component__wrapper flex column left w-100 p-16 dc__gap-12", children: [
14177
- e?.map((C, v) => {
14178
- const S = t[C.id];
14184
+ e?.map((v, C) => {
14185
+ const S = t[v.id];
14179
14186
  return S && (S.Commit || S.WebhookData?.data) ? /* @__PURE__ */ a.jsx(
14180
14187
  "div",
14181
14188
  {
@@ -14185,17 +14192,17 @@ const mL = ({
14185
14192
  children: /* @__PURE__ */ a.jsx(
14186
14193
  Wb,
14187
14194
  {
14188
- index: v,
14189
- materialUrl: S?.GitRepoUrl ? S.GitRepoUrl : C?.url,
14195
+ index: C,
14196
+ materialUrl: S?.GitRepoUrl ? S.GitRepoUrl : v?.url,
14190
14197
  showMaterialInfoHeader: !0,
14191
14198
  commitInfo: S,
14192
- materialSourceType: S?.CiConfigureSourceType ? S.CiConfigureSourceType : C?.type,
14199
+ materialSourceType: S?.CiConfigureSourceType ? S.CiConfigureSourceType : v?.type,
14193
14200
  selectedCommitInfo: "",
14194
- materialSourceValue: S?.CiConfigureSourceValue ? S.CiConfigureSourceValue : C?.value
14201
+ materialSourceValue: S?.CiConfigureSourceValue ? S.CiConfigureSourceValue : v?.value
14195
14202
  }
14196
14203
  )
14197
14204
  },
14198
- `mat-${S?.Commit}-${v}`
14205
+ `mat-${S?.Commit}-${C}`
14199
14206
  ) : null;
14200
14207
  }),
14201
14208
  s && /* @__PURE__ */ a.jsx("div", { className: "history-component__artifact flex left column", children: /* @__PURE__ */ a.jsx(
@@ -14282,16 +14289,16 @@ const xL = (t) => {
14282
14289
  }) => {
14283
14290
  const { registerShortcut: d, unregisterShortcut: u } = da(), [h, f] = R(""), m = r?.identifier, p = r?.confirmationKeyword, { primaryButtonConfig: _, secondaryButtonConfig: g } = i, x = s ?? xL(n), b = "disabled" in _ && _.disabled || p && h.trim() !== p, E = () => {
14284
14291
  _ && !b && _.onClick();
14285
- }, C = dt(() => {
14292
+ }, v = dt(() => {
14286
14293
  !_?.isLoading && !g?.disabled && l();
14287
14294
  }, [_, g]);
14288
14295
  P(() => (d({ keys: ["Enter"], callback: E }), () => {
14289
14296
  u(["Enter"]);
14290
14297
  }), [_, b]);
14291
- const v = (S) => {
14298
+ const C = (S) => {
14292
14299
  f(S.target.value);
14293
14300
  };
14294
- return /* @__PURE__ */ a.jsx(CL, { onEscape: c ? C : Bt, children: /* @__PURE__ */ a.jsxs(
14301
+ return /* @__PURE__ */ a.jsx(CL, { onEscape: c ? v : Bt, children: /* @__PURE__ */ a.jsxs(
14295
14302
  mr.div,
14296
14303
  {
14297
14304
  className: "confirmation-modal flexbox-col br-8 bg__primary dc__m-auto mt-40 w-400",
@@ -14313,7 +14320,7 @@ const xL = (t) => {
14313
14320
  {
14314
14321
  name: m,
14315
14322
  value: h,
14316
- onChange: v,
14323
+ onChange: C,
14317
14324
  label: bL(p),
14318
14325
  inputWrapClassName: "w-100",
14319
14326
  placeholder: "Type to confirm",
@@ -14674,18 +14681,18 @@ const xL = (t) => {
14674
14681
  renderCIListHeader: x,
14675
14682
  renderVirtualHistoryArtifacts: b,
14676
14683
  scrollToTop: E,
14677
- scrollToBottom: C,
14678
- fullScreenView: v,
14684
+ scrollToBottom: v,
14685
+ fullScreenView: C,
14679
14686
  appName: S,
14680
- triggerHistory: w,
14687
+ triggerHistory: T,
14681
14688
  targetPlatforms: A
14682
14689
  }) => {
14683
- const { path: y } = rn(), { appId: T, pipelineId: k, triggerId: N, envId: I } = rs(), O = {
14684
- appId: T,
14690
+ const { path: y } = rn(), { appId: w, pipelineId: k, triggerId: N, envId: I } = rs(), O = {
14691
+ appId: w,
14685
14692
  envId: I,
14686
14693
  appName: `${t.helmPackageName}.tgz`,
14687
14694
  workflowId: t.id
14688
- }, D = `app/cd-pipeline/workflow/download/${T}/${I}/${k}/${N}`;
14695
+ }, D = `app/cd-pipeline/workflow/download/${w}/${I}/${k}/${N}`;
14689
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: [
14690
14697
  t.stage !== "DEPLOY" ? !t.IsVirtualEnvironment && /* @__PURE__ */ a.jsxs(oi, { path: `${y}/logs`, children: [
14691
14698
  /* @__PURE__ */ a.jsx(
@@ -14694,15 +14701,15 @@ const xL = (t) => {
14694
14701
  triggerDetails: t,
14695
14702
  isBlobStorageConfigured: i,
14696
14703
  parentType: Xe.CD,
14697
- fullScreenView: v
14704
+ fullScreenView: C
14698
14705
  }
14699
14706
  ),
14700
- (E || C) && /* @__PURE__ */ a.jsx(
14707
+ (E || v) && /* @__PURE__ */ a.jsx(
14701
14708
  gL,
14702
14709
  {
14703
14710
  style: { position: "fixed", bottom: "52px", right: "12px", zIndex: "4" },
14704
14711
  scrollToTop: E,
14705
- scrollToBottom: C
14712
+ scrollToBottom: v
14706
14713
  }
14707
14714
  )
14708
14715
  ] }) : /* @__PURE__ */ a.jsx(oi, { path: `${y}/deployment-steps`, children: /* @__PURE__ */ a.jsx(
@@ -14748,7 +14755,7 @@ const xL = (t) => {
14748
14755
  envName: f,
14749
14756
  pipelineId: +k,
14750
14757
  wfrId: +N,
14751
- triggerHistory: w,
14758
+ triggerHistory: T,
14752
14759
  setFullScreenView: s,
14753
14760
  resourceId: m,
14754
14761
  renderRunSource: p
@@ -14757,7 +14764,7 @@ const xL = (t) => {
14757
14764
  (t.stage !== "DEPLOY" || t.IsVirtualEnvironment) && /* @__PURE__ */ a.jsx(oi, { path: `${y}/artifacts`, children: t.IsVirtualEnvironment && b ? b({
14758
14765
  status: t.status,
14759
14766
  title: t.helmPackageName,
14760
- params: { ...O, appId: Number(T), envId: Number(I) }
14767
+ params: { ...O, appId: Number(w), envId: Number(I) }
14761
14768
  }) : /* @__PURE__ */ a.jsx(
14762
14769
  Pb,
14763
14770
  {
@@ -14807,15 +14814,15 @@ const xL = (t) => {
14807
14814
  renderVirtualHistoryArtifacts: x,
14808
14815
  renderDeploymentHistoryTriggerMetaText: b,
14809
14816
  resourceId: E,
14810
- scrollToTop: C,
14811
- scrollToBottom: v,
14817
+ scrollToTop: v,
14818
+ scrollToBottom: C,
14812
14819
  renderTargetConfigInfo: S,
14813
- appName: w
14820
+ appName: T
14814
14821
  }) => {
14815
- const { appId: A, triggerId: y, envId: T, pipelineId: k } = rs(), N = e.get(+y), [I, O, D, V] = Bs(
14816
- () => pk({ appId: A, envId: T, pipelineId: k, triggerId: y, fetchIdData: d }),
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 }),
14817
14824
  // TODO: Ask if fetchIdData is required here as dependency
14818
- [y, A, T],
14825
+ [y, A, w],
14819
14826
  !!y && !!k
14820
14827
  ), $ = dd(N?.targetPlatforms), G = (q, Se, Ee) => {
14821
14828
  if (Ee) {
@@ -14968,10 +14975,10 @@ const xL = (t) => {
14968
14975
  renderDeploymentApprovalInfo: _,
14969
14976
  renderCIListHeader: p,
14970
14977
  renderVirtualHistoryArtifacts: x,
14971
- scrollToTop: C,
14972
- scrollToBottom: v,
14978
+ scrollToTop: v,
14979
+ scrollToBottom: C,
14973
14980
  fullScreenView: t,
14974
- appName: w,
14981
+ appName: T,
14975
14982
  triggerHistory: e,
14976
14983
  targetPlatforms: $
14977
14984
  },
@@ -15265,13 +15272,13 @@ const xL = (t) => {
15265
15272
  openDirection: f = "down",
15266
15273
  error: m = ""
15267
15274
  }) => {
15268
- const p = UL(t), _ = bl.find((w) => w.value === p) ?? bl[0], [g, x] = R(!1), b = ({ focused: w }) => {
15269
- x(w);
15270
- }, E = (w) => {
15271
- e(VL(t, w?.toDate()));
15272
- }, C = (w) => {
15273
- e($L(t, w.value).value);
15274
- }, v = Ye(), S = (w) => d && !w.isAfter(v);
15275
+ const p = UL(t), _ = bl.find((T) => T.value === p) ?? bl[0], [g, x] = R(!1), b = ({ focused: T }) => {
15276
+ x(T);
15277
+ }, E = (T) => {
15278
+ e(VL(t, T?.toDate()));
15279
+ }, v = (T) => {
15280
+ e($L(t, T.value).value);
15281
+ }, C = Ye(), S = (T) => d && !T.isAfter(C);
15275
15282
  return /* @__PURE__ */ a.jsxs("div", { className: "date-time-picker", children: [
15276
15283
  r && /* @__PURE__ */ a.jsx("label", { className: `form__label ${o ? "dc__required-field" : ""}`, htmlFor: i, children: r }),
15277
15284
  /* @__PURE__ */ a.jsxs("div", { className: "flex left dc__gap-8", children: [
@@ -15286,7 +15293,7 @@ const xL = (t) => {
15286
15293
  onFocusChange: b,
15287
15294
  numberOfMonths: 1,
15288
15295
  openDirection: f,
15289
- renderCalendarDay: (w) => /* @__PURE__ */ a.jsx(IT, { ...w, ...Kb }),
15296
+ renderCalendarDay: (T) => /* @__PURE__ */ a.jsx(IT, { ...T, ...Kb }),
15290
15297
  hideKeyboardShortcutsPanel: !0,
15291
15298
  withFullScreenPortal: !1,
15292
15299
  orientation: "horizontal",
@@ -15312,7 +15319,7 @@ const xL = (t) => {
15312
15319
  isDisabled: n,
15313
15320
  ...s,
15314
15321
  value: _,
15315
- onChange: C,
15322
+ onChange: v,
15316
15323
  "data-testid": u,
15317
15324
  menuSize: B.xs,
15318
15325
  size: B.large,
@@ -15908,23 +15915,23 @@ const K8 = {
15908
15915
  rootClassName: p = "",
15909
15916
  showCardBorder: _ = !1
15910
15917
  }) => {
15911
- const { appId: g } = rs(), [x, b] = R(c || []), [E, C] = R(u || 0), [v, S] = R(
15918
+ const { appId: g } = rs(), [x, b] = R(c || []), [E, v] = R(u || 0), [C, S] = R(
15912
15919
  f || structuredClone(WL)
15913
- ), w = ie(new AbortController()), A = (F) => {
15920
+ ), T = ie(new AbortController()), A = (F) => {
15914
15921
  b(F), d?.(F);
15915
15922
  }, y = (F) => {
15916
- C(F), h?.(F);
15917
- }, T = (F) => {
15923
+ v(F), h?.(F);
15924
+ }, w = (F) => {
15918
15925
  S(F), m?.(F);
15919
- }, { searchKey: k, selectedTags: N } = v || {}, I = () => T0(
15926
+ }, { searchKey: k, selectedTags: N } = C || {}, I = () => T0(
15920
15927
  () => Jb({
15921
15928
  searchKey: k,
15922
15929
  selectedTags: N,
15923
15930
  offset: 0,
15924
15931
  appId: g ? +g : null,
15925
- signal: w.current.signal
15932
+ signal: T.current.signal
15926
15933
  }),
15927
- w
15934
+ T
15928
15935
  ), [O, D, V, $] = Bs(
15929
15936
  I,
15930
15937
  // In case of persistFilters with change of searchKey or selectedTags we anyways clear the pluginList so no need to add dependency
@@ -15961,23 +15968,23 @@ const K8 = {
15961
15968
  const Q = () => {
15962
15969
  l && A([]);
15963
15970
  }, q = () => {
15964
- T({
15971
+ w({
15965
15972
  searchKey: "",
15966
15973
  selectedTags: []
15967
15974
  }), Q();
15968
15975
  }, Se = (F) => {
15969
- T({
15970
- ...v,
15976
+ w({
15977
+ ...C,
15971
15978
  searchKey: F
15972
15979
  }), Q();
15973
15980
  }, Ee = (F) => {
15974
- T({
15975
- ...v,
15981
+ w({
15982
+ ...C,
15976
15983
  selectedTags: F
15977
15984
  }), Q();
15978
15985
  }, je = (F) => {
15979
- T({
15980
- ...v,
15986
+ w({
15987
+ ...C,
15981
15988
  selectedTags: F.selectedTags
15982
15989
  }), Q();
15983
15990
  }, U = (F) => {
@@ -16039,13 +16046,13 @@ const K8 = {
16039
16046
  pluginList: x,
16040
16047
  totalCount: E,
16041
16048
  handleDataUpdateForPluginResponse: We,
16042
- filters: v,
16049
+ filters: C,
16043
16050
  handlePluginSelection: U,
16044
16051
  selectedPluginsMap: o,
16045
16052
  isSelectable: r,
16046
16053
  handleClearFilters: q,
16047
16054
  showCardBorder: _,
16048
- getPluginStoreRef: w
16055
+ getPluginStoreRef: T
16049
16056
  }
16050
16057
  )
16051
16058
  }
@@ -16079,7 +16086,7 @@ const K8 = {
16079
16086
  validateDuplicateKeys: m = !1,
16080
16087
  validateEmptyKeys: p = !1
16081
16088
  }) => {
16082
- const { headers: _, rows: g } = t, x = _[0].key, b = _[1].key, [E, C] = R(g), [v, S] = R(!1), w = c || l, A = !c && !l || !!E.length, y = !E[0]?.data[x].value && !E[0]?.data[b].value, T = 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, 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({
16083
16090
  initialSortKey: s ? x : null
16084
16091
  }), O = ie(), D = ie();
16085
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() }), {}));
@@ -16136,7 +16143,7 @@ const K8 = {
16136
16143
  };
16137
16144
  }, ee = () => {
16138
16145
  const U = Y(), F = [U, ...E], { id: J } = U;
16139
- f?.(!G(F)), S(!0), C(F), O.current = {
16146
+ f?.(!G(F)), S(!0), v(F), O.current = {
16140
16147
  ...O.current || {},
16141
16148
  [J]: On()
16142
16149
  }, D.current = {
@@ -16145,9 +16152,9 @@ const K8 = {
16145
16152
  };
16146
16153
  };
16147
16154
  P(() => {
16148
- !w && !E.length && ee();
16155
+ !T && !E.length && ee();
16149
16156
  }, []), P(() => {
16150
- s && C((U) => {
16157
+ s && v((U) => {
16151
16158
  const F = structuredClone(U);
16152
16159
  return F.sort(
16153
16160
  (J, _e) => wt(J.data[k].value, _e.data[k].value, N)
@@ -16155,24 +16162,24 @@ const K8 = {
16155
16162
  });
16156
16163
  }, [N]), P(() => {
16157
16164
  const U = E[0];
16158
- if (U && v) {
16165
+ if (U && C) {
16159
16166
  S(!1);
16160
16167
  const F = O.current[U.id].current && D.current[U.id].current;
16161
16168
  !U.data[x].value && F && D.current[U.id].current.focus(), !U.data[b].value && F && O.current[U.id].current.focus();
16162
16169
  }
16163
- }, [v]);
16170
+ }, [C]);
16164
16171
  const ue = () => I(k), We = (U) => () => {
16165
16172
  const F = E.filter(({ id: J }) => J !== U.id);
16166
16173
  if (F.length === 0 && !l) {
16167
16174
  const J = Y(), { id: _e } = J;
16168
- S(!0), f?.(!G([J])), C([J]), O.current = {
16175
+ S(!0), f?.(!G([J])), v([J]), O.current = {
16169
16176
  [_e]: On()
16170
16177
  }, D.current = {
16171
16178
  [_e]: On()
16172
16179
  }, r?.(U.id);
16173
16180
  return;
16174
16181
  }
16175
- f?.(!G(F)), C(F), delete O.current[U.id], delete D.current[U.id], r?.(U.id);
16182
+ f?.(!G(F)), v(F), delete O.current[U.id], delete D.current[U.id], r?.(U.id);
16176
16183
  }, Q = (U, F) => (J) => {
16177
16184
  const { value: _e } = J.target, he = {
16178
16185
  ...U,
@@ -16184,14 +16191,14 @@ const K8 = {
16184
16191
  }
16185
16192
  }
16186
16193
  }, ke = E.map((oe) => oe.id === U.id ? he : oe);
16187
- f?.(!G(ke)), C(ke);
16194
+ f?.(!G(ke)), v(ke);
16188
16195
  }, q = (U, F) => (J) => {
16189
16196
  const { value: _e } = J.target;
16190
16197
  i?.(U.id, F, _e), f?.(!G(E));
16191
16198
  }, Se = (U, F, J) => /* @__PURE__ */ a.jsxs(
16192
16199
  "div",
16193
16200
  {
16194
- className: `bg__secondary py-8 px-12 flexbox dc__content-space dc__align-items-center ${E.length || !w ? "dc__top-left-radius" : "dc__left-radius-4"} ${J || ""}`,
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 || ""}`,
16195
16202
  children: [
16196
16203
  s ? /* @__PURE__ */ a.jsxs(
16197
16204
  "button",
@@ -16226,8 +16233,8 @@ const K8 = {
16226
16233
  "button",
16227
16234
  {
16228
16235
  type: "button",
16229
- className: `dc__transparent p-0 flex dc__gap-4 ${w ? "dc__disabled" : ""}`,
16230
- disabled: w,
16236
+ className: `dc__transparent p-0 flex dc__gap-4 ${T ? "dc__disabled" : ""}`,
16237
+ disabled: T,
16231
16238
  onClick: ee,
16232
16239
  children: [
16233
16240
  /* @__PURE__ */ a.jsx(ed, { className: "icon-dim-12 fcb-5 dc__no-shrink" }),
@@ -16296,9 +16303,9 @@ const K8 = {
16296
16303
  "button",
16297
16304
  {
16298
16305
  type: "button",
16299
- 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 ${T ? "dc__disabled" : ""}`,
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" : ""}`,
16300
16307
  onClick: We(U),
16301
- disabled: T,
16308
+ disabled: w,
16302
16309
  children: /* @__PURE__ */ a.jsx(
16303
16310
  Sn,
16304
16311
  {
@@ -16366,7 +16373,7 @@ const K8 = {
16366
16373
  alignActiveBorderWithContainer: l
16367
16374
  })[r], E = (S) => {
16368
16375
  (n || S.currentTarget.classList.contains("active") || s === "navLink" && f) && S.preventDefault(), e?.onClick?.(S);
16369
- }, C = () => {
16376
+ }, v = () => {
16370
16377
  const S = /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
16371
16378
  /* @__PURE__ */ a.jsxs("p", { className: "m-0 flexbox dc__align-items-center dc__gap-6", children: [
16372
16379
  lD({ className: x, icon: i, showError: u, showWarning: h }),
@@ -16421,14 +16428,14 @@ const K8 = {
16421
16428
  }
16422
16429
  );
16423
16430
  }
16424
- }, v = () => /* @__PURE__ */ a.jsx(
16431
+ }, C = () => /* @__PURE__ */ a.jsx(
16425
16432
  "li",
16426
16433
  {
16427
16434
  className: `tab-group__tab lh-20 ${n ? "tab-group__tab--active cb-5 fw-6" : "cn-9 fw-4"} ${l ? "tab-group__tab--align-active-border" : ""} ${s === "block" ? "tab-group__tab--block" : ""} ${f ? "dc__disabled" : "cursor"}`,
16428
- children: C()
16435
+ children: v()
16429
16436
  }
16430
16437
  );
16431
- return p ? /* @__PURE__ */ a.jsx(Ae, { ..._, children: v() }) : v();
16438
+ return p ? /* @__PURE__ */ a.jsx(Ae, { ..._, children: C() }) : C();
16432
16439
  }, Z8 = ({
16433
16440
  tabs: t = [],
16434
16441
  size: e = B.large,
@@ -16470,13 +16477,13 @@ const K8 = {
16470
16477
  onBlur: x,
16471
16478
  readOnly: b = !1,
16472
16479
  noTrim: E = !1,
16473
- onKeyPress: C,
16474
- defaultValue: v,
16480
+ onKeyPress: v,
16481
+ defaultValue: C,
16475
16482
  onKeyDown: S,
16476
- required: w,
16483
+ required: T,
16477
16484
  additionalErrorInfo: A,
16478
16485
  inputWrapClassName: y = "",
16479
- inputProps: T = {}
16486
+ inputProps: w = {}
16480
16487
  }) => {
16481
16488
  const k = ie();
16482
16489
  P(() => {
@@ -16519,11 +16526,11 @@ const K8 = {
16519
16526
  tabIndex: u,
16520
16527
  autoFocus: m,
16521
16528
  readOnly: b,
16522
- onKeyPress: C,
16523
- defaultValue: v,
16529
+ onKeyPress: v,
16530
+ defaultValue: C,
16524
16531
  onKeyDown: S,
16525
- required: w,
16526
- ...T,
16532
+ required: T,
16533
+ ...w,
16527
16534
  ref: k
16528
16535
  }
16529
16536
  ),
@@ -16561,19 +16568,19 @@ const K8 = {
16561
16568
  }, x = (y) => {
16562
16569
  d(y);
16563
16570
  }, b = (y) => {
16564
- const T = y ?? c;
16565
- x(T), i(T), s(""), h(!1), m(!1), _("");
16571
+ const w = y ?? c;
16572
+ x(w), i(w), s(""), h(!1), m(!1), _("");
16566
16573
  }, E = () => {
16567
16574
  b(n);
16568
- }, C = () => {
16575
+ }, v = () => {
16569
16576
  b();
16570
- }, v = (y) => {
16571
- const { value: T } = y.target;
16572
- if (i(T), !T.trim()) {
16577
+ }, C = (y) => {
16578
+ const { value: w } = y.target;
16579
+ if (i(w), !w.trim()) {
16573
16580
  s("");
16574
16581
  return;
16575
16582
  }
16576
- _(""), s(tb(T, !1).message);
16583
+ _(""), s(tb(w, !1).message);
16577
16584
  }, S = async () => {
16578
16585
  if (!n) {
16579
16586
  _(gg), Ze.showToast({
@@ -16594,10 +16601,10 @@ const K8 = {
16594
16601
  const y = await fetch(n, { mode: "cors" });
16595
16602
  if (!y.ok)
16596
16603
  throw new Error("Invalid network response");
16597
- const T = await y.blob();
16598
- if (T.size > pg)
16604
+ const w = await y.blob();
16605
+ if (w.size > pg)
16599
16606
  throw new Error(`Please add an image smaller than ${pg / (1024 * 1024)} MB`);
16600
- const k = URL.createObjectURL(T), N = await rO(k);
16607
+ const k = URL.createObjectURL(w), N = await rO(k);
16601
16608
  if (URL.revokeObjectURL(k), !N.isValid)
16602
16609
  throw new Error(N.message);
16603
16610
  E();
@@ -16606,9 +16613,9 @@ const K8 = {
16606
16613
  } finally {
16607
16614
  m(!1);
16608
16615
  }
16609
- }, w = async (y) => {
16616
+ }, T = async (y) => {
16610
16617
  y.key === "Enter" && (y.preventDefault(), await S());
16611
- }, A = (y, T) => /* @__PURE__ */ a.jsx(
16618
+ }, A = (y, w) => /* @__PURE__ */ a.jsx(
16612
16619
  Pf,
16613
16620
  {
16614
16621
  imageProps: {
@@ -16616,7 +16623,7 @@ const K8 = {
16616
16623
  src: c,
16617
16624
  height: tc.height,
16618
16625
  width: tc.width,
16619
- className: `br-4 dc__no-shrink ${T || ""}`
16626
+ className: `br-4 dc__no-shrink ${w || ""}`
16620
16627
  },
16621
16628
  fallbackImage: /* @__PURE__ */ a.jsx(fD, { defaultIcon: t, showEditIcon: y })
16622
16629
  }
@@ -16632,11 +16639,11 @@ const K8 = {
16632
16639
  labelClassName: "m-0 fs-13 fw-4 lh-20 cn-7",
16633
16640
  placeholder: "Enter image url",
16634
16641
  value: n,
16635
- onChange: v,
16642
+ onChange: C,
16636
16643
  error: e || p,
16637
16644
  inputWrapClassName: "w-100",
16638
16645
  dataTestid: `${o}-input`,
16639
- onKeyDown: w,
16646
+ onKeyDown: T,
16640
16647
  autoFocus: !0
16641
16648
  }
16642
16649
  ) }),
@@ -16660,7 +16667,7 @@ const K8 = {
16660
16667
  "data-testid": `${o}-cancel`,
16661
16668
  type: "button",
16662
16669
  disabled: f,
16663
- onClick: C,
16670
+ onClick: v,
16664
16671
  children: "Cancel"
16665
16672
  }
16666
16673
  )
@@ -16764,12 +16771,12 @@ const md = ({
16764
16771
  t,
16765
16772
  c,
16766
16773
  o || i
16767
- ), p = md({ headers: t, actionButtonConfig: c }) === 0 && c.position !== "end", _ = (x) => () => s?.handleSorting(x), g = ({ key: x, label: b, isSortable: E, renderAdditionalContent: C }) => {
16768
- const v = !h && x === d;
16774
+ ), p = md({ headers: t, actionButtonConfig: c }) === 0 && c.position !== "end", _ = (x) => () => s?.handleSorting(x), g = ({ key: x, label: b, isSortable: E, renderAdditionalContent: v }) => {
16775
+ const C = !h && x === d;
16769
16776
  return /* @__PURE__ */ a.jsxs(
16770
16777
  "div",
16771
16778
  {
16772
- className: `bg__secondary ${v ? "py-6" : "py-8"} px-8 flexbox dc__content-space dc__align-items-center ${!p && (x === d ? `${f || !h ? "dc__top-left-radius" : "dc__left-radius-4"}` : "") || ""} ${x === u ? `${f || !h ? "dc__top-right-radius-4" : "dc__right-radius-4"}` : ""}`,
16779
+ className: `bg__secondary ${C ? "py-6" : "py-8"} px-8 flexbox dc__content-space dc__align-items-center ${!p && (x === d ? `${f || !h ? "dc__top-left-radius" : "dc__left-radius-4"}` : "") || ""} ${x === u ? `${f || !h ? "dc__top-right-radius-4" : "dc__right-radius-4"}` : ""}`,
16773
16780
  children: [
16774
16781
  E ? /* @__PURE__ */ a.jsxs(
16775
16782
  "button",
@@ -16788,7 +16795,7 @@ const md = ({
16788
16795
  }
16789
16796
  }
16790
16797
  ),
16791
- typeof C == "function" && C()
16798
+ typeof v == "function" && v()
16792
16799
  ]
16793
16800
  }
16794
16801
  ) : /* @__PURE__ */ a.jsxs(
@@ -16797,11 +16804,11 @@ const md = ({
16797
16804
  className: `cn-7 fs-12 lh-20 fw-6 flexbox dc__align-items-center dc__content-space dc__gap-4 ${f ? "dc__top-left-radius" : "dc__left-radius-4"}`,
16798
16805
  children: [
16799
16806
  b,
16800
- typeof C == "function" && C()
16807
+ typeof v == "function" && v()
16801
16808
  ]
16802
16809
  }
16803
16810
  ),
16804
- v && /* @__PURE__ */ a.jsx(
16811
+ C && /* @__PURE__ */ a.jsx(
16805
16812
  ge,
16806
16813
  {
16807
16814
  dataTestId: "data-table-add-row-button",
@@ -16933,8 +16940,8 @@ const Dt = ({
16933
16940
  typeof e == "function" && e(!!r);
16934
16941
  }, [r]), P(() => {
16935
16942
  if (u?.current && n && r) {
16936
- const { height: b, x: E, y: C } = u.current.getBoundingClientRect();
16937
- o({ left: E, top: C + b });
16943
+ const { height: b, x: E, y: v } = u.current.getBoundingClientRect();
16944
+ o({ left: E, top: v + b });
16938
16945
  }
16939
16946
  }, [u?.current?.clientHeight]);
16940
16947
  let f = {
@@ -16944,11 +16951,11 @@ const Dt = ({
16944
16951
  };
16945
16952
  if (!t) return t;
16946
16953
  function m(b, E) {
16947
- b.forEach((C) => {
16948
- if (C.isIntersecting && C.intersectionRatio >= 1)
16954
+ b.forEach((v) => {
16955
+ if (v.isIntersecting && v.intersectionRatio >= 1)
16949
16956
  c(1);
16950
16957
  else {
16951
- const { boundingClientRect: v, rootBounds: S } = C, { x: w, y: A, height: y, width: T } = v, {
16958
+ const { boundingClientRect: C, rootBounds: S } = v, { x: T, y: A, height: y, width: w } = C, {
16952
16959
  x: k,
16953
16960
  y: N,
16954
16961
  height: I,
@@ -16958,14 +16965,14 @@ const Dt = ({
16958
16965
  top: $,
16959
16966
  bottom: G
16960
16967
  } = u.current.getBoundingClientRect();
16961
- A + y > S.height && (o({ left: k, bottom: document.documentElement.clientHeight - N }), c(1)), w + T > S.width && (o((Y) => ({ ...Y, right: "20px", left: "unset" })), c(1));
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));
16962
16969
  }
16963
16970
  });
16964
16971
  }
16965
16972
  const p = (b) => {
16966
16973
  b.stopPropagation(), i && b.preventDefault(), c(0);
16967
- const { height: E, x: C, y: v } = b.currentTarget.getBoundingClientRect();
16968
- o({ left: C, top: v + E });
16974
+ const { height: E, x: v, y: C } = b.currentTarget.getBoundingClientRect();
16975
+ o({ left: v, top: C + E });
16969
16976
  }, _ = (b, E) => {
16970
16977
  s || E === "out" ? (d && d.current && d.current.disconnect && d.current.disconnect(), c(0), o(null)) : b.stopPropagation();
16971
16978
  };
@@ -16975,7 +16982,7 @@ const Dt = ({
16975
16982
  function x(b) {
16976
16983
  if (!b) return;
16977
16984
  u.current = b;
16978
- const { bottom: E, height: C, left: v, right: S, top: w, width: A, x: y, y: T } = b.getBoundingClientRect();
16985
+ const { bottom: E, height: v, left: C, right: S, top: T, width: A, x: y, y: w } = b.getBoundingClientRect();
16979
16986
  h.current = A;
16980
16987
  }
16981
16988
  return /* @__PURE__ */ a.jsx(
@@ -17068,8 +17075,8 @@ const Yf = ({
17068
17075
  const f = (x) => {
17069
17076
  const b = o?.current;
17070
17077
  b && (b.style.height = `${x}px`), Object.values(l || {}).forEach((E) => {
17071
- const C = E?.current;
17072
- C && (C.style.height = `${x}px`);
17078
+ const v = E?.current;
17079
+ v && (v.style.height = `${x}px`);
17073
17080
  });
17074
17081
  }, m = (x) => {
17075
17082
  const b = r?.current;
@@ -17143,39 +17150,39 @@ const _g = ({
17143
17150
  }, x = (y) => {
17144
17151
  if (!y.relatedTarget || !y.relatedTarget.classList.value || !y.relatedTarget.classList.value.includes(`tag-${t}-class`)) {
17145
17152
  p("");
17146
- const T = { ...e };
17147
- T[r] = h, r === dn.KEY ? T.isInvalidKey = h || T.propagate ? !_.propagateTagKey(h).isValid : T.value !== "" : h || i || T.propagate ? (T.isInvalidValue = !_.propagateTagValue(h, T.key).isValid, T.isInvalidKey = !T.key || T.isInvalidKey) : (T.isInvalidValue = !1, T.isInvalidKey = T.key ? T.isInvalidKey : !1), s(t, T);
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);
17148
17155
  }
17149
17156
  }, b = (y) => {
17150
17157
  f(y.target.value);
17151
17158
  }, E = (y) => {
17152
17159
  Oe(y);
17153
- const T = { ...e };
17154
- T[r] = y.currentTarget.dataset.key, T.propagate = y.currentTarget.dataset.propagate === "true", s(t, T), p("");
17155
- }, C = () => {
17160
+ const w = { ...e };
17161
+ w[r] = y.currentTarget.dataset.key, w.propagate = y.currentTarget.dataset.propagate === "true", s(t, w), p("");
17162
+ }, v = () => {
17156
17163
  let y = { isValid: !0, messages: [] };
17157
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: [
17158
- y.messages.map((T) => /* @__PURE__ */ a.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
17165
+ y.messages.map((w) => /* @__PURE__ */ a.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
17159
17166
  /* @__PURE__ */ a.jsx("span", { children: /* @__PURE__ */ a.jsx(Sn, { className: "icon-dim-14 scr-5 mt-3 mr-4" }) }),
17160
- /* @__PURE__ */ a.jsx("span", { children: T })
17161
- ] }, T)),
17167
+ /* @__PURE__ */ a.jsx("span", { children: w })
17168
+ ] }, w)),
17162
17169
  r === dn.KEY && /* @__PURE__ */ a.jsxs("div", { className: "flexbox pr-4 pl-4", children: [
17163
17170
  /* @__PURE__ */ a.jsx("span", { children: /* @__PURE__ */ a.jsx(fr, { className: "icon-dim-14 mt-3 mr-4" }) }),
17164
17171
  /* @__PURE__ */ a.jsx("span", { className: "dc__italic-font-style", children: "Key format: prefix/name or name" })
17165
17172
  ] })
17166
17173
  ] });
17167
- }, v = (y, T) => /* @__PURE__ */ a.jsx(
17174
+ }, C = (y, w) => /* @__PURE__ */ a.jsx(
17168
17175
  "div",
17169
17176
  {
17170
17177
  "data-key": y.label,
17171
17178
  "data-propagate": y.propagate,
17172
17179
  className: "dc__hover-n50 dc__ellipsis-right lh-20 fs-13 fw-4 pt-6 pr-8 pb-6 pl-8 cursor",
17173
17180
  onClick: E,
17174
- "data-testid": `tag-label-value-${T}`,
17181
+ "data-testid": `tag-label-value-${w}`,
17175
17182
  children: y.label
17176
17183
  },
17177
- `${y.value}-${T}`
17178
- ), S = (y, T) => /* @__PURE__ */ a.jsx(
17184
+ `${y.value}-${w}`
17185
+ ), S = (y, w) => /* @__PURE__ */ a.jsx(
17179
17186
  fe,
17180
17187
  {
17181
17188
  className: "default-tt",
@@ -17185,18 +17192,18 @@ const _g = ({
17185
17192
  /* @__PURE__ */ a.jsx("div", { className: "mb-10 fs-12 fw-6 dc__break-word", children: y.label }),
17186
17193
  /* @__PURE__ */ a.jsx("div", { className: "fs-12 fw-4 dc__break-word", children: y.description })
17187
17194
  ] }),
17188
- children: v(y, T)
17195
+ children: C(y, w)
17189
17196
  }
17190
- ), w = () => {
17197
+ ), T = () => {
17191
17198
  if (n?.length) {
17192
- const y = n.filter((T) => T.label.indexOf(h) >= 0);
17199
+ const y = n.filter((w) => w.label.indexOf(h) >= 0);
17193
17200
  if (y.length)
17194
17201
  return /* @__PURE__ */ a.jsx("div", { children: y.map(
17195
- (T, k) => T.description ? S(T, k) : v(T, k)
17202
+ (w, k) => w.description ? S(w, k) : C(w, k)
17196
17203
  ) });
17197
17204
  }
17198
- return C();
17199
- }, A = m === `tag-${r}-${t}` ? w() : null;
17205
+ return v();
17206
+ }, A = m === `tag-${r}-${t}` ? T() : null;
17200
17207
  return /* @__PURE__ */ a.jsxs(Dt, { autoClose: !0, autoPosition: !0, children: [
17201
17208
  /* @__PURE__ */ a.jsx(Dt.Button, { rootClassName: "bg__secondary flex top dc__no-border-imp", children: /* @__PURE__ */ a.jsx(
17202
17209
  Yf,
@@ -17392,7 +17399,7 @@ const AD = (t) => {
17392
17399
  N && (N.focus(), x(!1));
17393
17400
  }
17394
17401
  }, [g]);
17395
- const C = (N, I) => (O) => {
17402
+ const v = (N, I) => (O) => {
17396
17403
  let D = "";
17397
17404
  const V = { selectedValue: null, files: [] };
17398
17405
  switch (N.data[I].type) {
@@ -17409,7 +17416,7 @@ const AD = (t) => {
17409
17416
  break;
17410
17417
  }
17411
17418
  o(N, I, D, V);
17412
- }, v = (N) => () => {
17419
+ }, C = (N) => () => {
17413
17420
  l(N);
17414
17421
  }, S = (N, I) => {
17415
17422
  const O = s || N.data[I].disabled;
@@ -17427,7 +17434,7 @@ const AD = (t) => {
17427
17434
  N.data[I].value,
17428
17435
  null
17429
17436
  ),
17430
- onChange: C(N, I),
17437
+ onChange: v(N, I),
17431
17438
  isDisabled: O,
17432
17439
  fullWidth: !0
17433
17440
  }
@@ -17450,7 +17457,7 @@ const AD = (t) => {
17450
17457
  D,
17451
17458
  $ && D ? { label: D, value: D } : null
17452
17459
  ),
17453
- onChange: C(N, I),
17460
+ onChange: v(N, I),
17454
17461
  isDisabled: O,
17455
17462
  formatCreateLabel: (G) => `Use ${G}`,
17456
17463
  refVar: b?.current?.[N.id]?.[I],
@@ -17488,7 +17495,7 @@ const AD = (t) => {
17488
17495
  {
17489
17496
  ...N.data[I].props,
17490
17497
  fileName: N.data[I].value,
17491
- onUpload: C(N, I)
17498
+ onUpload: v(N, I)
17492
17499
  }
17493
17500
  )
17494
17501
  }
@@ -17503,7 +17510,7 @@ const AD = (t) => {
17503
17510
  minHeight: 20,
17504
17511
  maxHeight: 160,
17505
17512
  value: N.data[I].value,
17506
- onChange: C(N, I),
17513
+ onChange: v(N, I),
17507
17514
  disabled: O,
17508
17515
  refVar: b?.current?.[N.id]?.[I],
17509
17516
  dependentRefs: b?.current?.[N.id],
@@ -17511,7 +17518,7 @@ const AD = (t) => {
17511
17518
  }
17512
17519
  );
17513
17520
  }
17514
- }, w = (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: "*" }), A = (N, I, O) => {
17515
17522
  const D = O ? c : d;
17516
17523
  return D?.[I]?.(N) ? /* @__PURE__ */ a.jsx(
17517
17524
  "div",
@@ -17523,7 +17530,7 @@ const AD = (t) => {
17523
17530
  }, y = (N) => /* @__PURE__ */ a.jsxs("div", { className: "flexbox align-items-center dc__gap-4", children: [
17524
17531
  /* @__PURE__ */ a.jsx(Ct, { className: "icon-dim-16 fcr-5 dc__align-self-start dc__no-shrink" }),
17525
17532
  /* @__PURE__ */ a.jsx("p", { className: "fs-12 lh-16 cn-7 m-0", children: N })
17526
- ] }, N), T = (N, I) => {
17533
+ ] }, N), w = (N, I) => {
17527
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;
17528
17535
  return O ? null : /* @__PURE__ */ a.jsx(
17529
17536
  "div",
@@ -17548,9 +17555,9 @@ const AD = (t) => {
17548
17555
  children: [
17549
17556
  A(N, I, !0),
17550
17557
  S(N, I),
17551
- w(N, I),
17558
+ T(N, I),
17552
17559
  A(N, I),
17553
- T(N, I)
17560
+ w(N, I)
17554
17561
  ]
17555
17562
  }
17556
17563
  )
@@ -17591,7 +17598,7 @@ const AD = (t) => {
17591
17598
  showAriaLabelInTippy: !1,
17592
17599
  icon: /* @__PURE__ */ a.jsx(Ct, {}),
17593
17600
  disabled: p || N.disableDelete,
17594
- onClick: v(N),
17601
+ onClick: C(N),
17595
17602
  variant: Te.borderLess,
17596
17603
  style: De.negativeGrey,
17597
17604
  size: B.small
@@ -20498,12 +20505,12 @@ function tj(t, e, s, n, i, r, o, l) {
20498
20505
  else {
20499
20506
  let b = 0, E = 0;
20500
20507
  if (x) {
20501
- let C = u.scrollTop;
20502
- u.scrollTop += x / _, E = (u.scrollTop - C) * _;
20508
+ let v = u.scrollTop;
20509
+ u.scrollTop += x / _, E = (u.scrollTop - v) * _;
20503
20510
  }
20504
20511
  if (g) {
20505
- let C = u.scrollLeft;
20506
- u.scrollLeft += g / p, b = (u.scrollLeft - C) * p;
20512
+ let v = u.scrollLeft;
20513
+ u.scrollLeft += g / p, b = (u.scrollLeft - v) * p;
20507
20514
  }
20508
20515
  e = {
20509
20516
  left: e.left - b,
@@ -22238,10 +22245,10 @@ class Lg extends Ue {
22238
22245
  break;
22239
22246
  let { fromA: c, toA: d, fromB: u, toB: h } = l, f, m, p, _;
22240
22247
  if (n && n.range.fromB < h && n.range.toB > u) {
22241
- let C = yo.build(this.view.state.doc, u, n.range.fromB, this.decorations, this.dynamicDecorationMap), v = yo.build(this.view.state.doc, n.range.toB, h, this.decorations, this.dynamicDecorationMap);
22242
- m = C.breakAtStart, p = C.openStart, _ = v.openEnd;
22248
+ let v = yo.build(this.view.state.doc, u, n.range.fromB, this.decorations, this.dynamicDecorationMap), C = yo.build(this.view.state.doc, n.range.toB, h, this.decorations, this.dynamicDecorationMap);
22249
+ m = v.breakAtStart, p = v.openStart, _ = C.openEnd;
22243
22250
  let S = this.compositionView(n);
22244
- v.breakAtStart ? S.breakAfter = 1 : v.content.length && S.merge(S.length, S.length, v.content[0], !1, v.openStart, 0) && (S.breakAfter = v.content[0].breakAfter, v.content.shift()), C.content.length && S.merge(0, 0, C.content[C.content.length - 1], !0, 0, C.openEnd) && C.content.pop(), f = C.content.concat(S).concat(v.content);
22251
+ C.breakAtStart ? S.breakAfter = 1 : C.content.length && S.merge(S.length, S.length, C.content[0], !1, C.openStart, 0) && (S.breakAfter = C.content[0].breakAfter, C.content.shift()), v.content.length && S.merge(0, 0, v.content[v.content.length - 1], !0, 0, v.openEnd) && v.content.pop(), f = v.content.concat(S).concat(C.content);
22245
22252
  } else
22246
22253
  ({ content: f, breakAtStart: m, openStart: p, openEnd: _ } = yo.build(this.view.state.doc, u, h, this.decorations, this.dynamicDecorationMap));
22247
22254
  let { i: g, off: x } = r.findPos(d, 1), { i: b, off: E } = r.findPos(c, -1);
@@ -22662,8 +22669,8 @@ function Nh(t, e, s) {
22662
22669
  return p.nodeType == 3 ? Pg(p, e, s) : Nh(p, e, s);
22663
22670
  if (!n || o > E || o == E && r > b) {
22664
22671
  n = p, i = x, r = b, o = E;
22665
- let C = E ? s < x.top ? -1 : 1 : b ? e < x.left ? -1 : 1 : 0;
22666
- l = !C || (C > 0 ? g < _.length - 1 : g > 0);
22672
+ let v = E ? s < x.top ? -1 : 1 : b ? e < x.left ? -1 : 1 : 0;
22673
+ l = !v || (v > 0 ? g < _.length - 1 : g > 0);
22667
22674
  }
22668
22675
  b == 0 ? s > x.bottom && (!u || u.bottom < x.bottom) ? (c = p, u = x) : s < x.top && (!h || h.top > x.top) && (d = p, h = x) : u && tu(u, x) ? u = jg(u, x.bottom) : h && tu(h, x) && (h = Dg(h, x.top));
22669
22676
  }
@@ -22705,11 +22712,11 @@ function QE(t, e, s, n = -1) {
22705
22712
  return 0;
22706
22713
  if (f > d)
22707
22714
  return t.state.doc.length;
22708
- for (let C = t.viewState.heightOracle.textHeight / 2, v = !1; c = t.elementAtHeight(f), c.type != Gt.Text; )
22709
- for (; f = n > 0 ? c.bottom + C : c.top - C, !(f >= 0 && f <= d); ) {
22710
- if (v)
22715
+ for (let v = t.viewState.heightOracle.textHeight / 2, C = !1; c = t.elementAtHeight(f), c.type != Gt.Text; )
22716
+ for (; f = n > 0 ? c.bottom + v : c.top - v, !(f >= 0 && f <= d); ) {
22717
+ if (C)
22711
22718
  return s ? null : 0;
22712
- v = !0, n = -n;
22719
+ C = !0, n = -n;
22713
22720
  }
22714
22721
  h = l + f;
22715
22722
  let m = c.from;
@@ -22722,26 +22729,26 @@ function QE(t, e, s, n = -1) {
22722
22729
  let x, b = -1;
22723
22730
  if (g && ((i = t.docView.nearest(g)) === null || i === void 0 ? void 0 : i.isEditable) != !1) {
22724
22731
  if (p.caretPositionFromPoint) {
22725
- let C = p.caretPositionFromPoint(u, h);
22726
- C && ({ offsetNode: x, offset: b } = C);
22732
+ let v = p.caretPositionFromPoint(u, h);
22733
+ v && ({ offsetNode: x, offset: b } = v);
22727
22734
  } else if (p.caretRangeFromPoint) {
22728
- let C = p.caretRangeFromPoint(u, h);
22729
- C && ({ startContainer: x, startOffset: b } = C, (!t.contentDOM.contains(x) || K.safari && Rj(x, b, u) || K.chrome && kj(x, b, u)) && (x = void 0));
22735
+ let v = p.caretRangeFromPoint(u, h);
22736
+ v && ({ startContainer: x, startOffset: b } = v, (!t.contentDOM.contains(x) || K.safari && Rj(x, b, u) || K.chrome && kj(x, b, u)) && (x = void 0));
22730
22737
  }
22731
22738
  x && (b = Math.min(nn(x), b));
22732
22739
  }
22733
22740
  if (!x || !t.docView.dom.contains(x)) {
22734
- let C = ft.find(t.docView, m);
22735
- if (!C)
22741
+ let v = ft.find(t.docView, m);
22742
+ if (!v)
22736
22743
  return f > c.top + c.height / 2 ? c.to : c.from;
22737
- ({ node: x, offset: b } = Nh(C.dom, u, h));
22744
+ ({ node: x, offset: b } = Nh(v.dom, u, h));
22738
22745
  }
22739
22746
  let E = t.docView.nearest(x);
22740
22747
  if (!E)
22741
22748
  return null;
22742
22749
  if (E.isWidget && ((r = E.dom) === null || r === void 0 ? void 0 : r.nodeType) == 1) {
22743
- let C = E.dom.getBoundingClientRect();
22744
- return e.y < C.top || e.y <= C.bottom && e.x <= (C.left + C.right) / 2 ? E.posAtStart : E.posAtEnd;
22750
+ let v = E.dom.getBoundingClientRect();
22751
+ return e.y < v.top || e.y <= v.bottom && e.x <= (v.left + v.right) / 2 ? E.posAtStart : E.posAtEnd;
22745
22752
  } else
22746
22753
  return E.localPosFromDOM(x, b) + E.posAtStart;
22747
22754
  }
@@ -24127,8 +24134,8 @@ class Zg {
24127
24134
  this.contentDOMHeight = l.height, this.mustMeasureContent = !1;
24128
24135
  let d = 0, u = 0;
24129
24136
  if (l.width && l.height) {
24130
- let { scaleX: C, scaleY: v } = xE(s, l);
24131
- (C > 5e-3 && Math.abs(this.scaleX - C) > 5e-3 || v > 5e-3 && Math.abs(this.scaleY - v) > 5e-3) && (this.scaleX = C, this.scaleY = v, d |= 16, o = c = !0);
24137
+ let { scaleX: v, scaleY: C } = xE(s, l);
24138
+ (v > 5e-3 && Math.abs(this.scaleX - v) > 5e-3 || C > 5e-3 && Math.abs(this.scaleY - C) > 5e-3) && (this.scaleX = v, this.scaleY = C, d |= 16, o = c = !0);
24132
24139
  }
24133
24140
  let h = (parseInt(n.paddingTop) || 0) * this.scaleY, f = (parseInt(n.paddingBottom) || 0) * this.scaleY;
24134
24141
  (this.paddingTop != h || this.paddingBottom != f) && (this.paddingTop = h, this.paddingBottom = f, d |= 18), this.editorWidth != e.scrollDOM.clientWidth && (i.lineWrapping && (c = !0), this.editorWidth = e.scrollDOM.clientWidth, d |= 16);
@@ -24141,15 +24148,15 @@ class Zg {
24141
24148
  return 0;
24142
24149
  let b = l.width;
24143
24150
  if ((this.contentDOMWidth != b || this.editorHeight != e.scrollDOM.clientHeight) && (this.contentDOMWidth = l.width, this.editorHeight = e.scrollDOM.clientHeight, d |= 16), c) {
24144
- let C = e.docView.measureVisibleLineHeights(this.viewport);
24145
- if (i.mustRefreshForHeights(C) && (o = !0), o || i.lineWrapping && Math.abs(b - this.contentDOMWidth) > i.charWidth) {
24146
- let { lineHeight: v, charWidth: S, textHeight: w } = e.docView.measureTextSize();
24147
- o = v > 0 && i.refresh(r, v, S, w, b / S, C), o && (e.docView.minWidth = 0, d |= 16);
24151
+ let v = e.docView.measureVisibleLineHeights(this.viewport);
24152
+ if (i.mustRefreshForHeights(v) && (o = !0), o || i.lineWrapping && Math.abs(b - this.contentDOMWidth) > i.charWidth) {
24153
+ let { lineHeight: C, charWidth: S, textHeight: T } = e.docView.measureTextSize();
24154
+ o = C > 0 && i.refresh(r, C, S, T, b / S, v), o && (e.docView.minWidth = 0, d |= 16);
24148
24155
  }
24149
24156
  _ > 0 && g > 0 ? u = Math.max(_, g) : _ < 0 && g < 0 && (u = Math.min(_, g)), Jg();
24150
- for (let v of this.viewports) {
24151
- let S = v.from == this.viewport.from ? C : e.docView.measureVisibleLineHeights(v);
24152
- this.heightMap = (o ? Yt.empty().applyChanges(this.stateDeco, Ne.empty, this.heightOracle, [new Cs(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(i, 0, o, new aP(v.from, S));
24157
+ for (let C of this.viewports) {
24158
+ let S = C.from == this.viewport.from ? v : e.docView.measureVisibleLineHeights(C);
24159
+ this.heightMap = (o ? Yt.empty().applyChanges(this.stateDeco, Ne.empty, this.heightOracle, [new Cs(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(i, 0, o, new aP(C.from, S));
24153
24160
  }
24154
24161
  Sr && (d |= 2);
24155
24162
  }
@@ -24252,13 +24259,13 @@ class Zg {
24252
24259
  if (_ > 2e6)
24253
24260
  for (let S of e)
24254
24261
  S.from >= u.from && S.from < u.to && S.size != S.displaySize && S.from * this.heightOracle.charWidth + x < this.pixelViewport.left && (x = S.size - S.displaySize);
24255
- let b = this.pixelViewport.left + x, E = this.pixelViewport.right + x, C, v;
24262
+ let b = this.pixelViewport.left + x, E = this.pixelViewport.right + x, v, C;
24256
24263
  if (f != null) {
24257
- let S = qa(h, f), w = ((E - b) / 2 + g) / _;
24258
- C = S - w, v = S + w;
24264
+ let S = qa(h, f), T = ((E - b) / 2 + g) / _;
24265
+ v = S - T, C = S + T;
24259
24266
  } else
24260
- C = (b - g) / _, v = (E + g) / _;
24261
- m = za(h, C), p = za(h, v);
24267
+ v = (b - g) / _, C = (E + g) / _;
24268
+ m = za(h, v), p = za(h, C);
24262
24269
  }
24263
24270
  m > u.from && c(u.from, m, u, h), p < u.to && c(p, u.to, u, h);
24264
24271
  };
@@ -25888,9 +25895,9 @@ function AP(t, e = yP) {
25888
25895
  preventDefault: !0,
25889
25896
  stopPropagation: !1,
25890
25897
  run: [(E) => {
25891
- let C = kn = { view: E, prefix: b, scope: o };
25898
+ let v = kn = { view: E, prefix: b, scope: o };
25892
25899
  return setTimeout(() => {
25893
- kn == C && (kn = null);
25900
+ kn == v && (kn = null);
25894
25901
  }, wP), !0;
25895
25902
  }]
25896
25903
  });
@@ -25995,25 +26002,25 @@ function OP(t, e, s) {
25995
26002
  if (_ && (t.lineWrapping || m.widgetLineBreaks) && (_ = r_(t, n, 1, _)), g && (t.lineWrapping || p.widgetLineBreaks) && (g = r_(t, i, -1, g)), _ && g && _.from == g.from && _.to == g.to)
25996
26003
  return b(E(s.from, s.to, _));
25997
26004
  {
25998
- let v = _ ? E(s.from, null, _) : C(m, !1), S = g ? E(null, s.to, g) : C(p, !0), w = [];
25999
- return (_ || m).to < (g || p).from - (_ && g ? 1 : 0) || m.widgetLineBreaks > 1 && v.bottom + t.defaultLineHeight / 2 < S.top ? w.push(x(h, v.bottom, f, S.top)) : v.bottom < S.top && t.elementAtHeight((v.bottom + S.top) / 2).type == Gt.Text && (v.bottom = S.top = (v.bottom + S.top) / 2), b(v).concat(w).concat(b(S));
26005
+ let C = _ ? E(s.from, null, _) : v(m, !1), S = g ? E(null, s.to, g) : v(p, !0), T = [];
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));
26000
26007
  }
26001
- function x(v, S, w, A) {
26002
- return new ba(e, v - c.left, S - c.top, w - v, A - S);
26008
+ function x(C, S, T, A) {
26009
+ return new ba(e, C - c.left, S - c.top, T - C, A - S);
26003
26010
  }
26004
- function b({ top: v, bottom: S, horizontal: w }) {
26011
+ function b({ top: C, bottom: S, horizontal: T }) {
26005
26012
  let A = [];
26006
- for (let y = 0; y < w.length; y += 2)
26007
- A.push(x(w[y], v, w[y + 1], S));
26013
+ for (let y = 0; y < T.length; y += 2)
26014
+ A.push(x(T[y], C, T[y + 1], S));
26008
26015
  return A;
26009
26016
  }
26010
- function E(v, S, w) {
26011
- let A = 1e9, y = -1e9, T = [];
26017
+ function E(C, S, T) {
26018
+ let A = 1e9, y = -1e9, w = [];
26012
26019
  function k(O, D, V, $, G) {
26013
- let Y = t.coordsAtPos(O, O == w.to ? -2 : 2), ee = t.coordsAtPos(V, V == w.from ? 2 : -2);
26014
- !Y || !ee || (A = Math.min(Y.top, ee.top, A), y = Math.max(Y.bottom, ee.bottom, y), G == ze.LTR ? T.push(r && D ? h : Y.left, r && $ ? f : ee.right) : T.push(!r && $ ? h : ee.left, !r && D ? f : Y.right));
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));
26015
26022
  }
26016
- let N = v ?? w.from, I = S ?? w.to;
26023
+ let N = C ?? T.from, I = S ?? T.to;
26017
26024
  for (let O of t.visibleRanges)
26018
26025
  if (O.to > N && O.from < I)
26019
26026
  for (let D = Math.max(O.from, N), V = Math.min(O.to, I); ; ) {
@@ -26022,16 +26029,16 @@ function OP(t, e, s) {
26022
26029
  let Y = G.from + $.from, ee = G.to + $.from;
26023
26030
  if (Y >= V)
26024
26031
  break;
26025
- ee > D && k(Math.max(Y, D), v == 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, V), S == null && ee >= I, G.dir);
26026
26033
  }
26027
26034
  if (D = $.to + 1, D >= V)
26028
26035
  break;
26029
26036
  }
26030
- return T.length == 0 && k(N, v == null, I, S == null, t.textDirection), { top: A, bottom: y, horizontal: T };
26037
+ return w.length == 0 && k(N, C == null, I, S == null, t.textDirection), { top: A, bottom: y, horizontal: w };
26031
26038
  }
26032
- function C(v, S) {
26033
- let w = l.top + (S ? v.top : v.bottom);
26034
- return { top: w, bottom: w, horizontal: [] };
26039
+ function v(C, S) {
26040
+ let T = l.top + (S ? C.top : C.bottom);
26041
+ return { top: T, bottom: T, horizontal: [] };
26035
26042
  }
26036
26043
  }
26037
26044
  function IP(t, e) {
@@ -26716,25 +26723,25 @@ const ou = /* @__PURE__ */ W.define({
26716
26723
  u.style.top = qr;
26717
26724
  continue;
26718
26725
  }
26719
- let m = c.arrow ? d.dom.querySelector(".cm-tooltip-arrow") : null, p = m ? 7 : 0, _ = f.right - f.left, g = (e = d_.get(d)) !== null && e !== void 0 ? e : f.bottom - f.top, x = d.offset || sM, b = this.view.textDirection == ze.LTR, E = f.width > n.right - n.left ? b ? n.left : n.right - f.width : b ? Math.max(n.left, Math.min(h.left - (m ? 14 : 0) + x.x, n.right - _)) : Math.min(Math.max(n.left, h.left - _ + (m ? 14 : 0) - x.x), n.right - _), C = this.above[l];
26720
- !c.strictSide && (C ? h.top - g - p - x.y < n.top : h.bottom + g + p + x.y > n.bottom) && C == n.bottom - h.bottom > h.top - n.top && (C = this.above[l] = !C);
26721
- let v = (C ? h.top - n.top : n.bottom - h.bottom) - p;
26722
- if (v < g && d.resize !== !1) {
26723
- if (v < this.view.defaultLineHeight) {
26726
+ let m = c.arrow ? d.dom.querySelector(".cm-tooltip-arrow") : null, p = m ? 7 : 0, _ = f.right - f.left, g = (e = d_.get(d)) !== null && e !== void 0 ? e : f.bottom - f.top, x = d.offset || sM, b = this.view.textDirection == ze.LTR, E = f.width > n.right - n.left ? b ? n.left : n.right - f.width : b ? Math.max(n.left, Math.min(h.left - (m ? 14 : 0) + x.x, n.right - _)) : Math.min(Math.max(n.left, h.left - _ + (m ? 14 : 0) - x.x), n.right - _), v = this.above[l];
26727
+ !c.strictSide && (v ? h.top - g - p - x.y < n.top : h.bottom + g + p + x.y > n.bottom) && v == n.bottom - h.bottom > h.top - n.top && (v = this.above[l] = !v);
26728
+ let C = (v ? h.top - n.top : n.bottom - h.bottom) - p;
26729
+ if (C < g && d.resize !== !1) {
26730
+ if (C < this.view.defaultLineHeight) {
26724
26731
  u.style.top = qr;
26725
26732
  continue;
26726
26733
  }
26727
- d_.set(d, g), u.style.height = (g = v) / r + "px";
26734
+ d_.set(d, g), u.style.height = (g = C) / r + "px";
26728
26735
  } else u.style.height && (u.style.height = "");
26729
- let S = C ? h.top - g - p - x.y : h.bottom + p + x.y, w = E + _;
26736
+ let S = v ? h.top - g - p - x.y : h.bottom + p + x.y, T = E + _;
26730
26737
  if (d.overlap !== !0)
26731
26738
  for (let A of o)
26732
- A.left < w && A.right > E && A.top < S + g && A.bottom > S && (S = C ? A.top - g - 2 - p : A.bottom + p + 2);
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);
26733
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) {
26734
26741
  let A = h.left + (b ? x.x : -x.x) - (E + 14 - 7);
26735
26742
  m.style.left = A / i + "px";
26736
26743
  }
26737
- d.overlap !== !0 && o.push({ left: E, top: S, right: w, bottom: S + g }), u.classList.toggle("cm-tooltip-above", C), u.classList.toggle("cm-tooltip-below", !C), d.positioned && d.positioned(t.space);
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);
26738
26745
  }
26739
26746
  }
26740
26747
  maybeMeasure() {
@@ -30752,12 +30759,12 @@ class cF {
30752
30759
  return null;
30753
30760
  let { chars: s, folded: n, any: i, precise: r, byWord: o } = this;
30754
30761
  if (s.length == 1) {
30755
- let b = Jt(e, 0), E = Ks(b), C = E == e.length ? 0 : -100;
30762
+ let b = Jt(e, 0), E = Ks(b), v = E == e.length ? 0 : -100;
30756
30763
  if (b != s[0]) if (b == n[0])
30757
- C += -200;
30764
+ v += -200;
30758
30765
  else
30759
30766
  return null;
30760
- return this.ret(C, [0, E]);
30767
+ return this.ret(v, [0, E]);
30761
30768
  }
30762
30769
  let l = e.indexOf(this.pattern);
30763
30770
  if (l == 0)
@@ -30765,18 +30772,18 @@ class cF {
30765
30772
  let c = s.length, d = 0;
30766
30773
  if (l < 0) {
30767
30774
  for (let b = 0, E = Math.min(e.length, 200); b < E && d < c; ) {
30768
- let C = Jt(e, b);
30769
- (C == s[d] || C == n[d]) && (i[d++] = b), b += Ks(C);
30775
+ let v = Jt(e, b);
30776
+ (v == s[d] || v == n[d]) && (i[d++] = b), b += Ks(v);
30770
30777
  }
30771
30778
  if (d < c)
30772
30779
  return null;
30773
30780
  }
30774
30781
  let u = 0, h = 0, f = !1, m = 0, p = -1, _ = -1, g = /[a-z]/.test(e), x = !0;
30775
- for (let b = 0, E = Math.min(e.length, 200), C = 0; b < E && h < c; ) {
30776
- let v = Jt(e, b);
30777
- l < 0 && (u < c && v == s[u] && (r[u++] = b), m < c && (v == s[m] || v == n[m] ? (m == 0 && (p = b), _ = b + 1, m++) : m = 0));
30778
- let S, w = v < 255 ? v >= 48 && v <= 57 || v >= 97 && v <= 122 ? 2 : v >= 65 && v <= 90 ? 1 : 0 : (S = Wf(v)) != S.toLowerCase() ? 1 : S != S.toUpperCase() ? 2 : 0;
30779
- (!b || w == 1 && g || C == 0 && w != 0) && (s[h] == v || n[h] == v && (f = !0) ? o[h++] = b : o.length && (x = !1)), C = w, b += Ks(v);
30782
+ for (let b = 0, E = Math.min(e.length, 200), v = 0; b < E && h < c; ) {
30783
+ let C = Jt(e, b);
30784
+ l < 0 && (u < c && C == s[u] && (r[u++] = b), m < c && (C == s[m] || C == n[m] ? (m == 0 && (p = b), _ = b + 1, m++) : m = 0));
30785
+ let S, T = C < 255 ? C >= 48 && C <= 57 || C >= 97 && C <= 122 ? 2 : C >= 65 && C <= 90 ? 1 : 0 : (S = Wf(C)) != S.toLowerCase() ? 1 : S != S.toUpperCase() ? 2 : 0;
30786
+ (!b || T == 1 && g || v == 0 && T != 0) && (s[h] == C || n[h] == C && (f = !0) ? o[h++] = b : o.length && (x = !1)), v = T, b += Ks(C);
30780
30787
  }
30781
30788
  return h == c && o[0] == 0 && x ? this.result(-100 + (f ? -200 : 0), o, e) : m == c && p == 0 ? this.ret(-200 - e.length + (_ == e.length ? 0 : -100), [0, _]) : l > -1 ? this.ret(-700 - e.length, [l, l + this.pattern.length]) : m == c ? this.ret(-900 - e.length, [p, _]) : h == c ? this.result(-100 + (f ? -200 : 0) + -700 + (x ? 0 : -1100), o, e) : s.length == 2 ? null : this.result((i[0] ? -700 : 0) + -200 + -1100, i, e);
30782
30789
  }
@@ -32732,10 +32739,10 @@ function yU(t) {
32732
32739
  editable: x = !0,
32733
32740
  readOnly: b = !1,
32734
32741
  indentWithTab: E = !0,
32735
- basicSetup: C = !0,
32736
- root: v,
32742
+ basicSetup: v = !0,
32743
+ root: C,
32737
32744
  initialState: S
32738
- } = t, [w, A] = R(), [y, T] = R(), [k, N] = R(), I = H.theme({
32745
+ } = t, [T, A] = R(), [y, w] = R(), [k, N] = R(), I = H.theme({
32739
32746
  "&": {
32740
32747
  height: u,
32741
32748
  minHeight: h,
@@ -32761,10 +32768,10 @@ function yU(t) {
32761
32768
  readOnly: b,
32762
32769
  placeholder: g,
32763
32770
  indentWithTab: E,
32764
- basicSetup: C
32771
+ basicSetup: v
32765
32772
  }), V = [O, I, ...D];
32766
32773
  return o && typeof o == "function" && V.push(H.updateListener.of(o)), V = V.concat(l), P(() => {
32767
- if (w && !k) {
32774
+ if (T && !k) {
32768
32775
  var $ = {
32769
32776
  doc: e,
32770
32777
  selection: s,
@@ -32773,24 +32780,24 @@ function yU(t) {
32773
32780
  if (N(G), !y) {
32774
32781
  var Y = new H({
32775
32782
  state: G,
32776
- parent: w,
32777
- root: v
32783
+ parent: T,
32784
+ root: C
32778
32785
  });
32779
- T(Y), r && r(Y, G);
32786
+ w(Y), r && r(Y, G);
32780
32787
  }
32781
32788
  }
32782
32789
  return () => {
32783
- y && (N(void 0), T(void 0));
32790
+ y && (N(void 0), w(void 0));
32784
32791
  };
32785
- }, [w, k]), P(() => A(t.container), [t.container]), P(() => () => {
32786
- y && (y.destroy(), T(void 0));
32792
+ }, [T, k]), P(() => A(t.container), [t.container]), P(() => () => {
32793
+ y && (y.destroy(), w(void 0));
32787
32794
  }, [y]), P(() => {
32788
32795
  c && y && y.focus();
32789
32796
  }, [c, y]), P(() => {
32790
32797
  y && y.dispatch({
32791
32798
  effects: se.reconfigure.of(V)
32792
32799
  });
32793
- }, [d, l, u, h, f, m, p, _, g, x, b, E, C, n, o]), P(() => {
32800
+ }, [d, l, u, h, f, m, p, _, g, x, b, E, v, n, o]), P(() => {
32794
32801
  if (e !== void 0) {
32795
32802
  var $ = y ? y.state.doc.toString() : "";
32796
32803
  y && e !== $ && y.dispatch({
@@ -32806,8 +32813,8 @@ function yU(t) {
32806
32813
  state: k,
32807
32814
  setState: N,
32808
32815
  view: y,
32809
- setView: T,
32810
- container: w,
32816
+ setView: w,
32817
+ container: T,
32811
32818
  setContainer: A
32812
32819
  };
32813
32820
  }
@@ -32831,18 +32838,18 @@ var NU = ["className", "value", "selection", "extensions", "onChange", "onStatis
32831
32838
  maxWidth: x,
32832
32839
  basicSetup: b,
32833
32840
  placeholder: E,
32834
- indentWithTab: C,
32835
- editable: v,
32841
+ indentWithTab: v,
32842
+ editable: C,
32836
32843
  readOnly: S,
32837
- root: w,
32844
+ root: T,
32838
32845
  initialState: A
32839
- } = t, y = bi(t, NU), T = ie(null), {
32846
+ } = t, y = bi(t, NU), w = ie(null), {
32840
32847
  state: k,
32841
32848
  view: N,
32842
32849
  container: I
32843
32850
  } = yU({
32844
- container: T.current,
32845
- root: w,
32851
+ container: w.current,
32852
+ root: T,
32846
32853
  value: n,
32847
32854
  autoFocus: u,
32848
32855
  theme: h,
@@ -32854,8 +32861,8 @@ var NU = ["className", "value", "selection", "extensions", "onChange", "onStatis
32854
32861
  maxWidth: x,
32855
32862
  basicSetup: b,
32856
32863
  placeholder: E,
32857
- indentWithTab: C,
32858
- editable: v,
32864
+ indentWithTab: v,
32865
+ editable: C,
32859
32866
  readOnly: S,
32860
32867
  selection: i,
32861
32868
  onChange: o,
@@ -32866,14 +32873,14 @@ var NU = ["className", "value", "selection", "extensions", "onChange", "onStatis
32866
32873
  initialState: A
32867
32874
  });
32868
32875
  if (hf(e, () => ({
32869
- editor: T.current,
32876
+ editor: w.current,
32870
32877
  state: k,
32871
32878
  view: N
32872
- }), [T, I, k, N]), typeof n != "string")
32879
+ }), [w, I, k, N]), typeof n != "string")
32873
32880
  throw new Error("value must be typeof string but got " + typeof n);
32874
32881
  var O = typeof h == "string" ? "cm-theme-" + h : "cm-theme";
32875
32882
  return /* @__PURE__ */ a.jsx("div", Ve({
32876
- ref: T,
32883
+ ref: w,
32877
32884
  className: "" + O + (s ? " " + s : "")
32878
32885
  }, y));
32879
32886
  });
@@ -34800,13 +34807,13 @@ const S$ = (t) => {
34800
34807
  Bc(t);
34801
34808
  }, E = () => {
34802
34809
  Em(t);
34803
- }, C = (O) => {
34804
- u({ caseSensitive: O });
34805
34810
  }, v = (O) => {
34811
+ u({ caseSensitive: O });
34812
+ }, C = (O) => {
34806
34813
  u({ wholeWord: O });
34807
34814
  }, S = (O) => {
34808
34815
  u({ regexp: O });
34809
- }, w = () => {
34816
+ }, T = () => {
34810
34817
  l(!o);
34811
34818
  }, A = (O) => {
34812
34819
  O.preventDefault(), O.stopPropagation(), wd(t);
@@ -34828,14 +34835,14 @@ const S$ = (t) => {
34828
34835
  variant: Te.borderLess,
34829
34836
  style: De.neutral,
34830
34837
  size: B.xxs,
34831
- onClick: w,
34838
+ onClick: T,
34832
34839
  showTooltip: !0,
34833
34840
  tooltipProps: {
34834
34841
  content: "Toggle Replace",
34835
34842
  placement: "bottom"
34836
34843
  }
34837
34844
  }
34838
- ) }), T = () => /* @__PURE__ */ a.jsxs("div", { className: "code-editor__search__field-container", children: [
34845
+ ) }), w = () => /* @__PURE__ */ a.jsxs("div", { className: "code-editor__search__field-container", children: [
34839
34846
  /* @__PURE__ */ a.jsx(
34840
34847
  "input",
34841
34848
  {
@@ -34854,7 +34861,7 @@ const S$ = (t) => {
34854
34861
  {
34855
34862
  Icon: rw,
34856
34863
  isChecked: s.caseSensitive,
34857
- onChange: C,
34864
+ onChange: v,
34858
34865
  tooltipText: "Match Case"
34859
34866
  }
34860
34867
  ),
@@ -34863,7 +34870,7 @@ const S$ = (t) => {
34863
34870
  {
34864
34871
  Icon: ow,
34865
34872
  isChecked: s.wholeWord,
34866
- onChange: v,
34873
+ onChange: C,
34867
34874
  tooltipText: "Match Whole Word"
34868
34875
  }
34869
34876
  ),
@@ -35025,7 +35032,7 @@ const S$ = (t) => {
35025
35032
  !d && y(),
35026
35033
  /* @__PURE__ */ a.jsxs("div", { className: "flexbox-col dc__gap-4", children: [
35027
35034
  /* @__PURE__ */ a.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
35028
- T(),
35035
+ w(),
35029
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" }),
35030
35037
  k(),
35031
35038
  N()
@@ -35411,10 +35418,10 @@ function tV(t) {
35411
35418
  editable: x = !0,
35412
35419
  readOnly: b = !1,
35413
35420
  indentWithTab: E = !0,
35414
- basicSetup: C = !0,
35415
- root: v,
35421
+ basicSetup: v = !0,
35422
+ root: C,
35416
35423
  initialState: S
35417
- } = t, [w, A] = R(), [y, T] = R(), [k, N] = R(), I = H.theme({
35424
+ } = t, [T, A] = R(), [y, w] = R(), [k, N] = R(), I = H.theme({
35418
35425
  "&": {
35419
35426
  height: u,
35420
35427
  minHeight: h,
@@ -35440,10 +35447,10 @@ function tV(t) {
35440
35447
  readOnly: b,
35441
35448
  placeholder: g,
35442
35449
  indentWithTab: E,
35443
- basicSetup: C
35450
+ basicSetup: v
35444
35451
  }), V = [O, I, ...D];
35445
35452
  return o && typeof o == "function" && V.push(H.updateListener.of(o)), V = V.concat(l), P(() => {
35446
- if (w && !k) {
35453
+ if (T && !k) {
35447
35454
  var $ = {
35448
35455
  doc: e,
35449
35456
  selection: s,
@@ -35452,24 +35459,24 @@ function tV(t) {
35452
35459
  if (N(G), !y) {
35453
35460
  var Y = new H({
35454
35461
  state: G,
35455
- parent: w,
35456
- root: v
35462
+ parent: T,
35463
+ root: C
35457
35464
  });
35458
- T(Y), r && r(Y, G);
35465
+ w(Y), r && r(Y, G);
35459
35466
  }
35460
35467
  }
35461
35468
  return () => {
35462
- y && (N(void 0), T(void 0));
35469
+ y && (N(void 0), w(void 0));
35463
35470
  };
35464
- }, [w, k]), P(() => A(t.container), [t.container]), P(() => () => {
35465
- y && (y.destroy(), T(void 0));
35471
+ }, [T, k]), P(() => A(t.container), [t.container]), P(() => () => {
35472
+ y && (y.destroy(), w(void 0));
35466
35473
  }, [y]), P(() => {
35467
35474
  c && y && y.focus();
35468
35475
  }, [c, y]), P(() => {
35469
35476
  y && y.dispatch({
35470
35477
  effects: se.reconfigure.of(V)
35471
35478
  });
35472
- }, [d, l, u, h, f, m, p, _, g, x, b, E, C, n, o]), P(() => {
35479
+ }, [d, l, u, h, f, m, p, _, g, x, b, E, v, n, o]), P(() => {
35473
35480
  if (e !== void 0) {
35474
35481
  var $ = y ? y.state.doc.toString() : "";
35475
35482
  y && e !== $ && y.dispatch({
@@ -35485,8 +35492,8 @@ function tV(t) {
35485
35492
  state: k,
35486
35493
  setState: N,
35487
35494
  view: y,
35488
- setView: T,
35489
- container: w,
35495
+ setView: w,
35496
+ container: T,
35490
35497
  setContainer: A
35491
35498
  };
35492
35499
  }
@@ -35510,18 +35517,18 @@ var sV = ["className", "value", "selection", "extensions", "onChange", "onStatis
35510
35517
  maxWidth: x,
35511
35518
  basicSetup: b,
35512
35519
  placeholder: E,
35513
- indentWithTab: C,
35514
- editable: v,
35520
+ indentWithTab: v,
35521
+ editable: C,
35515
35522
  readOnly: S,
35516
- root: w,
35523
+ root: T,
35517
35524
  initialState: A
35518
- } = t, y = bi(t, sV), T = ie(null), {
35525
+ } = t, y = bi(t, sV), w = ie(null), {
35519
35526
  state: k,
35520
35527
  view: N,
35521
35528
  container: I
35522
35529
  } = tV({
35523
- container: T.current,
35524
- root: w,
35530
+ container: w.current,
35531
+ root: T,
35525
35532
  value: n,
35526
35533
  autoFocus: u,
35527
35534
  theme: h,
@@ -35533,8 +35540,8 @@ var sV = ["className", "value", "selection", "extensions", "onChange", "onStatis
35533
35540
  maxWidth: x,
35534
35541
  basicSetup: b,
35535
35542
  placeholder: E,
35536
- indentWithTab: C,
35537
- editable: v,
35543
+ indentWithTab: v,
35544
+ editable: C,
35538
35545
  readOnly: S,
35539
35546
  selection: i,
35540
35547
  onChange: o,
@@ -35545,14 +35552,14 @@ var sV = ["className", "value", "selection", "extensions", "onChange", "onStatis
35545
35552
  initialState: A
35546
35553
  });
35547
35554
  if (hf(e, () => ({
35548
- editor: T.current,
35555
+ editor: w.current,
35549
35556
  state: k,
35550
35557
  view: N
35551
- }), [T, I, k, N]), typeof n != "string")
35558
+ }), [w, I, k, N]), typeof n != "string")
35552
35559
  throw new Error("value must be typeof string but got " + typeof n);
35553
35560
  var O = typeof h == "string" ? "cm-theme-" + h : "cm-theme";
35554
35561
  return /* @__PURE__ */ a.jsx("div", Ve({
35555
- ref: T,
35562
+ ref: w,
35556
35563
  className: "" + O + (s ? " " + s : "")
35557
35564
  }, y));
35558
35565
  });
@@ -36186,7 +36193,7 @@ function EV(t, e, s) {
36186
36193
  for (let g = 0; ; g++) {
36187
36194
  let x = g < s.length ? s[g] : null, b = x ? x.fromA : t.state.doc.length, E = x ? x.fromB : e.state.doc.length;
36188
36195
  if (l < b) {
36189
- let C = t.lineBlockAt(l).top + d, v = e.lineBlockAt(c).top + u, S = C - v;
36196
+ let v = t.lineBlockAt(l).top + d, C = e.lineBlockAt(c).top + u, S = v - C;
36190
36197
  S < -ll ? (d -= S, n.add(l, l, z.widget({
36191
36198
  widget: new al(-S),
36192
36199
  block: !0,
@@ -36198,8 +36205,8 @@ function EV(t, e, s) {
36198
36205
  })));
36199
36206
  }
36200
36207
  if (b > l + 1e3 && l < h.from && b > h.from && c < f.from && E > f.from) {
36201
- let C = Math.min(h.from - l, f.from - c);
36202
- l += C, c += C, g--;
36208
+ let v = Math.min(h.from - l, f.from - c);
36209
+ l += v, c += v, g--;
36203
36210
  } else if (x)
36204
36211
  l = x.toA, c = x.toB;
36205
36212
  else
@@ -36585,7 +36592,7 @@ var wV = ["className", "children", "orientation", "revertControls", "highlightCh
36585
36592
  originalExtension: g,
36586
36593
  theme: x,
36587
36594
  dispatch: b
36588
- } = f, E = bi(f, AV), C = ie(null), v = ie(), S = {
36595
+ } = f, E = bi(f, AV), v = ie(null), C = ie(), S = {
36589
36596
  orientation: i,
36590
36597
  revertControls: r,
36591
36598
  highlightChanges: o,
@@ -36594,49 +36601,49 @@ var wV = ["className", "children", "orientation", "revertControls", "highlightCh
36594
36601
  renderRevertControl: u
36595
36602
  };
36596
36603
  hf(e, () => ({
36597
- container: C.current,
36598
- view: v.current,
36604
+ container: v.current,
36605
+ view: C.current,
36599
36606
  modified: m,
36600
36607
  original: _,
36601
36608
  config: Ve({
36602
36609
  a: _,
36603
36610
  b: m,
36604
- parent: C.current
36611
+ parent: v.current
36605
36612
  }, S)
36606
- }), [C, v, m, _, S]);
36607
- var w = H.updateListener.of((T) => {
36608
- if (T.docChanged && typeof g?.onChange == "function") {
36609
- var k = T.state.doc, N = k.toString();
36610
- g?.onChange(N, T);
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);
36611
36618
  }
36612
- }), A = H.updateListener.of((T) => {
36613
- if (T.docChanged && typeof p?.onChange == "function") {
36614
- var k = T.state.doc, N = k.toString();
36615
- p?.onChange(N, T);
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);
36616
36623
  }
36617
36624
  });
36618
36625
  P(() => {
36619
- !v.current && C.current && g && p && (v.current = new bx(Ve({
36626
+ !C.current && v.current && g && p && (C.current = new bx(Ve({
36620
36627
  a: Ve({}, _, {
36621
36628
  extensions: [...g?.extension || [], ...mi(Ve({}, g?.option, {
36622
36629
  theme: x
36623
- })), w]
36630
+ })), T]
36624
36631
  }),
36625
36632
  b: Ve({}, m, {
36626
36633
  extensions: [...p?.extension || [], ...mi(Ve({}, p?.option, {
36627
36634
  theme: x
36628
36635
  })), A]
36629
36636
  }),
36630
- parent: C.current
36637
+ parent: v.current
36631
36638
  }, S)), b({
36632
- view: v.current
36639
+ view: C.current
36633
36640
  }));
36634
- }, [v, C, g, p]), P(() => {
36635
- if (_ && _.doc && v.current) {
36636
- var T, k = (T = v.current) == null ? void 0 : T.a.state.doc.toString();
36641
+ }, [C, v, g, p]), P(() => {
36642
+ if (_ && _.doc && C.current) {
36643
+ var w, k = (w = C.current) == null ? void 0 : w.a.state.doc.toString();
36637
36644
  if (k !== _.doc) {
36638
36645
  var N;
36639
- (N = v.current) == null || N.a.dispatch({
36646
+ (N = C.current) == null || N.a.dispatch({
36640
36647
  changes: {
36641
36648
  from: 0,
36642
36649
  to: k.length,
@@ -36649,11 +36656,11 @@ var wV = ["className", "children", "orientation", "revertControls", "highlightCh
36649
36656
  });
36650
36657
  }
36651
36658
  }
36652
- if (m && m.doc && v.current) {
36653
- var I, O = (I = v.current) == null ? void 0 : I.b.state.doc.toString();
36659
+ if (m && m.doc && C.current) {
36660
+ var I, O = (I = C.current) == null ? void 0 : I.b.state.doc.toString();
36654
36661
  if (O !== m.doc) {
36655
36662
  var D;
36656
- (D = v.current) == null || D.b.dispatch({
36663
+ (D = C.current) == null || D.b.dispatch({
36657
36664
  changes: {
36658
36665
  from: 0,
36659
36666
  to: O.length,
@@ -36666,9 +36673,9 @@ var wV = ["className", "children", "orientation", "revertControls", "highlightCh
36666
36673
  });
36667
36674
  }
36668
36675
  }
36669
- if (d && v.current) {
36670
- var V = v.current.a.state.selection.ranges[0].from, $ = v.current.b.state.selection.ranges[0].from;
36671
- v.current.destroy(), v.current = new bx(Ve({
36676
+ if (d && C.current) {
36677
+ var V = C.current.a.state.selection.ranges[0].from, $ = C.current.b.state.selection.ranges[0].from;
36678
+ C.current.destroy(), C.current = new bx(Ve({
36672
36679
  a: Ve({}, _, {
36673
36680
  extensions: [...g?.extension || [], ...mi(Ve({}, g?.option, {
36674
36681
  theme: x
@@ -36679,28 +36686,28 @@ var wV = ["className", "children", "orientation", "revertControls", "highlightCh
36679
36686
  theme: x
36680
36687
  }))]
36681
36688
  }),
36682
- parent: C.current
36683
- }, S)), V && (v.current.a.focus(), v.current.a.dispatch({
36689
+ parent: v.current
36690
+ }, S)), V && (C.current.a.focus(), C.current.a.dispatch({
36684
36691
  selection: {
36685
36692
  anchor: V,
36686
36693
  head: V
36687
36694
  }
36688
- })), $ && (v.current.b.focus(), v.current.b.dispatch({
36695
+ })), $ && (C.current.b.focus(), C.current.b.dispatch({
36689
36696
  selection: {
36690
36697
  anchor: $,
36691
36698
  head: $
36692
36699
  }
36693
36700
  }));
36694
36701
  }
36695
- }, [v, x, C.current, _, m, g, p, d]), P(() => () => v.current && v.current.destroy(), []), P(() => {
36696
- if (v.current) {
36697
- var T = {};
36698
- E.orientation !== i && (T.orientation = i), E.revertControls !== r && (T.revertControls = r), E.highlightChanges !== o && (T.highlightChanges = o), E.gutter !== l && (T.gutter = l), E.collapseUnchanged !== c && (T.collapseUnchanged = c), E.renderRevertControl !== u && (T.collapseUnchanged = c), Object.keys(T).length && b && v.current && (v.current.reconfigure(Ve({}, T)), b(Ve({}, T)));
36702
+ }, [C, x, v.current, _, m, g, p, d]), P(() => () => C.current && C.current.destroy(), []), P(() => {
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)));
36699
36706
  }
36700
- }, [b, v, i, r, o, l, c, u]);
36707
+ }, [b, C, i, r, o, l, c, u]);
36701
36708
  var y = "cm-merge-theme";
36702
36709
  return /* @__PURE__ */ a.jsx("div", Ve({
36703
- ref: C,
36710
+ ref: v,
36704
36711
  className: "" + y + (s ? " " + s : "")
36705
36712
  }, h, {
36706
36713
  children: n
@@ -36743,7 +36750,7 @@ const RV = ({
36743
36750
  extensions: b,
36744
36751
  autoFocus: E
36745
36752
  }) => {
36746
- const [C, v] = R(!1), S = ie();
36753
+ const [v, C] = R(!1), S = ie();
36747
36754
  P(() => {
36748
36755
  setTimeout(() => {
36749
36756
  E && S.current?.view && S.current.view.focus();
@@ -36752,15 +36759,15 @@ const RV = ({
36752
36759
  const N = document.querySelector("html");
36753
36760
  if (N) {
36754
36761
  const { scrollWidth: I, clientWidth: O } = S.current?.view?.scrollDOM ?? {};
36755
- C && I > O ? N.classList.add("dc__overscroll-none") : N.classList.remove("dc__overscroll-none");
36762
+ v && I > O ? N.classList.add("dc__overscroll-none") : N.classList.remove("dc__overscroll-none");
36756
36763
  }
36757
- }, [n.lhsCode, n.code, C]);
36758
- const w = (N) => {
36759
- v(!0), g?.(N);
36764
+ }, [n.lhsCode, n.code, v]);
36765
+ const T = (N) => {
36766
+ C(!0), g?.(N);
36760
36767
  }, A = (N) => {
36761
- v(!1), x?.(N);
36762
- }, { codeEditorClassName: y, codeEditorHeight: T, codeEditorParentClassName: k } = S$(s);
36763
- return t ? e || /* @__PURE__ */ a.jsx("div", { className: "flex mh-250", style: { height: T }, children: /* @__PURE__ */ a.jsx(st, { pageLoader: !0 }) }) : n.diffMode ? /* @__PURE__ */ a.jsxs(
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(
36764
36771
  lr,
36765
36772
  {
36766
36773
  theme: i,
@@ -36812,9 +36819,9 @@ const RV = ({
36812
36819
  value: n.code,
36813
36820
  placeholder: _,
36814
36821
  readOnly: l,
36815
- height: T,
36822
+ height: w,
36816
36823
  minHeight: "250px",
36817
- onFocus: w,
36824
+ onFocus: T,
36818
36825
  onBlur: A,
36819
36826
  onChange: h,
36820
36827
  extensions: b
@@ -36842,17 +36849,17 @@ const RV = ({
36842
36849
  loading: x,
36843
36850
  customLoader: b,
36844
36851
  validatorSchema: E = {},
36845
- schemaURI: C = Uw,
36846
- cleanData: v = !1,
36852
+ schemaURI: v = Uw,
36853
+ cleanData: C = !1,
36847
36854
  onBlur: S,
36848
- onFocus: w,
36855
+ onFocus: T,
36849
36856
  autoFocus: A,
36850
36857
  disableSearch: y = !1
36851
36858
  }) => {
36852
- const { appTheme: T } = Ob(), k = de(() => {
36859
+ const { appTheme: w } = Ob(), k = de(() => {
36853
36860
  const oe = g ? n : e;
36854
- return v ? Ox(oe) : oe;
36855
- }, [e, n, g]), N = de(() => v ? Ox(s) : s, [s]), I = ie(), O = (t ?? T) === Gn.dark, D = X$(O), [V, $] = R(), [G, Y] = R(!1), [ee, ue] = Yx(
36861
+ 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(
36856
36863
  U$,
36857
36864
  $$({
36858
36865
  mode: r,
@@ -36877,7 +36884,7 @@ const RV = ({
36877
36884
  $(xr());
36878
36885
  },
36879
36886
  // Include any props that modify codemirror-merge extensions directly, as a workaround for the unresolved bug.
36880
- [p, c, y, T, r]
36887
+ [p, c, y, w, r]
36881
36888
  );
36882
36889
  const Q = (oe) => {
36883
36890
  ue({ type: "setCode", value: oe }), ee.diffMode ? m?.(oe) : h?.(oe);
@@ -36914,7 +36921,7 @@ const RV = ({
36914
36921
  })
36915
36922
  ], _e = [
36916
36923
  ...J,
36917
- ...ee.diffMode ? [] : A$({ mode: r, schemaURI: C, validatorSchema: E }),
36924
+ ...ee.diffMode ? [] : A$({ mode: r, schemaURI: v, validatorSchema: E }),
36918
36925
  vu
36919
36926
  ], he = [...J, vu], ke = [...J, vu];
36920
36927
  return /* @__PURE__ */ a.jsxs(my.Provider, { value: We, children: [
@@ -36937,7 +36944,7 @@ const RV = ({
36937
36944
  handleLhsOnChange: U,
36938
36945
  isOriginalModifiable: i,
36939
36946
  onBlur: S,
36940
- onFocus: w,
36947
+ onFocus: T,
36941
36948
  autoFocus: A,
36942
36949
  originalViewExtensions: he,
36943
36950
  modifiedViewExtensions: ke,
@@ -37080,8 +37087,8 @@ const Wc = "Please provide valid YAML", Qr = {
37080
37087
  yaml: null
37081
37088
  };
37082
37089
  if (e) {
37083
- const C = t || c ? kf.REPLACE : r, v = e.mergeStrategy || (s === ld.INHERITED ? C : null), S = DV({
37084
- configMapSecretData: { ...e, mergeStrategy: v },
37090
+ const v = t || c ? kf.REPLACE : r, C = e.mergeStrategy || (s === ld.INHERITED ? v : null), S = DV({
37091
+ configMapSecretData: { ...e, mergeStrategy: C },
37085
37092
  cmSecretStateLabel: s,
37086
37093
  isSecret: o
37087
37094
  });
@@ -37095,7 +37102,7 @@ const Wc = "Please provide valid YAML", Qr = {
37095
37102
  }),
37096
37103
  yaml: PV(S),
37097
37104
  currentData: S,
37098
- mergeStrategy: v,
37105
+ mergeStrategy: C,
37099
37106
  ...MV(e)
37100
37107
  };
37101
37108
  }
@@ -37143,14 +37150,14 @@ const Wc = "Please provide valid YAML", Qr = {
37143
37150
  componentType: s,
37144
37151
  fallbackMergeStrategy: i
37145
37152
  }), E = o && l === (b ? Fe.KubernetesSecret : Fe.Internal);
37146
- let C = "";
37147
- return b ? C = o && l === "" ? Fe.KubernetesSecret : gr(LV(n, !0), l).label : C = kV.find(
37148
- ({ value: v }) => o && l === "" ? v === Fe.KubernetesConfigMap : v === l
37153
+ let v = "";
37154
+ return b ? v = o && l === "" ? Fe.KubernetesSecret : gr(LV(n, !0), l).label : v = kV.find(
37155
+ ({ value: C }) => o && l === "" ? C === Fe.KubernetesConfigMap : C === l
37149
37156
  ).label, {
37150
37157
  configData: [
37151
37158
  {
37152
37159
  displayName: "DataType",
37153
- value: C,
37160
+ value: v,
37154
37161
  key: "dataType"
37155
37162
  },
37156
37163
  {
@@ -37186,7 +37193,7 @@ const Wc = "Please provide valid YAML", Qr = {
37186
37193
  ...r ? [
37187
37194
  {
37188
37195
  displayName: "Keys",
37189
- value: x?.length > 0 ? x.map((v) => v.k).join(", ") : "No keys available",
37196
+ value: x?.length > 0 ? x.map((C) => C.k).join(", ") : "No keys available",
37190
37197
  key: "keys"
37191
37198
  }
37192
37199
  ] : []
@@ -37244,13 +37251,13 @@ const Wc = "Please provide valid YAML", Qr = {
37244
37251
  isSubPathChecked: p,
37245
37252
  mergeStrategy: _
37246
37253
  }) => {
37247
- const g = t && nb(s), b = (r ? FV(i) : o).reduce((C, v) => {
37248
- if (!v.k)
37249
- return C;
37250
- const S = v.v ?? "";
37254
+ const g = t && nb(s), b = (r ? FV(i) : o).reduce((v, C) => {
37255
+ if (!C.k)
37256
+ return v;
37257
+ const S = C.v ?? "";
37251
37258
  return {
37252
- ...C,
37253
- [v.k]: t && s === "" ? btoa(S) : S
37259
+ ...v,
37260
+ [C.k]: t && s === "" ? btoa(S) : S
37254
37261
  };
37255
37262
  }, {}), E = {
37256
37263
  name: d,
@@ -37267,21 +37274,21 @@ const Wc = "Please provide valid YAML", Qr = {
37267
37274
  mergeStrategy: _
37268
37275
  };
37269
37276
  if ((t && s === Fe.KubernetesSecret || !t && e || t && g) && delete E[j0.DATA], t && (E.roleARN = "", E.externalType = s, g)) {
37270
- const C = My(l);
37271
- C && (E.esoSecretData = {
37272
- secretStore: C.secretStore,
37273
- esoData: C.esoData,
37274
- secretStoreRef: C.secretStoreRef,
37275
- refreshInterval: C.refreshInterval,
37276
- esoDataFrom: C.esoDataFrom,
37277
- template: C.template
37277
+ const v = My(l);
37278
+ v && (E.esoSecretData = {
37279
+ secretStore: v.secretStore,
37280
+ esoData: v.esoData,
37281
+ secretStoreRef: v.secretStoreRef,
37282
+ refreshInterval: v.refreshInterval,
37283
+ esoDataFrom: v.esoDataFrom,
37284
+ template: v.template
37278
37285
  }, E.roleARN = f, p && n && (E.esoSubPath = n.replace(/\s+/g, "").split(",")));
37279
37286
  }
37280
37287
  if (u === Kc.volume.value && (E.mountPath = m, E.subPath = p, h && (E.filePermission = c.length === 3 ? `0${c}` : `${c}`), p && (t && s === Fe.KubernetesSecret || !t && e))) {
37281
- const C = n.replace(/\s+/g, "").split(","), v = {};
37282
- C.forEach((S) => {
37283
- v[S] = "";
37284
- }), E.data = v;
37288
+ const v = n.replace(/\s+/g, "").split(","), C = {};
37289
+ v.forEach((S) => {
37290
+ C[S] = "";
37291
+ }), E.data = C;
37285
37292
  }
37286
37293
  return E;
37287
37294
  }, $V = () => /* @__PURE__ */ a.jsx(
@@ -37639,10 +37646,10 @@ const Wc = "Please provide valid YAML", Qr = {
37639
37646
  l(s);
37640
37647
  }, [s]);
37641
37648
  const m = (E) => {
37642
- const C = E.trim().toLowerCase(), v = s.filter(
37643
- (S) => S.variableName.toLowerCase().includes(C) || S.shortDescription?.toLowerCase().includes(C)
37649
+ const v = E.trim().toLowerCase(), C = s.filter(
37650
+ (S) => S.variableName.toLowerCase().includes(v) || S.shortDescription?.toLowerCase().includes(v)
37644
37651
  );
37645
- l(v), h(C);
37652
+ l(C), h(v);
37646
37653
  }, p = () => {
37647
37654
  d(!c);
37648
37655
  }, _ = () => /* @__PURE__ */ a.jsx(
@@ -37768,10 +37775,10 @@ const Wc = "Please provide valid YAML", Qr = {
37768
37775
  P(() => {
37769
37776
  const A = new ResizeObserver((y) => {
37770
37777
  if (y?.length > 0 && l) {
37771
- const { height: T } = y[0].contentRect;
37772
- E.y + h.y + T > x.height && f({
37778
+ const { height: w } = y[0].contentRect;
37779
+ E.y + h.y + w > x.height && f({
37773
37780
  x: h.x,
37774
- y: x.height - T - E.y
37781
+ y: x.height - w - E.y
37775
37782
  });
37776
37783
  }
37777
37784
  });
@@ -37779,7 +37786,7 @@ const Wc = "Please provide valid YAML", Qr = {
37779
37786
  A.disconnect();
37780
37787
  };
37781
37788
  }, [l, h, x, E]);
37782
- const C = () => {
37789
+ const v = () => {
37783
37790
  const A = {
37784
37791
  x: E.x + d.x,
37785
37792
  y: E.y + d.y
@@ -37797,20 +37804,20 @@ const Wc = "Please provide valid YAML", Qr = {
37797
37804
  x: x.width - wn.width - E.x,
37798
37805
  y: x.height - wn.height - E.y
37799
37806
  }), c(!0);
37800
- }, v = dt((A) => {
37807
+ }, C = dt((A) => {
37801
37808
  A.stopPropagation(), c(!1);
37802
37809
  }, []), S = (A, y) => {
37803
- const T = {
37810
+ const w = {
37804
37811
  x: E.x + y.x,
37805
37812
  y: E.y + y.y
37806
37813
  };
37807
- T.y < 0 || T.x < 0 || T.x + (b.current?.getBoundingClientRect().width || 0) > x.width || T.y + (b.current?.getBoundingClientRect().height || 0) > x.height || u(y);
37808
- }, w = (A, y) => {
37809
- const T = {
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 = {
37810
37817
  x: E.x + y.x,
37811
37818
  y: E.y + y.y
37812
37819
  };
37813
- T.y < 0 || T.x < 0 || T.x + (b.current?.getBoundingClientRect().width || 0) > x.width || T.y + (b.current?.getBoundingClientRect().height || 0) > x.height || (f(y), u(y));
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));
37814
37821
  };
37815
37822
  return l ? /* @__PURE__ */ a.jsx(
37816
37823
  Dl,
@@ -37819,7 +37826,7 @@ const Wc = "Please provide valid YAML", Qr = {
37819
37826
  handle: ".handle-drag",
37820
37827
  nodeRef: b,
37821
37828
  position: h,
37822
- onDrag: w,
37829
+ onDrag: T,
37823
37830
  children: /* @__PURE__ */ a.jsx(
37824
37831
  "div",
37825
37832
  {
@@ -37832,7 +37839,7 @@ const Wc = "Please provide valid YAML", Qr = {
37832
37839
  children: /* @__PURE__ */ a.jsx(
37833
37840
  qV,
37834
37841
  {
37835
- handleDeActivation: v,
37842
+ handleDeActivation: C,
37836
37843
  loading: m,
37837
37844
  variables: p ?? [],
37838
37845
  reloadVariables: g,
@@ -37865,7 +37872,7 @@ const Wc = "Please provide valid YAML", Qr = {
37865
37872
  {
37866
37873
  className: "dc__outline-none-imp dc__no-border p-0 bcn-7 h-20",
37867
37874
  type: "button",
37868
- onClick: C,
37875
+ onClick: v,
37869
37876
  "data-testid": "activate-suggestions",
37870
37877
  children: /* @__PURE__ */ a.jsx(rd, { className: "scn-0 icon-dim-20" })
37871
37878
  }
@@ -37991,19 +37998,19 @@ const sH = ({
37991
37998
  d(b);
37992
37999
  }, p = dt(
37993
38000
  (b, E) => {
37994
- const C = Au.some((S) => S.label === u), v = tH[u] ?? ((S) => S);
37995
- if (!C) {
37996
- const S = b.additionalKeys?.find((A) => A.label === u)?.value || "", w = E.additionalKeys?.find((A) => A.label === u)?.value || "";
37997
- return wt(S, w, h);
38001
+ const v = Au.some((S) => S.label === u), C = tH[u] ?? ((S) => S);
38002
+ if (!v) {
38003
+ const S = b.additionalKeys?.find((A) => A.label === u)?.value || "", T = E.additionalKeys?.find((A) => A.label === u)?.value || "";
38004
+ return wt(S, T, h);
37998
38005
  }
37999
- return (h === we.ASC ? 1 : -1) * (v(b[Sx[u]]) < v(E[Sx[u]]) ? -1 : 1);
38006
+ return (h === we.ASC ? 1 : -1) * (C(b[Sx[u]]) < C(E[Sx[u]]) ? -1 : 1);
38000
38007
  },
38001
38008
  [h, u]
38002
38009
  ), _ = n.getResults(t ? null : p), g = Au.reduce(
38003
- (b, E, C) => {
38004
- if (b.push(E), C === 0) {
38005
- const v = _?.[0]?.additionalKeys;
38006
- v?.length && v.forEach((S) => {
38010
+ (b, E, v) => {
38011
+ if (b.push(E), v === 0) {
38012
+ const C = _?.[0]?.additionalKeys;
38013
+ C?.length && C.forEach((S) => {
38007
38014
  b.push({
38008
38015
  label: S.label,
38009
38016
  isSortable: S.isSortable,
@@ -38088,16 +38095,16 @@ const sH = ({
38088
38095
  ))
38089
38096
  }
38090
38097
  ),
38091
- /* @__PURE__ */ a.jsx("div", { className: "dc__overflow-auto px-20", children: _.map((b, E, C) => /* @__PURE__ */ a.jsxs(
38098
+ /* @__PURE__ */ a.jsx("div", { className: "dc__overflow-auto px-20", children: _.map((b, E, v) => /* @__PURE__ */ a.jsxs(
38092
38099
  "div",
38093
38100
  {
38094
- className: `dc__grid py-10 fs-13 dc__gap-16 dc__align-items-start ${E === C.length - 1 ? "mb-20" : ""}`,
38101
+ className: `dc__grid py-10 fs-13 dc__gap-16 dc__align-items-start ${E === v.length - 1 ? "mb-20" : ""}`,
38095
38102
  style: {
38096
38103
  gridTemplateColumns: b.renderContentAtResultRowEnd ? `${x} min-content` : x
38097
38104
  },
38098
38105
  children: [
38099
38106
  /* @__PURE__ */ a.jsx(Ae, { content: b.name, children: /* @__PURE__ */ a.jsx("span", { className: "dc__word-break", children: b.name }) }),
38100
- b.additionalKeys?.map((v) => /* @__PURE__ */ a.jsx(Ae, { content: v.value, children: /* @__PURE__ */ a.jsx("span", { className: "dc__word-break", children: v.value || "-" }) })),
38107
+ b.additionalKeys?.map((C) => /* @__PURE__ */ a.jsx(Ae, { content: C.value, children: /* @__PURE__ */ a.jsx("span", { className: "dc__word-break", children: C.value || "-" }) })),
38101
38108
  /* @__PURE__ */ a.jsxs("div", { className: "flexbox dc__gap-6 dc__align-items-center dc__align-self-start", children: [
38102
38109
  b.status !== "Pending" && zl(b.status),
38103
38110
  /* @__PURE__ */ a.jsx("span", { children: b.status })
@@ -38184,7 +38191,7 @@ const sH = ({
38184
38191
  A >= 0 || (A = setTimeout(() => {
38185
38192
  f((/* @__PURE__ */ new Date()).toISOString()), A = -1;
38186
38193
  }, 10));
38187
- }, T = m.current.map((k) => async () => {
38194
+ }, w = m.current.map((k) => async () => {
38188
38195
  const { operation: N, name: I, additionalKeys: O, renderContentAtResultRowEnd: D = null } = k;
38189
38196
  if (_.current.signal.aborted)
38190
38197
  throw new Error("bulk operations aborted");
@@ -38219,7 +38226,7 @@ const sH = ({
38219
38226
  }), y();
38220
38227
  }
38221
38228
  });
38222
- await QV(T, !0), Ze.showToast({
38229
+ await QV(w, !0), Ze.showToast({
38223
38230
  variant: Re.info,
38224
38231
  description: "Action completed"
38225
38232
  }), i && x();
@@ -38232,9 +38239,9 @@ const sH = ({
38232
38239
  P(() => (o && b().then(Ia).catch(Ia), () => {
38233
38240
  _.current?.abort();
38234
38241
  }), []);
38235
- const E = u ? Ia : x, C = async () => {
38242
+ const E = u ? Ia : x, v = async () => {
38236
38243
  m.current = p.current.getRetryOperations(), p.current = new yx(m.current.length), _.current = new AbortController(), await b();
38237
- }, v = () => {
38244
+ }, C = () => {
38238
38245
  _.current.abort();
38239
38246
  }, S = () => /* @__PURE__ */ a.jsx(
38240
38247
  ec,
@@ -38256,15 +38263,15 @@ const sH = ({
38256
38263
  }
38257
38264
  }
38258
38265
  }
38259
- ), w = () => /* @__PURE__ */ a.jsx(
38266
+ ), T = () => /* @__PURE__ */ a.jsx(
38260
38267
  sH,
38261
38268
  {
38262
38269
  apiCallInProgress: u,
38263
- handleAbortBulkOperation: v,
38270
+ handleAbortBulkOperation: C,
38264
38271
  handleModalClose: E,
38265
38272
  isOperationAborted: _.current?.signal.aborted ?? !1,
38266
38273
  resultsStore: p.current,
38267
- handleRetryFailedOperations: C,
38274
+ handleRetryFailedOperations: v,
38268
38275
  getResultsChartSummaryText: s,
38269
38276
  resultsHeader: r.resultsHeader,
38270
38277
  disableTransition: d
@@ -38272,7 +38279,7 @@ const sH = ({
38272
38279
  );
38273
38280
  return /* @__PURE__ */ a.jsxs("div", { className: "bulk-operations", children: [
38274
38281
  /* @__PURE__ */ a.jsx(VN, { when: u, message: r.prompt }),
38275
- !o && !g ? S() : w()
38282
+ !o && !g ? S() : T()
38276
38283
  ] });
38277
38284
  }, eo = ({
38278
38285
  title: t,
@@ -38393,24 +38400,24 @@ const sH = ({
38393
38400
  });
38394
38401
  return;
38395
38402
  }
38396
- const C = E.nodes.find((S) => S.type === Rn.CI);
38403
+ const v = E.nodes.find((S) => S.type === Rn.CI);
38397
38404
  if (E.nodes.some((S) => S.type === Rn.WEBHOOK)) {
38398
38405
  f(Rn.WEBHOOK);
38399
38406
  return;
38400
38407
  }
38401
- if (C?.isJobCI) {
38408
+ if (v?.isJobCI) {
38402
38409
  f(qt.JOB_CI);
38403
38410
  return;
38404
38411
  }
38405
- if (C?.isLinkedCI) {
38412
+ if (v?.isLinkedCI) {
38406
38413
  f(qt.LINKED_CI);
38407
38414
  return;
38408
38415
  }
38409
- if (C?.isExternalCI) {
38416
+ if (v?.isExternalCI) {
38410
38417
  f(qt.EXTERNAL_CI);
38411
38418
  return;
38412
38419
  }
38413
- if (C?.isLinkedCD) {
38420
+ if (v?.isLinkedCD) {
38414
38421
  f(qt.LINKED_CD);
38415
38422
  return;
38416
38423
  }
@@ -38418,14 +38425,14 @@ const sH = ({
38418
38425
  }
38419
38426
  }, [o, r]);
38420
38427
  const g = () => {
38421
- if (r && o.find((v) => +v.id === r.appWorkflowId).nodes.some((v) => v.type === Rn.CD)) {
38422
- p(!0), cI(oH(r)).then((v) => {
38423
- v.result && (Ze.showToast({
38428
+ if (r && o.find((C) => +C.id === r.appWorkflowId).nodes.some((C) => C.type === Rn.CD)) {
38429
+ p(!0), cI(oH(r)).then((C) => {
38430
+ C.result && (Ze.showToast({
38424
38431
  variant: Re.success,
38425
38432
  description: Nx.SUCCESS_CHANGE_TO_WEBHOOK
38426
38433
  }), l(), _());
38427
- }).catch((v) => {
38428
- it(v), p(!1);
38434
+ }).catch((C) => {
38435
+ it(C), p(!1);
38429
38436
  });
38430
38437
  return;
38431
38438
  }
@@ -38434,16 +38441,16 @@ const sH = ({
38434
38441
  if (!(E.currentTarget instanceof HTMLDivElement) || "key" in E && E.key !== "Enter")
38435
38442
  return;
38436
38443
  E.stopPropagation();
38437
- const { pipelineType: C } = E.currentTarget.dataset;
38438
- if (C === pi.WEBHOOK) {
38444
+ const { pipelineType: v } = E.currentTarget.dataset;
38445
+ if (v === pi.WEBHOOK) {
38439
38446
  g();
38440
38447
  return;
38441
38448
  }
38442
- if (d && C === d.type) {
38449
+ if (d && v === d.type) {
38443
38450
  n(r), t();
38444
38451
  return;
38445
38452
  }
38446
- e(C, r?.appWorkflowId ?? 0), t();
38453
+ e(v, r?.appWorkflowId ?? 0), t();
38447
38454
  }, b = (E) => !i && E === qt.LINKED_CD ? nH : h === E ? iH : m ? rH : null;
38448
38455
  return /* @__PURE__ */ a.jsx(
38449
38456
  $r,
@@ -39588,11 +39595,11 @@ const Hm = ({
39588
39595
  }, _ = () => {
39589
39596
  f.current.value = "", p(""), h(!1);
39590
39597
  }, g = (E) => {
39591
- const { value: C } = E.target;
39592
- h(!!C), r ? m(C) : e(C);
39598
+ const { value: v } = E.target;
39599
+ h(!!v), r ? m(v) : e(v);
39593
39600
  }, x = (E) => {
39594
- const { key: C } = E;
39595
- if (C === "Enter") {
39601
+ const { key: v } = E;
39602
+ if (v === "Enter") {
39596
39603
  E.preventDefault();
39597
39604
  const S = E.target.value.trim();
39598
39605
  p(S);
@@ -39702,8 +39709,8 @@ const XW = ({
39702
39709
  variant: Re.success,
39703
39710
  description: "Successfully deleted"
39704
39711
  }), e(!1), l ? g(c) : d(), typeof h == "function" && h();
39705
- } catch (v) {
39706
- v instanceof Es && v.code === 500 ? _(!0) : it(v);
39712
+ } catch (C) {
39713
+ C instanceof Es && C.code === 500 ? _(!0) : it(C);
39707
39714
  } finally {
39708
39715
  t?.(!1), m(!1);
39709
39716
  }
@@ -39715,7 +39722,7 @@ const XW = ({
39715
39722
  /* @__PURE__ */ a.jsx(Rs.Body, { title: `Cannot delete ${i} '${n}'` }),
39716
39723
  /* @__PURE__ */ a.jsx("p", { className: "fs-13 cn-7 ", children: o }),
39717
39724
  /* @__PURE__ */ a.jsx(Rs.ButtonGroup, { children: /* @__PURE__ */ a.jsx("button", { type: "button", className: "cta", onClick: b, children: "Okay" }) })
39718
- ] }), C = () => /* @__PURE__ */ a.jsx(
39725
+ ] }), v = () => /* @__PURE__ */ a.jsx(
39719
39726
  na,
39720
39727
  {
39721
39728
  title: `Delete ${i} '${n}'`,
@@ -39731,7 +39738,7 @@ const XW = ({
39731
39738
  }
39732
39739
  );
39733
39740
  return /* @__PURE__ */ a.jsxs("div", { children: [
39734
- !p && C(),
39741
+ !p && v(),
39735
39742
  p && E()
39736
39743
  ] });
39737
39744
  }, eN = ({
@@ -39750,21 +39757,21 @@ const XW = ({
39750
39757
  forceReInit: h,
39751
39758
  isSuperAdmin: f
39752
39759
  }) => {
39753
- const [m, p] = R(n || []), [_, g] = R(s ? s.comment : ""), [x, b] = R(r || []), [E, C] = R(s ? s.comment : ""), [v, S] = R(!1), [w, A] = R(!1), [y, T] = R(n || []), [k, N] = R(""), [I, O] = R([]), [D, V] = R([]), [$, G] = R([]), [Y, ee] = R(""), [ue, We] = R(""), [Q, q] = R(!1);
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);
39754
39761
  P(() => {
39755
39762
  Se();
39756
39763
  }, [n, s, l]), P(() => {
39757
39764
  b(r || []);
39758
39765
  }, [r]);
39759
39766
  const Se = () => {
39760
- (h || !v) && (p(n || []), g(s ? s.comment : ""), C(s ? s.comment : ""), T(n || []), S(!1));
39767
+ (h || !C) && (p(n || []), g(s ? s.comment : ""), v(s ? s.comment : ""), w(n || []), S(!1));
39761
39768
  }, Ee = () => {
39762
- S(!v), typeof d == "function" && d(e);
39769
+ S(!C), typeof d == "function" && d(e);
39763
39770
  }, je = (te) => {
39764
39771
  const Le = te.target.value;
39765
- Le?.length > 500 ? ee("comment length cannot exceed 500 characters") : ee(""), C(Le);
39772
+ Le?.length > 500 ? ee("comment length cannot exceed 500 characters") : ee(""), v(Le);
39766
39773
  }, U = () => {
39767
- T(m), C(_), O([]), V([]), G([]), Ee(), A(!1), N("");
39774
+ w(m), v(_), O([]), V([]), G([]), Ee(), A(!1), N("");
39768
39775
  }, F = (te) => {
39769
39776
  if (te.length == 0 || te.length >= 128 || te[0] == "." || te[0] == "-")
39770
39777
  return N("Label name cannot be empty or exceed 128 characters or cannot start with . or -"), !1;
@@ -39785,7 +39792,7 @@ const XW = ({
39785
39792
  artifactId: 0,
39786
39793
  duplicateTag: !1
39787
39794
  }, rt = [...I, Ce];
39788
- return O(rt), T([...y, Ce]), A(!0), We(""), rt;
39795
+ return O(rt), w([...y, Ce]), A(!0), We(""), rt;
39789
39796
  }
39790
39797
  return I;
39791
39798
  }, _e = (te) => {
@@ -39795,12 +39802,12 @@ const XW = ({
39795
39802
  deleted: !Le[te].deleted
39796
39803
  };
39797
39804
  const Ce = Le[te], rt = [...D], yt = rt.findIndex((ms) => ms.tagName === Ce.tagName);
39798
- yt !== -1 ? rt.splice(yt, 1) : rt.push(Ce), T(Le), V(rt);
39805
+ yt !== -1 ? rt.splice(yt, 1) : rt.push(Ce), w(Le), V(rt);
39799
39806
  }, he = (te) => {
39800
39807
  const Le = y[te], Ce = I.filter((ms) => ms.tagName !== Le.tagName);
39801
39808
  O(Ce);
39802
39809
  const rt = [...y];
39803
- rt.splice(te, 1), T(rt);
39810
+ rt.splice(te, 1), w(rt);
39804
39811
  const yt = x.filter((ms) => ms.toLowerCase() !== Le.tagName.toLowerCase());
39805
39812
  if (b(yt), Le.id !== 0) {
39806
39813
  const ms = [...$, Le];
@@ -39817,7 +39824,7 @@ const XW = ({
39817
39824
  const ms = Ce.find((jd) => jd.tagName === yt.tagName);
39818
39825
  return ms ? { ...yt, duplicateTag: ms.duplicateTag } : yt;
39819
39826
  });
39820
- T(rt);
39827
+ w(rt);
39821
39828
  });
39822
39829
  }, oe = async (te) => {
39823
39830
  if (k) return;
@@ -39839,7 +39846,7 @@ const XW = ({
39839
39846
  appId: 0,
39840
39847
  artifactId: 0
39841
39848
  }));
39842
- o && o(Ce.result?.appReleaseTags), c && c(Ce.result?.tagsEditable), p(rt), g(Ce.result?.imageComment?.comment), T(rt), C(Ce.result?.imageComment?.comment), O([]), V([]), G([]), Ee(), A(!1), N(""), i && i(e, rt, Ce.result?.imageComment);
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);
39843
39850
  }).catch((Ce) => {
39844
39851
  Ce.errors?.[0]?.userMessage?.appReleaseTags?.length ? (Ze.showToast({
39845
39852
  variant: Re.error,
@@ -39864,7 +39871,7 @@ const XW = ({
39864
39871
  /* @__PURE__ */ a.jsx("li", { children: "Labels cannot be deleted once saved. Although, you can soft delete a label if an unwanted label has been added." })
39865
39872
  ] })
39866
39873
  ] }), St = ie(null);
39867
- if (E === "" && y.length === 0 && !v)
39874
+ if (E === "" && y.length === 0 && !C)
39868
39875
  return l ? /* @__PURE__ */ a.jsx("div", { className: "bg__primary mt-8 add-image-button", children: /* @__PURE__ */ a.jsx(IH, { handleEditClick: Ee }) }) : /* @__PURE__ */ a.jsx("div", {});
39869
39876
  const yn = (te) => {
39870
39877
  te.key === "Enter" && te.target.value.trim() && J(te.target.value.trim());
@@ -39876,7 +39883,7 @@ const XW = ({
39876
39883
  let te = I;
39877
39884
  ue.trim() && (te = J(ue)), oe(te);
39878
39885
  };
39879
- return /* @__PURE__ */ a.jsx("div", { className: "mt-8", children: v && l ? /* @__PURE__ */ a.jsxs("div", { className: "bg__primary dc__border-top-n1 ", children: [
39886
+ return /* @__PURE__ */ a.jsx("div", { className: "mt-8", children: C && l ? /* @__PURE__ */ a.jsxs("div", { className: "bg__primary dc__border-top-n1 ", children: [
39880
39887
  /* @__PURE__ */ a.jsxs("div", { className: "cn-7 mt-12 flex left", children: [
39881
39888
  /* @__PURE__ */ a.jsx("div", { children: "Image labels (eg. v1.0)" }),
39882
39889
  xt()
@@ -39921,7 +39928,7 @@ const XW = ({
39921
39928
  {
39922
39929
  text: te?.tagName,
39923
39930
  isSoftDeleted: te?.deleted,
39924
- isEditing: v,
39931
+ isEditing: C,
39925
39932
  onSoftDeleteClick: (Ce) => {
39926
39933
  Oe(Ce), _e(Le);
39927
39934
  },
@@ -39936,7 +39943,7 @@ const XW = ({
39936
39943
  },
39937
39944
  te.id
39938
39945
  )) }),
39939
- w && /* @__PURE__ */ a.jsxs("div", { className: "cn-7 mb-8 flex left", children: [
39946
+ T && /* @__PURE__ */ a.jsxs("div", { className: "cn-7 mb-8 flex left", children: [
39940
39947
  /* @__PURE__ */ a.jsx(Lr, { className: "icon-dim-16 mr-2" }),
39941
39948
  "Tags cannot be edited/removed later"
39942
39949
  ] }),
@@ -39991,7 +39998,7 @@ const XW = ({
39991
39998
  {
39992
39999
  text: te?.tagName,
39993
40000
  isSoftDeleted: te?.deleted,
39994
- isEditing: v,
40001
+ isEditing: C,
39995
40002
  onSoftDeleteClick: (Ce) => {
39996
40003
  Oe(Ce), _e(Le);
39997
40004
  },
@@ -40205,7 +40212,7 @@ const Vr = ({
40205
40212
  f(y), A.target.name = l, A.target.value = y, e(A);
40206
40213
  }
40207
40214
  if (!t) return null;
40208
- const { button: C, body: v, optionLength: S, AsyncComponent: w } = pe.Children.toArray(t).reduce(
40215
+ const { button: v, body: C, optionLength: S, AsyncComponent: T } = pe.Children.toArray(t).reduce(
40209
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),
40210
40217
  { button: null, body: [], optionLength: 0, AsyncComponent: null }
40211
40218
  );
@@ -40233,13 +40240,13 @@ const Vr = ({
40233
40240
  tabIndex: o,
40234
40241
  rootClassName: i,
40235
40242
  dataTestId: u,
40236
- children: C
40243
+ children: v
40237
40244
  }
40238
40245
  ),
40239
- m && w,
40246
+ m && T,
40240
40247
  /* @__PURE__ */ a.jsx(Dt.Body, { rootClassName: `select-popup ${i || ""}`, autoWidth: c, children: x ? null : /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
40241
40248
  S === 0 && /* @__PURE__ */ a.jsx("div", { className: `${i} no-option-found flex`, children: "No results found" }),
40242
- v
40249
+ C
40243
40250
  ] }) })
40244
40251
  ] })
40245
40252
  }
@@ -40504,8 +40511,8 @@ function n3({
40504
40511
  }, g = d.current?.getBoundingClientRect().height ?? 0, x = d.current?.getBoundingClientRect().width ?? 0;
40505
40512
  switch (p) {
40506
40513
  case lf.PARENT_BOTTOM_CENTER: {
40507
- const b = (_.width - x) / 2, E = _.top > 0 ? _.top : l, v = (_.height > c.height ? c.height - E : _.height) - g - r;
40508
- return { x: b, y: v };
40514
+ const b = (_.width - x) / 2, E = _.top > 0 ? _.top : l, C = (_.height > c.height ? c.height - E : _.height) - g - r;
40515
+ return { x: b, y: C };
40509
40516
  }
40510
40517
  case lf.SCREEN_BOTTOM_RIGHT: {
40511
40518
  const b = c.width - _.left - x - r, E = c.height - _.top - g - r;
@@ -40812,26 +40819,26 @@ const Ts = {
40812
40819
  P(() => {
40813
40820
  m(t);
40814
40821
  }, [t]);
40815
- const b = Ye(s), E = b.isValid() ? b.format(ns.TWELVE_HOURS_FORMAT) : s, C = (A) => {
40822
+ const b = Ye(s), E = b.isValid() ? b.format(ns.TWELVE_HOURS_FORMAT) : s, v = (A) => {
40816
40823
  let y = !0;
40817
40824
  return A.length === 0 && (Ze.showToast({
40818
40825
  variant: Re.error,
40819
40826
  description: GH
40820
40827
  }), y = !1), y;
40821
- }, v = () => {
40828
+ }, C = () => {
40822
40829
  let A = !0;
40823
40830
  g && !u && (A = window.confirm(YH)), A && (m(t), h(!u), _(Gi.WRITE));
40824
40831
  }, S = async () => {
40825
40832
  const A = f.trim();
40826
- if (C(A))
40833
+ if (v(A))
40827
40834
  try {
40828
40835
  d(!0), await r(A), h(!0), m(A);
40829
- } catch (T) {
40830
- it(T);
40836
+ } catch (w) {
40837
+ it(w);
40831
40838
  } finally {
40832
40839
  d(!1);
40833
40840
  }
40834
- }, w = (A) => {
40841
+ }, T = (A) => {
40835
40842
  switch (A) {
40836
40843
  case ps.HEADER:
40837
40844
  return /* @__PURE__ */ a.jsx(
@@ -40973,7 +40980,7 @@ const Ts = {
40973
40980
  {
40974
40981
  "data-testid": "description-edit-button",
40975
40982
  className: "dc__align-right pencil-icon cursor flex fw-6 cn-7",
40976
- onClick: v,
40983
+ onClick: C,
40977
40984
  children: [
40978
40985
  /* @__PURE__ */ a.jsx(Qc, { className: "icon-dim-16 mr-4 scn-7" }),
40979
40986
  " Edit"
@@ -41008,7 +41015,7 @@ const Ts = {
41008
41015
  preview: "mark-down-editor-preview pt-8",
41009
41016
  textArea: `mark-down-editor-textarea-wrapper ${n ? "" : "h-200-imp"}`
41010
41017
  },
41011
- getIcon: (A) => w(A),
41018
+ getIcon: (A) => T(A),
41012
41019
  toolbarCommands: HH,
41013
41020
  value: f,
41014
41021
  onChange: m,
@@ -41039,7 +41046,7 @@ const Ts = {
41039
41046
  "data-testid": "description-edit-cancel-button",
41040
41047
  className: "cta cancel flex h-36 mr-12",
41041
41048
  type: "button",
41042
- onClick: v,
41049
+ onClick: C,
41043
41050
  disabled: c,
41044
41051
  children: "Cancel"
41045
41052
  }