unifyedx-storybook-new 0.2.74 → 0.2.75

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.
@@ -157,8 +157,8 @@ const Dn = {
157
157
  iconHeight: d,
158
158
  iconColor: g,
159
159
  strokeWidth: S,
160
- onClick: A,
161
- ...F
160
+ onClick: F,
161
+ ...E
162
162
  }) => {
163
163
  const R = h || m, P = u && !y, j = H(
164
164
  "btn-base",
@@ -177,10 +177,10 @@ const Dn = {
177
177
  type: s,
178
178
  className: j,
179
179
  disabled: R,
180
- onClick: A,
180
+ onClick: F,
181
181
  title: a || P && i || (typeof y == "string" ? y : void 0),
182
182
  "aria-label": i || P && a || (typeof y == "string" ? y : void 0),
183
- ...F,
183
+ ...E,
184
184
  children: m ? /* @__PURE__ */ e(ja, { className: "loader-spin", "data-testid": "button-loader" }) : /* @__PURE__ */ n(ee, { children: [
185
185
  u && /* @__PURE__ */ e(u, { size: N === "large" ? 20 : 16, width: v || 16, height: d || 16, color: g || "#767676", strokeWidth: S || 2 }),
186
186
  y,
@@ -645,7 +645,7 @@ const Dn = {
645
645
  Fe,
646
646
  {
647
647
  className: "dialog-panel",
648
- onClick: (A) => A.stopPropagation(),
648
+ onClick: (F) => F.stopPropagation(),
649
649
  children: [
650
650
  /* @__PURE__ */ e("input", { ...i() }),
651
651
  /* @__PURE__ */ n("form", { onSubmit: y, className: "form-wrapper", children: [
@@ -688,7 +688,7 @@ const Dn = {
688
688
  S && /* @__PURE__ */ n("div", { className: "file-list-container", children: [
689
689
  /* @__PURE__ */ e("h3", { children: "Upload Queue" }),
690
690
  /* @__PURE__ */ n("ul", { className: "file-list", children: [
691
- o.map((A, F) => /* @__PURE__ */ n(
691
+ o.map((F, E) => /* @__PURE__ */ n(
692
692
  "li",
693
693
  {
694
694
  className: "file-item",
@@ -697,28 +697,28 @@ const Dn = {
697
697
  /* @__PURE__ */ e(
698
698
  At,
699
699
  {
700
- extension: A.name.split(".").pop()
700
+ extension: F.name.split(".").pop()
701
701
  }
702
702
  ),
703
703
  /* @__PURE__ */ n("div", { children: [
704
- /* @__PURE__ */ e("p", { className: "file-item-name", children: A.name }),
705
- /* @__PURE__ */ e("p", { className: "file-item-size", children: Ft(A.size) })
704
+ /* @__PURE__ */ e("p", { className: "file-item-name", children: F.name }),
705
+ /* @__PURE__ */ e("p", { className: "file-item-size", children: Ft(F.size) })
706
706
  ] })
707
707
  ] }),
708
708
  /* @__PURE__ */ e(
709
709
  "button",
710
710
  {
711
711
  type: "button",
712
- onClick: () => h(F),
712
+ onClick: () => h(E),
713
713
  className: "remove-file-button",
714
714
  children: /* @__PURE__ */ e(Le, { size: 16 })
715
715
  }
716
716
  )
717
717
  ]
718
718
  },
719
- `${A.name}-${F}`
719
+ `${F.name}-${E}`
720
720
  )),
721
- u.map(({ file: A, message: F }, R) => /* @__PURE__ */ n(
721
+ u.map(({ file: F, message: E }, R) => /* @__PURE__ */ n(
722
722
  "li",
723
723
  {
724
724
  className: "file-item file-item--rejected",
@@ -727,13 +727,13 @@ const Dn = {
727
727
  /* @__PURE__ */ e(
728
728
  At,
729
729
  {
730
- extension: A.name.split(".").pop()
730
+ extension: F.name.split(".").pop()
731
731
  }
732
732
  ),
733
733
  /* @__PURE__ */ n("div", { children: [
734
- /* @__PURE__ */ e("p", { className: "file-item-name", children: A.name }),
735
- /* @__PURE__ */ e("p", { className: "file-item-size", children: Ft(A.size) }),
736
- /* @__PURE__ */ e("p", { className: "rejection-reason", children: F })
734
+ /* @__PURE__ */ e("p", { className: "file-item-name", children: F.name }),
735
+ /* @__PURE__ */ e("p", { className: "file-item-size", children: Ft(F.size) }),
736
+ /* @__PURE__ */ e("p", { className: "rejection-reason", children: E })
737
737
  ] })
738
738
  ] }),
739
739
  /* @__PURE__ */ e(
@@ -747,7 +747,7 @@ const Dn = {
747
747
  )
748
748
  ]
749
749
  },
750
- `${A.name}-${R}`
750
+ `${F.name}-${R}`
751
751
  ))
752
752
  ] })
753
753
  ] })
@@ -842,7 +842,7 @@ const Dn = {
842
842
  startDate: null
843
843
  }), [g, S] = B({
844
844
  endDate: null
845
- }), A = qa({
845
+ }), F = qa({
846
846
  initialValues: JSON.parse(JSON.stringify(m)),
847
847
  // Deep copy
848
848
  onSubmit: ($) => {
@@ -859,8 +859,8 @@ const Dn = {
859
859
  }), a();
860
860
  },
861
861
  enableReinitialize: !0
862
- }), F = ae(() => l.reduce(($, x) => {
863
- const f = x.key, z = A.values[f];
862
+ }), E = ae(() => l.reduce(($, x) => {
863
+ const f = x.key, z = F.values[f];
864
864
  let O = !1;
865
865
  if (z)
866
866
  switch (x.type) {
@@ -873,15 +873,15 @@ const Dn = {
873
873
  break;
874
874
  }
875
875
  return $[f] = O, $;
876
- }, {}), [l, A.values]), R = Object.values(F).filter(Boolean).length, P = ae(() => l.some(($) => {
876
+ }, {}), [l, F.values]), R = Object.values(E).filter(Boolean).length, P = ae(() => l.some(($) => {
877
877
  if ($.type !== "date") return !1;
878
- const x = A.values?.[$.key]?.values;
878
+ const x = F.values?.[$.key]?.values;
879
879
  if (!Array.isArray(x) || x.length < 2) return !1;
880
880
  const [f, z] = x;
881
881
  if (!f || !z) return !1;
882
882
  const O = f instanceof Date ? f : new Date(f), I = z instanceof Date ? z : new Date(z);
883
883
  return O > I;
884
- }), [l, A.values]), j = async ($, x) => {
884
+ }), [l, F.values]), j = async ($, x) => {
885
885
  try {
886
886
  r((z) => ({ ...z, [$]: !0 }));
887
887
  const f = await u($, x);
@@ -895,11 +895,11 @@ const Dn = {
895
895
  const x = l[$].key, f = l[$].url;
896
896
  l[$].type === "multiselect-users" && h[x].length === 0 && !y[x] && j(x, f);
897
897
  }, Y = () => {
898
- A.resetForm(), N({ createdBy: [], updatedBy: [] }), i();
898
+ F.resetForm(), N({ createdBy: [], updatedBy: [] }), i();
899
899
  }, q = ($) => {
900
900
  const x = l.find((O) => O.key === $);
901
901
  if (!x) return null;
902
- const f = A.values[$] || m[$], z = Array.isArray(f.values) ? f.values : [];
902
+ const f = F.values[$] || m[$], z = Array.isArray(f.values) ? f.values : [];
903
903
  switch (x.type) {
904
904
  case "multiselect":
905
905
  return /* @__PURE__ */ n("div", { className: "filter-panel-content", children: [
@@ -909,9 +909,9 @@ const Dn = {
909
909
  "select",
910
910
  {
911
911
  value: f.operator || "in",
912
- onChange: (E) => A.setFieldValue(`${$}.operator`, E.target.value),
912
+ onChange: (A) => F.setFieldValue(`${$}.operator`, A.target.value),
913
913
  className: "filter-select",
914
- children: x.operators.map((E) => /* @__PURE__ */ e("option", { value: E, children: E === "in" ? "Includes" : "Excludes" }, E))
914
+ children: x.operators.map((A) => /* @__PURE__ */ e("option", { value: A, children: A === "in" ? "Includes" : "Excludes" }, A))
915
915
  }
916
916
  )
917
917
  ] }),
@@ -924,9 +924,9 @@ const Dn = {
924
924
  id: `select-all-${$}`,
925
925
  className: "filter-checkbox-input",
926
926
  checked: x.options.length > 0 && z.length === x.options.length,
927
- onChange: (E) => {
928
- const G = E.target.checked ? x.options.map((W) => W.value) : [];
929
- A.setFieldValue(`${$}.values`, G);
927
+ onChange: (A) => {
928
+ const G = A.target.checked ? x.options.map((W) => W.value) : [];
929
+ F.setFieldValue(`${$}.values`, G);
930
930
  }
931
931
  }
932
932
  ),
@@ -939,29 +939,29 @@ const Dn = {
939
939
  }
940
940
  )
941
941
  ] }),
942
- x.options.map((E) => /* @__PURE__ */ n("div", { className: "filter-checkbox-item", children: [
942
+ x.options.map((A) => /* @__PURE__ */ n("div", { className: "filter-checkbox-item", children: [
943
943
  /* @__PURE__ */ e(
944
944
  "input",
945
945
  {
946
946
  type: "checkbox",
947
- id: `${$}-${E.value}`,
947
+ id: `${$}-${A.value}`,
948
948
  className: "filter-checkbox-input",
949
- checked: z.includes(E.value),
949
+ checked: z.includes(A.value),
950
950
  onChange: (G) => {
951
- const W = G.target.checked ? [...z, E.value] : z.filter((pe) => pe !== E.value);
952
- A.setFieldValue(`${$}.values`, W);
951
+ const W = G.target.checked ? [...z, A.value] : z.filter((pe) => pe !== A.value);
952
+ F.setFieldValue(`${$}.values`, W);
953
953
  }
954
954
  }
955
955
  ),
956
956
  /* @__PURE__ */ e(
957
957
  "label",
958
958
  {
959
- htmlFor: `${$}-${E.value}`,
959
+ htmlFor: `${$}-${A.value}`,
960
960
  className: "filter-checkbox-label",
961
- children: E.label
961
+ children: A.label
962
962
  }
963
963
  )
964
- ] }, E.value))
964
+ ] }, A.value))
965
965
  ] })
966
966
  ] });
967
967
  case "multiselect-users":
@@ -973,9 +973,9 @@ const Dn = {
973
973
  "select",
974
974
  {
975
975
  value: f.operator || "in",
976
- onChange: (E) => A.setFieldValue(`${$}.operator`, E.target.value),
976
+ onChange: (A) => F.setFieldValue(`${$}.operator`, A.target.value),
977
977
  className: "filter-select",
978
- children: x.operators.map((E) => /* @__PURE__ */ e("option", { value: E, children: E === "in" ? "Includes" : "Excludes" }, E))
978
+ children: x.operators.map((A) => /* @__PURE__ */ e("option", { value: A, children: A === "in" ? "Includes" : "Excludes" }, A))
979
979
  }
980
980
  )
981
981
  ] }),
@@ -988,9 +988,9 @@ const Dn = {
988
988
  id: `select-all-users-${$}`,
989
989
  className: "filter-checkbox-input",
990
990
  checked: O.length > 0 && z.length === O.length,
991
- onChange: (E) => {
992
- const G = E.target.checked ? O.map((W) => W.email) : [];
993
- A.setFieldValue(
991
+ onChange: (A) => {
992
+ const G = A.target.checked ? O.map((W) => W.email) : [];
993
+ F.setFieldValue(
994
994
  `${$}.values`,
995
995
  G
996
996
  );
@@ -1006,17 +1006,17 @@ const Dn = {
1006
1006
  }
1007
1007
  )
1008
1008
  ] }),
1009
- O.map((E) => /* @__PURE__ */ n("div", { className: "filter-checkbox-item createdby", children: [
1009
+ O.map((A) => /* @__PURE__ */ n("div", { className: "filter-checkbox-item createdby", children: [
1010
1010
  /* @__PURE__ */ e(
1011
1011
  "input",
1012
1012
  {
1013
1013
  type: "checkbox",
1014
- id: `${$}-${E.email}`,
1014
+ id: `${$}-${A.email}`,
1015
1015
  className: "filter-checkbox-input",
1016
- checked: z.includes(E.email),
1016
+ checked: z.includes(A.email),
1017
1017
  onChange: (G) => {
1018
- const W = G.target.checked ? [...z, E.email] : z.filter((pe) => pe !== E.email);
1019
- A.setFieldValue(
1018
+ const W = G.target.checked ? [...z, A.email] : z.filter((pe) => pe !== A.email);
1019
+ F.setFieldValue(
1020
1020
  `${$}.values`,
1021
1021
  W
1022
1022
  );
@@ -1026,15 +1026,15 @@ const Dn = {
1026
1026
  /* @__PURE__ */ n(
1027
1027
  "label",
1028
1028
  {
1029
- htmlFor: `${$}-${E.email}`,
1029
+ htmlFor: `${$}-${A.email}`,
1030
1030
  className: "filter-checkbox-label",
1031
1031
  children: [
1032
- /* @__PURE__ */ e("span", { className: "user-label-name", children: E.name }),
1033
- /* @__PURE__ */ e("span", { className: "user-label-email", children: E.email })
1032
+ /* @__PURE__ */ e("span", { className: "user-label-name", children: A.name }),
1033
+ /* @__PURE__ */ e("span", { className: "user-label-email", children: A.email })
1034
1034
  ]
1035
1035
  }
1036
1036
  )
1037
- ] }, E.email))
1037
+ ] }, A.email))
1038
1038
  ] }) : /* @__PURE__ */ e("div", { className: "text-center py-4 text-gray-500 text-sm", children: "No users loaded." }) })
1039
1039
  ] });
1040
1040
  case "date":
@@ -1052,17 +1052,17 @@ const Dn = {
1052
1052
  { key: "this_month", label: "This Month" },
1053
1053
  { key: "last_month", label: "Last Month" },
1054
1054
  { key: "custom", label: "Custom" }
1055
- ], _ = (E) => {
1056
- if (E === "anytime") {
1057
- A.setFieldValue(`${$}.values`, []), A.setFieldValue(`${$}.range`, "anytime");
1055
+ ], _ = (A) => {
1056
+ if (A === "anytime") {
1057
+ F.setFieldValue(`${$}.values`, []), F.setFieldValue(`${$}.range`, "anytime");
1058
1058
  return;
1059
1059
  }
1060
- if (E === "custom") {
1061
- A.setFieldValue(`${$}.range`, "custom");
1060
+ if (A === "custom") {
1061
+ F.setFieldValue(`${$}.range`, "custom");
1062
1062
  return;
1063
1063
  }
1064
- const [G, W] = Mn(E);
1065
- A.setFieldValue(`${$}.values`, G && W ? [G, W] : []), A.setFieldValue(`${$}.range`, E);
1064
+ const [G, W] = Mn(A);
1065
+ F.setFieldValue(`${$}.values`, G && W ? [G, W] : []), F.setFieldValue(`${$}.range`, A);
1066
1066
  };
1067
1067
  return /* @__PURE__ */ n("div", { className: "filter-panel-content", children: [
1068
1068
  /* @__PURE__ */ n("div", { className: "filter-operator-group", children: [
@@ -1071,9 +1071,9 @@ const Dn = {
1071
1071
  "select",
1072
1072
  {
1073
1073
  value: f.operator,
1074
- onChange: (E) => A.setFieldValue(`${$}.operator`, E.target.value),
1074
+ onChange: (A) => F.setFieldValue(`${$}.operator`, A.target.value),
1075
1075
  className: "filter-select",
1076
- children: x.operators.map((E) => /* @__PURE__ */ e("option", { value: E, children: E === "in" ? "Is" : "Is not" }, E))
1076
+ children: x.operators.map((A) => /* @__PURE__ */ e("option", { value: A, children: A === "in" ? "Is" : "Is not" }, A))
1077
1077
  }
1078
1078
  ),
1079
1079
  w && /* @__PURE__ */ e(
@@ -1081,7 +1081,7 @@ const Dn = {
1081
1081
  {
1082
1082
  type: "button",
1083
1083
  onClick: () => {
1084
- A.setFieldValue(
1084
+ F.setFieldValue(
1085
1085
  $,
1086
1086
  m[$]
1087
1087
  );
@@ -1091,8 +1091,8 @@ const Dn = {
1091
1091
  }
1092
1092
  )
1093
1093
  ] }),
1094
- /* @__PURE__ */ e("div", { className: "pb-0", children: /* @__PURE__ */ e("div", { className: "space-y-3", children: M.map((E) => {
1095
- const G = f.range === E.key || E.key === "anytime" && (!Array.isArray(f.values) || f.values.length === 0);
1094
+ /* @__PURE__ */ e("div", { className: "pb-0", children: /* @__PURE__ */ e("div", { className: "space-y-3", children: M.map((A) => {
1095
+ const G = f.range === A.key || A.key === "anytime" && (!Array.isArray(f.values) || f.values.length === 0);
1096
1096
  return /* @__PURE__ */ n(
1097
1097
  "label",
1098
1098
  {
@@ -1104,15 +1104,15 @@ const Dn = {
1104
1104
  type: "radio",
1105
1105
  name: `preset-${$}`,
1106
1106
  checked: G,
1107
- onChange: () => _(E.key),
1107
+ onChange: () => _(A.key),
1108
1108
  className: "h-4 w-4"
1109
1109
  }
1110
1110
  ),
1111
- /* @__PURE__ */ e("span", { className: "text-sm text-[#222]", children: E.label }),
1112
- E.key === "anytime" && G && /* @__PURE__ */ e("span", { className: "ml-2 text-xs bg-yellow-100 text-yellow-800 px-2 py-0.5 rounded", children: "Default" })
1111
+ /* @__PURE__ */ e("span", { className: "text-sm text-[#222]", children: A.label }),
1112
+ A.key === "anytime" && G && /* @__PURE__ */ e("span", { className: "ml-2 text-xs bg-yellow-100 text-yellow-800 px-2 py-0.5 rounded", children: "Default" })
1113
1113
  ]
1114
1114
  },
1115
- E.key
1115
+ A.key
1116
1116
  );
1117
1117
  }) }) }),
1118
1118
  /* @__PURE__ */ n("div", { className: "", children: [
@@ -1125,9 +1125,9 @@ const Dn = {
1125
1125
  asSingle: !0,
1126
1126
  useRange: !1,
1127
1127
  value: L,
1128
- onChange: (E) => {
1129
- const G = E?.startDate ? Ve(new Date(E.startDate)) : null, W = D[1] || null;
1130
- G && (A.setFieldValue(`${$}.values`, [G, W]), A.setFieldValue(`${$}.range`, "custom"));
1128
+ onChange: (A) => {
1129
+ const G = A?.startDate ? Ve(new Date(A.startDate)) : null, W = D[1] || null;
1130
+ G && (F.setFieldValue(`${$}.values`, [G, W]), F.setFieldValue(`${$}.range`, "custom"));
1131
1131
  },
1132
1132
  inputClassName: "w-full rounded-xl border border-[#767676] px-4 py-2 text-sm font-normal text-[#101112] focus:border-violet-500 focus:outline-none focus:ring-1 focus:ring-violet-500",
1133
1133
  primaryColor: "violet",
@@ -1149,9 +1149,9 @@ const Dn = {
1149
1149
  asSingle: !0,
1150
1150
  useRange: !1,
1151
1151
  value: C,
1152
- onChange: (E) => {
1153
- const G = E?.startDate ? je(new Date(E.startDate)) : null, W = D[0] || null;
1154
- G && (A.setFieldValue(`${$}.values`, [W, G]), A.setFieldValue(`${$}.range`, "custom"));
1152
+ onChange: (A) => {
1153
+ const G = A?.startDate ? je(new Date(A.startDate)) : null, W = D[0] || null;
1154
+ G && (F.setFieldValue(`${$}.values`, [W, G]), F.setFieldValue(`${$}.range`, "custom"));
1155
1155
  },
1156
1156
  inputClassName: "w-full rounded-xl border border-[#767676] px-4 py-2 text-sm font-normal text-[#101112] focus:border-violet-500 focus:outline-none focus:ring-1 focus:ring-violet-500",
1157
1157
  primaryColor: "violet",
@@ -1208,7 +1208,7 @@ const Dn = {
1208
1208
  }
1209
1209
  )
1210
1210
  ] }),
1211
- /* @__PURE__ */ n("form", { onSubmit: A.handleSubmit, className: "filter-form", children: [
1211
+ /* @__PURE__ */ n("form", { onSubmit: F.handleSubmit, className: "filter-form", children: [
1212
1212
  /* @__PURE__ */ e("div", { className: "filter-content-wrapper", children: /* @__PURE__ */ n(
1213
1213
  Br,
1214
1214
  {
@@ -1223,7 +1223,7 @@ const Dn = {
1223
1223
  /* @__PURE__ */ e("div", { className: "filter-selection-horizontal-indicator" }),
1224
1224
  /* @__PURE__ */ n("div", { className: "filter-lbl-indicator-wrapper", children: [
1225
1225
  $.label,
1226
- F[$.key] && /* @__PURE__ */ e(
1226
+ E[$.key] && /* @__PURE__ */ e(
1227
1227
  "span",
1228
1228
  {
1229
1229
  className: "filter-active-indicator",
@@ -1267,7 +1267,7 @@ const Dn = {
1267
1267
  "button",
1268
1268
  {
1269
1269
  type: "submit",
1270
- disabled: !A.dirty || P,
1270
+ disabled: !F.dirty || P,
1271
1271
  className: "filter-button apply",
1272
1272
  children: [
1273
1273
  "Apply Filters",
@@ -2666,7 +2666,7 @@ const Ee = Kn(), Ze = Ee.axiosGet, ql = Ee.axiosDelete, xt = Ee.axiosPost, Yl =
2666
2666
  },
2667
2667
  isChanged: u = !1
2668
2668
  }) => {
2669
- const [h, N] = B(Mt[0]), [y, r] = B(""), v = zt(y, 400), [d, g] = B([]), [S, A] = B(/* @__PURE__ */ new Set()), [F, R] = B(!1), [P, j] = B(Lt[0]), {
2669
+ const [h, N] = B(Mt[0]), [y, r] = B(""), v = zt(y, 400), [d, g] = B([]), [S, F] = B(/* @__PURE__ */ new Set()), [E, R] = B(!1), [P, j] = B(Lt[0]), {
2670
2670
  control: U,
2671
2671
  handleSubmit: Y,
2672
2672
  watch: q,
@@ -2681,17 +2681,17 @@ const Ee = Kn(), Ze = Ee.axiosGet, ql = Ee.axiosDelete, xt = Ee.axiosPost, Yl =
2681
2681
  te(() => {
2682
2682
  v.length > 1 ? (R(!0), es(h.name, v).then((C) => {
2683
2683
  g(C);
2684
- }).catch((C) => console.error("Search failed:", C)).finally(() => R(!1))) : (g([]), A(/* @__PURE__ */ new Set()));
2684
+ }).catch((C) => console.error("Search failed:", C)).finally(() => R(!1))) : (g([]), F(/* @__PURE__ */ new Set()));
2685
2685
  }, [v, h]);
2686
2686
  const b = (C) => {
2687
- A((M) => {
2687
+ F((M) => {
2688
2688
  const _ = new Set(M);
2689
2689
  return _.has(C) ? _.delete(C) : _.add(C), _;
2690
2690
  });
2691
2691
  }, p = () => {
2692
2692
  d.filter((C) => S.has(C.id)).forEach((C) => {
2693
2693
  f.find((M) => M.id === C.id) || z({ ...C, permission: P.name });
2694
- }), A(/* @__PURE__ */ new Set()), r("");
2694
+ }), F(/* @__PURE__ */ new Set()), r("");
2695
2695
  }, w = (C) => {
2696
2696
  j(C), f.forEach(
2697
2697
  (M, _) => I(_, { ...f[_], permission: C.name })
@@ -2699,10 +2699,10 @@ const Ee = Kn(), Ze = Ee.axiosGet, ql = Ee.axiosDelete, xt = Ee.axiosPost, Yl =
2699
2699
  }, k = async (C) => {
2700
2700
  try {
2701
2701
  if (l === ue.DRIVE) {
2702
- const M = C.pendingInvites.map((E) => ({
2703
- id: E.id,
2704
- permission: E.permission,
2705
- type: E.type.toLowerCase()
2702
+ const M = C.pendingInvites.map((A) => ({
2703
+ id: A.id,
2704
+ permission: A.permission,
2705
+ type: A.type.toLowerCase()
2706
2706
  }));
2707
2707
  o({
2708
2708
  entity: t,
@@ -2722,10 +2722,10 @@ const Ee = Kn(), Ze = Ee.axiosGet, ql = Ee.axiosDelete, xt = Ee.axiosPost, Yl =
2722
2722
  }));
2723
2723
  o(M, i);
2724
2724
  } else if (l === ue.ARTICLE) {
2725
- const M = C.pendingInvites.map((E) => ({
2726
- id: E.id,
2727
- permission: E.permission,
2728
- type: E.type.toLowerCase()
2725
+ const M = C.pendingInvites.map((A) => ({
2726
+ id: A.id,
2727
+ permission: A.permission,
2728
+ type: A.type.toLowerCase()
2729
2729
  }));
2730
2730
  o({
2731
2731
  entity: t,
@@ -2836,7 +2836,7 @@ const Ee = Kn(), Ze = Ee.axiosGet, ql = Ee.axiosDelete, xt = Ee.axiosPost, Yl =
2836
2836
  value: y
2837
2837
  }
2838
2838
  ) }),
2839
- /* @__PURE__ */ e(Se, { children: (d?.length > 0 || F) && /* @__PURE__ */ e(
2839
+ /* @__PURE__ */ e(Se, { children: (d?.length > 0 || E) && /* @__PURE__ */ e(
2840
2840
  ie.div,
2841
2841
  {
2842
2842
  initial: { opacity: 0, y: -10 },
@@ -2844,7 +2844,7 @@ const Ee = Kn(), Ze = Ee.axiosGet, ql = Ee.axiosDelete, xt = Ee.axiosPost, Yl =
2844
2844
  exit: { opacity: 0, y: -10 },
2845
2845
  transition: { duration: 0.2 },
2846
2846
  className: "absolute top-full mt-2 w-full col-span-3 bg-white border border-gray-300 rounded-lg shadow-lg z-10",
2847
- children: F ? /* @__PURE__ */ e("div", { className: "p-4 text-center text-gray-500", children: "Loading..." }) : /* @__PURE__ */ n(ee, { children: [
2847
+ children: E ? /* @__PURE__ */ e("div", { className: "p-4 text-center text-gray-500", children: "Loading..." }) : /* @__PURE__ */ n(ee, { children: [
2848
2848
  /* @__PURE__ */ e("div", { className: "max-h-60 overflow-y-auto p-2 space-y-1", children: d.map((C) => {
2849
2849
  const M = T(C);
2850
2850
  return /* @__PURE__ */ n(
@@ -3162,7 +3162,7 @@ const Ee = Kn(), Ze = Ee.axiosGet, ql = Ee.axiosDelete, xt = Ee.axiosPost, Yl =
3162
3162
  roles: o.roles.filter((P) => P.permission !== "remove")
3163
3163
  };
3164
3164
  a(R);
3165
- }, A = ["users", "groups", "roles"], F = ["Users", "Groups", "Roles"];
3165
+ }, F = ["users", "groups", "roles"], E = ["Users", "Groups", "Roles"];
3166
3166
  return (
3167
3167
  // The main structure remains the same...
3168
3168
  /* @__PURE__ */ n("div", { className: "flex flex-col h-full bg-gray-50", children: [
@@ -3191,7 +3191,7 @@ const Ee = Kn(), Ze = Ee.axiosGet, ql = Ee.axiosDelete, xt = Ee.axiosPost, Yl =
3191
3191
  /* @__PURE__ */ n("div", { className: "flex flex-col flex-grow", children: [
3192
3192
  /* @__PURE__ */ n(se.Group, { selectedIndex: h, onChange: N, children: [
3193
3193
  /* @__PURE__ */ n("div", { className: "p-4 bg-white border-b border-gray-300", children: [
3194
- /* @__PURE__ */ e(se.List, { className: "flex space-x-1 bg-gray-100 p-1 rounded-lg", children: F.map((R) => /* @__PURE__ */ e(
3194
+ /* @__PURE__ */ e(se.List, { className: "flex space-x-1 bg-gray-100 p-1 rounded-lg", children: E.map((R) => /* @__PURE__ */ e(
3195
3195
  se,
3196
3196
  {
3197
3197
  className: ({
@@ -3208,7 +3208,7 @@ const Ee = Kn(), Ze = Ee.axiosGet, ql = Ee.axiosDelete, xt = Ee.axiosPost, Yl =
3208
3208
  {
3209
3209
  onDebouncedChange: r,
3210
3210
  value: y,
3211
- placeholder: `Search in ${F[h]}...`
3211
+ placeholder: `Search in ${E[h]}...`
3212
3212
  }
3213
3213
  ) })
3214
3214
  ] }),
@@ -3219,7 +3219,7 @@ const Ee = Kn(), Ze = Ee.axiosGet, ql = Ee.axiosDelete, xt = Ee.axiosPost, Yl =
3219
3219
  animate: { y: 0, opacity: 1 },
3220
3220
  exit: { y: -10, opacity: 0 },
3221
3221
  transition: { duration: 0.2 },
3222
- children: /* @__PURE__ */ e(se.Panels, { as: Q, children: A.map((R) => /* @__PURE__ */ e(
3222
+ children: /* @__PURE__ */ e(se.Panels, { as: Q, children: F.map((R) => /* @__PURE__ */ e(
3223
3223
  se.Panel,
3224
3224
  {
3225
3225
  className: "space-y-3 focus:outline-none",
@@ -3288,10 +3288,10 @@ const Ee = Kn(), Ze = Ee.axiosGet, ql = Ee.axiosDelete, xt = Ee.axiosPost, Yl =
3288
3288
  /* @__PURE__ */ e(Kt, { className: "h-12 w-12 text-gray-400" }),
3289
3289
  /* @__PURE__ */ n("h3", { className: "mt-2 text-sm font-medium text-gray-900", children: [
3290
3290
  "No ",
3291
- F[h],
3291
+ E[h],
3292
3292
  " Found"
3293
3293
  ] }),
3294
- /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-gray-500", children: y ? `No results for "${y}"` : `There are no ${F[h].toLowerCase()} with access.` })
3294
+ /* @__PURE__ */ e("p", { className: "mt-1 text-sm text-gray-500", children: y ? `No results for "${y}"` : `There are no ${E[h].toLowerCase()} with access.` })
3295
3295
  ]
3296
3296
  }
3297
3297
  )
@@ -3448,7 +3448,7 @@ const Ee = Kn(), Ze = Ee.axiosGet, ql = Ee.axiosDelete, xt = Ee.axiosPost, Yl =
3448
3448
  allowedPermissions: u = [],
3449
3449
  ...h
3450
3450
  }) => {
3451
- const [N, y] = B(be.INVITE), [r, v] = B(t), [d, g] = B(null), [S, A] = B(!1), [F, R] = B([]), [P, j] = B(be.MANAGE), U = () => {
3451
+ const [N, y] = B(be.INVITE), [r, v] = B(t), [d, g] = B(null), [S, F] = B(!1), [E, R] = B([]), [P, j] = B(be.MANAGE), U = () => {
3452
3452
  y(be.INVITE), g(null), m();
3453
3453
  }, Y = () => {
3454
3454
  y(be.MANAGE);
@@ -3467,7 +3467,7 @@ const Ee = Kn(), Ze = Ee.axiosGet, ql = Ee.axiosDelete, xt = Ee.axiosPost, Yl =
3467
3467
  const z = it.mapValues(t, (D) => D.map((b) => ({ id: b.id, permission: b.permission })).sort((b, p) => b.id - p.id)), O = it.mapValues(f, (D) => D.map((b) => ({ id: b.id, permission: b.permission })).sort((b, p) => b.id - p.id));
3468
3468
  console.log("Existing data:", z), console.log("Changed data:", O);
3469
3469
  const I = !it.isEqual(z, O);
3470
- console.log("hasPermissionChanged:", I), A(I), y(N === be.MEMBERS ? P : be.INVITE);
3470
+ console.log("hasPermissionChanged:", I), F(I), y(N === be.MEMBERS ? P : be.INVITE);
3471
3471
  };
3472
3472
  return /* @__PURE__ */ e(he, { appear: !0, show: a, as: Q, children: /* @__PURE__ */ n(ye, { as: "div", className: "relative z-50", onClose: U, children: [
3473
3473
  /* @__PURE__ */ e("div", { className: "filter-modal-overlay", "aria-hidden": "true" }),
@@ -3514,7 +3514,7 @@ const Ee = Kn(), Ze = Ee.axiosGet, ql = Ee.axiosDelete, xt = Ee.axiosPost, Yl =
3514
3514
  onClose: U,
3515
3515
  calledBy: l,
3516
3516
  existingShares: r,
3517
- members: F
3517
+ members: E
3518
3518
  }
3519
3519
  )
3520
3520
  },
@@ -3577,18 +3577,18 @@ function at({
3577
3577
  getOptionId: d = (S) => String(S.id),
3578
3578
  getOptionLabel: g = (S) => S.name
3579
3579
  }) {
3580
- const S = He(), A = He(), [F, R] = B(""), P = fe(""), j = ae(() => {
3580
+ const S = He(), F = He(), [E, R] = B(""), P = fe(""), j = ae(() => {
3581
3581
  const f = /* @__PURE__ */ new Map();
3582
3582
  for (const z of a) f.set(d(z), z);
3583
3583
  return f;
3584
3584
  }, [a, d]), U = ae(() => Array.isArray(s) ? s.map((f) => f && typeof f == "object" ? j.get(d(f)) || null : j.get(String(f))).filter(Boolean) : [], [s, j, d]), Y = ae(() => {
3585
- if (!F) return a;
3586
- const f = F.toLowerCase();
3585
+ if (!E) return a;
3586
+ const f = E.toLowerCase();
3587
3587
  return a.filter((z) => g(z).toLowerCase().includes(f));
3588
- }, [a, F, g]);
3588
+ }, [a, E, g]);
3589
3589
  te(() => {
3590
- N === "server" && F.length >= v && F !== P.current && (P.current = F, y && y(F));
3591
- }, [F, N, v, y]);
3590
+ N === "server" && E.length >= v && E !== P.current && (P.current = E, y && y(E));
3591
+ }, [E, N, v, y]);
3592
3592
  const q = N === "client" ? Y : a, $ = () => {
3593
3593
  if (!U.length)
3594
3594
  return /* @__PURE__ */ e("span", { className: "text-gray-500", children: m });
@@ -3627,7 +3627,7 @@ function at({
3627
3627
  {
3628
3628
  "aria-labelledby": S,
3629
3629
  "aria-invalid": !!o,
3630
- "aria-describedby": o ? A : void 0,
3630
+ "aria-describedby": o ? F : void 0,
3631
3631
  onBlur: l,
3632
3632
  className: Ge(
3633
3633
  "relative w-full min-h-[38px] cursor-default rounded-md bg-white py-1.5 pl-3 pr-10 text-left text-gray-900 shadow-sm ring-1 ring-inset focus:outline-none focus:ring-2 focus:ring-gray-600 sm:text-sm sm:leading-6",
@@ -3651,13 +3651,13 @@ function at({
3651
3651
  /* @__PURE__ */ e("div", { className: "p-2 sticky top-0 bg-white z-20 shadow-sm", children: /* @__PURE__ */ e(
3652
3652
  ge,
3653
3653
  {
3654
- value: F,
3654
+ value: E,
3655
3655
  onDebouncedChange: R,
3656
3656
  placeholder: N === "server" ? `Search (min ${v})…` : "Search options…"
3657
3657
  }
3658
3658
  ) }),
3659
3659
  N === "server" && r && /* @__PURE__ */ e("div", { className: "py-2 px-3 text-gray-500", children: "Loading…" }),
3660
- q.length === 0 && !r ? /* @__PURE__ */ e("div", { className: "py-2 px-3 text-gray-500", children: N === "server" ? F.length < v ? `Type at least ${v} characters to search.` : "No results." : "No options found." }) : q.map((z) => {
3660
+ q.length === 0 && !r ? /* @__PURE__ */ e("div", { className: "py-2 px-3 text-gray-500", children: N === "server" ? E.length < v ? `Type at least ${v} characters to search.` : "No results." : "No options found." }) : q.map((z) => {
3661
3661
  const O = d(z), I = g(z), D = U.some((p) => d(p) === O), b = h !== -1 && U.length >= h && !D;
3662
3662
  return /* @__PURE__ */ e(
3663
3663
  Z.Option,
@@ -3697,7 +3697,7 @@ function at({
3697
3697
  ] })
3698
3698
  }
3699
3699
  ),
3700
- o && /* @__PURE__ */ e("p", { id: A, className: "mt-1 text-sm text-red-600", children: o })
3700
+ o && /* @__PURE__ */ e("p", { id: F, className: "mt-1 text-sm text-red-600", children: o })
3701
3701
  ] })
3702
3702
  ] }) });
3703
3703
  }
@@ -3855,7 +3855,7 @@ function ms({
3855
3855
  dropId: y,
3856
3856
  indent: r = 24
3857
3857
  }) {
3858
- const { setNodeRef: v, isOver: d } = dr({ id: y }), { attributes: g, listeners: S, setNodeRef: A, transform: F, isDragging: R } = mr({ id: N }), P = F ? { transform: `translate3d(${Math.round(F.x)}px, ${Math.round(F.y)}px, 0)` } : void 0, [j, U] = B(!1), [Y, q] = B(t.name), $ = () => {
3858
+ const { setNodeRef: v, isOver: d } = dr({ id: y }), { attributes: g, listeners: S, setNodeRef: F, transform: E, isDragging: R } = mr({ id: N }), P = E ? { transform: `translate3d(${Math.round(E.x)}px, ${Math.round(E.y)}px, 0)` } : void 0, [j, U] = B(!1), [Y, q] = B(t.name), $ = () => {
3859
3859
  const f = Y.trim();
3860
3860
  U(!1), f && f !== t.name ? o?.(t, f) : q(t.name);
3861
3861
  }, x = ae(() => /* @__PURE__ */ e(
@@ -3883,7 +3883,7 @@ function ms({
3883
3883
  children: [
3884
3884
  /* @__PURE__ */ e("button", { className: "tv-toggle", onClick: i, "aria-label": "toggle", children: t.children?.length ? s ? /* @__PURE__ */ e(Nt, { size: 16 }) : /* @__PURE__ */ e(xe, { size: 16 }) : /* @__PURE__ */ e("span", { className: "tv-spacer" }) }),
3885
3885
  /* @__PURE__ */ e(Be, { size: 16, className: "tv-folder-ic" }),
3886
- /* @__PURE__ */ e("div", { className: "tv-name", ref: A, children: j ? /* @__PURE__ */ e(
3886
+ /* @__PURE__ */ e("div", { className: "tv-name", ref: F, children: j ? /* @__PURE__ */ e(
3887
3887
  "input",
3888
3888
  {
3889
3889
  className: "tv-input",
@@ -4000,7 +4000,7 @@ function Hl({
4000
4000
  const { roots: S } = ae(() => gs(t) ? fs(t, { rootId: a, getId: i, getName: m }) : bs(
4001
4001
  t.map((b) => ({ ...b })),
4002
4002
  { rootId: a, getId: i, getParent: l, getName: m }
4003
- ), [t, a, i, l, m]), [A, F] = B({}), R = K((b) => {
4003
+ ), [t, a, i, l, m]), [F, E] = B({}), R = K((b) => {
4004
4004
  const p = {};
4005
4005
  return (function w(k) {
4006
4006
  k.forEach((T) => {
@@ -4009,10 +4009,10 @@ function Hl({
4009
4009
  })(b), p;
4010
4010
  }, []);
4011
4011
  re.useEffect(() => {
4012
- F(R(S));
4012
+ E(R(S));
4013
4013
  }, [S, R]);
4014
4014
  const P = K(
4015
- (b) => F((p) => ({ ...p, [b]: !p[b] })),
4015
+ (b) => E((p) => ({ ...p, [b]: !p[b] })),
4016
4016
  []
4017
4017
  ), [j, U] = B(() => Me(S));
4018
4018
  re.useEffect(() => U(Me(S)), [S]);
@@ -4045,9 +4045,9 @@ function Hl({
4045
4045
  U(Me(S));
4046
4046
  return;
4047
4047
  }
4048
- const M = Me(j), { newRoots: _, removed: E } = ys(M, k);
4049
- if (!E) return;
4050
- const G = xs(_, L, E);
4048
+ const M = Me(j), { newRoots: _, removed: A } = ys(M, k);
4049
+ if (!A) return;
4050
+ const G = xs(_, L, A);
4051
4051
  U(G), r?.({ sourceId: k, destParentId: L, newTree: G });
4052
4052
  },
4053
4053
  [j, S, a, d, g, r]
@@ -4058,7 +4058,7 @@ function Hl({
4058
4058
  {
4059
4059
  node: w,
4060
4060
  depth: p,
4061
- expanded: !!A[w.id],
4061
+ expanded: !!F[w.id],
4062
4062
  onToggle: () => P(w.id),
4063
4063
  onSelect: o,
4064
4064
  onCreateChild: h,
@@ -4070,9 +4070,9 @@ function Hl({
4070
4070
  indent: g
4071
4071
  }
4072
4072
  ),
4073
- A[w.id] && w.children?.length > 0 ? D(w.children, p + 1) : null
4073
+ F[w.id] && w.children?.length > 0 ? D(w.children, p + 1) : null
4074
4074
  ] }, w.id)),
4075
- [A, g, h, y, N, o, v, P]
4075
+ [F, g, h, y, N, o, v, P]
4076
4076
  );
4077
4077
  return re.useMemo(() => {
4078
4078
  if (!$) return null;
@@ -5052,7 +5052,7 @@ function ws({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
5052
5052
  O(D)
5053
5053
  ] });
5054
5054
  }
5055
- }, A = K(() => {
5055
+ }, F = K(() => {
5056
5056
  console.log("[DataTableRenderer] Adding blank row"), r((x) => {
5057
5057
  console.log("[DataTableRenderer] Current data before add:", x);
5058
5058
  const f = {
@@ -5065,7 +5065,7 @@ function ws({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
5065
5065
  const z = [...x, f];
5066
5066
  return console.log("[DataTableRenderer] Updated data:", z), z;
5067
5067
  });
5068
- }, [l.fields]), F = K((x) => {
5068
+ }, [l.fields]), E = K((x) => {
5069
5069
  r((f) => {
5070
5070
  if (f.length <= 1)
5071
5071
  return f;
@@ -5105,7 +5105,7 @@ function ws({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
5105
5105
  "button",
5106
5106
  {
5107
5107
  className: "btn btn-primary text-white px-6 py-2 rounded-2xl cursor-pointer hover:bg-gray-800",
5108
- onClick: A,
5108
+ onClick: F,
5109
5109
  children: "Add"
5110
5110
  }
5111
5111
  )
@@ -5140,7 +5140,7 @@ function ws({ item: t, data: a, updateHandler: s, validationErrors: i = {} }) {
5140
5140
  /* @__PURE__ */ e("td", { className: "px-4 py-2 ", children: /* @__PURE__ */ e(
5141
5141
  "button",
5142
5142
  {
5143
- onClick: () => F(f),
5143
+ onClick: () => E(f),
5144
5144
  className: "text-red-500 hover:text-red-700",
5145
5145
  title: "Delete row",
5146
5146
  children: /* @__PURE__ */ e(yr, { size: 16 })
@@ -5194,7 +5194,7 @@ function Ss({
5194
5194
  onShowCancelModal: l,
5195
5195
  onCancel: m
5196
5196
  }) {
5197
- const [o, u] = re.useState(a), [h, N] = re.useState(null), [y, r] = re.useState(null), [v, d] = B(!1), [g, S] = B(!1), [A, F] = B({}), R = `${$e()}/unifyedxappmodulemanagement/api/v1/appmanager/${t}/configuration`, P = R, [j, U] = B(1), Y = () => {
5197
+ const [o, u] = re.useState(a), [h, N] = re.useState(null), [y, r] = re.useState(null), [v, d] = B(!1), [g, S] = B(!1), [F, E] = B({}), R = `${$e()}/unifyedxappmodulemanagement/api/v1/appmanager/${t}/configuration`, P = R, [j, U] = B(1), Y = () => {
5198
5198
  if (!y || !h)
5199
5199
  return console.log("[DynamicConfig] hasUnsavedChanges: false (no data)", { originalData: y, data: h }), !1;
5200
5200
  const b = (T) => {
@@ -5219,16 +5219,15 @@ function Ss({
5219
5219
  if (k.key && k.type === "datatable") {
5220
5220
  const L = (w[k.key] || []).map((C, M) => {
5221
5221
  const _ = { id: C.id || 0 };
5222
- return k.fields && k.fields.forEach((E) => {
5223
- if (E.fieldtype === "audience") {
5222
+ return k.fields && k.fields.forEach((A) => {
5223
+ if (A.fieldtype === "audience") {
5224
5224
  let G = { users: [], groups: [], roles: [] };
5225
- C[E.key] && (Array.isArray(C[E.key]) ? G = { users: [], groups: [], roles: [] } : typeof C[E.key] == "object" && (G = {
5226
- users: C[E.key].users || [],
5227
- groups: C[E.key].groups || [],
5228
- roles: C[E.key].roles || []
5229
- })), _[E.key] = G;
5230
- } else
5231
- _[E.key] = C[E.key] || E.default || "";
5225
+ C[A.key] && (Array.isArray(C[A.key]) ? G = { users: [], groups: [], roles: [] } : typeof C[A.key] == "object" && (G = {
5226
+ users: C[A.key].users || [],
5227
+ groups: C[A.key].groups || [],
5228
+ roles: C[A.key].roles || []
5229
+ })), _[A.key] = G;
5230
+ } else A.fieldtype === "select" ? _[A.key] = C[A.key] !== void 0 && C[A.key] !== "" ? C[A.key] : A.default || "" : _[A.key] = C[A.key] || A.default || "";
5232
5231
  }), _;
5233
5232
  });
5234
5233
  if (L.length === 0) {
@@ -5253,7 +5252,7 @@ function Ss({
5253
5252
  if (p.type === "datatable") {
5254
5253
  const w = { id: 0 };
5255
5254
  p.fields && p.fields.forEach((k) => {
5256
- k.fieldtype === "audience" ? w[k.key] = { users: [], groups: [], roles: [] } : w[k.key] = k.default || "";
5255
+ k.fieldtype === "audience" ? w[k.key] = { users: [], groups: [], roles: [] } : (k.fieldtype, w[k.key] = k.default || "");
5257
5256
  }), b[p.key] = [w];
5258
5257
  } else if (p.type === "section") {
5259
5258
  const w = {};
@@ -5300,7 +5299,7 @@ function Ss({
5300
5299
  [b]: p
5301
5300
  };
5302
5301
  return console.log("[DynamicConfig] Updated data state:", k), k;
5303
- }), F((w) => {
5302
+ }), E((w) => {
5304
5303
  const k = { ...w };
5305
5304
  return k[b] && delete k[b], k;
5306
5305
  });
@@ -5343,7 +5342,7 @@ function Ss({
5343
5342
  }
5344
5343
  console.log("[handleSave] Starting save process");
5345
5344
  const b = f();
5346
- if (F(b), z(b)) {
5345
+ if (E(b), z(b)) {
5347
5346
  let w = [];
5348
5347
  Object.keys(b).forEach((k) => {
5349
5348
  typeof b[k] == "object" && Object.keys(b[k]).forEach((T) => {
@@ -5366,12 +5365,12 @@ function Ss({
5366
5365
  const M = { id: C.id || 0 };
5367
5366
  return L.fields && L.fields.forEach((_) => {
5368
5367
  if (_.fieldtype === "audience") {
5369
- let E = { users: [], groups: [], roles: [] };
5370
- C[_.key] && typeof C[_.key] == "object" && !Array.isArray(C[_.key]) && (E = {
5368
+ let A = { users: [], groups: [], roles: [] };
5369
+ C[_.key] && typeof C[_.key] == "object" && !Array.isArray(C[_.key]) && (A = {
5371
5370
  users: C[_.key].users || [],
5372
5371
  groups: C[_.key].groups || [],
5373
5372
  roles: C[_.key].roles || []
5374
- }), M[_.key] = E;
5373
+ }), M[_.key] = A;
5375
5374
  } else
5376
5375
  M[_.key] = C[_.key] || "";
5377
5376
  }), M;
@@ -5379,7 +5378,7 @@ function Ss({
5379
5378
  }), (!w.appkey || w.appkey === "") && (w.appkey = t);
5380
5379
  let k = await xt(P, w);
5381
5380
  if (k && k.status != "fail") {
5382
- F({}), r(JSON.parse(JSON.stringify(h)));
5381
+ E({}), r(JSON.parse(JSON.stringify(h)));
5383
5382
  const T = k.message || "Configuration has been saved successfully";
5384
5383
  qe.success(T), i && typeof i == "function" && i(h);
5385
5384
  } else
@@ -5402,7 +5401,7 @@ function Ss({
5402
5401
  /* @__PURE__ */ n(
5403
5402
  "div",
5404
5403
  {
5405
- className: "dynamic-config bg-white w-full h-[calc(100vh-450px)] overflow-y-auto",
5404
+ className: "dynamic-config bg-white w-full h-[calc(100vh-500px)] overflow-y-auto",
5406
5405
  style: { padding: "0px 20px 0px 0px" },
5407
5406
  children: [
5408
5407
  v && /* @__PURE__ */ e("div", { className: "flex justify-center items-center h-64", children: /* @__PURE__ */ e(ba, { size: "large" }) }),
@@ -5415,7 +5414,7 @@ function Ss({
5415
5414
  item: b,
5416
5415
  data: h,
5417
5416
  updateHandler: x,
5418
- validationErrors: A
5417
+ validationErrors: F
5419
5418
  },
5420
5419
  p
5421
5420
  );
@@ -5507,9 +5506,9 @@ const Kl = ({
5507
5506
  href: f.href || "#"
5508
5507
  })), S = K(() => {
5509
5508
  o(!0);
5510
- }, []), A = K((f) => {
5511
- o(!1), f.primary && window.history.back();
5512
5509
  }, []), F = K((f) => {
5510
+ o(!1), f.primary && window.history.back();
5511
+ }, []), E = K((f) => {
5513
5512
  console.log("Configuration changed:", f);
5514
5513
  }, []), R = K(() => {
5515
5514
  window.history.back();
@@ -5558,8 +5557,8 @@ const Kl = ({
5558
5557
  configuration: v
5559
5558
  }), [v]), q = ae(() => [
5560
5559
  { label: "Overview", content: x(U) },
5561
- { label: "Configuration", content: /* @__PURE__ */ e(Ss, { appid: a, configdata: Y, disableApi: s, onSave: F, onShowCancelModal: S, onCancel: R }) }
5562
- ], [a, Y, s, F, S, R, U]);
5560
+ { label: "Configuration", content: /* @__PURE__ */ e(Ss, { appid: a, configdata: Y, disableApi: s, onSave: E, onShowCancelModal: S, onCancel: R }) }
5561
+ ], [a, Y, s, E, S, R, U]);
5563
5562
  function $(f) {
5564
5563
  return f ? f.includes("<svg") ? /* @__PURE__ */ e("div", { dangerouslySetInnerHTML: { __html: f } }) : f : "📱";
5565
5564
  }
@@ -5639,7 +5638,7 @@ const Kl = ({
5639
5638
  Ln,
5640
5639
  {
5641
5640
  isOpen: m,
5642
- onClose: A,
5641
+ onClose: F,
5643
5642
  variant: "warning",
5644
5643
  title: "Are you sure you want to cancel?",
5645
5644
  primaryButtonText: "Yes",
@@ -5658,7 +5657,7 @@ const Kl = ({
5658
5657
  allowReorder: o = !0,
5659
5658
  initialData: u = null
5660
5659
  }) => {
5661
- const [h, N] = B(null), [y, r] = B(""), [v, d] = B(() => Array.isArray(u) ? u : []), [g, S] = B(null), [A, F] = B(null), [R, P] = B("");
5660
+ const [h, N] = B(null), [y, r] = B(""), [v, d] = B(() => Array.isArray(u) ? u : []), [g, S] = B(null), [F, E] = B(null), [R, P] = B("");
5662
5661
  te(() => {
5663
5662
  Array.isArray(u) && d(u);
5664
5663
  }, [u]);
@@ -5701,12 +5700,12 @@ const Kl = ({
5701
5700
  if (!o || T === L) return p;
5702
5701
  const C = p.findIndex((G) => Number(G._id) === T), M = p.findIndex((G) => Number(G._id) === L);
5703
5702
  if (C === -1 || M === -1) return p;
5704
- const _ = [...p], [E] = _.splice(C, 1);
5705
- return _.splice(M, 0, E), _.map((G, W) => ({ ...G, order: W + 1 }));
5703
+ const _ = [...p], [A] = _.splice(C, 1);
5704
+ return _.splice(M, 0, A), _.map((G, W) => ({ ...G, order: W + 1 }));
5706
5705
  }, f = (p, w) => {
5707
5706
  o && (p.dataTransfer.effectAllowed = "move", p.dataTransfer.setData("text/plain", String(w)), S(Number(w)));
5708
5707
  }, z = (p) => {
5709
- g && p !== A && F(p);
5708
+ g && p !== F && E(p);
5710
5709
  }, O = (p) => {
5711
5710
  p.preventDefault();
5712
5711
  }, I = (p, w) => {
@@ -5715,9 +5714,9 @@ const Kl = ({
5715
5714
  T === void 0 || L === void 0 || (d((C) => {
5716
5715
  const M = x(C, T, L);
5717
5716
  return a?.(M), M;
5718
- }), S(null), F(null));
5717
+ }), S(null), E(null));
5719
5718
  }, D = () => {
5720
- S(null), F(null);
5719
+ S(null), E(null);
5721
5720
  }, b = Array.isArray(v) ? v.filter(
5722
5721
  (p) => p.categoryName?.toLowerCase().includes(R.toLowerCase())
5723
5722
  ) : [];
@@ -5746,7 +5745,7 @@ const Kl = ({
5746
5745
  )
5747
5746
  ] }) }),
5748
5747
  /* @__PURE__ */ e("div", { className: "mt-5 flex flex-col", children: b.map((p) => {
5749
- const w = h === p._id, k = p?.links?.length ?? 0, T = g === p._id, L = A === p._id && g !== p._id;
5748
+ const w = h === p._id, k = p?.links?.length ?? 0, T = g === p._id, L = F === p._id && g !== p._id;
5750
5749
  return /* @__PURE__ */ e(
5751
5750
  "div",
5752
5751
  {
@@ -5933,8 +5932,8 @@ const Bt = () => {
5933
5932
  showExcel: d = !1,
5934
5933
  showPdf: g = !1,
5935
5934
  showRefresh: S = !1,
5936
- showAdd: A = !1,
5937
- iSelectedRecords: F = 0,
5935
+ showAdd: F = !1,
5936
+ iSelectedRecords: E = 0,
5938
5937
  // Additional props
5939
5938
  searchPlaceholder: R = "Search...",
5940
5939
  handleRefreshClick: P = () => {
@@ -5959,8 +5958,8 @@ const Bt = () => {
5959
5958
  return;
5960
5959
  }
5961
5960
  try {
5962
- const M = L.currentTarget.getBoundingClientRect(), _ = M.left + window.scrollX, E = M.bottom + window.scrollY;
5963
- let G = _ - 120, W = E - 120;
5961
+ const M = L.currentTarget.getBoundingClientRect(), _ = M.left + window.scrollX, A = M.bottom + window.scrollY;
5962
+ let G = _ - 120, W = A - 120;
5964
5963
  const pe = window.innerWidth, Ne = window.innerHeight;
5965
5964
  G = w(G, window.scrollX + 8, window.scrollX + pe - 340), W = w(W, window.scrollY, window.scrollY + Ne - 120), C.openColumnChooser(G, W);
5966
5965
  } catch (M) {
@@ -6032,7 +6031,7 @@ const Bt = () => {
6032
6031
  icon: Le,
6033
6032
  onClick: () => T("Delete"),
6034
6033
  ariaLabel: "Delete",
6035
- disabled: F === 0
6034
+ disabled: E === 0
6036
6035
  }
6037
6036
  ),
6038
6037
  y && /* @__PURE__ */ e(
@@ -6084,7 +6083,7 @@ const Bt = () => {
6084
6083
  }
6085
6084
  )
6086
6085
  ] }),
6087
- A && m && /* @__PURE__ */ e(
6086
+ F && m && /* @__PURE__ */ e(
6088
6087
  le,
6089
6088
  {
6090
6089
  label: u,
@@ -6117,8 +6116,8 @@ function ai(t) {
6117
6116
  allowPdfExport: d = !1,
6118
6117
  showColumnChooser: g = !1,
6119
6118
  enableSearchApi: S = !1,
6120
- height: A = "600",
6121
- selectionSettings: F,
6119
+ height: F = "600",
6120
+ selectionSettings: E,
6122
6121
  enableCheckbox: R = !1,
6123
6122
  columns: P = [],
6124
6123
  onGridStateChange: j,
@@ -6132,7 +6131,7 @@ function ai(t) {
6132
6131
  sortSettings: O,
6133
6132
  ...I
6134
6133
  } = x || {}, [D, b] = re.useState(z?.page || l), [p, w] = re.useState(z?.pageSize || m), [k, T] = re.useState(O?.sortKey || "updatedDate"), [L, C] = re.useState(O?.direction || "Descending"), M = ae(() => {
6135
- const V = F || {
6134
+ const V = E || {
6136
6135
  type: "Multiple",
6137
6136
  mode: "Row"
6138
6137
  };
@@ -6145,9 +6144,9 @@ function ai(t) {
6145
6144
  checkboxOnly: !1,
6146
6145
  enableSimpleMultiRowSelection: !0
6147
6146
  } : V;
6148
- }, [F, R]), _ = ae(() => {
6147
+ }, [E, R]), _ = ae(() => {
6149
6148
  const V = [ln];
6150
- return (R || F) && V.push(on), u && V.push(cn), h && V.push(dn), N && V.push(mn), S && V.push(un), v && V.push(hn), d && V.push(pn), g && V.push(gn), r && V.push(bn), y && V.push(fn), V.push(yn), V;
6149
+ return (R || E) && V.push(on), u && V.push(cn), h && V.push(dn), N && V.push(mn), S && V.push(un), v && V.push(hn), d && V.push(pn), g && V.push(gn), r && V.push(bn), y && V.push(fn), V.push(yn), V;
6151
6150
  }, [
6152
6151
  u,
6153
6152
  h,
@@ -6159,8 +6158,8 @@ function ai(t) {
6159
6158
  r,
6160
6159
  y,
6161
6160
  R,
6162
- F
6163
- ]), E = ae(() => {
6161
+ E
6162
+ ]), A = ae(() => {
6164
6163
  const V = () => f.current, ne = (J, ce) => {
6165
6164
  !ce && process.env.NODE_ENV !== "production" && console.warn(`[CustomDataGrid] ${J} requested but related service/feature is disabled.`);
6166
6165
  };
@@ -6191,8 +6190,8 @@ function ai(t) {
6191
6190
  };
6192
6191
  }, [S, v, d, g]);
6193
6192
  te(() => {
6194
- $ && ($.current = E);
6195
- }, [$, E]), te(() => () => {
6193
+ $ && ($.current = A);
6194
+ }, [$, A]), te(() => () => {
6196
6195
  $ && ($.current = null);
6197
6196
  }, [$]);
6198
6197
  const G = (V) => {
@@ -6299,7 +6298,7 @@ function ai(t) {
6299
6298
  result: a,
6300
6299
  count: s
6301
6300
  },
6302
- height: A,
6301
+ height: F,
6303
6302
  allowPaging: o,
6304
6303
  allowSorting: u,
6305
6304
  allowFiltering: h,
@@ -6835,7 +6834,7 @@ function _s({
6835
6834
  // optional full embed URL override
6836
6835
  ...v
6837
6836
  }) {
6838
- const d = de(t), g = me[d], S = Bs[d], A = r || js(N, y);
6837
+ const d = de(t), g = me[d], S = Bs[d], F = r || js(N, y);
6839
6838
  return /* @__PURE__ */ e(
6840
6839
  oe,
6841
6840
  {
@@ -6851,7 +6850,7 @@ function _s({
6851
6850
  "iframe",
6852
6851
  {
6853
6852
  title: "Google Map",
6854
- src: A,
6853
+ src: F,
6855
6854
  className: "h-full w-full",
6856
6855
  style: { border: 0 },
6857
6856
  loading: "lazy",
@@ -6869,7 +6868,7 @@ function _s({
6869
6868
  /* @__PURE__ */ e("div", { className: "h-8 w-8 rounded-full bg-white/90 border border-zinc-300 flex items-center justify-center", children: "›" })
6870
6869
  ] })
6871
6870
  ] }),
6872
- /* @__PURE__ */ e("div", { className: "absolute left-4 right-4 top-14 md:top-12 pointer-events-none mt-2", children: /* @__PURE__ */ e("div", { className: `flex ${S.chipGap} overflow-x-auto scrollbar-none`, children: u.map((F) => /* @__PURE__ */ e(Vs, { label: F, active: F === h, size: d }, F)) }) }),
6871
+ /* @__PURE__ */ e("div", { className: "absolute left-4 right-4 top-14 md:top-12 pointer-events-none mt-2", children: /* @__PURE__ */ e("div", { className: `flex ${S.chipGap} overflow-x-auto scrollbar-none`, children: u.map((E) => /* @__PURE__ */ e(Vs, { label: E, active: E === h, size: d }, E)) }) }),
6873
6872
  /* @__PURE__ */ e("div", { className: "absolute left-4 right-4 top-28 md:top-24 pointer-events-none", children: /* @__PURE__ */ n("div", { className: `flex items-center rounded-full bg-white dark:bg-zinc-900 shadow border border-zinc-200 dark:border-zinc-700 px-4 ${S.searchH}`, children: [
6874
6873
  /* @__PURE__ */ e("svg", { width: "18", height: "18", viewBox: "0 0 24 24", "aria-hidden": "true", className: "opacity-60", children: /* @__PURE__ */ e("path", { fill: "currentColor", d: "M15.5 14h-.79l-.28-.27a6.471 6.471 0 001.48-4.23C15.91 6.01 13.4 3.5 10.45 3.5S5 6.01 5 9.5 7.5 15.5 10.45 15.5c1.61 0 3.09-.59 4.23-1.48l.27.28v.79l4.25 4.25c.41.41 1.07.41 1.48 0s.41-1.07 0-1.48L15.5 14Zm-5.05 0C8.01 14 6 11.99 6 9.5S8.01 5 10.45 5s4.45 2.01 4.45 4.5-2.01 4.5-4.45 4.5Z" }) }),
6875
6874
  /* @__PURE__ */ e("span", { className: "ml-2 text-zinc-500 dark:text-zinc-400", children: "Search places" })
@@ -7041,9 +7040,9 @@ function Ws({
7041
7040
  selectedIndex: u = 0,
7042
7041
  ...h
7043
7042
  }) {
7044
- const [N, y] = B(u), r = de(t), v = me[r], d = Gs[r], g = o[N] || o[0], S = (F, R) => {
7045
- y(R), i?.(F);
7046
- }, A = r === "lg";
7043
+ const [N, y] = B(u), r = de(t), v = me[r], d = Gs[r], g = o[N] || o[0], S = (E, R) => {
7044
+ y(R), i?.(E);
7045
+ }, F = r === "lg";
7047
7046
  return /* @__PURE__ */ n(
7048
7047
  oe,
7049
7048
  {
@@ -7059,35 +7058,35 @@ function Ws({
7059
7058
  /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${v.title}`, children: m }),
7060
7059
  /* @__PURE__ */ e("button", { className: "text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 text-sm font-medium transition-colors duration-200", children: "View All" })
7061
7060
  ] }),
7062
- A ? (
7061
+ F ? (
7063
7062
  // Large: Two-column layout
7064
7063
  /* @__PURE__ */ n("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-6", children: [
7065
- /* @__PURE__ */ e("div", { className: "space-y-1", children: o.map((F, R) => /* @__PURE__ */ e(
7064
+ /* @__PURE__ */ e("div", { className: "space-y-1", children: o.map((E, R) => /* @__PURE__ */ e(
7066
7065
  _t,
7067
7066
  {
7068
- ev: F,
7067
+ ev: E,
7069
7068
  sizeMeta: d,
7070
7069
  isSelected: R === N,
7071
7070
  onClick: (P) => S(P, R)
7072
7071
  },
7073
- F._id || F.id || R
7072
+ E._id || E.id || R
7074
7073
  )) }),
7075
7074
  /* @__PURE__ */ e(Ys, { ev: g, sizeMeta: d })
7076
7075
  ] })
7077
7076
  ) : (
7078
7077
  // Small/Medium: Simple list only
7079
- /* @__PURE__ */ e("div", { className: "space-y-1", children: o.map((F, R) => /* @__PURE__ */ e(
7078
+ /* @__PURE__ */ e("div", { className: "space-y-1", children: o.map((E, R) => /* @__PURE__ */ e(
7080
7079
  _t,
7081
7080
  {
7082
- ev: F,
7081
+ ev: E,
7083
7082
  sizeMeta: d,
7084
7083
  isSelected: R === N,
7085
7084
  onClick: (P) => S(P, R)
7086
7085
  },
7087
- F._id || F.id || R
7086
+ E._id || E.id || R
7088
7087
  )) })
7089
7088
  ),
7090
- !A && /* @__PURE__ */ e("div", { className: "mt-4 pt-3 border-t border-zinc-200 dark:border-zinc-800", children: /* @__PURE__ */ e("button", { className: "w-full text-center text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 text-sm font-medium transition-colors duration-200", children: "View All" }) })
7089
+ !F && /* @__PURE__ */ e("div", { className: "mt-4 pt-3 border-t border-zinc-200 dark:border-zinc-800", children: /* @__PURE__ */ e("button", { className: "w-full text-center text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 text-sm font-medium transition-colors duration-200", children: "View All" }) })
7091
7090
  ]
7092
7091
  }
7093
7092
  );
@@ -7258,9 +7257,9 @@ function Qs({
7258
7257
  onPin: N,
7259
7258
  ...y
7260
7259
  }) {
7261
- const [r, v] = B(u), d = de(t), g = me[d], S = Xs[d], A = (P, j) => {
7260
+ const [r, v] = B(u), d = de(t), g = me[d], S = Xs[d], F = (P, j) => {
7262
7261
  v(j), i?.(P);
7263
- }, F = (P) => {
7262
+ }, E = (P) => {
7264
7263
  const j = { ...P, starred: !P.starred };
7265
7264
  h?.(j);
7266
7265
  }, R = (P) => {
@@ -7286,8 +7285,8 @@ function Qs({
7286
7285
  email: P,
7287
7286
  sizeMeta: S,
7288
7287
  isSelected: j === r,
7289
- onClick: (U) => A(U, j),
7290
- onStar: F,
7288
+ onClick: (U) => F(U, j),
7289
+ onStar: E,
7291
7290
  onPin: R
7292
7291
  },
7293
7292
  P._id || P.id || j
@@ -7510,9 +7509,9 @@ function al({
7510
7509
  selectedIndex: u = 0,
7511
7510
  ...h
7512
7511
  }) {
7513
- const [N, y] = B(u), r = de(t), v = me[r], d = Ks[r], g = (F, R) => {
7514
- y(R), i?.(F);
7515
- }, S = o[N] || o[0], A = d.layout === "split";
7512
+ const [N, y] = B(u), r = de(t), v = me[r], d = Ks[r], g = (E, R) => {
7513
+ y(R), i?.(E);
7514
+ }, S = o[N] || o[0], F = d.layout === "split";
7516
7515
  return /* @__PURE__ */ n(
7517
7516
  oe,
7518
7517
  {
@@ -7526,16 +7525,16 @@ function al({
7526
7525
  children: [
7527
7526
  /* @__PURE__ */ e("div", { className: "flex items-center justify-between mb-4", children: /* @__PURE__ */ e("h3", { className: `font-semibold text-zinc-900 dark:text-zinc-100 ${v.title}`, children: m }) }),
7528
7527
  /* @__PURE__ */ e(tl, { sizeMeta: d }),
7529
- A ? /* @__PURE__ */ n("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-6 min-h-0", children: [
7530
- /* @__PURE__ */ e("div", { className: "space-y-3", children: o.map((F, R) => /* @__PURE__ */ e(
7528
+ F ? /* @__PURE__ */ n("div", { className: "grid grid-cols-1 lg:grid-cols-2 gap-6 min-h-0", children: [
7529
+ /* @__PURE__ */ e("div", { className: "space-y-3", children: o.map((E, R) => /* @__PURE__ */ e(
7531
7530
  Ut,
7532
7531
  {
7533
- contact: F,
7532
+ contact: E,
7534
7533
  sizeMeta: d,
7535
7534
  isSelected: R === N,
7536
7535
  onClick: (P) => g(P, R)
7537
7536
  },
7538
- F._id || F.id || R
7537
+ E._id || E.id || R
7539
7538
  )) }),
7540
7539
  /* @__PURE__ */ e(
7541
7540
  el,
@@ -7546,15 +7545,15 @@ function al({
7546
7545
  )
7547
7546
  ] }) : (
7548
7547
  // Single column layout for small screens
7549
- /* @__PURE__ */ e("div", { className: "space-y-3", children: o.map((F, R) => /* @__PURE__ */ e(
7548
+ /* @__PURE__ */ e("div", { className: "space-y-3", children: o.map((E, R) => /* @__PURE__ */ e(
7550
7549
  Ut,
7551
7550
  {
7552
- contact: F,
7551
+ contact: E,
7553
7552
  sizeMeta: d,
7554
7553
  isSelected: R === N,
7555
7554
  onClick: (P) => g(P, R)
7556
7555
  },
7557
- F._id || F.id || R
7556
+ E._id || E.id || R
7558
7557
  )) })
7559
7558
  ),
7560
7559
  /* @__PURE__ */ e("div", { className: "mt-4 pt-3 border-t border-zinc-200 dark:border-zinc-800", children: /* @__PURE__ */ e("button", { className: "w-full text-center text-blue-600 dark:text-blue-400 hover:text-blue-700 dark:hover:text-blue-300 text-sm font-medium transition-colors duration-200", children: "View All" }) })
@@ -7707,16 +7706,16 @@ function sl({
7707
7706
  /* @__PURE__ */ e("div", { className: "mt-1 font-semibold text-green-600", children: Te(N) })
7708
7707
  ] })
7709
7708
  ] }),
7710
- /* @__PURE__ */ e("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: y.slice(0, 2).map((S, A) => /* @__PURE__ */ e(
7709
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-1 md:grid-cols-2 gap-4", children: y.slice(0, 2).map((S, F) => /* @__PURE__ */ e(
7711
7710
  rl,
7712
7711
  {
7713
- side: A === 0 ? "left" : "right",
7712
+ side: F === 0 ? "left" : "right",
7714
7713
  date: S.date,
7715
7714
  title: S.title,
7716
7715
  amount: S.amount,
7717
7716
  kind: S.kind
7718
7717
  },
7719
- S.id || A
7718
+ S.id || F
7720
7719
  )) })
7721
7720
  ] })
7722
7721
  ] }),
@@ -7835,7 +7834,7 @@ function il({
7835
7834
  term: o = "Fall 2025",
7836
7835
  ...u
7837
7836
  }) {
7838
- const [h, N] = B("vacation"), [y, r] = B(!1), v = de(t), d = me[v], g = ll[v], S = Ye.find((A) => A.id === h) || Ye[0];
7837
+ const [h, N] = B("vacation"), [y, r] = B(!1), v = de(t), d = me[v], g = ll[v], S = Ye.find((F) => F.id === h) || Ye[0];
7839
7838
  return /* @__PURE__ */ n(
7840
7839
  oe,
7841
7840
  {
@@ -7871,18 +7870,18 @@ function il({
7871
7870
  ] })
7872
7871
  ] })
7873
7872
  ] }),
7874
- g.showTabs && /* @__PURE__ */ e("div", { className: "flex border-b border-zinc-200 dark:border-zinc-800", children: Ye.map((A) => /* @__PURE__ */ e(
7873
+ g.showTabs && /* @__PURE__ */ e("div", { className: "flex border-b border-zinc-200 dark:border-zinc-800", children: Ye.map((F) => /* @__PURE__ */ e(
7875
7874
  "button",
7876
7875
  {
7877
- className: `flex-1 py-2 px-4 text-center ${g.tab} font-medium border-b-2 transition-colors duration-200 ${h === A.id ? "border-blue-500 text-blue-600 dark:text-blue-400" : "border-transparent text-zinc-600 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-zinc-100"}`,
7878
- onClick: () => N(A.id),
7879
- children: A.name.split(" ")[0]
7876
+ className: `flex-1 py-2 px-4 text-center ${g.tab} font-medium border-b-2 transition-colors duration-200 ${h === F.id ? "border-blue-500 text-blue-600 dark:text-blue-400" : "border-transparent text-zinc-600 dark:text-zinc-400 hover:text-zinc-900 dark:hover:text-zinc-100"}`,
7877
+ onClick: () => N(F.id),
7878
+ children: F.name.split(" ")[0]
7880
7879
  },
7881
- A.id
7880
+ F.id
7882
7881
  )) }),
7883
7882
  /* @__PURE__ */ e("div", { className: "space-y-4 mb-6", children: g.showAllLeave ? (
7884
7883
  // LG: Show all leave types
7885
- Ye.map((A) => /* @__PURE__ */ e(Gt, { leave: A, sizeMeta: g }, A.id))
7884
+ Ye.map((F) => /* @__PURE__ */ e(Gt, { leave: F, sizeMeta: g }, F.id))
7886
7885
  ) : g.showSingleLeave ? (
7887
7886
  // MD: Show active tab leave type
7888
7887
  /* @__PURE__ */ e(Gt, { leave: S, sizeMeta: g })
@@ -8272,9 +8271,9 @@ function fl({
8272
8271
  showBanner: u = !0,
8273
8272
  ...h
8274
8273
  }) {
8275
- const [N, y] = B(o), r = de(t), v = me[r], d = hl[r], g = (F) => {
8276
- y((R) => R.filter((P) => P.id !== F.id));
8277
- }, S = N.find((F) => F.type === "banner"), A = N.filter((F) => F.type !== "banner");
8274
+ const [N, y] = B(o), r = de(t), v = me[r], d = hl[r], g = (E) => {
8275
+ y((R) => R.filter((P) => P.id !== E.id));
8276
+ }, S = N.find((E) => E.type === "banner"), F = N.filter((E) => E.type !== "banner");
8278
8277
  return /* @__PURE__ */ n(
8279
8278
  oe,
8280
8279
  {
@@ -8294,14 +8293,14 @@ function fl({
8294
8293
  onDismiss: g
8295
8294
  }
8296
8295
  ),
8297
- /* @__PURE__ */ e("div", { className: "space-y-0.5", children: A.slice(0, 3).map((F) => /* @__PURE__ */ e(
8296
+ /* @__PURE__ */ e("div", { className: "space-y-0.5", children: F.slice(0, 3).map((E) => /* @__PURE__ */ e(
8298
8297
  gl,
8299
8298
  {
8300
- alert: F,
8299
+ alert: E,
8301
8300
  sizeMeta: d,
8302
8301
  onDismiss: g
8303
8302
  },
8304
- F.id
8303
+ E.id
8305
8304
  )) }),
8306
8305
  /* @__PURE__ */ e("button", { className: "w-full py-3 px-4 border border-zinc-300 dark:border-zinc-600 text-zinc-700 dark:text-zinc-300 hover:bg-zinc-50 dark:hover:bg-zinc-800 font-medium rounded-lg transition-colors duration-200", children: "View All" })
8307
8306
  ]