@3squared/forge-ui-3 2.2.1 → 2.4.0

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