@opens/ui 1.0.13 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
- import { defineComponent as k, ref as D, watch as qe, openBlock as b, createElementBlock as $, createElementVNode as c, toDisplayString as S, normalizeClass as A, withDirectives as q, withKeys as ke, vModelDynamic as ft, renderSlot as x, vShow as Me, pushScopeId as It, popScopeId as Ft, nextTick as Vt, createBlock as pe, normalizeProps as jt, guardReactiveProps as Wt, withScopeId as qt, resolveComponent as Ee, normalizeStyle as De, Fragment as mt, createCommentVNode as de, withCtx as Z, createVNode as ge, unref as L, createTextVNode as Pe, computed as re, resolveDirective as gt, renderList as Gt, mergeModels as Ut, useModel as Yt, Teleport as Kt, withModifiers as vt } from "vue";
2
- const Xt = { class: "simple-input" }, Jt = { class: "yu-flex yu-h-full yu-pl-2" }, Qt = { class: "material-icons yu-text-gray-700 yu-my-auto" }, Zt = ["placeholder", "type", "maxlength"], eo = /* @__PURE__ */ k({
1
+ import { defineComponent as k, ref as M, watch as Ze, openBlock as m, createElementBlock as $, createElementVNode as h, toDisplayString as P, normalizeClass as C, withDirectives as U, withKeys as Me, vModelDynamic as Tt, renderSlot as b, vShow as We, pushScopeId as io, popScopeId as so, nextTick as ro, createBlock as ue, normalizeProps as lo, guardReactiveProps as ao, withScopeId as uo, resolveComponent as ve, normalizeStyle as Ie, Fragment as St, createCommentVNode as ee, mergeProps as Pt, withCtx as Y, createVNode as pe, createApp as co, h as po, unref as H, createTextVNode as Ce, computed as J, resolveDirective as Bt, mergeModels as ho, useModel as qe, renderList as yo, Teleport as fo, withModifiers as mo } from "vue";
2
+ const go = { class: "simple-input" }, vo = { class: "yu-flex yu-h-full yu-pl-2" }, wo = { class: "material-icons yu-text-gray-700 yu-my-auto" }, bo = ["placeholder", "type", "maxlength"], xo = /* @__PURE__ */ k({
3
3
  __name: "icon-text-input",
4
4
  props: {
5
5
  value: {},
@@ -14,12 +14,12 @@ const Xt = { class: "simple-input" }, Jt = { class: "yu-flex yu-h-full yu-pl-2"
14
14
  emits: ["blur", "focus", "input"],
15
15
  setup(e, { emit: t }) {
16
16
  const o = t, n = e;
17
- D(!1);
18
- const i = D(n.value);
19
- D(!1);
20
- const s = D(n.type), r = D(!1);
21
- qe(r, (a) => {
22
- if (!a) {
17
+ M(!1);
18
+ const i = M(n.value);
19
+ M(!1);
20
+ const s = M(n.type), r = M(!1);
21
+ Ze(r, (u) => {
22
+ if (!u) {
23
23
  o("blur");
24
24
  return;
25
25
  }
@@ -28,32 +28,32 @@ const Xt = { class: "simple-input" }, Jt = { class: "yu-flex yu-h-full yu-pl-2"
28
28
  function l() {
29
29
  return !(r.value || i.value);
30
30
  }
31
- function u(a) {
32
- o("input", a.target.value);
31
+ function a(u) {
32
+ o("input", u.target.value);
33
33
  }
34
- return (a, d) => (b(), $("div", Xt, [
35
- c("div", Jt, [
36
- c("i", Qt, S(a.icon), 1),
37
- c("p", {
38
- class: A(["yu-text-gray-500 yu-font-plus yu-font-medium yu-p-1 yu-px-2 yu-transition", { "yu-translate-y-2 yu-text-sm": l(), "yu-translate-y-0 yu-text-xs": !l() }])
39
- }, S(a.label), 3)
34
+ return (u, d) => (m(), $("div", go, [
35
+ h("div", vo, [
36
+ h("i", wo, P(u.icon), 1),
37
+ h("p", {
38
+ class: C(["yu-text-gray-500 yu-font-plus yu-font-medium yu-p-1 yu-px-2 yu-transition", { "yu-translate-y-2 yu-text-sm": l(), "yu-translate-y-0 yu-text-xs": !l() }])
39
+ }, P(u.label), 3)
40
40
  ]),
41
- q(c("input", {
41
+ U(h("input", {
42
42
  class: "yu-pl-8 yu-absolute yu-w-full yu-h-full yu-outline-none yu-bg-transparent yu-appearence-none yu-indent-2 yu-pt-3 yu-font-plus yu-font-semibold yu-text-gray-800",
43
- placeholder: a.placeholder,
44
- onInput: u,
45
- onFocus: d[0] || (d[0] = (p) => r.value = !0),
46
- onBlur: d[1] || (d[1] = (p) => r.value = !1),
47
- "onUpdate:modelValue": d[2] || (d[2] = (p) => i.value = p),
48
- type: s.value || a.type,
49
- onKeyup: d[3] || (d[3] = ke((p) => a.$emit("keyup-enter"), ["enter"])),
50
- maxlength: a.caract
51
- }, null, 40, Zt), [
52
- [ft, i.value]
43
+ placeholder: u.placeholder,
44
+ onInput: a,
45
+ onFocus: d[0] || (d[0] = (c) => r.value = !0),
46
+ onBlur: d[1] || (d[1] = (c) => r.value = !1),
47
+ "onUpdate:modelValue": d[2] || (d[2] = (c) => i.value = c),
48
+ type: s.value || u.type,
49
+ onKeyup: d[3] || (d[3] = Me((c) => u.$emit("keyup-enter"), ["enter"])),
50
+ maxlength: u.caract
51
+ }, null, 40, bo), [
52
+ [Tt, i.value]
53
53
  ])
54
54
  ]));
55
55
  }
56
- }), to = ["type", "disabled"], wt = /* @__PURE__ */ k({
56
+ }), $o = ["type", "disabled"], Ct = /* @__PURE__ */ k({
57
57
  __name: "text-input",
58
58
  props: {
59
59
  modelValue: {},
@@ -64,38 +64,38 @@ const Xt = { class: "simple-input" }, Jt = { class: "yu-flex yu-h-full yu-pl-2"
64
64
  },
65
65
  emits: ["update:model-value", "blur", "press-enter"],
66
66
  setup(e, { emit: t }) {
67
- const o = e, n = t, i = D(o.modelValue), s = D(!1);
67
+ const o = e, n = t, i = M(o.modelValue), s = M(!1);
68
68
  function r() {
69
69
  return !(s.value || i.value);
70
70
  }
71
- function l(a) {
72
- n(a);
71
+ function l(u) {
72
+ n(u);
73
73
  }
74
- function u(a) {
75
- const d = a.target;
74
+ function a(u) {
75
+ const d = u.target;
76
76
  n("update:model-value", d.value);
77
77
  }
78
- return (a, d) => (b(), $("div", {
79
- class: A(["simple-input", { "yu-border-red-500": a.invalid }])
78
+ return (u, d) => (m(), $("div", {
79
+ class: C(["simple-input", { "yu-border-red-500": u.invalid }])
80
80
  }, [
81
- c("p", {
82
- class: A(["yu-text-gray-500 yu-font-plus yu-font-medium yu-p-1 yu-px-2 yu-transition", { "yu-translate-y-1/4 yu-text-sm": r(), "yu-translate-x-0 yu-text-xs": !r() }])
83
- }, S(a.label), 3),
84
- q(c("input", {
81
+ h("p", {
82
+ class: C(["yu-text-gray-500 yu-font-plus yu-font-medium yu-p-1 yu-px-2 yu-transition", { "yu-translate-y-1/4 yu-text-sm": r(), "yu-translate-x-0 yu-text-xs": !r() }])
83
+ }, P(u.label), 3),
84
+ U(h("input", {
85
85
  class: "yu-absolute yu-w-full yu-h-full yu-outline-none yu-bg-transparent yu-appearence-none yu-indent-2 yu-pt-3 yu-font-plus yu-font-semibold yu-text-gray-800 dark:yu-text-gray-200",
86
- "onUpdate:modelValue": d[0] || (d[0] = (p) => i.value = p),
87
- onKeyup: d[1] || (d[1] = ke((p) => l("press-enter"), ["enter"])),
88
- type: a.type,
89
- disabled: a.disabled,
90
- onInput: u,
91
- onFocus: d[2] || (d[2] = (p) => s.value = !0),
92
- onBlur: d[3] || (d[3] = (p) => s.value = !1)
93
- }, null, 40, to), [
94
- [ft, i.value]
86
+ "onUpdate:modelValue": d[0] || (d[0] = (c) => i.value = c),
87
+ onKeyup: d[1] || (d[1] = Me((c) => l("press-enter"), ["enter"])),
88
+ type: u.type,
89
+ disabled: u.disabled,
90
+ onInput: a,
91
+ onFocus: d[2] || (d[2] = (c) => s.value = !0),
92
+ onBlur: d[3] || (d[3] = (c) => s.value = !1)
93
+ }, null, 40, $o), [
94
+ [Tt, i.value]
95
95
  ])
96
96
  ], 2));
97
97
  }
98
- }), oo = ["checked"], no = /* @__PURE__ */ k({
98
+ }), _o = ["checked"], To = /* @__PURE__ */ k({
99
99
  __name: "switch-checkbox",
100
100
  props: {
101
101
  modelValue: { type: Boolean },
@@ -104,25 +104,25 @@ const Xt = { class: "simple-input" }, Jt = { class: "yu-flex yu-h-full yu-pl-2"
104
104
  },
105
105
  emits: ["update:modelValue", "change", "input"],
106
106
  setup(e, { emit: t }) {
107
- const o = e, n = t, i = D(o.modelValue);
108
- return D(!1), qe(i, (s) => {
107
+ const o = e, n = t, i = M(o.modelValue);
108
+ return M(!1), Ze(i, (s) => {
109
109
  n("update:modelValue", s);
110
- }), (s, r) => (b(), $("div", {
110
+ }), (s, r) => (m(), $("div", {
111
111
  class: "yu-relative yu-inline-block yu-w-10 yu-align-middle yu-select-none yu-transition yu-duration-200 yu-ease-in",
112
112
  onClick: r[0] || (r[0] = (l) => i.value = !i.value)
113
113
  }, [
114
- c("input", {
114
+ h("input", {
115
115
  class: "yu-absolute yu-block yu-w-6 yu-h-6 yu-bg-white yu-border-4 yu-rounded-full yu-appearance-none yu-cursor-pointer toggle-checkbox checked:yu-right-0 checked:yu-border-primary-500",
116
116
  type: "checkbox",
117
117
  checked: i.value
118
- }, null, 8, oo),
119
- c("label", {
120
- class: A(["yu-block yu-h-6 yu-overflow-hidden yu-bg-gray-300 yu-rounded-full yu-cursor-pointer yu-toggle-label", { "yu-bg-primary-500": i.value }]),
118
+ }, null, 8, _o),
119
+ h("label", {
120
+ class: C(["yu-block yu-h-6 yu-overflow-hidden yu-bg-gray-300 yu-rounded-full yu-cursor-pointer yu-toggle-label", { "yu-bg-primary-500": i.value }]),
121
121
  for: "toggle"
122
122
  }, null, 2)
123
123
  ]));
124
124
  }
125
- }), io = /* @__PURE__ */ k({
125
+ }), So = /* @__PURE__ */ k({
126
126
  __name: "button-primary",
127
127
  props: {
128
128
  large: {
@@ -147,13 +147,13 @@ const Xt = { class: "simple-input" }, Jt = { class: "yu-flex yu-h-full yu-pl-2"
147
147
  }
148
148
  },
149
149
  setup(e) {
150
- return (t, o) => (b(), $("button", {
151
- class: A(["yu-bg-primary yu-px-5 yu-p-2 yu-w-fit yu-text-base yu-text-white yu-rounded-md yu-transition-all yu-font-plus yu-font-bold yu-truncate hover:yu-brightness-90 active:yu-scale-95", { "!yu-px-7 !yu-p-4": e.large, "!yu-px-3 !yu-p-1": e.small, "!yu-bg-red-500": e.warning, "!yu-bg-yellow-400": e.alert, "!yu-bg-green-400": e.success }])
150
+ return (t, o) => (m(), $("button", {
151
+ class: C(["yu-bg-primary yu-px-5 yu-p-2 yu-w-fit yu-text-base yu-text-white yu-rounded-md yu-transition-all yu-font-plus yu-font-bold yu-truncate hover:yu-brightness-90 active:yu-scale-95", { "!yu-px-7 !yu-p-4": e.large, "!yu-px-3 !yu-p-1": e.small, "!yu-bg-red-500": e.warning, "!yu-bg-yellow-400": e.alert, "!yu-bg-green-400": e.success }])
152
152
  }, [
153
- x(t.$slots, "default")
153
+ b(t.$slots, "default")
154
154
  ], 2));
155
155
  }
156
- }), so = /* @__PURE__ */ k({
156
+ }), Po = /* @__PURE__ */ k({
157
157
  __name: "button-secondary",
158
158
  props: {
159
159
  large: {
@@ -178,26 +178,26 @@ const Xt = { class: "simple-input" }, Jt = { class: "yu-flex yu-h-full yu-pl-2"
178
178
  }
179
179
  },
180
180
  setup(e) {
181
- return (t, o) => (b(), $("button", {
182
- class: A(["yu-text-primary yu-bg-primary yu-text-base yu-w-fit yu-px-5 yu-p-2 yu-rounded-md yu-transition-all yu-font-plus yu-font-bold yu-truncate !yu-bg-opacity-5 group hover:!yu-bg-opacity-10 active:yu-scale-95 active:!yu-bg-opacity-20", { "!yu-text-lg": e.large, "!yu-text-sm": e.small, "!yu-text-red-500 !yu-bg-red-500": e.warning, "!yu-text-yellow-400 !yu-bg-yellow-400": e.alert, "!yu-text-green-400 !yu-bg-green-400": e.success }])
181
+ return (t, o) => (m(), $("button", {
182
+ class: C(["yu-text-primary yu-bg-primary yu-text-base yu-w-fit yu-px-5 yu-p-2 yu-rounded-md yu-transition-all yu-font-plus yu-font-bold yu-truncate !yu-bg-opacity-5 group hover:!yu-bg-opacity-10 active:yu-scale-95 active:!yu-bg-opacity-20", { "!yu-text-lg": e.large, "!yu-text-sm": e.small, "!yu-text-red-500 !yu-bg-red-500": e.warning, "!yu-text-yellow-400 !yu-bg-yellow-400": e.alert, "!yu-text-green-400 !yu-bg-green-400": e.success }])
183
183
  }, [
184
- x(t.$slots, "default")
184
+ b(t.$slots, "default")
185
185
  ], 2));
186
186
  }
187
- }), ro = { class: "yu-transition yu-text-gray-900 yu-font-plus yu-text-sm yu-p-2 yu-font-semibold yu-rounded-md yu-cursor-pointer yu-flex yu-items-center active:yu-scale-95 hover:yu-bg-primary-500 hover:!yu-bg-opacity-10 hover:yu-text-primary-400" };
188
- function lo(e, t) {
189
- return b(), $("div", ro, [
190
- x(e.$slots, "default")
187
+ }), Bo = { class: "yu-transition yu-text-gray-900 yu-font-plus yu-text-sm yu-p-2 yu-font-semibold yu-rounded-md yu-cursor-pointer yu-flex yu-items-center active:yu-scale-95 hover:yu-bg-primary-500 hover:!yu-bg-opacity-10 hover:yu-text-primary-400" };
188
+ function Co(e, t) {
189
+ return m(), $("div", Bo, [
190
+ b(e.$slots, "default")
191
191
  ]);
192
192
  }
193
- const K = (e, t) => {
193
+ const W = (e, t) => {
194
194
  const o = e.__vccOpts || e;
195
195
  for (const [n, i] of t)
196
196
  o[n] = i;
197
197
  return o;
198
198
  };
199
- var ao = {};
200
- const Ge = /* @__PURE__ */ K(ao, [["render", lo]]), uo = { class: "yu-relative yu-w-full" }, co = { class: "yu-text-gray-700 yu-font-plus yu-font-medium yu-text-base yu-mr-2" }, po = { class: "yu-mt-2 yu-w-full yu-bg-white yu-rounded-md yu-flex yu-flex-col yu-gap-1 yu-shadow-md yu-absolute yu-z-10" }, ho = { class: "yu-w-full yu-rounded-md yu-p-2" }, yo = /* @__PURE__ */ k({
199
+ var Ao = {};
200
+ const Qe = /* @__PURE__ */ W(Ao, [["render", Co]]), ko = { class: "yu-relative yu-w-full" }, Oo = { class: "yu-text-gray-700 yu-font-plus yu-font-medium yu-text-base yu-mr-2" }, zo = { class: "yu-mt-2 yu-w-full yu-bg-white yu-rounded-md yu-flex yu-flex-col yu-gap-1 yu-shadow-md yu-absolute yu-z-10" }, No = { class: "yu-w-full yu-rounded-md yu-p-2" }, Mo = /* @__PURE__ */ k({
201
201
  __name: "simple-dropdown",
202
202
  props: {
203
203
  label: {},
@@ -206,86 +206,86 @@ const Ge = /* @__PURE__ */ K(ao, [["render", lo]]), uo = { class: "yu-relative y
206
206
  },
207
207
  setup(e) {
208
208
  const t = e;
209
- qe(
209
+ Ze(
210
210
  () => t.isOpen,
211
211
  (n) => {
212
212
  o.value = n;
213
213
  }
214
214
  );
215
- const o = D(!1);
216
- return (n, i) => (b(), $("div", null, [
217
- c("div", uo, [
218
- c("button", {
219
- class: A(["yu-w-full yu-bg-gray-700 yu-bg-opacity-0 yu-px-3 yu-p-2 yu-rounded-md yu-flex yu-gap-1 yu-transition yu-border yu-border-gray-200 hover:yu-bg-opacity-10 yu-group active:yu-bg-primary-500 active:!yu-bg-opacity-10 active:yu-scale-95", { "!yu-bg-primary-500 !yu-bg-opacity-10": o.value }]),
215
+ const o = M(!1);
216
+ return (n, i) => (m(), $("div", null, [
217
+ h("div", ko, [
218
+ h("button", {
219
+ class: C(["yu-w-full yu-bg-gray-700 yu-bg-opacity-0 yu-px-3 yu-p-2 yu-rounded-md yu-flex yu-gap-1 yu-transition yu-border yu-border-gray-200 hover:yu-bg-opacity-10 yu-group active:yu-bg-primary-500 active:!yu-bg-opacity-10 active:yu-scale-95", { "!yu-bg-primary-500 !yu-bg-opacity-10": o.value }]),
220
220
  onClick: i[0] || (i[0] = (s) => o.value = !o.value)
221
221
  }, [
222
- q(c("i", {
223
- class: A(["material-icons yu-text-gray-700 yu-h-fit", { "yu-text-primary-500": o.value }])
224
- }, S(n.icon), 3), [
225
- [Me, n.icon]
222
+ U(h("i", {
223
+ class: C(["material-icons yu-text-gray-700 yu-h-fit", { "yu-text-primary-500": o.value }])
224
+ }, P(n.icon), 3), [
225
+ [We, n.icon]
226
226
  ]),
227
- c("div", co, S(n.label), 1),
228
- c("i", {
229
- class: A(["material-icons yu-text-gray-700 yu-h-fit yu-ml-auto", { "yu-text-primary-500 yu-rotate-180": o.value }])
227
+ h("div", Oo, P(n.label), 1),
228
+ h("i", {
229
+ class: C(["material-icons yu-text-gray-700 yu-h-fit yu-ml-auto", { "yu-text-primary-500 yu-rotate-180": o.value }])
230
230
  }, " keyboard_arrow_down", 2)
231
231
  ], 2),
232
- q(c("div", po, [
233
- c("div", ho, [
234
- x(n.$slots, "default")
232
+ U(h("div", zo, [
233
+ h("div", No, [
234
+ b(n.$slots, "default")
235
235
  ])
236
236
  ], 512), [
237
- [Me, o.value]
237
+ [We, o.value]
238
238
  ])
239
239
  ])
240
240
  ]));
241
241
  }
242
- }), fo = ["top", "right", "bottom", "left"], Ze = ["start", "end"], et = /* @__PURE__ */ fo.reduce((e, t) => e.concat(t, t + "-" + Ze[0], t + "-" + Ze[1]), []), ve = Math.min, se = Math.max, mo = {
242
+ }), Lo = ["top", "right", "bottom", "left"], it = ["start", "end"], st = /* @__PURE__ */ Lo.reduce((e, t) => e.concat(t, t + "-" + it[0], t + "-" + it[1]), []), we = Math.min, ae = Math.max, Ho = {
243
243
  left: "right",
244
244
  right: "left",
245
245
  bottom: "top",
246
246
  top: "bottom"
247
- }, go = {
247
+ }, Ro = {
248
248
  start: "end",
249
249
  end: "start"
250
250
  };
251
- function Ie(e, t, o) {
252
- return se(e, ve(t, o));
251
+ function Ge(e, t, o) {
252
+ return ae(e, we(t, o));
253
253
  }
254
- function ae(e, t) {
254
+ function de(e, t) {
255
255
  return typeof e == "function" ? e(t) : e;
256
256
  }
257
- function Y(e) {
257
+ function Z(e) {
258
258
  return e.split("-")[0];
259
259
  }
260
260
  function V(e) {
261
261
  return e.split("-")[1];
262
262
  }
263
- function xt(e) {
263
+ function At(e) {
264
264
  return e === "x" ? "y" : "x";
265
265
  }
266
- function Ue(e) {
266
+ function Je(e) {
267
267
  return e === "y" ? "height" : "width";
268
268
  }
269
- function be(e) {
270
- return ["top", "bottom"].includes(Y(e)) ? "y" : "x";
269
+ function Te(e) {
270
+ return ["top", "bottom"].includes(Z(e)) ? "y" : "x";
271
271
  }
272
- function Ye(e) {
273
- return xt(be(e));
272
+ function et(e) {
273
+ return At(Te(e));
274
274
  }
275
- function bt(e, t, o) {
275
+ function kt(e, t, o) {
276
276
  o === void 0 && (o = !1);
277
- const n = V(e), i = Ye(e), s = Ue(i);
277
+ const n = V(e), i = et(e), s = Je(i);
278
278
  let r = i === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
279
- return t.reference[s] > t.floating[s] && (r = Ce(r)), [r, Ce(r)];
279
+ return t.reference[s] > t.floating[s] && (r = ke(r)), [r, ke(r)];
280
280
  }
281
- function vo(e) {
282
- const t = Ce(e);
283
- return [Se(e), t, Se(t)];
281
+ function Do(e) {
282
+ const t = ke(e);
283
+ return [Ae(e), t, Ae(t)];
284
284
  }
285
- function Se(e) {
286
- return e.replace(/start|end/g, (t) => go[t]);
285
+ function Ae(e) {
286
+ return e.replace(/start|end/g, (t) => Ro[t]);
287
287
  }
288
- function wo(e, t, o) {
288
+ function Eo(e, t, o) {
289
289
  const n = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
290
290
  switch (e) {
291
291
  case "top":
@@ -298,15 +298,15 @@ function wo(e, t, o) {
298
298
  return [];
299
299
  }
300
300
  }
301
- function xo(e, t, o, n) {
301
+ function Io(e, t, o, n) {
302
302
  const i = V(e);
303
- let s = wo(Y(e), o === "start", n);
304
- return i && (s = s.map((r) => r + "-" + i), t && (s = s.concat(s.map(Se)))), s;
303
+ let s = Eo(Z(e), o === "start", n);
304
+ return i && (s = s.map((r) => r + "-" + i), t && (s = s.concat(s.map(Ae)))), s;
305
305
  }
306
- function Ce(e) {
307
- return e.replace(/left|right|bottom|top/g, (t) => mo[t]);
306
+ function ke(e) {
307
+ return e.replace(/left|right|bottom|top/g, (t) => Ho[t]);
308
308
  }
309
- function bo(e) {
309
+ function Fo(e) {
310
310
  return {
311
311
  top: 0,
312
312
  right: 0,
@@ -315,15 +315,15 @@ function bo(e) {
315
315
  ...e
316
316
  };
317
317
  }
318
- function _t(e) {
319
- return typeof e != "number" ? bo(e) : {
318
+ function Ot(e) {
319
+ return typeof e != "number" ? Fo(e) : {
320
320
  top: e,
321
321
  right: e,
322
322
  bottom: e,
323
323
  left: e
324
324
  };
325
325
  }
326
- function he(e) {
326
+ function ye(e) {
327
327
  return {
328
328
  ...e,
329
329
  top: e.y,
@@ -332,119 +332,119 @@ function he(e) {
332
332
  bottom: e.y + e.height
333
333
  };
334
334
  }
335
- function tt(e, t, o) {
335
+ function rt(e, t, o) {
336
336
  let {
337
337
  reference: n,
338
338
  floating: i
339
339
  } = e;
340
- const s = be(t), r = Ye(t), l = Ue(r), u = Y(t), a = s === "y", d = n.x + n.width / 2 - i.width / 2, p = n.y + n.height / 2 - i.height / 2, y = n[l] / 2 - i[l] / 2;
341
- let h;
342
- switch (u) {
340
+ const s = Te(t), r = et(t), l = Je(r), a = Z(t), u = s === "y", d = n.x + n.width / 2 - i.width / 2, c = n.y + n.height / 2 - i.height / 2, y = n[l] / 2 - i[l] / 2;
341
+ let p;
342
+ switch (a) {
343
343
  case "top":
344
- h = {
344
+ p = {
345
345
  x: d,
346
346
  y: n.y - i.height
347
347
  };
348
348
  break;
349
349
  case "bottom":
350
- h = {
350
+ p = {
351
351
  x: d,
352
352
  y: n.y + n.height
353
353
  };
354
354
  break;
355
355
  case "right":
356
- h = {
356
+ p = {
357
357
  x: n.x + n.width,
358
- y: p
358
+ y: c
359
359
  };
360
360
  break;
361
361
  case "left":
362
- h = {
362
+ p = {
363
363
  x: n.x - i.width,
364
- y: p
364
+ y: c
365
365
  };
366
366
  break;
367
367
  default:
368
- h = {
368
+ p = {
369
369
  x: n.x,
370
370
  y: n.y
371
371
  };
372
372
  }
373
373
  switch (V(t)) {
374
374
  case "start":
375
- h[r] -= y * (o && a ? -1 : 1);
375
+ p[r] -= y * (o && u ? -1 : 1);
376
376
  break;
377
377
  case "end":
378
- h[r] += y * (o && a ? -1 : 1);
378
+ p[r] += y * (o && u ? -1 : 1);
379
379
  break;
380
380
  }
381
- return h;
381
+ return p;
382
382
  }
383
- const _o = async (e, t, o) => {
383
+ const Vo = async (e, t, o) => {
384
384
  const {
385
385
  placement: n = "bottom",
386
386
  strategy: i = "absolute",
387
387
  middleware: s = [],
388
388
  platform: r
389
- } = o, l = s.filter(Boolean), u = await (r.isRTL == null ? void 0 : r.isRTL(t));
390
- let a = await r.getElementRects({
389
+ } = o, l = s.filter(Boolean), a = await (r.isRTL == null ? void 0 : r.isRTL(t));
390
+ let u = await r.getElementRects({
391
391
  reference: e,
392
392
  floating: t,
393
393
  strategy: i
394
394
  }), {
395
395
  x: d,
396
- y: p
397
- } = tt(a, n, u), y = n, h = {}, f = 0;
398
- for (let m = 0; m < l.length; m++) {
396
+ y: c
397
+ } = rt(u, n, a), y = n, p = {}, f = 0;
398
+ for (let g = 0; g < l.length; g++) {
399
399
  const {
400
- name: v,
401
- fn: g
402
- } = l[m], {
403
- x: w,
400
+ name: w,
401
+ fn: v
402
+ } = l[g], {
403
+ x,
404
404
  y: T,
405
- data: C,
406
- reset: P
407
- } = await g({
405
+ data: B,
406
+ reset: S
407
+ } = await v({
408
408
  x: d,
409
- y: p,
409
+ y: c,
410
410
  initialPlacement: n,
411
411
  placement: y,
412
412
  strategy: i,
413
- middlewareData: h,
414
- rects: a,
413
+ middlewareData: p,
414
+ rects: u,
415
415
  platform: r,
416
416
  elements: {
417
417
  reference: e,
418
418
  floating: t
419
419
  }
420
420
  });
421
- if (d = w ?? d, p = T ?? p, h = {
422
- ...h,
423
- [v]: {
424
- ...h[v],
425
- ...C
421
+ if (d = x ?? d, c = T ?? c, p = {
422
+ ...p,
423
+ [w]: {
424
+ ...p[w],
425
+ ...B
426
426
  }
427
- }, P && f <= 50) {
428
- f++, typeof P == "object" && (P.placement && (y = P.placement), P.rects && (a = P.rects === !0 ? await r.getElementRects({
427
+ }, S && f <= 50) {
428
+ f++, typeof S == "object" && (S.placement && (y = S.placement), S.rects && (u = S.rects === !0 ? await r.getElementRects({
429
429
  reference: e,
430
430
  floating: t,
431
431
  strategy: i
432
- }) : P.rects), {
432
+ }) : S.rects), {
433
433
  x: d,
434
- y: p
435
- } = tt(a, y, u)), m = -1;
434
+ y: c
435
+ } = rt(u, y, a)), g = -1;
436
436
  continue;
437
437
  }
438
438
  }
439
439
  return {
440
440
  x: d,
441
- y: p,
441
+ y: c,
442
442
  placement: y,
443
443
  strategy: i,
444
- middlewareData: h
444
+ middlewareData: p
445
445
  };
446
446
  };
447
- async function Oe(e, t) {
447
+ async function Le(e, t) {
448
448
  var o;
449
449
  t === void 0 && (t = {});
450
450
  const {
@@ -453,41 +453,41 @@ async function Oe(e, t) {
453
453
  platform: s,
454
454
  rects: r,
455
455
  elements: l,
456
- strategy: u
456
+ strategy: a
457
457
  } = e, {
458
- boundary: a = "clippingAncestors",
458
+ boundary: u = "clippingAncestors",
459
459
  rootBoundary: d = "viewport",
460
- elementContext: p = "floating",
460
+ elementContext: c = "floating",
461
461
  altBoundary: y = !1,
462
- padding: h = 0
463
- } = ae(t, e), f = _t(h), v = l[y ? p === "floating" ? "reference" : "floating" : p], g = he(await s.getClippingRect({
464
- element: (o = await (s.isElement == null ? void 0 : s.isElement(v))) == null || o ? v : v.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
465
- boundary: a,
462
+ padding: p = 0
463
+ } = de(t, e), f = Ot(p), w = l[y ? c === "floating" ? "reference" : "floating" : c], v = ye(await s.getClippingRect({
464
+ element: (o = await (s.isElement == null ? void 0 : s.isElement(w))) == null || o ? w : w.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(l.floating)),
465
+ boundary: u,
466
466
  rootBoundary: d,
467
- strategy: u
468
- })), w = p === "floating" ? {
467
+ strategy: a
468
+ })), x = c === "floating" ? {
469
469
  ...r.floating,
470
470
  x: n,
471
471
  y: i
472
- } : r.reference, T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), C = await (s.isElement == null ? void 0 : s.isElement(T)) ? await (s.getScale == null ? void 0 : s.getScale(T)) || {
472
+ } : r.reference, T = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), B = await (s.isElement == null ? void 0 : s.isElement(T)) ? await (s.getScale == null ? void 0 : s.getScale(T)) || {
473
473
  x: 1,
474
474
  y: 1
475
475
  } : {
476
476
  x: 1,
477
477
  y: 1
478
- }, P = he(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
479
- rect: w,
478
+ }, S = ye(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
479
+ rect: x,
480
480
  offsetParent: T,
481
- strategy: u
482
- }) : w);
481
+ strategy: a
482
+ }) : x);
483
483
  return {
484
- top: (g.top - P.top + f.top) / C.y,
485
- bottom: (P.bottom - g.bottom + f.bottom) / C.y,
486
- left: (g.left - P.left + f.left) / C.x,
487
- right: (P.right - g.right + f.right) / C.x
484
+ top: (v.top - S.top + f.top) / B.y,
485
+ bottom: (S.bottom - v.bottom + f.bottom) / B.y,
486
+ left: (v.left - S.left + f.left) / B.x,
487
+ right: (S.right - v.right + f.right) / B.x
488
488
  };
489
489
  }
490
- const $o = (e) => ({
490
+ const jo = (e) => ({
491
491
  name: "arrow",
492
492
  options: e,
493
493
  async fn(t) {
@@ -498,37 +498,37 @@ const $o = (e) => ({
498
498
  rects: s,
499
499
  platform: r,
500
500
  elements: l,
501
- middlewareData: u
501
+ middlewareData: a
502
502
  } = t, {
503
- element: a,
503
+ element: u,
504
504
  padding: d = 0
505
- } = ae(e, t) || {};
506
- if (a == null)
505
+ } = de(e, t) || {};
506
+ if (u == null)
507
507
  return {};
508
- const p = _t(d), y = {
508
+ const c = Ot(d), y = {
509
509
  x: o,
510
510
  y: n
511
- }, h = Ye(i), f = Ue(h), m = await r.getDimensions(a), v = h === "y", g = v ? "top" : "left", w = v ? "bottom" : "right", T = v ? "clientHeight" : "clientWidth", C = s.reference[f] + s.reference[h] - y[h] - s.floating[f], P = y[h] - s.reference[h], B = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(a));
512
- let O = B ? B[T] : 0;
513
- (!O || !await (r.isElement == null ? void 0 : r.isElement(B))) && (O = l.floating[T] || s.floating[f]);
514
- const M = C / 2 - P / 2, E = O / 2 - m[f] / 2 - 1, N = ve(p[g], E), I = ve(p[w], E), z = N, ne = O - m[f] - I, R = O / 2 - m[f] / 2 + M, j = Ie(z, R, ne), W = !u.arrow && V(i) != null && R != j && s.reference[f] / 2 - (R < z ? N : I) - m[f] / 2 < 0, X = W ? R < z ? R - z : R - ne : 0;
511
+ }, p = et(i), f = Je(p), g = await r.getDimensions(u), w = p === "y", v = w ? "top" : "left", x = w ? "bottom" : "right", T = w ? "clientHeight" : "clientWidth", B = s.reference[f] + s.reference[p] - y[p] - s.floating[f], S = y[p] - s.reference[p], A = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(u));
512
+ let O = A ? A[T] : 0;
513
+ (!O || !await (r.isElement == null ? void 0 : r.isElement(A))) && (O = l.floating[T] || s.floating[f]);
514
+ const D = B / 2 - S / 2, E = O / 2 - g[f] / 2 - 1, z = we(c[v], E), I = we(c[x], E), N = z, re = O - g[f] - I, L = O / 2 - g[f] / 2 + D, q = Ge(N, L, re), G = !a.arrow && V(i) != null && L != q && s.reference[f] / 2 - (L < N ? z : I) - g[f] / 2 < 0, Q = G ? L < N ? L - N : L - re : 0;
515
515
  return {
516
- [h]: y[h] + X,
516
+ [p]: y[p] + Q,
517
517
  data: {
518
- [h]: j,
519
- centerOffset: R - j - X,
520
- ...W && {
521
- alignmentOffset: X
518
+ [p]: q,
519
+ centerOffset: L - q - Q,
520
+ ...G && {
521
+ alignmentOffset: Q
522
522
  }
523
523
  },
524
- reset: W
524
+ reset: G
525
525
  };
526
526
  }
527
527
  });
528
- function To(e, t, o) {
529
- return (e ? [...o.filter((i) => V(i) === e), ...o.filter((i) => V(i) !== e)] : o.filter((i) => Y(i) === i)).filter((i) => e ? V(i) === e || (t ? Se(i) !== i : !1) : !0);
528
+ function Wo(e, t, o) {
529
+ return (e ? [...o.filter((i) => V(i) === e), ...o.filter((i) => V(i) !== e)] : o.filter((i) => Z(i) === i)).filter((i) => e ? V(i) === e || (t ? Ae(i) !== i : !1) : !0);
530
530
  }
531
- const Po = function(e) {
531
+ const qo = function(e) {
532
532
  return e === void 0 && (e = {}), {
533
533
  name: "autoPlacement",
534
534
  options: e,
@@ -538,57 +538,57 @@ const Po = function(e) {
538
538
  rects: s,
539
539
  middlewareData: r,
540
540
  placement: l,
541
- platform: u,
542
- elements: a
541
+ platform: a,
542
+ elements: u
543
543
  } = t, {
544
544
  crossAxis: d = !1,
545
- alignment: p,
546
- allowedPlacements: y = et,
547
- autoAlignment: h = !0,
545
+ alignment: c,
546
+ allowedPlacements: y = st,
547
+ autoAlignment: p = !0,
548
548
  ...f
549
- } = ae(e, t), m = p !== void 0 || y === et ? To(p || null, h, y) : y, v = await Oe(t, f), g = ((o = r.autoPlacement) == null ? void 0 : o.index) || 0, w = m[g];
550
- if (w == null)
549
+ } = de(e, t), g = c !== void 0 || y === st ? Wo(c || null, p, y) : y, w = await Le(t, f), v = ((o = r.autoPlacement) == null ? void 0 : o.index) || 0, x = g[v];
550
+ if (x == null)
551
551
  return {};
552
- const T = bt(w, s, await (u.isRTL == null ? void 0 : u.isRTL(a.floating)));
553
- if (l !== w)
552
+ const T = kt(x, s, await (a.isRTL == null ? void 0 : a.isRTL(u.floating)));
553
+ if (l !== x)
554
554
  return {
555
555
  reset: {
556
- placement: m[0]
556
+ placement: g[0]
557
557
  }
558
558
  };
559
- const C = [v[Y(w)], v[T[0]], v[T[1]]], P = [...((n = r.autoPlacement) == null ? void 0 : n.overflows) || [], {
560
- placement: w,
561
- overflows: C
562
- }], B = m[g + 1];
563
- if (B)
559
+ const B = [w[Z(x)], w[T[0]], w[T[1]]], S = [...((n = r.autoPlacement) == null ? void 0 : n.overflows) || [], {
560
+ placement: x,
561
+ overflows: B
562
+ }], A = g[v + 1];
563
+ if (A)
564
564
  return {
565
565
  data: {
566
- index: g + 1,
567
- overflows: P
566
+ index: v + 1,
567
+ overflows: S
568
568
  },
569
569
  reset: {
570
- placement: B
570
+ placement: A
571
571
  }
572
572
  };
573
- const O = P.map((N) => {
574
- const I = V(N.placement);
575
- return [N.placement, I && d ? (
573
+ const O = S.map((z) => {
574
+ const I = V(z.placement);
575
+ return [z.placement, I && d ? (
576
576
  // Check along the mainAxis and main crossAxis side.
577
- N.overflows.slice(0, 2).reduce((z, ne) => z + ne, 0)
577
+ z.overflows.slice(0, 2).reduce((N, re) => N + re, 0)
578
578
  ) : (
579
579
  // Check only the mainAxis.
580
- N.overflows[0]
581
- ), N.overflows];
582
- }).sort((N, I) => N[1] - I[1]), E = ((i = O.filter((N) => N[2].slice(
580
+ z.overflows[0]
581
+ ), z.overflows];
582
+ }).sort((z, I) => z[1] - I[1]), E = ((i = O.filter((z) => z[2].slice(
583
583
  0,
584
584
  // Aligned placements should not check their opposite crossAxis
585
585
  // side.
586
- V(N[0]) ? 2 : 3
586
+ V(z[0]) ? 2 : 3
587
587
  ).every((I) => I <= 0))[0]) == null ? void 0 : i[0]) || O[0][0];
588
588
  return E !== l ? {
589
589
  data: {
590
- index: g + 1,
591
- overflows: P
590
+ index: v + 1,
591
+ overflows: S
592
592
  },
593
593
  reset: {
594
594
  placement: E
@@ -596,7 +596,7 @@ const Po = function(e) {
596
596
  } : {};
597
597
  }
598
598
  };
599
- }, So = function(e) {
599
+ }, Go = function(e) {
600
600
  return e === void 0 && (e = {}), {
601
601
  name: "flip",
602
602
  options: e,
@@ -607,60 +607,60 @@ const Po = function(e) {
607
607
  middlewareData: s,
608
608
  rects: r,
609
609
  initialPlacement: l,
610
- platform: u,
611
- elements: a
610
+ platform: a,
611
+ elements: u
612
612
  } = t, {
613
613
  mainAxis: d = !0,
614
- crossAxis: p = !0,
614
+ crossAxis: c = !0,
615
615
  fallbackPlacements: y,
616
- fallbackStrategy: h = "bestFit",
616
+ fallbackStrategy: p = "bestFit",
617
617
  fallbackAxisSideDirection: f = "none",
618
- flipAlignment: m = !0,
619
- ...v
620
- } = ae(e, t);
618
+ flipAlignment: g = !0,
619
+ ...w
620
+ } = de(e, t);
621
621
  if ((o = s.arrow) != null && o.alignmentOffset)
622
622
  return {};
623
- const g = Y(i), w = Y(l) === l, T = await (u.isRTL == null ? void 0 : u.isRTL(a.floating)), C = y || (w || !m ? [Ce(l)] : vo(l));
624
- !y && f !== "none" && C.push(...xo(l, m, f, T));
625
- const P = [l, ...C], B = await Oe(t, v), O = [];
626
- let M = ((n = s.flip) == null ? void 0 : n.overflows) || [];
627
- if (d && O.push(B[g]), p) {
628
- const z = bt(i, r, T);
629
- O.push(B[z[0]], B[z[1]]);
623
+ const v = Z(i), x = Z(l) === l, T = await (a.isRTL == null ? void 0 : a.isRTL(u.floating)), B = y || (x || !g ? [ke(l)] : Do(l));
624
+ !y && f !== "none" && B.push(...Io(l, g, f, T));
625
+ const S = [l, ...B], A = await Le(t, w), O = [];
626
+ let D = ((n = s.flip) == null ? void 0 : n.overflows) || [];
627
+ if (d && O.push(A[v]), c) {
628
+ const N = kt(i, r, T);
629
+ O.push(A[N[0]], A[N[1]]);
630
630
  }
631
- if (M = [...M, {
631
+ if (D = [...D, {
632
632
  placement: i,
633
633
  overflows: O
634
- }], !O.every((z) => z <= 0)) {
635
- var E, N;
636
- const z = (((E = s.flip) == null ? void 0 : E.index) || 0) + 1, ne = P[z];
637
- if (ne)
634
+ }], !O.every((N) => N <= 0)) {
635
+ var E, z;
636
+ const N = (((E = s.flip) == null ? void 0 : E.index) || 0) + 1, re = S[N];
637
+ if (re)
638
638
  return {
639
639
  data: {
640
- index: z,
641
- overflows: M
640
+ index: N,
641
+ overflows: D
642
642
  },
643
643
  reset: {
644
- placement: ne
644
+ placement: re
645
645
  }
646
646
  };
647
- let R = (N = M.filter((j) => j.overflows[0] <= 0).sort((j, W) => j.overflows[1] - W.overflows[1])[0]) == null ? void 0 : N.placement;
648
- if (!R)
649
- switch (h) {
647
+ let L = (z = D.filter((q) => q.overflows[0] <= 0).sort((q, G) => q.overflows[1] - G.overflows[1])[0]) == null ? void 0 : z.placement;
648
+ if (!L)
649
+ switch (p) {
650
650
  case "bestFit": {
651
651
  var I;
652
- const j = (I = M.map((W) => [W.placement, W.overflows.filter((X) => X > 0).reduce((X, Et) => X + Et, 0)]).sort((W, X) => W[1] - X[1])[0]) == null ? void 0 : I[0];
653
- j && (R = j);
652
+ const q = (I = D.map((G) => [G.placement, G.overflows.filter((Q) => Q > 0).reduce((Q, no) => Q + no, 0)]).sort((G, Q) => G[1] - Q[1])[0]) == null ? void 0 : I[0];
653
+ q && (L = q);
654
654
  break;
655
655
  }
656
656
  case "initialPlacement":
657
- R = l;
657
+ L = l;
658
658
  break;
659
659
  }
660
- if (i !== R)
660
+ if (i !== L)
661
661
  return {
662
662
  reset: {
663
- placement: R
663
+ placement: L
664
664
  }
665
665
  };
666
666
  }
@@ -668,35 +668,35 @@ const Po = function(e) {
668
668
  }
669
669
  };
670
670
  };
671
- async function Co(e, t) {
671
+ async function Uo(e, t) {
672
672
  const {
673
673
  placement: o,
674
674
  platform: n,
675
675
  elements: i
676
- } = e, s = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), r = Y(o), l = V(o), u = be(o) === "y", a = ["left", "top"].includes(r) ? -1 : 1, d = s && u ? -1 : 1, p = ae(t, e);
676
+ } = e, s = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), r = Z(o), l = V(o), a = Te(o) === "y", u = ["left", "top"].includes(r) ? -1 : 1, d = s && a ? -1 : 1, c = de(t, e);
677
677
  let {
678
678
  mainAxis: y,
679
- crossAxis: h,
679
+ crossAxis: p,
680
680
  alignmentAxis: f
681
- } = typeof p == "number" ? {
682
- mainAxis: p,
681
+ } = typeof c == "number" ? {
682
+ mainAxis: c,
683
683
  crossAxis: 0,
684
684
  alignmentAxis: null
685
685
  } : {
686
686
  mainAxis: 0,
687
687
  crossAxis: 0,
688
688
  alignmentAxis: null,
689
- ...p
689
+ ...c
690
690
  };
691
- return l && typeof f == "number" && (h = l === "end" ? f * -1 : f), u ? {
692
- x: h * d,
693
- y: y * a
691
+ return l && typeof f == "number" && (p = l === "end" ? f * -1 : f), a ? {
692
+ x: p * d,
693
+ y: y * u
694
694
  } : {
695
- x: y * a,
696
- y: h * d
695
+ x: y * u,
696
+ y: p * d
697
697
  };
698
698
  }
699
- const Bo = function(e) {
699
+ const Yo = function(e) {
700
700
  return e === void 0 && (e = 0), {
701
701
  name: "offset",
702
702
  options: e,
@@ -707,18 +707,18 @@ const Bo = function(e) {
707
707
  y: s,
708
708
  placement: r,
709
709
  middlewareData: l
710
- } = t, u = await Co(t, e);
710
+ } = t, a = await Uo(t, e);
711
711
  return r === ((o = l.offset) == null ? void 0 : o.placement) && (n = l.arrow) != null && n.alignmentOffset ? {} : {
712
- x: i + u.x,
713
- y: s + u.y,
712
+ x: i + a.x,
713
+ y: s + a.y,
714
714
  data: {
715
- ...u,
715
+ ...a,
716
716
  placement: r
717
717
  }
718
718
  };
719
719
  }
720
720
  };
721
- }, Ao = function(e) {
721
+ }, Xo = function(e) {
722
722
  return e === void 0 && (e = {}), {
723
723
  name: "shift",
724
724
  options: e,
@@ -731,46 +731,46 @@ const Bo = function(e) {
731
731
  mainAxis: s = !0,
732
732
  crossAxis: r = !1,
733
733
  limiter: l = {
734
- fn: (v) => {
734
+ fn: (w) => {
735
735
  let {
736
- x: g,
737
- y: w
738
- } = v;
736
+ x: v,
737
+ y: x
738
+ } = w;
739
739
  return {
740
- x: g,
741
- y: w
740
+ x: v,
741
+ y: x
742
742
  };
743
743
  }
744
744
  },
745
- ...u
746
- } = ae(e, t), a = {
745
+ ...a
746
+ } = de(e, t), u = {
747
747
  x: o,
748
748
  y: n
749
- }, d = await Oe(t, u), p = be(Y(i)), y = xt(p);
750
- let h = a[y], f = a[p];
749
+ }, d = await Le(t, a), c = Te(Z(i)), y = At(c);
750
+ let p = u[y], f = u[c];
751
751
  if (s) {
752
- const v = y === "y" ? "top" : "left", g = y === "y" ? "bottom" : "right", w = h + d[v], T = h - d[g];
753
- h = Ie(w, h, T);
752
+ const w = y === "y" ? "top" : "left", v = y === "y" ? "bottom" : "right", x = p + d[w], T = p - d[v];
753
+ p = Ge(x, p, T);
754
754
  }
755
755
  if (r) {
756
- const v = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", w = f + d[v], T = f - d[g];
757
- f = Ie(w, f, T);
756
+ const w = c === "y" ? "top" : "left", v = c === "y" ? "bottom" : "right", x = f + d[w], T = f - d[v];
757
+ f = Ge(x, f, T);
758
758
  }
759
- const m = l.fn({
759
+ const g = l.fn({
760
760
  ...t,
761
- [y]: h,
762
- [p]: f
761
+ [y]: p,
762
+ [c]: f
763
763
  });
764
764
  return {
765
- ...m,
765
+ ...g,
766
766
  data: {
767
- x: m.x - o,
768
- y: m.y - n
767
+ x: g.x - o,
768
+ y: g.y - n
769
769
  }
770
770
  };
771
771
  }
772
772
  };
773
- }, ko = function(e) {
773
+ }, Ko = function(e) {
774
774
  return e === void 0 && (e = {}), {
775
775
  name: "size",
776
776
  options: e,
@@ -784,32 +784,32 @@ const Bo = function(e) {
784
784
  apply: r = () => {
785
785
  },
786
786
  ...l
787
- } = ae(e, t), u = await Oe(t, l), a = Y(o), d = V(o), p = be(o) === "y", {
787
+ } = de(e, t), a = await Le(t, l), u = Z(o), d = V(o), c = Te(o) === "y", {
788
788
  width: y,
789
- height: h
789
+ height: p
790
790
  } = n.floating;
791
- let f, m;
792
- a === "top" || a === "bottom" ? (f = a, m = d === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (m = a, f = d === "end" ? "top" : "bottom");
793
- const v = h - u[f], g = y - u[m], w = !t.middlewareData.shift;
794
- let T = v, C = g;
795
- if (p) {
796
- const B = y - u.left - u.right;
797
- C = d || w ? ve(g, B) : B;
791
+ let f, g;
792
+ u === "top" || u === "bottom" ? (f = u, g = d === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (g = u, f = d === "end" ? "top" : "bottom");
793
+ const w = p - a[f], v = y - a[g], x = !t.middlewareData.shift;
794
+ let T = w, B = v;
795
+ if (c) {
796
+ const A = y - a.left - a.right;
797
+ B = d || x ? we(v, A) : A;
798
798
  } else {
799
- const B = h - u.top - u.bottom;
800
- T = d || w ? ve(v, B) : B;
799
+ const A = p - a.top - a.bottom;
800
+ T = d || x ? we(w, A) : A;
801
801
  }
802
- if (w && !d) {
803
- const B = se(u.left, 0), O = se(u.right, 0), M = se(u.top, 0), E = se(u.bottom, 0);
804
- p ? C = y - 2 * (B !== 0 || O !== 0 ? B + O : se(u.left, u.right)) : T = h - 2 * (M !== 0 || E !== 0 ? M + E : se(u.top, u.bottom));
802
+ if (x && !d) {
803
+ const A = ae(a.left, 0), O = ae(a.right, 0), D = ae(a.top, 0), E = ae(a.bottom, 0);
804
+ c ? B = y - 2 * (A !== 0 || O !== 0 ? A + O : ae(a.left, a.right)) : T = p - 2 * (D !== 0 || E !== 0 ? D + E : ae(a.top, a.bottom));
805
805
  }
806
806
  await r({
807
807
  ...t,
808
- availableWidth: C,
808
+ availableWidth: B,
809
809
  availableHeight: T
810
810
  });
811
- const P = await i.getDimensions(s.floating);
812
- return y !== P.width || h !== P.height ? {
811
+ const S = await i.getDimensions(s.floating);
812
+ return y !== S.width || p !== S.height ? {
813
813
  reset: {
814
814
  rects: !0
815
815
  }
@@ -817,208 +817,213 @@ const Bo = function(e) {
817
817
  }
818
818
  };
819
819
  };
820
- function H(e) {
820
+ function R(e) {
821
821
  var t;
822
822
  return ((t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
823
823
  }
824
- function G(e) {
825
- return H(e).getComputedStyle(e);
824
+ function X(e) {
825
+ return R(e).getComputedStyle(e);
826
826
  }
827
- const ot = Math.min, ye = Math.max, Be = Math.round;
828
- function $t(e) {
829
- const t = G(e);
827
+ const lt = Math.min, fe = Math.max, Oe = Math.round;
828
+ function zt(e) {
829
+ const t = X(e);
830
830
  let o = parseFloat(t.width), n = parseFloat(t.height);
831
- const i = e.offsetWidth, s = e.offsetHeight, r = Be(o) !== i || Be(n) !== s;
831
+ const i = e.offsetWidth, s = e.offsetHeight, r = Oe(o) !== i || Oe(n) !== s;
832
832
  return r && (o = i, n = s), { width: o, height: n, fallback: r };
833
833
  }
834
- function oe(e) {
835
- return Pt(e) ? (e.nodeName || "").toLowerCase() : "";
834
+ function se(e) {
835
+ return Mt(e) ? (e.nodeName || "").toLowerCase() : "";
836
836
  }
837
- let _e;
838
- function Tt() {
839
- if (_e)
840
- return _e;
837
+ let Se;
838
+ function Nt() {
839
+ if (Se)
840
+ return Se;
841
841
  const e = navigator.userAgentData;
842
- return e && Array.isArray(e.brands) ? (_e = e.brands.map((t) => t.brand + "/" + t.version).join(" "), _e) : navigator.userAgent;
842
+ return e && Array.isArray(e.brands) ? (Se = e.brands.map((t) => t.brand + "/" + t.version).join(" "), Se) : navigator.userAgent;
843
843
  }
844
- function U(e) {
845
- return e instanceof H(e).HTMLElement;
844
+ function K(e) {
845
+ return e instanceof R(e).HTMLElement;
846
846
  }
847
- function ee(e) {
848
- return e instanceof H(e).Element;
847
+ function ne(e) {
848
+ return e instanceof R(e).Element;
849
849
  }
850
- function Pt(e) {
851
- return e instanceof H(e).Node;
850
+ function Mt(e) {
851
+ return e instanceof R(e).Node;
852
852
  }
853
- function nt(e) {
854
- return typeof ShadowRoot > "u" ? !1 : e instanceof H(e).ShadowRoot || e instanceof ShadowRoot;
853
+ function at(e) {
854
+ return typeof ShadowRoot > "u" ? !1 : e instanceof R(e).ShadowRoot || e instanceof ShadowRoot;
855
855
  }
856
- function Ne(e) {
857
- const { overflow: t, overflowX: o, overflowY: n, display: i } = G(e);
856
+ function He(e) {
857
+ const { overflow: t, overflowX: o, overflowY: n, display: i } = X(e);
858
858
  return /auto|scroll|overlay|hidden|clip/.test(t + n + o) && !["inline", "contents"].includes(i);
859
859
  }
860
- function Oo(e) {
861
- return ["table", "td", "th"].includes(oe(e));
860
+ function Zo(e) {
861
+ return ["table", "td", "th"].includes(se(e));
862
862
  }
863
- function Fe(e) {
864
- const t = /firefox/i.test(Tt()), o = G(e), n = o.backdropFilter || o.WebkitBackdropFilter;
863
+ function Ue(e) {
864
+ const t = /firefox/i.test(Nt()), o = X(e), n = o.backdropFilter || o.WebkitBackdropFilter;
865
865
  return o.transform !== "none" || o.perspective !== "none" || !!n && n !== "none" || t && o.willChange === "filter" || t && !!o.filter && o.filter !== "none" || ["transform", "perspective"].some((i) => o.willChange.includes(i)) || ["paint", "layout", "strict", "content"].some((i) => {
866
866
  const s = o.contain;
867
867
  return s != null && s.includes(i);
868
868
  });
869
869
  }
870
- function St() {
871
- return !/^((?!chrome|android).)*safari/i.test(Tt());
870
+ function Lt() {
871
+ return !/^((?!chrome|android).)*safari/i.test(Nt());
872
872
  }
873
- function Ke(e) {
874
- return ["html", "body", "#document"].includes(oe(e));
873
+ function tt(e) {
874
+ return ["html", "body", "#document"].includes(se(e));
875
875
  }
876
- function Ct(e) {
877
- return ee(e) ? e : e.contextElement;
876
+ function Ht(e) {
877
+ return ne(e) ? e : e.contextElement;
878
878
  }
879
- const Bt = { x: 1, y: 1 };
880
- function ue(e) {
881
- const t = Ct(e);
882
- if (!U(t))
883
- return Bt;
884
- const o = t.getBoundingClientRect(), { width: n, height: i, fallback: s } = $t(t);
885
- let r = (s ? Be(o.width) : o.width) / n, l = (s ? Be(o.height) : o.height) / i;
879
+ const Rt = { x: 1, y: 1 };
880
+ function ce(e) {
881
+ const t = Ht(e);
882
+ if (!K(t))
883
+ return Rt;
884
+ const o = t.getBoundingClientRect(), { width: n, height: i, fallback: s } = zt(t);
885
+ let r = (s ? Oe(o.width) : o.width) / n, l = (s ? Oe(o.height) : o.height) / i;
886
886
  return r && Number.isFinite(r) || (r = 1), l && Number.isFinite(l) || (l = 1), { x: r, y: l };
887
887
  }
888
- function we(e, t, o, n) {
888
+ function be(e, t, o, n) {
889
889
  var i, s;
890
890
  t === void 0 && (t = !1), o === void 0 && (o = !1);
891
- const r = e.getBoundingClientRect(), l = Ct(e);
892
- let u = Bt;
893
- t && (n ? ee(n) && (u = ue(n)) : u = ue(e));
894
- const a = l ? H(l) : window, d = !St() && o;
895
- let p = (r.left + (d && ((i = a.visualViewport) == null ? void 0 : i.offsetLeft) || 0)) / u.x, y = (r.top + (d && ((s = a.visualViewport) == null ? void 0 : s.offsetTop) || 0)) / u.y, h = r.width / u.x, f = r.height / u.y;
891
+ const r = e.getBoundingClientRect(), l = Ht(e);
892
+ let a = Rt;
893
+ t && (n ? ne(n) && (a = ce(n)) : a = ce(e));
894
+ const u = l ? R(l) : window, d = !Lt() && o;
895
+ let c = (r.left + (d && ((i = u.visualViewport) == null ? void 0 : i.offsetLeft) || 0)) / a.x, y = (r.top + (d && ((s = u.visualViewport) == null ? void 0 : s.offsetTop) || 0)) / a.y, p = r.width / a.x, f = r.height / a.y;
896
896
  if (l) {
897
- const m = H(l), v = n && ee(n) ? H(n) : n;
898
- let g = m.frameElement;
899
- for (; g && n && v !== m; ) {
900
- const w = ue(g), T = g.getBoundingClientRect(), C = getComputedStyle(g);
901
- T.x += (g.clientLeft + parseFloat(C.paddingLeft)) * w.x, T.y += (g.clientTop + parseFloat(C.paddingTop)) * w.y, p *= w.x, y *= w.y, h *= w.x, f *= w.y, p += T.x, y += T.y, g = H(g).frameElement;
897
+ const g = R(l), w = n && ne(n) ? R(n) : n;
898
+ let v = g.frameElement;
899
+ for (; v && n && w !== g; ) {
900
+ const x = ce(v), T = v.getBoundingClientRect(), B = getComputedStyle(v);
901
+ T.x += (v.clientLeft + parseFloat(B.paddingLeft)) * x.x, T.y += (v.clientTop + parseFloat(B.paddingTop)) * x.y, c *= x.x, y *= x.y, p *= x.x, f *= x.y, c += T.x, y += T.y, v = R(v).frameElement;
902
902
  }
903
903
  }
904
- return { width: h, height: f, top: y, right: p + h, bottom: y + f, left: p, x: p, y };
904
+ return { width: p, height: f, top: y, right: c + p, bottom: y + f, left: c, x: c, y };
905
905
  }
906
- function te(e) {
907
- return ((Pt(e) ? e.ownerDocument : e.document) || window.document).documentElement;
906
+ function ie(e) {
907
+ return ((Mt(e) ? e.ownerDocument : e.document) || window.document).documentElement;
908
908
  }
909
- function ze(e) {
910
- return ee(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
909
+ function Re(e) {
910
+ return ne(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
911
911
  }
912
- function At(e) {
913
- return we(te(e)).left + ze(e).scrollLeft;
912
+ function Dt(e) {
913
+ return be(ie(e)).left + Re(e).scrollLeft;
914
914
  }
915
915
  function xe(e) {
916
- if (oe(e) === "html")
916
+ if (se(e) === "html")
917
917
  return e;
918
- const t = e.assignedSlot || e.parentNode || nt(e) && e.host || te(e);
919
- return nt(t) ? t.host : t;
918
+ const t = e.assignedSlot || e.parentNode || at(e) && e.host || ie(e);
919
+ return at(t) ? t.host : t;
920
920
  }
921
- function kt(e) {
921
+ function Et(e) {
922
922
  const t = xe(e);
923
- return Ke(t) ? t.ownerDocument.body : U(t) && Ne(t) ? t : kt(t);
923
+ return tt(t) ? t.ownerDocument.body : K(t) && He(t) ? t : Et(t);
924
924
  }
925
- function Ae(e, t) {
925
+ function ze(e, t) {
926
926
  var o;
927
927
  t === void 0 && (t = []);
928
- const n = kt(e), i = n === ((o = e.ownerDocument) == null ? void 0 : o.body), s = H(n);
929
- return i ? t.concat(s, s.visualViewport || [], Ne(n) ? n : []) : t.concat(n, Ae(n));
928
+ const n = Et(e), i = n === ((o = e.ownerDocument) == null ? void 0 : o.body), s = R(n);
929
+ return i ? t.concat(s, s.visualViewport || [], He(n) ? n : []) : t.concat(n, ze(n));
930
930
  }
931
- function it(e, t, o) {
932
- return t === "viewport" ? he(function(n, i) {
933
- const s = H(n), r = te(n), l = s.visualViewport;
934
- let u = r.clientWidth, a = r.clientHeight, d = 0, p = 0;
931
+ function ut(e, t, o) {
932
+ return t === "viewport" ? ye(function(n, i) {
933
+ const s = R(n), r = ie(n), l = s.visualViewport;
934
+ let a = r.clientWidth, u = r.clientHeight, d = 0, c = 0;
935
935
  if (l) {
936
- u = l.width, a = l.height;
937
- const y = St();
938
- (y || !y && i === "fixed") && (d = l.offsetLeft, p = l.offsetTop);
936
+ a = l.width, u = l.height;
937
+ const y = Lt();
938
+ (y || !y && i === "fixed") && (d = l.offsetLeft, c = l.offsetTop);
939
939
  }
940
- return { width: u, height: a, x: d, y: p };
941
- }(e, o)) : ee(t) ? he(function(n, i) {
942
- const s = we(n, !0, i === "fixed"), r = s.top + n.clientTop, l = s.left + n.clientLeft, u = U(n) ? ue(n) : { x: 1, y: 1 };
943
- return { width: n.clientWidth * u.x, height: n.clientHeight * u.y, x: l * u.x, y: r * u.y };
944
- }(t, o)) : he(function(n) {
945
- const i = te(n), s = ze(n), r = n.ownerDocument.body, l = ye(i.scrollWidth, i.clientWidth, r.scrollWidth, r.clientWidth), u = ye(i.scrollHeight, i.clientHeight, r.scrollHeight, r.clientHeight);
946
- let a = -s.scrollLeft + At(n);
940
+ return { width: a, height: u, x: d, y: c };
941
+ }(e, o)) : ne(t) ? ye(function(n, i) {
942
+ const s = be(n, !0, i === "fixed"), r = s.top + n.clientTop, l = s.left + n.clientLeft, a = K(n) ? ce(n) : { x: 1, y: 1 };
943
+ return { width: n.clientWidth * a.x, height: n.clientHeight * a.y, x: l * a.x, y: r * a.y };
944
+ }(t, o)) : ye(function(n) {
945
+ const i = ie(n), s = Re(n), r = n.ownerDocument.body, l = fe(i.scrollWidth, i.clientWidth, r.scrollWidth, r.clientWidth), a = fe(i.scrollHeight, i.clientHeight, r.scrollHeight, r.clientHeight);
946
+ let u = -s.scrollLeft + Dt(n);
947
947
  const d = -s.scrollTop;
948
- return G(r).direction === "rtl" && (a += ye(i.clientWidth, r.clientWidth) - l), { width: l, height: u, x: a, y: d };
949
- }(te(e)));
950
- }
951
- function st(e) {
952
- return U(e) && G(e).position !== "fixed" ? e.offsetParent : null;
953
- }
954
- function rt(e) {
955
- const t = H(e);
956
- let o = st(e);
957
- for (; o && Oo(o) && G(o).position === "static"; )
958
- o = st(o);
959
- return o && (oe(o) === "html" || oe(o) === "body" && G(o).position === "static" && !Fe(o)) ? t : o || function(n) {
948
+ return X(r).direction === "rtl" && (u += fe(i.clientWidth, r.clientWidth) - l), { width: l, height: a, x: u, y: d };
949
+ }(ie(e)));
950
+ }
951
+ function dt(e) {
952
+ return K(e) && X(e).position !== "fixed" ? e.offsetParent : null;
953
+ }
954
+ function ct(e) {
955
+ const t = R(e);
956
+ let o = dt(e);
957
+ for (; o && Zo(o) && X(o).position === "static"; )
958
+ o = dt(o);
959
+ return o && (se(o) === "html" || se(o) === "body" && X(o).position === "static" && !Ue(o)) ? t : o || function(n) {
960
960
  let i = xe(n);
961
- for (; U(i) && !Ke(i); ) {
962
- if (Fe(i))
961
+ for (; K(i) && !tt(i); ) {
962
+ if (Ue(i))
963
963
  return i;
964
964
  i = xe(i);
965
965
  }
966
966
  return null;
967
967
  }(e) || t;
968
968
  }
969
- function No(e, t, o) {
970
- const n = U(t), i = te(t), s = we(e, !0, o === "fixed", t);
969
+ function Qo(e, t, o) {
970
+ const n = K(t), i = ie(t), s = be(e, !0, o === "fixed", t);
971
971
  let r = { scrollLeft: 0, scrollTop: 0 };
972
972
  const l = { x: 0, y: 0 };
973
973
  if (n || !n && o !== "fixed")
974
- if ((oe(t) !== "body" || Ne(i)) && (r = ze(t)), U(t)) {
975
- const u = we(t, !0);
976
- l.x = u.x + t.clientLeft, l.y = u.y + t.clientTop;
974
+ if ((se(t) !== "body" || He(i)) && (r = Re(t)), K(t)) {
975
+ const a = be(t, !0);
976
+ l.x = a.x + t.clientLeft, l.y = a.y + t.clientTop;
977
977
  } else
978
- i && (l.x = At(i));
978
+ i && (l.x = Dt(i));
979
979
  return { x: s.left + r.scrollLeft - l.x, y: s.top + r.scrollTop - l.y, width: s.width, height: s.height };
980
980
  }
981
- const zo = { getClippingRect: function(e) {
981
+ const Jo = { getClippingRect: function(e) {
982
982
  let { element: t, boundary: o, rootBoundary: n, strategy: i } = e;
983
- const s = o === "clippingAncestors" ? function(a, d) {
984
- const p = d.get(a);
985
- if (p)
986
- return p;
987
- let y = Ae(a).filter((v) => ee(v) && oe(v) !== "body"), h = null;
988
- const f = G(a).position === "fixed";
989
- let m = f ? xe(a) : a;
990
- for (; ee(m) && !Ke(m); ) {
991
- const v = G(m), g = Fe(m);
992
- (f ? g || h : g || v.position !== "static" || !h || !["absolute", "fixed"].includes(h.position)) ? h = v : y = y.filter((w) => w !== m), m = xe(m);
983
+ const s = o === "clippingAncestors" ? function(u, d) {
984
+ const c = d.get(u);
985
+ if (c)
986
+ return c;
987
+ let y = ze(u).filter((w) => ne(w) && se(w) !== "body"), p = null;
988
+ const f = X(u).position === "fixed";
989
+ let g = f ? xe(u) : u;
990
+ for (; ne(g) && !tt(g); ) {
991
+ const w = X(g), v = Ue(g);
992
+ (f ? v || p : v || w.position !== "static" || !p || !["absolute", "fixed"].includes(p.position)) ? p = w : y = y.filter((x) => x !== g), g = xe(g);
993
993
  }
994
- return d.set(a, y), y;
995
- }(t, this._c) : [].concat(o), r = [...s, n], l = r[0], u = r.reduce((a, d) => {
996
- const p = it(t, d, i);
997
- return a.top = ye(p.top, a.top), a.right = ot(p.right, a.right), a.bottom = ot(p.bottom, a.bottom), a.left = ye(p.left, a.left), a;
998
- }, it(t, l, i));
999
- return { width: u.right - u.left, height: u.bottom - u.top, x: u.left, y: u.top };
994
+ return d.set(u, y), y;
995
+ }(t, this._c) : [].concat(o), r = [...s, n], l = r[0], a = r.reduce((u, d) => {
996
+ const c = ut(t, d, i);
997
+ return u.top = fe(c.top, u.top), u.right = lt(c.right, u.right), u.bottom = lt(c.bottom, u.bottom), u.left = fe(c.left, u.left), u;
998
+ }, ut(t, l, i));
999
+ return { width: a.right - a.left, height: a.bottom - a.top, x: a.left, y: a.top };
1000
1000
  }, convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
1001
1001
  let { rect: t, offsetParent: o, strategy: n } = e;
1002
- const i = U(o), s = te(o);
1002
+ const i = K(o), s = ie(o);
1003
1003
  if (o === s)
1004
1004
  return t;
1005
1005
  let r = { scrollLeft: 0, scrollTop: 0 }, l = { x: 1, y: 1 };
1006
- const u = { x: 0, y: 0 };
1007
- if ((i || !i && n !== "fixed") && ((oe(o) !== "body" || Ne(s)) && (r = ze(o)), U(o))) {
1008
- const a = we(o);
1009
- l = ue(o), u.x = a.x + o.clientLeft, u.y = a.y + o.clientTop;
1006
+ const a = { x: 0, y: 0 };
1007
+ if ((i || !i && n !== "fixed") && ((se(o) !== "body" || He(s)) && (r = Re(o)), K(o))) {
1008
+ const u = be(o);
1009
+ l = ce(o), a.x = u.x + o.clientLeft, a.y = u.y + o.clientTop;
1010
1010
  }
1011
- return { width: t.width * l.x, height: t.height * l.y, x: t.x * l.x - r.scrollLeft * l.x + u.x, y: t.y * l.y - r.scrollTop * l.y + u.y };
1012
- }, isElement: ee, getDimensions: function(e) {
1013
- return U(e) ? $t(e) : e.getBoundingClientRect();
1014
- }, getOffsetParent: rt, getDocumentElement: te, getScale: ue, async getElementRects(e) {
1011
+ return { width: t.width * l.x, height: t.height * l.y, x: t.x * l.x - r.scrollLeft * l.x + a.x, y: t.y * l.y - r.scrollTop * l.y + a.y };
1012
+ }, isElement: ne, getDimensions: function(e) {
1013
+ return K(e) ? zt(e) : e.getBoundingClientRect();
1014
+ }, getOffsetParent: ct, getDocumentElement: ie, getScale: ce, async getElementRects(e) {
1015
1015
  let { reference: t, floating: o, strategy: n } = e;
1016
- const i = this.getOffsetParent || rt, s = this.getDimensions;
1017
- return { reference: No(t, await i(o), n), floating: { x: 0, y: 0, ...await s(o) } };
1018
- }, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => G(e).direction === "rtl" }, Ro = (e, t, o) => {
1019
- const n = /* @__PURE__ */ new Map(), i = { platform: zo, ...o }, s = { ...i.platform, _c: n };
1020
- return _o(e, t, { ...i, platform: s });
1021
- }, le = {
1016
+ const i = this.getOffsetParent || ct, s = this.getDimensions;
1017
+ return { reference: Qo(t, await i(o), n), floating: { x: 0, y: 0, ...await s(o) } };
1018
+ }, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => X(e).direction === "rtl" }, en = (e, t, o) => {
1019
+ const n = /* @__PURE__ */ new Map(), i = { platform: Jo, ...o }, s = { ...i.platform, _c: n };
1020
+ return Vo(e, t, { ...i, platform: s });
1021
+ };
1022
+ function It(e, t) {
1023
+ for (const o in t)
1024
+ Object.prototype.hasOwnProperty.call(t, o) && (typeof t[o] == "object" && e[o] ? It(e[o], t[o]) : e[o] = t[o]);
1025
+ }
1026
+ const j = {
1022
1027
  // Disable popper components
1023
1028
  disabled: !1,
1024
1029
  // Default position offset along main axis (px)
@@ -1032,7 +1037,7 @@ const zo = { getClippingRect: function(e) {
1032
1037
  // Skip delay & CSS transitions when another popper is shown, so that the popper appear to instanly move to the new position.
1033
1038
  instantMove: !1,
1034
1039
  // Auto destroy tooltip DOM nodes (ms)
1035
- disposeTimeout: 5e3,
1040
+ disposeTimeout: 150,
1036
1041
  // Triggers on the popper itself
1037
1042
  popperTriggers: [],
1038
1043
  // Positioning strategy
@@ -1049,6 +1054,10 @@ const zo = { getClippingRect: function(e) {
1049
1054
  arrowPadding: 0,
1050
1055
  // Compute arrow overflow (useful to hide it)
1051
1056
  arrowOverflow: !0,
1057
+ /**
1058
+ * By default, compute autohide on 'click'.
1059
+ */
1060
+ autoHideOnMousedown: !1,
1052
1061
  // Themes
1053
1062
  themes: {
1054
1063
  tooltip: {
@@ -1085,7 +1094,7 @@ const zo = { getClippingRect: function(e) {
1085
1094
  menu: {
1086
1095
  $extend: "dropdown",
1087
1096
  triggers: ["hover", "focus"],
1088
- popperTriggers: ["hover", "focus"],
1097
+ popperTriggers: ["hover"],
1089
1098
  delay: {
1090
1099
  show: 0,
1091
1100
  hide: 400
@@ -1093,96 +1102,96 @@ const zo = { getClippingRect: function(e) {
1093
1102
  }
1094
1103
  }
1095
1104
  };
1096
- function Ve(e, t) {
1097
- let o = le.themes[e] || {}, n;
1105
+ function $e(e, t) {
1106
+ let o = j.themes[e] || {}, n;
1098
1107
  do
1099
- n = o[t], typeof n > "u" ? o.$extend ? o = le.themes[o.$extend] || {} : (o = null, n = le[t]) : o = null;
1108
+ n = o[t], typeof n > "u" ? o.$extend ? o = j.themes[o.$extend] || {} : (o = null, n = j[t]) : o = null;
1100
1109
  while (o);
1101
1110
  return n;
1102
1111
  }
1103
- function Do(e) {
1112
+ function tn(e) {
1104
1113
  const t = [e];
1105
- let o = le.themes[e] || {};
1114
+ let o = j.themes[e] || {};
1106
1115
  do
1107
- o.$extend && !o.$resetCss ? (t.push(o.$extend), o = le.themes[o.$extend] || {}) : o = null;
1116
+ o.$extend && !o.$resetCss ? (t.push(o.$extend), o = j.themes[o.$extend] || {}) : o = null;
1108
1117
  while (o);
1109
1118
  return t.map((n) => `v-popper--theme-${n}`);
1110
1119
  }
1111
- function lt(e) {
1120
+ function pt(e) {
1112
1121
  const t = [e];
1113
- let o = le.themes[e] || {};
1122
+ let o = j.themes[e] || {};
1114
1123
  do
1115
- o.$extend ? (t.push(o.$extend), o = le.themes[o.$extend] || {}) : o = null;
1124
+ o.$extend ? (t.push(o.$extend), o = j.themes[o.$extend] || {}) : o = null;
1116
1125
  while (o);
1117
1126
  return t;
1118
1127
  }
1119
- let ce = !1;
1128
+ let he = !1;
1120
1129
  if (typeof window < "u") {
1121
- ce = !1;
1130
+ he = !1;
1122
1131
  try {
1123
1132
  const e = Object.defineProperty({}, "passive", {
1124
1133
  get() {
1125
- ce = !0;
1134
+ he = !0;
1126
1135
  }
1127
1136
  });
1128
1137
  window.addEventListener("test", null, e);
1129
1138
  } catch {
1130
1139
  }
1131
1140
  }
1132
- let Ot = !1;
1133
- typeof window < "u" && typeof navigator < "u" && (Ot = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
1134
- const Lo = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat([
1141
+ let Ft = !1;
1142
+ typeof window < "u" && typeof navigator < "u" && (Ft = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
1143
+ const Vt = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat([
1135
1144
  t,
1136
1145
  `${t}-start`,
1137
1146
  `${t}-end`
1138
- ]), []), at = {
1147
+ ]), []), ht = {
1139
1148
  hover: "mouseenter",
1140
1149
  focus: "focus",
1141
1150
  click: "click",
1142
1151
  touch: "touchstart",
1143
1152
  pointer: "pointerdown"
1144
- }, ut = {
1153
+ }, yt = {
1145
1154
  hover: "mouseleave",
1146
1155
  focus: "blur",
1147
1156
  click: "click",
1148
1157
  touch: "touchend",
1149
1158
  pointer: "pointerup"
1150
1159
  };
1151
- function dt(e, t) {
1160
+ function ft(e, t) {
1152
1161
  const o = e.indexOf(t);
1153
1162
  o !== -1 && e.splice(o, 1);
1154
1163
  }
1155
- function Le() {
1164
+ function Fe() {
1156
1165
  return new Promise((e) => requestAnimationFrame(() => {
1157
1166
  requestAnimationFrame(e);
1158
1167
  }));
1159
1168
  }
1160
1169
  const F = [];
1161
- let ie = null;
1162
- const ct = {};
1163
- function pt(e) {
1164
- let t = ct[e];
1165
- return t || (t = ct[e] = []), t;
1170
+ let le = null;
1171
+ const mt = {};
1172
+ function gt(e) {
1173
+ let t = mt[e];
1174
+ return t || (t = mt[e] = []), t;
1166
1175
  }
1167
- let je = function() {
1176
+ let Ye = function() {
1168
1177
  };
1169
- typeof window < "u" && (je = window.Element);
1178
+ typeof window < "u" && (Ye = window.Element);
1170
1179
  function _(e) {
1171
1180
  return function(t) {
1172
- return Ve(t.theme, e);
1181
+ return $e(t.theme, e);
1173
1182
  };
1174
1183
  }
1175
- const He = "__floating-vue__popper", Nt = () => k({
1184
+ const Ve = "__floating-vue__popper", jt = () => k({
1176
1185
  name: "VPopper",
1177
1186
  provide() {
1178
1187
  return {
1179
- [He]: {
1188
+ [Ve]: {
1180
1189
  parentPopper: this
1181
1190
  }
1182
1191
  };
1183
1192
  },
1184
1193
  inject: {
1185
- [He]: { default: null }
1194
+ [Ve]: { default: null }
1186
1195
  },
1187
1196
  props: {
1188
1197
  theme: {
@@ -1224,7 +1233,7 @@ const He = "__floating-vue__popper", Nt = () => k({
1224
1233
  placement: {
1225
1234
  type: String,
1226
1235
  default: _("placement"),
1227
- validator: (e) => Lo.includes(e)
1236
+ validator: (e) => Vt.includes(e)
1228
1237
  },
1229
1238
  delay: {
1230
1239
  type: [String, Number, Object],
@@ -1263,11 +1272,11 @@ const He = "__floating-vue__popper", Nt = () => k({
1263
1272
  default: _("popperHideTriggers")
1264
1273
  },
1265
1274
  container: {
1266
- type: [String, Object, je, Boolean],
1275
+ type: [String, Object, Ye, Boolean],
1267
1276
  default: _("container")
1268
1277
  },
1269
1278
  boundary: {
1270
- type: [String, je],
1279
+ type: [String, Ye],
1271
1280
  default: _("boundary")
1272
1281
  },
1273
1282
  strategy: {
@@ -1358,18 +1367,17 @@ const He = "__floating-vue__popper", Nt = () => k({
1358
1367
  default: _("disposeTimeout")
1359
1368
  }
1360
1369
  },
1361
- emits: [
1362
- "show",
1363
- "hide",
1364
- "update:shown",
1365
- "apply-show",
1366
- "apply-hide",
1367
- "close-group",
1368
- "close-directive",
1369
- "auto-hide",
1370
- "resize",
1371
- "dispose"
1372
- ],
1370
+ emits: {
1371
+ show: () => !0,
1372
+ hide: () => !0,
1373
+ "update:shown": (e) => !0,
1374
+ "apply-show": () => !0,
1375
+ "apply-hide": () => !0,
1376
+ "close-group": () => !0,
1377
+ "close-directive": () => !0,
1378
+ "auto-hide": () => !0,
1379
+ resize: () => !0
1380
+ },
1373
1381
  data() {
1374
1382
  return {
1375
1383
  isShown: !1,
@@ -1393,8 +1401,13 @@ const He = "__floating-vue__popper", Nt = () => k({
1393
1401
  },
1394
1402
  transformOrigin: null
1395
1403
  },
1404
+ randomId: `popper_${[Math.random(), Date.now()].map((e) => e.toString(36).substring(2, 10)).join("_")}`,
1396
1405
  shownChildren: /* @__PURE__ */ new Set(),
1397
- lastAutoHide: !0
1406
+ lastAutoHide: !0,
1407
+ pendingHide: !1,
1408
+ containsGlobalTarget: !1,
1409
+ isDisposed: !0,
1410
+ mouseDownContains: !1
1398
1411
  };
1399
1412
  },
1400
1413
  computed: {
@@ -1425,7 +1438,7 @@ const He = "__floating-vue__popper", Nt = () => k({
1425
1438
  },
1426
1439
  parentPopper() {
1427
1440
  var e;
1428
- return (e = this[He]) == null ? void 0 : e.parentPopper;
1441
+ return (e = this[Ve]) == null ? void 0 : e.parentPopper;
1429
1442
  },
1430
1443
  hasPopperShowTriggerHover() {
1431
1444
  var e, t;
@@ -1440,10 +1453,11 @@ const He = "__floating-vue__popper", Nt = () => k({
1440
1453
  async container() {
1441
1454
  this.isShown && (this.$_ensureTeleport(), await this.$_computePosition());
1442
1455
  },
1443
- ...[
1444
- "triggers",
1445
- "positioningDisabled"
1446
- ].reduce((e, t) => (e[t] = "$_refreshListeners", e), {}),
1456
+ triggers: {
1457
+ handler: "$_refreshListeners",
1458
+ deep: !0
1459
+ },
1460
+ positioningDisabled: "$_refreshListeners",
1447
1461
  ...[
1448
1462
  "placement",
1449
1463
  "distance",
@@ -1459,7 +1473,7 @@ const He = "__floating-vue__popper", Nt = () => k({
1459
1473
  ].reduce((e, t) => (e[t] = "$_computePosition", e), {})
1460
1474
  },
1461
1475
  created() {
1462
- this.$_isDisposed = !0, this.randomId = `popper_${[Math.random(), Date.now()].map((e) => e.toString(36).substring(2, 10)).join("_")}`, this.autoMinSize && console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'), this.autoMaxSize && console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.");
1476
+ this.autoMinSize && console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'), this.autoMaxSize && console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.");
1463
1477
  },
1464
1478
  mounted() {
1465
1479
  this.init(), this.$_detachPopperNode();
@@ -1476,7 +1490,7 @@ const He = "__floating-vue__popper", Nt = () => k({
1476
1490
  methods: {
1477
1491
  show({ event: e = null, skipDelay: t = !1, force: o = !1 } = {}) {
1478
1492
  var n, i;
1479
- (n = this.parentPopper) != null && n.lockedChild && this.parentPopper.lockedChild !== this || (this.$_pendingHide = !1, (o || !this.disabled) && (((i = this.parentPopper) == null ? void 0 : i.lockedChild) === this && (this.parentPopper.lockedChild = null), this.$_scheduleShow(e, t), this.$emit("show"), this.$_showFrameLocked = !0, requestAnimationFrame(() => {
1493
+ (n = this.parentPopper) != null && n.lockedChild && this.parentPopper.lockedChild !== this || (this.pendingHide = !1, (o || !this.disabled) && (((i = this.parentPopper) == null ? void 0 : i.lockedChild) === this && (this.parentPopper.lockedChild = null), this.$_scheduleShow(e, t), this.$emit("show"), this.$_showFrameLocked = !0, requestAnimationFrame(() => {
1480
1494
  this.$_showFrameLocked = !1;
1481
1495
  })), this.$emit("update:shown", !0));
1482
1496
  },
@@ -1484,7 +1498,7 @@ const He = "__floating-vue__popper", Nt = () => k({
1484
1498
  var o;
1485
1499
  if (!this.$_hideInProgress) {
1486
1500
  if (this.shownChildren.size > 0) {
1487
- this.$_pendingHide = !0;
1501
+ this.pendingHide = !0;
1488
1502
  return;
1489
1503
  }
1490
1504
  if (this.hasPopperShowTriggerHover && this.$_isAimingPopper()) {
@@ -1493,41 +1507,41 @@ const He = "__floating-vue__popper", Nt = () => k({
1493
1507
  }, 1e3));
1494
1508
  return;
1495
1509
  }
1496
- ((o = this.parentPopper) == null ? void 0 : o.lockedChild) === this && (this.parentPopper.lockedChild = null), this.$_pendingHide = !1, this.$_scheduleHide(e, t), this.$emit("hide"), this.$emit("update:shown", !1);
1510
+ ((o = this.parentPopper) == null ? void 0 : o.lockedChild) === this && (this.parentPopper.lockedChild = null), this.pendingHide = !1, this.$_scheduleHide(e, t), this.$emit("hide"), this.$emit("update:shown", !1);
1497
1511
  }
1498
1512
  },
1499
1513
  init() {
1500
1514
  var e;
1501
- this.$_isDisposed && (this.$_isDisposed = !1, this.isMounted = !1, this.$_events = [], this.$_preventShow = !1, this.$_referenceNode = ((e = this.referenceNode) == null ? void 0 : e.call(this)) ?? this.$el, this.$_targetNodes = this.targetNodes().filter((t) => t.nodeType === t.ELEMENT_NODE), this.$_popperNode = this.popperNode(), this.$_innerNode = this.$_popperNode.querySelector(".v-popper__inner"), this.$_arrowNode = this.$_popperNode.querySelector(".v-popper__arrow-container"), this.$_swapTargetAttrs("title", "data-original-title"), this.$_detachPopperNode(), this.triggers.length && this.$_addEventListeners(), this.shown && this.show());
1515
+ this.isDisposed && (this.isDisposed = !1, this.isMounted = !1, this.$_events = [], this.$_preventShow = !1, this.$_referenceNode = ((e = this.referenceNode) == null ? void 0 : e.call(this)) ?? this.$el, this.$_targetNodes = this.targetNodes().filter((t) => t.nodeType === t.ELEMENT_NODE), this.$_popperNode = this.popperNode(), this.$_innerNode = this.$_popperNode.querySelector(".v-popper__inner"), this.$_arrowNode = this.$_popperNode.querySelector(".v-popper__arrow-container"), this.$_swapTargetAttrs("title", "data-original-title"), this.$_detachPopperNode(), this.triggers.length && this.$_addEventListeners(), this.shown && this.show());
1502
1516
  },
1503
1517
  dispose() {
1504
- this.$_isDisposed || (this.$_isDisposed = !0, this.$_removeEventListeners(), this.hide({ skipDelay: !0 }), this.$_detachPopperNode(), this.isMounted = !1, this.isShown = !1, this.$_updateParentShownChildren(!1), this.$_swapTargetAttrs("data-original-title", "title"), this.$emit("dispose"));
1518
+ this.isDisposed || (this.isDisposed = !0, this.$_removeEventListeners(), this.hide({ skipDelay: !0 }), this.$_detachPopperNode(), this.isMounted = !1, this.isShown = !1, this.$_updateParentShownChildren(!1), this.$_swapTargetAttrs("data-original-title", "title"));
1505
1519
  },
1506
1520
  async onResize() {
1507
1521
  this.isShown && (await this.$_computePosition(), this.$emit("resize"));
1508
1522
  },
1509
1523
  async $_computePosition() {
1510
- if (this.$_isDisposed || this.positioningDisabled)
1524
+ if (this.isDisposed || this.positioningDisabled)
1511
1525
  return;
1512
1526
  const e = {
1513
1527
  strategy: this.strategy,
1514
1528
  middleware: []
1515
1529
  };
1516
- (this.distance || this.skidding) && e.middleware.push(Bo({
1530
+ (this.distance || this.skidding) && e.middleware.push(Yo({
1517
1531
  mainAxis: this.distance,
1518
1532
  crossAxis: this.skidding
1519
1533
  }));
1520
1534
  const t = this.placement.startsWith("auto");
1521
- if (t ? e.middleware.push(Po({
1535
+ if (t ? e.middleware.push(qo({
1522
1536
  alignment: this.placement.split("-")[1] ?? ""
1523
- })) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(Ao({
1537
+ })) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(Xo({
1524
1538
  padding: this.overflowPadding,
1525
1539
  boundary: this.boundary,
1526
1540
  crossAxis: this.shiftCrossAxis
1527
- })), !t && this.flip && e.middleware.push(So({
1541
+ })), !t && this.flip && e.middleware.push(Go({
1528
1542
  padding: this.overflowPadding,
1529
1543
  boundary: this.boundary
1530
- }))), e.middleware.push($o({
1544
+ }))), e.middleware.push(jo({
1531
1545
  element: this.$_arrowNode,
1532
1546
  padding: this.arrowPadding
1533
1547
  })), this.arrowOverflow && e.middleware.push({
@@ -1549,8 +1563,8 @@ const He = "__floating-vue__popper", Nt = () => k({
1549
1563
  var l;
1550
1564
  if ((l = r.autoSize) != null && l.skip)
1551
1565
  return {};
1552
- let u, a;
1553
- return s.startsWith("top") || s.startsWith("bottom") ? u = i.reference.width : a = i.reference.height, this.$_innerNode.style[n === "min" ? "minWidth" : n === "max" ? "maxWidth" : "width"] = u != null ? `${u}px` : null, this.$_innerNode.style[n === "min" ? "minHeight" : n === "max" ? "maxHeight" : "height"] = a != null ? `${a}px` : null, {
1566
+ let a, u;
1567
+ return s.startsWith("top") || s.startsWith("bottom") ? a = i.reference.width : u = i.reference.height, this.$_innerNode.style[n === "min" ? "minWidth" : n === "max" ? "maxWidth" : "width"] = a != null ? `${a}px` : null, this.$_innerNode.style[n === "min" ? "minHeight" : n === "max" ? "maxHeight" : "height"] = u != null ? `${u}px` : null, {
1554
1568
  data: {
1555
1569
  skip: !0
1556
1570
  },
@@ -1561,14 +1575,14 @@ const He = "__floating-vue__popper", Nt = () => k({
1561
1575
  }
1562
1576
  });
1563
1577
  }
1564
- (this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(ko({
1578
+ (this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(Ko({
1565
1579
  boundary: this.boundary,
1566
1580
  padding: this.overflowPadding,
1567
1581
  apply: ({ availableWidth: n, availableHeight: i }) => {
1568
1582
  this.$_innerNode.style.maxWidth = n != null ? `${n}px` : null, this.$_innerNode.style.maxHeight = i != null ? `${i}px` : null;
1569
1583
  }
1570
1584
  })));
1571
- const o = await Ro(this.$_referenceNode, this.$_popperNode, e);
1585
+ const o = await en(this.$_referenceNode, this.$_popperNode, e);
1572
1586
  Object.assign(this.result, {
1573
1587
  x: o.x,
1574
1588
  y: o.y,
@@ -1580,28 +1594,28 @@ const He = "__floating-vue__popper", Nt = () => k({
1580
1594
  }
1581
1595
  });
1582
1596
  },
1583
- $_scheduleShow(e = null, t = !1) {
1584
- if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer), ie && this.instantMove && ie.instantMove && ie !== this.parentPopper) {
1585
- ie.$_applyHide(!0), this.$_applyShow(!0);
1597
+ $_scheduleShow(e, t = !1) {
1598
+ if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer), le && this.instantMove && le.instantMove && le !== this.parentPopper) {
1599
+ le.$_applyHide(!0), this.$_applyShow(!0);
1586
1600
  return;
1587
1601
  }
1588
1602
  t ? this.$_applyShow() : this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
1589
1603
  },
1590
- $_scheduleHide(e = null, t = !1) {
1604
+ $_scheduleHide(e, t = !1) {
1591
1605
  if (this.shownChildren.size > 0) {
1592
- this.$_pendingHide = !0;
1606
+ this.pendingHide = !0;
1593
1607
  return;
1594
1608
  }
1595
- this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (ie = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
1609
+ this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (le = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
1596
1610
  },
1597
1611
  $_computeDelay(e) {
1598
1612
  const t = this.delay;
1599
1613
  return parseInt(t && t[e] || t || 0);
1600
1614
  },
1601
1615
  async $_applyShow(e = !1) {
1602
- clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await Le(), await this.$_computePosition(), await this.$_applyShowEffect(), this.positioningDisabled || this.$_registerEventListeners([
1603
- ...Ae(this.$_referenceNode),
1604
- ...Ae(this.$_popperNode)
1616
+ clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await Fe(), await this.$_computePosition(), await this.$_applyShowEffect(), this.positioningDisabled || this.$_registerEventListeners([
1617
+ ...ze(this.$_referenceNode),
1618
+ ...ze(this.$_popperNode)
1605
1619
  ], "scroll", () => {
1606
1620
  this.$_computePosition();
1607
1621
  }));
@@ -1624,36 +1638,36 @@ const He = "__floating-vue__popper", Nt = () => k({
1624
1638
  t = F[o], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
1625
1639
  }
1626
1640
  F.push(this), document.body.classList.add("v-popper--some-open");
1627
- for (const t of lt(this.theme))
1628
- pt(t).push(this), document.body.classList.add(`v-popper--some-open--${t}`);
1629
- this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await Le(), this.classes.showFrom = !1, this.classes.showTo = !0, this.noAutoFocus || this.$_popperNode.focus();
1641
+ for (const t of pt(this.theme))
1642
+ gt(t).push(this), document.body.classList.add(`v-popper--some-open--${t}`);
1643
+ this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await Fe(), this.classes.showFrom = !1, this.classes.showTo = !0, this.noAutoFocus || this.$_popperNode.focus();
1630
1644
  },
1631
1645
  async $_applyHide(e = !1) {
1632
1646
  if (this.shownChildren.size > 0) {
1633
- this.$_pendingHide = !0, this.$_hideInProgress = !1;
1647
+ this.pendingHide = !0, this.$_hideInProgress = !1;
1634
1648
  return;
1635
1649
  }
1636
1650
  if (clearTimeout(this.$_scheduleTimer), !this.isShown)
1637
1651
  return;
1638
- this.skipTransition = e, dt(F, this), F.length === 0 && document.body.classList.remove("v-popper--some-open");
1639
- for (const o of lt(this.theme)) {
1640
- const n = pt(o);
1641
- dt(n, this), n.length === 0 && document.body.classList.remove(`v-popper--some-open--${o}`);
1652
+ this.skipTransition = e, ft(F, this), F.length === 0 && document.body.classList.remove("v-popper--some-open");
1653
+ for (const o of pt(this.theme)) {
1654
+ const n = gt(o);
1655
+ ft(n, this), n.length === 0 && document.body.classList.remove(`v-popper--some-open--${o}`);
1642
1656
  }
1643
- ie === this && (ie = null), this.isShown = !1, this.$_applyAttrsToTarget({
1657
+ le === this && (le = null), this.isShown = !1, this.$_applyAttrsToTarget({
1644
1658
  "aria-describedby": void 0,
1645
1659
  "data-popper-shown": void 0
1646
1660
  }), clearTimeout(this.$_disposeTimer);
1647
1661
  const t = this.disposeTimeout;
1648
1662
  t !== null && (this.$_disposeTimer = setTimeout(() => {
1649
1663
  this.$_popperNode && (this.$_detachPopperNode(), this.isMounted = !1);
1650
- }, t)), this.$_removeEventListeners("scroll"), this.$emit("apply-hide"), this.classes.showFrom = !1, this.classes.showTo = !1, this.classes.hideFrom = !0, this.classes.hideTo = !1, await Le(), this.classes.hideFrom = !1, this.classes.hideTo = !0;
1664
+ }, t)), this.$_removeEventListeners("scroll"), this.$emit("apply-hide"), this.classes.showFrom = !1, this.classes.showTo = !1, this.classes.hideFrom = !0, this.classes.hideTo = !1, await Fe(), this.classes.hideFrom = !1, this.classes.hideTo = !0;
1651
1665
  },
1652
1666
  $_autoShowHide() {
1653
1667
  this.shown ? this.show() : this.hide();
1654
1668
  },
1655
1669
  $_ensureTeleport() {
1656
- if (this.$_isDisposed)
1670
+ if (this.isDisposed)
1657
1671
  return;
1658
1672
  let e = this.container;
1659
1673
  if (typeof e == "string" ? e = window.document.querySelector(e) : e === !1 && (e = this.$_targetNodes[0].parentNode), !e)
@@ -1664,14 +1678,14 @@ const He = "__floating-vue__popper", Nt = () => k({
1664
1678
  const e = (o) => {
1665
1679
  this.isShown && !this.$_hideInProgress || (o.usedByTooltip = !0, !this.$_preventShow && this.show({ event: o }));
1666
1680
  };
1667
- this.$_registerTriggerListeners(this.$_targetNodes, at, this.triggers, this.showTriggers, e), this.$_registerTriggerListeners([this.$_popperNode], at, this.popperTriggers, this.popperShowTriggers, e);
1681
+ this.$_registerTriggerListeners(this.$_targetNodes, ht, this.triggers, this.showTriggers, e), this.$_registerTriggerListeners([this.$_popperNode], ht, this.popperTriggers, this.popperShowTriggers, e);
1668
1682
  const t = (o) => {
1669
1683
  o.usedByTooltip || this.hide({ event: o });
1670
1684
  };
1671
- this.$_registerTriggerListeners(this.$_targetNodes, ut, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], ut, this.popperTriggers, this.popperHideTriggers, t);
1685
+ this.$_registerTriggerListeners(this.$_targetNodes, yt, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], yt, this.popperTriggers, this.popperHideTriggers, t);
1672
1686
  },
1673
1687
  $_registerEventListeners(e, t, o) {
1674
- this.$_events.push({ targetNodes: e, eventType: t, handler: o }), e.forEach((n) => n.addEventListener(t, o, ce ? {
1688
+ this.$_events.push({ targetNodes: e, eventType: t, handler: o }), e.forEach((n) => n.addEventListener(t, o, he ? {
1675
1689
  passive: !0
1676
1690
  } : void 0));
1677
1691
  },
@@ -1690,7 +1704,7 @@ const He = "__floating-vue__popper", Nt = () => k({
1690
1704
  }), this.$_events = t;
1691
1705
  },
1692
1706
  $_refreshListeners() {
1693
- this.$_isDisposed || (this.$_removeEventListeners(), this.$_addEventListeners());
1707
+ this.isDisposed || (this.$_removeEventListeners(), this.$_addEventListeners());
1694
1708
  },
1695
1709
  $_handleGlobalClose(e, t = !1) {
1696
1710
  this.$_showFrameLocked || (this.hide({ event: e }), e.closePopover ? this.$emit("close-directive") : this.$emit("auto-hide"), t && (this.$_preventShow = !0, setTimeout(() => {
@@ -1716,16 +1730,16 @@ const He = "__floating-vue__popper", Nt = () => k({
1716
1730
  $_updateParentShownChildren(e) {
1717
1731
  let t = this.parentPopper;
1718
1732
  for (; t; )
1719
- e ? t.shownChildren.add(this.randomId) : (t.shownChildren.delete(this.randomId), t.$_pendingHide && t.hide()), t = t.parentPopper;
1733
+ e ? t.shownChildren.add(this.randomId) : (t.shownChildren.delete(this.randomId), t.pendingHide && t.hide()), t = t.parentPopper;
1720
1734
  },
1721
1735
  $_isAimingPopper() {
1722
1736
  const e = this.$_referenceNode.getBoundingClientRect();
1723
- if (fe >= e.left && fe <= e.right && me >= e.top && me <= e.bottom) {
1724
- const t = this.$_popperNode.getBoundingClientRect(), o = fe - J, n = me - Q, i = t.left + t.width / 2 - J + (t.top + t.height / 2) - Q + t.width + t.height, s = J + o * i, r = Q + n * i;
1725
- return $e(J, Q, s, r, t.left, t.top, t.left, t.bottom) || // Left edge
1726
- $e(J, Q, s, r, t.left, t.top, t.right, t.top) || // Top edge
1727
- $e(J, Q, s, r, t.right, t.top, t.right, t.bottom) || // Right edge
1728
- $e(J, Q, s, r, t.left, t.bottom, t.right, t.bottom);
1737
+ if (me >= e.left && me <= e.right && ge >= e.top && ge <= e.bottom) {
1738
+ const t = this.$_popperNode.getBoundingClientRect(), o = me - te, n = ge - oe, i = t.left + t.width / 2 - te + (t.top + t.height / 2) - oe + t.width + t.height, s = te + o * i, r = oe + n * i;
1739
+ return Pe(te, oe, s, r, t.left, t.top, t.left, t.bottom) || // Left edge
1740
+ Pe(te, oe, s, r, t.left, t.top, t.right, t.top) || // Top edge
1741
+ Pe(te, oe, s, r, t.right, t.top, t.right, t.bottom) || // Right edge
1742
+ Pe(te, oe, s, r, t.left, t.bottom, t.right, t.bottom);
1729
1743
  }
1730
1744
  return !1;
1731
1745
  }
@@ -1734,37 +1748,40 @@ const He = "__floating-vue__popper", Nt = () => k({
1734
1748
  return this.$slots.default(this.slotData);
1735
1749
  }
1736
1750
  });
1737
- typeof document < "u" && typeof window < "u" && (Ot ? (document.addEventListener("touchstart", ht, ce ? {
1738
- passive: !0,
1739
- capture: !0
1740
- } : !0), document.addEventListener("touchend", Mo, ce ? {
1741
- passive: !0,
1742
- capture: !0
1743
- } : !0)) : (window.addEventListener("mousedown", ht, !0), window.addEventListener("click", Ho, !0)), window.addEventListener("resize", Fo));
1744
- function ht(e) {
1745
- for (let t = 0; t < F.length; t++) {
1746
- const o = F[t];
1747
- try {
1748
- const n = o.popperNode();
1749
- o.$_mouseDownContains = n.contains(e.target);
1750
- } catch {
1751
+ if (typeof document < "u" && typeof window < "u") {
1752
+ if (Ft) {
1753
+ const e = he ? {
1754
+ passive: !0,
1755
+ capture: !0
1756
+ } : !0;
1757
+ document.addEventListener("touchstart", (t) => vt(t, !0), e), document.addEventListener("touchend", (t) => wt(t, !0), e);
1758
+ } else
1759
+ window.addEventListener("mousedown", (e) => vt(e, !1), !0), window.addEventListener("click", (e) => wt(e, !1), !0);
1760
+ window.addEventListener("resize", nn);
1761
+ }
1762
+ function vt(e, t) {
1763
+ if (j.autoHideOnMousedown)
1764
+ Wt(e, t);
1765
+ else
1766
+ for (let o = 0; o < F.length; o++) {
1767
+ const n = F[o];
1768
+ try {
1769
+ n.mouseDownContains = n.popperNode().contains(e.target);
1770
+ } catch {
1771
+ }
1751
1772
  }
1752
- }
1753
1773
  }
1754
- function Ho(e) {
1755
- zt(e);
1774
+ function wt(e, t) {
1775
+ j.autoHideOnMousedown || Wt(e, t);
1756
1776
  }
1757
- function Mo(e) {
1758
- zt(e, !0);
1759
- }
1760
- function zt(e, t = !1) {
1777
+ function Wt(e, t) {
1761
1778
  const o = {};
1762
1779
  for (let n = F.length - 1; n >= 0; n--) {
1763
1780
  const i = F[n];
1764
1781
  try {
1765
- const s = i.$_containsGlobalTarget = Eo(i, e);
1766
- i.$_pendingHide = !1, requestAnimationFrame(() => {
1767
- if (i.$_pendingHide = !1, !o[i.randomId] && yt(i, s, e)) {
1782
+ const s = i.containsGlobalTarget = i.mouseDownContains || i.popperNode().contains(e.target);
1783
+ i.pendingHide = !1, requestAnimationFrame(() => {
1784
+ if (i.pendingHide = !1, !o[i.randomId] && bt(i, s, e)) {
1768
1785
  if (i.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && s) {
1769
1786
  let l = i.parentPopper;
1770
1787
  for (; l; )
@@ -1772,7 +1789,7 @@ function zt(e, t = !1) {
1772
1789
  return;
1773
1790
  }
1774
1791
  let r = i.parentPopper;
1775
- for (; r && yt(r, r.$_containsGlobalTarget, e); )
1792
+ for (; r && bt(r, r.containsGlobalTarget, e); )
1776
1793
  r.$_handleGlobalClose(e, t), r = r.parentPopper;
1777
1794
  }
1778
1795
  });
@@ -1780,54 +1797,50 @@ function zt(e, t = !1) {
1780
1797
  }
1781
1798
  }
1782
1799
  }
1783
- function Eo(e, t) {
1784
- const o = e.popperNode();
1785
- return e.$_mouseDownContains || o.contains(t.target);
1786
- }
1787
- function yt(e, t, o) {
1788
- return o.closeAllPopover || o.closePopover && t || Io(e, o) && !t;
1800
+ function bt(e, t, o) {
1801
+ return o.closeAllPopover || o.closePopover && t || on(e, o) && !t;
1789
1802
  }
1790
- function Io(e, t) {
1803
+ function on(e, t) {
1791
1804
  if (typeof e.autoHide == "function") {
1792
1805
  const o = e.autoHide(t);
1793
1806
  return e.lastAutoHide = o, o;
1794
1807
  }
1795
1808
  return e.autoHide;
1796
1809
  }
1797
- function Fo(e) {
1798
- for (let t = 0; t < F.length; t++)
1799
- F[t].$_computePosition(e);
1810
+ function nn() {
1811
+ for (let e = 0; e < F.length; e++)
1812
+ F[e].$_computePosition();
1800
1813
  }
1801
- let J = 0, Q = 0, fe = 0, me = 0;
1814
+ let te = 0, oe = 0, me = 0, ge = 0;
1802
1815
  typeof window < "u" && window.addEventListener("mousemove", (e) => {
1803
- J = fe, Q = me, fe = e.clientX, me = e.clientY;
1804
- }, ce ? {
1816
+ te = me, oe = ge, me = e.clientX, ge = e.clientY;
1817
+ }, he ? {
1805
1818
  passive: !0
1806
1819
  } : void 0);
1807
- function $e(e, t, o, n, i, s, r, l) {
1808
- const u = ((r - i) * (t - s) - (l - s) * (e - i)) / ((l - s) * (o - e) - (r - i) * (n - t)), a = ((o - e) * (t - s) - (n - t) * (e - i)) / ((l - s) * (o - e) - (r - i) * (n - t));
1809
- return u >= 0 && u <= 1 && a >= 0 && a <= 1;
1820
+ function Pe(e, t, o, n, i, s, r, l) {
1821
+ const a = ((r - i) * (t - s) - (l - s) * (e - i)) / ((l - s) * (o - e) - (r - i) * (n - t)), u = ((o - e) * (t - s) - (n - t) * (e - i)) / ((l - s) * (o - e) - (r - i) * (n - t));
1822
+ return a >= 0 && a <= 1 && u >= 0 && u <= 1;
1810
1823
  }
1811
- const Vo = {
1812
- extends: Nt()
1813
- }, Xe = (e, t) => {
1824
+ const sn = {
1825
+ extends: jt()
1826
+ }, De = (e, t) => {
1814
1827
  const o = e.__vccOpts || e;
1815
1828
  for (const [n, i] of t)
1816
1829
  o[n] = i;
1817
1830
  return o;
1818
1831
  };
1819
- function jo(e, t, o, n, i, s) {
1820
- return b(), $("div", {
1832
+ function rn(e, t, o, n, i, s) {
1833
+ return m(), $("div", {
1821
1834
  ref: "reference",
1822
- class: A(["v-popper", {
1835
+ class: C(["v-popper", {
1823
1836
  "v-popper--shown": e.slotData.isShown
1824
1837
  }])
1825
1838
  }, [
1826
- x(e.$slots, "default", jt(Wt(e.slotData)))
1839
+ b(e.$slots, "default", lo(ao(e.slotData)))
1827
1840
  ], 2);
1828
1841
  }
1829
- const Wo = /* @__PURE__ */ Xe(Vo, [["render", jo]]);
1830
- function qo() {
1842
+ const ln = /* @__PURE__ */ De(sn, [["render", rn]]);
1843
+ function an() {
1831
1844
  var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
1832
1845
  if (t > 0)
1833
1846
  return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
@@ -1839,11 +1852,11 @@ function qo() {
1839
1852
  var i = e.indexOf("Edge/");
1840
1853
  return i > 0 ? parseInt(e.substring(i + 5, e.indexOf(".", i)), 10) : -1;
1841
1854
  }
1842
- let Te;
1843
- function We() {
1844
- We.init || (We.init = !0, Te = qo() !== -1);
1855
+ let Be;
1856
+ function Xe() {
1857
+ Xe.init || (Xe.init = !0, Be = an() !== -1);
1845
1858
  }
1846
- var Re = {
1859
+ var Ee = {
1847
1860
  name: "ResizeObserver",
1848
1861
  props: {
1849
1862
  emitOnMount: {
@@ -1863,11 +1876,11 @@ var Re = {
1863
1876
  "notify"
1864
1877
  ],
1865
1878
  mounted() {
1866
- We(), Vt(() => {
1879
+ Xe(), ro(() => {
1867
1880
  this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
1868
1881
  });
1869
1882
  const e = document.createElement("object");
1870
- this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", Te && this.$el.appendChild(e), e.data = "about:blank", Te || this.$el.appendChild(e);
1883
+ this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", Be && this.$el.appendChild(e), e.data = "about:blank", Be || this.$el.appendChild(e);
1871
1884
  },
1872
1885
  beforeUnmount() {
1873
1886
  this.removeResizeHandlers();
@@ -1886,34 +1899,34 @@ var Re = {
1886
1899
  this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
1887
1900
  },
1888
1901
  removeResizeHandlers() {
1889
- this._resizeObject && this._resizeObject.onload && (!Te && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
1902
+ this._resizeObject && this._resizeObject.onload && (!Be && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
1890
1903
  }
1891
1904
  }
1892
1905
  };
1893
- const Go = /* @__PURE__ */ qt("data-v-b329ee4c");
1894
- It("data-v-b329ee4c");
1895
- const Uo = {
1906
+ const un = /* @__PURE__ */ uo("data-v-b329ee4c");
1907
+ io("data-v-b329ee4c");
1908
+ const dn = {
1896
1909
  class: "resize-observer",
1897
1910
  tabindex: "-1"
1898
1911
  };
1899
- Ft();
1900
- const Yo = /* @__PURE__ */ Go((e, t, o, n, i, s) => (b(), pe("div", Uo)));
1901
- Re.render = Yo;
1902
- Re.__scopeId = "data-v-b329ee4c";
1903
- Re.__file = "src/components/ResizeObserver.vue";
1904
- const Rt = (e = "theme") => ({
1912
+ so();
1913
+ const cn = /* @__PURE__ */ un((e, t, o, n, i, s) => (m(), ue("div", dn)));
1914
+ Ee.render = cn;
1915
+ Ee.__scopeId = "data-v-b329ee4c";
1916
+ Ee.__file = "src/components/ResizeObserver.vue";
1917
+ const qt = (e = "theme") => ({
1905
1918
  computed: {
1906
1919
  themeClass() {
1907
- return Do(this[e]);
1920
+ return tn(this[e]);
1908
1921
  }
1909
1922
  }
1910
- }), Ko = k({
1923
+ }), pn = k({
1911
1924
  name: "VPopperContent",
1912
1925
  components: {
1913
- ResizeObserver: Re
1926
+ ResizeObserver: Ee
1914
1927
  },
1915
1928
  mixins: [
1916
- Rt()
1929
+ qt()
1917
1930
  ],
1918
1931
  props: {
1919
1932
  popperId: String,
@@ -1935,19 +1948,19 @@ const Rt = (e = "theme") => ({
1935
1948
  return e != null && !isNaN(e) ? `${e}px` : null;
1936
1949
  }
1937
1950
  }
1938
- }), Xo = ["id", "aria-hidden", "tabindex", "data-popper-placement"], Jo = {
1951
+ }), hn = ["id", "aria-hidden", "tabindex", "data-popper-placement"], yn = {
1939
1952
  ref: "inner",
1940
1953
  class: "v-popper__inner"
1941
- }, Qo = /* @__PURE__ */ c("div", { class: "v-popper__arrow-outer" }, null, -1), Zo = /* @__PURE__ */ c("div", { class: "v-popper__arrow-inner" }, null, -1), en = [
1942
- Qo,
1943
- Zo
1954
+ }, fn = /* @__PURE__ */ h("div", { class: "v-popper__arrow-outer" }, null, -1), mn = /* @__PURE__ */ h("div", { class: "v-popper__arrow-inner" }, null, -1), gn = [
1955
+ fn,
1956
+ mn
1944
1957
  ];
1945
- function tn(e, t, o, n, i, s) {
1946
- const r = Ee("ResizeObserver");
1947
- return b(), $("div", {
1958
+ function vn(e, t, o, n, i, s) {
1959
+ const r = ve("ResizeObserver");
1960
+ return m(), $("div", {
1948
1961
  id: e.popperId,
1949
1962
  ref: "popover",
1950
- class: A(["v-popper__popper", [
1963
+ class: C(["v-popper__popper", [
1951
1964
  e.themeClass,
1952
1965
  e.classes.popperClass,
1953
1966
  {
@@ -1962,48 +1975,48 @@ function tn(e, t, o, n, i, s) {
1962
1975
  "v-popper__popper--no-positioning": !e.result
1963
1976
  }
1964
1977
  ]]),
1965
- style: De(e.result ? {
1978
+ style: Ie(e.result ? {
1966
1979
  position: e.result.strategy,
1967
1980
  transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
1968
1981
  } : void 0),
1969
1982
  "aria-hidden": e.shown ? "false" : "true",
1970
1983
  tabindex: e.autoHide ? 0 : void 0,
1971
1984
  "data-popper-placement": e.result ? e.result.placement : void 0,
1972
- onKeyup: t[2] || (t[2] = ke((l) => e.autoHide && e.$emit("hide"), ["esc"]))
1985
+ onKeyup: t[2] || (t[2] = Me((l) => e.autoHide && e.$emit("hide"), ["esc"]))
1973
1986
  }, [
1974
- c("div", {
1987
+ h("div", {
1975
1988
  class: "v-popper__backdrop",
1976
1989
  onClick: t[0] || (t[0] = (l) => e.autoHide && e.$emit("hide"))
1977
1990
  }),
1978
- c("div", {
1991
+ h("div", {
1979
1992
  class: "v-popper__wrapper",
1980
- style: De(e.result ? {
1993
+ style: Ie(e.result ? {
1981
1994
  transformOrigin: e.result.transformOrigin
1982
1995
  } : void 0)
1983
1996
  }, [
1984
- c("div", Jo, [
1985
- e.mounted ? (b(), $(mt, { key: 0 }, [
1986
- c("div", null, [
1987
- x(e.$slots, "default")
1997
+ h("div", yn, [
1998
+ e.mounted ? (m(), $(St, { key: 0 }, [
1999
+ h("div", null, [
2000
+ b(e.$slots, "default")
1988
2001
  ]),
1989
- e.handleResize ? (b(), pe(r, {
2002
+ e.handleResize ? (m(), ue(r, {
1990
2003
  key: 0,
1991
2004
  onNotify: t[1] || (t[1] = (l) => e.$emit("resize", l))
1992
- })) : de("", !0)
1993
- ], 64)) : de("", !0)
2005
+ })) : ee("", !0)
2006
+ ], 64)) : ee("", !0)
1994
2007
  ], 512),
1995
- c("div", {
2008
+ h("div", {
1996
2009
  ref: "arrow",
1997
2010
  class: "v-popper__arrow-container",
1998
- style: De(e.result ? {
2011
+ style: Ie(e.result ? {
1999
2012
  left: e.toPx(e.result.arrow.x),
2000
2013
  top: e.toPx(e.result.arrow.y)
2001
2014
  } : void 0)
2002
- }, en, 4)
2015
+ }, gn, 4)
2003
2016
  ], 4)
2004
- ], 46, Xo);
2017
+ ], 46, hn);
2005
2018
  }
2006
- const Dt = /* @__PURE__ */ Xe(Ko, [["render", tn]]), Lt = {
2019
+ const Gt = /* @__PURE__ */ De(pn, [["render", vn]]), Ut = {
2007
2020
  methods: {
2008
2021
  show(...e) {
2009
2022
  return this.$refs.popper.show(...e);
@@ -2018,22 +2031,195 @@ const Dt = /* @__PURE__ */ Xe(Ko, [["render", tn]]), Lt = {
2018
2031
  return this.$refs.popper.onResize(...e);
2019
2032
  }
2020
2033
  }
2021
- }, on = k({
2034
+ };
2035
+ let Ke = function() {
2036
+ };
2037
+ typeof window < "u" && (Ke = window.Element);
2038
+ const wn = k({
2022
2039
  name: "VPopperWrapper",
2023
2040
  components: {
2024
- Popper: Wo,
2025
- PopperContent: Dt
2041
+ Popper: ln,
2042
+ PopperContent: Gt
2026
2043
  },
2027
2044
  mixins: [
2028
- Lt,
2029
- Rt("finalTheme")
2045
+ Ut,
2046
+ qt("finalTheme")
2030
2047
  ],
2031
2048
  props: {
2032
2049
  theme: {
2033
2050
  type: String,
2034
2051
  default: null
2052
+ },
2053
+ referenceNode: {
2054
+ type: Function,
2055
+ default: null
2056
+ },
2057
+ shown: {
2058
+ type: Boolean,
2059
+ default: !1
2060
+ },
2061
+ showGroup: {
2062
+ type: String,
2063
+ default: null
2064
+ },
2065
+ // eslint-disable-next-line vue/require-prop-types
2066
+ ariaId: {
2067
+ default: null
2068
+ },
2069
+ disabled: {
2070
+ type: Boolean,
2071
+ default: void 0
2072
+ },
2073
+ positioningDisabled: {
2074
+ type: Boolean,
2075
+ default: void 0
2076
+ },
2077
+ placement: {
2078
+ type: String,
2079
+ default: void 0
2080
+ },
2081
+ delay: {
2082
+ type: [String, Number, Object],
2083
+ default: void 0
2084
+ },
2085
+ distance: {
2086
+ type: [Number, String],
2087
+ default: void 0
2088
+ },
2089
+ skidding: {
2090
+ type: [Number, String],
2091
+ default: void 0
2092
+ },
2093
+ triggers: {
2094
+ type: Array,
2095
+ default: void 0
2096
+ },
2097
+ showTriggers: {
2098
+ type: [Array, Function],
2099
+ default: void 0
2100
+ },
2101
+ hideTriggers: {
2102
+ type: [Array, Function],
2103
+ default: void 0
2104
+ },
2105
+ popperTriggers: {
2106
+ type: Array,
2107
+ default: void 0
2108
+ },
2109
+ popperShowTriggers: {
2110
+ type: [Array, Function],
2111
+ default: void 0
2112
+ },
2113
+ popperHideTriggers: {
2114
+ type: [Array, Function],
2115
+ default: void 0
2116
+ },
2117
+ container: {
2118
+ type: [String, Object, Ke, Boolean],
2119
+ default: void 0
2120
+ },
2121
+ boundary: {
2122
+ type: [String, Ke],
2123
+ default: void 0
2124
+ },
2125
+ strategy: {
2126
+ type: String,
2127
+ default: void 0
2128
+ },
2129
+ autoHide: {
2130
+ type: [Boolean, Function],
2131
+ default: void 0
2132
+ },
2133
+ handleResize: {
2134
+ type: Boolean,
2135
+ default: void 0
2136
+ },
2137
+ instantMove: {
2138
+ type: Boolean,
2139
+ default: void 0
2140
+ },
2141
+ eagerMount: {
2142
+ type: Boolean,
2143
+ default: void 0
2144
+ },
2145
+ popperClass: {
2146
+ type: [String, Array, Object],
2147
+ default: void 0
2148
+ },
2149
+ computeTransformOrigin: {
2150
+ type: Boolean,
2151
+ default: void 0
2152
+ },
2153
+ /**
2154
+ * @deprecated
2155
+ */
2156
+ autoMinSize: {
2157
+ type: Boolean,
2158
+ default: void 0
2159
+ },
2160
+ autoSize: {
2161
+ type: [Boolean, String],
2162
+ default: void 0
2163
+ },
2164
+ /**
2165
+ * @deprecated
2166
+ */
2167
+ autoMaxSize: {
2168
+ type: Boolean,
2169
+ default: void 0
2170
+ },
2171
+ autoBoundaryMaxSize: {
2172
+ type: Boolean,
2173
+ default: void 0
2174
+ },
2175
+ preventOverflow: {
2176
+ type: Boolean,
2177
+ default: void 0
2178
+ },
2179
+ overflowPadding: {
2180
+ type: [Number, String],
2181
+ default: void 0
2182
+ },
2183
+ arrowPadding: {
2184
+ type: [Number, String],
2185
+ default: void 0
2186
+ },
2187
+ arrowOverflow: {
2188
+ type: Boolean,
2189
+ default: void 0
2190
+ },
2191
+ flip: {
2192
+ type: Boolean,
2193
+ default: void 0
2194
+ },
2195
+ shift: {
2196
+ type: Boolean,
2197
+ default: void 0
2198
+ },
2199
+ shiftCrossAxis: {
2200
+ type: Boolean,
2201
+ default: void 0
2202
+ },
2203
+ noAutoFocus: {
2204
+ type: Boolean,
2205
+ default: void 0
2206
+ },
2207
+ disposeTimeout: {
2208
+ type: Number,
2209
+ default: void 0
2035
2210
  }
2036
2211
  },
2212
+ emits: {
2213
+ show: () => !0,
2214
+ hide: () => !0,
2215
+ "update:shown": (e) => !0,
2216
+ "apply-show": () => !0,
2217
+ "apply-hide": () => !0,
2218
+ "close-group": () => !0,
2219
+ "close-directive": () => !0,
2220
+ "auto-hide": () => !0,
2221
+ resize: () => !0
2222
+ },
2037
2223
  computed: {
2038
2224
  finalTheme() {
2039
2225
  return this.theme ?? this.$options.vPopperTheme;
@@ -2045,52 +2231,60 @@ const Dt = /* @__PURE__ */ Xe(Ko, [["render", tn]]), Lt = {
2045
2231
  }
2046
2232
  }
2047
2233
  });
2048
- function nn(e, t, o, n, i, s) {
2049
- const r = Ee("PopperContent"), l = Ee("Popper");
2050
- return b(), pe(l, {
2051
- ref: "popper",
2234
+ function bn(e, t, o, n, i, s) {
2235
+ const r = ve("PopperContent"), l = ve("Popper");
2236
+ return m(), ue(l, Pt({ ref: "popper" }, e.$props, {
2052
2237
  theme: e.finalTheme,
2053
2238
  "target-nodes": e.getTargetNodes,
2054
2239
  "popper-node": () => e.$refs.popperContent.$el,
2055
- class: A([
2240
+ class: [
2056
2241
  e.themeClass
2057
- ])
2058
- }, {
2059
- default: Z(({
2060
- popperId: u,
2061
- isShown: a,
2242
+ ],
2243
+ onShow: t[0] || (t[0] = () => e.$emit("show")),
2244
+ onHide: t[1] || (t[1] = () => e.$emit("hide")),
2245
+ "onUpdate:shown": t[2] || (t[2] = (a) => e.$emit("update:shown", a)),
2246
+ onApplyShow: t[3] || (t[3] = () => e.$emit("apply-show")),
2247
+ onApplyHide: t[4] || (t[4] = () => e.$emit("apply-hide")),
2248
+ onCloseGroup: t[5] || (t[5] = () => e.$emit("close-group")),
2249
+ onCloseDirective: t[6] || (t[6] = () => e.$emit("close-directive")),
2250
+ onAutoHide: t[7] || (t[7] = () => e.$emit("auto-hide")),
2251
+ onResize: t[8] || (t[8] = () => e.$emit("resize"))
2252
+ }), {
2253
+ default: Y(({
2254
+ popperId: a,
2255
+ isShown: u,
2062
2256
  shouldMountContent: d,
2063
- skipTransition: p,
2257
+ skipTransition: c,
2064
2258
  autoHide: y,
2065
- show: h,
2259
+ show: p,
2066
2260
  hide: f,
2067
- handleResize: m,
2068
- onResize: v,
2069
- classes: g,
2070
- result: w
2261
+ handleResize: g,
2262
+ onResize: w,
2263
+ classes: v,
2264
+ result: x
2071
2265
  }) => [
2072
- x(e.$slots, "default", {
2073
- shown: a,
2074
- show: h,
2266
+ b(e.$slots, "default", {
2267
+ shown: u,
2268
+ show: p,
2075
2269
  hide: f
2076
2270
  }),
2077
- ge(r, {
2271
+ pe(r, {
2078
2272
  ref: "popperContent",
2079
- "popper-id": u,
2273
+ "popper-id": a,
2080
2274
  theme: e.finalTheme,
2081
- shown: a,
2275
+ shown: u,
2082
2276
  mounted: d,
2083
- "skip-transition": p,
2277
+ "skip-transition": c,
2084
2278
  "auto-hide": y,
2085
- "handle-resize": m,
2086
- classes: g,
2087
- result: w,
2279
+ "handle-resize": g,
2280
+ classes: v,
2281
+ result: x,
2088
2282
  onHide: f,
2089
- onResize: v
2283
+ onResize: w
2090
2284
  }, {
2091
- default: Z(() => [
2092
- x(e.$slots, "popper", {
2093
- shown: a,
2285
+ default: Y(() => [
2286
+ b(e.$slots, "popper", {
2287
+ shown: u,
2094
2288
  hide: f
2095
2289
  })
2096
2290
  ]),
@@ -2098,27 +2292,28 @@ function nn(e, t, o, n, i, s) {
2098
2292
  }, 1032, ["popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
2099
2293
  ]),
2100
2294
  _: 3
2101
- }, 8, ["theme", "target-nodes", "popper-node", "class"]);
2295
+ }, 16, ["theme", "target-nodes", "popper-node", "class"]);
2102
2296
  }
2103
- const Je = /* @__PURE__ */ Xe(on, [["render", nn]]), sn = {
2104
- ...Je,
2297
+ const ot = /* @__PURE__ */ De(wn, [["render", bn]]), Yt = {
2298
+ ...ot,
2105
2299
  name: "VDropdown",
2106
2300
  vPopperTheme: "dropdown"
2107
- };
2108
- ({
2109
- ...Je
2110
- });
2111
- ({
2112
- ...Je
2113
- });
2114
- k({
2301
+ }, xn = {
2302
+ ...ot,
2303
+ name: "VMenu",
2304
+ vPopperTheme: "menu"
2305
+ }, $n = {
2306
+ ...ot,
2307
+ name: "VTooltip",
2308
+ vPopperTheme: "tooltip"
2309
+ }, _n = k({
2115
2310
  name: "VTooltipDirective",
2116
2311
  components: {
2117
- Popper: Nt(),
2118
- PopperContent: Dt
2312
+ Popper: jt(),
2313
+ PopperContent: Gt
2119
2314
  },
2120
2315
  mixins: [
2121
- Lt
2316
+ Ut
2122
2317
  ],
2123
2318
  inheritAttrs: !1,
2124
2319
  props: {
@@ -2128,7 +2323,7 @@ k({
2128
2323
  },
2129
2324
  html: {
2130
2325
  type: Boolean,
2131
- default: (e) => Ve(e.theme, "html")
2326
+ default: (e) => $e(e.theme, "html")
2132
2327
  },
2133
2328
  content: {
2134
2329
  type: [String, Number, Function],
@@ -2136,7 +2331,7 @@ k({
2136
2331
  },
2137
2332
  loadingContent: {
2138
2333
  type: String,
2139
- default: (e) => Ve(e.theme, "loadingContent")
2334
+ default: (e) => $e(e.theme, "loadingContent")
2140
2335
  },
2141
2336
  targetNodes: {
2142
2337
  type: Function,
@@ -2191,8 +2386,190 @@ k({
2191
2386
  this.$_isShown = !1;
2192
2387
  }
2193
2388
  }
2194
- });
2195
- const rn = sn, ln = { class: "yu-text-gray-700 yu-font-plus yu-font-medium yu-text-base yu-mr-2" }, an = { class: "yu-w-full yu-rounded-md yu-p-2 yu-flex yu-flex-col yu-gap-1" }, un = { class: "yu-px-2 yu-w-full" }, dn = /* @__PURE__ */ c("div", { class: "yu-text-gray-700 yu-text-xs yu-mr-2" }, "Selecionar todos", -1), cn = ["checked"], pn = { class: "yu-w-full yu-p-2 yu-overflow-y-auto yu-max-h-60" }, Ht = /* @__PURE__ */ k({
2389
+ }), Tn = ["innerHTML"], Sn = ["textContent"];
2390
+ function Pn(e, t, o, n, i, s) {
2391
+ const r = ve("PopperContent"), l = ve("Popper");
2392
+ return m(), ue(l, Pt({ ref: "popper" }, e.$attrs, {
2393
+ theme: e.theme,
2394
+ "target-nodes": e.targetNodes,
2395
+ "popper-node": () => e.$refs.popperContent.$el,
2396
+ onApplyShow: e.onShow,
2397
+ onApplyHide: e.onHide
2398
+ }), {
2399
+ default: Y(({
2400
+ popperId: a,
2401
+ isShown: u,
2402
+ shouldMountContent: d,
2403
+ skipTransition: c,
2404
+ autoHide: y,
2405
+ hide: p,
2406
+ handleResize: f,
2407
+ onResize: g,
2408
+ classes: w,
2409
+ result: v
2410
+ }) => [
2411
+ pe(r, {
2412
+ ref: "popperContent",
2413
+ class: C({
2414
+ "v-popper--tooltip-loading": e.loading
2415
+ }),
2416
+ "popper-id": a,
2417
+ theme: e.theme,
2418
+ shown: u,
2419
+ mounted: d,
2420
+ "skip-transition": c,
2421
+ "auto-hide": y,
2422
+ "handle-resize": f,
2423
+ classes: w,
2424
+ result: v,
2425
+ onHide: p,
2426
+ onResize: g
2427
+ }, {
2428
+ default: Y(() => [
2429
+ e.html ? (m(), $("div", {
2430
+ key: 0,
2431
+ innerHTML: e.finalContent
2432
+ }, null, 8, Tn)) : (m(), $("div", {
2433
+ key: 1,
2434
+ textContent: P(e.finalContent)
2435
+ }, null, 8, Sn))
2436
+ ]),
2437
+ _: 2
2438
+ }, 1032, ["class", "popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
2439
+ ]),
2440
+ _: 1
2441
+ }, 16, ["theme", "target-nodes", "popper-node", "onApplyShow", "onApplyHide"]);
2442
+ }
2443
+ const Bn = /* @__PURE__ */ De(_n, [["render", Pn]]), Xt = "v-popper--has-tooltip";
2444
+ function Cn(e, t) {
2445
+ let o = e.placement;
2446
+ if (!o && t)
2447
+ for (const n of Vt)
2448
+ t[n] && (o = n);
2449
+ return o || (o = $e(e.theme || "tooltip", "placement")), o;
2450
+ }
2451
+ function Kt(e, t, o) {
2452
+ let n;
2453
+ const i = typeof t;
2454
+ return i === "string" ? n = { content: t } : t && i === "object" ? n = t : n = { content: !1 }, n.placement = Cn(n, o), n.targetNodes = () => [e], n.referenceNode = () => e, n;
2455
+ }
2456
+ let je, _e, An = 0;
2457
+ function kn() {
2458
+ if (je)
2459
+ return;
2460
+ _e = M([]), je = co({
2461
+ name: "VTooltipDirectiveApp",
2462
+ setup() {
2463
+ return {
2464
+ directives: _e
2465
+ };
2466
+ },
2467
+ render() {
2468
+ return this.directives.map((t) => po(Bn, {
2469
+ ...t.options,
2470
+ shown: t.shown || t.options.shown,
2471
+ key: t.id
2472
+ }));
2473
+ },
2474
+ devtools: {
2475
+ hide: !0
2476
+ }
2477
+ });
2478
+ const e = document.createElement("div");
2479
+ document.body.appendChild(e), je.mount(e);
2480
+ }
2481
+ function On(e, t, o) {
2482
+ kn();
2483
+ const n = M(Kt(e, t, o)), i = M(!1), s = {
2484
+ id: An++,
2485
+ options: n,
2486
+ shown: i
2487
+ };
2488
+ return _e.value.push(s), e.classList && e.classList.add(Xt), e.$_popper = {
2489
+ options: n,
2490
+ item: s,
2491
+ show() {
2492
+ i.value = !0;
2493
+ },
2494
+ hide() {
2495
+ i.value = !1;
2496
+ }
2497
+ };
2498
+ }
2499
+ function Zt(e) {
2500
+ if (e.$_popper) {
2501
+ const t = _e.value.indexOf(e.$_popper.item);
2502
+ t !== -1 && _e.value.splice(t, 1), delete e.$_popper, delete e.$_popperOldShown, delete e.$_popperMountTarget;
2503
+ }
2504
+ e.classList && e.classList.remove(Xt);
2505
+ }
2506
+ function xt(e, { value: t, modifiers: o }) {
2507
+ const n = Kt(e, t, o);
2508
+ if (!n.content || $e(n.theme || "tooltip", "disabled"))
2509
+ Zt(e);
2510
+ else {
2511
+ let i;
2512
+ e.$_popper ? (i = e.$_popper, i.options.value = n) : i = On(e, t, o), typeof t.shown < "u" && t.shown !== e.$_popperOldShown && (e.$_popperOldShown = t.shown, t.shown ? i.show() : i.hide());
2513
+ }
2514
+ }
2515
+ const zn = {
2516
+ beforeMount: xt,
2517
+ updated: xt,
2518
+ beforeUnmount(e) {
2519
+ Zt(e);
2520
+ }
2521
+ };
2522
+ function $t(e) {
2523
+ e.addEventListener("mousedown", Ne), e.addEventListener("click", Ne), e.addEventListener("touchstart", Qt, he ? {
2524
+ passive: !0
2525
+ } : !1);
2526
+ }
2527
+ function _t(e) {
2528
+ e.removeEventListener("mousedown", Ne), e.removeEventListener("click", Ne), e.removeEventListener("touchstart", Qt), e.removeEventListener("touchend", Jt), e.removeEventListener("touchcancel", eo);
2529
+ }
2530
+ function Ne(e) {
2531
+ const t = e.currentTarget;
2532
+ e.closePopover = !t.$_vclosepopover_touch, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
2533
+ }
2534
+ function Qt(e) {
2535
+ if (e.changedTouches.length === 1) {
2536
+ const t = e.currentTarget;
2537
+ t.$_vclosepopover_touch = !0;
2538
+ const o = e.changedTouches[0];
2539
+ t.$_vclosepopover_touchPoint = o, t.addEventListener("touchend", Jt), t.addEventListener("touchcancel", eo);
2540
+ }
2541
+ }
2542
+ function Jt(e) {
2543
+ const t = e.currentTarget;
2544
+ if (t.$_vclosepopover_touch = !1, e.changedTouches.length === 1) {
2545
+ const o = e.changedTouches[0], n = t.$_vclosepopover_touchPoint;
2546
+ e.closePopover = Math.abs(o.screenY - n.screenY) < 20 && Math.abs(o.screenX - n.screenX) < 20, e.closeAllPopover = t.$_closePopoverModifiers && !!t.$_closePopoverModifiers.all;
2547
+ }
2548
+ }
2549
+ function eo(e) {
2550
+ const t = e.currentTarget;
2551
+ t.$_vclosepopover_touch = !1;
2552
+ }
2553
+ const Nn = {
2554
+ beforeMount(e, { value: t, modifiers: o }) {
2555
+ e.$_closePopoverModifiers = o, (typeof t > "u" || t) && $t(e);
2556
+ },
2557
+ updated(e, { value: t, oldValue: o, modifiers: n }) {
2558
+ e.$_closePopoverModifiers = n, t !== o && (typeof t > "u" || t ? $t(e) : _t(e));
2559
+ },
2560
+ beforeUnmount(e) {
2561
+ _t(e);
2562
+ }
2563
+ }, Mn = Yt;
2564
+ function Ln(e, t = {}) {
2565
+ e.$_vTooltipInstalled || (e.$_vTooltipInstalled = !0, It(j, t), e.directive("tooltip", zn), e.directive("close-popper", Nn), e.component("VTooltip", $n), e.component("VDropdown", Yt), e.component("VMenu", xn));
2566
+ }
2567
+ const Hn = {
2568
+ // eslint-disable-next-line no-undef
2569
+ version: "5.2.2",
2570
+ install: Ln,
2571
+ options: j
2572
+ }, Rn = { class: "yu-text-gray-700 yu-font-plus yu-font-medium yu-text-base yu-mr-2" }, Dn = { class: "yu-w-full yu-rounded-md yu-p-2 yu-flex yu-flex-col yu-gap-1" }, En = { class: "yu-px-2 yu-w-full" }, In = /* @__PURE__ */ h("div", { class: "yu-text-gray-700 yu-text-xs yu-mr-2" }, "Selecionar todos", -1), Fn = ["checked"], Vn = { class: "yu-w-full yu-p-2 yu-overflow-y-auto yu-max-h-60" }, to = /* @__PURE__ */ k({
2196
2573
  __name: "app-dropdown",
2197
2574
  props: {
2198
2575
  label: {
@@ -2230,70 +2607,70 @@ const rn = sn, ln = { class: "yu-text-gray-700 yu-font-plus yu-font-medium yu-te
2230
2607
  },
2231
2608
  emits: ["filter-value", "update:allSelected", "update:opened"],
2232
2609
  setup(e, { expose: t, emit: o }) {
2233
- const n = o, i = D(!1), s = (r) => {
2610
+ const n = o, i = M(!1), s = (r) => {
2234
2611
  i.value = r, n("update:opened", r);
2235
2612
  };
2236
- return t({ opened: i }), (r, l) => (b(), pe(L(rn), {
2613
+ return t({ opened: i }), (r, l) => (m(), ue(H(Mn), {
2237
2614
  placement: "bottom-start",
2238
2615
  skidding: 6,
2239
2616
  "onUpdate:shown": s
2240
2617
  }, {
2241
- popper: Z(() => [
2242
- e.showSearchInput ? x(r.$slots, "searchInput", { key: 0 }, () => [
2243
- c("div", an, [
2244
- ge(wt, {
2618
+ popper: Y(() => [
2619
+ e.showSearchInput ? b(r.$slots, "searchInput", { key: 0 }, () => [
2620
+ h("div", Dn, [
2621
+ pe(Ct, {
2245
2622
  label: e.inputLabel || "Procurar",
2246
- "onUpdate:modelValue": l[0] || (l[0] = (u) => n("filter-value", u))
2623
+ "onUpdate:modelValue": l[0] || (l[0] = (a) => n("filter-value", a))
2247
2624
  }, null, 8, ["label"])
2248
2625
  ])
2249
- ]) : de("", !0),
2250
- e.showSelectAll ? x(r.$slots, "selectAll", { key: 1 }, () => [
2251
- c("div", un, [
2252
- ge(Ge, {
2253
- onClick: l[1] || (l[1] = (u) => n("update:allSelected"))
2626
+ ]) : ee("", !0),
2627
+ e.showSelectAll ? b(r.$slots, "selectAll", { key: 1 }, () => [
2628
+ h("div", En, [
2629
+ pe(Qe, {
2630
+ onClick: l[1] || (l[1] = (a) => n("update:allSelected"))
2254
2631
  }, {
2255
- default: Z(() => [
2256
- dn,
2257
- c("input", {
2632
+ default: Y(() => [
2633
+ In,
2634
+ h("input", {
2258
2635
  class: "yu-ml-auto yu-accent-primary-500 yu-border-2 yu-cursor-pointer",
2259
2636
  type: "checkbox",
2260
2637
  checked: e.allSelected
2261
- }, null, 8, cn)
2638
+ }, null, 8, Fn)
2262
2639
  ]),
2263
2640
  _: 1
2264
2641
  })
2265
2642
  ])
2266
- ]) : de("", !0),
2267
- c("div", pn, [
2268
- x(r.$slots, "default")
2643
+ ]) : ee("", !0),
2644
+ h("div", Vn, [
2645
+ b(r.$slots, "default")
2269
2646
  ])
2270
2647
  ]),
2271
- default: Z(() => [
2272
- c("button", {
2273
- class: A(["yu-bg-gray-700 yu-bg-opacity-0 yu-px-3 yu-p-2 yu-rounded-md yu-flex yu-gap-1 yu-transition hover:yu-bg-opacity-10 yu-group active:yu-bg-primary-500 active:!yu-bg-opacity-10 active:yu-scale-95", { "!yu-bg-primary-500 !yu-bg-opacity-10": i.value, "yu-border": e.bordered }])
2648
+ default: Y(() => [
2649
+ h("button", {
2650
+ class: C(["yu-bg-gray-700 yu-bg-opacity-0 yu-px-3 yu-p-2 yu-rounded-md yu-flex yu-gap-1 yu-transition hover:yu-bg-opacity-10 yu-group active:yu-bg-primary-500 active:!yu-bg-opacity-10 active:yu-scale-95", { "!yu-bg-primary-500 !yu-bg-opacity-10": i.value, "yu-border": e.bordered }])
2274
2651
  }, [
2275
- x(r.$slots, "icon", {}, () => [
2276
- c("i", {
2277
- class: A(["material-icons yu-text-gray-700 yu-h-fit", { "yu-text-primary-500": i.value }])
2278
- }, S(e.icon), 3)
2652
+ b(r.$slots, "icon", {}, () => [
2653
+ h("i", {
2654
+ class: C(["material-icons yu-text-gray-700 yu-h-fit", { "yu-text-primary-500": i.value }])
2655
+ }, P(e.icon), 3)
2279
2656
  ]),
2280
- x(r.$slots, "label", {}, () => [
2281
- c("div", ln, S(e.label), 1)
2657
+ b(r.$slots, "label", {}, () => [
2658
+ h("div", Rn, P(e.label), 1)
2282
2659
  ]),
2283
- x(r.$slots, "open-icon", {}, () => [
2284
- c("i", {
2285
- class: A(["material-icons yu-text-gray-700 yu-h-fit yu-ml-auto yu-transition-all", { "yu-text-primary-500 yu-rotate-180": i.value }])
2286
- }, S(e.openIcon), 3)
2660
+ b(r.$slots, "open-icon", {}, () => [
2661
+ h("i", {
2662
+ class: C(["material-icons yu-text-gray-700 yu-h-fit yu-ml-auto yu-transition-all", { "yu-text-primary-500 yu-rotate-180": i.value }])
2663
+ }, P(e.openIcon), 3)
2287
2664
  ])
2288
2665
  ], 2)
2289
2666
  ]),
2290
2667
  _: 3
2291
2668
  }));
2292
2669
  }
2293
- }), hn = { class: "yu-border yu-border-gray-100 yu-rounded-md yu-py-4 yu-px-3 yu-bg-white yu-flex yu-flex-col yu-justify-center yu-shadow-2xl yu-shadow-gray-100" }, yn = { class: "yu-flex yu-gap-5 yu-px-2" }, fn = { class: "yu-flex yu-flex-col" }, mn = { class: "yu-font-plus yu-flex yu-text-xl yu-text-gray-800 yu-font-bold yu-items-center" }, gn = {
2670
+ }), jn = { class: "yu-border yu-border-gray-100 yu-rounded-md yu-py-4 yu-px-3 yu-bg-white yu-flex yu-flex-col yu-justify-center yu-shadow-2xl yu-shadow-gray-100" }, Wn = { class: "yu-flex yu-gap-5 yu-px-2" }, qn = { class: "yu-flex yu-flex-col" }, Gn = { class: "yu-font-plus yu-flex yu-text-xl yu-text-gray-800 yu-font-bold yu-items-center" }, Un = {
2294
2671
  key: 0,
2295
2672
  class: "yu-font-plus yu-text-xs yu-text-gray-400"
2296
- }, vn = { class: "yu-font-plus yu-text-gray-400 yu-font-medium yu-text-sm" }, wn = /* @__PURE__ */ k({
2673
+ }, Yn = { class: "yu-font-plus yu-text-gray-400 yu-font-medium yu-text-sm" }, Xn = /* @__PURE__ */ k({
2297
2674
  __name: "stat-card",
2298
2675
  props: {
2299
2676
  icon: {
@@ -2322,37 +2699,37 @@ const rn = sn, ln = { class: "yu-text-gray-700 yu-font-plus yu-font-medium yu-te
2322
2699
  }
2323
2700
  },
2324
2701
  setup(e) {
2325
- return (t, o) => (b(), $("div", hn, [
2326
- c("div", yn, [
2327
- x(t.$slots, "icon", {}, () => [
2328
- c("i", {
2329
- class: A(["yu-aspect-square material-icons yu-bg-yellow-100 yu-text-yellow-500 yu-h-14 yu-w-14 yu-place-items-center yu-rounded-full !yu-text-1xl !yu-grid", { "!yu-text-red-500 !yu-bg-red-100": e.bad, "!yu-text-green-500 !yu-bg-green-100": e.good }])
2330
- }, S(e.icon), 3)
2702
+ return (t, o) => (m(), $("div", jn, [
2703
+ h("div", Wn, [
2704
+ b(t.$slots, "icon", {}, () => [
2705
+ h("i", {
2706
+ class: C(["yu-aspect-square material-icons yu-bg-yellow-100 yu-text-yellow-500 yu-h-14 yu-w-14 yu-place-items-center yu-rounded-full !yu-text-1xl !yu-grid", { "!yu-text-red-500 !yu-bg-red-100": e.bad, "!yu-text-green-500 !yu-bg-green-100": e.good }])
2707
+ }, P(e.icon), 3)
2331
2708
  ]),
2332
- c("div", fn, [
2333
- c("div", mn, [
2334
- Pe(S(e.comparison), 1),
2335
- e.hideTotal ? de("", !0) : (b(), $("span", gn, "/" + S(e.total), 1))
2709
+ h("div", qn, [
2710
+ h("div", Gn, [
2711
+ Ce(P(e.comparison), 1),
2712
+ e.hideTotal ? ee("", !0) : (m(), $("span", Un, "/" + P(e.total), 1))
2336
2713
  ]),
2337
- c("p", vn, [
2338
- x(t.$slots, "default")
2714
+ h("p", Yn, [
2715
+ b(t.$slots, "default")
2339
2716
  ])
2340
2717
  ])
2341
2718
  ])
2342
2719
  ]));
2343
2720
  }
2344
2721
  });
2345
- function Qe(e, t) {
2346
- const o = re(() => ({
2722
+ function nt(e, t) {
2723
+ const o = J(() => ({
2347
2724
  "!yu-font-plus": t.plus,
2348
2725
  "!yu-font-inter": t.inter,
2349
2726
  "!yu-font-titillium": t.titillium
2350
- })), n = re(() => ({
2727
+ })), n = J(() => ({
2351
2728
  "!yu-text-primary": t.primary,
2352
2729
  "!yu-text-secondary": t.secondary,
2353
2730
  "!yu-text-base": t.neutral,
2354
2731
  "!yu-text-neutral": t.gray
2355
- })), i = re(() => ({
2732
+ })), i = J(() => ({
2356
2733
  "!yu-font-thin": t.thin,
2357
2734
  "!yu-font-extralight": t.extralight,
2358
2735
  "!yu-font-light": t.light,
@@ -2362,7 +2739,7 @@ function Qe(e, t) {
2362
2739
  "!yu-font-bold": t.bold,
2363
2740
  "!yu-font-extrabold": t.extrabold,
2364
2741
  "!yu-font-black": t.black
2365
- })), s = re(() => ({
2742
+ })), s = J(() => ({
2366
2743
  ...{
2367
2744
  title: {
2368
2745
  "!yu-text-xl": t.small,
@@ -2385,7 +2762,7 @@ function Qe(e, t) {
2385
2762
  }));
2386
2763
  return { fontClass: o, colorClass: n, weightClass: i, sizeClass: s };
2387
2764
  }
2388
- const xn = /* @__PURE__ */ k({
2765
+ const Kn = /* @__PURE__ */ k({
2389
2766
  __name: "title",
2390
2767
  props: {
2391
2768
  inter: { type: Boolean },
@@ -2410,14 +2787,14 @@ const xn = /* @__PURE__ */ k({
2410
2787
  neutral: { type: Boolean }
2411
2788
  },
2412
2789
  setup(e) {
2413
- const t = e, { fontClass: o, colorClass: n, weightClass: i, sizeClass: s } = Qe("title", t);
2414
- return (r, l) => (b(), $("h1", {
2415
- class: A(["yu-font-inter yu-text-2xl yu-font-normal yu-text-black", [L(o), L(n), L(i), L(s)]])
2790
+ const t = e, { fontClass: o, colorClass: n, weightClass: i, sizeClass: s } = nt("title", t);
2791
+ return (r, l) => (m(), $("h1", {
2792
+ class: C(["yu-font-inter yu-text-2xl yu-font-normal yu-text-black", [H(o), H(n), H(i), H(s)]])
2416
2793
  }, [
2417
- x(r.$slots, "default", {}, void 0, !0)
2794
+ b(r.$slots, "default", {}, void 0, !0)
2418
2795
  ], 2));
2419
2796
  }
2420
- }), Mt = /* @__PURE__ */ K(xn, [["__scopeId", "data-v-c6abe2e9"]]), bn = { class: "yu-border yu-border-gray-100 yu-rounded-md yu-py-4 yu-px-5 yu-bg-white yu-shadow-2xl yu-shadow-gray-100 yu-flex yu-flex-col" }, _n = { class: "yu-flex gap-3 yu-flex-col yu-h-full yu-w-full yu-justify-between" }, $n = { class: "yu-text-base" }, Tn = { class: "yu-flex yu-justify-between" }, Pn = { class: "yu-flex yu-gap-2" }, Sn = { class: "yu-aspect-square material-icons yu-h-12 yu-w-12 yu-place-items-center yu-rounded-full cursor-default !yu-text-1xl !yu-grid !yu-bg-green-100 !yu-text-green-500" }, Cn = { class: "yu-font-plus yu-flex yu-text-xl yu-text-gray-800 yu-font-bold yu-items-center" }, Bn = { class: "yu-flex yu-gap-2" }, An = { class: "yu-aspect-square material-icons yu-h-12 yu-w-12 yu-place-items-center yu-rounded-full cursor-default !yu-text-1xl !yu-grid !yu-bg-red-100 !yu-text-red-500" }, kn = { class: "yu-font-plus yu-flex yu-text-xl yu-text-gray-800 yu-font-bold yu-items-center" }, On = { class: "yu-flex yu-gap-1" }, Nn = /* @__PURE__ */ c("i", { class: "yu-aspect-square material-icons yu-h-12 yu-w-12 yu-place-items-center yu-rounded-full cursor-default !yu-text-1xl !yu-grid" }, "call_received", -1), zn = { class: "yu-font-plus yu-flex yu-text-xl yu-text-gray-800 yu-font-bold yu-items-center" }, Rn = { class: "yu-flex yu-gap-1" }, Dn = /* @__PURE__ */ c("i", { class: "yu-aspect-square material-icons yu-h-12 yu-w-12 yu-place-items-center yu-rounded-full cursor-default !yu-text-1xl !yu-grid" }, "call_made", -1), Ln = { class: "yu-font-plus yu-flex yu-text-xl yu-text-gray-800 yu-font-bold yu-items-center" }, Hn = /* @__PURE__ */ k({
2797
+ }), oo = /* @__PURE__ */ W(Kn, [["__scopeId", "data-v-c6abe2e9"]]), Zn = { class: "yu-border yu-border-gray-100 yu-rounded-md yu-py-4 yu-px-5 yu-bg-white yu-shadow-2xl yu-shadow-gray-100 yu-flex yu-flex-col" }, Qn = { class: "yu-flex gap-3 yu-flex-col yu-h-full yu-w-full yu-justify-between" }, Jn = { class: "yu-text-base" }, ei = { class: "yu-flex yu-justify-between" }, ti = { class: "yu-flex yu-gap-2" }, oi = { class: "yu-aspect-square material-icons yu-h-12 yu-w-12 yu-place-items-center yu-rounded-full cursor-default !yu-text-1xl !yu-grid !yu-bg-green-100 !yu-text-green-500" }, ni = { class: "yu-font-plus yu-flex yu-text-xl yu-text-gray-800 yu-font-bold yu-items-center" }, ii = { class: "yu-flex yu-gap-2" }, si = { class: "yu-aspect-square material-icons yu-h-12 yu-w-12 yu-place-items-center yu-rounded-full cursor-default !yu-text-1xl !yu-grid !yu-bg-red-100 !yu-text-red-500" }, ri = { class: "yu-font-plus yu-flex yu-text-xl yu-text-gray-800 yu-font-bold yu-items-center" }, li = { class: "yu-flex yu-gap-1" }, ai = /* @__PURE__ */ h("i", { class: "yu-aspect-square material-icons yu-h-12 yu-w-12 yu-place-items-center yu-rounded-full cursor-default !yu-text-1xl !yu-grid" }, "call_received", -1), ui = { class: "yu-font-plus yu-flex yu-text-xl yu-text-gray-800 yu-font-bold yu-items-center" }, di = { class: "yu-flex yu-gap-1" }, ci = /* @__PURE__ */ h("i", { class: "yu-aspect-square material-icons yu-h-12 yu-w-12 yu-place-items-center yu-rounded-full cursor-default !yu-text-1xl !yu-grid" }, "call_made", -1), pi = { class: "yu-font-plus yu-flex yu-text-xl yu-text-gray-800 yu-font-bold yu-items-center" }, hi = /* @__PURE__ */ k({
2421
2798
  __name: "app-advanced-stat-card",
2422
2799
  props: {
2423
2800
  totalGood: {
@@ -2455,74 +2832,74 @@ const xn = /* @__PURE__ */ k({
2455
2832
  },
2456
2833
  setup(e) {
2457
2834
  return (t, o) => {
2458
- const n = gt("tooltip");
2459
- return b(), $("div", bn, [
2460
- c("div", _n, [
2461
- ge(Mt, {
2835
+ const n = Bt("tooltip");
2836
+ return m(), $("div", Zn, [
2837
+ h("div", Qn, [
2838
+ pe(oo, {
2462
2839
  plus: "",
2463
2840
  semibold: ""
2464
2841
  }, {
2465
- default: Z(() => [
2466
- c("div", $n, [
2467
- x(t.$slots, "title")
2842
+ default: Y(() => [
2843
+ h("div", Jn, [
2844
+ b(t.$slots, "title")
2468
2845
  ])
2469
2846
  ]),
2470
2847
  _: 3
2471
2848
  }),
2472
- c("div", Tn, [
2473
- q((b(), $("div", Pn, [
2474
- c("i", Sn, [
2475
- x(t.$slots, "icon-good", {}, () => [
2476
- Pe("assignment")
2849
+ h("div", ei, [
2850
+ U((m(), $("div", ti, [
2851
+ h("i", oi, [
2852
+ b(t.$slots, "icon-good", {}, () => [
2853
+ Ce("assignment")
2477
2854
  ])
2478
2855
  ]),
2479
- c("p", Cn, S(e.totalGood), 1)
2856
+ h("p", ni, P(e.totalGood), 1)
2480
2857
  ])), [
2481
2858
  [n, e.goodTooltip]
2482
2859
  ]),
2483
- q((b(), $("div", Bn, [
2484
- c("i", An, [
2485
- x(t.$slots, "icon-bad", {}, () => [
2486
- Pe("assignment")
2860
+ U((m(), $("div", ii, [
2861
+ h("i", si, [
2862
+ b(t.$slots, "icon-bad", {}, () => [
2863
+ Ce("assignment")
2487
2864
  ])
2488
2865
  ]),
2489
- c("p", kn, S(e.totalBad), 1)
2866
+ h("p", ri, P(e.totalBad), 1)
2490
2867
  ])), [
2491
2868
  [n, e.badTooltip]
2492
2869
  ]),
2493
- q((b(), $("div", On, [
2494
- Nn,
2495
- c("p", zn, S(e.totalReceived), 1)
2870
+ U((m(), $("div", li, [
2871
+ ai,
2872
+ h("p", ui, P(e.totalReceived), 1)
2496
2873
  ])), [
2497
2874
  [n, e.receivedTooltip]
2498
2875
  ]),
2499
- q((b(), $("div", Rn, [
2500
- Dn,
2501
- c("p", Ln, S(e.totalSent), 1)
2876
+ U((m(), $("div", di, [
2877
+ ci,
2878
+ h("p", pi, P(e.totalSent), 1)
2502
2879
  ])), [
2503
2880
  [n, e.sentTooltip]
2504
2881
  ])
2505
2882
  ]),
2506
- c("div", null, [
2507
- x(t.$slots, "footer")
2883
+ h("div", null, [
2884
+ b(t.$slots, "footer")
2508
2885
  ])
2509
2886
  ])
2510
2887
  ]);
2511
2888
  };
2512
2889
  }
2513
- }), Mn = { class: "yu-border yu-border-gray-100 yu-rounded-md yu-py-5 yu-px-5 yu-bg-white yu-shadow-md yu-shadow-gray-100" }, En = { class: "yu-font-plus yu-text-gray-800 yu-font-semibold yu-text-lg" }, In = { class: "yu-mt-2 yu-flex yu-flex-col" };
2514
- function Fn(e, t) {
2515
- return b(), $("div", Mn, [
2516
- c("div", En, [
2517
- x(e.$slots, "heading")
2890
+ }), yi = { class: "yu-border yu-border-gray-100 yu-rounded-md yu-py-5 yu-px-5 yu-bg-white yu-shadow-md yu-shadow-gray-100" }, fi = { class: "yu-font-plus yu-text-gray-800 yu-font-semibold yu-text-lg" }, mi = { class: "yu-mt-2 yu-flex yu-flex-col" };
2891
+ function gi(e, t) {
2892
+ return m(), $("div", yi, [
2893
+ h("div", fi, [
2894
+ b(e.$slots, "heading")
2518
2895
  ]),
2519
- c("div", In, [
2520
- x(e.$slots, "list")
2896
+ h("div", mi, [
2897
+ b(e.$slots, "list")
2521
2898
  ])
2522
2899
  ]);
2523
2900
  }
2524
- var Vn = {};
2525
- const jn = /* @__PURE__ */ K(Vn, [["render", Fn]]), Wn = /* @__PURE__ */ k({
2901
+ var vi = {};
2902
+ const wi = /* @__PURE__ */ W(vi, [["render", gi]]), bi = /* @__PURE__ */ k({
2526
2903
  __name: "subtitle",
2527
2904
  props: {
2528
2905
  inter: { type: Boolean },
@@ -2546,14 +2923,14 @@ const jn = /* @__PURE__ */ K(Vn, [["render", Fn]]), Wn = /* @__PURE__ */ k({
2546
2923
  neutral: { type: Boolean }
2547
2924
  },
2548
2925
  setup(e) {
2549
- const t = e, { fontClass: o, colorClass: n, weightClass: i, sizeClass: s } = Qe("subtitle", t);
2550
- return (r, l) => (b(), $("h3", {
2551
- class: A(["yu-font-inter yu-text-md yu-font-normal yu-text-black", [L(o), L(n), L(i), L(s)]])
2926
+ const t = e, { fontClass: o, colorClass: n, weightClass: i, sizeClass: s } = nt("subtitle", t);
2927
+ return (r, l) => (m(), $("h3", {
2928
+ class: C(["yu-font-inter yu-text-md yu-font-normal yu-text-black", [H(o), H(n), H(i), H(s)]])
2552
2929
  }, [
2553
- x(r.$slots, "default", {}, void 0, !0)
2930
+ b(r.$slots, "default", {}, void 0, !0)
2554
2931
  ], 2));
2555
2932
  }
2556
- }), qn = /* @__PURE__ */ K(Wn, [["__scopeId", "data-v-11d0ee28"]]), Gn = /* @__PURE__ */ k({
2933
+ }), xi = /* @__PURE__ */ W(bi, [["__scopeId", "data-v-11d0ee28"]]), $i = /* @__PURE__ */ k({
2557
2934
  __name: "text",
2558
2935
  props: {
2559
2936
  inter: { type: Boolean },
@@ -2578,223 +2955,265 @@ const jn = /* @__PURE__ */ K(Vn, [["render", Fn]]), Wn = /* @__PURE__ */ k({
2578
2955
  neutral: { type: Boolean }
2579
2956
  },
2580
2957
  setup(e) {
2581
- const t = e, { fontClass: o, colorClass: n, weightClass: i, sizeClass: s } = Qe("text", t);
2582
- return (r, l) => (b(), $("p", {
2583
- class: A(["yu-font-inter yu-text-sm yu-font-normal yu-text-black", [L(o), L(n), L(i), L(s)]])
2958
+ const t = e, { fontClass: o, colorClass: n, weightClass: i, sizeClass: s } = nt("text", t);
2959
+ return (r, l) => (m(), $("p", {
2960
+ class: C(["yu-font-inter yu-text-sm yu-font-normal yu-text-black", [H(o), H(n), H(i), H(s)]])
2584
2961
  }, [
2585
- x(r.$slots, "default", {}, void 0, !0)
2962
+ b(r.$slots, "default", {}, void 0, !0)
2586
2963
  ], 2));
2587
2964
  }
2588
- }), Un = /* @__PURE__ */ K(Gn, [["__scopeId", "data-v-5c9c77c5"]]), Yn = { class: "yu-w-full yu-bg-white yu-rounded-lg yu-p-6 yu-gap-2.5" }, Kn = { class: "yu-w-full yu-table-auto yu-border-separate yu-border-spacing-0 yu-rounded-lg" }, Xn = { class: "yu-bg-gray-100 yu-rounded-lg yu-border" };
2589
- function Jn(e, t) {
2590
- return b(), $("div", Yn, [
2591
- c("table", Kn, [
2592
- c("thead", Xn, [
2593
- x(e.$slots, "header")
2965
+ }), _i = /* @__PURE__ */ W($i, [["__scopeId", "data-v-5c9c77c5"]]), Ti = { class: "yu-w-full yu-bg-white yu-rounded-lg yu-p-6 yu-gap-2.5" }, Si = { class: "yu-w-full yu-table-auto yu-border-separate yu-border-spacing-0 yu-rounded-lg" }, Pi = { class: "yu-bg-gray-100 yu-rounded-lg yu-border" };
2966
+ function Bi(e, t) {
2967
+ return m(), $("div", Ti, [
2968
+ h("table", Si, [
2969
+ h("thead", Pi, [
2970
+ b(e.$slots, "header")
2594
2971
  ]),
2595
- c("tbody", null, [
2596
- x(e.$slots, "body")
2972
+ h("tbody", null, [
2973
+ b(e.$slots, "body")
2597
2974
  ])
2598
2975
  ])
2599
2976
  ]);
2600
2977
  }
2601
- var Qn = {};
2602
- const Zn = /* @__PURE__ */ K(Qn, [["render", Jn]]);
2603
- function ei(e, t) {
2604
- return b(), $("tr", null, [
2605
- x(e.$slots, "default")
2978
+ var Ci = {};
2979
+ const Ai = /* @__PURE__ */ W(Ci, [["render", Bi]]);
2980
+ function ki(e, t) {
2981
+ return m(), $("tr", null, [
2982
+ b(e.$slots, "default")
2606
2983
  ]);
2607
2984
  }
2608
- var ti = {};
2609
- const oi = /* @__PURE__ */ K(ti, [["render", ei]]), ni = { class: "yu-p-3" };
2610
- function ii(e, t) {
2611
- return b(), $("tr", ni, [
2612
- x(e.$slots, "default")
2985
+ var Oi = {};
2986
+ const zi = /* @__PURE__ */ W(Oi, [["render", ki]]), Ni = { class: "yu-p-3" };
2987
+ function Mi(e, t) {
2988
+ return m(), $("tr", Ni, [
2989
+ b(e.$slots, "default")
2613
2990
  ]);
2614
2991
  }
2615
- var si = {};
2616
- const ri = /* @__PURE__ */ K(si, [["render", ii]]), li = { class: "yu-font-plus yu-text-sm yu-py-2 yu-px-3 yu-border-b" };
2617
- function ai(e, t) {
2618
- return b(), $("td", li, [
2619
- x(e.$slots, "default")
2992
+ var Li = {};
2993
+ const Hi = /* @__PURE__ */ W(Li, [["render", Mi]]), Ri = { class: "yu-font-plus yu-text-sm yu-py-2 yu-px-3 yu-border-b" };
2994
+ function Di(e, t) {
2995
+ return m(), $("td", Ri, [
2996
+ b(e.$slots, "default")
2620
2997
  ]);
2621
2998
  }
2622
- var ui = {};
2623
- const di = /* @__PURE__ */ K(ui, [["render", ai]]), ci = {
2999
+ var Ei = {};
3000
+ const Ii = /* @__PURE__ */ W(Ei, [["render", Di]]), Fi = {
2624
3001
  class: "yu-text-gray-500 yu-font-medium yu-py-2 yu-px-3 yu-text-sm",
2625
3002
  align: "left"
2626
3003
  };
2627
- function pi(e, t) {
2628
- return b(), $("th", ci, [
2629
- x(e.$slots, "default")
3004
+ function Vi(e, t) {
3005
+ return m(), $("th", Fi, [
3006
+ b(e.$slots, "default")
2630
3007
  ]);
2631
3008
  }
2632
- var hi = {};
2633
- const yi = /* @__PURE__ */ K(hi, [["render", pi]]), fi = { class: "yu-flex yu-font-plus yu-gap-1 yu-items-center" }, mi = /* @__PURE__ */ c("p", null, "Items por página", -1), gi = { class: "material-icons yu-ml-4" }, vi = { class: "yu-flex" }, wi = ["disabled"], xi = ["disabled"], bi = /* @__PURE__ */ k({
3009
+ var ji = {};
3010
+ const Wi = /* @__PURE__ */ W(ji, [["render", Vi]]), qi = { class: "yu-flex yu-font-plus yu-gap-1 yu-items-center" }, Gi = /* @__PURE__ */ h("p", null, "Items por página", -1), Ui = { class: "material-icons yu-ml-4" }, Yi = { class: "yu-flex" }, Xi = ["disabled"], Ki = ["disabled"], Zi = /* @__PURE__ */ k({
2634
3011
  __name: "app-pagination",
2635
- props: {
3012
+ props: /* @__PURE__ */ ho({
2636
3013
  totalItems: {
2637
3014
  type: Number,
2638
3015
  required: !0
2639
3016
  },
2640
- initialPage: {
2641
- type: Number,
2642
- default: 1
2643
- },
2644
- initialPerPage: {
2645
- type: Number,
2646
- default: 10
2647
- },
2648
- perPageOptions: {
3017
+ initialPerPageOptions: {
2649
3018
  type: Array,
2650
- default: () => ["10", "20", "50", "100"]
3019
+ default: () => [5, 10, 15, 20]
2651
3020
  }
2652
- },
2653
- emits: ["update:currentPage", "update:perPage"],
2654
- setup(e, { emit: t }) {
2655
- const o = e, n = D(o.initialPerPage), i = D(o.initialPage), s = t, r = re(() => Math.ceil(o.totalItems / n.value)), l = re(() => (i.value - 1) * n.value + 1), u = re(() => Math.min(i.value * n.value, o.totalItems)), a = (y) => {
2656
- const h = parseInt(y);
2657
- h != n.value && (n.value = h, i.value = 1, s("update:perPage", { peerPage: n.value }));
2658
- }, d = () => {
2659
- i.value < r.value && (i.value += 1, s("update:currentPage", { currentPage: i.value }));
2660
- }, p = () => {
2661
- i.value > 1 && (i.value -= 1, s("update:currentPage", { currentPage: i.value }));
3021
+ }, {
3022
+ itemsPerPage: { required: !0, default: 10 },
3023
+ itemsPerPageModifiers: {},
3024
+ currentPage: { required: !0, default: 1 },
3025
+ currentPageModifiers: {}
3026
+ }),
3027
+ emits: ["update:itemsPerPage", "update:currentPage"],
3028
+ setup(e) {
3029
+ const t = e, o = qe(e, "itemsPerPage"), n = qe(e, "currentPage"), i = J(() => Math.ceil(t.totalItems / o.value)), s = J(() => (n.value - 1) * o.value + 1), r = J(() => Math.min(n.value * o.value, t.totalItems)), l = (d) => {
3030
+ const c = d;
3031
+ if (c == o.value)
3032
+ return;
3033
+ const y = (n.value - 1) * o.value + 1;
3034
+ n.value = Math.ceil(y / c), o.value = c;
3035
+ }, a = () => {
3036
+ n.value < i.value && (n.value += 1);
3037
+ }, u = () => {
3038
+ n.value > 1 && (n.value -= 1);
2662
3039
  };
2663
- return (y, h) => {
2664
- const f = gt("close-popper");
2665
- return b(), $("div", fi, [
2666
- mi,
2667
- ge(Ht, {
3040
+ return (d, c) => {
3041
+ const y = Bt("close-popper");
3042
+ return m(), $("div", qi, [
3043
+ Gi,
3044
+ pe(to, {
2668
3045
  icon: "",
2669
- label: String(n.value),
2670
- autoSize: ""
3046
+ label: String(o.value),
3047
+ autoSize: "",
3048
+ "data-testid": "app-dropdown",
3049
+ ref: "dropdown"
2671
3050
  }, {
2672
- default: Z(() => [
2673
- (b(!0), $(mt, null, Gt(e.perPageOptions, (m) => q((b(), pe(Ge, {
3051
+ default: Y(() => [
3052
+ (m(!0), $(St, null, yo(e.initialPerPageOptions, (p) => U((m(), ue(Qe, {
2674
3053
  class: "yu-justify-between",
2675
- key: m,
2676
- label: String(m),
3054
+ key: p,
3055
+ label: String(p),
2677
3056
  icon: "",
2678
- onClick: (v) => a(m)
3057
+ onClick: (f) => l(p),
3058
+ "data-testid": `simple-dropdown-item-${p}`
2679
3059
  }, {
2680
- default: Z(() => [
2681
- Pe(S(m), 1),
2682
- q(c("i", gi, "check_circle", 512), [
2683
- [Me, n.value == m]
3060
+ default: Y(() => [
3061
+ Ce(P(p), 1),
3062
+ U(h("i", Ui, "check_circle", 512), [
3063
+ [We, o.value == p]
2684
3064
  ])
2685
3065
  ]),
2686
3066
  _: 2
2687
- }, 1032, ["label", "onClick"])), [
2688
- [f]
3067
+ }, 1032, ["label", "onClick", "data-testid"])), [
3068
+ [y]
2689
3069
  ])), 128))
2690
3070
  ]),
2691
3071
  _: 1
2692
3072
  }, 8, ["label"]),
2693
- c("p", null, S(l.value) + " - " + S(u.value) + " de " + S(o.totalItems), 1),
2694
- c("div", vi, [
2695
- c("i", {
3073
+ h("p", null, P(s.value) + " - " + P(r.value) + " de " + P(t.totalItems), 1),
3074
+ h("div", Yi, [
3075
+ h("i", {
2696
3076
  class: "material-icons yu-cursor-pointer",
2697
- onClick: p,
2698
- disabled: i.value === 1
2699
- }, "chevron_left", 8, wi),
2700
- c("p", null, "Página " + S(i.value) + " de " + S(r.value), 1),
2701
- c("i", {
3077
+ onClick: u,
3078
+ disabled: n.value === 1,
3079
+ "data-testid": "prev"
3080
+ }, "chevron_left", 8, Xi),
3081
+ h("p", null, "Página " + P(n.value) + " de " + P(i.value), 1),
3082
+ h("i", {
2702
3083
  class: "material-icons yu-cursor-pointer",
2703
- onClick: d,
2704
- disabled: i.value === r.value.value
2705
- }, "chevron_right", 8, xi)
3084
+ onClick: a,
3085
+ disabled: n.value === i.value.value,
3086
+ "data-testid": "next"
3087
+ }, "chevron_right", 8, Ki)
2706
3088
  ])
2707
3089
  ]);
2708
3090
  };
2709
3091
  }
2710
- }), _i = /* @__PURE__ */ k({
3092
+ }), Qi = /* @__PURE__ */ k({
2711
3093
  __name: "app-popup",
2712
3094
  props: {
2713
- show: { required: !0, default: !1 },
2714
- showModifiers: {}
3095
+ isVisible: { required: !0, default: !1 },
3096
+ isVisibleModifiers: {}
2715
3097
  },
2716
- emits: /* @__PURE__ */ Ut(["update:show"], ["update:show"]),
2717
- setup(e, { emit: t }) {
2718
- const o = t, n = Yt(e, "show");
2719
- function i() {
2720
- n.value = !1, o("update:show", !1);
3098
+ emits: ["update:isVisible"],
3099
+ setup(e) {
3100
+ const t = qe(e, "isVisible");
3101
+ function o() {
3102
+ t.value = !1;
2721
3103
  }
2722
- return (s, r) => (b(), $("div", null, [
2723
- c("div", {
2724
- onClick: r[0] || (r[0] = (l) => n.value = !n.value)
3104
+ return (n, i) => (m(), $("div", null, [
3105
+ h("div", {
3106
+ onClick: i[0] || (i[0] = (s) => t.value = !t.value)
2725
3107
  }, [
2726
- x(s.$slots, "default")
3108
+ b(n.$slots, "default")
2727
3109
  ]),
2728
- n.value ? (b(), pe(Kt, {
3110
+ t.value ? (m(), ue(fo, {
2729
3111
  key: 0,
2730
3112
  to: "body"
2731
3113
  }, [
2732
- c("div", {
3114
+ h("div", {
2733
3115
  class: "yu-z-10 yu-absolute yu-top-0 yu-bg-zinc-900 yu-bg-opacity-50 yu-w-full yu-h-full yu-flex yu-flex-col yu-justify-center yu-items-center yu-p-4",
2734
- onClick: vt(i, ["self"]),
2735
- onKeydown: ke(i, ["esc"])
3116
+ onClick: mo(o, ["self"]),
3117
+ onKeydown: Me(o, ["esc"])
2736
3118
  }, [
2737
- x(s.$slots, "content", { handleClosePopup: i })
3119
+ b(n.$slots, "content", { handleClosePopup: o })
2738
3120
  ], 32)
2739
- ])) : de("", !0)
3121
+ ])) : ee("", !0)
2740
3122
  ]));
2741
3123
  }
2742
- }), $i = { class: "yu-flex yu-items-center yu-border yu-p-6 yu-px-7 yu-w-full yu-justify-around" }, Ti = { class: "flex" }, Pi = { class: "yu-mt-2 yu-p-6 yu-px-7" }, Si = { class: "yu-flex yu-flex-col-reverse yu-gap-2 yu-p-6 yu-px-7 yu-w-full yu-pb-4 yu-pt-3 yu-mt-6" }, Ci = /* @__PURE__ */ k({
2743
- __name: "app-modal",
2744
- emits: ["close"],
2745
- setup(e, { emit: t }) {
2746
- const o = t, n = () => {
2747
- o("close");
2748
- };
2749
- return (i, s) => (b(), $("div", {
2750
- class: "yu-w-full yu-bg-white yu-mt-auto yu-relative yu-flex yu-flex-col yu-justify-center yu-shadow-2xl yu-rounded-md yu-overflow-hidden w-[70%] md:w-[60%] lg:w-[30rem] m-auto",
2751
- onClick: s[1] || (s[1] = vt(() => {
2752
- }, ["stop"]))
3124
+ }), Ji = { key: 0 }, es = { key: 1 }, ts = { key: 2 };
3125
+ function os(e, t) {
3126
+ return m(), $("div", null, [
3127
+ e.$slots.header ? (m(), $("header", Ji, [
3128
+ b(e.$slots, "header")
3129
+ ])) : ee("", !0),
3130
+ e.$slots.body ? (m(), $("main", es, [
3131
+ b(e.$slots, "body")
3132
+ ])) : ee("", !0),
3133
+ e.$slots.footer ? (m(), $("footer", ts, [
3134
+ b(e.$slots, "footer")
3135
+ ])) : ee("", !0)
3136
+ ]);
3137
+ }
3138
+ var ns = {};
3139
+ const is = /* @__PURE__ */ W(ns, [["render", os]]), ss = /* @__PURE__ */ k({
3140
+ __name: "app-group",
3141
+ props: {
3142
+ row: { type: Boolean },
3143
+ col: { type: Boolean },
3144
+ gapNone: { type: Boolean },
3145
+ gapBase: { type: Boolean },
3146
+ gapSm: { type: Boolean },
3147
+ gapMd: { type: Boolean },
3148
+ gapLg: { type: Boolean },
3149
+ paddingNone: { type: Boolean },
3150
+ paddingBase: { type: Boolean },
3151
+ paddingSm: { type: Boolean },
3152
+ paddingMd: { type: Boolean },
3153
+ paddingLg: { type: Boolean },
3154
+ center: { type: Boolean }
3155
+ },
3156
+ setup(e) {
3157
+ const t = e, o = {
3158
+ none: "",
3159
+ base: "yu-gap-2",
3160
+ sm: "yu-gap-4",
3161
+ md: "yu-gap-6",
3162
+ lg: "yu-gap-8"
3163
+ }, n = {
3164
+ none: "",
3165
+ base: "yu-p-2",
3166
+ sm: "yu-p-4",
3167
+ md: "yu-p-6",
3168
+ lg: "yu-p-8"
3169
+ }, i = J(() => t.center ? "yu-items-center yu-justify-center" : ""), s = J(() => [
3170
+ t.row ? "yu-flex-row" : "yu-flex-col",
3171
+ t.gapNone ? o.none : "",
3172
+ t.gapBase ? o.base : "",
3173
+ t.gapSm ? o.sm : "",
3174
+ t.gapMd ? o.md : "",
3175
+ t.gapLg ? o.lg : "",
3176
+ t.paddingNone ? n.none : "",
3177
+ t.paddingBase ? n.base : "",
3178
+ t.paddingSm ? n.sm : "",
3179
+ t.paddingMd ? n.md : "",
3180
+ t.paddingLg ? n.lg : "",
3181
+ i.value
3182
+ ]);
3183
+ return (r, l) => (m(), $("div", {
3184
+ class: C(["yu-flex", s.value])
2753
3185
  }, [
2754
- c("div", $i, [
2755
- c("div", Ti, [
2756
- x(i.$slots, "header")
2757
- ]),
2758
- c("span", {
2759
- class: "material-icons yu-cursor-pointer yu-transition yu-text-gray-300 yu-text-xs yu-rounded-md yu-ml-auto yu-select-none hover:yu-text-red-500",
2760
- onClick: s[0] || (s[0] = (r) => n())
2761
- }, "close")
2762
- ]),
2763
- c("div", Pi, [
2764
- x(i.$slots, "body")
2765
- ]),
2766
- c("div", Si, [
2767
- x(i.$slots, "footer")
2768
- ])
2769
- ]));
3186
+ b(r.$slots, "default")
3187
+ ], 2));
2770
3188
  }
2771
- }), Ai = {
3189
+ }), ls = {
2772
3190
  install: (e) => {
2773
- e.component("TextInput", wt), e.component("IconTextInput", eo), e.component("SwitchCheckbox", no), e.component("ButtonPrimary", io), e.component("ButtonSecondary", so), e.component("SimpleDropdown", yo), e.component("AppDropdown", Ht), e.component("SimpleDropdownItem", Ge), e.component("StatCard", wn), e.component("AppAdvancedStatCard", Hn), e.component("ListCard", jn), e.component("AppTitle", Mt), e.component("AppSubtitle", qn), e.component("AppText", Un), e.component("AppTable", Zn), e.component("AppTableHeader", oi), e.component("AppTableRow", ri), e.component("AppTableCell", di), e.component("AppTableHeaderCell", yi), e.component("AppPagination", bi), e.component("AppPopup", _i), e.component("AppMoal", Ci);
3191
+ e.use(Hn), e.component("TextInput", Ct), e.component("IconTextInput", xo), e.component("SwitchCheckbox", To), e.component("ButtonPrimary", So), e.component("ButtonSecondary", Po), e.component("SimpleDropdown", Mo), e.component("AppDropdown", to), e.component("SimpleDropdownItem", Qe), e.component("StatCard", Xn), e.component("AppAdvancedStatCard", hi), e.component("ListCard", wi), e.component("AppTitle", oo), e.component("AppSubtitle", xi), e.component("AppText", _i), e.component("AppTable", Ai), e.component("AppTableHeader", zi), e.component("AppTableRow", Hi), e.component("AppTableCell", Ii), e.component("AppTableHeaderCell", Wi), e.component("AppPagination", Zi), e.component("AppPopup", Qi), e.component("AppContainer", is), e.component("AppGroup", ss);
2774
3192
  }
2775
3193
  };
2776
3194
  export {
2777
- Hn as AppAdvancedStatCard,
2778
- Ht as AppDropdown,
2779
- Ci as AppModal,
2780
- bi as AppPagination,
2781
- _i as AppPopup,
2782
- qn as AppSubtitle,
2783
- Zn as AppTable,
2784
- di as AppTableCell,
2785
- oi as AppTableHeader,
2786
- yi as AppTableHeaderCell,
2787
- ri as AppTableRow,
2788
- Un as AppText,
2789
- Mt as AppTitle,
2790
- io as ButtonPrimary,
2791
- so as ButtonSecondary,
2792
- eo as IconTextInput,
2793
- jn as ListCard,
2794
- yo as SimpleDropdown,
2795
- Ge as SimpleDropdownItem,
2796
- wn as StatCard,
2797
- no as SwitchCheckbox,
2798
- wt as TextInput,
2799
- Ai as default
3195
+ hi as AppAdvancedStatCard,
3196
+ is as AppContainer,
3197
+ to as AppDropdown,
3198
+ ss as AppGroup,
3199
+ Zi as AppPagination,
3200
+ Qi as AppPopup,
3201
+ xi as AppSubtitle,
3202
+ Ai as AppTable,
3203
+ Ii as AppTableCell,
3204
+ zi as AppTableHeader,
3205
+ Wi as AppTableHeaderCell,
3206
+ Hi as AppTableRow,
3207
+ _i as AppText,
3208
+ oo as AppTitle,
3209
+ So as ButtonPrimary,
3210
+ Po as ButtonSecondary,
3211
+ xo as IconTextInput,
3212
+ wi as ListCard,
3213
+ Mo as SimpleDropdown,
3214
+ Qe as SimpleDropdownItem,
3215
+ Xn as StatCard,
3216
+ To as SwitchCheckbox,
3217
+ Ct as TextInput,
3218
+ ls as default
2800
3219
  };