@3squared/forge-ui-3 0.10.0 → 0.10.1

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.
@@ -1,15 +1,15 @@
1
1
  import he from "primevue/message";
2
- import { defineComponent as V, openBlock as i, createBlock as h, normalizeProps as ee, guardReactiveProps as te, withCtx as b, createElementVNode as c, normalizeClass as F, unref as m, createCommentVNode as S, createVNode as f, renderSlot as B, ref as I, createElementBlock as y, Fragment as N, mergeProps as C, onMounted as ae, watch as re, computed as k, isRef as le, createTextVNode as O, toDisplayString as w, withDirectives as L, vShow as H, mergeModels as j, useModel as E, createSlots as oe, renderList as q, withKeys as X, useAttrs as ce, withModifiers as Y, normalizeStyle as we } from "vue";
2
+ import { defineComponent as V, openBlock as i, createBlock as h, normalizeProps as ee, guardReactiveProps as te, withCtx as b, createElementVNode as m, normalizeClass as _, unref as p, createCommentVNode as S, createVNode as f, renderSlot as B, ref as I, createElementBlock as y, Fragment as N, mergeProps as C, onMounted as ae, watch as re, computed as k, isRef as le, createTextVNode as O, toDisplayString as w, withDirectives as R, vShow as H, mergeModels as j, useModel as E, createSlots as oe, renderList as q, withKeys as X, useAttrs as ce, withModifiers as Y, normalizeStyle as we } from "vue";
3
3
  import { Icon as T } from "@iconify/vue";
4
- import R from "primevue/button";
4
+ import L from "primevue/button";
5
5
  import xe from "primevue/toast";
6
6
  import ke from "primevue/checkbox";
7
7
  import { useField as K } from "vee-validate";
8
8
  import $e from "primevue/progressspinner";
9
9
  import Be from "primevue/dialog";
10
10
  import de from "primevue/inputtext";
11
- import { vOnClickOutside as _e } from "@vueuse/components";
12
- import Fe from "primevue/menubar";
11
+ import { vOnClickOutside as Fe } from "@vueuse/components";
12
+ import _e from "primevue/menubar";
13
13
  import Ve from "vue-multiselect";
14
14
  import Se from "primevue/calendar";
15
15
  import ne from "primevue/dropdown";
@@ -187,17 +187,17 @@ const Ae = {
187
187
  itemGroupLabel: "ps-2 fw-bold",
188
188
  input: "w-100"
189
189
  }
190
- }, Re = {
190
+ }, Le = {
191
191
  column: {
192
192
  sortBadge: "ms-2 my-auto cursor-pointer",
193
193
  headerCell: (e) => {
194
- var t, l, a, o;
194
+ var t, o, l, a;
195
195
  return {
196
196
  class: [
197
197
  {
198
198
  "cursor-move": e.props.reorderableColumns,
199
- "position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((l = e.column) == null ? void 0 : l.context.frozen) || ((a = e.column) == null ? void 0 : a.context.frozen) === "",
200
- "overflow-hidden position-relative bg-clip-padding": (o = e.column) == null ? void 0 : o.context.resizable
199
+ "position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((o = e.column) == null ? void 0 : o.context.frozen) || ((l = e.column) == null ? void 0 : l.context.frozen) === "",
200
+ "overflow-hidden position-relative bg-clip-padding": (a = e.column) == null ? void 0 : a.context.resizable
201
201
  }
202
202
  ]
203
203
  };
@@ -283,16 +283,16 @@ const Ae = {
283
283
  ]
284
284
  })
285
285
  }
286
- }, Le = {
286
+ }, Re = {
287
287
  inputtext: {
288
288
  root: (e) => {
289
- var t, l;
289
+ var t, o;
290
290
  return {
291
291
  class: [
292
292
  "form-control",
293
293
  {
294
294
  "form-control-lg": ((t = e.props.size) == null ? void 0 : t.toLowerCase()) == "large",
295
- "form-control-sm": ((l = e.props.size) == null ? void 0 : l.toLowerCase()) == "small"
295
+ "form-control-sm": ((o = e.props.size) == null ? void 0 : o.toLowerCase()) == "small"
296
296
  }
297
297
  ]
298
298
  };
@@ -836,15 +836,15 @@ const Ae = {
836
836
  class: ["ps-1"]
837
837
  }),
838
838
  icon: ({ props: e }) => {
839
- var t, l, a, o;
839
+ var t, o, l, a;
840
840
  return {
841
841
  class: [
842
842
  "toast-icon",
843
843
  {
844
844
  "text-primary": ((t = e.message) == null ? void 0 : t.severity) === "info",
845
- "text-success": ((l = e.message) == null ? void 0 : l.severity) === "success",
846
- "text-danger": ((a = e.message) == null ? void 0 : a.severity) === "error",
847
- "text-warning": ((o = e.message) == null ? void 0 : o.severity) === "warn"
845
+ "text-success": ((o = e.message) == null ? void 0 : o.severity) === "success",
846
+ "text-danger": ((l = e.message) == null ? void 0 : l.severity) === "error",
847
+ "text-warning": ((a = e.message) == null ? void 0 : a.severity) === "warn"
848
848
  }
849
849
  ]
850
850
  };
@@ -856,13 +856,13 @@ const Ae = {
856
856
  ...it,
857
857
  ...Ne,
858
858
  ...qe,
859
- ...Re,
859
+ ...Le,
860
860
  ...Xe,
861
861
  ...Ge,
862
862
  ...rt,
863
863
  ...Ee,
864
864
  ...dt,
865
- ...Le,
865
+ ...Re,
866
866
  ...je,
867
867
  ...He,
868
868
  ...We,
@@ -896,27 +896,27 @@ const Ae = {
896
896
  },
897
897
  setup(e) {
898
898
  const t = e;
899
- return (l, a) => {
900
- const o = he;
901
- return i(), h(o, ee(te({ ...l.$attrs, ...t })), {
899
+ return (o, l) => {
900
+ const a = he;
901
+ return i(), h(a, ee(te({ ...o.$attrs, ...t })), {
902
902
  messageicon: b(() => [
903
- c("div", {
904
- class: F(t.icon ? "me-2 pe-1" : "")
903
+ m("div", {
904
+ class: _(t.icon ? "me-2 pe-1" : "")
905
905
  }, [
906
- t.icon ? (i(), h(m(T), {
906
+ t.icon ? (i(), h(p(T), {
907
907
  key: 0,
908
908
  "data-cy": "message-icon",
909
909
  icon: t.icon,
910
- class: F(`text-${t.severity}`),
910
+ class: _(`text-${t.severity}`),
911
911
  height: 35
912
912
  }, null, 8, ["icon", "class"])) : S("", !0)
913
913
  ], 2)
914
914
  ]),
915
915
  closeicon: b(() => [
916
- f(m(T), { icon: "bi:x" })
916
+ f(p(T), { icon: "bi:x" })
917
917
  ]),
918
918
  default: b(() => [
919
- B(l.$slots, "default")
919
+ B(o.$slots, "default")
920
920
  ]),
921
921
  _: 3
922
922
  }, 16);
@@ -931,28 +931,28 @@ const Ae = {
931
931
  params: { default: Array }
932
932
  },
933
933
  setup(e) {
934
- const t = I(!1), l = e, a = async () => {
934
+ const t = I(!1), o = e, l = async () => {
935
935
  t.value = !0;
936
936
  try {
937
- await l.action.apply(this, l.params);
938
- } catch (o) {
939
- await l.errorAction.apply(this, l.errorParams ? [...l.errorParams, o] : [o]);
937
+ await o.action.apply(this, o.params);
938
+ } catch (a) {
939
+ await o.errorAction.apply(this, o.errorParams ? [...o.errorParams, a] : [a]);
940
940
  }
941
941
  t.value = !1;
942
942
  };
943
- return (o, s) => {
944
- const d = R;
943
+ return (a, n) => {
944
+ const d = L;
945
945
  return i(), y(N, null, [
946
- f(d, C({ ...l, ...o.$attrs }, {
946
+ f(d, C({ ...o, ...a.$attrs }, {
947
947
  loading: t.value,
948
- disabled: t.value || l.disabled,
949
- onClick: a
948
+ disabled: t.value || o.disabled,
949
+ onClick: l
950
950
  }), null, 16, ["loading", "disabled"]),
951
- f(m(xe))
951
+ f(p(xe))
952
952
  ], 64);
953
953
  };
954
954
  }
955
- }), ct = /* @__PURE__ */ c("div", null, null, -1), mt = ["for"], ve = /* @__PURE__ */ V({
955
+ }), ct = /* @__PURE__ */ m("div", null, null, -1), mt = ["for"], ve = /* @__PURE__ */ V({
956
956
  __name: "ForgeCheckbox",
957
957
  props: {
958
958
  label: { default: "" },
@@ -979,53 +979,53 @@ const Ae = {
979
979
  },
980
980
  emits: ["update:modelValue"],
981
981
  setup(e, { emit: t }) {
982
- const l = t, a = e, { checked: o, handleChange: s, setValue: d, errors: r, errorMessage: v } = K(() => a.name ?? a.label, void 0, {
982
+ const o = t, l = e, { checked: a, handleChange: n, setValue: d, errors: u, errorMessage: c } = K(() => l.name ?? l.label, void 0, {
983
983
  type: "checkbox",
984
984
  checkedValue: !0
985
- }), u = (p) => {
986
- a.disabled || (s(p), l("update:modelValue", !a.modelValue));
985
+ }), r = (v) => {
986
+ l.disabled || (n(v), o("update:modelValue", !l.modelValue));
987
987
  };
988
988
  ae(() => {
989
- a.value !== void 0 && a.value !== (o == null ? void 0 : o.value) ? d(a.value) : a.modelValue !== void 0 && a.modelValue !== (o == null ? void 0 : o.value) && d(a.modelValue);
990
- }), re(() => a.value, (p) => {
991
- d(p);
989
+ l.value !== void 0 && l.value !== (a == null ? void 0 : a.value) ? d(l.value) : l.modelValue !== void 0 && l.modelValue !== (a == null ? void 0 : a.value) && d(l.modelValue);
990
+ }), re(() => l.value, (v) => {
991
+ d(v);
992
992
  });
993
- const n = k(() => r.value.length > 0);
994
- return (p, x) => {
995
- const _ = ke;
993
+ const s = k(() => u.value.length > 0);
994
+ return (v, x) => {
995
+ const F = ke;
996
996
  return i(), y(N, null, [
997
- c("div", C({
997
+ m("div", C({
998
998
  class: "d-flex",
999
999
  "data-cy": "checkbox-container"
1000
- }, { ...p.$attrs }), [
1001
- f(_, C({
1002
- id: a.name
1003
- }, { ...a }, {
1004
- modelValue: m(o),
1005
- "onUpdate:modelValue": x[0] || (x[0] = (P) => le(o) ? o.value = P : null),
1006
- "input-class": { "is-invalid": n.value },
1007
- onChange: u
1000
+ }, { ...v.$attrs }), [
1001
+ f(F, C({
1002
+ id: l.name
1003
+ }, { ...l }, {
1004
+ modelValue: p(a),
1005
+ "onUpdate:modelValue": x[0] || (x[0] = (P) => le(a) ? a.value = P : null),
1006
+ "input-class": { "is-invalid": s.value },
1007
+ onChange: r
1008
1008
  }), {
1009
1009
  icon: b(() => [
1010
1010
  ct
1011
1011
  ]),
1012
1012
  _: 1
1013
1013
  }, 16, ["id", "modelValue", "input-class"]),
1014
- c("label", {
1015
- for: a.name,
1016
- class: F(`${a.disabled ? "opacity-50" : "cursor-pointer"} ${n.value ? "text-danger-dark" : ""}`),
1017
- onClick: u
1014
+ m("label", {
1015
+ for: l.name,
1016
+ class: _(`${l.disabled ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`),
1017
+ onClick: r
1018
1018
  }, [
1019
- B(p.$slots, "default", {}, () => [
1020
- O(w(a.label), 1)
1019
+ B(v.$slots, "default", {}, () => [
1020
+ O(w(l.label), 1)
1021
1021
  ])
1022
1022
  ], 10, mt)
1023
1023
  ], 16),
1024
- L(c("small", {
1024
+ R(m("small", {
1025
1025
  "data-cy": "error",
1026
1026
  class: "text-invalid"
1027
- }, w(m(v)), 513), [
1028
- [H, n.value]
1027
+ }, w(p(c)), 513), [
1028
+ [H, s.value]
1029
1029
  ])
1030
1030
  ], 64);
1031
1031
  };
@@ -1037,12 +1037,12 @@ const Ae = {
1037
1037
  },
1038
1038
  setup(e) {
1039
1039
  const t = e;
1040
- return (l, a) => {
1041
- const o = $e;
1040
+ return (o, l) => {
1041
+ const a = $e;
1042
1042
  return i(), y("div", pt, [
1043
- f(o, {
1043
+ f(a, {
1044
1044
  "animation-duration": ".75",
1045
- class: F(`text-${t.severity === void 0 ? "primary" : t.severity}`)
1045
+ class: _(`text-${t.severity === void 0 ? "primary" : t.severity}`)
1046
1046
  }, null, 8, ["class"])
1047
1047
  ]);
1048
1048
  };
@@ -1074,27 +1074,27 @@ const Ae = {
1074
1074
  [`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
1075
1075
  [`link-offset-${e.underlineOffset}`]: e.underlineOffset,
1076
1076
  "icon-link icon-link-hover": e.animateIconOnHover
1077
- })), l = k(() => ({
1077
+ })), o = k(() => ({
1078
1078
  "order-2": e.positionIconEnd,
1079
1079
  "me-1": !e.positionIconEnd && !e.animateIconOnHover,
1080
1080
  "ms-1": e.positionIconEnd && !e.animateIconOnHover,
1081
1081
  "ms-0": e.positionIconEnd && e.animateIconOnHover,
1082
1082
  "me-0": e.animateIconOnHover
1083
1083
  }));
1084
- return (a, o) => (i(), y("a", {
1084
+ return (l, a) => (i(), y("a", {
1085
1085
  id: "link",
1086
- class: F(["cursor-pointer d-flex", t.value]),
1087
- href: a.url,
1088
- target: a.target
1086
+ class: _(["cursor-pointer d-flex", t.value]),
1087
+ href: l.url,
1088
+ target: l.target
1089
1089
  }, [
1090
- B(a.$slots, "default", {}, () => [
1091
- a.iconName ? (i(), h(m(T), {
1090
+ B(l.$slots, "default", {}, () => [
1091
+ l.iconName ? (i(), h(p(T), {
1092
1092
  key: 0,
1093
1093
  id: "link-icon",
1094
- icon: a.iconName,
1095
- class: F(["bi my-auto", l.value])
1094
+ icon: l.iconName,
1095
+ class: _(["bi my-auto", o.value])
1096
1096
  }, null, 8, ["icon", "class"])) : S("", !0),
1097
- O(" " + w(a.label), 1)
1097
+ O(" " + w(l.label), 1)
1098
1098
  ])
1099
1099
  ], 10, vt));
1100
1100
  }
@@ -1105,8 +1105,8 @@ function yt(e) {
1105
1105
  errorDetails: []
1106
1106
  };
1107
1107
  if (e.exception && (t.errorMessage = e.exception), e.message && (Array.isArray(e.message) ? t.errorDetails = e.message : t.errorMessage = e.message), e.response) {
1108
- const l = JSON.parse(e.response);
1109
- l.errors && (t.errorDetails = Object.values(l.errors).flat()), l.message && (t.errorDetails = l.message);
1108
+ const o = JSON.parse(e.response);
1109
+ o.errors && (t.errorDetails = Object.values(o.errors).flat()), o.message && (t.errorDetails = o.message);
1110
1110
  }
1111
1111
  return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
1112
1112
  }
@@ -1158,105 +1158,105 @@ const bt = { key: 0 }, ft = {
1158
1158
  }),
1159
1159
  emits: ["update:visible"],
1160
1160
  setup(e) {
1161
- const t = E(e, "visible"), l = I(!1), a = e, o = I(!1), s = I({
1161
+ const t = E(e, "visible"), o = I(!1), l = e, a = I(!1), n = I({
1162
1162
  hasError: !1,
1163
1163
  header: "",
1164
1164
  message: []
1165
1165
  }), d = () => {
1166
- l.value = !1;
1167
- }, r = () => {
1168
- l.value = !0;
1169
- }, v = () => {
1166
+ o.value = !1;
1167
+ }, u = () => {
1168
+ o.value = !0;
1169
+ }, c = () => {
1170
1170
  t.value = !1;
1171
- }, u = async () => {
1172
- if (a.onConfirm) {
1173
- o.value = !0, s.value.hasError = !1;
1171
+ }, r = async () => {
1172
+ if (l.onConfirm) {
1173
+ a.value = !0, n.value.hasError = !1;
1174
1174
  try {
1175
- const p = await a.onConfirm();
1176
- (p || p == null) && v();
1177
- } catch (p) {
1178
- s.value.hasError = !0;
1179
- const x = yt(p);
1180
- s.value.header = x.errorMessage, s.value.message = x.errorDetails;
1175
+ const v = await l.onConfirm();
1176
+ (v || v == null) && c();
1177
+ } catch (v) {
1178
+ n.value.hasError = !0;
1179
+ const x = yt(v);
1180
+ n.value.header = x.errorMessage, n.value.message = x.errorDetails;
1181
1181
  }
1182
- o.value = !1;
1182
+ a.value = !1;
1183
1183
  }
1184
- }, n = k(() => ({
1184
+ }, s = k(() => ({
1185
1185
  root: [
1186
1186
  "modal modal-dialog modal-content h-auto m-0",
1187
1187
  {
1188
- "mw-100 vh-100 vw-100 top-0 start-0": l.value
1188
+ "mw-100 vh-100 vw-100 top-0 start-0": o.value
1189
1189
  }
1190
1190
  ]
1191
1191
  }));
1192
- return (p, x) => {
1193
- const _ = R, P = Be;
1194
- return i(), h(P, C(a, {
1195
- onMaximize: r,
1192
+ return (v, x) => {
1193
+ const F = L, P = Be;
1194
+ return i(), h(P, C(l, {
1195
+ onMaximize: u,
1196
1196
  onUnmaximize: d,
1197
- pt: n.value
1197
+ pt: s.value
1198
1198
  }), oe({
1199
1199
  closeicon: b(() => [
1200
- f(m(T), {
1200
+ f(p(T), {
1201
1201
  "data-cy": "close-icon",
1202
1202
  icon: "bi:x-lg",
1203
1203
  width: "18",
1204
1204
  height: "18",
1205
- onClick: v
1205
+ onClick: c
1206
1206
  })
1207
1207
  ]),
1208
1208
  maximizeicon: b(() => [
1209
- f(m(T), {
1209
+ f(p(T), {
1210
1210
  "data-cy": "maximisable-icon",
1211
- icon: l.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1211
+ icon: o.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1212
1212
  width: "16",
1213
1213
  height: "16"
1214
1214
  }, null, 8, ["icon"])
1215
1215
  ]),
1216
1216
  _: 2
1217
1217
  }, [
1218
- q(p.$slots, (M, z) => ({
1218
+ q(v.$slots, (M, z) => ({
1219
1219
  name: z,
1220
1220
  fn: b((g) => [
1221
- s.value.hasError ? (i(), h(se, {
1221
+ n.value.hasError ? (i(), h(se, {
1222
1222
  key: 0,
1223
1223
  severity: "danger",
1224
1224
  "data-cy": "error"
1225
1225
  }, {
1226
1226
  default: b(() => [
1227
- c("p", {
1228
- class: F(s.value.message.length > 0 ? "my-auto" : "mb-0")
1229
- }, w(s.value.header), 3),
1230
- s.value.message.length > 0 ? (i(), y("ul", bt, [
1231
- (i(!0), y(N, null, q(s.value.message, ($) => (i(), y("li", { key: $ }, w($), 1))), 128))
1227
+ m("p", {
1228
+ class: _(n.value.message.length > 0 ? "my-auto" : "mb-0")
1229
+ }, w(n.value.header), 3),
1230
+ n.value.message.length > 0 ? (i(), y("ul", bt, [
1231
+ (i(!0), y(N, null, q(n.value.message, ($) => (i(), y("li", { key: $ }, w($), 1))), 128))
1232
1232
  ])) : S("", !0)
1233
1233
  ]),
1234
1234
  _: 1
1235
1235
  })) : S("", !0),
1236
- B(p.$slots, z, ee(te(g || {}))),
1237
- o.value ? B(p.$slots, "loader", { key: 1 }, () => [
1236
+ B(v.$slots, z, ee(te(g || {}))),
1237
+ a.value ? B(v.$slots, "loader", { key: 1 }, () => [
1238
1238
  f(ye, { "data-cy": "loader" })
1239
1239
  ]) : S("", !0)
1240
1240
  ])
1241
1241
  })),
1242
- p.showFooter ? {
1242
+ v.showFooter ? {
1243
1243
  name: "footer",
1244
1244
  fn: b(() => [
1245
- c("div", ft, [
1246
- f(_, {
1247
- label: p.cancelText,
1248
- class: F(a.cancelClass),
1245
+ m("div", ft, [
1246
+ f(F, {
1247
+ label: v.cancelText,
1248
+ class: _(l.cancelClass),
1249
1249
  outlined: "",
1250
- onClick: v,
1250
+ onClick: c,
1251
1251
  id: "cancel-button",
1252
- type: a.cancelButtonType
1252
+ type: l.cancelButtonType
1253
1253
  }, null, 8, ["label", "class", "type"]),
1254
- f(_, {
1255
- label: p.submitText,
1256
- class: F([a.submitClass, "ms-auto"]),
1257
- onClick: u,
1254
+ f(F, {
1255
+ label: v.submitText,
1256
+ class: _([l.submitClass, "ms-auto"]),
1257
+ onClick: r,
1258
1258
  id: "submit-button",
1259
- type: a.submitButtonType
1259
+ type: l.submitButtonType
1260
1260
  }, null, 8, ["label", "class", "type"])
1261
1261
  ])
1262
1262
  ]),
@@ -1280,111 +1280,111 @@ const bt = { key: 0 }, ft = {
1280
1280
  }),
1281
1281
  emits: ["update:modelValue"],
1282
1282
  setup(e) {
1283
- const t = e, l = E(e, "modelValue"), a = I(!1), o = I(), s = () => {
1284
- var _;
1285
- a.value = !a.value, (_ = o.value) == null || _.focus();
1283
+ const t = e, o = E(e, "modelValue"), l = I(!1), a = I(), n = () => {
1284
+ var F;
1285
+ l.value = !l.value, (F = a.value) == null || F.focus();
1286
1286
  }, d = async () => {
1287
1287
  if (x.value)
1288
1288
  return !1;
1289
- if (l.value = p.value, t.completeAction)
1289
+ if (o.value = v.value, t.completeAction)
1290
1290
  try {
1291
- await t.completeAction.apply(this, t.params), a.value = !a.value;
1291
+ await t.completeAction.apply(this, t.params), l.value = !l.value;
1292
1292
  } catch {
1293
1293
  t.errorAction && await t.errorAction.apply(this, t.errorParams);
1294
1294
  }
1295
1295
  else
1296
- a.value = !a.value;
1297
- }, r = () => {
1298
- a.value = !a.value;
1299
- }, v = () => {
1300
- p.value = null;
1301
- }, { errorMessage: u, errors: n, value: p } = K(() => t.name, void 0, {
1302
- initialValue: l.value
1296
+ l.value = !l.value;
1297
+ }, u = () => {
1298
+ l.value = !l.value;
1299
+ }, c = () => {
1300
+ v.value = null;
1301
+ }, { errorMessage: r, errors: s, value: v } = K(() => t.name, void 0, {
1302
+ initialValue: o.value
1303
1303
  });
1304
1304
  ae(() => {
1305
- p.value = l.value;
1305
+ v.value = o.value;
1306
1306
  });
1307
- const x = k(() => n.value.length > 0);
1308
- return (_, P) => {
1309
- const M = de, z = R;
1307
+ const x = k(() => s.value.length > 0);
1308
+ return (F, P) => {
1309
+ const M = de, z = L;
1310
1310
  return i(), y("div", {
1311
1311
  id: t.name
1312
1312
  }, [
1313
- _.readonly ? (i(), y("div", kt, [
1314
- B(_.$slots, "default", {}, () => [
1315
- c("span", $t, w(m(p)), 1)
1313
+ F.readonly ? (i(), y("div", kt, [
1314
+ B(F.$slots, "default", {}, () => [
1315
+ m("span", $t, w(p(v)), 1)
1316
1316
  ])
1317
1317
  ])) : (i(), y("div", ht, [
1318
- a.value ? (i(), y("div", wt, [
1319
- L((i(), y("div", xt, [
1320
- B(_.$slots, "editor", {
1321
- class: F({ "is-invalid": x.value }),
1318
+ l.value ? (i(), y("div", wt, [
1319
+ R((i(), y("div", xt, [
1320
+ B(F.$slots, "editor", {
1321
+ class: _({ "is-invalid": x.value }),
1322
1322
  editFinished: d,
1323
- cancel: r,
1324
- val: m(p)
1323
+ cancel: u,
1324
+ val: p(v)
1325
1325
  }, () => [
1326
1326
  f(M, {
1327
1327
  "data-cy": "input",
1328
1328
  ref_key: "input",
1329
- ref: o,
1330
- modelValue: m(p),
1331
- "onUpdate:modelValue": P[0] || (P[0] = (g) => le(p) ? p.value = g : null),
1329
+ ref: a,
1330
+ modelValue: p(v),
1331
+ "onUpdate:modelValue": P[0] || (P[0] = (g) => le(v) ? v.value = g : null),
1332
1332
  modelModifiers: { trim: !0 },
1333
- class: F({ "is-invalid": x.value }),
1333
+ class: _({ "is-invalid": x.value }),
1334
1334
  onKeydown: [
1335
1335
  X(d, ["enter"]),
1336
- X(r, ["esc"])
1336
+ X(u, ["esc"])
1337
1337
  ]
1338
1338
  }, null, 8, ["modelValue", "class"])
1339
1339
  ]),
1340
- f(m(T), {
1340
+ f(p(T), {
1341
1341
  icon: "bi:x-circle",
1342
1342
  class: "mx-2 cursor-pointer",
1343
- onClick: v,
1344
- onKeydown: X(v, ["enter"]),
1343
+ onClick: c,
1344
+ onKeydown: X(c, ["enter"]),
1345
1345
  "data-cy": "clear-icon"
1346
1346
  })
1347
1347
  ])), [
1348
- [m(_e), d]
1348
+ [p(Fe), d]
1349
1349
  ])
1350
1350
  ])) : (i(), y("div", {
1351
1351
  key: 1,
1352
1352
  class: "d-flex text-muted",
1353
- onClick: s,
1354
- onFocus: s
1353
+ onClick: n,
1354
+ onFocus: n
1355
1355
  }, [
1356
- B(_.$slots, "default", {}, () => [
1357
- c("div", {
1358
- class: F(["pe-2 cursor-pointer", { "text-invalid": x.value }]),
1356
+ B(F.$slots, "default", {}, () => [
1357
+ m("div", {
1358
+ class: _(["pe-2 cursor-pointer", { "text-invalid": x.value }]),
1359
1359
  "data-cy": "value"
1360
- }, w(m(p) ? m(p) : "Click to edit"), 3)
1360
+ }, w(p(v) ? p(v) : "Click to edit"), 3)
1361
1361
  ]),
1362
1362
  f(z, {
1363
1363
  link: "",
1364
1364
  class: "p-0 m-0"
1365
1365
  }, {
1366
1366
  default: b(() => [
1367
- f(m(T), {
1367
+ f(p(T), {
1368
1368
  icon: "bi:pencil",
1369
- class: F(x.value ? "text-invalid" : "text-muted"),
1369
+ class: _(x.value ? "text-invalid" : "text-muted"),
1370
1370
  "data-cy": "edit-icon",
1371
- onKeydown: X(s, ["enter"])
1371
+ onKeydown: X(n, ["enter"])
1372
1372
  }, null, 8, ["class"])
1373
1373
  ]),
1374
1374
  _: 1
1375
1375
  })
1376
1376
  ], 32))
1377
1377
  ])),
1378
- L(c("small", {
1378
+ R(m("small", {
1379
1379
  "data-cy": "error",
1380
1380
  class: "text-invalid"
1381
- }, w(m(u)), 513), [
1381
+ }, w(p(r)), 513), [
1382
1382
  [H, x.value]
1383
1383
  ])
1384
1384
  ], 8, gt);
1385
1385
  };
1386
1386
  }
1387
- }), _t = ["href"], yl = /* @__PURE__ */ V({
1387
+ }), Ft = ["href"], yl = /* @__PURE__ */ V({
1388
1388
  __name: "ForgeNavbar",
1389
1389
  props: {
1390
1390
  severity: { default: "light" },
@@ -1401,7 +1401,7 @@ const bt = { key: 0 }, ft = {
1401
1401
  unstyled: { type: Boolean }
1402
1402
  },
1403
1403
  setup(e) {
1404
- const t = e, l = k(() => ({
1404
+ const t = e, o = k(() => ({
1405
1405
  root: () => ({
1406
1406
  class: [
1407
1407
  "navbar container-fluid navbar-expand-lg",
@@ -1428,28 +1428,28 @@ const bt = { key: 0 }, ft = {
1428
1428
  ]
1429
1429
  })
1430
1430
  }));
1431
- return (a, o) => {
1432
- const s = Fe;
1433
- return i(), h(s, C({ ...t, ...a.$attrs }, {
1434
- pt: l.value,
1431
+ return (l, a) => {
1432
+ const n = _e;
1433
+ return i(), h(n, C({ ...t, ...l.$attrs }, {
1434
+ pt: o.value,
1435
1435
  "data-cy": "navbar"
1436
1436
  }), oe({
1437
1437
  start: b(() => [
1438
- c("a", {
1439
- href: a.logoUrl,
1438
+ m("a", {
1439
+ href: l.logoUrl,
1440
1440
  class: "navbar-brand ms-3",
1441
1441
  "data-cy": "logo"
1442
1442
  }, [
1443
- B(a.$slots, "logo", {}, () => [
1443
+ B(l.$slots, "logo", {}, () => [
1444
1444
  O(" Logo ")
1445
1445
  ])
1446
- ], 8, _t)
1446
+ ], 8, Ft)
1447
1447
  ]),
1448
1448
  menubuttonicon: b(() => [
1449
- B(a.$slots, "menubuttonicon", {}, () => [
1450
- f(m(T), {
1449
+ B(l.$slots, "menubuttonicon", {}, () => [
1450
+ f(p(T), {
1451
1451
  icon: "bi:list",
1452
- class: F(t.severity === "light" ? "text-black" : "text-white"),
1452
+ class: _(t.severity === "light" ? "text-black" : "text-white"),
1453
1453
  height: "24",
1454
1454
  "data-cy": "burger-icon"
1455
1455
  }, null, 8, ["class"])
@@ -1457,16 +1457,16 @@ const bt = { key: 0 }, ft = {
1457
1457
  ]),
1458
1458
  _: 2
1459
1459
  }, [
1460
- q(a.$slots, (d, r) => ({
1461
- name: r,
1462
- fn: b((v) => [
1463
- B(a.$slots, r, ee(te(v)))
1460
+ q(l.$slots, (d, u) => ({
1461
+ name: u,
1462
+ fn: b((c) => [
1463
+ B(l.$slots, u, ee(te(c)))
1464
1464
  ])
1465
1465
  }))
1466
1466
  ]), 1040, ["pt"]);
1467
1467
  };
1468
1468
  }
1469
- }), Ft = /* @__PURE__ */ c("div", { class: "ps-1" }, "Select all", -1), Vt = ["data-cy"], St = { class: "ps-1 w-100" }, Ct = { class: "multiselect__tag d-inline-flex" }, Tt = { class: "my-auto" }, be = /* @__PURE__ */ V({
1469
+ }), _t = /* @__PURE__ */ m("div", { class: "ps-1" }, "Select all", -1), Vt = ["data-cy"], St = { class: "ps-1 w-100" }, Ct = { class: "multiselect__tag d-inline-flex" }, Tt = { class: "my-auto" }, be = /* @__PURE__ */ V({
1470
1470
  __name: "ForgeMultiSelect",
1471
1471
  props: {
1472
1472
  severity: { default: "primary" },
@@ -1478,48 +1478,48 @@ const bt = { key: 0 }, ft = {
1478
1478
  },
1479
1479
  emits: ["update:modelValue"],
1480
1480
  setup(e, { emit: t }) {
1481
- const l = e, a = (U, D) => {
1481
+ const o = e, l = (U, D) => {
1482
1482
  const J = {
1483
1483
  ...D,
1484
1484
  $isDisabled: D.$isDisabled ?? !1
1485
1485
  };
1486
1486
  U(J);
1487
- }, o = ce(), s = t, { errors: d, value: r, errorMessage: v } = K(() => l.name, void 0, {
1488
- initialValue: o.modelValue
1489
- }), u = I(!1), n = k(() => ({
1487
+ }, a = ce(), n = t, { errors: d, value: u, errorMessage: c } = K(() => o.name, void 0, {
1488
+ initialValue: a.modelValue
1489
+ }), r = I(!1), s = k(() => ({
1490
1490
  multiple: !0,
1491
1491
  label: "label",
1492
1492
  trackBy: "id",
1493
- showPointer: !u.value,
1494
- placeholder: o.searchable === null || o.searchable ? "Search" : "Select",
1493
+ showPointer: !r.value,
1494
+ placeholder: a.searchable === null || a.searchable ? "Search" : "Select",
1495
1495
  allowEmpty: !0,
1496
1496
  selectValue: "",
1497
- closeOnSelect: !!(o.multiple === null || o.multiple),
1498
- clearOnSelect: !!(o.multiple === null || o.multiple),
1499
- searchable: !!(o.searchable === null || o.searchable) && o.modelValue.length === o.options.length,
1497
+ closeOnSelect: !!(a.multiple === null || a.multiple),
1498
+ clearOnSelect: !!(a.multiple === null || a.multiple),
1499
+ searchable: !!(a.searchable === null || a.searchable) && a.modelValue.length === a.options.length,
1500
1500
  async: !1,
1501
- ...o
1502
- })), p = k(() => `forge-multiselect-${l.severity}`), x = k(() => `multiselect__option ${u.value ? " multiselect__option--highlight" : ""} ${_.value ? " multiselect__option--selected" : ""}`), _ = k(() => n.value && !(n.value.multiple || !l.showSelectAll || n.value.async) ? !1 : o.modelValue.length === o.options.length), P = k(() => d.value.length > 0), M = k(() => !!((o.allowEmpty == null || o.allowEmpty) && l.showClearSelection && (n.value.multiple ? o.modelValue.length > 0 : o.modelValue))), z = () => u.value = !0, g = () => u.value = !1, $ = () => {
1503
- r.value = n.value.multiple ? [] : null, s("update:modelValue", r.value);
1501
+ ...a
1502
+ })), v = k(() => `forge-multiselect-${o.severity}`), x = k(() => `multiselect__option ${r.value ? " multiselect__option--highlight" : ""} ${F.value ? " multiselect__option--selected" : ""}`), F = k(() => s.value && !(s.value.multiple || !o.showSelectAll || s.value.async) ? !1 : a.modelValue.length === a.options.length), P = k(() => d.value.length > 0), M = k(() => !!((a.allowEmpty == null || a.allowEmpty) && o.showClearSelection && (s.value.multiple ? a.modelValue.length > 0 : a.modelValue))), z = () => r.value = !0, g = () => r.value = !1, $ = () => {
1503
+ u.value = s.value.multiple ? [] : null, n("update:modelValue", u.value);
1504
1504
  }, G = (U) => {
1505
- s("update:modelValue", l.selectValue ? U.map((D) => D[l.selectValue]) : U);
1506
- }, Z = (U) => o.modelValue !== null ? o.modelValue.some((D) => n.value.selectValue ? U[l.selectValue] === D : U.id === D.id && U.label === D.label) : !1, ie = () => {
1507
- _.value ? $() : (r.value = [...o.options], s("update:modelValue", [...o.options]));
1505
+ n("update:modelValue", o.selectValue ? U.map((D) => D[o.selectValue]) : U);
1506
+ }, Z = (U) => a.modelValue !== null ? a.modelValue.some((D) => s.value.selectValue ? U[o.selectValue] === D : U.id === D.id && U.label === D.label) : !1, ie = () => {
1507
+ F.value ? $() : (u.value = [...a.options], n("update:modelValue", [...a.options]));
1508
1508
  };
1509
1509
  return (U, D) => {
1510
1510
  const J = ve;
1511
1511
  return i(), y(N, null, [
1512
- f(m(Ve), C(n.value, {
1513
- class: [p.value, P.value ? "is-invalid" : ""],
1512
+ f(p(Ve), C(s.value, {
1513
+ class: [v.value, P.value ? "is-invalid" : ""],
1514
1514
  "data-cy": "multiselect",
1515
1515
  "onUpdate:modelValue": [
1516
1516
  G,
1517
- D[1] || (D[1] = (A) => le(r) ? r.value = A : null)
1517
+ D[1] || (D[1] = (A) => le(u) ? u.value = A : null)
1518
1518
  ],
1519
- modelValue: m(r)
1519
+ modelValue: p(u)
1520
1520
  }), oe({
1521
1521
  caret: b(({ toggle: A }) => [
1522
- M.value ? (i(), h(m(T), {
1522
+ M.value ? (i(), h(p(T), {
1523
1523
  key: 0,
1524
1524
  icon: "bi:x",
1525
1525
  class: "my-auto multiselect__clear-icon",
@@ -1528,19 +1528,19 @@ const bt = { key: 0 }, ft = {
1528
1528
  height: "18px",
1529
1529
  width: "18px"
1530
1530
  })) : S("", !0),
1531
- f(m(T), {
1531
+ f(p(T), {
1532
1532
  icon: "bi:chevron-down",
1533
1533
  onClick: A,
1534
1534
  class: "multiselect__select"
1535
1535
  }, null, 8, ["onClick"])
1536
1536
  ]),
1537
1537
  tag: b(({ option: A, remove: W }) => [
1538
- c("div", Ct, [
1539
- c("div", Tt, w(A.label), 1),
1540
- f(m(T), {
1538
+ m("div", Ct, [
1539
+ m("div", Tt, w(A.label), 1),
1540
+ f(p(T), {
1541
1541
  icon: "bi:x",
1542
1542
  class: "my-auto multiselect__tag-icon",
1543
- onMousedown: Y((Aa) => a(W, A), ["prevent", "stop"]),
1543
+ onMousedown: Y((Aa) => l(W, A), ["prevent", "stop"]),
1544
1544
  height: "18px",
1545
1545
  width: "18px"
1546
1546
  }, null, 8, ["onMousedown"])
@@ -1551,22 +1551,22 @@ const bt = { key: 0 }, ft = {
1551
1551
  ]),
1552
1552
  _: 2
1553
1553
  }, [
1554
- n.value.multiple && U.showSelectAll && !n.value.async ? {
1554
+ s.value.multiple && U.showSelectAll && !s.value.async ? {
1555
1555
  name: "beforeList",
1556
1556
  fn: b(() => [
1557
- c("li", {
1557
+ m("li", {
1558
1558
  class: "multiselect__element",
1559
1559
  onClick: ie,
1560
1560
  onMouseover: z,
1561
1561
  onMouseleave: g,
1562
1562
  "data-cy": "toggle-all"
1563
1563
  }, [
1564
- c("span", {
1565
- class: F(`${x.value}`)
1564
+ m("span", {
1565
+ class: _(`${x.value}`)
1566
1566
  }, [
1567
- f(J, { value: _.value }, {
1567
+ f(J, { value: F.value }, {
1568
1568
  default: b(() => [
1569
- Ft
1569
+ _t
1570
1570
  ]),
1571
1571
  _: 1
1572
1572
  }, 8, ["value"])
@@ -1575,10 +1575,10 @@ const bt = { key: 0 }, ft = {
1575
1575
  ]),
1576
1576
  key: "0"
1577
1577
  } : void 0,
1578
- n.value.multiple ? {
1578
+ s.value.multiple ? {
1579
1579
  name: "option",
1580
1580
  fn: b(({ option: A }) => [
1581
- c("div", {
1581
+ m("div", {
1582
1582
  "data-cy": A.label
1583
1583
  }, [
1584
1584
  (i(), h(J, {
@@ -1586,7 +1586,7 @@ const bt = { key: 0 }, ft = {
1586
1586
  key: A
1587
1587
  }, {
1588
1588
  default: b(() => [
1589
- c("div", St, w(A[n.value.label]), 1)
1589
+ m("div", St, w(A[s.value.label]), 1)
1590
1590
  ]),
1591
1591
  _: 2
1592
1592
  }, 1032, ["value"]))
@@ -1595,10 +1595,10 @@ const bt = { key: 0 }, ft = {
1595
1595
  key: "1"
1596
1596
  } : void 0
1597
1597
  ]), 1040, ["class", "modelValue"]),
1598
- L(c("small", {
1598
+ R(m("small", {
1599
1599
  "data-cy": "error",
1600
1600
  class: "invalid-feedback"
1601
- }, w(m(v)), 513), [
1601
+ }, w(p(c)), 513), [
1602
1602
  [H, P.value]
1603
1603
  ])
1604
1604
  ], 64);
@@ -1625,68 +1625,68 @@ const bt = { key: 0 }, ft = {
1625
1625
  },
1626
1626
  emits: ["update:modelValue"],
1627
1627
  setup(e, { emit: t }) {
1628
- const l = e, a = ce(), o = t, s = k(() => `${a.modelValue.length} selected`), d = k(() => a.modelValue.length), r = (u) => {
1629
- o("update:modelValue", u);
1630
- }, v = (u) => {
1631
- r(a.modelValue.filter((n) => n.id !== u));
1628
+ const o = e, l = ce(), a = t, n = k(() => `${l.modelValue.length} selected`), d = k(() => l.modelValue.length), u = (r) => {
1629
+ a("update:modelValue", r);
1630
+ }, c = (r) => {
1631
+ u(l.modelValue.filter((s) => s.id !== r));
1632
1632
  };
1633
- return (u, n) => {
1634
- const p = R;
1633
+ return (r, s) => {
1634
+ const v = L;
1635
1635
  return i(), y("div", {
1636
- class: F(u.orientation === "column" ? "row" : ""),
1636
+ class: _(r.orientation === "column" ? "row" : ""),
1637
1637
  "data-cy": "multiselect-preview"
1638
1638
  }, [
1639
- c("div", {
1640
- class: F(u.orientation === "row" ? "col-12 mb-1" : "col"),
1639
+ m("div", {
1640
+ class: _(r.orientation === "row" ? "col-12 mb-1" : "col"),
1641
1641
  "data-cy": "multiselect-container"
1642
1642
  }, [
1643
1643
  f(be, {
1644
1644
  "onUpdate:modelValue": [
1645
- n[0] || (n[0] = (x) => r(x)),
1646
- n[1] || (n[1] = (x) => u.$attrs.modelValue = x)
1645
+ s[0] || (s[0] = (x) => u(x)),
1646
+ s[1] || (s[1] = (x) => r.$attrs.modelValue = x)
1647
1647
  ],
1648
- modelValue: u.$attrs.modelValue,
1649
- "limit-text": s.value,
1650
- options: l.options
1648
+ modelValue: r.$attrs.modelValue,
1649
+ "limit-text": n.value,
1650
+ options: o.options
1651
1651
  }, {
1652
1652
  tag: b(() => [
1653
1653
  O(w(""))
1654
1654
  ]),
1655
1655
  selection: b(() => [
1656
- u.$attrs.modelValue.length > 0 ? (i(), y("span", Pt, w(d.value) + " items selected", 1)) : S("", !0)
1656
+ r.$attrs.modelValue.length > 0 ? (i(), y("span", Pt, w(d.value) + " items selected", 1)) : S("", !0)
1657
1657
  ]),
1658
1658
  default: b(() => [
1659
- (i(!0), y(N, null, q(u.$slots, (x, _) => B(u.$slots, _, { slot: _ })), 256))
1659
+ (i(!0), y(N, null, q(r.$slots, (x, F) => B(r.$slots, F, { slot: F })), 256))
1660
1660
  ]),
1661
1661
  _: 3
1662
1662
  }, 8, ["modelValue", "limit-text", "options"]),
1663
- B(u.$slots, "after-multi-select")
1663
+ B(r.$slots, "after-multi-select")
1664
1664
  ], 2),
1665
- c("div", {
1666
- class: F(u.orientation === "row" ? "col-12" : "col"),
1665
+ m("div", {
1666
+ class: _(r.orientation === "row" ? "col-12" : "col"),
1667
1667
  "data-cy": "options-preview"
1668
1668
  }, [
1669
- c("div", {
1670
- style: we({ height: u.height }),
1669
+ m("div", {
1670
+ style: we({ height: r.height }),
1671
1671
  class: "overflow-auto"
1672
1672
  }, [
1673
- c("div", Mt, [
1674
- u.title ? (i(), y("div", It, w(u.title), 1)) : S("", !0),
1675
- (i(!0), y(N, null, q(u.$attrs.modelValue, (x) => (i(), y("div", {
1673
+ m("div", Mt, [
1674
+ r.title ? (i(), y("div", It, w(r.title), 1)) : S("", !0),
1675
+ (i(!0), y(N, null, q(r.$attrs.modelValue, (x) => (i(), y("div", {
1676
1676
  key: x.id,
1677
1677
  class: "p-2 item d-flex justify-content-between align-items-center"
1678
1678
  }, [
1679
- B(u.$slots, "list-item", { item: x }, () => [
1680
- c("span", zt, w(x.shortLabel ? x.shortLabel : x.label), 1)
1679
+ B(r.$slots, "list-item", { item: x }, () => [
1680
+ m("span", zt, w(x.shortLabel ? x.shortLabel : x.label), 1)
1681
1681
  ]),
1682
- u.canRemoveItemFromPreview ? (i(), h(p, {
1682
+ r.canRemoveItemFromPreview ? (i(), h(v, {
1683
1683
  key: 0,
1684
1684
  link: "",
1685
1685
  class: "m-0 p-0 d-flex align-items-center",
1686
- onClick: (_) => v(x.id)
1686
+ onClick: (F) => c(x.id)
1687
1687
  }, {
1688
1688
  default: b(() => [
1689
- f(m(T), {
1689
+ f(p(T), {
1690
1690
  icon: "bi:x",
1691
1691
  class: "close-icon",
1692
1692
  "data-cy": `close-icon-${x.id}`
@@ -1695,7 +1695,7 @@ const bt = { key: 0 }, ft = {
1695
1695
  _: 2
1696
1696
  }, 1032, ["onClick"])) : S("", !0)
1697
1697
  ]))), 128)),
1698
- u.$attrs.modelValue.length === 0 ? (i(), y("div", Ot, "No Items Selected.")) : S("", !0)
1698
+ r.$attrs.modelValue.length === 0 ? (i(), y("div", Ot, "No Items Selected.")) : S("", !0)
1699
1699
  ])
1700
1700
  ], 4)
1701
1701
  ], 2)
@@ -1715,14 +1715,14 @@ const bt = { key: 0 }, ft = {
1715
1715
  },
1716
1716
  setup(e) {
1717
1717
  const t = e;
1718
- return (l, a) => (i(), y("div", Dt, [
1719
- c("h3", Ut, w(t.title), 1),
1720
- c("div", At, [
1721
- B(l.$slots, "default")
1718
+ return (o, l) => (i(), y("div", Dt, [
1719
+ m("h3", Ut, w(t.title), 1),
1720
+ m("div", At, [
1721
+ B(o.$slots, "default")
1722
1722
  ])
1723
1723
  ]));
1724
1724
  }
1725
- }), Nt = { class: "d-flex" }, Et = { "data-cy": "before-slot" }, Rt = { class: "position-relative" }, Lt = { "data-cy": "after-slot" }, fe = /* @__PURE__ */ V({
1725
+ }), Nt = { class: "d-flex" }, Et = { "data-cy": "before-slot" }, Lt = { class: "position-relative" }, Rt = { "data-cy": "after-slot" }, fe = /* @__PURE__ */ V({
1726
1726
  __name: "ForgeDatepicker",
1727
1727
  props: /* @__PURE__ */ j({
1728
1728
  severity: { default: "primary" },
@@ -1795,37 +1795,37 @@ const bt = { key: 0 }, ft = {
1795
1795
  }),
1796
1796
  emits: ["update:modelValue"],
1797
1797
  setup(e) {
1798
- const t = e, l = E(e, "modelValue"), { errors: a, errorMessage: o, handleChange: s, handleBlur: d } = K(() => t.name, void 0, {
1799
- initialValue: l.value
1800
- }), r = () => {
1801
- l.value = null;
1802
- }, v = k(() => a.value.length > 0), u = k(() => ({
1803
- day: ({ context: n }) => ({
1798
+ const t = e, o = E(e, "modelValue"), { errors: l, errorMessage: a, handleChange: n, handleBlur: d } = K(() => t.name, void 0, {
1799
+ initialValue: o.value
1800
+ }), u = () => {
1801
+ o.value = null;
1802
+ }, c = k(() => l.value.length > 0), r = k(() => ({
1803
+ day: ({ context: s }) => ({
1804
1804
  class: [
1805
1805
  `text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
1806
1806
  {
1807
- "cursor-pointer": !n.disabled,
1808
- "pe-none": n.disabled,
1809
- "text-white": n.selected
1807
+ "cursor-pointer": !s.disabled,
1808
+ "pe-none": s.disabled,
1809
+ "text-white": s.selected
1810
1810
  },
1811
1811
  // Severities
1812
1812
  {
1813
- selected: n.selected && !n.disabled,
1814
- "text-primary": !n.selected && n.today && (t.severity === void 0 || t.severity === "primary"),
1815
- "text-brand": !n.selected && n.today && t.severity === "brand",
1816
- "text-secondary": !n.selected && n.today && t.severity === "secondary",
1817
- "text-success": !n.selected && n.today && t.severity === "success",
1818
- "text-warning": !n.selected && n.today && t.severity === "warning",
1819
- "text-danger": !n.selected && n.today && t.severity === "danger",
1820
- "text-info": !n.selected && n.today && t.severity === "info"
1813
+ selected: s.selected && !s.disabled,
1814
+ "text-primary": !s.selected && s.today && (t.severity === void 0 || t.severity === "primary"),
1815
+ "text-brand": !s.selected && s.today && t.severity === "brand",
1816
+ "text-secondary": !s.selected && s.today && t.severity === "secondary",
1817
+ "text-success": !s.selected && s.today && t.severity === "success",
1818
+ "text-warning": !s.selected && s.today && t.severity === "warning",
1819
+ "text-danger": !s.selected && s.today && t.severity === "danger",
1820
+ "text-info": !s.selected && s.today && t.severity === "info"
1821
1821
  }
1822
1822
  ]
1823
1823
  }),
1824
- dayLabel: ({ context: n }) => ({
1824
+ dayLabel: ({ context: s }) => ({
1825
1825
  class: [
1826
1826
  // Disabled States
1827
1827
  {
1828
- "text-muted": n.disabled
1828
+ "text-muted": s.disabled
1829
1829
  }
1830
1830
  ]
1831
1831
  }),
@@ -1861,78 +1861,78 @@ const bt = { key: 0 }, ft = {
1861
1861
  ]
1862
1862
  })
1863
1863
  },
1864
- year: ({ context: n }) => ({
1864
+ year: ({ context: s }) => ({
1865
1865
  class: [
1866
1866
  "col-3 text-center cursor-pointer py-2",
1867
1867
  {
1868
- "text-primary": (t.severity === void 0 || t.severity === "primary") && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1869
- "text-brand": t.severity === "brand" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1870
- "text-secondary": t.severity === "secondary" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1871
- "text-success": t.severity === "success" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1872
- "text-warning": t.severity === "warning" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1873
- "text-danger": t.severity === "danger" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1874
- "text-info": t.severity === "info" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear()
1868
+ "text-primary": (t.severity === void 0 || t.severity === "primary") && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1869
+ "text-brand": t.severity === "brand" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1870
+ "text-secondary": t.severity === "secondary" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1871
+ "text-success": t.severity === "success" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1872
+ "text-warning": t.severity === "warning" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1873
+ "text-danger": t.severity === "danger" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1874
+ "text-info": t.severity === "info" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear()
1875
1875
  }
1876
1876
  ]
1877
1877
  }),
1878
- month: ({ context: n }) => ({
1878
+ month: ({ context: s }) => ({
1879
1879
  class: [
1880
1880
  "col-3 text-center cursor-pointer py-2",
1881
1881
  {
1882
- "text-primary": (t.severity === void 0 || t.severity === "primary") && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1883
- "text-brand": t.severity === "brand" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1884
- "text-secondary": t.severity === "secondary" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1885
- "text-success": t.severity === "success" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1886
- "text-warning": t.severity === "warning" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1887
- "text-danger": t.severity === "danger" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1888
- "text-info": t.severity === "info" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
1882
+ "text-primary": (t.severity === void 0 || t.severity === "primary") && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1883
+ "text-brand": t.severity === "brand" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1884
+ "text-secondary": t.severity === "secondary" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1885
+ "text-success": t.severity === "success" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1886
+ "text-warning": t.severity === "warning" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1887
+ "text-danger": t.severity === "danger" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1888
+ "text-info": t.severity === "info" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
1889
1889
  }
1890
1890
  ]
1891
1891
  })
1892
1892
  }));
1893
- return (n, p) => {
1893
+ return (s, v) => {
1894
1894
  const x = Se;
1895
1895
  return i(), y(N, null, [
1896
- c("div", Nt, [
1897
- c("span", Et, [
1898
- B(n.$slots, "before")
1896
+ m("div", Nt, [
1897
+ m("span", Et, [
1898
+ B(s.$slots, "before")
1899
1899
  ]),
1900
- c("div", Rt, [
1901
- f(x, C({ ...t, ...n.$attrs }, {
1902
- pt: u.value,
1903
- modelValue: l.value,
1900
+ m("div", Lt, [
1901
+ f(x, C({ ...t, ...s.$attrs }, {
1902
+ pt: r.value,
1903
+ modelValue: o.value,
1904
1904
  "onUpdate:modelValue": [
1905
- p[0] || (p[0] = (_) => l.value = _),
1906
- m(s)
1905
+ v[0] || (v[0] = (F) => o.value = F),
1906
+ p(n)
1907
1907
  ],
1908
- onBlur: m(d),
1909
- "input-class": { "is-invalid": v.value }
1908
+ onBlur: p(d),
1909
+ "input-class": { "is-invalid": c.value }
1910
1910
  }), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "onBlur", "input-class"]),
1911
- L(f(m(T), {
1911
+ R(f(p(T), {
1912
1912
  "data-cy": "icon",
1913
1913
  icon: "bi:calendar4",
1914
- class: F(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${v.value ? "text-danger-dark" : "text-muted"}`])
1914
+ class: _(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${c.value ? "text-danger-dark" : "text-muted"}`])
1915
1915
  }, null, 8, ["class"]), [
1916
1916
  [H, t.showIcon]
1917
1917
  ]),
1918
- L(f(m(T), {
1918
+ R(f(p(T), {
1919
1919
  "data-cy": "icon",
1920
1920
  icon: "bi:x",
1921
- onClick: r,
1922
- class: F(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
1921
+ onClick: u,
1922
+ class: _(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
1923
1923
  }, null, 8, ["class"]), [
1924
1924
  [H, t.modelValue]
1925
1925
  ])
1926
1926
  ]),
1927
- c("span", Lt, [
1928
- B(n.$slots, "after")
1927
+ m("span", Rt, [
1928
+ B(s.$slots, "after")
1929
1929
  ])
1930
1930
  ]),
1931
- L(c("small", {
1931
+ R(m("small", {
1932
1932
  "data-cy": "error",
1933
1933
  class: "text-invalid"
1934
- }, w(m(o)), 513), [
1935
- [H, v.value]
1934
+ }, w(p(a)), 513), [
1935
+ [H, c.value]
1936
1936
  ])
1937
1937
  ], 64);
1938
1938
  };
@@ -1944,12 +1944,12 @@ const bt = { key: 0 }, ft = {
1944
1944
  currentCount: {}
1945
1945
  },
1946
1946
  setup(e) {
1947
- const t = e, l = k(() => t.maxCount - t.currentCount);
1948
- return (a, o) => (i(), y("div", {
1949
- class: F(l.value < 0 ? "text-danger" : "")
1950
- }, "Remaining characters: " + w(l.value), 3));
1947
+ const t = e, o = k(() => t.maxCount - t.currentCount);
1948
+ return (l, a) => (i(), y("div", {
1949
+ class: _(o.value < 0 ? "text-danger" : "")
1950
+ }, "Remaining characters: " + w(o.value), 3));
1951
1951
  }
1952
- }), jt = /* @__PURE__ */ c("hr", null, null, -1), Ht = { class: "d-flex justify-content-between" }, hl = /* @__PURE__ */ V({
1952
+ }), jt = /* @__PURE__ */ m("hr", null, null, -1), Ht = { class: "d-flex justify-content-between" }, hl = /* @__PURE__ */ V({
1953
1953
  __name: "ForgeForm",
1954
1954
  props: {
1955
1955
  onSubmit: {},
@@ -1961,81 +1961,81 @@ const bt = { key: 0 }, ft = {
1961
1961
  hideCancel: { type: Boolean, default: !1 }
1962
1962
  },
1963
1963
  setup(e) {
1964
- const t = e, l = I(!1), a = I({
1964
+ const t = e, o = I(!1), l = I({
1965
1965
  hasError: !1,
1966
1966
  message: ""
1967
1967
  });
1968
- async function o() {
1969
- l.value = !0, a.value.hasError = !1;
1968
+ async function a() {
1969
+ o.value = !0, l.value.hasError = !1;
1970
1970
  try {
1971
1971
  await t.onSubmit();
1972
- } catch (s) {
1973
- a.value.hasError = !0, s.message && (a.value.message = s.message);
1972
+ } catch (n) {
1973
+ l.value.hasError = !0, n.message && (l.value.message = n.message);
1974
1974
  }
1975
- l.value = !1;
1975
+ o.value = !1;
1976
1976
  }
1977
- return (s, d) => {
1978
- const r = R;
1979
- return i(), y("form", C(s.$attrs, {
1977
+ return (n, d) => {
1978
+ const u = L;
1979
+ return i(), y("form", C(n.$attrs, {
1980
1980
  novalidate: "",
1981
1981
  class: "position-relative shadow-sm border p-4 bg-white",
1982
- onSubmit: Y(o, ["prevent"])
1982
+ onSubmit: Y(a, ["prevent"])
1983
1983
  }), [
1984
- s.hideTitle ? S("", !0) : (i(), y(N, { key: 0 }, [
1985
- B(s.$slots, "title", {}, () => [
1986
- c("h3", {
1987
- class: F(s.titleClass),
1984
+ n.hideTitle ? S("", !0) : (i(), y(N, { key: 0 }, [
1985
+ B(n.$slots, "title", {}, () => [
1986
+ m("h3", {
1987
+ class: _(n.titleClass),
1988
1988
  "data-cy": "form-title"
1989
- }, w(s.title), 3)
1989
+ }, w(n.title), 3)
1990
1990
  ]),
1991
1991
  jt
1992
1992
  ], 64)),
1993
- a.value.hasError ? (i(), h(se, {
1993
+ l.value.hasError ? (i(), h(se, {
1994
1994
  key: 1,
1995
1995
  severity: "danger",
1996
1996
  "data-cy": "error"
1997
1997
  }, {
1998
1998
  default: b(() => [
1999
- B(s.$slots, "error", {
2000
- error: a.value.message
1999
+ B(n.$slots, "error", {
2000
+ error: l.value.message
2001
2001
  }, () => [
2002
- O(w(a.value.message), 1)
2002
+ O(w(l.value.message), 1)
2003
2003
  ])
2004
2004
  ]),
2005
2005
  _: 3
2006
2006
  })) : S("", !0),
2007
- B(s.$slots, "default"),
2008
- c("div", Ht, [
2009
- B(s.$slots, "cancel", {}, () => [
2010
- s.hideCancel ? S("", !0) : (i(), h(r, {
2007
+ B(n.$slots, "default"),
2008
+ m("div", Ht, [
2009
+ B(n.$slots, "cancel", {}, () => [
2010
+ n.hideCancel ? S("", !0) : (i(), h(u, {
2011
2011
  key: 0,
2012
2012
  "data-cy": "cancel-btn",
2013
2013
  type: "reset",
2014
2014
  severity: "secondary",
2015
2015
  outlined: "",
2016
- onClick: d[0] || (d[0] = (v) => s.$emit("cancel"))
2016
+ onClick: d[0] || (d[0] = (c) => n.$emit("cancel"))
2017
2017
  }, {
2018
2018
  default: b(() => [
2019
- O(w(s.cancelText), 1)
2019
+ O(w(n.cancelText), 1)
2020
2020
  ]),
2021
2021
  _: 1
2022
2022
  }))
2023
2023
  ]),
2024
- B(s.$slots, "submit", { submit: o }, () => [
2025
- f(r, {
2024
+ B(n.$slots, "submit", { submit: a }, () => [
2025
+ f(u, {
2026
2026
  "data-cy": "submit-btn",
2027
2027
  type: "submit",
2028
2028
  severity: "primary",
2029
2029
  class: "ms-auto"
2030
2030
  }, {
2031
2031
  default: b(() => [
2032
- O(w(s.submitText), 1)
2032
+ O(w(n.submitText), 1)
2033
2033
  ]),
2034
2034
  _: 1
2035
2035
  })
2036
2036
  ])
2037
2037
  ]),
2038
- l.value ? (i(), h(ye, {
2038
+ o.value ? (i(), h(ye, {
2039
2039
  key: 2,
2040
2040
  "data-cy": "loading-spinner"
2041
2041
  })) : S("", !0)
@@ -2059,87 +2059,87 @@ const bt = { key: 0 }, ft = {
2059
2059
  }),
2060
2060
  emits: ["update:modelValue"],
2061
2061
  setup(e) {
2062
- const t = E(e, "modelValue"), l = e, a = (n) => {
2063
- l.type == "number" ? r(n.value) : r(n);
2064
- }, { errors: o, value: s, errorMessage: d, handleChange: r, handleBlur: v } = K(() => l.name, void 0, {
2062
+ const t = E(e, "modelValue"), o = e, l = (s) => {
2063
+ o.type == "number" ? u(s.value) : u(s);
2064
+ }, { errors: a, value: n, errorMessage: d, handleChange: u, handleBlur: c } = K(() => o.name, void 0, {
2065
2065
  initialValue: t.value
2066
- }), u = k(() => o.value.length > 0);
2067
- return re(() => s.value, (n) => {
2068
- t.value = n;
2069
- }, { immediate: !0 }), (n, p) => {
2070
- const x = Te, _ = Ce, P = de, M = ne, z = be, g = fe;
2071
- return l.type === "checkbox" ? (i(), h(ve, C({
2066
+ }), r = k(() => a.value.length > 0);
2067
+ return re(() => n.value, (s) => {
2068
+ t.value = s;
2069
+ }, { immediate: !0 }), (s, v) => {
2070
+ const x = Te, F = Ce, P = de, M = ne, z = be, g = fe;
2071
+ return o.type === "checkbox" ? (i(), h(ve, C({
2072
2072
  key: 0,
2073
- id: l.name,
2074
- label: l.fieldLabel
2075
- }, n.$attrs, {
2076
- name: l.name,
2073
+ id: o.name,
2074
+ label: o.fieldLabel
2075
+ }, s.$attrs, {
2076
+ name: o.name,
2077
2077
  modelValue: t.value,
2078
- "onUpdate:modelValue": p[0] || (p[0] = ($) => t.value = $)
2078
+ "onUpdate:modelValue": v[0] || (v[0] = ($) => t.value = $)
2079
2079
  }), null, 16, ["id", "label", "name", "modelValue"])) : (i(), y("div", Yt, [
2080
- c("label", {
2081
- for: l.name,
2080
+ m("label", {
2081
+ for: o.name,
2082
2082
  class: "mb-1"
2083
- }, w(l.fieldLabel), 9, qt),
2084
- l.type === "number" ? (i(), h(m(me), C({
2083
+ }, w(o.fieldLabel), 9, qt),
2084
+ o.type === "number" ? (i(), h(p(me), C({
2085
2085
  key: 0,
2086
- id: l.name
2087
- }, n.$attrs, {
2088
- placeholder: l.placeholder,
2089
- "input-class": { "is-invalid": u.value },
2090
- class: { "is-invalid": u.value },
2086
+ id: o.name
2087
+ }, s.$attrs, {
2088
+ placeholder: o.placeholder,
2089
+ "input-class": { "is-invalid": r.value },
2090
+ class: { "is-invalid": r.value },
2091
2091
  modelValue: t.value,
2092
- "onUpdate:modelValue": p[1] || (p[1] = ($) => t.value = $),
2093
- onInput: a
2094
- }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : l.type === "textarea" ? (i(), h(x, C({
2092
+ "onUpdate:modelValue": v[1] || (v[1] = ($) => t.value = $),
2093
+ onInput: l
2094
+ }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : o.type === "textarea" ? (i(), h(x, C({
2095
2095
  key: 1,
2096
- id: l.name
2097
- }, n.$attrs, {
2098
- placeholder: l.placeholder,
2099
- class: { "is-invalid": u.value },
2096
+ id: o.name
2097
+ }, s.$attrs, {
2098
+ placeholder: o.placeholder,
2099
+ class: { "is-invalid": r.value },
2100
2100
  modelValue: t.value,
2101
- "onUpdate:modelValue": p[2] || (p[2] = ($) => t.value = $),
2102
- onInput: a,
2103
- onBlur: m(v)
2104
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "mask" ? (i(), h(_, C({
2101
+ "onUpdate:modelValue": v[2] || (v[2] = ($) => t.value = $),
2102
+ onInput: l,
2103
+ onBlur: p(c)
2104
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : o.type === "mask" ? (i(), h(F, C({
2105
2105
  key: 2,
2106
- id: l.name
2107
- }, n.$attrs, {
2108
- placeholder: l.placeholder,
2109
- mask: l.mask,
2110
- class: { "is-invalid": u.value },
2106
+ id: o.name
2107
+ }, s.$attrs, {
2108
+ placeholder: o.placeholder,
2109
+ mask: o.mask,
2110
+ class: { "is-invalid": r.value },
2111
2111
  modelValue: t.value,
2112
- "onUpdate:modelValue": p[3] || (p[3] = ($) => t.value = $),
2113
- onComplete: a,
2114
- onBlur: m(v)
2115
- }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : l.type === "text" ? (i(), h(P, C({
2112
+ "onUpdate:modelValue": v[3] || (v[3] = ($) => t.value = $),
2113
+ onComplete: l,
2114
+ onBlur: p(c)
2115
+ }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : o.type === "text" ? (i(), h(P, C({
2116
2116
  key: 3,
2117
- id: l.name
2118
- }, n.$attrs, {
2119
- placeholder: l.placeholder,
2120
- class: { "is-invalid": u.value },
2117
+ id: o.name
2118
+ }, s.$attrs, {
2119
+ placeholder: o.placeholder,
2120
+ class: { "is-invalid": r.value },
2121
2121
  modelValue: t.value,
2122
- "onUpdate:modelValue": p[4] || (p[4] = ($) => t.value = $),
2123
- onInput: a,
2124
- onBlur: m(v)
2125
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "select" ? (i(), h(M, C({ key: 4 }, { ...l, ...n.$attrs }, {
2122
+ "onUpdate:modelValue": v[4] || (v[4] = ($) => t.value = $),
2123
+ onInput: l,
2124
+ onBlur: p(c)
2125
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : o.type === "select" ? (i(), h(M, C({ key: 4 }, { ...o, ...s.$attrs }, {
2126
2126
  modelValue: t.value,
2127
- "onUpdate:modelValue": p[5] || (p[5] = ($) => t.value = $),
2128
- class: { "is-invalid": u.value }
2129
- }), null, 16, ["modelValue", "class"])) : l.type === "multiselect" ? (i(), h(z, C({ key: 5 }, { ...l, ...n.$attrs }, {
2127
+ "onUpdate:modelValue": v[5] || (v[5] = ($) => t.value = $),
2128
+ class: { "is-invalid": r.value }
2129
+ }), null, 16, ["modelValue", "class"])) : o.type === "multiselect" ? (i(), h(z, C({ key: 5 }, { ...o, ...s.$attrs }, {
2130
2130
  modelValue: t.value,
2131
- "onUpdate:modelValue": p[6] || (p[6] = ($) => t.value = $),
2132
- class: { "is-invalid": u.value }
2133
- }), null, 16, ["modelValue", "class"])) : l.type === "datepicker" ? (i(), h(g, C({ key: 6 }, { ...l, ...n.$attrs }, {
2131
+ "onUpdate:modelValue": v[6] || (v[6] = ($) => t.value = $),
2132
+ class: { "is-invalid": r.value }
2133
+ }), null, 16, ["modelValue", "class"])) : o.type === "datepicker" ? (i(), h(g, C({ key: 6 }, { ...o, ...s.$attrs }, {
2134
2134
  modelValue: t.value,
2135
- "onUpdate:modelValue": p[7] || (p[7] = ($) => t.value = $),
2136
- class: { "is-invalid": u.value }
2135
+ "onUpdate:modelValue": v[7] || (v[7] = ($) => t.value = $),
2136
+ class: { "is-invalid": r.value }
2137
2137
  }), null, 16, ["modelValue", "class"])) : S("", !0),
2138
- L(c("small", {
2138
+ R(m("small", {
2139
2139
  "data-cy": "error",
2140
2140
  class: "invalid-feedback"
2141
- }, w(m(d)), 513), [
2142
- [H, u.value && l.type !== "multiselect" && l.type !== "datepicker"]
2141
+ }, w(p(d)), 513), [
2142
+ [H, r.value && o.type !== "multiselect" && o.type !== "datepicker"]
2143
2143
  ])
2144
2144
  ]));
2145
2145
  };
@@ -2171,17 +2171,17 @@ const bt = { key: 0 }, ft = {
2171
2171
  unstyled: { type: Boolean }
2172
2172
  },
2173
2173
  setup(e) {
2174
- const t = e, { errors: l, value: a, errorMessage: o } = K(() => t.name, void 0, {
2174
+ const t = e, { errors: o, value: l, errorMessage: a } = K(() => t.name, void 0, {
2175
2175
  initialValue: t.modelValue
2176
- }), s = k(() => l.value.length > 0), d = k(() => ({
2176
+ }), n = k(() => o.value.length > 0), d = k(() => ({
2177
2177
  inputtoken: "list-unstyled",
2178
2178
  input: "border-0",
2179
- container: ({ props: r }) => ({
2179
+ container: ({ props: u }) => ({
2180
2180
  class: [
2181
2181
  "form-control mb-0 d-flex",
2182
2182
  {
2183
- disabled: r.disabled,
2184
- "is-invalid": s.value
2183
+ disabled: u.disabled,
2184
+ "is-invalid": n.value
2185
2185
  }
2186
2186
  ]
2187
2187
  }),
@@ -2204,30 +2204,30 @@ const bt = { key: 0 }, ft = {
2204
2204
  ]
2205
2205
  }
2206
2206
  }));
2207
- return (r, v) => {
2208
- const u = Pe;
2207
+ return (u, c) => {
2208
+ const r = Pe;
2209
2209
  return i(), y(N, null, [
2210
- f(u, C({ ...t, ...r.$attrs }, {
2210
+ f(r, C({ ...t, ...u.$attrs }, {
2211
2211
  pt: d.value,
2212
- "model-value": m(a),
2213
- "onUpdate:modelValue": v[0] || (v[0] = (n) => le(a) ? a.value = n : null)
2212
+ "model-value": p(l),
2213
+ "onUpdate:modelValue": c[0] || (c[0] = (s) => le(l) ? l.value = s : null)
2214
2214
  }), {
2215
- removetokenicon: b(({ removeCallback: n }) => [
2216
- L(f(m(T), {
2215
+ removetokenicon: b(({ removeCallback: s }) => [
2216
+ R(f(p(T), {
2217
2217
  icon: "bi:x",
2218
2218
  class: "cursor-pointer",
2219
- onClick: n
2219
+ onClick: s
2220
2220
  }, null, 8, ["onClick"]), [
2221
2221
  [H, !t.disabled]
2222
2222
  ])
2223
2223
  ]),
2224
2224
  _: 1
2225
2225
  }, 16, ["pt", "model-value"]),
2226
- L(c("small", {
2226
+ R(m("small", {
2227
2227
  "data-cy": "error",
2228
2228
  class: "text-invalid"
2229
- }, w(m(o)), 513), [
2230
- [H, s.value]
2229
+ }, w(p(a)), 513), [
2230
+ [H, n.value]
2231
2231
  ])
2232
2232
  ], 64);
2233
2233
  };
@@ -2247,7 +2247,7 @@ const bt = { key: 0 }, ft = {
2247
2247
  unstyled: { type: Boolean }
2248
2248
  },
2249
2249
  setup(e) {
2250
- const t = e, l = k(() => t.striped ? "progress-bar-striped" : null), a = k(() => t.animate ? "progress-bar-animated" : null), o = k(() => {
2250
+ const t = e, o = k(() => t.striped ? "progress-bar-striped" : null), l = k(() => t.animate ? "progress-bar-animated" : null), a = k(() => {
2251
2251
  switch (t.severity) {
2252
2252
  case "brand":
2253
2253
  return "bg-brand";
@@ -2266,17 +2266,17 @@ const bt = { key: 0 }, ft = {
2266
2266
  default:
2267
2267
  return "bg-primary";
2268
2268
  }
2269
- }), s = k(() => ({
2269
+ }), n = k(() => ({
2270
2270
  root: {
2271
2271
  style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
2272
2272
  },
2273
2273
  value: {
2274
- class: [o.value, l.value, a.value]
2274
+ class: [a.value, o.value, l.value]
2275
2275
  }
2276
2276
  }));
2277
- return (d, r) => {
2278
- const v = Me;
2279
- return i(), h(v, C({ ...d.$attrs, ...t }, { pt: s.value }), {
2277
+ return (d, u) => {
2278
+ const c = Me;
2279
+ return i(), h(c, C({ ...d.$attrs, ...t }, { pt: n.value }), {
2280
2280
  default: b(() => [
2281
2281
  B(d.$slots, "default")
2282
2282
  ]),
@@ -2292,11 +2292,11 @@ const bt = { key: 0 }, ft = {
2292
2292
  },
2293
2293
  setup(e) {
2294
2294
  const t = e;
2295
- return (l, a) => (i(), y("div", C(l.$attrs, {
2295
+ return (o, l) => (i(), y("div", C(o.$attrs, {
2296
2296
  class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
2297
2297
  }), [
2298
- c("span", Kt, [
2299
- B(l.$slots, "default")
2298
+ m("span", Kt, [
2299
+ B(o.$slots, "default")
2300
2300
  ])
2301
2301
  ], 16));
2302
2302
  }
@@ -2319,69 +2319,69 @@ const bt = { key: 0 }, ft = {
2319
2319
  },
2320
2320
  emits: ["update:currentStep"],
2321
2321
  setup(e, { emit: t }) {
2322
- const l = t, a = e, o = I(a.currentStep), s = () => {
2322
+ const o = t, l = e, a = I(l.currentStep), n = () => {
2323
2323
  do
2324
- o.value--;
2325
- while (a.model[o.value].disabled);
2326
- l("update:currentStep", o.value);
2324
+ a.value--;
2325
+ while (l.model[a.value].disabled);
2326
+ o("update:currentStep", a.value);
2327
2327
  }, d = () => {
2328
- if (o.value < a.model.length - 1)
2328
+ if (a.value < l.model.length - 1)
2329
2329
  do
2330
- o.value++;
2331
- while (a.model[o.value].disabled);
2332
- l("update:currentStep", o.value);
2333
- }, r = k(() => {
2334
- const u = a.model.findIndex((n) => !n.disabled);
2335
- return !(u < o.value && u > -1);
2336
- }), v = k(() => ({
2337
- menuitem: (u) => ({
2330
+ a.value++;
2331
+ while (l.model[a.value].disabled);
2332
+ o("update:currentStep", a.value);
2333
+ }, u = k(() => {
2334
+ const r = l.model.findIndex((s) => !s.disabled);
2335
+ return !(r < a.value && r > -1);
2336
+ }), c = k(() => ({
2337
+ menuitem: (r) => ({
2338
2338
  class: [{
2339
- "cursor-pointer": !u.context.disabled
2339
+ "cursor-pointer": !r.context.disabled
2340
2340
  }]
2341
2341
  }),
2342
- step: (u) => ({
2342
+ step: (r) => ({
2343
2343
  class: [
2344
2344
  "d-flex align-items-center justify-content-center mb-2 step",
2345
2345
  {
2346
- inactive: u.context.disabled,
2347
- "bg-primary text-white": u.context.index === o.value && (a.severity === void 0 || a.severity === "primary"),
2348
- "bg-brand text-white": u.context.index === o.value && a.severity === "brand",
2349
- "bg-secondary text-white": u.context.index === o.value && a.severity === "secondary",
2350
- "bg-success text-white": u.context.index === o.value && a.severity === "success",
2351
- "bg-warning text-white": u.context.index === o.value && a.severity === "warning",
2352
- "bg-danger text-white": u.context.index === o.value && a.severity === "danger",
2353
- "bg-info text-white": u.context.index === o.value && a.severity === "info"
2346
+ inactive: r.context.disabled,
2347
+ "bg-primary text-white": r.context.index === a.value && (l.severity === void 0 || l.severity === "primary"),
2348
+ "bg-brand text-white": r.context.index === a.value && l.severity === "brand",
2349
+ "bg-secondary text-white": r.context.index === a.value && l.severity === "secondary",
2350
+ "bg-success text-white": r.context.index === a.value && l.severity === "success",
2351
+ "bg-warning text-white": r.context.index === a.value && l.severity === "warning",
2352
+ "bg-danger text-white": r.context.index === a.value && l.severity === "danger",
2353
+ "bg-info text-white": r.context.index === a.value && l.severity === "info"
2354
2354
  }
2355
2355
  ]
2356
2356
  }),
2357
- label: (u) => ({
2357
+ label: (r) => ({
2358
2358
  class: [
2359
2359
  "h5",
2360
2360
  {
2361
- "border-bottom border-2 border-primary": u.context.index === o.value && (a.severity === void 0 || a.severity === "primary"),
2362
- "border-bottom border-2 border-brand": u.context.index === o.value && a.severity === "brand",
2363
- "border-bottom border-2 border-secondary": u.context.index === o.value && a.severity === "secondary",
2364
- "border-bottom border-2 border-success": u.context.index === o.value && a.severity === "success",
2365
- "border-bottom border-2 border-warning": u.context.index === o.value && a.severity === "warning",
2366
- "border-bottom border-2 border-danger": u.context.index === o.value && a.severity === "danger",
2367
- "border-bottom border-2 border-info": u.context.index === o.value && a.severity === "info"
2361
+ "border-bottom border-2 border-primary": r.context.index === a.value && (l.severity === void 0 || l.severity === "primary"),
2362
+ "border-bottom border-2 border-brand": r.context.index === a.value && l.severity === "brand",
2363
+ "border-bottom border-2 border-secondary": r.context.index === a.value && l.severity === "secondary",
2364
+ "border-bottom border-2 border-success": r.context.index === a.value && l.severity === "success",
2365
+ "border-bottom border-2 border-warning": r.context.index === a.value && l.severity === "warning",
2366
+ "border-bottom border-2 border-danger": r.context.index === a.value && l.severity === "danger",
2367
+ "border-bottom border-2 border-info": r.context.index === a.value && l.severity === "info"
2368
2368
  }
2369
2369
  ]
2370
2370
  })
2371
2371
  }));
2372
- return (u, n) => {
2373
- const p = R, x = ze, _ = Ie;
2372
+ return (r, s) => {
2373
+ const v = L, x = ze, F = Ie;
2374
2374
  return i(), y("div", Wt, [
2375
- c("div", Zt, [
2376
- f(p, {
2377
- severity: a.severity,
2378
- disabled: r.value,
2379
- onClick: s,
2375
+ m("div", Zt, [
2376
+ f(v, {
2377
+ severity: l.severity,
2378
+ disabled: u.value,
2379
+ onClick: n,
2380
2380
  class: "rounded-circle py-2 me-4",
2381
2381
  "data-cy": "back-button"
2382
2382
  }, {
2383
2383
  default: b(() => [
2384
- f(m(T), {
2384
+ f(p(T), {
2385
2385
  icon: "bi:chevron-left",
2386
2386
  class: "mb-1"
2387
2387
  })
@@ -2389,22 +2389,22 @@ const bt = { key: 0 }, ft = {
2389
2389
  _: 1
2390
2390
  }, 8, ["severity", "disabled"]),
2391
2391
  f(x, {
2392
- "active-step": o.value,
2393
- "onUpdate:activeStep": n[0] || (n[0] = (P) => o.value = P),
2394
- model: a.model,
2395
- pt: v.value,
2392
+ "active-step": a.value,
2393
+ "onUpdate:activeStep": s[0] || (s[0] = (P) => a.value = P),
2394
+ model: l.model,
2395
+ pt: c.value,
2396
2396
  readonly: !1
2397
2397
  }, null, 8, ["active-step", "model", "pt"])
2398
2398
  ]),
2399
- f(_),
2400
- (i(!0), y(N, null, q(a.model, (P, M) => (i(), y("div", {
2399
+ f(F),
2400
+ (i(!0), y(N, null, q(l.model, (P, M) => (i(), y("div", {
2401
2401
  key: M,
2402
2402
  class: "w-100"
2403
2403
  }, [
2404
- M === o.value ? B(u.$slots, P.key ?? P.label, {
2404
+ M === a.value ? B(r.$slots, P.key ?? P.label, {
2405
2405
  key: 0,
2406
2406
  nextStep: d,
2407
- previousStep: s
2407
+ previousStep: n
2408
2408
  }, () => [
2409
2409
  f(se, {
2410
2410
  severity: "info",
@@ -2412,7 +2412,7 @@ const bt = { key: 0 }, ft = {
2412
2412
  }, {
2413
2413
  default: b(() => [
2414
2414
  O(" Please add Slot Content for the key " + w(P.key ?? P.label) + " ", 1),
2415
- f(p, {
2415
+ f(v, {
2416
2416
  severity: "primary",
2417
2417
  label: "Next",
2418
2418
  onClick: d,
@@ -2435,19 +2435,19 @@ const bt = { key: 0 }, ft = {
2435
2435
  selected: { type: Boolean, default: !1 }
2436
2436
  },
2437
2437
  setup(e) {
2438
- const t = e, l = k(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), a = k(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
2439
- return (o, s) => {
2440
- const d = R;
2438
+ const t = e, o = k(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), l = k(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
2439
+ return (a, n) => {
2440
+ const d = L;
2441
2441
  return t.clickable ? (i(), h(d, {
2442
2442
  key: 0,
2443
- class: F(["d-flex w-100 p-0 text-body", l.value]),
2443
+ class: _(["d-flex w-100 p-0 text-body", o.value]),
2444
2444
  severity: t.severity,
2445
2445
  unstyled: "",
2446
2446
  "data-cy": "button-tile"
2447
2447
  }, {
2448
2448
  default: b(() => [
2449
- c("div", Jt, [
2450
- B(o.$slots, "default", {}, () => [
2449
+ m("div", Jt, [
2450
+ B(a.$slots, "default", {}, () => [
2451
2451
  O("Tile Content")
2452
2452
  ])
2453
2453
  ])
@@ -2455,11 +2455,11 @@ const bt = { key: 0 }, ft = {
2455
2455
  _: 3
2456
2456
  }, 8, ["severity", "class"])) : (i(), y("div", {
2457
2457
  key: 1,
2458
- class: F(["d-flex w-100", a.value]),
2458
+ class: _(["d-flex w-100", l.value]),
2459
2459
  "data-cy": "tile"
2460
2460
  }, [
2461
- c("div", Xt, [
2462
- B(o.$slots, "default", {}, () => [
2461
+ m("div", Xt, [
2462
+ B(a.$slots, "default", {}, () => [
2463
2463
  O("Tile Content")
2464
2464
  ])
2465
2465
  ])
@@ -2473,7 +2473,7 @@ function Q(e, t) {
2473
2473
  const Qt = {
2474
2474
  class: "d-flex justify-content-start align-items-baseline",
2475
2475
  "data-cy": "pagination-header"
2476
- }, ea = { class: "ms-2" }, ta = { key: 0 }, aa = /* @__PURE__ */ c("span", { class: "mx-2" }, "|", -1), la = {
2476
+ }, ea = { class: "ms-2" }, ta = { key: 0 }, aa = /* @__PURE__ */ m("span", { class: "mx-2" }, "|", -1), la = {
2477
2477
  class: "w-auto",
2478
2478
  "data-cy": "total"
2479
2479
  }, oa = /* @__PURE__ */ V({
@@ -2485,28 +2485,28 @@ const Qt = {
2485
2485
  },
2486
2486
  emits: ["update:perPage"],
2487
2487
  setup(e, { emit: t }) {
2488
- const l = t, a = e, o = (d) => {
2489
- l("update:perPage", d.value);
2490
- }, s = k(() => {
2491
- const d = Math.ceil(a.total / a.perPage);
2488
+ const o = t, l = e, a = (d) => {
2489
+ o("update:perPage", d.value);
2490
+ }, n = k(() => {
2491
+ const d = Math.ceil(l.total / l.perPage);
2492
2492
  return `${d} ${Q(d, "page")}`;
2493
2493
  });
2494
- return (d, r) => (i(), y("div", Qt, [
2494
+ return (d, u) => (i(), y("div", Qt, [
2495
2495
  O(" Number of results per page "),
2496
- c("div", ea, [
2497
- f(m(ne), {
2498
- options: a.pageSizes,
2499
- "model-value": a.perPage,
2500
- onChange: r[0] || (r[0] = (v) => o(v))
2496
+ m("div", ea, [
2497
+ f(p(ne), {
2498
+ options: l.pageSizes,
2499
+ "model-value": l.perPage,
2500
+ onChange: u[0] || (u[0] = (c) => a(c))
2501
2501
  }, null, 8, ["options", "model-value"])
2502
2502
  ]),
2503
- a.total ? (i(), y("div", ta, [
2503
+ l.total ? (i(), y("div", ta, [
2504
2504
  aa,
2505
- c("span", la, w(a.total) + " " + w(m(Q)(a.total, "result")) + " across " + w(s.value), 1)
2505
+ m("span", la, w(l.total) + " " + w(p(Q)(l.total, "result")) + " across " + w(n.value), 1)
2506
2506
  ])) : S("", !0)
2507
2507
  ]));
2508
2508
  }
2509
- }), na = { class: "position-relative" }, sa = { "data-cy": "above-table-slot" }, ia = { class: "d-flex" }, ra = { class: "d-flex align-items-end mb-2" }, da = { key: 0 }, ua = { class: "ms-auto" }, ca = /* @__PURE__ */ c("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), _l = /* @__PURE__ */ V({
2509
+ }), na = { class: "position-relative" }, sa = { "data-cy": "above-table-slot" }, ia = { class: "d-flex" }, ra = { class: "d-flex align-items-end mb-2" }, da = { key: 0 }, ua = { class: "ms-auto" }, ca = /* @__PURE__ */ m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), Fl = /* @__PURE__ */ V({
2510
2510
  __name: "ForgeTable",
2511
2511
  props: {
2512
2512
  value: {},
@@ -2586,21 +2586,21 @@ const Qt = {
2586
2586
  },
2587
2587
  emits: ["update:filters", "update:tableContext", "sort", "page"],
2588
2588
  setup(e, { emit: t }) {
2589
- const l = t, a = e, o = I(), s = I([10, 20, 50, 100]), d = I(20), r = I({
2590
- filters: a.filters,
2589
+ const o = t, l = e, a = I(), n = I([10, 20, 50, 100]), d = I(20), u = I({
2590
+ filters: l.filters,
2591
2591
  perPage: d.value,
2592
2592
  page: 0,
2593
2593
  sortDirection: "None",
2594
2594
  sortField: "",
2595
- total: a.totalRecords ?? a.value.length
2596
- }), v = k(() => a.totalRecords ?? a.value.length), u = k(() => {
2597
- const g = Math.ceil(v.value / d.value);
2595
+ total: l.totalRecords ?? l.value.length
2596
+ }), c = k(() => l.totalRecords ?? l.value.length), r = k(() => {
2597
+ const g = Math.ceil(c.value / d.value);
2598
2598
  return `${g} ${Q(g, "page")}`;
2599
- }), n = k(() => ({
2599
+ }), s = k(() => ({
2600
2600
  thead: () => ({
2601
2601
  class: [
2602
2602
  {
2603
- "sticky-header": a.stickyHeader
2603
+ "sticky-header": l.stickyHeader
2604
2604
  }
2605
2605
  ],
2606
2606
  style: "position: "
@@ -2609,61 +2609,61 @@ const Qt = {
2609
2609
  class: [
2610
2610
  "spinner-border border-0",
2611
2611
  {
2612
- "text-brand": a.severity === "brand",
2613
- "text-primary": a.severity === "primary",
2614
- "text-success": a.severity === "success",
2615
- "text-warning": a.severity === "warning",
2616
- "text-danger": a.severity === "danger",
2617
- "text-info": a.severity === "info"
2612
+ "text-brand": l.severity === "brand",
2613
+ "text-primary": l.severity === "primary",
2614
+ "text-success": l.severity === "success",
2615
+ "text-warning": l.severity === "warning",
2616
+ "text-danger": l.severity === "danger",
2617
+ "text-info": l.severity === "info"
2618
2618
  }
2619
2619
  ]
2620
2620
  })
2621
- })), p = () => {
2622
- for (const g in a.filters)
2623
- typeof a.filters[g] == "string" ? a.filters[g] = "" : a.filters[g].value = null;
2624
- P(a.filters);
2621
+ })), v = () => {
2622
+ for (const g in l.filters)
2623
+ typeof l.filters[g] == "string" ? l.filters[g] = "" : l.filters[g].value = null;
2624
+ P(l.filters);
2625
2625
  }, x = () => {
2626
- o.value.exportCSV();
2627
- }, _ = (g) => {
2626
+ a.value.exportCSV();
2627
+ }, F = (g) => {
2628
2628
  var $;
2629
- r.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", r.value.sortField = (($ = g.sortField) == null ? void 0 : $.toString()) ?? "", l("update:tableContext", r.value), l("sort", g);
2629
+ u.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", u.value.sortField = (($ = g.sortField) == null ? void 0 : $.toString()) ?? "", o("update:tableContext", u.value), o("sort", g);
2630
2630
  }, P = (g) => {
2631
- r.value.filters = g, l("update:tableContext", r.value), l("update:filters", g);
2631
+ u.value.filters = g, o("update:tableContext", u.value), o("update:filters", g);
2632
2632
  }, M = (g) => {
2633
- r.value.page = g.page, l("update:tableContext", r.value), l("page", g);
2633
+ u.value.page = g.page, o("update:tableContext", u.value), o("page", g);
2634
2634
  }, z = () => {
2635
- r.value.perPage = d.value, l("update:tableContext", r.value);
2635
+ u.value.perPage = d.value, o("update:tableContext", u.value);
2636
2636
  };
2637
- return re(() => a.filters, (g) => {
2638
- r.value.filters = g, l("update:tableContext", r.value);
2639
- }, { deep: !0 }), ae(() => l("update:tableContext", r.value)), (g, $) => (i(), y("div", na, [
2640
- c("span", sa, [
2637
+ return re(() => l.filters, (g) => {
2638
+ u.value.filters = g, o("update:tableContext", u.value);
2639
+ }, { deep: !0 }), ae(() => o("update:tableContext", u.value)), (g, $) => (i(), y("div", na, [
2640
+ m("span", sa, [
2641
2641
  B(g.$slots, "above-table")
2642
2642
  ]),
2643
- f(m(Oe), C({
2644
- class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
2645
- }, { ...a, ...g.$attrs }, {
2646
- pt: n.value,
2643
+ f(p(Oe), C({
2644
+ class: ["w-100", `${l.severity ? `forge-table-${l.severity}` : ""}`]
2645
+ }, { ...l, ...g.$attrs }, {
2646
+ pt: s.value,
2647
2647
  rows: d.value,
2648
- "total-records": v.value,
2649
- "filter-display": a.filters ? "row" : void 0,
2648
+ "total-records": c.value,
2649
+ "filter-display": l.filters ? "row" : void 0,
2650
2650
  ref_key: "forgeTable",
2651
- ref: o,
2651
+ ref: a,
2652
2652
  "data-cy": "table",
2653
2653
  "onUpdate:filters": P,
2654
- onSort: _,
2654
+ onSort: F,
2655
2655
  onPage: M
2656
2656
  }), oe({
2657
2657
  header: b(() => [
2658
- c("div", {
2659
- class: F(a.loading ? "opacity-50" : "")
2658
+ m("div", {
2659
+ class: _(l.loading ? "opacity-50" : "")
2660
2660
  }, [
2661
- c("div", ia, [
2662
- c("div", ra, [
2661
+ m("div", ia, [
2662
+ m("div", ra, [
2663
2663
  g.paginator && !g.legacyPaginationFooter ? (i(), y("span", da, [
2664
2664
  f(oa, {
2665
- total: v.value,
2666
- "page-sizes": s.value,
2665
+ total: c.value,
2666
+ "page-sizes": n.value,
2667
2667
  "per-page": d.value,
2668
2668
  "onUpdate:perPage": [
2669
2669
  $[0] || ($[0] = (G) => d.value = G),
@@ -2672,16 +2672,16 @@ const Qt = {
2672
2672
  }, null, 8, ["total", "page-sizes", "per-page"])
2673
2673
  ])) : S("", !0)
2674
2674
  ]),
2675
- c("div", ua, [
2676
- g.showClearButton ? (i(), h(m(R), {
2675
+ m("div", ua, [
2676
+ g.showClearButton ? (i(), h(p(L), {
2677
2677
  key: 0,
2678
2678
  outlined: "",
2679
- class: F(g.showExporterButton ? "me-2" : ""),
2680
- onClick: p,
2679
+ class: _(g.showExporterButton ? "me-2" : ""),
2680
+ onClick: v,
2681
2681
  "data-cy": "clear-all"
2682
2682
  }, {
2683
2683
  default: b(() => [
2684
- f(m(T), {
2684
+ f(p(T), {
2685
2685
  icon: "bi:funnel-fill",
2686
2686
  width: "24",
2687
2687
  height: "24"
@@ -2690,14 +2690,14 @@ const Qt = {
2690
2690
  ]),
2691
2691
  _: 1
2692
2692
  }, 8, ["class"])) : S("", !0),
2693
- g.showExporterButton ? (i(), h(m(R), {
2693
+ g.showExporterButton ? (i(), h(p(L), {
2694
2694
  key: 1,
2695
2695
  outlined: "",
2696
2696
  onClick: x,
2697
2697
  "data-cy": "exporter"
2698
2698
  }, {
2699
2699
  default: b(() => [
2700
- f(m(T), {
2700
+ f(p(T), {
2701
2701
  icon: "typcn:export",
2702
2702
  width: "24",
2703
2703
  height: "24"
@@ -2724,13 +2724,13 @@ const Qt = {
2724
2724
  g.legacyPaginationFooter ? {
2725
2725
  name: "paginatorstart",
2726
2726
  fn: b(() => [
2727
- c("span", {
2728
- class: F(["d-flex", a.loading ? "opacity-50" : ""]),
2727
+ m("span", {
2728
+ class: _(["d-flex", l.loading ? "opacity-50" : ""]),
2729
2729
  "data-cy": "legacy-page-size"
2730
2730
  }, [
2731
2731
  ca,
2732
- f(m(ne), {
2733
- options: s.value,
2732
+ f(p(ne), {
2733
+ options: n.value,
2734
2734
  modelValue: d.value,
2735
2735
  "onUpdate:modelValue": $[1] || ($[1] = (G) => d.value = G),
2736
2736
  class: "ms-2",
@@ -2743,64 +2743,81 @@ const Qt = {
2743
2743
  g.legacyPaginationFooter ? {
2744
2744
  name: "paginatorend",
2745
2745
  fn: b(() => [
2746
- c("span", {
2746
+ m("span", {
2747
2747
  "data-cy": "legacy-total",
2748
- class: F(a.loading ? "opacity-50" : "")
2749
- }, w(v.value) + " " + w(m(Q)(v.value, "result")) + " across " + w(u.value), 3)
2748
+ class: _(l.loading ? "opacity-50" : "")
2749
+ }, w(c.value) + " " + w(p(Q)(c.value, "result")) + " across " + w(r.value), 3)
2750
2750
  ]),
2751
2751
  key: "1"
2752
2752
  } : void 0
2753
2753
  ]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
2754
2754
  ]));
2755
2755
  }
2756
- }), ma = { class: "d-flex position-relative" }, pa = { class: "d-flex w-100" }, va = { class: "d-flex w-100" }, Fl = /* @__PURE__ */ V({
2756
+ }), ma = { class: "d-flex position-relative" }, pa = { class: "d-flex w-100" }, va = { class: "d-flex w-100" }, _l = /* @__PURE__ */ V({
2757
2757
  __name: "ForgeFilterHeader",
2758
2758
  props: /* @__PURE__ */ j({
2759
2759
  dataType: {},
2760
2760
  dropdownOptions: {},
2761
2761
  showClearButton: { type: Boolean, default: !1 },
2762
- clearFilter: { type: Function }
2762
+ clearFilter: { type: Function },
2763
+ optionLabel: {},
2764
+ optionValue: {}
2763
2765
  }, {
2764
2766
  modelValue: { required: !0 },
2765
2767
  modelModifiers: {}
2766
2768
  }),
2767
2769
  emits: ["update:modelValue"],
2768
2770
  setup(e) {
2769
- const t = E(e, "modelValue"), l = () => {
2771
+ const t = E(e, "modelValue"), o = (a, n) => {
2772
+ if (!a || Array.isArray(a) && a.length === 0)
2773
+ return n;
2774
+ const d = (u) => {
2775
+ var r;
2776
+ const c = (r = e.dropdownOptions) == null ? void 0 : r.find(
2777
+ (s) => e.optionValue ? s[e.optionValue] === u : Object.keys(s).every((v) => u.hasOwnProperty(v) && s[v] === u[v])
2778
+ );
2779
+ return e.optionLabel ? c[e.optionLabel] : c;
2780
+ };
2781
+ return Array.isArray(a) ? a.map(d).join(", ") : typeof a == "object" ? d(a) : a;
2782
+ }, l = () => {
2770
2783
  e.clearFilter ? e.clearFilter() : t.value = null;
2771
2784
  };
2772
- return (a, o) => {
2773
- const s = me, d = R;
2785
+ return (a, n) => {
2786
+ const d = me, u = L;
2774
2787
  return i(), y("div", ma, [
2775
- a.dataType === "numeric" ? (i(), h(s, C({
2788
+ a.dataType === "numeric" ? (i(), h(d, C({
2776
2789
  key: 0,
2777
2790
  modelValue: t.value,
2778
- "onUpdate:modelValue": o[0] || (o[0] = (r) => t.value = r)
2791
+ "onUpdate:modelValue": n[0] || (n[0] = (c) => t.value = c)
2779
2792
  }, a.$attrs), null, 16, ["modelValue"])) : a.dataType === "date" ? (i(), h(fe, C({
2780
2793
  key: 1,
2781
2794
  modelValue: t.value,
2782
- "onUpdate:modelValue": o[1] || (o[1] = (r) => t.value = r)
2795
+ "onUpdate:modelValue": n[1] || (n[1] = (c) => t.value = c)
2783
2796
  }, a.$attrs, {
2784
2797
  "show-icon": !1,
2785
2798
  "show-on-focus": !0
2786
- }), null, 16, ["modelValue"])) : a.dataType === "select" ? (i(), h(m(ne), C({
2799
+ }), null, 16, ["modelValue"])) : a.dataType === "select" ? (i(), h(p(ne), C({
2787
2800
  key: 2,
2788
2801
  modelValue: t.value,
2789
- "onUpdate:modelValue": o[2] || (o[2] = (r) => t.value = r)
2790
- }, a.$attrs, { options: a.dropdownOptions }), {
2791
- value: b(({ value: r, placeholder: v }) => [
2792
- c("div", pa, [
2793
- c("span", {
2794
- class: F({ "filter-placeholder": r === null })
2795
- }, w(r !== null ? r : v), 3),
2796
- a.showClearButton && t.value !== null ? (i(), h(d, {
2802
+ "onUpdate:modelValue": n[2] || (n[2] = (c) => t.value = c)
2803
+ }, a.$attrs, {
2804
+ options: a.dropdownOptions,
2805
+ "option-value": a.optionValue,
2806
+ "option-label": a.optionLabel
2807
+ }), {
2808
+ value: b(({ value: c, placeholder: r }) => [
2809
+ m("div", pa, [
2810
+ m("span", {
2811
+ class: _({ "filter-placeholder": c === null })
2812
+ }, w(o(c, r)), 3),
2813
+ a.showClearButton && t.value !== null ? (i(), h(u, {
2797
2814
  key: 0,
2798
2815
  onClick: Y(l, ["prevent"]),
2799
2816
  size: "small",
2800
2817
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
2801
2818
  }, {
2802
2819
  default: b(() => [
2803
- f(m(T), {
2820
+ f(p(T), {
2804
2821
  icon: "bi:x",
2805
2822
  width: "1rem",
2806
2823
  height: "1rem",
@@ -2812,28 +2829,30 @@ const Qt = {
2812
2829
  ])
2813
2830
  ]),
2814
2831
  _: 1
2815
- }, 16, ["modelValue", "options"])) : a.dataType === "multiselect" ? (i(), h(m(De), C({
2832
+ }, 16, ["modelValue", "options", "option-value", "option-label"])) : a.dataType === "multiselect" ? (i(), h(p(De), C({
2816
2833
  key: 3,
2817
2834
  modelValue: t.value,
2818
- "onUpdate:modelValue": o[3] || (o[3] = (r) => t.value = r)
2835
+ "onUpdate:modelValue": n[3] || (n[3] = (c) => t.value = c)
2819
2836
  }, a.$attrs, {
2820
2837
  options: a.dropdownOptions,
2821
2838
  showToggleAll: !1,
2839
+ "option-label": a.optionLabel,
2840
+ "option-value": a.optionValue,
2822
2841
  filter: ""
2823
2842
  }), {
2824
- value: b(({ value: r, placeholder: v }) => [
2825
- c("div", va, [
2826
- c("span", {
2827
- class: F({ "filter-placeholder": (r == null ? void 0 : r.length) === 0 })
2828
- }, w(r !== null && (r == null ? void 0 : r.length) > 0 ? r.join(", ") : v), 3),
2829
- a.showClearButton && (r == null ? void 0 : r.length) > 0 ? (i(), h(d, {
2843
+ value: b(({ value: c, placeholder: r }) => [
2844
+ m("div", va, [
2845
+ m("span", {
2846
+ class: _({ "filter-placeholder": (c == null ? void 0 : c.length) === 0 || c === null })
2847
+ }, w(o(c, r)), 3),
2848
+ a.showClearButton && (c == null ? void 0 : c.length) > 0 ? (i(), h(u, {
2830
2849
  key: 0,
2831
2850
  onClick: Y(l, ["prevent"]),
2832
2851
  size: "small",
2833
2852
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
2834
2853
  }, {
2835
2854
  default: b(() => [
2836
- f(m(T), {
2855
+ f(p(T), {
2837
2856
  icon: "bi:x",
2838
2857
  width: "1rem",
2839
2858
  height: "1rem",
@@ -2845,19 +2864,19 @@ const Qt = {
2845
2864
  ])
2846
2865
  ]),
2847
2866
  _: 1
2848
- }, 16, ["modelValue", "options"])) : (i(), h(m(de), C({
2867
+ }, 16, ["modelValue", "options", "option-label", "option-value"])) : (i(), h(p(de), C({
2849
2868
  key: 4,
2850
2869
  modelValue: t.value,
2851
- "onUpdate:modelValue": o[4] || (o[4] = (r) => t.value = r)
2870
+ "onUpdate:modelValue": n[4] || (n[4] = (c) => t.value = c)
2852
2871
  }, a.$attrs), null, 16, ["modelValue"])),
2853
- a.showClearButton && t.value !== null && a.dataType !== "select" && a.dataType !== "multiselect" && a.dataType !== "date" ? (i(), h(d, {
2872
+ a.showClearButton && t.value !== null && a.dataType !== "select" && a.dataType !== "multiselect" && a.dataType !== "date" ? (i(), h(u, {
2854
2873
  key: 5,
2855
2874
  onClick: Y(l, ["prevent"]),
2856
2875
  size: "small",
2857
2876
  class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
2858
2877
  }, {
2859
2878
  default: b(() => [
2860
- f(m(T), {
2879
+ f(p(T), {
2861
2880
  icon: "bi:x",
2862
2881
  width: "1rem",
2863
2882
  height: "1rem",
@@ -2870,14 +2889,14 @@ const Qt = {
2870
2889
  };
2871
2890
  }
2872
2891
  });
2873
- function ge(e, t, l, a) {
2874
- const o = t.flatMap((s) => s.file);
2875
- return t = t.map((s) => ({ ...s, status: s.status == "Duplicate" ? "Not Uploaded" : s.status })), e.forEach((s) => {
2876
- const d = o.findIndex((v) => v.name === s.name);
2877
- let r = "Not Uploaded";
2878
- d === -1 ? ((!l.includes(s.type) || !(s.size <= a)) && (r = l.includes(s.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
2879
- file: s,
2880
- status: r,
2892
+ function ge(e, t, o, l) {
2893
+ const a = t.flatMap((n) => n.file);
2894
+ return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
2895
+ const d = a.findIndex((c) => c.name === n.name);
2896
+ let u = "Not Uploaded";
2897
+ d === -1 ? ((!o.includes(n.type) || !(n.size <= l)) && (u = o.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
2898
+ file: n,
2899
+ status: u,
2881
2900
  blobFileName: null
2882
2901
  })) : t[d].status = "Duplicate";
2883
2902
  }), t;
@@ -2886,24 +2905,24 @@ async function ya(e, t) {
2886
2905
  if (e === "Uploaded" && t !== null)
2887
2906
  try {
2888
2907
  await new pe(t).delete();
2889
- } catch (l) {
2890
- if (l !== "BlobNotFound") {
2908
+ } catch (o) {
2909
+ if (o !== "BlobNotFound") {
2891
2910
  e = "DeleteFileFailed";
2892
2911
  return;
2893
2912
  }
2894
2913
  }
2895
2914
  }
2896
- function ue(e, t = !0, l = 1) {
2897
- const a = t ? 1e3 : 1024;
2898
- if (Math.abs(e) < a)
2915
+ function ue(e, t = !0, o = 1) {
2916
+ const l = t ? 1e3 : 1024;
2917
+ if (Math.abs(e) < l)
2899
2918
  return e + " B";
2900
- const o = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
2901
- let s = -1;
2902
- const d = 10 ** l;
2919
+ const a = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
2920
+ let n = -1;
2921
+ const d = 10 ** o;
2903
2922
  do
2904
- e /= a, ++s;
2905
- while (Math.round(Math.abs(e) * d) / d >= a && s < o.length - 1);
2906
- return e.toFixed(l) + " " + o[s];
2923
+ e /= l, ++n;
2924
+ while (Math.round(Math.abs(e) * d) / d >= l && n < a.length - 1);
2925
+ return e.toFixed(o) + " " + a[n];
2907
2926
  }
2908
2927
  function ba(e) {
2909
2928
  return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
@@ -2923,28 +2942,28 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
2923
2942
  }),
2924
2943
  emits: ["update:modelValue"],
2925
2944
  setup(e) {
2926
- const t = E(e, "modelValue"), l = k(() => e.maxFileInput <= t.value.length), a = (o) => {
2927
- t.value = ge(o, t.value, e.acceptedFileTypes, e.maxFileInput);
2945
+ const t = E(e, "modelValue"), o = k(() => e.maxFileInput <= t.value.length), l = (a) => {
2946
+ t.value = ge(a, t.value, e.acceptedFileTypes, e.maxFileInput);
2928
2947
  };
2929
- return (o, s) => (i(), y("div", ga, [
2930
- B(o.$slots, "message"),
2931
- c("div", null, [
2932
- c("input", {
2948
+ return (a, n) => (i(), y("div", ga, [
2949
+ B(a.$slots, "message"),
2950
+ m("div", null, [
2951
+ m("input", {
2933
2952
  id: "file-input",
2934
2953
  type: "file",
2935
2954
  class: "d-none",
2936
- accept: o.acceptedFileTypes.join(", "),
2937
- disabled: l.value,
2938
- multiple: o.maxFileInput > 1,
2939
- onInput: s[0] || (s[0] = (d) => a([...d.target.files]))
2955
+ accept: a.acceptedFileTypes.join(", "),
2956
+ disabled: o.value,
2957
+ multiple: a.maxFileInput > 1,
2958
+ onInput: n[0] || (n[0] = (d) => l([...d.target.files]))
2940
2959
  }, null, 40, ha),
2941
- c("label", {
2942
- class: F([{ disabled: l.value }, "btn btn-primary"]),
2960
+ m("label", {
2961
+ class: _([{ disabled: o.value }, "btn btn-primary"]),
2943
2962
  id: "file-input-button",
2944
2963
  for: "file-input"
2945
2964
  }, [
2946
- B(o.$slots, "button-content", {}, () => [
2947
- f(m(T), {
2965
+ B(a.$slots, "button-content", {}, () => [
2966
+ f(p(T), {
2948
2967
  icon: "bi:upload",
2949
2968
  class: "me-2",
2950
2969
  height: "20px",
@@ -2954,11 +2973,11 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
2954
2973
  ])
2955
2974
  ], 2)
2956
2975
  ]),
2957
- o.showDragDropArea ? (i(), y("div", {
2976
+ a.showDragDropArea ? (i(), y("div", {
2958
2977
  class: "ms-auto",
2959
- key: o.acceptedFileTypes.length,
2978
+ key: a.acceptedFileTypes.length,
2960
2979
  id: "accepted-file-types"
2961
- }, "Accepted File Types: " + w(o.acceptedFileTypes.map((d) => d.split("/").pop()).join(", ")), 1)) : S("", !0)
2980
+ }, "Accepted File Types: " + w(a.acceptedFileTypes.map((d) => d.split("/").pop()).join(", ")), 1)) : S("", !0)
2962
2981
  ]));
2963
2982
  }
2964
2983
  }), xa = {
@@ -2980,18 +2999,18 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
2980
2999
  }),
2981
3000
  emits: ["update:modelValue"],
2982
3001
  setup(e) {
2983
- const t = E(e, "modelValue"), l = I(!1), a = k(() => e.maxFileInput <= t.value.length), o = (s) => {
2984
- l.value = !1, s.dataTransfer.files.length > e.maxFileInput || a.value ? s.preventDefault() : t.value = ge([...s.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
3002
+ const t = E(e, "modelValue"), o = I(!1), l = k(() => e.maxFileInput <= t.value.length), a = (n) => {
3003
+ o.value = !1, n.dataTransfer.files.length > e.maxFileInput || l.value ? n.preventDefault() : t.value = ge([...n.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
2985
3004
  };
2986
- return (s, d) => (i(), y("div", {
3005
+ return (n, d) => (i(), y("div", {
2987
3006
  id: "drag-drop-area",
2988
- class: F(`${l.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
2989
- onDragleave: d[0] || (d[0] = Y((r) => l.value = !1, ["prevent"])),
2990
- onDragover: d[1] || (d[1] = Y((r) => l.value = !0, ["prevent"])),
2991
- onDrop: Y(o, ["prevent"])
3007
+ class: _(`${o.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
3008
+ onDragleave: d[0] || (d[0] = Y((u) => o.value = !1, ["prevent"])),
3009
+ onDragover: d[1] || (d[1] = Y((u) => o.value = !0, ["prevent"])),
3010
+ onDrop: Y(a, ["prevent"])
2992
3011
  }, [
2993
3012
  t.value.length === 0 ? (i(), y("div", xa, [
2994
- f(m(T), {
3013
+ f(p(T), {
2995
3014
  icon: "bi:upload",
2996
3015
  class: "me-2",
2997
3016
  height: "20px",
@@ -2999,11 +3018,11 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
2999
3018
  }),
3000
3019
  O(" Drag and drop files here ")
3001
3020
  ])) : (i(), y("div", ka, [
3002
- B(s.$slots, "default")
3021
+ B(n.$slots, "default")
3003
3022
  ]))
3004
3023
  ], 34));
3005
3024
  }
3006
- }), Ba = { class: "d-flex align-items-center me-2" }, _a = /* @__PURE__ */ V({
3025
+ }), Ba = { class: "d-flex align-items-center me-2" }, Fa = /* @__PURE__ */ V({
3007
3026
  __name: "UploadStatus",
3008
3027
  props: {
3009
3028
  fileSize: {},
@@ -3012,7 +3031,7 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3012
3031
  uploadStatus: {}
3013
3032
  },
3014
3033
  setup(e) {
3015
- const t = k(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), l = k(() => {
3034
+ const t = k(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), o = k(() => {
3016
3035
  switch (e.uploadStatus) {
3017
3036
  case "InvalidFileType":
3018
3037
  return "Upload Failed: File type is not accepted.";
@@ -3028,32 +3047,32 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3028
3047
  return "Upload Failed: Connection error, please try again.";
3029
3048
  }
3030
3049
  });
3031
- return (a, o) => (i(), y("div", Ba, [
3032
- a.uploadStatus === "Uploading" ? (i(), h(Gt, {
3050
+ return (l, a) => (i(), y("div", Ba, [
3051
+ l.uploadStatus === "Uploading" ? (i(), h(Gt, {
3033
3052
  key: 0,
3034
3053
  pixelWidth: 200,
3035
3054
  animate: "",
3036
3055
  striped: ""
3037
3056
  }, {
3038
3057
  default: b(() => [
3039
- O(w((a.bytesUploaded / a.fileSize * 100).toFixed(0)) + "%", 1)
3058
+ O(w((l.bytesUploaded / l.fileSize * 100).toFixed(0)) + "%", 1)
3040
3059
  ]),
3041
3060
  _: 1
3042
3061
  })) : S("", !0),
3043
- a.uploadStatus !== "Uploading" && a.uploadStatus !== "Not Uploaded" && a.uploadStatus !== "Uploaded" && a.uploadStatus !== "Preparing" ? (i(), h(se, {
3062
+ l.uploadStatus !== "Uploading" && l.uploadStatus !== "Not Uploaded" && l.uploadStatus !== "Uploaded" && l.uploadStatus !== "Preparing" ? (i(), h(se, {
3044
3063
  key: 1,
3045
3064
  id: "upload-status-alert",
3046
3065
  severity: t.value,
3047
3066
  class: "mb-0 w-75 ms-auto"
3048
3067
  }, {
3049
3068
  default: b(() => [
3050
- O(w(l.value), 1)
3069
+ O(w(o.value), 1)
3051
3070
  ]),
3052
3071
  _: 1
3053
3072
  }, 8, ["severity"])) : S("", !0)
3054
3073
  ]));
3055
3074
  }
3056
- }), Fa = ["data-cy"], Va = { class: "ms-3 d-flex flex-column" }, Sa = {
3075
+ }), _a = ["data-cy"], Va = { class: "ms-3 d-flex flex-column" }, Sa = {
3057
3076
  key: 1,
3058
3077
  id: "file-name"
3059
3078
  }, Ca = {
@@ -3081,55 +3100,55 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3081
3100
  }),
3082
3101
  emits: /* @__PURE__ */ j(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
3083
3102
  setup(e, { emit: t }) {
3084
- const l = E(e, "file"), a = E(e, "blobFileName"), o = E(e, "uploadStatus"), s = t, d = I(l.value.name), r = I(""), v = I(0), u = I(), n = k(() => e.acceptedFileTypes.includes(l.value.type)), p = k(() => l.value.size <= e.maxFileSize), x = () => {
3085
- l.value = new File([l.value], d.value, { type: l.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
3086
- }, _ = async () => {
3087
- if (!n.value || !p.value) {
3088
- o.value = n.value ? "InvalidFileSize" : "InvalidFileType";
3103
+ const o = E(e, "file"), l = E(e, "blobFileName"), a = E(e, "uploadStatus"), n = t, d = I(o.value.name), u = I(""), c = I(0), r = I(), s = k(() => e.acceptedFileTypes.includes(o.value.type)), v = k(() => o.value.size <= e.maxFileSize), x = () => {
3104
+ o.value = new File([o.value], d.value, { type: o.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
3105
+ }, F = async () => {
3106
+ if (!s.value || !v.value) {
3107
+ a.value = s.value ? "InvalidFileSize" : "InvalidFileType";
3089
3108
  return;
3090
3109
  }
3091
- o.value = "Preparing", u.value = new AbortController();
3092
- const [M, z] = await e.getFileUrlAction(l.value.name);
3110
+ a.value = "Preparing", r.value = new AbortController();
3111
+ const [M, z] = await e.getFileUrlAction(o.value.name);
3093
3112
  if (!M) {
3094
- o.value = "Failed";
3113
+ a.value = "Failed";
3095
3114
  return;
3096
3115
  }
3097
3116
  try {
3098
- o.value = "Uploading";
3117
+ a.value = "Uploading";
3099
3118
  const g = new pe(M), $ = {
3100
- abortSignal: u.value.signal,
3101
- onProgress: (G) => v.value = G.loadedBytes,
3119
+ abortSignal: r.value.signal,
3120
+ onProgress: (G) => c.value = G.loadedBytes,
3102
3121
  tags: { temp: "true" }
3103
3122
  };
3104
- await g.uploadData(l.value, $), r.value = M, o.value = "Uploaded", a.value = z;
3123
+ await g.uploadData(o.value, $), u.value = M, a.value = "Uploaded", l.value = z;
3105
3124
  } catch (g) {
3106
3125
  if (g.name === "AbortError") {
3107
- o.value = "Aborted";
3126
+ a.value = "Aborted";
3108
3127
  return;
3109
3128
  }
3110
- o.value = "Failed";
3129
+ a.value = "Failed";
3111
3130
  }
3112
3131
  }, P = async () => {
3113
- await ya(o.value, r.value), s("deleted", l.value);
3132
+ await ya(a.value, u.value), n("deleted", o.value);
3114
3133
  };
3115
3134
  return ae(() => {
3116
- e.autoUploadToBlob && _();
3135
+ e.autoUploadToBlob && F();
3117
3136
  }), (M, z) => {
3118
- const g = R;
3137
+ const g = L;
3119
3138
  return i(), y("div", {
3120
3139
  class: "py-4 px-3 d-flex",
3121
- "data-cy": `file-info-${l.value.name}`
3140
+ "data-cy": `file-info-${o.value.name}`
3122
3141
  }, [
3123
- c("div", null, [
3124
- m(ba)(l.value.type) ? (i(), h(m(Ue), {
3142
+ m("div", null, [
3143
+ p(ba)(o.value.type) ? (i(), h(p(Ue), {
3125
3144
  key: 0,
3126
3145
  id: "thumbnail-image",
3127
3146
  "image-class": "image-file-thumbnail border",
3128
- src: m(fa)(l.value),
3129
- alt: l.value.name,
3147
+ src: p(fa)(o.value),
3148
+ alt: o.value.name,
3130
3149
  width: "75px",
3131
3150
  preview: ""
3132
- }, null, 8, ["src", "alt"])) : (i(), h(m(T), {
3151
+ }, null, 8, ["src", "alt"])) : (i(), h(p(T), {
3133
3152
  key: 1,
3134
3153
  id: "file-earmark",
3135
3154
  icon: "bi:file-earmark",
@@ -3137,48 +3156,48 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3137
3156
  width: "75px"
3138
3157
  }))
3139
3158
  ]),
3140
- c("div", Va, [
3141
- c("div", null, [
3159
+ m("div", Va, [
3160
+ m("div", null, [
3142
3161
  M.editableFileName ? (i(), h(Bt, {
3143
3162
  key: 0,
3144
3163
  id: "edit-file-name",
3145
3164
  modelValue: d.value,
3146
3165
  "onUpdate:modelValue": z[0] || (z[0] = ($) => d.value = $),
3147
3166
  rules: M.customFileNameRules,
3148
- name: l.value.name,
3167
+ name: o.value.name,
3149
3168
  "complete-action": x
3150
- }, null, 8, ["modelValue", "rules", "name"])) : (i(), y("span", Sa, w(l.value.name), 1))
3169
+ }, null, 8, ["modelValue", "rules", "name"])) : (i(), y("span", Sa, w(o.value.name), 1))
3151
3170
  ]),
3152
- c("span", Ca, "File type: " + w(l.value.type.split("/").pop()), 1),
3153
- c("span", Ta, "File size: " + w(m(ue)(l.value.size)), 1)
3171
+ m("span", Ca, "File type: " + w(o.value.type.split("/").pop()), 1),
3172
+ m("span", Ta, "File size: " + w(p(ue)(o.value.size)), 1)
3154
3173
  ]),
3155
- c("div", Pa, [
3156
- (i(), h(_a, {
3157
- key: o.value,
3158
- "file-size": l.value.size,
3159
- "upload-status": o.value,
3160
- "bytes-uploaded": v.value,
3174
+ m("div", Pa, [
3175
+ (i(), h(Fa, {
3176
+ key: a.value,
3177
+ "file-size": o.value.size,
3178
+ "upload-status": a.value,
3179
+ "bytes-uploaded": c.value,
3161
3180
  "max-file-size": M.maxFileSize
3162
3181
  }, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
3163
- o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (i(), h(g, {
3182
+ a.value === "Not Uploaded" || a.value === "Failed" || a.value === "Duplicate" || a.value === "Aborted" ? (i(), h(g, {
3164
3183
  key: 0,
3165
3184
  link: "",
3166
- onClick: _
3185
+ onClick: F
3167
3186
  }, {
3168
3187
  default: b(() => [
3169
- f(m(T), {
3170
- icon: o.value === "Not Uploaded" || o.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
3188
+ f(p(T), {
3189
+ icon: a.value === "Not Uploaded" || a.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
3171
3190
  }, null, 8, ["icon"])
3172
3191
  ]),
3173
3192
  _: 1
3174
3193
  })) : S("", !0),
3175
- o.value === "Uploading" ? (i(), h(g, {
3194
+ a.value === "Uploading" ? (i(), h(g, {
3176
3195
  key: 1,
3177
3196
  link: "",
3178
- onClick: z[1] || (z[1] = ($) => u.value.value.abort())
3197
+ onClick: z[1] || (z[1] = ($) => r.value.value.abort())
3179
3198
  }, {
3180
3199
  default: b(() => [
3181
- f(m(T), { icon: "bi:x-circle-fill" })
3200
+ f(p(T), { icon: "bi:x-circle-fill" })
3182
3201
  ]),
3183
3202
  _: 1
3184
3203
  })) : (i(), h(g, {
@@ -3188,12 +3207,12 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3188
3207
  id: "delete-button"
3189
3208
  }, {
3190
3209
  default: b(() => [
3191
- f(m(T), { icon: "bi:trash" })
3210
+ f(p(T), { icon: "bi:trash" })
3192
3211
  ]),
3193
3212
  _: 1
3194
3213
  }))
3195
3214
  ])
3196
- ], 8, Fa);
3215
+ ], 8, _a);
3197
3216
  };
3198
3217
  }
3199
3218
  }), Ia = { class: "d-flex justify-content-end mt-1" }, za = { id: "max-file-size" }, Oa = /* @__PURE__ */ V({
@@ -3202,8 +3221,8 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3202
3221
  maxFileSize: {}
3203
3222
  },
3204
3223
  setup(e) {
3205
- return (t, l) => (i(), y("div", Ia, [
3206
- c("div", za, "Max file size: " + w(m(ue)(t.maxFileSize)), 1)
3224
+ return (t, o) => (i(), y("div", Ia, [
3225
+ m("div", za, "Max file size: " + w(p(ue)(t.maxFileSize)), 1)
3207
3226
  ]));
3208
3227
  }
3209
3228
  }), Da = { "data-cy": "file-uploader" }, Ua = { key: 0 }, Vl = /* @__PURE__ */ V({
@@ -3223,41 +3242,41 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3223
3242
  }),
3224
3243
  emits: ["update:modelValue"],
3225
3244
  setup(e) {
3226
- const t = E(e, "modelValue"), l = e, a = (o) => {
3227
- t.value = t.value.filter((s) => s.file != o);
3245
+ const t = E(e, "modelValue"), o = e, l = (a) => {
3246
+ t.value = t.value.filter((n) => n.file != a);
3228
3247
  };
3229
- return (o, s) => (i(), y("div", Da, [
3230
- f(wa, C(l, {
3248
+ return (a, n) => (i(), y("div", Da, [
3249
+ f(wa, C(o, {
3231
3250
  modelValue: t.value,
3232
- "onUpdate:modelValue": s[0] || (s[0] = (d) => t.value = d)
3251
+ "onUpdate:modelValue": n[0] || (n[0] = (d) => t.value = d)
3233
3252
  }), null, 16, ["modelValue"]),
3234
- o.showDragDropArea ? (i(), y("div", Ua, [
3253
+ a.showDragDropArea ? (i(), y("div", Ua, [
3235
3254
  f($a, {
3236
- "max-file-input": l.maxFileInput,
3237
- "max-file-size": l.maxFileSize,
3238
- "accepted-file-types": l.acceptedFileTypes,
3255
+ "max-file-input": o.maxFileInput,
3256
+ "max-file-size": o.maxFileSize,
3257
+ "accepted-file-types": o.acceptedFileTypes,
3239
3258
  modelValue: t.value,
3240
- "onUpdate:modelValue": s[1] || (s[1] = (d) => t.value = d)
3259
+ "onUpdate:modelValue": n[1] || (n[1] = (d) => t.value = d)
3241
3260
  }, {
3242
3261
  default: b(() => [
3243
- (i(!0), y(N, null, q(t.value, ({ file: d }, r) => (i(), y("span", null, [
3262
+ (i(!0), y(N, null, q(t.value, ({ file: d }, u) => (i(), y("span", null, [
3244
3263
  (i(), h(Ma, C({
3245
3264
  key: d.name,
3246
- class: r === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
3247
- file: t.value[r].file,
3248
- "onUpdate:file": (v) => t.value[r].file = v,
3249
- "blob-file-name": t.value[r].blobFileName,
3250
- "onUpdate:blobFileName": (v) => t.value[r].blobFileName = v,
3251
- "upload-status": t.value[r].status,
3252
- "onUpdate:uploadStatus": (v) => t.value[r].status = v,
3265
+ class: u === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
3266
+ file: t.value[u].file,
3267
+ "onUpdate:file": (c) => t.value[u].file = c,
3268
+ "blob-file-name": t.value[u].blobFileName,
3269
+ "onUpdate:blobFileName": (c) => t.value[u].blobFileName = c,
3270
+ "upload-status": t.value[u].status,
3271
+ "onUpdate:uploadStatus": (c) => t.value[u].status = c,
3253
3272
  ref_for: !0
3254
- }, l, { onDeleted: a }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
3273
+ }, o, { onDeleted: l }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
3255
3274
  ]))), 256))
3256
3275
  ]),
3257
3276
  _: 1
3258
3277
  }, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
3259
3278
  f(Oa, {
3260
- "max-file-size": l.maxFileSize
3279
+ "max-file-size": o.maxFileSize
3261
3280
  }, null, 8, ["max-file-size"])
3262
3281
  ])) : S("", !0)
3263
3282
  ]));
@@ -3271,7 +3290,7 @@ export {
3271
3290
  xl as ForgeChips,
3272
3291
  fe as ForgeDatepicker,
3273
3292
  Vl as ForgeFileUploader,
3274
- Fl as ForgeFilterHeader,
3293
+ _l as ForgeFilterHeader,
3275
3294
  hl as ForgeForm,
3276
3295
  wl as ForgeFormField,
3277
3296
  Bt as ForgeInlineEditor,
@@ -3286,6 +3305,6 @@ export {
3286
3305
  gl as ForgeRemainingCharacters,
3287
3306
  kl as ForgeStatWidget,
3288
3307
  $l as ForgeStepper,
3289
- _l as ForgeTable,
3308
+ Fl as ForgeTable,
3290
3309
  Bl as ForgeTile
3291
3310
  };