@3squared/forge-ui-3 2.10.1 → 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,5 +1,5 @@
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 B, unref as u, createCommentVNode as z, createVNode as x, renderSlot as k, 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 w, withDirectives as H, vShow as Y, createSlots as ie, onMounted as le, isRef as we, withKeys as X, normalizeStyle as ke, withModifiers as G, watch as ce, h as $e, useTemplateRef as Fe } from "vue";
2
+ import { defineComponent as $, 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
5
  import Be from "primevue/toast";
@@ -8,10 +8,10 @@ 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"
@@ -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,7 +1156,7 @@ const We = {
1156
1156
  ...ct,
1157
1157
  ...gt,
1158
1158
  ...bt,
1159
- ...ot,
1159
+ ...nt,
1160
1160
  ...ut,
1161
1161
  ...et,
1162
1162
  ...st,
@@ -1201,11 +1201,11 @@ const We = {
1201
1201
  icon: t.icon,
1202
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
1211
  k(a.$slots, "default")
@@ -1232,22 +1232,22 @@ 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(Be))
1243
+ h(u(Be))
1244
1244
  ], 64);
1245
1245
  };
1246
1246
  }
1247
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
1252
  (r(!0), v(O, null, N(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
1253
1253
  ]),
@@ -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,7 +1317,7 @@ 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)),
1320
+ onClick: c[1] || (c[1] = (d) => n(d, !a.value)),
1321
1321
  class: B([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1322
1322
  }, [
1323
1323
  k(p.$slots, "default", {}, () => [
@@ -1328,7 +1328,7 @@ const We = {
1328
1328
  H(m("small", {
1329
1329
  "data-cy": "error",
1330
1330
  class: "text-invalid"
1331
- }, w(u(n)), 513), [
1331
+ }, w(u(o)), 513), [
1332
1332
  [Y, s.value]
1333
1333
  ])
1334
1334
  ]);
@@ -1344,7 +1344,7 @@ 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
1349
  class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
1350
1350
  }, null, 8, ["class"])
@@ -1397,7 +1397,7 @@ const We = {
1397
1397
  id: "link-icon",
1398
1398
  icon: i.iconName,
1399
1399
  class: B(["bi my-auto", a.value])
1400
- }, null, 8, ["icon", "class"])) : z("", !0),
1400
+ }, null, 8, ["icon", "class"])) : S("", !0),
1401
1401
  I(" " + w(i.label), 1)
1402
1402
  ])
1403
1403
  ], 10, jt));
@@ -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,16 +1501,16 @@ 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
1515
  }, F = T(() => ({
1511
1516
  root: [
@@ -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
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,44 +1549,46 @@ 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: B(o.value.message.length > 0 ? "my-auto" : "mb-0")
1558
- }, w(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 }, w(L), 1))), 128))
1561
- ])) : z("", !0)
1562
- ]),
1563
- _: 1
1564
- })) : z("", !0),
1565
- k(S.$slots, h, J(K(P || {}))),
1566
- n.value ? k(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,
1582
+ h(M, {
1583
+ label: C.cancelText,
1577
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,
1590
+ h(M, {
1591
+ label: C.submitText,
1585
1592
  class: B([l.submitClass, "ms-auto"]),
1586
1593
  onClick: d,
1587
1594
  id: "submit-button",
@@ -1609,10 +1616,10 @@ 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 () => {
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 () => {
1616
1623
  if (F.value)
1617
1624
  return !1;
1618
1625
  if (a.value = d.value, t.completeAction)
@@ -1634,25 +1641,25 @@ const _t = { key: 0 }, Pt = {
1634
1641
  d.value = a.value;
1635
1642
  });
1636
1643
  const F = T(() => g.value.length > 0);
1637
- return (S, V) => {
1638
- const M = ne, q = A;
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
- k(S.$slots, "default", {}, () => [
1649
+ C.readonly ? (r(), v("div", Nt, [
1650
+ k(C.$slots, "default", {}, () => [
1644
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
- k(S.$slots, "editor", {
1656
+ k(C.$slots, "editor", {
1650
1657
  class: B({ "is-invalid": F.value }),
1651
- editFinished: o,
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 },
@@ -1661,12 +1668,12 @@ const _t = { key: 0 }, Pt = {
1661
1668
  ref: l,
1662
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
- k(S.$slots, "default", {}, () => [
1692
+ k(C.$slots, "default", {}, () => [
1686
1693
  m("div", {
1687
1694
  class: B(["pe-2 cursor-pointer", { "text-invalid": F.value }]),
1688
1695
  "data-cy": "value"
1689
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
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
@@ -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({
@@ -1774,7 +1781,7 @@ const _t = { key: 0 }, Pt = {
1774
1781
  ]),
1775
1782
  buttonicon: b(() => [
1776
1783
  k(i.$slots, "buttonIcon", {}, () => [
1777
- x(u(j), {
1784
+ h(u(j), {
1778
1785
  icon: "bi:list",
1779
1786
  class: B(t.severity === "light" ? "text-black" : "text-white"),
1780
1787
  height: "24",
@@ -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
- k(i.$slots, o, J(K(s)))
1797
+ k(i.$slots, n, J(K(s)))
1791
1798
  ])
1792
1799
  }))
1793
1800
  ]), 1040, ["pt"]));
@@ -1816,10 +1823,10 @@ 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
1831
  class: B(l.orientation === "column" ? "row" : ""),
1825
1832
  "data-cy": "multiselect-preview"
@@ -1828,9 +1835,9 @@ const _t = { key: 0 }, Pt = {
1828
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",
@@ -1853,7 +1860,7 @@ const _t = { key: 0 }, Pt = {
1853
1860
  class: "overflow-auto"
1854
1861
  }, [
1855
1862
  m("div", Et, [
1856
- l.title ? (r(), v("div", Lt, w(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"
@@ -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, w(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)
@@ -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;
@@ -2076,31 +2083,31 @@ const _t = { key: 0 }, Pt = {
2076
2083
  })
2077
2084
  }));
2078
2085
  return (d, F) => {
2079
- const S = _e;
2086
+ const C = _e;
2080
2087
  return r(), v(O, null, [
2081
2088
  m("div", Kt, [
2082
2089
  m("span", Zt, [
2083
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
2097
  F[0] || (F[0] = (V) => a.value = V),
2091
- u(n)
2098
+ u(o)
2092
2099
  ],
2093
- onBlur: F[1] || (F[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
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,
@@ -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
- k(n.$slots, "title", {}, () => [
2176
+ o.hideTitle ? S("", !0) : (r(), v(O, { key: 0 }, [
2177
+ k(o.$slots, "title", {}, () => [
2171
2178
  m("h3", {
2172
- class: B(n.titleClass),
2179
+ class: B(o.titleClass),
2173
2180
  "data-cy": "form-title"
2174
- }, w(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
- k(n.$slots, "error", {
2191
+ k(o.$slots, "error", {
2185
2192
  error: i.value.message
2186
2193
  }, () => [
2187
2194
  I(w(i.value.message), 1)
2188
2195
  ])
2189
2196
  ]),
2190
2197
  _: 3
2191
- })) : z("", !0),
2192
- k(n.$slots, "default"),
2198
+ })) : S("", !0),
2199
+ k(o.$slots, "default"),
2193
2200
  m("div", ea, [
2194
- k(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(w(n.cancelText), 1)
2211
+ I(w(o.cancelText), 1)
2205
2212
  ]),
2206
2213
  _: 1
2207
2214
  }))
2208
2215
  ]),
2209
- k(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(w(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
  }
@@ -2252,21 +2259,21 @@ 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 F = 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",
@@ -2277,10 +2284,10 @@ const _t = { key: 0 }, Pt = {
2277
2284
  class: B(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
2278
2285
  }, [
2279
2286
  I(w(a.fieldLabel) + " ", 1),
2280
- g.required ? (r(), v("span", ia, "*")) : z("", !0)
2287
+ g.required ? (r(), v("span", ia, "*")) : S("", !0)
2281
2288
  ], 10, aa),
2282
2289
  k(g.$slots, "default", J(K({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
2283
- a.type === "number" ? (r(), f(u(ue), C({
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(F, 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,42 +2315,42 @@ 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
- }, w(u(o)), 513), [
2353
+ }, w(u(n)), 513), [
2347
2354
  [Y, c.value && a.type !== "multiselect" && a.type !== "datepicker"]
2348
2355
  ])
2349
2356
  ]));
@@ -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) => k(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
- k(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 F = g + c[d] + " ", S = e.measureText(F), 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 = F;
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) {
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) {
2795
2802
  let d, F;
2796
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" }, Zi = /* @__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 = Fe("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();
@@ -2860,12 +2867,12 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
2860
2867
  };
2861
2868
  return (g, d) => {
2862
2869
  const F = A;
2863
- return r(), v("div", oa, [
2864
- x(u(na), C({
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 }, {
@@ -2885,7 +2892,7 @@ 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),
2895
+ })) : S("", !0),
2889
2896
  a.showRedo ? (r(), f(F, {
2890
2897
  key: 1,
2891
2898
  onClick: s,
@@ -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),
2906
+ })) : S("", !0),
2900
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,7 +2914,7 @@ 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),
2917
+ })) : S("", !0),
2911
2918
  a.showSave ? (r(), f(F, {
2912
2919
  key: 3,
2913
2920
  onClick: c,
@@ -2918,7 +2925,7 @@ 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
  };
@@ -2931,7 +2938,7 @@ 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, [
@@ -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, w(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
- k(i.$slots, "step" + n.value)
3021
+ k(i.$slots, "step" + o.value)
3015
3022
  ]),
3016
3023
  _: 2
3017
3024
  }, 1032, ["value"]))), 128))
@@ -3032,9 +3039,9 @@ 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
3046
  class: B(["d-flex w-100 p-0 text-body", a.value]),
3040
3047
  severity: t.severity,
@@ -3044,7 +3051,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
3044
3051
  default: b(() => [
3045
3052
  m("div", pa, [
3046
3053
  k(l.$slots, "default", {}, () => [
3047
- n[0] || (n[0] = I("Tile Content"))
3054
+ o[0] || (o[0] = I("Tile Content"))
3048
3055
  ])
3049
3056
  ])
3050
3057
  ]),
@@ -3056,7 +3063,7 @@ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
3056
3063
  }, [
3057
3064
  m("div", ca, [
3058
3065
  k(l.$slots, "default", {}, () => [
3059
- n[1] || (n[1] = I("Tile Content"))
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,8 +3106,8 @@ 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, w(i.total) + " " + w(u(Q)(i.total, "result")) + " across " + w(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 = {
@@ -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: () => ({
@@ -3233,34 +3240,34 @@ const ua = {
3233
3240
  V(i.filters);
3234
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
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({
@@ -3276,16 +3283,16 @@ const ua = {
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
3297
  m("div", Fa, [
3291
3298
  y.showClearButton ? (r(), f(u(A), {
@@ -3296,15 +3303,15 @@ const ua = {
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: "",
@@ -3312,15 +3319,15 @@ const ua = {
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),
3330
+ })) : S("", !0),
3324
3331
  k(y.$slots, "column-customiser")
3325
3332
  ])
3326
3333
  ])
@@ -3344,11 +3351,11 @@ const ua = {
3344
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"])
@@ -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;
3408
+ return (l, o) => {
3409
+ const n = ue, s = A;
3403
3410
  return r(), v("div", Ba, [
3404
- l.dataType === "numeric" ? (r(), f(o, C({
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,
@@ -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
- k(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
4680
  class: B([{ disabled: l.value }, "btn btn-primary"]),
4674
4681
  id: "file-input-button",
4675
4682
  for: "file-input"
4676
4683
  }, [
4677
- k(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, w(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
4743
  class: B(`${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"])),
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
- k(n.$slots, "default")
4757
+ k(o.$slots, "default")
4751
4758
  ]))
4752
4759
  ], 34));
4753
4760
  }
@@ -4787,7 +4794,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4787
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",
@@ -4798,7 +4805,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4798
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), F = 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(F.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;
@@ -4856,7 +4863,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
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,12 +4904,12 @@ 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, w(o.value), 1))
4911
+ "complete-action": C
4912
+ }, null, 8, ["modelValue", "rules", "name"])) : (r(), v("span", La, w(n.value), 1))
4906
4913
  ]),
4907
4914
  m("span", Ra, "File type: " + w(a.value.type.split("/").pop()), 1),
4908
4915
  m("span", Ha, "File size: " + w(u(pe)(a.value.size)), 1)
@@ -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
  }))
@@ -4981,25 +4988,25 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4981
4988
  emits: ["update:modelValue"],
4982
4989
  setup(e) {
4983
4990
  const t = D(e, "modelValue"), a = e, i = (l) => {
4984
- t.value = t.value.filter((n) => n.file != l);
4991
+ t.value = t.value.filter((o) => o.file != l);
4985
4992
  };
4986
- return (l, n) => (r(), v("div", Xa, [
4987
- x(Ma, C(a, {
4993
+ return (l, o) => (r(), v("div", Xa, [
4994
+ h(Ma, z(a, {
4988
4995
  modelValue: t.value,
4989
- "onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o)
4996
+ "onUpdate:modelValue": o[0] || (o[0] = (n) => t.value = n)
4990
4997
  }), null, 16, ["modelValue"]),
4991
4998
  l.showDragDropArea ? (r(), v("div", Qa, [
4992
- x(Na, {
4999
+ h(Na, {
4993
5000
  "max-file-input": a.maxFileInput,
4994
5001
  "max-file-size": a.maxFileSize,
4995
5002
  "accepted-file-types": a.acceptedFileTypes,
4996
5003
  modelValue: t.value,
4997
- "onUpdate:modelValue": n[1] || (n[1] = (o) => t.value = o)
5004
+ "onUpdate:modelValue": o[1] || (o[1] = (n) => t.value = n)
4998
5005
  }, {
4999
5006
  default: b(() => [
5000
- (r(!0), v(O, null, N(t.value, ({ file: o }, s) => (r(), v("span", null, [
5001
- (r(), f(Ya, C({
5002
- 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,
5003
5010
  class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
5004
5011
  file: t.value[s].file,
5005
5012
  "onUpdate:file": (p) => t.value[s].file = p,
@@ -5013,11 +5020,11 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5013
5020
  ]),
5014
5021
  _: 1
5015
5022
  }, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
5016
- x(Za, {
5023
+ h(Za, {
5017
5024
  "max-file-size": a.maxFileSize,
5018
5025
  "max-file-input": l.maxFileInput
5019
5026
  }, null, 8, ["max-file-size", "max-file-input"])
5020
- ])) : z("", !0)
5027
+ ])) : S("", !0)
5021
5028
  ]));
5022
5029
  }
5023
5030
  }), ei = { class: "d-flex" }, ti = { class: "me-3" }, ai = { class: "ms-2" }, ii = { class: "d-flex flex-column w-100" }, ll = /* @__PURE__ */ $({
@@ -5028,22 +5035,22 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5028
5035
  },
5029
5036
  emits: ["update:modelValue"],
5030
5037
  setup(e) {
5031
- const t = D(e, "modelValue"), a = _(), i = _(!1), l = (n) => {
5032
- a.value.toggle(n);
5038
+ const t = D(e, "modelValue"), a = _(), i = _(!1), l = (o) => {
5039
+ a.value.toggle(o);
5033
5040
  };
5034
- return (n, o) => (r(), v(O, null, [
5035
- x(u(A), {
5041
+ return (o, n) => (r(), v(O, null, [
5042
+ h(u(A), {
5036
5043
  onClick: l,
5037
5044
  class: "ms-2"
5038
5045
  }, {
5039
5046
  default: b(() => [
5040
5047
  m("div", ei, [
5041
5048
  m("div", ti, [
5042
- x(u(j), { icon: "bi:layout-three-columns" })
5049
+ h(u(j), { icon: "bi:layout-three-columns" })
5043
5050
  ]),
5044
5051
  I(" Columns (" + w(t.value.filter((s) => s.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
5045
5052
  m("div", ai, [
5046
- x(u(j), {
5053
+ h(u(j), {
5047
5054
  icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
5048
5055
  }, null, 8, ["icon"])
5049
5056
  ])
@@ -5051,12 +5058,12 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5051
5058
  ]),
5052
5059
  _: 1
5053
5060
  }),
5054
- x(u(ve), {
5061
+ h(u(ve), {
5055
5062
  ref_key: "columnCustomiserPanel",
5056
5063
  ref: a,
5057
5064
  class: "column-customiser",
5058
- onHide: o[0] || (o[0] = () => i.value = !1),
5059
- 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)
5060
5067
  }, {
5061
5068
  default: b(() => [
5062
5069
  m("div", ii, [
@@ -5068,7 +5075,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5068
5075
  "pb-1": p === 0
5069
5076
  }])
5070
5077
  }, [
5071
- x(fe, {
5078
+ h(fe, {
5072
5079
  id: s.field,
5073
5080
  modelValue: s.selected,
5074
5081
  "onUpdate:modelValue": (c) => s.selected = c,
@@ -5083,7 +5090,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5083
5090
  }, 512)
5084
5091
  ], 64));
5085
5092
  }
5086
- }), nl = /* @__PURE__ */ $({
5093
+ }), ol = /* @__PURE__ */ $({
5087
5094
  __name: "ForgePanel",
5088
5095
  setup(e) {
5089
5096
  return (t, a) => {
@@ -5094,8 +5101,8 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5094
5101
  key: 0,
5095
5102
  "data-cy": "message-icon",
5096
5103
  icon: "bi:chevron-down"
5097
- })) : z("", !0),
5098
- l ? z("", !0) : (r(), f(u(j), {
5104
+ })) : S("", !0),
5105
+ l ? S("", !0) : (r(), f(u(j), {
5099
5106
  key: 1,
5100
5107
  "data-cy": "message-icon",
5101
5108
  icon: "bi:chevron-up"
@@ -5135,15 +5142,15 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5135
5142
  ]
5136
5143
  })
5137
5144
  }));
5138
- return (i, l) => (r(), f(u(He), C({ ...i.$attrs, ...t }, {
5145
+ return (i, l) => (r(), f(u(He), z({ ...i.$attrs, ...t }, {
5139
5146
  severity: t.severity,
5140
5147
  pt: a.value
5141
5148
  }), null, 16, ["severity", "pt"]));
5142
5149
  }
5143
- }), ni = {
5150
+ }), oi = {
5144
5151
  class: "btn-group",
5145
5152
  "data-cy": "forge-select-button"
5146
- }, ol = /* @__PURE__ */ $({
5153
+ }, nl = /* @__PURE__ */ $({
5147
5154
  __name: "ForgeSelectButton",
5148
5155
  props: /* @__PURE__ */ U({
5149
5156
  options: {},
@@ -5156,25 +5163,25 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5156
5163
  }),
5157
5164
  emits: ["update:modelValue"],
5158
5165
  setup(e) {
5159
- const t = e, a = D(e, "modelValue"), i = (n) => {
5160
- var o;
5161
- return t.multiple ? (o = a == null ? void 0 : a.value) == null ? void 0 : o.includes(n.value) : a.value === n.value;
5162
- }, l = (n) => {
5163
- var o;
5164
- 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)
5165
5172
  if (t.multiple) {
5166
- let s = (o = a.value) != null && o.length ? [...a.value] : [];
5167
- 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)) {
5168
5175
  if (!t.allowEmpty && s.length === 1) return;
5169
- s = s.length > 1 ? s.filter((c) => c !== n.value) : [];
5176
+ s = s.length > 1 ? s.filter((c) => c !== o.value) : [];
5170
5177
  } else
5171
- s.push(n.value);
5178
+ s.push(o.value);
5172
5179
  a.value = s;
5173
5180
  } else
5174
- a.value = a.value === n.value && t.allowEmpty ? null : n.value;
5181
+ a.value = a.value === o.value && t.allowEmpty ? null : o.value;
5175
5182
  };
5176
- return (n, o) => (r(), v("div", ni, [
5177
- (r(!0), v(O, null, N(n.options, (s, p) => (r(), f(li, {
5183
+ return (o, n) => (r(), v("div", oi, [
5184
+ (r(!0), v(O, null, N(o.options, (s, p) => (r(), f(li, {
5178
5185
  key: p,
5179
5186
  onLabel: s.label,
5180
5187
  offLabel: s.label,
@@ -5183,7 +5190,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5183
5190
  defaultValue: i(s),
5184
5191
  disabled: s.disabled,
5185
5192
  "data-cy": `toggle-button-${s.value}`,
5186
- invalid: n.invalid
5193
+ invalid: o.invalid
5187
5194
  }, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
5188
5195
  ]));
5189
5196
  }
@@ -5217,12 +5224,12 @@ export {
5217
5224
  Wt as ForgeMultiSelectPreview,
5218
5225
  Hi as ForgeNavbar,
5219
5226
  Wi as ForgePageHeader,
5220
- nl as ForgePanel,
5227
+ ol as ForgePanel,
5221
5228
  la as ForgeProgressBar,
5222
5229
  Yi as ForgeRemainingCharacters,
5223
5230
  sl as ForgeResolver,
5224
5231
  Zi as ForgeScratchpad,
5225
- ol as ForgeSelectButton,
5232
+ nl as ForgeSelectButton,
5226
5233
  Xi as ForgeStatWidget,
5227
5234
  Qi as ForgeStepper,
5228
5235
  tl as ForgeTable,