@3squared/forge-ui-3 2.9.0 → 2.10.1

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 v, normalizeProps as K, guardReactiveProps as Z, withCtx as g, createElementVNode as m, normalizeClass as B, unref as u, createCommentVNode as z, createVNode as x, renderSlot as k, ref as I, createElementBlock as f, Fragment as O, mergeProps as C, renderList as U, mergeModels as N, useModel as D, computed as T, createTextVNode as _, toDisplayString as w, withDirectives as H, vShow as Y, createSlots as ie, onMounted as le, isRef as we, withKeys as X, normalizeStyle as ke, withModifiers as G, watch as ce, h as $e, useTemplateRef as Fe } from "vue";
2
+ import { defineComponent as $, 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";
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 oe from "primevue/inputtext";
11
+ import ne from "primevue/inputtext";
12
12
  import { vOnClickOutside as je } from "@vueuse/components";
13
13
  import Ie from "primevue/menubar";
14
- import ne from "primevue/multiselect";
14
+ import oe 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
- }, ot = {
466
+ }, nt = {
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
- }, nt = {
495
+ }, ot = {
496
496
  // More PT options defined in ForgeStepper.
497
497
  stepList: {
498
498
  root: "d-flex mb-2 w-100"
@@ -881,6 +881,7 @@ const We = {
881
881
  "btn",
882
882
  {
883
883
  "btn-primary": e.context.active,
884
+ "border-danger": e.parent.props.invalid,
884
885
  "btn-outline-primary": !e.context.active
885
886
  }
886
887
  ]
@@ -1130,7 +1131,7 @@ const We = {
1130
1131
  accordionContent: {
1131
1132
  root: "mt-2 mx-4 mb-4"
1132
1133
  }
1133
- }, Di = {
1134
+ }, Ni = {
1134
1135
  ...We,
1135
1136
  ...mt,
1136
1137
  ...Ye,
@@ -1146,7 +1147,7 @@ const We = {
1146
1147
  ...Ze,
1147
1148
  ...Xe,
1148
1149
  ...Qe,
1149
- ...ot,
1150
+ ...nt,
1150
1151
  ...dt,
1151
1152
  ...vt,
1152
1153
  ...lt,
@@ -1155,7 +1156,7 @@ const We = {
1155
1156
  ...ct,
1156
1157
  ...gt,
1157
1158
  ...bt,
1158
- ...nt,
1159
+ ...ot,
1159
1160
  ...ut,
1160
1161
  ...et,
1161
1162
  ...st,
@@ -1189,12 +1190,12 @@ const We = {
1189
1190
  const t = e;
1190
1191
  return (a, i) => {
1191
1192
  const l = he;
1192
- return r(), v(l, K(Z({ ...a.$attrs, ...t })), {
1193
- icon: g(() => [
1193
+ return r(), f(l, J(K({ ...a.$attrs, ...t })), {
1194
+ icon: b(() => [
1194
1195
  m("div", {
1195
1196
  class: B(t.icon ? "me-2 pe-1" : "")
1196
1197
  }, [
1197
- t.icon ? (r(), v(u(j), {
1198
+ t.icon ? (r(), f(u(j), {
1198
1199
  key: 0,
1199
1200
  "data-cy": "message-icon",
1200
1201
  icon: t.icon,
@@ -1203,17 +1204,17 @@ const We = {
1203
1204
  }, null, 8, ["icon", "class"])) : z("", !0)
1204
1205
  ], 2)
1205
1206
  ]),
1206
- closeicon: g(() => [
1207
+ closeicon: b(() => [
1207
1208
  x(u(j), { icon: "bi:x" })
1208
1209
  ]),
1209
- default: g(() => [
1210
+ default: b(() => [
1210
1211
  k(a.$slots, "default")
1211
1212
  ]),
1212
1213
  _: 3
1213
1214
  }, 16);
1214
1215
  };
1215
1216
  }
1216
- }), Oi = /* @__PURE__ */ $({
1217
+ }), Ui = /* @__PURE__ */ $({
1217
1218
  __name: "ForgeActionButton",
1218
1219
  props: {
1219
1220
  action: {},
@@ -1222,7 +1223,7 @@ const We = {
1222
1223
  params: { default: Array }
1223
1224
  },
1224
1225
  setup(e) {
1225
- const t = I(!1), a = e, i = async () => {
1226
+ const t = _(!1), a = e, i = async () => {
1226
1227
  t.value = !0;
1227
1228
  try {
1228
1229
  await a.action.apply(this, a.params);
@@ -1233,7 +1234,7 @@ const We = {
1233
1234
  };
1234
1235
  return (l, n) => {
1235
1236
  const o = A;
1236
- return r(), f(O, null, [
1237
+ return r(), v(O, null, [
1237
1238
  x(o, C({ ...a, ...l.$attrs }, {
1238
1239
  loading: t.value,
1239
1240
  disabled: t.value || a.disabled,
@@ -1243,19 +1244,19 @@ const We = {
1243
1244
  ], 64);
1244
1245
  };
1245
1246
  }
1246
- }), Ni = /* @__PURE__ */ $({
1247
+ }), Ai = /* @__PURE__ */ $({
1247
1248
  __name: "ForgeAutoComplete",
1248
1249
  setup(e) {
1249
- return (t, a) => (r(), v(u(Se), C({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
1250
- default: g(() => [
1251
- (r(!0), f(O, null, U(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
1250
+ return (t, a) => (r(), f(u(Se), C({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
1251
+ default: b(() => [
1252
+ (r(!0), v(O, null, N(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
1252
1253
  ]),
1253
1254
  _: 3
1254
1255
  }, 16));
1255
1256
  }
1256
1257
  }), Ct = { class: "d-flex flex-column" }, zt = ["for"], fe = /* @__PURE__ */ $({
1257
1258
  __name: "ForgeCheckbox",
1258
- props: /* @__PURE__ */ N({
1259
+ props: /* @__PURE__ */ U({
1259
1260
  label: { default: "" },
1260
1261
  value: {},
1261
1262
  modelValue: {},
@@ -1299,14 +1300,14 @@ const We = {
1299
1300
  (t.disabled || t.readonly) && p.preventDefault(), t.name ? i(c) : a.value = c;
1300
1301
  }, s = T(() => l.value.length > 0);
1301
1302
  return (p, c) => {
1302
- const b = Ce;
1303
- return r(), f("div", Ct, [
1303
+ const g = Ce;
1304
+ return r(), v("div", Ct, [
1304
1305
  m("div", C({
1305
1306
  class: "d-flex",
1306
1307
  "data-cy": "checkbox-container",
1307
1308
  onClick: c[2] || (c[2] = (d) => o(d, a.value))
1308
1309
  }, { ...p.$attrs }), [
1309
- x(b, C({ ...t }, {
1310
+ x(g, C({ ...t }, {
1310
1311
  binary: "",
1311
1312
  modelValue: a.value,
1312
1313
  "onUpdate:modelValue": c[0] || (c[0] = (d) => a.value = d),
@@ -1320,7 +1321,7 @@ const We = {
1320
1321
  class: B([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1321
1322
  }, [
1322
1323
  k(p.$slots, "default", {}, () => [
1323
- _(w(t.label), 1)
1324
+ I(w(t.label), 1)
1324
1325
  ])
1325
1326
  ], 10, zt)
1326
1327
  ], 16),
@@ -1342,7 +1343,7 @@ const We = {
1342
1343
  const t = e;
1343
1344
  return (a, i) => {
1344
1345
  const l = ze;
1345
- return r(), f("div", Tt, [
1346
+ return r(), v("div", Tt, [
1346
1347
  x(l, {
1347
1348
  "animation-duration": ".75",
1348
1349
  class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
@@ -1350,7 +1351,7 @@ const We = {
1350
1351
  ]);
1351
1352
  };
1352
1353
  }
1353
- }), jt = ["href", "target"], Ui = /* @__PURE__ */ $({
1354
+ }), jt = ["href", "target"], qi = /* @__PURE__ */ $({
1354
1355
  __name: "ForgeLink",
1355
1356
  props: {
1356
1357
  url: {},
@@ -1384,20 +1385,20 @@ const We = {
1384
1385
  "ms-0": e.positionIconEnd && e.animateIconOnHover,
1385
1386
  "me-0": e.animateIconOnHover
1386
1387
  }));
1387
- return (i, l) => (r(), f("a", {
1388
+ return (i, l) => (r(), v("a", {
1388
1389
  id: "link",
1389
1390
  class: B(["cursor-pointer d-flex text-break", t.value]),
1390
1391
  href: i.url,
1391
1392
  target: i.target
1392
1393
  }, [
1393
1394
  k(i.$slots, "default", {}, () => [
1394
- i.iconName ? (r(), v(u(j), {
1395
+ i.iconName ? (r(), f(u(j), {
1395
1396
  key: 0,
1396
1397
  id: "link-icon",
1397
1398
  icon: i.iconName,
1398
1399
  class: B(["bi my-auto", a.value])
1399
1400
  }, null, 8, ["icon", "class"])) : z("", !0),
1400
- _(" " + w(i.label), 1)
1401
+ I(" " + w(i.label), 1)
1401
1402
  ])
1402
1403
  ], 10, jt));
1403
1404
  }
@@ -1413,18 +1414,18 @@ function It(e) {
1413
1414
  }
1414
1415
  return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
1415
1416
  }
1416
- function Ai(e, t) {
1417
+ function Ei(e, t) {
1417
1418
  return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
1418
1419
  }
1419
- function qi(e, t, a) {
1420
+ function Li(e, t, a) {
1420
1421
  return { id: e, label: t ?? e.toString(), shortLabel: a };
1421
1422
  }
1422
1423
  const _t = { key: 0 }, Pt = {
1423
1424
  class: "d-flex w-100",
1424
1425
  "data-cy": "footer"
1425
- }, Ei = /* @__PURE__ */ $({
1426
+ }, Ri = /* @__PURE__ */ $({
1426
1427
  __name: "ForgeModal",
1427
- props: /* @__PURE__ */ N({
1428
+ props: /* @__PURE__ */ U({
1428
1429
  cancelText: { default: "Cancel" },
1429
1430
  submitText: { default: "Submit" },
1430
1431
  showFooter: { type: Boolean, default: !0 },
@@ -1473,7 +1474,7 @@ const _t = { key: 0 }, Pt = {
1473
1474
  }),
1474
1475
  emits: ["update:visible"],
1475
1476
  setup(e, { expose: t }) {
1476
- const a = D(e, "visible"), i = I(!1), l = e, n = I(!1), o = I({
1477
+ const a = D(e, "visible"), i = _(!1), l = e, n = _(!1), o = _({
1477
1478
  hasError: !1,
1478
1479
  header: "",
1479
1480
  message: []
@@ -1491,14 +1492,14 @@ const _t = { key: 0 }, Pt = {
1491
1492
  i.value = !1;
1492
1493
  }, c = () => {
1493
1494
  i.value = !0;
1494
- }, b = () => {
1495
+ }, g = () => {
1495
1496
  l.resetErrorOnClose && s(), a.value = !1;
1496
1497
  }, d = async () => {
1497
1498
  if (l.onConfirm) {
1498
1499
  n.value = !0, o.value.hasError = !1;
1499
1500
  try {
1500
1501
  const S = await l.onConfirm();
1501
- (S || S == null) && b();
1502
+ (S || S == null) && g();
1502
1503
  } catch (S) {
1503
1504
  o.value.hasError = !0;
1504
1505
  const V = It(S);
@@ -1519,21 +1520,21 @@ const _t = { key: 0 }, Pt = {
1519
1520
  }));
1520
1521
  return (S, V) => {
1521
1522
  const M = A, q = Te;
1522
- return r(), v(q, C(l, {
1523
+ return r(), f(q, C(l, {
1523
1524
  onMaximize: c,
1524
1525
  onUnmaximize: p,
1525
1526
  pt: F.value
1526
1527
  }), ie({
1527
- closeicon: g(() => [
1528
+ closeicon: b(() => [
1528
1529
  x(u(j), {
1529
1530
  "data-cy": "close-icon",
1530
1531
  icon: "bi:x-lg",
1531
1532
  width: "18",
1532
1533
  height: "18",
1533
- onClick: b
1534
+ onClick: g
1534
1535
  })
1535
1536
  ]),
1536
- maximizeicon: g(() => [
1537
+ maximizeicon: b(() => [
1537
1538
  x(u(j), {
1538
1539
  "data-cy": "maximisable-icon",
1539
1540
  icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
@@ -1543,25 +1544,25 @@ const _t = { key: 0 }, Pt = {
1543
1544
  ]),
1544
1545
  _: 2
1545
1546
  }, [
1546
- U(S.$slots, (y, h) => ({
1547
+ N(S.$slots, (y, h) => ({
1547
1548
  name: h,
1548
- fn: g((P) => [
1549
- o.value.hasError ? (r(), v(se, {
1549
+ fn: b((P) => [
1550
+ o.value.hasError ? (r(), f(se, {
1550
1551
  key: 0,
1551
1552
  severity: "danger",
1552
1553
  "data-cy": "error"
1553
1554
  }, {
1554
- default: g(() => [
1555
+ default: b(() => [
1555
1556
  m("p", {
1556
1557
  class: B(o.value.message.length > 0 ? "my-auto" : "mb-0")
1557
1558
  }, w(o.value.header), 3),
1558
- o.value.message.length > 0 ? (r(), f("ul", _t, [
1559
- (r(!0), f(O, null, U(o.value.message, (L) => (r(), f("li", { key: L }, w(L), 1))), 128))
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))
1560
1561
  ])) : z("", !0)
1561
1562
  ]),
1562
1563
  _: 1
1563
1564
  })) : z("", !0),
1564
- k(S.$slots, h, K(Z(P || {}))),
1565
+ k(S.$slots, h, J(K(P || {}))),
1565
1566
  n.value ? k(S.$slots, "loader", { key: 1 }, () => [
1566
1567
  x(ge, { "data-cy": "loader" })
1567
1568
  ]) : z("", !0)
@@ -1569,13 +1570,13 @@ const _t = { key: 0 }, Pt = {
1569
1570
  })),
1570
1571
  S.showFooter ? {
1571
1572
  name: "footer",
1572
- fn: g(() => [
1573
+ fn: b(() => [
1573
1574
  m("div", Pt, [
1574
1575
  x(M, {
1575
1576
  label: S.cancelText,
1576
1577
  class: B(l.cancelClass),
1577
1578
  outlined: "",
1578
- onClick: b,
1579
+ onClick: g,
1579
1580
  id: "cancel-button",
1580
1581
  type: l.cancelButtonType
1581
1582
  }, null, 8, ["label", "class", "type"]),
@@ -1595,7 +1596,7 @@ const _t = { key: 0 }, Pt = {
1595
1596
  }
1596
1597
  }), Vt = ["id"], Mt = { key: 0 }, Dt = { key: 0 }, Ot = { class: "d-flex justify-content-between align-items-center position-relative" }, Nt = { key: 1 }, Ut = { "data-cy": "readonly-value" }, At = /* @__PURE__ */ $({
1597
1598
  __name: "ForgeInlineEditor",
1598
- props: /* @__PURE__ */ N({
1599
+ props: /* @__PURE__ */ U({
1599
1600
  name: { default: "" },
1600
1601
  completeAction: {},
1601
1602
  errorAction: {},
@@ -1608,7 +1609,7 @@ const _t = { key: 0 }, Pt = {
1608
1609
  }),
1609
1610
  emits: ["update:modelValue"],
1610
1611
  setup(e) {
1611
- const t = e, a = D(e, "modelValue"), i = I(!1), l = I(), n = () => {
1612
+ const t = e, a = D(e, "modelValue"), i = _(!1), l = _(), n = () => {
1612
1613
  var S;
1613
1614
  i.value = !i.value, (S = l.value) == null || S.focus();
1614
1615
  }, o = async () => {
@@ -1626,25 +1627,25 @@ const _t = { key: 0 }, Pt = {
1626
1627
  i.value = !i.value;
1627
1628
  }, p = () => {
1628
1629
  d.value = null;
1629
- }, { errorMessage: c, errors: b, value: d } = ee(() => t.name, void 0, {
1630
+ }, { errorMessage: c, errors: g, value: d } = ee(() => t.name, void 0, {
1630
1631
  initialValue: a.value
1631
1632
  });
1632
1633
  le(() => {
1633
1634
  d.value = a.value;
1634
1635
  });
1635
- const F = T(() => b.value.length > 0);
1636
+ const F = T(() => g.value.length > 0);
1636
1637
  return (S, V) => {
1637
- const M = oe, q = A;
1638
- return r(), f("div", {
1638
+ const M = ne, q = A;
1639
+ return r(), v("div", {
1639
1640
  id: t.name
1640
1641
  }, [
1641
- S.readonly ? (r(), f("div", Nt, [
1642
+ S.readonly ? (r(), v("div", Nt, [
1642
1643
  k(S.$slots, "default", {}, () => [
1643
1644
  m("span", Ut, w(u(d)), 1)
1644
1645
  ])
1645
- ])) : (r(), f("div", Mt, [
1646
- i.value ? (r(), f("div", Dt, [
1647
- H((r(), f("div", Ot, [
1646
+ ])) : (r(), v("div", Mt, [
1647
+ i.value ? (r(), v("div", Dt, [
1648
+ H((r(), v("div", Ot, [
1648
1649
  k(S.$slots, "editor", {
1649
1650
  class: B({ "is-invalid": F.value }),
1650
1651
  editFinished: o,
@@ -1675,7 +1676,7 @@ const _t = { key: 0 }, Pt = {
1675
1676
  ])), [
1676
1677
  [u(je), o]
1677
1678
  ])
1678
- ])) : (r(), f("div", {
1679
+ ])) : (r(), v("div", {
1679
1680
  key: 1,
1680
1681
  class: "d-flex text-muted",
1681
1682
  onClick: n,
@@ -1691,7 +1692,7 @@ const _t = { key: 0 }, Pt = {
1691
1692
  link: "",
1692
1693
  class: "p-0 m-0"
1693
1694
  }, {
1694
- default: g(() => [
1695
+ default: b(() => [
1695
1696
  x(u(j), {
1696
1697
  icon: "bi:pencil",
1697
1698
  class: B(F.value ? "text-invalid" : "text-muted"),
@@ -1712,7 +1713,7 @@ const _t = { key: 0 }, Pt = {
1712
1713
  ], 8, Vt);
1713
1714
  };
1714
1715
  }
1715
- }), qt = ["href"], Li = /* @__PURE__ */ $({
1716
+ }), qt = ["href"], Hi = /* @__PURE__ */ $({
1716
1717
  __name: "ForgeNavbar",
1717
1718
  props: {
1718
1719
  severity: { default: "light" },
@@ -1756,22 +1757,22 @@ const _t = { key: 0 }, Pt = {
1756
1757
  ]
1757
1758
  })
1758
1759
  }));
1759
- return (i, l) => (r(), v(u(Ie), C({ ...t, ...i.$attrs }, {
1760
+ return (i, l) => (r(), f(u(Ie), C({ ...t, ...i.$attrs }, {
1760
1761
  pt: a.value,
1761
1762
  "data-cy": "navbar"
1762
1763
  }), ie({
1763
- start: g(() => [
1764
+ start: b(() => [
1764
1765
  m("a", {
1765
1766
  href: i.logoUrl,
1766
1767
  class: "navbar-brand ms-3",
1767
1768
  "data-cy": "logo"
1768
1769
  }, [
1769
1770
  k(i.$slots, "logo", {}, () => [
1770
- l[0] || (l[0] = _(" Logo "))
1771
+ l[0] || (l[0] = I(" Logo "))
1771
1772
  ])
1772
1773
  ], 8, qt)
1773
1774
  ]),
1774
- buttonicon: g(() => [
1775
+ buttonicon: b(() => [
1775
1776
  k(i.$slots, "buttonIcon", {}, () => [
1776
1777
  x(u(j), {
1777
1778
  icon: "bi:list",
@@ -1783,10 +1784,10 @@ const _t = { key: 0 }, Pt = {
1783
1784
  ]),
1784
1785
  _: 2
1785
1786
  }, [
1786
- U(i.$slots, (n, o) => ({
1787
+ N(i.$slots, (n, o) => ({
1787
1788
  name: o,
1788
- fn: g((s) => [
1789
- k(i.$slots, o, K(Z(s)))
1789
+ fn: b((s) => [
1790
+ k(i.$slots, o, J(K(s)))
1790
1791
  ])
1791
1792
  }))
1792
1793
  ]), 1040, ["pt"]));
@@ -1800,7 +1801,7 @@ const _t = { key: 0 }, Pt = {
1800
1801
  class: "p-2 item d-flex justify-content-between align-items-center"
1801
1802
  }, Wt = /* @__PURE__ */ $({
1802
1803
  __name: "ForgeMultiSelectPreview",
1803
- props: /* @__PURE__ */ N({
1804
+ props: /* @__PURE__ */ U({
1804
1805
  title: { default: "Selected Items" },
1805
1806
  orientation: { default: "row" },
1806
1807
  height: { default: "200px" },
@@ -1818,8 +1819,8 @@ const _t = { key: 0 }, Pt = {
1818
1819
  a.value = a.value.filter((n) => n.id !== l);
1819
1820
  };
1820
1821
  return (l, n) => {
1821
- const o = ne, s = A;
1822
- return r(), f("div", {
1822
+ const o = oe, s = A;
1823
+ return r(), v("div", {
1823
1824
  class: B(l.orientation === "column" ? "row" : ""),
1824
1825
  "data-cy": "multiselect-preview"
1825
1826
  }, [
@@ -1836,8 +1837,8 @@ const _t = { key: 0 }, Pt = {
1836
1837
  placeholder: l.multiselectPlaceholder,
1837
1838
  "data-cy": "multiselect"
1838
1839
  }), {
1839
- default: g(() => [
1840
- (r(!0), f(O, null, U(l.$slots, (p, c) => k(l.$slots, c, { slot: c })), 256))
1840
+ default: b(() => [
1841
+ (r(!0), v(O, null, N(l.$slots, (p, c) => k(l.$slots, c, { slot: c })), 256))
1841
1842
  ]),
1842
1843
  _: 3
1843
1844
  }, 16, ["modelValue", "options", "placeholder"]),
@@ -1852,21 +1853,21 @@ const _t = { key: 0 }, Pt = {
1852
1853
  class: "overflow-auto"
1853
1854
  }, [
1854
1855
  m("div", Et, [
1855
- l.title ? (r(), f("div", Lt, w(l.title), 1)) : z("", !0),
1856
- (r(!0), f(O, null, U(a.value, (p) => (r(), f("div", {
1856
+ l.title ? (r(), v("div", Lt, w(l.title), 1)) : z("", !0),
1857
+ (r(!0), v(O, null, N(a.value, (p) => (r(), v("div", {
1857
1858
  key: p.id,
1858
1859
  class: "p-2 item d-flex justify-content-between align-items-center"
1859
1860
  }, [
1860
1861
  k(l.$slots, "list-item", { item: p }, () => [
1861
1862
  m("span", Rt, w(p.shortLabel ? p.shortLabel : p.label), 1)
1862
1863
  ]),
1863
- l.canRemoveItemFromPreview ? (r(), v(s, {
1864
+ l.canRemoveItemFromPreview ? (r(), f(s, {
1864
1865
  key: 0,
1865
1866
  link: "",
1866
1867
  class: "m-0 p-0 d-flex align-items-center",
1867
1868
  onClick: (c) => i(p.id)
1868
1869
  }, {
1869
- default: g(() => [
1870
+ default: b(() => [
1870
1871
  x(u(j), {
1871
1872
  icon: "bi:x",
1872
1873
  class: "close-icon",
@@ -1876,7 +1877,7 @@ const _t = { key: 0 }, Pt = {
1876
1877
  _: 2
1877
1878
  }, 1032, ["onClick"])) : z("", !0)
1878
1879
  ]))), 128)),
1879
- a.value == null || a.value.length == 0 ? (r(), f("div", Ht, w(t.optionsPreviewEmptyText), 1)) : z("", !0)
1880
+ a.value == null || a.value.length == 0 ? (r(), v("div", Ht, w(t.optionsPreviewEmptyText), 1)) : z("", !0)
1880
1881
  ])
1881
1882
  ], 4)
1882
1883
  ], 2)
@@ -1889,14 +1890,14 @@ const _t = { key: 0 }, Pt = {
1889
1890
  }, Jt = {
1890
1891
  "data-cy": "slot",
1891
1892
  class: "d-flex align-items-center"
1892
- }, Ri = /* @__PURE__ */ $({
1893
+ }, Wi = /* @__PURE__ */ $({
1893
1894
  __name: "ForgePageHeader",
1894
1895
  props: {
1895
1896
  title: {}
1896
1897
  },
1897
1898
  setup(e) {
1898
1899
  const t = e;
1899
- return (a, i) => (r(), f("div", Yt, [
1900
+ return (a, i) => (r(), v("div", Yt, [
1900
1901
  m("h3", Gt, w(t.title), 1),
1901
1902
  m("div", Jt, [
1902
1903
  k(a.$slots, "default")
@@ -1905,7 +1906,7 @@ const _t = { key: 0 }, Pt = {
1905
1906
  }
1906
1907
  }), Kt = { class: "d-flex" }, Zt = { "data-cy": "before-slot" }, Xt = { class: "position-relative w-100" }, Qt = { "data-cy": "after-slot" }, be = /* @__PURE__ */ $({
1907
1908
  __name: "ForgeDatepicker",
1908
- props: /* @__PURE__ */ N({
1909
+ props: /* @__PURE__ */ U({
1909
1910
  severity: { default: "primary" },
1910
1911
  modelValue: {},
1911
1912
  defaultValue: {},
@@ -1983,7 +1984,7 @@ const _t = { key: 0 }, Pt = {
1983
1984
  initialValue: a.value
1984
1985
  }), p = () => {
1985
1986
  s(null), a.value = null;
1986
- }, c = T(() => i.value.length > 0), b = T(() => ({
1987
+ }, c = T(() => i.value.length > 0), g = T(() => ({
1987
1988
  dayCell: ({ context: d }) => ({
1988
1989
  class: [
1989
1990
  `text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
@@ -2076,14 +2077,14 @@ const _t = { key: 0 }, Pt = {
2076
2077
  }));
2077
2078
  return (d, F) => {
2078
2079
  const S = _e;
2079
- return r(), f(O, null, [
2080
+ return r(), v(O, null, [
2080
2081
  m("div", Kt, [
2081
2082
  m("span", Zt, [
2082
2083
  k(d.$slots, "before")
2083
2084
  ]),
2084
2085
  m("div", Xt, [
2085
2086
  x(S, C({ ...t, ...d.$attrs }, {
2086
- pt: b.value,
2087
+ pt: g.value,
2087
2088
  modelValue: a.value,
2088
2089
  "onUpdate:modelValue": [
2089
2090
  F[0] || (F[0] = (V) => a.value = V),
@@ -2121,7 +2122,7 @@ const _t = { key: 0 }, Pt = {
2121
2122
  ], 64);
2122
2123
  };
2123
2124
  }
2124
- }), Hi = /* @__PURE__ */ $({
2125
+ }), Yi = /* @__PURE__ */ $({
2125
2126
  __name: "ForgeRemainingCharacters",
2126
2127
  props: {
2127
2128
  maxCount: { default: 300 },
@@ -2129,11 +2130,11 @@ const _t = { key: 0 }, Pt = {
2129
2130
  },
2130
2131
  setup(e) {
2131
2132
  const t = e, a = T(() => t.maxCount - t.currentCount);
2132
- return (i, l) => (r(), f("div", {
2133
+ return (i, l) => (r(), v("div", {
2133
2134
  class: B(a.value < 0 ? "text-danger" : "")
2134
2135
  }, "Remaining characters: " + w(a.value), 3));
2135
2136
  }
2136
- }), ea = { class: "d-flex justify-content-between" }, Wi = /* @__PURE__ */ $({
2137
+ }), ea = { class: "d-flex justify-content-between" }, Gi = /* @__PURE__ */ $({
2137
2138
  __name: "ForgeForm",
2138
2139
  props: {
2139
2140
  onSubmit: {},
@@ -2145,7 +2146,7 @@ const _t = { key: 0 }, Pt = {
2145
2146
  hideCancel: { type: Boolean, default: !1 }
2146
2147
  },
2147
2148
  setup(e) {
2148
- const t = e, a = I(!1), i = I({
2149
+ const t = e, a = _(!1), i = _({
2149
2150
  hasError: !1,
2150
2151
  message: ""
2151
2152
  });
@@ -2160,12 +2161,12 @@ const _t = { key: 0 }, Pt = {
2160
2161
  }
2161
2162
  return (n, o) => {
2162
2163
  const s = A;
2163
- return r(), f("form", C(n.$attrs, {
2164
+ return r(), v("form", C(n.$attrs, {
2164
2165
  novalidate: "",
2165
2166
  class: "position-relative shadow-sm border p-4 bg-white",
2166
2167
  onSubmit: G(l, ["prevent"])
2167
2168
  }), [
2168
- n.hideTitle ? z("", !0) : (r(), f(O, { key: 0 }, [
2169
+ n.hideTitle ? z("", !0) : (r(), v(O, { key: 0 }, [
2169
2170
  k(n.$slots, "title", {}, () => [
2170
2171
  m("h3", {
2171
2172
  class: B(n.titleClass),
@@ -2174,16 +2175,16 @@ const _t = { key: 0 }, Pt = {
2174
2175
  ]),
2175
2176
  o[1] || (o[1] = m("hr", null, null, -1))
2176
2177
  ], 64)),
2177
- i.value.hasError ? (r(), v(se, {
2178
+ i.value.hasError ? (r(), f(se, {
2178
2179
  key: 1,
2179
2180
  severity: "danger",
2180
2181
  "data-cy": "error"
2181
2182
  }, {
2182
- default: g(() => [
2183
+ default: b(() => [
2183
2184
  k(n.$slots, "error", {
2184
2185
  error: i.value.message
2185
2186
  }, () => [
2186
- _(w(i.value.message), 1)
2187
+ I(w(i.value.message), 1)
2187
2188
  ])
2188
2189
  ]),
2189
2190
  _: 3
@@ -2191,7 +2192,7 @@ const _t = { key: 0 }, Pt = {
2191
2192
  k(n.$slots, "default"),
2192
2193
  m("div", ea, [
2193
2194
  k(n.$slots, "cancel", {}, () => [
2194
- n.hideCancel ? z("", !0) : (r(), v(s, {
2195
+ n.hideCancel ? z("", !0) : (r(), f(s, {
2195
2196
  key: 0,
2196
2197
  "data-cy": "cancel-btn",
2197
2198
  type: "reset",
@@ -2199,8 +2200,8 @@ const _t = { key: 0 }, Pt = {
2199
2200
  outlined: "",
2200
2201
  onClick: o[0] || (o[0] = (p) => n.$emit("cancel"))
2201
2202
  }, {
2202
- default: g(() => [
2203
- _(w(n.cancelText), 1)
2203
+ default: b(() => [
2204
+ I(w(n.cancelText), 1)
2204
2205
  ]),
2205
2206
  _: 1
2206
2207
  }))
@@ -2212,14 +2213,14 @@ const _t = { key: 0 }, Pt = {
2212
2213
  severity: "primary",
2213
2214
  class: "ms-auto"
2214
2215
  }, {
2215
- default: g(() => [
2216
- _(w(n.submitText), 1)
2216
+ default: b(() => [
2217
+ I(w(n.submitText), 1)
2217
2218
  ]),
2218
2219
  _: 1
2219
2220
  })
2220
2221
  ])
2221
2222
  ]),
2222
- a.value ? (r(), v(ge, {
2223
+ a.value ? (r(), f(ge, {
2223
2224
  key: 2,
2224
2225
  "data-cy": "loading-spinner"
2225
2226
  })) : z("", !0)
@@ -2229,40 +2230,44 @@ const _t = { key: 0 }, Pt = {
2229
2230
  }), ta = {
2230
2231
  key: 1,
2231
2232
  class: "d-flex flex-column w-100"
2232
- }, aa = ["for"], Yi = /* @__PURE__ */ $({
2233
+ }, aa = ["for"], ia = {
2234
+ key: 0,
2235
+ class: "text-danger fw-600"
2236
+ }, Ji = /* @__PURE__ */ $({
2233
2237
  __name: "ForgeFormField",
2234
- props: /* @__PURE__ */ N({
2238
+ props: /* @__PURE__ */ U({
2235
2239
  name: {},
2236
2240
  fieldLabelPosition: { default: "top" },
2237
2241
  fieldLabel: {},
2238
2242
  type: { default: "text" },
2239
2243
  mask: { default: "" },
2240
2244
  placeholder: { default: "" },
2241
- labelWidthClass: { default: "w-25" }
2245
+ labelWidthClass: { default: "w-25" },
2246
+ required: { type: Boolean, default: !1 }
2242
2247
  }, {
2243
2248
  modelValue: {},
2244
2249
  modelModifiers: {}
2245
2250
  }),
2246
2251
  emits: ["update:modelValue"],
2247
2252
  setup(e) {
2248
- const t = D(e, "modelValue"), a = e, i = (b) => {
2249
- a.type == "number" ? s(b.value) : s(b);
2253
+ const t = D(e, "modelValue"), a = e, i = (g) => {
2254
+ a.type == "number" ? s(g.value) : s(g);
2250
2255
  }, { errors: l, value: n, errorMessage: o, handleChange: s, handleBlur: p } = ee(() => a.name, void 0, {
2251
2256
  initialValue: t.value
2252
2257
  }), c = T(() => l.value.length > 0);
2253
- return ce(() => n.value, (b) => {
2254
- t.value = b;
2255
- }, { immediate: !0 }), (b, d) => {
2256
- const F = Ve, S = Pe, V = oe, M = te, q = ne, y = be;
2257
- return a.type === "checkbox" ? (r(), v(fe, C({
2258
+ return ce(() => n.value, (g) => {
2259
+ t.value = g;
2260
+ }, { 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({
2258
2263
  key: 0,
2259
2264
  id: a.name,
2260
2265
  label: a.fieldLabel
2261
- }, b.$attrs, {
2266
+ }, g.$attrs, {
2262
2267
  name: a.name,
2263
2268
  modelValue: t.value,
2264
2269
  "onUpdate:modelValue": d[0] || (d[0] = (h) => t.value = h)
2265
- }), null, 16, ["id", "label", "name", "modelValue"])) : (r(), f("div", ta, [
2270
+ }), null, 16, ["id", "label", "name", "modelValue"])) : (r(), v("div", ta, [
2266
2271
  m("div", {
2267
2272
  "data-cy": "input-wrapper",
2268
2273
  class: B(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
@@ -2270,65 +2275,70 @@ const _t = { key: 0 }, Pt = {
2270
2275
  m("label", {
2271
2276
  for: a.name,
2272
2277
  class: B(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
2273
- }, w(a.fieldLabel), 11, aa),
2274
- a.type === "number" ? (r(), v(u(ue), C({
2275
- key: 0,
2276
- id: a.name
2277
- }, b.$attrs, {
2278
- placeholder: a.placeholder,
2279
- "input-class": { "is-invalid": c.value },
2280
- class: { "is-invalid": c.value },
2281
- modelValue: t.value,
2282
- "onUpdate:modelValue": d[1] || (d[1] = (h) => t.value = h),
2283
- onInput: i
2284
- }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (r(), v(F, C({
2285
- key: 1,
2286
- id: a.name
2287
- }, b.$attrs, {
2288
- placeholder: a.placeholder,
2289
- class: { "is-invalid": c.value },
2290
- modelValue: t.value,
2291
- "onUpdate:modelValue": d[2] || (d[2] = (h) => t.value = h),
2292
- onInput: i,
2293
- onBlur: u(p)
2294
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (r(), v(S, C({
2295
- key: 2,
2296
- id: a.name
2297
- }, b.$attrs, {
2298
- placeholder: a.placeholder,
2299
- mask: a.mask,
2300
- class: { "is-invalid": c.value },
2301
- modelValue: t.value,
2302
- "onUpdate:modelValue": d[3] || (d[3] = (h) => t.value = h),
2303
- onComplete: i,
2304
- onBlur: u(p)
2305
- }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (r(), v(V, C({
2306
- key: 3,
2307
- id: a.name
2308
- }, b.$attrs, {
2309
- placeholder: a.placeholder,
2310
- class: { "is-invalid": c.value },
2311
- modelValue: t.value,
2312
- "onUpdate:modelValue": d[4] || (d[4] = (h) => t.value = h),
2313
- onInput: i,
2314
- onBlur: u(p)
2315
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (r(), v(M, C({ key: 4 }, { ...a, ...b.$attrs }, {
2316
- modelValue: t.value,
2317
- "onUpdate:modelValue": d[5] || (d[5] = (h) => t.value = h),
2318
- class: { "is-invalid": c.value }
2319
- }), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (r(), v(q, C({ key: 5 }, { ...a, ...b.$attrs }, {
2320
- modelValue: t.value,
2321
- "onUpdate:modelValue": d[6] || (d[6] = (h) => t.value = h),
2322
- class: { "is-invalid": c.value }
2323
- }), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (r(), v(Wt, C({ key: 6 }, { ...a, ...b.$attrs }, {
2324
- modelValue: t.value,
2325
- "onUpdate:modelValue": d[7] || (d[7] = (h) => t.value = h),
2326
- class: { "is-invalid": c.value }
2327
- }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (r(), v(y, C({ key: 7 }, { ...a, ...b.$attrs }, {
2328
- modelValue: t.value,
2329
- "onUpdate:modelValue": d[8] || (d[8] = (h) => t.value = h),
2330
- class: { "is-invalid": c.value }
2331
- }), null, 16, ["modelValue", "class"])) : z("", !0)
2278
+ }, [
2279
+ I(w(a.fieldLabel) + " ", 1),
2280
+ g.required ? (r(), v("span", ia, "*")) : z("", !0)
2281
+ ], 10, aa),
2282
+ k(g.$slots, "default", J(K({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
2283
+ a.type === "number" ? (r(), f(u(ue), C({
2284
+ key: 0,
2285
+ id: a.name
2286
+ }, g.$attrs, {
2287
+ placeholder: a.placeholder,
2288
+ "input-class": { "is-invalid": c.value },
2289
+ class: { "is-invalid": c.value },
2290
+ onInput: i,
2291
+ 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({
2294
+ key: 1,
2295
+ id: a.name
2296
+ }, g.$attrs, {
2297
+ placeholder: a.placeholder,
2298
+ class: { "is-invalid": c.value },
2299
+ modelValue: t.value,
2300
+ "onUpdate:modelValue": d[2] || (d[2] = (h) => t.value = h),
2301
+ onInput: i,
2302
+ onBlur: u(p)
2303
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (r(), f(S, C({
2304
+ key: 2,
2305
+ id: a.name
2306
+ }, g.$attrs, {
2307
+ placeholder: a.placeholder,
2308
+ mask: a.mask,
2309
+ class: { "is-invalid": c.value },
2310
+ modelValue: t.value,
2311
+ "onUpdate:modelValue": d[3] || (d[3] = (h) => t.value = h),
2312
+ onComplete: i,
2313
+ onBlur: u(p)
2314
+ }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (r(), f(V, C({
2315
+ key: 3,
2316
+ id: a.name
2317
+ }, g.$attrs, {
2318
+ placeholder: a.placeholder,
2319
+ class: { "is-invalid": c.value },
2320
+ modelValue: t.value,
2321
+ "onUpdate:modelValue": d[4] || (d[4] = (h) => t.value = h),
2322
+ onInput: i,
2323
+ onBlur: u(p)
2324
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (r(), f(M, C({ key: 4 }, { ...a, ...g.$attrs }, {
2325
+ modelValue: t.value,
2326
+ "onUpdate:modelValue": d[5] || (d[5] = (h) => t.value = h),
2327
+ class: { "is-invalid": c.value }
2328
+ }), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (r(), f(q, C({ key: 5 }, { ...a, ...g.$attrs }, {
2329
+ modelValue: t.value,
2330
+ "onUpdate:modelValue": d[6] || (d[6] = (h) => t.value = h),
2331
+ class: { "is-invalid": c.value }
2332
+ }), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (r(), f(Wt, C({ key: 6 }, { ...a, ...g.$attrs }, {
2333
+ modelValue: t.value,
2334
+ "onUpdate:modelValue": d[7] || (d[7] = (h) => t.value = h),
2335
+ class: { "is-invalid": c.value }
2336
+ }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (r(), f(y, C({ key: 7 }, { ...a, ...g.$attrs }, {
2337
+ modelValue: t.value,
2338
+ "onUpdate:modelValue": d[8] || (d[8] = (h) => t.value = h),
2339
+ class: { "is-invalid": c.value }
2340
+ }), null, 16, ["modelValue", "class"])) : z("", !0)
2341
+ ])
2332
2342
  ], 2),
2333
2343
  H(m("small", {
2334
2344
  "data-cy": "error",
@@ -2339,7 +2349,7 @@ const _t = { key: 0 }, Pt = {
2339
2349
  ]));
2340
2350
  };
2341
2351
  }
2342
- }), Gi = /* @__PURE__ */ $({
2352
+ }), Ki = /* @__PURE__ */ $({
2343
2353
  __name: "ForgeChip",
2344
2354
  props: {
2345
2355
  chipSeverity: { default: "primary" },
@@ -2374,15 +2384,15 @@ const _t = { key: 0 }, Pt = {
2374
2384
  }));
2375
2385
  return (i, l) => {
2376
2386
  const n = Me;
2377
- return r(), v(n, C({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
2378
- default: g(() => [
2379
- (r(!0), f(O, null, U(i.$slots, (o, s) => k(i.$slots, s, { slot: s })), 256))
2387
+ return r(), f(n, C({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
2388
+ default: b(() => [
2389
+ (r(!0), v(O, null, N(i.$slots, (o, s) => k(i.$slots, s, { slot: s })), 256))
2380
2390
  ]),
2381
2391
  _: 3
2382
2392
  }, 16, ["pt"]);
2383
2393
  };
2384
2394
  }
2385
- }), ia = /* @__PURE__ */ $({
2395
+ }), la = /* @__PURE__ */ $({
2386
2396
  __name: "ForgeProgressBar",
2387
2397
  props: {
2388
2398
  severity: { default: "primary" },
@@ -2427,8 +2437,8 @@ const _t = { key: 0 }, Pt = {
2427
2437
  }));
2428
2438
  return (o, s) => {
2429
2439
  const p = De;
2430
- return r(), v(p, C({ ...o.$attrs, ...t }, { pt: n.value }), {
2431
- default: g(() => [
2440
+ return r(), f(p, C({ ...o.$attrs, ...t }, { pt: n.value }), {
2441
+ default: b(() => [
2432
2442
  k(o.$slots, "default")
2433
2443
  ]),
2434
2444
  _: 3
@@ -2436,7 +2446,7 @@ const _t = { key: 0 }, Pt = {
2436
2446
  };
2437
2447
  }
2438
2448
  });
2439
- var la = /* @__PURE__ */ $({
2449
+ var na = /* @__PURE__ */ $({
2440
2450
  name: "VueDrawingCanvas",
2441
2451
  props: {
2442
2452
  strokeType: {
@@ -2751,11 +2761,11 @@ var la = /* @__PURE__ */ $({
2751
2761
  const o = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
2752
2762
  var p = t.split(o).filter((M) => M.length > 0);
2753
2763
  for (let M = 0; M < p.length; M++) {
2754
- for (var c = p[M].split(s).filter((q) => q.length > 0), b = "", d = 0; d < c.length; d++) {
2755
- var F = b + c[d] + " ", S = e.measureText(F), V = S.width;
2756
- V > l && d > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(b, a, i) : e.fillText(b, a, i), b = c[d] + " ", i += n) : b = F;
2764
+ 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;
2757
2767
  }
2758
- this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(b, a, i) : e.fillText(b, a, i), i += c.length > 0 ? n : 0;
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;
2759
2769
  }
2760
2770
  },
2761
2771
  save() {
@@ -2786,9 +2796,9 @@ var la = /* @__PURE__ */ $({
2786
2796
  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);
2787
2797
  }
2788
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));
2789
- let s = document.createElement("canvas"), p = s.getContext("2d"), c = this.outputWidth === void 0 ? this.width : this.outputWidth, b = this.outputHeight === void 0 ? this.height : this.outputHeight;
2790
- if (s.width = Number(c), s.height = Number(b), p)
2791
- return p.drawImage(e, 0, 0, Number(c), Number(b)), this.$emit("update:image", s.toDataURL("image/" + this.saveAs, 1)), s.toDataURL("image/" + this.saveAs, 1);
2799
+ 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
+ if (s.width = Number(c), s.height = Number(g), p)
2801
+ 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);
2792
2802
  }
2793
2803
  },
2794
2804
  isEmpty() {
@@ -2826,7 +2836,7 @@ var la = /* @__PURE__ */ $({
2826
2836
  });
2827
2837
  }
2828
2838
  });
2829
- const oa = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1 gap-1" }, Ji = /* @__PURE__ */ $({
2839
+ const oa = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1 gap-1" }, Zi = /* @__PURE__ */ $({
2830
2840
  __name: "ForgeScratchpad",
2831
2841
  props: {
2832
2842
  showClear: { type: Boolean, default: !0 },
@@ -2839,7 +2849,7 @@ const oa = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
2839
2849
  },
2840
2850
  emits: ["save"],
2841
2851
  setup(e, { emit: t }) {
2842
- const a = e, i = t, l = Fe("drawingCanvas"), n = I(), o = () => {
2852
+ const a = e, i = t, l = Fe("drawingCanvas"), n = _(), o = () => {
2843
2853
  l == null || l.value.reset();
2844
2854
  }, s = () => {
2845
2855
  l == null || l.value.redo();
@@ -2848,64 +2858,64 @@ const oa = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
2848
2858
  }, c = () => {
2849
2859
  i("save", l.value.isEmpty());
2850
2860
  };
2851
- return (b, d) => {
2861
+ return (g, d) => {
2852
2862
  const F = A;
2853
- return r(), f("div", oa, [
2854
- x(u(la), C({
2863
+ return r(), v("div", oa, [
2864
+ x(u(na), C({
2855
2865
  ref_key: "drawingCanvas",
2856
2866
  ref: l,
2857
2867
  image: n.value,
2858
2868
  "onUpdate:image": d[0] || (d[0] = (S) => n.value = S),
2859
2869
  "data-cy": "drawing-canvas",
2860
2870
  class: "border canvas"
2861
- }, { ...b.$attrs }, {
2862
- height: b.height,
2863
- width: b.width,
2864
- style: `height: ${b.height}px; width: ${b.width}px`,
2865
- "line-join": b.lineJoin
2871
+ }, { ...g.$attrs }, {
2872
+ height: g.height,
2873
+ width: g.width,
2874
+ style: `height: ${g.height}px; width: ${g.width}px`,
2875
+ "line-join": g.lineJoin
2866
2876
  }), null, 16, ["image", "height", "width", "style", "line-join"]),
2867
- m("div", na, [
2868
- a.showUndo ? (r(), v(F, {
2877
+ m("div", sa, [
2878
+ a.showUndo ? (r(), f(F, {
2869
2879
  key: 0,
2870
2880
  onClick: p,
2871
2881
  outlined: "",
2872
2882
  "data-cy": "undo-button"
2873
2883
  }, {
2874
- default: g(() => d[1] || (d[1] = [
2875
- _("Undo")
2884
+ default: b(() => d[1] || (d[1] = [
2885
+ I("Undo")
2876
2886
  ])),
2877
2887
  _: 1
2878
2888
  })) : z("", !0),
2879
- a.showRedo ? (r(), v(F, {
2889
+ a.showRedo ? (r(), f(F, {
2880
2890
  key: 1,
2881
2891
  onClick: s,
2882
2892
  outlined: "",
2883
2893
  "data-cy": "redo-button"
2884
2894
  }, {
2885
- default: g(() => d[2] || (d[2] = [
2886
- _("Redo")
2895
+ default: b(() => d[2] || (d[2] = [
2896
+ I("Redo")
2887
2897
  ])),
2888
2898
  _: 1
2889
2899
  })) : z("", !0),
2890
- a.showClear ? (r(), v(F, {
2900
+ a.showClear ? (r(), f(F, {
2891
2901
  key: 2,
2892
2902
  onClick: o,
2893
2903
  outlined: "",
2894
2904
  "data-cy": "clear-button"
2895
2905
  }, {
2896
- default: g(() => d[3] || (d[3] = [
2897
- _("Clear")
2906
+ default: b(() => d[3] || (d[3] = [
2907
+ I("Clear")
2898
2908
  ])),
2899
2909
  _: 1
2900
2910
  })) : z("", !0),
2901
- a.showSave ? (r(), v(F, {
2911
+ a.showSave ? (r(), f(F, {
2902
2912
  key: 3,
2903
2913
  onClick: c,
2904
2914
  class: "ms-auto",
2905
2915
  "data-cy": "save-button"
2906
2916
  }, {
2907
- default: g(() => d[4] || (d[4] = [
2908
- _("Save")
2917
+ default: b(() => d[4] || (d[4] = [
2918
+ I("Save")
2909
2919
  ])),
2910
2920
  _: 1
2911
2921
  })) : z("", !0)
@@ -2913,7 +2923,7 @@ const oa = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
2913
2923
  ]);
2914
2924
  };
2915
2925
  }
2916
- }), sa = { class: "value text-white w-100 text-center" }, Ki = /* @__PURE__ */ $({
2926
+ }), ra = { class: "value text-white w-100 text-center" }, Xi = /* @__PURE__ */ $({
2917
2927
  __name: "ForgeStatWidget",
2918
2928
  props: {
2919
2929
  size: { default: "md" },
@@ -2921,15 +2931,15 @@ const oa = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
2921
2931
  },
2922
2932
  setup(e) {
2923
2933
  const t = e;
2924
- return (a, i) => (r(), f("div", C(a.$attrs, {
2934
+ return (a, i) => (r(), v("div", C(a.$attrs, {
2925
2935
  class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
2926
2936
  }), [
2927
- m("span", sa, [
2937
+ m("span", ra, [
2928
2938
  k(a.$slots, "default")
2929
2939
  ])
2930
2940
  ], 16));
2931
2941
  }
2932
- }), ra = { key: 0 }, Zi = /* @__PURE__ */ $({
2942
+ }), da = { key: 0 }, Qi = /* @__PURE__ */ $({
2933
2943
  __name: "ForgeStepper",
2934
2944
  props: {
2935
2945
  currentStep: { default: 1 },
@@ -2976,18 +2986,18 @@ const oa = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
2976
2986
  ]
2977
2987
  })
2978
2988
  }));
2979
- return (i, l) => (r(), v(u(Ne), { value: i.currentStep }, {
2980
- default: g(() => [
2989
+ return (i, l) => (r(), f(u(Ne), { value: i.currentStep }, {
2990
+ default: b(() => [
2981
2991
  x(u(Ue), null, {
2982
- default: g(() => [
2983
- (r(!0), f(O, null, U(i.steps, (n) => (r(), v(u(Oe), C({
2992
+ default: b(() => [
2993
+ (r(!0), v(O, null, N(i.steps, (n) => (r(), f(u(Oe), C({
2984
2994
  key: n.value,
2985
2995
  value: n.value,
2986
2996
  disabled: n.disabled,
2987
2997
  ref_for: !0
2988
2998
  }, { ...i.$attrs }, { pt: a.value }), {
2989
- default: g(() => [
2990
- i.showStepLabel ? (r(), f("div", ra, w(n.label), 1)) : z("", !0)
2999
+ default: b(() => [
3000
+ i.showStepLabel ? (r(), v("div", da, w(n.label), 1)) : z("", !0)
2991
3001
  ]),
2992
3002
  _: 2
2993
3003
  }, 1040, ["value", "disabled", "pt"]))), 128))
@@ -2995,12 +3005,12 @@ const oa = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
2995
3005
  _: 1
2996
3006
  }),
2997
3007
  x(u(qe), null, {
2998
- default: g(() => [
2999
- (r(!0), f(O, null, U(i.steps, (n) => (r(), v(u(Ae), {
3008
+ default: b(() => [
3009
+ (r(!0), v(O, null, N(i.steps, (n) => (r(), f(u(Ae), {
3000
3010
  key: n.value,
3001
3011
  value: n.value
3002
3012
  }, {
3003
- default: g(() => [
3013
+ default: b(() => [
3004
3014
  k(i.$slots, "step" + n.value)
3005
3015
  ]),
3006
3016
  _: 2
@@ -3012,7 +3022,7 @@ const oa = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
3012
3022
  _: 3
3013
3023
  }, 8, ["value"]));
3014
3024
  }
3015
- }), da = { class: "p-4 text-wrap w-100" }, pa = { class: "p-4 text-wrap w-100" }, Xi = /* @__PURE__ */ $({
3025
+ }), pa = { class: "p-4 text-wrap w-100" }, ca = { class: "p-4 text-wrap w-100" }, el = /* @__PURE__ */ $({
3016
3026
  __name: "ForgeTile",
3017
3027
  props: {
3018
3028
  severity: { default: "primary" },
@@ -3024,29 +3034,29 @@ const oa = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
3024
3034
  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" : ""}`);
3025
3035
  return (l, n) => {
3026
3036
  const o = A;
3027
- return t.clickable ? (r(), v(o, {
3037
+ return t.clickable ? (r(), f(o, {
3028
3038
  key: 0,
3029
3039
  class: B(["d-flex w-100 p-0 text-body", a.value]),
3030
3040
  severity: t.severity,
3031
3041
  unstyled: "",
3032
3042
  "data-cy": "button-tile"
3033
3043
  }, {
3034
- default: g(() => [
3035
- m("div", da, [
3044
+ default: b(() => [
3045
+ m("div", pa, [
3036
3046
  k(l.$slots, "default", {}, () => [
3037
- n[0] || (n[0] = _("Tile Content"))
3047
+ n[0] || (n[0] = I("Tile Content"))
3038
3048
  ])
3039
3049
  ])
3040
3050
  ]),
3041
3051
  _: 3
3042
- }, 8, ["severity", "class"])) : (r(), f("div", {
3052
+ }, 8, ["severity", "class"])) : (r(), v("div", {
3043
3053
  key: 1,
3044
3054
  class: B(["d-flex w-100", i.value]),
3045
3055
  "data-cy": "tile"
3046
3056
  }, [
3047
- m("div", pa, [
3057
+ m("div", ca, [
3048
3058
  k(l.$slots, "default", {}, () => [
3049
- n[1] || (n[1] = _("Tile Content"))
3059
+ n[1] || (n[1] = I("Tile Content"))
3050
3060
  ])
3051
3061
  ])
3052
3062
  ], 2));
@@ -3056,13 +3066,13 @@ const oa = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1
3056
3066
  function Q(e, t) {
3057
3067
  return e > 1 ? `${t}s` : t;
3058
3068
  }
3059
- const ca = {
3069
+ const ua = {
3060
3070
  class: "d-flex justify-content-start align-items-baseline",
3061
3071
  "data-cy": "pagination-header"
3062
- }, ua = { class: "ms-2" }, ma = { key: 0 }, va = {
3072
+ }, ma = { class: "ms-2" }, va = { key: 0 }, fa = {
3063
3073
  class: "w-auto",
3064
3074
  "data-cy": "total"
3065
- }, fa = /* @__PURE__ */ $({
3075
+ }, ga = /* @__PURE__ */ $({
3066
3076
  __name: "ForgePaginationHeader",
3067
3077
  props: {
3068
3078
  total: {},
@@ -3077,9 +3087,9 @@ const ca = {
3077
3087
  const o = Math.ceil(i.total / i.perPage);
3078
3088
  return `${o} ${Q(o, "page")}`;
3079
3089
  });
3080
- return (o, s) => (r(), f("div", ca, [
3081
- s[2] || (s[2] = _(" Number of results per page ")),
3082
- m("div", ua, [
3090
+ return (o, s) => (r(), v("div", ua, [
3091
+ s[2] || (s[2] = I(" Number of results per page ")),
3092
+ m("div", ma, [
3083
3093
  x(u(te), {
3084
3094
  options: i.pageSizes,
3085
3095
  "model-value": i.perPage,
@@ -3087,16 +3097,16 @@ const ca = {
3087
3097
  onChange: s[0] || (s[0] = (p) => l(p))
3088
3098
  }, null, 8, ["options", "model-value"])
3089
3099
  ]),
3090
- i.total ? (r(), f("div", ma, [
3100
+ i.total ? (r(), v("div", va, [
3091
3101
  s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
3092
- m("span", va, w(i.total) + " " + w(u(Q)(i.total, "result")) + " across " + w(n.value), 1)
3102
+ m("span", fa, w(i.total) + " " + w(u(Q)(i.total, "result")) + " across " + w(n.value), 1)
3093
3103
  ])) : z("", !0)
3094
3104
  ]));
3095
3105
  }
3096
- }), ga = { class: "position-relative" }, ba = { "data-cy": "above-table-slot" }, ya = { class: "d-flex w-100" }, xa = {
3106
+ }), ba = { class: "position-relative" }, ya = { "data-cy": "above-table-slot" }, xa = { class: "d-flex w-100" }, ha = {
3097
3107
  class: "mx-auto",
3098
3108
  "data-cy": "empty-message"
3099
- }, ha = { class: "d-flex" }, wa = { class: "d-flex align-items-end mb-2" }, ka = { key: 0 }, $a = { class: "ms-auto" }, Qi = /* @__PURE__ */ $({
3109
+ }, wa = { class: "d-flex" }, ka = { class: "d-flex align-items-end mb-2" }, $a = { key: 0 }, Fa = { class: "ms-auto" }, tl = /* @__PURE__ */ $({
3100
3110
  __name: "ForgeTable",
3101
3111
  props: {
3102
3112
  value: {},
@@ -3182,7 +3192,7 @@ const ca = {
3182
3192
  },
3183
3193
  emits: ["update:filters", "update:tableContext", "sort", "page"],
3184
3194
  setup(e, { emit: t }) {
3185
- const a = t, i = e, l = I(), n = I([5, 10, 20, 50, 100]), o = I(10), s = I({
3195
+ const a = t, i = e, l = _(), n = _([5, 10, 20, 50, 100]), o = _(10), s = _({
3186
3196
  filters: i.filters,
3187
3197
  perPage: o.value,
3188
3198
  page: 0,
@@ -3192,7 +3202,7 @@ const ca = {
3192
3202
  }), p = T(() => i.totalRecords ?? i.value.length), c = T(() => {
3193
3203
  const y = Math.ceil(p.value / o.value);
3194
3204
  return `${y} ${Q(y, "page")}`;
3195
- }), b = T(() => ({
3205
+ }), g = T(() => ({
3196
3206
  thead: () => ({
3197
3207
  class: [
3198
3208
  {
@@ -3235,14 +3245,14 @@ const ca = {
3235
3245
  };
3236
3246
  return ce(() => i.filters, (y) => {
3237
3247
  s.value.filters = y, a("update:tableContext", s.value);
3238
- }, { deep: !0 }), le(() => a("update:tableContext", s.value)), (y, h) => (r(), f("div", ga, [
3239
- m("span", ba, [
3248
+ }, { deep: !0 }), le(() => a("update:tableContext", s.value)), (y, h) => (r(), v("div", ba, [
3249
+ m("span", ya, [
3240
3250
  k(y.$slots, "above-table")
3241
3251
  ]),
3242
3252
  x(u(Ee), C({
3243
3253
  class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
3244
3254
  }, { ...i, ...y.$attrs }, {
3245
- pt: b.value,
3255
+ pt: g.value,
3246
3256
  rows: o.value,
3247
3257
  "total-records": p.value,
3248
3258
  "filter-display": i.filters ? "row" : void 0,
@@ -3254,19 +3264,19 @@ const ca = {
3254
3264
  onPage: M,
3255
3265
  showHeaders: ""
3256
3266
  }), ie({
3257
- empty: g(() => [
3258
- m("div", ya, [
3259
- m("h5", xa, w(y.emptyMessage ?? "No items Found."), 1)
3267
+ empty: b(() => [
3268
+ m("div", xa, [
3269
+ m("h5", ha, w(y.emptyMessage ?? "No items Found."), 1)
3260
3270
  ])
3261
3271
  ]),
3262
- header: g(() => [
3272
+ header: b(() => [
3263
3273
  m("div", {
3264
3274
  class: B(i.loading ? "opacity-50" : "")
3265
3275
  }, [
3266
- m("div", ha, [
3267
- m("div", wa, [
3268
- y.paginator && !y.legacyPaginationFooter ? (r(), f("span", ka, [
3269
- x(fa, {
3276
+ m("div", wa, [
3277
+ m("div", ka, [
3278
+ y.paginator && !y.legacyPaginationFooter ? (r(), v("span", $a, [
3279
+ x(ga, {
3270
3280
  total: p.value,
3271
3281
  "page-sizes": n.value,
3272
3282
  "per-page": o.value,
@@ -3277,37 +3287,37 @@ const ca = {
3277
3287
  }, null, 8, ["total", "page-sizes", "per-page"])
3278
3288
  ])) : z("", !0)
3279
3289
  ]),
3280
- m("div", $a, [
3281
- y.showClearButton ? (r(), v(u(A), {
3290
+ m("div", Fa, [
3291
+ y.showClearButton ? (r(), f(u(A), {
3282
3292
  key: 0,
3283
3293
  outlined: "",
3284
3294
  class: B(y.showExporterButton ? "me-2" : ""),
3285
3295
  onClick: d,
3286
3296
  "data-cy": "clear-all"
3287
3297
  }, {
3288
- default: g(() => [
3298
+ default: b(() => [
3289
3299
  x(u(j), {
3290
3300
  icon: "bi:funnel-fill",
3291
3301
  width: "24",
3292
3302
  height: "24"
3293
3303
  }),
3294
- h[2] || (h[2] = _(" Clear "))
3304
+ h[2] || (h[2] = I(" Clear "))
3295
3305
  ]),
3296
3306
  _: 1
3297
3307
  }, 8, ["class"])) : z("", !0),
3298
- y.showExporterButton ? (r(), v(u(A), {
3308
+ y.showExporterButton ? (r(), f(u(A), {
3299
3309
  key: 1,
3300
3310
  outlined: "",
3301
3311
  onClick: F,
3302
3312
  "data-cy": "exporter"
3303
3313
  }, {
3304
- default: g(() => [
3314
+ default: b(() => [
3305
3315
  x(u(j), {
3306
3316
  icon: "typcn:export",
3307
3317
  width: "24",
3308
3318
  height: "24"
3309
3319
  }),
3310
- h[3] || (h[3] = _(" Export "))
3320
+ h[3] || (h[3] = I(" Export "))
3311
3321
  ]),
3312
3322
  _: 1
3313
3323
  })) : z("", !0),
@@ -3316,20 +3326,20 @@ const ca = {
3316
3326
  ])
3317
3327
  ], 2)
3318
3328
  ]),
3319
- default: g(() => [
3329
+ default: b(() => [
3320
3330
  k(y.$slots, "default")
3321
3331
  ]),
3322
3332
  _: 2
3323
3333
  }, [
3324
- U(y.$slots, (P, L) => ({
3334
+ N(y.$slots, (P, L) => ({
3325
3335
  name: L,
3326
- fn: g((ae) => [
3327
- k(y.$slots, L, K(Z(ae || {})))
3336
+ fn: b((ae) => [
3337
+ k(y.$slots, L, J(K(ae || {})))
3328
3338
  ])
3329
3339
  })),
3330
3340
  y.legacyPaginationFooter ? {
3331
3341
  name: "paginatorstart",
3332
- fn: g(() => [
3342
+ fn: b(() => [
3333
3343
  m("span", {
3334
3344
  class: B(["d-flex", i.loading ? "opacity-50" : ""]),
3335
3345
  "data-cy": "legacy-page-size"
@@ -3348,7 +3358,7 @@ const ca = {
3348
3358
  } : void 0,
3349
3359
  y.legacyPaginationFooter ? {
3350
3360
  name: "paginatorend",
3351
- fn: g(() => [
3361
+ fn: b(() => [
3352
3362
  m("span", {
3353
3363
  "data-cy": "legacy-total",
3354
3364
  class: B(i.loading ? "opacity-50" : "")
@@ -3359,9 +3369,9 @@ const ca = {
3359
3369
  ]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
3360
3370
  ]));
3361
3371
  }
3362
- }), Fa = { class: "d-flex position-relative" }, Ba = { class: "d-flex w-100" }, el = /* @__PURE__ */ $({
3372
+ }), Ba = { class: "d-flex position-relative" }, Sa = { class: "d-flex w-100" }, al = /* @__PURE__ */ $({
3363
3373
  __name: "ForgeFilterHeader",
3364
- props: /* @__PURE__ */ N({
3374
+ props: /* @__PURE__ */ U({
3365
3375
  dataType: {},
3366
3376
  dropdownOptions: {},
3367
3377
  showClearButton: { type: Boolean, default: !1 },
@@ -3380,7 +3390,7 @@ const ca = {
3380
3390
  const o = (s) => {
3381
3391
  var c;
3382
3392
  const p = (c = e.dropdownOptions) == null ? void 0 : c.find(
3383
- (b) => e.optionValue ? b[e.optionValue] === s : Object.keys(b).every((d) => s.hasOwnProperty(d) && b[d] === s[d])
3393
+ (g) => e.optionValue ? g[e.optionValue] === s : Object.keys(g).every((d) => s.hasOwnProperty(d) && g[d] === s[d])
3384
3394
  );
3385
3395
  return e.optionLabel ? p[e.optionLabel] : p;
3386
3396
  };
@@ -3390,20 +3400,20 @@ const ca = {
3390
3400
  };
3391
3401
  return (l, n) => {
3392
3402
  const o = ue, s = A;
3393
- return r(), f("div", Fa, [
3394
- l.dataType === "numeric" ? (r(), v(o, C({
3403
+ return r(), v("div", Ba, [
3404
+ l.dataType === "numeric" ? (r(), f(o, C({
3395
3405
  key: 0,
3396
3406
  modelValue: t.value,
3397
3407
  "onUpdate:modelValue": n[0] || (n[0] = (p) => t.value = p),
3398
3408
  modelModifiers: { trim: !0 }
3399
- }, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (r(), v(be, C({
3409
+ }, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (r(), f(be, C({
3400
3410
  key: 1,
3401
3411
  modelValue: t.value,
3402
3412
  "onUpdate:modelValue": n[1] || (n[1] = (p) => t.value = p)
3403
3413
  }, l.$attrs, {
3404
3414
  "show-icon": !1,
3405
3415
  "show-on-focus": !0
3406
- }), null, 16, ["modelValue"])) : l.dataType === "select" ? (r(), v(u(te), C({
3416
+ }), null, 16, ["modelValue"])) : l.dataType === "select" ? (r(), f(u(te), C({
3407
3417
  key: 2,
3408
3418
  modelValue: t.value,
3409
3419
  "onUpdate:modelValue": n[2] || (n[2] = (p) => t.value = p)
@@ -3412,18 +3422,18 @@ const ca = {
3412
3422
  "option-value": l.optionValue,
3413
3423
  "option-label": l.optionLabel
3414
3424
  }), {
3415
- value: g(({ value: p, placeholder: c }) => [
3416
- m("div", Ba, [
3425
+ value: b(({ value: p, placeholder: c }) => [
3426
+ m("div", Sa, [
3417
3427
  m("span", {
3418
3428
  class: B({ "filter-placeholder": p === null })
3419
3429
  }, w(a(p, c)), 3),
3420
- l.showClearButton && t.value !== null ? (r(), v(s, {
3430
+ l.showClearButton && t.value !== null ? (r(), f(s, {
3421
3431
  key: 0,
3422
3432
  onClick: G(i, ["prevent"]),
3423
3433
  size: "small",
3424
3434
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
3425
3435
  }, {
3426
- default: g(() => [
3436
+ default: b(() => [
3427
3437
  x(u(j), {
3428
3438
  icon: "bi:x",
3429
3439
  width: "1rem",
@@ -3436,7 +3446,7 @@ const ca = {
3436
3446
  ])
3437
3447
  ]),
3438
3448
  _: 1
3439
- }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (r(), v(u(ne), C({
3449
+ }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (r(), f(u(oe), C({
3440
3450
  key: 3,
3441
3451
  modelValue: t.value,
3442
3452
  "onUpdate:modelValue": n[3] || (n[3] = (p) => t.value = p)
@@ -3446,19 +3456,19 @@ const ca = {
3446
3456
  "option-label": l.optionLabel,
3447
3457
  "option-value": l.optionValue,
3448
3458
  filter: ""
3449
- }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(), v(u(oe), C({
3459
+ }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(), f(u(ne), C({
3450
3460
  key: 4,
3451
3461
  modelValue: t.value,
3452
3462
  "onUpdate:modelValue": n[4] || (n[4] = (p) => t.value = p),
3453
3463
  modelModifiers: { trim: !0 }
3454
3464
  }, l.$attrs), null, 16, ["modelValue"])),
3455
- l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (r(), v(s, {
3465
+ l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (r(), f(s, {
3456
3466
  key: 5,
3457
3467
  onClick: G(i, ["prevent"]),
3458
3468
  size: "small",
3459
3469
  class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
3460
3470
  }, {
3461
- default: g(() => [
3471
+ default: b(() => [
3462
3472
  x(u(j), {
3463
3473
  icon: "bi:x",
3464
3474
  width: "1rem",
@@ -4528,10 +4538,10 @@ var E = function(e, t, a, i) {
4528
4538
  if (a === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
4529
4539
  if (typeof t == "function" ? e !== t || !i : !t.has(e)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
4530
4540
  return a === "m" ? i : a === "a" ? i.call(e) : i ? i.value : t.get(e);
4531
- }, W, J, R;
4541
+ }, W, Z, R;
4532
4542
  class ye {
4533
4543
  constructor(...t) {
4534
- W.set(this, /* @__PURE__ */ new Map()), J.set(this, /* @__PURE__ */ new Map()), R.set(this, /* @__PURE__ */ new Map());
4544
+ W.set(this, /* @__PURE__ */ new Map()), Z.set(this, /* @__PURE__ */ new Map()), R.set(this, /* @__PURE__ */ new Map());
4535
4545
  for (const a of t)
4536
4546
  this.define(a);
4537
4547
  }
@@ -4542,7 +4552,7 @@ class ye {
4542
4552
  let o = !0;
4543
4553
  for (let s of l) {
4544
4554
  const p = s.startsWith("*");
4545
- if (s = p ? s.slice(1) : s, n == null || n.add(s), o && E(this, J, "f").set(i, s), o = !1, p)
4555
+ if (s = p ? s.slice(1) : s, n == null || n.add(s), o && E(this, Z, "f").set(i, s), o = !1, p)
4546
4556
  continue;
4547
4557
  const c = E(this, W, "f").get(s);
4548
4558
  if (c && c != i && !a)
@@ -4560,7 +4570,7 @@ class ye {
4560
4570
  }
4561
4571
  getExtension(t) {
4562
4572
  var a;
4563
- return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t && E(this, J, "f").get(t.trim().toLowerCase())) ?? null);
4573
+ return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t && E(this, Z, "f").get(t.trim().toLowerCase())) ?? null);
4564
4574
  }
4565
4575
  getAllExtensions(t) {
4566
4576
  return typeof t != "string" ? null : E(this, R, "f").get(t.toLowerCase()) ?? null;
@@ -4576,12 +4586,12 @@ class ye {
4576
4586
  _getTestState() {
4577
4587
  return {
4578
4588
  types: E(this, W, "f"),
4579
- extensions: E(this, J, "f")
4589
+ extensions: E(this, Z, "f")
4580
4590
  };
4581
4591
  }
4582
4592
  }
4583
- W = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap();
4584
- const Sa = new ye(de, re)._freeze();
4593
+ W = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap();
4594
+ const Ca = new ye(de, re)._freeze();
4585
4595
  function xe(e, t, a, i) {
4586
4596
  const l = t.flatMap((n) => n.file);
4587
4597
  return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
@@ -4594,7 +4604,7 @@ function xe(e, t, a, i) {
4594
4604
  })) : t[o].status = "Duplicate";
4595
4605
  }), t;
4596
4606
  }
4597
- async function Ca(e, t) {
4607
+ async function za(e, t) {
4598
4608
  if (e === "Uploaded" && t !== null)
4599
4609
  try {
4600
4610
  await new me(t).delete();
@@ -4617,22 +4627,22 @@ function pe(e, t = !0, a = 1) {
4617
4627
  while (Math.round(Math.abs(e) * o) / o >= i && n < l.length - 1);
4618
4628
  return e.toFixed(a) + " " + l[n];
4619
4629
  }
4620
- function za(e) {
4630
+ function Ta(e) {
4621
4631
  return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
4622
4632
  }
4623
- function Ta(e) {
4633
+ function ja(e) {
4624
4634
  return URL.createObjectURL(e);
4625
4635
  }
4626
- function ja() {
4636
+ function Ia() {
4627
4637
  const e = new ye(de, re);
4628
4638
  return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
4629
4639
  }
4630
- const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disabled", "multiple"], Pa = {
4640
+ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disabled", "multiple"], Va = {
4631
4641
  class: "text-break accepted-file-types-container",
4632
4642
  id: "accepted-file-types-overlay"
4633
- }, Va = /* @__PURE__ */ $({
4643
+ }, Ma = /* @__PURE__ */ $({
4634
4644
  __name: "UploadButton",
4635
- props: /* @__PURE__ */ N({
4645
+ props: /* @__PURE__ */ U({
4636
4646
  acceptedFileTypes: {},
4637
4647
  maxFileInput: {},
4638
4648
  showDragDropArea: { type: Boolean }
@@ -4642,12 +4652,12 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
4642
4652
  }),
4643
4653
  emits: ["update:modelValue"],
4644
4654
  setup(e) {
4645
- const t = D(e, "modelValue"), a = I(), i = (o) => a.value.toggle(o), l = T(() => e.maxFileInput <= t.value.length), n = (o) => {
4655
+ const t = D(e, "modelValue"), a = _(), i = (o) => a.value.toggle(o), l = T(() => e.maxFileInput <= t.value.length), n = (o) => {
4646
4656
  t.value = xe(o, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
4647
4657
  };
4648
4658
  return (o, s) => {
4649
4659
  const p = A;
4650
- return r(), f("div", Ia, [
4660
+ return r(), v("div", _a, [
4651
4661
  k(o.$slots, "message"),
4652
4662
  m("div", null, [
4653
4663
  m("input", {
@@ -4658,7 +4668,7 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
4658
4668
  disabled: l.value,
4659
4669
  multiple: o.maxFileInput > 1,
4660
4670
  onInput: s[0] || (s[0] = (c) => n([...c.target.files]))
4661
- }, null, 40, _a),
4671
+ }, null, 40, Pa),
4662
4672
  m("label", {
4663
4673
  class: B([{ disabled: l.value }, "btn btn-primary"]),
4664
4674
  id: "file-input-button",
@@ -4671,19 +4681,19 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
4671
4681
  height: "20px",
4672
4682
  width: "20px"
4673
4683
  }),
4674
- s[1] || (s[1] = _(" Browse your computer "))
4684
+ s[1] || (s[1] = I(" Browse your computer "))
4675
4685
  ])
4676
4686
  ], 2)
4677
4687
  ]),
4678
- o.showDragDropArea ? (r(), v(p, {
4688
+ o.showDragDropArea ? (r(), f(p, {
4679
4689
  link: "",
4680
4690
  class: "ms-auto",
4681
4691
  key: o.acceptedFileTypes.length,
4682
4692
  id: "accepted-file-types",
4683
4693
  onClick: i
4684
4694
  }, {
4685
- default: g(() => s[2] || (s[2] = [
4686
- _("Accepted File Types")
4695
+ default: b(() => s[2] || (s[2] = [
4696
+ I("Accepted File Types")
4687
4697
  ])),
4688
4698
  _: 1
4689
4699
  })) : z("", !0),
@@ -4691,24 +4701,24 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
4691
4701
  ref_key: "acceptedFilesOverlay",
4692
4702
  ref: a
4693
4703
  }, {
4694
- default: g(() => [
4695
- m("div", Pa, w(o.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
4704
+ default: b(() => [
4705
+ m("div", Va, w(o.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
4696
4706
  ]),
4697
4707
  _: 1
4698
4708
  }, 512)
4699
4709
  ]);
4700
4710
  };
4701
4711
  }
4702
- }), Ma = {
4712
+ }), Da = {
4703
4713
  key: 0,
4704
4714
  class: "py-4 px-3",
4705
4715
  id: "placeholder-message"
4706
- }, Da = {
4716
+ }, Oa = {
4707
4717
  key: 1,
4708
4718
  class: "d-flex flex-column"
4709
- }, Oa = /* @__PURE__ */ $({
4719
+ }, Na = /* @__PURE__ */ $({
4710
4720
  __name: "DragDropArea",
4711
- props: /* @__PURE__ */ N({
4721
+ props: /* @__PURE__ */ U({
4712
4722
  maxFileInput: {},
4713
4723
  maxFileSize: {},
4714
4724
  acceptedFileTypes: {}
@@ -4718,30 +4728,30 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
4718
4728
  }),
4719
4729
  emits: ["update:modelValue"],
4720
4730
  setup(e) {
4721
- const t = D(e, "modelValue"), a = I(!1), i = T(() => e.maxFileInput <= t.value.length), l = (n) => {
4731
+ const t = D(e, "modelValue"), a = _(!1), i = T(() => e.maxFileInput <= t.value.length), l = (n) => {
4722
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);
4723
4733
  };
4724
- return (n, o) => (r(), f("div", {
4734
+ return (n, o) => (r(), v("div", {
4725
4735
  id: "drag-drop-area",
4726
4736
  class: B(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
4727
4737
  onDragleave: o[0] || (o[0] = G((s) => a.value = !1, ["prevent"])),
4728
4738
  onDragover: o[1] || (o[1] = G((s) => a.value = !0, ["prevent"])),
4729
4739
  onDrop: G(l, ["prevent"])
4730
4740
  }, [
4731
- t.value.length === 0 ? (r(), f("div", Ma, [
4741
+ t.value.length === 0 ? (r(), v("div", Da, [
4732
4742
  x(u(j), {
4733
4743
  icon: "bi:upload",
4734
4744
  class: "me-2",
4735
4745
  height: "20px",
4736
4746
  width: "20px"
4737
4747
  }),
4738
- o[2] || (o[2] = _(" Drag and drop files here "))
4739
- ])) : (r(), f("div", Da, [
4748
+ o[2] || (o[2] = I(" Drag and drop files here "))
4749
+ ])) : (r(), v("div", Oa, [
4740
4750
  k(n.$slots, "default")
4741
4751
  ]))
4742
4752
  ], 34));
4743
4753
  }
4744
- }), Na = { class: "d-flex align-items-center me-2" }, Ua = /* @__PURE__ */ $({
4754
+ }), Ua = { class: "d-flex align-items-center me-2" }, Aa = /* @__PURE__ */ $({
4745
4755
  __name: "UploadStatus",
4746
4756
  props: {
4747
4757
  fileSize: {},
@@ -4766,43 +4776,43 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
4766
4776
  return "Upload Failed: Connection error, please try again.";
4767
4777
  }
4768
4778
  });
4769
- return (i, l) => (r(), f("div", Na, [
4770
- i.uploadStatus === "Uploading" ? (r(), v(ia, {
4779
+ return (i, l) => (r(), v("div", Ua, [
4780
+ i.uploadStatus === "Uploading" ? (r(), f(la, {
4771
4781
  key: 0,
4772
4782
  pixelWidth: 200,
4773
4783
  animate: "",
4774
4784
  striped: ""
4775
4785
  }, {
4776
- default: g(() => [
4777
- _(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
4786
+ default: b(() => [
4787
+ I(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
4778
4788
  ]),
4779
4789
  _: 1
4780
4790
  })) : z("", !0),
4781
- i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (r(), v(se, {
4791
+ i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (r(), f(se, {
4782
4792
  key: 1,
4783
4793
  id: "upload-status-alert",
4784
4794
  severity: t.value,
4785
4795
  class: "mb-0 w-75 ms-auto"
4786
4796
  }, {
4787
- default: g(() => [
4788
- _(w(a.value), 1)
4797
+ default: b(() => [
4798
+ I(w(a.value), 1)
4789
4799
  ]),
4790
4800
  _: 1
4791
4801
  }, 8, ["severity"])) : z("", !0)
4792
4802
  ]));
4793
4803
  }
4794
- }), Aa = ["data-cy"], qa = { class: "ms-3 d-flex flex-column" }, Ea = {
4804
+ }), qa = ["data-cy"], Ea = { class: "ms-3 d-flex flex-column" }, La = {
4795
4805
  key: 1,
4796
4806
  id: "file-name"
4797
- }, La = {
4807
+ }, Ra = {
4798
4808
  class: "text-black-50",
4799
4809
  id: "file-type"
4800
- }, Ra = {
4810
+ }, Ha = {
4801
4811
  class: "text-black-50",
4802
4812
  id: "file-size"
4803
- }, Ha = { class: "ms-auto my-auto d-flex" }, Wa = /* @__PURE__ */ $({
4813
+ }, Wa = { class: "ms-auto my-auto d-flex" }, Ya = /* @__PURE__ */ $({
4804
4814
  __name: "FileInfo",
4805
- props: /* @__PURE__ */ N({
4815
+ props: /* @__PURE__ */ U({
4806
4816
  editableFileName: { type: Boolean },
4807
4817
  acceptedFileTypes: {},
4808
4818
  maxFileSize: {},
@@ -4817,16 +4827,16 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
4817
4827
  uploadStatus: { required: !0 },
4818
4828
  uploadStatusModifiers: {}
4819
4829
  }),
4820
- emits: /* @__PURE__ */ N(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
4830
+ emits: /* @__PURE__ */ U(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
4821
4831
  setup(e, { emit: t }) {
4822
- const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), n = t, o = I(a.value.name), s = I(""), p = I(0), c = I(), b = 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 : ja().getType(a.value.name)), S = () => {
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 = () => {
4823
4833
  o.value != null && (V(), a.value = new File([a.value], o.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
4824
4834
  }, V = () => {
4825
- let y = o.value.split("."), h = Sa.getExtension(F.value), P = o.value.split(".").pop();
4835
+ let y = o.value.split("."), h = Ca.getExtension(F.value), P = o.value.split(".").pop();
4826
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));
4827
4837
  }, M = async () => {
4828
- if (!b.value || !d.value) {
4829
- l.value = b.value ? "InvalidFileSize" : "InvalidFileType";
4838
+ if (!g.value || !d.value) {
4839
+ l.value = g.value ? "InvalidFileSize" : "InvalidFileType";
4830
4840
  return;
4831
4841
  }
4832
4842
  l.value = "Preparing", c.value = new AbortController();
@@ -4855,26 +4865,26 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
4855
4865
  l.value = "Failed";
4856
4866
  }
4857
4867
  }, q = async () => {
4858
- await Ca(l.value, s.value), n("deleted", a.value);
4868
+ await za(l.value, s.value), n("deleted", a.value);
4859
4869
  };
4860
4870
  return le(() => {
4861
4871
  e.autoUploadToBlob && M();
4862
4872
  }), (y, h) => {
4863
4873
  const P = A;
4864
- return r(), f("div", {
4874
+ return r(), v("div", {
4865
4875
  class: "py-4 px-3 d-flex",
4866
4876
  "data-cy": `file-info-${a.value.name}`
4867
4877
  }, [
4868
4878
  m("div", null, [
4869
- u(za)(a.value.type) ? (r(), v(u(Le), {
4879
+ u(Ta)(a.value.type) ? (r(), f(u(Le), {
4870
4880
  key: 0,
4871
4881
  id: "thumbnail-image",
4872
4882
  "image-class": "image-file-thumbnail border",
4873
- src: u(Ta)(a.value),
4883
+ src: u(ja)(a.value),
4874
4884
  alt: a.value.name,
4875
4885
  width: "75px",
4876
4886
  preview: ""
4877
- }, null, 8, ["src", "alt"])) : (r(), v(u(j), {
4887
+ }, null, 8, ["src", "alt"])) : (r(), f(u(j), {
4878
4888
  key: 1,
4879
4889
  id: "file-earmark",
4880
4890
  icon: "bi:file-earmark",
@@ -4882,9 +4892,9 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
4882
4892
  width: "75px"
4883
4893
  }))
4884
4894
  ]),
4885
- m("div", qa, [
4895
+ m("div", Ea, [
4886
4896
  m("div", null, [
4887
- y.editableFileName ? (r(), v(At, {
4897
+ y.editableFileName ? (r(), f(At, {
4888
4898
  key: 0,
4889
4899
  id: "edit-file-name",
4890
4900
  modelValue: o.value,
@@ -4892,68 +4902,70 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
4892
4902
  rules: y.customFileNameRules,
4893
4903
  name: a.value.name,
4894
4904
  "complete-action": S
4895
- }, null, 8, ["modelValue", "rules", "name"])) : (r(), f("span", Ea, w(o.value), 1))
4905
+ }, null, 8, ["modelValue", "rules", "name"])) : (r(), v("span", La, w(o.value), 1))
4896
4906
  ]),
4897
- m("span", La, "File type: " + w(a.value.type.split("/").pop()), 1),
4898
- m("span", Ra, "File size: " + w(u(pe)(a.value.size)), 1)
4907
+ m("span", Ra, "File type: " + w(a.value.type.split("/").pop()), 1),
4908
+ m("span", Ha, "File size: " + w(u(pe)(a.value.size)), 1)
4899
4909
  ]),
4900
- m("div", Ha, [
4901
- (r(), v(Ua, {
4910
+ m("div", Wa, [
4911
+ (r(), f(Aa, {
4902
4912
  key: l.value,
4903
4913
  "file-size": a.value.size,
4904
4914
  "upload-status": l.value,
4905
4915
  "bytes-uploaded": p.value,
4906
4916
  "max-file-size": y.maxFileSize
4907
4917
  }, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
4908
- l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (r(), v(P, {
4918
+ l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (r(), f(P, {
4909
4919
  key: 0,
4910
4920
  link: "",
4911
4921
  onClick: M
4912
4922
  }, {
4913
- default: g(() => [
4923
+ default: b(() => [
4914
4924
  x(u(j), {
4915
4925
  icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
4916
4926
  }, null, 8, ["icon"])
4917
4927
  ]),
4918
4928
  _: 1
4919
4929
  })) : z("", !0),
4920
- l.value === "Uploading" ? (r(), v(P, {
4930
+ l.value === "Uploading" ? (r(), f(P, {
4921
4931
  key: 1,
4922
4932
  link: "",
4923
4933
  onClick: h[1] || (h[1] = (L) => c.value.value.abort())
4924
4934
  }, {
4925
- default: g(() => [
4935
+ default: b(() => [
4926
4936
  x(u(j), { icon: "bi:x-circle-fill" })
4927
4937
  ]),
4928
4938
  _: 1
4929
- })) : (r(), v(P, {
4939
+ })) : (r(), f(P, {
4930
4940
  key: 2,
4931
4941
  link: "",
4932
4942
  onClick: q,
4933
4943
  id: "delete-button"
4934
4944
  }, {
4935
- default: g(() => [
4945
+ default: b(() => [
4936
4946
  x(u(j), { icon: "bi:trash" })
4937
4947
  ]),
4938
4948
  _: 1
4939
4949
  }))
4940
4950
  ])
4941
- ], 8, Aa);
4951
+ ], 8, qa);
4942
4952
  };
4943
4953
  }
4944
- }), Ya = { class: "d-flex justify-content-end mt-1" }, Ga = { id: "max-file-size" }, Ja = /* @__PURE__ */ $({
4945
- __name: "MaxFileSize",
4954
+ }), Ga = { class: "d-flex justify-content-end mt-1 gap-1" }, Ja = { id: "max-file-size" }, Ka = { id: "max-file-input" }, Za = /* @__PURE__ */ $({
4955
+ __name: "FileInputInfo",
4946
4956
  props: {
4947
- maxFileSize: {}
4957
+ maxFileSize: {},
4958
+ maxFileInput: {}
4948
4959
  },
4949
4960
  setup(e) {
4950
- return (t, a) => (r(), f("div", Ya, [
4951
- m("div", Ga, "Max file size: " + w(u(pe)(t.maxFileSize)), 1)
4961
+ return (t, a) => (r(), v("div", Ga, [
4962
+ m("div", Ja, "Max file size: " + w(u(pe)(t.maxFileSize)), 1),
4963
+ m("div", Ka, "| Max file count: " + w(t.maxFileInput), 1)
4952
4964
  ]));
4953
4965
  }
4954
- }), Ka = { "data-cy": "file-uploader" }, Za = { key: 0 }, tl = /* @__PURE__ */ $({
4966
+ }), Xa = { "data-cy": "file-uploader" }, Qa = { key: 0 }, il = /* @__PURE__ */ $({
4955
4967
  __name: "ForgeFileUploader",
4956
- props: /* @__PURE__ */ N({
4968
+ props: /* @__PURE__ */ U({
4957
4969
  acceptedFileTypes: {},
4958
4970
  maxFileSize: {},
4959
4971
  getFileUrlAction: {},
@@ -4971,22 +4983,22 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
4971
4983
  const t = D(e, "modelValue"), a = e, i = (l) => {
4972
4984
  t.value = t.value.filter((n) => n.file != l);
4973
4985
  };
4974
- return (l, n) => (r(), f("div", Ka, [
4975
- x(Va, C(a, {
4986
+ return (l, n) => (r(), v("div", Xa, [
4987
+ x(Ma, C(a, {
4976
4988
  modelValue: t.value,
4977
4989
  "onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o)
4978
4990
  }), null, 16, ["modelValue"]),
4979
- l.showDragDropArea ? (r(), f("div", Za, [
4980
- x(Oa, {
4991
+ l.showDragDropArea ? (r(), v("div", Qa, [
4992
+ x(Na, {
4981
4993
  "max-file-input": a.maxFileInput,
4982
4994
  "max-file-size": a.maxFileSize,
4983
4995
  "accepted-file-types": a.acceptedFileTypes,
4984
4996
  modelValue: t.value,
4985
4997
  "onUpdate:modelValue": n[1] || (n[1] = (o) => t.value = o)
4986
4998
  }, {
4987
- default: g(() => [
4988
- (r(!0), f(O, null, U(t.value, ({ file: o }, s) => (r(), f("span", null, [
4989
- (r(), v(Wa, C({
4999
+ default: b(() => [
5000
+ (r(!0), v(O, null, N(t.value, ({ file: o }, s) => (r(), v("span", null, [
5001
+ (r(), f(Ya, C({
4990
5002
  key: o.name,
4991
5003
  class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
4992
5004
  file: t.value[s].file,
@@ -5001,13 +5013,14 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
5001
5013
  ]),
5002
5014
  _: 1
5003
5015
  }, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
5004
- x(Ja, {
5005
- "max-file-size": a.maxFileSize
5006
- }, null, 8, ["max-file-size"])
5016
+ x(Za, {
5017
+ "max-file-size": a.maxFileSize,
5018
+ "max-file-input": l.maxFileInput
5019
+ }, null, 8, ["max-file-size", "max-file-input"])
5007
5020
  ])) : z("", !0)
5008
5021
  ]));
5009
5022
  }
5010
- }), Xa = { class: "d-flex" }, Qa = { class: "me-3" }, ei = { class: "ms-2" }, ti = { class: "d-flex flex-column w-100" }, al = /* @__PURE__ */ $({
5023
+ }), ei = { class: "d-flex" }, ti = { class: "me-3" }, ai = { class: "ms-2" }, ii = { class: "d-flex flex-column w-100" }, ll = /* @__PURE__ */ $({
5011
5024
  __name: "ForgeColumnCustomiser",
5012
5025
  props: {
5013
5026
  modelValue: { required: !0 },
@@ -5015,21 +5028,21 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
5015
5028
  },
5016
5029
  emits: ["update:modelValue"],
5017
5030
  setup(e) {
5018
- const t = D(e, "modelValue"), a = I(), i = I(!1), l = (n) => {
5031
+ const t = D(e, "modelValue"), a = _(), i = _(!1), l = (n) => {
5019
5032
  a.value.toggle(n);
5020
5033
  };
5021
- return (n, o) => (r(), f(O, null, [
5034
+ return (n, o) => (r(), v(O, null, [
5022
5035
  x(u(A), {
5023
5036
  onClick: l,
5024
5037
  class: "ms-2"
5025
5038
  }, {
5026
- default: g(() => [
5027
- m("div", Xa, [
5028
- m("div", Qa, [
5039
+ default: b(() => [
5040
+ m("div", ei, [
5041
+ m("div", ti, [
5029
5042
  x(u(j), { icon: "bi:layout-three-columns" })
5030
5043
  ]),
5031
- _(" Columns (" + w(t.value.filter((s) => s.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
5032
- m("div", ei, [
5044
+ I(" Columns (" + w(t.value.filter((s) => s.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
5045
+ m("div", ai, [
5033
5046
  x(u(j), {
5034
5047
  icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
5035
5048
  }, null, 8, ["icon"])
@@ -5045,9 +5058,9 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
5045
5058
  onHide: o[0] || (o[0] = () => i.value = !1),
5046
5059
  onShow: o[1] || (o[1] = () => i.value = !0)
5047
5060
  }, {
5048
- default: g(() => [
5049
- m("div", ti, [
5050
- (r(!0), f(O, null, U(t.value, (s, p) => (r(), f("div", {
5061
+ default: b(() => [
5062
+ m("div", ii, [
5063
+ (r(!0), v(O, null, N(t.value, (s, p) => (r(), v("div", {
5051
5064
  class: B(["d-flex cursor-pointer", {
5052
5065
  "border-top": p !== 0,
5053
5066
  "py-1": p !== 0 && t.value.length - 1 !== p,
@@ -5070,32 +5083,32 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
5070
5083
  }, 512)
5071
5084
  ], 64));
5072
5085
  }
5073
- }), il = /* @__PURE__ */ $({
5086
+ }), nl = /* @__PURE__ */ $({
5074
5087
  __name: "ForgePanel",
5075
5088
  setup(e) {
5076
5089
  return (t, a) => {
5077
5090
  const i = Re;
5078
- return r(), v(i, K(Z({ ...t.$attrs })), {
5079
- toggleicon: g(({ collapsed: l }) => [
5080
- l ? (r(), v(u(j), {
5091
+ return r(), f(i, J(K({ ...t.$attrs })), {
5092
+ toggleicon: b(({ collapsed: l }) => [
5093
+ l ? (r(), f(u(j), {
5081
5094
  key: 0,
5082
5095
  "data-cy": "message-icon",
5083
5096
  icon: "bi:chevron-down"
5084
5097
  })) : z("", !0),
5085
- l ? z("", !0) : (r(), v(u(j), {
5098
+ l ? z("", !0) : (r(), f(u(j), {
5086
5099
  key: 1,
5087
5100
  "data-cy": "message-icon",
5088
5101
  icon: "bi:chevron-up"
5089
5102
  }))
5090
5103
  ]),
5091
- default: g(() => [
5104
+ default: b(() => [
5092
5105
  k(t.$slots, "default")
5093
5106
  ]),
5094
5107
  _: 3
5095
5108
  }, 16);
5096
5109
  };
5097
5110
  }
5098
- }), ai = /* @__PURE__ */ $({
5111
+ }), li = /* @__PURE__ */ $({
5099
5112
  __name: "ForgeToggleButton",
5100
5113
  props: {
5101
5114
  severity: { default: "primary" }
@@ -5108,7 +5121,8 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
5108
5121
  {
5109
5122
  [`focus-ring focus-ring-${t.severity} btn-${t.severity}-subtle border border-2 border-${t.severity} fw-500 text-${t.severity}`]: i.context.active,
5110
5123
  [`border text-${t.severity} select-btn-${t.severity}`]: !i.context.active,
5111
- "btn-secondary-subtle": i.context.disabled
5124
+ "btn-secondary-subtle": i.context.disabled,
5125
+ "border-danger": i.props.invalid
5112
5126
  }
5113
5127
  ]
5114
5128
  }),
@@ -5121,46 +5135,59 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
5121
5135
  ]
5122
5136
  })
5123
5137
  }));
5124
- return (i, l) => (r(), v(u(He), C({ ...i.$attrs, ...t }, {
5138
+ return (i, l) => (r(), f(u(He), C({ ...i.$attrs, ...t }, {
5125
5139
  severity: t.severity,
5126
5140
  pt: a.value
5127
5141
  }), null, 16, ["severity", "pt"]));
5128
5142
  }
5129
- }), ii = {
5143
+ }), ni = {
5130
5144
  class: "btn-group",
5131
5145
  "data-cy": "forge-select-button"
5132
- }, ll = /* @__PURE__ */ $({
5146
+ }, ol = /* @__PURE__ */ $({
5133
5147
  __name: "ForgeSelectButton",
5134
- props: /* @__PURE__ */ N({
5135
- multiple: { type: Boolean, default: !1 },
5136
- allowEmpty: { type: Boolean, default: !0 }
5148
+ props: /* @__PURE__ */ U({
5149
+ options: {},
5150
+ multiple: { type: Boolean, default: !0 },
5151
+ allowEmpty: { type: Boolean, default: !1 },
5152
+ invalid: { type: Boolean, default: !1 }
5137
5153
  }, {
5138
5154
  modelValue: { required: !0 },
5139
5155
  modelModifiers: {}
5140
5156
  }),
5141
- emits: /* @__PURE__ */ N(["change"], ["update:modelValue"]),
5142
- setup(e, { emit: t }) {
5143
- const a = e, i = t, l = D(e, "modelValue"), n = (o) => {
5144
- if (o.disabled) return;
5145
- const s = o.selected && l.value.filter((p) => o.value != p.value && p.selected).length < 1;
5146
- !a.allowEmpty && s || (a.multiple || l.value.forEach((p) => {
5147
- p.value != o.value && (p.selected = !1);
5148
- }), o.selected = !o.selected, i("change", o));
5157
+ emits: ["update:modelValue"],
5158
+ 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)
5165
+ if (t.multiple) {
5166
+ let s = (o = a.value) != null && o.length ? [...a.value] : [];
5167
+ if (s.length >= 1 && s.includes(n.value)) {
5168
+ if (!t.allowEmpty && s.length === 1) return;
5169
+ s = s.length > 1 ? s.filter((c) => c !== n.value) : [];
5170
+ } else
5171
+ s.push(n.value);
5172
+ a.value = s;
5173
+ } else
5174
+ a.value = a.value === n.value && t.allowEmpty ? null : n.value;
5149
5175
  };
5150
- return (o, s) => (r(), f("div", ii, [
5151
- (r(!0), f(O, null, U(l.value, (p, c) => (r(), v(ai, {
5152
- onLabel: p.label,
5153
- offLabel: p.label,
5154
- severity: p.severity,
5155
- key: c,
5156
- onChange: (b) => n(p),
5157
- defaultValue: p.selected,
5158
- disabled: p.disabled,
5159
- "data-cy": `toggle-button-${p.value}`
5160
- }, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy"]))), 128))
5176
+ return (n, o) => (r(), v("div", ni, [
5177
+ (r(!0), v(O, null, N(n.options, (s, p) => (r(), f(li, {
5178
+ key: p,
5179
+ onLabel: s.label,
5180
+ offLabel: s.label,
5181
+ severity: s.severity,
5182
+ onChange: (c) => l(s),
5183
+ defaultValue: i(s),
5184
+ disabled: s.disabled,
5185
+ "data-cy": `toggle-button-${s.value}`,
5186
+ invalid: n.invalid
5187
+ }, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
5161
5188
  ]));
5162
5189
  }
5163
- }), ol = () => ({
5190
+ }), sl = () => ({
5164
5191
  type: "component",
5165
5192
  resolve: (e) => {
5166
5193
  if (e.startsWith("Forge"))
@@ -5171,37 +5198,37 @@ const Ia = { class: "d-flex justify-content-between" }, _a = ["accept", "disable
5171
5198
  }
5172
5199
  });
5173
5200
  export {
5174
- Di as Bootstrap_PT,
5175
- Oi as ForgeActionButton,
5201
+ Ni as Bootstrap_PT,
5202
+ Ui as ForgeActionButton,
5176
5203
  se as ForgeAlert,
5177
- Ni as ForgeAutoComplete,
5204
+ Ai as ForgeAutoComplete,
5178
5205
  fe as ForgeCheckbox,
5179
- Gi as ForgeChip,
5180
- al as ForgeColumnCustomiser,
5206
+ Ki as ForgeChip,
5207
+ ll as ForgeColumnCustomiser,
5181
5208
  be as ForgeDatepicker,
5182
- tl as ForgeFileUploader,
5183
- el as ForgeFilterHeader,
5184
- Wi as ForgeForm,
5185
- Yi as ForgeFormField,
5209
+ il as ForgeFileUploader,
5210
+ al as ForgeFilterHeader,
5211
+ Gi as ForgeForm,
5212
+ Ji as ForgeFormField,
5186
5213
  At as ForgeInlineEditor,
5187
- Ui as ForgeLink,
5214
+ qi as ForgeLink,
5188
5215
  ge as ForgeLoader,
5189
- Ei as ForgeModal,
5216
+ Ri as ForgeModal,
5190
5217
  Wt as ForgeMultiSelectPreview,
5191
- Li as ForgeNavbar,
5192
- Ri as ForgePageHeader,
5193
- il as ForgePanel,
5194
- ia as ForgeProgressBar,
5195
- Hi as ForgeRemainingCharacters,
5196
- ol as ForgeResolver,
5197
- Ji as ForgeScratchpad,
5198
- ll as ForgeSelectButton,
5199
- Ki as ForgeStatWidget,
5200
- Zi as ForgeStepper,
5201
- Qi as ForgeTable,
5202
- Xi as ForgeTile,
5203
- ai as ForgeToggleButton,
5204
- qi as convertToMultiSelectOption,
5205
- Ai as enumToMultiSelectList,
5218
+ Hi as ForgeNavbar,
5219
+ Wi as ForgePageHeader,
5220
+ nl as ForgePanel,
5221
+ la as ForgeProgressBar,
5222
+ Yi as ForgeRemainingCharacters,
5223
+ sl as ForgeResolver,
5224
+ Zi as ForgeScratchpad,
5225
+ ol as ForgeSelectButton,
5226
+ Xi as ForgeStatWidget,
5227
+ Qi as ForgeStepper,
5228
+ tl as ForgeTable,
5229
+ el as ForgeTile,
5230
+ li as ForgeToggleButton,
5231
+ Li as convertToMultiSelectOption,
5232
+ Ei as enumToMultiSelectList,
5206
5233
  It as parseError
5207
5234
  };