@3squared/forge-ui-3 2.2.0 → 2.3.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.
Files changed (62) hide show
  1. package/dist/cypress/support/component.d.ts +0 -1
  2. package/dist/esm/forge-ui-3.js +556 -553
  3. package/dist/index.d.ts +0 -1
  4. package/dist/src/Bootstrap_PT.d.ts +0 -1
  5. package/dist/src/components/ForgeActionButton.vue.d.ts +2 -26
  6. package/dist/src/components/ForgeAlert.vue.d.ts +11 -31
  7. package/dist/src/components/ForgeAutoComplete.vue.d.ts +8 -4
  8. package/dist/src/components/ForgeCheckbox.vue.d.ts +18 -171
  9. package/dist/src/components/ForgeChip.vue.d.ts +11 -31
  10. package/dist/src/components/ForgeDatepicker.vue.d.ts +24 -439
  11. package/dist/src/components/ForgeForm.vue.d.ts +18 -43
  12. package/dist/src/components/ForgeFormField.vue.d.ts +11 -62
  13. package/dist/src/components/ForgeInlineEditor.vue.d.ts +40 -59
  14. package/dist/src/components/ForgeLink.vue.d.ts +9 -13
  15. package/dist/src/components/ForgeLoader.vue.d.ts +3 -25
  16. package/dist/src/components/ForgeModal.vue.d.ts +20 -285
  17. package/dist/src/components/ForgeMultiSelectPreview.vue.d.ts +18 -72
  18. package/dist/src/components/ForgeNavbar.vue.d.ts +11 -32
  19. package/dist/src/components/ForgePageHeader.vue.d.ts +9 -12
  20. package/dist/src/components/ForgeProgressBar.vue.d.ts +10 -30
  21. package/dist/src/components/ForgeRemainingCharacters.vue.d.ts +2 -23
  22. package/dist/src/components/ForgeStatWidget.vue.d.ts +11 -29
  23. package/dist/src/components/ForgeStepper.vue.d.ts +11 -33
  24. package/dist/src/components/ForgeTile.vue.d.ts +11 -32
  25. package/dist/src/components/file-uploader/ForgeFileUploader.vue.d.ts +10 -69
  26. package/dist/src/components/file-uploader/utilities/utilities.d.ts +0 -1
  27. package/dist/src/components/table/ForgeColumnCustomiser.vue.d.ts +14 -12
  28. package/dist/src/components/table/ForgeFilterHeader.vue.d.ts +9 -44
  29. package/dist/src/components/table/ForgeTable.vue.d.ts +24 -42
  30. package/dist/src/helpers/index.d.ts +0 -1
  31. package/dist/src/passthroughs/AutoComplete.pt.d.ts +0 -1
  32. package/dist/src/passthroughs/Badge.pt.d.ts +0 -1
  33. package/dist/src/passthroughs/Button.pt.d.ts +0 -1
  34. package/dist/src/passthroughs/Checkbox.pt.d.ts +0 -1
  35. package/dist/src/passthroughs/Column.pt.d.ts +0 -1
  36. package/dist/src/passthroughs/Datepicker.pt.d.ts +0 -1
  37. package/dist/src/passthroughs/Dialog.pt.d.ts +0 -1
  38. package/dist/src/passthroughs/Dropdown.pt.d.ts +0 -1
  39. package/dist/src/passthroughs/Input.pt.d.ts +0 -1
  40. package/dist/src/passthroughs/InputSwitch.pt.d.ts +0 -1
  41. package/dist/src/passthroughs/Message.pt.d.ts +0 -1
  42. package/dist/src/passthroughs/Multiselect.pt.d.ts +0 -1
  43. package/dist/src/passthroughs/Navbar.pt.d.ts +0 -1
  44. package/dist/src/passthroughs/Panel.pt.d.ts +0 -1
  45. package/dist/src/passthroughs/Popover.pt.d.ts +0 -1
  46. package/dist/src/passthroughs/SelectButton.pt.d.ts +0 -1
  47. package/dist/src/passthroughs/SplitButton.pt.d.ts +0 -1
  48. package/dist/src/passthroughs/Steps.pt.d.ts +0 -1
  49. package/dist/src/passthroughs/Table.pt.d.ts +0 -1
  50. package/dist/src/passthroughs/Tabs.pt.d.ts +0 -1
  51. package/dist/src/passthroughs/Tag.pt.d.ts +12 -13
  52. package/dist/src/passthroughs/Toast.pt.d.ts +0 -1
  53. package/dist/src/passthroughs/Tooltip.pt.d.ts +0 -1
  54. package/dist/src/types/forge-types.d.ts +0 -1
  55. package/package.json +9 -9
  56. package/dist/src/components/ForgeScratchpad.vue.d.ts +0 -52
  57. package/dist/src/components/file-uploader/components/DragDropArea.vue.d.ts +0 -47
  58. package/dist/src/components/file-uploader/components/FileInfo.vue.d.ts +0 -80
  59. package/dist/src/components/file-uploader/components/MaxFileSize.vue.d.ts +0 -14
  60. package/dist/src/components/file-uploader/components/UploadButton.vue.d.ts +0 -48
  61. package/dist/src/components/file-uploader/components/UploadStatus.vue.d.ts +0 -19
  62. package/dist/src/components/table/ForgePaginationHeader.vue.d.ts +0 -37
@@ -1,22 +1,22 @@
1
1
  import he from "primevue/message";
2
- import { defineComponent as S, openBlock as d, createBlock as g, normalizeProps as X, guardReactiveProps as Q, withCtx as f, createElementVNode as u, normalizeClass as B, unref as c, createCommentVNode as z, createVNode as y, renderSlot as k, ref as P, createElementBlock as v, Fragment as O, mergeProps as F, renderList as A, mergeModels as q, useModel as D, computed as C, createTextVNode as _, toDisplayString as w, withDirectives as R, vShow as W, createSlots as ae, onMounted as ie, isRef as we, withKeys as K, normalizeStyle as ke, withModifiers as Y, watch as pe, 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 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";
3
3
  import { Icon as j } from "@iconify/vue";
4
- import N from "primevue/button";
5
- import Se from "primevue/toast";
6
- import Fe from "primevue/autocomplete";
4
+ import U from "primevue/button";
5
+ import Fe from "primevue/toast";
6
+ import Se from "primevue/autocomplete";
7
7
  import ze from "primevue/checkbox";
8
8
  import { useField as ee } from "vee-validate";
9
9
  import Ce from "primevue/progressspinner";
10
10
  import Te from "primevue/dialog";
11
- import le from "primevue/inputtext";
11
+ import oe from "primevue/inputtext";
12
12
  import { vOnClickOutside as je } from "@vueuse/components";
13
13
  import Ie from "primevue/menubar";
14
- import oe from "primevue/multiselect";
14
+ import ne from "primevue/multiselect";
15
15
  import 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 ce 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";
@@ -24,10 +24,10 @@ import Ne from "primevue/stepper";
24
24
  import Ue from "primevue/steplist";
25
25
  import Ae from "primevue/steppanel";
26
26
  import qe from "primevue/steppanels";
27
- import Le from "primevue/datatable";
28
- import { BlockBlobClient as me } from "@azure/storage-blob";
29
- import ue from "primevue/popover";
30
- import Ee from "primevue/image";
27
+ import Ee from "primevue/datatable";
28
+ import { BlockBlobClient as ue } from "@azure/storage-blob";
29
+ import ve from "primevue/popover";
30
+ import Le from "primevue/image";
31
31
  const Re = {
32
32
  autoComplete: {
33
33
  root: ({ props: e }) => ({
@@ -360,12 +360,12 @@ const Re = {
360
360
  "badge d-inline-flex align-items-center border me-1 p-1",
361
361
  {
362
362
  "bg-primary-subtle text-primary border-primary": e.severity === null || e.severity === void 0 || e.severity === "primary",
363
- "bg-primary-brand text-brand border-brand": e.severity === "brand",
364
- "bg-primary-secondary text-secondary border-secondary": e.severity === "secondary",
365
- "bg-primary-success text-success border-success": e.severity === "success",
366
- "bg-primary-warning text-warning border-warning": e.severity === "warning" || e.severity === "warn",
367
- "bg-primary-danger text-danger border-danger": e.severity === "danger",
368
- "bg-primary-info text-info border-info": e.severity === "info"
363
+ "bg-brand-shade-1 text-brand border-brand": e.severity === "brand",
364
+ "bg-secondary-subtle text-secondary border-secondary": e.severity === "secondary",
365
+ "bg-success-subtle text-success border-success": e.severity === "success",
366
+ "bg-warning-subtle text-warning border-warning": e.severity === "warning" || e.severity === "warn",
367
+ "bg-danger-subtle text-danger border-danger": e.severity === "danger",
368
+ "bg-info-subtle text-info border-info": e.severity === "info"
369
369
  },
370
370
  {
371
371
  "rounded-pill": e.rounded
@@ -646,9 +646,9 @@ const Re = {
646
646
  }, dt = {
647
647
  panel: {
648
648
  root: "card w-100",
649
- header: "d-flex justify-content-between align-items-center fw-600 mx-2",
649
+ header: "d-flex justify-content-between align-items-center fw-600 ms-4 me-3 my-2",
650
650
  pcToggleButton: "btn",
651
- contentContainer: "m-2"
651
+ contentContainer: "mt-2 mx-4 mb-4"
652
652
  }
653
653
  }, pt = {
654
654
  // More PT options can be found in the ForgeTable file.
@@ -1000,7 +1000,7 @@ const Re = {
1000
1000
  ]
1001
1001
  })
1002
1002
  }
1003
- }, Fi = {
1003
+ }, zi = {
1004
1004
  ...Re,
1005
1005
  ...ct,
1006
1006
  ...He,
@@ -1035,7 +1035,7 @@ const Re = {
1035
1035
  directives: {
1036
1036
  ...ut
1037
1037
  }
1038
- }, ne = /* @__PURE__ */ S({
1038
+ }, se = /* @__PURE__ */ F({
1039
1039
  __name: "ForgeAlert",
1040
1040
  props: {
1041
1041
  severity: { default: "primary" },
@@ -1056,12 +1056,12 @@ const Re = {
1056
1056
  const t = e;
1057
1057
  return (a, i) => {
1058
1058
  const l = he;
1059
- return d(), g(l, X(Q({ ...a.$attrs, ...t })), {
1060
- icon: f(() => [
1059
+ return d(), b(l, X(Q({ ...a.$attrs, ...t })), {
1060
+ icon: g(() => [
1061
1061
  u("div", {
1062
1062
  class: B(t.icon ? "me-2 pe-1" : "")
1063
1063
  }, [
1064
- t.icon ? (d(), g(c(j), {
1064
+ t.icon ? (d(), b(c(j), {
1065
1065
  key: 0,
1066
1066
  "data-cy": "message-icon",
1067
1067
  icon: t.icon,
@@ -1070,17 +1070,17 @@ const Re = {
1070
1070
  }, null, 8, ["icon", "class"])) : z("", !0)
1071
1071
  ], 2)
1072
1072
  ]),
1073
- closeicon: f(() => [
1073
+ closeicon: g(() => [
1074
1074
  y(c(j), { icon: "bi:x" })
1075
1075
  ]),
1076
- default: f(() => [
1076
+ default: g(() => [
1077
1077
  k(a.$slots, "default")
1078
1078
  ]),
1079
1079
  _: 3
1080
1080
  }, 16);
1081
1081
  };
1082
1082
  }
1083
- }), zi = /* @__PURE__ */ S({
1083
+ }), Ci = /* @__PURE__ */ F({
1084
1084
  __name: "ForgeActionButton",
1085
1085
  props: {
1086
1086
  action: {},
@@ -1089,7 +1089,7 @@ const Re = {
1089
1089
  params: { default: Array }
1090
1090
  },
1091
1091
  setup(e) {
1092
- const t = P(!1), a = e, i = async () => {
1092
+ const t = I(!1), a = e, i = async () => {
1093
1093
  t.value = !0;
1094
1094
  try {
1095
1095
  await a.action.apply(this, a.params);
@@ -1099,30 +1099,30 @@ const Re = {
1099
1099
  t.value = !1;
1100
1100
  };
1101
1101
  return (l, o) => {
1102
- const r = N;
1103
- return d(), v(O, null, [
1104
- y(r, F({ ...a, ...l.$attrs }, {
1102
+ const s = U;
1103
+ return d(), f(N, null, [
1104
+ y(s, S({ ...a, ...l.$attrs }, {
1105
1105
  loading: t.value,
1106
1106
  disabled: t.value || a.disabled,
1107
1107
  onClick: i
1108
1108
  }), null, 16, ["loading", "disabled"]),
1109
- y(c(Se))
1109
+ y(c(Fe))
1110
1110
  ], 64);
1111
1111
  };
1112
1112
  }
1113
- }), Ci = /* @__PURE__ */ S({
1113
+ }), Ti = /* @__PURE__ */ F({
1114
1114
  __name: "ForgeAutoComplete",
1115
1115
  setup(e) {
1116
- return (t, a) => (d(), g(c(Fe), F({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
1117
- default: f(() => [
1118
- (d(!0), v(O, null, A(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
1116
+ return (t, a) => (d(), b(c(Se), S({ ...t.$attrs, ...t.$props }, { inputClass: "form-control border-0" }), {
1117
+ default: g(() => [
1118
+ (d(!0), f(N, null, q(t.$slots, (i, l) => k(t.$slots, l, { slot: l })), 256))
1119
1119
  ]),
1120
1120
  _: 3
1121
1121
  }, 16));
1122
1122
  }
1123
- }), kt = { class: "d-flex flex-column" }, $t = ["for"], ve = /* @__PURE__ */ S({
1123
+ }), kt = { class: "d-flex flex-column" }, $t = ["for"], fe = /* @__PURE__ */ F({
1124
1124
  __name: "ForgeCheckbox",
1125
- props: /* @__PURE__ */ q({
1125
+ props: /* @__PURE__ */ E({
1126
1126
  label: { default: "" },
1127
1127
  value: {},
1128
1128
  modelValue: {},
@@ -1162,45 +1162,45 @@ const Re = {
1162
1162
  type: "checkbox",
1163
1163
  checkedValue: a.value
1164
1164
  }
1165
- ), r = (p) => {
1165
+ ), s = (p) => {
1166
1166
  t.name ? i(p) : a.value = p;
1167
- }, s = C(() => l.value.length > 0);
1167
+ }, r = C(() => l.value.length > 0);
1168
1168
  return (p, m) => {
1169
- const b = ze;
1170
- return d(), v("div", kt, [
1171
- u("div", F({
1169
+ const x = ze;
1170
+ return d(), f("div", kt, [
1171
+ u("div", S({
1172
1172
  class: "d-flex",
1173
1173
  "data-cy": "checkbox-container",
1174
- onClick: m[2] || (m[2] = (n) => r(a.value))
1174
+ onClick: m[2] || (m[2] = (n) => s(a.value))
1175
1175
  }, { ...p.$attrs }), [
1176
- y(b, F({ ...t }, {
1176
+ y(x, S({ ...t }, {
1177
1177
  binary: "",
1178
1178
  modelValue: a.value,
1179
1179
  "onUpdate:modelValue": m[0] || (m[0] = (n) => a.value = n),
1180
1180
  "input-id": t.name,
1181
- "input-class": { "is-invalid": s.value },
1181
+ "input-class": { "is-invalid": r.value },
1182
1182
  class: t.disabled ? "" : "cursor-pointer"
1183
1183
  }), null, 16, ["modelValue", "input-id", "input-class", "class"]),
1184
1184
  u("label", {
1185
1185
  for: t.name,
1186
- onClick: m[1] || (m[1] = (n) => r(!a.value)),
1187
- class: B([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1186
+ onClick: m[1] || (m[1] = (n) => s(!a.value)),
1187
+ class: B([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${r.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1188
1188
  }, [
1189
1189
  k(p.$slots, "default", {}, () => [
1190
- _(w(t.label), 1)
1190
+ P(w(t.label), 1)
1191
1191
  ])
1192
1192
  ], 10, $t)
1193
1193
  ], 16),
1194
- R(u("small", {
1194
+ H(u("small", {
1195
1195
  "data-cy": "error",
1196
1196
  class: "text-invalid"
1197
1197
  }, w(c(o)), 513), [
1198
- [W, s.value]
1198
+ [Y, r.value]
1199
1199
  ])
1200
1200
  ]);
1201
1201
  };
1202
1202
  }
1203
- }), Bt = { class: "forge-loader" }, fe = /* @__PURE__ */ S({
1203
+ }), Bt = { class: "forge-loader" }, ge = /* @__PURE__ */ F({
1204
1204
  __name: "ForgeLoader",
1205
1205
  props: {
1206
1206
  severity: { default: "primary" }
@@ -1209,7 +1209,7 @@ const Re = {
1209
1209
  const t = e;
1210
1210
  return (a, i) => {
1211
1211
  const l = Ce;
1212
- return d(), v("div", Bt, [
1212
+ return d(), f("div", Bt, [
1213
1213
  y(l, {
1214
1214
  "animation-duration": ".75",
1215
1215
  class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
@@ -1217,7 +1217,7 @@ const Re = {
1217
1217
  ]);
1218
1218
  };
1219
1219
  }
1220
- }), St = ["href", "target"], Ti = /* @__PURE__ */ S({
1220
+ }), Ft = ["href", "target"], ji = /* @__PURE__ */ F({
1221
1221
  __name: "ForgeLink",
1222
1222
  props: {
1223
1223
  url: {},
@@ -1251,25 +1251,25 @@ const Re = {
1251
1251
  "ms-0": e.positionIconEnd && e.animateIconOnHover,
1252
1252
  "me-0": e.animateIconOnHover
1253
1253
  }));
1254
- return (i, l) => (d(), v("a", {
1254
+ return (i, l) => (d(), f("a", {
1255
1255
  id: "link",
1256
1256
  class: B(["cursor-pointer d-flex text-break", t.value]),
1257
1257
  href: i.url,
1258
1258
  target: i.target
1259
1259
  }, [
1260
1260
  k(i.$slots, "default", {}, () => [
1261
- i.iconName ? (d(), g(c(j), {
1261
+ i.iconName ? (d(), b(c(j), {
1262
1262
  key: 0,
1263
1263
  id: "link-icon",
1264
1264
  icon: i.iconName,
1265
1265
  class: B(["bi my-auto", a.value])
1266
1266
  }, null, 8, ["icon", "class"])) : z("", !0),
1267
- _(" " + w(i.label), 1)
1267
+ P(" " + w(i.label), 1)
1268
1268
  ])
1269
- ], 10, St));
1269
+ ], 10, Ft));
1270
1270
  }
1271
1271
  });
1272
- function Ft(e) {
1272
+ function St(e) {
1273
1273
  const t = {
1274
1274
  errorMessage: "",
1275
1275
  errorDetails: []
@@ -1280,18 +1280,18 @@ function Ft(e) {
1280
1280
  }
1281
1281
  return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
1282
1282
  }
1283
- function ji(e, t) {
1283
+ function Ii(e, t) {
1284
1284
  return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
1285
1285
  }
1286
- function Ii(e, t, a) {
1286
+ function Pi(e, t, a) {
1287
1287
  return { id: e, label: t ?? e.toString(), shortLabel: a };
1288
1288
  }
1289
1289
  const zt = { key: 0 }, Ct = {
1290
1290
  class: "d-flex w-100",
1291
1291
  "data-cy": "footer"
1292
- }, Pi = /* @__PURE__ */ S({
1292
+ }, _i = /* @__PURE__ */ F({
1293
1293
  __name: "ForgeModal",
1294
- props: /* @__PURE__ */ q({
1294
+ props: /* @__PURE__ */ E({
1295
1295
  cancelText: { default: "Cancel" },
1296
1296
  submitText: { default: "Submit" },
1297
1297
  showFooter: { type: Boolean, default: !0 },
@@ -1339,13 +1339,13 @@ const zt = { key: 0 }, Ct = {
1339
1339
  }),
1340
1340
  emits: ["update:visible"],
1341
1341
  setup(e) {
1342
- const t = D(e, "visible"), a = P(!1), i = e, l = P(!1), o = P({
1342
+ const t = D(e, "visible"), a = I(!1), i = e, l = I(!1), o = I({
1343
1343
  hasError: !1,
1344
1344
  header: "",
1345
1345
  message: []
1346
- }), r = () => {
1346
+ }), s = () => {
1347
1347
  a.value = !1;
1348
- }, s = () => {
1348
+ }, r = () => {
1349
1349
  a.value = !0;
1350
1350
  }, p = () => {
1351
1351
  t.value = !1;
@@ -1357,12 +1357,12 @@ const zt = { key: 0 }, Ct = {
1357
1357
  (n || n == null) && p();
1358
1358
  } catch (n) {
1359
1359
  o.value.hasError = !0;
1360
- const $ = Ft(n);
1360
+ const $ = St(n);
1361
1361
  o.value.header = $.errorMessage, o.value.message = $.errorDetails;
1362
1362
  }
1363
1363
  l.value = !1;
1364
1364
  }
1365
- }, b = C(() => ({
1365
+ }, x = C(() => ({
1366
1366
  root: [
1367
1367
  "modal modal-dialog modal-content h-auto m-0",
1368
1368
  {
@@ -1374,13 +1374,13 @@ const zt = { key: 0 }, Ct = {
1374
1374
  ]
1375
1375
  }));
1376
1376
  return (n, $) => {
1377
- const T = N, V = Te;
1378
- return d(), g(V, F(i, {
1379
- onMaximize: s,
1380
- onUnmaximize: r,
1381
- pt: b.value
1382
- }), ae({
1383
- closeicon: f(() => [
1377
+ const T = U, V = Te;
1378
+ return d(), b(V, S(i, {
1379
+ onMaximize: r,
1380
+ onUnmaximize: s,
1381
+ pt: x.value
1382
+ }), ie({
1383
+ closeicon: g(() => [
1384
1384
  y(c(j), {
1385
1385
  "data-cy": "close-icon",
1386
1386
  icon: "bi:x-lg",
@@ -1389,7 +1389,7 @@ const zt = { key: 0 }, Ct = {
1389
1389
  onClick: p
1390
1390
  })
1391
1391
  ]),
1392
- maximizeicon: f(() => [
1392
+ maximizeicon: g(() => [
1393
1393
  y(c(j), {
1394
1394
  "data-cy": "maximisable-icon",
1395
1395
  icon: a.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
@@ -1399,33 +1399,33 @@ const zt = { key: 0 }, Ct = {
1399
1399
  ]),
1400
1400
  _: 2
1401
1401
  }, [
1402
- A(n.$slots, (M, I) => ({
1403
- name: I,
1404
- fn: f((x) => [
1405
- o.value.hasError ? (d(), g(ne, {
1402
+ q(n.$slots, (M, O) => ({
1403
+ name: O,
1404
+ fn: g((v) => [
1405
+ o.value.hasError ? (d(), b(se, {
1406
1406
  key: 0,
1407
1407
  severity: "danger",
1408
1408
  "data-cy": "error"
1409
1409
  }, {
1410
- default: f(() => [
1410
+ default: g(() => [
1411
1411
  u("p", {
1412
1412
  class: B(o.value.message.length > 0 ? "my-auto" : "mb-0")
1413
1413
  }, w(o.value.header), 3),
1414
- o.value.message.length > 0 ? (d(), v("ul", zt, [
1415
- (d(!0), v(O, null, A(o.value.message, (h) => (d(), v("li", { key: h }, w(h), 1))), 128))
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
1416
  ])) : z("", !0)
1417
1417
  ]),
1418
1418
  _: 1
1419
1419
  })) : z("", !0),
1420
- k(n.$slots, I, X(Q(x || {}))),
1420
+ k(n.$slots, O, X(Q(v || {}))),
1421
1421
  l.value ? k(n.$slots, "loader", { key: 1 }, () => [
1422
- y(fe, { "data-cy": "loader" })
1422
+ y(ge, { "data-cy": "loader" })
1423
1423
  ]) : z("", !0)
1424
1424
  ])
1425
1425
  })),
1426
1426
  n.showFooter ? {
1427
1427
  name: "footer",
1428
- fn: f(() => [
1428
+ fn: g(() => [
1429
1429
  u("div", Ct, [
1430
1430
  y(T, {
1431
1431
  label: n.cancelText,
@@ -1449,9 +1449,9 @@ const zt = { key: 0 }, Ct = {
1449
1449
  ]), 1040, ["pt"]);
1450
1450
  };
1451
1451
  }
1452
- }), Tt = ["id"], jt = { key: 0 }, It = { key: 0 }, Pt = { class: "d-flex justify-content-between align-items-center position-relative" }, _t = { key: 1 }, Vt = { "data-cy": "readonly-value" }, Mt = /* @__PURE__ */ S({
1452
+ }), Tt = ["id"], jt = { key: 0 }, It = { key: 0 }, Pt = { class: "d-flex justify-content-between align-items-center position-relative" }, _t = { key: 1 }, Vt = { "data-cy": "readonly-value" }, Mt = /* @__PURE__ */ F({
1453
1453
  __name: "ForgeInlineEditor",
1454
- props: /* @__PURE__ */ q({
1454
+ props: /* @__PURE__ */ E({
1455
1455
  name: { default: "" },
1456
1456
  completeAction: {},
1457
1457
  errorAction: {},
@@ -1464,10 +1464,10 @@ const zt = { key: 0 }, Ct = {
1464
1464
  }),
1465
1465
  emits: ["update:modelValue"],
1466
1466
  setup(e) {
1467
- const t = e, a = D(e, "modelValue"), i = P(!1), l = P(), o = () => {
1467
+ const t = e, a = D(e, "modelValue"), i = I(!1), l = I(), o = () => {
1468
1468
  var T;
1469
1469
  i.value = !i.value, (T = l.value) == null || T.focus();
1470
- }, r = async () => {
1470
+ }, s = async () => {
1471
1471
  if ($.value)
1472
1472
  return !1;
1473
1473
  if (a.value = n.value, t.completeAction)
@@ -1478,46 +1478,46 @@ const zt = { key: 0 }, Ct = {
1478
1478
  }
1479
1479
  else
1480
1480
  i.value = !i.value;
1481
- }, s = () => {
1481
+ }, r = () => {
1482
1482
  i.value = !i.value;
1483
1483
  }, p = () => {
1484
1484
  n.value = null;
1485
- }, { errorMessage: m, errors: b, value: n } = ee(() => t.name, void 0, {
1485
+ }, { errorMessage: m, errors: x, value: n } = ee(() => t.name, void 0, {
1486
1486
  initialValue: a.value
1487
1487
  });
1488
- ie(() => {
1488
+ le(() => {
1489
1489
  n.value = a.value;
1490
1490
  });
1491
- const $ = C(() => b.value.length > 0);
1491
+ const $ = C(() => x.value.length > 0);
1492
1492
  return (T, V) => {
1493
- const M = le, I = N;
1494
- return d(), v("div", {
1493
+ const M = oe, O = U;
1494
+ return d(), f("div", {
1495
1495
  id: t.name
1496
1496
  }, [
1497
- T.readonly ? (d(), v("div", _t, [
1497
+ T.readonly ? (d(), f("div", _t, [
1498
1498
  k(T.$slots, "default", {}, () => [
1499
1499
  u("span", Vt, w(c(n)), 1)
1500
1500
  ])
1501
- ])) : (d(), v("div", jt, [
1502
- i.value ? (d(), v("div", It, [
1503
- R((d(), v("div", Pt, [
1501
+ ])) : (d(), f("div", jt, [
1502
+ i.value ? (d(), f("div", It, [
1503
+ H((d(), f("div", Pt, [
1504
1504
  k(T.$slots, "editor", {
1505
1505
  class: B({ "is-invalid": $.value }),
1506
- editFinished: r,
1507
- cancel: s,
1506
+ editFinished: s,
1507
+ cancel: r,
1508
1508
  val: c(n)
1509
1509
  }, () => [
1510
1510
  y(M, {
1511
+ modelValue: c(n),
1512
+ "onUpdate:modelValue": V[0] || (V[0] = (v) => we(n) ? n.value = v : null),
1513
+ modelModifiers: { trim: !0 },
1511
1514
  "data-cy": "input",
1512
1515
  ref_key: "input",
1513
1516
  ref: l,
1514
- modelValue: c(n),
1515
- "onUpdate:modelValue": V[0] || (V[0] = (x) => we(n) ? n.value = x : null),
1516
- modelModifiers: { trim: !0 },
1517
1517
  class: B({ "is-invalid": $.value }),
1518
1518
  onKeydown: [
1519
- K(r, ["enter"]),
1520
- K(s, ["esc"])
1519
+ K(s, ["enter"]),
1520
+ K(r, ["esc"])
1521
1521
  ]
1522
1522
  }, null, 8, ["modelValue", "class"])
1523
1523
  ]),
@@ -1529,9 +1529,9 @@ const zt = { key: 0 }, Ct = {
1529
1529
  "data-cy": "clear-icon"
1530
1530
  })
1531
1531
  ])), [
1532
- [c(je), r]
1532
+ [c(je), s]
1533
1533
  ])
1534
- ])) : (d(), v("div", {
1534
+ ])) : (d(), f("div", {
1535
1535
  key: 1,
1536
1536
  class: "d-flex text-muted",
1537
1537
  onClick: o,
@@ -1543,11 +1543,11 @@ const zt = { key: 0 }, Ct = {
1543
1543
  "data-cy": "value"
1544
1544
  }, w(c(n) ? c(n) : "Click to edit"), 3)
1545
1545
  ]),
1546
- y(I, {
1546
+ y(O, {
1547
1547
  link: "",
1548
1548
  class: "p-0 m-0"
1549
1549
  }, {
1550
- default: f(() => [
1550
+ default: g(() => [
1551
1551
  y(c(j), {
1552
1552
  icon: "bi:pencil",
1553
1553
  class: B($.value ? "text-invalid" : "text-muted"),
@@ -1559,16 +1559,16 @@ const zt = { key: 0 }, Ct = {
1559
1559
  })
1560
1560
  ], 32))
1561
1561
  ])),
1562
- R(u("small", {
1562
+ H(u("small", {
1563
1563
  "data-cy": "error",
1564
1564
  class: "text-invalid"
1565
1565
  }, w(c(m)), 513), [
1566
- [W, $.value]
1566
+ [Y, $.value]
1567
1567
  ])
1568
1568
  ], 8, Tt);
1569
1569
  };
1570
1570
  }
1571
- }), Dt = ["href"], _i = /* @__PURE__ */ S({
1571
+ }), Dt = ["href"], Vi = /* @__PURE__ */ F({
1572
1572
  __name: "ForgeNavbar",
1573
1573
  props: {
1574
1574
  severity: { default: "light" },
@@ -1612,22 +1612,22 @@ const zt = { key: 0 }, Ct = {
1612
1612
  ]
1613
1613
  })
1614
1614
  }));
1615
- return (i, l) => (d(), g(c(Ie), F({ ...t, ...i.$attrs }, {
1615
+ return (i, l) => (d(), b(c(Ie), S({ ...t, ...i.$attrs }, {
1616
1616
  pt: a.value,
1617
1617
  "data-cy": "navbar"
1618
- }), ae({
1619
- start: f(() => [
1618
+ }), ie({
1619
+ start: g(() => [
1620
1620
  u("a", {
1621
1621
  href: i.logoUrl,
1622
1622
  class: "navbar-brand ms-3",
1623
1623
  "data-cy": "logo"
1624
1624
  }, [
1625
1625
  k(i.$slots, "logo", {}, () => [
1626
- l[0] || (l[0] = _(" Logo "))
1626
+ l[0] || (l[0] = P(" Logo "))
1627
1627
  ])
1628
1628
  ], 8, Dt)
1629
1629
  ]),
1630
- buttonicon: f(() => [
1630
+ buttonicon: g(() => [
1631
1631
  k(i.$slots, "buttonIcon", {}, () => [
1632
1632
  y(c(j), {
1633
1633
  icon: "bi:list",
@@ -1639,10 +1639,10 @@ const zt = { key: 0 }, Ct = {
1639
1639
  ]),
1640
1640
  _: 2
1641
1641
  }, [
1642
- A(i.$slots, (o, r) => ({
1643
- name: r,
1644
- fn: f((s) => [
1645
- k(i.$slots, r, X(Q(s)))
1642
+ q(i.$slots, (o, s) => ({
1643
+ name: s,
1644
+ fn: g((r) => [
1645
+ k(i.$slots, s, X(Q(r)))
1646
1646
  ])
1647
1647
  }))
1648
1648
  ]), 1040, ["pt"]));
@@ -1654,9 +1654,9 @@ const zt = { key: 0 }, Ct = {
1654
1654
  }, Ut = { class: "d-inline-block" }, At = {
1655
1655
  key: 1,
1656
1656
  class: "p-2 item d-flex justify-content-between align-items-center"
1657
- }, qt = /* @__PURE__ */ S({
1657
+ }, qt = /* @__PURE__ */ F({
1658
1658
  __name: "ForgeMultiSelectPreview",
1659
- props: /* @__PURE__ */ q({
1659
+ props: /* @__PURE__ */ E({
1660
1660
  title: { default: "Selected Items" },
1661
1661
  orientation: { default: "row" },
1662
1662
  height: { default: "200px" },
@@ -1674,8 +1674,8 @@ const zt = { key: 0 }, Ct = {
1674
1674
  a.value = a.value.filter((o) => o.id !== l);
1675
1675
  };
1676
1676
  return (l, o) => {
1677
- const r = oe, s = N;
1678
- return d(), v("div", {
1677
+ const s = ne, r = U;
1678
+ return d(), f("div", {
1679
1679
  class: B(l.orientation === "column" ? "row" : ""),
1680
1680
  "data-cy": "multiselect-preview"
1681
1681
  }, [
@@ -1683,7 +1683,7 @@ const zt = { key: 0 }, Ct = {
1683
1683
  class: B(l.orientation === "row" ? "col-12 mb-1" : "col"),
1684
1684
  "data-cy": "multiselect-container"
1685
1685
  }, [
1686
- y(r, F({
1686
+ y(s, S({
1687
1687
  modelValue: a.value,
1688
1688
  "onUpdate:modelValue": o[0] || (o[0] = (p) => a.value = p)
1689
1689
  }, { ...l.$attrs }, {
@@ -1692,8 +1692,8 @@ const zt = { key: 0 }, Ct = {
1692
1692
  placeholder: l.multiselectPlaceholder,
1693
1693
  "data-cy": "multiselect"
1694
1694
  }), {
1695
- default: f(() => [
1696
- (d(!0), v(O, null, A(l.$slots, (p, m) => k(l.$slots, m, { slot: m })), 256))
1695
+ default: g(() => [
1696
+ (d(!0), f(N, null, q(l.$slots, (p, m) => k(l.$slots, m, { slot: m })), 256))
1697
1697
  ]),
1698
1698
  _: 3
1699
1699
  }, 16, ["modelValue", "options", "placeholder"]),
@@ -1708,21 +1708,21 @@ const zt = { key: 0 }, Ct = {
1708
1708
  class: "overflow-auto"
1709
1709
  }, [
1710
1710
  u("div", Ot, [
1711
- l.title ? (d(), v("div", Nt, w(l.title), 1)) : z("", !0),
1712
- (d(!0), v(O, null, A(a.value, (p) => (d(), v("div", {
1711
+ l.title ? (d(), f("div", Nt, w(l.title), 1)) : z("", !0),
1712
+ (d(!0), f(N, null, q(a.value, (p) => (d(), f("div", {
1713
1713
  key: p.id,
1714
1714
  class: "p-2 item d-flex justify-content-between align-items-center"
1715
1715
  }, [
1716
1716
  k(l.$slots, "list-item", { item: p }, () => [
1717
1717
  u("span", Ut, w(p.shortLabel ? p.shortLabel : p.label), 1)
1718
1718
  ]),
1719
- l.canRemoveItemFromPreview ? (d(), g(s, {
1719
+ l.canRemoveItemFromPreview ? (d(), b(r, {
1720
1720
  key: 0,
1721
1721
  link: "",
1722
1722
  class: "m-0 p-0 d-flex align-items-center",
1723
1723
  onClick: (m) => i(p.id)
1724
1724
  }, {
1725
- default: f(() => [
1725
+ default: g(() => [
1726
1726
  y(c(j), {
1727
1727
  icon: "bi:x",
1728
1728
  class: "close-icon",
@@ -1732,36 +1732,36 @@ const zt = { key: 0 }, Ct = {
1732
1732
  _: 2
1733
1733
  }, 1032, ["onClick"])) : z("", !0)
1734
1734
  ]))), 128)),
1735
- a.value == null || a.value.length == 0 ? (d(), v("div", At, w(t.optionsPreviewEmptyText), 1)) : z("", !0)
1735
+ a.value == null || a.value.length == 0 ? (d(), f("div", At, w(t.optionsPreviewEmptyText), 1)) : z("", !0)
1736
1736
  ])
1737
1737
  ], 4)
1738
1738
  ], 2)
1739
1739
  ], 2);
1740
1740
  };
1741
1741
  }
1742
- }), Lt = { class: "d-flex justify-content-between pb-2" }, Et = {
1742
+ }), Et = { class: "d-flex justify-content-between pb-2" }, Lt = {
1743
1743
  "data-cy": "title",
1744
1744
  class: "my-auto"
1745
1745
  }, Rt = {
1746
1746
  "data-cy": "slot",
1747
1747
  class: "d-flex align-items-center"
1748
- }, Vi = /* @__PURE__ */ S({
1748
+ }, Mi = /* @__PURE__ */ F({
1749
1749
  __name: "ForgePageHeader",
1750
1750
  props: {
1751
1751
  title: {}
1752
1752
  },
1753
1753
  setup(e) {
1754
1754
  const t = e;
1755
- return (a, i) => (d(), v("div", Lt, [
1756
- u("h3", Et, w(t.title), 1),
1755
+ return (a, i) => (d(), f("div", Et, [
1756
+ u("h3", Lt, w(t.title), 1),
1757
1757
  u("div", Rt, [
1758
1758
  k(a.$slots, "default")
1759
1759
  ])
1760
1760
  ]));
1761
1761
  }
1762
- }), Ht = { class: "d-flex" }, Wt = { "data-cy": "before-slot" }, Yt = { class: "position-relative w-100" }, Gt = { "data-cy": "after-slot" }, ge = /* @__PURE__ */ S({
1762
+ }), Ht = { class: "d-flex" }, Wt = { "data-cy": "before-slot" }, Yt = { class: "position-relative w-100" }, Gt = { "data-cy": "after-slot" }, be = /* @__PURE__ */ F({
1763
1763
  __name: "ForgeDatepicker",
1764
- props: /* @__PURE__ */ q({
1764
+ props: /* @__PURE__ */ E({
1765
1765
  severity: { default: "primary" },
1766
1766
  modelValue: {},
1767
1767
  defaultValue: {},
@@ -1835,11 +1835,11 @@ const zt = { key: 0 }, Ct = {
1835
1835
  }),
1836
1836
  emits: ["update:modelValue"],
1837
1837
  setup(e) {
1838
- const t = e, a = D(e, "modelValue"), { errors: i, errorMessage: l, handleChange: o, handleBlur: r, setValue: s } = ee(() => t.name, void 0, {
1838
+ const t = e, a = D(e, "modelValue"), { errors: i, errorMessage: l, handleChange: o, handleBlur: s, setValue: r } = ee(() => t.name, void 0, {
1839
1839
  initialValue: a.value
1840
1840
  }), p = () => {
1841
- s(null), a.value = null;
1842
- }, m = C(() => i.value.length > 0), b = C(() => ({
1841
+ r(null), a.value = null;
1842
+ }, m = C(() => i.value.length > 0), x = C(() => ({
1843
1843
  dayCell: ({ context: n }) => ({
1844
1844
  class: [
1845
1845
  `text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
@@ -1932,52 +1932,52 @@ const zt = { key: 0 }, Ct = {
1932
1932
  }));
1933
1933
  return (n, $) => {
1934
1934
  const T = Pe;
1935
- return d(), v(O, null, [
1935
+ return d(), f(N, null, [
1936
1936
  u("div", Ht, [
1937
1937
  u("span", Wt, [
1938
1938
  k(n.$slots, "before")
1939
1939
  ]),
1940
1940
  u("div", Yt, [
1941
- y(T, F({ ...t, ...n.$attrs }, {
1942
- pt: b.value,
1941
+ y(T, S({ ...t, ...n.$attrs }, {
1942
+ pt: x.value,
1943
1943
  modelValue: a.value,
1944
1944
  "onUpdate:modelValue": [
1945
1945
  $[0] || ($[0] = (V) => a.value = V),
1946
1946
  c(o)
1947
1947
  ],
1948
- onBlur: $[1] || ($[1] = () => c(r)),
1948
+ onBlur: $[1] || ($[1] = () => c(s)),
1949
1949
  "input-class": { "datepicker-invalid": m.value }
1950
1950
  }), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
1951
- R(y(c(j), {
1951
+ H(y(c(j), {
1952
1952
  "data-cy": "icon",
1953
1953
  icon: "bi:calendar4",
1954
1954
  class: B(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${m.value ? "text-danger-dark" : "text-muted"}`])
1955
1955
  }, null, 8, ["class"]), [
1956
- [W, t.showIcon]
1956
+ [Y, t.showIcon]
1957
1957
  ]),
1958
- R(y(c(j), {
1958
+ H(y(c(j), {
1959
1959
  "data-cy": "icon",
1960
1960
  icon: "bi:x",
1961
1961
  onClick: p,
1962
1962
  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"])
1963
1963
  }, null, 8, ["class"]), [
1964
- [W, t.modelValue]
1964
+ [Y, t.modelValue]
1965
1965
  ])
1966
1966
  ]),
1967
1967
  u("span", Gt, [
1968
1968
  k(n.$slots, "after")
1969
1969
  ])
1970
1970
  ]),
1971
- R(u("small", {
1971
+ H(u("small", {
1972
1972
  "data-cy": "error",
1973
1973
  class: "text-invalid"
1974
1974
  }, w(c(l)), 513), [
1975
- [W, m.value]
1975
+ [Y, m.value]
1976
1976
  ])
1977
1977
  ], 64);
1978
1978
  };
1979
1979
  }
1980
- }), Mi = /* @__PURE__ */ S({
1980
+ }), Di = /* @__PURE__ */ F({
1981
1981
  __name: "ForgeRemainingCharacters",
1982
1982
  props: {
1983
1983
  maxCount: { default: 300 },
@@ -1985,11 +1985,11 @@ const zt = { key: 0 }, Ct = {
1985
1985
  },
1986
1986
  setup(e) {
1987
1987
  const t = e, a = C(() => t.maxCount - t.currentCount);
1988
- return (i, l) => (d(), v("div", {
1988
+ return (i, l) => (d(), f("div", {
1989
1989
  class: B(a.value < 0 ? "text-danger" : "")
1990
1990
  }, "Remaining characters: " + w(a.value), 3));
1991
1991
  }
1992
- }), Jt = { class: "d-flex justify-content-between" }, Di = /* @__PURE__ */ S({
1992
+ }), Jt = { class: "d-flex justify-content-between" }, Oi = /* @__PURE__ */ F({
1993
1993
  __name: "ForgeForm",
1994
1994
  props: {
1995
1995
  onSubmit: {},
@@ -2001,7 +2001,7 @@ const zt = { key: 0 }, Ct = {
2001
2001
  hideCancel: { type: Boolean, default: !1 }
2002
2002
  },
2003
2003
  setup(e) {
2004
- const t = e, a = P(!1), i = P({
2004
+ const t = e, a = I(!1), i = I({
2005
2005
  hasError: !1,
2006
2006
  message: ""
2007
2007
  });
@@ -2014,32 +2014,32 @@ const zt = { key: 0 }, Ct = {
2014
2014
  }
2015
2015
  a.value = !1;
2016
2016
  }
2017
- return (o, r) => {
2018
- const s = N;
2019
- return d(), v("form", F(o.$attrs, {
2017
+ return (o, s) => {
2018
+ const r = U;
2019
+ return d(), f("form", S(o.$attrs, {
2020
2020
  novalidate: "",
2021
2021
  class: "position-relative shadow-sm border p-4 bg-white",
2022
- onSubmit: Y(l, ["prevent"])
2022
+ onSubmit: G(l, ["prevent"])
2023
2023
  }), [
2024
- o.hideTitle ? z("", !0) : (d(), v(O, { key: 0 }, [
2024
+ o.hideTitle ? z("", !0) : (d(), f(N, { key: 0 }, [
2025
2025
  k(o.$slots, "title", {}, () => [
2026
2026
  u("h3", {
2027
2027
  class: B(o.titleClass),
2028
2028
  "data-cy": "form-title"
2029
2029
  }, w(o.title), 3)
2030
2030
  ]),
2031
- r[1] || (r[1] = u("hr", null, null, -1))
2031
+ s[1] || (s[1] = u("hr", null, null, -1))
2032
2032
  ], 64)),
2033
- i.value.hasError ? (d(), g(ne, {
2033
+ i.value.hasError ? (d(), b(se, {
2034
2034
  key: 1,
2035
2035
  severity: "danger",
2036
2036
  "data-cy": "error"
2037
2037
  }, {
2038
- default: f(() => [
2038
+ default: g(() => [
2039
2039
  k(o.$slots, "error", {
2040
2040
  error: i.value.message
2041
2041
  }, () => [
2042
- _(w(i.value.message), 1)
2042
+ P(w(i.value.message), 1)
2043
2043
  ])
2044
2044
  ]),
2045
2045
  _: 3
@@ -2047,35 +2047,35 @@ const zt = { key: 0 }, Ct = {
2047
2047
  k(o.$slots, "default"),
2048
2048
  u("div", Jt, [
2049
2049
  k(o.$slots, "cancel", {}, () => [
2050
- o.hideCancel ? z("", !0) : (d(), g(s, {
2050
+ o.hideCancel ? z("", !0) : (d(), b(r, {
2051
2051
  key: 0,
2052
2052
  "data-cy": "cancel-btn",
2053
2053
  type: "reset",
2054
2054
  severity: "secondary",
2055
2055
  outlined: "",
2056
- onClick: r[0] || (r[0] = (p) => o.$emit("cancel"))
2056
+ onClick: s[0] || (s[0] = (p) => o.$emit("cancel"))
2057
2057
  }, {
2058
- default: f(() => [
2059
- _(w(o.cancelText), 1)
2058
+ default: g(() => [
2059
+ P(w(o.cancelText), 1)
2060
2060
  ]),
2061
2061
  _: 1
2062
2062
  }))
2063
2063
  ]),
2064
2064
  k(o.$slots, "submit", { submit: l }, () => [
2065
- y(s, {
2065
+ y(r, {
2066
2066
  "data-cy": "submit-btn",
2067
2067
  type: "submit",
2068
2068
  severity: "primary",
2069
2069
  class: "ms-auto"
2070
2070
  }, {
2071
- default: f(() => [
2072
- _(w(o.submitText), 1)
2071
+ default: g(() => [
2072
+ P(w(o.submitText), 1)
2073
2073
  ]),
2074
2074
  _: 1
2075
2075
  })
2076
2076
  ])
2077
2077
  ]),
2078
- a.value ? (d(), g(fe, {
2078
+ a.value ? (d(), b(ge, {
2079
2079
  key: 2,
2080
2080
  "data-cy": "loading-spinner"
2081
2081
  })) : z("", !0)
@@ -2085,9 +2085,9 @@ const zt = { key: 0 }, Ct = {
2085
2085
  }), Kt = {
2086
2086
  key: 1,
2087
2087
  class: "d-flex flex-column w-100"
2088
- }, Zt = ["for"], Oi = /* @__PURE__ */ S({
2088
+ }, Zt = ["for"], Ni = /* @__PURE__ */ F({
2089
2089
  __name: "ForgeFormField",
2090
- props: /* @__PURE__ */ q({
2090
+ props: /* @__PURE__ */ E({
2091
2091
  name: {},
2092
2092
  fieldLabelPosition: { default: "top" },
2093
2093
  fieldLabel: {},
@@ -2101,24 +2101,24 @@ const zt = { key: 0 }, Ct = {
2101
2101
  }),
2102
2102
  emits: ["update:modelValue"],
2103
2103
  setup(e) {
2104
- const t = D(e, "modelValue"), a = e, i = (b) => {
2105
- a.type == "number" ? s(b.value) : s(b);
2106
- }, { errors: l, value: o, errorMessage: r, handleChange: s, handleBlur: p } = ee(() => a.name, void 0, {
2104
+ const t = D(e, "modelValue"), a = e, i = (x) => {
2105
+ a.type == "number" ? r(x.value) : r(x);
2106
+ }, { errors: l, value: o, errorMessage: s, handleChange: r, handleBlur: p } = ee(() => a.name, void 0, {
2107
2107
  initialValue: t.value
2108
2108
  }), m = C(() => l.value.length > 0);
2109
- return pe(() => o.value, (b) => {
2110
- t.value = b;
2111
- }, { immediate: !0 }), (b, n) => {
2112
- const $ = Ve, T = _e, V = le, M = te, I = oe, x = ge;
2113
- return a.type === "checkbox" ? (d(), g(ve, F({
2109
+ return ce(() => o.value, (x) => {
2110
+ t.value = x;
2111
+ }, { immediate: !0 }), (x, n) => {
2112
+ const $ = Ve, T = _e, V = oe, M = te, O = ne, v = be;
2113
+ return a.type === "checkbox" ? (d(), b(fe, S({
2114
2114
  key: 0,
2115
2115
  id: a.name,
2116
2116
  label: a.fieldLabel
2117
- }, b.$attrs, {
2117
+ }, x.$attrs, {
2118
2118
  name: a.name,
2119
2119
  modelValue: t.value,
2120
2120
  "onUpdate:modelValue": n[0] || (n[0] = (h) => t.value = h)
2121
- }), null, 16, ["id", "label", "name", "modelValue"])) : (d(), v("div", Kt, [
2121
+ }), null, 16, ["id", "label", "name", "modelValue"])) : (d(), f("div", Kt, [
2122
2122
  u("div", {
2123
2123
  "data-cy": "input-wrapper",
2124
2124
  class: B(["d-flex", a.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
@@ -2127,30 +2127,30 @@ const zt = { key: 0 }, Ct = {
2127
2127
  for: a.name,
2128
2128
  class: B(a.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + a.labelWidthClass)
2129
2129
  }, w(a.fieldLabel), 11, Zt),
2130
- a.type === "number" ? (d(), g(c(ce), F({
2130
+ a.type === "number" ? (d(), b(c(me), S({
2131
2131
  key: 0,
2132
2132
  id: a.name
2133
- }, b.$attrs, {
2133
+ }, x.$attrs, {
2134
2134
  placeholder: a.placeholder,
2135
2135
  "input-class": { "is-invalid": m.value },
2136
2136
  class: { "is-invalid": m.value },
2137
2137
  modelValue: t.value,
2138
2138
  "onUpdate:modelValue": n[1] || (n[1] = (h) => t.value = h),
2139
2139
  onInput: i
2140
- }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), g($, F({
2140
+ }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (d(), b($, S({
2141
2141
  key: 1,
2142
2142
  id: a.name
2143
- }, b.$attrs, {
2143
+ }, x.$attrs, {
2144
2144
  placeholder: a.placeholder,
2145
2145
  class: { "is-invalid": m.value },
2146
2146
  modelValue: t.value,
2147
2147
  "onUpdate:modelValue": n[2] || (n[2] = (h) => t.value = h),
2148
2148
  onInput: i,
2149
2149
  onBlur: c(p)
2150
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), g(T, F({
2150
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (d(), b(T, S({
2151
2151
  key: 2,
2152
2152
  id: a.name
2153
- }, b.$attrs, {
2153
+ }, x.$attrs, {
2154
2154
  placeholder: a.placeholder,
2155
2155
  mask: a.mask,
2156
2156
  class: { "is-invalid": m.value },
@@ -2158,44 +2158,44 @@ const zt = { key: 0 }, Ct = {
2158
2158
  "onUpdate:modelValue": n[3] || (n[3] = (h) => t.value = h),
2159
2159
  onComplete: i,
2160
2160
  onBlur: c(p)
2161
- }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), g(V, F({
2161
+ }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (d(), b(V, S({
2162
2162
  key: 3,
2163
2163
  id: a.name
2164
- }, b.$attrs, {
2164
+ }, x.$attrs, {
2165
2165
  placeholder: a.placeholder,
2166
2166
  class: { "is-invalid": m.value },
2167
2167
  modelValue: t.value,
2168
2168
  "onUpdate:modelValue": n[4] || (n[4] = (h) => t.value = h),
2169
2169
  onInput: i,
2170
2170
  onBlur: c(p)
2171
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), g(M, F({ key: 4 }, { ...a, ...b.$attrs }, {
2171
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (d(), b(M, S({ key: 4 }, { ...a, ...x.$attrs }, {
2172
2172
  modelValue: t.value,
2173
2173
  "onUpdate:modelValue": n[5] || (n[5] = (h) => t.value = h),
2174
2174
  class: { "is-invalid": m.value }
2175
- }), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), g(I, F({ key: 5 }, { ...a, ...b.$attrs }, {
2175
+ }), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (d(), b(O, S({ key: 5 }, { ...a, ...x.$attrs }, {
2176
2176
  modelValue: t.value,
2177
2177
  "onUpdate:modelValue": n[6] || (n[6] = (h) => t.value = h),
2178
2178
  class: { "is-invalid": m.value }
2179
- }), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), g(qt, F({ key: 6 }, { ...a, ...b.$attrs }, {
2179
+ }), null, 16, ["modelValue", "class"])) : a.type === "multiselect-preview" ? (d(), b(qt, S({ key: 6 }, { ...a, ...x.$attrs }, {
2180
2180
  modelValue: t.value,
2181
2181
  "onUpdate:modelValue": n[7] || (n[7] = (h) => t.value = h),
2182
2182
  class: { "is-invalid": m.value }
2183
- }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), g(x, F({ key: 7 }, { ...a, ...b.$attrs }, {
2183
+ }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (d(), b(v, S({ key: 7 }, { ...a, ...x.$attrs }, {
2184
2184
  modelValue: t.value,
2185
2185
  "onUpdate:modelValue": n[8] || (n[8] = (h) => t.value = h),
2186
2186
  class: { "is-invalid": m.value }
2187
2187
  }), null, 16, ["modelValue", "class"])) : z("", !0)
2188
2188
  ], 2),
2189
- R(u("small", {
2189
+ H(u("small", {
2190
2190
  "data-cy": "error",
2191
2191
  class: "invalid-feedback"
2192
- }, w(c(r)), 513), [
2193
- [W, m.value && a.type !== "multiselect" && a.type !== "datepicker"]
2192
+ }, w(c(s)), 513), [
2193
+ [Y, m.value && a.type !== "multiselect" && a.type !== "datepicker"]
2194
2194
  ])
2195
2195
  ]));
2196
2196
  };
2197
2197
  }
2198
- }), Ni = /* @__PURE__ */ S({
2198
+ }), Ui = /* @__PURE__ */ F({
2199
2199
  __name: "ForgeChip",
2200
2200
  props: {
2201
2201
  chipSeverity: { default: "primary" },
@@ -2230,15 +2230,15 @@ const zt = { key: 0 }, Ct = {
2230
2230
  }));
2231
2231
  return (i, l) => {
2232
2232
  const o = Me;
2233
- return d(), g(o, F({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
2234
- default: f(() => [
2235
- (d(!0), v(O, null, A(i.$slots, (r, s) => k(i.$slots, s, { slot: s })), 256))
2233
+ return d(), b(o, S({ ...i.$attrs, ...i.$props }, { pt: a.value }), {
2234
+ default: g(() => [
2235
+ (d(!0), f(N, null, q(i.$slots, (s, r) => k(i.$slots, r, { slot: r })), 256))
2236
2236
  ]),
2237
2237
  _: 3
2238
2238
  }, 16, ["pt"]);
2239
2239
  };
2240
2240
  }
2241
- }), Xt = /* @__PURE__ */ S({
2241
+ }), Xt = /* @__PURE__ */ F({
2242
2242
  __name: "ForgeProgressBar",
2243
2243
  props: {
2244
2244
  severity: { default: "primary" },
@@ -2281,18 +2281,18 @@ const zt = { key: 0 }, Ct = {
2281
2281
  class: [l.value, a.value, i.value, "progress-bar"]
2282
2282
  }
2283
2283
  }));
2284
- return (r, s) => {
2284
+ return (s, r) => {
2285
2285
  const p = De;
2286
- return d(), g(p, F({ ...r.$attrs, ...t }, { pt: o.value }), {
2287
- default: f(() => [
2288
- k(r.$slots, "default")
2286
+ return d(), b(p, S({ ...s.$attrs, ...t }, { pt: o.value }), {
2287
+ default: g(() => [
2288
+ k(s.$slots, "default")
2289
2289
  ]),
2290
2290
  _: 3
2291
2291
  }, 16, ["pt"]);
2292
2292
  };
2293
2293
  }
2294
2294
  });
2295
- var Qt = /* @__PURE__ */ S({
2295
+ var Qt = /* @__PURE__ */ F({
2296
2296
  name: "VueDrawingCanvas",
2297
2297
  props: {
2298
2298
  strokeType: {
@@ -2604,14 +2604,14 @@ var Qt = /* @__PURE__ */ S({
2604
2604
  });
2605
2605
  },
2606
2606
  wrapText(e, t, a, i, l, o) {
2607
- const r = /(\r\n|\n\r|\n|\r)+/g, s = /\s+/g;
2608
- var p = t.split(r).filter((M) => M.length > 0);
2607
+ const s = /(\r\n|\n\r|\n|\r)+/g, r = /\s+/g;
2608
+ var p = t.split(s).filter((M) => M.length > 0);
2609
2609
  for (let M = 0; M < p.length; M++) {
2610
- for (var m = p[M].split(s).filter((I) => I.length > 0), b = "", n = 0; n < m.length; n++) {
2611
- var $ = b + 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(b, a, i) : e.fillText(b, a, i), b = m[n] + " ", i += o) : b = $;
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 = $;
2613
2613
  }
2614
- this.watermark && this.watermark.fontStyle && this.watermark.fontStyle.drawType && this.watermark.fontStyle.drawType === "stroke" ? e.strokeText(b, a, i) : e.fillText(b, a, i), i += m.length > 0 ? o : 0;
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;
2615
2615
  }
2616
2616
  },
2617
2617
  save() {
@@ -2631,20 +2631,20 @@ var Qt = /* @__PURE__ */ S({
2631
2631
  const o = new Image();
2632
2632
  o.src = a.source, o.onload = () => {
2633
2633
  a && t && t.drawImage(o, a.x, a.y, Number(i), Number(l));
2634
- let r = document.createElement("canvas"), s = r.getContext("2d"), p = this.outputWidth === void 0 ? this.width : this.outputWidth, m = this.outputHeight === void 0 ? this.height : this.outputHeight;
2635
- if (r.width = Number(p), r.height = Number(m), s)
2636
- return s.drawImage(e, 0, 0, Number(p), Number(m)), this.$emit("update:image", r.toDataURL("image/" + this.saveAs, 1)), r.toDataURL("image/" + this.saveAs, 1);
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);
2637
2637
  };
2638
2638
  } 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", r = a.fontStyle && a.fontStyle.color ? a.fontStyle.color : "#000000";
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
2640
  if (t.font = i, t.textAlign = l, t.textBaseline = o, a.fontStyle && a.fontStyle.rotate) {
2641
2641
  let n, $;
2642
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);
2643
2643
  }
2644
- 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 = r, 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 s = document.createElement("canvas"), p = s.getContext("2d"), m = this.outputWidth === void 0 ? this.width : this.outputWidth, b = this.outputHeight === void 0 ? this.height : this.outputHeight;
2646
- if (s.width = Number(m), s.height = Number(b), p)
2647
- return p.drawImage(e, 0, 0, Number(m), Number(b)), this.$emit("update:image", s.toDataURL("image/" + this.saveAs, 1)), s.toDataURL("image/" + this.saveAs, 1);
2644
+ 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);
2648
2648
  }
2649
2649
  },
2650
2650
  isEmpty() {
@@ -2682,7 +2682,7 @@ var Qt = /* @__PURE__ */ S({
2682
2682
  });
2683
2683
  }
2684
2684
  });
2685
- const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1 gap-1" }, Ui = /* @__PURE__ */ S({
2685
+ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1 gap-1" }, Ai = /* @__PURE__ */ F({
2686
2686
  __name: "ForgeScratchpad",
2687
2687
  props: {
2688
2688
  showClear: { type: Boolean, default: !0 },
@@ -2694,72 +2694,72 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
2694
2694
  },
2695
2695
  emits: ["save"],
2696
2696
  setup(e, { emit: t }) {
2697
- const a = e, i = t, l = Be("drawingCanvas"), o = P(), r = () => {
2697
+ const a = e, i = t, l = Be("drawingCanvas"), o = I(), s = () => {
2698
2698
  l == null || l.value.reset();
2699
- }, s = () => {
2699
+ }, r = () => {
2700
2700
  l == null || l.value.redo();
2701
2701
  }, p = () => {
2702
2702
  l == null || l.value.undo();
2703
2703
  }, m = () => {
2704
2704
  i("save", l.value.isEmpty());
2705
2705
  };
2706
- return (b, n) => {
2707
- const $ = N;
2708
- return d(), v("div", ea, [
2709
- y(c(Qt), F({
2706
+ return (x, n) => {
2707
+ const $ = U;
2708
+ return d(), f("div", ea, [
2709
+ y(c(Qt), S({
2710
2710
  ref_key: "drawingCanvas",
2711
2711
  ref: l,
2712
2712
  image: o.value,
2713
2713
  "onUpdate:image": n[0] || (n[0] = (T) => o.value = T),
2714
2714
  "data-cy": "drawing-canvas",
2715
2715
  class: "border canvas"
2716
- }, { ...b.$attrs }, {
2717
- height: b.height,
2718
- width: b.width,
2719
- style: `height: ${b.height}px; width: ${b.width}px`
2716
+ }, { ...x.$attrs }, {
2717
+ height: x.height,
2718
+ width: x.width,
2719
+ style: `height: ${x.height}px; width: ${x.width}px`
2720
2720
  }), null, 16, ["image", "height", "width", "style"]),
2721
2721
  u("div", ta, [
2722
- a.showUndo ? (d(), g($, {
2722
+ a.showUndo ? (d(), b($, {
2723
2723
  key: 0,
2724
2724
  onClick: p,
2725
2725
  outlined: "",
2726
2726
  "data-cy": "undo-button"
2727
2727
  }, {
2728
- default: f(() => n[1] || (n[1] = [
2729
- _("Undo")
2728
+ default: g(() => n[1] || (n[1] = [
2729
+ P("Undo")
2730
2730
  ])),
2731
2731
  _: 1
2732
2732
  })) : z("", !0),
2733
- a.showRedo ? (d(), g($, {
2733
+ a.showRedo ? (d(), b($, {
2734
2734
  key: 1,
2735
- onClick: s,
2735
+ onClick: r,
2736
2736
  outlined: "",
2737
2737
  "data-cy": "redo-button"
2738
2738
  }, {
2739
- default: f(() => n[2] || (n[2] = [
2740
- _("Redo")
2739
+ default: g(() => n[2] || (n[2] = [
2740
+ P("Redo")
2741
2741
  ])),
2742
2742
  _: 1
2743
2743
  })) : z("", !0),
2744
- a.showClear ? (d(), g($, {
2744
+ a.showClear ? (d(), b($, {
2745
2745
  key: 2,
2746
- onClick: r,
2746
+ onClick: s,
2747
2747
  outlined: "",
2748
2748
  "data-cy": "clear-button"
2749
2749
  }, {
2750
- default: f(() => n[3] || (n[3] = [
2751
- _("Clear")
2750
+ default: g(() => n[3] || (n[3] = [
2751
+ P("Clear")
2752
2752
  ])),
2753
2753
  _: 1
2754
2754
  })) : z("", !0),
2755
- a.showSave ? (d(), g($, {
2755
+ a.showSave ? (d(), b($, {
2756
2756
  key: 3,
2757
2757
  onClick: m,
2758
2758
  class: "ms-auto",
2759
2759
  "data-cy": "save-button"
2760
2760
  }, {
2761
- default: f(() => n[4] || (n[4] = [
2762
- _("Save")
2761
+ default: g(() => n[4] || (n[4] = [
2762
+ P("Save")
2763
2763
  ])),
2764
2764
  _: 1
2765
2765
  })) : z("", !0)
@@ -2767,7 +2767,7 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
2767
2767
  ]);
2768
2768
  };
2769
2769
  }
2770
- }), aa = { class: "value text-white w-100 text-center" }, Ai = /* @__PURE__ */ S({
2770
+ }), aa = { class: "value text-white w-100 text-center" }, qi = /* @__PURE__ */ F({
2771
2771
  __name: "ForgeStatWidget",
2772
2772
  props: {
2773
2773
  size: { default: "md" },
@@ -2775,7 +2775,7 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
2775
2775
  },
2776
2776
  setup(e) {
2777
2777
  const t = e;
2778
- return (a, i) => (d(), v("div", F(a.$attrs, {
2778
+ return (a, i) => (d(), f("div", S(a.$attrs, {
2779
2779
  class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
2780
2780
  }), [
2781
2781
  u("span", aa, [
@@ -2783,7 +2783,7 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
2783
2783
  ])
2784
2784
  ], 16));
2785
2785
  }
2786
- }), ia = { key: 0 }, qi = /* @__PURE__ */ S({
2786
+ }), ia = { key: 0 }, Ei = /* @__PURE__ */ F({
2787
2787
  __name: "ForgeStepper",
2788
2788
  props: {
2789
2789
  currentStep: { default: 1 },
@@ -2830,18 +2830,18 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
2830
2830
  ]
2831
2831
  })
2832
2832
  }));
2833
- return (i, l) => (d(), g(c(Ne), { value: i.currentStep }, {
2834
- default: f(() => [
2833
+ return (i, l) => (d(), b(c(Ne), { value: i.currentStep }, {
2834
+ default: g(() => [
2835
2835
  y(c(Ue), null, {
2836
- default: f(() => [
2837
- (d(!0), v(O, null, A(i.steps, (o) => (d(), g(c(Oe), F({
2836
+ default: g(() => [
2837
+ (d(!0), f(N, null, q(i.steps, (o) => (d(), b(c(Oe), S({
2838
2838
  key: o.value,
2839
2839
  value: o.value,
2840
2840
  disabled: o.disabled,
2841
2841
  ref_for: !0
2842
2842
  }, { ...i.$attrs }, { pt: a.value }), {
2843
- default: f(() => [
2844
- i.showStepLabel ? (d(), v("div", ia, w(o.label), 1)) : z("", !0)
2843
+ default: g(() => [
2844
+ i.showStepLabel ? (d(), f("div", ia, w(o.label), 1)) : z("", !0)
2845
2845
  ]),
2846
2846
  _: 2
2847
2847
  }, 1040, ["value", "disabled", "pt"]))), 128))
@@ -2849,12 +2849,12 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
2849
2849
  _: 1
2850
2850
  }),
2851
2851
  y(c(qe), null, {
2852
- default: f(() => [
2853
- (d(!0), v(O, null, A(i.steps, (o) => (d(), g(c(Ae), {
2852
+ default: g(() => [
2853
+ (d(!0), f(N, null, q(i.steps, (o) => (d(), b(c(Ae), {
2854
2854
  key: o.value,
2855
2855
  value: o.value
2856
2856
  }, {
2857
- default: f(() => [
2857
+ default: g(() => [
2858
2858
  k(i.$slots, "step" + o.value)
2859
2859
  ]),
2860
2860
  _: 2
@@ -2866,7 +2866,7 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
2866
2866
  _: 3
2867
2867
  }, 8, ["value"]));
2868
2868
  }
2869
- }), la = { class: "p-4 text-wrap w-100" }, oa = { class: "p-4 text-wrap w-100" }, Li = /* @__PURE__ */ S({
2869
+ }), la = { class: "p-4 text-wrap w-100" }, oa = { class: "p-4 text-wrap w-100" }, Li = /* @__PURE__ */ F({
2870
2870
  __name: "ForgeTile",
2871
2871
  props: {
2872
2872
  severity: { default: "primary" },
@@ -2877,30 +2877,30 @@ const ea = { class: "d-flex flex-column" }, ta = { class: "d-flex flex-row mt-1
2877
2877
  setup(e) {
2878
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
2879
  return (l, o) => {
2880
- const r = N;
2881
- return t.clickable ? (d(), g(r, {
2880
+ const s = U;
2881
+ return t.clickable ? (d(), b(s, {
2882
2882
  key: 0,
2883
2883
  class: B(["d-flex w-100 p-0 text-body", a.value]),
2884
2884
  severity: t.severity,
2885
2885
  unstyled: "",
2886
2886
  "data-cy": "button-tile"
2887
2887
  }, {
2888
- default: f(() => [
2888
+ default: g(() => [
2889
2889
  u("div", la, [
2890
2890
  k(l.$slots, "default", {}, () => [
2891
- o[0] || (o[0] = _("Tile Content"))
2891
+ o[0] || (o[0] = P("Tile Content"))
2892
2892
  ])
2893
2893
  ])
2894
2894
  ]),
2895
2895
  _: 3
2896
- }, 8, ["severity", "class"])) : (d(), v("div", {
2896
+ }, 8, ["severity", "class"])) : (d(), f("div", {
2897
2897
  key: 1,
2898
2898
  class: B(["d-flex w-100", i.value]),
2899
2899
  "data-cy": "tile"
2900
2900
  }, [
2901
2901
  u("div", oa, [
2902
2902
  k(l.$slots, "default", {}, () => [
2903
- o[1] || (o[1] = _("Tile Content"))
2903
+ o[1] || (o[1] = P("Tile Content"))
2904
2904
  ])
2905
2905
  ])
2906
2906
  ], 2));
@@ -2916,7 +2916,7 @@ const na = {
2916
2916
  }, sa = { class: "ms-2" }, ra = { key: 0 }, da = {
2917
2917
  class: "w-auto",
2918
2918
  "data-cy": "total"
2919
- }, pa = /* @__PURE__ */ S({
2919
+ }, pa = /* @__PURE__ */ F({
2920
2920
  __name: "ForgePaginationHeader",
2921
2921
  props: {
2922
2922
  total: {},
@@ -2925,24 +2925,24 @@ const na = {
2925
2925
  },
2926
2926
  emits: ["update:perPage"],
2927
2927
  setup(e, { emit: t }) {
2928
- const a = t, i = e, l = (r) => {
2929
- a("update:perPage", r.value);
2928
+ const a = t, i = e, l = (s) => {
2929
+ a("update:perPage", s.value);
2930
2930
  }, o = C(() => {
2931
- const r = Math.ceil(i.total / i.perPage);
2932
- return `${r} ${Z(r, "page")}`;
2931
+ const s = Math.ceil(i.total / i.perPage);
2932
+ return `${s} ${Z(s, "page")}`;
2933
2933
  });
2934
- return (r, s) => (d(), v("div", na, [
2935
- s[2] || (s[2] = _(" Number of results per page ")),
2934
+ return (s, r) => (d(), f("div", na, [
2935
+ r[2] || (r[2] = P(" Number of results per page ")),
2936
2936
  u("div", sa, [
2937
2937
  y(c(te), {
2938
2938
  options: i.pageSizes,
2939
2939
  "model-value": i.perPage,
2940
2940
  class: "page-size",
2941
- onChange: s[0] || (s[0] = (p) => l(p))
2941
+ onChange: r[0] || (r[0] = (p) => l(p))
2942
2942
  }, null, 8, ["options", "model-value"])
2943
2943
  ]),
2944
- i.total ? (d(), v("div", ra, [
2945
- s[1] || (s[1] = u("span", { class: "mx-2" }, "|", -1)),
2944
+ i.total ? (d(), f("div", ra, [
2945
+ r[1] || (r[1] = u("span", { class: "mx-2" }, "|", -1)),
2946
2946
  u("span", da, w(i.total) + " " + w(c(Z)(i.total, "result")) + " across " + w(o.value), 1)
2947
2947
  ])) : z("", !0)
2948
2948
  ]));
@@ -2950,7 +2950,7 @@ const na = {
2950
2950
  }), ca = { class: "position-relative" }, ma = { "data-cy": "above-table-slot" }, ua = { class: "d-flex w-100" }, va = {
2951
2951
  class: "mx-auto",
2952
2952
  "data-cy": "empty-message"
2953
- }, fa = { class: "d-flex" }, ga = { class: "d-flex align-items-end mb-2" }, ba = { key: 0 }, xa = { class: "ms-auto" }, Ei = /* @__PURE__ */ S({
2953
+ }, fa = { class: "d-flex" }, ga = { class: "d-flex align-items-end mb-2" }, ba = { key: 0 }, xa = { class: "ms-auto" }, Ri = /* @__PURE__ */ F({
2954
2954
  __name: "ForgeTable",
2955
2955
  props: {
2956
2956
  value: {},
@@ -3036,17 +3036,17 @@ const na = {
3036
3036
  },
3037
3037
  emits: ["update:filters", "update:tableContext", "sort", "page"],
3038
3038
  setup(e, { emit: t }) {
3039
- const a = t, i = e, l = P(), o = P([5, 10, 20, 50, 100]), r = P(10), s = P({
3039
+ const a = t, i = e, l = I(), o = I([5, 10, 20, 50, 100]), s = I(10), r = I({
3040
3040
  filters: i.filters,
3041
- perPage: r.value,
3041
+ perPage: s.value,
3042
3042
  page: 0,
3043
3043
  sortDirection: "None",
3044
3044
  sortField: "",
3045
3045
  total: i.totalRecords ?? i.value.length
3046
3046
  }), p = C(() => i.totalRecords ?? i.value.length), m = C(() => {
3047
- const x = Math.ceil(p.value / r.value);
3048
- return `${x} ${Z(x, "page")}`;
3049
- }), b = C(() => ({
3047
+ const v = Math.ceil(p.value / s.value);
3048
+ return `${v} ${Z(v, "page")}`;
3049
+ }), x = C(() => ({
3050
3050
  thead: () => ({
3051
3051
  class: [
3052
3052
  {
@@ -3072,32 +3072,32 @@ const na = {
3072
3072
  if (i.clearAll)
3073
3073
  i.clearAll();
3074
3074
  else
3075
- for (const x in i.filters)
3076
- typeof i.filters[x] == "string" ? i.filters[x] = "" : i.filters[x].value = null;
3075
+ for (const v in i.filters)
3076
+ typeof i.filters[v] == "string" ? i.filters[v] = "" : i.filters[v].value = null;
3077
3077
  V(i.filters);
3078
3078
  }, $ = () => {
3079
3079
  l.value.exportCSV();
3080
- }, T = (x) => {
3080
+ }, T = (v) => {
3081
3081
  var h;
3082
- s.value.sortDirection = x.sortOrder === 1 ? "Asc" : x.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((h = x.sortField) == null ? void 0 : h.toString()) ?? "", a("update:tableContext", s.value), a("sort", x);
3083
- }, V = (x) => {
3084
- s.value.filters = x, a("update:tableContext", s.value), a("update:filters", x);
3085
- }, M = (x) => {
3086
- s.value.page = x.page, a("update:tableContext", s.value), a("page", x);
3087
- }, I = () => {
3088
- s.value.perPage = r.value, a("update:tableContext", s.value);
3082
+ r.value.sortDirection = v.sortOrder === 1 ? "Asc" : v.sortOrder === -1 ? "Desc" : "None", r.value.sortField = ((h = v.sortField) == null ? void 0 : h.toString()) ?? "", a("update:tableContext", r.value), a("sort", v);
3083
+ }, V = (v) => {
3084
+ r.value.filters = v, a("update:tableContext", r.value), a("update:filters", v);
3085
+ }, M = (v) => {
3086
+ r.value.page = v.page, a("update:tableContext", r.value), a("page", v);
3087
+ }, O = () => {
3088
+ r.value.perPage = s.value, a("update:tableContext", r.value);
3089
3089
  };
3090
- return pe(() => i.filters, (x) => {
3091
- s.value.filters = x, a("update:tableContext", s.value);
3092
- }, { deep: !0 }), ie(() => a("update:tableContext", s.value)), (x, h) => (d(), v("div", ca, [
3090
+ return ce(() => i.filters, (v) => {
3091
+ r.value.filters = v, a("update:tableContext", r.value);
3092
+ }, { deep: !0 }), le(() => a("update:tableContext", r.value)), (v, h) => (d(), f("div", ca, [
3093
3093
  u("span", ma, [
3094
- k(x.$slots, "above-table")
3094
+ k(v.$slots, "above-table")
3095
3095
  ]),
3096
- y(c(Le), F({
3096
+ y(c(Ee), S({
3097
3097
  class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
3098
- }, { ...i, ...x.$attrs }, {
3099
- pt: b.value,
3100
- rows: r.value,
3098
+ }, { ...i, ...v.$attrs }, {
3099
+ pt: x.value,
3100
+ rows: s.value,
3101
3101
  "total-records": p.value,
3102
3102
  "filter-display": i.filters ? "row" : void 0,
3103
3103
  ref_key: "forgeTable",
@@ -3107,83 +3107,83 @@ const na = {
3107
3107
  onSort: T,
3108
3108
  onPage: M,
3109
3109
  showHeaders: ""
3110
- }), ae({
3111
- empty: f(() => [
3110
+ }), ie({
3111
+ empty: g(() => [
3112
3112
  u("div", ua, [
3113
- u("h5", va, w(x.emptyMessage ?? "No items Found."), 1)
3113
+ u("h5", va, w(v.emptyMessage ?? "No items Found."), 1)
3114
3114
  ])
3115
3115
  ]),
3116
- header: f(() => [
3116
+ header: g(() => [
3117
3117
  u("div", {
3118
3118
  class: B(i.loading ? "opacity-50" : "")
3119
3119
  }, [
3120
3120
  u("div", fa, [
3121
3121
  u("div", ga, [
3122
- x.paginator && !x.legacyPaginationFooter ? (d(), v("span", ba, [
3122
+ v.paginator && !v.legacyPaginationFooter ? (d(), f("span", ba, [
3123
3123
  y(pa, {
3124
3124
  total: p.value,
3125
3125
  "page-sizes": o.value,
3126
- "per-page": r.value,
3126
+ "per-page": s.value,
3127
3127
  "onUpdate:perPage": [
3128
- h[0] || (h[0] = (L) => r.value = L),
3129
- I
3128
+ h[0] || (h[0] = (_) => s.value = _),
3129
+ O
3130
3130
  ]
3131
3131
  }, null, 8, ["total", "page-sizes", "per-page"])
3132
3132
  ])) : z("", !0)
3133
3133
  ]),
3134
3134
  u("div", xa, [
3135
- x.showClearButton ? (d(), g(c(N), {
3135
+ v.showClearButton ? (d(), b(c(U), {
3136
3136
  key: 0,
3137
3137
  outlined: "",
3138
- class: B(x.showExporterButton ? "me-2" : ""),
3138
+ class: B(v.showExporterButton ? "me-2" : ""),
3139
3139
  onClick: n,
3140
3140
  "data-cy": "clear-all"
3141
3141
  }, {
3142
- default: f(() => [
3142
+ default: g(() => [
3143
3143
  y(c(j), {
3144
3144
  icon: "bi:funnel-fill",
3145
3145
  width: "24",
3146
3146
  height: "24"
3147
3147
  }),
3148
- h[2] || (h[2] = _(" Clear "))
3148
+ h[2] || (h[2] = P(" Clear "))
3149
3149
  ]),
3150
3150
  _: 1
3151
3151
  }, 8, ["class"])) : z("", !0),
3152
- x.showExporterButton ? (d(), g(c(N), {
3152
+ v.showExporterButton ? (d(), b(c(U), {
3153
3153
  key: 1,
3154
3154
  outlined: "",
3155
3155
  onClick: $,
3156
3156
  "data-cy": "exporter"
3157
3157
  }, {
3158
- default: f(() => [
3158
+ default: g(() => [
3159
3159
  y(c(j), {
3160
3160
  icon: "typcn:export",
3161
3161
  width: "24",
3162
3162
  height: "24"
3163
3163
  }),
3164
- h[3] || (h[3] = _(" Export "))
3164
+ h[3] || (h[3] = P(" Export "))
3165
3165
  ]),
3166
3166
  _: 1
3167
3167
  })) : z("", !0),
3168
- k(x.$slots, "column-customiser")
3168
+ k(v.$slots, "column-customiser")
3169
3169
  ])
3170
3170
  ])
3171
3171
  ], 2)
3172
3172
  ]),
3173
- default: f(() => [
3174
- k(x.$slots, "default")
3173
+ default: g(() => [
3174
+ k(v.$slots, "default")
3175
3175
  ]),
3176
3176
  _: 2
3177
3177
  }, [
3178
- A(x.$slots, (L, J) => ({
3179
- name: J,
3180
- fn: f((ye) => [
3181
- k(x.$slots, J, X(Q(ye || {})))
3178
+ q(v.$slots, (_, L) => ({
3179
+ name: L,
3180
+ fn: g((ae) => [
3181
+ k(v.$slots, L, X(Q(ae || {})))
3182
3182
  ])
3183
3183
  })),
3184
- x.legacyPaginationFooter ? {
3184
+ v.legacyPaginationFooter ? {
3185
3185
  name: "paginatorstart",
3186
- fn: f(() => [
3186
+ fn: g(() => [
3187
3187
  u("span", {
3188
3188
  class: B(["d-flex", i.loading ? "opacity-50" : ""]),
3189
3189
  "data-cy": "legacy-page-size"
@@ -3191,18 +3191,18 @@ const na = {
3191
3191
  h[4] || (h[4] = u("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
3192
3192
  y(c(te), {
3193
3193
  options: o.value,
3194
- modelValue: r.value,
3195
- "onUpdate:modelValue": h[1] || (h[1] = (L) => r.value = L),
3194
+ modelValue: s.value,
3195
+ "onUpdate:modelValue": h[1] || (h[1] = (_) => s.value = _),
3196
3196
  class: "ms-2",
3197
- onClick: I
3197
+ onClick: O
3198
3198
  }, null, 8, ["options", "modelValue"])
3199
3199
  ], 2)
3200
3200
  ]),
3201
3201
  key: "0"
3202
3202
  } : void 0,
3203
- x.legacyPaginationFooter ? {
3203
+ v.legacyPaginationFooter ? {
3204
3204
  name: "paginatorend",
3205
- fn: f(() => [
3205
+ fn: g(() => [
3206
3206
  u("span", {
3207
3207
  "data-cy": "legacy-total",
3208
3208
  class: B(i.loading ? "opacity-50" : "")
@@ -3213,9 +3213,9 @@ const na = {
3213
3213
  ]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
3214
3214
  ]));
3215
3215
  }
3216
- }), ya = { class: "d-flex position-relative" }, ha = { class: "d-flex w-100" }, Ri = /* @__PURE__ */ S({
3216
+ }), ya = { class: "d-flex position-relative" }, ha = { class: "d-flex w-100" }, Hi = /* @__PURE__ */ F({
3217
3217
  __name: "ForgeFilterHeader",
3218
- props: /* @__PURE__ */ q({
3218
+ props: /* @__PURE__ */ E({
3219
3219
  dataType: {},
3220
3220
  dropdownOptions: {},
3221
3221
  showClearButton: { type: Boolean, default: !1 },
@@ -3231,32 +3231,32 @@ const na = {
3231
3231
  const t = D(e, "modelValue"), a = (l, o) => {
3232
3232
  if (!l || Array.isArray(l) && l.length === 0)
3233
3233
  return o;
3234
- const r = (s) => {
3234
+ const s = (r) => {
3235
3235
  var m;
3236
3236
  const p = (m = e.dropdownOptions) == null ? void 0 : m.find(
3237
- (b) => e.optionValue ? b[e.optionValue] === s : Object.keys(b).every((n) => s.hasOwnProperty(n) && b[n] === s[n])
3237
+ (x) => e.optionValue ? x[e.optionValue] === r : Object.keys(x).every((n) => r.hasOwnProperty(n) && x[n] === r[n])
3238
3238
  );
3239
3239
  return e.optionLabel ? p[e.optionLabel] : p;
3240
3240
  };
3241
- return Array.isArray(l) ? l.map(r).join(", ") : r(l);
3241
+ return Array.isArray(l) ? l.map(s).join(", ") : s(l);
3242
3242
  }, i = () => {
3243
3243
  e.clearFilter ? e.clearFilter() : t.value = null;
3244
3244
  };
3245
3245
  return (l, o) => {
3246
- const r = ce, s = N;
3247
- return d(), v("div", ya, [
3248
- l.dataType === "numeric" ? (d(), g(r, F({
3246
+ const s = me, r = U;
3247
+ return d(), f("div", ya, [
3248
+ l.dataType === "numeric" ? (d(), b(s, S({
3249
3249
  key: 0,
3250
3250
  modelValue: t.value,
3251
3251
  "onUpdate:modelValue": o[0] || (o[0] = (p) => t.value = p)
3252
- }, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(), g(ge, F({
3252
+ }, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (d(), b(be, S({
3253
3253
  key: 1,
3254
3254
  modelValue: t.value,
3255
3255
  "onUpdate:modelValue": o[1] || (o[1] = (p) => t.value = p)
3256
3256
  }, l.$attrs, {
3257
3257
  "show-icon": !1,
3258
3258
  "show-on-focus": !0
3259
- }), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), g(c(te), F({
3259
+ }), null, 16, ["modelValue"])) : l.dataType === "select" ? (d(), b(c(te), S({
3260
3260
  key: 2,
3261
3261
  modelValue: t.value,
3262
3262
  "onUpdate:modelValue": o[2] || (o[2] = (p) => t.value = p)
@@ -3265,18 +3265,18 @@ const na = {
3265
3265
  "option-value": l.optionValue,
3266
3266
  "option-label": l.optionLabel
3267
3267
  }), {
3268
- value: f(({ value: p, placeholder: m }) => [
3268
+ value: g(({ value: p, placeholder: m }) => [
3269
3269
  u("div", ha, [
3270
3270
  u("span", {
3271
3271
  class: B({ "filter-placeholder": p === null })
3272
3272
  }, w(a(p, m)), 3),
3273
- l.showClearButton && t.value !== null ? (d(), g(s, {
3273
+ l.showClearButton && t.value !== null ? (d(), b(r, {
3274
3274
  key: 0,
3275
- onClick: Y(i, ["prevent"]),
3275
+ onClick: G(i, ["prevent"]),
3276
3276
  size: "small",
3277
3277
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
3278
3278
  }, {
3279
- default: f(() => [
3279
+ default: g(() => [
3280
3280
  y(c(j), {
3281
3281
  icon: "bi:x",
3282
3282
  width: "1rem",
@@ -3289,7 +3289,7 @@ const na = {
3289
3289
  ])
3290
3290
  ]),
3291
3291
  _: 1
3292
- }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), g(c(oe), F({
3292
+ }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (d(), b(c(ne), S({
3293
3293
  key: 3,
3294
3294
  modelValue: t.value,
3295
3295
  "onUpdate:modelValue": o[3] || (o[3] = (p) => t.value = p)
@@ -3299,18 +3299,18 @@ const na = {
3299
3299
  "option-label": l.optionLabel,
3300
3300
  "option-value": l.optionValue,
3301
3301
  filter: ""
3302
- }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), g(c(le), F({
3302
+ }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (d(), b(c(oe), S({
3303
3303
  key: 4,
3304
3304
  modelValue: t.value,
3305
3305
  "onUpdate:modelValue": o[4] || (o[4] = (p) => t.value = p)
3306
3306
  }, l.$attrs), null, 16, ["modelValue"])),
3307
- l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (d(), g(s, {
3307
+ l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (d(), b(r, {
3308
3308
  key: 5,
3309
- onClick: Y(i, ["prevent"]),
3309
+ onClick: G(i, ["prevent"]),
3310
3310
  size: "small",
3311
3311
  class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
3312
3312
  }, {
3313
- default: f(() => [
3313
+ default: g(() => [
3314
3314
  y(c(j), {
3315
3315
  icon: "bi:x",
3316
3316
  width: "1rem",
@@ -3323,7 +3323,7 @@ const na = {
3323
3323
  ]);
3324
3324
  };
3325
3325
  }
3326
- }), se = {
3326
+ }), re = {
3327
3327
  "application/prs.cww": ["cww"],
3328
3328
  "application/prs.xsf+xml": ["xsf"],
3329
3329
  "application/vnd.1000minds.decision-model+xml": ["1km"],
@@ -4022,8 +4022,8 @@ const na = {
4022
4022
  "video/x-smv": ["smv"],
4023
4023
  "x-conference/x-cooltalk": ["ice"]
4024
4024
  };
4025
- Object.freeze(se);
4026
- const re = {
4025
+ Object.freeze(re);
4026
+ const de = {
4027
4027
  "application/andrew-inset": ["ez"],
4028
4028
  "application/appinstaller": ["appinstaller"],
4029
4029
  "application/applixware": ["aw"],
@@ -4375,31 +4375,31 @@ const re = {
4375
4375
  "video/quicktime": ["qt", "mov"],
4376
4376
  "video/webm": ["webm"]
4377
4377
  };
4378
- Object.freeze(re);
4379
- var U = function(e, t, a, i) {
4378
+ Object.freeze(de);
4379
+ var A = function(e, t, a, i) {
4380
4380
  if (a === "a" && !i) throw new TypeError("Private accessor was defined without a getter");
4381
4381
  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");
4382
4382
  return a === "m" ? i : a === "a" ? i.call(e) : i ? i.value : t.get(e);
4383
- }, H, G, E;
4384
- class be {
4383
+ }, W, J, R;
4384
+ class xe {
4385
4385
  constructor(...t) {
4386
- H.set(this, /* @__PURE__ */ new Map()), G.set(this, /* @__PURE__ */ new Map()), E.set(this, /* @__PURE__ */ new Map());
4386
+ W.set(this, /* @__PURE__ */ new Map()), J.set(this, /* @__PURE__ */ new Map()), R.set(this, /* @__PURE__ */ new Map());
4387
4387
  for (const a of t)
4388
4388
  this.define(a);
4389
4389
  }
4390
4390
  define(t, a = !1) {
4391
4391
  for (let [i, l] of Object.entries(t)) {
4392
- i = i.toLowerCase(), l = l.map((s) => s.toLowerCase()), U(this, E, "f").has(i) || U(this, E, "f").set(i, /* @__PURE__ */ new Set());
4393
- const o = U(this, E, "f").get(i);
4394
- let r = !0;
4395
- for (let s of l) {
4396
- const p = s.startsWith("*");
4397
- if (s = p ? s.slice(1) : s, o == null || o.add(s), r && U(this, G, "f").set(i, s), r = !1, p)
4392
+ 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);
4394
+ let s = !0;
4395
+ for (let r of l) {
4396
+ 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)
4398
4398
  continue;
4399
- const m = U(this, H, "f").get(s);
4399
+ const m = A(this, W, "f").get(r);
4400
4400
  if (m && m != i && !a)
4401
- throw new Error(`"${i} -> ${s}" conflicts with "${m} -> ${s}". Pass \`force=true\` to override this definition.`);
4402
- U(this, H, "f").set(s, i);
4401
+ throw new Error(`"${i} -> ${r}" conflicts with "${m} -> ${r}". Pass \`force=true\` to override this definition.`);
4402
+ A(this, W, "f").set(r, i);
4403
4403
  }
4404
4404
  }
4405
4405
  return this;
@@ -4408,48 +4408,48 @@ class be {
4408
4408
  if (typeof t != "string")
4409
4409
  return null;
4410
4410
  const a = t.replace(/^.*[/\\]/, "").toLowerCase(), i = a.replace(/^.*\./, "").toLowerCase(), l = a.length < t.length;
4411
- return !(i.length < a.length - 1) && l ? null : U(this, H, "f").get(i) ?? null;
4411
+ return !(i.length < a.length - 1) && l ? null : A(this, W, "f").get(i) ?? null;
4412
4412
  }
4413
4413
  getExtension(t) {
4414
4414
  var a;
4415
- return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t && U(this, G, "f").get(t.trim().toLowerCase())) ?? null);
4415
+ return typeof t != "string" ? null : (t = (a = t == null ? void 0 : t.split) == null ? void 0 : a.call(t, ";")[0], (t && A(this, J, "f").get(t.trim().toLowerCase())) ?? null);
4416
4416
  }
4417
4417
  getAllExtensions(t) {
4418
- return typeof t != "string" ? null : U(this, E, "f").get(t.toLowerCase()) ?? null;
4418
+ return typeof t != "string" ? null : A(this, R, "f").get(t.toLowerCase()) ?? null;
4419
4419
  }
4420
4420
  _freeze() {
4421
4421
  this.define = () => {
4422
4422
  throw new Error("define() not allowed for built-in Mime objects. See https://github.com/broofa/mime/blob/main/README.md#custom-mime-instances");
4423
4423
  }, Object.freeze(this);
4424
- for (const t of U(this, E, "f").values())
4424
+ for (const t of A(this, R, "f").values())
4425
4425
  Object.freeze(t);
4426
4426
  return this;
4427
4427
  }
4428
4428
  _getTestState() {
4429
4429
  return {
4430
- types: U(this, H, "f"),
4431
- extensions: U(this, G, "f")
4430
+ types: A(this, W, "f"),
4431
+ extensions: A(this, J, "f")
4432
4432
  };
4433
4433
  }
4434
4434
  }
4435
- H = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), E = /* @__PURE__ */ new WeakMap();
4436
- new be(re, se)._freeze();
4437
- function xe(e, t, a, i) {
4435
+ W = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), R = /* @__PURE__ */ new WeakMap();
4436
+ const wa = new xe(de, re)._freeze();
4437
+ function ye(e, t, a, i) {
4438
4438
  const l = t.flatMap((o) => o.file);
4439
4439
  return t = t.map((o) => ({ ...o, status: o.status == "Duplicate" ? "Not Uploaded" : o.status })), e.forEach((o) => {
4440
- const r = l.findIndex((p) => p.name === o.name);
4441
- let s = "Not Uploaded";
4442
- r === -1 ? ((!a.includes(o.type) || !(o.size <= i)) && (s = a.includes(o.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
4440
+ const s = l.findIndex((p) => p.name === o.name);
4441
+ let r = "Not Uploaded";
4442
+ s === -1 ? ((!a.includes(o.type) || !(o.size <= i)) && (r = a.includes(o.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
4443
4443
  file: o,
4444
- status: s,
4444
+ status: r,
4445
4445
  blobFileName: null
4446
- })) : t[r].status = "Duplicate";
4446
+ })) : t[s].status = "Duplicate";
4447
4447
  }), t;
4448
4448
  }
4449
- async function wa(e, t) {
4449
+ async function ka(e, t) {
4450
4450
  if (e === "Uploaded" && t !== null)
4451
4451
  try {
4452
- await new me(t).delete();
4452
+ await new ue(t).delete();
4453
4453
  } catch (a) {
4454
4454
  if (a !== "BlobNotFound") {
4455
4455
  e = "DeleteFileFailed";
@@ -4457,34 +4457,34 @@ async function wa(e, t) {
4457
4457
  }
4458
4458
  }
4459
4459
  }
4460
- function de(e, t = !0, a = 1) {
4460
+ function pe(e, t = !0, a = 1) {
4461
4461
  const i = t ? 1e3 : 1024;
4462
4462
  if (Math.abs(e) < i)
4463
4463
  return e + " B";
4464
4464
  const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
4465
4465
  let o = -1;
4466
- const r = 10 ** a;
4466
+ const s = 10 ** a;
4467
4467
  do
4468
4468
  e /= i, ++o;
4469
- while (Math.round(Math.abs(e) * r) / r >= i && o < l.length - 1);
4469
+ while (Math.round(Math.abs(e) * s) / s >= i && o < l.length - 1);
4470
4470
  return e.toFixed(a) + " " + l[o];
4471
4471
  }
4472
- function ka(e) {
4472
+ function $a(e) {
4473
4473
  return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
4474
4474
  }
4475
- function $a(e) {
4475
+ function Ba(e) {
4476
4476
  return URL.createObjectURL(e);
4477
4477
  }
4478
- function Ba() {
4479
- const e = new be(re, se);
4478
+ function Fa() {
4479
+ const e = new xe(de, re);
4480
4480
  return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
4481
4481
  }
4482
- const Sa = { class: "d-flex justify-content-between" }, Fa = ["accept", "disabled", "multiple"], za = {
4482
+ const Sa = { class: "d-flex justify-content-between" }, za = ["accept", "disabled", "multiple"], Ca = {
4483
4483
  class: "text-break accepted-file-types-container",
4484
4484
  id: "accepted-file-types-overlay"
4485
- }, Ca = /* @__PURE__ */ S({
4485
+ }, Ta = /* @__PURE__ */ F({
4486
4486
  __name: "UploadButton",
4487
- props: /* @__PURE__ */ q({
4487
+ props: /* @__PURE__ */ E({
4488
4488
  acceptedFileTypes: {},
4489
4489
  maxFileInput: {},
4490
4490
  showDragDropArea: { type: Boolean }
@@ -4494,73 +4494,73 @@ const Sa = { class: "d-flex justify-content-between" }, Fa = ["accept", "disable
4494
4494
  }),
4495
4495
  emits: ["update:modelValue"],
4496
4496
  setup(e) {
4497
- const t = D(e, "modelValue"), a = P(), i = (r) => a.value.toggle(r), l = C(() => e.maxFileInput <= t.value.length), o = (r) => {
4498
- t.value = xe(r, t.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileInput);
4497
+ const t = D(e, "modelValue"), a = I(), i = (s) => a.value.toggle(s), l = C(() => e.maxFileInput <= t.value.length), o = (s) => {
4498
+ t.value = ye(s, t.value, e.acceptedFileTypes.map((r) => r.fileType), e.maxFileInput);
4499
4499
  };
4500
- return (r, s) => {
4501
- const p = N;
4502
- return d(), v("div", Sa, [
4503
- k(r.$slots, "message"),
4500
+ return (s, r) => {
4501
+ const p = U;
4502
+ return d(), f("div", Sa, [
4503
+ k(s.$slots, "message"),
4504
4504
  u("div", null, [
4505
4505
  u("input", {
4506
4506
  id: "file-input",
4507
4507
  type: "file",
4508
4508
  class: "d-none",
4509
- accept: r.acceptedFileTypes.join(", "),
4509
+ accept: s.acceptedFileTypes.join(", "),
4510
4510
  disabled: l.value,
4511
- multiple: r.maxFileInput > 1,
4512
- onInput: s[0] || (s[0] = (m) => o([...m.target.files]))
4513
- }, null, 40, Fa),
4511
+ multiple: s.maxFileInput > 1,
4512
+ onInput: r[0] || (r[0] = (m) => o([...m.target.files]))
4513
+ }, null, 40, za),
4514
4514
  u("label", {
4515
4515
  class: B([{ disabled: l.value }, "btn btn-primary"]),
4516
4516
  id: "file-input-button",
4517
4517
  for: "file-input"
4518
4518
  }, [
4519
- k(r.$slots, "button-content", {}, () => [
4519
+ k(s.$slots, "button-content", {}, () => [
4520
4520
  y(c(j), {
4521
4521
  icon: "bi:upload",
4522
4522
  class: "me-2",
4523
4523
  height: "20px",
4524
4524
  width: "20px"
4525
4525
  }),
4526
- s[1] || (s[1] = _(" Browse your computer "))
4526
+ r[1] || (r[1] = P(" Browse your computer "))
4527
4527
  ])
4528
4528
  ], 2)
4529
4529
  ]),
4530
- r.showDragDropArea ? (d(), g(p, {
4530
+ s.showDragDropArea ? (d(), b(p, {
4531
4531
  link: "",
4532
4532
  class: "ms-auto",
4533
- key: r.acceptedFileTypes.length,
4533
+ key: s.acceptedFileTypes.length,
4534
4534
  id: "accepted-file-types",
4535
4535
  onClick: i
4536
4536
  }, {
4537
- default: f(() => s[2] || (s[2] = [
4538
- _("Accepted File Types")
4537
+ default: g(() => r[2] || (r[2] = [
4538
+ P("Accepted File Types")
4539
4539
  ])),
4540
4540
  _: 1
4541
4541
  })) : z("", !0),
4542
- y(c(ue), {
4542
+ y(c(ve), {
4543
4543
  ref_key: "acceptedFilesOverlay",
4544
4544
  ref: a
4545
4545
  }, {
4546
- default: f(() => [
4547
- u("div", za, w(r.acceptedFileTypes.map((m) => m.label ?? m.fileType.split("/").pop()).join(", ")), 1)
4546
+ default: g(() => [
4547
+ u("div", Ca, w(s.acceptedFileTypes.map((m) => m.label ?? m.fileType.split("/").pop()).join(", ")), 1)
4548
4548
  ]),
4549
4549
  _: 1
4550
4550
  }, 512)
4551
4551
  ]);
4552
4552
  };
4553
4553
  }
4554
- }), Ta = {
4554
+ }), ja = {
4555
4555
  key: 0,
4556
4556
  class: "py-4 px-3",
4557
4557
  id: "placeholder-message"
4558
- }, ja = {
4558
+ }, Ia = {
4559
4559
  key: 1,
4560
4560
  class: "d-flex flex-column"
4561
- }, Ia = /* @__PURE__ */ S({
4561
+ }, Pa = /* @__PURE__ */ F({
4562
4562
  __name: "DragDropArea",
4563
- props: /* @__PURE__ */ q({
4563
+ props: /* @__PURE__ */ E({
4564
4564
  maxFileInput: {},
4565
4565
  maxFileSize: {},
4566
4566
  acceptedFileTypes: {}
@@ -4570,30 +4570,30 @@ const Sa = { class: "d-flex justify-content-between" }, Fa = ["accept", "disable
4570
4570
  }),
4571
4571
  emits: ["update:modelValue"],
4572
4572
  setup(e) {
4573
- const t = D(e, "modelValue"), a = P(!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 = xe([...o.dataTransfer.files], t.value, e.acceptedFileTypes.map((r) => r.fileType), e.maxFileSize);
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);
4575
4575
  };
4576
- return (o, r) => (d(), v("div", {
4576
+ return (o, s) => (d(), f("div", {
4577
4577
  id: "drag-drop-area",
4578
4578
  class: B(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
4579
- onDragleave: r[0] || (r[0] = Y((s) => a.value = !1, ["prevent"])),
4580
- onDragover: r[1] || (r[1] = Y((s) => a.value = !0, ["prevent"])),
4581
- onDrop: Y(l, ["prevent"])
4579
+ onDragleave: s[0] || (s[0] = G((r) => a.value = !1, ["prevent"])),
4580
+ onDragover: s[1] || (s[1] = G((r) => a.value = !0, ["prevent"])),
4581
+ onDrop: G(l, ["prevent"])
4582
4582
  }, [
4583
- t.value.length === 0 ? (d(), v("div", Ta, [
4583
+ t.value.length === 0 ? (d(), f("div", ja, [
4584
4584
  y(c(j), {
4585
4585
  icon: "bi:upload",
4586
4586
  class: "me-2",
4587
4587
  height: "20px",
4588
4588
  width: "20px"
4589
4589
  }),
4590
- r[2] || (r[2] = _(" Drag and drop files here "))
4591
- ])) : (d(), v("div", ja, [
4590
+ s[2] || (s[2] = P(" Drag and drop files here "))
4591
+ ])) : (d(), f("div", Ia, [
4592
4592
  k(o.$slots, "default")
4593
4593
  ]))
4594
4594
  ], 34));
4595
4595
  }
4596
- }), Pa = { class: "d-flex align-items-center me-2" }, _a = /* @__PURE__ */ S({
4596
+ }), _a = { class: "d-flex align-items-center me-2" }, Va = /* @__PURE__ */ F({
4597
4597
  __name: "UploadStatus",
4598
4598
  props: {
4599
4599
  fileSize: {},
@@ -4607,7 +4607,7 @@ const Sa = { class: "d-flex justify-content-between" }, Fa = ["accept", "disable
4607
4607
  case "InvalidFileType":
4608
4608
  return "Upload Failed: File type is not accepted.";
4609
4609
  case "InvalidFileSize":
4610
- return `Upload Failed: File size exceeds the ${de(e.maxFileSize)} limit.`;
4610
+ return `Upload Failed: File size exceeds the ${pe(e.maxFileSize)} limit.`;
4611
4611
  case "Aborted":
4612
4612
  return "Upload Failed: User cancelled.";
4613
4613
  case "DeleteFileFailed":
@@ -4618,43 +4618,43 @@ const Sa = { class: "d-flex justify-content-between" }, Fa = ["accept", "disable
4618
4618
  return "Upload Failed: Connection error, please try again.";
4619
4619
  }
4620
4620
  });
4621
- return (i, l) => (d(), v("div", Pa, [
4622
- i.uploadStatus === "Uploading" ? (d(), g(Xt, {
4621
+ return (i, l) => (d(), f("div", _a, [
4622
+ i.uploadStatus === "Uploading" ? (d(), b(Xt, {
4623
4623
  key: 0,
4624
4624
  pixelWidth: 200,
4625
4625
  animate: "",
4626
4626
  striped: ""
4627
4627
  }, {
4628
- default: f(() => [
4629
- _(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
4628
+ default: g(() => [
4629
+ P(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
4630
4630
  ]),
4631
4631
  _: 1
4632
4632
  })) : z("", !0),
4633
- i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (d(), g(ne, {
4633
+ i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (d(), b(se, {
4634
4634
  key: 1,
4635
4635
  id: "upload-status-alert",
4636
4636
  severity: t.value,
4637
4637
  class: "mb-0 w-75 ms-auto"
4638
4638
  }, {
4639
- default: f(() => [
4640
- _(w(a.value), 1)
4639
+ default: g(() => [
4640
+ P(w(a.value), 1)
4641
4641
  ]),
4642
4642
  _: 1
4643
4643
  }, 8, ["severity"])) : z("", !0)
4644
4644
  ]));
4645
4645
  }
4646
- }), Va = ["data-cy"], Ma = { class: "ms-3 d-flex flex-column" }, Da = {
4646
+ }), Ma = ["data-cy"], Da = { class: "ms-3 d-flex flex-column" }, Oa = {
4647
4647
  key: 1,
4648
4648
  id: "file-name"
4649
- }, Oa = {
4649
+ }, Na = {
4650
4650
  class: "text-black-50",
4651
4651
  id: "file-type"
4652
- }, Na = {
4652
+ }, Ua = {
4653
4653
  class: "text-black-50",
4654
4654
  id: "file-size"
4655
- }, Ua = { class: "ms-auto my-auto d-flex" }, Aa = /* @__PURE__ */ S({
4655
+ }, Aa = { class: "ms-auto my-auto d-flex" }, qa = /* @__PURE__ */ F({
4656
4656
  __name: "FileInfo",
4657
- props: /* @__PURE__ */ q({
4657
+ props: /* @__PURE__ */ E({
4658
4658
  editableFileName: { type: Boolean },
4659
4659
  acceptedFileTypes: {},
4660
4660
  maxFileSize: {},
@@ -4669,61 +4669,64 @@ const Sa = { class: "d-flex justify-content-between" }, Fa = ["accept", "disable
4669
4669
  uploadStatus: { required: !0 },
4670
4670
  uploadStatusModifiers: {}
4671
4671
  }),
4672
- emits: /* @__PURE__ */ q(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
4672
+ emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
4673
4673
  setup(e, { emit: t }) {
4674
- const a = D(e, "file"), i = D(e, "blobFileName"), l = D(e, "uploadStatus"), o = t, r = P(a.value.name), s = P(""), p = P(0), m = P(), b = C(() => e.acceptedFileTypes.some(({ fileType: I }) => I === a.value.type)), n = C(() => a.value.size <= e.maxFileSize), $ = C(() => a.value.type ? a.value.type : Ba().getType(a.value.name)), T = () => {
4675
- r.value != null && (a.value = new File([a.value], r.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
4676
- }, V = async () => {
4677
- if (!b.value || !n.value) {
4678
- l.value = b.value ? "InvalidFileSize" : "InvalidFileType";
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 = () => {
4675
+ s.value != null && (V(), a.value = new File([a.value], s.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
4676
+ }, V = () => {
4677
+ let v = s.value.split("."), h = wa.getExtension($.value), _ = s.value.split(".").pop();
4678
+ v.length === 1 ? _ && _.length > 0 && (s.value = [s.value, h].join(".")) : v.length > 1 && _ !== h && (s.value = s.value.replace(_, h));
4679
+ }, M = async () => {
4680
+ if (!x.value || !n.value) {
4681
+ l.value = x.value ? "InvalidFileSize" : "InvalidFileType";
4679
4682
  return;
4680
4683
  }
4681
4684
  l.value = "Preparing", m.value = new AbortController();
4682
- const [I, x] = await e.getFileUrlAction(a.value.name);
4683
- if (!I) {
4685
+ const [v, h] = await e.getFileUrlAction(a.value.name);
4686
+ if (!v) {
4684
4687
  l.value = "Failed";
4685
4688
  return;
4686
4689
  }
4687
4690
  try {
4688
4691
  l.value = "Uploading";
4689
- const h = new me(I), L = {
4692
+ const _ = new ue(v), L = {
4690
4693
  abortSignal: m.value.signal,
4691
- onProgress: (J) => p.value = J.loadedBytes,
4694
+ onProgress: (ae) => p.value = ae.loadedBytes,
4692
4695
  blobHTTPHeaders: {
4693
4696
  blobContentType: $.value,
4694
4697
  blobContentDisposition: `attachment; filename="${a.value.name}"`
4695
4698
  },
4696
4699
  tags: { temp: "true" }
4697
4700
  };
4698
- await h.uploadData(a.value, L), s.value = I, l.value = "Uploaded", i.value = x;
4699
- } catch (h) {
4700
- if (h.name === "AbortError") {
4701
+ await _.uploadData(a.value, L), r.value = v, l.value = "Uploaded", i.value = h;
4702
+ } catch (_) {
4703
+ if (_.name === "AbortError") {
4701
4704
  l.value = "Aborted";
4702
4705
  return;
4703
4706
  }
4704
4707
  l.value = "Failed";
4705
4708
  }
4706
- }, M = async () => {
4707
- await wa(l.value, s.value), o("deleted", a.value);
4709
+ }, O = async () => {
4710
+ await ka(l.value, r.value), o("deleted", a.value);
4708
4711
  };
4709
- return ie(() => {
4710
- e.autoUploadToBlob && V();
4711
- }), (I, x) => {
4712
- const h = N;
4713
- return d(), v("div", {
4712
+ return le(() => {
4713
+ e.autoUploadToBlob && M();
4714
+ }), (v, h) => {
4715
+ const _ = U;
4716
+ return d(), f("div", {
4714
4717
  class: "py-4 px-3 d-flex",
4715
4718
  "data-cy": `file-info-${a.value.name}`
4716
4719
  }, [
4717
4720
  u("div", null, [
4718
- c(ka)(a.value.type) ? (d(), g(c(Ee), {
4721
+ c($a)(a.value.type) ? (d(), b(c(Le), {
4719
4722
  key: 0,
4720
4723
  id: "thumbnail-image",
4721
4724
  "image-class": "image-file-thumbnail border",
4722
- src: c($a)(a.value),
4725
+ src: c(Ba)(a.value),
4723
4726
  alt: a.value.name,
4724
4727
  width: "75px",
4725
4728
  preview: ""
4726
- }, null, 8, ["src", "alt"])) : (d(), g(c(j), {
4729
+ }, null, 8, ["src", "alt"])) : (d(), b(c(j), {
4727
4730
  key: 1,
4728
4731
  id: "file-earmark",
4729
4732
  icon: "bi:file-earmark",
@@ -4731,78 +4734,78 @@ const Sa = { class: "d-flex justify-content-between" }, Fa = ["accept", "disable
4731
4734
  width: "75px"
4732
4735
  }))
4733
4736
  ]),
4734
- u("div", Ma, [
4737
+ u("div", Da, [
4735
4738
  u("div", null, [
4736
- I.editableFileName ? (d(), g(Mt, {
4739
+ v.editableFileName ? (d(), b(Mt, {
4737
4740
  key: 0,
4738
4741
  id: "edit-file-name",
4739
- modelValue: r.value,
4740
- "onUpdate:modelValue": x[0] || (x[0] = (L) => r.value = L),
4741
- rules: I.customFileNameRules,
4742
+ modelValue: s.value,
4743
+ "onUpdate:modelValue": h[0] || (h[0] = (L) => s.value = L),
4744
+ rules: v.customFileNameRules,
4742
4745
  name: a.value.name,
4743
4746
  "complete-action": T
4744
- }, null, 8, ["modelValue", "rules", "name"])) : (d(), v("span", Da, w(a.value.name), 1))
4747
+ }, null, 8, ["modelValue", "rules", "name"])) : (d(), f("span", Oa, w(s.value), 1))
4745
4748
  ]),
4746
- u("span", Oa, "File type: " + w(a.value.type.split("/").pop()), 1),
4747
- u("span", Na, "File size: " + w(c(de)(a.value.size)), 1)
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)
4748
4751
  ]),
4749
- u("div", Ua, [
4750
- (d(), g(_a, {
4752
+ u("div", Aa, [
4753
+ (d(), b(Va, {
4751
4754
  key: l.value,
4752
4755
  "file-size": a.value.size,
4753
4756
  "upload-status": l.value,
4754
4757
  "bytes-uploaded": p.value,
4755
- "max-file-size": I.maxFileSize
4758
+ "max-file-size": v.maxFileSize
4756
4759
  }, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
4757
- l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(), g(h, {
4760
+ l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (d(), b(_, {
4758
4761
  key: 0,
4759
4762
  link: "",
4760
- onClick: V
4763
+ onClick: M
4761
4764
  }, {
4762
- default: f(() => [
4765
+ default: g(() => [
4763
4766
  y(c(j), {
4764
4767
  icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
4765
4768
  }, null, 8, ["icon"])
4766
4769
  ]),
4767
4770
  _: 1
4768
4771
  })) : z("", !0),
4769
- l.value === "Uploading" ? (d(), g(h, {
4772
+ l.value === "Uploading" ? (d(), b(_, {
4770
4773
  key: 1,
4771
4774
  link: "",
4772
- onClick: x[1] || (x[1] = (L) => m.value.value.abort())
4775
+ onClick: h[1] || (h[1] = (L) => m.value.value.abort())
4773
4776
  }, {
4774
- default: f(() => [
4777
+ default: g(() => [
4775
4778
  y(c(j), { icon: "bi:x-circle-fill" })
4776
4779
  ]),
4777
4780
  _: 1
4778
- })) : (d(), g(h, {
4781
+ })) : (d(), b(_, {
4779
4782
  key: 2,
4780
4783
  link: "",
4781
- onClick: M,
4784
+ onClick: O,
4782
4785
  id: "delete-button"
4783
4786
  }, {
4784
- default: f(() => [
4787
+ default: g(() => [
4785
4788
  y(c(j), { icon: "bi:trash" })
4786
4789
  ]),
4787
4790
  _: 1
4788
4791
  }))
4789
4792
  ])
4790
- ], 8, Va);
4793
+ ], 8, Ma);
4791
4794
  };
4792
4795
  }
4793
- }), qa = { class: "d-flex justify-content-end mt-1" }, La = { id: "max-file-size" }, Ea = /* @__PURE__ */ S({
4796
+ }), Ea = { class: "d-flex justify-content-end mt-1" }, La = { id: "max-file-size" }, Ra = /* @__PURE__ */ F({
4794
4797
  __name: "MaxFileSize",
4795
4798
  props: {
4796
4799
  maxFileSize: {}
4797
4800
  },
4798
4801
  setup(e) {
4799
- return (t, a) => (d(), v("div", qa, [
4800
- u("div", La, "Max file size: " + w(c(de)(t.maxFileSize)), 1)
4802
+ return (t, a) => (d(), f("div", Ea, [
4803
+ u("div", La, "Max file size: " + w(c(pe)(t.maxFileSize)), 1)
4801
4804
  ]));
4802
4805
  }
4803
- }), Ra = { "data-cy": "file-uploader" }, Ha = { key: 0 }, Hi = /* @__PURE__ */ S({
4806
+ }), Ha = { "data-cy": "file-uploader" }, Wa = { key: 0 }, Wi = /* @__PURE__ */ F({
4804
4807
  __name: "ForgeFileUploader",
4805
- props: /* @__PURE__ */ q({
4808
+ props: /* @__PURE__ */ E({
4806
4809
  acceptedFileTypes: {},
4807
4810
  maxFileSize: {},
4808
4811
  getFileUrlAction: {},
@@ -4820,43 +4823,43 @@ const Sa = { class: "d-flex justify-content-between" }, Fa = ["accept", "disable
4820
4823
  const t = D(e, "modelValue"), a = e, i = (l) => {
4821
4824
  t.value = t.value.filter((o) => o.file != l);
4822
4825
  };
4823
- return (l, o) => (d(), v("div", Ra, [
4824
- y(Ca, F(a, {
4826
+ return (l, o) => (d(), f("div", Ha, [
4827
+ y(Ta, S(a, {
4825
4828
  modelValue: t.value,
4826
- "onUpdate:modelValue": o[0] || (o[0] = (r) => t.value = r)
4829
+ "onUpdate:modelValue": o[0] || (o[0] = (s) => t.value = s)
4827
4830
  }), null, 16, ["modelValue"]),
4828
- l.showDragDropArea ? (d(), v("div", Ha, [
4829
- y(Ia, {
4831
+ l.showDragDropArea ? (d(), f("div", Wa, [
4832
+ y(Pa, {
4830
4833
  "max-file-input": a.maxFileInput,
4831
4834
  "max-file-size": a.maxFileSize,
4832
4835
  "accepted-file-types": a.acceptedFileTypes,
4833
4836
  modelValue: t.value,
4834
- "onUpdate:modelValue": o[1] || (o[1] = (r) => t.value = r)
4837
+ "onUpdate:modelValue": o[1] || (o[1] = (s) => t.value = s)
4835
4838
  }, {
4836
- default: f(() => [
4837
- (d(!0), v(O, null, A(t.value, ({ file: r }, s) => (d(), v("span", null, [
4838
- (d(), g(Aa, F({
4839
- key: r.name,
4840
- class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
4841
- file: t.value[s].file,
4842
- "onUpdate:file": (p) => t.value[s].file = p,
4843
- "blob-file-name": t.value[s].blobFileName,
4844
- "onUpdate:blobFileName": (p) => t.value[s].blobFileName = p,
4845
- "upload-status": t.value[s].status,
4846
- "onUpdate:uploadStatus": (p) => t.value[s].status = p,
4839
+ default: g(() => [
4840
+ (d(!0), f(N, null, q(t.value, ({ file: s }, r) => (d(), f("span", null, [
4841
+ (d(), b(qa, S({
4842
+ key: s.name,
4843
+ class: r === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
4844
+ file: t.value[r].file,
4845
+ "onUpdate:file": (p) => t.value[r].file = p,
4846
+ "blob-file-name": t.value[r].blobFileName,
4847
+ "onUpdate:blobFileName": (p) => t.value[r].blobFileName = p,
4848
+ "upload-status": t.value[r].status,
4849
+ "onUpdate:uploadStatus": (p) => t.value[r].status = p,
4847
4850
  ref_for: !0
4848
4851
  }, a, { onDeleted: i }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
4849
4852
  ]))), 256))
4850
4853
  ]),
4851
4854
  _: 1
4852
4855
  }, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
4853
- y(Ea, {
4856
+ y(Ra, {
4854
4857
  "max-file-size": a.maxFileSize
4855
4858
  }, null, 8, ["max-file-size"])
4856
4859
  ])) : z("", !0)
4857
4860
  ]));
4858
4861
  }
4859
- }), Wa = { class: "d-flex" }, Ya = { class: "me-3" }, Ga = { class: "ms-2" }, Ja = { class: "d-flex flex-column w-100" }, Wi = /* @__PURE__ */ S({
4862
+ }), Ya = { class: "d-flex" }, Ga = { class: "me-3" }, Ja = { class: "ms-2" }, Ka = { class: "d-flex flex-column w-100" }, Yi = /* @__PURE__ */ F({
4860
4863
  __name: "ForgeColumnCustomiser",
4861
4864
  props: {
4862
4865
  modelValue: { required: !0 },
@@ -4864,21 +4867,21 @@ const Sa = { class: "d-flex justify-content-between" }, Fa = ["accept", "disable
4864
4867
  },
4865
4868
  emits: ["update:modelValue"],
4866
4869
  setup(e) {
4867
- const t = D(e, "modelValue"), a = P(), i = P(!1), l = (o) => {
4870
+ const t = D(e, "modelValue"), a = I(), i = I(!1), l = (o) => {
4868
4871
  a.value.toggle(o);
4869
4872
  };
4870
- return (o, r) => (d(), v(O, null, [
4871
- y(c(N), {
4873
+ return (o, s) => (d(), f(N, null, [
4874
+ y(c(U), {
4872
4875
  onClick: l,
4873
4876
  class: "ms-2"
4874
4877
  }, {
4875
- default: f(() => [
4876
- u("div", Wa, [
4877
- u("div", Ya, [
4878
+ default: g(() => [
4879
+ u("div", Ya, [
4880
+ u("div", Ga, [
4878
4881
  y(c(j), { icon: "bi:layout-three-columns" })
4879
4882
  ]),
4880
- _(" Columns (" + w(t.value.filter((s) => s.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
4881
- u("div", Ga, [
4883
+ P(" Columns (" + w(t.value.filter((r) => r.selected).length ?? 0) + "/" + w(t.value.length ?? 0) + ") ", 1),
4884
+ u("div", Ja, [
4882
4885
  y(c(j), {
4883
4886
  icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
4884
4887
  }, null, 8, ["icon"])
@@ -4887,16 +4890,16 @@ const Sa = { class: "d-flex justify-content-between" }, Fa = ["accept", "disable
4887
4890
  ]),
4888
4891
  _: 1
4889
4892
  }),
4890
- y(c(ue), {
4893
+ y(c(ve), {
4891
4894
  ref_key: "columnCustomiserPanel",
4892
4895
  ref: a,
4893
4896
  class: "column-customiser",
4894
- onHide: r[0] || (r[0] = () => i.value = !1),
4895
- onShow: r[1] || (r[1] = () => i.value = !0)
4897
+ onHide: s[0] || (s[0] = () => i.value = !1),
4898
+ onShow: s[1] || (s[1] = () => i.value = !0)
4896
4899
  }, {
4897
- default: f(() => [
4898
- u("div", Ja, [
4899
- (d(!0), v(O, null, A(t.value, (s, p) => (d(), v("div", {
4900
+ default: g(() => [
4901
+ u("div", Ka, [
4902
+ (d(!0), f(N, null, q(t.value, (r, p) => (d(), f("div", {
4900
4903
  class: B(["d-flex cursor-pointer", {
4901
4904
  "border-top": p !== 0,
4902
4905
  "py-1": p !== 0 && t.value.length - 1 !== p,
@@ -4904,13 +4907,13 @@ const Sa = { class: "d-flex justify-content-between" }, Fa = ["accept", "disable
4904
4907
  "pb-1": p === 0
4905
4908
  }])
4906
4909
  }, [
4907
- y(ve, {
4908
- id: s.field,
4909
- modelValue: s.selected,
4910
- "onUpdate:modelValue": (m) => s.selected = m,
4910
+ y(fe, {
4911
+ id: r.field,
4912
+ modelValue: r.selected,
4913
+ "onUpdate:modelValue": (m) => r.selected = m,
4911
4914
  binary: "",
4912
4915
  class: "cursor-pointer",
4913
- label: s.header
4916
+ label: r.header
4914
4917
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "label"])
4915
4918
  ], 2))), 256))
4916
4919
  ])
@@ -4921,33 +4924,33 @@ const Sa = { class: "d-flex justify-content-between" }, Fa = ["accept", "disable
4921
4924
  }
4922
4925
  });
4923
4926
  export {
4924
- Fi as Bootstrap_PT,
4925
- zi as ForgeActionButton,
4926
- ne as ForgeAlert,
4927
- Ci as ForgeAutoComplete,
4928
- ve as ForgeCheckbox,
4929
- Ni as ForgeChip,
4930
- Wi as ForgeColumnCustomiser,
4931
- ge as ForgeDatepicker,
4932
- Hi as ForgeFileUploader,
4933
- Ri as ForgeFilterHeader,
4934
- Di as ForgeForm,
4935
- Oi as ForgeFormField,
4927
+ zi as Bootstrap_PT,
4928
+ Ci as ForgeActionButton,
4929
+ se as ForgeAlert,
4930
+ Ti as ForgeAutoComplete,
4931
+ fe as ForgeCheckbox,
4932
+ Ui as ForgeChip,
4933
+ Yi as ForgeColumnCustomiser,
4934
+ be as ForgeDatepicker,
4935
+ Wi as ForgeFileUploader,
4936
+ Hi as ForgeFilterHeader,
4937
+ Oi as ForgeForm,
4938
+ Ni as ForgeFormField,
4936
4939
  Mt as ForgeInlineEditor,
4937
- Ti as ForgeLink,
4938
- fe as ForgeLoader,
4939
- Pi as ForgeModal,
4940
+ ji as ForgeLink,
4941
+ ge as ForgeLoader,
4942
+ _i as ForgeModal,
4940
4943
  qt as ForgeMultiSelectPreview,
4941
- _i as ForgeNavbar,
4942
- Vi as ForgePageHeader,
4944
+ Vi as ForgeNavbar,
4945
+ Mi as ForgePageHeader,
4943
4946
  Xt as ForgeProgressBar,
4944
- Mi as ForgeRemainingCharacters,
4945
- Ui as ForgeScratchpad,
4946
- Ai as ForgeStatWidget,
4947
- qi as ForgeStepper,
4948
- Ei as ForgeTable,
4947
+ Di as ForgeRemainingCharacters,
4948
+ Ai as ForgeScratchpad,
4949
+ qi as ForgeStatWidget,
4950
+ Ei as ForgeStepper,
4951
+ Ri as ForgeTable,
4949
4952
  Li as ForgeTile,
4950
- Ii as convertToMultiSelectOption,
4951
- ji as enumToMultiSelectList,
4952
- Ft as parseError
4953
+ Pi as convertToMultiSelectOption,
4954
+ Ii as enumToMultiSelectList,
4955
+ St as parseError
4953
4956
  };