@3squared/forge-ui-3 2.19.2 → 2.21.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,27 +1,27 @@
1
- import Be from "primevue/message";
2
- import { defineComponent as C, createBlock as y, openBlock as d, normalizeProps as W, guardReactiveProps as G, withCtx as f, renderSlot as B, createVNode as w, unref as u, createElementVNode as m, normalizeClass as S, createCommentVNode as z, ref as P, createElementBlock as v, Fragment as A, mergeProps as j, renderList as E, mergeModels as R, useModel as N, computed as T, withDirectives as J, createTextVNode as M, toDisplayString as F, vShow as Z, createSlots as ae, onMounted as oe, withKeys as le, isRef as Fe, normalizeStyle as Se, withModifiers as X, watch as Q, h as Ce, useTemplateRef as ze } from "vue";
3
- import { Icon as _ } from "@iconify/vue";
1
+ import $e from "primevue/message";
2
+ import { defineComponent as z, createBlock as x, openBlock as d, normalizeProps as G, guardReactiveProps as Y, withCtx as f, renderSlot as F, createVNode as k, unref as c, createElementVNode as m, normalizeClass as P, createCommentVNode as T, ref as M, createElementBlock as b, Fragment as U, mergeProps as _, renderList as L, mergeModels as E, useModel as N, computed as j, withDirectives as K, createTextVNode as V, toDisplayString as $, vShow as X, createSlots as ie, onMounted as ne, withKeys as le, isRef as Fe, normalizeStyle as Se, withModifiers as Q, watch as W, h as Ce, useTemplateRef as Te } from "vue";
3
+ import { Icon as I } from "@iconify/vue";
4
4
  import q from "primevue/button";
5
- import Te from "primevue/toast";
6
- import je from "primevue/autocomplete";
5
+ import ze from "primevue/toast";
6
+ import Pe from "primevue/autocomplete";
7
7
  import _e from "primevue/checkbox";
8
- import { useField as ne } from "vee-validate";
9
- import Pe from "primevue/progressspinner";
10
- import Ie from "primevue/dialog";
11
- import se from "primevue/inputtext";
12
- import { vOnClickOutside as Me } from "@vueuse/components";
8
+ import { useField as se } from "vee-validate";
9
+ import je from "primevue/progressspinner";
10
+ import Me from "primevue/dialog";
11
+ import ae from "primevue/inputtext";
12
+ import { vOnClickOutside as Ie } from "@vueuse/components";
13
13
  import Ve from "primevue/menubar";
14
- import re from "primevue/multiselect";
14
+ import de from "primevue/multiselect";
15
15
  import De from "primevue/datepicker";
16
- import ie from "primevue/select";
16
+ import oe from "primevue/select";
17
17
  import Oe from "primevue/inputmask";
18
- import Ne from "primevue/textarea";
18
+ import Ae from "primevue/textarea";
19
19
  import fe from "primevue/inputnumber";
20
- import Ae from "primevue/chip";
21
- import Ee from "primevue/progressbar";
22
- import Ue from "primevue/step";
23
- import qe from "primevue/stepper";
24
- import Le from "primevue/steplist";
20
+ import Ne from "primevue/chip";
21
+ import Ue from "primevue/progressbar";
22
+ import Le from "primevue/step";
23
+ import Ee from "primevue/stepper";
24
+ import qe from "primevue/steplist";
25
25
  import Re from "primevue/steppanel";
26
26
  import He from "primevue/steppanels";
27
27
  import We from "primevue/datatable";
@@ -32,7 +32,8 @@ import Ye from "primevue/image";
32
32
  import Je from "primevue/panel";
33
33
  import { ToggleButton as Ke } from "primevue";
34
34
  import Ze from "primevue/confirmpopup";
35
- const Xe = {
35
+ import Xe from "primevue/picklist";
36
+ const Qe = {
36
37
  autoComplete: {
37
38
  root: ({ props: e }) => ({
38
39
  class: [
@@ -61,7 +62,7 @@ const Xe = {
61
62
  }),
62
63
  emptyMessage: "mx-3 my-2"
63
64
  }
64
- }, Qe = {
65
+ }, et = {
65
66
  button: {
66
67
  root: ({ props: e }) => ({
67
68
  class: [
@@ -171,7 +172,7 @@ const Xe = {
171
172
  })
172
173
  }
173
174
  }
174
- }, et = {
175
+ }, tt = {
175
176
  checkbox: {
176
177
  root: () => ({
177
178
  class: ["form-check"]
@@ -186,7 +187,7 @@ const Xe = {
186
187
  ]
187
188
  })
188
189
  }
189
- }, tt = {
190
+ }, at = {
190
191
  select: {
191
192
  root: ({ props: e }) => ({
192
193
  class: [
@@ -236,18 +237,20 @@ const Xe = {
236
237
  ]
237
238
  })
238
239
  }
239
- }, at = {
240
+ }, it = {
240
241
  column: {
241
- pcSortBadge: "ms-2 my-auto cursor-pointer",
242
+ pcSortBadge: {
243
+ root: "ms-2 my-auto cursor-pointer"
244
+ },
242
245
  headerCell: (e) => {
243
- var t, a, i, l, o, n;
246
+ var t, a, i, o, l, n;
244
247
  return {
245
248
  class: [
246
249
  "align-top",
247
250
  {
248
251
  "cursor-move": (t = e.props) == null ? void 0 : t.reorderableColumns,
249
- "position-sticky": ((a = e.column) == null ? void 0 : a.context.frozen) !== void 0 || ((i = e.column) == null ? void 0 : i.context.frozen) || ((l = e.column) == null ? void 0 : l.context.frozen) === "",
250
- "overflow-hidden position-relative bg-clip-padding": (o = e.column) == null ? void 0 : o.context.resizable,
252
+ "position-sticky": ((a = e.column) == null ? void 0 : a.context.frozen) !== void 0 || ((i = e.column) == null ? void 0 : i.context.frozen) || ((o = e.column) == null ? void 0 : o.context.frozen) === "",
253
+ "overflow-hidden position-relative bg-clip-padding": (l = e.column) == null ? void 0 : l.context.resizable,
251
254
  "align-bottom": ((n = e.column.props) == null ? void 0 : n.rowspan) > 1
252
255
  }
253
256
  ]
@@ -352,7 +355,7 @@ const Xe = {
352
355
  ]
353
356
  })
354
357
  }
355
- }, it = {
358
+ }, ot = {
356
359
  inputtext: {
357
360
  root: (e) => {
358
361
  var t, a;
@@ -375,12 +378,12 @@ const Xe = {
375
378
  ]
376
379
  })
377
380
  }
378
- }, ot = {
381
+ }, nt = {
379
382
  toggleSwitch: {
380
383
  root: "form-check form-switch",
381
384
  input: "form-check-input"
382
385
  }
383
- }, nt = {
386
+ }, st = {
384
387
  tag: {
385
388
  root: ({ props: e }) => ({
386
389
  class: [
@@ -401,7 +404,7 @@ const Xe = {
401
404
  ]
402
405
  })
403
406
  }
404
- }, st = {
407
+ }, rt = {
405
408
  textarea: {
406
409
  root: () => ({
407
410
  class: [
@@ -409,13 +412,13 @@ const Xe = {
409
412
  ]
410
413
  })
411
414
  }
412
- }, rt = {
415
+ }, dt = {
413
416
  chip: {
414
417
  root: "badge rounded-pill bg-primary-subtle text-primary d-inline-flex align-items-center border border-primary me-1 p-1",
415
418
  label: "px-2 fs-6 fw-400",
416
419
  removeIcon: "ms-auto my-auto"
417
420
  }
418
- }, dt = {
421
+ }, pt = {
419
422
  dialog: {
420
423
  root: ({ parent: e }) => e.instance.$.type.name == "ConfirmDialog" ? {
421
424
  class: ["modal modal-dialog modal-content h-auto m-0 modal-sm"]
@@ -474,7 +477,7 @@ const Xe = {
474
477
  ]
475
478
  })
476
479
  }
477
- }, pt = {
480
+ }, ct = {
478
481
  popover: {
479
482
  root: (e) => ({
480
483
  class: [
@@ -488,7 +491,7 @@ const Xe = {
488
491
  content: "d-flex position-relative",
489
492
  closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
490
493
  }
491
- }, ct = {
494
+ }, ut = {
492
495
  message: {
493
496
  root: ({ props: e }) => ({
494
497
  class: [
@@ -518,7 +521,7 @@ const Xe = {
518
521
  class: ["px-0 ms-2 btn d-flex"]
519
522
  })
520
523
  }
521
- }, ut = {
524
+ }, mt = {
522
525
  // More PT options defined in ForgeStepper.
523
526
  stepList: {
524
527
  root: "d-flex mb-2 w-100"
@@ -546,7 +549,7 @@ const Xe = {
546
549
  }),
547
550
  separator: "border border-1 separator"
548
551
  }
549
- }, mt = {
552
+ }, vt = {
550
553
  tabList: {
551
554
  root: () => ({
552
555
  class: ["nav nav-tabs position-relative"]
@@ -571,7 +574,7 @@ const Xe = {
571
574
  class: ["p-2"]
572
575
  })
573
576
  }
574
- }, vt = {
577
+ }, ft = {
575
578
  // More PassThrough options defined in ForgeDatepicker.
576
579
  datepicker: {
577
580
  root: "d-inline-flex relative w-100",
@@ -672,7 +675,7 @@ const Xe = {
672
675
  pcDecrementButton: { root: "btn btn-sm", label: "d-none" },
673
676
  pcIncrementButton: { root: "btn btn-sm", label: "d-none" }
674
677
  }
675
- }, ft = {
678
+ }, gt = {
676
679
  multiselect: {
677
680
  root: ({ props: e }) => ({
678
681
  class: [
@@ -700,7 +703,7 @@ const Xe = {
700
703
  class: "d-none"
701
704
  })
702
705
  }
703
- }, gt = {
706
+ }, bt = {
704
707
  // More PassThrough options in component file.
705
708
  progressbar: {
706
709
  root: () => ({
@@ -710,7 +713,7 @@ const Xe = {
710
713
  class: ["text-white m-1"]
711
714
  })
712
715
  }
713
- }, bt = {
716
+ }, yt = {
714
717
  panel: {
715
718
  root: "card w-100",
716
719
  header: "h4 d-flex justify-content-between align-items-center fw-600 ms-4 me-3 my-2",
@@ -723,7 +726,7 @@ const Xe = {
723
726
  },
724
727
  contentContainer: "mt-2 mx-4 mb-4"
725
728
  }
726
- }, yt = {
729
+ }, xt = {
727
730
  // More PT options can be found in the ForgeTable file.
728
731
  dataTable: {
729
732
  root: "position-relative",
@@ -754,7 +757,7 @@ const Xe = {
754
757
  mask: () => ({
755
758
  class: "table-overlay table-spinner"
756
759
  }),
757
- rowGroupHeaderCell: "d-inline-flex align-items-center border border-0",
760
+ rowGroupHeaderCell: "border",
758
761
  rowGroupHeader: "border-top border-bottom",
759
762
  rowToggleButton: "btn",
760
763
  pcPaginator: {
@@ -797,7 +800,7 @@ const Xe = {
797
800
  ]
798
801
  })
799
802
  }
800
- }, xt = {
803
+ }, ht = {
801
804
  badge: {
802
805
  root: ({ props: e }) => ({
803
806
  class: [
@@ -819,7 +822,7 @@ const Xe = {
819
822
  ]
820
823
  })
821
824
  }
822
- }, ht = {
825
+ }, wt = {
823
826
  // More PassThrough options in component file.
824
827
  menubar: {
825
828
  rootList: ({ instance: e }) => ({
@@ -900,7 +903,7 @@ const Xe = {
900
903
  ]
901
904
  })
902
905
  }
903
- }, wt = {
906
+ }, kt = {
904
907
  tooltip: {
905
908
  root: ({ context: e }) => ({
906
909
  class: [
@@ -922,7 +925,7 @@ const Xe = {
922
925
  class: ["tooltip-inner"]
923
926
  }
924
927
  }
925
- }, kt = {
928
+ }, Bt = {
926
929
  selectButton: {
927
930
  root: () => ({
928
931
  class: ["btn-group"]
@@ -991,7 +994,7 @@ const Xe = {
991
994
  separator: "border-bottom"
992
995
  }
993
996
  }
994
- }, Bt = {
997
+ }, Ft = {
995
998
  progressspinner: {
996
999
  spin: () => ({
997
1000
  class: [
@@ -999,7 +1002,7 @@ const Xe = {
999
1002
  ]
1000
1003
  })
1001
1004
  }
1002
- }, Ft = {
1005
+ }, St = {
1003
1006
  card: {
1004
1007
  root: () => ({
1005
1008
  class: ["card"]
@@ -1023,11 +1026,11 @@ const Xe = {
1023
1026
  class: ["card-header"]
1024
1027
  })
1025
1028
  }
1026
- }, St = {
1029
+ }, Ct = {
1027
1030
  divider: {
1028
1031
  root: "border-bottom w-100 m-1"
1029
1032
  }
1030
- }, Ct = {
1033
+ }, Tt = {
1031
1034
  image: {
1032
1035
  root: "position-relative d-inline-block",
1033
1036
  previewMask: "preview-button",
@@ -1061,7 +1064,7 @@ const Xe = {
1061
1064
  class: ["ps-1"]
1062
1065
  }),
1063
1066
  messageIcon: ({ props: e }) => {
1064
- var t, a, i, l, o;
1067
+ var t, a, i, o, l;
1065
1068
  return {
1066
1069
  class: [
1067
1070
  "toast-icon",
@@ -1069,14 +1072,14 @@ const Xe = {
1069
1072
  "text-primary": ((t = e.message) == null ? void 0 : t.severity) === "info",
1070
1073
  "text-success": ((a = e.message) == null ? void 0 : a.severity) === "success",
1071
1074
  "text-success-alternate": ((i = e.message) == null ? void 0 : i.severity) === "success-alternate",
1072
- "text-danger": ((l = e.message) == null ? void 0 : l.severity) === "error",
1073
- "text-warning": ((o = e.message) == null ? void 0 : o.severity) === "warn"
1075
+ "text-danger": ((o = e.message) == null ? void 0 : o.severity) === "error",
1076
+ "text-warning": ((l = e.message) == null ? void 0 : l.severity) === "warn"
1074
1077
  }
1075
1078
  ]
1076
1079
  };
1077
1080
  }
1078
1081
  }
1079
- }, Tt = {
1082
+ }, Pt = {
1080
1083
  tree: {
1081
1084
  node: "m-1",
1082
1085
  nodeToggleButton: ({ context: e }) => ({
@@ -1108,7 +1111,7 @@ const Xe = {
1108
1111
  pcFilterContainer: { root: "dropdown-item" },
1109
1112
  filterIcon: "d-none"
1110
1113
  }
1111
- }, jt = {
1114
+ }, _t = {
1112
1115
  treeSelect: {
1113
1116
  root: ({ props: e }) => ({
1114
1117
  class: [
@@ -1156,7 +1159,7 @@ const Xe = {
1156
1159
  filterIcon: "d-none"
1157
1160
  }
1158
1161
  }
1159
- }, _t = {
1162
+ }, jt = {
1160
1163
  fieldset: {
1161
1164
  root: () => ({
1162
1165
  class: [
@@ -1182,7 +1185,7 @@ const Xe = {
1182
1185
  ]
1183
1186
  })
1184
1187
  }
1185
- }, Pt = {
1188
+ }, Mt = {
1186
1189
  accordionPanel: {
1187
1190
  root: "card my-2"
1188
1191
  },
@@ -1221,46 +1224,104 @@ const Xe = {
1221
1224
  class: "table-overlay table-spinner"
1222
1225
  })
1223
1226
  }
1224
- }, Qi = {
1225
- ...Xe,
1226
- ...xt,
1227
+ }, Vt = {
1228
+ picklist: {
1229
+ root: " d-flex gap-3",
1230
+ pcMoveAllToSourceButton: { root: "btn btn-sm btn-outline-primary focus-ring " },
1231
+ pcMoveAllToTargetButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
1232
+ pcMoveToTargetButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
1233
+ pcMoveToSourceButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
1234
+ pcSourceMoveBottomButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
1235
+ pcSourceMoveDownButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
1236
+ pcSourceMoveUpButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
1237
+ pcSourceMoveTopButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
1238
+ pcTargetMoveBottomButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
1239
+ pcTargetMoveDownButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
1240
+ pcTargetMoveTopButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
1241
+ pcTargetMoveUpButton: { root: "btn btn-sm btn-outline-primary focus-ring" },
1242
+ sourceControls: "d-flex flex-column gap-1",
1243
+ transferControls: "d-flex flex-column gap-1",
1244
+ targetControls: "d-flex flex-column gap-1",
1245
+ pcListbox: {
1246
+ root: "",
1247
+ list: "list-unstyled list-group list-group-flush",
1248
+ option: ({ context: e }) => ({
1249
+ class: [
1250
+ "list-group-item d-flex cursor-pointer ",
1251
+ {
1252
+ disabled: e.disabled,
1253
+ active: e.selected
1254
+ }
1255
+ ]
1256
+ }),
1257
+ listContainer: "overflow-y-auto border rounded ",
1258
+ emptyMessage: "px-3 py-2"
1259
+ },
1260
+ sourceListContainer: " h-100 flex-1",
1261
+ targetListContainer: "h-100 flex-1"
1262
+ },
1263
+ listbox: {}
1264
+ }, Dt = {
1265
+ listbox: {
1266
+ root: "border rounded",
1267
+ list: "list-unstyled list-group list-group-flush",
1268
+ option: ({ context: e }) => ({
1269
+ class: [
1270
+ "list-group-item d-flex cursor-pointer align-items-center gap-1",
1271
+ {
1272
+ disabled: e.disabled,
1273
+ active: e.selected
1274
+ }
1275
+ ]
1276
+ }),
1277
+ listContainer: "overflow-y-auto",
1278
+ emptyMessage: "px-3 py-2",
1279
+ pcFilterContainer: { root: "d-flex w-100 cursor-pointer" },
1280
+ filterIcon: "d-none",
1281
+ pcFilter: { root: "form-control form-control-sm mx-2 mt-2 mb-1" }
1282
+ }
1283
+ }, lo = {
1227
1284
  ...Qe,
1228
- ...Ft,
1285
+ ...ht,
1229
1286
  ...et,
1230
- ...rt,
1231
- ...at,
1232
- ...vt,
1233
- ...dt,
1234
1287
  ...St,
1235
1288
  ...tt,
1236
- ...Ct,
1289
+ ...dt,
1237
1290
  ...it,
1238
- ...lt,
1239
- ...ot,
1240
- ...ct,
1241
1291
  ...ft,
1242
- ...ht,
1243
1292
  ...pt,
1293
+ ...Ct,
1294
+ ...at,
1295
+ ...Tt,
1296
+ ...ot,
1297
+ ...lt,
1298
+ ...nt,
1299
+ ...ut,
1244
1300
  ...gt,
1245
- ...Bt,
1301
+ ...wt,
1302
+ ...ct,
1246
1303
  ...bt,
1247
- ...kt,
1248
- ...$t,
1249
- ...ut,
1304
+ ...Ft,
1250
1305
  ...yt,
1251
- ...nt,
1306
+ ...Bt,
1307
+ ...$t,
1252
1308
  ...mt,
1253
- ...zt,
1309
+ ...xt,
1254
1310
  ...st,
1255
- ..._t,
1311
+ ...vt,
1312
+ ...zt,
1313
+ ...rt,
1256
1314
  ...jt,
1257
- ...Tt,
1315
+ ..._t,
1258
1316
  ...Pt,
1317
+ ...Mt,
1259
1318
  ...It,
1319
+ ...Vt,
1320
+ ...Dt,
1260
1321
  directives: {
1261
- ...wt
1322
+ ...kt
1262
1323
  }
1263
- }, de = /* @__PURE__ */ C({
1324
+ }, re = /* @__PURE__ */ z({
1264
1325
  __name: "ForgeAlert",
1265
1326
  props: {
1266
1327
  severity: { default: "primary" },
@@ -1280,32 +1341,32 @@ const Xe = {
1280
1341
  setup(e) {
1281
1342
  const t = e;
1282
1343
  return (a, i) => {
1283
- const l = Be;
1284
- return d(), y(l, W(G({ ...a.$attrs, ...t })), {
1344
+ const o = $e;
1345
+ return d(), x(o, G(Y({ ...a.$attrs, ...t })), {
1285
1346
  icon: f(() => [
1286
1347
  m("div", {
1287
- class: S(t.icon ? "me-2 pe-1" : "")
1348
+ class: P(t.icon ? "me-2 pe-1" : "")
1288
1349
  }, [
1289
- t.icon ? (d(), y(u(_), {
1350
+ t.icon ? (d(), x(c(I), {
1290
1351
  key: 0,
1291
1352
  "data-cy": "message-icon",
1292
1353
  icon: t.icon,
1293
- class: S(`text-${t.severity}`),
1354
+ class: P(`text-${t.severity}`),
1294
1355
  height: 35
1295
- }, null, 8, ["icon", "class"])) : z("", !0)
1356
+ }, null, 8, ["icon", "class"])) : T("", !0)
1296
1357
  ], 2)
1297
1358
  ]),
1298
1359
  closeicon: f(() => [
1299
- w(u(_), { icon: "bi:x" })
1360
+ k(c(I), { icon: "bi:x" })
1300
1361
  ]),
1301
1362
  default: f(() => [
1302
- B(a.$slots, "default")
1363
+ F(a.$slots, "default")
1303
1364
  ]),
1304
1365
  _: 3
1305
1366
  }, 16);
1306
1367
  };
1307
1368
  }
1308
- }), el = /* @__PURE__ */ C({
1369
+ }), no = /* @__PURE__ */ z({
1309
1370
  __name: "ForgeActionButton",
1310
1371
  props: {
1311
1372
  action: {},
@@ -1314,40 +1375,40 @@ const Xe = {
1314
1375
  params: { default: Array }
1315
1376
  },
1316
1377
  setup(e) {
1317
- const t = P(!1), a = e, i = async () => {
1378
+ const t = M(!1), a = e, i = async () => {
1318
1379
  t.value = !0;
1319
1380
  try {
1320
1381
  await a.action.apply(this, a.params);
1321
- } catch (l) {
1322
- await a.errorAction.apply(this, a.errorParams ? [...a.errorParams, l] : [l]);
1382
+ } catch (o) {
1383
+ await a.errorAction.apply(this, a.errorParams ? [...a.errorParams, o] : [o]);
1323
1384
  }
1324
1385
  t.value = !1;
1325
1386
  };
1326
- return (l, o) => {
1387
+ return (o, l) => {
1327
1388
  const n = q;
1328
- return d(), v(A, null, [
1329
- w(n, j({ ...a, ...l.$attrs }, {
1389
+ return d(), b(U, null, [
1390
+ k(n, _({ ...a, ...o.$attrs }, {
1330
1391
  loading: t.value,
1331
1392
  disabled: t.value || a.disabled,
1332
1393
  onClick: i
1333
1394
  }), null, 16, ["loading", "disabled"]),
1334
- w(u(Te))
1395
+ k(c(ze))
1335
1396
  ], 64);
1336
1397
  };
1337
1398
  }
1338
- }), tl = /* @__PURE__ */ C({
1399
+ }), so = /* @__PURE__ */ z({
1339
1400
  __name: "ForgeAutoComplete",
1340
1401
  setup(e) {
1341
- return (t, a) => (d(), y(u(je), j({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
1402
+ return (t, a) => (d(), x(c(Pe), _({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
1342
1403
  default: f(() => [
1343
- (d(!0), v(A, null, E(t.$slots, (i, l) => B(t.$slots, l, { slot: l })), 256))
1404
+ (d(!0), b(U, null, L(t.$slots, (i, o) => F(t.$slots, o, { slot: o })), 256))
1344
1405
  ]),
1345
1406
  _: 3
1346
1407
  }, 16));
1347
1408
  }
1348
- }), Mt = { class: "d-flex flex-column" }, Vt = ["for"], ye = /* @__PURE__ */ C({
1409
+ }), Ot = { class: "d-flex flex-column" }, At = ["for"], ye = /* @__PURE__ */ z({
1349
1410
  __name: "ForgeCheckbox",
1350
- props: /* @__PURE__ */ R({
1411
+ props: /* @__PURE__ */ E({
1351
1412
  label: { default: "" },
1352
1413
  value: {},
1353
1414
  modelValue: {},
@@ -1380,59 +1441,59 @@ const Xe = {
1380
1441
  }),
1381
1442
  emits: ["update:modelValue"],
1382
1443
  setup(e) {
1383
- const t = e, a = N(e, "modelValue"), { handleChange: i, errors: l, errorMessage: o } = ne(
1444
+ const t = e, a = N(e, "modelValue"), { handleChange: i, errors: o, errorMessage: l } = se(
1384
1445
  () => t.name ?? "",
1385
1446
  void 0,
1386
1447
  {
1387
1448
  type: "checkbox",
1388
1449
  checkedValue: a.value
1389
1450
  }
1390
- ), n = (p, c) => {
1391
- (t.disabled || t.readonly) && p.preventDefault(), t.name ? i(c) : a.value = c;
1392
- }, s = T(() => l.value.length > 0);
1393
- return (p, c) => {
1394
- const x = _e;
1395
- return d(), v("div", Mt, [
1396
- m("div", j({
1451
+ ), n = (p, u) => {
1452
+ (t.disabled || t.readonly) && p.preventDefault(), t.name ? i(u) : a.value = u;
1453
+ }, s = j(() => o.value.length > 0);
1454
+ return (p, u) => {
1455
+ const h = _e;
1456
+ return d(), b("div", Ot, [
1457
+ m("div", _({
1397
1458
  class: "d-flex",
1398
1459
  "data-cy": "checkbox-container",
1399
- onClick: c[2] || (c[2] = (r) => n(r, a.value))
1460
+ onClick: u[2] || (u[2] = (r) => n(r, a.value))
1400
1461
  }, { ...p.$attrs }), [
1401
- w(x, j({ ...t }, {
1462
+ k(h, _({ ...t }, {
1402
1463
  binary: "",
1403
1464
  modelValue: a.value,
1404
- "onUpdate:modelValue": c[0] || (c[0] = (r) => a.value = r),
1465
+ "onUpdate:modelValue": u[0] || (u[0] = (r) => a.value = r),
1405
1466
  "input-id": t.name,
1406
1467
  "input-class": { "is-invalid": s.value },
1407
1468
  class: t.disabled || t.readonly ? "" : "cursor-pointer"
1408
1469
  }), null, 16, ["modelValue", "input-id", "input-class", "class"]),
1409
1470
  m("label", {
1410
1471
  for: t.name,
1411
- onClick: c[1] || (c[1] = (r) => n(r, !a.value)),
1412
- class: S([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1472
+ onClick: u[1] || (u[1] = (r) => n(r, !a.value)),
1473
+ class: P([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1413
1474
  }, [
1414
- B(p.$slots, "default", {}, () => [
1415
- M(F(t.label), 1)
1475
+ F(p.$slots, "default", {}, () => [
1476
+ V($(t.label), 1)
1416
1477
  ])
1417
- ], 10, Vt)
1478
+ ], 10, At)
1418
1479
  ], 16),
1419
- J(m("small", {
1480
+ K(m("small", {
1420
1481
  "data-cy": "error",
1421
1482
  class: "text-invalid"
1422
- }, F(u(o)), 513), [
1423
- [Z, s.value]
1483
+ }, $(c(l)), 513), [
1484
+ [X, s.value]
1424
1485
  ])
1425
1486
  ]);
1426
1487
  };
1427
1488
  }
1428
- }), pe = /* @__PURE__ */ C({
1489
+ }), pe = /* @__PURE__ */ z({
1429
1490
  __name: "ForgeLoader",
1430
1491
  props: {
1431
1492
  severity: { default: "primary" },
1432
1493
  inLine: { type: Boolean, default: !1 }
1433
1494
  },
1434
1495
  setup(e) {
1435
- const t = e, a = T(() => ({
1496
+ const t = e, a = j(() => ({
1436
1497
  spin: () => ({
1437
1498
  class: [
1438
1499
  "spinner-border",
@@ -1442,20 +1503,20 @@ const Xe = {
1442
1503
  ]
1443
1504
  })
1444
1505
  }));
1445
- return (i, l) => {
1446
- const o = Pe;
1447
- return d(), v("div", {
1448
- class: S(i.inLine ? "" : "forge-loader")
1506
+ return (i, o) => {
1507
+ const l = je;
1508
+ return d(), b("div", {
1509
+ class: P(i.inLine ? "" : "forge-loader")
1449
1510
  }, [
1450
- w(o, {
1511
+ k(l, {
1451
1512
  "animation-duration": ".75",
1452
- class: S(`text-${t.severity === void 0 ? "primary" : t.severity}`),
1513
+ class: P(`text-${t.severity === void 0 ? "primary" : t.severity}`),
1453
1514
  pt: a.value
1454
1515
  }, null, 8, ["class", "pt"])
1455
1516
  ], 2);
1456
1517
  };
1457
1518
  }
1458
- }), Dt = ["href", "target"], al = /* @__PURE__ */ C({
1519
+ }), Nt = ["href", "target"], ro = /* @__PURE__ */ z({
1459
1520
  __name: "ForgeLink",
1460
1521
  props: {
1461
1522
  url: {},
@@ -1473,7 +1534,7 @@ const Xe = {
1473
1534
  iconName: {}
1474
1535
  },
1475
1536
  setup(e) {
1476
- const t = T(() => ({
1537
+ const t = j(() => ({
1477
1538
  [`link-${e.severity}`]: e.severity,
1478
1539
  [`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
1479
1540
  [`link-opacity-${e.opacity}`]: e.opacity,
@@ -1482,32 +1543,32 @@ const Xe = {
1482
1543
  [`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
1483
1544
  [`link-offset-${e.underlineOffset}`]: e.underlineOffset,
1484
1545
  "icon-link icon-link-hover": e.animateIconOnHover
1485
- })), a = T(() => ({
1546
+ })), a = j(() => ({
1486
1547
  "order-2": e.positionIconEnd,
1487
1548
  "me-1": !e.positionIconEnd && !e.animateIconOnHover,
1488
1549
  "ms-1": e.positionIconEnd && !e.animateIconOnHover,
1489
1550
  "ms-0": e.positionIconEnd && e.animateIconOnHover,
1490
1551
  "me-0": e.animateIconOnHover
1491
1552
  }));
1492
- return (i, l) => (d(), v("a", {
1553
+ return (i, o) => (d(), b("a", {
1493
1554
  id: "link",
1494
- class: S(["cursor-pointer d-flex text-break", t.value]),
1555
+ class: P(["cursor-pointer d-flex text-break", t.value]),
1495
1556
  href: i.url,
1496
1557
  target: i.target
1497
1558
  }, [
1498
- B(i.$slots, "default", {}, () => [
1499
- i.iconName ? (d(), y(u(_), {
1559
+ F(i.$slots, "default", {}, () => [
1560
+ i.iconName ? (d(), x(c(I), {
1500
1561
  key: 0,
1501
1562
  id: "link-icon",
1502
1563
  icon: i.iconName,
1503
- class: S(["bi my-auto", a.value])
1504
- }, null, 8, ["icon", "class"])) : z("", !0),
1505
- M(" " + F(i.label), 1)
1564
+ class: P(["bi my-auto", a.value])
1565
+ }, null, 8, ["icon", "class"])) : T("", !0),
1566
+ V(" " + $(i.label), 1)
1506
1567
  ])
1507
- ], 10, Dt));
1568
+ ], 10, Nt));
1508
1569
  }
1509
1570
  });
1510
- function Ot(e) {
1571
+ function Ut(e) {
1511
1572
  const t = {
1512
1573
  errorMessage: "",
1513
1574
  errorDetails: []
@@ -1518,22 +1579,22 @@ function Ot(e) {
1518
1579
  }
1519
1580
  return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
1520
1581
  }
1521
- function il(e, t) {
1582
+ function po(e, t) {
1522
1583
  return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
1523
1584
  }
1524
- function ll(e, t, a) {
1585
+ function co(e, t, a) {
1525
1586
  return { id: e, label: t ?? e.toString(), shortLabel: a };
1526
1587
  }
1527
- const Nt = {
1588
+ const Lt = {
1528
1589
  key: 0,
1529
1590
  class: "sticky-top py-3 error-bg",
1530
1591
  "data-cy": "error-wrapper"
1531
- }, At = { key: 0 }, Et = {
1592
+ }, Et = { key: 0 }, qt = {
1532
1593
  class: "d-flex w-100",
1533
1594
  "data-cy": "footer"
1534
- }, ol = /* @__PURE__ */ C({
1595
+ }, uo = /* @__PURE__ */ z({
1535
1596
  __name: "ForgeModal",
1536
- props: /* @__PURE__ */ R({
1597
+ props: /* @__PURE__ */ E({
1537
1598
  cancelText: { default: "Cancel" },
1538
1599
  submitText: { default: "Submit" },
1539
1600
  showFooter: { type: Boolean, default: !0 },
@@ -1593,7 +1654,7 @@ const Nt = {
1593
1654
  }),
1594
1655
  emits: ["update:visible", "update:error"],
1595
1656
  setup(e, { expose: t }) {
1596
- const a = N(e, "visible"), i = P(!1), l = e, o = P(!1), n = N(e, "error"), s = () => {
1657
+ const a = N(e, "visible"), i = M(!1), o = e, l = M(!1), n = N(e, "error"), s = () => {
1597
1658
  n.value = {
1598
1659
  hasError: !1,
1599
1660
  header: "",
@@ -1605,60 +1666,60 @@ const Nt = {
1605
1666
  });
1606
1667
  const p = () => {
1607
1668
  i.value = !1;
1608
- }, c = () => {
1669
+ }, u = () => {
1609
1670
  i.value = !0;
1610
- }, x = () => {
1611
- l.resetErrorOnClose && s(), a.value = !1;
1671
+ }, h = () => {
1672
+ o.resetErrorOnClose && s(), a.value = !1;
1612
1673
  }, r = async () => {
1613
- if (l.onConfirm) {
1614
- o.value = !0, n.value.hasError = !1;
1674
+ if (o.onConfirm) {
1675
+ l.value = !0, n.value.hasError = !1;
1615
1676
  try {
1616
- const $ = await l.onConfirm();
1617
- ($ || $ == null) && x();
1618
- } catch ($) {
1677
+ const g = await o.onConfirm();
1678
+ (g || g == null) && h();
1679
+ } catch (g) {
1619
1680
  n.value.hasError = !0;
1620
- const D = Ot($);
1621
- n.value.header = D.errorMessage, n.value.message = D.errorDetails;
1681
+ const C = Ut(g);
1682
+ n.value.header = C.errorMessage, n.value.message = C.errorDetails;
1622
1683
  }
1623
- o.value = !1;
1684
+ l.value = !1;
1624
1685
  }
1625
- }, h = T(() => ({
1686
+ }, w = j(() => ({
1626
1687
  root: [
1627
1688
  "modal modal-dialog modal-content h-auto m-0",
1628
1689
  {
1629
1690
  "mw-100 vh-100 vw-100 top-0 start-0": i.value,
1630
- "modal-sm": l.size === "sm",
1631
- "modal-lg": l.size === "lg",
1632
- "modal-xl": l.size === "xl"
1691
+ "modal-sm": o.size === "sm",
1692
+ "modal-lg": o.size === "lg",
1693
+ "modal-xl": o.size === "xl"
1633
1694
  }
1634
1695
  ],
1635
1696
  content: [
1636
1697
  "modal-body overflow-y-auto",
1637
1698
  {
1638
- [`${l.maxHeight}`]: l.maxHeight && !i.value,
1639
- [`${l.minHeight}`]: l.minHeight && !i.value,
1699
+ [`${o.maxHeight}`]: o.maxHeight && !i.value,
1700
+ [`${o.minHeight}`]: o.minHeight && !i.value,
1640
1701
  "pt-0": n.value.hasError
1641
1702
  }
1642
1703
  ]
1643
1704
  }));
1644
- return ($, D) => {
1645
- const O = q, U = Ie;
1646
- return d(), y(U, j(l, {
1647
- onMaximize: c,
1705
+ return (g, C) => {
1706
+ const S = q, A = Me;
1707
+ return d(), x(A, _(o, {
1708
+ onMaximize: u,
1648
1709
  onUnmaximize: p,
1649
- pt: h.value
1650
- }), ae({
1710
+ pt: w.value
1711
+ }), ie({
1651
1712
  closeicon: f(() => [
1652
- w(u(_), {
1713
+ k(c(I), {
1653
1714
  "data-cy": "close-icon",
1654
1715
  icon: "bi:x-lg",
1655
1716
  width: "18",
1656
1717
  height: "18",
1657
- onClick: x
1718
+ onClick: h
1658
1719
  })
1659
1720
  ]),
1660
1721
  maximizeicon: f(() => [
1661
- w(u(_), {
1722
+ k(c(I), {
1662
1723
  "data-cy": "maximisable-icon",
1663
1724
  icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1664
1725
  width: "16",
@@ -1667,52 +1728,52 @@ const Nt = {
1667
1728
  ]),
1668
1729
  _: 2
1669
1730
  }, [
1670
- E($.$slots, (b, k) => ({
1671
- name: k,
1672
- fn: f((I) => [
1673
- k == "default" ? (d(), v(A, { key: 0 }, [
1674
- n.value.hasError ? (d(), v("div", Nt, [
1675
- w(de, {
1731
+ L(g.$slots, (v, B) => ({
1732
+ name: B,
1733
+ fn: f((D) => [
1734
+ B == "default" ? (d(), b(U, { key: 0 }, [
1735
+ n.value.hasError ? (d(), b("div", Lt, [
1736
+ k(re, {
1676
1737
  severity: "danger",
1677
1738
  "data-cy": "error",
1678
1739
  class: "mb-0"
1679
1740
  }, {
1680
1741
  default: f(() => [
1681
1742
  m("p", {
1682
- class: S(n.value.message.length > 0 ? "my-auto" : "mb-0")
1683
- }, F(n.value.header), 3),
1684
- n.value.message.length > 0 ? (d(), v("ul", At, [
1685
- (d(!0), v(A, null, E(n.value.message, (g) => (d(), v("li", { key: g }, F(g), 1))), 128))
1686
- ])) : z("", !0)
1743
+ class: P(n.value.message.length > 0 ? "my-auto" : "mb-0")
1744
+ }, $(n.value.header), 3),
1745
+ n.value.message.length > 0 ? (d(), b("ul", Et, [
1746
+ (d(!0), b(U, null, L(n.value.message, (y) => (d(), b("li", { key: y }, $(y), 1))), 128))
1747
+ ])) : T("", !0)
1687
1748
  ]),
1688
1749
  _: 1
1689
1750
  })
1690
- ])) : z("", !0)
1691
- ], 64)) : z("", !0),
1692
- B($.$slots, k, W(G(I || {}))),
1693
- o.value ? B($.$slots, "loader", { key: 1 }, () => [
1694
- w(pe, { "data-cy": "loader" })
1695
- ]) : z("", !0)
1751
+ ])) : T("", !0)
1752
+ ], 64)) : T("", !0),
1753
+ F(g.$slots, B, G(Y(D || {}))),
1754
+ l.value ? F(g.$slots, "loader", { key: 1 }, () => [
1755
+ k(pe, { "data-cy": "loader" })
1756
+ ]) : T("", !0)
1696
1757
  ])
1697
1758
  })),
1698
- $.showFooter ? {
1759
+ g.showFooter ? {
1699
1760
  name: "footer",
1700
1761
  fn: f(() => [
1701
- m("div", Et, [
1702
- w(O, {
1703
- label: $.cancelText,
1704
- class: S(l.cancelClass),
1762
+ m("div", qt, [
1763
+ k(S, {
1764
+ label: g.cancelText,
1765
+ class: P(o.cancelClass),
1705
1766
  outlined: "",
1706
- onClick: x,
1767
+ onClick: h,
1707
1768
  id: "cancel-button",
1708
- type: l.cancelButtonType
1769
+ type: o.cancelButtonType
1709
1770
  }, null, 8, ["label", "class", "type"]),
1710
- w(O, {
1711
- label: $.submitText,
1712
- class: S([l.submitClass, "ms-auto"]),
1771
+ k(S, {
1772
+ label: g.submitText,
1773
+ class: P([o.submitClass, "ms-auto"]),
1713
1774
  onClick: r,
1714
1775
  id: "submit-button",
1715
- type: l.submitButtonType
1776
+ type: o.submitButtonType
1716
1777
  }, null, 8, ["label", "class", "type"])
1717
1778
  ])
1718
1779
  ]),
@@ -1721,9 +1782,9 @@ const Nt = {
1721
1782
  ]), 1040, ["pt"]);
1722
1783
  };
1723
1784
  }
1724
- }), Ut = ["id"], qt = { key: 0 }, Lt = { key: 0 }, Rt = { class: "d-flex justify-content-between align-items-center position-relative" }, Ht = { key: 1 }, Wt = { "data-cy": "readonly-value" }, Gt = /* @__PURE__ */ C({
1785
+ }), Rt = ["id"], Ht = { key: 0 }, Wt = { key: 0 }, Gt = { class: "d-flex justify-content-between align-items-center position-relative" }, Yt = { key: 1 }, Jt = { "data-cy": "readonly-value" }, Kt = /* @__PURE__ */ z({
1725
1786
  __name: "ForgeInlineEditor",
1726
- props: /* @__PURE__ */ R({
1787
+ props: /* @__PURE__ */ E({
1727
1788
  name: { default: "" },
1728
1789
  completeAction: {},
1729
1790
  errorAction: {},
@@ -1736,11 +1797,11 @@ const Nt = {
1736
1797
  }),
1737
1798
  emits: ["update:modelValue"],
1738
1799
  setup(e) {
1739
- const t = e, a = N(e, "modelValue"), i = P(!1), l = P(), o = () => {
1740
- var $;
1741
- i.value = !i.value, ($ = l.value) == null || $.focus();
1800
+ const t = e, a = N(e, "modelValue"), i = M(!1), o = M(), l = () => {
1801
+ var g;
1802
+ i.value = !i.value, (g = o.value) == null || g.focus();
1742
1803
  }, n = async () => {
1743
- if (h.value)
1804
+ if (w.value)
1744
1805
  return !1;
1745
1806
  if (a.value = r.value, t.completeAction)
1746
1807
  try {
@@ -1754,46 +1815,46 @@ const Nt = {
1754
1815
  i.value = !i.value;
1755
1816
  }, p = () => {
1756
1817
  r.value = null;
1757
- }, { errorMessage: c, errors: x, value: r } = ne(() => t.name, void 0, {
1818
+ }, { errorMessage: u, errors: h, value: r } = se(() => t.name, void 0, {
1758
1819
  initialValue: a.value
1759
1820
  });
1760
- oe(() => {
1821
+ ne(() => {
1761
1822
  r.value = a.value;
1762
1823
  });
1763
- const h = T(() => x.value.length > 0);
1764
- return ($, D) => {
1765
- const O = se, U = q;
1766
- return d(), v("div", {
1824
+ const w = j(() => h.value.length > 0);
1825
+ return (g, C) => {
1826
+ const S = ae, A = q;
1827
+ return d(), b("div", {
1767
1828
  id: t.name
1768
1829
  }, [
1769
- $.readonly ? (d(), v("div", Ht, [
1770
- B($.$slots, "default", {}, () => [
1771
- m("span", Wt, F(u(r)), 1)
1830
+ g.readonly ? (d(), b("div", Yt, [
1831
+ F(g.$slots, "default", {}, () => [
1832
+ m("span", Jt, $(c(r)), 1)
1772
1833
  ])
1773
- ])) : (d(), v("div", qt, [
1774
- i.value ? (d(), v("div", Lt, [
1775
- J((d(), v("div", Rt, [
1776
- B($.$slots, "editor", {
1777
- class: S({ "is-invalid": h.value }),
1834
+ ])) : (d(), b("div", Ht, [
1835
+ i.value ? (d(), b("div", Wt, [
1836
+ K((d(), b("div", Gt, [
1837
+ F(g.$slots, "editor", {
1838
+ class: P({ "is-invalid": w.value }),
1778
1839
  editFinished: n,
1779
1840
  cancel: s,
1780
- val: u(r)
1841
+ val: c(r)
1781
1842
  }, () => [
1782
- w(O, {
1783
- modelValue: u(r),
1784
- "onUpdate:modelValue": D[0] || (D[0] = (b) => Fe(r) ? r.value = b : null),
1843
+ k(S, {
1844
+ modelValue: c(r),
1845
+ "onUpdate:modelValue": C[0] || (C[0] = (v) => Fe(r) ? r.value = v : null),
1785
1846
  modelModifiers: { trim: !0 },
1786
1847
  "data-cy": "input",
1787
1848
  ref_key: "input",
1788
- ref: l,
1789
- class: S({ "is-invalid": h.value }),
1849
+ ref: o,
1850
+ class: P({ "is-invalid": w.value }),
1790
1851
  onKeydown: [
1791
1852
  le(n, ["enter"]),
1792
1853
  le(s, ["esc"])
1793
1854
  ]
1794
1855
  }, null, 8, ["modelValue", "class"])
1795
1856
  ]),
1796
- w(u(_), {
1857
+ k(c(I), {
1797
1858
  icon: "bi:x-circle",
1798
1859
  class: "mx-2 cursor-pointer",
1799
1860
  onClick: p,
@@ -1801,46 +1862,46 @@ const Nt = {
1801
1862
  "data-cy": "clear-icon"
1802
1863
  })
1803
1864
  ])), [
1804
- [u(Me), n]
1865
+ [c(Ie), n]
1805
1866
  ])
1806
- ])) : (d(), v("div", {
1867
+ ])) : (d(), b("div", {
1807
1868
  key: 1,
1808
1869
  class: "d-flex text-muted",
1809
- onClick: o,
1810
- onFocus: o
1870
+ onClick: l,
1871
+ onFocus: l
1811
1872
  }, [
1812
- B($.$slots, "default", {}, () => [
1873
+ F(g.$slots, "default", {}, () => [
1813
1874
  m("div", {
1814
- class: S(["pe-2 cursor-pointer", { "text-invalid": h.value }]),
1875
+ class: P(["pe-2 cursor-pointer", { "text-invalid": w.value }]),
1815
1876
  "data-cy": "value"
1816
- }, F(u(r) ? u(r) : "Click to edit"), 3)
1877
+ }, $(c(r) ? c(r) : "Click to edit"), 3)
1817
1878
  ]),
1818
- w(U, {
1879
+ k(A, {
1819
1880
  link: "",
1820
1881
  class: "p-0 m-0"
1821
1882
  }, {
1822
1883
  default: f(() => [
1823
- w(u(_), {
1884
+ k(c(I), {
1824
1885
  icon: "bi:pencil",
1825
- class: S(h.value ? "text-invalid" : "text-muted"),
1886
+ class: P(w.value ? "text-invalid" : "text-muted"),
1826
1887
  "data-cy": "edit-icon",
1827
- onKeydown: le(o, ["enter"])
1888
+ onKeydown: le(l, ["enter"])
1828
1889
  }, null, 8, ["class"])
1829
1890
  ]),
1830
1891
  _: 1
1831
1892
  })
1832
1893
  ], 32))
1833
1894
  ])),
1834
- J(m("small", {
1895
+ K(m("small", {
1835
1896
  "data-cy": "error",
1836
1897
  class: "text-invalid"
1837
- }, F(u(c)), 513), [
1838
- [Z, h.value]
1898
+ }, $(c(u)), 513), [
1899
+ [X, w.value]
1839
1900
  ])
1840
- ], 8, Ut);
1901
+ ], 8, Rt);
1841
1902
  };
1842
1903
  }
1843
- }), Yt = ["href"], nl = /* @__PURE__ */ C({
1904
+ }), Zt = ["href"], mo = /* @__PURE__ */ z({
1844
1905
  __name: "ForgeNavbar",
1845
1906
  props: {
1846
1907
  severity: { default: "light" },
@@ -1857,7 +1918,7 @@ const Nt = {
1857
1918
  unstyled: { type: Boolean }
1858
1919
  },
1859
1920
  setup(e) {
1860
- const t = e, a = T(() => ({
1921
+ const t = e, a = j(() => ({
1861
1922
  root: () => ({
1862
1923
  class: [
1863
1924
  "navbar container-fluid navbar-expand-lg",
@@ -1885,26 +1946,26 @@ const Nt = {
1885
1946
  ]
1886
1947
  })
1887
1948
  }));
1888
- return (i, l) => (d(), y(u(Ve), j({ ...t, ...i.$attrs }, {
1949
+ return (i, o) => (d(), x(c(Ve), _({ ...t, ...i.$attrs }, {
1889
1950
  pt: a.value,
1890
1951
  "data-cy": "navbar"
1891
- }), ae({
1952
+ }), ie({
1892
1953
  start: f(() => [
1893
1954
  m("a", {
1894
1955
  href: i.logoUrl,
1895
1956
  class: "navbar-brand ms-3",
1896
1957
  "data-cy": "logo"
1897
1958
  }, [
1898
- B(i.$slots, "logo", {}, () => [
1899
- l[0] || (l[0] = M(" Logo "))
1959
+ F(i.$slots, "logo", {}, () => [
1960
+ o[0] || (o[0] = V(" Logo "))
1900
1961
  ])
1901
- ], 8, Yt)
1962
+ ], 8, Zt)
1902
1963
  ]),
1903
1964
  buttonicon: f(() => [
1904
- B(i.$slots, "buttonIcon", {}, () => [
1905
- w(u(_), {
1965
+ F(i.$slots, "buttonIcon", {}, () => [
1966
+ k(c(I), {
1906
1967
  icon: "bi:list",
1907
- class: S(t.severity === "light" ? "text-black" : "text-white"),
1968
+ class: P(t.severity === "light" ? "text-black" : "text-white"),
1908
1969
  height: "24",
1909
1970
  "data-cy": "burger-icon"
1910
1971
  }, null, 8, ["class"])
@@ -1912,24 +1973,24 @@ const Nt = {
1912
1973
  ]),
1913
1974
  _: 2
1914
1975
  }, [
1915
- E(i.$slots, (o, n) => ({
1976
+ L(i.$slots, (l, n) => ({
1916
1977
  name: n,
1917
1978
  fn: f((s) => [
1918
- B(i.$slots, n, W(G(s)))
1979
+ F(i.$slots, n, G(Y(s)))
1919
1980
  ])
1920
1981
  }))
1921
1982
  ]), 1040, ["pt"]));
1922
1983
  }
1923
- }), Jt = { class: "border alternating-item-list" }, Kt = {
1984
+ }), Xt = { class: "border alternating-item-list" }, Qt = {
1924
1985
  key: 0,
1925
1986
  class: "p-2 border-top border-bottom",
1926
1987
  "data-cy": "title"
1927
- }, Zt = { class: "d-inline-block" }, Xt = {
1988
+ }, ea = { class: "d-inline-block" }, ta = {
1928
1989
  key: 1,
1929
1990
  class: "p-2 item d-flex justify-content-between align-items-center"
1930
- }, Qt = /* @__PURE__ */ C({
1991
+ }, aa = /* @__PURE__ */ z({
1931
1992
  __name: "ForgeMultiSelectPreview",
1932
- props: /* @__PURE__ */ R({
1993
+ props: /* @__PURE__ */ E({
1933
1994
  title: { default: "Selected Items" },
1934
1995
  orientation: { default: "row" },
1935
1996
  height: { default: "200px" },
@@ -1943,98 +2004,98 @@ const Nt = {
1943
2004
  }),
1944
2005
  emits: ["update:modelValue"],
1945
2006
  setup(e) {
1946
- const t = e, a = N(e, "modelValue"), i = (l) => {
1947
- a.value = a.value.filter((o) => o.id !== l);
2007
+ const t = e, a = N(e, "modelValue"), i = (o) => {
2008
+ a.value = a.value.filter((l) => l.id !== o);
1948
2009
  };
1949
- return (l, o) => {
1950
- const n = re, s = q;
1951
- return d(), v("div", {
1952
- class: S(l.orientation === "column" ? "row" : ""),
2010
+ return (o, l) => {
2011
+ const n = de, s = q;
2012
+ return d(), b("div", {
2013
+ class: P(o.orientation === "column" ? "row" : ""),
1953
2014
  "data-cy": "multiselect-preview"
1954
2015
  }, [
1955
2016
  m("div", {
1956
- class: S(l.orientation === "row" ? "col-12 mb-1" : "col"),
2017
+ class: P(o.orientation === "row" ? "col-12 mb-1" : "col"),
1957
2018
  "data-cy": "multiselect-container"
1958
2019
  }, [
1959
- w(n, j({
2020
+ k(n, _({
1960
2021
  modelValue: a.value,
1961
- "onUpdate:modelValue": o[0] || (o[0] = (p) => a.value = p)
1962
- }, { ...l.$attrs }, {
2022
+ "onUpdate:modelValue": l[0] || (l[0] = (p) => a.value = p)
2023
+ }, { ...o.$attrs }, {
1963
2024
  options: t.options ?? [],
1964
2025
  optionLabel: "label",
1965
- placeholder: l.multiselectPlaceholder,
2026
+ placeholder: o.multiselectPlaceholder,
1966
2027
  "data-cy": "multiselect"
1967
2028
  }), {
1968
2029
  default: f(() => [
1969
- (d(!0), v(A, null, E(l.$slots, (p, c) => B(l.$slots, c, { slot: c })), 256))
2030
+ (d(!0), b(U, null, L(o.$slots, (p, u) => F(o.$slots, u, { slot: u })), 256))
1970
2031
  ]),
1971
2032
  _: 3
1972
2033
  }, 16, ["modelValue", "options", "placeholder"]),
1973
- B(l.$slots, "after-multi-select")
2034
+ F(o.$slots, "after-multi-select")
1974
2035
  ], 2),
1975
2036
  m("div", {
1976
- class: S(l.orientation === "row" ? "col-12" : "col"),
2037
+ class: P(o.orientation === "row" ? "col-12" : "col"),
1977
2038
  "data-cy": "options-preview"
1978
2039
  }, [
1979
2040
  m("div", {
1980
- style: Se({ height: l.height }),
2041
+ style: Se({ height: o.height }),
1981
2042
  class: "overflow-auto"
1982
2043
  }, [
1983
- m("div", Jt, [
1984
- l.title ? (d(), v("div", Kt, F(l.title), 1)) : z("", !0),
1985
- (d(!0), v(A, null, E(a.value, (p) => (d(), v("div", {
2044
+ m("div", Xt, [
2045
+ o.title ? (d(), b("div", Qt, $(o.title), 1)) : T("", !0),
2046
+ (d(!0), b(U, null, L(a.value, (p) => (d(), b("div", {
1986
2047
  key: p.id,
1987
2048
  class: "p-2 item d-flex justify-content-between align-items-center"
1988
2049
  }, [
1989
- B(l.$slots, "list-item", { item: p }, () => [
1990
- m("span", Zt, F(p.shortLabel ? p.shortLabel : p.label), 1)
2050
+ F(o.$slots, "list-item", { item: p }, () => [
2051
+ m("span", ea, $(p.shortLabel ? p.shortLabel : p.label), 1)
1991
2052
  ]),
1992
- l.canRemoveItemFromPreview ? (d(), y(s, {
2053
+ o.canRemoveItemFromPreview ? (d(), x(s, {
1993
2054
  key: 0,
1994
2055
  link: "",
1995
2056
  class: "m-0 p-0 d-flex align-items-center",
1996
- onClick: (c) => i(p.id)
2057
+ onClick: (u) => i(p.id)
1997
2058
  }, {
1998
2059
  default: f(() => [
1999
- w(u(_), {
2060
+ k(c(I), {
2000
2061
  icon: "bi:x",
2001
2062
  class: "close-icon",
2002
2063
  "data-cy": `close-icon-${p.id}`
2003
2064
  }, null, 8, ["data-cy"])
2004
2065
  ]),
2005
2066
  _: 2
2006
- }, 1032, ["onClick"])) : z("", !0)
2067
+ }, 1032, ["onClick"])) : T("", !0)
2007
2068
  ]))), 128)),
2008
- a.value == null || a.value.length == 0 ? (d(), v("div", Xt, F(t.optionsPreviewEmptyText), 1)) : z("", !0)
2069
+ a.value == null || a.value.length == 0 ? (d(), b("div", ta, $(t.optionsPreviewEmptyText), 1)) : T("", !0)
2009
2070
  ])
2010
2071
  ], 4)
2011
2072
  ], 2)
2012
2073
  ], 2);
2013
2074
  };
2014
2075
  }
2015
- }), ea = { class: "d-flex justify-content-between pb-2" }, ta = {
2076
+ }), ia = { class: "d-flex justify-content-between pb-2" }, oa = {
2016
2077
  "data-cy": "title",
2017
2078
  class: "my-auto"
2018
- }, aa = {
2079
+ }, la = {
2019
2080
  "data-cy": "slot",
2020
2081
  class: "d-flex align-items-center"
2021
- }, sl = /* @__PURE__ */ C({
2082
+ }, vo = /* @__PURE__ */ z({
2022
2083
  __name: "ForgePageHeader",
2023
2084
  props: {
2024
2085
  title: {}
2025
2086
  },
2026
2087
  setup(e) {
2027
2088
  const t = e;
2028
- return (a, i) => (d(), v("div", ea, [
2029
- m("h3", ta, F(t.title), 1),
2030
- m("div", aa, [
2031
- B(a.$slots, "default")
2089
+ return (a, i) => (d(), b("div", ia, [
2090
+ m("h3", oa, $(t.title), 1),
2091
+ m("div", la, [
2092
+ F(a.$slots, "default")
2032
2093
  ])
2033
2094
  ]));
2034
2095
  }
2035
- }), ia = { class: "d-flex" }, la = { "data-cy": "before-slot" }, oa = { class: "position-relative w-100" }, na = { "data-cy": "after-slot" }, xe = /* @__PURE__ */ C({
2096
+ }), na = { class: "d-flex" }, sa = { "data-cy": "before-slot" }, ra = { class: "position-relative w-100" }, da = { "data-cy": "after-slot" }, xe = /* @__PURE__ */ z({
2036
2097
  __name: "ForgeDatepicker",
2037
- props: /* @__PURE__ */ R({
2098
+ props: /* @__PURE__ */ E({
2038
2099
  severity: { default: "primary" },
2039
2100
  modelValue: {},
2040
2101
  defaultValue: {},
@@ -2107,12 +2168,12 @@ const Nt = {
2107
2168
  }),
2108
2169
  emits: ["update:modelValue"],
2109
2170
  setup(e) {
2110
- const t = e, a = N(e, "modelValue"), { errors: i, errorMessage: l, handleChange: o, handleBlur: n, setValue: s } = ne(() => t.name, void 0, {
2171
+ const t = e, a = N(e, "modelValue"), { errors: i, errorMessage: o, handleChange: l, handleBlur: n, setValue: s } = se(() => t.name, void 0, {
2111
2172
  initialValue: a.value
2112
2173
  }), p = () => {
2113
2174
  s(null), a.value = null;
2114
- }, c = T(() => i.value.length > 0), x = T(() => ({
2115
- day: ({ context: r, props: h, attrs: $ }) => ({
2175
+ }, u = j(() => i.value.length > 0), h = j(() => ({
2176
+ day: ({ context: r, props: w, attrs: g }) => ({
2116
2177
  class: [
2117
2178
  "d-flex justify-content-center align-items-center",
2118
2179
  {
@@ -2127,19 +2188,19 @@ const Nt = {
2127
2188
  //This is used to show which dates should be shows as 'disabled'. The first part of logic is used to only (due to prime vue passing
2128
2189
  //disabled for otherMonth dates) show the disabled styling for current calendar dates. The second part of logic is used to set the
2129
2190
  //disabled state for dates out of the min/max date range, as they would also come through the context as disabled dates without knowing why
2130
- "text-grey-300": r.disabled && !r.otherMonth || h.minDate != null && new Date(r.date.year, r.date.month, r.date.day) < h.minDate || h.maxDate != null && new Date(r.date.year, r.date.month, r.date.day) > h.maxDate,
2131
- "fw-500": r.disabled && !r.otherMonth || h.minDate != null && new Date(r.date.year, r.date.month, r.date.day) < h.minDate || h.maxDate != null && new Date(r.date.year, r.date.month, r.date.day) > h.maxDate
2191
+ "text-grey-300": r.disabled && !r.otherMonth || w.minDate != null && new Date(r.date.year, r.date.month, r.date.day) < w.minDate || w.maxDate != null && new Date(r.date.year, r.date.month, r.date.day) > w.maxDate,
2192
+ "fw-500": r.disabled && !r.otherMonth || w.minDate != null && new Date(r.date.year, r.date.month, r.date.day) < w.minDate || w.maxDate != null && new Date(r.date.year, r.date.month, r.date.day) > w.maxDate
2132
2193
  },
2133
2194
  // Severities
2134
2195
  {
2135
- "date-primary": $.severity === void 0 || $.severity === "primary",
2136
- "date-brand": $.severity === "brand",
2137
- "date-secondary": $.severity === "secondary",
2138
- "date-success": $.severity === "success",
2139
- "date-success-alternate": $.severity === "success-alternate",
2140
- "date-warning": $.severity === "warning",
2141
- "date-danger": $.severity === "danger",
2142
- "date-info": $.severity === "info"
2196
+ "date-primary": g.severity === void 0 || g.severity === "primary",
2197
+ "date-brand": g.severity === "brand",
2198
+ "date-secondary": g.severity === "secondary",
2199
+ "date-success": g.severity === "success",
2200
+ "date-success-alternate": g.severity === "success-alternate",
2201
+ "date-warning": g.severity === "warning",
2202
+ "date-danger": g.severity === "danger",
2203
+ "date-info": g.severity === "info"
2143
2204
  }
2144
2205
  ]
2145
2206
  }),
@@ -2216,66 +2277,66 @@ const Nt = {
2216
2277
  ]
2217
2278
  })
2218
2279
  }));
2219
- return (r, h) => {
2220
- const $ = De;
2221
- return d(), v(A, null, [
2222
- m("div", ia, [
2223
- m("span", la, [
2224
- B(r.$slots, "before")
2280
+ return (r, w) => {
2281
+ const g = De;
2282
+ return d(), b(U, null, [
2283
+ m("div", na, [
2284
+ m("span", sa, [
2285
+ F(r.$slots, "before")
2225
2286
  ]),
2226
- m("div", oa, [
2227
- w($, j({ ...t, ...r.$attrs }, {
2228
- pt: x.value,
2287
+ m("div", ra, [
2288
+ k(g, _({ ...t, ...r.$attrs }, {
2289
+ pt: h.value,
2229
2290
  modelValue: a.value,
2230
2291
  "onUpdate:modelValue": [
2231
- h[0] || (h[0] = (D) => a.value = D),
2232
- u(o)
2292
+ w[0] || (w[0] = (C) => a.value = C),
2293
+ c(l)
2233
2294
  ],
2234
- onBlur: h[1] || (h[1] = () => u(n)),
2235
- "input-class": { "text-truncate": !0, "datepicker-invalid": c.value, "pe-5": t.showIcon && t.modelValue, "pe-4": (t.showIcon || t.modelValue) && !(t.showIcon && t.modelValue) }
2295
+ onBlur: w[1] || (w[1] = () => c(n)),
2296
+ "input-class": { "text-truncate": !0, "datepicker-invalid": u.value, "pe-5": t.showIcon && t.modelValue, "pe-4": (t.showIcon || t.modelValue) && !(t.showIcon && t.modelValue) }
2236
2297
  }), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
2237
- J(w(u(_), {
2298
+ K(k(c(I), {
2238
2299
  "data-cy": "icon",
2239
2300
  icon: "bi:calendar4",
2240
- class: S(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white pe-none", `${c.value ? "text-danger-dark" : "text-muted"}`])
2301
+ class: P(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white pe-none", `${u.value ? "text-danger-dark" : "text-muted"}`])
2241
2302
  }, null, 8, ["class"]), [
2242
- [Z, t.showIcon && !t.inline]
2303
+ [X, t.showIcon && !t.inline]
2243
2304
  ]),
2244
- J(w(u(_), {
2305
+ K(k(c(I), {
2245
2306
  "data-cy": "icon",
2246
2307
  icon: "bi:x",
2247
2308
  onClick: p,
2248
- class: S(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
2309
+ class: P(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
2249
2310
  }, null, 8, ["class"]), [
2250
- [Z, t.modelValue && !t.inline]
2311
+ [X, t.modelValue && !t.inline]
2251
2312
  ])
2252
2313
  ]),
2253
- m("span", na, [
2254
- B(r.$slots, "after")
2314
+ m("span", da, [
2315
+ F(r.$slots, "after")
2255
2316
  ])
2256
2317
  ]),
2257
- J(m("small", {
2318
+ K(m("small", {
2258
2319
  "data-cy": "error",
2259
2320
  class: "text-invalid"
2260
- }, F(u(l)), 513), [
2261
- [Z, c.value]
2321
+ }, $(c(o)), 513), [
2322
+ [X, u.value]
2262
2323
  ])
2263
2324
  ], 64);
2264
2325
  };
2265
2326
  }
2266
- }), rl = /* @__PURE__ */ C({
2327
+ }), fo = /* @__PURE__ */ z({
2267
2328
  __name: "ForgeRemainingCharacters",
2268
2329
  props: {
2269
2330
  maxCount: { default: 300 },
2270
2331
  currentCount: {}
2271
2332
  },
2272
2333
  setup(e) {
2273
- const t = e, a = T(() => t.maxCount - t.currentCount);
2274
- return (i, l) => (d(), v("div", {
2275
- class: S(a.value < 0 ? "text-danger" : "")
2276
- }, "Remaining characters: " + F(a.value), 3));
2334
+ const t = e, a = j(() => t.maxCount - t.currentCount);
2335
+ return (i, o) => (d(), b("div", {
2336
+ class: P(a.value < 0 ? "text-danger" : "")
2337
+ }, "Remaining characters: " + $(a.value), 3));
2277
2338
  }
2278
- }), sa = { class: "d-flex justify-content-between" }, dl = /* @__PURE__ */ C({
2339
+ }), pa = { class: "d-flex justify-content-between" }, go = /* @__PURE__ */ z({
2279
2340
  __name: "ForgeForm",
2280
2341
  props: {
2281
2342
  onSubmit: {},
@@ -2287,96 +2348,96 @@ const Nt = {
2287
2348
  hideCancel: { type: Boolean, default: !1 }
2288
2349
  },
2289
2350
  setup(e) {
2290
- const t = e, a = P(!1), i = P({
2351
+ const t = e, a = M(!1), i = M({
2291
2352
  hasError: !1,
2292
2353
  message: ""
2293
2354
  });
2294
- async function l() {
2355
+ async function o() {
2295
2356
  a.value = !0, i.value.hasError = !1;
2296
2357
  try {
2297
2358
  await t.onSubmit();
2298
- } catch (o) {
2299
- i.value.hasError = !0, o.message && (i.value.message = o.message);
2359
+ } catch (l) {
2360
+ i.value.hasError = !0, l.message && (i.value.message = l.message);
2300
2361
  }
2301
2362
  a.value = !1;
2302
2363
  }
2303
- return (o, n) => {
2364
+ return (l, n) => {
2304
2365
  const s = q;
2305
- return d(), v("form", j(o.$attrs, {
2366
+ return d(), b("form", _(l.$attrs, {
2306
2367
  novalidate: "",
2307
2368
  class: "position-relative shadow-sm border p-4 bg-white",
2308
- onSubmit: X(l, ["prevent"])
2369
+ onSubmit: Q(o, ["prevent"])
2309
2370
  }), [
2310
- o.hideTitle ? z("", !0) : (d(), v(A, { key: 0 }, [
2311
- B(o.$slots, "title", {}, () => [
2371
+ l.hideTitle ? T("", !0) : (d(), b(U, { key: 0 }, [
2372
+ F(l.$slots, "title", {}, () => [
2312
2373
  m("h3", {
2313
- class: S(o.titleClass),
2374
+ class: P(l.titleClass),
2314
2375
  "data-cy": "form-title"
2315
- }, F(o.title), 3)
2376
+ }, $(l.title), 3)
2316
2377
  ]),
2317
2378
  n[1] || (n[1] = m("hr", null, null, -1))
2318
2379
  ], 64)),
2319
- i.value.hasError ? (d(), y(de, {
2380
+ i.value.hasError ? (d(), x(re, {
2320
2381
  key: 1,
2321
2382
  severity: "danger",
2322
2383
  "data-cy": "error"
2323
2384
  }, {
2324
2385
  default: f(() => [
2325
- B(o.$slots, "error", {
2386
+ F(l.$slots, "error", {
2326
2387
  error: i.value.message
2327
2388
  }, () => [
2328
- M(F(i.value.message), 1)
2389
+ V($(i.value.message), 1)
2329
2390
  ])
2330
2391
  ]),
2331
2392
  _: 3
2332
- })) : z("", !0),
2333
- B(o.$slots, "default"),
2334
- m("div", sa, [
2335
- B(o.$slots, "cancel", {}, () => [
2336
- o.hideCancel ? z("", !0) : (d(), y(s, {
2393
+ })) : T("", !0),
2394
+ F(l.$slots, "default"),
2395
+ m("div", pa, [
2396
+ F(l.$slots, "cancel", {}, () => [
2397
+ l.hideCancel ? T("", !0) : (d(), x(s, {
2337
2398
  key: 0,
2338
2399
  "data-cy": "cancel-btn",
2339
2400
  type: "reset",
2340
2401
  severity: "secondary",
2341
2402
  outlined: "",
2342
- onClick: n[0] || (n[0] = (p) => o.$emit("cancel"))
2403
+ onClick: n[0] || (n[0] = (p) => l.$emit("cancel"))
2343
2404
  }, {
2344
2405
  default: f(() => [
2345
- M(F(o.cancelText), 1)
2406
+ V($(l.cancelText), 1)
2346
2407
  ]),
2347
2408
  _: 1
2348
2409
  }))
2349
2410
  ]),
2350
- B(o.$slots, "submit", { submit: l }, () => [
2351
- w(s, {
2411
+ F(l.$slots, "submit", { submit: o }, () => [
2412
+ k(s, {
2352
2413
  "data-cy": "submit-btn",
2353
2414
  type: "submit",
2354
2415
  severity: "primary",
2355
2416
  class: "ms-auto"
2356
2417
  }, {
2357
2418
  default: f(() => [
2358
- M(F(o.submitText), 1)
2419
+ V($(l.submitText), 1)
2359
2420
  ]),
2360
2421
  _: 1
2361
2422
  })
2362
2423
  ])
2363
2424
  ]),
2364
- a.value ? (d(), y(pe, {
2425
+ a.value ? (d(), x(pe, {
2365
2426
  key: 2,
2366
2427
  "data-cy": "loading-spinner"
2367
- })) : z("", !0)
2428
+ })) : T("", !0)
2368
2429
  ], 16);
2369
2430
  };
2370
2431
  }
2371
- }), ra = {
2432
+ }), ca = {
2372
2433
  key: 1,
2373
2434
  class: "d-flex flex-column w-100"
2374
- }, da = ["for"], pa = {
2435
+ }, ua = ["for"], ma = {
2375
2436
  key: 0,
2376
2437
  class: "text-danger fw-600"
2377
- }, pl = /* @__PURE__ */ C({
2438
+ }, bo = /* @__PURE__ */ z({
2378
2439
  __name: "ForgeFormField",
2379
- props: /* @__PURE__ */ R({
2440
+ props: /* @__PURE__ */ E({
2380
2441
  name: {},
2381
2442
  fieldLabelPosition: { default: "top" },
2382
2443
  fieldLabel: {},
@@ -2391,106 +2452,106 @@ const Nt = {
2391
2452
  }),
2392
2453
  emits: ["update:modelValue"],
2393
2454
  setup(e) {
2394
- const t = N(e, "modelValue"), a = e, i = (x) => {
2395
- a.type == "number" ? s(x.value) : s(x);
2396
- }, { errors: l, value: o, errorMessage: n, handleChange: s, handleBlur: p } = ne(() => a.name, void 0, {
2455
+ const t = N(e, "modelValue"), a = e, i = (h) => {
2456
+ a.type == "number" ? s(h.value) : s(h);
2457
+ }, { errors: o, value: l, errorMessage: n, handleChange: s, handleBlur: p } = se(() => a.name, void 0, {
2397
2458
  initialValue: t.value
2398
- }), c = T(() => l.value.length > 0);
2399
- return Q(() => o.value, (x) => {
2400
- t.value = x;
2401
- }, { immediate: !0 }), (x, r) => {
2402
- const h = Ne, $ = Oe, D = se, O = ie, U = re, b = xe;
2403
- return a.type === "checkbox" ? (d(), y(ye, j({
2459
+ }), u = j(() => o.value.length > 0);
2460
+ return W(() => l.value, (h) => {
2461
+ t.value = h;
2462
+ }, { immediate: !0 }), (h, r) => {
2463
+ const w = Ae, g = Oe, C = ae, S = oe, A = de, v = xe;
2464
+ return a.type === "checkbox" ? (d(), x(ye, _({
2404
2465
  key: 0,
2405
2466
  id: a.name,
2406
2467
  label: a.fieldLabel
2407
- }, x.$attrs, {
2468
+ }, h.$attrs, {
2408
2469
  name: a.name,
2409
2470
  modelValue: t.value,
2410
- "onUpdate:modelValue": r[0] || (r[0] = (k) => t.value = k)
2411
- }), null, 16, ["id", "label", "name", "modelValue"])) : (d(), v("div", ra, [
2471
+ "onUpdate:modelValue": r[0] || (r[0] = (B) => t.value = B)
2472
+ }), null, 16, ["id", "label", "name", "modelValue"])) : (d(), b("div", ca, [
2412
2473
  m("div", {
2413
2474
  "data-cy": "input-wrapper",
2414
- class: S(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
2475
+ class: P(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
2415
2476
  }, [
2416
2477
  m("label", {
2417
2478
  for: a.name,
2418
- class: S(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
2479
+ class: P(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
2419
2480
  }, [
2420
- M(F(a.fieldLabel) + " ", 1),
2421
- x.required ? (d(), v("span", pa, "*")) : z("", !0)
2422
- ], 10, da),
2423
- B(x.$slots, "default", W(G({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
2424
- a.type === "number" ? (d(), y(u(fe), j({
2481
+ V($(a.fieldLabel) + " ", 1),
2482
+ h.required ? (d(), b("span", ma, "*")) : T("", !0)
2483
+ ], 10, ua),
2484
+ F(h.$slots, "default", G(Y({ modelValue: t.value, updateModel: c(s), hasErrors: u.value })), () => [
2485
+ a.type === "number" ? (d(), x(c(fe), _({
2425
2486
  key: 0,
2426
2487
  id: a.name
2427
- }, x.$attrs, {
2488
+ }, h.$attrs, {
2428
2489
  placeholder: a.placeholder,
2429
- "input-class": { "is-invalid": c.value },
2430
- class: { "is-invalid": c.value },
2490
+ "input-class": { "is-invalid": u.value },
2491
+ class: { "is-invalid": u.value },
2431
2492
  onInput: i,
2432
2493
  modelValue: t.value,
2433
- "onUpdate:modelValue": r[1] || (r[1] = (k) => t.value = k)
2434
- }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), y(h, j({
2494
+ "onUpdate:modelValue": r[1] || (r[1] = (B) => t.value = B)
2495
+ }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), x(w, _({
2435
2496
  key: 1,
2436
2497
  id: a.name
2437
- }, x.$attrs, {
2498
+ }, h.$attrs, {
2438
2499
  placeholder: a.placeholder,
2439
- class: { "is-invalid": c.value },
2500
+ class: { "is-invalid": u.value },
2440
2501
  modelValue: t.value,
2441
- "onUpdate:modelValue": r[2] || (r[2] = (k) => t.value = k),
2502
+ "onUpdate:modelValue": r[2] || (r[2] = (B) => t.value = B),
2442
2503
  onInput: i,
2443
- onBlur: u(p)
2444
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), y($, j({
2504
+ onBlur: c(p)
2505
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), x(g, _({
2445
2506
  key: 2,
2446
2507
  id: a.name
2447
- }, x.$attrs, {
2508
+ }, h.$attrs, {
2448
2509
  placeholder: a.placeholder,
2449
2510
  mask: a.mask,
2450
- class: { "is-invalid": c.value },
2511
+ class: { "is-invalid": u.value },
2451
2512
  modelValue: t.value,
2452
- "onUpdate:modelValue": r[3] || (r[3] = (k) => t.value = k),
2513
+ "onUpdate:modelValue": r[3] || (r[3] = (B) => t.value = B),
2453
2514
  onComplete: i,
2454
- onBlur: u(p)
2455
- }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), y(D, j({
2515
+ onBlur: c(p)
2516
+ }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), x(C, _({
2456
2517
  key: 3,
2457
2518
  id: a.name
2458
- }, x.$attrs, {
2519
+ }, h.$attrs, {
2459
2520
  placeholder: a.placeholder,
2460
- class: { "is-invalid": c.value },
2521
+ class: { "is-invalid": u.value },
2461
2522
  modelValue: t.value,
2462
- "onUpdate:modelValue": r[4] || (r[4] = (k) => t.value = k),
2523
+ "onUpdate:modelValue": r[4] || (r[4] = (B) => t.value = B),
2463
2524
  onInput: i,
2464
- onBlur: u(p)
2465
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), y(O, j({ key: 4 }, { ...a, ...x.$attrs }, {
2525
+ onBlur: c(p)
2526
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), x(S, _({ key: 4 }, { ...a, ...h.$attrs }, {
2466
2527
  modelValue: t.value,
2467
- "onUpdate:modelValue": r[5] || (r[5] = (k) => t.value = k),
2468
- class: { "is-invalid": c.value }
2469
- }), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), y(U, j({ key: 5 }, { ...a, ...x.$attrs }, {
2528
+ "onUpdate:modelValue": r[5] || (r[5] = (B) => t.value = B),
2529
+ class: { "is-invalid": u.value }
2530
+ }), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), x(A, _({ key: 5 }, { ...a, ...h.$attrs }, {
2470
2531
  modelValue: t.value,
2471
- "onUpdate:modelValue": r[6] || (r[6] = (k) => t.value = k),
2472
- class: { "is-invalid": c.value }
2473
- }), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), y(Qt, j({ key: 6 }, { ...a, ...x.$attrs }, {
2532
+ "onUpdate:modelValue": r[6] || (r[6] = (B) => t.value = B),
2533
+ class: { "is-invalid": u.value }
2534
+ }), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), x(aa, _({ key: 6 }, { ...a, ...h.$attrs }, {
2474
2535
  modelValue: t.value,
2475
- "onUpdate:modelValue": r[7] || (r[7] = (k) => t.value = k),
2476
- class: { "is-invalid": c.value }
2477
- }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), y(b, j({ key: 7 }, { ...a, ...x.$attrs }, {
2536
+ "onUpdate:modelValue": r[7] || (r[7] = (B) => t.value = B),
2537
+ class: { "is-invalid": u.value }
2538
+ }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), x(v, _({ key: 7 }, { ...a, ...h.$attrs }, {
2478
2539
  modelValue: t.value,
2479
- "onUpdate:modelValue": r[8] || (r[8] = (k) => t.value = k),
2480
- class: { "is-invalid": c.value }
2481
- }), null, 16, ["modelValue", "class"])) : z("", !0)
2540
+ "onUpdate:modelValue": r[8] || (r[8] = (B) => t.value = B),
2541
+ class: { "is-invalid": u.value }
2542
+ }), null, 16, ["modelValue", "class"])) : T("", !0)
2482
2543
  ])
2483
2544
  ], 2),
2484
- J(m("small", {
2545
+ K(m("small", {
2485
2546
  "data-cy": "error",
2486
2547
  class: "invalid-feedback"
2487
- }, F(u(n)), 513), [
2488
- [Z, c.value && a.type !== "multiselect" && a.type !== "datepicker"]
2548
+ }, $(c(n)), 513), [
2549
+ [X, u.value && a.type !== "multiselect" && a.type !== "datepicker"]
2489
2550
  ])
2490
2551
  ]));
2491
2552
  };
2492
2553
  }
2493
- }), cl = /* @__PURE__ */ C({
2554
+ }), yo = /* @__PURE__ */ z({
2494
2555
  __name: "ForgeChip",
2495
2556
  props: {
2496
2557
  chipSeverity: { default: "primary" },
@@ -2506,7 +2567,7 @@ const Nt = {
2506
2567
  unstyled: { type: Boolean }
2507
2568
  },
2508
2569
  setup(e) {
2509
- const t = e, a = T(() => ({
2570
+ const t = e, a = j(() => ({
2510
2571
  root: [
2511
2572
  "badge d-inline-flex align-items-center border me-1 p-1",
2512
2573
  {
@@ -2524,17 +2585,17 @@ const Nt = {
2524
2585
  }
2525
2586
  ]
2526
2587
  }));
2527
- return (i, l) => {
2528
- const o = Ae;
2529
- return d(), y(o, j({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
2588
+ return (i, o) => {
2589
+ const l = Ne;
2590
+ return d(), x(l, _({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
2530
2591
  default: f(() => [
2531
- (d(!0), v(A, null, E(i.$slots, (n, s) => B(i.$slots, s, { slot: s })), 256))
2592
+ (d(!0), b(U, null, L(i.$slots, (n, s) => F(i.$slots, s, { slot: s })), 256))
2532
2593
  ]),
2533
2594
  _: 3
2534
2595
  }, 16, ["pt"]);
2535
2596
  };
2536
2597
  }
2537
- }), ul = /* @__PURE__ */ C({
2598
+ }), xo = /* @__PURE__ */ z({
2538
2599
  __name: "ForgeProgressBar",
2539
2600
  props: {
2540
2601
  severity: { default: "primary" },
@@ -2550,7 +2611,7 @@ const Nt = {
2550
2611
  unstyled: { type: Boolean }
2551
2612
  },
2552
2613
  setup(e) {
2553
- const t = e, a = T(() => t.striped ? "progress-bar-striped" : null), i = T(() => t.animate ? "progress-bar-animated" : null), l = T(() => {
2614
+ const t = e, a = j(() => t.striped ? "progress-bar-striped" : null), i = j(() => t.animate ? "progress-bar-animated" : null), o = j(() => {
2554
2615
  switch (t.severity) {
2555
2616
  case "brand":
2556
2617
  return "bg-brand";
@@ -2571,26 +2632,26 @@ const Nt = {
2571
2632
  default:
2572
2633
  return "bg-primary";
2573
2634
  }
2574
- }), o = T(() => ({
2635
+ }), l = j(() => ({
2575
2636
  root: {
2576
2637
  style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
2577
2638
  },
2578
2639
  value: {
2579
- class: [l.value, a.value, i.value, "progress-bar"]
2640
+ class: [o.value, a.value, i.value, "progress-bar"]
2580
2641
  }
2581
2642
  }));
2582
2643
  return (n, s) => {
2583
- const p = Ee;
2584
- return d(), y(p, j({ ...n.$attrs, ...t }, { pt: o.value }), {
2644
+ const p = Ue;
2645
+ return d(), x(p, _({ ...n.$attrs, ...t }, { pt: l.value }), {
2585
2646
  default: f(() => [
2586
- B(n.$slots, "default")
2647
+ F(n.$slots, "default")
2587
2648
  ]),
2588
2649
  _: 3
2589
2650
  }, 16, ["pt"]);
2590
2651
  };
2591
2652
  }
2592
2653
  });
2593
- var ca = /* @__PURE__ */ C({
2654
+ var va = /* @__PURE__ */ z({
2594
2655
  name: "VueDrawingCanvas",
2595
2656
  props: {
2596
2657
  strokeType: {
@@ -2757,8 +2818,8 @@ var ca = /* @__PURE__ */ C({
2757
2818
  getCoordinates(e) {
2758
2819
  let t, a;
2759
2820
  if (e.touches && e.touches.length > 0) {
2760
- let l = document.querySelector("#" + this.canvasId).getBoundingClientRect();
2761
- t = e.touches[0].clientX - l.left, a = e.touches[0].clientY - l.top;
2821
+ let o = document.querySelector("#" + this.canvasId).getBoundingClientRect();
2822
+ t = e.touches[0].clientX - o.left, a = e.touches[0].clientY - o.top;
2762
2823
  } else
2763
2824
  t = e.offsetX, a = e.offsetY;
2764
2825
  return {
@@ -2837,13 +2898,13 @@ var ca = /* @__PURE__ */ C({
2837
2898
  }];
2838
2899
  break;
2839
2900
  case "circle":
2840
- let l = this.strokes.from.x - t.x < 0 ? (this.strokes.from.x - t.x) * -1 : this.strokes.from.x - t.x;
2901
+ let o = this.strokes.from.x - t.x < 0 ? (this.strokes.from.x - t.x) * -1 : this.strokes.from.x - t.x;
2841
2902
  this.guides = [{
2842
- x: this.strokes.from.x > t.x ? this.strokes.from.x - l : this.strokes.from.x + l,
2903
+ x: this.strokes.from.x > t.x ? this.strokes.from.x - o : this.strokes.from.x + o,
2843
2904
  y: this.strokes.from.y
2844
2905
  }, {
2845
- x: l,
2846
- y: l
2906
+ x: o,
2907
+ y: o
2847
2908
  }];
2848
2909
  break;
2849
2910
  }
@@ -2901,15 +2962,15 @@ var ca = /* @__PURE__ */ C({
2901
2962
  e && this.save();
2902
2963
  });
2903
2964
  },
2904
- wrapText(e, t, a, i, l, o) {
2965
+ wrapText(e, t, a, i, o, l) {
2905
2966
  const n = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
2906
- var p = t.split(n).filter((O) => O.length > 0);
2907
- for (let O = 0; O < p.length; O++) {
2908
- for (var c = p[O].split(s).filter((U) => U.length > 0), x = "", r = 0; r < c.length; r++) {
2909
- var h = x + c[r] + " ", $ = e.measureText(h), D = $.width;
2910
- D > l && r > 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 = c[r] + " ", i += o) : x = h;
2967
+ var p = t.split(n).filter((S) => S.length > 0);
2968
+ for (let S = 0; S < p.length; S++) {
2969
+ for (var u = p[S].split(s).filter((A) => A.length > 0), h = "", r = 0; r < u.length; r++) {
2970
+ var w = h + u[r] + " ", g = e.measureText(w), C = g.width;
2971
+ C > o && r > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(h, a, i) : e.fillText(h, a, i), h = u[r] + " ", i += l) : h = w;
2911
2972
  }
2912
- 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 += c.length > 0 ? o : 0;
2973
+ this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(h, a, i) : e.fillText(h, a, i), i += u.length > 0 ? l : 0;
2913
2974
  }
2914
2975
  },
2915
2976
  save() {
@@ -2918,31 +2979,31 @@ var ca = /* @__PURE__ */ C({
2918
2979
  let t = document.createElement("canvas"), a = t.getContext("2d");
2919
2980
  a && (t.width = Number(this.width), t.height = Number(this.height), a.drawImage(e, 0, 0, Number(this.width), Number(this.height)), this.drawWatermark(t, a, this.watermark));
2920
2981
  } else {
2921
- let t = document.createElement("canvas"), a = t.getContext("2d"), i = this.outputWidth === void 0 ? this.width : this.outputWidth, l = this.outputHeight === void 0 ? this.height : this.outputHeight;
2922
- if (t.width = Number(i), t.height = Number(l), a)
2923
- return a.drawImage(e, 0, 0, Number(i), Number(l)), this.$emit("update:image", t.toDataURL("image/" + this.saveAs, 1)), t.toDataURL("image/" + this.saveAs, 1);
2982
+ let t = document.createElement("canvas"), a = t.getContext("2d"), i = this.outputWidth === void 0 ? this.width : this.outputWidth, o = this.outputHeight === void 0 ? this.height : this.outputHeight;
2983
+ if (t.width = Number(i), t.height = Number(o), a)
2984
+ return a.drawImage(e, 0, 0, Number(i), Number(o)), this.$emit("update:image", t.toDataURL("image/" + this.saveAs, 1)), t.toDataURL("image/" + this.saveAs, 1);
2924
2985
  }
2925
2986
  },
2926
2987
  drawWatermark(e, t, a) {
2927
2988
  if (a.type === "Image") {
2928
- let i = a.imageStyle ? a.imageStyle.width ? a.imageStyle.width : Number(this.width) : Number(this.width), l = a.imageStyle ? a.imageStyle.height ? a.imageStyle.height : Number(this.height) : Number(this.height);
2929
- const o = new Image();
2930
- o.src = a.source, o.onload = () => {
2931
- a && t && t.drawImage(o, a.x, a.y, Number(i), Number(l));
2932
- let n = document.createElement("canvas"), s = n.getContext("2d"), p = this.outputWidth === void 0 ? this.width : this.outputWidth, c = this.outputHeight === void 0 ? this.height : this.outputHeight;
2933
- if (n.width = Number(p), n.height = Number(c), s)
2934
- return s.drawImage(e, 0, 0, Number(p), Number(c)), this.$emit("update:image", n.toDataURL("image/" + this.saveAs, 1)), n.toDataURL("image/" + this.saveAs, 1);
2989
+ let i = a.imageStyle ? a.imageStyle.width ? a.imageStyle.width : Number(this.width) : Number(this.width), o = a.imageStyle ? a.imageStyle.height ? a.imageStyle.height : Number(this.height) : Number(this.height);
2990
+ const l = new Image();
2991
+ l.src = a.source, l.onload = () => {
2992
+ a && t && t.drawImage(l, a.x, a.y, Number(i), Number(o));
2993
+ let n = document.createElement("canvas"), s = n.getContext("2d"), p = this.outputWidth === void 0 ? this.width : this.outputWidth, u = this.outputHeight === void 0 ? this.height : this.outputHeight;
2994
+ if (n.width = Number(p), n.height = Number(u), s)
2995
+ return s.drawImage(e, 0, 0, Number(p), Number(u)), this.$emit("update:image", n.toDataURL("image/" + this.saveAs, 1)), n.toDataURL("image/" + this.saveAs, 1);
2935
2996
  };
2936
2997
  } else if (a.type === "Text") {
2937
- let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start", o = a.fontStyle && a.fontStyle.textBaseline ? a.fontStyle.textBaseline : "alphabetic", n = a.fontStyle && a.fontStyle.color ? a.fontStyle.color : "#000000";
2938
- if (t.font = i, t.textAlign = l, t.textBaseline = o, a.fontStyle && a.fontStyle.rotate) {
2939
- let r, h;
2940
- a.fontStyle && a.fontStyle.width ? r = a.x + Math.floor(a.fontStyle.width / 2) : r = a.x, a.fontStyle && a.fontStyle.lineHeight ? h = a.y + Math.floor(a.fontStyle.lineHeight / 2) : h = a.y, t.translate(r, h), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(r * -1, h * -1);
2998
+ let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", o = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start", l = a.fontStyle && a.fontStyle.textBaseline ? a.fontStyle.textBaseline : "alphabetic", n = a.fontStyle && a.fontStyle.color ? a.fontStyle.color : "#000000";
2999
+ if (t.font = i, t.textAlign = o, t.textBaseline = l, a.fontStyle && a.fontStyle.rotate) {
3000
+ let r, w;
3001
+ a.fontStyle && a.fontStyle.width ? r = a.x + Math.floor(a.fontStyle.width / 2) : r = a.x, a.fontStyle && a.fontStyle.lineHeight ? w = a.y + Math.floor(a.fontStyle.lineHeight / 2) : w = a.y, t.translate(r, w), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(r * -1, w * -1);
2941
3002
  }
2942
3003
  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 = n, 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));
2943
- let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth, x = this.outputHeight === void 0 ? this.height : this.outputHeight;
2944
- if (s.width = Number(c), s.height = Number(x), p)
2945
- return p.drawImage(e, 0, 0, Number(c), Number(x)), this.$emit("update:image", s.toDataURL("image/" + this.saveAs, 1)), s.toDataURL("image/" + this.saveAs, 1);
3004
+ let s = document.createElement("canvas"), p = s.getContext("2d"), u = this.outputWidth === void 0 ? this.width : this.outputWidth, h = this.outputHeight === void 0 ? this.height : this.outputHeight;
3005
+ if (s.width = Number(u), s.height = Number(h), p)
3006
+ return p.drawImage(e, 0, 0, Number(u), Number(h)), this.$emit("update:image", s.toDataURL("image/" + this.saveAs, 1)), s.toDataURL("image/" + this.saveAs, 1);
2946
3007
  }
2947
3008
  },
2948
3009
  isEmpty() {
@@ -2980,7 +3041,7 @@ var ca = /* @__PURE__ */ C({
2980
3041
  });
2981
3042
  }
2982
3043
  });
2983
- const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1 gap-1" }, ml = /* @__PURE__ */ C({
3044
+ const fa = { class: "d-flex flex-column" }, ga = { class: "d-flex flex-row mt-1 gap-1" }, ho = /* @__PURE__ */ z({
2984
3045
  __name: "ForgeScratchpad",
2985
3046
  props: {
2986
3047
  showClear: { type: Boolean, default: !0 },
@@ -2993,81 +3054,85 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
2993
3054
  },
2994
3055
  emits: ["save"],
2995
3056
  setup(e, { emit: t }) {
2996
- const a = e, i = t, l = ze("drawingCanvas"), o = P(), n = () => {
2997
- l == null || l.value.reset();
3057
+ const a = e, i = t, o = Te("drawingCanvas"), l = M(), n = () => {
3058
+ o == null || o.value.reset();
2998
3059
  }, s = () => {
2999
- l == null || l.value.redo();
3060
+ o == null || o.value.redo();
3000
3061
  }, p = () => {
3001
- l == null || l.value.undo();
3002
- }, c = () => {
3003
- i("save", l.value.isEmpty());
3062
+ o == null || o.value.undo();
3063
+ }, u = () => {
3064
+ i("save", o.value.isEmpty());
3004
3065
  };
3005
- return (x, r) => {
3006
- const h = q;
3007
- return d(), v("div", ua, [
3008
- w(u(ca), j({
3066
+ return (h, r) => {
3067
+ const w = q;
3068
+ return d(), b("div", fa, [
3069
+ k(c(va), _({
3009
3070
  ref_key: "drawingCanvas",
3010
- ref: l,
3011
- image: o.value,
3012
- "onUpdate:image": r[0] || (r[0] = ($) => o.value = $),
3071
+ ref: o,
3072
+ image: l.value,
3073
+ "onUpdate:image": r[0] || (r[0] = (g) => l.value = g),
3013
3074
  "data-cy": "drawing-canvas",
3014
3075
  class: "border canvas"
3015
- }, { ...x.$attrs }, {
3016
- height: x.height,
3017
- width: x.width,
3018
- style: `height: ${x.height}px; width: ${x.width}px`,
3019
- "line-join": x.lineJoin
3076
+ }, { ...h.$attrs }, {
3077
+ height: h.height,
3078
+ width: h.width,
3079
+ style: `height: ${h.height}px; width: ${h.width}px`,
3080
+ "line-join": h.lineJoin
3020
3081
  }), null, 16, ["image", "height", "width", "style", "line-join"]),
3021
- m("div", ma, [
3022
- a.showUndo ? (d(), y(h, {
3082
+ m("div", ga, [
3083
+ a.showUndo ? (d(), x(w, {
3023
3084
  key: 0,
3024
3085
  onClick: p,
3025
3086
  outlined: "",
3026
3087
  "data-cy": "undo-button"
3027
3088
  }, {
3028
3089
  default: f(() => r[1] || (r[1] = [
3029
- M("Undo")
3090
+ V("Undo")
3030
3091
  ])),
3031
- _: 1
3032
- })) : z("", !0),
3033
- a.showRedo ? (d(), y(h, {
3092
+ _: 1,
3093
+ __: [1]
3094
+ })) : T("", !0),
3095
+ a.showRedo ? (d(), x(w, {
3034
3096
  key: 1,
3035
3097
  onClick: s,
3036
3098
  outlined: "",
3037
3099
  "data-cy": "redo-button"
3038
3100
  }, {
3039
3101
  default: f(() => r[2] || (r[2] = [
3040
- M("Redo")
3102
+ V("Redo")
3041
3103
  ])),
3042
- _: 1
3043
- })) : z("", !0),
3044
- a.showClear ? (d(), y(h, {
3104
+ _: 1,
3105
+ __: [2]
3106
+ })) : T("", !0),
3107
+ a.showClear ? (d(), x(w, {
3045
3108
  key: 2,
3046
3109
  onClick: n,
3047
3110
  outlined: "",
3048
3111
  "data-cy": "clear-button"
3049
3112
  }, {
3050
3113
  default: f(() => r[3] || (r[3] = [
3051
- M("Clear")
3114
+ V("Clear")
3052
3115
  ])),
3053
- _: 1
3054
- })) : z("", !0),
3055
- a.showSave ? (d(), y(h, {
3116
+ _: 1,
3117
+ __: [3]
3118
+ })) : T("", !0),
3119
+ a.showSave ? (d(), x(w, {
3056
3120
  key: 3,
3057
- onClick: c,
3121
+ onClick: u,
3058
3122
  class: "ms-auto",
3059
3123
  "data-cy": "save-button"
3060
3124
  }, {
3061
3125
  default: f(() => r[4] || (r[4] = [
3062
- M("Save")
3126
+ V("Save")
3063
3127
  ])),
3064
- _: 1
3065
- })) : z("", !0)
3128
+ _: 1,
3129
+ __: [4]
3130
+ })) : T("", !0)
3066
3131
  ])
3067
3132
  ]);
3068
3133
  };
3069
3134
  }
3070
- }), va = { class: "value text-white w-100 text-center" }, vl = /* @__PURE__ */ C({
3135
+ }), ba = { class: "value text-white w-100 text-center" }, wo = /* @__PURE__ */ z({
3071
3136
  __name: "ForgeStatWidget",
3072
3137
  props: {
3073
3138
  size: { default: "md" },
@@ -3075,15 +3140,15 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
3075
3140
  },
3076
3141
  setup(e) {
3077
3142
  const t = e;
3078
- return (a, i) => (d(), v("div", j(a.$attrs, {
3143
+ return (a, i) => (d(), b("div", _(a.$attrs, {
3079
3144
  class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
3080
3145
  }), [
3081
- m("span", va, [
3082
- B(a.$slots, "default")
3146
+ m("span", ba, [
3147
+ F(a.$slots, "default")
3083
3148
  ])
3084
3149
  ], 16));
3085
3150
  }
3086
- }), fa = { key: 0 }, fl = /* @__PURE__ */ C({
3151
+ }), ya = { key: 0 }, ko = /* @__PURE__ */ z({
3087
3152
  __name: "ForgeStepper",
3088
3153
  props: {
3089
3154
  currentStep: { default: 1 },
@@ -3101,7 +3166,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
3101
3166
  unstyled: { type: Boolean }
3102
3167
  },
3103
3168
  setup(e) {
3104
- const t = e, a = T(() => ({
3169
+ const t = e, a = j(() => ({
3105
3170
  header: {
3106
3171
  class: [
3107
3172
  "p-0 m-0 d-flex align-items-center border border-0 bg-transparent gap-1",
@@ -3130,32 +3195,31 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
3130
3195
  ]
3131
3196
  })
3132
3197
  }));
3133
- return (i, l) => (d(), y(u(qe), { value: i.currentStep }, {
3198
+ return (i, o) => (d(), x(c(Ee), { value: i.currentStep }, {
3134
3199
  default: f(() => [
3135
- w(u(Le), null, {
3200
+ k(c(qe), null, {
3136
3201
  default: f(() => [
3137
- (d(!0), v(A, null, E(i.steps, (o) => (d(), y(u(Ue), j({
3138
- key: o.value,
3139
- value: o.value,
3140
- disabled: o.disabled,
3141
- ref_for: !0
3142
- }, { ...i.$attrs }, { pt: a.value }), {
3202
+ (d(!0), b(U, null, L(i.steps, (l) => (d(), x(c(Le), _({
3203
+ key: l.value,
3204
+ value: l.value,
3205
+ disabled: l.disabled
3206
+ }, { ref_for: !0 }, { ...i.$attrs }, { pt: a.value }), {
3143
3207
  default: f(() => [
3144
- i.showStepLabel ? (d(), v("div", fa, F(o.label), 1)) : z("", !0)
3208
+ i.showStepLabel ? (d(), b("div", ya, $(l.label), 1)) : T("", !0)
3145
3209
  ]),
3146
3210
  _: 2
3147
3211
  }, 1040, ["value", "disabled", "pt"]))), 128))
3148
3212
  ]),
3149
3213
  _: 1
3150
3214
  }),
3151
- w(u(He), null, {
3215
+ k(c(He), null, {
3152
3216
  default: f(() => [
3153
- (d(!0), v(A, null, E(i.steps, (o) => (d(), y(u(Re), {
3154
- key: o.value,
3155
- value: o.value
3217
+ (d(!0), b(U, null, L(i.steps, (l) => (d(), x(c(Re), {
3218
+ key: l.value,
3219
+ value: l.value
3156
3220
  }, {
3157
3221
  default: f(() => [
3158
- B(i.$slots, "step" + o.value)
3222
+ F(i.$slots, "step" + l.value)
3159
3223
  ]),
3160
3224
  _: 2
3161
3225
  }, 1032, ["value"]))), 128))
@@ -3166,7 +3230,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
3166
3230
  _: 3
3167
3231
  }, 8, ["value"]));
3168
3232
  }
3169
- }), ga = { class: "p-4 text-wrap w-100" }, ba = { class: "p-4 text-wrap w-100" }, gl = /* @__PURE__ */ C({
3233
+ }), xa = { class: "p-4 text-wrap w-100" }, ha = { class: "p-4 text-wrap w-100" }, Bo = /* @__PURE__ */ z({
3170
3234
  __name: "ForgeTile",
3171
3235
  props: {
3172
3236
  severity: { default: "primary" },
@@ -3175,32 +3239,32 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
3175
3239
  selected: { type: Boolean, default: !1 }
3176
3240
  },
3177
3241
  setup(e) {
3178
- const t = e, a = T(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), i = T(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
3179
- return (l, o) => {
3242
+ const t = e, a = j(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), i = j(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
3243
+ return (o, l) => {
3180
3244
  const n = q;
3181
- return t.clickable ? (d(), y(n, {
3245
+ return t.clickable ? (d(), x(n, {
3182
3246
  key: 0,
3183
- class: S(["d-flex w-100 p-0 text-body", a.value]),
3247
+ class: P(["d-flex w-100 p-0 text-body", a.value]),
3184
3248
  severity: t.severity,
3185
3249
  unstyled: "",
3186
3250
  "data-cy": "button-tile"
3187
3251
  }, {
3188
3252
  default: f(() => [
3189
- m("div", ga, [
3190
- B(l.$slots, "default", {}, () => [
3191
- o[0] || (o[0] = M("Tile Content"))
3253
+ m("div", xa, [
3254
+ F(o.$slots, "default", {}, () => [
3255
+ l[0] || (l[0] = V("Tile Content"))
3192
3256
  ])
3193
3257
  ])
3194
3258
  ]),
3195
3259
  _: 3
3196
- }, 8, ["severity", "class"])) : (d(), v("div", {
3260
+ }, 8, ["severity", "class"])) : (d(), b("div", {
3197
3261
  key: 1,
3198
- class: S(["d-flex w-100", i.value]),
3262
+ class: P(["d-flex w-100", i.value]),
3199
3263
  "data-cy": "tile"
3200
3264
  }, [
3201
- m("div", ba, [
3202
- B(l.$slots, "default", {}, () => [
3203
- o[1] || (o[1] = M("Tile Content"))
3265
+ m("div", ha, [
3266
+ F(o.$slots, "default", {}, () => [
3267
+ l[1] || (l[1] = V("Tile Content"))
3204
3268
  ])
3205
3269
  ])
3206
3270
  ], 2));
@@ -3210,13 +3274,13 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
3210
3274
  function ee(e, t) {
3211
3275
  return e > 1 ? `${t}s` : t;
3212
3276
  }
3213
- const ya = {
3277
+ const wa = {
3214
3278
  class: "d-flex justify-content-start align-items-baseline",
3215
3279
  "data-cy": "pagination-header"
3216
- }, xa = { class: "ms-2" }, ha = { key: 0 }, wa = {
3280
+ }, ka = { class: "ms-2" }, Ba = { key: 0 }, $a = {
3217
3281
  class: "w-auto",
3218
3282
  "data-cy": "total"
3219
- }, he = /* @__PURE__ */ C({
3283
+ }, he = /* @__PURE__ */ z({
3220
3284
  __name: "ForgePaginationHeader",
3221
3285
  props: {
3222
3286
  total: {},
@@ -3225,33 +3289,33 @@ const ya = {
3225
3289
  },
3226
3290
  emits: ["update:perPage"],
3227
3291
  setup(e, { emit: t }) {
3228
- const a = t, i = e, l = (n) => {
3292
+ const a = t, i = e, o = (n) => {
3229
3293
  a("update:perPage", n.value);
3230
- }, o = T(() => {
3294
+ }, l = j(() => {
3231
3295
  const n = Math.ceil(i.total / i.perPage);
3232
3296
  return `${n} ${ee(n, "page")}`;
3233
3297
  });
3234
- return (n, s) => (d(), v("div", ya, [
3235
- s[2] || (s[2] = M(" Number of results per page ")),
3236
- m("div", xa, [
3237
- w(u(ie), {
3298
+ return (n, s) => (d(), b("div", wa, [
3299
+ s[2] || (s[2] = V(" Number of results per page ")),
3300
+ m("div", ka, [
3301
+ k(c(oe), {
3238
3302
  options: i.pageSizes,
3239
3303
  "model-value": i.perPage,
3240
3304
  class: "page-size",
3241
- onChange: s[0] || (s[0] = (p) => l(p)),
3305
+ onChange: s[0] || (s[0] = (p) => o(p)),
3242
3306
  "data-cy": "pagination-page-size-select"
3243
3307
  }, null, 8, ["options", "model-value"])
3244
3308
  ]),
3245
- i.total ? (d(), v("div", ha, [
3309
+ i.total ? (d(), b("div", Ba, [
3246
3310
  s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
3247
- m("span", wa, F(i.total) + " " + F(u(ee)(i.total, "result")) + " across " + F(o.value), 1)
3248
- ])) : z("", !0)
3311
+ m("span", $a, $(i.total) + " " + $(c(ee)(i.total, "result")) + " across " + $(l.value), 1)
3312
+ ])) : T("", !0)
3249
3313
  ]));
3250
3314
  }
3251
- }), ka = { class: "position-relative" }, $a = { "data-cy": "above-table-slot" }, Ba = { class: "d-flex w-100" }, Fa = {
3315
+ }), Fa = { class: "position-relative" }, Sa = { "data-cy": "above-table-slot" }, Ca = { class: "d-flex w-100" }, Ta = {
3252
3316
  class: "mx-auto",
3253
3317
  "data-cy": "empty-message"
3254
- }, Sa = { class: "d-flex" }, Ca = { class: "d-flex align-items-end mb-2" }, za = { key: 0 }, Ta = { class: "ms-auto" }, bl = /* @__PURE__ */ C({
3318
+ }, za = { class: "d-flex" }, Pa = { class: "d-flex align-items-end mb-2" }, _a = { key: 0 }, ja = { class: "ms-auto" }, $o = /* @__PURE__ */ z({
3255
3319
  __name: "ForgeTable",
3256
3320
  props: {
3257
3321
  value: {},
@@ -3338,7 +3402,7 @@ const ya = {
3338
3402
  },
3339
3403
  emits: ["update:filters", "update:tableContext", "sort", "page"],
3340
3404
  setup(e, { emit: t }) {
3341
- const a = t, i = e, l = P(), o = P([5, 10, 20, 50, 100]), n = P(i.perPage ?? 10), s = P({
3405
+ const a = t, i = e, o = M(), l = M([5, 10, 20, 50, 100]), n = M(i.perPage ?? 10), s = M({
3342
3406
  filters: i.filters,
3343
3407
  perPage: n.value,
3344
3408
  page: 0,
@@ -3346,13 +3410,13 @@ const ya = {
3346
3410
  sortField: "",
3347
3411
  total: i.totalRecords ?? i.value.length
3348
3412
  });
3349
- Q(() => i.perPage, (b) => {
3350
- b && (n.value = b, s.value.perPage = b);
3413
+ W(() => i.perPage, (v) => {
3414
+ v && (n.value = v, s.value.perPage = v);
3351
3415
  });
3352
- const p = T(() => i.totalRecords ?? i.value.length), c = T(() => {
3353
- const b = Math.ceil(p.value / n.value);
3354
- return `${b} ${ee(b, "page")}`;
3355
- }), x = T(() => ({
3416
+ const p = j(() => i.totalRecords ?? i.value.length), u = j(() => {
3417
+ const v = Math.ceil(p.value / n.value);
3418
+ return `${v} ${ee(v, "page")}`;
3419
+ }), h = j(() => ({
3356
3420
  thead: () => ({
3357
3421
  class: [
3358
3422
  {
@@ -3379,151 +3443,153 @@ const ya = {
3379
3443
  if (i.clearAll)
3380
3444
  i.clearAll();
3381
3445
  else
3382
- for (const b in i.filters)
3383
- typeof i.filters[b] == "string" ? i.filters[b] = "" : i.filters[b].value = null;
3384
- D(i.filters);
3385
- }, h = () => {
3386
- l.value.exportCSV();
3387
- }, $ = (b) => {
3388
- var k;
3389
- s.value.sortDirection = b.sortOrder === 1 ? "Asc" : b.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((k = b.sortField) == null ? void 0 : k.toString()) ?? "", a("update:tableContext", s.value), a("sort", b);
3390
- }, D = (b) => {
3391
- s.value.filters = b, a("update:tableContext", s.value), a("update:filters", b);
3392
- }, O = (b) => {
3393
- s.value.page = b.page, a("update:tableContext", s.value), a("page", b);
3394
- }, U = () => {
3446
+ for (const v in i.filters)
3447
+ typeof i.filters[v] == "string" ? i.filters[v] = "" : i.filters[v].value = null;
3448
+ C(i.filters);
3449
+ }, w = () => {
3450
+ o.value.exportCSV();
3451
+ }, g = (v) => {
3452
+ var B;
3453
+ s.value.sortDirection = v.sortOrder === 1 ? "Asc" : v.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((B = v.sortField) == null ? void 0 : B.toString()) ?? "", a("update:tableContext", s.value), a("sort", v);
3454
+ }, C = (v) => {
3455
+ s.value.filters = v, a("update:tableContext", s.value), a("update:filters", v);
3456
+ }, S = (v) => {
3457
+ s.value.page = v.page, a("update:tableContext", s.value), a("page", v);
3458
+ }, A = () => {
3395
3459
  s.value.perPage = n.value, a("update:tableContext", s.value);
3396
3460
  };
3397
- return Q(() => i.filters, (b) => {
3398
- s.value.filters = b, a("update:tableContext", s.value);
3399
- }, { deep: !0 }), oe(() => a("update:tableContext", s.value)), (b, k) => (d(), v("div", ka, [
3400
- m("span", $a, [
3401
- B(b.$slots, "above-table")
3461
+ return W(() => i.filters, (v) => {
3462
+ s.value.filters = v, a("update:tableContext", s.value);
3463
+ }, { deep: !0 }), ne(() => a("update:tableContext", s.value)), (v, B) => (d(), b("div", Fa, [
3464
+ m("span", Sa, [
3465
+ F(v.$slots, "above-table")
3402
3466
  ]),
3403
- w(u(We), j({
3467
+ k(c(We), _({
3404
3468
  class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
3405
- }, { ...i, ...b.$attrs }, {
3406
- pt: x.value,
3469
+ }, { ...i, ...v.$attrs }, {
3470
+ pt: h.value,
3407
3471
  rows: n.value,
3408
3472
  "total-records": p.value,
3409
3473
  "filter-display": i.filters ? "row" : void 0,
3410
3474
  ref_key: "forgeTable",
3411
- ref: l,
3475
+ ref: o,
3412
3476
  "data-cy": "table",
3413
- "onUpdate:filters": D,
3414
- onSort: $,
3415
- onPage: O,
3477
+ "onUpdate:filters": C,
3478
+ onSort: g,
3479
+ onPage: S,
3416
3480
  showHeaders: ""
3417
- }), ae({
3481
+ }), ie({
3418
3482
  empty: f(() => [
3419
- m("div", Ba, [
3420
- m("h5", Fa, F(b.emptyMessage ?? "No items Found."), 1)
3483
+ m("div", Ca, [
3484
+ m("h5", Ta, $(v.emptyMessage ?? "No items Found."), 1)
3421
3485
  ])
3422
3486
  ]),
3423
3487
  header: f(() => [
3424
3488
  m("div", {
3425
- class: S(i.loading ? "opacity-50" : "")
3489
+ class: P(i.loading ? "opacity-50" : "")
3426
3490
  }, [
3427
- m("div", Sa, [
3428
- m("div", Ca, [
3429
- b.paginator && !b.legacyPaginationFooter ? (d(), v("span", za, [
3430
- w(he, {
3491
+ m("div", za, [
3492
+ m("div", Pa, [
3493
+ v.paginator && !v.legacyPaginationFooter ? (d(), b("span", _a, [
3494
+ k(he, {
3431
3495
  total: p.value,
3432
- "page-sizes": o.value,
3496
+ "page-sizes": l.value,
3433
3497
  "per-page": n.value,
3434
3498
  "onUpdate:perPage": [
3435
- k[0] || (k[0] = (I) => n.value = I),
3436
- U
3499
+ B[0] || (B[0] = (D) => n.value = D),
3500
+ A
3437
3501
  ]
3438
3502
  }, null, 8, ["total", "page-sizes", "per-page"])
3439
- ])) : z("", !0)
3503
+ ])) : T("", !0)
3440
3504
  ]),
3441
- m("div", Ta, [
3442
- b.showClearButton ? (d(), y(u(q), {
3505
+ m("div", ja, [
3506
+ v.showClearButton ? (d(), x(c(q), {
3443
3507
  key: 0,
3444
3508
  outlined: "",
3445
- class: S(b.showExporterButton ? "me-2" : ""),
3509
+ class: P(v.showExporterButton ? "me-2" : ""),
3446
3510
  onClick: r,
3447
3511
  "data-cy": "clear-all"
3448
3512
  }, {
3449
3513
  default: f(() => [
3450
- w(u(_), {
3514
+ k(c(I), {
3451
3515
  icon: "bi:funnel-fill",
3452
3516
  width: "24",
3453
3517
  height: "24"
3454
3518
  }),
3455
- k[2] || (k[2] = M(" Clear "))
3519
+ B[2] || (B[2] = V(" Clear "))
3456
3520
  ]),
3457
- _: 1
3458
- }, 8, ["class"])) : z("", !0),
3459
- b.showExporterButton ? (d(), y(u(q), {
3521
+ _: 1,
3522
+ __: [2]
3523
+ }, 8, ["class"])) : T("", !0),
3524
+ v.showExporterButton ? (d(), x(c(q), {
3460
3525
  key: 1,
3461
3526
  outlined: "",
3462
- onClick: h,
3527
+ onClick: w,
3463
3528
  "data-cy": "exporter"
3464
3529
  }, {
3465
3530
  default: f(() => [
3466
- w(u(_), {
3531
+ k(c(I), {
3467
3532
  icon: "typcn:export",
3468
3533
  width: "24",
3469
3534
  height: "24"
3470
3535
  }),
3471
- k[3] || (k[3] = M(" Export "))
3536
+ B[3] || (B[3] = V(" Export "))
3472
3537
  ]),
3473
- _: 1
3474
- })) : z("", !0),
3475
- B(b.$slots, "column-customiser")
3538
+ _: 1,
3539
+ __: [3]
3540
+ })) : T("", !0),
3541
+ F(v.$slots, "column-customiser")
3476
3542
  ])
3477
3543
  ])
3478
3544
  ], 2)
3479
3545
  ]),
3480
3546
  default: f(() => [
3481
- B(b.$slots, "default")
3547
+ F(v.$slots, "default")
3482
3548
  ]),
3483
3549
  _: 2
3484
3550
  }, [
3485
- E(b.$slots, (I, g) => ({
3486
- name: g,
3487
- fn: f((V) => [
3488
- B(b.$slots, g, W(G(V || {})))
3551
+ L(v.$slots, (D, y) => ({
3552
+ name: y,
3553
+ fn: f((O) => [
3554
+ F(v.$slots, y, G(Y(O || {})))
3489
3555
  ])
3490
3556
  })),
3491
- b.legacyPaginationFooter ? {
3557
+ v.legacyPaginationFooter ? {
3492
3558
  name: "paginatorstart",
3493
3559
  fn: f(() => [
3494
3560
  m("span", {
3495
- class: S(["d-flex", i.loading ? "opacity-50" : ""]),
3561
+ class: P(["d-flex", i.loading ? "opacity-50" : ""]),
3496
3562
  "data-cy": "legacy-page-size"
3497
3563
  }, [
3498
- k[4] || (k[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
3499
- w(u(ie), {
3500
- options: o.value,
3564
+ B[4] || (B[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
3565
+ k(c(oe), {
3566
+ options: l.value,
3501
3567
  modelValue: n.value,
3502
- "onUpdate:modelValue": k[1] || (k[1] = (I) => n.value = I),
3568
+ "onUpdate:modelValue": B[1] || (B[1] = (D) => n.value = D),
3503
3569
  class: "ms-2",
3504
- onClick: U
3570
+ onClick: A
3505
3571
  }, null, 8, ["options", "modelValue"])
3506
3572
  ], 2)
3507
3573
  ]),
3508
3574
  key: "0"
3509
3575
  } : void 0,
3510
- b.legacyPaginationFooter ? {
3576
+ v.legacyPaginationFooter ? {
3511
3577
  name: "paginatorend",
3512
3578
  fn: f(() => [
3513
3579
  m("span", {
3514
3580
  "data-cy": "legacy-total",
3515
- class: S(i.loading ? "opacity-50" : "")
3516
- }, F(p.value) + " " + F(u(ee)(p.value, "result")) + " across " + F(c.value), 3)
3581
+ class: P(i.loading ? "opacity-50" : "")
3582
+ }, $(p.value) + " " + $(c(ee)(p.value, "result")) + " across " + $(u.value), 3)
3517
3583
  ]),
3518
3584
  key: "1"
3519
3585
  } : void 0
3520
3586
  ]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
3521
3587
  ]));
3522
3588
  }
3523
- }), ja = { class: "position-relative" }, _a = { "data-cy": "above-table-slot" }, Pa = { class: "d-flex w-100" }, Ia = {
3589
+ }), Ma = { class: "position-relative" }, Ia = { "data-cy": "above-table-slot" }, Va = { class: "d-flex w-100" }, Da = {
3524
3590
  class: "mx-auto",
3525
3591
  "data-cy": "empty-message"
3526
- }, Ma = { class: "d-flex" }, Va = { class: "d-flex align-items-end mb-2" }, Da = { key: 0 }, Oa = { class: "ms-auto" }, yl = /* @__PURE__ */ C({
3592
+ }, Oa = { class: "d-flex" }, Aa = { class: "d-flex align-items-end mb-2" }, Na = { key: 0 }, Ua = { class: "ms-auto" }, Fo = /* @__PURE__ */ z({
3527
3593
  __name: "ForgeTreeTable",
3528
3594
  props: {
3529
3595
  stripedRows: { type: Boolean, default: !1 },
@@ -3584,28 +3650,28 @@ const ya = {
3584
3650
  },
3585
3651
  emits: ["update:filters", "update:tableContext", "sort", "page"],
3586
3652
  setup(e, { emit: t }) {
3587
- const a = e, i = t, l = P([5, 10, 20, 50, 100]), o = P(10), n = P(0), s = P(0), p = P({
3653
+ const a = e, i = t, o = M([5, 10, 20, 50, 100]), l = M(10), n = M(0), s = M(0), p = M({
3588
3654
  filters: a.filters,
3589
- perPage: o.value,
3655
+ perPage: l.value,
3590
3656
  page: 0,
3591
3657
  sortDirection: "None",
3592
3658
  sortField: "",
3593
3659
  total: a.totalRecords ?? a.value.length
3594
- }), c = T(() => a.totalRecords ?? a.value.length), x = T(() => {
3595
- const g = Math.ceil(c.value / o.value);
3596
- return `${g} ${ee(g, "page")}`;
3597
- }), r = T(() => ({
3660
+ }), u = j(() => a.totalRecords ?? a.value.length), h = j(() => {
3661
+ const y = Math.ceil(u.value / l.value);
3662
+ return `${y} ${ee(y, "page")}`;
3663
+ }), r = j(() => ({
3598
3664
  root: "position-relative",
3599
- table: (g) => ({
3665
+ table: (y) => ({
3600
3666
  class: [
3601
3667
  "table position-relative",
3602
3668
  {
3603
- "table-striped": g.attrs.stripedRows,
3604
- "table-hover": g.props.rowHover,
3605
- "table-bordered": g.props.showGridlines,
3606
- "table-sm": g.props.size === "small",
3607
- "table-lg": g.props.size === "large",
3608
- "opacity-50": g.props.loading
3669
+ "table-striped": y.attrs.stripedRows,
3670
+ "table-hover": y.props.rowHover,
3671
+ "table-bordered": y.props.showGridlines,
3672
+ "table-sm": y.props.size === "small",
3673
+ "table-lg": y.props.size === "large",
3674
+ "opacity-50": y.props.loading
3609
3675
  }
3610
3676
  ]
3611
3677
  }),
@@ -3623,183 +3689,184 @@ const ya = {
3623
3689
  }
3624
3690
  ]
3625
3691
  }),
3626
- row: ({ instance: g }) => [
3692
+ row: ({ instance: y }) => [
3627
3693
  {
3628
- "parent-node": g.node.hasOwnProperty("children")
3694
+ "parent-node": y.node.hasOwnProperty("children")
3629
3695
  }
3630
3696
  ]
3631
3697
  }));
3632
- Q(() => a.parentExpanderFullRow, (g) => {
3633
- g ? h() : $();
3698
+ W(() => a.parentExpanderFullRow, (y) => {
3699
+ y ? w() : g();
3634
3700
  });
3635
- const h = () => {
3701
+ const w = () => {
3636
3702
  a.parentExpanderFullRow && setTimeout(
3637
3703
  () => {
3638
- const g = Array.from(
3704
+ const y = Array.from(
3639
3705
  document.querySelectorAll(".parent-node td.expander-cell")
3640
3706
  );
3641
3707
  Array.from(
3642
3708
  document.querySelectorAll(".parent-node td")
3643
- ).forEach((L) => {
3644
- L.classList.add("d-none");
3645
- }), g.forEach((L) => {
3646
- L.setAttribute("colspan", a.totalColumns.toString()), L.classList.remove("d-none");
3709
+ ).forEach((R) => {
3710
+ R.classList.add("d-none");
3711
+ }), y.forEach((R) => {
3712
+ R.setAttribute("colspan", a.totalColumns.toString()), R.classList.remove("d-none");
3647
3713
  });
3648
3714
  },
3649
3715
  0
3650
3716
  );
3651
- }, $ = () => {
3717
+ }, g = () => {
3652
3718
  setTimeout(
3653
3719
  () => {
3654
- const g = Array.from(
3720
+ const y = Array.from(
3655
3721
  document.querySelectorAll(".parent-node td.expander-cell")
3656
- ), V = Array.from(
3722
+ ), O = Array.from(
3657
3723
  document.querySelectorAll(".parent-node td")
3658
3724
  );
3659
- g.forEach((L) => {
3660
- L.removeAttribute("colspan");
3661
- }), V.forEach((L) => {
3662
- L.classList.remove("d-none");
3725
+ y.forEach((R) => {
3726
+ R.removeAttribute("colspan");
3727
+ }), O.forEach((R) => {
3728
+ R.classList.remove("d-none");
3663
3729
  });
3664
3730
  },
3665
3731
  0
3666
3732
  );
3667
- }, D = () => {
3733
+ }, C = () => {
3668
3734
  if (a.clearAll)
3669
3735
  a.clearAll();
3670
3736
  else
3671
- for (const g in a.filters)
3672
- typeof a.filters[g] == "string" ? a.filters[g] = "" : a.filters[g].value = null;
3673
- U(a.filters);
3674
- }, O = (g) => {
3675
- var V;
3676
- p.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", p.value.sortField = ((V = g.sortField) == null ? void 0 : V.toString()) ?? "", i("update:tableContext", p.value), i("sort", g), h();
3677
- }, U = (g) => {
3678
- p.value.filters = g, i("update:tableContext", p.value), i("update:filters", g), h();
3679
- }, b = (g) => {
3680
- p.value.page = s.value = g.page, I(), i("update:tableContext", p.value), i("page", g), h();
3681
- }, k = () => {
3682
- p.value.perPage = o.value, s.value = 0, p.value.page = s.value = Math.floor(n.value / o.value), I(), i("update:tableContext", p.value), h();
3737
+ for (const y in a.filters)
3738
+ typeof a.filters[y] == "string" ? a.filters[y] = "" : a.filters[y].value = null;
3739
+ A(a.filters);
3740
+ }, S = (y) => {
3741
+ var O;
3742
+ p.value.sortDirection = y.sortOrder === 1 ? "Asc" : y.sortOrder === -1 ? "Desc" : "None", p.value.sortField = ((O = y.sortField) == null ? void 0 : O.toString()) ?? "", i("update:tableContext", p.value), i("sort", y), w();
3743
+ }, A = (y) => {
3744
+ p.value.filters = y, i("update:tableContext", p.value), i("update:filters", y), w();
3745
+ }, v = (y) => {
3746
+ p.value.page = s.value = y.page, D(), i("update:tableContext", p.value), i("page", y), w();
3747
+ }, B = () => {
3748
+ p.value.perPage = l.value, s.value = 0, p.value.page = s.value = Math.floor(n.value / l.value), D(), i("update:tableContext", p.value), w();
3683
3749
  };
3684
- Q(() => a.filters, (g) => {
3685
- p.value.filters = g, i("update:tableContext", p.value);
3686
- }, { deep: !0 }), Q(() => a.value, () => {
3687
- h();
3688
- }), oe(() => {
3689
- h(), i("update:tableContext", p.value);
3750
+ W(() => a.filters, (y) => {
3751
+ p.value.filters = y, i("update:tableContext", p.value);
3752
+ }, { deep: !0 }), W(() => a.value, () => {
3753
+ w();
3754
+ }), ne(() => {
3755
+ w(), i("update:tableContext", p.value);
3690
3756
  });
3691
- const I = () => {
3692
- n.value = s.value * o.value;
3757
+ const D = () => {
3758
+ n.value = s.value * l.value;
3693
3759
  };
3694
- return (g, V) => (d(), v("div", ja, [
3695
- m("span", _a, [
3696
- B(g.$slots, "above-table")
3760
+ return (y, O) => (d(), b("div", Ma, [
3761
+ m("span", Ia, [
3762
+ F(y.$slots, "above-table")
3697
3763
  ]),
3698
- w(u(Ge), j({
3764
+ k(c(Ge), _({
3699
3765
  class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
3700
- }, { ...a, ...g.$attrs }, {
3766
+ }, { ...a, ...y.$attrs }, {
3701
3767
  pt: r.value,
3702
3768
  "filter-display": a.filters ? "row" : void 0,
3703
- rows: g.paginator ? o.value : void 0,
3769
+ rows: y.paginator ? l.value : void 0,
3704
3770
  "data-cy": "tree-table",
3705
- "onUpdate:filters": U,
3706
- onSort: O,
3707
- onPage: b,
3708
- onNodeExpand: V[2] || (V[2] = () => h()),
3771
+ "onUpdate:filters": A,
3772
+ onSort: S,
3773
+ onPage: v,
3774
+ onNodeExpand: O[2] || (O[2] = () => w()),
3709
3775
  showHeaders: "",
3710
3776
  first: n.value
3711
- }), ae({
3777
+ }), ie({
3712
3778
  empty: f(() => [
3713
- m("div", Pa, [
3714
- m("h5", Ia, F(g.emptyMessage ?? "No items Found."), 1)
3779
+ m("div", Va, [
3780
+ m("h5", Da, $(y.emptyMessage ?? "No items Found."), 1)
3715
3781
  ])
3716
3782
  ]),
3717
3783
  header: f(() => [
3718
3784
  m("div", {
3719
- class: S(a.loading ? "opacity-50" : "")
3785
+ class: P(a.loading ? "opacity-50" : "")
3720
3786
  }, [
3721
- m("div", Ma, [
3722
- m("div", Va, [
3723
- g.paginator && !g.legacyPaginationFooter ? (d(), v("span", Da, [
3724
- w(he, {
3725
- total: c.value,
3726
- "page-sizes": l.value,
3727
- "per-page": o.value,
3787
+ m("div", Oa, [
3788
+ m("div", Aa, [
3789
+ y.paginator && !y.legacyPaginationFooter ? (d(), b("span", Na, [
3790
+ k(he, {
3791
+ total: u.value,
3792
+ "page-sizes": o.value,
3793
+ "per-page": l.value,
3728
3794
  "onUpdate:perPage": [
3729
- V[0] || (V[0] = (L) => o.value = L),
3730
- k
3795
+ O[0] || (O[0] = (R) => l.value = R),
3796
+ B
3731
3797
  ]
3732
3798
  }, null, 8, ["total", "page-sizes", "per-page"])
3733
- ])) : z("", !0)
3799
+ ])) : T("", !0)
3734
3800
  ]),
3735
- m("div", Oa, [
3736
- g.showClearButton ? (d(), y(u(q), {
3801
+ m("div", Ua, [
3802
+ y.showClearButton ? (d(), x(c(q), {
3737
3803
  key: 0,
3738
3804
  outlined: "",
3739
- onClick: D,
3805
+ onClick: C,
3740
3806
  "data-cy": "clear-all"
3741
3807
  }, {
3742
3808
  default: f(() => [
3743
- w(u(_), {
3809
+ k(c(I), {
3744
3810
  icon: "bi:funnel-fill",
3745
3811
  width: "24",
3746
3812
  height: "24"
3747
3813
  }),
3748
- V[3] || (V[3] = M(" Clear "))
3814
+ O[3] || (O[3] = V(" Clear "))
3749
3815
  ]),
3750
- _: 1
3751
- })) : z("", !0),
3752
- B(g.$slots, "column-customiser")
3816
+ _: 1,
3817
+ __: [3]
3818
+ })) : T("", !0),
3819
+ F(y.$slots, "column-customiser")
3753
3820
  ])
3754
3821
  ])
3755
3822
  ], 2)
3756
3823
  ]),
3757
3824
  default: f(() => [
3758
- B(g.$slots, "default")
3825
+ F(y.$slots, "default")
3759
3826
  ]),
3760
3827
  _: 2
3761
3828
  }, [
3762
- E(g.$slots, (L, ve) => ({
3829
+ L(y.$slots, (R, ve) => ({
3763
3830
  name: ve,
3764
- fn: f(($e) => [
3765
- B(g.$slots, ve, W(G($e || {})))
3831
+ fn: f((Be) => [
3832
+ F(y.$slots, ve, G(Y(Be || {})))
3766
3833
  ])
3767
3834
  })),
3768
- g.legacyPaginationFooter ? {
3835
+ y.legacyPaginationFooter ? {
3769
3836
  name: "paginatorstart",
3770
3837
  fn: f(() => [
3771
3838
  m("span", {
3772
- class: S(["d-flex", a.loading ? "opacity-50" : ""]),
3839
+ class: P(["d-flex", a.loading ? "opacity-50" : ""]),
3773
3840
  "data-cy": "legacy-page-size"
3774
3841
  }, [
3775
- V[4] || (V[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
3776
- w(u(ie), {
3777
- options: l.value,
3778
- modelValue: o.value,
3779
- "onUpdate:modelValue": V[1] || (V[1] = (L) => o.value = L),
3842
+ O[4] || (O[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
3843
+ k(c(oe), {
3844
+ options: o.value,
3845
+ modelValue: l.value,
3846
+ "onUpdate:modelValue": O[1] || (O[1] = (R) => l.value = R),
3780
3847
  class: "ms-2",
3781
- onClick: k
3848
+ onClick: B
3782
3849
  }, null, 8, ["options", "modelValue"])
3783
3850
  ], 2)
3784
3851
  ]),
3785
3852
  key: "0"
3786
3853
  } : void 0,
3787
- g.legacyPaginationFooter ? {
3854
+ y.legacyPaginationFooter ? {
3788
3855
  name: "paginatorend",
3789
3856
  fn: f(() => [
3790
3857
  m("span", {
3791
3858
  "data-cy": "legacy-total",
3792
- class: S(a.loading ? "opacity-50" : "")
3793
- }, F(c.value) + " " + F(u(ee)(c.value, "result")) + " across " + F(x.value), 3)
3859
+ class: P(a.loading ? "opacity-50" : "")
3860
+ }, $(u.value) + " " + $(c(ee)(u.value, "result")) + " across " + $(h.value), 3)
3794
3861
  ]),
3795
3862
  key: "1"
3796
3863
  } : void 0
3797
3864
  ]), 1040, ["class", "pt", "filter-display", "rows", "first"])
3798
3865
  ]));
3799
3866
  }
3800
- }), Na = { class: "d-flex position-relative" }, Aa = { class: "d-flex w-100" }, xl = /* @__PURE__ */ C({
3867
+ }), La = { class: "d-flex position-relative" }, Ea = { class: "d-flex w-100" }, So = /* @__PURE__ */ z({
3801
3868
  __name: "ForgeFilterHeader",
3802
- props: /* @__PURE__ */ R({
3869
+ props: /* @__PURE__ */ E({
3803
3870
  dataType: {},
3804
3871
  dropdownOptions: {},
3805
3872
  showClearButton: { type: Boolean, default: !1 },
@@ -3812,57 +3879,57 @@ const ya = {
3812
3879
  }),
3813
3880
  emits: ["update:modelValue"],
3814
3881
  setup(e) {
3815
- const t = N(e, "modelValue"), a = (l, o) => {
3816
- if (!l || Array.isArray(l) && l.length === 0)
3817
- return o;
3882
+ const t = N(e, "modelValue"), a = (o, l) => {
3883
+ if (!o || Array.isArray(o) && o.length === 0)
3884
+ return l;
3818
3885
  const n = (s) => {
3819
- var c;
3820
- const p = (c = e.dropdownOptions) == null ? void 0 : c.find(
3821
- (x) => e.optionValue ? x[e.optionValue] === s : Object.keys(x).every((r) => s.hasOwnProperty(r) && x[r] === s[r])
3886
+ var u;
3887
+ const p = (u = e.dropdownOptions) == null ? void 0 : u.find(
3888
+ (h) => e.optionValue ? h[e.optionValue] === s : Object.keys(h).every((r) => s.hasOwnProperty(r) && h[r] === s[r])
3822
3889
  );
3823
3890
  return e.optionLabel ? p[e.optionLabel] : p;
3824
3891
  };
3825
- return Array.isArray(l) ? l.map(n).join(", ") : n(l);
3892
+ return Array.isArray(o) ? o.map(n).join(", ") : n(o);
3826
3893
  }, i = () => {
3827
3894
  e.clearFilter ? e.clearFilter() : t.value = null;
3828
3895
  };
3829
- return (l, o) => {
3896
+ return (o, l) => {
3830
3897
  const n = fe, s = q;
3831
- return d(), v("div", Na, [
3832
- l.dataType === "numeric" ? (d(), y(n, j({
3898
+ return d(), b("div", La, [
3899
+ o.dataType === "numeric" ? (d(), x(n, _({
3833
3900
  key: 0,
3834
3901
  modelValue: t.value,
3835
- "onUpdate:modelValue": o[0] || (o[0] = (p) => t.value = p),
3902
+ "onUpdate:modelValue": l[0] || (l[0] = (p) => t.value = p),
3836
3903
  modelModifiers: { trim: !0 }
3837
- }, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(), y(xe, j({
3904
+ }, o.$attrs), null, 16, ["modelValue"])) : o.dataType === "date" ? (d(), x(xe, _({
3838
3905
  key: 1,
3839
3906
  modelValue: t.value,
3840
- "onUpdate:modelValue": o[1] || (o[1] = (p) => t.value = p)
3841
- }, l.$attrs, {
3907
+ "onUpdate:modelValue": l[1] || (l[1] = (p) => t.value = p)
3908
+ }, o.$attrs, {
3842
3909
  "show-icon": !1,
3843
3910
  "show-on-focus": !0
3844
- }), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), y(u(ie), j({
3911
+ }), null, 16, ["modelValue"])) : o.dataType === "select" ? (d(), x(c(oe), _({
3845
3912
  key: 2,
3846
3913
  modelValue: t.value,
3847
- "onUpdate:modelValue": o[2] || (o[2] = (p) => t.value = p)
3848
- }, l.$attrs, {
3849
- options: l.dropdownOptions,
3850
- "option-value": l.optionValue,
3851
- "option-label": l.optionLabel
3914
+ "onUpdate:modelValue": l[2] || (l[2] = (p) => t.value = p)
3915
+ }, o.$attrs, {
3916
+ options: o.dropdownOptions,
3917
+ "option-value": o.optionValue,
3918
+ "option-label": o.optionLabel
3852
3919
  }), {
3853
- value: f(({ value: p, placeholder: c }) => [
3854
- m("div", Aa, [
3920
+ value: f(({ value: p, placeholder: u }) => [
3921
+ m("div", Ea, [
3855
3922
  m("span", {
3856
- class: S({ "filter-placeholder": p === null })
3857
- }, F(a(p, c)), 3),
3858
- l.showClearButton && t.value !== null ? (d(), y(s, {
3923
+ class: P({ "filter-placeholder": p === null })
3924
+ }, $(a(p, u)), 3),
3925
+ o.showClearButton && t.value !== null ? (d(), x(s, {
3859
3926
  key: 0,
3860
- onClick: X(i, ["prevent"]),
3927
+ onClick: Q(i, ["prevent"]),
3861
3928
  size: "small",
3862
3929
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
3863
3930
  }, {
3864
3931
  default: f(() => [
3865
- w(u(_), {
3932
+ k(c(I), {
3866
3933
  icon: "bi:x",
3867
3934
  width: "1rem",
3868
3935
  height: "1rem",
@@ -3870,34 +3937,34 @@ const ya = {
3870
3937
  })
3871
3938
  ]),
3872
3939
  _: 1
3873
- })) : z("", !0)
3940
+ })) : T("", !0)
3874
3941
  ])
3875
3942
  ]),
3876
3943
  _: 1
3877
- }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), y(u(re), j({
3944
+ }, 16, ["modelValue", "options", "option-value", "option-label"])) : o.dataType === "multiselect" ? (d(), x(c(de), _({
3878
3945
  key: 3,
3879
3946
  modelValue: t.value,
3880
- "onUpdate:modelValue": o[3] || (o[3] = (p) => t.value = p)
3881
- }, l.$attrs, {
3882
- options: l.dropdownOptions,
3947
+ "onUpdate:modelValue": l[3] || (l[3] = (p) => t.value = p)
3948
+ }, o.$attrs, {
3949
+ options: o.dropdownOptions,
3883
3950
  showToggleAll: !1,
3884
- "option-label": l.optionLabel,
3885
- "option-value": l.optionValue,
3951
+ "option-label": o.optionLabel,
3952
+ "option-value": o.optionValue,
3886
3953
  filter: ""
3887
- }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), y(u(se), j({
3954
+ }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), x(c(ae), _({
3888
3955
  key: 4,
3889
3956
  modelValue: t.value,
3890
- "onUpdate:modelValue": o[4] || (o[4] = (p) => t.value = p),
3957
+ "onUpdate:modelValue": l[4] || (l[4] = (p) => t.value = p),
3891
3958
  modelModifiers: { trim: !0 }
3892
- }, l.$attrs), null, 16, ["modelValue"])),
3893
- l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (d(), y(s, {
3959
+ }, o.$attrs), null, 16, ["modelValue"])),
3960
+ o.showClearButton && t.value !== null && o.dataType !== "select" && o.dataType !== "multiselect" && o.dataType !== "date" ? (d(), x(s, {
3894
3961
  key: 5,
3895
- onClick: X(i, ["prevent"]),
3962
+ onClick: Q(i, ["prevent"]),
3896
3963
  size: "small",
3897
3964
  class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
3898
3965
  }, {
3899
3966
  default: f(() => [
3900
- w(u(_), {
3967
+ k(c(I), {
3901
3968
  icon: "bi:x",
3902
3969
  width: "1rem",
3903
3970
  height: "1rem",
@@ -3905,7 +3972,7 @@ const ya = {
3905
3972
  })
3906
3973
  ]),
3907
3974
  _: 1
3908
- })) : z("", !0)
3975
+ })) : T("", !0)
3909
3976
  ]);
3910
3977
  };
3911
3978
  }
@@ -4995,26 +5062,26 @@ var H = function(e, t, a, i) {
4995
5062
  if (a === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
4996
5063
  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");
4997
5064
  return a === "m" ? i : a === "a" ? i.call(e) : i ? i.value : t.get(e);
4998
- }, K, te, Y;
5065
+ }, Z, te, J;
4999
5066
  class we {
5000
5067
  constructor(...t) {
5001
- K.set(this, /* @__PURE__ */ new Map()), te.set(this, /* @__PURE__ */ new Map()), Y.set(this, /* @__PURE__ */ new Map());
5068
+ Z.set(this, /* @__PURE__ */ new Map()), te.set(this, /* @__PURE__ */ new Map()), J.set(this, /* @__PURE__ */ new Map());
5002
5069
  for (const a of t)
5003
5070
  this.define(a);
5004
5071
  }
5005
5072
  define(t, a = !1) {
5006
- for (let [i, l] of Object.entries(t)) {
5007
- i = i.toLowerCase(), l = l.map((s) => s.toLowerCase()), H(this, Y, "f").has(i) || H(this, Y, "f").set(i, /* @__PURE__ */ new Set());
5008
- const o = H(this, Y, "f").get(i);
5073
+ for (let [i, o] of Object.entries(t)) {
5074
+ i = i.toLowerCase(), o = o.map((s) => s.toLowerCase()), H(this, J, "f").has(i) || H(this, J, "f").set(i, /* @__PURE__ */ new Set());
5075
+ const l = H(this, J, "f").get(i);
5009
5076
  let n = !0;
5010
- for (let s of l) {
5077
+ for (let s of o) {
5011
5078
  const p = s.startsWith("*");
5012
- if (s = p ? s.slice(1) : s, o == null || o.add(s), n && H(this, te, "f").set(i, s), n = !1, p)
5079
+ if (s = p ? s.slice(1) : s, l == null || l.add(s), n && H(this, te, "f").set(i, s), n = !1, p)
5013
5080
  continue;
5014
- const c = H(this, K, "f").get(s);
5015
- if (c && c != i && !a)
5016
- throw new Error(`"${i} -> ${s}" conflicts with "${c} -> ${s}". Pass \`force=true\` to override this definition.`);
5017
- H(this, K, "f").set(s, i);
5081
+ const u = H(this, Z, "f").get(s);
5082
+ if (u && u != i && !a)
5083
+ throw new Error(`"${i} -> ${s}" conflicts with "${u} -> ${s}". Pass \`force=true\` to override this definition.`);
5084
+ H(this, Z, "f").set(s, i);
5018
5085
  }
5019
5086
  }
5020
5087
  return this;
@@ -5022,46 +5089,46 @@ class we {
5022
5089
  getType(t) {
5023
5090
  if (typeof t != "string")
5024
5091
  return null;
5025
- const a = t.replace(/^.*[/\\]/s, "").toLowerCase(), i = a.replace(/^.*\./s, "").toLowerCase(), l = a.length < t.length;
5026
- return !(i.length < a.length - 1) && l ? null : H(this, K, "f").get(i) ?? null;
5092
+ const a = t.replace(/^.*[/\\]/s, "").toLowerCase(), i = a.replace(/^.*\./s, "").toLowerCase(), o = a.length < t.length;
5093
+ return !(i.length < a.length - 1) && o ? null : H(this, Z, "f").get(i) ?? null;
5027
5094
  }
5028
5095
  getExtension(t) {
5029
5096
  var a;
5030
5097
  return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t && H(this, te, "f").get(t.trim().toLowerCase())) ?? null);
5031
5098
  }
5032
5099
  getAllExtensions(t) {
5033
- return typeof t != "string" ? null : H(this, Y, "f").get(t.toLowerCase()) ?? null;
5100
+ return typeof t != "string" ? null : H(this, J, "f").get(t.toLowerCase()) ?? null;
5034
5101
  }
5035
5102
  _freeze() {
5036
5103
  this.define = () => {
5037
5104
  throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
5038
5105
  }, Object.freeze(this);
5039
- for (const t of H(this, Y, "f").values())
5106
+ for (const t of H(this, J, "f").values())
5040
5107
  Object.freeze(t);
5041
5108
  return this;
5042
5109
  }
5043
5110
  _getTestState() {
5044
5111
  return {
5045
- types: H(this, K, "f"),
5112
+ types: H(this, Z, "f"),
5046
5113
  extensions: H(this, te, "f")
5047
5114
  };
5048
5115
  }
5049
5116
  }
5050
- K = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap();
5051
- const Ea = new we(ue, ce)._freeze();
5117
+ Z = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap();
5118
+ const qa = new we(ue, ce)._freeze();
5052
5119
  function ke(e, t, a, i) {
5053
- const l = t.flatMap((o) => o.file);
5054
- return t = t.map((o) => ({ ...o, status: o.status == "Duplicate" ? "Not Uploaded" : o.status })), e.forEach((o) => {
5055
- const n = l.findIndex((p) => p.name === o.name);
5120
+ const o = t.flatMap((l) => l.file);
5121
+ return t = t.map((l) => ({ ...l, status: l.status == "Duplicate" ? "Not Uploaded" : l.status })), e.forEach((l) => {
5122
+ const n = o.findIndex((p) => p.name === l.name);
5056
5123
  let s = "Not Uploaded";
5057
- n === -1 ? ((!a.includes(o.type) || !(o.size <= i)) && (s = a.includes(o.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
5058
- file: o,
5124
+ n === -1 ? ((!a.includes(l.type) || !(l.size <= i)) && (s = a.includes(l.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
5125
+ file: l,
5059
5126
  status: s,
5060
5127
  blobFileName: null
5061
5128
  })) : t[n].status = "Duplicate";
5062
5129
  }), t;
5063
5130
  }
5064
- async function Ua(e, t) {
5131
+ async function Ra(e, t) {
5065
5132
  if (e === "Uploaded" && t !== null)
5066
5133
  try {
5067
5134
  await new ge(t).delete();
@@ -5076,30 +5143,30 @@ function me(e, t = !0, a = 1) {
5076
5143
  const i = t ? 1e3 : 1024;
5077
5144
  if (Math.abs(e) < i)
5078
5145
  return e + " B";
5079
- const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
5080
- let o = -1;
5146
+ const o = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
5147
+ let l = -1;
5081
5148
  const n = 10 ** a;
5082
5149
  do
5083
- e /= i, ++o;
5084
- while (Math.round(Math.abs(e) * n) / n >= i && o < l.length - 1);
5085
- return e.toFixed(a) + " " + l[o];
5150
+ e /= i, ++l;
5151
+ while (Math.round(Math.abs(e) * n) / n >= i && l < o.length - 1);
5152
+ return e.toFixed(a) + " " + o[l];
5086
5153
  }
5087
- function qa(e) {
5154
+ function Ha(e) {
5088
5155
  return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
5089
5156
  }
5090
- function La(e) {
5157
+ function Wa(e) {
5091
5158
  return URL.createObjectURL(e);
5092
5159
  }
5093
- function Ra() {
5160
+ function Ga() {
5094
5161
  const e = new we(ue, ce);
5095
5162
  return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
5096
5163
  }
5097
- const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disabled", "multiple"], Ga = {
5164
+ const Ya = { class: "d-flex justify-content-between" }, Ja = ["accept", "disabled", "multiple"], Ka = {
5098
5165
  class: "text-break accepted-file-types-container",
5099
5166
  id: "accepted-file-types-overlay"
5100
- }, Ya = /* @__PURE__ */ C({
5167
+ }, Za = /* @__PURE__ */ z({
5101
5168
  __name: "UploadButton",
5102
- props: /* @__PURE__ */ R({
5169
+ props: /* @__PURE__ */ E({
5103
5170
  acceptedFileTypes: {},
5104
5171
  maxFileInput: {},
5105
5172
  showDragDropArea: { type: Boolean }
@@ -5109,40 +5176,40 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5109
5176
  }),
5110
5177
  emits: ["update:modelValue"],
5111
5178
  setup(e) {
5112
- const t = N(e, "modelValue"), a = P(), i = (n) => a.value.toggle(n), l = T(() => e.maxFileInput <= t.value.length), o = (n) => {
5179
+ const t = N(e, "modelValue"), a = M(), i = (n) => a.value.toggle(n), o = j(() => e.maxFileInput <= t.value.length), l = (n) => {
5113
5180
  t.value = ke(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
5114
5181
  };
5115
5182
  return (n, s) => {
5116
5183
  const p = q;
5117
- return d(), v("div", Ha, [
5118
- B(n.$slots, "message"),
5184
+ return d(), b("div", Ya, [
5185
+ F(n.$slots, "message"),
5119
5186
  m("div", null, [
5120
5187
  m("input", {
5121
5188
  id: "file-input",
5122
5189
  type: "file",
5123
5190
  class: "d-none",
5124
5191
  accept: n.acceptedFileTypes.join(", "),
5125
- disabled: l.value,
5192
+ disabled: o.value,
5126
5193
  multiple: n.maxFileInput > 1,
5127
- onInput: s[0] || (s[0] = (c) => o([...c.target.files]))
5128
- }, null, 40, Wa),
5194
+ onInput: s[0] || (s[0] = (u) => l([...u.target.files]))
5195
+ }, null, 40, Ja),
5129
5196
  m("label", {
5130
- class: S([{ disabled: l.value }, "btn btn-primary"]),
5197
+ class: P([{ disabled: o.value }, "btn btn-primary"]),
5131
5198
  id: "file-input-button",
5132
5199
  for: "file-input"
5133
5200
  }, [
5134
- B(n.$slots, "button-content", {}, () => [
5135
- w(u(_), {
5201
+ F(n.$slots, "button-content", {}, () => [
5202
+ k(c(I), {
5136
5203
  icon: "bi:upload",
5137
5204
  class: "me-2",
5138
5205
  height: "20px",
5139
5206
  width: "20px"
5140
5207
  }),
5141
- s[1] || (s[1] = M(" Browse your computer "))
5208
+ s[1] || (s[1] = V(" Browse your computer "))
5142
5209
  ])
5143
5210
  ], 2)
5144
5211
  ]),
5145
- n.showDragDropArea ? (d(), y(p, {
5212
+ n.showDragDropArea ? (d(), x(p, {
5146
5213
  link: "",
5147
5214
  class: "ms-auto",
5148
5215
  key: n.acceptedFileTypes.length,
@@ -5150,32 +5217,33 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5150
5217
  onClick: i
5151
5218
  }, {
5152
5219
  default: f(() => s[2] || (s[2] = [
5153
- M("Accepted File Types")
5220
+ V("Accepted File Types")
5154
5221
  ])),
5155
- _: 1
5156
- })) : z("", !0),
5157
- w(u(be), {
5222
+ _: 1,
5223
+ __: [2]
5224
+ })) : T("", !0),
5225
+ k(c(be), {
5158
5226
  ref_key: "acceptedFilesOverlay",
5159
5227
  ref: a
5160
5228
  }, {
5161
5229
  default: f(() => [
5162
- m("div", Ga, F(n.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
5230
+ m("div", Ka, $(n.acceptedFileTypes.map((u) => u.label ?? u.fileType.split("/").pop()).join(", ")), 1)
5163
5231
  ]),
5164
5232
  _: 1
5165
5233
  }, 512)
5166
5234
  ]);
5167
5235
  };
5168
5236
  }
5169
- }), Ja = {
5237
+ }), Xa = {
5170
5238
  key: 0,
5171
5239
  class: "py-4 px-3",
5172
5240
  id: "placeholder-message"
5173
- }, Ka = {
5241
+ }, Qa = {
5174
5242
  key: 1,
5175
5243
  class: "d-flex flex-column"
5176
- }, Za = /* @__PURE__ */ C({
5244
+ }, ei = /* @__PURE__ */ z({
5177
5245
  __name: "DragDropArea",
5178
- props: /* @__PURE__ */ R({
5246
+ props: /* @__PURE__ */ E({
5179
5247
  maxFileInput: {},
5180
5248
  maxFileSize: {},
5181
5249
  acceptedFileTypes: {}
@@ -5185,30 +5253,30 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5185
5253
  }),
5186
5254
  emits: ["update:modelValue"],
5187
5255
  setup(e) {
5188
- const t = N(e, "modelValue"), a = P(!1), i = T(() => e.maxFileInput <= t.value.length), l = (o) => {
5189
- a.value = !1, o.dataTransfer.files.length > e.maxFileInput || i.value ? o.preventDefault() : t.value = ke([...o.dataTransfer.files], t.value, e.acceptedFileTypes.map((n) => n.fileType), e.maxFileSize);
5256
+ const t = N(e, "modelValue"), a = M(!1), i = j(() => e.maxFileInput <= t.value.length), o = (l) => {
5257
+ a.value = !1, l.dataTransfer.files.length > e.maxFileInput || i.value ? l.preventDefault() : t.value = ke([...l.dataTransfer.files], t.value, e.acceptedFileTypes.map((n) => n.fileType), e.maxFileSize);
5190
5258
  };
5191
- return (o, n) => (d(), v("div", {
5259
+ return (l, n) => (d(), b("div", {
5192
5260
  id: "drag-drop-area",
5193
- class: S(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
5194
- onDragleave: n[0] || (n[0] = X((s) => a.value = !1, ["prevent"])),
5195
- onDragover: n[1] || (n[1] = X((s) => a.value = !0, ["prevent"])),
5196
- onDrop: X(l, ["prevent"])
5261
+ class: P(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
5262
+ onDragleave: n[0] || (n[0] = Q((s) => a.value = !1, ["prevent"])),
5263
+ onDragover: n[1] || (n[1] = Q((s) => a.value = !0, ["prevent"])),
5264
+ onDrop: Q(o, ["prevent"])
5197
5265
  }, [
5198
- t.value.length === 0 ? (d(), v("div", Ja, [
5199
- w(u(_), {
5266
+ t.value.length === 0 ? (d(), b("div", Xa, [
5267
+ k(c(I), {
5200
5268
  icon: "bi:upload",
5201
5269
  class: "me-2",
5202
5270
  height: "20px",
5203
5271
  width: "20px"
5204
5272
  }),
5205
- n[2] || (n[2] = M(" Drag and drop files here "))
5206
- ])) : (d(), v("div", Ka, [
5207
- B(o.$slots, "default")
5273
+ n[2] || (n[2] = V(" Drag and drop files here "))
5274
+ ])) : (d(), b("div", Qa, [
5275
+ F(l.$slots, "default")
5208
5276
  ]))
5209
5277
  ], 34));
5210
5278
  }
5211
- }), Xa = { class: "d-flex align-items-center me-2" }, Qa = /* @__PURE__ */ C({
5279
+ }), ti = { class: "d-flex align-items-center me-2" }, ai = /* @__PURE__ */ z({
5212
5280
  __name: "UploadStatus",
5213
5281
  props: {
5214
5282
  fileSize: {},
@@ -5217,7 +5285,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5217
5285
  uploadStatus: {}
5218
5286
  },
5219
5287
  setup(e) {
5220
- const t = e, a = T(() => t.uploadStatus === "Failed" || t.uploadStatus === "InvalidFileType" || t.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), i = T(() => {
5288
+ const t = e, a = j(() => t.uploadStatus === "Failed" || t.uploadStatus === "InvalidFileType" || t.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), i = j(() => {
5221
5289
  switch (t.uploadStatus) {
5222
5290
  case "InvalidFileType":
5223
5291
  return "Upload Failed: File type is not accepted.";
@@ -5233,39 +5301,39 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5233
5301
  return "Upload Failed: Connection error, please try again.";
5234
5302
  }
5235
5303
  });
5236
- return (l, o) => {
5304
+ return (o, l) => {
5237
5305
  const n = pe;
5238
- return d(), v("div", Xa, [
5239
- t.uploadStatus === "Uploading" ? (d(), y(n, {
5306
+ return d(), b("div", ti, [
5307
+ t.uploadStatus === "Uploading" ? (d(), x(n, {
5240
5308
  key: 0,
5241
5309
  "in-line": ""
5242
- })) : z("", !0),
5243
- t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (d(), y(de, {
5310
+ })) : T("", !0),
5311
+ t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (d(), x(re, {
5244
5312
  key: 1,
5245
5313
  id: "upload-status-alert",
5246
5314
  severity: a.value,
5247
5315
  class: "mb-0 w-75 ms-auto"
5248
5316
  }, {
5249
5317
  default: f(() => [
5250
- M(F(i.value), 1)
5318
+ V($(i.value), 1)
5251
5319
  ]),
5252
5320
  _: 1
5253
- }, 8, ["severity"])) : z("", !0)
5321
+ }, 8, ["severity"])) : T("", !0)
5254
5322
  ]);
5255
5323
  };
5256
5324
  }
5257
- }), ei = ["data-cy"], ti = { class: "ms-3 d-flex flex-column" }, ai = {
5325
+ }), ii = ["data-cy"], oi = { class: "ms-3 d-flex flex-column" }, li = {
5258
5326
  key: 1,
5259
5327
  id: "file-name"
5260
- }, ii = {
5328
+ }, ni = {
5261
5329
  class: "text-black-50",
5262
5330
  id: "file-type"
5263
- }, li = {
5331
+ }, si = {
5264
5332
  class: "text-black-50",
5265
5333
  id: "file-size"
5266
- }, oi = { class: "ms-auto my-auto d-flex align-items-center gap-1" }, ni = /* @__PURE__ */ C({
5334
+ }, ri = { class: "ms-auto my-auto d-flex align-items-center gap-1" }, di = /* @__PURE__ */ z({
5267
5335
  __name: "FileInfo",
5268
- props: /* @__PURE__ */ R({
5336
+ props: /* @__PURE__ */ E({
5269
5337
  editableFileName: { type: Boolean },
5270
5338
  acceptedFileTypes: {},
5271
5339
  maxFileSize: {},
@@ -5280,64 +5348,64 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5280
5348
  uploadStatus: { required: !0 },
5281
5349
  uploadStatusModifiers: {}
5282
5350
  }),
5283
- emits: /* @__PURE__ */ R(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
5351
+ emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
5284
5352
  setup(e, { emit: t }) {
5285
- const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"), o = t, n = P(a.value.name), s = P(""), p = P(0), c = P(), x = T(() => e.acceptedFileTypes.some(({ fileType: b }) => b === a.value.type)), r = T(() => a.value.size <= e.maxFileSize), h = T(() => a.value.type ? a.value.type : Ra().getType(a.value.name)), $ = () => {
5286
- n.value != null && (D(), a.value = new File([a.value], n.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
5287
- }, D = () => {
5288
- let b = n.value.split("."), k = Ea.getExtension(h.value), I = n.value.split(".").pop();
5289
- b.length === 1 ? I && I.length > 0 && (n.value = [n.value, k].join(".")) : b.length > 1 && I !== k && (n.value = n.value.replace(I, k));
5290
- }, O = async () => {
5291
- if (!x.value || !r.value) {
5292
- l.value = x.value ? "InvalidFileSize" : "InvalidFileType";
5353
+ const a = N(e, "file"), i = N(e, "blobFileName"), o = N(e, "uploadStatus"), l = t, n = M(a.value.name), s = M(""), p = M(0), u = M(), h = j(() => e.acceptedFileTypes.some(({ fileType: v }) => v === a.value.type)), r = j(() => a.value.size <= e.maxFileSize), w = j(() => a.value.type ? a.value.type : Ga().getType(a.value.name)), g = () => {
5354
+ n.value != null && (C(), a.value = new File([a.value], n.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
5355
+ }, C = () => {
5356
+ let v = n.value.split("."), B = qa.getExtension(w.value), D = n.value.split(".").pop();
5357
+ v.length === 1 ? D && D.length > 0 && (n.value = [n.value, B].join(".")) : v.length > 1 && D !== B && (n.value = n.value.replace(D, B));
5358
+ }, S = async () => {
5359
+ if (!h.value || !r.value) {
5360
+ o.value = h.value ? "InvalidFileSize" : "InvalidFileType";
5293
5361
  return;
5294
5362
  }
5295
- l.value = "Preparing", c.value = new AbortController();
5296
- const [b, k] = await e.getFileUrlAction(a.value.name);
5297
- if (!b) {
5298
- l.value = "Failed";
5363
+ o.value = "Preparing", u.value = new AbortController();
5364
+ const [v, B] = await e.getFileUrlAction(a.value.name);
5365
+ if (!v) {
5366
+ o.value = "Failed";
5299
5367
  return;
5300
5368
  }
5301
5369
  try {
5302
- l.value = "Uploading";
5303
- const I = new ge(b), g = {
5304
- abortSignal: c.value.signal,
5305
- onProgress: (V) => p.value = V.loadedBytes,
5370
+ o.value = "Uploading";
5371
+ const D = new ge(v), y = {
5372
+ abortSignal: u.value.signal,
5373
+ onProgress: (O) => p.value = O.loadedBytes,
5306
5374
  blobHTTPHeaders: {
5307
- blobContentType: h.value,
5375
+ blobContentType: w.value,
5308
5376
  blobContentDisposition: `attachment; filename="${a.value.name}"`
5309
5377
  },
5310
5378
  tags: { temp: "true" }
5311
5379
  };
5312
- await I.uploadData(a.value, g), s.value = b, l.value = "Uploaded", i.value = k;
5313
- } catch (I) {
5314
- if (I.name === "AbortError") {
5315
- l.value = "Aborted";
5380
+ await D.uploadData(a.value, y), s.value = v, o.value = "Uploaded", i.value = B;
5381
+ } catch (D) {
5382
+ if (D.name === "AbortError") {
5383
+ o.value = "Aborted";
5316
5384
  return;
5317
5385
  }
5318
- l.value = "Failed";
5386
+ o.value = "Failed";
5319
5387
  }
5320
- }, U = async () => {
5321
- await Ua(l.value, s.value), o("deleted", a.value);
5388
+ }, A = async () => {
5389
+ await Ra(o.value, s.value), l("deleted", a.value);
5322
5390
  };
5323
- return oe(() => {
5324
- e.autoUploadToBlob && l.value != "Uploaded" && O();
5325
- }), (b, k) => {
5326
- const I = q;
5327
- return d(), v("div", {
5391
+ return ne(() => {
5392
+ e.autoUploadToBlob && o.value != "Uploaded" && S();
5393
+ }), (v, B) => {
5394
+ const D = q;
5395
+ return d(), b("div", {
5328
5396
  class: "py-4 px-3 d-flex",
5329
5397
  "data-cy": `file-info-${a.value.name}`
5330
5398
  }, [
5331
5399
  m("div", null, [
5332
- u(qa)(a.value.type) ? (d(), y(u(Ye), {
5400
+ c(Ha)(a.value.type) ? (d(), x(c(Ye), {
5333
5401
  key: 0,
5334
5402
  id: "thumbnail-image",
5335
5403
  "image-class": "image-file-thumbnail border",
5336
- src: u(La)(a.value),
5404
+ src: c(Wa)(a.value),
5337
5405
  alt: a.value.name,
5338
5406
  width: "75px",
5339
5407
  preview: ""
5340
- }, null, 8, ["src", "alt"])) : (d(), y(u(_), {
5408
+ }, null, 8, ["src", "alt"])) : (d(), x(c(I), {
5341
5409
  key: 1,
5342
5410
  id: "file-earmark",
5343
5411
  icon: "bi:file-earmark",
@@ -5345,80 +5413,80 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5345
5413
  width: "75px"
5346
5414
  }))
5347
5415
  ]),
5348
- m("div", ti, [
5416
+ m("div", oi, [
5349
5417
  m("div", null, [
5350
- b.editableFileName ? (d(), y(Gt, {
5418
+ v.editableFileName ? (d(), x(Kt, {
5351
5419
  key: 0,
5352
5420
  id: "edit-file-name",
5353
5421
  modelValue: n.value,
5354
- "onUpdate:modelValue": k[0] || (k[0] = (g) => n.value = g),
5355
- rules: b.customFileNameRules,
5422
+ "onUpdate:modelValue": B[0] || (B[0] = (y) => n.value = y),
5423
+ rules: v.customFileNameRules,
5356
5424
  name: a.value.name,
5357
- "complete-action": $
5358
- }, null, 8, ["modelValue", "rules", "name"])) : (d(), v("span", ai, F(n.value), 1))
5425
+ "complete-action": g
5426
+ }, null, 8, ["modelValue", "rules", "name"])) : (d(), b("span", li, $(n.value), 1))
5359
5427
  ]),
5360
- m("span", ii, "File type: " + F(a.value.type.split("/").pop()), 1),
5361
- m("span", li, "File size: " + F(u(me)(a.value.size)), 1)
5428
+ m("span", ni, "File type: " + $(a.value.type.split("/").pop()), 1),
5429
+ m("span", si, "File size: " + $(c(me)(a.value.size)), 1)
5362
5430
  ]),
5363
- m("div", oi, [
5364
- (d(), y(Qa, {
5365
- key: l.value,
5431
+ m("div", ri, [
5432
+ (d(), x(ai, {
5433
+ key: o.value,
5366
5434
  "file-size": a.value.size,
5367
- "upload-status": l.value,
5435
+ "upload-status": o.value,
5368
5436
  "bytes-uploaded": p.value,
5369
- "max-file-size": b.maxFileSize
5437
+ "max-file-size": v.maxFileSize
5370
5438
  }, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
5371
- l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(), y(I, {
5439
+ o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (d(), x(D, {
5372
5440
  key: 0,
5373
5441
  link: "",
5374
- onClick: O
5442
+ onClick: S
5375
5443
  }, {
5376
5444
  default: f(() => [
5377
- w(u(_), {
5378
- icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
5445
+ k(c(I), {
5446
+ icon: o.value === "Not Uploaded" || o.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
5379
5447
  }, null, 8, ["icon"])
5380
5448
  ]),
5381
5449
  _: 1
5382
- })) : z("", !0),
5383
- l.value === "Uploading" ? (d(), y(I, {
5450
+ })) : T("", !0),
5451
+ o.value === "Uploading" ? (d(), x(D, {
5384
5452
  key: 1,
5385
5453
  link: "",
5386
- onClick: k[1] || (k[1] = (g) => c.value.abort())
5454
+ onClick: B[1] || (B[1] = (y) => u.value.abort())
5387
5455
  }, {
5388
5456
  default: f(() => [
5389
- w(u(_), { icon: "bi:x-circle-fill" })
5457
+ k(c(I), { icon: "bi:x-circle-fill" })
5390
5458
  ]),
5391
5459
  _: 1
5392
- })) : (d(), y(I, {
5460
+ })) : (d(), x(D, {
5393
5461
  key: 2,
5394
5462
  link: "",
5395
- onClick: U,
5463
+ onClick: A,
5396
5464
  id: "delete-button"
5397
5465
  }, {
5398
5466
  default: f(() => [
5399
- w(u(_), { icon: "bi:trash" })
5467
+ k(c(I), { icon: "bi:trash" })
5400
5468
  ]),
5401
5469
  _: 1
5402
5470
  }))
5403
5471
  ])
5404
- ], 8, ei);
5472
+ ], 8, ii);
5405
5473
  };
5406
5474
  }
5407
- }), si = { class: "d-flex justify-content-end mt-1 gap-1" }, ri = { id: "max-file-size" }, di = { id: "max-file-input" }, pi = /* @__PURE__ */ C({
5475
+ }), pi = { class: "d-flex justify-content-end mt-1 gap-1" }, ci = { id: "max-file-size" }, ui = { id: "max-file-input" }, mi = /* @__PURE__ */ z({
5408
5476
  __name: "FileInputInfo",
5409
5477
  props: {
5410
5478
  maxFileSize: {},
5411
5479
  maxFileInput: {}
5412
5480
  },
5413
5481
  setup(e) {
5414
- return (t, a) => (d(), v("div", si, [
5415
- m("div", ri, "Max file size: " + F(u(me)(t.maxFileSize)), 1),
5416
- m("div", di, "| Max file count: " + F(t.maxFileInput), 1)
5482
+ return (t, a) => (d(), b("div", pi, [
5483
+ m("div", ci, "Max file size: " + $(c(me)(t.maxFileSize)), 1),
5484
+ m("div", ui, "| Max file count: " + $(t.maxFileInput), 1)
5417
5485
  ]));
5418
5486
  }
5419
- }), ci = { "data-cy": "file-uploader" }, ui = { key: 0 }, hl = /* @__PURE__ */ C({
5487
+ }), vi = { "data-cy": "file-uploader" }, fi = { key: 1 }, Co = /* @__PURE__ */ z({
5420
5488
  __name: "ForgeFileUploader",
5421
- props: /* @__PURE__ */ R({
5489
+ props: /* @__PURE__ */ E({
5422
5490
  acceptedFileTypes: {},
5423
5491
  maxFileSize: {},
5424
5492
  getFileUrlAction: {},
@@ -5426,32 +5494,47 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5426
5494
  customFileNameRules: {},
5427
5495
  maxFileInput: { default: 3 },
5428
5496
  editableFileName: { type: Boolean, default: !1 },
5429
- autoUploadToBlob: { type: Boolean, default: !0 }
5497
+ autoUploadToBlob: { type: Boolean, default: !0 },
5498
+ maxFileWarning: { default: "Maximum number of files reached." }
5430
5499
  }, {
5431
5500
  modelValue: { default: [] },
5432
5501
  modelModifiers: {}
5433
5502
  }),
5434
5503
  emits: ["update:modelValue"],
5435
5504
  setup(e) {
5436
- const t = N(e, "modelValue"), a = e, i = (l) => {
5437
- t.value = t.value.filter((o) => o.file != l);
5505
+ const t = N(e, "modelValue");
5506
+ W(t, (o, l) => {
5507
+ o.length > a.maxFileInput && (o.length = a.maxFileInput);
5508
+ }, { deep: 2 });
5509
+ const a = e, i = (o) => {
5510
+ t.value = t.value.filter((l) => l.file != o);
5438
5511
  };
5439
- return (l, o) => (d(), v("div", ci, [
5440
- w(Ya, j(a, {
5512
+ return (o, l) => (d(), b("div", vi, [
5513
+ t.value.length == o.maxFileInput && a.maxFileWarning != null ? (d(), x(re, {
5514
+ key: 0,
5515
+ id: "max-files-alert",
5516
+ severity: "danger"
5517
+ }, {
5518
+ default: f(() => [
5519
+ V($(o.maxFileWarning), 1)
5520
+ ]),
5521
+ _: 1
5522
+ })) : T("", !0),
5523
+ k(Za, _(a, {
5441
5524
  modelValue: t.value,
5442
- "onUpdate:modelValue": o[0] || (o[0] = (n) => t.value = n)
5525
+ "onUpdate:modelValue": l[0] || (l[0] = (n) => t.value = n)
5443
5526
  }), null, 16, ["modelValue"]),
5444
- l.showDragDropArea ? (d(), v("div", ui, [
5445
- w(Za, {
5527
+ o.showDragDropArea ? (d(), b("div", fi, [
5528
+ k(ei, {
5446
5529
  "max-file-input": a.maxFileInput,
5447
5530
  "max-file-size": a.maxFileSize,
5448
5531
  "accepted-file-types": a.acceptedFileTypes,
5449
5532
  modelValue: t.value,
5450
- "onUpdate:modelValue": o[1] || (o[1] = (n) => t.value = n)
5533
+ "onUpdate:modelValue": l[1] || (l[1] = (n) => t.value = n)
5451
5534
  }, {
5452
5535
  default: f(() => [
5453
- (d(!0), v(A, null, E(t.value, ({ file: n }, s) => (d(), v("div", null, [
5454
- (d(), y(ni, j({
5536
+ (d(!0), b(U, null, L(t.value, ({ file: n }, s) => (d(), b("div", null, [
5537
+ (d(), x(di, _({
5455
5538
  key: n.name,
5456
5539
  class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
5457
5540
  file: t.value[s].file,
@@ -5459,21 +5542,20 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5459
5542
  "blob-file-name": t.value[s].blobFileName,
5460
5543
  "onUpdate:blobFileName": (p) => t.value[s].blobFileName = p,
5461
5544
  "upload-status": t.value[s].status,
5462
- "onUpdate:uploadStatus": (p) => t.value[s].status = p,
5463
- ref_for: !0
5464
- }, a, { onDeleted: i }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
5545
+ "onUpdate:uploadStatus": (p) => t.value[s].status = p
5546
+ }, { ref_for: !0 }, a, { onDeleted: i }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
5465
5547
  ]))), 256))
5466
5548
  ]),
5467
5549
  _: 1
5468
5550
  }, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
5469
- w(pi, {
5551
+ k(mi, {
5470
5552
  "max-file-size": a.maxFileSize,
5471
- "max-file-input": l.maxFileInput
5553
+ "max-file-input": o.maxFileInput
5472
5554
  }, null, 8, ["max-file-size", "max-file-input"])
5473
- ])) : z("", !0)
5555
+ ])) : T("", !0)
5474
5556
  ]));
5475
5557
  }
5476
- }), mi = { class: "d-flex" }, vi = { class: "me-3" }, fi = { class: "ms-2" }, gi = { class: "d-flex flex-column w-100" }, wl = /* @__PURE__ */ C({
5558
+ }), gi = { class: "d-flex" }, bi = { class: "me-3" }, yi = { class: "ms-2" }, xi = { class: "d-flex flex-column w-100" }, To = /* @__PURE__ */ z({
5477
5559
  __name: "ForgeColumnCustomiser",
5478
5560
  props: {
5479
5561
  modelValue: { required: !0 },
@@ -5481,22 +5563,22 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5481
5563
  },
5482
5564
  emits: ["update:modelValue"],
5483
5565
  setup(e) {
5484
- const t = N(e, "modelValue"), a = P(), i = P(!1), l = (o) => {
5485
- a.value.toggle(o);
5566
+ const t = N(e, "modelValue"), a = M(), i = M(!1), o = (l) => {
5567
+ a.value.toggle(l);
5486
5568
  };
5487
- return (o, n) => (d(), v(A, null, [
5488
- w(u(q), {
5489
- onClick: l,
5569
+ return (l, n) => (d(), b(U, null, [
5570
+ k(c(q), {
5571
+ onClick: o,
5490
5572
  class: "ms-2"
5491
5573
  }, {
5492
5574
  default: f(() => [
5493
- m("div", mi, [
5494
- m("div", vi, [
5495
- w(u(_), { icon: "bi:layout-three-columns" })
5575
+ m("div", gi, [
5576
+ m("div", bi, [
5577
+ k(c(I), { icon: "bi:layout-three-columns" })
5496
5578
  ]),
5497
- M(" Columns (" + F(t.value.filter((s) => s.selected).length ?? 0) + "/" + F(t.value.length ?? 0) + ") ", 1),
5498
- m("div", fi, [
5499
- w(u(_), {
5579
+ V(" Columns (" + $(t.value.filter((s) => s.selected).length ?? 0) + "/" + $(t.value.length ?? 0) + ") ", 1),
5580
+ m("div", yi, [
5581
+ k(c(I), {
5500
5582
  icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
5501
5583
  }, null, 8, ["icon"])
5502
5584
  ])
@@ -5504,7 +5586,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5504
5586
  ]),
5505
5587
  _: 1
5506
5588
  }),
5507
- w(u(be), {
5589
+ k(c(be), {
5508
5590
  ref_key: "columnCustomiserPanel",
5509
5591
  ref: a,
5510
5592
  class: "column-customiser",
@@ -5512,19 +5594,19 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5512
5594
  onShow: n[1] || (n[1] = () => i.value = !0)
5513
5595
  }, {
5514
5596
  default: f(() => [
5515
- m("div", gi, [
5516
- (d(!0), v(A, null, E(t.value, (s, p) => (d(), v("div", {
5517
- class: S(["d-flex cursor-pointer", {
5597
+ m("div", xi, [
5598
+ (d(!0), b(U, null, L(t.value, (s, p) => (d(), b("div", {
5599
+ class: P(["d-flex cursor-pointer", {
5518
5600
  "border-top": p !== 0,
5519
5601
  "py-1": p !== 0 && t.value.length - 1 !== p,
5520
5602
  "pt-1": t.value.length - 1 === p,
5521
5603
  "pb-1": p === 0
5522
5604
  }])
5523
5605
  }, [
5524
- w(ye, {
5606
+ k(ye, {
5525
5607
  id: s.field,
5526
5608
  modelValue: s.selected,
5527
- "onUpdate:modelValue": (c) => s.selected = c,
5609
+ "onUpdate:modelValue": (u) => s.selected = u,
5528
5610
  binary: "",
5529
5611
  class: "cursor-pointer",
5530
5612
  label: s.header
@@ -5536,19 +5618,19 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5536
5618
  }, 512)
5537
5619
  ], 64));
5538
5620
  }
5539
- }), kl = /* @__PURE__ */ C({
5621
+ }), zo = /* @__PURE__ */ z({
5540
5622
  __name: "ForgePanel",
5541
5623
  setup(e) {
5542
5624
  return (t, a) => {
5543
5625
  const i = Je;
5544
- return d(), y(i, W(G({ ...t.$attrs })), ae({
5545
- toggleicon: f(({ collapsed: l }) => [
5546
- l ? (d(), y(u(_), {
5626
+ return d(), x(i, G(Y({ ...t.$attrs })), ie({
5627
+ toggleicon: f(({ collapsed: o }) => [
5628
+ o ? (d(), x(c(I), {
5547
5629
  key: 0,
5548
5630
  "data-cy": "message-icon",
5549
5631
  icon: "bi:chevron-down"
5550
- })) : z("", !0),
5551
- l ? z("", !0) : (d(), y(u(_), {
5632
+ })) : T("", !0),
5633
+ o ? T("", !0) : (d(), x(c(I), {
5552
5634
  key: 1,
5553
5635
  "data-cy": "message-icon",
5554
5636
  icon: "bi:chevron-up"
@@ -5556,22 +5638,22 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5556
5638
  ]),
5557
5639
  _: 2
5558
5640
  }, [
5559
- E(t.$slots, (l, o) => ({
5560
- name: o,
5641
+ L(t.$slots, (o, l) => ({
5642
+ name: l,
5561
5643
  fn: f((n) => [
5562
- B(t.$slots, o, W(G(n)))
5644
+ F(t.$slots, l, G(Y(n)))
5563
5645
  ])
5564
5646
  }))
5565
5647
  ]), 1040);
5566
5648
  };
5567
5649
  }
5568
- }), bi = /* @__PURE__ */ C({
5650
+ }), hi = /* @__PURE__ */ z({
5569
5651
  __name: "ForgeToggleButton",
5570
5652
  props: {
5571
5653
  severity: { default: "primary" }
5572
5654
  },
5573
5655
  setup(e) {
5574
- const t = e, a = T(() => ({
5656
+ const t = e, a = j(() => ({
5575
5657
  root: (i) => ({
5576
5658
  class: [
5577
5659
  "btn",
@@ -5592,17 +5674,17 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5592
5674
  ]
5593
5675
  })
5594
5676
  }));
5595
- return (i, l) => (d(), y(u(Ke), j({ ...i.$attrs, ...t }, {
5677
+ return (i, o) => (d(), x(c(Ke), _({ ...i.$attrs, ...t }, {
5596
5678
  severity: t.severity,
5597
5679
  pt: a.value
5598
5680
  }), null, 16, ["severity", "pt"]));
5599
5681
  }
5600
- }), yi = {
5682
+ }), wi = {
5601
5683
  class: "btn-group",
5602
5684
  "data-cy": "forge-select-button"
5603
- }, $l = /* @__PURE__ */ C({
5685
+ }, Po = /* @__PURE__ */ z({
5604
5686
  __name: "ForgeSelectButton",
5605
- props: /* @__PURE__ */ R({
5687
+ props: /* @__PURE__ */ E({
5606
5688
  options: {},
5607
5689
  multiple: { type: Boolean, default: !0 },
5608
5690
  allowEmpty: { type: Boolean, default: !1 },
@@ -5613,41 +5695,41 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5613
5695
  }),
5614
5696
  emits: ["update:modelValue"],
5615
5697
  setup(e) {
5616
- const t = e, a = N(e, "modelValue"), i = (o) => {
5698
+ const t = e, a = N(e, "modelValue"), i = (l) => {
5617
5699
  var n;
5618
- return t.multiple ? (n = a == null ? void 0 : a.value) == null ? void 0 : n.includes(o.value) : a.value === o.value;
5619
- }, l = (o) => {
5700
+ return t.multiple ? (n = a == null ? void 0 : a.value) == null ? void 0 : n.includes(l.value) : a.value === l.value;
5701
+ }, o = (l) => {
5620
5702
  var n;
5621
- if (!o.disabled)
5703
+ if (!l.disabled)
5622
5704
  if (t.multiple) {
5623
5705
  let s = (n = a.value) != null && n.length ? [...a.value] : [];
5624
- if (s.length >= 1 && s.includes(o.value)) {
5706
+ if (s.length >= 1 && s.includes(l.value)) {
5625
5707
  if (!t.allowEmpty && s.length === 1) return;
5626
- s = s.length > 1 ? s.filter((c) => c !== o.value) : [];
5708
+ s = s.length > 1 ? s.filter((u) => u !== l.value) : [];
5627
5709
  } else
5628
- s.push(o.value);
5710
+ s.push(l.value);
5629
5711
  a.value = s;
5630
5712
  } else
5631
- a.value = a.value === o.value && t.allowEmpty ? null : o.value;
5713
+ a.value = a.value === l.value && t.allowEmpty ? null : l.value;
5632
5714
  };
5633
- return (o, n) => (d(), v("div", yi, [
5634
- (d(!0), v(A, null, E(o.options, (s, p) => (d(), y(bi, {
5715
+ return (l, n) => (d(), b("div", wi, [
5716
+ (d(!0), b(U, null, L(l.options, (s, p) => (d(), x(hi, {
5635
5717
  key: p,
5636
5718
  onLabel: s.label,
5637
5719
  offLabel: s.label,
5638
5720
  severity: s.severity,
5639
- onChange: (c) => l(s),
5721
+ onChange: (u) => o(s),
5640
5722
  defaultValue: i(s),
5641
5723
  disabled: s.disabled,
5642
5724
  "data-cy": `toggle-button-${s.value}`,
5643
- invalid: o.invalid
5725
+ invalid: l.invalid
5644
5726
  }, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
5645
5727
  ]));
5646
5728
  }
5647
- }), Bl = /* @__PURE__ */ C({
5729
+ }), _o = /* @__PURE__ */ z({
5648
5730
  __name: "ForgeConfirmPopup",
5649
5731
  setup(e) {
5650
- const t = T(() => ({
5732
+ const t = j(() => ({
5651
5733
  root: [
5652
5734
  "card w-fit-content position-absolute"
5653
5735
  ],
@@ -5658,14 +5740,131 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5658
5740
  pcRejectButton: { root: "btn btn-outline-primary btn-sm" },
5659
5741
  pcAcceptButton: { root: "btn btn-primary btn-sm" }
5660
5742
  }));
5661
- return (a, i) => (d(), y(u(Ze), j({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
5743
+ return (a, i) => (d(), x(c(Ze), _({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
5662
5744
  default: f(() => [
5663
- (d(!0), v(A, null, E(a.$slots, (l, o) => B(a.$slots, o, { slot: o })), 256))
5745
+ (d(!0), b(U, null, L(a.$slots, (o, l) => F(a.$slots, l, { slot: l })), 256))
5664
5746
  ]),
5665
5747
  _: 3
5666
5748
  }, 16, ["pt"]));
5667
5749
  }
5668
- }), Fl = () => ({
5750
+ }), ki = {
5751
+ key: 0,
5752
+ class: "mb-1"
5753
+ }, Bi = {
5754
+ key: 0,
5755
+ class: "mb-1"
5756
+ }, jo = /* @__PURE__ */ z({
5757
+ __name: "ForgePickList",
5758
+ props: /* @__PURE__ */ E({
5759
+ filterBy: {},
5760
+ sourceTitle: {},
5761
+ targetTitle: {},
5762
+ modelValue: {},
5763
+ selection: {},
5764
+ dataKey: {},
5765
+ metaKeySelection: { type: Boolean },
5766
+ autoOptionFocus: { type: Boolean },
5767
+ focusOnHover: { type: Boolean },
5768
+ listStyle: {},
5769
+ responsive: { type: Boolean },
5770
+ breakpoint: {},
5771
+ scrollHeight: {},
5772
+ striped: { type: Boolean },
5773
+ showSourceControls: { type: Boolean },
5774
+ showTargetControls: { type: Boolean },
5775
+ buttonProps: {},
5776
+ moveUpButtonProps: {},
5777
+ moveTopButtonProps: {},
5778
+ moveDownButtonProps: {},
5779
+ moveBottomButtonProps: {},
5780
+ moveToTargetProps: {},
5781
+ moveAllToTargetProps: {},
5782
+ moveToSourceProps: {},
5783
+ moveAllToSourceProps: {},
5784
+ tabindex: {},
5785
+ dt: {},
5786
+ pt: {},
5787
+ ptOptions: {},
5788
+ unstyled: { type: Boolean }
5789
+ }, {
5790
+ modelValue: {},
5791
+ modelModifiers: {}
5792
+ }),
5793
+ emits: ["update:modelValue"],
5794
+ setup(e) {
5795
+ const t = e, a = N(e, "modelValue"), i = M([]), o = M([]), l = M(null), n = M(null), s = (g) => {
5796
+ const { items: C } = g;
5797
+ i.value = [...i.value, ...C], o.value = o.value.filter((S) => !C.includes(S));
5798
+ }, p = (g) => {
5799
+ const { items: C } = g;
5800
+ o.value = [...o.value, ...C], i.value = i.value.filter((S) => !C.includes(S));
5801
+ }, u = () => {
5802
+ o.value = i.value, i.value = [];
5803
+ }, h = () => {
5804
+ i.value = o.value, o.value = [];
5805
+ }, r = () => {
5806
+ var S;
5807
+ const g = t.filterBy, C = l.value ? (S = a.value[0]) == null ? void 0 : S.filter((A) => {
5808
+ var v;
5809
+ return A[g].toLowerCase().includes((v = l.value) == null ? void 0 : v.toLowerCase());
5810
+ }) : o.value;
5811
+ a.value = [C, a.value[1] ?? []];
5812
+ }, w = () => {
5813
+ var S;
5814
+ const g = t.filterBy, C = n.value ? (S = a.value[1]) == null ? void 0 : S.filter((A) => {
5815
+ var v;
5816
+ return A[g].toLowerCase().includes((v = n.value) == null ? void 0 : v.toLowerCase());
5817
+ }) : i.value;
5818
+ a.value = [a.value[0] ?? [], C];
5819
+ };
5820
+ return W(
5821
+ () => a.value,
5822
+ (g) => {
5823
+ g && (i.value = g[1] ?? [], o.value = g[0] ?? [], a.value = [o.value, i.value]);
5824
+ },
5825
+ { once: !0 }
5826
+ ), (g, C) => (d(), x(c(Xe), _({
5827
+ modelValue: a.value,
5828
+ "onUpdate:modelValue": C[2] || (C[2] = (S) => a.value = S)
5829
+ }, { ...g.$attrs, ...t }, {
5830
+ onMoveAllToSource: u,
5831
+ onMoveAllToTarget: h,
5832
+ onMoveToTarget: C[3] || (C[3] = (S) => s(S)),
5833
+ onMoveToSource: C[4] || (C[4] = (S) => p(S))
5834
+ }), {
5835
+ sourceheader: f(() => [
5836
+ g.sourceTitle ? (d(), b("div", ki, $(g.sourceTitle), 1)) : T("", !0),
5837
+ k(c(ae), {
5838
+ modelValue: l.value,
5839
+ "onUpdate:modelValue": [
5840
+ C[0] || (C[0] = (S) => l.value = S),
5841
+ r
5842
+ ],
5843
+ class: "mb-2",
5844
+ placeholder: "Search",
5845
+ "data-cy": "source-search"
5846
+ }, null, 8, ["modelValue"])
5847
+ ]),
5848
+ targetheader: f(() => [
5849
+ g.targetTitle ? (d(), b("div", Bi, $(g.targetTitle), 1)) : T("", !0),
5850
+ k(c(ae), {
5851
+ modelValue: n.value,
5852
+ "onUpdate:modelValue": [
5853
+ C[1] || (C[1] = (S) => n.value = S),
5854
+ w
5855
+ ],
5856
+ class: "mb-2",
5857
+ placeholder: "Search",
5858
+ "data-cy": "target-search"
5859
+ }, null, 8, ["modelValue"])
5860
+ ]),
5861
+ option: f(({ option: S }) => [
5862
+ V($(S[g.filterBy]), 1)
5863
+ ]),
5864
+ _: 1
5865
+ }, 16, ["modelValue"]));
5866
+ }
5867
+ }), Mo = () => ({
5669
5868
  type: "component",
5670
5869
  resolve: (e) => {
5671
5870
  if (e.startsWith("Forge"))
@@ -5676,39 +5875,40 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5676
5875
  }
5677
5876
  });
5678
5877
  export {
5679
- Qi as Bootstrap_PT,
5680
- el as ForgeActionButton,
5681
- de as ForgeAlert,
5682
- tl as ForgeAutoComplete,
5878
+ lo as Bootstrap_PT,
5879
+ no as ForgeActionButton,
5880
+ re as ForgeAlert,
5881
+ so as ForgeAutoComplete,
5683
5882
  ye as ForgeCheckbox,
5684
- cl as ForgeChip,
5685
- wl as ForgeColumnCustomiser,
5686
- Bl as ForgeConfirmPopup,
5883
+ yo as ForgeChip,
5884
+ To as ForgeColumnCustomiser,
5885
+ _o as ForgeConfirmPopup,
5687
5886
  xe as ForgeDatepicker,
5688
- hl as ForgeFileUploader,
5689
- xl as ForgeFilterHeader,
5690
- dl as ForgeForm,
5691
- pl as ForgeFormField,
5692
- Gt as ForgeInlineEditor,
5693
- al as ForgeLink,
5887
+ Co as ForgeFileUploader,
5888
+ So as ForgeFilterHeader,
5889
+ go as ForgeForm,
5890
+ bo as ForgeFormField,
5891
+ Kt as ForgeInlineEditor,
5892
+ ro as ForgeLink,
5694
5893
  pe as ForgeLoader,
5695
- ol as ForgeModal,
5696
- Qt as ForgeMultiSelectPreview,
5697
- nl as ForgeNavbar,
5698
- sl as ForgePageHeader,
5699
- kl as ForgePanel,
5700
- ul as ForgeProgressBar,
5701
- rl as ForgeRemainingCharacters,
5702
- Fl as ForgeResolver,
5703
- ml as ForgeScratchpad,
5704
- $l as ForgeSelectButton,
5705
- vl as ForgeStatWidget,
5706
- fl as ForgeStepper,
5707
- bl as ForgeTable,
5708
- gl as ForgeTile,
5709
- bi as ForgeToggleButton,
5710
- yl as ForgeTreeTable,
5711
- ll as convertToMultiSelectOption,
5712
- il as enumToMultiSelectList,
5713
- Ot as parseError
5894
+ uo as ForgeModal,
5895
+ aa as ForgeMultiSelectPreview,
5896
+ mo as ForgeNavbar,
5897
+ vo as ForgePageHeader,
5898
+ zo as ForgePanel,
5899
+ jo as ForgePickList,
5900
+ xo as ForgeProgressBar,
5901
+ fo as ForgeRemainingCharacters,
5902
+ Mo as ForgeResolver,
5903
+ ho as ForgeScratchpad,
5904
+ Po as ForgeSelectButton,
5905
+ wo as ForgeStatWidget,
5906
+ ko as ForgeStepper,
5907
+ $o as ForgeTable,
5908
+ Bo as ForgeTile,
5909
+ hi as ForgeToggleButton,
5910
+ Fo as ForgeTreeTable,
5911
+ co as convertToMultiSelectOption,
5912
+ po as enumToMultiSelectList,
5913
+ Ut as parseError
5714
5914
  };