@3squared/forge-ui-3 2.20.0 → 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 Fe from "primevue/message";
2
- import { defineComponent as C, createBlock as y, openBlock as d, normalizeProps as W, guardReactiveProps as G, withCtx as v, renderSlot as F, createVNode as w, unref as u, createElementVNode as m, normalizeClass as S, createCommentVNode as z, ref as I, createElementBlock as f, Fragment as A, mergeProps as _, renderList as E, mergeModels as R, useModel as N, computed as T, withDirectives as J, createTextVNode as P, toDisplayString as B, vShow as X, createSlots as ae, onMounted as oe, withKeys as le, isRef as Be, normalizeStyle as Se, withModifiers as Q, watch as K, h as Ce, useTemplateRef as ze } from "vue";
3
- import { Icon as j } 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 _e from "primevue/autocomplete";
7
- import je from "primevue/checkbox";
8
- import { useField as ne } from "vee-validate";
9
- import Ie from "primevue/progressspinner";
10
- import Pe from "primevue/dialog";
11
- import re from "primevue/inputtext";
12
- import { vOnClickOutside as Me } from "@vueuse/components";
5
+ import ze from "primevue/toast";
6
+ import Pe from "primevue/autocomplete";
7
+ import _e from "primevue/checkbox";
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
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"]
@@ -999,7 +1002,7 @@ const Xe = {
999
1002
  ]
1000
1003
  })
1001
1004
  }
1002
- }, Bt = {
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 }) => ({
@@ -1182,7 +1185,7 @@ const Xe = {
1182
1185
  ]
1183
1186
  })
1184
1187
  }
1185
- }, It = {
1188
+ }, Mt = {
1186
1189
  accordionPanel: {
1187
1190
  root: "card my-2"
1188
1191
  },
@@ -1200,7 +1203,7 @@ const Xe = {
1200
1203
  accordionContent: {
1201
1204
  root: "mt-2 mx-4 mb-4"
1202
1205
  }
1203
- }, Pt = {
1206
+ }, It = {
1204
1207
  // More PT options can be found in the ForgeTable file.
1205
1208
  treetable: {
1206
1209
  root: "position-relative",
@@ -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
- ...Bt,
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
- ...Ft,
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,
1311
+ ...vt,
1312
+ ...zt,
1313
+ ...rt,
1255
1314
  ...jt,
1256
1315
  ..._t,
1257
- ...Tt,
1258
- ...It,
1259
1316
  ...Pt,
1317
+ ...Mt,
1318
+ ...It,
1319
+ ...Vt,
1320
+ ...Dt,
1260
1321
  directives: {
1261
- ...wt
1322
+ ...kt
1262
1323
  }
1263
- }, se = /* @__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 = Fe;
1284
- return d(), y(l, W(G({ ...a.$attrs, ...t })), {
1285
- icon: v(() => [
1344
+ const o = $e;
1345
+ return d(), x(o, G(Y({ ...a.$attrs, ...t })), {
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(j), {
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
- closeicon: v(() => [
1299
- w(u(j), { icon: "bi:x" })
1359
+ closeicon: f(() => [
1360
+ k(c(I), { icon: "bi:x" })
1300
1361
  ]),
1301
- default: v(() => [
1362
+ default: f(() => [
1302
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 = I(!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(), f(A, null, [
1329
- w(n, _({ ...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(_e), _({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
1342
- default: v(() => [
1343
- (d(!0), f(A, null, E(t.$slots, (i, l) => F(t.$slots, l, { slot: l })), 256))
1402
+ return (t, a) => (d(), x(c(Pe), _({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
1403
+ default: f(() => [
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 = je;
1395
- return d(), f("div", Mt, [
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, [
1396
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, _({ ...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
1475
  F(p.$slots, "default", {}, () => [
1415
- P(B(t.label), 1)
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
- }, B(u(o)), 513), [
1483
+ }, $(c(l)), 513), [
1423
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 = Ie;
1447
- return d(), f("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(), f("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
1559
  F(i.$slots, "default", {}, () => [
1499
- i.iconName ? (d(), y(u(j), {
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
- P(" " + B(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 = I(!1), l = e, o = I(!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 = Pe;
1646
- return d(), y(U, _(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({
1651
- closeicon: v(() => [
1652
- w(u(j), {
1710
+ pt: w.value
1711
+ }), ie({
1712
+ closeicon: f(() => [
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
- maximizeicon: v(() => [
1661
- w(u(j), {
1721
+ maximizeicon: f(() => [
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: v((M) => [
1673
- k == "default" ? (d(), f(A, { key: 0 }, [
1674
- n.value.hasError ? (d(), f("div", Nt, [
1675
- w(se, {
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
- default: v(() => [
1741
+ default: f(() => [
1681
1742
  m("p", {
1682
- class: S(n.value.message.length > 0 ? "my-auto" : "mb-0")
1683
- }, B(n.value.header), 3),
1684
- n.value.message.length > 0 ? (d(), f("ul", At, [
1685
- (d(!0), f(A, null, E(n.value.message, (g) => (d(), f("li", { key: g }, B(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
- F($.$slots, k, W(G(M || {}))),
1693
- o.value ? F($.$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
- fn: v(() => [
1701
- m("div", Et, [
1702
- w(O, {
1703
- label: $.cancelText,
1704
- class: S(l.cancelClass),
1761
+ fn: f(() => [
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 = I(!1), l = I(), 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 = re, U = q;
1766
- return d(), f("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(), f("div", Ht, [
1770
- F($.$slots, "default", {}, () => [
1771
- m("span", Wt, B(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(), f("div", qt, [
1774
- i.value ? (d(), f("div", Lt, [
1775
- J((d(), f("div", Rt, [
1776
- F($.$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) => Be(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(j), {
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(), f("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
- F($.$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
- }, B(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
- default: v(() => [
1823
- w(u(j), {
1883
+ default: f(() => [
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
- }, B(u(c)), 513), [
1838
- [X, 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), _({ ...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({
1892
- start: v(() => [
1952
+ }), ie({
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
1959
  F(i.$slots, "logo", {}, () => [
1899
- l[0] || (l[0] = P(" Logo "))
1960
+ o[0] || (o[0] = V(" Logo "))
1900
1961
  ])
1901
- ], 8, Yt)
1962
+ ], 8, Zt)
1902
1963
  ]),
1903
- buttonicon: v(() => [
1964
+ buttonicon: f(() => [
1904
1965
  F(i.$slots, "buttonIcon", {}, () => [
1905
- w(u(j), {
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
- fn: v((s) => [
1918
- F(i.$slots, n, W(G(s)))
1978
+ fn: f((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) => {
2010
+ return (o, l) => {
1950
2011
  const n = de, s = q;
1951
- return d(), f("div", {
1952
- class: S(l.orientation === "column" ? "row" : ""),
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, _({
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
- default: v(() => [
1969
- (d(!0), f(A, null, E(l.$slots, (p, c) => F(l.$slots, c, { slot: c })), 256))
2029
+ default: f(() => [
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
- F(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(), f("div", Kt, B(l.title), 1)) : z("", !0),
1985
- (d(!0), f(A, null, E(a.value, (p) => (d(), f("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
- F(l.$slots, "list-item", { item: p }, () => [
1990
- m("span", Zt, B(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
- default: v(() => [
1999
- w(u(j), {
2059
+ default: f(() => [
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(), f("div", Xt, B(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(), f("div", ea, [
2029
- m("h3", ta, B(t.title), 1),
2030
- m("div", aa, [
2089
+ return (a, i) => (d(), b("div", ia, [
2090
+ m("h3", oa, $(t.title), 1),
2091
+ m("div", la, [
2031
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(), f(A, null, [
2222
- m("div", ia, [
2223
- m("span", la, [
2280
+ return (r, w) => {
2281
+ const g = De;
2282
+ return d(), b(U, null, [
2283
+ m("div", na, [
2284
+ m("span", sa, [
2224
2285
  F(r.$slots, "before")
2225
2286
  ]),
2226
- m("div", oa, [
2227
- w($, _({ ...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(j), {
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
2303
  [X, t.showIcon && !t.inline]
2243
2304
  ]),
2244
- J(w(u(j), {
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
2311
  [X, t.modelValue && !t.inline]
2251
2312
  ])
2252
2313
  ]),
2253
- m("span", na, [
2314
+ m("span", da, [
2254
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
- }, B(u(l)), 513), [
2261
- [X, 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(), f("div", {
2275
- class: S(a.value < 0 ? "text-danger" : "")
2276
- }, "Remaining characters: " + B(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 = I(!1), i = I({
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(), f("form", _(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: Q(l, ["prevent"])
2369
+ onSubmit: Q(o, ["prevent"])
2309
2370
  }), [
2310
- o.hideTitle ? z("", !0) : (d(), f(A, { key: 0 }, [
2311
- F(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
- }, B(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(se, {
2380
+ i.value.hasError ? (d(), x(re, {
2320
2381
  key: 1,
2321
2382
  severity: "danger",
2322
2383
  "data-cy": "error"
2323
2384
  }, {
2324
- default: v(() => [
2325
- F(o.$slots, "error", {
2385
+ default: f(() => [
2386
+ F(l.$slots, "error", {
2326
2387
  error: i.value.message
2327
2388
  }, () => [
2328
- P(B(i.value.message), 1)
2389
+ V($(i.value.message), 1)
2329
2390
  ])
2330
2391
  ]),
2331
2392
  _: 3
2332
- })) : z("", !0),
2333
- F(o.$slots, "default"),
2334
- m("div", sa, [
2335
- F(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
- default: v(() => [
2345
- P(B(o.cancelText), 1)
2405
+ default: f(() => [
2406
+ V($(l.cancelText), 1)
2346
2407
  ]),
2347
2408
  _: 1
2348
2409
  }))
2349
2410
  ]),
2350
- F(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
- default: v(() => [
2358
- P(B(o.submitText), 1)
2418
+ default: f(() => [
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 K(() => o.value, (x) => {
2400
- t.value = x;
2401
- }, { immediate: !0 }), (x, r) => {
2402
- const h = Ne, $ = Oe, D = re, O = ie, U = de, b = xe;
2403
- return a.type === "checkbox" ? (d(), y(ye, _({
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(), f("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
- P(B(a.fieldLabel) + " ", 1),
2421
- x.required ? (d(), f("span", pa, "*")) : z("", !0)
2422
- ], 10, da),
2423
- F(x.$slots, "default", W(G({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
2424
- a.type === "number" ? (d(), y(u(fe), _({
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, _({
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($, _({
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, _({
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, _({ 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, _({ 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, _({ 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, _({ 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
- }, B(u(n)), 513), [
2488
- [X, 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, _({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
2530
- default: v(() => [
2531
- (d(!0), f(A, null, E(i.$slots, (n, s) => F(i.$slots, s, { slot: s })), 256))
2588
+ return (i, o) => {
2589
+ const l = Ne;
2590
+ return d(), x(l, _({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
2591
+ default: f(() => [
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,18 +2632,18 @@ 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, _({ ...n.$attrs, ...t }, { pt: o.value }), {
2585
- default: v(() => [
2644
+ const p = Ue;
2645
+ return d(), x(p, _({ ...n.$attrs, ...t }, { pt: l.value }), {
2646
+ default: f(() => [
2586
2647
  F(n.$slots, "default")
2587
2648
  ]),
2588
2649
  _: 3
@@ -2590,7 +2651,7 @@ const Nt = {
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,85 +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 = I(), 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(), f("div", ua, [
3008
- w(u(ca), _({
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
- default: v(() => r[1] || (r[1] = [
3029
- P("Undo")
3089
+ default: f(() => r[1] || (r[1] = [
3090
+ V("Undo")
3030
3091
  ])),
3031
3092
  _: 1,
3032
3093
  __: [1]
3033
- })) : z("", !0),
3034
- a.showRedo ? (d(), y(h, {
3094
+ })) : T("", !0),
3095
+ a.showRedo ? (d(), x(w, {
3035
3096
  key: 1,
3036
3097
  onClick: s,
3037
3098
  outlined: "",
3038
3099
  "data-cy": "redo-button"
3039
3100
  }, {
3040
- default: v(() => r[2] || (r[2] = [
3041
- P("Redo")
3101
+ default: f(() => r[2] || (r[2] = [
3102
+ V("Redo")
3042
3103
  ])),
3043
3104
  _: 1,
3044
3105
  __: [2]
3045
- })) : z("", !0),
3046
- a.showClear ? (d(), y(h, {
3106
+ })) : T("", !0),
3107
+ a.showClear ? (d(), x(w, {
3047
3108
  key: 2,
3048
3109
  onClick: n,
3049
3110
  outlined: "",
3050
3111
  "data-cy": "clear-button"
3051
3112
  }, {
3052
- default: v(() => r[3] || (r[3] = [
3053
- P("Clear")
3113
+ default: f(() => r[3] || (r[3] = [
3114
+ V("Clear")
3054
3115
  ])),
3055
3116
  _: 1,
3056
3117
  __: [3]
3057
- })) : z("", !0),
3058
- a.showSave ? (d(), y(h, {
3118
+ })) : T("", !0),
3119
+ a.showSave ? (d(), x(w, {
3059
3120
  key: 3,
3060
- onClick: c,
3121
+ onClick: u,
3061
3122
  class: "ms-auto",
3062
3123
  "data-cy": "save-button"
3063
3124
  }, {
3064
- default: v(() => r[4] || (r[4] = [
3065
- P("Save")
3125
+ default: f(() => r[4] || (r[4] = [
3126
+ V("Save")
3066
3127
  ])),
3067
3128
  _: 1,
3068
3129
  __: [4]
3069
- })) : z("", !0)
3130
+ })) : T("", !0)
3070
3131
  ])
3071
3132
  ]);
3072
3133
  };
3073
3134
  }
3074
- }), 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({
3075
3136
  __name: "ForgeStatWidget",
3076
3137
  props: {
3077
3138
  size: { default: "md" },
@@ -3079,15 +3140,15 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
3079
3140
  },
3080
3141
  setup(e) {
3081
3142
  const t = e;
3082
- return (a, i) => (d(), f("div", _(a.$attrs, {
3143
+ return (a, i) => (d(), b("div", _(a.$attrs, {
3083
3144
  class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
3084
3145
  }), [
3085
- m("span", va, [
3146
+ m("span", ba, [
3086
3147
  F(a.$slots, "default")
3087
3148
  ])
3088
3149
  ], 16));
3089
3150
  }
3090
- }), fa = { key: 0 }, fl = /* @__PURE__ */ C({
3151
+ }), ya = { key: 0 }, ko = /* @__PURE__ */ z({
3091
3152
  __name: "ForgeStepper",
3092
3153
  props: {
3093
3154
  currentStep: { default: 1 },
@@ -3105,7 +3166,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
3105
3166
  unstyled: { type: Boolean }
3106
3167
  },
3107
3168
  setup(e) {
3108
- const t = e, a = T(() => ({
3169
+ const t = e, a = j(() => ({
3109
3170
  header: {
3110
3171
  class: [
3111
3172
  "p-0 m-0 d-flex align-items-center border border-0 bg-transparent gap-1",
@@ -3134,32 +3195,31 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
3134
3195
  ]
3135
3196
  })
3136
3197
  }));
3137
- return (i, l) => (d(), y(u(qe), { value: i.currentStep }, {
3138
- default: v(() => [
3139
- w(u(Le), null, {
3140
- default: v(() => [
3141
- (d(!0), f(A, null, E(i.steps, (o) => (d(), y(u(Ue), _({
3142
- key: o.value,
3143
- value: o.value,
3144
- disabled: o.disabled,
3145
- ref_for: !0
3146
- }, { ...i.$attrs }, { pt: a.value }), {
3147
- default: v(() => [
3148
- i.showStepLabel ? (d(), f("div", fa, B(o.label), 1)) : z("", !0)
3198
+ return (i, o) => (d(), x(c(Ee), { value: i.currentStep }, {
3199
+ default: f(() => [
3200
+ k(c(qe), null, {
3201
+ default: f(() => [
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 }), {
3207
+ default: f(() => [
3208
+ i.showStepLabel ? (d(), b("div", ya, $(l.label), 1)) : T("", !0)
3149
3209
  ]),
3150
3210
  _: 2
3151
3211
  }, 1040, ["value", "disabled", "pt"]))), 128))
3152
3212
  ]),
3153
3213
  _: 1
3154
3214
  }),
3155
- w(u(He), null, {
3156
- default: v(() => [
3157
- (d(!0), f(A, null, E(i.steps, (o) => (d(), y(u(Re), {
3158
- key: o.value,
3159
- value: o.value
3215
+ k(c(He), null, {
3216
+ default: f(() => [
3217
+ (d(!0), b(U, null, L(i.steps, (l) => (d(), x(c(Re), {
3218
+ key: l.value,
3219
+ value: l.value
3160
3220
  }, {
3161
- default: v(() => [
3162
- F(i.$slots, "step" + o.value)
3221
+ default: f(() => [
3222
+ F(i.$slots, "step" + l.value)
3163
3223
  ]),
3164
3224
  _: 2
3165
3225
  }, 1032, ["value"]))), 128))
@@ -3170,7 +3230,7 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
3170
3230
  _: 3
3171
3231
  }, 8, ["value"]));
3172
3232
  }
3173
- }), 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({
3174
3234
  __name: "ForgeTile",
3175
3235
  props: {
3176
3236
  severity: { default: "primary" },
@@ -3179,32 +3239,32 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
3179
3239
  selected: { type: Boolean, default: !1 }
3180
3240
  },
3181
3241
  setup(e) {
3182
- 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" : ""}`);
3183
- 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) => {
3184
3244
  const n = q;
3185
- return t.clickable ? (d(), y(n, {
3245
+ return t.clickable ? (d(), x(n, {
3186
3246
  key: 0,
3187
- 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]),
3188
3248
  severity: t.severity,
3189
3249
  unstyled: "",
3190
3250
  "data-cy": "button-tile"
3191
3251
  }, {
3192
- default: v(() => [
3193
- m("div", ga, [
3194
- F(l.$slots, "default", {}, () => [
3195
- o[0] || (o[0] = P("Tile Content"))
3252
+ default: f(() => [
3253
+ m("div", xa, [
3254
+ F(o.$slots, "default", {}, () => [
3255
+ l[0] || (l[0] = V("Tile Content"))
3196
3256
  ])
3197
3257
  ])
3198
3258
  ]),
3199
3259
  _: 3
3200
- }, 8, ["severity", "class"])) : (d(), f("div", {
3260
+ }, 8, ["severity", "class"])) : (d(), b("div", {
3201
3261
  key: 1,
3202
- class: S(["d-flex w-100", i.value]),
3262
+ class: P(["d-flex w-100", i.value]),
3203
3263
  "data-cy": "tile"
3204
3264
  }, [
3205
- m("div", ba, [
3206
- F(l.$slots, "default", {}, () => [
3207
- o[1] || (o[1] = P("Tile Content"))
3265
+ m("div", ha, [
3266
+ F(o.$slots, "default", {}, () => [
3267
+ l[1] || (l[1] = V("Tile Content"))
3208
3268
  ])
3209
3269
  ])
3210
3270
  ], 2));
@@ -3214,13 +3274,13 @@ const ua = { class: "d-flex flex-column" }, ma = { class: "d-flex flex-row mt-1
3214
3274
  function ee(e, t) {
3215
3275
  return e > 1 ? `${t}s` : t;
3216
3276
  }
3217
- const ya = {
3277
+ const wa = {
3218
3278
  class: "d-flex justify-content-start align-items-baseline",
3219
3279
  "data-cy": "pagination-header"
3220
- }, xa = { class: "ms-2" }, ha = { key: 0 }, wa = {
3280
+ }, ka = { class: "ms-2" }, Ba = { key: 0 }, $a = {
3221
3281
  class: "w-auto",
3222
3282
  "data-cy": "total"
3223
- }, he = /* @__PURE__ */ C({
3283
+ }, he = /* @__PURE__ */ z({
3224
3284
  __name: "ForgePaginationHeader",
3225
3285
  props: {
3226
3286
  total: {},
@@ -3229,33 +3289,33 @@ const ya = {
3229
3289
  },
3230
3290
  emits: ["update:perPage"],
3231
3291
  setup(e, { emit: t }) {
3232
- const a = t, i = e, l = (n) => {
3292
+ const a = t, i = e, o = (n) => {
3233
3293
  a("update:perPage", n.value);
3234
- }, o = T(() => {
3294
+ }, l = j(() => {
3235
3295
  const n = Math.ceil(i.total / i.perPage);
3236
3296
  return `${n} ${ee(n, "page")}`;
3237
3297
  });
3238
- return (n, s) => (d(), f("div", ya, [
3239
- s[2] || (s[2] = P(" Number of results per page ")),
3240
- m("div", xa, [
3241
- 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), {
3242
3302
  options: i.pageSizes,
3243
3303
  "model-value": i.perPage,
3244
3304
  class: "page-size",
3245
- onChange: s[0] || (s[0] = (p) => l(p)),
3305
+ onChange: s[0] || (s[0] = (p) => o(p)),
3246
3306
  "data-cy": "pagination-page-size-select"
3247
3307
  }, null, 8, ["options", "model-value"])
3248
3308
  ]),
3249
- i.total ? (d(), f("div", ha, [
3309
+ i.total ? (d(), b("div", Ba, [
3250
3310
  s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
3251
- m("span", wa, B(i.total) + " " + B(u(ee)(i.total, "result")) + " across " + B(o.value), 1)
3252
- ])) : z("", !0)
3311
+ m("span", $a, $(i.total) + " " + $(c(ee)(i.total, "result")) + " across " + $(l.value), 1)
3312
+ ])) : T("", !0)
3253
3313
  ]));
3254
3314
  }
3255
- }), ka = { class: "position-relative" }, $a = { "data-cy": "above-table-slot" }, Fa = { class: "d-flex w-100" }, Ba = {
3315
+ }), Fa = { class: "position-relative" }, Sa = { "data-cy": "above-table-slot" }, Ca = { class: "d-flex w-100" }, Ta = {
3256
3316
  class: "mx-auto",
3257
3317
  "data-cy": "empty-message"
3258
- }, 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({
3259
3319
  __name: "ForgeTable",
3260
3320
  props: {
3261
3321
  value: {},
@@ -3342,7 +3402,7 @@ const ya = {
3342
3402
  },
3343
3403
  emits: ["update:filters", "update:tableContext", "sort", "page"],
3344
3404
  setup(e, { emit: t }) {
3345
- const a = t, i = e, l = I(), o = I([5, 10, 20, 50, 100]), n = I(i.perPage ?? 10), s = I({
3405
+ const a = t, i = e, o = M(), l = M([5, 10, 20, 50, 100]), n = M(i.perPage ?? 10), s = M({
3346
3406
  filters: i.filters,
3347
3407
  perPage: n.value,
3348
3408
  page: 0,
@@ -3350,13 +3410,13 @@ const ya = {
3350
3410
  sortField: "",
3351
3411
  total: i.totalRecords ?? i.value.length
3352
3412
  });
3353
- K(() => i.perPage, (b) => {
3354
- b && (n.value = b, s.value.perPage = b);
3413
+ W(() => i.perPage, (v) => {
3414
+ v && (n.value = v, s.value.perPage = v);
3355
3415
  });
3356
- const p = T(() => i.totalRecords ?? i.value.length), c = T(() => {
3357
- const b = Math.ceil(p.value / n.value);
3358
- return `${b} ${ee(b, "page")}`;
3359
- }), 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(() => ({
3360
3420
  thead: () => ({
3361
3421
  class: [
3362
3422
  {
@@ -3383,153 +3443,153 @@ const ya = {
3383
3443
  if (i.clearAll)
3384
3444
  i.clearAll();
3385
3445
  else
3386
- for (const b in i.filters)
3387
- typeof i.filters[b] == "string" ? i.filters[b] = "" : i.filters[b].value = null;
3388
- D(i.filters);
3389
- }, h = () => {
3390
- l.value.exportCSV();
3391
- }, $ = (b) => {
3392
- var k;
3393
- 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);
3394
- }, D = (b) => {
3395
- s.value.filters = b, a("update:tableContext", s.value), a("update:filters", b);
3396
- }, O = (b) => {
3397
- s.value.page = b.page, a("update:tableContext", s.value), a("page", b);
3398
- }, 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 = () => {
3399
3459
  s.value.perPage = n.value, a("update:tableContext", s.value);
3400
3460
  };
3401
- return K(() => i.filters, (b) => {
3402
- s.value.filters = b, a("update:tableContext", s.value);
3403
- }, { deep: !0 }), oe(() => a("update:tableContext", s.value)), (b, k) => (d(), f("div", ka, [
3404
- m("span", $a, [
3405
- F(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")
3406
3466
  ]),
3407
- w(u(We), _({
3467
+ k(c(We), _({
3408
3468
  class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
3409
- }, { ...i, ...b.$attrs }, {
3410
- pt: x.value,
3469
+ }, { ...i, ...v.$attrs }, {
3470
+ pt: h.value,
3411
3471
  rows: n.value,
3412
3472
  "total-records": p.value,
3413
3473
  "filter-display": i.filters ? "row" : void 0,
3414
3474
  ref_key: "forgeTable",
3415
- ref: l,
3475
+ ref: o,
3416
3476
  "data-cy": "table",
3417
- "onUpdate:filters": D,
3418
- onSort: $,
3419
- onPage: O,
3477
+ "onUpdate:filters": C,
3478
+ onSort: g,
3479
+ onPage: S,
3420
3480
  showHeaders: ""
3421
- }), ae({
3422
- empty: v(() => [
3423
- m("div", Fa, [
3424
- m("h5", Ba, B(b.emptyMessage ?? "No items Found."), 1)
3481
+ }), ie({
3482
+ empty: f(() => [
3483
+ m("div", Ca, [
3484
+ m("h5", Ta, $(v.emptyMessage ?? "No items Found."), 1)
3425
3485
  ])
3426
3486
  ]),
3427
- header: v(() => [
3487
+ header: f(() => [
3428
3488
  m("div", {
3429
- class: S(i.loading ? "opacity-50" : "")
3489
+ class: P(i.loading ? "opacity-50" : "")
3430
3490
  }, [
3431
- m("div", Sa, [
3432
- m("div", Ca, [
3433
- b.paginator && !b.legacyPaginationFooter ? (d(), f("span", za, [
3434
- w(he, {
3491
+ m("div", za, [
3492
+ m("div", Pa, [
3493
+ v.paginator && !v.legacyPaginationFooter ? (d(), b("span", _a, [
3494
+ k(he, {
3435
3495
  total: p.value,
3436
- "page-sizes": o.value,
3496
+ "page-sizes": l.value,
3437
3497
  "per-page": n.value,
3438
3498
  "onUpdate:perPage": [
3439
- k[0] || (k[0] = (M) => n.value = M),
3440
- U
3499
+ B[0] || (B[0] = (D) => n.value = D),
3500
+ A
3441
3501
  ]
3442
3502
  }, null, 8, ["total", "page-sizes", "per-page"])
3443
- ])) : z("", !0)
3503
+ ])) : T("", !0)
3444
3504
  ]),
3445
- m("div", Ta, [
3446
- b.showClearButton ? (d(), y(u(q), {
3505
+ m("div", ja, [
3506
+ v.showClearButton ? (d(), x(c(q), {
3447
3507
  key: 0,
3448
3508
  outlined: "",
3449
- class: S(b.showExporterButton ? "me-2" : ""),
3509
+ class: P(v.showExporterButton ? "me-2" : ""),
3450
3510
  onClick: r,
3451
3511
  "data-cy": "clear-all"
3452
3512
  }, {
3453
- default: v(() => [
3454
- w(u(j), {
3513
+ default: f(() => [
3514
+ k(c(I), {
3455
3515
  icon: "bi:funnel-fill",
3456
3516
  width: "24",
3457
3517
  height: "24"
3458
3518
  }),
3459
- k[2] || (k[2] = P(" Clear "))
3519
+ B[2] || (B[2] = V(" Clear "))
3460
3520
  ]),
3461
3521
  _: 1,
3462
3522
  __: [2]
3463
- }, 8, ["class"])) : z("", !0),
3464
- b.showExporterButton ? (d(), y(u(q), {
3523
+ }, 8, ["class"])) : T("", !0),
3524
+ v.showExporterButton ? (d(), x(c(q), {
3465
3525
  key: 1,
3466
3526
  outlined: "",
3467
- onClick: h,
3527
+ onClick: w,
3468
3528
  "data-cy": "exporter"
3469
3529
  }, {
3470
- default: v(() => [
3471
- w(u(j), {
3530
+ default: f(() => [
3531
+ k(c(I), {
3472
3532
  icon: "typcn:export",
3473
3533
  width: "24",
3474
3534
  height: "24"
3475
3535
  }),
3476
- k[3] || (k[3] = P(" Export "))
3536
+ B[3] || (B[3] = V(" Export "))
3477
3537
  ]),
3478
3538
  _: 1,
3479
3539
  __: [3]
3480
- })) : z("", !0),
3481
- F(b.$slots, "column-customiser")
3540
+ })) : T("", !0),
3541
+ F(v.$slots, "column-customiser")
3482
3542
  ])
3483
3543
  ])
3484
3544
  ], 2)
3485
3545
  ]),
3486
- default: v(() => [
3487
- F(b.$slots, "default")
3546
+ default: f(() => [
3547
+ F(v.$slots, "default")
3488
3548
  ]),
3489
3549
  _: 2
3490
3550
  }, [
3491
- E(b.$slots, (M, g) => ({
3492
- name: g,
3493
- fn: v((V) => [
3494
- F(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 || {})))
3495
3555
  ])
3496
3556
  })),
3497
- b.legacyPaginationFooter ? {
3557
+ v.legacyPaginationFooter ? {
3498
3558
  name: "paginatorstart",
3499
- fn: v(() => [
3559
+ fn: f(() => [
3500
3560
  m("span", {
3501
- class: S(["d-flex", i.loading ? "opacity-50" : ""]),
3561
+ class: P(["d-flex", i.loading ? "opacity-50" : ""]),
3502
3562
  "data-cy": "legacy-page-size"
3503
3563
  }, [
3504
- k[4] || (k[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
3505
- w(u(ie), {
3506
- 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,
3507
3567
  modelValue: n.value,
3508
- "onUpdate:modelValue": k[1] || (k[1] = (M) => n.value = M),
3568
+ "onUpdate:modelValue": B[1] || (B[1] = (D) => n.value = D),
3509
3569
  class: "ms-2",
3510
- onClick: U
3570
+ onClick: A
3511
3571
  }, null, 8, ["options", "modelValue"])
3512
3572
  ], 2)
3513
3573
  ]),
3514
3574
  key: "0"
3515
3575
  } : void 0,
3516
- b.legacyPaginationFooter ? {
3576
+ v.legacyPaginationFooter ? {
3517
3577
  name: "paginatorend",
3518
- fn: v(() => [
3578
+ fn: f(() => [
3519
3579
  m("span", {
3520
3580
  "data-cy": "legacy-total",
3521
- class: S(i.loading ? "opacity-50" : "")
3522
- }, B(p.value) + " " + B(u(ee)(p.value, "result")) + " across " + B(c.value), 3)
3581
+ class: P(i.loading ? "opacity-50" : "")
3582
+ }, $(p.value) + " " + $(c(ee)(p.value, "result")) + " across " + $(u.value), 3)
3523
3583
  ]),
3524
3584
  key: "1"
3525
3585
  } : void 0
3526
3586
  ]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
3527
3587
  ]));
3528
3588
  }
3529
- }), _a = { class: "position-relative" }, ja = { "data-cy": "above-table-slot" }, Ia = { class: "d-flex w-100" }, Pa = {
3589
+ }), Ma = { class: "position-relative" }, Ia = { "data-cy": "above-table-slot" }, Va = { class: "d-flex w-100" }, Da = {
3530
3590
  class: "mx-auto",
3531
3591
  "data-cy": "empty-message"
3532
- }, 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({
3533
3593
  __name: "ForgeTreeTable",
3534
3594
  props: {
3535
3595
  stripedRows: { type: Boolean, default: !1 },
@@ -3590,28 +3650,28 @@ const ya = {
3590
3650
  },
3591
3651
  emits: ["update:filters", "update:tableContext", "sort", "page"],
3592
3652
  setup(e, { emit: t }) {
3593
- const a = e, i = t, l = I([5, 10, 20, 50, 100]), o = I(10), n = I(0), s = I(0), p = I({
3653
+ const a = e, i = t, o = M([5, 10, 20, 50, 100]), l = M(10), n = M(0), s = M(0), p = M({
3594
3654
  filters: a.filters,
3595
- perPage: o.value,
3655
+ perPage: l.value,
3596
3656
  page: 0,
3597
3657
  sortDirection: "None",
3598
3658
  sortField: "",
3599
3659
  total: a.totalRecords ?? a.value.length
3600
- }), c = T(() => a.totalRecords ?? a.value.length), x = T(() => {
3601
- const g = Math.ceil(c.value / o.value);
3602
- return `${g} ${ee(g, "page")}`;
3603
- }), 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(() => ({
3604
3664
  root: "position-relative",
3605
- table: (g) => ({
3665
+ table: (y) => ({
3606
3666
  class: [
3607
3667
  "table position-relative",
3608
3668
  {
3609
- "table-striped": g.attrs.stripedRows,
3610
- "table-hover": g.props.rowHover,
3611
- "table-bordered": g.props.showGridlines,
3612
- "table-sm": g.props.size === "small",
3613
- "table-lg": g.props.size === "large",
3614
- "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
3615
3675
  }
3616
3676
  ]
3617
3677
  }),
@@ -3629,184 +3689,184 @@ const ya = {
3629
3689
  }
3630
3690
  ]
3631
3691
  }),
3632
- row: ({ instance: g }) => [
3692
+ row: ({ instance: y }) => [
3633
3693
  {
3634
- "parent-node": g.node.hasOwnProperty("children")
3694
+ "parent-node": y.node.hasOwnProperty("children")
3635
3695
  }
3636
3696
  ]
3637
3697
  }));
3638
- K(() => a.parentExpanderFullRow, (g) => {
3639
- g ? h() : $();
3698
+ W(() => a.parentExpanderFullRow, (y) => {
3699
+ y ? w() : g();
3640
3700
  });
3641
- const h = () => {
3701
+ const w = () => {
3642
3702
  a.parentExpanderFullRow && setTimeout(
3643
3703
  () => {
3644
- const g = Array.from(
3704
+ const y = Array.from(
3645
3705
  document.querySelectorAll(".parent-node td.expander-cell")
3646
3706
  );
3647
3707
  Array.from(
3648
3708
  document.querySelectorAll(".parent-node td")
3649
- ).forEach((L) => {
3650
- L.classList.add("d-none");
3651
- }), g.forEach((L) => {
3652
- 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");
3653
3713
  });
3654
3714
  },
3655
3715
  0
3656
3716
  );
3657
- }, $ = () => {
3717
+ }, g = () => {
3658
3718
  setTimeout(
3659
3719
  () => {
3660
- const g = Array.from(
3720
+ const y = Array.from(
3661
3721
  document.querySelectorAll(".parent-node td.expander-cell")
3662
- ), V = Array.from(
3722
+ ), O = Array.from(
3663
3723
  document.querySelectorAll(".parent-node td")
3664
3724
  );
3665
- g.forEach((L) => {
3666
- L.removeAttribute("colspan");
3667
- }), V.forEach((L) => {
3668
- L.classList.remove("d-none");
3725
+ y.forEach((R) => {
3726
+ R.removeAttribute("colspan");
3727
+ }), O.forEach((R) => {
3728
+ R.classList.remove("d-none");
3669
3729
  });
3670
3730
  },
3671
3731
  0
3672
3732
  );
3673
- }, D = () => {
3733
+ }, C = () => {
3674
3734
  if (a.clearAll)
3675
3735
  a.clearAll();
3676
3736
  else
3677
- for (const g in a.filters)
3678
- typeof a.filters[g] == "string" ? a.filters[g] = "" : a.filters[g].value = null;
3679
- U(a.filters);
3680
- }, O = (g) => {
3681
- var V;
3682
- 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();
3683
- }, U = (g) => {
3684
- p.value.filters = g, i("update:tableContext", p.value), i("update:filters", g), h();
3685
- }, b = (g) => {
3686
- p.value.page = s.value = g.page, M(), i("update:tableContext", p.value), i("page", g), h();
3687
- }, k = () => {
3688
- p.value.perPage = o.value, s.value = 0, p.value.page = s.value = Math.floor(n.value / o.value), M(), 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();
3689
3749
  };
3690
- K(() => a.filters, (g) => {
3691
- p.value.filters = g, i("update:tableContext", p.value);
3692
- }, { deep: !0 }), K(() => a.value, () => {
3693
- h();
3694
- }), oe(() => {
3695
- 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);
3696
3756
  });
3697
- const M = () => {
3698
- n.value = s.value * o.value;
3757
+ const D = () => {
3758
+ n.value = s.value * l.value;
3699
3759
  };
3700
- return (g, V) => (d(), f("div", _a, [
3701
- m("span", ja, [
3702
- F(g.$slots, "above-table")
3760
+ return (y, O) => (d(), b("div", Ma, [
3761
+ m("span", Ia, [
3762
+ F(y.$slots, "above-table")
3703
3763
  ]),
3704
- w(u(Ge), _({
3764
+ k(c(Ge), _({
3705
3765
  class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
3706
- }, { ...a, ...g.$attrs }, {
3766
+ }, { ...a, ...y.$attrs }, {
3707
3767
  pt: r.value,
3708
3768
  "filter-display": a.filters ? "row" : void 0,
3709
- rows: g.paginator ? o.value : void 0,
3769
+ rows: y.paginator ? l.value : void 0,
3710
3770
  "data-cy": "tree-table",
3711
- "onUpdate:filters": U,
3712
- onSort: O,
3713
- onPage: b,
3714
- onNodeExpand: V[2] || (V[2] = () => h()),
3771
+ "onUpdate:filters": A,
3772
+ onSort: S,
3773
+ onPage: v,
3774
+ onNodeExpand: O[2] || (O[2] = () => w()),
3715
3775
  showHeaders: "",
3716
3776
  first: n.value
3717
- }), ae({
3718
- empty: v(() => [
3719
- m("div", Ia, [
3720
- m("h5", Pa, B(g.emptyMessage ?? "No items Found."), 1)
3777
+ }), ie({
3778
+ empty: f(() => [
3779
+ m("div", Va, [
3780
+ m("h5", Da, $(y.emptyMessage ?? "No items Found."), 1)
3721
3781
  ])
3722
3782
  ]),
3723
- header: v(() => [
3783
+ header: f(() => [
3724
3784
  m("div", {
3725
- class: S(a.loading ? "opacity-50" : "")
3785
+ class: P(a.loading ? "opacity-50" : "")
3726
3786
  }, [
3727
- m("div", Ma, [
3728
- m("div", Va, [
3729
- g.paginator && !g.legacyPaginationFooter ? (d(), f("span", Da, [
3730
- w(he, {
3731
- total: c.value,
3732
- "page-sizes": l.value,
3733
- "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,
3734
3794
  "onUpdate:perPage": [
3735
- V[0] || (V[0] = (L) => o.value = L),
3736
- k
3795
+ O[0] || (O[0] = (R) => l.value = R),
3796
+ B
3737
3797
  ]
3738
3798
  }, null, 8, ["total", "page-sizes", "per-page"])
3739
- ])) : z("", !0)
3799
+ ])) : T("", !0)
3740
3800
  ]),
3741
- m("div", Oa, [
3742
- g.showClearButton ? (d(), y(u(q), {
3801
+ m("div", Ua, [
3802
+ y.showClearButton ? (d(), x(c(q), {
3743
3803
  key: 0,
3744
3804
  outlined: "",
3745
- onClick: D,
3805
+ onClick: C,
3746
3806
  "data-cy": "clear-all"
3747
3807
  }, {
3748
- default: v(() => [
3749
- w(u(j), {
3808
+ default: f(() => [
3809
+ k(c(I), {
3750
3810
  icon: "bi:funnel-fill",
3751
3811
  width: "24",
3752
3812
  height: "24"
3753
3813
  }),
3754
- V[3] || (V[3] = P(" Clear "))
3814
+ O[3] || (O[3] = V(" Clear "))
3755
3815
  ]),
3756
3816
  _: 1,
3757
3817
  __: [3]
3758
- })) : z("", !0),
3759
- F(g.$slots, "column-customiser")
3818
+ })) : T("", !0),
3819
+ F(y.$slots, "column-customiser")
3760
3820
  ])
3761
3821
  ])
3762
3822
  ], 2)
3763
3823
  ]),
3764
- default: v(() => [
3765
- F(g.$slots, "default")
3824
+ default: f(() => [
3825
+ F(y.$slots, "default")
3766
3826
  ]),
3767
3827
  _: 2
3768
3828
  }, [
3769
- E(g.$slots, (L, ve) => ({
3829
+ L(y.$slots, (R, ve) => ({
3770
3830
  name: ve,
3771
- fn: v(($e) => [
3772
- F(g.$slots, ve, W(G($e || {})))
3831
+ fn: f((Be) => [
3832
+ F(y.$slots, ve, G(Y(Be || {})))
3773
3833
  ])
3774
3834
  })),
3775
- g.legacyPaginationFooter ? {
3835
+ y.legacyPaginationFooter ? {
3776
3836
  name: "paginatorstart",
3777
- fn: v(() => [
3837
+ fn: f(() => [
3778
3838
  m("span", {
3779
- class: S(["d-flex", a.loading ? "opacity-50" : ""]),
3839
+ class: P(["d-flex", a.loading ? "opacity-50" : ""]),
3780
3840
  "data-cy": "legacy-page-size"
3781
3841
  }, [
3782
- V[4] || (V[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
3783
- w(u(ie), {
3784
- options: l.value,
3785
- modelValue: o.value,
3786
- "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),
3787
3847
  class: "ms-2",
3788
- onClick: k
3848
+ onClick: B
3789
3849
  }, null, 8, ["options", "modelValue"])
3790
3850
  ], 2)
3791
3851
  ]),
3792
3852
  key: "0"
3793
3853
  } : void 0,
3794
- g.legacyPaginationFooter ? {
3854
+ y.legacyPaginationFooter ? {
3795
3855
  name: "paginatorend",
3796
- fn: v(() => [
3856
+ fn: f(() => [
3797
3857
  m("span", {
3798
3858
  "data-cy": "legacy-total",
3799
- class: S(a.loading ? "opacity-50" : "")
3800
- }, B(c.value) + " " + B(u(ee)(c.value, "result")) + " across " + B(x.value), 3)
3859
+ class: P(a.loading ? "opacity-50" : "")
3860
+ }, $(u.value) + " " + $(c(ee)(u.value, "result")) + " across " + $(h.value), 3)
3801
3861
  ]),
3802
3862
  key: "1"
3803
3863
  } : void 0
3804
3864
  ]), 1040, ["class", "pt", "filter-display", "rows", "first"])
3805
3865
  ]));
3806
3866
  }
3807
- }), 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({
3808
3868
  __name: "ForgeFilterHeader",
3809
- props: /* @__PURE__ */ R({
3869
+ props: /* @__PURE__ */ E({
3810
3870
  dataType: {},
3811
3871
  dropdownOptions: {},
3812
3872
  showClearButton: { type: Boolean, default: !1 },
@@ -3819,57 +3879,57 @@ const ya = {
3819
3879
  }),
3820
3880
  emits: ["update:modelValue"],
3821
3881
  setup(e) {
3822
- const t = N(e, "modelValue"), a = (l, o) => {
3823
- if (!l || Array.isArray(l) && l.length === 0)
3824
- return o;
3882
+ const t = N(e, "modelValue"), a = (o, l) => {
3883
+ if (!o || Array.isArray(o) && o.length === 0)
3884
+ return l;
3825
3885
  const n = (s) => {
3826
- var c;
3827
- const p = (c = e.dropdownOptions) == null ? void 0 : c.find(
3828
- (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])
3829
3889
  );
3830
3890
  return e.optionLabel ? p[e.optionLabel] : p;
3831
3891
  };
3832
- return Array.isArray(l) ? l.map(n).join(", ") : n(l);
3892
+ return Array.isArray(o) ? o.map(n).join(", ") : n(o);
3833
3893
  }, i = () => {
3834
3894
  e.clearFilter ? e.clearFilter() : t.value = null;
3835
3895
  };
3836
- return (l, o) => {
3896
+ return (o, l) => {
3837
3897
  const n = fe, s = q;
3838
- return d(), f("div", Na, [
3839
- l.dataType === "numeric" ? (d(), y(n, _({
3898
+ return d(), b("div", La, [
3899
+ o.dataType === "numeric" ? (d(), x(n, _({
3840
3900
  key: 0,
3841
3901
  modelValue: t.value,
3842
- "onUpdate:modelValue": o[0] || (o[0] = (p) => t.value = p),
3902
+ "onUpdate:modelValue": l[0] || (l[0] = (p) => t.value = p),
3843
3903
  modelModifiers: { trim: !0 }
3844
- }, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(), y(xe, _({
3904
+ }, o.$attrs), null, 16, ["modelValue"])) : o.dataType === "date" ? (d(), x(xe, _({
3845
3905
  key: 1,
3846
3906
  modelValue: t.value,
3847
- "onUpdate:modelValue": o[1] || (o[1] = (p) => t.value = p)
3848
- }, l.$attrs, {
3907
+ "onUpdate:modelValue": l[1] || (l[1] = (p) => t.value = p)
3908
+ }, o.$attrs, {
3849
3909
  "show-icon": !1,
3850
3910
  "show-on-focus": !0
3851
- }), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), y(u(ie), _({
3911
+ }), null, 16, ["modelValue"])) : o.dataType === "select" ? (d(), x(c(oe), _({
3852
3912
  key: 2,
3853
3913
  modelValue: t.value,
3854
- "onUpdate:modelValue": o[2] || (o[2] = (p) => t.value = p)
3855
- }, l.$attrs, {
3856
- options: l.dropdownOptions,
3857
- "option-value": l.optionValue,
3858
- "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
3859
3919
  }), {
3860
- value: v(({ value: p, placeholder: c }) => [
3861
- m("div", Aa, [
3920
+ value: f(({ value: p, placeholder: u }) => [
3921
+ m("div", Ea, [
3862
3922
  m("span", {
3863
- class: S({ "filter-placeholder": p === null })
3864
- }, B(a(p, c)), 3),
3865
- 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, {
3866
3926
  key: 0,
3867
3927
  onClick: Q(i, ["prevent"]),
3868
3928
  size: "small",
3869
3929
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
3870
3930
  }, {
3871
- default: v(() => [
3872
- w(u(j), {
3931
+ default: f(() => [
3932
+ k(c(I), {
3873
3933
  icon: "bi:x",
3874
3934
  width: "1rem",
3875
3935
  height: "1rem",
@@ -3877,34 +3937,34 @@ const ya = {
3877
3937
  })
3878
3938
  ]),
3879
3939
  _: 1
3880
- })) : z("", !0)
3940
+ })) : T("", !0)
3881
3941
  ])
3882
3942
  ]),
3883
3943
  _: 1
3884
- }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), y(u(de), _({
3944
+ }, 16, ["modelValue", "options", "option-value", "option-label"])) : o.dataType === "multiselect" ? (d(), x(c(de), _({
3885
3945
  key: 3,
3886
3946
  modelValue: t.value,
3887
- "onUpdate:modelValue": o[3] || (o[3] = (p) => t.value = p)
3888
- }, l.$attrs, {
3889
- options: l.dropdownOptions,
3947
+ "onUpdate:modelValue": l[3] || (l[3] = (p) => t.value = p)
3948
+ }, o.$attrs, {
3949
+ options: o.dropdownOptions,
3890
3950
  showToggleAll: !1,
3891
- "option-label": l.optionLabel,
3892
- "option-value": l.optionValue,
3951
+ "option-label": o.optionLabel,
3952
+ "option-value": o.optionValue,
3893
3953
  filter: ""
3894
- }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), y(u(re), _({
3954
+ }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), x(c(ae), _({
3895
3955
  key: 4,
3896
3956
  modelValue: t.value,
3897
- "onUpdate:modelValue": o[4] || (o[4] = (p) => t.value = p),
3957
+ "onUpdate:modelValue": l[4] || (l[4] = (p) => t.value = p),
3898
3958
  modelModifiers: { trim: !0 }
3899
- }, l.$attrs), null, 16, ["modelValue"])),
3900
- 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, {
3901
3961
  key: 5,
3902
3962
  onClick: Q(i, ["prevent"]),
3903
3963
  size: "small",
3904
3964
  class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
3905
3965
  }, {
3906
- default: v(() => [
3907
- w(u(j), {
3966
+ default: f(() => [
3967
+ k(c(I), {
3908
3968
  icon: "bi:x",
3909
3969
  width: "1rem",
3910
3970
  height: "1rem",
@@ -3912,7 +3972,7 @@ const ya = {
3912
3972
  })
3913
3973
  ]),
3914
3974
  _: 1
3915
- })) : z("", !0)
3975
+ })) : T("", !0)
3916
3976
  ]);
3917
3977
  };
3918
3978
  }
@@ -5002,25 +5062,25 @@ var H = function(e, t, a, i) {
5002
5062
  if (a === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
5003
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");
5004
5064
  return a === "m" ? i : a === "a" ? i.call(e) : i ? i.value : t.get(e);
5005
- }, Z, te, Y;
5065
+ }, Z, te, J;
5006
5066
  class we {
5007
5067
  constructor(...t) {
5008
- Z.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());
5009
5069
  for (const a of t)
5010
5070
  this.define(a);
5011
5071
  }
5012
5072
  define(t, a = !1) {
5013
- for (let [i, l] of Object.entries(t)) {
5014
- i = i.toLowerCase(), l = l.map((s) => s.toLowerCase()), H(this, Y, "f").has(i) || H(this, Y, "f").set(i, /* @__PURE__ */ new Set());
5015
- 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);
5016
5076
  let n = !0;
5017
- for (let s of l) {
5077
+ for (let s of o) {
5018
5078
  const p = s.startsWith("*");
5019
- 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)
5020
5080
  continue;
5021
- const c = H(this, Z, "f").get(s);
5022
- if (c && c != i && !a)
5023
- throw new Error(`"${i} -> ${s}" conflicts with "${c} -> ${s}". Pass \`force=true\` to override this definition.`);
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.`);
5024
5084
  H(this, Z, "f").set(s, i);
5025
5085
  }
5026
5086
  }
@@ -5029,21 +5089,21 @@ class we {
5029
5089
  getType(t) {
5030
5090
  if (typeof t != "string")
5031
5091
  return null;
5032
- const a = t.replace(/^.*[/\\]/s, "").toLowerCase(), i = a.replace(/^.*\./s, "").toLowerCase(), l = a.length < t.length;
5033
- return !(i.length < a.length - 1) && l ? null : H(this, Z, "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;
5034
5094
  }
5035
5095
  getExtension(t) {
5036
5096
  var a;
5037
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);
5038
5098
  }
5039
5099
  getAllExtensions(t) {
5040
- 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;
5041
5101
  }
5042
5102
  _freeze() {
5043
5103
  this.define = () => {
5044
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");
5045
5105
  }, Object.freeze(this);
5046
- for (const t of H(this, Y, "f").values())
5106
+ for (const t of H(this, J, "f").values())
5047
5107
  Object.freeze(t);
5048
5108
  return this;
5049
5109
  }
@@ -5054,21 +5114,21 @@ class we {
5054
5114
  };
5055
5115
  }
5056
5116
  }
5057
- Z = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap();
5058
- 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();
5059
5119
  function ke(e, t, a, i) {
5060
- const l = t.flatMap((o) => o.file);
5061
- return t = t.map((o) => ({ ...o, status: o.status == "Duplicate" ? "Not Uploaded" : o.status })), e.forEach((o) => {
5062
- 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);
5063
5123
  let s = "Not Uploaded";
5064
- n === -1 ? ((!a.includes(o.type) || !(o.size <= i)) && (s = a.includes(o.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
5065
- file: o,
5124
+ n === -1 ? ((!a.includes(l.type) || !(l.size <= i)) && (s = a.includes(l.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
5125
+ file: l,
5066
5126
  status: s,
5067
5127
  blobFileName: null
5068
5128
  })) : t[n].status = "Duplicate";
5069
5129
  }), t;
5070
5130
  }
5071
- async function Ua(e, t) {
5131
+ async function Ra(e, t) {
5072
5132
  if (e === "Uploaded" && t !== null)
5073
5133
  try {
5074
5134
  await new ge(t).delete();
@@ -5083,30 +5143,30 @@ function me(e, t = !0, a = 1) {
5083
5143
  const i = t ? 1e3 : 1024;
5084
5144
  if (Math.abs(e) < i)
5085
5145
  return e + " B";
5086
- const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
5087
- 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;
5088
5148
  const n = 10 ** a;
5089
5149
  do
5090
- e /= i, ++o;
5091
- while (Math.round(Math.abs(e) * n) / n >= i && o < l.length - 1);
5092
- 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];
5093
5153
  }
5094
- function qa(e) {
5154
+ function Ha(e) {
5095
5155
  return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
5096
5156
  }
5097
- function La(e) {
5157
+ function Wa(e) {
5098
5158
  return URL.createObjectURL(e);
5099
5159
  }
5100
- function Ra() {
5160
+ function Ga() {
5101
5161
  const e = new we(ue, ce);
5102
5162
  return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
5103
5163
  }
5104
- 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 = {
5105
5165
  class: "text-break accepted-file-types-container",
5106
5166
  id: "accepted-file-types-overlay"
5107
- }, Ya = /* @__PURE__ */ C({
5167
+ }, Za = /* @__PURE__ */ z({
5108
5168
  __name: "UploadButton",
5109
- props: /* @__PURE__ */ R({
5169
+ props: /* @__PURE__ */ E({
5110
5170
  acceptedFileTypes: {},
5111
5171
  maxFileInput: {},
5112
5172
  showDragDropArea: { type: Boolean }
@@ -5116,12 +5176,12 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5116
5176
  }),
5117
5177
  emits: ["update:modelValue"],
5118
5178
  setup(e) {
5119
- const t = N(e, "modelValue"), a = I(), 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) => {
5120
5180
  t.value = ke(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
5121
5181
  };
5122
5182
  return (n, s) => {
5123
5183
  const p = q;
5124
- return d(), f("div", Ha, [
5184
+ return d(), b("div", Ya, [
5125
5185
  F(n.$slots, "message"),
5126
5186
  m("div", null, [
5127
5187
  m("input", {
@@ -5129,61 +5189,61 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5129
5189
  type: "file",
5130
5190
  class: "d-none",
5131
5191
  accept: n.acceptedFileTypes.join(", "),
5132
- disabled: l.value,
5192
+ disabled: o.value,
5133
5193
  multiple: n.maxFileInput > 1,
5134
- onInput: s[0] || (s[0] = (c) => o([...c.target.files]))
5135
- }, null, 40, Wa),
5194
+ onInput: s[0] || (s[0] = (u) => l([...u.target.files]))
5195
+ }, null, 40, Ja),
5136
5196
  m("label", {
5137
- class: S([{ disabled: l.value }, "btn btn-primary"]),
5197
+ class: P([{ disabled: o.value }, "btn btn-primary"]),
5138
5198
  id: "file-input-button",
5139
5199
  for: "file-input"
5140
5200
  }, [
5141
5201
  F(n.$slots, "button-content", {}, () => [
5142
- w(u(j), {
5202
+ k(c(I), {
5143
5203
  icon: "bi:upload",
5144
5204
  class: "me-2",
5145
5205
  height: "20px",
5146
5206
  width: "20px"
5147
5207
  }),
5148
- s[1] || (s[1] = P(" Browse your computer "))
5208
+ s[1] || (s[1] = V(" Browse your computer "))
5149
5209
  ])
5150
5210
  ], 2)
5151
5211
  ]),
5152
- n.showDragDropArea ? (d(), y(p, {
5212
+ n.showDragDropArea ? (d(), x(p, {
5153
5213
  link: "",
5154
5214
  class: "ms-auto",
5155
5215
  key: n.acceptedFileTypes.length,
5156
5216
  id: "accepted-file-types",
5157
5217
  onClick: i
5158
5218
  }, {
5159
- default: v(() => s[2] || (s[2] = [
5160
- P("Accepted File Types")
5219
+ default: f(() => s[2] || (s[2] = [
5220
+ V("Accepted File Types")
5161
5221
  ])),
5162
5222
  _: 1,
5163
5223
  __: [2]
5164
- })) : z("", !0),
5165
- w(u(be), {
5224
+ })) : T("", !0),
5225
+ k(c(be), {
5166
5226
  ref_key: "acceptedFilesOverlay",
5167
5227
  ref: a
5168
5228
  }, {
5169
- default: v(() => [
5170
- m("div", Ga, B(n.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
5229
+ default: f(() => [
5230
+ m("div", Ka, $(n.acceptedFileTypes.map((u) => u.label ?? u.fileType.split("/").pop()).join(", ")), 1)
5171
5231
  ]),
5172
5232
  _: 1
5173
5233
  }, 512)
5174
5234
  ]);
5175
5235
  };
5176
5236
  }
5177
- }), Ja = {
5237
+ }), Xa = {
5178
5238
  key: 0,
5179
5239
  class: "py-4 px-3",
5180
5240
  id: "placeholder-message"
5181
- }, Ka = {
5241
+ }, Qa = {
5182
5242
  key: 1,
5183
5243
  class: "d-flex flex-column"
5184
- }, Za = /* @__PURE__ */ C({
5244
+ }, ei = /* @__PURE__ */ z({
5185
5245
  __name: "DragDropArea",
5186
- props: /* @__PURE__ */ R({
5246
+ props: /* @__PURE__ */ E({
5187
5247
  maxFileInput: {},
5188
5248
  maxFileSize: {},
5189
5249
  acceptedFileTypes: {}
@@ -5193,30 +5253,30 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5193
5253
  }),
5194
5254
  emits: ["update:modelValue"],
5195
5255
  setup(e) {
5196
- const t = N(e, "modelValue"), a = I(!1), i = T(() => e.maxFileInput <= t.value.length), l = (o) => {
5197
- 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);
5198
5258
  };
5199
- return (o, n) => (d(), f("div", {
5259
+ return (l, n) => (d(), b("div", {
5200
5260
  id: "drag-drop-area",
5201
- class: S(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
5261
+ class: P(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
5202
5262
  onDragleave: n[0] || (n[0] = Q((s) => a.value = !1, ["prevent"])),
5203
5263
  onDragover: n[1] || (n[1] = Q((s) => a.value = !0, ["prevent"])),
5204
- onDrop: Q(l, ["prevent"])
5264
+ onDrop: Q(o, ["prevent"])
5205
5265
  }, [
5206
- t.value.length === 0 ? (d(), f("div", Ja, [
5207
- w(u(j), {
5266
+ t.value.length === 0 ? (d(), b("div", Xa, [
5267
+ k(c(I), {
5208
5268
  icon: "bi:upload",
5209
5269
  class: "me-2",
5210
5270
  height: "20px",
5211
5271
  width: "20px"
5212
5272
  }),
5213
- n[2] || (n[2] = P(" Drag and drop files here "))
5214
- ])) : (d(), f("div", Ka, [
5215
- F(o.$slots, "default")
5273
+ n[2] || (n[2] = V(" Drag and drop files here "))
5274
+ ])) : (d(), b("div", Qa, [
5275
+ F(l.$slots, "default")
5216
5276
  ]))
5217
5277
  ], 34));
5218
5278
  }
5219
- }), 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({
5220
5280
  __name: "UploadStatus",
5221
5281
  props: {
5222
5282
  fileSize: {},
@@ -5225,7 +5285,7 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5225
5285
  uploadStatus: {}
5226
5286
  },
5227
5287
  setup(e) {
5228
- 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(() => {
5229
5289
  switch (t.uploadStatus) {
5230
5290
  case "InvalidFileType":
5231
5291
  return "Upload Failed: File type is not accepted.";
@@ -5241,39 +5301,39 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5241
5301
  return "Upload Failed: Connection error, please try again.";
5242
5302
  }
5243
5303
  });
5244
- return (l, o) => {
5304
+ return (o, l) => {
5245
5305
  const n = pe;
5246
- return d(), f("div", Xa, [
5247
- t.uploadStatus === "Uploading" ? (d(), y(n, {
5306
+ return d(), b("div", ti, [
5307
+ t.uploadStatus === "Uploading" ? (d(), x(n, {
5248
5308
  key: 0,
5249
5309
  "in-line": ""
5250
- })) : z("", !0),
5251
- t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (d(), y(se, {
5310
+ })) : T("", !0),
5311
+ t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (d(), x(re, {
5252
5312
  key: 1,
5253
5313
  id: "upload-status-alert",
5254
5314
  severity: a.value,
5255
5315
  class: "mb-0 w-75 ms-auto"
5256
5316
  }, {
5257
- default: v(() => [
5258
- P(B(i.value), 1)
5317
+ default: f(() => [
5318
+ V($(i.value), 1)
5259
5319
  ]),
5260
5320
  _: 1
5261
- }, 8, ["severity"])) : z("", !0)
5321
+ }, 8, ["severity"])) : T("", !0)
5262
5322
  ]);
5263
5323
  };
5264
5324
  }
5265
- }), 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 = {
5266
5326
  key: 1,
5267
5327
  id: "file-name"
5268
- }, ii = {
5328
+ }, ni = {
5269
5329
  class: "text-black-50",
5270
5330
  id: "file-type"
5271
- }, li = {
5331
+ }, si = {
5272
5332
  class: "text-black-50",
5273
5333
  id: "file-size"
5274
- }, 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({
5275
5335
  __name: "FileInfo",
5276
- props: /* @__PURE__ */ R({
5336
+ props: /* @__PURE__ */ E({
5277
5337
  editableFileName: { type: Boolean },
5278
5338
  acceptedFileTypes: {},
5279
5339
  maxFileSize: {},
@@ -5288,64 +5348,64 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5288
5348
  uploadStatus: { required: !0 },
5289
5349
  uploadStatusModifiers: {}
5290
5350
  }),
5291
- emits: /* @__PURE__ */ R(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
5351
+ emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
5292
5352
  setup(e, { emit: t }) {
5293
- const a = N(e, "file"), i = N(e, "blobFileName"), l = N(e, "uploadStatus"), o = t, n = I(a.value.name), s = I(""), p = I(0), c = I(), 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)), $ = () => {
5294
- n.value != null && (D(), a.value = new File([a.value], n.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
5295
- }, D = () => {
5296
- let b = n.value.split("."), k = Ea.getExtension(h.value), M = n.value.split(".").pop();
5297
- b.length === 1 ? M && M.length > 0 && (n.value = [n.value, k].join(".")) : b.length > 1 && M !== k && (n.value = n.value.replace(M, k));
5298
- }, O = async () => {
5299
- if (!x.value || !r.value) {
5300
- 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";
5301
5361
  return;
5302
5362
  }
5303
- l.value = "Preparing", c.value = new AbortController();
5304
- const [b, k] = await e.getFileUrlAction(a.value.name);
5305
- if (!b) {
5306
- 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";
5307
5367
  return;
5308
5368
  }
5309
5369
  try {
5310
- l.value = "Uploading";
5311
- const M = new ge(b), g = {
5312
- abortSignal: c.value.signal,
5313
- 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,
5314
5374
  blobHTTPHeaders: {
5315
- blobContentType: h.value,
5375
+ blobContentType: w.value,
5316
5376
  blobContentDisposition: `attachment; filename="${a.value.name}"`
5317
5377
  },
5318
5378
  tags: { temp: "true" }
5319
5379
  };
5320
- await M.uploadData(a.value, g), s.value = b, l.value = "Uploaded", i.value = k;
5321
- } catch (M) {
5322
- if (M.name === "AbortError") {
5323
- 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";
5324
5384
  return;
5325
5385
  }
5326
- l.value = "Failed";
5386
+ o.value = "Failed";
5327
5387
  }
5328
- }, U = async () => {
5329
- await Ua(l.value, s.value), o("deleted", a.value);
5388
+ }, A = async () => {
5389
+ await Ra(o.value, s.value), l("deleted", a.value);
5330
5390
  };
5331
- return oe(() => {
5332
- e.autoUploadToBlob && l.value != "Uploaded" && O();
5333
- }), (b, k) => {
5334
- const M = q;
5335
- return d(), f("div", {
5391
+ return ne(() => {
5392
+ e.autoUploadToBlob && o.value != "Uploaded" && S();
5393
+ }), (v, B) => {
5394
+ const D = q;
5395
+ return d(), b("div", {
5336
5396
  class: "py-4 px-3 d-flex",
5337
5397
  "data-cy": `file-info-${a.value.name}`
5338
5398
  }, [
5339
5399
  m("div", null, [
5340
- u(qa)(a.value.type) ? (d(), y(u(Ye), {
5400
+ c(Ha)(a.value.type) ? (d(), x(c(Ye), {
5341
5401
  key: 0,
5342
5402
  id: "thumbnail-image",
5343
5403
  "image-class": "image-file-thumbnail border",
5344
- src: u(La)(a.value),
5404
+ src: c(Wa)(a.value),
5345
5405
  alt: a.value.name,
5346
5406
  width: "75px",
5347
5407
  preview: ""
5348
- }, null, 8, ["src", "alt"])) : (d(), y(u(j), {
5408
+ }, null, 8, ["src", "alt"])) : (d(), x(c(I), {
5349
5409
  key: 1,
5350
5410
  id: "file-earmark",
5351
5411
  icon: "bi:file-earmark",
@@ -5353,80 +5413,80 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5353
5413
  width: "75px"
5354
5414
  }))
5355
5415
  ]),
5356
- m("div", ti, [
5416
+ m("div", oi, [
5357
5417
  m("div", null, [
5358
- b.editableFileName ? (d(), y(Gt, {
5418
+ v.editableFileName ? (d(), x(Kt, {
5359
5419
  key: 0,
5360
5420
  id: "edit-file-name",
5361
5421
  modelValue: n.value,
5362
- "onUpdate:modelValue": k[0] || (k[0] = (g) => n.value = g),
5363
- rules: b.customFileNameRules,
5422
+ "onUpdate:modelValue": B[0] || (B[0] = (y) => n.value = y),
5423
+ rules: v.customFileNameRules,
5364
5424
  name: a.value.name,
5365
- "complete-action": $
5366
- }, null, 8, ["modelValue", "rules", "name"])) : (d(), f("span", ai, B(n.value), 1))
5425
+ "complete-action": g
5426
+ }, null, 8, ["modelValue", "rules", "name"])) : (d(), b("span", li, $(n.value), 1))
5367
5427
  ]),
5368
- m("span", ii, "File type: " + B(a.value.type.split("/").pop()), 1),
5369
- m("span", li, "File size: " + B(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)
5370
5430
  ]),
5371
- m("div", oi, [
5372
- (d(), y(Qa, {
5373
- key: l.value,
5431
+ m("div", ri, [
5432
+ (d(), x(ai, {
5433
+ key: o.value,
5374
5434
  "file-size": a.value.size,
5375
- "upload-status": l.value,
5435
+ "upload-status": o.value,
5376
5436
  "bytes-uploaded": p.value,
5377
- "max-file-size": b.maxFileSize
5437
+ "max-file-size": v.maxFileSize
5378
5438
  }, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
5379
- l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(), y(M, {
5439
+ o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (d(), x(D, {
5380
5440
  key: 0,
5381
5441
  link: "",
5382
- onClick: O
5442
+ onClick: S
5383
5443
  }, {
5384
- default: v(() => [
5385
- w(u(j), {
5386
- icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
5444
+ default: f(() => [
5445
+ k(c(I), {
5446
+ icon: o.value === "Not Uploaded" || o.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
5387
5447
  }, null, 8, ["icon"])
5388
5448
  ]),
5389
5449
  _: 1
5390
- })) : z("", !0),
5391
- l.value === "Uploading" ? (d(), y(M, {
5450
+ })) : T("", !0),
5451
+ o.value === "Uploading" ? (d(), x(D, {
5392
5452
  key: 1,
5393
5453
  link: "",
5394
- onClick: k[1] || (k[1] = (g) => c.value.abort())
5454
+ onClick: B[1] || (B[1] = (y) => u.value.abort())
5395
5455
  }, {
5396
- default: v(() => [
5397
- w(u(j), { icon: "bi:x-circle-fill" })
5456
+ default: f(() => [
5457
+ k(c(I), { icon: "bi:x-circle-fill" })
5398
5458
  ]),
5399
5459
  _: 1
5400
- })) : (d(), y(M, {
5460
+ })) : (d(), x(D, {
5401
5461
  key: 2,
5402
5462
  link: "",
5403
- onClick: U,
5463
+ onClick: A,
5404
5464
  id: "delete-button"
5405
5465
  }, {
5406
- default: v(() => [
5407
- w(u(j), { icon: "bi:trash" })
5466
+ default: f(() => [
5467
+ k(c(I), { icon: "bi:trash" })
5408
5468
  ]),
5409
5469
  _: 1
5410
5470
  }))
5411
5471
  ])
5412
- ], 8, ei);
5472
+ ], 8, ii);
5413
5473
  };
5414
5474
  }
5415
- }), 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({
5416
5476
  __name: "FileInputInfo",
5417
5477
  props: {
5418
5478
  maxFileSize: {},
5419
5479
  maxFileInput: {}
5420
5480
  },
5421
5481
  setup(e) {
5422
- return (t, a) => (d(), f("div", si, [
5423
- m("div", ri, "Max file size: " + B(u(me)(t.maxFileSize)), 1),
5424
- m("div", di, "| Max file count: " + B(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)
5425
5485
  ]));
5426
5486
  }
5427
- }), ci = { "data-cy": "file-uploader" }, ui = { key: 1 }, hl = /* @__PURE__ */ C({
5487
+ }), vi = { "data-cy": "file-uploader" }, fi = { key: 1 }, Co = /* @__PURE__ */ z({
5428
5488
  __name: "ForgeFileUploader",
5429
- props: /* @__PURE__ */ R({
5489
+ props: /* @__PURE__ */ E({
5430
5490
  acceptedFileTypes: {},
5431
5491
  maxFileSize: {},
5432
5492
  getFileUrlAction: {},
@@ -5443,38 +5503,38 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5443
5503
  emits: ["update:modelValue"],
5444
5504
  setup(e) {
5445
5505
  const t = N(e, "modelValue");
5446
- K(t, (l, o) => {
5447
- l.length > a.maxFileInput && (l.length = a.maxFileInput);
5506
+ W(t, (o, l) => {
5507
+ o.length > a.maxFileInput && (o.length = a.maxFileInput);
5448
5508
  }, { deep: 2 });
5449
- const a = e, i = (l) => {
5450
- t.value = t.value.filter((o) => o.file != l);
5509
+ const a = e, i = (o) => {
5510
+ t.value = t.value.filter((l) => l.file != o);
5451
5511
  };
5452
- return (l, o) => (d(), f("div", ci, [
5453
- t.value.length == l.maxFileInput && a.maxFileWarning != null ? (d(), y(se, {
5512
+ return (o, l) => (d(), b("div", vi, [
5513
+ t.value.length == o.maxFileInput && a.maxFileWarning != null ? (d(), x(re, {
5454
5514
  key: 0,
5455
5515
  id: "max-files-alert",
5456
5516
  severity: "danger"
5457
5517
  }, {
5458
- default: v(() => [
5459
- P(B(l.maxFileWarning), 1)
5518
+ default: f(() => [
5519
+ V($(o.maxFileWarning), 1)
5460
5520
  ]),
5461
5521
  _: 1
5462
- })) : z("", !0),
5463
- w(Ya, _(a, {
5522
+ })) : T("", !0),
5523
+ k(Za, _(a, {
5464
5524
  modelValue: t.value,
5465
- "onUpdate:modelValue": o[0] || (o[0] = (n) => t.value = n)
5525
+ "onUpdate:modelValue": l[0] || (l[0] = (n) => t.value = n)
5466
5526
  }), null, 16, ["modelValue"]),
5467
- l.showDragDropArea ? (d(), f("div", ui, [
5468
- w(Za, {
5527
+ o.showDragDropArea ? (d(), b("div", fi, [
5528
+ k(ei, {
5469
5529
  "max-file-input": a.maxFileInput,
5470
5530
  "max-file-size": a.maxFileSize,
5471
5531
  "accepted-file-types": a.acceptedFileTypes,
5472
5532
  modelValue: t.value,
5473
- "onUpdate:modelValue": o[1] || (o[1] = (n) => t.value = n)
5533
+ "onUpdate:modelValue": l[1] || (l[1] = (n) => t.value = n)
5474
5534
  }, {
5475
- default: v(() => [
5476
- (d(!0), f(A, null, E(t.value, ({ file: n }, s) => (d(), f("div", null, [
5477
- (d(), y(ni, _({
5535
+ default: f(() => [
5536
+ (d(!0), b(U, null, L(t.value, ({ file: n }, s) => (d(), b("div", null, [
5537
+ (d(), x(di, _({
5478
5538
  key: n.name,
5479
5539
  class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
5480
5540
  file: t.value[s].file,
@@ -5482,21 +5542,20 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5482
5542
  "blob-file-name": t.value[s].blobFileName,
5483
5543
  "onUpdate:blobFileName": (p) => t.value[s].blobFileName = p,
5484
5544
  "upload-status": t.value[s].status,
5485
- "onUpdate:uploadStatus": (p) => t.value[s].status = p,
5486
- ref_for: !0
5487
- }, 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"]))
5488
5547
  ]))), 256))
5489
5548
  ]),
5490
5549
  _: 1
5491
5550
  }, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
5492
- w(pi, {
5551
+ k(mi, {
5493
5552
  "max-file-size": a.maxFileSize,
5494
- "max-file-input": l.maxFileInput
5553
+ "max-file-input": o.maxFileInput
5495
5554
  }, null, 8, ["max-file-size", "max-file-input"])
5496
- ])) : z("", !0)
5555
+ ])) : T("", !0)
5497
5556
  ]));
5498
5557
  }
5499
- }), 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({
5500
5559
  __name: "ForgeColumnCustomiser",
5501
5560
  props: {
5502
5561
  modelValue: { required: !0 },
@@ -5504,22 +5563,22 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5504
5563
  },
5505
5564
  emits: ["update:modelValue"],
5506
5565
  setup(e) {
5507
- const t = N(e, "modelValue"), a = I(), i = I(!1), l = (o) => {
5508
- a.value.toggle(o);
5566
+ const t = N(e, "modelValue"), a = M(), i = M(!1), o = (l) => {
5567
+ a.value.toggle(l);
5509
5568
  };
5510
- return (o, n) => (d(), f(A, null, [
5511
- w(u(q), {
5512
- onClick: l,
5569
+ return (l, n) => (d(), b(U, null, [
5570
+ k(c(q), {
5571
+ onClick: o,
5513
5572
  class: "ms-2"
5514
5573
  }, {
5515
- default: v(() => [
5516
- m("div", mi, [
5517
- m("div", vi, [
5518
- w(u(j), { icon: "bi:layout-three-columns" })
5574
+ default: f(() => [
5575
+ m("div", gi, [
5576
+ m("div", bi, [
5577
+ k(c(I), { icon: "bi:layout-three-columns" })
5519
5578
  ]),
5520
- P(" Columns (" + B(t.value.filter((s) => s.selected).length ?? 0) + "/" + B(t.value.length ?? 0) + ") ", 1),
5521
- m("div", fi, [
5522
- w(u(j), {
5579
+ V(" Columns (" + $(t.value.filter((s) => s.selected).length ?? 0) + "/" + $(t.value.length ?? 0) + ") ", 1),
5580
+ m("div", yi, [
5581
+ k(c(I), {
5523
5582
  icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
5524
5583
  }, null, 8, ["icon"])
5525
5584
  ])
@@ -5527,27 +5586,27 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5527
5586
  ]),
5528
5587
  _: 1
5529
5588
  }),
5530
- w(u(be), {
5589
+ k(c(be), {
5531
5590
  ref_key: "columnCustomiserPanel",
5532
5591
  ref: a,
5533
5592
  class: "column-customiser",
5534
5593
  onHide: n[0] || (n[0] = () => i.value = !1),
5535
5594
  onShow: n[1] || (n[1] = () => i.value = !0)
5536
5595
  }, {
5537
- default: v(() => [
5538
- m("div", gi, [
5539
- (d(!0), f(A, null, E(t.value, (s, p) => (d(), f("div", {
5540
- class: S(["d-flex cursor-pointer", {
5596
+ default: f(() => [
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", {
5541
5600
  "border-top": p !== 0,
5542
5601
  "py-1": p !== 0 && t.value.length - 1 !== p,
5543
5602
  "pt-1": t.value.length - 1 === p,
5544
5603
  "pb-1": p === 0
5545
5604
  }])
5546
5605
  }, [
5547
- w(ye, {
5606
+ k(ye, {
5548
5607
  id: s.field,
5549
5608
  modelValue: s.selected,
5550
- "onUpdate:modelValue": (c) => s.selected = c,
5609
+ "onUpdate:modelValue": (u) => s.selected = u,
5551
5610
  binary: "",
5552
5611
  class: "cursor-pointer",
5553
5612
  label: s.header
@@ -5559,19 +5618,19 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5559
5618
  }, 512)
5560
5619
  ], 64));
5561
5620
  }
5562
- }), kl = /* @__PURE__ */ C({
5621
+ }), zo = /* @__PURE__ */ z({
5563
5622
  __name: "ForgePanel",
5564
5623
  setup(e) {
5565
5624
  return (t, a) => {
5566
5625
  const i = Je;
5567
- return d(), y(i, W(G({ ...t.$attrs })), ae({
5568
- toggleicon: v(({ collapsed: l }) => [
5569
- l ? (d(), y(u(j), {
5626
+ return d(), x(i, G(Y({ ...t.$attrs })), ie({
5627
+ toggleicon: f(({ collapsed: o }) => [
5628
+ o ? (d(), x(c(I), {
5570
5629
  key: 0,
5571
5630
  "data-cy": "message-icon",
5572
5631
  icon: "bi:chevron-down"
5573
- })) : z("", !0),
5574
- l ? z("", !0) : (d(), y(u(j), {
5632
+ })) : T("", !0),
5633
+ o ? T("", !0) : (d(), x(c(I), {
5575
5634
  key: 1,
5576
5635
  "data-cy": "message-icon",
5577
5636
  icon: "bi:chevron-up"
@@ -5579,22 +5638,22 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5579
5638
  ]),
5580
5639
  _: 2
5581
5640
  }, [
5582
- E(t.$slots, (l, o) => ({
5583
- name: o,
5584
- fn: v((n) => [
5585
- F(t.$slots, o, W(G(n)))
5641
+ L(t.$slots, (o, l) => ({
5642
+ name: l,
5643
+ fn: f((n) => [
5644
+ F(t.$slots, l, G(Y(n)))
5586
5645
  ])
5587
5646
  }))
5588
5647
  ]), 1040);
5589
5648
  };
5590
5649
  }
5591
- }), bi = /* @__PURE__ */ C({
5650
+ }), hi = /* @__PURE__ */ z({
5592
5651
  __name: "ForgeToggleButton",
5593
5652
  props: {
5594
5653
  severity: { default: "primary" }
5595
5654
  },
5596
5655
  setup(e) {
5597
- const t = e, a = T(() => ({
5656
+ const t = e, a = j(() => ({
5598
5657
  root: (i) => ({
5599
5658
  class: [
5600
5659
  "btn",
@@ -5615,17 +5674,17 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5615
5674
  ]
5616
5675
  })
5617
5676
  }));
5618
- return (i, l) => (d(), y(u(Ke), _({ ...i.$attrs, ...t }, {
5677
+ return (i, o) => (d(), x(c(Ke), _({ ...i.$attrs, ...t }, {
5619
5678
  severity: t.severity,
5620
5679
  pt: a.value
5621
5680
  }), null, 16, ["severity", "pt"]));
5622
5681
  }
5623
- }), yi = {
5682
+ }), wi = {
5624
5683
  class: "btn-group",
5625
5684
  "data-cy": "forge-select-button"
5626
- }, $l = /* @__PURE__ */ C({
5685
+ }, Po = /* @__PURE__ */ z({
5627
5686
  __name: "ForgeSelectButton",
5628
- props: /* @__PURE__ */ R({
5687
+ props: /* @__PURE__ */ E({
5629
5688
  options: {},
5630
5689
  multiple: { type: Boolean, default: !0 },
5631
5690
  allowEmpty: { type: Boolean, default: !1 },
@@ -5636,41 +5695,41 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5636
5695
  }),
5637
5696
  emits: ["update:modelValue"],
5638
5697
  setup(e) {
5639
- const t = e, a = N(e, "modelValue"), i = (o) => {
5698
+ const t = e, a = N(e, "modelValue"), i = (l) => {
5640
5699
  var n;
5641
- return t.multiple ? (n = a == null ? void 0 : a.value) == null ? void 0 : n.includes(o.value) : a.value === o.value;
5642
- }, 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) => {
5643
5702
  var n;
5644
- if (!o.disabled)
5703
+ if (!l.disabled)
5645
5704
  if (t.multiple) {
5646
5705
  let s = (n = a.value) != null && n.length ? [...a.value] : [];
5647
- if (s.length >= 1 && s.includes(o.value)) {
5706
+ if (s.length >= 1 && s.includes(l.value)) {
5648
5707
  if (!t.allowEmpty && s.length === 1) return;
5649
- s = s.length > 1 ? s.filter((c) => c !== o.value) : [];
5708
+ s = s.length > 1 ? s.filter((u) => u !== l.value) : [];
5650
5709
  } else
5651
- s.push(o.value);
5710
+ s.push(l.value);
5652
5711
  a.value = s;
5653
5712
  } else
5654
- a.value = a.value === o.value && t.allowEmpty ? null : o.value;
5713
+ a.value = a.value === l.value && t.allowEmpty ? null : l.value;
5655
5714
  };
5656
- return (o, n) => (d(), f("div", yi, [
5657
- (d(!0), f(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, {
5658
5717
  key: p,
5659
5718
  onLabel: s.label,
5660
5719
  offLabel: s.label,
5661
5720
  severity: s.severity,
5662
- onChange: (c) => l(s),
5721
+ onChange: (u) => o(s),
5663
5722
  defaultValue: i(s),
5664
5723
  disabled: s.disabled,
5665
5724
  "data-cy": `toggle-button-${s.value}`,
5666
- invalid: o.invalid
5725
+ invalid: l.invalid
5667
5726
  }, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
5668
5727
  ]));
5669
5728
  }
5670
- }), Fl = /* @__PURE__ */ C({
5729
+ }), _o = /* @__PURE__ */ z({
5671
5730
  __name: "ForgeConfirmPopup",
5672
5731
  setup(e) {
5673
- const t = T(() => ({
5732
+ const t = j(() => ({
5674
5733
  root: [
5675
5734
  "card w-fit-content position-absolute"
5676
5735
  ],
@@ -5681,14 +5740,131 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5681
5740
  pcRejectButton: { root: "btn btn-outline-primary btn-sm" },
5682
5741
  pcAcceptButton: { root: "btn btn-primary btn-sm" }
5683
5742
  }));
5684
- return (a, i) => (d(), y(u(Ze), _({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
5685
- default: v(() => [
5686
- (d(!0), f(A, null, E(a.$slots, (l, o) => F(a.$slots, o, { slot: o })), 256))
5743
+ return (a, i) => (d(), x(c(Ze), _({ pt: t.value }, { ...a.$attrs, ...a.$props }), {
5744
+ default: f(() => [
5745
+ (d(!0), b(U, null, L(a.$slots, (o, l) => F(a.$slots, l, { slot: l })), 256))
5687
5746
  ]),
5688
5747
  _: 3
5689
5748
  }, 16, ["pt"]));
5690
5749
  }
5691
- }), Bl = () => ({
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 = () => ({
5692
5868
  type: "component",
5693
5869
  resolve: (e) => {
5694
5870
  if (e.startsWith("Forge"))
@@ -5699,39 +5875,40 @@ const Ha = { class: "d-flex justify-content-between" }, Wa = ["accept", "disable
5699
5875
  }
5700
5876
  });
5701
5877
  export {
5702
- Qi as Bootstrap_PT,
5703
- el as ForgeActionButton,
5704
- se as ForgeAlert,
5705
- tl as ForgeAutoComplete,
5878
+ lo as Bootstrap_PT,
5879
+ no as ForgeActionButton,
5880
+ re as ForgeAlert,
5881
+ so as ForgeAutoComplete,
5706
5882
  ye as ForgeCheckbox,
5707
- cl as ForgeChip,
5708
- wl as ForgeColumnCustomiser,
5709
- Fl as ForgeConfirmPopup,
5883
+ yo as ForgeChip,
5884
+ To as ForgeColumnCustomiser,
5885
+ _o as ForgeConfirmPopup,
5710
5886
  xe as ForgeDatepicker,
5711
- hl as ForgeFileUploader,
5712
- xl as ForgeFilterHeader,
5713
- dl as ForgeForm,
5714
- pl as ForgeFormField,
5715
- Gt as ForgeInlineEditor,
5716
- 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,
5717
5893
  pe as ForgeLoader,
5718
- ol as ForgeModal,
5719
- Qt as ForgeMultiSelectPreview,
5720
- nl as ForgeNavbar,
5721
- sl as ForgePageHeader,
5722
- kl as ForgePanel,
5723
- ul as ForgeProgressBar,
5724
- rl as ForgeRemainingCharacters,
5725
- Bl as ForgeResolver,
5726
- ml as ForgeScratchpad,
5727
- $l as ForgeSelectButton,
5728
- vl as ForgeStatWidget,
5729
- fl as ForgeStepper,
5730
- bl as ForgeTable,
5731
- gl as ForgeTile,
5732
- bi as ForgeToggleButton,
5733
- yl as ForgeTreeTable,
5734
- ll as convertToMultiSelectOption,
5735
- il as enumToMultiSelectList,
5736
- 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
5737
5914
  };