@3squared/forge-ui-3 2.12.3 → 2.13.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 W, guardReactiveProps as Y, 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 J, createSlots as ee, onMounted as le, isRef as we, withKeys as X, normalizeStyle as ke, withModifiers as K, watch as ce, h as $e, useTemplateRef as Fe } from "vue";
2
+ import { defineComponent as $, openBlock as r, createBlock as f, normalizeProps as W, guardReactiveProps as Y, withCtx as y, createElementVNode as m, normalizeClass as F, unref as u, createCommentVNode as S, createVNode as h, renderSlot as w, ref as I, createElementBlock as v, Fragment as O, mergeProps as z, renderList as N, mergeModels as U, useModel as D, computed as T, createTextVNode as _, toDisplayString as k, withDirectives as H, vShow as J, createSlots as ee, onMounted as le, isRef as we, withKeys as X, normalizeStyle as ke, withModifiers as K, watch as ue, 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,15 +8,15 @@ import Ce from "primevue/checkbox";
8
8
  import { useField as te } 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
- import Ie from "primevue/menubar";
14
- import ne from "primevue/multiselect";
15
- import _e from "primevue/datepicker";
13
+ import _e from "primevue/menubar";
14
+ import oe from "primevue/multiselect";
15
+ import Ie from "primevue/datepicker";
16
16
  import ae from "primevue/select";
17
17
  import Pe from "primevue/inputmask";
18
18
  import Ve from "primevue/textarea";
19
- import ue from "primevue/inputnumber";
19
+ import me from "primevue/inputnumber";
20
20
  import Me from "primevue/chip";
21
21
  import De from "primevue/progressbar";
22
22
  import Oe from "primevue/step";
@@ -25,8 +25,8 @@ import Ue from "primevue/steplist";
25
25
  import Ae from "primevue/steppanel";
26
26
  import qe from "primevue/steppanels";
27
27
  import Ee from "primevue/datatable";
28
- import { BlockBlobClient as me } from "@azure/storage-blob";
29
- import ve from "primevue/popover";
28
+ import { BlockBlobClient as ve } from "@azure/storage-blob";
29
+ import fe from "primevue/popover";
30
30
  import Le from "primevue/image";
31
31
  import Re from "primevue/panel";
32
32
  import { ToggleButton as He } from "primevue";
@@ -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"
@@ -1139,7 +1139,7 @@ const We = {
1139
1139
  accordionContent: {
1140
1140
  root: "mt-2 mx-4 mb-4"
1141
1141
  }
1142
- }, Ni = {
1142
+ }, Di = {
1143
1143
  ...We,
1144
1144
  ...mt,
1145
1145
  ...Ye,
@@ -1155,7 +1155,7 @@ const We = {
1155
1155
  ...Ze,
1156
1156
  ...Xe,
1157
1157
  ...Qe,
1158
- ...ot,
1158
+ ...nt,
1159
1159
  ...dt,
1160
1160
  ...vt,
1161
1161
  ...lt,
@@ -1164,7 +1164,7 @@ const We = {
1164
1164
  ...ct,
1165
1165
  ...gt,
1166
1166
  ...bt,
1167
- ...nt,
1167
+ ...ot,
1168
1168
  ...ut,
1169
1169
  ...et,
1170
1170
  ...st,
@@ -1199,30 +1199,30 @@ const We = {
1199
1199
  return (a, i) => {
1200
1200
  const l = he;
1201
1201
  return r(), f(l, W(Y({ ...a.$attrs, ...t })), {
1202
- icon: b(() => [
1202
+ icon: y(() => [
1203
1203
  m("div", {
1204
- class: B(t.icon ? "me-2 pe-1" : "")
1204
+ class: F(t.icon ? "me-2 pe-1" : "")
1205
1205
  }, [
1206
1206
  t.icon ? (r(), f(u(j), {
1207
1207
  key: 0,
1208
1208
  "data-cy": "message-icon",
1209
1209
  icon: t.icon,
1210
- class: B(`text-${t.severity}`),
1210
+ class: F(`text-${t.severity}`),
1211
1211
  height: 35
1212
1212
  }, null, 8, ["icon", "class"])) : S("", !0)
1213
1213
  ], 2)
1214
1214
  ]),
1215
- closeicon: b(() => [
1215
+ closeicon: y(() => [
1216
1216
  h(u(j), { icon: "bi:x" })
1217
1217
  ]),
1218
- default: b(() => [
1219
- k(a.$slots, "default")
1218
+ default: y(() => [
1219
+ w(a.$slots, "default")
1220
1220
  ]),
1221
1221
  _: 3
1222
1222
  }, 16);
1223
1223
  };
1224
1224
  }
1225
- }), Ui = /* @__PURE__ */ $({
1225
+ }), Oi = /* @__PURE__ */ $({
1226
1226
  __name: "ForgeActionButton",
1227
1227
  props: {
1228
1228
  action: {},
@@ -1231,7 +1231,7 @@ const We = {
1231
1231
  params: { default: Array }
1232
1232
  },
1233
1233
  setup(e) {
1234
- const t = _(!1), a = e, i = async () => {
1234
+ const t = I(!1), a = e, i = async () => {
1235
1235
  t.value = !0;
1236
1236
  try {
1237
1237
  await a.action.apply(this, a.params);
@@ -1240,10 +1240,10 @@ const We = {
1240
1240
  }
1241
1241
  t.value = !1;
1242
1242
  };
1243
- return (l, o) => {
1244
- const n = A;
1243
+ return (l, n) => {
1244
+ const o = A;
1245
1245
  return r(), v(O, null, [
1246
- h(n, z({ ...a, ...l.$attrs }, {
1246
+ h(o, z({ ...a, ...l.$attrs }, {
1247
1247
  loading: t.value,
1248
1248
  disabled: t.value || a.disabled,
1249
1249
  onClick: i
@@ -1252,17 +1252,17 @@ const We = {
1252
1252
  ], 64);
1253
1253
  };
1254
1254
  }
1255
- }), Ai = /* @__PURE__ */ $({
1255
+ }), Ni = /* @__PURE__ */ $({
1256
1256
  __name: "ForgeAutoComplete",
1257
1257
  setup(e) {
1258
1258
  return (t, a) => (r(), f(u(Se), z({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
1259
- default: b(() => [
1260
- (r(!0), v(O, null, N(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
1259
+ default: y(() => [
1260
+ (r(!0), v(O, null, N(t.$slots, (i, l) => w(t.$slots, l, { slot: l })), 256))
1261
1261
  ]),
1262
1262
  _: 3
1263
1263
  }, 16));
1264
1264
  }
1265
- }), Ct = { class: "d-flex flex-column" }, zt = ["for"], fe = /* @__PURE__ */ $({
1265
+ }), Ct = { class: "d-flex flex-column" }, zt = ["for"], ge = /* @__PURE__ */ $({
1266
1266
  __name: "ForgeCheckbox",
1267
1267
  props: /* @__PURE__ */ U({
1268
1268
  label: { default: "" },
@@ -1297,14 +1297,14 @@ const We = {
1297
1297
  }),
1298
1298
  emits: ["update:modelValue"],
1299
1299
  setup(e) {
1300
- const t = e, a = D(e, "modelValue"), { handleChange: i, errors: l, errorMessage: o } = te(
1300
+ const t = e, a = D(e, "modelValue"), { handleChange: i, errors: l, errorMessage: n } = te(
1301
1301
  () => t.name ?? "",
1302
1302
  void 0,
1303
1303
  {
1304
1304
  type: "checkbox",
1305
1305
  checkedValue: a.value
1306
1306
  }
1307
- ), n = (p, c) => {
1307
+ ), o = (p, c) => {
1308
1308
  (t.disabled || t.readonly) && p.preventDefault(), t.name ? i(c) : a.value = c;
1309
1309
  }, s = T(() => l.value.length > 0);
1310
1310
  return (p, c) => {
@@ -1313,7 +1313,7 @@ const We = {
1313
1313
  m("div", z({
1314
1314
  class: "d-flex",
1315
1315
  "data-cy": "checkbox-container",
1316
- onClick: c[2] || (c[2] = (d) => n(d, a.value))
1316
+ onClick: c[2] || (c[2] = (d) => o(d, a.value))
1317
1317
  }, { ...p.$attrs }), [
1318
1318
  h(g, z({ ...t }, {
1319
1319
  binary: "",
@@ -1325,41 +1325,54 @@ const We = {
1325
1325
  }), null, 16, ["modelValue", "input-id", "input-class", "class"]),
1326
1326
  m("label", {
1327
1327
  for: t.name,
1328
- onClick: c[1] || (c[1] = (d) => n(d, !a.value)),
1329
- class: B([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1328
+ onClick: c[1] || (c[1] = (d) => o(d, !a.value)),
1329
+ class: F([`${t.disabled || t.readonly ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1330
1330
  }, [
1331
- k(p.$slots, "default", {}, () => [
1332
- I(w(t.label), 1)
1331
+ w(p.$slots, "default", {}, () => [
1332
+ _(k(t.label), 1)
1333
1333
  ])
1334
1334
  ], 10, zt)
1335
1335
  ], 16),
1336
1336
  H(m("small", {
1337
1337
  "data-cy": "error",
1338
1338
  class: "text-invalid"
1339
- }, w(u(o)), 513), [
1339
+ }, k(u(n)), 513), [
1340
1340
  [J, s.value]
1341
1341
  ])
1342
1342
  ]);
1343
1343
  };
1344
1344
  }
1345
- }), Tt = { class: "forge-loader" }, ge = /* @__PURE__ */ $({
1345
+ }), re = /* @__PURE__ */ $({
1346
1346
  __name: "ForgeLoader",
1347
1347
  props: {
1348
- severity: { default: "primary" }
1348
+ severity: { default: "primary" },
1349
+ inLine: { type: Boolean, default: !1 }
1349
1350
  },
1350
1351
  setup(e) {
1351
- const t = e;
1352
- return (a, i) => {
1353
- const l = ze;
1354
- return r(), v("div", Tt, [
1355
- h(l, {
1352
+ const t = e, a = T(() => ({
1353
+ spin: () => ({
1354
+ class: [
1355
+ "spinner-border",
1356
+ {
1357
+ "spinner-border-sm": t.inLine
1358
+ }
1359
+ ]
1360
+ })
1361
+ }));
1362
+ return (i, l) => {
1363
+ const n = ze;
1364
+ return r(), v("div", {
1365
+ class: F(i.inLine ? "" : "forge-loader")
1366
+ }, [
1367
+ h(n, {
1356
1368
  "animation-duration": ".75",
1357
- class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
1358
- }, null, 8, ["class"])
1359
- ]);
1369
+ class: F(`text-${t.severity === void 0 ? "primary" : t.severity}`),
1370
+ pt: a.value
1371
+ }, null, 8, ["class", "pt"])
1372
+ ], 2);
1360
1373
  };
1361
1374
  }
1362
- }), jt = ["href", "target"], qi = /* @__PURE__ */ $({
1375
+ }), Tt = ["href", "target"], Ui = /* @__PURE__ */ $({
1363
1376
  __name: "ForgeLink",
1364
1377
  props: {
1365
1378
  url: {},
@@ -1395,23 +1408,23 @@ const We = {
1395
1408
  }));
1396
1409
  return (i, l) => (r(), v("a", {
1397
1410
  id: "link",
1398
- class: B(["cursor-pointer d-flex text-break", t.value]),
1411
+ class: F(["cursor-pointer d-flex text-break", t.value]),
1399
1412
  href: i.url,
1400
1413
  target: i.target
1401
1414
  }, [
1402
- k(i.$slots, "default", {}, () => [
1415
+ w(i.$slots, "default", {}, () => [
1403
1416
  i.iconName ? (r(), f(u(j), {
1404
1417
  key: 0,
1405
1418
  id: "link-icon",
1406
1419
  icon: i.iconName,
1407
- class: B(["bi my-auto", a.value])
1420
+ class: F(["bi my-auto", a.value])
1408
1421
  }, null, 8, ["icon", "class"])) : S("", !0),
1409
- I(" " + w(i.label), 1)
1422
+ _(" " + k(i.label), 1)
1410
1423
  ])
1411
- ], 10, jt));
1424
+ ], 10, Tt));
1412
1425
  }
1413
1426
  });
1414
- function It(e) {
1427
+ function jt(e) {
1415
1428
  const t = {
1416
1429
  errorMessage: "",
1417
1430
  errorDetails: []
@@ -1422,16 +1435,16 @@ function It(e) {
1422
1435
  }
1423
1436
  return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
1424
1437
  }
1425
- function Ei(e, t) {
1438
+ function Ai(e, t) {
1426
1439
  return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
1427
1440
  }
1428
- function Li(e, t, a) {
1441
+ function qi(e, t, a) {
1429
1442
  return { id: e, label: t ?? e.toString(), shortLabel: a };
1430
1443
  }
1431
- const _t = { key: 0 }, Pt = {
1444
+ const _t = { key: 0 }, It = {
1432
1445
  class: "d-flex w-100",
1433
1446
  "data-cy": "footer"
1434
- }, Ri = /* @__PURE__ */ $({
1447
+ }, Ei = /* @__PURE__ */ $({
1435
1448
  __name: "ForgeModal",
1436
1449
  props: /* @__PURE__ */ U({
1437
1450
  cancelText: { default: "Cancel" },
@@ -1492,8 +1505,8 @@ const _t = { key: 0 }, Pt = {
1492
1505
  }),
1493
1506
  emits: ["update:visible", "update:error"],
1494
1507
  setup(e, { expose: t }) {
1495
- const a = D(e, "visible"), i = _(!1), l = e, o = _(!1), n = D(e, "error"), s = () => {
1496
- n.value = {
1508
+ const a = D(e, "visible"), i = I(!1), l = e, n = I(!1), o = D(e, "error"), s = () => {
1509
+ o.value = {
1497
1510
  hasError: !1,
1498
1511
  header: "",
1499
1512
  message: []
@@ -1510,18 +1523,18 @@ const _t = { key: 0 }, Pt = {
1510
1523
  l.resetErrorOnClose && s(), a.value = !1;
1511
1524
  }, d = async () => {
1512
1525
  if (l.onConfirm) {
1513
- o.value = !0, n.value.hasError = !1;
1526
+ n.value = !0, o.value.hasError = !1;
1514
1527
  try {
1515
1528
  const C = await l.onConfirm();
1516
1529
  (C || C == null) && g();
1517
1530
  } catch (C) {
1518
- n.value.hasError = !0;
1519
- const V = It(C);
1520
- n.value.header = V.errorMessage, n.value.message = V.errorDetails;
1531
+ o.value.hasError = !0;
1532
+ const V = jt(C);
1533
+ o.value.header = V.errorMessage, o.value.message = V.errorDetails;
1521
1534
  }
1522
- o.value = !1;
1535
+ n.value = !1;
1523
1536
  }
1524
- }, F = T(() => ({
1537
+ }, B = T(() => ({
1525
1538
  root: [
1526
1539
  "modal modal-dialog modal-content h-auto m-0",
1527
1540
  {
@@ -1543,9 +1556,9 @@ const _t = { key: 0 }, Pt = {
1543
1556
  return r(), f(q, z(l, {
1544
1557
  onMaximize: c,
1545
1558
  onUnmaximize: p,
1546
- pt: F.value
1559
+ pt: B.value
1547
1560
  }), ee({
1548
- closeicon: b(() => [
1561
+ closeicon: y(() => [
1549
1562
  h(u(j), {
1550
1563
  "data-cy": "close-icon",
1551
1564
  icon: "bi:x-lg",
@@ -1554,7 +1567,7 @@ const _t = { key: 0 }, Pt = {
1554
1567
  onClick: g
1555
1568
  })
1556
1569
  ]),
1557
- maximizeicon: b(() => [
1570
+ maximizeicon: y(() => [
1558
1571
  h(u(j), {
1559
1572
  "data-cy": "maximisable-icon",
1560
1573
  icon: i.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
@@ -1564,39 +1577,39 @@ const _t = { key: 0 }, Pt = {
1564
1577
  ]),
1565
1578
  _: 2
1566
1579
  }, [
1567
- N(C.$slots, (y, x) => ({
1580
+ N(C.$slots, (b, x) => ({
1568
1581
  name: x,
1569
- fn: b((P) => [
1582
+ fn: y((P) => [
1570
1583
  x !== "footer" ? (r(), v(O, { key: 0 }, [
1571
- n.value.hasError ? (r(), f(se, {
1584
+ o.value.hasError ? (r(), f(se, {
1572
1585
  key: 0,
1573
1586
  severity: "danger",
1574
1587
  "data-cy": "error"
1575
1588
  }, {
1576
- default: b(() => [
1589
+ default: y(() => [
1577
1590
  m("p", {
1578
- class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
1579
- }, w(n.value.header), 3),
1580
- n.value.message.length > 0 ? (r(), v("ul", _t, [
1581
- (r(!0), v(O, null, N(n.value.message, (L) => (r(), v("li", { key: L }, w(L), 1))), 128))
1591
+ class: F(o.value.message.length > 0 ? "my-auto" : "mb-0")
1592
+ }, k(o.value.header), 3),
1593
+ o.value.message.length > 0 ? (r(), v("ul", _t, [
1594
+ (r(!0), v(O, null, N(o.value.message, (L) => (r(), v("li", { key: L }, k(L), 1))), 128))
1582
1595
  ])) : S("", !0)
1583
1596
  ]),
1584
1597
  _: 1
1585
1598
  })) : S("", !0)
1586
1599
  ], 64)) : S("", !0),
1587
- k(C.$slots, x, W(Y(P || {}))),
1588
- o.value ? k(C.$slots, "loader", { key: 1 }, () => [
1589
- h(ge, { "data-cy": "loader" })
1600
+ w(C.$slots, x, W(Y(P || {}))),
1601
+ n.value ? w(C.$slots, "loader", { key: 1 }, () => [
1602
+ h(re, { "data-cy": "loader" })
1590
1603
  ]) : S("", !0)
1591
1604
  ])
1592
1605
  })),
1593
1606
  C.showFooter ? {
1594
1607
  name: "footer",
1595
- fn: b(() => [
1596
- m("div", Pt, [
1608
+ fn: y(() => [
1609
+ m("div", It, [
1597
1610
  h(M, {
1598
1611
  label: C.cancelText,
1599
- class: B(l.cancelClass),
1612
+ class: F(l.cancelClass),
1600
1613
  outlined: "",
1601
1614
  onClick: g,
1602
1615
  id: "cancel-button",
@@ -1604,7 +1617,7 @@ const _t = { key: 0 }, Pt = {
1604
1617
  }, null, 8, ["label", "class", "type"]),
1605
1618
  h(M, {
1606
1619
  label: C.submitText,
1607
- class: B([l.submitClass, "ms-auto"]),
1620
+ class: F([l.submitClass, "ms-auto"]),
1608
1621
  onClick: d,
1609
1622
  id: "submit-button",
1610
1623
  type: l.submitButtonType
@@ -1616,7 +1629,7 @@ const _t = { key: 0 }, Pt = {
1616
1629
  ]), 1040, ["pt"]);
1617
1630
  };
1618
1631
  }
1619
- }), 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__ */ $({
1632
+ }), Pt = ["id"], Vt = { key: 0 }, Mt = { key: 0 }, Dt = { class: "d-flex justify-content-between align-items-center position-relative" }, Ot = { key: 1 }, Nt = { "data-cy": "readonly-value" }, Ut = /* @__PURE__ */ $({
1620
1633
  __name: "ForgeInlineEditor",
1621
1634
  props: /* @__PURE__ */ U({
1622
1635
  name: { default: "" },
@@ -1631,11 +1644,11 @@ const _t = { key: 0 }, Pt = {
1631
1644
  }),
1632
1645
  emits: ["update:modelValue"],
1633
1646
  setup(e) {
1634
- const t = e, a = D(e, "modelValue"), i = _(!1), l = _(), o = () => {
1647
+ const t = e, a = D(e, "modelValue"), i = I(!1), l = I(), n = () => {
1635
1648
  var C;
1636
1649
  i.value = !i.value, (C = l.value) == null || C.focus();
1637
- }, n = async () => {
1638
- if (F.value)
1650
+ }, o = async () => {
1651
+ if (B.value)
1639
1652
  return !1;
1640
1653
  if (a.value = d.value, t.completeAction)
1641
1654
  try {
@@ -1655,35 +1668,35 @@ const _t = { key: 0 }, Pt = {
1655
1668
  le(() => {
1656
1669
  d.value = a.value;
1657
1670
  });
1658
- const F = T(() => g.value.length > 0);
1671
+ const B = T(() => g.value.length > 0);
1659
1672
  return (C, V) => {
1660
- const M = oe, q = A;
1673
+ const M = ne, q = A;
1661
1674
  return r(), v("div", {
1662
1675
  id: t.name
1663
1676
  }, [
1664
- C.readonly ? (r(), v("div", Nt, [
1665
- k(C.$slots, "default", {}, () => [
1666
- m("span", Ut, w(u(d)), 1)
1677
+ C.readonly ? (r(), v("div", Ot, [
1678
+ w(C.$slots, "default", {}, () => [
1679
+ m("span", Nt, k(u(d)), 1)
1667
1680
  ])
1668
- ])) : (r(), v("div", Mt, [
1669
- i.value ? (r(), v("div", Dt, [
1670
- H((r(), v("div", Ot, [
1671
- k(C.$slots, "editor", {
1672
- class: B({ "is-invalid": F.value }),
1673
- editFinished: n,
1681
+ ])) : (r(), v("div", Vt, [
1682
+ i.value ? (r(), v("div", Mt, [
1683
+ H((r(), v("div", Dt, [
1684
+ w(C.$slots, "editor", {
1685
+ class: F({ "is-invalid": B.value }),
1686
+ editFinished: o,
1674
1687
  cancel: s,
1675
1688
  val: u(d)
1676
1689
  }, () => [
1677
1690
  h(M, {
1678
1691
  modelValue: u(d),
1679
- "onUpdate:modelValue": V[0] || (V[0] = (y) => we(d) ? d.value = y : null),
1692
+ "onUpdate:modelValue": V[0] || (V[0] = (b) => we(d) ? d.value = b : null),
1680
1693
  modelModifiers: { trim: !0 },
1681
1694
  "data-cy": "input",
1682
1695
  ref_key: "input",
1683
1696
  ref: l,
1684
- class: B({ "is-invalid": F.value }),
1697
+ class: F({ "is-invalid": B.value }),
1685
1698
  onKeydown: [
1686
- X(n, ["enter"]),
1699
+ X(o, ["enter"]),
1687
1700
  X(s, ["esc"])
1688
1701
  ]
1689
1702
  }, null, 8, ["modelValue", "class"])
@@ -1696,30 +1709,30 @@ const _t = { key: 0 }, Pt = {
1696
1709
  "data-cy": "clear-icon"
1697
1710
  })
1698
1711
  ])), [
1699
- [u(je), n]
1712
+ [u(je), o]
1700
1713
  ])
1701
1714
  ])) : (r(), v("div", {
1702
1715
  key: 1,
1703
1716
  class: "d-flex text-muted",
1704
- onClick: o,
1705
- onFocus: o
1717
+ onClick: n,
1718
+ onFocus: n
1706
1719
  }, [
1707
- k(C.$slots, "default", {}, () => [
1720
+ w(C.$slots, "default", {}, () => [
1708
1721
  m("div", {
1709
- class: B(["pe-2 cursor-pointer", { "text-invalid": F.value }]),
1722
+ class: F(["pe-2 cursor-pointer", { "text-invalid": B.value }]),
1710
1723
  "data-cy": "value"
1711
- }, w(u(d) ? u(d) : "Click to edit"), 3)
1724
+ }, k(u(d) ? u(d) : "Click to edit"), 3)
1712
1725
  ]),
1713
1726
  h(q, {
1714
1727
  link: "",
1715
1728
  class: "p-0 m-0"
1716
1729
  }, {
1717
- default: b(() => [
1730
+ default: y(() => [
1718
1731
  h(u(j), {
1719
1732
  icon: "bi:pencil",
1720
- class: B(F.value ? "text-invalid" : "text-muted"),
1733
+ class: F(B.value ? "text-invalid" : "text-muted"),
1721
1734
  "data-cy": "edit-icon",
1722
- onKeydown: X(o, ["enter"])
1735
+ onKeydown: X(n, ["enter"])
1723
1736
  }, null, 8, ["class"])
1724
1737
  ]),
1725
1738
  _: 1
@@ -1729,13 +1742,13 @@ const _t = { key: 0 }, Pt = {
1729
1742
  H(m("small", {
1730
1743
  "data-cy": "error",
1731
1744
  class: "text-invalid"
1732
- }, w(u(c)), 513), [
1733
- [J, F.value]
1745
+ }, k(u(c)), 513), [
1746
+ [J, B.value]
1734
1747
  ])
1735
- ], 8, Vt);
1748
+ ], 8, Pt);
1736
1749
  };
1737
1750
  }
1738
- }), qt = ["href"], Hi = /* @__PURE__ */ $({
1751
+ }), At = ["href"], Li = /* @__PURE__ */ $({
1739
1752
  __name: "ForgeNavbar",
1740
1753
  props: {
1741
1754
  severity: { default: "light" },
@@ -1779,26 +1792,26 @@ const _t = { key: 0 }, Pt = {
1779
1792
  ]
1780
1793
  })
1781
1794
  }));
1782
- return (i, l) => (r(), f(u(Ie), z({ ...t, ...i.$attrs }, {
1795
+ return (i, l) => (r(), f(u(_e), z({ ...t, ...i.$attrs }, {
1783
1796
  pt: a.value,
1784
1797
  "data-cy": "navbar"
1785
1798
  }), ee({
1786
- start: b(() => [
1799
+ start: y(() => [
1787
1800
  m("a", {
1788
1801
  href: i.logoUrl,
1789
1802
  class: "navbar-brand ms-3",
1790
1803
  "data-cy": "logo"
1791
1804
  }, [
1792
- k(i.$slots, "logo", {}, () => [
1793
- l[0] || (l[0] = I(" Logo "))
1805
+ w(i.$slots, "logo", {}, () => [
1806
+ l[0] || (l[0] = _(" Logo "))
1794
1807
  ])
1795
- ], 8, qt)
1808
+ ], 8, At)
1796
1809
  ]),
1797
- buttonicon: b(() => [
1798
- k(i.$slots, "buttonIcon", {}, () => [
1810
+ buttonicon: y(() => [
1811
+ w(i.$slots, "buttonIcon", {}, () => [
1799
1812
  h(u(j), {
1800
1813
  icon: "bi:list",
1801
- class: B(t.severity === "light" ? "text-black" : "text-white"),
1814
+ class: F(t.severity === "light" ? "text-black" : "text-white"),
1802
1815
  height: "24",
1803
1816
  "data-cy": "burger-icon"
1804
1817
  }, null, 8, ["class"])
@@ -1806,22 +1819,22 @@ const _t = { key: 0 }, Pt = {
1806
1819
  ]),
1807
1820
  _: 2
1808
1821
  }, [
1809
- N(i.$slots, (o, n) => ({
1810
- name: n,
1811
- fn: b((s) => [
1812
- k(i.$slots, n, W(Y(s)))
1822
+ N(i.$slots, (n, o) => ({
1823
+ name: o,
1824
+ fn: y((s) => [
1825
+ w(i.$slots, o, W(Y(s)))
1813
1826
  ])
1814
1827
  }))
1815
1828
  ]), 1040, ["pt"]));
1816
1829
  }
1817
- }), Et = { class: "border alternating-item-list" }, Lt = {
1830
+ }), qt = { class: "border alternating-item-list" }, Et = {
1818
1831
  key: 0,
1819
1832
  class: "p-2 border-top border-bottom",
1820
1833
  "data-cy": "title"
1821
- }, Rt = { class: "d-inline-block" }, Ht = {
1834
+ }, Lt = { class: "d-inline-block" }, Rt = {
1822
1835
  key: 1,
1823
1836
  class: "p-2 item d-flex justify-content-between align-items-center"
1824
- }, Wt = /* @__PURE__ */ $({
1837
+ }, Ht = /* @__PURE__ */ $({
1825
1838
  __name: "ForgeMultiSelectPreview",
1826
1839
  props: /* @__PURE__ */ U({
1827
1840
  title: { default: "Selected Items" },
@@ -1838,50 +1851,50 @@ const _t = { key: 0 }, Pt = {
1838
1851
  emits: ["update:modelValue"],
1839
1852
  setup(e) {
1840
1853
  const t = e, a = D(e, "modelValue"), i = (l) => {
1841
- a.value = a.value.filter((o) => o.id !== l);
1854
+ a.value = a.value.filter((n) => n.id !== l);
1842
1855
  };
1843
- return (l, o) => {
1844
- const n = ne, s = A;
1856
+ return (l, n) => {
1857
+ const o = oe, s = A;
1845
1858
  return r(), v("div", {
1846
- class: B(l.orientation === "column" ? "row" : ""),
1859
+ class: F(l.orientation === "column" ? "row" : ""),
1847
1860
  "data-cy": "multiselect-preview"
1848
1861
  }, [
1849
1862
  m("div", {
1850
- class: B(l.orientation === "row" ? "col-12 mb-1" : "col"),
1863
+ class: F(l.orientation === "row" ? "col-12 mb-1" : "col"),
1851
1864
  "data-cy": "multiselect-container"
1852
1865
  }, [
1853
- h(n, z({
1866
+ h(o, z({
1854
1867
  modelValue: a.value,
1855
- "onUpdate:modelValue": o[0] || (o[0] = (p) => a.value = p)
1868
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => a.value = p)
1856
1869
  }, { ...l.$attrs }, {
1857
1870
  options: t.options ?? [],
1858
1871
  optionLabel: "label",
1859
1872
  placeholder: l.multiselectPlaceholder,
1860
1873
  "data-cy": "multiselect"
1861
1874
  }), {
1862
- default: b(() => [
1863
- (r(!0), v(O, null, N(l.$slots, (p, c) => k(l.$slots, c, { slot: c })), 256))
1875
+ default: y(() => [
1876
+ (r(!0), v(O, null, N(l.$slots, (p, c) => w(l.$slots, c, { slot: c })), 256))
1864
1877
  ]),
1865
1878
  _: 3
1866
1879
  }, 16, ["modelValue", "options", "placeholder"]),
1867
- k(l.$slots, "after-multi-select")
1880
+ w(l.$slots, "after-multi-select")
1868
1881
  ], 2),
1869
1882
  m("div", {
1870
- class: B(l.orientation === "row" ? "col-12" : "col"),
1883
+ class: F(l.orientation === "row" ? "col-12" : "col"),
1871
1884
  "data-cy": "options-preview"
1872
1885
  }, [
1873
1886
  m("div", {
1874
1887
  style: ke({ height: l.height }),
1875
1888
  class: "overflow-auto"
1876
1889
  }, [
1877
- m("div", Et, [
1878
- l.title ? (r(), v("div", Lt, w(l.title), 1)) : S("", !0),
1890
+ m("div", qt, [
1891
+ l.title ? (r(), v("div", Et, k(l.title), 1)) : S("", !0),
1879
1892
  (r(!0), v(O, null, N(a.value, (p) => (r(), v("div", {
1880
1893
  key: p.id,
1881
1894
  class: "p-2 item d-flex justify-content-between align-items-center"
1882
1895
  }, [
1883
- k(l.$slots, "list-item", { item: p }, () => [
1884
- m("span", Rt, w(p.shortLabel ? p.shortLabel : p.label), 1)
1896
+ w(l.$slots, "list-item", { item: p }, () => [
1897
+ m("span", Lt, k(p.shortLabel ? p.shortLabel : p.label), 1)
1885
1898
  ]),
1886
1899
  l.canRemoveItemFromPreview ? (r(), f(s, {
1887
1900
  key: 0,
@@ -1889,7 +1902,7 @@ const _t = { key: 0 }, Pt = {
1889
1902
  class: "m-0 p-0 d-flex align-items-center",
1890
1903
  onClick: (c) => i(p.id)
1891
1904
  }, {
1892
- default: b(() => [
1905
+ default: y(() => [
1893
1906
  h(u(j), {
1894
1907
  icon: "bi:x",
1895
1908
  class: "close-icon",
@@ -1899,34 +1912,34 @@ const _t = { key: 0 }, Pt = {
1899
1912
  _: 2
1900
1913
  }, 1032, ["onClick"])) : S("", !0)
1901
1914
  ]))), 128)),
1902
- a.value == null || a.value.length == 0 ? (r(), v("div", Ht, w(t.optionsPreviewEmptyText), 1)) : S("", !0)
1915
+ a.value == null || a.value.length == 0 ? (r(), v("div", Rt, k(t.optionsPreviewEmptyText), 1)) : S("", !0)
1903
1916
  ])
1904
1917
  ], 4)
1905
1918
  ], 2)
1906
1919
  ], 2);
1907
1920
  };
1908
1921
  }
1909
- }), Yt = { class: "d-flex justify-content-between pb-2" }, Gt = {
1922
+ }), Wt = { class: "d-flex justify-content-between pb-2" }, Yt = {
1910
1923
  "data-cy": "title",
1911
1924
  class: "my-auto"
1912
- }, Jt = {
1925
+ }, Gt = {
1913
1926
  "data-cy": "slot",
1914
1927
  class: "d-flex align-items-center"
1915
- }, Wi = /* @__PURE__ */ $({
1928
+ }, Ri = /* @__PURE__ */ $({
1916
1929
  __name: "ForgePageHeader",
1917
1930
  props: {
1918
1931
  title: {}
1919
1932
  },
1920
1933
  setup(e) {
1921
1934
  const t = e;
1922
- return (a, i) => (r(), v("div", Yt, [
1923
- m("h3", Gt, w(t.title), 1),
1924
- m("div", Jt, [
1925
- k(a.$slots, "default")
1935
+ return (a, i) => (r(), v("div", Wt, [
1936
+ m("h3", Yt, k(t.title), 1),
1937
+ m("div", Gt, [
1938
+ w(a.$slots, "default")
1926
1939
  ])
1927
1940
  ]));
1928
1941
  }
1929
- }), Kt = { class: "d-flex" }, Zt = { "data-cy": "before-slot" }, Xt = { class: "position-relative w-100" }, Qt = { "data-cy": "after-slot" }, be = /* @__PURE__ */ $({
1942
+ }), Jt = { class: "d-flex" }, Kt = { "data-cy": "before-slot" }, Zt = { class: "position-relative w-100" }, Xt = { "data-cy": "after-slot" }, be = /* @__PURE__ */ $({
1930
1943
  __name: "ForgeDatepicker",
1931
1944
  props: /* @__PURE__ */ U({
1932
1945
  severity: { default: "primary" },
@@ -2002,7 +2015,7 @@ const _t = { key: 0 }, Pt = {
2002
2015
  }),
2003
2016
  emits: ["update:modelValue"],
2004
2017
  setup(e) {
2005
- const t = e, a = D(e, "modelValue"), { errors: i, errorMessage: l, handleChange: o, handleBlur: n, setValue: s } = te(() => t.name, void 0, {
2018
+ const t = e, a = D(e, "modelValue"), { errors: i, errorMessage: l, handleChange: n, handleBlur: o, setValue: s } = te(() => t.name, void 0, {
2006
2019
  initialValue: a.value
2007
2020
  }), p = () => {
2008
2021
  s(null), a.value = null;
@@ -2097,28 +2110,28 @@ const _t = { key: 0 }, Pt = {
2097
2110
  ]
2098
2111
  })
2099
2112
  }));
2100
- return (d, F) => {
2101
- const C = _e;
2113
+ return (d, B) => {
2114
+ const C = Ie;
2102
2115
  return r(), v(O, null, [
2103
- m("div", Kt, [
2104
- m("span", Zt, [
2105
- k(d.$slots, "before")
2116
+ m("div", Jt, [
2117
+ m("span", Kt, [
2118
+ w(d.$slots, "before")
2106
2119
  ]),
2107
- m("div", Xt, [
2120
+ m("div", Zt, [
2108
2121
  h(C, z({ ...t, ...d.$attrs }, {
2109
2122
  pt: g.value,
2110
2123
  modelValue: a.value,
2111
2124
  "onUpdate:modelValue": [
2112
- F[0] || (F[0] = (V) => a.value = V),
2113
- u(o)
2125
+ B[0] || (B[0] = (V) => a.value = V),
2126
+ u(n)
2114
2127
  ],
2115
- onBlur: F[1] || (F[1] = () => u(n)),
2128
+ onBlur: B[1] || (B[1] = () => u(o)),
2116
2129
  "input-class": { "datepicker-invalid": c.value }
2117
2130
  }), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
2118
2131
  H(h(u(j), {
2119
2132
  "data-cy": "icon",
2120
2133
  icon: "bi:calendar4",
2121
- class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${c.value ? "text-danger-dark" : "text-muted"}`])
2134
+ class: F(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${c.value ? "text-danger-dark" : "text-muted"}`])
2122
2135
  }, null, 8, ["class"]), [
2123
2136
  [J, t.showIcon]
2124
2137
  ]),
@@ -2126,25 +2139,25 @@ const _t = { key: 0 }, Pt = {
2126
2139
  "data-cy": "icon",
2127
2140
  icon: "bi:x",
2128
2141
  onClick: p,
2129
- class: B(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
2142
+ class: F(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
2130
2143
  }, null, 8, ["class"]), [
2131
2144
  [J, t.modelValue]
2132
2145
  ])
2133
2146
  ]),
2134
- m("span", Qt, [
2135
- k(d.$slots, "after")
2147
+ m("span", Xt, [
2148
+ w(d.$slots, "after")
2136
2149
  ])
2137
2150
  ]),
2138
2151
  H(m("small", {
2139
2152
  "data-cy": "error",
2140
2153
  class: "text-invalid"
2141
- }, w(u(l)), 513), [
2154
+ }, k(u(l)), 513), [
2142
2155
  [J, c.value]
2143
2156
  ])
2144
2157
  ], 64);
2145
2158
  };
2146
2159
  }
2147
- }), Yi = /* @__PURE__ */ $({
2160
+ }), Hi = /* @__PURE__ */ $({
2148
2161
  __name: "ForgeRemainingCharacters",
2149
2162
  props: {
2150
2163
  maxCount: { default: 300 },
@@ -2153,10 +2166,10 @@ const _t = { key: 0 }, Pt = {
2153
2166
  setup(e) {
2154
2167
  const t = e, a = T(() => t.maxCount - t.currentCount);
2155
2168
  return (i, l) => (r(), v("div", {
2156
- class: B(a.value < 0 ? "text-danger" : "")
2157
- }, "Remaining characters: " + w(a.value), 3));
2169
+ class: F(a.value < 0 ? "text-danger" : "")
2170
+ }, "Remaining characters: " + k(a.value), 3));
2158
2171
  }
2159
- }), ea = { class: "d-flex justify-content-between" }, Gi = /* @__PURE__ */ $({
2172
+ }), Qt = { class: "d-flex justify-content-between" }, Wi = /* @__PURE__ */ $({
2160
2173
  __name: "ForgeForm",
2161
2174
  props: {
2162
2175
  onSubmit: {},
@@ -2168,7 +2181,7 @@ const _t = { key: 0 }, Pt = {
2168
2181
  hideCancel: { type: Boolean, default: !1 }
2169
2182
  },
2170
2183
  setup(e) {
2171
- const t = e, a = _(!1), i = _({
2184
+ const t = e, a = I(!1), i = I({
2172
2185
  hasError: !1,
2173
2186
  message: ""
2174
2187
  });
@@ -2176,86 +2189,86 @@ const _t = { key: 0 }, Pt = {
2176
2189
  a.value = !0, i.value.hasError = !1;
2177
2190
  try {
2178
2191
  await t.onSubmit();
2179
- } catch (o) {
2180
- i.value.hasError = !0, o.message && (i.value.message = o.message);
2192
+ } catch (n) {
2193
+ i.value.hasError = !0, n.message && (i.value.message = n.message);
2181
2194
  }
2182
2195
  a.value = !1;
2183
2196
  }
2184
- return (o, n) => {
2197
+ return (n, o) => {
2185
2198
  const s = A;
2186
- return r(), v("form", z(o.$attrs, {
2199
+ return r(), v("form", z(n.$attrs, {
2187
2200
  novalidate: "",
2188
2201
  class: "position-relative shadow-sm border p-4 bg-white",
2189
2202
  onSubmit: K(l, ["prevent"])
2190
2203
  }), [
2191
- o.hideTitle ? S("", !0) : (r(), v(O, { key: 0 }, [
2192
- k(o.$slots, "title", {}, () => [
2204
+ n.hideTitle ? S("", !0) : (r(), v(O, { key: 0 }, [
2205
+ w(n.$slots, "title", {}, () => [
2193
2206
  m("h3", {
2194
- class: B(o.titleClass),
2207
+ class: F(n.titleClass),
2195
2208
  "data-cy": "form-title"
2196
- }, w(o.title), 3)
2209
+ }, k(n.title), 3)
2197
2210
  ]),
2198
- n[1] || (n[1] = m("hr", null, null, -1))
2211
+ o[1] || (o[1] = m("hr", null, null, -1))
2199
2212
  ], 64)),
2200
2213
  i.value.hasError ? (r(), f(se, {
2201
2214
  key: 1,
2202
2215
  severity: "danger",
2203
2216
  "data-cy": "error"
2204
2217
  }, {
2205
- default: b(() => [
2206
- k(o.$slots, "error", {
2218
+ default: y(() => [
2219
+ w(n.$slots, "error", {
2207
2220
  error: i.value.message
2208
2221
  }, () => [
2209
- I(w(i.value.message), 1)
2222
+ _(k(i.value.message), 1)
2210
2223
  ])
2211
2224
  ]),
2212
2225
  _: 3
2213
2226
  })) : S("", !0),
2214
- k(o.$slots, "default"),
2215
- m("div", ea, [
2216
- k(o.$slots, "cancel", {}, () => [
2217
- o.hideCancel ? S("", !0) : (r(), f(s, {
2227
+ w(n.$slots, "default"),
2228
+ m("div", Qt, [
2229
+ w(n.$slots, "cancel", {}, () => [
2230
+ n.hideCancel ? S("", !0) : (r(), f(s, {
2218
2231
  key: 0,
2219
2232
  "data-cy": "cancel-btn",
2220
2233
  type: "reset",
2221
2234
  severity: "secondary",
2222
2235
  outlined: "",
2223
- onClick: n[0] || (n[0] = (p) => o.$emit("cancel"))
2236
+ onClick: o[0] || (o[0] = (p) => n.$emit("cancel"))
2224
2237
  }, {
2225
- default: b(() => [
2226
- I(w(o.cancelText), 1)
2238
+ default: y(() => [
2239
+ _(k(n.cancelText), 1)
2227
2240
  ]),
2228
2241
  _: 1
2229
2242
  }))
2230
2243
  ]),
2231
- k(o.$slots, "submit", { submit: l }, () => [
2244
+ w(n.$slots, "submit", { submit: l }, () => [
2232
2245
  h(s, {
2233
2246
  "data-cy": "submit-btn",
2234
2247
  type: "submit",
2235
2248
  severity: "primary",
2236
2249
  class: "ms-auto"
2237
2250
  }, {
2238
- default: b(() => [
2239
- I(w(o.submitText), 1)
2251
+ default: y(() => [
2252
+ _(k(n.submitText), 1)
2240
2253
  ]),
2241
2254
  _: 1
2242
2255
  })
2243
2256
  ])
2244
2257
  ]),
2245
- a.value ? (r(), f(ge, {
2258
+ a.value ? (r(), f(re, {
2246
2259
  key: 2,
2247
2260
  "data-cy": "loading-spinner"
2248
2261
  })) : S("", !0)
2249
2262
  ], 16);
2250
2263
  };
2251
2264
  }
2252
- }), ta = {
2265
+ }), ea = {
2253
2266
  key: 1,
2254
2267
  class: "d-flex flex-column w-100"
2255
- }, aa = ["for"], ia = {
2268
+ }, ta = ["for"], aa = {
2256
2269
  key: 0,
2257
2270
  class: "text-danger fw-600"
2258
- }, Ji = /* @__PURE__ */ $({
2271
+ }, Yi = /* @__PURE__ */ $({
2259
2272
  __name: "ForgeFormField",
2260
2273
  props: /* @__PURE__ */ U({
2261
2274
  name: {},
@@ -2274,14 +2287,14 @@ const _t = { key: 0 }, Pt = {
2274
2287
  setup(e) {
2275
2288
  const t = D(e, "modelValue"), a = e, i = (g) => {
2276
2289
  a.type == "number" ? s(g.value) : s(g);
2277
- }, { errors: l, value: o, errorMessage: n, handleChange: s, handleBlur: p } = te(() => a.name, void 0, {
2290
+ }, { errors: l, value: n, errorMessage: o, handleChange: s, handleBlur: p } = te(() => a.name, void 0, {
2278
2291
  initialValue: t.value
2279
2292
  }), c = T(() => l.value.length > 0);
2280
- return ce(() => o.value, (g) => {
2293
+ return ue(() => n.value, (g) => {
2281
2294
  t.value = g;
2282
2295
  }, { immediate: !0 }), (g, d) => {
2283
- const F = Ve, C = Pe, V = oe, M = ae, q = ne, y = be;
2284
- return a.type === "checkbox" ? (r(), f(fe, z({
2296
+ const B = Ve, C = Pe, V = ne, M = ae, q = oe, b = be;
2297
+ return a.type === "checkbox" ? (r(), f(ge, z({
2285
2298
  key: 0,
2286
2299
  id: a.name,
2287
2300
  label: a.fieldLabel
@@ -2289,20 +2302,20 @@ const _t = { key: 0 }, Pt = {
2289
2302
  name: a.name,
2290
2303
  modelValue: t.value,
2291
2304
  "onUpdate:modelValue": d[0] || (d[0] = (x) => t.value = x)
2292
- }), null, 16, ["id", "label", "name", "modelValue"])) : (r(), v("div", ta, [
2305
+ }), null, 16, ["id", "label", "name", "modelValue"])) : (r(), v("div", ea, [
2293
2306
  m("div", {
2294
2307
  "data-cy": "input-wrapper",
2295
- class: B(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
2308
+ class: F(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
2296
2309
  }, [
2297
2310
  m("label", {
2298
2311
  for: a.name,
2299
- class: B(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
2312
+ class: F(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
2300
2313
  }, [
2301
- I(w(a.fieldLabel) + " ", 1),
2302
- g.required ? (r(), v("span", ia, "*")) : S("", !0)
2303
- ], 10, aa),
2304
- k(g.$slots, "default", W(Y({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
2305
- a.type === "number" ? (r(), f(u(ue), z({
2314
+ _(k(a.fieldLabel) + " ", 1),
2315
+ g.required ? (r(), v("span", aa, "*")) : S("", !0)
2316
+ ], 10, ta),
2317
+ w(g.$slots, "default", W(Y({ modelValue: t.value, updateModel: u(s), hasErrors: c.value })), () => [
2318
+ a.type === "number" ? (r(), f(u(me), z({
2306
2319
  key: 0,
2307
2320
  id: a.name
2308
2321
  }, g.$attrs, {
@@ -2312,7 +2325,7 @@ const _t = { key: 0 }, Pt = {
2312
2325
  onInput: i,
2313
2326
  modelValue: t.value,
2314
2327
  "onUpdate:modelValue": d[1] || (d[1] = (x) => t.value = x)
2315
- }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (r(), f(F, z({
2328
+ }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (r(), f(B, z({
2316
2329
  key: 1,
2317
2330
  id: a.name
2318
2331
  }, g.$attrs, {
@@ -2351,11 +2364,11 @@ const _t = { key: 0 }, Pt = {
2351
2364
  modelValue: t.value,
2352
2365
  "onUpdate:modelValue": d[6] || (d[6] = (x) => t.value = x),
2353
2366
  class: { "is-invalid": c.value }
2354
- }), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (r(), f(Wt, z({ key: 6 }, { ...a, ...g.$attrs }, {
2367
+ }), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (r(), f(Ht, z({ key: 6 }, { ...a, ...g.$attrs }, {
2355
2368
  modelValue: t.value,
2356
2369
  "onUpdate:modelValue": d[7] || (d[7] = (x) => t.value = x),
2357
2370
  class: { "is-invalid": c.value }
2358
- }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (r(), f(y, z({ key: 7 }, { ...a, ...g.$attrs }, {
2371
+ }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (r(), f(b, z({ key: 7 }, { ...a, ...g.$attrs }, {
2359
2372
  modelValue: t.value,
2360
2373
  "onUpdate:modelValue": d[8] || (d[8] = (x) => t.value = x),
2361
2374
  class: { "is-invalid": c.value }
@@ -2365,13 +2378,13 @@ const _t = { key: 0 }, Pt = {
2365
2378
  H(m("small", {
2366
2379
  "data-cy": "error",
2367
2380
  class: "invalid-feedback"
2368
- }, w(u(n)), 513), [
2381
+ }, k(u(o)), 513), [
2369
2382
  [J, c.value && a.type !== "multiselect" && a.type !== "datepicker"]
2370
2383
  ])
2371
2384
  ]));
2372
2385
  };
2373
2386
  }
2374
- }), Ki = /* @__PURE__ */ $({
2387
+ }), Gi = /* @__PURE__ */ $({
2375
2388
  __name: "ForgeChip",
2376
2389
  props: {
2377
2390
  chipSeverity: { default: "primary" },
@@ -2405,16 +2418,16 @@ const _t = { key: 0 }, Pt = {
2405
2418
  ]
2406
2419
  }));
2407
2420
  return (i, l) => {
2408
- const o = Me;
2409
- return r(), f(o, z({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
2410
- default: b(() => [
2411
- (r(!0), v(O, null, N(i.$slots, (n, s) => k(i.$slots, s, { slot: s })), 256))
2421
+ const n = Me;
2422
+ return r(), f(n, z({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
2423
+ default: y(() => [
2424
+ (r(!0), v(O, null, N(i.$slots, (o, s) => w(i.$slots, s, { slot: s })), 256))
2412
2425
  ]),
2413
2426
  _: 3
2414
2427
  }, 16, ["pt"]);
2415
2428
  };
2416
2429
  }
2417
- }), la = /* @__PURE__ */ $({
2430
+ }), Ji = /* @__PURE__ */ $({
2418
2431
  __name: "ForgeProgressBar",
2419
2432
  props: {
2420
2433
  severity: { default: "primary" },
@@ -2449,7 +2462,7 @@ const _t = { key: 0 }, Pt = {
2449
2462
  default:
2450
2463
  return "bg-primary";
2451
2464
  }
2452
- }), o = T(() => ({
2465
+ }), n = T(() => ({
2453
2466
  root: {
2454
2467
  style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
2455
2468
  },
@@ -2457,18 +2470,18 @@ const _t = { key: 0 }, Pt = {
2457
2470
  class: [l.value, a.value, i.value, "progress-bar"]
2458
2471
  }
2459
2472
  }));
2460
- return (n, s) => {
2473
+ return (o, s) => {
2461
2474
  const p = De;
2462
- return r(), f(p, z({ ...n.$attrs, ...t }, { pt: o.value }), {
2463
- default: b(() => [
2464
- k(n.$slots, "default")
2475
+ return r(), f(p, z({ ...o.$attrs, ...t }, { pt: n.value }), {
2476
+ default: y(() => [
2477
+ w(o.$slots, "default")
2465
2478
  ]),
2466
2479
  _: 3
2467
2480
  }, 16, ["pt"]);
2468
2481
  };
2469
2482
  }
2470
2483
  });
2471
- var oa = /* @__PURE__ */ $({
2484
+ var ia = /* @__PURE__ */ $({
2472
2485
  name: "VueDrawingCanvas",
2473
2486
  props: {
2474
2487
  strokeType: {
@@ -2779,15 +2792,15 @@ var oa = /* @__PURE__ */ $({
2779
2792
  e && this.save();
2780
2793
  });
2781
2794
  },
2782
- wrapText(e, t, a, i, l, o) {
2783
- const n = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
2784
- var p = t.split(n).filter((M) => M.length > 0);
2795
+ wrapText(e, t, a, i, l, n) {
2796
+ const o = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
2797
+ var p = t.split(o).filter((M) => M.length > 0);
2785
2798
  for (let M = 0; M < p.length; M++) {
2786
2799
  for (var c = p[M].split(s).filter((q) => q.length > 0), g = "", d = 0; d < c.length; d++) {
2787
- var F = g + c[d] + " ", C = e.measureText(F), V = C.width;
2788
- 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;
2800
+ var B = g + c[d] + " ", C = e.measureText(B), V = C.width;
2801
+ V > l && d > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(g, a, i) : e.fillText(g, a, i), g = c[d] + " ", i += n) : g = B;
2789
2802
  }
2790
- 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;
2803
+ 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;
2791
2804
  }
2792
2805
  },
2793
2806
  save() {
@@ -2804,20 +2817,20 @@ var oa = /* @__PURE__ */ $({
2804
2817
  drawWatermark(e, t, a) {
2805
2818
  if (a.type === "Image") {
2806
2819
  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);
2807
- const o = new Image();
2808
- o.src = a.source, o.onload = () => {
2809
- a && t && t.drawImage(o, a.x, a.y, Number(i), Number(l));
2810
- 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;
2811
- if (n.width = Number(p), n.height = Number(c), s)
2812
- 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);
2820
+ const n = new Image();
2821
+ n.src = a.source, n.onload = () => {
2822
+ a && t && t.drawImage(n, a.x, a.y, Number(i), Number(l));
2823
+ 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;
2824
+ if (o.width = Number(p), o.height = Number(c), s)
2825
+ 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);
2813
2826
  };
2814
2827
  } else if (a.type === "Text") {
2815
- 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";
2816
- if (t.font = i, t.textAlign = l, t.textBaseline = o, a.fontStyle && a.fontStyle.rotate) {
2817
- let d, F;
2818
- 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);
2828
+ 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";
2829
+ if (t.font = i, t.textAlign = l, t.textBaseline = n, a.fontStyle && a.fontStyle.rotate) {
2830
+ let d, B;
2831
+ a.fontStyle && a.fontStyle.width ? d = a.x + Math.floor(a.fontStyle.width / 2) : d = a.x, a.fontStyle && a.fontStyle.lineHeight ? B = a.y + Math.floor(a.fontStyle.lineHeight / 2) : B = a.y, t.translate(d, B), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(d * -1, B * -1);
2819
2832
  }
2820
- 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));
2833
+ 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));
2821
2834
  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;
2822
2835
  if (s.width = Number(c), s.height = Number(g), p)
2823
2836
  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);
@@ -2858,7 +2871,7 @@ var oa = /* @__PURE__ */ $({
2858
2871
  });
2859
2872
  }
2860
2873
  });
2861
- const na = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1 gap-1" }, Zi = /* @__PURE__ */ $({
2874
+ const la = { class: "d-flex flex-column" }, na = { class: "d-flex flex-row mt-1 gap-1" }, Ki = /* @__PURE__ */ $({
2862
2875
  __name: "ForgeScratchpad",
2863
2876
  props: {
2864
2877
  showClear: { type: Boolean, default: !0 },
@@ -2871,7 +2884,7 @@ const na = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
2871
2884
  },
2872
2885
  emits: ["save"],
2873
2886
  setup(e, { emit: t }) {
2874
- const a = e, i = t, l = Fe("drawingCanvas"), o = _(), n = () => {
2887
+ const a = e, i = t, l = Fe("drawingCanvas"), n = I(), o = () => {
2875
2888
  l == null || l.value.reset();
2876
2889
  }, s = () => {
2877
2890
  l == null || l.value.redo();
@@ -2881,13 +2894,13 @@ const na = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
2881
2894
  i("save", l.value.isEmpty());
2882
2895
  };
2883
2896
  return (g, d) => {
2884
- const F = A;
2885
- return r(), v("div", na, [
2886
- h(u(oa), z({
2897
+ const B = A;
2898
+ return r(), v("div", la, [
2899
+ h(u(ia), z({
2887
2900
  ref_key: "drawingCanvas",
2888
2901
  ref: l,
2889
- image: o.value,
2890
- "onUpdate:image": d[0] || (d[0] = (C) => o.value = C),
2902
+ image: n.value,
2903
+ "onUpdate:image": d[0] || (d[0] = (C) => n.value = C),
2891
2904
  "data-cy": "drawing-canvas",
2892
2905
  class: "border canvas"
2893
2906
  }, { ...g.$attrs }, {
@@ -2896,48 +2909,48 @@ const na = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
2896
2909
  style: `height: ${g.height}px; width: ${g.width}px`,
2897
2910
  "line-join": g.lineJoin
2898
2911
  }), null, 16, ["image", "height", "width", "style", "line-join"]),
2899
- m("div", sa, [
2900
- a.showUndo ? (r(), f(F, {
2912
+ m("div", na, [
2913
+ a.showUndo ? (r(), f(B, {
2901
2914
  key: 0,
2902
2915
  onClick: p,
2903
2916
  outlined: "",
2904
2917
  "data-cy": "undo-button"
2905
2918
  }, {
2906
- default: b(() => d[1] || (d[1] = [
2907
- I("Undo")
2919
+ default: y(() => d[1] || (d[1] = [
2920
+ _("Undo")
2908
2921
  ])),
2909
2922
  _: 1
2910
2923
  })) : S("", !0),
2911
- a.showRedo ? (r(), f(F, {
2924
+ a.showRedo ? (r(), f(B, {
2912
2925
  key: 1,
2913
2926
  onClick: s,
2914
2927
  outlined: "",
2915
2928
  "data-cy": "redo-button"
2916
2929
  }, {
2917
- default: b(() => d[2] || (d[2] = [
2918
- I("Redo")
2930
+ default: y(() => d[2] || (d[2] = [
2931
+ _("Redo")
2919
2932
  ])),
2920
2933
  _: 1
2921
2934
  })) : S("", !0),
2922
- a.showClear ? (r(), f(F, {
2935
+ a.showClear ? (r(), f(B, {
2923
2936
  key: 2,
2924
- onClick: n,
2937
+ onClick: o,
2925
2938
  outlined: "",
2926
2939
  "data-cy": "clear-button"
2927
2940
  }, {
2928
- default: b(() => d[3] || (d[3] = [
2929
- I("Clear")
2941
+ default: y(() => d[3] || (d[3] = [
2942
+ _("Clear")
2930
2943
  ])),
2931
2944
  _: 1
2932
2945
  })) : S("", !0),
2933
- a.showSave ? (r(), f(F, {
2946
+ a.showSave ? (r(), f(B, {
2934
2947
  key: 3,
2935
2948
  onClick: c,
2936
2949
  class: "ms-auto",
2937
2950
  "data-cy": "save-button"
2938
2951
  }, {
2939
- default: b(() => d[4] || (d[4] = [
2940
- I("Save")
2952
+ default: y(() => d[4] || (d[4] = [
2953
+ _("Save")
2941
2954
  ])),
2942
2955
  _: 1
2943
2956
  })) : S("", !0)
@@ -2945,7 +2958,7 @@ const na = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
2945
2958
  ]);
2946
2959
  };
2947
2960
  }
2948
- }), ra = { class: "value text-white w-100 text-center" }, Xi = /* @__PURE__ */ $({
2961
+ }), oa = { class: "value text-white w-100 text-center" }, Zi = /* @__PURE__ */ $({
2949
2962
  __name: "ForgeStatWidget",
2950
2963
  props: {
2951
2964
  size: { default: "md" },
@@ -2956,12 +2969,12 @@ const na = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
2956
2969
  return (a, i) => (r(), v("div", z(a.$attrs, {
2957
2970
  class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
2958
2971
  }), [
2959
- m("span", ra, [
2960
- k(a.$slots, "default")
2972
+ m("span", oa, [
2973
+ w(a.$slots, "default")
2961
2974
  ])
2962
2975
  ], 16));
2963
2976
  }
2964
- }), da = { key: 0 }, Qi = /* @__PURE__ */ $({
2977
+ }), sa = { key: 0 }, Xi = /* @__PURE__ */ $({
2965
2978
  __name: "ForgeStepper",
2966
2979
  props: {
2967
2980
  currentStep: { default: 1 },
@@ -3009,17 +3022,17 @@ const na = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
3009
3022
  })
3010
3023
  }));
3011
3024
  return (i, l) => (r(), f(u(Ne), { value: i.currentStep }, {
3012
- default: b(() => [
3025
+ default: y(() => [
3013
3026
  h(u(Ue), null, {
3014
- default: b(() => [
3015
- (r(!0), v(O, null, N(i.steps, (o) => (r(), f(u(Oe), z({
3016
- key: o.value,
3017
- value: o.value,
3018
- disabled: o.disabled,
3027
+ default: y(() => [
3028
+ (r(!0), v(O, null, N(i.steps, (n) => (r(), f(u(Oe), z({
3029
+ key: n.value,
3030
+ value: n.value,
3031
+ disabled: n.disabled,
3019
3032
  ref_for: !0
3020
3033
  }, { ...i.$attrs }, { pt: a.value }), {
3021
- default: b(() => [
3022
- i.showStepLabel ? (r(), v("div", da, w(o.label), 1)) : S("", !0)
3034
+ default: y(() => [
3035
+ i.showStepLabel ? (r(), v("div", sa, k(n.label), 1)) : S("", !0)
3023
3036
  ]),
3024
3037
  _: 2
3025
3038
  }, 1040, ["value", "disabled", "pt"]))), 128))
@@ -3027,13 +3040,13 @@ const na = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
3027
3040
  _: 1
3028
3041
  }),
3029
3042
  h(u(qe), null, {
3030
- default: b(() => [
3031
- (r(!0), v(O, null, N(i.steps, (o) => (r(), f(u(Ae), {
3032
- key: o.value,
3033
- value: o.value
3043
+ default: y(() => [
3044
+ (r(!0), v(O, null, N(i.steps, (n) => (r(), f(u(Ae), {
3045
+ key: n.value,
3046
+ value: n.value
3034
3047
  }, {
3035
- default: b(() => [
3036
- k(i.$slots, "step" + o.value)
3048
+ default: y(() => [
3049
+ w(i.$slots, "step" + n.value)
3037
3050
  ]),
3038
3051
  _: 2
3039
3052
  }, 1032, ["value"]))), 128))
@@ -3044,7 +3057,7 @@ const na = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
3044
3057
  _: 3
3045
3058
  }, 8, ["value"]));
3046
3059
  }
3047
- }), pa = { class: "p-4 text-wrap w-100" }, ca = { class: "p-4 text-wrap w-100" }, el = /* @__PURE__ */ $({
3060
+ }), ra = { class: "p-4 text-wrap w-100" }, da = { class: "p-4 text-wrap w-100" }, Qi = /* @__PURE__ */ $({
3048
3061
  __name: "ForgeTile",
3049
3062
  props: {
3050
3063
  severity: { default: "primary" },
@@ -3054,31 +3067,31 @@ const na = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
3054
3067
  },
3055
3068
  setup(e) {
3056
3069
  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" : ""}`);
3057
- return (l, o) => {
3058
- const n = A;
3059
- return t.clickable ? (r(), f(n, {
3070
+ return (l, n) => {
3071
+ const o = A;
3072
+ return t.clickable ? (r(), f(o, {
3060
3073
  key: 0,
3061
- class: B(["d-flex w-100 p-0 text-body", a.value]),
3074
+ class: F(["d-flex w-100 p-0 text-body", a.value]),
3062
3075
  severity: t.severity,
3063
3076
  unstyled: "",
3064
3077
  "data-cy": "button-tile"
3065
3078
  }, {
3066
- default: b(() => [
3067
- m("div", pa, [
3068
- k(l.$slots, "default", {}, () => [
3069
- o[0] || (o[0] = I("Tile Content"))
3079
+ default: y(() => [
3080
+ m("div", ra, [
3081
+ w(l.$slots, "default", {}, () => [
3082
+ n[0] || (n[0] = _("Tile Content"))
3070
3083
  ])
3071
3084
  ])
3072
3085
  ]),
3073
3086
  _: 3
3074
3087
  }, 8, ["severity", "class"])) : (r(), v("div", {
3075
3088
  key: 1,
3076
- class: B(["d-flex w-100", i.value]),
3089
+ class: F(["d-flex w-100", i.value]),
3077
3090
  "data-cy": "tile"
3078
3091
  }, [
3079
- m("div", ca, [
3080
- k(l.$slots, "default", {}, () => [
3081
- o[1] || (o[1] = I("Tile Content"))
3092
+ m("div", da, [
3093
+ w(l.$slots, "default", {}, () => [
3094
+ n[1] || (n[1] = _("Tile Content"))
3082
3095
  ])
3083
3096
  ])
3084
3097
  ], 2));
@@ -3088,13 +3101,13 @@ const na = { class: "d-flex flex-column" }, sa = { class: "d-flex flex-row mt-1
3088
3101
  function Q(e, t) {
3089
3102
  return e > 1 ? `${t}s` : t;
3090
3103
  }
3091
- const ua = {
3104
+ const pa = {
3092
3105
  class: "d-flex justify-content-start align-items-baseline",
3093
3106
  "data-cy": "pagination-header"
3094
- }, ma = { class: "ms-2" }, va = { key: 0 }, fa = {
3107
+ }, ca = { class: "ms-2" }, ua = { key: 0 }, ma = {
3095
3108
  class: "w-auto",
3096
3109
  "data-cy": "total"
3097
- }, ga = /* @__PURE__ */ $({
3110
+ }, va = /* @__PURE__ */ $({
3098
3111
  __name: "ForgePaginationHeader",
3099
3112
  props: {
3100
3113
  total: {},
@@ -3103,15 +3116,15 @@ const ua = {
3103
3116
  },
3104
3117
  emits: ["update:perPage"],
3105
3118
  setup(e, { emit: t }) {
3106
- const a = t, i = e, l = (n) => {
3107
- a("update:perPage", n.value);
3108
- }, o = T(() => {
3109
- const n = Math.ceil(i.total / i.perPage);
3110
- return `${n} ${Q(n, "page")}`;
3119
+ const a = t, i = e, l = (o) => {
3120
+ a("update:perPage", o.value);
3121
+ }, n = T(() => {
3122
+ const o = Math.ceil(i.total / i.perPage);
3123
+ return `${o} ${Q(o, "page")}`;
3111
3124
  });
3112
- return (n, s) => (r(), v("div", ua, [
3113
- s[2] || (s[2] = I(" Number of results per page ")),
3114
- m("div", ma, [
3125
+ return (o, s) => (r(), v("div", pa, [
3126
+ s[2] || (s[2] = _(" Number of results per page ")),
3127
+ m("div", ca, [
3115
3128
  h(u(ae), {
3116
3129
  options: i.pageSizes,
3117
3130
  "model-value": i.perPage,
@@ -3119,16 +3132,16 @@ const ua = {
3119
3132
  onChange: s[0] || (s[0] = (p) => l(p))
3120
3133
  }, null, 8, ["options", "model-value"])
3121
3134
  ]),
3122
- i.total ? (r(), v("div", va, [
3135
+ i.total ? (r(), v("div", ua, [
3123
3136
  s[1] || (s[1] = m("span", { class: "mx-2" }, "|", -1)),
3124
- m("span", fa, w(i.total) + " " + w(u(Q)(i.total, "result")) + " across " + w(o.value), 1)
3137
+ m("span", ma, k(i.total) + " " + k(u(Q)(i.total, "result")) + " across " + k(n.value), 1)
3125
3138
  ])) : S("", !0)
3126
3139
  ]));
3127
3140
  }
3128
- }), ba = { class: "position-relative" }, ya = { "data-cy": "above-table-slot" }, xa = { class: "d-flex w-100" }, ha = {
3141
+ }), fa = { class: "position-relative" }, ga = { "data-cy": "above-table-slot" }, ba = { class: "d-flex w-100" }, ya = {
3129
3142
  class: "mx-auto",
3130
3143
  "data-cy": "empty-message"
3131
- }, wa = { class: "d-flex" }, ka = { class: "d-flex align-items-end mb-2" }, $a = { key: 0 }, Fa = { class: "ms-auto" }, tl = /* @__PURE__ */ $({
3144
+ }, xa = { class: "d-flex" }, ha = { class: "d-flex align-items-end mb-2" }, wa = { key: 0 }, ka = { class: "ms-auto" }, el = /* @__PURE__ */ $({
3132
3145
  __name: "ForgeTable",
3133
3146
  props: {
3134
3147
  value: {},
@@ -3214,16 +3227,16 @@ const ua = {
3214
3227
  },
3215
3228
  emits: ["update:filters", "update:tableContext", "sort", "page"],
3216
3229
  setup(e, { emit: t }) {
3217
- const a = t, i = e, l = _(), o = _([5, 10, 20, 50, 100]), n = _(10), s = _({
3230
+ const a = t, i = e, l = I(), n = I([5, 10, 20, 50, 100]), o = I(10), s = I({
3218
3231
  filters: i.filters,
3219
- perPage: n.value,
3232
+ perPage: o.value,
3220
3233
  page: 0,
3221
3234
  sortDirection: "None",
3222
3235
  sortField: "",
3223
3236
  total: i.totalRecords ?? i.value.length
3224
3237
  }), p = T(() => i.totalRecords ?? i.value.length), c = T(() => {
3225
- const y = Math.ceil(p.value / n.value);
3226
- return `${y} ${Q(y, "page")}`;
3238
+ const b = Math.ceil(p.value / o.value);
3239
+ return `${b} ${Q(b, "page")}`;
3227
3240
  }), g = T(() => ({
3228
3241
  thead: () => ({
3229
3242
  class: [
@@ -3250,32 +3263,32 @@ const ua = {
3250
3263
  if (i.clearAll)
3251
3264
  i.clearAll();
3252
3265
  else
3253
- for (const y in i.filters)
3254
- typeof i.filters[y] == "string" ? i.filters[y] = "" : i.filters[y].value = null;
3266
+ for (const b in i.filters)
3267
+ typeof i.filters[b] == "string" ? i.filters[b] = "" : i.filters[b].value = null;
3255
3268
  V(i.filters);
3256
- }, F = () => {
3269
+ }, B = () => {
3257
3270
  l.value.exportCSV();
3258
- }, C = (y) => {
3271
+ }, C = (b) => {
3259
3272
  var x;
3260
- 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);
3261
- }, V = (y) => {
3262
- s.value.filters = y, a("update:tableContext", s.value), a("update:filters", y);
3263
- }, M = (y) => {
3264
- s.value.page = y.page, a("update:tableContext", s.value), a("page", y);
3273
+ s.value.sortDirection = b.sortOrder === 1 ? "Asc" : b.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((x = b.sortField) == null ? void 0 : x.toString()) ?? "", a("update:tableContext", s.value), a("sort", b);
3274
+ }, V = (b) => {
3275
+ s.value.filters = b, a("update:tableContext", s.value), a("update:filters", b);
3276
+ }, M = (b) => {
3277
+ s.value.page = b.page, a("update:tableContext", s.value), a("page", b);
3265
3278
  }, q = () => {
3266
- s.value.perPage = n.value, a("update:tableContext", s.value);
3279
+ s.value.perPage = o.value, a("update:tableContext", s.value);
3267
3280
  };
3268
- return ce(() => i.filters, (y) => {
3269
- s.value.filters = y, a("update:tableContext", s.value);
3270
- }, { deep: !0 }), le(() => a("update:tableContext", s.value)), (y, x) => (r(), v("div", ba, [
3271
- m("span", ya, [
3272
- k(y.$slots, "above-table")
3281
+ return ue(() => i.filters, (b) => {
3282
+ s.value.filters = b, a("update:tableContext", s.value);
3283
+ }, { deep: !0 }), le(() => a("update:tableContext", s.value)), (b, x) => (r(), v("div", fa, [
3284
+ m("span", ga, [
3285
+ w(b.$slots, "above-table")
3273
3286
  ]),
3274
3287
  h(u(Ee), z({
3275
3288
  class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
3276
- }, { ...i, ...y.$attrs }, {
3289
+ }, { ...i, ...b.$attrs }, {
3277
3290
  pt: g.value,
3278
- rows: n.value,
3291
+ rows: o.value,
3279
3292
  "total-records": p.value,
3280
3293
  "filter-display": i.filters ? "row" : void 0,
3281
3294
  ref_key: "forgeTable",
@@ -3286,91 +3299,91 @@ const ua = {
3286
3299
  onPage: M,
3287
3300
  showHeaders: ""
3288
3301
  }), ee({
3289
- empty: b(() => [
3290
- m("div", xa, [
3291
- m("h5", ha, w(y.emptyMessage ?? "No items Found."), 1)
3302
+ empty: y(() => [
3303
+ m("div", ba, [
3304
+ m("h5", ya, k(b.emptyMessage ?? "No items Found."), 1)
3292
3305
  ])
3293
3306
  ]),
3294
- header: b(() => [
3307
+ header: y(() => [
3295
3308
  m("div", {
3296
- class: B(i.loading ? "opacity-50" : "")
3309
+ class: F(i.loading ? "opacity-50" : "")
3297
3310
  }, [
3298
- m("div", wa, [
3299
- m("div", ka, [
3300
- y.paginator && !y.legacyPaginationFooter ? (r(), v("span", $a, [
3301
- h(ga, {
3311
+ m("div", xa, [
3312
+ m("div", ha, [
3313
+ b.paginator && !b.legacyPaginationFooter ? (r(), v("span", wa, [
3314
+ h(va, {
3302
3315
  total: p.value,
3303
- "page-sizes": o.value,
3304
- "per-page": n.value,
3316
+ "page-sizes": n.value,
3317
+ "per-page": o.value,
3305
3318
  "onUpdate:perPage": [
3306
- x[0] || (x[0] = (P) => n.value = P),
3319
+ x[0] || (x[0] = (P) => o.value = P),
3307
3320
  q
3308
3321
  ]
3309
3322
  }, null, 8, ["total", "page-sizes", "per-page"])
3310
3323
  ])) : S("", !0)
3311
3324
  ]),
3312
- m("div", Fa, [
3313
- y.showClearButton ? (r(), f(u(A), {
3325
+ m("div", ka, [
3326
+ b.showClearButton ? (r(), f(u(A), {
3314
3327
  key: 0,
3315
3328
  outlined: "",
3316
- class: B(y.showExporterButton ? "me-2" : ""),
3329
+ class: F(b.showExporterButton ? "me-2" : ""),
3317
3330
  onClick: d,
3318
3331
  "data-cy": "clear-all"
3319
3332
  }, {
3320
- default: b(() => [
3333
+ default: y(() => [
3321
3334
  h(u(j), {
3322
3335
  icon: "bi:funnel-fill",
3323
3336
  width: "24",
3324
3337
  height: "24"
3325
3338
  }),
3326
- x[2] || (x[2] = I(" Clear "))
3339
+ x[2] || (x[2] = _(" Clear "))
3327
3340
  ]),
3328
3341
  _: 1
3329
3342
  }, 8, ["class"])) : S("", !0),
3330
- y.showExporterButton ? (r(), f(u(A), {
3343
+ b.showExporterButton ? (r(), f(u(A), {
3331
3344
  key: 1,
3332
3345
  outlined: "",
3333
- onClick: F,
3346
+ onClick: B,
3334
3347
  "data-cy": "exporter"
3335
3348
  }, {
3336
- default: b(() => [
3349
+ default: y(() => [
3337
3350
  h(u(j), {
3338
3351
  icon: "typcn:export",
3339
3352
  width: "24",
3340
3353
  height: "24"
3341
3354
  }),
3342
- x[3] || (x[3] = I(" Export "))
3355
+ x[3] || (x[3] = _(" Export "))
3343
3356
  ]),
3344
3357
  _: 1
3345
3358
  })) : S("", !0),
3346
- k(y.$slots, "column-customiser")
3359
+ w(b.$slots, "column-customiser")
3347
3360
  ])
3348
3361
  ])
3349
3362
  ], 2)
3350
3363
  ]),
3351
- default: b(() => [
3352
- k(y.$slots, "default")
3364
+ default: y(() => [
3365
+ w(b.$slots, "default")
3353
3366
  ]),
3354
3367
  _: 2
3355
3368
  }, [
3356
- N(y.$slots, (P, L) => ({
3369
+ N(b.$slots, (P, L) => ({
3357
3370
  name: L,
3358
- fn: b((ie) => [
3359
- k(y.$slots, L, W(Y(ie || {})))
3371
+ fn: y((ie) => [
3372
+ w(b.$slots, L, W(Y(ie || {})))
3360
3373
  ])
3361
3374
  })),
3362
- y.legacyPaginationFooter ? {
3375
+ b.legacyPaginationFooter ? {
3363
3376
  name: "paginatorstart",
3364
- fn: b(() => [
3377
+ fn: y(() => [
3365
3378
  m("span", {
3366
- class: B(["d-flex", i.loading ? "opacity-50" : ""]),
3379
+ class: F(["d-flex", i.loading ? "opacity-50" : ""]),
3367
3380
  "data-cy": "legacy-page-size"
3368
3381
  }, [
3369
3382
  x[4] || (x[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
3370
3383
  h(u(ae), {
3371
- options: o.value,
3372
- modelValue: n.value,
3373
- "onUpdate:modelValue": x[1] || (x[1] = (P) => n.value = P),
3384
+ options: n.value,
3385
+ modelValue: o.value,
3386
+ "onUpdate:modelValue": x[1] || (x[1] = (P) => o.value = P),
3374
3387
  class: "ms-2",
3375
3388
  onClick: q
3376
3389
  }, null, 8, ["options", "modelValue"])
@@ -3378,20 +3391,20 @@ const ua = {
3378
3391
  ]),
3379
3392
  key: "0"
3380
3393
  } : void 0,
3381
- y.legacyPaginationFooter ? {
3394
+ b.legacyPaginationFooter ? {
3382
3395
  name: "paginatorend",
3383
- fn: b(() => [
3396
+ fn: y(() => [
3384
3397
  m("span", {
3385
3398
  "data-cy": "legacy-total",
3386
- class: B(i.loading ? "opacity-50" : "")
3387
- }, w(p.value) + " " + w(u(Q)(p.value, "result")) + " across " + w(c.value), 3)
3399
+ class: F(i.loading ? "opacity-50" : "")
3400
+ }, k(p.value) + " " + k(u(Q)(p.value, "result")) + " across " + k(c.value), 3)
3388
3401
  ]),
3389
3402
  key: "1"
3390
3403
  } : void 0
3391
3404
  ]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
3392
3405
  ]));
3393
3406
  }
3394
- }), Ba = { class: "d-flex position-relative" }, Sa = { class: "d-flex w-100" }, al = /* @__PURE__ */ $({
3407
+ }), $a = { class: "d-flex position-relative" }, Fa = { class: "d-flex w-100" }, tl = /* @__PURE__ */ $({
3395
3408
  __name: "ForgeFilterHeader",
3396
3409
  props: /* @__PURE__ */ U({
3397
3410
  dataType: {},
@@ -3406,56 +3419,56 @@ const ua = {
3406
3419
  }),
3407
3420
  emits: ["update:modelValue"],
3408
3421
  setup(e) {
3409
- const t = D(e, "modelValue"), a = (l, o) => {
3422
+ const t = D(e, "modelValue"), a = (l, n) => {
3410
3423
  if (!l || Array.isArray(l) && l.length === 0)
3411
- return o;
3412
- const n = (s) => {
3424
+ return n;
3425
+ const o = (s) => {
3413
3426
  var c;
3414
3427
  const p = (c = e.dropdownOptions) == null ? void 0 : c.find(
3415
3428
  (g) => e.optionValue ? g[e.optionValue] === s : Object.keys(g).every((d) => s.hasOwnProperty(d) && g[d] === s[d])
3416
3429
  );
3417
3430
  return e.optionLabel ? p[e.optionLabel] : p;
3418
3431
  };
3419
- return Array.isArray(l) ? l.map(n).join(", ") : n(l);
3432
+ return Array.isArray(l) ? l.map(o).join(", ") : o(l);
3420
3433
  }, i = () => {
3421
3434
  e.clearFilter ? e.clearFilter() : t.value = null;
3422
3435
  };
3423
- return (l, o) => {
3424
- const n = ue, s = A;
3425
- return r(), v("div", Ba, [
3426
- l.dataType === "numeric" ? (r(), f(n, z({
3436
+ return (l, n) => {
3437
+ const o = me, s = A;
3438
+ return r(), v("div", $a, [
3439
+ l.dataType === "numeric" ? (r(), f(o, z({
3427
3440
  key: 0,
3428
3441
  modelValue: t.value,
3429
- "onUpdate:modelValue": o[0] || (o[0] = (p) => t.value = p),
3442
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => t.value = p),
3430
3443
  modelModifiers: { trim: !0 }
3431
3444
  }, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (r(), f(be, z({
3432
3445
  key: 1,
3433
3446
  modelValue: t.value,
3434
- "onUpdate:modelValue": o[1] || (o[1] = (p) => t.value = p)
3447
+ "onUpdate:modelValue": n[1] || (n[1] = (p) => t.value = p)
3435
3448
  }, l.$attrs, {
3436
3449
  "show-icon": !1,
3437
3450
  "show-on-focus": !0
3438
3451
  }), null, 16, ["modelValue"])) : l.dataType === "select" ? (r(), f(u(ae), z({
3439
3452
  key: 2,
3440
3453
  modelValue: t.value,
3441
- "onUpdate:modelValue": o[2] || (o[2] = (p) => t.value = p)
3454
+ "onUpdate:modelValue": n[2] || (n[2] = (p) => t.value = p)
3442
3455
  }, l.$attrs, {
3443
3456
  options: l.dropdownOptions,
3444
3457
  "option-value": l.optionValue,
3445
3458
  "option-label": l.optionLabel
3446
3459
  }), {
3447
- value: b(({ value: p, placeholder: c }) => [
3448
- m("div", Sa, [
3460
+ value: y(({ value: p, placeholder: c }) => [
3461
+ m("div", Fa, [
3449
3462
  m("span", {
3450
- class: B({ "filter-placeholder": p === null })
3451
- }, w(a(p, c)), 3),
3463
+ class: F({ "filter-placeholder": p === null })
3464
+ }, k(a(p, c)), 3),
3452
3465
  l.showClearButton && t.value !== null ? (r(), f(s, {
3453
3466
  key: 0,
3454
3467
  onClick: K(i, ["prevent"]),
3455
3468
  size: "small",
3456
3469
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
3457
3470
  }, {
3458
- default: b(() => [
3471
+ default: y(() => [
3459
3472
  h(u(j), {
3460
3473
  icon: "bi:x",
3461
3474
  width: "1rem",
@@ -3468,20 +3481,20 @@ const ua = {
3468
3481
  ])
3469
3482
  ]),
3470
3483
  _: 1
3471
- }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (r(), f(u(ne), z({
3484
+ }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (r(), f(u(oe), z({
3472
3485
  key: 3,
3473
3486
  modelValue: t.value,
3474
- "onUpdate:modelValue": o[3] || (o[3] = (p) => t.value = p)
3487
+ "onUpdate:modelValue": n[3] || (n[3] = (p) => t.value = p)
3475
3488
  }, l.$attrs, {
3476
3489
  options: l.dropdownOptions,
3477
3490
  showToggleAll: !1,
3478
3491
  "option-label": l.optionLabel,
3479
3492
  "option-value": l.optionValue,
3480
3493
  filter: ""
3481
- }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(), f(u(oe), z({
3494
+ }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (r(), f(u(ne), z({
3482
3495
  key: 4,
3483
3496
  modelValue: t.value,
3484
- "onUpdate:modelValue": o[4] || (o[4] = (p) => t.value = p),
3497
+ "onUpdate:modelValue": n[4] || (n[4] = (p) => t.value = p),
3485
3498
  modelModifiers: { trim: !0 }
3486
3499
  }, l.$attrs), null, 16, ["modelValue"])),
3487
3500
  l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (r(), f(s, {
@@ -3490,7 +3503,7 @@ const ua = {
3490
3503
  size: "small",
3491
3504
  class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
3492
3505
  }, {
3493
- default: b(() => [
3506
+ default: y(() => [
3494
3507
  h(u(j), {
3495
3508
  icon: "bi:x",
3496
3509
  width: "1rem",
@@ -3503,7 +3516,7 @@ const ua = {
3503
3516
  ]);
3504
3517
  };
3505
3518
  }
3506
- }), re = {
3519
+ }), de = {
3507
3520
  "application/prs.cww": ["cww"],
3508
3521
  "application/prs.xsf+xml": ["xsf"],
3509
3522
  "application/vnd.1000minds.decision-model+xml": ["1km"],
@@ -4202,8 +4215,8 @@ const ua = {
4202
4215
  "video/x-smv": ["smv"],
4203
4216
  "x-conference/x-cooltalk": ["ice"]
4204
4217
  };
4205
- Object.freeze(re);
4206
- const de = {
4218
+ Object.freeze(de);
4219
+ const pe = {
4207
4220
  "application/andrew-inset": ["ez"],
4208
4221
  "application/appinstaller": ["appinstaller"],
4209
4222
  "application/applixware": ["aw"],
@@ -4555,7 +4568,7 @@ const de = {
4555
4568
  "video/quicktime": ["qt", "mov"],
4556
4569
  "video/webm": ["webm"]
4557
4570
  };
4558
- Object.freeze(de);
4571
+ Object.freeze(pe);
4559
4572
  var E = function(e, t, a, i) {
4560
4573
  if (a === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
4561
4574
  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");
@@ -4570,11 +4583,11 @@ class ye {
4570
4583
  define(t, a = !1) {
4571
4584
  for (let [i, l] of Object.entries(t)) {
4572
4585
  i = i.toLowerCase(), l = l.map((s) => s.toLowerCase()), E(this, R, "f").has(i) || E(this, R, "f").set(i, /* @__PURE__ */ new Set());
4573
- const o = E(this, R, "f").get(i);
4574
- let n = !0;
4586
+ const n = E(this, R, "f").get(i);
4587
+ let o = !0;
4575
4588
  for (let s of l) {
4576
4589
  const p = s.startsWith("*");
4577
- if (s = p ? s.slice(1) : s, o == null || o.add(s), n && E(this, Z, "f").set(i, s), n = !1, p)
4590
+ if (s = p ? s.slice(1) : s, n == null || n.add(s), o && E(this, Z, "f").set(i, s), o = !1, p)
4578
4591
  continue;
4579
4592
  const c = E(this, G, "f").get(s);
4580
4593
  if (c && c != i && !a)
@@ -4613,23 +4626,23 @@ class ye {
4613
4626
  }
4614
4627
  }
4615
4628
  G = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap();
4616
- const Ca = new ye(de, re)._freeze();
4629
+ const Ba = new ye(pe, de)._freeze();
4617
4630
  function xe(e, t, a, i) {
4618
- const l = t.flatMap((o) => o.file);
4619
- return t = t.map((o) => ({ ...o, status: o.status == "Duplicate" ? "Not Uploaded" : o.status })), e.forEach((o) => {
4620
- const n = l.findIndex((p) => p.name === o.name);
4631
+ const l = t.flatMap((n) => n.file);
4632
+ return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
4633
+ const o = l.findIndex((p) => p.name === n.name);
4621
4634
  let s = "Not Uploaded";
4622
- n === -1 ? ((!a.includes(o.type) || !(o.size <= i)) && (s = a.includes(o.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
4623
- file: o,
4635
+ o === -1 ? ((!a.includes(n.type) || !(n.size <= i)) && (s = a.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
4636
+ file: n,
4624
4637
  status: s,
4625
4638
  blobFileName: null
4626
- })) : t[n].status = "Duplicate";
4639
+ })) : t[o].status = "Duplicate";
4627
4640
  }), t;
4628
4641
  }
4629
- async function za(e, t) {
4642
+ async function Sa(e, t) {
4630
4643
  if (e === "Uploaded" && t !== null)
4631
4644
  try {
4632
- await new me(t).delete();
4645
+ await new ve(t).delete();
4633
4646
  } catch (a) {
4634
4647
  if (a !== "BlobNotFound") {
4635
4648
  e = "DeleteFileFailed";
@@ -4637,32 +4650,32 @@ async function za(e, t) {
4637
4650
  }
4638
4651
  }
4639
4652
  }
4640
- function pe(e, t = !0, a = 1) {
4653
+ function ce(e, t = !0, a = 1) {
4641
4654
  const i = t ? 1e3 : 1024;
4642
4655
  if (Math.abs(e) < i)
4643
4656
  return e + " B";
4644
4657
  const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
4645
- let o = -1;
4646
- const n = 10 ** a;
4658
+ let n = -1;
4659
+ const o = 10 ** a;
4647
4660
  do
4648
- e /= i, ++o;
4649
- while (Math.round(Math.abs(e) * n) / n >= i && o < l.length - 1);
4650
- return e.toFixed(a) + " " + l[o];
4661
+ e /= i, ++n;
4662
+ while (Math.round(Math.abs(e) * o) / o >= i && n < l.length - 1);
4663
+ return e.toFixed(a) + " " + l[n];
4651
4664
  }
4652
- function Ta(e) {
4665
+ function Ca(e) {
4653
4666
  return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
4654
4667
  }
4655
- function ja(e) {
4668
+ function za(e) {
4656
4669
  return URL.createObjectURL(e);
4657
4670
  }
4658
- function Ia() {
4659
- const e = new ye(de, re);
4671
+ function Ta() {
4672
+ const e = new ye(pe, de);
4660
4673
  return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
4661
4674
  }
4662
- const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disabled", "multiple"], Va = {
4675
+ const ja = { class: "d-flex justify-content-between" }, _a = ["accept", "disabled", "multiple"], Ia = {
4663
4676
  class: "text-break accepted-file-types-container",
4664
4677
  id: "accepted-file-types-overlay"
4665
- }, Ma = /* @__PURE__ */ $({
4678
+ }, Pa = /* @__PURE__ */ $({
4666
4679
  __name: "UploadButton",
4667
4680
  props: /* @__PURE__ */ U({
4668
4681
  acceptedFileTypes: {},
@@ -4674,71 +4687,71 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4674
4687
  }),
4675
4688
  emits: ["update:modelValue"],
4676
4689
  setup(e) {
4677
- const t = D(e, "modelValue"), a = _(), i = (n) => a.value.toggle(n), l = T(() => e.maxFileInput <= t.value.length), o = (n) => {
4678
- t.value = xe(n, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
4690
+ const t = D(e, "modelValue"), a = I(), i = (o) => a.value.toggle(o), l = T(() => e.maxFileInput <= t.value.length), n = (o) => {
4691
+ t.value = xe(o, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
4679
4692
  };
4680
- return (n, s) => {
4693
+ return (o, s) => {
4681
4694
  const p = A;
4682
- return r(), v("div", _a, [
4683
- k(n.$slots, "message"),
4695
+ return r(), v("div", ja, [
4696
+ w(o.$slots, "message"),
4684
4697
  m("div", null, [
4685
4698
  m("input", {
4686
4699
  id: "file-input",
4687
4700
  type: "file",
4688
4701
  class: "d-none",
4689
- accept: n.acceptedFileTypes.join(", "),
4702
+ accept: o.acceptedFileTypes.join(", "),
4690
4703
  disabled: l.value,
4691
- multiple: n.maxFileInput > 1,
4692
- onInput: s[0] || (s[0] = (c) => o([...c.target.files]))
4693
- }, null, 40, Pa),
4704
+ multiple: o.maxFileInput > 1,
4705
+ onInput: s[0] || (s[0] = (c) => n([...c.target.files]))
4706
+ }, null, 40, _a),
4694
4707
  m("label", {
4695
- class: B([{ disabled: l.value }, "btn btn-primary"]),
4708
+ class: F([{ disabled: l.value }, "btn btn-primary"]),
4696
4709
  id: "file-input-button",
4697
4710
  for: "file-input"
4698
4711
  }, [
4699
- k(n.$slots, "button-content", {}, () => [
4712
+ w(o.$slots, "button-content", {}, () => [
4700
4713
  h(u(j), {
4701
4714
  icon: "bi:upload",
4702
4715
  class: "me-2",
4703
4716
  height: "20px",
4704
4717
  width: "20px"
4705
4718
  }),
4706
- s[1] || (s[1] = I(" Browse your computer "))
4719
+ s[1] || (s[1] = _(" Browse your computer "))
4707
4720
  ])
4708
4721
  ], 2)
4709
4722
  ]),
4710
- n.showDragDropArea ? (r(), f(p, {
4723
+ o.showDragDropArea ? (r(), f(p, {
4711
4724
  link: "",
4712
4725
  class: "ms-auto",
4713
- key: n.acceptedFileTypes.length,
4726
+ key: o.acceptedFileTypes.length,
4714
4727
  id: "accepted-file-types",
4715
4728
  onClick: i
4716
4729
  }, {
4717
- default: b(() => s[2] || (s[2] = [
4718
- I("Accepted File Types")
4730
+ default: y(() => s[2] || (s[2] = [
4731
+ _("Accepted File Types")
4719
4732
  ])),
4720
4733
  _: 1
4721
4734
  })) : S("", !0),
4722
- h(u(ve), {
4735
+ h(u(fe), {
4723
4736
  ref_key: "acceptedFilesOverlay",
4724
4737
  ref: a
4725
4738
  }, {
4726
- default: b(() => [
4727
- m("div", Va, w(n.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
4739
+ default: y(() => [
4740
+ m("div", Ia, k(o.acceptedFileTypes.map((c) => c.label ?? c.fileType.split("/").pop()).join(", ")), 1)
4728
4741
  ]),
4729
4742
  _: 1
4730
4743
  }, 512)
4731
4744
  ]);
4732
4745
  };
4733
4746
  }
4734
- }), Da = {
4747
+ }), Va = {
4735
4748
  key: 0,
4736
4749
  class: "py-4 px-3",
4737
4750
  id: "placeholder-message"
4738
- }, Oa = {
4751
+ }, Ma = {
4739
4752
  key: 1,
4740
4753
  class: "d-flex flex-column"
4741
- }, Na = /* @__PURE__ */ $({
4754
+ }, Da = /* @__PURE__ */ $({
4742
4755
  __name: "DragDropArea",
4743
4756
  props: /* @__PURE__ */ U({
4744
4757
  maxFileInput: {},
@@ -4750,30 +4763,30 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4750
4763
  }),
4751
4764
  emits: ["update:modelValue"],
4752
4765
  setup(e) {
4753
- const t = D(e, "modelValue"), a = _(!1), i = T(() => e.maxFileInput <= t.value.length), l = (o) => {
4754
- 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);
4766
+ const t = D(e, "modelValue"), a = I(!1), i = T(() => e.maxFileInput <= t.value.length), l = (n) => {
4767
+ 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);
4755
4768
  };
4756
- return (o, n) => (r(), v("div", {
4769
+ return (n, o) => (r(), v("div", {
4757
4770
  id: "drag-drop-area",
4758
- class: B(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
4759
- onDragleave: n[0] || (n[0] = K((s) => a.value = !1, ["prevent"])),
4760
- onDragover: n[1] || (n[1] = K((s) => a.value = !0, ["prevent"])),
4771
+ class: F(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
4772
+ onDragleave: o[0] || (o[0] = K((s) => a.value = !1, ["prevent"])),
4773
+ onDragover: o[1] || (o[1] = K((s) => a.value = !0, ["prevent"])),
4761
4774
  onDrop: K(l, ["prevent"])
4762
4775
  }, [
4763
- t.value.length === 0 ? (r(), v("div", Da, [
4776
+ t.value.length === 0 ? (r(), v("div", Va, [
4764
4777
  h(u(j), {
4765
4778
  icon: "bi:upload",
4766
4779
  class: "me-2",
4767
4780
  height: "20px",
4768
4781
  width: "20px"
4769
4782
  }),
4770
- n[2] || (n[2] = I(" Drag and drop files here "))
4771
- ])) : (r(), v("div", Oa, [
4772
- k(o.$slots, "default")
4783
+ o[2] || (o[2] = _(" Drag and drop files here "))
4784
+ ])) : (r(), v("div", Ma, [
4785
+ w(n.$slots, "default")
4773
4786
  ]))
4774
4787
  ], 34));
4775
4788
  }
4776
- }), Ua = { class: "d-flex align-items-center me-2" }, Aa = /* @__PURE__ */ $({
4789
+ }), Oa = { class: "d-flex align-items-center me-2" }, Na = /* @__PURE__ */ $({
4777
4790
  __name: "UploadStatus",
4778
4791
  props: {
4779
4792
  fileSize: {},
@@ -4782,12 +4795,12 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4782
4795
  uploadStatus: {}
4783
4796
  },
4784
4797
  setup(e) {
4785
- const t = T(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), a = T(() => {
4786
- switch (e.uploadStatus) {
4798
+ const t = e, a = T(() => t.uploadStatus === "Failed" || t.uploadStatus === "InvalidFileType" || t.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), i = T(() => {
4799
+ switch (t.uploadStatus) {
4787
4800
  case "InvalidFileType":
4788
4801
  return "Upload Failed: File type is not accepted.";
4789
4802
  case "InvalidFileSize":
4790
- return `Upload Failed: File size exceeds the ${pe(e.maxFileSize)} limit.`;
4803
+ return `Upload Failed: File size exceeds the ${ce(t.maxFileSize)} limit.`;
4791
4804
  case "Aborted":
4792
4805
  return "Upload Failed: User cancelled.";
4793
4806
  case "DeleteFileFailed":
@@ -4798,41 +4811,34 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4798
4811
  return "Upload Failed: Connection error, please try again.";
4799
4812
  }
4800
4813
  });
4801
- return (i, l) => (r(), v("div", Ua, [
4802
- i.uploadStatus === "Uploading" ? (r(), f(la, {
4803
- key: 0,
4804
- pixelWidth: 200,
4805
- animate: "",
4806
- striped: ""
4807
- }, {
4808
- default: b(() => [
4809
- I(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
4810
- ]),
4811
- _: 1
4812
- })) : S("", !0),
4813
- i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (r(), f(se, {
4814
- key: 1,
4815
- id: "upload-status-alert",
4816
- severity: t.value,
4817
- class: "mb-0 w-75 ms-auto"
4818
- }, {
4819
- default: b(() => [
4820
- I(w(a.value), 1)
4821
- ]),
4822
- _: 1
4823
- }, 8, ["severity"])) : S("", !0)
4824
- ]));
4814
+ return (l, n) => {
4815
+ const o = re;
4816
+ return r(), v("div", Oa, [
4817
+ t.uploadStatus === "Uploading" ? (r(), f(o, { key: 0 })) : S("", !0),
4818
+ t.uploadStatus !== "Uploading" && t.uploadStatus !== "Not Uploaded" && t.uploadStatus !== "Uploaded" && t.uploadStatus !== "Preparing" ? (r(), f(se, {
4819
+ key: 1,
4820
+ id: "upload-status-alert",
4821
+ severity: a.value,
4822
+ class: "mb-0 w-75 ms-auto"
4823
+ }, {
4824
+ default: y(() => [
4825
+ _(k(i.value), 1)
4826
+ ]),
4827
+ _: 1
4828
+ }, 8, ["severity"])) : S("", !0)
4829
+ ]);
4830
+ };
4825
4831
  }
4826
- }), qa = ["data-cy"], Ea = { class: "ms-3 d-flex flex-column" }, La = {
4832
+ }), Ua = ["data-cy"], Aa = { class: "ms-3 d-flex flex-column" }, qa = {
4827
4833
  key: 1,
4828
4834
  id: "file-name"
4829
- }, Ra = {
4835
+ }, Ea = {
4830
4836
  class: "text-black-50",
4831
4837
  id: "file-type"
4832
- }, Ha = {
4838
+ }, La = {
4833
4839
  class: "text-black-50",
4834
4840
  id: "file-size"
4835
- }, Wa = { class: "ms-auto my-auto d-flex" }, Ya = /* @__PURE__ */ $({
4841
+ }, Ra = { class: "ms-auto my-auto d-flex align-items-center gap-1" }, Ha = /* @__PURE__ */ $({
4836
4842
  __name: "FileInfo",
4837
4843
  props: /* @__PURE__ */ U({
4838
4844
  editableFileName: { type: Boolean },
@@ -4851,34 +4857,34 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4851
4857
  }),
4852
4858
  emits: /* @__PURE__ */ U(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
4853
4859
  setup(e, { emit: t }) {
4854
- 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 = () => {
4855
- n.value != null && (V(), a.value = new File([a.value], n.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
4860
+ 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(), g = T(() => e.acceptedFileTypes.some(({ fileType: b }) => b === a.value.type)), d = T(() => a.value.size <= e.maxFileSize), B = T(() => a.value.type ? a.value.type : Ta().getType(a.value.name)), C = () => {
4861
+ o.value != null && (V(), a.value = new File([a.value], o.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
4856
4862
  }, V = () => {
4857
- let y = n.value.split("."), x = Ca.getExtension(F.value), P = n.value.split(".").pop();
4858
- 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));
4863
+ let b = o.value.split("."), x = Ba.getExtension(B.value), P = o.value.split(".").pop();
4864
+ b.length === 1 ? P && P.length > 0 && (o.value = [o.value, x].join(".")) : b.length > 1 && P !== x && (o.value = o.value.replace(P, x));
4859
4865
  }, M = async () => {
4860
4866
  if (!g.value || !d.value) {
4861
4867
  l.value = g.value ? "InvalidFileSize" : "InvalidFileType";
4862
4868
  return;
4863
4869
  }
4864
4870
  l.value = "Preparing", c.value = new AbortController();
4865
- const [y, x] = await e.getFileUrlAction(a.value.name);
4866
- if (!y) {
4871
+ const [b, x] = await e.getFileUrlAction(a.value.name);
4872
+ if (!b) {
4867
4873
  l.value = "Failed";
4868
4874
  return;
4869
4875
  }
4870
4876
  try {
4871
4877
  l.value = "Uploading";
4872
- const P = new me(y), L = {
4878
+ const P = new ve(b), L = {
4873
4879
  abortSignal: c.value.signal,
4874
4880
  onProgress: (ie) => p.value = ie.loadedBytes,
4875
4881
  blobHTTPHeaders: {
4876
- blobContentType: F.value,
4882
+ blobContentType: B.value,
4877
4883
  blobContentDisposition: `attachment; filename="${a.value.name}"`
4878
4884
  },
4879
4885
  tags: { temp: "true" }
4880
4886
  };
4881
- await P.uploadData(a.value, L), s.value = y, l.value = "Uploaded", i.value = x;
4887
+ await P.uploadData(a.value, L), s.value = b, l.value = "Uploaded", i.value = x;
4882
4888
  } catch (P) {
4883
4889
  if (P.name === "AbortError") {
4884
4890
  l.value = "Aborted";
@@ -4887,22 +4893,22 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4887
4893
  l.value = "Failed";
4888
4894
  }
4889
4895
  }, q = async () => {
4890
- await za(l.value, s.value), o("deleted", a.value);
4896
+ await Sa(l.value, s.value), n("deleted", a.value);
4891
4897
  };
4892
4898
  return le(() => {
4893
- e.autoUploadToBlob && M();
4894
- }), (y, x) => {
4899
+ e.autoUploadToBlob && l.value != "Uploaded" && M();
4900
+ }), (b, x) => {
4895
4901
  const P = A;
4896
4902
  return r(), v("div", {
4897
4903
  class: "py-4 px-3 d-flex",
4898
4904
  "data-cy": `file-info-${a.value.name}`
4899
4905
  }, [
4900
4906
  m("div", null, [
4901
- u(Ta)(a.value.type) ? (r(), f(u(Le), {
4907
+ u(Ca)(a.value.type) ? (r(), f(u(Le), {
4902
4908
  key: 0,
4903
4909
  id: "thumbnail-image",
4904
4910
  "image-class": "image-file-thumbnail border",
4905
- src: u(ja)(a.value),
4911
+ src: u(za)(a.value),
4906
4912
  alt: a.value.name,
4907
4913
  width: "75px",
4908
4914
  preview: ""
@@ -4914,35 +4920,35 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4914
4920
  width: "75px"
4915
4921
  }))
4916
4922
  ]),
4917
- m("div", Ea, [
4923
+ m("div", Aa, [
4918
4924
  m("div", null, [
4919
- y.editableFileName ? (r(), f(At, {
4925
+ b.editableFileName ? (r(), f(Ut, {
4920
4926
  key: 0,
4921
4927
  id: "edit-file-name",
4922
- modelValue: n.value,
4923
- "onUpdate:modelValue": x[0] || (x[0] = (L) => n.value = L),
4924
- rules: y.customFileNameRules,
4928
+ modelValue: o.value,
4929
+ "onUpdate:modelValue": x[0] || (x[0] = (L) => o.value = L),
4930
+ rules: b.customFileNameRules,
4925
4931
  name: a.value.name,
4926
4932
  "complete-action": C
4927
- }, null, 8, ["modelValue", "rules", "name"])) : (r(), v("span", La, w(n.value), 1))
4933
+ }, null, 8, ["modelValue", "rules", "name"])) : (r(), v("span", qa, k(o.value), 1))
4928
4934
  ]),
4929
- m("span", Ra, "File type: " + w(a.value.type.split("/").pop()), 1),
4930
- m("span", Ha, "File size: " + w(u(pe)(a.value.size)), 1)
4935
+ m("span", Ea, "File type: " + k(a.value.type.split("/").pop()), 1),
4936
+ m("span", La, "File size: " + k(u(ce)(a.value.size)), 1)
4931
4937
  ]),
4932
- m("div", Wa, [
4933
- (r(), f(Aa, {
4938
+ m("div", Ra, [
4939
+ (r(), f(Na, {
4934
4940
  key: l.value,
4935
4941
  "file-size": a.value.size,
4936
4942
  "upload-status": l.value,
4937
4943
  "bytes-uploaded": p.value,
4938
- "max-file-size": y.maxFileSize
4944
+ "max-file-size": b.maxFileSize
4939
4945
  }, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
4940
4946
  l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (r(), f(P, {
4941
4947
  key: 0,
4942
4948
  link: "",
4943
4949
  onClick: M
4944
4950
  }, {
4945
- default: b(() => [
4951
+ default: y(() => [
4946
4952
  h(u(j), {
4947
4953
  icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
4948
4954
  }, null, 8, ["icon"])
@@ -4952,9 +4958,9 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4952
4958
  l.value === "Uploading" ? (r(), f(P, {
4953
4959
  key: 1,
4954
4960
  link: "",
4955
- onClick: x[1] || (x[1] = (L) => c.value.value.abort())
4961
+ onClick: x[1] || (x[1] = (L) => c.value.abort())
4956
4962
  }, {
4957
- default: b(() => [
4963
+ default: y(() => [
4958
4964
  h(u(j), { icon: "bi:x-circle-fill" })
4959
4965
  ]),
4960
4966
  _: 1
@@ -4964,28 +4970,28 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
4964
4970
  onClick: q,
4965
4971
  id: "delete-button"
4966
4972
  }, {
4967
- default: b(() => [
4973
+ default: y(() => [
4968
4974
  h(u(j), { icon: "bi:trash" })
4969
4975
  ]),
4970
4976
  _: 1
4971
4977
  }))
4972
4978
  ])
4973
- ], 8, qa);
4979
+ ], 8, Ua);
4974
4980
  };
4975
4981
  }
4976
- }), Ga = { class: "d-flex justify-content-end mt-1 gap-1" }, Ja = { id: "max-file-size" }, Ka = { id: "max-file-input" }, Za = /* @__PURE__ */ $({
4982
+ }), Wa = { class: "d-flex justify-content-end mt-1 gap-1" }, Ya = { id: "max-file-size" }, Ga = { id: "max-file-input" }, Ja = /* @__PURE__ */ $({
4977
4983
  __name: "FileInputInfo",
4978
4984
  props: {
4979
4985
  maxFileSize: {},
4980
4986
  maxFileInput: {}
4981
4987
  },
4982
4988
  setup(e) {
4983
- return (t, a) => (r(), v("div", Ga, [
4984
- m("div", Ja, "Max file size: " + w(u(pe)(t.maxFileSize)), 1),
4985
- m("div", Ka, "| Max file count: " + w(t.maxFileInput), 1)
4989
+ return (t, a) => (r(), v("div", Wa, [
4990
+ m("div", Ya, "Max file size: " + k(u(ce)(t.maxFileSize)), 1),
4991
+ m("div", Ga, "| Max file count: " + k(t.maxFileInput), 1)
4986
4992
  ]));
4987
4993
  }
4988
- }), Xa = { "data-cy": "file-uploader" }, Qa = { key: 0 }, il = /* @__PURE__ */ $({
4994
+ }), Ka = { "data-cy": "file-uploader" }, Za = { key: 0 }, al = /* @__PURE__ */ $({
4989
4995
  __name: "ForgeFileUploader",
4990
4996
  props: /* @__PURE__ */ U({
4991
4997
  acceptedFileTypes: {},
@@ -5003,25 +5009,25 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5003
5009
  emits: ["update:modelValue"],
5004
5010
  setup(e) {
5005
5011
  const t = D(e, "modelValue"), a = e, i = (l) => {
5006
- t.value = t.value.filter((o) => o.file != l);
5012
+ t.value = t.value.filter((n) => n.file != l);
5007
5013
  };
5008
- return (l, o) => (r(), v("div", Xa, [
5009
- h(Ma, z(a, {
5014
+ return (l, n) => (r(), v("div", Ka, [
5015
+ h(Pa, z(a, {
5010
5016
  modelValue: t.value,
5011
- "onUpdate:modelValue": o[0] || (o[0] = (n) => t.value = n)
5017
+ "onUpdate:modelValue": n[0] || (n[0] = (o) => t.value = o)
5012
5018
  }), null, 16, ["modelValue"]),
5013
- l.showDragDropArea ? (r(), v("div", Qa, [
5014
- h(Na, {
5019
+ l.showDragDropArea ? (r(), v("div", Za, [
5020
+ h(Da, {
5015
5021
  "max-file-input": a.maxFileInput,
5016
5022
  "max-file-size": a.maxFileSize,
5017
5023
  "accepted-file-types": a.acceptedFileTypes,
5018
5024
  modelValue: t.value,
5019
- "onUpdate:modelValue": o[1] || (o[1] = (n) => t.value = n)
5025
+ "onUpdate:modelValue": n[1] || (n[1] = (o) => t.value = o)
5020
5026
  }, {
5021
- default: b(() => [
5022
- (r(!0), v(O, null, N(t.value, ({ file: n }, s) => (r(), v("span", null, [
5023
- (r(), f(Ya, z({
5024
- key: n.name,
5027
+ default: y(() => [
5028
+ (r(!0), v(O, null, N(t.value, ({ file: o }, s) => (r(), v("div", null, [
5029
+ (r(), f(Ha, z({
5030
+ key: o.name,
5025
5031
  class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
5026
5032
  file: t.value[s].file,
5027
5033
  "onUpdate:file": (p) => t.value[s].file = p,
@@ -5035,14 +5041,14 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5035
5041
  ]),
5036
5042
  _: 1
5037
5043
  }, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
5038
- h(Za, {
5044
+ h(Ja, {
5039
5045
  "max-file-size": a.maxFileSize,
5040
5046
  "max-file-input": l.maxFileInput
5041
5047
  }, null, 8, ["max-file-size", "max-file-input"])
5042
5048
  ])) : S("", !0)
5043
5049
  ]));
5044
5050
  }
5045
- }), ei = { class: "d-flex" }, ti = { class: "me-3" }, ai = { class: "ms-2" }, ii = { class: "d-flex flex-column w-100" }, ll = /* @__PURE__ */ $({
5051
+ }), Xa = { class: "d-flex" }, Qa = { class: "me-3" }, ei = { class: "ms-2" }, ti = { class: "d-flex flex-column w-100" }, il = /* @__PURE__ */ $({
5046
5052
  __name: "ForgeColumnCustomiser",
5047
5053
  props: {
5048
5054
  modelValue: { required: !0 },
@@ -5050,21 +5056,21 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5050
5056
  },
5051
5057
  emits: ["update:modelValue"],
5052
5058
  setup(e) {
5053
- const t = D(e, "modelValue"), a = _(), i = _(!1), l = (o) => {
5054
- a.value.toggle(o);
5059
+ const t = D(e, "modelValue"), a = I(), i = I(!1), l = (n) => {
5060
+ a.value.toggle(n);
5055
5061
  };
5056
- return (o, n) => (r(), v(O, null, [
5062
+ return (n, o) => (r(), v(O, null, [
5057
5063
  h(u(A), {
5058
5064
  onClick: l,
5059
5065
  class: "ms-2"
5060
5066
  }, {
5061
- default: b(() => [
5062
- m("div", ei, [
5063
- m("div", ti, [
5067
+ default: y(() => [
5068
+ m("div", Xa, [
5069
+ m("div", Qa, [
5064
5070
  h(u(j), { icon: "bi:layout-three-columns" })
5065
5071
  ]),
5066
- I(" Columns (" + w(t.value.filter((s) => s.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
5067
- m("div", ai, [
5072
+ _(" Columns (" + k(t.value.filter((s) => s.selected).length ?? 0) + "/" + k(t.value.length ?? 0) + ") ", 1),
5073
+ m("div", ei, [
5068
5074
  h(u(j), {
5069
5075
  icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
5070
5076
  }, null, 8, ["icon"])
@@ -5073,24 +5079,24 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5073
5079
  ]),
5074
5080
  _: 1
5075
5081
  }),
5076
- h(u(ve), {
5082
+ h(u(fe), {
5077
5083
  ref_key: "columnCustomiserPanel",
5078
5084
  ref: a,
5079
5085
  class: "column-customiser",
5080
- onHide: n[0] || (n[0] = () => i.value = !1),
5081
- onShow: n[1] || (n[1] = () => i.value = !0)
5086
+ onHide: o[0] || (o[0] = () => i.value = !1),
5087
+ onShow: o[1] || (o[1] = () => i.value = !0)
5082
5088
  }, {
5083
- default: b(() => [
5084
- m("div", ii, [
5089
+ default: y(() => [
5090
+ m("div", ti, [
5085
5091
  (r(!0), v(O, null, N(t.value, (s, p) => (r(), v("div", {
5086
- class: B(["d-flex cursor-pointer", {
5092
+ class: F(["d-flex cursor-pointer", {
5087
5093
  "border-top": p !== 0,
5088
5094
  "py-1": p !== 0 && t.value.length - 1 !== p,
5089
5095
  "pt-1": t.value.length - 1 === p,
5090
5096
  "pb-1": p === 0
5091
5097
  }])
5092
5098
  }, [
5093
- h(fe, {
5099
+ h(ge, {
5094
5100
  id: s.field,
5095
5101
  modelValue: s.selected,
5096
5102
  "onUpdate:modelValue": (c) => s.selected = c,
@@ -5105,13 +5111,13 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5105
5111
  }, 512)
5106
5112
  ], 64));
5107
5113
  }
5108
- }), ol = /* @__PURE__ */ $({
5114
+ }), ll = /* @__PURE__ */ $({
5109
5115
  __name: "ForgePanel",
5110
5116
  setup(e) {
5111
5117
  return (t, a) => {
5112
5118
  const i = Re;
5113
5119
  return r(), f(i, W(Y({ ...t.$attrs })), ee({
5114
- toggleicon: b(({ collapsed: l }) => [
5120
+ toggleicon: y(({ collapsed: l }) => [
5115
5121
  l ? (r(), f(u(j), {
5116
5122
  key: 0,
5117
5123
  "data-cy": "message-icon",
@@ -5125,16 +5131,16 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5125
5131
  ]),
5126
5132
  _: 2
5127
5133
  }, [
5128
- N(t.$slots, (l, o) => ({
5129
- name: o,
5130
- fn: b((n) => [
5131
- k(t.$slots, o, W(Y(n)))
5134
+ N(t.$slots, (l, n) => ({
5135
+ name: n,
5136
+ fn: y((o) => [
5137
+ w(t.$slots, n, W(Y(o)))
5132
5138
  ])
5133
5139
  }))
5134
5140
  ]), 1040);
5135
5141
  };
5136
5142
  }
5137
- }), li = /* @__PURE__ */ $({
5143
+ }), ai = /* @__PURE__ */ $({
5138
5144
  __name: "ForgeToggleButton",
5139
5145
  props: {
5140
5146
  severity: { default: "primary" }
@@ -5166,7 +5172,7 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5166
5172
  pt: a.value
5167
5173
  }), null, 16, ["severity", "pt"]));
5168
5174
  }
5169
- }), oi = {
5175
+ }), ii = {
5170
5176
  class: "btn-group",
5171
5177
  "data-cy": "forge-select-button"
5172
5178
  }, nl = /* @__PURE__ */ $({
@@ -5182,25 +5188,25 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5182
5188
  }),
5183
5189
  emits: ["update:modelValue"],
5184
5190
  setup(e) {
5185
- const t = e, a = D(e, "modelValue"), i = (o) => {
5186
- var n;
5187
- return t.multiple ? (n = a == null ? void 0 : a.value) == null ? void 0 : n.includes(o.value) : a.value === o.value;
5188
- }, l = (o) => {
5189
- var n;
5190
- if (!o.disabled)
5191
+ const t = e, a = D(e, "modelValue"), i = (n) => {
5192
+ var o;
5193
+ return t.multiple ? (o = a == null ? void 0 : a.value) == null ? void 0 : o.includes(n.value) : a.value === n.value;
5194
+ }, l = (n) => {
5195
+ var o;
5196
+ if (!n.disabled)
5191
5197
  if (t.multiple) {
5192
- let s = (n = a.value) != null && n.length ? [...a.value] : [];
5193
- if (s.length >= 1 && s.includes(o.value)) {
5198
+ let s = (o = a.value) != null && o.length ? [...a.value] : [];
5199
+ if (s.length >= 1 && s.includes(n.value)) {
5194
5200
  if (!t.allowEmpty && s.length === 1) return;
5195
- s = s.length > 1 ? s.filter((c) => c !== o.value) : [];
5201
+ s = s.length > 1 ? s.filter((c) => c !== n.value) : [];
5196
5202
  } else
5197
- s.push(o.value);
5203
+ s.push(n.value);
5198
5204
  a.value = s;
5199
5205
  } else
5200
- a.value = a.value === o.value && t.allowEmpty ? null : o.value;
5206
+ a.value = a.value === n.value && t.allowEmpty ? null : n.value;
5201
5207
  };
5202
- return (o, n) => (r(), v("div", oi, [
5203
- (r(!0), v(O, null, N(o.options, (s, p) => (r(), f(li, {
5208
+ return (n, o) => (r(), v("div", ii, [
5209
+ (r(!0), v(O, null, N(n.options, (s, p) => (r(), f(ai, {
5204
5210
  key: p,
5205
5211
  onLabel: s.label,
5206
5212
  offLabel: s.label,
@@ -5209,11 +5215,11 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5209
5215
  defaultValue: i(s),
5210
5216
  disabled: s.disabled,
5211
5217
  "data-cy": `toggle-button-${s.value}`,
5212
- invalid: o.invalid
5218
+ invalid: n.invalid
5213
5219
  }, null, 8, ["onLabel", "offLabel", "severity", "onChange", "defaultValue", "disabled", "data-cy", "invalid"]))), 128))
5214
5220
  ]));
5215
5221
  }
5216
- }), sl = () => ({
5222
+ }), ol = () => ({
5217
5223
  type: "component",
5218
5224
  resolve: (e) => {
5219
5225
  if (e.startsWith("Forge"))
@@ -5224,37 +5230,37 @@ const _a = { class: "d-flex justify-content-between" }, Pa = ["accept", "disable
5224
5230
  }
5225
5231
  });
5226
5232
  export {
5227
- Ni as Bootstrap_PT,
5228
- Ui as ForgeActionButton,
5233
+ Di as Bootstrap_PT,
5234
+ Oi as ForgeActionButton,
5229
5235
  se as ForgeAlert,
5230
- Ai as ForgeAutoComplete,
5231
- fe as ForgeCheckbox,
5232
- Ki as ForgeChip,
5233
- ll as ForgeColumnCustomiser,
5236
+ Ni as ForgeAutoComplete,
5237
+ ge as ForgeCheckbox,
5238
+ Gi as ForgeChip,
5239
+ il as ForgeColumnCustomiser,
5234
5240
  be as ForgeDatepicker,
5235
- il as ForgeFileUploader,
5236
- al as ForgeFilterHeader,
5237
- Gi as ForgeForm,
5238
- Ji as ForgeFormField,
5239
- At as ForgeInlineEditor,
5240
- qi as ForgeLink,
5241
- ge as ForgeLoader,
5242
- Ri as ForgeModal,
5243
- Wt as ForgeMultiSelectPreview,
5244
- Hi as ForgeNavbar,
5245
- Wi as ForgePageHeader,
5246
- ol as ForgePanel,
5247
- la as ForgeProgressBar,
5248
- Yi as ForgeRemainingCharacters,
5249
- sl as ForgeResolver,
5250
- Zi as ForgeScratchpad,
5241
+ al as ForgeFileUploader,
5242
+ tl as ForgeFilterHeader,
5243
+ Wi as ForgeForm,
5244
+ Yi as ForgeFormField,
5245
+ Ut as ForgeInlineEditor,
5246
+ Ui as ForgeLink,
5247
+ re as ForgeLoader,
5248
+ Ei as ForgeModal,
5249
+ Ht as ForgeMultiSelectPreview,
5250
+ Li as ForgeNavbar,
5251
+ Ri as ForgePageHeader,
5252
+ ll as ForgePanel,
5253
+ Ji as ForgeProgressBar,
5254
+ Hi as ForgeRemainingCharacters,
5255
+ ol as ForgeResolver,
5256
+ Ki as ForgeScratchpad,
5251
5257
  nl as ForgeSelectButton,
5252
- Xi as ForgeStatWidget,
5253
- Qi as ForgeStepper,
5254
- tl as ForgeTable,
5255
- el as ForgeTile,
5256
- li as ForgeToggleButton,
5257
- Li as convertToMultiSelectOption,
5258
- Ei as enumToMultiSelectList,
5259
- It as parseError
5258
+ Zi as ForgeStatWidget,
5259
+ Xi as ForgeStepper,
5260
+ el as ForgeTable,
5261
+ Qi as ForgeTile,
5262
+ ai as ForgeToggleButton,
5263
+ qi as convertToMultiSelectOption,
5264
+ Ai as enumToMultiSelectList,
5265
+ jt as parseError
5260
5266
  };