@3squared/forge-ui-3 0.4.0 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/esm/forge-ui-3.js +854 -826
  2. package/dist/esm/style.css +1 -1
  3. package/dist/src/components/ForgeActionButton.vue.d.ts +1 -1
  4. package/dist/src/components/ForgeAlert.vue.d.ts +6 -4
  5. package/dist/src/components/ForgeCheckbox.vue.d.ts +6 -4
  6. package/dist/src/components/ForgeChips.vue.d.ts +1 -1
  7. package/dist/src/components/ForgeDatepicker.vue.d.ts +7 -5
  8. package/dist/src/components/ForgeForm.vue.d.ts +14 -12
  9. package/dist/src/components/ForgeInlineEditor.vue.d.ts +15 -13
  10. package/dist/src/components/ForgeLink.vue.d.ts +4 -2
  11. package/dist/src/components/ForgeModal.vue.d.ts +6 -4
  12. package/dist/src/components/ForgeMultiSelect.vue.d.ts +6 -4
  13. package/dist/src/components/ForgeMultiSelectPreview.vue.d.ts +11 -9
  14. package/dist/src/components/ForgeNavbar.vue.d.ts +7 -5
  15. package/dist/src/components/ForgePageHeader.vue.d.ts +4 -2
  16. package/dist/src/components/ForgeProgressBar.vue.d.ts +6 -4
  17. package/dist/src/components/ForgeStatWidget.vue.d.ts +6 -4
  18. package/dist/src/components/ForgeStepper.vue.d.ts +7 -5
  19. package/dist/src/components/ForgeTile.vue.d.ts +6 -4
  20. package/dist/src/components/file-uploader/components/DragDropArea.vue.d.ts +6 -4
  21. package/dist/src/components/file-uploader/components/UploadButton.vue.d.ts +7 -5
  22. package/dist/src/components/table/ForgePaginationHeader.vue.d.ts +1 -1
  23. package/dist/src/components/table/ForgeTable.vue.d.ts +7 -5
  24. package/dist/src/passthroughs/Column.pt.d.ts +2 -2
  25. package/dist/src/passthroughs/Toast.pt.d.ts +1 -1
  26. package/package.json +7 -7
  27. package/src/styles/components/_multiselect.scss +30 -82
  28. package/src/styles/components/_toast.scss +2 -2
@@ -1,30 +1,30 @@
1
- import ye from "primevue/message";
2
- import { defineComponent as x, openBlock as s, createBlock as w, normalizeProps as J, guardReactiveProps as X, withCtx as v, createElementVNode as c, normalizeClass as B, unref as u, createCommentVNode as F, createVNode as b, renderSlot as k, ref as P, createElementBlock as p, Fragment as O, mergeProps as S, computed as h, createTextVNode as V, toDisplayString as g, withDirectives as j, vShow as q, mergeModels as G, useModel as L, createSlots as Q, renderList as E, onMounted as ie, isRef as H, withKeys as Z, useAttrs as re, withModifiers as K, normalizeStyle as be } from "vue";
1
+ import fe from "primevue/message";
2
+ import { defineComponent as $, openBlock as s, createBlock as w, normalizeProps as Q, guardReactiveProps as ee, withCtx as v, createElementVNode as m, normalizeClass as F, unref as c, createCommentVNode as B, createVNode as y, renderSlot as _, ref as V, createElementBlock as p, Fragment as O, mergeProps as S, onMounted as oe, computed as k, watch as ge, isRef as L, createTextVNode as I, toDisplayString as g, withDirectives as H, vShow as q, mergeModels as G, useModel as j, createSlots as te, renderList as R, withKeys as J, useAttrs as de, withModifiers as K, normalizeStyle as he } from "vue";
3
3
  import { Icon as C } from "@iconify/vue";
4
- import A from "primevue/button";
5
- import ve from "primevue/toast";
6
- import fe from "primevue/checkbox";
7
- import { useField as W } from "vee-validate";
8
- import ge from "primevue/progressspinner";
9
- import he from "primevue/dialog";
10
- import le from "primevue/inputtext";
11
- import { vOnClickOutside as we } from "@vueuse/components";
12
- import ke from "primevue/menubar";
13
- import _e from "vue-multiselect";
14
- import xe from "primevue/calendar";
15
- import $e from "primevue/inputmask";
16
- import Be from "primevue/textarea";
17
- import de from "primevue/inputnumber";
18
- import Fe from "primevue/chips";
19
- import Se from "primevue/progressbar";
20
- import Ce from "primevue/divider";
21
- import Te from "primevue/steps";
22
- import Pe from "primevue/datatable";
23
- import oe from "primevue/dropdown";
24
- import Ve from "primevue/multiselect";
25
- import { BlockBlobClient as ue } from "@azure/storage-blob";
26
- import Ie from "primevue/image";
27
- const ze = {
4
+ import E from "primevue/button";
5
+ import we from "primevue/toast";
6
+ import ke from "primevue/checkbox";
7
+ import { useField as Z } from "vee-validate";
8
+ import _e from "primevue/progressspinner";
9
+ import xe from "primevue/dialog";
10
+ import ne from "primevue/inputtext";
11
+ import { vOnClickOutside as $e } from "@vueuse/components";
12
+ import Be from "primevue/menubar";
13
+ import Fe from "vue-multiselect";
14
+ import Se from "primevue/calendar";
15
+ import Ce from "primevue/inputmask";
16
+ import Te from "primevue/textarea";
17
+ import ue from "primevue/inputnumber";
18
+ import Ve from "primevue/chips";
19
+ import Pe from "primevue/progressbar";
20
+ import Ie from "primevue/divider";
21
+ import ze from "primevue/steps";
22
+ import Me from "primevue/datatable";
23
+ import se from "primevue/dropdown";
24
+ import Ue from "primevue/multiselect";
25
+ import { BlockBlobClient as ce } from "@azure/storage-blob";
26
+ import Oe from "primevue/image";
27
+ const De = {
28
28
  button: {
29
29
  root: ({ props: e }) => ({
30
30
  class: [
@@ -108,7 +108,7 @@ const ze = {
108
108
  ]
109
109
  })
110
110
  }
111
- }, Me = {
111
+ }, Ae = {
112
112
  checkbox: {
113
113
  root: () => ({
114
114
  class: [
@@ -126,7 +126,7 @@ const ze = {
126
126
  ]
127
127
  })
128
128
  }
129
- }, se = {
129
+ }, re = {
130
130
  dropdown: {
131
131
  root: ({ props: e }) => ({
132
132
  class: [
@@ -186,16 +186,16 @@ const ze = {
186
186
  loadingIcon: "spinner-border spinner-border-sm border-0",
187
187
  itemGroupLabel: "ps-2 fw-bold"
188
188
  }
189
- }, Oe = {
189
+ }, Ne = {
190
190
  column: {
191
191
  sortBadge: "ms-2 my-auto cursor-pointer",
192
192
  headerCell: (e) => {
193
- var t, l, a, o;
193
+ var t, o, a, l;
194
194
  return {
195
195
  class: [{
196
196
  "cursor-move": e.props.reorderableColumns,
197
- "position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((l = e.column) == null ? void 0 : l.context.frozen) || ((a = e.column) == null ? void 0 : a.context.frozen) === "",
198
- "overflow-hidden position-relative bg-clip-padding": (o = e.column) == null ? void 0 : o.context.resizable
197
+ "position-sticky": ((t = e.column) == null ? void 0 : t.context.frozen) !== void 0 || ((o = e.column) == null ? void 0 : o.context.frozen) || ((a = e.column) == null ? void 0 : a.context.frozen) === "",
198
+ "overflow-hidden position-relative bg-clip-padding": (l = e.column) == null ? void 0 : l.context.resizable
199
199
  }]
200
200
  };
201
201
  },
@@ -279,22 +279,22 @@ const ze = {
279
279
  ]
280
280
  })
281
281
  }
282
- }, Ue = {
282
+ }, Ee = {
283
283
  inputtext: {
284
284
  root: (e) => {
285
- var t, l;
285
+ var t, o;
286
286
  return {
287
287
  class: [
288
288
  "form-control",
289
289
  {
290
290
  "form-control-lg": ((t = e.props.size) == null ? void 0 : t.toLowerCase()) == "large",
291
- "form-control-sm": ((l = e.props.size) == null ? void 0 : l.toLowerCase()) == "small"
291
+ "form-control-sm": ((o = e.props.size) == null ? void 0 : o.toLowerCase()) == "small"
292
292
  }
293
293
  ]
294
294
  };
295
295
  }
296
296
  }
297
- }, De = {
297
+ }, Re = {
298
298
  inputmask: {
299
299
  root: () => ({
300
300
  class: [
@@ -302,12 +302,12 @@ const ze = {
302
302
  ]
303
303
  })
304
304
  }
305
- }, Ae = {
305
+ }, Le = {
306
306
  inputSwitch: {
307
307
  root: "form-check form-switch",
308
308
  input: "form-check-input"
309
309
  }
310
- }, Ne = {
310
+ }, je = {
311
311
  textarea: {
312
312
  root: () => ({
313
313
  class: [
@@ -315,13 +315,13 @@ const ze = {
315
315
  ]
316
316
  })
317
317
  }
318
- }, Ee = {
318
+ }, He = {
319
319
  // More PassThrough options in component file.
320
320
  chips: {
321
321
  root: "d-flex",
322
322
  label: "pe-2"
323
323
  }
324
- }, Re = {
324
+ }, qe = {
325
325
  dialog: {
326
326
  header: () => ({
327
327
  class: ["modal-header"]
@@ -361,7 +361,7 @@ const ze = {
361
361
  }]
362
362
  })
363
363
  }
364
- }, Le = {
364
+ }, Ge = {
365
365
  overlaypanel: {
366
366
  root: (e) => ({
367
367
  class: [
@@ -375,7 +375,7 @@ const ze = {
375
375
  content: "d-flex position-relative",
376
376
  closeButton: "position-absolute top-0 end-0 p-1 btn btn-link text-black ms-2"
377
377
  }
378
- }, je = {
378
+ }, Ke = {
379
379
  message: {
380
380
  root: ({ props: e }) => ({
381
381
  class: [
@@ -404,13 +404,13 @@ const ze = {
404
404
  class: ["px-0 ms-2 btn d-flex"]
405
405
  })
406
406
  }
407
- }, He = {
407
+ }, We = {
408
408
  // More PT options defined in ForgeStepper.
409
409
  steps: {
410
410
  root: "w-100 mx-2 line",
411
411
  menu: "p-0 m-0 list-unstyled d-flex justify-content-between "
412
412
  }
413
- }, qe = {
413
+ }, Ze = {
414
414
  tabview: {
415
415
  navContainer: () => ({
416
416
  class: ["nav nav-tabs position-relative"]
@@ -448,7 +448,7 @@ const ze = {
448
448
  class: ["p-2"]
449
449
  })
450
450
  }
451
- }, Ge = {
451
+ }, Ye = {
452
452
  // More PassThrough options defined in ForgeDatepicker.
453
453
  calendar: {
454
454
  root: "d-inline-flex relative",
@@ -491,7 +491,7 @@ const ze = {
491
491
  ]
492
492
  })
493
493
  }
494
- }, Ke = {
494
+ }, Je = {
495
495
  // More PassThrough options in component file.
496
496
  progressbar: {
497
497
  root: () => ({
@@ -504,7 +504,7 @@ const ze = {
504
504
  class: ["text-white"]
505
505
  })
506
506
  }
507
- }, We = {
507
+ }, Xe = {
508
508
  dataTable: {
509
509
  table: (e) => ({
510
510
  class: [
@@ -568,7 +568,7 @@ const ze = {
568
568
  ]
569
569
  })
570
570
  }
571
- }, Ze = {
571
+ }, Qe = {
572
572
  badge: {
573
573
  root: ({ props: e }) => ({
574
574
  class: [
@@ -589,7 +589,7 @@ const ze = {
589
589
  ]
590
590
  })
591
591
  }
592
- }, Ye = {
592
+ }, et = {
593
593
  // More PassThrough options in component file.
594
594
  menubar: {
595
595
  menu: ({ instance: e }) => ({
@@ -659,7 +659,7 @@ const ze = {
659
659
  ]
660
660
  })
661
661
  }
662
- }, Je = {
662
+ }, tt = {
663
663
  tooltip: {
664
664
  root: ({ context: e }) => ({
665
665
  class: [
@@ -681,7 +681,7 @@ const ze = {
681
681
  class: ["tooltip-inner"]
682
682
  }
683
683
  }
684
- }, Xe = {
684
+ }, at = {
685
685
  selectbutton: {
686
686
  root: () => ({
687
687
  class: ["btn-group"]
@@ -699,7 +699,7 @@ const ze = {
699
699
  ]
700
700
  })
701
701
  }
702
- }, Qe = {
702
+ }, lt = {
703
703
  progressspinner: {
704
704
  spinner: () => ({
705
705
  class: [
@@ -707,7 +707,7 @@ const ze = {
707
707
  ]
708
708
  })
709
709
  }
710
- }, et = {
710
+ }, ot = {
711
711
  card: {
712
712
  root: () => ({
713
713
  class: ["card"]
@@ -731,11 +731,11 @@ const ze = {
731
731
  class: ["card-header"]
732
732
  })
733
733
  }
734
- }, tt = {
734
+ }, nt = {
735
735
  divider: {
736
736
  root: "border-bottom m-4 w-100"
737
737
  }
738
- }, at = {
738
+ }, st = {
739
739
  image: {
740
740
  root: "position-relative d-inline-block",
741
741
  button: "preview-button",
@@ -748,7 +748,7 @@ const ze = {
748
748
  zoominbutton: "btn text-white",
749
749
  closebutton: "btn text-white"
750
750
  }
751
- }, lt = {
751
+ }, it = {
752
752
  toast: {
753
753
  message: () => ({
754
754
  class: ["toast-container w-100 position-relative"]
@@ -757,7 +757,7 @@ const ze = {
757
757
  class: ["toast-body d-flex align-items-center gap-2"]
758
758
  }),
759
759
  container: () => ({
760
- class: ["toast bg-white show"]
760
+ class: ["toast bg-white show overflow-hidden text-break"]
761
761
  }),
762
762
  buttonContainer: () => ({
763
763
  class: ["ms-auto"]
@@ -768,55 +768,55 @@ const ze = {
768
768
  closeIcon: () => ({
769
769
  class: "d-none"
770
770
  }),
771
- summary: () => ({
772
- class: ["toast-body ps-1"]
771
+ text: () => ({
772
+ class: ["ps-1"]
773
773
  }),
774
774
  icon: ({ props: e }) => {
775
- var t, l, a, o;
775
+ var t, o, a, l;
776
776
  return {
777
777
  class: [
778
778
  "toast-icon",
779
779
  {
780
780
  "text-primary": ((t = e.message) == null ? void 0 : t.severity) === "info",
781
- "text-success": ((l = e.message) == null ? void 0 : l.severity) === "success",
781
+ "text-success": ((o = e.message) == null ? void 0 : o.severity) === "success",
782
782
  "text-danger": ((a = e.message) == null ? void 0 : a.severity) === "error",
783
- "text-warning": ((o = e.message) == null ? void 0 : o.severity) === "warn"
783
+ "text-warning": ((l = e.message) == null ? void 0 : l.severity) === "warn"
784
784
  }
785
785
  ]
786
786
  };
787
787
  }
788
788
  }
789
- }, ll = {
790
- ...Ze,
791
- ...ze,
792
- ...et,
793
- ...Me,
794
- ...Ee,
795
- ...Oe,
796
- ...Ge,
797
- ...Re,
798
- ...tt,
799
- ...se,
800
- ...at,
801
- ...Ue,
789
+ }, il = {
790
+ ...Qe,
802
791
  ...De,
792
+ ...ot,
803
793
  ...Ae,
804
- ...je,
805
- ...se,
794
+ ...He,
795
+ ...Ne,
806
796
  ...Ye,
797
+ ...qe,
798
+ ...nt,
799
+ ...re,
800
+ ...st,
801
+ ...Ee,
802
+ ...Re,
807
803
  ...Le,
808
804
  ...Ke,
809
- ...Qe,
810
- ...Xe,
811
- ...He,
812
- ...We,
813
- ...qe,
805
+ ...re,
806
+ ...et,
807
+ ...Ge,
808
+ ...Je,
814
809
  ...lt,
815
- ...Ne,
810
+ ...at,
811
+ ...We,
812
+ ...Xe,
813
+ ...Ze,
814
+ ...it,
815
+ ...je,
816
816
  directives: {
817
- ...Je
817
+ ...tt
818
818
  }
819
- }, ee = /* @__PURE__ */ x({
819
+ }, ae = /* @__PURE__ */ $({
820
820
  __name: "ForgeAlert",
821
821
  props: {
822
822
  severity: { default: "primary" },
@@ -832,33 +832,33 @@ const ze = {
832
832
  },
833
833
  setup(e) {
834
834
  const t = e;
835
- return (l, a) => {
836
- const o = ye;
837
- return s(), w(o, J(X({ ...l.$attrs, ...t })), {
835
+ return (o, a) => {
836
+ const l = fe;
837
+ return s(), w(l, Q(ee({ ...o.$attrs, ...t })), {
838
838
  messageicon: v(() => [
839
- c("div", {
840
- class: B(t.icon ? "me-2 pe-1" : "")
839
+ m("div", {
840
+ class: F(t.icon ? "me-2 pe-1" : "")
841
841
  }, [
842
- t.icon ? (s(), w(u(C), {
842
+ t.icon ? (s(), w(c(C), {
843
843
  key: 0,
844
844
  "data-cy": "message-icon",
845
845
  icon: t.icon,
846
- class: B(`text-${t.severity}`),
846
+ class: F(`text-${t.severity}`),
847
847
  height: 35
848
- }, null, 8, ["icon", "class"])) : F("", !0)
848
+ }, null, 8, ["icon", "class"])) : B("", !0)
849
849
  ], 2)
850
850
  ]),
851
851
  closeicon: v(() => [
852
- b(u(C), { icon: "bi:x" })
852
+ y(c(C), { icon: "bi:x" })
853
853
  ]),
854
854
  default: v(() => [
855
- k(l.$slots, "default")
855
+ _(o.$slots, "default")
856
856
  ]),
857
857
  _: 3
858
858
  }, 16);
859
859
  };
860
860
  }
861
- }), ol = /* @__PURE__ */ x({
861
+ }), rl = /* @__PURE__ */ $({
862
862
  __name: "ForgeActionButton",
863
863
  props: {
864
864
  action: {},
@@ -867,31 +867,31 @@ const ze = {
867
867
  params: { default: Array }
868
868
  },
869
869
  setup(e) {
870
- const t = P(!1), l = e, a = async () => {
870
+ const t = V(!1), o = e, a = async () => {
871
871
  t.value = !0;
872
872
  try {
873
- await l.action.apply(this, l.params);
874
- } catch (o) {
875
- await l.errorAction.apply(this, l.errorParams ? [...l.errorParams, o] : [o]);
873
+ await o.action.apply(this, o.params);
874
+ } catch (l) {
875
+ await o.errorAction.apply(this, o.errorParams ? [...o.errorParams, l] : [l]);
876
876
  }
877
877
  t.value = !1;
878
878
  };
879
- return (o, n) => {
880
- const i = A;
879
+ return (l, n) => {
880
+ const r = E;
881
881
  return s(), p(O, null, [
882
- b(i, S({ ...l, ...o.$attrs }, {
882
+ y(r, S({ ...o, ...l.$attrs }, {
883
883
  loading: t.value,
884
- disabled: t.value || l.disabled,
884
+ disabled: t.value || o.disabled,
885
885
  onClick: a
886
886
  }), null, 16, ["loading", "disabled"]),
887
- b(u(ve))
887
+ y(c(we))
888
888
  ], 64);
889
889
  };
890
890
  }
891
- }), ot = {
891
+ }), rt = {
892
892
  class: "d-flex",
893
893
  "data-cy": "checkbox-container"
894
- }, nt = /* @__PURE__ */ c("div", null, null, -1), st = ["for"], it = /* @__PURE__ */ x({
894
+ }, dt = /* @__PURE__ */ m("div", null, null, -1), ut = ["for"], me = /* @__PURE__ */ $({
895
895
  __name: "ForgeCheckbox",
896
896
  props: {
897
897
  label: { default: "" },
@@ -919,66 +919,72 @@ const ze = {
919
919
  },
920
920
  emits: ["update:modelValue"],
921
921
  setup(e, { emit: t }) {
922
- const l = t, a = e, { checked: o, handleChange: n, errors: i, errorMessage: m } = W(() => a.name ?? a.label, a.rules, {
922
+ const o = t, a = e, { checked: l, handleChange: n, setValue: r, errors: u, errorMessage: f } = Z(() => a.name ?? a.label, a.rules, {
923
923
  type: "checkbox",
924
- checkedValue: !0,
925
- initialValue: a.modelValue
926
- }), y = (_) => {
927
- a.disabled || (n(_), l("update:modelValue", !a.modelValue));
928
- }, r = h(() => i.value.length > 0);
929
- return (_, d) => {
930
- const f = fe;
924
+ checkedValue: !0
925
+ }), d = (i) => {
926
+ a.disabled || (n(i), o("update:modelValue", !a.modelValue));
927
+ };
928
+ oe(() => {
929
+ a.value !== void 0 && a.value !== (l == null ? void 0 : l.value) ? r(a.value) : a.modelValue !== void 0 && a.modelValue !== (l == null ? void 0 : l.value) && r(a.modelValue);
930
+ });
931
+ const b = k(() => u.value.length > 0);
932
+ return ge(() => a.value, (i) => {
933
+ i !== (l == null ? void 0 : l.value) && r(i);
934
+ }), (i, h) => {
935
+ const x = ke;
931
936
  return s(), p(O, null, [
932
- c("div", ot, [
933
- b(f, S({
937
+ m("div", rt, [
938
+ y(x, S({
934
939
  id: a.name
935
- }, { ..._.$attrs, ...a }, {
936
- value: u(o),
937
- "input-class": { "is-invalid": r.value },
938
- onChange: y
940
+ }, { ...i.$attrs, ...a }, {
941
+ modelValue: c(l),
942
+ "onUpdate:modelValue": h[0] || (h[0] = (T) => L(l) ? l.value = T : null),
943
+ "input-class": { "is-invalid": b.value },
944
+ onChange: d
939
945
  }), {
940
946
  icon: v(() => [
941
- nt
947
+ dt
942
948
  ]),
943
949
  _: 1
944
- }, 16, ["id", "value", "input-class"]),
945
- c("label", {
950
+ }, 16, ["id", "modelValue", "input-class"]),
951
+ m("label", {
946
952
  for: a.name,
947
- class: B(`${a.disabled ? "opacity-50" : "cursor-pointer"}`),
948
- onClick: y
953
+ class: F(`${a.disabled ? "opacity-50" : "cursor-pointer"}`),
954
+ onClick: d
949
955
  }, [
950
- k(_.$slots, "default", {}, () => [
951
- V(g(a.label), 1)
956
+ _(i.$slots, "default", {}, () => [
957
+ I(g(a.label), 1)
952
958
  ])
953
- ], 10, st)
959
+ ], 10, ut)
954
960
  ]),
955
- j(c("small", {
961
+ H(m("small", {
956
962
  "data-cy": "error",
957
963
  class: "text-invalid"
958
- }, g(u(m)), 513), [
959
- [q, r.value]
964
+ }, g(c(f)), 513), [
965
+ [q, b.value]
960
966
  ])
961
967
  ], 64);
962
968
  };
963
969
  }
964
- }), rt = { class: "forge-loader" }, ce = /* @__PURE__ */ x({
970
+ }), ct = { class: "forge-loader" }, pe = /* @__PURE__ */ $({
965
971
  __name: "ForgeLoader",
966
972
  props: {
967
973
  severity: { default: "primary" }
968
974
  },
969
975
  setup(e) {
970
976
  const t = e;
971
- return (l, a) => {
972
- const o = ge;
973
- return s(), p("div", rt, [
974
- b(o, {
977
+ return (o, a) => {
978
+ const l = _e;
979
+ return s(), p("div", ct, [
980
+ y(l, {
975
981
  "animation-duration": ".75",
976
- class: B(`text-${t.severity === void 0 ? "primary" : t.severity}`)
982
+ class: F(`text-${t.severity === void 0 ? "primary" : t.severity}`)
977
983
  }, null, 8, ["class"])
978
984
  ]);
979
985
  };
980
986
  }
981
- }), dt = ["href", "target"], nl = /* @__PURE__ */ x({
987
+ }), mt = ["href", "target"], dl = /* @__PURE__ */ $({
982
988
  __name: "ForgeLink",
983
989
  props: {
984
990
  url: {},
@@ -996,7 +1002,7 @@ const ze = {
996
1002
  iconName: {}
997
1003
  },
998
1004
  setup(e) {
999
- const t = h(() => ({
1005
+ const t = k(() => ({
1000
1006
  [`link-${e.severity}`]: e.severity,
1001
1007
  [`link-underline-${e.underlineSeverity}`]: e.underlineSeverity,
1002
1008
  [`link-opacity-${e.opacity}`]: e.opacity,
@@ -1005,46 +1011,46 @@ const ze = {
1005
1011
  [`link-underline-opacity-${e.underlineHoverOpacity ?? e.hoverOpacity}-hover`]: e.underlineHoverOpacity || e.hoverOpacity,
1006
1012
  [`link-offset-${e.underlineOffset}`]: e.underlineOffset,
1007
1013
  "icon-link icon-link-hover": e.animateIconOnHover
1008
- })), l = h(() => ({
1014
+ })), o = k(() => ({
1009
1015
  "order-2": e.positionIconEnd,
1010
1016
  "me-1": !e.positionIconEnd && !e.animateIconOnHover,
1011
1017
  "ms-1": e.positionIconEnd && !e.animateIconOnHover,
1012
1018
  "ms-0": e.positionIconEnd && e.animateIconOnHover,
1013
1019
  "me-0": e.animateIconOnHover
1014
1020
  }));
1015
- return (a, o) => (s(), p("a", {
1021
+ return (a, l) => (s(), p("a", {
1016
1022
  id: "link",
1017
- class: B(["cursor-pointer d-flex", t.value]),
1023
+ class: F(["cursor-pointer d-flex", t.value]),
1018
1024
  href: a.url,
1019
1025
  target: a.target
1020
1026
  }, [
1021
- k(a.$slots, "default", {}, () => [
1022
- a.iconName ? (s(), w(u(C), {
1027
+ _(a.$slots, "default", {}, () => [
1028
+ a.iconName ? (s(), w(c(C), {
1023
1029
  key: 0,
1024
1030
  id: "link-icon",
1025
1031
  icon: a.iconName,
1026
- class: B(["bi my-auto", l.value])
1027
- }, null, 8, ["icon", "class"])) : F("", !0),
1028
- V(" " + g(a.label), 1)
1032
+ class: F(["bi my-auto", o.value])
1033
+ }, null, 8, ["icon", "class"])) : B("", !0),
1034
+ I(" " + g(a.label), 1)
1029
1035
  ])
1030
- ], 10, dt));
1036
+ ], 10, mt));
1031
1037
  }
1032
1038
  });
1033
- function ut(e) {
1039
+ function pt(e) {
1034
1040
  const t = {
1035
1041
  errorMessage: "",
1036
1042
  errorDetails: []
1037
1043
  };
1038
1044
  if (e.exception && (t.errorMessage = e.exception), e.message && (Array.isArray(e.message) ? t.errorDetails = e.message : t.errorMessage = e.message), e.response) {
1039
- const l = JSON.parse(e.response);
1040
- l.errors && (t.errorDetails = Object.values(l.errors).flat()), l.message && (t.errorDetails = l.message);
1045
+ const o = JSON.parse(e.response);
1046
+ o.errors && (t.errorDetails = Object.values(o.errors).flat()), o.message && (t.errorDetails = o.message);
1041
1047
  }
1042
1048
  return t.errorMessage === "" && t.errorDetails.length === 0 && (t.errorMessage = e), t;
1043
1049
  }
1044
- const ct = { key: 0 }, mt = {
1050
+ const yt = { key: 0 }, vt = {
1045
1051
  class: "d-flex w-100",
1046
1052
  "data-cy": "footer"
1047
- }, sl = /* @__PURE__ */ x({
1053
+ }, ul = /* @__PURE__ */ $({
1048
1054
  __name: "ForgeModal",
1049
1055
  props: /* @__PURE__ */ G({
1050
1056
  cancelText: { default: "Cancel" },
@@ -1087,102 +1093,102 @@ const ct = { key: 0 }, mt = {
1087
1093
  }),
1088
1094
  emits: ["update:visible"],
1089
1095
  setup(e) {
1090
- const t = L(e, "visible"), l = P(!1), a = e, o = P(!1), n = P({
1096
+ const t = j(e, "visible"), o = V(!1), a = e, l = V(!1), n = V({
1091
1097
  hasError: !1,
1092
1098
  header: "",
1093
1099
  message: []
1094
- }), i = () => {
1095
- l.value = !1;
1096
- }, m = () => {
1097
- l.value = !0;
1098
- }, y = () => {
1100
+ }), r = () => {
1101
+ o.value = !1;
1102
+ }, u = () => {
1103
+ o.value = !0;
1104
+ }, f = () => {
1099
1105
  t.value = !1;
1100
- }, r = async () => {
1106
+ }, d = async () => {
1101
1107
  if (a.onConfirm) {
1102
- o.value = !0, n.value.hasError = !1;
1108
+ l.value = !0, n.value.hasError = !1;
1103
1109
  try {
1104
- const d = await a.onConfirm();
1105
- (d || d == null) && y();
1106
- } catch (d) {
1110
+ const i = await a.onConfirm();
1111
+ (i || i == null) && f();
1112
+ } catch (i) {
1107
1113
  n.value.hasError = !0;
1108
- const f = ut(d);
1109
- n.value.header = f.errorMessage, n.value.message = f.errorDetails;
1114
+ const h = pt(i);
1115
+ n.value.header = h.errorMessage, n.value.message = h.errorDetails;
1110
1116
  }
1111
- o.value = !1;
1117
+ l.value = !1;
1112
1118
  }
1113
- }, _ = h(() => ({
1119
+ }, b = k(() => ({
1114
1120
  root: [
1115
1121
  "modal modal-dialog modal-content h-auto m-0",
1116
1122
  {
1117
- "mw-100 vh-100 vw-100 top-0 start-0": l.value
1123
+ "mw-100 vh-100 vw-100 top-0 start-0": o.value
1118
1124
  }
1119
1125
  ]
1120
1126
  }));
1121
- return (d, f) => {
1122
- const $ = A, T = he;
1127
+ return (i, h) => {
1128
+ const x = E, T = xe;
1123
1129
  return s(), w(T, S(a, {
1124
- onMaximize: m,
1125
- onUnmaximize: i,
1126
- pt: _.value
1127
- }), Q({
1130
+ onMaximize: u,
1131
+ onUnmaximize: r,
1132
+ pt: b.value
1133
+ }), te({
1128
1134
  closeicon: v(() => [
1129
- b(u(C), {
1135
+ y(c(C), {
1130
1136
  "data-cy": "close-icon",
1131
1137
  icon: "bi:x-lg",
1132
1138
  width: "18",
1133
1139
  height: "18",
1134
- onClick: y
1140
+ onClick: f
1135
1141
  })
1136
1142
  ]),
1137
1143
  maximizeicon: v(() => [
1138
- b(u(C), {
1144
+ y(c(C), {
1139
1145
  "data-cy": "maximisable-icon",
1140
- icon: l.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1146
+ icon: o.value ? "bi:arrows-angle-contract" : "bi:arrows-angle-expand",
1141
1147
  width: "16",
1142
1148
  height: "16"
1143
1149
  }, null, 8, ["icon"])
1144
1150
  ]),
1145
1151
  _: 2
1146
1152
  }, [
1147
- E(d.$slots, (I, M) => ({
1148
- name: M,
1149
- fn: v((z) => [
1150
- n.value.hasError ? (s(), w(ee, {
1153
+ R(i.$slots, (P, z) => ({
1154
+ name: z,
1155
+ fn: v((M) => [
1156
+ n.value.hasError ? (s(), w(ae, {
1151
1157
  key: 0,
1152
1158
  severity: "danger",
1153
1159
  "data-cy": "error"
1154
1160
  }, {
1155
1161
  default: v(() => [
1156
- c("p", {
1157
- class: B(n.value.message.length > 0 ? "my-auto" : "mb-0")
1162
+ m("p", {
1163
+ class: F(n.value.message.length > 0 ? "my-auto" : "mb-0")
1158
1164
  }, g(n.value.header), 3),
1159
- n.value.message.length > 0 ? (s(), p("ul", ct, [
1160
- (s(!0), p(O, null, E(n.value.message, (N) => (s(), p("li", { key: N }, g(N), 1))), 128))
1161
- ])) : F("", !0)
1165
+ n.value.message.length > 0 ? (s(), p("ul", yt, [
1166
+ (s(!0), p(O, null, R(n.value.message, (N) => (s(), p("li", { key: N }, g(N), 1))), 128))
1167
+ ])) : B("", !0)
1162
1168
  ]),
1163
1169
  _: 1
1164
- })) : F("", !0),
1165
- k(d.$slots, M, J(X(z || {}))),
1166
- o.value ? k(d.$slots, "loader", { key: 1 }, () => [
1167
- b(ce, { "data-cy": "loader" })
1168
- ]) : F("", !0)
1170
+ })) : B("", !0),
1171
+ _(i.$slots, z, Q(ee(M || {}))),
1172
+ l.value ? _(i.$slots, "loader", { key: 1 }, () => [
1173
+ y(pe, { "data-cy": "loader" })
1174
+ ]) : B("", !0)
1169
1175
  ])
1170
1176
  })),
1171
- d.showFooter ? {
1177
+ i.showFooter ? {
1172
1178
  name: "footer",
1173
1179
  fn: v(() => [
1174
- c("div", mt, [
1175
- b($, {
1176
- label: d.cancelText,
1177
- class: B(a.cancelClass),
1180
+ m("div", vt, [
1181
+ y(x, {
1182
+ label: i.cancelText,
1183
+ class: F(a.cancelClass),
1178
1184
  outlined: "",
1179
- onClick: y,
1185
+ onClick: f,
1180
1186
  id: "cancel-button"
1181
1187
  }, null, 8, ["label", "class"]),
1182
- b($, {
1183
- label: d.submitText,
1184
- class: B([a.submitClass, "ms-auto"]),
1185
- onClick: r,
1188
+ y(x, {
1189
+ label: i.submitText,
1190
+ class: F([a.submitClass, "ms-auto"]),
1191
+ onClick: d,
1186
1192
  id: "submit-button"
1187
1193
  }, null, 8, ["label", "class"])
1188
1194
  ])
@@ -1192,7 +1198,7 @@ const ct = { key: 0 }, mt = {
1192
1198
  ]), 1040, ["pt"]);
1193
1199
  };
1194
1200
  }
1195
- }), pt = ["id"], yt = { key: 0 }, bt = { key: 0 }, vt = { class: "d-flex justify-content-between align-items-center position-relative" }, ft = { key: 1 }, gt = { "data-cy": "readonly-value" }, ht = /* @__PURE__ */ x({
1201
+ }), bt = ["id"], ft = { key: 0 }, gt = { key: 0 }, ht = { class: "d-flex justify-content-between align-items-center position-relative" }, wt = { key: 1 }, kt = { "data-cy": "readonly-value" }, _t = /* @__PURE__ */ $({
1196
1202
  __name: "ForgeInlineEditor",
1197
1203
  props: /* @__PURE__ */ G({
1198
1204
  name: { default: "" },
@@ -1208,13 +1214,13 @@ const ct = { key: 0 }, mt = {
1208
1214
  }),
1209
1215
  emits: ["update:modelValue"],
1210
1216
  setup(e) {
1211
- const t = e, l = L(e, "modelValue"), a = P(!1), o = P(), n = () => {
1212
- var $;
1213
- a.value = !a.value, ($ = o.value) == null || $.focus();
1214
- }, i = async () => {
1215
- if (f.value)
1217
+ const t = e, o = j(e, "modelValue"), a = V(!1), l = V(), n = () => {
1218
+ var x;
1219
+ a.value = !a.value, (x = l.value) == null || x.focus();
1220
+ }, r = async () => {
1221
+ if (h.value)
1216
1222
  return !1;
1217
- if (l.value = d.value, t.completeAction)
1223
+ if (o.value = i.value, t.completeAction)
1218
1224
  try {
1219
1225
  await t.completeAction.apply(this, t.params), a.value = !a.value;
1220
1226
  } catch {
@@ -1222,56 +1228,56 @@ const ct = { key: 0 }, mt = {
1222
1228
  }
1223
1229
  else
1224
1230
  a.value = !a.value;
1225
- }, m = () => {
1231
+ }, u = () => {
1226
1232
  a.value = !a.value;
1227
- }, y = () => {
1228
- d.value = null;
1229
- }, { errorMessage: r, errors: _, value: d } = W(() => t.name, t.rules);
1230
- ie(() => {
1231
- d.value = l.value;
1233
+ }, f = () => {
1234
+ i.value = null;
1235
+ }, { errorMessage: d, errors: b, value: i } = Z(() => t.name, t.rules);
1236
+ oe(() => {
1237
+ i.value = o.value;
1232
1238
  });
1233
- const f = h(() => _.value.length > 0);
1234
- return ($, T) => {
1235
- const I = le, M = A;
1239
+ const h = k(() => b.value.length > 0);
1240
+ return (x, T) => {
1241
+ const P = ne, z = E;
1236
1242
  return s(), p("div", {
1237
1243
  id: t.name
1238
1244
  }, [
1239
- $.readonly ? (s(), p("div", ft, [
1240
- k($.$slots, "default", {}, () => [
1241
- c("span", gt, g(u(d)), 1)
1245
+ x.readonly ? (s(), p("div", wt, [
1246
+ _(x.$slots, "default", {}, () => [
1247
+ m("span", kt, g(c(i)), 1)
1242
1248
  ])
1243
- ])) : (s(), p("div", yt, [
1244
- a.value ? (s(), p("div", bt, [
1245
- j((s(), p("div", vt, [
1246
- k($.$slots, "editor", {
1247
- class: B({ "is-invalid": f.value }),
1248
- editFinished: i,
1249
- cancel: m,
1250
- val: u(d)
1249
+ ])) : (s(), p("div", ft, [
1250
+ a.value ? (s(), p("div", gt, [
1251
+ H((s(), p("div", ht, [
1252
+ _(x.$slots, "editor", {
1253
+ class: F({ "is-invalid": h.value }),
1254
+ editFinished: r,
1255
+ cancel: u,
1256
+ val: c(i)
1251
1257
  }, () => [
1252
- b(I, {
1258
+ y(P, {
1253
1259
  "data-cy": "input",
1254
1260
  ref_key: "input",
1255
- ref: o,
1256
- modelValue: u(d),
1257
- "onUpdate:modelValue": T[0] || (T[0] = (z) => H(d) ? d.value = z : null),
1261
+ ref: l,
1262
+ modelValue: c(i),
1263
+ "onUpdate:modelValue": T[0] || (T[0] = (M) => L(i) ? i.value = M : null),
1258
1264
  modelModifiers: { trim: !0 },
1259
- class: B({ "is-invalid": f.value }),
1265
+ class: F({ "is-invalid": h.value }),
1260
1266
  onKeydown: [
1261
- Z(i, ["enter"]),
1262
- Z(m, ["esc"])
1267
+ J(r, ["enter"]),
1268
+ J(u, ["esc"])
1263
1269
  ]
1264
1270
  }, null, 8, ["modelValue", "class"])
1265
1271
  ]),
1266
- b(u(C), {
1272
+ y(c(C), {
1267
1273
  icon: "bi:x-circle",
1268
1274
  class: "mx-2 cursor-pointer",
1269
- onClick: y,
1270
- onKeydown: Z(y, ["enter"]),
1275
+ onClick: f,
1276
+ onKeydown: J(f, ["enter"]),
1271
1277
  "data-cy": "clear-icon"
1272
1278
  })
1273
1279
  ])), [
1274
- [u(we), i]
1280
+ [c($e), r]
1275
1281
  ])
1276
1282
  ])) : (s(), p("div", {
1277
1283
  key: 1,
@@ -1279,38 +1285,38 @@ const ct = { key: 0 }, mt = {
1279
1285
  onClick: n,
1280
1286
  onFocus: n
1281
1287
  }, [
1282
- k($.$slots, "default", {}, () => [
1283
- c("div", {
1284
- class: B(["pe-2 cursor-pointer", { "text-invalid": f.value }]),
1288
+ _(x.$slots, "default", {}, () => [
1289
+ m("div", {
1290
+ class: F(["pe-2 cursor-pointer", { "text-invalid": h.value }]),
1285
1291
  "data-cy": "value"
1286
- }, g(u(d) ? u(d) : "Click to edit"), 3)
1292
+ }, g(c(i) ? c(i) : "Click to edit"), 3)
1287
1293
  ]),
1288
- b(M, {
1294
+ y(z, {
1289
1295
  link: "",
1290
1296
  class: "p-0 m-0"
1291
1297
  }, {
1292
1298
  default: v(() => [
1293
- b(u(C), {
1299
+ y(c(C), {
1294
1300
  icon: "bi:pencil",
1295
- class: B(f.value ? "text-invalid" : "text-muted"),
1301
+ class: F(h.value ? "text-invalid" : "text-muted"),
1296
1302
  "data-cy": "edit-icon",
1297
- onKeydown: Z(n, ["enter"])
1303
+ onKeydown: J(n, ["enter"])
1298
1304
  }, null, 8, ["class"])
1299
1305
  ]),
1300
1306
  _: 1
1301
1307
  })
1302
1308
  ], 32))
1303
1309
  ])),
1304
- j(c("small", {
1310
+ H(m("small", {
1305
1311
  "data-cy": "error",
1306
1312
  class: "text-invalid"
1307
- }, g(u(r)), 513), [
1308
- [q, f.value]
1313
+ }, g(c(d)), 513), [
1314
+ [q, h.value]
1309
1315
  ])
1310
- ], 8, pt);
1316
+ ], 8, bt);
1311
1317
  };
1312
1318
  }
1313
- }), wt = ["href"], il = /* @__PURE__ */ x({
1319
+ }), xt = ["href"], cl = /* @__PURE__ */ $({
1314
1320
  __name: "ForgeNavbar",
1315
1321
  props: {
1316
1322
  severity: { default: "light" },
@@ -1327,7 +1333,7 @@ const ct = { key: 0 }, mt = {
1327
1333
  unstyled: { type: Boolean }
1328
1334
  },
1329
1335
  setup(e) {
1330
- const t = e, l = h(() => ({
1336
+ const t = e, o = k(() => ({
1331
1337
  root: () => ({
1332
1338
  class: [
1333
1339
  "navbar container-fluid navbar-expand-lg",
@@ -1354,28 +1360,28 @@ const ct = { key: 0 }, mt = {
1354
1360
  ]
1355
1361
  })
1356
1362
  }));
1357
- return (a, o) => {
1358
- const n = ke;
1363
+ return (a, l) => {
1364
+ const n = Be;
1359
1365
  return s(), w(n, S({ ...t, ...a.$attrs }, {
1360
- pt: l.value,
1366
+ pt: o.value,
1361
1367
  "data-cy": "navbar"
1362
- }), Q({
1368
+ }), te({
1363
1369
  start: v(() => [
1364
- c("a", {
1370
+ m("a", {
1365
1371
  href: a.logoUrl,
1366
1372
  class: "navbar-brand ms-3",
1367
1373
  "data-cy": "logo"
1368
1374
  }, [
1369
- k(a.$slots, "logo", {}, () => [
1370
- V(" Logo ")
1375
+ _(a.$slots, "logo", {}, () => [
1376
+ I(" Logo ")
1371
1377
  ])
1372
- ], 8, wt)
1378
+ ], 8, xt)
1373
1379
  ]),
1374
1380
  menubuttonicon: v(() => [
1375
- k(a.$slots, "menubuttonicon", {}, () => [
1376
- b(u(C), {
1381
+ _(a.$slots, "menubuttonicon", {}, () => [
1382
+ y(c(C), {
1377
1383
  icon: "bi:list",
1378
- class: B(t.severity === "light" ? "text-black" : "text-white"),
1384
+ class: F(t.severity === "light" ? "text-black" : "text-white"),
1379
1385
  height: "24",
1380
1386
  "data-cy": "burger-icon"
1381
1387
  }, null, 8, ["class"])
@@ -1383,16 +1389,16 @@ const ct = { key: 0 }, mt = {
1383
1389
  ]),
1384
1390
  _: 2
1385
1391
  }, [
1386
- E(a.$slots, (i, m) => ({
1387
- name: m,
1388
- fn: v((y) => [
1389
- k(a.$slots, m, J(X(y)))
1392
+ R(a.$slots, (r, u) => ({
1393
+ name: u,
1394
+ fn: v((f) => [
1395
+ _(a.$slots, u, Q(ee(f)))
1390
1396
  ])
1391
1397
  }))
1392
1398
  ]), 1040, ["pt"]);
1393
1399
  };
1394
1400
  }
1395
- }), kt = ["onMousedown"], _t = ["checked"], xt = /* @__PURE__ */ c("strong", null, "Select all", -1), $t = ["data-cy"], Bt = ["checked"], Ft = /* @__PURE__ */ x({
1401
+ }), $t = /* @__PURE__ */ m("div", { class: "ps-1" }, "Select all", -1), Bt = ["data-cy"], Ft = { class: "ps-1" }, St = { class: "multiselect__tag d-inline-flex" }, Ct = { class: "my-auto" }, Tt = /* @__PURE__ */ $({
1396
1402
  __name: "ForgeMultiSelect",
1397
1403
  props: {
1398
1404
  severity: { default: "primary" },
@@ -1405,119 +1411,141 @@ const ct = { key: 0 }, mt = {
1405
1411
  },
1406
1412
  emits: ["update:modelValue"],
1407
1413
  setup(e, { emit: t }) {
1408
- const l = e, a = re(), o = t, { errors: n, value: i, errorMessage: m } = W(() => l.name, l.rules), y = P(!1), r = h(() => ({
1414
+ const o = e, a = (D, U) => {
1415
+ const Y = {
1416
+ ...U,
1417
+ $isDisabled: U.$isDisabled ?? !1
1418
+ };
1419
+ D(Y);
1420
+ }, l = de(), n = t, { errors: r, value: u, errorMessage: f } = Z(() => o.name, o.rules), d = V(!1), b = k(() => ({
1409
1421
  multiple: !0,
1410
1422
  label: "label",
1411
1423
  trackBy: "id",
1412
- showPointer: !y.value,
1413
- placeholder: "Select...",
1424
+ showPointer: !d.value,
1425
+ placeholder: l.searchable === null || l.searchable ? "Search" : "Select",
1414
1426
  allowEmpty: !0,
1415
1427
  selectValue: "",
1416
- closeOnSelect: !!(a.multiple === null || a.multiple),
1417
- clearOnSelect: !!(a.multiple === null || a.multiple),
1418
- searchable: !!((a.searchable === null || a.searchable) && !f.value),
1428
+ closeOnSelect: !!(l.multiple === null || l.multiple),
1429
+ clearOnSelect: !!(l.multiple === null || l.multiple),
1430
+ searchable: !!(l.searchable === null || l.searchable) && l.modelValue.length === l.options.length,
1419
1431
  async: !1,
1420
- ...a
1421
- })), _ = h(() => `forge-multiselect-${l.severity}`), d = h(() => `multiselect-option ${y.value ? " multiselect__option--highlight" : ""} ${f.value ? " multiselect__option--selected" : ""}`), f = h(() => r.value && !(r.value.multiple || !l.showSelectAll || r.value.async) ? !1 : a.modelValue.length === a.options.length), $ = h(() => n.value.length > 0), T = h(() => !!((a.allowEmpty == null || a.allowEmpty) && l.showClearSelection && (r.value.multiple ? a.modelValue.length > 0 : a.modelValue))), I = () => y.value = !0, M = () => y.value = !1, z = () => {
1422
- i.value = r.value.multiple ? [] : null, o("update:modelValue", i.value);
1423
- }, N = (U) => {
1424
- o("update:modelValue", l.selectValue ? U.map((D) => D[l.selectValue]) : U);
1425
- }, te = (U) => a.modelValue !== null ? a.modelValue.some((D) => r.value.selectValue ? U[l.selectValue] === D : U.id === D.id && U.label === D.label) : !1, pe = () => {
1426
- f.value ? z() : (i.value = [...a.options], o("update:modelValue", [...a.options]));
1432
+ ...l
1433
+ })), i = k(() => `forge-multiselect-${o.severity}`), h = k(() => `multiselect__option ${d.value ? " multiselect__option--highlight" : ""} ${x.value ? " multiselect__option--selected" : ""}`), x = k(() => b.value && !(b.value.multiple || !o.showSelectAll || b.value.async) ? !1 : l.modelValue.length === l.options.length), T = k(() => r.value.length > 0), P = k(() => !!((l.allowEmpty == null || l.allowEmpty) && o.showClearSelection && (b.value.multiple ? l.modelValue.length > 0 : l.modelValue))), z = () => d.value = !0, M = () => d.value = !1, N = () => {
1434
+ u.value = b.value.multiple ? [] : null, n("update:modelValue", u.value);
1435
+ }, le = (D) => {
1436
+ n("update:modelValue", o.selectValue ? D.map((U) => U[o.selectValue]) : D);
1437
+ }, ve = (D) => l.modelValue !== null ? l.modelValue.some((U) => b.value.selectValue ? D[o.selectValue] === U : D.id === U.id && D.label === U.label) : !1, be = () => {
1438
+ x.value ? N() : (u.value = [...l.options], n("update:modelValue", [...l.options]));
1427
1439
  };
1428
- return (U, D) => (s(), p(O, null, [
1429
- b(u(_e), S(r.value, {
1430
- class: [_.value, $.value ? "is-invalid" : ""],
1431
- "data-cy": "multiselect",
1432
- "onUpdate:modelValue": [
1433
- N,
1434
- D[1] || (D[1] = (R) => H(i) ? i.value = R : null)
1435
- ],
1436
- modelValue: u(i)
1437
- }), Q({
1438
- default: v(() => [
1439
- (s(!0), p(O, null, E(U.$slots, (R, ae) => k(U.$slots, ae, { slot: ae })), 256))
1440
- ]),
1441
- _: 2
1442
- }, [
1443
- T.value ? {
1444
- name: "caret",
1445
- fn: v(({ toggle: R }) => [
1446
- b(u(C), {
1440
+ return (D, U) => {
1441
+ const Y = me;
1442
+ return s(), p(O, null, [
1443
+ y(c(Fe), S(b.value, {
1444
+ class: [i.value, T.value ? "is-invalid" : ""],
1445
+ "data-cy": "multiselect",
1446
+ "onUpdate:modelValue": [
1447
+ le,
1448
+ U[1] || (U[1] = (A) => L(u) ? u.value = A : null)
1449
+ ],
1450
+ modelValue: c(u)
1451
+ }), te({
1452
+ caret: v(({ toggle: A }) => [
1453
+ P.value ? (s(), w(c(C), {
1454
+ key: 0,
1447
1455
  icon: "bi:x",
1448
1456
  class: "my-auto multiselect__clear-icon",
1449
- onMousedown: D[0] || (D[0] = K((ae) => z(), ["prevent", "stop"])),
1450
- "data-cy": "clear"
1451
- }),
1452
- c("div", {
1453
- class: "multiselect__select",
1454
- onMousedown: K(R, ["prevent", "stop"])
1455
- }, null, 40, kt)
1457
+ onMousedown: U[0] || (U[0] = K((W) => N(), ["prevent", "stop"])),
1458
+ "data-cy": "clear",
1459
+ height: "18px",
1460
+ width: "18px"
1461
+ })) : B("", !0),
1462
+ y(c(C), {
1463
+ icon: "bi:chevron-down",
1464
+ onClick: A,
1465
+ class: "multiselect__select"
1466
+ }, null, 8, ["onClick"])
1456
1467
  ]),
1457
- key: "0"
1458
- } : void 0,
1459
- r.value.multiple && U.showSelectAll && !r.value.async ? {
1460
- name: "beforeList",
1461
- fn: v(() => [
1462
- c("li", {
1463
- class: "multiselect__element",
1464
- onClick: pe,
1465
- onMouseover: I,
1466
- onMouseleave: M,
1467
- "data-cy": "toggle-all"
1468
- }, [
1469
- c("span", {
1470
- class: B(`multiselect__option ${d.value}`)
1471
- }, [
1472
- c("input", {
1473
- checked: f.value,
1474
- name: "selected",
1475
- type: "checkbox",
1476
- class: "multiselect__option--checkbox"
1477
- }, null, 8, _t),
1478
- xt
1479
- ], 2)
1480
- ], 32)
1468
+ tag: v(({ option: A, remove: W }) => [
1469
+ m("div", St, [
1470
+ m("div", Ct, g(A.label), 1),
1471
+ y(c(C), {
1472
+ icon: "bi:x",
1473
+ class: "my-auto multiselect__tag-icon",
1474
+ onMousedown: K((Ma) => a(W, A), ["prevent", "stop"]),
1475
+ height: "18px",
1476
+ width: "18px"
1477
+ }, null, 8, ["onMousedown"])
1478
+ ])
1481
1479
  ]),
1482
- key: "1"
1483
- } : void 0,
1484
- r.value.multiple ? {
1485
- name: "option",
1486
- fn: v(({ option: R }) => [
1487
- c("div", {
1488
- "data-cy": R.label
1489
- }, [
1490
- c("input", {
1491
- checked: te(R),
1492
- name: "selected",
1493
- type: "checkbox",
1494
- class: "multiselect__option--checkbox"
1495
- }, null, 8, Bt),
1496
- V(" " + g(R[r.value.label]), 1)
1497
- ], 8, $t)
1480
+ default: v(() => [
1481
+ (s(!0), p(O, null, R(D.$slots, (A, W) => _(D.$slots, W, { slot: W })), 256))
1498
1482
  ]),
1499
- key: "2"
1500
- } : void 0
1501
- ]), 1040, ["class", "modelValue"]),
1502
- j(c("small", {
1503
- "data-cy": "error",
1504
- class: "invalid-feedback"
1505
- }, g(u(m)), 513), [
1506
- [q, $.value]
1507
- ])
1508
- ], 64));
1483
+ _: 2
1484
+ }, [
1485
+ b.value.multiple && D.showSelectAll && !b.value.async ? {
1486
+ name: "beforeList",
1487
+ fn: v(() => [
1488
+ m("li", {
1489
+ class: "multiselect__element",
1490
+ onClick: be,
1491
+ onMouseover: z,
1492
+ onMouseleave: M,
1493
+ "data-cy": "toggle-all"
1494
+ }, [
1495
+ m("span", {
1496
+ class: F(`${h.value}`)
1497
+ }, [
1498
+ y(Y, { value: x.value }, {
1499
+ default: v(() => [
1500
+ $t
1501
+ ]),
1502
+ _: 1
1503
+ }, 8, ["value"])
1504
+ ], 2)
1505
+ ], 32)
1506
+ ]),
1507
+ key: "0"
1508
+ } : void 0,
1509
+ b.value.multiple ? {
1510
+ name: "option",
1511
+ fn: v(({ option: A }) => [
1512
+ m("div", {
1513
+ "data-cy": A.label
1514
+ }, [
1515
+ (s(), w(Y, {
1516
+ value: ve(A),
1517
+ key: A
1518
+ }, {
1519
+ default: v(() => [
1520
+ m("div", Ft, g(A[b.value.label]), 1)
1521
+ ]),
1522
+ _: 2
1523
+ }, 1032, ["value"]))
1524
+ ], 8, Bt)
1525
+ ]),
1526
+ key: "1"
1527
+ } : void 0
1528
+ ]), 1040, ["class", "modelValue"]),
1529
+ H(m("small", {
1530
+ "data-cy": "error",
1531
+ class: "invalid-feedback"
1532
+ }, g(c(f)), 513), [
1533
+ [q, T.value]
1534
+ ])
1535
+ ], 64);
1536
+ };
1509
1537
  }
1510
- }), St = {
1538
+ }), Vt = {
1511
1539
  key: 0,
1512
1540
  class: "pl-1"
1513
- }, Ct = { class: "border alternating-item-list" }, Tt = {
1541
+ }, Pt = { class: "border alternating-item-list" }, It = {
1514
1542
  key: 0,
1515
1543
  class: "p-2 border-top border-bottom",
1516
1544
  "data-cy": "title"
1517
- }, Pt = { class: "d-inline-block" }, Vt = {
1545
+ }, zt = { class: "d-inline-block" }, Mt = {
1518
1546
  key: 1,
1519
1547
  class: "p-2 item d-flex justify-content-between align-items-center"
1520
- }, rl = /* @__PURE__ */ x({
1548
+ }, ml = /* @__PURE__ */ $({
1521
1549
  __name: "ForgeMultiSelectPreview",
1522
1550
  props: {
1523
1551
  title: { default: "Selected Items" },
@@ -1528,104 +1556,104 @@ const ct = { key: 0 }, mt = {
1528
1556
  },
1529
1557
  emits: ["update:modelValue"],
1530
1558
  setup(e, { emit: t }) {
1531
- const l = e, a = re(), o = t, n = h(() => `${a.modelValue.length} selected`), i = h(() => a.modelValue.length), m = (r) => {
1532
- o("update:modelValue", r);
1533
- }, y = (r) => {
1534
- m(a.modelValue.filter((_) => _.id !== r));
1559
+ const o = e, a = de(), l = t, n = k(() => `${a.modelValue.length} selected`), r = k(() => a.modelValue.length), u = (d) => {
1560
+ l("update:modelValue", d);
1561
+ }, f = (d) => {
1562
+ u(a.modelValue.filter((b) => b.id !== d));
1535
1563
  };
1536
- return (r, _) => {
1537
- const d = A;
1564
+ return (d, b) => {
1565
+ const i = E;
1538
1566
  return s(), p("div", {
1539
- class: B(r.orientation === "column" ? "row" : ""),
1567
+ class: F(d.orientation === "column" ? "row" : ""),
1540
1568
  "data-cy": "multiselect-preview"
1541
1569
  }, [
1542
- c("div", {
1543
- class: B(r.orientation === "row" ? "col-12 mb-1" : "col"),
1570
+ m("div", {
1571
+ class: F(d.orientation === "row" ? "col-12 mb-1" : "col"),
1544
1572
  "data-cy": "multiselect-container"
1545
1573
  }, [
1546
- b(Ft, {
1574
+ y(Tt, {
1547
1575
  "onUpdate:modelValue": [
1548
- _[0] || (_[0] = (f) => m(f)),
1549
- _[1] || (_[1] = (f) => r.$attrs.modelValue = f)
1576
+ b[0] || (b[0] = (h) => u(h)),
1577
+ b[1] || (b[1] = (h) => d.$attrs.modelValue = h)
1550
1578
  ],
1551
- modelValue: r.$attrs.modelValue,
1579
+ modelValue: d.$attrs.modelValue,
1552
1580
  "limit-text": n.value,
1553
- options: l.options
1581
+ options: o.options
1554
1582
  }, {
1555
1583
  tag: v(() => [
1556
- V(g(""))
1584
+ I(g(""))
1557
1585
  ]),
1558
1586
  selection: v(() => [
1559
- r.$attrs.modelValue.length > 0 ? (s(), p("span", St, g(i.value) + " items selected", 1)) : F("", !0)
1587
+ d.$attrs.modelValue.length > 0 ? (s(), p("span", Vt, g(r.value) + " items selected", 1)) : B("", !0)
1560
1588
  ]),
1561
1589
  default: v(() => [
1562
- (s(!0), p(O, null, E(r.$slots, (f, $) => k(r.$slots, $, { slot: $ })), 256))
1590
+ (s(!0), p(O, null, R(d.$slots, (h, x) => _(d.$slots, x, { slot: x })), 256))
1563
1591
  ]),
1564
1592
  _: 3
1565
1593
  }, 8, ["modelValue", "limit-text", "options"]),
1566
- k(r.$slots, "after-multi-select")
1594
+ _(d.$slots, "after-multi-select")
1567
1595
  ], 2),
1568
- c("div", {
1569
- class: B(r.orientation === "row" ? "col-12" : "col"),
1596
+ m("div", {
1597
+ class: F(d.orientation === "row" ? "col-12" : "col"),
1570
1598
  "data-cy": "options-preview"
1571
1599
  }, [
1572
- c("div", {
1573
- style: be({ height: r.height }),
1600
+ m("div", {
1601
+ style: he({ height: d.height }),
1574
1602
  class: "overflow-auto"
1575
1603
  }, [
1576
- c("div", Ct, [
1577
- r.title ? (s(), p("div", Tt, g(r.title), 1)) : F("", !0),
1578
- (s(!0), p(O, null, E(r.$attrs.modelValue, (f) => (s(), p("div", {
1579
- key: f.id,
1604
+ m("div", Pt, [
1605
+ d.title ? (s(), p("div", It, g(d.title), 1)) : B("", !0),
1606
+ (s(!0), p(O, null, R(d.$attrs.modelValue, (h) => (s(), p("div", {
1607
+ key: h.id,
1580
1608
  class: "p-2 item d-flex justify-content-between align-items-center"
1581
1609
  }, [
1582
- k(r.$slots, "list-item", { item: f }, () => [
1583
- c("span", Pt, g(f.shortLabel ? f.shortLabel : f.label), 1)
1610
+ _(d.$slots, "list-item", { item: h }, () => [
1611
+ m("span", zt, g(h.shortLabel ? h.shortLabel : h.label), 1)
1584
1612
  ]),
1585
- r.canRemoveItemFromPreview ? (s(), w(d, {
1613
+ d.canRemoveItemFromPreview ? (s(), w(i, {
1586
1614
  key: 0,
1587
1615
  link: "",
1588
1616
  class: "m-0 p-0 d-flex align-items-center",
1589
- onClick: ($) => y(f.id)
1617
+ onClick: (x) => f(h.id)
1590
1618
  }, {
1591
1619
  default: v(() => [
1592
- b(u(C), {
1620
+ y(c(C), {
1593
1621
  icon: "bi:x",
1594
1622
  class: "close-icon",
1595
- "data-cy": `close-icon-${f.id}`
1623
+ "data-cy": `close-icon-${h.id}`
1596
1624
  }, null, 8, ["data-cy"])
1597
1625
  ]),
1598
1626
  _: 2
1599
- }, 1032, ["onClick"])) : F("", !0)
1627
+ }, 1032, ["onClick"])) : B("", !0)
1600
1628
  ]))), 128)),
1601
- r.$attrs.modelValue.length === 0 ? (s(), p("div", Vt, "No Items Selected.")) : F("", !0)
1629
+ d.$attrs.modelValue.length === 0 ? (s(), p("div", Mt, "No Items Selected.")) : B("", !0)
1602
1630
  ])
1603
1631
  ], 4)
1604
1632
  ], 2)
1605
1633
  ], 2);
1606
1634
  };
1607
1635
  }
1608
- }), It = { class: "d-flex justify-content-between pb-2" }, zt = {
1636
+ }), Ut = { class: "d-flex justify-content-between pb-2" }, Ot = {
1609
1637
  "data-cy": "title",
1610
1638
  class: "h3"
1611
- }, Mt = {
1639
+ }, Dt = {
1612
1640
  "data-cy": "slot",
1613
1641
  class: "d-flex align-items-center"
1614
- }, dl = /* @__PURE__ */ x({
1642
+ }, pl = /* @__PURE__ */ $({
1615
1643
  __name: "ForgePageHeader",
1616
1644
  props: {
1617
1645
  title: {}
1618
1646
  },
1619
1647
  setup(e) {
1620
1648
  const t = e;
1621
- return (l, a) => (s(), p("div", It, [
1622
- c("h1", zt, g(t.title), 1),
1623
- c("div", Mt, [
1624
- k(l.$slots, "default")
1649
+ return (o, a) => (s(), p("div", Ut, [
1650
+ m("h1", Ot, g(t.title), 1),
1651
+ m("div", Dt, [
1652
+ _(o.$slots, "default")
1625
1653
  ])
1626
1654
  ]));
1627
1655
  }
1628
- }), Ot = { "data-cy": "before-slot" }, Ut = { "data-cy": "after-slot" }, Dt = /* @__PURE__ */ x({
1656
+ }), At = { "data-cy": "before-slot" }, Nt = { "data-cy": "after-slot" }, Et = /* @__PURE__ */ $({
1629
1657
  __name: "ForgeDatepicker",
1630
1658
  props: {
1631
1659
  severity: { default: "primary" },
@@ -1693,7 +1721,7 @@ const ct = { key: 0 }, mt = {
1693
1721
  unstyled: { type: Boolean }
1694
1722
  },
1695
1723
  setup(e) {
1696
- const t = e, l = h(() => ({
1724
+ const t = e, o = k(() => ({
1697
1725
  dayLabel: ({ context: a }) => ({
1698
1726
  class: [
1699
1727
  "btn rounded-circle w-100 py-2",
@@ -1742,41 +1770,41 @@ const ct = { key: 0 }, mt = {
1742
1770
  })
1743
1771
  }
1744
1772
  }));
1745
- return (a, o) => {
1746
- const n = xe;
1773
+ return (a, l) => {
1774
+ const n = Se;
1747
1775
  return s(), p(O, null, [
1748
- c("span", Ot, [
1749
- k(a.$slots, "before")
1776
+ m("span", At, [
1777
+ _(a.$slots, "before")
1750
1778
  ]),
1751
- b(n, S({ ...t, ...a.$attrs }, { pt: l.value }), null, 16, ["pt"]),
1752
- j(b(u(C), {
1779
+ y(n, S({ ...t, ...a.$attrs }, { pt: o.value }), null, 16, ["pt"]),
1780
+ H(y(c(C), {
1753
1781
  "data-cy": "icon",
1754
1782
  icon: "bi:calendar3",
1755
1783
  width: "32",
1756
1784
  height: "32",
1757
- class: B(["ps-2", t.severity == null ? "text-primary" : `text-${t.severity}`])
1785
+ class: F(["ps-2", t.severity == null ? "text-primary" : `text-${t.severity}`])
1758
1786
  }, null, 8, ["class"]), [
1759
1787
  [q, t.showIcon]
1760
1788
  ]),
1761
- c("span", Ut, [
1762
- k(a.$slots, "after")
1789
+ m("span", Nt, [
1790
+ _(a.$slots, "after")
1763
1791
  ])
1764
1792
  ], 64);
1765
1793
  };
1766
1794
  }
1767
- }), ul = /* @__PURE__ */ x({
1795
+ }), yl = /* @__PURE__ */ $({
1768
1796
  __name: "ForgeRemainingCharacters",
1769
1797
  props: {
1770
1798
  maxCount: { default: 300 },
1771
1799
  currentCount: {}
1772
1800
  },
1773
1801
  setup(e) {
1774
- const t = e, l = h(() => t.maxCount - t.currentCount);
1775
- return (a, o) => (s(), p("div", {
1776
- class: B(l.value < 0 ? "text-danger" : "")
1777
- }, "Remaining characters: " + g(l.value), 3));
1802
+ const t = e, o = k(() => t.maxCount - t.currentCount);
1803
+ return (a, l) => (s(), p("div", {
1804
+ class: F(o.value < 0 ? "text-danger" : "")
1805
+ }, "Remaining characters: " + g(o.value), 3));
1778
1806
  }
1779
- }), At = /* @__PURE__ */ c("hr", null, null, -1), Nt = { class: "d-flex justify-content-between" }, cl = /* @__PURE__ */ x({
1807
+ }), Rt = /* @__PURE__ */ m("hr", null, null, -1), Lt = { class: "d-flex justify-content-between" }, vl = /* @__PURE__ */ $({
1780
1808
  __name: "ForgeForm",
1781
1809
  props: {
1782
1810
  onSubmit: {},
@@ -1788,88 +1816,88 @@ const ct = { key: 0 }, mt = {
1788
1816
  hideCancel: { type: Boolean, default: !1 }
1789
1817
  },
1790
1818
  setup(e) {
1791
- const t = e, l = P(!1), a = P({
1819
+ const t = e, o = V(!1), a = V({
1792
1820
  hasError: !1,
1793
1821
  message: ""
1794
1822
  });
1795
- async function o() {
1796
- l.value = !0, a.value.hasError = !1;
1823
+ async function l() {
1824
+ o.value = !0, a.value.hasError = !1;
1797
1825
  try {
1798
1826
  await t.onSubmit();
1799
1827
  } catch (n) {
1800
1828
  a.value.hasError = !0, n.message && (a.value.message = n.message);
1801
1829
  }
1802
- l.value = !1;
1830
+ o.value = !1;
1803
1831
  }
1804
- return (n, i) => {
1805
- const m = A;
1832
+ return (n, r) => {
1833
+ const u = E;
1806
1834
  return s(), p("form", S(n.$attrs, {
1807
1835
  novalidate: "",
1808
1836
  class: "position-relative shadow-sm border p-4 bg-white",
1809
- onSubmit: K(o, ["prevent"])
1837
+ onSubmit: K(l, ["prevent"])
1810
1838
  }), [
1811
- n.hideTitle ? F("", !0) : (s(), p(O, { key: 0 }, [
1812
- k(n.$slots, "title", {}, () => [
1813
- c("h3", {
1814
- class: B(n.titleClass),
1839
+ n.hideTitle ? B("", !0) : (s(), p(O, { key: 0 }, [
1840
+ _(n.$slots, "title", {}, () => [
1841
+ m("h3", {
1842
+ class: F(n.titleClass),
1815
1843
  "data-cy": "form-title"
1816
1844
  }, g(n.title), 3)
1817
1845
  ]),
1818
- At
1846
+ Rt
1819
1847
  ], 64)),
1820
- a.value.hasError ? (s(), w(ee, {
1848
+ a.value.hasError ? (s(), w(ae, {
1821
1849
  key: 1,
1822
1850
  severity: "danger",
1823
1851
  "data-cy": "error"
1824
1852
  }, {
1825
1853
  default: v(() => [
1826
- k(n.$slots, "error", {
1854
+ _(n.$slots, "error", {
1827
1855
  error: a.value.message
1828
1856
  }, () => [
1829
- V(g(a.value.message), 1)
1857
+ I(g(a.value.message), 1)
1830
1858
  ])
1831
1859
  ]),
1832
1860
  _: 3
1833
- })) : F("", !0),
1834
- k(n.$slots, "default"),
1835
- c("div", Nt, [
1836
- k(n.$slots, "cancel", {}, () => [
1837
- n.hideCancel ? F("", !0) : (s(), w(m, {
1861
+ })) : B("", !0),
1862
+ _(n.$slots, "default"),
1863
+ m("div", Lt, [
1864
+ _(n.$slots, "cancel", {}, () => [
1865
+ n.hideCancel ? B("", !0) : (s(), w(u, {
1838
1866
  key: 0,
1839
1867
  "data-cy": "cancel-btn",
1840
1868
  type: "reset",
1841
1869
  severity: "secondary",
1842
1870
  outlined: "",
1843
- onClick: i[0] || (i[0] = (y) => n.$emit("cancel"))
1871
+ onClick: r[0] || (r[0] = (f) => n.$emit("cancel"))
1844
1872
  }, {
1845
1873
  default: v(() => [
1846
- V(g(n.cancelText), 1)
1874
+ I(g(n.cancelText), 1)
1847
1875
  ]),
1848
1876
  _: 1
1849
1877
  }))
1850
1878
  ]),
1851
- k(n.$slots, "submit", { submit: o }, () => [
1852
- b(m, {
1879
+ _(n.$slots, "submit", { submit: l }, () => [
1880
+ y(u, {
1853
1881
  "data-cy": "submit-btn",
1854
1882
  type: "submit",
1855
1883
  severity: "primary",
1856
1884
  class: "ms-auto"
1857
1885
  }, {
1858
1886
  default: v(() => [
1859
- V(g(n.submitText), 1)
1887
+ I(g(n.submitText), 1)
1860
1888
  ]),
1861
1889
  _: 1
1862
1890
  })
1863
1891
  ])
1864
1892
  ]),
1865
- l.value ? (s(), w(ce, {
1893
+ o.value ? (s(), w(pe, {
1866
1894
  key: 2,
1867
1895
  "data-cy": "loading-spinner"
1868
- })) : F("", !0)
1896
+ })) : B("", !0)
1869
1897
  ], 16);
1870
1898
  };
1871
1899
  }
1872
- }), Et = { class: "d-flex flex-column" }, Rt = ["for"], ml = /* @__PURE__ */ x({
1900
+ }), jt = { class: "d-flex flex-column" }, Ht = ["for"], bl = /* @__PURE__ */ $({
1873
1901
  __name: "ForgeFormField",
1874
1902
  props: {
1875
1903
  name: {},
@@ -1880,61 +1908,61 @@ const ct = { key: 0 }, mt = {
1880
1908
  placeholder: { default: "" }
1881
1909
  },
1882
1910
  setup(e) {
1883
- const t = e, { errors: l, value: a, errorMessage: o } = W(() => t.name, t.rules), n = h(() => l.value.length > 0);
1884
- return (i, m) => {
1885
- const y = Be, r = $e, _ = le;
1886
- return s(), p("div", Et, [
1911
+ const t = e, { errors: o, value: a, errorMessage: l } = Z(() => t.name, t.rules), n = k(() => o.value.length > 0);
1912
+ return (r, u) => {
1913
+ const f = Te, d = Ce, b = ne;
1914
+ return s(), p("div", jt, [
1887
1915
  t.type !== "checkbox" ? (s(), p("label", {
1888
1916
  key: 0,
1889
1917
  for: t.name
1890
- }, g(t.label), 9, Rt)) : F("", !0),
1891
- t.type === "checkbox" ? (s(), w(it, S({
1918
+ }, g(t.label), 9, Ht)) : B("", !0),
1919
+ t.type === "checkbox" ? (s(), w(me, S({
1892
1920
  key: 1,
1893
1921
  id: t.name,
1894
- rules: i.rules,
1922
+ rules: r.rules,
1895
1923
  label: t.label
1896
- }, i.$attrs), null, 16, ["id", "rules", "label"])) : t.type === "number" ? (s(), w(u(de), S({
1924
+ }, r.$attrs), null, 16, ["id", "rules", "label"])) : t.type === "number" ? (s(), w(c(ue), S({
1897
1925
  key: 2,
1898
1926
  id: t.name,
1899
1927
  placeholder: t.placeholder,
1900
- modelValue: u(a),
1901
- "onUpdate:modelValue": m[0] || (m[0] = (d) => H(a) ? a.value = d : null),
1928
+ modelValue: c(a),
1929
+ "onUpdate:modelValue": u[0] || (u[0] = (i) => L(a) ? a.value = i : null),
1902
1930
  "input-class": { "is-invalid": n.value },
1903
1931
  class: { "is-invalid": n.value }
1904
- }, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "input-class", "class"])) : t.type === "textarea" ? (s(), w(y, S({
1932
+ }, r.$attrs), null, 16, ["id", "placeholder", "modelValue", "input-class", "class"])) : t.type === "textarea" ? (s(), w(f, S({
1905
1933
  key: 3,
1906
1934
  id: t.name,
1907
1935
  placeholder: t.placeholder,
1908
- modelValue: u(a),
1909
- "onUpdate:modelValue": m[1] || (m[1] = (d) => H(a) ? a.value = d : null),
1936
+ modelValue: c(a),
1937
+ "onUpdate:modelValue": u[1] || (u[1] = (i) => L(a) ? a.value = i : null),
1910
1938
  class: { "is-invalid": n.value }
1911
- }, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) : t.type === "mask" ? (s(), w(r, S({
1939
+ }, r.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) : t.type === "mask" ? (s(), w(d, S({
1912
1940
  key: 4,
1913
1941
  id: t.name,
1914
1942
  placeholder: t.placeholder,
1915
- modelValue: u(a),
1916
- "onUpdate:modelValue": m[2] || (m[2] = (d) => H(a) ? a.value = d : null),
1943
+ modelValue: c(a),
1944
+ "onUpdate:modelValue": u[2] || (u[2] = (i) => L(a) ? a.value = i : null),
1917
1945
  mask: t.mask,
1918
1946
  class: { "is-invalid": n.value }
1919
- }, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "mask", "class"])) : t.type === "text" ? (s(), w(_, S({
1947
+ }, r.$attrs), null, 16, ["id", "placeholder", "modelValue", "mask", "class"])) : t.type === "text" ? (s(), w(b, S({
1920
1948
  key: 5,
1921
1949
  id: t.name,
1922
1950
  placeholder: t.placeholder,
1923
- modelValue: u(a),
1924
- "onUpdate:modelValue": m[3] || (m[3] = (d) => H(a) ? a.value = d : null),
1951
+ modelValue: c(a),
1952
+ "onUpdate:modelValue": u[3] || (u[3] = (i) => L(a) ? a.value = i : null),
1925
1953
  class: { "is-invalid": n.value }
1926
- }, i.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) : F("", !0),
1927
- t.type !== "checkbox" ? j((s(), p("small", {
1954
+ }, r.$attrs), null, 16, ["id", "placeholder", "modelValue", "class"])) : B("", !0),
1955
+ t.type !== "checkbox" ? H((s(), p("small", {
1928
1956
  key: 6,
1929
1957
  "data-cy": "error",
1930
1958
  class: "invalid-feedback"
1931
- }, g(u(o)), 513)), [
1959
+ }, g(c(l)), 513)), [
1932
1960
  [q, n.value]
1933
- ]) : F("", !0)
1961
+ ]) : B("", !0)
1934
1962
  ]);
1935
1963
  };
1936
1964
  }
1937
- }), pl = /* @__PURE__ */ x({
1965
+ }), fl = /* @__PURE__ */ $({
1938
1966
  __name: "ForgeChips",
1939
1967
  props: {
1940
1968
  chipSeverity: { default: "primary" },
@@ -1962,16 +1990,16 @@ const ct = { key: 0 }, mt = {
1962
1990
  unstyled: { type: Boolean }
1963
1991
  },
1964
1992
  setup(e) {
1965
- const t = e, { errors: l, value: a, errorMessage: o } = W(() => t.name, t.rules);
1993
+ const t = e, { errors: o, value: a, errorMessage: l } = Z(() => t.name, t.rules);
1966
1994
  a.value = t.modelValue;
1967
- const n = h(() => l.value.length > 0), i = h(() => ({
1995
+ const n = k(() => o.value.length > 0), r = k(() => ({
1968
1996
  inputtoken: "list-unstyled",
1969
1997
  input: "border-0",
1970
- container: ({ props: m }) => ({
1998
+ container: ({ props: u }) => ({
1971
1999
  class: [
1972
2000
  "form-control mb-0 d-flex",
1973
2001
  {
1974
- disabled: m.disabled,
2002
+ disabled: u.disabled,
1975
2003
  "is-invalid": n.value
1976
2004
  }
1977
2005
  ]
@@ -1995,35 +2023,35 @@ const ct = { key: 0 }, mt = {
1995
2023
  ]
1996
2024
  }
1997
2025
  }));
1998
- return (m, y) => {
1999
- const r = Fe;
2026
+ return (u, f) => {
2027
+ const d = Ve;
2000
2028
  return s(), p(O, null, [
2001
- b(r, S({ ...t, ...m.$attrs }, {
2002
- pt: i.value,
2003
- "model-value": u(a),
2004
- "onUpdate:modelValue": y[0] || (y[0] = (_) => H(a) ? a.value = _ : null)
2029
+ y(d, S({ ...t, ...u.$attrs }, {
2030
+ pt: r.value,
2031
+ "model-value": c(a),
2032
+ "onUpdate:modelValue": f[0] || (f[0] = (b) => L(a) ? a.value = b : null)
2005
2033
  }), {
2006
- removetokenicon: v(({ removeCallback: _ }) => [
2007
- j(b(u(C), {
2034
+ removetokenicon: v(({ removeCallback: b }) => [
2035
+ H(y(c(C), {
2008
2036
  icon: "bi:x",
2009
2037
  class: "cursor-pointer",
2010
- onClick: _
2038
+ onClick: b
2011
2039
  }, null, 8, ["onClick"]), [
2012
2040
  [q, !t.disabled]
2013
2041
  ])
2014
2042
  ]),
2015
2043
  _: 1
2016
2044
  }, 16, ["pt", "model-value"]),
2017
- j(c("small", {
2045
+ H(m("small", {
2018
2046
  "data-cy": "error",
2019
2047
  class: "text-invalid"
2020
- }, g(u(o)), 513), [
2048
+ }, g(c(l)), 513), [
2021
2049
  [q, n.value]
2022
2050
  ])
2023
2051
  ], 64);
2024
2052
  };
2025
2053
  }
2026
- }), Lt = /* @__PURE__ */ x({
2054
+ }), qt = /* @__PURE__ */ $({
2027
2055
  __name: "ForgeProgressBar",
2028
2056
  props: {
2029
2057
  severity: { default: "primary" },
@@ -2038,7 +2066,7 @@ const ct = { key: 0 }, mt = {
2038
2066
  unstyled: { type: Boolean }
2039
2067
  },
2040
2068
  setup(e) {
2041
- const t = e, l = h(() => t.striped ? "progress-bar-striped" : null), a = h(() => t.animate ? "progress-bar-animated" : null), o = h(() => {
2069
+ const t = e, o = k(() => t.striped ? "progress-bar-striped" : null), a = k(() => t.animate ? "progress-bar-animated" : null), l = k(() => {
2042
2070
  switch (t.severity) {
2043
2071
  case "brand":
2044
2072
  return "bg-brand";
@@ -2057,25 +2085,25 @@ const ct = { key: 0 }, mt = {
2057
2085
  default:
2058
2086
  return "bg-primary";
2059
2087
  }
2060
- }), n = h(() => ({
2088
+ }), n = k(() => ({
2061
2089
  root: {
2062
2090
  style: t.pixelWidth ? `width: ${t.pixelWidth}px` : ""
2063
2091
  },
2064
2092
  value: {
2065
- class: [o.value, l.value, a.value]
2093
+ class: [l.value, o.value, a.value]
2066
2094
  }
2067
2095
  }));
2068
- return (i, m) => {
2069
- const y = Se;
2070
- return s(), w(y, S({ ...i.$attrs, ...t }, { pt: n.value }), {
2096
+ return (r, u) => {
2097
+ const f = Pe;
2098
+ return s(), w(f, S({ ...r.$attrs, ...t }, { pt: n.value }), {
2071
2099
  default: v(() => [
2072
- k(i.$slots, "default")
2100
+ _(r.$slots, "default")
2073
2101
  ]),
2074
2102
  _: 3
2075
2103
  }, 16, ["pt"]);
2076
2104
  };
2077
2105
  }
2078
- }), jt = { class: "value text-light w-100 text-center" }, yl = /* @__PURE__ */ x({
2106
+ }), Gt = { class: "value text-light w-100 text-center" }, gl = /* @__PURE__ */ $({
2079
2107
  __name: "ForgeStatWidget",
2080
2108
  props: {
2081
2109
  size: { default: "md" },
@@ -2083,18 +2111,18 @@ const ct = { key: 0 }, mt = {
2083
2111
  },
2084
2112
  setup(e) {
2085
2113
  const t = e;
2086
- return (l, a) => (s(), p("div", S(l.$attrs, {
2114
+ return (o, a) => (s(), p("div", S(o.$attrs, {
2087
2115
  class: `d-flex shadow m-2 align-items-center widget--${t.size} bg-${t.severity}`
2088
2116
  }), [
2089
- c("span", jt, [
2090
- k(l.$slots, "default")
2117
+ m("span", Gt, [
2118
+ _(o.$slots, "default")
2091
2119
  ])
2092
2120
  ], 16));
2093
2121
  }
2094
- }), Ht = {
2122
+ }), Kt = {
2095
2123
  class: "d-flex flex-column align-items-center",
2096
2124
  "data-cy": "stepper"
2097
- }, qt = { class: "d-flex align-items-center justify-content-center w-100" }, bl = /* @__PURE__ */ x({
2125
+ }, Wt = { class: "d-flex align-items-center justify-content-center w-100" }, hl = /* @__PURE__ */ $({
2098
2126
  __name: "ForgeStepper",
2099
2127
  props: {
2100
2128
  currentStep: { default: 0 },
@@ -2110,114 +2138,114 @@ const ct = { key: 0 }, mt = {
2110
2138
  },
2111
2139
  emits: ["update:currentStep"],
2112
2140
  setup(e, { emit: t }) {
2113
- const l = t, a = e, o = P(a.currentStep), n = () => {
2141
+ const o = t, a = e, l = V(a.currentStep), n = () => {
2114
2142
  do
2115
- o.value--;
2116
- while (a.model[o.value].disabled);
2117
- l("update:currentStep", o.value);
2118
- }, i = () => {
2119
- if (o.value < a.model.length - 1)
2143
+ l.value--;
2144
+ while (a.model[l.value].disabled);
2145
+ o("update:currentStep", l.value);
2146
+ }, r = () => {
2147
+ if (l.value < a.model.length - 1)
2120
2148
  do
2121
- o.value++;
2122
- while (a.model[o.value].disabled);
2123
- l("update:currentStep", o.value);
2124
- }, m = h(() => {
2125
- const r = a.model.findIndex((_) => !_.disabled);
2126
- return !(r < o.value && r > -1);
2127
- }), y = h(() => ({
2128
- menuitem: (r) => ({
2149
+ l.value++;
2150
+ while (a.model[l.value].disabled);
2151
+ o("update:currentStep", l.value);
2152
+ }, u = k(() => {
2153
+ const d = a.model.findIndex((b) => !b.disabled);
2154
+ return !(d < l.value && d > -1);
2155
+ }), f = k(() => ({
2156
+ menuitem: (d) => ({
2129
2157
  class: [{
2130
- "cursor-pointer": !r.context.disabled
2158
+ "cursor-pointer": !d.context.disabled
2131
2159
  }]
2132
2160
  }),
2133
- step: (r) => ({
2161
+ step: (d) => ({
2134
2162
  class: [
2135
2163
  "d-flex align-items-center justify-content-center mb-2 step",
2136
2164
  {
2137
- inactive: r.context.disabled,
2138
- "bg-primary text-white": r.context.index === o.value && (a.severity === void 0 || a.severity === "primary"),
2139
- "bg-brand text-white": r.context.index === o.value && a.severity === "brand",
2140
- "bg-secondary text-white": r.context.index === o.value && a.severity === "secondary",
2141
- "bg-success text-white": r.context.index === o.value && a.severity === "success",
2142
- "bg-warning text-white": r.context.index === o.value && a.severity === "warning",
2143
- "bg-danger text-white": r.context.index === o.value && a.severity === "danger",
2144
- "bg-info text-white": r.context.index === o.value && a.severity === "info"
2165
+ inactive: d.context.disabled,
2166
+ "bg-primary text-white": d.context.index === l.value && (a.severity === void 0 || a.severity === "primary"),
2167
+ "bg-brand text-white": d.context.index === l.value && a.severity === "brand",
2168
+ "bg-secondary text-white": d.context.index === l.value && a.severity === "secondary",
2169
+ "bg-success text-white": d.context.index === l.value && a.severity === "success",
2170
+ "bg-warning text-white": d.context.index === l.value && a.severity === "warning",
2171
+ "bg-danger text-white": d.context.index === l.value && a.severity === "danger",
2172
+ "bg-info text-white": d.context.index === l.value && a.severity === "info"
2145
2173
  }
2146
2174
  ]
2147
2175
  }),
2148
- label: (r) => ({
2176
+ label: (d) => ({
2149
2177
  class: [
2150
2178
  "h5",
2151
2179
  {
2152
- "border-bottom border-2 border-primary": r.context.index === o.value && (a.severity === void 0 || a.severity === "primary"),
2153
- "border-bottom border-2 border-brand": r.context.index === o.value && a.severity === "brand",
2154
- "border-bottom border-2 border-secondary": r.context.index === o.value && a.severity === "secondary",
2155
- "border-bottom border-2 border-success": r.context.index === o.value && a.severity === "success",
2156
- "border-bottom border-2 border-warning": r.context.index === o.value && a.severity === "warning",
2157
- "border-bottom border-2 border-danger": r.context.index === o.value && a.severity === "danger",
2158
- "border-bottom border-2 border-info": r.context.index === o.value && a.severity === "info"
2180
+ "border-bottom border-2 border-primary": d.context.index === l.value && (a.severity === void 0 || a.severity === "primary"),
2181
+ "border-bottom border-2 border-brand": d.context.index === l.value && a.severity === "brand",
2182
+ "border-bottom border-2 border-secondary": d.context.index === l.value && a.severity === "secondary",
2183
+ "border-bottom border-2 border-success": d.context.index === l.value && a.severity === "success",
2184
+ "border-bottom border-2 border-warning": d.context.index === l.value && a.severity === "warning",
2185
+ "border-bottom border-2 border-danger": d.context.index === l.value && a.severity === "danger",
2186
+ "border-bottom border-2 border-info": d.context.index === l.value && a.severity === "info"
2159
2187
  }
2160
2188
  ]
2161
2189
  })
2162
2190
  }));
2163
- return (r, _) => {
2164
- const d = A, f = Te, $ = Ce;
2165
- return s(), p("div", Ht, [
2166
- c("div", qt, [
2167
- b(d, {
2191
+ return (d, b) => {
2192
+ const i = E, h = ze, x = Ie;
2193
+ return s(), p("div", Kt, [
2194
+ m("div", Wt, [
2195
+ y(i, {
2168
2196
  severity: a.severity,
2169
- disabled: m.value,
2197
+ disabled: u.value,
2170
2198
  onClick: n,
2171
2199
  class: "rounded-circle py-2 me-4",
2172
2200
  "data-cy": "back-button"
2173
2201
  }, {
2174
2202
  default: v(() => [
2175
- b(u(C), {
2203
+ y(c(C), {
2176
2204
  icon: "bi:chevron-left",
2177
2205
  class: "mb-1"
2178
2206
  })
2179
2207
  ]),
2180
2208
  _: 1
2181
2209
  }, 8, ["severity", "disabled"]),
2182
- b(f, {
2183
- "active-step": o.value,
2184
- "onUpdate:activeStep": _[0] || (_[0] = (T) => o.value = T),
2210
+ y(h, {
2211
+ "active-step": l.value,
2212
+ "onUpdate:activeStep": b[0] || (b[0] = (T) => l.value = T),
2185
2213
  model: a.model,
2186
- pt: y.value,
2214
+ pt: f.value,
2187
2215
  readonly: !1
2188
2216
  }, null, 8, ["active-step", "model", "pt"])
2189
2217
  ]),
2190
- b($),
2191
- (s(!0), p(O, null, E(a.model, (T, I) => (s(), p("div", {
2192
- key: I,
2218
+ y(x),
2219
+ (s(!0), p(O, null, R(a.model, (T, P) => (s(), p("div", {
2220
+ key: P,
2193
2221
  class: "w-100"
2194
2222
  }, [
2195
- I === o.value ? k(r.$slots, T.key ?? T.label, {
2223
+ P === l.value ? _(d.$slots, T.key ?? T.label, {
2196
2224
  key: 0,
2197
- nextStep: i,
2225
+ nextStep: r,
2198
2226
  previousStep: n
2199
2227
  }, () => [
2200
- b(ee, {
2228
+ y(ae, {
2201
2229
  severity: "info",
2202
2230
  "data-cy": "alert"
2203
2231
  }, {
2204
2232
  default: v(() => [
2205
- V(" Please add Slot Content for the key " + g(T.key ?? T.label) + " ", 1),
2206
- b(d, {
2233
+ I(" Please add Slot Content for the key " + g(T.key ?? T.label) + " ", 1),
2234
+ y(i, {
2207
2235
  severity: "primary",
2208
2236
  label: "Next",
2209
- onClick: i,
2237
+ onClick: r,
2210
2238
  class: "ms-2"
2211
2239
  })
2212
2240
  ]),
2213
2241
  _: 2
2214
2242
  }, 1024)
2215
- ]) : F("", !0)
2243
+ ]) : B("", !0)
2216
2244
  ]))), 128))
2217
2245
  ]);
2218
2246
  };
2219
2247
  }
2220
- }), Gt = { class: "p-4 text-wrap w-100" }, Kt = { class: "p-4 text-wrap w-100" }, vl = /* @__PURE__ */ x({
2248
+ }), Zt = { class: "p-4 text-wrap w-100" }, Yt = { class: "p-4 text-wrap w-100" }, wl = /* @__PURE__ */ $({
2221
2249
  __name: "ForgeTile",
2222
2250
  props: {
2223
2251
  severity: { default: "primary" },
@@ -2225,48 +2253,48 @@ const ct = { key: 0 }, mt = {
2225
2253
  clickable: { type: Boolean, default: !1 }
2226
2254
  },
2227
2255
  setup(e) {
2228
- const t = e, l = h(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "border-0" : `tile-bar-${t.barPosition}`}`), a = h(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`}`);
2229
- return (o, n) => {
2230
- const i = A;
2231
- return t.clickable ? (s(), w(i, {
2256
+ const t = e, o = k(() => `${t.severity === void 0 ? "tile-primary" : `tile-${t.severity}`} ${t.barPosition === "none" ? "border-0" : `tile-bar-${t.barPosition}`}`), a = k(() => `${t.severity === void 0 ? "tile-primary border-primary" : `tile-${t.severity} border-${t.severity}`} ${t.barPosition === "none" ? "" : `tile-bar-${t.barPosition}`}`);
2257
+ return (l, n) => {
2258
+ const r = E;
2259
+ return t.clickable ? (s(), w(r, {
2232
2260
  key: 0,
2233
- class: B(["d-flex w-100 p-0 text-body", l.value]),
2261
+ class: F(["d-flex w-100 p-0 text-body", o.value]),
2234
2262
  severity: t.severity,
2235
2263
  unstyled: "",
2236
2264
  "data-cy": "button-tile"
2237
2265
  }, {
2238
2266
  default: v(() => [
2239
- c("div", Gt, [
2240
- k(o.$slots, "default", {}, () => [
2241
- V("Tile Content")
2267
+ m("div", Zt, [
2268
+ _(l.$slots, "default", {}, () => [
2269
+ I("Tile Content")
2242
2270
  ])
2243
2271
  ])
2244
2272
  ]),
2245
2273
  _: 3
2246
2274
  }, 8, ["severity", "class"])) : (s(), p("div", {
2247
2275
  key: 1,
2248
- class: B(["d-flex w-100", a.value]),
2276
+ class: F(["d-flex w-100", a.value]),
2249
2277
  "data-cy": "tile"
2250
2278
  }, [
2251
- c("div", Kt, [
2252
- k(o.$slots, "default", {}, () => [
2253
- V("Tile Content")
2279
+ m("div", Yt, [
2280
+ _(l.$slots, "default", {}, () => [
2281
+ I("Tile Content")
2254
2282
  ])
2255
2283
  ])
2256
2284
  ], 2));
2257
2285
  };
2258
2286
  }
2259
2287
  });
2260
- function Y(e, t) {
2288
+ function X(e, t) {
2261
2289
  return e > 1 ? `${t}s` : t;
2262
2290
  }
2263
- const Wt = {
2291
+ const Jt = {
2264
2292
  class: "d-flex justify-content-start align-items-baseline",
2265
2293
  "data-cy": "pagination-header"
2266
- }, Zt = { class: "ms-2" }, Yt = { key: 0 }, Jt = /* @__PURE__ */ c("span", { class: "mx-2" }, "|", -1), Xt = {
2294
+ }, Xt = { class: "ms-2" }, Qt = { key: 0 }, ea = /* @__PURE__ */ m("span", { class: "mx-2" }, "|", -1), ta = {
2267
2295
  class: "w-auto",
2268
2296
  "data-cy": "total"
2269
- }, Qt = /* @__PURE__ */ x({
2297
+ }, aa = /* @__PURE__ */ $({
2270
2298
  __name: "ForgePaginationHeader",
2271
2299
  props: {
2272
2300
  total: {},
@@ -2275,31 +2303,31 @@ const Wt = {
2275
2303
  },
2276
2304
  emits: ["update:perPage"],
2277
2305
  setup(e, { emit: t }) {
2278
- const l = t, a = e, o = (i) => {
2279
- l("update:perPage", i.value);
2280
- }, n = h(() => {
2281
- const i = Math.ceil(a.total / a.perPage);
2282
- return `${i} ${Y(i, "page")}`;
2306
+ const o = t, a = e, l = (r) => {
2307
+ o("update:perPage", r.value);
2308
+ }, n = k(() => {
2309
+ const r = Math.ceil(a.total / a.perPage);
2310
+ return `${r} ${X(r, "page")}`;
2283
2311
  });
2284
- return (i, m) => (s(), p("div", Wt, [
2285
- V(" Number of results per page "),
2286
- c("div", Zt, [
2287
- b(u(oe), {
2312
+ return (r, u) => (s(), p("div", Jt, [
2313
+ I(" Number of results per page "),
2314
+ m("div", Xt, [
2315
+ y(c(se), {
2288
2316
  options: a.pageSizes,
2289
2317
  "model-value": a.perPage,
2290
- onChange: m[0] || (m[0] = (y) => o(y))
2318
+ onChange: u[0] || (u[0] = (f) => l(f))
2291
2319
  }, null, 8, ["options", "model-value"])
2292
2320
  ]),
2293
- a.total ? (s(), p("div", Yt, [
2294
- Jt,
2295
- c("span", Xt, g(a.total) + " " + g(u(Y)(a.total, "result")) + " across " + g(n.value), 1)
2296
- ])) : F("", !0)
2321
+ a.total ? (s(), p("div", Qt, [
2322
+ ea,
2323
+ m("span", ta, g(a.total) + " " + g(c(X)(a.total, "result")) + " across " + g(n.value), 1)
2324
+ ])) : B("", !0)
2297
2325
  ]));
2298
2326
  }
2299
- }), ea = { "data-cy": "above-table-slot" }, ta = { class: "d-flex" }, aa = { class: "d-flex align-items-end mb-2" }, la = { key: 0 }, oa = { class: "ms-auto" }, na = {
2327
+ }), la = { "data-cy": "above-table-slot" }, oa = { class: "d-flex" }, na = { class: "d-flex align-items-end mb-2" }, sa = { key: 0 }, ia = { class: "ms-auto" }, ra = {
2300
2328
  class: "d-flex",
2301
2329
  "data-cy": "legacy-page-size"
2302
- }, sa = /* @__PURE__ */ c("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), ia = { "data-cy": "legacy-total" }, fl = /* @__PURE__ */ x({
2330
+ }, da = /* @__PURE__ */ m("span", { class: "me-2 my-auto text-nowrap" }, "Page Size:", -1), ua = { "data-cy": "legacy-total" }, kl = /* @__PURE__ */ $({
2303
2331
  __name: "ForgeTable",
2304
2332
  props: {
2305
2333
  value: {},
@@ -2378,184 +2406,184 @@ const Wt = {
2378
2406
  },
2379
2407
  emits: ["update:filters"],
2380
2408
  setup(e, { emit: t }) {
2381
- const l = t, a = e, o = P([10, 20, 50, 100]), n = P(20), i = P(), m = () => {
2382
- for (const d in a.filters)
2383
- a.filters[d].value = null;
2384
- y(a.filters);
2385
- }, y = (d) => {
2386
- l("update:filters", d);
2387
- }, r = h(() => {
2388
- const d = Math.ceil((a.total ?? a.value.length) / n.value);
2389
- return `${d} ${Y(d, "page")}`;
2390
- }), _ = () => {
2391
- i.value.exportCSV();
2409
+ const o = t, a = e, l = V([10, 20, 50, 100]), n = V(20), r = V(), u = () => {
2410
+ for (const i in a.filters)
2411
+ a.filters[i].value = null;
2412
+ f(a.filters);
2413
+ }, f = (i) => {
2414
+ o("update:filters", i);
2415
+ }, d = k(() => {
2416
+ const i = Math.ceil((a.total ?? a.value.length) / n.value);
2417
+ return `${i} ${X(i, "page")}`;
2418
+ }), b = () => {
2419
+ r.value.exportCSV();
2392
2420
  };
2393
- return (d, f) => (s(), p(O, null, [
2394
- c("span", ea, [
2395
- k(d.$slots, "above-table")
2421
+ return (i, h) => (s(), p(O, null, [
2422
+ m("span", la, [
2423
+ _(i.$slots, "above-table")
2396
2424
  ]),
2397
- b(u(Pe), S({ class: "w-100" }, { ...a, ...d.$attrs }, {
2425
+ y(c(Me), S({ class: "w-100" }, { ...a, ...i.$attrs }, {
2398
2426
  rows: n.value,
2399
- "total-records": d.total,
2427
+ "total-records": i.total,
2400
2428
  "filter-display": a.filters ? "row" : void 0,
2401
2429
  ref_key: "forgeTable",
2402
- ref: i,
2403
- "onUpdate:filters": y,
2430
+ ref: r,
2431
+ "onUpdate:filters": f,
2404
2432
  "data-cy": "table"
2405
- }), Q({
2433
+ }), te({
2406
2434
  header: v(() => [
2407
- c("div", ta, [
2408
- c("div", aa, [
2409
- d.paginator && !d.legacyPaginationFooter ? (s(), p("span", la, [
2410
- b(Qt, {
2411
- total: d.total ?? d.value.length,
2412
- "page-sizes": o.value,
2435
+ m("div", oa, [
2436
+ m("div", na, [
2437
+ i.paginator && !i.legacyPaginationFooter ? (s(), p("span", sa, [
2438
+ y(aa, {
2439
+ total: i.total ?? i.value.length,
2440
+ "page-sizes": l.value,
2413
2441
  "per-page": n.value,
2414
- "onUpdate:perPage": f[0] || (f[0] = ($) => n.value = $)
2442
+ "onUpdate:perPage": h[0] || (h[0] = (x) => n.value = x)
2415
2443
  }, null, 8, ["total", "page-sizes", "per-page"])
2416
- ])) : F("", !0)
2444
+ ])) : B("", !0)
2417
2445
  ]),
2418
- c("div", oa, [
2419
- d.showClearButton ? (s(), w(u(A), {
2446
+ m("div", ia, [
2447
+ i.showClearButton ? (s(), w(c(E), {
2420
2448
  key: 0,
2421
2449
  outlined: "",
2422
- class: B(d.showExporterButton ? "me-2" : ""),
2423
- onClick: m,
2450
+ class: F(i.showExporterButton ? "me-2" : ""),
2451
+ onClick: u,
2424
2452
  "data-cy": "clear-all"
2425
2453
  }, {
2426
2454
  default: v(() => [
2427
- b(u(C), {
2455
+ y(c(C), {
2428
2456
  icon: "bi:funnel-fill",
2429
2457
  width: "24",
2430
2458
  height: "24"
2431
2459
  }),
2432
- V(" Clear ")
2460
+ I(" Clear ")
2433
2461
  ]),
2434
2462
  _: 1
2435
- }, 8, ["class"])) : F("", !0),
2436
- d.showExporterButton ? (s(), w(u(A), {
2463
+ }, 8, ["class"])) : B("", !0),
2464
+ i.showExporterButton ? (s(), w(c(E), {
2437
2465
  key: 1,
2438
2466
  outlined: "",
2439
- onClick: _,
2467
+ onClick: b,
2440
2468
  "data-cy": "exporter"
2441
2469
  }, {
2442
2470
  default: v(() => [
2443
- b(u(C), {
2471
+ y(c(C), {
2444
2472
  icon: "typcn:export",
2445
2473
  width: "24",
2446
2474
  height: "24"
2447
2475
  }),
2448
- V(" Export ")
2476
+ I(" Export ")
2449
2477
  ]),
2450
2478
  _: 1
2451
- })) : F("", !0)
2479
+ })) : B("", !0)
2452
2480
  ])
2453
2481
  ])
2454
2482
  ]),
2455
2483
  default: v(() => [
2456
- k(d.$slots, "default")
2484
+ _(i.$slots, "default")
2457
2485
  ]),
2458
2486
  _: 2
2459
2487
  }, [
2460
- E(d.$slots, ($, T) => ({
2488
+ R(i.$slots, (x, T) => ({
2461
2489
  name: T,
2462
- fn: v((I) => [
2463
- k(d.$slots, T, J(X(I || {})))
2490
+ fn: v((P) => [
2491
+ _(i.$slots, T, Q(ee(P || {})))
2464
2492
  ])
2465
2493
  })),
2466
- d.legacyPaginationFooter ? {
2494
+ i.legacyPaginationFooter ? {
2467
2495
  name: "paginatorstart",
2468
2496
  fn: v(() => [
2469
- c("span", na, [
2470
- sa,
2471
- b(u(oe), {
2472
- options: o.value,
2497
+ m("span", ra, [
2498
+ da,
2499
+ y(c(se), {
2500
+ options: l.value,
2473
2501
  modelValue: n.value,
2474
- "onUpdate:modelValue": f[1] || (f[1] = ($) => n.value = $),
2502
+ "onUpdate:modelValue": h[1] || (h[1] = (x) => n.value = x),
2475
2503
  class: "ms-2"
2476
2504
  }, null, 8, ["options", "modelValue"])
2477
2505
  ])
2478
2506
  ]),
2479
2507
  key: "0"
2480
2508
  } : void 0,
2481
- d.legacyPaginationFooter ? {
2509
+ i.legacyPaginationFooter ? {
2482
2510
  name: "paginatorend",
2483
2511
  fn: v(() => [
2484
- c("span", ia, g(d.total ?? d.value.length) + " " + g(u(Y)(d.total ?? d.value.length, "result")) + " across " + g(r.value), 1)
2512
+ m("span", ua, g(i.total ?? i.value.length) + " " + g(c(X)(i.total ?? i.value.length, "result")) + " across " + g(d.value), 1)
2485
2513
  ]),
2486
2514
  key: "1"
2487
2515
  } : void 0
2488
2516
  ]), 1040, ["rows", "total-records", "filter-display"])
2489
2517
  ], 64));
2490
2518
  }
2491
- }), gl = /* @__PURE__ */ x({
2519
+ }), _l = /* @__PURE__ */ $({
2492
2520
  __name: "ForgeFilterHeader",
2493
2521
  props: {
2494
2522
  dataType: {},
2495
2523
  dropdownOptions: {}
2496
2524
  },
2497
2525
  setup(e) {
2498
- return (t, l) => {
2499
- const a = de;
2500
- return t.dataType === "numeric" ? (s(), w(a, S({ key: 0 }, t.$attrs, { class: "w-100" }), null, 16)) : t.dataType === "date" ? (s(), w(Dt, S({ key: 1 }, t.$attrs, {
2526
+ return (t, o) => {
2527
+ const a = ue;
2528
+ return t.dataType === "numeric" ? (s(), w(a, S({ key: 0 }, t.$attrs, { class: "w-100" }), null, 16)) : t.dataType === "date" ? (s(), w(Et, S({ key: 1 }, t.$attrs, {
2501
2529
  "show-icon": !1,
2502
2530
  "show-on-focus": !0,
2503
2531
  class: "w-100"
2504
- }), null, 16)) : t.dataType === "select" ? (s(), w(u(oe), S({ key: 2 }, t.$attrs, {
2532
+ }), null, 16)) : t.dataType === "select" ? (s(), w(c(se), S({ key: 2 }, t.$attrs, {
2505
2533
  options: t.dropdownOptions,
2506
2534
  class: "dropdown-input w-100"
2507
- }), null, 16, ["options"])) : t.dataType === "multiselect" ? (s(), w(u(Ve), S({ key: 3 }, t.$attrs, {
2535
+ }), null, 16, ["options"])) : t.dataType === "multiselect" ? (s(), w(c(Ue), S({ key: 3 }, t.$attrs, {
2508
2536
  options: t.dropdownOptions,
2509
2537
  showToggleAll: !1,
2510
2538
  placeholder: " ",
2511
2539
  filter: "",
2512
2540
  class: "w-100 dropdown-input"
2513
- }), null, 16, ["options"])) : (s(), w(u(le), S({ key: 4 }, t.$attrs, { class: "w-100" }), null, 16));
2541
+ }), null, 16, ["options"])) : (s(), w(c(ne), S({ key: 4 }, t.$attrs, { class: "w-100" }), null, 16));
2514
2542
  };
2515
2543
  }
2516
2544
  });
2517
- function me(e, t, l, a) {
2518
- const o = t.flatMap((n) => n.file);
2545
+ function ye(e, t, o, a) {
2546
+ const l = t.flatMap((n) => n.file);
2519
2547
  return t = t.map((n) => ({ ...n, status: n.status == "Duplicate" ? "Not Uploaded" : n.status })), e.forEach((n) => {
2520
- const i = o.findIndex((y) => y.name === n.name);
2521
- let m = "Not Uploaded";
2522
- i === -1 ? ((!l.includes(n.type) || !(n.size <= a)) && (m = l.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
2548
+ const r = l.findIndex((f) => f.name === n.name);
2549
+ let u = "Not Uploaded";
2550
+ r === -1 ? ((!o.includes(n.type) || !(n.size <= a)) && (u = o.includes(n.type) ? "InvalidFileSize" : "InvalidFileType"), t.unshift({
2523
2551
  file: n,
2524
- status: m,
2552
+ status: u,
2525
2553
  blobFileName: null
2526
- })) : t[i].status = "Duplicate";
2554
+ })) : t[r].status = "Duplicate";
2527
2555
  }), t;
2528
2556
  }
2529
- async function ra(e, t) {
2557
+ async function ca(e, t) {
2530
2558
  if (e === "Uploaded" && t !== null)
2531
2559
  try {
2532
- await new ue(t).delete();
2533
- } catch (l) {
2534
- if (l !== "BlobNotFound") {
2560
+ await new ce(t).delete();
2561
+ } catch (o) {
2562
+ if (o !== "BlobNotFound") {
2535
2563
  e = "DeleteFileFailed";
2536
2564
  return;
2537
2565
  }
2538
2566
  }
2539
2567
  }
2540
- function ne(e, t = !0, l = 1) {
2568
+ function ie(e, t = !0, o = 1) {
2541
2569
  const a = t ? 1e3 : 1024;
2542
2570
  if (Math.abs(e) < a)
2543
2571
  return e + " B";
2544
- const o = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
2572
+ const l = t ? ["kB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"] : ["KiB", "MiB", "GiB", "TiB", "PiB", "EiB", "ZiB", "YiB"];
2545
2573
  let n = -1;
2546
- const i = 10 ** l;
2574
+ const r = 10 ** o;
2547
2575
  do
2548
2576
  e /= a, ++n;
2549
- while (Math.round(Math.abs(e) * i) / i >= a && n < o.length - 1);
2550
- return e.toFixed(l) + " " + o[n];
2577
+ while (Math.round(Math.abs(e) * r) / r >= a && n < l.length - 1);
2578
+ return e.toFixed(o) + " " + l[n];
2551
2579
  }
2552
- function da(e) {
2580
+ function ma(e) {
2553
2581
  return ["image/gif", "image/png", "image/jpeg", "image/svg"].includes(e);
2554
2582
  }
2555
- function ua(e) {
2583
+ function pa(e) {
2556
2584
  return URL.createObjectURL(e);
2557
2585
  }
2558
- const ca = { class: "d-flex justify-content-between" }, ma = ["accept", "disabled", "multiple"], pa = /* @__PURE__ */ x({
2586
+ const ya = { class: "d-flex justify-content-between" }, va = ["accept", "disabled", "multiple"], ba = /* @__PURE__ */ $({
2559
2587
  __name: "UploadButton",
2560
2588
  props: /* @__PURE__ */ G({
2561
2589
  acceptedFileTypes: {},
@@ -2567,52 +2595,52 @@ const ca = { class: "d-flex justify-content-between" }, ma = ["accept", "disable
2567
2595
  }),
2568
2596
  emits: ["update:modelValue"],
2569
2597
  setup(e) {
2570
- const t = L(e, "modelValue"), l = h(() => e.maxFileInput <= t.value.length), a = (o) => {
2571
- t.value = me(o, t.value, e.acceptedFileTypes, e.maxFileInput);
2598
+ const t = j(e, "modelValue"), o = k(() => e.maxFileInput <= t.value.length), a = (l) => {
2599
+ t.value = ye(l, t.value, e.acceptedFileTypes, e.maxFileInput);
2572
2600
  };
2573
- return (o, n) => (s(), p("div", ca, [
2574
- k(o.$slots, "message"),
2575
- c("div", null, [
2576
- c("input", {
2601
+ return (l, n) => (s(), p("div", ya, [
2602
+ _(l.$slots, "message"),
2603
+ m("div", null, [
2604
+ m("input", {
2577
2605
  id: "file-input",
2578
2606
  type: "file",
2579
2607
  class: "d-none",
2580
- accept: o.acceptedFileTypes.join(", "),
2581
- disabled: l.value,
2582
- multiple: o.maxFileInput > 1,
2583
- onInput: n[0] || (n[0] = (i) => a([...i.target.files]))
2584
- }, null, 40, ma),
2585
- c("label", {
2586
- class: B([{ disabled: l.value }, "btn btn-primary"]),
2608
+ accept: l.acceptedFileTypes.join(", "),
2609
+ disabled: o.value,
2610
+ multiple: l.maxFileInput > 1,
2611
+ onInput: n[0] || (n[0] = (r) => a([...r.target.files]))
2612
+ }, null, 40, va),
2613
+ m("label", {
2614
+ class: F([{ disabled: o.value }, "btn btn-primary"]),
2587
2615
  id: "file-input-button",
2588
2616
  for: "file-input"
2589
2617
  }, [
2590
- k(o.$slots, "button-content", {}, () => [
2591
- b(u(C), {
2618
+ _(l.$slots, "button-content", {}, () => [
2619
+ y(c(C), {
2592
2620
  icon: "bi:upload",
2593
2621
  class: "me-2",
2594
2622
  height: "20px",
2595
2623
  width: "20px"
2596
2624
  }),
2597
- V(" Browse your computer ")
2625
+ I(" Browse your computer ")
2598
2626
  ])
2599
2627
  ], 2)
2600
2628
  ]),
2601
- o.showDragDropArea ? (s(), p("div", {
2629
+ l.showDragDropArea ? (s(), p("div", {
2602
2630
  class: "ms-auto",
2603
- key: o.acceptedFileTypes.length,
2631
+ key: l.acceptedFileTypes.length,
2604
2632
  id: "accepted-file-types"
2605
- }, "Accepted File Types: " + g(o.acceptedFileTypes.map((i) => i.split("/").pop()).join(", ")), 1)) : F("", !0)
2633
+ }, "Accepted File Types: " + g(l.acceptedFileTypes.map((r) => r.split("/").pop()).join(", ")), 1)) : B("", !0)
2606
2634
  ]));
2607
2635
  }
2608
- }), ya = {
2636
+ }), fa = {
2609
2637
  key: 0,
2610
2638
  class: "py-4 px-3",
2611
2639
  id: "placeholder-message"
2612
- }, ba = {
2640
+ }, ga = {
2613
2641
  key: 1,
2614
2642
  class: "d-flex flex-column"
2615
- }, va = /* @__PURE__ */ x({
2643
+ }, ha = /* @__PURE__ */ $({
2616
2644
  __name: "DragDropArea",
2617
2645
  props: /* @__PURE__ */ G({
2618
2646
  maxFileInput: {},
@@ -2624,30 +2652,30 @@ const ca = { class: "d-flex justify-content-between" }, ma = ["accept", "disable
2624
2652
  }),
2625
2653
  emits: ["update:modelValue"],
2626
2654
  setup(e) {
2627
- const t = L(e, "modelValue"), l = P(!1), a = h(() => e.maxFileInput <= t.value.length), o = (n) => {
2628
- l.value = !1, n.dataTransfer.files.length > e.maxFileInput || a.value ? n.preventDefault() : t.value = me([...n.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
2655
+ const t = j(e, "modelValue"), o = V(!1), a = k(() => e.maxFileInput <= t.value.length), l = (n) => {
2656
+ o.value = !1, n.dataTransfer.files.length > e.maxFileInput || a.value ? n.preventDefault() : t.value = ye([...n.dataTransfer.files], t.value, e.acceptedFileTypes, e.maxFileSize);
2629
2657
  };
2630
- return (n, i) => (s(), p("div", {
2658
+ return (n, r) => (s(), p("div", {
2631
2659
  id: "drag-drop-area",
2632
- class: B(`${l.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
2633
- onDragleave: i[0] || (i[0] = K((m) => l.value = !1, ["prevent"])),
2634
- onDragover: i[1] || (i[1] = K((m) => l.value = !0, ["prevent"])),
2635
- onDrop: K(o, ["prevent"])
2660
+ class: F(`${o.value ? "border-2 border-primary bg-body-tertiary" : ""} mt-3 file-container border-dashed border-2`),
2661
+ onDragleave: r[0] || (r[0] = K((u) => o.value = !1, ["prevent"])),
2662
+ onDragover: r[1] || (r[1] = K((u) => o.value = !0, ["prevent"])),
2663
+ onDrop: K(l, ["prevent"])
2636
2664
  }, [
2637
- t.value.length === 0 ? (s(), p("div", ya, [
2638
- b(u(C), {
2665
+ t.value.length === 0 ? (s(), p("div", fa, [
2666
+ y(c(C), {
2639
2667
  icon: "bi:upload",
2640
2668
  class: "me-2",
2641
2669
  height: "20px",
2642
2670
  width: "20px"
2643
2671
  }),
2644
- V(" Drag and drop files here ")
2645
- ])) : (s(), p("div", ba, [
2646
- k(n.$slots, "default")
2672
+ I(" Drag and drop files here ")
2673
+ ])) : (s(), p("div", ga, [
2674
+ _(n.$slots, "default")
2647
2675
  ]))
2648
2676
  ], 34));
2649
2677
  }
2650
- }), fa = { class: "d-flex align-items-center me-2" }, ga = /* @__PURE__ */ x({
2678
+ }), wa = { class: "d-flex align-items-center me-2" }, ka = /* @__PURE__ */ $({
2651
2679
  __name: "UploadStatus",
2652
2680
  props: {
2653
2681
  fileSize: {},
@@ -2656,12 +2684,12 @@ const ca = { class: "d-flex justify-content-between" }, ma = ["accept", "disable
2656
2684
  uploadStatus: {}
2657
2685
  },
2658
2686
  setup(e) {
2659
- const t = h(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), l = h(() => {
2687
+ const t = k(() => e.uploadStatus === "Failed" || e.uploadStatus === "InvalidFileType" || e.uploadStatus === "InvalidFileSize" ? "danger" : "warning"), o = k(() => {
2660
2688
  switch (e.uploadStatus) {
2661
2689
  case "InvalidFileType":
2662
2690
  return "Upload Failed: File type is not accepted.";
2663
2691
  case "InvalidFileSize":
2664
- return `Upload Failed: File size exceeds the ${ne(e.maxFileSize)} limit.`;
2692
+ return `Upload Failed: File size exceeds the ${ie(e.maxFileSize)} limit.`;
2665
2693
  case "Aborted":
2666
2694
  return "Upload Failed: User cancelled.";
2667
2695
  case "DeleteFileFailed":
@@ -2672,41 +2700,41 @@ const ca = { class: "d-flex justify-content-between" }, ma = ["accept", "disable
2672
2700
  return "Upload Failed: Connection error, please try again.";
2673
2701
  }
2674
2702
  });
2675
- return (a, o) => (s(), p("div", fa, [
2676
- a.uploadStatus === "Uploading" ? (s(), w(Lt, {
2703
+ return (a, l) => (s(), p("div", wa, [
2704
+ a.uploadStatus === "Uploading" ? (s(), w(qt, {
2677
2705
  key: 0,
2678
2706
  pixelWidth: 200,
2679
2707
  animate: "",
2680
2708
  striped: ""
2681
2709
  }, {
2682
2710
  default: v(() => [
2683
- V(g((a.bytesUploaded / a.fileSize * 100).toFixed(0)) + "%", 1)
2711
+ I(g((a.bytesUploaded / a.fileSize * 100).toFixed(0)) + "%", 1)
2684
2712
  ]),
2685
2713
  _: 1
2686
- })) : F("", !0),
2687
- a.uploadStatus !== "Uploading" && a.uploadStatus !== "Not Uploaded" && a.uploadStatus !== "Uploaded" && a.uploadStatus !== "Preparing" ? (s(), w(ee, {
2714
+ })) : B("", !0),
2715
+ a.uploadStatus !== "Uploading" && a.uploadStatus !== "Not Uploaded" && a.uploadStatus !== "Uploaded" && a.uploadStatus !== "Preparing" ? (s(), w(ae, {
2688
2716
  key: 1,
2689
2717
  id: "upload-status-alert",
2690
2718
  severity: t.value,
2691
2719
  class: "mb-0 w-75 ms-auto"
2692
2720
  }, {
2693
2721
  default: v(() => [
2694
- V(g(l.value), 1)
2722
+ I(g(o.value), 1)
2695
2723
  ]),
2696
2724
  _: 1
2697
- }, 8, ["severity"])) : F("", !0)
2725
+ }, 8, ["severity"])) : B("", !0)
2698
2726
  ]));
2699
2727
  }
2700
- }), ha = ["data-cy"], wa = { class: "ms-3 d-flex flex-column" }, ka = {
2728
+ }), _a = ["data-cy"], xa = { class: "ms-3 d-flex flex-column" }, $a = {
2701
2729
  key: 1,
2702
2730
  id: "file-name"
2703
- }, _a = {
2731
+ }, Ba = {
2704
2732
  class: "text-black-50",
2705
2733
  id: "file-type"
2706
- }, xa = {
2734
+ }, Fa = {
2707
2735
  class: "text-black-50",
2708
2736
  id: "file-size"
2709
- }, $a = { class: "ms-auto my-auto d-flex" }, Ba = /* @__PURE__ */ x({
2737
+ }, Sa = { class: "ms-auto my-auto d-flex" }, Ca = /* @__PURE__ */ $({
2710
2738
  __name: "FileInfo",
2711
2739
  props: /* @__PURE__ */ G({
2712
2740
  editableFileName: { type: Boolean },
@@ -2725,55 +2753,55 @@ const ca = { class: "d-flex justify-content-between" }, ma = ["accept", "disable
2725
2753
  }),
2726
2754
  emits: /* @__PURE__ */ G(["deleted"], ["update:file", "update:blobFileName", "update:uploadStatus"]),
2727
2755
  setup(e, { emit: t }) {
2728
- const l = L(e, "file"), a = L(e, "blobFileName"), o = L(e, "uploadStatus"), n = t, i = P(l.value.name), m = P(""), y = P(0), r = P(), _ = h(() => e.acceptedFileTypes.includes(l.value.type)), d = h(() => l.value.size <= e.maxFileSize), f = () => {
2729
- l.value = new File([l.value], i.value, { type: l.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
2730
- }, $ = async () => {
2731
- if (!_.value || !d.value) {
2732
- o.value = _.value ? "InvalidFileSize" : "InvalidFileType";
2756
+ const o = j(e, "file"), a = j(e, "blobFileName"), l = j(e, "uploadStatus"), n = t, r = V(o.value.name), u = V(""), f = V(0), d = V(), b = k(() => e.acceptedFileTypes.includes(o.value.type)), i = k(() => o.value.size <= e.maxFileSize), h = () => {
2757
+ o.value = new File([o.value], r.value, { type: o.value.type, lastModified: (/* @__PURE__ */ new Date()).valueOf() });
2758
+ }, x = async () => {
2759
+ if (!b.value || !i.value) {
2760
+ l.value = b.value ? "InvalidFileSize" : "InvalidFileType";
2733
2761
  return;
2734
2762
  }
2735
- o.value = "Preparing", r.value = new AbortController();
2736
- const [I, M] = await e.getFileUrlAction(l.value.name);
2737
- if (!I) {
2738
- o.value = "Failed";
2763
+ l.value = "Preparing", d.value = new AbortController();
2764
+ const [P, z] = await e.getFileUrlAction(o.value.name);
2765
+ if (!P) {
2766
+ l.value = "Failed";
2739
2767
  return;
2740
2768
  }
2741
2769
  try {
2742
- o.value = "Uploading";
2743
- const z = new ue(I), N = {
2744
- abortSignal: r.value.signal,
2745
- onProgress: (te) => y.value = te.loadedBytes,
2770
+ l.value = "Uploading";
2771
+ const M = new ce(P), N = {
2772
+ abortSignal: d.value.signal,
2773
+ onProgress: (le) => f.value = le.loadedBytes,
2746
2774
  tags: { temp: "true" }
2747
2775
  };
2748
- await z.uploadData(l.value, N), m.value = I, o.value = "Uploaded", a.value = M;
2749
- } catch (z) {
2750
- if (z.name === "AbortError") {
2751
- o.value = "Aborted";
2776
+ await M.uploadData(o.value, N), u.value = P, l.value = "Uploaded", a.value = z;
2777
+ } catch (M) {
2778
+ if (M.name === "AbortError") {
2779
+ l.value = "Aborted";
2752
2780
  return;
2753
2781
  }
2754
- o.value = "Failed";
2782
+ l.value = "Failed";
2755
2783
  }
2756
2784
  }, T = async () => {
2757
- await ra(o.value, m.value), n("deleted", l.value);
2785
+ await ca(l.value, u.value), n("deleted", o.value);
2758
2786
  };
2759
- return ie(() => {
2760
- e.autoUploadToBlob && $();
2761
- }), (I, M) => {
2762
- const z = A;
2787
+ return oe(() => {
2788
+ e.autoUploadToBlob && x();
2789
+ }), (P, z) => {
2790
+ const M = E;
2763
2791
  return s(), p("div", {
2764
2792
  class: "py-4 px-3 d-flex",
2765
- "data-cy": `file-info-${l.value.name}`
2793
+ "data-cy": `file-info-${o.value.name}`
2766
2794
  }, [
2767
- c("div", null, [
2768
- u(da)(l.value.type) ? (s(), w(u(Ie), {
2795
+ m("div", null, [
2796
+ c(ma)(o.value.type) ? (s(), w(c(Oe), {
2769
2797
  key: 0,
2770
2798
  id: "thumbnail-image",
2771
2799
  "image-class": "image-file-thumbnail border",
2772
- src: u(ua)(l.value),
2773
- alt: l.value.name,
2800
+ src: c(pa)(o.value),
2801
+ alt: o.value.name,
2774
2802
  width: "75px",
2775
2803
  preview: ""
2776
- }, null, 8, ["src", "alt"])) : (s(), w(u(C), {
2804
+ }, null, 8, ["src", "alt"])) : (s(), w(c(C), {
2777
2805
  key: 1,
2778
2806
  id: "file-earmark",
2779
2807
  icon: "bi:file-earmark",
@@ -2781,76 +2809,76 @@ const ca = { class: "d-flex justify-content-between" }, ma = ["accept", "disable
2781
2809
  width: "75px"
2782
2810
  }))
2783
2811
  ]),
2784
- c("div", wa, [
2785
- c("div", null, [
2786
- I.editableFileName ? (s(), w(ht, {
2812
+ m("div", xa, [
2813
+ m("div", null, [
2814
+ P.editableFileName ? (s(), w(_t, {
2787
2815
  key: 0,
2788
2816
  id: "edit-file-name",
2789
- modelValue: i.value,
2790
- "onUpdate:modelValue": M[0] || (M[0] = (N) => i.value = N),
2791
- rules: I.customFileNameRules,
2792
- name: l.value.name,
2793
- "complete-action": f
2794
- }, null, 8, ["modelValue", "rules", "name"])) : (s(), p("span", ka, g(l.value.name), 1))
2817
+ modelValue: r.value,
2818
+ "onUpdate:modelValue": z[0] || (z[0] = (N) => r.value = N),
2819
+ rules: P.customFileNameRules,
2820
+ name: o.value.name,
2821
+ "complete-action": h
2822
+ }, null, 8, ["modelValue", "rules", "name"])) : (s(), p("span", $a, g(o.value.name), 1))
2795
2823
  ]),
2796
- c("span", _a, "File type: " + g(l.value.type.split("/").pop()), 1),
2797
- c("span", xa, "File size: " + g(u(ne)(l.value.size)), 1)
2824
+ m("span", Ba, "File type: " + g(o.value.type.split("/").pop()), 1),
2825
+ m("span", Fa, "File size: " + g(c(ie)(o.value.size)), 1)
2798
2826
  ]),
2799
- c("div", $a, [
2800
- (s(), w(ga, {
2801
- key: o.value,
2802
- "file-size": l.value.size,
2803
- "upload-status": o.value,
2804
- "bytes-uploaded": y.value,
2805
- "max-file-size": I.maxFileSize
2827
+ m("div", Sa, [
2828
+ (s(), w(ka, {
2829
+ key: l.value,
2830
+ "file-size": o.value.size,
2831
+ "upload-status": l.value,
2832
+ "bytes-uploaded": f.value,
2833
+ "max-file-size": P.maxFileSize
2806
2834
  }, null, 8, ["file-size", "upload-status", "bytes-uploaded", "max-file-size"])),
2807
- o.value === "Not Uploaded" || o.value === "Failed" || o.value === "Duplicate" || o.value === "Aborted" ? (s(), w(z, {
2835
+ l.value === "Not Uploaded" || l.value === "Failed" || l.value === "Duplicate" || l.value === "Aborted" ? (s(), w(M, {
2808
2836
  key: 0,
2809
2837
  link: "",
2810
- onClick: $
2838
+ onClick: x
2811
2839
  }, {
2812
2840
  default: v(() => [
2813
- b(u(C), {
2814
- icon: o.value === "Not Uploaded" || o.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
2841
+ y(c(C), {
2842
+ icon: l.value === "Not Uploaded" || l.value === "Duplicate" ? "bi:upload" : "bi:arrow-clockwise"
2815
2843
  }, null, 8, ["icon"])
2816
2844
  ]),
2817
2845
  _: 1
2818
- })) : F("", !0),
2819
- o.value === "Uploading" ? (s(), w(z, {
2846
+ })) : B("", !0),
2847
+ l.value === "Uploading" ? (s(), w(M, {
2820
2848
  key: 1,
2821
2849
  link: "",
2822
- onClick: M[1] || (M[1] = (N) => r.value.value.abort())
2850
+ onClick: z[1] || (z[1] = (N) => d.value.value.abort())
2823
2851
  }, {
2824
2852
  default: v(() => [
2825
- b(u(C), { icon: "bi:x-circle-fill" })
2853
+ y(c(C), { icon: "bi:x-circle-fill" })
2826
2854
  ]),
2827
2855
  _: 1
2828
- })) : (s(), w(z, {
2856
+ })) : (s(), w(M, {
2829
2857
  key: 2,
2830
2858
  link: "",
2831
2859
  onClick: T,
2832
2860
  id: "delete-button"
2833
2861
  }, {
2834
2862
  default: v(() => [
2835
- b(u(C), { icon: "bi:trash" })
2863
+ y(c(C), { icon: "bi:trash" })
2836
2864
  ]),
2837
2865
  _: 1
2838
2866
  }))
2839
2867
  ])
2840
- ], 8, ha);
2868
+ ], 8, _a);
2841
2869
  };
2842
2870
  }
2843
- }), Fa = { class: "d-flex justify-content-end mt-1" }, Sa = { id: "max-file-size" }, Ca = /* @__PURE__ */ x({
2871
+ }), Ta = { class: "d-flex justify-content-end mt-1" }, Va = { id: "max-file-size" }, Pa = /* @__PURE__ */ $({
2844
2872
  __name: "MaxFileSize",
2845
2873
  props: {
2846
2874
  maxFileSize: {}
2847
2875
  },
2848
2876
  setup(e) {
2849
- return (t, l) => (s(), p("div", Fa, [
2850
- c("div", Sa, "Max file size: " + g(u(ne)(t.maxFileSize)), 1)
2877
+ return (t, o) => (s(), p("div", Ta, [
2878
+ m("div", Va, "Max file size: " + g(c(ie)(t.maxFileSize)), 1)
2851
2879
  ]));
2852
2880
  }
2853
- }), Ta = { "data-cy": "file-uploader" }, Pa = { key: 0 }, hl = /* @__PURE__ */ x({
2881
+ }), Ia = { "data-cy": "file-uploader" }, za = { key: 0 }, xl = /* @__PURE__ */ $({
2854
2882
  __name: "ForgeFileUploader",
2855
2883
  props: /* @__PURE__ */ G({
2856
2884
  acceptedFileTypes: {},
@@ -2867,69 +2895,69 @@ const ca = { class: "d-flex justify-content-between" }, ma = ["accept", "disable
2867
2895
  }),
2868
2896
  emits: ["update:modelValue"],
2869
2897
  setup(e) {
2870
- const t = L(e, "modelValue"), l = e, a = (o) => {
2871
- t.value = t.value.filter((n) => n.file != o);
2898
+ const t = j(e, "modelValue"), o = e, a = (l) => {
2899
+ t.value = t.value.filter((n) => n.file != l);
2872
2900
  };
2873
- return (o, n) => (s(), p("div", Ta, [
2874
- b(pa, S(l, {
2901
+ return (l, n) => (s(), p("div", Ia, [
2902
+ y(ba, S(o, {
2875
2903
  modelValue: t.value,
2876
- "onUpdate:modelValue": n[0] || (n[0] = (i) => t.value = i)
2904
+ "onUpdate:modelValue": n[0] || (n[0] = (r) => t.value = r)
2877
2905
  }), null, 16, ["modelValue"]),
2878
- o.showDragDropArea ? (s(), p("div", Pa, [
2879
- b(va, {
2880
- "max-file-input": l.maxFileInput,
2881
- "max-file-size": l.maxFileSize,
2882
- "accepted-file-types": l.acceptedFileTypes,
2906
+ l.showDragDropArea ? (s(), p("div", za, [
2907
+ y(ha, {
2908
+ "max-file-input": o.maxFileInput,
2909
+ "max-file-size": o.maxFileSize,
2910
+ "accepted-file-types": o.acceptedFileTypes,
2883
2911
  modelValue: t.value,
2884
- "onUpdate:modelValue": n[1] || (n[1] = (i) => t.value = i)
2912
+ "onUpdate:modelValue": n[1] || (n[1] = (r) => t.value = r)
2885
2913
  }, {
2886
2914
  default: v(() => [
2887
- (s(!0), p(O, null, E(t.value, ({ file: i }, m) => (s(), p("span", null, [
2888
- (s(), w(Ba, S({
2889
- key: i.name,
2890
- class: m === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
2891
- file: t.value[m].file,
2892
- "onUpdate:file": (y) => t.value[m].file = y,
2893
- "blob-file-name": t.value[m].blobFileName,
2894
- "onUpdate:blobFileName": (y) => t.value[m].blobFileName = y,
2895
- "upload-status": t.value[m].status,
2896
- "onUpdate:uploadStatus": (y) => t.value[m].status = y,
2915
+ (s(!0), p(O, null, R(t.value, ({ file: r }, u) => (s(), p("span", null, [
2916
+ (s(), w(Ca, S({
2917
+ key: r.name,
2918
+ class: u === t.value.length - 1 || t.value.length == 1 ? "" : "border-bottom",
2919
+ file: t.value[u].file,
2920
+ "onUpdate:file": (f) => t.value[u].file = f,
2921
+ "blob-file-name": t.value[u].blobFileName,
2922
+ "onUpdate:blobFileName": (f) => t.value[u].blobFileName = f,
2923
+ "upload-status": t.value[u].status,
2924
+ "onUpdate:uploadStatus": (f) => t.value[u].status = f,
2897
2925
  ref_for: !0
2898
- }, l, { onDeleted: a }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
2926
+ }, o, { onDeleted: a }), null, 16, ["class", "file", "onUpdate:file", "blob-file-name", "onUpdate:blobFileName", "upload-status", "onUpdate:uploadStatus"]))
2899
2927
  ]))), 256))
2900
2928
  ]),
2901
2929
  _: 1
2902
2930
  }, 8, ["max-file-input", "max-file-size", "accepted-file-types", "modelValue"]),
2903
- b(Ca, {
2904
- "max-file-size": l.maxFileSize
2931
+ y(Pa, {
2932
+ "max-file-size": o.maxFileSize
2905
2933
  }, null, 8, ["max-file-size"])
2906
- ])) : F("", !0)
2934
+ ])) : B("", !0)
2907
2935
  ]));
2908
2936
  }
2909
2937
  });
2910
2938
  export {
2911
- ll as Bootstrap_PT,
2912
- ol as ForgeActionButton,
2913
- ee as ForgeAlert,
2914
- it as ForgeCheckbox,
2915
- pl as ForgeChips,
2916
- Dt as ForgeDatepicker,
2917
- hl as ForgeFileUploader,
2918
- gl as ForgeFilterHeader,
2919
- cl as ForgeForm,
2920
- ml as ForgeFormField,
2921
- ht as ForgeInlineEditor,
2922
- nl as ForgeLink,
2923
- ce as ForgeLoader,
2924
- sl as ForgeModal,
2925
- Ft as ForgeMultiSelect,
2926
- rl as ForgeMultiSelectPreview,
2927
- il as ForgeNavbar,
2928
- dl as ForgePageHeader,
2929
- Lt as ForgeProgressBar,
2930
- ul as ForgeRemainingCharacters,
2931
- yl as ForgeStatWidget,
2932
- bl as ForgeStepper,
2933
- fl as ForgeTable,
2934
- vl as ForgeTile
2939
+ il as Bootstrap_PT,
2940
+ rl as ForgeActionButton,
2941
+ ae as ForgeAlert,
2942
+ me as ForgeCheckbox,
2943
+ fl as ForgeChips,
2944
+ Et as ForgeDatepicker,
2945
+ xl as ForgeFileUploader,
2946
+ _l as ForgeFilterHeader,
2947
+ vl as ForgeForm,
2948
+ bl as ForgeFormField,
2949
+ _t as ForgeInlineEditor,
2950
+ dl as ForgeLink,
2951
+ pe as ForgeLoader,
2952
+ ul as ForgeModal,
2953
+ Tt as ForgeMultiSelect,
2954
+ ml as ForgeMultiSelectPreview,
2955
+ cl as ForgeNavbar,
2956
+ pl as ForgePageHeader,
2957
+ qt as ForgeProgressBar,
2958
+ yl as ForgeRemainingCharacters,
2959
+ gl as ForgeStatWidget,
2960
+ hl as ForgeStepper,
2961
+ kl as ForgeTable,
2962
+ wl as ForgeTile
2935
2963
  };