@3squared/forge-ui-3 2.10.0 → 2.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
1
  import he from "primevue/message";
2
- import { defineComponent as $, openBlock as r, createBlock as f, normalizeProps as J, guardReactiveProps as K, withCtx as b, createElementVNode as m, normalizeClass as F, unref as u, createCommentVNode as z, createVNode as x, renderSlot as w, ref as _, createElementBlock as v, Fragment as O, mergeProps as C, renderList as N, mergeModels as U, useModel as D, computed as T, createTextVNode as I, toDisplayString as k, withDirectives as H, vShow as Y, createSlots as ie, onMounted as le, isRef as we, withKeys as X, normalizeStyle as ke, withModifiers as G, watch as ce, h as $e, useTemplateRef as Be } from "vue";
2
+ import { defineComponent as $, openBlock as r, createBlock as f, normalizeProps as J, guardReactiveProps as K, withCtx as b, createElementVNode as m, normalizeClass as B, unref as u, createCommentVNode as S, createVNode as h, renderSlot as k, ref as _, createElementBlock as v, Fragment as O, mergeProps as z, renderList as N, mergeModels as U, useModel as D, computed as T, createTextVNode as I, toDisplayString as w, withDirectives as H, vShow as Y, createSlots as ie, onMounted as le, isRef as we, withKeys as X, normalizeStyle as ke, withModifiers as G, watch as ce, h as $e, useTemplateRef as Fe } from "vue";
3
3
  import { Icon as j } from "@iconify/vue";
4
4
  import A from "primevue/button";
5
- import Fe from "primevue/toast";
5
+ import Be from "primevue/toast";
6
6
  import Se from "primevue/autocomplete";
7
7
  import Ce from "primevue/checkbox";
8
8
  import { useField as ee } from "vee-validate";
9
9
  import ze from "primevue/progressspinner";
10
10
  import Te from "primevue/dialog";
11
- import ne from "primevue/inputtext";
11
+ import oe from "primevue/inputtext";
12
12
  import { vOnClickOutside as je } from "@vueuse/components";
13
13
  import Ie from "primevue/menubar";
14
- import oe from "primevue/multiselect";
14
+ import ne from "primevue/multiselect";
15
15
  import _e from "primevue/datepicker";
16
16
  import te from "primevue/select";
17
17
  import Pe from "primevue/inputmask";
@@ -463,7 +463,7 @@ const We = {
463
463
  content: "d-flex position-relative",
464
464
  closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
465
465
  }
466
- }, nt = {
466
+ }, ot = {
467
467
  message: {
468
468
  root: ({ props: e }) => ({
469
469
  class: [
@@ -492,7 +492,7 @@ const We = {
492
492
  class: ["px-0 ms-2 btn d-flex"]
493
493
  })
494
494
  }
495
- }, ot = {
495
+ }, nt = {
496
496
  // More PT options defined in ForgeStepper.
497
497
  stepList: {
498
498
  root: "d-flex mb-2 w-100"
@@ -1039,7 +1039,7 @@ const We = {
1039
1039
  pcFilterContainer: { root: "dropdown-item" },
1040
1040
  filterIcon: "d-none"
1041
1041
  }
1042
- }, Bt = {
1042
+ }, Ft = {
1043
1043
  treeSelect: {
1044
1044
  root: ({ props: e }) => ({
1045
1045
  class: [
@@ -1087,7 +1087,7 @@ const We = {
1087
1087
  filterIcon: "d-none"
1088
1088
  }
1089
1089
  }
1090
- }, Ft = {
1090
+ }, Bt = {
1091
1091
  fieldset: {
1092
1092
  root: () => ({
1093
1093
  class: [
@@ -1131,7 +1131,7 @@ const We = {
1131
1131
  accordionContent: {
1132
1132
  root: "mt-2 mx-4 mb-4"
1133
1133
  }
1134
- }, Oi = {
1134
+ }, Ni = {
1135
1135
  ...We,
1136
1136
  ...mt,
1137
1137
  ...Ye,
@@ -1147,7 +1147,7 @@ const We = {
1147
1147
  ...Ze,
1148
1148
  ...Xe,
1149
1149
  ...Qe,
1150
- ...nt,
1150
+ ...ot,
1151
1151
  ...dt,
1152
1152
  ...vt,
1153
1153
  ...lt,
@@ -1156,14 +1156,14 @@ const We = {
1156
1156
  ...ct,
1157
1157
  ...gt,
1158
1158
  ...bt,
1159
- ...ot,
1159
+ ...nt,
1160
1160
  ...ut,
1161
1161
  ...et,
1162
1162
  ...st,
1163
1163
  ...kt,
1164
1164
  ...tt,
1165
- ...Ft,
1166
1165
  ...Bt,
1166
+ ...Ft,
1167
1167
  ...$t,
1168
1168
  ...St,
1169
1169
  directives: {
@@ -1193,28 +1193,28 @@ const We = {
1193
1193
  return r(), f(l, J(K({ ...a.$attrs, ...t })), {
1194
1194
  icon: b(() => [
1195
1195
  m("div", {
1196
- class: F(t.icon ? "me-2 pe-1" : "")
1196
+ class: B(t.icon ? "me-2 pe-1" : "")
1197
1197
  }, [
1198
1198
  t.icon ? (r(), f(u(j), {
1199
1199
  key: 0,
1200
1200
  "data-cy": "message-icon",
1201
1201
  icon: t.icon,
1202
- class: F(`text-${t.severity}`),
1202
+ class: B(`text-${t.severity}`),
1203
1203
  height: 35
1204
- }, null, 8, ["icon", "class"])) : z("", !0)
1204
+ }, null, 8, ["icon", "class"])) : S("", !0)
1205
1205
  ], 2)
1206
1206
  ]),
1207
1207
  closeicon: b(() => [
1208
- x(u(j), { icon: "bi:x" })
1208
+ h(u(j), { icon: "bi:x" })
1209
1209
  ]),
1210
1210
  default: b(() => [
1211
- w(a.$slots, "default")
1211
+ k(a.$slots, "default")
1212
1212
  ]),
1213
1213
  _: 3
1214
1214
  }, 16);
1215
1215
  };
1216
1216
  }
1217
- }), Ni = /* @__PURE__ */ $({
1217
+ }), Ui = /* @__PURE__ */ $({
1218
1218
  __name: "ForgeActionButton",
1219
1219
  props: {
1220
1220
  action: {},
@@ -1232,24 +1232,24 @@ const We = {
1232
1232
  }
1233
1233
  t.value = !1;
1234
1234
  };
1235
- return (l, n) => {
1236
- const o = A;
1235
+ return (l, o) => {
1236
+ const n = A;
1237
1237
  return r(), v(O, null, [
1238
- x(o, C({ ...a, ...l.$attrs }, {
1238
+ h(n, z({ ...a, ...l.$attrs }, {
1239
1239
  loading: t.value,
1240
1240
  disabled: t.value || a.disabled,
1241
1241
  onClick: i
1242
1242
  }), null, 16, ["loading", "disabled"]),
1243
- x(u(Fe))
1243
+ h(u(Be))
1244
1244
  ], 64);
1245
1245
  };
1246
1246
  }
1247
- }), Ui = /* @__PURE__ */ $({
1247
+ }), Ai = /* @__PURE__ */ $({
1248
1248
  __name: "ForgeAutoComplete",
1249
1249
  setup(e) {
1250
- return (t, a) => (r(), f(u(Se), C({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
1250
+ return (t, a) => (r(), f(u(Se), z({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
1251
1251
  default: b(() => [
1252
- (r(!0), v(O, null, N(t.$slots, (i, l) => w(t.$slots, l, { slot: l })), 256))
1252
+ (r(!0), v(O, null, N(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
1253
1253
  ]),
1254
1254
  _: 3
1255
1255
  }, 16));
@@ -1289,25 +1289,25 @@ const We = {
1289
1289
  }),
1290
1290
  emits: ["update:modelValue"],
1291
1291
  setup(e) {
1292
- const t = e, a = D(e, "modelValue"), { handleChange: i, errors: l, errorMessage: n } = ee(
1292
+ const t = e, a = D(e, "modelValue"), { handleChange: i, errors: l, errorMessage: o } = ee(
1293
1293
  () => t.name ?? "",
1294
1294
  void 0,
1295
1295
  {
1296
1296
  type: "checkbox",
1297
1297
  checkedValue: a.value
1298
1298
  }
1299
- ), o = (p, c) => {
1299
+ ), n = (p, c) => {
1300
1300
  (t.disabled || t.readonly) && p.preventDefault(), t.name ? i(c) : a.value = c;
1301
1301
  }, s = T(() => l.value.length > 0);
1302
1302
  return (p, c) => {
1303
1303
  const g = Ce;
1304
1304
  return r(), v("div", Ct, [
1305
- m("div", C({
1305
+ m("div", z({
1306
1306
  class: "d-flex",
1307
1307
  "data-cy": "checkbox-container",
1308
- onClick: c[2] || (c[2] = (d) => o(d, a.value))
1308
+ onClick: c[2] || (c[2] = (d) => n(d, a.value))
1309
1309
  }, { ...p.$attrs }), [
1310
- x(g, C({ ...t }, {
1310
+ h(g, z({ ...t }, {
1311
1311
  binary: "",
1312
1312
  modelValue: a.value,
1313
1313
  "onUpdate:modelValue": c[0] || (c[0] = (d) => a.value = d),
@@ -1317,18 +1317,18 @@ const We = {
1317
1317
  }), null, 16, ["modelValue", "input-id", "input-class", "class"]),
1318
1318
  m("label", {
1319
1319
  for: t.name,
1320
- onClick: c[1] || (c[1] = (d) => o(d, !a.value)),
1321
- class: F([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1320
+ onClick: c[1] || (c[1] = (d) => n(d, !a.value)),
1321
+ class: B([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1322
1322
  }, [
1323
- w(p.$slots, "default", {}, () => [
1324
- I(k(t.label), 1)
1323
+ k(p.$slots, "default", {}, () => [
1324
+ I(w(t.label), 1)
1325
1325
  ])
1326
1326
  ], 10, zt)
1327
1327
  ], 16),
1328
1328
  H(m("small", {
1329
1329
  "data-cy": "error",
1330
1330
  class: "text-invalid"
1331
- }, k(u(n)), 513), [
1331
+ }, w(u(o)), 513), [
1332
1332
  [Y, s.value]
1333
1333
  ])
1334
1334
  ]);
@@ -1344,14 +1344,14 @@ const We = {
1344
1344
  return (a, i) => {
1345
1345
  const l = ze;
1346
1346
  return r(), v("div", Tt, [
1347
- x(l, {
1347
+ h(l, {
1348
1348
  "animation-duration": ".75",
1349
- class: F(`text-${t.severity === void 0 ? "primary" : t.severity}`)
1349
+ class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
1350
1350
  }, null, 8, ["class"])
1351
1351
  ]);
1352
1352
  };
1353
1353
  }
1354
- }), jt = ["href", "target"], Ai = /* @__PURE__ */ $({
1354
+ }), jt = ["href", "target"], qi = /* @__PURE__ */ $({
1355
1355
  __name: "ForgeLink",
1356
1356
  props: {
1357
1357
  url: {},
@@ -1387,18 +1387,18 @@ const We = {
1387
1387
  }));
1388
1388
  return (i, l) => (r(), v("a", {
1389
1389
  id: "link",
1390
- class: F(["cursor-pointer d-flex text-break", t.value]),
1390
+ class: B(["cursor-pointer d-flex text-break", t.value]),
1391
1391
  href: i.url,
1392
1392
  target: i.target
1393
1393
  }, [
1394
- w(i.$slots, "default", {}, () => [
1394
+ k(i.$slots, "default", {}, () => [
1395
1395
  i.iconName ? (r(), f(u(j), {
1396
1396
  key: 0,
1397
1397
  id: "link-icon",
1398
1398
  icon: i.iconName,
1399
- class: F(["bi my-auto", a.value])
1400
- }, null, 8, ["icon", "class"])) : z("", !0),
1401
- I(" " + k(i.label), 1)
1399
+ class: B(["bi my-auto", a.value])
1400
+ }, null, 8, ["icon", "class"])) : S("", !0),
1401
+ I(" " + w(i.label), 1)
1402
1402
  ])
1403
1403
  ], 10, jt));
1404
1404
  }
@@ -1414,16 +1414,16 @@ function It(e) {
1414
1414
  }
1415
1415
  return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
1416
1416
  }
1417
- function qi(e, t) {
1417
+ function Ei(e, t) {
1418
1418
  return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
1419
1419
  }
1420
- function Ei(e, t, a) {
1420
+ function Li(e, t, a) {
1421
1421
  return { id: e, label: t ?? e.toString(), shortLabel: a };
1422
1422
  }
1423
1423
  const _t = { key: 0 }, Pt = {
1424
1424
  class: "d-flex w-100",
1425
1425
  "data-cy": "footer"
1426
- }, Li = /* @__PURE__ */ $({
1426
+ }, Ri = /* @__PURE__ */ $({
1427
1427
  __name: "ForgeModal",
1428
1428
  props: /* @__PURE__ */ U({
1429
1429
  cancelText: { default: "Cancel" },
@@ -1470,16 +1470,21 @@ const _t = { key: 0 }, Pt = {
1470
1470
  unstyled: { type: Boolean }
1471
1471
  }, {
1472
1472
  visible: { type: Boolean, required: !0 },
1473
- visibleModifiers: {}
1473
+ visibleModifiers: {},
1474
+ error: {
1475
+ required: !1,
1476
+ default: {
1477
+ hasError: !1,
1478
+ header: "",
1479
+ message: []
1480
+ }
1481
+ },
1482
+ errorModifiers: {}
1474
1483
  }),
1475
- emits: ["update:visible"],
1484
+ emits: ["update:visible", "update:error"],
1476
1485
  setup(e, { expose: t }) {
1477
- const a = D(e, "visible"), i = _(!1), l = e, n = _(!1), o = _({
1478
- hasError: !1,
1479
- header: "",
1480
- message: []
1481
- }), s = () => {
1482
- o.value = {
1486
+ const a = D(e, "visible"), i = _(!1), l = e, o = _(!1), n = D(e, "error"), s = () => {
1487
+ n.value = {
1483
1488
  hasError: !1,
1484
1489
  header: "",
1485
1490
  message: []
@@ -1496,18 +1501,18 @@ const _t = { key: 0 }, Pt = {
1496
1501
  l.resetErrorOnClose && s(), a.value = !1;
1497
1502
  }, d = async () => {
1498
1503
  if (l.onConfirm) {
1499
- n.value = !0, o.value.hasError = !1;
1504
+ o.value = !0, n.value.hasError = !1;
1500
1505
  try {
1501
- const S = await l.onConfirm();
1502
- (S || S == null) && g();
1503
- } catch (S) {
1504
- o.value.hasError = !0;
1505
- const V = It(S);
1506
- o.value.header = V.errorMessage, o.value.message = V.errorDetails;
1506
+ const C = await l.onConfirm();
1507
+ (C || C == null) && g();
1508
+ } catch (C) {
1509
+ n.value.hasError = !0;
1510
+ const V = It(C);
1511
+ n.value.header = V.errorMessage, n.value.message = V.errorDetails;
1507
1512
  }
1508
- n.value = !1;
1513
+ o.value = !1;
1509
1514
  }
1510
- }, B = T(() => ({
1515
+ }, F = T(() => ({
1511
1516
  root: [
1512
1517
  "modal modal-dialog modal-content h-auto m-0",
1513
1518
  {
@@ -1518,15 +1523,15 @@ const _t = { key: 0 }, Pt = {
1518
1523
  }
1519
1524
  ]
1520
1525
  }));
1521
- return (S, V) => {
1526
+ return (C, V) => {
1522
1527
  const M = A, q = Te;
1523
- return r(), f(q, C(l, {
1528
+ return r(), f(q, z(l, {
1524
1529
  onMaximize: c,
1525
1530
  onUnmaximize: p,
1526
- pt: B.value
1531
+ pt: F.value
1527
1532
  }), ie({
1528
1533
  closeicon: b(() => [
1529
- x(u(j), {
1534
+ h(u(j), {
1530
1535
  "data-cy": "close-icon",
1531
1536
  icon: "bi:x-lg",
1532
1537
  width: "18",
@@ -1535,7 +1540,7 @@ const _t = { key: 0 }, Pt = {
1535
1540
  })
1536
1541
  ]),
1537
1542
  maximizeicon: b(() => [
1538
- x(u(j), {
1543
+ h(u(j), {
1539
1544
  "data-cy": "maximisable-icon",
1540
1545
  icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1541
1546
  width: "16",
@@ -1544,45 +1549,47 @@ const _t = { key: 0 }, Pt = {
1544
1549
  ]),
1545
1550
  _: 2
1546
1551
  }, [
1547
- N(S.$slots, (y, h) => ({
1548
- name: h,
1552
+ N(C.$slots, (y, x) => ({
1553
+ name: x,
1549
1554
  fn: b((P) => [
1550
- o.value.hasError ? (r(), f(se, {
1551
- key: 0,
1552
- severity: "danger",
1553
- "data-cy": "error"
1554
- }, {
1555
- default: b(() => [
1556
- m("p", {
1557
- class: F(o.value.message.length > 0 ? "my-auto" : "mb-0")
1558
- }, k(o.value.header), 3),
1559
- o.value.message.length > 0 ? (r(), v("ul", _t, [
1560
- (r(!0), v(O, null, N(o.value.message, (L) => (r(), v("li", { key: L }, k(L), 1))), 128))
1561
- ])) : z("", !0)
1562
- ]),
1563
- _: 1
1564
- })) : z("", !0),
1565
- w(S.$slots, h, J(K(P || {}))),
1566
- n.value ? w(S.$slots, "loader", { key: 1 }, () => [
1567
- x(ge, { "data-cy": "loader" })
1568
- ]) : z("", !0)
1555
+ x !== "footer" ? (r(), v(O, { key: 0 }, [
1556
+ n.value.hasError ? (r(), f(se, {
1557
+ key: 0,
1558
+ severity: "danger",
1559
+ "data-cy": "error"
1560
+ }, {
1561
+ default: b(() => [
1562
+ m("p", {
1563
+ class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
1564
+ }, w(n.value.header), 3),
1565
+ n.value.message.length > 0 ? (r(), v("ul", _t, [
1566
+ (r(!0), v(O, null, N(n.value.message, (L) => (r(), v("li", { key: L }, w(L), 1))), 128))
1567
+ ])) : S("", !0)
1568
+ ]),
1569
+ _: 1
1570
+ })) : S("", !0)
1571
+ ], 64)) : S("", !0),
1572
+ k(C.$slots, x, J(K(P || {}))),
1573
+ o.value ? k(C.$slots, "loader", { key: 1 }, () => [
1574
+ h(ge, { "data-cy": "loader" })
1575
+ ]) : S("", !0)
1569
1576
  ])
1570
1577
  })),
1571
- S.showFooter ? {
1578
+ C.showFooter ? {
1572
1579
  name: "footer",
1573
1580
  fn: b(() => [
1574
1581
  m("div", Pt, [
1575
- x(M, {
1576
- label: S.cancelText,
1577
- class: F(l.cancelClass),
1582
+ h(M, {
1583
+ label: C.cancelText,
1584
+ class: B(l.cancelClass),
1578
1585
  outlined: "",
1579
1586
  onClick: g,
1580
1587
  id: "cancel-button",
1581
1588
  type: l.cancelButtonType
1582
1589
  }, null, 8, ["label", "class", "type"]),
1583
- x(M, {
1584
- label: S.submitText,
1585
- class: F([l.submitClass, "ms-auto"]),
1590
+ h(M, {
1591
+ label: C.submitText,
1592
+ class: B([l.submitClass, "ms-auto"]),
1586
1593
  onClick: d,
1587
1594
  id: "submit-button",
1588
1595
  type: l.submitButtonType
@@ -1609,11 +1616,11 @@ const _t = { key: 0 }, Pt = {
1609
1616
  }),
1610
1617
  emits: ["update:modelValue"],
1611
1618
  setup(e) {
1612
- const t = e, a = D(e, "modelValue"), i = _(!1), l = _(), n = () => {
1613
- var S;
1614
- i.value = !i.value, (S = l.value) == null || S.focus();
1615
- }, o = async () => {
1616
- if (B.value)
1619
+ const t = e, a = D(e, "modelValue"), i = _(!1), l = _(), o = () => {
1620
+ var C;
1621
+ i.value = !i.value, (C = l.value) == null || C.focus();
1622
+ }, n = async () => {
1623
+ if (F.value)
1617
1624
  return !1;
1618
1625
  if (a.value = d.value, t.completeAction)
1619
1626
  try {
@@ -1633,40 +1640,40 @@ const _t = { key: 0 }, Pt = {
1633
1640
  le(() => {
1634
1641
  d.value = a.value;
1635
1642
  });
1636
- const B = T(() => g.value.length > 0);
1637
- return (S, V) => {
1638
- const M = ne, q = A;
1643
+ const F = T(() => g.value.length > 0);
1644
+ return (C, V) => {
1645
+ const M = oe, q = A;
1639
1646
  return r(), v("div", {
1640
1647
  id: t.name
1641
1648
  }, [
1642
- S.readonly ? (r(), v("div", Nt, [
1643
- w(S.$slots, "default", {}, () => [
1644
- m("span", Ut, k(u(d)), 1)
1649
+ C.readonly ? (r(), v("div", Nt, [
1650
+ k(C.$slots, "default", {}, () => [
1651
+ m("span", Ut, w(u(d)), 1)
1645
1652
  ])
1646
1653
  ])) : (r(), v("div", Mt, [
1647
1654
  i.value ? (r(), v("div", Dt, [
1648
1655
  H((r(), v("div", Ot, [
1649
- w(S.$slots, "editor", {
1650
- class: F({ "is-invalid": B.value }),
1651
- editFinished: o,
1656
+ k(C.$slots, "editor", {
1657
+ class: B({ "is-invalid": F.value }),
1658
+ editFinished: n,
1652
1659
  cancel: s,
1653
1660
  val: u(d)
1654
1661
  }, () => [
1655
- x(M, {
1662
+ h(M, {
1656
1663
  modelValue: u(d),
1657
1664
  "onUpdate:modelValue": V[0] || (V[0] = (y) => we(d) ? d.value = y : null),
1658
1665
  modelModifiers: { trim: !0 },
1659
1666
  "data-cy": "input",
1660
1667
  ref_key: "input",
1661
1668
  ref: l,
1662
- class: F({ "is-invalid": B.value }),
1669
+ class: B({ "is-invalid": F.value }),
1663
1670
  onKeydown: [
1664
- X(o, ["enter"]),
1671
+ X(n, ["enter"]),
1665
1672
  X(s, ["esc"])
1666
1673
  ]
1667
1674
  }, null, 8, ["modelValue", "class"])
1668
1675
  ]),
1669
- x(u(j), {
1676
+ h(u(j), {
1670
1677
  icon: "bi:x-circle",
1671
1678
  class: "mx-2 cursor-pointer",
1672
1679
  onClick: p,
@@ -1674,30 +1681,30 @@ const _t = { key: 0 }, Pt = {
1674
1681
  "data-cy": "clear-icon"
1675
1682
  })
1676
1683
  ])), [
1677
- [u(je), o]
1684
+ [u(je), n]
1678
1685
  ])
1679
1686
  ])) : (r(), v("div", {
1680
1687
  key: 1,
1681
1688
  class: "d-flex text-muted",
1682
- onClick: n,
1683
- onFocus: n
1689
+ onClick: o,
1690
+ onFocus: o
1684
1691
  }, [
1685
- w(S.$slots, "default", {}, () => [
1692
+ k(C.$slots, "default", {}, () => [
1686
1693
  m("div", {
1687
- class: F(["pe-2 cursor-pointer", { "text-invalid": B.value }]),
1694
+ class: B(["pe-2 cursor-pointer", { "text-invalid": F.value }]),
1688
1695
  "data-cy": "value"
1689
- }, k(u(d) ? u(d) : "Click to edit"), 3)
1696
+ }, w(u(d) ? u(d) : "Click to edit"), 3)
1690
1697
  ]),
1691
- x(q, {
1698
+ h(q, {
1692
1699
  link: "",
1693
1700
  class: "p-0 m-0"
1694
1701
  }, {
1695
1702
  default: b(() => [
1696
- x(u(j), {
1703
+ h(u(j), {
1697
1704
  icon: "bi:pencil",
1698
- class: F(B.value ? "text-invalid" : "text-muted"),
1705
+ class: B(F.value ? "text-invalid" : "text-muted"),
1699
1706
  "data-cy": "edit-icon",
1700
- onKeydown: X(n, ["enter"])
1707
+ onKeydown: X(o, ["enter"])
1701
1708
  }, null, 8, ["class"])
1702
1709
  ]),
1703
1710
  _: 1
@@ -1707,13 +1714,13 @@ const _t = { key: 0 }, Pt = {
1707
1714
  H(m("small", {
1708
1715
  "data-cy": "error",
1709
1716
  class: "text-invalid"
1710
- }, k(u(c)), 513), [
1711
- [Y, B.value]
1717
+ }, w(u(c)), 513), [
1718
+ [Y, F.value]
1712
1719
  ])
1713
1720
  ], 8, Vt);
1714
1721
  };
1715
1722
  }
1716
- }), qt = ["href"], Ri = /* @__PURE__ */ $({
1723
+ }), qt = ["href"], Hi = /* @__PURE__ */ $({
1717
1724
  __name: "ForgeNavbar",
1718
1725
  props: {
1719
1726
  severity: { default: "light" },
@@ -1757,7 +1764,7 @@ const _t = { key: 0 }, Pt = {
1757
1764
  ]
1758
1765
  })
1759
1766
  }));
1760
- return (i, l) => (r(), f(u(Ie), C({ ...t, ...i.$attrs }, {
1767
+ return (i, l) => (r(), f(u(Ie), z({ ...t, ...i.$attrs }, {
1761
1768
  pt: a.value,
1762
1769
  "data-cy": "navbar"
1763
1770
  }), ie({
@@ -1767,16 +1774,16 @@ const _t = { key: 0 }, Pt = {
1767
1774
  class: "navbar-brand ms-3",
1768
1775
  "data-cy": "logo"
1769
1776
  }, [
1770
- w(i.$slots, "logo", {}, () => [
1777
+ k(i.$slots, "logo", {}, () => [
1771
1778
  l[0] || (l[0] = I(" Logo "))
1772
1779
  ])
1773
1780
  ], 8, qt)
1774
1781
  ]),
1775
1782
  buttonicon: b(() => [
1776
- w(i.$slots, "buttonIcon", {}, () => [
1777
- x(u(j), {
1783
+ k(i.$slots, "buttonIcon", {}, () => [
1784
+ h(u(j), {
1778
1785
  icon: "bi:list",
1779
- class: F(t.severity === "light" ? "text-black" : "text-white"),
1786
+ class: B(t.severity === "light" ? "text-black" : "text-white"),
1780
1787
  height: "24",
1781
1788
  "data-cy": "burger-icon"
1782
1789
  }, null, 8, ["class"])
@@ -1784,10 +1791,10 @@ const _t = { key: 0 }, Pt = {
1784
1791
  ]),
1785
1792
  _: 2
1786
1793
  }, [
1787
- N(i.$slots, (n, o) => ({
1788
- name: o,
1794
+ N(i.$slots, (o, n) => ({
1795
+ name: n,
1789
1796
  fn: b((s) => [
1790
- w(i.$slots, o, J(K(s)))
1797
+ k(i.$slots, n, J(K(s)))
1791
1798
  ])
1792
1799
  }))
1793
1800
  ]), 1040, ["pt"]));
@@ -1816,21 +1823,21 @@ const _t = { key: 0 }, Pt = {
1816
1823
  emits: ["update:modelValue"],
1817
1824
  setup(e) {
1818
1825
  const t = e, a = D(e, "modelValue"), i = (l) => {
1819
- a.value = a.value.filter((n) => n.id !== l);
1826
+ a.value = a.value.filter((o) => o.id !== l);
1820
1827
  };
1821
- return (l, n) => {
1822
- const o = oe, s = A;
1828
+ return (l, o) => {
1829
+ const n = ne, s = A;
1823
1830
  return r(), v("div", {
1824
- class: F(l.orientation === "column" ? "row" : ""),
1831
+ class: B(l.orientation === "column" ? "row" : ""),
1825
1832
  "data-cy": "multiselect-preview"
1826
1833
  }, [
1827
1834
  m("div", {
1828
- class: F(l.orientation === "row" ? "col-12 mb-1" : "col"),
1835
+ class: B(l.orientation === "row" ? "col-12 mb-1" : "col"),
1829
1836
  "data-cy": "multiselect-container"
1830
1837
  }, [
1831
- x(o, C({
1838
+ h(n, z({
1832
1839
  modelValue: a.value,
1833
- "onUpdate:modelValue": n[0] || (n[0] = (p) => a.value = p)
1840
+ "onUpdate:modelValue": o[0] || (o[0] = (p) => a.value = p)
1834
1841
  }, { ...l.$attrs }, {
1835
1842
  options: t.options ?? [],
1836
1843
  optionLabel: "label",
@@ -1838,14 +1845,14 @@ const _t = { key: 0 }, Pt = {
1838
1845
  "data-cy": "multiselect"
1839
1846
  }), {
1840
1847
  default: b(() => [
1841
- (r(!0), v(O, null, N(l.$slots, (p, c) => w(l.$slots, c, { slot: c })), 256))
1848
+ (r(!0), v(O, null, N(l.$slots, (p, c) => k(l.$slots, c, { slot: c })), 256))
1842
1849
  ]),
1843
1850
  _: 3
1844
1851
  }, 16, ["modelValue", "options", "placeholder"]),
1845
- w(l.$slots, "after-multi-select")
1852
+ k(l.$slots, "after-multi-select")
1846
1853
  ], 2),
1847
1854
  m("div", {
1848
- class: F(l.orientation === "row" ? "col-12" : "col"),
1855
+ class: B(l.orientation === "row" ? "col-12" : "col"),
1849
1856
  "data-cy": "options-preview"
1850
1857
  }, [
1851
1858
  m("div", {
@@ -1853,13 +1860,13 @@ const _t = { key: 0 }, Pt = {
1853
1860
  class: "overflow-auto"
1854
1861
  }, [
1855
1862
  m("div", Et, [
1856
- l.title ? (r(), v("div", Lt, k(l.title), 1)) : z("", !0),
1863
+ l.title ? (r(), v("div", Lt, w(l.title), 1)) : S("", !0),
1857
1864
  (r(!0), v(O, null, N(a.value, (p) => (r(), v("div", {
1858
1865
  key: p.id,
1859
1866
  class: "p-2 item d-flex justify-content-between align-items-center"
1860
1867
  }, [
1861
- w(l.$slots, "list-item", { item: p }, () => [
1862
- m("span", Rt, k(p.shortLabel ? p.shortLabel : p.label), 1)
1868
+ k(l.$slots, "list-item", { item: p }, () => [
1869
+ m("span", Rt, w(p.shortLabel ? p.shortLabel : p.label), 1)
1863
1870
  ]),
1864
1871
  l.canRemoveItemFromPreview ? (r(), f(s, {
1865
1872
  key: 0,
@@ -1868,16 +1875,16 @@ const _t = { key: 0 }, Pt = {
1868
1875
  onClick: (c) => i(p.id)
1869
1876
  }, {
1870
1877
  default: b(() => [
1871
- x(u(j), {
1878
+ h(u(j), {
1872
1879
  icon: "bi:x",
1873
1880
  class: "close-icon",
1874
1881
  "data-cy": `close-icon-${p.id}`
1875
1882
  }, null, 8, ["data-cy"])
1876
1883
  ]),
1877
1884
  _: 2
1878
- }, 1032, ["onClick"])) : z("", !0)
1885
+ }, 1032, ["onClick"])) : S("", !0)
1879
1886
  ]))), 128)),
1880
- a.value == null || a.value.length == 0 ? (r(), v("div", Ht, k(t.optionsPreviewEmptyText), 1)) : z("", !0)
1887
+ a.value == null || a.value.length == 0 ? (r(), v("div", Ht, w(t.optionsPreviewEmptyText), 1)) : S("", !0)
1881
1888
  ])
1882
1889
  ], 4)
1883
1890
  ], 2)
@@ -1890,7 +1897,7 @@ const _t = { key: 0 }, Pt = {
1890
1897
  }, Jt = {
1891
1898
  "data-cy": "slot",
1892
1899
  class: "d-flex align-items-center"
1893
- }, Hi = /* @__PURE__ */ $({
1900
+ }, Wi = /* @__PURE__ */ $({
1894
1901
  __name: "ForgePageHeader",
1895
1902
  props: {
1896
1903
  title: {}
@@ -1898,9 +1905,9 @@ const _t = { key: 0 }, Pt = {
1898
1905
  setup(e) {
1899
1906
  const t = e;
1900
1907
  return (a, i) => (r(), v("div", Yt, [
1901
- m("h3", Gt, k(t.title), 1),
1908
+ m("h3", Gt, w(t.title), 1),
1902
1909
  m("div", Jt, [
1903
- w(a.$slots, "default")
1910
+ k(a.$slots, "default")
1904
1911
  ])
1905
1912
  ]));
1906
1913
  }
@@ -1980,7 +1987,7 @@ const _t = { key: 0 }, Pt = {
1980
1987
  }),
1981
1988
  emits: ["update:modelValue"],
1982
1989
  setup(e) {
1983
- const t = e, a = D(e, "modelValue"), { errors: i, errorMessage: l, handleChange: n, handleBlur: o, setValue: s } = ee(() => t.name, void 0, {
1990
+ const t = e, a = D(e, "modelValue"), { errors: i, errorMessage: l, handleChange: o, handleBlur: n, setValue: s } = ee(() => t.name, void 0, {
1984
1991
  initialValue: a.value
1985
1992
  }), p = () => {
1986
1993
  s(null), a.value = null;
@@ -2075,54 +2082,54 @@ const _t = { key: 0 }, Pt = {
2075
2082
  ]
2076
2083
  })
2077
2084
  }));
2078
- return (d, B) => {
2079
- const S = _e;
2085
+ return (d, F) => {
2086
+ const C = _e;
2080
2087
  return r(), v(O, null, [
2081
2088
  m("div", Kt, [
2082
2089
  m("span", Zt, [
2083
- w(d.$slots, "before")
2090
+ k(d.$slots, "before")
2084
2091
  ]),
2085
2092
  m("div", Xt, [
2086
- x(S, C({ ...t, ...d.$attrs }, {
2093
+ h(C, z({ ...t, ...d.$attrs }, {
2087
2094
  pt: g.value,
2088
2095
  modelValue: a.value,
2089
2096
  "onUpdate:modelValue": [
2090
- B[0] || (B[0] = (V) => a.value = V),
2091
- u(n)
2097
+ F[0] || (F[0] = (V) => a.value = V),
2098
+ u(o)
2092
2099
  ],
2093
- onBlur: B[1] || (B[1] = () => u(o)),
2100
+ onBlur: F[1] || (F[1] = () => u(n)),
2094
2101
  "input-class": { "datepicker-invalid": c.value }
2095
2102
  }), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
2096
- H(x(u(j), {
2103
+ H(h(u(j), {
2097
2104
  "data-cy": "icon",
2098
2105
  icon: "bi:calendar4",
2099
- class: F(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${c.value ? "text-danger-dark" : "text-muted"}`])
2106
+ class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${c.value ? "text-danger-dark" : "text-muted"}`])
2100
2107
  }, null, 8, ["class"]), [
2101
2108
  [Y, t.showIcon]
2102
2109
  ]),
2103
- H(x(u(j), {
2110
+ H(h(u(j), {
2104
2111
  "data-cy": "icon",
2105
2112
  icon: "bi:x",
2106
2113
  onClick: p,
2107
- class: F(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
2114
+ class: B(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
2108
2115
  }, null, 8, ["class"]), [
2109
2116
  [Y, t.modelValue]
2110
2117
  ])
2111
2118
  ]),
2112
2119
  m("span", Qt, [
2113
- w(d.$slots, "after")
2120
+ k(d.$slots, "after")
2114
2121
  ])
2115
2122
  ]),
2116
2123
  H(m("small", {
2117
2124
  "data-cy": "error",
2118
2125
  class: "text-invalid"
2119
- }, k(u(l)), 513), [
2126
+ }, w(u(l)), 513), [
2120
2127
  [Y, c.value]
2121
2128
  ])
2122
2129
  ], 64);
2123
2130
  };
2124
2131
  }
2125
- }), Wi = /* @__PURE__ */ $({
2132
+ }), Yi = /* @__PURE__ */ $({
2126
2133
  __name: "ForgeRemainingCharacters",
2127
2134
  props: {
2128
2135
  maxCount: { default: 300 },
@@ -2131,10 +2138,10 @@ const _t = { key: 0 }, Pt = {
2131
2138
  setup(e) {
2132
2139
  const t = e, a = T(() => t.maxCount - t.currentCount);
2133
2140
  return (i, l) => (r(), v("div", {
2134
- class: F(a.value < 0 ? "text-danger" : "")
2135
- }, "Remaining characters: " + k(a.value), 3));
2141
+ class: B(a.value < 0 ? "text-danger" : "")
2142
+ }, "Remaining characters: " + w(a.value), 3));
2136
2143
  }
2137
- }), ea = { class: "d-flex justify-content-between" }, Yi = /* @__PURE__ */ $({
2144
+ }), ea = { class: "d-flex justify-content-between" }, Gi = /* @__PURE__ */ $({
2138
2145
  __name: "ForgeForm",
2139
2146
  props: {
2140
2147
  onSubmit: {},
@@ -2154,26 +2161,26 @@ const _t = { key: 0 }, Pt = {
2154
2161
  a.value = !0, i.value.hasError = !1;
2155
2162
  try {
2156
2163
  await t.onSubmit();
2157
- } catch (n) {
2158
- i.value.hasError = !0, n.message && (i.value.message = n.message);
2164
+ } catch (o) {
2165
+ i.value.hasError = !0, o.message && (i.value.message = o.message);
2159
2166
  }
2160
2167
  a.value = !1;
2161
2168
  }
2162
- return (n, o) => {
2169
+ return (o, n) => {
2163
2170
  const s = A;
2164
- return r(), v("form", C(n.$attrs, {
2171
+ return r(), v("form", z(o.$attrs, {
2165
2172
  novalidate: "",
2166
2173
  class: "position-relative shadow-sm border p-4 bg-white",
2167
2174
  onSubmit: G(l, ["prevent"])
2168
2175
  }), [
2169
- n.hideTitle ? z("", !0) : (r(), v(O, { key: 0 }, [
2170
- w(n.$slots, "title", {}, () => [
2176
+ o.hideTitle ? S("", !0) : (r(), v(O, { key: 0 }, [
2177
+ k(o.$slots, "title", {}, () => [
2171
2178
  m("h3", {
2172
- class: F(n.titleClass),
2179
+ class: B(o.titleClass),
2173
2180
  "data-cy": "form-title"
2174
- }, k(n.title), 3)
2181
+ }, w(o.title), 3)
2175
2182
  ]),
2176
- o[1] || (o[1] = m("hr", null, null, -1))
2183
+ n[1] || (n[1] = m("hr", null, null, -1))
2177
2184
  ], 64)),
2178
2185
  i.value.hasError ? (r(), f(se, {
2179
2186
  key: 1,
@@ -2181,40 +2188,40 @@ const _t = { key: 0 }, Pt = {
2181
2188
  "data-cy": "error"
2182
2189
  }, {
2183
2190
  default: b(() => [
2184
- w(n.$slots, "error", {
2191
+ k(o.$slots, "error", {
2185
2192
  error: i.value.message
2186
2193
  }, () => [
2187
- I(k(i.value.message), 1)
2194
+ I(w(i.value.message), 1)
2188
2195
  ])
2189
2196
  ]),
2190
2197
  _: 3
2191
- })) : z("", !0),
2192
- w(n.$slots, "default"),
2198
+ })) : S("", !0),
2199
+ k(o.$slots, "default"),
2193
2200
  m("div", ea, [
2194
- w(n.$slots, "cancel", {}, () => [
2195
- n.hideCancel ? z("", !0) : (r(), f(s, {
2201
+ k(o.$slots, "cancel", {}, () => [
2202
+ o.hideCancel ? S("", !0) : (r(), f(s, {
2196
2203
  key: 0,
2197
2204
  "data-cy": "cancel-btn",
2198
2205
  type: "reset",
2199
2206
  severity: "secondary",
2200
2207
  outlined: "",
2201
- onClick: o[0] || (o[0] = (p) => n.$emit("cancel"))
2208
+ onClick: n[0] || (n[0] = (p) => o.$emit("cancel"))
2202
2209
  }, {
2203
2210
  default: b(() => [
2204
- I(k(n.cancelText), 1)
2211
+ I(w(o.cancelText), 1)
2205
2212
  ]),
2206
2213
  _: 1
2207
2214
  }))
2208
2215
  ]),
2209
- w(n.$slots, "submit", { submit: l }, () => [
2210
- x(s, {
2216
+ k(o.$slots, "submit", { submit: l }, () => [
2217
+ h(s, {
2211
2218
  "data-cy": "submit-btn",
2212
2219
  type: "submit",
2213
2220
  severity: "primary",
2214
2221
  class: "ms-auto"
2215
2222
  }, {
2216
2223
  default: b(() => [
2217
- I(k(n.submitText), 1)
2224
+ I(w(o.submitText), 1)
2218
2225
  ]),
2219
2226
  _: 1
2220
2227
  })
@@ -2223,7 +2230,7 @@ const _t = { key: 0 }, Pt = {
2223
2230
  a.value ? (r(), f(ge, {
2224
2231
  key: 2,
2225
2232
  "data-cy": "loading-spinner"
2226
- })) : z("", !0)
2233
+ })) : S("", !0)
2227
2234
  ], 16);
2228
2235
  };
2229
2236
  }
@@ -2233,7 +2240,7 @@ const _t = { key: 0 }, Pt = {
2233
2240
  }, aa = ["for"], ia = {
2234
2241
  key: 0,
2235
2242
  class: "text-danger fw-600"
2236
- }, Gi = /* @__PURE__ */ $({
2243
+ }, Ji = /* @__PURE__ */ $({
2237
2244
  __name: "ForgeFormField",
2238
2245
  props: /* @__PURE__ */ U({
2239
2246
  name: {},
@@ -2252,35 +2259,35 @@ const _t = { key: 0 }, Pt = {
2252
2259
  setup(e) {
2253
2260
  const t = D(e, "modelValue"), a = e, i = (g) => {
2254
2261
  a.type == "number" ? s(g.value) : s(g);
2255
- }, { errors: l, value: n, errorMessage: o, handleChange: s, handleBlur: p } = ee(() => a.name, void 0, {
2262
+ }, { errors: l, value: o, errorMessage: n, handleChange: s, handleBlur: p } = ee(() => a.name, void 0, {
2256
2263
  initialValue: t.value
2257
2264
  }), c = T(() => l.value.length > 0);
2258
- return ce(() => n.value, (g) => {
2265
+ return ce(() => o.value, (g) => {
2259
2266
  t.value = g;
2260
2267
  }, { immediate: !0 }), (g, d) => {
2261
- const B = Ve, S = Pe, V = ne, M = te, q = oe, y = be;
2262
- return a.type === "checkbox" ? (r(), f(fe, C({
2268
+ const F = Ve, C = Pe, V = oe, M = te, q = ne, y = be;
2269
+ return a.type === "checkbox" ? (r(), f(fe, z({
2263
2270
  key: 0,
2264
2271
  id: a.name,
2265
2272
  label: a.fieldLabel
2266
2273
  }, g.$attrs, {
2267
2274
  name: a.name,
2268
2275
  modelValue: t.value,
2269
- "onUpdate:modelValue": d[0] || (d[0] = (h) => t.value = h)
2276
+ "onUpdate:modelValue": d[0] || (d[0] = (x) => t.value = x)
2270
2277
  }), null, 16, ["id", "label", "name", "modelValue"])) : (r(), v("div", ta, [
2271
2278
  m("div", {
2272
2279
  "data-cy": "input-wrapper",
2273
- class: F(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
2280
+ class: B(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
2274
2281
  }, [
2275
2282
  m("label", {
2276
2283
  for: a.name,
2277
- class: F(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
2284
+ class: B(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
2278
2285
  }, [
2279
- I(k(a.fieldLabel) + " ", 1),
2280
- g.required ? (r(), v("span", ia, "*")) : z("", !0)
2286
+ I(w(a.fieldLabel) + " ", 1),
2287
+ g.required ? (r(), v("span", ia, "*")) : S("", !0)
2281
2288
  ], 10, aa),
2282
- w(g.$slots, "default", J(K({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
2283
- a.type === "number" ? (r(), f(u(ue), C({
2289
+ k(g.$slots, "default", J(K({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
2290
+ a.type === "number" ? (r(), f(u(ue), z({
2284
2291
  key: 0,
2285
2292
  id: a.name
2286
2293
  }, g.$attrs, {
@@ -2289,18 +2296,18 @@ const _t = { key: 0 }, Pt = {
2289
2296
  class: { "is-invalid": c.value },
2290
2297
  onInput: i,
2291
2298
  modelValue: t.value,
2292
- "onUpdate:modelValue": d[1] || (d[1] = (h) => t.value = h)
2293
- }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (r(), f(B, C({
2299
+ "onUpdate:modelValue": d[1] || (d[1] = (x) => t.value = x)
2300
+ }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (r(), f(F, z({
2294
2301
  key: 1,
2295
2302
  id: a.name
2296
2303
  }, g.$attrs, {
2297
2304
  placeholder: a.placeholder,
2298
2305
  class: { "is-invalid": c.value },
2299
2306
  modelValue: t.value,
2300
- "onUpdate:modelValue": d[2] || (d[2] = (h) => t.value = h),
2307
+ "onUpdate:modelValue": d[2] || (d[2] = (x) => t.value = x),
2301
2308
  onInput: i,
2302
2309
  onBlur: u(p)
2303
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (r(), f(S, C({
2310
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (r(), f(C, z({
2304
2311
  key: 2,
2305
2312
  id: a.name
2306
2313
  }, g.$attrs, {
@@ -2308,48 +2315,48 @@ const _t = { key: 0 }, Pt = {
2308
2315
  mask: a.mask,
2309
2316
  class: { "is-invalid": c.value },
2310
2317
  modelValue: t.value,
2311
- "onUpdate:modelValue": d[3] || (d[3] = (h) => t.value = h),
2318
+ "onUpdate:modelValue": d[3] || (d[3] = (x) => t.value = x),
2312
2319
  onComplete: i,
2313
2320
  onBlur: u(p)
2314
- }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (r(), f(V, C({
2321
+ }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (r(), f(V, z({
2315
2322
  key: 3,
2316
2323
  id: a.name
2317
2324
  }, g.$attrs, {
2318
2325
  placeholder: a.placeholder,
2319
2326
  class: { "is-invalid": c.value },
2320
2327
  modelValue: t.value,
2321
- "onUpdate:modelValue": d[4] || (d[4] = (h) => t.value = h),
2328
+ "onUpdate:modelValue": d[4] || (d[4] = (x) => t.value = x),
2322
2329
  onInput: i,
2323
2330
  onBlur: u(p)
2324
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (r(), f(M, C({ key: 4 }, { ...a, ...g.$attrs }, {
2331
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (r(), f(M, z({ key: 4 }, { ...a, ...g.$attrs }, {
2325
2332
  modelValue: t.value,
2326
- "onUpdate:modelValue": d[5] || (d[5] = (h) => t.value = h),
2333
+ "onUpdate:modelValue": d[5] || (d[5] = (x) => t.value = x),
2327
2334
  class: { "is-invalid": c.value }
2328
- }), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (r(), f(q, C({ key: 5 }, { ...a, ...g.$attrs }, {
2335
+ }), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (r(), f(q, z({ key: 5 }, { ...a, ...g.$attrs }, {
2329
2336
  modelValue: t.value,
2330
- "onUpdate:modelValue": d[6] || (d[6] = (h) => t.value = h),
2337
+ "onUpdate:modelValue": d[6] || (d[6] = (x) => t.value = x),
2331
2338
  class: { "is-invalid": c.value }
2332
- }), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (r(), f(Wt, C({ key: 6 }, { ...a, ...g.$attrs }, {
2339
+ }), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (r(), f(Wt, z({ key: 6 }, { ...a, ...g.$attrs }, {
2333
2340
  modelValue: t.value,
2334
- "onUpdate:modelValue": d[7] || (d[7] = (h) => t.value = h),
2341
+ "onUpdate:modelValue": d[7] || (d[7] = (x) => t.value = x),
2335
2342
  class: { "is-invalid": c.value }
2336
- }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (r(), f(y, C({ key: 7 }, { ...a, ...g.$attrs }, {
2343
+ }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (r(), f(y, z({ key: 7 }, { ...a, ...g.$attrs }, {
2337
2344
  modelValue: t.value,
2338
- "onUpdate:modelValue": d[8] || (d[8] = (h) => t.value = h),
2345
+ "onUpdate:modelValue": d[8] || (d[8] = (x) => t.value = x),
2339
2346
  class: { "is-invalid": c.value }
2340
- }), null, 16, ["modelValue", "class"])) : z("", !0)
2347
+ }), null, 16, ["modelValue", "class"])) : S("", !0)
2341
2348
  ])
2342
2349
  ], 2),
2343
2350
  H(m("small", {
2344
2351
  "data-cy": "error",
2345
2352
  class: "invalid-feedback"
2346
- }, k(u(o)), 513), [
2353
+ }, w(u(n)), 513), [
2347
2354
  [Y, c.value && a.type !== "multiselect" && a.type !== "datepicker"]
2348
2355
  ])
2349
2356
  ]));
2350
2357
  };
2351
2358
  }
2352
- }), Ji = /* @__PURE__ */ $({
2359
+ }), Ki = /* @__PURE__ */ $({
2353
2360
  __name: "ForgeChip",
2354
2361
  props: {
2355
2362
  chipSeverity: { default: "primary" },
@@ -2383,10 +2390,10 @@ const _t = { key: 0 }, Pt = {
2383
2390
  ]
2384
2391
  }));
2385
2392
  return (i, l) => {
2386
- const n = Me;
2387
- return r(), f(n, C({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
2393
+ const o = Me;
2394
+ return r(), f(o, z({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
2388
2395
  default: b(() => [
2389
- (r(!0), v(O, null, N(i.$slots, (o, s) => w(i.$slots, s, { slot: s })), 256))
2396
+ (r(!0), v(O, null, N(i.$slots, (n, s) => k(i.$slots, s, { slot: s })), 256))
2390
2397
  ]),
2391
2398
  _: 3
2392
2399
  }, 16, ["pt"]);
@@ -2427,7 +2434,7 @@ const _t = { key: 0 }, Pt = {
2427
2434
  default:
2428
2435
  return "bg-primary";
2429
2436
  }
2430
- }), n = T(() => ({
2437
+ }), o = T(() => ({
2431
2438
  root: {
2432
2439
  style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
2433
2440
  },
@@ -2435,18 +2442,18 @@ const _t = { key: 0 }, Pt = {
2435
2442
  class: [l.value, a.value, i.value, "progress-bar"]
2436
2443
  }
2437
2444
  }));
2438
- return (o, s) => {
2445
+ return (n, s) => {
2439
2446
  const p = De;
2440
- return r(), f(p, C({ ...o.$attrs, ...t }, { pt: n.value }), {
2447
+ return r(), f(p, z({ ...n.$attrs, ...t }, { pt: o.value }), {
2441
2448
  default: b(() => [
2442
- w(o.$slots, "default")
2449
+ k(n.$slots, "default")
2443
2450
  ]),
2444
2451
  _: 3
2445
2452
  }, 16, ["pt"]);
2446
2453
  };
2447
2454
  }
2448
2455
  });
2449
- var na = /* @__PURE__ */ $({
2456
+ var oa = /* @__PURE__ */ $({
2450
2457
  name: "VueDrawingCanvas",
2451
2458
  props: {
2452
2459
  strokeType: {
@@ -2757,15 +2764,15 @@ var na = /* @__PURE__ */ $({
2757
2764
  e && this.save();
2758
2765
  });
2759
2766
  },
2760
- wrapText(e, t, a, i, l, n) {
2761
- const o = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
2762
- var p = t.split(o).filter((M) => M.length > 0);
2767
+ wrapText(e, t, a, i, l, o) {
2768
+ const n = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
2769
+ var p = t.split(n).filter((M) => M.length > 0);
2763
2770
  for (let M = 0; M < p.length; M++) {
2764
2771
  for (var c = p[M].split(s).filter((q) => q.length > 0), g = "", d = 0; d < c.length; d++) {
2765
- var B = g + c[d] + " ", S = e.measureText(B), V = S.width;
2766
- V > l && d > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(g, a, i) : e.fillText(g, a, i), g = c[d] + " ", i += n) : g = B;
2772
+ var F = g + c[d] + " ", C = e.measureText(F), V = C.width;
2773
+ V > l && d > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(g, a, i) : e.fillText(g, a, i), g = c[d] + " ", i += o) : g = F;
2767
2774
  }
2768
- this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(g, a, i) : e.fillText(g, a, i), i += c.length > 0 ? n : 0;
2775
+ this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(g, a, i) : e.fillText(g, a, i), i += c.length > 0 ? o : 0;
2769
2776
  }
2770
2777
  },
2771
2778
  save() {
@@ -2782,20 +2789,20 @@ var na = /* @__PURE__ */ $({
2782
2789
  drawWatermark(e, t, a) {
2783
2790
  if (a.type === "Image") {
2784
2791
  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);
2785
- const n = new Image();
2786
- n.src = a.source, n.onload = () => {
2787
- a && t && t.drawImage(n, a.x, a.y, Number(i), Number(l));
2788
- let o = document.createElement("canvas"), s = o.getContext("2d"), p = this.outputWidth === void 0 ? this.width : this.outputWidth, c = this.outputHeight === void 0 ? this.height : this.outputHeight;
2789
- if (o.width = Number(p), o.height = Number(c), s)
2790
- return s.drawImage(e, 0, 0, Number(p), Number(c)), this.$emit("update:image", o.toDataURL("image/" + this.saveAs, 1)), o.toDataURL("image/" + this.saveAs, 1);
2792
+ const o = new Image();
2793
+ o.src = a.source, o.onload = () => {
2794
+ a && t && t.drawImage(o, a.x, a.y, Number(i), Number(l));
2795
+ 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;
2796
+ if (n.width = Number(p), n.height = Number(c), s)
2797
+ 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);
2791
2798
  };
2792
2799
  } else if (a.type === "Text") {
2793
- let i = a.fontStyle && a.fontStyle.font ? a.fontStyle.font : "20px serif", l = a.fontStyle && a.fontStyle.textAlign ? a.fontStyle.textAlign : "start", n = a.fontStyle && a.fontStyle.textBaseline ? a.fontStyle.textBaseline : "alphabetic", o = a.fontStyle && a.fontStyle.color ? a.fontStyle.color : "#000000";
2794
- if (t.font = i, t.textAlign = l, t.textBaseline = n, a.fontStyle && a.fontStyle.rotate) {
2795
- let d, B;
2796
- a.fontStyle && a.fontStyle.width ? d = a.x + Math.floor(a.fontStyle.width / 2) : d = a.x, a.fontStyle && a.fontStyle.lineHeight ? B = a.y + Math.floor(a.fontStyle.lineHeight / 2) : B = a.y, t.translate(d, B), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(d * -1, B * -1);
2800
+ 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";
2801
+ if (t.font = i, t.textAlign = l, t.textBaseline = o, a.fontStyle && a.fontStyle.rotate) {
2802
+ let d, F;
2803
+ a.fontStyle && a.fontStyle.width ? d = a.x + Math.floor(a.fontStyle.width / 2) : d = a.x, a.fontStyle && a.fontStyle.lineHeight ? F = a.y + Math.floor(a.fontStyle.lineHeight / 2) : F = a.y, t.translate(d, F), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(d * -1, F * -1);
2797
2804
  }
2798
- a.fontStyle && a.fontStyle.drawType && a.fontStyle.drawType === "stroke" ? (t.strokeStyle = a.fontStyle.color, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.strokeText(a.source, a.x, a.y)) : (t.fillStyle = o, a.fontStyle && a.fontStyle.width ? this.wrapText(t, a.source, a.x, a.y, a.fontStyle.width, a.fontStyle.lineHeight) : t.fillText(a.source, a.x, a.y));
2805
+ 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));
2799
2806
  let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth, g = this.outputHeight === void 0 ? this.height : this.outputHeight;
2800
2807
  if (s.width = Number(c), s.height = Number(g), p)
2801
2808
  return p.drawImage(e, 0, 0, Number(c), Number(g)), this.$emit("update:image", s.toDataURL("image/" + this.saveAs, 1)), s.toDataURL("image/" + this.saveAs, 1);
@@ -2836,7 +2843,7 @@ var na = /* @__PURE__ */ $({
2836
2843
  });
2837
2844
  }
2838
2845
  });
2839
- const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1 gap-1" }, Ki = /* @__PURE__ */ $({
2846
+ const na = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1 gap-1" }, Zi = /* @__PURE__ */ $({
2840
2847
  __name: "ForgeScratchpad",
2841
2848
  props: {
2842
2849
  showClear: { type: Boolean, default: !0 },
@@ -2849,7 +2856,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
2849
2856
  },
2850
2857
  emits: ["save"],
2851
2858
  setup(e, { emit: t }) {
2852
- const a = e, i = t, l = Be("drawingCanvas"), n = _(), o = () => {
2859
+ const a = e, i = t, l = Fe("drawingCanvas"), o = _(), n = () => {
2853
2860
  l == null || l.value.reset();
2854
2861
  }, s = () => {
2855
2862
  l == null || l.value.redo();
@@ -2859,13 +2866,13 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
2859
2866
  i("save", l.value.isEmpty());
2860
2867
  };
2861
2868
  return (g, d) => {
2862
- const B = A;
2863
- return r(), v("div", oa, [
2864
- x(u(na), C({
2869
+ const F = A;
2870
+ return r(), v("div", na, [
2871
+ h(u(oa), z({
2865
2872
  ref_key: "drawingCanvas",
2866
2873
  ref: l,
2867
- image: n.value,
2868
- "onUpdate:image": d[0] || (d[0] = (S) => n.value = S),
2874
+ image: o.value,
2875
+ "onUpdate:image": d[0] || (d[0] = (C) => o.value = C),
2869
2876
  "data-cy": "drawing-canvas",
2870
2877
  class: "border canvas"
2871
2878
  }, { ...g.$attrs }, {
@@ -2875,7 +2882,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
2875
2882
  "line-join": g.lineJoin
2876
2883
  }), null, 16, ["image", "height", "width", "style", "line-join"]),
2877
2884
  m("div", sa, [
2878
- a.showUndo ? (r(), f(B, {
2885
+ a.showUndo ? (r(), f(F, {
2879
2886
  key: 0,
2880
2887
  onClick: p,
2881
2888
  outlined: "",
@@ -2885,8 +2892,8 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
2885
2892
  I("Undo")
2886
2893
  ])),
2887
2894
  _: 1
2888
- })) : z("", !0),
2889
- a.showRedo ? (r(), f(B, {
2895
+ })) : S("", !0),
2896
+ a.showRedo ? (r(), f(F, {
2890
2897
  key: 1,
2891
2898
  onClick: s,
2892
2899
  outlined: "",
@@ -2896,10 +2903,10 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
2896
2903
  I("Redo")
2897
2904
  ])),
2898
2905
  _: 1
2899
- })) : z("", !0),
2900
- a.showClear ? (r(), f(B, {
2906
+ })) : S("", !0),
2907
+ a.showClear ? (r(), f(F, {
2901
2908
  key: 2,
2902
- onClick: o,
2909
+ onClick: n,
2903
2910
  outlined: "",
2904
2911
  "data-cy": "clear-button"
2905
2912
  }, {
@@ -2907,8 +2914,8 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
2907
2914
  I("Clear")
2908
2915
  ])),
2909
2916
  _: 1
2910
- })) : z("", !0),
2911
- a.showSave ? (r(), f(B, {
2917
+ })) : S("", !0),
2918
+ a.showSave ? (r(), f(F, {
2912
2919
  key: 3,
2913
2920
  onClick: c,
2914
2921
  class: "ms-auto",
@@ -2918,12 +2925,12 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
2918
2925
  I("Save")
2919
2926
  ])),
2920
2927
  _: 1
2921
- })) : z("", !0)
2928
+ })) : S("", !0)
2922
2929
  ])
2923
2930
  ]);
2924
2931
  };
2925
2932
  }
2926
- }), ra = { class: "value text-white w-100 text-center" }, Zi = /* @__PURE__ */ $({
2933
+ }), ra = { class: "value text-white w-100 text-center" }, Xi = /* @__PURE__ */ $({
2927
2934
  __name: "ForgeStatWidget",
2928
2935
  props: {
2929
2936
  size: { default: "md" },
@@ -2931,15 +2938,15 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
2931
2938
  },
2932
2939
  setup(e) {
2933
2940
  const t = e;
2934
- return (a, i) => (r(), v("div", C(a.$attrs, {
2941
+ return (a, i) => (r(), v("div", z(a.$attrs, {
2935
2942
  class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
2936
2943
  }), [
2937
2944
  m("span", ra, [
2938
- w(a.$slots, "default")
2945
+ k(a.$slots, "default")
2939
2946
  ])
2940
2947
  ], 16));
2941
2948
  }
2942
- }), da = { key: 0 }, Xi = /* @__PURE__ */ $({
2949
+ }), da = { key: 0 }, Qi = /* @__PURE__ */ $({
2943
2950
  __name: "ForgeStepper",
2944
2951
  props: {
2945
2952
  currentStep: { default: 1 },
@@ -2988,30 +2995,30 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
2988
2995
  }));
2989
2996
  return (i, l) => (r(), f(u(Ne), { value: i.currentStep }, {
2990
2997
  default: b(() => [
2991
- x(u(Ue), null, {
2998
+ h(u(Ue), null, {
2992
2999
  default: b(() => [
2993
- (r(!0), v(O, null, N(i.steps, (n) => (r(), f(u(Oe), C({
2994
- key: n.value,
2995
- value: n.value,
2996
- disabled: n.disabled,
3000
+ (r(!0), v(O, null, N(i.steps, (o) => (r(), f(u(Oe), z({
3001
+ key: o.value,
3002
+ value: o.value,
3003
+ disabled: o.disabled,
2997
3004
  ref_for: !0
2998
3005
  }, { ...i.$attrs }, { pt: a.value }), {
2999
3006
  default: b(() => [
3000
- i.showStepLabel ? (r(), v("div", da, k(n.label), 1)) : z("", !0)
3007
+ i.showStepLabel ? (r(), v("div", da, w(o.label), 1)) : S("", !0)
3001
3008
  ]),
3002
3009
  _: 2
3003
3010
  }, 1040, ["value", "disabled", "pt"]))), 128))
3004
3011
  ]),
3005
3012
  _: 1
3006
3013
  }),
3007
- x(u(qe), null, {
3014
+ h(u(qe), null, {
3008
3015
  default: b(() => [
3009
- (r(!0), v(O, null, N(i.steps, (n) => (r(), f(u(Ae), {
3010
- key: n.value,
3011
- value: n.value
3016
+ (r(!0), v(O, null, N(i.steps, (o) => (r(), f(u(Ae), {
3017
+ key: o.value,
3018
+ value: o.value
3012
3019
  }, {
3013
3020
  default: b(() => [
3014
- w(i.$slots, "step" + n.value)
3021
+ k(i.$slots, "step" + o.value)
3015
3022
  ]),
3016
3023
  _: 2
3017
3024
  }, 1032, ["value"]))), 128))
@@ -3022,7 +3029,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
3022
3029
  _: 3
3023
3030
  }, 8, ["value"]));
3024
3031
  }
3025
- }), pa = { class: "p-4 text-wrap w-100" }, ca = { class: "p-4 text-wrap w-100" }, Qi = /* @__PURE__ */ $({
3032
+ }), pa = { class: "p-4 text-wrap w-100" }, ca = { class: "p-4 text-wrap w-100" }, el = /* @__PURE__ */ $({
3026
3033
  __name: "ForgeTile",
3027
3034
  props: {
3028
3035
  severity: { default: "primary" },
@@ -3032,31 +3039,31 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
3032
3039
  },
3033
3040
  setup(e) {
3034
3041
  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" : ""}`);
3035
- return (l, n) => {
3036
- const o = A;
3037
- return t.clickable ? (r(), f(o, {
3042
+ return (l, o) => {
3043
+ const n = A;
3044
+ return t.clickable ? (r(), f(n, {
3038
3045
  key: 0,
3039
- class: F(["d-flex w-100 p-0 text-body", a.value]),
3046
+ class: B(["d-flex w-100 p-0 text-body", a.value]),
3040
3047
  severity: t.severity,
3041
3048
  unstyled: "",
3042
3049
  "data-cy": "button-tile"
3043
3050
  }, {
3044
3051
  default: b(() => [
3045
3052
  m("div", pa, [
3046
- w(l.$slots, "default", {}, () => [
3047
- n[0] || (n[0] = I("Tile Content"))
3053
+ k(l.$slots, "default", {}, () => [
3054
+ o[0] || (o[0] = I("Tile Content"))
3048
3055
  ])
3049
3056
  ])
3050
3057
  ]),
3051
3058
  _: 3
3052
3059
  }, 8, ["severity", "class"])) : (r(), v("div", {
3053
3060
  key: 1,
3054
- class: F(["d-flex w-100", i.value]),
3061
+ class: B(["d-flex w-100", i.value]),
3055
3062
  "data-cy": "tile"
3056
3063
  }, [
3057
3064
  m("div", ca, [
3058
- w(l.$slots, "default", {}, () => [
3059
- n[1] || (n[1] = I("Tile Content"))
3065
+ k(l.$slots, "default", {}, () => [
3066
+ o[1] || (o[1] = I("Tile Content"))
3060
3067
  ])
3061
3068
  ])
3062
3069
  ], 2));
@@ -3081,16 +3088,16 @@ const ua = {
3081
3088
  },
3082
3089
  emits: ["update:perPage"],
3083
3090
  setup(e, { emit: t }) {
3084
- const a = t, i = e, l = (o) => {
3085
- a("update:perPage", o.value);
3086
- }, n = T(() => {
3087
- const o = Math.ceil(i.total / i.perPage);
3088
- return `${o} ${Q(o, "page")}`;
3091
+ const a = t, i = e, l = (n) => {
3092
+ a("update:perPage", n.value);
3093
+ }, o = T(() => {
3094
+ const n = Math.ceil(i.total / i.perPage);
3095
+ return `${n} ${Q(n, "page")}`;
3089
3096
  });
3090
- return (o, s) => (r(), v("div", ua, [
3097
+ return (n, s) => (r(), v("div", ua, [
3091
3098
  s[2] || (s[2] = I(" Number of results per page ")),
3092
3099
  m("div", ma, [
3093
- x(u(te), {
3100
+ h(u(te), {
3094
3101
  options: i.pageSizes,
3095
3102
  "model-value": i.perPage,
3096
3103
  class: "page-size",
@@ -3099,14 +3106,14 @@ const ua = {
3099
3106
  ]),
3100
3107
  i.total ? (r(), v("div", va, [
3101
3108
  s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
3102
- m("span", fa, k(i.total) + " " + k(u(Q)(i.total, "result")) + " across " + k(n.value), 1)
3103
- ])) : z("", !0)
3109
+ m("span", fa, w(i.total) + " " + w(u(Q)(i.total, "result")) + " across " + w(o.value), 1)
3110
+ ])) : S("", !0)
3104
3111
  ]));
3105
3112
  }
3106
3113
  }), ba = { class: "position-relative" }, ya = { "data-cy": "above-table-slot" }, xa = { class: "d-flex w-100" }, ha = {
3107
3114
  class: "mx-auto",
3108
3115
  "data-cy": "empty-message"
3109
- }, wa = { class: "d-flex" }, ka = { class: "d-flex align-items-end mb-2" }, $a = { key: 0 }, Ba = { class: "ms-auto" }, el = /* @__PURE__ */ $({
3116
+ }, wa = { class: "d-flex" }, ka = { class: "d-flex align-items-end mb-2" }, $a = { key: 0 }, Fa = { class: "ms-auto" }, tl = /* @__PURE__ */ $({
3110
3117
  __name: "ForgeTable",
3111
3118
  props: {
3112
3119
  value: {},
@@ -3192,15 +3199,15 @@ const ua = {
3192
3199
  },
3193
3200
  emits: ["update:filters", "update:tableContext", "sort", "page"],
3194
3201
  setup(e, { emit: t }) {
3195
- const a = t, i = e, l = _(), n = _([5, 10, 20, 50, 100]), o = _(10), s = _({
3202
+ const a = t, i = e, l = _(), o = _([5, 10, 20, 50, 100]), n = _(10), s = _({
3196
3203
  filters: i.filters,
3197
- perPage: o.value,
3204
+ perPage: n.value,
3198
3205
  page: 0,
3199
3206
  sortDirection: "None",
3200
3207
  sortField: "",
3201
3208
  total: i.totalRecords ?? i.value.length
3202
3209
  }), p = T(() => i.totalRecords ?? i.value.length), c = T(() => {
3203
- const y = Math.ceil(p.value / o.value);
3210
+ const y = Math.ceil(p.value / n.value);
3204
3211
  return `${y} ${Q(y, "page")}`;
3205
3212
  }), g = T(() => ({
3206
3213
  thead: () => ({
@@ -3231,124 +3238,124 @@ const ua = {
3231
3238
  for (const y in i.filters)
3232
3239
  typeof i.filters[y] == "string" ? i.filters[y] = "" : i.filters[y].value = null;
3233
3240
  V(i.filters);
3234
- }, B = () => {
3241
+ }, F = () => {
3235
3242
  l.value.exportCSV();
3236
- }, S = (y) => {
3237
- var h;
3238
- s.value.sortDirection = y.sortOrder === 1 ? "Asc" : y.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((h = y.sortField) == null ? void 0 : h.toString()) ?? "", a("update:tableContext", s.value), a("sort", y);
3243
+ }, C = (y) => {
3244
+ var x;
3245
+ s.value.sortDirection = y.sortOrder === 1 ? "Asc" : y.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((x = y.sortField) == null ? void 0 : x.toString()) ?? "", a("update:tableContext", s.value), a("sort", y);
3239
3246
  }, V = (y) => {
3240
3247
  s.value.filters = y, a("update:tableContext", s.value), a("update:filters", y);
3241
3248
  }, M = (y) => {
3242
3249
  s.value.page = y.page, a("update:tableContext", s.value), a("page", y);
3243
3250
  }, q = () => {
3244
- s.value.perPage = o.value, a("update:tableContext", s.value);
3251
+ s.value.perPage = n.value, a("update:tableContext", s.value);
3245
3252
  };
3246
3253
  return ce(() => i.filters, (y) => {
3247
3254
  s.value.filters = y, a("update:tableContext", s.value);
3248
- }, { deep: !0 }), le(() => a("update:tableContext", s.value)), (y, h) => (r(), v("div", ba, [
3255
+ }, { deep: !0 }), le(() => a("update:tableContext", s.value)), (y, x) => (r(), v("div", ba, [
3249
3256
  m("span", ya, [
3250
- w(y.$slots, "above-table")
3257
+ k(y.$slots, "above-table")
3251
3258
  ]),
3252
- x(u(Ee), C({
3259
+ h(u(Ee), z({
3253
3260
  class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
3254
3261
  }, { ...i, ...y.$attrs }, {
3255
3262
  pt: g.value,
3256
- rows: o.value,
3263
+ rows: n.value,
3257
3264
  "total-records": p.value,
3258
3265
  "filter-display": i.filters ? "row" : void 0,
3259
3266
  ref_key: "forgeTable",
3260
3267
  ref: l,
3261
3268
  "data-cy": "table",
3262
3269
  "onUpdate:filters": V,
3263
- onSort: S,
3270
+ onSort: C,
3264
3271
  onPage: M,
3265
3272
  showHeaders: ""
3266
3273
  }), ie({
3267
3274
  empty: b(() => [
3268
3275
  m("div", xa, [
3269
- m("h5", ha, k(y.emptyMessage ?? "No items Found."), 1)
3276
+ m("h5", ha, w(y.emptyMessage ?? "No items Found."), 1)
3270
3277
  ])
3271
3278
  ]),
3272
3279
  header: b(() => [
3273
3280
  m("div", {
3274
- class: F(i.loading ? "opacity-50" : "")
3281
+ class: B(i.loading ? "opacity-50" : "")
3275
3282
  }, [
3276
3283
  m("div", wa, [
3277
3284
  m("div", ka, [
3278
3285
  y.paginator && !y.legacyPaginationFooter ? (r(), v("span", $a, [
3279
- x(ga, {
3286
+ h(ga, {
3280
3287
  total: p.value,
3281
- "page-sizes": n.value,
3282
- "per-page": o.value,
3288
+ "page-sizes": o.value,
3289
+ "per-page": n.value,
3283
3290
  "onUpdate:perPage": [
3284
- h[0] || (h[0] = (P) => o.value = P),
3291
+ x[0] || (x[0] = (P) => n.value = P),
3285
3292
  q
3286
3293
  ]
3287
3294
  }, null, 8, ["total", "page-sizes", "per-page"])
3288
- ])) : z("", !0)
3295
+ ])) : S("", !0)
3289
3296
  ]),
3290
- m("div", Ba, [
3297
+ m("div", Fa, [
3291
3298
  y.showClearButton ? (r(), f(u(A), {
3292
3299
  key: 0,
3293
3300
  outlined: "",
3294
- class: F(y.showExporterButton ? "me-2" : ""),
3301
+ class: B(y.showExporterButton ? "me-2" : ""),
3295
3302
  onClick: d,
3296
3303
  "data-cy": "clear-all"
3297
3304
  }, {
3298
3305
  default: b(() => [
3299
- x(u(j), {
3306
+ h(u(j), {
3300
3307
  icon: "bi:funnel-fill",
3301
3308
  width: "24",
3302
3309
  height: "24"
3303
3310
  }),
3304
- h[2] || (h[2] = I(" Clear "))
3311
+ x[2] || (x[2] = I(" Clear "))
3305
3312
  ]),
3306
3313
  _: 1
3307
- }, 8, ["class"])) : z("", !0),
3314
+ }, 8, ["class"])) : S("", !0),
3308
3315
  y.showExporterButton ? (r(), f(u(A), {
3309
3316
  key: 1,
3310
3317
  outlined: "",
3311
- onClick: B,
3318
+ onClick: F,
3312
3319
  "data-cy": "exporter"
3313
3320
  }, {
3314
3321
  default: b(() => [
3315
- x(u(j), {
3322
+ h(u(j), {
3316
3323
  icon: "typcn:export",
3317
3324
  width: "24",
3318
3325
  height: "24"
3319
3326
  }),
3320
- h[3] || (h[3] = I(" Export "))
3327
+ x[3] || (x[3] = I(" Export "))
3321
3328
  ]),
3322
3329
  _: 1
3323
- })) : z("", !0),
3324
- w(y.$slots, "column-customiser")
3330
+ })) : S("", !0),
3331
+ k(y.$slots, "column-customiser")
3325
3332
  ])
3326
3333
  ])
3327
3334
  ], 2)
3328
3335
  ]),
3329
3336
  default: b(() => [
3330
- w(y.$slots, "default")
3337
+ k(y.$slots, "default")
3331
3338
  ]),
3332
3339
  _: 2
3333
3340
  }, [
3334
3341
  N(y.$slots, (P, L) => ({
3335
3342
  name: L,
3336
3343
  fn: b((ae) => [
3337
- w(y.$slots, L, J(K(ae || {})))
3344
+ k(y.$slots, L, J(K(ae || {})))
3338
3345
  ])
3339
3346
  })),
3340
3347
  y.legacyPaginationFooter ? {
3341
3348
  name: "paginatorstart",
3342
3349
  fn: b(() => [
3343
3350
  m("span", {
3344
- class: F(["d-flex", i.loading ? "opacity-50" : ""]),
3351
+ class: B(["d-flex", i.loading ? "opacity-50" : ""]),
3345
3352
  "data-cy": "legacy-page-size"
3346
3353
  }, [
3347
- h[4] || (h[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
3348
- x(u(te), {
3349
- options: n.value,
3350
- modelValue: o.value,
3351
- "onUpdate:modelValue": h[1] || (h[1] = (P) => o.value = P),
3354
+ x[4] || (x[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
3355
+ h(u(te), {
3356
+ options: o.value,
3357
+ modelValue: n.value,
3358
+ "onUpdate:modelValue": x[1] || (x[1] = (P) => n.value = P),
3352
3359
  class: "ms-2",
3353
3360
  onClick: q
3354
3361
  }, null, 8, ["options", "modelValue"])
@@ -3361,15 +3368,15 @@ const ua = {
3361
3368
  fn: b(() => [
3362
3369
  m("span", {
3363
3370
  "data-cy": "legacy-total",
3364
- class: F(i.loading ? "opacity-50" : "")
3365
- }, k(p.value) + " " + k(u(Q)(p.value, "result")) + " across " + k(c.value), 3)
3371
+ class: B(i.loading ? "opacity-50" : "")
3372
+ }, w(p.value) + " " + w(u(Q)(p.value, "result")) + " across " + w(c.value), 3)
3366
3373
  ]),
3367
3374
  key: "1"
3368
3375
  } : void 0
3369
3376
  ]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
3370
3377
  ]));
3371
3378
  }
3372
- }), Fa = { class: "d-flex position-relative" }, Sa = { class: "d-flex w-100" }, tl = /* @__PURE__ */ $({
3379
+ }), Ba = { class: "d-flex position-relative" }, Sa = { class: "d-flex w-100" }, al = /* @__PURE__ */ $({
3373
3380
  __name: "ForgeFilterHeader",
3374
3381
  props: /* @__PURE__ */ U({
3375
3382
  dataType: {},
@@ -3384,39 +3391,39 @@ const ua = {
3384
3391
  }),
3385
3392
  emits: ["update:modelValue"],
3386
3393
  setup(e) {
3387
- const t = D(e, "modelValue"), a = (l, n) => {
3394
+ const t = D(e, "modelValue"), a = (l, o) => {
3388
3395
  if (!l || Array.isArray(l) && l.length === 0)
3389
- return n;
3390
- const o = (s) => {
3396
+ return o;
3397
+ const n = (s) => {
3391
3398
  var c;
3392
3399
  const p = (c = e.dropdownOptions) == null ? void 0 : c.find(
3393
3400
  (g) => e.optionValue ? g[e.optionValue] === s : Object.keys(g).every((d) => s.hasOwnProperty(d) && g[d] === s[d])
3394
3401
  );
3395
3402
  return e.optionLabel ? p[e.optionLabel] : p;
3396
3403
  };
3397
- return Array.isArray(l) ? l.map(o).join(", ") : o(l);
3404
+ return Array.isArray(l) ? l.map(n).join(", ") : n(l);
3398
3405
  }, i = () => {
3399
3406
  e.clearFilter ? e.clearFilter() : t.value = null;
3400
3407
  };
3401
- return (l, n) => {
3402
- const o = ue, s = A;
3403
- return r(), v("div", Fa, [
3404
- l.dataType === "numeric" ? (r(), f(o, C({
3408
+ return (l, o) => {
3409
+ const n = ue, s = A;
3410
+ return r(), v("div", Ba, [
3411
+ l.dataType === "numeric" ? (r(), f(n, z({
3405
3412
  key: 0,
3406
3413
  modelValue: t.value,
3407
- "onUpdate:modelValue": n[0] || (n[0] = (p) => t.value = p),
3414
+ "onUpdate:modelValue": o[0] || (o[0] = (p) => t.value = p),
3408
3415
  modelModifiers: { trim: !0 }
3409
- }, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (r(), f(be, C({
3416
+ }, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (r(), f(be, z({
3410
3417
  key: 1,
3411
3418
  modelValue: t.value,
3412
- "onUpdate:modelValue": n[1] || (n[1] = (p) => t.value = p)
3419
+ "onUpdate:modelValue": o[1] || (o[1] = (p) => t.value = p)
3413
3420
  }, l.$attrs, {
3414
3421
  "show-icon": !1,
3415
3422
  "show-on-focus": !0
3416
- }), null, 16, ["modelValue"])) : l.dataType === "select" ? (r(), f(u(te), C({
3423
+ }), null, 16, ["modelValue"])) : l.dataType === "select" ? (r(), f(u(te), z({
3417
3424
  key: 2,
3418
3425
  modelValue: t.value,
3419
- "onUpdate:modelValue": n[2] || (n[2] = (p) => t.value = p)
3426
+ "onUpdate:modelValue": o[2] || (o[2] = (p) => t.value = p)
3420
3427
  }, l.$attrs, {
3421
3428
  options: l.dropdownOptions,
3422
3429
  "option-value": l.optionValue,
@@ -3425,8 +3432,8 @@ const ua = {
3425
3432
  value: b(({ value: p, placeholder: c }) => [
3426
3433
  m("div", Sa, [
3427
3434
  m("span", {
3428
- class: F({ "filter-placeholder": p === null })
3429
- }, k(a(p, c)), 3),
3435
+ class: B({ "filter-placeholder": p === null })
3436
+ }, w(a(p, c)), 3),
3430
3437
  l.showClearButton && t.value !== null ? (r(), f(s, {
3431
3438
  key: 0,
3432
3439
  onClick: G(i, ["prevent"]),
@@ -3434,7 +3441,7 @@ const ua = {
3434
3441
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
3435
3442
  }, {
3436
3443
  default: b(() => [
3437
- x(u(j), {
3444
+ h(u(j), {
3438
3445
  icon: "bi:x",
3439
3446
  width: "1rem",
3440
3447
  height: "1rem",
@@ -3442,24 +3449,24 @@ const ua = {
3442
3449
  })
3443
3450
  ]),
3444
3451
  _: 1
3445
- })) : z("", !0)
3452
+ })) : S("", !0)
3446
3453
  ])
3447
3454
  ]),
3448
3455
  _: 1
3449
- }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (r(), f(u(oe), C({
3456
+ }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (r(), f(u(ne), z({
3450
3457
  key: 3,
3451
3458
  modelValue: t.value,
3452
- "onUpdate:modelValue": n[3] || (n[3] = (p) => t.value = p)
3459
+ "onUpdate:modelValue": o[3] || (o[3] = (p) => t.value = p)
3453
3460
  }, l.$attrs, {
3454
3461
  options: l.dropdownOptions,
3455
3462
  showToggleAll: !1,
3456
3463
  "option-label": l.optionLabel,
3457
3464
  "option-value": l.optionValue,
3458
3465
  filter: ""
3459
- }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(), f(u(ne), C({
3466
+ }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(), f(u(oe), z({
3460
3467
  key: 4,
3461
3468
  modelValue: t.value,
3462
- "onUpdate:modelValue": n[4] || (n[4] = (p) => t.value = p),
3469
+ "onUpdate:modelValue": o[4] || (o[4] = (p) => t.value = p),
3463
3470
  modelModifiers: { trim: !0 }
3464
3471
  }, l.$attrs), null, 16, ["modelValue"])),
3465
3472
  l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (r(), f(s, {
@@ -3469,7 +3476,7 @@ const ua = {
3469
3476
  class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
3470
3477
  }, {
3471
3478
  default: b(() => [
3472
- x(u(j), {
3479
+ h(u(j), {
3473
3480
  icon: "bi:x",
3474
3481
  width: "1rem",
3475
3482
  height: "1rem",
@@ -3477,7 +3484,7 @@ const ua = {
3477
3484
  })
3478
3485
  ]),
3479
3486
  _: 1
3480
- })) : z("", !0)
3487
+ })) : S("", !0)
3481
3488
  ]);
3482
3489
  };
3483
3490
  }
@@ -4548,11 +4555,11 @@ class ye {
4548
4555
  define(t, a = !1) {
4549
4556
  for (let [i, l] of Object.entries(t)) {
4550
4557
  i = i.toLowerCase(), l = l.map((s) => s.toLowerCase()), E(this, R, "f").has(i) || E(this, R, "f").set(i, /* @__PURE__ */ new Set());
4551
- const n = E(this, R, "f").get(i);
4552
- let o = !0;
4558
+ const o = E(this, R, "f").get(i);
4559
+ let n = !0;
4553
4560
  for (let s of l) {
4554
4561
  const p = s.startsWith("*");
4555
- if (s = p ? s.slice(1) : s, n == null || n.add(s), o && E(this, Z, "f").set(i, s), o = !1, p)
4562
+ if (s = p ? s.slice(1) : s, o == null || o.add(s), n && E(this, Z, "f").set(i, s), n = !1, p)
4556
4563
  continue;
4557
4564
  const c = E(this, W, "f").get(s);
4558
4565
  if (c && c != i && !a)
@@ -4593,15 +4600,15 @@ class ye {
4593
4600
  W = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap();
4594
4601
  const Ca = new ye(de, re)._freeze();
4595
4602
  function xe(e, t, a, i) {
4596
- const l = t.flatMap((n) => n.file);
4597
- return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
4598
- const o = l.findIndex((p) => p.name === n.name);
4603
+ const l = t.flatMap((o) => o.file);
4604
+ return t = t.map((o) => ({ ...o, status: o.status == "Duplicate" ? "Not Uploaded" : o.status })), e.forEach((o) => {
4605
+ const n = l.findIndex((p) => p.name === o.name);
4599
4606
  let s = "Not Uploaded";
4600
- o === -1 ? ((!a.includes(n.type) || !(n.size <= i)) && (s = a.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
4601
- file: n,
4607
+ n === -1 ? ((!a.includes(o.type) || !(o.size <= i)) && (s = a.includes(o.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
4608
+ file: o,
4602
4609
  status: s,
4603
4610
  blobFileName: null
4604
- })) : t[o].status = "Duplicate";
4611
+ })) : t[n].status = "Duplicate";
4605
4612
  }), t;
4606
4613
  }
4607
4614
  async function za(e, t) {
@@ -4620,12 +4627,12 @@ function pe(e, t = !0, a = 1) {
4620
4627
  if (Math.abs(e) < i)
4621
4628
  return e + " B";
4622
4629
  const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
4623
- let n = -1;
4624
- const o = 10 ** a;
4630
+ let o = -1;
4631
+ const n = 10 ** a;
4625
4632
  do
4626
- e /= i, ++n;
4627
- while (Math.round(Math.abs(e) * o) / o >= i && n < l.length - 1);
4628
- return e.toFixed(a) + " " + l[n];
4633
+ e /= i, ++o;
4634
+ while (Math.round(Math.abs(e) * n) / n >= i && o < l.length - 1);
4635
+ return e.toFixed(a) + " " + l[o];
4629
4636
  }
4630
4637
  function Ta(e) {
4631
4638
  return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
@@ -4652,30 +4659,30 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4652
4659
  }),
4653
4660
  emits: ["update:modelValue"],
4654
4661
  setup(e) {
4655
- const t = D(e, "modelValue"), a = _(), i = (o) => a.value.toggle(o), l = T(() => e.maxFileInput <= t.value.length), n = (o) => {
4656
- t.value = xe(o, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
4662
+ const t = D(e, "modelValue"), a = _(), i = (n) => a.value.toggle(n), l = T(() => e.maxFileInput <= t.value.length), o = (n) => {
4663
+ t.value = xe(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
4657
4664
  };
4658
- return (o, s) => {
4665
+ return (n, s) => {
4659
4666
  const p = A;
4660
4667
  return r(), v("div", _a, [
4661
- w(o.$slots, "message"),
4668
+ k(n.$slots, "message"),
4662
4669
  m("div", null, [
4663
4670
  m("input", {
4664
4671
  id: "file-input",
4665
4672
  type: "file",
4666
4673
  class: "d-none",
4667
- accept: o.acceptedFileTypes.join(", "),
4674
+ accept: n.acceptedFileTypes.join(", "),
4668
4675
  disabled: l.value,
4669
- multiple: o.maxFileInput > 1,
4670
- onInput: s[0] || (s[0] = (c) => n([...c.target.files]))
4676
+ multiple: n.maxFileInput > 1,
4677
+ onInput: s[0] || (s[0] = (c) => o([...c.target.files]))
4671
4678
  }, null, 40, Pa),
4672
4679
  m("label", {
4673
- class: F([{ disabled: l.value }, "btn btn-primary"]),
4680
+ class: B([{ disabled: l.value }, "btn btn-primary"]),
4674
4681
  id: "file-input-button",
4675
4682
  for: "file-input"
4676
4683
  }, [
4677
- w(o.$slots, "button-content", {}, () => [
4678
- x(u(j), {
4684
+ k(n.$slots, "button-content", {}, () => [
4685
+ h(u(j), {
4679
4686
  icon: "bi:upload",
4680
4687
  class: "me-2",
4681
4688
  height: "20px",
@@ -4685,10 +4692,10 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4685
4692
  ])
4686
4693
  ], 2)
4687
4694
  ]),
4688
- o.showDragDropArea ? (r(), f(p, {
4695
+ n.showDragDropArea ? (r(), f(p, {
4689
4696
  link: "",
4690
4697
  class: "ms-auto",
4691
- key: o.acceptedFileTypes.length,
4698
+ key: n.acceptedFileTypes.length,
4692
4699
  id: "accepted-file-types",
4693
4700
  onClick: i
4694
4701
  }, {
@@ -4696,13 +4703,13 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4696
4703
  I("Accepted File Types")
4697
4704
  ])),
4698
4705
  _: 1
4699
- })) : z("", !0),
4700
- x(u(ve), {
4706
+ })) : S("", !0),
4707
+ h(u(ve), {
4701
4708
  ref_key: "acceptedFilesOverlay",
4702
4709
  ref: a
4703
4710
  }, {
4704
4711
  default: b(() => [
4705
- m("div", Va, k(o.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
4712
+ m("div", Va, w(n.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
4706
4713
  ]),
4707
4714
  _: 1
4708
4715
  }, 512)
@@ -4728,26 +4735,26 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4728
4735
  }),
4729
4736
  emits: ["update:modelValue"],
4730
4737
  setup(e) {
4731
- const t = D(e, "modelValue"), a = _(!1), i = T(() => e.maxFileInput <= t.value.length), l = (n) => {
4732
- a.value = !1, n.dataTransfer.files.length > e.maxFileInput || i.value ? n.preventDefault() : t.value = xe([...n.dataTransfer.files], t.value, e.acceptedFileTypes.map((o) => o.fileType), e.maxFileSize);
4738
+ const t = D(e, "modelValue"), a = _(!1), i = T(() => e.maxFileInput <= t.value.length), l = (o) => {
4739
+ a.value = !1, o.dataTransfer.files.length > e.maxFileInput || i.value ? o.preventDefault() : t.value = xe([...o.dataTransfer.files], t.value, e.acceptedFileTypes.map((n) => n.fileType), e.maxFileSize);
4733
4740
  };
4734
- return (n, o) => (r(), v("div", {
4741
+ return (o, n) => (r(), v("div", {
4735
4742
  id: "drag-drop-area",
4736
- class: F(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
4737
- onDragleave: o[0] || (o[0] = G((s) => a.value = !1, ["prevent"])),
4738
- onDragover: o[1] || (o[1] = G((s) => a.value = !0, ["prevent"])),
4743
+ class: B(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
4744
+ onDragleave: n[0] || (n[0] = G((s) => a.value = !1, ["prevent"])),
4745
+ onDragover: n[1] || (n[1] = G((s) => a.value = !0, ["prevent"])),
4739
4746
  onDrop: G(l, ["prevent"])
4740
4747
  }, [
4741
4748
  t.value.length === 0 ? (r(), v("div", Da, [
4742
- x(u(j), {
4749
+ h(u(j), {
4743
4750
  icon: "bi:upload",
4744
4751
  class: "me-2",
4745
4752
  height: "20px",
4746
4753
  width: "20px"
4747
4754
  }),
4748
- o[2] || (o[2] = I(" Drag and drop files here "))
4755
+ n[2] || (n[2] = I(" Drag and drop files here "))
4749
4756
  ])) : (r(), v("div", Oa, [
4750
- w(n.$slots, "default")
4757
+ k(o.$slots, "default")
4751
4758
  ]))
4752
4759
  ], 34));
4753
4760
  }
@@ -4784,10 +4791,10 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4784
4791
  striped: ""
4785
4792
  }, {
4786
4793
  default: b(() => [
4787
- I(k((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
4794
+ I(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
4788
4795
  ]),
4789
4796
  _: 1
4790
- })) : z("", !0),
4797
+ })) : S("", !0),
4791
4798
  i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (r(), f(se, {
4792
4799
  key: 1,
4793
4800
  id: "upload-status-alert",
@@ -4795,10 +4802,10 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4795
4802
  class: "mb-0 w-75 ms-auto"
4796
4803
  }, {
4797
4804
  default: b(() => [
4798
- I(k(a.value), 1)
4805
+ I(w(a.value), 1)
4799
4806
  ]),
4800
4807
  _: 1
4801
- }, 8, ["severity"])) : z("", !0)
4808
+ }, 8, ["severity"])) : S("", !0)
4802
4809
  ]));
4803
4810
  }
4804
4811
  }), qa = ["data-cy"], Ea = { class: "ms-3 d-flex flex-column" }, La = {
@@ -4829,18 +4836,18 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4829
4836
  }),
4830
4837
  emits: /* @__PURE__ */ U(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
4831
4838
  setup(e, { emit: t }) {
4832
- const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), n = t, o = _(a.value.name), s = _(""), p = _(0), c = _(), g = T(() => e.acceptedFileTypes.some(({ fileType: y }) => y === a.value.type)), d = T(() => a.value.size <= e.maxFileSize), B = T(() => a.value.type ? a.value.type : Ia().getType(a.value.name)), S = () => {
4833
- o.value != null && (V(), a.value = new File([a.value], o.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
4839
+ const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), o = t, n = _(a.value.name), s = _(""), p = _(0), c = _(), g = T(() => e.acceptedFileTypes.some(({ fileType: y }) => y === a.value.type)), d = T(() => a.value.size <= e.maxFileSize), F = T(() => a.value.type ? a.value.type : Ia().getType(a.value.name)), C = () => {
4840
+ n.value != null && (V(), a.value = new File([a.value], n.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
4834
4841
  }, V = () => {
4835
- let y = o.value.split("."), h = Ca.getExtension(B.value), P = o.value.split(".").pop();
4836
- y.length === 1 ? P && P.length > 0 && (o.value = [o.value, h].join(".")) : y.length > 1 && P !== h && (o.value = o.value.replace(P, h));
4842
+ let y = n.value.split("."), x = Ca.getExtension(F.value), P = n.value.split(".").pop();
4843
+ y.length === 1 ? P && P.length > 0 && (n.value = [n.value, x].join(".")) : y.length > 1 && P !== x && (n.value = n.value.replace(P, x));
4837
4844
  }, M = async () => {
4838
4845
  if (!g.value || !d.value) {
4839
4846
  l.value = g.value ? "InvalidFileSize" : "InvalidFileType";
4840
4847
  return;
4841
4848
  }
4842
4849
  l.value = "Preparing", c.value = new AbortController();
4843
- const [y, h] = await e.getFileUrlAction(a.value.name);
4850
+ const [y, x] = await e.getFileUrlAction(a.value.name);
4844
4851
  if (!y) {
4845
4852
  l.value = "Failed";
4846
4853
  return;
@@ -4851,12 +4858,12 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4851
4858
  abortSignal: c.value.signal,
4852
4859
  onProgress: (ae) => p.value = ae.loadedBytes,
4853
4860
  blobHTTPHeaders: {
4854
- blobContentType: B.value,
4861
+ blobContentType: F.value,
4855
4862
  blobContentDisposition: `attachment; filename="${a.value.name}"`
4856
4863
  },
4857
4864
  tags: { temp: "true" }
4858
4865
  };
4859
- await P.uploadData(a.value, L), s.value = y, l.value = "Uploaded", i.value = h;
4866
+ await P.uploadData(a.value, L), s.value = y, l.value = "Uploaded", i.value = x;
4860
4867
  } catch (P) {
4861
4868
  if (P.name === "AbortError") {
4862
4869
  l.value = "Aborted";
@@ -4865,11 +4872,11 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4865
4872
  l.value = "Failed";
4866
4873
  }
4867
4874
  }, q = async () => {
4868
- await za(l.value, s.value), n("deleted", a.value);
4875
+ await za(l.value, s.value), o("deleted", a.value);
4869
4876
  };
4870
4877
  return le(() => {
4871
4878
  e.autoUploadToBlob && M();
4872
- }), (y, h) => {
4879
+ }), (y, x) => {
4873
4880
  const P = A;
4874
4881
  return r(), v("div", {
4875
4882
  class: "py-4 px-3 d-flex",
@@ -4897,15 +4904,15 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4897
4904
  y.editableFileName ? (r(), f(At, {
4898
4905
  key: 0,
4899
4906
  id: "edit-file-name",
4900
- modelValue: o.value,
4901
- "onUpdate:modelValue": h[0] || (h[0] = (L) => o.value = L),
4907
+ modelValue: n.value,
4908
+ "onUpdate:modelValue": x[0] || (x[0] = (L) => n.value = L),
4902
4909
  rules: y.customFileNameRules,
4903
4910
  name: a.value.name,
4904
- "complete-action": S
4905
- }, null, 8, ["modelValue", "rules", "name"])) : (r(), v("span", La, k(o.value), 1))
4911
+ "complete-action": C
4912
+ }, null, 8, ["modelValue", "rules", "name"])) : (r(), v("span", La, w(n.value), 1))
4906
4913
  ]),
4907
- m("span", Ra, "File type: " + k(a.value.type.split("/").pop()), 1),
4908
- m("span", Ha, "File size: " + k(u(pe)(a.value.size)), 1)
4914
+ m("span", Ra, "File type: " + w(a.value.type.split("/").pop()), 1),
4915
+ m("span", Ha, "File size: " + w(u(pe)(a.value.size)), 1)
4909
4916
  ]),
4910
4917
  m("div", Wa, [
4911
4918
  (r(), f(Aa, {
@@ -4921,19 +4928,19 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4921
4928
  onClick: M
4922
4929
  }, {
4923
4930
  default: b(() => [
4924
- x(u(j), {
4931
+ h(u(j), {
4925
4932
  icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
4926
4933
  }, null, 8, ["icon"])
4927
4934
  ]),
4928
4935
  _: 1
4929
- })) : z("", !0),
4936
+ })) : S("", !0),
4930
4937
  l.value === "Uploading" ? (r(), f(P, {
4931
4938
  key: 1,
4932
4939
  link: "",
4933
- onClick: h[1] || (h[1] = (L) => c.value.value.abort())
4940
+ onClick: x[1] || (x[1] = (L) => c.value.value.abort())
4934
4941
  }, {
4935
4942
  default: b(() => [
4936
- x(u(j), { icon: "bi:x-circle-fill" })
4943
+ h(u(j), { icon: "bi:x-circle-fill" })
4937
4944
  ]),
4938
4945
  _: 1
4939
4946
  })) : (r(), f(P, {
@@ -4943,7 +4950,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4943
4950
  id: "delete-button"
4944
4951
  }, {
4945
4952
  default: b(() => [
4946
- x(u(j), { icon: "bi:trash" })
4953
+ h(u(j), { icon: "bi:trash" })
4947
4954
  ]),
4948
4955
  _: 1
4949
4956
  }))
@@ -4951,17 +4958,19 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4951
4958
  ], 8, qa);
4952
4959
  };
4953
4960
  }
4954
- }), Ga = { class: "d-flex justify-content-end mt-1" }, Ja = { id: "max-file-size" }, Ka = /* @__PURE__ */ $({
4955
- __name: "MaxFileSize",
4961
+ }), Ga = { class: "d-flex justify-content-end mt-1 gap-1" }, Ja = { id: "max-file-size" }, Ka = { id: "max-file-input" }, Za = /* @__PURE__ */ $({
4962
+ __name: "FileInputInfo",
4956
4963
  props: {
4957
- maxFileSize: {}
4964
+ maxFileSize: {},
4965
+ maxFileInput: {}
4958
4966
  },
4959
4967
  setup(e) {
4960
4968
  return (t, a) => (r(), v("div", Ga, [
4961
- m("div", Ja, "Max file size: " + k(u(pe)(t.maxFileSize)), 1)
4969
+ m("div", Ja, "Max file size: " + w(u(pe)(t.maxFileSize)), 1),
4970
+ m("div", Ka, "| Max file count: " + w(t.maxFileInput), 1)
4962
4971
  ]));
4963
4972
  }
4964
- }), Za = { "data-cy": "file-uploader" }, Xa = { key: 0 }, al = /* @__PURE__ */ $({
4973
+ }), Xa = { "data-cy": "file-uploader" }, Qa = { key: 0 }, il = /* @__PURE__ */ $({
4965
4974
  __name: "ForgeFileUploader",
4966
4975
  props: /* @__PURE__ */ U({
4967
4976
  acceptedFileTypes: {},
@@ -4979,25 +4988,25 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4979
4988
  emits: ["update:modelValue"],
4980
4989
  setup(e) {
4981
4990
  const t = D(e, "modelValue"), a = e, i = (l) => {
4982
- t.value = t.value.filter((n) => n.file != l);
4991
+ t.value = t.value.filter((o) => o.file != l);
4983
4992
  };
4984
- return (l, n) => (r(), v("div", Za, [
4985
- x(Ma, C(a, {
4993
+ return (l, o) => (r(), v("div", Xa, [
4994
+ h(Ma, z(a, {
4986
4995
  modelValue: t.value,
4987
- "onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o)
4996
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => t.value = n)
4988
4997
  }), null, 16, ["modelValue"]),
4989
- l.showDragDropArea ? (r(), v("div", Xa, [
4990
- x(Na, {
4998
+ l.showDragDropArea ? (r(), v("div", Qa, [
4999
+ h(Na, {
4991
5000
  "max-file-input": a.maxFileInput,
4992
5001
  "max-file-size": a.maxFileSize,
4993
5002
  "accepted-file-types": a.acceptedFileTypes,
4994
5003
  modelValue: t.value,
4995
- "onUpdate:modelValue": n[1] || (n[1] = (o) => t.value = o)
5004
+ "onUpdate:modelValue": o[1] || (o[1] = (n) => t.value = n)
4996
5005
  }, {
4997
5006
  default: b(() => [
4998
- (r(!0), v(O, null, N(t.value, ({ file: o }, s) => (r(), v("span", null, [
4999
- (r(), f(Ya, C({
5000
- key: o.name,
5007
+ (r(!0), v(O, null, N(t.value, ({ file: n }, s) => (r(), v("span", null, [
5008
+ (r(), f(Ya, z({
5009
+ key: n.name,
5001
5010
  class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
5002
5011
  file: t.value[s].file,
5003
5012
  "onUpdate:file": (p) => t.value[s].file = p,
@@ -5011,13 +5020,14 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5011
5020
  ]),
5012
5021
  _: 1
5013
5022
  }, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
5014
- x(Ka, {
5015
- "max-file-size": a.maxFileSize
5016
- }, null, 8, ["max-file-size"])
5017
- ])) : z("", !0)
5023
+ h(Za, {
5024
+ "max-file-size": a.maxFileSize,
5025
+ "max-file-input": l.maxFileInput
5026
+ }, null, 8, ["max-file-size", "max-file-input"])
5027
+ ])) : S("", !0)
5018
5028
  ]));
5019
5029
  }
5020
- }), Qa = { class: "d-flex" }, ei = { class: "me-3" }, ti = { class: "ms-2" }, ai = { class: "d-flex flex-column w-100" }, il = /* @__PURE__ */ $({
5030
+ }), ei = { class: "d-flex" }, ti = { class: "me-3" }, ai = { class: "ms-2" }, ii = { class: "d-flex flex-column w-100" }, ll = /* @__PURE__ */ $({
5021
5031
  __name: "ForgeColumnCustomiser",
5022
5032
  props: {
5023
5033
  modelValue: { required: !0 },
@@ -5025,22 +5035,22 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5025
5035
  },
5026
5036
  emits: ["update:modelValue"],
5027
5037
  setup(e) {
5028
- const t = D(e, "modelValue"), a = _(), i = _(!1), l = (n) => {
5029
- a.value.toggle(n);
5038
+ const t = D(e, "modelValue"), a = _(), i = _(!1), l = (o) => {
5039
+ a.value.toggle(o);
5030
5040
  };
5031
- return (n, o) => (r(), v(O, null, [
5032
- x(u(A), {
5041
+ return (o, n) => (r(), v(O, null, [
5042
+ h(u(A), {
5033
5043
  onClick: l,
5034
5044
  class: "ms-2"
5035
5045
  }, {
5036
5046
  default: b(() => [
5037
- m("div", Qa, [
5038
- m("div", ei, [
5039
- x(u(j), { icon: "bi:layout-three-columns" })
5040
- ]),
5041
- I(" Columns (" + k(t.value.filter((s) => s.selected).length ?? 0) + "/" + k(t.value.length ?? 0) + ") ", 1),
5047
+ m("div", ei, [
5042
5048
  m("div", ti, [
5043
- x(u(j), {
5049
+ h(u(j), { icon: "bi:layout-three-columns" })
5050
+ ]),
5051
+ I(" Columns (" + w(t.value.filter((s) => s.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
5052
+ m("div", ai, [
5053
+ h(u(j), {
5044
5054
  icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
5045
5055
  }, null, 8, ["icon"])
5046
5056
  ])
@@ -5048,24 +5058,24 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5048
5058
  ]),
5049
5059
  _: 1
5050
5060
  }),
5051
- x(u(ve), {
5061
+ h(u(ve), {
5052
5062
  ref_key: "columnCustomiserPanel",
5053
5063
  ref: a,
5054
5064
  class: "column-customiser",
5055
- onHide: o[0] || (o[0] = () => i.value = !1),
5056
- onShow: o[1] || (o[1] = () => i.value = !0)
5065
+ onHide: n[0] || (n[0] = () => i.value = !1),
5066
+ onShow: n[1] || (n[1] = () => i.value = !0)
5057
5067
  }, {
5058
5068
  default: b(() => [
5059
- m("div", ai, [
5069
+ m("div", ii, [
5060
5070
  (r(!0), v(O, null, N(t.value, (s, p) => (r(), v("div", {
5061
- class: F(["d-flex cursor-pointer", {
5071
+ class: B(["d-flex cursor-pointer", {
5062
5072
  "border-top": p !== 0,
5063
5073
  "py-1": p !== 0 && t.value.length - 1 !== p,
5064
5074
  "pt-1": t.value.length - 1 === p,
5065
5075
  "pb-1": p === 0
5066
5076
  }])
5067
5077
  }, [
5068
- x(fe, {
5078
+ h(fe, {
5069
5079
  id: s.field,
5070
5080
  modelValue: s.selected,
5071
5081
  "onUpdate:modelValue": (c) => s.selected = c,
@@ -5080,7 +5090,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5080
5090
  }, 512)
5081
5091
  ], 64));
5082
5092
  }
5083
- }), ll = /* @__PURE__ */ $({
5093
+ }), ol = /* @__PURE__ */ $({
5084
5094
  __name: "ForgePanel",
5085
5095
  setup(e) {
5086
5096
  return (t, a) => {
@@ -5091,21 +5101,21 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5091
5101
  key: 0,
5092
5102
  "data-cy": "message-icon",
5093
5103
  icon: "bi:chevron-down"
5094
- })) : z("", !0),
5095
- l ? z("", !0) : (r(), f(u(j), {
5104
+ })) : S("", !0),
5105
+ l ? S("", !0) : (r(), f(u(j), {
5096
5106
  key: 1,
5097
5107
  "data-cy": "message-icon",
5098
5108
  icon: "bi:chevron-up"
5099
5109
  }))
5100
5110
  ]),
5101
5111
  default: b(() => [
5102
- w(t.$slots, "default")
5112
+ k(t.$slots, "default")
5103
5113
  ]),
5104
5114
  _: 3
5105
5115
  }, 16);
5106
5116
  };
5107
5117
  }
5108
- }), ii = /* @__PURE__ */ $({
5118
+ }), li = /* @__PURE__ */ $({
5109
5119
  __name: "ForgeToggleButton",
5110
5120
  props: {
5111
5121
  severity: { default: "primary" }
@@ -5132,12 +5142,12 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5132
5142
  ]
5133
5143
  })
5134
5144
  }));
5135
- return (i, l) => (r(), f(u(He), C({ ...i.$attrs, ...t }, {
5145
+ return (i, l) => (r(), f(u(He), z({ ...i.$attrs, ...t }, {
5136
5146
  severity: t.severity,
5137
5147
  pt: a.value
5138
5148
  }), null, 16, ["severity", "pt"]));
5139
5149
  }
5140
- }), li = {
5150
+ }), oi = {
5141
5151
  class: "btn-group",
5142
5152
  "data-cy": "forge-select-button"
5143
5153
  }, nl = /* @__PURE__ */ $({
@@ -5153,25 +5163,25 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5153
5163
  }),
5154
5164
  emits: ["update:modelValue"],
5155
5165
  setup(e) {
5156
- const t = e, a = D(e, "modelValue"), i = (n) => {
5157
- var o;
5158
- return t.multiple ? (o = a == null ? void 0 : a.value) == null ? void 0 : o.includes(n.value) : a.value === n.value;
5159
- }, l = (n) => {
5160
- var o;
5161
- if (!n.disabled)
5166
+ const t = e, a = D(e, "modelValue"), i = (o) => {
5167
+ var n;
5168
+ return t.multiple ? (n = a == null ? void 0 : a.value) == null ? void 0 : n.includes(o.value) : a.value === o.value;
5169
+ }, l = (o) => {
5170
+ var n;
5171
+ if (!o.disabled)
5162
5172
  if (t.multiple) {
5163
- let s = (o = a.value) != null && o.length ? [...a.value] : [];
5164
- if (s.length >= 1 && s.includes(n.value)) {
5173
+ let s = (n = a.value) != null && n.length ? [...a.value] : [];
5174
+ if (s.length >= 1 && s.includes(o.value)) {
5165
5175
  if (!t.allowEmpty && s.length === 1) return;
5166
- s = s.length > 1 ? s.filter((c) => c !== n.value) : [];
5176
+ s = s.length > 1 ? s.filter((c) => c !== o.value) : [];
5167
5177
  } else
5168
- s.push(n.value);
5178
+ s.push(o.value);
5169
5179
  a.value = s;
5170
5180
  } else
5171
- a.value = a.value === n.value && t.allowEmpty ? null : n.value;
5181
+ a.value = a.value === o.value && t.allowEmpty ? null : o.value;
5172
5182
  };
5173
- return (n, o) => (r(), v("div", li, [
5174
- (r(!0), v(O, null, N(n.options, (s, p) => (r(), f(ii, {
5183
+ return (o, n) => (r(), v("div", oi, [
5184
+ (r(!0), v(O, null, N(o.options, (s, p) => (r(), f(li, {
5175
5185
  key: p,
5176
5186
  onLabel: s.label,
5177
5187
  offLabel: s.label,
@@ -5180,11 +5190,11 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5180
5190
  defaultValue: i(s),
5181
5191
  disabled: s.disabled,
5182
5192
  "data-cy": `toggle-button-${s.value}`,
5183
- invalid: n.invalid
5193
+ invalid: o.invalid
5184
5194
  }, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
5185
5195
  ]));
5186
5196
  }
5187
- }), ol = () => ({
5197
+ }), sl = () => ({
5188
5198
  type: "component",
5189
5199
  resolve: (e) => {
5190
5200
  if (e.startsWith("Forge"))
@@ -5195,37 +5205,37 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5195
5205
  }
5196
5206
  });
5197
5207
  export {
5198
- Oi as Bootstrap_PT,
5199
- Ni as ForgeActionButton,
5208
+ Ni as Bootstrap_PT,
5209
+ Ui as ForgeActionButton,
5200
5210
  se as ForgeAlert,
5201
- Ui as ForgeAutoComplete,
5211
+ Ai as ForgeAutoComplete,
5202
5212
  fe as ForgeCheckbox,
5203
- Ji as ForgeChip,
5204
- il as ForgeColumnCustomiser,
5213
+ Ki as ForgeChip,
5214
+ ll as ForgeColumnCustomiser,
5205
5215
  be as ForgeDatepicker,
5206
- al as ForgeFileUploader,
5207
- tl as ForgeFilterHeader,
5208
- Yi as ForgeForm,
5209
- Gi as ForgeFormField,
5216
+ il as ForgeFileUploader,
5217
+ al as ForgeFilterHeader,
5218
+ Gi as ForgeForm,
5219
+ Ji as ForgeFormField,
5210
5220
  At as ForgeInlineEditor,
5211
- Ai as ForgeLink,
5221
+ qi as ForgeLink,
5212
5222
  ge as ForgeLoader,
5213
- Li as ForgeModal,
5223
+ Ri as ForgeModal,
5214
5224
  Wt as ForgeMultiSelectPreview,
5215
- Ri as ForgeNavbar,
5216
- Hi as ForgePageHeader,
5217
- ll as ForgePanel,
5225
+ Hi as ForgeNavbar,
5226
+ Wi as ForgePageHeader,
5227
+ ol as ForgePanel,
5218
5228
  la as ForgeProgressBar,
5219
- Wi as ForgeRemainingCharacters,
5220
- ol as ForgeResolver,
5221
- Ki as ForgeScratchpad,
5229
+ Yi as ForgeRemainingCharacters,
5230
+ sl as ForgeResolver,
5231
+ Zi as ForgeScratchpad,
5222
5232
  nl as ForgeSelectButton,
5223
- Zi as ForgeStatWidget,
5224
- Xi as ForgeStepper,
5225
- el as ForgeTable,
5226
- Qi as ForgeTile,
5227
- ii as ForgeToggleButton,
5228
- Ei as convertToMultiSelectOption,
5229
- qi as enumToMultiSelectList,
5233
+ Xi as ForgeStatWidget,
5234
+ Qi as ForgeStepper,
5235
+ tl as ForgeTable,
5236
+ el as ForgeTile,
5237
+ li as ForgeToggleButton,
5238
+ Li as convertToMultiSelectOption,
5239
+ Ei as enumToMultiSelectList,
5230
5240
  It as parseError
5231
5241
  };