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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,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";
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 c, normalizeClass as F, unref as m, 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 L, 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
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";
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 _e } from "@vueuse/components";
12
+ import Fe 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,7 +187,7 @@ const De = {
187
187
  itemGroupLabel: "ps-2 fw-bold",
188
188
  input: "w-100"
189
189
  }
190
- }, Ne = {
190
+ }, Re = {
191
191
  column: {
192
192
  sortBadge: "ms-2 my-auto cursor-pointer",
193
193
  headerCell: (e) => {
@@ -283,7 +283,7 @@ const De = {
283
283
  ]
284
284
  })
285
285
  }
286
- }, Ee = {
286
+ }, Le = {
287
287
  inputtext: {
288
288
  root: (e) => {
289
289
  var t, l;
@@ -298,7 +298,7 @@ const De = {
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"]
@@ -850,37 +850,37 @@ const De = {
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
+ ...Re,
872
860
  ...Xe,
873
- ...ot,
874
- ...lt,
875
- ...Ke,
876
- ...Qe,
877
- ...We,
861
+ ...Ge,
878
862
  ...rt,
863
+ ...Ee,
864
+ ...dt,
865
+ ...Le,
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" },
@@ -897,32 +897,32 @@ const De = {
897
897
  setup(e) {
898
898
  const t = e;
899
899
  return (l, a) => {
900
- const o = fe;
901
- return i(), w(o, ee(te({ ...l.$attrs, ...t })), {
900
+ const o = he;
901
+ return i(), h(o, ee(te({ ...l.$attrs, ...t })), {
902
902
  messageicon: b(() => [
903
- u("div", {
904
- class: B(t.icon ? "me-2 pe-1" : "")
903
+ c("div", {
904
+ class: F(t.icon ? "me-2 pe-1" : "")
905
905
  }, [
906
- t.icon ? (i(), w(c(C), {
906
+ t.icon ? (i(), h(m(T), {
907
907
  key: 0,
908
908
  "data-cy": "message-icon",
909
909
  icon: t.icon,
910
- class: B(`text-${t.severity}`),
910
+ class: F(`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(m(T), { icon: "bi:x" })
917
917
  ]),
918
918
  default: b(() => [
919
- $(l.$slots, "default")
919
+ B(l.$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: {},
@@ -940,19 +940,19 @@ const De = {
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 (o, s) => {
944
+ const d = R;
945
+ return i(), y(N, null, [
946
+ f(d, C({ ...l, ...o.$attrs }, {
947
947
  loading: t.value,
948
948
  disabled: t.value || l.disabled,
949
949
  onClick: a
950
950
  }), null, 16, ["loading", "disabled"]),
951
- f(c(he))
951
+ f(m(xe))
952
952
  ], 64);
953
953
  };
954
954
  }
955
- }), dt = /* @__PURE__ */ u("div", null, null, -1), ut = ["for"], ye = /* @__PURE__ */ F({
955
+ }), ct = /* @__PURE__ */ c("div", null, null, -1), mt = ["for"], ve = /* @__PURE__ */ V({
956
956
  __name: "ForgeCheckbox",
957
957
  props: {
958
958
  label: { default: "" },
@@ -979,58 +979,58 @@ 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 l = t, a = e, { checked: o, handleChange: s, setValue: d, errors: r, errorMessage: v } = K(() => a.name ?? a.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
+ }), u = (p) => {
986
+ a.disabled || (s(p), l("update:modelValue", !a.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
+ a.value !== void 0 && a.value !== (o == null ? void 0 : o.value) ? d(a.value) : a.modelValue !== void 0 && a.modelValue !== (o == null ? void 0 : o.value) && d(a.modelValue);
990
+ }), re(() => a.value, (p) => {
991
+ d(p);
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 n = k(() => r.value.length > 0);
994
+ return (p, x) => {
995
+ const _ = ke;
996
+ return i(), y(N, null, [
997
+ c("div", C({
998
998
  class: "d-flex",
999
999
  "data-cy": "checkbox-container"
1000
- }, { ...v.$attrs }), [
1001
- f(_, T({
1000
+ }, { ...p.$attrs }), [
1001
+ f(_, C({
1002
1002
  id: a.name
1003
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
1004
+ modelValue: m(o),
1005
+ "onUpdate:modelValue": x[0] || (x[0] = (P) => le(o) ? o.value = P : null),
1006
+ "input-class": { "is-invalid": n.value },
1007
+ onChange: u
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", {
1014
+ c("label", {
1015
1015
  for: a.name,
1016
- class: B(`${a.disabled ? "opacity-50" : "cursor-pointer"} ${y.value ? "text-danger-dark" : ""}`),
1017
- onClick: d
1016
+ class: F(`${a.disabled ? "opacity-50" : "cursor-pointer"} ${n.value ? "text-danger-dark" : ""}`),
1017
+ onClick: u
1018
1018
  }, [
1019
- $(v.$slots, "default", {}, () => [
1020
- z(h(a.label), 1)
1019
+ B(p.$slots, "default", {}, () => [
1020
+ O(w(a.label), 1)
1021
1021
  ])
1022
- ], 10, ut)
1022
+ ], 10, mt)
1023
1023
  ], 16),
1024
- H(u("small", {
1024
+ L(c("small", {
1025
1025
  "data-cy": "error",
1026
1026
  class: "text-invalid"
1027
- }, h(c(p)), 513), [
1028
- [G, y.value]
1027
+ }, w(m(v)), 513), [
1028
+ [H, n.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" }
@@ -1038,16 +1038,16 @@ const De = {
1038
1038
  setup(e) {
1039
1039
  const t = e;
1040
1040
  return (l, a) => {
1041
- const o = xe;
1042
- return i(), m("div", ct, [
1041
+ const o = $e;
1042
+ return i(), y("div", pt, [
1043
1043
  f(o, {
1044
1044
  "animation-duration": ".75",
1045
- class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
1045
+ class: F(`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,32 +1074,32 @@ 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
+ })), l = 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 (a, o) => (i(), y("a", {
1085
1085
  id: "link",
1086
- class: B(["cursor-pointer d-flex", t.value]),
1086
+ class: F(["cursor-pointer d-flex", t.value]),
1087
1087
  href: a.url,
1088
1088
  target: a.target
1089
1089
  }, [
1090
- $(a.$slots, "default", {}, () => [
1091
- a.iconName ? (i(), w(c(C), {
1090
+ B(a.$slots, "default", {}, () => [
1091
+ a.iconName ? (i(), h(m(T), {
1092
1092
  key: 0,
1093
1093
  id: "link-icon",
1094
1094
  icon: a.iconName,
1095
- class: B(["bi my-auto", l.value])
1095
+ class: F(["bi my-auto", l.value])
1096
1096
  }, null, 8, ["icon", "class"])) : S("", !0),
1097
- z(" " + h(a.label), 1)
1097
+ O(" " + w(a.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: []
@@ -1110,12 +1110,12 @@ function pt(e) {
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,30 +1158,30 @@ 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"), l = I(!1), a = e, o = I(!1), s = I({
1162
1162
  hasError: !1,
1163
1163
  header: "",
1164
1164
  message: []
1165
- }), r = () => {
1165
+ }), d = () => {
1166
1166
  l.value = !1;
1167
- }, s = () => {
1167
+ }, r = () => {
1168
1168
  l.value = !0;
1169
- }, p = () => {
1169
+ }, v = () => {
1170
1170
  t.value = !1;
1171
- }, d = async () => {
1171
+ }, u = async () => {
1172
1172
  if (a.onConfirm) {
1173
- o.value = !0, n.value.hasError = !1;
1173
+ o.value = !0, s.value.hasError = !1;
1174
1174
  try {
1175
- const v = await a.onConfirm();
1176
- (v || v == null) && p();
1177
- } catch (v) {
1178
- n.value.hasError = !0;
1179
- const k = pt(v);
1180
- n.value.header = k.errorMessage, n.value.message = k.errorDetails;
1175
+ const p = await a.onConfirm();
1176
+ (p || p == null) && v();
1177
+ } catch (p) {
1178
+ s.value.hasError = !0;
1179
+ const x = yt(p);
1180
+ s.value.header = x.errorMessage, s.value.message = x.errorDetails;
1181
1181
  }
1182
1182
  o.value = !1;
1183
1183
  }
1184
- }, y = x(() => ({
1184
+ }, n = k(() => ({
1185
1185
  root: [
1186
1186
  "modal modal-dialog modal-content h-auto m-0",
1187
1187
  {
@@ -1189,24 +1189,24 @@ const yt = { key: 0 }, vt = {
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 (p, x) => {
1193
+ const _ = R, P = Be;
1194
+ return i(), h(P, C(a, {
1195
+ onMaximize: r,
1196
+ onUnmaximize: d,
1197
+ pt: n.value
1198
1198
  }), oe({
1199
1199
  closeicon: b(() => [
1200
- f(c(C), {
1200
+ f(m(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: v
1206
1206
  })
1207
1207
  ]),
1208
1208
  maximizeicon: b(() => [
1209
- f(c(C), {
1209
+ f(m(T), {
1210
1210
  "data-cy": "maximisable-icon",
1211
1211
  icon: l.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1212
1212
  width: "16",
@@ -1215,46 +1215,46 @@ const yt = { key: 0 }, vt = {
1215
1215
  ]),
1216
1216
  _: 2
1217
1217
  }, [
1218
- Y(v.$slots, (V, O) => ({
1219
- name: O,
1218
+ q(p.$slots, (M, z) => ({
1219
+ name: z,
1220
1220
  fn: b((g) => [
1221
- n.value.hasError ? (i(), w(ne, {
1221
+ s.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
+ c("p", {
1228
+ class: F(s.value.message.length > 0 ? "my-auto" : "mb-0")
1229
+ }, w(s.value.header), 3),
1230
+ s.value.message.length > 0 ? (i(), y("ul", bt, [
1231
+ (i(!0), y(N, null, q(s.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(p.$slots, z, ee(te(g || {}))),
1237
+ o.value ? B(p.$slots, "loader", { key: 1 }, () => [
1238
+ f(ye, { "data-cy": "loader" })
1239
1239
  ]) : S("", !0)
1240
1240
  ])
1241
1241
  })),
1242
- v.showFooter ? {
1242
+ p.showFooter ? {
1243
1243
  name: "footer",
1244
1244
  fn: b(() => [
1245
- u("div", vt, [
1245
+ c("div", ft, [
1246
1246
  f(_, {
1247
- label: v.cancelText,
1248
- class: B(a.cancelClass),
1247
+ label: p.cancelText,
1248
+ class: F(a.cancelClass),
1249
1249
  outlined: "",
1250
- onClick: p,
1250
+ onClick: v,
1251
1251
  id: "cancel-button",
1252
1252
  type: a.cancelButtonType
1253
1253
  }, null, 8, ["label", "class", "type"]),
1254
1254
  f(_, {
1255
- label: v.submitText,
1256
- class: B([a.submitClass, "ms-auto"]),
1257
- onClick: d,
1255
+ label: p.submitText,
1256
+ class: F([a.submitClass, "ms-auto"]),
1257
+ onClick: u,
1258
1258
  id: "submit-button",
1259
1259
  type: a.submitButtonType
1260
1260
  }, null, 8, ["label", "class", "type"])
@@ -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,13 +1280,13 @@ 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 = () => {
1283
+ const t = e, l = E(e, "modelValue"), a = I(!1), o = I(), s = () => {
1284
1284
  var _;
1285
1285
  a.value = !a.value, (_ = o.value) == null || _.focus();
1286
- }, r = async () => {
1287
- if (k.value)
1286
+ }, d = async () => {
1287
+ if (x.value)
1288
1288
  return !1;
1289
- if (l.value = v.value, t.completeAction)
1289
+ if (l.value = p.value, t.completeAction)
1290
1290
  try {
1291
1291
  await t.completeAction.apply(this, t.params), a.value = !a.value;
1292
1292
  } catch {
@@ -1294,97 +1294,97 @@ const yt = { key: 0 }, vt = {
1294
1294
  }
1295
1295
  else
1296
1296
  a.value = !a.value;
1297
- }, s = () => {
1297
+ }, r = () => {
1298
1298
  a.value = !a.value;
1299
- }, p = () => {
1300
- v.value = null;
1301
- }, { errorMessage: d, errors: y, value: v } = W(() => t.name, void 0, {
1299
+ }, v = () => {
1300
+ p.value = null;
1301
+ }, { errorMessage: u, errors: n, value: p } = K(() => t.name, void 0, {
1302
1302
  initialValue: l.value
1303
1303
  });
1304
1304
  ae(() => {
1305
- v.value = l.value;
1305
+ p.value = l.value;
1306
1306
  });
1307
- const k = x(() => y.value.length > 0);
1307
+ const x = k(() => n.value.length > 0);
1308
1308
  return (_, P) => {
1309
- const V = re, O = R;
1310
- return i(), m("div", {
1309
+ const M = de, z = R;
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
+ _.readonly ? (i(), y("div", kt, [
1314
+ B(_.$slots, "default", {}, () => [
1315
+ c("span", $t, w(m(p)), 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
+ a.value ? (i(), y("div", wt, [
1319
+ L((i(), y("div", xt, [
1320
+ B(_.$slots, "editor", {
1321
+ class: F({ "is-invalid": x.value }),
1322
+ editFinished: d,
1323
+ cancel: r,
1324
+ val: m(p)
1325
1325
  }, () => [
1326
- f(V, {
1326
+ f(M, {
1327
1327
  "data-cy": "input",
1328
1328
  ref_key: "input",
1329
1329
  ref: o,
1330
- modelValue: c(v),
1331
- "onUpdate:modelValue": P[0] || (P[0] = (g) => le(v) ? v.value = g : null),
1330
+ modelValue: m(p),
1331
+ "onUpdate:modelValue": P[0] || (P[0] = (g) => le(p) ? p.value = g : null),
1332
1332
  modelModifiers: { trim: !0 },
1333
- class: B({ "is-invalid": k.value }),
1333
+ class: F({ "is-invalid": x.value }),
1334
1334
  onKeydown: [
1335
- X(r, ["enter"]),
1336
- X(s, ["esc"])
1335
+ X(d, ["enter"]),
1336
+ X(r, ["esc"])
1337
1337
  ]
1338
1338
  }, null, 8, ["modelValue", "class"])
1339
1339
  ]),
1340
- f(c(C), {
1340
+ f(m(T), {
1341
1341
  icon: "bi:x-circle",
1342
1342
  class: "mx-2 cursor-pointer",
1343
- onClick: p,
1344
- onKeydown: X(p, ["enter"]),
1343
+ onClick: v,
1344
+ onKeydown: X(v, ["enter"]),
1345
1345
  "data-cy": "clear-icon"
1346
1346
  })
1347
1347
  ])), [
1348
- [c($e), r]
1348
+ [m(_e), d]
1349
1349
  ])
1350
- ])) : (i(), m("div", {
1350
+ ])) : (i(), y("div", {
1351
1351
  key: 1,
1352
1352
  class: "d-flex text-muted",
1353
- onClick: n,
1354
- onFocus: n
1353
+ onClick: s,
1354
+ onFocus: s
1355
1355
  }, [
1356
- $(_.$slots, "default", {}, () => [
1357
- u("div", {
1358
- class: B(["pe-2 cursor-pointer", { "text-invalid": k.value }]),
1356
+ B(_.$slots, "default", {}, () => [
1357
+ c("div", {
1358
+ class: F(["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(m(p) ? m(p) : "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(m(T), {
1368
1368
  icon: "bi:pencil",
1369
- class: B(k.value ? "text-invalid" : "text-muted"),
1369
+ class: F(x.value ? "text-invalid" : "text-muted"),
1370
1370
  "data-cy": "edit-icon",
1371
- onKeydown: X(n, ["enter"])
1371
+ onKeydown: X(s, ["enter"])
1372
1372
  }, null, 8, ["class"])
1373
1373
  ]),
1374
1374
  _: 1
1375
1375
  })
1376
1376
  ], 32))
1377
1377
  ])),
1378
- H(u("small", {
1378
+ L(c("small", {
1379
1379
  "data-cy": "error",
1380
1380
  class: "text-invalid"
1381
- }, h(c(d)), 513), [
1382
- [G, k.value]
1381
+ }, w(m(u)), 513), [
1382
+ [H, x.value]
1383
1383
  ])
1384
- ], 8, bt);
1384
+ ], 8, gt);
1385
1385
  };
1386
1386
  }
1387
- }), $t = ["href"], yl = /* @__PURE__ */ F({
1387
+ }), _t = ["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, l = k(() => ({
1405
1405
  root: () => ({
1406
1406
  class: [
1407
1407
  "navbar container-fluid navbar-expand-lg",
@@ -1429,27 +1429,27 @@ const yt = { key: 0 }, vt = {
1429
1429
  })
1430
1430
  }));
1431
1431
  return (a, o) => {
1432
- const n = Be;
1433
- return i(), w(n, T({ ...t, ...a.$attrs }, {
1432
+ const s = Fe;
1433
+ return i(), h(s, C({ ...t, ...a.$attrs }, {
1434
1434
  pt: l.value,
1435
1435
  "data-cy": "navbar"
1436
1436
  }), oe({
1437
1437
  start: b(() => [
1438
- u("a", {
1438
+ c("a", {
1439
1439
  href: a.logoUrl,
1440
1440
  class: "navbar-brand ms-3",
1441
1441
  "data-cy": "logo"
1442
1442
  }, [
1443
- $(a.$slots, "logo", {}, () => [
1444
- z(" Logo ")
1443
+ B(a.$slots, "logo", {}, () => [
1444
+ O(" Logo ")
1445
1445
  ])
1446
- ], 8, $t)
1446
+ ], 8, _t)
1447
1447
  ]),
1448
1448
  menubuttonicon: b(() => [
1449
- $(a.$slots, "menubuttonicon", {}, () => [
1450
- f(c(C), {
1449
+ B(a.$slots, "menubuttonicon", {}, () => [
1450
+ f(m(T), {
1451
1451
  icon: "bi:list",
1452
- class: B(t.severity === "light" ? "text-black" : "text-white"),
1452
+ class: F(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(a.$slots, (d, r) => ({
1461
+ name: r,
1462
+ fn: b((v) => [
1463
+ B(a.$slots, r, ee(te(v)))
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
+ }), Ft = /* @__PURE__ */ c("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" },
@@ -1484,13 +1484,13 @@ const yt = { key: 0 }, vt = {
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, {
1487
+ }, o = ce(), s = t, { errors: d, value: r, errorMessage: v } = K(() => l.name, void 0, {
1488
1488
  initialValue: o.modelValue
1489
- }), d = I(!1), y = x(() => ({
1489
+ }), u = I(!1), n = k(() => ({
1490
1490
  multiple: !0,
1491
1491
  label: "label",
1492
1492
  trackBy: "id",
1493
- showPointer: !d.value,
1493
+ showPointer: !u.value,
1494
1494
  placeholder: o.searchable === null || o.searchable ? "Search" : "Select",
1495
1495
  allowEmpty: !0,
1496
1496
  selectValue: "",
@@ -1499,74 +1499,74 @@ const yt = { key: 0 }, vt = {
1499
1499
  searchable: !!(o.searchable === null || o.searchable) && o.modelValue.length === o.options.length,
1500
1500
  async: !1,
1501
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]));
1502
+ })), p = k(() => `forge-multiselect-${l.severity}`), x = k(() => `multiselect__option ${u.value ? " multiselect__option--highlight" : ""} ${_.value ? " multiselect__option--selected" : ""}`), _ = k(() => n.value && !(n.value.multiple || !l.showSelectAll || n.value.async) ? !1 : o.modelValue.length === o.options.length), P = k(() => d.value.length > 0), M = k(() => !!((o.allowEmpty == null || o.allowEmpty) && l.showClearSelection && (n.value.multiple ? o.modelValue.length > 0 : o.modelValue))), z = () => u.value = !0, g = () => u.value = !1, $ = () => {
1503
+ r.value = n.value.multiple ? [] : null, s("update:modelValue", r.value);
1504
+ }, G = (U) => {
1505
+ s("update:modelValue", l.selectValue ? U.map((D) => D[l.selectValue]) : U);
1506
+ }, Z = (U) => o.modelValue !== null ? o.modelValue.some((D) => n.value.selectValue ? U[l.selectValue] === D : U.id === D.id && U.label === D.label) : !1, ie = () => {
1507
+ _.value ? $() : (r.value = [...o.options], s("update:modelValue", [...o.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, {
1513
- class: [v.value, P.value ? "is-invalid" : ""],
1510
+ const J = ve;
1511
+ return i(), y(N, null, [
1512
+ f(m(Ve), C(n.value, {
1513
+ class: [p.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(r) ? r.value = A : null)
1518
1518
  ],
1519
- modelValue: c(s)
1519
+ modelValue: m(r)
1520
1520
  }), oe({
1521
1521
  caret: b(({ toggle: A }) => [
1522
- V.value ? (i(), w(c(C), {
1522
+ M.value ? (i(), h(m(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(m(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
+ c("div", Ct, [
1539
+ c("div", Tt, w(A.label), 1),
1540
+ f(m(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) => a(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
+ n.value.multiple && U.showSelectAll && !n.value.async ? {
1555
1555
  name: "beforeList",
1556
1556
  fn: b(() => [
1557
- u("li", {
1557
+ c("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
+ c("span", {
1565
+ class: F(`${x.value}`)
1566
1566
  }, [
1567
1567
  f(J, { value: _.value }, {
1568
1568
  default: b(() => [
1569
- Bt
1569
+ Ft
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
+ n.value.multiple ? {
1579
1579
  name: "option",
1580
1580
  fn: b(({ option: A }) => [
1581
- u("div", {
1581
+ c("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
+ c("div", St, w(A[n.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
+ L(c("small", {
1599
1599
  "data-cy": "error",
1600
1600
  class: "invalid-feedback"
1601
- }, h(c(p)), 513), [
1602
- [G, P.value]
1601
+ }, w(m(v)), 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 l = e, a = ce(), o = t, s = k(() => `${a.modelValue.length} selected`), d = k(() => a.modelValue.length), r = (u) => {
1629
+ o("update:modelValue", u);
1630
+ }, v = (u) => {
1631
+ r(a.modelValue.filter((n) => n.id !== u));
1632
1632
  };
1633
- return (d, y) => {
1634
- const v = R;
1635
- return i(), m("div", {
1636
- class: B(d.orientation === "column" ? "row" : ""),
1633
+ return (u, n) => {
1634
+ const p = R;
1635
+ return i(), y("div", {
1636
+ class: F(u.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
+ c("div", {
1640
+ class: F(u.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
+ n[0] || (n[0] = (x) => r(x)),
1646
+ n[1] || (n[1] = (x) => u.$attrs.modelValue = x)
1647
1647
  ],
1648
- modelValue: d.$attrs.modelValue,
1649
- "limit-text": n.value,
1648
+ modelValue: u.$attrs.modelValue,
1649
+ "limit-text": s.value,
1650
1650
  options: l.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
+ u.$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(u.$slots, (x, _) => B(u.$slots, _, { slot: _ })), 256))
1660
1660
  ]),
1661
1661
  _: 3
1662
1662
  }, 8, ["modelValue", "limit-text", "options"]),
1663
- $(d.$slots, "after-multi-select")
1663
+ B(u.$slots, "after-multi-select")
1664
1664
  ], 2),
1665
- u("div", {
1666
- class: B(d.orientation === "row" ? "col-12" : "col"),
1665
+ c("div", {
1666
+ class: F(u.orientation === "row" ? "col-12" : "col"),
1667
1667
  "data-cy": "options-preview"
1668
1668
  }, [
1669
- u("div", {
1670
- style: ge({ height: d.height }),
1669
+ c("div", {
1670
+ style: we({ height: u.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
+ c("div", Mt, [
1674
+ u.title ? (i(), y("div", It, w(u.title), 1)) : S("", !0),
1675
+ (i(!0), y(N, null, q(u.$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(u.$slots, "list-item", { item: x }, () => [
1680
+ c("span", zt, w(x.shortLabel ? x.shortLabel : x.label), 1)
1681
1681
  ]),
1682
- d.canRemoveItemFromPreview ? (i(), w(v, {
1682
+ u.canRemoveItemFromPreview ? (i(), h(p, {
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: (_) => v(x.id)
1687
1687
  }, {
1688
1688
  default: b(() => [
1689
- f(c(C), {
1689
+ f(m(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
+ u.$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 (l, a) => (i(), y("div", Dt, [
1719
+ c("h3", Ut, w(t.title), 1),
1720
+ c("div", At, [
1721
+ B(l.$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" }, Rt = { class: "position-relative" }, Lt = { "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,9 +1795,11 @@ 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 = () => {
1798
+ const t = e, l = E(e, "modelValue"), { errors: a, errorMessage: o, handleChange: s, handleBlur: d } = K(() => t.name, void 0, {
1799
+ initialValue: l.value
1800
+ }), r = () => {
1799
1801
  l.value = null;
1800
- }, o = x(() => ({
1802
+ }, v = k(() => a.value.length > 0), u = k(() => ({
1801
1803
  day: ({ context: n }) => ({
1802
1804
  class: [
1803
1805
  `text-center date-${t.severity === void 0 ? "primary" : t.severity}`,
@@ -1888,53 +1890,66 @@ const yt = { key: 0 }, vt = {
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 (n, p) => {
1894
+ const x = Se;
1895
+ return i(), y(N, null, [
1896
+ c("div", Nt, [
1897
+ c("span", Et, [
1898
+ B(n.$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
+ c("div", Rt, [
1901
+ f(x, C({ ...t, ...n.$attrs }, {
1902
+ pt: u.value,
1903
+ modelValue: l.value,
1904
+ "onUpdate:modelValue": [
1905
+ p[0] || (p[0] = (_) => l.value = _),
1906
+ m(s)
1907
+ ],
1908
+ onBlur: m(d),
1909
+ "input-class": { "is-invalid": v.value }
1910
+ }), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "onBlur", "input-class"]),
1911
+ L(f(m(T), {
1912
+ "data-cy": "icon",
1913
+ icon: "bi:calendar4",
1914
+ class: F(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${v.value ? "text-danger-dark" : "text-muted"}`])
1915
+ }, null, 8, ["class"]), [
1916
+ [H, t.showIcon]
1917
+ ]),
1918
+ L(f(m(T), {
1919
+ "data-cy": "icon",
1920
+ icon: "bi:x",
1921
+ onClick: r,
1922
+ class: F(["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
+ c("span", Lt, [
1928
+ B(n.$slots, "after")
1917
1929
  ])
1918
1930
  ]),
1919
- u("span", Et, [
1920
- $(n.$slots, "after")
1931
+ L(c("small", {
1932
+ "data-cy": "error",
1933
+ class: "text-invalid"
1934
+ }, w(m(o)), 513), [
1935
+ [H, v.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, l = k(() => t.maxCount - t.currentCount);
1948
+ return (a, o) => (i(), y("div", {
1949
+ class: F(l.value < 0 ? "text-danger" : "")
1950
+ }, "Remaining characters: " + w(l.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__ */ c("hr", null, null, -1), Ht = { class: "d-flex justify-content-between" }, hl = /* @__PURE__ */ V({
1938
1953
  __name: "ForgeForm",
1939
1954
  props: {
1940
1955
  onSubmit: {},
@@ -1954,87 +1969,87 @@ const yt = { key: 0 }, vt = {
1954
1969
  l.value = !0, a.value.hasError = !1;
1955
1970
  try {
1956
1971
  await t.onSubmit();
1957
- } catch (n) {
1958
- a.value.hasError = !0, n.message && (a.value.message = n.message);
1972
+ } catch (s) {
1973
+ a.value.hasError = !0, s.message && (a.value.message = s.message);
1959
1974
  }
1960
1975
  l.value = !1;
1961
1976
  }
1962
- return (n, r) => {
1963
- const s = R;
1964
- return i(), m("form", T(n.$attrs, {
1977
+ return (s, d) => {
1978
+ const r = R;
1979
+ return i(), y("form", C(s.$attrs, {
1965
1980
  novalidate: "",
1966
1981
  class: "position-relative shadow-sm border p-4 bg-white",
1967
- onSubmit: j(o, ["prevent"])
1982
+ onSubmit: Y(o, ["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
+ s.hideTitle ? S("", !0) : (i(), y(N, { key: 0 }, [
1985
+ B(s.$slots, "title", {}, () => [
1986
+ c("h3", {
1987
+ class: F(s.titleClass),
1973
1988
  "data-cy": "form-title"
1974
- }, h(n.title), 3)
1989
+ }, w(s.title), 3)
1975
1990
  ]),
1976
- Lt
1991
+ jt
1977
1992
  ], 64)),
1978
- a.value.hasError ? (i(), w(ne, {
1993
+ a.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", {
1999
+ B(s.$slots, "error", {
1985
2000
  error: a.value.message
1986
2001
  }, () => [
1987
- z(h(a.value.message), 1)
2002
+ O(w(a.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(s.$slots, "default"),
2008
+ c("div", Ht, [
2009
+ B(s.$slots, "cancel", {}, () => [
2010
+ s.hideCancel ? S("", !0) : (i(), h(r, {
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] = (v) => s.$emit("cancel"))
2002
2017
  }, {
2003
2018
  default: b(() => [
2004
- z(h(n.cancelText), 1)
2019
+ O(w(s.cancelText), 1)
2005
2020
  ]),
2006
2021
  _: 1
2007
2022
  }))
2008
2023
  ]),
2009
- $(n.$slots, "submit", { submit: o }, () => [
2010
- f(s, {
2024
+ B(s.$slots, "submit", { submit: o }, () => [
2025
+ f(r, {
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(s.submitText), 1)
2018
2033
  ]),
2019
2034
  _: 1
2020
2035
  })
2021
2036
  ])
2022
2037
  ]),
2023
- l.value ? (i(), w(ve, {
2038
+ l.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"), l = e, a = (n) => {
2063
+ l.type == "number" ? r(n.value) : r(n);
2064
+ }, { errors: o, value: s, errorMessage: d, handleChange: r, handleBlur: v } = K(() => l.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
+ }), u = k(() => o.value.length > 0);
2067
+ return re(() => s.value, (n) => {
2068
+ t.value = n;
2069
+ }, { immediate: !0 }), (n, p) => {
2070
+ const x = Te, _ = Ce, P = de, M = ne, z = be, g = fe;
2071
+ return l.type === "checkbox" ? (i(), h(ve, C({
2057
2072
  key: 0,
2058
2073
  id: l.name,
2059
- label: l.label
2060
- }, y.$attrs, {
2074
+ label: l.fieldLabel
2075
+ }, n.$attrs, {
2061
2076
  name: l.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": p[0] || (p[0] = ($) => t.value = $)
2079
+ }), null, 16, ["id", "label", "name", "modelValue"])) : (i(), y("div", Yt, [
2080
+ c("label", {
2081
+ for: l.name,
2082
+ class: "mb-1"
2083
+ }, w(l.fieldLabel), 9, qt),
2084
+ l.type === "number" ? (i(), h(m(me), C({
2069
2085
  key: 0,
2070
2086
  id: l.name
2071
- }, y.$attrs, {
2087
+ }, n.$attrs, {
2072
2088
  placeholder: l.placeholder,
2073
- "input-class": { "is-invalid": d.value },
2074
- class: { "is-invalid": d.value },
2089
+ "input-class": { "is-invalid": u.value },
2090
+ class: { "is-invalid": u.value },
2075
2091
  modelValue: t.value,
2076
- "onUpdate:modelValue": v[1] || (v[1] = (V) => t.value = V),
2092
+ "onUpdate:modelValue": p[1] || (p[1] = ($) => t.value = $),
2077
2093
  onInput: a
2078
- }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : l.type === "textarea" ? (i(), w(k, T({
2094
+ }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : l.type === "textarea" ? (i(), h(x, C({
2079
2095
  key: 1,
2080
2096
  id: l.name
2081
- }, y.$attrs, {
2097
+ }, n.$attrs, {
2082
2098
  placeholder: l.placeholder,
2083
- class: { "is-invalid": d.value },
2099
+ class: { "is-invalid": u.value },
2084
2100
  modelValue: t.value,
2085
- "onUpdate:modelValue": v[2] || (v[2] = (V) => t.value = V),
2101
+ "onUpdate:modelValue": p[2] || (p[2] = ($) => t.value = $),
2086
2102
  onInput: a,
2087
- onBlur: c(p)
2088
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "mask" ? (i(), w(_, T({
2103
+ onBlur: m(v)
2104
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "mask" ? (i(), h(_, C({
2089
2105
  key: 2,
2090
2106
  id: l.name
2091
- }, y.$attrs, {
2107
+ }, n.$attrs, {
2092
2108
  placeholder: l.placeholder,
2093
2109
  mask: l.mask,
2094
- class: { "is-invalid": d.value },
2110
+ class: { "is-invalid": u.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": p[3] || (p[3] = ($) => t.value = $),
2113
+ onComplete: a,
2114
+ onBlur: m(v)
2115
+ }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : l.type === "text" ? (i(), h(P, C({
2100
2116
  key: 3,
2101
2117
  id: l.name
2102
- }, y.$attrs, {
2118
+ }, n.$attrs, {
2103
2119
  placeholder: l.placeholder,
2104
- class: { "is-invalid": d.value },
2120
+ class: { "is-invalid": u.value },
2105
2121
  modelValue: t.value,
2106
- "onUpdate:modelValue": v[4] || (v[4] = (V) => t.value = V),
2122
+ "onUpdate:modelValue": p[4] || (p[4] = ($) => t.value = $),
2107
2123
  onInput: a,
2108
- onBlur: c(p)
2109
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : S("", !0),
2110
- H(u("small", {
2124
+ onBlur: m(v)
2125
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : l.type === "select" ? (i(), h(M, C({ key: 4 }, { ...l, ...n.$attrs }, {
2126
+ modelValue: t.value,
2127
+ "onUpdate:modelValue": p[5] || (p[5] = ($) => t.value = $),
2128
+ class: { "is-invalid": u.value }
2129
+ }), null, 16, ["modelValue", "class"])) : l.type === "multiselect" ? (i(), h(z, C({ key: 5 }, { ...l, ...n.$attrs }, {
2130
+ modelValue: t.value,
2131
+ "onUpdate:modelValue": p[6] || (p[6] = ($) => t.value = $),
2132
+ class: { "is-invalid": u.value }
2133
+ }), null, 16, ["modelValue", "class"])) : l.type === "datepicker" ? (i(), h(g, C({ key: 6 }, { ...l, ...n.$attrs }, {
2134
+ modelValue: t.value,
2135
+ "onUpdate:modelValue": p[7] || (p[7] = ($) => t.value = $),
2136
+ class: { "is-invalid": u.value }
2137
+ }), null, 16, ["modelValue", "class"])) : S("", !0),
2138
+ L(c("small", {
2111
2139
  "data-cy": "error",
2112
2140
  class: "invalid-feedback"
2113
- }, h(c(r)), 513), [
2114
- [G, d.value]
2141
+ }, w(m(d)), 513), [
2142
+ [H, u.value && l.type !== "multiselect" && l.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,17 +2171,17 @@ 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: l, value: a, errorMessage: o } = K(() => t.name, void 0, {
2147
2175
  initialValue: t.modelValue
2148
- }), n = x(() => l.value.length > 0), r = x(() => ({
2176
+ }), s = k(() => l.value.length > 0), d = k(() => ({
2149
2177
  inputtoken: "list-unstyled",
2150
2178
  input: "border-0",
2151
- container: ({ props: s }) => ({
2179
+ container: ({ props: r }) => ({
2152
2180
  class: [
2153
2181
  "form-control mb-0 d-flex",
2154
2182
  {
2155
- disabled: s.disabled,
2156
- "is-invalid": n.value
2183
+ disabled: r.disabled,
2184
+ "is-invalid": s.value
2157
2185
  }
2158
2186
  ]
2159
2187
  }),
@@ -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 (r, v) => {
2208
+ const u = Pe;
2209
+ return i(), y(N, null, [
2210
+ f(u, C({ ...t, ...r.$attrs }, {
2211
+ pt: d.value,
2212
+ "model-value": m(a),
2213
+ "onUpdate:modelValue": v[0] || (v[0] = (n) => le(a) ? a.value = n : null)
2186
2214
  }), {
2187
- removetokenicon: b(({ removeCallback: y }) => [
2188
- H(f(c(C), {
2215
+ removetokenicon: b(({ removeCallback: n }) => [
2216
+ L(f(m(T), {
2189
2217
  icon: "bi:x",
2190
2218
  class: "cursor-pointer",
2191
- onClick: y
2219
+ onClick: n
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
+ L(c("small", {
2199
2227
  "data-cy": "error",
2200
2228
  class: "text-invalid"
2201
- }, h(c(o)), 513), [
2202
- [G, n.value]
2229
+ }, w(m(o)), 513), [
2230
+ [H, s.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, l = k(() => t.striped ? "progress-bar-striped" : null), a = k(() => t.animate ? "progress-bar-animated" : null), o = k(() => {
2223
2251
  switch (t.severity) {
2224
2252
  case "brand":
2225
2253
  return "bg-brand";
@@ -2238,7 +2266,7 @@ const yt = { key: 0 }, vt = {
2238
2266
  default:
2239
2267
  return "bg-primary";
2240
2268
  }
2241
- }), n = x(() => ({
2269
+ }), s = k(() => ({
2242
2270
  root: {
2243
2271
  style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
2244
2272
  },
@@ -2246,17 +2274,17 @@ const yt = { key: 0 }, vt = {
2246
2274
  class: [o.value, l.value, a.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, r) => {
2278
+ const v = Me;
2279
+ return i(), h(v, C({ ...d.$attrs, ...t }, { pt: s.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 (l, a) => (i(), y("div", C(l.$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
+ c("span", Kt, [
2299
+ B(l.$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 l = t, a = e, o = I(a.currentStep), s = () => {
2295
2323
  do
2296
2324
  o.value--;
2297
2325
  while (a.model[o.value].disabled);
2298
2326
  l("update:currentStep", o.value);
2299
- }, r = () => {
2327
+ }, d = () => {
2300
2328
  if (o.value < a.model.length - 1)
2301
2329
  do
2302
2330
  o.value++;
2303
2331
  while (a.model[o.value].disabled);
2304
2332
  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) => ({
2333
+ }, r = k(() => {
2334
+ const u = a.model.findIndex((n) => !n.disabled);
2335
+ return !(u < o.value && u > -1);
2336
+ }), v = k(() => ({
2337
+ menuitem: (u) => ({
2310
2338
  class: [{
2311
- "cursor-pointer": !d.context.disabled
2339
+ "cursor-pointer": !u.context.disabled
2312
2340
  }]
2313
2341
  }),
2314
- step: (d) => ({
2342
+ step: (u) => ({
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: u.context.disabled,
2347
+ "bg-primary text-white": u.context.index === o.value && (a.severity === void 0 || a.severity === "primary"),
2348
+ "bg-brand text-white": u.context.index === o.value && a.severity === "brand",
2349
+ "bg-secondary text-white": u.context.index === o.value && a.severity === "secondary",
2350
+ "bg-success text-white": u.context.index === o.value && a.severity === "success",
2351
+ "bg-warning text-white": u.context.index === o.value && a.severity === "warning",
2352
+ "bg-danger text-white": u.context.index === o.value && a.severity === "danger",
2353
+ "bg-info text-white": u.context.index === o.value && a.severity === "info"
2326
2354
  }
2327
2355
  ]
2328
2356
  }),
2329
- label: (d) => ({
2357
+ label: (u) => ({
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": u.context.index === o.value && (a.severity === void 0 || a.severity === "primary"),
2362
+ "border-bottom border-2 border-brand": u.context.index === o.value && a.severity === "brand",
2363
+ "border-bottom border-2 border-secondary": u.context.index === o.value && a.severity === "secondary",
2364
+ "border-bottom border-2 border-success": u.context.index === o.value && a.severity === "success",
2365
+ "border-bottom border-2 border-warning": u.context.index === o.value && a.severity === "warning",
2366
+ "border-bottom border-2 border-danger": u.context.index === o.value && a.severity === "danger",
2367
+ "border-bottom border-2 border-info": u.context.index === o.value && a.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, [
2348
- f(v, {
2372
+ return (u, n) => {
2373
+ const p = R, x = ze, _ = Ie;
2374
+ return i(), y("div", Wt, [
2375
+ c("div", Zt, [
2376
+ f(p, {
2349
2377
  severity: a.severity,
2350
- disabled: s.value,
2351
- onClick: n,
2378
+ disabled: r.value,
2379
+ onClick: s,
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(m(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, {
2391
+ f(x, {
2364
2392
  "active-step": o.value,
2365
- "onUpdate:activeStep": y[0] || (y[0] = (P) => o.value = P),
2393
+ "onUpdate:activeStep": n[0] || (n[0] = (P) => o.value = P),
2366
2394
  model: a.model,
2367
- pt: p.value,
2395
+ pt: v.value,
2368
2396
  readonly: !1
2369
2397
  }, null, 8, ["active-step", "model", "pt"])
2370
2398
  ]),
2371
2399
  f(_),
2372
- (i(!0), m(N, null, Y(a.model, (P, V) => (i(), m("div", {
2373
- key: V,
2400
+ (i(!0), y(N, null, q(a.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 === o.value ? B(u.$slots, P.key ?? P.label, {
2377
2405
  key: 0,
2378
- nextStep: r,
2379
- previousStep: n
2406
+ nextStep: d,
2407
+ previousStep: s
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),
2387
- f(v, {
2414
+ O(" Please add Slot Content for the key " + w(P.key ?? P.label) + " ", 1),
2415
+ f(p, {
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, l = k(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`} ${t.selected ? "selected" : ""}`), a = 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 (o, s) => {
2440
+ const d = R;
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: F(["d-flex w-100 p-0 text-body", l.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
+ c("div", Jt, [
2450
+ B(o.$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: F(["d-flex w-100", a.value]),
2431
2459
  "data-cy": "tile"
2432
2460
  }, [
2433
- u("div", Jt, [
2434
- $(o.$slots, "default", {}, () => [
2435
- z("Tile Content")
2461
+ c("div", Xt, [
2462
+ B(o.$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__ */ c("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 l = t, a = e, o = (d) => {
2489
+ l("update:perPage", d.value);
2490
+ }, s = k(() => {
2491
+ const d = Math.ceil(a.total / a.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), {
2494
+ return (d, r) => (i(), y("div", Qt, [
2495
+ O(" Number of results per page "),
2496
+ c("div", ea, [
2497
+ f(m(ne), {
2470
2498
  options: a.pageSizes,
2471
2499
  "model-value": a.perPage,
2472
- onChange: s[0] || (s[0] = (p) => o(p))
2500
+ onChange: r[0] || (r[0] = (v) => o(v))
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
+ a.total ? (i(), y("div", ta, [
2504
+ aa,
2505
+ c("span", la, w(a.total) + " " + w(m(Q)(a.total, "result")) + " across " + w(s.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__ */ c("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), _l = /* @__PURE__ */ V({
2482
2510
  __name: "ForgeTable",
2483
2511
  props: {
2484
2512
  value: {},
@@ -2558,17 +2586,17 @@ 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({
2589
+ const l = t, a = e, o = I(), s = I([10, 20, 50, 100]), d = I(20), r = I({
2562
2590
  filters: a.filters,
2563
- perPage: r.value,
2591
+ perPage: d.value,
2564
2592
  page: 0,
2565
2593
  sortDirection: "None",
2566
2594
  sortField: "",
2567
2595
  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);
2596
+ }), v = k(() => a.totalRecords ?? a.value.length), u = k(() => {
2597
+ const g = Math.ceil(v.value / d.value);
2570
2598
  return `${g} ${Q(g, "page")}`;
2571
- }), y = x(() => ({
2599
+ }), n = k(() => ({
2572
2600
  thead: () => ({
2573
2601
  class: [
2574
2602
  {
@@ -2590,91 +2618,91 @@ const Xt = {
2590
2618
  }
2591
2619
  ]
2592
2620
  })
2593
- })), v = () => {
2621
+ })), p = () => {
2594
2622
  for (const g in a.filters)
2595
2623
  typeof a.filters[g] == "string" ? a.filters[g] = "" : a.filters[g].value = null;
2596
2624
  P(a.filters);
2597
- }, k = () => {
2625
+ }, x = () => {
2598
2626
  o.value.exportCSV();
2599
2627
  }, _ = (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);
2628
+ var $;
2629
+ r.value.sortDirection = g.sortOrder === 1 ? "Asc" : g.sortOrder === -1 ? "Desc" : "None", r.value.sortField = (($ = g.sortField) == null ? void 0 : $.toString()) ?? "", l("update:tableContext", r.value), l("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
+ r.value.filters = g, l("update:tableContext", r.value), l("update:filters", g);
2632
+ }, M = (g) => {
2633
+ r.value.page = g.page, l("update:tableContext", r.value), l("page", g);
2634
+ }, z = () => {
2635
+ r.value.perPage = d.value, l("update:tableContext", r.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(() => a.filters, (g) => {
2638
+ r.value.filters = g, l("update:tableContext", r.value);
2639
+ }, { deep: !0 }), ae(() => l("update:tableContext", r.value)), (g, $) => (i(), y("div", na, [
2640
+ c("span", sa, [
2641
+ B(g.$slots, "above-table")
2614
2642
  ]),
2615
- f(c(Me), T({
2643
+ f(m(Oe), C({
2616
2644
  class: ["w-100", `${a.severity ? `forge-table-${a.severity}` : ""}`]
2617
2645
  }, { ...a, ...g.$attrs }, {
2618
- pt: y.value,
2619
- rows: r.value,
2620
- "total-records": p.value,
2646
+ pt: n.value,
2647
+ rows: d.value,
2648
+ "total-records": v.value,
2621
2649
  "filter-display": a.filters ? "row" : void 0,
2622
2650
  ref_key: "forgeTable",
2623
2651
  ref: o,
2624
2652
  "data-cy": "table",
2625
2653
  "onUpdate:filters": P,
2626
2654
  onSort: _,
2627
- onPage: V
2655
+ onPage: M
2628
2656
  }), oe({
2629
2657
  header: b(() => [
2630
- u("div", {
2631
- class: B(a.loading ? "opacity-50" : "")
2658
+ c("div", {
2659
+ class: F(a.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,
2638
- "page-sizes": n.value,
2639
- "per-page": r.value,
2661
+ c("div", ia, [
2662
+ c("div", ra, [
2663
+ g.paginator && !g.legacyPaginationFooter ? (i(), y("span", da, [
2664
+ f(oa, {
2665
+ total: v.value,
2666
+ "page-sizes": s.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
+ c("div", ua, [
2676
+ g.showClearButton ? (i(), h(m(R), {
2649
2677
  key: 0,
2650
2678
  outlined: "",
2651
- class: B(g.showExporterButton ? "me-2" : ""),
2652
- onClick: v,
2679
+ class: F(g.showExporterButton ? "me-2" : ""),
2680
+ onClick: p,
2653
2681
  "data-cy": "clear-all"
2654
2682
  }, {
2655
2683
  default: b(() => [
2656
- f(c(C), {
2684
+ f(m(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(m(R), {
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(m(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
+ c("span", {
2728
+ class: F(["d-flex", a.loading ? "opacity-50" : ""]),
2701
2729
  "data-cy": "legacy-page-size"
2702
2730
  }, [
2703
- ua,
2704
- f(c(de), {
2705
- options: n.value,
2706
- modelValue: r.value,
2707
- "onUpdate:modelValue": M[1] || (M[1] = (q) => r.value = q),
2731
+ ca,
2732
+ f(m(ne), {
2733
+ options: s.value,
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,19 +2743,19 @@ const Xt = {
2715
2743
  g.legacyPaginationFooter ? {
2716
2744
  name: "paginatorend",
2717
2745
  fn: b(() => [
2718
- u("span", {
2746
+ c("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: F(a.loading ? "opacity-50" : "")
2749
+ }, w(v.value) + " " + w(m(Q)(v.value, "result")) + " across " + w(u.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" }, Fl = /* @__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 },
@@ -2742,37 +2770,37 @@ const Xt = {
2742
2770
  e.clearFilter ? e.clearFilter() : t.value = null;
2743
2771
  };
2744
2772
  return (a, o) => {
2745
- const n = me, r = R;
2746
- return i(), m("div", ca, [
2747
- a.dataType === "numeric" ? (i(), w(n, T({
2773
+ const s = me, d = R;
2774
+ return i(), y("div", ma, [
2775
+ a.dataType === "numeric" ? (i(), h(s, C({
2748
2776
  key: 0,
2749
2777
  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({
2778
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => t.value = r)
2779
+ }, a.$attrs), null, 16, ["modelValue"])) : a.dataType === "date" ? (i(), h(fe, C({
2752
2780
  key: 1,
2753
2781
  modelValue: t.value,
2754
- "onUpdate:modelValue": o[1] || (o[1] = (s) => t.value = s)
2782
+ "onUpdate:modelValue": o[1] || (o[1] = (r) => t.value = r)
2755
2783
  }, a.$attrs, {
2756
2784
  "show-icon": !1,
2757
2785
  "show-on-focus": !0
2758
- }), null, 16, ["modelValue"])) : a.dataType === "select" ? (i(), w(c(de), T({
2786
+ }), null, 16, ["modelValue"])) : a.dataType === "select" ? (i(), h(m(ne), C({
2759
2787
  key: 2,
2760
2788
  modelValue: t.value,
2761
- "onUpdate:modelValue": o[2] || (o[2] = (s) => t.value = s)
2789
+ "onUpdate:modelValue": o[2] || (o[2] = (r) => t.value = r)
2762
2790
  }, 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, {
2791
+ value: b(({ value: r, placeholder: v }) => [
2792
+ c("div", pa, [
2793
+ c("span", {
2794
+ class: F({ "filter-placeholder": r === null })
2795
+ }, w(r !== null ? r : v), 3),
2796
+ a.showClearButton && t.value !== null ? (i(), h(d, {
2769
2797
  key: 0,
2770
- onClick: j(l, ["prevent"]),
2798
+ onClick: Y(l, ["prevent"]),
2771
2799
  size: "small",
2772
2800
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
2773
2801
  }, {
2774
2802
  default: b(() => [
2775
- f(c(C), {
2803
+ f(m(T), {
2776
2804
  icon: "bi:x",
2777
2805
  width: "1rem",
2778
2806
  height: "1rem",
@@ -2784,28 +2812,28 @@ const Xt = {
2784
2812
  ])
2785
2813
  ]),
2786
2814
  _: 1
2787
- }, 16, ["modelValue", "options"])) : a.dataType === "multiselect" ? (i(), w(c(ze), T({
2815
+ }, 16, ["modelValue", "options"])) : a.dataType === "multiselect" ? (i(), h(m(De), C({
2788
2816
  key: 3,
2789
2817
  modelValue: t.value,
2790
- "onUpdate:modelValue": o[3] || (o[3] = (s) => t.value = s)
2818
+ "onUpdate:modelValue": o[3] || (o[3] = (r) => t.value = r)
2791
2819
  }, a.$attrs, {
2792
2820
  options: a.dropdownOptions,
2793
2821
  showToggleAll: !1,
2794
2822
  filter: ""
2795
2823
  }), {
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, {
2824
+ value: b(({ value: r, placeholder: v }) => [
2825
+ c("div", va, [
2826
+ c("span", {
2827
+ class: F({ "filter-placeholder": (r == null ? void 0 : r.length) === 0 })
2828
+ }, w(r !== null && (r == null ? void 0 : r.length) > 0 ? r.join(", ") : v), 3),
2829
+ a.showClearButton && (r == null ? void 0 : r.length) > 0 ? (i(), h(d, {
2802
2830
  key: 0,
2803
- onClick: j(l, ["prevent"]),
2831
+ onClick: Y(l, ["prevent"]),
2804
2832
  size: "small",
2805
2833
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
2806
2834
  }, {
2807
2835
  default: b(() => [
2808
- f(c(C), {
2836
+ f(m(T), {
2809
2837
  icon: "bi:x",
2810
2838
  width: "1rem",
2811
2839
  height: "1rem",
@@ -2817,19 +2845,19 @@ const Xt = {
2817
2845
  ])
2818
2846
  ]),
2819
2847
  _: 1
2820
- }, 16, ["modelValue", "options"])) : (i(), w(c(re), T({
2848
+ }, 16, ["modelValue", "options"])) : (i(), h(m(de), C({
2821
2849
  key: 4,
2822
2850
  modelValue: t.value,
2823
- "onUpdate:modelValue": o[4] || (o[4] = (s) => t.value = s)
2851
+ "onUpdate:modelValue": o[4] || (o[4] = (r) => t.value = r)
2824
2852
  }, a.$attrs), null, 16, ["modelValue"])),
2825
- a.showClearButton && t.value !== null && a.dataType !== "select" && a.dataType !== "multiselect" && a.dataType !== "date" ? (i(), w(r, {
2853
+ a.showClearButton && t.value !== null && a.dataType !== "select" && a.dataType !== "multiselect" && a.dataType !== "date" ? (i(), h(d, {
2826
2854
  key: 5,
2827
- onClick: j(l, ["prevent"]),
2855
+ onClick: Y(l, ["prevent"]),
2828
2856
  size: "small",
2829
2857
  class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
2830
2858
  }, {
2831
2859
  default: b(() => [
2832
- f(c(C), {
2860
+ f(m(T), {
2833
2861
  icon: "bi:x",
2834
2862
  width: "1rem",
2835
2863
  height: "1rem",
@@ -2842,16 +2870,16 @@ const Xt = {
2842
2870
  };
2843
2871
  }
2844
2872
  });
2845
- function be(e, t, l, a) {
2846
- const o = t.flatMap((n) => n.file);
2847
- 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({
2851
- file: n,
2852
- status: s,
2873
+ function ge(e, t, l, a) {
2874
+ const o = t.flatMap((s) => s.file);
2875
+ return t = t.map((s) => ({ ...s, status: s.status == "Duplicate" ? "Not Uploaded" : s.status })), e.forEach((s) => {
2876
+ const d = o.findIndex((v) => v.name === s.name);
2877
+ let r = "Not Uploaded";
2878
+ d === -1 ? ((!l.includes(s.type) || !(s.size <= a)) && (r = l.includes(s.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
2879
+ file: s,
2880
+ status: r,
2853
2881
  blobFileName: null
2854
- })) : t[r].status = "Duplicate";
2882
+ })) : t[d].status = "Duplicate";
2855
2883
  }), t;
2856
2884
  }
2857
2885
  async function ya(e, t) {
@@ -2870,22 +2898,22 @@ function ue(e, t = !0, l = 1) {
2870
2898
  if (Math.abs(e) < a)
2871
2899
  return e + " B";
2872
2900
  const o = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
2873
- let n = -1;
2874
- const r = 10 ** l;
2901
+ let s = -1;
2902
+ const d = 10 ** l;
2875
2903
  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];
2904
+ e /= a, ++s;
2905
+ while (Math.round(Math.abs(e) * d) / d >= a && s < o.length - 1);
2906
+ return e.toFixed(l) + " " + o[s];
2879
2907
  }
2880
- function va(e) {
2908
+ function ba(e) {
2881
2909
  return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
2882
2910
  }
2883
- function ba(e) {
2911
+ function fa(e) {
2884
2912
  return URL.createObjectURL(e);
2885
2913
  }
2886
- const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disabled", "multiple"], ha = /* @__PURE__ */ F({
2914
+ const ga = { class: "d-flex justify-content-between" }, ha = ["accept", "disabled", "multiple"], wa = /* @__PURE__ */ V({
2887
2915
  __name: "UploadButton",
2888
- props: /* @__PURE__ */ L({
2916
+ props: /* @__PURE__ */ j({
2889
2917
  acceptedFileTypes: {},
2890
2918
  maxFileInput: {},
2891
2919
  showDragDropArea: { type: Boolean }
@@ -2895,54 +2923,54 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
2895
2923
  }),
2896
2924
  emits: ["update:modelValue"],
2897
2925
  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);
2926
+ const t = E(e, "modelValue"), l = k(() => e.maxFileInput <= t.value.length), a = (o) => {
2927
+ t.value = ge(o, t.value, e.acceptedFileTypes, e.maxFileInput);
2900
2928
  };
2901
- return (o, n) => (i(), m("div", fa, [
2902
- $(o.$slots, "message"),
2903
- u("div", null, [
2904
- u("input", {
2929
+ return (o, s) => (i(), y("div", ga, [
2930
+ B(o.$slots, "message"),
2931
+ c("div", null, [
2932
+ c("input", {
2905
2933
  id: "file-input",
2906
2934
  type: "file",
2907
2935
  class: "d-none",
2908
2936
  accept: o.acceptedFileTypes.join(", "),
2909
2937
  disabled: l.value,
2910
2938
  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"]),
2939
+ onInput: s[0] || (s[0] = (d) => a([...d.target.files]))
2940
+ }, null, 40, ha),
2941
+ c("label", {
2942
+ class: F([{ disabled: l.value }, "btn btn-primary"]),
2915
2943
  id: "file-input-button",
2916
2944
  for: "file-input"
2917
2945
  }, [
2918
- $(o.$slots, "button-content", {}, () => [
2919
- f(c(C), {
2946
+ B(o.$slots, "button-content", {}, () => [
2947
+ f(m(T), {
2920
2948
  icon: "bi:upload",
2921
2949
  class: "me-2",
2922
2950
  height: "20px",
2923
2951
  width: "20px"
2924
2952
  }),
2925
- z(" Browse your computer ")
2953
+ O(" Browse your computer ")
2926
2954
  ])
2927
2955
  ], 2)
2928
2956
  ]),
2929
- o.showDragDropArea ? (i(), m("div", {
2957
+ o.showDragDropArea ? (i(), y("div", {
2930
2958
  class: "ms-auto",
2931
2959
  key: o.acceptedFileTypes.length,
2932
2960
  id: "accepted-file-types"
2933
- }, "Accepted File Types: " + h(o.acceptedFileTypes.map((r) => r.split("/").pop()).join(", ")), 1)) : S("", !0)
2961
+ }, "Accepted File Types: " + w(o.acceptedFileTypes.map((d) => d.split("/").pop()).join(", ")), 1)) : S("", !0)
2934
2962
  ]));
2935
2963
  }
2936
- }), wa = {
2964
+ }), xa = {
2937
2965
  key: 0,
2938
2966
  class: "py-4 px-3",
2939
2967
  id: "placeholder-message"
2940
- }, xa = {
2968
+ }, ka = {
2941
2969
  key: 1,
2942
2970
  class: "d-flex flex-column"
2943
- }, ka = /* @__PURE__ */ F({
2971
+ }, $a = /* @__PURE__ */ V({
2944
2972
  __name: "DragDropArea",
2945
- props: /* @__PURE__ */ L({
2973
+ props: /* @__PURE__ */ j({
2946
2974
  maxFileInput: {},
2947
2975
  maxFileSize: {},
2948
2976
  acceptedFileTypes: {}
@@ -2952,30 +2980,30 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
2952
2980
  }),
2953
2981
  emits: ["update:modelValue"],
2954
2982
  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);
2983
+ const t = E(e, "modelValue"), l = I(!1), a = k(() => e.maxFileInput <= t.value.length), o = (s) => {
2984
+ l.value = !1, s.dataTransfer.files.length > e.maxFileInput || a.value ? s.preventDefault() : t.value = ge([...s.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
2957
2985
  };
2958
- return (n, r) => (i(), m("div", {
2986
+ return (s, d) => (i(), y("div", {
2959
2987
  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"])
2988
+ class: F(`${l.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
2989
+ onDragleave: d[0] || (d[0] = Y((r) => l.value = !1, ["prevent"])),
2990
+ onDragover: d[1] || (d[1] = Y((r) => l.value = !0, ["prevent"])),
2991
+ onDrop: Y(o, ["prevent"])
2964
2992
  }, [
2965
- t.value.length === 0 ? (i(), m("div", wa, [
2966
- f(c(C), {
2993
+ t.value.length === 0 ? (i(), y("div", xa, [
2994
+ f(m(T), {
2967
2995
  icon: "bi:upload",
2968
2996
  class: "me-2",
2969
2997
  height: "20px",
2970
2998
  width: "20px"
2971
2999
  }),
2972
- z(" Drag and drop files here ")
2973
- ])) : (i(), m("div", xa, [
2974
- $(n.$slots, "default")
3000
+ O(" Drag and drop files here ")
3001
+ ])) : (i(), y("div", ka, [
3002
+ B(s.$slots, "default")
2975
3003
  ]))
2976
3004
  ], 34));
2977
3005
  }
2978
- }), $a = { class: "d-flex align-items-center me-2" }, Ba = /* @__PURE__ */ F({
3006
+ }), Ba = { class: "d-flex align-items-center me-2" }, _a = /* @__PURE__ */ V({
2979
3007
  __name: "UploadStatus",
2980
3008
  props: {
2981
3009
  fileSize: {},
@@ -2984,7 +3012,7 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
2984
3012
  uploadStatus: {}
2985
3013
  },
2986
3014
  setup(e) {
2987
- const t = x(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), l = x(() => {
3015
+ const t = k(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), l = k(() => {
2988
3016
  switch (e.uploadStatus) {
2989
3017
  case "InvalidFileType":
2990
3018
  return "Upload Failed: File type is not accepted.";
@@ -3000,43 +3028,43 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
3000
3028
  return "Upload Failed: Connection error, please try again.";
3001
3029
  }
3002
3030
  });
3003
- return (a, o) => (i(), m("div", $a, [
3004
- a.uploadStatus === "Uploading" ? (i(), w(qt, {
3031
+ return (a, o) => (i(), y("div", Ba, [
3032
+ a.uploadStatus === "Uploading" ? (i(), h(Gt, {
3005
3033
  key: 0,
3006
3034
  pixelWidth: 200,
3007
3035
  animate: "",
3008
3036
  striped: ""
3009
3037
  }, {
3010
3038
  default: b(() => [
3011
- z(h((a.bytesUploaded / a.fileSize * 100).toFixed(0)) + "%", 1)
3039
+ O(w((a.bytesUploaded / a.fileSize * 100).toFixed(0)) + "%", 1)
3012
3040
  ]),
3013
3041
  _: 1
3014
3042
  })) : S("", !0),
3015
- a.uploadStatus !== "Uploading" && a.uploadStatus !== "Not Uploaded" && a.uploadStatus !== "Uploaded" && a.uploadStatus !== "Preparing" ? (i(), w(ne, {
3043
+ a.uploadStatus !== "Uploading" && a.uploadStatus !== "Not Uploaded" && a.uploadStatus !== "Uploaded" && a.uploadStatus !== "Preparing" ? (i(), h(se, {
3016
3044
  key: 1,
3017
3045
  id: "upload-status-alert",
3018
3046
  severity: t.value,
3019
3047
  class: "mb-0 w-75 ms-auto"
3020
3048
  }, {
3021
3049
  default: b(() => [
3022
- z(h(l.value), 1)
3050
+ O(w(l.value), 1)
3023
3051
  ]),
3024
3052
  _: 1
3025
3053
  }, 8, ["severity"])) : S("", !0)
3026
3054
  ]));
3027
3055
  }
3028
- }), _a = ["data-cy"], Fa = { class: "ms-3 d-flex flex-column" }, Sa = {
3056
+ }), Fa = ["data-cy"], Va = { class: "ms-3 d-flex flex-column" }, Sa = {
3029
3057
  key: 1,
3030
3058
  id: "file-name"
3031
- }, Va = {
3059
+ }, Ca = {
3032
3060
  class: "text-black-50",
3033
3061
  id: "file-type"
3034
- }, Ca = {
3062
+ }, Ta = {
3035
3063
  class: "text-black-50",
3036
3064
  id: "file-size"
3037
- }, Ta = { class: "ms-auto my-auto d-flex" }, Pa = /* @__PURE__ */ F({
3065
+ }, Pa = { class: "ms-auto my-auto d-flex" }, Ma = /* @__PURE__ */ V({
3038
3066
  __name: "FileInfo",
3039
- props: /* @__PURE__ */ L({
3067
+ props: /* @__PURE__ */ j({
3040
3068
  editableFileName: { type: Boolean },
3041
3069
  acceptedFileTypes: {},
3042
3070
  maxFileSize: {},
@@ -3051,29 +3079,29 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
3051
3079
  uploadStatus: { required: !0 },
3052
3080
  uploadStatusModifiers: {}
3053
3081
  }),
3054
- emits: /* @__PURE__ */ L(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
3082
+ emits: /* @__PURE__ */ j(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
3055
3083
  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() });
3084
+ const l = E(e, "file"), a = E(e, "blobFileName"), o = E(e, "uploadStatus"), s = t, d = I(l.value.name), r = I(""), v = I(0), u = I(), n = k(() => e.acceptedFileTypes.includes(l.value.type)), p = k(() => l.value.size <= e.maxFileSize), x = () => {
3085
+ l.value = new File([l.value], d.value, { type: l.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
3058
3086
  }, _ = async () => {
3059
- if (!y.value || !v.value) {
3060
- o.value = y.value ? "InvalidFileSize" : "InvalidFileType";
3087
+ if (!n.value || !p.value) {
3088
+ o.value = n.value ? "InvalidFileSize" : "InvalidFileType";
3061
3089
  return;
3062
3090
  }
3063
- o.value = "Preparing", d.value = new AbortController();
3064
- const [V, O] = await e.getFileUrlAction(l.value.name);
3065
- if (!V) {
3091
+ o.value = "Preparing", u.value = new AbortController();
3092
+ const [M, z] = await e.getFileUrlAction(l.value.name);
3093
+ if (!M) {
3066
3094
  o.value = "Failed";
3067
3095
  return;
3068
3096
  }
3069
3097
  try {
3070
3098
  o.value = "Uploading";
3071
- const g = new pe(V), M = {
3072
- abortSignal: d.value.signal,
3073
- onProgress: (q) => p.value = q.loadedBytes,
3099
+ const g = new pe(M), $ = {
3100
+ abortSignal: u.value.signal,
3101
+ onProgress: (G) => v.value = G.loadedBytes,
3074
3102
  tags: { temp: "true" }
3075
3103
  };
3076
- await g.uploadData(l.value, M), s.value = V, o.value = "Uploaded", a.value = O;
3104
+ await g.uploadData(l.value, $), r.value = M, o.value = "Uploaded", a.value = z;
3077
3105
  } catch (g) {
3078
3106
  if (g.name === "AbortError") {
3079
3107
  o.value = "Aborted";
@@ -3082,26 +3110,26 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
3082
3110
  o.value = "Failed";
3083
3111
  }
3084
3112
  }, P = async () => {
3085
- await ya(o.value, s.value), n("deleted", l.value);
3113
+ await ya(o.value, r.value), s("deleted", l.value);
3086
3114
  };
3087
3115
  return ae(() => {
3088
3116
  e.autoUploadToBlob && _();
3089
- }), (V, O) => {
3117
+ }), (M, z) => {
3090
3118
  const g = R;
3091
- return i(), m("div", {
3119
+ return i(), y("div", {
3092
3120
  class: "py-4 px-3 d-flex",
3093
3121
  "data-cy": `file-info-${l.value.name}`
3094
3122
  }, [
3095
- u("div", null, [
3096
- c(va)(l.value.type) ? (i(), w(c(Oe), {
3123
+ c("div", null, [
3124
+ m(ba)(l.value.type) ? (i(), h(m(Ue), {
3097
3125
  key: 0,
3098
3126
  id: "thumbnail-image",
3099
3127
  "image-class": "image-file-thumbnail border",
3100
- src: c(ba)(l.value),
3128
+ src: m(fa)(l.value),
3101
3129
  alt: l.value.name,
3102
3130
  width: "75px",
3103
3131
  preview: ""
3104
- }, null, 8, ["src", "alt"])) : (i(), w(c(C), {
3132
+ }, null, 8, ["src", "alt"])) : (i(), h(m(T), {
3105
3133
  key: 1,
3106
3134
  id: "file-earmark",
3107
3135
  icon: "bi:file-earmark",
@@ -3109,78 +3137,78 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
3109
3137
  width: "75px"
3110
3138
  }))
3111
3139
  ]),
3112
- u("div", Fa, [
3113
- u("div", null, [
3114
- V.editableFileName ? (i(), w(kt, {
3140
+ c("div", Va, [
3141
+ c("div", null, [
3142
+ M.editableFileName ? (i(), h(Bt, {
3115
3143
  key: 0,
3116
3144
  id: "edit-file-name",
3117
- modelValue: r.value,
3118
- "onUpdate:modelValue": O[0] || (O[0] = (M) => r.value = M),
3119
- rules: V.customFileNameRules,
3145
+ modelValue: d.value,
3146
+ "onUpdate:modelValue": z[0] || (z[0] = ($) => d.value = $),
3147
+ rules: M.customFileNameRules,
3120
3148
  name: l.value.name,
3121
- "complete-action": k
3122
- }, null, 8, ["modelValue", "rules", "name"])) : (i(), m("span", Sa, h(l.value.name), 1))
3149
+ "complete-action": x
3150
+ }, null, 8, ["modelValue", "rules", "name"])) : (i(), y("span", Sa, w(l.value.name), 1))
3123
3151
  ]),
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)
3152
+ c("span", Ca, "File type: " + w(l.value.type.split("/").pop()), 1),
3153
+ c("span", Ta, "File size: " + w(m(ue)(l.value.size)), 1)
3126
3154
  ]),
3127
- u("div", Ta, [
3128
- (i(), w(Ba, {
3155
+ c("div", Pa, [
3156
+ (i(), h(_a, {
3129
3157
  key: o.value,
3130
3158
  "file-size": l.value.size,
3131
3159
  "upload-status": o.value,
3132
- "bytes-uploaded": p.value,
3133
- "max-file-size": V.maxFileSize
3160
+ "bytes-uploaded": v.value,
3161
+ "max-file-size": M.maxFileSize
3134
3162
  }, 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, {
3163
+ o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (i(), h(g, {
3136
3164
  key: 0,
3137
3165
  link: "",
3138
3166
  onClick: _
3139
3167
  }, {
3140
3168
  default: b(() => [
3141
- f(c(C), {
3169
+ f(m(T), {
3142
3170
  icon: o.value === "Not Uploaded" || o.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
3143
3171
  }, null, 8, ["icon"])
3144
3172
  ]),
3145
3173
  _: 1
3146
3174
  })) : S("", !0),
3147
- o.value === "Uploading" ? (i(), w(g, {
3175
+ o.value === "Uploading" ? (i(), h(g, {
3148
3176
  key: 1,
3149
3177
  link: "",
3150
- onClick: O[1] || (O[1] = (M) => d.value.value.abort())
3178
+ onClick: z[1] || (z[1] = ($) => u.value.value.abort())
3151
3179
  }, {
3152
3180
  default: b(() => [
3153
- f(c(C), { icon: "bi:x-circle-fill" })
3181
+ f(m(T), { icon: "bi:x-circle-fill" })
3154
3182
  ]),
3155
3183
  _: 1
3156
- })) : (i(), w(g, {
3184
+ })) : (i(), h(g, {
3157
3185
  key: 2,
3158
3186
  link: "",
3159
3187
  onClick: P,
3160
3188
  id: "delete-button"
3161
3189
  }, {
3162
3190
  default: b(() => [
3163
- f(c(C), { icon: "bi:trash" })
3191
+ f(m(T), { icon: "bi:trash" })
3164
3192
  ]),
3165
3193
  _: 1
3166
3194
  }))
3167
3195
  ])
3168
- ], 8, _a);
3196
+ ], 8, Fa);
3169
3197
  };
3170
3198
  }
3171
- }), Ia = { class: "d-flex justify-content-end mt-1" }, Ma = { id: "max-file-size" }, za = /* @__PURE__ */ F({
3199
+ }), Ia = { class: "d-flex justify-content-end mt-1" }, za = { id: "max-file-size" }, Oa = /* @__PURE__ */ V({
3172
3200
  __name: "MaxFileSize",
3173
3201
  props: {
3174
3202
  maxFileSize: {}
3175
3203
  },
3176
3204
  setup(e) {
3177
- return (t, l) => (i(), m("div", Ia, [
3178
- u("div", Ma, "Max file size: " + h(c(ue)(t.maxFileSize)), 1)
3205
+ return (t, l) => (i(), y("div", Ia, [
3206
+ c("div", za, "Max file size: " + w(m(ue)(t.maxFileSize)), 1)
3179
3207
  ]));
3180
3208
  }
3181
- }), Oa = { "data-cy": "file-uploader" }, Da = { key: 0 }, Fl = /* @__PURE__ */ F({
3209
+ }), Da = { "data-cy": "file-uploader" }, Ua = { key: 0 }, Vl = /* @__PURE__ */ V({
3182
3210
  __name: "ForgeFileUploader",
3183
- props: /* @__PURE__ */ L({
3211
+ props: /* @__PURE__ */ j({
3184
3212
  acceptedFileTypes: {},
3185
3213
  maxFileSize: {},
3186
3214
  getFileUrlAction: {},
@@ -3196,39 +3224,39 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
3196
3224
  emits: ["update:modelValue"],
3197
3225
  setup(e) {
3198
3226
  const t = E(e, "modelValue"), l = e, a = (o) => {
3199
- t.value = t.value.filter((n) => n.file != o);
3227
+ t.value = t.value.filter((s) => s.file != o);
3200
3228
  };
3201
- return (o, n) => (i(), m("div", Oa, [
3202
- f(ha, T(l, {
3229
+ return (o, s) => (i(), y("div", Da, [
3230
+ f(wa, C(l, {
3203
3231
  modelValue: t.value,
3204
- "onUpdate:modelValue": n[0] || (n[0] = (r) => t.value = r)
3232
+ "onUpdate:modelValue": s[0] || (s[0] = (d) => t.value = d)
3205
3233
  }), null, 16, ["modelValue"]),
3206
- o.showDragDropArea ? (i(), m("div", Da, [
3207
- f(ka, {
3234
+ o.showDragDropArea ? (i(), y("div", Ua, [
3235
+ f($a, {
3208
3236
  "max-file-input": l.maxFileInput,
3209
3237
  "max-file-size": l.maxFileSize,
3210
3238
  "accepted-file-types": l.acceptedFileTypes,
3211
3239
  modelValue: t.value,
3212
- "onUpdate:modelValue": n[1] || (n[1] = (r) => t.value = r)
3240
+ "onUpdate:modelValue": s[1] || (s[1] = (d) => t.value = d)
3213
3241
  }, {
3214
3242
  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,
3243
+ (i(!0), y(N, null, q(t.value, ({ file: d }, r) => (i(), y("span", null, [
3244
+ (i(), h(Ma, C({
3245
+ key: d.name,
3246
+ class: r === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
3247
+ file: t.value[r].file,
3248
+ "onUpdate:file": (v) => t.value[r].file = v,
3249
+ "blob-file-name": t.value[r].blobFileName,
3250
+ "onUpdate:blobFileName": (v) => t.value[r].blobFileName = v,
3251
+ "upload-status": t.value[r].status,
3252
+ "onUpdate:uploadStatus": (v) => t.value[r].status = v,
3225
3253
  ref_for: !0
3226
3254
  }, l, { onDeleted: a }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
3227
3255
  ]))), 256))
3228
3256
  ]),
3229
3257
  _: 1
3230
3258
  }, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
3231
- f(za, {
3259
+ f(Oa, {
3232
3260
  "max-file-size": l.maxFileSize
3233
3261
  }, null, 8, ["max-file-size"])
3234
3262
  ])) : S("", !0)
@@ -3236,28 +3264,28 @@ const fa = { class: "d-flex justify-content-between" }, ga = ["accept", "disable
3236
3264
  }
3237
3265
  });
3238
3266
  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,
3246
- _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,
3267
+ cl as Bootstrap_PT,
3268
+ ml as ForgeActionButton,
3269
+ se as ForgeAlert,
3270
+ ve as ForgeCheckbox,
3271
+ xl as ForgeChips,
3272
+ fe as ForgeDatepicker,
3273
+ Vl as ForgeFileUploader,
3274
+ Fl as ForgeFilterHeader,
3275
+ hl as ForgeForm,
3276
+ wl as ForgeFormField,
3277
+ Bt as ForgeInlineEditor,
3278
+ pl as ForgeLink,
3279
+ ye as ForgeLoader,
3280
+ vl as ForgeModal,
3281
+ be as ForgeMultiSelect,
3282
+ bl as ForgeMultiSelectPreview,
3255
3283
  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
3284
+ fl as ForgePageHeader,
3285
+ Gt as ForgeProgressBar,
3286
+ gl as ForgeRemainingCharacters,
3287
+ kl as ForgeStatWidget,
3288
+ $l as ForgeStepper,
3289
+ _l as ForgeTable,
3290
+ Bl as ForgeTile
3263
3291
  };