design-system-next 1.0.21

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.
@@ -0,0 +1,3185 @@
1
+ import { computed as P, defineComponent as Z, openBlock as _, createElementBlock as C, renderSlot as D, createElementVNode as y, normalizeClass as A, unref as S, toDisplayString as ue, getCurrentScope as Qt, onScopeDispose as Jt, getCurrentInstance as Kt, ref as ee, watch as Ae, nextTick as kt, mergeProps as Qe, createCommentVNode as G, Fragment as J, withDirectives as Je, isRef as Pt, vModelRadio as en, pushScopeId as tn, popScopeId as nn, createBlock as F, normalizeProps as on, guardReactiveProps as sn, withScopeId as rn, resolveComponent as We, normalizeStyle as Le, withKeys as an, withCtx as K, createVNode as ke, markRaw as Re, renderList as Se, vShow as ln, resolveDynamicComponent as at, vModelCheckbox as dn } from "vue";
2
+ const un = ["danger", "disabled", "information", "brand"], cn = ["small", "big", "tiny"], pn = ["top", "bottom", "default"], fn = {
3
+ /**
4
+ * @description Badge Label
5
+ */
6
+ text: {
7
+ type: String,
8
+ default: "0"
9
+ },
10
+ /**
11
+ * @description Badge variant
12
+ */
13
+ variant: {
14
+ type: String,
15
+ validator: (e) => un.includes(e),
16
+ default: "brand"
17
+ },
18
+ /**
19
+ * @description Badge size
20
+ */
21
+ size: {
22
+ type: String,
23
+ validator: (e) => cn.includes(e),
24
+ default: "small"
25
+ },
26
+ /**
27
+ * @description Badge position (top, bottom, default)
28
+ */
29
+ position: {
30
+ type: String,
31
+ validator: (e) => pn.includes(e),
32
+ default: "default"
33
+ }
34
+ };
35
+ function hn(e) {
36
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
37
+ }
38
+ var je = { exports: {} };
39
+ /*!
40
+ Copyright (c) 2018 Jed Watson.
41
+ Licensed under the MIT License (MIT), see
42
+ http://jedwatson.github.io/classnames
43
+ */
44
+ var lt;
45
+ function wn() {
46
+ return lt || (lt = 1, function(e) {
47
+ (function() {
48
+ var t = {}.hasOwnProperty;
49
+ function n() {
50
+ for (var i = "", r = 0; r < arguments.length; r++) {
51
+ var a = arguments[r];
52
+ a && (i = s(i, o(a)));
53
+ }
54
+ return i;
55
+ }
56
+ function o(i) {
57
+ if (typeof i == "string" || typeof i == "number")
58
+ return i;
59
+ if (typeof i != "object")
60
+ return "";
61
+ if (Array.isArray(i))
62
+ return n.apply(null, i);
63
+ if (i.toString !== Object.prototype.toString && !i.toString.toString().includes("[native code]"))
64
+ return i.toString();
65
+ var r = "";
66
+ for (var a in i)
67
+ t.call(i, a) && i[a] && (r = s(r, a));
68
+ return r;
69
+ }
70
+ function s(i, r) {
71
+ return r ? i ? i + " " + r : i + r : i;
72
+ }
73
+ e.exports ? (n.default = n, e.exports = n) : window.classNames = n;
74
+ })();
75
+ }(je)), je.exports;
76
+ }
77
+ var mn = wn();
78
+ const O = /* @__PURE__ */ hn(mn), gn = (e) => {
79
+ const { position: t, size: n, variant: o } = e, s = P(() => {
80
+ const a = O({
81
+ "tw-background-color-danger-base tw-text-color-inverted-strong": o === "danger",
82
+ "tw-background-color-disabled tw-text-color-on-fill-disabled ": o === "disabled",
83
+ "tw-background-color-information-base tw-text-color-inverted-strong": o === "information",
84
+ "tw-background-color-brand-base tw-text-color-inverted-strong": o === "brand"
85
+ }), d = O({
86
+ "tw-label-sm-medium tw-h-[20px] tw-min-w-[20px] tw-rounded-[32px]": n === "big",
87
+ "tw-label-xs-medium tw-h-[16px] tw-min-w-[16px] tw-rounded-[32px]": n === "small",
88
+ "tw-h-[10px] tw-min-w-[10px] tw-rounded-full": n === "tiny"
89
+ });
90
+ return O(a, d);
91
+ }), i = P(() => O({
92
+ "tw-absolute tw--top-1 tw-right-1": t === "top" && n === "tiny",
93
+ " tw-absolute tw--bottom-1 tw-right-1": t === "bottom" && n === "tiny",
94
+ "tw-absolute tw--top-2 tw--right-1": t === "top" && n === "small",
95
+ " tw-absolute tw--bottom-2 tw--right-1": t === "bottom" && n === "small",
96
+ "tw-absolute tw--top-3 tw--right-2": t === "top" && n === "big",
97
+ " tw-absolute tw--bottom-3 tw--right-2": t === "bottom" && n === "big"
98
+ })), r = P(() => O({
99
+ "tw-flex tw-items-center tw-gap-2 ": t === "default",
100
+ "tw-relative": t === "top" || t === "bottom"
101
+ }));
102
+ return {
103
+ badgeClasses: s,
104
+ badgePositionClasses: i,
105
+ badgeElementWrapper: r
106
+ };
107
+ }, yn = { class: "tw-flex tw-gap-2" }, vn = /* @__PURE__ */ Z({
108
+ __name: "badge",
109
+ props: fn,
110
+ setup(e) {
111
+ const t = e, { badgeClasses: n, badgePositionClasses: o, badgeElementWrapper: s } = gn(t);
112
+ return (i, r) => (_(), C("div", yn, [
113
+ D(i.$slots, "default"),
114
+ y("div", {
115
+ class: A([S(s)])
116
+ }, [
117
+ y("section", {
118
+ class: A([S(o)])
119
+ }, [
120
+ y("div", {
121
+ class: A([S(n), "tw-flex tw-items-center tw-justify-center"])
122
+ }, ue(t.size === "tiny" ? "" : i.text), 3)
123
+ ], 2)
124
+ ], 2)
125
+ ]));
126
+ }
127
+ }), bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
128
+ __proto__: null,
129
+ default: vn
130
+ }, Symbol.toStringTag, { value: "Module" })), _n = ["neutral", "success", "danger"], xn = ["small", "medium", "large"], $n = ["button", "submit", "reset"], Sn = ["base", "hover", "pressed", "focus"], Tn = ["primary", "secondary", "tertiary"], Cn = {
131
+ /**
132
+ * @description Button tone
133
+ */
134
+ tone: {
135
+ type: String,
136
+ validator: (e) => _n.includes(e),
137
+ default: "neutral"
138
+ },
139
+ /**
140
+ * @description Button size
141
+ */
142
+ size: {
143
+ type: String,
144
+ validator: (e) => xn.includes(e),
145
+ default: "medium"
146
+ },
147
+ /**
148
+ * @description Native button type
149
+ */
150
+ type: {
151
+ type: String,
152
+ validator: (e) => $n.includes(e),
153
+ default: "button"
154
+ },
155
+ /**
156
+ * @description Button state
157
+ */
158
+ state: {
159
+ type: String,
160
+ validator: (e) => Sn.includes(e),
161
+ default: "base"
162
+ },
163
+ /**
164
+ * @description Button Variant
165
+ */
166
+ variant: {
167
+ type: String,
168
+ validator: (e) => Tn.includes(e),
169
+ default: "primary"
170
+ },
171
+ disabled: {
172
+ type: Boolean,
173
+ default: !1
174
+ }
175
+ }, kn = {
176
+ click: (e) => e instanceof MouseEvent
177
+ };
178
+ function Pn(e) {
179
+ return Qt() ? (Jt(e), !0) : !1;
180
+ }
181
+ function At(e) {
182
+ return typeof e == "function" ? e() : S(e);
183
+ }
184
+ const An = typeof window < "u" && typeof document < "u";
185
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
186
+ const On = (e) => typeof e < "u", Nn = Object.prototype.toString, zn = (e) => Nn.call(e) === "[object Object]", Bn = () => {
187
+ }, Ke = An ? window : void 0;
188
+ function et(e) {
189
+ var t;
190
+ const n = At(e);
191
+ return (t = n == null ? void 0 : n.$el) != null ? t : n;
192
+ }
193
+ function M(...e) {
194
+ let t, n, o, s;
195
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, s] = e, t = Ke) : [t, n, o, s] = e, !t)
196
+ return Bn;
197
+ Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
198
+ const i = [], r = () => {
199
+ i.forEach((c) => c()), i.length = 0;
200
+ }, a = (c, u, f, p) => (c.addEventListener(u, f, p), () => c.removeEventListener(u, f, p)), d = Ae(
201
+ () => [et(t), At(s)],
202
+ ([c, u]) => {
203
+ if (r(), !c)
204
+ return;
205
+ const f = zn(u) ? { ...u } : u;
206
+ i.push(
207
+ ...n.flatMap((p) => o.map((h) => a(c, p, h, f)))
208
+ );
209
+ },
210
+ { immediate: !0, flush: "post" }
211
+ ), l = () => {
212
+ d(), r();
213
+ };
214
+ return Pn(l), l;
215
+ }
216
+ function Rn(e) {
217
+ return JSON.parse(JSON.stringify(e));
218
+ }
219
+ function tt(e, t = {}) {
220
+ const {
221
+ delayEnter: n = 0,
222
+ delayLeave: o = 0,
223
+ window: s = Ke
224
+ } = t, i = ee(!1);
225
+ let r;
226
+ const a = (d) => {
227
+ const l = d ? n : o;
228
+ r && (clearTimeout(r), r = void 0), l ? r = setTimeout(() => i.value = d, l) : i.value = d;
229
+ };
230
+ return s && (M(e, "mouseenter", () => a(!0), { passive: !0 }), M(e, "mouseleave", () => a(!1), { passive: !0 })), i;
231
+ }
232
+ function En(e, t = {}) {
233
+ const { initialValue: n = !1, focusVisible: o = !1, preventScroll: s = !1 } = t, i = ee(!1), r = P(() => et(e));
234
+ M(r, "focus", (d) => {
235
+ var l, c;
236
+ (!o || (c = (l = d.target).matches) != null && c.call(l, ":focus-visible")) && (i.value = !0);
237
+ }), M(r, "blur", () => i.value = !1);
238
+ const a = P({
239
+ get: () => i.value,
240
+ set(d) {
241
+ var l, c;
242
+ !d && i.value ? (l = r.value) == null || l.blur() : d && !i.value && ((c = r.value) == null || c.focus({ preventScroll: s }));
243
+ }
244
+ });
245
+ return Ae(
246
+ r,
247
+ () => {
248
+ a.value = n;
249
+ },
250
+ { immediate: !0, flush: "post" }
251
+ ), { focused: a };
252
+ }
253
+ function Ot(e = {}) {
254
+ const {
255
+ touch: t = !0,
256
+ drag: n = !0,
257
+ capture: o = !1,
258
+ initialValue: s = !1,
259
+ window: i = Ke
260
+ } = e, r = ee(s), a = ee(null);
261
+ if (!i)
262
+ return {
263
+ pressed: r,
264
+ sourceType: a
265
+ };
266
+ const d = (u) => () => {
267
+ r.value = !0, a.value = u;
268
+ }, l = () => {
269
+ r.value = !1, a.value = null;
270
+ }, c = P(() => et(e.target) || i);
271
+ return M(c, "mousedown", d("mouse"), { passive: !0, capture: o }), M(i, "mouseleave", l, { passive: !0, capture: o }), M(i, "mouseup", l, { passive: !0, capture: o }), n && (M(c, "dragstart", d("mouse"), { passive: !0, capture: o }), M(i, "drop", l, { passive: !0, capture: o }), M(i, "dragend", l, { passive: !0, capture: o })), t && (M(c, "touchstart", d("touch"), { passive: !0, capture: o }), M(i, "touchend", l, { passive: !0, capture: o }), M(i, "touchcancel", l, { passive: !0, capture: o })), {
272
+ pressed: r,
273
+ sourceType: a
274
+ };
275
+ }
276
+ function Nt(e, t, n, o = {}) {
277
+ var s, i, r;
278
+ const {
279
+ clone: a = !1,
280
+ passive: d = !1,
281
+ eventName: l,
282
+ deep: c = !1,
283
+ defaultValue: u,
284
+ shouldEmit: f
285
+ } = o, p = Kt(), h = n || (p == null ? void 0 : p.emit) || ((s = p == null ? void 0 : p.$emit) == null ? void 0 : s.bind(p)) || ((r = (i = p == null ? void 0 : p.proxy) == null ? void 0 : i.$emit) == null ? void 0 : r.bind(p == null ? void 0 : p.proxy));
286
+ let w = l;
287
+ w = w || `update:${t.toString()}`;
288
+ const g = (b) => a ? typeof a == "function" ? a(b) : Rn(b) : b, m = () => On(e[t]) ? g(e[t]) : u, v = (b) => {
289
+ f ? f(b) && h(w, b) : h(w, b);
290
+ };
291
+ if (d) {
292
+ const b = m(), k = ee(b);
293
+ let $ = !1;
294
+ return Ae(
295
+ () => e[t],
296
+ (N) => {
297
+ $ || ($ = !0, k.value = g(N), kt(() => $ = !1));
298
+ }
299
+ ), Ae(
300
+ k,
301
+ (N) => {
302
+ !$ && (N !== e[t] || c) && v(N);
303
+ },
304
+ { deep: c }
305
+ ), k;
306
+ } else
307
+ return P({
308
+ get() {
309
+ return m();
310
+ },
311
+ set(b) {
312
+ v(b);
313
+ }
314
+ });
315
+ }
316
+ const Dn = (e, t) => {
317
+ const n = ee(null), o = tt(n), { pressed: s } = Ot({ target: n }), { focused: i } = En(n), { state: r, type: a, size: d, tone: l, variant: c, disabled: u } = e, f = P(() => ({
318
+ ...u && { ariaDisabled: !0 },
319
+ disabled: u,
320
+ autofocus: r === "focus",
321
+ type: a ?? "button"
322
+ })), p = P(
323
+ () => O({
324
+ "tw-px-[4px] tw-py-[6px] tw-font-medium tw-font-size-100 tw-leading-100": d === "small",
325
+ "tw-p-[8px] tw-font-medium tw-font-size-100 tw-leading-100": d === "medium",
326
+ "tw-px-[8px] tw-py-[12px] tw-font-medium tw-font-size-200 tw-leading-300": d === "large"
327
+ })
328
+ ), h = P(() => O(c === "secondary" || c === "tertiary" ? {
329
+ "tw-text-color-strong": l === "neutral",
330
+ "tw-text-color-brand-base": l === "success",
331
+ "tw-text-color-danger-base": l === "danger"
332
+ } : {
333
+ "tw-text-color-strong": l === "neutral",
334
+ "tw-text-color-inverted-strong": l === "success" || l === "danger"
335
+ })), w = P(() => c === "secondary" ? o.value ? "tw-background-color-hover" : "" : c === "tertiary" ? g() : m());
336
+ function g() {
337
+ return s.value ? "tw-background-color-pressed" : o.value ? "tw-background-color-hover" : "";
338
+ }
339
+ function m() {
340
+ return s.value ? v() : o.value ? b() : k();
341
+ }
342
+ function v() {
343
+ return {
344
+ neutral: "tw-background-color-pressed",
345
+ success: "tw-background-color-brand-pressed",
346
+ danger: "tw-background-color-danger-pressed"
347
+ }[l] || "";
348
+ }
349
+ function b() {
350
+ return {
351
+ neutral: "tw-background-color-hover",
352
+ success: "tw-background-color-success-pressed",
353
+ danger: "tw-background-color-danger-hover"
354
+ }[l] || "";
355
+ }
356
+ function k() {
357
+ return {
358
+ neutral: "tw-background-color-base",
359
+ success: "tw-background-color-brand-base",
360
+ danger: "tw-background-color-danger-base"
361
+ }[l] || "";
362
+ }
363
+ const $ = P(() => c === "primary" || c === "tertiary" ? i.value ? "tw-border-solid tw-border tw-border-white-50" : "tw-border-solid tw-border tw-border-transparent" : O({
364
+ "tw-border-solid tw-border tw-border-color-base": l === "neutral",
365
+ "tw-border-solid tw-border tw-border-color-brand-base": l === "success",
366
+ "tw-border-solid tw-border tw-border-color-danger-base": l === "danger"
367
+ })), N = P(() => O(w.value, h.value, $.value)), z = P(() => s.value ? "tw-shadow-button" : i.value ? "tw-shadow-button-active" : ""), H = P(() => u ? O(p.value, "tw-text-color-disabled") : O(p.value, N.value, z.value));
368
+ return {
369
+ buttonRef: n,
370
+ buttonProps: f,
371
+ buttonClass: H,
372
+ handleClick: (T) => {
373
+ if (u) {
374
+ T.stopPropagation();
375
+ return;
376
+ }
377
+ t("click", T);
378
+ }
379
+ };
380
+ }, Mn = /* @__PURE__ */ Z({
381
+ __name: "button",
382
+ props: Cn,
383
+ emits: kn,
384
+ setup(e, { emit: t }) {
385
+ const n = e, o = t, { buttonRef: s, buttonProps: i, buttonClass: r, handleClick: a } = Dn(n, o);
386
+ return (d, l) => (_(), C("button", Qe({
387
+ ref_key: "buttonRef",
388
+ ref: s
389
+ }, S(i), {
390
+ class: [
391
+ "tw-inline-flex tw-w-fit tw-min-w-[56px] tw-cursor-pointer tw-items-center tw-justify-center tw-rounded-md tw-outline-none tw-duration-150 tw-ease-in-out",
392
+ "hover:tw-shadow-button-hover",
393
+ "active:tw-scale-95",
394
+ S(r)
395
+ ],
396
+ onClick: l[0] || (l[0] = //@ts-ignore
397
+ (...c) => S(a) && S(a)(...c))
398
+ }), [
399
+ D(d.$slots, "default")
400
+ ], 16));
401
+ }
402
+ }), Hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
403
+ __proto__: null,
404
+ default: Mn
405
+ }, Symbol.toStringTag, { value: "Module" })), Ln = ["pending", "information", "success", "danger", "neutral", "caution"], jn = {
406
+ /**
407
+ * @description Lozenge Label
408
+ */
409
+ label: {
410
+ type: String,
411
+ default: "label"
412
+ },
413
+ /**
414
+ * @description Lozenge tone
415
+ */
416
+ tone: {
417
+ type: String,
418
+ validator: (e) => Ln.includes(e),
419
+ default: "plain"
420
+ },
421
+ /**
422
+ * @description Lozenge type (fill or outline)
423
+ */
424
+ fill: {
425
+ type: Boolean,
426
+ default: !1
427
+ },
428
+ /**
429
+ * @description Lozenge removable
430
+ */
431
+ removable: {
432
+ type: Boolean,
433
+ default: !1
434
+ },
435
+ /**
436
+ * @description avatar image url
437
+ */
438
+ url: {
439
+ type: String,
440
+ default: ""
441
+ },
442
+ /**
443
+ * @description handler if the lozenge is visible
444
+ */
445
+ visible: {
446
+ type: Boolean,
447
+ default: !0
448
+ }
449
+ }, Fn = {
450
+ key: 0,
451
+ class: "tw-flex tw-h-3 tw-w-3 tw-items-center tw-overflow-hidden"
452
+ }, In = {
453
+ key: 1,
454
+ class: "tw-flex tw-items-center"
455
+ }, Vn = {
456
+ key: 2,
457
+ class: "tw-h-4 tw-w-4 tw-overflow-hidden"
458
+ }, Wn = ["src"], qn = /* @__PURE__ */ Z({
459
+ __name: "lozenge",
460
+ props: jn,
461
+ setup(e) {
462
+ return (t, n) => t.visible ? (_(), C("div", {
463
+ key: 0,
464
+ class: A([t.fill ? "lozenge-fill" : "lozenge"])
465
+ }, [
466
+ y("div", {
467
+ class: A([
468
+ "tw-label-xs-medium tw-inline-flex tw-items-center tw-gap-size-spacing-6xs tw-rounded-md tw-border tw-border-solid tw-p-size-spacing-5xs tw-text-xs tw-uppercase",
469
+ t.tone
470
+ ])
471
+ }, [
472
+ t.$slots.icon ? (_(), C("div", Fn, [
473
+ D(t.$slots, "icon", {}, void 0, !0)
474
+ ])) : G("", !0),
475
+ t.$slots.avatar ? (_(), C("div", In, [
476
+ D(t.$slots, "avatar", {}, void 0, !0)
477
+ ])) : G("", !0),
478
+ t.url && !t.$slots.avatar ? (_(), C("div", Vn, [
479
+ y("img", {
480
+ class: "tw-h-full tw-w-full tw-rounded-full tw-object-cover",
481
+ src: t.url,
482
+ alt: "avatar"
483
+ }, null, 8, Wn)
484
+ ])) : G("", !0),
485
+ y("div", null, ue(t.label), 1)
486
+ ], 2)
487
+ ], 2)) : G("", !0);
488
+ }
489
+ }), zt = (e, t) => {
490
+ const n = e.__vccOpts || e;
491
+ for (const [o, s] of t)
492
+ n[o] = s;
493
+ return n;
494
+ }, Gn = /* @__PURE__ */ zt(qn, [["__scopeId", "data-v-1688fd0a"]]), Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
495
+ __proto__: null,
496
+ default: Gn
497
+ }, Symbol.toStringTag, { value: "Module" })), Yn = ["default", "hover", "disabled"], Xn = {
498
+ /**
499
+ * @description Radio state
500
+ */
501
+ state: {
502
+ type: String,
503
+ validator: (e) => Yn.includes(e),
504
+ default: "default"
505
+ },
506
+ disabled: {
507
+ type: Boolean,
508
+ default: !1
509
+ },
510
+ /**
511
+ * @description Attribute id
512
+ */
513
+ id: {
514
+ type: String,
515
+ required: !0
516
+ },
517
+ /**
518
+ * @description Value for v-model
519
+ */
520
+ modelValue: {
521
+ type: [String, Number, Boolean],
522
+ required: !0,
523
+ default: !1
524
+ },
525
+ /**
526
+ * @description Attribute name
527
+ */
528
+ name: {
529
+ type: String,
530
+ required: !0
531
+ },
532
+ /**
533
+ * @description Attribute value
534
+ */
535
+ value: {
536
+ type: [String, Number, Boolean],
537
+ required: !0
538
+ }
539
+ }, Zn = ["update:modelValue"], Qn = (e) => {
540
+ const t = ee(null), n = tt(t), o = P(() => {
541
+ const r = "tw-sr-only tw-peer";
542
+ return e.disabled ? O(r, "tw-cursor-default") : r;
543
+ }), s = P(() => {
544
+ console.log(e.disabled);
545
+ const r = "tw-inline-block tw-w-4 tw-h-4 tw-rounded-full tw-border-2 tw-border-solid tw-mr-2";
546
+ return e.disabled ? O(
547
+ r,
548
+ e.modelValue === e.value ? "tw-border-color-disabled tw-background-color-disabled tw-shadow-[inset_0px_0px_0px_2.5px_#fff] tw-cursor-default" : "tw-border-color-disabled tw-background-color tw-cursor-default"
549
+ ) : e.modelValue === e.value ? O(
550
+ r,
551
+ "tw-border-color-brand-base tw-background-color-brand-base tw-shadow-[inset_0px_0px_0px_2.5px_#fff]"
552
+ ) : n.value ? O(
553
+ r,
554
+ "tw-background-color-base tw-border-2 tw-border-color-supporting tw-shadow-[inset_0px_0px_0px_2.5px_#fff]"
555
+ ) : O(r, "tw-border-color-supporting tw-shadow-[inset_0px_0px_0px_2.5px_#fff]");
556
+ }), i = P(() => e.disabled ? "tw-text-color-disabled tw-cursor-default" : "tw-text-color-strong tw-cursor-pointer");
557
+ return {
558
+ radioRef: t,
559
+ radioClasses: o,
560
+ indicatorClasses: s,
561
+ radioLabelClasses: i
562
+ };
563
+ }, Jn = ["id", "name", "value", "disabled"], Kn = ["for", "disabled"], eo = /* @__PURE__ */ Z({
564
+ __name: "radio",
565
+ props: Xn,
566
+ emits: Zn,
567
+ setup(e, { emit: t }) {
568
+ const n = e, s = Nt(n, "modelValue", t), { radioRef: i, radioClasses: r, indicatorClasses: a, radioLabelClasses: d } = Qn(n);
569
+ return (l, c) => (_(), C(J, null, [
570
+ Je(y("input", {
571
+ id: n.id,
572
+ ref_key: "radioRef",
573
+ ref: i,
574
+ "onUpdate:modelValue": c[0] || (c[0] = (u) => Pt(s) ? s.value = u : null),
575
+ type: "radio",
576
+ name: n.name,
577
+ value: n.value,
578
+ disabled: n.disabled,
579
+ class: A(S(r))
580
+ }, null, 10, Jn), [
581
+ [en, S(s)]
582
+ ]),
583
+ y("label", {
584
+ ref_key: "radioRef",
585
+ ref: i,
586
+ for: n.id,
587
+ disabled: n.disabled,
588
+ class: A([
589
+ "tw-flex tw-items-center tw-space-x-2",
590
+ S(d)
591
+ ])
592
+ }, [
593
+ y("span", {
594
+ class: A(S(a))
595
+ }, null, 2),
596
+ D(l.$slots, "default")
597
+ ], 10, Kn)
598
+ ], 64));
599
+ }
600
+ }), to = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
601
+ __proto__: null,
602
+ default: eo
603
+ }, Symbol.toStringTag, { value: "Module" })), no = {
604
+ /**
605
+ * @description Sidenav has quick actions
606
+ */
607
+ hasQuickActions: {
608
+ type: Boolean,
609
+ validator: (e) => typeof e == "boolean",
610
+ default: !1
611
+ },
612
+ /**
613
+ * @description Sidenav has search
614
+ */
615
+ hasSearch: {
616
+ type: Boolean,
617
+ validator: (e) => typeof e == "boolean",
618
+ default: !1
619
+ },
620
+ /**
621
+ * @description Sidenav active navigation
622
+ */
623
+ activeNav: {
624
+ type: Object,
625
+ validator: (e) => typeof e == "object",
626
+ default: () => ({ parentNav: "", menu: "", submenu: "" })
627
+ },
628
+ /**
629
+ * @description Sidenav navlinks
630
+ */
631
+ navLinks: {
632
+ type: Array,
633
+ validator: (e) => Array.isArray(e),
634
+ default: () => []
635
+ }
636
+ }, oo = {
637
+ "route-push": String
638
+ }, so = (e, t) => ({
639
+ handleRedirect: (o, s) => {
640
+ s && (s.openInNewTab ? window.open(s.link, "_blank") : s.isAbsoluteURL ? location.href = s.link : t("route-push", s.link));
641
+ }
642
+ }), io = ["top", "right", "bottom", "left"], dt = ["start", "end"], ut = /* @__PURE__ */ io.reduce((e, t) => e.concat(t, t + "-" + dt[0], t + "-" + dt[1]), []), be = Math.min, de = Math.max, ro = {
643
+ left: "right",
644
+ right: "left",
645
+ bottom: "top",
646
+ top: "bottom"
647
+ }, ao = {
648
+ start: "end",
649
+ end: "start"
650
+ };
651
+ function qe(e, t, n) {
652
+ return de(e, be(t, n));
653
+ }
654
+ function fe(e, t) {
655
+ return typeof e == "function" ? e(t) : e;
656
+ }
657
+ function X(e) {
658
+ return e.split("-")[0];
659
+ }
660
+ function V(e) {
661
+ return e.split("-")[1];
662
+ }
663
+ function Bt(e) {
664
+ return e === "x" ? "y" : "x";
665
+ }
666
+ function nt(e) {
667
+ return e === "y" ? "height" : "width";
668
+ }
669
+ function pe(e) {
670
+ return ["top", "bottom"].includes(X(e)) ? "y" : "x";
671
+ }
672
+ function ot(e) {
673
+ return Bt(pe(e));
674
+ }
675
+ function Rt(e, t, n) {
676
+ n === void 0 && (n = !1);
677
+ const o = V(e), s = ot(e), i = nt(s);
678
+ let r = s === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
679
+ return t.reference[i] > t.floating[i] && (r = Ne(r)), [r, Ne(r)];
680
+ }
681
+ function lo(e) {
682
+ const t = Ne(e);
683
+ return [Oe(e), t, Oe(t)];
684
+ }
685
+ function Oe(e) {
686
+ return e.replace(/start|end/g, (t) => ao[t]);
687
+ }
688
+ function uo(e, t, n) {
689
+ const o = ["left", "right"], s = ["right", "left"], i = ["top", "bottom"], r = ["bottom", "top"];
690
+ switch (e) {
691
+ case "top":
692
+ case "bottom":
693
+ return n ? t ? s : o : t ? o : s;
694
+ case "left":
695
+ case "right":
696
+ return t ? i : r;
697
+ default:
698
+ return [];
699
+ }
700
+ }
701
+ function co(e, t, n, o) {
702
+ const s = V(e);
703
+ let i = uo(X(e), n === "start", o);
704
+ return s && (i = i.map((r) => r + "-" + s), t && (i = i.concat(i.map(Oe)))), i;
705
+ }
706
+ function Ne(e) {
707
+ return e.replace(/left|right|bottom|top/g, (t) => ro[t]);
708
+ }
709
+ function po(e) {
710
+ return {
711
+ top: 0,
712
+ right: 0,
713
+ bottom: 0,
714
+ left: 0,
715
+ ...e
716
+ };
717
+ }
718
+ function Et(e) {
719
+ return typeof e != "number" ? po(e) : {
720
+ top: e,
721
+ right: e,
722
+ bottom: e,
723
+ left: e
724
+ };
725
+ }
726
+ function me(e) {
727
+ const {
728
+ x: t,
729
+ y: n,
730
+ width: o,
731
+ height: s
732
+ } = e;
733
+ return {
734
+ width: o,
735
+ height: s,
736
+ top: n,
737
+ left: t,
738
+ right: t + o,
739
+ bottom: n + s,
740
+ x: t,
741
+ y: n
742
+ };
743
+ }
744
+ function ct(e, t, n) {
745
+ let {
746
+ reference: o,
747
+ floating: s
748
+ } = e;
749
+ const i = pe(t), r = ot(t), a = nt(r), d = X(t), l = i === "y", c = o.x + o.width / 2 - s.width / 2, u = o.y + o.height / 2 - s.height / 2, f = o[a] / 2 - s[a] / 2;
750
+ let p;
751
+ switch (d) {
752
+ case "top":
753
+ p = {
754
+ x: c,
755
+ y: o.y - s.height
756
+ };
757
+ break;
758
+ case "bottom":
759
+ p = {
760
+ x: c,
761
+ y: o.y + o.height
762
+ };
763
+ break;
764
+ case "right":
765
+ p = {
766
+ x: o.x + o.width,
767
+ y: u
768
+ };
769
+ break;
770
+ case "left":
771
+ p = {
772
+ x: o.x - s.width,
773
+ y: u
774
+ };
775
+ break;
776
+ default:
777
+ p = {
778
+ x: o.x,
779
+ y: o.y
780
+ };
781
+ }
782
+ switch (V(t)) {
783
+ case "start":
784
+ p[r] -= f * (n && l ? -1 : 1);
785
+ break;
786
+ case "end":
787
+ p[r] += f * (n && l ? -1 : 1);
788
+ break;
789
+ }
790
+ return p;
791
+ }
792
+ const fo = async (e, t, n) => {
793
+ const {
794
+ placement: o = "bottom",
795
+ strategy: s = "absolute",
796
+ middleware: i = [],
797
+ platform: r
798
+ } = n, a = i.filter(Boolean), d = await (r.isRTL == null ? void 0 : r.isRTL(t));
799
+ let l = await r.getElementRects({
800
+ reference: e,
801
+ floating: t,
802
+ strategy: s
803
+ }), {
804
+ x: c,
805
+ y: u
806
+ } = ct(l, o, d), f = o, p = {}, h = 0;
807
+ for (let w = 0; w < a.length; w++) {
808
+ const {
809
+ name: g,
810
+ fn: m
811
+ } = a[w], {
812
+ x: v,
813
+ y: b,
814
+ data: k,
815
+ reset: $
816
+ } = await m({
817
+ x: c,
818
+ y: u,
819
+ initialPlacement: o,
820
+ placement: f,
821
+ strategy: s,
822
+ middlewareData: p,
823
+ rects: l,
824
+ platform: r,
825
+ elements: {
826
+ reference: e,
827
+ floating: t
828
+ }
829
+ });
830
+ c = v ?? c, u = b ?? u, p = {
831
+ ...p,
832
+ [g]: {
833
+ ...p[g],
834
+ ...k
835
+ }
836
+ }, $ && h <= 50 && (h++, typeof $ == "object" && ($.placement && (f = $.placement), $.rects && (l = $.rects === !0 ? await r.getElementRects({
837
+ reference: e,
838
+ floating: t,
839
+ strategy: s
840
+ }) : $.rects), {
841
+ x: c,
842
+ y: u
843
+ } = ct(l, f, d)), w = -1);
844
+ }
845
+ return {
846
+ x: c,
847
+ y: u,
848
+ placement: f,
849
+ strategy: s,
850
+ middlewareData: p
851
+ };
852
+ };
853
+ async function Ee(e, t) {
854
+ var n;
855
+ t === void 0 && (t = {});
856
+ const {
857
+ x: o,
858
+ y: s,
859
+ platform: i,
860
+ rects: r,
861
+ elements: a,
862
+ strategy: d
863
+ } = e, {
864
+ boundary: l = "clippingAncestors",
865
+ rootBoundary: c = "viewport",
866
+ elementContext: u = "floating",
867
+ altBoundary: f = !1,
868
+ padding: p = 0
869
+ } = fe(t, e), h = Et(p), g = a[f ? u === "floating" ? "reference" : "floating" : u], m = me(await i.getClippingRect({
870
+ element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
871
+ boundary: l,
872
+ rootBoundary: c,
873
+ strategy: d
874
+ })), v = u === "floating" ? {
875
+ x: o,
876
+ y: s,
877
+ width: r.floating.width,
878
+ height: r.floating.height
879
+ } : r.reference, b = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), k = await (i.isElement == null ? void 0 : i.isElement(b)) ? await (i.getScale == null ? void 0 : i.getScale(b)) || {
880
+ x: 1,
881
+ y: 1
882
+ } : {
883
+ x: 1,
884
+ y: 1
885
+ }, $ = me(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
886
+ elements: a,
887
+ rect: v,
888
+ offsetParent: b,
889
+ strategy: d
890
+ }) : v);
891
+ return {
892
+ top: (m.top - $.top + h.top) / k.y,
893
+ bottom: ($.bottom - m.bottom + h.bottom) / k.y,
894
+ left: (m.left - $.left + h.left) / k.x,
895
+ right: ($.right - m.right + h.right) / k.x
896
+ };
897
+ }
898
+ const ho = (e) => ({
899
+ name: "arrow",
900
+ options: e,
901
+ async fn(t) {
902
+ const {
903
+ x: n,
904
+ y: o,
905
+ placement: s,
906
+ rects: i,
907
+ platform: r,
908
+ elements: a,
909
+ middlewareData: d
910
+ } = t, {
911
+ element: l,
912
+ padding: c = 0
913
+ } = fe(e, t) || {};
914
+ if (l == null)
915
+ return {};
916
+ const u = Et(c), f = {
917
+ x: n,
918
+ y: o
919
+ }, p = ot(s), h = nt(p), w = await r.getDimensions(l), g = p === "y", m = g ? "top" : "left", v = g ? "bottom" : "right", b = g ? "clientHeight" : "clientWidth", k = i.reference[h] + i.reference[p] - f[p] - i.floating[h], $ = f[p] - i.reference[p], N = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(l));
920
+ let z = N ? N[b] : 0;
921
+ (!z || !await (r.isElement == null ? void 0 : r.isElement(N))) && (z = a.floating[b] || i.floating[h]);
922
+ const H = k / 2 - $ / 2, R = z / 2 - w[h] / 2 - 1, T = be(u[m], R), E = be(u[v], R), L = T, W = z - w[h] - E, B = z / 2 - w[h] / 2 + H, he = qe(L, B, W), Q = !d.arrow && V(s) != null && B !== he && i.reference[h] / 2 - (B < L ? T : E) - w[h] / 2 < 0, q = Q ? B < L ? B - L : B - W : 0;
923
+ return {
924
+ [p]: f[p] + q,
925
+ data: {
926
+ [p]: he,
927
+ centerOffset: B - he - q,
928
+ ...Q && {
929
+ alignmentOffset: q
930
+ }
931
+ },
932
+ reset: Q
933
+ };
934
+ }
935
+ });
936
+ function wo(e, t, n) {
937
+ return (e ? [...n.filter((s) => V(s) === e), ...n.filter((s) => V(s) !== e)] : n.filter((s) => X(s) === s)).filter((s) => e ? V(s) === e || (t ? Oe(s) !== s : !1) : !0);
938
+ }
939
+ const mo = function(e) {
940
+ return e === void 0 && (e = {}), {
941
+ name: "autoPlacement",
942
+ options: e,
943
+ async fn(t) {
944
+ var n, o, s;
945
+ const {
946
+ rects: i,
947
+ middlewareData: r,
948
+ placement: a,
949
+ platform: d,
950
+ elements: l
951
+ } = t, {
952
+ crossAxis: c = !1,
953
+ alignment: u,
954
+ allowedPlacements: f = ut,
955
+ autoAlignment: p = !0,
956
+ ...h
957
+ } = fe(e, t), w = u !== void 0 || f === ut ? wo(u || null, p, f) : f, g = await Ee(t, h), m = ((n = r.autoPlacement) == null ? void 0 : n.index) || 0, v = w[m];
958
+ if (v == null)
959
+ return {};
960
+ const b = Rt(v, i, await (d.isRTL == null ? void 0 : d.isRTL(l.floating)));
961
+ if (a !== v)
962
+ return {
963
+ reset: {
964
+ placement: w[0]
965
+ }
966
+ };
967
+ const k = [g[X(v)], g[b[0]], g[b[1]]], $ = [...((o = r.autoPlacement) == null ? void 0 : o.overflows) || [], {
968
+ placement: v,
969
+ overflows: k
970
+ }], N = w[m + 1];
971
+ if (N)
972
+ return {
973
+ data: {
974
+ index: m + 1,
975
+ overflows: $
976
+ },
977
+ reset: {
978
+ placement: N
979
+ }
980
+ };
981
+ const z = $.map((T) => {
982
+ const E = V(T.placement);
983
+ return [T.placement, E && c ? (
984
+ // Check along the mainAxis and main crossAxis side.
985
+ T.overflows.slice(0, 2).reduce((L, W) => L + W, 0)
986
+ ) : (
987
+ // Check only the mainAxis.
988
+ T.overflows[0]
989
+ ), T.overflows];
990
+ }).sort((T, E) => T[1] - E[1]), R = ((s = z.filter((T) => T[2].slice(
991
+ 0,
992
+ // Aligned placements should not check their opposite crossAxis
993
+ // side.
994
+ V(T[0]) ? 2 : 3
995
+ ).every((E) => E <= 0))[0]) == null ? void 0 : s[0]) || z[0][0];
996
+ return R !== a ? {
997
+ data: {
998
+ index: m + 1,
999
+ overflows: $
1000
+ },
1001
+ reset: {
1002
+ placement: R
1003
+ }
1004
+ } : {};
1005
+ }
1006
+ };
1007
+ }, go = function(e) {
1008
+ return e === void 0 && (e = {}), {
1009
+ name: "flip",
1010
+ options: e,
1011
+ async fn(t) {
1012
+ var n, o;
1013
+ const {
1014
+ placement: s,
1015
+ middlewareData: i,
1016
+ rects: r,
1017
+ initialPlacement: a,
1018
+ platform: d,
1019
+ elements: l
1020
+ } = t, {
1021
+ mainAxis: c = !0,
1022
+ crossAxis: u = !0,
1023
+ fallbackPlacements: f,
1024
+ fallbackStrategy: p = "bestFit",
1025
+ fallbackAxisSideDirection: h = "none",
1026
+ flipAlignment: w = !0,
1027
+ ...g
1028
+ } = fe(e, t);
1029
+ if ((n = i.arrow) != null && n.alignmentOffset)
1030
+ return {};
1031
+ const m = X(s), v = pe(a), b = X(a) === a, k = await (d.isRTL == null ? void 0 : d.isRTL(l.floating)), $ = f || (b || !w ? [Ne(a)] : lo(a)), N = h !== "none";
1032
+ !f && N && $.push(...co(a, w, h, k));
1033
+ const z = [a, ...$], H = await Ee(t, g), R = [];
1034
+ let T = ((o = i.flip) == null ? void 0 : o.overflows) || [];
1035
+ if (c && R.push(H[m]), u) {
1036
+ const B = Rt(s, r, k);
1037
+ R.push(H[B[0]], H[B[1]]);
1038
+ }
1039
+ if (T = [...T, {
1040
+ placement: s,
1041
+ overflows: R
1042
+ }], !R.every((B) => B <= 0)) {
1043
+ var E, L;
1044
+ const B = (((E = i.flip) == null ? void 0 : E.index) || 0) + 1, he = z[B];
1045
+ if (he)
1046
+ return {
1047
+ data: {
1048
+ index: B,
1049
+ overflows: T
1050
+ },
1051
+ reset: {
1052
+ placement: he
1053
+ }
1054
+ };
1055
+ let Q = (L = T.filter((q) => q.overflows[0] <= 0).sort((q, te) => q.overflows[1] - te.overflows[1])[0]) == null ? void 0 : L.placement;
1056
+ if (!Q)
1057
+ switch (p) {
1058
+ case "bestFit": {
1059
+ var W;
1060
+ const q = (W = T.filter((te) => {
1061
+ if (N) {
1062
+ const ne = pe(te.placement);
1063
+ return ne === v || // Create a bias to the `y` side axis due to horizontal
1064
+ // reading directions favoring greater width.
1065
+ ne === "y";
1066
+ }
1067
+ return !0;
1068
+ }).map((te) => [te.placement, te.overflows.filter((ne) => ne > 0).reduce((ne, Zt) => ne + Zt, 0)]).sort((te, ne) => te[1] - ne[1])[0]) == null ? void 0 : W[0];
1069
+ q && (Q = q);
1070
+ break;
1071
+ }
1072
+ case "initialPlacement":
1073
+ Q = a;
1074
+ break;
1075
+ }
1076
+ if (s !== Q)
1077
+ return {
1078
+ reset: {
1079
+ placement: Q
1080
+ }
1081
+ };
1082
+ }
1083
+ return {};
1084
+ }
1085
+ };
1086
+ };
1087
+ async function yo(e, t) {
1088
+ const {
1089
+ placement: n,
1090
+ platform: o,
1091
+ elements: s
1092
+ } = e, i = await (o.isRTL == null ? void 0 : o.isRTL(s.floating)), r = X(n), a = V(n), d = pe(n) === "y", l = ["left", "top"].includes(r) ? -1 : 1, c = i && d ? -1 : 1, u = fe(t, e);
1093
+ let {
1094
+ mainAxis: f,
1095
+ crossAxis: p,
1096
+ alignmentAxis: h
1097
+ } = typeof u == "number" ? {
1098
+ mainAxis: u,
1099
+ crossAxis: 0,
1100
+ alignmentAxis: null
1101
+ } : {
1102
+ mainAxis: u.mainAxis || 0,
1103
+ crossAxis: u.crossAxis || 0,
1104
+ alignmentAxis: u.alignmentAxis
1105
+ };
1106
+ return a && typeof h == "number" && (p = a === "end" ? h * -1 : h), d ? {
1107
+ x: p * c,
1108
+ y: f * l
1109
+ } : {
1110
+ x: f * l,
1111
+ y: p * c
1112
+ };
1113
+ }
1114
+ const vo = function(e) {
1115
+ return e === void 0 && (e = 0), {
1116
+ name: "offset",
1117
+ options: e,
1118
+ async fn(t) {
1119
+ var n, o;
1120
+ const {
1121
+ x: s,
1122
+ y: i,
1123
+ placement: r,
1124
+ middlewareData: a
1125
+ } = t, d = await yo(t, e);
1126
+ return r === ((n = a.offset) == null ? void 0 : n.placement) && (o = a.arrow) != null && o.alignmentOffset ? {} : {
1127
+ x: s + d.x,
1128
+ y: i + d.y,
1129
+ data: {
1130
+ ...d,
1131
+ placement: r
1132
+ }
1133
+ };
1134
+ }
1135
+ };
1136
+ }, bo = function(e) {
1137
+ return e === void 0 && (e = {}), {
1138
+ name: "shift",
1139
+ options: e,
1140
+ async fn(t) {
1141
+ const {
1142
+ x: n,
1143
+ y: o,
1144
+ placement: s
1145
+ } = t, {
1146
+ mainAxis: i = !0,
1147
+ crossAxis: r = !1,
1148
+ limiter: a = {
1149
+ fn: (g) => {
1150
+ let {
1151
+ x: m,
1152
+ y: v
1153
+ } = g;
1154
+ return {
1155
+ x: m,
1156
+ y: v
1157
+ };
1158
+ }
1159
+ },
1160
+ ...d
1161
+ } = fe(e, t), l = {
1162
+ x: n,
1163
+ y: o
1164
+ }, c = await Ee(t, d), u = pe(X(s)), f = Bt(u);
1165
+ let p = l[f], h = l[u];
1166
+ if (i) {
1167
+ const g = f === "y" ? "top" : "left", m = f === "y" ? "bottom" : "right", v = p + c[g], b = p - c[m];
1168
+ p = qe(v, p, b);
1169
+ }
1170
+ if (r) {
1171
+ const g = u === "y" ? "top" : "left", m = u === "y" ? "bottom" : "right", v = h + c[g], b = h - c[m];
1172
+ h = qe(v, h, b);
1173
+ }
1174
+ const w = a.fn({
1175
+ ...t,
1176
+ [f]: p,
1177
+ [u]: h
1178
+ });
1179
+ return {
1180
+ ...w,
1181
+ data: {
1182
+ x: w.x - n,
1183
+ y: w.y - o,
1184
+ enabled: {
1185
+ [f]: i,
1186
+ [u]: r
1187
+ }
1188
+ }
1189
+ };
1190
+ }
1191
+ };
1192
+ }, _o = function(e) {
1193
+ return e === void 0 && (e = {}), {
1194
+ name: "size",
1195
+ options: e,
1196
+ async fn(t) {
1197
+ var n, o;
1198
+ const {
1199
+ placement: s,
1200
+ rects: i,
1201
+ platform: r,
1202
+ elements: a
1203
+ } = t, {
1204
+ apply: d = () => {
1205
+ },
1206
+ ...l
1207
+ } = fe(e, t), c = await Ee(t, l), u = X(s), f = V(s), p = pe(s) === "y", {
1208
+ width: h,
1209
+ height: w
1210
+ } = i.floating;
1211
+ let g, m;
1212
+ u === "top" || u === "bottom" ? (g = u, m = f === (await (r.isRTL == null ? void 0 : r.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (m = u, g = f === "end" ? "top" : "bottom");
1213
+ const v = w - c.top - c.bottom, b = h - c.left - c.right, k = be(w - c[g], v), $ = be(h - c[m], b), N = !t.middlewareData.shift;
1214
+ let z = k, H = $;
1215
+ if ((n = t.middlewareData.shift) != null && n.enabled.x && (H = b), (o = t.middlewareData.shift) != null && o.enabled.y && (z = v), N && !f) {
1216
+ const T = de(c.left, 0), E = de(c.right, 0), L = de(c.top, 0), W = de(c.bottom, 0);
1217
+ p ? H = h - 2 * (T !== 0 || E !== 0 ? T + E : de(c.left, c.right)) : z = w - 2 * (L !== 0 || W !== 0 ? L + W : de(c.top, c.bottom));
1218
+ }
1219
+ await d({
1220
+ ...t,
1221
+ availableWidth: H,
1222
+ availableHeight: z
1223
+ });
1224
+ const R = await r.getDimensions(a.floating);
1225
+ return h !== R.width || w !== R.height ? {
1226
+ reset: {
1227
+ rects: !0
1228
+ }
1229
+ } : {};
1230
+ }
1231
+ };
1232
+ };
1233
+ function j(e) {
1234
+ var t;
1235
+ return ((t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1236
+ }
1237
+ function U(e) {
1238
+ return j(e).getComputedStyle(e);
1239
+ }
1240
+ const pt = Math.min, ge = Math.max, ze = Math.round;
1241
+ function Dt(e) {
1242
+ const t = U(e);
1243
+ let n = parseFloat(t.width), o = parseFloat(t.height);
1244
+ const s = e.offsetWidth, i = e.offsetHeight, r = ze(n) !== s || ze(o) !== i;
1245
+ return r && (n = s, o = i), { width: n, height: o, fallback: r };
1246
+ }
1247
+ function ae(e) {
1248
+ return Ht(e) ? (e.nodeName || "").toLowerCase() : "";
1249
+ }
1250
+ let Te;
1251
+ function Mt() {
1252
+ if (Te) return Te;
1253
+ const e = navigator.userAgentData;
1254
+ return e && Array.isArray(e.brands) ? (Te = e.brands.map((t) => t.brand + "/" + t.version).join(" "), Te) : navigator.userAgent;
1255
+ }
1256
+ function Y(e) {
1257
+ return e instanceof j(e).HTMLElement;
1258
+ }
1259
+ function ie(e) {
1260
+ return e instanceof j(e).Element;
1261
+ }
1262
+ function Ht(e) {
1263
+ return e instanceof j(e).Node;
1264
+ }
1265
+ function ft(e) {
1266
+ return typeof ShadowRoot > "u" ? !1 : e instanceof j(e).ShadowRoot || e instanceof ShadowRoot;
1267
+ }
1268
+ function De(e) {
1269
+ const { overflow: t, overflowX: n, overflowY: o, display: s } = U(e);
1270
+ return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !["inline", "contents"].includes(s);
1271
+ }
1272
+ function xo(e) {
1273
+ return ["table", "td", "th"].includes(ae(e));
1274
+ }
1275
+ function Ge(e) {
1276
+ const t = /firefox/i.test(Mt()), n = U(e), o = n.backdropFilter || n.WebkitBackdropFilter;
1277
+ return n.transform !== "none" || n.perspective !== "none" || !!o && o !== "none" || t && n.willChange === "filter" || t && !!n.filter && n.filter !== "none" || ["transform", "perspective"].some((s) => n.willChange.includes(s)) || ["paint", "layout", "strict", "content"].some((s) => {
1278
+ const i = n.contain;
1279
+ return i != null && i.includes(s);
1280
+ });
1281
+ }
1282
+ function Lt() {
1283
+ return !/^((?!chrome|android).)*safari/i.test(Mt());
1284
+ }
1285
+ function st(e) {
1286
+ return ["html", "body", "#document"].includes(ae(e));
1287
+ }
1288
+ function jt(e) {
1289
+ return ie(e) ? e : e.contextElement;
1290
+ }
1291
+ const Ft = { x: 1, y: 1 };
1292
+ function we(e) {
1293
+ const t = jt(e);
1294
+ if (!Y(t)) return Ft;
1295
+ const n = t.getBoundingClientRect(), { width: o, height: s, fallback: i } = Dt(t);
1296
+ let r = (i ? ze(n.width) : n.width) / o, a = (i ? ze(n.height) : n.height) / s;
1297
+ return r && Number.isFinite(r) || (r = 1), a && Number.isFinite(a) || (a = 1), { x: r, y: a };
1298
+ }
1299
+ function _e(e, t, n, o) {
1300
+ var s, i;
1301
+ t === void 0 && (t = !1), n === void 0 && (n = !1);
1302
+ const r = e.getBoundingClientRect(), a = jt(e);
1303
+ let d = Ft;
1304
+ t && (o ? ie(o) && (d = we(o)) : d = we(e));
1305
+ const l = a ? j(a) : window, c = !Lt() && n;
1306
+ let u = (r.left + (c && ((s = l.visualViewport) == null ? void 0 : s.offsetLeft) || 0)) / d.x, f = (r.top + (c && ((i = l.visualViewport) == null ? void 0 : i.offsetTop) || 0)) / d.y, p = r.width / d.x, h = r.height / d.y;
1307
+ if (a) {
1308
+ const w = j(a), g = o && ie(o) ? j(o) : o;
1309
+ let m = w.frameElement;
1310
+ for (; m && o && g !== w; ) {
1311
+ const v = we(m), b = m.getBoundingClientRect(), k = getComputedStyle(m);
1312
+ b.x += (m.clientLeft + parseFloat(k.paddingLeft)) * v.x, b.y += (m.clientTop + parseFloat(k.paddingTop)) * v.y, u *= v.x, f *= v.y, p *= v.x, h *= v.y, u += b.x, f += b.y, m = j(m).frameElement;
1313
+ }
1314
+ }
1315
+ return { width: p, height: h, top: f, right: u + p, bottom: f + h, left: u, x: u, y: f };
1316
+ }
1317
+ function re(e) {
1318
+ return ((Ht(e) ? e.ownerDocument : e.document) || window.document).documentElement;
1319
+ }
1320
+ function Me(e) {
1321
+ return ie(e) ? { scrollLeft: e.scrollLeft, scrollTop: e.scrollTop } : { scrollLeft: e.pageXOffset, scrollTop: e.pageYOffset };
1322
+ }
1323
+ function It(e) {
1324
+ return _e(re(e)).left + Me(e).scrollLeft;
1325
+ }
1326
+ function xe(e) {
1327
+ if (ae(e) === "html") return e;
1328
+ const t = e.assignedSlot || e.parentNode || ft(e) && e.host || re(e);
1329
+ return ft(t) ? t.host : t;
1330
+ }
1331
+ function Vt(e) {
1332
+ const t = xe(e);
1333
+ return st(t) ? t.ownerDocument.body : Y(t) && De(t) ? t : Vt(t);
1334
+ }
1335
+ function Be(e, t) {
1336
+ var n;
1337
+ t === void 0 && (t = []);
1338
+ const o = Vt(e), s = o === ((n = e.ownerDocument) == null ? void 0 : n.body), i = j(o);
1339
+ return s ? t.concat(i, i.visualViewport || [], De(o) ? o : []) : t.concat(o, Be(o));
1340
+ }
1341
+ function ht(e, t, n) {
1342
+ return t === "viewport" ? me(function(o, s) {
1343
+ const i = j(o), r = re(o), a = i.visualViewport;
1344
+ let d = r.clientWidth, l = r.clientHeight, c = 0, u = 0;
1345
+ if (a) {
1346
+ d = a.width, l = a.height;
1347
+ const f = Lt();
1348
+ (f || !f && s === "fixed") && (c = a.offsetLeft, u = a.offsetTop);
1349
+ }
1350
+ return { width: d, height: l, x: c, y: u };
1351
+ }(e, n)) : ie(t) ? me(function(o, s) {
1352
+ const i = _e(o, !0, s === "fixed"), r = i.top + o.clientTop, a = i.left + o.clientLeft, d = Y(o) ? we(o) : { x: 1, y: 1 };
1353
+ return { width: o.clientWidth * d.x, height: o.clientHeight * d.y, x: a * d.x, y: r * d.y };
1354
+ }(t, n)) : me(function(o) {
1355
+ const s = re(o), i = Me(o), r = o.ownerDocument.body, a = ge(s.scrollWidth, s.clientWidth, r.scrollWidth, r.clientWidth), d = ge(s.scrollHeight, s.clientHeight, r.scrollHeight, r.clientHeight);
1356
+ let l = -i.scrollLeft + It(o);
1357
+ const c = -i.scrollTop;
1358
+ return U(r).direction === "rtl" && (l += ge(s.clientWidth, r.clientWidth) - a), { width: a, height: d, x: l, y: c };
1359
+ }(re(e)));
1360
+ }
1361
+ function wt(e) {
1362
+ return Y(e) && U(e).position !== "fixed" ? e.offsetParent : null;
1363
+ }
1364
+ function mt(e) {
1365
+ const t = j(e);
1366
+ let n = wt(e);
1367
+ for (; n && xo(n) && U(n).position === "static"; ) n = wt(n);
1368
+ return n && (ae(n) === "html" || ae(n) === "body" && U(n).position === "static" && !Ge(n)) ? t : n || function(o) {
1369
+ let s = xe(o);
1370
+ for (; Y(s) && !st(s); ) {
1371
+ if (Ge(s)) return s;
1372
+ s = xe(s);
1373
+ }
1374
+ return null;
1375
+ }(e) || t;
1376
+ }
1377
+ function $o(e, t, n) {
1378
+ const o = Y(t), s = re(t), i = _e(e, !0, n === "fixed", t);
1379
+ let r = { scrollLeft: 0, scrollTop: 0 };
1380
+ const a = { x: 0, y: 0 };
1381
+ if (o || !o && n !== "fixed") if ((ae(t) !== "body" || De(s)) && (r = Me(t)), Y(t)) {
1382
+ const d = _e(t, !0);
1383
+ a.x = d.x + t.clientLeft, a.y = d.y + t.clientTop;
1384
+ } else s && (a.x = It(s));
1385
+ return { x: i.left + r.scrollLeft - a.x, y: i.top + r.scrollTop - a.y, width: i.width, height: i.height };
1386
+ }
1387
+ const So = { getClippingRect: function(e) {
1388
+ let { element: t, boundary: n, rootBoundary: o, strategy: s } = e;
1389
+ const i = n === "clippingAncestors" ? function(l, c) {
1390
+ const u = c.get(l);
1391
+ if (u) return u;
1392
+ let f = Be(l).filter((g) => ie(g) && ae(g) !== "body"), p = null;
1393
+ const h = U(l).position === "fixed";
1394
+ let w = h ? xe(l) : l;
1395
+ for (; ie(w) && !st(w); ) {
1396
+ const g = U(w), m = Ge(w);
1397
+ (h ? m || p : m || g.position !== "static" || !p || !["absolute", "fixed"].includes(p.position)) ? p = g : f = f.filter((v) => v !== w), w = xe(w);
1398
+ }
1399
+ return c.set(l, f), f;
1400
+ }(t, this._c) : [].concat(n), r = [...i, o], a = r[0], d = r.reduce((l, c) => {
1401
+ const u = ht(t, c, s);
1402
+ return l.top = ge(u.top, l.top), l.right = pt(u.right, l.right), l.bottom = pt(u.bottom, l.bottom), l.left = ge(u.left, l.left), l;
1403
+ }, ht(t, a, s));
1404
+ return { width: d.right - d.left, height: d.bottom - d.top, x: d.left, y: d.top };
1405
+ }, convertOffsetParentRelativeRectToViewportRelativeRect: function(e) {
1406
+ let { rect: t, offsetParent: n, strategy: o } = e;
1407
+ const s = Y(n), i = re(n);
1408
+ if (n === i) return t;
1409
+ let r = { scrollLeft: 0, scrollTop: 0 }, a = { x: 1, y: 1 };
1410
+ const d = { x: 0, y: 0 };
1411
+ if ((s || !s && o !== "fixed") && ((ae(n) !== "body" || De(i)) && (r = Me(n)), Y(n))) {
1412
+ const l = _e(n);
1413
+ a = we(n), d.x = l.x + n.clientLeft, d.y = l.y + n.clientTop;
1414
+ }
1415
+ return { width: t.width * a.x, height: t.height * a.y, x: t.x * a.x - r.scrollLeft * a.x + d.x, y: t.y * a.y - r.scrollTop * a.y + d.y };
1416
+ }, isElement: ie, getDimensions: function(e) {
1417
+ return Y(e) ? Dt(e) : e.getBoundingClientRect();
1418
+ }, getOffsetParent: mt, getDocumentElement: re, getScale: we, async getElementRects(e) {
1419
+ let { reference: t, floating: n, strategy: o } = e;
1420
+ const s = this.getOffsetParent || mt, i = this.getDimensions;
1421
+ return { reference: $o(t, await s(n), o), floating: { x: 0, y: 0, ...await i(n) } };
1422
+ }, getClientRects: (e) => Array.from(e.getClientRects()), isRTL: (e) => U(e).direction === "rtl" }, To = (e, t, n) => {
1423
+ const o = /* @__PURE__ */ new Map(), s = { platform: So, ...n }, i = { ...s.platform, _c: o };
1424
+ return fo(e, t, { ...s, platform: i });
1425
+ }, ce = {
1426
+ // Disable popper components
1427
+ disabled: !1,
1428
+ // Default position offset along main axis (px)
1429
+ distance: 5,
1430
+ // Default position offset along cross axis (px)
1431
+ skidding: 0,
1432
+ // Default container where the tooltip will be appended
1433
+ container: "body",
1434
+ // Element used to compute position and size boundaries
1435
+ boundary: void 0,
1436
+ // Skip delay & CSS transitions when another popper is shown, so that the popper appear to instanly move to the new position.
1437
+ instantMove: !1,
1438
+ // Auto destroy tooltip DOM nodes (ms)
1439
+ disposeTimeout: 150,
1440
+ // Triggers on the popper itself
1441
+ popperTriggers: [],
1442
+ // Positioning strategy
1443
+ strategy: "absolute",
1444
+ // Prevent overflow
1445
+ preventOverflow: !0,
1446
+ // Flip to the opposite placement if needed
1447
+ flip: !0,
1448
+ // Shift on the cross axis to prevent the popper from overflowing
1449
+ shift: !0,
1450
+ // Overflow padding (px)
1451
+ overflowPadding: 0,
1452
+ // Arrow padding (px)
1453
+ arrowPadding: 0,
1454
+ // Compute arrow overflow (useful to hide it)
1455
+ arrowOverflow: !0,
1456
+ /**
1457
+ * By default, compute autohide on 'click'.
1458
+ */
1459
+ autoHideOnMousedown: !1,
1460
+ // Themes
1461
+ themes: {
1462
+ tooltip: {
1463
+ // Default tooltip placement relative to target element
1464
+ placement: "top",
1465
+ // Default events that trigger the tooltip
1466
+ triggers: ["hover", "focus", "touch"],
1467
+ // Close tooltip on click on tooltip target
1468
+ hideTriggers: (e) => [...e, "click"],
1469
+ // Delay (ms)
1470
+ delay: {
1471
+ show: 200,
1472
+ hide: 0
1473
+ },
1474
+ // Update popper on content resize
1475
+ handleResize: !1,
1476
+ // Enable HTML content in directive
1477
+ html: !1,
1478
+ // Displayed when tooltip content is loading
1479
+ loadingContent: "..."
1480
+ },
1481
+ dropdown: {
1482
+ // Default dropdown placement relative to target element
1483
+ placement: "bottom",
1484
+ // Default events that trigger the dropdown
1485
+ triggers: ["click"],
1486
+ // Delay (ms)
1487
+ delay: 0,
1488
+ // Update popper on content resize
1489
+ handleResize: !0,
1490
+ // Hide on clock outside
1491
+ autoHide: !0
1492
+ },
1493
+ menu: {
1494
+ $extend: "dropdown",
1495
+ triggers: ["hover", "focus"],
1496
+ popperTriggers: ["hover"],
1497
+ delay: {
1498
+ show: 0,
1499
+ hide: 400
1500
+ }
1501
+ }
1502
+ }
1503
+ };
1504
+ function Ue(e, t) {
1505
+ let n = ce.themes[e] || {}, o;
1506
+ do
1507
+ o = n[t], typeof o > "u" ? n.$extend ? n = ce.themes[n.$extend] || {} : (n = null, o = ce[t]) : n = null;
1508
+ while (n);
1509
+ return o;
1510
+ }
1511
+ function Co(e) {
1512
+ const t = [e];
1513
+ let n = ce.themes[e] || {};
1514
+ do
1515
+ n.$extend && !n.$resetCss ? (t.push(n.$extend), n = ce.themes[n.$extend] || {}) : n = null;
1516
+ while (n);
1517
+ return t.map((o) => `v-popper--theme-${o}`);
1518
+ }
1519
+ function gt(e) {
1520
+ const t = [e];
1521
+ let n = ce.themes[e] || {};
1522
+ do
1523
+ n.$extend ? (t.push(n.$extend), n = ce.themes[n.$extend] || {}) : n = null;
1524
+ while (n);
1525
+ return t;
1526
+ }
1527
+ let $e = !1;
1528
+ if (typeof window < "u") {
1529
+ $e = !1;
1530
+ try {
1531
+ const e = Object.defineProperty({}, "passive", {
1532
+ get() {
1533
+ $e = !0;
1534
+ }
1535
+ });
1536
+ window.addEventListener("test", null, e);
1537
+ } catch {
1538
+ }
1539
+ }
1540
+ let Wt = !1;
1541
+ typeof window < "u" && typeof navigator < "u" && (Wt = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream);
1542
+ const ko = ["auto", "top", "bottom", "left", "right"].reduce((e, t) => e.concat([
1543
+ t,
1544
+ `${t}-start`,
1545
+ `${t}-end`
1546
+ ]), []), yt = {
1547
+ hover: "mouseenter",
1548
+ focus: "focus",
1549
+ click: "click",
1550
+ touch: "touchstart",
1551
+ pointer: "pointerdown"
1552
+ }, vt = {
1553
+ hover: "mouseleave",
1554
+ focus: "blur",
1555
+ click: "click",
1556
+ touch: "touchend",
1557
+ pointer: "pointerup"
1558
+ };
1559
+ function bt(e, t) {
1560
+ const n = e.indexOf(t);
1561
+ n !== -1 && e.splice(n, 1);
1562
+ }
1563
+ function Fe() {
1564
+ return new Promise((e) => requestAnimationFrame(() => {
1565
+ requestAnimationFrame(e);
1566
+ }));
1567
+ }
1568
+ const I = [];
1569
+ let le = null;
1570
+ const _t = {};
1571
+ function xt(e) {
1572
+ let t = _t[e];
1573
+ return t || (t = _t[e] = []), t;
1574
+ }
1575
+ let Ye = function() {
1576
+ };
1577
+ typeof window < "u" && (Ye = window.Element);
1578
+ function x(e) {
1579
+ return function(t) {
1580
+ return Ue(t.theme, e);
1581
+ };
1582
+ }
1583
+ const Ie = "__floating-vue__popper", qt = () => Z({
1584
+ name: "VPopper",
1585
+ provide() {
1586
+ return {
1587
+ [Ie]: {
1588
+ parentPopper: this
1589
+ }
1590
+ };
1591
+ },
1592
+ inject: {
1593
+ [Ie]: { default: null }
1594
+ },
1595
+ props: {
1596
+ theme: {
1597
+ type: String,
1598
+ required: !0
1599
+ },
1600
+ targetNodes: {
1601
+ type: Function,
1602
+ required: !0
1603
+ },
1604
+ referenceNode: {
1605
+ type: Function,
1606
+ default: null
1607
+ },
1608
+ popperNode: {
1609
+ type: Function,
1610
+ required: !0
1611
+ },
1612
+ shown: {
1613
+ type: Boolean,
1614
+ default: !1
1615
+ },
1616
+ showGroup: {
1617
+ type: String,
1618
+ default: null
1619
+ },
1620
+ // eslint-disable-next-line vue/require-prop-types
1621
+ ariaId: {
1622
+ default: null
1623
+ },
1624
+ disabled: {
1625
+ type: Boolean,
1626
+ default: x("disabled")
1627
+ },
1628
+ positioningDisabled: {
1629
+ type: Boolean,
1630
+ default: x("positioningDisabled")
1631
+ },
1632
+ placement: {
1633
+ type: String,
1634
+ default: x("placement"),
1635
+ validator: (e) => ko.includes(e)
1636
+ },
1637
+ delay: {
1638
+ type: [String, Number, Object],
1639
+ default: x("delay")
1640
+ },
1641
+ distance: {
1642
+ type: [Number, String],
1643
+ default: x("distance")
1644
+ },
1645
+ skidding: {
1646
+ type: [Number, String],
1647
+ default: x("skidding")
1648
+ },
1649
+ triggers: {
1650
+ type: Array,
1651
+ default: x("triggers")
1652
+ },
1653
+ showTriggers: {
1654
+ type: [Array, Function],
1655
+ default: x("showTriggers")
1656
+ },
1657
+ hideTriggers: {
1658
+ type: [Array, Function],
1659
+ default: x("hideTriggers")
1660
+ },
1661
+ popperTriggers: {
1662
+ type: Array,
1663
+ default: x("popperTriggers")
1664
+ },
1665
+ popperShowTriggers: {
1666
+ type: [Array, Function],
1667
+ default: x("popperShowTriggers")
1668
+ },
1669
+ popperHideTriggers: {
1670
+ type: [Array, Function],
1671
+ default: x("popperHideTriggers")
1672
+ },
1673
+ container: {
1674
+ type: [String, Object, Ye, Boolean],
1675
+ default: x("container")
1676
+ },
1677
+ boundary: {
1678
+ type: [String, Ye],
1679
+ default: x("boundary")
1680
+ },
1681
+ strategy: {
1682
+ type: String,
1683
+ validator: (e) => ["absolute", "fixed"].includes(e),
1684
+ default: x("strategy")
1685
+ },
1686
+ autoHide: {
1687
+ type: [Boolean, Function],
1688
+ default: x("autoHide")
1689
+ },
1690
+ handleResize: {
1691
+ type: Boolean,
1692
+ default: x("handleResize")
1693
+ },
1694
+ instantMove: {
1695
+ type: Boolean,
1696
+ default: x("instantMove")
1697
+ },
1698
+ eagerMount: {
1699
+ type: Boolean,
1700
+ default: x("eagerMount")
1701
+ },
1702
+ popperClass: {
1703
+ type: [String, Array, Object],
1704
+ default: x("popperClass")
1705
+ },
1706
+ computeTransformOrigin: {
1707
+ type: Boolean,
1708
+ default: x("computeTransformOrigin")
1709
+ },
1710
+ /**
1711
+ * @deprecated
1712
+ */
1713
+ autoMinSize: {
1714
+ type: Boolean,
1715
+ default: x("autoMinSize")
1716
+ },
1717
+ autoSize: {
1718
+ type: [Boolean, String],
1719
+ default: x("autoSize")
1720
+ },
1721
+ /**
1722
+ * @deprecated
1723
+ */
1724
+ autoMaxSize: {
1725
+ type: Boolean,
1726
+ default: x("autoMaxSize")
1727
+ },
1728
+ autoBoundaryMaxSize: {
1729
+ type: Boolean,
1730
+ default: x("autoBoundaryMaxSize")
1731
+ },
1732
+ preventOverflow: {
1733
+ type: Boolean,
1734
+ default: x("preventOverflow")
1735
+ },
1736
+ overflowPadding: {
1737
+ type: [Number, String],
1738
+ default: x("overflowPadding")
1739
+ },
1740
+ arrowPadding: {
1741
+ type: [Number, String],
1742
+ default: x("arrowPadding")
1743
+ },
1744
+ arrowOverflow: {
1745
+ type: Boolean,
1746
+ default: x("arrowOverflow")
1747
+ },
1748
+ flip: {
1749
+ type: Boolean,
1750
+ default: x("flip")
1751
+ },
1752
+ shift: {
1753
+ type: Boolean,
1754
+ default: x("shift")
1755
+ },
1756
+ shiftCrossAxis: {
1757
+ type: Boolean,
1758
+ default: x("shiftCrossAxis")
1759
+ },
1760
+ noAutoFocus: {
1761
+ type: Boolean,
1762
+ default: x("noAutoFocus")
1763
+ },
1764
+ disposeTimeout: {
1765
+ type: Number,
1766
+ default: x("disposeTimeout")
1767
+ }
1768
+ },
1769
+ emits: {
1770
+ show: () => !0,
1771
+ hide: () => !0,
1772
+ "update:shown": (e) => !0,
1773
+ "apply-show": () => !0,
1774
+ "apply-hide": () => !0,
1775
+ "close-group": () => !0,
1776
+ "close-directive": () => !0,
1777
+ "auto-hide": () => !0,
1778
+ resize: () => !0
1779
+ },
1780
+ data() {
1781
+ return {
1782
+ isShown: !1,
1783
+ isMounted: !1,
1784
+ skipTransition: !1,
1785
+ classes: {
1786
+ showFrom: !1,
1787
+ showTo: !1,
1788
+ hideFrom: !1,
1789
+ hideTo: !0
1790
+ },
1791
+ result: {
1792
+ x: 0,
1793
+ y: 0,
1794
+ placement: "",
1795
+ strategy: this.strategy,
1796
+ arrow: {
1797
+ x: 0,
1798
+ y: 0,
1799
+ centerOffset: 0
1800
+ },
1801
+ transformOrigin: null
1802
+ },
1803
+ randomId: `popper_${[Math.random(), Date.now()].map((e) => e.toString(36).substring(2, 10)).join("_")}`,
1804
+ shownChildren: /* @__PURE__ */ new Set(),
1805
+ lastAutoHide: !0,
1806
+ pendingHide: !1,
1807
+ containsGlobalTarget: !1,
1808
+ isDisposed: !0,
1809
+ mouseDownContains: !1
1810
+ };
1811
+ },
1812
+ computed: {
1813
+ popperId() {
1814
+ return this.ariaId != null ? this.ariaId : this.randomId;
1815
+ },
1816
+ shouldMountContent() {
1817
+ return this.eagerMount || this.isMounted;
1818
+ },
1819
+ slotData() {
1820
+ return {
1821
+ popperId: this.popperId,
1822
+ isShown: this.isShown,
1823
+ shouldMountContent: this.shouldMountContent,
1824
+ skipTransition: this.skipTransition,
1825
+ autoHide: typeof this.autoHide == "function" ? this.lastAutoHide : this.autoHide,
1826
+ show: this.show,
1827
+ hide: this.hide,
1828
+ handleResize: this.handleResize,
1829
+ onResize: this.onResize,
1830
+ classes: {
1831
+ ...this.classes,
1832
+ popperClass: this.popperClass
1833
+ },
1834
+ result: this.positioningDisabled ? null : this.result,
1835
+ attrs: this.$attrs
1836
+ };
1837
+ },
1838
+ parentPopper() {
1839
+ var e;
1840
+ return (e = this[Ie]) == null ? void 0 : e.parentPopper;
1841
+ },
1842
+ hasPopperShowTriggerHover() {
1843
+ var e, t;
1844
+ return ((e = this.popperTriggers) == null ? void 0 : e.includes("hover")) || ((t = this.popperShowTriggers) == null ? void 0 : t.includes("hover"));
1845
+ }
1846
+ },
1847
+ watch: {
1848
+ shown: "$_autoShowHide",
1849
+ disabled(e) {
1850
+ e ? this.dispose() : this.init();
1851
+ },
1852
+ async container() {
1853
+ this.isShown && (this.$_ensureTeleport(), await this.$_computePosition());
1854
+ },
1855
+ triggers: {
1856
+ handler: "$_refreshListeners",
1857
+ deep: !0
1858
+ },
1859
+ positioningDisabled: "$_refreshListeners",
1860
+ ...[
1861
+ "placement",
1862
+ "distance",
1863
+ "skidding",
1864
+ "boundary",
1865
+ "strategy",
1866
+ "overflowPadding",
1867
+ "arrowPadding",
1868
+ "preventOverflow",
1869
+ "shift",
1870
+ "shiftCrossAxis",
1871
+ "flip"
1872
+ ].reduce((e, t) => (e[t] = "$_computePosition", e), {})
1873
+ },
1874
+ created() {
1875
+ 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.");
1876
+ },
1877
+ mounted() {
1878
+ this.init(), this.$_detachPopperNode();
1879
+ },
1880
+ activated() {
1881
+ this.$_autoShowHide();
1882
+ },
1883
+ deactivated() {
1884
+ this.hide();
1885
+ },
1886
+ beforeUnmount() {
1887
+ this.dispose();
1888
+ },
1889
+ methods: {
1890
+ show({ event: e = null, skipDelay: t = !1, force: n = !1 } = {}) {
1891
+ var o, s;
1892
+ (o = this.parentPopper) != null && o.lockedChild && this.parentPopper.lockedChild !== this || (this.pendingHide = !1, (n || !this.disabled) && (((s = this.parentPopper) == null ? void 0 : s.lockedChild) === this && (this.parentPopper.lockedChild = null), this.$_scheduleShow(e, t), this.$emit("show"), this.$_showFrameLocked = !0, requestAnimationFrame(() => {
1893
+ this.$_showFrameLocked = !1;
1894
+ })), this.$emit("update:shown", !0));
1895
+ },
1896
+ hide({ event: e = null, skipDelay: t = !1 } = {}) {
1897
+ var n;
1898
+ if (!this.$_hideInProgress) {
1899
+ if (this.shownChildren.size > 0) {
1900
+ this.pendingHide = !0;
1901
+ return;
1902
+ }
1903
+ if (this.hasPopperShowTriggerHover && this.$_isAimingPopper()) {
1904
+ this.parentPopper && (this.parentPopper.lockedChild = this, clearTimeout(this.parentPopper.lockedChildTimer), this.parentPopper.lockedChildTimer = setTimeout(() => {
1905
+ this.parentPopper.lockedChild === this && (this.parentPopper.lockedChild.hide({ skipDelay: t }), this.parentPopper.lockedChild = null);
1906
+ }, 1e3));
1907
+ return;
1908
+ }
1909
+ ((n = this.parentPopper) == null ? void 0 : n.lockedChild) === this && (this.parentPopper.lockedChild = null), this.pendingHide = !1, this.$_scheduleHide(e, t), this.$emit("hide"), this.$emit("update:shown", !1);
1910
+ }
1911
+ },
1912
+ init() {
1913
+ var e;
1914
+ 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());
1915
+ },
1916
+ dispose() {
1917
+ 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"));
1918
+ },
1919
+ async onResize() {
1920
+ this.isShown && (await this.$_computePosition(), this.$emit("resize"));
1921
+ },
1922
+ async $_computePosition() {
1923
+ if (this.isDisposed || this.positioningDisabled)
1924
+ return;
1925
+ const e = {
1926
+ strategy: this.strategy,
1927
+ middleware: []
1928
+ };
1929
+ (this.distance || this.skidding) && e.middleware.push(vo({
1930
+ mainAxis: this.distance,
1931
+ crossAxis: this.skidding
1932
+ }));
1933
+ const t = this.placement.startsWith("auto");
1934
+ if (t ? e.middleware.push(mo({
1935
+ alignment: this.placement.split("-")[1] ?? ""
1936
+ })) : e.placement = this.placement, this.preventOverflow && (this.shift && e.middleware.push(bo({
1937
+ padding: this.overflowPadding,
1938
+ boundary: this.boundary,
1939
+ crossAxis: this.shiftCrossAxis
1940
+ })), !t && this.flip && e.middleware.push(go({
1941
+ padding: this.overflowPadding,
1942
+ boundary: this.boundary
1943
+ }))), e.middleware.push(ho({
1944
+ element: this.$_arrowNode,
1945
+ padding: this.arrowPadding
1946
+ })), this.arrowOverflow && e.middleware.push({
1947
+ name: "arrowOverflow",
1948
+ fn: ({ placement: o, rects: s, middlewareData: i }) => {
1949
+ let r;
1950
+ const { centerOffset: a } = i.arrow;
1951
+ return o.startsWith("top") || o.startsWith("bottom") ? r = Math.abs(a) > s.reference.width / 2 : r = Math.abs(a) > s.reference.height / 2, {
1952
+ data: {
1953
+ overflow: r
1954
+ }
1955
+ };
1956
+ }
1957
+ }), this.autoMinSize || this.autoSize) {
1958
+ const o = this.autoSize ? this.autoSize : this.autoMinSize ? "min" : null;
1959
+ e.middleware.push({
1960
+ name: "autoSize",
1961
+ fn: ({ rects: s, placement: i, middlewareData: r }) => {
1962
+ var a;
1963
+ if ((a = r.autoSize) != null && a.skip)
1964
+ return {};
1965
+ let d, l;
1966
+ return i.startsWith("top") || i.startsWith("bottom") ? d = s.reference.width : l = s.reference.height, this.$_innerNode.style[o === "min" ? "minWidth" : o === "max" ? "maxWidth" : "width"] = d != null ? `${d}px` : null, this.$_innerNode.style[o === "min" ? "minHeight" : o === "max" ? "maxHeight" : "height"] = l != null ? `${l}px` : null, {
1967
+ data: {
1968
+ skip: !0
1969
+ },
1970
+ reset: {
1971
+ rects: !0
1972
+ }
1973
+ };
1974
+ }
1975
+ });
1976
+ }
1977
+ (this.autoMaxSize || this.autoBoundaryMaxSize) && (this.$_innerNode.style.maxWidth = null, this.$_innerNode.style.maxHeight = null, e.middleware.push(_o({
1978
+ boundary: this.boundary,
1979
+ padding: this.overflowPadding,
1980
+ apply: ({ availableWidth: o, availableHeight: s }) => {
1981
+ this.$_innerNode.style.maxWidth = o != null ? `${o}px` : null, this.$_innerNode.style.maxHeight = s != null ? `${s}px` : null;
1982
+ }
1983
+ })));
1984
+ const n = await To(this.$_referenceNode, this.$_popperNode, e);
1985
+ Object.assign(this.result, {
1986
+ x: n.x,
1987
+ y: n.y,
1988
+ placement: n.placement,
1989
+ strategy: n.strategy,
1990
+ arrow: {
1991
+ ...n.middlewareData.arrow,
1992
+ ...n.middlewareData.arrowOverflow
1993
+ }
1994
+ });
1995
+ },
1996
+ $_scheduleShow(e, t = !1) {
1997
+ if (this.$_updateParentShownChildren(!0), this.$_hideInProgress = !1, clearTimeout(this.$_scheduleTimer), le && this.instantMove && le.instantMove && le !== this.parentPopper) {
1998
+ le.$_applyHide(!0), this.$_applyShow(!0);
1999
+ return;
2000
+ }
2001
+ t ? this.$_applyShow() : this.$_scheduleTimer = setTimeout(this.$_applyShow.bind(this), this.$_computeDelay("show"));
2002
+ },
2003
+ $_scheduleHide(e, t = !1) {
2004
+ if (this.shownChildren.size > 0) {
2005
+ this.pendingHide = !0;
2006
+ return;
2007
+ }
2008
+ this.$_updateParentShownChildren(!1), this.$_hideInProgress = !0, clearTimeout(this.$_scheduleTimer), this.isShown && (le = this), t ? this.$_applyHide() : this.$_scheduleTimer = setTimeout(this.$_applyHide.bind(this), this.$_computeDelay("hide"));
2009
+ },
2010
+ $_computeDelay(e) {
2011
+ const t = this.delay;
2012
+ return parseInt(t && t[e] || t || 0);
2013
+ },
2014
+ async $_applyShow(e = !1) {
2015
+ clearTimeout(this.$_disposeTimer), clearTimeout(this.$_scheduleTimer), this.skipTransition = e, !this.isShown && (this.$_ensureTeleport(), await Fe(), await this.$_computePosition(), await this.$_applyShowEffect(), this.positioningDisabled || this.$_registerEventListeners([
2016
+ ...Be(this.$_referenceNode),
2017
+ ...Be(this.$_popperNode)
2018
+ ], "scroll", () => {
2019
+ this.$_computePosition();
2020
+ }));
2021
+ },
2022
+ async $_applyShowEffect() {
2023
+ if (this.$_hideInProgress)
2024
+ return;
2025
+ if (this.computeTransformOrigin) {
2026
+ const t = this.$_referenceNode.getBoundingClientRect(), n = this.$_popperNode.querySelector(".v-popper__wrapper"), o = n.parentNode.getBoundingClientRect(), s = t.x + t.width / 2 - (o.left + n.offsetLeft), i = t.y + t.height / 2 - (o.top + n.offsetTop);
2027
+ this.result.transformOrigin = `${s}px ${i}px`;
2028
+ }
2029
+ this.isShown = !0, this.$_applyAttrsToTarget({
2030
+ "aria-describedby": this.popperId,
2031
+ "data-popper-shown": ""
2032
+ });
2033
+ const e = this.showGroup;
2034
+ if (e) {
2035
+ let t;
2036
+ for (let n = 0; n < I.length; n++)
2037
+ t = I[n], t.showGroup !== e && (t.hide(), t.$emit("close-group"));
2038
+ }
2039
+ I.push(this), document.body.classList.add("v-popper--some-open");
2040
+ for (const t of gt(this.theme))
2041
+ xt(t).push(this), document.body.classList.add(`v-popper--some-open--${t}`);
2042
+ this.$emit("apply-show"), this.classes.showFrom = !0, this.classes.showTo = !1, this.classes.hideFrom = !1, this.classes.hideTo = !1, await Fe(), this.classes.showFrom = !1, this.classes.showTo = !0, this.noAutoFocus || this.$_popperNode.focus();
2043
+ },
2044
+ async $_applyHide(e = !1) {
2045
+ if (this.shownChildren.size > 0) {
2046
+ this.pendingHide = !0, this.$_hideInProgress = !1;
2047
+ return;
2048
+ }
2049
+ if (clearTimeout(this.$_scheduleTimer), !this.isShown)
2050
+ return;
2051
+ this.skipTransition = e, bt(I, this), I.length === 0 && document.body.classList.remove("v-popper--some-open");
2052
+ for (const n of gt(this.theme)) {
2053
+ const o = xt(n);
2054
+ bt(o, this), o.length === 0 && document.body.classList.remove(`v-popper--some-open--${n}`);
2055
+ }
2056
+ le === this && (le = null), this.isShown = !1, this.$_applyAttrsToTarget({
2057
+ "aria-describedby": void 0,
2058
+ "data-popper-shown": void 0
2059
+ }), clearTimeout(this.$_disposeTimer);
2060
+ const t = this.disposeTimeout;
2061
+ t !== null && (this.$_disposeTimer = setTimeout(() => {
2062
+ this.$_popperNode && (this.$_detachPopperNode(), this.isMounted = !1);
2063
+ }, t)), this.$_removeEventListeners("scroll"), this.$emit("apply-hide"), this.classes.showFrom = !1, this.classes.showTo = !1, this.classes.hideFrom = !0, this.classes.hideTo = !1, await Fe(), this.classes.hideFrom = !1, this.classes.hideTo = !0;
2064
+ },
2065
+ $_autoShowHide() {
2066
+ this.shown ? this.show() : this.hide();
2067
+ },
2068
+ $_ensureTeleport() {
2069
+ if (this.isDisposed)
2070
+ return;
2071
+ let e = this.container;
2072
+ if (typeof e == "string" ? e = window.document.querySelector(e) : e === !1 && (e = this.$_targetNodes[0].parentNode), !e)
2073
+ throw new Error("No container for popover: " + this.container);
2074
+ e.appendChild(this.$_popperNode), this.isMounted = !0;
2075
+ },
2076
+ $_addEventListeners() {
2077
+ const e = (n) => {
2078
+ this.isShown && !this.$_hideInProgress || (n.usedByTooltip = !0, !this.$_preventShow && this.show({ event: n }));
2079
+ };
2080
+ this.$_registerTriggerListeners(this.$_targetNodes, yt, this.triggers, this.showTriggers, e), this.$_registerTriggerListeners([this.$_popperNode], yt, this.popperTriggers, this.popperShowTriggers, e);
2081
+ const t = (n) => {
2082
+ n.usedByTooltip || this.hide({ event: n });
2083
+ };
2084
+ this.$_registerTriggerListeners(this.$_targetNodes, vt, this.triggers, this.hideTriggers, t), this.$_registerTriggerListeners([this.$_popperNode], vt, this.popperTriggers, this.popperHideTriggers, t);
2085
+ },
2086
+ $_registerEventListeners(e, t, n) {
2087
+ this.$_events.push({ targetNodes: e, eventType: t, handler: n }), e.forEach((o) => o.addEventListener(t, n, $e ? {
2088
+ passive: !0
2089
+ } : void 0));
2090
+ },
2091
+ $_registerTriggerListeners(e, t, n, o, s) {
2092
+ let i = n;
2093
+ o != null && (i = typeof o == "function" ? o(i) : o), i.forEach((r) => {
2094
+ const a = t[r];
2095
+ a && this.$_registerEventListeners(e, a, s);
2096
+ });
2097
+ },
2098
+ $_removeEventListeners(e) {
2099
+ const t = [];
2100
+ this.$_events.forEach((n) => {
2101
+ const { targetNodes: o, eventType: s, handler: i } = n;
2102
+ !e || e === s ? o.forEach((r) => r.removeEventListener(s, i)) : t.push(n);
2103
+ }), this.$_events = t;
2104
+ },
2105
+ $_refreshListeners() {
2106
+ this.isDisposed || (this.$_removeEventListeners(), this.$_addEventListeners());
2107
+ },
2108
+ $_handleGlobalClose(e, t = !1) {
2109
+ this.$_showFrameLocked || (this.hide({ event: e }), e.closePopover ? this.$emit("close-directive") : this.$emit("auto-hide"), t && (this.$_preventShow = !0, setTimeout(() => {
2110
+ this.$_preventShow = !1;
2111
+ }, 300)));
2112
+ },
2113
+ $_detachPopperNode() {
2114
+ this.$_popperNode.parentNode && this.$_popperNode.parentNode.removeChild(this.$_popperNode);
2115
+ },
2116
+ $_swapTargetAttrs(e, t) {
2117
+ for (const n of this.$_targetNodes) {
2118
+ const o = n.getAttribute(e);
2119
+ o && (n.removeAttribute(e), n.setAttribute(t, o));
2120
+ }
2121
+ },
2122
+ $_applyAttrsToTarget(e) {
2123
+ for (const t of this.$_targetNodes)
2124
+ for (const n in e) {
2125
+ const o = e[n];
2126
+ o == null ? t.removeAttribute(n) : t.setAttribute(n, o);
2127
+ }
2128
+ },
2129
+ $_updateParentShownChildren(e) {
2130
+ let t = this.parentPopper;
2131
+ for (; t; )
2132
+ e ? t.shownChildren.add(this.randomId) : (t.shownChildren.delete(this.randomId), t.pendingHide && t.hide()), t = t.parentPopper;
2133
+ },
2134
+ $_isAimingPopper() {
2135
+ const e = this.$_referenceNode.getBoundingClientRect();
2136
+ if (ye >= e.left && ye <= e.right && ve >= e.top && ve <= e.bottom) {
2137
+ const t = this.$_popperNode.getBoundingClientRect(), n = ye - oe, o = ve - se, s = t.left + t.width / 2 - oe + (t.top + t.height / 2) - se + t.width + t.height, i = oe + n * s, r = se + o * s;
2138
+ return Ce(oe, se, i, r, t.left, t.top, t.left, t.bottom) || // Left edge
2139
+ Ce(oe, se, i, r, t.left, t.top, t.right, t.top) || // Top edge
2140
+ Ce(oe, se, i, r, t.right, t.top, t.right, t.bottom) || // Right edge
2141
+ Ce(oe, se, i, r, t.left, t.bottom, t.right, t.bottom);
2142
+ }
2143
+ return !1;
2144
+ }
2145
+ },
2146
+ render() {
2147
+ return this.$slots.default(this.slotData);
2148
+ }
2149
+ });
2150
+ if (typeof document < "u" && typeof window < "u") {
2151
+ if (Wt) {
2152
+ const e = $e ? {
2153
+ passive: !0,
2154
+ capture: !0
2155
+ } : !0;
2156
+ document.addEventListener("touchstart", (t) => $t(t), e), document.addEventListener("touchend", (t) => St(t, !0), e);
2157
+ } else
2158
+ window.addEventListener("mousedown", (e) => $t(e), !0), window.addEventListener("click", (e) => St(e, !1), !0);
2159
+ window.addEventListener("resize", Oo);
2160
+ }
2161
+ function $t(e, t) {
2162
+ for (let n = 0; n < I.length; n++) {
2163
+ const o = I[n];
2164
+ try {
2165
+ o.mouseDownContains = o.popperNode().contains(e.target);
2166
+ } catch {
2167
+ }
2168
+ }
2169
+ }
2170
+ function St(e, t) {
2171
+ Po(e, t);
2172
+ }
2173
+ function Po(e, t) {
2174
+ const n = {};
2175
+ for (let o = I.length - 1; o >= 0; o--) {
2176
+ const s = I[o];
2177
+ try {
2178
+ const i = s.containsGlobalTarget = s.mouseDownContains || s.popperNode().contains(e.target);
2179
+ s.pendingHide = !1, requestAnimationFrame(() => {
2180
+ if (s.pendingHide = !1, !n[s.randomId] && Tt(s, i, e)) {
2181
+ if (s.$_handleGlobalClose(e, t), !e.closeAllPopover && e.closePopover && i) {
2182
+ let a = s.parentPopper;
2183
+ for (; a; )
2184
+ n[a.randomId] = !0, a = a.parentPopper;
2185
+ return;
2186
+ }
2187
+ let r = s.parentPopper;
2188
+ for (; r && Tt(r, r.containsGlobalTarget, e); )
2189
+ r.$_handleGlobalClose(e, t), r = r.parentPopper;
2190
+ }
2191
+ });
2192
+ } catch {
2193
+ }
2194
+ }
2195
+ }
2196
+ function Tt(e, t, n) {
2197
+ return n.closeAllPopover || n.closePopover && t || Ao(e, n) && !t;
2198
+ }
2199
+ function Ao(e, t) {
2200
+ if (typeof e.autoHide == "function") {
2201
+ const n = e.autoHide(t);
2202
+ return e.lastAutoHide = n, n;
2203
+ }
2204
+ return e.autoHide;
2205
+ }
2206
+ function Oo() {
2207
+ for (let e = 0; e < I.length; e++)
2208
+ I[e].$_computePosition();
2209
+ }
2210
+ let oe = 0, se = 0, ye = 0, ve = 0;
2211
+ typeof window < "u" && window.addEventListener("mousemove", (e) => {
2212
+ oe = ye, se = ve, ye = e.clientX, ve = e.clientY;
2213
+ }, $e ? {
2214
+ passive: !0
2215
+ } : void 0);
2216
+ function Ce(e, t, n, o, s, i, r, a) {
2217
+ const d = ((r - s) * (t - i) - (a - i) * (e - s)) / ((a - i) * (n - e) - (r - s) * (o - t)), l = ((n - e) * (t - i) - (o - t) * (e - s)) / ((a - i) * (n - e) - (r - s) * (o - t));
2218
+ return d >= 0 && d <= 1 && l >= 0 && l <= 1;
2219
+ }
2220
+ const No = {
2221
+ extends: qt()
2222
+ }, it = (e, t) => {
2223
+ const n = e.__vccOpts || e;
2224
+ for (const [o, s] of t)
2225
+ n[o] = s;
2226
+ return n;
2227
+ };
2228
+ function zo(e, t, n, o, s, i) {
2229
+ return _(), C("div", {
2230
+ ref: "reference",
2231
+ class: A(["v-popper", {
2232
+ "v-popper--shown": e.slotData.isShown
2233
+ }])
2234
+ }, [
2235
+ D(e.$slots, "default", on(sn(e.slotData)))
2236
+ ], 2);
2237
+ }
2238
+ const Bo = /* @__PURE__ */ it(No, [["render", zo]]);
2239
+ function Ro() {
2240
+ var e = window.navigator.userAgent, t = e.indexOf("MSIE ");
2241
+ if (t > 0)
2242
+ return parseInt(e.substring(t + 5, e.indexOf(".", t)), 10);
2243
+ var n = e.indexOf("Trident/");
2244
+ if (n > 0) {
2245
+ var o = e.indexOf("rv:");
2246
+ return parseInt(e.substring(o + 3, e.indexOf(".", o)), 10);
2247
+ }
2248
+ var s = e.indexOf("Edge/");
2249
+ return s > 0 ? parseInt(e.substring(s + 5, e.indexOf(".", s)), 10) : -1;
2250
+ }
2251
+ let Pe;
2252
+ function Xe() {
2253
+ Xe.init || (Xe.init = !0, Pe = Ro() !== -1);
2254
+ }
2255
+ var He = {
2256
+ name: "ResizeObserver",
2257
+ props: {
2258
+ emitOnMount: {
2259
+ type: Boolean,
2260
+ default: !1
2261
+ },
2262
+ ignoreWidth: {
2263
+ type: Boolean,
2264
+ default: !1
2265
+ },
2266
+ ignoreHeight: {
2267
+ type: Boolean,
2268
+ default: !1
2269
+ }
2270
+ },
2271
+ emits: [
2272
+ "notify"
2273
+ ],
2274
+ mounted() {
2275
+ Xe(), kt(() => {
2276
+ this._w = this.$el.offsetWidth, this._h = this.$el.offsetHeight, this.emitOnMount && this.emitSize();
2277
+ });
2278
+ const e = document.createElement("object");
2279
+ this._resizeObject = e, e.setAttribute("aria-hidden", "true"), e.setAttribute("tabindex", -1), e.onload = this.addResizeHandlers, e.type = "text/html", Pe && this.$el.appendChild(e), e.data = "about:blank", Pe || this.$el.appendChild(e);
2280
+ },
2281
+ beforeUnmount() {
2282
+ this.removeResizeHandlers();
2283
+ },
2284
+ methods: {
2285
+ compareAndNotify() {
2286
+ (!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());
2287
+ },
2288
+ emitSize() {
2289
+ this.$emit("notify", {
2290
+ width: this._w,
2291
+ height: this._h
2292
+ });
2293
+ },
2294
+ addResizeHandlers() {
2295
+ this._resizeObject.contentDocument.defaultView.addEventListener("resize", this.compareAndNotify), this.compareAndNotify();
2296
+ },
2297
+ removeResizeHandlers() {
2298
+ this._resizeObject && this._resizeObject.onload && (!Pe && this._resizeObject.contentDocument && this._resizeObject.contentDocument.defaultView.removeEventListener("resize", this.compareAndNotify), this.$el.removeChild(this._resizeObject), this._resizeObject.onload = null, this._resizeObject = null);
2299
+ }
2300
+ }
2301
+ };
2302
+ const Eo = /* @__PURE__ */ rn("data-v-b329ee4c");
2303
+ tn("data-v-b329ee4c");
2304
+ const Do = {
2305
+ class: "resize-observer",
2306
+ tabindex: "-1"
2307
+ };
2308
+ nn();
2309
+ const Mo = /* @__PURE__ */ Eo((e, t, n, o, s, i) => (_(), F("div", Do)));
2310
+ He.render = Mo;
2311
+ He.__scopeId = "data-v-b329ee4c";
2312
+ He.__file = "src/components/ResizeObserver.vue";
2313
+ const Gt = (e = "theme") => ({
2314
+ computed: {
2315
+ themeClass() {
2316
+ return Co(this[e]);
2317
+ }
2318
+ }
2319
+ }), Ho = Z({
2320
+ name: "VPopperContent",
2321
+ components: {
2322
+ ResizeObserver: He
2323
+ },
2324
+ mixins: [
2325
+ Gt()
2326
+ ],
2327
+ props: {
2328
+ popperId: String,
2329
+ theme: String,
2330
+ shown: Boolean,
2331
+ mounted: Boolean,
2332
+ skipTransition: Boolean,
2333
+ autoHide: Boolean,
2334
+ handleResize: Boolean,
2335
+ classes: Object,
2336
+ result: Object
2337
+ },
2338
+ emits: [
2339
+ "hide",
2340
+ "resize"
2341
+ ],
2342
+ methods: {
2343
+ toPx(e) {
2344
+ return e != null && !isNaN(e) ? `${e}px` : null;
2345
+ }
2346
+ }
2347
+ }), Lo = ["id", "aria-hidden", "tabindex", "data-popper-placement"], jo = {
2348
+ ref: "inner",
2349
+ class: "v-popper__inner"
2350
+ }, Fo = /* @__PURE__ */ y("div", { class: "v-popper__arrow-outer" }, null, -1), Io = /* @__PURE__ */ y("div", { class: "v-popper__arrow-inner" }, null, -1), Vo = [
2351
+ Fo,
2352
+ Io
2353
+ ];
2354
+ function Wo(e, t, n, o, s, i) {
2355
+ const r = We("ResizeObserver");
2356
+ return _(), C("div", {
2357
+ id: e.popperId,
2358
+ ref: "popover",
2359
+ class: A(["v-popper__popper", [
2360
+ e.themeClass,
2361
+ e.classes.popperClass,
2362
+ {
2363
+ "v-popper__popper--shown": e.shown,
2364
+ "v-popper__popper--hidden": !e.shown,
2365
+ "v-popper__popper--show-from": e.classes.showFrom,
2366
+ "v-popper__popper--show-to": e.classes.showTo,
2367
+ "v-popper__popper--hide-from": e.classes.hideFrom,
2368
+ "v-popper__popper--hide-to": e.classes.hideTo,
2369
+ "v-popper__popper--skip-transition": e.skipTransition,
2370
+ "v-popper__popper--arrow-overflow": e.result && e.result.arrow.overflow,
2371
+ "v-popper__popper--no-positioning": !e.result
2372
+ }
2373
+ ]]),
2374
+ style: Le(e.result ? {
2375
+ position: e.result.strategy,
2376
+ transform: `translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`
2377
+ } : void 0),
2378
+ "aria-hidden": e.shown ? "false" : "true",
2379
+ tabindex: e.autoHide ? 0 : void 0,
2380
+ "data-popper-placement": e.result ? e.result.placement : void 0,
2381
+ onKeyup: t[2] || (t[2] = an((a) => e.autoHide && e.$emit("hide"), ["esc"]))
2382
+ }, [
2383
+ y("div", {
2384
+ class: "v-popper__backdrop",
2385
+ onClick: t[0] || (t[0] = (a) => e.autoHide && e.$emit("hide"))
2386
+ }),
2387
+ y("div", {
2388
+ class: "v-popper__wrapper",
2389
+ style: Le(e.result ? {
2390
+ transformOrigin: e.result.transformOrigin
2391
+ } : void 0)
2392
+ }, [
2393
+ y("div", jo, [
2394
+ e.mounted ? (_(), C(J, { key: 0 }, [
2395
+ y("div", null, [
2396
+ D(e.$slots, "default")
2397
+ ]),
2398
+ e.handleResize ? (_(), F(r, {
2399
+ key: 0,
2400
+ onNotify: t[1] || (t[1] = (a) => e.$emit("resize", a))
2401
+ })) : G("", !0)
2402
+ ], 64)) : G("", !0)
2403
+ ], 512),
2404
+ y("div", {
2405
+ ref: "arrow",
2406
+ class: "v-popper__arrow-container",
2407
+ style: Le(e.result ? {
2408
+ left: e.toPx(e.result.arrow.x),
2409
+ top: e.toPx(e.result.arrow.y)
2410
+ } : void 0)
2411
+ }, Vo, 4)
2412
+ ], 4)
2413
+ ], 46, Lo);
2414
+ }
2415
+ const Ut = /* @__PURE__ */ it(Ho, [["render", Wo]]), Yt = {
2416
+ methods: {
2417
+ show(...e) {
2418
+ return this.$refs.popper.show(...e);
2419
+ },
2420
+ hide(...e) {
2421
+ return this.$refs.popper.hide(...e);
2422
+ },
2423
+ dispose(...e) {
2424
+ return this.$refs.popper.dispose(...e);
2425
+ },
2426
+ onResize(...e) {
2427
+ return this.$refs.popper.onResize(...e);
2428
+ }
2429
+ }
2430
+ };
2431
+ let Ze = function() {
2432
+ };
2433
+ typeof window < "u" && (Ze = window.Element);
2434
+ const qo = Z({
2435
+ name: "VPopperWrapper",
2436
+ components: {
2437
+ Popper: Bo,
2438
+ PopperContent: Ut
2439
+ },
2440
+ mixins: [
2441
+ Yt,
2442
+ Gt("finalTheme")
2443
+ ],
2444
+ props: {
2445
+ theme: {
2446
+ type: String,
2447
+ default: null
2448
+ },
2449
+ referenceNode: {
2450
+ type: Function,
2451
+ default: null
2452
+ },
2453
+ shown: {
2454
+ type: Boolean,
2455
+ default: !1
2456
+ },
2457
+ showGroup: {
2458
+ type: String,
2459
+ default: null
2460
+ },
2461
+ // eslint-disable-next-line vue/require-prop-types
2462
+ ariaId: {
2463
+ default: null
2464
+ },
2465
+ disabled: {
2466
+ type: Boolean,
2467
+ default: void 0
2468
+ },
2469
+ positioningDisabled: {
2470
+ type: Boolean,
2471
+ default: void 0
2472
+ },
2473
+ placement: {
2474
+ type: String,
2475
+ default: void 0
2476
+ },
2477
+ delay: {
2478
+ type: [String, Number, Object],
2479
+ default: void 0
2480
+ },
2481
+ distance: {
2482
+ type: [Number, String],
2483
+ default: void 0
2484
+ },
2485
+ skidding: {
2486
+ type: [Number, String],
2487
+ default: void 0
2488
+ },
2489
+ triggers: {
2490
+ type: Array,
2491
+ default: void 0
2492
+ },
2493
+ showTriggers: {
2494
+ type: [Array, Function],
2495
+ default: void 0
2496
+ },
2497
+ hideTriggers: {
2498
+ type: [Array, Function],
2499
+ default: void 0
2500
+ },
2501
+ popperTriggers: {
2502
+ type: Array,
2503
+ default: void 0
2504
+ },
2505
+ popperShowTriggers: {
2506
+ type: [Array, Function],
2507
+ default: void 0
2508
+ },
2509
+ popperHideTriggers: {
2510
+ type: [Array, Function],
2511
+ default: void 0
2512
+ },
2513
+ container: {
2514
+ type: [String, Object, Ze, Boolean],
2515
+ default: void 0
2516
+ },
2517
+ boundary: {
2518
+ type: [String, Ze],
2519
+ default: void 0
2520
+ },
2521
+ strategy: {
2522
+ type: String,
2523
+ default: void 0
2524
+ },
2525
+ autoHide: {
2526
+ type: [Boolean, Function],
2527
+ default: void 0
2528
+ },
2529
+ handleResize: {
2530
+ type: Boolean,
2531
+ default: void 0
2532
+ },
2533
+ instantMove: {
2534
+ type: Boolean,
2535
+ default: void 0
2536
+ },
2537
+ eagerMount: {
2538
+ type: Boolean,
2539
+ default: void 0
2540
+ },
2541
+ popperClass: {
2542
+ type: [String, Array, Object],
2543
+ default: void 0
2544
+ },
2545
+ computeTransformOrigin: {
2546
+ type: Boolean,
2547
+ default: void 0
2548
+ },
2549
+ /**
2550
+ * @deprecated
2551
+ */
2552
+ autoMinSize: {
2553
+ type: Boolean,
2554
+ default: void 0
2555
+ },
2556
+ autoSize: {
2557
+ type: [Boolean, String],
2558
+ default: void 0
2559
+ },
2560
+ /**
2561
+ * @deprecated
2562
+ */
2563
+ autoMaxSize: {
2564
+ type: Boolean,
2565
+ default: void 0
2566
+ },
2567
+ autoBoundaryMaxSize: {
2568
+ type: Boolean,
2569
+ default: void 0
2570
+ },
2571
+ preventOverflow: {
2572
+ type: Boolean,
2573
+ default: void 0
2574
+ },
2575
+ overflowPadding: {
2576
+ type: [Number, String],
2577
+ default: void 0
2578
+ },
2579
+ arrowPadding: {
2580
+ type: [Number, String],
2581
+ default: void 0
2582
+ },
2583
+ arrowOverflow: {
2584
+ type: Boolean,
2585
+ default: void 0
2586
+ },
2587
+ flip: {
2588
+ type: Boolean,
2589
+ default: void 0
2590
+ },
2591
+ shift: {
2592
+ type: Boolean,
2593
+ default: void 0
2594
+ },
2595
+ shiftCrossAxis: {
2596
+ type: Boolean,
2597
+ default: void 0
2598
+ },
2599
+ noAutoFocus: {
2600
+ type: Boolean,
2601
+ default: void 0
2602
+ },
2603
+ disposeTimeout: {
2604
+ type: Number,
2605
+ default: void 0
2606
+ }
2607
+ },
2608
+ emits: {
2609
+ show: () => !0,
2610
+ hide: () => !0,
2611
+ "update:shown": (e) => !0,
2612
+ "apply-show": () => !0,
2613
+ "apply-hide": () => !0,
2614
+ "close-group": () => !0,
2615
+ "close-directive": () => !0,
2616
+ "auto-hide": () => !0,
2617
+ resize: () => !0
2618
+ },
2619
+ computed: {
2620
+ finalTheme() {
2621
+ return this.theme ?? this.$options.vPopperTheme;
2622
+ }
2623
+ },
2624
+ methods: {
2625
+ getTargetNodes() {
2626
+ return Array.from(this.$el.children).filter((e) => e !== this.$refs.popperContent.$el);
2627
+ }
2628
+ }
2629
+ });
2630
+ function Go(e, t, n, o, s, i) {
2631
+ const r = We("PopperContent"), a = We("Popper");
2632
+ return _(), F(a, Qe({ ref: "popper" }, e.$props, {
2633
+ theme: e.finalTheme,
2634
+ "target-nodes": e.getTargetNodes,
2635
+ "popper-node": () => e.$refs.popperContent.$el,
2636
+ class: [
2637
+ e.themeClass
2638
+ ],
2639
+ onShow: t[0] || (t[0] = () => e.$emit("show")),
2640
+ onHide: t[1] || (t[1] = () => e.$emit("hide")),
2641
+ "onUpdate:shown": t[2] || (t[2] = (d) => e.$emit("update:shown", d)),
2642
+ onApplyShow: t[3] || (t[3] = () => e.$emit("apply-show")),
2643
+ onApplyHide: t[4] || (t[4] = () => e.$emit("apply-hide")),
2644
+ onCloseGroup: t[5] || (t[5] = () => e.$emit("close-group")),
2645
+ onCloseDirective: t[6] || (t[6] = () => e.$emit("close-directive")),
2646
+ onAutoHide: t[7] || (t[7] = () => e.$emit("auto-hide")),
2647
+ onResize: t[8] || (t[8] = () => e.$emit("resize"))
2648
+ }), {
2649
+ default: K(({
2650
+ popperId: d,
2651
+ isShown: l,
2652
+ shouldMountContent: c,
2653
+ skipTransition: u,
2654
+ autoHide: f,
2655
+ show: p,
2656
+ hide: h,
2657
+ handleResize: w,
2658
+ onResize: g,
2659
+ classes: m,
2660
+ result: v
2661
+ }) => [
2662
+ D(e.$slots, "default", {
2663
+ shown: l,
2664
+ show: p,
2665
+ hide: h
2666
+ }),
2667
+ ke(r, {
2668
+ ref: "popperContent",
2669
+ "popper-id": d,
2670
+ theme: e.finalTheme,
2671
+ shown: l,
2672
+ mounted: c,
2673
+ "skip-transition": u,
2674
+ "auto-hide": f,
2675
+ "handle-resize": w,
2676
+ classes: m,
2677
+ result: v,
2678
+ onHide: h,
2679
+ onResize: g
2680
+ }, {
2681
+ default: K(() => [
2682
+ D(e.$slots, "popper", {
2683
+ shown: l,
2684
+ hide: h
2685
+ })
2686
+ ]),
2687
+ _: 2
2688
+ }, 1032, ["popper-id", "theme", "shown", "mounted", "skip-transition", "auto-hide", "handle-resize", "classes", "result", "onHide", "onResize"])
2689
+ ]),
2690
+ _: 3
2691
+ }, 16, ["theme", "target-nodes", "popper-node", "class"]);
2692
+ }
2693
+ const rt = /* @__PURE__ */ it(qo, [["render", Go]]);
2694
+ ({
2695
+ ...rt
2696
+ });
2697
+ const Uo = {
2698
+ ...rt,
2699
+ name: "VMenu",
2700
+ vPopperTheme: "menu"
2701
+ }, Yo = {
2702
+ ...rt,
2703
+ name: "VTooltip",
2704
+ vPopperTheme: "tooltip"
2705
+ };
2706
+ Z({
2707
+ name: "VTooltipDirective",
2708
+ components: {
2709
+ Popper: qt(),
2710
+ PopperContent: Ut
2711
+ },
2712
+ mixins: [
2713
+ Yt
2714
+ ],
2715
+ inheritAttrs: !1,
2716
+ props: {
2717
+ theme: {
2718
+ type: String,
2719
+ default: "tooltip"
2720
+ },
2721
+ html: {
2722
+ type: Boolean,
2723
+ default: (e) => Ue(e.theme, "html")
2724
+ },
2725
+ content: {
2726
+ type: [String, Number, Function],
2727
+ default: null
2728
+ },
2729
+ loadingContent: {
2730
+ type: String,
2731
+ default: (e) => Ue(e.theme, "loadingContent")
2732
+ },
2733
+ targetNodes: {
2734
+ type: Function,
2735
+ required: !0
2736
+ }
2737
+ },
2738
+ data() {
2739
+ return {
2740
+ asyncContent: null
2741
+ };
2742
+ },
2743
+ computed: {
2744
+ isContentAsync() {
2745
+ return typeof this.content == "function";
2746
+ },
2747
+ loading() {
2748
+ return this.isContentAsync && this.asyncContent == null;
2749
+ },
2750
+ finalContent() {
2751
+ return this.isContentAsync ? this.loading ? this.loadingContent : this.asyncContent : this.content;
2752
+ }
2753
+ },
2754
+ watch: {
2755
+ content: {
2756
+ handler() {
2757
+ this.fetchContent(!0);
2758
+ },
2759
+ immediate: !0
2760
+ },
2761
+ async finalContent() {
2762
+ await this.$nextTick(), this.$refs.popper.onResize();
2763
+ }
2764
+ },
2765
+ created() {
2766
+ this.$_fetchId = 0;
2767
+ },
2768
+ methods: {
2769
+ fetchContent(e) {
2770
+ if (typeof this.content == "function" && this.$_isShown && (e || !this.$_loading && this.asyncContent == null)) {
2771
+ this.asyncContent = null, this.$_loading = !0;
2772
+ const t = ++this.$_fetchId, n = this.content(this);
2773
+ n.then ? n.then((o) => this.onResult(t, o)) : this.onResult(t, n);
2774
+ }
2775
+ },
2776
+ onResult(e, t) {
2777
+ e === this.$_fetchId && (this.$_loading = !1, this.asyncContent = t);
2778
+ },
2779
+ onShow() {
2780
+ this.$_isShown = !0, this.fetchContent();
2781
+ },
2782
+ onHide() {
2783
+ this.$_isShown = !1;
2784
+ }
2785
+ }
2786
+ });
2787
+ const Ve = Uo, Xo = Yo, Zo = {
2788
+ viewBox: "0 0 256 256",
2789
+ width: "1.2em",
2790
+ height: "1.2em"
2791
+ };
2792
+ function Qo(e, t) {
2793
+ return _(), C("svg", Zo, t[0] || (t[0] = [
2794
+ y("path", {
2795
+ fill: "currentColor",
2796
+ d: "M128 24a104 104 0 1 0 104 104A104.13 104.13 0 0 0 128 24m40 112h-32v32a8 8 0 0 1-16 0v-32H88a8 8 0 0 1 0-16h32V88a8 8 0 0 1 16 0v32h32a8 8 0 0 1 0 16"
2797
+ }, null, -1)
2798
+ ]));
2799
+ }
2800
+ const Jo = Re({ name: "ph-plus-circle-fill", render: Qo }), Ko = {
2801
+ viewBox: "0 0 256 256",
2802
+ width: "1.2em",
2803
+ height: "1.2em"
2804
+ };
2805
+ function es(e, t) {
2806
+ return _(), C("svg", Ko, t[0] || (t[0] = [
2807
+ y("path", {
2808
+ fill: "currentColor",
2809
+ d: "m229.66 218.34l-50.07-50.06a88.11 88.11 0 1 0-11.31 11.31l50.06 50.07a8 8 0 0 0 11.32-11.32M40 112a72 72 0 1 1 72 72a72.08 72.08 0 0 1-72-72"
2810
+ }, null, -1)
2811
+ ]));
2812
+ }
2813
+ const ts = Re({ name: "ph-magnifying-glass", render: es }), ns = {
2814
+ viewBox: "0 0 256 256",
2815
+ width: "1.2em",
2816
+ height: "1.2em"
2817
+ };
2818
+ function os(e, t) {
2819
+ return _(), C("svg", ns, t[0] || (t[0] = [
2820
+ y("path", {
2821
+ fill: "currentColor",
2822
+ d: "M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24m-26.37 144h52.74C149 186.34 140 202.87 128 215.89c-12-13.02-21-29.55-26.37-47.89M98 152a145.72 145.72 0 0 1 0-48h60a145.72 145.72 0 0 1 0 48Zm-58-24a87.61 87.61 0 0 1 3.33-24h38.46a161.79 161.79 0 0 0 0 48H43.33A87.61 87.61 0 0 1 40 128m114.37-40h-52.74C107 69.66 116 53.13 128 40.11c12 13.02 21 29.55 26.37 47.89m19.84 16h38.46a88.15 88.15 0 0 1 0 48h-38.46a161.79 161.79 0 0 0 0-48m32.16-16h-35.43a142.39 142.39 0 0 0-20.26-45a88.37 88.37 0 0 1 55.69 45M105.32 43a142.39 142.39 0 0 0-20.26 45H49.63a88.37 88.37 0 0 1 55.69-45M49.63 168h35.43a142.39 142.39 0 0 0 20.26 45a88.37 88.37 0 0 1-55.69-45m101.05 45a142.39 142.39 0 0 0 20.26-45h35.43a88.37 88.37 0 0 1-55.69 45"
2823
+ }, null, -1)
2824
+ ]));
2825
+ }
2826
+ const Ct = Re({ name: "ph-globe", render: os }), ss = {
2827
+ viewBox: "0 0 256 256",
2828
+ width: "1.2em",
2829
+ height: "1.2em"
2830
+ };
2831
+ function is(e, t) {
2832
+ return _(), C("svg", ss, t[0] || (t[0] = [
2833
+ y("path", {
2834
+ fill: "currentColor",
2835
+ d: "m181.66 133.66l-80 80a8 8 0 0 1-11.32-11.32L164.69 128L90.34 53.66a8 8 0 0 1 11.32-11.32l80 80a8 8 0 0 1 0 11.32"
2836
+ }, null, -1)
2837
+ ]));
2838
+ }
2839
+ const rs = Re({ name: "ph-caret-right", render: is }), as = {
2840
+ class: /* @__PURE__ */ A([
2841
+ "tw-hidden-scrolls tw-fixed tw-bottom-0 tw-left-0 tw-top-0",
2842
+ "tw-background-color tw-w-auto tw-overflow-y-auto tw-overflow-x-hidden",
2843
+ "tw-border-color-weak tw-border-b-0 tw-border-l-0 tw-border-r tw-border-t-0 tw-border-solid",
2844
+ "tw-transition tw-duration-150 tw-ease-in-out"
2845
+ ])
2846
+ }, ls = { class: "tw-grid tw-h-full tw-grid-rows-[auto_1fr] tw-px-[12px]" }, ds = { class: "tw-hidden-scrolls tw-mt-[16px] tw-overflow-auto" }, us = { class: "tw-grid tw-justify-center tw-gap-[8px] tw-pb-[16px] tw-pt-[16px]" }, cs = {
2847
+ key: 0,
2848
+ class: /* @__PURE__ */ A([
2849
+ "tw-text-color-brand-base tw-mx-auto tw-h-[32px] tw-cursor-pointer tw-text-[28px] tw-transition tw-duration-150 tw-ease-in-out",
2850
+ "hover:tw-text-color-success-hover",
2851
+ "active:tw-text-color-success-pressed active:tw-scale-90"
2852
+ ])
2853
+ }, ps = {
2854
+ key: 1,
2855
+ class: /* @__PURE__ */ A([
2856
+ "justify-center tw-flex tw-cursor-pointer tw-items-center tw-rounded-[8px] tw-p-[8px] tw-transition tw-duration-150 tw-ease-in-out",
2857
+ "hover:tw-background-color-hover",
2858
+ "active:tw-background-color-single-active active:tw-scale-90"
2859
+ ])
2860
+ }, fs = { class: "tw-border-color-weak tw-border-x-0 tw-border-b tw-border-t-0 tw-border-solid tw-p-[8px]" }, hs = { class: "tw-body-sm-regular-medium tw-m-0" }, ws = {
2861
+ key: 0,
2862
+ class: "tw-background-color-brand-base tw-absolute tw-left-0 tw-top-0 tw-h-full tw-w-[2px]"
2863
+ }, ms = ["onClick"], gs = { class: "tw-background-color-brand-base tw-absolute tw-left-0 tw-top-0 tw-h-full tw-w-[2px]" }, ys = ["onClick"], vs = { class: "tw-label-xs-medium" }, bs = ["onClick"], _s = {
2864
+ key: 0,
2865
+ class: "tw-background-color-hover tw-h-[2px] tw-w-full"
2866
+ }, xs = {
2867
+ class: /* @__PURE__ */ A([
2868
+ "tw tw-grid tw-items-end tw-justify-center tw-pb-[16px]",
2869
+ "[&>img]:tw-mx-auto [&>img]:tw-h-[24px] [&>img]:tw-w-[24px] [&>img]:tw-rounded-full"
2870
+ ])
2871
+ }, $s = /* @__PURE__ */ Z({
2872
+ __name: "sidenav",
2873
+ props: no,
2874
+ emits: oo,
2875
+ setup(e, { emit: t }) {
2876
+ const n = e, o = t, { handleRedirect: s } = so(n, o);
2877
+ return (i, r) => (_(), C("div", as, [
2878
+ y("div", ls, [
2879
+ y("div", ds, [
2880
+ y("div", {
2881
+ class: A([
2882
+ {
2883
+ "tw tw-grid tw-justify-center": !0,
2884
+ "[&>img]:tw-mx-auto [&>img]:tw-h-[24px] [&>img]:tw-w-[24px]": !0,
2885
+ "tw-pb-[16px]": !n.hasQuickActions && !n.hasSearch && !n.navLinks
2886
+ }
2887
+ ])
2888
+ }, [
2889
+ D(i.$slots, "logo-image")
2890
+ ], 2),
2891
+ y("div", us, [
2892
+ n.hasQuickActions ? (_(), C("div", cs, [
2893
+ ke(S(Jo))
2894
+ ])) : G("", !0),
2895
+ n.hasSearch ? (_(), C("div", ps, [
2896
+ ke(S(ts))
2897
+ ])) : G("", !0),
2898
+ (_(!0), C(J, null, Se(n.navLinks, (a, d) => (_(), C(J, { key: d }, [
2899
+ (_(!0), C(J, null, Se(a.parentLinks, (l, c) => (_(), C(J, { key: c }, [
2900
+ l.menuLinks && l.menuLinks.length > 0 ? (_(), F(S(Ve), {
2901
+ key: 0,
2902
+ "aria-id": "sidenav-menu-wrapper",
2903
+ distance: "18",
2904
+ placement: "right",
2905
+ triggers: ["click", "hover"],
2906
+ "instant-move": ""
2907
+ }, {
2908
+ popper: K(() => [
2909
+ y("div", fs, [
2910
+ y("h3", hs, ue(l.title), 1)
2911
+ ]),
2912
+ (_(!0), C(J, null, Se(l.menuLinks, (u, f) => (_(), C(J, { key: f }, [
2913
+ u.submenuLinks && u.submenuLinks.length > 0 ? (_(), F(S(Ve), {
2914
+ key: 0,
2915
+ "aria-id": "sidenav-submenu-wrapper",
2916
+ distance: "4",
2917
+ placement: "right-start",
2918
+ triggers: ["click", "hover"],
2919
+ "instant-move": ""
2920
+ }, {
2921
+ popper: K(() => [
2922
+ (_(!0), C(J, null, Se(u.submenuLinks, (p, h) => (_(), F(S(Ve), {
2923
+ key: h,
2924
+ "aria-id": "sidenav-sub-submenu-wrapper",
2925
+ triggers: ["click", "hover"],
2926
+ "instant-move": ""
2927
+ }, {
2928
+ default: K(() => [
2929
+ y("div", {
2930
+ class: A([
2931
+ {
2932
+ "tw-body-sm-regular tw-relative tw-m-0 tw-flex tw-cursor-pointer tw-justify-between tw-px-[8px] tw-py-[6px] tw-align-middle tw-duration-150 tw-ease-in-out": !0,
2933
+ "tw-background-color-single-active": n.activeNav.submenu === p.title,
2934
+ "hover:tw-background-color-hover": n.activeNav.submenu !== p.title,
2935
+ "active:tw-background-color-pressed": !0
2936
+ }
2937
+ ]),
2938
+ onClick: (w) => S(s)(w, p.redirect)
2939
+ }, [
2940
+ Je(y("div", gs, null, 512), [
2941
+ [ln, n.activeNav.submenu === p.title]
2942
+ ]),
2943
+ y("span", null, ue(p.title), 1)
2944
+ ], 10, ms)
2945
+ ]),
2946
+ _: 2
2947
+ }, 1024))), 128))
2948
+ ]),
2949
+ default: K(() => [
2950
+ y("div", {
2951
+ class: A([
2952
+ {
2953
+ "tw-body-sm-regular tw-relative tw-m-0 tw-flex tw-cursor-pointer tw-justify-between tw-px-[8px] tw-py-[6px] tw-align-middle tw-duration-150 tw-ease-in-out": !0,
2954
+ "tw-background-color-single-active": n.activeNav.menu === u.title,
2955
+ "hover:tw-background-color-hover": n.activeNav.menu !== u.title,
2956
+ "active:tw-background-color-pressed": !0
2957
+ }
2958
+ ])
2959
+ }, [
2960
+ n.activeNav.menu === u.title ? (_(), C("div", ws)) : G("", !0),
2961
+ y("span", null, ue(u.title), 1),
2962
+ ke(S(rs), {
2963
+ class: A([
2964
+ "tw-h-[16px] tw-w-[16px] tw-transform tw-font-normal tw-transition-transform tw-duration-300",
2965
+ n.activeNav.menu === u.title ? "-tw-rotate-90" : "hover:-tw-rotate-90"
2966
+ ])
2967
+ }, null, 8, ["class"])
2968
+ ], 2)
2969
+ ]),
2970
+ _: 2
2971
+ }, 1024)) : (_(), C("div", {
2972
+ key: 1,
2973
+ class: A([
2974
+ "tw-body-sm-regular tw-m-0 tw-flex tw-cursor-pointer tw-justify-between tw-px-[8px] tw-py-[6px] tw-align-middle tw-duration-300 tw-ease-in-out",
2975
+ "hover:tw-background-color-hover",
2976
+ "active:tw-background-color-pressed",
2977
+ "last:tw-rounded-b-[12px]"
2978
+ ]),
2979
+ onClick: (p) => S(s)(p, u.redirect)
2980
+ }, [
2981
+ y("span", null, ue(u.title), 1)
2982
+ ], 8, ys))
2983
+ ], 64))), 128))
2984
+ ]),
2985
+ default: K(() => [
2986
+ y("div", {
2987
+ class: A([
2988
+ {
2989
+ "justify-center tw-flex tw-cursor-pointer tw-items-center tw-rounded-[8px] tw-p-[8px] tw-transition tw-duration-150 tw-ease-in-out": !0,
2990
+ "tw-background-color-single-active tw-border-color-brand-base tw-border-[1.5px] tw-border-solid active:tw-scale-90": n.activeNav.parentNav === l.title,
2991
+ "hover:tw-background-color-hover": n.activeNav.parentNav != l.title,
2992
+ "active:tw-background-color-single-active active:tw-scale-90": !0
2993
+ }
2994
+ ])
2995
+ }, [
2996
+ l.icon ? (_(), F(at(l.icon), {
2997
+ key: 0,
2998
+ class: "tw-h-[1.25em] tw-w-[1.25em]"
2999
+ })) : (_(), F(S(Ct), { key: 1 }))
3000
+ ], 2)
3001
+ ]),
3002
+ _: 2
3003
+ }, 1024)) : (_(), F(S(Xo), {
3004
+ key: 1,
3005
+ "aria-id": "default-tooltip",
3006
+ placement: "right",
3007
+ distance: "18",
3008
+ triggers: ["click"]
3009
+ }, {
3010
+ popper: K(() => [
3011
+ y("span", vs, ue(l.title), 1)
3012
+ ]),
3013
+ default: K(() => [
3014
+ y("div", {
3015
+ class: A([
3016
+ "justify-center tw-flex tw-cursor-pointer tw-items-center tw-rounded-[8px] tw-p-[8px] tw-transition tw-duration-150 tw-ease-in-out",
3017
+ "hover:tw-background-color-hover",
3018
+ "active:tw-background-color-single-active active:tw-scale-90"
3019
+ ]),
3020
+ onClick: (u) => S(s)(u, l.redirect)
3021
+ }, [
3022
+ l.icon ? (_(), F(at(l.icon), {
3023
+ key: 0,
3024
+ class: "tw-h-[1.25em] tw-w-[1.25em]"
3025
+ })) : (_(), F(S(Ct), { key: 1 }))
3026
+ ], 8, bs)
3027
+ ]),
3028
+ _: 2
3029
+ }, 1024))
3030
+ ], 64))), 128)),
3031
+ i.navLinks.length > 0 && d < i.navLinks.length - 1 ? (_(), C("div", _s)) : G("", !0)
3032
+ ], 64))), 128))
3033
+ ])
3034
+ ]),
3035
+ y("div", xs, [
3036
+ D(i.$slots, "avatar-image")
3037
+ ])
3038
+ ])
3039
+ ]));
3040
+ }
3041
+ }), Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3042
+ __proto__: null,
3043
+ default: $s
3044
+ }, Symbol.toStringTag, { value: "Module" })), Ts = ["default", "hover", "pressed", "disabled"], Cs = {
3045
+ /**
3046
+ * @description Switch UI state when hovered, pressed, disabled
3047
+ */
3048
+ state: {
3049
+ type: String,
3050
+ validator: (e) => Ts.includes(e),
3051
+ default: "default"
3052
+ },
3053
+ /**
3054
+ * @description Switch input state when disabled
3055
+ */
3056
+ disabled: {
3057
+ type: Boolean,
3058
+ default: !1
3059
+ },
3060
+ /**
3061
+ * @description Required prop value for v-model
3062
+ */
3063
+ modelValue: {
3064
+ type: Boolean,
3065
+ required: !0,
3066
+ default: !1
3067
+ }
3068
+ }, ks = ["update:modelValue"], Ps = (e) => {
3069
+ const t = ee(null), n = ee(null), o = tt(t), { pressed: s } = Ot({ target: n }), { disabled: i, state: r, modelValue: a } = e, d = P(() => ({
3070
+ ...i && { ariaDisabled: !0 },
3071
+ disabled: i,
3072
+ autofocus: r === "hover",
3073
+ modelValue: a
3074
+ })), l = P(() => e.disabled ? p() : s.value ? f() : o.value ? u() : c());
3075
+ function c() {
3076
+ return e.modelValue ? "tw-background-color-success-base" : "tw-switch-background-default";
3077
+ }
3078
+ function u() {
3079
+ return e.modelValue ? "tw-background-color-success-hover" : "tw-switch-background-hover";
3080
+ }
3081
+ function f() {
3082
+ return e.modelValue ? "tw-background-color-success-pressed" : "tw-switch-background-pressed";
3083
+ }
3084
+ function p() {
3085
+ return O(
3086
+ {
3087
+ "tw-background-color-success-base": e.modelValue,
3088
+ "tw-switch-background-default": !e.modelValue
3089
+ },
3090
+ "tw-opacity-60"
3091
+ );
3092
+ }
3093
+ const h = P(() => e.disabled ? "tw-text-color-disabled" : "tw-text-color-strong"), w = P(() => O(
3094
+ "tw-transition-colors",
3095
+ "before:tw-transition-all",
3096
+ "before:tw-duration-150",
3097
+ "after:tw-transition-all",
3098
+ "after:tw-duration-150"
3099
+ )), g = P(() => O(
3100
+ l.value,
3101
+ w.value
3102
+ )), m = P(() => O({
3103
+ "tw-cursor-not-allowed": e.disabled,
3104
+ "tw-cursor-pointer": !e.disabled
3105
+ }));
3106
+ return {
3107
+ switchWrapperRef: t,
3108
+ switchRef: n,
3109
+ switchProps: d,
3110
+ switchMarkClass: g,
3111
+ switchTextClass: h,
3112
+ switchInputClass: m
3113
+ };
3114
+ }, As = { class: "switch_text switch_left-text" }, Os = ["disabled"], Ns = { class: "switch_text switch_right-text" }, zs = /* @__PURE__ */ Z({
3115
+ __name: "switch",
3116
+ props: Cs,
3117
+ emits: ks,
3118
+ setup(e, { emit: t }) {
3119
+ const n = e, s = Nt(n, "modelValue", t), {
3120
+ switchWrapperRef: i,
3121
+ switchRef: r,
3122
+ switchProps: a,
3123
+ switchMarkClass: d,
3124
+ switchTextClass: l,
3125
+ switchInputClass: c
3126
+ } = Ps(n);
3127
+ return (u, f) => (_(), C("div", Qe(S(a), {
3128
+ class: ["switch", S(l)]
3129
+ }), [
3130
+ y("label", As, [
3131
+ D(u.$slots, "leftText", {}, () => [
3132
+ D(u.$slots, "default", {}, void 0, !0)
3133
+ ], !0)
3134
+ ]),
3135
+ y("div", {
3136
+ ref_key: "switchWrapperRef",
3137
+ ref: i,
3138
+ class: "switch_wrapper"
3139
+ }, [
3140
+ Je(y("input", {
3141
+ ref_key: "switchRef",
3142
+ ref: r,
3143
+ "onUpdate:modelValue": f[0] || (f[0] = (p) => Pt(s) ? s.value = p : null),
3144
+ type: "checkbox",
3145
+ name: "checkbox",
3146
+ class: A(["switch_input", S(c)]),
3147
+ disabled: n.disabled
3148
+ }, null, 10, Os), [
3149
+ [dn, S(s)]
3150
+ ]),
3151
+ y("span", {
3152
+ class: A(["switch_mark", S(d)])
3153
+ }, null, 2)
3154
+ ], 512),
3155
+ y("label", Ns, [
3156
+ D(u.$slots, "rightText", {}, void 0, !0)
3157
+ ])
3158
+ ], 16));
3159
+ }
3160
+ }), Bs = /* @__PURE__ */ zt(zs, [["__scopeId", "data-v-ea8a1df2"]]), Rs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3161
+ __proto__: null,
3162
+ default: Bs
3163
+ }, Symbol.toStringTag, { value: "Module" }));
3164
+ let Xt = "";
3165
+ const Es = (e) => {
3166
+ Xt = e || "spr-";
3167
+ }, Ds = () => Xt, Ms = (e) => `${Ds()}${e}`, Hs = /* @__PURE__ */ Object.assign({
3168
+ "../src/components/badge/badge.vue": bn,
3169
+ "../src/components/button/button.vue": Hn,
3170
+ "../src/components/lozenge/lozenge.vue": Un,
3171
+ "../src/components/radio/radio.vue": to,
3172
+ "../src/components/sidenav/sidenav.vue": Ss,
3173
+ "../src/components/switch/switch.vue": Rs
3174
+ }), Ls = (e, t = {}) => {
3175
+ Es(t.prefix || "spr-"), Object.entries(Hs).forEach(([n, o]) => {
3176
+ var r;
3177
+ const s = (r = n.split("/").pop()) == null ? void 0 : r.replace(".vue", ""), i = Ms(s);
3178
+ e.component(i, o.default);
3179
+ }), console.log("%c🚀⭐ Design System Next Installed ⭐🚀", "color: green; font-weight: bold; font-size: 14px;");
3180
+ }, Fs = { install: Ls };
3181
+ export {
3182
+ Fs as default,
3183
+ Ds as getPrefix,
3184
+ Es as setPrefix
3185
+ };