@3squared/forge-ui-3 2.5.2 → 2.7.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.
@@ -1,7 +1,7 @@
1
1
  import he from "primevue/message";
2
- import { defineComponent as B, openBlock as d, createBlock as f, normalizeProps as K, guardReactiveProps as Z, withCtx as g, createElementVNode as m, normalizeClass as F, unref as c, createCommentVNode as C, createVNode as y, renderSlot as k, ref as I, createElementBlock as b, Fragment as N, mergeProps as S, renderList as q, mergeModels as E, useModel as D, computed as z, createTextVNode as _, toDisplayString as w, withDirectives as H, vShow as Y, createSlots as ie, onMounted as le, isRef as we, withKeys as X, normalizeStyle as ke, withModifiers as G, watch as ce, h as $e, useTemplateRef as Fe } from "vue";
2
+ import { defineComponent as F, openBlock as d, createBlock as v, normalizeProps as K, guardReactiveProps as Z, withCtx as b, createElementVNode as m, normalizeClass as B, unref as c, createCommentVNode as C, createVNode as x, renderSlot as k, ref as _, createElementBlock as f, Fragment as O, mergeProps as S, renderList as A, mergeModels as N, useModel as D, computed as z, createTextVNode as I, toDisplayString as w, withDirectives as H, vShow as Y, createSlots as ie, onMounted as le, isRef as we, withKeys as X, normalizeStyle as ke, withModifiers as G, watch as ce, h as $e, useTemplateRef as Fe } from "vue";
3
3
  import { Icon as T } from "@iconify/vue";
4
- import U from "primevue/button";
4
+ import q from "primevue/button";
5
5
  import Be from "primevue/toast";
6
6
  import Se from "primevue/autocomplete";
7
7
  import Ce from "primevue/checkbox";
@@ -10,9 +10,9 @@ import ze from "primevue/progressspinner";
10
10
  import Te from "primevue/dialog";
11
11
  import ne from "primevue/inputtext";
12
12
  import { vOnClickOutside as je } from "@vueuse/components";
13
- import Ie from "primevue/menubar";
13
+ import _e from "primevue/menubar";
14
14
  import oe from "primevue/multiselect";
15
- import _e from "primevue/datepicker";
15
+ import Ie from "primevue/datepicker";
16
16
  import te from "primevue/select";
17
17
  import Pe from "primevue/inputmask";
18
18
  import Ve from "primevue/textarea";
@@ -29,7 +29,8 @@ import { BlockBlobClient as me } from "@azure/storage-blob";
29
29
  import ve from "primevue/popover";
30
30
  import Le from "primevue/image";
31
31
  import Re from "primevue/panel";
32
- const He = {
32
+ import { ToggleButton as He } from "primevue";
33
+ const We = {
33
34
  autoComplete: {
34
35
  root: ({ props: e }) => ({
35
36
  class: [
@@ -58,7 +59,7 @@ const He = {
58
59
  }),
59
60
  emptyMessage: "mx-3 my-2"
60
61
  }
61
- }, We = {
62
+ }, Ye = {
62
63
  button: {
63
64
  root: ({ props: e }) => ({
64
65
  class: [
@@ -159,7 +160,7 @@ const He = {
159
160
  })
160
161
  }
161
162
  }
162
- }, Ye = {
163
+ }, Ge = {
163
164
  checkbox: {
164
165
  root: () => ({
165
166
  class: ["form-check"]
@@ -175,7 +176,7 @@ const He = {
175
176
  ]
176
177
  })
177
178
  }
178
- }, Ge = {
179
+ }, Je = {
179
180
  select: {
180
181
  root: ({ props: e }) => ({
181
182
  class: [
@@ -225,7 +226,7 @@ const He = {
225
226
  ]
226
227
  })
227
228
  }
228
- }, Je = {
229
+ }, Ke = {
229
230
  column: {
230
231
  pcSortBadge: "ms-2 my-auto cursor-pointer",
231
232
  headerCell: (e) => {
@@ -328,7 +329,7 @@ const He = {
328
329
  ]
329
330
  })
330
331
  }
331
- }, Ke = {
332
+ }, Ze = {
332
333
  inputtext: {
333
334
  root: (e) => {
334
335
  var t, a;
@@ -343,7 +344,7 @@ const He = {
343
344
  };
344
345
  }
345
346
  }
346
- }, Ze = {
347
+ }, Xe = {
347
348
  inputmask: {
348
349
  root: () => ({
349
350
  class: [
@@ -351,12 +352,12 @@ const He = {
351
352
  ]
352
353
  })
353
354
  }
354
- }, Xe = {
355
+ }, Qe = {
355
356
  toggleSwitch: {
356
357
  root: "form-check form-switch",
357
358
  input: "form-check-input"
358
359
  }
359
- }, Qe = {
360
+ }, et = {
360
361
  tag: {
361
362
  root: ({ props: e }) => ({
362
363
  class: [
@@ -376,7 +377,7 @@ const He = {
376
377
  ]
377
378
  })
378
379
  }
379
- }, et = {
380
+ }, tt = {
380
381
  textarea: {
381
382
  root: () => ({
382
383
  class: [
@@ -384,13 +385,13 @@ const He = {
384
385
  ]
385
386
  })
386
387
  }
387
- }, tt = {
388
+ }, at = {
388
389
  chip: {
389
390
  root: "badge rounded-pill bg-primary-subtle text-primary d-inline-flex align-items-center border border-primary me-1 p-1",
390
391
  label: "px-2 fs-6 fw-400",
391
392
  removeIcon: "ms-auto my-auto"
392
393
  }
393
- }, at = {
394
+ }, it = {
394
395
  dialog: {
395
396
  root: ({ parent: e }) => e.instance.$.type.name == "ConfirmDialog" ? {
396
397
  class: ["modal modal-dialog modal-content h-auto m-0 modal-sm"]
@@ -449,7 +450,7 @@ const He = {
449
450
  ]
450
451
  })
451
452
  }
452
- }, it = {
453
+ }, lt = {
453
454
  popover: {
454
455
  root: (e) => ({
455
456
  class: [
@@ -463,7 +464,7 @@ const He = {
463
464
  content: "d-flex position-relative",
464
465
  closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
465
466
  }
466
- }, lt = {
467
+ }, nt = {
467
468
  message: {
468
469
  root: ({ props: e }) => ({
469
470
  class: [
@@ -492,7 +493,7 @@ const He = {
492
493
  class: ["px-0 ms-2 btn d-flex"]
493
494
  })
494
495
  }
495
- }, nt = {
496
+ }, ot = {
496
497
  // More PT options defined in ForgeStepper.
497
498
  stepList: {
498
499
  root: "d-flex mb-2 w-100"
@@ -520,7 +521,7 @@ const He = {
520
521
  }),
521
522
  separator: "border border-1 separator"
522
523
  }
523
- }, ot = {
524
+ }, st = {
524
525
  tabList: {
525
526
  root: () => ({
526
527
  class: ["nav nav-tabs position-relative"]
@@ -545,7 +546,7 @@ const He = {
545
546
  class: ["p-2"]
546
547
  })
547
548
  }
548
- }, st = {
549
+ }, rt = {
549
550
  // More PassThrough options defined in ForgeDatepicker.
550
551
  datepicker: {
551
552
  root: "d-inline-flex relative w-100",
@@ -620,7 +621,7 @@ const He = {
620
621
  pcDecrementButton: { root: "btn btn-sm", label: "d-none" },
621
622
  pcIncrementButton: { root: "btn btn-sm", label: "d-none" }
622
623
  }
623
- }, rt = {
624
+ }, dt = {
624
625
  multiselect: {
625
626
  root: ({ props: e }) => ({
626
627
  class: [
@@ -648,7 +649,7 @@ const He = {
648
649
  class: "d-none"
649
650
  })
650
651
  }
651
- }, dt = {
652
+ }, pt = {
652
653
  // More PassThrough options in component file.
653
654
  progressbar: {
654
655
  root: () => ({
@@ -658,7 +659,7 @@ const He = {
658
659
  class: ["text-white m-1"]
659
660
  })
660
661
  }
661
- }, pt = {
662
+ }, ct = {
662
663
  panel: {
663
664
  root: "card w-100",
664
665
  header: "h4 d-flex justify-content-between align-items-center fw-600 ms-4 me-3 my-2",
@@ -671,7 +672,7 @@ const He = {
671
672
  },
672
673
  contentContainer: "mt-2 mx-4 mb-4"
673
674
  }
674
- }, ct = {
675
+ }, ut = {
675
676
  // More PT options can be found in the ForgeTable file.
676
677
  dataTable: {
677
678
  root: "position-relative",
@@ -745,7 +746,7 @@ const He = {
745
746
  ]
746
747
  })
747
748
  }
748
- }, ut = {
749
+ }, mt = {
749
750
  badge: {
750
751
  root: ({ props: e }) => ({
751
752
  class: [
@@ -766,7 +767,7 @@ const He = {
766
767
  ]
767
768
  })
768
769
  }
769
- }, mt = {
770
+ }, vt = {
770
771
  // More PassThrough options in component file.
771
772
  menubar: {
772
773
  rootList: ({ instance: e }) => ({
@@ -847,7 +848,7 @@ const He = {
847
848
  ]
848
849
  })
849
850
  }
850
- }, vt = {
851
+ }, ft = {
851
852
  tooltip: {
852
853
  root: ({ context: e }) => ({
853
854
  class: [
@@ -869,24 +870,24 @@ const He = {
869
870
  class: ["tooltip-inner"]
870
871
  }
871
872
  }
872
- }, ft = {
873
+ }, gt = {
873
874
  selectButton: {
874
875
  root: () => ({
875
876
  class: ["btn-group"]
876
877
  })
877
878
  },
878
879
  toggleButton: {
879
- root: ({ context: e }) => ({
880
+ root: (e) => ({
880
881
  class: [
881
882
  "btn",
882
883
  {
883
- "btn-primary": e.active,
884
- "btn-outline-primary": !e.active
884
+ "btn-primary": e.context.active,
885
+ "btn-outline-primary": !e.context.active
885
886
  }
886
887
  ]
887
888
  })
888
889
  }
889
- }, gt = {
890
+ }, bt = {
890
891
  splitbutton: {
891
892
  root: () => ({
892
893
  class: ["btn-group"]
@@ -922,7 +923,7 @@ const He = {
922
923
  separator: "border-bottom w-100"
923
924
  }
924
925
  }
925
- }, bt = {
926
+ }, yt = {
926
927
  progressspinner: {
927
928
  spin: () => ({
928
929
  class: [
@@ -954,11 +955,11 @@ const He = {
954
955
  class: ["card-header"]
955
956
  })
956
957
  }
957
- }, yt = {
958
+ }, ht = {
958
959
  divider: {
959
960
  root: "border-bottom w-100 m-1"
960
961
  }
961
- }, ht = {
962
+ }, wt = {
962
963
  image: {
963
964
  root: "position-relative d-inline-block",
964
965
  previewMask: "preview-button",
@@ -971,7 +972,7 @@ const He = {
971
972
  zoominbutton: "btn text-white",
972
973
  closebutton: "btn text-white"
973
974
  }
974
- }, wt = {
975
+ }, kt = {
975
976
  toast: {
976
977
  message: () => ({
977
978
  class: ["toast-container w-100 position-relative"]
@@ -1006,7 +1007,87 @@ const He = {
1006
1007
  };
1007
1008
  }
1008
1009
  }
1009
- }, kt = {
1010
+ }, $t = {
1011
+ tree: {
1012
+ node: "m-1",
1013
+ nodeToggleButton: ({ context: e }) => ({
1014
+ class: [
1015
+ "btn py-0 px-1",
1016
+ {
1017
+ invisible: e.leaf
1018
+ }
1019
+ ]
1020
+ }),
1021
+ rootChildren: "d-flex flex-column m-0 list-unstyled",
1022
+ nodeChildren: "list-unstyled ps-3 me-1",
1023
+ nodeContent: ({ context: e }) => ({
1024
+ class: [
1025
+ "dropdown-item d-flex text-wrap align-items-center mb-1",
1026
+ {
1027
+ "cursor-pointer": e.node.selectable || e.node.selectable == null,
1028
+ "bg-primary-subtle border border-primary rounded-2": e.selected
1029
+ }
1030
+ ]
1031
+ }),
1032
+ pcFilterIconContainer: {
1033
+ root: {
1034
+ class: ["position-absolute bottom-0 end-0 me-3"],
1035
+ style: "top: 8%;"
1036
+ }
1037
+ },
1038
+ pcFilterInput: { root: "d-flex cursor-pointer form-control form-control-sm w-100" },
1039
+ pcFilterContainer: { root: "dropdown-item" },
1040
+ filterIcon: "d-none"
1041
+ }
1042
+ }, Ft = {
1043
+ treeSelect: {
1044
+ root: ({ props: e }) => ({
1045
+ class: [
1046
+ "form-select d-flex cursor-pointer position-relative",
1047
+ {
1048
+ disabled: e.disabled
1049
+ }
1050
+ ]
1051
+ }),
1052
+ dropdown: "d-none",
1053
+ panel: "dropdown-menu overflow-y-auto show",
1054
+ labelContainer: "w-100 me-2",
1055
+ label: "w-100 d-flex ellipsis-overflow",
1056
+ clearIcon: "ms-auto my-auto",
1057
+ header: "p-2 w-100",
1058
+ pcTree: {
1059
+ node: "mx-1",
1060
+ nodeToggleButton: ({ context: e }) => ({
1061
+ class: [
1062
+ "btn py-0 px-1",
1063
+ {
1064
+ invisible: e.leaf
1065
+ }
1066
+ ]
1067
+ }),
1068
+ rootChildren: "d-flex flex-column m-0 list-unstyled",
1069
+ nodeChildren: "list-unstyled ps-3 mb-1 me-1",
1070
+ nodeContent: ({ context: e }) => ({
1071
+ class: [
1072
+ "dropdown-item d-flex text-wrap align-items-center mb-1",
1073
+ {
1074
+ "cursor-pointer": e.node.selectable || e.node.selectable == null,
1075
+ "bg-primary-subtle border border-primary rounded-2": e.selected
1076
+ }
1077
+ ]
1078
+ }),
1079
+ pcFilterIconContainer: {
1080
+ root: {
1081
+ class: ["position-absolute bottom-0 end-0 me-3"],
1082
+ style: "top: 8%;"
1083
+ }
1084
+ },
1085
+ pcFilterInput: { root: "d-flex cursor-pointer form-control form-control-sm w-100" },
1086
+ pcFilterContainer: { root: "dropdown-item" },
1087
+ filterIcon: "d-none"
1088
+ }
1089
+ }
1090
+ }, Bt = {
1010
1091
  fieldset: {
1011
1092
  root: () => ({
1012
1093
  class: [
@@ -1032,42 +1113,63 @@ const He = {
1032
1113
  ]
1033
1114
  })
1034
1115
  }
1035
- }, Ti = {
1036
- ...He,
1037
- ...ut,
1116
+ }, St = {
1117
+ accordionPanel: {
1118
+ root: "card my-2"
1119
+ },
1120
+ accordionHeader: {
1121
+ root: "border-0 bg-transparent fw-400 w-100 d-flex flex-row justify-content-between align-content-center ps-4 pe-3 py-2 my-2",
1122
+ //header: "h4 d-flex justify-content-between align-items-center fw-600 ms-4 me-3 my-2",
1123
+ pcToggleButton: {
1124
+ root: {
1125
+ class: [
1126
+ "btn"
1127
+ ]
1128
+ }
1129
+ }
1130
+ },
1131
+ accordionContent: {
1132
+ root: "mt-2 mx-4 mb-4"
1133
+ }
1134
+ }, Di = {
1038
1135
  ...We,
1039
- ...xt,
1136
+ ...mt,
1040
1137
  ...Ye,
1041
- ...tt,
1042
- ...Je,
1043
- ...st,
1044
- ...at,
1045
- ...yt,
1138
+ ...xt,
1046
1139
  ...Ge,
1047
- ...ht,
1140
+ ...at,
1048
1141
  ...Ke,
1049
- ...Ze,
1050
- ...Xe,
1051
- ...lt,
1052
1142
  ...rt,
1053
- ...mt,
1054
1143
  ...it,
1144
+ ...ht,
1145
+ ...Je,
1146
+ ...wt,
1147
+ ...Ze,
1148
+ ...Xe,
1149
+ ...Qe,
1150
+ ...nt,
1055
1151
  ...dt,
1056
- ...bt,
1152
+ ...vt,
1153
+ ...lt,
1057
1154
  ...pt,
1058
- ...ft,
1059
- ...gt,
1060
- ...nt,
1155
+ ...yt,
1061
1156
  ...ct,
1062
- ...Qe,
1157
+ ...gt,
1158
+ ...bt,
1063
1159
  ...ot,
1064
- ...wt,
1160
+ ...ut,
1065
1161
  ...et,
1162
+ ...st,
1066
1163
  ...kt,
1164
+ ...tt,
1165
+ ...Bt,
1166
+ ...Ft,
1167
+ ...$t,
1168
+ ...St,
1067
1169
  directives: {
1068
- ...vt
1170
+ ...ft
1069
1171
  }
1070
- }, se = /* @__PURE__ */ B({
1172
+ }, se = /* @__PURE__ */ F({
1071
1173
  __name: "ForgeAlert",
1072
1174
  props: {
1073
1175
  severity: { default: "primary" },
@@ -1088,31 +1190,31 @@ const He = {
1088
1190
  const t = e;
1089
1191
  return (a, i) => {
1090
1192
  const l = he;
1091
- return d(), f(l, K(Z({ ...a.$attrs, ...t })), {
1092
- icon: g(() => [
1193
+ return d(), v(l, K(Z({ ...a.$attrs, ...t })), {
1194
+ icon: b(() => [
1093
1195
  m("div", {
1094
- class: F(t.icon ? "me-2 pe-1" : "")
1196
+ class: B(t.icon ? "me-2 pe-1" : "")
1095
1197
  }, [
1096
- t.icon ? (d(), f(c(T), {
1198
+ t.icon ? (d(), v(c(T), {
1097
1199
  key: 0,
1098
1200
  "data-cy": "message-icon",
1099
1201
  icon: t.icon,
1100
- class: F(`text-${t.severity}`),
1202
+ class: B(`text-${t.severity}`),
1101
1203
  height: 35
1102
1204
  }, null, 8, ["icon", "class"])) : C("", !0)
1103
1205
  ], 2)
1104
1206
  ]),
1105
- closeicon: g(() => [
1106
- y(c(T), { icon: "bi:x" })
1207
+ closeicon: b(() => [
1208
+ x(c(T), { icon: "bi:x" })
1107
1209
  ]),
1108
- default: g(() => [
1210
+ default: b(() => [
1109
1211
  k(a.$slots, "default")
1110
1212
  ]),
1111
1213
  _: 3
1112
1214
  }, 16);
1113
1215
  };
1114
1216
  }
1115
- }), ji = /* @__PURE__ */ B({
1217
+ }), Oi = /* @__PURE__ */ F({
1116
1218
  __name: "ForgeActionButton",
1117
1219
  props: {
1118
1220
  action: {},
@@ -1121,7 +1223,7 @@ const He = {
1121
1223
  params: { default: Array }
1122
1224
  },
1123
1225
  setup(e) {
1124
- const t = I(!1), a = e, i = async () => {
1226
+ const t = _(!1), a = e, i = async () => {
1125
1227
  t.value = !0;
1126
1228
  try {
1127
1229
  await a.action.apply(this, a.params);
@@ -1131,30 +1233,30 @@ const He = {
1131
1233
  t.value = !1;
1132
1234
  };
1133
1235
  return (l, n) => {
1134
- const s = U;
1135
- return d(), b(N, null, [
1136
- y(s, S({ ...a, ...l.$attrs }, {
1236
+ const o = q;
1237
+ return d(), f(O, null, [
1238
+ x(o, S({ ...a, ...l.$attrs }, {
1137
1239
  loading: t.value,
1138
1240
  disabled: t.value || a.disabled,
1139
1241
  onClick: i
1140
1242
  }), null, 16, ["loading", "disabled"]),
1141
- y(c(Be))
1243
+ x(c(Be))
1142
1244
  ], 64);
1143
1245
  };
1144
1246
  }
1145
- }), Ii = /* @__PURE__ */ B({
1247
+ }), Ni = /* @__PURE__ */ F({
1146
1248
  __name: "ForgeAutoComplete",
1147
1249
  setup(e) {
1148
- return (t, a) => (d(), f(c(Se), S({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
1149
- default: g(() => [
1150
- (d(!0), b(N, null, q(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
1250
+ return (t, a) => (d(), v(c(Se), S({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
1251
+ default: b(() => [
1252
+ (d(!0), f(O, null, A(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
1151
1253
  ]),
1152
1254
  _: 3
1153
1255
  }, 16));
1154
1256
  }
1155
- }), $t = { class: "d-flex flex-column" }, Ft = ["for"], fe = /* @__PURE__ */ B({
1257
+ }), Ct = { class: "d-flex flex-column" }, zt = ["for"], fe = /* @__PURE__ */ F({
1156
1258
  __name: "ForgeCheckbox",
1157
- props: /* @__PURE__ */ E({
1259
+ props: /* @__PURE__ */ N({
1158
1260
  label: { default: "" },
1159
1261
  value: {},
1160
1262
  modelValue: {},
@@ -1194,34 +1296,34 @@ const He = {
1194
1296
  type: "checkbox",
1195
1297
  checkedValue: a.value
1196
1298
  }
1197
- ), s = (p) => {
1299
+ ), o = (p) => {
1198
1300
  t.name ? i(p) : a.value = p;
1199
1301
  }, r = z(() => l.value.length > 0);
1200
1302
  return (p, u) => {
1201
- const x = Ce;
1202
- return d(), b("div", $t, [
1303
+ const y = Ce;
1304
+ return d(), f("div", Ct, [
1203
1305
  m("div", S({
1204
1306
  class: "d-flex",
1205
1307
  "data-cy": "checkbox-container",
1206
- onClick: u[2] || (u[2] = (o) => s(a.value))
1308
+ onClick: u[2] || (u[2] = (s) => o(a.value))
1207
1309
  }, { ...p.$attrs }), [
1208
- y(x, S({ ...t }, {
1310
+ x(y, S({ ...t }, {
1209
1311
  binary: "",
1210
1312
  modelValue: a.value,
1211
- "onUpdate:modelValue": u[0] || (u[0] = (o) => a.value = o),
1313
+ "onUpdate:modelValue": u[0] || (u[0] = (s) => a.value = s),
1212
1314
  "input-id": t.name,
1213
1315
  "input-class": { "is-invalid": r.value },
1214
1316
  class: t.disabled ? "" : "cursor-pointer"
1215
1317
  }), null, 16, ["modelValue", "input-id", "input-class", "class"]),
1216
1318
  m("label", {
1217
1319
  for: t.name,
1218
- onClick: u[1] || (u[1] = (o) => s(!a.value)),
1219
- class: F([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${r.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1320
+ onClick: u[1] || (u[1] = (s) => o(!a.value)),
1321
+ class: B([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${r.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1220
1322
  }, [
1221
1323
  k(p.$slots, "default", {}, () => [
1222
- _(w(t.label), 1)
1324
+ I(w(t.label), 1)
1223
1325
  ])
1224
- ], 10, Ft)
1326
+ ], 10, zt)
1225
1327
  ], 16),
1226
1328
  H(m("small", {
1227
1329
  "data-cy": "error",
@@ -1232,7 +1334,7 @@ const He = {
1232
1334
  ]);
1233
1335
  };
1234
1336
  }
1235
- }), Bt = { class: "forge-loader" }, ge = /* @__PURE__ */ B({
1337
+ }), Tt = { class: "forge-loader" }, ge = /* @__PURE__ */ F({
1236
1338
  __name: "ForgeLoader",
1237
1339
  props: {
1238
1340
  severity: { default: "primary" }
@@ -1241,15 +1343,15 @@ const He = {
1241
1343
  const t = e;
1242
1344
  return (a, i) => {
1243
1345
  const l = ze;
1244
- return d(), b("div", Bt, [
1245
- y(l, {
1346
+ return d(), f("div", Tt, [
1347
+ x(l, {
1246
1348
  "animation-duration": ".75",
1247
- class: F(`text-${t.severity === void 0 ? "primary" : t.severity}`)
1349
+ class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
1248
1350
  }, null, 8, ["class"])
1249
1351
  ]);
1250
1352
  };
1251
1353
  }
1252
- }), St = ["href", "target"], _i = /* @__PURE__ */ B({
1354
+ }), jt = ["href", "target"], Ui = /* @__PURE__ */ F({
1253
1355
  __name: "ForgeLink",
1254
1356
  props: {
1255
1357
  url: {},
@@ -1283,25 +1385,25 @@ const He = {
1283
1385
  "ms-0": e.positionIconEnd && e.animateIconOnHover,
1284
1386
  "me-0": e.animateIconOnHover
1285
1387
  }));
1286
- return (i, l) => (d(), b("a", {
1388
+ return (i, l) => (d(), f("a", {
1287
1389
  id: "link",
1288
- class: F(["cursor-pointer d-flex text-break", t.value]),
1390
+ class: B(["cursor-pointer d-flex text-break", t.value]),
1289
1391
  href: i.url,
1290
1392
  target: i.target
1291
1393
  }, [
1292
1394
  k(i.$slots, "default", {}, () => [
1293
- i.iconName ? (d(), f(c(T), {
1395
+ i.iconName ? (d(), v(c(T), {
1294
1396
  key: 0,
1295
1397
  id: "link-icon",
1296
1398
  icon: i.iconName,
1297
- class: F(["bi my-auto", a.value])
1399
+ class: B(["bi my-auto", a.value])
1298
1400
  }, null, 8, ["icon", "class"])) : C("", !0),
1299
- _(" " + w(i.label), 1)
1401
+ I(" " + w(i.label), 1)
1300
1402
  ])
1301
- ], 10, St));
1403
+ ], 10, jt));
1302
1404
  }
1303
1405
  });
1304
- function Ct(e) {
1406
+ function _t(e) {
1305
1407
  const t = {
1306
1408
  errorMessage: "",
1307
1409
  errorDetails: []
@@ -1312,18 +1414,18 @@ function Ct(e) {
1312
1414
  }
1313
1415
  return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
1314
1416
  }
1315
- function Pi(e, t) {
1417
+ function Ai(e, t) {
1316
1418
  return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
1317
1419
  }
1318
- function Vi(e, t, a) {
1420
+ function qi(e, t, a) {
1319
1421
  return { id: e, label: t ?? e.toString(), shortLabel: a };
1320
1422
  }
1321
- const zt = { key: 0 }, Tt = {
1423
+ const It = { key: 0 }, Pt = {
1322
1424
  class: "d-flex w-100",
1323
1425
  "data-cy": "footer"
1324
- }, Mi = /* @__PURE__ */ B({
1426
+ }, Ei = /* @__PURE__ */ F({
1325
1427
  __name: "ForgeModal",
1326
- props: /* @__PURE__ */ E({
1428
+ props: /* @__PURE__ */ N({
1327
1429
  cancelText: { default: "Cancel" },
1328
1430
  submitText: { default: "Submit" },
1329
1431
  showFooter: { type: Boolean, default: !0 },
@@ -1371,11 +1473,11 @@ const zt = { key: 0 }, Tt = {
1371
1473
  }),
1372
1474
  emits: ["update:visible"],
1373
1475
  setup(e) {
1374
- const t = D(e, "visible"), a = I(!1), i = e, l = I(!1), n = I({
1476
+ const t = D(e, "visible"), a = _(!1), i = e, l = _(!1), n = _({
1375
1477
  hasError: !1,
1376
1478
  header: "",
1377
1479
  message: []
1378
- }), s = () => {
1480
+ }), o = () => {
1379
1481
  a.value = !1;
1380
1482
  }, r = () => {
1381
1483
  a.value = !0;
@@ -1385,16 +1487,16 @@ const zt = { key: 0 }, Tt = {
1385
1487
  if (i.onConfirm) {
1386
1488
  l.value = !0, n.value.hasError = !1;
1387
1489
  try {
1388
- const o = await i.onConfirm();
1389
- (o || o == null) && p();
1390
- } catch (o) {
1490
+ const s = await i.onConfirm();
1491
+ (s || s == null) && p();
1492
+ } catch (s) {
1391
1493
  n.value.hasError = !0;
1392
- const $ = Ct(o);
1494
+ const $ = _t(s);
1393
1495
  n.value.header = $.errorMessage, n.value.message = $.errorDetails;
1394
1496
  }
1395
1497
  l.value = !1;
1396
1498
  }
1397
- }, x = z(() => ({
1499
+ }, y = z(() => ({
1398
1500
  root: [
1399
1501
  "modal modal-dialog modal-content h-auto m-0",
1400
1502
  {
@@ -1405,15 +1507,15 @@ const zt = { key: 0 }, Tt = {
1405
1507
  }
1406
1508
  ]
1407
1509
  }));
1408
- return (o, $) => {
1409
- const j = U, V = Te;
1410
- return d(), f(V, S(i, {
1510
+ return (s, $) => {
1511
+ const j = q, V = Te;
1512
+ return d(), v(V, S(i, {
1411
1513
  onMaximize: r,
1412
- onUnmaximize: s,
1413
- pt: x.value
1514
+ onUnmaximize: o,
1515
+ pt: y.value
1414
1516
  }), ie({
1415
- closeicon: g(() => [
1416
- y(c(T), {
1517
+ closeicon: b(() => [
1518
+ x(c(T), {
1417
1519
  "data-cy": "close-icon",
1418
1520
  icon: "bi:x-lg",
1419
1521
  width: "18",
@@ -1421,8 +1523,8 @@ const zt = { key: 0 }, Tt = {
1421
1523
  onClick: p
1422
1524
  })
1423
1525
  ]),
1424
- maximizeicon: g(() => [
1425
- y(c(T), {
1526
+ maximizeicon: b(() => [
1527
+ x(c(T), {
1426
1528
  "data-cy": "maximisable-icon",
1427
1529
  icon: a.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1428
1530
  width: "16",
@@ -1431,45 +1533,45 @@ const zt = { key: 0 }, Tt = {
1431
1533
  ]),
1432
1534
  _: 2
1433
1535
  }, [
1434
- q(o.$slots, (M, O) => ({
1435
- name: O,
1436
- fn: g((v) => [
1437
- n.value.hasError ? (d(), f(se, {
1536
+ A(s.$slots, (M, U) => ({
1537
+ name: U,
1538
+ fn: b((g) => [
1539
+ n.value.hasError ? (d(), v(se, {
1438
1540
  key: 0,
1439
1541
  severity: "danger",
1440
1542
  "data-cy": "error"
1441
1543
  }, {
1442
- default: g(() => [
1544
+ default: b(() => [
1443
1545
  m("p", {
1444
- class: F(n.value.message.length > 0 ? "my-auto" : "mb-0")
1546
+ class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
1445
1547
  }, w(n.value.header), 3),
1446
- n.value.message.length > 0 ? (d(), b("ul", zt, [
1447
- (d(!0), b(N, null, q(n.value.message, (h) => (d(), b("li", { key: h }, w(h), 1))), 128))
1548
+ n.value.message.length > 0 ? (d(), f("ul", It, [
1549
+ (d(!0), f(O, null, A(n.value.message, (h) => (d(), f("li", { key: h }, w(h), 1))), 128))
1448
1550
  ])) : C("", !0)
1449
1551
  ]),
1450
1552
  _: 1
1451
1553
  })) : C("", !0),
1452
- k(o.$slots, O, K(Z(v || {}))),
1453
- l.value ? k(o.$slots, "loader", { key: 1 }, () => [
1454
- y(ge, { "data-cy": "loader" })
1554
+ k(s.$slots, U, K(Z(g || {}))),
1555
+ l.value ? k(s.$slots, "loader", { key: 1 }, () => [
1556
+ x(ge, { "data-cy": "loader" })
1455
1557
  ]) : C("", !0)
1456
1558
  ])
1457
1559
  })),
1458
- o.showFooter ? {
1560
+ s.showFooter ? {
1459
1561
  name: "footer",
1460
- fn: g(() => [
1461
- m("div", Tt, [
1462
- y(j, {
1463
- label: o.cancelText,
1464
- class: F(i.cancelClass),
1562
+ fn: b(() => [
1563
+ m("div", Pt, [
1564
+ x(j, {
1565
+ label: s.cancelText,
1566
+ class: B(i.cancelClass),
1465
1567
  outlined: "",
1466
1568
  onClick: p,
1467
1569
  id: "cancel-button",
1468
1570
  type: i.cancelButtonType
1469
1571
  }, null, 8, ["label", "class", "type"]),
1470
- y(j, {
1471
- label: o.submitText,
1472
- class: F([i.submitClass, "ms-auto"]),
1572
+ x(j, {
1573
+ label: s.submitText,
1574
+ class: B([i.submitClass, "ms-auto"]),
1473
1575
  onClick: u,
1474
1576
  id: "submit-button",
1475
1577
  type: i.submitButtonType
@@ -1481,9 +1583,9 @@ const zt = { key: 0 }, Tt = {
1481
1583
  ]), 1040, ["pt"]);
1482
1584
  };
1483
1585
  }
1484
- }), jt = ["id"], It = { key: 0 }, _t = { key: 0 }, Pt = { class: "d-flex justify-content-between align-items-center position-relative" }, Vt = { key: 1 }, Mt = { "data-cy": "readonly-value" }, Dt = /* @__PURE__ */ B({
1586
+ }), Vt = ["id"], Mt = { key: 0 }, Dt = { key: 0 }, Ot = { class: "d-flex justify-content-between align-items-center position-relative" }, Nt = { key: 1 }, Ut = { "data-cy": "readonly-value" }, At = /* @__PURE__ */ F({
1485
1587
  __name: "ForgeInlineEditor",
1486
- props: /* @__PURE__ */ E({
1588
+ props: /* @__PURE__ */ N({
1487
1589
  name: { default: "" },
1488
1590
  completeAction: {},
1489
1591
  errorAction: {},
@@ -1496,13 +1598,13 @@ const zt = { key: 0 }, Tt = {
1496
1598
  }),
1497
1599
  emits: ["update:modelValue"],
1498
1600
  setup(e) {
1499
- const t = e, a = D(e, "modelValue"), i = I(!1), l = I(), n = () => {
1601
+ const t = e, a = D(e, "modelValue"), i = _(!1), l = _(), n = () => {
1500
1602
  var j;
1501
1603
  i.value = !i.value, (j = l.value) == null || j.focus();
1502
- }, s = async () => {
1604
+ }, o = async () => {
1503
1605
  if ($.value)
1504
1606
  return !1;
1505
- if (a.value = o.value, t.completeAction)
1607
+ if (a.value = s.value, t.completeAction)
1506
1608
  try {
1507
1609
  await t.completeAction.apply(this, t.params), i.value = !i.value;
1508
1610
  } catch {
@@ -1513,47 +1615,47 @@ const zt = { key: 0 }, Tt = {
1513
1615
  }, r = () => {
1514
1616
  i.value = !i.value;
1515
1617
  }, p = () => {
1516
- o.value = null;
1517
- }, { errorMessage: u, errors: x, value: o } = ee(() => t.name, void 0, {
1618
+ s.value = null;
1619
+ }, { errorMessage: u, errors: y, value: s } = ee(() => t.name, void 0, {
1518
1620
  initialValue: a.value
1519
1621
  });
1520
1622
  le(() => {
1521
- o.value = a.value;
1623
+ s.value = a.value;
1522
1624
  });
1523
- const $ = z(() => x.value.length > 0);
1625
+ const $ = z(() => y.value.length > 0);
1524
1626
  return (j, V) => {
1525
- const M = ne, O = U;
1526
- return d(), b("div", {
1627
+ const M = ne, U = q;
1628
+ return d(), f("div", {
1527
1629
  id: t.name
1528
1630
  }, [
1529
- j.readonly ? (d(), b("div", Vt, [
1631
+ j.readonly ? (d(), f("div", Nt, [
1530
1632
  k(j.$slots, "default", {}, () => [
1531
- m("span", Mt, w(c(o)), 1)
1633
+ m("span", Ut, w(c(s)), 1)
1532
1634
  ])
1533
- ])) : (d(), b("div", It, [
1534
- i.value ? (d(), b("div", _t, [
1535
- H((d(), b("div", Pt, [
1635
+ ])) : (d(), f("div", Mt, [
1636
+ i.value ? (d(), f("div", Dt, [
1637
+ H((d(), f("div", Ot, [
1536
1638
  k(j.$slots, "editor", {
1537
- class: F({ "is-invalid": $.value }),
1538
- editFinished: s,
1639
+ class: B({ "is-invalid": $.value }),
1640
+ editFinished: o,
1539
1641
  cancel: r,
1540
- val: c(o)
1642
+ val: c(s)
1541
1643
  }, () => [
1542
- y(M, {
1543
- modelValue: c(o),
1544
- "onUpdate:modelValue": V[0] || (V[0] = (v) => we(o) ? o.value = v : null),
1644
+ x(M, {
1645
+ modelValue: c(s),
1646
+ "onUpdate:modelValue": V[0] || (V[0] = (g) => we(s) ? s.value = g : null),
1545
1647
  modelModifiers: { trim: !0 },
1546
1648
  "data-cy": "input",
1547
1649
  ref_key: "input",
1548
1650
  ref: l,
1549
- class: F({ "is-invalid": $.value }),
1651
+ class: B({ "is-invalid": $.value }),
1550
1652
  onKeydown: [
1551
- X(s, ["enter"]),
1653
+ X(o, ["enter"]),
1552
1654
  X(r, ["esc"])
1553
1655
  ]
1554
1656
  }, null, 8, ["modelValue", "class"])
1555
1657
  ]),
1556
- y(c(T), {
1658
+ x(c(T), {
1557
1659
  icon: "bi:x-circle",
1558
1660
  class: "mx-2 cursor-pointer",
1559
1661
  onClick: p,
@@ -1561,9 +1663,9 @@ const zt = { key: 0 }, Tt = {
1561
1663
  "data-cy": "clear-icon"
1562
1664
  })
1563
1665
  ])), [
1564
- [c(je), s]
1666
+ [c(je), o]
1565
1667
  ])
1566
- ])) : (d(), b("div", {
1668
+ ])) : (d(), f("div", {
1567
1669
  key: 1,
1568
1670
  class: "d-flex text-muted",
1569
1671
  onClick: n,
@@ -1571,18 +1673,18 @@ const zt = { key: 0 }, Tt = {
1571
1673
  }, [
1572
1674
  k(j.$slots, "default", {}, () => [
1573
1675
  m("div", {
1574
- class: F(["pe-2 cursor-pointer", { "text-invalid": $.value }]),
1676
+ class: B(["pe-2 cursor-pointer", { "text-invalid": $.value }]),
1575
1677
  "data-cy": "value"
1576
- }, w(c(o) ? c(o) : "Click to edit"), 3)
1678
+ }, w(c(s) ? c(s) : "Click to edit"), 3)
1577
1679
  ]),
1578
- y(O, {
1680
+ x(U, {
1579
1681
  link: "",
1580
1682
  class: "p-0 m-0"
1581
1683
  }, {
1582
- default: g(() => [
1583
- y(c(T), {
1684
+ default: b(() => [
1685
+ x(c(T), {
1584
1686
  icon: "bi:pencil",
1585
- class: F($.value ? "text-invalid" : "text-muted"),
1687
+ class: B($.value ? "text-invalid" : "text-muted"),
1586
1688
  "data-cy": "edit-icon",
1587
1689
  onKeydown: X(n, ["enter"])
1588
1690
  }, null, 8, ["class"])
@@ -1597,10 +1699,10 @@ const zt = { key: 0 }, Tt = {
1597
1699
  }, w(c(u)), 513), [
1598
1700
  [Y, $.value]
1599
1701
  ])
1600
- ], 8, jt);
1702
+ ], 8, Vt);
1601
1703
  };
1602
1704
  }
1603
- }), Ot = ["href"], Di = /* @__PURE__ */ B({
1705
+ }), qt = ["href"], Li = /* @__PURE__ */ F({
1604
1706
  __name: "ForgeNavbar",
1605
1707
  props: {
1606
1708
  severity: { default: "light" },
@@ -1644,26 +1746,26 @@ const zt = { key: 0 }, Tt = {
1644
1746
  ]
1645
1747
  })
1646
1748
  }));
1647
- return (i, l) => (d(), f(c(Ie), S({ ...t, ...i.$attrs }, {
1749
+ return (i, l) => (d(), v(c(_e), S({ ...t, ...i.$attrs }, {
1648
1750
  pt: a.value,
1649
1751
  "data-cy": "navbar"
1650
1752
  }), ie({
1651
- start: g(() => [
1753
+ start: b(() => [
1652
1754
  m("a", {
1653
1755
  href: i.logoUrl,
1654
1756
  class: "navbar-brand ms-3",
1655
1757
  "data-cy": "logo"
1656
1758
  }, [
1657
1759
  k(i.$slots, "logo", {}, () => [
1658
- l[0] || (l[0] = _(" Logo "))
1760
+ l[0] || (l[0] = I(" Logo "))
1659
1761
  ])
1660
- ], 8, Ot)
1762
+ ], 8, qt)
1661
1763
  ]),
1662
- buttonicon: g(() => [
1764
+ buttonicon: b(() => [
1663
1765
  k(i.$slots, "buttonIcon", {}, () => [
1664
- y(c(T), {
1766
+ x(c(T), {
1665
1767
  icon: "bi:list",
1666
- class: F(t.severity === "light" ? "text-black" : "text-white"),
1768
+ class: B(t.severity === "light" ? "text-black" : "text-white"),
1667
1769
  height: "24",
1668
1770
  "data-cy": "burger-icon"
1669
1771
  }, null, 8, ["class"])
@@ -1671,24 +1773,24 @@ const zt = { key: 0 }, Tt = {
1671
1773
  ]),
1672
1774
  _: 2
1673
1775
  }, [
1674
- q(i.$slots, (n, s) => ({
1675
- name: s,
1676
- fn: g((r) => [
1677
- k(i.$slots, s, K(Z(r)))
1776
+ A(i.$slots, (n, o) => ({
1777
+ name: o,
1778
+ fn: b((r) => [
1779
+ k(i.$slots, o, K(Z(r)))
1678
1780
  ])
1679
1781
  }))
1680
1782
  ]), 1040, ["pt"]));
1681
1783
  }
1682
- }), Nt = { class: "border alternating-item-list" }, Ut = {
1784
+ }), Et = { class: "border alternating-item-list" }, Lt = {
1683
1785
  key: 0,
1684
1786
  class: "p-2 border-top border-bottom",
1685
1787
  "data-cy": "title"
1686
- }, At = { class: "d-inline-block" }, qt = {
1788
+ }, Rt = { class: "d-inline-block" }, Ht = {
1687
1789
  key: 1,
1688
1790
  class: "p-2 item d-flex justify-content-between align-items-center"
1689
- }, Et = /* @__PURE__ */ B({
1791
+ }, Wt = /* @__PURE__ */ F({
1690
1792
  __name: "ForgeMultiSelectPreview",
1691
- props: /* @__PURE__ */ E({
1793
+ props: /* @__PURE__ */ N({
1692
1794
  title: { default: "Selected Items" },
1693
1795
  orientation: { default: "row" },
1694
1796
  height: { default: "200px" },
@@ -1706,16 +1808,16 @@ const zt = { key: 0 }, Tt = {
1706
1808
  a.value = a.value.filter((n) => n.id !== l);
1707
1809
  };
1708
1810
  return (l, n) => {
1709
- const s = oe, r = U;
1710
- return d(), b("div", {
1711
- class: F(l.orientation === "column" ? "row" : ""),
1811
+ const o = oe, r = q;
1812
+ return d(), f("div", {
1813
+ class: B(l.orientation === "column" ? "row" : ""),
1712
1814
  "data-cy": "multiselect-preview"
1713
1815
  }, [
1714
1816
  m("div", {
1715
- class: F(l.orientation === "row" ? "col-12 mb-1" : "col"),
1817
+ class: B(l.orientation === "row" ? "col-12 mb-1" : "col"),
1716
1818
  "data-cy": "multiselect-container"
1717
1819
  }, [
1718
- y(s, S({
1820
+ x(o, S({
1719
1821
  modelValue: a.value,
1720
1822
  "onUpdate:modelValue": n[0] || (n[0] = (p) => a.value = p)
1721
1823
  }, { ...l.$attrs }, {
@@ -1724,38 +1826,38 @@ const zt = { key: 0 }, Tt = {
1724
1826
  placeholder: l.multiselectPlaceholder,
1725
1827
  "data-cy": "multiselect"
1726
1828
  }), {
1727
- default: g(() => [
1728
- (d(!0), b(N, null, q(l.$slots, (p, u) => k(l.$slots, u, { slot: u })), 256))
1829
+ default: b(() => [
1830
+ (d(!0), f(O, null, A(l.$slots, (p, u) => k(l.$slots, u, { slot: u })), 256))
1729
1831
  ]),
1730
1832
  _: 3
1731
1833
  }, 16, ["modelValue", "options", "placeholder"]),
1732
1834
  k(l.$slots, "after-multi-select")
1733
1835
  ], 2),
1734
1836
  m("div", {
1735
- class: F(l.orientation === "row" ? "col-12" : "col"),
1837
+ class: B(l.orientation === "row" ? "col-12" : "col"),
1736
1838
  "data-cy": "options-preview"
1737
1839
  }, [
1738
1840
  m("div", {
1739
1841
  style: ke({ height: l.height }),
1740
1842
  class: "overflow-auto"
1741
1843
  }, [
1742
- m("div", Nt, [
1743
- l.title ? (d(), b("div", Ut, w(l.title), 1)) : C("", !0),
1744
- (d(!0), b(N, null, q(a.value, (p) => (d(), b("div", {
1844
+ m("div", Et, [
1845
+ l.title ? (d(), f("div", Lt, w(l.title), 1)) : C("", !0),
1846
+ (d(!0), f(O, null, A(a.value, (p) => (d(), f("div", {
1745
1847
  key: p.id,
1746
1848
  class: "p-2 item d-flex justify-content-between align-items-center"
1747
1849
  }, [
1748
1850
  k(l.$slots, "list-item", { item: p }, () => [
1749
- m("span", At, w(p.shortLabel ? p.shortLabel : p.label), 1)
1851
+ m("span", Rt, w(p.shortLabel ? p.shortLabel : p.label), 1)
1750
1852
  ]),
1751
- l.canRemoveItemFromPreview ? (d(), f(r, {
1853
+ l.canRemoveItemFromPreview ? (d(), v(r, {
1752
1854
  key: 0,
1753
1855
  link: "",
1754
1856
  class: "m-0 p-0 d-flex align-items-center",
1755
1857
  onClick: (u) => i(p.id)
1756
1858
  }, {
1757
- default: g(() => [
1758
- y(c(T), {
1859
+ default: b(() => [
1860
+ x(c(T), {
1759
1861
  icon: "bi:x",
1760
1862
  class: "close-icon",
1761
1863
  "data-cy": `close-icon-${p.id}`
@@ -1764,36 +1866,36 @@ const zt = { key: 0 }, Tt = {
1764
1866
  _: 2
1765
1867
  }, 1032, ["onClick"])) : C("", !0)
1766
1868
  ]))), 128)),
1767
- a.value == null || a.value.length == 0 ? (d(), b("div", qt, w(t.optionsPreviewEmptyText), 1)) : C("", !0)
1869
+ a.value == null || a.value.length == 0 ? (d(), f("div", Ht, w(t.optionsPreviewEmptyText), 1)) : C("", !0)
1768
1870
  ])
1769
1871
  ], 4)
1770
1872
  ], 2)
1771
1873
  ], 2);
1772
1874
  };
1773
1875
  }
1774
- }), Lt = { class: "d-flex justify-content-between pb-2" }, Rt = {
1876
+ }), Yt = { class: "d-flex justify-content-between pb-2" }, Gt = {
1775
1877
  "data-cy": "title",
1776
1878
  class: "my-auto"
1777
- }, Ht = {
1879
+ }, Jt = {
1778
1880
  "data-cy": "slot",
1779
1881
  class: "d-flex align-items-center"
1780
- }, Oi = /* @__PURE__ */ B({
1882
+ }, Ri = /* @__PURE__ */ F({
1781
1883
  __name: "ForgePageHeader",
1782
1884
  props: {
1783
1885
  title: {}
1784
1886
  },
1785
1887
  setup(e) {
1786
1888
  const t = e;
1787
- return (a, i) => (d(), b("div", Lt, [
1788
- m("h3", Rt, w(t.title), 1),
1789
- m("div", Ht, [
1889
+ return (a, i) => (d(), f("div", Yt, [
1890
+ m("h3", Gt, w(t.title), 1),
1891
+ m("div", Jt, [
1790
1892
  k(a.$slots, "default")
1791
1893
  ])
1792
1894
  ]));
1793
1895
  }
1794
- }), Wt = { class: "d-flex" }, Yt = { "data-cy": "before-slot" }, Gt = { class: "position-relative w-100" }, Jt = { "data-cy": "after-slot" }, be = /* @__PURE__ */ B({
1896
+ }), Kt = { class: "d-flex" }, Zt = { "data-cy": "before-slot" }, Xt = { class: "position-relative w-100" }, Qt = { "data-cy": "after-slot" }, be = /* @__PURE__ */ F({
1795
1897
  __name: "ForgeDatepicker",
1796
- props: /* @__PURE__ */ E({
1898
+ props: /* @__PURE__ */ N({
1797
1899
  severity: { default: "primary" },
1798
1900
  modelValue: {},
1799
1901
  defaultValue: {},
@@ -1867,37 +1969,37 @@ const zt = { key: 0 }, Tt = {
1867
1969
  }),
1868
1970
  emits: ["update:modelValue"],
1869
1971
  setup(e) {
1870
- const t = e, a = D(e, "modelValue"), { errors: i, errorMessage: l, handleChange: n, handleBlur: s, setValue: r } = ee(() => t.name, void 0, {
1972
+ const t = e, a = D(e, "modelValue"), { errors: i, errorMessage: l, handleChange: n, handleBlur: o, setValue: r } = ee(() => t.name, void 0, {
1871
1973
  initialValue: a.value
1872
1974
  }), p = () => {
1873
1975
  r(null), a.value = null;
1874
- }, u = z(() => i.value.length > 0), x = z(() => ({
1875
- dayCell: ({ context: o }) => ({
1976
+ }, u = z(() => i.value.length > 0), y = z(() => ({
1977
+ dayCell: ({ context: s }) => ({
1876
1978
  class: [
1877
1979
  `text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
1878
1980
  {
1879
- "cursor-pointer": !o.disabled,
1880
- "pe-none": o.disabled,
1881
- "text-white": o.selected
1981
+ "cursor-pointer": !s.disabled,
1982
+ "pe-none": s.disabled,
1983
+ "text-white": s.selected
1882
1984
  },
1883
1985
  // Severities
1884
1986
  {
1885
- selected: o.selected && !o.disabled,
1886
- "text-primary": !o.selected && o.today && (t.severity === void 0 || t.severity === "primary"),
1887
- "text-brand": !o.selected && o.today && t.severity === "brand",
1888
- "text-secondary": !o.selected && o.today && t.severity === "secondary",
1889
- "text-success": !o.selected && o.today && t.severity === "success",
1890
- "text-warning": !o.selected && o.today && t.severity === "warning",
1891
- "text-danger": !o.selected && o.today && t.severity === "danger",
1892
- "text-info": !o.selected && o.today && t.severity === "info"
1987
+ selected: s.selected && !s.disabled,
1988
+ "text-primary": !s.selected && s.today && (t.severity === void 0 || t.severity === "primary"),
1989
+ "text-brand": !s.selected && s.today && t.severity === "brand",
1990
+ "text-secondary": !s.selected && s.today && t.severity === "secondary",
1991
+ "text-success": !s.selected && s.today && t.severity === "success",
1992
+ "text-warning": !s.selected && s.today && t.severity === "warning",
1993
+ "text-danger": !s.selected && s.today && t.severity === "danger",
1994
+ "text-info": !s.selected && s.today && t.severity === "info"
1893
1995
  }
1894
1996
  ]
1895
1997
  }),
1896
- dayLabel: ({ context: o }) => ({
1998
+ dayLabel: ({ context: s }) => ({
1897
1999
  class: [
1898
2000
  // Disabled States
1899
2001
  {
1900
- "text-muted": o.disabled
2002
+ "text-muted": s.disabled
1901
2003
  }
1902
2004
  ]
1903
2005
  }),
@@ -1933,71 +2035,71 @@ const zt = { key: 0 }, Tt = {
1933
2035
  ]
1934
2036
  })
1935
2037
  },
1936
- year: ({ context: o }) => ({
2038
+ year: ({ context: s }) => ({
1937
2039
  class: [
1938
2040
  "col-3 text-center cursor-pointer py-2",
1939
2041
  {
1940
- "text-primary": (t.severity === void 0 || t.severity === "primary") && o.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1941
- "text-brand": t.severity === "brand" && o.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1942
- "text-secondary": t.severity === "secondary" && o.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1943
- "text-success": t.severity === "success" && o.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1944
- "text-warning": t.severity === "warning" && o.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1945
- "text-danger": t.severity === "danger" && o.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1946
- "text-info": t.severity === "info" && o.year.value === (/* @__PURE__ */ new Date()).getFullYear()
2042
+ "text-primary": (t.severity === void 0 || t.severity === "primary") && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
2043
+ "text-brand": t.severity === "brand" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
2044
+ "text-secondary": t.severity === "secondary" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
2045
+ "text-success": t.severity === "success" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
2046
+ "text-warning": t.severity === "warning" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
2047
+ "text-danger": t.severity === "danger" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
2048
+ "text-info": t.severity === "info" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear()
1947
2049
  }
1948
2050
  ]
1949
2051
  }),
1950
- month: ({ context: o }) => ({
2052
+ month: ({ context: s }) => ({
1951
2053
  class: [
1952
2054
  "col-3 text-center cursor-pointer py-2",
1953
2055
  {
1954
- "text-primary": (t.severity === void 0 || t.severity === "primary") && o.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1955
- "text-brand": t.severity === "brand" && o.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1956
- "text-secondary": t.severity === "secondary" && o.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1957
- "text-success": t.severity === "success" && o.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1958
- "text-warning": t.severity === "warning" && o.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1959
- "text-danger": t.severity === "danger" && o.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1960
- "text-info": t.severity === "info" && o.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
2056
+ "text-primary": (t.severity === void 0 || t.severity === "primary") && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
2057
+ "text-brand": t.severity === "brand" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
2058
+ "text-secondary": t.severity === "secondary" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
2059
+ "text-success": t.severity === "success" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
2060
+ "text-warning": t.severity === "warning" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
2061
+ "text-danger": t.severity === "danger" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
2062
+ "text-info": t.severity === "info" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
1961
2063
  }
1962
2064
  ]
1963
2065
  })
1964
2066
  }));
1965
- return (o, $) => {
1966
- const j = _e;
1967
- return d(), b(N, null, [
1968
- m("div", Wt, [
1969
- m("span", Yt, [
1970
- k(o.$slots, "before")
2067
+ return (s, $) => {
2068
+ const j = Ie;
2069
+ return d(), f(O, null, [
2070
+ m("div", Kt, [
2071
+ m("span", Zt, [
2072
+ k(s.$slots, "before")
1971
2073
  ]),
1972
- m("div", Gt, [
1973
- y(j, S({ ...t, ...o.$attrs }, {
1974
- pt: x.value,
2074
+ m("div", Xt, [
2075
+ x(j, S({ ...t, ...s.$attrs }, {
2076
+ pt: y.value,
1975
2077
  modelValue: a.value,
1976
2078
  "onUpdate:modelValue": [
1977
2079
  $[0] || ($[0] = (V) => a.value = V),
1978
2080
  c(n)
1979
2081
  ],
1980
- onBlur: $[1] || ($[1] = () => c(s)),
2082
+ onBlur: $[1] || ($[1] = () => c(o)),
1981
2083
  "input-class": { "datepicker-invalid": u.value }
1982
2084
  }), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
1983
- H(y(c(T), {
2085
+ H(x(c(T), {
1984
2086
  "data-cy": "icon",
1985
2087
  icon: "bi:calendar4",
1986
- class: F(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${u.value ? "text-danger-dark" : "text-muted"}`])
2088
+ class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${u.value ? "text-danger-dark" : "text-muted"}`])
1987
2089
  }, null, 8, ["class"]), [
1988
2090
  [Y, t.showIcon]
1989
2091
  ]),
1990
- H(y(c(T), {
2092
+ H(x(c(T), {
1991
2093
  "data-cy": "icon",
1992
2094
  icon: "bi:x",
1993
2095
  onClick: p,
1994
- 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"])
2096
+ class: B(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
1995
2097
  }, null, 8, ["class"]), [
1996
2098
  [Y, t.modelValue]
1997
2099
  ])
1998
2100
  ]),
1999
- m("span", Jt, [
2000
- k(o.$slots, "after")
2101
+ m("span", Qt, [
2102
+ k(s.$slots, "after")
2001
2103
  ])
2002
2104
  ]),
2003
2105
  H(m("small", {
@@ -2009,7 +2111,7 @@ const zt = { key: 0 }, Tt = {
2009
2111
  ], 64);
2010
2112
  };
2011
2113
  }
2012
- }), Ni = /* @__PURE__ */ B({
2114
+ }), Hi = /* @__PURE__ */ F({
2013
2115
  __name: "ForgeRemainingCharacters",
2014
2116
  props: {
2015
2117
  maxCount: { default: 300 },
@@ -2017,11 +2119,11 @@ const zt = { key: 0 }, Tt = {
2017
2119
  },
2018
2120
  setup(e) {
2019
2121
  const t = e, a = z(() => t.maxCount - t.currentCount);
2020
- return (i, l) => (d(), b("div", {
2021
- class: F(a.value < 0 ? "text-danger" : "")
2122
+ return (i, l) => (d(), f("div", {
2123
+ class: B(a.value < 0 ? "text-danger" : "")
2022
2124
  }, "Remaining characters: " + w(a.value), 3));
2023
2125
  }
2024
- }), Kt = { class: "d-flex justify-content-between" }, Ui = /* @__PURE__ */ B({
2126
+ }), ea = { class: "d-flex justify-content-between" }, Wi = /* @__PURE__ */ F({
2025
2127
  __name: "ForgeForm",
2026
2128
  props: {
2027
2129
  onSubmit: {},
@@ -2033,7 +2135,7 @@ const zt = { key: 0 }, Tt = {
2033
2135
  hideCancel: { type: Boolean, default: !1 }
2034
2136
  },
2035
2137
  setup(e) {
2036
- const t = e, a = I(!1), i = I({
2138
+ const t = e, a = _(!1), i = _({
2037
2139
  hasError: !1,
2038
2140
  message: ""
2039
2141
  });
@@ -2046,80 +2148,80 @@ const zt = { key: 0 }, Tt = {
2046
2148
  }
2047
2149
  a.value = !1;
2048
2150
  }
2049
- return (n, s) => {
2050
- const r = U;
2051
- return d(), b("form", S(n.$attrs, {
2151
+ return (n, o) => {
2152
+ const r = q;
2153
+ return d(), f("form", S(n.$attrs, {
2052
2154
  novalidate: "",
2053
2155
  class: "position-relative shadow-sm border p-4 bg-white",
2054
2156
  onSubmit: G(l, ["prevent"])
2055
2157
  }), [
2056
- n.hideTitle ? C("", !0) : (d(), b(N, { key: 0 }, [
2158
+ n.hideTitle ? C("", !0) : (d(), f(O, { key: 0 }, [
2057
2159
  k(n.$slots, "title", {}, () => [
2058
2160
  m("h3", {
2059
- class: F(n.titleClass),
2161
+ class: B(n.titleClass),
2060
2162
  "data-cy": "form-title"
2061
2163
  }, w(n.title), 3)
2062
2164
  ]),
2063
- s[1] || (s[1] = m("hr", null, null, -1))
2165
+ o[1] || (o[1] = m("hr", null, null, -1))
2064
2166
  ], 64)),
2065
- i.value.hasError ? (d(), f(se, {
2167
+ i.value.hasError ? (d(), v(se, {
2066
2168
  key: 1,
2067
2169
  severity: "danger",
2068
2170
  "data-cy": "error"
2069
2171
  }, {
2070
- default: g(() => [
2172
+ default: b(() => [
2071
2173
  k(n.$slots, "error", {
2072
2174
  error: i.value.message
2073
2175
  }, () => [
2074
- _(w(i.value.message), 1)
2176
+ I(w(i.value.message), 1)
2075
2177
  ])
2076
2178
  ]),
2077
2179
  _: 3
2078
2180
  })) : C("", !0),
2079
2181
  k(n.$slots, "default"),
2080
- m("div", Kt, [
2182
+ m("div", ea, [
2081
2183
  k(n.$slots, "cancel", {}, () => [
2082
- n.hideCancel ? C("", !0) : (d(), f(r, {
2184
+ n.hideCancel ? C("", !0) : (d(), v(r, {
2083
2185
  key: 0,
2084
2186
  "data-cy": "cancel-btn",
2085
2187
  type: "reset",
2086
2188
  severity: "secondary",
2087
2189
  outlined: "",
2088
- onClick: s[0] || (s[0] = (p) => n.$emit("cancel"))
2190
+ onClick: o[0] || (o[0] = (p) => n.$emit("cancel"))
2089
2191
  }, {
2090
- default: g(() => [
2091
- _(w(n.cancelText), 1)
2192
+ default: b(() => [
2193
+ I(w(n.cancelText), 1)
2092
2194
  ]),
2093
2195
  _: 1
2094
2196
  }))
2095
2197
  ]),
2096
2198
  k(n.$slots, "submit", { submit: l }, () => [
2097
- y(r, {
2199
+ x(r, {
2098
2200
  "data-cy": "submit-btn",
2099
2201
  type: "submit",
2100
2202
  severity: "primary",
2101
2203
  class: "ms-auto"
2102
2204
  }, {
2103
- default: g(() => [
2104
- _(w(n.submitText), 1)
2205
+ default: b(() => [
2206
+ I(w(n.submitText), 1)
2105
2207
  ]),
2106
2208
  _: 1
2107
2209
  })
2108
2210
  ])
2109
2211
  ]),
2110
- a.value ? (d(), f(ge, {
2212
+ a.value ? (d(), v(ge, {
2111
2213
  key: 2,
2112
2214
  "data-cy": "loading-spinner"
2113
2215
  })) : C("", !0)
2114
2216
  ], 16);
2115
2217
  };
2116
2218
  }
2117
- }), Zt = {
2219
+ }), ta = {
2118
2220
  key: 1,
2119
2221
  class: "d-flex flex-column w-100"
2120
- }, Xt = ["for"], Ai = /* @__PURE__ */ B({
2222
+ }, aa = ["for"], Yi = /* @__PURE__ */ F({
2121
2223
  __name: "ForgeFormField",
2122
- props: /* @__PURE__ */ E({
2224
+ props: /* @__PURE__ */ N({
2123
2225
  name: {},
2124
2226
  fieldLabelPosition: { default: "top" },
2125
2227
  fieldLabel: {},
@@ -2133,101 +2235,101 @@ const zt = { key: 0 }, Tt = {
2133
2235
  }),
2134
2236
  emits: ["update:modelValue"],
2135
2237
  setup(e) {
2136
- const t = D(e, "modelValue"), a = e, i = (x) => {
2137
- a.type == "number" ? r(x.value) : r(x);
2138
- }, { errors: l, value: n, errorMessage: s, handleChange: r, handleBlur: p } = ee(() => a.name, void 0, {
2238
+ const t = D(e, "modelValue"), a = e, i = (y) => {
2239
+ a.type == "number" ? r(y.value) : r(y);
2240
+ }, { errors: l, value: n, errorMessage: o, handleChange: r, handleBlur: p } = ee(() => a.name, void 0, {
2139
2241
  initialValue: t.value
2140
2242
  }), u = z(() => l.value.length > 0);
2141
- return ce(() => n.value, (x) => {
2142
- t.value = x;
2143
- }, { immediate: !0 }), (x, o) => {
2144
- const $ = Ve, j = Pe, V = ne, M = te, O = oe, v = be;
2145
- return a.type === "checkbox" ? (d(), f(fe, S({
2243
+ return ce(() => n.value, (y) => {
2244
+ t.value = y;
2245
+ }, { immediate: !0 }), (y, s) => {
2246
+ const $ = Ve, j = Pe, V = ne, M = te, U = oe, g = be;
2247
+ return a.type === "checkbox" ? (d(), v(fe, S({
2146
2248
  key: 0,
2147
2249
  id: a.name,
2148
2250
  label: a.fieldLabel
2149
- }, x.$attrs, {
2251
+ }, y.$attrs, {
2150
2252
  name: a.name,
2151
2253
  modelValue: t.value,
2152
- "onUpdate:modelValue": o[0] || (o[0] = (h) => t.value = h)
2153
- }), null, 16, ["id", "label", "name", "modelValue"])) : (d(), b("div", Zt, [
2254
+ "onUpdate:modelValue": s[0] || (s[0] = (h) => t.value = h)
2255
+ }), null, 16, ["id", "label", "name", "modelValue"])) : (d(), f("div", ta, [
2154
2256
  m("div", {
2155
2257
  "data-cy": "input-wrapper",
2156
- class: F(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
2258
+ class: B(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
2157
2259
  }, [
2158
2260
  m("label", {
2159
2261
  for: a.name,
2160
- class: F(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
2161
- }, w(a.fieldLabel), 11, Xt),
2162
- a.type === "number" ? (d(), f(c(ue), S({
2262
+ class: B(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
2263
+ }, w(a.fieldLabel), 11, aa),
2264
+ a.type === "number" ? (d(), v(c(ue), S({
2163
2265
  key: 0,
2164
2266
  id: a.name
2165
- }, x.$attrs, {
2267
+ }, y.$attrs, {
2166
2268
  placeholder: a.placeholder,
2167
2269
  "input-class": { "is-invalid": u.value },
2168
2270
  class: { "is-invalid": u.value },
2169
2271
  modelValue: t.value,
2170
- "onUpdate:modelValue": o[1] || (o[1] = (h) => t.value = h),
2272
+ "onUpdate:modelValue": s[1] || (s[1] = (h) => t.value = h),
2171
2273
  onInput: i
2172
- }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), f($, S({
2274
+ }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), v($, S({
2173
2275
  key: 1,
2174
2276
  id: a.name
2175
- }, x.$attrs, {
2277
+ }, y.$attrs, {
2176
2278
  placeholder: a.placeholder,
2177
2279
  class: { "is-invalid": u.value },
2178
2280
  modelValue: t.value,
2179
- "onUpdate:modelValue": o[2] || (o[2] = (h) => t.value = h),
2281
+ "onUpdate:modelValue": s[2] || (s[2] = (h) => t.value = h),
2180
2282
  onInput: i,
2181
2283
  onBlur: c(p)
2182
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), f(j, S({
2284
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), v(j, S({
2183
2285
  key: 2,
2184
2286
  id: a.name
2185
- }, x.$attrs, {
2287
+ }, y.$attrs, {
2186
2288
  placeholder: a.placeholder,
2187
2289
  mask: a.mask,
2188
2290
  class: { "is-invalid": u.value },
2189
2291
  modelValue: t.value,
2190
- "onUpdate:modelValue": o[3] || (o[3] = (h) => t.value = h),
2292
+ "onUpdate:modelValue": s[3] || (s[3] = (h) => t.value = h),
2191
2293
  onComplete: i,
2192
2294
  onBlur: c(p)
2193
- }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), f(V, S({
2295
+ }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), v(V, S({
2194
2296
  key: 3,
2195
2297
  id: a.name
2196
- }, x.$attrs, {
2298
+ }, y.$attrs, {
2197
2299
  placeholder: a.placeholder,
2198
2300
  class: { "is-invalid": u.value },
2199
2301
  modelValue: t.value,
2200
- "onUpdate:modelValue": o[4] || (o[4] = (h) => t.value = h),
2302
+ "onUpdate:modelValue": s[4] || (s[4] = (h) => t.value = h),
2201
2303
  onInput: i,
2202
2304
  onBlur: c(p)
2203
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), f(M, S({ key: 4 }, { ...a, ...x.$attrs }, {
2305
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), v(M, S({ key: 4 }, { ...a, ...y.$attrs }, {
2204
2306
  modelValue: t.value,
2205
- "onUpdate:modelValue": o[5] || (o[5] = (h) => t.value = h),
2307
+ "onUpdate:modelValue": s[5] || (s[5] = (h) => t.value = h),
2206
2308
  class: { "is-invalid": u.value }
2207
- }), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), f(O, S({ key: 5 }, { ...a, ...x.$attrs }, {
2309
+ }), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), v(U, S({ key: 5 }, { ...a, ...y.$attrs }, {
2208
2310
  modelValue: t.value,
2209
- "onUpdate:modelValue": o[6] || (o[6] = (h) => t.value = h),
2311
+ "onUpdate:modelValue": s[6] || (s[6] = (h) => t.value = h),
2210
2312
  class: { "is-invalid": u.value }
2211
- }), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), f(Et, S({ key: 6 }, { ...a, ...x.$attrs }, {
2313
+ }), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), v(Wt, S({ key: 6 }, { ...a, ...y.$attrs }, {
2212
2314
  modelValue: t.value,
2213
- "onUpdate:modelValue": o[7] || (o[7] = (h) => t.value = h),
2315
+ "onUpdate:modelValue": s[7] || (s[7] = (h) => t.value = h),
2214
2316
  class: { "is-invalid": u.value }
2215
- }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), f(v, S({ key: 7 }, { ...a, ...x.$attrs }, {
2317
+ }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), v(g, S({ key: 7 }, { ...a, ...y.$attrs }, {
2216
2318
  modelValue: t.value,
2217
- "onUpdate:modelValue": o[8] || (o[8] = (h) => t.value = h),
2319
+ "onUpdate:modelValue": s[8] || (s[8] = (h) => t.value = h),
2218
2320
  class: { "is-invalid": u.value }
2219
2321
  }), null, 16, ["modelValue", "class"])) : C("", !0)
2220
2322
  ], 2),
2221
2323
  H(m("small", {
2222
2324
  "data-cy": "error",
2223
2325
  class: "invalid-feedback"
2224
- }, w(c(s)), 513), [
2326
+ }, w(c(o)), 513), [
2225
2327
  [Y, u.value && a.type !== "multiselect" && a.type !== "datepicker"]
2226
2328
  ])
2227
2329
  ]));
2228
2330
  };
2229
2331
  }
2230
- }), qi = /* @__PURE__ */ B({
2332
+ }), Gi = /* @__PURE__ */ F({
2231
2333
  __name: "ForgeChip",
2232
2334
  props: {
2233
2335
  chipSeverity: { default: "primary" },
@@ -2262,15 +2364,15 @@ const zt = { key: 0 }, Tt = {
2262
2364
  }));
2263
2365
  return (i, l) => {
2264
2366
  const n = Me;
2265
- return d(), f(n, S({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
2266
- default: g(() => [
2267
- (d(!0), b(N, null, q(i.$slots, (s, r) => k(i.$slots, r, { slot: r })), 256))
2367
+ return d(), v(n, S({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
2368
+ default: b(() => [
2369
+ (d(!0), f(O, null, A(i.$slots, (o, r) => k(i.$slots, r, { slot: r })), 256))
2268
2370
  ]),
2269
2371
  _: 3
2270
2372
  }, 16, ["pt"]);
2271
2373
  };
2272
2374
  }
2273
- }), Qt = /* @__PURE__ */ B({
2375
+ }), ia = /* @__PURE__ */ F({
2274
2376
  __name: "ForgeProgressBar",
2275
2377
  props: {
2276
2378
  severity: { default: "primary" },
@@ -2313,18 +2415,18 @@ const zt = { key: 0 }, Tt = {
2313
2415
  class: [l.value, a.value, i.value, "progress-bar"]
2314
2416
  }
2315
2417
  }));
2316
- return (s, r) => {
2418
+ return (o, r) => {
2317
2419
  const p = De;
2318
- return d(), f(p, S({ ...s.$attrs, ...t }, { pt: n.value }), {
2319
- default: g(() => [
2320
- k(s.$slots, "default")
2420
+ return d(), v(p, S({ ...o.$attrs, ...t }, { pt: n.value }), {
2421
+ default: b(() => [
2422
+ k(o.$slots, "default")
2321
2423
  ]),
2322
2424
  _: 3
2323
2425
  }, 16, ["pt"]);
2324
2426
  };
2325
2427
  }
2326
2428
  });
2327
- var ea = /* @__PURE__ */ B({
2429
+ var la = /* @__PURE__ */ F({
2328
2430
  name: "VueDrawingCanvas",
2329
2431
  props: {
2330
2432
  strokeType: {
@@ -2636,14 +2738,14 @@ var ea = /* @__PURE__ */ B({
2636
2738
  });
2637
2739
  },
2638
2740
  wrapText(e, t, a, i, l, n) {
2639
- const s = /(\r\n|\n\r|\n|\r)+/g, r = /\s+/g;
2640
- var p = t.split(s).filter((M) => M.length > 0);
2741
+ const o = /(\r\n|\n\r|\n|\r)+/g, r = /\s+/g;
2742
+ var p = t.split(o).filter((M) => M.length > 0);
2641
2743
  for (let M = 0; M < p.length; M++) {
2642
- for (var u = p[M].split(r).filter((O) => O.length > 0), x = "", o = 0; o < u.length; o++) {
2643
- var $ = x + u[o] + " ", j = e.measureText($), V = j.width;
2644
- V > l && o > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(x, a, i) : e.fillText(x, a, i), x = u[o] + " ", i += n) : x = $;
2744
+ for (var u = p[M].split(r).filter((U) => U.length > 0), y = "", s = 0; s < u.length; s++) {
2745
+ var $ = y + u[s] + " ", j = e.measureText($), V = j.width;
2746
+ V > l && s > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(y, a, i) : e.fillText(y, a, i), y = u[s] + " ", i += n) : y = $;
2645
2747
  }
2646
- this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(x, a, i) : e.fillText(x, a, i), i += u.length > 0 ? n : 0;
2748
+ this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(y, a, i) : e.fillText(y, a, i), i += u.length > 0 ? n : 0;
2647
2749
  }
2648
2750
  },
2649
2751
  save() {
@@ -2663,20 +2765,20 @@ var ea = /* @__PURE__ */ B({
2663
2765
  const n = new Image();
2664
2766
  n.src = a.source, n.onload = () => {
2665
2767
  a && t && t.drawImage(n, a.x, a.y, Number(i), Number(l));
2666
- let s = document.createElement("canvas"), r = s.getContext("2d"), p = this.outputWidth === void 0 ? this.width : this.outputWidth, u = this.outputHeight === void 0 ? this.height : this.outputHeight;
2667
- if (s.width = Number(p), s.height = Number(u), r)
2668
- return r.drawImage(e, 0, 0, Number(p), Number(u)), this.$emit("update:image", s.toDataURL("image/" + this.saveAs, 1)), s.toDataURL("image/" + this.saveAs, 1);
2768
+ let o = document.createElement("canvas"), r = o.getContext("2d"), p = this.outputWidth === void 0 ? this.width : this.outputWidth, u = this.outputHeight === void 0 ? this.height : this.outputHeight;
2769
+ if (o.width = Number(p), o.height = Number(u), r)
2770
+ return r.drawImage(e, 0, 0, Number(p), Number(u)), this.$emit("update:image", o.toDataURL("image/" + this.saveAs, 1)), o.toDataURL("image/" + this.saveAs, 1);
2669
2771
  };
2670
2772
  } else if (a.type === "Text") {
2671
- let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start", n = a.fontStyle && a.fontStyle.textBaseline ? a.fontStyle.textBaseline : "alphabetic", s = a.fontStyle && a.fontStyle.color ? a.fontStyle.color : "#000000";
2773
+ let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start", n = a.fontStyle && a.fontStyle.textBaseline ? a.fontStyle.textBaseline : "alphabetic", o = a.fontStyle && a.fontStyle.color ? a.fontStyle.color : "#000000";
2672
2774
  if (t.font = i, t.textAlign = l, t.textBaseline = n, a.fontStyle && a.fontStyle.rotate) {
2673
- let o, $;
2674
- a.fontStyle && a.fontStyle.width ? o = a.x + Math.floor(a.fontStyle.width / 2) : o = a.x, a.fontStyle && a.fontStyle.lineHeight ? $ = a.y + Math.floor(a.fontStyle.lineHeight / 2) : $ = a.y, t.translate(o, $), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(o * -1, $ * -1);
2775
+ let s, $;
2776
+ a.fontStyle && a.fontStyle.width ? s = a.x + Math.floor(a.fontStyle.width / 2) : s = a.x, a.fontStyle && a.fontStyle.lineHeight ? $ = a.y + Math.floor(a.fontStyle.lineHeight / 2) : $ = a.y, t.translate(s, $), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(s * -1, $ * -1);
2675
2777
  }
2676
- a.fontStyle && a.fontStyle.drawType && a.fontStyle.drawType === "stroke" ? (t.strokeStyle = a.fontStyle.color, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.strokeText(a.source, a.x, a.y)) : (t.fillStyle = s, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.fillText(a.source, a.x, a.y));
2677
- let r = document.createElement("canvas"), p = r.getContext("2d"), u = this.outputWidth === void 0 ? this.width : this.outputWidth, x = this.outputHeight === void 0 ? this.height : this.outputHeight;
2678
- if (r.width = Number(u), r.height = Number(x), p)
2679
- return p.drawImage(e, 0, 0, Number(u), Number(x)), this.$emit("update:image", r.toDataURL("image/" + this.saveAs, 1)), r.toDataURL("image/" + this.saveAs, 1);
2778
+ a.fontStyle && a.fontStyle.drawType && a.fontStyle.drawType === "stroke" ? (t.strokeStyle = a.fontStyle.color, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.strokeText(a.source, a.x, a.y)) : (t.fillStyle = o, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.fillText(a.source, a.x, a.y));
2779
+ let r = document.createElement("canvas"), p = r.getContext("2d"), u = this.outputWidth === void 0 ? this.width : this.outputWidth, y = this.outputHeight === void 0 ? this.height : this.outputHeight;
2780
+ if (r.width = Number(u), r.height = Number(y), p)
2781
+ return p.drawImage(e, 0, 0, Number(u), Number(y)), this.$emit("update:image", r.toDataURL("image/" + this.saveAs, 1)), r.toDataURL("image/" + this.saveAs, 1);
2680
2782
  }
2681
2783
  },
2682
2784
  isEmpty() {
@@ -2714,7 +2816,7 @@ var ea = /* @__PURE__ */ B({
2714
2816
  });
2715
2817
  }
2716
2818
  });
2717
- const ta = { class: "d-flex flex-column" }, aa = { class: "d-flex flex-row mt-1 gap-1" }, Ei = /* @__PURE__ */ B({
2819
+ const na = { class: "d-flex flex-column" }, oa = { class: "d-flex flex-row mt-1 gap-1" }, Ji = /* @__PURE__ */ F({
2718
2820
  __name: "ForgeScratchpad",
2719
2821
  props: {
2720
2822
  showClear: { type: Boolean, default: !0 },
@@ -2727,7 +2829,7 @@ const ta = { class: "d-flex flex-column" }, aa = { class: "d-flex flex-row mt-1
2727
2829
  },
2728
2830
  emits: ["save"],
2729
2831
  setup(e, { emit: t }) {
2730
- const a = e, i = t, l = Fe("drawingCanvas"), n = I(), s = () => {
2832
+ const a = e, i = t, l = Fe("drawingCanvas"), n = _(), o = () => {
2731
2833
  l == null || l.value.reset();
2732
2834
  }, r = () => {
2733
2835
  l == null || l.value.redo();
@@ -2736,64 +2838,64 @@ const ta = { class: "d-flex flex-column" }, aa = { class: "d-flex flex-row mt-1
2736
2838
  }, u = () => {
2737
2839
  i("save", l.value.isEmpty());
2738
2840
  };
2739
- return (x, o) => {
2740
- const $ = U;
2741
- return d(), b("div", ta, [
2742
- y(c(ea), S({
2841
+ return (y, s) => {
2842
+ const $ = q;
2843
+ return d(), f("div", na, [
2844
+ x(c(la), S({
2743
2845
  ref_key: "drawingCanvas",
2744
2846
  ref: l,
2745
2847
  image: n.value,
2746
- "onUpdate:image": o[0] || (o[0] = (j) => n.value = j),
2848
+ "onUpdate:image": s[0] || (s[0] = (j) => n.value = j),
2747
2849
  "data-cy": "drawing-canvas",
2748
2850
  class: "border canvas"
2749
- }, { ...x.$attrs }, {
2750
- height: x.height,
2751
- width: x.width,
2752
- style: `height: ${x.height}px; width: ${x.width}px`,
2753
- "line-join": x.lineJoin
2851
+ }, { ...y.$attrs }, {
2852
+ height: y.height,
2853
+ width: y.width,
2854
+ style: `height: ${y.height}px; width: ${y.width}px`,
2855
+ "line-join": y.lineJoin
2754
2856
  }), null, 16, ["image", "height", "width", "style", "line-join"]),
2755
- m("div", aa, [
2756
- a.showUndo ? (d(), f($, {
2857
+ m("div", oa, [
2858
+ a.showUndo ? (d(), v($, {
2757
2859
  key: 0,
2758
2860
  onClick: p,
2759
2861
  outlined: "",
2760
2862
  "data-cy": "undo-button"
2761
2863
  }, {
2762
- default: g(() => o[1] || (o[1] = [
2763
- _("Undo")
2864
+ default: b(() => s[1] || (s[1] = [
2865
+ I("Undo")
2764
2866
  ])),
2765
2867
  _: 1
2766
2868
  })) : C("", !0),
2767
- a.showRedo ? (d(), f($, {
2869
+ a.showRedo ? (d(), v($, {
2768
2870
  key: 1,
2769
2871
  onClick: r,
2770
2872
  outlined: "",
2771
2873
  "data-cy": "redo-button"
2772
2874
  }, {
2773
- default: g(() => o[2] || (o[2] = [
2774
- _("Redo")
2875
+ default: b(() => s[2] || (s[2] = [
2876
+ I("Redo")
2775
2877
  ])),
2776
2878
  _: 1
2777
2879
  })) : C("", !0),
2778
- a.showClear ? (d(), f($, {
2880
+ a.showClear ? (d(), v($, {
2779
2881
  key: 2,
2780
- onClick: s,
2882
+ onClick: o,
2781
2883
  outlined: "",
2782
2884
  "data-cy": "clear-button"
2783
2885
  }, {
2784
- default: g(() => o[3] || (o[3] = [
2785
- _("Clear")
2886
+ default: b(() => s[3] || (s[3] = [
2887
+ I("Clear")
2786
2888
  ])),
2787
2889
  _: 1
2788
2890
  })) : C("", !0),
2789
- a.showSave ? (d(), f($, {
2891
+ a.showSave ? (d(), v($, {
2790
2892
  key: 3,
2791
2893
  onClick: u,
2792
2894
  class: "ms-auto",
2793
2895
  "data-cy": "save-button"
2794
2896
  }, {
2795
- default: g(() => o[4] || (o[4] = [
2796
- _("Save")
2897
+ default: b(() => s[4] || (s[4] = [
2898
+ I("Save")
2797
2899
  ])),
2798
2900
  _: 1
2799
2901
  })) : C("", !0)
@@ -2801,7 +2903,7 @@ const ta = { class: "d-flex flex-column" }, aa = { class: "d-flex flex-row mt-1
2801
2903
  ]);
2802
2904
  };
2803
2905
  }
2804
- }), ia = { class: "value text-white w-100 text-center" }, Li = /* @__PURE__ */ B({
2906
+ }), sa = { class: "value text-white w-100 text-center" }, Ki = /* @__PURE__ */ F({
2805
2907
  __name: "ForgeStatWidget",
2806
2908
  props: {
2807
2909
  size: { default: "md" },
@@ -2809,15 +2911,15 @@ const ta = { class: "d-flex flex-column" }, aa = { class: "d-flex flex-row mt-1
2809
2911
  },
2810
2912
  setup(e) {
2811
2913
  const t = e;
2812
- return (a, i) => (d(), b("div", S(a.$attrs, {
2914
+ return (a, i) => (d(), f("div", S(a.$attrs, {
2813
2915
  class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
2814
2916
  }), [
2815
- m("span", ia, [
2917
+ m("span", sa, [
2816
2918
  k(a.$slots, "default")
2817
2919
  ])
2818
2920
  ], 16));
2819
2921
  }
2820
- }), la = { key: 0 }, Ri = /* @__PURE__ */ B({
2922
+ }), ra = { key: 0 }, Zi = /* @__PURE__ */ F({
2821
2923
  __name: "ForgeStepper",
2822
2924
  props: {
2823
2925
  currentStep: { default: 1 },
@@ -2864,31 +2966,31 @@ const ta = { class: "d-flex flex-column" }, aa = { class: "d-flex flex-row mt-1
2864
2966
  ]
2865
2967
  })
2866
2968
  }));
2867
- return (i, l) => (d(), f(c(Ne), { value: i.currentStep }, {
2868
- default: g(() => [
2869
- y(c(Ue), null, {
2870
- default: g(() => [
2871
- (d(!0), b(N, null, q(i.steps, (n) => (d(), f(c(Oe), S({
2969
+ return (i, l) => (d(), v(c(Ne), { value: i.currentStep }, {
2970
+ default: b(() => [
2971
+ x(c(Ue), null, {
2972
+ default: b(() => [
2973
+ (d(!0), f(O, null, A(i.steps, (n) => (d(), v(c(Oe), S({
2872
2974
  key: n.value,
2873
2975
  value: n.value,
2874
2976
  disabled: n.disabled,
2875
2977
  ref_for: !0
2876
2978
  }, { ...i.$attrs }, { pt: a.value }), {
2877
- default: g(() => [
2878
- i.showStepLabel ? (d(), b("div", la, w(n.label), 1)) : C("", !0)
2979
+ default: b(() => [
2980
+ i.showStepLabel ? (d(), f("div", ra, w(n.label), 1)) : C("", !0)
2879
2981
  ]),
2880
2982
  _: 2
2881
2983
  }, 1040, ["value", "disabled", "pt"]))), 128))
2882
2984
  ]),
2883
2985
  _: 1
2884
2986
  }),
2885
- y(c(qe), null, {
2886
- default: g(() => [
2887
- (d(!0), b(N, null, q(i.steps, (n) => (d(), f(c(Ae), {
2987
+ x(c(qe), null, {
2988
+ default: b(() => [
2989
+ (d(!0), f(O, null, A(i.steps, (n) => (d(), v(c(Ae), {
2888
2990
  key: n.value,
2889
2991
  value: n.value
2890
2992
  }, {
2891
- default: g(() => [
2993
+ default: b(() => [
2892
2994
  k(i.$slots, "step" + n.value)
2893
2995
  ]),
2894
2996
  _: 2
@@ -2900,7 +3002,7 @@ const ta = { class: "d-flex flex-column" }, aa = { class: "d-flex flex-row mt-1
2900
3002
  _: 3
2901
3003
  }, 8, ["value"]));
2902
3004
  }
2903
- }), na = { class: "p-4 text-wrap w-100" }, oa = { class: "p-4 text-wrap w-100" }, Hi = /* @__PURE__ */ B({
3005
+ }), da = { class: "p-4 text-wrap w-100" }, pa = { class: "p-4 text-wrap w-100" }, Xi = /* @__PURE__ */ F({
2904
3006
  __name: "ForgeTile",
2905
3007
  props: {
2906
3008
  severity: { default: "primary" },
@@ -2911,30 +3013,30 @@ const ta = { class: "d-flex flex-column" }, aa = { class: "d-flex flex-row mt-1
2911
3013
  setup(e) {
2912
3014
  const t = e, a = z(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), i = z(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
2913
3015
  return (l, n) => {
2914
- const s = U;
2915
- return t.clickable ? (d(), f(s, {
3016
+ const o = q;
3017
+ return t.clickable ? (d(), v(o, {
2916
3018
  key: 0,
2917
- class: F(["d-flex w-100 p-0 text-body", a.value]),
3019
+ class: B(["d-flex w-100 p-0 text-body", a.value]),
2918
3020
  severity: t.severity,
2919
3021
  unstyled: "",
2920
3022
  "data-cy": "button-tile"
2921
3023
  }, {
2922
- default: g(() => [
2923
- m("div", na, [
3024
+ default: b(() => [
3025
+ m("div", da, [
2924
3026
  k(l.$slots, "default", {}, () => [
2925
- n[0] || (n[0] = _("Tile Content"))
3027
+ n[0] || (n[0] = I("Tile Content"))
2926
3028
  ])
2927
3029
  ])
2928
3030
  ]),
2929
3031
  _: 3
2930
- }, 8, ["severity", "class"])) : (d(), b("div", {
3032
+ }, 8, ["severity", "class"])) : (d(), f("div", {
2931
3033
  key: 1,
2932
- class: F(["d-flex w-100", i.value]),
3034
+ class: B(["d-flex w-100", i.value]),
2933
3035
  "data-cy": "tile"
2934
3036
  }, [
2935
- m("div", oa, [
3037
+ m("div", pa, [
2936
3038
  k(l.$slots, "default", {}, () => [
2937
- n[1] || (n[1] = _("Tile Content"))
3039
+ n[1] || (n[1] = I("Tile Content"))
2938
3040
  ])
2939
3041
  ])
2940
3042
  ], 2));
@@ -2944,13 +3046,13 @@ const ta = { class: "d-flex flex-column" }, aa = { class: "d-flex flex-row mt-1
2944
3046
  function Q(e, t) {
2945
3047
  return e > 1 ? `${t}s` : t;
2946
3048
  }
2947
- const sa = {
3049
+ const ca = {
2948
3050
  class: "d-flex justify-content-start align-items-baseline",
2949
3051
  "data-cy": "pagination-header"
2950
- }, ra = { class: "ms-2" }, da = { key: 0 }, pa = {
3052
+ }, ua = { class: "ms-2" }, ma = { key: 0 }, va = {
2951
3053
  class: "w-auto",
2952
3054
  "data-cy": "total"
2953
- }, ca = /* @__PURE__ */ B({
3055
+ }, fa = /* @__PURE__ */ F({
2954
3056
  __name: "ForgePaginationHeader",
2955
3057
  props: {
2956
3058
  total: {},
@@ -2959,32 +3061,32 @@ const sa = {
2959
3061
  },
2960
3062
  emits: ["update:perPage"],
2961
3063
  setup(e, { emit: t }) {
2962
- const a = t, i = e, l = (s) => {
2963
- a("update:perPage", s.value);
3064
+ const a = t, i = e, l = (o) => {
3065
+ a("update:perPage", o.value);
2964
3066
  }, n = z(() => {
2965
- const s = Math.ceil(i.total / i.perPage);
2966
- return `${s} ${Q(s, "page")}`;
3067
+ const o = Math.ceil(i.total / i.perPage);
3068
+ return `${o} ${Q(o, "page")}`;
2967
3069
  });
2968
- return (s, r) => (d(), b("div", sa, [
2969
- r[2] || (r[2] = _(" Number of results per page ")),
2970
- m("div", ra, [
2971
- y(c(te), {
3070
+ return (o, r) => (d(), f("div", ca, [
3071
+ r[2] || (r[2] = I(" Number of results per page ")),
3072
+ m("div", ua, [
3073
+ x(c(te), {
2972
3074
  options: i.pageSizes,
2973
3075
  "model-value": i.perPage,
2974
3076
  class: "page-size",
2975
3077
  onChange: r[0] || (r[0] = (p) => l(p))
2976
3078
  }, null, 8, ["options", "model-value"])
2977
3079
  ]),
2978
- i.total ? (d(), b("div", da, [
3080
+ i.total ? (d(), f("div", ma, [
2979
3081
  r[1] || (r[1] = m("span", { class: "mx-2" }, "|", -1)),
2980
- m("span", pa, w(i.total) + " " + w(c(Q)(i.total, "result")) + " across " + w(n.value), 1)
3082
+ m("span", va, w(i.total) + " " + w(c(Q)(i.total, "result")) + " across " + w(n.value), 1)
2981
3083
  ])) : C("", !0)
2982
3084
  ]));
2983
3085
  }
2984
- }), ua = { class: "position-relative" }, ma = { "data-cy": "above-table-slot" }, va = { class: "d-flex w-100" }, fa = {
3086
+ }), ga = { class: "position-relative" }, ba = { "data-cy": "above-table-slot" }, ya = { class: "d-flex w-100" }, xa = {
2985
3087
  class: "mx-auto",
2986
3088
  "data-cy": "empty-message"
2987
- }, ga = { class: "d-flex" }, ba = { class: "d-flex align-items-end mb-2" }, xa = { key: 0 }, ya = { class: "ms-auto" }, Wi = /* @__PURE__ */ B({
3089
+ }, ha = { class: "d-flex" }, wa = { class: "d-flex align-items-end mb-2" }, ka = { key: 0 }, $a = { class: "ms-auto" }, Qi = /* @__PURE__ */ F({
2988
3090
  __name: "ForgeTable",
2989
3091
  props: {
2990
3092
  value: {},
@@ -3070,17 +3172,17 @@ const sa = {
3070
3172
  },
3071
3173
  emits: ["update:filters", "update:tableContext", "sort", "page"],
3072
3174
  setup(e, { emit: t }) {
3073
- const a = t, i = e, l = I(), n = I([5, 10, 20, 50, 100]), s = I(10), r = I({
3175
+ const a = t, i = e, l = _(), n = _([5, 10, 20, 50, 100]), o = _(10), r = _({
3074
3176
  filters: i.filters,
3075
- perPage: s.value,
3177
+ perPage: o.value,
3076
3178
  page: 0,
3077
3179
  sortDirection: "None",
3078
3180
  sortField: "",
3079
3181
  total: i.totalRecords ?? i.value.length
3080
3182
  }), p = z(() => i.totalRecords ?? i.value.length), u = z(() => {
3081
- const v = Math.ceil(p.value / s.value);
3082
- return `${v} ${Q(v, "page")}`;
3083
- }), x = z(() => ({
3183
+ const g = Math.ceil(p.value / o.value);
3184
+ return `${g} ${Q(g, "page")}`;
3185
+ }), y = z(() => ({
3084
3186
  thead: () => ({
3085
3187
  class: [
3086
3188
  {
@@ -3102,36 +3204,36 @@ const sa = {
3102
3204
  }
3103
3205
  ]
3104
3206
  })
3105
- })), o = () => {
3207
+ })), s = () => {
3106
3208
  if (i.clearAll)
3107
3209
  i.clearAll();
3108
3210
  else
3109
- for (const v in i.filters)
3110
- typeof i.filters[v] == "string" ? i.filters[v] = "" : i.filters[v].value = null;
3211
+ for (const g in i.filters)
3212
+ typeof i.filters[g] == "string" ? i.filters[g] = "" : i.filters[g].value = null;
3111
3213
  V(i.filters);
3112
3214
  }, $ = () => {
3113
3215
  l.value.exportCSV();
3114
- }, j = (v) => {
3216
+ }, j = (g) => {
3115
3217
  var h;
3116
- r.value.sortDirection = v.sortOrder === 1 ? "Asc" : v.sortOrder === -1 ? "Desc" : "None", r.value.sortField = ((h = v.sortField) == null ? void 0 : h.toString()) ?? "", a("update:tableContext", r.value), a("sort", v);
3117
- }, V = (v) => {
3118
- r.value.filters = v, a("update:tableContext", r.value), a("update:filters", v);
3119
- }, M = (v) => {
3120
- r.value.page = v.page, a("update:tableContext", r.value), a("page", v);
3121
- }, O = () => {
3122
- r.value.perPage = s.value, a("update:tableContext", r.value);
3218
+ r.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", r.value.sortField = ((h = g.sortField) == null ? void 0 : h.toString()) ?? "", a("update:tableContext", r.value), a("sort", g);
3219
+ }, V = (g) => {
3220
+ r.value.filters = g, a("update:tableContext", r.value), a("update:filters", g);
3221
+ }, M = (g) => {
3222
+ r.value.page = g.page, a("update:tableContext", r.value), a("page", g);
3223
+ }, U = () => {
3224
+ r.value.perPage = o.value, a("update:tableContext", r.value);
3123
3225
  };
3124
- return ce(() => i.filters, (v) => {
3125
- r.value.filters = v, a("update:tableContext", r.value);
3126
- }, { deep: !0 }), le(() => a("update:tableContext", r.value)), (v, h) => (d(), b("div", ua, [
3127
- m("span", ma, [
3128
- k(v.$slots, "above-table")
3226
+ return ce(() => i.filters, (g) => {
3227
+ r.value.filters = g, a("update:tableContext", r.value);
3228
+ }, { deep: !0 }), le(() => a("update:tableContext", r.value)), (g, h) => (d(), f("div", ga, [
3229
+ m("span", ba, [
3230
+ k(g.$slots, "above-table")
3129
3231
  ]),
3130
- y(c(Ee), S({
3232
+ x(c(Ee), S({
3131
3233
  class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
3132
- }, { ...i, ...v.$attrs }, {
3133
- pt: x.value,
3134
- rows: s.value,
3234
+ }, { ...i, ...g.$attrs }, {
3235
+ pt: y.value,
3236
+ rows: o.value,
3135
3237
  "total-records": p.value,
3136
3238
  "filter-display": i.filters ? "row" : void 0,
3137
3239
  ref_key: "forgeTable",
@@ -3142,104 +3244,104 @@ const sa = {
3142
3244
  onPage: M,
3143
3245
  showHeaders: ""
3144
3246
  }), ie({
3145
- empty: g(() => [
3146
- m("div", va, [
3147
- m("h5", fa, w(v.emptyMessage ?? "No items Found."), 1)
3247
+ empty: b(() => [
3248
+ m("div", ya, [
3249
+ m("h5", xa, w(g.emptyMessage ?? "No items Found."), 1)
3148
3250
  ])
3149
3251
  ]),
3150
- header: g(() => [
3252
+ header: b(() => [
3151
3253
  m("div", {
3152
- class: F(i.loading ? "opacity-50" : "")
3254
+ class: B(i.loading ? "opacity-50" : "")
3153
3255
  }, [
3154
- m("div", ga, [
3155
- m("div", ba, [
3156
- v.paginator && !v.legacyPaginationFooter ? (d(), b("span", xa, [
3157
- y(ca, {
3256
+ m("div", ha, [
3257
+ m("div", wa, [
3258
+ g.paginator && !g.legacyPaginationFooter ? (d(), f("span", ka, [
3259
+ x(fa, {
3158
3260
  total: p.value,
3159
3261
  "page-sizes": n.value,
3160
- "per-page": s.value,
3262
+ "per-page": o.value,
3161
3263
  "onUpdate:perPage": [
3162
- h[0] || (h[0] = (P) => s.value = P),
3163
- O
3264
+ h[0] || (h[0] = (P) => o.value = P),
3265
+ U
3164
3266
  ]
3165
3267
  }, null, 8, ["total", "page-sizes", "per-page"])
3166
3268
  ])) : C("", !0)
3167
3269
  ]),
3168
- m("div", ya, [
3169
- v.showClearButton ? (d(), f(c(U), {
3270
+ m("div", $a, [
3271
+ g.showClearButton ? (d(), v(c(q), {
3170
3272
  key: 0,
3171
3273
  outlined: "",
3172
- class: F(v.showExporterButton ? "me-2" : ""),
3173
- onClick: o,
3274
+ class: B(g.showExporterButton ? "me-2" : ""),
3275
+ onClick: s,
3174
3276
  "data-cy": "clear-all"
3175
3277
  }, {
3176
- default: g(() => [
3177
- y(c(T), {
3278
+ default: b(() => [
3279
+ x(c(T), {
3178
3280
  icon: "bi:funnel-fill",
3179
3281
  width: "24",
3180
3282
  height: "24"
3181
3283
  }),
3182
- h[2] || (h[2] = _(" Clear "))
3284
+ h[2] || (h[2] = I(" Clear "))
3183
3285
  ]),
3184
3286
  _: 1
3185
3287
  }, 8, ["class"])) : C("", !0),
3186
- v.showExporterButton ? (d(), f(c(U), {
3288
+ g.showExporterButton ? (d(), v(c(q), {
3187
3289
  key: 1,
3188
3290
  outlined: "",
3189
3291
  onClick: $,
3190
3292
  "data-cy": "exporter"
3191
3293
  }, {
3192
- default: g(() => [
3193
- y(c(T), {
3294
+ default: b(() => [
3295
+ x(c(T), {
3194
3296
  icon: "typcn:export",
3195
3297
  width: "24",
3196
3298
  height: "24"
3197
3299
  }),
3198
- h[3] || (h[3] = _(" Export "))
3300
+ h[3] || (h[3] = I(" Export "))
3199
3301
  ]),
3200
3302
  _: 1
3201
3303
  })) : C("", !0),
3202
- k(v.$slots, "column-customiser")
3304
+ k(g.$slots, "column-customiser")
3203
3305
  ])
3204
3306
  ])
3205
3307
  ], 2)
3206
3308
  ]),
3207
- default: g(() => [
3208
- k(v.$slots, "default")
3309
+ default: b(() => [
3310
+ k(g.$slots, "default")
3209
3311
  ]),
3210
3312
  _: 2
3211
3313
  }, [
3212
- q(v.$slots, (P, L) => ({
3314
+ A(g.$slots, (P, L) => ({
3213
3315
  name: L,
3214
- fn: g((ae) => [
3215
- k(v.$slots, L, K(Z(ae || {})))
3316
+ fn: b((ae) => [
3317
+ k(g.$slots, L, K(Z(ae || {})))
3216
3318
  ])
3217
3319
  })),
3218
- v.legacyPaginationFooter ? {
3320
+ g.legacyPaginationFooter ? {
3219
3321
  name: "paginatorstart",
3220
- fn: g(() => [
3322
+ fn: b(() => [
3221
3323
  m("span", {
3222
- class: F(["d-flex", i.loading ? "opacity-50" : ""]),
3324
+ class: B(["d-flex", i.loading ? "opacity-50" : ""]),
3223
3325
  "data-cy": "legacy-page-size"
3224
3326
  }, [
3225
3327
  h[4] || (h[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
3226
- y(c(te), {
3328
+ x(c(te), {
3227
3329
  options: n.value,
3228
- modelValue: s.value,
3229
- "onUpdate:modelValue": h[1] || (h[1] = (P) => s.value = P),
3330
+ modelValue: o.value,
3331
+ "onUpdate:modelValue": h[1] || (h[1] = (P) => o.value = P),
3230
3332
  class: "ms-2",
3231
- onClick: O
3333
+ onClick: U
3232
3334
  }, null, 8, ["options", "modelValue"])
3233
3335
  ], 2)
3234
3336
  ]),
3235
3337
  key: "0"
3236
3338
  } : void 0,
3237
- v.legacyPaginationFooter ? {
3339
+ g.legacyPaginationFooter ? {
3238
3340
  name: "paginatorend",
3239
- fn: g(() => [
3341
+ fn: b(() => [
3240
3342
  m("span", {
3241
3343
  "data-cy": "legacy-total",
3242
- class: F(i.loading ? "opacity-50" : "")
3344
+ class: B(i.loading ? "opacity-50" : "")
3243
3345
  }, w(p.value) + " " + w(c(Q)(p.value, "result")) + " across " + w(u.value), 3)
3244
3346
  ]),
3245
3347
  key: "1"
@@ -3247,9 +3349,9 @@ const sa = {
3247
3349
  ]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
3248
3350
  ]));
3249
3351
  }
3250
- }), ha = { class: "d-flex position-relative" }, wa = { class: "d-flex w-100" }, Yi = /* @__PURE__ */ B({
3352
+ }), Fa = { class: "d-flex position-relative" }, Ba = { class: "d-flex w-100" }, el = /* @__PURE__ */ F({
3251
3353
  __name: "ForgeFilterHeader",
3252
- props: /* @__PURE__ */ E({
3354
+ props: /* @__PURE__ */ N({
3253
3355
  dataType: {},
3254
3356
  dropdownOptions: {},
3255
3357
  showClearButton: { type: Boolean, default: !1 },
@@ -3265,32 +3367,32 @@ const sa = {
3265
3367
  const t = D(e, "modelValue"), a = (l, n) => {
3266
3368
  if (!l || Array.isArray(l) && l.length === 0)
3267
3369
  return n;
3268
- const s = (r) => {
3370
+ const o = (r) => {
3269
3371
  var u;
3270
3372
  const p = (u = e.dropdownOptions) == null ? void 0 : u.find(
3271
- (x) => e.optionValue ? x[e.optionValue] === r : Object.keys(x).every((o) => r.hasOwnProperty(o) && x[o] === r[o])
3373
+ (y) => e.optionValue ? y[e.optionValue] === r : Object.keys(y).every((s) => r.hasOwnProperty(s) && y[s] === r[s])
3272
3374
  );
3273
3375
  return e.optionLabel ? p[e.optionLabel] : p;
3274
3376
  };
3275
- return Array.isArray(l) ? l.map(s).join(", ") : s(l);
3377
+ return Array.isArray(l) ? l.map(o).join(", ") : o(l);
3276
3378
  }, i = () => {
3277
3379
  e.clearFilter ? e.clearFilter() : t.value = null;
3278
3380
  };
3279
3381
  return (l, n) => {
3280
- const s = ue, r = U;
3281
- return d(), b("div", ha, [
3282
- l.dataType === "numeric" ? (d(), f(s, S({
3382
+ const o = ue, r = q;
3383
+ return d(), f("div", Fa, [
3384
+ l.dataType === "numeric" ? (d(), v(o, S({
3283
3385
  key: 0,
3284
3386
  modelValue: t.value,
3285
3387
  "onUpdate:modelValue": n[0] || (n[0] = (p) => t.value = p)
3286
- }, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(), f(be, S({
3388
+ }, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(), v(be, S({
3287
3389
  key: 1,
3288
3390
  modelValue: t.value,
3289
3391
  "onUpdate:modelValue": n[1] || (n[1] = (p) => t.value = p)
3290
3392
  }, l.$attrs, {
3291
3393
  "show-icon": !1,
3292
3394
  "show-on-focus": !0
3293
- }), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), f(c(te), S({
3395
+ }), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), v(c(te), S({
3294
3396
  key: 2,
3295
3397
  modelValue: t.value,
3296
3398
  "onUpdate:modelValue": n[2] || (n[2] = (p) => t.value = p)
@@ -3299,19 +3401,19 @@ const sa = {
3299
3401
  "option-value": l.optionValue,
3300
3402
  "option-label": l.optionLabel
3301
3403
  }), {
3302
- value: g(({ value: p, placeholder: u }) => [
3303
- m("div", wa, [
3404
+ value: b(({ value: p, placeholder: u }) => [
3405
+ m("div", Ba, [
3304
3406
  m("span", {
3305
- class: F({ "filter-placeholder": p === null })
3407
+ class: B({ "filter-placeholder": p === null })
3306
3408
  }, w(a(p, u)), 3),
3307
- l.showClearButton && t.value !== null ? (d(), f(r, {
3409
+ l.showClearButton && t.value !== null ? (d(), v(r, {
3308
3410
  key: 0,
3309
3411
  onClick: G(i, ["prevent"]),
3310
3412
  size: "small",
3311
3413
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
3312
3414
  }, {
3313
- default: g(() => [
3314
- y(c(T), {
3415
+ default: b(() => [
3416
+ x(c(T), {
3315
3417
  icon: "bi:x",
3316
3418
  width: "1rem",
3317
3419
  height: "1rem",
@@ -3323,7 +3425,7 @@ const sa = {
3323
3425
  ])
3324
3426
  ]),
3325
3427
  _: 1
3326
- }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), f(c(oe), S({
3428
+ }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), v(c(oe), S({
3327
3429
  key: 3,
3328
3430
  modelValue: t.value,
3329
3431
  "onUpdate:modelValue": n[3] || (n[3] = (p) => t.value = p)
@@ -3333,19 +3435,19 @@ const sa = {
3333
3435
  "option-label": l.optionLabel,
3334
3436
  "option-value": l.optionValue,
3335
3437
  filter: ""
3336
- }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), f(c(ne), S({
3438
+ }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), v(c(ne), S({
3337
3439
  key: 4,
3338
3440
  modelValue: t.value,
3339
3441
  "onUpdate:modelValue": n[4] || (n[4] = (p) => t.value = p)
3340
3442
  }, l.$attrs), null, 16, ["modelValue"])),
3341
- l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (d(), f(r, {
3443
+ l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (d(), v(r, {
3342
3444
  key: 5,
3343
3445
  onClick: G(i, ["prevent"]),
3344
3446
  size: "small",
3345
3447
  class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
3346
3448
  }, {
3347
- default: g(() => [
3348
- y(c(T), {
3449
+ default: b(() => [
3450
+ x(c(T), {
3349
3451
  icon: "bi:x",
3350
3452
  width: "1rem",
3351
3453
  height: "1rem",
@@ -4410,12 +4512,12 @@ const de = {
4410
4512
  "video/webm": ["webm"]
4411
4513
  };
4412
4514
  Object.freeze(de);
4413
- var A = function(e, t, a, i) {
4515
+ var E = function(e, t, a, i) {
4414
4516
  if (a === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
4415
4517
  if (typeof t == "function" ? e !== t || !i : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4416
4518
  return a === "m" ? i : a === "a" ? i.call(e) : i ? i.value : t.get(e);
4417
4519
  }, W, J, R;
4418
- class xe {
4520
+ class ye {
4419
4521
  constructor(...t) {
4420
4522
  W.set(this, /* @__PURE__ */ new Map()), J.set(this, /* @__PURE__ */ new Map()), R.set(this, /* @__PURE__ */ new Map());
4421
4523
  for (const a of t)
@@ -4423,17 +4525,17 @@ class xe {
4423
4525
  }
4424
4526
  define(t, a = !1) {
4425
4527
  for (let [i, l] of Object.entries(t)) {
4426
- i = i.toLowerCase(), l = l.map((r) => r.toLowerCase()), A(this, R, "f").has(i) || A(this, R, "f").set(i, /* @__PURE__ */ new Set());
4427
- const n = A(this, R, "f").get(i);
4428
- let s = !0;
4528
+ i = i.toLowerCase(), l = l.map((r) => r.toLowerCase()), E(this, R, "f").has(i) || E(this, R, "f").set(i, /* @__PURE__ */ new Set());
4529
+ const n = E(this, R, "f").get(i);
4530
+ let o = !0;
4429
4531
  for (let r of l) {
4430
4532
  const p = r.startsWith("*");
4431
- if (r = p ? r.slice(1) : r, n == null || n.add(r), s && A(this, J, "f").set(i, r), s = !1, p)
4533
+ if (r = p ? r.slice(1) : r, n == null || n.add(r), o && E(this, J, "f").set(i, r), o = !1, p)
4432
4534
  continue;
4433
- const u = A(this, W, "f").get(r);
4535
+ const u = E(this, W, "f").get(r);
4434
4536
  if (u && u != i && !a)
4435
4537
  throw new Error(`"${i} -> ${r}" conflicts with "${u} -> ${r}". Pass \`force=true\` to override this definition.`);
4436
- A(this, W, "f").set(r, i);
4538
+ E(this, W, "f").set(r, i);
4437
4539
  }
4438
4540
  }
4439
4541
  return this;
@@ -4442,45 +4544,45 @@ class xe {
4442
4544
  if (typeof t != "string")
4443
4545
  return null;
4444
4546
  const a = t.replace(/^.*[/\\]/, "").toLowerCase(), i = a.replace(/^.*\./, "").toLowerCase(), l = a.length < t.length;
4445
- return !(i.length < a.length - 1) && l ? null : A(this, W, "f").get(i) ?? null;
4547
+ return !(i.length < a.length - 1) && l ? null : E(this, W, "f").get(i) ?? null;
4446
4548
  }
4447
4549
  getExtension(t) {
4448
4550
  var a;
4449
- return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t && A(this, J, "f").get(t.trim().toLowerCase())) ?? null);
4551
+ return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t && E(this, J, "f").get(t.trim().toLowerCase())) ?? null);
4450
4552
  }
4451
4553
  getAllExtensions(t) {
4452
- return typeof t != "string" ? null : A(this, R, "f").get(t.toLowerCase()) ?? null;
4554
+ return typeof t != "string" ? null : E(this, R, "f").get(t.toLowerCase()) ?? null;
4453
4555
  }
4454
4556
  _freeze() {
4455
4557
  this.define = () => {
4456
4558
  throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
4457
4559
  }, Object.freeze(this);
4458
- for (const t of A(this, R, "f").values())
4560
+ for (const t of E(this, R, "f").values())
4459
4561
  Object.freeze(t);
4460
4562
  return this;
4461
4563
  }
4462
4564
  _getTestState() {
4463
4565
  return {
4464
- types: A(this, W, "f"),
4465
- extensions: A(this, J, "f")
4566
+ types: E(this, W, "f"),
4567
+ extensions: E(this, J, "f")
4466
4568
  };
4467
4569
  }
4468
4570
  }
4469
4571
  W = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap();
4470
- const ka = new xe(de, re)._freeze();
4471
- function ye(e, t, a, i) {
4572
+ const Sa = new ye(de, re)._freeze();
4573
+ function xe(e, t, a, i) {
4472
4574
  const l = t.flatMap((n) => n.file);
4473
4575
  return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
4474
- const s = l.findIndex((p) => p.name === n.name);
4576
+ const o = l.findIndex((p) => p.name === n.name);
4475
4577
  let r = "Not Uploaded";
4476
- s === -1 ? ((!a.includes(n.type) || !(n.size <= i)) && (r = a.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
4578
+ o === -1 ? ((!a.includes(n.type) || !(n.size <= i)) && (r = a.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
4477
4579
  file: n,
4478
4580
  status: r,
4479
4581
  blobFileName: null
4480
- })) : t[s].status = "Duplicate";
4582
+ })) : t[o].status = "Duplicate";
4481
4583
  }), t;
4482
4584
  }
4483
- async function $a(e, t) {
4585
+ async function Ca(e, t) {
4484
4586
  if (e === "Uploaded" && t !== null)
4485
4587
  try {
4486
4588
  await new me(t).delete();
@@ -4497,28 +4599,28 @@ function pe(e, t = !0, a = 1) {
4497
4599
  return e + " B";
4498
4600
  const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
4499
4601
  let n = -1;
4500
- const s = 10 ** a;
4602
+ const o = 10 ** a;
4501
4603
  do
4502
4604
  e /= i, ++n;
4503
- while (Math.round(Math.abs(e) * s) / s >= i && n < l.length - 1);
4605
+ while (Math.round(Math.abs(e) * o) / o >= i && n < l.length - 1);
4504
4606
  return e.toFixed(a) + " " + l[n];
4505
4607
  }
4506
- function Fa(e) {
4608
+ function za(e) {
4507
4609
  return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
4508
4610
  }
4509
- function Ba(e) {
4611
+ function Ta(e) {
4510
4612
  return URL.createObjectURL(e);
4511
4613
  }
4512
- function Sa() {
4513
- const e = new xe(de, re);
4614
+ function ja() {
4615
+ const e = new ye(de, re);
4514
4616
  return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
4515
4617
  }
4516
- const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disabled", "multiple"], Ta = {
4618
+ const _a = { class: "d-flex justify-content-between" }, Ia = ["accept", "disabled", "multiple"], Pa = {
4517
4619
  class: "text-break accepted-file-types-container",
4518
4620
  id: "accepted-file-types-overlay"
4519
- }, ja = /* @__PURE__ */ B({
4621
+ }, Va = /* @__PURE__ */ F({
4520
4622
  __name: "UploadButton",
4521
- props: /* @__PURE__ */ E({
4623
+ props: /* @__PURE__ */ N({
4522
4624
  acceptedFileTypes: {},
4523
4625
  maxFileInput: {},
4524
4626
  showDragDropArea: { type: Boolean }
@@ -4528,73 +4630,73 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4528
4630
  }),
4529
4631
  emits: ["update:modelValue"],
4530
4632
  setup(e) {
4531
- const t = D(e, "modelValue"), a = I(), i = (s) => a.value.toggle(s), l = z(() => e.maxFileInput <= t.value.length), n = (s) => {
4532
- t.value = ye(s, t.value, e.acceptedFileTypes.map((r) => r.fileType), e.maxFileInput);
4633
+ const t = D(e, "modelValue"), a = _(), i = (o) => a.value.toggle(o), l = z(() => e.maxFileInput <= t.value.length), n = (o) => {
4634
+ t.value = xe(o, t.value, e.acceptedFileTypes.map((r) => r.fileType), e.maxFileInput);
4533
4635
  };
4534
- return (s, r) => {
4535
- const p = U;
4536
- return d(), b("div", Ca, [
4537
- k(s.$slots, "message"),
4636
+ return (o, r) => {
4637
+ const p = q;
4638
+ return d(), f("div", _a, [
4639
+ k(o.$slots, "message"),
4538
4640
  m("div", null, [
4539
4641
  m("input", {
4540
4642
  id: "file-input",
4541
4643
  type: "file",
4542
4644
  class: "d-none",
4543
- accept: s.acceptedFileTypes.join(", "),
4645
+ accept: o.acceptedFileTypes.join(", "),
4544
4646
  disabled: l.value,
4545
- multiple: s.maxFileInput > 1,
4647
+ multiple: o.maxFileInput > 1,
4546
4648
  onInput: r[0] || (r[0] = (u) => n([...u.target.files]))
4547
- }, null, 40, za),
4649
+ }, null, 40, Ia),
4548
4650
  m("label", {
4549
- class: F([{ disabled: l.value }, "btn btn-primary"]),
4651
+ class: B([{ disabled: l.value }, "btn btn-primary"]),
4550
4652
  id: "file-input-button",
4551
4653
  for: "file-input"
4552
4654
  }, [
4553
- k(s.$slots, "button-content", {}, () => [
4554
- y(c(T), {
4655
+ k(o.$slots, "button-content", {}, () => [
4656
+ x(c(T), {
4555
4657
  icon: "bi:upload",
4556
4658
  class: "me-2",
4557
4659
  height: "20px",
4558
4660
  width: "20px"
4559
4661
  }),
4560
- r[1] || (r[1] = _(" Browse your computer "))
4662
+ r[1] || (r[1] = I(" Browse your computer "))
4561
4663
  ])
4562
4664
  ], 2)
4563
4665
  ]),
4564
- s.showDragDropArea ? (d(), f(p, {
4666
+ o.showDragDropArea ? (d(), v(p, {
4565
4667
  link: "",
4566
4668
  class: "ms-auto",
4567
- key: s.acceptedFileTypes.length,
4669
+ key: o.acceptedFileTypes.length,
4568
4670
  id: "accepted-file-types",
4569
4671
  onClick: i
4570
4672
  }, {
4571
- default: g(() => r[2] || (r[2] = [
4572
- _("Accepted File Types")
4673
+ default: b(() => r[2] || (r[2] = [
4674
+ I("Accepted File Types")
4573
4675
  ])),
4574
4676
  _: 1
4575
4677
  })) : C("", !0),
4576
- y(c(ve), {
4678
+ x(c(ve), {
4577
4679
  ref_key: "acceptedFilesOverlay",
4578
4680
  ref: a
4579
4681
  }, {
4580
- default: g(() => [
4581
- m("div", Ta, w(s.acceptedFileTypes.map((u) => u.label ?? u.fileType.split("/").pop()).join(", ")), 1)
4682
+ default: b(() => [
4683
+ m("div", Pa, w(o.acceptedFileTypes.map((u) => u.label ?? u.fileType.split("/").pop()).join(", ")), 1)
4582
4684
  ]),
4583
4685
  _: 1
4584
4686
  }, 512)
4585
4687
  ]);
4586
4688
  };
4587
4689
  }
4588
- }), Ia = {
4690
+ }), Ma = {
4589
4691
  key: 0,
4590
4692
  class: "py-4 px-3",
4591
4693
  id: "placeholder-message"
4592
- }, _a = {
4694
+ }, Da = {
4593
4695
  key: 1,
4594
4696
  class: "d-flex flex-column"
4595
- }, Pa = /* @__PURE__ */ B({
4697
+ }, Oa = /* @__PURE__ */ F({
4596
4698
  __name: "DragDropArea",
4597
- props: /* @__PURE__ */ E({
4699
+ props: /* @__PURE__ */ N({
4598
4700
  maxFileInput: {},
4599
4701
  maxFileSize: {},
4600
4702
  acceptedFileTypes: {}
@@ -4604,30 +4706,30 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4604
4706
  }),
4605
4707
  emits: ["update:modelValue"],
4606
4708
  setup(e) {
4607
- const t = D(e, "modelValue"), a = I(!1), i = z(() => e.maxFileInput <= t.value.length), l = (n) => {
4608
- a.value = !1, n.dataTransfer.files.length > e.maxFileInput || i.value ? n.preventDefault() : t.value = ye([...n.dataTransfer.files], t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileSize);
4709
+ const t = D(e, "modelValue"), a = _(!1), i = z(() => e.maxFileInput <= t.value.length), l = (n) => {
4710
+ a.value = !1, n.dataTransfer.files.length > e.maxFileInput || i.value ? n.preventDefault() : t.value = xe([...n.dataTransfer.files], t.value, e.acceptedFileTypes.map((o) => o.fileType), e.maxFileSize);
4609
4711
  };
4610
- return (n, s) => (d(), b("div", {
4712
+ return (n, o) => (d(), f("div", {
4611
4713
  id: "drag-drop-area",
4612
- class: F(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
4613
- onDragleave: s[0] || (s[0] = G((r) => a.value = !1, ["prevent"])),
4614
- onDragover: s[1] || (s[1] = G((r) => a.value = !0, ["prevent"])),
4714
+ class: B(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
4715
+ onDragleave: o[0] || (o[0] = G((r) => a.value = !1, ["prevent"])),
4716
+ onDragover: o[1] || (o[1] = G((r) => a.value = !0, ["prevent"])),
4615
4717
  onDrop: G(l, ["prevent"])
4616
4718
  }, [
4617
- t.value.length === 0 ? (d(), b("div", Ia, [
4618
- y(c(T), {
4719
+ t.value.length === 0 ? (d(), f("div", Ma, [
4720
+ x(c(T), {
4619
4721
  icon: "bi:upload",
4620
4722
  class: "me-2",
4621
4723
  height: "20px",
4622
4724
  width: "20px"
4623
4725
  }),
4624
- s[2] || (s[2] = _(" Drag and drop files here "))
4625
- ])) : (d(), b("div", _a, [
4726
+ o[2] || (o[2] = I(" Drag and drop files here "))
4727
+ ])) : (d(), f("div", Da, [
4626
4728
  k(n.$slots, "default")
4627
4729
  ]))
4628
4730
  ], 34));
4629
4731
  }
4630
- }), Va = { class: "d-flex align-items-center me-2" }, Ma = /* @__PURE__ */ B({
4732
+ }), Na = { class: "d-flex align-items-center me-2" }, Ua = /* @__PURE__ */ F({
4631
4733
  __name: "UploadStatus",
4632
4734
  props: {
4633
4735
  fileSize: {},
@@ -4652,43 +4754,43 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4652
4754
  return "Upload Failed: Connection error, please try again.";
4653
4755
  }
4654
4756
  });
4655
- return (i, l) => (d(), b("div", Va, [
4656
- i.uploadStatus === "Uploading" ? (d(), f(Qt, {
4757
+ return (i, l) => (d(), f("div", Na, [
4758
+ i.uploadStatus === "Uploading" ? (d(), v(ia, {
4657
4759
  key: 0,
4658
4760
  pixelWidth: 200,
4659
4761
  animate: "",
4660
4762
  striped: ""
4661
4763
  }, {
4662
- default: g(() => [
4663
- _(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
4764
+ default: b(() => [
4765
+ I(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
4664
4766
  ]),
4665
4767
  _: 1
4666
4768
  })) : C("", !0),
4667
- i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (d(), f(se, {
4769
+ i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (d(), v(se, {
4668
4770
  key: 1,
4669
4771
  id: "upload-status-alert",
4670
4772
  severity: t.value,
4671
4773
  class: "mb-0 w-75 ms-auto"
4672
4774
  }, {
4673
- default: g(() => [
4674
- _(w(a.value), 1)
4775
+ default: b(() => [
4776
+ I(w(a.value), 1)
4675
4777
  ]),
4676
4778
  _: 1
4677
4779
  }, 8, ["severity"])) : C("", !0)
4678
4780
  ]));
4679
4781
  }
4680
- }), Da = ["data-cy"], Oa = { class: "ms-3 d-flex flex-column" }, Na = {
4782
+ }), Aa = ["data-cy"], qa = { class: "ms-3 d-flex flex-column" }, Ea = {
4681
4783
  key: 1,
4682
4784
  id: "file-name"
4683
- }, Ua = {
4785
+ }, La = {
4684
4786
  class: "text-black-50",
4685
4787
  id: "file-type"
4686
- }, Aa = {
4788
+ }, Ra = {
4687
4789
  class: "text-black-50",
4688
4790
  id: "file-size"
4689
- }, qa = { class: "ms-auto my-auto d-flex" }, Ea = /* @__PURE__ */ B({
4791
+ }, Ha = { class: "ms-auto my-auto d-flex" }, Wa = /* @__PURE__ */ F({
4690
4792
  __name: "FileInfo",
4691
- props: /* @__PURE__ */ E({
4793
+ props: /* @__PURE__ */ N({
4692
4794
  editableFileName: { type: Boolean },
4693
4795
  acceptedFileTypes: {},
4694
4796
  maxFileSize: {},
@@ -4703,27 +4805,27 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4703
4805
  uploadStatus: { required: !0 },
4704
4806
  uploadStatusModifiers: {}
4705
4807
  }),
4706
- emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
4808
+ emits: /* @__PURE__ */ N(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
4707
4809
  setup(e, { emit: t }) {
4708
- const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), n = t, s = I(a.value.name), r = I(""), p = I(0), u = I(), x = z(() => e.acceptedFileTypes.some(({ fileType: v }) => v === a.value.type)), o = z(() => a.value.size <= e.maxFileSize), $ = z(() => a.value.type ? a.value.type : Sa().getType(a.value.name)), j = () => {
4709
- s.value != null && (V(), a.value = new File([a.value], s.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
4810
+ const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), n = t, o = _(a.value.name), r = _(""), p = _(0), u = _(), y = z(() => e.acceptedFileTypes.some(({ fileType: g }) => g === a.value.type)), s = z(() => a.value.size <= e.maxFileSize), $ = z(() => a.value.type ? a.value.type : ja().getType(a.value.name)), j = () => {
4811
+ o.value != null && (V(), a.value = new File([a.value], o.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
4710
4812
  }, V = () => {
4711
- let v = s.value.split("."), h = ka.getExtension($.value), P = s.value.split(".").pop();
4712
- v.length === 1 ? P && P.length > 0 && (s.value = [s.value, h].join(".")) : v.length > 1 && P !== h && (s.value = s.value.replace(P, h));
4813
+ let g = o.value.split("."), h = Sa.getExtension($.value), P = o.value.split(".").pop();
4814
+ g.length === 1 ? P && P.length > 0 && (o.value = [o.value, h].join(".")) : g.length > 1 && P !== h && (o.value = o.value.replace(P, h));
4713
4815
  }, M = async () => {
4714
- if (!x.value || !o.value) {
4715
- l.value = x.value ? "InvalidFileSize" : "InvalidFileType";
4816
+ if (!y.value || !s.value) {
4817
+ l.value = y.value ? "InvalidFileSize" : "InvalidFileType";
4716
4818
  return;
4717
4819
  }
4718
4820
  l.value = "Preparing", u.value = new AbortController();
4719
- const [v, h] = await e.getFileUrlAction(a.value.name);
4720
- if (!v) {
4821
+ const [g, h] = await e.getFileUrlAction(a.value.name);
4822
+ if (!g) {
4721
4823
  l.value = "Failed";
4722
4824
  return;
4723
4825
  }
4724
4826
  try {
4725
4827
  l.value = "Uploading";
4726
- const P = new me(v), L = {
4828
+ const P = new me(g), L = {
4727
4829
  abortSignal: u.value.signal,
4728
4830
  onProgress: (ae) => p.value = ae.loadedBytes,
4729
4831
  blobHTTPHeaders: {
@@ -4732,7 +4834,7 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4732
4834
  },
4733
4835
  tags: { temp: "true" }
4734
4836
  };
4735
- await P.uploadData(a.value, L), r.value = v, l.value = "Uploaded", i.value = h;
4837
+ await P.uploadData(a.value, L), r.value = g, l.value = "Uploaded", i.value = h;
4736
4838
  } catch (P) {
4737
4839
  if (P.name === "AbortError") {
4738
4840
  l.value = "Aborted";
@@ -4740,27 +4842,27 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4740
4842
  }
4741
4843
  l.value = "Failed";
4742
4844
  }
4743
- }, O = async () => {
4744
- await $a(l.value, r.value), n("deleted", a.value);
4845
+ }, U = async () => {
4846
+ await Ca(l.value, r.value), n("deleted", a.value);
4745
4847
  };
4746
4848
  return le(() => {
4747
4849
  e.autoUploadToBlob && M();
4748
- }), (v, h) => {
4749
- const P = U;
4750
- return d(), b("div", {
4850
+ }), (g, h) => {
4851
+ const P = q;
4852
+ return d(), f("div", {
4751
4853
  class: "py-4 px-3 d-flex",
4752
4854
  "data-cy": `file-info-${a.value.name}`
4753
4855
  }, [
4754
4856
  m("div", null, [
4755
- c(Fa)(a.value.type) ? (d(), f(c(Le), {
4857
+ c(za)(a.value.type) ? (d(), v(c(Le), {
4756
4858
  key: 0,
4757
4859
  id: "thumbnail-image",
4758
4860
  "image-class": "image-file-thumbnail border",
4759
- src: c(Ba)(a.value),
4861
+ src: c(Ta)(a.value),
4760
4862
  alt: a.value.name,
4761
4863
  width: "75px",
4762
4864
  preview: ""
4763
- }, null, 8, ["src", "alt"])) : (d(), f(c(T), {
4865
+ }, null, 8, ["src", "alt"])) : (d(), v(c(T), {
4764
4866
  key: 1,
4765
4867
  id: "file-earmark",
4766
4868
  icon: "bi:file-earmark",
@@ -4768,78 +4870,78 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4768
4870
  width: "75px"
4769
4871
  }))
4770
4872
  ]),
4771
- m("div", Oa, [
4873
+ m("div", qa, [
4772
4874
  m("div", null, [
4773
- v.editableFileName ? (d(), f(Dt, {
4875
+ g.editableFileName ? (d(), v(At, {
4774
4876
  key: 0,
4775
4877
  id: "edit-file-name",
4776
- modelValue: s.value,
4777
- "onUpdate:modelValue": h[0] || (h[0] = (L) => s.value = L),
4778
- rules: v.customFileNameRules,
4878
+ modelValue: o.value,
4879
+ "onUpdate:modelValue": h[0] || (h[0] = (L) => o.value = L),
4880
+ rules: g.customFileNameRules,
4779
4881
  name: a.value.name,
4780
4882
  "complete-action": j
4781
- }, null, 8, ["modelValue", "rules", "name"])) : (d(), b("span", Na, w(s.value), 1))
4883
+ }, null, 8, ["modelValue", "rules", "name"])) : (d(), f("span", Ea, w(o.value), 1))
4782
4884
  ]),
4783
- m("span", Ua, "File type: " + w(a.value.type.split("/").pop()), 1),
4784
- m("span", Aa, "File size: " + w(c(pe)(a.value.size)), 1)
4885
+ m("span", La, "File type: " + w(a.value.type.split("/").pop()), 1),
4886
+ m("span", Ra, "File size: " + w(c(pe)(a.value.size)), 1)
4785
4887
  ]),
4786
- m("div", qa, [
4787
- (d(), f(Ma, {
4888
+ m("div", Ha, [
4889
+ (d(), v(Ua, {
4788
4890
  key: l.value,
4789
4891
  "file-size": a.value.size,
4790
4892
  "upload-status": l.value,
4791
4893
  "bytes-uploaded": p.value,
4792
- "max-file-size": v.maxFileSize
4894
+ "max-file-size": g.maxFileSize
4793
4895
  }, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
4794
- l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(), f(P, {
4896
+ l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(), v(P, {
4795
4897
  key: 0,
4796
4898
  link: "",
4797
4899
  onClick: M
4798
4900
  }, {
4799
- default: g(() => [
4800
- y(c(T), {
4901
+ default: b(() => [
4902
+ x(c(T), {
4801
4903
  icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
4802
4904
  }, null, 8, ["icon"])
4803
4905
  ]),
4804
4906
  _: 1
4805
4907
  })) : C("", !0),
4806
- l.value === "Uploading" ? (d(), f(P, {
4908
+ l.value === "Uploading" ? (d(), v(P, {
4807
4909
  key: 1,
4808
4910
  link: "",
4809
4911
  onClick: h[1] || (h[1] = (L) => u.value.value.abort())
4810
4912
  }, {
4811
- default: g(() => [
4812
- y(c(T), { icon: "bi:x-circle-fill" })
4913
+ default: b(() => [
4914
+ x(c(T), { icon: "bi:x-circle-fill" })
4813
4915
  ]),
4814
4916
  _: 1
4815
- })) : (d(), f(P, {
4917
+ })) : (d(), v(P, {
4816
4918
  key: 2,
4817
4919
  link: "",
4818
- onClick: O,
4920
+ onClick: U,
4819
4921
  id: "delete-button"
4820
4922
  }, {
4821
- default: g(() => [
4822
- y(c(T), { icon: "bi:trash" })
4923
+ default: b(() => [
4924
+ x(c(T), { icon: "bi:trash" })
4823
4925
  ]),
4824
4926
  _: 1
4825
4927
  }))
4826
4928
  ])
4827
- ], 8, Da);
4929
+ ], 8, Aa);
4828
4930
  };
4829
4931
  }
4830
- }), La = { class: "d-flex justify-content-end mt-1" }, Ra = { id: "max-file-size" }, Ha = /* @__PURE__ */ B({
4932
+ }), Ya = { class: "d-flex justify-content-end mt-1" }, Ga = { id: "max-file-size" }, Ja = /* @__PURE__ */ F({
4831
4933
  __name: "MaxFileSize",
4832
4934
  props: {
4833
4935
  maxFileSize: {}
4834
4936
  },
4835
4937
  setup(e) {
4836
- return (t, a) => (d(), b("div", La, [
4837
- m("div", Ra, "Max file size: " + w(c(pe)(t.maxFileSize)), 1)
4938
+ return (t, a) => (d(), f("div", Ya, [
4939
+ m("div", Ga, "Max file size: " + w(c(pe)(t.maxFileSize)), 1)
4838
4940
  ]));
4839
4941
  }
4840
- }), Wa = { "data-cy": "file-uploader" }, Ya = { key: 0 }, Gi = /* @__PURE__ */ B({
4942
+ }), Ka = { "data-cy": "file-uploader" }, Za = { key: 0 }, tl = /* @__PURE__ */ F({
4841
4943
  __name: "ForgeFileUploader",
4842
- props: /* @__PURE__ */ E({
4944
+ props: /* @__PURE__ */ N({
4843
4945
  acceptedFileTypes: {},
4844
4946
  maxFileSize: {},
4845
4947
  getFileUrlAction: {},
@@ -4857,23 +4959,23 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4857
4959
  const t = D(e, "modelValue"), a = e, i = (l) => {
4858
4960
  t.value = t.value.filter((n) => n.file != l);
4859
4961
  };
4860
- return (l, n) => (d(), b("div", Wa, [
4861
- y(ja, S(a, {
4962
+ return (l, n) => (d(), f("div", Ka, [
4963
+ x(Va, S(a, {
4862
4964
  modelValue: t.value,
4863
- "onUpdate:modelValue": n[0] || (n[0] = (s) => t.value = s)
4965
+ "onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o)
4864
4966
  }), null, 16, ["modelValue"]),
4865
- l.showDragDropArea ? (d(), b("div", Ya, [
4866
- y(Pa, {
4967
+ l.showDragDropArea ? (d(), f("div", Za, [
4968
+ x(Oa, {
4867
4969
  "max-file-input": a.maxFileInput,
4868
4970
  "max-file-size": a.maxFileSize,
4869
4971
  "accepted-file-types": a.acceptedFileTypes,
4870
4972
  modelValue: t.value,
4871
- "onUpdate:modelValue": n[1] || (n[1] = (s) => t.value = s)
4973
+ "onUpdate:modelValue": n[1] || (n[1] = (o) => t.value = o)
4872
4974
  }, {
4873
- default: g(() => [
4874
- (d(!0), b(N, null, q(t.value, ({ file: s }, r) => (d(), b("span", null, [
4875
- (d(), f(Ea, S({
4876
- key: s.name,
4975
+ default: b(() => [
4976
+ (d(!0), f(O, null, A(t.value, ({ file: o }, r) => (d(), f("span", null, [
4977
+ (d(), v(Wa, S({
4978
+ key: o.name,
4877
4979
  class: r === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
4878
4980
  file: t.value[r].file,
4879
4981
  "onUpdate:file": (p) => t.value[r].file = p,
@@ -4887,13 +4989,13 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4887
4989
  ]),
4888
4990
  _: 1
4889
4991
  }, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
4890
- y(Ha, {
4992
+ x(Ja, {
4891
4993
  "max-file-size": a.maxFileSize
4892
4994
  }, null, 8, ["max-file-size"])
4893
4995
  ])) : C("", !0)
4894
4996
  ]));
4895
4997
  }
4896
- }), Ga = { class: "d-flex" }, Ja = { class: "me-3" }, Ka = { class: "ms-2" }, Za = { class: "d-flex flex-column w-100" }, Ji = /* @__PURE__ */ B({
4998
+ }), Xa = { class: "d-flex" }, Qa = { class: "me-3" }, ei = { class: "ms-2" }, ti = { class: "d-flex flex-column w-100" }, al = /* @__PURE__ */ F({
4897
4999
  __name: "ForgeColumnCustomiser",
4898
5000
  props: {
4899
5001
  modelValue: { required: !0 },
@@ -4901,22 +5003,22 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4901
5003
  },
4902
5004
  emits: ["update:modelValue"],
4903
5005
  setup(e) {
4904
- const t = D(e, "modelValue"), a = I(), i = I(!1), l = (n) => {
5006
+ const t = D(e, "modelValue"), a = _(), i = _(!1), l = (n) => {
4905
5007
  a.value.toggle(n);
4906
5008
  };
4907
- return (n, s) => (d(), b(N, null, [
4908
- y(c(U), {
5009
+ return (n, o) => (d(), f(O, null, [
5010
+ x(c(q), {
4909
5011
  onClick: l,
4910
5012
  class: "ms-2"
4911
5013
  }, {
4912
- default: g(() => [
4913
- m("div", Ga, [
4914
- m("div", Ja, [
4915
- y(c(T), { icon: "bi:layout-three-columns" })
5014
+ default: b(() => [
5015
+ m("div", Xa, [
5016
+ m("div", Qa, [
5017
+ x(c(T), { icon: "bi:layout-three-columns" })
4916
5018
  ]),
4917
- _(" Columns (" + w(t.value.filter((r) => r.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
4918
- m("div", Ka, [
4919
- y(c(T), {
5019
+ I(" Columns (" + w(t.value.filter((r) => r.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
5020
+ m("div", ei, [
5021
+ x(c(T), {
4920
5022
  icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
4921
5023
  }, null, 8, ["icon"])
4922
5024
  ])
@@ -4924,24 +5026,24 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4924
5026
  ]),
4925
5027
  _: 1
4926
5028
  }),
4927
- y(c(ve), {
5029
+ x(c(ve), {
4928
5030
  ref_key: "columnCustomiserPanel",
4929
5031
  ref: a,
4930
5032
  class: "column-customiser",
4931
- onHide: s[0] || (s[0] = () => i.value = !1),
4932
- onShow: s[1] || (s[1] = () => i.value = !0)
5033
+ onHide: o[0] || (o[0] = () => i.value = !1),
5034
+ onShow: o[1] || (o[1] = () => i.value = !0)
4933
5035
  }, {
4934
- default: g(() => [
4935
- m("div", Za, [
4936
- (d(!0), b(N, null, q(t.value, (r, p) => (d(), b("div", {
4937
- class: F(["d-flex cursor-pointer", {
5036
+ default: b(() => [
5037
+ m("div", ti, [
5038
+ (d(!0), f(O, null, A(t.value, (r, p) => (d(), f("div", {
5039
+ class: B(["d-flex cursor-pointer", {
4938
5040
  "border-top": p !== 0,
4939
5041
  "py-1": p !== 0 && t.value.length - 1 !== p,
4940
5042
  "pt-1": t.value.length - 1 === p,
4941
5043
  "pb-1": p === 0
4942
5044
  }])
4943
5045
  }, [
4944
- y(fe, {
5046
+ x(fe, {
4945
5047
  id: r.field,
4946
5048
  modelValue: r.selected,
4947
5049
  "onUpdate:modelValue": (u) => r.selected = u,
@@ -4956,61 +5058,128 @@ const Ca = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4956
5058
  }, 512)
4957
5059
  ], 64));
4958
5060
  }
4959
- }), Ki = /* @__PURE__ */ B({
5061
+ }), il = /* @__PURE__ */ F({
4960
5062
  __name: "ForgePanel",
4961
5063
  setup(e) {
4962
5064
  return (t, a) => {
4963
5065
  const i = Re;
4964
- return d(), f(i, K(Z({ ...t.$attrs })), {
4965
- toggleicon: g(({ collapsed: l }) => [
4966
- l ? (d(), f(c(T), {
5066
+ return d(), v(i, K(Z({ ...t.$attrs })), {
5067
+ toggleicon: b(({ collapsed: l }) => [
5068
+ l ? (d(), v(c(T), {
4967
5069
  key: 0,
4968
5070
  "data-cy": "message-icon",
4969
5071
  icon: "bi:chevron-down"
4970
5072
  })) : C("", !0),
4971
- l ? C("", !0) : (d(), f(c(T), {
5073
+ l ? C("", !0) : (d(), v(c(T), {
4972
5074
  key: 1,
4973
5075
  "data-cy": "message-icon",
4974
5076
  icon: "bi:chevron-up"
4975
5077
  }))
4976
5078
  ]),
4977
- default: g(() => [
5079
+ default: b(() => [
4978
5080
  k(t.$slots, "default")
4979
5081
  ]),
4980
5082
  _: 3
4981
5083
  }, 16);
4982
5084
  };
4983
5085
  }
5086
+ }), ai = /* @__PURE__ */ F({
5087
+ __name: "ForgeToggleButton",
5088
+ props: {
5089
+ severity: { default: "primary" }
5090
+ },
5091
+ setup(e) {
5092
+ const t = e, a = z(() => ({
5093
+ root: (i) => ({
5094
+ class: [
5095
+ "btn",
5096
+ {
5097
+ [`focus-ring focus-ring-${t.severity} btn-${t.severity}-subtle border border-2 border-${t.severity} fw-500 text-${t.severity}`]: i.context.active,
5098
+ [`border text-${t.severity} select-btn-${t.severity}`]: !i.context.active,
5099
+ "btn-secondary-subtle": i.context.disabled
5100
+ }
5101
+ ]
5102
+ }),
5103
+ label: (i) => ({
5104
+ class: [
5105
+ {
5106
+ "fw-500": i.context.active,
5107
+ "text-secondary": i.context.disabled
5108
+ }
5109
+ ]
5110
+ })
5111
+ }));
5112
+ return (i, l) => (d(), v(c(He), S({ ...i.$attrs, ...t }, {
5113
+ severity: t.severity,
5114
+ pt: a.value
5115
+ }), null, 16, ["severity", "pt"]));
5116
+ }
5117
+ }), ii = {
5118
+ class: "btn-group",
5119
+ "data-cy": "forge-select-button"
5120
+ }, ll = /* @__PURE__ */ F({
5121
+ __name: "ForgeSelectButton",
5122
+ props: /* @__PURE__ */ N({
5123
+ multiple: { type: Boolean, default: !1 },
5124
+ allowEmpty: { type: Boolean, default: !0 }
5125
+ }, {
5126
+ modelValue: { required: !0 },
5127
+ modelModifiers: {}
5128
+ }),
5129
+ emits: /* @__PURE__ */ N(["change"], ["update:modelValue"]),
5130
+ setup(e, { emit: t }) {
5131
+ const a = e, i = t, l = D(e, "modelValue"), n = (o) => {
5132
+ if (o.disabled) return;
5133
+ const r = o.selected && l.value.filter((p) => o.value != p.value && p.selected).length < 1;
5134
+ !a.allowEmpty && r || (a.multiple || l.value.forEach((p) => {
5135
+ p.value != o.value && (p.selected = !1);
5136
+ }), o.selected = !o.selected, i("change", o));
5137
+ };
5138
+ return (o, r) => (d(), f("div", ii, [
5139
+ (d(!0), f(O, null, A(l.value, (p, u) => (d(), v(ai, {
5140
+ onLabel: p.label,
5141
+ offLabel: p.label,
5142
+ severity: p.severity,
5143
+ key: u,
5144
+ onChange: (y) => n(p),
5145
+ defaultValue: p.selected,
5146
+ disabled: p.disabled,
5147
+ "data-cy": `toggle-button-${p.value}`
5148
+ }, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy"]))), 128))
5149
+ ]));
5150
+ }
4984
5151
  });
4985
5152
  export {
4986
- Ti as Bootstrap_PT,
4987
- ji as ForgeActionButton,
5153
+ Di as Bootstrap_PT,
5154
+ Oi as ForgeActionButton,
4988
5155
  se as ForgeAlert,
4989
- Ii as ForgeAutoComplete,
5156
+ Ni as ForgeAutoComplete,
4990
5157
  fe as ForgeCheckbox,
4991
- qi as ForgeChip,
4992
- Ji as ForgeColumnCustomiser,
5158
+ Gi as ForgeChip,
5159
+ al as ForgeColumnCustomiser,
4993
5160
  be as ForgeDatepicker,
4994
- Gi as ForgeFileUploader,
4995
- Yi as ForgeFilterHeader,
4996
- Ui as ForgeForm,
4997
- Ai as ForgeFormField,
4998
- Dt as ForgeInlineEditor,
4999
- _i as ForgeLink,
5161
+ tl as ForgeFileUploader,
5162
+ el as ForgeFilterHeader,
5163
+ Wi as ForgeForm,
5164
+ Yi as ForgeFormField,
5165
+ At as ForgeInlineEditor,
5166
+ Ui as ForgeLink,
5000
5167
  ge as ForgeLoader,
5001
- Mi as ForgeModal,
5002
- Et as ForgeMultiSelectPreview,
5003
- Di as ForgeNavbar,
5004
- Oi as ForgePageHeader,
5005
- Ki as ForgePanel,
5006
- Qt as ForgeProgressBar,
5007
- Ni as ForgeRemainingCharacters,
5008
- Ei as ForgeScratchpad,
5009
- Li as ForgeStatWidget,
5010
- Ri as ForgeStepper,
5011
- Wi as ForgeTable,
5012
- Hi as ForgeTile,
5013
- Vi as convertToMultiSelectOption,
5014
- Pi as enumToMultiSelectList,
5015
- Ct as parseError
5168
+ Ei as ForgeModal,
5169
+ Wt as ForgeMultiSelectPreview,
5170
+ Li as ForgeNavbar,
5171
+ Ri as ForgePageHeader,
5172
+ il as ForgePanel,
5173
+ ia as ForgeProgressBar,
5174
+ Hi as ForgeRemainingCharacters,
5175
+ Ji as ForgeScratchpad,
5176
+ ll as ForgeSelectButton,
5177
+ Ki as ForgeStatWidget,
5178
+ Zi as ForgeStepper,
5179
+ Qi as ForgeTable,
5180
+ Xi as ForgeTile,
5181
+ ai as ForgeToggleButton,
5182
+ qi as convertToMultiSelectOption,
5183
+ Ai as enumToMultiSelectList,
5184
+ _t as parseError
5016
5185
  };