@3squared/forge-ui-3 2.0.0 → 2.1.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,34 +1,34 @@
1
1
  import he from "primevue/message";
2
- import { defineComponent as B, openBlock as s, createBlock as g, normalizeProps as X, guardReactiveProps as Q, withCtx as b, createElementVNode as m, normalizeClass as $, unref as c, createCommentVNode as j, createVNode as x, renderSlot as k, ref as _, createElementBlock as v, Fragment as O, mergeProps as F, renderList as U, mergeModels as q, useModel as I, computed as z, createTextVNode as P, toDisplayString as w, withDirectives as R, vShow as W, createSlots as ie, onMounted as ee, isRef as we, withKeys as Z, normalizeStyle as ke, withModifiers as G, watch as de } from "vue";
3
- import { Icon as T } from "@iconify/vue";
2
+ import { defineComponent as B, openBlock as n, createBlock as g, normalizeProps as X, guardReactiveProps as Q, withCtx as b, createElementVNode as m, normalizeClass as k, unref as c, createCommentVNode as j, createVNode as x, renderSlot as w, ref as S, createElementBlock as u, Fragment as O, mergeProps as F, renderList as U, mergeModels as q, useModel as I, computed as z, createTextVNode as P, toDisplayString as h, withDirectives as R, vShow as W, createSlots as te, onMounted as ie, isRef as we, withKeys as Z, normalizeStyle as ke, withModifiers as G, watch as de } from "vue";
3
+ import { Icon as C } from "@iconify/vue";
4
4
  import A from "primevue/button";
5
5
  import $e from "primevue/toast";
6
6
  import Fe from "primevue/autocomplete";
7
- import ce from "primevue/checkbox";
8
- import { useField as ae } from "vee-validate";
9
- import Be from "primevue/progressspinner";
10
- import ze from "primevue/dialog";
7
+ import Be from "primevue/checkbox";
8
+ import { useField as ee } from "vee-validate";
9
+ import ze from "primevue/progressspinner";
10
+ import je from "primevue/dialog";
11
11
  import le from "primevue/inputtext";
12
- import { vOnClickOutside as je } from "@vueuse/components";
13
- import Ce from "primevue/menubar";
12
+ import { vOnClickOutside as Ce } from "@vueuse/components";
13
+ import Te from "primevue/menubar";
14
14
  import oe from "primevue/multiselect";
15
- import Te from "primevue/datepicker";
16
- import te from "primevue/select";
15
+ import Se from "primevue/datepicker";
16
+ import ae from "primevue/select";
17
17
  import _e from "primevue/inputmask";
18
- import Se from "primevue/textarea";
19
- import me from "primevue/inputnumber";
20
- import Ve from "primevue/chip";
21
- import Pe from "primevue/progressbar";
22
- import Me from "primevue/step";
23
- import Ie from "primevue/stepper";
24
- import Oe from "primevue/steplist";
25
- import De from "primevue/steppanel";
26
- import Ue from "primevue/steppanels";
27
- import qe from "primevue/datatable";
28
- import { BlockBlobClient as ue } from "@azure/storage-blob";
29
- import ve from "primevue/popover";
30
- import Ae from "primevue/image";
31
- const Le = {
18
+ import Ve from "primevue/textarea";
19
+ import ce from "primevue/inputnumber";
20
+ import Pe from "primevue/chip";
21
+ import Me from "primevue/progressbar";
22
+ import Ie from "primevue/step";
23
+ import Oe from "primevue/stepper";
24
+ import De from "primevue/steplist";
25
+ import Ue from "primevue/steppanel";
26
+ import qe from "primevue/steppanels";
27
+ import Ae from "primevue/datatable";
28
+ import { BlockBlobClient as me } from "@azure/storage-blob";
29
+ import ue from "primevue/popover";
30
+ import Le from "primevue/image";
31
+ const Ee = {
32
32
  autoComplete: {
33
33
  root: ({ props: e }) => ({
34
34
  class: [
@@ -57,7 +57,7 @@ const Le = {
57
57
  }),
58
58
  emptyMessage: "mx-3 my-2"
59
59
  }
60
- }, Ee = {
60
+ }, Ne = {
61
61
  button: {
62
62
  root: ({ props: e }) => ({
63
63
  class: [
@@ -158,7 +158,7 @@ const Le = {
158
158
  })
159
159
  }
160
160
  }
161
- }, Ne = {
161
+ }, Re = {
162
162
  checkbox: {
163
163
  root: () => ({
164
164
  class: ["form-check"]
@@ -174,7 +174,7 @@ const Le = {
174
174
  ]
175
175
  })
176
176
  }
177
- }, Re = {
177
+ }, He = {
178
178
  select: {
179
179
  root: ({ props: e }) => ({
180
180
  class: [
@@ -222,7 +222,7 @@ const Le = {
222
222
  ]
223
223
  })
224
224
  }
225
- }, He = {
225
+ }, We = {
226
226
  column: {
227
227
  pcSortBadge: "ms-2 my-auto cursor-pointer",
228
228
  headerCell: (e) => {
@@ -325,7 +325,7 @@ const Le = {
325
325
  ]
326
326
  })
327
327
  }
328
- }, We = {
328
+ }, Ge = {
329
329
  inputtext: {
330
330
  root: (e) => {
331
331
  var a, t;
@@ -340,7 +340,7 @@ const Le = {
340
340
  };
341
341
  }
342
342
  }
343
- }, Ge = {
343
+ }, Ye = {
344
344
  inputmask: {
345
345
  root: () => ({
346
346
  class: [
@@ -348,12 +348,12 @@ const Le = {
348
348
  ]
349
349
  })
350
350
  }
351
- }, Ye = {
351
+ }, Ke = {
352
352
  toggleSwitch: {
353
353
  root: "form-check form-switch",
354
354
  input: "form-check-input"
355
355
  }
356
- }, Ke = {
356
+ }, Ze = {
357
357
  tag: {
358
358
  root: ({ props: e }) => ({
359
359
  class: [
@@ -373,7 +373,7 @@ const Le = {
373
373
  ]
374
374
  })
375
375
  }
376
- }, Ze = {
376
+ }, Je = {
377
377
  textarea: {
378
378
  root: () => ({
379
379
  class: [
@@ -381,13 +381,13 @@ const Le = {
381
381
  ]
382
382
  })
383
383
  }
384
- }, Je = {
384
+ }, Xe = {
385
385
  chip: {
386
386
  root: "badge rounded-pill bg-primary-subtle text-primary d-inline-flex align-items-center border border-primary me-1 p-1",
387
387
  label: "px-2 fs-6 fw-400",
388
388
  removeIcon: "ms-auto my-auto"
389
389
  }
390
- }, Xe = {
390
+ }, Qe = {
391
391
  dialog: {
392
392
  header: () => ({
393
393
  class: ["modal-header"]
@@ -434,7 +434,7 @@ const Le = {
434
434
  ]
435
435
  })
436
436
  }
437
- }, Qe = {
437
+ }, ea = {
438
438
  popover: {
439
439
  root: (e) => ({
440
440
  class: [
@@ -448,7 +448,7 @@ const Le = {
448
448
  content: "d-flex position-relative",
449
449
  closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
450
450
  }
451
- }, ea = {
451
+ }, aa = {
452
452
  message: {
453
453
  root: ({ props: e }) => ({
454
454
  class: [
@@ -477,7 +477,7 @@ const Le = {
477
477
  class: ["px-0 ms-2 btn d-flex"]
478
478
  })
479
479
  }
480
- }, aa = {
480
+ }, ta = {
481
481
  // More PT options defined in ForgeStepper.
482
482
  stepList: {
483
483
  root: "d-flex mb-2 w-100"
@@ -505,7 +505,7 @@ const Le = {
505
505
  }),
506
506
  separator: "border border-1 separator"
507
507
  }
508
- }, ta = {
508
+ }, ia = {
509
509
  tabList: {
510
510
  root: () => ({
511
511
  class: ["nav nav-tabs position-relative"]
@@ -530,7 +530,7 @@ const Le = {
530
530
  class: ["p-2"]
531
531
  })
532
532
  }
533
- }, ia = {
533
+ }, la = {
534
534
  // More PassThrough options defined in ForgeDatepicker.
535
535
  datepicker: {
536
536
  root: "d-inline-flex relative w-100",
@@ -605,7 +605,7 @@ const Le = {
605
605
  pcDecrementButton: { root: "btn btn-sm", label: "d-none" },
606
606
  pcIncrementButton: { root: "btn btn-sm", label: "d-none" }
607
607
  }
608
- }, la = {
608
+ }, oa = {
609
609
  multiselect: {
610
610
  root: ({ props: e }) => ({
611
611
  class: [
@@ -633,7 +633,7 @@ const Le = {
633
633
  class: "d-none"
634
634
  })
635
635
  }
636
- }, oa = {
636
+ }, na = {
637
637
  // More PassThrough options in component file.
638
638
  progressbar: {
639
639
  root: () => ({
@@ -643,14 +643,14 @@ const Le = {
643
643
  class: ["text-white m-1"]
644
644
  })
645
645
  }
646
- }, na = {
646
+ }, sa = {
647
647
  panel: {
648
648
  root: "card w-100",
649
649
  header: "d-flex justify-content-between align-items-center fw-600 mx-2",
650
650
  pcToggleButton: "btn",
651
651
  contentContainer: "m-2"
652
652
  }
653
- }, sa = {
653
+ }, ra = {
654
654
  // More PT options can be found in the ForgeTable file.
655
655
  dataTable: {
656
656
  root: "position-relative",
@@ -713,7 +713,7 @@ const Le = {
713
713
  ]
714
714
  })
715
715
  }
716
- }, ra = {
716
+ }, pa = {
717
717
  badge: {
718
718
  root: ({ props: e }) => ({
719
719
  class: [
@@ -734,7 +734,7 @@ const Le = {
734
734
  ]
735
735
  })
736
736
  }
737
- }, pa = {
737
+ }, da = {
738
738
  // More PassThrough options in component file.
739
739
  menubar: {
740
740
  rootList: ({ instance: e }) => ({
@@ -815,7 +815,7 @@ const Le = {
815
815
  ]
816
816
  })
817
817
  }
818
- }, da = {
818
+ }, ca = {
819
819
  tooltip: {
820
820
  root: ({ context: e }) => ({
821
821
  class: [
@@ -837,7 +837,7 @@ const Le = {
837
837
  class: ["tooltip-inner"]
838
838
  }
839
839
  }
840
- }, ca = {
840
+ }, ma = {
841
841
  selectButton: {
842
842
  root: () => ({
843
843
  class: ["btn-group"]
@@ -854,7 +854,43 @@ const Le = {
854
854
  ]
855
855
  })
856
856
  }
857
- }, ma = {
857
+ }, ua = {
858
+ splitbutton: {
859
+ root: () => ({
860
+ class: ["btn-group"]
861
+ }),
862
+ pcDropdown: {
863
+ root: ({ props: e }) => ({
864
+ class: [
865
+ "btn dropdown-toggle-split",
866
+ {
867
+ "btn-primary": (e.severity === void 0 || e.severity === "primary" || e.severity === null) && !e.outlined,
868
+ "btn-brand": e.severity === "brand" && !e.outlined,
869
+ "btn-secondary": e.severity === "secondary" && !e.outlined,
870
+ "btn-success": e.severity === "success" && !e.outlined,
871
+ "btn-warning": (e.severity === "warning" || e.severity === "warn") && !e.outlined,
872
+ "btn-danger": e.severity === "danger" && !e.outlined,
873
+ "btn-info": e.severity === "info" && !e.outlined
874
+ },
875
+ {
876
+ "btn-outline-primary ": (e.severity === void 0 || e.severity === "primary" || e.severity === null) && e.outlined,
877
+ "btn-outline-brand": e.severity === "brand" && e.outlined,
878
+ "btn-outline-secondary": e.severity === "secondary" && e.outlined,
879
+ "btn-outline-success": e.severity === "success" && e.outlined,
880
+ "btn-outline-warning": (e.severity === "warning" || e.severity === "warn") && e.outlined,
881
+ "btn-outline-danger": e.severity === "danger" && e.outlined,
882
+ "btn-outline-info": e.severity === "info" && e.outlined
883
+ }
884
+ ]
885
+ })
886
+ },
887
+ pcMenu: {
888
+ rootList: "dropdown-menu show w-100",
889
+ item: "dropdown-item",
890
+ separator: "border-bottom w-100"
891
+ }
892
+ }
893
+ }, va = {
858
894
  progressspinner: {
859
895
  spin: () => ({
860
896
  class: [
@@ -862,7 +898,7 @@ const Le = {
862
898
  ]
863
899
  })
864
900
  }
865
- }, ua = {
901
+ }, fa = {
866
902
  card: {
867
903
  root: () => ({
868
904
  class: ["card"]
@@ -886,11 +922,11 @@ const Le = {
886
922
  class: ["card-header"]
887
923
  })
888
924
  }
889
- }, va = {
925
+ }, ba = {
890
926
  divider: {
891
927
  root: "border-bottom w-100 m-1"
892
928
  }
893
- }, fa = {
929
+ }, ga = {
894
930
  image: {
895
931
  root: "position-relative d-inline-block",
896
932
  previewMask: "preview-button",
@@ -903,7 +939,7 @@ const Le = {
903
939
  zoominbutton: "btn text-white",
904
940
  closebutton: "btn text-white"
905
941
  }
906
- }, ba = {
942
+ }, xa = {
907
943
  toast: {
908
944
  message: () => ({
909
945
  class: ["toast-container w-100 position-relative"]
@@ -938,7 +974,7 @@ const Le = {
938
974
  };
939
975
  }
940
976
  }
941
- }, ga = {
977
+ }, ya = {
942
978
  fieldset: {
943
979
  root: () => ({
944
980
  class: [
@@ -964,39 +1000,40 @@ const Le = {
964
1000
  ]
965
1001
  })
966
1002
  }
967
- }, ki = {
968
- ...Le,
969
- ...ra,
1003
+ }, wi = {
970
1004
  ...Ee,
971
- ...ua,
1005
+ ...pa,
972
1006
  ...Ne,
973
- ...Je,
974
- ...He,
975
- ...ia,
976
- ...Xe,
977
- ...va,
978
- ...Re,
979
1007
  ...fa,
1008
+ ...Re,
1009
+ ...Xe,
980
1010
  ...We,
981
- ...Ge,
982
- ...Ye,
983
- ...ea,
984
1011
  ...la,
985
- ...pa,
986
1012
  ...Qe,
1013
+ ...ba,
1014
+ ...He,
1015
+ ...ga,
1016
+ ...Ge,
1017
+ ...Ye,
1018
+ ...Ke,
1019
+ ...aa,
987
1020
  ...oa,
988
- ...ma,
1021
+ ...da,
1022
+ ...ea,
989
1023
  ...na,
990
- ...ca,
991
- ...aa,
1024
+ ...va,
992
1025
  ...sa,
993
- ...Ke,
1026
+ ...ma,
1027
+ ...ua,
994
1028
  ...ta,
995
- ...ba,
1029
+ ...ra,
996
1030
  ...Ze,
997
- ...ga,
1031
+ ...ia,
1032
+ ...xa,
1033
+ ...Je,
1034
+ ...ya,
998
1035
  directives: {
999
- ...da
1036
+ ...ca
1000
1037
  }
1001
1038
  }, ne = /* @__PURE__ */ B({
1002
1039
  __name: "ForgeAlert",
@@ -1019,31 +1056,31 @@ const Le = {
1019
1056
  const a = e;
1020
1057
  return (t, i) => {
1021
1058
  const l = he;
1022
- return s(), g(l, X(Q({ ...t.$attrs, ...a })), {
1059
+ return n(), g(l, X(Q({ ...t.$attrs, ...a })), {
1023
1060
  icon: b(() => [
1024
1061
  m("div", {
1025
- class: $(a.icon ? "me-2 pe-1" : "")
1062
+ class: k(a.icon ? "me-2 pe-1" : "")
1026
1063
  }, [
1027
- a.icon ? (s(), g(c(T), {
1064
+ a.icon ? (n(), g(c(C), {
1028
1065
  key: 0,
1029
1066
  "data-cy": "message-icon",
1030
1067
  icon: a.icon,
1031
- class: $(`text-${a.severity}`),
1068
+ class: k(`text-${a.severity}`),
1032
1069
  height: 35
1033
1070
  }, null, 8, ["icon", "class"])) : j("", !0)
1034
1071
  ], 2)
1035
1072
  ]),
1036
1073
  closeicon: b(() => [
1037
- x(c(T), { icon: "bi:x" })
1074
+ x(c(C), { icon: "bi:x" })
1038
1075
  ]),
1039
1076
  default: b(() => [
1040
- k(t.$slots, "default")
1077
+ w(t.$slots, "default")
1041
1078
  ]),
1042
1079
  _: 3
1043
1080
  }, 16);
1044
1081
  };
1045
1082
  }
1046
- }), $i = /* @__PURE__ */ B({
1083
+ }), ki = /* @__PURE__ */ B({
1047
1084
  __name: "ForgeActionButton",
1048
1085
  props: {
1049
1086
  action: {},
@@ -1052,7 +1089,7 @@ const Le = {
1052
1089
  params: { default: Array }
1053
1090
  },
1054
1091
  setup(e) {
1055
- const a = _(!1), t = e, i = async () => {
1092
+ const a = S(!1), t = e, i = async () => {
1056
1093
  a.value = !0;
1057
1094
  try {
1058
1095
  await t.action.apply(this, t.params);
@@ -1062,9 +1099,9 @@ const Le = {
1062
1099
  a.value = !1;
1063
1100
  };
1064
1101
  return (l, o) => {
1065
- const r = A;
1066
- return s(), v(O, null, [
1067
- x(r, F({ ...t, ...l.$attrs }, {
1102
+ const s = A;
1103
+ return n(), u(O, null, [
1104
+ x(s, F({ ...t, ...l.$attrs }, {
1068
1105
  loading: a.value,
1069
1106
  disabled: a.value || t.disabled,
1070
1107
  onClick: i
@@ -1073,17 +1110,17 @@ const Le = {
1073
1110
  ], 64);
1074
1111
  };
1075
1112
  }
1076
- }), Fi = /* @__PURE__ */ B({
1113
+ }), $i = /* @__PURE__ */ B({
1077
1114
  __name: "ForgeAutoComplete",
1078
1115
  setup(e) {
1079
- return (a, t) => (s(), g(c(Fe), F({ ...a.$attrs, ...a.$props }, { inputClass: "form-control border-0" }), {
1116
+ return (a, t) => (n(), g(c(Fe), F({ ...a.$attrs, ...a.$props }, { inputClass: "form-control border-0" }), {
1080
1117
  default: b(() => [
1081
- (s(!0), v(O, null, U(a.$slots, (i, l) => k(a.$slots, l, { slot: l })), 256))
1118
+ (n(!0), u(O, null, U(a.$slots, (i, l) => w(a.$slots, l, { slot: l })), 256))
1082
1119
  ]),
1083
1120
  _: 3
1084
1121
  }, 16));
1085
1122
  }
1086
- }), xa = { class: "d-flex flex-column" }, ya = ["for"], ha = /* @__PURE__ */ B({
1123
+ }), ha = { class: "d-flex flex-column" }, wa = ["for"], ve = /* @__PURE__ */ B({
1087
1124
  __name: "ForgeCheckbox",
1088
1125
  props: /* @__PURE__ */ q({
1089
1126
  label: { default: "" },
@@ -1118,52 +1155,52 @@ const Le = {
1118
1155
  }),
1119
1156
  emits: ["update:modelValue"],
1120
1157
  setup(e) {
1121
- const a = e, t = I(e, "modelValue"), { handleChange: i, errors: l, errorMessage: o } = ae(
1158
+ const a = e, t = I(e, "modelValue"), { handleChange: i, errors: l, errorMessage: o } = ee(
1122
1159
  () => a.name ?? "",
1123
1160
  void 0,
1124
1161
  {
1125
1162
  type: "checkbox",
1126
1163
  checkedValue: t.value
1127
1164
  }
1128
- ), r = (d) => {
1165
+ ), s = (d) => {
1129
1166
  a.name ? i(d) : t.value = d;
1130
- }, p = z(() => l.value.length > 0);
1131
- return (d, u) => {
1132
- const h = ce;
1133
- return s(), v("div", xa, [
1167
+ }, r = z(() => l.value.length > 0);
1168
+ return (d, v) => {
1169
+ const $ = Be;
1170
+ return n(), u("div", ha, [
1134
1171
  m("div", F({
1135
1172
  class: "d-flex",
1136
1173
  "data-cy": "checkbox-container",
1137
- onClick: u[2] || (u[2] = (n) => r(t.value))
1174
+ onClick: v[2] || (v[2] = (p) => s(t.value))
1138
1175
  }, { ...d.$attrs }), [
1139
- x(h, F({ ...a }, {
1176
+ x($, F({ ...a }, {
1140
1177
  binary: "",
1141
1178
  modelValue: t.value,
1142
- "onUpdate:modelValue": u[0] || (u[0] = (n) => t.value = n),
1179
+ "onUpdate:modelValue": v[0] || (v[0] = (p) => t.value = p),
1143
1180
  "input-id": a.name,
1144
- "input-class": { "is-invalid": p.value },
1181
+ "input-class": { "is-invalid": r.value },
1145
1182
  class: a.disabled ? "" : "cursor-pointer"
1146
1183
  }), null, 16, ["modelValue", "input-id", "input-class", "class"]),
1147
1184
  m("label", {
1148
1185
  for: a.name,
1149
- onClick: u[1] || (u[1] = (n) => r(!t.value)),
1150
- class: $([`${a.disabled ? "opacity-50" : "cursor-pointer"} ${p.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1186
+ onClick: v[1] || (v[1] = (p) => s(!t.value)),
1187
+ class: k([`${a.disabled ? "opacity-50" : "cursor-pointer"} ${r.value ? "text-danger-dark" : ""}`, "w-100 my-auto"])
1151
1188
  }, [
1152
- k(d.$slots, "default", {}, () => [
1153
- P(w(a.label), 1)
1189
+ w(d.$slots, "default", {}, () => [
1190
+ P(h(a.label), 1)
1154
1191
  ])
1155
- ], 10, ya)
1192
+ ], 10, wa)
1156
1193
  ], 16),
1157
1194
  R(m("small", {
1158
1195
  "data-cy": "error",
1159
1196
  class: "text-invalid"
1160
- }, w(c(o)), 513), [
1161
- [W, p.value]
1197
+ }, h(c(o)), 513), [
1198
+ [W, r.value]
1162
1199
  ])
1163
1200
  ]);
1164
1201
  };
1165
1202
  }
1166
- }), wa = { class: "forge-loader" }, fe = /* @__PURE__ */ B({
1203
+ }), ka = { class: "forge-loader" }, fe = /* @__PURE__ */ B({
1167
1204
  __name: "ForgeLoader",
1168
1205
  props: {
1169
1206
  severity: { default: "primary" }
@@ -1171,16 +1208,16 @@ const Le = {
1171
1208
  setup(e) {
1172
1209
  const a = e;
1173
1210
  return (t, i) => {
1174
- const l = Be;
1175
- return s(), v("div", wa, [
1211
+ const l = ze;
1212
+ return n(), u("div", ka, [
1176
1213
  x(l, {
1177
1214
  "animation-duration": ".75",
1178
- class: $(`text-${a.severity === void 0 ? "primary" : a.severity}`)
1215
+ class: k(`text-${a.severity === void 0 ? "primary" : a.severity}`)
1179
1216
  }, null, 8, ["class"])
1180
1217
  ]);
1181
1218
  };
1182
1219
  }
1183
- }), ka = ["href", "target"], Bi = /* @__PURE__ */ B({
1220
+ }), $a = ["href", "target"], Fi = /* @__PURE__ */ B({
1184
1221
  __name: "ForgeLink",
1185
1222
  props: {
1186
1223
  url: {},
@@ -1214,25 +1251,25 @@ const Le = {
1214
1251
  "ms-0": e.positionIconEnd && e.animateIconOnHover,
1215
1252
  "me-0": e.animateIconOnHover
1216
1253
  }));
1217
- return (i, l) => (s(), v("a", {
1254
+ return (i, l) => (n(), u("a", {
1218
1255
  id: "link",
1219
- class: $(["cursor-pointer d-flex text-break", a.value]),
1256
+ class: k(["cursor-pointer d-flex text-break", a.value]),
1220
1257
  href: i.url,
1221
1258
  target: i.target
1222
1259
  }, [
1223
- k(i.$slots, "default", {}, () => [
1224
- i.iconName ? (s(), g(c(T), {
1260
+ w(i.$slots, "default", {}, () => [
1261
+ i.iconName ? (n(), g(c(C), {
1225
1262
  key: 0,
1226
1263
  id: "link-icon",
1227
1264
  icon: i.iconName,
1228
- class: $(["bi my-auto", t.value])
1265
+ class: k(["bi my-auto", t.value])
1229
1266
  }, null, 8, ["icon", "class"])) : j("", !0),
1230
- P(" " + w(i.label), 1)
1267
+ P(" " + h(i.label), 1)
1231
1268
  ])
1232
- ], 10, ka));
1269
+ ], 10, $a));
1233
1270
  }
1234
1271
  });
1235
- function $a(e) {
1272
+ function Fa(e) {
1236
1273
  const a = {
1237
1274
  errorMessage: "",
1238
1275
  errorDetails: []
@@ -1243,16 +1280,16 @@ function $a(e) {
1243
1280
  }
1244
1281
  return a.errorMessage === "" && a.errorDetails.length === 0 && (a.errorMessage = e), a;
1245
1282
  }
1246
- function zi(e, a) {
1283
+ function Bi(e, a) {
1247
1284
  return e.map((t) => ({ id: t, label: a ? a(t) : `${t}` }));
1248
1285
  }
1249
- function ji(e, a, t) {
1286
+ function zi(e, a, t) {
1250
1287
  return { id: e, label: a ?? e.toString(), shortLabel: t };
1251
1288
  }
1252
- const Fa = { key: 0 }, Ba = {
1289
+ const Ba = { key: 0 }, za = {
1253
1290
  class: "d-flex w-100",
1254
1291
  "data-cy": "footer"
1255
- }, Ci = /* @__PURE__ */ B({
1292
+ }, ji = /* @__PURE__ */ B({
1256
1293
  __name: "ForgeModal",
1257
1294
  props: /* @__PURE__ */ q({
1258
1295
  cancelText: { default: "Cancel" },
@@ -1302,30 +1339,30 @@ const Fa = { key: 0 }, Ba = {
1302
1339
  }),
1303
1340
  emits: ["update:visible"],
1304
1341
  setup(e) {
1305
- const a = I(e, "visible"), t = _(!1), i = e, l = _(!1), o = _({
1342
+ const a = I(e, "visible"), t = S(!1), i = e, l = S(!1), o = S({
1306
1343
  hasError: !1,
1307
1344
  header: "",
1308
1345
  message: []
1309
- }), r = () => {
1346
+ }), s = () => {
1310
1347
  t.value = !1;
1311
- }, p = () => {
1348
+ }, r = () => {
1312
1349
  t.value = !0;
1313
1350
  }, d = () => {
1314
1351
  a.value = !1;
1315
- }, u = async () => {
1352
+ }, v = async () => {
1316
1353
  if (i.onConfirm) {
1317
1354
  l.value = !0, o.value.hasError = !1;
1318
1355
  try {
1319
- const n = await i.onConfirm();
1320
- (n || n == null) && d();
1321
- } catch (n) {
1356
+ const p = await i.onConfirm();
1357
+ (p || p == null) && d();
1358
+ } catch (p) {
1322
1359
  o.value.hasError = !0;
1323
- const C = $a(n);
1324
- o.value.header = C.errorMessage, o.value.message = C.errorDetails;
1360
+ const T = Fa(p);
1361
+ o.value.header = T.errorMessage, o.value.message = T.errorDetails;
1325
1362
  }
1326
1363
  l.value = !1;
1327
1364
  }
1328
- }, h = z(() => ({
1365
+ }, $ = z(() => ({
1329
1366
  root: [
1330
1367
  "modal modal-dialog modal-content h-auto m-0",
1331
1368
  {
@@ -1336,15 +1373,15 @@ const Fa = { key: 0 }, Ba = {
1336
1373
  }
1337
1374
  ]
1338
1375
  }));
1339
- return (n, C) => {
1340
- const S = A, M = ze;
1341
- return s(), g(M, F(i, {
1342
- onMaximize: p,
1343
- onUnmaximize: r,
1344
- pt: h.value
1345
- }), ie({
1376
+ return (p, T) => {
1377
+ const _ = A, M = je;
1378
+ return n(), g(M, F(i, {
1379
+ onMaximize: r,
1380
+ onUnmaximize: s,
1381
+ pt: $.value
1382
+ }), te({
1346
1383
  closeicon: b(() => [
1347
- x(c(T), {
1384
+ x(c(C), {
1348
1385
  "data-cy": "close-icon",
1349
1386
  icon: "bi:x-lg",
1350
1387
  width: "18",
@@ -1353,7 +1390,7 @@ const Fa = { key: 0 }, Ba = {
1353
1390
  })
1354
1391
  ]),
1355
1392
  maximizeicon: b(() => [
1356
- x(c(T), {
1393
+ x(c(C), {
1357
1394
  "data-cy": "maximisable-icon",
1358
1395
  icon: t.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1359
1396
  width: "16",
@@ -1362,46 +1399,46 @@ const Fa = { key: 0 }, Ba = {
1362
1399
  ]),
1363
1400
  _: 2
1364
1401
  }, [
1365
- U(n.$slots, (E, V) => ({
1402
+ U(p.$slots, (E, V) => ({
1366
1403
  name: V,
1367
1404
  fn: b((f) => [
1368
- o.value.hasError ? (s(), g(ne, {
1405
+ o.value.hasError ? (n(), g(ne, {
1369
1406
  key: 0,
1370
1407
  severity: "danger",
1371
1408
  "data-cy": "error"
1372
1409
  }, {
1373
1410
  default: b(() => [
1374
1411
  m("p", {
1375
- class: $(o.value.message.length > 0 ? "my-auto" : "mb-0")
1376
- }, w(o.value.header), 3),
1377
- o.value.message.length > 0 ? (s(), v("ul", Fa, [
1378
- (s(!0), v(O, null, U(o.value.message, (y) => (s(), v("li", { key: y }, w(y), 1))), 128))
1412
+ class: k(o.value.message.length > 0 ? "my-auto" : "mb-0")
1413
+ }, h(o.value.header), 3),
1414
+ o.value.message.length > 0 ? (n(), u("ul", Ba, [
1415
+ (n(!0), u(O, null, U(o.value.message, (y) => (n(), u("li", { key: y }, h(y), 1))), 128))
1379
1416
  ])) : j("", !0)
1380
1417
  ]),
1381
1418
  _: 1
1382
1419
  })) : j("", !0),
1383
- k(n.$slots, V, X(Q(f || {}))),
1384
- l.value ? k(n.$slots, "loader", { key: 1 }, () => [
1420
+ w(p.$slots, V, X(Q(f || {}))),
1421
+ l.value ? w(p.$slots, "loader", { key: 1 }, () => [
1385
1422
  x(fe, { "data-cy": "loader" })
1386
1423
  ]) : j("", !0)
1387
1424
  ])
1388
1425
  })),
1389
- n.showFooter ? {
1426
+ p.showFooter ? {
1390
1427
  name: "footer",
1391
1428
  fn: b(() => [
1392
- m("div", Ba, [
1393
- x(S, {
1394
- label: n.cancelText,
1395
- class: $(i.cancelClass),
1429
+ m("div", za, [
1430
+ x(_, {
1431
+ label: p.cancelText,
1432
+ class: k(i.cancelClass),
1396
1433
  outlined: "",
1397
1434
  onClick: d,
1398
1435
  id: "cancel-button",
1399
1436
  type: i.cancelButtonType
1400
1437
  }, null, 8, ["label", "class", "type"]),
1401
- x(S, {
1402
- label: n.submitText,
1403
- class: $([i.submitClass, "ms-auto"]),
1404
- onClick: u,
1438
+ x(_, {
1439
+ label: p.submitText,
1440
+ class: k([i.submitClass, "ms-auto"]),
1441
+ onClick: v,
1405
1442
  id: "submit-button",
1406
1443
  type: i.submitButtonType
1407
1444
  }, null, 8, ["label", "class", "type"])
@@ -1412,7 +1449,7 @@ const Fa = { key: 0 }, Ba = {
1412
1449
  ]), 1040, ["pt"]);
1413
1450
  };
1414
1451
  }
1415
- }), za = ["id"], ja = { key: 0 }, Ca = { key: 0 }, Ta = { class: "d-flex justify-content-between align-items-center position-relative" }, _a = { key: 1 }, Sa = { "data-cy": "readonly-value" }, Va = /* @__PURE__ */ B({
1452
+ }), ja = ["id"], Ca = { key: 0 }, Ta = { key: 0 }, Sa = { class: "d-flex justify-content-between align-items-center position-relative" }, _a = { key: 1 }, Va = { "data-cy": "readonly-value" }, Pa = /* @__PURE__ */ B({
1416
1453
  __name: "ForgeInlineEditor",
1417
1454
  props: /* @__PURE__ */ q({
1418
1455
  name: { default: "" },
@@ -1427,13 +1464,13 @@ const Fa = { key: 0 }, Ba = {
1427
1464
  }),
1428
1465
  emits: ["update:modelValue"],
1429
1466
  setup(e) {
1430
- const a = e, t = I(e, "modelValue"), i = _(!1), l = _(), o = () => {
1431
- var S;
1432
- i.value = !i.value, (S = l.value) == null || S.focus();
1433
- }, r = async () => {
1434
- if (C.value)
1467
+ const a = e, t = I(e, "modelValue"), i = S(!1), l = S(), o = () => {
1468
+ var _;
1469
+ i.value = !i.value, (_ = l.value) == null || _.focus();
1470
+ }, s = async () => {
1471
+ if (T.value)
1435
1472
  return !1;
1436
- if (t.value = n.value, a.completeAction)
1473
+ if (t.value = p.value, a.completeAction)
1437
1474
  try {
1438
1475
  await a.completeAction.apply(this, a.params), i.value = !i.value;
1439
1476
  } catch {
@@ -1441,50 +1478,50 @@ const Fa = { key: 0 }, Ba = {
1441
1478
  }
1442
1479
  else
1443
1480
  i.value = !i.value;
1444
- }, p = () => {
1481
+ }, r = () => {
1445
1482
  i.value = !i.value;
1446
1483
  }, d = () => {
1447
- n.value = null;
1448
- }, { errorMessage: u, errors: h, value: n } = ae(() => a.name, void 0, {
1484
+ p.value = null;
1485
+ }, { errorMessage: v, errors: $, value: p } = ee(() => a.name, void 0, {
1449
1486
  initialValue: t.value
1450
1487
  });
1451
- ee(() => {
1452
- n.value = t.value;
1488
+ ie(() => {
1489
+ p.value = t.value;
1453
1490
  });
1454
- const C = z(() => h.value.length > 0);
1455
- return (S, M) => {
1491
+ const T = z(() => $.value.length > 0);
1492
+ return (_, M) => {
1456
1493
  const E = le, V = A;
1457
- return s(), v("div", {
1494
+ return n(), u("div", {
1458
1495
  id: a.name
1459
1496
  }, [
1460
- S.readonly ? (s(), v("div", _a, [
1461
- k(S.$slots, "default", {}, () => [
1462
- m("span", Sa, w(c(n)), 1)
1497
+ _.readonly ? (n(), u("div", _a, [
1498
+ w(_.$slots, "default", {}, () => [
1499
+ m("span", Va, h(c(p)), 1)
1463
1500
  ])
1464
- ])) : (s(), v("div", ja, [
1465
- i.value ? (s(), v("div", Ca, [
1466
- R((s(), v("div", Ta, [
1467
- k(S.$slots, "editor", {
1468
- class: $({ "is-invalid": C.value }),
1469
- editFinished: r,
1470
- cancel: p,
1471
- val: c(n)
1501
+ ])) : (n(), u("div", Ca, [
1502
+ i.value ? (n(), u("div", Ta, [
1503
+ R((n(), u("div", Sa, [
1504
+ w(_.$slots, "editor", {
1505
+ class: k({ "is-invalid": T.value }),
1506
+ editFinished: s,
1507
+ cancel: r,
1508
+ val: c(p)
1472
1509
  }, () => [
1473
1510
  x(E, {
1474
1511
  "data-cy": "input",
1475
1512
  ref_key: "input",
1476
1513
  ref: l,
1477
- modelValue: c(n),
1478
- "onUpdate:modelValue": M[0] || (M[0] = (f) => we(n) ? n.value = f : null),
1514
+ modelValue: c(p),
1515
+ "onUpdate:modelValue": M[0] || (M[0] = (f) => we(p) ? p.value = f : null),
1479
1516
  modelModifiers: { trim: !0 },
1480
- class: $({ "is-invalid": C.value }),
1517
+ class: k({ "is-invalid": T.value }),
1481
1518
  onKeydown: [
1482
- Z(r, ["enter"]),
1483
- Z(p, ["esc"])
1519
+ Z(s, ["enter"]),
1520
+ Z(r, ["esc"])
1484
1521
  ]
1485
1522
  }, null, 8, ["modelValue", "class"])
1486
1523
  ]),
1487
- x(c(T), {
1524
+ x(c(C), {
1488
1525
  icon: "bi:x-circle",
1489
1526
  class: "mx-2 cursor-pointer",
1490
1527
  onClick: d,
@@ -1492,28 +1529,28 @@ const Fa = { key: 0 }, Ba = {
1492
1529
  "data-cy": "clear-icon"
1493
1530
  })
1494
1531
  ])), [
1495
- [c(je), r]
1532
+ [c(Ce), s]
1496
1533
  ])
1497
- ])) : (s(), v("div", {
1534
+ ])) : (n(), u("div", {
1498
1535
  key: 1,
1499
1536
  class: "d-flex text-muted",
1500
1537
  onClick: o,
1501
1538
  onFocus: o
1502
1539
  }, [
1503
- k(S.$slots, "default", {}, () => [
1540
+ w(_.$slots, "default", {}, () => [
1504
1541
  m("div", {
1505
- class: $(["pe-2 cursor-pointer", { "text-invalid": C.value }]),
1542
+ class: k(["pe-2 cursor-pointer", { "text-invalid": T.value }]),
1506
1543
  "data-cy": "value"
1507
- }, w(c(n) ? c(n) : "Click to edit"), 3)
1544
+ }, h(c(p) ? c(p) : "Click to edit"), 3)
1508
1545
  ]),
1509
1546
  x(V, {
1510
1547
  link: "",
1511
1548
  class: "p-0 m-0"
1512
1549
  }, {
1513
1550
  default: b(() => [
1514
- x(c(T), {
1551
+ x(c(C), {
1515
1552
  icon: "bi:pencil",
1516
- class: $(C.value ? "text-invalid" : "text-muted"),
1553
+ class: k(T.value ? "text-invalid" : "text-muted"),
1517
1554
  "data-cy": "edit-icon",
1518
1555
  onKeydown: Z(o, ["enter"])
1519
1556
  }, null, 8, ["class"])
@@ -1525,13 +1562,13 @@ const Fa = { key: 0 }, Ba = {
1525
1562
  R(m("small", {
1526
1563
  "data-cy": "error",
1527
1564
  class: "text-invalid"
1528
- }, w(c(u)), 513), [
1529
- [W, C.value]
1565
+ }, h(c(v)), 513), [
1566
+ [W, T.value]
1530
1567
  ])
1531
- ], 8, za);
1568
+ ], 8, ja);
1532
1569
  };
1533
1570
  }
1534
- }), Pa = ["href"], Ti = /* @__PURE__ */ B({
1571
+ }), Ma = ["href"], Ci = /* @__PURE__ */ B({
1535
1572
  __name: "ForgeNavbar",
1536
1573
  props: {
1537
1574
  severity: { default: "light" },
@@ -1575,26 +1612,26 @@ const Fa = { key: 0 }, Ba = {
1575
1612
  ]
1576
1613
  })
1577
1614
  }));
1578
- return (i, l) => (s(), g(c(Ce), F({ ...a, ...i.$attrs }, {
1615
+ return (i, l) => (n(), g(c(Te), F({ ...a, ...i.$attrs }, {
1579
1616
  pt: t.value,
1580
1617
  "data-cy": "navbar"
1581
- }), ie({
1618
+ }), te({
1582
1619
  start: b(() => [
1583
1620
  m("a", {
1584
1621
  href: i.logoUrl,
1585
1622
  class: "navbar-brand ms-3",
1586
1623
  "data-cy": "logo"
1587
1624
  }, [
1588
- k(i.$slots, "logo", {}, () => [
1625
+ w(i.$slots, "logo", {}, () => [
1589
1626
  l[0] || (l[0] = P(" Logo "))
1590
1627
  ])
1591
- ], 8, Pa)
1628
+ ], 8, Ma)
1592
1629
  ]),
1593
1630
  buttonicon: b(() => [
1594
- k(i.$slots, "buttonIcon", {}, () => [
1595
- x(c(T), {
1631
+ w(i.$slots, "buttonIcon", {}, () => [
1632
+ x(c(C), {
1596
1633
  icon: "bi:list",
1597
- class: $(a.severity === "light" ? "text-black" : "text-white"),
1634
+ class: k(a.severity === "light" ? "text-black" : "text-white"),
1598
1635
  height: "24",
1599
1636
  "data-cy": "burger-icon"
1600
1637
  }, null, 8, ["class"])
@@ -1602,22 +1639,22 @@ const Fa = { key: 0 }, Ba = {
1602
1639
  ]),
1603
1640
  _: 2
1604
1641
  }, [
1605
- U(i.$slots, (o, r) => ({
1606
- name: r,
1607
- fn: b((p) => [
1608
- k(i.$slots, r, X(Q(p)))
1642
+ U(i.$slots, (o, s) => ({
1643
+ name: s,
1644
+ fn: b((r) => [
1645
+ w(i.$slots, s, X(Q(r)))
1609
1646
  ])
1610
1647
  }))
1611
1648
  ]), 1040, ["pt"]));
1612
1649
  }
1613
- }), Ma = { class: "border alternating-item-list" }, Ia = {
1650
+ }), Ia = { class: "border alternating-item-list" }, Oa = {
1614
1651
  key: 0,
1615
1652
  class: "p-2 border-top border-bottom",
1616
1653
  "data-cy": "title"
1617
- }, Oa = { class: "d-inline-block" }, Da = {
1654
+ }, Da = { class: "d-inline-block" }, Ua = {
1618
1655
  key: 1,
1619
1656
  class: "p-2 item d-flex justify-content-between align-items-center"
1620
- }, Ua = /* @__PURE__ */ B({
1657
+ }, qa = /* @__PURE__ */ B({
1621
1658
  __name: "ForgeMultiSelectPreview",
1622
1659
  props: /* @__PURE__ */ q({
1623
1660
  title: { default: "Selected Items" },
@@ -1637,16 +1674,16 @@ const Fa = { key: 0 }, Ba = {
1637
1674
  t.value = t.value.filter((o) => o.id !== l);
1638
1675
  };
1639
1676
  return (l, o) => {
1640
- const r = oe, p = A;
1641
- return s(), v("div", {
1642
- class: $(l.orientation === "column" ? "row" : ""),
1677
+ const s = oe, r = A;
1678
+ return n(), u("div", {
1679
+ class: k(l.orientation === "column" ? "row" : ""),
1643
1680
  "data-cy": "multiselect-preview"
1644
1681
  }, [
1645
1682
  m("div", {
1646
- class: $(l.orientation === "row" ? "col-12 mb-1" : "col"),
1683
+ class: k(l.orientation === "row" ? "col-12 mb-1" : "col"),
1647
1684
  "data-cy": "multiselect-container"
1648
1685
  }, [
1649
- x(r, F({
1686
+ x(s, F({
1650
1687
  modelValue: t.value,
1651
1688
  "onUpdate:modelValue": o[0] || (o[0] = (d) => t.value = d)
1652
1689
  }, { ...l.$attrs }, {
@@ -1656,37 +1693,37 @@ const Fa = { key: 0 }, Ba = {
1656
1693
  "data-cy": "multiselect"
1657
1694
  }), {
1658
1695
  default: b(() => [
1659
- (s(!0), v(O, null, U(l.$slots, (d, u) => k(l.$slots, u, { slot: u })), 256))
1696
+ (n(!0), u(O, null, U(l.$slots, (d, v) => w(l.$slots, v, { slot: v })), 256))
1660
1697
  ]),
1661
1698
  _: 3
1662
1699
  }, 16, ["modelValue", "options", "placeholder"]),
1663
- k(l.$slots, "after-multi-select")
1700
+ w(l.$slots, "after-multi-select")
1664
1701
  ], 2),
1665
1702
  m("div", {
1666
- class: $(l.orientation === "row" ? "col-12" : "col"),
1703
+ class: k(l.orientation === "row" ? "col-12" : "col"),
1667
1704
  "data-cy": "options-preview"
1668
1705
  }, [
1669
1706
  m("div", {
1670
1707
  style: ke({ height: l.height }),
1671
1708
  class: "overflow-auto"
1672
1709
  }, [
1673
- m("div", Ma, [
1674
- l.title ? (s(), v("div", Ia, w(l.title), 1)) : j("", !0),
1675
- (s(!0), v(O, null, U(t.value, (d) => (s(), v("div", {
1710
+ m("div", Ia, [
1711
+ l.title ? (n(), u("div", Oa, h(l.title), 1)) : j("", !0),
1712
+ (n(!0), u(O, null, U(t.value, (d) => (n(), u("div", {
1676
1713
  key: d.id,
1677
1714
  class: "p-2 item d-flex justify-content-between align-items-center"
1678
1715
  }, [
1679
- k(l.$slots, "list-item", { item: d }, () => [
1680
- m("span", Oa, w(d.shortLabel ? d.shortLabel : d.label), 1)
1716
+ w(l.$slots, "list-item", { item: d }, () => [
1717
+ m("span", Da, h(d.shortLabel ? d.shortLabel : d.label), 1)
1681
1718
  ]),
1682
- l.canRemoveItemFromPreview ? (s(), g(p, {
1719
+ l.canRemoveItemFromPreview ? (n(), g(r, {
1683
1720
  key: 0,
1684
1721
  link: "",
1685
1722
  class: "m-0 p-0 d-flex align-items-center",
1686
- onClick: (u) => i(d.id)
1723
+ onClick: (v) => i(d.id)
1687
1724
  }, {
1688
1725
  default: b(() => [
1689
- x(c(T), {
1726
+ x(c(C), {
1690
1727
  icon: "bi:x",
1691
1728
  class: "close-icon",
1692
1729
  "data-cy": `close-icon-${d.id}`
@@ -1695,34 +1732,34 @@ const Fa = { key: 0 }, Ba = {
1695
1732
  _: 2
1696
1733
  }, 1032, ["onClick"])) : j("", !0)
1697
1734
  ]))), 128)),
1698
- t.value == null || t.value.length == 0 ? (s(), v("div", Da, w(a.optionsPreviewEmptyText), 1)) : j("", !0)
1735
+ t.value == null || t.value.length == 0 ? (n(), u("div", Ua, h(a.optionsPreviewEmptyText), 1)) : j("", !0)
1699
1736
  ])
1700
1737
  ], 4)
1701
1738
  ], 2)
1702
1739
  ], 2);
1703
1740
  };
1704
1741
  }
1705
- }), qa = { class: "d-flex justify-content-between pb-2" }, Aa = {
1742
+ }), Aa = { class: "d-flex justify-content-between pb-2" }, La = {
1706
1743
  "data-cy": "title",
1707
1744
  class: "my-auto"
1708
- }, La = {
1745
+ }, Ea = {
1709
1746
  "data-cy": "slot",
1710
1747
  class: "d-flex align-items-center"
1711
- }, _i = /* @__PURE__ */ B({
1748
+ }, Ti = /* @__PURE__ */ B({
1712
1749
  __name: "ForgePageHeader",
1713
1750
  props: {
1714
1751
  title: {}
1715
1752
  },
1716
1753
  setup(e) {
1717
1754
  const a = e;
1718
- return (t, i) => (s(), v("div", qa, [
1719
- m("h3", Aa, w(a.title), 1),
1720
- m("div", La, [
1721
- k(t.$slots, "default")
1755
+ return (t, i) => (n(), u("div", Aa, [
1756
+ m("h3", La, h(a.title), 1),
1757
+ m("div", Ea, [
1758
+ w(t.$slots, "default")
1722
1759
  ])
1723
1760
  ]));
1724
1761
  }
1725
- }), Ea = { class: "d-flex" }, Na = { "data-cy": "before-slot" }, Ra = { class: "position-relative w-100" }, Ha = { "data-cy": "after-slot" }, be = /* @__PURE__ */ B({
1762
+ }), Na = { class: "d-flex" }, Ra = { "data-cy": "before-slot" }, Ha = { class: "position-relative w-100" }, Wa = { "data-cy": "after-slot" }, be = /* @__PURE__ */ B({
1726
1763
  __name: "ForgeDatepicker",
1727
1764
  props: /* @__PURE__ */ q({
1728
1765
  severity: { default: "primary" },
@@ -1798,37 +1835,37 @@ const Fa = { key: 0 }, Ba = {
1798
1835
  }),
1799
1836
  emits: ["update:modelValue"],
1800
1837
  setup(e) {
1801
- const a = e, t = I(e, "modelValue"), { errors: i, errorMessage: l, handleChange: o, handleBlur: r, setValue: p } = ae(() => a.name, void 0, {
1838
+ const a = e, t = I(e, "modelValue"), { errors: i, errorMessage: l, handleChange: o, handleBlur: s, setValue: r } = ee(() => a.name, void 0, {
1802
1839
  initialValue: t.value
1803
1840
  }), d = () => {
1804
- p(null), t.value = null;
1805
- }, u = z(() => i.value.length > 0), h = z(() => ({
1806
- dayCell: ({ context: n }) => ({
1841
+ r(null), t.value = null;
1842
+ }, v = z(() => i.value.length > 0), $ = z(() => ({
1843
+ dayCell: ({ context: p }) => ({
1807
1844
  class: [
1808
1845
  `text-center date-${a.severity === void 0 ? "primary" : a.severity}`,
1809
1846
  {
1810
- "cursor-pointer": !n.disabled,
1811
- "pe-none": n.disabled,
1812
- "text-white": n.selected
1847
+ "cursor-pointer": !p.disabled,
1848
+ "pe-none": p.disabled,
1849
+ "text-white": p.selected
1813
1850
  },
1814
1851
  // Severities
1815
1852
  {
1816
- selected: n.selected && !n.disabled,
1817
- "text-primary": !n.selected && n.today && (a.severity === void 0 || a.severity === "primary"),
1818
- "text-brand": !n.selected && n.today && a.severity === "brand",
1819
- "text-secondary": !n.selected && n.today && a.severity === "secondary",
1820
- "text-success": !n.selected && n.today && a.severity === "success",
1821
- "text-warning": !n.selected && n.today && a.severity === "warning",
1822
- "text-danger": !n.selected && n.today && a.severity === "danger",
1823
- "text-info": !n.selected && n.today && a.severity === "info"
1853
+ selected: p.selected && !p.disabled,
1854
+ "text-primary": !p.selected && p.today && (a.severity === void 0 || a.severity === "primary"),
1855
+ "text-brand": !p.selected && p.today && a.severity === "brand",
1856
+ "text-secondary": !p.selected && p.today && a.severity === "secondary",
1857
+ "text-success": !p.selected && p.today && a.severity === "success",
1858
+ "text-warning": !p.selected && p.today && a.severity === "warning",
1859
+ "text-danger": !p.selected && p.today && a.severity === "danger",
1860
+ "text-info": !p.selected && p.today && a.severity === "info"
1824
1861
  }
1825
1862
  ]
1826
1863
  }),
1827
- dayLabel: ({ context: n }) => ({
1864
+ dayLabel: ({ context: p }) => ({
1828
1865
  class: [
1829
1866
  // Disabled States
1830
1867
  {
1831
- "text-muted": n.disabled
1868
+ "text-muted": p.disabled
1832
1869
  }
1833
1870
  ]
1834
1871
  }),
@@ -1864,78 +1901,78 @@ const Fa = { key: 0 }, Ba = {
1864
1901
  ]
1865
1902
  })
1866
1903
  },
1867
- year: ({ context: n }) => ({
1904
+ year: ({ context: p }) => ({
1868
1905
  class: [
1869
1906
  "col-3 text-center cursor-pointer py-2",
1870
1907
  {
1871
- "text-primary": (a.severity === void 0 || a.severity === "primary") && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1872
- "text-brand": a.severity === "brand" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1873
- "text-secondary": a.severity === "secondary" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1874
- "text-success": a.severity === "success" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1875
- "text-warning": a.severity === "warning" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1876
- "text-danger": a.severity === "danger" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1877
- "text-info": a.severity === "info" && n.year.value === (/* @__PURE__ */ new Date()).getFullYear()
1908
+ "text-primary": (a.severity === void 0 || a.severity === "primary") && p.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1909
+ "text-brand": a.severity === "brand" && p.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1910
+ "text-secondary": a.severity === "secondary" && p.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1911
+ "text-success": a.severity === "success" && p.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1912
+ "text-warning": a.severity === "warning" && p.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1913
+ "text-danger": a.severity === "danger" && p.year.value === (/* @__PURE__ */ new Date()).getFullYear(),
1914
+ "text-info": a.severity === "info" && p.year.value === (/* @__PURE__ */ new Date()).getFullYear()
1878
1915
  }
1879
1916
  ]
1880
1917
  }),
1881
- month: ({ context: n }) => ({
1918
+ month: ({ context: p }) => ({
1882
1919
  class: [
1883
1920
  "col-3 text-center cursor-pointer py-2",
1884
1921
  {
1885
- "text-primary": (a.severity === void 0 || a.severity === "primary") && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1886
- "text-brand": a.severity === "brand" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1887
- "text-secondary": a.severity === "secondary" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1888
- "text-success": a.severity === "success" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1889
- "text-warning": a.severity === "warning" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1890
- "text-danger": a.severity === "danger" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1891
- "text-info": a.severity === "info" && n.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
1922
+ "text-primary": (a.severity === void 0 || a.severity === "primary") && p.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1923
+ "text-brand": a.severity === "brand" && p.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1924
+ "text-secondary": a.severity === "secondary" && p.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1925
+ "text-success": a.severity === "success" && p.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1926
+ "text-warning": a.severity === "warning" && p.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1927
+ "text-danger": a.severity === "danger" && p.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1,
1928
+ "text-info": a.severity === "info" && p.monthIndex + 1 === (/* @__PURE__ */ new Date()).getMonth() + 1
1892
1929
  }
1893
1930
  ]
1894
1931
  })
1895
1932
  }));
1896
- return (n, C) => {
1897
- const S = Te;
1898
- return s(), v(O, null, [
1899
- m("div", Ea, [
1900
- m("span", Na, [
1901
- k(n.$slots, "before")
1933
+ return (p, T) => {
1934
+ const _ = Se;
1935
+ return n(), u(O, null, [
1936
+ m("div", Na, [
1937
+ m("span", Ra, [
1938
+ w(p.$slots, "before")
1902
1939
  ]),
1903
- m("div", Ra, [
1904
- x(S, F({ ...a, ...n.$attrs }, {
1905
- pt: h.value,
1940
+ m("div", Ha, [
1941
+ x(_, F({ ...a, ...p.$attrs }, {
1942
+ pt: $.value,
1906
1943
  modelValue: t.value,
1907
1944
  "onUpdate:modelValue": [
1908
- C[0] || (C[0] = (M) => t.value = M),
1945
+ T[0] || (T[0] = (M) => t.value = M),
1909
1946
  c(o)
1910
1947
  ],
1911
- onBlur: C[1] || (C[1] = () => c(r)),
1912
- "input-class": { "datepicker-invalid": u.value }
1948
+ onBlur: T[1] || (T[1] = () => c(s)),
1949
+ "input-class": { "datepicker-invalid": v.value }
1913
1950
  }), null, 16, ["pt", "modelValue", "onUpdate:modelValue", "input-class"]),
1914
- R(x(c(T), {
1951
+ R(x(c(C), {
1915
1952
  "data-cy": "icon",
1916
1953
  icon: "bi:calendar4",
1917
- class: $(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${u.value ? "text-danger-dark" : "text-muted"}`])
1954
+ class: k(["position-absolute end-0 top-50 bottom-50 my-auto me-2 bg-white", `${v.value ? "text-danger-dark" : "text-muted"}`])
1918
1955
  }, null, 8, ["class"]), [
1919
1956
  [W, a.showIcon]
1920
1957
  ]),
1921
- R(x(c(T), {
1958
+ R(x(c(C), {
1922
1959
  "data-cy": "icon",
1923
1960
  icon: "bi:x",
1924
1961
  onClick: d,
1925
- class: $(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", a.showIcon ? "datepicker-close-icon" : "me-2"])
1962
+ class: k(["position-absolute end-0 top-50 bottom-50 my-auto text-muted cursor-pointer bg-white", a.showIcon ? "datepicker-close-icon" : "me-2"])
1926
1963
  }, null, 8, ["class"]), [
1927
1964
  [W, a.modelValue]
1928
1965
  ])
1929
1966
  ]),
1930
- m("span", Ha, [
1931
- k(n.$slots, "after")
1967
+ m("span", Wa, [
1968
+ w(p.$slots, "after")
1932
1969
  ])
1933
1970
  ]),
1934
1971
  R(m("small", {
1935
1972
  "data-cy": "error",
1936
1973
  class: "text-invalid"
1937
- }, w(c(l)), 513), [
1938
- [W, u.value]
1974
+ }, h(c(l)), 513), [
1975
+ [W, v.value]
1939
1976
  ])
1940
1977
  ], 64);
1941
1978
  };
@@ -1948,11 +1985,11 @@ const Fa = { key: 0 }, Ba = {
1948
1985
  },
1949
1986
  setup(e) {
1950
1987
  const a = e, t = z(() => a.maxCount - a.currentCount);
1951
- return (i, l) => (s(), v("div", {
1952
- class: $(t.value < 0 ? "text-danger" : "")
1953
- }, "Remaining characters: " + w(t.value), 3));
1988
+ return (i, l) => (n(), u("div", {
1989
+ class: k(t.value < 0 ? "text-danger" : "")
1990
+ }, "Remaining characters: " + h(t.value), 3));
1954
1991
  }
1955
- }), Wa = { class: "d-flex justify-content-between" }, Vi = /* @__PURE__ */ B({
1992
+ }), Ga = { class: "d-flex justify-content-between" }, _i = /* @__PURE__ */ B({
1956
1993
  __name: "ForgeForm",
1957
1994
  props: {
1958
1995
  onSubmit: {},
@@ -1964,7 +2001,7 @@ const Fa = { key: 0 }, Ba = {
1964
2001
  hideCancel: { type: Boolean, default: !1 }
1965
2002
  },
1966
2003
  setup(e) {
1967
- const a = e, t = _(!1), i = _({
2004
+ const a = e, t = S(!1), i = S({
1968
2005
  hasError: !1,
1969
2006
  message: ""
1970
2007
  });
@@ -1977,78 +2014,78 @@ const Fa = { key: 0 }, Ba = {
1977
2014
  }
1978
2015
  t.value = !1;
1979
2016
  }
1980
- return (o, r) => {
1981
- const p = A;
1982
- return s(), v("form", F(o.$attrs, {
2017
+ return (o, s) => {
2018
+ const r = A;
2019
+ return n(), u("form", F(o.$attrs, {
1983
2020
  novalidate: "",
1984
2021
  class: "position-relative shadow-sm border p-4 bg-white",
1985
2022
  onSubmit: G(l, ["prevent"])
1986
2023
  }), [
1987
- o.hideTitle ? j("", !0) : (s(), v(O, { key: 0 }, [
1988
- k(o.$slots, "title", {}, () => [
2024
+ o.hideTitle ? j("", !0) : (n(), u(O, { key: 0 }, [
2025
+ w(o.$slots, "title", {}, () => [
1989
2026
  m("h3", {
1990
- class: $(o.titleClass),
2027
+ class: k(o.titleClass),
1991
2028
  "data-cy": "form-title"
1992
- }, w(o.title), 3)
2029
+ }, h(o.title), 3)
1993
2030
  ]),
1994
- r[1] || (r[1] = m("hr", null, null, -1))
2031
+ s[1] || (s[1] = m("hr", null, null, -1))
1995
2032
  ], 64)),
1996
- i.value.hasError ? (s(), g(ne, {
2033
+ i.value.hasError ? (n(), g(ne, {
1997
2034
  key: 1,
1998
2035
  severity: "danger",
1999
2036
  "data-cy": "error"
2000
2037
  }, {
2001
2038
  default: b(() => [
2002
- k(o.$slots, "error", {
2039
+ w(o.$slots, "error", {
2003
2040
  error: i.value.message
2004
2041
  }, () => [
2005
- P(w(i.value.message), 1)
2042
+ P(h(i.value.message), 1)
2006
2043
  ])
2007
2044
  ]),
2008
2045
  _: 3
2009
2046
  })) : j("", !0),
2010
- k(o.$slots, "default"),
2011
- m("div", Wa, [
2012
- k(o.$slots, "cancel", {}, () => [
2013
- o.hideCancel ? j("", !0) : (s(), g(p, {
2047
+ w(o.$slots, "default"),
2048
+ m("div", Ga, [
2049
+ w(o.$slots, "cancel", {}, () => [
2050
+ o.hideCancel ? j("", !0) : (n(), g(r, {
2014
2051
  key: 0,
2015
2052
  "data-cy": "cancel-btn",
2016
2053
  type: "reset",
2017
2054
  severity: "secondary",
2018
2055
  outlined: "",
2019
- onClick: r[0] || (r[0] = (d) => o.$emit("cancel"))
2056
+ onClick: s[0] || (s[0] = (d) => o.$emit("cancel"))
2020
2057
  }, {
2021
2058
  default: b(() => [
2022
- P(w(o.cancelText), 1)
2059
+ P(h(o.cancelText), 1)
2023
2060
  ]),
2024
2061
  _: 1
2025
2062
  }))
2026
2063
  ]),
2027
- k(o.$slots, "submit", { submit: l }, () => [
2028
- x(p, {
2064
+ w(o.$slots, "submit", { submit: l }, () => [
2065
+ x(r, {
2029
2066
  "data-cy": "submit-btn",
2030
2067
  type: "submit",
2031
2068
  severity: "primary",
2032
2069
  class: "ms-auto"
2033
2070
  }, {
2034
2071
  default: b(() => [
2035
- P(w(o.submitText), 1)
2072
+ P(h(o.submitText), 1)
2036
2073
  ]),
2037
2074
  _: 1
2038
2075
  })
2039
2076
  ])
2040
2077
  ]),
2041
- t.value ? (s(), g(fe, {
2078
+ t.value ? (n(), g(fe, {
2042
2079
  key: 2,
2043
2080
  "data-cy": "loading-spinner"
2044
2081
  })) : j("", !0)
2045
2082
  ], 16);
2046
2083
  };
2047
2084
  }
2048
- }), Ga = {
2085
+ }), Ya = {
2049
2086
  key: 1,
2050
2087
  class: "d-flex flex-column w-100"
2051
- }, Ya = ["for"], Pi = /* @__PURE__ */ B({
2088
+ }, Ka = ["for"], Vi = /* @__PURE__ */ B({
2052
2089
  __name: "ForgeFormField",
2053
2090
  props: /* @__PURE__ */ q({
2054
2091
  name: {},
@@ -2064,101 +2101,101 @@ const Fa = { key: 0 }, Ba = {
2064
2101
  }),
2065
2102
  emits: ["update:modelValue"],
2066
2103
  setup(e) {
2067
- const a = I(e, "modelValue"), t = e, i = (h) => {
2068
- t.type == "number" ? p(h.value) : p(h);
2069
- }, { errors: l, value: o, errorMessage: r, handleChange: p, handleBlur: d } = ae(() => t.name, void 0, {
2104
+ const a = I(e, "modelValue"), t = e, i = ($) => {
2105
+ t.type == "number" ? r($.value) : r($);
2106
+ }, { errors: l, value: o, errorMessage: s, handleChange: r, handleBlur: d } = ee(() => t.name, void 0, {
2070
2107
  initialValue: a.value
2071
- }), u = z(() => l.value.length > 0);
2072
- return de(() => o.value, (h) => {
2073
- a.value = h;
2074
- }, { immediate: !0 }), (h, n) => {
2075
- const C = Se, S = _e, M = le, E = te, V = oe, f = be;
2076
- return t.type === "checkbox" ? (s(), g(ha, F({
2108
+ }), v = z(() => l.value.length > 0);
2109
+ return de(() => o.value, ($) => {
2110
+ a.value = $;
2111
+ }, { immediate: !0 }), ($, p) => {
2112
+ const T = Ve, _ = _e, M = le, E = ae, V = oe, f = be;
2113
+ return t.type === "checkbox" ? (n(), g(ve, F({
2077
2114
  key: 0,
2078
2115
  id: t.name,
2079
2116
  label: t.fieldLabel
2080
- }, h.$attrs, {
2117
+ }, $.$attrs, {
2081
2118
  name: t.name,
2082
2119
  modelValue: a.value,
2083
- "onUpdate:modelValue": n[0] || (n[0] = (y) => a.value = y)
2084
- }), null, 16, ["id", "label", "name", "modelValue"])) : (s(), v("div", Ga, [
2120
+ "onUpdate:modelValue": p[0] || (p[0] = (y) => a.value = y)
2121
+ }), null, 16, ["id", "label", "name", "modelValue"])) : (n(), u("div", Ya, [
2085
2122
  m("div", {
2086
2123
  "data-cy": "input-wrapper",
2087
- class: $(["d-flex", t.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
2124
+ class: k(["d-flex", t.fieldLabelPosition === "top" ? "flex-column" : "flex-row"])
2088
2125
  }, [
2089
2126
  m("label", {
2090
2127
  for: t.name,
2091
- class: $(t.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + t.labelWidthClass)
2092
- }, w(t.fieldLabel), 11, Ya),
2093
- t.type === "number" ? (s(), g(c(me), F({
2128
+ class: k(t.fieldLabelPosition === "top" ? "mb-1" : "me-2 " + t.labelWidthClass)
2129
+ }, h(t.fieldLabel), 11, Ka),
2130
+ t.type === "number" ? (n(), g(c(ce), F({
2094
2131
  key: 0,
2095
2132
  id: t.name
2096
- }, h.$attrs, {
2133
+ }, $.$attrs, {
2097
2134
  placeholder: t.placeholder,
2098
- "input-class": { "is-invalid": u.value },
2099
- class: { "is-invalid": u.value },
2135
+ "input-class": { "is-invalid": v.value },
2136
+ class: { "is-invalid": v.value },
2100
2137
  modelValue: a.value,
2101
- "onUpdate:modelValue": n[1] || (n[1] = (y) => a.value = y),
2138
+ "onUpdate:modelValue": p[1] || (p[1] = (y) => a.value = y),
2102
2139
  onInput: i
2103
- }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : t.type === "textarea" ? (s(), g(C, F({
2140
+ }), null, 16, ["id", "placeholder", "input-class", "class", "modelValue"])) : t.type === "textarea" ? (n(), g(T, F({
2104
2141
  key: 1,
2105
2142
  id: t.name
2106
- }, h.$attrs, {
2143
+ }, $.$attrs, {
2107
2144
  placeholder: t.placeholder,
2108
- class: { "is-invalid": u.value },
2145
+ class: { "is-invalid": v.value },
2109
2146
  modelValue: a.value,
2110
- "onUpdate:modelValue": n[2] || (n[2] = (y) => a.value = y),
2147
+ "onUpdate:modelValue": p[2] || (p[2] = (y) => a.value = y),
2111
2148
  onInput: i,
2112
2149
  onBlur: c(d)
2113
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : t.type === "mask" ? (s(), g(S, F({
2150
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : t.type === "mask" ? (n(), g(_, F({
2114
2151
  key: 2,
2115
2152
  id: t.name
2116
- }, h.$attrs, {
2153
+ }, $.$attrs, {
2117
2154
  placeholder: t.placeholder,
2118
2155
  mask: t.mask,
2119
- class: { "is-invalid": u.value },
2156
+ class: { "is-invalid": v.value },
2120
2157
  modelValue: a.value,
2121
- "onUpdate:modelValue": n[3] || (n[3] = (y) => a.value = y),
2158
+ "onUpdate:modelValue": p[3] || (p[3] = (y) => a.value = y),
2122
2159
  onComplete: i,
2123
2160
  onBlur: c(d)
2124
- }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : t.type === "text" ? (s(), g(M, F({
2161
+ }), null, 16, ["id", "placeholder", "mask", "class", "modelValue", "onBlur"])) : t.type === "text" ? (n(), g(M, F({
2125
2162
  key: 3,
2126
2163
  id: t.name
2127
- }, h.$attrs, {
2164
+ }, $.$attrs, {
2128
2165
  placeholder: t.placeholder,
2129
- class: { "is-invalid": u.value },
2166
+ class: { "is-invalid": v.value },
2130
2167
  modelValue: a.value,
2131
- "onUpdate:modelValue": n[4] || (n[4] = (y) => a.value = y),
2168
+ "onUpdate:modelValue": p[4] || (p[4] = (y) => a.value = y),
2132
2169
  onInput: i,
2133
2170
  onBlur: c(d)
2134
- }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : t.type === "select" ? (s(), g(E, F({ key: 4 }, { ...t, ...h.$attrs }, {
2171
+ }), null, 16, ["id", "placeholder", "class", "modelValue", "onBlur"])) : t.type === "select" ? (n(), g(E, F({ key: 4 }, { ...t, ...$.$attrs }, {
2135
2172
  modelValue: a.value,
2136
- "onUpdate:modelValue": n[5] || (n[5] = (y) => a.value = y),
2137
- class: { "is-invalid": u.value }
2138
- }), null, 16, ["modelValue", "class"])) : t.type === "multiselect" ? (s(), g(V, F({ key: 5 }, { ...t, ...h.$attrs }, {
2173
+ "onUpdate:modelValue": p[5] || (p[5] = (y) => a.value = y),
2174
+ class: { "is-invalid": v.value }
2175
+ }), null, 16, ["modelValue", "class"])) : t.type === "multiselect" ? (n(), g(V, F({ key: 5 }, { ...t, ...$.$attrs }, {
2139
2176
  modelValue: a.value,
2140
- "onUpdate:modelValue": n[6] || (n[6] = (y) => a.value = y),
2141
- class: { "is-invalid": u.value }
2142
- }), null, 16, ["modelValue", "class"])) : t.type === "multiselect-preview" ? (s(), g(Ua, F({ key: 6 }, { ...t, ...h.$attrs }, {
2177
+ "onUpdate:modelValue": p[6] || (p[6] = (y) => a.value = y),
2178
+ class: { "is-invalid": v.value }
2179
+ }), null, 16, ["modelValue", "class"])) : t.type === "multiselect-preview" ? (n(), g(qa, F({ key: 6 }, { ...t, ...$.$attrs }, {
2143
2180
  modelValue: a.value,
2144
- "onUpdate:modelValue": n[7] || (n[7] = (y) => a.value = y),
2145
- class: { "is-invalid": u.value }
2146
- }), null, 16, ["modelValue", "class"])) : t.type === "datepicker" ? (s(), g(f, F({ key: 7 }, { ...t, ...h.$attrs }, {
2181
+ "onUpdate:modelValue": p[7] || (p[7] = (y) => a.value = y),
2182
+ class: { "is-invalid": v.value }
2183
+ }), null, 16, ["modelValue", "class"])) : t.type === "datepicker" ? (n(), g(f, F({ key: 7 }, { ...t, ...$.$attrs }, {
2147
2184
  modelValue: a.value,
2148
- "onUpdate:modelValue": n[8] || (n[8] = (y) => a.value = y),
2149
- class: { "is-invalid": u.value }
2185
+ "onUpdate:modelValue": p[8] || (p[8] = (y) => a.value = y),
2186
+ class: { "is-invalid": v.value }
2150
2187
  }), null, 16, ["modelValue", "class"])) : j("", !0)
2151
2188
  ], 2),
2152
2189
  R(m("small", {
2153
2190
  "data-cy": "error",
2154
2191
  class: "invalid-feedback"
2155
- }, w(c(r)), 513), [
2156
- [W, u.value && t.type !== "multiselect" && t.type !== "datepicker"]
2192
+ }, h(c(s)), 513), [
2193
+ [W, v.value && t.type !== "multiselect" && t.type !== "datepicker"]
2157
2194
  ])
2158
2195
  ]));
2159
2196
  };
2160
2197
  }
2161
- }), Mi = /* @__PURE__ */ B({
2198
+ }), Pi = /* @__PURE__ */ B({
2162
2199
  __name: "ForgeChip",
2163
2200
  props: {
2164
2201
  chipSeverity: { default: "primary" },
@@ -2192,16 +2229,16 @@ const Fa = { key: 0 }, Ba = {
2192
2229
  ]
2193
2230
  }));
2194
2231
  return (i, l) => {
2195
- const o = Ve;
2196
- return s(), g(o, F({ ...i.$attrs, ...i.$props }, { pt: t.value }), {
2232
+ const o = Pe;
2233
+ return n(), g(o, F({ ...i.$attrs, ...i.$props }, { pt: t.value }), {
2197
2234
  default: b(() => [
2198
- (s(!0), v(O, null, U(i.$slots, (r, p) => k(i.$slots, p, { slot: p })), 256))
2235
+ (n(!0), u(O, null, U(i.$slots, (s, r) => w(i.$slots, r, { slot: r })), 256))
2199
2236
  ]),
2200
2237
  _: 3
2201
2238
  }, 16, ["pt"]);
2202
2239
  };
2203
2240
  }
2204
- }), Ka = /* @__PURE__ */ B({
2241
+ }), Za = /* @__PURE__ */ B({
2205
2242
  __name: "ForgeProgressBar",
2206
2243
  props: {
2207
2244
  severity: { default: "primary" },
@@ -2244,17 +2281,17 @@ const Fa = { key: 0 }, Ba = {
2244
2281
  class: [l.value, t.value, i.value, "progress-bar"]
2245
2282
  }
2246
2283
  }));
2247
- return (r, p) => {
2248
- const d = Pe;
2249
- return s(), g(d, F({ ...r.$attrs, ...a }, { pt: o.value }), {
2284
+ return (s, r) => {
2285
+ const d = Me;
2286
+ return n(), g(d, F({ ...s.$attrs, ...a }, { pt: o.value }), {
2250
2287
  default: b(() => [
2251
- k(r.$slots, "default")
2288
+ w(s.$slots, "default")
2252
2289
  ]),
2253
2290
  _: 3
2254
2291
  }, 16, ["pt"]);
2255
2292
  };
2256
2293
  }
2257
- }), Za = { class: "value text-white w-100 text-center" }, Ii = /* @__PURE__ */ B({
2294
+ }), Ja = { class: "value text-white w-100 text-center" }, Mi = /* @__PURE__ */ B({
2258
2295
  __name: "ForgeStatWidget",
2259
2296
  props: {
2260
2297
  size: { default: "md" },
@@ -2262,15 +2299,15 @@ const Fa = { key: 0 }, Ba = {
2262
2299
  },
2263
2300
  setup(e) {
2264
2301
  const a = e;
2265
- return (t, i) => (s(), v("div", F(t.$attrs, {
2302
+ return (t, i) => (n(), u("div", F(t.$attrs, {
2266
2303
  class: `d-flex shadow m-2 align-items-center widget--${a.size} bg-${a.severity}`
2267
2304
  }), [
2268
- m("span", Za, [
2269
- k(t.$slots, "default")
2305
+ m("span", Ja, [
2306
+ w(t.$slots, "default")
2270
2307
  ])
2271
2308
  ], 16));
2272
2309
  }
2273
- }), Ja = { key: 0 }, Oi = /* @__PURE__ */ B({
2310
+ }), Xa = { key: 0 }, Ii = /* @__PURE__ */ B({
2274
2311
  __name: "ForgeStepper",
2275
2312
  props: {
2276
2313
  currentStep: { default: 1 },
@@ -2317,32 +2354,32 @@ const Fa = { key: 0 }, Ba = {
2317
2354
  ]
2318
2355
  })
2319
2356
  }));
2320
- return (i, l) => (s(), g(c(Ie), { value: i.currentStep }, {
2357
+ return (i, l) => (n(), g(c(Oe), { value: i.currentStep }, {
2321
2358
  default: b(() => [
2322
- x(c(Oe), null, {
2359
+ x(c(De), null, {
2323
2360
  default: b(() => [
2324
- (s(!0), v(O, null, U(i.steps, (o) => (s(), g(c(Me), F({
2361
+ (n(!0), u(O, null, U(i.steps, (o) => (n(), g(c(Ie), F({
2325
2362
  key: o.value,
2326
2363
  value: o.value,
2327
2364
  disabled: o.disabled,
2328
2365
  ref_for: !0
2329
2366
  }, { ...i.$attrs }, { pt: t.value }), {
2330
2367
  default: b(() => [
2331
- i.showStepLabel ? (s(), v("div", Ja, w(o.label), 1)) : j("", !0)
2368
+ i.showStepLabel ? (n(), u("div", Xa, h(o.label), 1)) : j("", !0)
2332
2369
  ]),
2333
2370
  _: 2
2334
2371
  }, 1040, ["value", "disabled", "pt"]))), 128))
2335
2372
  ]),
2336
2373
  _: 1
2337
2374
  }),
2338
- x(c(Ue), null, {
2375
+ x(c(qe), null, {
2339
2376
  default: b(() => [
2340
- (s(!0), v(O, null, U(i.steps, (o) => (s(), g(c(De), {
2377
+ (n(!0), u(O, null, U(i.steps, (o) => (n(), g(c(Ue), {
2341
2378
  key: o.value,
2342
2379
  value: o.value
2343
2380
  }, {
2344
2381
  default: b(() => [
2345
- k(i.$slots, "step" + o.value)
2382
+ w(i.$slots, "step" + o.value)
2346
2383
  ]),
2347
2384
  _: 2
2348
2385
  }, 1032, ["value"]))), 128))
@@ -2353,7 +2390,7 @@ const Fa = { key: 0 }, Ba = {
2353
2390
  _: 3
2354
2391
  }, 8, ["value"]));
2355
2392
  }
2356
- }), Xa = { class: "p-4 text-wrap w-100" }, Qa = { class: "p-4 text-wrap w-100" }, Di = /* @__PURE__ */ B({
2393
+ }), Qa = { class: "p-4 text-wrap w-100" }, et = { class: "p-4 text-wrap w-100" }, Oi = /* @__PURE__ */ B({
2357
2394
  __name: "ForgeTile",
2358
2395
  props: {
2359
2396
  severity: { default: "primary" },
@@ -2364,29 +2401,29 @@ const Fa = { key: 0 }, Ba = {
2364
2401
  setup(e) {
2365
2402
  const a = e, t = z(() => `${a.severity === void 0 ? "tile-primary" : `tile-${a.severity}`} ${a.barPosition === "none" ? "" : `tile-bar-${a.barPosition}`} ${a.selected ? "selected" : ""}`), i = z(() => `${a.severity === void 0 ? "tile-primary border-primary" : `tile-${a.severity} border-${a.severity}`} ${a.barPosition === "none" ? "" : `tile-bar-${a.barPosition}`} ${a.selected ? "selected" : ""}`);
2366
2403
  return (l, o) => {
2367
- const r = A;
2368
- return a.clickable ? (s(), g(r, {
2404
+ const s = A;
2405
+ return a.clickable ? (n(), g(s, {
2369
2406
  key: 0,
2370
- class: $(["d-flex w-100 p-0 text-body", t.value]),
2407
+ class: k(["d-flex w-100 p-0 text-body", t.value]),
2371
2408
  severity: a.severity,
2372
2409
  unstyled: "",
2373
2410
  "data-cy": "button-tile"
2374
2411
  }, {
2375
2412
  default: b(() => [
2376
- m("div", Xa, [
2377
- k(l.$slots, "default", {}, () => [
2413
+ m("div", Qa, [
2414
+ w(l.$slots, "default", {}, () => [
2378
2415
  o[0] || (o[0] = P("Tile Content"))
2379
2416
  ])
2380
2417
  ])
2381
2418
  ]),
2382
2419
  _: 3
2383
- }, 8, ["severity", "class"])) : (s(), v("div", {
2420
+ }, 8, ["severity", "class"])) : (n(), u("div", {
2384
2421
  key: 1,
2385
- class: $(["d-flex w-100", i.value]),
2422
+ class: k(["d-flex w-100", i.value]),
2386
2423
  "data-cy": "tile"
2387
2424
  }, [
2388
- m("div", Qa, [
2389
- k(l.$slots, "default", {}, () => [
2425
+ m("div", et, [
2426
+ w(l.$slots, "default", {}, () => [
2390
2427
  o[1] || (o[1] = P("Tile Content"))
2391
2428
  ])
2392
2429
  ])
@@ -2397,13 +2434,13 @@ const Fa = { key: 0 }, Ba = {
2397
2434
  function J(e, a) {
2398
2435
  return e > 1 ? `${a}s` : a;
2399
2436
  }
2400
- const et = {
2437
+ const at = {
2401
2438
  class: "d-flex justify-content-start align-items-baseline",
2402
2439
  "data-cy": "pagination-header"
2403
- }, at = { class: "ms-2" }, tt = { key: 0 }, it = {
2440
+ }, tt = { class: "ms-2" }, it = { key: 0 }, lt = {
2404
2441
  class: "w-auto",
2405
2442
  "data-cy": "total"
2406
- }, lt = /* @__PURE__ */ B({
2443
+ }, ot = /* @__PURE__ */ B({
2407
2444
  __name: "ForgePaginationHeader",
2408
2445
  props: {
2409
2446
  total: {},
@@ -2412,32 +2449,32 @@ const et = {
2412
2449
  },
2413
2450
  emits: ["update:perPage"],
2414
2451
  setup(e, { emit: a }) {
2415
- const t = a, i = e, l = (r) => {
2416
- t("update:perPage", r.value);
2452
+ const t = a, i = e, l = (s) => {
2453
+ t("update:perPage", s.value);
2417
2454
  }, o = z(() => {
2418
- const r = Math.ceil(i.total / i.perPage);
2419
- return `${r} ${J(r, "page")}`;
2455
+ const s = Math.ceil(i.total / i.perPage);
2456
+ return `${s} ${J(s, "page")}`;
2420
2457
  });
2421
- return (r, p) => (s(), v("div", et, [
2422
- p[2] || (p[2] = P(" Number of results per page ")),
2423
- m("div", at, [
2424
- x(c(te), {
2458
+ return (s, r) => (n(), u("div", at, [
2459
+ r[2] || (r[2] = P(" Number of results per page ")),
2460
+ m("div", tt, [
2461
+ x(c(ae), {
2425
2462
  options: i.pageSizes,
2426
2463
  "model-value": i.perPage,
2427
2464
  class: "page-size",
2428
- onChange: p[0] || (p[0] = (d) => l(d))
2465
+ onChange: r[0] || (r[0] = (d) => l(d))
2429
2466
  }, null, 8, ["options", "model-value"])
2430
2467
  ]),
2431
- i.total ? (s(), v("div", tt, [
2432
- p[1] || (p[1] = m("span", { class: "mx-2" }, "|", -1)),
2433
- m("span", it, w(i.total) + " " + w(c(J)(i.total, "result")) + " across " + w(o.value), 1)
2468
+ i.total ? (n(), u("div", it, [
2469
+ r[1] || (r[1] = m("span", { class: "mx-2" }, "|", -1)),
2470
+ m("span", lt, h(i.total) + " " + h(c(J)(i.total, "result")) + " across " + h(o.value), 1)
2434
2471
  ])) : j("", !0)
2435
2472
  ]));
2436
2473
  }
2437
- }), ot = { class: "position-relative" }, nt = { "data-cy": "above-table-slot" }, st = { class: "d-flex w-100" }, rt = {
2474
+ }), nt = { class: "position-relative" }, st = { "data-cy": "above-table-slot" }, rt = { class: "d-flex w-100" }, pt = {
2438
2475
  class: "mx-auto",
2439
2476
  "data-cy": "empty-message"
2440
- }, pt = { class: "d-flex" }, dt = { class: "d-flex align-items-end mb-2" }, ct = { key: 0 }, mt = { class: "ms-auto" }, Ui = /* @__PURE__ */ B({
2477
+ }, dt = { class: "d-flex" }, ct = { class: "d-flex align-items-end mb-2" }, mt = { key: 0 }, ut = { class: "ms-auto" }, Di = /* @__PURE__ */ B({
2441
2478
  __name: "ForgeTable",
2442
2479
  props: {
2443
2480
  value: {},
@@ -2523,17 +2560,17 @@ const et = {
2523
2560
  },
2524
2561
  emits: ["update:filters", "update:tableContext", "sort", "page"],
2525
2562
  setup(e, { emit: a }) {
2526
- const t = a, i = e, l = _(), o = _([5, 10, 20, 50, 100]), r = _(10), p = _({
2563
+ const t = a, i = e, l = S(), o = S([5, 10, 20, 50, 100]), s = S(10), r = S({
2527
2564
  filters: i.filters,
2528
- perPage: r.value,
2565
+ perPage: s.value,
2529
2566
  page: 0,
2530
2567
  sortDirection: "None",
2531
2568
  sortField: "",
2532
2569
  total: i.totalRecords ?? i.value.length
2533
- }), d = z(() => i.totalRecords ?? i.value.length), u = z(() => {
2534
- const f = Math.ceil(d.value / r.value);
2570
+ }), d = z(() => i.totalRecords ?? i.value.length), v = z(() => {
2571
+ const f = Math.ceil(d.value / s.value);
2535
2572
  return `${f} ${J(f, "page")}`;
2536
- }), h = z(() => ({
2573
+ }), $ = z(() => ({
2537
2574
  thead: () => ({
2538
2575
  class: [
2539
2576
  {
@@ -2555,79 +2592,79 @@ const et = {
2555
2592
  }
2556
2593
  ]
2557
2594
  })
2558
- })), n = () => {
2595
+ })), p = () => {
2559
2596
  if (i.clearAll)
2560
2597
  i.clearAll();
2561
2598
  else
2562
2599
  for (const f in i.filters)
2563
2600
  typeof i.filters[f] == "string" ? i.filters[f] = "" : i.filters[f].value = null;
2564
2601
  M(i.filters);
2565
- }, C = () => {
2602
+ }, T = () => {
2566
2603
  l.value.exportCSV();
2567
- }, S = (f) => {
2604
+ }, _ = (f) => {
2568
2605
  var y;
2569
- p.value.sortDirection = f.sortOrder === 1 ? "Asc" : f.sortOrder === -1 ? "Desc" : "None", p.value.sortField = ((y = f.sortField) == null ? void 0 : y.toString()) ?? "", t("update:tableContext", p.value), t("sort", f);
2606
+ r.value.sortDirection = f.sortOrder === 1 ? "Asc" : f.sortOrder === -1 ? "Desc" : "None", r.value.sortField = ((y = f.sortField) == null ? void 0 : y.toString()) ?? "", t("update:tableContext", r.value), t("sort", f);
2570
2607
  }, M = (f) => {
2571
- p.value.filters = f, t("update:tableContext", p.value), t("update:filters", f);
2608
+ r.value.filters = f, t("update:tableContext", r.value), t("update:filters", f);
2572
2609
  }, E = (f) => {
2573
- p.value.page = f.page, t("update:tableContext", p.value), t("page", f);
2610
+ r.value.page = f.page, t("update:tableContext", r.value), t("page", f);
2574
2611
  }, V = () => {
2575
- p.value.perPage = r.value, t("update:tableContext", p.value);
2612
+ r.value.perPage = s.value, t("update:tableContext", r.value);
2576
2613
  };
2577
2614
  return de(() => i.filters, (f) => {
2578
- p.value.filters = f, t("update:tableContext", p.value);
2579
- }, { deep: !0 }), ee(() => t("update:tableContext", p.value)), (f, y) => (s(), v("div", ot, [
2580
- m("span", nt, [
2581
- k(f.$slots, "above-table")
2615
+ r.value.filters = f, t("update:tableContext", r.value);
2616
+ }, { deep: !0 }), ie(() => t("update:tableContext", r.value)), (f, y) => (n(), u("div", nt, [
2617
+ m("span", st, [
2618
+ w(f.$slots, "above-table")
2582
2619
  ]),
2583
- x(c(qe), F({
2620
+ x(c(Ae), F({
2584
2621
  class: ["w-100", `${i.severity ? `forge-table-${i.severity}` : ""}`]
2585
2622
  }, { ...i, ...f.$attrs }, {
2586
- pt: h.value,
2587
- rows: r.value,
2623
+ pt: $.value,
2624
+ rows: s.value,
2588
2625
  "total-records": d.value,
2589
2626
  "filter-display": i.filters ? "row" : void 0,
2590
2627
  ref_key: "forgeTable",
2591
2628
  ref: l,
2592
2629
  "data-cy": "table",
2593
2630
  "onUpdate:filters": M,
2594
- onSort: S,
2631
+ onSort: _,
2595
2632
  onPage: E,
2596
2633
  showHeaders: ""
2597
- }), ie({
2634
+ }), te({
2598
2635
  empty: b(() => [
2599
- m("div", st, [
2600
- m("h5", rt, w(f.emptyMessage ?? "No items Found."), 1)
2636
+ m("div", rt, [
2637
+ m("h5", pt, h(f.emptyMessage ?? "No items Found."), 1)
2601
2638
  ])
2602
2639
  ]),
2603
2640
  header: b(() => [
2604
2641
  m("div", {
2605
- class: $(i.loading ? "opacity-50" : "")
2642
+ class: k(i.loading ? "opacity-50" : "")
2606
2643
  }, [
2607
- m("div", pt, [
2608
- m("div", dt, [
2609
- f.paginator && !f.legacyPaginationFooter ? (s(), v("span", ct, [
2610
- x(lt, {
2644
+ m("div", dt, [
2645
+ m("div", ct, [
2646
+ f.paginator && !f.legacyPaginationFooter ? (n(), u("span", mt, [
2647
+ x(ot, {
2611
2648
  total: d.value,
2612
2649
  "page-sizes": o.value,
2613
- "per-page": r.value,
2650
+ "per-page": s.value,
2614
2651
  "onUpdate:perPage": [
2615
- y[0] || (y[0] = (L) => r.value = L),
2652
+ y[0] || (y[0] = (L) => s.value = L),
2616
2653
  V
2617
2654
  ]
2618
2655
  }, null, 8, ["total", "page-sizes", "per-page"])
2619
2656
  ])) : j("", !0)
2620
2657
  ]),
2621
- m("div", mt, [
2622
- f.showClearButton ? (s(), g(c(A), {
2658
+ m("div", ut, [
2659
+ f.showClearButton ? (n(), g(c(A), {
2623
2660
  key: 0,
2624
2661
  outlined: "",
2625
- class: $(f.showExporterButton ? "me-2" : ""),
2626
- onClick: n,
2662
+ class: k(f.showExporterButton ? "me-2" : ""),
2663
+ onClick: p,
2627
2664
  "data-cy": "clear-all"
2628
2665
  }, {
2629
2666
  default: b(() => [
2630
- x(c(T), {
2667
+ x(c(C), {
2631
2668
  icon: "bi:funnel-fill",
2632
2669
  width: "24",
2633
2670
  height: "24"
@@ -2636,14 +2673,14 @@ const et = {
2636
2673
  ]),
2637
2674
  _: 1
2638
2675
  }, 8, ["class"])) : j("", !0),
2639
- f.showExporterButton ? (s(), g(c(A), {
2676
+ f.showExporterButton ? (n(), g(c(A), {
2640
2677
  key: 1,
2641
2678
  outlined: "",
2642
- onClick: C,
2679
+ onClick: T,
2643
2680
  "data-cy": "exporter"
2644
2681
  }, {
2645
2682
  default: b(() => [
2646
- x(c(T), {
2683
+ x(c(C), {
2647
2684
  icon: "typcn:export",
2648
2685
  width: "24",
2649
2686
  height: "24"
@@ -2652,34 +2689,34 @@ const et = {
2652
2689
  ]),
2653
2690
  _: 1
2654
2691
  })) : j("", !0),
2655
- k(f.$slots, "column-customiser")
2692
+ w(f.$slots, "column-customiser")
2656
2693
  ])
2657
2694
  ])
2658
2695
  ], 2)
2659
2696
  ]),
2660
2697
  default: b(() => [
2661
- k(f.$slots, "default")
2698
+ w(f.$slots, "default")
2662
2699
  ]),
2663
2700
  _: 2
2664
2701
  }, [
2665
2702
  U(f.$slots, (L, K) => ({
2666
2703
  name: K,
2667
2704
  fn: b((ye) => [
2668
- k(f.$slots, K, X(Q(ye || {})))
2705
+ w(f.$slots, K, X(Q(ye || {})))
2669
2706
  ])
2670
2707
  })),
2671
2708
  f.legacyPaginationFooter ? {
2672
2709
  name: "paginatorstart",
2673
2710
  fn: b(() => [
2674
2711
  m("span", {
2675
- class: $(["d-flex", i.loading ? "opacity-50" : ""]),
2712
+ class: k(["d-flex", i.loading ? "opacity-50" : ""]),
2676
2713
  "data-cy": "legacy-page-size"
2677
2714
  }, [
2678
2715
  y[4] || (y[4] = m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1)),
2679
- x(c(te), {
2716
+ x(c(ae), {
2680
2717
  options: o.value,
2681
- modelValue: r.value,
2682
- "onUpdate:modelValue": y[1] || (y[1] = (L) => r.value = L),
2718
+ modelValue: s.value,
2719
+ "onUpdate:modelValue": y[1] || (y[1] = (L) => s.value = L),
2683
2720
  class: "ms-2",
2684
2721
  onClick: V
2685
2722
  }, null, 8, ["options", "modelValue"])
@@ -2692,15 +2729,15 @@ const et = {
2692
2729
  fn: b(() => [
2693
2730
  m("span", {
2694
2731
  "data-cy": "legacy-total",
2695
- class: $(i.loading ? "opacity-50" : "")
2696
- }, w(d.value) + " " + w(c(J)(d.value, "result")) + " across " + w(u.value), 3)
2732
+ class: k(i.loading ? "opacity-50" : "")
2733
+ }, h(d.value) + " " + h(c(J)(d.value, "result")) + " across " + h(v.value), 3)
2697
2734
  ]),
2698
2735
  key: "1"
2699
2736
  } : void 0
2700
2737
  ]), 1040, ["class", "pt", "rows", "total-records", "filter-display"])
2701
2738
  ]));
2702
2739
  }
2703
- }), ut = { class: "d-flex position-relative" }, vt = { class: "d-flex w-100" }, qi = /* @__PURE__ */ B({
2740
+ }), vt = { class: "d-flex position-relative" }, ft = { class: "d-flex w-100" }, Ui = /* @__PURE__ */ B({
2704
2741
  __name: "ForgeFilterHeader",
2705
2742
  props: /* @__PURE__ */ q({
2706
2743
  dataType: {},
@@ -2718,32 +2755,32 @@ const et = {
2718
2755
  const a = I(e, "modelValue"), t = (l, o) => {
2719
2756
  if (!l || Array.isArray(l) && l.length === 0)
2720
2757
  return o;
2721
- const r = (p) => {
2722
- var u;
2723
- const d = (u = e.dropdownOptions) == null ? void 0 : u.find(
2724
- (h) => e.optionValue ? h[e.optionValue] === p : Object.keys(h).every((n) => p.hasOwnProperty(n) && h[n] === p[n])
2758
+ const s = (r) => {
2759
+ var v;
2760
+ const d = (v = e.dropdownOptions) == null ? void 0 : v.find(
2761
+ ($) => e.optionValue ? $[e.optionValue] === r : Object.keys($).every((p) => r.hasOwnProperty(p) && $[p] === r[p])
2725
2762
  );
2726
2763
  return e.optionLabel ? d[e.optionLabel] : d;
2727
2764
  };
2728
- return Array.isArray(l) ? l.map(r).join(", ") : r(l);
2765
+ return Array.isArray(l) ? l.map(s).join(", ") : s(l);
2729
2766
  }, i = () => {
2730
2767
  e.clearFilter ? e.clearFilter() : a.value = null;
2731
2768
  };
2732
2769
  return (l, o) => {
2733
- const r = me, p = A;
2734
- return s(), v("div", ut, [
2735
- l.dataType === "numeric" ? (s(), g(r, F({
2770
+ const s = ce, r = A;
2771
+ return n(), u("div", vt, [
2772
+ l.dataType === "numeric" ? (n(), g(s, F({
2736
2773
  key: 0,
2737
2774
  modelValue: a.value,
2738
2775
  "onUpdate:modelValue": o[0] || (o[0] = (d) => a.value = d)
2739
- }, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (s(), g(be, F({
2776
+ }, l.$attrs), null, 16, ["modelValue"])) : l.dataType === "date" ? (n(), g(be, F({
2740
2777
  key: 1,
2741
2778
  modelValue: a.value,
2742
2779
  "onUpdate:modelValue": o[1] || (o[1] = (d) => a.value = d)
2743
2780
  }, l.$attrs, {
2744
2781
  "show-icon": !1,
2745
2782
  "show-on-focus": !0
2746
- }), null, 16, ["modelValue"])) : l.dataType === "select" ? (s(), g(c(te), F({
2783
+ }), null, 16, ["modelValue"])) : l.dataType === "select" ? (n(), g(c(ae), F({
2747
2784
  key: 2,
2748
2785
  modelValue: a.value,
2749
2786
  "onUpdate:modelValue": o[2] || (o[2] = (d) => a.value = d)
@@ -2752,19 +2789,19 @@ const et = {
2752
2789
  "option-value": l.optionValue,
2753
2790
  "option-label": l.optionLabel
2754
2791
  }), {
2755
- value: b(({ value: d, placeholder: u }) => [
2756
- m("div", vt, [
2792
+ value: b(({ value: d, placeholder: v }) => [
2793
+ m("div", ft, [
2757
2794
  m("span", {
2758
- class: $({ "filter-placeholder": d === null })
2759
- }, w(t(d, u)), 3),
2760
- l.showClearButton && a.value !== null ? (s(), g(p, {
2795
+ class: k({ "filter-placeholder": d === null })
2796
+ }, h(t(d, v)), 3),
2797
+ l.showClearButton && a.value !== null ? (n(), g(r, {
2761
2798
  key: 0,
2762
2799
  onClick: G(i, ["prevent"]),
2763
2800
  size: "small",
2764
2801
  class: "bg-transparent border-0 ms-auto p-0 pe-1"
2765
2802
  }, {
2766
2803
  default: b(() => [
2767
- x(c(T), {
2804
+ x(c(C), {
2768
2805
  icon: "bi:x",
2769
2806
  width: "1rem",
2770
2807
  height: "1rem",
@@ -2776,7 +2813,7 @@ const et = {
2776
2813
  ])
2777
2814
  ]),
2778
2815
  _: 1
2779
- }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (s(), g(c(oe), F({
2816
+ }, 16, ["modelValue", "options", "option-value", "option-label"])) : l.dataType === "multiselect" ? (n(), g(c(oe), F({
2780
2817
  key: 3,
2781
2818
  modelValue: a.value,
2782
2819
  "onUpdate:modelValue": o[3] || (o[3] = (d) => a.value = d)
@@ -2786,19 +2823,19 @@ const et = {
2786
2823
  "option-label": l.optionLabel,
2787
2824
  "option-value": l.optionValue,
2788
2825
  filter: ""
2789
- }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (s(), g(c(le), F({
2826
+ }), null, 16, ["modelValue", "options", "option-label", "option-value"])) : (n(), g(c(le), F({
2790
2827
  key: 4,
2791
2828
  modelValue: a.value,
2792
2829
  "onUpdate:modelValue": o[4] || (o[4] = (d) => a.value = d)
2793
2830
  }, l.$attrs), null, 16, ["modelValue"])),
2794
- l.showClearButton && a.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (s(), g(p, {
2831
+ l.showClearButton && a.value !== null && l.dataType !== "select" && l.dataType !== "multiselect" && l.dataType !== "date" ? (n(), g(r, {
2795
2832
  key: 5,
2796
2833
  onClick: G(i, ["prevent"]),
2797
2834
  size: "small",
2798
2835
  class: "bg-transparent border-0 ms-auto p-0 pe-1 position-absolute end-0 top-0 bottom-0"
2799
2836
  }, {
2800
2837
  default: b(() => [
2801
- x(c(T), {
2838
+ x(c(C), {
2802
2839
  icon: "bi:x",
2803
2840
  width: "1rem",
2804
2841
  height: "1rem",
@@ -3876,17 +3913,17 @@ class ge {
3876
3913
  }
3877
3914
  define(a, t = !1) {
3878
3915
  for (let [i, l] of Object.entries(a)) {
3879
- i = i.toLowerCase(), l = l.map((p) => p.toLowerCase()), D(this, N, "f").has(i) || D(this, N, "f").set(i, /* @__PURE__ */ new Set());
3916
+ i = i.toLowerCase(), l = l.map((r) => r.toLowerCase()), D(this, N, "f").has(i) || D(this, N, "f").set(i, /* @__PURE__ */ new Set());
3880
3917
  const o = D(this, N, "f").get(i);
3881
- let r = !0;
3882
- for (let p of l) {
3883
- const d = p.startsWith("*");
3884
- if (p = d ? p.slice(1) : p, o == null || o.add(p), r && D(this, Y, "f").set(i, p), r = !1, d)
3918
+ let s = !0;
3919
+ for (let r of l) {
3920
+ const d = r.startsWith("*");
3921
+ if (r = d ? r.slice(1) : r, o == null || o.add(r), s && D(this, Y, "f").set(i, r), s = !1, d)
3885
3922
  continue;
3886
- const u = D(this, H, "f").get(p);
3887
- if (u && u != i && !t)
3888
- throw new Error(`"${i} -> ${p}" conflicts with "${u} -> ${p}". Pass \`force=true\` to override this definition.`);
3889
- D(this, H, "f").set(p, i);
3923
+ const v = D(this, H, "f").get(r);
3924
+ if (v && v != i && !t)
3925
+ throw new Error(`"${i} -> ${r}" conflicts with "${v} -> ${r}". Pass \`force=true\` to override this definition.`);
3926
+ D(this, H, "f").set(r, i);
3890
3927
  }
3891
3928
  }
3892
3929
  return this;
@@ -3924,19 +3961,19 @@ new ge(re, se)._freeze();
3924
3961
  function xe(e, a, t, i) {
3925
3962
  const l = a.flatMap((o) => o.file);
3926
3963
  return a = a.map((o) => ({ ...o, status: o.status == "Duplicate" ? "Not Uploaded" : o.status })), e.forEach((o) => {
3927
- const r = l.findIndex((d) => d.name === o.name);
3928
- let p = "Not Uploaded";
3929
- r === -1 ? ((!t.includes(o.type) || !(o.size <= i)) && (p = t.includes(o.type) ? "InvalidFileSize" : "InvalidFileType"), a.unshift({
3964
+ const s = l.findIndex((d) => d.name === o.name);
3965
+ let r = "Not Uploaded";
3966
+ s === -1 ? ((!t.includes(o.type) || !(o.size <= i)) && (r = t.includes(o.type) ? "InvalidFileSize" : "InvalidFileType"), a.unshift({
3930
3967
  file: o,
3931
- status: p,
3968
+ status: r,
3932
3969
  blobFileName: null
3933
- })) : a[r].status = "Duplicate";
3970
+ })) : a[s].status = "Duplicate";
3934
3971
  }), a;
3935
3972
  }
3936
- async function ft(e, a) {
3973
+ async function bt(e, a) {
3937
3974
  if (e === "Uploaded" && a !== null)
3938
3975
  try {
3939
- await new ue(a).delete();
3976
+ await new me(a).delete();
3940
3977
  } catch (t) {
3941
3978
  if (t !== "BlobNotFound") {
3942
3979
  e = "DeleteFileFailed";
@@ -3950,26 +3987,26 @@ function pe(e, a = !0, t = 1) {
3950
3987
  return e + " B";
3951
3988
  const l = a ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
3952
3989
  let o = -1;
3953
- const r = 10 ** t;
3990
+ const s = 10 ** t;
3954
3991
  do
3955
3992
  e /= i, ++o;
3956
- while (Math.round(Math.abs(e) * r) / r >= i && o < l.length - 1);
3993
+ while (Math.round(Math.abs(e) * s) / s >= i && o < l.length - 1);
3957
3994
  return e.toFixed(t) + " " + l[o];
3958
3995
  }
3959
- function bt(e) {
3996
+ function gt(e) {
3960
3997
  return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
3961
3998
  }
3962
- function gt(e) {
3999
+ function xt(e) {
3963
4000
  return URL.createObjectURL(e);
3964
4001
  }
3965
- function xt() {
4002
+ function yt() {
3966
4003
  const e = new ge(re, se);
3967
4004
  return e.define({ "application/vnd.ms-outlook": ["pst"] }), e;
3968
4005
  }
3969
- const yt = { class: "d-flex justify-content-between" }, ht = ["accept", "disabled", "multiple"], wt = {
4006
+ const ht = { class: "d-flex justify-content-between" }, wt = ["accept", "disabled", "multiple"], kt = {
3970
4007
  class: "text-break accepted-file-types-container",
3971
4008
  id: "accepted-file-types-overlay"
3972
- }, kt = /* @__PURE__ */ B({
4009
+ }, $t = /* @__PURE__ */ B({
3973
4010
  __name: "UploadButton",
3974
4011
  props: /* @__PURE__ */ q({
3975
4012
  acceptedFileTypes: {},
@@ -3981,71 +4018,71 @@ const yt = { class: "d-flex justify-content-between" }, ht = ["accept", "disable
3981
4018
  }),
3982
4019
  emits: ["update:modelValue"],
3983
4020
  setup(e) {
3984
- const a = I(e, "modelValue"), t = _(), i = (r) => t.value.toggle(r), l = z(() => e.maxFileInput <= a.value.length), o = (r) => {
3985
- a.value = xe(r, a.value, e.acceptedFileTypes.map((p) => p.fileType), e.maxFileInput);
4021
+ const a = I(e, "modelValue"), t = S(), i = (s) => t.value.toggle(s), l = z(() => e.maxFileInput <= a.value.length), o = (s) => {
4022
+ a.value = xe(s, a.value, e.acceptedFileTypes.map((r) => r.fileType), e.maxFileInput);
3986
4023
  };
3987
- return (r, p) => {
4024
+ return (s, r) => {
3988
4025
  const d = A;
3989
- return s(), v("div", yt, [
3990
- k(r.$slots, "message"),
4026
+ return n(), u("div", ht, [
4027
+ w(s.$slots, "message"),
3991
4028
  m("div", null, [
3992
4029
  m("input", {
3993
4030
  id: "file-input",
3994
4031
  type: "file",
3995
4032
  class: "d-none",
3996
- accept: r.acceptedFileTypes.join(", "),
4033
+ accept: s.acceptedFileTypes.join(", "),
3997
4034
  disabled: l.value,
3998
- multiple: r.maxFileInput > 1,
3999
- onInput: p[0] || (p[0] = (u) => o([...u.target.files]))
4000
- }, null, 40, ht),
4035
+ multiple: s.maxFileInput > 1,
4036
+ onInput: r[0] || (r[0] = (v) => o([...v.target.files]))
4037
+ }, null, 40, wt),
4001
4038
  m("label", {
4002
- class: $([{ disabled: l.value }, "btn btn-primary"]),
4039
+ class: k([{ disabled: l.value }, "btn btn-primary"]),
4003
4040
  id: "file-input-button",
4004
4041
  for: "file-input"
4005
4042
  }, [
4006
- k(r.$slots, "button-content", {}, () => [
4007
- x(c(T), {
4043
+ w(s.$slots, "button-content", {}, () => [
4044
+ x(c(C), {
4008
4045
  icon: "bi:upload",
4009
4046
  class: "me-2",
4010
4047
  height: "20px",
4011
4048
  width: "20px"
4012
4049
  }),
4013
- p[1] || (p[1] = P(" Browse your computer "))
4050
+ r[1] || (r[1] = P(" Browse your computer "))
4014
4051
  ])
4015
4052
  ], 2)
4016
4053
  ]),
4017
- r.showDragDropArea ? (s(), g(d, {
4054
+ s.showDragDropArea ? (n(), g(d, {
4018
4055
  link: "",
4019
4056
  class: "ms-auto",
4020
- key: r.acceptedFileTypes.length,
4057
+ key: s.acceptedFileTypes.length,
4021
4058
  id: "accepted-file-types",
4022
4059
  onClick: i
4023
4060
  }, {
4024
- default: b(() => p[2] || (p[2] = [
4061
+ default: b(() => r[2] || (r[2] = [
4025
4062
  P("Accepted File Types")
4026
4063
  ])),
4027
4064
  _: 1
4028
4065
  })) : j("", !0),
4029
- x(c(ve), {
4066
+ x(c(ue), {
4030
4067
  ref_key: "acceptedFilesOverlay",
4031
4068
  ref: t
4032
4069
  }, {
4033
4070
  default: b(() => [
4034
- m("div", wt, w(r.acceptedFileTypes.map((u) => u.label ?? u.fileType.split("/").pop()).join(", ")), 1)
4071
+ m("div", kt, h(s.acceptedFileTypes.map((v) => v.label ?? v.fileType.split("/").pop()).join(", ")), 1)
4035
4072
  ]),
4036
4073
  _: 1
4037
4074
  }, 512)
4038
4075
  ]);
4039
4076
  };
4040
4077
  }
4041
- }), $t = {
4078
+ }), Ft = {
4042
4079
  key: 0,
4043
4080
  class: "py-4 px-3",
4044
4081
  id: "placeholder-message"
4045
- }, Ft = {
4082
+ }, Bt = {
4046
4083
  key: 1,
4047
4084
  class: "d-flex flex-column"
4048
- }, Bt = /* @__PURE__ */ B({
4085
+ }, zt = /* @__PURE__ */ B({
4049
4086
  __name: "DragDropArea",
4050
4087
  props: /* @__PURE__ */ q({
4051
4088
  maxFileInput: {},
@@ -4057,30 +4094,30 @@ const yt = { class: "d-flex justify-content-between" }, ht = ["accept", "disable
4057
4094
  }),
4058
4095
  emits: ["update:modelValue"],
4059
4096
  setup(e) {
4060
- const a = I(e, "modelValue"), t = _(!1), i = z(() => e.maxFileInput <= a.value.length), l = (o) => {
4061
- t.value = !1, o.dataTransfer.files.length > e.maxFileInput || i.value ? o.preventDefault() : a.value = xe([...o.dataTransfer.files], a.value, e.acceptedFileTypes.map((r) => r.fileType), e.maxFileSize);
4097
+ const a = I(e, "modelValue"), t = S(!1), i = z(() => e.maxFileInput <= a.value.length), l = (o) => {
4098
+ t.value = !1, o.dataTransfer.files.length > e.maxFileInput || i.value ? o.preventDefault() : a.value = xe([...o.dataTransfer.files], a.value, e.acceptedFileTypes.map((s) => s.fileType), e.maxFileSize);
4062
4099
  };
4063
- return (o, r) => (s(), v("div", {
4100
+ return (o, s) => (n(), u("div", {
4064
4101
  id: "drag-drop-area",
4065
- class: $(`${t.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
4066
- onDragleave: r[0] || (r[0] = G((p) => t.value = !1, ["prevent"])),
4067
- onDragover: r[1] || (r[1] = G((p) => t.value = !0, ["prevent"])),
4102
+ class: k(`${t.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
4103
+ onDragleave: s[0] || (s[0] = G((r) => t.value = !1, ["prevent"])),
4104
+ onDragover: s[1] || (s[1] = G((r) => t.value = !0, ["prevent"])),
4068
4105
  onDrop: G(l, ["prevent"])
4069
4106
  }, [
4070
- a.value.length === 0 ? (s(), v("div", $t, [
4071
- x(c(T), {
4107
+ a.value.length === 0 ? (n(), u("div", Ft, [
4108
+ x(c(C), {
4072
4109
  icon: "bi:upload",
4073
4110
  class: "me-2",
4074
4111
  height: "20px",
4075
4112
  width: "20px"
4076
4113
  }),
4077
- r[2] || (r[2] = P(" Drag and drop files here "))
4078
- ])) : (s(), v("div", Ft, [
4079
- k(o.$slots, "default")
4114
+ s[2] || (s[2] = P(" Drag and drop files here "))
4115
+ ])) : (n(), u("div", Bt, [
4116
+ w(o.$slots, "default")
4080
4117
  ]))
4081
4118
  ], 34));
4082
4119
  }
4083
- }), zt = { class: "d-flex align-items-center me-2" }, jt = /* @__PURE__ */ B({
4120
+ }), jt = { class: "d-flex align-items-center me-2" }, Ct = /* @__PURE__ */ B({
4084
4121
  __name: "UploadStatus",
4085
4122
  props: {
4086
4123
  fileSize: {},
@@ -4105,41 +4142,41 @@ const yt = { class: "d-flex justify-content-between" }, ht = ["accept", "disable
4105
4142
  return "Upload Failed: Connection error, please try again.";
4106
4143
  }
4107
4144
  });
4108
- return (i, l) => (s(), v("div", zt, [
4109
- i.uploadStatus === "Uploading" ? (s(), g(Ka, {
4145
+ return (i, l) => (n(), u("div", jt, [
4146
+ i.uploadStatus === "Uploading" ? (n(), g(Za, {
4110
4147
  key: 0,
4111
4148
  pixelWidth: 200,
4112
4149
  animate: "",
4113
4150
  striped: ""
4114
4151
  }, {
4115
4152
  default: b(() => [
4116
- P(w((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
4153
+ P(h((i.bytesUploaded / i.fileSize * 100).toFixed(0)) + "%", 1)
4117
4154
  ]),
4118
4155
  _: 1
4119
4156
  })) : j("", !0),
4120
- i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (s(), g(ne, {
4157
+ i.uploadStatus !== "Uploading" && i.uploadStatus !== "Not Uploaded" && i.uploadStatus !== "Uploaded" && i.uploadStatus !== "Preparing" ? (n(), g(ne, {
4121
4158
  key: 1,
4122
4159
  id: "upload-status-alert",
4123
4160
  severity: a.value,
4124
4161
  class: "mb-0 w-75 ms-auto"
4125
4162
  }, {
4126
4163
  default: b(() => [
4127
- P(w(t.value), 1)
4164
+ P(h(t.value), 1)
4128
4165
  ]),
4129
4166
  _: 1
4130
4167
  }, 8, ["severity"])) : j("", !0)
4131
4168
  ]));
4132
4169
  }
4133
- }), Ct = ["data-cy"], Tt = { class: "ms-3 d-flex flex-column" }, _t = {
4170
+ }), Tt = ["data-cy"], St = { class: "ms-3 d-flex flex-column" }, _t = {
4134
4171
  key: 1,
4135
4172
  id: "file-name"
4136
- }, St = {
4173
+ }, Vt = {
4137
4174
  class: "text-black-50",
4138
4175
  id: "file-type"
4139
- }, Vt = {
4176
+ }, Pt = {
4140
4177
  class: "text-black-50",
4141
4178
  id: "file-size"
4142
- }, Pt = { class: "ms-auto my-auto d-flex" }, Mt = /* @__PURE__ */ B({
4179
+ }, Mt = { class: "ms-auto my-auto d-flex" }, It = /* @__PURE__ */ B({
4143
4180
  __name: "FileInfo",
4144
4181
  props: /* @__PURE__ */ q({
4145
4182
  editableFileName: { type: Boolean },
@@ -4158,14 +4195,14 @@ const yt = { class: "d-flex justify-content-between" }, ht = ["accept", "disable
4158
4195
  }),
4159
4196
  emits: /* @__PURE__ */ q(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
4160
4197
  setup(e, { emit: a }) {
4161
- const t = I(e, "file"), i = I(e, "blobFileName"), l = I(e, "uploadStatus"), o = a, r = _(t.value.name), p = _(""), d = _(0), u = _(), h = z(() => e.acceptedFileTypes.some(({ fileType: V }) => V === t.value.type)), n = z(() => t.value.size <= e.maxFileSize), C = z(() => t.value.type ? t.value.type : xt().getType(t.value.name)), S = () => {
4162
- r.value != null && (t.value = new File([t.value], r.value, { type: t.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
4198
+ const t = I(e, "file"), i = I(e, "blobFileName"), l = I(e, "uploadStatus"), o = a, s = S(t.value.name), r = S(""), d = S(0), v = S(), $ = z(() => e.acceptedFileTypes.some(({ fileType: V }) => V === t.value.type)), p = z(() => t.value.size <= e.maxFileSize), T = z(() => t.value.type ? t.value.type : yt().getType(t.value.name)), _ = () => {
4199
+ s.value != null && (t.value = new File([t.value], s.value, { type: t.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() }));
4163
4200
  }, M = async () => {
4164
- if (!h.value || !n.value) {
4165
- l.value = h.value ? "InvalidFileSize" : "InvalidFileType";
4201
+ if (!$.value || !p.value) {
4202
+ l.value = $.value ? "InvalidFileSize" : "InvalidFileType";
4166
4203
  return;
4167
4204
  }
4168
- l.value = "Preparing", u.value = new AbortController();
4205
+ l.value = "Preparing", v.value = new AbortController();
4169
4206
  const [V, f] = await e.getFileUrlAction(t.value.name);
4170
4207
  if (!V) {
4171
4208
  l.value = "Failed";
@@ -4173,16 +4210,16 @@ const yt = { class: "d-flex justify-content-between" }, ht = ["accept", "disable
4173
4210
  }
4174
4211
  try {
4175
4212
  l.value = "Uploading";
4176
- const y = new ue(V), L = {
4177
- abortSignal: u.value.signal,
4213
+ const y = new me(V), L = {
4214
+ abortSignal: v.value.signal,
4178
4215
  onProgress: (K) => d.value = K.loadedBytes,
4179
4216
  blobHTTPHeaders: {
4180
- blobContentType: C.value,
4217
+ blobContentType: T.value,
4181
4218
  blobContentDisposition: `attachment; filename="${t.value.name}"`
4182
4219
  },
4183
4220
  tags: { temp: "true" }
4184
4221
  };
4185
- await y.uploadData(t.value, L), p.value = V, l.value = "Uploaded", i.value = f;
4222
+ await y.uploadData(t.value, L), r.value = V, l.value = "Uploaded", i.value = f;
4186
4223
  } catch (y) {
4187
4224
  if (y.name === "AbortError") {
4188
4225
  l.value = "Aborted";
@@ -4191,26 +4228,26 @@ const yt = { class: "d-flex justify-content-between" }, ht = ["accept", "disable
4191
4228
  l.value = "Failed";
4192
4229
  }
4193
4230
  }, E = async () => {
4194
- await ft(l.value, p.value), o("deleted", t.value);
4231
+ await bt(l.value, r.value), o("deleted", t.value);
4195
4232
  };
4196
- return ee(() => {
4233
+ return ie(() => {
4197
4234
  e.autoUploadToBlob && M();
4198
4235
  }), (V, f) => {
4199
4236
  const y = A;
4200
- return s(), v("div", {
4237
+ return n(), u("div", {
4201
4238
  class: "py-4 px-3 d-flex",
4202
4239
  "data-cy": `file-info-${t.value.name}`
4203
4240
  }, [
4204
4241
  m("div", null, [
4205
- c(bt)(t.value.type) ? (s(), g(c(Ae), {
4242
+ c(gt)(t.value.type) ? (n(), g(c(Le), {
4206
4243
  key: 0,
4207
4244
  id: "thumbnail-image",
4208
4245
  "image-class": "image-file-thumbnail border",
4209
- src: c(gt)(t.value),
4246
+ src: c(xt)(t.value),
4210
4247
  alt: t.value.name,
4211
4248
  width: "75px",
4212
4249
  preview: ""
4213
- }, null, 8, ["src", "alt"])) : (s(), g(c(T), {
4250
+ }, null, 8, ["src", "alt"])) : (n(), g(c(C), {
4214
4251
  key: 1,
4215
4252
  id: "file-earmark",
4216
4253
  icon: "bi:file-earmark",
@@ -4218,76 +4255,76 @@ const yt = { class: "d-flex justify-content-between" }, ht = ["accept", "disable
4218
4255
  width: "75px"
4219
4256
  }))
4220
4257
  ]),
4221
- m("div", Tt, [
4258
+ m("div", St, [
4222
4259
  m("div", null, [
4223
- V.editableFileName ? (s(), g(Va, {
4260
+ V.editableFileName ? (n(), g(Pa, {
4224
4261
  key: 0,
4225
4262
  id: "edit-file-name",
4226
- modelValue: r.value,
4227
- "onUpdate:modelValue": f[0] || (f[0] = (L) => r.value = L),
4263
+ modelValue: s.value,
4264
+ "onUpdate:modelValue": f[0] || (f[0] = (L) => s.value = L),
4228
4265
  rules: V.customFileNameRules,
4229
4266
  name: t.value.name,
4230
- "complete-action": S
4231
- }, null, 8, ["modelValue", "rules", "name"])) : (s(), v("span", _t, w(t.value.name), 1))
4267
+ "complete-action": _
4268
+ }, null, 8, ["modelValue", "rules", "name"])) : (n(), u("span", _t, h(t.value.name), 1))
4232
4269
  ]),
4233
- m("span", St, "File type: " + w(t.value.type.split("/").pop()), 1),
4234
- m("span", Vt, "File size: " + w(c(pe)(t.value.size)), 1)
4270
+ m("span", Vt, "File type: " + h(t.value.type.split("/").pop()), 1),
4271
+ m("span", Pt, "File size: " + h(c(pe)(t.value.size)), 1)
4235
4272
  ]),
4236
- m("div", Pt, [
4237
- (s(), g(jt, {
4273
+ m("div", Mt, [
4274
+ (n(), g(Ct, {
4238
4275
  key: l.value,
4239
4276
  "file-size": t.value.size,
4240
4277
  "upload-status": l.value,
4241
4278
  "bytes-uploaded": d.value,
4242
4279
  "max-file-size": V.maxFileSize
4243
4280
  }, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
4244
- l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (s(), g(y, {
4281
+ l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (n(), g(y, {
4245
4282
  key: 0,
4246
4283
  link: "",
4247
4284
  onClick: M
4248
4285
  }, {
4249
4286
  default: b(() => [
4250
- x(c(T), {
4287
+ x(c(C), {
4251
4288
  icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
4252
4289
  }, null, 8, ["icon"])
4253
4290
  ]),
4254
4291
  _: 1
4255
4292
  })) : j("", !0),
4256
- l.value === "Uploading" ? (s(), g(y, {
4293
+ l.value === "Uploading" ? (n(), g(y, {
4257
4294
  key: 1,
4258
4295
  link: "",
4259
- onClick: f[1] || (f[1] = (L) => u.value.value.abort())
4296
+ onClick: f[1] || (f[1] = (L) => v.value.value.abort())
4260
4297
  }, {
4261
4298
  default: b(() => [
4262
- x(c(T), { icon: "bi:x-circle-fill" })
4299
+ x(c(C), { icon: "bi:x-circle-fill" })
4263
4300
  ]),
4264
4301
  _: 1
4265
- })) : (s(), g(y, {
4302
+ })) : (n(), g(y, {
4266
4303
  key: 2,
4267
4304
  link: "",
4268
4305
  onClick: E,
4269
4306
  id: "delete-button"
4270
4307
  }, {
4271
4308
  default: b(() => [
4272
- x(c(T), { icon: "bi:trash" })
4309
+ x(c(C), { icon: "bi:trash" })
4273
4310
  ]),
4274
4311
  _: 1
4275
4312
  }))
4276
4313
  ])
4277
- ], 8, Ct);
4314
+ ], 8, Tt);
4278
4315
  };
4279
4316
  }
4280
- }), It = { class: "d-flex justify-content-end mt-1" }, Ot = { id: "max-file-size" }, Dt = /* @__PURE__ */ B({
4317
+ }), Ot = { class: "d-flex justify-content-end mt-1" }, Dt = { id: "max-file-size" }, Ut = /* @__PURE__ */ B({
4281
4318
  __name: "MaxFileSize",
4282
4319
  props: {
4283
4320
  maxFileSize: {}
4284
4321
  },
4285
4322
  setup(e) {
4286
- return (a, t) => (s(), v("div", It, [
4287
- m("div", Ot, "Max file size: " + w(c(pe)(a.maxFileSize)), 1)
4323
+ return (a, t) => (n(), u("div", Ot, [
4324
+ m("div", Dt, "Max file size: " + h(c(pe)(a.maxFileSize)), 1)
4288
4325
  ]));
4289
4326
  }
4290
- }), Ut = { "data-cy": "file-uploader" }, qt = { key: 0 }, Ai = /* @__PURE__ */ B({
4327
+ }), qt = { "data-cy": "file-uploader" }, At = { key: 0 }, qi = /* @__PURE__ */ B({
4291
4328
  __name: "ForgeFileUploader",
4292
4329
  props: /* @__PURE__ */ q({
4293
4330
  acceptedFileTypes: {},
@@ -4307,43 +4344,43 @@ const yt = { class: "d-flex justify-content-between" }, ht = ["accept", "disable
4307
4344
  const a = I(e, "modelValue"), t = e, i = (l) => {
4308
4345
  a.value = a.value.filter((o) => o.file != l);
4309
4346
  };
4310
- return (l, o) => (s(), v("div", Ut, [
4311
- x(kt, F(t, {
4347
+ return (l, o) => (n(), u("div", qt, [
4348
+ x($t, F(t, {
4312
4349
  modelValue: a.value,
4313
- "onUpdate:modelValue": o[0] || (o[0] = (r) => a.value = r)
4350
+ "onUpdate:modelValue": o[0] || (o[0] = (s) => a.value = s)
4314
4351
  }), null, 16, ["modelValue"]),
4315
- l.showDragDropArea ? (s(), v("div", qt, [
4316
- x(Bt, {
4352
+ l.showDragDropArea ? (n(), u("div", At, [
4353
+ x(zt, {
4317
4354
  "max-file-input": t.maxFileInput,
4318
4355
  "max-file-size": t.maxFileSize,
4319
4356
  "accepted-file-types": t.acceptedFileTypes,
4320
4357
  modelValue: a.value,
4321
- "onUpdate:modelValue": o[1] || (o[1] = (r) => a.value = r)
4358
+ "onUpdate:modelValue": o[1] || (o[1] = (s) => a.value = s)
4322
4359
  }, {
4323
4360
  default: b(() => [
4324
- (s(!0), v(O, null, U(a.value, ({ file: r }, p) => (s(), v("span", null, [
4325
- (s(), g(Mt, F({
4326
- key: r.name,
4327
- class: p === a.value.length - 1 || a.value.length == 1 ? "" : "border-bottom",
4328
- file: a.value[p].file,
4329
- "onUpdate:file": (d) => a.value[p].file = d,
4330
- "blob-file-name": a.value[p].blobFileName,
4331
- "onUpdate:blobFileName": (d) => a.value[p].blobFileName = d,
4332
- "upload-status": a.value[p].status,
4333
- "onUpdate:uploadStatus": (d) => a.value[p].status = d,
4361
+ (n(!0), u(O, null, U(a.value, ({ file: s }, r) => (n(), u("span", null, [
4362
+ (n(), g(It, F({
4363
+ key: s.name,
4364
+ class: r === a.value.length - 1 || a.value.length == 1 ? "" : "border-bottom",
4365
+ file: a.value[r].file,
4366
+ "onUpdate:file": (d) => a.value[r].file = d,
4367
+ "blob-file-name": a.value[r].blobFileName,
4368
+ "onUpdate:blobFileName": (d) => a.value[r].blobFileName = d,
4369
+ "upload-status": a.value[r].status,
4370
+ "onUpdate:uploadStatus": (d) => a.value[r].status = d,
4334
4371
  ref_for: !0
4335
4372
  }, t, { onDeleted: i }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
4336
4373
  ]))), 256))
4337
4374
  ]),
4338
4375
  _: 1
4339
4376
  }, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
4340
- x(Dt, {
4377
+ x(Ut, {
4341
4378
  "max-file-size": t.maxFileSize
4342
4379
  }, null, 8, ["max-file-size"])
4343
4380
  ])) : j("", !0)
4344
4381
  ]));
4345
4382
  }
4346
- }), At = { class: "d-flex" }, Lt = { class: "me-3" }, Et = { class: "ms-2" }, Nt = { class: "d-flex flex-column w-100" }, Rt = ["onClick"], Ht = ["for"], Li = /* @__PURE__ */ B({
4383
+ }), Lt = { class: "d-flex" }, Et = { class: "me-3" }, Nt = { class: "ms-2" }, Rt = { class: "d-flex flex-column w-100" }, Ai = /* @__PURE__ */ B({
4347
4384
  __name: "ForgeColumnCustomiser",
4348
4385
  props: {
4349
4386
  modelValue: { required: !0 },
@@ -4351,27 +4388,22 @@ const yt = { class: "d-flex justify-content-between" }, ht = ["accept", "disable
4351
4388
  },
4352
4389
  emits: ["update:modelValue"],
4353
4390
  setup(e) {
4354
- const a = I(e, "modelValue"), t = _(), i = _(!1), l = _([]), o = _([]), r = (d) => {
4355
- t.value.toggle(d);
4356
- }, p = (d) => {
4357
- const u = o.value.find((h) => h.field === d);
4358
- u.selected = !u.selected, a.value = o.value.filter((h) => h.selected);
4391
+ const a = I(e, "modelValue"), t = S(), i = S(!1), l = (o) => {
4392
+ t.value.toggle(o);
4359
4393
  };
4360
- return ee(() => {
4361
- l.value = [...a.value], o.value = [...a.value].map((d) => ({ ...d, selected: !0 }));
4362
- }), (d, u) => (s(), v(O, null, [
4394
+ return (o, s) => (n(), u(O, null, [
4363
4395
  x(c(A), {
4364
- onClick: r,
4396
+ onClick: l,
4365
4397
  class: "ms-2"
4366
4398
  }, {
4367
4399
  default: b(() => [
4368
- m("div", At, [
4369
- m("div", Lt, [
4370
- x(c(T), { icon: "bi:layout-three-columns" })
4371
- ]),
4372
- P(" Columns (" + w(a.value.length ?? 0) + "/" + w(l.value.length ?? 0) + ") ", 1),
4400
+ m("div", Lt, [
4373
4401
  m("div", Et, [
4374
- x(c(T), {
4402
+ x(c(C), { icon: "bi:layout-three-columns" })
4403
+ ]),
4404
+ P(" Columns (" + h(a.value.filter((r) => r.selected).length ?? 0) + "/" + h(a.value.length ?? 0) + ") ", 1),
4405
+ m("div", Nt, [
4406
+ x(c(C), {
4375
4407
  icon: i.value ? "bi:chevron-up" : "bi:chevron-down"
4376
4408
  }, null, 8, ["icon"])
4377
4409
  ])
@@ -4379,35 +4411,32 @@ const yt = { class: "d-flex justify-content-between" }, ht = ["accept", "disable
4379
4411
  ]),
4380
4412
  _: 1
4381
4413
  }),
4382
- x(c(ve), {
4414
+ x(c(ue), {
4383
4415
  ref_key: "columnCustomiserPanel",
4384
4416
  ref: t,
4385
4417
  class: "column-customiser",
4386
- onHide: u[0] || (u[0] = () => i.value = !1),
4387
- onShow: u[1] || (u[1] = () => i.value = !0)
4418
+ onHide: s[0] || (s[0] = () => i.value = !1),
4419
+ onShow: s[1] || (s[1] = () => i.value = !0)
4388
4420
  }, {
4389
4421
  default: b(() => [
4390
- m("div", Nt, [
4391
- (s(!0), v(O, null, U(l.value, (h, n) => (s(), v("div", {
4392
- class: $(["d-flex cursor-pointer", {
4393
- "border-top": n !== 0,
4394
- "py-1": n !== 0 && l.value.length - 1 !== n,
4395
- "pt-1": l.value.length - 1 === n,
4396
- "pb-1": n === 0
4397
- }]),
4398
- onClick: (C) => p(h.field)
4422
+ m("div", Rt, [
4423
+ (n(!0), u(O, null, U(a.value, (r, d) => (n(), u("div", {
4424
+ class: k(["d-flex cursor-pointer", {
4425
+ "border-top": d !== 0,
4426
+ "py-1": d !== 0 && a.value.length - 1 !== d,
4427
+ "pt-1": a.value.length - 1 === d,
4428
+ "pb-1": d === 0
4429
+ }])
4399
4430
  }, [
4400
- x(c(ce), {
4401
- id: h.field,
4402
- "model-value": o.value.find((C) => C.field === h.field).selected,
4431
+ x(ve, {
4432
+ id: r.field,
4433
+ modelValue: r.selected,
4434
+ "onUpdate:modelValue": (v) => r.selected = v,
4403
4435
  binary: "",
4404
- class: "cursor-pointer"
4405
- }, null, 8, ["id", "model-value"]),
4406
- m("label", {
4407
- for: h.field,
4408
- class: "cursor-pointer"
4409
- }, w(h.header), 9, Ht)
4410
- ], 10, Rt))), 256))
4436
+ class: "cursor-pointer",
4437
+ label: r.header
4438
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "label"])
4439
+ ], 2))), 256))
4411
4440
  ])
4412
4441
  ]),
4413
4442
  _: 1
@@ -4416,32 +4445,32 @@ const yt = { class: "d-flex justify-content-between" }, ht = ["accept", "disable
4416
4445
  }
4417
4446
  });
4418
4447
  export {
4419
- ki as Bootstrap_PT,
4420
- $i as ForgeActionButton,
4448
+ wi as Bootstrap_PT,
4449
+ ki as ForgeActionButton,
4421
4450
  ne as ForgeAlert,
4422
- Fi as ForgeAutoComplete,
4423
- ha as ForgeCheckbox,
4424
- Mi as ForgeChip,
4425
- Li as ForgeColumnCustomiser,
4451
+ $i as ForgeAutoComplete,
4452
+ ve as ForgeCheckbox,
4453
+ Pi as ForgeChip,
4454
+ Ai as ForgeColumnCustomiser,
4426
4455
  be as ForgeDatepicker,
4427
- Ai as ForgeFileUploader,
4428
- qi as ForgeFilterHeader,
4429
- Vi as ForgeForm,
4430
- Pi as ForgeFormField,
4431
- Va as ForgeInlineEditor,
4432
- Bi as ForgeLink,
4456
+ qi as ForgeFileUploader,
4457
+ Ui as ForgeFilterHeader,
4458
+ _i as ForgeForm,
4459
+ Vi as ForgeFormField,
4460
+ Pa as ForgeInlineEditor,
4461
+ Fi as ForgeLink,
4433
4462
  fe as ForgeLoader,
4434
- Ci as ForgeModal,
4435
- Ua as ForgeMultiSelectPreview,
4436
- Ti as ForgeNavbar,
4437
- _i as ForgePageHeader,
4438
- Ka as ForgeProgressBar,
4463
+ ji as ForgeModal,
4464
+ qa as ForgeMultiSelectPreview,
4465
+ Ci as ForgeNavbar,
4466
+ Ti as ForgePageHeader,
4467
+ Za as ForgeProgressBar,
4439
4468
  Si as ForgeRemainingCharacters,
4440
- Ii as ForgeStatWidget,
4441
- Oi as ForgeStepper,
4442
- Ui as ForgeTable,
4443
- Di as ForgeTile,
4444
- ji as convertToMultiSelectOption,
4445
- zi as enumToMultiSelectList,
4446
- $a as parseError
4469
+ Mi as ForgeStatWidget,
4470
+ Ii as ForgeStepper,
4471
+ Di as ForgeTable,
4472
+ Oi as ForgeTile,
4473
+ zi as convertToMultiSelectOption,
4474
+ Bi as enumToMultiSelectList,
4475
+ Fa as parseError
4447
4476
  };