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

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.
@@ -16,8 +16,8 @@ import ne from "primevue/dropdown";
16
16
  import Ce from "primevue/inputmask";
17
17
  import Te from "primevue/textarea";
18
18
  import me from "primevue/inputnumber";
19
- import Pe from "primevue/chips";
20
- import Me from "primevue/progressbar";
19
+ import Me from "primevue/chips";
20
+ import Pe from "primevue/progressbar";
21
21
  import Ie from "primevue/divider";
22
22
  import ze from "primevue/steps";
23
23
  import Oe from "primevue/datatable";
@@ -191,13 +191,13 @@ const Ae = {
191
191
  column: {
192
192
  sortBadge: "ms-2 my-auto cursor-pointer",
193
193
  headerCell: (e) => {
194
- var t, o, l, a;
194
+ var t, l, a, o;
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 || ((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
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
201
201
  }
202
202
  ]
203
203
  };
@@ -286,13 +286,13 @@ const Ae = {
286
286
  }, Re = {
287
287
  inputtext: {
288
288
  root: (e) => {
289
- var t, o;
289
+ var t, l;
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": ((o = e.props.size) == null ? void 0 : o.toLowerCase()) == "small"
295
+ "form-control-sm": ((l = e.props.size) == null ? void 0 : l.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, o, l, a;
839
+ var t, l, a, o;
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": ((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"
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"
848
848
  }
849
849
  ]
850
850
  };
@@ -896,9 +896,9 @@ const Ae = {
896
896
  },
897
897
  setup(e) {
898
898
  const t = e;
899
- return (o, l) => {
900
- const a = he;
901
- return i(), h(a, ee(te({ ...o.$attrs, ...t })), {
899
+ return (l, a) => {
900
+ const o = he;
901
+ return i(), h(o, ee(te({ ...l.$attrs, ...t })), {
902
902
  messageicon: b(() => [
903
903
  m("div", {
904
904
  class: _(t.icon ? "me-2 pe-1" : "")
@@ -916,7 +916,7 @@ const Ae = {
916
916
  f(p(T), { icon: "bi:x" })
917
917
  ]),
918
918
  default: b(() => [
919
- B(o.$slots, "default")
919
+ B(l.$slots, "default")
920
920
  ]),
921
921
  _: 3
922
922
  }, 16);
@@ -931,22 +931,22 @@ const Ae = {
931
931
  params: { default: Array }
932
932
  },
933
933
  setup(e) {
934
- const t = I(!1), o = e, l = async () => {
934
+ const t = I(!1), l = e, a = async () => {
935
935
  t.value = !0;
936
936
  try {
937
- await o.action.apply(this, o.params);
938
- } catch (a) {
939
- await o.errorAction.apply(this, o.errorParams ? [...o.errorParams, a] : [a]);
937
+ await l.action.apply(this, l.params);
938
+ } catch (o) {
939
+ await l.errorAction.apply(this, l.errorParams ? [...l.errorParams, o] : [o]);
940
940
  }
941
941
  t.value = !1;
942
942
  };
943
- return (a, n) => {
943
+ return (o, n) => {
944
944
  const d = L;
945
945
  return i(), y(N, null, [
946
- f(d, C({ ...o, ...a.$attrs }, {
946
+ f(d, C({ ...l, ...o.$attrs }, {
947
947
  loading: t.value,
948
- disabled: t.value || o.disabled,
949
- onClick: l
948
+ disabled: t.value || l.disabled,
949
+ onClick: a
950
950
  }), null, 16, ["loading", "disabled"]),
951
951
  f(p(xe))
952
952
  ], 64);
@@ -979,15 +979,15 @@ const Ae = {
979
979
  },
980
980
  emits: ["update:modelValue"],
981
981
  setup(e, { emit: t }) {
982
- const o = t, l = e, { checked: a, handleChange: n, setValue: d, errors: u, errorMessage: c } = K(() => l.name ?? l.label, void 0, {
982
+ const l = t, a = e, { checked: o, handleChange: n, setValue: d, errors: u, errorMessage: c } = K(() => a.name ?? a.label, void 0, {
983
983
  type: "checkbox",
984
984
  checkedValue: !0
985
985
  }), r = (v) => {
986
- l.disabled || (n(v), o("update:modelValue", !l.modelValue));
986
+ a.disabled || (n(v), l("update:modelValue", !a.modelValue));
987
987
  };
988
988
  ae(() => {
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) => {
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, (v) => {
991
991
  d(v);
992
992
  });
993
993
  const s = k(() => u.value.length > 0);
@@ -999,10 +999,10 @@ const Ae = {
999
999
  "data-cy": "checkbox-container"
1000
1000
  }, { ...v.$attrs }), [
1001
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),
1002
+ id: a.name
1003
+ }, { ...a }, {
1004
+ modelValue: p(o),
1005
+ "onUpdate:modelValue": x[0] || (x[0] = (M) => le(o) ? o.value = M : null),
1006
1006
  "input-class": { "is-invalid": s.value },
1007
1007
  onChange: r
1008
1008
  }), {
@@ -1012,12 +1012,12 @@ const Ae = {
1012
1012
  _: 1
1013
1013
  }, 16, ["id", "modelValue", "input-class"]),
1014
1014
  m("label", {
1015
- for: l.name,
1016
- class: _(`${l.disabled ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`),
1015
+ for: a.name,
1016
+ class: _(`${a.disabled ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`),
1017
1017
  onClick: r
1018
1018
  }, [
1019
1019
  B(v.$slots, "default", {}, () => [
1020
- O(w(l.label), 1)
1020
+ O(w(a.label), 1)
1021
1021
  ])
1022
1022
  ], 10, mt)
1023
1023
  ], 16),
@@ -1037,10 +1037,10 @@ const Ae = {
1037
1037
  },
1038
1038
  setup(e) {
1039
1039
  const t = e;
1040
- return (o, l) => {
1041
- const a = $e;
1040
+ return (l, a) => {
1041
+ const o = $e;
1042
1042
  return i(), y("div", pt, [
1043
- f(a, {
1043
+ f(o, {
1044
1044
  "animation-duration": ".75",
1045
1045
  class: _(`text-${t.severity === void 0 ? "primary" : t.severity}`)
1046
1046
  }, null, 8, ["class"])
@@ -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
- })), o = k(() => ({
1077
+ })), l = 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 (l, a) => (i(), y("a", {
1084
+ return (a, o) => (i(), y("a", {
1085
1085
  id: "link",
1086
1086
  class: _(["cursor-pointer d-flex", t.value]),
1087
- href: l.url,
1088
- target: l.target
1087
+ href: a.url,
1088
+ target: a.target
1089
1089
  }, [
1090
- B(l.$slots, "default", {}, () => [
1091
- l.iconName ? (i(), h(p(T), {
1090
+ B(a.$slots, "default", {}, () => [
1091
+ a.iconName ? (i(), h(p(T), {
1092
1092
  key: 0,
1093
1093
  id: "link-icon",
1094
- icon: l.iconName,
1095
- class: _(["bi my-auto", o.value])
1094
+ icon: a.iconName,
1095
+ class: _(["bi my-auto", l.value])
1096
1096
  }, null, 8, ["icon", "class"])) : S("", !0),
1097
- O(" " + w(l.label), 1)
1097
+ O(" " + w(a.label), 1)
1098
1098
  ])
1099
1099
  ], 10, vt));
1100
1100
  }
@@ -1105,15 +1105,21 @@ 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 o = JSON.parse(e.response);
1109
- o.errors && (t.errorDetails = Object.values(o.errors).flat()), o.message && (t.errorDetails = o.message);
1108
+ const l = JSON.parse(e.response);
1109
+ l.errors && (t.errorDetails = Object.values(l.errors).flat()), l.message && (t.errorDetails = l.message);
1110
1110
  }
1111
1111
  return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
1112
1112
  }
1113
+ function vl(e, t) {
1114
+ return e.map((l) => ({ id: l, label: t ? t(l) : `${l}` }));
1115
+ }
1116
+ function yl(e, t, l) {
1117
+ return { id: e, label: t ?? e.toString(), shortLabel: l };
1118
+ }
1113
1119
  const bt = { key: 0 }, ft = {
1114
1120
  class: "d-flex w-100",
1115
1121
  "data-cy": "footer"
1116
- }, vl = /* @__PURE__ */ V({
1122
+ }, bl = /* @__PURE__ */ V({
1117
1123
  __name: "ForgeModal",
1118
1124
  props: /* @__PURE__ */ j({
1119
1125
  cancelText: { default: "Cancel" },
@@ -1158,40 +1164,40 @@ const bt = { key: 0 }, ft = {
1158
1164
  }),
1159
1165
  emits: ["update:visible"],
1160
1166
  setup(e) {
1161
- const t = E(e, "visible"), o = I(!1), l = e, a = I(!1), n = I({
1167
+ const t = E(e, "visible"), l = I(!1), a = e, o = I(!1), n = I({
1162
1168
  hasError: !1,
1163
1169
  header: "",
1164
1170
  message: []
1165
1171
  }), d = () => {
1166
- o.value = !1;
1172
+ l.value = !1;
1167
1173
  }, u = () => {
1168
- o.value = !0;
1174
+ l.value = !0;
1169
1175
  }, c = () => {
1170
1176
  t.value = !1;
1171
1177
  }, r = async () => {
1172
- if (l.onConfirm) {
1173
- a.value = !0, n.value.hasError = !1;
1178
+ if (a.onConfirm) {
1179
+ o.value = !0, n.value.hasError = !1;
1174
1180
  try {
1175
- const v = await l.onConfirm();
1181
+ const v = await a.onConfirm();
1176
1182
  (v || v == null) && c();
1177
1183
  } catch (v) {
1178
1184
  n.value.hasError = !0;
1179
1185
  const x = yt(v);
1180
1186
  n.value.header = x.errorMessage, n.value.message = x.errorDetails;
1181
1187
  }
1182
- a.value = !1;
1188
+ o.value = !1;
1183
1189
  }
1184
1190
  }, s = k(() => ({
1185
1191
  root: [
1186
1192
  "modal modal-dialog modal-content h-auto m-0",
1187
1193
  {
1188
- "mw-100 vh-100 vw-100 top-0 start-0": o.value
1194
+ "mw-100 vh-100 vw-100 top-0 start-0": l.value
1189
1195
  }
1190
1196
  ]
1191
1197
  }));
1192
1198
  return (v, x) => {
1193
- const F = L, P = Be;
1194
- return i(), h(P, C(l, {
1199
+ const F = L, M = Be;
1200
+ return i(), h(M, C(a, {
1195
1201
  onMaximize: u,
1196
1202
  onUnmaximize: d,
1197
1203
  pt: s.value
@@ -1208,14 +1214,14 @@ const bt = { key: 0 }, ft = {
1208
1214
  maximizeicon: b(() => [
1209
1215
  f(p(T), {
1210
1216
  "data-cy": "maximisable-icon",
1211
- icon: o.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1217
+ icon: l.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1212
1218
  width: "16",
1213
1219
  height: "16"
1214
1220
  }, null, 8, ["icon"])
1215
1221
  ]),
1216
1222
  _: 2
1217
1223
  }, [
1218
- q(v.$slots, (M, z) => ({
1224
+ q(v.$slots, (P, z) => ({
1219
1225
  name: z,
1220
1226
  fn: b((g) => [
1221
1227
  n.value.hasError ? (i(), h(se, {
@@ -1234,7 +1240,7 @@ const bt = { key: 0 }, ft = {
1234
1240
  _: 1
1235
1241
  })) : S("", !0),
1236
1242
  B(v.$slots, z, ee(te(g || {}))),
1237
- a.value ? B(v.$slots, "loader", { key: 1 }, () => [
1243
+ o.value ? B(v.$slots, "loader", { key: 1 }, () => [
1238
1244
  f(ye, { "data-cy": "loader" })
1239
1245
  ]) : S("", !0)
1240
1246
  ])
@@ -1245,18 +1251,18 @@ const bt = { key: 0 }, ft = {
1245
1251
  m("div", ft, [
1246
1252
  f(F, {
1247
1253
  label: v.cancelText,
1248
- class: _(l.cancelClass),
1254
+ class: _(a.cancelClass),
1249
1255
  outlined: "",
1250
1256
  onClick: c,
1251
1257
  id: "cancel-button",
1252
- type: l.cancelButtonType
1258
+ type: a.cancelButtonType
1253
1259
  }, null, 8, ["label", "class", "type"]),
1254
1260
  f(F, {
1255
1261
  label: v.submitText,
1256
- class: _([l.submitClass, "ms-auto"]),
1262
+ class: _([a.submitClass, "ms-auto"]),
1257
1263
  onClick: r,
1258
1264
  id: "submit-button",
1259
- type: l.submitButtonType
1265
+ type: a.submitButtonType
1260
1266
  }, null, 8, ["label", "class", "type"])
1261
1267
  ])
1262
1268
  ]),
@@ -1280,33 +1286,33 @@ const bt = { key: 0 }, ft = {
1280
1286
  }),
1281
1287
  emits: ["update:modelValue"],
1282
1288
  setup(e) {
1283
- const t = e, o = E(e, "modelValue"), l = I(!1), a = I(), n = () => {
1289
+ const t = e, l = E(e, "modelValue"), a = I(!1), o = I(), n = () => {
1284
1290
  var F;
1285
- l.value = !l.value, (F = a.value) == null || F.focus();
1291
+ a.value = !a.value, (F = o.value) == null || F.focus();
1286
1292
  }, d = async () => {
1287
1293
  if (x.value)
1288
1294
  return !1;
1289
- if (o.value = v.value, t.completeAction)
1295
+ if (l.value = v.value, t.completeAction)
1290
1296
  try {
1291
- await t.completeAction.apply(this, t.params), l.value = !l.value;
1297
+ await t.completeAction.apply(this, t.params), a.value = !a.value;
1292
1298
  } catch {
1293
1299
  t.errorAction && await t.errorAction.apply(this, t.errorParams);
1294
1300
  }
1295
1301
  else
1296
- l.value = !l.value;
1302
+ a.value = !a.value;
1297
1303
  }, u = () => {
1298
- l.value = !l.value;
1304
+ a.value = !a.value;
1299
1305
  }, c = () => {
1300
1306
  v.value = null;
1301
1307
  }, { errorMessage: r, errors: s, value: v } = K(() => t.name, void 0, {
1302
- initialValue: o.value
1308
+ initialValue: l.value
1303
1309
  });
1304
1310
  ae(() => {
1305
- v.value = o.value;
1311
+ v.value = l.value;
1306
1312
  });
1307
1313
  const x = k(() => s.value.length > 0);
1308
- return (F, P) => {
1309
- const M = de, z = L;
1314
+ return (F, M) => {
1315
+ const P = de, z = L;
1310
1316
  return i(), y("div", {
1311
1317
  id: t.name
1312
1318
  }, [
@@ -1315,7 +1321,7 @@ const bt = { key: 0 }, ft = {
1315
1321
  m("span", $t, w(p(v)), 1)
1316
1322
  ])
1317
1323
  ])) : (i(), y("div", ht, [
1318
- l.value ? (i(), y("div", wt, [
1324
+ a.value ? (i(), y("div", wt, [
1319
1325
  R((i(), y("div", xt, [
1320
1326
  B(F.$slots, "editor", {
1321
1327
  class: _({ "is-invalid": x.value }),
@@ -1323,12 +1329,12 @@ const bt = { key: 0 }, ft = {
1323
1329
  cancel: u,
1324
1330
  val: p(v)
1325
1331
  }, () => [
1326
- f(M, {
1332
+ f(P, {
1327
1333
  "data-cy": "input",
1328
1334
  ref_key: "input",
1329
- ref: a,
1335
+ ref: o,
1330
1336
  modelValue: p(v),
1331
- "onUpdate:modelValue": P[0] || (P[0] = (g) => le(v) ? v.value = g : null),
1337
+ "onUpdate:modelValue": M[0] || (M[0] = (g) => le(v) ? v.value = g : null),
1332
1338
  modelModifiers: { trim: !0 },
1333
1339
  class: _({ "is-invalid": x.value }),
1334
1340
  onKeydown: [
@@ -1384,7 +1390,7 @@ const bt = { key: 0 }, ft = {
1384
1390
  ], 8, gt);
1385
1391
  };
1386
1392
  }
1387
- }), Ft = ["href"], yl = /* @__PURE__ */ V({
1393
+ }), Ft = ["href"], fl = /* @__PURE__ */ V({
1388
1394
  __name: "ForgeNavbar",
1389
1395
  props: {
1390
1396
  severity: { default: "light" },
@@ -1401,7 +1407,7 @@ const bt = { key: 0 }, ft = {
1401
1407
  unstyled: { type: Boolean }
1402
1408
  },
1403
1409
  setup(e) {
1404
- const t = e, o = k(() => ({
1410
+ const t = e, l = k(() => ({
1405
1411
  root: () => ({
1406
1412
  class: [
1407
1413
  "navbar container-fluid navbar-expand-lg",
@@ -1428,25 +1434,25 @@ const bt = { key: 0 }, ft = {
1428
1434
  ]
1429
1435
  })
1430
1436
  }));
1431
- return (l, a) => {
1437
+ return (a, o) => {
1432
1438
  const n = _e;
1433
- return i(), h(n, C({ ...t, ...l.$attrs }, {
1434
- pt: o.value,
1439
+ return i(), h(n, C({ ...t, ...a.$attrs }, {
1440
+ pt: l.value,
1435
1441
  "data-cy": "navbar"
1436
1442
  }), oe({
1437
1443
  start: b(() => [
1438
1444
  m("a", {
1439
- href: l.logoUrl,
1445
+ href: a.logoUrl,
1440
1446
  class: "navbar-brand ms-3",
1441
1447
  "data-cy": "logo"
1442
1448
  }, [
1443
- B(l.$slots, "logo", {}, () => [
1449
+ B(a.$slots, "logo", {}, () => [
1444
1450
  O(" Logo ")
1445
1451
  ])
1446
1452
  ], 8, Ft)
1447
1453
  ]),
1448
1454
  menubuttonicon: b(() => [
1449
- B(l.$slots, "menubuttonicon", {}, () => [
1455
+ B(a.$slots, "menubuttonicon", {}, () => [
1450
1456
  f(p(T), {
1451
1457
  icon: "bi:list",
1452
1458
  class: _(t.severity === "light" ? "text-black" : "text-white"),
@@ -1457,10 +1463,10 @@ const bt = { key: 0 }, ft = {
1457
1463
  ]),
1458
1464
  _: 2
1459
1465
  }, [
1460
- q(l.$slots, (d, u) => ({
1466
+ q(a.$slots, (d, u) => ({
1461
1467
  name: u,
1462
1468
  fn: b((c) => [
1463
- B(l.$slots, u, ee(te(c)))
1469
+ B(a.$slots, u, ee(te(c)))
1464
1470
  ])
1465
1471
  }))
1466
1472
  ]), 1040, ["pt"]);
@@ -1478,39 +1484,39 @@ const bt = { key: 0 }, ft = {
1478
1484
  },
1479
1485
  emits: ["update:modelValue"],
1480
1486
  setup(e, { emit: t }) {
1481
- const o = e, l = (U, D) => {
1487
+ const l = e, a = (U, D) => {
1482
1488
  const J = {
1483
1489
  ...D,
1484
1490
  $isDisabled: D.$isDisabled ?? !1
1485
1491
  };
1486
1492
  U(J);
1487
- }, a = ce(), n = t, { errors: d, value: u, errorMessage: c } = K(() => o.name, void 0, {
1488
- initialValue: a.modelValue
1493
+ }, o = ce(), n = t, { errors: d, value: u, errorMessage: c } = K(() => l.name, void 0, {
1494
+ initialValue: o.modelValue
1489
1495
  }), r = I(!1), s = k(() => ({
1490
1496
  multiple: !0,
1491
1497
  label: "label",
1492
1498
  trackBy: "id",
1493
1499
  showPointer: !r.value,
1494
- placeholder: a.searchable === null || a.searchable ? "Search" : "Select",
1500
+ placeholder: o.searchable === null || o.searchable ? "Search" : "Select",
1495
1501
  allowEmpty: !0,
1496
1502
  selectValue: "",
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,
1503
+ closeOnSelect: !!(o.multiple === null || o.multiple),
1504
+ clearOnSelect: !!(o.multiple === null || o.multiple),
1505
+ searchable: !!(o.searchable === null || o.searchable) && o.modelValue.length === o.options.length,
1500
1506
  async: !1,
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, $ = () => {
1507
+ ...o
1508
+ })), v = k(() => `forge-multiselect-${l.severity}`), x = k(() => `multiselect__option ${r.value ? " multiselect__option--highlight" : ""} ${F.value ? " multiselect__option--selected" : ""}`), F = k(() => s.value && !(s.value.multiple || !l.showSelectAll || s.value.async) ? !1 : o.modelValue.length === o.options.length), M = k(() => d.value.length > 0), P = k(() => !!((o.allowEmpty == null || o.allowEmpty) && l.showClearSelection && (s.value.multiple ? o.modelValue.length > 0 : o.modelValue))), z = () => r.value = !0, g = () => r.value = !1, $ = () => {
1503
1509
  u.value = s.value.multiple ? [] : null, n("update:modelValue", u.value);
1504
1510
  }, G = (U) => {
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]));
1511
+ n("update:modelValue", l.selectValue ? U.map((D) => D[l.selectValue]) : U);
1512
+ }, Z = (U) => o.modelValue !== null ? o.modelValue.some((D) => s.value.selectValue ? U[l.selectValue] === D : U.id === D.id && U.label === D.label) : !1, ie = () => {
1513
+ F.value ? $() : (u.value = [...o.options], n("update:modelValue", [...o.options]));
1508
1514
  };
1509
1515
  return (U, D) => {
1510
1516
  const J = ve;
1511
1517
  return i(), y(N, null, [
1512
1518
  f(p(Ve), C(s.value, {
1513
- class: [v.value, P.value ? "is-invalid" : ""],
1519
+ class: [v.value, M.value ? "is-invalid" : ""],
1514
1520
  "data-cy": "multiselect",
1515
1521
  "onUpdate:modelValue": [
1516
1522
  G,
@@ -1519,7 +1525,7 @@ const bt = { key: 0 }, ft = {
1519
1525
  modelValue: p(u)
1520
1526
  }), oe({
1521
1527
  caret: b(({ toggle: A }) => [
1522
- M.value ? (i(), h(p(T), {
1528
+ P.value ? (i(), h(p(T), {
1523
1529
  key: 0,
1524
1530
  icon: "bi:x",
1525
1531
  class: "my-auto multiselect__clear-icon",
@@ -1540,7 +1546,7 @@ const bt = { key: 0 }, ft = {
1540
1546
  f(p(T), {
1541
1547
  icon: "bi:x",
1542
1548
  class: "my-auto multiselect__tag-icon",
1543
- onMousedown: Y((Aa) => l(W, A), ["prevent", "stop"]),
1549
+ onMousedown: Y((Aa) => a(W, A), ["prevent", "stop"]),
1544
1550
  height: "18px",
1545
1551
  width: "18px"
1546
1552
  }, null, 8, ["onMousedown"])
@@ -1599,22 +1605,22 @@ const bt = { key: 0 }, ft = {
1599
1605
  "data-cy": "error",
1600
1606
  class: "invalid-feedback"
1601
1607
  }, w(p(c)), 513), [
1602
- [H, P.value]
1608
+ [H, M.value]
1603
1609
  ])
1604
1610
  ], 64);
1605
1611
  };
1606
1612
  }
1607
- }), Pt = {
1613
+ }), Mt = {
1608
1614
  key: 0,
1609
1615
  class: "pl-1"
1610
- }, Mt = { class: "border alternating-item-list" }, It = {
1616
+ }, Pt = { class: "border alternating-item-list" }, It = {
1611
1617
  key: 0,
1612
1618
  class: "p-2 border-top border-bottom",
1613
1619
  "data-cy": "title"
1614
1620
  }, zt = { class: "d-inline-block" }, Ot = {
1615
1621
  key: 1,
1616
1622
  class: "p-2 item d-flex justify-content-between align-items-center"
1617
- }, bl = /* @__PURE__ */ V({
1623
+ }, gl = /* @__PURE__ */ V({
1618
1624
  __name: "ForgeMultiSelectPreview",
1619
1625
  props: {
1620
1626
  title: { default: "Selected Items" },
@@ -1625,10 +1631,10 @@ const bt = { key: 0 }, ft = {
1625
1631
  },
1626
1632
  emits: ["update:modelValue"],
1627
1633
  setup(e, { emit: t }) {
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);
1634
+ const l = e, a = ce(), o = t, n = k(() => `${a.modelValue.length} selected`), d = k(() => a.modelValue.length), u = (r) => {
1635
+ o("update:modelValue", r);
1630
1636
  }, c = (r) => {
1631
- u(l.modelValue.filter((s) => s.id !== r));
1637
+ u(a.modelValue.filter((s) => s.id !== r));
1632
1638
  };
1633
1639
  return (r, s) => {
1634
1640
  const v = L;
@@ -1647,13 +1653,13 @@ const bt = { key: 0 }, ft = {
1647
1653
  ],
1648
1654
  modelValue: r.$attrs.modelValue,
1649
1655
  "limit-text": n.value,
1650
- options: o.options
1656
+ options: l.options
1651
1657
  }, {
1652
1658
  tag: b(() => [
1653
1659
  O(w(""))
1654
1660
  ]),
1655
1661
  selection: b(() => [
1656
- r.$attrs.modelValue.length > 0 ? (i(), y("span", Pt, w(d.value) + " items selected", 1)) : S("", !0)
1662
+ r.$attrs.modelValue.length > 0 ? (i(), y("span", Mt, w(d.value) + " items selected", 1)) : S("", !0)
1657
1663
  ]),
1658
1664
  default: b(() => [
1659
1665
  (i(!0), y(N, null, q(r.$slots, (x, F) => B(r.$slots, F, { slot: F })), 256))
@@ -1670,7 +1676,7 @@ const bt = { key: 0 }, ft = {
1670
1676
  style: we({ height: r.height }),
1671
1677
  class: "overflow-auto"
1672
1678
  }, [
1673
- m("div", Mt, [
1679
+ m("div", Pt, [
1674
1680
  r.title ? (i(), y("div", It, w(r.title), 1)) : S("", !0),
1675
1681
  (i(!0), y(N, null, q(r.$attrs.modelValue, (x) => (i(), y("div", {
1676
1682
  key: x.id,
@@ -1708,21 +1714,21 @@ const bt = { key: 0 }, ft = {
1708
1714
  }, At = {
1709
1715
  "data-cy": "slot",
1710
1716
  class: "d-flex align-items-center"
1711
- }, fl = /* @__PURE__ */ V({
1717
+ }, hl = /* @__PURE__ */ V({
1712
1718
  __name: "ForgePageHeader",
1713
1719
  props: {
1714
1720
  title: {}
1715
1721
  },
1716
1722
  setup(e) {
1717
1723
  const t = e;
1718
- return (o, l) => (i(), y("div", Dt, [
1724
+ return (l, a) => (i(), y("div", Dt, [
1719
1725
  m("h3", Ut, w(t.title), 1),
1720
1726
  m("div", At, [
1721
- B(o.$slots, "default")
1727
+ B(l.$slots, "default")
1722
1728
  ])
1723
1729
  ]));
1724
1730
  }
1725
- }), Nt = { class: "d-flex" }, Et = { "data-cy": "before-slot" }, Lt = { class: "position-relative" }, Rt = { "data-cy": "after-slot" }, fe = /* @__PURE__ */ V({
1731
+ }), Nt = { class: "d-flex" }, Et = { "data-cy": "before-slot" }, Lt = { class: "position-relative w-100" }, Rt = { "data-cy": "after-slot" }, fe = /* @__PURE__ */ V({
1726
1732
  __name: "ForgeDatepicker",
1727
1733
  props: /* @__PURE__ */ j({
1728
1734
  severity: { default: "primary" },
@@ -1795,11 +1801,11 @@ const bt = { key: 0 }, ft = {
1795
1801
  }),
1796
1802
  emits: ["update:modelValue"],
1797
1803
  setup(e) {
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
1804
+ const t = e, l = E(e, "modelValue"), { errors: a, errorMessage: o, handleChange: n, handleBlur: d } = K(() => t.name, void 0, {
1805
+ initialValue: l.value
1800
1806
  }), u = () => {
1801
- o.value = null;
1802
- }, c = k(() => l.value.length > 0), r = k(() => ({
1807
+ l.value = null;
1808
+ }, c = k(() => a.value.length > 0), r = k(() => ({
1803
1809
  day: ({ context: s }) => ({
1804
1810
  class: [
1805
1811
  `text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
@@ -1900,9 +1906,9 @@ const bt = { key: 0 }, ft = {
1900
1906
  m("div", Lt, [
1901
1907
  f(x, C({ ...t, ...s.$attrs }, {
1902
1908
  pt: r.value,
1903
- modelValue: o.value,
1909
+ modelValue: l.value,
1904
1910
  "onUpdate:modelValue": [
1905
- v[0] || (v[0] = (F) => o.value = F),
1911
+ v[0] || (v[0] = (F) => l.value = F),
1906
1912
  p(n)
1907
1913
  ],
1908
1914
  onBlur: p(d),
@@ -1931,25 +1937,25 @@ const bt = { key: 0 }, ft = {
1931
1937
  R(m("small", {
1932
1938
  "data-cy": "error",
1933
1939
  class: "text-invalid"
1934
- }, w(p(a)), 513), [
1940
+ }, w(p(o)), 513), [
1935
1941
  [H, c.value]
1936
1942
  ])
1937
1943
  ], 64);
1938
1944
  };
1939
1945
  }
1940
- }), gl = /* @__PURE__ */ V({
1946
+ }), wl = /* @__PURE__ */ V({
1941
1947
  __name: "ForgeRemainingCharacters",
1942
1948
  props: {
1943
1949
  maxCount: { default: 300 },
1944
1950
  currentCount: {}
1945
1951
  },
1946
1952
  setup(e) {
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));
1953
+ const t = e, l = k(() => t.maxCount - t.currentCount);
1954
+ return (a, o) => (i(), y("div", {
1955
+ class: _(l.value < 0 ? "text-danger" : "")
1956
+ }, "Remaining characters: " + w(l.value), 3));
1951
1957
  }
1952
- }), jt = /* @__PURE__ */ m("hr", null, null, -1), Ht = { class: "d-flex justify-content-between" }, hl = /* @__PURE__ */ V({
1958
+ }), jt = /* @__PURE__ */ m("hr", null, null, -1), Ht = { class: "d-flex justify-content-between" }, xl = /* @__PURE__ */ V({
1953
1959
  __name: "ForgeForm",
1954
1960
  props: {
1955
1961
  onSubmit: {},
@@ -1961,25 +1967,25 @@ const bt = { key: 0 }, ft = {
1961
1967
  hideCancel: { type: Boolean, default: !1 }
1962
1968
  },
1963
1969
  setup(e) {
1964
- const t = e, o = I(!1), l = I({
1970
+ const t = e, l = I(!1), a = I({
1965
1971
  hasError: !1,
1966
1972
  message: ""
1967
1973
  });
1968
- async function a() {
1969
- o.value = !0, l.value.hasError = !1;
1974
+ async function o() {
1975
+ l.value = !0, a.value.hasError = !1;
1970
1976
  try {
1971
1977
  await t.onSubmit();
1972
1978
  } catch (n) {
1973
- l.value.hasError = !0, n.message && (l.value.message = n.message);
1979
+ a.value.hasError = !0, n.message && (a.value.message = n.message);
1974
1980
  }
1975
- o.value = !1;
1981
+ l.value = !1;
1976
1982
  }
1977
1983
  return (n, d) => {
1978
1984
  const u = L;
1979
1985
  return i(), y("form", C(n.$attrs, {
1980
1986
  novalidate: "",
1981
1987
  class: "position-relative shadow-sm border p-4 bg-white",
1982
- onSubmit: Y(a, ["prevent"])
1988
+ onSubmit: Y(o, ["prevent"])
1983
1989
  }), [
1984
1990
  n.hideTitle ? S("", !0) : (i(), y(N, { key: 0 }, [
1985
1991
  B(n.$slots, "title", {}, () => [
@@ -1990,16 +1996,16 @@ const bt = { key: 0 }, ft = {
1990
1996
  ]),
1991
1997
  jt
1992
1998
  ], 64)),
1993
- l.value.hasError ? (i(), h(se, {
1999
+ a.value.hasError ? (i(), h(se, {
1994
2000
  key: 1,
1995
2001
  severity: "danger",
1996
2002
  "data-cy": "error"
1997
2003
  }, {
1998
2004
  default: b(() => [
1999
2005
  B(n.$slots, "error", {
2000
- error: l.value.message
2006
+ error: a.value.message
2001
2007
  }, () => [
2002
- O(w(l.value.message), 1)
2008
+ O(w(a.value.message), 1)
2003
2009
  ])
2004
2010
  ]),
2005
2011
  _: 3
@@ -2021,7 +2027,7 @@ const bt = { key: 0 }, ft = {
2021
2027
  _: 1
2022
2028
  }))
2023
2029
  ]),
2024
- B(n.$slots, "submit", { submit: a }, () => [
2030
+ B(n.$slots, "submit", { submit: o }, () => [
2025
2031
  f(u, {
2026
2032
  "data-cy": "submit-btn",
2027
2033
  type: "submit",
@@ -2035,7 +2041,7 @@ const bt = { key: 0 }, ft = {
2035
2041
  })
2036
2042
  ])
2037
2043
  ]),
2038
- o.value ? (i(), h(ye, {
2044
+ l.value ? (i(), h(ye, {
2039
2045
  key: 2,
2040
2046
  "data-cy": "loading-spinner"
2041
2047
  })) : S("", !0)
@@ -2045,7 +2051,7 @@ const bt = { key: 0 }, ft = {
2045
2051
  }), Yt = {
2046
2052
  key: 1,
2047
2053
  class: "d-flex flex-column w-100"
2048
- }, qt = ["for"], wl = /* @__PURE__ */ V({
2054
+ }, qt = ["for"], kl = /* @__PURE__ */ V({
2049
2055
  __name: "ForgeFormField",
2050
2056
  props: /* @__PURE__ */ j({
2051
2057
  name: {},
@@ -2059,78 +2065,78 @@ const bt = { key: 0 }, ft = {
2059
2065
  }),
2060
2066
  emits: ["update:modelValue"],
2061
2067
  setup(e) {
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, {
2068
+ const t = E(e, "modelValue"), l = e, a = (s) => {
2069
+ l.type == "number" ? u(s.value) : u(s);
2070
+ }, { errors: o, value: n, errorMessage: d, handleChange: u, handleBlur: c } = K(() => l.name, void 0, {
2065
2071
  initialValue: t.value
2066
- }), r = k(() => a.value.length > 0);
2072
+ }), r = k(() => o.value.length > 0);
2067
2073
  return re(() => n.value, (s) => {
2068
2074
  t.value = s;
2069
2075
  }, { 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({
2076
+ const x = Te, F = Ce, M = de, P = ne, z = be, g = fe;
2077
+ return l.type === "checkbox" ? (i(), h(ve, C({
2072
2078
  key: 0,
2073
- id: o.name,
2074
- label: o.fieldLabel
2079
+ id: l.name,
2080
+ label: l.fieldLabel
2075
2081
  }, s.$attrs, {
2076
- name: o.name,
2082
+ name: l.name,
2077
2083
  modelValue: t.value,
2078
2084
  "onUpdate:modelValue": v[0] || (v[0] = ($) => t.value = $)
2079
2085
  }), null, 16, ["id", "label", "name", "modelValue"])) : (i(), y("div", Yt, [
2080
2086
  m("label", {
2081
- for: o.name,
2087
+ for: l.name,
2082
2088
  class: "mb-1"
2083
- }, w(o.fieldLabel), 9, qt),
2084
- o.type === "number" ? (i(), h(p(me), C({
2089
+ }, w(l.fieldLabel), 9, qt),
2090
+ l.type === "number" ? (i(), h(p(me), C({
2085
2091
  key: 0,
2086
- id: o.name
2092
+ id: l.name
2087
2093
  }, s.$attrs, {
2088
- placeholder: o.placeholder,
2094
+ placeholder: l.placeholder,
2089
2095
  "input-class": { "is-invalid": r.value },
2090
2096
  class: { "is-invalid": r.value },
2091
2097
  modelValue: t.value,
2092
2098
  "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({
2099
+ onInput: a
2100
+ }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : l.type === "textarea" ? (i(), h(x, C({
2095
2101
  key: 1,
2096
- id: o.name
2102
+ id: l.name
2097
2103
  }, s.$attrs, {
2098
- placeholder: o.placeholder,
2104
+ placeholder: l.placeholder,
2099
2105
  class: { "is-invalid": r.value },
2100
2106
  modelValue: t.value,
2101
2107
  "onUpdate:modelValue": v[2] || (v[2] = ($) => t.value = $),
2102
- onInput: l,
2108
+ onInput: a,
2103
2109
  onBlur: p(c)
2104
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : o.type === "mask" ? (i(), h(F, C({
2110
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "mask" ? (i(), h(F, C({
2105
2111
  key: 2,
2106
- id: o.name
2112
+ id: l.name
2107
2113
  }, s.$attrs, {
2108
- placeholder: o.placeholder,
2109
- mask: o.mask,
2114
+ placeholder: l.placeholder,
2115
+ mask: l.mask,
2110
2116
  class: { "is-invalid": r.value },
2111
2117
  modelValue: t.value,
2112
2118
  "onUpdate:modelValue": v[3] || (v[3] = ($) => t.value = $),
2113
- onComplete: l,
2119
+ onComplete: a,
2114
2120
  onBlur: p(c)
2115
- }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : o.type === "text" ? (i(), h(P, C({
2121
+ }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : l.type === "text" ? (i(), h(M, C({
2116
2122
  key: 3,
2117
- id: o.name
2123
+ id: l.name
2118
2124
  }, s.$attrs, {
2119
- placeholder: o.placeholder,
2125
+ placeholder: l.placeholder,
2120
2126
  class: { "is-invalid": r.value },
2121
2127
  modelValue: t.value,
2122
2128
  "onUpdate:modelValue": v[4] || (v[4] = ($) => t.value = $),
2123
- onInput: l,
2129
+ onInput: a,
2124
2130
  onBlur: p(c)
2125
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : o.type === "select" ? (i(), h(M, C({ key: 4 }, { ...o, ...s.$attrs }, {
2131
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "select" ? (i(), h(P, C({ key: 4 }, { ...l, ...s.$attrs }, {
2126
2132
  modelValue: t.value,
2127
2133
  "onUpdate:modelValue": v[5] || (v[5] = ($) => t.value = $),
2128
2134
  class: { "is-invalid": r.value }
2129
- }), null, 16, ["modelValue", "class"])) : o.type === "multiselect" ? (i(), h(z, C({ key: 5 }, { ...o, ...s.$attrs }, {
2135
+ }), null, 16, ["modelValue", "class"])) : l.type === "multiselect" ? (i(), h(z, C({ key: 5 }, { ...l, ...s.$attrs }, {
2130
2136
  modelValue: t.value,
2131
2137
  "onUpdate:modelValue": v[6] || (v[6] = ($) => t.value = $),
2132
2138
  class: { "is-invalid": r.value }
2133
- }), null, 16, ["modelValue", "class"])) : o.type === "datepicker" ? (i(), h(g, C({ key: 6 }, { ...o, ...s.$attrs }, {
2139
+ }), null, 16, ["modelValue", "class"])) : l.type === "datepicker" ? (i(), h(g, C({ key: 6 }, { ...l, ...s.$attrs }, {
2134
2140
  modelValue: t.value,
2135
2141
  "onUpdate:modelValue": v[7] || (v[7] = ($) => t.value = $),
2136
2142
  class: { "is-invalid": r.value }
@@ -2139,12 +2145,12 @@ const bt = { key: 0 }, ft = {
2139
2145
  "data-cy": "error",
2140
2146
  class: "invalid-feedback"
2141
2147
  }, w(p(d)), 513), [
2142
- [H, r.value && o.type !== "multiselect" && o.type !== "datepicker"]
2148
+ [H, r.value && l.type !== "multiselect" && l.type !== "datepicker"]
2143
2149
  ])
2144
2150
  ]));
2145
2151
  };
2146
2152
  }
2147
- }), xl = /* @__PURE__ */ V({
2153
+ }), $l = /* @__PURE__ */ V({
2148
2154
  __name: "ForgeChips",
2149
2155
  props: {
2150
2156
  chipSeverity: { default: "primary" },
@@ -2171,9 +2177,9 @@ const bt = { key: 0 }, ft = {
2171
2177
  unstyled: { type: Boolean }
2172
2178
  },
2173
2179
  setup(e) {
2174
- const t = e, { errors: o, value: l, errorMessage: a } = K(() => t.name, void 0, {
2180
+ const t = e, { errors: l, value: a, errorMessage: o } = K(() => t.name, void 0, {
2175
2181
  initialValue: t.modelValue
2176
- }), n = k(() => o.value.length > 0), d = k(() => ({
2182
+ }), n = k(() => l.value.length > 0), d = k(() => ({
2177
2183
  inputtoken: "list-unstyled",
2178
2184
  input: "border-0",
2179
2185
  container: ({ props: u }) => ({
@@ -2205,12 +2211,12 @@ const bt = { key: 0 }, ft = {
2205
2211
  }
2206
2212
  }));
2207
2213
  return (u, c) => {
2208
- const r = Pe;
2214
+ const r = Me;
2209
2215
  return i(), y(N, null, [
2210
2216
  f(r, C({ ...t, ...u.$attrs }, {
2211
2217
  pt: d.value,
2212
- "model-value": p(l),
2213
- "onUpdate:modelValue": c[0] || (c[0] = (s) => le(l) ? l.value = s : null)
2218
+ "model-value": p(a),
2219
+ "onUpdate:modelValue": c[0] || (c[0] = (s) => le(a) ? a.value = s : null)
2214
2220
  }), {
2215
2221
  removetokenicon: b(({ removeCallback: s }) => [
2216
2222
  R(f(p(T), {
@@ -2226,7 +2232,7 @@ const bt = { key: 0 }, ft = {
2226
2232
  R(m("small", {
2227
2233
  "data-cy": "error",
2228
2234
  class: "text-invalid"
2229
- }, w(p(a)), 513), [
2235
+ }, w(p(o)), 513), [
2230
2236
  [H, n.value]
2231
2237
  ])
2232
2238
  ], 64);
@@ -2247,7 +2253,7 @@ const bt = { key: 0 }, ft = {
2247
2253
  unstyled: { type: Boolean }
2248
2254
  },
2249
2255
  setup(e) {
2250
- const t = e, o = k(() => t.striped ? "progress-bar-striped" : null), l = k(() => t.animate ? "progress-bar-animated" : null), a = k(() => {
2256
+ const t = e, l = k(() => t.striped ? "progress-bar-striped" : null), a = k(() => t.animate ? "progress-bar-animated" : null), o = k(() => {
2251
2257
  switch (t.severity) {
2252
2258
  case "brand":
2253
2259
  return "bg-brand";
@@ -2271,11 +2277,11 @@ const bt = { key: 0 }, ft = {
2271
2277
  style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
2272
2278
  },
2273
2279
  value: {
2274
- class: [a.value, o.value, l.value]
2280
+ class: [o.value, l.value, a.value]
2275
2281
  }
2276
2282
  }));
2277
2283
  return (d, u) => {
2278
- const c = Me;
2284
+ const c = Pe;
2279
2285
  return i(), h(c, C({ ...d.$attrs, ...t }, { pt: n.value }), {
2280
2286
  default: b(() => [
2281
2287
  B(d.$slots, "default")
@@ -2284,7 +2290,7 @@ const bt = { key: 0 }, ft = {
2284
2290
  }, 16, ["pt"]);
2285
2291
  };
2286
2292
  }
2287
- }), Kt = { class: "value text-white w-100 text-center" }, kl = /* @__PURE__ */ V({
2293
+ }), Kt = { class: "value text-white w-100 text-center" }, Bl = /* @__PURE__ */ V({
2288
2294
  __name: "ForgeStatWidget",
2289
2295
  props: {
2290
2296
  size: { default: "md" },
@@ -2292,18 +2298,18 @@ const bt = { key: 0 }, ft = {
2292
2298
  },
2293
2299
  setup(e) {
2294
2300
  const t = e;
2295
- return (o, l) => (i(), y("div", C(o.$attrs, {
2301
+ return (l, a) => (i(), y("div", C(l.$attrs, {
2296
2302
  class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
2297
2303
  }), [
2298
2304
  m("span", Kt, [
2299
- B(o.$slots, "default")
2305
+ B(l.$slots, "default")
2300
2306
  ])
2301
2307
  ], 16));
2302
2308
  }
2303
2309
  }), Wt = {
2304
2310
  class: "d-flex flex-column align-items-center",
2305
2311
  "data-cy": "stepper"
2306
- }, Zt = { class: "d-flex align-items-center justify-content-center w-100" }, $l = /* @__PURE__ */ V({
2312
+ }, Zt = { class: "d-flex align-items-center justify-content-center w-100" }, Fl = /* @__PURE__ */ V({
2307
2313
  __name: "ForgeStepper",
2308
2314
  props: {
2309
2315
  currentStep: { default: 0 },
@@ -2319,20 +2325,20 @@ const bt = { key: 0 }, ft = {
2319
2325
  },
2320
2326
  emits: ["update:currentStep"],
2321
2327
  setup(e, { emit: t }) {
2322
- const o = t, l = e, a = I(l.currentStep), n = () => {
2328
+ const l = t, a = e, o = I(a.currentStep), n = () => {
2323
2329
  do
2324
- a.value--;
2325
- while (l.model[a.value].disabled);
2326
- o("update:currentStep", a.value);
2330
+ o.value--;
2331
+ while (a.model[o.value].disabled);
2332
+ l("update:currentStep", o.value);
2327
2333
  }, d = () => {
2328
- if (a.value < l.model.length - 1)
2334
+ if (o.value < a.model.length - 1)
2329
2335
  do
2330
- a.value++;
2331
- while (l.model[a.value].disabled);
2332
- o("update:currentStep", a.value);
2336
+ o.value++;
2337
+ while (a.model[o.value].disabled);
2338
+ l("update:currentStep", o.value);
2333
2339
  }, u = k(() => {
2334
- const r = l.model.findIndex((s) => !s.disabled);
2335
- return !(r < a.value && r > -1);
2340
+ const r = a.model.findIndex((s) => !s.disabled);
2341
+ return !(r < o.value && r > -1);
2336
2342
  }), c = k(() => ({
2337
2343
  menuitem: (r) => ({
2338
2344
  class: [{
@@ -2344,13 +2350,13 @@ const bt = { key: 0 }, ft = {
2344
2350
  "d-flex align-items-center justify-content-center mb-2 step",
2345
2351
  {
2346
2352
  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"
2353
+ "bg-primary text-white": r.context.index === o.value && (a.severity === void 0 || a.severity === "primary"),
2354
+ "bg-brand text-white": r.context.index === o.value && a.severity === "brand",
2355
+ "bg-secondary text-white": r.context.index === o.value && a.severity === "secondary",
2356
+ "bg-success text-white": r.context.index === o.value && a.severity === "success",
2357
+ "bg-warning text-white": r.context.index === o.value && a.severity === "warning",
2358
+ "bg-danger text-white": r.context.index === o.value && a.severity === "danger",
2359
+ "bg-info text-white": r.context.index === o.value && a.severity === "info"
2354
2360
  }
2355
2361
  ]
2356
2362
  }),
@@ -2358,13 +2364,13 @@ const bt = { key: 0 }, ft = {
2358
2364
  class: [
2359
2365
  "h5",
2360
2366
  {
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"
2367
+ "border-bottom border-2 border-primary": r.context.index === o.value && (a.severity === void 0 || a.severity === "primary"),
2368
+ "border-bottom border-2 border-brand": r.context.index === o.value && a.severity === "brand",
2369
+ "border-bottom border-2 border-secondary": r.context.index === o.value && a.severity === "secondary",
2370
+ "border-bottom border-2 border-success": r.context.index === o.value && a.severity === "success",
2371
+ "border-bottom border-2 border-warning": r.context.index === o.value && a.severity === "warning",
2372
+ "border-bottom border-2 border-danger": r.context.index === o.value && a.severity === "danger",
2373
+ "border-bottom border-2 border-info": r.context.index === o.value && a.severity === "info"
2368
2374
  }
2369
2375
  ]
2370
2376
  })
@@ -2374,7 +2380,7 @@ const bt = { key: 0 }, ft = {
2374
2380
  return i(), y("div", Wt, [
2375
2381
  m("div", Zt, [
2376
2382
  f(v, {
2377
- severity: l.severity,
2383
+ severity: a.severity,
2378
2384
  disabled: u.value,
2379
2385
  onClick: n,
2380
2386
  class: "rounded-circle py-2 me-4",
@@ -2389,19 +2395,19 @@ const bt = { key: 0 }, ft = {
2389
2395
  _: 1
2390
2396
  }, 8, ["severity", "disabled"]),
2391
2397
  f(x, {
2392
- "active-step": a.value,
2393
- "onUpdate:activeStep": s[0] || (s[0] = (P) => a.value = P),
2394
- model: l.model,
2398
+ "active-step": o.value,
2399
+ "onUpdate:activeStep": s[0] || (s[0] = (M) => o.value = M),
2400
+ model: a.model,
2395
2401
  pt: c.value,
2396
2402
  readonly: !1
2397
2403
  }, null, 8, ["active-step", "model", "pt"])
2398
2404
  ]),
2399
2405
  f(F),
2400
- (i(!0), y(N, null, q(l.model, (P, M) => (i(), y("div", {
2401
- key: M,
2406
+ (i(!0), y(N, null, q(a.model, (M, P) => (i(), y("div", {
2407
+ key: P,
2402
2408
  class: "w-100"
2403
2409
  }, [
2404
- M === a.value ? B(r.$slots, P.key ?? P.label, {
2410
+ P === o.value ? B(r.$slots, M.key ?? M.label, {
2405
2411
  key: 0,
2406
2412
  nextStep: d,
2407
2413
  previousStep: n
@@ -2411,7 +2417,7 @@ const bt = { key: 0 }, ft = {
2411
2417
  "data-cy": "alert"
2412
2418
  }, {
2413
2419
  default: b(() => [
2414
- O(" Please add Slot Content for the key " + w(P.key ?? P.label) + " ", 1),
2420
+ O(" Please add Slot Content for the key " + w(M.key ?? M.label) + " ", 1),
2415
2421
  f(v, {
2416
2422
  severity: "primary",
2417
2423
  label: "Next",
@@ -2426,7 +2432,7 @@ const bt = { key: 0 }, ft = {
2426
2432
  ]);
2427
2433
  };
2428
2434
  }
2429
- }), Jt = { class: "p-4 text-wrap w-100" }, Xt = { class: "p-4 text-wrap w-100" }, Bl = /* @__PURE__ */ V({
2435
+ }), Jt = { class: "p-4 text-wrap w-100" }, Xt = { class: "p-4 text-wrap w-100" }, _l = /* @__PURE__ */ V({
2430
2436
  __name: "ForgeTile",
2431
2437
  props: {
2432
2438
  severity: { default: "primary" },
@@ -2435,19 +2441,19 @@ const bt = { key: 0 }, ft = {
2435
2441
  selected: { type: Boolean, default: !1 }
2436
2442
  },
2437
2443
  setup(e) {
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) => {
2444
+ 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" : ""}`);
2445
+ return (o, n) => {
2440
2446
  const d = L;
2441
2447
  return t.clickable ? (i(), h(d, {
2442
2448
  key: 0,
2443
- class: _(["d-flex w-100 p-0 text-body", o.value]),
2449
+ class: _(["d-flex w-100 p-0 text-body", l.value]),
2444
2450
  severity: t.severity,
2445
2451
  unstyled: "",
2446
2452
  "data-cy": "button-tile"
2447
2453
  }, {
2448
2454
  default: b(() => [
2449
2455
  m("div", Jt, [
2450
- B(a.$slots, "default", {}, () => [
2456
+ B(o.$slots, "default", {}, () => [
2451
2457
  O("Tile Content")
2452
2458
  ])
2453
2459
  ])
@@ -2455,11 +2461,11 @@ const bt = { key: 0 }, ft = {
2455
2461
  _: 3
2456
2462
  }, 8, ["severity", "class"])) : (i(), y("div", {
2457
2463
  key: 1,
2458
- class: _(["d-flex w-100", l.value]),
2464
+ class: _(["d-flex w-100", a.value]),
2459
2465
  "data-cy": "tile"
2460
2466
  }, [
2461
2467
  m("div", Xt, [
2462
- B(a.$slots, "default", {}, () => [
2468
+ B(o.$slots, "default", {}, () => [
2463
2469
  O("Tile Content")
2464
2470
  ])
2465
2471
  ])
@@ -2485,28 +2491,28 @@ const Qt = {
2485
2491
  },
2486
2492
  emits: ["update:perPage"],
2487
2493
  setup(e, { emit: t }) {
2488
- const o = t, l = e, a = (d) => {
2489
- o("update:perPage", d.value);
2494
+ const l = t, a = e, o = (d) => {
2495
+ l("update:perPage", d.value);
2490
2496
  }, n = k(() => {
2491
- const d = Math.ceil(l.total / l.perPage);
2497
+ const d = Math.ceil(a.total / a.perPage);
2492
2498
  return `${d} ${Q(d, "page")}`;
2493
2499
  });
2494
2500
  return (d, u) => (i(), y("div", Qt, [
2495
2501
  O(" Number of results per page "),
2496
2502
  m("div", ea, [
2497
2503
  f(p(ne), {
2498
- options: l.pageSizes,
2499
- "model-value": l.perPage,
2500
- onChange: u[0] || (u[0] = (c) => a(c))
2504
+ options: a.pageSizes,
2505
+ "model-value": a.perPage,
2506
+ onChange: u[0] || (u[0] = (c) => o(c))
2501
2507
  }, null, 8, ["options", "model-value"])
2502
2508
  ]),
2503
- l.total ? (i(), y("div", ta, [
2509
+ a.total ? (i(), y("div", ta, [
2504
2510
  aa,
2505
- m("span", la, w(l.total) + " " + w(p(Q)(l.total, "result")) + " across " + w(n.value), 1)
2511
+ m("span", la, w(a.total) + " " + w(p(Q)(a.total, "result")) + " across " + w(n.value), 1)
2506
2512
  ])) : S("", !0)
2507
2513
  ]));
2508
2514
  }
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({
2515
+ }), 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), Vl = /* @__PURE__ */ V({
2510
2516
  __name: "ForgeTable",
2511
2517
  props: {
2512
2518
  value: {},
@@ -2586,21 +2592,21 @@ const Qt = {
2586
2592
  },
2587
2593
  emits: ["update:filters", "update:tableContext", "sort", "page"],
2588
2594
  setup(e, { emit: t }) {
2589
- const o = t, l = e, a = I(), n = I([10, 20, 50, 100]), d = I(20), u = I({
2590
- filters: l.filters,
2595
+ const l = t, a = e, o = I(), n = I([10, 20, 50, 100]), d = I(20), u = I({
2596
+ filters: a.filters,
2591
2597
  perPage: d.value,
2592
2598
  page: 0,
2593
2599
  sortDirection: "None",
2594
2600
  sortField: "",
2595
- total: l.totalRecords ?? l.value.length
2596
- }), c = k(() => l.totalRecords ?? l.value.length), r = k(() => {
2601
+ total: a.totalRecords ?? a.value.length
2602
+ }), c = k(() => a.totalRecords ?? a.value.length), r = k(() => {
2597
2603
  const g = Math.ceil(c.value / d.value);
2598
2604
  return `${g} ${Q(g, "page")}`;
2599
2605
  }), s = k(() => ({
2600
2606
  thead: () => ({
2601
2607
  class: [
2602
2608
  {
2603
- "sticky-header": l.stickyHeader
2609
+ "sticky-header": a.stickyHeader
2604
2610
  }
2605
2611
  ],
2606
2612
  style: "position: "
@@ -2609,54 +2615,54 @@ const Qt = {
2609
2615
  class: [
2610
2616
  "spinner-border border-0",
2611
2617
  {
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
+ "text-brand": a.severity === "brand",
2619
+ "text-primary": a.severity === "primary",
2620
+ "text-success": a.severity === "success",
2621
+ "text-warning": a.severity === "warning",
2622
+ "text-danger": a.severity === "danger",
2623
+ "text-info": a.severity === "info"
2618
2624
  }
2619
2625
  ]
2620
2626
  })
2621
2627
  })), 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);
2628
+ for (const g in a.filters)
2629
+ typeof a.filters[g] == "string" ? a.filters[g] = "" : a.filters[g].value = null;
2630
+ M(a.filters);
2625
2631
  }, x = () => {
2626
- a.value.exportCSV();
2632
+ o.value.exportCSV();
2627
2633
  }, F = (g) => {
2628
2634
  var $;
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
- }, P = (g) => {
2631
- u.value.filters = g, o("update:tableContext", u.value), o("update:filters", g);
2635
+ u.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", u.value.sortField = (($ = g.sortField) == null ? void 0 : $.toString()) ?? "", l("update:tableContext", u.value), l("sort", g);
2632
2636
  }, M = (g) => {
2633
- u.value.page = g.page, o("update:tableContext", u.value), o("page", g);
2637
+ u.value.filters = g, l("update:tableContext", u.value), l("update:filters", g);
2638
+ }, P = (g) => {
2639
+ u.value.page = g.page, l("update:tableContext", u.value), l("page", g);
2634
2640
  }, z = () => {
2635
- u.value.perPage = d.value, o("update:tableContext", u.value);
2641
+ u.value.perPage = d.value, l("update:tableContext", u.value);
2636
2642
  };
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, [
2643
+ return re(() => a.filters, (g) => {
2644
+ u.value.filters = g, l("update:tableContext", u.value);
2645
+ }, { deep: !0 }), ae(() => l("update:tableContext", u.value)), (g, $) => (i(), y("div", na, [
2640
2646
  m("span", sa, [
2641
2647
  B(g.$slots, "above-table")
2642
2648
  ]),
2643
2649
  f(p(Oe), C({
2644
- class: ["w-100", `${l.severity ? `forge-table-${l.severity}` : ""}`]
2645
- }, { ...l, ...g.$attrs }, {
2650
+ class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
2651
+ }, { ...a, ...g.$attrs }, {
2646
2652
  pt: s.value,
2647
2653
  rows: d.value,
2648
2654
  "total-records": c.value,
2649
- "filter-display": l.filters ? "row" : void 0,
2655
+ "filter-display": a.filters ? "row" : void 0,
2650
2656
  ref_key: "forgeTable",
2651
- ref: a,
2657
+ ref: o,
2652
2658
  "data-cy": "table",
2653
- "onUpdate:filters": P,
2659
+ "onUpdate:filters": M,
2654
2660
  onSort: F,
2655
- onPage: M
2661
+ onPage: P
2656
2662
  }), oe({
2657
2663
  header: b(() => [
2658
2664
  m("div", {
2659
- class: _(l.loading ? "opacity-50" : "")
2665
+ class: _(a.loading ? "opacity-50" : "")
2660
2666
  }, [
2661
2667
  m("div", ia, [
2662
2668
  m("div", ra, [
@@ -2725,7 +2731,7 @@ const Qt = {
2725
2731
  name: "paginatorstart",
2726
2732
  fn: b(() => [
2727
2733
  m("span", {
2728
- class: _(["d-flex", l.loading ? "opacity-50" : ""]),
2734
+ class: _(["d-flex", a.loading ? "opacity-50" : ""]),
2729
2735
  "data-cy": "legacy-page-size"
2730
2736
  }, [
2731
2737
  ca,
@@ -2745,7 +2751,7 @@ const Qt = {
2745
2751
  fn: b(() => [
2746
2752
  m("span", {
2747
2753
  "data-cy": "legacy-total",
2748
- class: _(l.loading ? "opacity-50" : "")
2754
+ class: _(a.loading ? "opacity-50" : "")
2749
2755
  }, w(c.value) + " " + w(p(Q)(c.value, "result")) + " across " + w(r.value), 3)
2750
2756
  ]),
2751
2757
  key: "1"
@@ -2753,7 +2759,7 @@ const Qt = {
2753
2759
  ]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
2754
2760
  ]));
2755
2761
  }
2756
- }), ma = { class: "d-flex position-relative" }, pa = { class: "d-flex w-100" }, va = { class: "d-flex w-100" }, _l = /* @__PURE__ */ V({
2762
+ }), ma = { class: "d-flex position-relative" }, pa = { class: "d-flex w-100" }, va = { class: "d-flex w-100" }, Sl = /* @__PURE__ */ V({
2757
2763
  __name: "ForgeFilterHeader",
2758
2764
  props: /* @__PURE__ */ j({
2759
2765
  dataType: {},
@@ -2768,8 +2774,8 @@ const Qt = {
2768
2774
  }),
2769
2775
  emits: ["update:modelValue"],
2770
2776
  setup(e) {
2771
- const t = E(e, "modelValue"), o = (a, n) => {
2772
- if (!a || Array.isArray(a) && a.length === 0)
2777
+ const t = E(e, "modelValue"), l = (o, n) => {
2778
+ if (!o || Array.isArray(o) && o.length === 0)
2773
2779
  return n;
2774
2780
  const d = (u) => {
2775
2781
  var r;
@@ -2778,41 +2784,41 @@ const Qt = {
2778
2784
  );
2779
2785
  return e.optionLabel ? c[e.optionLabel] : c;
2780
2786
  };
2781
- return Array.isArray(a) ? a.map(d).join(", ") : typeof a == "object" ? d(a) : a;
2782
- }, l = () => {
2787
+ return Array.isArray(o) ? o.map(d).join(", ") : d(o);
2788
+ }, a = () => {
2783
2789
  e.clearFilter ? e.clearFilter() : t.value = null;
2784
2790
  };
2785
- return (a, n) => {
2791
+ return (o, n) => {
2786
2792
  const d = me, u = L;
2787
2793
  return i(), y("div", ma, [
2788
- a.dataType === "numeric" ? (i(), h(d, C({
2794
+ o.dataType === "numeric" ? (i(), h(d, C({
2789
2795
  key: 0,
2790
2796
  modelValue: t.value,
2791
2797
  "onUpdate:modelValue": n[0] || (n[0] = (c) => t.value = c)
2792
- }, a.$attrs), null, 16, ["modelValue"])) : a.dataType === "date" ? (i(), h(fe, C({
2798
+ }, o.$attrs), null, 16, ["modelValue"])) : o.dataType === "date" ? (i(), h(fe, C({
2793
2799
  key: 1,
2794
2800
  modelValue: t.value,
2795
2801
  "onUpdate:modelValue": n[1] || (n[1] = (c) => t.value = c)
2796
- }, a.$attrs, {
2802
+ }, o.$attrs, {
2797
2803
  "show-icon": !1,
2798
2804
  "show-on-focus": !0
2799
- }), null, 16, ["modelValue"])) : a.dataType === "select" ? (i(), h(p(ne), C({
2805
+ }), null, 16, ["modelValue"])) : o.dataType === "select" ? (i(), h(p(ne), C({
2800
2806
  key: 2,
2801
2807
  modelValue: t.value,
2802
2808
  "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
2809
+ }, o.$attrs, {
2810
+ options: o.dropdownOptions,
2811
+ "option-value": o.optionValue,
2812
+ "option-label": o.optionLabel
2807
2813
  }), {
2808
2814
  value: b(({ value: c, placeholder: r }) => [
2809
2815
  m("div", pa, [
2810
2816
  m("span", {
2811
2817
  class: _({ "filter-placeholder": c === null })
2812
- }, w(o(c, r)), 3),
2813
- a.showClearButton && t.value !== null ? (i(), h(u, {
2818
+ }, w(l(c, r)), 3),
2819
+ o.showClearButton && t.value !== null ? (i(), h(u, {
2814
2820
  key: 0,
2815
- onClick: Y(l, ["prevent"]),
2821
+ onClick: Y(a, ["prevent"]),
2816
2822
  size: "small",
2817
2823
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
2818
2824
  }, {
@@ -2829,25 +2835,25 @@ const Qt = {
2829
2835
  ])
2830
2836
  ]),
2831
2837
  _: 1
2832
- }, 16, ["modelValue", "options", "option-value", "option-label"])) : a.dataType === "multiselect" ? (i(), h(p(De), C({
2838
+ }, 16, ["modelValue", "options", "option-value", "option-label"])) : o.dataType === "multiselect" ? (i(), h(p(De), C({
2833
2839
  key: 3,
2834
2840
  modelValue: t.value,
2835
2841
  "onUpdate:modelValue": n[3] || (n[3] = (c) => t.value = c)
2836
- }, a.$attrs, {
2837
- options: a.dropdownOptions,
2842
+ }, o.$attrs, {
2843
+ options: o.dropdownOptions,
2838
2844
  showToggleAll: !1,
2839
- "option-label": a.optionLabel,
2840
- "option-value": a.optionValue,
2845
+ "option-label": o.optionLabel,
2846
+ "option-value": o.optionValue,
2841
2847
  filter: ""
2842
2848
  }), {
2843
2849
  value: b(({ value: c, placeholder: r }) => [
2844
2850
  m("div", va, [
2845
2851
  m("span", {
2846
2852
  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, {
2853
+ }, w(l(c, r)), 3),
2854
+ o.showClearButton && (c == null ? void 0 : c.length) > 0 ? (i(), h(u, {
2849
2855
  key: 0,
2850
- onClick: Y(l, ["prevent"]),
2856
+ onClick: Y(a, ["prevent"]),
2851
2857
  size: "small",
2852
2858
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
2853
2859
  }, {
@@ -2868,10 +2874,10 @@ const Qt = {
2868
2874
  key: 4,
2869
2875
  modelValue: t.value,
2870
2876
  "onUpdate:modelValue": n[4] || (n[4] = (c) => t.value = c)
2871
- }, a.$attrs), null, 16, ["modelValue"])),
2872
- a.showClearButton && t.value !== null && a.dataType !== "select" && a.dataType !== "multiselect" && a.dataType !== "date" ? (i(), h(u, {
2877
+ }, o.$attrs), null, 16, ["modelValue"])),
2878
+ o.showClearButton && t.value !== null && o.dataType !== "select" && o.dataType !== "multiselect" && o.dataType !== "date" ? (i(), h(u, {
2873
2879
  key: 5,
2874
- onClick: Y(l, ["prevent"]),
2880
+ onClick: Y(a, ["prevent"]),
2875
2881
  size: "small",
2876
2882
  class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
2877
2883
  }, {
@@ -2889,12 +2895,12 @@ const Qt = {
2889
2895
  };
2890
2896
  }
2891
2897
  });
2892
- function ge(e, t, o, l) {
2893
- const a = t.flatMap((n) => n.file);
2898
+ function ge(e, t, l, a) {
2899
+ const o = t.flatMap((n) => n.file);
2894
2900
  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);
2901
+ const d = o.findIndex((c) => c.name === n.name);
2896
2902
  let u = "Not Uploaded";
2897
- d === -1 ? ((!o.includes(n.type) || !(n.size <= l)) && (u = o.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
2903
+ d === -1 ? ((!l.includes(n.type) || !(n.size <= a)) && (u = l.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
2898
2904
  file: n,
2899
2905
  status: u,
2900
2906
  blobFileName: null
@@ -2905,24 +2911,24 @@ async function ya(e, t) {
2905
2911
  if (e === "Uploaded" && t !== null)
2906
2912
  try {
2907
2913
  await new pe(t).delete();
2908
- } catch (o) {
2909
- if (o !== "BlobNotFound") {
2914
+ } catch (l) {
2915
+ if (l !== "BlobNotFound") {
2910
2916
  e = "DeleteFileFailed";
2911
2917
  return;
2912
2918
  }
2913
2919
  }
2914
2920
  }
2915
- function ue(e, t = !0, o = 1) {
2916
- const l = t ? 1e3 : 1024;
2917
- if (Math.abs(e) < l)
2921
+ function ue(e, t = !0, l = 1) {
2922
+ const a = t ? 1e3 : 1024;
2923
+ if (Math.abs(e) < a)
2918
2924
  return e + " B";
2919
- const a = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
2925
+ const o = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
2920
2926
  let n = -1;
2921
- const d = 10 ** o;
2927
+ const d = 10 ** l;
2922
2928
  do
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];
2929
+ e /= a, ++n;
2930
+ while (Math.round(Math.abs(e) * d) / d >= a && n < o.length - 1);
2931
+ return e.toFixed(l) + " " + o[n];
2926
2932
  }
2927
2933
  function ba(e) {
2928
2934
  return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
@@ -2942,27 +2948,27 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
2942
2948
  }),
2943
2949
  emits: ["update:modelValue"],
2944
2950
  setup(e) {
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);
2951
+ const t = E(e, "modelValue"), l = k(() => e.maxFileInput <= t.value.length), a = (o) => {
2952
+ t.value = ge(o, t.value, e.acceptedFileTypes, e.maxFileInput);
2947
2953
  };
2948
- return (a, n) => (i(), y("div", ga, [
2949
- B(a.$slots, "message"),
2954
+ return (o, n) => (i(), y("div", ga, [
2955
+ B(o.$slots, "message"),
2950
2956
  m("div", null, [
2951
2957
  m("input", {
2952
2958
  id: "file-input",
2953
2959
  type: "file",
2954
2960
  class: "d-none",
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]))
2961
+ accept: o.acceptedFileTypes.join(", "),
2962
+ disabled: l.value,
2963
+ multiple: o.maxFileInput > 1,
2964
+ onInput: n[0] || (n[0] = (d) => a([...d.target.files]))
2959
2965
  }, null, 40, ha),
2960
2966
  m("label", {
2961
- class: _([{ disabled: o.value }, "btn btn-primary"]),
2967
+ class: _([{ disabled: l.value }, "btn btn-primary"]),
2962
2968
  id: "file-input-button",
2963
2969
  for: "file-input"
2964
2970
  }, [
2965
- B(a.$slots, "button-content", {}, () => [
2971
+ B(o.$slots, "button-content", {}, () => [
2966
2972
  f(p(T), {
2967
2973
  icon: "bi:upload",
2968
2974
  class: "me-2",
@@ -2973,11 +2979,11 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
2973
2979
  ])
2974
2980
  ], 2)
2975
2981
  ]),
2976
- a.showDragDropArea ? (i(), y("div", {
2982
+ o.showDragDropArea ? (i(), y("div", {
2977
2983
  class: "ms-auto",
2978
- key: a.acceptedFileTypes.length,
2984
+ key: o.acceptedFileTypes.length,
2979
2985
  id: "accepted-file-types"
2980
- }, "Accepted File Types: " + w(a.acceptedFileTypes.map((d) => d.split("/").pop()).join(", ")), 1)) : S("", !0)
2986
+ }, "Accepted File Types: " + w(o.acceptedFileTypes.map((d) => d.split("/").pop()).join(", ")), 1)) : S("", !0)
2981
2987
  ]));
2982
2988
  }
2983
2989
  }), xa = {
@@ -2999,15 +3005,15 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
2999
3005
  }),
3000
3006
  emits: ["update:modelValue"],
3001
3007
  setup(e) {
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);
3008
+ const t = E(e, "modelValue"), l = I(!1), a = k(() => e.maxFileInput <= t.value.length), o = (n) => {
3009
+ l.value = !1, n.dataTransfer.files.length > e.maxFileInput || a.value ? n.preventDefault() : t.value = ge([...n.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
3004
3010
  };
3005
3011
  return (n, d) => (i(), y("div", {
3006
3012
  id: "drag-drop-area",
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"])
3013
+ class: _(`${l.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
3014
+ onDragleave: d[0] || (d[0] = Y((u) => l.value = !1, ["prevent"])),
3015
+ onDragover: d[1] || (d[1] = Y((u) => l.value = !0, ["prevent"])),
3016
+ onDrop: Y(o, ["prevent"])
3011
3017
  }, [
3012
3018
  t.value.length === 0 ? (i(), y("div", xa, [
3013
3019
  f(p(T), {
@@ -3031,7 +3037,7 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3031
3037
  uploadStatus: {}
3032
3038
  },
3033
3039
  setup(e) {
3034
- const t = k(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), o = k(() => {
3040
+ const t = k(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), l = k(() => {
3035
3041
  switch (e.uploadStatus) {
3036
3042
  case "InvalidFileType":
3037
3043
  return "Upload Failed: File type is not accepted.";
@@ -3047,26 +3053,26 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3047
3053
  return "Upload Failed: Connection error, please try again.";
3048
3054
  }
3049
3055
  });
3050
- return (l, a) => (i(), y("div", Ba, [
3051
- l.uploadStatus === "Uploading" ? (i(), h(Gt, {
3056
+ return (a, o) => (i(), y("div", Ba, [
3057
+ a.uploadStatus === "Uploading" ? (i(), h(Gt, {
3052
3058
  key: 0,
3053
3059
  pixelWidth: 200,
3054
3060
  animate: "",
3055
3061
  striped: ""
3056
3062
  }, {
3057
3063
  default: b(() => [
3058
- O(w((l.bytesUploaded / l.fileSize * 100).toFixed(0)) + "%", 1)
3064
+ O(w((a.bytesUploaded / a.fileSize * 100).toFixed(0)) + "%", 1)
3059
3065
  ]),
3060
3066
  _: 1
3061
3067
  })) : S("", !0),
3062
- l.uploadStatus !== "Uploading" && l.uploadStatus !== "Not Uploaded" && l.uploadStatus !== "Uploaded" && l.uploadStatus !== "Preparing" ? (i(), h(se, {
3068
+ a.uploadStatus !== "Uploading" && a.uploadStatus !== "Not Uploaded" && a.uploadStatus !== "Uploaded" && a.uploadStatus !== "Preparing" ? (i(), h(se, {
3063
3069
  key: 1,
3064
3070
  id: "upload-status-alert",
3065
3071
  severity: t.value,
3066
3072
  class: "mb-0 w-75 ms-auto"
3067
3073
  }, {
3068
3074
  default: b(() => [
3069
- O(w(o.value), 1)
3075
+ O(w(l.value), 1)
3070
3076
  ]),
3071
3077
  _: 1
3072
3078
  }, 8, ["severity"])) : S("", !0)
@@ -3081,7 +3087,7 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3081
3087
  }, Ta = {
3082
3088
  class: "text-black-50",
3083
3089
  id: "file-size"
3084
- }, Pa = { class: "ms-auto my-auto d-flex" }, Ma = /* @__PURE__ */ V({
3090
+ }, Ma = { class: "ms-auto my-auto d-flex" }, Pa = /* @__PURE__ */ V({
3085
3091
  __name: "FileInfo",
3086
3092
  props: /* @__PURE__ */ j({
3087
3093
  editableFileName: { type: Boolean },
@@ -3100,52 +3106,52 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3100
3106
  }),
3101
3107
  emits: /* @__PURE__ */ j(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
3102
3108
  setup(e, { emit: t }) {
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() });
3109
+ const l = E(e, "file"), a = E(e, "blobFileName"), o = E(e, "uploadStatus"), n = t, d = I(l.value.name), u = I(""), c = I(0), r = I(), s = k(() => e.acceptedFileTypes.includes(l.value.type)), v = k(() => l.value.size <= e.maxFileSize), x = () => {
3110
+ l.value = new File([l.value], d.value, { type: l.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
3105
3111
  }, F = async () => {
3106
3112
  if (!s.value || !v.value) {
3107
- a.value = s.value ? "InvalidFileSize" : "InvalidFileType";
3113
+ o.value = s.value ? "InvalidFileSize" : "InvalidFileType";
3108
3114
  return;
3109
3115
  }
3110
- a.value = "Preparing", r.value = new AbortController();
3111
- const [M, z] = await e.getFileUrlAction(o.value.name);
3112
- if (!M) {
3113
- a.value = "Failed";
3116
+ o.value = "Preparing", r.value = new AbortController();
3117
+ const [P, z] = await e.getFileUrlAction(l.value.name);
3118
+ if (!P) {
3119
+ o.value = "Failed";
3114
3120
  return;
3115
3121
  }
3116
3122
  try {
3117
- a.value = "Uploading";
3118
- const g = new pe(M), $ = {
3123
+ o.value = "Uploading";
3124
+ const g = new pe(P), $ = {
3119
3125
  abortSignal: r.value.signal,
3120
3126
  onProgress: (G) => c.value = G.loadedBytes,
3121
3127
  tags: { temp: "true" }
3122
3128
  };
3123
- await g.uploadData(o.value, $), u.value = M, a.value = "Uploaded", l.value = z;
3129
+ await g.uploadData(l.value, $), u.value = P, o.value = "Uploaded", a.value = z;
3124
3130
  } catch (g) {
3125
3131
  if (g.name === "AbortError") {
3126
- a.value = "Aborted";
3132
+ o.value = "Aborted";
3127
3133
  return;
3128
3134
  }
3129
- a.value = "Failed";
3135
+ o.value = "Failed";
3130
3136
  }
3131
- }, P = async () => {
3132
- await ya(a.value, u.value), n("deleted", o.value);
3137
+ }, M = async () => {
3138
+ await ya(o.value, u.value), n("deleted", l.value);
3133
3139
  };
3134
3140
  return ae(() => {
3135
3141
  e.autoUploadToBlob && F();
3136
- }), (M, z) => {
3142
+ }), (P, z) => {
3137
3143
  const g = L;
3138
3144
  return i(), y("div", {
3139
3145
  class: "py-4 px-3 d-flex",
3140
- "data-cy": `file-info-${o.value.name}`
3146
+ "data-cy": `file-info-${l.value.name}`
3141
3147
  }, [
3142
3148
  m("div", null, [
3143
- p(ba)(o.value.type) ? (i(), h(p(Ue), {
3149
+ p(ba)(l.value.type) ? (i(), h(p(Ue), {
3144
3150
  key: 0,
3145
3151
  id: "thumbnail-image",
3146
3152
  "image-class": "image-file-thumbnail border",
3147
- src: p(fa)(o.value),
3148
- alt: o.value.name,
3153
+ src: p(fa)(l.value),
3154
+ alt: l.value.name,
3149
3155
  width: "75px",
3150
3156
  preview: ""
3151
3157
  }, null, 8, ["src", "alt"])) : (i(), h(p(T), {
@@ -3158,40 +3164,40 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3158
3164
  ]),
3159
3165
  m("div", Va, [
3160
3166
  m("div", null, [
3161
- M.editableFileName ? (i(), h(Bt, {
3167
+ P.editableFileName ? (i(), h(Bt, {
3162
3168
  key: 0,
3163
3169
  id: "edit-file-name",
3164
3170
  modelValue: d.value,
3165
3171
  "onUpdate:modelValue": z[0] || (z[0] = ($) => d.value = $),
3166
- rules: M.customFileNameRules,
3167
- name: o.value.name,
3172
+ rules: P.customFileNameRules,
3173
+ name: l.value.name,
3168
3174
  "complete-action": x
3169
- }, null, 8, ["modelValue", "rules", "name"])) : (i(), y("span", Sa, w(o.value.name), 1))
3175
+ }, null, 8, ["modelValue", "rules", "name"])) : (i(), y("span", Sa, w(l.value.name), 1))
3170
3176
  ]),
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)
3177
+ m("span", Ca, "File type: " + w(l.value.type.split("/").pop()), 1),
3178
+ m("span", Ta, "File size: " + w(p(ue)(l.value.size)), 1)
3173
3179
  ]),
3174
- m("div", Pa, [
3180
+ m("div", Ma, [
3175
3181
  (i(), h(Fa, {
3176
- key: a.value,
3177
- "file-size": o.value.size,
3178
- "upload-status": a.value,
3182
+ key: o.value,
3183
+ "file-size": l.value.size,
3184
+ "upload-status": o.value,
3179
3185
  "bytes-uploaded": c.value,
3180
- "max-file-size": M.maxFileSize
3186
+ "max-file-size": P.maxFileSize
3181
3187
  }, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
3182
- a.value === "Not Uploaded" || a.value === "Failed" || a.value === "Duplicate" || a.value === "Aborted" ? (i(), h(g, {
3188
+ o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (i(), h(g, {
3183
3189
  key: 0,
3184
3190
  link: "",
3185
3191
  onClick: F
3186
3192
  }, {
3187
3193
  default: b(() => [
3188
3194
  f(p(T), {
3189
- icon: a.value === "Not Uploaded" || a.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
3195
+ icon: o.value === "Not Uploaded" || o.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
3190
3196
  }, null, 8, ["icon"])
3191
3197
  ]),
3192
3198
  _: 1
3193
3199
  })) : S("", !0),
3194
- a.value === "Uploading" ? (i(), h(g, {
3200
+ o.value === "Uploading" ? (i(), h(g, {
3195
3201
  key: 1,
3196
3202
  link: "",
3197
3203
  onClick: z[1] || (z[1] = ($) => r.value.value.abort())
@@ -3203,7 +3209,7 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3203
3209
  })) : (i(), h(g, {
3204
3210
  key: 2,
3205
3211
  link: "",
3206
- onClick: P,
3212
+ onClick: M,
3207
3213
  id: "delete-button"
3208
3214
  }, {
3209
3215
  default: b(() => [
@@ -3221,11 +3227,11 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3221
3227
  maxFileSize: {}
3222
3228
  },
3223
3229
  setup(e) {
3224
- return (t, o) => (i(), y("div", Ia, [
3230
+ return (t, l) => (i(), y("div", Ia, [
3225
3231
  m("div", za, "Max file size: " + w(p(ue)(t.maxFileSize)), 1)
3226
3232
  ]));
3227
3233
  }
3228
- }), Da = { "data-cy": "file-uploader" }, Ua = { key: 0 }, Vl = /* @__PURE__ */ V({
3234
+ }), Da = { "data-cy": "file-uploader" }, Ua = { key: 0 }, Cl = /* @__PURE__ */ V({
3229
3235
  __name: "ForgeFileUploader",
3230
3236
  props: /* @__PURE__ */ j({
3231
3237
  acceptedFileTypes: {},
@@ -3242,25 +3248,25 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3242
3248
  }),
3243
3249
  emits: ["update:modelValue"],
3244
3250
  setup(e) {
3245
- const t = E(e, "modelValue"), o = e, l = (a) => {
3246
- t.value = t.value.filter((n) => n.file != a);
3251
+ const t = E(e, "modelValue"), l = e, a = (o) => {
3252
+ t.value = t.value.filter((n) => n.file != o);
3247
3253
  };
3248
- return (a, n) => (i(), y("div", Da, [
3249
- f(wa, C(o, {
3254
+ return (o, n) => (i(), y("div", Da, [
3255
+ f(wa, C(l, {
3250
3256
  modelValue: t.value,
3251
3257
  "onUpdate:modelValue": n[0] || (n[0] = (d) => t.value = d)
3252
3258
  }), null, 16, ["modelValue"]),
3253
- a.showDragDropArea ? (i(), y("div", Ua, [
3259
+ o.showDragDropArea ? (i(), y("div", Ua, [
3254
3260
  f($a, {
3255
- "max-file-input": o.maxFileInput,
3256
- "max-file-size": o.maxFileSize,
3257
- "accepted-file-types": o.acceptedFileTypes,
3261
+ "max-file-input": l.maxFileInput,
3262
+ "max-file-size": l.maxFileSize,
3263
+ "accepted-file-types": l.acceptedFileTypes,
3258
3264
  modelValue: t.value,
3259
3265
  "onUpdate:modelValue": n[1] || (n[1] = (d) => t.value = d)
3260
3266
  }, {
3261
3267
  default: b(() => [
3262
3268
  (i(!0), y(N, null, q(t.value, ({ file: d }, u) => (i(), y("span", null, [
3263
- (i(), h(Ma, C({
3269
+ (i(), h(Pa, C({
3264
3270
  key: d.name,
3265
3271
  class: u === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
3266
3272
  file: t.value[u].file,
@@ -3270,13 +3276,13 @@ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disable
3270
3276
  "upload-status": t.value[u].status,
3271
3277
  "onUpdate:uploadStatus": (c) => t.value[u].status = c,
3272
3278
  ref_for: !0
3273
- }, o, { onDeleted: l }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
3279
+ }, l, { onDeleted: a }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
3274
3280
  ]))), 256))
3275
3281
  ]),
3276
3282
  _: 1
3277
3283
  }, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
3278
3284
  f(Oa, {
3279
- "max-file-size": o.maxFileSize
3285
+ "max-file-size": l.maxFileSize
3280
3286
  }, null, 8, ["max-file-size"])
3281
3287
  ])) : S("", !0)
3282
3288
  ]));
@@ -3287,24 +3293,27 @@ export {
3287
3293
  ml as ForgeActionButton,
3288
3294
  se as ForgeAlert,
3289
3295
  ve as ForgeCheckbox,
3290
- xl as ForgeChips,
3296
+ $l as ForgeChips,
3291
3297
  fe as ForgeDatepicker,
3292
- Vl as ForgeFileUploader,
3293
- _l as ForgeFilterHeader,
3294
- hl as ForgeForm,
3295
- wl as ForgeFormField,
3298
+ Cl as ForgeFileUploader,
3299
+ Sl as ForgeFilterHeader,
3300
+ xl as ForgeForm,
3301
+ kl as ForgeFormField,
3296
3302
  Bt as ForgeInlineEditor,
3297
3303
  pl as ForgeLink,
3298
3304
  ye as ForgeLoader,
3299
- vl as ForgeModal,
3305
+ bl as ForgeModal,
3300
3306
  be as ForgeMultiSelect,
3301
- bl as ForgeMultiSelectPreview,
3302
- yl as ForgeNavbar,
3303
- fl as ForgePageHeader,
3307
+ gl as ForgeMultiSelectPreview,
3308
+ fl as ForgeNavbar,
3309
+ hl as ForgePageHeader,
3304
3310
  Gt as ForgeProgressBar,
3305
- gl as ForgeRemainingCharacters,
3306
- kl as ForgeStatWidget,
3307
- $l as ForgeStepper,
3308
- Fl as ForgeTable,
3309
- Bl as ForgeTile
3311
+ wl as ForgeRemainingCharacters,
3312
+ Bl as ForgeStatWidget,
3313
+ Fl as ForgeStepper,
3314
+ Vl as ForgeTable,
3315
+ _l as ForgeTile,
3316
+ yl as convertToMultiSelectOption,
3317
+ vl as enumToMultiSelectList,
3318
+ yt as parseError
3310
3319
  };