@3squared/forge-ui-3 0.14.0 → 0.15.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 (35) hide show
  1. package/dist/esm/forge-ui-3.js +607 -591
  2. package/dist/esm/style.css +1 -1
  3. package/dist/src/components/ForgeActionButton.vue.d.ts +4 -4
  4. package/dist/src/components/ForgeAlert.vue.d.ts +4 -4
  5. package/dist/src/components/ForgeCheckbox.vue.d.ts +4 -4
  6. package/dist/src/components/ForgeChips.vue.d.ts +4 -4
  7. package/dist/src/components/ForgeDatepicker.vue.d.ts +4 -4
  8. package/dist/src/components/ForgeForm.vue.d.ts +4 -4
  9. package/dist/src/components/ForgeFormField.vue.d.ts +14 -4
  10. package/dist/src/components/ForgeInlineEditor.vue.d.ts +4 -4
  11. package/dist/src/components/ForgeLink.vue.d.ts +1 -1
  12. package/dist/src/components/ForgeLoader.vue.d.ts +4 -4
  13. package/dist/src/components/ForgeModal.vue.d.ts +5 -5
  14. package/dist/src/components/ForgeMultiSelect.vue.d.ts +5 -5
  15. package/dist/src/components/ForgeMultiSelectPreview.vue.d.ts +4 -4
  16. package/dist/src/components/ForgeNavbar.vue.d.ts +5 -5
  17. package/dist/src/components/ForgePageHeader.vue.d.ts +1 -1
  18. package/dist/src/components/ForgeProgressBar.vue.d.ts +4 -4
  19. package/dist/src/components/ForgeRemainingCharacters.vue.d.ts +4 -4
  20. package/dist/src/components/ForgeStatWidget.vue.d.ts +4 -4
  21. package/dist/src/components/ForgeStepper.vue.d.ts +5 -5
  22. package/dist/src/components/ForgeTile.vue.d.ts +4 -4
  23. package/dist/src/components/file-uploader/ForgeFileUploader.vue.d.ts +4 -4
  24. package/dist/src/components/file-uploader/components/DragDropArea.vue.d.ts +3 -3
  25. package/dist/src/components/file-uploader/components/FileInfo.vue.d.ts +4 -4
  26. package/dist/src/components/file-uploader/components/MaxFileSize.vue.d.ts +1 -1
  27. package/dist/src/components/file-uploader/components/UploadButton.vue.d.ts +3 -3
  28. package/dist/src/components/file-uploader/components/UploadStatus.vue.d.ts +1 -1
  29. package/dist/src/components/table/ForgeFilterHeader.vue.d.ts +3 -3
  30. package/dist/src/components/table/ForgePaginationHeader.vue.d.ts +5 -5
  31. package/dist/src/components/table/ForgeTable.vue.d.ts +5 -5
  32. package/dist/src/passthroughs/Button.pt.d.ts +64 -8
  33. package/dist/src/passthroughs/Column.pt.d.ts +8 -2
  34. package/package.json +5 -5
  35. package/src/styles/components/_file-uploader.scss +2 -1
@@ -1,5 +1,5 @@
1
1
  import be from "primevue/message";
2
- import { defineComponent as F, openBlock as i, createBlock as w, normalizeProps as Q, guardReactiveProps as ee, withCtx as g, createElementVNode as c, normalizeClass as B, unref as m, createCommentVNode as S, createVNode as f, renderSlot as $, ref as I, createElementBlock as v, Fragment as L, mergeProps as _, mergeModels as E, useModel as A, computed as x, createTextVNode as O, toDisplayString as h, withDirectives as j, vShow as H, createSlots as te, renderList as Y, onMounted as ne, isRef as se, withKeys as J, useAttrs as fe, withModifiers as q, normalizeStyle as ge, watch as de } from "vue";
2
+ import { defineComponent as F, openBlock as i, createBlock as w, normalizeProps as Q, guardReactiveProps as ee, withCtx as g, createElementVNode as c, normalizeClass as B, unref as m, createCommentVNode as S, createVNode as f, renderSlot as $, ref as I, createElementBlock as v, Fragment as L, mergeProps as _, mergeModels as E, useModel as A, computed as k, createTextVNode as O, toDisplayString as h, withDirectives as j, vShow as H, createSlots as te, renderList as Y, onMounted as ne, isRef as se, withKeys as J, useAttrs as fe, withModifiers as q, normalizeStyle as ge, watch as de } from "vue";
3
3
  import { Icon as V } from "@iconify/vue";
4
4
  import R from "primevue/button";
5
5
  import he from "primevue/toast";
@@ -12,14 +12,14 @@ import { vOnClickOutside as $e } from "@vueuse/components";
12
12
  import Be from "primevue/menubar";
13
13
  import Fe from "vue-multiselect";
14
14
  import _e from "primevue/calendar";
15
- import ae from "primevue/dropdown";
15
+ import le from "primevue/dropdown";
16
16
  import Se from "primevue/inputmask";
17
17
  import Ve from "primevue/textarea";
18
18
  import ue from "primevue/inputnumber";
19
19
  import Ce from "primevue/chips";
20
20
  import Te from "primevue/progressbar";
21
- import Me from "primevue/divider";
22
- import Pe from "primevue/steps";
21
+ import Pe from "primevue/divider";
22
+ import Me from "primevue/steps";
23
23
  import Ie from "primevue/datatable";
24
24
  import ze from "primevue/multiselect";
25
25
  import { BlockBlobClient as ce } from "@azure/storage-blob";
@@ -33,47 +33,54 @@ const De = {
33
33
  {
34
34
  "btn-brand": e.severity === "brand" && !e.outlined && !e.link && !e.text,
35
35
  "btn-outline-brand": e.severity === "brand" && e.outlined,
36
- "text-brand fw-bold btn-text-brand": e.severity === "brand" && e.text
36
+ "text-brand fw-bold btn-text-brand": e.severity === "brand" && e.text,
37
+ "link-brand text-decoration-underline link-underline-brand": e.severity === "brand" && e.link
37
38
  },
38
39
  // Primary
39
40
  {
40
41
  "btn-primary": (e.severity === null || e.severity === "primary") && !e.outlined && !e.link && !e.text,
41
42
  "btn-outline-primary": (e.severity === null || e.severity === "primary") && e.outlined,
42
- "text-primary fw-bold btn-text-primary": (e.severity === null || e.severity === "primary") && e.text
43
+ "text-primary fw-bold btn-text-primary": (e.severity === null || e.severity === "primary") && e.text,
44
+ "link-primary text-decoration-underline link-underline-primary": (e.severity === null || e.severity === "primary") && e.link
43
45
  },
44
46
  // Secondary
45
47
  {
46
48
  "btn-secondary": e.severity === "secondary" && !e.outlined && !e.link && !e.text,
47
49
  "btn-outline-secondary": e.severity === "secondary" && e.outlined,
48
- "text-secondary fw-bold btn-text-secondary": e.severity === "secondary" && e.text
50
+ "text-secondary fw-bold btn-text-secondary": e.severity === "secondary" && e.text,
51
+ "link-secondary text-decoration-underline link-underline-secondary": e.severity === "secondary" && e.link
49
52
  },
50
53
  // Success
51
54
  {
52
55
  "btn-success text-white": e.severity === "success" && !e.outlined && !e.link && !e.text,
53
56
  "btn-outline-success": e.severity === "success" && e.outlined,
54
- "text-success fw-bold btn-text-success": e.severity === "success" && e.text
57
+ "text-success fw-bold btn-text-success": e.severity === "success" && e.text,
58
+ "link-success text-decoration-underline link-underline-success": e.severity === "success" && e.link
55
59
  },
56
60
  // Warning
57
61
  {
58
62
  "btn-warning text-white": e.severity === "warning" && !e.outlined && !e.link && !e.text,
59
63
  "btn-outline-warning": e.severity === "warning" && e.outlined,
60
- "text-warning fw-bold btn-text-warning": e.severity === "warning" && e.text
64
+ "text-warning fw-bold btn-text-warning": e.severity === "warning" && e.text,
65
+ "link-warning text-decoration-underline link-underline-warning": e.severity === "warning" && e.link
61
66
  },
62
67
  // Danger
63
68
  {
64
69
  "btn-danger text-white": e.severity === "danger" && !e.outlined && !e.link && !e.text,
65
70
  "btn-outline-danger": e.severity === "danger" && e.outlined,
66
- "text-danger fw-bold btn-text-danger": e.severity === "danger" && e.text
71
+ "text-danger fw-bold btn-text-danger": e.severity === "danger" && e.text,
72
+ "link-danger text-decoration-underline link-underline-danger": e.severity === "danger" && e.link
67
73
  },
68
74
  // Info
69
75
  {
70
76
  "btn-info text-white": e.severity === "info" && !e.outlined && !e.link && !e.text,
71
77
  "btn-outline-info": e.severity === "info" && e.outlined,
72
- "text-info fw-bold btn-text-info": e.severity === "info" && e.text
78
+ "text-info fw-bold btn-text-info": e.severity === "info" && e.text,
79
+ "link-info text-decoration-underline link-underline-info": e.severity === "info" && e.link
73
80
  },
74
81
  // Misc
75
82
  {
76
- "btn-link": e.link,
83
+ "p-0 border-0": e.link,
77
84
  shadow: e.raised,
78
85
  "rounded-pill": e.rounded,
79
86
  "btn-lg": e.size == "large",
@@ -198,13 +205,13 @@ const De = {
198
205
  column: {
199
206
  sortBadge: "ms-2 my-auto cursor-pointer",
200
207
  headerCell: (e) => {
201
- var t, a, o, l;
208
+ var t, l, o, a;
202
209
  return {
203
210
  class: [
204
211
  {
205
212
  "cursor-move": e.props.reorderableColumns,
206
- "position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((a = e.column) == null ? void 0 : a.context.frozen) || ((o = e.column) == null ? void 0 : o.context.frozen) === "",
207
- "overflow-hidden position-relative bg-clip-padding": (l = e.column) == null ? void 0 : l.context.resizable
213
+ "position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((l = e.column) == null ? void 0 : l.context.frozen) || ((o = e.column) == null ? void 0 : o.context.frozen) === "",
214
+ "overflow-hidden position-relative bg-clip-padding": (a = e.column) == null ? void 0 : a.context.resizable
208
215
  }
209
216
  ]
210
217
  };
@@ -236,9 +243,12 @@ const De = {
236
243
  }
237
244
  ]
238
245
  }),
239
- headerFilterClearButton: () => ({
246
+ headerFilterClearButton: ({ props: e }) => (console.log(), {
240
247
  class: [
241
- "btn"
248
+ "btn",
249
+ {
250
+ "d-none": e.filters[e.field].value === null
251
+ }
242
252
  ]
243
253
  }),
244
254
  filterOverlay: {
@@ -293,13 +303,13 @@ const De = {
293
303
  }, Ee = {
294
304
  inputtext: {
295
305
  root: (e) => {
296
- var t, a;
306
+ var t, l;
297
307
  return {
298
308
  class: [
299
309
  "form-control",
300
310
  {
301
311
  "form-control-lg": ((t = e.props.size) == null ? void 0 : t.toLowerCase()) == "large",
302
- "form-control-sm": ((a = e.props.size) == null ? void 0 : a.toLowerCase()) == "small"
312
+ "form-control-sm": ((l = e.props.size) == null ? void 0 : l.toLowerCase()) == "small"
303
313
  }
304
314
  ]
305
315
  };
@@ -730,7 +740,7 @@ const De = {
730
740
  ]
731
741
  })
732
742
  }
733
- }, at = {
743
+ }, lt = {
734
744
  tooltip: {
735
745
  root: ({ context: e }) => ({
736
746
  class: [
@@ -752,7 +762,7 @@ const De = {
752
762
  class: ["tooltip-inner"]
753
763
  }
754
764
  }
755
- }, lt = {
765
+ }, at = {
756
766
  selectbutton: {
757
767
  root: () => ({
758
768
  class: ["btn-group"]
@@ -812,7 +822,7 @@ const De = {
812
822
  button: "preview-button",
813
823
  mask: "position-fixed top-0 start-0 w-100 h-100 d-flex align-items-center justify-content-center mask",
814
824
  preview: "preview",
815
- toolbar: "position-absolute top-0 end-0 d-flex p-3",
825
+ toolbar: "position-absolute top-0 end-0 d-flex p-3 z-3",
816
826
  rotaterightbutton: "btn text-white",
817
827
  rotateleftbutton: "btn text-white",
818
828
  zoomoutbutton: "btn text-white",
@@ -843,21 +853,21 @@ const De = {
843
853
  class: ["ps-1"]
844
854
  }),
845
855
  icon: ({ props: e }) => {
846
- var t, a, o, l;
856
+ var t, l, o, a;
847
857
  return {
848
858
  class: [
849
859
  "toast-icon",
850
860
  {
851
861
  "text-primary": ((t = e.message) == null ? void 0 : t.severity) === "info",
852
- "text-success": ((a = e.message) == null ? void 0 : a.severity) === "success",
862
+ "text-success": ((l = e.message) == null ? void 0 : l.severity) === "success",
853
863
  "text-danger": ((o = e.message) == null ? void 0 : o.severity) === "error",
854
- "text-warning": ((l = e.message) == null ? void 0 : l.severity) === "warn"
864
+ "text-warning": ((a = e.message) == null ? void 0 : a.severity) === "warn"
855
865
  }
856
866
  ]
857
867
  };
858
868
  }
859
869
  }
860
- }, vl = {
870
+ }, ca = {
861
871
  ...et,
862
872
  ...De,
863
873
  ...nt,
@@ -878,16 +888,16 @@ const De = {
878
888
  ...Ye,
879
889
  ...Xe,
880
890
  ...ot,
881
- ...lt,
891
+ ...at,
882
892
  ...Ke,
883
893
  ...Qe,
884
894
  ...We,
885
895
  ...rt,
886
896
  ...je,
887
897
  directives: {
888
- ...at
898
+ ...lt
889
899
  }
890
- }, le = /* @__PURE__ */ F({
900
+ }, ae = /* @__PURE__ */ F({
891
901
  __name: "ForgeAlert",
892
902
  props: {
893
903
  severity: { default: "primary" },
@@ -903,9 +913,9 @@ const De = {
903
913
  },
904
914
  setup(e) {
905
915
  const t = e;
906
- return (a, o) => {
907
- const l = be;
908
- return i(), w(l, Q(ee({ ...a.$attrs, ...t })), {
916
+ return (l, o) => {
917
+ const a = be;
918
+ return i(), w(a, Q(ee({ ...l.$attrs, ...t })), {
909
919
  messageicon: g(() => [
910
920
  c("div", {
911
921
  class: B(t.icon ? "me-2 pe-1" : "")
@@ -923,13 +933,13 @@ const De = {
923
933
  f(m(V), { icon: "bi:x" })
924
934
  ]),
925
935
  default: g(() => [
926
- $(a.$slots, "default")
936
+ $(l.$slots, "default")
927
937
  ]),
928
938
  _: 3
929
939
  }, 16);
930
940
  };
931
941
  }
932
- }), bl = /* @__PURE__ */ F({
942
+ }), ma = /* @__PURE__ */ F({
933
943
  __name: "ForgeActionButton",
934
944
  props: {
935
945
  action: {},
@@ -938,21 +948,21 @@ const De = {
938
948
  params: { default: Array }
939
949
  },
940
950
  setup(e) {
941
- const t = I(!1), a = e, o = async () => {
951
+ const t = I(!1), l = e, o = async () => {
942
952
  t.value = !0;
943
953
  try {
944
- await a.action.apply(this, a.params);
945
- } catch (l) {
946
- await a.errorAction.apply(this, a.errorParams ? [...a.errorParams, l] : [l]);
954
+ await l.action.apply(this, l.params);
955
+ } catch (a) {
956
+ await l.errorAction.apply(this, l.errorParams ? [...l.errorParams, a] : [a]);
947
957
  }
948
958
  t.value = !1;
949
959
  };
950
- return (l, n) => {
951
- const u = R;
960
+ return (a, n) => {
961
+ const d = R;
952
962
  return i(), v(L, null, [
953
- f(u, _({ ...a, ...l.$attrs }, {
963
+ f(d, _({ ...l, ...a.$attrs }, {
954
964
  loading: t.value,
955
- disabled: t.value || a.disabled,
965
+ disabled: t.value || l.disabled,
956
966
  onClick: o
957
967
  }), null, 16, ["loading", "disabled"]),
958
968
  f(m(he))
@@ -989,33 +999,33 @@ const De = {
989
999
  }),
990
1000
  emits: ["update:modelValue"],
991
1001
  setup(e) {
992
- const t = e, a = A(e, "modelValue"), {
1002
+ const t = e, l = A(e, "modelValue"), {
993
1003
  handleChange: o,
994
- errors: l,
1004
+ errors: a,
995
1005
  errorMessage: n
996
1006
  } = K(() => t.name ?? "", void 0, {
997
1007
  type: "checkbox",
998
- checkedValue: a.value
999
- }), u = x(() => l.value.length > 0);
1000
- return (r, d) => {
1008
+ checkedValue: l.value
1009
+ }), d = k(() => a.value.length > 0);
1010
+ return (r, u) => {
1001
1011
  const p = we;
1002
1012
  return i(), v("div", dt, [
1003
1013
  c("div", _({
1004
1014
  class: "d-flex cursor-pointer",
1005
1015
  "data-cy": "checkbox-container",
1006
- onClick: d[2] || (d[2] = (y) => m(o)(a.value))
1016
+ onClick: u[2] || (u[2] = (y) => m(o)(l.value))
1007
1017
  }, { ...r.$attrs }), [
1008
1018
  f(p, _({ ...t }, {
1009
1019
  binary: "",
1010
- modelValue: a.value,
1011
- "onUpdate:modelValue": d[0] || (d[0] = (y) => a.value = y),
1020
+ modelValue: l.value,
1021
+ "onUpdate:modelValue": u[0] || (u[0] = (y) => l.value = y),
1012
1022
  "input-id": t.name,
1013
- "input-class": { "is-invalid": u.value }
1023
+ "input-class": { "is-invalid": d.value }
1014
1024
  }), null, 16, ["modelValue", "input-id", "input-class"]),
1015
1025
  c("label", {
1016
1026
  for: t.name,
1017
- onClick: d[1] || (d[1] = (y) => m(o)(a.value)),
1018
- class: B([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${u.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1027
+ onClick: u[1] || (u[1] = (y) => m(o)(l.value)),
1028
+ class: B([`${t.disabled ? "opacity-50" : "cursor-pointer"} ${d.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1019
1029
  }, [
1020
1030
  $(r.$slots, "default", {}, () => [
1021
1031
  O(h(t.label), 1)
@@ -1026,7 +1036,7 @@ const De = {
1026
1036
  "data-cy": "error",
1027
1037
  class: "text-invalid"
1028
1038
  }, h(m(n)), 513), [
1029
- [H, u.value]
1039
+ [H, d.value]
1030
1040
  ])
1031
1041
  ]);
1032
1042
  };
@@ -1038,17 +1048,17 @@ const De = {
1038
1048
  },
1039
1049
  setup(e) {
1040
1050
  const t = e;
1041
- return (a, o) => {
1042
- const l = xe;
1051
+ return (l, o) => {
1052
+ const a = xe;
1043
1053
  return i(), v("div", mt, [
1044
- f(l, {
1054
+ f(a, {
1045
1055
  "animation-duration": ".75",
1046
1056
  class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
1047
1057
  }, null, 8, ["class"])
1048
1058
  ]);
1049
1059
  };
1050
1060
  }
1051
- }), pt = ["href", "target"], fl = /* @__PURE__ */ F({
1061
+ }), pt = ["href", "target"], pa = /* @__PURE__ */ F({
1052
1062
  __name: "ForgeLink",
1053
1063
  props: {
1054
1064
  url: {},
@@ -1066,7 +1076,7 @@ const De = {
1066
1076
  iconName: {}
1067
1077
  },
1068
1078
  setup(e) {
1069
- const t = x(() => ({
1079
+ const t = k(() => ({
1070
1080
  [`link-${e.severity}`]: e.severity,
1071
1081
  [`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
1072
1082
  [`link-opacity-${e.opacity}`]: e.opacity,
@@ -1075,14 +1085,14 @@ const De = {
1075
1085
  [`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
1076
1086
  [`link-offset-${e.underlineOffset}`]: e.underlineOffset,
1077
1087
  "icon-link icon-link-hover": e.animateIconOnHover
1078
- })), a = x(() => ({
1088
+ })), l = k(() => ({
1079
1089
  "order-2": e.positionIconEnd,
1080
1090
  "me-1": !e.positionIconEnd && !e.animateIconOnHover,
1081
1091
  "ms-1": e.positionIconEnd && !e.animateIconOnHover,
1082
1092
  "ms-0": e.positionIconEnd && e.animateIconOnHover,
1083
1093
  "me-0": e.animateIconOnHover
1084
1094
  }));
1085
- return (o, l) => (i(), v("a", {
1095
+ return (o, a) => (i(), v("a", {
1086
1096
  id: "link",
1087
1097
  class: B(["cursor-pointer d-flex", t.value]),
1088
1098
  href: o.url,
@@ -1093,7 +1103,7 @@ const De = {
1093
1103
  key: 0,
1094
1104
  id: "link-icon",
1095
1105
  icon: o.iconName,
1096
- class: B(["bi my-auto", a.value])
1106
+ class: B(["bi my-auto", l.value])
1097
1107
  }, null, 8, ["icon", "class"])) : S("", !0),
1098
1108
  O(" " + h(o.label), 1)
1099
1109
  ])
@@ -1106,21 +1116,21 @@ function yt(e) {
1106
1116
  errorDetails: []
1107
1117
  };
1108
1118
  if (e.exception && (t.errorMessage = e.exception), e.message && (Array.isArray(e.message) ? t.errorDetails = e.message : t.errorMessage = e.message), e.response) {
1109
- const a = JSON.parse(e.response);
1110
- a.errors && (t.errorDetails = Object.values(a.errors).flat()), a.message && (t.errorDetails = a.message);
1119
+ const l = JSON.parse(e.response);
1120
+ l.errors && (t.errorDetails = Object.values(l.errors).flat()), l.message && (t.errorDetails = l.message);
1111
1121
  }
1112
1122
  return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
1113
1123
  }
1114
- function gl(e, t) {
1115
- return e.map((a) => ({ id: a, label: t ? t(a) : `${a}` }));
1124
+ function ya(e, t) {
1125
+ return e.map((l) => ({ id: l, label: t ? t(l) : `${l}` }));
1116
1126
  }
1117
- function hl(e, t, a) {
1118
- return { id: e, label: t ?? e.toString(), shortLabel: a };
1127
+ function va(e, t, l) {
1128
+ return { id: e, label: t ?? e.toString(), shortLabel: l };
1119
1129
  }
1120
1130
  const vt = { key: 0 }, bt = {
1121
1131
  class: "d-flex w-100",
1122
1132
  "data-cy": "footer"
1123
- }, wl = /* @__PURE__ */ F({
1133
+ }, ba = /* @__PURE__ */ F({
1124
1134
  __name: "ForgeModal",
1125
1135
  props: /* @__PURE__ */ E({
1126
1136
  cancelText: { default: "Cancel" },
@@ -1166,34 +1176,34 @@ const vt = { key: 0 }, bt = {
1166
1176
  }),
1167
1177
  emits: ["update:visible"],
1168
1178
  setup(e) {
1169
- const t = A(e, "visible"), a = I(!1), o = e, l = I(!1), n = I({
1179
+ const t = A(e, "visible"), l = I(!1), o = e, a = I(!1), n = I({
1170
1180
  hasError: !1,
1171
1181
  header: "",
1172
1182
  message: []
1173
- }), u = () => {
1174
- a.value = !1;
1183
+ }), d = () => {
1184
+ l.value = !1;
1175
1185
  }, r = () => {
1176
- a.value = !0;
1177
- }, d = () => {
1186
+ l.value = !0;
1187
+ }, u = () => {
1178
1188
  t.value = !1;
1179
1189
  }, p = async () => {
1180
1190
  if (o.onConfirm) {
1181
- l.value = !0, n.value.hasError = !1;
1191
+ a.value = !0, n.value.hasError = !1;
1182
1192
  try {
1183
1193
  const s = await o.onConfirm();
1184
- (s || s == null) && d();
1194
+ (s || s == null) && u();
1185
1195
  } catch (s) {
1186
1196
  n.value.hasError = !0;
1187
1197
  const T = yt(s);
1188
1198
  n.value.header = T.errorMessage, n.value.message = T.errorDetails;
1189
1199
  }
1190
- l.value = !1;
1200
+ a.value = !1;
1191
1201
  }
1192
- }, y = x(() => ({
1202
+ }, y = k(() => ({
1193
1203
  root: [
1194
1204
  "modal modal-dialog modal-content h-auto m-0",
1195
1205
  {
1196
- "mw-100 vh-100 vw-100 top-0 start-0": a.value,
1206
+ "mw-100 vh-100 vw-100 top-0 start-0": l.value,
1197
1207
  "modal-sm": o.size === "sm",
1198
1208
  "modal-lg": o.size === "lg",
1199
1209
  "modal-xl": o.size === "xl"
@@ -1201,10 +1211,10 @@ const vt = { key: 0 }, bt = {
1201
1211
  ]
1202
1212
  }));
1203
1213
  return (s, T) => {
1204
- const C = R, M = ke;
1205
- return i(), w(M, _(o, {
1214
+ const C = R, P = ke;
1215
+ return i(), w(P, _(o, {
1206
1216
  onMaximize: r,
1207
- onUnmaximize: u,
1217
+ onUnmaximize: d,
1208
1218
  pt: y.value
1209
1219
  }), te({
1210
1220
  closeicon: g(() => [
@@ -1213,23 +1223,23 @@ const vt = { key: 0 }, bt = {
1213
1223
  icon: "bi:x-lg",
1214
1224
  width: "18",
1215
1225
  height: "18",
1216
- onClick: d
1226
+ onClick: u
1217
1227
  })
1218
1228
  ]),
1219
1229
  maximizeicon: g(() => [
1220
1230
  f(m(V), {
1221
1231
  "data-cy": "maximisable-icon",
1222
- icon: a.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1232
+ icon: l.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1223
1233
  width: "16",
1224
1234
  height: "16"
1225
1235
  }, null, 8, ["icon"])
1226
1236
  ]),
1227
1237
  _: 2
1228
1238
  }, [
1229
- Y(s.$slots, (P, z) => ({
1239
+ Y(s.$slots, (M, z) => ({
1230
1240
  name: z,
1231
1241
  fn: g((b) => [
1232
- n.value.hasError ? (i(), w(le, {
1242
+ n.value.hasError ? (i(), w(ae, {
1233
1243
  key: 0,
1234
1244
  severity: "danger",
1235
1245
  "data-cy": "error"
@@ -1239,13 +1249,13 @@ const vt = { key: 0 }, bt = {
1239
1249
  class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
1240
1250
  }, h(n.value.header), 3),
1241
1251
  n.value.message.length > 0 ? (i(), v("ul", vt, [
1242
- (i(!0), v(L, null, Y(n.value.message, (k) => (i(), v("li", { key: k }, h(k), 1))), 128))
1252
+ (i(!0), v(L, null, Y(n.value.message, (x) => (i(), v("li", { key: x }, h(x), 1))), 128))
1243
1253
  ])) : S("", !0)
1244
1254
  ]),
1245
1255
  _: 1
1246
1256
  })) : S("", !0),
1247
1257
  $(s.$slots, z, Q(ee(b || {}))),
1248
- l.value ? $(s.$slots, "loader", { key: 1 }, () => [
1258
+ a.value ? $(s.$slots, "loader", { key: 1 }, () => [
1249
1259
  f(me, { "data-cy": "loader" })
1250
1260
  ]) : S("", !0)
1251
1261
  ])
@@ -1258,7 +1268,7 @@ const vt = { key: 0 }, bt = {
1258
1268
  label: s.cancelText,
1259
1269
  class: B(o.cancelClass),
1260
1270
  outlined: "",
1261
- onClick: d,
1271
+ onClick: u,
1262
1272
  id: "cancel-button",
1263
1273
  type: o.cancelButtonType
1264
1274
  }, null, 8, ["label", "class", "type"]),
@@ -1291,13 +1301,13 @@ const vt = { key: 0 }, bt = {
1291
1301
  }),
1292
1302
  emits: ["update:modelValue"],
1293
1303
  setup(e) {
1294
- const t = e, a = A(e, "modelValue"), o = I(!1), l = I(), n = () => {
1304
+ const t = e, l = A(e, "modelValue"), o = I(!1), a = I(), n = () => {
1295
1305
  var C;
1296
- o.value = !o.value, (C = l.value) == null || C.focus();
1297
- }, u = async () => {
1306
+ o.value = !o.value, (C = a.value) == null || C.focus();
1307
+ }, d = async () => {
1298
1308
  if (T.value)
1299
1309
  return !1;
1300
- if (a.value = s.value, t.completeAction)
1310
+ if (l.value = s.value, t.completeAction)
1301
1311
  try {
1302
1312
  await t.completeAction.apply(this, t.params), o.value = !o.value;
1303
1313
  } catch {
@@ -1307,17 +1317,17 @@ const vt = { key: 0 }, bt = {
1307
1317
  o.value = !o.value;
1308
1318
  }, r = () => {
1309
1319
  o.value = !o.value;
1310
- }, d = () => {
1320
+ }, u = () => {
1311
1321
  s.value = null;
1312
1322
  }, { errorMessage: p, errors: y, value: s } = K(() => t.name, void 0, {
1313
- initialValue: a.value
1323
+ initialValue: l.value
1314
1324
  });
1315
1325
  ne(() => {
1316
- s.value = a.value;
1326
+ s.value = l.value;
1317
1327
  });
1318
- const T = x(() => y.value.length > 0);
1319
- return (C, M) => {
1320
- const P = ie, z = R;
1328
+ const T = k(() => y.value.length > 0);
1329
+ return (C, P) => {
1330
+ const M = ie, z = R;
1321
1331
  return i(), v("div", {
1322
1332
  id: t.name
1323
1333
  }, [
@@ -1330,20 +1340,20 @@ const vt = { key: 0 }, bt = {
1330
1340
  j((i(), v("div", wt, [
1331
1341
  $(C.$slots, "editor", {
1332
1342
  class: B({ "is-invalid": T.value }),
1333
- editFinished: u,
1343
+ editFinished: d,
1334
1344
  cancel: r,
1335
1345
  val: m(s)
1336
1346
  }, () => [
1337
- f(P, {
1347
+ f(M, {
1338
1348
  "data-cy": "input",
1339
1349
  ref_key: "input",
1340
- ref: l,
1350
+ ref: a,
1341
1351
  modelValue: m(s),
1342
- "onUpdate:modelValue": M[0] || (M[0] = (b) => se(s) ? s.value = b : null),
1352
+ "onUpdate:modelValue": P[0] || (P[0] = (b) => se(s) ? s.value = b : null),
1343
1353
  modelModifiers: { trim: !0 },
1344
1354
  class: B({ "is-invalid": T.value }),
1345
1355
  onKeydown: [
1346
- J(u, ["enter"]),
1356
+ J(d, ["enter"]),
1347
1357
  J(r, ["esc"])
1348
1358
  ]
1349
1359
  }, null, 8, ["modelValue", "class"])
@@ -1351,12 +1361,12 @@ const vt = { key: 0 }, bt = {
1351
1361
  f(m(V), {
1352
1362
  icon: "bi:x-circle",
1353
1363
  class: "mx-2 cursor-pointer",
1354
- onClick: d,
1355
- onKeydown: J(d, ["enter"]),
1364
+ onClick: u,
1365
+ onKeydown: J(u, ["enter"]),
1356
1366
  "data-cy": "clear-icon"
1357
1367
  })
1358
1368
  ])), [
1359
- [m($e), u]
1369
+ [m($e), d]
1360
1370
  ])
1361
1371
  ])) : (i(), v("div", {
1362
1372
  key: 1,
@@ -1395,7 +1405,7 @@ const vt = { key: 0 }, bt = {
1395
1405
  ], 8, ft);
1396
1406
  };
1397
1407
  }
1398
- }), Bt = ["href"], xl = /* @__PURE__ */ F({
1408
+ }), Bt = ["href"], fa = /* @__PURE__ */ F({
1399
1409
  __name: "ForgeNavbar",
1400
1410
  props: {
1401
1411
  severity: { default: "light" },
@@ -1412,7 +1422,7 @@ const vt = { key: 0 }, bt = {
1412
1422
  unstyled: { type: Boolean }
1413
1423
  },
1414
1424
  setup(e) {
1415
- const t = e, a = x(() => ({
1425
+ const t = e, l = k(() => ({
1416
1426
  root: () => ({
1417
1427
  class: [
1418
1428
  "navbar container-fluid navbar-expand-lg",
@@ -1439,10 +1449,10 @@ const vt = { key: 0 }, bt = {
1439
1449
  ]
1440
1450
  })
1441
1451
  }));
1442
- return (o, l) => {
1452
+ return (o, a) => {
1443
1453
  const n = Be;
1444
1454
  return i(), w(n, _({ ...t, ...o.$attrs }, {
1445
- pt: a.value,
1455
+ pt: l.value,
1446
1456
  "data-cy": "navbar"
1447
1457
  }), te({
1448
1458
  start: g(() => [
@@ -1452,7 +1462,7 @@ const vt = { key: 0 }, bt = {
1452
1462
  "data-cy": "logo"
1453
1463
  }, [
1454
1464
  $(o.$slots, "logo", {}, () => [
1455
- O(" Logo ")
1465
+ a[0] || (a[0] = O(" Logo "))
1456
1466
  ])
1457
1467
  ], 8, Bt)
1458
1468
  ]),
@@ -1468,16 +1478,16 @@ const vt = { key: 0 }, bt = {
1468
1478
  ]),
1469
1479
  _: 2
1470
1480
  }, [
1471
- Y(o.$slots, (u, r) => ({
1481
+ Y(o.$slots, (d, r) => ({
1472
1482
  name: r,
1473
- fn: g((d) => [
1474
- $(o.$slots, r, Q(ee(d)))
1483
+ fn: g((u) => [
1484
+ $(o.$slots, r, Q(ee(u)))
1475
1485
  ])
1476
1486
  }))
1477
1487
  ]), 1040, ["pt"]);
1478
1488
  };
1479
1489
  }
1480
- }), Ft = { class: "multiselect__caret" }, _t = ["checked"], St = /* @__PURE__ */ c("div", { class: "my-auto ms-1" }, "Toggle all", -1), Vt = ["data-cy"], Ct = ["checked"], Tt = { class: "my-auto ms-1" }, Mt = { class: "multiselect__tag d-inline-flex" }, Pt = { class: "my-auto" }, pe = /* @__PURE__ */ F({
1490
+ }), Ft = { class: "multiselect__caret" }, _t = ["checked"], St = ["data-cy"], Vt = ["checked"], Ct = { class: "my-auto ms-1" }, Tt = { class: "multiselect__tag d-inline-flex" }, Pt = { class: "my-auto" }, pe = /* @__PURE__ */ F({
1481
1491
  __name: "ForgeMultiSelect",
1482
1492
  props: {
1483
1493
  severity: { default: "primary" },
@@ -1489,37 +1499,37 @@ const vt = { key: 0 }, bt = {
1489
1499
  },
1490
1500
  emits: ["update:modelValue"],
1491
1501
  setup(e, { emit: t }) {
1492
- const a = e, o = (N, D) => {
1502
+ const l = e, o = (N, D) => {
1493
1503
  const U = {
1494
1504
  ...D,
1495
1505
  $isDisabled: D.$isDisabled ?? !1
1496
1506
  };
1497
1507
  N(U);
1498
- }, l = fe(), n = t, { errors: u, value: r, errorMessage: d } = K(() => a.name, void 0, {
1499
- initialValue: l.modelValue
1500
- }), p = I(!1), y = x(() => ({
1508
+ }, a = fe(), n = t, { errors: d, value: r, errorMessage: u } = K(() => l.name, void 0, {
1509
+ initialValue: a.modelValue
1510
+ }), p = I(!1), y = k(() => ({
1501
1511
  multiple: !0,
1502
1512
  label: "label",
1503
1513
  trackBy: "id",
1504
1514
  showPointer: !p.value,
1505
- placeholder: l.searchable === null || l.searchable ? "Search" : "Select",
1515
+ placeholder: a.searchable === null || a.searchable ? "Search" : "Select",
1506
1516
  allowEmpty: !0,
1507
1517
  selectValue: "",
1508
- closeOnSelect: !!(l.multiple === null || l.multiple),
1509
- clearOnSelect: !!(l.multiple === null || l.multiple),
1510
- searchable: !!(l.searchable === null || l.searchable) && l.modelValue.length === l.options.length,
1518
+ closeOnSelect: !!(a.multiple === null || a.multiple),
1519
+ clearOnSelect: !!(a.multiple === null || a.multiple),
1520
+ searchable: !!(a.searchable === null || a.searchable) && a.modelValue.length === a.options.length,
1511
1521
  async: !1,
1512
- ...l
1513
- })), s = x(() => `forge-multiselect-${a.severity}`), T = x(() => `multiselect__option ${p.value ? " multiselect__option--highlight" : ""} ${C.value ? " multiselect__option--selected" : ""}`), C = x(() => y.value && !(y.value.multiple || !a.showSelectAll || y.value.async) ? !1 : l.modelValue.length === l.options.length), M = x(() => u.value.length > 0), P = x(() => !!((l.allowEmpty == null || l.allowEmpty) && a.showClearSelection && (y.value.multiple ? l.modelValue.length > 0 : l.modelValue))), z = () => p.value = !0, b = () => p.value = !1, k = () => {
1522
+ ...a
1523
+ })), s = k(() => `forge-multiselect-${l.severity}`), T = k(() => `multiselect__option ${p.value ? " multiselect__option--highlight" : ""} ${C.value ? " multiselect__option--selected" : ""}`), C = k(() => y.value && !(y.value.multiple || !l.showSelectAll || y.value.async) ? !1 : a.modelValue.length === a.options.length), P = k(() => d.value.length > 0), M = k(() => !!((a.allowEmpty == null || a.allowEmpty) && l.showClearSelection && (y.value.multiple ? a.modelValue.length > 0 : a.modelValue))), z = () => p.value = !0, b = () => p.value = !1, x = () => {
1514
1524
  r.value = y.value.multiple ? [] : null, n("update:modelValue", r.value);
1515
1525
  }, G = (N) => {
1516
- n("update:modelValue", a.selectValue ? N.map((D) => D[a.selectValue]) : N);
1517
- }, Z = (N) => l.modelValue !== null ? l.modelValue.some((D) => y.value.selectValue ? N[a.selectValue] === D : N.id === D.id && N.label === D.label) : !1, oe = () => {
1518
- C.value ? k() : (r.value = [...l.options], n("update:modelValue", [...l.options]));
1526
+ n("update:modelValue", l.selectValue ? N.map((D) => D[l.selectValue]) : N);
1527
+ }, Z = (N) => a.modelValue !== null ? a.modelValue.some((D) => y.value.selectValue ? N[l.selectValue] === D : N.id === D.id && N.label === D.label) : !1, oe = () => {
1528
+ C.value ? x() : (r.value = [...a.options], n("update:modelValue", [...a.options]));
1519
1529
  };
1520
1530
  return (N, D) => (i(), v(L, null, [
1521
1531
  f(m(Fe), _(y.value, {
1522
- class: [s.value, M.value ? "is-invalid" : ""],
1532
+ class: [s.value, P.value ? "is-invalid" : ""],
1523
1533
  "data-cy": "multiselect",
1524
1534
  "onUpdate:modelValue": [
1525
1535
  G,
@@ -1529,11 +1539,11 @@ const vt = { key: 0 }, bt = {
1529
1539
  }), te({
1530
1540
  caret: g(({ toggle: U }) => [
1531
1541
  c("div", Ft, [
1532
- P.value ? (i(), w(m(V), {
1542
+ M.value ? (i(), w(m(V), {
1533
1543
  key: 0,
1534
1544
  icon: "bi:x",
1535
1545
  class: "my-auto text-black multiselect__clear",
1536
- onMousedown: D[0] || (D[0] = q((W) => k(), ["prevent", "stop"])),
1546
+ onMousedown: D[0] || (D[0] = q((W) => x(), ["prevent", "stop"])),
1537
1547
  "data-cy": "clear",
1538
1548
  height: "18px",
1539
1549
  width: "18px"
@@ -1546,12 +1556,12 @@ const vt = { key: 0 }, bt = {
1546
1556
  ])
1547
1557
  ]),
1548
1558
  tag: g(({ option: U, remove: W }) => [
1549
- c("div", Mt, [
1559
+ c("div", Tt, [
1550
1560
  c("div", Pt, h(U.label), 1),
1551
1561
  f(m(V), {
1552
1562
  icon: "bi:x",
1553
1563
  class: "my-auto multiselect__tag-icon",
1554
- onMousedown: q((Ra) => o(W, U), ["prevent", "stop"]),
1564
+ onMousedown: q((Al) => o(W, U), ["prevent", "stop"]),
1555
1565
  height: "18px",
1556
1566
  width: "18px"
1557
1567
  }, null, 8, ["onMousedown"])
@@ -1581,7 +1591,7 @@ const vt = { key: 0 }, bt = {
1581
1591
  type: "checkbox",
1582
1592
  class: "form-check-input px-2 py-2 rounded ms-2 cursor-pointer"
1583
1593
  }, null, 8, _t),
1584
- St
1594
+ D[2] || (D[2] = c("div", { class: "my-auto ms-1" }, "Toggle all", -1))
1585
1595
  ], 2)
1586
1596
  ], 32)
1587
1597
  ]),
@@ -1599,9 +1609,9 @@ const vt = { key: 0 }, bt = {
1599
1609
  name: "selected",
1600
1610
  type: "checkbox",
1601
1611
  class: "form-check-input px-2 py-2 rounded ms-2 cursor-pointer"
1602
- }, null, 8, Ct),
1603
- c("div", Tt, h(U[y.value.label]), 1)
1604
- ], 8, Vt)
1612
+ }, null, 8, Vt),
1613
+ c("div", Ct, h(U[y.value.label]), 1)
1614
+ ], 8, St)
1605
1615
  ]),
1606
1616
  key: "1"
1607
1617
  } : void 0
@@ -1609,22 +1619,22 @@ const vt = { key: 0 }, bt = {
1609
1619
  j(c("small", {
1610
1620
  "data-cy": "error",
1611
1621
  class: "invalid-feedback"
1612
- }, h(m(d)), 513), [
1613
- [H, M.value]
1622
+ }, h(m(u)), 513), [
1623
+ [H, P.value]
1614
1624
  ])
1615
1625
  ], 64));
1616
1626
  }
1617
- }), It = {
1627
+ }), Mt = {
1618
1628
  key: 0,
1619
1629
  class: "pl-1"
1620
- }, zt = { class: "border alternating-item-list" }, Ot = {
1630
+ }, It = { class: "border alternating-item-list" }, zt = {
1621
1631
  key: 0,
1622
1632
  class: "p-2 border-top border-bottom",
1623
1633
  "data-cy": "title"
1624
- }, Dt = { class: "d-inline-block" }, Ut = {
1634
+ }, Ot = { class: "d-inline-block" }, Dt = {
1625
1635
  key: 1,
1626
1636
  class: "p-2 item d-flex justify-content-between align-items-center"
1627
- }, kl = /* @__PURE__ */ F({
1637
+ }, ga = /* @__PURE__ */ F({
1628
1638
  __name: "ForgeMultiSelectPreview",
1629
1639
  props: /* @__PURE__ */ E({
1630
1640
  title: { default: "Selected Items" },
@@ -1639,60 +1649,60 @@ const vt = { key: 0 }, bt = {
1639
1649
  }),
1640
1650
  emits: ["update:modelValue"],
1641
1651
  setup(e) {
1642
- const t = e, a = A(e, "modelValue"), o = (l) => {
1643
- a.value = a.value.filter((n) => n.id !== l);
1652
+ const t = e, l = A(e, "modelValue"), o = (a) => {
1653
+ l.value = l.value.filter((n) => n.id !== a);
1644
1654
  };
1645
- return (l, n) => {
1646
- const u = R;
1655
+ return (a, n) => {
1656
+ const d = R;
1647
1657
  return i(), v("div", {
1648
- class: B(l.orientation === "column" ? "row" : ""),
1658
+ class: B(a.orientation === "column" ? "row" : ""),
1649
1659
  "data-cy": "multiselect-preview"
1650
1660
  }, [
1651
1661
  c("div", {
1652
- class: B(l.orientation === "row" ? "col-12 mb-1" : "col"),
1662
+ class: B(a.orientation === "row" ? "col-12 mb-1" : "col"),
1653
1663
  "data-cy": "multiselect-container"
1654
1664
  }, [
1655
1665
  f(pe, _({
1656
- modelValue: a.value,
1657
- "onUpdate:modelValue": n[0] || (n[0] = (r) => a.value = r),
1658
- "limit-text": () => `${a.value.length} selected`,
1666
+ modelValue: l.value,
1667
+ "onUpdate:modelValue": n[0] || (n[0] = (r) => l.value = r),
1668
+ "limit-text": () => `${l.value.length} selected`,
1659
1669
  options: t.options
1660
- }, { ...l.$attrs }), {
1661
- tag: g(() => [
1670
+ }, { ...a.$attrs }), {
1671
+ tag: g(() => n[1] || (n[1] = [
1662
1672
  O(h(""))
1663
- ]),
1673
+ ])),
1664
1674
  selection: g(() => [
1665
- a.value.length > 0 ? (i(), v("span", It, h(a.value.length) + " items selected", 1)) : S("", !0)
1675
+ l.value.length > 0 ? (i(), v("span", Mt, h(l.value.length) + " items selected", 1)) : S("", !0)
1666
1676
  ]),
1667
1677
  default: g(() => [
1668
- (i(!0), v(L, null, Y(l.$slots, (r, d) => $(l.$slots, d, { slot: d })), 256))
1678
+ (i(!0), v(L, null, Y(a.$slots, (r, u) => $(a.$slots, u, { slot: u })), 256))
1669
1679
  ]),
1670
1680
  _: 3
1671
1681
  }, 16, ["modelValue", "limit-text", "options"]),
1672
- $(l.$slots, "after-multi-select")
1682
+ $(a.$slots, "after-multi-select")
1673
1683
  ], 2),
1674
1684
  c("div", {
1675
- class: B(l.orientation === "row" ? "col-12" : "col"),
1685
+ class: B(a.orientation === "row" ? "col-12" : "col"),
1676
1686
  "data-cy": "options-preview"
1677
1687
  }, [
1678
1688
  c("div", {
1679
- style: ge({ height: l.height }),
1689
+ style: ge({ height: a.height }),
1680
1690
  class: "overflow-auto"
1681
1691
  }, [
1682
- c("div", zt, [
1683
- l.title ? (i(), v("div", Ot, h(l.title), 1)) : S("", !0),
1684
- (i(!0), v(L, null, Y(a.value, (r) => (i(), v("div", {
1692
+ c("div", It, [
1693
+ a.title ? (i(), v("div", zt, h(a.title), 1)) : S("", !0),
1694
+ (i(!0), v(L, null, Y(l.value, (r) => (i(), v("div", {
1685
1695
  key: r.id,
1686
1696
  class: "p-2 item d-flex justify-content-between align-items-center"
1687
1697
  }, [
1688
- $(l.$slots, "list-item", { item: r }, () => [
1689
- c("span", Dt, h(r.shortLabel ? r.shortLabel : r.label), 1)
1698
+ $(a.$slots, "list-item", { item: r }, () => [
1699
+ c("span", Ot, h(r.shortLabel ? r.shortLabel : r.label), 1)
1690
1700
  ]),
1691
- l.canRemoveItemFromPreview ? (i(), w(u, {
1701
+ a.canRemoveItemFromPreview ? (i(), w(d, {
1692
1702
  key: 0,
1693
1703
  link: "",
1694
1704
  class: "m-0 p-0 d-flex align-items-center",
1695
- onClick: (d) => o(r.id)
1705
+ onClick: (u) => o(r.id)
1696
1706
  }, {
1697
1707
  default: g(() => [
1698
1708
  f(m(V), {
@@ -1704,34 +1714,34 @@ const vt = { key: 0 }, bt = {
1704
1714
  _: 2
1705
1715
  }, 1032, ["onClick"])) : S("", !0)
1706
1716
  ]))), 128)),
1707
- a.value.length === 0 ? (i(), v("div", Ut, h(t.optionsPreviewEmptyText), 1)) : S("", !0)
1717
+ l.value.length === 0 ? (i(), v("div", Dt, h(t.optionsPreviewEmptyText), 1)) : S("", !0)
1708
1718
  ])
1709
1719
  ], 4)
1710
1720
  ], 2)
1711
1721
  ], 2);
1712
1722
  };
1713
1723
  }
1714
- }), At = { class: "d-flex justify-content-between pb-2" }, Nt = {
1724
+ }), Ut = { class: "d-flex justify-content-between pb-2" }, At = {
1715
1725
  "data-cy": "title",
1716
1726
  class: "my-auto"
1717
- }, Et = {
1727
+ }, Nt = {
1718
1728
  "data-cy": "slot",
1719
1729
  class: "d-flex align-items-center"
1720
- }, $l = /* @__PURE__ */ F({
1730
+ }, ha = /* @__PURE__ */ F({
1721
1731
  __name: "ForgePageHeader",
1722
1732
  props: {
1723
1733
  title: {}
1724
1734
  },
1725
1735
  setup(e) {
1726
1736
  const t = e;
1727
- return (a, o) => (i(), v("div", At, [
1728
- c("h3", Nt, h(t.title), 1),
1729
- c("div", Et, [
1730
- $(a.$slots, "default")
1737
+ return (l, o) => (i(), v("div", Ut, [
1738
+ c("h3", At, h(t.title), 1),
1739
+ c("div", Nt, [
1740
+ $(l.$slots, "default")
1731
1741
  ])
1732
1742
  ]));
1733
1743
  }
1734
- }), Lt = { class: "d-flex" }, Rt = { "data-cy": "before-slot" }, jt = { class: "position-relative w-100" }, Ht = { "data-cy": "after-slot" }, ye = /* @__PURE__ */ F({
1744
+ }), Et = { class: "d-flex" }, Lt = { "data-cy": "before-slot" }, Rt = { class: "position-relative w-100" }, jt = { "data-cy": "after-slot" }, ye = /* @__PURE__ */ F({
1735
1745
  __name: "ForgeDatepicker",
1736
1746
  props: /* @__PURE__ */ E({
1737
1747
  severity: { default: "primary" },
@@ -1804,11 +1814,11 @@ const vt = { key: 0 }, bt = {
1804
1814
  }),
1805
1815
  emits: ["update:modelValue"],
1806
1816
  setup(e) {
1807
- const t = e, a = A(e, "modelValue"), { errors: o, errorMessage: l, handleChange: n, handleBlur: u, setValue: r } = K(() => t.name, void 0, {
1808
- initialValue: a.value
1809
- }), d = () => {
1810
- r(null), a.value = null;
1811
- }, p = x(() => o.value.length > 0), y = x(() => ({
1817
+ const t = e, l = A(e, "modelValue"), { errors: o, errorMessage: a, handleChange: n, handleBlur: d, setValue: r } = K(() => t.name, void 0, {
1818
+ initialValue: l.value
1819
+ }), u = () => {
1820
+ r(null), l.value = null;
1821
+ }, p = k(() => o.value.length > 0), y = k(() => ({
1812
1822
  day: ({ context: s }) => ({
1813
1823
  class: [
1814
1824
  `text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
@@ -1902,19 +1912,19 @@ const vt = { key: 0 }, bt = {
1902
1912
  return (s, T) => {
1903
1913
  const C = _e;
1904
1914
  return i(), v(L, null, [
1905
- c("div", Lt, [
1906
- c("span", Rt, [
1915
+ c("div", Et, [
1916
+ c("span", Lt, [
1907
1917
  $(s.$slots, "before")
1908
1918
  ]),
1909
- c("div", jt, [
1919
+ c("div", Rt, [
1910
1920
  f(C, _({ ...t, ...s.$attrs }, {
1911
1921
  pt: y.value,
1912
- modelValue: a.value,
1922
+ modelValue: l.value,
1913
1923
  "onUpdate:modelValue": [
1914
- T[0] || (T[0] = (M) => a.value = M),
1924
+ T[0] || (T[0] = (P) => l.value = P),
1915
1925
  m(n)
1916
1926
  ],
1917
- onBlur: m(u),
1927
+ onBlur: m(d),
1918
1928
  "input-class": { "is-invalid": p.value }
1919
1929
  }), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "onBlur", "input-class"]),
1920
1930
  j(f(m(V), {
@@ -1927,38 +1937,38 @@ const vt = { key: 0 }, bt = {
1927
1937
  j(f(m(V), {
1928
1938
  "data-cy": "icon",
1929
1939
  icon: "bi:x",
1930
- onClick: d,
1940
+ onClick: u,
1931
1941
  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"])
1932
1942
  }, null, 8, ["class"]), [
1933
1943
  [H, t.modelValue]
1934
1944
  ])
1935
1945
  ]),
1936
- c("span", Ht, [
1946
+ c("span", jt, [
1937
1947
  $(s.$slots, "after")
1938
1948
  ])
1939
1949
  ]),
1940
1950
  j(c("small", {
1941
1951
  "data-cy": "error",
1942
1952
  class: "text-invalid"
1943
- }, h(m(l)), 513), [
1953
+ }, h(m(a)), 513), [
1944
1954
  [H, p.value]
1945
1955
  ])
1946
1956
  ], 64);
1947
1957
  };
1948
1958
  }
1949
- }), Bl = /* @__PURE__ */ F({
1959
+ }), wa = /* @__PURE__ */ F({
1950
1960
  __name: "ForgeRemainingCharacters",
1951
1961
  props: {
1952
1962
  maxCount: { default: 300 },
1953
1963
  currentCount: {}
1954
1964
  },
1955
1965
  setup(e) {
1956
- const t = e, a = x(() => t.maxCount - t.currentCount);
1957
- return (o, l) => (i(), v("div", {
1958
- class: B(a.value < 0 ? "text-danger" : "")
1959
- }, "Remaining characters: " + h(a.value), 3));
1966
+ const t = e, l = k(() => t.maxCount - t.currentCount);
1967
+ return (o, a) => (i(), v("div", {
1968
+ class: B(l.value < 0 ? "text-danger" : "")
1969
+ }, "Remaining characters: " + h(l.value), 3));
1960
1970
  }
1961
- }), qt = /* @__PURE__ */ c("hr", null, null, -1), Yt = { class: "d-flex justify-content-between" }, Fl = /* @__PURE__ */ F({
1971
+ }), Ht = { class: "d-flex justify-content-between" }, xa = /* @__PURE__ */ F({
1962
1972
  __name: "ForgeForm",
1963
1973
  props: {
1964
1974
  onSubmit: {},
@@ -1970,25 +1980,25 @@ const vt = { key: 0 }, bt = {
1970
1980
  hideCancel: { type: Boolean, default: !1 }
1971
1981
  },
1972
1982
  setup(e) {
1973
- const t = e, a = I(!1), o = I({
1983
+ const t = e, l = I(!1), o = I({
1974
1984
  hasError: !1,
1975
1985
  message: ""
1976
1986
  });
1977
- async function l() {
1978
- a.value = !0, o.value.hasError = !1;
1987
+ async function a() {
1988
+ l.value = !0, o.value.hasError = !1;
1979
1989
  try {
1980
1990
  await t.onSubmit();
1981
1991
  } catch (n) {
1982
1992
  o.value.hasError = !0, n.message && (o.value.message = n.message);
1983
1993
  }
1984
- a.value = !1;
1994
+ l.value = !1;
1985
1995
  }
1986
- return (n, u) => {
1996
+ return (n, d) => {
1987
1997
  const r = R;
1988
1998
  return i(), v("form", _(n.$attrs, {
1989
1999
  novalidate: "",
1990
2000
  class: "position-relative shadow-sm border p-4 bg-white",
1991
- onSubmit: q(l, ["prevent"])
2001
+ onSubmit: q(a, ["prevent"])
1992
2002
  }), [
1993
2003
  n.hideTitle ? S("", !0) : (i(), v(L, { key: 0 }, [
1994
2004
  $(n.$slots, "title", {}, () => [
@@ -1997,9 +2007,9 @@ const vt = { key: 0 }, bt = {
1997
2007
  "data-cy": "form-title"
1998
2008
  }, h(n.title), 3)
1999
2009
  ]),
2000
- qt
2010
+ d[1] || (d[1] = c("hr", null, null, -1))
2001
2011
  ], 64)),
2002
- o.value.hasError ? (i(), w(le, {
2012
+ o.value.hasError ? (i(), w(ae, {
2003
2013
  key: 1,
2004
2014
  severity: "danger",
2005
2015
  "data-cy": "error"
@@ -2014,7 +2024,7 @@ const vt = { key: 0 }, bt = {
2014
2024
  _: 3
2015
2025
  })) : S("", !0),
2016
2026
  $(n.$slots, "default"),
2017
- c("div", Yt, [
2027
+ c("div", Ht, [
2018
2028
  $(n.$slots, "cancel", {}, () => [
2019
2029
  n.hideCancel ? S("", !0) : (i(), w(r, {
2020
2030
  key: 0,
@@ -2022,7 +2032,7 @@ const vt = { key: 0 }, bt = {
2022
2032
  type: "reset",
2023
2033
  severity: "secondary",
2024
2034
  outlined: "",
2025
- onClick: u[0] || (u[0] = (d) => n.$emit("cancel"))
2035
+ onClick: d[0] || (d[0] = (u) => n.$emit("cancel"))
2026
2036
  }, {
2027
2037
  default: g(() => [
2028
2038
  O(h(n.cancelText), 1)
@@ -2030,7 +2040,7 @@ const vt = { key: 0 }, bt = {
2030
2040
  _: 1
2031
2041
  }))
2032
2042
  ]),
2033
- $(n.$slots, "submit", { submit: l }, () => [
2043
+ $(n.$slots, "submit", { submit: a }, () => [
2034
2044
  f(r, {
2035
2045
  "data-cy": "submit-btn",
2036
2046
  type: "submit",
@@ -2044,20 +2054,21 @@ const vt = { key: 0 }, bt = {
2044
2054
  })
2045
2055
  ])
2046
2056
  ]),
2047
- a.value ? (i(), w(me, {
2057
+ l.value ? (i(), w(me, {
2048
2058
  key: 2,
2049
2059
  "data-cy": "loading-spinner"
2050
2060
  })) : S("", !0)
2051
2061
  ], 16);
2052
2062
  };
2053
2063
  }
2054
- }), Gt = {
2064
+ }), qt = {
2055
2065
  key: 1,
2056
2066
  class: "d-flex flex-column w-100"
2057
- }, Kt = ["for"], _l = /* @__PURE__ */ F({
2067
+ }, Yt = ["for"], ka = /* @__PURE__ */ F({
2058
2068
  __name: "ForgeFormField",
2059
2069
  props: /* @__PURE__ */ E({
2060
2070
  name: {},
2071
+ fieldLabelPosition: { default: "top" },
2061
2072
  fieldLabel: {},
2062
2073
  type: { default: "text" },
2063
2074
  mask: { default: "" },
@@ -2068,92 +2079,97 @@ const vt = { key: 0 }, bt = {
2068
2079
  }),
2069
2080
  emits: ["update:modelValue"],
2070
2081
  setup(e) {
2071
- const t = A(e, "modelValue"), a = e, o = (y) => {
2072
- a.type == "number" ? r(y.value) : r(y);
2073
- }, { errors: l, value: n, errorMessage: u, handleChange: r, handleBlur: d } = K(() => a.name, void 0, {
2082
+ const t = A(e, "modelValue"), l = e, o = (y) => {
2083
+ l.type == "number" ? r(y.value) : r(y);
2084
+ }, { errors: a, value: n, errorMessage: d, handleChange: r, handleBlur: u } = K(() => l.name, void 0, {
2074
2085
  initialValue: t.value
2075
- }), p = x(() => l.value.length > 0);
2086
+ }), p = k(() => a.value.length > 0);
2076
2087
  return de(() => n.value, (y) => {
2077
2088
  t.value = y;
2078
2089
  }, { immediate: !0 }), (y, s) => {
2079
- const T = Ve, C = Se, M = ie, P = ae, z = pe, b = ye;
2080
- return a.type === "checkbox" ? (i(), w(ct, _({
2090
+ const T = Ve, C = Se, P = ie, M = le, z = pe, b = ye;
2091
+ return l.type === "checkbox" ? (i(), w(ct, _({
2081
2092
  key: 0,
2082
- id: a.name,
2083
- label: a.fieldLabel
2093
+ id: l.name,
2094
+ label: l.fieldLabel
2084
2095
  }, y.$attrs, {
2085
- name: a.name,
2096
+ name: l.name,
2086
2097
  modelValue: t.value,
2087
- "onUpdate:modelValue": s[0] || (s[0] = (k) => t.value = k)
2088
- }), null, 16, ["id", "label", "name", "modelValue"])) : (i(), v("div", Gt, [
2089
- c("label", {
2090
- for: a.name,
2091
- class: "mb-1"
2092
- }, h(a.fieldLabel), 9, Kt),
2093
- a.type === "number" ? (i(), w(m(ue), _({
2094
- key: 0,
2095
- id: a.name
2096
- }, y.$attrs, {
2097
- placeholder: a.placeholder,
2098
- "input-class": { "is-invalid": p.value },
2099
- class: { "is-invalid": p.value },
2100
- modelValue: t.value,
2101
- "onUpdate:modelValue": s[1] || (s[1] = (k) => t.value = k),
2102
- onInput: o
2103
- }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : a.type === "textarea" ? (i(), w(T, _({
2104
- key: 1,
2105
- id: a.name
2106
- }, y.$attrs, {
2107
- placeholder: a.placeholder,
2108
- class: { "is-invalid": p.value },
2109
- modelValue: t.value,
2110
- "onUpdate:modelValue": s[2] || (s[2] = (k) => t.value = k),
2111
- onInput: o,
2112
- onBlur: m(d)
2113
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "mask" ? (i(), w(C, _({
2114
- key: 2,
2115
- id: a.name
2116
- }, y.$attrs, {
2117
- placeholder: a.placeholder,
2118
- mask: a.mask,
2119
- class: { "is-invalid": p.value },
2120
- modelValue: t.value,
2121
- "onUpdate:modelValue": s[3] || (s[3] = (k) => t.value = k),
2122
- onComplete: o,
2123
- onBlur: m(d)
2124
- }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : a.type === "text" ? (i(), w(M, _({
2125
- key: 3,
2126
- id: a.name
2127
- }, y.$attrs, {
2128
- placeholder: a.placeholder,
2129
- class: { "is-invalid": p.value },
2130
- modelValue: t.value,
2131
- "onUpdate:modelValue": s[4] || (s[4] = (k) => t.value = k),
2132
- onInput: o,
2133
- onBlur: m(d)
2134
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : a.type === "select" ? (i(), w(P, _({ key: 4 }, { ...a, ...y.$attrs }, {
2135
- modelValue: t.value,
2136
- "onUpdate:modelValue": s[5] || (s[5] = (k) => t.value = k),
2137
- class: { "is-invalid": p.value }
2138
- }), null, 16, ["modelValue", "class"])) : a.type === "multiselect" ? (i(), w(z, _({ key: 5 }, { ...a, ...y.$attrs }, {
2139
- modelValue: t.value,
2140
- "onUpdate:modelValue": s[6] || (s[6] = (k) => t.value = k),
2141
- class: { "is-invalid": p.value }
2142
- }), null, 16, ["modelValue", "class"])) : a.type === "datepicker" ? (i(), w(b, _({ key: 6 }, { ...a, ...y.$attrs }, {
2143
- modelValue: t.value,
2144
- "onUpdate:modelValue": s[7] || (s[7] = (k) => t.value = k),
2145
- class: { "is-invalid": p.value }
2146
- }), null, 16, ["modelValue", "class"])) : S("", !0),
2098
+ "onUpdate:modelValue": s[0] || (s[0] = (x) => t.value = x)
2099
+ }), null, 16, ["id", "label", "name", "modelValue"])) : (i(), v("div", qt, [
2100
+ c("div", {
2101
+ "data-cy": "input-wrapper",
2102
+ class: B(["d-flex", l.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
2103
+ }, [
2104
+ c("label", {
2105
+ for: l.name,
2106
+ class: B(l.fieldLabelPosition === "top" ? "mb-1" : "me-2")
2107
+ }, h(l.fieldLabel), 11, Yt),
2108
+ l.type === "number" ? (i(), w(m(ue), _({
2109
+ key: 0,
2110
+ id: l.name
2111
+ }, y.$attrs, {
2112
+ placeholder: l.placeholder,
2113
+ "input-class": { "is-invalid": p.value },
2114
+ class: { "is-invalid": p.value },
2115
+ modelValue: t.value,
2116
+ "onUpdate:modelValue": s[1] || (s[1] = (x) => t.value = x),
2117
+ onInput: o
2118
+ }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : l.type === "textarea" ? (i(), w(T, _({
2119
+ key: 1,
2120
+ id: l.name
2121
+ }, y.$attrs, {
2122
+ placeholder: l.placeholder,
2123
+ class: { "is-invalid": p.value },
2124
+ modelValue: t.value,
2125
+ "onUpdate:modelValue": s[2] || (s[2] = (x) => t.value = x),
2126
+ onInput: o,
2127
+ onBlur: m(u)
2128
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "mask" ? (i(), w(C, _({
2129
+ key: 2,
2130
+ id: l.name
2131
+ }, y.$attrs, {
2132
+ placeholder: l.placeholder,
2133
+ mask: l.mask,
2134
+ class: { "is-invalid": p.value },
2135
+ modelValue: t.value,
2136
+ "onUpdate:modelValue": s[3] || (s[3] = (x) => t.value = x),
2137
+ onComplete: o,
2138
+ onBlur: m(u)
2139
+ }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : l.type === "text" ? (i(), w(P, _({
2140
+ key: 3,
2141
+ id: l.name
2142
+ }, y.$attrs, {
2143
+ placeholder: l.placeholder,
2144
+ class: { "is-invalid": p.value },
2145
+ modelValue: t.value,
2146
+ "onUpdate:modelValue": s[4] || (s[4] = (x) => t.value = x),
2147
+ onInput: o,
2148
+ onBlur: m(u)
2149
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "select" ? (i(), w(M, _({ key: 4 }, { ...l, ...y.$attrs }, {
2150
+ modelValue: t.value,
2151
+ "onUpdate:modelValue": s[5] || (s[5] = (x) => t.value = x),
2152
+ class: { "is-invalid": p.value }
2153
+ }), null, 16, ["modelValue", "class"])) : l.type === "multiselect" ? (i(), w(z, _({ key: 5 }, { ...l, ...y.$attrs }, {
2154
+ modelValue: t.value,
2155
+ "onUpdate:modelValue": s[6] || (s[6] = (x) => t.value = x),
2156
+ class: { "is-invalid": p.value }
2157
+ }), null, 16, ["modelValue", "class"])) : l.type === "datepicker" ? (i(), w(b, _({ key: 6 }, { ...l, ...y.$attrs }, {
2158
+ modelValue: t.value,
2159
+ "onUpdate:modelValue": s[7] || (s[7] = (x) => t.value = x),
2160
+ class: { "is-invalid": p.value }
2161
+ }), null, 16, ["modelValue", "class"])) : S("", !0)
2162
+ ], 2),
2147
2163
  j(c("small", {
2148
2164
  "data-cy": "error",
2149
2165
  class: "invalid-feedback"
2150
- }, h(m(u)), 513), [
2151
- [H, p.value && a.type !== "multiselect" && a.type !== "datepicker"]
2166
+ }, h(m(d)), 513), [
2167
+ [H, p.value && l.type !== "multiselect" && l.type !== "datepicker"]
2152
2168
  ])
2153
2169
  ]));
2154
2170
  };
2155
2171
  }
2156
- }), Sl = /* @__PURE__ */ F({
2172
+ }), $a = /* @__PURE__ */ F({
2157
2173
  __name: "ForgeChips",
2158
2174
  props: {
2159
2175
  chipSeverity: { default: "primary" },
@@ -2180,9 +2196,9 @@ const vt = { key: 0 }, bt = {
2180
2196
  unstyled: { type: Boolean }
2181
2197
  },
2182
2198
  setup(e) {
2183
- const t = e, { errors: a, value: o, errorMessage: l } = K(() => t.name, void 0, {
2199
+ const t = e, { errors: l, value: o, errorMessage: a } = K(() => t.name, void 0, {
2184
2200
  initialValue: t.modelValue
2185
- }), n = x(() => a.value.length > 0), u = x(() => ({
2201
+ }), n = k(() => l.value.length > 0), d = k(() => ({
2186
2202
  inputtoken: "list-unstyled",
2187
2203
  input: "border-0",
2188
2204
  container: ({ props: r }) => ({
@@ -2213,13 +2229,13 @@ const vt = { key: 0 }, bt = {
2213
2229
  ]
2214
2230
  }
2215
2231
  }));
2216
- return (r, d) => {
2232
+ return (r, u) => {
2217
2233
  const p = Ce;
2218
2234
  return i(), v(L, null, [
2219
2235
  f(p, _({ ...t, ...r.$attrs }, {
2220
- pt: u.value,
2236
+ pt: d.value,
2221
2237
  "model-value": m(o),
2222
- "onUpdate:modelValue": d[0] || (d[0] = (y) => se(o) ? o.value = y : null)
2238
+ "onUpdate:modelValue": u[0] || (u[0] = (y) => se(o) ? o.value = y : null)
2223
2239
  }), {
2224
2240
  removetokenicon: g(({ removeCallback: y }) => [
2225
2241
  j(f(m(V), {
@@ -2235,13 +2251,13 @@ const vt = { key: 0 }, bt = {
2235
2251
  j(c("small", {
2236
2252
  "data-cy": "error",
2237
2253
  class: "text-invalid"
2238
- }, h(m(l)), 513), [
2254
+ }, h(m(a)), 513), [
2239
2255
  [H, n.value]
2240
2256
  ])
2241
2257
  ], 64);
2242
2258
  };
2243
2259
  }
2244
- }), Wt = /* @__PURE__ */ F({
2260
+ }), Gt = /* @__PURE__ */ F({
2245
2261
  __name: "ForgeProgressBar",
2246
2262
  props: {
2247
2263
  severity: { default: "primary" },
@@ -2256,7 +2272,7 @@ const vt = { key: 0 }, bt = {
2256
2272
  unstyled: { type: Boolean }
2257
2273
  },
2258
2274
  setup(e) {
2259
- const t = e, a = x(() => t.striped ? "progress-bar-striped" : null), o = x(() => t.animate ? "progress-bar-animated" : null), l = x(() => {
2275
+ const t = e, l = k(() => t.striped ? "progress-bar-striped" : null), o = k(() => t.animate ? "progress-bar-animated" : null), a = k(() => {
2260
2276
  switch (t.severity) {
2261
2277
  case "brand":
2262
2278
  return "bg-brand";
@@ -2275,25 +2291,25 @@ const vt = { key: 0 }, bt = {
2275
2291
  default:
2276
2292
  return "bg-primary";
2277
2293
  }
2278
- }), n = x(() => ({
2294
+ }), n = k(() => ({
2279
2295
  root: {
2280
2296
  style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
2281
2297
  },
2282
2298
  value: {
2283
- class: [l.value, a.value, o.value]
2299
+ class: [a.value, l.value, o.value]
2284
2300
  }
2285
2301
  }));
2286
- return (u, r) => {
2287
- const d = Te;
2288
- return i(), w(d, _({ ...u.$attrs, ...t }, { pt: n.value }), {
2302
+ return (d, r) => {
2303
+ const u = Te;
2304
+ return i(), w(u, _({ ...d.$attrs, ...t }, { pt: n.value }), {
2289
2305
  default: g(() => [
2290
- $(u.$slots, "default")
2306
+ $(d.$slots, "default")
2291
2307
  ]),
2292
2308
  _: 3
2293
2309
  }, 16, ["pt"]);
2294
2310
  };
2295
2311
  }
2296
- }), Zt = { class: "value text-white w-100 text-center" }, Vl = /* @__PURE__ */ F({
2312
+ }), Kt = { class: "value text-white w-100 text-center" }, Ba = /* @__PURE__ */ F({
2297
2313
  __name: "ForgeStatWidget",
2298
2314
  props: {
2299
2315
  size: { default: "md" },
@@ -2301,18 +2317,18 @@ const vt = { key: 0 }, bt = {
2301
2317
  },
2302
2318
  setup(e) {
2303
2319
  const t = e;
2304
- return (a, o) => (i(), v("div", _(a.$attrs, {
2320
+ return (l, o) => (i(), v("div", _(l.$attrs, {
2305
2321
  class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
2306
2322
  }), [
2307
- c("span", Zt, [
2308
- $(a.$slots, "default")
2323
+ c("span", Kt, [
2324
+ $(l.$slots, "default")
2309
2325
  ])
2310
2326
  ], 16));
2311
2327
  }
2312
- }), Jt = {
2328
+ }), Wt = {
2313
2329
  class: "d-flex flex-column align-items-center",
2314
2330
  "data-cy": "stepper"
2315
- }, Xt = { class: "d-flex align-items-center justify-content-center w-100" }, Cl = /* @__PURE__ */ F({
2331
+ }, Zt = { class: "d-flex align-items-center justify-content-center w-100" }, Fa = /* @__PURE__ */ F({
2316
2332
  __name: "ForgeStepper",
2317
2333
  props: {
2318
2334
  currentStep: { default: 0 },
@@ -2328,21 +2344,21 @@ const vt = { key: 0 }, bt = {
2328
2344
  },
2329
2345
  emits: ["update:currentStep"],
2330
2346
  setup(e, { emit: t }) {
2331
- const a = t, o = e, l = I(o.currentStep), n = () => {
2347
+ const l = t, o = e, a = I(o.currentStep), n = () => {
2332
2348
  do
2333
- l.value--;
2334
- while (o.model[l.value].disabled);
2335
- a("update:currentStep", l.value);
2336
- }, u = () => {
2337
- if (l.value < o.model.length - 1)
2349
+ a.value--;
2350
+ while (o.model[a.value].disabled);
2351
+ l("update:currentStep", a.value);
2352
+ }, d = () => {
2353
+ if (a.value < o.model.length - 1)
2338
2354
  do
2339
- l.value++;
2340
- while (o.model[l.value].disabled);
2341
- a("update:currentStep", l.value);
2342
- }, r = x(() => {
2355
+ a.value++;
2356
+ while (o.model[a.value].disabled);
2357
+ l("update:currentStep", a.value);
2358
+ }, r = k(() => {
2343
2359
  const p = o.model.findIndex((y) => !y.disabled);
2344
- return !(p < l.value && p > -1);
2345
- }), d = x(() => ({
2360
+ return !(p < a.value && p > -1);
2361
+ }), u = k(() => ({
2346
2362
  menuitem: (p) => ({
2347
2363
  class: [{
2348
2364
  "cursor-pointer": !p.context.disabled
@@ -2353,13 +2369,13 @@ const vt = { key: 0 }, bt = {
2353
2369
  "d-flex align-items-center justify-content-center mb-2 step",
2354
2370
  {
2355
2371
  inactive: p.context.disabled,
2356
- "bg-primary text-white": p.context.index === l.value && (o.severity === void 0 || o.severity === "primary"),
2357
- "bg-brand text-white": p.context.index === l.value && o.severity === "brand",
2358
- "bg-secondary text-white": p.context.index === l.value && o.severity === "secondary",
2359
- "bg-success text-white": p.context.index === l.value && o.severity === "success",
2360
- "bg-warning text-white": p.context.index === l.value && o.severity === "warning",
2361
- "bg-danger text-white": p.context.index === l.value && o.severity === "danger",
2362
- "bg-info text-white": p.context.index === l.value && o.severity === "info"
2372
+ "bg-primary text-white": p.context.index === a.value && (o.severity === void 0 || o.severity === "primary"),
2373
+ "bg-brand text-white": p.context.index === a.value && o.severity === "brand",
2374
+ "bg-secondary text-white": p.context.index === a.value && o.severity === "secondary",
2375
+ "bg-success text-white": p.context.index === a.value && o.severity === "success",
2376
+ "bg-warning text-white": p.context.index === a.value && o.severity === "warning",
2377
+ "bg-danger text-white": p.context.index === a.value && o.severity === "danger",
2378
+ "bg-info text-white": p.context.index === a.value && o.severity === "info"
2363
2379
  }
2364
2380
  ]
2365
2381
  }),
@@ -2367,21 +2383,21 @@ const vt = { key: 0 }, bt = {
2367
2383
  class: [
2368
2384
  "h5",
2369
2385
  {
2370
- "border-bottom border-2 border-primary": p.context.index === l.value && (o.severity === void 0 || o.severity === "primary"),
2371
- "border-bottom border-2 border-brand": p.context.index === l.value && o.severity === "brand",
2372
- "border-bottom border-2 border-secondary": p.context.index === l.value && o.severity === "secondary",
2373
- "border-bottom border-2 border-success": p.context.index === l.value && o.severity === "success",
2374
- "border-bottom border-2 border-warning": p.context.index === l.value && o.severity === "warning",
2375
- "border-bottom border-2 border-danger": p.context.index === l.value && o.severity === "danger",
2376
- "border-bottom border-2 border-info": p.context.index === l.value && o.severity === "info"
2386
+ "border-bottom border-2 border-primary": p.context.index === a.value && (o.severity === void 0 || o.severity === "primary"),
2387
+ "border-bottom border-2 border-brand": p.context.index === a.value && o.severity === "brand",
2388
+ "border-bottom border-2 border-secondary": p.context.index === a.value && o.severity === "secondary",
2389
+ "border-bottom border-2 border-success": p.context.index === a.value && o.severity === "success",
2390
+ "border-bottom border-2 border-warning": p.context.index === a.value && o.severity === "warning",
2391
+ "border-bottom border-2 border-danger": p.context.index === a.value && o.severity === "danger",
2392
+ "border-bottom border-2 border-info": p.context.index === a.value && o.severity === "info"
2377
2393
  }
2378
2394
  ]
2379
2395
  })
2380
2396
  }));
2381
2397
  return (p, y) => {
2382
- const s = R, T = Pe, C = Me;
2383
- return i(), v("div", Jt, [
2384
- c("div", Xt, [
2398
+ const s = R, T = Me, C = Pe;
2399
+ return i(), v("div", Wt, [
2400
+ c("div", Zt, [
2385
2401
  f(s, {
2386
2402
  severity: o.severity,
2387
2403
  disabled: r.value,
@@ -2398,33 +2414,33 @@ const vt = { key: 0 }, bt = {
2398
2414
  _: 1
2399
2415
  }, 8, ["severity", "disabled"]),
2400
2416
  f(T, {
2401
- "active-step": l.value,
2402
- "onUpdate:activeStep": y[0] || (y[0] = (M) => l.value = M),
2417
+ "active-step": a.value,
2418
+ "onUpdate:activeStep": y[0] || (y[0] = (P) => a.value = P),
2403
2419
  model: o.model,
2404
- pt: d.value,
2420
+ pt: u.value,
2405
2421
  readonly: !1
2406
2422
  }, null, 8, ["active-step", "model", "pt"])
2407
2423
  ]),
2408
2424
  f(C, { class: "m-4" }),
2409
- (i(!0), v(L, null, Y(o.model, (M, P) => (i(), v("div", {
2410
- key: P,
2425
+ (i(!0), v(L, null, Y(o.model, (P, M) => (i(), v("div", {
2426
+ key: M,
2411
2427
  class: "w-100"
2412
2428
  }, [
2413
- P === l.value ? $(p.$slots, M.key ?? M.label, {
2429
+ M === a.value ? $(p.$slots, P.key ?? P.label, {
2414
2430
  key: 0,
2415
- nextStep: u,
2431
+ nextStep: d,
2416
2432
  previousStep: n
2417
2433
  }, () => [
2418
- f(le, {
2434
+ f(ae, {
2419
2435
  severity: "info",
2420
2436
  "data-cy": "alert"
2421
2437
  }, {
2422
2438
  default: g(() => [
2423
- O(" Please add Slot Content for the key " + h(M.key ?? M.label) + " ", 1),
2439
+ O(" Please add Slot Content for the key " + h(P.key ?? P.label) + " ", 1),
2424
2440
  f(s, {
2425
2441
  severity: "primary",
2426
2442
  label: "Next",
2427
- onClick: u,
2443
+ onClick: d,
2428
2444
  class: "ms-2"
2429
2445
  })
2430
2446
  ]),
@@ -2435,7 +2451,7 @@ const vt = { key: 0 }, bt = {
2435
2451
  ]);
2436
2452
  };
2437
2453
  }
2438
- }), Qt = { class: "p-4 text-wrap w-100" }, ea = { class: "p-4 text-wrap w-100" }, Tl = /* @__PURE__ */ F({
2454
+ }), Jt = { class: "p-4 text-wrap w-100" }, Xt = { class: "p-4 text-wrap w-100" }, _a = /* @__PURE__ */ F({
2439
2455
  __name: "ForgeTile",
2440
2456
  props: {
2441
2457
  severity: { default: "primary" },
@@ -2444,20 +2460,20 @@ const vt = { key: 0 }, bt = {
2444
2460
  selected: { type: Boolean, default: !1 }
2445
2461
  },
2446
2462
  setup(e) {
2447
- const t = e, a = x(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), o = x(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
2448
- return (l, n) => {
2449
- const u = R;
2450
- return t.clickable ? (i(), w(u, {
2463
+ const t = e, l = k(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), o = k(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`);
2464
+ return (a, n) => {
2465
+ const d = R;
2466
+ return t.clickable ? (i(), w(d, {
2451
2467
  key: 0,
2452
- class: B(["d-flex w-100 p-0 text-body", a.value]),
2468
+ class: B(["d-flex w-100 p-0 text-body", l.value]),
2453
2469
  severity: t.severity,
2454
2470
  unstyled: "",
2455
2471
  "data-cy": "button-tile"
2456
2472
  }, {
2457
2473
  default: g(() => [
2458
- c("div", Qt, [
2459
- $(l.$slots, "default", {}, () => [
2460
- O("Tile Content")
2474
+ c("div", Jt, [
2475
+ $(a.$slots, "default", {}, () => [
2476
+ n[0] || (n[0] = O("Tile Content"))
2461
2477
  ])
2462
2478
  ])
2463
2479
  ]),
@@ -2467,9 +2483,9 @@ const vt = { key: 0 }, bt = {
2467
2483
  class: B(["d-flex w-100", o.value]),
2468
2484
  "data-cy": "tile"
2469
2485
  }, [
2470
- c("div", ea, [
2471
- $(l.$slots, "default", {}, () => [
2472
- O("Tile Content")
2486
+ c("div", Xt, [
2487
+ $(a.$slots, "default", {}, () => [
2488
+ n[1] || (n[1] = O("Tile Content"))
2473
2489
  ])
2474
2490
  ])
2475
2491
  ], 2));
@@ -2479,13 +2495,13 @@ const vt = { key: 0 }, bt = {
2479
2495
  function X(e, t) {
2480
2496
  return e > 1 ? `${t}s` : t;
2481
2497
  }
2482
- const ta = {
2498
+ const Qt = {
2483
2499
  class: "d-flex justify-content-start align-items-baseline",
2484
2500
  "data-cy": "pagination-header"
2485
- }, aa = { class: "ms-2" }, la = { key: 0 }, oa = /* @__PURE__ */ c("span", { class: "mx-2" }, "|", -1), na = {
2501
+ }, el = { class: "ms-2" }, tl = { key: 0 }, ll = {
2486
2502
  class: "w-auto",
2487
2503
  "data-cy": "total"
2488
- }, sa = /* @__PURE__ */ F({
2504
+ }, al = /* @__PURE__ */ F({
2489
2505
  __name: "ForgePaginationHeader",
2490
2506
  props: {
2491
2507
  total: {},
@@ -2494,31 +2510,31 @@ const ta = {
2494
2510
  },
2495
2511
  emits: ["update:perPage"],
2496
2512
  setup(e, { emit: t }) {
2497
- const a = t, o = e, l = (u) => {
2498
- a("update:perPage", u.value);
2499
- }, n = x(() => {
2500
- const u = Math.ceil(o.total / o.perPage);
2501
- return `${u} ${X(u, "page")}`;
2513
+ const l = t, o = e, a = (d) => {
2514
+ l("update:perPage", d.value);
2515
+ }, n = k(() => {
2516
+ const d = Math.ceil(o.total / o.perPage);
2517
+ return `${d} ${X(d, "page")}`;
2502
2518
  });
2503
- return (u, r) => (i(), v("div", ta, [
2504
- O(" Number of results per page "),
2505
- c("div", aa, [
2506
- f(m(ae), {
2519
+ return (d, r) => (i(), v("div", Qt, [
2520
+ r[2] || (r[2] = O(" Number of results per page ")),
2521
+ c("div", el, [
2522
+ f(m(le), {
2507
2523
  options: o.pageSizes,
2508
2524
  "model-value": o.perPage,
2509
- onChange: r[0] || (r[0] = (d) => l(d))
2525
+ onChange: r[0] || (r[0] = (u) => a(u))
2510
2526
  }, null, 8, ["options", "model-value"])
2511
2527
  ]),
2512
- o.total ? (i(), v("div", la, [
2513
- oa,
2514
- c("span", na, h(o.total) + " " + h(m(X)(o.total, "result")) + " across " + h(n.value), 1)
2528
+ o.total ? (i(), v("div", tl, [
2529
+ r[1] || (r[1] = c("span", { class: "mx-2" }, "|", -1)),
2530
+ c("span", ll, h(o.total) + " " + h(m(X)(o.total, "result")) + " across " + h(n.value), 1)
2515
2531
  ])) : S("", !0)
2516
2532
  ]));
2517
2533
  }
2518
- }), ia = { class: "position-relative" }, ra = { "data-cy": "above-table-slot" }, da = { class: "d-flex w-100" }, ua = {
2534
+ }), ol = { class: "position-relative" }, nl = { "data-cy": "above-table-slot" }, sl = { class: "d-flex w-100" }, il = {
2519
2535
  class: "mx-auto",
2520
2536
  "data-cy": "empty-message"
2521
- }, ca = { class: "d-flex" }, ma = { class: "d-flex align-items-end mb-2" }, pa = { key: 0 }, ya = { class: "ms-auto" }, va = /* @__PURE__ */ c("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), Ml = /* @__PURE__ */ F({
2537
+ }, rl = { class: "d-flex" }, dl = { class: "d-flex align-items-end mb-2" }, ul = { key: 0 }, cl = { class: "ms-auto" }, Sa = /* @__PURE__ */ F({
2522
2538
  __name: "ForgeTable",
2523
2539
  props: {
2524
2540
  value: {},
@@ -2600,17 +2616,17 @@ const ta = {
2600
2616
  },
2601
2617
  emits: ["update:filters", "update:tableContext", "sort", "page"],
2602
2618
  setup(e, { emit: t }) {
2603
- const a = t, o = e, l = I(), n = I([10, 20, 50, 100]), u = I(20), r = I({
2619
+ const l = t, o = e, a = I(), n = I([10, 20, 50, 100]), d = I(20), r = I({
2604
2620
  filters: o.filters,
2605
- perPage: u.value,
2621
+ perPage: d.value,
2606
2622
  page: 0,
2607
2623
  sortDirection: "None",
2608
2624
  sortField: "",
2609
2625
  total: o.totalRecords ?? o.value.length
2610
- }), d = x(() => o.totalRecords ?? o.value.length), p = x(() => {
2611
- const b = Math.ceil(d.value / u.value);
2626
+ }), u = k(() => o.totalRecords ?? o.value.length), p = k(() => {
2627
+ const b = Math.ceil(u.value / d.value);
2612
2628
  return `${b} ${X(b, "page")}`;
2613
- }), y = x(() => ({
2629
+ }), y = k(() => ({
2614
2630
  thead: () => ({
2615
2631
  class: [
2616
2632
  {
@@ -2638,63 +2654,63 @@ const ta = {
2638
2654
  else
2639
2655
  for (const b in o.filters)
2640
2656
  typeof o.filters[b] == "string" ? o.filters[b] = "" : o.filters[b].value = null;
2641
- M(o.filters);
2657
+ P(o.filters);
2642
2658
  }, T = () => {
2643
- l.value.exportCSV();
2659
+ a.value.exportCSV();
2644
2660
  }, C = (b) => {
2645
- var k;
2646
- r.value.sortDirection = b.sortOrder === 1 ? "Asc" : b.sortOrder === -1 ? "Desc" : "None", r.value.sortField = ((k = b.sortField) == null ? void 0 : k.toString()) ?? "", a("update:tableContext", r.value), a("sort", b);
2647
- }, M = (b) => {
2648
- r.value.filters = b, a("update:tableContext", r.value), a("update:filters", b);
2661
+ var x;
2662
+ r.value.sortDirection = b.sortOrder === 1 ? "Asc" : b.sortOrder === -1 ? "Desc" : "None", r.value.sortField = ((x = b.sortField) == null ? void 0 : x.toString()) ?? "", l("update:tableContext", r.value), l("sort", b);
2649
2663
  }, P = (b) => {
2650
- r.value.page = b.page, a("update:tableContext", r.value), a("page", b);
2664
+ r.value.filters = b, l("update:tableContext", r.value), l("update:filters", b);
2665
+ }, M = (b) => {
2666
+ r.value.page = b.page, l("update:tableContext", r.value), l("page", b);
2651
2667
  }, z = () => {
2652
- r.value.perPage = u.value, a("update:tableContext", r.value);
2668
+ r.value.perPage = d.value, l("update:tableContext", r.value);
2653
2669
  };
2654
2670
  return de(() => o.filters, (b) => {
2655
- r.value.filters = b, a("update:tableContext", r.value);
2656
- }, { deep: !0 }), ne(() => a("update:tableContext", r.value)), (b, k) => (i(), v("div", ia, [
2657
- c("span", ra, [
2671
+ r.value.filters = b, l("update:tableContext", r.value);
2672
+ }, { deep: !0 }), ne(() => l("update:tableContext", r.value)), (b, x) => (i(), v("div", ol, [
2673
+ c("span", nl, [
2658
2674
  $(b.$slots, "above-table")
2659
2675
  ]),
2660
2676
  f(m(Ie), _({
2661
2677
  class: ["w-100", `${o.severity ? `forge-table-${o.severity}` : ""}`]
2662
2678
  }, { ...o, ...b.$attrs }, {
2663
2679
  pt: y.value,
2664
- rows: u.value,
2665
- "total-records": d.value,
2680
+ rows: d.value,
2681
+ "total-records": u.value,
2666
2682
  "filter-display": o.filters ? "row" : void 0,
2667
2683
  ref_key: "forgeTable",
2668
- ref: l,
2684
+ ref: a,
2669
2685
  "data-cy": "table",
2670
- "onUpdate:filters": M,
2686
+ "onUpdate:filters": P,
2671
2687
  onSort: C,
2672
- onPage: P
2688
+ onPage: M
2673
2689
  }), te({
2674
2690
  empty: g(() => [
2675
- c("div", da, [
2676
- c("h5", ua, h(b.emptyMessage ?? "No items Found."), 1)
2691
+ c("div", sl, [
2692
+ c("h5", il, h(b.emptyMessage ?? "No items Found."), 1)
2677
2693
  ])
2678
2694
  ]),
2679
2695
  header: g(() => [
2680
2696
  c("div", {
2681
2697
  class: B(o.loading ? "opacity-50" : "")
2682
2698
  }, [
2683
- c("div", ca, [
2684
- c("div", ma, [
2685
- b.paginator && !b.legacyPaginationFooter ? (i(), v("span", pa, [
2686
- f(sa, {
2687
- total: d.value,
2699
+ c("div", rl, [
2700
+ c("div", dl, [
2701
+ b.paginator && !b.legacyPaginationFooter ? (i(), v("span", ul, [
2702
+ f(al, {
2703
+ total: u.value,
2688
2704
  "page-sizes": n.value,
2689
- "per-page": u.value,
2705
+ "per-page": d.value,
2690
2706
  "onUpdate:perPage": [
2691
- k[0] || (k[0] = (G) => u.value = G),
2707
+ x[0] || (x[0] = (G) => d.value = G),
2692
2708
  z
2693
2709
  ]
2694
2710
  }, null, 8, ["total", "page-sizes", "per-page"])
2695
2711
  ])) : S("", !0)
2696
2712
  ]),
2697
- c("div", ya, [
2713
+ c("div", cl, [
2698
2714
  b.showClearButton ? (i(), w(m(R), {
2699
2715
  key: 0,
2700
2716
  outlined: "",
@@ -2708,7 +2724,7 @@ const ta = {
2708
2724
  width: "24",
2709
2725
  height: "24"
2710
2726
  }),
2711
- O(" Clear ")
2727
+ x[2] || (x[2] = O(" Clear "))
2712
2728
  ]),
2713
2729
  _: 1
2714
2730
  }, 8, ["class"])) : S("", !0),
@@ -2724,7 +2740,7 @@ const ta = {
2724
2740
  width: "24",
2725
2741
  height: "24"
2726
2742
  }),
2727
- O(" Export ")
2743
+ x[3] || (x[3] = O(" Export "))
2728
2744
  ]),
2729
2745
  _: 1
2730
2746
  })) : S("", !0)
@@ -2750,11 +2766,11 @@ const ta = {
2750
2766
  class: B(["d-flex", o.loading ? "opacity-50" : ""]),
2751
2767
  "data-cy": "legacy-page-size"
2752
2768
  }, [
2753
- va,
2754
- f(m(ae), {
2769
+ x[4] || (x[4] = c("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
2770
+ f(m(le), {
2755
2771
  options: n.value,
2756
- modelValue: u.value,
2757
- "onUpdate:modelValue": k[1] || (k[1] = (G) => u.value = G),
2772
+ modelValue: d.value,
2773
+ "onUpdate:modelValue": x[1] || (x[1] = (G) => d.value = G),
2758
2774
  class: "ms-2",
2759
2775
  onClick: z
2760
2776
  }, null, 8, ["options", "modelValue"])
@@ -2768,14 +2784,14 @@ const ta = {
2768
2784
  c("span", {
2769
2785
  "data-cy": "legacy-total",
2770
2786
  class: B(o.loading ? "opacity-50" : "")
2771
- }, h(d.value) + " " + h(m(X)(d.value, "result")) + " across " + h(p.value), 3)
2787
+ }, h(u.value) + " " + h(m(X)(u.value, "result")) + " across " + h(p.value), 3)
2772
2788
  ]),
2773
2789
  key: "1"
2774
2790
  } : void 0
2775
2791
  ]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
2776
2792
  ]));
2777
2793
  }
2778
- }), ba = { class: "d-flex position-relative" }, fa = { class: "d-flex w-100" }, ga = { class: "d-flex w-100" }, Pl = /* @__PURE__ */ F({
2794
+ }), ml = { class: "d-flex position-relative" }, pl = { class: "d-flex w-100" }, yl = { class: "d-flex w-100" }, Va = /* @__PURE__ */ F({
2779
2795
  __name: "ForgeFilterHeader",
2780
2796
  props: /* @__PURE__ */ E({
2781
2797
  dataType: {},
@@ -2790,49 +2806,49 @@ const ta = {
2790
2806
  }),
2791
2807
  emits: ["update:modelValue"],
2792
2808
  setup(e) {
2793
- const t = A(e, "modelValue"), a = (l, n) => {
2794
- if (!l || Array.isArray(l) && l.length === 0)
2809
+ const t = A(e, "modelValue"), l = (a, n) => {
2810
+ if (!a || Array.isArray(a) && a.length === 0)
2795
2811
  return n;
2796
- const u = (r) => {
2812
+ const d = (r) => {
2797
2813
  var p;
2798
- const d = (p = e.dropdownOptions) == null ? void 0 : p.find(
2814
+ const u = (p = e.dropdownOptions) == null ? void 0 : p.find(
2799
2815
  (y) => e.optionValue ? y[e.optionValue] === r : Object.keys(y).every((s) => r.hasOwnProperty(s) && y[s] === r[s])
2800
2816
  );
2801
- return e.optionLabel ? d[e.optionLabel] : d;
2817
+ return e.optionLabel ? u[e.optionLabel] : u;
2802
2818
  };
2803
- return Array.isArray(l) ? l.map(u).join(", ") : u(l);
2819
+ return Array.isArray(a) ? a.map(d).join(", ") : d(a);
2804
2820
  }, o = () => {
2805
2821
  e.clearFilter ? e.clearFilter() : t.value = null;
2806
2822
  };
2807
- return (l, n) => {
2808
- const u = ue, r = R;
2809
- return i(), v("div", ba, [
2810
- l.dataType === "numeric" ? (i(), w(u, _({
2823
+ return (a, n) => {
2824
+ const d = ue, r = R;
2825
+ return i(), v("div", ml, [
2826
+ a.dataType === "numeric" ? (i(), w(d, _({
2811
2827
  key: 0,
2812
2828
  modelValue: t.value,
2813
- "onUpdate:modelValue": n[0] || (n[0] = (d) => t.value = d)
2814
- }, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (i(), w(ye, _({
2829
+ "onUpdate:modelValue": n[0] || (n[0] = (u) => t.value = u)
2830
+ }, a.$attrs), null, 16, ["modelValue"])) : a.dataType === "date" ? (i(), w(ye, _({
2815
2831
  key: 1,
2816
2832
  modelValue: t.value,
2817
- "onUpdate:modelValue": n[1] || (n[1] = (d) => t.value = d)
2818
- }, l.$attrs, {
2833
+ "onUpdate:modelValue": n[1] || (n[1] = (u) => t.value = u)
2834
+ }, a.$attrs, {
2819
2835
  "show-icon": !1,
2820
2836
  "show-on-focus": !0
2821
- }), null, 16, ["modelValue"])) : l.dataType === "select" ? (i(), w(m(ae), _({
2837
+ }), null, 16, ["modelValue"])) : a.dataType === "select" ? (i(), w(m(le), _({
2822
2838
  key: 2,
2823
2839
  modelValue: t.value,
2824
- "onUpdate:modelValue": n[2] || (n[2] = (d) => t.value = d)
2825
- }, l.$attrs, {
2826
- options: l.dropdownOptions,
2827
- "option-value": l.optionValue,
2828
- "option-label": l.optionLabel
2840
+ "onUpdate:modelValue": n[2] || (n[2] = (u) => t.value = u)
2841
+ }, a.$attrs, {
2842
+ options: a.dropdownOptions,
2843
+ "option-value": a.optionValue,
2844
+ "option-label": a.optionLabel
2829
2845
  }), {
2830
- value: g(({ value: d, placeholder: p }) => [
2831
- c("div", fa, [
2846
+ value: g(({ value: u, placeholder: p }) => [
2847
+ c("div", pl, [
2832
2848
  c("span", {
2833
- class: B({ "filter-placeholder": d === null })
2834
- }, h(a(d, p)), 3),
2835
- l.showClearButton && t.value !== null ? (i(), w(r, {
2849
+ class: B({ "filter-placeholder": u === null })
2850
+ }, h(l(u, p)), 3),
2851
+ a.showClearButton && t.value !== null ? (i(), w(r, {
2836
2852
  key: 0,
2837
2853
  onClick: q(o, ["prevent"]),
2838
2854
  size: "small",
@@ -2851,23 +2867,23 @@ const ta = {
2851
2867
  ])
2852
2868
  ]),
2853
2869
  _: 1
2854
- }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (i(), w(m(ze), _({
2870
+ }, 16, ["modelValue", "options", "option-value", "option-label"])) : a.dataType === "multiselect" ? (i(), w(m(ze), _({
2855
2871
  key: 3,
2856
2872
  modelValue: t.value,
2857
- "onUpdate:modelValue": n[3] || (n[3] = (d) => t.value = d)
2858
- }, l.$attrs, {
2859
- options: l.dropdownOptions,
2873
+ "onUpdate:modelValue": n[3] || (n[3] = (u) => t.value = u)
2874
+ }, a.$attrs, {
2875
+ options: a.dropdownOptions,
2860
2876
  showToggleAll: !1,
2861
- "option-label": l.optionLabel,
2862
- "option-value": l.optionValue,
2877
+ "option-label": a.optionLabel,
2878
+ "option-value": a.optionValue,
2863
2879
  filter: ""
2864
2880
  }), {
2865
- value: g(({ value: d, placeholder: p }) => [
2866
- c("div", ga, [
2881
+ value: g(({ value: u, placeholder: p }) => [
2882
+ c("div", yl, [
2867
2883
  c("span", {
2868
- class: B({ "filter-placeholder": (d == null ? void 0 : d.length) === 0 || d === null })
2869
- }, h(a(d, p)), 3),
2870
- l.showClearButton && (d == null ? void 0 : d.length) > 0 ? (i(), w(r, {
2884
+ class: B({ "filter-placeholder": (u == null ? void 0 : u.length) === 0 || u === null })
2885
+ }, h(l(u, p)), 3),
2886
+ a.showClearButton && (u == null ? void 0 : u.length) > 0 ? (i(), w(r, {
2871
2887
  key: 0,
2872
2888
  onClick: q(o, ["prevent"]),
2873
2889
  size: "small",
@@ -2889,9 +2905,9 @@ const ta = {
2889
2905
  }, 16, ["modelValue", "options", "option-label", "option-value"])) : (i(), w(m(ie), _({
2890
2906
  key: 4,
2891
2907
  modelValue: t.value,
2892
- "onUpdate:modelValue": n[4] || (n[4] = (d) => t.value = d)
2893
- }, l.$attrs), null, 16, ["modelValue"])),
2894
- l.showClearButton && t.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (i(), w(r, {
2908
+ "onUpdate:modelValue": n[4] || (n[4] = (u) => t.value = u)
2909
+ }, a.$attrs), null, 16, ["modelValue"])),
2910
+ a.showClearButton && t.value !== null && a.dataType !== "select" && a.dataType !== "multiselect" && a.dataType !== "date" ? (i(), w(r, {
2895
2911
  key: 5,
2896
2912
  onClick: q(o, ["prevent"]),
2897
2913
  size: "small",
@@ -2911,48 +2927,48 @@ const ta = {
2911
2927
  };
2912
2928
  }
2913
2929
  });
2914
- function ve(e, t, a, o) {
2915
- const l = t.flatMap((n) => n.file);
2930
+ function ve(e, t, l, o) {
2931
+ const a = t.flatMap((n) => n.file);
2916
2932
  return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
2917
- const u = l.findIndex((d) => d.name === n.name);
2933
+ const d = a.findIndex((u) => u.name === n.name);
2918
2934
  let r = "Not Uploaded";
2919
- u === -1 ? ((!a.includes(n.type) || !(n.size <= o)) && (r = a.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
2935
+ d === -1 ? ((!l.includes(n.type) || !(n.size <= o)) && (r = l.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
2920
2936
  file: n,
2921
2937
  status: r,
2922
2938
  blobFileName: null
2923
- })) : t[u].status = "Duplicate";
2939
+ })) : t[d].status = "Duplicate";
2924
2940
  }), t;
2925
2941
  }
2926
- async function ha(e, t) {
2942
+ async function vl(e, t) {
2927
2943
  if (e === "Uploaded" && t !== null)
2928
2944
  try {
2929
2945
  await new ce(t).delete();
2930
- } catch (a) {
2931
- if (a !== "BlobNotFound") {
2946
+ } catch (l) {
2947
+ if (l !== "BlobNotFound") {
2932
2948
  e = "DeleteFileFailed";
2933
2949
  return;
2934
2950
  }
2935
2951
  }
2936
2952
  }
2937
- function re(e, t = !0, a = 1) {
2953
+ function re(e, t = !0, l = 1) {
2938
2954
  const o = t ? 1e3 : 1024;
2939
2955
  if (Math.abs(e) < o)
2940
2956
  return e + " B";
2941
- const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
2957
+ const a = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
2942
2958
  let n = -1;
2943
- const u = 10 ** a;
2959
+ const d = 10 ** l;
2944
2960
  do
2945
2961
  e /= o, ++n;
2946
- while (Math.round(Math.abs(e) * u) / u >= o && n < l.length - 1);
2947
- return e.toFixed(a) + " " + l[n];
2962
+ while (Math.round(Math.abs(e) * d) / d >= o && n < a.length - 1);
2963
+ return e.toFixed(l) + " " + a[n];
2948
2964
  }
2949
- function wa(e) {
2965
+ function bl(e) {
2950
2966
  return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
2951
2967
  }
2952
- function xa(e) {
2968
+ function fl(e) {
2953
2969
  return URL.createObjectURL(e);
2954
2970
  }
2955
- const ka = { class: "d-flex justify-content-between" }, $a = ["accept", "disabled", "multiple"], Ba = /* @__PURE__ */ F({
2971
+ const gl = { class: "d-flex justify-content-between" }, hl = ["accept", "disabled", "multiple"], wl = /* @__PURE__ */ F({
2956
2972
  __name: "UploadButton",
2957
2973
  props: /* @__PURE__ */ E({
2958
2974
  acceptedFileTypes: {},
@@ -2964,52 +2980,52 @@ const ka = { class: "d-flex justify-content-between" }, $a = ["accept", "disable
2964
2980
  }),
2965
2981
  emits: ["update:modelValue"],
2966
2982
  setup(e) {
2967
- const t = A(e, "modelValue"), a = x(() => e.maxFileInput <= t.value.length), o = (l) => {
2968
- t.value = ve(l, t.value, e.acceptedFileTypes, e.maxFileInput);
2983
+ const t = A(e, "modelValue"), l = k(() => e.maxFileInput <= t.value.length), o = (a) => {
2984
+ t.value = ve(a, t.value, e.acceptedFileTypes, e.maxFileInput);
2969
2985
  };
2970
- return (l, n) => (i(), v("div", ka, [
2971
- $(l.$slots, "message"),
2986
+ return (a, n) => (i(), v("div", gl, [
2987
+ $(a.$slots, "message"),
2972
2988
  c("div", null, [
2973
2989
  c("input", {
2974
2990
  id: "file-input",
2975
2991
  type: "file",
2976
2992
  class: "d-none",
2977
- accept: l.acceptedFileTypes.join(", "),
2978
- disabled: a.value,
2979
- multiple: l.maxFileInput > 1,
2980
- onInput: n[0] || (n[0] = (u) => o([...u.target.files]))
2981
- }, null, 40, $a),
2993
+ accept: a.acceptedFileTypes.join(", "),
2994
+ disabled: l.value,
2995
+ multiple: a.maxFileInput > 1,
2996
+ onInput: n[0] || (n[0] = (d) => o([...d.target.files]))
2997
+ }, null, 40, hl),
2982
2998
  c("label", {
2983
- class: B([{ disabled: a.value }, "btn btn-primary"]),
2999
+ class: B([{ disabled: l.value }, "btn btn-primary"]),
2984
3000
  id: "file-input-button",
2985
3001
  for: "file-input"
2986
3002
  }, [
2987
- $(l.$slots, "button-content", {}, () => [
3003
+ $(a.$slots, "button-content", {}, () => [
2988
3004
  f(m(V), {
2989
3005
  icon: "bi:upload",
2990
3006
  class: "me-2",
2991
3007
  height: "20px",
2992
3008
  width: "20px"
2993
3009
  }),
2994
- O(" Browse your computer ")
3010
+ n[1] || (n[1] = O(" Browse your computer "))
2995
3011
  ])
2996
3012
  ], 2)
2997
3013
  ]),
2998
- l.showDragDropArea ? (i(), v("div", {
3014
+ a.showDragDropArea ? (i(), v("div", {
2999
3015
  class: "ms-auto",
3000
- key: l.acceptedFileTypes.length,
3016
+ key: a.acceptedFileTypes.length,
3001
3017
  id: "accepted-file-types"
3002
- }, "Accepted File Types: " + h(l.acceptedFileTypes.map((u) => u.split("/").pop()).join(", ")), 1)) : S("", !0)
3018
+ }, "Accepted File Types: " + h(a.acceptedFileTypes.map((d) => d.split("/").pop()).join(", ")), 1)) : S("", !0)
3003
3019
  ]));
3004
3020
  }
3005
- }), Fa = {
3021
+ }), xl = {
3006
3022
  key: 0,
3007
3023
  class: "py-4 px-3",
3008
3024
  id: "placeholder-message"
3009
- }, _a = {
3025
+ }, kl = {
3010
3026
  key: 1,
3011
3027
  class: "d-flex flex-column"
3012
- }, Sa = /* @__PURE__ */ F({
3028
+ }, $l = /* @__PURE__ */ F({
3013
3029
  __name: "DragDropArea",
3014
3030
  props: /* @__PURE__ */ E({
3015
3031
  maxFileInput: {},
@@ -3021,30 +3037,30 @@ const ka = { class: "d-flex justify-content-between" }, $a = ["accept", "disable
3021
3037
  }),
3022
3038
  emits: ["update:modelValue"],
3023
3039
  setup(e) {
3024
- const t = A(e, "modelValue"), a = I(!1), o = x(() => e.maxFileInput <= t.value.length), l = (n) => {
3025
- a.value = !1, n.dataTransfer.files.length > e.maxFileInput || o.value ? n.preventDefault() : t.value = ve([...n.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
3040
+ const t = A(e, "modelValue"), l = I(!1), o = k(() => e.maxFileInput <= t.value.length), a = (n) => {
3041
+ l.value = !1, n.dataTransfer.files.length > e.maxFileInput || o.value ? n.preventDefault() : t.value = ve([...n.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
3026
3042
  };
3027
- return (n, u) => (i(), v("div", {
3043
+ return (n, d) => (i(), v("div", {
3028
3044
  id: "drag-drop-area",
3029
- class: B(`${a.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
3030
- onDragleave: u[0] || (u[0] = q((r) => a.value = !1, ["prevent"])),
3031
- onDragover: u[1] || (u[1] = q((r) => a.value = !0, ["prevent"])),
3032
- onDrop: q(l, ["prevent"])
3045
+ class: B(`${l.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
3046
+ onDragleave: d[0] || (d[0] = q((r) => l.value = !1, ["prevent"])),
3047
+ onDragover: d[1] || (d[1] = q((r) => l.value = !0, ["prevent"])),
3048
+ onDrop: q(a, ["prevent"])
3033
3049
  }, [
3034
- t.value.length === 0 ? (i(), v("div", Fa, [
3050
+ t.value.length === 0 ? (i(), v("div", xl, [
3035
3051
  f(m(V), {
3036
3052
  icon: "bi:upload",
3037
3053
  class: "me-2",
3038
3054
  height: "20px",
3039
3055
  width: "20px"
3040
3056
  }),
3041
- O(" Drag and drop files here ")
3042
- ])) : (i(), v("div", _a, [
3057
+ d[2] || (d[2] = O(" Drag and drop files here "))
3058
+ ])) : (i(), v("div", kl, [
3043
3059
  $(n.$slots, "default")
3044
3060
  ]))
3045
3061
  ], 34));
3046
3062
  }
3047
- }), Va = { class: "d-flex align-items-center me-2" }, Ca = /* @__PURE__ */ F({
3063
+ }), Bl = { class: "d-flex align-items-center me-2" }, Fl = /* @__PURE__ */ F({
3048
3064
  __name: "UploadStatus",
3049
3065
  props: {
3050
3066
  fileSize: {},
@@ -3053,7 +3069,7 @@ const ka = { class: "d-flex justify-content-between" }, $a = ["accept", "disable
3053
3069
  uploadStatus: {}
3054
3070
  },
3055
3071
  setup(e) {
3056
- const t = x(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), a = x(() => {
3072
+ const t = k(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), l = k(() => {
3057
3073
  switch (e.uploadStatus) {
3058
3074
  case "InvalidFileType":
3059
3075
  return "Upload Failed: File type is not accepted.";
@@ -3069,8 +3085,8 @@ const ka = { class: "d-flex justify-content-between" }, $a = ["accept", "disable
3069
3085
  return "Upload Failed: Connection error, please try again.";
3070
3086
  }
3071
3087
  });
3072
- return (o, l) => (i(), v("div", Va, [
3073
- o.uploadStatus === "Uploading" ? (i(), w(Wt, {
3088
+ return (o, a) => (i(), v("div", Bl, [
3089
+ o.uploadStatus === "Uploading" ? (i(), w(Gt, {
3074
3090
  key: 0,
3075
3091
  pixelWidth: 200,
3076
3092
  animate: "",
@@ -3081,29 +3097,29 @@ const ka = { class: "d-flex justify-content-between" }, $a = ["accept", "disable
3081
3097
  ]),
3082
3098
  _: 1
3083
3099
  })) : S("", !0),
3084
- o.uploadStatus !== "Uploading" && o.uploadStatus !== "Not Uploaded" && o.uploadStatus !== "Uploaded" && o.uploadStatus !== "Preparing" ? (i(), w(le, {
3100
+ o.uploadStatus !== "Uploading" && o.uploadStatus !== "Not Uploaded" && o.uploadStatus !== "Uploaded" && o.uploadStatus !== "Preparing" ? (i(), w(ae, {
3085
3101
  key: 1,
3086
3102
  id: "upload-status-alert",
3087
3103
  severity: t.value,
3088
3104
  class: "mb-0 w-75 ms-auto"
3089
3105
  }, {
3090
3106
  default: g(() => [
3091
- O(h(a.value), 1)
3107
+ O(h(l.value), 1)
3092
3108
  ]),
3093
3109
  _: 1
3094
3110
  }, 8, ["severity"])) : S("", !0)
3095
3111
  ]));
3096
3112
  }
3097
- }), Ta = ["data-cy"], Ma = { class: "ms-3 d-flex flex-column" }, Pa = {
3113
+ }), _l = ["data-cy"], Sl = { class: "ms-3 d-flex flex-column" }, Vl = {
3098
3114
  key: 1,
3099
3115
  id: "file-name"
3100
- }, Ia = {
3116
+ }, Cl = {
3101
3117
  class: "text-black-50",
3102
3118
  id: "file-type"
3103
- }, za = {
3119
+ }, Tl = {
3104
3120
  class: "text-black-50",
3105
3121
  id: "file-size"
3106
- }, Oa = { class: "ms-auto my-auto d-flex" }, Da = /* @__PURE__ */ F({
3122
+ }, Pl = { class: "ms-auto my-auto d-flex" }, Ml = /* @__PURE__ */ F({
3107
3123
  __name: "FileInfo",
3108
3124
  props: /* @__PURE__ */ E({
3109
3125
  editableFileName: { type: Boolean },
@@ -3122,52 +3138,52 @@ const ka = { class: "d-flex justify-content-between" }, $a = ["accept", "disable
3122
3138
  }),
3123
3139
  emits: /* @__PURE__ */ E(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
3124
3140
  setup(e, { emit: t }) {
3125
- const a = A(e, "file"), o = A(e, "blobFileName"), l = A(e, "uploadStatus"), n = t, u = I(a.value.name), r = I(""), d = I(0), p = I(), y = x(() => e.acceptedFileTypes.includes(a.value.type)), s = x(() => a.value.size <= e.maxFileSize), T = () => {
3126
- a.value = new File([a.value], u.value, { type: a.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
3141
+ const l = A(e, "file"), o = A(e, "blobFileName"), a = A(e, "uploadStatus"), n = t, d = I(l.value.name), r = I(""), u = I(0), p = I(), y = k(() => e.acceptedFileTypes.includes(l.value.type)), s = k(() => l.value.size <= e.maxFileSize), T = () => {
3142
+ l.value = new File([l.value], d.value, { type: l.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
3127
3143
  }, C = async () => {
3128
3144
  if (!y.value || !s.value) {
3129
- l.value = y.value ? "InvalidFileSize" : "InvalidFileType";
3145
+ a.value = y.value ? "InvalidFileSize" : "InvalidFileType";
3130
3146
  return;
3131
3147
  }
3132
- l.value = "Preparing", p.value = new AbortController();
3133
- const [P, z] = await e.getFileUrlAction(a.value.name);
3134
- if (!P) {
3135
- l.value = "Failed";
3148
+ a.value = "Preparing", p.value = new AbortController();
3149
+ const [M, z] = await e.getFileUrlAction(l.value.name);
3150
+ if (!M) {
3151
+ a.value = "Failed";
3136
3152
  return;
3137
3153
  }
3138
3154
  try {
3139
- l.value = "Uploading";
3140
- const b = new ce(P), k = {
3155
+ a.value = "Uploading";
3156
+ const b = new ce(M), x = {
3141
3157
  abortSignal: p.value.signal,
3142
- onProgress: (G) => d.value = G.loadedBytes,
3158
+ onProgress: (G) => u.value = G.loadedBytes,
3143
3159
  tags: { temp: "true" }
3144
3160
  };
3145
- await b.uploadData(a.value, k), r.value = P, l.value = "Uploaded", o.value = z;
3161
+ await b.uploadData(l.value, x), r.value = M, a.value = "Uploaded", o.value = z;
3146
3162
  } catch (b) {
3147
3163
  if (b.name === "AbortError") {
3148
- l.value = "Aborted";
3164
+ a.value = "Aborted";
3149
3165
  return;
3150
3166
  }
3151
- l.value = "Failed";
3167
+ a.value = "Failed";
3152
3168
  }
3153
- }, M = async () => {
3154
- await ha(l.value, r.value), n("deleted", a.value);
3169
+ }, P = async () => {
3170
+ await vl(a.value, r.value), n("deleted", l.value);
3155
3171
  };
3156
3172
  return ne(() => {
3157
3173
  e.autoUploadToBlob && C();
3158
- }), (P, z) => {
3174
+ }), (M, z) => {
3159
3175
  const b = R;
3160
3176
  return i(), v("div", {
3161
3177
  class: "py-4 px-3 d-flex",
3162
- "data-cy": `file-info-${a.value.name}`
3178
+ "data-cy": `file-info-${l.value.name}`
3163
3179
  }, [
3164
3180
  c("div", null, [
3165
- m(wa)(a.value.type) ? (i(), w(m(Oe), {
3181
+ m(bl)(l.value.type) ? (i(), w(m(Oe), {
3166
3182
  key: 0,
3167
3183
  id: "thumbnail-image",
3168
3184
  "image-class": "image-file-thumbnail border",
3169
- src: m(xa)(a.value),
3170
- alt: a.value.name,
3185
+ src: m(fl)(l.value),
3186
+ alt: l.value.name,
3171
3187
  width: "75px",
3172
3188
  preview: ""
3173
3189
  }, null, 8, ["src", "alt"])) : (i(), w(m(V), {
@@ -3178,45 +3194,45 @@ const ka = { class: "d-flex justify-content-between" }, $a = ["accept", "disable
3178
3194
  width: "75px"
3179
3195
  }))
3180
3196
  ]),
3181
- c("div", Ma, [
3197
+ c("div", Sl, [
3182
3198
  c("div", null, [
3183
- P.editableFileName ? (i(), w($t, {
3199
+ M.editableFileName ? (i(), w($t, {
3184
3200
  key: 0,
3185
3201
  id: "edit-file-name",
3186
- modelValue: u.value,
3187
- "onUpdate:modelValue": z[0] || (z[0] = (k) => u.value = k),
3188
- rules: P.customFileNameRules,
3189
- name: a.value.name,
3202
+ modelValue: d.value,
3203
+ "onUpdate:modelValue": z[0] || (z[0] = (x) => d.value = x),
3204
+ rules: M.customFileNameRules,
3205
+ name: l.value.name,
3190
3206
  "complete-action": T
3191
- }, null, 8, ["modelValue", "rules", "name"])) : (i(), v("span", Pa, h(a.value.name), 1))
3207
+ }, null, 8, ["modelValue", "rules", "name"])) : (i(), v("span", Vl, h(l.value.name), 1))
3192
3208
  ]),
3193
- c("span", Ia, "File type: " + h(a.value.type.split("/").pop()), 1),
3194
- c("span", za, "File size: " + h(m(re)(a.value.size)), 1)
3209
+ c("span", Cl, "File type: " + h(l.value.type.split("/").pop()), 1),
3210
+ c("span", Tl, "File size: " + h(m(re)(l.value.size)), 1)
3195
3211
  ]),
3196
- c("div", Oa, [
3197
- (i(), w(Ca, {
3198
- key: l.value,
3199
- "file-size": a.value.size,
3200
- "upload-status": l.value,
3201
- "bytes-uploaded": d.value,
3202
- "max-file-size": P.maxFileSize
3212
+ c("div", Pl, [
3213
+ (i(), w(Fl, {
3214
+ key: a.value,
3215
+ "file-size": l.value.size,
3216
+ "upload-status": a.value,
3217
+ "bytes-uploaded": u.value,
3218
+ "max-file-size": M.maxFileSize
3203
3219
  }, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
3204
- l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (i(), w(b, {
3220
+ a.value === "Not Uploaded" || a.value === "Failed" || a.value === "Duplicate" || a.value === "Aborted" ? (i(), w(b, {
3205
3221
  key: 0,
3206
3222
  link: "",
3207
3223
  onClick: C
3208
3224
  }, {
3209
3225
  default: g(() => [
3210
3226
  f(m(V), {
3211
- icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
3227
+ icon: a.value === "Not Uploaded" || a.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
3212
3228
  }, null, 8, ["icon"])
3213
3229
  ]),
3214
3230
  _: 1
3215
3231
  })) : S("", !0),
3216
- l.value === "Uploading" ? (i(), w(b, {
3232
+ a.value === "Uploading" ? (i(), w(b, {
3217
3233
  key: 1,
3218
3234
  link: "",
3219
- onClick: z[1] || (z[1] = (k) => p.value.value.abort())
3235
+ onClick: z[1] || (z[1] = (x) => p.value.value.abort())
3220
3236
  }, {
3221
3237
  default: g(() => [
3222
3238
  f(m(V), { icon: "bi:x-circle-fill" })
@@ -3225,7 +3241,7 @@ const ka = { class: "d-flex justify-content-between" }, $a = ["accept", "disable
3225
3241
  })) : (i(), w(b, {
3226
3242
  key: 2,
3227
3243
  link: "",
3228
- onClick: M,
3244
+ onClick: P,
3229
3245
  id: "delete-button"
3230
3246
  }, {
3231
3247
  default: g(() => [
@@ -3234,20 +3250,20 @@ const ka = { class: "d-flex justify-content-between" }, $a = ["accept", "disable
3234
3250
  _: 1
3235
3251
  }))
3236
3252
  ])
3237
- ], 8, Ta);
3253
+ ], 8, _l);
3238
3254
  };
3239
3255
  }
3240
- }), Ua = { class: "d-flex justify-content-end mt-1" }, Aa = { id: "max-file-size" }, Na = /* @__PURE__ */ F({
3256
+ }), Il = { class: "d-flex justify-content-end mt-1" }, zl = { id: "max-file-size" }, Ol = /* @__PURE__ */ F({
3241
3257
  __name: "MaxFileSize",
3242
3258
  props: {
3243
3259
  maxFileSize: {}
3244
3260
  },
3245
3261
  setup(e) {
3246
- return (t, a) => (i(), v("div", Ua, [
3247
- c("div", Aa, "Max file size: " + h(m(re)(t.maxFileSize)), 1)
3262
+ return (t, l) => (i(), v("div", Il, [
3263
+ c("div", zl, "Max file size: " + h(m(re)(t.maxFileSize)), 1)
3248
3264
  ]));
3249
3265
  }
3250
- }), Ea = { "data-cy": "file-uploader" }, La = { key: 0 }, Il = /* @__PURE__ */ F({
3266
+ }), Dl = { "data-cy": "file-uploader" }, Ul = { key: 0 }, Ca = /* @__PURE__ */ F({
3251
3267
  __name: "ForgeFileUploader",
3252
3268
  props: /* @__PURE__ */ E({
3253
3269
  acceptedFileTypes: {},
@@ -3264,72 +3280,72 @@ const ka = { class: "d-flex justify-content-between" }, $a = ["accept", "disable
3264
3280
  }),
3265
3281
  emits: ["update:modelValue"],
3266
3282
  setup(e) {
3267
- const t = A(e, "modelValue"), a = e, o = (l) => {
3268
- t.value = t.value.filter((n) => n.file != l);
3283
+ const t = A(e, "modelValue"), l = e, o = (a) => {
3284
+ t.value = t.value.filter((n) => n.file != a);
3269
3285
  };
3270
- return (l, n) => (i(), v("div", Ea, [
3271
- f(Ba, _(a, {
3286
+ return (a, n) => (i(), v("div", Dl, [
3287
+ f(wl, _(l, {
3272
3288
  modelValue: t.value,
3273
- "onUpdate:modelValue": n[0] || (n[0] = (u) => t.value = u)
3289
+ "onUpdate:modelValue": n[0] || (n[0] = (d) => t.value = d)
3274
3290
  }), null, 16, ["modelValue"]),
3275
- l.showDragDropArea ? (i(), v("div", La, [
3276
- f(Sa, {
3277
- "max-file-input": a.maxFileInput,
3278
- "max-file-size": a.maxFileSize,
3279
- "accepted-file-types": a.acceptedFileTypes,
3291
+ a.showDragDropArea ? (i(), v("div", Ul, [
3292
+ f($l, {
3293
+ "max-file-input": l.maxFileInput,
3294
+ "max-file-size": l.maxFileSize,
3295
+ "accepted-file-types": l.acceptedFileTypes,
3280
3296
  modelValue: t.value,
3281
- "onUpdate:modelValue": n[1] || (n[1] = (u) => t.value = u)
3297
+ "onUpdate:modelValue": n[1] || (n[1] = (d) => t.value = d)
3282
3298
  }, {
3283
3299
  default: g(() => [
3284
- (i(!0), v(L, null, Y(t.value, ({ file: u }, r) => (i(), v("span", null, [
3285
- (i(), w(Da, _({
3286
- key: u.name,
3300
+ (i(!0), v(L, null, Y(t.value, ({ file: d }, r) => (i(), v("span", null, [
3301
+ (i(), w(Ml, _({
3302
+ key: d.name,
3287
3303
  class: r === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
3288
3304
  file: t.value[r].file,
3289
- "onUpdate:file": (d) => t.value[r].file = d,
3305
+ "onUpdate:file": (u) => t.value[r].file = u,
3290
3306
  "blob-file-name": t.value[r].blobFileName,
3291
- "onUpdate:blobFileName": (d) => t.value[r].blobFileName = d,
3307
+ "onUpdate:blobFileName": (u) => t.value[r].blobFileName = u,
3292
3308
  "upload-status": t.value[r].status,
3293
- "onUpdate:uploadStatus": (d) => t.value[r].status = d,
3309
+ "onUpdate:uploadStatus": (u) => t.value[r].status = u,
3294
3310
  ref_for: !0
3295
- }, a, { onDeleted: o }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
3311
+ }, l, { onDeleted: o }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
3296
3312
  ]))), 256))
3297
3313
  ]),
3298
3314
  _: 1
3299
3315
  }, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
3300
- f(Na, {
3301
- "max-file-size": a.maxFileSize
3316
+ f(Ol, {
3317
+ "max-file-size": l.maxFileSize
3302
3318
  }, null, 8, ["max-file-size"])
3303
3319
  ])) : S("", !0)
3304
3320
  ]));
3305
3321
  }
3306
3322
  });
3307
3323
  export {
3308
- vl as Bootstrap_PT,
3309
- bl as ForgeActionButton,
3310
- le as ForgeAlert,
3324
+ ca as Bootstrap_PT,
3325
+ ma as ForgeActionButton,
3326
+ ae as ForgeAlert,
3311
3327
  ct as ForgeCheckbox,
3312
- Sl as ForgeChips,
3328
+ $a as ForgeChips,
3313
3329
  ye as ForgeDatepicker,
3314
- Il as ForgeFileUploader,
3315
- Pl as ForgeFilterHeader,
3316
- Fl as ForgeForm,
3317
- _l as ForgeFormField,
3330
+ Ca as ForgeFileUploader,
3331
+ Va as ForgeFilterHeader,
3332
+ xa as ForgeForm,
3333
+ ka as ForgeFormField,
3318
3334
  $t as ForgeInlineEditor,
3319
- fl as ForgeLink,
3335
+ pa as ForgeLink,
3320
3336
  me as ForgeLoader,
3321
- wl as ForgeModal,
3337
+ ba as ForgeModal,
3322
3338
  pe as ForgeMultiSelect,
3323
- kl as ForgeMultiSelectPreview,
3324
- xl as ForgeNavbar,
3325
- $l as ForgePageHeader,
3326
- Wt as ForgeProgressBar,
3327
- Bl as ForgeRemainingCharacters,
3328
- Vl as ForgeStatWidget,
3329
- Cl as ForgeStepper,
3330
- Ml as ForgeTable,
3331
- Tl as ForgeTile,
3332
- hl as convertToMultiSelectOption,
3333
- gl as enumToMultiSelectList,
3339
+ ga as ForgeMultiSelectPreview,
3340
+ fa as ForgeNavbar,
3341
+ ha as ForgePageHeader,
3342
+ Gt as ForgeProgressBar,
3343
+ wa as ForgeRemainingCharacters,
3344
+ Ba as ForgeStatWidget,
3345
+ Fa as ForgeStepper,
3346
+ Sa as ForgeTable,
3347
+ _a as ForgeTile,
3348
+ va as convertToMultiSelectOption,
3349
+ ya as enumToMultiSelectList,
3334
3350
  yt as parseError
3335
3351
  };