@opens/ui 1.0.5 → 1.0.7

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 b, ref as i, watch as h, openBlock as f, createElementBlock as m, createElementVNode as t, toDisplayString as p, normalizeClass as r, withDirectives as x, withKeys as _, vModelDynamic as C, vModelText as V, renderSlot as v, vShow as w, createVNode as $, withCtx as I, vModelCheckbox as D, createTextVNode as T } from "vue";
2
- const N = { class: "simple-input" }, O = { class: "yu-flex yu-h-full yu-pl-2" }, P = { class: "material-icons yu-text-gray-700 yu-my-auto" }, z = ["placeholder", "type", "maxlength"], E = /* @__PURE__ */ b({
1
+ import { defineComponent as O, ref as M, watch as Ve, openBlock as P, createElementBlock as k, createElementVNode as y, toDisplayString as F, normalizeClass as C, withDirectives as be, withKeys as We, vModelDynamic as ht, renderSlot as S, vShow as Ke, pushScopeId as Dt, popScopeId as Lt, nextTick as Rt, createBlock as Ce, normalizeProps as Et, guardReactiveProps as Ht, withScopeId as Mt, resolveComponent as Le, normalizeStyle as ze, Fragment as It, createCommentVNode as _e, withCtx as le, createVNode as Re, unref as D, createTextVNode as Ft, computed as ge } from "vue";
2
+ const Vt = { class: "simple-input" }, Wt = { class: "yu-flex yu-h-full yu-pl-2" }, jt = { class: "material-icons yu-text-gray-700 yu-my-auto" }, qt = ["placeholder", "type", "maxlength"], Gt = /* @__PURE__ */ O({
3
3
  __name: "icon-text-input",
4
4
  props: {
5
5
  value: null,
@@ -12,89 +12,90 @@ const N = { class: "simple-input" }, O = { class: "yu-flex yu-h-full yu-pl-2" },
12
12
  invalid: { type: Boolean }
13
13
  },
14
14
  emits: ["blur", "focus", "input"],
15
- setup(e, { emit: l }) {
15
+ setup(e, { emit: t }) {
16
16
  const o = e;
17
- i(!1);
18
- const u = i(o.value);
19
- i(!1);
20
- const n = i(o.type), s = i(!1);
21
- h(s, (y) => {
22
- if (!y) {
23
- l("blur");
17
+ M(!1);
18
+ const n = M(o.value);
19
+ M(!1);
20
+ const i = M(o.type), s = M(!1);
21
+ Ve(s, (a) => {
22
+ if (!a) {
23
+ t("blur");
24
24
  return;
25
25
  }
26
- l("focus");
26
+ t("focus");
27
27
  });
28
- function c() {
29
- return !(s.value || u.value);
30
- }
31
- function d(y) {
32
- l("input", y.target.value);
33
- }
34
- return (y, a) => (f(), m("div", N, [
35
- t("div", O, [
36
- t("i", P, p(e.icon), 1),
37
- t("p", {
38
- class: r(["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": c(), "yu-translate-y-0 yu-text-xs": !c() }])
39
- }, p(e.label), 3)
28
+ function r() {
29
+ return !(s.value || n.value);
30
+ }
31
+ function l(a) {
32
+ t("input", a.target.value);
33
+ }
34
+ return (a, u) => (P(), k("div", Vt, [
35
+ y("div", Wt, [
36
+ y("i", jt, F(e.icon), 1),
37
+ y("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": r(), "yu-translate-y-0 yu-text-xs": !r() }])
39
+ }, F(e.label), 3)
40
40
  ]),
41
- x(t("input", {
41
+ be(y("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
43
  placeholder: e.placeholder,
44
- onInput: d,
45
- onFocus: a[0] || (a[0] = (g) => s.value = !0),
46
- onBlur: a[1] || (a[1] = (g) => s.value = !1),
47
- "onUpdate:modelValue": a[2] || (a[2] = (g) => u.value = g),
48
- type: n.value || e.type,
49
- onKeyup: a[3] || (a[3] = _((g) => y.$emit("keyup-enter"), ["enter"])),
44
+ onInput: l,
45
+ onFocus: u[0] || (u[0] = (c) => s.value = !0),
46
+ onBlur: u[1] || (u[1] = (c) => s.value = !1),
47
+ "onUpdate:modelValue": u[2] || (u[2] = (c) => n.value = c),
48
+ type: i.value || e.type,
49
+ onKeyup: u[3] || (u[3] = We((c) => a.$emit("keyup-enter"), ["enter"])),
50
50
  maxlength: e.caract
51
- }, null, 40, z), [
52
- [C, u.value]
51
+ }, null, 40, qt), [
52
+ [ht, n.value]
53
53
  ])
54
54
  ]));
55
55
  }
56
- }), K = ["disabled"], B = /* @__PURE__ */ b({
56
+ }), Ut = ["type", "disabled"], ft = /* @__PURE__ */ O({
57
57
  __name: "text-input",
58
58
  props: {
59
59
  modelValue: null,
60
60
  label: null,
61
61
  invalid: { type: Boolean },
62
- disabled: { type: Boolean }
62
+ disabled: { type: Boolean },
63
+ type: null
63
64
  },
64
65
  emits: ["update:model-value", "blur", "press-enter"],
65
- setup(e, { emit: l }) {
66
- const u = i(e.modelValue), n = i(!1);
66
+ setup(e, { emit: t }) {
67
+ const n = M(e.modelValue), i = M(!1);
67
68
  function s() {
68
- return !(n.value || u.value);
69
+ return !(i.value || n.value);
69
70
  }
70
- function c(y) {
71
- l(y);
71
+ function r(a) {
72
+ t(a);
72
73
  }
73
- function d(y) {
74
- const a = y.target;
75
- l("update:model-value", a.value);
74
+ function l(a) {
75
+ const u = a.target;
76
+ t("update:model-value", u.value);
76
77
  }
77
- return (y, a) => (f(), m("div", {
78
- class: r(["simple-input", { "yu-border-red-500": e.invalid }])
78
+ return (a, u) => (P(), k("div", {
79
+ class: C(["simple-input", { "yu-border-red-500": e.invalid }])
79
80
  }, [
80
- t("p", {
81
- class: r(["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": s(), "yu-translate-x-0 yu-text-xs": !s() }])
82
- }, p(e.label), 3),
83
- x(t("input", {
81
+ y("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": s(), "yu-translate-x-0 yu-text-xs": !s() }])
83
+ }, F(e.label), 3),
84
+ be(y("input", {
84
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",
85
- "onUpdate:modelValue": a[0] || (a[0] = (g) => u.value = g),
86
- type: "text",
86
+ "onUpdate:modelValue": u[0] || (u[0] = (c) => n.value = c),
87
+ onKeyup: u[1] || (u[1] = We((c) => r("press-enter"), ["enter"])),
88
+ type: e.type,
87
89
  disabled: e.disabled,
88
- onInput: d,
89
- onKeyup: a[1] || (a[1] = _((g) => c("press-enter"), ["enter"])),
90
- onFocus: a[2] || (a[2] = (g) => n.value = !0),
91
- onBlur: a[3] || (a[3] = (g) => n.value = !1)
92
- }, null, 40, K), [
93
- [V, u.value]
90
+ onInput: l,
91
+ onFocus: u[2] || (u[2] = (c) => i.value = !0),
92
+ onBlur: u[3] || (u[3] = (c) => i.value = !1)
93
+ }, null, 40, Ut), [
94
+ [ht, n.value]
94
95
  ])
95
96
  ], 2));
96
97
  }
97
- }), M = ["checked"], U = /* @__PURE__ */ b({
98
+ }), Yt = ["checked"], Xt = /* @__PURE__ */ O({
98
99
  __name: "switch-checkbox",
99
100
  props: {
100
101
  modelValue: { type: Boolean },
@@ -102,26 +103,26 @@ const N = { class: "simple-input" }, O = { class: "yu-flex yu-h-full yu-pl-2" },
102
103
  disabled: { type: Boolean }
103
104
  },
104
105
  emits: ["update:modelValue", "change", "input"],
105
- setup(e, { emit: l }) {
106
- const u = i(e.modelValue);
107
- return i(!1), h(u, (n) => {
108
- l("update:modelValue", n);
109
- }), (n, s) => (f(), m("div", {
106
+ setup(e, { emit: t }) {
107
+ const n = M(e.modelValue);
108
+ return M(!1), Ve(n, (i) => {
109
+ t("update:modelValue", i);
110
+ }), (i, s) => (P(), k("div", {
110
111
  class: "yu-relative yu-inline-block yu-w-10 yu-align-middle yu-select-none yu-transition yu-duration-200 yu-ease-in",
111
- onClick: s[0] || (s[0] = (c) => u.value = !u.value)
112
+ onClick: s[0] || (s[0] = (r) => n.value = !n.value)
112
113
  }, [
113
- t("input", {
114
+ y("input", {
114
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",
115
116
  type: "checkbox",
116
- checked: u.value
117
- }, null, 8, M),
118
- t("label", {
119
- class: r(["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": u.value }]),
117
+ checked: n.value
118
+ }, null, 8, Yt),
119
+ y("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": n.value }]),
120
121
  for: "toggle"
121
122
  }, null, 2)
122
123
  ]));
123
124
  }
124
- }), F = /* @__PURE__ */ b({
125
+ }), Kt = /* @__PURE__ */ O({
125
126
  __name: "button-primary",
126
127
  props: {
127
128
  large: {
@@ -146,13 +147,13 @@ const N = { class: "simple-input" }, O = { class: "yu-flex yu-h-full yu-pl-2" },
146
147
  }
147
148
  },
148
149
  setup(e) {
149
- return (l, o) => (f(), m("button", {
150
- class: r(["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) => (P(), k("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 }])
151
152
  }, [
152
- v(l.$slots, "default")
153
+ S(t.$slots, "default")
153
154
  ], 2));
154
155
  }
155
- }), L = /* @__PURE__ */ b({
156
+ }), Jt = /* @__PURE__ */ O({
156
157
  __name: "button-secondary",
157
158
  props: {
158
159
  large: {
@@ -177,26 +178,26 @@ const N = { class: "simple-input" }, O = { class: "yu-flex yu-h-full yu-pl-2" },
177
178
  }
178
179
  },
179
180
  setup(e) {
180
- return (l, o) => (f(), m("button", {
181
- class: r(["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) => (P(), k("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 }])
182
183
  }, [
183
- v(l.$slots, "default")
184
+ S(t.$slots, "default")
184
185
  ], 2));
185
186
  }
186
- }), j = { 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" };
187
- function q(e, l) {
188
- return f(), m("div", j, [
189
- v(e.$slots, "default")
187
+ }), Qt = { 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 Zt(e, t) {
189
+ return P(), k("div", Qt, [
190
+ S(e.$slots, "default")
190
191
  ]);
191
192
  }
192
- const k = (e, l) => {
193
+ const ye = (e, t) => {
193
194
  const o = e.__vccOpts || e;
194
- for (const [u, n] of l)
195
- o[u] = n;
195
+ for (const [n, i] of t)
196
+ o[n] = i;
196
197
  return o;
197
198
  };
198
- var A = {};
199
- const S = /* @__PURE__ */ k(A, [["render", q]]), G = { class: "yu-relative yu-w-full" }, H = { class: "yu-text-gray-700 yu-font-plus yu-font-medium yu-text-base yu-mr-2" }, J = { 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" }, Q = { class: "yu-w-full yu-rounded-md yu-p-2" }, R = /* @__PURE__ */ b({
199
+ var eo = {};
200
+ const yt = /* @__PURE__ */ ye(eo, [["render", Zt]]), to = { class: "yu-relative yu-w-full" }, oo = { class: "yu-text-gray-700 yu-font-plus yu-font-medium yu-text-base yu-mr-2" }, no = { 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" }, io = { class: "yu-w-full yu-rounded-md yu-p-2" }, so = /* @__PURE__ */ O({
200
201
  __name: "simple-dropdown",
201
202
  props: {
202
203
  label: null,
@@ -204,96 +205,2088 @@ const S = /* @__PURE__ */ k(A, [["render", q]]), G = { class: "yu-relative yu-w-
204
205
  isOpen: { type: Boolean }
205
206
  },
206
207
  setup(e) {
207
- const l = e;
208
- h(() => l.isOpen, (u) => {
209
- o.value = u, console.log(u);
210
- });
211
- const o = i(!1);
212
- return (u, n) => (f(), m("div", null, [
213
- t("div", G, [
214
- t("button", {
215
- class: r(["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 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 }]),
216
- onClick: n[0] || (n[0] = (s) => o.value = !o.value)
208
+ const t = e;
209
+ Ve(
210
+ () => t.isOpen,
211
+ (n) => {
212
+ o.value = n;
213
+ }
214
+ );
215
+ const o = M(!1);
216
+ return (n, i) => (P(), k("div", null, [
217
+ y("div", to, [
218
+ y("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
+ onClick: i[0] || (i[0] = (s) => o.value = !o.value)
217
221
  }, [
218
- x(t("i", {
219
- class: r(["material-icons yu-text-gray-700 yu-h-fit", { "yu-text-primary-500": o.value }])
220
- }, p(e.icon), 3), [
221
- [w, e.icon]
222
+ be(y("i", {
223
+ class: C(["material-icons yu-text-gray-700 yu-h-fit", { "yu-text-primary-500": o.value }])
224
+ }, F(e.icon), 3), [
225
+ [Ke, e.icon]
222
226
  ]),
223
- t("div", H, p(e.label), 1),
224
- t("i", {
225
- class: r(["material-icons yu-text-gray-700 yu-h-fit yu-ml-auto", { "yu-text-primary-500 yu-rotate-180": o.value }])
227
+ y("div", oo, F(e.label), 1),
228
+ y("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 }])
226
230
  }, " keyboard_arrow_down", 2)
227
231
  ], 2),
228
- x(t("div", J, [
229
- t("div", Q, [
230
- v(u.$slots, "default")
232
+ be(y("div", no, [
233
+ y("div", io, [
234
+ S(n.$slots, "default")
231
235
  ])
232
236
  ], 512), [
233
- [w, o.value]
237
+ [Ke, o.value]
234
238
  ])
235
239
  ])
236
240
  ]));
237
241
  }
238
- }), W = { class: "yu-w-fit yu-relative" }, X = { class: "yu-text-gray-700 yu-font-plus yu-font-medium yu-text-base yu-mr-2" }, Y = { class: "yu-mt-2 yu-w-full yu-bg-white yu-rounded-md yu-shadow-md yu-z-10 yu-absolute" }, Z = { class: "yu-w-full yu-rounded-md yu-p-2 yu-flex yu-flex-col yu-gap-1" }, ee = /* @__PURE__ */ t("div", { class: "yu-text-gray-700 yu-text-xs" }, "Selecionar todos", -1), te = /* @__PURE__ */ b({
239
- __name: "select-dropdown",
242
+ }), ro = ["top", "right", "bottom", "left"], Je = ["start", "end"], Qe = /* @__PURE__ */ ro.reduce((e, t) => e.concat(t, t + "-" + Je[0], t + "-" + Je[1]), []), pe = Math.min, oe = Math.max, lo = {
243
+ left: "right",
244
+ right: "left",
245
+ bottom: "top",
246
+ top: "bottom"
247
+ }, ao = {
248
+ start: "end",
249
+ end: "start"
250
+ };
251
+ function Ee(e, t, o) {
252
+ return oe(e, pe(t, o));
253
+ }
254
+ function ie(e, t) {
255
+ return typeof e == "function" ? e(t) : e;
256
+ }
257
+ function U(e) {
258
+ return e.split("-")[0];
259
+ }
260
+ function V(e) {
261
+ return e.split("-")[1];
262
+ }
263
+ function mt(e) {
264
+ return e === "x" ? "y" : "x";
265
+ }
266
+ function je(e) {
267
+ return e === "y" ? "height" : "width";
268
+ }
269
+ function me(e) {
270
+ return ["top", "bottom"].includes(U(e)) ? "y" : "x";
271
+ }
272
+ function qe(e) {
273
+ return mt(me(e));
274
+ }
275
+ function gt(e, t, o) {
276
+ o === void 0 && (o = !1);
277
+ const n = V(e), i = qe(e), s = je(i);
278
+ let r = i === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
279
+ return t.reference[s] > t.floating[s] && (r = Se(r)), [r, Se(r)];
280
+ }
281
+ function uo(e) {
282
+ const t = Se(e);
283
+ return [$e(e), t, $e(t)];
284
+ }
285
+ function $e(e) {
286
+ return e.replace(/start|end/g, (t) => ao[t]);
287
+ }
288
+ function co(e, t, o) {
289
+ const n = ["left", "right"], i = ["right", "left"], s = ["top", "bottom"], r = ["bottom", "top"];
290
+ switch (e) {
291
+ case "top":
292
+ case "bottom":
293
+ return o ? t ? i : n : t ? n : i;
294
+ case "left":
295
+ case "right":
296
+ return t ? s : r;
297
+ default:
298
+ return [];
299
+ }
300
+ }
301
+ function po(e, t, o, n) {
302
+ const i = V(e);
303
+ let s = co(U(e), o === "start", n);
304
+ return i && (s = s.map((r) => r + "-" + i), t && (s = s.concat(s.map($e)))), s;
305
+ }
306
+ function Se(e) {
307
+ return e.replace(/left|right|bottom|top/g, (t) => lo[t]);
308
+ }
309
+ function ho(e) {
310
+ return {
311
+ top: 0,
312
+ right: 0,
313
+ bottom: 0,
314
+ left: 0,
315
+ ...e
316
+ };
317
+ }
318
+ function wt(e) {
319
+ return typeof e != "number" ? ho(e) : {
320
+ top: e,
321
+ right: e,
322
+ bottom: e,
323
+ left: e
324
+ };
325
+ }
326
+ function ae(e) {
327
+ return {
328
+ ...e,
329
+ top: e.y,
330
+ left: e.x,
331
+ right: e.x + e.width,
332
+ bottom: e.y + e.height
333
+ };
334
+ }
335
+ function Ze(e, t, o) {
336
+ let {
337
+ reference: n,
338
+ floating: i
339
+ } = e;
340
+ const s = me(t), r = qe(t), l = je(r), a = U(t), u = s === "y", c = n.x + n.width / 2 - i.width / 2, p = n.y + n.height / 2 - i.height / 2, h = n[l] / 2 - i[l] / 2;
341
+ let d;
342
+ switch (a) {
343
+ case "top":
344
+ d = {
345
+ x: c,
346
+ y: n.y - i.height
347
+ };
348
+ break;
349
+ case "bottom":
350
+ d = {
351
+ x: c,
352
+ y: n.y + n.height
353
+ };
354
+ break;
355
+ case "right":
356
+ d = {
357
+ x: n.x + n.width,
358
+ y: p
359
+ };
360
+ break;
361
+ case "left":
362
+ d = {
363
+ x: n.x - i.width,
364
+ y: p
365
+ };
366
+ break;
367
+ default:
368
+ d = {
369
+ x: n.x,
370
+ y: n.y
371
+ };
372
+ }
373
+ switch (V(t)) {
374
+ case "start":
375
+ d[r] -= h * (o && u ? -1 : 1);
376
+ break;
377
+ case "end":
378
+ d[r] += h * (o && u ? -1 : 1);
379
+ break;
380
+ }
381
+ return d;
382
+ }
383
+ const fo = async (e, t, o) => {
384
+ const {
385
+ placement: n = "bottom",
386
+ strategy: i = "absolute",
387
+ middleware: s = [],
388
+ platform: r
389
+ } = o, l = s.filter(Boolean), a = await (r.isRTL == null ? void 0 : r.isRTL(t));
390
+ let u = await r.getElementRects({
391
+ reference: e,
392
+ floating: t,
393
+ strategy: i
394
+ }), {
395
+ x: c,
396
+ y: p
397
+ } = Ze(u, n, a), h = n, d = {}, f = 0;
398
+ for (let m = 0; m < l.length; m++) {
399
+ const {
400
+ name: v,
401
+ fn: g
402
+ } = l[m], {
403
+ x: w,
404
+ y: b,
405
+ data: $,
406
+ reset: _
407
+ } = await g({
408
+ x: c,
409
+ y: p,
410
+ initialPlacement: n,
411
+ placement: h,
412
+ strategy: i,
413
+ middlewareData: d,
414
+ rects: u,
415
+ platform: r,
416
+ elements: {
417
+ reference: e,
418
+ floating: t
419
+ }
420
+ });
421
+ if (c = w ?? c, p = b ?? p, d = {
422
+ ...d,
423
+ [v]: {
424
+ ...d[v],
425
+ ...$
426
+ }
427
+ }, _ && f <= 50) {
428
+ f++, typeof _ == "object" && (_.placement && (h = _.placement), _.rects && (u = _.rects === !0 ? await r.getElementRects({
429
+ reference: e,
430
+ floating: t,
431
+ strategy: i
432
+ }) : _.rects), {
433
+ x: c,
434
+ y: p
435
+ } = Ze(u, h, a)), m = -1;
436
+ continue;
437
+ }
438
+ }
439
+ return {
440
+ x: c,
441
+ y: p,
442
+ placement: h,
443
+ strategy: i,
444
+ middlewareData: d
445
+ };
446
+ };
447
+ async function Be(e, t) {
448
+ var o;
449
+ t === void 0 && (t = {});
450
+ const {
451
+ x: n,
452
+ y: i,
453
+ platform: s,
454
+ rects: r,
455
+ elements: l,
456
+ strategy: a
457
+ } = e, {
458
+ boundary: u = "clippingAncestors",
459
+ rootBoundary: c = "viewport",
460
+ elementContext: p = "floating",
461
+ altBoundary: h = !1,
462
+ padding: d = 0
463
+ } = ie(t, e), f = wt(d), v = l[h ? p === "floating" ? "reference" : "floating" : p], g = ae(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: u,
466
+ rootBoundary: c,
467
+ strategy: a
468
+ })), w = p === "floating" ? {
469
+ ...r.floating,
470
+ x: n,
471
+ y: i
472
+ } : r.reference, b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l.floating)), $ = await (s.isElement == null ? void 0 : s.isElement(b)) ? await (s.getScale == null ? void 0 : s.getScale(b)) || {
473
+ x: 1,
474
+ y: 1
475
+ } : {
476
+ x: 1,
477
+ y: 1
478
+ }, _ = ae(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
479
+ rect: w,
480
+ offsetParent: b,
481
+ strategy: a
482
+ }) : w);
483
+ return {
484
+ top: (g.top - _.top + f.top) / $.y,
485
+ bottom: (_.bottom - g.bottom + f.bottom) / $.y,
486
+ left: (g.left - _.left + f.left) / $.x,
487
+ right: (_.right - g.right + f.right) / $.x
488
+ };
489
+ }
490
+ const yo = (e) => ({
491
+ name: "arrow",
492
+ options: e,
493
+ async fn(t) {
494
+ const {
495
+ x: o,
496
+ y: n,
497
+ placement: i,
498
+ rects: s,
499
+ platform: r,
500
+ elements: l,
501
+ middlewareData: a
502
+ } = t, {
503
+ element: u,
504
+ padding: c = 0
505
+ } = ie(e, t) || {};
506
+ if (u == null)
507
+ return {};
508
+ const p = wt(c), h = {
509
+ x: o,
510
+ y: n
511
+ }, d = qe(i), f = je(d), m = await r.getDimensions(u), v = d === "y", g = v ? "top" : "left", w = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", $ = s.reference[f] + s.reference[d] - h[d] - s.floating[f], _ = h[d] - s.reference[d], T = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(u));
512
+ let B = T ? T[b] : 0;
513
+ (!B || !await (r.isElement == null ? void 0 : r.isElement(T))) && (B = l.floating[b] || s.floating[f]);
514
+ const R = $ / 2 - _ / 2, E = B / 2 - m[f] / 2 - 1, A = pe(p[g], E), H = pe(p[w], E), z = A, ee = B - m[f] - H, N = B / 2 - m[f] / 2 + R, W = Ee(z, N, ee), j = !a.arrow && V(i) != null && N != W && s.reference[f] / 2 - (N < z ? A : H) - m[f] / 2 < 0, Y = j ? N < z ? N - z : N - ee : 0;
515
+ return {
516
+ [d]: h[d] + Y,
517
+ data: {
518
+ [d]: W,
519
+ centerOffset: N - W - Y,
520
+ ...j && {
521
+ alignmentOffset: Y
522
+ }
523
+ },
524
+ reset: j
525
+ };
526
+ }
527
+ });
528
+ function mo(e, t, o) {
529
+ return (e ? [...o.filter((i) => V(i) === e), ...o.filter((i) => V(i) !== e)] : o.filter((i) => U(i) === i)).filter((i) => e ? V(i) === e || (t ? $e(i) !== i : !1) : !0);
530
+ }
531
+ const go = function(e) {
532
+ return e === void 0 && (e = {}), {
533
+ name: "autoPlacement",
534
+ options: e,
535
+ async fn(t) {
536
+ var o, n, i;
537
+ const {
538
+ rects: s,
539
+ middlewareData: r,
540
+ placement: l,
541
+ platform: a,
542
+ elements: u
543
+ } = t, {
544
+ crossAxis: c = !1,
545
+ alignment: p,
546
+ allowedPlacements: h = Qe,
547
+ autoAlignment: d = !0,
548
+ ...f
549
+ } = ie(e, t), m = p !== void 0 || h === Qe ? mo(p || null, d, h) : h, v = await Be(t, f), g = ((o = r.autoPlacement) == null ? void 0 : o.index) || 0, w = m[g];
550
+ if (w == null)
551
+ return {};
552
+ const b = gt(w, s, await (a.isRTL == null ? void 0 : a.isRTL(u.floating)));
553
+ if (l !== w)
554
+ return {
555
+ reset: {
556
+ placement: m[0]
557
+ }
558
+ };
559
+ const $ = [v[U(w)], v[b[0]], v[b[1]]], _ = [...((n = r.autoPlacement) == null ? void 0 : n.overflows) || [], {
560
+ placement: w,
561
+ overflows: $
562
+ }], T = m[g + 1];
563
+ if (T)
564
+ return {
565
+ data: {
566
+ index: g + 1,
567
+ overflows: _
568
+ },
569
+ reset: {
570
+ placement: T
571
+ }
572
+ };
573
+ const B = _.map((A) => {
574
+ const H = V(A.placement);
575
+ return [A.placement, H && c ? (
576
+ // Check along the mainAxis and main crossAxis side.
577
+ A.overflows.slice(0, 2).reduce((z, ee) => z + ee, 0)
578
+ ) : (
579
+ // Check only the mainAxis.
580
+ A.overflows[0]
581
+ ), A.overflows];
582
+ }).sort((A, H) => A[1] - H[1]), E = ((i = B.filter((A) => A[2].slice(
583
+ 0,
584
+ // Aligned placements should not check their opposite crossAxis
585
+ // side.
586
+ V(A[0]) ? 2 : 3
587
+ ).every((H) => H <= 0))[0]) == null ? void 0 : i[0]) || B[0][0];
588
+ return E !== l ? {
589
+ data: {
590
+ index: g + 1,
591
+ overflows: _
592
+ },
593
+ reset: {
594
+ placement: E
595
+ }
596
+ } : {};
597
+ }
598
+ };
599
+ }, wo = function(e) {
600
+ return e === void 0 && (e = {}), {
601
+ name: "flip",
602
+ options: e,
603
+ async fn(t) {
604
+ var o, n;
605
+ const {
606
+ placement: i,
607
+ middlewareData: s,
608
+ rects: r,
609
+ initialPlacement: l,
610
+ platform: a,
611
+ elements: u
612
+ } = t, {
613
+ mainAxis: c = !0,
614
+ crossAxis: p = !0,
615
+ fallbackPlacements: h,
616
+ fallbackStrategy: d = "bestFit",
617
+ fallbackAxisSideDirection: f = "none",
618
+ flipAlignment: m = !0,
619
+ ...v
620
+ } = ie(e, t);
621
+ if ((o = s.arrow) != null && o.alignmentOffset)
622
+ return {};
623
+ const g = U(i), w = U(l) === l, b = await (a.isRTL == null ? void 0 : a.isRTL(u.floating)), $ = h || (w || !m ? [Se(l)] : uo(l));
624
+ !h && f !== "none" && $.push(...po(l, m, f, b));
625
+ const _ = [l, ...$], T = await Be(t, v), B = [];
626
+ let R = ((n = s.flip) == null ? void 0 : n.overflows) || [];
627
+ if (c && B.push(T[g]), p) {
628
+ const z = gt(i, r, b);
629
+ B.push(T[z[0]], T[z[1]]);
630
+ }
631
+ if (R = [...R, {
632
+ placement: i,
633
+ overflows: B
634
+ }], !B.every((z) => z <= 0)) {
635
+ var E, A;
636
+ const z = (((E = s.flip) == null ? void 0 : E.index) || 0) + 1, ee = _[z];
637
+ if (ee)
638
+ return {
639
+ data: {
640
+ index: z,
641
+ overflows: R
642
+ },
643
+ reset: {
644
+ placement: ee
645
+ }
646
+ };
647
+ let N = (A = R.filter((W) => W.overflows[0] <= 0).sort((W, j) => W.overflows[1] - j.overflows[1])[0]) == null ? void 0 : A.placement;
648
+ if (!N)
649
+ switch (d) {
650
+ case "bestFit": {
651
+ var H;
652
+ const W = (H = R.map((j) => [j.placement, j.overflows.filter((Y) => Y > 0).reduce((Y, Nt) => Y + Nt, 0)]).sort((j, Y) => j[1] - Y[1])[0]) == null ? void 0 : H[0];
653
+ W && (N = W);
654
+ break;
655
+ }
656
+ case "initialPlacement":
657
+ N = l;
658
+ break;
659
+ }
660
+ if (i !== N)
661
+ return {
662
+ reset: {
663
+ placement: N
664
+ }
665
+ };
666
+ }
667
+ return {};
668
+ }
669
+ };
670
+ };
671
+ async function vo(e, t) {
672
+ const {
673
+ placement: o,
674
+ platform: n,
675
+ elements: i
676
+ } = e, s = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), r = U(o), l = V(o), a = me(o) === "y", u = ["left", "top"].includes(r) ? -1 : 1, c = s && a ? -1 : 1, p = ie(t, e);
677
+ let {
678
+ mainAxis: h,
679
+ crossAxis: d,
680
+ alignmentAxis: f
681
+ } = typeof p == "number" ? {
682
+ mainAxis: p,
683
+ crossAxis: 0,
684
+ alignmentAxis: null
685
+ } : {
686
+ mainAxis: 0,
687
+ crossAxis: 0,
688
+ alignmentAxis: null,
689
+ ...p
690
+ };
691
+ return l && typeof f == "number" && (d = l === "end" ? f * -1 : f), a ? {
692
+ x: d * c,
693
+ y: h * u
694
+ } : {
695
+ x: h * u,
696
+ y: d * c
697
+ };
698
+ }
699
+ const xo = function(e) {
700
+ return e === void 0 && (e = 0), {
701
+ name: "offset",
702
+ options: e,
703
+ async fn(t) {
704
+ var o, n;
705
+ const {
706
+ x: i,
707
+ y: s,
708
+ placement: r,
709
+ middlewareData: l
710
+ } = t, a = await vo(t, e);
711
+ return r === ((o = l.offset) == null ? void 0 : o.placement) && (n = l.arrow) != null && n.alignmentOffset ? {} : {
712
+ x: i + a.x,
713
+ y: s + a.y,
714
+ data: {
715
+ ...a,
716
+ placement: r
717
+ }
718
+ };
719
+ }
720
+ };
721
+ }, bo = function(e) {
722
+ return e === void 0 && (e = {}), {
723
+ name: "shift",
724
+ options: e,
725
+ async fn(t) {
726
+ const {
727
+ x: o,
728
+ y: n,
729
+ placement: i
730
+ } = t, {
731
+ mainAxis: s = !0,
732
+ crossAxis: r = !1,
733
+ limiter: l = {
734
+ fn: (v) => {
735
+ let {
736
+ x: g,
737
+ y: w
738
+ } = v;
739
+ return {
740
+ x: g,
741
+ y: w
742
+ };
743
+ }
744
+ },
745
+ ...a
746
+ } = ie(e, t), u = {
747
+ x: o,
748
+ y: n
749
+ }, c = await Be(t, a), p = me(U(i)), h = mt(p);
750
+ let d = u[h], f = u[p];
751
+ if (s) {
752
+ const v = h === "y" ? "top" : "left", g = h === "y" ? "bottom" : "right", w = d + c[v], b = d - c[g];
753
+ d = Ee(w, d, b);
754
+ }
755
+ if (r) {
756
+ const v = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", w = f + c[v], b = f - c[g];
757
+ f = Ee(w, f, b);
758
+ }
759
+ const m = l.fn({
760
+ ...t,
761
+ [h]: d,
762
+ [p]: f
763
+ });
764
+ return {
765
+ ...m,
766
+ data: {
767
+ x: m.x - o,
768
+ y: m.y - n
769
+ }
770
+ };
771
+ }
772
+ };
773
+ }, _o = function(e) {
774
+ return e === void 0 && (e = {}), {
775
+ name: "size",
776
+ options: e,
777
+ async fn(t) {
778
+ const {
779
+ placement: o,
780
+ rects: n,
781
+ platform: i,
782
+ elements: s
783
+ } = t, {
784
+ apply: r = () => {
785
+ },
786
+ ...l
787
+ } = ie(e, t), a = await Be(t, l), u = U(o), c = V(o), p = me(o) === "y", {
788
+ width: h,
789
+ height: d
790
+ } = n.floating;
791
+ let f, m;
792
+ u === "top" || u === "bottom" ? (f = u, m = c === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (m = u, f = c === "end" ? "top" : "bottom");
793
+ const v = d - a[f], g = h - a[m], w = !t.middlewareData.shift;
794
+ let b = v, $ = g;
795
+ if (p) {
796
+ const T = h - a.left - a.right;
797
+ $ = c || w ? pe(g, T) : T;
798
+ } else {
799
+ const T = d - a.top - a.bottom;
800
+ b = c || w ? pe(v, T) : T;
801
+ }
802
+ if (w && !c) {
803
+ const T = oe(a.left, 0), B = oe(a.right, 0), R = oe(a.top, 0), E = oe(a.bottom, 0);
804
+ p ? $ = h - 2 * (T !== 0 || B !== 0 ? T + B : oe(a.left, a.right)) : b = d - 2 * (R !== 0 || E !== 0 ? R + E : oe(a.top, a.bottom));
805
+ }
806
+ await r({
807
+ ...t,
808
+ availableWidth: $,
809
+ availableHeight: b
810
+ });
811
+ const _ = await i.getDimensions(s.floating);
812
+ return h !== _.width || d !== _.height ? {
813
+ reset: {
814
+ rects: !0
815
+ }
816
+ } : {};
817
+ }
818
+ };
819
+ };
820
+ function L(e) {
821
+ var t;
822
+ return ((t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
823
+ }
824
+ function q(e) {
825
+ return L(e).getComputedStyle(e);
826
+ }
827
+ const et = Math.min, ue = Math.max, Te = Math.round;
828
+ function vt(e) {
829
+ const t = q(e);
830
+ let o = parseFloat(t.width), n = parseFloat(t.height);
831
+ const i = e.offsetWidth, s = e.offsetHeight, r = Te(o) !== i || Te(n) !== s;
832
+ return r && (o = i, n = s), { width: o, height: n, fallback: r };
833
+ }
834
+ function Z(e) {
835
+ return bt(e) ? (e.nodeName || "").toLowerCase() : "";
836
+ }
837
+ let we;
838
+ function xt() {
839
+ if (we)
840
+ return we;
841
+ const e = navigator.userAgentData;
842
+ return e && Array.isArray(e.brands) ? (we = e.brands.map((t) => t.brand + "/" + t.version).join(" "), we) : navigator.userAgent;
843
+ }
844
+ function G(e) {
845
+ return e instanceof L(e).HTMLElement;
846
+ }
847
+ function J(e) {
848
+ return e instanceof L(e).Element;
849
+ }
850
+ function bt(e) {
851
+ return e instanceof L(e).Node;
852
+ }
853
+ function tt(e) {
854
+ return typeof ShadowRoot > "u" ? !1 : e instanceof L(e).ShadowRoot || e instanceof ShadowRoot;
855
+ }
856
+ function Ae(e) {
857
+ const { overflow: t, overflowX: o, overflowY: n, display: i } = q(e);
858
+ return /auto|scroll|overlay|hidden|clip/.test(t + n + o) && !["inline", "contents"].includes(i);
859
+ }
860
+ function $o(e) {
861
+ return ["table", "td", "th"].includes(Z(e));
862
+ }
863
+ function He(e) {
864
+ const t = /firefox/i.test(xt()), o = q(e), n = o.backdropFilter || o.WebkitBackdropFilter;
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
+ const s = o.contain;
867
+ return s != null && s.includes(i);
868
+ });
869
+ }
870
+ function _t() {
871
+ return !/^((?!chrome|android).)*safari/i.test(xt());
872
+ }
873
+ function Ge(e) {
874
+ return ["html", "body", "#document"].includes(Z(e));
875
+ }
876
+ function $t(e) {
877
+ return J(e) ? e : e.contextElement;
878
+ }
879
+ const St = { x: 1, y: 1 };
880
+ function se(e) {
881
+ const t = $t(e);
882
+ if (!G(t))
883
+ return St;
884
+ const o = t.getBoundingClientRect(), { width: n, height: i, fallback: s } = vt(t);
885
+ let r = (s ? Te(o.width) : o.width) / n, l = (s ? Te(o.height) : o.height) / i;
886
+ return r && Number.isFinite(r) || (r = 1), l && Number.isFinite(l) || (l = 1), { x: r, y: l };
887
+ }
888
+ function he(e, t, o, n) {
889
+ var i, s;
890
+ t === void 0 && (t = !1), o === void 0 && (o = !1);
891
+ const r = e.getBoundingClientRect(), l = $t(e);
892
+ let a = St;
893
+ t && (n ? J(n) && (a = se(n)) : a = se(e));
894
+ const u = l ? L(l) : window, c = !_t() && o;
895
+ let p = (r.left + (c && ((i = u.visualViewport) == null ? void 0 : i.offsetLeft) || 0)) / a.x, h = (r.top + (c && ((s = u.visualViewport) == null ? void 0 : s.offsetTop) || 0)) / a.y, d = r.width / a.x, f = r.height / a.y;
896
+ if (l) {
897
+ const m = L(l), v = n && J(n) ? L(n) : n;
898
+ let g = m.frameElement;
899
+ for (; g && n && v !== m; ) {
900
+ const w = se(g), b = g.getBoundingClientRect(), $ = getComputedStyle(g);
901
+ b.x += (g.clientLeft + parseFloat($.paddingLeft)) * w.x, b.y += (g.clientTop + parseFloat($.paddingTop)) * w.y, p *= w.x, h *= w.y, d *= w.x, f *= w.y, p += b.x, h += b.y, g = L(g).frameElement;
902
+ }
903
+ }
904
+ return { width: d, height: f, top: h, right: p + d, bottom: h + f, left: p, x: p, y: h };
905
+ }
906
+ function Q(e) {
907
+ return ((bt(e) ? e.ownerDocument : e.document) || window.document).documentElement;
908
+ }
909
+ function ke(e) {
910
+ return J(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
911
+ }
912
+ function Tt(e) {
913
+ return he(Q(e)).left + ke(e).scrollLeft;
914
+ }
915
+ function fe(e) {
916
+ if (Z(e) === "html")
917
+ return e;
918
+ const t = e.assignedSlot || e.parentNode || tt(e) && e.host || Q(e);
919
+ return tt(t) ? t.host : t;
920
+ }
921
+ function Pt(e) {
922
+ const t = fe(e);
923
+ return Ge(t) ? t.ownerDocument.body : G(t) && Ae(t) ? t : Pt(t);
924
+ }
925
+ function Pe(e, t) {
926
+ var o;
927
+ t === void 0 && (t = []);
928
+ const n = Pt(e), i = n === ((o = e.ownerDocument) == null ? void 0 : o.body), s = L(n);
929
+ return i ? t.concat(s, s.visualViewport || [], Ae(n) ? n : []) : t.concat(n, Pe(n));
930
+ }
931
+ function ot(e, t, o) {
932
+ return t === "viewport" ? ae(function(n, i) {
933
+ const s = L(n), r = Q(n), l = s.visualViewport;
934
+ let a = r.clientWidth, u = r.clientHeight, c = 0, p = 0;
935
+ if (l) {
936
+ a = l.width, u = l.height;
937
+ const h = _t();
938
+ (h || !h && i === "fixed") && (c = l.offsetLeft, p = l.offsetTop);
939
+ }
940
+ return { width: a, height: u, x: c, y: p };
941
+ }(e, o)) : J(t) ? ae(function(n, i) {
942
+ const s = he(n, !0, i === "fixed"), r = s.top + n.clientTop, l = s.left + n.clientLeft, a = G(n) ? se(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)) : ae(function(n) {
945
+ const i = Q(n), s = ke(n), r = n.ownerDocument.body, l = ue(i.scrollWidth, i.clientWidth, r.scrollWidth, r.clientWidth), a = ue(i.scrollHeight, i.clientHeight, r.scrollHeight, r.clientHeight);
946
+ let u = -s.scrollLeft + Tt(n);
947
+ const c = -s.scrollTop;
948
+ return q(r).direction === "rtl" && (u += ue(i.clientWidth, r.clientWidth) - l), { width: l, height: a, x: u, y: c };
949
+ }(Q(e)));
950
+ }
951
+ function nt(e) {
952
+ return G(e) && q(e).position !== "fixed" ? e.offsetParent : null;
953
+ }
954
+ function it(e) {
955
+ const t = L(e);
956
+ let o = nt(e);
957
+ for (; o && $o(o) && q(o).position === "static"; )
958
+ o = nt(o);
959
+ return o && (Z(o) === "html" || Z(o) === "body" && q(o).position === "static" && !He(o)) ? t : o || function(n) {
960
+ let i = fe(n);
961
+ for (; G(i) && !Ge(i); ) {
962
+ if (He(i))
963
+ return i;
964
+ i = fe(i);
965
+ }
966
+ return null;
967
+ }(e) || t;
968
+ }
969
+ function So(e, t, o) {
970
+ const n = G(t), i = Q(t), s = he(e, !0, o === "fixed", t);
971
+ let r = { scrollLeft: 0, scrollTop: 0 };
972
+ const l = { x: 0, y: 0 };
973
+ if (n || !n && o !== "fixed")
974
+ if ((Z(t) !== "body" || Ae(i)) && (r = ke(t)), G(t)) {
975
+ const a = he(t, !0);
976
+ l.x = a.x + t.clientLeft, l.y = a.y + t.clientTop;
977
+ } else
978
+ i && (l.x = Tt(i));
979
+ return { x: s.left + r.scrollLeft - l.x, y: s.top + r.scrollTop - l.y, width: s.width, height: s.height };
980
+ }
981
+ const To = { getClippingRect: function(e) {
982
+ let { element: t, boundary: o, rootBoundary: n, strategy: i } = e;
983
+ const s = o === "clippingAncestors" ? function(u, c) {
984
+ const p = c.get(u);
985
+ if (p)
986
+ return p;
987
+ let h = Pe(u).filter((v) => J(v) && Z(v) !== "body"), d = null;
988
+ const f = q(u).position === "fixed";
989
+ let m = f ? fe(u) : u;
990
+ for (; J(m) && !Ge(m); ) {
991
+ const v = q(m), g = He(m);
992
+ (f ? g || d : g || v.position !== "static" || !d || !["absolute", "fixed"].includes(d.position)) ? d = v : h = h.filter((w) => w !== m), m = fe(m);
993
+ }
994
+ return c.set(u, h), h;
995
+ }(t, this._c) : [].concat(o), r = [...s, n], l = r[0], a = r.reduce((u, c) => {
996
+ const p = ot(t, c, i);
997
+ return u.top = ue(p.top, u.top), u.right = et(p.right, u.right), u.bottom = et(p.bottom, u.bottom), u.left = ue(p.left, u.left), u;
998
+ }, ot(t, l, i));
999
+ return { width: a.right - a.left, height: a.bottom - a.top, x: a.left, y: a.top };
1000
+ }, convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
1001
+ let { rect: t, offsetParent: o, strategy: n } = e;
1002
+ const i = G(o), s = Q(o);
1003
+ if (o === s)
1004
+ return t;
1005
+ let r = { scrollLeft: 0, scrollTop: 0 }, l = { x: 1, y: 1 };
1006
+ const a = { x: 0, y: 0 };
1007
+ if ((i || !i && n !== "fixed") && ((Z(o) !== "body" || Ae(s)) && (r = ke(o)), G(o))) {
1008
+ const u = he(o);
1009
+ l = se(o), a.x = u.x + o.clientLeft, a.y = u.y + o.clientTop;
1010
+ }
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: J, getDimensions: function(e) {
1013
+ return G(e) ? vt(e) : e.getBoundingClientRect();
1014
+ }, getOffsetParent: it, getDocumentElement: Q, getScale: se, async getElementRects(e) {
1015
+ let { reference: t, floating: o, strategy: n } = e;
1016
+ const i = this.getOffsetParent || it, s = this.getDimensions;
1017
+ return { reference: So(t, await i(o), n), floating: { x: 0, y: 0, ...await s(o) } };
1018
+ }, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => q(e).direction === "rtl" }, Po = (e, t, o) => {
1019
+ const n = /* @__PURE__ */ new Map(), i = { platform: To, ...o }, s = { ...i.platform, _c: n };
1020
+ return fo(e, t, { ...i, platform: s });
1021
+ }, ne = {
1022
+ // Disable popper components
1023
+ disabled: !1,
1024
+ // Default position offset along main axis (px)
1025
+ distance: 5,
1026
+ // Default position offset along cross axis (px)
1027
+ skidding: 0,
1028
+ // Default container where the tooltip will be appended
1029
+ container: "body",
1030
+ // Element used to compute position and size boundaries
1031
+ boundary: void 0,
1032
+ // Skip delay & CSS transitions when another popper is shown, so that the popper appear to instanly move to the new position.
1033
+ instantMove: !1,
1034
+ // Auto destroy tooltip DOM nodes (ms)
1035
+ disposeTimeout: 5e3,
1036
+ // Triggers on the popper itself
1037
+ popperTriggers: [],
1038
+ // Positioning strategy
1039
+ strategy: "absolute",
1040
+ // Prevent overflow
1041
+ preventOverflow: !0,
1042
+ // Flip to the opposite placement if needed
1043
+ flip: !0,
1044
+ // Shift on the cross axis to prevent the popper from overflowing
1045
+ shift: !0,
1046
+ // Overflow padding (px)
1047
+ overflowPadding: 0,
1048
+ // Arrow padding (px)
1049
+ arrowPadding: 0,
1050
+ // Compute arrow overflow (useful to hide it)
1051
+ arrowOverflow: !0,
1052
+ // Themes
1053
+ themes: {
1054
+ tooltip: {
1055
+ // Default tooltip placement relative to target element
1056
+ placement: "top",
1057
+ // Default events that trigger the tooltip
1058
+ triggers: ["hover", "focus", "touch"],
1059
+ // Close tooltip on click on tooltip target
1060
+ hideTriggers: (e) => [...e, "click"],
1061
+ // Delay (ms)
1062
+ delay: {
1063
+ show: 200,
1064
+ hide: 0
1065
+ },
1066
+ // Update popper on content resize
1067
+ handleResize: !1,
1068
+ // Enable HTML content in directive
1069
+ html: !1,
1070
+ // Displayed when tooltip content is loading
1071
+ loadingContent: "..."
1072
+ },
1073
+ dropdown: {
1074
+ // Default dropdown placement relative to target element
1075
+ placement: "bottom",
1076
+ // Default events that trigger the dropdown
1077
+ triggers: ["click"],
1078
+ // Delay (ms)
1079
+ delay: 0,
1080
+ // Update popper on content resize
1081
+ handleResize: !0,
1082
+ // Hide on clock outside
1083
+ autoHide: !0
1084
+ },
1085
+ menu: {
1086
+ $extend: "dropdown",
1087
+ triggers: ["hover", "focus"],
1088
+ popperTriggers: ["hover", "focus"],
1089
+ delay: {
1090
+ show: 0,
1091
+ hide: 400
1092
+ }
1093
+ }
1094
+ }
1095
+ };
1096
+ function Me(e, t) {
1097
+ let o = ne.themes[e] || {}, n;
1098
+ do
1099
+ n = o[t], typeof n > "u" ? o.$extend ? o = ne.themes[o.$extend] || {} : (o = null, n = ne[t]) : o = null;
1100
+ while (o);
1101
+ return n;
1102
+ }
1103
+ function Co(e) {
1104
+ const t = [e];
1105
+ let o = ne.themes[e] || {};
1106
+ do
1107
+ o.$extend && !o.$resetCss ? (t.push(o.$extend), o = ne.themes[o.$extend] || {}) : o = null;
1108
+ while (o);
1109
+ return t.map((n) => `v-popper--theme-${n}`);
1110
+ }
1111
+ function st(e) {
1112
+ const t = [e];
1113
+ let o = ne.themes[e] || {};
1114
+ do
1115
+ o.$extend ? (t.push(o.$extend), o = ne.themes[o.$extend] || {}) : o = null;
1116
+ while (o);
1117
+ return t;
1118
+ }
1119
+ let re = !1;
1120
+ if (typeof window < "u") {
1121
+ re = !1;
1122
+ try {
1123
+ const e = Object.defineProperty({}, "passive", {
1124
+ get() {
1125
+ re = !0;
1126
+ }
1127
+ });
1128
+ window.addEventListener("test", null, e);
1129
+ } catch {
1130
+ }
1131
+ }
1132
+ let Ct = !1;
1133
+ typeof window < "u" && typeof navigator < "u" && (Ct = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
1134
+ const Bo = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat([
1135
+ t,
1136
+ `${t}-start`,
1137
+ `${t}-end`
1138
+ ]), []), rt = {
1139
+ hover: "mouseenter",
1140
+ focus: "focus",
1141
+ click: "click",
1142
+ touch: "touchstart",
1143
+ pointer: "pointerdown"
1144
+ }, lt = {
1145
+ hover: "mouseleave",
1146
+ focus: "blur",
1147
+ click: "click",
1148
+ touch: "touchend",
1149
+ pointer: "pointerup"
1150
+ };
1151
+ function at(e, t) {
1152
+ const o = e.indexOf(t);
1153
+ o !== -1 && e.splice(o, 1);
1154
+ }
1155
+ function Ne() {
1156
+ return new Promise((e) => requestAnimationFrame(() => {
1157
+ requestAnimationFrame(e);
1158
+ }));
1159
+ }
1160
+ const I = [];
1161
+ let te = null;
1162
+ const ut = {};
1163
+ function dt(e) {
1164
+ let t = ut[e];
1165
+ return t || (t = ut[e] = []), t;
1166
+ }
1167
+ let Ie = function() {
1168
+ };
1169
+ typeof window < "u" && (Ie = window.Element);
1170
+ function x(e) {
1171
+ return function(t) {
1172
+ return Me(t.theme, e);
1173
+ };
1174
+ }
1175
+ const De = "__floating-vue__popper", Bt = () => O({
1176
+ name: "VPopper",
1177
+ provide() {
1178
+ return {
1179
+ [De]: {
1180
+ parentPopper: this
1181
+ }
1182
+ };
1183
+ },
1184
+ inject: {
1185
+ [De]: { default: null }
1186
+ },
240
1187
  props: {
241
- label: null,
242
- icon: null,
243
- isOpen: { type: Boolean }
1188
+ theme: {
1189
+ type: String,
1190
+ required: !0
1191
+ },
1192
+ targetNodes: {
1193
+ type: Function,
1194
+ required: !0
1195
+ },
1196
+ referenceNode: {
1197
+ type: Function,
1198
+ default: null
1199
+ },
1200
+ popperNode: {
1201
+ type: Function,
1202
+ required: !0
1203
+ },
1204
+ shown: {
1205
+ type: Boolean,
1206
+ default: !1
1207
+ },
1208
+ showGroup: {
1209
+ type: String,
1210
+ default: null
1211
+ },
1212
+ // eslint-disable-next-line vue/require-prop-types
1213
+ ariaId: {
1214
+ default: null
1215
+ },
1216
+ disabled: {
1217
+ type: Boolean,
1218
+ default: x("disabled")
1219
+ },
1220
+ positioningDisabled: {
1221
+ type: Boolean,
1222
+ default: x("positioningDisabled")
1223
+ },
1224
+ placement: {
1225
+ type: String,
1226
+ default: x("placement"),
1227
+ validator: (e) => Bo.includes(e)
1228
+ },
1229
+ delay: {
1230
+ type: [String, Number, Object],
1231
+ default: x("delay")
1232
+ },
1233
+ distance: {
1234
+ type: [Number, String],
1235
+ default: x("distance")
1236
+ },
1237
+ skidding: {
1238
+ type: [Number, String],
1239
+ default: x("skidding")
1240
+ },
1241
+ triggers: {
1242
+ type: Array,
1243
+ default: x("triggers")
1244
+ },
1245
+ showTriggers: {
1246
+ type: [Array, Function],
1247
+ default: x("showTriggers")
1248
+ },
1249
+ hideTriggers: {
1250
+ type: [Array, Function],
1251
+ default: x("hideTriggers")
1252
+ },
1253
+ popperTriggers: {
1254
+ type: Array,
1255
+ default: x("popperTriggers")
1256
+ },
1257
+ popperShowTriggers: {
1258
+ type: [Array, Function],
1259
+ default: x("popperShowTriggers")
1260
+ },
1261
+ popperHideTriggers: {
1262
+ type: [Array, Function],
1263
+ default: x("popperHideTriggers")
1264
+ },
1265
+ container: {
1266
+ type: [String, Object, Ie, Boolean],
1267
+ default: x("container")
1268
+ },
1269
+ boundary: {
1270
+ type: [String, Ie],
1271
+ default: x("boundary")
1272
+ },
1273
+ strategy: {
1274
+ type: String,
1275
+ validator: (e) => ["absolute", "fixed"].includes(e),
1276
+ default: x("strategy")
1277
+ },
1278
+ autoHide: {
1279
+ type: [Boolean, Function],
1280
+ default: x("autoHide")
1281
+ },
1282
+ handleResize: {
1283
+ type: Boolean,
1284
+ default: x("handleResize")
1285
+ },
1286
+ instantMove: {
1287
+ type: Boolean,
1288
+ default: x("instantMove")
1289
+ },
1290
+ eagerMount: {
1291
+ type: Boolean,
1292
+ default: x("eagerMount")
1293
+ },
1294
+ popperClass: {
1295
+ type: [String, Array, Object],
1296
+ default: x("popperClass")
1297
+ },
1298
+ computeTransformOrigin: {
1299
+ type: Boolean,
1300
+ default: x("computeTransformOrigin")
1301
+ },
1302
+ /**
1303
+ * @deprecated
1304
+ */
1305
+ autoMinSize: {
1306
+ type: Boolean,
1307
+ default: x("autoMinSize")
1308
+ },
1309
+ autoSize: {
1310
+ type: [Boolean, String],
1311
+ default: x("autoSize")
1312
+ },
1313
+ /**
1314
+ * @deprecated
1315
+ */
1316
+ autoMaxSize: {
1317
+ type: Boolean,
1318
+ default: x("autoMaxSize")
1319
+ },
1320
+ autoBoundaryMaxSize: {
1321
+ type: Boolean,
1322
+ default: x("autoBoundaryMaxSize")
1323
+ },
1324
+ preventOverflow: {
1325
+ type: Boolean,
1326
+ default: x("preventOverflow")
1327
+ },
1328
+ overflowPadding: {
1329
+ type: [Number, String],
1330
+ default: x("overflowPadding")
1331
+ },
1332
+ arrowPadding: {
1333
+ type: [Number, String],
1334
+ default: x("arrowPadding")
1335
+ },
1336
+ arrowOverflow: {
1337
+ type: Boolean,
1338
+ default: x("arrowOverflow")
1339
+ },
1340
+ flip: {
1341
+ type: Boolean,
1342
+ default: x("flip")
1343
+ },
1344
+ shift: {
1345
+ type: Boolean,
1346
+ default: x("shift")
1347
+ },
1348
+ shiftCrossAxis: {
1349
+ type: Boolean,
1350
+ default: x("shiftCrossAxis")
1351
+ },
1352
+ noAutoFocus: {
1353
+ type: Boolean,
1354
+ default: x("noAutoFocus")
1355
+ },
1356
+ disposeTimeout: {
1357
+ type: Number,
1358
+ default: x("disposeTimeout")
1359
+ }
244
1360
  },
245
- emits: ["select-all", "deselect-all"],
246
- setup(e, { emit: l }) {
247
- const o = e;
248
- h(() => o.isOpen, (c) => {
249
- u.value = c, console.log(c);
250
- });
251
- const u = i(!1), n = i(!1), s = () => {
252
- if (n.value = !n.value, n.value) {
253
- l("select-all");
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
+ ],
1373
+ data() {
1374
+ return {
1375
+ isShown: !1,
1376
+ isMounted: !1,
1377
+ skipTransition: !1,
1378
+ classes: {
1379
+ showFrom: !1,
1380
+ showTo: !1,
1381
+ hideFrom: !1,
1382
+ hideTo: !0
1383
+ },
1384
+ result: {
1385
+ x: 0,
1386
+ y: 0,
1387
+ placement: "",
1388
+ strategy: this.strategy,
1389
+ arrow: {
1390
+ x: 0,
1391
+ y: 0,
1392
+ centerOffset: 0
1393
+ },
1394
+ transformOrigin: null
1395
+ },
1396
+ shownChildren: /* @__PURE__ */ new Set(),
1397
+ lastAutoHide: !0
1398
+ };
1399
+ },
1400
+ computed: {
1401
+ popperId() {
1402
+ return this.ariaId != null ? this.ariaId : this.randomId;
1403
+ },
1404
+ shouldMountContent() {
1405
+ return this.eagerMount || this.isMounted;
1406
+ },
1407
+ slotData() {
1408
+ return {
1409
+ popperId: this.popperId,
1410
+ isShown: this.isShown,
1411
+ shouldMountContent: this.shouldMountContent,
1412
+ skipTransition: this.skipTransition,
1413
+ autoHide: typeof this.autoHide == "function" ? this.lastAutoHide : this.autoHide,
1414
+ show: this.show,
1415
+ hide: this.hide,
1416
+ handleResize: this.handleResize,
1417
+ onResize: this.onResize,
1418
+ classes: {
1419
+ ...this.classes,
1420
+ popperClass: this.popperClass
1421
+ },
1422
+ result: this.positioningDisabled ? null : this.result,
1423
+ attrs: this.$attrs
1424
+ };
1425
+ },
1426
+ parentPopper() {
1427
+ var e;
1428
+ return (e = this[De]) == null ? void 0 : e.parentPopper;
1429
+ },
1430
+ hasPopperShowTriggerHover() {
1431
+ var e, t;
1432
+ return ((e = this.popperTriggers) == null ? void 0 : e.includes("hover")) || ((t = this.popperShowTriggers) == null ? void 0 : t.includes("hover"));
1433
+ }
1434
+ },
1435
+ watch: {
1436
+ shown: "$_autoShowHide",
1437
+ disabled(e) {
1438
+ e ? this.dispose() : this.init();
1439
+ },
1440
+ async container() {
1441
+ this.isShown && (this.$_ensureTeleport(), await this.$_computePosition());
1442
+ },
1443
+ ...[
1444
+ "triggers",
1445
+ "positioningDisabled"
1446
+ ].reduce((e, t) => (e[t] = "$_refreshListeners", e), {}),
1447
+ ...[
1448
+ "placement",
1449
+ "distance",
1450
+ "skidding",
1451
+ "boundary",
1452
+ "strategy",
1453
+ "overflowPadding",
1454
+ "arrowPadding",
1455
+ "preventOverflow",
1456
+ "shift",
1457
+ "shiftCrossAxis",
1458
+ "flip"
1459
+ ].reduce((e, t) => (e[t] = "$_computePosition", e), {})
1460
+ },
1461
+ 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.");
1463
+ },
1464
+ mounted() {
1465
+ this.init(), this.$_detachPopperNode();
1466
+ },
1467
+ activated() {
1468
+ this.$_autoShowHide();
1469
+ },
1470
+ deactivated() {
1471
+ this.hide();
1472
+ },
1473
+ beforeUnmount() {
1474
+ this.dispose();
1475
+ },
1476
+ methods: {
1477
+ show({ event: e = null, skipDelay: t = !1, force: o = !1 } = {}) {
1478
+ 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(() => {
1480
+ this.$_showFrameLocked = !1;
1481
+ })), this.$emit("update:shown", !0));
1482
+ },
1483
+ hide({ event: e = null, skipDelay: t = !1 } = {}) {
1484
+ var o;
1485
+ if (!this.$_hideInProgress) {
1486
+ if (this.shownChildren.size > 0) {
1487
+ this.$_pendingHide = !0;
1488
+ return;
1489
+ }
1490
+ if (this.hasPopperShowTriggerHover && this.$_isAimingPopper()) {
1491
+ this.parentPopper && (this.parentPopper.lockedChild = this, clearTimeout(this.parentPopper.lockedChildTimer), this.parentPopper.lockedChildTimer = setTimeout(() => {
1492
+ this.parentPopper.lockedChild === this && (this.parentPopper.lockedChild.hide({ skipDelay: t }), this.parentPopper.lockedChild = null);
1493
+ }, 1e3));
1494
+ return;
1495
+ }
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);
1497
+ }
1498
+ },
1499
+ init() {
1500
+ 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());
1502
+ },
1503
+ 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"));
1505
+ },
1506
+ async onResize() {
1507
+ this.isShown && (await this.$_computePosition(), this.$emit("resize"));
1508
+ },
1509
+ async $_computePosition() {
1510
+ if (this.$_isDisposed || this.positioningDisabled)
1511
+ return;
1512
+ const e = {
1513
+ strategy: this.strategy,
1514
+ middleware: []
1515
+ };
1516
+ (this.distance || this.skidding) && e.middleware.push(xo({
1517
+ mainAxis: this.distance,
1518
+ crossAxis: this.skidding
1519
+ }));
1520
+ const t = this.placement.startsWith("auto");
1521
+ if (t ? e.middleware.push(go({
1522
+ alignment: this.placement.split("-")[1] ?? ""
1523
+ })) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(bo({
1524
+ padding: this.overflowPadding,
1525
+ boundary: this.boundary,
1526
+ crossAxis: this.shiftCrossAxis
1527
+ })), !t && this.flip && e.middleware.push(wo({
1528
+ padding: this.overflowPadding,
1529
+ boundary: this.boundary
1530
+ }))), e.middleware.push(yo({
1531
+ element: this.$_arrowNode,
1532
+ padding: this.arrowPadding
1533
+ })), this.arrowOverflow && e.middleware.push({
1534
+ name: "arrowOverflow",
1535
+ fn: ({ placement: n, rects: i, middlewareData: s }) => {
1536
+ let r;
1537
+ const { centerOffset: l } = s.arrow;
1538
+ return n.startsWith("top") || n.startsWith("bottom") ? r = Math.abs(l) > i.reference.width / 2 : r = Math.abs(l) > i.reference.height / 2, {
1539
+ data: {
1540
+ overflow: r
1541
+ }
1542
+ };
1543
+ }
1544
+ }), this.autoMinSize || this.autoSize) {
1545
+ const n = this.autoSize ? this.autoSize : this.autoMinSize ? "min" : null;
1546
+ e.middleware.push({
1547
+ name: "autoSize",
1548
+ fn: ({ rects: i, placement: s, middlewareData: r }) => {
1549
+ var l;
1550
+ if ((l = r.autoSize) != null && l.skip)
1551
+ return {};
1552
+ let a, u;
1553
+ 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
+ data: {
1555
+ skip: !0
1556
+ },
1557
+ reset: {
1558
+ rects: !0
1559
+ }
1560
+ };
1561
+ }
1562
+ });
1563
+ }
1564
+ (this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(_o({
1565
+ boundary: this.boundary,
1566
+ padding: this.overflowPadding,
1567
+ apply: ({ availableWidth: n, availableHeight: i }) => {
1568
+ this.$_innerNode.style.maxWidth = n != null ? `${n}px` : null, this.$_innerNode.style.maxHeight = i != null ? `${i}px` : null;
1569
+ }
1570
+ })));
1571
+ const o = await Po(this.$_referenceNode, this.$_popperNode, e);
1572
+ Object.assign(this.result, {
1573
+ x: o.x,
1574
+ y: o.y,
1575
+ placement: o.placement,
1576
+ strategy: o.strategy,
1577
+ arrow: {
1578
+ ...o.middlewareData.arrow,
1579
+ ...o.middlewareData.arrowOverflow
1580
+ }
1581
+ });
1582
+ },
1583
+ $_scheduleShow(e = null, t = !1) {
1584
+ if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer), te && this.instantMove && te.instantMove && te !== this.parentPopper) {
1585
+ te.$_applyHide(!0), this.$_applyShow(!0);
1586
+ return;
1587
+ }
1588
+ t ? this.$_applyShow() : this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
1589
+ },
1590
+ $_scheduleHide(e = null, t = !1) {
1591
+ if (this.shownChildren.size > 0) {
1592
+ this.$_pendingHide = !0;
1593
+ return;
1594
+ }
1595
+ this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (te = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
1596
+ },
1597
+ $_computeDelay(e) {
1598
+ const t = this.delay;
1599
+ return parseInt(t && t[e] || t || 0);
1600
+ },
1601
+ async $_applyShow(e = !1) {
1602
+ clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await Ne(), await this.$_computePosition(), await this.$_applyShowEffect(), this.positioningDisabled || this.$_registerEventListeners([
1603
+ ...Pe(this.$_referenceNode),
1604
+ ...Pe(this.$_popperNode)
1605
+ ], "scroll", () => {
1606
+ this.$_computePosition();
1607
+ }));
1608
+ },
1609
+ async $_applyShowEffect() {
1610
+ if (this.$_hideInProgress)
1611
+ return;
1612
+ if (this.computeTransformOrigin) {
1613
+ const t = this.$_referenceNode.getBoundingClientRect(), o = this.$_popperNode.querySelector(".v-popper__wrapper"), n = o.parentNode.getBoundingClientRect(), i = t.x + t.width / 2 - (n.left + o.offsetLeft), s = t.y + t.height / 2 - (n.top + o.offsetTop);
1614
+ this.result.transformOrigin = `${i}px ${s}px`;
1615
+ }
1616
+ this.isShown = !0, this.$_applyAttrsToTarget({
1617
+ "aria-describedby": this.popperId,
1618
+ "data-popper-shown": ""
1619
+ });
1620
+ const e = this.showGroup;
1621
+ if (e) {
1622
+ let t;
1623
+ for (let o = 0; o < I.length; o++)
1624
+ t = I[o], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
1625
+ }
1626
+ I.push(this), document.body.classList.add("v-popper--some-open");
1627
+ for (const t of st(this.theme))
1628
+ dt(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 Ne(), this.classes.showFrom = !1, this.classes.showTo = !0, this.noAutoFocus || this.$_popperNode.focus();
1630
+ },
1631
+ async $_applyHide(e = !1) {
1632
+ if (this.shownChildren.size > 0) {
1633
+ this.$_pendingHide = !0, this.$_hideInProgress = !1;
1634
+ return;
1635
+ }
1636
+ if (clearTimeout(this.$_scheduleTimer), !this.isShown)
1637
+ return;
1638
+ this.skipTransition = e, at(I, this), I.length === 0 && document.body.classList.remove("v-popper--some-open");
1639
+ for (const o of st(this.theme)) {
1640
+ const n = dt(o);
1641
+ at(n, this), n.length === 0 && document.body.classList.remove(`v-popper--some-open--${o}`);
1642
+ }
1643
+ te === this && (te = null), this.isShown = !1, this.$_applyAttrsToTarget({
1644
+ "aria-describedby": void 0,
1645
+ "data-popper-shown": void 0
1646
+ }), clearTimeout(this.$_disposeTimer);
1647
+ const t = this.disposeTimeout;
1648
+ t !== null && (this.$_disposeTimer = setTimeout(() => {
1649
+ 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 Ne(), this.classes.hideFrom = !1, this.classes.hideTo = !0;
1651
+ },
1652
+ $_autoShowHide() {
1653
+ this.shown ? this.show() : this.hide();
1654
+ },
1655
+ $_ensureTeleport() {
1656
+ if (this.$_isDisposed)
254
1657
  return;
1658
+ let e = this.container;
1659
+ if (typeof e == "string" ? e = window.document.querySelector(e) : e === !1 && (e = this.$_targetNodes[0].parentNode), !e)
1660
+ throw new Error("No container for popover: " + this.container);
1661
+ e.appendChild(this.$_popperNode), this.isMounted = !0;
1662
+ },
1663
+ $_addEventListeners() {
1664
+ const e = (o) => {
1665
+ this.isShown && !this.$_hideInProgress || (o.usedByTooltip = !0, !this.$_preventShow && this.show({ event: o }));
1666
+ };
1667
+ this.$_registerTriggerListeners(this.$_targetNodes, rt, this.triggers, this.showTriggers, e), this.$_registerTriggerListeners([this.$_popperNode], rt, this.popperTriggers, this.popperShowTriggers, e);
1668
+ const t = (o) => {
1669
+ o.usedByTooltip || this.hide({ event: o });
1670
+ };
1671
+ this.$_registerTriggerListeners(this.$_targetNodes, lt, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], lt, this.popperTriggers, this.popperHideTriggers, t);
1672
+ },
1673
+ $_registerEventListeners(e, t, o) {
1674
+ this.$_events.push({ targetNodes: e, eventType: t, handler: o }), e.forEach((n) => n.addEventListener(t, o, re ? {
1675
+ passive: !0
1676
+ } : void 0));
1677
+ },
1678
+ $_registerTriggerListeners(e, t, o, n, i) {
1679
+ let s = o;
1680
+ n != null && (s = typeof n == "function" ? n(s) : n), s.forEach((r) => {
1681
+ const l = t[r];
1682
+ l && this.$_registerEventListeners(e, l, i);
1683
+ });
1684
+ },
1685
+ $_removeEventListeners(e) {
1686
+ const t = [];
1687
+ this.$_events.forEach((o) => {
1688
+ const { targetNodes: n, eventType: i, handler: s } = o;
1689
+ !e || e === i ? n.forEach((r) => r.removeEventListener(i, s)) : t.push(o);
1690
+ }), this.$_events = t;
1691
+ },
1692
+ $_refreshListeners() {
1693
+ this.$_isDisposed || (this.$_removeEventListeners(), this.$_addEventListeners());
1694
+ },
1695
+ $_handleGlobalClose(e, t = !1) {
1696
+ this.$_showFrameLocked || (this.hide({ event: e }), e.closePopover ? this.$emit("close-directive") : this.$emit("auto-hide"), t && (this.$_preventShow = !0, setTimeout(() => {
1697
+ this.$_preventShow = !1;
1698
+ }, 300)));
1699
+ },
1700
+ $_detachPopperNode() {
1701
+ this.$_popperNode.parentNode && this.$_popperNode.parentNode.removeChild(this.$_popperNode);
1702
+ },
1703
+ $_swapTargetAttrs(e, t) {
1704
+ for (const o of this.$_targetNodes) {
1705
+ const n = o.getAttribute(e);
1706
+ n && (o.removeAttribute(e), o.setAttribute(t, n));
1707
+ }
1708
+ },
1709
+ $_applyAttrsToTarget(e) {
1710
+ for (const t of this.$_targetNodes)
1711
+ for (const o in e) {
1712
+ const n = e[o];
1713
+ n == null ? t.removeAttribute(o) : t.setAttribute(o, n);
1714
+ }
1715
+ },
1716
+ $_updateParentShownChildren(e) {
1717
+ let t = this.parentPopper;
1718
+ for (; t; )
1719
+ e ? t.shownChildren.add(this.randomId) : (t.shownChildren.delete(this.randomId), t.$_pendingHide && t.hide()), t = t.parentPopper;
1720
+ },
1721
+ $_isAimingPopper() {
1722
+ const e = this.$_referenceNode.getBoundingClientRect();
1723
+ if (de >= e.left && de <= e.right && ce >= e.top && ce <= e.bottom) {
1724
+ const t = this.$_popperNode.getBoundingClientRect(), o = de - X, n = ce - K, i = t.left + t.width / 2 - X + (t.top + t.height / 2) - K + t.width + t.height, s = X + o * i, r = K + n * i;
1725
+ return ve(X, K, s, r, t.left, t.top, t.left, t.bottom) || // Left edge
1726
+ ve(X, K, s, r, t.left, t.top, t.right, t.top) || // Top edge
1727
+ ve(X, K, s, r, t.right, t.top, t.right, t.bottom) || // Right edge
1728
+ ve(X, K, s, r, t.left, t.bottom, t.right, t.bottom);
1729
+ }
1730
+ return !1;
1731
+ }
1732
+ },
1733
+ render() {
1734
+ return this.$slots.default(this.slotData);
1735
+ }
1736
+ });
1737
+ typeof document < "u" && typeof window < "u" && (Ct ? (document.addEventListener("touchstart", ct, re ? {
1738
+ passive: !0,
1739
+ capture: !0
1740
+ } : !0), document.addEventListener("touchend", ko, re ? {
1741
+ passive: !0,
1742
+ capture: !0
1743
+ } : !0)) : (window.addEventListener("mousedown", ct, !0), window.addEventListener("click", Ao, !0)), window.addEventListener("resize", No));
1744
+ function ct(e) {
1745
+ for (let t = 0; t < I.length; t++) {
1746
+ const o = I[t];
1747
+ try {
1748
+ const n = o.popperNode();
1749
+ o.$_mouseDownContains = n.contains(e.target);
1750
+ } catch {
1751
+ }
1752
+ }
1753
+ }
1754
+ function Ao(e) {
1755
+ At(e);
1756
+ }
1757
+ function ko(e) {
1758
+ At(e, !0);
1759
+ }
1760
+ function At(e, t = !1) {
1761
+ const o = {};
1762
+ for (let n = I.length - 1; n >= 0; n--) {
1763
+ const i = I[n];
1764
+ try {
1765
+ const s = i.$_containsGlobalTarget = Oo(i, e);
1766
+ i.$_pendingHide = !1, requestAnimationFrame(() => {
1767
+ if (i.$_pendingHide = !1, !o[i.randomId] && pt(i, s, e)) {
1768
+ if (i.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && s) {
1769
+ let l = i.parentPopper;
1770
+ for (; l; )
1771
+ o[l.randomId] = !0, l = l.parentPopper;
1772
+ return;
1773
+ }
1774
+ let r = i.parentPopper;
1775
+ for (; r && pt(r, r.$_containsGlobalTarget, e); )
1776
+ r.$_handleGlobalClose(e, t), r = r.parentPopper;
1777
+ }
1778
+ });
1779
+ } catch {
1780
+ }
1781
+ }
1782
+ }
1783
+ function Oo(e, t) {
1784
+ const o = e.popperNode();
1785
+ return e.$_mouseDownContains || o.contains(t.target);
1786
+ }
1787
+ function pt(e, t, o) {
1788
+ return o.closeAllPopover || o.closePopover && t || zo(e, o) && !t;
1789
+ }
1790
+ function zo(e, t) {
1791
+ if (typeof e.autoHide == "function") {
1792
+ const o = e.autoHide(t);
1793
+ return e.lastAutoHide = o, o;
1794
+ }
1795
+ return e.autoHide;
1796
+ }
1797
+ function No(e) {
1798
+ for (let t = 0; t < I.length; t++)
1799
+ I[t].$_computePosition(e);
1800
+ }
1801
+ let X = 0, K = 0, de = 0, ce = 0;
1802
+ typeof window < "u" && window.addEventListener("mousemove", (e) => {
1803
+ X = de, K = ce, de = e.clientX, ce = e.clientY;
1804
+ }, re ? {
1805
+ passive: !0
1806
+ } : void 0);
1807
+ function ve(e, t, o, n, i, s, r, l) {
1808
+ 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));
1809
+ return a >= 0 && a <= 1 && u >= 0 && u <= 1;
1810
+ }
1811
+ const Do = {
1812
+ extends: Bt()
1813
+ }, Ue = (e, t) => {
1814
+ const o = e.__vccOpts || e;
1815
+ for (const [n, i] of t)
1816
+ o[n] = i;
1817
+ return o;
1818
+ };
1819
+ function Lo(e, t, o, n, i, s) {
1820
+ return P(), k("div", {
1821
+ ref: "reference",
1822
+ class: C(["v-popper", {
1823
+ "v-popper--shown": e.slotData.isShown
1824
+ }])
1825
+ }, [
1826
+ S(e.$slots, "default", Et(Ht(e.slotData)))
1827
+ ], 2);
1828
+ }
1829
+ const Ro = /* @__PURE__ */ Ue(Do, [["render", Lo]]);
1830
+ function Eo() {
1831
+ var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
1832
+ if (t > 0)
1833
+ return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
1834
+ var o = e.indexOf("Trident/");
1835
+ if (o > 0) {
1836
+ var n = e.indexOf("rv:");
1837
+ return parseInt(e.substring(n + 3, e.indexOf(".", n)), 10);
1838
+ }
1839
+ var i = e.indexOf("Edge/");
1840
+ return i > 0 ? parseInt(e.substring(i + 5, e.indexOf(".", i)), 10) : -1;
1841
+ }
1842
+ let xe;
1843
+ function Fe() {
1844
+ Fe.init || (Fe.init = !0, xe = Eo() !== -1);
1845
+ }
1846
+ var Oe = {
1847
+ name: "ResizeObserver",
1848
+ props: {
1849
+ emitOnMount: {
1850
+ type: Boolean,
1851
+ default: !1
1852
+ },
1853
+ ignoreWidth: {
1854
+ type: Boolean,
1855
+ default: !1
1856
+ },
1857
+ ignoreHeight: {
1858
+ type: Boolean,
1859
+ default: !1
1860
+ }
1861
+ },
1862
+ emits: [
1863
+ "notify"
1864
+ ],
1865
+ mounted() {
1866
+ Fe(), Rt(() => {
1867
+ this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
1868
+ });
1869
+ 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", xe && this.$el.appendChild(e), e.data = "about:blank", xe || this.$el.appendChild(e);
1871
+ },
1872
+ beforeUnmount() {
1873
+ this.removeResizeHandlers();
1874
+ },
1875
+ methods: {
1876
+ compareAndNotify() {
1877
+ (!this.ignoreWidth && this._w !== this.$el.offsetWidth || !this.ignoreHeight && this._h !== this.$el.offsetHeight) && (this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitSize());
1878
+ },
1879
+ emitSize() {
1880
+ this.$emit("notify", {
1881
+ width: this._w,
1882
+ height: this._h
1883
+ });
1884
+ },
1885
+ addResizeHandlers() {
1886
+ this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
1887
+ },
1888
+ removeResizeHandlers() {
1889
+ this._resizeObject && this._resizeObject.onload && (!xe && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
1890
+ }
1891
+ }
1892
+ };
1893
+ const Ho = /* @__PURE__ */ Mt("data-v-b329ee4c");
1894
+ Dt("data-v-b329ee4c");
1895
+ const Mo = {
1896
+ class: "resize-observer",
1897
+ tabindex: "-1"
1898
+ };
1899
+ Lt();
1900
+ const Io = /* @__PURE__ */ Ho((e, t, o, n, i, s) => (P(), Ce("div", Mo)));
1901
+ Oe.render = Io;
1902
+ Oe.__scopeId = "data-v-b329ee4c";
1903
+ Oe.__file = "src/components/ResizeObserver.vue";
1904
+ const kt = (e = "theme") => ({
1905
+ computed: {
1906
+ themeClass() {
1907
+ return Co(this[e]);
1908
+ }
1909
+ }
1910
+ }), Fo = O({
1911
+ name: "VPopperContent",
1912
+ components: {
1913
+ ResizeObserver: Oe
1914
+ },
1915
+ mixins: [
1916
+ kt()
1917
+ ],
1918
+ props: {
1919
+ popperId: String,
1920
+ theme: String,
1921
+ shown: Boolean,
1922
+ mounted: Boolean,
1923
+ skipTransition: Boolean,
1924
+ autoHide: Boolean,
1925
+ handleResize: Boolean,
1926
+ classes: Object,
1927
+ result: Object
1928
+ },
1929
+ emits: [
1930
+ "hide",
1931
+ "resize"
1932
+ ],
1933
+ methods: {
1934
+ toPx(e) {
1935
+ return e != null && !isNaN(e) ? `${e}px` : null;
1936
+ }
1937
+ }
1938
+ }), Vo = ["id", "aria-hidden", "tabindex", "data-popper-placement"], Wo = {
1939
+ ref: "inner",
1940
+ class: "v-popper__inner"
1941
+ }, jo = /* @__PURE__ */ y("div", { class: "v-popper__arrow-outer" }, null, -1), qo = /* @__PURE__ */ y("div", { class: "v-popper__arrow-inner" }, null, -1), Go = [
1942
+ jo,
1943
+ qo
1944
+ ];
1945
+ function Uo(e, t, o, n, i, s) {
1946
+ const r = Le("ResizeObserver");
1947
+ return P(), k("div", {
1948
+ id: e.popperId,
1949
+ ref: "popover",
1950
+ class: C(["v-popper__popper", [
1951
+ e.themeClass,
1952
+ e.classes.popperClass,
1953
+ {
1954
+ "v-popper__popper--shown": e.shown,
1955
+ "v-popper__popper--hidden": !e.shown,
1956
+ "v-popper__popper--show-from": e.classes.showFrom,
1957
+ "v-popper__popper--show-to": e.classes.showTo,
1958
+ "v-popper__popper--hide-from": e.classes.hideFrom,
1959
+ "v-popper__popper--hide-to": e.classes.hideTo,
1960
+ "v-popper__popper--skip-transition": e.skipTransition,
1961
+ "v-popper__popper--arrow-overflow": e.result && e.result.arrow.overflow,
1962
+ "v-popper__popper--no-positioning": !e.result
1963
+ }
1964
+ ]]),
1965
+ style: ze(e.result ? {
1966
+ position: e.result.strategy,
1967
+ transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
1968
+ } : void 0),
1969
+ "aria-hidden": e.shown ? "false" : "true",
1970
+ tabindex: e.autoHide ? 0 : void 0,
1971
+ "data-popper-placement": e.result ? e.result.placement : void 0,
1972
+ onKeyup: t[2] || (t[2] = We((l) => e.autoHide && e.$emit("hide"), ["esc"]))
1973
+ }, [
1974
+ y("div", {
1975
+ class: "v-popper__backdrop",
1976
+ onClick: t[0] || (t[0] = (l) => e.autoHide && e.$emit("hide"))
1977
+ }),
1978
+ y("div", {
1979
+ class: "v-popper__wrapper",
1980
+ style: ze(e.result ? {
1981
+ transformOrigin: e.result.transformOrigin
1982
+ } : void 0)
1983
+ }, [
1984
+ y("div", Wo, [
1985
+ e.mounted ? (P(), k(It, { key: 0 }, [
1986
+ y("div", null, [
1987
+ S(e.$slots, "default")
1988
+ ]),
1989
+ e.handleResize ? (P(), Ce(r, {
1990
+ key: 0,
1991
+ onNotify: t[1] || (t[1] = (l) => e.$emit("resize", l))
1992
+ })) : _e("", !0)
1993
+ ], 64)) : _e("", !0)
1994
+ ], 512),
1995
+ y("div", {
1996
+ ref: "arrow",
1997
+ class: "v-popper__arrow-container",
1998
+ style: ze(e.result ? {
1999
+ left: e.toPx(e.result.arrow.x),
2000
+ top: e.toPx(e.result.arrow.y)
2001
+ } : void 0)
2002
+ }, Go, 4)
2003
+ ], 4)
2004
+ ], 46, Vo);
2005
+ }
2006
+ const Ot = /* @__PURE__ */ Ue(Fo, [["render", Uo]]), zt = {
2007
+ methods: {
2008
+ show(...e) {
2009
+ return this.$refs.popper.show(...e);
2010
+ },
2011
+ hide(...e) {
2012
+ return this.$refs.popper.hide(...e);
2013
+ },
2014
+ dispose(...e) {
2015
+ return this.$refs.popper.dispose(...e);
2016
+ },
2017
+ onResize(...e) {
2018
+ return this.$refs.popper.onResize(...e);
2019
+ }
2020
+ }
2021
+ }, Yo = O({
2022
+ name: "VPopperWrapper",
2023
+ components: {
2024
+ Popper: Ro,
2025
+ PopperContent: Ot
2026
+ },
2027
+ mixins: [
2028
+ zt,
2029
+ kt("finalTheme")
2030
+ ],
2031
+ props: {
2032
+ theme: {
2033
+ type: String,
2034
+ default: null
2035
+ }
2036
+ },
2037
+ computed: {
2038
+ finalTheme() {
2039
+ return this.theme ?? this.$options.vPopperTheme;
2040
+ }
2041
+ },
2042
+ methods: {
2043
+ getTargetNodes() {
2044
+ return Array.from(this.$el.children).filter((e) => e !== this.$refs.popperContent.$el);
2045
+ }
2046
+ }
2047
+ });
2048
+ function Xo(e, t, o, n, i, s) {
2049
+ const r = Le("PopperContent"), l = Le("Popper");
2050
+ return P(), Ce(l, {
2051
+ ref: "popper",
2052
+ theme: e.finalTheme,
2053
+ "target-nodes": e.getTargetNodes,
2054
+ "popper-node": () => e.$refs.popperContent.$el,
2055
+ class: C([
2056
+ e.themeClass
2057
+ ])
2058
+ }, {
2059
+ default: le(({
2060
+ popperId: a,
2061
+ isShown: u,
2062
+ shouldMountContent: c,
2063
+ skipTransition: p,
2064
+ autoHide: h,
2065
+ show: d,
2066
+ hide: f,
2067
+ handleResize: m,
2068
+ onResize: v,
2069
+ classes: g,
2070
+ result: w
2071
+ }) => [
2072
+ S(e.$slots, "default", {
2073
+ shown: u,
2074
+ show: d,
2075
+ hide: f
2076
+ }),
2077
+ Re(r, {
2078
+ ref: "popperContent",
2079
+ "popper-id": a,
2080
+ theme: e.finalTheme,
2081
+ shown: u,
2082
+ mounted: c,
2083
+ "skip-transition": p,
2084
+ "auto-hide": h,
2085
+ "handle-resize": m,
2086
+ classes: g,
2087
+ result: w,
2088
+ onHide: f,
2089
+ onResize: v
2090
+ }, {
2091
+ default: le(() => [
2092
+ S(e.$slots, "popper", {
2093
+ shown: u,
2094
+ hide: f
2095
+ })
2096
+ ]),
2097
+ _: 2
2098
+ }, 1032, ["popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
2099
+ ]),
2100
+ _: 3
2101
+ }, 8, ["theme", "target-nodes", "popper-node", "class"]);
2102
+ }
2103
+ const Ye = /* @__PURE__ */ Ue(Yo, [["render", Xo]]), Ko = {
2104
+ ...Ye,
2105
+ name: "VDropdown",
2106
+ vPopperTheme: "dropdown"
2107
+ };
2108
+ ({
2109
+ ...Ye
2110
+ });
2111
+ ({
2112
+ ...Ye
2113
+ });
2114
+ O({
2115
+ name: "VTooltipDirective",
2116
+ components: {
2117
+ Popper: Bt(),
2118
+ PopperContent: Ot
2119
+ },
2120
+ mixins: [
2121
+ zt
2122
+ ],
2123
+ inheritAttrs: !1,
2124
+ props: {
2125
+ theme: {
2126
+ type: String,
2127
+ default: "tooltip"
2128
+ },
2129
+ html: {
2130
+ type: Boolean,
2131
+ default: (e) => Me(e.theme, "html")
2132
+ },
2133
+ content: {
2134
+ type: [String, Number, Function],
2135
+ default: null
2136
+ },
2137
+ loadingContent: {
2138
+ type: String,
2139
+ default: (e) => Me(e.theme, "loadingContent")
2140
+ },
2141
+ targetNodes: {
2142
+ type: Function,
2143
+ required: !0
2144
+ }
2145
+ },
2146
+ data() {
2147
+ return {
2148
+ asyncContent: null
2149
+ };
2150
+ },
2151
+ computed: {
2152
+ isContentAsync() {
2153
+ return typeof this.content == "function";
2154
+ },
2155
+ loading() {
2156
+ return this.isContentAsync && this.asyncContent == null;
2157
+ },
2158
+ finalContent() {
2159
+ return this.isContentAsync ? this.loading ? this.loadingContent : this.asyncContent : this.content;
2160
+ }
2161
+ },
2162
+ watch: {
2163
+ content: {
2164
+ handler() {
2165
+ this.fetchContent(!0);
2166
+ },
2167
+ immediate: !0
2168
+ },
2169
+ async finalContent() {
2170
+ await this.$nextTick(), this.$refs.popper.onResize();
2171
+ }
2172
+ },
2173
+ created() {
2174
+ this.$_fetchId = 0;
2175
+ },
2176
+ methods: {
2177
+ fetchContent(e) {
2178
+ if (typeof this.content == "function" && this.$_isShown && (e || !this.$_loading && this.asyncContent == null)) {
2179
+ this.asyncContent = null, this.$_loading = !0;
2180
+ const t = ++this.$_fetchId, o = this.content(this);
2181
+ o.then ? o.then((n) => this.onResult(t, n)) : this.onResult(t, o);
255
2182
  }
256
- l("deselect-all");
2183
+ },
2184
+ onResult(e, t) {
2185
+ e === this.$_fetchId && (this.$_loading = !1, this.asyncContent = t);
2186
+ },
2187
+ onShow() {
2188
+ this.$_isShown = !0, this.fetchContent();
2189
+ },
2190
+ onHide() {
2191
+ this.$_isShown = !1;
2192
+ }
2193
+ }
2194
+ });
2195
+ const Jo = Ko, Qo = { class: "yu-text-gray-700 yu-font-plus yu-font-medium yu-text-base yu-mr-2" }, Zo = { 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" }, tn = /* @__PURE__ */ y("div", { class: "yu-text-gray-700 yu-text-xs yu-mr-2" }, "Selecionar todos", -1), on = ["checked"], nn = { class: "yu-w-full yu-p-2 yu-overflow-y-auto yu-max-h-60" }, sn = /* @__PURE__ */ O({
2196
+ __name: "app-dropdown",
2197
+ props: {
2198
+ label: {
2199
+ type: String,
2200
+ default: "Dropdown"
2201
+ },
2202
+ icon: {
2203
+ type: String,
2204
+ default: "menu"
2205
+ },
2206
+ openIcon: {
2207
+ type: String,
2208
+ default: "keyboard_arrow_down"
2209
+ },
2210
+ inputLabel: {
2211
+ type: String,
2212
+ default: "Procurar"
2213
+ },
2214
+ allSelected: {
2215
+ type: Boolean,
2216
+ default: !1
2217
+ },
2218
+ showSearchInput: {
2219
+ type: Boolean,
2220
+ default: !1
2221
+ },
2222
+ showSelectAll: {
2223
+ type: Boolean,
2224
+ default: !1
2225
+ }
2226
+ },
2227
+ emits: ["filter-value", "update:allSelected", "update:opened"],
2228
+ setup(e, { expose: t, emit: o }) {
2229
+ const n = M(!1), i = (s) => {
2230
+ n.value = s, o("update:opened", s);
257
2231
  };
258
- return (c, d) => (f(), m("div", W, [
259
- t("button", {
260
- class: r(["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": u.value }]),
261
- onClick: d[0] || (d[0] = (y) => u.value = !u.value)
262
- }, [
263
- t("i", {
264
- class: r(["material-icons yu-text-gray-700 yu-h-fit", { "yu-text-primary-500": u.value }])
265
- }, p(e.icon), 3),
266
- t("div", X, p(e.label), 1),
267
- t("i", {
268
- class: r(["material-icons yu-text-gray-700 yu-h-fit yu-ml-auto", { "yu-text-primary-500 yu-rotate-180": u.value }])
269
- }, " keyboard_arrow_down", 2)
270
- ], 2),
271
- x(t("div", Y, [
272
- t("div", Z, [
273
- $(B, { label: "Dropdown" }),
274
- $(S, {
275
- onClick: d[2] || (d[2] = (y) => s())
276
- }, {
277
- default: I(() => [
278
- ee,
279
- x(t("input", {
280
- class: "yu-ml-auto yu-accent-primary-500 yu-border-2 yu-cursor-pointer",
281
- type: "checkbox",
282
- "onUpdate:modelValue": d[1] || (d[1] = (y) => n.value = y)
283
- }, null, 512), [
284
- [D, n.value]
285
- ])
286
- ]),
287
- _: 1
288
- }),
289
- v(c.$slots, "default")
2232
+ return t({ opened: n }), (s, r) => (P(), Ce(D(Jo), {
2233
+ placement: "bottom-start",
2234
+ skidding: 6,
2235
+ "onUpdate:shown": i
2236
+ }, {
2237
+ popper: le(() => [
2238
+ e.showSearchInput ? S(s.$slots, "searchInput", { key: 0 }, () => [
2239
+ y("div", Zo, [
2240
+ Re(ft, {
2241
+ label: e.inputLabel || "Procurar",
2242
+ "onUpdate:modelValue": r[0] || (r[0] = (l) => o("filter-value", l))
2243
+ }, null, 8, ["label"])
2244
+ ])
2245
+ ]) : _e("", !0),
2246
+ e.showSelectAll ? S(s.$slots, "selectAll", { key: 1 }, () => [
2247
+ y("div", en, [
2248
+ Re(yt, {
2249
+ onClick: r[1] || (r[1] = (l) => o("update:allSelected"))
2250
+ }, {
2251
+ default: le(() => [
2252
+ tn,
2253
+ y("input", {
2254
+ class: "yu-ml-auto yu-accent-primary-500 yu-border-2 yu-cursor-pointer",
2255
+ type: "checkbox",
2256
+ checked: e.allSelected
2257
+ }, null, 8, on)
2258
+ ]),
2259
+ _: 1
2260
+ })
2261
+ ])
2262
+ ]) : _e("", !0),
2263
+ y("div", nn, [
2264
+ S(s.$slots, "default")
290
2265
  ])
291
- ], 512), [
292
- [w, u.value]
293
- ])
294
- ]));
2266
+ ]),
2267
+ default: le(() => [
2268
+ y("button", {
2269
+ 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": n.value }])
2270
+ }, [
2271
+ S(s.$slots, "icon", {}, () => [
2272
+ y("i", {
2273
+ class: C(["material-icons yu-text-gray-700 yu-h-fit", { "yu-text-primary-500": n.value }])
2274
+ }, F(e.icon), 3)
2275
+ ]),
2276
+ S(s.$slots, "label", {}, () => [
2277
+ y("div", Qo, F(e.label), 1)
2278
+ ]),
2279
+ S(s.$slots, "open-icon", {}, () => [
2280
+ y("i", {
2281
+ class: C(["material-icons yu-text-gray-700 yu-h-fit yu-ml-auto yu-transition-all", { "yu-text-primary-500 yu-rotate-180": n.value }])
2282
+ }, F(e.openIcon), 3)
2283
+ ])
2284
+ ], 2)
2285
+ ]),
2286
+ _: 3
2287
+ }));
295
2288
  }
296
- }), ue = { 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" }, le = { class: "yu-flex yu-gap-5 yu-px-2" }, oe = { class: "yu-flex yu-flex-col" }, ne = { class: "yu-font-plus yu-flex yu-text-xl yu-text-gray-800 yu-font-bold yu-items-center" }, ae = { class: "yu-font-plus yu-text-xs yu-text-gray-400" }, ye = { class: "yu-font-plus yu-text-gray-400 yu-font-medium yu-text-sm" }, se = /* @__PURE__ */ b({
2289
+ }), rn = { 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" }, ln = { class: "yu-flex yu-gap-5 yu-px-2" }, an = { class: "yu-flex yu-flex-col" }, un = { class: "yu-font-plus yu-flex yu-text-xl yu-text-gray-800 yu-font-bold yu-items-center" }, dn = { class: "yu-font-plus yu-text-xs yu-text-gray-400" }, cn = { class: "yu-font-plus yu-text-gray-400 yu-font-medium yu-text-sm" }, pn = /* @__PURE__ */ O({
297
2290
  __name: "stat-card",
298
2291
  props: {
299
2292
  icon: {
@@ -318,51 +2311,196 @@ const S = /* @__PURE__ */ k(A, [["render", q]]), G = { class: "yu-relative yu-w-
318
2311
  }
319
2312
  },
320
2313
  setup(e) {
321
- return (l, o) => (f(), m("div", ue, [
322
- t("div", le, [
323
- t("i", {
324
- class: r(["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 }])
325
- }, p(e.icon), 3),
326
- t("div", oe, [
327
- t("div", ne, [
328
- T(p(e.comparison), 1),
329
- t("span", ae, "/" + p(e.total), 1)
2314
+ return (t, o) => (P(), k("div", rn, [
2315
+ y("div", ln, [
2316
+ y("i", {
2317
+ 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 }])
2318
+ }, F(e.icon), 3),
2319
+ y("div", an, [
2320
+ y("div", un, [
2321
+ Ft(F(e.comparison), 1),
2322
+ y("span", dn, "/" + F(e.total), 1)
330
2323
  ]),
331
- t("p", ye, [
332
- v(l.$slots, "default")
2324
+ y("p", cn, [
2325
+ S(t.$slots, "default")
333
2326
  ])
334
2327
  ])
335
2328
  ])
336
2329
  ]));
337
2330
  }
338
- }), re = { 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" }, ie = { class: "yu-font-plus yu-text-gray-800 yu-font-semibold yu-text-lg" }, ce = { class: "yu-mt-2 yu-flex yu-flex-col" };
339
- function de(e, l) {
340
- return f(), m("div", re, [
341
- t("div", ie, [
342
- v(e.$slots, "heading")
2331
+ }), hn = { 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" }, fn = { class: "yu-font-plus yu-text-gray-800 yu-font-semibold yu-text-lg" }, yn = { class: "yu-mt-2 yu-flex yu-flex-col" };
2332
+ function mn(e, t) {
2333
+ return P(), k("div", hn, [
2334
+ y("div", fn, [
2335
+ S(e.$slots, "heading")
343
2336
  ]),
344
- t("div", ce, [
345
- v(e.$slots, "list")
2337
+ y("div", yn, [
2338
+ S(e.$slots, "list")
346
2339
  ])
347
2340
  ]);
348
2341
  }
349
- var pe = {};
350
- const fe = /* @__PURE__ */ k(pe, [["render", de]]);
351
- const ge = {
2342
+ var gn = {};
2343
+ const wn = /* @__PURE__ */ ye(gn, [["render", mn]]);
2344
+ function Xe(e, t) {
2345
+ const o = ge(() => ({
2346
+ "!yu-font-plus": t.plus,
2347
+ "!yu-font-inter": t.inter,
2348
+ "!yu-font-titillium": t.titillium
2349
+ })), n = ge(() => ({
2350
+ "!yu-text-primary": t.primary,
2351
+ "!yu-text-secondary": t.secondary,
2352
+ "!yu-text-base": t.neutral,
2353
+ "!yu-text-neutral": t.gray
2354
+ })), i = ge(() => ({
2355
+ "!yu-font-thin": t.thin,
2356
+ "!yu-font-extralight": t.extralight,
2357
+ "!yu-font-light": t.light,
2358
+ "!yu-font-normal": t.normal,
2359
+ "!yu-font-medium": t.medium,
2360
+ "!yu-font-semibold": t.semibold,
2361
+ "!yu-font-bold": t.bold,
2362
+ "!yu-font-extrabold": t.extrabold,
2363
+ "!yu-font-black": t.black
2364
+ })), s = ge(() => ({
2365
+ ...{
2366
+ title: {
2367
+ "!yu-text-xl": t.small,
2368
+ "!yu-text-2xl": t.base,
2369
+ "!yu-text-3xl": t.large,
2370
+ "!yu-text-4xl": t.extralarge
2371
+ },
2372
+ subtitle: {
2373
+ "!yu-text-sm": t.small,
2374
+ "!yu-text-md": t.base,
2375
+ "!yu-text-xl": t.large
2376
+ },
2377
+ text: {
2378
+ "!yu-text-xs": t.small,
2379
+ "!yu-text-sm": t.base,
2380
+ "!yu-text-lg": t.large,
2381
+ "!yu-text-xl": t.extralarge
2382
+ }
2383
+ }[e]
2384
+ }));
2385
+ return { fontClass: o, colorClass: n, weightClass: i, sizeClass: s };
2386
+ }
2387
+ const vn = /* @__PURE__ */ O({
2388
+ __name: "title",
2389
+ props: {
2390
+ inter: { type: Boolean },
2391
+ plus: { type: Boolean },
2392
+ titillium: { type: Boolean },
2393
+ small: { type: Boolean },
2394
+ base: { type: Boolean },
2395
+ large: { type: Boolean },
2396
+ extralarge: { type: Boolean },
2397
+ thin: { type: Boolean },
2398
+ extralight: { type: Boolean },
2399
+ light: { type: Boolean },
2400
+ normal: { type: Boolean },
2401
+ medium: { type: Boolean },
2402
+ semibold: { type: Boolean },
2403
+ bold: { type: Boolean },
2404
+ extrabold: { type: Boolean },
2405
+ black: { type: Boolean },
2406
+ primary: { type: Boolean },
2407
+ secondary: { type: Boolean },
2408
+ gray: { type: Boolean },
2409
+ neutral: { type: Boolean }
2410
+ },
2411
+ setup(e) {
2412
+ const t = e, { fontClass: o, colorClass: n, weightClass: i, sizeClass: s } = Xe("title", t);
2413
+ return (r, l) => (P(), k("h1", {
2414
+ class: C(["yu-font-inter yu-text-2xl yu-font-normal yu-text-black", [D(o), D(n), D(i), D(s)]])
2415
+ }, [
2416
+ S(r.$slots, "default", {}, void 0, !0)
2417
+ ], 2));
2418
+ }
2419
+ });
2420
+ const xn = /* @__PURE__ */ ye(vn, [["__scopeId", "data-v-e5bd72b2"]]), bn = /* @__PURE__ */ O({
2421
+ __name: "subtitle",
2422
+ props: {
2423
+ inter: { type: Boolean },
2424
+ plus: { type: Boolean },
2425
+ titillium: { type: Boolean },
2426
+ small: { type: Boolean },
2427
+ base: { type: Boolean },
2428
+ large: { type: Boolean },
2429
+ thin: { type: Boolean },
2430
+ extralight: { type: Boolean },
2431
+ light: { type: Boolean },
2432
+ normal: { type: Boolean },
2433
+ medium: { type: Boolean },
2434
+ semibold: { type: Boolean },
2435
+ bold: { type: Boolean },
2436
+ extrabold: { type: Boolean },
2437
+ black: { type: Boolean },
2438
+ primary: { type: Boolean },
2439
+ secondary: { type: Boolean },
2440
+ gray: { type: Boolean },
2441
+ neutral: { type: Boolean }
2442
+ },
2443
+ setup(e) {
2444
+ const t = e, { fontClass: o, colorClass: n, weightClass: i, sizeClass: s } = Xe("subtitle", t);
2445
+ return (r, l) => (P(), k("h3", {
2446
+ class: C(["yu-font-inter yu-text-md yu-font-normal yu-text-black", [D(o), D(n), D(i), D(s)]])
2447
+ }, [
2448
+ S(r.$slots, "default", {}, void 0, !0)
2449
+ ], 2));
2450
+ }
2451
+ });
2452
+ const _n = /* @__PURE__ */ ye(bn, [["__scopeId", "data-v-cd3f9071"]]), $n = /* @__PURE__ */ O({
2453
+ __name: "text",
2454
+ props: {
2455
+ inter: { type: Boolean },
2456
+ plus: { type: Boolean },
2457
+ titillium: { type: Boolean },
2458
+ small: { type: Boolean },
2459
+ base: { type: Boolean },
2460
+ large: { type: Boolean },
2461
+ extralarge: { type: Boolean },
2462
+ thin: { type: Boolean },
2463
+ extralight: { type: Boolean },
2464
+ light: { type: Boolean },
2465
+ normal: { type: Boolean },
2466
+ medium: { type: Boolean },
2467
+ semibold: { type: Boolean },
2468
+ bold: { type: Boolean },
2469
+ extrabold: { type: Boolean },
2470
+ black: { type: Boolean },
2471
+ primary: { type: Boolean },
2472
+ secondary: { type: Boolean },
2473
+ gray: { type: Boolean },
2474
+ neutral: { type: Boolean }
2475
+ },
2476
+ setup(e) {
2477
+ const t = e, { fontClass: o, colorClass: n, weightClass: i, sizeClass: s } = Xe("text", t);
2478
+ return (r, l) => (P(), k("p", {
2479
+ class: C(["yu-font-inter yu-text-sm yu-font-normal yu-text-black", [D(o), D(n), D(i), D(s)]])
2480
+ }, [
2481
+ S(r.$slots, "default", {}, void 0, !0)
2482
+ ], 2));
2483
+ }
2484
+ });
2485
+ const Sn = /* @__PURE__ */ ye($n, [["__scopeId", "data-v-747f1999"]]);
2486
+ const Pn = {
352
2487
  install: (e) => {
353
- e.component("TextInput", B), e.component("IconTextInput", E), e.component("SwitchCheckbox", U), e.component("ButtonPrimary", F), e.component("ButtonSecondary", L), e.component("SimpleDropdown", R), e.component("SelectDropdown", te), e.component("SimpleDropdownItem", S), e.component("StatCard", se), e.component("ListCard", fe);
2488
+ e.component("TextInput", ft), e.component("IconTextInput", Gt), e.component("SwitchCheckbox", Xt), e.component("ButtonPrimary", Kt), e.component("ButtonSecondary", Jt), e.component("SimpleDropdown", so), e.component("AppDropdown", sn), e.component("SimpleDropdownItem", yt), e.component("StatCard", pn), e.component("ListCard", wn), e.component("AppTitle", xn), e.component("AppSubtitle", _n), e.component("AppText", Sn);
354
2489
  }
355
2490
  };
356
2491
  export {
357
- F as ButtonPrimary,
358
- L as ButtonSecondary,
359
- E as IconTextInput,
360
- fe as ListCard,
361
- te as SelectDropdown,
362
- R as SimpleDropdown,
363
- S as SimpleDropdownItem,
364
- se as StatCard,
365
- U as SwitchCheckbox,
366
- B as TextInput,
367
- ge as default
2492
+ sn as AppDropdown,
2493
+ _n as AppSubtitle,
2494
+ Sn as AppText,
2495
+ xn as AppTitle,
2496
+ Kt as ButtonPrimary,
2497
+ Jt as ButtonSecondary,
2498
+ Gt as IconTextInput,
2499
+ wn as ListCard,
2500
+ so as SimpleDropdown,
2501
+ yt as SimpleDropdownItem,
2502
+ pn as StatCard,
2503
+ Xt as SwitchCheckbox,
2504
+ ft as TextInput,
2505
+ Pn as default
368
2506
  };