@vanjana/vue-ui 0.1.62 → 0.1.85

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 (54) hide show
  1. package/dist/theme-light.css +1 -1
  2. package/dist/types/components/chip-group.vue.d.ts +40 -0
  3. package/dist/types/components/chip-selector.vue.d.ts +24 -0
  4. package/dist/types/components/chip.vue.d.ts +2 -2
  5. package/dist/types/components/dialog.vue.d.ts +2 -2
  6. package/dist/types/components/editable-label.vue.d.ts +13 -0
  7. package/dist/types/components/form/form-field.vue.d.ts +2 -2
  8. package/dist/types/components/form/input-select.vue.d.ts +1 -1
  9. package/dist/types/components/form/input-slider.vue.d.ts +2 -2
  10. package/dist/types/components/form/input-text-area.vue.d.ts +2 -2
  11. package/dist/types/components/form/input-text.vue.d.ts +2 -2
  12. package/dist/types/components/form/input.vue.d.ts +1 -1
  13. package/dist/types/components/form/textarea.vue.d.ts +1 -1
  14. package/dist/types/components/index.d.ts +10 -2
  15. package/dist/types/components/notification/notification.vue.d.ts +13 -0
  16. package/dist/types/components/notification/notifications.vue.d.ts +3 -0
  17. package/dist/types/components/paginator.vue.d.ts +1 -1
  18. package/dist/types/components/radio.vue.d.ts +15 -0
  19. package/dist/types/components/shell/shell-navigation-item.vue.d.ts +1 -1
  20. package/dist/types/components/shell/shell.vue.d.ts +4 -2
  21. package/dist/types/components/skeleton.vue.d.ts +8 -0
  22. package/dist/types/components/slider.vue.d.ts +2 -2
  23. package/dist/types/config.d.ts +2 -0
  24. package/dist/types/model/FormFieldProps.d.ts +2 -1
  25. package/dist/types/model/Icons.d.ts +43 -3
  26. package/dist/types/services/index.d.ts +2 -1
  27. package/dist/types/services/notification.service.d.ts +62 -0
  28. package/dist/types/stories/components/chip-group.stories.d.ts +48 -0
  29. package/dist/types/stories/components/chip-selector.stories.d.ts +38 -0
  30. package/dist/types/stories/components/chip.stories.d.ts +2 -2
  31. package/dist/types/stories/components/compact.stories.d.ts +2 -2
  32. package/dist/types/stories/components/dialog.stories.d.ts +5 -5
  33. package/dist/types/stories/components/editable-label.stories.d.ts +30 -0
  34. package/dist/types/stories/components/form-field.stories.d.ts +27 -2
  35. package/dist/types/stories/components/input.stories.d.ts +1 -1
  36. package/dist/types/stories/components/notification.stories.d.ts +44 -0
  37. package/dist/types/stories/components/radio.stories.d.ts +65 -0
  38. package/dist/types/stories/components/shell.stories.d.ts +4 -0
  39. package/dist/types/stories/components/skeleton.stories.d.ts +30 -0
  40. package/dist/types/stories/components/textarea.stories.d.ts +1 -1
  41. package/dist/vanjana-vue-ui.es.js +1943 -1522
  42. package/dist/vanjana-vue-ui.umd.js +1 -1
  43. package/dist/vue-ui.css +1 -1
  44. package/package.json +3 -2
  45. package/themes/common/_components.scss +4 -0
  46. package/themes/common/_mixins.scss +1 -1
  47. package/themes/common/components/_checkbox.scss +43 -9
  48. package/themes/common/components/_radio.scss +59 -0
  49. package/themes/common/components/_shell.scss +25 -28
  50. package/themes/common/components/_skeleton.scss +31 -0
  51. package/themes/common/components/form/_form-field.scss +39 -2
  52. package/themes/common/components/form/_input.scss +1 -1
  53. package/themes/common/components/notification/_notification.scss +39 -0
  54. package/themes/light/theme.scss +27 -13
@@ -1,36 +1,36 @@
1
- import { createElementBlock as x, openBlock as v, createElementVNode as k, renderSlot as T, defineComponent as B, computed as C, normalizeClass as N, createBlock as j, createCommentVNode as $, createTextVNode as $e, unref as R, toDisplayString as D, useSlots as on, mergeModels as ue, useModel as ye, ref as E, onMounted as Oe, nextTick as he, onBeforeUnmount as Te, watch as q, resolveComponent as U, createVNode as P, normalizeStyle as Z, Fragment as ge, renderList as Xe, Teleport as tt, Transition as Ie, withCtx as W, withModifiers as de, createSlots as Lt, resolveDynamicComponent as St, mergeProps as ln, shallowRef as an, getCurrentScope as sn, onScopeDispose as rn, shallowReadonly as _e, render as ht, withDirectives as cn, withKeys as un, provide as dn, inject as $t, toRef as Je, normalizeProps as fn, guardReactiveProps as mn, isRef as vn, createApp as pn, h as hn } from "vue";
2
- import { useRouter as gn, useRoute as bn } from "vue-router";
3
- const M = (e, n) => {
1
+ import { createElementBlock as b, openBlock as f, createElementVNode as V, renderSlot as M, defineComponent as T, computed as C, normalizeClass as I, createBlock as j, createCommentVNode as S, createTextVNode as Ie, unref as $, toDisplayString as D, useSlots as un, ref as E, onMounted as Oe, nextTick as me, onBeforeUnmount as Be, watch as X, resolveComponent as N, createVNode as P, normalizeStyle as J, Fragment as ne, renderList as Se, mergeModels as Z, useModel as ve, withModifiers as K, Teleport as ot, Transition as He, withCtx as W, createSlots as lt, resolveDynamicComponent as Ot, mergeProps as dn, shallowRef as fn, getCurrentScope as vn, onScopeDispose as mn, shallowReadonly as ke, render as wt, withDirectives as Bt, withKeys as Ze, provide as pn, inject as Dt, vModelText as hn, toRef as Je, normalizeProps as gn, guardReactiveProps as bn, isRef as yn, createApp as wn, h as _n } from "vue";
2
+ import { useRouter as xn, useRoute as kn } from "vue-router";
3
+ const O = (e, n) => {
4
4
  const t = e.__vccOpts || e;
5
5
  for (const [o, l] of n)
6
6
  t[o] = l;
7
7
  return t;
8
- }, yn = {}, wn = { class: "button-bar" }, xn = { class: "left" }, _n = { class: "right" };
9
- function Vn(e, n) {
10
- return v(), x("div", wn, [
11
- k("div", xn, [
12
- T(e.$slots, "left", {}, void 0, !0)
8
+ }, Vn = {}, Cn = { class: "button-bar" }, En = { class: "left" }, Ln = { class: "right" };
9
+ function $n(e, n) {
10
+ return f(), b("div", Cn, [
11
+ V("div", En, [
12
+ M(e.$slots, "left", {}, void 0, !0)
13
13
  ]),
14
- k("div", _n, [
15
- T(e.$slots, "default", {}, void 0, !0)
14
+ V("div", Ln, [
15
+ M(e.$slots, "default", {}, void 0, !0)
16
16
  ])
17
17
  ]);
18
18
  }
19
- const kn = /* @__PURE__ */ M(yn, [["render", Vn], ["__scopeId", "data-v-45a6ed1a"]]);
20
- var H = /* @__PURE__ */ ((e) => (e.HOME = "fa-regular fa-house", e.DASHBOARD = "fa-solid fa-gauge", e.MENU = "fa-solid fa-bars", e.DOT_MENU = "fa-solid fa-ellipsis-vertical", e.BACK = "fa-regular fa-hand-point-left", e.CHEVRON_LEFT = "fa-solid fa-chevron-left", e.CHEVRON_RIGHT = "fa-solid fa-chevron-right", e.CHEVRON_UP = "fa-solid fa-chevron-up", e.CHEVRON_DOWN = "fa-solid fa-chevron-down", e.PREVIOUS = "fa-solid fa-angle-left", e.FIRST = "fa-solid fa-angles-left", e.NEXT = "fa-solid fa-angle-right", e.LAST = "fa-solid fa-angles-right", e.USER = "fa-regular fa-user", e.CHARACTER = "fa-solid fa-person", e.SETTINGS = "fa-solid fa-gear", e.ADD = "fa-regular fa-plus", e.EDIT = "fa-solid fa-pen", e.REMOVE = "fa-regular fa-trash-can", e.DELETE = "fa-regular fa-trash-can", e.SHARE = "fa-solid fa-share-nodes", e.SORT = "fa-regular fa-arrow-up-arrow-down", e.CLOSE = "fa-regular fa-circle-xmark", e.INFO = "fa-regular fa-circle-info", e.WARNING = "fa-regular fa-triangle-exclamation", e.ERROR = "fa-regular fa-circle-xmark", e.CHECK = "fa-regular fa-circle-check", e.LOVE = "fa-regular fa-heart", e.PROJECT = "fa-regular fa-folder-open", e.FOLDER = "fa-regular fa-folder", e.FILE_TEXT = "fa-regular fa-file-lines", e.UPLOAD = "fa-solid fa-cloud-arrow-up", e.DOWNLOAD = "fa-solid fa-cloud-arrow-down", e.SEARCH = "fa-solid fa-magnifying-glass", e.MESSAGE_SQUARE = "fa-regular fa-message", e.MAIL = "fa-regular fa-envelope", e.SHOPPING_BAG = "fa-regular fa-bag-shopping", e))(H || {}), X = /* @__PURE__ */ ((e) => (e.S = "icon-size-s", e.M = "icon-size-m", e.L = "icon-size-l", e))(X || {});
21
- const Be = /* @__PURE__ */ B({
19
+ const Sn = /* @__PURE__ */ O(Vn, [["render", $n], ["__scopeId", "data-v-45a6ed1a"]]);
20
+ var U = /* @__PURE__ */ ((e) => (e.HOME = "fa-regular fa-house", e.DASHBOARD = "fa-solid fa-gauge", e.MENU = "fa-solid fa-bars", e.DOT_MENU = "fa-solid fa-ellipsis-vertical", e.BACK = "fa-regular fa-hand-point-left", e.CHEVRON_LEFT = "fa-solid fa-chevron-left", e.CHEVRON_RIGHT = "fa-solid fa-chevron-right", e.CHEVRON_UP = "fa-solid fa-chevron-up", e.CHEVRON_DOWN = "fa-solid fa-chevron-down", e.PREVIOUS = "fa-solid fa-angle-left", e.FIRST = "fa-solid fa-angles-left", e.NEXT = "fa-solid fa-angle-right", e.LAST = "fa-solid fa-angles-right", e.USER = "fa-regular fa-user", e.CHARACTER = "fa-solid fa-person", e.SETTINGS = "fa-solid fa-gear", e.ADD = "fa-regular fa-plus", e.EDIT = "fa-solid fa-pen", e.REMOVE = "fa-regular fa-trash-can", e.DELETE = "fa-regular fa-trash-can", e.SHARE = "fa-solid fa-share-nodes", e.SORT = "fa-regular fa-arrow-up-arrow-down", e.CLOSE = "fa-regular fa-circle-xmark", e.SAVE = "fa-regular fa-floppy-disk", e.COPY = "fa-regular fa-copy", e.DUPLICATE = "fa-regular fa-clone", e.CUT = "fa-solid fa-scissors", e.PASTE = "fa-regular fa-clipboard", e.REFRESH = "fa-solid fa-rotate-right", e.RELOAD = "fa-solid fa-arrows-rotate", e.PRINT = "fa-solid fa-print", e.FILTER = "fa-solid fa-filter", e.UNDO = "fa-solid fa-rotate-left", e.REDO = "fa-solid fa-rotate-right", e.PIN = "fa-solid fa-thumbtack", e.EXPAND = "fa-solid fa-expand", e.COLLAPSE = "fa-solid fa-compress", e.EXTERNAL_LINK = "fa-solid fa-arrow-up-right-from-square", e.INFO = "fa-solid fa-circle-info", e.WARNING = "fa-solid fa-triangle-exclamation", e.ERROR = "fa-regular fa-circle-xmark", e.CHECK = "fa-regular fa-circle-check", e.LOVE = "fa-regular fa-heart", e.STAR = "fa-regular fa-star", e.STAR_FILLED = "fa-solid fa-star", e.HELP = "fa-regular fa-circle-question", e.QUESTION = "fa-solid fa-question", e.PROJECT = "fa-regular fa-folder-open", e.FOLDER = "fa-regular fa-folder", e.FILE_TEXT = "fa-regular fa-file-lines", e.UPLOAD = "fa-solid fa-cloud-arrow-up", e.DOWNLOAD = "fa-solid fa-cloud-arrow-down", e.ATTACHMENT = "fa-solid fa-paperclip", e.LINK = "fa-solid fa-link", e.TAG = "fa-solid fa-tag", e.TAGS = "fa-solid fa-tags", e.SEARCH = "fa-solid fa-magnifying-glass", e.MESSAGE_SQUARE = "fa-regular fa-message", e.MAIL = "fa-regular fa-envelope", e.SHOPPING_BAG = "fa-regular fa-bag-shopping", e.COMMENT = "fa-regular fa-comment", e.COMMENTS = "fa-regular fa-comments", e.CALENDAR = "fa-regular fa-calendar", e.CALENDAR_DAY = "fa-solid fa-calendar-day", e.CLOCK = "fa-regular fa-clock", e.HISTORY = "fa-solid fa-clock-rotate-left", e.LOCK = "fa-solid fa-lock", e.UNLOCK = "fa-solid fa-lock-open", e.EYE = "fa-regular fa-eye", e.EYE_SLASH = "fa-regular fa-eye-slash", e.SHIELD = "fa-solid fa-shield", e.LIST = "fa-solid fa-list", e.GRID = "fa-solid fa-grid", e.TABLE = "fa-solid fa-table", e.COLUMNS = "fa-solid fa-columns", e.BELL = "fa-regular fa-bell", e.IMAGE = "fa-regular fa-image", e))(U || {}), q = /* @__PURE__ */ ((e) => (e.S = "icon-size-s", e.M = "icon-size-m", e.L = "icon-size-l", e))(q || {});
21
+ const we = /* @__PURE__ */ T({
22
22
  __name: "icon",
23
23
  props: {
24
24
  icon: {},
25
25
  size: {}
26
26
  },
27
27
  setup(e) {
28
- const n = e, t = X.M, o = C(() => `${n.icon} ${n.size ?? t}`);
29
- return (l, s) => (v(), x("i", {
30
- class: N(o.value)
28
+ const n = e, t = q.M, o = C(() => `${n.icon} ${n.size ?? t}`);
29
+ return (l, a) => (f(), b("i", {
30
+ class: I(o.value)
31
31
  }, null, 2));
32
32
  }
33
- }), Cn = ["disabled"], En = /* @__PURE__ */ B({
33
+ }), Rn = ["disabled"], An = /* @__PURE__ */ T({
34
34
  __name: "button",
35
35
  props: {
36
36
  label: {},
@@ -41,97 +41,51 @@ const Be = /* @__PURE__ */ B({
41
41
  disabled: { type: Boolean }
42
42
  },
43
43
  setup(e) {
44
- const n = e, t = X.S, o = C(() => n.primary ? "primary" : n.secondary ? "secondary" : n.tertiary ? "tertiary" : "primary"), l = C(() => !n.label && !!n.icon);
45
- return (s, a) => (v(), x("button", {
46
- class: N(["button", o.value, { "icon-only": l.value }]),
44
+ const n = e, t = q.S, o = C(() => n.primary ? "primary" : n.secondary ? "secondary" : n.tertiary ? "tertiary" : "primary"), l = C(() => !n.label && !!n.icon);
45
+ return (a, i) => (f(), b("button", {
46
+ class: I(["button", o.value, { "icon-only": l.value }]),
47
47
  disabled: e.disabled
48
48
  }, [
49
- e.icon ? (v(), j(Be, {
49
+ e.icon ? (f(), j(we, {
50
50
  key: 0,
51
51
  icon: e.icon,
52
- size: R(t)
53
- }, null, 8, ["icon", "size"])) : $("", !0),
54
- $e(" " + D(e.label), 1)
55
- ], 10, Cn));
52
+ size: $(t)
53
+ }, null, 8, ["icon", "size"])) : S("", !0),
54
+ Ie(" " + D(e.label), 1)
55
+ ], 10, Rn));
56
56
  }
57
- }), At = /* @__PURE__ */ M(En, [["__scopeId", "data-v-f31c33cf"]]), Rn = {
57
+ }), Mt = /* @__PURE__ */ O(An, [["__scopeId", "data-v-f31c33cf"]]), Tn = {
58
58
  key: 0,
59
59
  class: "header-actions"
60
- }, Ln = { key: 0 }, Sn = /* @__PURE__ */ B({
60
+ }, On = { key: 0 }, Bn = /* @__PURE__ */ T({
61
61
  __name: "card",
62
62
  props: {
63
63
  header: {},
64
64
  scrollable: { type: Boolean }
65
65
  },
66
66
  setup(e) {
67
- const n = on();
68
- return (t, o) => (v(), x("div", {
69
- class: N(["card", { scrollable: e.scrollable }])
67
+ const n = un();
68
+ return (t, o) => (f(), b("div", {
69
+ class: I(["card", { scrollable: e.scrollable }])
70
70
  }, [
71
- k("header", null, [
72
- k("h3", null, D(e.header), 1),
73
- R(n).headerActions ? (v(), x("span", Rn, [
74
- T(t.$slots, "headerActions", {}, void 0, !0)
75
- ])) : $("", !0)
71
+ V("header", null, [
72
+ V("h3", null, D(e.header), 1),
73
+ $(n).headerActions ? (f(), b("span", Tn, [
74
+ M(t.$slots, "headerActions", {}, void 0, !0)
75
+ ])) : S("", !0)
76
76
  ]),
77
- k("main", null, [
78
- T(t.$slots, "default", {}, void 0, !0)
77
+ V("main", null, [
78
+ M(t.$slots, "default", {}, void 0, !0)
79
79
  ]),
80
- R(n).footer ? (v(), x("footer", Ln, [
81
- T(t.$slots, "footer", {}, void 0, !0)
82
- ])) : $("", !0)
80
+ $(n).footer ? (f(), b("footer", On, [
81
+ M(t.$slots, "footer", {}, void 0, !0)
82
+ ])) : S("", !0)
83
83
  ], 2));
84
84
  }
85
- }), Ot = /* @__PURE__ */ M(Sn, [["__scopeId", "data-v-ec6ab562"]]), $n = { class: "checkbox" }, An = ["checked", "disabled"], On = {
86
- key: 0,
87
- class: "checkbox-label"
88
- }, Tn = /* @__PURE__ */ B({
89
- __name: "checkbox",
90
- props: /* @__PURE__ */ ue({
91
- label: {},
92
- disabled: { type: Boolean }
93
- }, {
94
- modelValue: { type: Boolean },
95
- modelModifiers: {}
96
- }),
97
- emits: ["update:modelValue"],
98
- setup(e) {
99
- const n = ye(e, "modelValue"), t = (o) => {
100
- const l = o.target;
101
- n.value = l.checked;
102
- };
103
- return (o, l) => (v(), x("label", $n, [
104
- k("input", {
105
- type: "checkbox",
106
- checked: n.value,
107
- onChange: t,
108
- disabled: e.disabled,
109
- class: "checkbox-input"
110
- }, null, 40, An),
111
- l[0] || (l[0] = k("span", { class: "checkbox-box" }, [
112
- k("svg", {
113
- class: "checkbox-icon",
114
- viewBox: "0 0 24 24",
115
- fill: "none",
116
- xmlns: "http://www.w3.org/2000/svg"
117
- }, [
118
- k("path", {
119
- class: "checkbox-check",
120
- d: "M5 12L10 17L20 7",
121
- stroke: "currentColor",
122
- "stroke-width": "2.5",
123
- "stroke-linecap": "round",
124
- "stroke-linejoin": "round"
125
- })
126
- ])
127
- ], -1)),
128
- e.label ? (v(), x("span", On, D(e.label), 1)) : $("", !0)
129
- ]));
130
- }
131
- }), Ma = /* @__PURE__ */ M(Tn, [["__scopeId", "data-v-e2d27ecb"]]), Bn = ["aria-label"], Mn = {
85
+ }), et = /* @__PURE__ */ O(Bn, [["__scopeId", "data-v-ec6ab562"]]), Dn = ["aria-label"], Mn = {
132
86
  key: 0,
133
87
  class: "carousel-indicators"
134
- }, Pn = /* @__PURE__ */ B({
88
+ }, Pn = /* @__PURE__ */ T({
135
89
  __name: "carousel",
136
90
  props: {
137
91
  autoplay: { type: Boolean },
@@ -142,146 +96,359 @@ const Be = /* @__PURE__ */ B({
142
96
  ariaLabel: {}
143
97
  },
144
98
  setup(e) {
145
- const n = e, t = n.autoplay ?? !1, o = n.interval ?? 4e3, l = n.loop ?? !0, s = n.pauseOnHover ?? !0, a = n.startIndex ?? 0, r = n.ariaLabel ?? "Carousel", i = E(Math.max(0, a)), c = E(null), u = E(null), d = E(0), m = E(0);
146
- let f = !1;
147
- const p = E(0), y = E(!1);
148
- let V = null, w = null;
149
- const _ = E(null), h = E(null), O = () => {
150
- p.value = c.value ? c.value.children.length : 0, p.value === 0 ? i.value = 0 : i.value >= p.value && (i.value = l ? 0 : p.value - 1), F();
151
- }, A = C(() => d.value > 0 ? { transform: `translateX(${-i.value * d.value + m.value}px)` } : { transform: `translateX(-${i.value * 100}%)` }), F = () => {
152
- c.value && Array.from(c.value.children).forEach((L, ve) => {
99
+ const n = e, t = n.autoplay ?? !1, o = n.interval ?? 4e3, l = n.loop ?? !0, a = n.pauseOnHover ?? !0, i = n.startIndex ?? 0, c = n.ariaLabel ?? "Carousel", s = E(Math.max(0, i)), r = E(null), u = E(null), d = E(0), v = E(0);
100
+ let m = !1;
101
+ const p = E(0), _ = E(!1);
102
+ let h = null, y = null;
103
+ const w = E(null), g = E(null), L = () => {
104
+ p.value = r.value ? r.value.children.length : 0, p.value === 0 ? s.value = 0 : s.value >= p.value && (s.value = l ? 0 : p.value - 1), F();
105
+ }, B = C(() => d.value > 0 ? { transform: `translateX(${-s.value * d.value + v.value}px)` } : { transform: `translateX(-${s.value * 100}%)` }), F = () => {
106
+ r.value && Array.from(r.value.children).forEach((R, ge) => {
153
107
  try {
154
- ve === i.value ? L.removeAttribute("aria-hidden") : L.setAttribute("aria-hidden", "true");
108
+ ge === s.value ? R.removeAttribute("aria-hidden") : R.setAttribute("aria-hidden", "true");
155
109
  } catch {
156
110
  }
157
111
  });
158
- }, g = () => {
159
- b(), !(!t || p.value <= 1) && (s && y.value || (V = setTimeout(() => {
160
- z(), g();
112
+ }, x = () => {
113
+ k(), !(!t || p.value <= 1) && (a && _.value || (h = setTimeout(() => {
114
+ z(), x();
161
115
  }, o)));
162
- }, b = () => {
163
- V && (clearTimeout(V), V = null);
164
- }, S = () => {
165
- p.value !== 0 && (i.value <= 0 ? i.value = l ? p.value - 1 : 0 : i.value--);
116
+ }, k = () => {
117
+ h && (clearTimeout(h), h = null);
118
+ }, A = () => {
119
+ p.value !== 0 && (s.value <= 0 ? s.value = l ? p.value - 1 : 0 : s.value--);
166
120
  }, z = () => {
167
- p.value !== 0 && (i.value >= p.value - 1 ? i.value = l ? 0 : p.value - 1 : i.value++);
168
- }, I = (L) => {
169
- L < 0 || L >= p.value || (i.value = L);
170
- }, se = () => {
171
- y.value = !0, s && b();
172
- }, ie = () => {
173
- y.value = !1, g();
174
- }, re = (L) => {
175
- L.key === "ArrowLeft" ? S() : L.key === "ArrowRight" && z();
121
+ p.value !== 0 && (s.value >= p.value - 1 ? s.value = l ? 0 : p.value - 1 : s.value++);
122
+ }, H = (R) => {
123
+ R < 0 || R >= p.value || (s.value = R);
124
+ }, ce = () => {
125
+ _.value = !0, a && k();
126
+ }, ue = () => {
127
+ _.value = !1, x();
128
+ }, de = (R) => {
129
+ R.key === "ArrowLeft" ? A() : R.key === "ArrowRight" && z();
176
130
  };
177
- let xe = 0, J = 0;
178
- const ne = (L) => {
179
- xe = L.touches[0].clientX, J = 0;
180
- }, K = (L) => {
181
- J = L.touches[0].clientX - xe;
182
- }, Q = () => {
183
- J > 50 ? S() : J < -50 && z(), J = 0;
131
+ let xe = 0, ee = 0;
132
+ const ae = (R) => {
133
+ xe = R.touches[0].clientX, ee = 0;
134
+ }, G = (R) => {
135
+ ee = R.touches[0].clientX - xe;
136
+ }, te = () => {
137
+ ee > 50 ? A() : ee < -50 && z(), ee = 0;
184
138
  };
185
- let De = 0;
186
- const dt = (L) => {
187
- if (L.isPrimary !== !1 && !(L.pointerType === "mouse" && L.button !== 0)) {
188
- f = !0, De = L.clientX, m.value = 0, b();
139
+ let Fe = 0;
140
+ const pt = (R) => {
141
+ if (R.isPrimary !== !1 && !(R.pointerType === "mouse" && R.button !== 0)) {
142
+ m = !0, Fe = R.clientX, v.value = 0, k();
189
143
  try {
190
- L.target?.setPointerCapture?.(L.pointerId);
144
+ R.target?.setPointerCapture?.(R.pointerId);
191
145
  } catch {
192
146
  }
193
147
  }
194
- }, ft = (L) => {
195
- f && (m.value = L.clientX - De, L.preventDefault());
196
- }, mt = () => {
197
- if (!f) return;
198
- f = !1;
199
- const L = Math.max(50, d.value * 0.15);
200
- m.value > L ? S() : m.value < -L && z(), m.value = 0, g();
201
- }, vt = (L) => {
148
+ }, ht = (R) => {
149
+ m && (v.value = R.clientX - Fe, R.preventDefault());
150
+ }, gt = () => {
151
+ if (!m) return;
152
+ m = !1;
153
+ const R = Math.max(50, d.value * 0.15);
154
+ v.value > R ? A() : v.value < -R && z(), v.value = 0, x();
155
+ }, bt = (R) => {
202
156
  try {
203
- L.target?.releasePointerCapture?.(L.pointerId);
157
+ R.target?.releasePointerCapture?.(R.pointerId);
204
158
  } catch {
205
159
  }
206
- mt();
207
- }, pt = () => mt();
160
+ gt();
161
+ }, yt = () => gt();
208
162
  return Oe(() => {
209
- he(() => {
210
- if (O(), c.value && (w = new MutationObserver(O), w.observe(c.value, { childList: !0 }), c.value.addEventListener("touchstart", ne, { passive: !0 }), c.value.addEventListener("touchmove", K, { passive: !0 }), c.value.addEventListener("touchend", Q)), u.value) {
211
- const L = () => {
163
+ me(() => {
164
+ if (L(), r.value && (y = new MutationObserver(L), y.observe(r.value, { childList: !0 }), r.value.addEventListener("touchstart", ae, { passive: !0 }), r.value.addEventListener("touchmove", G, { passive: !0 }), r.value.addEventListener("touchend", te)), u.value) {
165
+ const R = () => {
212
166
  d.value = u.value ? u.value.clientWidth : 0;
213
167
  };
214
- L();
215
- const ve = window.ResizeObserver;
216
- if (ve && u.value) {
217
- const pe = new ve(() => L());
218
- pe.observe(u.value), _.value = pe;
168
+ R();
169
+ const ge = window.ResizeObserver;
170
+ if (ge && u.value) {
171
+ const be = new ge(() => R());
172
+ be.observe(u.value), w.value = be;
219
173
  } else
220
- window.addEventListener("resize", L), h.value = L;
221
- u.value && (u.value.addEventListener("pointerdown", dt), u.value.addEventListener("pointermove", ft), u.value.addEventListener("pointerup", vt), u.value.addEventListener("pointercancel", pt));
174
+ window.addEventListener("resize", R), g.value = R;
175
+ u.value && (u.value.addEventListener("pointerdown", pt), u.value.addEventListener("pointermove", ht), u.value.addEventListener("pointerup", bt), u.value.addEventListener("pointercancel", yt));
222
176
  }
223
- F(), g();
177
+ F(), x();
224
178
  });
225
- }), Te(() => {
226
- b(), w && c.value && w.disconnect(), c.value && (c.value.removeEventListener("touchstart", ne), c.value.removeEventListener("touchmove", K), c.value.removeEventListener("touchend", Q)), u.value && (_.value && _.value.disconnect && _.value.disconnect(), h.value && window.removeEventListener("resize", h.value), u.value.removeEventListener("pointerdown", dt), u.value.removeEventListener("pointermove", ft), u.value.removeEventListener("pointerup", vt), u.value.removeEventListener("pointercancel", pt));
227
- }), q([i, () => p.value], () => {
179
+ }), Be(() => {
180
+ k(), y && r.value && y.disconnect(), r.value && (r.value.removeEventListener("touchstart", ae), r.value.removeEventListener("touchmove", G), r.value.removeEventListener("touchend", te)), u.value && (w.value && w.value.disconnect && w.value.disconnect(), g.value && window.removeEventListener("resize", g.value), u.value.removeEventListener("pointerdown", pt), u.value.removeEventListener("pointermove", ht), u.value.removeEventListener("pointerup", bt), u.value.removeEventListener("pointercancel", yt));
181
+ }), X([s, () => p.value], () => {
228
182
  F();
229
- }), q([() => y.value, i], () => {
230
- g();
231
- }), (L, ve) => {
232
- const pe = U("VjButton");
233
- return v(), x("div", {
183
+ }), X([() => _.value, s], () => {
184
+ x();
185
+ }), (R, ge) => {
186
+ const be = N("VjButton");
187
+ return f(), b("div", {
234
188
  class: "carousel",
235
189
  role: "region",
236
190
  "aria-roledescription": "carousel",
237
- "aria-label": R(r),
191
+ "aria-label": $(c),
238
192
  tabindex: "0",
239
- onKeydown: re,
240
- onMouseenter: se,
241
- onMouseleave: ie
193
+ onKeydown: de,
194
+ onMouseenter: ce,
195
+ onMouseleave: ue
242
196
  }, [
243
- k("div", {
197
+ V("div", {
244
198
  class: "carousel-window",
245
199
  ref_key: "windowRef",
246
200
  ref: u
247
201
  }, [
248
- k("div", {
202
+ V("div", {
249
203
  class: "carousel-track",
250
204
  ref_key: "track",
251
- ref: c,
252
- style: Z(A.value)
205
+ ref: r,
206
+ style: J(B.value)
253
207
  }, [
254
- T(L.$slots, "default", {}, void 0, !0)
208
+ M(R.$slots, "default", {}, void 0, !0)
255
209
  ], 4)
256
210
  ], 512),
257
- P(pe, {
211
+ P(be, {
258
212
  class: "carousel-btn prev",
259
- icon: R(H).PREVIOUS,
260
- onClick: S,
213
+ icon: $(U).PREVIOUS,
214
+ onClick: A,
261
215
  type: "button",
262
216
  "aria-label": "Previous slide"
263
217
  }, null, 8, ["icon"]),
264
- P(pe, {
218
+ P(be, {
265
219
  class: "carousel-btn next",
266
- icon: R(H).NEXT,
220
+ icon: $(U).NEXT,
267
221
  onClick: z,
268
222
  type: "button",
269
223
  "aria-label": "Next slide"
270
224
  }, null, 8, ["icon"]),
271
- p.value > 1 ? (v(), x("div", Mn, [
272
- (v(!0), x(ge, null, Xe(p.value, (Le) => (v(), j(pe, {
273
- key: Le - 1,
274
- class: N(["indicator", { active: Le - 1 === i.value }]),
275
- onClick: (Oa) => I(Le - 1),
276
- "aria-current": Le - 1 === i.value,
277
- "aria-label": `Go to slide ${Le}`,
225
+ p.value > 1 ? (f(), b("div", Mn, [
226
+ (f(!0), b(ne, null, Se(p.value, (Re) => (f(), j(be, {
227
+ key: Re - 1,
228
+ class: I(["indicator", { active: Re - 1 === s.value }]),
229
+ onClick: (ci) => H(Re - 1),
230
+ "aria-current": Re - 1 === s.value,
231
+ "aria-label": `Go to slide ${Re}`,
278
232
  type: "button"
279
233
  }, null, 8, ["class", "onClick", "aria-current", "aria-label"]))), 128))
280
- ])) : $("", !0)
281
- ], 40, Bn);
234
+ ])) : S("", !0)
235
+ ], 40, Dn);
236
+ };
237
+ }
238
+ }), fi = /* @__PURE__ */ O(Pn, [["__scopeId", "data-v-232abca2"]]), jn = { class: "checkbox" }, Fn = ["checked", "disabled"], zn = {
239
+ key: 0,
240
+ class: "checkbox-label"
241
+ }, In = /* @__PURE__ */ T({
242
+ __name: "checkbox",
243
+ props: /* @__PURE__ */ Z({
244
+ label: {},
245
+ disabled: { type: Boolean }
246
+ }, {
247
+ modelValue: { type: Boolean },
248
+ modelModifiers: {}
249
+ }),
250
+ emits: ["update:modelValue"],
251
+ setup(e) {
252
+ const n = ve(e, "modelValue"), t = (o) => {
253
+ const l = o.target;
254
+ n.value = l.checked;
255
+ };
256
+ return (o, l) => (f(), b("label", jn, [
257
+ V("input", {
258
+ type: "checkbox",
259
+ checked: n.value,
260
+ onChange: t,
261
+ disabled: e.disabled,
262
+ class: "checkbox-input"
263
+ }, null, 40, Fn),
264
+ l[0] || (l[0] = V("span", { class: "checkbox-box" }, [
265
+ V("svg", {
266
+ class: "checkbox-icon",
267
+ viewBox: "0 0 24 24",
268
+ fill: "none",
269
+ xmlns: "http://www.w3.org/2000/svg"
270
+ }, [
271
+ V("path", {
272
+ class: "checkbox-check",
273
+ d: "M5 12L10 17L20 7",
274
+ stroke: "currentColor",
275
+ "stroke-width": "2.5",
276
+ "stroke-linecap": "round",
277
+ "stroke-linejoin": "round"
278
+ })
279
+ ])
280
+ ], -1)),
281
+ e.label ? (f(), b("span", zn, D(e.label), 1)) : S("", !0)
282
+ ]));
283
+ }
284
+ }), Hn = /* @__PURE__ */ O(In, [["__scopeId", "data-v-d44b45ff"]]), Un = { class: "radio" }, Wn = ["checked", "disabled"], Kn = {
285
+ key: 0,
286
+ class: "radio-label"
287
+ }, Xn = /* @__PURE__ */ T({
288
+ __name: "radio",
289
+ props: /* @__PURE__ */ Z({
290
+ label: {},
291
+ disabled: { type: Boolean }
292
+ }, {
293
+ modelValue: { type: Boolean },
294
+ modelModifiers: {}
295
+ }),
296
+ emits: ["update:modelValue"],
297
+ setup(e) {
298
+ const n = ve(e, "modelValue"), t = (o) => {
299
+ const l = o.target;
300
+ n.value = l.checked;
282
301
  };
302
+ return (o, l) => (f(), b("label", Un, [
303
+ V("input", {
304
+ type: "checkbox",
305
+ checked: n.value,
306
+ onChange: t,
307
+ disabled: e.disabled,
308
+ class: "radio-input"
309
+ }, null, 40, Wn),
310
+ l[0] || (l[0] = V("span", { class: "radio-box" }, [
311
+ V("span", {
312
+ class: "radio-dot",
313
+ "aria-hidden": "true"
314
+ })
315
+ ], -1)),
316
+ e.label ? (f(), b("span", Kn, D(e.label), 1)) : S("", !0)
317
+ ]));
283
318
  }
284
- }), jn = /* @__PURE__ */ M(Pn, [["__scopeId", "data-v-232abca2"]]), Fn = { class: "dialog-content" }, Dn = { key: 1 }, zn = { class: "dialog-footer" }, In = /* @__PURE__ */ B({
319
+ }), vi = /* @__PURE__ */ O(Xn, [["__scopeId", "data-v-f9e4bb65"]]), Nn = { class: "chip__label" }, qn = /* @__PURE__ */ T({
320
+ __name: "chip",
321
+ props: /* @__PURE__ */ Z({
322
+ label: {},
323
+ dismissable: { type: Boolean },
324
+ color: {}
325
+ }, {
326
+ modelValue: {},
327
+ modelModifiers: {}
328
+ }),
329
+ emits: /* @__PURE__ */ Z(["update:modelValue", "dismiss", "click"], ["update:modelValue"]),
330
+ setup(e, { emit: n }) {
331
+ const t = e, o = ve(e, "modelValue"), l = n, a = t.dismissable ?? !1, i = C(() => {
332
+ const s = {};
333
+ return t.color && (s.color = `var(--on-surface-${t.color})`, s.background = `var(--surface-${t.color})`), s;
334
+ }), c = () => {
335
+ l("dismiss", o.value);
336
+ };
337
+ return (s, r) => (f(), b("div", {
338
+ class: I(["chip", { "chip--dismissable": $(a) }]),
339
+ style: J(i.value),
340
+ onClick: r[0] || (r[0] = (u) => s.$emit("click"))
341
+ }, [
342
+ V("span", Nn, D(e.label), 1),
343
+ $(a) ? (f(), b("button", {
344
+ key: 0,
345
+ class: "chip__close",
346
+ type: "button",
347
+ onClick: K(c, ["stop"]),
348
+ "aria-label": "Dismiss"
349
+ }, [
350
+ P(we, {
351
+ icon: $(U).CLOSE,
352
+ size: $(q).S
353
+ }, null, 8, ["icon", "size"])
354
+ ])) : S("", !0)
355
+ ], 6));
356
+ }
357
+ }), Pt = /* @__PURE__ */ O(qn, [["__scopeId", "data-v-c2014a3b"]]), Gn = { class: "chip-group" }, Yn = {
358
+ key: 0,
359
+ class: "chip-group__label"
360
+ }, Jn = { class: "chip-group__container" }, Qn = ["onDragover", "onDrop"], Zn = ["onDragstart", "onDragover", "onDragenter", "onDrop"], eo = ["onDragover", "onDrop"], to = {
361
+ key: 1,
362
+ class: "chip-group__hint"
363
+ }, no = /* @__PURE__ */ T({
364
+ __name: "chip-group",
365
+ props: {
366
+ items: { default: () => [] },
367
+ label: {},
368
+ hint: {},
369
+ dismissable: { type: Boolean, default: !0 },
370
+ color: {},
371
+ itemKey: { default: "value" },
372
+ itemLabel: { default: "label" }
373
+ },
374
+ emits: ["update:items", "reorder", "dismiss", "chip-click"],
375
+ setup(e, { emit: n }) {
376
+ const t = e, o = n, l = E(null), a = E(null);
377
+ function i(h, y) {
378
+ return typeof h == "string" ? `${h}-${y}` : h[t.itemKey] !== void 0 ? String(h[t.itemKey]) : `item-${y}`;
379
+ }
380
+ function c(h) {
381
+ return typeof h == "string" ? h : h[t.itemLabel] !== void 0 ? String(h[t.itemLabel]) : String(h.value || "");
382
+ }
383
+ function s(h, y) {
384
+ l.value = h, y.dataTransfer && (y.dataTransfer.effectAllowed = "move", y.dataTransfer.setData("text/plain", String(h)));
385
+ }
386
+ function r(h, y) {
387
+ l.value === null || l.value === h || (y.preventDefault(), y.dataTransfer && (y.dataTransfer.dropEffect = "move"));
388
+ }
389
+ function u(h) {
390
+ l.value === null || l.value === h || (a.value = h);
391
+ }
392
+ function d() {
393
+ }
394
+ function v(h, y) {
395
+ return l.value === null || a.value === null || l.value === h ? !1 : y === "before" && a.value === h && l.value > h || y === "after" && a.value === h && l.value < h;
396
+ }
397
+ function m(h, y) {
398
+ if (y.preventDefault(), l.value === null || l.value === h)
399
+ return;
400
+ const w = [...t.items], g = w[l.value];
401
+ w.splice(l.value, 1), w.splice(h, 0, g), o("update:items", w), o("reorder", w);
402
+ }
403
+ function p() {
404
+ l.value = null, a.value = null;
405
+ }
406
+ function _(h) {
407
+ const y = t.items[h], w = t.items.filter((g, L) => L !== h);
408
+ o("update:items", w), o("dismiss", y, h);
409
+ }
410
+ return (h, y) => (f(), b("div", Gn, [
411
+ e.label ? (f(), b("label", Yn, D(e.label), 1)) : S("", !0),
412
+ V("div", Jn, [
413
+ (f(!0), b(ne, null, Se(e.items, (w, g) => (f(), b(ne, {
414
+ key: i(w, g)
415
+ }, [
416
+ v(g, "before") ? (f(), b("div", {
417
+ key: 0,
418
+ class: "chip-group__drop-indicator",
419
+ onDragover: K((L) => r(g, L), ["prevent"]),
420
+ onDrop: (L) => m(g, L)
421
+ }, null, 40, Qn)) : S("", !0),
422
+ V("div", {
423
+ class: I(["chip-group__item", { "chip-group__item--dragging": l.value === g }]),
424
+ draggable: "true",
425
+ onDragstart: (L) => s(g, L),
426
+ onDragover: K((L) => r(g, L), ["prevent"]),
427
+ onDragenter: K((L) => u(g), ["prevent"]),
428
+ onDragleave: d,
429
+ onDrop: (L) => m(g, L),
430
+ onDragend: p
431
+ }, [
432
+ P(Pt, {
433
+ label: c(w),
434
+ dismissable: typeof w == "string" ? e.dismissable : w.dismissable ?? e.dismissable,
435
+ color: typeof w == "string" ? e.color : w.color ?? e.color,
436
+ onDismiss: (L) => _(g),
437
+ onClick: (L) => h.$emit("chip-click", w, g)
438
+ }, null, 8, ["label", "dismissable", "color", "onDismiss", "onClick"])
439
+ ], 42, Zn),
440
+ v(g, "after") ? (f(), b("div", {
441
+ key: 1,
442
+ class: "chip-group__drop-indicator",
443
+ onDragover: K((L) => r(g, L), ["prevent"]),
444
+ onDrop: (L) => m(g, L)
445
+ }, null, 40, eo)) : S("", !0)
446
+ ], 64))), 128))
447
+ ]),
448
+ e.hint ? (f(), b("div", to, D(e.hint), 1)) : S("", !0)
449
+ ]));
450
+ }
451
+ }), jt = /* @__PURE__ */ O(no, [["__scopeId", "data-v-66199d19"]]), oo = { class: "dialog-content" }, lo = { key: 1 }, ao = { class: "dialog-footer" }, io = /* @__PURE__ */ T({
285
452
  __name: "dialog",
286
453
  props: {
287
454
  modelValue: { type: Boolean, default: !1 },
@@ -299,58 +466,58 @@ const Be = /* @__PURE__ */ B({
299
466
  emits: ["update:modelValue", "confirm", "cancel", "close"],
300
467
  setup(e, { emit: n }) {
301
468
  const t = e, o = n, l = E(t.modelValue);
302
- q(
469
+ X(
303
470
  () => t.modelValue,
304
471
  (u) => l.value = u
305
472
  );
306
- const s = () => {
473
+ const a = () => {
307
474
  l.value = !1, o("update:modelValue", !1), o("close");
308
- }, a = () => {
309
- o("confirm"), s();
310
- }, r = () => {
311
- o("cancel"), s();
312
475
  }, i = () => {
313
- t.closeOnBackdrop && s();
314
- }, c = (u) => {
315
- u.key === "Escape" && t.closeOnEscape && l.value && s();
476
+ o("confirm"), a();
477
+ }, c = () => {
478
+ o("cancel"), a();
479
+ }, s = () => {
480
+ t.closeOnBackdrop && a();
481
+ }, r = (u) => {
482
+ u.key === "Escape" && t.closeOnEscape && l.value && a();
316
483
  };
317
484
  return Oe(() => {
318
- document.addEventListener("keydown", c);
319
- }), Te(() => {
320
- document.removeEventListener("keydown", c);
485
+ document.addEventListener("keydown", r);
486
+ }), Be(() => {
487
+ document.removeEventListener("keydown", r);
321
488
  }), (u, d) => {
322
- const m = U("VjIcon"), f = U("VjButton"), p = U("VjCard");
323
- return v(), j(tt, { to: "body" }, [
324
- P(Ie, { name: "dialog-fade" }, {
489
+ const v = N("VjIcon"), m = N("VjButton"), p = N("VjCard");
490
+ return f(), j(ot, { to: "body" }, [
491
+ P(He, { name: "dialog-fade" }, {
325
492
  default: W(() => [
326
- l.value ? (v(), x("div", {
493
+ l.value ? (f(), b("div", {
327
494
  key: 0,
328
495
  class: "dialog-backdrop",
329
- onClick: i
496
+ onClick: s
330
497
  }, [
331
- P(Ie, { name: "dialog-scale" }, {
498
+ P(He, { name: "dialog-scale" }, {
332
499
  default: W(() => [
333
- l.value ? (v(), x("div", {
500
+ l.value ? (f(), b("div", {
334
501
  key: 0,
335
502
  class: "dialog-wrapper",
336
- onClick: d[0] || (d[0] = de(() => {
503
+ onClick: d[0] || (d[0] = K(() => {
337
504
  }, ["stop"]))
338
505
  }, [
339
506
  P(p, {
340
507
  class: "dialog-card",
341
508
  header: e.title || ""
342
- }, Lt({
509
+ }, lt({
343
510
  headerActions: W(() => [
344
- P(m, {
345
- icon: R(H).CLOSE,
346
- size: R(X).S,
511
+ P(v, {
512
+ icon: $(U).CLOSE,
513
+ size: $(q).S,
347
514
  class: "dialog-close",
348
- onClick: s
515
+ onClick: a
349
516
  }, null, 8, ["icon", "size"])
350
517
  ]),
351
518
  default: W(() => [
352
- k("div", Fn, [
353
- e.component ? (v(), j(St(e.component), ln({ key: 0 }, e.componentProps, { onClose: s }), null, 16)) : e.message ? (v(), x("div", Dn, D(e.message), 1)) : T(u.$slots, "default", { key: 2 }, void 0, !0)
519
+ V("div", oo, [
520
+ e.component ? (f(), j(Ot(e.component), dn({ key: 0 }, e.componentProps, { onClose: a }), null, 16)) : e.message ? (f(), b("div", lo, D(e.message), 1)) : M(u.$slots, "default", { key: 2 }, void 0, !0)
354
521
  ])
355
522
  ]),
356
523
  _: 2
@@ -358,17 +525,17 @@ const Be = /* @__PURE__ */ B({
358
525
  e.showFooter ? {
359
526
  name: "footer",
360
527
  fn: W(() => [
361
- k("div", zn, [
362
- T(u.$slots, "footer", {}, () => [
363
- e.showCancel ? (v(), j(f, {
528
+ V("div", ao, [
529
+ M(u.$slots, "footer", {}, () => [
530
+ e.showCancel ? (f(), j(m, {
364
531
  key: 0,
365
532
  secondary: "",
366
- onClick: r,
533
+ onClick: c,
367
534
  label: e.cancelText
368
- }, null, 8, ["label"])) : $("", !0),
369
- P(f, {
535
+ }, null, 8, ["label"])) : S("", !0),
536
+ P(m, {
370
537
  primary: "",
371
- onClick: a,
538
+ onClick: i,
372
539
  label: e.confirmText
373
540
  }, null, 8, ["label"])
374
541
  ], !0)
@@ -377,89 +544,157 @@ const Be = /* @__PURE__ */ B({
377
544
  key: "0"
378
545
  } : void 0
379
546
  ]), 1032, ["header"])
380
- ])) : $("", !0)
547
+ ])) : S("", !0)
381
548
  ]),
382
549
  _: 3
383
550
  })
384
- ])) : $("", !0)
551
+ ])) : S("", !0)
385
552
  ]),
386
553
  _: 3
387
554
  })
388
555
  ]);
389
556
  };
390
557
  }
391
- }), Tt = /* @__PURE__ */ M(In, [["__scopeId", "data-v-6af510b3"]]), Ee = Math.min, G = Math.max, Ne = Math.round, ze = Math.floor, oe = (e) => ({
558
+ }), at = /* @__PURE__ */ O(io, [["__scopeId", "data-v-6af510b3"]]), so = { class: "vj-chip-selector" }, ro = { class: "options-grid" }, co = ["onClick"], uo = {
559
+ key: 0,
560
+ class: "no-options"
561
+ }, fo = /* @__PURE__ */ T({
562
+ __name: "chip-selector",
563
+ props: {
564
+ items: { default: () => [] },
565
+ label: { default: "" },
566
+ hint: { default: "" },
567
+ options: {},
568
+ dialogTitle: {},
569
+ addButtonText: { default: "+ Add..." }
570
+ },
571
+ emits: ["update:items"],
572
+ setup(e, { emit: n }) {
573
+ const t = e, o = n, l = E([...t.items]), a = E(!1), i = C(() => t.options.filter((r) => !l.value.includes(r.value)));
574
+ function c(r) {
575
+ const u = r;
576
+ l.value = u, o("update:items", u);
577
+ }
578
+ function s(r) {
579
+ if (!l.value.includes(r)) {
580
+ const u = [...l.value, r];
581
+ l.value = u, o("update:items", u);
582
+ }
583
+ }
584
+ return X(
585
+ () => t.items,
586
+ (r) => {
587
+ JSON.stringify(r) !== JSON.stringify(l.value) && (l.value = [...r]);
588
+ },
589
+ { deep: !0 }
590
+ ), (r, u) => (f(), b("div", so, [
591
+ P(jt, {
592
+ items: l.value,
593
+ "onUpdate:items": [
594
+ u[0] || (u[0] = (d) => l.value = d),
595
+ c
596
+ ],
597
+ label: e.label,
598
+ hint: e.hint
599
+ }, null, 8, ["items", "label", "hint"]),
600
+ V("button", {
601
+ type: "button",
602
+ class: "add-button",
603
+ onClick: u[1] || (u[1] = (d) => a.value = !0)
604
+ }, D(e.addButtonText), 1),
605
+ P(at, {
606
+ modelValue: a.value,
607
+ "onUpdate:modelValue": u[2] || (u[2] = (d) => a.value = d),
608
+ title: e.dialogTitle || `Add ${e.label}`,
609
+ "close-on-backdrop": ""
610
+ }, {
611
+ default: W(() => [
612
+ V("div", ro, [
613
+ (f(!0), b(ne, null, Se(i.value, (d) => (f(), b("button", {
614
+ key: d.value,
615
+ type: "button",
616
+ class: "option-btn",
617
+ onClick: (v) => s(d.value)
618
+ }, "+ " + D(d.label), 9, co))), 128))
619
+ ]),
620
+ i.value.length === 0 ? (f(), b("div", uo, "All options already selected")) : S("", !0)
621
+ ]),
622
+ _: 1
623
+ }, 8, ["modelValue", "title"])
624
+ ]));
625
+ }
626
+ }), vo = /* @__PURE__ */ O(fo, [["__scopeId", "data-v-f2e1b880"]]), Le = Math.min, Y = Math.max, Ue = Math.round, ze = Math.floor, ie = (e) => ({
392
627
  x: e,
393
628
  y: e
394
- }), Nn = {
629
+ }), mo = {
395
630
  left: "right",
396
631
  right: "left",
397
632
  bottom: "top",
398
633
  top: "bottom"
399
- }, Hn = {
634
+ }, po = {
400
635
  start: "end",
401
636
  end: "start"
402
637
  };
403
- function gt(e, n, t) {
404
- return G(e, Ee(n, t));
638
+ function _t(e, n, t) {
639
+ return Y(e, Le(n, t));
405
640
  }
406
- function Me(e, n) {
641
+ function De(e, n) {
407
642
  return typeof e == "function" ? e(n) : e;
408
643
  }
409
- function fe(e) {
644
+ function pe(e) {
410
645
  return e.split("-")[0];
411
646
  }
412
- function Pe(e) {
647
+ function Me(e) {
413
648
  return e.split("-")[1];
414
649
  }
415
- function Bt(e) {
650
+ function Ft(e) {
416
651
  return e === "x" ? "y" : "x";
417
652
  }
418
- function Mt(e) {
653
+ function zt(e) {
419
654
  return e === "y" ? "height" : "width";
420
655
  }
421
- const Wn = /* @__PURE__ */ new Set(["top", "bottom"]);
422
- function ce(e) {
423
- return Wn.has(fe(e)) ? "y" : "x";
656
+ const ho = /* @__PURE__ */ new Set(["top", "bottom"]);
657
+ function fe(e) {
658
+ return ho.has(pe(e)) ? "y" : "x";
424
659
  }
425
- function Pt(e) {
426
- return Bt(ce(e));
660
+ function It(e) {
661
+ return Ft(fe(e));
427
662
  }
428
- function Un(e, n, t) {
663
+ function go(e, n, t) {
429
664
  t === void 0 && (t = !1);
430
- const o = Pe(e), l = Pt(e), s = Mt(l);
431
- let a = l === "x" ? o === (t ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
432
- return n.reference[s] > n.floating[s] && (a = He(a)), [a, He(a)];
665
+ const o = Me(e), l = It(e), a = zt(l);
666
+ let i = l === "x" ? o === (t ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
667
+ return n.reference[a] > n.floating[a] && (i = We(i)), [i, We(i)];
433
668
  }
434
- function Xn(e) {
435
- const n = He(e);
436
- return [Ze(e), n, Ze(n)];
669
+ function bo(e) {
670
+ const n = We(e);
671
+ return [tt(e), n, tt(n)];
437
672
  }
438
- function Ze(e) {
439
- return e.replace(/start|end/g, (n) => Hn[n]);
673
+ function tt(e) {
674
+ return e.replace(/start|end/g, (n) => po[n]);
440
675
  }
441
- const bt = ["left", "right"], yt = ["right", "left"], Kn = ["top", "bottom"], qn = ["bottom", "top"];
442
- function Gn(e, n, t) {
676
+ const xt = ["left", "right"], kt = ["right", "left"], yo = ["top", "bottom"], wo = ["bottom", "top"];
677
+ function _o(e, n, t) {
443
678
  switch (e) {
444
679
  case "top":
445
680
  case "bottom":
446
- return t ? n ? yt : bt : n ? bt : yt;
681
+ return t ? n ? kt : xt : n ? xt : kt;
447
682
  case "left":
448
683
  case "right":
449
- return n ? Kn : qn;
684
+ return n ? yo : wo;
450
685
  default:
451
686
  return [];
452
687
  }
453
688
  }
454
- function Yn(e, n, t, o) {
455
- const l = Pe(e);
456
- let s = Gn(fe(e), t === "start", o);
457
- return l && (s = s.map((a) => a + "-" + l), n && (s = s.concat(s.map(Ze)))), s;
689
+ function xo(e, n, t, o) {
690
+ const l = Me(e);
691
+ let a = _o(pe(e), t === "start", o);
692
+ return l && (a = a.map((i) => i + "-" + l), n && (a = a.concat(a.map(tt)))), a;
458
693
  }
459
- function He(e) {
460
- return e.replace(/left|right|bottom|top/g, (n) => Nn[n]);
694
+ function We(e) {
695
+ return e.replace(/left|right|bottom|top/g, (n) => mo[n]);
461
696
  }
462
- function Jn(e) {
697
+ function ko(e) {
463
698
  return {
464
699
  top: 0,
465
700
  right: 0,
@@ -468,15 +703,15 @@ function Jn(e) {
468
703
  ...e
469
704
  };
470
705
  }
471
- function Qn(e) {
472
- return typeof e != "number" ? Jn(e) : {
706
+ function Vo(e) {
707
+ return typeof e != "number" ? ko(e) : {
473
708
  top: e,
474
709
  right: e,
475
710
  bottom: e,
476
711
  left: e
477
712
  };
478
713
  }
479
- function We(e) {
714
+ function Ke(e) {
480
715
  const {
481
716
  x: n,
482
717
  y: t,
@@ -494,161 +729,161 @@ function We(e) {
494
729
  y: t
495
730
  };
496
731
  }
497
- function wt(e, n, t) {
732
+ function Vt(e, n, t) {
498
733
  let {
499
734
  reference: o,
500
735
  floating: l
501
736
  } = e;
502
- const s = ce(n), a = Pt(n), r = Mt(a), i = fe(n), c = s === "y", u = o.x + o.width / 2 - l.width / 2, d = o.y + o.height / 2 - l.height / 2, m = o[r] / 2 - l[r] / 2;
503
- let f;
504
- switch (i) {
737
+ const a = fe(n), i = It(n), c = zt(i), s = pe(n), r = a === "y", u = o.x + o.width / 2 - l.width / 2, d = o.y + o.height / 2 - l.height / 2, v = o[c] / 2 - l[c] / 2;
738
+ let m;
739
+ switch (s) {
505
740
  case "top":
506
- f = {
741
+ m = {
507
742
  x: u,
508
743
  y: o.y - l.height
509
744
  };
510
745
  break;
511
746
  case "bottom":
512
- f = {
747
+ m = {
513
748
  x: u,
514
749
  y: o.y + o.height
515
750
  };
516
751
  break;
517
752
  case "right":
518
- f = {
753
+ m = {
519
754
  x: o.x + o.width,
520
755
  y: d
521
756
  };
522
757
  break;
523
758
  case "left":
524
- f = {
759
+ m = {
525
760
  x: o.x - l.width,
526
761
  y: d
527
762
  };
528
763
  break;
529
764
  default:
530
- f = {
765
+ m = {
531
766
  x: o.x,
532
767
  y: o.y
533
768
  };
534
769
  }
535
- switch (Pe(n)) {
770
+ switch (Me(n)) {
536
771
  case "start":
537
- f[a] -= m * (t && c ? -1 : 1);
772
+ m[i] -= v * (t && r ? -1 : 1);
538
773
  break;
539
774
  case "end":
540
- f[a] += m * (t && c ? -1 : 1);
775
+ m[i] += v * (t && r ? -1 : 1);
541
776
  break;
542
777
  }
543
- return f;
778
+ return m;
544
779
  }
545
- const Zn = async (e, n, t) => {
780
+ const Co = async (e, n, t) => {
546
781
  const {
547
782
  placement: o = "bottom",
548
783
  strategy: l = "absolute",
549
- middleware: s = [],
550
- platform: a
551
- } = t, r = s.filter(Boolean), i = await (a.isRTL == null ? void 0 : a.isRTL(n));
552
- let c = await a.getElementRects({
784
+ middleware: a = [],
785
+ platform: i
786
+ } = t, c = a.filter(Boolean), s = await (i.isRTL == null ? void 0 : i.isRTL(n));
787
+ let r = await i.getElementRects({
553
788
  reference: e,
554
789
  floating: n,
555
790
  strategy: l
556
791
  }), {
557
792
  x: u,
558
793
  y: d
559
- } = wt(c, o, i), m = o, f = {}, p = 0;
560
- for (let y = 0; y < r.length; y++) {
794
+ } = Vt(r, o, s), v = o, m = {}, p = 0;
795
+ for (let _ = 0; _ < c.length; _++) {
561
796
  const {
562
- name: V,
563
- fn: w
564
- } = r[y], {
565
- x: _,
566
- y: h,
567
- data: O,
568
- reset: A
569
- } = await w({
797
+ name: h,
798
+ fn: y
799
+ } = c[_], {
800
+ x: w,
801
+ y: g,
802
+ data: L,
803
+ reset: B
804
+ } = await y({
570
805
  x: u,
571
806
  y: d,
572
807
  initialPlacement: o,
573
- placement: m,
808
+ placement: v,
574
809
  strategy: l,
575
- middlewareData: f,
576
- rects: c,
577
- platform: a,
810
+ middlewareData: m,
811
+ rects: r,
812
+ platform: i,
578
813
  elements: {
579
814
  reference: e,
580
815
  floating: n
581
816
  }
582
817
  });
583
- u = _ ?? u, d = h ?? d, f = {
584
- ...f,
585
- [V]: {
586
- ...f[V],
587
- ...O
818
+ u = w ?? u, d = g ?? d, m = {
819
+ ...m,
820
+ [h]: {
821
+ ...m[h],
822
+ ...L
588
823
  }
589
- }, A && p <= 50 && (p++, typeof A == "object" && (A.placement && (m = A.placement), A.rects && (c = A.rects === !0 ? await a.getElementRects({
824
+ }, B && p <= 50 && (p++, typeof B == "object" && (B.placement && (v = B.placement), B.rects && (r = B.rects === !0 ? await i.getElementRects({
590
825
  reference: e,
591
826
  floating: n,
592
827
  strategy: l
593
- }) : A.rects), {
828
+ }) : B.rects), {
594
829
  x: u,
595
830
  y: d
596
- } = wt(c, m, i)), y = -1);
831
+ } = Vt(r, v, s)), _ = -1);
597
832
  }
598
833
  return {
599
834
  x: u,
600
835
  y: d,
601
- placement: m,
836
+ placement: v,
602
837
  strategy: l,
603
- middlewareData: f
838
+ middlewareData: m
604
839
  };
605
840
  };
606
- async function nt(e, n) {
841
+ async function it(e, n) {
607
842
  var t;
608
843
  n === void 0 && (n = {});
609
844
  const {
610
845
  x: o,
611
846
  y: l,
612
- platform: s,
613
- rects: a,
614
- elements: r,
615
- strategy: i
847
+ platform: a,
848
+ rects: i,
849
+ elements: c,
850
+ strategy: s
616
851
  } = e, {
617
- boundary: c = "clippingAncestors",
852
+ boundary: r = "clippingAncestors",
618
853
  rootBoundary: u = "viewport",
619
854
  elementContext: d = "floating",
620
- altBoundary: m = !1,
621
- padding: f = 0
622
- } = Me(n, e), p = Qn(f), V = r[m ? d === "floating" ? "reference" : "floating" : d], w = We(await s.getClippingRect({
623
- element: (t = await (s.isElement == null ? void 0 : s.isElement(V))) == null || t ? V : V.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(r.floating)),
624
- boundary: c,
855
+ altBoundary: v = !1,
856
+ padding: m = 0
857
+ } = De(n, e), p = Vo(m), h = c[v ? d === "floating" ? "reference" : "floating" : d], y = Ke(await a.getClippingRect({
858
+ element: (t = await (a.isElement == null ? void 0 : a.isElement(h))) == null || t ? h : h.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(c.floating)),
859
+ boundary: r,
625
860
  rootBoundary: u,
626
- strategy: i
627
- })), _ = d === "floating" ? {
861
+ strategy: s
862
+ })), w = d === "floating" ? {
628
863
  x: o,
629
864
  y: l,
630
- width: a.floating.width,
631
- height: a.floating.height
632
- } : a.reference, h = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(r.floating)), O = await (s.isElement == null ? void 0 : s.isElement(h)) ? await (s.getScale == null ? void 0 : s.getScale(h)) || {
865
+ width: i.floating.width,
866
+ height: i.floating.height
867
+ } : i.reference, g = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c.floating)), L = await (a.isElement == null ? void 0 : a.isElement(g)) ? await (a.getScale == null ? void 0 : a.getScale(g)) || {
633
868
  x: 1,
634
869
  y: 1
635
870
  } : {
636
871
  x: 1,
637
872
  y: 1
638
- }, A = We(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
639
- elements: r,
640
- rect: _,
641
- offsetParent: h,
642
- strategy: i
643
- }) : _);
873
+ }, B = Ke(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
874
+ elements: c,
875
+ rect: w,
876
+ offsetParent: g,
877
+ strategy: s
878
+ }) : w);
644
879
  return {
645
- top: (w.top - A.top + p.top) / O.y,
646
- bottom: (A.bottom - w.bottom + p.bottom) / O.y,
647
- left: (w.left - A.left + p.left) / O.x,
648
- right: (A.right - w.right + p.right) / O.x
880
+ top: (y.top - B.top + p.top) / L.y,
881
+ bottom: (B.bottom - y.bottom + p.bottom) / L.y,
882
+ left: (y.left - B.left + p.left) / L.x,
883
+ right: (B.right - y.right + p.right) / L.x
649
884
  };
650
885
  }
651
- const eo = function(e) {
886
+ const Eo = function(e) {
652
887
  return e === void 0 && (e = {}), {
653
888
  name: "flip",
654
889
  options: e,
@@ -656,89 +891,89 @@ const eo = function(e) {
656
891
  var t, o;
657
892
  const {
658
893
  placement: l,
659
- middlewareData: s,
660
- rects: a,
661
- initialPlacement: r,
662
- platform: i,
663
- elements: c
894
+ middlewareData: a,
895
+ rects: i,
896
+ initialPlacement: c,
897
+ platform: s,
898
+ elements: r
664
899
  } = n, {
665
900
  mainAxis: u = !0,
666
901
  crossAxis: d = !0,
667
- fallbackPlacements: m,
668
- fallbackStrategy: f = "bestFit",
902
+ fallbackPlacements: v,
903
+ fallbackStrategy: m = "bestFit",
669
904
  fallbackAxisSideDirection: p = "none",
670
- flipAlignment: y = !0,
671
- ...V
672
- } = Me(e, n);
673
- if ((t = s.arrow) != null && t.alignmentOffset)
905
+ flipAlignment: _ = !0,
906
+ ...h
907
+ } = De(e, n);
908
+ if ((t = a.arrow) != null && t.alignmentOffset)
674
909
  return {};
675
- const w = fe(l), _ = ce(r), h = fe(r) === r, O = await (i.isRTL == null ? void 0 : i.isRTL(c.floating)), A = m || (h || !y ? [He(r)] : Xn(r)), F = p !== "none";
676
- !m && F && A.push(...Yn(r, y, p, O));
677
- const g = [r, ...A], b = await nt(n, V), S = [];
678
- let z = ((o = s.flip) == null ? void 0 : o.overflows) || [];
679
- if (u && S.push(b[w]), d) {
680
- const re = Un(l, a, O);
681
- S.push(b[re[0]], b[re[1]]);
910
+ const y = pe(l), w = fe(c), g = pe(c) === c, L = await (s.isRTL == null ? void 0 : s.isRTL(r.floating)), B = v || (g || !_ ? [We(c)] : bo(c)), F = p !== "none";
911
+ !v && F && B.push(...xo(c, _, p, L));
912
+ const x = [c, ...B], k = await it(n, h), A = [];
913
+ let z = ((o = a.flip) == null ? void 0 : o.overflows) || [];
914
+ if (u && A.push(k[y]), d) {
915
+ const de = go(l, i, L);
916
+ A.push(k[de[0]], k[de[1]]);
682
917
  }
683
918
  if (z = [...z, {
684
919
  placement: l,
685
- overflows: S
686
- }], !S.every((re) => re <= 0)) {
687
- var I, se;
688
- const re = (((I = s.flip) == null ? void 0 : I.index) || 0) + 1, xe = g[re];
689
- if (xe && (!(d === "alignment" ? _ !== ce(xe) : !1) || // We leave the current main axis only if every placement on that axis
920
+ overflows: A
921
+ }], !A.every((de) => de <= 0)) {
922
+ var H, ce;
923
+ const de = (((H = a.flip) == null ? void 0 : H.index) || 0) + 1, xe = x[de];
924
+ if (xe && (!(d === "alignment" ? w !== fe(xe) : !1) || // We leave the current main axis only if every placement on that axis
690
925
  // overflows the main axis.
691
- z.every((K) => ce(K.placement) === _ ? K.overflows[0] > 0 : !0)))
926
+ z.every((G) => fe(G.placement) === w ? G.overflows[0] > 0 : !0)))
692
927
  return {
693
928
  data: {
694
- index: re,
929
+ index: de,
695
930
  overflows: z
696
931
  },
697
932
  reset: {
698
933
  placement: xe
699
934
  }
700
935
  };
701
- let J = (se = z.filter((ne) => ne.overflows[0] <= 0).sort((ne, K) => ne.overflows[1] - K.overflows[1])[0]) == null ? void 0 : se.placement;
702
- if (!J)
703
- switch (f) {
936
+ let ee = (ce = z.filter((ae) => ae.overflows[0] <= 0).sort((ae, G) => ae.overflows[1] - G.overflows[1])[0]) == null ? void 0 : ce.placement;
937
+ if (!ee)
938
+ switch (m) {
704
939
  case "bestFit": {
705
- var ie;
706
- const ne = (ie = z.filter((K) => {
940
+ var ue;
941
+ const ae = (ue = z.filter((G) => {
707
942
  if (F) {
708
- const Q = ce(K.placement);
709
- return Q === _ || // Create a bias to the `y` side axis due to horizontal
943
+ const te = fe(G.placement);
944
+ return te === w || // Create a bias to the `y` side axis due to horizontal
710
945
  // reading directions favoring greater width.
711
- Q === "y";
946
+ te === "y";
712
947
  }
713
948
  return !0;
714
- }).map((K) => [K.placement, K.overflows.filter((Q) => Q > 0).reduce((Q, De) => Q + De, 0)]).sort((K, Q) => K[1] - Q[1])[0]) == null ? void 0 : ie[0];
715
- ne && (J = ne);
949
+ }).map((G) => [G.placement, G.overflows.filter((te) => te > 0).reduce((te, Fe) => te + Fe, 0)]).sort((G, te) => G[1] - te[1])[0]) == null ? void 0 : ue[0];
950
+ ae && (ee = ae);
716
951
  break;
717
952
  }
718
953
  case "initialPlacement":
719
- J = r;
954
+ ee = c;
720
955
  break;
721
956
  }
722
- if (l !== J)
957
+ if (l !== ee)
723
958
  return {
724
959
  reset: {
725
- placement: J
960
+ placement: ee
726
961
  }
727
962
  };
728
963
  }
729
964
  return {};
730
965
  }
731
966
  };
732
- }, to = /* @__PURE__ */ new Set(["left", "top"]);
733
- async function no(e, n) {
967
+ }, Lo = /* @__PURE__ */ new Set(["left", "top"]);
968
+ async function $o(e, n) {
734
969
  const {
735
970
  placement: t,
736
971
  platform: o,
737
972
  elements: l
738
- } = e, s = await (o.isRTL == null ? void 0 : o.isRTL(l.floating)), a = fe(t), r = Pe(t), i = ce(t) === "y", c = to.has(a) ? -1 : 1, u = s && i ? -1 : 1, d = Me(n, e);
973
+ } = e, a = await (o.isRTL == null ? void 0 : o.isRTL(l.floating)), i = pe(t), c = Me(t), s = fe(t) === "y", r = Lo.has(i) ? -1 : 1, u = a && s ? -1 : 1, d = De(n, e);
739
974
  let {
740
- mainAxis: m,
741
- crossAxis: f,
975
+ mainAxis: v,
976
+ crossAxis: m,
742
977
  alignmentAxis: p
743
978
  } = typeof d == "number" ? {
744
979
  mainAxis: d,
@@ -749,15 +984,15 @@ async function no(e, n) {
749
984
  crossAxis: d.crossAxis || 0,
750
985
  alignmentAxis: d.alignmentAxis
751
986
  };
752
- return r && typeof p == "number" && (f = r === "end" ? p * -1 : p), i ? {
753
- x: f * u,
754
- y: m * c
987
+ return c && typeof p == "number" && (m = c === "end" ? p * -1 : p), s ? {
988
+ x: m * u,
989
+ y: v * r
755
990
  } : {
756
- x: m * c,
757
- y: f * u
991
+ x: v * r,
992
+ y: m * u
758
993
  };
759
994
  }
760
- const oo = function(e) {
995
+ const So = function(e) {
761
996
  return e === void 0 && (e = 0), {
762
997
  name: "offset",
763
998
  options: e,
@@ -765,21 +1000,21 @@ const oo = function(e) {
765
1000
  var t, o;
766
1001
  const {
767
1002
  x: l,
768
- y: s,
769
- placement: a,
770
- middlewareData: r
771
- } = n, i = await no(n, e);
772
- return a === ((t = r.offset) == null ? void 0 : t.placement) && (o = r.arrow) != null && o.alignmentOffset ? {} : {
773
- x: l + i.x,
774
- y: s + i.y,
1003
+ y: a,
1004
+ placement: i,
1005
+ middlewareData: c
1006
+ } = n, s = await $o(n, e);
1007
+ return i === ((t = c.offset) == null ? void 0 : t.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
1008
+ x: l + s.x,
1009
+ y: a + s.y,
775
1010
  data: {
776
- ...i,
777
- placement: a
1011
+ ...s,
1012
+ placement: i
778
1013
  }
779
1014
  };
780
1015
  }
781
1016
  };
782
- }, lo = function(e) {
1017
+ }, Ro = function(e) {
783
1018
  return e === void 0 && (e = {}), {
784
1019
  name: "shift",
785
1020
  options: e,
@@ -789,53 +1024,53 @@ const oo = function(e) {
789
1024
  y: o,
790
1025
  placement: l
791
1026
  } = n, {
792
- mainAxis: s = !0,
793
- crossAxis: a = !1,
794
- limiter: r = {
795
- fn: (V) => {
1027
+ mainAxis: a = !0,
1028
+ crossAxis: i = !1,
1029
+ limiter: c = {
1030
+ fn: (h) => {
796
1031
  let {
797
- x: w,
798
- y: _
799
- } = V;
1032
+ x: y,
1033
+ y: w
1034
+ } = h;
800
1035
  return {
801
- x: w,
802
- y: _
1036
+ x: y,
1037
+ y: w
803
1038
  };
804
1039
  }
805
1040
  },
806
- ...i
807
- } = Me(e, n), c = {
1041
+ ...s
1042
+ } = De(e, n), r = {
808
1043
  x: t,
809
1044
  y: o
810
- }, u = await nt(n, i), d = ce(fe(l)), m = Bt(d);
811
- let f = c[m], p = c[d];
812
- if (s) {
813
- const V = m === "y" ? "top" : "left", w = m === "y" ? "bottom" : "right", _ = f + u[V], h = f - u[w];
814
- f = gt(_, f, h);
815
- }
1045
+ }, u = await it(n, s), d = fe(pe(l)), v = Ft(d);
1046
+ let m = r[v], p = r[d];
816
1047
  if (a) {
817
- const V = d === "y" ? "top" : "left", w = d === "y" ? "bottom" : "right", _ = p + u[V], h = p - u[w];
818
- p = gt(_, p, h);
1048
+ const h = v === "y" ? "top" : "left", y = v === "y" ? "bottom" : "right", w = m + u[h], g = m - u[y];
1049
+ m = _t(w, m, g);
1050
+ }
1051
+ if (i) {
1052
+ const h = d === "y" ? "top" : "left", y = d === "y" ? "bottom" : "right", w = p + u[h], g = p - u[y];
1053
+ p = _t(w, p, g);
819
1054
  }
820
- const y = r.fn({
1055
+ const _ = c.fn({
821
1056
  ...n,
822
- [m]: f,
1057
+ [v]: m,
823
1058
  [d]: p
824
1059
  });
825
1060
  return {
826
- ...y,
1061
+ ..._,
827
1062
  data: {
828
- x: y.x - t,
829
- y: y.y - o,
1063
+ x: _.x - t,
1064
+ y: _.y - o,
830
1065
  enabled: {
831
- [m]: s,
832
- [d]: a
1066
+ [v]: a,
1067
+ [d]: i
833
1068
  }
834
1069
  }
835
1070
  };
836
1071
  }
837
1072
  };
838
- }, ao = function(e) {
1073
+ }, Ao = function(e) {
839
1074
  return e === void 0 && (e = {}), {
840
1075
  name: "size",
841
1076
  options: e,
@@ -843,32 +1078,32 @@ const oo = function(e) {
843
1078
  var t, o;
844
1079
  const {
845
1080
  placement: l,
846
- rects: s,
847
- platform: a,
848
- elements: r
1081
+ rects: a,
1082
+ platform: i,
1083
+ elements: c
849
1084
  } = n, {
850
- apply: i = () => {
1085
+ apply: s = () => {
851
1086
  },
852
- ...c
853
- } = Me(e, n), u = await nt(n, c), d = fe(l), m = Pe(l), f = ce(l) === "y", {
1087
+ ...r
1088
+ } = De(e, n), u = await it(n, r), d = pe(l), v = Me(l), m = fe(l) === "y", {
854
1089
  width: p,
855
- height: y
856
- } = s.floating;
857
- let V, w;
858
- d === "top" || d === "bottom" ? (V = d, w = m === (await (a.isRTL == null ? void 0 : a.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (w = d, V = m === "end" ? "top" : "bottom");
859
- const _ = y - u.top - u.bottom, h = p - u.left - u.right, O = Ee(y - u[V], _), A = Ee(p - u[w], h), F = !n.middlewareData.shift;
860
- let g = O, b = A;
861
- if ((t = n.middlewareData.shift) != null && t.enabled.x && (b = h), (o = n.middlewareData.shift) != null && o.enabled.y && (g = _), F && !m) {
862
- const z = G(u.left, 0), I = G(u.right, 0), se = G(u.top, 0), ie = G(u.bottom, 0);
863
- f ? b = p - 2 * (z !== 0 || I !== 0 ? z + I : G(u.left, u.right)) : g = y - 2 * (se !== 0 || ie !== 0 ? se + ie : G(u.top, u.bottom));
1090
+ height: _
1091
+ } = a.floating;
1092
+ let h, y;
1093
+ d === "top" || d === "bottom" ? (h = d, y = v === (await (i.isRTL == null ? void 0 : i.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (y = d, h = v === "end" ? "top" : "bottom");
1094
+ const w = _ - u.top - u.bottom, g = p - u.left - u.right, L = Le(_ - u[h], w), B = Le(p - u[y], g), F = !n.middlewareData.shift;
1095
+ let x = L, k = B;
1096
+ if ((t = n.middlewareData.shift) != null && t.enabled.x && (k = g), (o = n.middlewareData.shift) != null && o.enabled.y && (x = w), F && !v) {
1097
+ const z = Y(u.left, 0), H = Y(u.right, 0), ce = Y(u.top, 0), ue = Y(u.bottom, 0);
1098
+ m ? k = p - 2 * (z !== 0 || H !== 0 ? z + H : Y(u.left, u.right)) : x = _ - 2 * (ce !== 0 || ue !== 0 ? ce + ue : Y(u.top, u.bottom));
864
1099
  }
865
- await i({
1100
+ await s({
866
1101
  ...n,
867
- availableWidth: b,
868
- availableHeight: g
1102
+ availableWidth: k,
1103
+ availableHeight: x
869
1104
  });
870
- const S = await a.getDimensions(r.floating);
871
- return p !== S.width || y !== S.height ? {
1105
+ const A = await i.getDimensions(c.floating);
1106
+ return p !== A.width || _ !== A.height ? {
872
1107
  reset: {
873
1108
  rects: !0
874
1109
  }
@@ -876,49 +1111,49 @@ const oo = function(e) {
876
1111
  }
877
1112
  };
878
1113
  };
879
- function Ke() {
1114
+ function Ne() {
880
1115
  return typeof window < "u";
881
1116
  }
882
- function we(e) {
883
- return ot(e) ? (e.nodeName || "").toLowerCase() : "#document";
1117
+ function _e(e) {
1118
+ return st(e) ? (e.nodeName || "").toLowerCase() : "#document";
884
1119
  }
885
- function Y(e) {
1120
+ function Q(e) {
886
1121
  var n;
887
1122
  return (e == null || (n = e.ownerDocument) == null ? void 0 : n.defaultView) || window;
888
1123
  }
889
- function ae(e) {
1124
+ function re(e) {
890
1125
  var n;
891
- return (n = (ot(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : n.documentElement;
1126
+ return (n = (st(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : n.documentElement;
892
1127
  }
893
- function ot(e) {
894
- return Ke() ? e instanceof Node || e instanceof Y(e).Node : !1;
1128
+ function st(e) {
1129
+ return Ne() ? e instanceof Node || e instanceof Q(e).Node : !1;
895
1130
  }
896
- function ee(e) {
897
- return Ke() ? e instanceof Element || e instanceof Y(e).Element : !1;
1131
+ function oe(e) {
1132
+ return Ne() ? e instanceof Element || e instanceof Q(e).Element : !1;
898
1133
  }
899
- function le(e) {
900
- return Ke() ? e instanceof HTMLElement || e instanceof Y(e).HTMLElement : !1;
1134
+ function se(e) {
1135
+ return Ne() ? e instanceof HTMLElement || e instanceof Q(e).HTMLElement : !1;
901
1136
  }
902
- function xt(e) {
903
- return !Ke() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Y(e).ShadowRoot;
1137
+ function Ct(e) {
1138
+ return !Ne() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Q(e).ShadowRoot;
904
1139
  }
905
- const so = /* @__PURE__ */ new Set(["inline", "contents"]);
906
- function je(e) {
1140
+ const To = /* @__PURE__ */ new Set(["inline", "contents"]);
1141
+ function Pe(e) {
907
1142
  const {
908
1143
  overflow: n,
909
1144
  overflowX: t,
910
1145
  overflowY: o,
911
1146
  display: l
912
- } = te(e);
913
- return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !so.has(l);
1147
+ } = le(e);
1148
+ return /auto|scroll|overlay|hidden|clip/.test(n + o + t) && !To.has(l);
914
1149
  }
915
- const io = /* @__PURE__ */ new Set(["table", "td", "th"]);
916
- function ro(e) {
917
- return io.has(we(e));
1150
+ const Oo = /* @__PURE__ */ new Set(["table", "td", "th"]);
1151
+ function Bo(e) {
1152
+ return Oo.has(_e(e));
918
1153
  }
919
- const co = [":popover-open", ":modal"];
1154
+ const Do = [":popover-open", ":modal"];
920
1155
  function qe(e) {
921
- return co.some((n) => {
1156
+ return Do.some((n) => {
922
1157
  try {
923
1158
  return e.matches(n);
924
1159
  } catch {
@@ -926,34 +1161,34 @@ function qe(e) {
926
1161
  }
927
1162
  });
928
1163
  }
929
- const uo = ["transform", "translate", "scale", "rotate", "perspective"], fo = ["transform", "translate", "scale", "rotate", "perspective", "filter"], mo = ["paint", "layout", "strict", "content"];
930
- function lt(e) {
931
- const n = at(), t = ee(e) ? te(e) : e;
932
- return uo.some((o) => t[o] ? t[o] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !n && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !n && (t.filter ? t.filter !== "none" : !1) || fo.some((o) => (t.willChange || "").includes(o)) || mo.some((o) => (t.contain || "").includes(o));
1164
+ const Mo = ["transform", "translate", "scale", "rotate", "perspective"], Po = ["transform", "translate", "scale", "rotate", "perspective", "filter"], jo = ["paint", "layout", "strict", "content"];
1165
+ function rt(e) {
1166
+ const n = ct(), t = oe(e) ? le(e) : e;
1167
+ return Mo.some((o) => t[o] ? t[o] !== "none" : !1) || (t.containerType ? t.containerType !== "normal" : !1) || !n && (t.backdropFilter ? t.backdropFilter !== "none" : !1) || !n && (t.filter ? t.filter !== "none" : !1) || Po.some((o) => (t.willChange || "").includes(o)) || jo.some((o) => (t.contain || "").includes(o));
933
1168
  }
934
- function vo(e) {
935
- let n = me(e);
936
- for (; le(n) && !Re(n); ) {
937
- if (lt(n))
1169
+ function Fo(e) {
1170
+ let n = he(e);
1171
+ for (; se(n) && !$e(n); ) {
1172
+ if (rt(n))
938
1173
  return n;
939
1174
  if (qe(n))
940
1175
  return null;
941
- n = me(n);
1176
+ n = he(n);
942
1177
  }
943
1178
  return null;
944
1179
  }
945
- function at() {
1180
+ function ct() {
946
1181
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
947
1182
  }
948
- const po = /* @__PURE__ */ new Set(["html", "body", "#document"]);
949
- function Re(e) {
950
- return po.has(we(e));
1183
+ const zo = /* @__PURE__ */ new Set(["html", "body", "#document"]);
1184
+ function $e(e) {
1185
+ return zo.has(_e(e));
951
1186
  }
952
- function te(e) {
953
- return Y(e).getComputedStyle(e);
1187
+ function le(e) {
1188
+ return Q(e).getComputedStyle(e);
954
1189
  }
955
1190
  function Ge(e) {
956
- return ee(e) ? {
1191
+ return oe(e) ? {
957
1192
  scrollLeft: e.scrollLeft,
958
1193
  scrollTop: e.scrollTop
959
1194
  } : {
@@ -961,189 +1196,189 @@ function Ge(e) {
961
1196
  scrollTop: e.scrollY
962
1197
  };
963
1198
  }
964
- function me(e) {
965
- if (we(e) === "html")
1199
+ function he(e) {
1200
+ if (_e(e) === "html")
966
1201
  return e;
967
1202
  const n = (
968
1203
  // Step into the shadow DOM of the parent of a slotted node.
969
1204
  e.assignedSlot || // DOM Element detected.
970
1205
  e.parentNode || // ShadowRoot detected.
971
- xt(e) && e.host || // Fallback.
972
- ae(e)
1206
+ Ct(e) && e.host || // Fallback.
1207
+ re(e)
973
1208
  );
974
- return xt(n) ? n.host : n;
1209
+ return Ct(n) ? n.host : n;
975
1210
  }
976
- function jt(e) {
977
- const n = me(e);
978
- return Re(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : le(n) && je(n) ? n : jt(n);
1211
+ function Ht(e) {
1212
+ const n = he(e);
1213
+ return $e(n) ? e.ownerDocument ? e.ownerDocument.body : e.body : se(n) && Pe(n) ? n : Ht(n);
979
1214
  }
980
- function Ae(e, n, t) {
1215
+ function Te(e, n, t) {
981
1216
  var o;
982
1217
  n === void 0 && (n = []), t === void 0 && (t = !0);
983
- const l = jt(e), s = l === ((o = e.ownerDocument) == null ? void 0 : o.body), a = Y(l);
984
- if (s) {
985
- const r = et(a);
986
- return n.concat(a, a.visualViewport || [], je(l) ? l : [], r && t ? Ae(r) : []);
1218
+ const l = Ht(e), a = l === ((o = e.ownerDocument) == null ? void 0 : o.body), i = Q(l);
1219
+ if (a) {
1220
+ const c = nt(i);
1221
+ return n.concat(i, i.visualViewport || [], Pe(l) ? l : [], c && t ? Te(c) : []);
987
1222
  }
988
- return n.concat(l, Ae(l, [], t));
1223
+ return n.concat(l, Te(l, [], t));
989
1224
  }
990
- function et(e) {
1225
+ function nt(e) {
991
1226
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
992
1227
  }
993
- function Ft(e) {
994
- const n = te(e);
1228
+ function Ut(e) {
1229
+ const n = le(e);
995
1230
  let t = parseFloat(n.width) || 0, o = parseFloat(n.height) || 0;
996
- const l = le(e), s = l ? e.offsetWidth : t, a = l ? e.offsetHeight : o, r = Ne(t) !== s || Ne(o) !== a;
997
- return r && (t = s, o = a), {
1231
+ const l = se(e), a = l ? e.offsetWidth : t, i = l ? e.offsetHeight : o, c = Ue(t) !== a || Ue(o) !== i;
1232
+ return c && (t = a, o = i), {
998
1233
  width: t,
999
1234
  height: o,
1000
- $: r
1235
+ $: c
1001
1236
  };
1002
1237
  }
1003
- function st(e) {
1004
- return ee(e) ? e : e.contextElement;
1238
+ function ut(e) {
1239
+ return oe(e) ? e : e.contextElement;
1005
1240
  }
1006
- function ke(e) {
1007
- const n = st(e);
1008
- if (!le(n))
1009
- return oe(1);
1241
+ function Ce(e) {
1242
+ const n = ut(e);
1243
+ if (!se(n))
1244
+ return ie(1);
1010
1245
  const t = n.getBoundingClientRect(), {
1011
1246
  width: o,
1012
1247
  height: l,
1013
- $: s
1014
- } = Ft(n);
1015
- let a = (s ? Ne(t.width) : t.width) / o, r = (s ? Ne(t.height) : t.height) / l;
1016
- return (!a || !Number.isFinite(a)) && (a = 1), (!r || !Number.isFinite(r)) && (r = 1), {
1017
- x: a,
1018
- y: r
1248
+ $: a
1249
+ } = Ut(n);
1250
+ let i = (a ? Ue(t.width) : t.width) / o, c = (a ? Ue(t.height) : t.height) / l;
1251
+ return (!i || !Number.isFinite(i)) && (i = 1), (!c || !Number.isFinite(c)) && (c = 1), {
1252
+ x: i,
1253
+ y: c
1019
1254
  };
1020
1255
  }
1021
- const ho = /* @__PURE__ */ oe(0);
1022
- function Dt(e) {
1023
- const n = Y(e);
1024
- return !at() || !n.visualViewport ? ho : {
1256
+ const Io = /* @__PURE__ */ ie(0);
1257
+ function Wt(e) {
1258
+ const n = Q(e);
1259
+ return !ct() || !n.visualViewport ? Io : {
1025
1260
  x: n.visualViewport.offsetLeft,
1026
1261
  y: n.visualViewport.offsetTop
1027
1262
  };
1028
1263
  }
1029
- function go(e, n, t) {
1030
- return n === void 0 && (n = !1), !t || n && t !== Y(e) ? !1 : n;
1264
+ function Ho(e, n, t) {
1265
+ return n === void 0 && (n = !1), !t || n && t !== Q(e) ? !1 : n;
1031
1266
  }
1032
- function be(e, n, t, o) {
1267
+ function ye(e, n, t, o) {
1033
1268
  n === void 0 && (n = !1), t === void 0 && (t = !1);
1034
- const l = e.getBoundingClientRect(), s = st(e);
1035
- let a = oe(1);
1036
- n && (o ? ee(o) && (a = ke(o)) : a = ke(e));
1037
- const r = go(s, t, o) ? Dt(s) : oe(0);
1038
- let i = (l.left + r.x) / a.x, c = (l.top + r.y) / a.y, u = l.width / a.x, d = l.height / a.y;
1039
- if (s) {
1040
- const m = Y(s), f = o && ee(o) ? Y(o) : o;
1041
- let p = m, y = et(p);
1042
- for (; y && o && f !== p; ) {
1043
- const V = ke(y), w = y.getBoundingClientRect(), _ = te(y), h = w.left + (y.clientLeft + parseFloat(_.paddingLeft)) * V.x, O = w.top + (y.clientTop + parseFloat(_.paddingTop)) * V.y;
1044
- i *= V.x, c *= V.y, u *= V.x, d *= V.y, i += h, c += O, p = Y(y), y = et(p);
1269
+ const l = e.getBoundingClientRect(), a = ut(e);
1270
+ let i = ie(1);
1271
+ n && (o ? oe(o) && (i = Ce(o)) : i = Ce(e));
1272
+ const c = Ho(a, t, o) ? Wt(a) : ie(0);
1273
+ let s = (l.left + c.x) / i.x, r = (l.top + c.y) / i.y, u = l.width / i.x, d = l.height / i.y;
1274
+ if (a) {
1275
+ const v = Q(a), m = o && oe(o) ? Q(o) : o;
1276
+ let p = v, _ = nt(p);
1277
+ for (; _ && o && m !== p; ) {
1278
+ const h = Ce(_), y = _.getBoundingClientRect(), w = le(_), g = y.left + (_.clientLeft + parseFloat(w.paddingLeft)) * h.x, L = y.top + (_.clientTop + parseFloat(w.paddingTop)) * h.y;
1279
+ s *= h.x, r *= h.y, u *= h.x, d *= h.y, s += g, r += L, p = Q(_), _ = nt(p);
1045
1280
  }
1046
1281
  }
1047
- return We({
1282
+ return Ke({
1048
1283
  width: u,
1049
1284
  height: d,
1050
- x: i,
1051
- y: c
1285
+ x: s,
1286
+ y: r
1052
1287
  });
1053
1288
  }
1054
1289
  function Ye(e, n) {
1055
1290
  const t = Ge(e).scrollLeft;
1056
- return n ? n.left + t : be(ae(e)).left + t;
1291
+ return n ? n.left + t : ye(re(e)).left + t;
1057
1292
  }
1058
- function zt(e, n) {
1293
+ function Kt(e, n) {
1059
1294
  const t = e.getBoundingClientRect(), o = t.left + n.scrollLeft - Ye(e, t), l = t.top + n.scrollTop;
1060
1295
  return {
1061
1296
  x: o,
1062
1297
  y: l
1063
1298
  };
1064
1299
  }
1065
- function bo(e) {
1300
+ function Uo(e) {
1066
1301
  let {
1067
1302
  elements: n,
1068
1303
  rect: t,
1069
1304
  offsetParent: o,
1070
1305
  strategy: l
1071
1306
  } = e;
1072
- const s = l === "fixed", a = ae(o), r = n ? qe(n.floating) : !1;
1073
- if (o === a || r && s)
1307
+ const a = l === "fixed", i = re(o), c = n ? qe(n.floating) : !1;
1308
+ if (o === i || c && a)
1074
1309
  return t;
1075
- let i = {
1310
+ let s = {
1076
1311
  scrollLeft: 0,
1077
1312
  scrollTop: 0
1078
- }, c = oe(1);
1079
- const u = oe(0), d = le(o);
1080
- if ((d || !d && !s) && ((we(o) !== "body" || je(a)) && (i = Ge(o)), le(o))) {
1081
- const f = be(o);
1082
- c = ke(o), u.x = f.x + o.clientLeft, u.y = f.y + o.clientTop;
1313
+ }, r = ie(1);
1314
+ const u = ie(0), d = se(o);
1315
+ if ((d || !d && !a) && ((_e(o) !== "body" || Pe(i)) && (s = Ge(o)), se(o))) {
1316
+ const m = ye(o);
1317
+ r = Ce(o), u.x = m.x + o.clientLeft, u.y = m.y + o.clientTop;
1083
1318
  }
1084
- const m = a && !d && !s ? zt(a, i) : oe(0);
1319
+ const v = i && !d && !a ? Kt(i, s) : ie(0);
1085
1320
  return {
1086
- width: t.width * c.x,
1087
- height: t.height * c.y,
1088
- x: t.x * c.x - i.scrollLeft * c.x + u.x + m.x,
1089
- y: t.y * c.y - i.scrollTop * c.y + u.y + m.y
1321
+ width: t.width * r.x,
1322
+ height: t.height * r.y,
1323
+ x: t.x * r.x - s.scrollLeft * r.x + u.x + v.x,
1324
+ y: t.y * r.y - s.scrollTop * r.y + u.y + v.y
1090
1325
  };
1091
1326
  }
1092
- function yo(e) {
1327
+ function Wo(e) {
1093
1328
  return Array.from(e.getClientRects());
1094
1329
  }
1095
- function wo(e) {
1096
- const n = ae(e), t = Ge(e), o = e.ownerDocument.body, l = G(n.scrollWidth, n.clientWidth, o.scrollWidth, o.clientWidth), s = G(n.scrollHeight, n.clientHeight, o.scrollHeight, o.clientHeight);
1097
- let a = -t.scrollLeft + Ye(e);
1098
- const r = -t.scrollTop;
1099
- return te(o).direction === "rtl" && (a += G(n.clientWidth, o.clientWidth) - l), {
1330
+ function Ko(e) {
1331
+ const n = re(e), t = Ge(e), o = e.ownerDocument.body, l = Y(n.scrollWidth, n.clientWidth, o.scrollWidth, o.clientWidth), a = Y(n.scrollHeight, n.clientHeight, o.scrollHeight, o.clientHeight);
1332
+ let i = -t.scrollLeft + Ye(e);
1333
+ const c = -t.scrollTop;
1334
+ return le(o).direction === "rtl" && (i += Y(n.clientWidth, o.clientWidth) - l), {
1100
1335
  width: l,
1101
- height: s,
1102
- x: a,
1103
- y: r
1336
+ height: a,
1337
+ x: i,
1338
+ y: c
1104
1339
  };
1105
1340
  }
1106
- const _t = 25;
1107
- function xo(e, n) {
1108
- const t = Y(e), o = ae(e), l = t.visualViewport;
1109
- let s = o.clientWidth, a = o.clientHeight, r = 0, i = 0;
1341
+ const Et = 25;
1342
+ function Xo(e, n) {
1343
+ const t = Q(e), o = re(e), l = t.visualViewport;
1344
+ let a = o.clientWidth, i = o.clientHeight, c = 0, s = 0;
1110
1345
  if (l) {
1111
- s = l.width, a = l.height;
1112
- const u = at();
1113
- (!u || u && n === "fixed") && (r = l.offsetLeft, i = l.offsetTop);
1114
- }
1115
- const c = Ye(o);
1116
- if (c <= 0) {
1117
- const u = o.ownerDocument, d = u.body, m = getComputedStyle(d), f = u.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, p = Math.abs(o.clientWidth - d.clientWidth - f);
1118
- p <= _t && (s -= p);
1119
- } else c <= _t && (s += c);
1346
+ a = l.width, i = l.height;
1347
+ const u = ct();
1348
+ (!u || u && n === "fixed") && (c = l.offsetLeft, s = l.offsetTop);
1349
+ }
1350
+ const r = Ye(o);
1351
+ if (r <= 0) {
1352
+ const u = o.ownerDocument, d = u.body, v = getComputedStyle(d), m = u.compatMode === "CSS1Compat" && parseFloat(v.marginLeft) + parseFloat(v.marginRight) || 0, p = Math.abs(o.clientWidth - d.clientWidth - m);
1353
+ p <= Et && (a -= p);
1354
+ } else r <= Et && (a += r);
1120
1355
  return {
1121
- width: s,
1122
- height: a,
1123
- x: r,
1124
- y: i
1356
+ width: a,
1357
+ height: i,
1358
+ x: c,
1359
+ y: s
1125
1360
  };
1126
1361
  }
1127
- const _o = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1128
- function Vo(e, n) {
1129
- const t = be(e, !0, n === "fixed"), o = t.top + e.clientTop, l = t.left + e.clientLeft, s = le(e) ? ke(e) : oe(1), a = e.clientWidth * s.x, r = e.clientHeight * s.y, i = l * s.x, c = o * s.y;
1362
+ const No = /* @__PURE__ */ new Set(["absolute", "fixed"]);
1363
+ function qo(e, n) {
1364
+ const t = ye(e, !0, n === "fixed"), o = t.top + e.clientTop, l = t.left + e.clientLeft, a = se(e) ? Ce(e) : ie(1), i = e.clientWidth * a.x, c = e.clientHeight * a.y, s = l * a.x, r = o * a.y;
1130
1365
  return {
1131
- width: a,
1132
- height: r,
1133
- x: i,
1134
- y: c
1366
+ width: i,
1367
+ height: c,
1368
+ x: s,
1369
+ y: r
1135
1370
  };
1136
1371
  }
1137
- function Vt(e, n, t) {
1372
+ function Lt(e, n, t) {
1138
1373
  let o;
1139
1374
  if (n === "viewport")
1140
- o = xo(e, t);
1375
+ o = Xo(e, t);
1141
1376
  else if (n === "document")
1142
- o = wo(ae(e));
1143
- else if (ee(n))
1144
- o = Vo(n, t);
1377
+ o = Ko(re(e));
1378
+ else if (oe(n))
1379
+ o = qo(n, t);
1145
1380
  else {
1146
- const l = Dt(e);
1381
+ const l = Wt(e);
1147
1382
  o = {
1148
1383
  x: n.x - l.x,
1149
1384
  y: n.y - l.y,
@@ -1151,110 +1386,110 @@ function Vt(e, n, t) {
1151
1386
  height: n.height
1152
1387
  };
1153
1388
  }
1154
- return We(o);
1389
+ return Ke(o);
1155
1390
  }
1156
- function It(e, n) {
1157
- const t = me(e);
1158
- return t === n || !ee(t) || Re(t) ? !1 : te(t).position === "fixed" || It(t, n);
1391
+ function Xt(e, n) {
1392
+ const t = he(e);
1393
+ return t === n || !oe(t) || $e(t) ? !1 : le(t).position === "fixed" || Xt(t, n);
1159
1394
  }
1160
- function ko(e, n) {
1395
+ function Go(e, n) {
1161
1396
  const t = n.get(e);
1162
1397
  if (t)
1163
1398
  return t;
1164
- let o = Ae(e, [], !1).filter((r) => ee(r) && we(r) !== "body"), l = null;
1165
- const s = te(e).position === "fixed";
1166
- let a = s ? me(e) : e;
1167
- for (; ee(a) && !Re(a); ) {
1168
- const r = te(a), i = lt(a);
1169
- !i && r.position === "fixed" && (l = null), (s ? !i && !l : !i && r.position === "static" && !!l && _o.has(l.position) || je(a) && !i && It(e, a)) ? o = o.filter((u) => u !== a) : l = r, a = me(a);
1399
+ let o = Te(e, [], !1).filter((c) => oe(c) && _e(c) !== "body"), l = null;
1400
+ const a = le(e).position === "fixed";
1401
+ let i = a ? he(e) : e;
1402
+ for (; oe(i) && !$e(i); ) {
1403
+ const c = le(i), s = rt(i);
1404
+ !s && c.position === "fixed" && (l = null), (a ? !s && !l : !s && c.position === "static" && !!l && No.has(l.position) || Pe(i) && !s && Xt(e, i)) ? o = o.filter((u) => u !== i) : l = c, i = he(i);
1170
1405
  }
1171
1406
  return n.set(e, o), o;
1172
1407
  }
1173
- function Co(e) {
1408
+ function Yo(e) {
1174
1409
  let {
1175
1410
  element: n,
1176
1411
  boundary: t,
1177
1412
  rootBoundary: o,
1178
1413
  strategy: l
1179
1414
  } = e;
1180
- const a = [...t === "clippingAncestors" ? qe(n) ? [] : ko(n, this._c) : [].concat(t), o], r = a[0], i = a.reduce((c, u) => {
1181
- const d = Vt(n, u, l);
1182
- return c.top = G(d.top, c.top), c.right = Ee(d.right, c.right), c.bottom = Ee(d.bottom, c.bottom), c.left = G(d.left, c.left), c;
1183
- }, Vt(n, r, l));
1415
+ const i = [...t === "clippingAncestors" ? qe(n) ? [] : Go(n, this._c) : [].concat(t), o], c = i[0], s = i.reduce((r, u) => {
1416
+ const d = Lt(n, u, l);
1417
+ return r.top = Y(d.top, r.top), r.right = Le(d.right, r.right), r.bottom = Le(d.bottom, r.bottom), r.left = Y(d.left, r.left), r;
1418
+ }, Lt(n, c, l));
1184
1419
  return {
1185
- width: i.right - i.left,
1186
- height: i.bottom - i.top,
1187
- x: i.left,
1188
- y: i.top
1420
+ width: s.right - s.left,
1421
+ height: s.bottom - s.top,
1422
+ x: s.left,
1423
+ y: s.top
1189
1424
  };
1190
1425
  }
1191
- function Eo(e) {
1426
+ function Jo(e) {
1192
1427
  const {
1193
1428
  width: n,
1194
1429
  height: t
1195
- } = Ft(e);
1430
+ } = Ut(e);
1196
1431
  return {
1197
1432
  width: n,
1198
1433
  height: t
1199
1434
  };
1200
1435
  }
1201
- function Ro(e, n, t) {
1202
- const o = le(n), l = ae(n), s = t === "fixed", a = be(e, !0, s, n);
1203
- let r = {
1436
+ function Qo(e, n, t) {
1437
+ const o = se(n), l = re(n), a = t === "fixed", i = ye(e, !0, a, n);
1438
+ let c = {
1204
1439
  scrollLeft: 0,
1205
1440
  scrollTop: 0
1206
1441
  };
1207
- const i = oe(0);
1208
- function c() {
1209
- i.x = Ye(l);
1210
- }
1211
- if (o || !o && !s)
1212
- if ((we(n) !== "body" || je(l)) && (r = Ge(n)), o) {
1213
- const f = be(n, !0, s, n);
1214
- i.x = f.x + n.clientLeft, i.y = f.y + n.clientTop;
1215
- } else l && c();
1216
- s && !o && l && c();
1217
- const u = l && !o && !s ? zt(l, r) : oe(0), d = a.left + r.scrollLeft - i.x - u.x, m = a.top + r.scrollTop - i.y - u.y;
1442
+ const s = ie(0);
1443
+ function r() {
1444
+ s.x = Ye(l);
1445
+ }
1446
+ if (o || !o && !a)
1447
+ if ((_e(n) !== "body" || Pe(l)) && (c = Ge(n)), o) {
1448
+ const m = ye(n, !0, a, n);
1449
+ s.x = m.x + n.clientLeft, s.y = m.y + n.clientTop;
1450
+ } else l && r();
1451
+ a && !o && l && r();
1452
+ const u = l && !o && !a ? Kt(l, c) : ie(0), d = i.left + c.scrollLeft - s.x - u.x, v = i.top + c.scrollTop - s.y - u.y;
1218
1453
  return {
1219
1454
  x: d,
1220
- y: m,
1221
- width: a.width,
1222
- height: a.height
1455
+ y: v,
1456
+ width: i.width,
1457
+ height: i.height
1223
1458
  };
1224
1459
  }
1225
1460
  function Qe(e) {
1226
- return te(e).position === "static";
1461
+ return le(e).position === "static";
1227
1462
  }
1228
- function kt(e, n) {
1229
- if (!le(e) || te(e).position === "fixed")
1463
+ function $t(e, n) {
1464
+ if (!se(e) || le(e).position === "fixed")
1230
1465
  return null;
1231
1466
  if (n)
1232
1467
  return n(e);
1233
1468
  let t = e.offsetParent;
1234
- return ae(e) === t && (t = t.ownerDocument.body), t;
1469
+ return re(e) === t && (t = t.ownerDocument.body), t;
1235
1470
  }
1236
1471
  function Nt(e, n) {
1237
- const t = Y(e);
1472
+ const t = Q(e);
1238
1473
  if (qe(e))
1239
1474
  return t;
1240
- if (!le(e)) {
1241
- let l = me(e);
1242
- for (; l && !Re(l); ) {
1243
- if (ee(l) && !Qe(l))
1475
+ if (!se(e)) {
1476
+ let l = he(e);
1477
+ for (; l && !$e(l); ) {
1478
+ if (oe(l) && !Qe(l))
1244
1479
  return l;
1245
- l = me(l);
1480
+ l = he(l);
1246
1481
  }
1247
1482
  return t;
1248
1483
  }
1249
- let o = kt(e, n);
1250
- for (; o && ro(o) && Qe(o); )
1251
- o = kt(o, n);
1252
- return o && Re(o) && Qe(o) && !lt(o) ? t : o || vo(e) || t;
1484
+ let o = $t(e, n);
1485
+ for (; o && Bo(o) && Qe(o); )
1486
+ o = $t(o, n);
1487
+ return o && $e(o) && Qe(o) && !rt(o) ? t : o || Fo(e) || t;
1253
1488
  }
1254
- const Lo = async function(e) {
1489
+ const Zo = async function(e) {
1255
1490
  const n = this.getOffsetParent || Nt, t = this.getDimensions, o = await t(e.floating);
1256
1491
  return {
1257
- reference: Ro(e.reference, await n(e.floating), e.strategy),
1492
+ reference: Qo(e.reference, await n(e.floating), e.strategy),
1258
1493
  floating: {
1259
1494
  x: 0,
1260
1495
  y: 0,
@@ -1263,284 +1498,284 @@ const Lo = async function(e) {
1263
1498
  }
1264
1499
  };
1265
1500
  };
1266
- function So(e) {
1267
- return te(e).direction === "rtl";
1501
+ function el(e) {
1502
+ return le(e).direction === "rtl";
1268
1503
  }
1269
- const $o = {
1270
- convertOffsetParentRelativeRectToViewportRelativeRect: bo,
1271
- getDocumentElement: ae,
1272
- getClippingRect: Co,
1504
+ const tl = {
1505
+ convertOffsetParentRelativeRectToViewportRelativeRect: Uo,
1506
+ getDocumentElement: re,
1507
+ getClippingRect: Yo,
1273
1508
  getOffsetParent: Nt,
1274
- getElementRects: Lo,
1275
- getClientRects: yo,
1276
- getDimensions: Eo,
1277
- getScale: ke,
1278
- isElement: ee,
1279
- isRTL: So
1509
+ getElementRects: Zo,
1510
+ getClientRects: Wo,
1511
+ getDimensions: Jo,
1512
+ getScale: Ce,
1513
+ isElement: oe,
1514
+ isRTL: el
1280
1515
  };
1281
- function Ht(e, n) {
1516
+ function qt(e, n) {
1282
1517
  return e.x === n.x && e.y === n.y && e.width === n.width && e.height === n.height;
1283
1518
  }
1284
- function Ao(e, n) {
1519
+ function nl(e, n) {
1285
1520
  let t = null, o;
1286
- const l = ae(e);
1287
- function s() {
1288
- var r;
1289
- clearTimeout(o), (r = t) == null || r.disconnect(), t = null;
1290
- }
1291
- function a(r, i) {
1292
- r === void 0 && (r = !1), i === void 0 && (i = 1), s();
1293
- const c = e.getBoundingClientRect(), {
1521
+ const l = re(e);
1522
+ function a() {
1523
+ var c;
1524
+ clearTimeout(o), (c = t) == null || c.disconnect(), t = null;
1525
+ }
1526
+ function i(c, s) {
1527
+ c === void 0 && (c = !1), s === void 0 && (s = 1), a();
1528
+ const r = e.getBoundingClientRect(), {
1294
1529
  left: u,
1295
1530
  top: d,
1296
- width: m,
1297
- height: f
1298
- } = c;
1299
- if (r || n(), !m || !f)
1531
+ width: v,
1532
+ height: m
1533
+ } = r;
1534
+ if (c || n(), !v || !m)
1300
1535
  return;
1301
- const p = ze(d), y = ze(l.clientWidth - (u + m)), V = ze(l.clientHeight - (d + f)), w = ze(u), h = {
1302
- rootMargin: -p + "px " + -y + "px " + -V + "px " + -w + "px",
1303
- threshold: G(0, Ee(1, i)) || 1
1536
+ const p = ze(d), _ = ze(l.clientWidth - (u + v)), h = ze(l.clientHeight - (d + m)), y = ze(u), g = {
1537
+ rootMargin: -p + "px " + -_ + "px " + -h + "px " + -y + "px",
1538
+ threshold: Y(0, Le(1, s)) || 1
1304
1539
  };
1305
- let O = !0;
1306
- function A(F) {
1307
- const g = F[0].intersectionRatio;
1308
- if (g !== i) {
1309
- if (!O)
1310
- return a();
1311
- g ? a(!1, g) : o = setTimeout(() => {
1312
- a(!1, 1e-7);
1540
+ let L = !0;
1541
+ function B(F) {
1542
+ const x = F[0].intersectionRatio;
1543
+ if (x !== s) {
1544
+ if (!L)
1545
+ return i();
1546
+ x ? i(!1, x) : o = setTimeout(() => {
1547
+ i(!1, 1e-7);
1313
1548
  }, 1e3);
1314
1549
  }
1315
- g === 1 && !Ht(c, e.getBoundingClientRect()) && a(), O = !1;
1550
+ x === 1 && !qt(r, e.getBoundingClientRect()) && i(), L = !1;
1316
1551
  }
1317
1552
  try {
1318
- t = new IntersectionObserver(A, {
1319
- ...h,
1553
+ t = new IntersectionObserver(B, {
1554
+ ...g,
1320
1555
  // Handle <iframe>s
1321
1556
  root: l.ownerDocument
1322
1557
  });
1323
1558
  } catch {
1324
- t = new IntersectionObserver(A, h);
1559
+ t = new IntersectionObserver(B, g);
1325
1560
  }
1326
1561
  t.observe(e);
1327
1562
  }
1328
- return a(!0), s;
1563
+ return i(!0), a;
1329
1564
  }
1330
- function Wt(e, n, t, o) {
1565
+ function Gt(e, n, t, o) {
1331
1566
  o === void 0 && (o = {});
1332
1567
  const {
1333
1568
  ancestorScroll: l = !0,
1334
- ancestorResize: s = !0,
1335
- elementResize: a = typeof ResizeObserver == "function",
1336
- layoutShift: r = typeof IntersectionObserver == "function",
1337
- animationFrame: i = !1
1338
- } = o, c = st(e), u = l || s ? [...c ? Ae(c) : [], ...Ae(n)] : [];
1339
- u.forEach((w) => {
1340
- l && w.addEventListener("scroll", t, {
1569
+ ancestorResize: a = !0,
1570
+ elementResize: i = typeof ResizeObserver == "function",
1571
+ layoutShift: c = typeof IntersectionObserver == "function",
1572
+ animationFrame: s = !1
1573
+ } = o, r = ut(e), u = l || a ? [...r ? Te(r) : [], ...Te(n)] : [];
1574
+ u.forEach((y) => {
1575
+ l && y.addEventListener("scroll", t, {
1341
1576
  passive: !0
1342
- }), s && w.addEventListener("resize", t);
1577
+ }), a && y.addEventListener("resize", t);
1343
1578
  });
1344
- const d = c && r ? Ao(c, t) : null;
1345
- let m = -1, f = null;
1346
- a && (f = new ResizeObserver((w) => {
1347
- let [_] = w;
1348
- _ && _.target === c && f && (f.unobserve(n), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
1349
- var h;
1350
- (h = f) == null || h.observe(n);
1579
+ const d = r && c ? nl(r, t) : null;
1580
+ let v = -1, m = null;
1581
+ i && (m = new ResizeObserver((y) => {
1582
+ let [w] = y;
1583
+ w && w.target === r && m && (m.unobserve(n), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
1584
+ var g;
1585
+ (g = m) == null || g.observe(n);
1351
1586
  })), t();
1352
- }), c && !i && f.observe(c), f.observe(n));
1353
- let p, y = i ? be(e) : null;
1354
- i && V();
1355
- function V() {
1356
- const w = be(e);
1357
- y && !Ht(y, w) && t(), y = w, p = requestAnimationFrame(V);
1587
+ }), r && !s && m.observe(r), m.observe(n));
1588
+ let p, _ = s ? ye(e) : null;
1589
+ s && h();
1590
+ function h() {
1591
+ const y = ye(e);
1592
+ _ && !qt(_, y) && t(), _ = y, p = requestAnimationFrame(h);
1358
1593
  }
1359
1594
  return t(), () => {
1360
- var w;
1361
- u.forEach((_) => {
1362
- l && _.removeEventListener("scroll", t), s && _.removeEventListener("resize", t);
1363
- }), d?.(), (w = f) == null || w.disconnect(), f = null, i && cancelAnimationFrame(p);
1595
+ var y;
1596
+ u.forEach((w) => {
1597
+ l && w.removeEventListener("scroll", t), a && w.removeEventListener("resize", t);
1598
+ }), d?.(), (y = m) == null || y.disconnect(), m = null, s && cancelAnimationFrame(p);
1364
1599
  };
1365
1600
  }
1366
- const Ut = oo, Xt = lo, Kt = eo, Oo = ao, To = (e, n, t) => {
1601
+ const Yt = So, Jt = Ro, Qt = Eo, ol = Ao, ll = (e, n, t) => {
1367
1602
  const o = /* @__PURE__ */ new Map(), l = {
1368
- platform: $o,
1603
+ platform: tl,
1369
1604
  ...t
1370
- }, s = {
1605
+ }, a = {
1371
1606
  ...l.platform,
1372
1607
  _c: o
1373
1608
  };
1374
- return Zn(e, n, {
1609
+ return Co(e, n, {
1375
1610
  ...l,
1376
- platform: s
1611
+ platform: a
1377
1612
  });
1378
1613
  };
1379
- function Bo(e) {
1614
+ function al(e) {
1380
1615
  return e != null && typeof e == "object" && "$el" in e;
1381
1616
  }
1382
- function Ct(e) {
1383
- if (Bo(e)) {
1617
+ function St(e) {
1618
+ if (al(e)) {
1384
1619
  const n = e.$el;
1385
- return ot(n) && we(n) === "#comment" ? null : n;
1620
+ return st(n) && _e(n) === "#comment" ? null : n;
1386
1621
  }
1387
1622
  return e;
1388
1623
  }
1389
- function Se(e) {
1390
- return typeof e == "function" ? e() : R(e);
1624
+ function Ae(e) {
1625
+ return typeof e == "function" ? e() : $(e);
1391
1626
  }
1392
- function qt(e) {
1627
+ function Zt(e) {
1393
1628
  return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
1394
1629
  }
1395
- function Et(e, n) {
1396
- const t = qt(e);
1630
+ function Rt(e, n) {
1631
+ const t = Zt(e);
1397
1632
  return Math.round(n * t) / t;
1398
1633
  }
1399
- function Gt(e, n, t) {
1634
+ function en(e, n, t) {
1400
1635
  t === void 0 && (t = {});
1401
1636
  const o = t.whileElementsMounted, l = C(() => {
1402
- var g;
1403
- return (g = Se(t.open)) != null ? g : !0;
1404
- }), s = C(() => Se(t.middleware)), a = C(() => {
1405
- var g;
1406
- return (g = Se(t.placement)) != null ? g : "bottom";
1407
- }), r = C(() => {
1408
- var g;
1409
- return (g = Se(t.strategy)) != null ? g : "absolute";
1410
- }), i = C(() => {
1411
- var g;
1412
- return (g = Se(t.transform)) != null ? g : !0;
1413
- }), c = C(() => Ct(e.value)), u = C(() => Ct(n.value)), d = E(0), m = E(0), f = E(r.value), p = E(a.value), y = an({}), V = E(!1), w = C(() => {
1414
- const g = {
1415
- position: f.value,
1637
+ var x;
1638
+ return (x = Ae(t.open)) != null ? x : !0;
1639
+ }), a = C(() => Ae(t.middleware)), i = C(() => {
1640
+ var x;
1641
+ return (x = Ae(t.placement)) != null ? x : "bottom";
1642
+ }), c = C(() => {
1643
+ var x;
1644
+ return (x = Ae(t.strategy)) != null ? x : "absolute";
1645
+ }), s = C(() => {
1646
+ var x;
1647
+ return (x = Ae(t.transform)) != null ? x : !0;
1648
+ }), r = C(() => St(e.value)), u = C(() => St(n.value)), d = E(0), v = E(0), m = E(c.value), p = E(i.value), _ = fn({}), h = E(!1), y = C(() => {
1649
+ const x = {
1650
+ position: m.value,
1416
1651
  left: "0",
1417
1652
  top: "0"
1418
1653
  };
1419
1654
  if (!u.value)
1420
- return g;
1421
- const b = Et(u.value, d.value), S = Et(u.value, m.value);
1422
- return i.value ? {
1423
- ...g,
1424
- transform: "translate(" + b + "px, " + S + "px)",
1425
- ...qt(u.value) >= 1.5 && {
1655
+ return x;
1656
+ const k = Rt(u.value, d.value), A = Rt(u.value, v.value);
1657
+ return s.value ? {
1658
+ ...x,
1659
+ transform: "translate(" + k + "px, " + A + "px)",
1660
+ ...Zt(u.value) >= 1.5 && {
1426
1661
  willChange: "transform"
1427
1662
  }
1428
1663
  } : {
1429
- position: f.value,
1430
- left: b + "px",
1431
- top: S + "px"
1664
+ position: m.value,
1665
+ left: k + "px",
1666
+ top: A + "px"
1432
1667
  };
1433
1668
  });
1434
- let _;
1435
- function h() {
1436
- if (c.value == null || u.value == null)
1669
+ let w;
1670
+ function g() {
1671
+ if (r.value == null || u.value == null)
1437
1672
  return;
1438
- const g = l.value;
1439
- To(c.value, u.value, {
1440
- middleware: s.value,
1441
- placement: a.value,
1442
- strategy: r.value
1443
- }).then((b) => {
1444
- d.value = b.x, m.value = b.y, f.value = b.strategy, p.value = b.placement, y.value = b.middlewareData, V.value = g !== !1;
1673
+ const x = l.value;
1674
+ ll(r.value, u.value, {
1675
+ middleware: a.value,
1676
+ placement: i.value,
1677
+ strategy: c.value
1678
+ }).then((k) => {
1679
+ d.value = k.x, v.value = k.y, m.value = k.strategy, p.value = k.placement, _.value = k.middlewareData, h.value = x !== !1;
1445
1680
  });
1446
1681
  }
1447
- function O() {
1448
- typeof _ == "function" && (_(), _ = void 0);
1682
+ function L() {
1683
+ typeof w == "function" && (w(), w = void 0);
1449
1684
  }
1450
- function A() {
1451
- if (O(), o === void 0) {
1452
- h();
1685
+ function B() {
1686
+ if (L(), o === void 0) {
1687
+ g();
1453
1688
  return;
1454
1689
  }
1455
- if (c.value != null && u.value != null) {
1456
- _ = o(c.value, u.value, h);
1690
+ if (r.value != null && u.value != null) {
1691
+ w = o(r.value, u.value, g);
1457
1692
  return;
1458
1693
  }
1459
1694
  }
1460
1695
  function F() {
1461
- l.value || (V.value = !1);
1696
+ l.value || (h.value = !1);
1462
1697
  }
1463
- return q([s, a, r, l], h, {
1698
+ return X([a, i, c, l], g, {
1464
1699
  flush: "sync"
1465
- }), q([c, u], A, {
1700
+ }), X([r, u], B, {
1466
1701
  flush: "sync"
1467
- }), q(l, F, {
1702
+ }), X(l, F, {
1468
1703
  flush: "sync"
1469
- }), sn() && rn(O), {
1470
- x: _e(d),
1471
- y: _e(m),
1472
- strategy: _e(f),
1473
- placement: _e(p),
1474
- middlewareData: _e(y),
1475
- isPositioned: _e(V),
1476
- floatingStyles: w,
1477
- update: h
1704
+ }), vn() && mn(L), {
1705
+ x: ke(d),
1706
+ y: ke(v),
1707
+ strategy: ke(m),
1708
+ placement: ke(p),
1709
+ middlewareData: ke(_),
1710
+ isPositioned: ke(h),
1711
+ floatingStyles: y,
1712
+ update: g
1478
1713
  };
1479
1714
  }
1480
- const Mo = /* @__PURE__ */ B({
1715
+ const il = /* @__PURE__ */ T({
1481
1716
  inheritAttrs: !1,
1482
1717
  __name: "dot-menu",
1483
1718
  props: {
1484
1719
  icon: {}
1485
1720
  },
1486
1721
  setup(e) {
1487
- const n = e, t = E(!1), o = E(null), l = E(null), s = C(() => n.icon ?? H.DOT_MENU), { floatingStyles: a } = Gt(o, l, {
1722
+ const n = e, t = E(!1), o = E(null), l = E(null), a = C(() => n.icon ?? U.DOT_MENU), { floatingStyles: i } = en(o, l, {
1488
1723
  placement: "bottom-end",
1489
- middleware: [Ut(8), Kt(), Xt({ padding: 8 })],
1490
- whileElementsMounted: Wt
1491
- }), r = () => {
1724
+ middleware: [Yt(8), Qt(), Jt({ padding: 8 })],
1725
+ whileElementsMounted: Gt
1726
+ }), c = () => {
1492
1727
  t.value = !t.value;
1493
- }, i = () => {
1728
+ }, s = () => {
1494
1729
  t.value = !1;
1495
- }, c = (u) => {
1730
+ }, r = (u) => {
1496
1731
  const d = u.target;
1497
- d && (d.closest(".menu-action") || d.closest('[role="menuitem"]') || d.closest("a")) && i();
1732
+ d && (d.closest(".menu-action") || d.closest('[role="menuitem"]') || d.closest("a")) && s();
1498
1733
  };
1499
1734
  return (u, d) => {
1500
- const m = U("VjButton"), f = U("VjMenu");
1501
- return v(), x(ge, null, [
1502
- k("div", {
1503
- class: N(["dot-menu-container", u.$attrs.class])
1735
+ const v = N("VjButton"), m = N("VjMenu");
1736
+ return f(), b(ne, null, [
1737
+ V("div", {
1738
+ class: I(["dot-menu-container", u.$attrs.class])
1504
1739
  }, [
1505
- P(m, {
1740
+ P(v, {
1506
1741
  ref_key: "buttonRef",
1507
1742
  ref: o,
1508
1743
  class: "dot-menu",
1509
1744
  tertiary: "",
1510
- icon: s.value,
1511
- onClick: r
1745
+ icon: a.value,
1746
+ onClick: c
1512
1747
  }, null, 8, ["icon"]),
1513
- P(Ie, { name: "menu" }, {
1748
+ P(He, { name: "menu" }, {
1514
1749
  default: W(() => [
1515
- t.value ? (v(), j(f, {
1750
+ t.value ? (f(), j(m, {
1516
1751
  key: 0,
1517
1752
  ref_key: "floatingRef",
1518
1753
  ref: l,
1519
- style: Z(R(a)),
1754
+ style: J($(i)),
1520
1755
  class: "menu-dropdown",
1521
- onClose: i,
1522
- onClick: c
1756
+ onClose: s,
1757
+ onClick: r
1523
1758
  }, {
1524
1759
  default: W(() => [
1525
- T(u.$slots, "default", {}, void 0, !0)
1760
+ M(u.$slots, "default", {}, void 0, !0)
1526
1761
  ]),
1527
1762
  _: 3
1528
- }, 8, ["style"])) : $("", !0)
1763
+ }, 8, ["style"])) : S("", !0)
1529
1764
  ]),
1530
1765
  _: 3
1531
1766
  })
1532
1767
  ], 2),
1533
- (v(), j(tt, { to: "body" }, [
1534
- t.value ? (v(), x("div", {
1768
+ (f(), j(ot, { to: "body" }, [
1769
+ t.value ? (f(), b("div", {
1535
1770
  key: 0,
1536
1771
  class: "menu-backdrop",
1537
- onClick: i
1538
- })) : $("", !0)
1772
+ onClick: s
1773
+ })) : S("", !0)
1539
1774
  ]))
1540
1775
  ], 64);
1541
1776
  };
1542
1777
  }
1543
- }), Po = /* @__PURE__ */ M(Mo, [["__scopeId", "data-v-67bd71e4"]]), jo = /* @__PURE__ */ B({
1778
+ }), sl = /* @__PURE__ */ O(il, [["__scopeId", "data-v-67bd71e4"]]), rl = /* @__PURE__ */ T({
1544
1779
  __name: "link-button",
1545
1780
  props: {
1546
1781
  label: {},
@@ -1552,27 +1787,27 @@ const Mo = /* @__PURE__ */ B({
1552
1787
  disabled: { type: Boolean }
1553
1788
  },
1554
1789
  setup(e) {
1555
- const n = e, t = X.S, o = C(() => n.primary ? "primary" : n.secondary ? "secondary" : n.tertiary ? "tertiary" : "primary");
1556
- return (l, s) => {
1557
- const a = U("router-link");
1558
- return v(), j(a, {
1790
+ const n = e, t = q.S, o = C(() => n.primary ? "primary" : n.secondary ? "secondary" : n.tertiary ? "tertiary" : "primary");
1791
+ return (l, a) => {
1792
+ const i = N("router-link");
1793
+ return f(), j(i, {
1559
1794
  to: e.to,
1560
- class: N(["button", o.value]),
1795
+ class: I(["button", o.value]),
1561
1796
  disabled: e.disabled
1562
1797
  }, {
1563
1798
  default: W(() => [
1564
- e.icon ? (v(), j(Be, {
1799
+ e.icon ? (f(), j(we, {
1565
1800
  key: 0,
1566
1801
  icon: e.icon,
1567
- size: R(t)
1568
- }, null, 8, ["icon", "size"])) : $("", !0),
1569
- $e(" " + D(e.label), 1)
1802
+ size: $(t)
1803
+ }, null, 8, ["icon", "size"])) : S("", !0),
1804
+ Ie(" " + D(e.label), 1)
1570
1805
  ]),
1571
1806
  _: 1
1572
1807
  }, 8, ["to", "class", "disabled"]);
1573
1808
  };
1574
1809
  }
1575
- }), Fo = /* @__PURE__ */ M(jo, [["__scopeId", "data-v-bd3cf2f5"]]), Do = ["disabled"], zo = { class: "menu-action--icon" }, Io = /* @__PURE__ */ B({
1810
+ }), cl = /* @__PURE__ */ O(rl, [["__scopeId", "data-v-bd3cf2f5"]]), ul = ["disabled"], dl = { class: "menu-action--icon" }, fl = /* @__PURE__ */ T({
1576
1811
  __name: "menu-action",
1577
1812
  props: {
1578
1813
  label: {},
@@ -1580,35 +1815,35 @@ const Mo = /* @__PURE__ */ B({
1580
1815
  disabled: { type: Boolean }
1581
1816
  },
1582
1817
  setup(e) {
1583
- const n = X.S;
1584
- return (t, o) => (v(), x("button", {
1818
+ const n = q.S;
1819
+ return (t, o) => (f(), b("button", {
1585
1820
  class: "menu-action button tertiary",
1586
1821
  disabled: e.disabled
1587
1822
  }, [
1588
- k("span", zo, [
1589
- e.icon ? (v(), j(Be, {
1823
+ V("span", dl, [
1824
+ e.icon ? (f(), j(we, {
1590
1825
  key: 0,
1591
1826
  icon: e.icon,
1592
- size: R(n)
1593
- }, null, 8, ["icon", "size"])) : $("", !0)
1827
+ size: $(n)
1828
+ }, null, 8, ["icon", "size"])) : S("", !0)
1594
1829
  ]),
1595
- k("span", null, D(e.label), 1)
1596
- ], 8, Do));
1830
+ V("span", null, D(e.label), 1)
1831
+ ], 8, ul));
1597
1832
  }
1598
- }), No = /* @__PURE__ */ M(Io, [["__scopeId", "data-v-07850995"]]), Ho = {}, Wo = { class: "menu" };
1599
- function Uo(e, n) {
1600
- return v(), x("div", Wo, [
1601
- T(e.$slots, "default", {}, void 0, !0)
1833
+ }), vl = /* @__PURE__ */ O(fl, [["__scopeId", "data-v-07850995"]]), ml = {}, pl = { class: "menu" };
1834
+ function hl(e, n) {
1835
+ return f(), b("div", pl, [
1836
+ M(e.$slots, "default", {}, void 0, !0)
1602
1837
  ]);
1603
1838
  }
1604
- const Xo = /* @__PURE__ */ M(Ho, [["render", Uo], ["__scopeId", "data-v-259fec08"]]), Ko = {
1839
+ const gl = /* @__PURE__ */ O(ml, [["render", hl], ["__scopeId", "data-v-259fec08"]]), bl = {
1605
1840
  mounted(e) {
1606
1841
  e.classList.add("compact");
1607
1842
  },
1608
1843
  unmounted(e) {
1609
1844
  e.classList.remove("compact");
1610
1845
  }
1611
- }, Yt = [
1846
+ }, tn = [
1612
1847
  'input:not([disabled]):not([type="hidden"])',
1613
1848
  "select:not([disabled])",
1614
1849
  "textarea:not([disabled])",
@@ -1617,27 +1852,27 @@ const Xo = /* @__PURE__ */ M(Ho, [["render", Uo], ["__scopeId", "data-v-259fec08
1617
1852
  '[tabindex]:not([tabindex="-1"])',
1618
1853
  '[contenteditable="true"]'
1619
1854
  ].join(", ");
1620
- function qo(e) {
1621
- const n = e.querySelectorAll(Yt);
1855
+ function yl(e) {
1856
+ const n = e.querySelectorAll(tn);
1622
1857
  for (const t of Array.from(n))
1623
1858
  if (t.offsetParent !== null || t.getClientRects().length > 0)
1624
1859
  return t;
1625
1860
  return null;
1626
1861
  }
1627
- const Go = {
1862
+ const wl = {
1628
1863
  mounted(e, n) {
1629
1864
  const t = typeof n.value == "number" ? n.value : 0, o = () => {
1630
- if (e.matches(Yt)) {
1865
+ if (e.matches(tn)) {
1631
1866
  e.focus();
1632
1867
  return;
1633
1868
  }
1634
- const l = qo(e);
1869
+ const l = yl(e);
1635
1870
  l && l.focus();
1636
1871
  };
1637
1872
  t > 0 ? setTimeout(o, t) : requestAnimationFrame(o);
1638
1873
  }
1639
1874
  };
1640
- class it {
1875
+ class dt {
1641
1876
  static _instance = null;
1642
1877
  observer = null;
1643
1878
  targets = /* @__PURE__ */ new Map();
@@ -1645,7 +1880,7 @@ class it {
1645
1880
  this.init();
1646
1881
  }
1647
1882
  static get instance() {
1648
- return this._instance || (this._instance = new it()), this._instance;
1883
+ return this._instance || (this._instance = new dt()), this._instance;
1649
1884
  }
1650
1885
  init() {
1651
1886
  typeof window < "u" && "ResizeObserver" in window ? this.observer = new ResizeObserver((n) => {
@@ -1664,19 +1899,19 @@ class it {
1664
1899
  handleEntry(n) {
1665
1900
  const t = this.targets.get(n.target);
1666
1901
  if (!t) return;
1667
- const o = n.contentRect.width, l = n.contentRect.height, s = n.target;
1668
- for (const a of t.callbacks)
1902
+ const o = n.contentRect.width, l = n.contentRect.height, a = n.target;
1903
+ for (const i of t.callbacks)
1669
1904
  try {
1670
- a(o, l, s);
1671
- } catch (r) {
1672
- console.error("resize callback error", r);
1905
+ i(o, l, a);
1906
+ } catch (c) {
1907
+ console.error("resize callback error", c);
1673
1908
  }
1674
1909
  if (t.breakpoints) {
1675
- const a = Object.keys(t.breakpoints).map((i) => Number(i)).filter((i) => !Number.isNaN(i)).sort((i, c) => i - c);
1676
- let r;
1677
- for (const i of a)
1678
- o >= i && (r = t.breakpoints[i]);
1679
- r !== t.currentClass && (t.currentClass && n.target.classList.remove(t.currentClass), r && n.target.classList.add(r), t.currentClass = r);
1910
+ const i = Object.keys(t.breakpoints).map((s) => Number(s)).filter((s) => !Number.isNaN(s)).sort((s, r) => s - r);
1911
+ let c;
1912
+ for (const s of i)
1913
+ o >= s && (c = t.breakpoints[s]);
1914
+ c !== t.currentClass && (t.currentClass && n.target.classList.remove(t.currentClass), c && n.target.classList.add(c), t.currentClass = c);
1680
1915
  }
1681
1916
  }
1682
1917
  observe(n, t, o) {
@@ -1684,14 +1919,14 @@ class it {
1684
1919
  if (l)
1685
1920
  t && l.callbacks.add(t), o?.breakpoints && (l.breakpoints = o.breakpoints);
1686
1921
  else {
1687
- const s = /* @__PURE__ */ new Set();
1688
- t && s.add(t), this.targets.set(n, { callbacks: s, breakpoints: o?.breakpoints }), this.observer && this.observer.observe(n);
1922
+ const a = /* @__PURE__ */ new Set();
1923
+ t && a.add(t), this.targets.set(n, { callbacks: a, breakpoints: o?.breakpoints }), this.observer && this.observer.observe(n);
1689
1924
  }
1690
1925
  if (o?.immediate) {
1691
- const s = n.getBoundingClientRect(), a = { target: n, contentRect: s };
1692
- if (this.handleEntry(a), t) {
1693
- const r = s.width, i = s.height;
1694
- t(r, i, n);
1926
+ const a = n.getBoundingClientRect(), i = { target: n, contentRect: a };
1927
+ if (this.handleEntry(i), t) {
1928
+ const c = a.width, s = a.height;
1929
+ t(c, s, n);
1695
1930
  }
1696
1931
  }
1697
1932
  }
@@ -1700,100 +1935,100 @@ class it {
1700
1935
  o && (t && o.callbacks.delete(t), (!t || o.callbacks.size === 0) && (this.targets.delete(n), this.observer && this.observer.unobserve(n), o.currentClass && n.classList && n.classList.remove(o.currentClass)));
1701
1936
  }
1702
1937
  }
1703
- const Ve = it.instance, Yo = {
1938
+ const Ve = dt.instance, _l = {
1704
1939
  mounted(e, n) {
1705
- const t = n.value, o = typeof t == "function" ? t : t?.onResize, l = typeof t == "object" && t?.breakpoints ? t.breakpoints : void 0, s = typeof t == "object" && !!t?.immediate, a = e;
1706
- a.__resize_cb = o, a.__resize_breakpoints = l, o && Ve.observe(e, o, { breakpoints: l, immediate: s });
1940
+ const t = n.value, o = typeof t == "function" ? t : t?.onResize, l = typeof t == "object" && t?.breakpoints ? t.breakpoints : void 0, a = typeof t == "object" && !!t?.immediate, i = e;
1941
+ i.__resize_cb = o, i.__resize_breakpoints = l, o && Ve.observe(e, o, { breakpoints: l, immediate: a });
1707
1942
  },
1708
1943
  updated(e, n) {
1709
- const t = e, o = t.__resize_cb, l = t.__resize_breakpoints, s = n.value, a = typeof s == "function" ? s : s?.onResize, r = typeof s == "object" && s?.breakpoints ? s.breakpoints : void 0;
1710
- if (o !== a) {
1711
- o && Ve.unobserve(e, o), a && Ve.observe(e, a, { breakpoints: r, immediate: !!(s && typeof s == "object" && s.immediate) }), t.__resize_cb = a, t.__resize_breakpoints = r;
1944
+ const t = e, o = t.__resize_cb, l = t.__resize_breakpoints, a = n.value, i = typeof a == "function" ? a : a?.onResize, c = typeof a == "object" && a?.breakpoints ? a.breakpoints : void 0;
1945
+ if (o !== i) {
1946
+ o && Ve.unobserve(e, o), i && Ve.observe(e, i, { breakpoints: c, immediate: !!(a && typeof a == "object" && a.immediate) }), t.__resize_cb = i, t.__resize_breakpoints = c;
1712
1947
  return;
1713
1948
  }
1714
- JSON.stringify(l || {}) !== JSON.stringify(r || {}) && (o && Ve.unobserve(e, o), a && Ve.observe(e, a, { breakpoints: r, immediate: !0 }), t.__resize_breakpoints = r);
1949
+ JSON.stringify(l || {}) !== JSON.stringify(c || {}) && (o && Ve.unobserve(e, o), i && Ve.observe(e, i, { breakpoints: c, immediate: !0 }), t.__resize_breakpoints = c);
1715
1950
  },
1716
1951
  unmounted(e) {
1717
1952
  const n = e, t = n.__resize_cb;
1718
1953
  t && Ve.unobserve(e, t), delete n.__resize_cb, delete n.__resize_breakpoints;
1719
1954
  }
1720
- }, Jo = {}, Qo = { class: "spinner" };
1721
- function Zo(e, n) {
1722
- return v(), x("div", Qo);
1955
+ }, xl = {}, kl = { class: "spinner" };
1956
+ function Vl(e, n) {
1957
+ return f(), b("div", kl);
1723
1958
  }
1724
- const el = /* @__PURE__ */ M(Jo, [["render", Zo], ["__scopeId", "data-v-661ad3b6"]]), tl = 200, nl = 120;
1725
- function Rt(e, n) {
1959
+ const nn = /* @__PURE__ */ O(xl, [["render", Vl], ["__scopeId", "data-v-b957fb82"]]), Cl = 200, El = 120;
1960
+ function At(e, n) {
1726
1961
  const t = n.querySelector(".vj-loading-inner");
1727
1962
  if (!t) return;
1728
1963
  const o = e.clientHeight || e.getBoundingClientRect().height;
1729
1964
  t.classList.remove("vj-loading-inner--small", "vj-loading-inner--minimal");
1730
1965
  const l = t.querySelector(".vj-loading-text");
1731
- l && l.classList.remove("vj-loading-text--hidden"), o <= nl ? (t.classList.add("vj-loading-inner--minimal"), l && l.classList.add("vj-loading-text--hidden")) : o <= tl && t.classList.add("vj-loading-inner--small");
1966
+ l && l.classList.remove("vj-loading-text--hidden"), o <= El ? (t.classList.add("vj-loading-inner--minimal"), l && l.classList.add("vj-loading-text--hidden")) : o <= Cl && t.classList.add("vj-loading-inner--small");
1732
1967
  }
1733
- const ol = {
1968
+ const Ll = {
1734
1969
  mounted(e, n) {
1735
1970
  let t, o;
1736
1971
  if (typeof n.value == "object" && n.value !== null) {
1737
- const m = n.value;
1738
- t = !!(m.active ?? !0), o = m.text;
1972
+ const v = n.value;
1973
+ t = !!(v.active ?? !0), o = v.text;
1739
1974
  } else
1740
1975
  t = !!n.value, o = void 0;
1741
- const l = getComputedStyle(e), s = { overlay: document.createElement("div") };
1742
- (l.position === "static" || !l.position) && (s.originalPosition = e.style.position, e.style.position = "relative");
1743
- const a = s.overlay;
1744
- a.className = "vj-loading-overlay", t || a.classList.add("vj-loading-overlay--hidden");
1745
- const r = document.createElement("div"), i = document.createElement("div");
1746
- i.className = "vj-loading-inner", i.appendChild(r);
1747
- let c;
1748
- o && (c = document.createElement("div"), c.className = "vj-loading-text", c.textContent = o, i.appendChild(c)), a.appendChild(i), Rt(e, a);
1749
- const u = P(el);
1750
- ht(u, r), s.spinnerVnode = u, s.spinnerContainer = r, t && (e.setAttribute("aria-busy", "true"), e.style.pointerEvents = "none"), e.appendChild(a);
1976
+ const l = getComputedStyle(e), a = { overlay: document.createElement("div") };
1977
+ (l.position === "static" || !l.position) && (a.originalPosition = e.style.position, e.style.position = "relative");
1978
+ const i = a.overlay;
1979
+ i.className = "vj-loading-overlay", t || i.classList.add("vj-loading-overlay--hidden");
1980
+ const c = document.createElement("div"), s = document.createElement("div");
1981
+ s.className = "vj-loading-inner", s.appendChild(c);
1982
+ let r;
1983
+ o && (r = document.createElement("div"), r.className = "vj-loading-text", r.textContent = o, s.appendChild(r)), i.appendChild(s), At(e, i);
1984
+ const u = P(nn);
1985
+ wt(u, c), a.spinnerVnode = u, a.spinnerContainer = c, t && (e.setAttribute("aria-busy", "true"), e.style.pointerEvents = "none"), e.appendChild(i);
1751
1986
  const d = e;
1752
- d.__vjLoading = s;
1987
+ d.__vjLoading = a;
1753
1988
  },
1754
1989
  updated(e, n) {
1755
1990
  const o = e.__vjLoading;
1756
1991
  if (!o) return;
1757
1992
  const { overlay: l } = o;
1758
- let s, a;
1993
+ let a, i;
1759
1994
  if (typeof n.value == "object" && n.value !== null) {
1760
- const i = n.value;
1761
- s = !!(i.active ?? !0), a = i.text;
1995
+ const s = n.value;
1996
+ a = !!(s.active ?? !0), i = s.text;
1762
1997
  } else
1763
- s = !!n.value, a = void 0;
1764
- s ? (l.classList.remove("vj-loading-overlay--hidden"), e.setAttribute("aria-busy", "true"), e.style.pointerEvents = "none") : (l.classList.add("vj-loading-overlay--hidden"), e.removeAttribute("aria-busy"), e.style.pointerEvents = "");
1765
- const r = l.querySelector(".vj-loading-inner");
1766
- if (r) {
1767
- const i = r.querySelector(".vj-loading-text");
1768
- if (i)
1769
- a ? i.textContent = a : i.remove();
1770
- else if (a) {
1771
- const c = document.createElement("div");
1772
- c.className = "vj-loading-text", c.textContent = a, r.appendChild(c);
1998
+ a = !!n.value, i = void 0;
1999
+ a ? (l.classList.remove("vj-loading-overlay--hidden"), e.setAttribute("aria-busy", "true"), e.style.pointerEvents = "none") : (l.classList.add("vj-loading-overlay--hidden"), e.removeAttribute("aria-busy"), e.style.pointerEvents = "");
2000
+ const c = l.querySelector(".vj-loading-inner");
2001
+ if (c) {
2002
+ const s = c.querySelector(".vj-loading-text");
2003
+ if (s)
2004
+ i ? s.textContent = i : s.remove();
2005
+ else if (i) {
2006
+ const r = document.createElement("div");
2007
+ r.className = "vj-loading-text", r.textContent = i, c.appendChild(r);
1773
2008
  }
1774
2009
  }
1775
- Rt(e, l);
2010
+ At(e, l);
1776
2011
  },
1777
2012
  unmounted(e) {
1778
2013
  const n = e, t = n.__vjLoading;
1779
2014
  if (!t) return;
1780
2015
  const { overlay: o, originalPosition: l } = t;
1781
2016
  try {
1782
- t.spinnerContainer && ht(null, t.spinnerContainer);
2017
+ t.spinnerContainer && wt(null, t.spinnerContainer);
1783
2018
  } catch {
1784
2019
  }
1785
2020
  o && o.parentElement === e && e.removeChild(o), l !== void 0 && (e.style.position = l), n.__vjLoading = void 0;
1786
2021
  }
1787
- }, ll = { class: "page" }, al = {
2022
+ }, $l = { class: "page" }, Sl = {
1788
2023
  key: 0,
1789
2024
  class: "page-error"
1790
- }, sl = {
2025
+ }, Rl = {
1791
2026
  key: 1,
1792
2027
  class: "contents"
1793
- }, il = {
2028
+ }, Al = {
1794
2029
  key: 2,
1795
2030
  class: "actions"
1796
- }, rl = { key: 3 }, cl = { key: 0 }, ul = /* @__PURE__ */ B({
2031
+ }, Tl = { key: 3 }, Ol = { key: 0 }, Bl = /* @__PURE__ */ T({
1797
2032
  __name: "page",
1798
2033
  props: {
1799
2034
  title: {},
@@ -1804,43 +2039,42 @@ const ol = {
1804
2039
  },
1805
2040
  setup(e) {
1806
2041
  const n = e, t = C(() => n.flow?.running?.value ?? !1);
1807
- return (o, l) => cn((v(), x("div", ll, [
1808
- k("header", null, [
1809
- k("h2", null, D(e.title), 1),
1810
- k("span", null, [
1811
- T(o.$slots, "headerActions", {}, void 0, !0)
2042
+ return (o, l) => Bt((f(), b("div", $l, [
2043
+ V("header", null, [
2044
+ V("h2", null, D(e.title), 1),
2045
+ V("span", null, [
2046
+ M(o.$slots, "headerActions", {}, void 0, !0)
1812
2047
  ])
1813
2048
  ]),
1814
- k("main", {
1815
- class: N({ scrollable: e.scrollable })
2049
+ V("main", {
2050
+ class: I({ scrollable: e.scrollable })
1816
2051
  }, [
1817
- $e(D(t.value) + " ", 1),
1818
- e.errorMessage ? (v(), x("div", al, [
1819
- T(o.$slots, "error", {}, void 0, !0)
1820
- ])) : $("", !0),
1821
- e.errorMessage ? $("", !0) : (v(), x("div", sl, [
1822
- T(o.$slots, "default", {}, void 0, !0)
2052
+ e.errorMessage ? (f(), b("div", Sl, [
2053
+ M(o.$slots, "error", {}, void 0, !0)
2054
+ ])) : S("", !0),
2055
+ e.errorMessage ? S("", !0) : (f(), b("div", Rl, [
2056
+ M(o.$slots, "default", {}, void 0, !0)
1823
2057
  ])),
1824
- e.errorMessage ? $("", !0) : (v(), x("div", il, [
1825
- T(o.$slots, "actions", {}, void 0, !0)
2058
+ e.errorMessage ? S("", !0) : (f(), b("div", Al, [
2059
+ M(o.$slots, "actions", {}, void 0, !0)
1826
2060
  ])),
1827
- o.$slots.flexFooter ? (v(), x("footer", rl, [
1828
- T(o.$slots, "flexFooter", {}, void 0, !0)
1829
- ])) : $("", !0)
2061
+ o.$slots.flexFooter ? (f(), b("footer", Tl, [
2062
+ M(o.$slots, "flexFooter", {}, void 0, !0)
2063
+ ])) : S("", !0)
1830
2064
  ], 2),
1831
- o.$slots.footer ? (v(), x("footer", cl, [
1832
- T(o.$slots, "footer", {}, void 0, !0)
1833
- ])) : $("", !0)
2065
+ o.$slots.footer ? (f(), b("footer", Ol, [
2066
+ M(o.$slots, "footer", {}, void 0, !0)
2067
+ ])) : S("", !0)
1834
2068
  ])), [
1835
- [R(ol), { active: t.value, text: n.loadingMessage }]
2069
+ [$(Ll), { active: t.value, text: n.loadingMessage }]
1836
2070
  ]);
1837
2071
  }
1838
- }), dl = /* @__PURE__ */ M(ul, [["__scopeId", "data-v-89f776b0"]]), fl = {
2072
+ }), Dl = /* @__PURE__ */ O(Bl, [["__scopeId", "data-v-542565ba"]]), Ml = {
1839
2073
  class: "paginator-info",
1840
2074
  "aria-live": "polite"
1841
- }, ml = /* @__PURE__ */ B({
2075
+ }, Pl = /* @__PURE__ */ T({
1842
2076
  __name: "paginator",
1843
- props: /* @__PURE__ */ ue({
2077
+ props: /* @__PURE__ */ Z({
1844
2078
  totalItems: {},
1845
2079
  pageSize: {},
1846
2080
  labels: {}
@@ -1848,67 +2082,67 @@ const ol = {
1848
2082
  modelValue: { required: !0 },
1849
2083
  modelModifiers: {}
1850
2084
  }),
1851
- emits: /* @__PURE__ */ ue(["change"], ["update:modelValue"]),
2085
+ emits: /* @__PURE__ */ Z(["change"], ["update:modelValue"]),
1852
2086
  setup(e, { emit: n }) {
1853
- const t = e, o = ye(e, "modelValue"), l = n, s = C(() => Math.max(1, Math.ceil((t.totalItems ?? 0) / t.pageSize))), a = C(() => Math.min(Math.max(1, o.value ?? 1), s.value)), r = C(() => a.value), i = C(() => a.value <= 1), c = C(() => a.value >= s.value), u = C(() => t.labels?.item ?? "Eintrag"), d = C(() => t.labels?.of ?? "von"), m = (w) => {
1854
- const _ = Math.min(Math.max(1, Math.floor(w)), s.value);
1855
- _ !== o.value && (o.value = _, l("change", _));
1856
- }, f = () => m(1), p = () => m(a.value - 1), y = () => m(a.value + 1), V = () => m(s.value);
1857
- return q([() => t.totalItems, () => t.pageSize], () => {
1858
- o.value > s.value && m(s.value);
1859
- }), (w, _) => {
1860
- const h = U("VjButton");
1861
- return v(), x("nav", {
2087
+ const t = e, o = ve(e, "modelValue"), l = n, a = C(() => Math.max(1, Math.ceil((t.totalItems ?? 0) / t.pageSize))), i = C(() => Math.min(Math.max(1, o.value ?? 1), a.value)), c = C(() => i.value), s = C(() => i.value <= 1), r = C(() => i.value >= a.value), u = C(() => t.labels?.item ?? "Eintrag"), d = C(() => t.labels?.of ?? "von"), v = (y) => {
2088
+ const w = Math.min(Math.max(1, Math.floor(y)), a.value);
2089
+ w !== o.value && (o.value = w, l("change", w));
2090
+ }, m = () => v(1), p = () => v(i.value - 1), _ = () => v(i.value + 1), h = () => v(a.value);
2091
+ return X([() => t.totalItems, () => t.pageSize], () => {
2092
+ o.value > a.value && v(a.value);
2093
+ }), (y, w) => {
2094
+ const g = N("VjButton");
2095
+ return f(), b("nav", {
1862
2096
  class: "paginator",
1863
2097
  "aria-label": "Pagination",
1864
- onKeydown: _[0] || (_[0] = un(de(() => {
2098
+ onKeydown: w[0] || (w[0] = Ze(K(() => {
1865
2099
  }, ["prevent"]), ["enter"]))
1866
2100
  }, [
1867
- P(h, {
2101
+ P(g, {
1868
2102
  tertiary: "",
1869
2103
  class: "paginator-btn",
1870
- icon: R(H).FIRST,
1871
- disabled: i.value,
1872
- onClick: f,
2104
+ icon: $(U).FIRST,
2105
+ disabled: s.value,
2106
+ onClick: m,
1873
2107
  "aria-label": "First page"
1874
2108
  }, null, 8, ["icon", "disabled"]),
1875
- P(h, {
2109
+ P(g, {
1876
2110
  tertiary: "",
1877
2111
  class: "paginator-btn",
1878
- icon: R(H).PREVIOUS,
1879
- disabled: i.value,
2112
+ icon: $(U).PREVIOUS,
2113
+ disabled: s.value,
1880
2114
  onClick: p,
1881
2115
  "aria-label": "Previous page"
1882
2116
  }, null, 8, ["icon", "disabled"]),
1883
- T(w.$slots, "info", {
1884
- current: a.value,
1885
- totalPages: s.value,
1886
- goTo: m
2117
+ M(y.$slots, "info", {
2118
+ current: i.value,
2119
+ totalPages: a.value,
2120
+ goTo: v
1887
2121
  }, () => [
1888
- k("div", fl, D(u.value) + " " + D(r.value) + " " + D(d.value) + " " + D(s.value), 1)
2122
+ V("div", Ml, D(u.value) + " " + D(c.value) + " " + D(d.value) + " " + D(a.value), 1)
1889
2123
  ], !0),
1890
- P(h, {
2124
+ P(g, {
1891
2125
  tertiary: "",
1892
2126
  class: "paginator-btn",
1893
- icon: R(H).NEXT,
1894
- disabled: c.value,
1895
- onClick: y,
2127
+ icon: $(U).NEXT,
2128
+ disabled: r.value,
2129
+ onClick: _,
1896
2130
  "aria-label": "Next page"
1897
2131
  }, null, 8, ["icon", "disabled"]),
1898
- P(h, {
2132
+ P(g, {
1899
2133
  tertiary: "",
1900
2134
  class: "paginator-btn",
1901
- icon: R(H).LAST,
1902
- disabled: c.value,
1903
- onClick: V,
2135
+ icon: $(U).LAST,
2136
+ disabled: r.value,
2137
+ onClick: h,
1904
2138
  "aria-label": "Last page"
1905
2139
  }, null, 8, ["icon", "disabled"])
1906
2140
  ], 32);
1907
2141
  };
1908
2142
  }
1909
- }), vl = /* @__PURE__ */ M(ml, [["__scopeId", "data-v-b6fa8efe"]]), pl = { class: "search-field" }, hl = ["value", "placeholder"], gl = /* @__PURE__ */ B({
2143
+ }), jl = /* @__PURE__ */ O(Pl, [["__scopeId", "data-v-b6fa8efe"]]), Fl = { class: "search-field" }, zl = ["value", "placeholder"], Il = /* @__PURE__ */ T({
1910
2144
  __name: "search-field",
1911
- props: /* @__PURE__ */ ue({
2145
+ props: /* @__PURE__ */ Z({
1912
2146
  placeholder: { default: "Search..." }
1913
2147
  }, {
1914
2148
  modelValue: {},
@@ -1916,47 +2150,47 @@ const ol = {
1916
2150
  }),
1917
2151
  emits: ["update:modelValue"],
1918
2152
  setup(e) {
1919
- const n = ye(e, "modelValue"), t = (s) => {
1920
- n.value = s.target.value;
2153
+ const n = ve(e, "modelValue"), t = (a) => {
2154
+ n.value = a.target.value;
1921
2155
  }, o = () => {
1922
2156
  n.value = "";
1923
2157
  }, l = C(() => !n.value);
1924
- return (s, a) => {
1925
- const r = U("VjIcon");
1926
- return v(), x("div", pl, [
1927
- P(r, {
1928
- icon: R(H).SEARCH,
1929
- size: R(X).S
2158
+ return (a, i) => {
2159
+ const c = N("VjIcon");
2160
+ return f(), b("div", Fl, [
2161
+ P(c, {
2162
+ icon: $(U).SEARCH,
2163
+ size: $(q).S
1930
2164
  }, null, 8, ["icon", "size"]),
1931
- k("input", {
2165
+ V("input", {
1932
2166
  value: n.value,
1933
2167
  onInput: t,
1934
2168
  type: "text",
1935
2169
  placeholder: e.placeholder
1936
- }, null, 40, hl),
1937
- P(r, {
1938
- class: N(["reset", { invisible: l.value }]),
1939
- icon: R(H).CLOSE,
1940
- size: R(X).S,
2170
+ }, null, 40, zl),
2171
+ P(c, {
2172
+ class: I(["reset", { invisible: l.value }]),
2173
+ icon: $(U).CLOSE,
2174
+ size: $(q).S,
1941
2175
  onClick: o
1942
2176
  }, null, 8, ["class", "icon", "size"])
1943
2177
  ]);
1944
2178
  };
1945
2179
  }
1946
- }), bl = /* @__PURE__ */ M(gl, [["__scopeId", "data-v-2771c8ed"]]), yl = /* @__PURE__ */ B({
2180
+ }), Hl = /* @__PURE__ */ O(Il, [["__scopeId", "data-v-2771c8ed"]]), Ul = /* @__PURE__ */ T({
1947
2181
  __name: "separator",
1948
2182
  props: {
1949
2183
  vertical: { type: Boolean }
1950
2184
  },
1951
2185
  setup(e) {
1952
- return (n, t) => (v(), x("div", {
1953
- class: N(["separator", { vertical: e.vertical }])
2186
+ return (n, t) => (f(), b("div", {
2187
+ class: I(["separator", { vertical: e.vertical }])
1954
2188
  }, null, 2));
1955
2189
  }
1956
- }), wl = /* @__PURE__ */ M(yl, [["__scopeId", "data-v-e354bb4e"]]), xl = { class: "tab-view" }, _l = {
2190
+ }), Wl = /* @__PURE__ */ O(Ul, [["__scopeId", "data-v-e354bb4e"]]), Kl = { class: "tab-view" }, Xl = {
1957
2191
  ref: "headerRef",
1958
2192
  class: "tab-view-header"
1959
- }, Vl = ["onClick"], kl = { class: "tab-view-content" }, Cl = /* @__PURE__ */ B({
2193
+ }, Nl = ["onClick"], ql = { class: "tab-view-content" }, Gl = /* @__PURE__ */ T({
1960
2194
  __name: "tab-view",
1961
2195
  props: {
1962
2196
  modelValue: {},
@@ -1964,102 +2198,180 @@ const ol = {
1964
2198
  },
1965
2199
  emits: ["update:modelValue"],
1966
2200
  setup(e) {
1967
- const n = ye(e, "modelValue"), t = E([]), o = E([]), l = E({
2201
+ const n = ve(e, "modelValue"), t = E([]), o = E([]), l = E({
1968
2202
  width: "0px",
1969
2203
  transform: "translateX(0px)"
1970
- }), s = (c, u) => {
1971
- c && (o.value[u] = c);
1972
- }, a = () => {
1973
- const c = t.value.findIndex((u) => u.name === n.value);
1974
- if (c >= 0 && o.value[c]) {
1975
- const u = o.value[c], d = u.offsetWidth, m = u.offsetLeft;
2204
+ }), a = (r, u) => {
2205
+ r && (o.value[u] = r);
2206
+ }, i = () => {
2207
+ const r = t.value.findIndex((u) => u.name === n.value);
2208
+ if (r >= 0 && o.value[r]) {
2209
+ const u = o.value[r], d = u.offsetWidth, v = u.offsetLeft;
1976
2210
  l.value = {
1977
2211
  width: `${d}px`,
1978
- transform: `translateX(${m}px)`
2212
+ transform: `translateX(${v}px)`
1979
2213
  };
1980
2214
  }
1981
- }, r = (c, u) => {
1982
- t.value.find((d) => d.name === c) || (t.value.push({ name: c, label: u }), he(() => {
1983
- !n.value && t.value.length === 1 && (n.value = c), a();
2215
+ }, c = (r, u) => {
2216
+ t.value.find((d) => d.name === r) || (t.value.push({ name: r, label: u }), me(() => {
2217
+ !n.value && t.value.length === 1 && (n.value = r), i();
1984
2218
  }));
1985
- }, i = (c) => {
1986
- n.value = c;
2219
+ }, s = (r) => {
2220
+ n.value = r;
1987
2221
  };
1988
- return q(n, () => {
1989
- he(() => {
1990
- a();
2222
+ return X(n, () => {
2223
+ me(() => {
2224
+ i();
1991
2225
  });
1992
- }), dn("tabView", {
2226
+ }), pn("tabView", {
1993
2227
  activeTab: () => n.value,
1994
- registerTab: r
1995
- }), (c, u) => (v(), x("div", xl, [
1996
- k("div", _l, [
1997
- (v(!0), x(ge, null, Xe(t.value, (d, m) => (v(), x("div", {
2228
+ registerTab: c
2229
+ }), (r, u) => (f(), b("div", Kl, [
2230
+ V("div", Xl, [
2231
+ (f(!0), b(ne, null, Se(t.value, (d, v) => (f(), b("div", {
1998
2232
  key: d.name,
1999
2233
  ref_for: !0,
2000
- ref: (f) => s(f, m),
2001
- class: N(["tab-button", { active: n.value === d.name }]),
2002
- onClick: (f) => i(d.name)
2003
- }, D(d.label), 11, Vl))), 128)),
2004
- u[0] || (u[0] = k("div", { class: "tab-line" }, null, -1)),
2005
- k("div", {
2234
+ ref: (m) => a(m, v),
2235
+ class: I(["tab-button", { active: n.value === d.name }]),
2236
+ onClick: (m) => s(d.name)
2237
+ }, D(d.label), 11, Nl))), 128)),
2238
+ u[0] || (u[0] = V("div", { class: "tab-line" }, null, -1)),
2239
+ V("div", {
2006
2240
  class: "tab-indicator",
2007
- style: Z(l.value)
2241
+ style: J(l.value)
2008
2242
  }, null, 4)
2009
2243
  ], 512),
2010
- k("div", kl, [
2011
- T(c.$slots, "default", {}, void 0, !0)
2244
+ V("div", ql, [
2245
+ M(r.$slots, "default", {}, void 0, !0)
2012
2246
  ])
2013
2247
  ]));
2014
2248
  }
2015
- }), El = /* @__PURE__ */ M(Cl, [["__scopeId", "data-v-3d4ee454"]]), Rl = {
2249
+ }), Yl = /* @__PURE__ */ O(Gl, [["__scopeId", "data-v-3d4ee454"]]), Jl = {
2016
2250
  key: 0,
2017
2251
  class: "tab"
2018
- }, Ll = /* @__PURE__ */ B({
2252
+ }, Ql = /* @__PURE__ */ T({
2019
2253
  __name: "tab",
2020
2254
  props: {
2021
2255
  name: {},
2022
2256
  label: {}
2023
2257
  },
2024
2258
  setup(e) {
2025
- const n = e, t = $t("tabView"), o = C(() => t?.activeTab() === n.name);
2259
+ const n = e, t = Dt("tabView"), o = C(() => t?.activeTab() === n.name);
2026
2260
  return Oe(() => {
2027
2261
  t?.registerTab(n.name, n.label);
2028
- }), (l, s) => o.value ? (v(), x("div", Rl, [
2029
- T(l.$slots, "default")
2030
- ])) : $("", !0);
2262
+ }), (l, a) => o.value ? (f(), b("div", Jl, [
2263
+ M(l.$slots, "default")
2264
+ ])) : S("", !0);
2031
2265
  }
2032
- }), Jt = {
2266
+ }), Zl = ["onKeydown"], ea = /* @__PURE__ */ T({
2267
+ __name: "editable-label",
2268
+ props: {
2269
+ modelValue: {},
2270
+ showIcon: { type: Boolean }
2271
+ },
2272
+ emits: ["update:modelValue", "edit"],
2273
+ setup(e, { emit: n }) {
2274
+ const t = e, o = n, l = C(() => t.modelValue ?? ""), a = E(l.value), i = E(!1), c = E(!1), s = E(null), r = C(() => !!t.showIcon);
2275
+ X(l, (m) => {
2276
+ a.value = m;
2277
+ });
2278
+ function u() {
2279
+ i.value = !0, me(() => s.value?.focus());
2280
+ }
2281
+ function d() {
2282
+ i.value = !1, a.value !== l.value && (o("update:modelValue", a.value), o("edit", a.value));
2283
+ }
2284
+ function v() {
2285
+ a.value = l.value, i.value = !1;
2286
+ }
2287
+ return (m, p) => (f(), b("span", {
2288
+ class: I(["vj-editable-label", { editing: i.value }]),
2289
+ onMouseenter: p[1] || (p[1] = (_) => c.value = !0),
2290
+ onMouseleave: p[2] || (p[2] = (_) => c.value = !1)
2291
+ }, [
2292
+ i.value ? Bt((f(), b("input", {
2293
+ key: 1,
2294
+ ref_key: "inputRef",
2295
+ ref: s,
2296
+ class: "edit-input",
2297
+ "onUpdate:modelValue": p[0] || (p[0] = (_) => a.value = _),
2298
+ onKeydown: [
2299
+ Ze(K(d, ["prevent"]), ["enter"]),
2300
+ Ze(K(v, ["prevent"]), ["esc"])
2301
+ ],
2302
+ onBlur: d
2303
+ }, null, 40, Zl)), [
2304
+ [hn, a.value]
2305
+ ]) : (f(), b(ne, { key: 0 }, [
2306
+ V("span", {
2307
+ class: "label-text",
2308
+ onClick: u,
2309
+ title: "Click to edit"
2310
+ }, D(l.value), 1),
2311
+ c.value || r.value ? (f(), b("span", {
2312
+ key: 0,
2313
+ class: "edit-icon",
2314
+ onClick: K(u, ["stop"])
2315
+ }, [
2316
+ P(we, {
2317
+ icon: $(U).EDIT
2318
+ }, null, 8, ["icon"])
2319
+ ])) : S("", !0)
2320
+ ], 64))
2321
+ ], 34));
2322
+ }
2323
+ }), mi = /* @__PURE__ */ O(ea, [["__scopeId", "data-v-cdc52c5b"]]), ta = "200% 200%", na = /* @__PURE__ */ T({
2324
+ __name: "skeleton",
2325
+ props: {
2326
+ width: {},
2327
+ height: {},
2328
+ borderRadius: {}
2329
+ },
2330
+ setup(e) {
2331
+ const n = e, t = C(() => n.width ?? "100%"), o = C(() => n.height ?? "16px"), l = C(() => n.borderRadius ?? "4px");
2332
+ return (a, i) => (f(), b("div", {
2333
+ class: "vj-skeleton",
2334
+ style: J({
2335
+ width: t.value,
2336
+ height: o.value,
2337
+ borderRadius: l.value,
2338
+ backgroundSize: ta
2339
+ }),
2340
+ "aria-hidden": "true"
2341
+ }, null, 4));
2342
+ }
2343
+ }), oa = /* @__PURE__ */ O(na, [["__scopeId", "data-v-ac05e016"]]), on = {
2033
2344
  form: {
2034
- labelPosition: "inline"
2345
+ labelPosition: "inline",
2346
+ appearance: "bordered"
2035
2347
  }
2036
2348
  };
2037
- let Ue = {};
2038
- function Pa(e) {
2039
- Ue = {
2040
- ...Ue,
2349
+ let Xe = {};
2350
+ function pi(e) {
2351
+ Xe = {
2352
+ ...Xe,
2041
2353
  ...e,
2042
2354
  form: {
2043
- ...Jt.form,
2355
+ ...on.form,
2044
2356
  ...e.form
2045
2357
  }
2046
2358
  };
2047
2359
  }
2048
- function Sl() {
2360
+ function Tt() {
2049
2361
  return {
2050
2362
  form: {
2051
- ...Jt.form,
2052
- ...Ue.form
2363
+ ...on.form,
2364
+ ...Xe.form
2053
2365
  }
2054
2366
  };
2055
2367
  }
2056
- function ja() {
2057
- Ue = {};
2368
+ function hi() {
2369
+ Xe = {};
2058
2370
  }
2059
- const $l = ["data-colspan", "data-newline"], Al = ["for"], Ol = { class: "form-field__wrapper" }, Tl = ["for"], Bl = {
2371
+ const la = ["data-colspan", "data-newline"], aa = ["for"], ia = { class: "form-field__wrapper" }, sa = ["for"], ra = {
2060
2372
  key: 1,
2061
2373
  class: "form-field__error"
2062
- }, Ml = /* @__PURE__ */ B({
2374
+ }, ca = /* @__PURE__ */ T({
2063
2375
  __name: "form-field",
2064
2376
  props: {
2065
2377
  modelValue: {},
@@ -2071,62 +2383,70 @@ const $l = ["data-colspan", "data-newline"], Al = ["for"], Ol = { class: "form-f
2071
2383
  newLine: { type: Boolean },
2072
2384
  spanRow: { type: Boolean },
2073
2385
  error: {},
2074
- labelPosition: {}
2386
+ labelPosition: {},
2387
+ appearance: {}
2075
2388
  },
2076
2389
  emits: ["update:modelValue", "focus", "blur"],
2077
2390
  setup(e, { emit: n }) {
2078
- const t = e, o = n, l = E(t.modelValue), s = E(!1), a = C(() => `form-field-${t.id ?? Math.random().toString(36).slice(2)}`), r = C(() => t.labelPosition ?? Sl().form.labelPosition);
2079
- q(
2391
+ const t = e, o = n, l = E(t.modelValue), a = E(!1), i = C(() => `form-field-${t.id ?? Math.random().toString(36).slice(2)}`), c = C(() => t.labelPosition ?? Tt().form.labelPosition), s = C(() => t.appearance ?? Tt().form.appearance);
2392
+ X(
2080
2393
  () => t.modelValue,
2081
- (f) => l.value = f
2394
+ (p) => l.value = p
2082
2395
  );
2083
- const i = C(() => {
2084
- if (console.log(t.labelPosition, r.value, s.value, l.value), r.value === "outline")
2396
+ const r = C(() => {
2397
+ if (c.value === "outline")
2085
2398
  return !0;
2086
- const f = l.value !== "" && l.value !== null && l.value !== void 0;
2087
- return s.value || f;
2088
- }), c = C(() => r.value === "outline" || i.value ? t.placeholder : "");
2089
- function u(f) {
2090
- const y = f.target.value;
2091
- l.value = y, o("update:modelValue", y);
2399
+ const p = l.value !== "" && l.value !== null && l.value !== void 0;
2400
+ return a.value || p;
2401
+ }), u = C(() => c.value === "outline" || r.value ? t.placeholder : "");
2402
+ function d(p) {
2403
+ const h = p.target.value;
2404
+ l.value = h, o("update:modelValue", h);
2092
2405
  }
2093
- function d(f) {
2094
- s.value = !0, o("focus", f);
2406
+ function v(p) {
2407
+ a.value = !0, o("focus", p);
2095
2408
  }
2096
- function m(f) {
2097
- s.value = !1, o("blur", f);
2409
+ function m(p) {
2410
+ a.value = !1, o("blur", p);
2098
2411
  }
2099
- return (f, p) => (v(), x("div", {
2100
- class: N(["form-field", `form-field--${r.value}`, { disabled: e.disabled }, { labelless: !e.label }, { error: !!e.error }]),
2412
+ return (p, _) => (f(), b("div", {
2413
+ class: I([
2414
+ "form-field",
2415
+ `form-field--${c.value}`,
2416
+ `form-field--${s.value}`,
2417
+ { disabled: e.disabled },
2418
+ { labelless: !e.label },
2419
+ { error: !!e.error }
2420
+ ]),
2101
2421
  "data-colspan": t.spanRow ? void 0 : t.colspan,
2102
2422
  "data-newline": t.spanRow || t.newLine ? "true" : void 0,
2103
- style: Z(t.spanRow ? { gridColumn: "1 / -1" } : void 0)
2423
+ style: J(t.spanRow ? { gridColumn: "1 / -1" } : void 0)
2104
2424
  }, [
2105
- e.label && r.value === "outline" ? (v(), x("label", {
2425
+ e.label && c.value === "outline" ? (f(), b("label", {
2106
2426
  key: 0,
2107
- for: a.value,
2427
+ for: i.value,
2108
2428
  class: "form-field__label-outline"
2109
- }, D(e.label), 9, Al)) : $("", !0),
2110
- k("div", Ol, [
2111
- T(f.$slots, "control", {
2112
- id: a.value,
2429
+ }, D(e.label), 9, aa)) : S("", !0),
2430
+ V("div", ia, [
2431
+ M(p.$slots, "control", {
2432
+ id: i.value,
2113
2433
  value: l.value,
2114
- onInput: u,
2115
- onFocus: d,
2434
+ onInput: d,
2435
+ onFocus: v,
2116
2436
  onBlur: m,
2117
2437
  disabled: e.disabled,
2118
- placeholder: c.value
2438
+ placeholder: u.value
2119
2439
  }, void 0, !0),
2120
- e.label && r.value === "inline" ? (v(), x("label", {
2440
+ e.label && c.value === "inline" ? (f(), b("label", {
2121
2441
  key: 0,
2122
- for: a.value,
2123
- class: N(["form-field__label", { "form-field__label--float": i.value }])
2124
- }, D(e.label), 11, Tl)) : $("", !0)
2442
+ for: i.value,
2443
+ class: I(["form-field__label", { "form-field__label--float": r.value }])
2444
+ }, D(e.label), 11, sa)) : S("", !0)
2125
2445
  ]),
2126
- e.error ? (v(), x("div", Bl, D(e.error), 1)) : $("", !0)
2127
- ], 14, $l));
2446
+ e.error ? (f(), b("div", ra, D(e.error), 1)) : S("", !0)
2447
+ ], 14, la));
2128
2448
  }
2129
- }), Fe = /* @__PURE__ */ M(Ml, [["__scopeId", "data-v-bb7aeb5f"]]), Pl = /* @__PURE__ */ B({
2449
+ }), je = /* @__PURE__ */ O(ca, [["__scopeId", "data-v-c422f422"]]), ua = /* @__PURE__ */ T({
2130
2450
  __name: "form-layout",
2131
2451
  props: {
2132
2452
  columns: { type: Number, default: 4 },
@@ -2137,54 +2457,54 @@ const $l = ["data-colspan", "data-newline"], Al = ["for"], Ol = { class: "form-f
2137
2457
  let o = null;
2138
2458
  function l() {
2139
2459
  if (!t.value) return;
2140
- Array.from(t.value.children).forEach((a) => {
2141
- const r = a.getAttribute("data-colspan"), i = r ? Math.max(1, Number(r) || 1) : 1, c = a.getAttribute("data-newline");
2142
- c !== null && c !== "false" ? a.style.gridColumn = "1 / -1" : a.style.gridColumn = `span ${i}`;
2460
+ Array.from(t.value.children).forEach((i) => {
2461
+ const c = i.getAttribute("data-colspan"), s = c ? Math.max(1, Number(c) || 1) : 1, r = i.getAttribute("data-newline");
2462
+ r !== null && r !== "false" ? i.style.gridColumn = "1 / -1" : i.style.gridColumn = `span ${s}`;
2143
2463
  });
2144
2464
  }
2145
2465
  return Oe(() => {
2146
- he(() => {
2466
+ me(() => {
2147
2467
  l(), t.value && (o = new MutationObserver(() => l()), o.observe(t.value, { childList: !0, subtree: !1, attributes: !0, attributeFilter: ["data-colspan", "data-newline"] }));
2148
2468
  });
2149
- }), Te(() => {
2469
+ }), Be(() => {
2150
2470
  o?.disconnect();
2151
- }), q(
2471
+ }), X(
2152
2472
  () => n.columns,
2153
- () => he(l)
2154
- ), q(
2473
+ () => me(l)
2474
+ ), X(
2155
2475
  () => n.gap,
2156
- () => he(l)
2157
- ), (s, a) => (v(), x("div", {
2476
+ () => me(l)
2477
+ ), (a, i) => (f(), b("div", {
2158
2478
  ref_key: "container",
2159
2479
  ref: t,
2160
2480
  class: "form-layout",
2161
- style: Z({ gridTemplateColumns: `repeat(${e.columns}, minmax(0, 1fr))`, gap: e.gap })
2481
+ style: J({ gridTemplateColumns: `repeat(${e.columns}, minmax(0, 1fr))`, gap: e.gap })
2162
2482
  }, [
2163
- T(s.$slots, "default", {}, void 0, !0)
2483
+ M(a.$slots, "default", {}, void 0, !0)
2164
2484
  ], 4));
2165
2485
  }
2166
- }), jl = /* @__PURE__ */ M(Pl, [["__scopeId", "data-v-96f62ab7"]]), Fl = {
2486
+ }), da = /* @__PURE__ */ O(ua, [["__scopeId", "data-v-96f62ab7"]]), fa = {
2167
2487
  key: 0,
2168
2488
  class: "form-section__title",
2169
2489
  "data-newline": ""
2170
- }, Dl = /* @__PURE__ */ B({
2490
+ }, va = /* @__PURE__ */ T({
2171
2491
  __name: "form-section",
2172
2492
  props: {
2173
2493
  title: {}
2174
2494
  },
2175
2495
  setup(e) {
2176
- return (n, t) => (v(), x(ge, null, [
2177
- e.title ? (v(), x("h3", Fl, D(e.title), 1)) : $("", !0),
2178
- T(n.$slots, "default", {}, void 0, !0)
2496
+ return (n, t) => (f(), b(ne, null, [
2497
+ e.title ? (f(), b("h3", fa, D(e.title), 1)) : S("", !0),
2498
+ M(n.$slots, "default", {}, void 0, !0)
2179
2499
  ], 64));
2180
2500
  }
2181
- }), zl = /* @__PURE__ */ M(Dl, [["__scopeId", "data-v-69cff1d0"]]), Il = ["id", "disabled"], Nl = { class: "select-value" }, Hl = {
2501
+ }), ma = /* @__PURE__ */ O(va, [["__scopeId", "data-v-69cff1d0"]]), pa = ["id", "disabled"], ha = { class: "select-value" }, ga = {
2182
2502
  key: 1,
2183
2503
  class: "select-placeholder"
2184
- }, Wl = { class: "select-options" }, Ul = ["onClick", "onMouseenter"], Xl = /* @__PURE__ */ B({
2504
+ }, ba = { class: "select-options" }, ya = ["onClick", "onMouseenter"], wa = /* @__PURE__ */ T({
2185
2505
  inheritAttrs: !1,
2186
2506
  __name: "select",
2187
- props: /* @__PURE__ */ ue({
2507
+ props: /* @__PURE__ */ Z({
2188
2508
  options: {},
2189
2509
  placeholder: {},
2190
2510
  disabled: { type: Boolean },
@@ -2199,125 +2519,125 @@ const $l = ["data-colspan", "data-newline"], Al = ["for"], Ol = { class: "form-f
2199
2519
  }),
2200
2520
  emits: ["update:modelValue"],
2201
2521
  setup(e, { expose: n }) {
2202
- const t = e, o = ye(e, "modelValue"), l = E(!1), s = E(-1), a = E(null), r = E(null), i = E(null), { floatingStyles: c } = Gt(r, i, {
2522
+ const t = e, o = ve(e, "modelValue"), l = E(!1), a = E(-1), i = E(null), c = E(null), s = E(null), { floatingStyles: r } = en(c, s, {
2203
2523
  placement: "bottom-start",
2204
2524
  middleware: [
2205
- Ut(4),
2206
- Kt(),
2207
- Xt({ padding: 8 }),
2208
- Oo({
2209
- apply({ rects: h, elements: O }) {
2210
- Object.assign(O.floating.style, {
2211
- minWidth: `${h.reference.width}px`
2525
+ Yt(4),
2526
+ Qt(),
2527
+ Jt({ padding: 8 }),
2528
+ ol({
2529
+ apply({ rects: g, elements: L }) {
2530
+ Object.assign(L.floating.style, {
2531
+ minWidth: `${g.reference.width}px`
2212
2532
  });
2213
2533
  }
2214
2534
  })
2215
2535
  ],
2216
- whileElementsMounted: Wt
2217
- }), u = (h) => t.optionLabel ? typeof t.optionLabel == "function" ? t.optionLabel(h) : String(h[t.optionLabel]) : String(h), d = (h) => t.optionValue ? typeof t.optionValue == "function" ? t.optionValue(h) : h[t.optionValue] : h, m = C(() => t.options.find((h) => d(h) === o.value)), f = (h) => d(h) === o.value, p = () => {
2536
+ whileElementsMounted: Gt
2537
+ }), u = (g) => t.optionLabel ? typeof t.optionLabel == "function" ? t.optionLabel(g) : String(g[t.optionLabel]) : String(g), d = (g) => t.optionValue ? typeof t.optionValue == "function" ? t.optionValue(g) : g[t.optionValue] : g, v = C(() => t.options.find((g) => d(g) === o.value)), m = (g) => d(g) === o.value, p = () => {
2218
2538
  t.disabled || (l.value = !l.value);
2539
+ }, _ = () => {
2540
+ l.value = !1, a.value = -1;
2541
+ }, h = (g) => {
2542
+ o.value = d(g), _();
2219
2543
  }, y = () => {
2220
- l.value = !1, s.value = -1;
2221
- }, V = (h) => {
2222
- o.value = d(h), y();
2223
- }, w = () => {
2224
2544
  o.value = void 0;
2225
- }, _ = (h) => {
2226
- l.value && a.value && !a.value.contains(h.target) && y();
2545
+ }, w = (g) => {
2546
+ l.value && i.value && !i.value.contains(g.target) && _();
2227
2547
  };
2228
2548
  return Oe(() => {
2229
- document.addEventListener("click", _);
2230
- }), Te(() => {
2231
- document.removeEventListener("click", _);
2232
- }), q(l, (h) => {
2233
- h && m.value && (s.value = t.options.findIndex((O) => f(O)));
2549
+ document.addEventListener("click", w);
2550
+ }), Be(() => {
2551
+ document.removeEventListener("click", w);
2552
+ }), X(l, (g) => {
2553
+ g && v.value && (a.value = t.options.findIndex((L) => m(L)));
2234
2554
  }), n({
2235
- focus: () => r.value?.focus(),
2236
- blur: () => r.value?.blur()
2237
- }), (h, O) => {
2238
- const A = U("VjIcon");
2239
- return v(), x(ge, null, [
2240
- k("div", {
2555
+ focus: () => c.value?.focus(),
2556
+ blur: () => c.value?.blur()
2557
+ }), (g, L) => {
2558
+ const B = N("VjIcon");
2559
+ return f(), b(ne, null, [
2560
+ V("div", {
2241
2561
  ref_key: "selectRef",
2242
- ref: a,
2243
- class: N(["select", h.$attrs.class])
2562
+ ref: i,
2563
+ class: I(["select", g.$attrs.class])
2244
2564
  }, [
2245
- k("button", {
2565
+ V("button", {
2246
2566
  ref_key: "buttonRef",
2247
- ref: r,
2567
+ ref: c,
2248
2568
  type: "button",
2249
2569
  class: "select-trigger",
2250
2570
  id: t.id,
2251
2571
  onClick: p,
2252
2572
  disabled: e.disabled
2253
2573
  }, [
2254
- t.icon ? (v(), j(A, {
2574
+ t.icon ? (f(), j(B, {
2255
2575
  key: 0,
2256
2576
  icon: t.icon,
2257
- size: R(X).S,
2577
+ size: $(q).S,
2258
2578
  class: "select-icon-left"
2259
- }, null, 8, ["icon", "size"])) : $("", !0),
2260
- k("span", Nl, [
2261
- m.value ? T(h.$slots, "selected", {
2579
+ }, null, 8, ["icon", "size"])) : S("", !0),
2580
+ V("span", ha, [
2581
+ v.value ? M(g.$slots, "selected", {
2262
2582
  key: 0,
2263
- option: m.value
2583
+ option: v.value
2264
2584
  }, () => [
2265
- $e(D(u(m.value)), 1)
2266
- ], !0) : (v(), x("span", Hl, D(e.placeholder), 1))
2585
+ Ie(D(u(v.value)), 1)
2586
+ ], !0) : (f(), b("span", ga, D(e.placeholder), 1))
2267
2587
  ]),
2268
- t.clearable && m.value && !e.disabled ? (v(), j(A, {
2588
+ t.clearable && v.value && !e.disabled ? (f(), j(B, {
2269
2589
  key: 1,
2270
- icon: R(H).CLOSE,
2271
- size: R(X).S,
2590
+ icon: $(U).CLOSE,
2591
+ size: $(q).S,
2272
2592
  class: "select-clear-icon",
2273
- onClick: de(w, ["stop"])
2274
- }, null, 8, ["icon", "size"])) : $("", !0),
2275
- P(A, {
2276
- icon: R(H).CHEVRON_DOWN,
2277
- size: R(X).S,
2278
- class: N(["select-icon-right", { open: l.value }])
2593
+ onClick: K(y, ["stop"])
2594
+ }, null, 8, ["icon", "size"])) : S("", !0),
2595
+ P(B, {
2596
+ icon: $(U).CHEVRON_DOWN,
2597
+ size: $(q).S,
2598
+ class: I(["select-icon-right", { open: l.value }])
2279
2599
  }, null, 8, ["icon", "size", "class"])
2280
- ], 8, Il),
2281
- P(Ie, { name: "dropdown" }, {
2600
+ ], 8, pa),
2601
+ P(He, { name: "dropdown" }, {
2282
2602
  default: W(() => [
2283
- l.value ? (v(), x("div", {
2603
+ l.value ? (f(), b("div", {
2284
2604
  key: 0,
2285
2605
  ref_key: "floatingRef",
2286
- ref: i,
2287
- style: Z(R(c)),
2606
+ ref: s,
2607
+ style: J($(r)),
2288
2608
  class: "select-dropdown"
2289
2609
  }, [
2290
- k("div", Wl, [
2291
- (v(!0), x(ge, null, Xe(e.options, (F, g) => (v(), x("div", {
2610
+ V("div", ba, [
2611
+ (f(!0), b(ne, null, Se(e.options, (F, x) => (f(), b("div", {
2292
2612
  key: String(d(F)),
2293
- class: N(["select-option", { selected: f(F), highlighted: s.value === g }]),
2294
- onClick: (b) => V(F),
2295
- onMouseenter: (b) => s.value = g
2613
+ class: I(["select-option", { selected: m(F), highlighted: a.value === x }]),
2614
+ onClick: (k) => h(F),
2615
+ onMouseenter: (k) => a.value = x
2296
2616
  }, [
2297
- T(h.$slots, "option", {
2617
+ M(g.$slots, "option", {
2298
2618
  option: F,
2299
- selected: f(F)
2619
+ selected: m(F)
2300
2620
  }, () => [
2301
- $e(D(u(F)), 1)
2621
+ Ie(D(u(F)), 1)
2302
2622
  ], !0)
2303
- ], 42, Ul))), 128))
2623
+ ], 42, ya))), 128))
2304
2624
  ])
2305
- ], 4)) : $("", !0)
2625
+ ], 4)) : S("", !0)
2306
2626
  ]),
2307
2627
  _: 3
2308
2628
  })
2309
2629
  ], 2),
2310
- (v(), j(tt, { to: "body" }, [
2311
- l.value ? (v(), x("div", {
2630
+ (f(), j(ot, { to: "body" }, [
2631
+ l.value ? (f(), b("div", {
2312
2632
  key: 0,
2313
2633
  class: "select-backdrop",
2314
- onClick: y
2315
- })) : $("", !0)
2634
+ onClick: _
2635
+ })) : S("", !0)
2316
2636
  ]))
2317
2637
  ], 64);
2318
2638
  };
2319
2639
  }
2320
- }), Qt = /* @__PURE__ */ M(Xl, [["__scopeId", "data-v-fc22f0e9"]]), Kl = /* @__PURE__ */ B({
2640
+ }), ln = /* @__PURE__ */ O(wa, [["__scopeId", "data-v-fc22f0e9"]]), _a = /* @__PURE__ */ T({
2321
2641
  __name: "input-select",
2322
2642
  props: {
2323
2643
  modelValue: {},
@@ -2330,16 +2650,17 @@ const $l = ["data-colspan", "data-newline"], Al = ["for"], Ol = { class: "form-f
2330
2650
  spanRow: { type: Boolean },
2331
2651
  error: {},
2332
2652
  labelPosition: {},
2653
+ appearance: {},
2333
2654
  options: {}
2334
2655
  },
2335
2656
  emits: ["update:modelValue", "input", "focus", "blur"],
2336
2657
  setup(e, { emit: n }) {
2337
- const t = e, o = n, l = E(t.modelValue), s = (a) => {
2338
- l.value = a, o("update:modelValue", a);
2658
+ const t = e, o = n, l = E(t.modelValue), a = (i) => {
2659
+ l.value = i, o("update:modelValue", i);
2339
2660
  };
2340
- return (a, r) => (v(), j(Fe, {
2661
+ return (i, c) => (f(), j(je, {
2341
2662
  modelValue: l.value,
2342
- "onUpdate:modelValue": s,
2663
+ "onUpdate:modelValue": a,
2343
2664
  label: t.label,
2344
2665
  id: t.id,
2345
2666
  placeholder: t.placeholder,
@@ -2348,43 +2669,44 @@ const $l = ["data-colspan", "data-newline"], Al = ["for"], Ol = { class: "form-f
2348
2669
  newLine: t.newLine,
2349
2670
  spanRow: t.spanRow,
2350
2671
  error: t.error,
2351
- labelPosition: t.labelPosition
2672
+ labelPosition: t.labelPosition,
2673
+ appearance: t.appearance
2352
2674
  }, {
2353
- control: W(({ id: i, disabled: c, placeholder: u }) => [
2354
- P(Qt, {
2355
- id: i,
2675
+ control: W(({ id: s, disabled: r, placeholder: u }) => [
2676
+ P(ln, {
2677
+ id: s,
2356
2678
  modelValue: l.value,
2357
2679
  "onUpdate:modelValue": [
2358
- r[0] || (r[0] = (d) => l.value = d),
2359
- s
2680
+ c[0] || (c[0] = (d) => l.value = d),
2681
+ a
2360
2682
  ],
2361
2683
  options: t.options,
2362
2684
  placeholder: u,
2363
- disabled: c,
2685
+ disabled: r,
2364
2686
  "option-label": (d) => d.label,
2365
2687
  "option-value": (d) => d.value,
2366
2688
  clearable: ""
2367
- }, Lt({ _: 2 }, [
2368
- a.$slots.selected ? {
2689
+ }, lt({ _: 2 }, [
2690
+ i.$slots.selected ? {
2369
2691
  name: "selected",
2370
2692
  fn: W(({ option: d }) => [
2371
- T(a.$slots, "selected", { option: d })
2693
+ M(i.$slots, "selected", { option: d })
2372
2694
  ]),
2373
2695
  key: "0"
2374
2696
  } : void 0,
2375
- a.$slots.option ? {
2697
+ i.$slots.option ? {
2376
2698
  name: "option",
2377
2699
  fn: W(({ option: d }) => [
2378
- T(a.$slots, "option", { option: d })
2700
+ M(i.$slots, "option", { option: d })
2379
2701
  ]),
2380
2702
  key: "1"
2381
2703
  } : void 0
2382
2704
  ]), 1032, ["id", "modelValue", "options", "placeholder", "disabled", "option-label", "option-value"])
2383
2705
  ]),
2384
2706
  _: 3
2385
- }, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error", "labelPosition"]));
2707
+ }, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error", "labelPosition", "appearance"]));
2386
2708
  }
2387
- }), ql = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-label"], Gl = ["aria-valuemin", "aria-valuemax", "aria-valuenow"], Yl = /* @__PURE__ */ B({
2709
+ }), xa = ["aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-label"], ka = ["aria-valuemin", "aria-valuemax", "aria-valuenow"], Va = /* @__PURE__ */ T({
2388
2710
  __name: "slider",
2389
2711
  props: {
2390
2712
  modelValue: { default: void 0 },
@@ -2395,130 +2717,130 @@ const $l = ["data-colspan", "data-newline"], Al = ["for"], Ol = { class: "form-f
2395
2717
  },
2396
2718
  emits: ["update:modelValue", "change"],
2397
2719
  setup(e, { emit: n }) {
2398
- const t = e, o = n, l = E(null), s = E(!1), a = E(!1), r = (g, b, S) => Math.min(Math.max(g, b), S), i = E(
2720
+ const t = e, o = n, l = E(null), a = E(!1), i = E(!1), c = (x, k, A) => Math.min(Math.max(x, k), A), s = E(
2399
2721
  t.range ? Array.isArray(t.modelValue) ? t.modelValue[0] : t.min : typeof t.modelValue == "number" ? t.modelValue : t.min
2400
- ), c = E(t.range && Array.isArray(t.modelValue) ? t.modelValue[1] : t.max);
2401
- q(
2722
+ ), r = E(t.range && Array.isArray(t.modelValue) ? t.modelValue[1] : t.max);
2723
+ X(
2402
2724
  () => t.modelValue,
2403
- (g) => {
2404
- t.range ? Array.isArray(g) && (i.value = r(g[0], t.min, t.max), c.value = r(g[1], t.min, t.max)) : typeof g == "number" && (i.value = r(g, t.min, t.max));
2725
+ (x) => {
2726
+ t.range ? Array.isArray(x) && (s.value = c(x[0], t.min, t.max), r.value = c(x[1], t.min, t.max)) : typeof x == "number" && (s.value = c(x, t.min, t.max));
2405
2727
  },
2406
2728
  { immediate: !0 }
2407
2729
  );
2408
- const u = (g) => (g - t.min) / (t.max - t.min) * 100, d = C(() => ({ left: `${u(i.value)}%` })), m = C(() => ({ left: `${u(c.value)}%` })), f = C(() => {
2409
- if (!t.range) return { width: `${u(i.value)}%`, left: "0%" };
2410
- const g = u(i.value), b = u(c.value);
2411
- return { left: `${g}%`, width: `${Math.max(0, b - g)}%` };
2730
+ const u = (x) => (x - t.min) / (t.max - t.min) * 100, d = C(() => ({ left: `${u(s.value)}%` })), v = C(() => ({ left: `${u(r.value)}%` })), m = C(() => {
2731
+ if (!t.range) return { width: `${u(s.value)}%`, left: "0%" };
2732
+ const x = u(s.value), k = u(r.value);
2733
+ return { left: `${x}%`, width: `${Math.max(0, k - x)}%` };
2412
2734
  });
2413
- let p = null, y = null;
2414
- const V = async (g, b) => {
2415
- p = g, y = b.pointerId, g === "low" ? s.value = !0 : a.value = !0;
2735
+ let p = null, _ = null;
2736
+ const h = async (x, k) => {
2737
+ p = x, _ = k.pointerId, x === "low" ? a.value = !0 : i.value = !0;
2416
2738
  try {
2417
- b.target.setPointerCapture(b.pointerId);
2739
+ k.target.setPointerCapture(k.pointerId);
2418
2740
  } catch {
2419
2741
  }
2420
- window.addEventListener("pointermove", _), window.addEventListener("pointerup", w);
2421
- }, w = (g) => {
2422
- if (y != null && g)
2742
+ window.addEventListener("pointermove", w), window.addEventListener("pointerup", y);
2743
+ }, y = (x) => {
2744
+ if (_ != null && x)
2423
2745
  try {
2424
- g.target.releasePointerCapture(g.pointerId);
2746
+ x.target.releasePointerCapture(x.pointerId);
2425
2747
  } catch {
2426
2748
  }
2427
- p = null, y = null, s.value = !1, a.value = !1, window.removeEventListener("pointermove", _), window.removeEventListener("pointerup", w), A();
2428
- }, _ = (g) => {
2749
+ p = null, _ = null, a.value = !1, i.value = !1, window.removeEventListener("pointermove", w), window.removeEventListener("pointerup", y), B();
2750
+ }, w = (x) => {
2429
2751
  if (!p || !l.value) return;
2430
- const b = l.value.getBoundingClientRect(), S = r(g.clientX - b.left, 0, b.width), z = t.min + S / b.width * (t.max - t.min), I = Math.round(z / t.step) * t.step;
2431
- p === "low" ? t.range ? i.value = Math.min(I, c.value) : i.value = r(I, t.min, t.max) : p === "high" && (c.value = Math.max(I, i.value));
2432
- }, h = (g) => {
2752
+ const k = l.value.getBoundingClientRect(), A = c(x.clientX - k.left, 0, k.width), z = t.min + A / k.width * (t.max - t.min), H = Math.round(z / t.step) * t.step;
2753
+ p === "low" ? t.range ? s.value = Math.min(H, r.value) : s.value = c(H, t.min, t.max) : p === "high" && (r.value = Math.max(H, s.value));
2754
+ }, g = (x) => {
2433
2755
  if (!l.value) return;
2434
- const b = l.value.getBoundingClientRect(), S = r(g.clientX - b.left, 0, b.width), z = t.min + S / b.width * (t.max - t.min), I = Math.round(z / t.step) * t.step;
2756
+ const k = l.value.getBoundingClientRect(), A = c(x.clientX - k.left, 0, k.width), z = t.min + A / k.width * (t.max - t.min), H = Math.round(z / t.step) * t.step;
2435
2757
  if (t.range) {
2436
- const se = Math.abs(I - i.value), ie = Math.abs(I - c.value);
2437
- se <= ie ? i.value = Math.min(I, c.value) : c.value = Math.max(I, i.value);
2758
+ const ce = Math.abs(H - s.value), ue = Math.abs(H - r.value);
2759
+ ce <= ue ? s.value = Math.min(H, r.value) : r.value = Math.max(H, s.value);
2438
2760
  } else
2439
- i.value = r(I, t.min, t.max);
2440
- A();
2441
- }, O = (g, b) => {
2442
- const S = t.step, z = b.key === "ArrowLeft" || b.key === "ArrowDown" ? -1 : b.key === "ArrowRight" || b.key === "ArrowUp" ? 1 : 0;
2761
+ s.value = c(H, t.min, t.max);
2762
+ B();
2763
+ }, L = (x, k) => {
2764
+ const A = t.step, z = k.key === "ArrowLeft" || k.key === "ArrowDown" ? -1 : k.key === "ArrowRight" || k.key === "ArrowUp" ? 1 : 0;
2443
2765
  if (z) {
2444
- if (g === "low") {
2445
- const I = r(i.value + z * S, t.min, t.range ? c.value : t.max);
2446
- i.value = I, s.value = !0, setTimeout(() => s.value = !1, 800);
2766
+ if (x === "low") {
2767
+ const H = c(s.value + z * A, t.min, t.range ? r.value : t.max);
2768
+ s.value = H, a.value = !0, setTimeout(() => a.value = !1, 800);
2447
2769
  } else {
2448
- const I = r(c.value + z * S, t.range ? i.value : t.max, t.max);
2449
- c.value = I, a.value = !0, setTimeout(() => a.value = !1, 800);
2770
+ const H = c(r.value + z * A, t.range ? s.value : t.max, t.max);
2771
+ r.value = H, i.value = !0, setTimeout(() => i.value = !1, 800);
2450
2772
  }
2451
- A();
2773
+ B();
2452
2774
  }
2453
- }, A = () => {
2454
- t.range ? (o("update:modelValue", [i.value, c.value]), o("change", [i.value, c.value])) : (o("update:modelValue", i.value), o("change", i.value));
2775
+ }, B = () => {
2776
+ t.range ? (o("update:modelValue", [s.value, r.value]), o("change", [s.value, r.value])) : (o("update:modelValue", s.value), o("change", s.value));
2455
2777
  };
2456
- Te(() => {
2457
- window.removeEventListener("pointermove", _), window.removeEventListener("pointerup", w);
2458
- }), q([() => t.min, () => t.max], () => {
2459
- i.value = r(i.value, t.min, t.max), c.value = r(c.value, t.min, t.max);
2778
+ Be(() => {
2779
+ window.removeEventListener("pointermove", w), window.removeEventListener("pointerup", y);
2780
+ }), X([() => t.min, () => t.max], () => {
2781
+ s.value = c(s.value, t.min, t.max), r.value = c(r.value, t.min, t.max);
2460
2782
  });
2461
2783
  const F = C(() => t.range);
2462
- return he(() => {
2463
- t.modelValue === void 0 && (t.range ? o("update:modelValue", [i.value, c.value]) : o("update:modelValue", i.value));
2464
- }), (g, b) => (v(), x("div", {
2784
+ return me(() => {
2785
+ t.modelValue === void 0 && (t.range ? o("update:modelValue", [s.value, r.value]) : o("update:modelValue", s.value));
2786
+ }), (x, k) => (f(), b("div", {
2465
2787
  class: "vj-slider",
2466
- onPointerdown: b[8] || (b[8] = de(() => {
2788
+ onPointerdown: k[8] || (k[8] = K(() => {
2467
2789
  }, ["stop"]))
2468
2790
  }, [
2469
- k("div", {
2791
+ V("div", {
2470
2792
  class: "track",
2471
2793
  ref_key: "track",
2472
2794
  ref: l,
2473
- onClick: h
2795
+ onClick: g
2474
2796
  }, [
2475
- k("div", {
2797
+ V("div", {
2476
2798
  class: "range",
2477
- style: Z(f.value)
2799
+ style: J(m.value)
2478
2800
  }, null, 4),
2479
- s.value ? (v(), x("div", {
2801
+ a.value ? (f(), b("div", {
2480
2802
  key: 0,
2481
2803
  class: "tooltip",
2482
- style: Z({ left: d.value.left })
2483
- }, D(i.value), 5)) : $("", !0),
2484
- k("button", {
2804
+ style: J({ left: d.value.left })
2805
+ }, D(s.value), 5)) : S("", !0),
2806
+ V("button", {
2485
2807
  class: "handle low",
2486
- style: Z(d.value),
2808
+ style: J(d.value),
2487
2809
  "aria-valuemin": e.min,
2488
2810
  "aria-valuemax": e.max,
2489
- "aria-valuenow": i.value,
2811
+ "aria-valuenow": s.value,
2490
2812
  "aria-label": F.value ? "Lower value" : "Value",
2491
- onPointerdown: b[0] || (b[0] = de((S) => V("low", S), ["prevent"])),
2492
- onFocus: b[1] || (b[1] = (S) => s.value = !0),
2493
- onBlur: b[2] || (b[2] = (S) => s.value = !1),
2494
- onKeydown: b[3] || (b[3] = de((S) => O("low", S), ["stop", "prevent"])),
2813
+ onPointerdown: k[0] || (k[0] = K((A) => h("low", A), ["prevent"])),
2814
+ onFocus: k[1] || (k[1] = (A) => a.value = !0),
2815
+ onBlur: k[2] || (k[2] = (A) => a.value = !1),
2816
+ onKeydown: k[3] || (k[3] = K((A) => L("low", A), ["stop", "prevent"])),
2495
2817
  role: "slider",
2496
2818
  tabindex: "0"
2497
- }, null, 44, ql),
2498
- F.value && a.value ? (v(), x("div", {
2819
+ }, null, 44, xa),
2820
+ F.value && i.value ? (f(), b("div", {
2499
2821
  key: 1,
2500
2822
  class: "tooltip",
2501
- style: Z({ left: m.value.left })
2502
- }, D(c.value), 5)) : $("", !0),
2503
- F.value ? (v(), x("button", {
2823
+ style: J({ left: v.value.left })
2824
+ }, D(r.value), 5)) : S("", !0),
2825
+ F.value ? (f(), b("button", {
2504
2826
  key: 2,
2505
2827
  class: "handle high",
2506
- style: Z(m.value),
2828
+ style: J(v.value),
2507
2829
  "aria-valuemin": e.min,
2508
2830
  "aria-valuemax": e.max,
2509
- "aria-valuenow": c.value,
2831
+ "aria-valuenow": r.value,
2510
2832
  "aria-label": "Upper value",
2511
- onPointerdown: b[4] || (b[4] = de((S) => V("high", S), ["prevent"])),
2512
- onFocus: b[5] || (b[5] = (S) => a.value = !0),
2513
- onBlur: b[6] || (b[6] = (S) => a.value = !1),
2514
- onKeydown: b[7] || (b[7] = de((S) => O("high", S), ["stop", "prevent"])),
2833
+ onPointerdown: k[4] || (k[4] = K((A) => h("high", A), ["prevent"])),
2834
+ onFocus: k[5] || (k[5] = (A) => i.value = !0),
2835
+ onBlur: k[6] || (k[6] = (A) => i.value = !1),
2836
+ onKeydown: k[7] || (k[7] = K((A) => L("high", A), ["stop", "prevent"])),
2515
2837
  role: "slider",
2516
2838
  tabindex: "0"
2517
- }, null, 44, Gl)) : $("", !0)
2839
+ }, null, 44, ka)) : S("", !0)
2518
2840
  ], 512)
2519
2841
  ], 32));
2520
2842
  }
2521
- }), Jl = /* @__PURE__ */ M(Yl, [["__scopeId", "data-v-d47c7475"]]), Ql = ["onFocusin", "onFocusout"], Zl = /* @__PURE__ */ B({
2843
+ }), Ca = /* @__PURE__ */ O(Va, [["__scopeId", "data-v-d47c7475"]]), Ea = ["onFocusin", "onFocusout"], La = /* @__PURE__ */ T({
2522
2844
  __name: "input-slider",
2523
2845
  props: {
2524
2846
  modelValue: {},
@@ -2531,19 +2853,20 @@ const $l = ["data-colspan", "data-newline"], Al = ["for"], Ol = { class: "form-f
2531
2853
  spanRow: { type: Boolean },
2532
2854
  error: {},
2533
2855
  labelPosition: {},
2856
+ appearance: {},
2534
2857
  min: {},
2535
2858
  max: {},
2536
2859
  step: {}
2537
2860
  },
2538
2861
  emits: ["update:modelValue", "input", "focus", "blur"],
2539
2862
  setup(e, { emit: n }) {
2540
- const t = e, o = n, l = t.modelValue === void 0 ? 0 : Number(t.modelValue), s = E(Number.isNaN(l) ? 0 : l), a = (r) => {
2541
- const i = typeof r == "number" ? r : Number(r ?? 0);
2542
- s.value = Number.isNaN(i) ? 0 : i, o("update:modelValue", s.value), o("input", s.value);
2863
+ const t = e, o = n, l = t.modelValue === void 0 ? 0 : Number(t.modelValue), a = E(Number.isNaN(l) ? 0 : l), i = (c) => {
2864
+ const s = typeof c == "number" ? c : Number(c ?? 0);
2865
+ a.value = Number.isNaN(s) ? 0 : s, o("update:modelValue", a.value), o("input", a.value);
2543
2866
  };
2544
- return (r, i) => (v(), j(Fe, {
2545
- modelValue: s.value,
2546
- "onUpdate:modelValue": a,
2867
+ return (c, s) => (f(), j(je, {
2868
+ modelValue: a.value,
2869
+ "onUpdate:modelValue": i,
2547
2870
  label: t.label,
2548
2871
  id: t.id,
2549
2872
  placeholder: " ",
@@ -2553,30 +2876,30 @@ const $l = ["data-colspan", "data-newline"], Al = ["for"], Ol = { class: "form-f
2553
2876
  spanRow: t.spanRow,
2554
2877
  error: t.error
2555
2878
  }, {
2556
- control: W(({ id: c, disabled: u, placeholder: d, onFocus: m, onBlur: f }) => [
2557
- k("div", {
2879
+ control: W(({ id: r, disabled: u, placeholder: d, onFocus: v, onBlur: m }) => [
2880
+ V("div", {
2558
2881
  class: "input-slider__control",
2559
- onFocusin: m,
2560
- onFocusout: f
2882
+ onFocusin: v,
2883
+ onFocusout: m
2561
2884
  }, [
2562
- P(Jl, {
2563
- id: c,
2564
- modelValue: s.value,
2565
- "onUpdate:modelValue": i[0] || (i[0] = (p) => s.value = p),
2885
+ P(Ca, {
2886
+ id: r,
2887
+ modelValue: a.value,
2888
+ "onUpdate:modelValue": s[0] || (s[0] = (p) => a.value = p),
2566
2889
  min: t.min,
2567
2890
  max: t.max,
2568
2891
  step: t.step,
2569
2892
  range: !1,
2570
2893
  disabled: u
2571
2894
  }, null, 8, ["id", "modelValue", "min", "max", "step", "disabled"])
2572
- ], 40, Ql)
2895
+ ], 40, Ea)
2573
2896
  ]),
2574
2897
  _: 1
2575
2898
  }, 8, ["modelValue", "label", "id", "disabled", "colspan", "newLine", "spanRow", "error"]));
2576
2899
  }
2577
- }), ea = /* @__PURE__ */ M(Zl, [["__scopeId", "data-v-051e6d17"]]), ta = { class: "textarea" }, na = ["value", "placeholder", "disabled", "rows"], oa = /* @__PURE__ */ B({
2900
+ }), $a = /* @__PURE__ */ O(La, [["__scopeId", "data-v-051e6d17"]]), Sa = { class: "textarea" }, Ra = ["value", "placeholder", "disabled", "rows"], Aa = /* @__PURE__ */ T({
2578
2901
  __name: "textarea",
2579
- props: /* @__PURE__ */ ue({
2902
+ props: /* @__PURE__ */ Z({
2580
2903
  icon: {},
2581
2904
  placeholder: {},
2582
2905
  disabled: { type: Boolean },
@@ -2586,46 +2909,46 @@ const $l = ["data-colspan", "data-newline"], Al = ["for"], Ol = { class: "form-f
2586
2909
  modelValue: {},
2587
2910
  modelModifiers: {}
2588
2911
  }),
2589
- emits: /* @__PURE__ */ ue(["focus", "blur"], ["update:modelValue"]),
2912
+ emits: /* @__PURE__ */ Z(["focus", "blur"], ["update:modelValue"]),
2590
2913
  setup(e, { emit: n }) {
2591
- const t = n, o = ye(e, "modelValue"), l = (c) => {
2592
- o.value = c.target.value;
2593
- }, s = () => {
2914
+ const t = n, o = ve(e, "modelValue"), l = (r) => {
2915
+ o.value = r.target.value;
2916
+ }, a = () => {
2594
2917
  o.value = "";
2595
- }, a = (c) => {
2596
- t("focus", c);
2597
- }, r = (c) => {
2598
- t("blur", c);
2599
- }, i = C(() => !o.value);
2600
- return (c, u) => {
2601
- const d = U("VjIcon");
2602
- return v(), x("div", ta, [
2603
- e.icon ? (v(), j(d, {
2918
+ }, i = (r) => {
2919
+ t("focus", r);
2920
+ }, c = (r) => {
2921
+ t("blur", r);
2922
+ }, s = C(() => !o.value);
2923
+ return (r, u) => {
2924
+ const d = N("VjIcon");
2925
+ return f(), b("div", Sa, [
2926
+ e.icon ? (f(), j(d, {
2604
2927
  key: 0,
2605
2928
  icon: e.icon,
2606
- size: R(X).S,
2929
+ size: $(q).S,
2607
2930
  class: "textarea-icon"
2608
- }, null, 8, ["icon", "size"])) : $("", !0),
2609
- k("textarea", {
2931
+ }, null, 8, ["icon", "size"])) : S("", !0),
2932
+ V("textarea", {
2610
2933
  value: o.value,
2611
2934
  onInput: l,
2612
- onFocus: a,
2613
- onBlur: r,
2935
+ onFocus: i,
2936
+ onBlur: c,
2614
2937
  placeholder: e.placeholder,
2615
2938
  disabled: e.disabled,
2616
2939
  rows: e.rows
2617
- }, null, 40, na),
2618
- e.clearable && !e.disabled ? (v(), j(d, {
2940
+ }, null, 40, Ra),
2941
+ e.clearable && !e.disabled ? (f(), j(d, {
2619
2942
  key: 1,
2620
- class: N(["clear-icon", { invisible: i.value }]),
2621
- icon: R(H).CLOSE,
2622
- size: R(X).S,
2623
- onClick: s
2624
- }, null, 8, ["class", "icon", "size"])) : $("", !0)
2943
+ class: I(["clear-icon", { invisible: s.value }]),
2944
+ icon: $(U).CLOSE,
2945
+ size: $(q).S,
2946
+ onClick: a
2947
+ }, null, 8, ["class", "icon", "size"])) : S("", !0)
2625
2948
  ]);
2626
2949
  };
2627
2950
  }
2628
- }), Zt = /* @__PURE__ */ M(oa, [["__scopeId", "data-v-2ea43716"]]), la = /* @__PURE__ */ B({
2951
+ }), an = /* @__PURE__ */ O(Aa, [["__scopeId", "data-v-2ea43716"]]), Ta = /* @__PURE__ */ T({
2629
2952
  __name: "input-text-area",
2630
2953
  props: {
2631
2954
  modelValue: {},
@@ -2638,22 +2961,23 @@ const $l = ["data-colspan", "data-newline"], Al = ["for"], Ol = { class: "form-f
2638
2961
  spanRow: { type: Boolean },
2639
2962
  error: {},
2640
2963
  labelPosition: {},
2964
+ appearance: {},
2641
2965
  rows: {}
2642
2966
  },
2643
2967
  emits: ["update:modelValue", "input", "focus", "blur"],
2644
2968
  setup(e, { emit: n }) {
2645
- const t = e, o = n, l = (u) => o("update:modelValue", u), s = (u) => o("input", u), a = (u) => o("focus", u), r = (u) => o("blur", u), i = (u) => {
2969
+ const t = e, o = n, l = (u) => o("update:modelValue", u), a = (u) => o("input", u), i = (u) => o("focus", u), c = (u) => o("blur", u), s = (u) => {
2646
2970
  l(u ?? "");
2647
- }, c = C(() => {
2971
+ }, r = C(() => {
2648
2972
  const u = t.modelValue;
2649
2973
  return u == null ? "" : String(u);
2650
2974
  });
2651
- return (u, d) => (v(), j(Fe, {
2975
+ return (u, d) => (f(), j(je, {
2652
2976
  modelValue: t.modelValue,
2653
2977
  "onUpdate:modelValue": l,
2654
- onInput: s,
2655
- onFocus: a,
2656
- onBlur: r,
2978
+ onInput: a,
2979
+ onFocus: i,
2980
+ onBlur: c,
2657
2981
  label: t.label,
2658
2982
  id: t.id,
2659
2983
  placeholder: t.placeholder,
@@ -2662,31 +2986,32 @@ const $l = ["data-colspan", "data-newline"], Al = ["for"], Ol = { class: "form-f
2662
2986
  newLine: t.newLine,
2663
2987
  spanRow: t.spanRow,
2664
2988
  labelPosition: t.labelPosition,
2665
- error: t.error
2989
+ error: t.error,
2990
+ appearance: t.appearance
2666
2991
  }, {
2667
- control: W(({ id: m, disabled: f, placeholder: p, onFocus: y, onBlur: V }) => [
2668
- P(Zt, {
2669
- id: m,
2670
- modelValue: c.value,
2671
- "onUpdate:modelValue": i,
2672
- onFocus: (w) => {
2673
- y(w), a(w);
2992
+ control: W(({ id: v, disabled: m, placeholder: p, onFocus: _, onBlur: h }) => [
2993
+ P(an, {
2994
+ id: v,
2995
+ modelValue: r.value,
2996
+ "onUpdate:modelValue": s,
2997
+ onFocus: (y) => {
2998
+ _(y), i(y);
2674
2999
  },
2675
- onBlur: (w) => {
2676
- V(w), r(w);
3000
+ onBlur: (y) => {
3001
+ h(y), c(y);
2677
3002
  },
2678
3003
  placeholder: p,
2679
- disabled: f,
3004
+ disabled: m,
2680
3005
  rows: t.rows,
2681
3006
  clearable: ""
2682
3007
  }, null, 8, ["id", "modelValue", "onFocus", "onBlur", "placeholder", "disabled", "rows"])
2683
3008
  ]),
2684
3009
  _: 1
2685
- }, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "labelPosition", "error"]));
3010
+ }, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "labelPosition", "error", "appearance"]));
2686
3011
  }
2687
- }), aa = { class: "input" }, sa = ["value", "type", "placeholder", "disabled"], ia = /* @__PURE__ */ B({
3012
+ }), Oa = { class: "input" }, Ba = ["value", "type", "placeholder", "disabled"], Da = /* @__PURE__ */ T({
2688
3013
  __name: "input",
2689
- props: /* @__PURE__ */ ue({
3014
+ props: /* @__PURE__ */ Z({
2690
3015
  icon: {},
2691
3016
  type: {},
2692
3017
  placeholder: {},
@@ -2696,45 +3021,45 @@ const $l = ["data-colspan", "data-newline"], Al = ["for"], Ol = { class: "form-f
2696
3021
  modelValue: {},
2697
3022
  modelModifiers: {}
2698
3023
  }),
2699
- emits: /* @__PURE__ */ ue(["focus", "blur"], ["update:modelValue"]),
3024
+ emits: /* @__PURE__ */ Z(["focus", "blur"], ["update:modelValue"]),
2700
3025
  setup(e, { emit: n }) {
2701
- const t = n, o = ye(e, "modelValue"), l = (c) => {
2702
- o.value = c.target.value;
2703
- }, s = () => {
3026
+ const t = n, o = ve(e, "modelValue"), l = (r) => {
3027
+ o.value = r.target.value;
3028
+ }, a = () => {
2704
3029
  o.value = "";
2705
- }, a = (c) => {
2706
- t("focus", c);
2707
- }, r = (c) => {
2708
- t("blur", c);
2709
- }, i = C(() => !o.value);
2710
- return (c, u) => {
2711
- const d = U("VjIcon");
2712
- return v(), x("div", aa, [
2713
- e.icon ? (v(), j(d, {
3030
+ }, i = (r) => {
3031
+ t("focus", r);
3032
+ }, c = (r) => {
3033
+ t("blur", r);
3034
+ }, s = C(() => !o.value);
3035
+ return (r, u) => {
3036
+ const d = N("VjIcon");
3037
+ return f(), b("div", Oa, [
3038
+ e.icon ? (f(), j(d, {
2714
3039
  key: 0,
2715
3040
  icon: e.icon,
2716
- size: R(X).S
2717
- }, null, 8, ["icon", "size"])) : $("", !0),
2718
- k("input", {
3041
+ size: $(q).S
3042
+ }, null, 8, ["icon", "size"])) : S("", !0),
3043
+ V("input", {
2719
3044
  value: o.value,
2720
3045
  onInput: l,
2721
- onFocus: a,
2722
- onBlur: r,
3046
+ onFocus: i,
3047
+ onBlur: c,
2723
3048
  type: e.type,
2724
3049
  placeholder: e.placeholder,
2725
3050
  disabled: e.disabled
2726
- }, null, 40, sa),
2727
- e.clearable && !e.disabled ? (v(), j(d, {
3051
+ }, null, 40, Ba),
3052
+ e.clearable && !e.disabled ? (f(), j(d, {
2728
3053
  key: 1,
2729
- class: N(["clear-icon", { invisible: i.value }]),
2730
- icon: R(H).CLOSE,
2731
- size: R(X).S,
2732
- onClick: s
2733
- }, null, 8, ["class", "icon", "size"])) : $("", !0)
3054
+ class: I(["clear-icon", { invisible: s.value }]),
3055
+ icon: $(U).CLOSE,
3056
+ size: $(q).S,
3057
+ onClick: a
3058
+ }, null, 8, ["class", "icon", "size"])) : S("", !0)
2734
3059
  ]);
2735
3060
  };
2736
3061
  }
2737
- }), en = /* @__PURE__ */ M(ia, [["__scopeId", "data-v-3187d49c"]]), ra = /* @__PURE__ */ B({
3062
+ }), sn = /* @__PURE__ */ O(Da, [["__scopeId", "data-v-3187d49c"]]), Ma = /* @__PURE__ */ T({
2738
3063
  __name: "input-text",
2739
3064
  props: {
2740
3065
  modelValue: {},
@@ -2747,19 +3072,20 @@ const $l = ["data-colspan", "data-newline"], Al = ["for"], Ol = { class: "form-f
2747
3072
  spanRow: { type: Boolean },
2748
3073
  error: {},
2749
3074
  labelPosition: {},
3075
+ appearance: {},
2750
3076
  type: {}
2751
3077
  },
2752
3078
  emits: ["update:modelValue", "input", "focus", "blur"],
2753
3079
  setup(e, { emit: n }) {
2754
- const t = n, o = (i) => t("update:modelValue", i), l = (i) => t("input", i), s = (i) => t("focus", i), a = (i) => t("blur", i), r = (i) => {
2755
- o(i ?? "");
3080
+ const t = n, o = (s) => t("update:modelValue", s), l = (s) => t("input", s), a = (s) => t("focus", s), i = (s) => t("blur", s), c = (s) => {
3081
+ o(s ?? "");
2756
3082
  };
2757
- return (i, c) => (v(), j(Fe, {
3083
+ return (s, r) => (f(), j(je, {
2758
3084
  modelValue: e.modelValue,
2759
3085
  "onUpdate:modelValue": o,
2760
3086
  onInput: l,
2761
- onFocus: s,
2762
- onBlur: a,
3087
+ onFocus: a,
3088
+ onBlur: i,
2763
3089
  label: e.label,
2764
3090
  id: e.id,
2765
3091
  placeholder: e.placeholder,
@@ -2768,29 +3094,33 @@ const $l = ["data-colspan", "data-newline"], Al = ["for"], Ol = { class: "form-f
2768
3094
  newLine: e.newLine,
2769
3095
  spanRow: e.spanRow,
2770
3096
  error: e.error,
2771
- labelPosition: e.labelPosition
3097
+ labelPosition: e.labelPosition,
3098
+ appearance: e.appearance
2772
3099
  }, {
2773
- control: W(({ id: u, disabled: d, placeholder: m, onFocus: f, onBlur: p }) => [
2774
- P(en, {
3100
+ control: W(({ id: u, disabled: d, placeholder: v, onFocus: m, onBlur: p }) => [
3101
+ P(sn, {
2775
3102
  id: u,
2776
3103
  modelValue: e.modelValue,
2777
3104
  type: e.type,
2778
- "onUpdate:modelValue": r,
2779
- onFocus: (y) => {
2780
- f(y), s(y);
3105
+ "onUpdate:modelValue": c,
3106
+ onFocus: (_) => {
3107
+ m(_), a(_);
2781
3108
  },
2782
- onBlur: (y) => {
2783
- p(y), a(y);
3109
+ onBlur: (_) => {
3110
+ p(_), i(_);
2784
3111
  },
2785
- placeholder: m,
3112
+ placeholder: v,
2786
3113
  disabled: d,
2787
3114
  clearable: ""
2788
3115
  }, null, 8, ["id", "modelValue", "type", "onFocus", "onBlur", "placeholder", "disabled"])
2789
3116
  ]),
2790
3117
  _: 1
2791
- }, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error", "labelPosition"]));
3118
+ }, 8, ["modelValue", "label", "id", "placeholder", "disabled", "colspan", "newLine", "spanRow", "error", "labelPosition", "appearance"]));
2792
3119
  }
2793
- }), ca = { class: "shell-navigation-item" }, ua = { class: "shell-navigation-item-label" }, da = /* @__PURE__ */ B({
3120
+ }), Pa = { class: "shell-navigation-item" }, ja = { class: "shell-navigation-item-label" }, Fa = {
3121
+ key: 1,
3122
+ class: "shell-navigation-item-link"
3123
+ }, za = { class: "shell-navigation-item-label" }, Ia = /* @__PURE__ */ T({
2794
3124
  __name: "shell-navigation-item",
2795
3125
  props: {
2796
3126
  label: {},
@@ -2799,9 +3129,10 @@ const $l = ["data-colspan", "data-newline"], Al = ["for"], Ol = { class: "form-f
2799
3129
  },
2800
3130
  setup(e) {
2801
3131
  return (n, t) => {
2802
- const o = U("VjIcon"), l = U("RouterLink");
2803
- return v(), x("li", ca, [
2804
- P(l, {
3132
+ const o = N("VjIcon"), l = N("RouterLink");
3133
+ return f(), b("li", Pa, [
3134
+ e.to ? (f(), j(l, {
3135
+ key: 0,
2805
3136
  to: e.to,
2806
3137
  class: "shell-navigation-item-link"
2807
3138
  }, {
@@ -2810,45 +3141,52 @@ const $l = ["data-colspan", "data-newline"], Al = ["for"], Ol = { class: "form-f
2810
3141
  icon: e.icon,
2811
3142
  class: "shell-navigation-item-icon"
2812
3143
  }, null, 8, ["icon"]),
2813
- k("label", ua, D(e.label), 1)
3144
+ V("label", ja, D(e.label), 1)
2814
3145
  ]),
2815
3146
  _: 1
2816
- }, 8, ["to"])
3147
+ }, 8, ["to"])) : (f(), b("button", Fa, [
3148
+ P(o, {
3149
+ icon: e.icon,
3150
+ class: "shell-navigation-item-icon"
3151
+ }, null, 8, ["icon"]),
3152
+ V("label", za, D(e.label), 1)
3153
+ ]))
2817
3154
  ]);
2818
3155
  };
2819
3156
  }
2820
- }), fa = /* @__PURE__ */ M(da, [["__scopeId", "data-v-d5c087be"]]), ma = { class: "navigation-top" }, va = { class: "navigation-bottom" }, pa = /* @__PURE__ */ B({
3157
+ }), Ha = /* @__PURE__ */ O(Ia, [["__scopeId", "data-v-eb7dcd0c"]]), Ua = { class: "navigation-top" }, Wa = {
3158
+ key: 0,
3159
+ class: "navigation-bottom"
3160
+ }, Ka = /* @__PURE__ */ T({
2821
3161
  __name: "shell-navigation",
2822
3162
  setup(e) {
2823
- const n = $t(_a, ka());
2824
- console.log("navigationProvider", n);
2825
- const t = C(() => n.showLabels);
3163
+ const n = Dt(Qa, ei()), t = C(() => n.showLabels);
2826
3164
  return (o, l) => {
2827
- const s = U("VjShellNavigationItem");
2828
- return v(), x("nav", {
2829
- class: N(["shell-navigation", { "with-labels": t.value }])
3165
+ const a = N("VjShellNavigationItem");
3166
+ return f(), b("nav", {
3167
+ class: I(["shell-navigation", { "with-labels": t.value }])
2830
3168
  }, [
2831
- k("ul", ma, [
2832
- R(n).hasParent && R(n).backRoute.value ? (v(), j(s, {
3169
+ V("ul", Ua, [
3170
+ $(n).hasParent && $(n).backRoute.value ? (f(), j(a, {
2833
3171
  key: 0,
2834
- to: R(n).backRoute.value,
3172
+ to: $(n).backRoute.value,
2835
3173
  label: "BACK",
2836
- icon: R(H).HOME
2837
- }, null, 8, ["to", "icon"])) : $("", !0),
2838
- (v(!0), x(ge, null, Xe(R(n).childRoutes.value, (a) => (v(), j(s, {
2839
- key: a.name,
2840
- to: { name: a.name },
2841
- label: a.meta.label,
2842
- icon: a.meta.icon ?? R(H).HOME
3174
+ icon: $(U).HOME
3175
+ }, null, 8, ["to", "icon"])) : S("", !0),
3176
+ (f(!0), b(ne, null, Se($(n).childRoutes.value, (i) => (f(), j(a, {
3177
+ key: i.name,
3178
+ to: { name: i.name },
3179
+ label: i.meta.label,
3180
+ icon: i.meta.icon ?? $(U).HOME
2843
3181
  }, null, 8, ["to", "label", "icon"]))), 128))
2844
3182
  ]),
2845
- k("ul", va, [
2846
- T(o.$slots, "fixed", {}, void 0, !0)
2847
- ])
3183
+ o.$slots.fixed ? (f(), b("ul", Wa, [
3184
+ M(o.$slots, "fixed", {}, void 0, !0)
3185
+ ])) : S("", !0)
2848
3186
  ], 2);
2849
3187
  };
2850
3188
  }
2851
- }), tn = /* @__PURE__ */ M(pa, [["__scopeId", "data-v-0f990f5b"]]), ha = { class: "shell" }, ga = { class: "shell-title" }, ba = ["src"], ya = { class: "header-actions" }, wa = /* @__PURE__ */ B({
3189
+ }), rn = /* @__PURE__ */ O(Ka, [["__scopeId", "data-v-306cfc22"]]), Xa = { class: "shell" }, Na = { class: "shell-title" }, qa = ["src"], Ga = { class: "header-actions" }, Ya = /* @__PURE__ */ T({
2852
3190
  __name: "shell",
2853
3191
  props: {
2854
3192
  title: {},
@@ -2856,90 +3194,98 @@ const $l = ["data-colspan", "data-newline"], Al = ["for"], Ol = { class: "form-f
2856
3194
  showNavigation: { type: Boolean }
2857
3195
  },
2858
3196
  setup(e) {
2859
- const n = Sa(), t = Je(n, "asideComponent"), o = Je(n, "hasAside"), l = Je(n, "asideData"), s = C(() => {
2860
- const a = l.value;
2861
- return a && typeof a == "object" ? a : {};
3197
+ const n = ai(), t = Je(n, "asideComponent"), o = Je(n, "hasAside"), l = Je(n, "asideData"), a = C(() => {
3198
+ const i = l.value;
3199
+ return i && typeof i == "object" ? i : {};
2862
3200
  });
2863
- return (a, r) => {
2864
- const i = U("router-view");
2865
- return v(), x("div", ha, [
2866
- k("header", null, [
2867
- k("span", ga, [
2868
- e.icon ? (v(), x("img", {
3201
+ return (i, c) => {
3202
+ const s = N("router-view");
3203
+ return f(), b("div", Xa, [
3204
+ V("header", null, [
3205
+ V("span", Na, [
3206
+ e.icon ? (f(), b("img", {
2869
3207
  key: 0,
2870
3208
  src: e.icon,
2871
3209
  alt: "Shell Icon"
2872
- }, null, 8, ba)) : $("", !0),
2873
- k("h1", null, D(e.title), 1)
3210
+ }, null, 8, qa)) : S("", !0),
3211
+ V("h1", null, D(e.title), 1)
2874
3212
  ]),
2875
- k("div", ya, [
2876
- T(a.$slots, "header-actions", {}, void 0, !0)
3213
+ V("div", Ga, [
3214
+ M(i.$slots, "header-actions", {}, void 0, !0)
2877
3215
  ])
2878
3216
  ]),
2879
- k("div", {
2880
- class: N(["shell-content", { "with-navigation": e.showNavigation }])
3217
+ V("div", {
3218
+ class: I(["shell-content", { "with-navigation": e.showNavigation }])
2881
3219
  }, [
2882
- e.showNavigation ? (v(), j(R(tn), { key: 0 })) : $("", !0),
2883
- k("main", null, [
2884
- T(a.$slots, "default", {}, () => [
2885
- P(i)
3220
+ e.showNavigation ? (f(), j($(rn), { key: 0 }, lt({ _: 2 }, [
3221
+ i.$slots?.["navigation-fixed"] ? {
3222
+ name: "fixed",
3223
+ fn: W(() => [
3224
+ M(i.$slots, "navigation-fixed", {}, void 0, !0)
3225
+ ]),
3226
+ key: "0"
3227
+ } : void 0
3228
+ ]), 1024)) : S("", !0),
3229
+ V("main", null, [
3230
+ M(i.$slots, "default", {}, () => [
3231
+ P(s)
2886
3232
  ], !0)
2887
3233
  ]),
2888
- k("aside", {
2889
- class: N({ "aside-visible": o.value })
3234
+ V("aside", {
3235
+ class: I({ "aside-visible": o.value })
2890
3236
  }, [
2891
- (v(), j(St(t.value), fn(mn(s.value)), null, 16))
3237
+ (f(), j(Ot(t.value), gn(bn(a.value)), null, 16))
2892
3238
  ], 2)
2893
3239
  ], 2),
2894
- r[0] || (r[0] = k("footer", null, null, -1))
3240
+ c[0] || (c[0] = V("footer", null, null, -1))
2895
3241
  ]);
2896
3242
  };
2897
3243
  }
2898
- }), xa = /* @__PURE__ */ M(wa, [["__scopeId", "data-v-336560c3"]]), _a = "navigationProvider";
2899
- function Va(e) {
3244
+ }), Ja = /* @__PURE__ */ O(Ya, [["__scopeId", "data-v-4dfd0097"]]), Qa = "navigationProvider";
3245
+ function Za(e) {
2900
3246
  return !!e.meta && "icon" in e.meta && "label" in e.meta;
2901
3247
  }
2902
- const ka = () => {
2903
- const e = gn(), n = bn(), t = !0, o = C(() => {
3248
+ const ei = () => {
3249
+ const e = xn(), n = kn(), t = !0, o = C(() => {
2904
3250
  const u = e.getRoutes();
2905
- return u.filter((d) => d.path !== "/" && !u.some((m) => m.children?.some((f) => f.name === d.name)));
3251
+ return u.filter((d) => d.path !== "/" && !u.some((v) => v.children?.some((m) => m.name === d.name)));
2906
3252
  }), l = C(() => {
2907
3253
  const u = n.matched;
2908
3254
  return u.length ? u[u.length - 1] : null;
2909
- }), s = C(() => {
3255
+ }), a = C(() => {
2910
3256
  const u = n.matched;
2911
3257
  return u.length > 1 ? u[u.length - 2] : null;
2912
- }), a = C(() => !!(l.value?.children?.length || s.value)), r = C(() => l.value?.children?.length ? l.value : s.value?.children?.length ? s.value : null), i = C(() => {
2913
- if (!r.value) return null;
2914
- const d = e.getRoutes().find((m) => m.children?.some((f) => f.name === r.value.name));
3258
+ }), i = C(() => !!(l.value?.children?.length || a.value)), c = C(() => l.value?.children?.length ? l.value : a.value?.children?.length ? a.value : null), s = C(() => {
3259
+ if (!c.value) return null;
3260
+ const d = e.getRoutes().find((v) => v.children?.some((m) => m.name === c.value.name));
2915
3261
  return d ? { name: d.name } : { path: "/" };
2916
- }), c = C(() => {
3262
+ }), r = C(() => {
2917
3263
  let u = [];
2918
- return n.path === "/" ? u = o.value : l.value?.children?.length ? u = l.value.children : s.value?.children?.length ? u = s.value.children : u = o.value, u.filter(Va);
3264
+ return n.path === "/" ? u = o.value : l.value?.children?.length ? u = l.value.children : a.value?.children?.length ? u = a.value.children : u = o.value, u.filter(Za);
2919
3265
  });
2920
3266
  return {
2921
- hasParent: a,
2922
- backRoute: i,
2923
- childRoutes: c,
3267
+ hasParent: i,
3268
+ backRoute: s,
3269
+ childRoutes: r,
2924
3270
  showLabels: t
2925
3271
  };
2926
- }, Fa = (e, n = !0, t = void 0) => {
2927
- const o = vn(e) ? e : E(e), l = !!t, s = E(t || null);
3272
+ }, gi = (e, n = !0, t = void 0) => {
3273
+ const o = yn(e) ? e : E(e), l = !!t, a = E(t || null);
2928
3274
  return {
2929
3275
  hasParent: l,
2930
- backRoute: s,
3276
+ backRoute: a,
2931
3277
  childRoutes: o,
2932
3278
  showLabels: n
2933
3279
  };
2934
- }, rt = E(!1), ct = E(null), ut = E(null);
2935
- let Ce = [];
2936
- const nn = (e) => (Ce.push(e), () => {
2937
- Ce = Ce.filter((n) => n !== e);
2938
- }), Ca = (e, n) => (Ce = [], ct.value = e, ut.value = n ?? null, rt.value = !0, {
2939
- onClose: (t) => nn(t)
2940
- }), Ea = (e) => {
3280
+ }, ft = E(!1), vt = E(null), mt = E(null);
3281
+ let Ee = [];
3282
+ const cn = (e) => (Ee.push(e), () => {
3283
+ Ee = Ee.filter((n) => n !== e);
3284
+ }), ti = (e, n) => (Ee = [], vt.value = e, mt.value = n ?? null, ft.value = !0, {
3285
+ onClose: (t) => cn(t)
3286
+ }), ni = (e) => {
2941
3287
  try {
2942
- Ce.forEach((n) => {
3288
+ Ee.forEach((n) => {
2943
3289
  try {
2944
3290
  n(e);
2945
3291
  } catch (t) {
@@ -2947,66 +3293,26 @@ const nn = (e) => (Ce.push(e), () => {
2947
3293
  }
2948
3294
  });
2949
3295
  } finally {
2950
- rt.value = !1, setTimeout(Ra, 1e3);
2951
- }
2952
- }, Ra = () => {
2953
- Ce = [], ct.value = null, ut.value = null;
2954
- }, La = {
2955
- asideComponent: ct,
2956
- asideData: ut,
2957
- showAside: Ca,
2958
- closeAside: Ea,
2959
- onAsideClose: nn,
2960
- hasAside: rt
2961
- }, Sa = () => La, Da = (e, n) => {
3296
+ ft.value = !1, setTimeout(oi, 1e3);
3297
+ }
3298
+ }, oi = () => {
3299
+ Ee = [], vt.value = null, mt.value = null;
3300
+ }, li = {
3301
+ asideComponent: vt,
3302
+ asideData: mt,
3303
+ showAside: ti,
3304
+ closeAside: ni,
3305
+ onAsideClose: cn,
3306
+ hasAside: ft
3307
+ }, ai = () => li, bi = (e, n) => {
2962
3308
  let t = null;
2963
3309
  return (...l) => {
2964
3310
  t && clearTimeout(t), t = setTimeout(() => {
2965
3311
  e(...l);
2966
3312
  }, n);
2967
3313
  };
2968
- }, za = () => {
2969
- const e = E(!1), n = E(null), t = () => {
2970
- n.value = null;
2971
- };
2972
- class o {
2973
- inner;
2974
- defaultValue;
2975
- handlers = [];
2976
- constructor(a, r) {
2977
- this.inner = a, this.defaultValue = r;
2978
- }
2979
- onError(a) {
2980
- return this.handlers.push(a), this;
2981
- }
2982
- async exec() {
2983
- n.value = null, e.value = !0;
2984
- try {
2985
- return await this.inner();
2986
- } catch (a) {
2987
- n.value = a;
2988
- for (const r of this.handlers)
2989
- try {
2990
- r(a);
2991
- } catch (i) {
2992
- console.error("onError handler failed", i);
2993
- }
2994
- if (this.defaultValue !== void 0) return this.defaultValue;
2995
- throw a;
2996
- } finally {
2997
- e.value = !1;
2998
- }
2999
- }
3000
- then(a, r) {
3001
- return this.exec().then(a, r);
3002
- }
3003
- }
3004
- function l(s, a) {
3005
- return new o(s, a);
3006
- }
3007
- return { run: l, running: e, error: n, clearError: t };
3008
3314
  };
3009
- class $a {
3315
+ class ii {
3010
3316
  containerElement = null;
3011
3317
  apps = [];
3012
3318
  ensureContainer() {
@@ -3016,15 +3322,15 @@ class $a {
3016
3322
  return new Promise((t) => {
3017
3323
  const o = this.ensureContainer(), l = document.createElement("div");
3018
3324
  o.appendChild(l);
3019
- let s = !1;
3020
- const a = () => {
3021
- s || (s = !0, setTimeout(() => {
3022
- const i = this.apps.find((c) => c.element === l);
3023
- i && (i.app.unmount(), this.apps = this.apps.filter((c) => c !== i)), l.remove();
3325
+ let a = !1;
3326
+ const i = () => {
3327
+ a || (a = !0, setTimeout(() => {
3328
+ const s = this.apps.find((r) => r.element === l);
3329
+ s && (s.app.unmount(), this.apps = this.apps.filter((r) => r !== s)), l.remove();
3024
3330
  }, 300));
3025
- }, r = pn({
3331
+ }, c = wn({
3026
3332
  setup() {
3027
- return () => hn(Tt, {
3333
+ return () => _n(at, {
3028
3334
  modelValue: !0,
3029
3335
  title: n.title,
3030
3336
  message: n.message,
@@ -3037,18 +3343,18 @@ class $a {
3037
3343
  closeOnBackdrop: n.closeOnBackdrop ?? !1,
3038
3344
  closeOnEscape: n.closeOnEscape ?? !0,
3039
3345
  onConfirm: () => {
3040
- t(!0), a();
3346
+ t(!0), i();
3041
3347
  },
3042
3348
  onCancel: () => {
3043
- t(!1), a();
3349
+ t(!1), i();
3044
3350
  },
3045
3351
  onClose: () => {
3046
- s || t(!1), a();
3352
+ a || t(!1), i();
3047
3353
  }
3048
3354
  });
3049
3355
  }
3050
3356
  });
3051
- r.component("VjCard", Ot), r.component("VjIcon", Be), r.component("VjButton", At), r.mount(l), this.apps.push({ app: r, element: l });
3357
+ c.component("VjCard", et), c.component("VjIcon", we), c.component("VjButton", Mt), c.mount(l), this.apps.push({ app: c, element: l });
3052
3358
  });
3053
3359
  }
3054
3360
  confirm(n) {
@@ -3076,62 +3382,177 @@ class $a {
3076
3382
  }), this.apps = [];
3077
3383
  }
3078
3384
  }
3079
- const Aa = new $a();
3080
- function Ia() {
3081
- return Aa;
3385
+ const si = new ii();
3386
+ function yi() {
3387
+ return si;
3082
3388
  }
3083
- const Na = {
3389
+ const wi = () => {
3390
+ const e = E(!1), n = E(null), t = () => {
3391
+ n.value = null;
3392
+ };
3393
+ class o {
3394
+ inner;
3395
+ defaultValue;
3396
+ handlers = [];
3397
+ constructor(i, c) {
3398
+ this.inner = i, this.defaultValue = c;
3399
+ }
3400
+ onError(i) {
3401
+ return this.handlers.push(i), this;
3402
+ }
3403
+ async exec() {
3404
+ n.value = null, e.value = !0;
3405
+ try {
3406
+ return await this.inner();
3407
+ } catch (i) {
3408
+ n.value = i;
3409
+ for (const c of this.handlers)
3410
+ try {
3411
+ c(i);
3412
+ } catch (s) {
3413
+ console.error("onError handler failed", s);
3414
+ }
3415
+ if (this.defaultValue !== void 0) return this.defaultValue;
3416
+ throw i;
3417
+ } finally {
3418
+ e.value = !1;
3419
+ }
3420
+ }
3421
+ then(i, c) {
3422
+ return this.exec().then(i, c);
3423
+ }
3424
+ }
3425
+ function l(a, i) {
3426
+ return new o(a, i);
3427
+ }
3428
+ return { run: l, running: e, error: n, clearError: t };
3429
+ };
3430
+ class ri {
3431
+ notifications = E([]);
3432
+ notificationIdCounter = 0;
3433
+ /**
3434
+ * Gibt die reaktive Liste der Notifications zurück
3435
+ */
3436
+ getNotifications() {
3437
+ return this.notifications;
3438
+ }
3439
+ /**
3440
+ * Zeigt eine Notification an
3441
+ * @param type - Der Typ der Notification (info, warning, error, success)
3442
+ * @param message - Die Nachricht
3443
+ * @param duration - Optionale Dauer in ms (Standard: 5000ms, errors bleiben stehen)
3444
+ * @returns Die ID der Notification
3445
+ */
3446
+ show(n, t, o, l) {
3447
+ const a = `notification-${++this.notificationIdCounter}-${Date.now()}`, i = n === "error" ? void 0 : l ?? 5e3, c = {
3448
+ id: a,
3449
+ type: n,
3450
+ title: t,
3451
+ message: o,
3452
+ duration: i
3453
+ };
3454
+ return this.notifications.value.unshift(c), i && setTimeout(() => {
3455
+ this.remove(a);
3456
+ }, i), a;
3457
+ }
3458
+ /**
3459
+ * Zeigt eine Info-Notification
3460
+ */
3461
+ info(n, t, o) {
3462
+ return this.show("info", n, t, o);
3463
+ }
3464
+ /**
3465
+ * Zeigt eine Warning-Notification
3466
+ */
3467
+ warning(n, t, o) {
3468
+ return this.show("warning", n, t, o);
3469
+ }
3470
+ /**
3471
+ * Zeigt eine Error-Notification (bleibt stehen bis manuell geschlossen)
3472
+ */
3473
+ error(n, t) {
3474
+ return this.show("error", n, t);
3475
+ }
3476
+ /**
3477
+ * Zeigt eine Success-Notification
3478
+ */
3479
+ success(n, t, o) {
3480
+ return this.show("success", n, t, o);
3481
+ }
3482
+ /**
3483
+ * Entfernt eine spezifische Notification
3484
+ */
3485
+ remove(n) {
3486
+ const t = this.notifications.value.findIndex((o) => o.id === n);
3487
+ t !== -1 && this.notifications.value.splice(t, 1);
3488
+ }
3489
+ /**
3490
+ * Entfernt alle Notifications
3491
+ */
3492
+ clearAll() {
3493
+ this.notifications.value = [];
3494
+ }
3495
+ }
3496
+ const _i = new ri(), xi = {
3084
3497
  install(e) {
3085
- e.component("VjButton", At), e.component("VjButtonBar", kn), e.component("VjCard", Ot), e.component("VjCarousel", jn), e.component("VjDotMenu", Po), e.component("VjIcon", Be), e.component("VjLinkButton", Fo), e.component("VjMenu", Xo), e.component("VjMenuAction", No), e.component("VjPage", dl), e.component("VjPaginator", vl), e.component("VjTab", Ll), e.component("VjTabView", El), e.component("VjDialog", Tt), e.component("VjInput", en), e.component("VjSelect", Qt), e.component("VjTextArea", Zt), e.component("VjFormField", Fe), e.component("VjFormLayout", jl), e.component("VjFormSection", zl), e.component("VjInputText", ra), e.component("VjInputTextArea", la), e.component("VjInputSelect", Kl), e.component("VjInputSlider", ea), e.component("VjShellNavigation", tn), e.component("VjShellNavigationItem", fa), e.component("VjShell", xa), e.component("VjSearchField", bl), e.component("VjSeparator", wl), e.directive("focus", Go), e.directive("resize", Yo), e.directive("compact", Ko);
3498
+ e.component("VjButton", Mt), e.component("VjButtonBar", Sn), e.component("VjCard", et), e.component("VjChip", Pt), e.component("VjChipGroup", jt), e.component("VjChipSelector", vo), e.component("VjCarousel", et), e.component("VjCheckbox", Hn), e.component("VjDotMenu", sl), e.component("VjDialog", at), e.component("VjIcon", we), e.component("VjLinkButton", cl), e.component("VjMenu", gl), e.component("VjMenuAction", vl), e.component("VjPage", Dl), e.component("VjPaginator", jl), e.component("VjTab", Ql), e.component("VjTabView", Yl), e.component("VjSkeleton", oa), e.component("VjSpinner", nn), e.component("VjInput", sn), e.component("VjSelect", ln), e.component("VjTextArea", an), e.component("VjFormField", je), e.component("VjFormLayout", da), e.component("VjFormSection", ma), e.component("VjInputText", Ma), e.component("VjInputTextArea", Ta), e.component("VjInputSelect", _a), e.component("VjInputSlider", $a), e.component("VjShellNavigation", rn), e.component("VjShellNavigationItem", Ha), e.component("VjShell", Ja), e.component("VjSearchField", Hl), e.component("VjSeparator", Wl), e.directive("focus", wl), e.directive("resize", _l), e.directive("compact", bl);
3086
3499
  }
3087
3500
  };
3088
3501
  export {
3089
- At as Button,
3090
- kn as ButtonBar,
3091
- Ot as Card,
3092
- jn as Carousel,
3093
- Ma as Checkbox,
3094
- Tt as Dialog,
3095
- Po as DotMenu,
3096
- Fe as FormField,
3097
- jl as FormLayout,
3098
- zl as FormSection,
3099
- Be as Icon,
3100
- H as IconNames,
3101
- X as IconSize,
3102
- en as Input,
3103
- Kl as InputSelect,
3104
- ea as InputSlider,
3105
- ra as InputText,
3106
- la as InputTextArea,
3107
- Fo as LinkButton,
3108
- Xo as Menu,
3109
- No as MenuAction,
3110
- dl as Page,
3111
- vl as Paginator,
3112
- bl as SearchField,
3113
- Qt as Select,
3114
- wl as Separator,
3115
- xa as Shell,
3116
- tn as ShellNavigation,
3117
- fa as ShellNavigationItem,
3118
- Ll as Tab,
3119
- El as TabView,
3120
- Zt as TextArea,
3121
- Na as VjComponents,
3122
- _a as VjNavigationProviderKey,
3123
- Ko as compactDirective,
3124
- Pa as configureVueUI,
3125
- Aa as dialogService,
3126
- Sl as getVueUIConfig,
3127
- ja as resetVueUIConfig,
3128
- Sa as useAsideService,
3129
- Da as useDebounce,
3130
- Ia as useDialog,
3131
- za as useFlow,
3132
- ka as useRouterNavigationProvider,
3133
- Fa as useStaticNavigationProvider,
3134
- Go as vFocusFirst,
3135
- ol as vLoading,
3136
- Yo as vResize
3502
+ Mt as Button,
3503
+ Sn as ButtonBar,
3504
+ et as Card,
3505
+ fi as Carousel,
3506
+ Hn as Checkbox,
3507
+ Pt as Chip,
3508
+ jt as ChipGroup,
3509
+ vo as ChipSelector,
3510
+ at as Dialog,
3511
+ sl as DotMenu,
3512
+ mi as EditableLabel,
3513
+ je as FormField,
3514
+ da as FormLayout,
3515
+ ma as FormSection,
3516
+ we as Icon,
3517
+ U as IconNames,
3518
+ q as IconSize,
3519
+ sn as Input,
3520
+ _a as InputSelect,
3521
+ $a as InputSlider,
3522
+ Ma as InputText,
3523
+ Ta as InputTextArea,
3524
+ cl as LinkButton,
3525
+ gl as Menu,
3526
+ vl as MenuAction,
3527
+ Dl as Page,
3528
+ jl as Paginator,
3529
+ vi as Radio,
3530
+ Hl as SearchField,
3531
+ ln as Select,
3532
+ Wl as Separator,
3533
+ Ja as Shell,
3534
+ rn as ShellNavigation,
3535
+ Ha as ShellNavigationItem,
3536
+ oa as Skeleton,
3537
+ nn as Spinner,
3538
+ Ql as Tab,
3539
+ Yl as TabView,
3540
+ an as TextArea,
3541
+ xi as VjComponents,
3542
+ Qa as VjNavigationProviderKey,
3543
+ bl as compactDirective,
3544
+ pi as configureVueUI,
3545
+ si as dialogService,
3546
+ Tt as getVueUIConfig,
3547
+ _i as notificationService,
3548
+ hi as resetVueUIConfig,
3549
+ ai as useAsideService,
3550
+ bi as useDebounce,
3551
+ yi as useDialog,
3552
+ wi as useFlow,
3553
+ ei as useRouterNavigationProvider,
3554
+ gi as useStaticNavigationProvider,
3555
+ wl as vFocusFirst,
3556
+ Ll as vLoading,
3557
+ _l as vResize
3137
3558
  };