@3squared/forge-ui-3 2.3.0 → 2.4.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,22 +1,22 @@
1
1
  import he from "primevue/message";
2
- import { defineComponent as F, openBlock as d, createBlock as b, normalizeProps as X, guardReactiveProps as Q, withCtx as g, createElementVNode as u, normalizeClass as B, unref as c, createCommentVNode as z, createVNode as y, renderSlot as k, ref as I, createElementBlock as f, Fragment as N, mergeProps as S, renderList as q, mergeModels as E, useModel as D, computed as C, createTextVNode as P, toDisplayString as w, withDirectives as H, vShow as Y, createSlots as ie, onMounted as le, isRef as we, withKeys as K, normalizeStyle as ke, withModifiers as G, watch as ce, h as $e, useTemplateRef as Be } from "vue";
2
+ import { defineComponent as F, openBlock as d, createBlock as b, normalizeProps as X, guardReactiveProps as Q, withCtx as g, createElementVNode as m, normalizeClass as B, unref as c, createCommentVNode as C, createVNode as y, renderSlot as k, ref as I, createElementBlock as f, Fragment as N, mergeProps as S, renderList as q, mergeModels as E, useModel as D, computed as z, createTextVNode as P, toDisplayString as w, withDirectives as H, vShow as Y, createSlots as ie, onMounted as le, isRef as we, withKeys as K, normalizeStyle as ke, withModifiers as G, watch as ce, h as $e, useTemplateRef as Be } from "vue";
3
3
  import { Icon as j } from "@iconify/vue";
4
4
  import U from "primevue/button";
5
5
  import Fe from "primevue/toast";
6
6
  import Se from "primevue/autocomplete";
7
- import ze from "primevue/checkbox";
7
+ import Ce from "primevue/checkbox";
8
8
  import { useField as ee } from "vee-validate";
9
- import Ce from "primevue/progressspinner";
9
+ import ze from "primevue/progressspinner";
10
10
  import Te from "primevue/dialog";
11
- import oe from "primevue/inputtext";
11
+ import ne from "primevue/inputtext";
12
12
  import { vOnClickOutside as je } from "@vueuse/components";
13
13
  import Ie from "primevue/menubar";
14
- import ne from "primevue/multiselect";
14
+ import oe from "primevue/multiselect";
15
15
  import Pe from "primevue/datepicker";
16
16
  import te from "primevue/select";
17
17
  import _e from "primevue/inputmask";
18
18
  import Ve from "primevue/textarea";
19
- import me from "primevue/inputnumber";
19
+ import ue 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,7 +25,7 @@ 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 ue } from "@azure/storage-blob";
28
+ import { BlockBlobClient as me } from "@azure/storage-blob";
29
29
  import ve from "primevue/popover";
30
30
  import Le from "primevue/image";
31
31
  const Re = {
@@ -389,10 +389,13 @@ const Re = {
389
389
  }
390
390
  }, tt = {
391
391
  dialog: {
392
+ root: ({ parent: e }) => e.instance.$.type.name == "ConfirmDialog" ? {
393
+ class: ["modal modal-dialog modal-content h-auto m-0 modal-sm"]
394
+ } : {},
392
395
  header: () => ({
393
396
  class: ["modal-header"]
394
397
  }),
395
- headerTitle: () => ({
398
+ title: () => ({
396
399
  class: ["h5 modal-title text-black"]
397
400
  }),
398
401
  content: () => ({
@@ -404,8 +407,17 @@ const Re = {
404
407
  headerIcons: () => ({
405
408
  class: ["ms-auto"]
406
409
  }),
407
- headerActions: "d-flex ms-auto",
408
- pcCloseButton: ({ props: e }) => ({
410
+ icon: () => ({
411
+ class: ["ms-auto"]
412
+ }),
413
+ headerActions: ({ parent: e }) => e.instance.$.type.name == "ConfirmDialog" ? {
414
+ class: ["d-none"]
415
+ } : {
416
+ class: ["d-flex ms-auto"]
417
+ },
418
+ pcCloseButton: ({ props: e, parent: t }) => t.instance.$.type.name == "ConfirmDialog" ? {
419
+ class: ["btn p-1", "ms-auto"]
420
+ } : {
409
421
  root: {
410
422
  class: [
411
423
  "btn p-1",
@@ -414,7 +426,7 @@ const Re = {
414
426
  }
415
427
  ]
416
428
  }
417
- }),
429
+ },
418
430
  pcMaximizeButton: ({ props: e }) => ({
419
431
  root: {
420
432
  class: [
@@ -505,7 +517,7 @@ const Re = {
505
517
  }),
506
518
  separator: "border border-1 separator"
507
519
  }
508
- }, ot = {
520
+ }, nt = {
509
521
  tabList: {
510
522
  root: () => ({
511
523
  class: ["nav nav-tabs position-relative"]
@@ -530,7 +542,7 @@ const Re = {
530
542
  class: ["p-2"]
531
543
  })
532
544
  }
533
- }, nt = {
545
+ }, ot = {
534
546
  // More PassThrough options defined in ForgeDatepicker.
535
547
  datepicker: {
536
548
  root: "d-inline-flex relative w-100",
@@ -734,7 +746,7 @@ const Re = {
734
746
  ]
735
747
  })
736
748
  }
737
- }, mt = {
749
+ }, ut = {
738
750
  // More PassThrough options in component file.
739
751
  menubar: {
740
752
  rootList: ({ instance: e }) => ({
@@ -815,7 +827,7 @@ const Re = {
815
827
  ]
816
828
  })
817
829
  }
818
- }, ut = {
830
+ }, mt = {
819
831
  tooltip: {
820
832
  root: ({ context: e }) => ({
821
833
  class: [
@@ -1000,7 +1012,7 @@ const Re = {
1000
1012
  ]
1001
1013
  })
1002
1014
  }
1003
- }, zi = {
1015
+ }, Ci = {
1004
1016
  ...Re,
1005
1017
  ...ct,
1006
1018
  ...He,
@@ -1008,7 +1020,7 @@ const Re = {
1008
1020
  ...We,
1009
1021
  ...et,
1010
1022
  ...Ge,
1011
- ...nt,
1023
+ ...ot,
1012
1024
  ...tt,
1013
1025
  ...xt,
1014
1026
  ...Ye,
@@ -1018,7 +1030,7 @@ const Re = {
1018
1030
  ...Ze,
1019
1031
  ...it,
1020
1032
  ...st,
1021
- ...mt,
1033
+ ...ut,
1022
1034
  ...at,
1023
1035
  ...rt,
1024
1036
  ...gt,
@@ -1028,12 +1040,12 @@ const Re = {
1028
1040
  ...lt,
1029
1041
  ...pt,
1030
1042
  ...Xe,
1031
- ...ot,
1043
+ ...nt,
1032
1044
  ...ht,
1033
1045
  ...Qe,
1034
1046
  ...wt,
1035
1047
  directives: {
1036
- ...ut
1048
+ ...mt
1037
1049
  }
1038
1050
  }, se = /* @__PURE__ */ F({
1039
1051
  __name: "ForgeAlert",
@@ -1058,7 +1070,7 @@ const Re = {
1058
1070
  const l = he;
1059
1071
  return d(), b(l, X(Q({ ...a.$attrs, ...t })), {
1060
1072
  icon: g(() => [
1061
- u("div", {
1073
+ m("div", {
1062
1074
  class: B(t.icon ? "me-2 pe-1" : "")
1063
1075
  }, [
1064
1076
  t.icon ? (d(), b(c(j), {
@@ -1067,7 +1079,7 @@ const Re = {
1067
1079
  icon: t.icon,
1068
1080
  class: B(`text-${t.severity}`),
1069
1081
  height: 35
1070
- }, null, 8, ["icon", "class"])) : z("", !0)
1082
+ }, null, 8, ["icon", "class"])) : C("", !0)
1071
1083
  ], 2)
1072
1084
  ]),
1073
1085
  closeicon: g(() => [
@@ -1080,7 +1092,7 @@ const Re = {
1080
1092
  }, 16);
1081
1093
  };
1082
1094
  }
1083
- }), Ci = /* @__PURE__ */ F({
1095
+ }), zi = /* @__PURE__ */ F({
1084
1096
  __name: "ForgeActionButton",
1085
1097
  props: {
1086
1098
  action: {},
@@ -1098,7 +1110,7 @@ const Re = {
1098
1110
  }
1099
1111
  t.value = !1;
1100
1112
  };
1101
- return (l, o) => {
1113
+ return (l, n) => {
1102
1114
  const s = U;
1103
1115
  return d(), f(N, null, [
1104
1116
  y(s, S({ ...a, ...l.$attrs }, {
@@ -1155,7 +1167,7 @@ const Re = {
1155
1167
  }),
1156
1168
  emits: ["update:modelValue"],
1157
1169
  setup(e) {
1158
- const t = e, a = D(e, "modelValue"), { handleChange: i, errors: l, errorMessage: o } = ee(
1170
+ const t = e, a = D(e, "modelValue"), { handleChange: i, errors: l, errorMessage: n } = ee(
1159
1171
  () => t.name ?? "",
1160
1172
  void 0,
1161
1173
  {
@@ -1164,26 +1176,26 @@ const Re = {
1164
1176
  }
1165
1177
  ), s = (p) => {
1166
1178
  t.name ? i(p) : a.value = p;
1167
- }, r = C(() => l.value.length > 0);
1168
- return (p, m) => {
1169
- const x = ze;
1179
+ }, r = z(() => l.value.length > 0);
1180
+ return (p, u) => {
1181
+ const x = Ce;
1170
1182
  return d(), f("div", kt, [
1171
- u("div", S({
1183
+ m("div", S({
1172
1184
  class: "d-flex",
1173
1185
  "data-cy": "checkbox-container",
1174
- onClick: m[2] || (m[2] = (n) => s(a.value))
1186
+ onClick: u[2] || (u[2] = (o) => s(a.value))
1175
1187
  }, { ...p.$attrs }), [
1176
1188
  y(x, S({ ...t }, {
1177
1189
  binary: "",
1178
1190
  modelValue: a.value,
1179
- "onUpdate:modelValue": m[0] || (m[0] = (n) => a.value = n),
1191
+ "onUpdate:modelValue": u[0] || (u[0] = (o) => a.value = o),
1180
1192
  "input-id": t.name,
1181
1193
  "input-class": { "is-invalid": r.value },
1182
1194
  class: t.disabled ? "" : "cursor-pointer"
1183
1195
  }), null, 16, ["modelValue", "input-id", "input-class", "class"]),
1184
- u("label", {
1196
+ m("label", {
1185
1197
  for: t.name,
1186
- onClick: m[1] || (m[1] = (n) => s(!a.value)),
1198
+ onClick: u[1] || (u[1] = (o) => s(!a.value)),
1187
1199
  class: B([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${r.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1188
1200
  }, [
1189
1201
  k(p.$slots, "default", {}, () => [
@@ -1191,10 +1203,10 @@ const Re = {
1191
1203
  ])
1192
1204
  ], 10, $t)
1193
1205
  ], 16),
1194
- H(u("small", {
1206
+ H(m("small", {
1195
1207
  "data-cy": "error",
1196
1208
  class: "text-invalid"
1197
- }, w(c(o)), 513), [
1209
+ }, w(c(n)), 513), [
1198
1210
  [Y, r.value]
1199
1211
  ])
1200
1212
  ]);
@@ -1208,7 +1220,7 @@ const Re = {
1208
1220
  setup(e) {
1209
1221
  const t = e;
1210
1222
  return (a, i) => {
1211
- const l = Ce;
1223
+ const l = ze;
1212
1224
  return d(), f("div", Bt, [
1213
1225
  y(l, {
1214
1226
  "animation-duration": ".75",
@@ -1235,7 +1247,7 @@ const Re = {
1235
1247
  iconName: {}
1236
1248
  },
1237
1249
  setup(e) {
1238
- const t = C(() => ({
1250
+ const t = z(() => ({
1239
1251
  [`link-${e.severity}`]: e.severity,
1240
1252
  [`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
1241
1253
  [`link-opacity-${e.opacity}`]: e.opacity,
@@ -1244,7 +1256,7 @@ const Re = {
1244
1256
  [`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
1245
1257
  [`link-offset-${e.underlineOffset}`]: e.underlineOffset,
1246
1258
  "icon-link icon-link-hover": e.animateIconOnHover
1247
- })), a = C(() => ({
1259
+ })), a = z(() => ({
1248
1260
  "order-2": e.positionIconEnd,
1249
1261
  "me-1": !e.positionIconEnd && !e.animateIconOnHover,
1250
1262
  "ms-1": e.positionIconEnd && !e.animateIconOnHover,
@@ -1263,7 +1275,7 @@ const Re = {
1263
1275
  id: "link-icon",
1264
1276
  icon: i.iconName,
1265
1277
  class: B(["bi my-auto", a.value])
1266
- }, null, 8, ["icon", "class"])) : z("", !0),
1278
+ }, null, 8, ["icon", "class"])) : C("", !0),
1267
1279
  P(" " + w(i.label), 1)
1268
1280
  ])
1269
1281
  ], 10, Ft));
@@ -1286,7 +1298,7 @@ function Ii(e, t) {
1286
1298
  function Pi(e, t, a) {
1287
1299
  return { id: e, label: t ?? e.toString(), shortLabel: a };
1288
1300
  }
1289
- const zt = { key: 0 }, Ct = {
1301
+ const Ct = { key: 0 }, zt = {
1290
1302
  class: "d-flex w-100",
1291
1303
  "data-cy": "footer"
1292
1304
  }, _i = /* @__PURE__ */ F({
@@ -1339,7 +1351,7 @@ const zt = { key: 0 }, Ct = {
1339
1351
  }),
1340
1352
  emits: ["update:visible"],
1341
1353
  setup(e) {
1342
- const t = D(e, "visible"), a = I(!1), i = e, l = I(!1), o = I({
1354
+ const t = D(e, "visible"), a = I(!1), i = e, l = I(!1), n = I({
1343
1355
  hasError: !1,
1344
1356
  header: "",
1345
1357
  message: []
@@ -1349,20 +1361,20 @@ const zt = { key: 0 }, Ct = {
1349
1361
  a.value = !0;
1350
1362
  }, p = () => {
1351
1363
  t.value = !1;
1352
- }, m = async () => {
1364
+ }, u = async () => {
1353
1365
  if (i.onConfirm) {
1354
- l.value = !0, o.value.hasError = !1;
1366
+ l.value = !0, n.value.hasError = !1;
1355
1367
  try {
1356
- const n = await i.onConfirm();
1357
- (n || n == null) && p();
1358
- } catch (n) {
1359
- o.value.hasError = !0;
1360
- const $ = St(n);
1361
- o.value.header = $.errorMessage, o.value.message = $.errorDetails;
1368
+ const o = await i.onConfirm();
1369
+ (o || o == null) && p();
1370
+ } catch (o) {
1371
+ n.value.hasError = !0;
1372
+ const $ = St(o);
1373
+ n.value.header = $.errorMessage, n.value.message = $.errorDetails;
1362
1374
  }
1363
1375
  l.value = !1;
1364
1376
  }
1365
- }, x = C(() => ({
1377
+ }, x = z(() => ({
1366
1378
  root: [
1367
1379
  "modal modal-dialog modal-content h-auto m-0",
1368
1380
  {
@@ -1373,7 +1385,7 @@ const zt = { key: 0 }, Ct = {
1373
1385
  }
1374
1386
  ]
1375
1387
  }));
1376
- return (n, $) => {
1388
+ return (o, $) => {
1377
1389
  const T = U, V = Te;
1378
1390
  return d(), b(V, S(i, {
1379
1391
  onMaximize: r,
@@ -1399,36 +1411,36 @@ const zt = { key: 0 }, Ct = {
1399
1411
  ]),
1400
1412
  _: 2
1401
1413
  }, [
1402
- q(n.$slots, (M, O) => ({
1414
+ q(o.$slots, (M, O) => ({
1403
1415
  name: O,
1404
1416
  fn: g((v) => [
1405
- o.value.hasError ? (d(), b(se, {
1417
+ n.value.hasError ? (d(), b(se, {
1406
1418
  key: 0,
1407
1419
  severity: "danger",
1408
1420
  "data-cy": "error"
1409
1421
  }, {
1410
1422
  default: g(() => [
1411
- u("p", {
1412
- class: B(o.value.message.length > 0 ? "my-auto" : "mb-0")
1413
- }, w(o.value.header), 3),
1414
- o.value.message.length > 0 ? (d(), f("ul", zt, [
1415
- (d(!0), f(N, null, q(o.value.message, (h) => (d(), f("li", { key: h }, w(h), 1))), 128))
1416
- ])) : z("", !0)
1423
+ m("p", {
1424
+ class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
1425
+ }, w(n.value.header), 3),
1426
+ n.value.message.length > 0 ? (d(), f("ul", Ct, [
1427
+ (d(!0), f(N, null, q(n.value.message, (h) => (d(), f("li", { key: h }, w(h), 1))), 128))
1428
+ ])) : C("", !0)
1417
1429
  ]),
1418
1430
  _: 1
1419
- })) : z("", !0),
1420
- k(n.$slots, O, X(Q(v || {}))),
1421
- l.value ? k(n.$slots, "loader", { key: 1 }, () => [
1431
+ })) : C("", !0),
1432
+ k(o.$slots, O, X(Q(v || {}))),
1433
+ l.value ? k(o.$slots, "loader", { key: 1 }, () => [
1422
1434
  y(ge, { "data-cy": "loader" })
1423
- ]) : z("", !0)
1435
+ ]) : C("", !0)
1424
1436
  ])
1425
1437
  })),
1426
- n.showFooter ? {
1438
+ o.showFooter ? {
1427
1439
  name: "footer",
1428
1440
  fn: g(() => [
1429
- u("div", Ct, [
1441
+ m("div", zt, [
1430
1442
  y(T, {
1431
- label: n.cancelText,
1443
+ label: o.cancelText,
1432
1444
  class: B(i.cancelClass),
1433
1445
  outlined: "",
1434
1446
  onClick: p,
@@ -1436,9 +1448,9 @@ const zt = { key: 0 }, Ct = {
1436
1448
  type: i.cancelButtonType
1437
1449
  }, null, 8, ["label", "class", "type"]),
1438
1450
  y(T, {
1439
- label: n.submitText,
1451
+ label: o.submitText,
1440
1452
  class: B([i.submitClass, "ms-auto"]),
1441
- onClick: m,
1453
+ onClick: u,
1442
1454
  id: "submit-button",
1443
1455
  type: i.submitButtonType
1444
1456
  }, null, 8, ["label", "class", "type"])
@@ -1464,13 +1476,13 @@ const zt = { key: 0 }, Ct = {
1464
1476
  }),
1465
1477
  emits: ["update:modelValue"],
1466
1478
  setup(e) {
1467
- const t = e, a = D(e, "modelValue"), i = I(!1), l = I(), o = () => {
1479
+ const t = e, a = D(e, "modelValue"), i = I(!1), l = I(), n = () => {
1468
1480
  var T;
1469
1481
  i.value = !i.value, (T = l.value) == null || T.focus();
1470
1482
  }, s = async () => {
1471
1483
  if ($.value)
1472
1484
  return !1;
1473
- if (a.value = n.value, t.completeAction)
1485
+ if (a.value = o.value, t.completeAction)
1474
1486
  try {
1475
1487
  await t.completeAction.apply(this, t.params), i.value = !i.value;
1476
1488
  } catch {
@@ -1481,22 +1493,22 @@ const zt = { key: 0 }, Ct = {
1481
1493
  }, r = () => {
1482
1494
  i.value = !i.value;
1483
1495
  }, p = () => {
1484
- n.value = null;
1485
- }, { errorMessage: m, errors: x, value: n } = ee(() => t.name, void 0, {
1496
+ o.value = null;
1497
+ }, { errorMessage: u, errors: x, value: o } = ee(() => t.name, void 0, {
1486
1498
  initialValue: a.value
1487
1499
  });
1488
1500
  le(() => {
1489
- n.value = a.value;
1501
+ o.value = a.value;
1490
1502
  });
1491
- const $ = C(() => x.value.length > 0);
1503
+ const $ = z(() => x.value.length > 0);
1492
1504
  return (T, V) => {
1493
- const M = oe, O = U;
1505
+ const M = ne, O = U;
1494
1506
  return d(), f("div", {
1495
1507
  id: t.name
1496
1508
  }, [
1497
1509
  T.readonly ? (d(), f("div", _t, [
1498
1510
  k(T.$slots, "default", {}, () => [
1499
- u("span", Vt, w(c(n)), 1)
1511
+ m("span", Vt, w(c(o)), 1)
1500
1512
  ])
1501
1513
  ])) : (d(), f("div", jt, [
1502
1514
  i.value ? (d(), f("div", It, [
@@ -1505,11 +1517,11 @@ const zt = { key: 0 }, Ct = {
1505
1517
  class: B({ "is-invalid": $.value }),
1506
1518
  editFinished: s,
1507
1519
  cancel: r,
1508
- val: c(n)
1520
+ val: c(o)
1509
1521
  }, () => [
1510
1522
  y(M, {
1511
- modelValue: c(n),
1512
- "onUpdate:modelValue": V[0] || (V[0] = (v) => we(n) ? n.value = v : null),
1523
+ modelValue: c(o),
1524
+ "onUpdate:modelValue": V[0] || (V[0] = (v) => we(o) ? o.value = v : null),
1513
1525
  modelModifiers: { trim: !0 },
1514
1526
  "data-cy": "input",
1515
1527
  ref_key: "input",
@@ -1534,14 +1546,14 @@ const zt = { key: 0 }, Ct = {
1534
1546
  ])) : (d(), f("div", {
1535
1547
  key: 1,
1536
1548
  class: "d-flex text-muted",
1537
- onClick: o,
1538
- onFocus: o
1549
+ onClick: n,
1550
+ onFocus: n
1539
1551
  }, [
1540
1552
  k(T.$slots, "default", {}, () => [
1541
- u("div", {
1553
+ m("div", {
1542
1554
  class: B(["pe-2 cursor-pointer", { "text-invalid": $.value }]),
1543
1555
  "data-cy": "value"
1544
- }, w(c(n) ? c(n) : "Click to edit"), 3)
1556
+ }, w(c(o) ? c(o) : "Click to edit"), 3)
1545
1557
  ]),
1546
1558
  y(O, {
1547
1559
  link: "",
@@ -1552,17 +1564,17 @@ const zt = { key: 0 }, Ct = {
1552
1564
  icon: "bi:pencil",
1553
1565
  class: B($.value ? "text-invalid" : "text-muted"),
1554
1566
  "data-cy": "edit-icon",
1555
- onKeydown: K(o, ["enter"])
1567
+ onKeydown: K(n, ["enter"])
1556
1568
  }, null, 8, ["class"])
1557
1569
  ]),
1558
1570
  _: 1
1559
1571
  })
1560
1572
  ], 32))
1561
1573
  ])),
1562
- H(u("small", {
1574
+ H(m("small", {
1563
1575
  "data-cy": "error",
1564
1576
  class: "text-invalid"
1565
- }, w(c(m)), 513), [
1577
+ }, w(c(u)), 513), [
1566
1578
  [Y, $.value]
1567
1579
  ])
1568
1580
  ], 8, Tt);
@@ -1585,7 +1597,7 @@ const zt = { key: 0 }, Ct = {
1585
1597
  unstyled: { type: Boolean }
1586
1598
  },
1587
1599
  setup(e) {
1588
- const t = e, a = C(() => ({
1600
+ const t = e, a = z(() => ({
1589
1601
  root: () => ({
1590
1602
  class: [
1591
1603
  "navbar container-fluid navbar-expand-lg",
@@ -1617,7 +1629,7 @@ const zt = { key: 0 }, Ct = {
1617
1629
  "data-cy": "navbar"
1618
1630
  }), ie({
1619
1631
  start: g(() => [
1620
- u("a", {
1632
+ m("a", {
1621
1633
  href: i.logoUrl,
1622
1634
  class: "navbar-brand ms-3",
1623
1635
  "data-cy": "logo"
@@ -1639,7 +1651,7 @@ const zt = { key: 0 }, Ct = {
1639
1651
  ]),
1640
1652
  _: 2
1641
1653
  }, [
1642
- q(i.$slots, (o, s) => ({
1654
+ q(i.$slots, (n, s) => ({
1643
1655
  name: s,
1644
1656
  fn: g((r) => [
1645
1657
  k(i.$slots, s, X(Q(r)))
@@ -1671,21 +1683,21 @@ const zt = { key: 0 }, Ct = {
1671
1683
  emits: ["update:modelValue"],
1672
1684
  setup(e) {
1673
1685
  const t = e, a = D(e, "modelValue"), i = (l) => {
1674
- a.value = a.value.filter((o) => o.id !== l);
1686
+ a.value = a.value.filter((n) => n.id !== l);
1675
1687
  };
1676
- return (l, o) => {
1677
- const s = ne, r = U;
1688
+ return (l, n) => {
1689
+ const s = oe, r = U;
1678
1690
  return d(), f("div", {
1679
1691
  class: B(l.orientation === "column" ? "row" : ""),
1680
1692
  "data-cy": "multiselect-preview"
1681
1693
  }, [
1682
- u("div", {
1694
+ m("div", {
1683
1695
  class: B(l.orientation === "row" ? "col-12 mb-1" : "col"),
1684
1696
  "data-cy": "multiselect-container"
1685
1697
  }, [
1686
1698
  y(s, S({
1687
1699
  modelValue: a.value,
1688
- "onUpdate:modelValue": o[0] || (o[0] = (p) => a.value = p)
1700
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => a.value = p)
1689
1701
  }, { ...l.$attrs }, {
1690
1702
  options: t.options ?? [],
1691
1703
  optionLabel: "label",
@@ -1693,34 +1705,34 @@ const zt = { key: 0 }, Ct = {
1693
1705
  "data-cy": "multiselect"
1694
1706
  }), {
1695
1707
  default: g(() => [
1696
- (d(!0), f(N, null, q(l.$slots, (p, m) => k(l.$slots, m, { slot: m })), 256))
1708
+ (d(!0), f(N, null, q(l.$slots, (p, u) => k(l.$slots, u, { slot: u })), 256))
1697
1709
  ]),
1698
1710
  _: 3
1699
1711
  }, 16, ["modelValue", "options", "placeholder"]),
1700
1712
  k(l.$slots, "after-multi-select")
1701
1713
  ], 2),
1702
- u("div", {
1714
+ m("div", {
1703
1715
  class: B(l.orientation === "row" ? "col-12" : "col"),
1704
1716
  "data-cy": "options-preview"
1705
1717
  }, [
1706
- u("div", {
1718
+ m("div", {
1707
1719
  style: ke({ height: l.height }),
1708
1720
  class: "overflow-auto"
1709
1721
  }, [
1710
- u("div", Ot, [
1711
- l.title ? (d(), f("div", Nt, w(l.title), 1)) : z("", !0),
1722
+ m("div", Ot, [
1723
+ l.title ? (d(), f("div", Nt, w(l.title), 1)) : C("", !0),
1712
1724
  (d(!0), f(N, null, q(a.value, (p) => (d(), f("div", {
1713
1725
  key: p.id,
1714
1726
  class: "p-2 item d-flex justify-content-between align-items-center"
1715
1727
  }, [
1716
1728
  k(l.$slots, "list-item", { item: p }, () => [
1717
- u("span", Ut, w(p.shortLabel ? p.shortLabel : p.label), 1)
1729
+ m("span", Ut, w(p.shortLabel ? p.shortLabel : p.label), 1)
1718
1730
  ]),
1719
1731
  l.canRemoveItemFromPreview ? (d(), b(r, {
1720
1732
  key: 0,
1721
1733
  link: "",
1722
1734
  class: "m-0 p-0 d-flex align-items-center",
1723
- onClick: (m) => i(p.id)
1735
+ onClick: (u) => i(p.id)
1724
1736
  }, {
1725
1737
  default: g(() => [
1726
1738
  y(c(j), {
@@ -1730,9 +1742,9 @@ const zt = { key: 0 }, Ct = {
1730
1742
  }, null, 8, ["data-cy"])
1731
1743
  ]),
1732
1744
  _: 2
1733
- }, 1032, ["onClick"])) : z("", !0)
1745
+ }, 1032, ["onClick"])) : C("", !0)
1734
1746
  ]))), 128)),
1735
- a.value == null || a.value.length == 0 ? (d(), f("div", At, w(t.optionsPreviewEmptyText), 1)) : z("", !0)
1747
+ a.value == null || a.value.length == 0 ? (d(), f("div", At, w(t.optionsPreviewEmptyText), 1)) : C("", !0)
1736
1748
  ])
1737
1749
  ], 4)
1738
1750
  ], 2)
@@ -1753,8 +1765,8 @@ const zt = { key: 0 }, Ct = {
1753
1765
  setup(e) {
1754
1766
  const t = e;
1755
1767
  return (a, i) => (d(), f("div", Et, [
1756
- u("h3", Lt, w(t.title), 1),
1757
- u("div", Rt, [
1768
+ m("h3", Lt, w(t.title), 1),
1769
+ m("div", Rt, [
1758
1770
  k(a.$slots, "default")
1759
1771
  ])
1760
1772
  ]));
@@ -1835,37 +1847,37 @@ const zt = { key: 0 }, Ct = {
1835
1847
  }),
1836
1848
  emits: ["update:modelValue"],
1837
1849
  setup(e) {
1838
- const t = e, a = D(e, "modelValue"), { errors: i, errorMessage: l, handleChange: o, handleBlur: s, setValue: r } = ee(() => t.name, void 0, {
1850
+ const t = e, a = D(e, "modelValue"), { errors: i, errorMessage: l, handleChange: n, handleBlur: s, setValue: r } = ee(() => t.name, void 0, {
1839
1851
  initialValue: a.value
1840
1852
  }), p = () => {
1841
1853
  r(null), a.value = null;
1842
- }, m = C(() => i.value.length > 0), x = C(() => ({
1843
- dayCell: ({ context: n }) => ({
1854
+ }, u = z(() => i.value.length > 0), x = z(() => ({
1855
+ dayCell: ({ context: o }) => ({
1844
1856
  class: [
1845
1857
  `text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
1846
1858
  {
1847
- "cursor-pointer": !n.disabled,
1848
- "pe-none": n.disabled,
1849
- "text-white": n.selected
1859
+ "cursor-pointer": !o.disabled,
1860
+ "pe-none": o.disabled,
1861
+ "text-white": o.selected
1850
1862
  },
1851
1863
  // Severities
1852
1864
  {
1853
- selected: n.selected && !n.disabled,
1854
- "text-primary": !n.selected && n.today && (t.severity === void 0 || t.severity === "primary"),
1855
- "text-brand": !n.selected && n.today && t.severity === "brand",
1856
- "text-secondary": !n.selected && n.today && t.severity === "secondary",
1857
- "text-success": !n.selected && n.today && t.severity === "success",
1858
- "text-warning": !n.selected && n.today && t.severity === "warning",
1859
- "text-danger": !n.selected && n.today && t.severity === "danger",
1860
- "text-info": !n.selected && n.today && t.severity === "info"
1865
+ selected: o.selected && !o.disabled,
1866
+ "text-primary": !o.selected && o.today && (t.severity === void 0 || t.severity === "primary"),
1867
+ "text-brand": !o.selected && o.today && t.severity === "brand",
1868
+ "text-secondary": !o.selected && o.today && t.severity === "secondary",
1869
+ "text-success": !o.selected && o.today && t.severity === "success",
1870
+ "text-warning": !o.selected && o.today && t.severity === "warning",
1871
+ "text-danger": !o.selected && o.today && t.severity === "danger",
1872
+ "text-info": !o.selected && o.today && t.severity === "info"
1861
1873
  }
1862
1874
  ]
1863
1875
  }),
1864
- dayLabel: ({ context: n }) => ({
1876
+ dayLabel: ({ context: o }) => ({
1865
1877
  class: [
1866
1878
  // Disabled States
1867
1879
  {
1868
- "text-muted": n.disabled
1880
+ "text-muted": o.disabled
1869
1881
  }
1870
1882
  ]
1871
1883
  }),
@@ -1901,57 +1913,57 @@ const zt = { key: 0 }, Ct = {
1901
1913
  ]
1902
1914
  })
1903
1915
  },
1904
- year: ({ context: n }) => ({
1916
+ year: ({ context: o }) => ({
1905
1917
  class: [
1906
1918
  "col-3 text-center cursor-pointer py-2",
1907
1919
  {
1908
- "text-primary": (t.severity === void 0 || t.severity === "primary") && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1909
- "text-brand": t.severity === "brand" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1910
- "text-secondary": t.severity === "secondary" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1911
- "text-success": t.severity === "success" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1912
- "text-warning": t.severity === "warning" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1913
- "text-danger": t.severity === "danger" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1914
- "text-info": t.severity === "info" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear()
1920
+ "text-primary": (t.severity === void 0 || t.severity === "primary") && o.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1921
+ "text-brand": t.severity === "brand" && o.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1922
+ "text-secondary": t.severity === "secondary" && o.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1923
+ "text-success": t.severity === "success" && o.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1924
+ "text-warning": t.severity === "warning" && o.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1925
+ "text-danger": t.severity === "danger" && o.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1926
+ "text-info": t.severity === "info" && o.year.value === (/* @__PURE__ */ new Date()).getFullYear()
1915
1927
  }
1916
1928
  ]
1917
1929
  }),
1918
- month: ({ context: n }) => ({
1930
+ month: ({ context: o }) => ({
1919
1931
  class: [
1920
1932
  "col-3 text-center cursor-pointer py-2",
1921
1933
  {
1922
- "text-primary": (t.severity === void 0 || t.severity === "primary") && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1923
- "text-brand": t.severity === "brand" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1924
- "text-secondary": t.severity === "secondary" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1925
- "text-success": t.severity === "success" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1926
- "text-warning": t.severity === "warning" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1927
- "text-danger": t.severity === "danger" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1928
- "text-info": t.severity === "info" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
1934
+ "text-primary": (t.severity === void 0 || t.severity === "primary") && o.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1935
+ "text-brand": t.severity === "brand" && o.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1936
+ "text-secondary": t.severity === "secondary" && o.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1937
+ "text-success": t.severity === "success" && o.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1938
+ "text-warning": t.severity === "warning" && o.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1939
+ "text-danger": t.severity === "danger" && o.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1940
+ "text-info": t.severity === "info" && o.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
1929
1941
  }
1930
1942
  ]
1931
1943
  })
1932
1944
  }));
1933
- return (n, $) => {
1945
+ return (o, $) => {
1934
1946
  const T = Pe;
1935
1947
  return d(), f(N, null, [
1936
- u("div", Ht, [
1937
- u("span", Wt, [
1938
- k(n.$slots, "before")
1948
+ m("div", Ht, [
1949
+ m("span", Wt, [
1950
+ k(o.$slots, "before")
1939
1951
  ]),
1940
- u("div", Yt, [
1941
- y(T, S({ ...t, ...n.$attrs }, {
1952
+ m("div", Yt, [
1953
+ y(T, S({ ...t, ...o.$attrs }, {
1942
1954
  pt: x.value,
1943
1955
  modelValue: a.value,
1944
1956
  "onUpdate:modelValue": [
1945
1957
  $[0] || ($[0] = (V) => a.value = V),
1946
- c(o)
1958
+ c(n)
1947
1959
  ],
1948
1960
  onBlur: $[1] || ($[1] = () => c(s)),
1949
- "input-class": { "datepicker-invalid": m.value }
1961
+ "input-class": { "datepicker-invalid": u.value }
1950
1962
  }), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
1951
1963
  H(y(c(j), {
1952
1964
  "data-cy": "icon",
1953
1965
  icon: "bi:calendar4",
1954
- class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${m.value ? "text-danger-dark" : "text-muted"}`])
1966
+ class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${u.value ? "text-danger-dark" : "text-muted"}`])
1955
1967
  }, null, 8, ["class"]), [
1956
1968
  [Y, t.showIcon]
1957
1969
  ]),
@@ -1964,15 +1976,15 @@ const zt = { key: 0 }, Ct = {
1964
1976
  [Y, t.modelValue]
1965
1977
  ])
1966
1978
  ]),
1967
- u("span", Gt, [
1968
- k(n.$slots, "after")
1979
+ m("span", Gt, [
1980
+ k(o.$slots, "after")
1969
1981
  ])
1970
1982
  ]),
1971
- H(u("small", {
1983
+ H(m("small", {
1972
1984
  "data-cy": "error",
1973
1985
  class: "text-invalid"
1974
1986
  }, w(c(l)), 513), [
1975
- [Y, m.value]
1987
+ [Y, u.value]
1976
1988
  ])
1977
1989
  ], 64);
1978
1990
  };
@@ -1984,7 +1996,7 @@ const zt = { key: 0 }, Ct = {
1984
1996
  currentCount: {}
1985
1997
  },
1986
1998
  setup(e) {
1987
- const t = e, a = C(() => t.maxCount - t.currentCount);
1999
+ const t = e, a = z(() => t.maxCount - t.currentCount);
1988
2000
  return (i, l) => (d(), f("div", {
1989
2001
  class: B(a.value < 0 ? "text-danger" : "")
1990
2002
  }, "Remaining characters: " + w(a.value), 3));
@@ -2009,26 +2021,26 @@ const zt = { key: 0 }, Ct = {
2009
2021
  a.value = !0, i.value.hasError = !1;
2010
2022
  try {
2011
2023
  await t.onSubmit();
2012
- } catch (o) {
2013
- i.value.hasError = !0, o.message && (i.value.message = o.message);
2024
+ } catch (n) {
2025
+ i.value.hasError = !0, n.message && (i.value.message = n.message);
2014
2026
  }
2015
2027
  a.value = !1;
2016
2028
  }
2017
- return (o, s) => {
2029
+ return (n, s) => {
2018
2030
  const r = U;
2019
- return d(), f("form", S(o.$attrs, {
2031
+ return d(), f("form", S(n.$attrs, {
2020
2032
  novalidate: "",
2021
2033
  class: "position-relative shadow-sm border p-4 bg-white",
2022
2034
  onSubmit: G(l, ["prevent"])
2023
2035
  }), [
2024
- o.hideTitle ? z("", !0) : (d(), f(N, { key: 0 }, [
2025
- k(o.$slots, "title", {}, () => [
2026
- u("h3", {
2027
- class: B(o.titleClass),
2036
+ n.hideTitle ? C("", !0) : (d(), f(N, { key: 0 }, [
2037
+ k(n.$slots, "title", {}, () => [
2038
+ m("h3", {
2039
+ class: B(n.titleClass),
2028
2040
  "data-cy": "form-title"
2029
- }, w(o.title), 3)
2041
+ }, w(n.title), 3)
2030
2042
  ]),
2031
- s[1] || (s[1] = u("hr", null, null, -1))
2043
+ s[1] || (s[1] = m("hr", null, null, -1))
2032
2044
  ], 64)),
2033
2045
  i.value.hasError ? (d(), b(se, {
2034
2046
  key: 1,
@@ -2036,32 +2048,32 @@ const zt = { key: 0 }, Ct = {
2036
2048
  "data-cy": "error"
2037
2049
  }, {
2038
2050
  default: g(() => [
2039
- k(o.$slots, "error", {
2051
+ k(n.$slots, "error", {
2040
2052
  error: i.value.message
2041
2053
  }, () => [
2042
2054
  P(w(i.value.message), 1)
2043
2055
  ])
2044
2056
  ]),
2045
2057
  _: 3
2046
- })) : z("", !0),
2047
- k(o.$slots, "default"),
2048
- u("div", Jt, [
2049
- k(o.$slots, "cancel", {}, () => [
2050
- o.hideCancel ? z("", !0) : (d(), b(r, {
2058
+ })) : C("", !0),
2059
+ k(n.$slots, "default"),
2060
+ m("div", Jt, [
2061
+ k(n.$slots, "cancel", {}, () => [
2062
+ n.hideCancel ? C("", !0) : (d(), b(r, {
2051
2063
  key: 0,
2052
2064
  "data-cy": "cancel-btn",
2053
2065
  type: "reset",
2054
2066
  severity: "secondary",
2055
2067
  outlined: "",
2056
- onClick: s[0] || (s[0] = (p) => o.$emit("cancel"))
2068
+ onClick: s[0] || (s[0] = (p) => n.$emit("cancel"))
2057
2069
  }, {
2058
2070
  default: g(() => [
2059
- P(w(o.cancelText), 1)
2071
+ P(w(n.cancelText), 1)
2060
2072
  ]),
2061
2073
  _: 1
2062
2074
  }))
2063
2075
  ]),
2064
- k(o.$slots, "submit", { submit: l }, () => [
2076
+ k(n.$slots, "submit", { submit: l }, () => [
2065
2077
  y(r, {
2066
2078
  "data-cy": "submit-btn",
2067
2079
  type: "submit",
@@ -2069,7 +2081,7 @@ const zt = { key: 0 }, Ct = {
2069
2081
  class: "ms-auto"
2070
2082
  }, {
2071
2083
  default: g(() => [
2072
- P(w(o.submitText), 1)
2084
+ P(w(n.submitText), 1)
2073
2085
  ]),
2074
2086
  _: 1
2075
2087
  })
@@ -2078,7 +2090,7 @@ const zt = { key: 0 }, Ct = {
2078
2090
  a.value ? (d(), b(ge, {
2079
2091
  key: 2,
2080
2092
  "data-cy": "loading-spinner"
2081
- })) : z("", !0)
2093
+ })) : C("", !0)
2082
2094
  ], 16);
2083
2095
  };
2084
2096
  }
@@ -2103,13 +2115,13 @@ const zt = { key: 0 }, Ct = {
2103
2115
  setup(e) {
2104
2116
  const t = D(e, "modelValue"), a = e, i = (x) => {
2105
2117
  a.type == "number" ? r(x.value) : r(x);
2106
- }, { errors: l, value: o, errorMessage: s, handleChange: r, handleBlur: p } = ee(() => a.name, void 0, {
2118
+ }, { errors: l, value: n, errorMessage: s, handleChange: r, handleBlur: p } = ee(() => a.name, void 0, {
2107
2119
  initialValue: t.value
2108
- }), m = C(() => l.value.length > 0);
2109
- return ce(() => o.value, (x) => {
2120
+ }), u = z(() => l.value.length > 0);
2121
+ return ce(() => n.value, (x) => {
2110
2122
  t.value = x;
2111
- }, { immediate: !0 }), (x, n) => {
2112
- const $ = Ve, T = _e, V = oe, M = te, O = ne, v = be;
2123
+ }, { immediate: !0 }), (x, o) => {
2124
+ const $ = Ve, T = _e, V = ne, M = te, O = oe, v = be;
2113
2125
  return a.type === "checkbox" ? (d(), b(fe, S({
2114
2126
  key: 0,
2115
2127
  id: a.name,
@@ -2117,34 +2129,34 @@ const zt = { key: 0 }, Ct = {
2117
2129
  }, x.$attrs, {
2118
2130
  name: a.name,
2119
2131
  modelValue: t.value,
2120
- "onUpdate:modelValue": n[0] || (n[0] = (h) => t.value = h)
2132
+ "onUpdate:modelValue": o[0] || (o[0] = (h) => t.value = h)
2121
2133
  }), null, 16, ["id", "label", "name", "modelValue"])) : (d(), f("div", Kt, [
2122
- u("div", {
2134
+ m("div", {
2123
2135
  "data-cy": "input-wrapper",
2124
2136
  class: B(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
2125
2137
  }, [
2126
- u("label", {
2138
+ m("label", {
2127
2139
  for: a.name,
2128
2140
  class: B(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
2129
2141
  }, w(a.fieldLabel), 11, Zt),
2130
- a.type === "number" ? (d(), b(c(me), S({
2142
+ a.type === "number" ? (d(), b(c(ue), S({
2131
2143
  key: 0,
2132
2144
  id: a.name
2133
2145
  }, x.$attrs, {
2134
2146
  placeholder: a.placeholder,
2135
- "input-class": { "is-invalid": m.value },
2136
- class: { "is-invalid": m.value },
2147
+ "input-class": { "is-invalid": u.value },
2148
+ class: { "is-invalid": u.value },
2137
2149
  modelValue: t.value,
2138
- "onUpdate:modelValue": n[1] || (n[1] = (h) => t.value = h),
2150
+ "onUpdate:modelValue": o[1] || (o[1] = (h) => t.value = h),
2139
2151
  onInput: i
2140
2152
  }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), b($, S({
2141
2153
  key: 1,
2142
2154
  id: a.name
2143
2155
  }, x.$attrs, {
2144
2156
  placeholder: a.placeholder,
2145
- class: { "is-invalid": m.value },
2157
+ class: { "is-invalid": u.value },
2146
2158
  modelValue: t.value,
2147
- "onUpdate:modelValue": n[2] || (n[2] = (h) => t.value = h),
2159
+ "onUpdate:modelValue": o[2] || (o[2] = (h) => t.value = h),
2148
2160
  onInput: i,
2149
2161
  onBlur: c(p)
2150
2162
  }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), b(T, S({
@@ -2153,9 +2165,9 @@ const zt = { key: 0 }, Ct = {
2153
2165
  }, x.$attrs, {
2154
2166
  placeholder: a.placeholder,
2155
2167
  mask: a.mask,
2156
- class: { "is-invalid": m.value },
2168
+ class: { "is-invalid": u.value },
2157
2169
  modelValue: t.value,
2158
- "onUpdate:modelValue": n[3] || (n[3] = (h) => t.value = h),
2170
+ "onUpdate:modelValue": o[3] || (o[3] = (h) => t.value = h),
2159
2171
  onComplete: i,
2160
2172
  onBlur: c(p)
2161
2173
  }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), b(V, S({
@@ -2163,34 +2175,34 @@ const zt = { key: 0 }, Ct = {
2163
2175
  id: a.name
2164
2176
  }, x.$attrs, {
2165
2177
  placeholder: a.placeholder,
2166
- class: { "is-invalid": m.value },
2178
+ class: { "is-invalid": u.value },
2167
2179
  modelValue: t.value,
2168
- "onUpdate:modelValue": n[4] || (n[4] = (h) => t.value = h),
2180
+ "onUpdate:modelValue": o[4] || (o[4] = (h) => t.value = h),
2169
2181
  onInput: i,
2170
2182
  onBlur: c(p)
2171
2183
  }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), b(M, S({ key: 4 }, { ...a, ...x.$attrs }, {
2172
2184
  modelValue: t.value,
2173
- "onUpdate:modelValue": n[5] || (n[5] = (h) => t.value = h),
2174
- class: { "is-invalid": m.value }
2185
+ "onUpdate:modelValue": o[5] || (o[5] = (h) => t.value = h),
2186
+ class: { "is-invalid": u.value }
2175
2187
  }), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), b(O, S({ key: 5 }, { ...a, ...x.$attrs }, {
2176
2188
  modelValue: t.value,
2177
- "onUpdate:modelValue": n[6] || (n[6] = (h) => t.value = h),
2178
- class: { "is-invalid": m.value }
2189
+ "onUpdate:modelValue": o[6] || (o[6] = (h) => t.value = h),
2190
+ class: { "is-invalid": u.value }
2179
2191
  }), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), b(qt, S({ key: 6 }, { ...a, ...x.$attrs }, {
2180
2192
  modelValue: t.value,
2181
- "onUpdate:modelValue": n[7] || (n[7] = (h) => t.value = h),
2182
- class: { "is-invalid": m.value }
2193
+ "onUpdate:modelValue": o[7] || (o[7] = (h) => t.value = h),
2194
+ class: { "is-invalid": u.value }
2183
2195
  }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), b(v, S({ key: 7 }, { ...a, ...x.$attrs }, {
2184
2196
  modelValue: t.value,
2185
- "onUpdate:modelValue": n[8] || (n[8] = (h) => t.value = h),
2186
- class: { "is-invalid": m.value }
2187
- }), null, 16, ["modelValue", "class"])) : z("", !0)
2197
+ "onUpdate:modelValue": o[8] || (o[8] = (h) => t.value = h),
2198
+ class: { "is-invalid": u.value }
2199
+ }), null, 16, ["modelValue", "class"])) : C("", !0)
2188
2200
  ], 2),
2189
- H(u("small", {
2201
+ H(m("small", {
2190
2202
  "data-cy": "error",
2191
2203
  class: "invalid-feedback"
2192
2204
  }, w(c(s)), 513), [
2193
- [Y, m.value && a.type !== "multiselect" && a.type !== "datepicker"]
2205
+ [Y, u.value && a.type !== "multiselect" && a.type !== "datepicker"]
2194
2206
  ])
2195
2207
  ]));
2196
2208
  };
@@ -2211,7 +2223,7 @@ const zt = { key: 0 }, Ct = {
2211
2223
  unstyled: { type: Boolean }
2212
2224
  },
2213
2225
  setup(e) {
2214
- const t = e, a = C(() => ({
2226
+ const t = e, a = z(() => ({
2215
2227
  root: [
2216
2228
  "badge d-inline-flex align-items-center border me-1 p-1",
2217
2229
  {
@@ -2229,8 +2241,8 @@ const zt = { key: 0 }, Ct = {
2229
2241
  ]
2230
2242
  }));
2231
2243
  return (i, l) => {
2232
- const o = Me;
2233
- return d(), b(o, S({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
2244
+ const n = Me;
2245
+ return d(), b(n, S({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
2234
2246
  default: g(() => [
2235
2247
  (d(!0), f(N, null, q(i.$slots, (s, r) => k(i.$slots, r, { slot: r })), 256))
2236
2248
  ]),
@@ -2254,7 +2266,7 @@ const zt = { key: 0 }, Ct = {
2254
2266
  unstyled: { type: Boolean }
2255
2267
  },
2256
2268
  setup(e) {
2257
- const t = e, a = C(() => t.striped ? "progress-bar-striped" : null), i = C(() => t.animate ? "progress-bar-animated" : null), l = C(() => {
2269
+ const t = e, a = z(() => t.striped ? "progress-bar-striped" : null), i = z(() => t.animate ? "progress-bar-animated" : null), l = z(() => {
2258
2270
  switch (t.severity) {
2259
2271
  case "brand":
2260
2272
  return "bg-brand";
@@ -2273,7 +2285,7 @@ const zt = { key: 0 }, Ct = {
2273
2285
  default:
2274
2286
  return "bg-primary";
2275
2287
  }
2276
- }), o = C(() => ({
2288
+ }), n = z(() => ({
2277
2289
  root: {
2278
2290
  style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
2279
2291
  },
@@ -2283,7 +2295,7 @@ const zt = { key: 0 }, Ct = {
2283
2295
  }));
2284
2296
  return (s, r) => {
2285
2297
  const p = De;
2286
- return d(), b(p, S({ ...s.$attrs, ...t }, { pt: o.value }), {
2298
+ return d(), b(p, S({ ...s.$attrs, ...t }, { pt: n.value }), {
2287
2299
  default: g(() => [
2288
2300
  k(s.$slots, "default")
2289
2301
  ]),
@@ -2603,15 +2615,15 @@ var Qt = /* @__PURE__ */ F({
2603
2615
  e && this.save();
2604
2616
  });
2605
2617
  },
2606
- wrapText(e, t, a, i, l, o) {
2618
+ wrapText(e, t, a, i, l, n) {
2607
2619
  const s = /(\r\n|\n\r|\n|\r)+/g, r = /\s+/g;
2608
2620
  var p = t.split(s).filter((M) => M.length > 0);
2609
2621
  for (let M = 0; M < p.length; M++) {
2610
- for (var m = p[M].split(r).filter((O) => O.length > 0), x = "", n = 0; n < m.length; n++) {
2611
- var $ = x + m[n] + " ", T = e.measureText($), V = T.width;
2612
- V > l && n > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(x, a, i) : e.fillText(x, a, i), x = m[n] + " ", i += o) : x = $;
2622
+ for (var u = p[M].split(r).filter((O) => O.length > 0), x = "", o = 0; o < u.length; o++) {
2623
+ var $ = x + u[o] + " ", T = e.measureText($), V = T.width;
2624
+ V > l && o > 0 ? (this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(x, a, i) : e.fillText(x, a, i), x = u[o] + " ", i += n) : x = $;
2613
2625
  }
2614
- this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(x, a, i) : e.fillText(x, a, i), i += m.length > 0 ? o : 0;
2626
+ this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(x, a, i) : e.fillText(x, a, i), i += u.length > 0 ? n : 0;
2615
2627
  }
2616
2628
  },
2617
2629
  save() {
@@ -2628,23 +2640,23 @@ var Qt = /* @__PURE__ */ F({
2628
2640
  drawWatermark(e, t, a) {
2629
2641
  if (a.type === "Image") {
2630
2642
  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);
2631
- const o = new Image();
2632
- o.src = a.source, o.onload = () => {
2633
- a && t && t.drawImage(o, a.x, a.y, Number(i), Number(l));
2634
- let s = document.createElement("canvas"), r = s.getContext("2d"), p = this.outputWidth === void 0 ? this.width : this.outputWidth, m = this.outputHeight === void 0 ? this.height : this.outputHeight;
2635
- if (s.width = Number(p), s.height = Number(m), r)
2636
- return r.drawImage(e, 0, 0, Number(p), Number(m)), this.$emit("update:image", s.toDataURL("image/" + this.saveAs, 1)), s.toDataURL("image/" + this.saveAs, 1);
2643
+ const n = new Image();
2644
+ n.src = a.source, n.onload = () => {
2645
+ a && t && t.drawImage(n, a.x, a.y, Number(i), Number(l));
2646
+ let s = document.createElement("canvas"), r = s.getContext("2d"), p = this.outputWidth === void 0 ? this.width : this.outputWidth, u = this.outputHeight === void 0 ? this.height : this.outputHeight;
2647
+ if (s.width = Number(p), s.height = Number(u), r)
2648
+ return r.drawImage(e, 0, 0, Number(p), Number(u)), this.$emit("update:image", s.toDataURL("image/" + this.saveAs, 1)), s.toDataURL("image/" + this.saveAs, 1);
2637
2649
  };
2638
2650
  } else if (a.type === "Text") {
2639
- 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", s = a.fontStyle && a.fontStyle.color ? a.fontStyle.color : "#000000";
2640
- if (t.font = i, t.textAlign = l, t.textBaseline = o, a.fontStyle && a.fontStyle.rotate) {
2641
- let n, $;
2642
- a.fontStyle && a.fontStyle.width ? n = a.x + Math.floor(a.fontStyle.width / 2) : n = a.x, a.fontStyle && a.fontStyle.lineHeight ? $ = a.y + Math.floor(a.fontStyle.lineHeight / 2) : $ = a.y, t.translate(n, $), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(n * -1, $ * -1);
2651
+ 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", s = a.fontStyle && a.fontStyle.color ? a.fontStyle.color : "#000000";
2652
+ if (t.font = i, t.textAlign = l, t.textBaseline = n, a.fontStyle && a.fontStyle.rotate) {
2653
+ let o, $;
2654
+ a.fontStyle && a.fontStyle.width ? o = a.x + Math.floor(a.fontStyle.width / 2) : o = a.x, a.fontStyle && a.fontStyle.lineHeight ? $ = a.y + Math.floor(a.fontStyle.lineHeight / 2) : $ = a.y, t.translate(o, $), t.rotate(a.fontStyle.rotate * Math.PI / 180), t.translate(o * -1, $ * -1);
2643
2655
  }
2644
2656
  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 = s, 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));
2645
- let r = document.createElement("canvas"), p = r.getContext("2d"), m = this.outputWidth === void 0 ? this.width : this.outputWidth, x = this.outputHeight === void 0 ? this.height : this.outputHeight;
2646
- if (r.width = Number(m), r.height = Number(x), p)
2647
- return p.drawImage(e, 0, 0, Number(m), Number(x)), this.$emit("update:image", r.toDataURL("image/" + this.saveAs, 1)), r.toDataURL("image/" + this.saveAs, 1);
2657
+ let r = document.createElement("canvas"), p = r.getContext("2d"), u = this.outputWidth === void 0 ? this.width : this.outputWidth, x = this.outputHeight === void 0 ? this.height : this.outputHeight;
2658
+ if (r.width = Number(u), r.height = Number(x), p)
2659
+ return p.drawImage(e, 0, 0, Number(u), Number(x)), this.$emit("update:image", r.toDataURL("image/" + this.saveAs, 1)), r.toDataURL("image/" + this.saveAs, 1);
2648
2660
  }
2649
2661
  },
2650
2662
  isEmpty() {
@@ -2694,23 +2706,23 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
2694
2706
  },
2695
2707
  emits: ["save"],
2696
2708
  setup(e, { emit: t }) {
2697
- const a = e, i = t, l = Be("drawingCanvas"), o = I(), s = () => {
2709
+ const a = e, i = t, l = Be("drawingCanvas"), n = I(), s = () => {
2698
2710
  l == null || l.value.reset();
2699
2711
  }, r = () => {
2700
2712
  l == null || l.value.redo();
2701
2713
  }, p = () => {
2702
2714
  l == null || l.value.undo();
2703
- }, m = () => {
2715
+ }, u = () => {
2704
2716
  i("save", l.value.isEmpty());
2705
2717
  };
2706
- return (x, n) => {
2718
+ return (x, o) => {
2707
2719
  const $ = U;
2708
2720
  return d(), f("div", ea, [
2709
2721
  y(c(Qt), S({
2710
2722
  ref_key: "drawingCanvas",
2711
2723
  ref: l,
2712
- image: o.value,
2713
- "onUpdate:image": n[0] || (n[0] = (T) => o.value = T),
2724
+ image: n.value,
2725
+ "onUpdate:image": o[0] || (o[0] = (T) => n.value = T),
2714
2726
  "data-cy": "drawing-canvas",
2715
2727
  class: "border canvas"
2716
2728
  }, { ...x.$attrs }, {
@@ -2718,51 +2730,51 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
2718
2730
  width: x.width,
2719
2731
  style: `height: ${x.height}px; width: ${x.width}px`
2720
2732
  }), null, 16, ["image", "height", "width", "style"]),
2721
- u("div", ta, [
2733
+ m("div", ta, [
2722
2734
  a.showUndo ? (d(), b($, {
2723
2735
  key: 0,
2724
2736
  onClick: p,
2725
2737
  outlined: "",
2726
2738
  "data-cy": "undo-button"
2727
2739
  }, {
2728
- default: g(() => n[1] || (n[1] = [
2740
+ default: g(() => o[1] || (o[1] = [
2729
2741
  P("Undo")
2730
2742
  ])),
2731
2743
  _: 1
2732
- })) : z("", !0),
2744
+ })) : C("", !0),
2733
2745
  a.showRedo ? (d(), b($, {
2734
2746
  key: 1,
2735
2747
  onClick: r,
2736
2748
  outlined: "",
2737
2749
  "data-cy": "redo-button"
2738
2750
  }, {
2739
- default: g(() => n[2] || (n[2] = [
2751
+ default: g(() => o[2] || (o[2] = [
2740
2752
  P("Redo")
2741
2753
  ])),
2742
2754
  _: 1
2743
- })) : z("", !0),
2755
+ })) : C("", !0),
2744
2756
  a.showClear ? (d(), b($, {
2745
2757
  key: 2,
2746
2758
  onClick: s,
2747
2759
  outlined: "",
2748
2760
  "data-cy": "clear-button"
2749
2761
  }, {
2750
- default: g(() => n[3] || (n[3] = [
2762
+ default: g(() => o[3] || (o[3] = [
2751
2763
  P("Clear")
2752
2764
  ])),
2753
2765
  _: 1
2754
- })) : z("", !0),
2766
+ })) : C("", !0),
2755
2767
  a.showSave ? (d(), b($, {
2756
2768
  key: 3,
2757
- onClick: m,
2769
+ onClick: u,
2758
2770
  class: "ms-auto",
2759
2771
  "data-cy": "save-button"
2760
2772
  }, {
2761
- default: g(() => n[4] || (n[4] = [
2773
+ default: g(() => o[4] || (o[4] = [
2762
2774
  P("Save")
2763
2775
  ])),
2764
2776
  _: 1
2765
- })) : z("", !0)
2777
+ })) : C("", !0)
2766
2778
  ])
2767
2779
  ]);
2768
2780
  };
@@ -2778,7 +2790,7 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
2778
2790
  return (a, i) => (d(), f("div", S(a.$attrs, {
2779
2791
  class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
2780
2792
  }), [
2781
- u("span", aa, [
2793
+ m("span", aa, [
2782
2794
  k(a.$slots, "default")
2783
2795
  ])
2784
2796
  ], 16));
@@ -2801,7 +2813,7 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
2801
2813
  unstyled: { type: Boolean }
2802
2814
  },
2803
2815
  setup(e) {
2804
- const t = e, a = C(() => ({
2816
+ const t = e, a = z(() => ({
2805
2817
  header: {
2806
2818
  class: [
2807
2819
  "p-0 m-0 d-flex align-items-center border border-0 bg-transparent gap-1",
@@ -2834,14 +2846,14 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
2834
2846
  default: g(() => [
2835
2847
  y(c(Ue), null, {
2836
2848
  default: g(() => [
2837
- (d(!0), f(N, null, q(i.steps, (o) => (d(), b(c(Oe), S({
2838
- key: o.value,
2839
- value: o.value,
2840
- disabled: o.disabled,
2849
+ (d(!0), f(N, null, q(i.steps, (n) => (d(), b(c(Oe), S({
2850
+ key: n.value,
2851
+ value: n.value,
2852
+ disabled: n.disabled,
2841
2853
  ref_for: !0
2842
2854
  }, { ...i.$attrs }, { pt: a.value }), {
2843
2855
  default: g(() => [
2844
- i.showStepLabel ? (d(), f("div", ia, w(o.label), 1)) : z("", !0)
2856
+ i.showStepLabel ? (d(), f("div", ia, w(n.label), 1)) : C("", !0)
2845
2857
  ]),
2846
2858
  _: 2
2847
2859
  }, 1040, ["value", "disabled", "pt"]))), 128))
@@ -2850,12 +2862,12 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
2850
2862
  }),
2851
2863
  y(c(qe), null, {
2852
2864
  default: g(() => [
2853
- (d(!0), f(N, null, q(i.steps, (o) => (d(), b(c(Ae), {
2854
- key: o.value,
2855
- value: o.value
2865
+ (d(!0), f(N, null, q(i.steps, (n) => (d(), b(c(Ae), {
2866
+ key: n.value,
2867
+ value: n.value
2856
2868
  }, {
2857
2869
  default: g(() => [
2858
- k(i.$slots, "step" + o.value)
2870
+ k(i.$slots, "step" + n.value)
2859
2871
  ]),
2860
2872
  _: 2
2861
2873
  }, 1032, ["value"]))), 128))
@@ -2866,7 +2878,7 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
2866
2878
  _: 3
2867
2879
  }, 8, ["value"]));
2868
2880
  }
2869
- }), la = { class: "p-4 text-wrap w-100" }, oa = { class: "p-4 text-wrap w-100" }, Li = /* @__PURE__ */ F({
2881
+ }), la = { class: "p-4 text-wrap w-100" }, na = { class: "p-4 text-wrap w-100" }, Li = /* @__PURE__ */ F({
2870
2882
  __name: "ForgeTile",
2871
2883
  props: {
2872
2884
  severity: { default: "primary" },
@@ -2875,8 +2887,8 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
2875
2887
  selected: { type: Boolean, default: !1 }
2876
2888
  },
2877
2889
  setup(e) {
2878
- const t = e, a = C(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), i = C(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
2879
- return (l, o) => {
2890
+ const t = e, a = z(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), i = z(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
2891
+ return (l, n) => {
2880
2892
  const s = U;
2881
2893
  return t.clickable ? (d(), b(s, {
2882
2894
  key: 0,
@@ -2886,9 +2898,9 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
2886
2898
  "data-cy": "button-tile"
2887
2899
  }, {
2888
2900
  default: g(() => [
2889
- u("div", la, [
2901
+ m("div", la, [
2890
2902
  k(l.$slots, "default", {}, () => [
2891
- o[0] || (o[0] = P("Tile Content"))
2903
+ n[0] || (n[0] = P("Tile Content"))
2892
2904
  ])
2893
2905
  ])
2894
2906
  ]),
@@ -2898,9 +2910,9 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
2898
2910
  class: B(["d-flex w-100", i.value]),
2899
2911
  "data-cy": "tile"
2900
2912
  }, [
2901
- u("div", oa, [
2913
+ m("div", na, [
2902
2914
  k(l.$slots, "default", {}, () => [
2903
- o[1] || (o[1] = P("Tile Content"))
2915
+ n[1] || (n[1] = P("Tile Content"))
2904
2916
  ])
2905
2917
  ])
2906
2918
  ], 2));
@@ -2910,7 +2922,7 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
2910
2922
  function Z(e, t) {
2911
2923
  return e > 1 ? `${t}s` : t;
2912
2924
  }
2913
- const na = {
2925
+ const oa = {
2914
2926
  class: "d-flex justify-content-start align-items-baseline",
2915
2927
  "data-cy": "pagination-header"
2916
2928
  }, sa = { class: "ms-2" }, ra = { key: 0 }, da = {
@@ -2927,13 +2939,13 @@ const na = {
2927
2939
  setup(e, { emit: t }) {
2928
2940
  const a = t, i = e, l = (s) => {
2929
2941
  a("update:perPage", s.value);
2930
- }, o = C(() => {
2942
+ }, n = z(() => {
2931
2943
  const s = Math.ceil(i.total / i.perPage);
2932
2944
  return `${s} ${Z(s, "page")}`;
2933
2945
  });
2934
- return (s, r) => (d(), f("div", na, [
2946
+ return (s, r) => (d(), f("div", oa, [
2935
2947
  r[2] || (r[2] = P(" Number of results per page ")),
2936
- u("div", sa, [
2948
+ m("div", sa, [
2937
2949
  y(c(te), {
2938
2950
  options: i.pageSizes,
2939
2951
  "model-value": i.perPage,
@@ -2942,12 +2954,12 @@ const na = {
2942
2954
  }, null, 8, ["options", "model-value"])
2943
2955
  ]),
2944
2956
  i.total ? (d(), f("div", ra, [
2945
- r[1] || (r[1] = u("span", { class: "mx-2" }, "|", -1)),
2946
- u("span", da, w(i.total) + " " + w(c(Z)(i.total, "result")) + " across " + w(o.value), 1)
2947
- ])) : z("", !0)
2957
+ r[1] || (r[1] = m("span", { class: "mx-2" }, "|", -1)),
2958
+ m("span", da, w(i.total) + " " + w(c(Z)(i.total, "result")) + " across " + w(n.value), 1)
2959
+ ])) : C("", !0)
2948
2960
  ]));
2949
2961
  }
2950
- }), ca = { class: "position-relative" }, ma = { "data-cy": "above-table-slot" }, ua = { class: "d-flex w-100" }, va = {
2962
+ }), ca = { class: "position-relative" }, ua = { "data-cy": "above-table-slot" }, ma = { class: "d-flex w-100" }, va = {
2951
2963
  class: "mx-auto",
2952
2964
  "data-cy": "empty-message"
2953
2965
  }, fa = { class: "d-flex" }, ga = { class: "d-flex align-items-end mb-2" }, ba = { key: 0 }, xa = { class: "ms-auto" }, Ri = /* @__PURE__ */ F({
@@ -3036,17 +3048,17 @@ const na = {
3036
3048
  },
3037
3049
  emits: ["update:filters", "update:tableContext", "sort", "page"],
3038
3050
  setup(e, { emit: t }) {
3039
- const a = t, i = e, l = I(), o = I([5, 10, 20, 50, 100]), s = I(10), r = I({
3051
+ const a = t, i = e, l = I(), n = I([5, 10, 20, 50, 100]), s = I(10), r = I({
3040
3052
  filters: i.filters,
3041
3053
  perPage: s.value,
3042
3054
  page: 0,
3043
3055
  sortDirection: "None",
3044
3056
  sortField: "",
3045
3057
  total: i.totalRecords ?? i.value.length
3046
- }), p = C(() => i.totalRecords ?? i.value.length), m = C(() => {
3058
+ }), p = z(() => i.totalRecords ?? i.value.length), u = z(() => {
3047
3059
  const v = Math.ceil(p.value / s.value);
3048
3060
  return `${v} ${Z(v, "page")}`;
3049
- }), x = C(() => ({
3061
+ }), x = z(() => ({
3050
3062
  thead: () => ({
3051
3063
  class: [
3052
3064
  {
@@ -3068,7 +3080,7 @@ const na = {
3068
3080
  }
3069
3081
  ]
3070
3082
  })
3071
- })), n = () => {
3083
+ })), o = () => {
3072
3084
  if (i.clearAll)
3073
3085
  i.clearAll();
3074
3086
  else
@@ -3090,7 +3102,7 @@ const na = {
3090
3102
  return ce(() => i.filters, (v) => {
3091
3103
  r.value.filters = v, a("update:tableContext", r.value);
3092
3104
  }, { deep: !0 }), le(() => a("update:tableContext", r.value)), (v, h) => (d(), f("div", ca, [
3093
- u("span", ma, [
3105
+ m("span", ua, [
3094
3106
  k(v.$slots, "above-table")
3095
3107
  ]),
3096
3108
  y(c(Ee), S({
@@ -3109,34 +3121,34 @@ const na = {
3109
3121
  showHeaders: ""
3110
3122
  }), ie({
3111
3123
  empty: g(() => [
3112
- u("div", ua, [
3113
- u("h5", va, w(v.emptyMessage ?? "No items Found."), 1)
3124
+ m("div", ma, [
3125
+ m("h5", va, w(v.emptyMessage ?? "No items Found."), 1)
3114
3126
  ])
3115
3127
  ]),
3116
3128
  header: g(() => [
3117
- u("div", {
3129
+ m("div", {
3118
3130
  class: B(i.loading ? "opacity-50" : "")
3119
3131
  }, [
3120
- u("div", fa, [
3121
- u("div", ga, [
3132
+ m("div", fa, [
3133
+ m("div", ga, [
3122
3134
  v.paginator && !v.legacyPaginationFooter ? (d(), f("span", ba, [
3123
3135
  y(pa, {
3124
3136
  total: p.value,
3125
- "page-sizes": o.value,
3137
+ "page-sizes": n.value,
3126
3138
  "per-page": s.value,
3127
3139
  "onUpdate:perPage": [
3128
3140
  h[0] || (h[0] = (_) => s.value = _),
3129
3141
  O
3130
3142
  ]
3131
3143
  }, null, 8, ["total", "page-sizes", "per-page"])
3132
- ])) : z("", !0)
3144
+ ])) : C("", !0)
3133
3145
  ]),
3134
- u("div", xa, [
3146
+ m("div", xa, [
3135
3147
  v.showClearButton ? (d(), b(c(U), {
3136
3148
  key: 0,
3137
3149
  outlined: "",
3138
3150
  class: B(v.showExporterButton ? "me-2" : ""),
3139
- onClick: n,
3151
+ onClick: o,
3140
3152
  "data-cy": "clear-all"
3141
3153
  }, {
3142
3154
  default: g(() => [
@@ -3148,7 +3160,7 @@ const na = {
3148
3160
  h[2] || (h[2] = P(" Clear "))
3149
3161
  ]),
3150
3162
  _: 1
3151
- }, 8, ["class"])) : z("", !0),
3163
+ }, 8, ["class"])) : C("", !0),
3152
3164
  v.showExporterButton ? (d(), b(c(U), {
3153
3165
  key: 1,
3154
3166
  outlined: "",
@@ -3164,7 +3176,7 @@ const na = {
3164
3176
  h[3] || (h[3] = P(" Export "))
3165
3177
  ]),
3166
3178
  _: 1
3167
- })) : z("", !0),
3179
+ })) : C("", !0),
3168
3180
  k(v.$slots, "column-customiser")
3169
3181
  ])
3170
3182
  ])
@@ -3184,13 +3196,13 @@ const na = {
3184
3196
  v.legacyPaginationFooter ? {
3185
3197
  name: "paginatorstart",
3186
3198
  fn: g(() => [
3187
- u("span", {
3199
+ m("span", {
3188
3200
  class: B(["d-flex", i.loading ? "opacity-50" : ""]),
3189
3201
  "data-cy": "legacy-page-size"
3190
3202
  }, [
3191
- h[4] || (h[4] = u("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
3203
+ h[4] || (h[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
3192
3204
  y(c(te), {
3193
- options: o.value,
3205
+ options: n.value,
3194
3206
  modelValue: s.value,
3195
3207
  "onUpdate:modelValue": h[1] || (h[1] = (_) => s.value = _),
3196
3208
  class: "ms-2",
@@ -3203,10 +3215,10 @@ const na = {
3203
3215
  v.legacyPaginationFooter ? {
3204
3216
  name: "paginatorend",
3205
3217
  fn: g(() => [
3206
- u("span", {
3218
+ m("span", {
3207
3219
  "data-cy": "legacy-total",
3208
3220
  class: B(i.loading ? "opacity-50" : "")
3209
- }, w(p.value) + " " + w(c(Z)(p.value, "result")) + " across " + w(m.value), 3)
3221
+ }, w(p.value) + " " + w(c(Z)(p.value, "result")) + " across " + w(u.value), 3)
3210
3222
  ]),
3211
3223
  key: "1"
3212
3224
  } : void 0
@@ -3228,13 +3240,13 @@ const na = {
3228
3240
  }),
3229
3241
  emits: ["update:modelValue"],
3230
3242
  setup(e) {
3231
- const t = D(e, "modelValue"), a = (l, o) => {
3243
+ const t = D(e, "modelValue"), a = (l, n) => {
3232
3244
  if (!l || Array.isArray(l) && l.length === 0)
3233
- return o;
3245
+ return n;
3234
3246
  const s = (r) => {
3235
- var m;
3236
- const p = (m = e.dropdownOptions) == null ? void 0 : m.find(
3237
- (x) => e.optionValue ? x[e.optionValue] === r : Object.keys(x).every((n) => r.hasOwnProperty(n) && x[n] === r[n])
3247
+ var u;
3248
+ const p = (u = e.dropdownOptions) == null ? void 0 : u.find(
3249
+ (x) => e.optionValue ? x[e.optionValue] === r : Object.keys(x).every((o) => r.hasOwnProperty(o) && x[o] === r[o])
3238
3250
  );
3239
3251
  return e.optionLabel ? p[e.optionLabel] : p;
3240
3252
  };
@@ -3242,34 +3254,34 @@ const na = {
3242
3254
  }, i = () => {
3243
3255
  e.clearFilter ? e.clearFilter() : t.value = null;
3244
3256
  };
3245
- return (l, o) => {
3246
- const s = me, r = U;
3257
+ return (l, n) => {
3258
+ const s = ue, r = U;
3247
3259
  return d(), f("div", ya, [
3248
3260
  l.dataType === "numeric" ? (d(), b(s, S({
3249
3261
  key: 0,
3250
3262
  modelValue: t.value,
3251
- "onUpdate:modelValue": o[0] || (o[0] = (p) => t.value = p)
3263
+ "onUpdate:modelValue": n[0] || (n[0] = (p) => t.value = p)
3252
3264
  }, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(), b(be, S({
3253
3265
  key: 1,
3254
3266
  modelValue: t.value,
3255
- "onUpdate:modelValue": o[1] || (o[1] = (p) => t.value = p)
3267
+ "onUpdate:modelValue": n[1] || (n[1] = (p) => t.value = p)
3256
3268
  }, l.$attrs, {
3257
3269
  "show-icon": !1,
3258
3270
  "show-on-focus": !0
3259
3271
  }), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), b(c(te), S({
3260
3272
  key: 2,
3261
3273
  modelValue: t.value,
3262
- "onUpdate:modelValue": o[2] || (o[2] = (p) => t.value = p)
3274
+ "onUpdate:modelValue": n[2] || (n[2] = (p) => t.value = p)
3263
3275
  }, l.$attrs, {
3264
3276
  options: l.dropdownOptions,
3265
3277
  "option-value": l.optionValue,
3266
3278
  "option-label": l.optionLabel
3267
3279
  }), {
3268
- value: g(({ value: p, placeholder: m }) => [
3269
- u("div", ha, [
3270
- u("span", {
3280
+ value: g(({ value: p, placeholder: u }) => [
3281
+ m("div", ha, [
3282
+ m("span", {
3271
3283
  class: B({ "filter-placeholder": p === null })
3272
- }, w(a(p, m)), 3),
3284
+ }, w(a(p, u)), 3),
3273
3285
  l.showClearButton && t.value !== null ? (d(), b(r, {
3274
3286
  key: 0,
3275
3287
  onClick: G(i, ["prevent"]),
@@ -3285,24 +3297,24 @@ const na = {
3285
3297
  })
3286
3298
  ]),
3287
3299
  _: 1
3288
- })) : z("", !0)
3300
+ })) : C("", !0)
3289
3301
  ])
3290
3302
  ]),
3291
3303
  _: 1
3292
- }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), b(c(ne), S({
3304
+ }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), b(c(oe), S({
3293
3305
  key: 3,
3294
3306
  modelValue: t.value,
3295
- "onUpdate:modelValue": o[3] || (o[3] = (p) => t.value = p)
3307
+ "onUpdate:modelValue": n[3] || (n[3] = (p) => t.value = p)
3296
3308
  }, l.$attrs, {
3297
3309
  options: l.dropdownOptions,
3298
3310
  showToggleAll: !1,
3299
3311
  "option-label": l.optionLabel,
3300
3312
  "option-value": l.optionValue,
3301
3313
  filter: ""
3302
- }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), b(c(oe), S({
3314
+ }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), b(c(ne), S({
3303
3315
  key: 4,
3304
3316
  modelValue: t.value,
3305
- "onUpdate:modelValue": o[4] || (o[4] = (p) => t.value = p)
3317
+ "onUpdate:modelValue": n[4] || (n[4] = (p) => t.value = p)
3306
3318
  }, l.$attrs), null, 16, ["modelValue"])),
3307
3319
  l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (d(), b(r, {
3308
3320
  key: 5,
@@ -3319,7 +3331,7 @@ const na = {
3319
3331
  })
3320
3332
  ]),
3321
3333
  _: 1
3322
- })) : z("", !0)
3334
+ })) : C("", !0)
3323
3335
  ]);
3324
3336
  };
3325
3337
  }
@@ -4390,15 +4402,15 @@ class xe {
4390
4402
  define(t, a = !1) {
4391
4403
  for (let [i, l] of Object.entries(t)) {
4392
4404
  i = i.toLowerCase(), l = l.map((r) => r.toLowerCase()), A(this, R, "f").has(i) || A(this, R, "f").set(i, /* @__PURE__ */ new Set());
4393
- const o = A(this, R, "f").get(i);
4405
+ const n = A(this, R, "f").get(i);
4394
4406
  let s = !0;
4395
4407
  for (let r of l) {
4396
4408
  const p = r.startsWith("*");
4397
- if (r = p ? r.slice(1) : r, o == null || o.add(r), s && A(this, J, "f").set(i, r), s = !1, p)
4409
+ if (r = p ? r.slice(1) : r, n == null || n.add(r), s && A(this, J, "f").set(i, r), s = !1, p)
4398
4410
  continue;
4399
- const m = A(this, W, "f").get(r);
4400
- if (m && m != i && !a)
4401
- throw new Error(`"${i} -> ${r}" conflicts with "${m} -> ${r}". Pass \`force=true\` to override this definition.`);
4411
+ const u = A(this, W, "f").get(r);
4412
+ if (u && u != i && !a)
4413
+ throw new Error(`"${i} -> ${r}" conflicts with "${u} -> ${r}". Pass \`force=true\` to override this definition.`);
4402
4414
  A(this, W, "f").set(r, i);
4403
4415
  }
4404
4416
  }
@@ -4435,12 +4447,12 @@ class xe {
4435
4447
  W = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap();
4436
4448
  const wa = new xe(de, re)._freeze();
4437
4449
  function ye(e, t, a, i) {
4438
- const l = t.flatMap((o) => o.file);
4439
- return t = t.map((o) => ({ ...o, status: o.status == "Duplicate" ? "Not Uploaded" : o.status })), e.forEach((o) => {
4440
- const s = l.findIndex((p) => p.name === o.name);
4450
+ const l = t.flatMap((n) => n.file);
4451
+ return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
4452
+ const s = l.findIndex((p) => p.name === n.name);
4441
4453
  let r = "Not Uploaded";
4442
- s === -1 ? ((!a.includes(o.type) || !(o.size <= i)) && (r = a.includes(o.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
4443
- file: o,
4454
+ s === -1 ? ((!a.includes(n.type) || !(n.size <= i)) && (r = a.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
4455
+ file: n,
4444
4456
  status: r,
4445
4457
  blobFileName: null
4446
4458
  })) : t[s].status = "Duplicate";
@@ -4449,7 +4461,7 @@ function ye(e, t, a, i) {
4449
4461
  async function ka(e, t) {
4450
4462
  if (e === "Uploaded" && t !== null)
4451
4463
  try {
4452
- await new ue(t).delete();
4464
+ await new me(t).delete();
4453
4465
  } catch (a) {
4454
4466
  if (a !== "BlobNotFound") {
4455
4467
  e = "DeleteFileFailed";
@@ -4462,12 +4474,12 @@ function pe(e, t = !0, a = 1) {
4462
4474
  if (Math.abs(e) < i)
4463
4475
  return e + " B";
4464
4476
  const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
4465
- let o = -1;
4477
+ let n = -1;
4466
4478
  const s = 10 ** a;
4467
4479
  do
4468
- e /= i, ++o;
4469
- while (Math.round(Math.abs(e) * s) / s >= i && o < l.length - 1);
4470
- return e.toFixed(a) + " " + l[o];
4480
+ e /= i, ++n;
4481
+ while (Math.round(Math.abs(e) * s) / s >= i && n < l.length - 1);
4482
+ return e.toFixed(a) + " " + l[n];
4471
4483
  }
4472
4484
  function $a(e) {
4473
4485
  return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
@@ -4479,7 +4491,7 @@ function Fa() {
4479
4491
  const e = new xe(de, re);
4480
4492
  return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
4481
4493
  }
4482
- const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disabled", "multiple"], Ca = {
4494
+ const Sa = { class: "d-flex justify-content-between" }, Ca = ["accept", "disabled", "multiple"], za = {
4483
4495
  class: "text-break accepted-file-types-container",
4484
4496
  id: "accepted-file-types-overlay"
4485
4497
  }, Ta = /* @__PURE__ */ F({
@@ -4494,24 +4506,24 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4494
4506
  }),
4495
4507
  emits: ["update:modelValue"],
4496
4508
  setup(e) {
4497
- const t = D(e, "modelValue"), a = I(), i = (s) => a.value.toggle(s), l = C(() => e.maxFileInput <= t.value.length), o = (s) => {
4509
+ const t = D(e, "modelValue"), a = I(), i = (s) => a.value.toggle(s), l = z(() => e.maxFileInput <= t.value.length), n = (s) => {
4498
4510
  t.value = ye(s, t.value, e.acceptedFileTypes.map((r) => r.fileType), e.maxFileInput);
4499
4511
  };
4500
4512
  return (s, r) => {
4501
4513
  const p = U;
4502
4514
  return d(), f("div", Sa, [
4503
4515
  k(s.$slots, "message"),
4504
- u("div", null, [
4505
- u("input", {
4516
+ m("div", null, [
4517
+ m("input", {
4506
4518
  id: "file-input",
4507
4519
  type: "file",
4508
4520
  class: "d-none",
4509
4521
  accept: s.acceptedFileTypes.join(", "),
4510
4522
  disabled: l.value,
4511
4523
  multiple: s.maxFileInput > 1,
4512
- onInput: r[0] || (r[0] = (m) => o([...m.target.files]))
4513
- }, null, 40, za),
4514
- u("label", {
4524
+ onInput: r[0] || (r[0] = (u) => n([...u.target.files]))
4525
+ }, null, 40, Ca),
4526
+ m("label", {
4515
4527
  class: B([{ disabled: l.value }, "btn btn-primary"]),
4516
4528
  id: "file-input-button",
4517
4529
  for: "file-input"
@@ -4538,13 +4550,13 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4538
4550
  P("Accepted File Types")
4539
4551
  ])),
4540
4552
  _: 1
4541
- })) : z("", !0),
4553
+ })) : C("", !0),
4542
4554
  y(c(ve), {
4543
4555
  ref_key: "acceptedFilesOverlay",
4544
4556
  ref: a
4545
4557
  }, {
4546
4558
  default: g(() => [
4547
- u("div", Ca, w(s.acceptedFileTypes.map((m) => m.label ?? m.fileType.split("/").pop()).join(", ")), 1)
4559
+ m("div", za, w(s.acceptedFileTypes.map((u) => u.label ?? u.fileType.split("/").pop()).join(", ")), 1)
4548
4560
  ]),
4549
4561
  _: 1
4550
4562
  }, 512)
@@ -4570,10 +4582,10 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4570
4582
  }),
4571
4583
  emits: ["update:modelValue"],
4572
4584
  setup(e) {
4573
- const t = D(e, "modelValue"), a = I(!1), i = C(() => e.maxFileInput <= t.value.length), l = (o) => {
4574
- a.value = !1, o.dataTransfer.files.length > e.maxFileInput || i.value ? o.preventDefault() : t.value = ye([...o.dataTransfer.files], t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileSize);
4585
+ const t = D(e, "modelValue"), a = I(!1), i = z(() => e.maxFileInput <= t.value.length), l = (n) => {
4586
+ a.value = !1, n.dataTransfer.files.length > e.maxFileInput || i.value ? n.preventDefault() : t.value = ye([...n.dataTransfer.files], t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileSize);
4575
4587
  };
4576
- return (o, s) => (d(), f("div", {
4588
+ return (n, s) => (d(), f("div", {
4577
4589
  id: "drag-drop-area",
4578
4590
  class: B(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
4579
4591
  onDragleave: s[0] || (s[0] = G((r) => a.value = !1, ["prevent"])),
@@ -4589,7 +4601,7 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4589
4601
  }),
4590
4602
  s[2] || (s[2] = P(" Drag and drop files here "))
4591
4603
  ])) : (d(), f("div", Ia, [
4592
- k(o.$slots, "default")
4604
+ k(n.$slots, "default")
4593
4605
  ]))
4594
4606
  ], 34));
4595
4607
  }
@@ -4602,7 +4614,7 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4602
4614
  uploadStatus: {}
4603
4615
  },
4604
4616
  setup(e) {
4605
- const t = C(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), a = C(() => {
4617
+ const t = z(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), a = z(() => {
4606
4618
  switch (e.uploadStatus) {
4607
4619
  case "InvalidFileType":
4608
4620
  return "Upload Failed: File type is not accepted.";
@@ -4629,7 +4641,7 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4629
4641
  P(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
4630
4642
  ]),
4631
4643
  _: 1
4632
- })) : z("", !0),
4644
+ })) : C("", !0),
4633
4645
  i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (d(), b(se, {
4634
4646
  key: 1,
4635
4647
  id: "upload-status-alert",
@@ -4640,7 +4652,7 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4640
4652
  P(w(a.value), 1)
4641
4653
  ]),
4642
4654
  _: 1
4643
- }, 8, ["severity"])) : z("", !0)
4655
+ }, 8, ["severity"])) : C("", !0)
4644
4656
  ]));
4645
4657
  }
4646
4658
  }), Ma = ["data-cy"], Da = { class: "ms-3 d-flex flex-column" }, Oa = {
@@ -4671,17 +4683,17 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4671
4683
  }),
4672
4684
  emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
4673
4685
  setup(e, { emit: t }) {
4674
- const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), o = t, s = I(a.value.name), r = I(""), p = I(0), m = I(), x = C(() => e.acceptedFileTypes.some(({ fileType: v }) => v === a.value.type)), n = C(() => a.value.size <= e.maxFileSize), $ = C(() => a.value.type ? a.value.type : Fa().getType(a.value.name)), T = () => {
4686
+ const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), n = t, s = I(a.value.name), r = I(""), p = I(0), u = I(), x = z(() => e.acceptedFileTypes.some(({ fileType: v }) => v === a.value.type)), o = z(() => a.value.size <= e.maxFileSize), $ = z(() => a.value.type ? a.value.type : Fa().getType(a.value.name)), T = () => {
4675
4687
  s.value != null && (V(), a.value = new File([a.value], s.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
4676
4688
  }, V = () => {
4677
4689
  let v = s.value.split("."), h = wa.getExtension($.value), _ = s.value.split(".").pop();
4678
4690
  v.length === 1 ? _ && _.length > 0 && (s.value = [s.value, h].join(".")) : v.length > 1 && _ !== h && (s.value = s.value.replace(_, h));
4679
4691
  }, M = async () => {
4680
- if (!x.value || !n.value) {
4692
+ if (!x.value || !o.value) {
4681
4693
  l.value = x.value ? "InvalidFileSize" : "InvalidFileType";
4682
4694
  return;
4683
4695
  }
4684
- l.value = "Preparing", m.value = new AbortController();
4696
+ l.value = "Preparing", u.value = new AbortController();
4685
4697
  const [v, h] = await e.getFileUrlAction(a.value.name);
4686
4698
  if (!v) {
4687
4699
  l.value = "Failed";
@@ -4689,8 +4701,8 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4689
4701
  }
4690
4702
  try {
4691
4703
  l.value = "Uploading";
4692
- const _ = new ue(v), L = {
4693
- abortSignal: m.value.signal,
4704
+ const _ = new me(v), L = {
4705
+ abortSignal: u.value.signal,
4694
4706
  onProgress: (ae) => p.value = ae.loadedBytes,
4695
4707
  blobHTTPHeaders: {
4696
4708
  blobContentType: $.value,
@@ -4707,7 +4719,7 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4707
4719
  l.value = "Failed";
4708
4720
  }
4709
4721
  }, O = async () => {
4710
- await ka(l.value, r.value), o("deleted", a.value);
4722
+ await ka(l.value, r.value), n("deleted", a.value);
4711
4723
  };
4712
4724
  return le(() => {
4713
4725
  e.autoUploadToBlob && M();
@@ -4717,7 +4729,7 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4717
4729
  class: "py-4 px-3 d-flex",
4718
4730
  "data-cy": `file-info-${a.value.name}`
4719
4731
  }, [
4720
- u("div", null, [
4732
+ m("div", null, [
4721
4733
  c($a)(a.value.type) ? (d(), b(c(Le), {
4722
4734
  key: 0,
4723
4735
  id: "thumbnail-image",
@@ -4734,8 +4746,8 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4734
4746
  width: "75px"
4735
4747
  }))
4736
4748
  ]),
4737
- u("div", Da, [
4738
- u("div", null, [
4749
+ m("div", Da, [
4750
+ m("div", null, [
4739
4751
  v.editableFileName ? (d(), b(Mt, {
4740
4752
  key: 0,
4741
4753
  id: "edit-file-name",
@@ -4746,10 +4758,10 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4746
4758
  "complete-action": T
4747
4759
  }, null, 8, ["modelValue", "rules", "name"])) : (d(), f("span", Oa, w(s.value), 1))
4748
4760
  ]),
4749
- u("span", Na, "File type: " + w(a.value.type.split("/").pop()), 1),
4750
- u("span", Ua, "File size: " + w(c(pe)(a.value.size)), 1)
4761
+ m("span", Na, "File type: " + w(a.value.type.split("/").pop()), 1),
4762
+ m("span", Ua, "File size: " + w(c(pe)(a.value.size)), 1)
4751
4763
  ]),
4752
- u("div", Aa, [
4764
+ m("div", Aa, [
4753
4765
  (d(), b(Va, {
4754
4766
  key: l.value,
4755
4767
  "file-size": a.value.size,
@@ -4768,11 +4780,11 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4768
4780
  }, null, 8, ["icon"])
4769
4781
  ]),
4770
4782
  _: 1
4771
- })) : z("", !0),
4783
+ })) : C("", !0),
4772
4784
  l.value === "Uploading" ? (d(), b(_, {
4773
4785
  key: 1,
4774
4786
  link: "",
4775
- onClick: h[1] || (h[1] = (L) => m.value.value.abort())
4787
+ onClick: h[1] || (h[1] = (L) => u.value.value.abort())
4776
4788
  }, {
4777
4789
  default: g(() => [
4778
4790
  y(c(j), { icon: "bi:x-circle-fill" })
@@ -4800,7 +4812,7 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4800
4812
  },
4801
4813
  setup(e) {
4802
4814
  return (t, a) => (d(), f("div", Ea, [
4803
- u("div", La, "Max file size: " + w(c(pe)(t.maxFileSize)), 1)
4815
+ m("div", La, "Max file size: " + w(c(pe)(t.maxFileSize)), 1)
4804
4816
  ]));
4805
4817
  }
4806
4818
  }), Ha = { "data-cy": "file-uploader" }, Wa = { key: 0 }, Wi = /* @__PURE__ */ F({
@@ -4821,12 +4833,12 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4821
4833
  emits: ["update:modelValue"],
4822
4834
  setup(e) {
4823
4835
  const t = D(e, "modelValue"), a = e, i = (l) => {
4824
- t.value = t.value.filter((o) => o.file != l);
4836
+ t.value = t.value.filter((n) => n.file != l);
4825
4837
  };
4826
- return (l, o) => (d(), f("div", Ha, [
4838
+ return (l, n) => (d(), f("div", Ha, [
4827
4839
  y(Ta, S(a, {
4828
4840
  modelValue: t.value,
4829
- "onUpdate:modelValue": o[0] || (o[0] = (s) => t.value = s)
4841
+ "onUpdate:modelValue": n[0] || (n[0] = (s) => t.value = s)
4830
4842
  }), null, 16, ["modelValue"]),
4831
4843
  l.showDragDropArea ? (d(), f("div", Wa, [
4832
4844
  y(Pa, {
@@ -4834,7 +4846,7 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4834
4846
  "max-file-size": a.maxFileSize,
4835
4847
  "accepted-file-types": a.acceptedFileTypes,
4836
4848
  modelValue: t.value,
4837
- "onUpdate:modelValue": o[1] || (o[1] = (s) => t.value = s)
4849
+ "onUpdate:modelValue": n[1] || (n[1] = (s) => t.value = s)
4838
4850
  }, {
4839
4851
  default: g(() => [
4840
4852
  (d(!0), f(N, null, q(t.value, ({ file: s }, r) => (d(), f("span", null, [
@@ -4856,7 +4868,7 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4856
4868
  y(Ra, {
4857
4869
  "max-file-size": a.maxFileSize
4858
4870
  }, null, 8, ["max-file-size"])
4859
- ])) : z("", !0)
4871
+ ])) : C("", !0)
4860
4872
  ]));
4861
4873
  }
4862
4874
  }), Ya = { class: "d-flex" }, Ga = { class: "me-3" }, Ja = { class: "ms-2" }, Ka = { class: "d-flex flex-column w-100" }, Yi = /* @__PURE__ */ F({
@@ -4867,21 +4879,21 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4867
4879
  },
4868
4880
  emits: ["update:modelValue"],
4869
4881
  setup(e) {
4870
- const t = D(e, "modelValue"), a = I(), i = I(!1), l = (o) => {
4871
- a.value.toggle(o);
4882
+ const t = D(e, "modelValue"), a = I(), i = I(!1), l = (n) => {
4883
+ a.value.toggle(n);
4872
4884
  };
4873
- return (o, s) => (d(), f(N, null, [
4885
+ return (n, s) => (d(), f(N, null, [
4874
4886
  y(c(U), {
4875
4887
  onClick: l,
4876
4888
  class: "ms-2"
4877
4889
  }, {
4878
4890
  default: g(() => [
4879
- u("div", Ya, [
4880
- u("div", Ga, [
4891
+ m("div", Ya, [
4892
+ m("div", Ga, [
4881
4893
  y(c(j), { icon: "bi:layout-three-columns" })
4882
4894
  ]),
4883
4895
  P(" Columns (" + w(t.value.filter((r) => r.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
4884
- u("div", Ja, [
4896
+ m("div", Ja, [
4885
4897
  y(c(j), {
4886
4898
  icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
4887
4899
  }, null, 8, ["icon"])
@@ -4898,7 +4910,7 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4898
4910
  onShow: s[1] || (s[1] = () => i.value = !0)
4899
4911
  }, {
4900
4912
  default: g(() => [
4901
- u("div", Ka, [
4913
+ m("div", Ka, [
4902
4914
  (d(!0), f(N, null, q(t.value, (r, p) => (d(), f("div", {
4903
4915
  class: B(["d-flex cursor-pointer", {
4904
4916
  "border-top": p !== 0,
@@ -4910,7 +4922,7 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4910
4922
  y(fe, {
4911
4923
  id: r.field,
4912
4924
  modelValue: r.selected,
4913
- "onUpdate:modelValue": (m) => r.selected = m,
4925
+ "onUpdate:modelValue": (u) => r.selected = u,
4914
4926
  binary: "",
4915
4927
  class: "cursor-pointer",
4916
4928
  label: r.header
@@ -4924,8 +4936,8 @@ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disable
4924
4936
  }
4925
4937
  });
4926
4938
  export {
4927
- zi as Bootstrap_PT,
4928
- Ci as ForgeActionButton,
4939
+ Ci as Bootstrap_PT,
4940
+ zi as ForgeActionButton,
4929
4941
  se as ForgeAlert,
4930
4942
  Ti as ForgeAutoComplete,
4931
4943
  fe as ForgeCheckbox,