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