@3squared/forge-ui-3 0.9.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,30 +1,30 @@
1
- import fe from "primevue/message";
2
- import { defineComponent as F, openBlock as i, createBlock as w, normalizeProps as ee, guardReactiveProps as te, withCtx as b, createElementVNode as u, normalizeClass as B, unref as c, createCommentVNode as S, createVNode as f, renderSlot as $, ref as I, createElementBlock as m, Fragment as N, mergeProps as T, onMounted as ae, watch as ie, computed as x, isRef as le, createTextVNode as z, toDisplayString as h, withDirectives as H, vShow as G, mergeModels as L, useModel as E, createSlots as oe, renderList as Y, withKeys as X, useAttrs as ce, withModifiers as j, normalizeStyle as ge } from "vue";
3
- import { Icon as C } from "@iconify/vue";
4
- import R from "primevue/button";
5
- import he from "primevue/toast";
6
- import we from "primevue/checkbox";
7
- import { useField as W } from "vee-validate";
8
- import xe from "primevue/progressspinner";
9
- import ke from "primevue/dialog";
10
- import re from "primevue/inputtext";
11
- import { vOnClickOutside as $e } from "@vueuse/components";
12
- import Be from "primevue/menubar";
13
- import _e from "vue-multiselect";
14
- import Fe from "primevue/calendar";
15
- import Se from "primevue/inputmask";
16
- import Ve from "primevue/textarea";
1
+ import he from "primevue/message";
2
+ import { defineComponent as V, openBlock as i, createBlock as h, normalizeProps as ee, guardReactiveProps as te, withCtx as b, createElementVNode as m, normalizeClass as _, unref as p, createCommentVNode as S, createVNode as f, renderSlot as B, ref as I, createElementBlock as y, Fragment as N, mergeProps as C, onMounted as ae, watch as re, computed as k, isRef as le, createTextVNode as O, toDisplayString as w, withDirectives as R, vShow as H, mergeModels as j, useModel as E, createSlots as oe, renderList as q, withKeys as X, useAttrs as ce, withModifiers as Y, normalizeStyle as we } from "vue";
3
+ import { Icon as T } from "@iconify/vue";
4
+ import L from "primevue/button";
5
+ import xe from "primevue/toast";
6
+ import ke from "primevue/checkbox";
7
+ import { useField as K } from "vee-validate";
8
+ import $e from "primevue/progressspinner";
9
+ import Be from "primevue/dialog";
10
+ import de from "primevue/inputtext";
11
+ import { vOnClickOutside as Fe } from "@vueuse/components";
12
+ import _e from "primevue/menubar";
13
+ import Ve from "vue-multiselect";
14
+ import Se from "primevue/calendar";
15
+ import ne from "primevue/dropdown";
16
+ import Ce from "primevue/inputmask";
17
+ import Te from "primevue/textarea";
17
18
  import me from "primevue/inputnumber";
18
- import Ce from "primevue/chips";
19
- import Te from "primevue/progressbar";
20
- import Pe from "primevue/divider";
21
- import Ie from "primevue/steps";
22
- import Me from "primevue/datatable";
23
- import de from "primevue/dropdown";
24
- import ze from "primevue/multiselect";
19
+ import Pe from "primevue/chips";
20
+ import Me from "primevue/progressbar";
21
+ import Ie from "primevue/divider";
22
+ import ze from "primevue/steps";
23
+ import Oe from "primevue/datatable";
24
+ import De from "primevue/multiselect";
25
25
  import { BlockBlobClient as pe } from "@azure/storage-blob";
26
- import Oe from "primevue/image";
27
- const De = {
26
+ import Ue from "primevue/image";
27
+ const Ae = {
28
28
  button: {
29
29
  root: ({ props: e }) => ({
30
30
  class: [
@@ -108,7 +108,7 @@ const De = {
108
108
  ]
109
109
  })
110
110
  }
111
- }, Ue = {
111
+ }, Ne = {
112
112
  checkbox: {
113
113
  root: () => ({
114
114
  class: [
@@ -126,7 +126,7 @@ const De = {
126
126
  ]
127
127
  })
128
128
  }
129
- }, Ae = {
129
+ }, Ee = {
130
130
  dropdown: {
131
131
  root: ({ props: e }) => ({
132
132
  class: [
@@ -187,17 +187,17 @@ const De = {
187
187
  itemGroupLabel: "ps-2 fw-bold",
188
188
  input: "w-100"
189
189
  }
190
- }, Ne = {
190
+ }, Le = {
191
191
  column: {
192
192
  sortBadge: "ms-2 my-auto cursor-pointer",
193
193
  headerCell: (e) => {
194
- var t, l, a, o;
194
+ var t, o, l, a;
195
195
  return {
196
196
  class: [
197
197
  {
198
198
  "cursor-move": e.props.reorderableColumns,
199
- "position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((l = e.column) == null ? void 0 : l.context.frozen) || ((a = e.column) == null ? void 0 : a.context.frozen) === "",
200
- "overflow-hidden position-relative bg-clip-padding": (o = e.column) == null ? void 0 : o.context.resizable
199
+ "position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((o = e.column) == null ? void 0 : o.context.frozen) || ((l = e.column) == null ? void 0 : l.context.frozen) === "",
200
+ "overflow-hidden position-relative bg-clip-padding": (a = e.column) == null ? void 0 : a.context.resizable
201
201
  }
202
202
  ]
203
203
  };
@@ -283,22 +283,22 @@ const De = {
283
283
  ]
284
284
  })
285
285
  }
286
- }, Ee = {
286
+ }, Re = {
287
287
  inputtext: {
288
288
  root: (e) => {
289
- var t, l;
289
+ var t, o;
290
290
  return {
291
291
  class: [
292
292
  "form-control",
293
293
  {
294
294
  "form-control-lg": ((t = e.props.size) == null ? void 0 : t.toLowerCase()) == "large",
295
- "form-control-sm": ((l = e.props.size) == null ? void 0 : l.toLowerCase()) == "small"
295
+ "form-control-sm": ((o = e.props.size) == null ? void 0 : o.toLowerCase()) == "small"
296
296
  }
297
297
  ]
298
298
  };
299
299
  }
300
300
  }
301
- }, Re = {
301
+ }, je = {
302
302
  inputmask: {
303
303
  root: () => ({
304
304
  class: [
@@ -306,12 +306,12 @@ const De = {
306
306
  ]
307
307
  })
308
308
  }
309
- }, Le = {
309
+ }, He = {
310
310
  inputSwitch: {
311
311
  root: "form-check form-switch",
312
312
  input: "form-check-input"
313
313
  }
314
- }, je = {
314
+ }, Ye = {
315
315
  textarea: {
316
316
  root: () => ({
317
317
  class: [
@@ -319,13 +319,13 @@ const De = {
319
319
  ]
320
320
  })
321
321
  }
322
- }, He = {
322
+ }, qe = {
323
323
  // More PassThrough options in component file.
324
324
  chips: {
325
325
  root: "d-flex",
326
326
  label: "pe-2"
327
327
  }
328
- }, Ye = {
328
+ }, Ge = {
329
329
  dialog: {
330
330
  header: () => ({
331
331
  class: ["modal-header"]
@@ -368,7 +368,7 @@ const De = {
368
368
  ]
369
369
  })
370
370
  }
371
- }, qe = {
371
+ }, Ke = {
372
372
  overlaypanel: {
373
373
  root: (e) => ({
374
374
  class: [
@@ -382,7 +382,7 @@ const De = {
382
382
  content: "d-flex position-relative",
383
383
  closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
384
384
  }
385
- }, Ge = {
385
+ }, We = {
386
386
  message: {
387
387
  root: ({ props: e }) => ({
388
388
  class: [
@@ -411,13 +411,13 @@ const De = {
411
411
  class: ["px-0 ms-2 btn d-flex"]
412
412
  })
413
413
  }
414
- }, Ke = {
414
+ }, Ze = {
415
415
  // More PT options defined in ForgeStepper.
416
416
  steps: {
417
417
  root: "w-100 mx-2 line",
418
418
  menu: "p-0 m-0 list-unstyled d-flex justify-content-between "
419
419
  }
420
- }, We = {
420
+ }, Je = {
421
421
  tabview: {
422
422
  navContainer: () => ({
423
423
  class: ["nav nav-tabs position-relative"]
@@ -455,7 +455,7 @@ const De = {
455
455
  class: ["p-2"]
456
456
  })
457
457
  }
458
- }, Ze = {
458
+ }, Xe = {
459
459
  // More PassThrough options defined in ForgeDatepicker.
460
460
  calendar: {
461
461
  root: "d-inline-flex relative w-100",
@@ -528,7 +528,7 @@ const De = {
528
528
  decrementButton: "btn btn-sm",
529
529
  incrementButton: "btn btn-sm"
530
530
  }
531
- }, Je = {
531
+ }, Qe = {
532
532
  multiselect: {
533
533
  root: ({ props: e }) => ({
534
534
  class: [
@@ -559,7 +559,7 @@ const De = {
559
559
  ]
560
560
  })
561
561
  }
562
- }, Xe = {
562
+ }, et = {
563
563
  // More PassThrough options in component file.
564
564
  progressbar: {
565
565
  root: () => ({
@@ -572,7 +572,7 @@ const De = {
572
572
  class: ["text-white"]
573
573
  })
574
574
  }
575
- }, Qe = {
575
+ }, tt = {
576
576
  // More PT options can be found in the ForgeTable file.
577
577
  dataTable: {
578
578
  datatable: "position-relative",
@@ -632,7 +632,7 @@ const De = {
632
632
  ]
633
633
  })
634
634
  }
635
- }, et = {
635
+ }, at = {
636
636
  badge: {
637
637
  root: ({ props: e }) => ({
638
638
  class: [
@@ -653,7 +653,7 @@ const De = {
653
653
  ]
654
654
  })
655
655
  }
656
- }, tt = {
656
+ }, lt = {
657
657
  // More PassThrough options in component file.
658
658
  menubar: {
659
659
  menu: ({ instance: e }) => ({
@@ -723,7 +723,7 @@ const De = {
723
723
  ]
724
724
  })
725
725
  }
726
- }, at = {
726
+ }, ot = {
727
727
  tooltip: {
728
728
  root: ({ context: e }) => ({
729
729
  class: [
@@ -745,7 +745,7 @@ const De = {
745
745
  class: ["tooltip-inner"]
746
746
  }
747
747
  }
748
- }, lt = {
748
+ }, nt = {
749
749
  selectbutton: {
750
750
  root: () => ({
751
751
  class: ["btn-group"]
@@ -763,7 +763,7 @@ const De = {
763
763
  ]
764
764
  })
765
765
  }
766
- }, ot = {
766
+ }, st = {
767
767
  progressspinner: {
768
768
  spinner: () => ({
769
769
  class: [
@@ -771,7 +771,7 @@ const De = {
771
771
  ]
772
772
  })
773
773
  }
774
- }, nt = {
774
+ }, it = {
775
775
  card: {
776
776
  root: () => ({
777
777
  class: ["card"]
@@ -795,11 +795,11 @@ const De = {
795
795
  class: ["card-header"]
796
796
  })
797
797
  }
798
- }, st = {
798
+ }, rt = {
799
799
  divider: {
800
800
  root: "border-bottom m-4 w-100"
801
801
  }
802
- }, it = {
802
+ }, dt = {
803
803
  image: {
804
804
  root: "position-relative d-inline-block",
805
805
  button: "preview-button",
@@ -812,7 +812,7 @@ const De = {
812
812
  zoominbutton: "btn text-white",
813
813
  closebutton: "btn text-white"
814
814
  }
815
- }, rt = {
815
+ }, ut = {
816
816
  toast: {
817
817
  message: () => ({
818
818
  class: ["toast-container w-100 position-relative"]
@@ -836,51 +836,51 @@ const De = {
836
836
  class: ["ps-1"]
837
837
  }),
838
838
  icon: ({ props: e }) => {
839
- var t, l, a, o;
839
+ var t, o, l, a;
840
840
  return {
841
841
  class: [
842
842
  "toast-icon",
843
843
  {
844
844
  "text-primary": ((t = e.message) == null ? void 0 : t.severity) === "info",
845
- "text-success": ((l = e.message) == null ? void 0 : l.severity) === "success",
846
- "text-danger": ((a = e.message) == null ? void 0 : a.severity) === "error",
847
- "text-warning": ((o = e.message) == null ? void 0 : o.severity) === "warn"
845
+ "text-success": ((o = e.message) == null ? void 0 : o.severity) === "success",
846
+ "text-danger": ((l = e.message) == null ? void 0 : l.severity) === "error",
847
+ "text-warning": ((a = e.message) == null ? void 0 : a.severity) === "warn"
848
848
  }
849
849
  ]
850
850
  };
851
851
  }
852
852
  }
853
- }, ul = {
854
- ...et,
855
- ...De,
856
- ...nt,
857
- ...Ue,
858
- ...He,
859
- ...Ne,
860
- ...Ze,
861
- ...Ye,
862
- ...st,
853
+ }, cl = {
854
+ ...at,
863
855
  ...Ae,
864
856
  ...it,
865
- ...Ee,
866
- ...Re,
867
- ...Le,
868
- ...Ge,
869
- ...Je,
870
- ...tt,
857
+ ...Ne,
871
858
  ...qe,
859
+ ...Le,
872
860
  ...Xe,
873
- ...ot,
874
- ...lt,
875
- ...Ke,
876
- ...Qe,
877
- ...We,
861
+ ...Ge,
878
862
  ...rt,
863
+ ...Ee,
864
+ ...dt,
865
+ ...Re,
879
866
  ...je,
867
+ ...He,
868
+ ...We,
869
+ ...Qe,
870
+ ...lt,
871
+ ...Ke,
872
+ ...et,
873
+ ...st,
874
+ ...nt,
875
+ ...Ze,
876
+ ...tt,
877
+ ...Je,
878
+ ...ut,
879
+ ...Ye,
880
880
  directives: {
881
- ...at
881
+ ...ot
882
882
  }
883
- }, ne = /* @__PURE__ */ F({
883
+ }, se = /* @__PURE__ */ V({
884
884
  __name: "ForgeAlert",
885
885
  props: {
886
886
  severity: { default: "primary" },
@@ -896,33 +896,33 @@ const De = {
896
896
  },
897
897
  setup(e) {
898
898
  const t = e;
899
- return (l, a) => {
900
- const o = fe;
901
- return i(), w(o, ee(te({ ...l.$attrs, ...t })), {
899
+ return (o, l) => {
900
+ const a = he;
901
+ return i(), h(a, ee(te({ ...o.$attrs, ...t })), {
902
902
  messageicon: b(() => [
903
- u("div", {
904
- class: B(t.icon ? "me-2 pe-1" : "")
903
+ m("div", {
904
+ class: _(t.icon ? "me-2 pe-1" : "")
905
905
  }, [
906
- t.icon ? (i(), w(c(C), {
906
+ t.icon ? (i(), h(p(T), {
907
907
  key: 0,
908
908
  "data-cy": "message-icon",
909
909
  icon: t.icon,
910
- class: B(`text-${t.severity}`),
910
+ class: _(`text-${t.severity}`),
911
911
  height: 35
912
912
  }, null, 8, ["icon", "class"])) : S("", !0)
913
913
  ], 2)
914
914
  ]),
915
915
  closeicon: b(() => [
916
- f(c(C), { icon: "bi:x" })
916
+ f(p(T), { icon: "bi:x" })
917
917
  ]),
918
918
  default: b(() => [
919
- $(l.$slots, "default")
919
+ B(o.$slots, "default")
920
920
  ]),
921
921
  _: 3
922
922
  }, 16);
923
923
  };
924
924
  }
925
- }), cl = /* @__PURE__ */ F({
925
+ }), ml = /* @__PURE__ */ V({
926
926
  __name: "ForgeActionButton",
927
927
  props: {
928
928
  action: {},
@@ -931,28 +931,28 @@ const De = {
931
931
  params: { default: Array }
932
932
  },
933
933
  setup(e) {
934
- const t = I(!1), l = e, a = async () => {
934
+ const t = I(!1), o = e, l = async () => {
935
935
  t.value = !0;
936
936
  try {
937
- await l.action.apply(this, l.params);
938
- } catch (o) {
939
- await l.errorAction.apply(this, l.errorParams ? [...l.errorParams, o] : [o]);
937
+ await o.action.apply(this, o.params);
938
+ } catch (a) {
939
+ await o.errorAction.apply(this, o.errorParams ? [...o.errorParams, a] : [a]);
940
940
  }
941
941
  t.value = !1;
942
942
  };
943
- return (o, n) => {
944
- const r = R;
945
- return i(), m(N, null, [
946
- f(r, T({ ...l, ...o.$attrs }, {
943
+ return (a, n) => {
944
+ const d = L;
945
+ return i(), y(N, null, [
946
+ f(d, C({ ...o, ...a.$attrs }, {
947
947
  loading: t.value,
948
- disabled: t.value || l.disabled,
949
- onClick: a
948
+ disabled: t.value || o.disabled,
949
+ onClick: l
950
950
  }), null, 16, ["loading", "disabled"]),
951
- f(c(he))
951
+ f(p(xe))
952
952
  ], 64);
953
953
  };
954
954
  }
955
- }), dt = /* @__PURE__ */ u("div", null, null, -1), ut = ["for"], ye = /* @__PURE__ */ F({
955
+ }), ct = /* @__PURE__ */ m("div", null, null, -1), mt = ["for"], ve = /* @__PURE__ */ V({
956
956
  __name: "ForgeCheckbox",
957
957
  props: {
958
958
  label: { default: "" },
@@ -979,75 +979,75 @@ const De = {
979
979
  },
980
980
  emits: ["update:modelValue"],
981
981
  setup(e, { emit: t }) {
982
- const l = t, a = e, { checked: o, handleChange: n, setValue: r, errors: s, errorMessage: p } = W(() => a.name ?? a.label, void 0, {
982
+ const o = t, l = e, { checked: a, handleChange: n, setValue: d, errors: u, errorMessage: c } = K(() => l.name ?? l.label, void 0, {
983
983
  type: "checkbox",
984
984
  checkedValue: !0
985
- }), d = (v) => {
986
- a.disabled || (n(v), l("update:modelValue", !a.modelValue));
985
+ }), r = (v) => {
986
+ l.disabled || (n(v), o("update:modelValue", !l.modelValue));
987
987
  };
988
988
  ae(() => {
989
- a.value !== void 0 && a.value !== (o == null ? void 0 : o.value) ? r(a.value) : a.modelValue !== void 0 && a.modelValue !== (o == null ? void 0 : o.value) && r(a.modelValue);
990
- }), ie(() => a.value, (v) => {
991
- r(v);
989
+ l.value !== void 0 && l.value !== (a == null ? void 0 : a.value) ? d(l.value) : l.modelValue !== void 0 && l.modelValue !== (a == null ? void 0 : a.value) && d(l.modelValue);
990
+ }), re(() => l.value, (v) => {
991
+ d(v);
992
992
  });
993
- const y = x(() => s.value.length > 0);
994
- return (v, k) => {
995
- const _ = we;
996
- return i(), m(N, null, [
997
- u("div", T({
993
+ const s = k(() => u.value.length > 0);
994
+ return (v, x) => {
995
+ const F = ke;
996
+ return i(), y(N, null, [
997
+ m("div", C({
998
998
  class: "d-flex",
999
999
  "data-cy": "checkbox-container"
1000
1000
  }, { ...v.$attrs }), [
1001
- f(_, T({
1002
- id: a.name
1003
- }, { ...a }, {
1004
- modelValue: c(o),
1005
- "onUpdate:modelValue": k[0] || (k[0] = (P) => le(o) ? o.value = P : null),
1006
- "input-class": { "is-invalid": y.value },
1007
- onChange: d
1001
+ f(F, C({
1002
+ id: l.name
1003
+ }, { ...l }, {
1004
+ modelValue: p(a),
1005
+ "onUpdate:modelValue": x[0] || (x[0] = (P) => le(a) ? a.value = P : null),
1006
+ "input-class": { "is-invalid": s.value },
1007
+ onChange: r
1008
1008
  }), {
1009
1009
  icon: b(() => [
1010
- dt
1010
+ ct
1011
1011
  ]),
1012
1012
  _: 1
1013
1013
  }, 16, ["id", "modelValue", "input-class"]),
1014
- u("label", {
1015
- for: a.name,
1016
- class: B(`${a.disabled ? "opacity-50" : "cursor-pointer"} ${y.value ? "text-danger-dark" : ""}`),
1017
- onClick: d
1014
+ m("label", {
1015
+ for: l.name,
1016
+ class: _(`${l.disabled ? "opacity-50" : "cursor-pointer"} ${s.value ? "text-danger-dark" : ""}`),
1017
+ onClick: r
1018
1018
  }, [
1019
- $(v.$slots, "default", {}, () => [
1020
- z(h(a.label), 1)
1019
+ B(v.$slots, "default", {}, () => [
1020
+ O(w(l.label), 1)
1021
1021
  ])
1022
- ], 10, ut)
1022
+ ], 10, mt)
1023
1023
  ], 16),
1024
- H(u("small", {
1024
+ R(m("small", {
1025
1025
  "data-cy": "error",
1026
1026
  class: "text-invalid"
1027
- }, h(c(p)), 513), [
1028
- [G, y.value]
1027
+ }, w(p(c)), 513), [
1028
+ [H, s.value]
1029
1029
  ])
1030
1030
  ], 64);
1031
1031
  };
1032
1032
  }
1033
- }), ct = { class: "forge-loader" }, ve = /* @__PURE__ */ F({
1033
+ }), pt = { class: "forge-loader" }, ye = /* @__PURE__ */ V({
1034
1034
  __name: "ForgeLoader",
1035
1035
  props: {
1036
1036
  severity: { default: "primary" }
1037
1037
  },
1038
1038
  setup(e) {
1039
1039
  const t = e;
1040
- return (l, a) => {
1041
- const o = xe;
1042
- return i(), m("div", ct, [
1043
- f(o, {
1040
+ return (o, l) => {
1041
+ const a = $e;
1042
+ return i(), y("div", pt, [
1043
+ f(a, {
1044
1044
  "animation-duration": ".75",
1045
- class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
1045
+ class: _(`text-${t.severity === void 0 ? "primary" : t.severity}`)
1046
1046
  }, null, 8, ["class"])
1047
1047
  ]);
1048
1048
  };
1049
1049
  }
1050
- }), mt = ["href", "target"], ml = /* @__PURE__ */ F({
1050
+ }), vt = ["href", "target"], pl = /* @__PURE__ */ V({
1051
1051
  __name: "ForgeLink",
1052
1052
  props: {
1053
1053
  url: {},
@@ -1065,7 +1065,7 @@ const De = {
1065
1065
  iconName: {}
1066
1066
  },
1067
1067
  setup(e) {
1068
- const t = x(() => ({
1068
+ const t = k(() => ({
1069
1069
  [`link-${e.severity}`]: e.severity,
1070
1070
  [`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
1071
1071
  [`link-opacity-${e.opacity}`]: e.opacity,
@@ -1074,48 +1074,48 @@ const De = {
1074
1074
  [`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
1075
1075
  [`link-offset-${e.underlineOffset}`]: e.underlineOffset,
1076
1076
  "icon-link icon-link-hover": e.animateIconOnHover
1077
- })), l = x(() => ({
1077
+ })), o = k(() => ({
1078
1078
  "order-2": e.positionIconEnd,
1079
1079
  "me-1": !e.positionIconEnd && !e.animateIconOnHover,
1080
1080
  "ms-1": e.positionIconEnd && !e.animateIconOnHover,
1081
1081
  "ms-0": e.positionIconEnd && e.animateIconOnHover,
1082
1082
  "me-0": e.animateIconOnHover
1083
1083
  }));
1084
- return (a, o) => (i(), m("a", {
1084
+ return (l, a) => (i(), y("a", {
1085
1085
  id: "link",
1086
- class: B(["cursor-pointer d-flex", t.value]),
1087
- href: a.url,
1088
- target: a.target
1086
+ class: _(["cursor-pointer d-flex", t.value]),
1087
+ href: l.url,
1088
+ target: l.target
1089
1089
  }, [
1090
- $(a.$slots, "default", {}, () => [
1091
- a.iconName ? (i(), w(c(C), {
1090
+ B(l.$slots, "default", {}, () => [
1091
+ l.iconName ? (i(), h(p(T), {
1092
1092
  key: 0,
1093
1093
  id: "link-icon",
1094
- icon: a.iconName,
1095
- class: B(["bi my-auto", l.value])
1094
+ icon: l.iconName,
1095
+ class: _(["bi my-auto", o.value])
1096
1096
  }, null, 8, ["icon", "class"])) : S("", !0),
1097
- z(" " + h(a.label), 1)
1097
+ O(" " + w(l.label), 1)
1098
1098
  ])
1099
- ], 10, mt));
1099
+ ], 10, vt));
1100
1100
  }
1101
1101
  });
1102
- function pt(e) {
1102
+ function yt(e) {
1103
1103
  const t = {
1104
1104
  errorMessage: "",
1105
1105
  errorDetails: []
1106
1106
  };
1107
1107
  if (e.exception && (t.errorMessage = e.exception), e.message && (Array.isArray(e.message) ? t.errorDetails = e.message : t.errorMessage = e.message), e.response) {
1108
- const l = JSON.parse(e.response);
1109
- l.errors && (t.errorDetails = Object.values(l.errors).flat()), l.message && (t.errorDetails = l.message);
1108
+ const o = JSON.parse(e.response);
1109
+ o.errors && (t.errorDetails = Object.values(o.errors).flat()), o.message && (t.errorDetails = o.message);
1110
1110
  }
1111
1111
  return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
1112
1112
  }
1113
- const yt = { key: 0 }, vt = {
1113
+ const bt = { key: 0 }, ft = {
1114
1114
  class: "d-flex w-100",
1115
1115
  "data-cy": "footer"
1116
- }, pl = /* @__PURE__ */ F({
1116
+ }, vl = /* @__PURE__ */ V({
1117
1117
  __name: "ForgeModal",
1118
- props: /* @__PURE__ */ L({
1118
+ props: /* @__PURE__ */ j({
1119
1119
  cancelText: { default: "Cancel" },
1120
1120
  submitText: { default: "Submit" },
1121
1121
  showFooter: { type: Boolean, default: !0 },
@@ -1158,105 +1158,105 @@ const yt = { key: 0 }, vt = {
1158
1158
  }),
1159
1159
  emits: ["update:visible"],
1160
1160
  setup(e) {
1161
- const t = E(e, "visible"), l = I(!1), a = e, o = I(!1), n = I({
1161
+ const t = E(e, "visible"), o = I(!1), l = e, a = I(!1), n = I({
1162
1162
  hasError: !1,
1163
1163
  header: "",
1164
1164
  message: []
1165
- }), r = () => {
1166
- l.value = !1;
1167
- }, s = () => {
1168
- l.value = !0;
1169
- }, p = () => {
1165
+ }), d = () => {
1166
+ o.value = !1;
1167
+ }, u = () => {
1168
+ o.value = !0;
1169
+ }, c = () => {
1170
1170
  t.value = !1;
1171
- }, d = async () => {
1172
- if (a.onConfirm) {
1173
- o.value = !0, n.value.hasError = !1;
1171
+ }, r = async () => {
1172
+ if (l.onConfirm) {
1173
+ a.value = !0, n.value.hasError = !1;
1174
1174
  try {
1175
- const v = await a.onConfirm();
1176
- (v || v == null) && p();
1175
+ const v = await l.onConfirm();
1176
+ (v || v == null) && c();
1177
1177
  } catch (v) {
1178
1178
  n.value.hasError = !0;
1179
- const k = pt(v);
1180
- n.value.header = k.errorMessage, n.value.message = k.errorDetails;
1179
+ const x = yt(v);
1180
+ n.value.header = x.errorMessage, n.value.message = x.errorDetails;
1181
1181
  }
1182
- o.value = !1;
1182
+ a.value = !1;
1183
1183
  }
1184
- }, y = x(() => ({
1184
+ }, s = k(() => ({
1185
1185
  root: [
1186
1186
  "modal modal-dialog modal-content h-auto m-0",
1187
1187
  {
1188
- "mw-100 vh-100 vw-100 top-0 start-0": l.value
1188
+ "mw-100 vh-100 vw-100 top-0 start-0": o.value
1189
1189
  }
1190
1190
  ]
1191
1191
  }));
1192
- return (v, k) => {
1193
- const _ = R, P = ke;
1194
- return i(), w(P, T(a, {
1195
- onMaximize: s,
1196
- onUnmaximize: r,
1197
- pt: y.value
1192
+ return (v, x) => {
1193
+ const F = L, P = Be;
1194
+ return i(), h(P, C(l, {
1195
+ onMaximize: u,
1196
+ onUnmaximize: d,
1197
+ pt: s.value
1198
1198
  }), oe({
1199
1199
  closeicon: b(() => [
1200
- f(c(C), {
1200
+ f(p(T), {
1201
1201
  "data-cy": "close-icon",
1202
1202
  icon: "bi:x-lg",
1203
1203
  width: "18",
1204
1204
  height: "18",
1205
- onClick: p
1205
+ onClick: c
1206
1206
  })
1207
1207
  ]),
1208
1208
  maximizeicon: b(() => [
1209
- f(c(C), {
1209
+ f(p(T), {
1210
1210
  "data-cy": "maximisable-icon",
1211
- icon: l.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1211
+ icon: o.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1212
1212
  width: "16",
1213
1213
  height: "16"
1214
1214
  }, null, 8, ["icon"])
1215
1215
  ]),
1216
1216
  _: 2
1217
1217
  }, [
1218
- Y(v.$slots, (V, O) => ({
1219
- name: O,
1218
+ q(v.$slots, (M, z) => ({
1219
+ name: z,
1220
1220
  fn: b((g) => [
1221
- n.value.hasError ? (i(), w(ne, {
1221
+ n.value.hasError ? (i(), h(se, {
1222
1222
  key: 0,
1223
1223
  severity: "danger",
1224
1224
  "data-cy": "error"
1225
1225
  }, {
1226
1226
  default: b(() => [
1227
- u("p", {
1228
- class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
1229
- }, h(n.value.header), 3),
1230
- n.value.message.length > 0 ? (i(), m("ul", yt, [
1231
- (i(!0), m(N, null, Y(n.value.message, (M) => (i(), m("li", { key: M }, h(M), 1))), 128))
1227
+ m("p", {
1228
+ class: _(n.value.message.length > 0 ? "my-auto" : "mb-0")
1229
+ }, w(n.value.header), 3),
1230
+ n.value.message.length > 0 ? (i(), y("ul", bt, [
1231
+ (i(!0), y(N, null, q(n.value.message, ($) => (i(), y("li", { key: $ }, w($), 1))), 128))
1232
1232
  ])) : S("", !0)
1233
1233
  ]),
1234
1234
  _: 1
1235
1235
  })) : S("", !0),
1236
- $(v.$slots, O, ee(te(g || {}))),
1237
- o.value ? $(v.$slots, "loader", { key: 1 }, () => [
1238
- f(ve, { "data-cy": "loader" })
1236
+ B(v.$slots, z, ee(te(g || {}))),
1237
+ a.value ? B(v.$slots, "loader", { key: 1 }, () => [
1238
+ f(ye, { "data-cy": "loader" })
1239
1239
  ]) : S("", !0)
1240
1240
  ])
1241
1241
  })),
1242
1242
  v.showFooter ? {
1243
1243
  name: "footer",
1244
1244
  fn: b(() => [
1245
- u("div", vt, [
1246
- f(_, {
1245
+ m("div", ft, [
1246
+ f(F, {
1247
1247
  label: v.cancelText,
1248
- class: B(a.cancelClass),
1248
+ class: _(l.cancelClass),
1249
1249
  outlined: "",
1250
- onClick: p,
1250
+ onClick: c,
1251
1251
  id: "cancel-button",
1252
- type: a.cancelButtonType
1252
+ type: l.cancelButtonType
1253
1253
  }, null, 8, ["label", "class", "type"]),
1254
- f(_, {
1254
+ f(F, {
1255
1255
  label: v.submitText,
1256
- class: B([a.submitClass, "ms-auto"]),
1257
- onClick: d,
1256
+ class: _([l.submitClass, "ms-auto"]),
1257
+ onClick: r,
1258
1258
  id: "submit-button",
1259
- type: a.submitButtonType
1259
+ type: l.submitButtonType
1260
1260
  }, null, 8, ["label", "class", "type"])
1261
1261
  ])
1262
1262
  ]),
@@ -1265,9 +1265,9 @@ const yt = { key: 0 }, vt = {
1265
1265
  ]), 1040, ["pt"]);
1266
1266
  };
1267
1267
  }
1268
- }), bt = ["id"], ft = { key: 0 }, gt = { key: 0 }, ht = { class: "d-flex justify-content-between align-items-center position-relative" }, wt = { key: 1 }, xt = { "data-cy": "readonly-value" }, kt = /* @__PURE__ */ F({
1268
+ }), gt = ["id"], ht = { key: 0 }, wt = { key: 0 }, xt = { class: "d-flex justify-content-between align-items-center position-relative" }, kt = { key: 1 }, $t = { "data-cy": "readonly-value" }, Bt = /* @__PURE__ */ V({
1269
1269
  __name: "ForgeInlineEditor",
1270
- props: /* @__PURE__ */ L({
1270
+ props: /* @__PURE__ */ j({
1271
1271
  name: { default: "" },
1272
1272
  completeAction: {},
1273
1273
  errorAction: {},
@@ -1280,93 +1280,93 @@ const yt = { key: 0 }, vt = {
1280
1280
  }),
1281
1281
  emits: ["update:modelValue"],
1282
1282
  setup(e) {
1283
- const t = e, l = E(e, "modelValue"), a = I(!1), o = I(), n = () => {
1284
- var _;
1285
- a.value = !a.value, (_ = o.value) == null || _.focus();
1286
- }, r = async () => {
1287
- if (k.value)
1283
+ const t = e, o = E(e, "modelValue"), l = I(!1), a = I(), n = () => {
1284
+ var F;
1285
+ l.value = !l.value, (F = a.value) == null || F.focus();
1286
+ }, d = async () => {
1287
+ if (x.value)
1288
1288
  return !1;
1289
- if (l.value = v.value, t.completeAction)
1289
+ if (o.value = v.value, t.completeAction)
1290
1290
  try {
1291
- await t.completeAction.apply(this, t.params), a.value = !a.value;
1291
+ await t.completeAction.apply(this, t.params), l.value = !l.value;
1292
1292
  } catch {
1293
1293
  t.errorAction && await t.errorAction.apply(this, t.errorParams);
1294
1294
  }
1295
1295
  else
1296
- a.value = !a.value;
1297
- }, s = () => {
1298
- a.value = !a.value;
1299
- }, p = () => {
1296
+ l.value = !l.value;
1297
+ }, u = () => {
1298
+ l.value = !l.value;
1299
+ }, c = () => {
1300
1300
  v.value = null;
1301
- }, { errorMessage: d, errors: y, value: v } = W(() => t.name, void 0, {
1302
- initialValue: l.value
1301
+ }, { errorMessage: r, errors: s, value: v } = K(() => t.name, void 0, {
1302
+ initialValue: o.value
1303
1303
  });
1304
1304
  ae(() => {
1305
- v.value = l.value;
1305
+ v.value = o.value;
1306
1306
  });
1307
- const k = x(() => y.value.length > 0);
1308
- return (_, P) => {
1309
- const V = re, O = R;
1310
- return i(), m("div", {
1307
+ const x = k(() => s.value.length > 0);
1308
+ return (F, P) => {
1309
+ const M = de, z = L;
1310
+ return i(), y("div", {
1311
1311
  id: t.name
1312
1312
  }, [
1313
- _.readonly ? (i(), m("div", wt, [
1314
- $(_.$slots, "default", {}, () => [
1315
- u("span", xt, h(c(v)), 1)
1313
+ F.readonly ? (i(), y("div", kt, [
1314
+ B(F.$slots, "default", {}, () => [
1315
+ m("span", $t, w(p(v)), 1)
1316
1316
  ])
1317
- ])) : (i(), m("div", ft, [
1318
- a.value ? (i(), m("div", gt, [
1319
- H((i(), m("div", ht, [
1320
- $(_.$slots, "editor", {
1321
- class: B({ "is-invalid": k.value }),
1322
- editFinished: r,
1323
- cancel: s,
1324
- val: c(v)
1317
+ ])) : (i(), y("div", ht, [
1318
+ l.value ? (i(), y("div", wt, [
1319
+ R((i(), y("div", xt, [
1320
+ B(F.$slots, "editor", {
1321
+ class: _({ "is-invalid": x.value }),
1322
+ editFinished: d,
1323
+ cancel: u,
1324
+ val: p(v)
1325
1325
  }, () => [
1326
- f(V, {
1326
+ f(M, {
1327
1327
  "data-cy": "input",
1328
1328
  ref_key: "input",
1329
- ref: o,
1330
- modelValue: c(v),
1329
+ ref: a,
1330
+ modelValue: p(v),
1331
1331
  "onUpdate:modelValue": P[0] || (P[0] = (g) => le(v) ? v.value = g : null),
1332
1332
  modelModifiers: { trim: !0 },
1333
- class: B({ "is-invalid": k.value }),
1333
+ class: _({ "is-invalid": x.value }),
1334
1334
  onKeydown: [
1335
- X(r, ["enter"]),
1336
- X(s, ["esc"])
1335
+ X(d, ["enter"]),
1336
+ X(u, ["esc"])
1337
1337
  ]
1338
1338
  }, null, 8, ["modelValue", "class"])
1339
1339
  ]),
1340
- f(c(C), {
1340
+ f(p(T), {
1341
1341
  icon: "bi:x-circle",
1342
1342
  class: "mx-2 cursor-pointer",
1343
- onClick: p,
1344
- onKeydown: X(p, ["enter"]),
1343
+ onClick: c,
1344
+ onKeydown: X(c, ["enter"]),
1345
1345
  "data-cy": "clear-icon"
1346
1346
  })
1347
1347
  ])), [
1348
- [c($e), r]
1348
+ [p(Fe), d]
1349
1349
  ])
1350
- ])) : (i(), m("div", {
1350
+ ])) : (i(), y("div", {
1351
1351
  key: 1,
1352
1352
  class: "d-flex text-muted",
1353
1353
  onClick: n,
1354
1354
  onFocus: n
1355
1355
  }, [
1356
- $(_.$slots, "default", {}, () => [
1357
- u("div", {
1358
- class: B(["pe-2 cursor-pointer", { "text-invalid": k.value }]),
1356
+ B(F.$slots, "default", {}, () => [
1357
+ m("div", {
1358
+ class: _(["pe-2 cursor-pointer", { "text-invalid": x.value }]),
1359
1359
  "data-cy": "value"
1360
- }, h(c(v) ? c(v) : "Click to edit"), 3)
1360
+ }, w(p(v) ? p(v) : "Click to edit"), 3)
1361
1361
  ]),
1362
- f(O, {
1362
+ f(z, {
1363
1363
  link: "",
1364
1364
  class: "p-0 m-0"
1365
1365
  }, {
1366
1366
  default: b(() => [
1367
- f(c(C), {
1367
+ f(p(T), {
1368
1368
  icon: "bi:pencil",
1369
- class: B(k.value ? "text-invalid" : "text-muted"),
1369
+ class: _(x.value ? "text-invalid" : "text-muted"),
1370
1370
  "data-cy": "edit-icon",
1371
1371
  onKeydown: X(n, ["enter"])
1372
1372
  }, null, 8, ["class"])
@@ -1375,16 +1375,16 @@ const yt = { key: 0 }, vt = {
1375
1375
  })
1376
1376
  ], 32))
1377
1377
  ])),
1378
- H(u("small", {
1378
+ R(m("small", {
1379
1379
  "data-cy": "error",
1380
1380
  class: "text-invalid"
1381
- }, h(c(d)), 513), [
1382
- [G, k.value]
1381
+ }, w(p(r)), 513), [
1382
+ [H, x.value]
1383
1383
  ])
1384
- ], 8, bt);
1384
+ ], 8, gt);
1385
1385
  };
1386
1386
  }
1387
- }), $t = ["href"], yl = /* @__PURE__ */ F({
1387
+ }), Ft = ["href"], yl = /* @__PURE__ */ V({
1388
1388
  __name: "ForgeNavbar",
1389
1389
  props: {
1390
1390
  severity: { default: "light" },
@@ -1401,7 +1401,7 @@ const yt = { key: 0 }, vt = {
1401
1401
  unstyled: { type: Boolean }
1402
1402
  },
1403
1403
  setup(e) {
1404
- const t = e, l = x(() => ({
1404
+ const t = e, o = k(() => ({
1405
1405
  root: () => ({
1406
1406
  class: [
1407
1407
  "navbar container-fluid navbar-expand-lg",
@@ -1428,28 +1428,28 @@ const yt = { key: 0 }, vt = {
1428
1428
  ]
1429
1429
  })
1430
1430
  }));
1431
- return (a, o) => {
1432
- const n = Be;
1433
- return i(), w(n, T({ ...t, ...a.$attrs }, {
1434
- pt: l.value,
1431
+ return (l, a) => {
1432
+ const n = _e;
1433
+ return i(), h(n, C({ ...t, ...l.$attrs }, {
1434
+ pt: o.value,
1435
1435
  "data-cy": "navbar"
1436
1436
  }), oe({
1437
1437
  start: b(() => [
1438
- u("a", {
1439
- href: a.logoUrl,
1438
+ m("a", {
1439
+ href: l.logoUrl,
1440
1440
  class: "navbar-brand ms-3",
1441
1441
  "data-cy": "logo"
1442
1442
  }, [
1443
- $(a.$slots, "logo", {}, () => [
1444
- z(" Logo ")
1443
+ B(l.$slots, "logo", {}, () => [
1444
+ O(" Logo ")
1445
1445
  ])
1446
- ], 8, $t)
1446
+ ], 8, Ft)
1447
1447
  ]),
1448
1448
  menubuttonicon: b(() => [
1449
- $(a.$slots, "menubuttonicon", {}, () => [
1450
- f(c(C), {
1449
+ B(l.$slots, "menubuttonicon", {}, () => [
1450
+ f(p(T), {
1451
1451
  icon: "bi:list",
1452
- class: B(t.severity === "light" ? "text-black" : "text-white"),
1452
+ class: _(t.severity === "light" ? "text-black" : "text-white"),
1453
1453
  height: "24",
1454
1454
  "data-cy": "burger-icon"
1455
1455
  }, null, 8, ["class"])
@@ -1457,16 +1457,16 @@ const yt = { key: 0 }, vt = {
1457
1457
  ]),
1458
1458
  _: 2
1459
1459
  }, [
1460
- Y(a.$slots, (r, s) => ({
1461
- name: s,
1462
- fn: b((p) => [
1463
- $(a.$slots, s, ee(te(p)))
1460
+ q(l.$slots, (d, u) => ({
1461
+ name: u,
1462
+ fn: b((c) => [
1463
+ B(l.$slots, u, ee(te(c)))
1464
1464
  ])
1465
1465
  }))
1466
1466
  ]), 1040, ["pt"]);
1467
1467
  };
1468
1468
  }
1469
- }), Bt = /* @__PURE__ */ u("div", { class: "ps-1" }, "Select all", -1), _t = ["data-cy"], Ft = { class: "ps-1 w-100" }, St = { class: "multiselect__tag d-inline-flex" }, Vt = { class: "my-auto" }, Ct = /* @__PURE__ */ F({
1469
+ }), _t = /* @__PURE__ */ m("div", { class: "ps-1" }, "Select all", -1), Vt = ["data-cy"], St = { class: "ps-1 w-100" }, Ct = { class: "multiselect__tag d-inline-flex" }, Tt = { class: "my-auto" }, be = /* @__PURE__ */ V({
1470
1470
  __name: "ForgeMultiSelect",
1471
1471
  props: {
1472
1472
  severity: { default: "primary" },
@@ -1478,95 +1478,95 @@ const yt = { key: 0 }, vt = {
1478
1478
  },
1479
1479
  emits: ["update:modelValue"],
1480
1480
  setup(e, { emit: t }) {
1481
- const l = e, a = (U, D) => {
1481
+ const o = e, l = (U, D) => {
1482
1482
  const J = {
1483
1483
  ...D,
1484
1484
  $isDisabled: D.$isDisabled ?? !1
1485
1485
  };
1486
1486
  U(J);
1487
- }, o = ce(), n = t, { errors: r, value: s, errorMessage: p } = W(() => l.name, void 0, {
1488
- initialValue: o.modelValue
1489
- }), d = I(!1), y = x(() => ({
1487
+ }, a = ce(), n = t, { errors: d, value: u, errorMessage: c } = K(() => o.name, void 0, {
1488
+ initialValue: a.modelValue
1489
+ }), r = I(!1), s = k(() => ({
1490
1490
  multiple: !0,
1491
1491
  label: "label",
1492
1492
  trackBy: "id",
1493
- showPointer: !d.value,
1494
- placeholder: o.searchable === null || o.searchable ? "Search" : "Select",
1493
+ showPointer: !r.value,
1494
+ placeholder: a.searchable === null || a.searchable ? "Search" : "Select",
1495
1495
  allowEmpty: !0,
1496
1496
  selectValue: "",
1497
- closeOnSelect: !!(o.multiple === null || o.multiple),
1498
- clearOnSelect: !!(o.multiple === null || o.multiple),
1499
- searchable: !!(o.searchable === null || o.searchable) && o.modelValue.length === o.options.length,
1497
+ closeOnSelect: !!(a.multiple === null || a.multiple),
1498
+ clearOnSelect: !!(a.multiple === null || a.multiple),
1499
+ searchable: !!(a.searchable === null || a.searchable) && a.modelValue.length === a.options.length,
1500
1500
  async: !1,
1501
- ...o
1502
- })), v = x(() => `forge-multiselect-${l.severity}`), k = x(() => `multiselect__option ${d.value ? " multiselect__option--highlight" : ""} ${_.value ? " multiselect__option--selected" : ""}`), _ = x(() => y.value && !(y.value.multiple || !l.showSelectAll || y.value.async) ? !1 : o.modelValue.length === o.options.length), P = x(() => r.value.length > 0), V = x(() => !!((o.allowEmpty == null || o.allowEmpty) && l.showClearSelection && (y.value.multiple ? o.modelValue.length > 0 : o.modelValue))), O = () => d.value = !0, g = () => d.value = !1, M = () => {
1503
- s.value = y.value.multiple ? [] : null, n("update:modelValue", s.value);
1504
- }, q = (U) => {
1505
- n("update:modelValue", l.selectValue ? U.map((D) => D[l.selectValue]) : U);
1506
- }, Z = (U) => o.modelValue !== null ? o.modelValue.some((D) => y.value.selectValue ? U[l.selectValue] === D : U.id === D.id && U.label === D.label) : !1, se = () => {
1507
- _.value ? M() : (s.value = [...o.options], n("update:modelValue", [...o.options]));
1501
+ ...a
1502
+ })), v = k(() => `forge-multiselect-${o.severity}`), x = k(() => `multiselect__option ${r.value ? " multiselect__option--highlight" : ""} ${F.value ? " multiselect__option--selected" : ""}`), F = k(() => s.value && !(s.value.multiple || !o.showSelectAll || s.value.async) ? !1 : a.modelValue.length === a.options.length), P = k(() => d.value.length > 0), M = k(() => !!((a.allowEmpty == null || a.allowEmpty) && o.showClearSelection && (s.value.multiple ? a.modelValue.length > 0 : a.modelValue))), z = () => r.value = !0, g = () => r.value = !1, $ = () => {
1503
+ u.value = s.value.multiple ? [] : null, n("update:modelValue", u.value);
1504
+ }, G = (U) => {
1505
+ n("update:modelValue", o.selectValue ? U.map((D) => D[o.selectValue]) : U);
1506
+ }, Z = (U) => a.modelValue !== null ? a.modelValue.some((D) => s.value.selectValue ? U[o.selectValue] === D : U.id === D.id && U.label === D.label) : !1, ie = () => {
1507
+ F.value ? $() : (u.value = [...a.options], n("update:modelValue", [...a.options]));
1508
1508
  };
1509
1509
  return (U, D) => {
1510
- const J = ye;
1511
- return i(), m(N, null, [
1512
- f(c(_e), T(y.value, {
1510
+ const J = ve;
1511
+ return i(), y(N, null, [
1512
+ f(p(Ve), C(s.value, {
1513
1513
  class: [v.value, P.value ? "is-invalid" : ""],
1514
1514
  "data-cy": "multiselect",
1515
1515
  "onUpdate:modelValue": [
1516
- q,
1517
- D[1] || (D[1] = (A) => le(s) ? s.value = A : null)
1516
+ G,
1517
+ D[1] || (D[1] = (A) => le(u) ? u.value = A : null)
1518
1518
  ],
1519
- modelValue: c(s)
1519
+ modelValue: p(u)
1520
1520
  }), oe({
1521
1521
  caret: b(({ toggle: A }) => [
1522
- V.value ? (i(), w(c(C), {
1522
+ M.value ? (i(), h(p(T), {
1523
1523
  key: 0,
1524
1524
  icon: "bi:x",
1525
1525
  class: "my-auto multiselect__clear-icon",
1526
- onMousedown: D[0] || (D[0] = j((K) => M(), ["prevent", "stop"])),
1526
+ onMousedown: D[0] || (D[0] = Y((W) => $(), ["prevent", "stop"])),
1527
1527
  "data-cy": "clear",
1528
1528
  height: "18px",
1529
1529
  width: "18px"
1530
1530
  })) : S("", !0),
1531
- f(c(C), {
1531
+ f(p(T), {
1532
1532
  icon: "bi:chevron-down",
1533
1533
  onClick: A,
1534
1534
  class: "multiselect__select"
1535
1535
  }, null, 8, ["onClick"])
1536
1536
  ]),
1537
- tag: b(({ option: A, remove: K }) => [
1538
- u("div", St, [
1539
- u("div", Vt, h(A.label), 1),
1540
- f(c(C), {
1537
+ tag: b(({ option: A, remove: W }) => [
1538
+ m("div", Ct, [
1539
+ m("div", Tt, w(A.label), 1),
1540
+ f(p(T), {
1541
1541
  icon: "bi:x",
1542
1542
  class: "my-auto multiselect__tag-icon",
1543
- onMousedown: j((Ua) => a(K, A), ["prevent", "stop"]),
1543
+ onMousedown: Y((Aa) => l(W, A), ["prevent", "stop"]),
1544
1544
  height: "18px",
1545
1545
  width: "18px"
1546
1546
  }, null, 8, ["onMousedown"])
1547
1547
  ])
1548
1548
  ]),
1549
1549
  default: b(() => [
1550
- (i(!0), m(N, null, Y(U.$slots, (A, K) => $(U.$slots, K, { slot: K })), 256))
1550
+ (i(!0), y(N, null, q(U.$slots, (A, W) => B(U.$slots, W, { slot: W })), 256))
1551
1551
  ]),
1552
1552
  _: 2
1553
1553
  }, [
1554
- y.value.multiple && U.showSelectAll && !y.value.async ? {
1554
+ s.value.multiple && U.showSelectAll && !s.value.async ? {
1555
1555
  name: "beforeList",
1556
1556
  fn: b(() => [
1557
- u("li", {
1557
+ m("li", {
1558
1558
  class: "multiselect__element",
1559
- onClick: se,
1560
- onMouseover: O,
1559
+ onClick: ie,
1560
+ onMouseover: z,
1561
1561
  onMouseleave: g,
1562
1562
  "data-cy": "toggle-all"
1563
1563
  }, [
1564
- u("span", {
1565
- class: B(`${k.value}`)
1564
+ m("span", {
1565
+ class: _(`${x.value}`)
1566
1566
  }, [
1567
- f(J, { value: _.value }, {
1567
+ f(J, { value: F.value }, {
1568
1568
  default: b(() => [
1569
- Bt
1569
+ _t
1570
1570
  ]),
1571
1571
  _: 1
1572
1572
  }, 8, ["value"])
@@ -1575,46 +1575,46 @@ const yt = { key: 0 }, vt = {
1575
1575
  ]),
1576
1576
  key: "0"
1577
1577
  } : void 0,
1578
- y.value.multiple ? {
1578
+ s.value.multiple ? {
1579
1579
  name: "option",
1580
1580
  fn: b(({ option: A }) => [
1581
- u("div", {
1581
+ m("div", {
1582
1582
  "data-cy": A.label
1583
1583
  }, [
1584
- (i(), w(J, {
1584
+ (i(), h(J, {
1585
1585
  value: Z(A),
1586
1586
  key: A
1587
1587
  }, {
1588
1588
  default: b(() => [
1589
- u("div", Ft, h(A[y.value.label]), 1)
1589
+ m("div", St, w(A[s.value.label]), 1)
1590
1590
  ]),
1591
1591
  _: 2
1592
1592
  }, 1032, ["value"]))
1593
- ], 8, _t)
1593
+ ], 8, Vt)
1594
1594
  ]),
1595
1595
  key: "1"
1596
1596
  } : void 0
1597
1597
  ]), 1040, ["class", "modelValue"]),
1598
- H(u("small", {
1598
+ R(m("small", {
1599
1599
  "data-cy": "error",
1600
1600
  class: "invalid-feedback"
1601
- }, h(c(p)), 513), [
1602
- [G, P.value]
1601
+ }, w(p(c)), 513), [
1602
+ [H, P.value]
1603
1603
  ])
1604
1604
  ], 64);
1605
1605
  };
1606
1606
  }
1607
- }), Tt = {
1607
+ }), Pt = {
1608
1608
  key: 0,
1609
1609
  class: "pl-1"
1610
- }, Pt = { class: "border alternating-item-list" }, It = {
1610
+ }, Mt = { class: "border alternating-item-list" }, It = {
1611
1611
  key: 0,
1612
1612
  class: "p-2 border-top border-bottom",
1613
1613
  "data-cy": "title"
1614
- }, Mt = { class: "d-inline-block" }, zt = {
1614
+ }, zt = { class: "d-inline-block" }, Ot = {
1615
1615
  key: 1,
1616
1616
  class: "p-2 item d-flex justify-content-between align-items-center"
1617
- }, vl = /* @__PURE__ */ F({
1617
+ }, bl = /* @__PURE__ */ V({
1618
1618
  __name: "ForgeMultiSelectPreview",
1619
1619
  props: {
1620
1620
  title: { default: "Selected Items" },
@@ -1625,106 +1625,106 @@ const yt = { key: 0 }, vt = {
1625
1625
  },
1626
1626
  emits: ["update:modelValue"],
1627
1627
  setup(e, { emit: t }) {
1628
- const l = e, a = ce(), o = t, n = x(() => `${a.modelValue.length} selected`), r = x(() => a.modelValue.length), s = (d) => {
1629
- o("update:modelValue", d);
1630
- }, p = (d) => {
1631
- s(a.modelValue.filter((y) => y.id !== d));
1628
+ const o = e, l = ce(), a = t, n = k(() => `${l.modelValue.length} selected`), d = k(() => l.modelValue.length), u = (r) => {
1629
+ a("update:modelValue", r);
1630
+ }, c = (r) => {
1631
+ u(l.modelValue.filter((s) => s.id !== r));
1632
1632
  };
1633
- return (d, y) => {
1634
- const v = R;
1635
- return i(), m("div", {
1636
- class: B(d.orientation === "column" ? "row" : ""),
1633
+ return (r, s) => {
1634
+ const v = L;
1635
+ return i(), y("div", {
1636
+ class: _(r.orientation === "column" ? "row" : ""),
1637
1637
  "data-cy": "multiselect-preview"
1638
1638
  }, [
1639
- u("div", {
1640
- class: B(d.orientation === "row" ? "col-12 mb-1" : "col"),
1639
+ m("div", {
1640
+ class: _(r.orientation === "row" ? "col-12 mb-1" : "col"),
1641
1641
  "data-cy": "multiselect-container"
1642
1642
  }, [
1643
- f(Ct, {
1643
+ f(be, {
1644
1644
  "onUpdate:modelValue": [
1645
- y[0] || (y[0] = (k) => s(k)),
1646
- y[1] || (y[1] = (k) => d.$attrs.modelValue = k)
1645
+ s[0] || (s[0] = (x) => u(x)),
1646
+ s[1] || (s[1] = (x) => r.$attrs.modelValue = x)
1647
1647
  ],
1648
- modelValue: d.$attrs.modelValue,
1648
+ modelValue: r.$attrs.modelValue,
1649
1649
  "limit-text": n.value,
1650
- options: l.options
1650
+ options: o.options
1651
1651
  }, {
1652
1652
  tag: b(() => [
1653
- z(h(""))
1653
+ O(w(""))
1654
1654
  ]),
1655
1655
  selection: b(() => [
1656
- d.$attrs.modelValue.length > 0 ? (i(), m("span", Tt, h(r.value) + " items selected", 1)) : S("", !0)
1656
+ r.$attrs.modelValue.length > 0 ? (i(), y("span", Pt, w(d.value) + " items selected", 1)) : S("", !0)
1657
1657
  ]),
1658
1658
  default: b(() => [
1659
- (i(!0), m(N, null, Y(d.$slots, (k, _) => $(d.$slots, _, { slot: _ })), 256))
1659
+ (i(!0), y(N, null, q(r.$slots, (x, F) => B(r.$slots, F, { slot: F })), 256))
1660
1660
  ]),
1661
1661
  _: 3
1662
1662
  }, 8, ["modelValue", "limit-text", "options"]),
1663
- $(d.$slots, "after-multi-select")
1663
+ B(r.$slots, "after-multi-select")
1664
1664
  ], 2),
1665
- u("div", {
1666
- class: B(d.orientation === "row" ? "col-12" : "col"),
1665
+ m("div", {
1666
+ class: _(r.orientation === "row" ? "col-12" : "col"),
1667
1667
  "data-cy": "options-preview"
1668
1668
  }, [
1669
- u("div", {
1670
- style: ge({ height: d.height }),
1669
+ m("div", {
1670
+ style: we({ height: r.height }),
1671
1671
  class: "overflow-auto"
1672
1672
  }, [
1673
- u("div", Pt, [
1674
- d.title ? (i(), m("div", It, h(d.title), 1)) : S("", !0),
1675
- (i(!0), m(N, null, Y(d.$attrs.modelValue, (k) => (i(), m("div", {
1676
- key: k.id,
1673
+ m("div", Mt, [
1674
+ r.title ? (i(), y("div", It, w(r.title), 1)) : S("", !0),
1675
+ (i(!0), y(N, null, q(r.$attrs.modelValue, (x) => (i(), y("div", {
1676
+ key: x.id,
1677
1677
  class: "p-2 item d-flex justify-content-between align-items-center"
1678
1678
  }, [
1679
- $(d.$slots, "list-item", { item: k }, () => [
1680
- u("span", Mt, h(k.shortLabel ? k.shortLabel : k.label), 1)
1679
+ B(r.$slots, "list-item", { item: x }, () => [
1680
+ m("span", zt, w(x.shortLabel ? x.shortLabel : x.label), 1)
1681
1681
  ]),
1682
- d.canRemoveItemFromPreview ? (i(), w(v, {
1682
+ r.canRemoveItemFromPreview ? (i(), h(v, {
1683
1683
  key: 0,
1684
1684
  link: "",
1685
1685
  class: "m-0 p-0 d-flex align-items-center",
1686
- onClick: (_) => p(k.id)
1686
+ onClick: (F) => c(x.id)
1687
1687
  }, {
1688
1688
  default: b(() => [
1689
- f(c(C), {
1689
+ f(p(T), {
1690
1690
  icon: "bi:x",
1691
1691
  class: "close-icon",
1692
- "data-cy": `close-icon-${k.id}`
1692
+ "data-cy": `close-icon-${x.id}`
1693
1693
  }, null, 8, ["data-cy"])
1694
1694
  ]),
1695
1695
  _: 2
1696
1696
  }, 1032, ["onClick"])) : S("", !0)
1697
1697
  ]))), 128)),
1698
- d.$attrs.modelValue.length === 0 ? (i(), m("div", zt, "No Items Selected.")) : S("", !0)
1698
+ r.$attrs.modelValue.length === 0 ? (i(), y("div", Ot, "No Items Selected.")) : S("", !0)
1699
1699
  ])
1700
1700
  ], 4)
1701
1701
  ], 2)
1702
1702
  ], 2);
1703
1703
  };
1704
1704
  }
1705
- }), Ot = { class: "d-flex justify-content-between pb-2" }, Dt = {
1705
+ }), Dt = { class: "d-flex justify-content-between pb-2" }, Ut = {
1706
1706
  "data-cy": "title",
1707
1707
  class: "my-auto"
1708
- }, Ut = {
1708
+ }, At = {
1709
1709
  "data-cy": "slot",
1710
1710
  class: "d-flex align-items-center"
1711
- }, bl = /* @__PURE__ */ F({
1711
+ }, fl = /* @__PURE__ */ V({
1712
1712
  __name: "ForgePageHeader",
1713
1713
  props: {
1714
1714
  title: {}
1715
1715
  },
1716
1716
  setup(e) {
1717
1717
  const t = e;
1718
- return (l, a) => (i(), m("div", Ot, [
1719
- u("h3", Dt, h(t.title), 1),
1720
- u("div", Ut, [
1721
- $(l.$slots, "default")
1718
+ return (o, l) => (i(), y("div", Dt, [
1719
+ m("h3", Ut, w(t.title), 1),
1720
+ m("div", At, [
1721
+ B(o.$slots, "default")
1722
1722
  ])
1723
1723
  ]));
1724
1724
  }
1725
- }), At = { "data-cy": "before-slot" }, Nt = { class: "position-relative" }, Et = { "data-cy": "after-slot" }, Rt = /* @__PURE__ */ F({
1725
+ }), Nt = { class: "d-flex" }, Et = { "data-cy": "before-slot" }, Lt = { class: "position-relative" }, Rt = { "data-cy": "after-slot" }, fe = /* @__PURE__ */ V({
1726
1726
  __name: "ForgeDatepicker",
1727
- props: /* @__PURE__ */ L({
1727
+ props: /* @__PURE__ */ j({
1728
1728
  severity: { default: "primary" },
1729
1729
  modelValue: {},
1730
1730
  selectionMode: { default: "single" },
@@ -1783,7 +1783,7 @@ const yt = { key: 0 }, vt = {
1783
1783
  panelStyle: {},
1784
1784
  panelClass: {},
1785
1785
  panelProps: {},
1786
- name: {},
1786
+ name: { default: "" },
1787
1787
  ariaLabelledby: {},
1788
1788
  ariaLabel: {},
1789
1789
  pt: {},
@@ -1795,35 +1795,37 @@ const yt = { key: 0 }, vt = {
1795
1795
  }),
1796
1796
  emits: ["update:modelValue"],
1797
1797
  setup(e) {
1798
- const t = e, l = E(e, "modelValue"), a = () => {
1799
- l.value = null;
1800
- }, o = x(() => ({
1801
- day: ({ context: n }) => ({
1798
+ const t = e, o = E(e, "modelValue"), { errors: l, errorMessage: a, handleChange: n, handleBlur: d } = K(() => t.name, void 0, {
1799
+ initialValue: o.value
1800
+ }), u = () => {
1801
+ o.value = null;
1802
+ }, c = k(() => l.value.length > 0), r = k(() => ({
1803
+ day: ({ context: s }) => ({
1802
1804
  class: [
1803
1805
  `text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
1804
1806
  {
1805
- "cursor-pointer": !n.disabled,
1806
- "pe-none": n.disabled,
1807
- "text-white": n.selected
1807
+ "cursor-pointer": !s.disabled,
1808
+ "pe-none": s.disabled,
1809
+ "text-white": s.selected
1808
1810
  },
1809
1811
  // Severities
1810
1812
  {
1811
- selected: n.selected && !n.disabled,
1812
- "text-primary": !n.selected && n.today && (t.severity === void 0 || t.severity === "primary"),
1813
- "text-brand": !n.selected && n.today && t.severity === "brand",
1814
- "text-secondary": !n.selected && n.today && t.severity === "secondary",
1815
- "text-success": !n.selected && n.today && t.severity === "success",
1816
- "text-warning": !n.selected && n.today && t.severity === "warning",
1817
- "text-danger": !n.selected && n.today && t.severity === "danger",
1818
- "text-info": !n.selected && n.today && t.severity === "info"
1813
+ selected: s.selected && !s.disabled,
1814
+ "text-primary": !s.selected && s.today && (t.severity === void 0 || t.severity === "primary"),
1815
+ "text-brand": !s.selected && s.today && t.severity === "brand",
1816
+ "text-secondary": !s.selected && s.today && t.severity === "secondary",
1817
+ "text-success": !s.selected && s.today && t.severity === "success",
1818
+ "text-warning": !s.selected && s.today && t.severity === "warning",
1819
+ "text-danger": !s.selected && s.today && t.severity === "danger",
1820
+ "text-info": !s.selected && s.today && t.severity === "info"
1819
1821
  }
1820
1822
  ]
1821
1823
  }),
1822
- dayLabel: ({ context: n }) => ({
1824
+ dayLabel: ({ context: s }) => ({
1823
1825
  class: [
1824
1826
  // Disabled States
1825
1827
  {
1826
- "text-muted": n.disabled
1828
+ "text-muted": s.disabled
1827
1829
  }
1828
1830
  ]
1829
1831
  }),
@@ -1859,82 +1861,95 @@ const yt = { key: 0 }, vt = {
1859
1861
  ]
1860
1862
  })
1861
1863
  },
1862
- year: ({ context: n }) => ({
1864
+ year: ({ context: s }) => ({
1863
1865
  class: [
1864
1866
  "col-3 text-center cursor-pointer py-2",
1865
1867
  {
1866
- "text-primary": (t.severity === void 0 || t.severity === "primary") && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1867
- "text-brand": t.severity === "brand" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1868
- "text-secondary": t.severity === "secondary" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1869
- "text-success": t.severity === "success" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1870
- "text-warning": t.severity === "warning" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1871
- "text-danger": t.severity === "danger" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1872
- "text-info": t.severity === "info" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear()
1868
+ "text-primary": (t.severity === void 0 || t.severity === "primary") && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1869
+ "text-brand": t.severity === "brand" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1870
+ "text-secondary": t.severity === "secondary" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1871
+ "text-success": t.severity === "success" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1872
+ "text-warning": t.severity === "warning" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1873
+ "text-danger": t.severity === "danger" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1874
+ "text-info": t.severity === "info" && s.year.value === (/* @__PURE__ */ new Date()).getFullYear()
1873
1875
  }
1874
1876
  ]
1875
1877
  }),
1876
- month: ({ context: n }) => ({
1878
+ month: ({ context: s }) => ({
1877
1879
  class: [
1878
1880
  "col-3 text-center cursor-pointer py-2",
1879
1881
  {
1880
- "text-primary": (t.severity === void 0 || t.severity === "primary") && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1881
- "text-brand": t.severity === "brand" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1882
- "text-secondary": t.severity === "secondary" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1883
- "text-success": t.severity === "success" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1884
- "text-warning": t.severity === "warning" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1885
- "text-danger": t.severity === "danger" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1886
- "text-info": t.severity === "info" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
1882
+ "text-primary": (t.severity === void 0 || t.severity === "primary") && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1883
+ "text-brand": t.severity === "brand" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1884
+ "text-secondary": t.severity === "secondary" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1885
+ "text-success": t.severity === "success" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1886
+ "text-warning": t.severity === "warning" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1887
+ "text-danger": t.severity === "danger" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1888
+ "text-info": t.severity === "info" && s.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
1887
1889
  }
1888
1890
  ]
1889
1891
  })
1890
1892
  }));
1891
- return (n, r) => {
1892
- const s = Fe;
1893
- return i(), m(N, null, [
1894
- u("span", At, [
1895
- $(n.$slots, "before")
1896
- ]),
1897
- u("div", Nt, [
1898
- f(s, T({ ...t, ...n.$attrs }, {
1899
- pt: o.value,
1900
- modelValue: l.value,
1901
- "onUpdate:modelValue": r[0] || (r[0] = (p) => l.value = p)
1902
- }), null, 16, ["pt", "modelValue"]),
1903
- H(f(c(C), {
1904
- "data-cy": "icon",
1905
- icon: "bi:calendar4",
1906
- class: "position-absolute end-0 top-50 bottom-50 my-auto me-2 text-muted bg-white"
1907
- }, null, 512), [
1908
- [G, t.showIcon]
1893
+ return (s, v) => {
1894
+ const x = Se;
1895
+ return i(), y(N, null, [
1896
+ m("div", Nt, [
1897
+ m("span", Et, [
1898
+ B(s.$slots, "before")
1909
1899
  ]),
1910
- H(f(c(C), {
1911
- "data-cy": "icon",
1912
- icon: "bi:x",
1913
- onClick: a,
1914
- 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"])
1915
- }, null, 8, ["class"]), [
1916
- [G, t.modelValue]
1900
+ m("div", Lt, [
1901
+ f(x, C({ ...t, ...s.$attrs }, {
1902
+ pt: r.value,
1903
+ modelValue: o.value,
1904
+ "onUpdate:modelValue": [
1905
+ v[0] || (v[0] = (F) => o.value = F),
1906
+ p(n)
1907
+ ],
1908
+ onBlur: p(d),
1909
+ "input-class": { "is-invalid": c.value }
1910
+ }), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "onBlur", "input-class"]),
1911
+ R(f(p(T), {
1912
+ "data-cy": "icon",
1913
+ icon: "bi:calendar4",
1914
+ class: _(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${c.value ? "text-danger-dark" : "text-muted"}`])
1915
+ }, null, 8, ["class"]), [
1916
+ [H, t.showIcon]
1917
+ ]),
1918
+ R(f(p(T), {
1919
+ "data-cy": "icon",
1920
+ icon: "bi:x",
1921
+ onClick: u,
1922
+ class: _(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", t.showIcon ? "datepicker-close-icon" : "me-2"])
1923
+ }, null, 8, ["class"]), [
1924
+ [H, t.modelValue]
1925
+ ])
1926
+ ]),
1927
+ m("span", Rt, [
1928
+ B(s.$slots, "after")
1917
1929
  ])
1918
1930
  ]),
1919
- u("span", Et, [
1920
- $(n.$slots, "after")
1931
+ R(m("small", {
1932
+ "data-cy": "error",
1933
+ class: "text-invalid"
1934
+ }, w(p(a)), 513), [
1935
+ [H, c.value]
1921
1936
  ])
1922
1937
  ], 64);
1923
1938
  };
1924
1939
  }
1925
- }), fl = /* @__PURE__ */ F({
1940
+ }), gl = /* @__PURE__ */ V({
1926
1941
  __name: "ForgeRemainingCharacters",
1927
1942
  props: {
1928
1943
  maxCount: { default: 300 },
1929
1944
  currentCount: {}
1930
1945
  },
1931
1946
  setup(e) {
1932
- const t = e, l = x(() => t.maxCount - t.currentCount);
1933
- return (a, o) => (i(), m("div", {
1934
- class: B(l.value < 0 ? "text-danger" : "")
1935
- }, "Remaining characters: " + h(l.value), 3));
1947
+ const t = e, o = k(() => t.maxCount - t.currentCount);
1948
+ return (l, a) => (i(), y("div", {
1949
+ class: _(o.value < 0 ? "text-danger" : "")
1950
+ }, "Remaining characters: " + w(o.value), 3));
1936
1951
  }
1937
- }), Lt = /* @__PURE__ */ u("hr", null, null, -1), jt = { class: "d-flex justify-content-between" }, gl = /* @__PURE__ */ F({
1952
+ }), jt = /* @__PURE__ */ m("hr", null, null, -1), Ht = { class: "d-flex justify-content-between" }, hl = /* @__PURE__ */ V({
1938
1953
  __name: "ForgeForm",
1939
1954
  props: {
1940
1955
  onSubmit: {},
@@ -1946,95 +1961,95 @@ const yt = { key: 0 }, vt = {
1946
1961
  hideCancel: { type: Boolean, default: !1 }
1947
1962
  },
1948
1963
  setup(e) {
1949
- const t = e, l = I(!1), a = I({
1964
+ const t = e, o = I(!1), l = I({
1950
1965
  hasError: !1,
1951
1966
  message: ""
1952
1967
  });
1953
- async function o() {
1954
- l.value = !0, a.value.hasError = !1;
1968
+ async function a() {
1969
+ o.value = !0, l.value.hasError = !1;
1955
1970
  try {
1956
1971
  await t.onSubmit();
1957
1972
  } catch (n) {
1958
- a.value.hasError = !0, n.message && (a.value.message = n.message);
1973
+ l.value.hasError = !0, n.message && (l.value.message = n.message);
1959
1974
  }
1960
- l.value = !1;
1975
+ o.value = !1;
1961
1976
  }
1962
- return (n, r) => {
1963
- const s = R;
1964
- return i(), m("form", T(n.$attrs, {
1977
+ return (n, d) => {
1978
+ const u = L;
1979
+ return i(), y("form", C(n.$attrs, {
1965
1980
  novalidate: "",
1966
1981
  class: "position-relative shadow-sm border p-4 bg-white",
1967
- onSubmit: j(o, ["prevent"])
1982
+ onSubmit: Y(a, ["prevent"])
1968
1983
  }), [
1969
- n.hideTitle ? S("", !0) : (i(), m(N, { key: 0 }, [
1970
- $(n.$slots, "title", {}, () => [
1971
- u("h3", {
1972
- class: B(n.titleClass),
1984
+ n.hideTitle ? S("", !0) : (i(), y(N, { key: 0 }, [
1985
+ B(n.$slots, "title", {}, () => [
1986
+ m("h3", {
1987
+ class: _(n.titleClass),
1973
1988
  "data-cy": "form-title"
1974
- }, h(n.title), 3)
1989
+ }, w(n.title), 3)
1975
1990
  ]),
1976
- Lt
1991
+ jt
1977
1992
  ], 64)),
1978
- a.value.hasError ? (i(), w(ne, {
1993
+ l.value.hasError ? (i(), h(se, {
1979
1994
  key: 1,
1980
1995
  severity: "danger",
1981
1996
  "data-cy": "error"
1982
1997
  }, {
1983
1998
  default: b(() => [
1984
- $(n.$slots, "error", {
1985
- error: a.value.message
1999
+ B(n.$slots, "error", {
2000
+ error: l.value.message
1986
2001
  }, () => [
1987
- z(h(a.value.message), 1)
2002
+ O(w(l.value.message), 1)
1988
2003
  ])
1989
2004
  ]),
1990
2005
  _: 3
1991
2006
  })) : S("", !0),
1992
- $(n.$slots, "default"),
1993
- u("div", jt, [
1994
- $(n.$slots, "cancel", {}, () => [
1995
- n.hideCancel ? S("", !0) : (i(), w(s, {
2007
+ B(n.$slots, "default"),
2008
+ m("div", Ht, [
2009
+ B(n.$slots, "cancel", {}, () => [
2010
+ n.hideCancel ? S("", !0) : (i(), h(u, {
1996
2011
  key: 0,
1997
2012
  "data-cy": "cancel-btn",
1998
2013
  type: "reset",
1999
2014
  severity: "secondary",
2000
2015
  outlined: "",
2001
- onClick: r[0] || (r[0] = (p) => n.$emit("cancel"))
2016
+ onClick: d[0] || (d[0] = (c) => n.$emit("cancel"))
2002
2017
  }, {
2003
2018
  default: b(() => [
2004
- z(h(n.cancelText), 1)
2019
+ O(w(n.cancelText), 1)
2005
2020
  ]),
2006
2021
  _: 1
2007
2022
  }))
2008
2023
  ]),
2009
- $(n.$slots, "submit", { submit: o }, () => [
2010
- f(s, {
2024
+ B(n.$slots, "submit", { submit: a }, () => [
2025
+ f(u, {
2011
2026
  "data-cy": "submit-btn",
2012
2027
  type: "submit",
2013
2028
  severity: "primary",
2014
2029
  class: "ms-auto"
2015
2030
  }, {
2016
2031
  default: b(() => [
2017
- z(h(n.submitText), 1)
2032
+ O(w(n.submitText), 1)
2018
2033
  ]),
2019
2034
  _: 1
2020
2035
  })
2021
2036
  ])
2022
2037
  ]),
2023
- l.value ? (i(), w(ve, {
2038
+ o.value ? (i(), h(ye, {
2024
2039
  key: 2,
2025
2040
  "data-cy": "loading-spinner"
2026
2041
  })) : S("", !0)
2027
2042
  ], 16);
2028
2043
  };
2029
2044
  }
2030
- }), Ht = {
2045
+ }), Yt = {
2031
2046
  key: 1,
2032
- class: "d-flex flex-column"
2033
- }, Yt = ["for"], hl = /* @__PURE__ */ F({
2047
+ class: "d-flex flex-column w-100"
2048
+ }, qt = ["for"], wl = /* @__PURE__ */ V({
2034
2049
  __name: "ForgeFormField",
2035
- props: /* @__PURE__ */ L({
2050
+ props: /* @__PURE__ */ j({
2036
2051
  name: {},
2037
- label: {},
2052
+ fieldLabel: {},
2038
2053
  type: { default: "text" },
2039
2054
  mask: { default: "" },
2040
2055
  placeholder: { default: "" }
@@ -2044,79 +2059,92 @@ const yt = { key: 0 }, vt = {
2044
2059
  }),
2045
2060
  emits: ["update:modelValue"],
2046
2061
  setup(e) {
2047
- const t = E(e, "modelValue"), l = e, a = (y) => {
2048
- l.type == "number" ? s(y.value) : s(y);
2049
- }, { errors: o, value: n, errorMessage: r, handleChange: s, handleBlur: p } = W(() => l.name, void 0, {
2062
+ const t = E(e, "modelValue"), o = e, l = (s) => {
2063
+ o.type == "number" ? u(s.value) : u(s);
2064
+ }, { errors: a, value: n, errorMessage: d, handleChange: u, handleBlur: c } = K(() => o.name, void 0, {
2050
2065
  initialValue: t.value
2051
- }), d = x(() => o.value.length > 0);
2052
- return ie(() => n.value, (y) => {
2053
- t.value = y;
2054
- }, { immediate: !0 }), (y, v) => {
2055
- const k = Ve, _ = Se, P = re;
2056
- return l.type === "checkbox" ? (i(), w(ye, T({
2066
+ }), r = k(() => a.value.length > 0);
2067
+ return re(() => n.value, (s) => {
2068
+ t.value = s;
2069
+ }, { immediate: !0 }), (s, v) => {
2070
+ const x = Te, F = Ce, P = de, M = ne, z = be, g = fe;
2071
+ return o.type === "checkbox" ? (i(), h(ve, C({
2057
2072
  key: 0,
2058
- id: l.name,
2059
- label: l.label
2060
- }, y.$attrs, {
2061
- name: l.name,
2073
+ id: o.name,
2074
+ label: o.fieldLabel
2075
+ }, s.$attrs, {
2076
+ name: o.name,
2062
2077
  modelValue: t.value,
2063
- "onUpdate:modelValue": v[0] || (v[0] = (V) => t.value = V)
2064
- }), null, 16, ["id", "label", "name", "modelValue"])) : (i(), m("div", Ht, [
2065
- u("label", {
2066
- for: l.name
2067
- }, h(l.label), 9, Yt),
2068
- l.type === "number" ? (i(), w(c(me), T({
2078
+ "onUpdate:modelValue": v[0] || (v[0] = ($) => t.value = $)
2079
+ }), null, 16, ["id", "label", "name", "modelValue"])) : (i(), y("div", Yt, [
2080
+ m("label", {
2081
+ for: o.name,
2082
+ class: "mb-1"
2083
+ }, w(o.fieldLabel), 9, qt),
2084
+ o.type === "number" ? (i(), h(p(me), C({
2069
2085
  key: 0,
2070
- id: l.name
2071
- }, y.$attrs, {
2072
- placeholder: l.placeholder,
2073
- "input-class": { "is-invalid": d.value },
2074
- class: { "is-invalid": d.value },
2086
+ id: o.name
2087
+ }, s.$attrs, {
2088
+ placeholder: o.placeholder,
2089
+ "input-class": { "is-invalid": r.value },
2090
+ class: { "is-invalid": r.value },
2075
2091
  modelValue: t.value,
2076
- "onUpdate:modelValue": v[1] || (v[1] = (V) => t.value = V),
2077
- onInput: a
2078
- }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : l.type === "textarea" ? (i(), w(k, T({
2092
+ "onUpdate:modelValue": v[1] || (v[1] = ($) => t.value = $),
2093
+ onInput: l
2094
+ }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : o.type === "textarea" ? (i(), h(x, C({
2079
2095
  key: 1,
2080
- id: l.name
2081
- }, y.$attrs, {
2082
- placeholder: l.placeholder,
2083
- class: { "is-invalid": d.value },
2096
+ id: o.name
2097
+ }, s.$attrs, {
2098
+ placeholder: o.placeholder,
2099
+ class: { "is-invalid": r.value },
2084
2100
  modelValue: t.value,
2085
- "onUpdate:modelValue": v[2] || (v[2] = (V) => t.value = V),
2086
- onInput: a,
2087
- onBlur: c(p)
2088
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "mask" ? (i(), w(_, T({
2101
+ "onUpdate:modelValue": v[2] || (v[2] = ($) => t.value = $),
2102
+ onInput: l,
2103
+ onBlur: p(c)
2104
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : o.type === "mask" ? (i(), h(F, C({
2089
2105
  key: 2,
2090
- id: l.name
2091
- }, y.$attrs, {
2092
- placeholder: l.placeholder,
2093
- mask: l.mask,
2094
- class: { "is-invalid": d.value },
2106
+ id: o.name
2107
+ }, s.$attrs, {
2108
+ placeholder: o.placeholder,
2109
+ mask: o.mask,
2110
+ class: { "is-invalid": r.value },
2095
2111
  modelValue: t.value,
2096
- "onUpdate:modelValue": v[3] || (v[3] = (V) => t.value = V),
2097
- onInput: a,
2098
- onBlur: c(p)
2099
- }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : l.type === "text" ? (i(), w(P, T({
2112
+ "onUpdate:modelValue": v[3] || (v[3] = ($) => t.value = $),
2113
+ onComplete: l,
2114
+ onBlur: p(c)
2115
+ }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : o.type === "text" ? (i(), h(P, C({
2100
2116
  key: 3,
2101
- id: l.name
2102
- }, y.$attrs, {
2103
- placeholder: l.placeholder,
2104
- class: { "is-invalid": d.value },
2117
+ id: o.name
2118
+ }, s.$attrs, {
2119
+ placeholder: o.placeholder,
2120
+ class: { "is-invalid": r.value },
2121
+ modelValue: t.value,
2122
+ "onUpdate:modelValue": v[4] || (v[4] = ($) => t.value = $),
2123
+ onInput: l,
2124
+ onBlur: p(c)
2125
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : o.type === "select" ? (i(), h(M, C({ key: 4 }, { ...o, ...s.$attrs }, {
2126
+ modelValue: t.value,
2127
+ "onUpdate:modelValue": v[5] || (v[5] = ($) => t.value = $),
2128
+ class: { "is-invalid": r.value }
2129
+ }), null, 16, ["modelValue", "class"])) : o.type === "multiselect" ? (i(), h(z, C({ key: 5 }, { ...o, ...s.$attrs }, {
2130
+ modelValue: t.value,
2131
+ "onUpdate:modelValue": v[6] || (v[6] = ($) => t.value = $),
2132
+ class: { "is-invalid": r.value }
2133
+ }), null, 16, ["modelValue", "class"])) : o.type === "datepicker" ? (i(), h(g, C({ key: 6 }, { ...o, ...s.$attrs }, {
2105
2134
  modelValue: t.value,
2106
- "onUpdate:modelValue": v[4] || (v[4] = (V) => t.value = V),
2107
- onInput: a,
2108
- onBlur: c(p)
2109
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : S("", !0),
2110
- H(u("small", {
2135
+ "onUpdate:modelValue": v[7] || (v[7] = ($) => t.value = $),
2136
+ class: { "is-invalid": r.value }
2137
+ }), null, 16, ["modelValue", "class"])) : S("", !0),
2138
+ R(m("small", {
2111
2139
  "data-cy": "error",
2112
2140
  class: "invalid-feedback"
2113
- }, h(c(r)), 513), [
2114
- [G, d.value]
2141
+ }, w(p(d)), 513), [
2142
+ [H, r.value && o.type !== "multiselect" && o.type !== "datepicker"]
2115
2143
  ])
2116
2144
  ]));
2117
2145
  };
2118
2146
  }
2119
- }), wl = /* @__PURE__ */ F({
2147
+ }), xl = /* @__PURE__ */ V({
2120
2148
  __name: "ForgeChips",
2121
2149
  props: {
2122
2150
  chipSeverity: { default: "primary" },
@@ -2143,16 +2171,16 @@ const yt = { key: 0 }, vt = {
2143
2171
  unstyled: { type: Boolean }
2144
2172
  },
2145
2173
  setup(e) {
2146
- const t = e, { errors: l, value: a, errorMessage: o } = W(() => t.name, void 0, {
2174
+ const t = e, { errors: o, value: l, errorMessage: a } = K(() => t.name, void 0, {
2147
2175
  initialValue: t.modelValue
2148
- }), n = x(() => l.value.length > 0), r = x(() => ({
2176
+ }), n = k(() => o.value.length > 0), d = k(() => ({
2149
2177
  inputtoken: "list-unstyled",
2150
2178
  input: "border-0",
2151
- container: ({ props: s }) => ({
2179
+ container: ({ props: u }) => ({
2152
2180
  class: [
2153
2181
  "form-control mb-0 d-flex",
2154
2182
  {
2155
- disabled: s.disabled,
2183
+ disabled: u.disabled,
2156
2184
  "is-invalid": n.value
2157
2185
  }
2158
2186
  ]
@@ -2176,35 +2204,35 @@ const yt = { key: 0 }, vt = {
2176
2204
  ]
2177
2205
  }
2178
2206
  }));
2179
- return (s, p) => {
2180
- const d = Ce;
2181
- return i(), m(N, null, [
2182
- f(d, T({ ...t, ...s.$attrs }, {
2183
- pt: r.value,
2184
- "model-value": c(a),
2185
- "onUpdate:modelValue": p[0] || (p[0] = (y) => le(a) ? a.value = y : null)
2207
+ return (u, c) => {
2208
+ const r = Pe;
2209
+ return i(), y(N, null, [
2210
+ f(r, C({ ...t, ...u.$attrs }, {
2211
+ pt: d.value,
2212
+ "model-value": p(l),
2213
+ "onUpdate:modelValue": c[0] || (c[0] = (s) => le(l) ? l.value = s : null)
2186
2214
  }), {
2187
- removetokenicon: b(({ removeCallback: y }) => [
2188
- H(f(c(C), {
2215
+ removetokenicon: b(({ removeCallback: s }) => [
2216
+ R(f(p(T), {
2189
2217
  icon: "bi:x",
2190
2218
  class: "cursor-pointer",
2191
- onClick: y
2219
+ onClick: s
2192
2220
  }, null, 8, ["onClick"]), [
2193
- [G, !t.disabled]
2221
+ [H, !t.disabled]
2194
2222
  ])
2195
2223
  ]),
2196
2224
  _: 1
2197
2225
  }, 16, ["pt", "model-value"]),
2198
- H(u("small", {
2226
+ R(m("small", {
2199
2227
  "data-cy": "error",
2200
2228
  class: "text-invalid"
2201
- }, h(c(o)), 513), [
2202
- [G, n.value]
2229
+ }, w(p(a)), 513), [
2230
+ [H, n.value]
2203
2231
  ])
2204
2232
  ], 64);
2205
2233
  };
2206
2234
  }
2207
- }), qt = /* @__PURE__ */ F({
2235
+ }), Gt = /* @__PURE__ */ V({
2208
2236
  __name: "ForgeProgressBar",
2209
2237
  props: {
2210
2238
  severity: { default: "primary" },
@@ -2219,7 +2247,7 @@ const yt = { key: 0 }, vt = {
2219
2247
  unstyled: { type: Boolean }
2220
2248
  },
2221
2249
  setup(e) {
2222
- const t = e, l = x(() => t.striped ? "progress-bar-striped" : null), a = x(() => t.animate ? "progress-bar-animated" : null), o = x(() => {
2250
+ const t = e, o = k(() => t.striped ? "progress-bar-striped" : null), l = k(() => t.animate ? "progress-bar-animated" : null), a = k(() => {
2223
2251
  switch (t.severity) {
2224
2252
  case "brand":
2225
2253
  return "bg-brand";
@@ -2238,25 +2266,25 @@ const yt = { key: 0 }, vt = {
2238
2266
  default:
2239
2267
  return "bg-primary";
2240
2268
  }
2241
- }), n = x(() => ({
2269
+ }), n = k(() => ({
2242
2270
  root: {
2243
2271
  style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
2244
2272
  },
2245
2273
  value: {
2246
- class: [o.value, l.value, a.value]
2274
+ class: [a.value, o.value, l.value]
2247
2275
  }
2248
2276
  }));
2249
- return (r, s) => {
2250
- const p = Te;
2251
- return i(), w(p, T({ ...r.$attrs, ...t }, { pt: n.value }), {
2277
+ return (d, u) => {
2278
+ const c = Me;
2279
+ return i(), h(c, C({ ...d.$attrs, ...t }, { pt: n.value }), {
2252
2280
  default: b(() => [
2253
- $(r.$slots, "default")
2281
+ B(d.$slots, "default")
2254
2282
  ]),
2255
2283
  _: 3
2256
2284
  }, 16, ["pt"]);
2257
2285
  };
2258
2286
  }
2259
- }), Gt = { class: "value text-white w-100 text-center" }, xl = /* @__PURE__ */ F({
2287
+ }), Kt = { class: "value text-white w-100 text-center" }, kl = /* @__PURE__ */ V({
2260
2288
  __name: "ForgeStatWidget",
2261
2289
  props: {
2262
2290
  size: { default: "md" },
@@ -2264,18 +2292,18 @@ const yt = { key: 0 }, vt = {
2264
2292
  },
2265
2293
  setup(e) {
2266
2294
  const t = e;
2267
- return (l, a) => (i(), m("div", T(l.$attrs, {
2295
+ return (o, l) => (i(), y("div", C(o.$attrs, {
2268
2296
  class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
2269
2297
  }), [
2270
- u("span", Gt, [
2271
- $(l.$slots, "default")
2298
+ m("span", Kt, [
2299
+ B(o.$slots, "default")
2272
2300
  ])
2273
2301
  ], 16));
2274
2302
  }
2275
- }), Kt = {
2303
+ }), Wt = {
2276
2304
  class: "d-flex flex-column align-items-center",
2277
2305
  "data-cy": "stepper"
2278
- }, Wt = { class: "d-flex align-items-center justify-content-center w-100" }, kl = /* @__PURE__ */ F({
2306
+ }, Zt = { class: "d-flex align-items-center justify-content-center w-100" }, $l = /* @__PURE__ */ V({
2279
2307
  __name: "ForgeStepper",
2280
2308
  props: {
2281
2309
  currentStep: { default: 0 },
@@ -2291,103 +2319,103 @@ const yt = { key: 0 }, vt = {
2291
2319
  },
2292
2320
  emits: ["update:currentStep"],
2293
2321
  setup(e, { emit: t }) {
2294
- const l = t, a = e, o = I(a.currentStep), n = () => {
2322
+ const o = t, l = e, a = I(l.currentStep), n = () => {
2295
2323
  do
2296
- o.value--;
2297
- while (a.model[o.value].disabled);
2298
- l("update:currentStep", o.value);
2299
- }, r = () => {
2300
- if (o.value < a.model.length - 1)
2324
+ a.value--;
2325
+ while (l.model[a.value].disabled);
2326
+ o("update:currentStep", a.value);
2327
+ }, d = () => {
2328
+ if (a.value < l.model.length - 1)
2301
2329
  do
2302
- o.value++;
2303
- while (a.model[o.value].disabled);
2304
- l("update:currentStep", o.value);
2305
- }, s = x(() => {
2306
- const d = a.model.findIndex((y) => !y.disabled);
2307
- return !(d < o.value && d > -1);
2308
- }), p = x(() => ({
2309
- menuitem: (d) => ({
2330
+ a.value++;
2331
+ while (l.model[a.value].disabled);
2332
+ o("update:currentStep", a.value);
2333
+ }, u = k(() => {
2334
+ const r = l.model.findIndex((s) => !s.disabled);
2335
+ return !(r < a.value && r > -1);
2336
+ }), c = k(() => ({
2337
+ menuitem: (r) => ({
2310
2338
  class: [{
2311
- "cursor-pointer": !d.context.disabled
2339
+ "cursor-pointer": !r.context.disabled
2312
2340
  }]
2313
2341
  }),
2314
- step: (d) => ({
2342
+ step: (r) => ({
2315
2343
  class: [
2316
2344
  "d-flex align-items-center justify-content-center mb-2 step",
2317
2345
  {
2318
- inactive: d.context.disabled,
2319
- "bg-primary text-white": d.context.index === o.value && (a.severity === void 0 || a.severity === "primary"),
2320
- "bg-brand text-white": d.context.index === o.value && a.severity === "brand",
2321
- "bg-secondary text-white": d.context.index === o.value && a.severity === "secondary",
2322
- "bg-success text-white": d.context.index === o.value && a.severity === "success",
2323
- "bg-warning text-white": d.context.index === o.value && a.severity === "warning",
2324
- "bg-danger text-white": d.context.index === o.value && a.severity === "danger",
2325
- "bg-info text-white": d.context.index === o.value && a.severity === "info"
2346
+ inactive: r.context.disabled,
2347
+ "bg-primary text-white": r.context.index === a.value && (l.severity === void 0 || l.severity === "primary"),
2348
+ "bg-brand text-white": r.context.index === a.value && l.severity === "brand",
2349
+ "bg-secondary text-white": r.context.index === a.value && l.severity === "secondary",
2350
+ "bg-success text-white": r.context.index === a.value && l.severity === "success",
2351
+ "bg-warning text-white": r.context.index === a.value && l.severity === "warning",
2352
+ "bg-danger text-white": r.context.index === a.value && l.severity === "danger",
2353
+ "bg-info text-white": r.context.index === a.value && l.severity === "info"
2326
2354
  }
2327
2355
  ]
2328
2356
  }),
2329
- label: (d) => ({
2357
+ label: (r) => ({
2330
2358
  class: [
2331
2359
  "h5",
2332
2360
  {
2333
- "border-bottom border-2 border-primary": d.context.index === o.value && (a.severity === void 0 || a.severity === "primary"),
2334
- "border-bottom border-2 border-brand": d.context.index === o.value && a.severity === "brand",
2335
- "border-bottom border-2 border-secondary": d.context.index === o.value && a.severity === "secondary",
2336
- "border-bottom border-2 border-success": d.context.index === o.value && a.severity === "success",
2337
- "border-bottom border-2 border-warning": d.context.index === o.value && a.severity === "warning",
2338
- "border-bottom border-2 border-danger": d.context.index === o.value && a.severity === "danger",
2339
- "border-bottom border-2 border-info": d.context.index === o.value && a.severity === "info"
2361
+ "border-bottom border-2 border-primary": r.context.index === a.value && (l.severity === void 0 || l.severity === "primary"),
2362
+ "border-bottom border-2 border-brand": r.context.index === a.value && l.severity === "brand",
2363
+ "border-bottom border-2 border-secondary": r.context.index === a.value && l.severity === "secondary",
2364
+ "border-bottom border-2 border-success": r.context.index === a.value && l.severity === "success",
2365
+ "border-bottom border-2 border-warning": r.context.index === a.value && l.severity === "warning",
2366
+ "border-bottom border-2 border-danger": r.context.index === a.value && l.severity === "danger",
2367
+ "border-bottom border-2 border-info": r.context.index === a.value && l.severity === "info"
2340
2368
  }
2341
2369
  ]
2342
2370
  })
2343
2371
  }));
2344
- return (d, y) => {
2345
- const v = R, k = Ie, _ = Pe;
2346
- return i(), m("div", Kt, [
2347
- u("div", Wt, [
2372
+ return (r, s) => {
2373
+ const v = L, x = ze, F = Ie;
2374
+ return i(), y("div", Wt, [
2375
+ m("div", Zt, [
2348
2376
  f(v, {
2349
- severity: a.severity,
2350
- disabled: s.value,
2377
+ severity: l.severity,
2378
+ disabled: u.value,
2351
2379
  onClick: n,
2352
2380
  class: "rounded-circle py-2 me-4",
2353
2381
  "data-cy": "back-button"
2354
2382
  }, {
2355
2383
  default: b(() => [
2356
- f(c(C), {
2384
+ f(p(T), {
2357
2385
  icon: "bi:chevron-left",
2358
2386
  class: "mb-1"
2359
2387
  })
2360
2388
  ]),
2361
2389
  _: 1
2362
2390
  }, 8, ["severity", "disabled"]),
2363
- f(k, {
2364
- "active-step": o.value,
2365
- "onUpdate:activeStep": y[0] || (y[0] = (P) => o.value = P),
2366
- model: a.model,
2367
- pt: p.value,
2391
+ f(x, {
2392
+ "active-step": a.value,
2393
+ "onUpdate:activeStep": s[0] || (s[0] = (P) => a.value = P),
2394
+ model: l.model,
2395
+ pt: c.value,
2368
2396
  readonly: !1
2369
2397
  }, null, 8, ["active-step", "model", "pt"])
2370
2398
  ]),
2371
- f(_),
2372
- (i(!0), m(N, null, Y(a.model, (P, V) => (i(), m("div", {
2373
- key: V,
2399
+ f(F),
2400
+ (i(!0), y(N, null, q(l.model, (P, M) => (i(), y("div", {
2401
+ key: M,
2374
2402
  class: "w-100"
2375
2403
  }, [
2376
- V === o.value ? $(d.$slots, P.key ?? P.label, {
2404
+ M === a.value ? B(r.$slots, P.key ?? P.label, {
2377
2405
  key: 0,
2378
- nextStep: r,
2406
+ nextStep: d,
2379
2407
  previousStep: n
2380
2408
  }, () => [
2381
- f(ne, {
2409
+ f(se, {
2382
2410
  severity: "info",
2383
2411
  "data-cy": "alert"
2384
2412
  }, {
2385
2413
  default: b(() => [
2386
- z(" Please add Slot Content for the key " + h(P.key ?? P.label) + " ", 1),
2414
+ O(" Please add Slot Content for the key " + w(P.key ?? P.label) + " ", 1),
2387
2415
  f(v, {
2388
2416
  severity: "primary",
2389
2417
  label: "Next",
2390
- onClick: r,
2418
+ onClick: d,
2391
2419
  class: "ms-2"
2392
2420
  })
2393
2421
  ]),
@@ -2398,7 +2426,7 @@ const yt = { key: 0 }, vt = {
2398
2426
  ]);
2399
2427
  };
2400
2428
  }
2401
- }), Zt = { class: "p-4 text-wrap w-100" }, Jt = { class: "p-4 text-wrap w-100" }, $l = /* @__PURE__ */ F({
2429
+ }), Jt = { class: "p-4 text-wrap w-100" }, Xt = { class: "p-4 text-wrap w-100" }, Bl = /* @__PURE__ */ V({
2402
2430
  __name: "ForgeTile",
2403
2431
  props: {
2404
2432
  severity: { default: "primary" },
@@ -2407,32 +2435,32 @@ const yt = { key: 0 }, vt = {
2407
2435
  selected: { type: Boolean, default: !1 }
2408
2436
  },
2409
2437
  setup(e) {
2410
- const t = e, l = x(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), a = 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" : ""}`);
2411
- return (o, n) => {
2412
- const r = R;
2413
- return t.clickable ? (i(), w(r, {
2438
+ const t = e, o = k(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), l = 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" : ""}`);
2439
+ return (a, n) => {
2440
+ const d = L;
2441
+ return t.clickable ? (i(), h(d, {
2414
2442
  key: 0,
2415
- class: B(["d-flex w-100 p-0 text-body", l.value]),
2443
+ class: _(["d-flex w-100 p-0 text-body", o.value]),
2416
2444
  severity: t.severity,
2417
2445
  unstyled: "",
2418
2446
  "data-cy": "button-tile"
2419
2447
  }, {
2420
2448
  default: b(() => [
2421
- u("div", Zt, [
2422
- $(o.$slots, "default", {}, () => [
2423
- z("Tile Content")
2449
+ m("div", Jt, [
2450
+ B(a.$slots, "default", {}, () => [
2451
+ O("Tile Content")
2424
2452
  ])
2425
2453
  ])
2426
2454
  ]),
2427
2455
  _: 3
2428
- }, 8, ["severity", "class"])) : (i(), m("div", {
2456
+ }, 8, ["severity", "class"])) : (i(), y("div", {
2429
2457
  key: 1,
2430
- class: B(["d-flex w-100", a.value]),
2458
+ class: _(["d-flex w-100", l.value]),
2431
2459
  "data-cy": "tile"
2432
2460
  }, [
2433
- u("div", Jt, [
2434
- $(o.$slots, "default", {}, () => [
2435
- z("Tile Content")
2461
+ m("div", Xt, [
2462
+ B(a.$slots, "default", {}, () => [
2463
+ O("Tile Content")
2436
2464
  ])
2437
2465
  ])
2438
2466
  ], 2));
@@ -2442,13 +2470,13 @@ const yt = { key: 0 }, vt = {
2442
2470
  function Q(e, t) {
2443
2471
  return e > 1 ? `${t}s` : t;
2444
2472
  }
2445
- const Xt = {
2473
+ const Qt = {
2446
2474
  class: "d-flex justify-content-start align-items-baseline",
2447
2475
  "data-cy": "pagination-header"
2448
- }, Qt = { class: "ms-2" }, ea = { key: 0 }, ta = /* @__PURE__ */ u("span", { class: "mx-2" }, "|", -1), aa = {
2476
+ }, ea = { class: "ms-2" }, ta = { key: 0 }, aa = /* @__PURE__ */ m("span", { class: "mx-2" }, "|", -1), la = {
2449
2477
  class: "w-auto",
2450
2478
  "data-cy": "total"
2451
- }, la = /* @__PURE__ */ F({
2479
+ }, oa = /* @__PURE__ */ V({
2452
2480
  __name: "ForgePaginationHeader",
2453
2481
  props: {
2454
2482
  total: {},
@@ -2457,28 +2485,28 @@ const Xt = {
2457
2485
  },
2458
2486
  emits: ["update:perPage"],
2459
2487
  setup(e, { emit: t }) {
2460
- const l = t, a = e, o = (r) => {
2461
- l("update:perPage", r.value);
2462
- }, n = x(() => {
2463
- const r = Math.ceil(a.total / a.perPage);
2464
- return `${r} ${Q(r, "page")}`;
2488
+ const o = t, l = e, a = (d) => {
2489
+ o("update:perPage", d.value);
2490
+ }, n = k(() => {
2491
+ const d = Math.ceil(l.total / l.perPage);
2492
+ return `${d} ${Q(d, "page")}`;
2465
2493
  });
2466
- return (r, s) => (i(), m("div", Xt, [
2467
- z(" Number of results per page "),
2468
- u("div", Qt, [
2469
- f(c(de), {
2470
- options: a.pageSizes,
2471
- "model-value": a.perPage,
2472
- onChange: s[0] || (s[0] = (p) => o(p))
2494
+ return (d, u) => (i(), y("div", Qt, [
2495
+ O(" Number of results per page "),
2496
+ m("div", ea, [
2497
+ f(p(ne), {
2498
+ options: l.pageSizes,
2499
+ "model-value": l.perPage,
2500
+ onChange: u[0] || (u[0] = (c) => a(c))
2473
2501
  }, null, 8, ["options", "model-value"])
2474
2502
  ]),
2475
- a.total ? (i(), m("div", ea, [
2476
- ta,
2477
- u("span", aa, h(a.total) + " " + h(c(Q)(a.total, "result")) + " across " + h(n.value), 1)
2503
+ l.total ? (i(), y("div", ta, [
2504
+ aa,
2505
+ m("span", la, w(l.total) + " " + w(p(Q)(l.total, "result")) + " across " + w(n.value), 1)
2478
2506
  ])) : S("", !0)
2479
2507
  ]));
2480
2508
  }
2481
- }), oa = { class: "position-relative" }, na = { "data-cy": "above-table-slot" }, sa = { class: "d-flex" }, ia = { class: "d-flex align-items-end mb-2" }, ra = { key: 0 }, da = { class: "ms-auto" }, ua = /* @__PURE__ */ u("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), Bl = /* @__PURE__ */ F({
2509
+ }), na = { class: "position-relative" }, sa = { "data-cy": "above-table-slot" }, ia = { class: "d-flex" }, ra = { class: "d-flex align-items-end mb-2" }, da = { key: 0 }, ua = { class: "ms-auto" }, ca = /* @__PURE__ */ m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), Fl = /* @__PURE__ */ V({
2482
2510
  __name: "ForgeTable",
2483
2511
  props: {
2484
2512
  value: {},
@@ -2558,21 +2586,21 @@ const Xt = {
2558
2586
  },
2559
2587
  emits: ["update:filters", "update:tableContext", "sort", "page"],
2560
2588
  setup(e, { emit: t }) {
2561
- const l = t, a = e, o = I(), n = I([10, 20, 50, 100]), r = I(20), s = I({
2562
- filters: a.filters,
2563
- perPage: r.value,
2589
+ const o = t, l = e, a = I(), n = I([10, 20, 50, 100]), d = I(20), u = I({
2590
+ filters: l.filters,
2591
+ perPage: d.value,
2564
2592
  page: 0,
2565
2593
  sortDirection: "None",
2566
2594
  sortField: "",
2567
- total: a.totalRecords ?? a.value.length
2568
- }), p = x(() => a.totalRecords ?? a.value.length), d = x(() => {
2569
- const g = Math.ceil(p.value / r.value);
2595
+ total: l.totalRecords ?? l.value.length
2596
+ }), c = k(() => l.totalRecords ?? l.value.length), r = k(() => {
2597
+ const g = Math.ceil(c.value / d.value);
2570
2598
  return `${g} ${Q(g, "page")}`;
2571
- }), y = x(() => ({
2599
+ }), s = k(() => ({
2572
2600
  thead: () => ({
2573
2601
  class: [
2574
2602
  {
2575
- "sticky-header": a.stickyHeader
2603
+ "sticky-header": l.stickyHeader
2576
2604
  }
2577
2605
  ],
2578
2606
  style: "position: "
@@ -2581,100 +2609,100 @@ const Xt = {
2581
2609
  class: [
2582
2610
  "spinner-border border-0",
2583
2611
  {
2584
- "text-brand": a.severity === "brand",
2585
- "text-primary": a.severity === "primary",
2586
- "text-success": a.severity === "success",
2587
- "text-warning": a.severity === "warning",
2588
- "text-danger": a.severity === "danger",
2589
- "text-info": a.severity === "info"
2612
+ "text-brand": l.severity === "brand",
2613
+ "text-primary": l.severity === "primary",
2614
+ "text-success": l.severity === "success",
2615
+ "text-warning": l.severity === "warning",
2616
+ "text-danger": l.severity === "danger",
2617
+ "text-info": l.severity === "info"
2590
2618
  }
2591
2619
  ]
2592
2620
  })
2593
2621
  })), v = () => {
2594
- for (const g in a.filters)
2595
- typeof a.filters[g] == "string" ? a.filters[g] = "" : a.filters[g].value = null;
2596
- P(a.filters);
2597
- }, k = () => {
2598
- o.value.exportCSV();
2599
- }, _ = (g) => {
2600
- var M;
2601
- s.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", s.value.sortField = ((M = g.sortField) == null ? void 0 : M.toString()) ?? "", l("update:tableContext", s.value), l("sort", g);
2622
+ for (const g in l.filters)
2623
+ typeof l.filters[g] == "string" ? l.filters[g] = "" : l.filters[g].value = null;
2624
+ P(l.filters);
2625
+ }, x = () => {
2626
+ a.value.exportCSV();
2627
+ }, F = (g) => {
2628
+ var $;
2629
+ u.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", u.value.sortField = (($ = g.sortField) == null ? void 0 : $.toString()) ?? "", o("update:tableContext", u.value), o("sort", g);
2602
2630
  }, P = (g) => {
2603
- s.value.filters = g, l("update:tableContext", s.value), l("update:filters", g);
2604
- }, V = (g) => {
2605
- s.value.page = g.page, l("update:tableContext", s.value), l("page", g);
2606
- }, O = () => {
2607
- s.value.perPage = r.value, l("update:tableContext", s.value);
2631
+ u.value.filters = g, o("update:tableContext", u.value), o("update:filters", g);
2632
+ }, M = (g) => {
2633
+ u.value.page = g.page, o("update:tableContext", u.value), o("page", g);
2634
+ }, z = () => {
2635
+ u.value.perPage = d.value, o("update:tableContext", u.value);
2608
2636
  };
2609
- return ie(() => a.filters, (g) => {
2610
- s.value.filters = g, l("update:tableContext", s.value);
2611
- }, { deep: !0 }), ae(() => l("update:tableContext", s.value)), (g, M) => (i(), m("div", oa, [
2612
- u("span", na, [
2613
- $(g.$slots, "above-table")
2637
+ return re(() => l.filters, (g) => {
2638
+ u.value.filters = g, o("update:tableContext", u.value);
2639
+ }, { deep: !0 }), ae(() => o("update:tableContext", u.value)), (g, $) => (i(), y("div", na, [
2640
+ m("span", sa, [
2641
+ B(g.$slots, "above-table")
2614
2642
  ]),
2615
- f(c(Me), T({
2616
- class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
2617
- }, { ...a, ...g.$attrs }, {
2618
- pt: y.value,
2619
- rows: r.value,
2620
- "total-records": p.value,
2621
- "filter-display": a.filters ? "row" : void 0,
2643
+ f(p(Oe), C({
2644
+ class: ["w-100", `${l.severity ? `forge-table-${l.severity}` : ""}`]
2645
+ }, { ...l, ...g.$attrs }, {
2646
+ pt: s.value,
2647
+ rows: d.value,
2648
+ "total-records": c.value,
2649
+ "filter-display": l.filters ? "row" : void 0,
2622
2650
  ref_key: "forgeTable",
2623
- ref: o,
2651
+ ref: a,
2624
2652
  "data-cy": "table",
2625
2653
  "onUpdate:filters": P,
2626
- onSort: _,
2627
- onPage: V
2654
+ onSort: F,
2655
+ onPage: M
2628
2656
  }), oe({
2629
2657
  header: b(() => [
2630
- u("div", {
2631
- class: B(a.loading ? "opacity-50" : "")
2658
+ m("div", {
2659
+ class: _(l.loading ? "opacity-50" : "")
2632
2660
  }, [
2633
- u("div", sa, [
2634
- u("div", ia, [
2635
- g.paginator && !g.legacyPaginationFooter ? (i(), m("span", ra, [
2636
- f(la, {
2637
- total: p.value,
2661
+ m("div", ia, [
2662
+ m("div", ra, [
2663
+ g.paginator && !g.legacyPaginationFooter ? (i(), y("span", da, [
2664
+ f(oa, {
2665
+ total: c.value,
2638
2666
  "page-sizes": n.value,
2639
- "per-page": r.value,
2667
+ "per-page": d.value,
2640
2668
  "onUpdate:perPage": [
2641
- M[0] || (M[0] = (q) => r.value = q),
2642
- O
2669
+ $[0] || ($[0] = (G) => d.value = G),
2670
+ z
2643
2671
  ]
2644
2672
  }, null, 8, ["total", "page-sizes", "per-page"])
2645
2673
  ])) : S("", !0)
2646
2674
  ]),
2647
- u("div", da, [
2648
- g.showClearButton ? (i(), w(c(R), {
2675
+ m("div", ua, [
2676
+ g.showClearButton ? (i(), h(p(L), {
2649
2677
  key: 0,
2650
2678
  outlined: "",
2651
- class: B(g.showExporterButton ? "me-2" : ""),
2679
+ class: _(g.showExporterButton ? "me-2" : ""),
2652
2680
  onClick: v,
2653
2681
  "data-cy": "clear-all"
2654
2682
  }, {
2655
2683
  default: b(() => [
2656
- f(c(C), {
2684
+ f(p(T), {
2657
2685
  icon: "bi:funnel-fill",
2658
2686
  width: "24",
2659
2687
  height: "24"
2660
2688
  }),
2661
- z(" Clear ")
2689
+ O(" Clear ")
2662
2690
  ]),
2663
2691
  _: 1
2664
2692
  }, 8, ["class"])) : S("", !0),
2665
- g.showExporterButton ? (i(), w(c(R), {
2693
+ g.showExporterButton ? (i(), h(p(L), {
2666
2694
  key: 1,
2667
2695
  outlined: "",
2668
- onClick: k,
2696
+ onClick: x,
2669
2697
  "data-cy": "exporter"
2670
2698
  }, {
2671
2699
  default: b(() => [
2672
- f(c(C), {
2700
+ f(p(T), {
2673
2701
  icon: "typcn:export",
2674
2702
  width: "24",
2675
2703
  height: "24"
2676
2704
  }),
2677
- z(" Export ")
2705
+ O(" Export ")
2678
2706
  ]),
2679
2707
  _: 1
2680
2708
  })) : S("", !0)
@@ -2683,30 +2711,30 @@ const Xt = {
2683
2711
  ], 2)
2684
2712
  ]),
2685
2713
  default: b(() => [
2686
- $(g.$slots, "default")
2714
+ B(g.$slots, "default")
2687
2715
  ]),
2688
2716
  _: 2
2689
2717
  }, [
2690
- Y(g.$slots, (q, Z) => ({
2718
+ q(g.$slots, (G, Z) => ({
2691
2719
  name: Z,
2692
- fn: b((se) => [
2693
- $(g.$slots, Z, ee(te(se || {})))
2720
+ fn: b((ie) => [
2721
+ B(g.$slots, Z, ee(te(ie || {})))
2694
2722
  ])
2695
2723
  })),
2696
2724
  g.legacyPaginationFooter ? {
2697
2725
  name: "paginatorstart",
2698
2726
  fn: b(() => [
2699
- u("span", {
2700
- class: B(["d-flex", a.loading ? "opacity-50" : ""]),
2727
+ m("span", {
2728
+ class: _(["d-flex", l.loading ? "opacity-50" : ""]),
2701
2729
  "data-cy": "legacy-page-size"
2702
2730
  }, [
2703
- ua,
2704
- f(c(de), {
2731
+ ca,
2732
+ f(p(ne), {
2705
2733
  options: n.value,
2706
- modelValue: r.value,
2707
- "onUpdate:modelValue": M[1] || (M[1] = (q) => r.value = q),
2734
+ modelValue: d.value,
2735
+ "onUpdate:modelValue": $[1] || ($[1] = (G) => d.value = G),
2708
2736
  class: "ms-2",
2709
- onClick: O
2737
+ onClick: z
2710
2738
  }, null, 8, ["options", "modelValue"])
2711
2739
  ], 2)
2712
2740
  ]),
@@ -2715,64 +2743,81 @@ const Xt = {
2715
2743
  g.legacyPaginationFooter ? {
2716
2744
  name: "paginatorend",
2717
2745
  fn: b(() => [
2718
- u("span", {
2746
+ m("span", {
2719
2747
  "data-cy": "legacy-total",
2720
- class: B(a.loading ? "opacity-50" : "")
2721
- }, h(p.value) + " " + h(c(Q)(p.value, "result")) + " across " + h(d.value), 3)
2748
+ class: _(l.loading ? "opacity-50" : "")
2749
+ }, w(c.value) + " " + w(p(Q)(c.value, "result")) + " across " + w(r.value), 3)
2722
2750
  ]),
2723
2751
  key: "1"
2724
2752
  } : void 0
2725
2753
  ]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
2726
2754
  ]));
2727
2755
  }
2728
- }), ca = { class: "d-flex position-relative" }, ma = { class: "d-flex w-100" }, pa = { class: "d-flex w-100" }, _l = /* @__PURE__ */ F({
2756
+ }), ma = { class: "d-flex position-relative" }, pa = { class: "d-flex w-100" }, va = { class: "d-flex w-100" }, _l = /* @__PURE__ */ V({
2729
2757
  __name: "ForgeFilterHeader",
2730
- props: /* @__PURE__ */ L({
2758
+ props: /* @__PURE__ */ j({
2731
2759
  dataType: {},
2732
2760
  dropdownOptions: {},
2733
2761
  showClearButton: { type: Boolean, default: !1 },
2734
- clearFilter: { type: Function }
2762
+ clearFilter: { type: Function },
2763
+ optionLabel: {},
2764
+ optionValue: {}
2735
2765
  }, {
2736
2766
  modelValue: { required: !0 },
2737
2767
  modelModifiers: {}
2738
2768
  }),
2739
2769
  emits: ["update:modelValue"],
2740
2770
  setup(e) {
2741
- const t = E(e, "modelValue"), l = () => {
2771
+ const t = E(e, "modelValue"), o = (a, n) => {
2772
+ if (!a || Array.isArray(a) && a.length === 0)
2773
+ return n;
2774
+ const d = (u) => {
2775
+ var r;
2776
+ const c = (r = e.dropdownOptions) == null ? void 0 : r.find(
2777
+ (s) => e.optionValue ? s[e.optionValue] === u : Object.keys(s).every((v) => u.hasOwnProperty(v) && s[v] === u[v])
2778
+ );
2779
+ return e.optionLabel ? c[e.optionLabel] : c;
2780
+ };
2781
+ return Array.isArray(a) ? a.map(d).join(", ") : typeof a == "object" ? d(a) : a;
2782
+ }, l = () => {
2742
2783
  e.clearFilter ? e.clearFilter() : t.value = null;
2743
2784
  };
2744
- return (a, o) => {
2745
- const n = me, r = R;
2746
- return i(), m("div", ca, [
2747
- a.dataType === "numeric" ? (i(), w(n, T({
2785
+ return (a, n) => {
2786
+ const d = me, u = L;
2787
+ return i(), y("div", ma, [
2788
+ a.dataType === "numeric" ? (i(), h(d, C({
2748
2789
  key: 0,
2749
2790
  modelValue: t.value,
2750
- "onUpdate:modelValue": o[0] || (o[0] = (s) => t.value = s)
2751
- }, a.$attrs), null, 16, ["modelValue"])) : a.dataType === "date" ? (i(), w(Rt, T({
2791
+ "onUpdate:modelValue": n[0] || (n[0] = (c) => t.value = c)
2792
+ }, a.$attrs), null, 16, ["modelValue"])) : a.dataType === "date" ? (i(), h(fe, C({
2752
2793
  key: 1,
2753
2794
  modelValue: t.value,
2754
- "onUpdate:modelValue": o[1] || (o[1] = (s) => t.value = s)
2795
+ "onUpdate:modelValue": n[1] || (n[1] = (c) => t.value = c)
2755
2796
  }, a.$attrs, {
2756
2797
  "show-icon": !1,
2757
2798
  "show-on-focus": !0
2758
- }), null, 16, ["modelValue"])) : a.dataType === "select" ? (i(), w(c(de), T({
2799
+ }), null, 16, ["modelValue"])) : a.dataType === "select" ? (i(), h(p(ne), C({
2759
2800
  key: 2,
2760
2801
  modelValue: t.value,
2761
- "onUpdate:modelValue": o[2] || (o[2] = (s) => t.value = s)
2762
- }, a.$attrs, { options: a.dropdownOptions }), {
2763
- value: b(({ value: s, placeholder: p }) => [
2764
- u("div", ma, [
2765
- u("span", {
2766
- class: B({ "filter-placeholder": s === null })
2767
- }, h(s !== null ? s : p), 3),
2768
- a.showClearButton && t.value !== null ? (i(), w(r, {
2802
+ "onUpdate:modelValue": n[2] || (n[2] = (c) => t.value = c)
2803
+ }, a.$attrs, {
2804
+ options: a.dropdownOptions,
2805
+ "option-value": a.optionValue,
2806
+ "option-label": a.optionLabel
2807
+ }), {
2808
+ value: b(({ value: c, placeholder: r }) => [
2809
+ m("div", pa, [
2810
+ m("span", {
2811
+ class: _({ "filter-placeholder": c === null })
2812
+ }, w(o(c, r)), 3),
2813
+ a.showClearButton && t.value !== null ? (i(), h(u, {
2769
2814
  key: 0,
2770
- onClick: j(l, ["prevent"]),
2815
+ onClick: Y(l, ["prevent"]),
2771
2816
  size: "small",
2772
2817
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
2773
2818
  }, {
2774
2819
  default: b(() => [
2775
- f(c(C), {
2820
+ f(p(T), {
2776
2821
  icon: "bi:x",
2777
2822
  width: "1rem",
2778
2823
  height: "1rem",
@@ -2784,28 +2829,30 @@ const Xt = {
2784
2829
  ])
2785
2830
  ]),
2786
2831
  _: 1
2787
- }, 16, ["modelValue", "options"])) : a.dataType === "multiselect" ? (i(), w(c(ze), T({
2832
+ }, 16, ["modelValue", "options", "option-value", "option-label"])) : a.dataType === "multiselect" ? (i(), h(p(De), C({
2788
2833
  key: 3,
2789
2834
  modelValue: t.value,
2790
- "onUpdate:modelValue": o[3] || (o[3] = (s) => t.value = s)
2835
+ "onUpdate:modelValue": n[3] || (n[3] = (c) => t.value = c)
2791
2836
  }, a.$attrs, {
2792
2837
  options: a.dropdownOptions,
2793
2838
  showToggleAll: !1,
2839
+ "option-label": a.optionLabel,
2840
+ "option-value": a.optionValue,
2794
2841
  filter: ""
2795
2842
  }), {
2796
- value: b(({ value: s, placeholder: p }) => [
2797
- u("div", pa, [
2798
- u("span", {
2799
- class: B({ "filter-placeholder": (s == null ? void 0 : s.length) === 0 })
2800
- }, h(s !== null && (s == null ? void 0 : s.length) > 0 ? s.join(", ") : p), 3),
2801
- a.showClearButton && (s == null ? void 0 : s.length) > 0 ? (i(), w(r, {
2843
+ value: b(({ value: c, placeholder: r }) => [
2844
+ m("div", va, [
2845
+ m("span", {
2846
+ class: _({ "filter-placeholder": (c == null ? void 0 : c.length) === 0 || c === null })
2847
+ }, w(o(c, r)), 3),
2848
+ a.showClearButton && (c == null ? void 0 : c.length) > 0 ? (i(), h(u, {
2802
2849
  key: 0,
2803
- onClick: j(l, ["prevent"]),
2850
+ onClick: Y(l, ["prevent"]),
2804
2851
  size: "small",
2805
2852
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
2806
2853
  }, {
2807
2854
  default: b(() => [
2808
- f(c(C), {
2855
+ f(p(T), {
2809
2856
  icon: "bi:x",
2810
2857
  width: "1rem",
2811
2858
  height: "1rem",
@@ -2817,19 +2864,19 @@ const Xt = {
2817
2864
  ])
2818
2865
  ]),
2819
2866
  _: 1
2820
- }, 16, ["modelValue", "options"])) : (i(), w(c(re), T({
2867
+ }, 16, ["modelValue", "options", "option-label", "option-value"])) : (i(), h(p(de), C({
2821
2868
  key: 4,
2822
2869
  modelValue: t.value,
2823
- "onUpdate:modelValue": o[4] || (o[4] = (s) => t.value = s)
2870
+ "onUpdate:modelValue": n[4] || (n[4] = (c) => t.value = c)
2824
2871
  }, a.$attrs), null, 16, ["modelValue"])),
2825
- a.showClearButton && t.value !== null && a.dataType !== "select" && a.dataType !== "multiselect" && a.dataType !== "date" ? (i(), w(r, {
2872
+ a.showClearButton && t.value !== null && a.dataType !== "select" && a.dataType !== "multiselect" && a.dataType !== "date" ? (i(), h(u, {
2826
2873
  key: 5,
2827
- onClick: j(l, ["prevent"]),
2874
+ onClick: Y(l, ["prevent"]),
2828
2875
  size: "small",
2829
2876
  class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
2830
2877
  }, {
2831
2878
  default: b(() => [
2832
- f(c(C), {
2879
+ f(p(T), {
2833
2880
  icon: "bi:x",
2834
2881
  width: "1rem",
2835
2882
  height: "1rem",
@@ -2842,50 +2889,50 @@ const Xt = {
2842
2889
  };
2843
2890
  }
2844
2891
  });
2845
- function be(e, t, l, a) {
2846
- const o = t.flatMap((n) => n.file);
2892
+ function ge(e, t, o, l) {
2893
+ const a = t.flatMap((n) => n.file);
2847
2894
  return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
2848
- const r = o.findIndex((p) => p.name === n.name);
2849
- let s = "Not Uploaded";
2850
- r === -1 ? ((!l.includes(n.type) || !(n.size <= a)) && (s = l.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
2895
+ const d = a.findIndex((c) => c.name === n.name);
2896
+ let u = "Not Uploaded";
2897
+ d === -1 ? ((!o.includes(n.type) || !(n.size <= l)) && (u = o.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
2851
2898
  file: n,
2852
- status: s,
2899
+ status: u,
2853
2900
  blobFileName: null
2854
- })) : t[r].status = "Duplicate";
2901
+ })) : t[d].status = "Duplicate";
2855
2902
  }), t;
2856
2903
  }
2857
2904
  async function ya(e, t) {
2858
2905
  if (e === "Uploaded" && t !== null)
2859
2906
  try {
2860
2907
  await new pe(t).delete();
2861
- } catch (l) {
2862
- if (l !== "BlobNotFound") {
2908
+ } catch (o) {
2909
+ if (o !== "BlobNotFound") {
2863
2910
  e = "DeleteFileFailed";
2864
2911
  return;
2865
2912
  }
2866
2913
  }
2867
2914
  }
2868
- function ue(e, t = !0, l = 1) {
2869
- const a = t ? 1e3 : 1024;
2870
- if (Math.abs(e) < a)
2915
+ function ue(e, t = !0, o = 1) {
2916
+ const l = t ? 1e3 : 1024;
2917
+ if (Math.abs(e) < l)
2871
2918
  return e + " B";
2872
- const o = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
2919
+ const a = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
2873
2920
  let n = -1;
2874
- const r = 10 ** l;
2921
+ const d = 10 ** o;
2875
2922
  do
2876
- e /= a, ++n;
2877
- while (Math.round(Math.abs(e) * r) / r >= a && n < o.length - 1);
2878
- return e.toFixed(l) + " " + o[n];
2923
+ e /= l, ++n;
2924
+ while (Math.round(Math.abs(e) * d) / d >= l && n < a.length - 1);
2925
+ return e.toFixed(o) + " " + a[n];
2879
2926
  }
2880
- function va(e) {
2927
+ function ba(e) {
2881
2928
  return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
2882
2929
  }
2883
- function ba(e) {
2930
+ function fa(e) {
2884
2931
  return URL.createObjectURL(e);
2885
2932
  }
2886
- const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disabled", "multiple"], ha = /* @__PURE__ */ F({
2933
+ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disabled", "multiple"], wa = /* @__PURE__ */ V({
2887
2934
  __name: "UploadButton",
2888
- props: /* @__PURE__ */ L({
2935
+ props: /* @__PURE__ */ j({
2889
2936
  acceptedFileTypes: {},
2890
2937
  maxFileInput: {},
2891
2938
  showDragDropArea: { type: Boolean }
@@ -2895,54 +2942,54 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
2895
2942
  }),
2896
2943
  emits: ["update:modelValue"],
2897
2944
  setup(e) {
2898
- const t = E(e, "modelValue"), l = x(() => e.maxFileInput <= t.value.length), a = (o) => {
2899
- t.value = be(o, t.value, e.acceptedFileTypes, e.maxFileInput);
2945
+ const t = E(e, "modelValue"), o = k(() => e.maxFileInput <= t.value.length), l = (a) => {
2946
+ t.value = ge(a, t.value, e.acceptedFileTypes, e.maxFileInput);
2900
2947
  };
2901
- return (o, n) => (i(), m("div", fa, [
2902
- $(o.$slots, "message"),
2903
- u("div", null, [
2904
- u("input", {
2948
+ return (a, n) => (i(), y("div", ga, [
2949
+ B(a.$slots, "message"),
2950
+ m("div", null, [
2951
+ m("input", {
2905
2952
  id: "file-input",
2906
2953
  type: "file",
2907
2954
  class: "d-none",
2908
- accept: o.acceptedFileTypes.join(", "),
2909
- disabled: l.value,
2910
- multiple: o.maxFileInput > 1,
2911
- onInput: n[0] || (n[0] = (r) => a([...r.target.files]))
2912
- }, null, 40, ga),
2913
- u("label", {
2914
- class: B([{ disabled: l.value }, "btn btn-primary"]),
2955
+ accept: a.acceptedFileTypes.join(", "),
2956
+ disabled: o.value,
2957
+ multiple: a.maxFileInput > 1,
2958
+ onInput: n[0] || (n[0] = (d) => l([...d.target.files]))
2959
+ }, null, 40, ha),
2960
+ m("label", {
2961
+ class: _([{ disabled: o.value }, "btn btn-primary"]),
2915
2962
  id: "file-input-button",
2916
2963
  for: "file-input"
2917
2964
  }, [
2918
- $(o.$slots, "button-content", {}, () => [
2919
- f(c(C), {
2965
+ B(a.$slots, "button-content", {}, () => [
2966
+ f(p(T), {
2920
2967
  icon: "bi:upload",
2921
2968
  class: "me-2",
2922
2969
  height: "20px",
2923
2970
  width: "20px"
2924
2971
  }),
2925
- z(" Browse your computer ")
2972
+ O(" Browse your computer ")
2926
2973
  ])
2927
2974
  ], 2)
2928
2975
  ]),
2929
- o.showDragDropArea ? (i(), m("div", {
2976
+ a.showDragDropArea ? (i(), y("div", {
2930
2977
  class: "ms-auto",
2931
- key: o.acceptedFileTypes.length,
2978
+ key: a.acceptedFileTypes.length,
2932
2979
  id: "accepted-file-types"
2933
- }, "Accepted File Types: " + h(o.acceptedFileTypes.map((r) => r.split("/").pop()).join(", ")), 1)) : S("", !0)
2980
+ }, "Accepted File Types: " + w(a.acceptedFileTypes.map((d) => d.split("/").pop()).join(", ")), 1)) : S("", !0)
2934
2981
  ]));
2935
2982
  }
2936
- }), wa = {
2983
+ }), xa = {
2937
2984
  key: 0,
2938
2985
  class: "py-4 px-3",
2939
2986
  id: "placeholder-message"
2940
- }, xa = {
2987
+ }, ka = {
2941
2988
  key: 1,
2942
2989
  class: "d-flex flex-column"
2943
- }, ka = /* @__PURE__ */ F({
2990
+ }, $a = /* @__PURE__ */ V({
2944
2991
  __name: "DragDropArea",
2945
- props: /* @__PURE__ */ L({
2992
+ props: /* @__PURE__ */ j({
2946
2993
  maxFileInput: {},
2947
2994
  maxFileSize: {},
2948
2995
  acceptedFileTypes: {}
@@ -2952,30 +2999,30 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
2952
2999
  }),
2953
3000
  emits: ["update:modelValue"],
2954
3001
  setup(e) {
2955
- const t = E(e, "modelValue"), l = I(!1), a = x(() => e.maxFileInput <= t.value.length), o = (n) => {
2956
- l.value = !1, n.dataTransfer.files.length > e.maxFileInput || a.value ? n.preventDefault() : t.value = be([...n.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
3002
+ const t = E(e, "modelValue"), o = I(!1), l = k(() => e.maxFileInput <= t.value.length), a = (n) => {
3003
+ o.value = !1, n.dataTransfer.files.length > e.maxFileInput || l.value ? n.preventDefault() : t.value = ge([...n.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
2957
3004
  };
2958
- return (n, r) => (i(), m("div", {
3005
+ return (n, d) => (i(), y("div", {
2959
3006
  id: "drag-drop-area",
2960
- class: B(`${l.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
2961
- onDragleave: r[0] || (r[0] = j((s) => l.value = !1, ["prevent"])),
2962
- onDragover: r[1] || (r[1] = j((s) => l.value = !0, ["prevent"])),
2963
- onDrop: j(o, ["prevent"])
3007
+ class: _(`${o.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
3008
+ onDragleave: d[0] || (d[0] = Y((u) => o.value = !1, ["prevent"])),
3009
+ onDragover: d[1] || (d[1] = Y((u) => o.value = !0, ["prevent"])),
3010
+ onDrop: Y(a, ["prevent"])
2964
3011
  }, [
2965
- t.value.length === 0 ? (i(), m("div", wa, [
2966
- f(c(C), {
3012
+ t.value.length === 0 ? (i(), y("div", xa, [
3013
+ f(p(T), {
2967
3014
  icon: "bi:upload",
2968
3015
  class: "me-2",
2969
3016
  height: "20px",
2970
3017
  width: "20px"
2971
3018
  }),
2972
- z(" Drag and drop files here ")
2973
- ])) : (i(), m("div", xa, [
2974
- $(n.$slots, "default")
3019
+ O(" Drag and drop files here ")
3020
+ ])) : (i(), y("div", ka, [
3021
+ B(n.$slots, "default")
2975
3022
  ]))
2976
3023
  ], 34));
2977
3024
  }
2978
- }), $a = { class: "d-flex align-items-center me-2" }, Ba = /* @__PURE__ */ F({
3025
+ }), Ba = { class: "d-flex align-items-center me-2" }, Fa = /* @__PURE__ */ V({
2979
3026
  __name: "UploadStatus",
2980
3027
  props: {
2981
3028
  fileSize: {},
@@ -2984,7 +3031,7 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
2984
3031
  uploadStatus: {}
2985
3032
  },
2986
3033
  setup(e) {
2987
- const t = x(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), l = x(() => {
3034
+ const t = k(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), o = k(() => {
2988
3035
  switch (e.uploadStatus) {
2989
3036
  case "InvalidFileType":
2990
3037
  return "Upload Failed: File type is not accepted.";
@@ -3000,43 +3047,43 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
3000
3047
  return "Upload Failed: Connection error, please try again.";
3001
3048
  }
3002
3049
  });
3003
- return (a, o) => (i(), m("div", $a, [
3004
- a.uploadStatus === "Uploading" ? (i(), w(qt, {
3050
+ return (l, a) => (i(), y("div", Ba, [
3051
+ l.uploadStatus === "Uploading" ? (i(), h(Gt, {
3005
3052
  key: 0,
3006
3053
  pixelWidth: 200,
3007
3054
  animate: "",
3008
3055
  striped: ""
3009
3056
  }, {
3010
3057
  default: b(() => [
3011
- z(h((a.bytesUploaded / a.fileSize * 100).toFixed(0)) + "%", 1)
3058
+ O(w((l.bytesUploaded / l.fileSize * 100).toFixed(0)) + "%", 1)
3012
3059
  ]),
3013
3060
  _: 1
3014
3061
  })) : S("", !0),
3015
- a.uploadStatus !== "Uploading" && a.uploadStatus !== "Not Uploaded" && a.uploadStatus !== "Uploaded" && a.uploadStatus !== "Preparing" ? (i(), w(ne, {
3062
+ l.uploadStatus !== "Uploading" && l.uploadStatus !== "Not Uploaded" && l.uploadStatus !== "Uploaded" && l.uploadStatus !== "Preparing" ? (i(), h(se, {
3016
3063
  key: 1,
3017
3064
  id: "upload-status-alert",
3018
3065
  severity: t.value,
3019
3066
  class: "mb-0 w-75 ms-auto"
3020
3067
  }, {
3021
3068
  default: b(() => [
3022
- z(h(l.value), 1)
3069
+ O(w(o.value), 1)
3023
3070
  ]),
3024
3071
  _: 1
3025
3072
  }, 8, ["severity"])) : S("", !0)
3026
3073
  ]));
3027
3074
  }
3028
- }), _a = ["data-cy"], Fa = { class: "ms-3 d-flex flex-column" }, Sa = {
3075
+ }), _a = ["data-cy"], Va = { class: "ms-3 d-flex flex-column" }, Sa = {
3029
3076
  key: 1,
3030
3077
  id: "file-name"
3031
- }, Va = {
3078
+ }, Ca = {
3032
3079
  class: "text-black-50",
3033
3080
  id: "file-type"
3034
- }, Ca = {
3081
+ }, Ta = {
3035
3082
  class: "text-black-50",
3036
3083
  id: "file-size"
3037
- }, Ta = { class: "ms-auto my-auto d-flex" }, Pa = /* @__PURE__ */ F({
3084
+ }, Pa = { class: "ms-auto my-auto d-flex" }, Ma = /* @__PURE__ */ V({
3038
3085
  __name: "FileInfo",
3039
- props: /* @__PURE__ */ L({
3086
+ props: /* @__PURE__ */ j({
3040
3087
  editableFileName: { type: Boolean },
3041
3088
  acceptedFileTypes: {},
3042
3089
  maxFileSize: {},
@@ -3051,57 +3098,57 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
3051
3098
  uploadStatus: { required: !0 },
3052
3099
  uploadStatusModifiers: {}
3053
3100
  }),
3054
- emits: /* @__PURE__ */ L(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
3101
+ emits: /* @__PURE__ */ j(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
3055
3102
  setup(e, { emit: t }) {
3056
- const l = E(e, "file"), a = E(e, "blobFileName"), o = E(e, "uploadStatus"), n = t, r = I(l.value.name), s = I(""), p = I(0), d = I(), y = x(() => e.acceptedFileTypes.includes(l.value.type)), v = x(() => l.value.size <= e.maxFileSize), k = () => {
3057
- l.value = new File([l.value], r.value, { type: l.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
3058
- }, _ = async () => {
3059
- if (!y.value || !v.value) {
3060
- o.value = y.value ? "InvalidFileSize" : "InvalidFileType";
3103
+ const o = E(e, "file"), l = E(e, "blobFileName"), a = E(e, "uploadStatus"), n = t, d = I(o.value.name), u = I(""), c = I(0), r = I(), s = k(() => e.acceptedFileTypes.includes(o.value.type)), v = k(() => o.value.size <= e.maxFileSize), x = () => {
3104
+ o.value = new File([o.value], d.value, { type: o.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
3105
+ }, F = async () => {
3106
+ if (!s.value || !v.value) {
3107
+ a.value = s.value ? "InvalidFileSize" : "InvalidFileType";
3061
3108
  return;
3062
3109
  }
3063
- o.value = "Preparing", d.value = new AbortController();
3064
- const [V, O] = await e.getFileUrlAction(l.value.name);
3065
- if (!V) {
3066
- o.value = "Failed";
3110
+ a.value = "Preparing", r.value = new AbortController();
3111
+ const [M, z] = await e.getFileUrlAction(o.value.name);
3112
+ if (!M) {
3113
+ a.value = "Failed";
3067
3114
  return;
3068
3115
  }
3069
3116
  try {
3070
- o.value = "Uploading";
3071
- const g = new pe(V), M = {
3072
- abortSignal: d.value.signal,
3073
- onProgress: (q) => p.value = q.loadedBytes,
3117
+ a.value = "Uploading";
3118
+ const g = new pe(M), $ = {
3119
+ abortSignal: r.value.signal,
3120
+ onProgress: (G) => c.value = G.loadedBytes,
3074
3121
  tags: { temp: "true" }
3075
3122
  };
3076
- await g.uploadData(l.value, M), s.value = V, o.value = "Uploaded", a.value = O;
3123
+ await g.uploadData(o.value, $), u.value = M, a.value = "Uploaded", l.value = z;
3077
3124
  } catch (g) {
3078
3125
  if (g.name === "AbortError") {
3079
- o.value = "Aborted";
3126
+ a.value = "Aborted";
3080
3127
  return;
3081
3128
  }
3082
- o.value = "Failed";
3129
+ a.value = "Failed";
3083
3130
  }
3084
3131
  }, P = async () => {
3085
- await ya(o.value, s.value), n("deleted", l.value);
3132
+ await ya(a.value, u.value), n("deleted", o.value);
3086
3133
  };
3087
3134
  return ae(() => {
3088
- e.autoUploadToBlob && _();
3089
- }), (V, O) => {
3090
- const g = R;
3091
- return i(), m("div", {
3135
+ e.autoUploadToBlob && F();
3136
+ }), (M, z) => {
3137
+ const g = L;
3138
+ return i(), y("div", {
3092
3139
  class: "py-4 px-3 d-flex",
3093
- "data-cy": `file-info-${l.value.name}`
3140
+ "data-cy": `file-info-${o.value.name}`
3094
3141
  }, [
3095
- u("div", null, [
3096
- c(va)(l.value.type) ? (i(), w(c(Oe), {
3142
+ m("div", null, [
3143
+ p(ba)(o.value.type) ? (i(), h(p(Ue), {
3097
3144
  key: 0,
3098
3145
  id: "thumbnail-image",
3099
3146
  "image-class": "image-file-thumbnail border",
3100
- src: c(ba)(l.value),
3101
- alt: l.value.name,
3147
+ src: p(fa)(o.value),
3148
+ alt: o.value.name,
3102
3149
  width: "75px",
3103
3150
  preview: ""
3104
- }, null, 8, ["src", "alt"])) : (i(), w(c(C), {
3151
+ }, null, 8, ["src", "alt"])) : (i(), h(p(T), {
3105
3152
  key: 1,
3106
3153
  id: "file-earmark",
3107
3154
  icon: "bi:file-earmark",
@@ -3109,58 +3156,58 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
3109
3156
  width: "75px"
3110
3157
  }))
3111
3158
  ]),
3112
- u("div", Fa, [
3113
- u("div", null, [
3114
- V.editableFileName ? (i(), w(kt, {
3159
+ m("div", Va, [
3160
+ m("div", null, [
3161
+ M.editableFileName ? (i(), h(Bt, {
3115
3162
  key: 0,
3116
3163
  id: "edit-file-name",
3117
- modelValue: r.value,
3118
- "onUpdate:modelValue": O[0] || (O[0] = (M) => r.value = M),
3119
- rules: V.customFileNameRules,
3120
- name: l.value.name,
3121
- "complete-action": k
3122
- }, null, 8, ["modelValue", "rules", "name"])) : (i(), m("span", Sa, h(l.value.name), 1))
3164
+ modelValue: d.value,
3165
+ "onUpdate:modelValue": z[0] || (z[0] = ($) => d.value = $),
3166
+ rules: M.customFileNameRules,
3167
+ name: o.value.name,
3168
+ "complete-action": x
3169
+ }, null, 8, ["modelValue", "rules", "name"])) : (i(), y("span", Sa, w(o.value.name), 1))
3123
3170
  ]),
3124
- u("span", Va, "File type: " + h(l.value.type.split("/").pop()), 1),
3125
- u("span", Ca, "File size: " + h(c(ue)(l.value.size)), 1)
3171
+ m("span", Ca, "File type: " + w(o.value.type.split("/").pop()), 1),
3172
+ m("span", Ta, "File size: " + w(p(ue)(o.value.size)), 1)
3126
3173
  ]),
3127
- u("div", Ta, [
3128
- (i(), w(Ba, {
3129
- key: o.value,
3130
- "file-size": l.value.size,
3131
- "upload-status": o.value,
3132
- "bytes-uploaded": p.value,
3133
- "max-file-size": V.maxFileSize
3174
+ m("div", Pa, [
3175
+ (i(), h(Fa, {
3176
+ key: a.value,
3177
+ "file-size": o.value.size,
3178
+ "upload-status": a.value,
3179
+ "bytes-uploaded": c.value,
3180
+ "max-file-size": M.maxFileSize
3134
3181
  }, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
3135
- o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (i(), w(g, {
3182
+ a.value === "Not Uploaded" || a.value === "Failed" || a.value === "Duplicate" || a.value === "Aborted" ? (i(), h(g, {
3136
3183
  key: 0,
3137
3184
  link: "",
3138
- onClick: _
3185
+ onClick: F
3139
3186
  }, {
3140
3187
  default: b(() => [
3141
- f(c(C), {
3142
- icon: o.value === "Not Uploaded" || o.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
3188
+ f(p(T), {
3189
+ icon: a.value === "Not Uploaded" || a.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
3143
3190
  }, null, 8, ["icon"])
3144
3191
  ]),
3145
3192
  _: 1
3146
3193
  })) : S("", !0),
3147
- o.value === "Uploading" ? (i(), w(g, {
3194
+ a.value === "Uploading" ? (i(), h(g, {
3148
3195
  key: 1,
3149
3196
  link: "",
3150
- onClick: O[1] || (O[1] = (M) => d.value.value.abort())
3197
+ onClick: z[1] || (z[1] = ($) => r.value.value.abort())
3151
3198
  }, {
3152
3199
  default: b(() => [
3153
- f(c(C), { icon: "bi:x-circle-fill" })
3200
+ f(p(T), { icon: "bi:x-circle-fill" })
3154
3201
  ]),
3155
3202
  _: 1
3156
- })) : (i(), w(g, {
3203
+ })) : (i(), h(g, {
3157
3204
  key: 2,
3158
3205
  link: "",
3159
3206
  onClick: P,
3160
3207
  id: "delete-button"
3161
3208
  }, {
3162
3209
  default: b(() => [
3163
- f(c(C), { icon: "bi:trash" })
3210
+ f(p(T), { icon: "bi:trash" })
3164
3211
  ]),
3165
3212
  _: 1
3166
3213
  }))
@@ -3168,19 +3215,19 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
3168
3215
  ], 8, _a);
3169
3216
  };
3170
3217
  }
3171
- }), Ia = { class: "d-flex justify-content-end mt-1" }, Ma = { id: "max-file-size" }, za = /* @__PURE__ */ F({
3218
+ }), Ia = { class: "d-flex justify-content-end mt-1" }, za = { id: "max-file-size" }, Oa = /* @__PURE__ */ V({
3172
3219
  __name: "MaxFileSize",
3173
3220
  props: {
3174
3221
  maxFileSize: {}
3175
3222
  },
3176
3223
  setup(e) {
3177
- return (t, l) => (i(), m("div", Ia, [
3178
- u("div", Ma, "Max file size: " + h(c(ue)(t.maxFileSize)), 1)
3224
+ return (t, o) => (i(), y("div", Ia, [
3225
+ m("div", za, "Max file size: " + w(p(ue)(t.maxFileSize)), 1)
3179
3226
  ]));
3180
3227
  }
3181
- }), Oa = { "data-cy": "file-uploader" }, Da = { key: 0 }, Fl = /* @__PURE__ */ F({
3228
+ }), Da = { "data-cy": "file-uploader" }, Ua = { key: 0 }, Vl = /* @__PURE__ */ V({
3182
3229
  __name: "ForgeFileUploader",
3183
- props: /* @__PURE__ */ L({
3230
+ props: /* @__PURE__ */ j({
3184
3231
  acceptedFileTypes: {},
3185
3232
  maxFileSize: {},
3186
3233
  getFileUrlAction: {},
@@ -3195,69 +3242,69 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
3195
3242
  }),
3196
3243
  emits: ["update:modelValue"],
3197
3244
  setup(e) {
3198
- const t = E(e, "modelValue"), l = e, a = (o) => {
3199
- t.value = t.value.filter((n) => n.file != o);
3245
+ const t = E(e, "modelValue"), o = e, l = (a) => {
3246
+ t.value = t.value.filter((n) => n.file != a);
3200
3247
  };
3201
- return (o, n) => (i(), m("div", Oa, [
3202
- f(ha, T(l, {
3248
+ return (a, n) => (i(), y("div", Da, [
3249
+ f(wa, C(o, {
3203
3250
  modelValue: t.value,
3204
- "onUpdate:modelValue": n[0] || (n[0] = (r) => t.value = r)
3251
+ "onUpdate:modelValue": n[0] || (n[0] = (d) => t.value = d)
3205
3252
  }), null, 16, ["modelValue"]),
3206
- o.showDragDropArea ? (i(), m("div", Da, [
3207
- f(ka, {
3208
- "max-file-input": l.maxFileInput,
3209
- "max-file-size": l.maxFileSize,
3210
- "accepted-file-types": l.acceptedFileTypes,
3253
+ a.showDragDropArea ? (i(), y("div", Ua, [
3254
+ f($a, {
3255
+ "max-file-input": o.maxFileInput,
3256
+ "max-file-size": o.maxFileSize,
3257
+ "accepted-file-types": o.acceptedFileTypes,
3211
3258
  modelValue: t.value,
3212
- "onUpdate:modelValue": n[1] || (n[1] = (r) => t.value = r)
3259
+ "onUpdate:modelValue": n[1] || (n[1] = (d) => t.value = d)
3213
3260
  }, {
3214
3261
  default: b(() => [
3215
- (i(!0), m(N, null, Y(t.value, ({ file: r }, s) => (i(), m("span", null, [
3216
- (i(), w(Pa, T({
3217
- key: r.name,
3218
- class: s === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
3219
- file: t.value[s].file,
3220
- "onUpdate:file": (p) => t.value[s].file = p,
3221
- "blob-file-name": t.value[s].blobFileName,
3222
- "onUpdate:blobFileName": (p) => t.value[s].blobFileName = p,
3223
- "upload-status": t.value[s].status,
3224
- "onUpdate:uploadStatus": (p) => t.value[s].status = p,
3262
+ (i(!0), y(N, null, q(t.value, ({ file: d }, u) => (i(), y("span", null, [
3263
+ (i(), h(Ma, C({
3264
+ key: d.name,
3265
+ class: u === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
3266
+ file: t.value[u].file,
3267
+ "onUpdate:file": (c) => t.value[u].file = c,
3268
+ "blob-file-name": t.value[u].blobFileName,
3269
+ "onUpdate:blobFileName": (c) => t.value[u].blobFileName = c,
3270
+ "upload-status": t.value[u].status,
3271
+ "onUpdate:uploadStatus": (c) => t.value[u].status = c,
3225
3272
  ref_for: !0
3226
- }, l, { onDeleted: a }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
3273
+ }, o, { onDeleted: l }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
3227
3274
  ]))), 256))
3228
3275
  ]),
3229
3276
  _: 1
3230
3277
  }, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
3231
- f(za, {
3232
- "max-file-size": l.maxFileSize
3278
+ f(Oa, {
3279
+ "max-file-size": o.maxFileSize
3233
3280
  }, null, 8, ["max-file-size"])
3234
3281
  ])) : S("", !0)
3235
3282
  ]));
3236
3283
  }
3237
3284
  });
3238
3285
  export {
3239
- ul as Bootstrap_PT,
3240
- cl as ForgeActionButton,
3241
- ne as ForgeAlert,
3242
- ye as ForgeCheckbox,
3243
- wl as ForgeChips,
3244
- Rt as ForgeDatepicker,
3245
- Fl as ForgeFileUploader,
3286
+ cl as Bootstrap_PT,
3287
+ ml as ForgeActionButton,
3288
+ se as ForgeAlert,
3289
+ ve as ForgeCheckbox,
3290
+ xl as ForgeChips,
3291
+ fe as ForgeDatepicker,
3292
+ Vl as ForgeFileUploader,
3246
3293
  _l as ForgeFilterHeader,
3247
- gl as ForgeForm,
3248
- hl as ForgeFormField,
3249
- kt as ForgeInlineEditor,
3250
- ml as ForgeLink,
3251
- ve as ForgeLoader,
3252
- pl as ForgeModal,
3253
- Ct as ForgeMultiSelect,
3254
- vl as ForgeMultiSelectPreview,
3294
+ hl as ForgeForm,
3295
+ wl as ForgeFormField,
3296
+ Bt as ForgeInlineEditor,
3297
+ pl as ForgeLink,
3298
+ ye as ForgeLoader,
3299
+ vl as ForgeModal,
3300
+ be as ForgeMultiSelect,
3301
+ bl as ForgeMultiSelectPreview,
3255
3302
  yl as ForgeNavbar,
3256
- bl as ForgePageHeader,
3257
- qt as ForgeProgressBar,
3258
- fl as ForgeRemainingCharacters,
3259
- xl as ForgeStatWidget,
3260
- kl as ForgeStepper,
3261
- Bl as ForgeTable,
3262
- $l as ForgeTile
3303
+ fl as ForgePageHeader,
3304
+ Gt as ForgeProgressBar,
3305
+ gl as ForgeRemainingCharacters,
3306
+ kl as ForgeStatWidget,
3307
+ $l as ForgeStepper,
3308
+ Fl as ForgeTable,
3309
+ Bl as ForgeTile
3263
3310
  };