@point-hub/papp 0.1.5 → 0.1.6
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.
- package/dist/index.d.ts +1 -0
- package/dist/index.js +671 -635
- package/dist/index.umd.cjs +5 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as Fa from "vue";
|
|
2
|
-
import { defineComponent as R, ref as E, provide as Pe, openBlock as w, createElementBlock as B, renderSlot as
|
|
2
|
+
import { defineComponent as R, ref as E, provide as Pe, openBlock as w, createElementBlock as B, renderSlot as G, inject as ke, watch as ee, resolveComponent as Q, createVNode as W, withCtx as _, createElementVNode as k, toDisplayString as H, normalizeClass as z, normalizeStyle as Ye, createTextVNode as Ie, createCommentVNode as V, createBlock as U, computed as T, Fragment as fe, renderList as Me, unref as N, shallowRef as Rn, triggerRef as _a, onScopeDispose as Lo, onUnmounted as De, nextTick as Se, watchEffect as Ee, onMounted as ne, cloneVNode as Fo, h as de, toRaw as Le, reactive as pr, getCurrentInstance as _o, Teleport as Rs, Transition as Vo, toRef as Ls, readonly as Fs, customRef as _s, getCurrentScope as Vs, toValue as ut, useCssVars as Ns, useSlots as No, toRefs as jo, withKeys as js, withDirectives as Xe, vShow as Ws, onBeforeUnmount as vr, isRef as gt, useModel as le, resolveDynamicComponent as ur, mergeProps as Hs, normalizeProps as qs, guardReactiveProps as zs, mergeModels as ye, isReactive as Va, isVNode as Us, createApp as Na, createSlots as Ys, vModelCheckbox as Wo, resolveDirective as Ho, vModelText as Ut, vModelDynamic as Xs } from "vue";
|
|
3
3
|
import { useRoute as qo } from "vue-router";
|
|
4
4
|
import { defineStore as mr } from "pinia";
|
|
5
5
|
const Qs = { class: "accordion-container" }, Gs = /* @__PURE__ */ R({
|
|
@@ -10,7 +10,7 @@ const Qs = { class: "accordion-container" }, Gs = /* @__PURE__ */ R({
|
|
|
10
10
|
setup(e) {
|
|
11
11
|
const n = E(e.alwaysOpen), r = E(0);
|
|
12
12
|
return Pe("alwaysOpen", n), Pe("activeItemId", r), (a, o) => (w(), B("div", Qs, [
|
|
13
|
-
|
|
13
|
+
G(a.$slots, "default", {}, void 0, !0)
|
|
14
14
|
]));
|
|
15
15
|
}
|
|
16
16
|
}), oe = (e, t) => {
|
|
@@ -41,18 +41,18 @@ const Qs = { class: "accordion-container" }, Gs = /* @__PURE__ */ R({
|
|
|
41
41
|
n.value !== l.itemId ? n.value = l.itemId : n.value = 0;
|
|
42
42
|
}, l = e;
|
|
43
43
|
return (d, u) => {
|
|
44
|
-
const f =
|
|
44
|
+
const f = Q("base-button");
|
|
45
45
|
return w(), B("div", Js, [
|
|
46
|
-
|
|
46
|
+
W(f, {
|
|
47
47
|
onClick: u[0] || (u[0] = (c) => s()),
|
|
48
48
|
class: "accordion-title",
|
|
49
49
|
"data-testid": l.dataTestid
|
|
50
50
|
}, {
|
|
51
51
|
default: _(() => [
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
G(d.$slots, "title", {}, () => [
|
|
53
|
+
k("span", null, H(l.title), 1)
|
|
54
54
|
], !0),
|
|
55
|
-
|
|
55
|
+
k("i", {
|
|
56
56
|
class: z(["accordion-collapse-item-icon i-fa7-solid:angle-down", {
|
|
57
57
|
"accordiont-collapse-item-icon-active": o.value
|
|
58
58
|
}])
|
|
@@ -60,7 +60,7 @@ const Qs = { class: "accordion-container" }, Gs = /* @__PURE__ */ R({
|
|
|
60
60
|
]),
|
|
61
61
|
_: 3
|
|
62
62
|
}, 8, ["data-testid"]),
|
|
63
|
-
|
|
63
|
+
k("div", {
|
|
64
64
|
ref_key: "contentRef",
|
|
65
65
|
ref: r,
|
|
66
66
|
class: z(["accordion-content", {
|
|
@@ -70,8 +70,8 @@ const Qs = { class: "accordion-container" }, Gs = /* @__PURE__ */ R({
|
|
|
70
70
|
height: `${a.value}px`
|
|
71
71
|
})
|
|
72
72
|
}, [
|
|
73
|
-
|
|
74
|
-
Ie(
|
|
73
|
+
G(d.$slots, "default", {}, () => [
|
|
74
|
+
Ie(H(l.content), 1)
|
|
75
75
|
], !0)
|
|
76
76
|
], 6)
|
|
77
77
|
]);
|
|
@@ -102,43 +102,43 @@ const Qs = { class: "accordion-container" }, Gs = /* @__PURE__ */ R({
|
|
|
102
102
|
a.value = !0;
|
|
103
103
|
};
|
|
104
104
|
return (i, s) => {
|
|
105
|
-
const l =
|
|
105
|
+
const l = Q("base-icon"), d = Q("base-button");
|
|
106
106
|
return a.value ? V("", !0) : (w(), B("div", {
|
|
107
107
|
key: 0,
|
|
108
108
|
class: z(n)
|
|
109
109
|
}, [
|
|
110
|
-
|
|
110
|
+
k("div", nl, [
|
|
111
111
|
e.icon ? (w(), B("div", rl, [
|
|
112
112
|
e.icon === "success" ? (w(), B("i", al)) : V("", !0),
|
|
113
|
-
e.icon === "info" ? (w(),
|
|
113
|
+
e.icon === "info" ? (w(), U(l, {
|
|
114
114
|
key: 1,
|
|
115
115
|
icon: "i-fa7-regular:circle-info"
|
|
116
116
|
})) : V("", !0),
|
|
117
|
-
e.icon === "success" ? (w(),
|
|
117
|
+
e.icon === "success" ? (w(), U(l, {
|
|
118
118
|
key: 2,
|
|
119
119
|
icon: "i-fa7-regular:circle-check"
|
|
120
120
|
})) : V("", !0),
|
|
121
|
-
e.icon === "warning" ? (w(),
|
|
121
|
+
e.icon === "warning" ? (w(), U(l, {
|
|
122
122
|
key: 3,
|
|
123
123
|
icon: "i-fa7-regular:circle-exclamation"
|
|
124
124
|
})) : V("", !0),
|
|
125
|
-
e.icon === "danger" ? (w(),
|
|
125
|
+
e.icon === "danger" ? (w(), U(l, {
|
|
126
126
|
key: 4,
|
|
127
127
|
icon: "i-fa7-regular:triangle-exclamation"
|
|
128
128
|
})) : V("", !0)
|
|
129
129
|
])) : V("", !0),
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
130
|
+
k("div", ol, [
|
|
131
|
+
k("div", null, [
|
|
132
|
+
G(i.$slots, "title", {}, () => [
|
|
133
|
+
k("span", il, H(t.title), 1)
|
|
134
134
|
], !0)
|
|
135
135
|
]),
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
k("div", null, [
|
|
137
|
+
G(i.$slots, "default", {}, void 0, !0)
|
|
138
138
|
])
|
|
139
139
|
])
|
|
140
140
|
]),
|
|
141
|
-
e.isDismissable ? (w(),
|
|
141
|
+
e.isDismissable ? (w(), U(d, {
|
|
142
142
|
key: 0,
|
|
143
143
|
type: "button",
|
|
144
144
|
onClick: s[0] || (s[0] = (u) => o()),
|
|
@@ -148,7 +148,7 @@ const Qs = { class: "accordion-container" }, Gs = /* @__PURE__ */ R({
|
|
|
148
148
|
class: "close-button"
|
|
149
149
|
}, {
|
|
150
150
|
default: _(() => [
|
|
151
|
-
|
|
151
|
+
W(l, { icon: "i-fa7-solid:xmark" })
|
|
152
152
|
]),
|
|
153
153
|
_: 1
|
|
154
154
|
})) : V("", !0)
|
|
@@ -200,7 +200,7 @@ const Qs = { class: "accordion-container" }, Gs = /* @__PURE__ */ R({
|
|
|
200
200
|
}, null, 10, ul)) : (w(), B("span", {
|
|
201
201
|
key: 1,
|
|
202
202
|
class: z(["avatar-initial h-full w-full", a.value])
|
|
203
|
-
},
|
|
203
|
+
}, H(i(e.name)), 3)),
|
|
204
204
|
e.indicator ? (w(), B("span", {
|
|
205
205
|
key: 2,
|
|
206
206
|
class: z(["avatar-indicator", o.value])
|
|
@@ -210,7 +210,7 @@ const Qs = { class: "accordion-container" }, Gs = /* @__PURE__ */ R({
|
|
|
210
210
|
}), zo = /* @__PURE__ */ oe(dl, [["__scopeId", "data-v-4f83265a"]]), cl = {}, fl = { class: "avatar-group" };
|
|
211
211
|
function pl(e, t) {
|
|
212
212
|
return w(), B("div", fl, [
|
|
213
|
-
|
|
213
|
+
G(e.$slots, "default", {}, void 0, !0)
|
|
214
214
|
]);
|
|
215
215
|
}
|
|
216
216
|
const vl = /* @__PURE__ */ oe(cl, [["render", pl], ["__scopeId", "data-v-85c79e7a"]]), ml = {
|
|
@@ -230,7 +230,7 @@ const vl = /* @__PURE__ */ oe(cl, [["render", pl], ["__scopeId", "data-v-85c79e7
|
|
|
230
230
|
class: z(["badge", n])
|
|
231
231
|
}, [
|
|
232
232
|
e.withDot ? (w(), B("div", ml)) : V("", !0),
|
|
233
|
-
|
|
233
|
+
G(a.$slots, "default", {}, void 0, !0)
|
|
234
234
|
]));
|
|
235
235
|
}
|
|
236
236
|
}), gl = /* @__PURE__ */ oe(hl, [["__scopeId", "data-v-7c8ade6a"]]), bl = { class: "breadcrumb-ul" }, yl = /* @__PURE__ */ R({
|
|
@@ -242,15 +242,15 @@ const vl = /* @__PURE__ */ oe(cl, [["render", pl], ["__scopeId", "data-v-85c79e7
|
|
|
242
242
|
setup(e) {
|
|
243
243
|
const t = e;
|
|
244
244
|
return (n, r) => (w(), B("div", null, [
|
|
245
|
-
|
|
245
|
+
k("ul", bl, [
|
|
246
246
|
(w(!0), B(fe, null, Me(t.items, (a, o) => (w(), B("li", {
|
|
247
247
|
key: o,
|
|
248
248
|
class: "breadcrumb-li"
|
|
249
249
|
}, [
|
|
250
|
-
|
|
250
|
+
k("span", {
|
|
251
251
|
class: z(["whitespace-nowrap", { "breadcrumb-link": a.path }])
|
|
252
252
|
}, [
|
|
253
|
-
|
|
253
|
+
G(n.$slots, "default", {
|
|
254
254
|
index: o,
|
|
255
255
|
item: a
|
|
256
256
|
}, void 0, !0)
|
|
@@ -298,7 +298,7 @@ const vl = /* @__PURE__ */ oe(cl, [["render", pl], ["__scopeId", "data-v-85c79e7
|
|
|
298
298
|
disabled: e.disabled || e.isLoading,
|
|
299
299
|
"data-testid": t.dataTestid
|
|
300
300
|
}, [
|
|
301
|
-
|
|
301
|
+
G(o.$slots, "default", {}, void 0, !0),
|
|
302
302
|
e.isLoading && (e.variant === "text" || e.variant === "outlined") ? (w(), B("span", xl)) : V("", !0),
|
|
303
303
|
e.isLoading && (e.variant === "filled" || e.variant === "light") ? (w(), B("span", Sl)) : V("", !0)
|
|
304
304
|
], 8, wl));
|
|
@@ -321,24 +321,24 @@ const vl = /* @__PURE__ */ oe(cl, [["render", pl], ["__scopeId", "data-v-85c79e7
|
|
|
321
321
|
class: z(["card", { "card-shadow ": e.shadow, "card-rounded": e.shape === "rounded" }]),
|
|
322
322
|
style: Ye({ backgroundColor: e.bgColor, color: e.titleColor })
|
|
323
323
|
}, [
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
Ie(
|
|
324
|
+
k("div", Ol, [
|
|
325
|
+
k("div", Cl, [
|
|
326
|
+
k("div", null, [
|
|
327
|
+
G(t.$slots, "header", {}, () => [
|
|
328
|
+
Ie(H(e.title), 1)
|
|
329
329
|
], !0)
|
|
330
330
|
]),
|
|
331
|
-
|
|
332
|
-
|
|
331
|
+
k("div", null, [
|
|
332
|
+
G(t.$slots, "header-button", {}, void 0, !0)
|
|
333
333
|
])
|
|
334
334
|
])
|
|
335
335
|
]),
|
|
336
336
|
e.title ? (w(), B("div", El)) : V("", !0),
|
|
337
|
-
|
|
337
|
+
k("div", {
|
|
338
338
|
class: "card-body",
|
|
339
339
|
style: Ye({ color: e.bodyColor })
|
|
340
340
|
}, [
|
|
341
|
-
|
|
341
|
+
G(t.$slots, "default", {}, void 0, !0)
|
|
342
342
|
], 4)
|
|
343
343
|
], 6));
|
|
344
344
|
}
|
|
@@ -359,13 +359,13 @@ const vl = /* @__PURE__ */ oe(cl, [["render", pl], ["__scopeId", "data-v-85c79e7
|
|
|
359
359
|
"divider-vertical": t.orientation === "vertical"
|
|
360
360
|
})
|
|
361
361
|
}, [
|
|
362
|
-
|
|
362
|
+
k("div", {
|
|
363
363
|
class: z({
|
|
364
364
|
"divider-horizontal-line": t.orientation === "horizontal",
|
|
365
365
|
"divider-vertical-line": t.orientation === "vertical"
|
|
366
366
|
})
|
|
367
367
|
}, null, 2),
|
|
368
|
-
e.text ? (w(), B("p", Pl,
|
|
368
|
+
e.text ? (w(), B("p", Pl, H(t.text), 1)) : V("", !0),
|
|
369
369
|
e.text ? (w(), B("div", {
|
|
370
370
|
key: 1,
|
|
371
371
|
class: z({
|
|
@@ -1442,21 +1442,21 @@ let li = /* @__PURE__ */ Symbol("VirtualContext"), pu = R({ name: "VirtualProvid
|
|
|
1442
1442
|
} }), vu = R({ name: "Combobox", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "template" }, disabled: { type: [Boolean], default: !1 }, by: { type: [String, Function], nullable: !0, default: null }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: !0 }, name: { type: String, optional: !0 }, nullable: { type: Boolean, default: !1 }, multiple: { type: [Boolean], default: !1 }, immediate: { type: [Boolean], default: !1 }, virtual: { type: Object, default: null } }, inheritAttrs: !1, setup(e, { slots: t, attrs: n, emit: r }) {
|
|
1443
1443
|
let a = E(1), o = E(null), i = E(null), s = E(null), l = E(null), d = E({ static: !1, hold: !1 }), u = E([]), f = E(null), c = E(2), h = E(!1);
|
|
1444
1444
|
function g(P = (I) => I) {
|
|
1445
|
-
let I = f.value !== null ? u.value[f.value] : null, L = P(u.value.slice()), $ = L.length > 0 && L[0].dataRef.order.value !== null ? L.sort((X,
|
|
1446
|
-
return
|
|
1445
|
+
let I = f.value !== null ? u.value[f.value] : null, L = P(u.value.slice()), $ = L.length > 0 && L[0].dataRef.order.value !== null ? L.sort((X, K) => X.dataRef.order.value - K.dataRef.order.value) : bt(L, (X) => F(X.dataRef.domRef)), Y = I ? $.indexOf(I) : null;
|
|
1446
|
+
return Y === -1 && (Y = null), { options: $, activeOptionIndex: Y };
|
|
1447
1447
|
}
|
|
1448
1448
|
let v = T(() => e.multiple ? 1 : 0), m = T(() => e.nullable), [b, y] = Yo(T(() => e.modelValue), (P) => r("update:modelValue", P), T(() => e.defaultValue)), C = T(() => b.value === void 0 ? Ce(v.value, { 1: [], 0: void 0 }) : b.value), p = null, x = null;
|
|
1449
1449
|
function S(P) {
|
|
1450
1450
|
return Ce(v.value, { 0() {
|
|
1451
1451
|
return y?.(P);
|
|
1452
1452
|
}, 1: () => {
|
|
1453
|
-
let I = Le(A.value.value).slice(), L = Le(P), $ = I.findIndex((
|
|
1453
|
+
let I = Le(A.value.value).slice(), L = Le(P), $ = I.findIndex((Y) => A.compare(L, Le(Y)));
|
|
1454
1454
|
return $ === -1 ? I.push(L) : I.splice($, 1), y?.(I);
|
|
1455
1455
|
} });
|
|
1456
1456
|
}
|
|
1457
|
-
let
|
|
1457
|
+
let O = T(() => {
|
|
1458
1458
|
});
|
|
1459
|
-
ee([
|
|
1459
|
+
ee([O], ([P], [I]) => {
|
|
1460
1460
|
if (A.virtual.value && P && I && f.value !== null) {
|
|
1461
1461
|
let L = P.indexOf(I[f.value]);
|
|
1462
1462
|
L !== -1 ? f.value = L : f.value = null;
|
|
@@ -1502,11 +1502,11 @@ let li = /* @__PURE__ */ Symbol("VirtualContext"), pu = R({ name: "VirtualProvid
|
|
|
1502
1502
|
if (e.disabled || l.value && !d.value.static && a.value === 1) return;
|
|
1503
1503
|
if (A.virtual.value) {
|
|
1504
1504
|
f.value = P === be.Specific ? I : Hr({ focus: P }, { resolveItems: () => A.virtual.value.options, resolveActiveIndex: () => {
|
|
1505
|
-
var X,
|
|
1506
|
-
return (
|
|
1505
|
+
var X, K;
|
|
1506
|
+
return (K = (X = A.activeOptionIndex.value) != null ? X : A.virtual.value.options.findIndex((ae) => {
|
|
1507
1507
|
var re;
|
|
1508
1508
|
return !((re = A.virtual.value) != null && re.disabled(ae));
|
|
1509
|
-
})) != null ?
|
|
1509
|
+
})) != null ? K : null;
|
|
1510
1510
|
}, resolveDisabled: (X) => A.virtual.value.disabled(X), resolveId() {
|
|
1511
1511
|
throw new Error("Function not implemented.");
|
|
1512
1512
|
} }), c.value = L ?? 2;
|
|
@@ -1514,11 +1514,11 @@ let li = /* @__PURE__ */ Symbol("VirtualContext"), pu = R({ name: "VirtualProvid
|
|
|
1514
1514
|
}
|
|
1515
1515
|
let $ = g();
|
|
1516
1516
|
if ($.activeOptionIndex === null) {
|
|
1517
|
-
let X = $.options.findIndex((
|
|
1517
|
+
let X = $.options.findIndex((K) => !K.dataRef.disabled);
|
|
1518
1518
|
X !== -1 && ($.activeOptionIndex = X);
|
|
1519
1519
|
}
|
|
1520
|
-
let
|
|
1521
|
-
f.value =
|
|
1520
|
+
let Y = P === be.Specific ? I : Hr({ focus: P }, { resolveItems: () => $.options, resolveActiveIndex: () => $.activeOptionIndex, resolveId: (X) => X.id, resolveDisabled: (X) => X.dataRef.disabled });
|
|
1521
|
+
f.value = Y, c.value = L ?? 2, u.value = $.options;
|
|
1522
1522
|
});
|
|
1523
1523
|
}, selectOption(P) {
|
|
1524
1524
|
let I = u.value.find(($) => $.id === P);
|
|
@@ -1541,10 +1541,10 @@ let li = /* @__PURE__ */ Symbol("VirtualContext"), pu = R({ name: "VirtualProvid
|
|
|
1541
1541
|
return;
|
|
1542
1542
|
}
|
|
1543
1543
|
x && cancelAnimationFrame(x);
|
|
1544
|
-
let $ = g((
|
|
1545
|
-
f.value === null && A.isSelected(I.value.value) && ($.activeOptionIndex = $.options.indexOf(L)), u.value = $.options, f.value = $.activeOptionIndex, c.value = 2, $.options.some((
|
|
1546
|
-
let
|
|
1547
|
-
u.value =
|
|
1544
|
+
let $ = g((Y) => (Y.push(L), Y));
|
|
1545
|
+
f.value === null && A.isSelected(I.value.value) && ($.activeOptionIndex = $.options.indexOf(L)), u.value = $.options, f.value = $.activeOptionIndex, c.value = 2, $.options.some((Y) => !F(Y.dataRef.domRef)) && (x = requestAnimationFrame(() => {
|
|
1546
|
+
let Y = g();
|
|
1547
|
+
u.value = Y.options, f.value = Y.activeOptionIndex;
|
|
1548
1548
|
}));
|
|
1549
1549
|
}, unregisterOption(P, I) {
|
|
1550
1550
|
if (p !== null && cancelAnimationFrame(p), I && (h.value = !0), A.virtual.value) {
|
|
@@ -1552,8 +1552,8 @@ let li = /* @__PURE__ */ Symbol("VirtualContext"), pu = R({ name: "VirtualProvid
|
|
|
1552
1552
|
return;
|
|
1553
1553
|
}
|
|
1554
1554
|
let L = g(($) => {
|
|
1555
|
-
let
|
|
1556
|
-
return
|
|
1555
|
+
let Y = $.findIndex((X) => X.id === P);
|
|
1556
|
+
return Y !== -1 && $.splice(Y, 1), $;
|
|
1557
1557
|
});
|
|
1558
1558
|
u.value = L.options, f.value = L.activeOptionIndex, c.value = 2;
|
|
1559
1559
|
}, isSelected(P) {
|
|
@@ -1579,8 +1579,8 @@ let li = /* @__PURE__ */ Symbol("VirtualContext"), pu = R({ name: "VirtualProvid
|
|
|
1579
1579
|
}, { immediate: !0 });
|
|
1580
1580
|
}), () => {
|
|
1581
1581
|
var P, I, L;
|
|
1582
|
-
let { name: $, disabled:
|
|
1583
|
-
return de(fe, [...$ != null && C.value != null ? pa({ [$]: C.value }).map(([re, ce]) => de(Xt, ni({ features: Yt.Hidden, key: re, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: X, disabled:
|
|
1582
|
+
let { name: $, disabled: Y, form: X, ...K } = e, ae = { open: a.value === 0, disabled: Y, activeIndex: A.activeOptionIndex.value, activeOption: A.activeOptionIndex.value === null ? null : A.virtual.value ? A.virtual.value.options[(P = A.activeOptionIndex.value) != null ? P : 0] : (L = (I = A.options.value[A.activeOptionIndex.value]) == null ? void 0 : I.dataRef.value) != null ? L : null, value: C.value };
|
|
1583
|
+
return de(fe, [...$ != null && C.value != null ? pa({ [$]: C.value }).map(([re, ce]) => de(Xt, ni({ features: Yt.Hidden, key: re, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: X, disabled: Y, name: re, value: ce }))) : [], pe({ theirProps: { ...n, ...Qt(K, ["by", "defaultValue", "immediate", "modelValue", "multiple", "nullable", "onUpdate:modelValue", "virtual"]) }, ourProps: {}, slot: ae, slots: t, attrs: n, name: "Combobox" })]);
|
|
1584
1584
|
};
|
|
1585
1585
|
} });
|
|
1586
1586
|
R({ name: "ComboboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: null } }, setup(e, { attrs: t, slots: n }) {
|
|
@@ -1651,10 +1651,10 @@ let mu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
|
|
|
1651
1651
|
return F(s.inputRef) ? typeof e.displayValue < "u" && S !== void 0 ? (x = e.displayValue(S)) != null ? x : "" : typeof S == "string" ? S : "" : "";
|
|
1652
1652
|
});
|
|
1653
1653
|
ne(() => {
|
|
1654
|
-
ee([f, s.comboboxState, l], ([x, S], [
|
|
1654
|
+
ee([f, s.comboboxState, l], ([x, S], [O, A]) => {
|
|
1655
1655
|
if (d.value) return;
|
|
1656
1656
|
let M = F(s.inputRef);
|
|
1657
|
-
M && ((A === 0 && S === 1 || x !==
|
|
1657
|
+
M && ((A === 0 && S === 1 || x !== O) && (M.value = x), requestAnimationFrame(() => {
|
|
1658
1658
|
var P;
|
|
1659
1659
|
if (d.value || !M || ((P = l.value) == null ? void 0 : P.activeElement) !== M) return;
|
|
1660
1660
|
let { selectionStart: I, selectionEnd: L } = M;
|
|
@@ -1663,10 +1663,10 @@ let mu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
|
|
|
1663
1663
|
}, { immediate: !0 }), ee([s.comboboxState], ([x], [S]) => {
|
|
1664
1664
|
if (x === 0 && S === 1) {
|
|
1665
1665
|
if (d.value) return;
|
|
1666
|
-
let
|
|
1667
|
-
if (!
|
|
1668
|
-
let A =
|
|
1669
|
-
|
|
1666
|
+
let O = F(s.inputRef);
|
|
1667
|
+
if (!O) return;
|
|
1668
|
+
let A = O.value, { selectionStart: M, selectionEnd: P, selectionDirection: I } = O;
|
|
1669
|
+
O.value = "", O.value = A, I !== null ? O.setSelectionRange(M, P, I) : O.setSelectionRange(M, P);
|
|
1670
1670
|
}
|
|
1671
1671
|
});
|
|
1672
1672
|
});
|
|
@@ -1724,25 +1724,25 @@ let mu = R({ name: "ComboboxButton", props: { as: { type: [Object, String], defa
|
|
|
1724
1724
|
t("change", x), s.nullable.value && s.mode.value === 0 && x.target.value === "" && u(), s.openCombobox();
|
|
1725
1725
|
}
|
|
1726
1726
|
function y(x) {
|
|
1727
|
-
var S,
|
|
1727
|
+
var S, O, A;
|
|
1728
1728
|
let M = (S = x.relatedTarget) != null ? S : yt.find((P) => P !== x.currentTarget);
|
|
1729
|
-
if (d.value = !1, !((
|
|
1729
|
+
if (d.value = !1, !((O = F(s.optionsRef)) != null && O.contains(M)) && !((A = F(s.buttonRef)) != null && A.contains(M)) && s.comboboxState.value === 0) return x.preventDefault(), s.mode.value === 0 && (s.nullable.value && s.value.value === null ? u() : s.activationTrigger.value !== 1 && s.selectActiveOption()), s.closeCombobox();
|
|
1730
1730
|
}
|
|
1731
1731
|
function C(x) {
|
|
1732
|
-
var S,
|
|
1732
|
+
var S, O, A;
|
|
1733
1733
|
let M = (S = x.relatedTarget) != null ? S : yt.find((P) => P !== x.currentTarget);
|
|
1734
|
-
(
|
|
1734
|
+
(O = F(s.buttonRef)) != null && O.contains(M) || (A = F(s.optionsRef)) != null && A.contains(M) || s.disabled.value || s.immediate.value && s.comboboxState.value !== 0 && (s.openCombobox(), Bt().nextFrame(() => {
|
|
1735
1735
|
s.setActivationTrigger(1);
|
|
1736
1736
|
}));
|
|
1737
1737
|
}
|
|
1738
1738
|
let p = T(() => {
|
|
1739
|
-
var x, S,
|
|
1740
|
-
return (A = (
|
|
1739
|
+
var x, S, O, A;
|
|
1740
|
+
return (A = (O = (S = e.defaultValue) != null ? S : s.defaultValue.value !== void 0 ? (x = e.displayValue) == null ? void 0 : x.call(e, s.defaultValue.value) : null) != null ? O : s.defaultValue.value) != null ? A : "";
|
|
1741
1741
|
});
|
|
1742
1742
|
return () => {
|
|
1743
|
-
var x, S,
|
|
1744
|
-
let L = { open: s.comboboxState.value === 0 }, { displayValue: $, onChange:
|
|
1745
|
-
return pe({ ourProps:
|
|
1743
|
+
var x, S, O, A, M, P, I;
|
|
1744
|
+
let L = { open: s.comboboxState.value === 0 }, { displayValue: $, onChange: Y, ...X } = e, K = { "aria-controls": (x = s.optionsRef.value) == null ? void 0 : x.id, "aria-expanded": s.comboboxState.value === 0, "aria-activedescendant": s.activeOptionIndex.value === null ? void 0 : s.virtual.value ? (S = s.options.value.find((ae) => !s.virtual.value.disabled(ae.dataRef.value) && s.compare(ae.dataRef.value, s.virtual.value.options[s.activeOptionIndex.value]))) == null ? void 0 : S.id : (O = s.options.value[s.activeOptionIndex.value]) == null ? void 0 : O.id, "aria-labelledby": (P = (A = F(s.labelRef)) == null ? void 0 : A.id) != null ? P : (M = F(s.buttonRef)) == null ? void 0 : M.id, "aria-autocomplete": "list", id: i, onCompositionstart: h, onCompositionend: g, onKeydown: m, onInput: b, onFocus: C, onBlur: y, role: "combobox", type: (I = n.type) != null ? I : "text", tabIndex: 0, ref: s.inputRef, defaultValue: p.value, disabled: s.disabled.value === !0 ? !0 : void 0 };
|
|
1745
|
+
return pe({ ourProps: K, theirProps: X, slot: L, attrs: n, slots: r, features: Qe.RenderStrategy | Qe.Static, name: "ComboboxInput" });
|
|
1746
1746
|
};
|
|
1747
1747
|
} }), gu = R({ name: "ComboboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 }, hold: { type: [Boolean], default: !1 } }, setup(e, { attrs: t, slots: n, expose: r }) {
|
|
1748
1748
|
let a = Gt("ComboboxOptions"), o = `headlessui-combobox-options-${Te()}`;
|
|
@@ -2227,23 +2227,23 @@ let Kn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", ju = R({ name: "Dialog", inheri
|
|
|
2227
2227
|
let d = !1, u = T(() => e.role === "dialog" || e.role === "alertdialog" ? e.role : (d || (d = !0, console.warn(`Invalid role [${u}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)), "dialog")), f = E(0), c = Fn(), h = T(() => e.open === Kn && c !== null ? (c.value & Oe.Open) === Oe.Open : e.open), g = E(null), v = T(() => je(g));
|
|
2228
2228
|
if (a({ el: g, $el: g }), !(e.open !== Kn || c !== null)) throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
2229
2229
|
if (typeof h.value != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${h.value === Kn ? void 0 : e.open}`);
|
|
2230
|
-
let m = T(() => l.value && h.value ? 0 : 1), b = T(() => m.value === 0), y = T(() => f.value > 1), C = ke(Xr, null) !== null, [p, x] = _u(), { resolveContainers: S, mainTreeNodeRef:
|
|
2230
|
+
let m = T(() => l.value && h.value ? 0 : 1), b = T(() => m.value === 0), y = T(() => f.value > 1), C = ke(Xr, null) !== null, [p, x] = _u(), { resolveContainers: S, mainTreeNodeRef: O, MainTreeNode: A } = Du({ portals: p, defaultContainers: [T(() => {
|
|
2231
2231
|
var te;
|
|
2232
2232
|
return (te = ae.panelRef.value) != null ? te : g.value;
|
|
2233
2233
|
})] }), M = T(() => y.value ? "parent" : "leaf"), P = T(() => c !== null ? (c.value & Oe.Closing) === Oe.Closing : !1), I = T(() => C || P.value ? !1 : b.value), L = T(() => {
|
|
2234
2234
|
var te, ie, we;
|
|
2235
|
-
return (we = Array.from((ie = (te = v.value) == null ? void 0 : te.querySelectorAll("body > *")) != null ? ie : []).find((me) => me.id === "headlessui-portal-root" ? !1 : me.contains(F(
|
|
2235
|
+
return (we = Array.from((ie = (te = v.value) == null ? void 0 : te.querySelectorAll("body > *")) != null ? ie : []).find((me) => me.id === "headlessui-portal-root" ? !1 : me.contains(F(O)) && me instanceof HTMLElement)) != null ? we : null;
|
|
2236
2236
|
});
|
|
2237
2237
|
Qa(L, I);
|
|
2238
|
-
let $ = T(() => y.value ? !0 : b.value),
|
|
2238
|
+
let $ = T(() => y.value ? !0 : b.value), Y = T(() => {
|
|
2239
2239
|
var te, ie, we;
|
|
2240
|
-
return (we = Array.from((ie = (te = v.value) == null ? void 0 : te.querySelectorAll("[data-headlessui-portal]")) != null ? ie : []).find((me) => me.contains(F(
|
|
2240
|
+
return (we = Array.from((ie = (te = v.value) == null ? void 0 : te.querySelectorAll("[data-headlessui-portal]")) != null ? ie : []).find((me) => me.contains(F(O)) && me instanceof HTMLElement)) != null ? we : null;
|
|
2241
2241
|
});
|
|
2242
|
-
Qa(
|
|
2242
|
+
Qa(Y, $), $u({ type: "Dialog", enabled: T(() => m.value === 0), element: g, onUpdate: (te, ie) => {
|
|
2243
2243
|
if (ie === "Dialog") return Ce(te, { [zr.Add]: () => f.value += 1, [zr.Remove]: () => f.value -= 1 });
|
|
2244
2244
|
} });
|
|
2245
|
-
let X = va({ name: "DialogDescription", slot: T(() => ({ open: h.value })) }),
|
|
2246
|
-
|
|
2245
|
+
let X = va({ name: "DialogDescription", slot: T(() => ({ open: h.value })) }), K = E(null), ae = { titleId: K, panelRef: E(null), dialogState: m, setTitleId(te) {
|
|
2246
|
+
K.value !== te && (K.value = te);
|
|
2247
2247
|
}, close() {
|
|
2248
2248
|
t("close", !1);
|
|
2249
2249
|
} };
|
|
@@ -2272,7 +2272,7 @@ let Kn = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", ju = R({ name: "Dialog", inheri
|
|
|
2272
2272
|
});
|
|
2273
2273
|
we.observe(ie), te(() => we.disconnect());
|
|
2274
2274
|
}), () => {
|
|
2275
|
-
let { open: te, initialFocus: ie, ...we } = e, me = { ...n, ref: g, id: s, role: u.value, "aria-modal": m.value === 0 ? !0 : void 0, "aria-labelledby":
|
|
2275
|
+
let { open: te, initialFocus: ie, ...we } = e, me = { ...n, ref: g, id: s, role: u.value, "aria-modal": m.value === 0 ? !0 : void 0, "aria-labelledby": K.value, "aria-describedby": X.value }, Ae = { open: m.value === 0 };
|
|
2276
2276
|
return de(qr, { force: !0 }, () => [de(hi, () => de(Vu, { target: g.value }, () => de(qr, { force: !1 }, () => de(hn, { initialFocus: ie, containers: S, features: b.value ? Ce(M.value, { parent: hn.features.RestoreFocus, leaf: hn.features.All & ~hn.features.FocusLock }) : hn.features.None }, () => de(x, {}, () => pe({ ourProps: me, theirProps: { ...we, ...n }, slot: Ae, attrs: n, slots: r, visible: m.value === 0, features: Qe.RenderStrategy | Qe.Static, name: "Dialog" })))))), de(A)]);
|
|
2277
2277
|
};
|
|
2278
2278
|
} });
|
|
@@ -2679,8 +2679,8 @@ let td = R({ name: "RadioGroupOption", props: { as: { type: [Object, String], de
|
|
|
2679
2679
|
f.value &= -3;
|
|
2680
2680
|
}
|
|
2681
2681
|
return () => {
|
|
2682
|
-
let { value: p, disabled: x, ...S } = e,
|
|
2683
|
-
return pe({ ourProps: A, theirProps: S, slot:
|
|
2682
|
+
let { value: p, disabled: x, ...S } = e, O = { checked: v.value, disabled: g.value, active: !!(f.value & 2) }, A = { id: o, ref: d, role: "radio", "aria-checked": v.value ? "true" : "false", "aria-labelledby": s.value, "aria-describedby": l.value, "aria-disabled": g.value ? !0 : void 0, tabIndex: m.value, onClick: g.value ? void 0 : b, onFocus: g.value ? void 0 : y, onBlur: g.value ? void 0 : C };
|
|
2683
|
+
return pe({ ourProps: A, theirProps: S, slot: O, attrs: t, slots: n, name: "RadioGroupOption" });
|
|
2684
2684
|
};
|
|
2685
2685
|
} }), nd = R({ props: { onFocus: { type: Function, required: !0 } }, setup(e) {
|
|
2686
2686
|
let t = E(!0);
|
|
@@ -2725,7 +2725,7 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), od = R({ name: "TabGroup", em
|
|
|
2725
2725
|
let p = Ce(o.value === null ? 0 : Math.sign(v - o.value), { [-1]: () => 1, 0: () => Ce(Math.sign(v), { [-1]: () => 0, 0: () => 0, 1: () => 1 }), 1: () => 0 }), x = Ce(p, { 0: () => b.indexOf(C[0]), 1: () => b.indexOf(C[C.length - 1]) });
|
|
2726
2726
|
x !== -1 && (o.value = x), f.tabs.value = b, f.panels.value = y;
|
|
2727
2727
|
} else {
|
|
2728
|
-
let p = b.slice(0, v), x = [...b.slice(v), ...p].find((
|
|
2728
|
+
let p = b.slice(0, v), x = [...b.slice(v), ...p].find((O) => C.includes(O));
|
|
2729
2729
|
if (!x) return;
|
|
2730
2730
|
let S = (m = b.indexOf(x)) != null ? m : f.selectedIndex.value;
|
|
2731
2731
|
S === -1 && (S = f.selectedIndex.value), o.value = S, f.tabs.value = b, f.panels.value = y;
|
|
@@ -2802,7 +2802,7 @@ let ma = /* @__PURE__ */ Symbol("TabsSSRContext"), od = R({ name: "TabGroup", em
|
|
|
2802
2802
|
var C;
|
|
2803
2803
|
let p = y();
|
|
2804
2804
|
if (p === Ot.Success && i.activation.value === "auto") {
|
|
2805
|
-
let x = (C = je(s)) == null ? void 0 : C.activeElement, S = i.tabs.value.findIndex((
|
|
2805
|
+
let x = (C = je(s)) == null ? void 0 : C.activeElement, S = i.tabs.value.findIndex((O) => F(O) === x);
|
|
2806
2806
|
S !== -1 && i.setSelectedIndex(S);
|
|
2807
2807
|
}
|
|
2808
2808
|
return p;
|
|
@@ -2969,7 +2969,7 @@ let Ci = Qe.RenderStrategy, Gr = R({ props: { as: { type: [Object, String], defa
|
|
|
2969
2969
|
Ce(m.value, { hidden: () => v(y), visible: () => g(y) });
|
|
2970
2970
|
}
|
|
2971
2971
|
});
|
|
2972
|
-
let x = _t(e.enter), S = _t(e.enterFrom),
|
|
2972
|
+
let x = _t(e.enter), S = _t(e.enterFrom), O = _t(e.enterTo), A = _t(e.entered), M = _t(e.leave), P = _t(e.leaveFrom), I = _t(e.leaveTo);
|
|
2973
2973
|
ne(() => {
|
|
2974
2974
|
Ee(() => {
|
|
2975
2975
|
if (m.value === "visible") {
|
|
@@ -2979,19 +2979,19 @@ let Ci = Qe.RenderStrategy, Gr = R({ props: { as: { type: [Object, String], defa
|
|
|
2979
2979
|
});
|
|
2980
2980
|
});
|
|
2981
2981
|
function L($) {
|
|
2982
|
-
let
|
|
2983
|
-
!X || !(X instanceof HTMLElement) ||
|
|
2984
|
-
C.value = !1,
|
|
2985
|
-
}) : Za(X, M, P, I, A, (
|
|
2986
|
-
C.value = !1,
|
|
2982
|
+
let Y = b.value && !h.value, X = F(u);
|
|
2983
|
+
!X || !(X instanceof HTMLElement) || Y || (C.value = !0, c.value && i(), c.value || l(), $(c.value ? Za(X, x, S, O, A, (K) => {
|
|
2984
|
+
C.value = !1, K === Qr.Finished && s();
|
|
2985
|
+
}) : Za(X, M, P, I, A, (K) => {
|
|
2986
|
+
C.value = !1, K === Qr.Finished && (br(p) || (m.value = "hidden", v(y), d()));
|
|
2987
2987
|
})));
|
|
2988
2988
|
}
|
|
2989
2989
|
return ne(() => {
|
|
2990
|
-
ee([c], ($,
|
|
2990
|
+
ee([c], ($, Y, X) => {
|
|
2991
2991
|
L(X), b.value = !1;
|
|
2992
2992
|
}, { immediate: !0 });
|
|
2993
2993
|
}), Pe(ga, p), fa(T(() => Ce(m.value, { visible: Oe.Open, hidden: Oe.Closed }) | o.value)), () => {
|
|
2994
|
-
let { appear: $, show:
|
|
2994
|
+
let { appear: $, show: Y, enter: X, enterFrom: K, enterTo: ae, entered: re, leave: ce, leaveFrom: ve, leaveTo: te, ...ie } = e, we = { ref: u }, me = { ...ie, ...h.value && c.value && Ln.isServer ? { class: z([n.class, ie.class, ...x, ...S]) } : {} };
|
|
2995
2995
|
return pe({ theirProps: me, ourProps: we, slot: {}, slots: r, attrs: n, features: Ci, visible: m.value === "visible", name: "TransitionChild" });
|
|
2996
2996
|
};
|
|
2997
2997
|
} }), hd = Gr, ba = R({ inheritAttrs: !1, props: { as: { type: [Object, String], default: "div" }, show: { type: [Boolean], default: null }, unmount: { type: [Boolean], default: !0 }, appear: { type: [Boolean], default: !1 }, enter: { type: [String], default: "" }, enterFrom: { type: [String], default: "" }, enterTo: { type: [String], default: "" }, entered: { type: [String], default: "" }, leave: { type: [String], default: "" }, leaveFrom: { type: [String], default: "" }, leaveTo: { type: [String], default: "" } }, emits: { beforeEnter: () => !0, afterEnter: () => !0, beforeLeave: () => !0, afterLeave: () => !0 }, setup(e, { emit: t, attrs: n, slots: r }) {
|
|
@@ -3020,30 +3020,30 @@ const gd = { class: "dropdown-trigger-button" }, bd = /* @__PURE__ */ R({
|
|
|
3020
3020
|
setup(e) {
|
|
3021
3021
|
const t = e;
|
|
3022
3022
|
return (n, r) => {
|
|
3023
|
-
const a =
|
|
3024
|
-
return w(),
|
|
3023
|
+
const a = Q("base-icon");
|
|
3024
|
+
return w(), U(N(Xu), {
|
|
3025
3025
|
as: "div",
|
|
3026
3026
|
class: "dropdown-menu"
|
|
3027
3027
|
}, {
|
|
3028
3028
|
default: _(() => [
|
|
3029
|
-
|
|
3029
|
+
W(N(Qu), null, {
|
|
3030
3030
|
default: _(() => [
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3031
|
+
G(n.$slots, "trigger", {}, () => [
|
|
3032
|
+
k("div", gd, [
|
|
3033
|
+
k("span", null, H(e.text), 1),
|
|
3034
|
+
W(a, { icon: "i-fa7-regular:angle-down" })
|
|
3035
3035
|
])
|
|
3036
3036
|
], !0)
|
|
3037
3037
|
]),
|
|
3038
3038
|
_: 3
|
|
3039
3039
|
}),
|
|
3040
|
-
|
|
3040
|
+
W(Vo, null, {
|
|
3041
3041
|
default: _(() => [
|
|
3042
|
-
|
|
3042
|
+
W(N(Gu), {
|
|
3043
3043
|
class: z(["dropdown-items", { "left-0": t.position === "left", "right-0": t.position === "right" }])
|
|
3044
3044
|
}, {
|
|
3045
3045
|
default: _(() => [
|
|
3046
|
-
|
|
3046
|
+
G(n.$slots, "default", {}, void 0, !0)
|
|
3047
3047
|
]),
|
|
3048
3048
|
_: 3
|
|
3049
3049
|
}, 8, ["class"])
|
|
@@ -3061,12 +3061,12 @@ const gd = { class: "dropdown-trigger-button" }, bd = /* @__PURE__ */ R({
|
|
|
3061
3061
|
text: { default: "" }
|
|
3062
3062
|
},
|
|
3063
3063
|
setup(e) {
|
|
3064
|
-
return (t, n) => (w(),
|
|
3064
|
+
return (t, n) => (w(), U(N(Ku), null, {
|
|
3065
3065
|
default: _(({ active: r }) => [
|
|
3066
|
-
|
|
3067
|
-
|
|
3066
|
+
G(t.$slots, "default", { active: r }, () => [
|
|
3067
|
+
k("div", {
|
|
3068
3068
|
class: z([{ "dropdown-item-active": r }, "dropdown-item"])
|
|
3069
|
-
},
|
|
3069
|
+
}, H(e.text), 3)
|
|
3070
3070
|
], !0)
|
|
3071
3071
|
]),
|
|
3072
3072
|
_: 3
|
|
@@ -3102,7 +3102,7 @@ const gd = { class: "dropdown-trigger-button" }, bd = /* @__PURE__ */ R({
|
|
|
3102
3102
|
href: t.href,
|
|
3103
3103
|
class: z(["link", n])
|
|
3104
3104
|
}, [
|
|
3105
|
-
|
|
3105
|
+
G(o.$slots, "default", {}, void 0, !0)
|
|
3106
3106
|
], 8, xd));
|
|
3107
3107
|
}
|
|
3108
3108
|
}), kd = /* @__PURE__ */ oe(Sd, [["__scopeId", "data-v-232da412"]]), Od = /* @__PURE__ */ R({
|
|
@@ -3116,7 +3116,7 @@ const gd = { class: "dropdown-trigger-button" }, bd = /* @__PURE__ */ R({
|
|
|
3116
3116
|
class: z(`loader-${e.sample}`)
|
|
3117
3117
|
}, [
|
|
3118
3118
|
n[1] || (n[1] = Ie(" ", -1)),
|
|
3119
|
-
|
|
3119
|
+
G(t.$slots, "default", {}, () => [
|
|
3120
3120
|
n[0] || (n[0] = Ie("Loading...", -1))
|
|
3121
3121
|
], !0)
|
|
3122
3122
|
], 2));
|
|
@@ -3160,20 +3160,20 @@ const gd = { class: "dropdown-trigger-button" }, bd = /* @__PURE__ */ R({
|
|
|
3160
3160
|
}), ee(r, () => {
|
|
3161
3161
|
a.value = r.isOpen;
|
|
3162
3162
|
}), t({ isOpen: a }), (s, l) => {
|
|
3163
|
-
const d =
|
|
3164
|
-
return w(),
|
|
3163
|
+
const d = Q("base-icon"), u = Q("base-button");
|
|
3164
|
+
return w(), U(N(ba), {
|
|
3165
3165
|
appear: "",
|
|
3166
3166
|
show: a.value,
|
|
3167
3167
|
as: "template"
|
|
3168
3168
|
}, {
|
|
3169
3169
|
default: _(() => [
|
|
3170
|
-
|
|
3170
|
+
W(N(ju), {
|
|
3171
3171
|
as: "div",
|
|
3172
3172
|
onClose: l[1] || (l[1] = (f) => i()),
|
|
3173
3173
|
class: "relative z-60"
|
|
3174
3174
|
}, {
|
|
3175
3175
|
default: _(() => [
|
|
3176
|
-
|
|
3176
|
+
W(N(Gr), {
|
|
3177
3177
|
as: "template",
|
|
3178
3178
|
enter: "duration-300 ease-out",
|
|
3179
3179
|
"enter-from": "opacity-0",
|
|
@@ -3183,13 +3183,13 @@ const gd = { class: "dropdown-trigger-button" }, bd = /* @__PURE__ */ R({
|
|
|
3183
3183
|
"leave-to": "opacity-0"
|
|
3184
3184
|
}, {
|
|
3185
3185
|
default: _(() => [...l[2] || (l[2] = [
|
|
3186
|
-
|
|
3186
|
+
k("div", { class: "fixed inset-0 bg-black/10 backdrop-blur-sm" }, null, -1)
|
|
3187
3187
|
])]),
|
|
3188
3188
|
_: 1
|
|
3189
3189
|
}),
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3190
|
+
k("div", Pd, [
|
|
3191
|
+
k("div", Dd, [
|
|
3192
|
+
W(N(Gr), {
|
|
3193
3193
|
as: "template",
|
|
3194
3194
|
enter: "duration-300 ease-out",
|
|
3195
3195
|
"enter-from": "opacity-0 scale-95",
|
|
@@ -3199,7 +3199,7 @@ const gd = { class: "dropdown-trigger-button" }, bd = /* @__PURE__ */ R({
|
|
|
3199
3199
|
"leave-to": "opacity-0 scale-95"
|
|
3200
3200
|
}, {
|
|
3201
3201
|
default: _(() => [
|
|
3202
|
-
|
|
3202
|
+
W(N(Wu), {
|
|
3203
3203
|
class: z(["w-full p-4 transform overflow-hidden bg-white text-left align-middle shadow-xl transition-all dark:bg-slate-900", {
|
|
3204
3204
|
"max-w-sm": r.size === "sm",
|
|
3205
3205
|
"max-w-md": r.size === "md",
|
|
@@ -3211,9 +3211,9 @@ const gd = { class: "dropdown-trigger-button" }, bd = /* @__PURE__ */ R({
|
|
|
3211
3211
|
}])
|
|
3212
3212
|
}, {
|
|
3213
3213
|
default: _(() => [
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3214
|
+
k("div", Id, [
|
|
3215
|
+
k("h2", Md, H(e.title), 1),
|
|
3216
|
+
W(u, {
|
|
3217
3217
|
type: "button",
|
|
3218
3218
|
onClick: l[0] || (l[0] = (f) => i()),
|
|
3219
3219
|
variant: "text",
|
|
@@ -3221,13 +3221,13 @@ const gd = { class: "dropdown-trigger-button" }, bd = /* @__PURE__ */ R({
|
|
|
3221
3221
|
rounded: "full"
|
|
3222
3222
|
}, {
|
|
3223
3223
|
default: _(() => [
|
|
3224
|
-
|
|
3224
|
+
W(d, { icon: "i-fa7-solid:xmark" })
|
|
3225
3225
|
]),
|
|
3226
3226
|
_: 1
|
|
3227
3227
|
})
|
|
3228
3228
|
]),
|
|
3229
|
-
|
|
3230
|
-
|
|
3229
|
+
k("div", $d, [
|
|
3230
|
+
G(s.$slots, "default")
|
|
3231
3231
|
])
|
|
3232
3232
|
]),
|
|
3233
3233
|
_: 3
|
|
@@ -3282,13 +3282,13 @@ const gd = { class: "dropdown-trigger-button" }, bd = /* @__PURE__ */ R({
|
|
|
3282
3282
|
return !0;
|
|
3283
3283
|
};
|
|
3284
3284
|
return (c, h) => {
|
|
3285
|
-
const g =
|
|
3285
|
+
const g = Q("base-icon"), v = Q("base-button");
|
|
3286
3286
|
return w(), B("div", Ld, [
|
|
3287
|
-
|
|
3288
|
-
|
|
3287
|
+
k("div", null, [
|
|
3288
|
+
k("p", Fd, " Showing " + H(e.totalDocument ? 1 + (a.value - 1) * e.pageSize : 0) + " to " + H(a.value * e.pageSize > e.totalDocument ? e.totalDocument : a.value * e.pageSize) + " of " + H(e.totalDocument) + " entries ", 1)
|
|
3289
3289
|
]),
|
|
3290
3290
|
o.value > 1 ? (w(), B("div", _d, [
|
|
3291
|
-
o.value > 5 ? (w(),
|
|
3291
|
+
o.value > 5 ? (w(), U(v, {
|
|
3292
3292
|
key: 0,
|
|
3293
3293
|
disabled: a.value === 1,
|
|
3294
3294
|
variant: "text",
|
|
@@ -3296,11 +3296,11 @@ const gd = { class: "dropdown-trigger-button" }, bd = /* @__PURE__ */ R({
|
|
|
3296
3296
|
onClick: h[0] || (h[0] = (m) => s())
|
|
3297
3297
|
}, {
|
|
3298
3298
|
default: _(() => [
|
|
3299
|
-
|
|
3299
|
+
W(g, { icon: "i-fa7-solid:angles-left" })
|
|
3300
3300
|
]),
|
|
3301
3301
|
_: 1
|
|
3302
3302
|
}, 8, ["disabled"])) : V("", !0),
|
|
3303
|
-
o.value > 5 ? (w(),
|
|
3303
|
+
o.value > 5 ? (w(), U(v, {
|
|
3304
3304
|
key: 1,
|
|
3305
3305
|
disabled: a.value === 1,
|
|
3306
3306
|
variant: "text",
|
|
@@ -3308,12 +3308,12 @@ const gd = { class: "dropdown-trigger-button" }, bd = /* @__PURE__ */ R({
|
|
|
3308
3308
|
onClick: h[1] || (h[1] = (m) => l())
|
|
3309
3309
|
}, {
|
|
3310
3310
|
default: _(() => [
|
|
3311
|
-
|
|
3311
|
+
W(g, { icon: "i-fa7-solid:angle-left" })
|
|
3312
3312
|
]),
|
|
3313
3313
|
_: 1
|
|
3314
3314
|
}, 8, ["disabled"])) : V("", !0),
|
|
3315
3315
|
(w(!0), B(fe, null, Me(o.value, (m) => (w(), B(fe, { key: m }, [
|
|
3316
|
-
f(m) ? (w(),
|
|
3316
|
+
f(m) ? (w(), U(v, {
|
|
3317
3317
|
key: 0,
|
|
3318
3318
|
type: "button",
|
|
3319
3319
|
size: "sm",
|
|
@@ -3325,12 +3325,12 @@ const gd = { class: "dropdown-trigger-button" }, bd = /* @__PURE__ */ R({
|
|
|
3325
3325
|
})
|
|
3326
3326
|
}, {
|
|
3327
3327
|
default: _(() => [
|
|
3328
|
-
Ie(
|
|
3328
|
+
Ie(H(m), 1)
|
|
3329
3329
|
]),
|
|
3330
3330
|
_: 2
|
|
3331
3331
|
}, 1032, ["onClick", "class"])) : V("", !0)
|
|
3332
3332
|
], 64))), 128)),
|
|
3333
|
-
o.value > 5 ? (w(),
|
|
3333
|
+
o.value > 5 ? (w(), U(v, {
|
|
3334
3334
|
key: 2,
|
|
3335
3335
|
disabled: a.value === o.value,
|
|
3336
3336
|
variant: "text",
|
|
@@ -3338,11 +3338,11 @@ const gd = { class: "dropdown-trigger-button" }, bd = /* @__PURE__ */ R({
|
|
|
3338
3338
|
onClick: h[2] || (h[2] = (m) => d())
|
|
3339
3339
|
}, {
|
|
3340
3340
|
default: _(() => [
|
|
3341
|
-
|
|
3341
|
+
W(g, { icon: "i-fa7-solid:angle-right flex items-center justify-center self-center" })
|
|
3342
3342
|
]),
|
|
3343
3343
|
_: 1
|
|
3344
3344
|
}, 8, ["disabled"])) : V("", !0),
|
|
3345
|
-
o.value > 5 ? (w(),
|
|
3345
|
+
o.value > 5 ? (w(), U(v, {
|
|
3346
3346
|
key: 3,
|
|
3347
3347
|
disabled: a.value === o.value,
|
|
3348
3348
|
variant: "text",
|
|
@@ -3350,7 +3350,7 @@ const gd = { class: "dropdown-trigger-button" }, bd = /* @__PURE__ */ R({
|
|
|
3350
3350
|
onClick: h[3] || (h[3] = (m) => u())
|
|
3351
3351
|
}, {
|
|
3352
3352
|
default: _(() => [
|
|
3353
|
-
|
|
3353
|
+
W(g, { icon: "i-fa7-solid:angles-right" })
|
|
3354
3354
|
]),
|
|
3355
3355
|
_: 1
|
|
3356
3356
|
}, 8, ["disabled"])) : V("", !0)
|
|
@@ -3938,11 +3938,11 @@ function Oa(e, t) {
|
|
|
3938
3938
|
reference: p,
|
|
3939
3939
|
element: b,
|
|
3940
3940
|
placement: a
|
|
3941
|
-
}), S = Jr(Object.assign({}, b, x)),
|
|
3942
|
-
top: C.top -
|
|
3943
|
-
bottom:
|
|
3944
|
-
left: C.left -
|
|
3945
|
-
right:
|
|
3941
|
+
}), S = Jr(Object.assign({}, b, x)), O = u === bn ? S : p, A = {
|
|
3942
|
+
top: C.top - O.top + v.top,
|
|
3943
|
+
bottom: O.bottom - C.bottom + v.bottom,
|
|
3944
|
+
left: C.left - O.left + v.left,
|
|
3945
|
+
right: O.right - C.right + v.right
|
|
3946
3946
|
}, M = e.modifiersData.offset;
|
|
3947
3947
|
if (u === bn && M) {
|
|
3948
3948
|
var P = M[a];
|
|
@@ -4014,7 +4014,7 @@ function Oc(e) {
|
|
|
4014
4014
|
u.reset = !1, p = -1;
|
|
4015
4015
|
continue;
|
|
4016
4016
|
}
|
|
4017
|
-
var x = u.orderedModifiers[p], S = x.fn,
|
|
4017
|
+
var x = u.orderedModifiers[p], S = x.fn, O = x.options, A = O === void 0 ? {} : O, M = x.name;
|
|
4018
4018
|
typeof S == "function" && (u = S({
|
|
4019
4019
|
state: u,
|
|
4020
4020
|
options: A,
|
|
@@ -4116,8 +4116,8 @@ function Dc(e) {
|
|
|
4116
4116
|
function io(e) {
|
|
4117
4117
|
var t, n = e.popper, r = e.popperRect, a = e.placement, o = e.variation, i = e.offsets, s = e.position, l = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets, f = u === !0 ? Dc(i) : typeof u == "function" ? u(i) : i, c = f.x, h = c === void 0 ? 0 : c, g = f.y, v = g === void 0 ? 0 : g, m = i.hasOwnProperty("x"), b = i.hasOwnProperty("y"), y = ze, C = qe, p = window;
|
|
4118
4118
|
if (d) {
|
|
4119
|
-
var x = Nn(n), S = "clientHeight",
|
|
4120
|
-
x === rt(n) && (x = Dt(n), At(x).position !== "static" && s === "absolute" && (S = "scrollHeight",
|
|
4119
|
+
var x = Nn(n), S = "clientHeight", O = "clientWidth";
|
|
4120
|
+
x === rt(n) && (x = Dt(n), At(x).position !== "static" && s === "absolute" && (S = "scrollHeight", O = "scrollWidth")), x = x, (a === qe || (a === ze || a === nt) && o === Bn) && (C = tt, v -= x[S] - r.height, v *= l ? 1 : -1), (a === ze || (a === qe || a === tt) && o === Bn) && (y = nt, h -= x[O] - r.width, h *= l ? 1 : -1);
|
|
4121
4121
|
}
|
|
4122
4122
|
var A = Object.assign({
|
|
4123
4123
|
position: s
|
|
@@ -4213,7 +4213,7 @@ function Nc(e) {
|
|
|
4213
4213
|
rootBoundary: d,
|
|
4214
4214
|
padding: f,
|
|
4215
4215
|
altBoundary: u
|
|
4216
|
-
}), b = dt(t.placement), y = sn(t.placement), C = !y, p = ka(b), x = Vc(p), S = t.modifiersData.popperOffsets,
|
|
4216
|
+
}), b = dt(t.placement), y = sn(t.placement), C = !y, p = ka(b), x = Vc(p), S = t.modifiersData.popperOffsets, O = t.rects.reference, A = t.rects.popper, M = typeof v == "function" ? v(Object.assign({}, t.rects, {
|
|
4217
4217
|
placement: t.placement
|
|
4218
4218
|
})) : v, P = {
|
|
4219
4219
|
x: 0,
|
|
@@ -4221,13 +4221,13 @@ function Nc(e) {
|
|
|
4221
4221
|
};
|
|
4222
4222
|
if (S) {
|
|
4223
4223
|
if (o || s) {
|
|
4224
|
-
var I = p === "y" ? qe : ze, L = p === "y" ? tt : nt, $ = p === "y" ? "height" : "width",
|
|
4224
|
+
var I = p === "y" ? qe : ze, L = p === "y" ? tt : nt, $ = p === "y" ? "height" : "width", Y = S[p], X = S[p] + m[I], K = S[p] - m[L], ae = h ? -A[$] / 2 : 0, re = y === on ? O[$] : A[$], ce = y === on ? -A[$] : -O[$], ve = t.elements.arrow, te = h && ve ? xa(ve) : {
|
|
4225
4225
|
width: 0,
|
|
4226
4226
|
height: 0
|
|
4227
|
-
}, ie = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Li(), we = ie[I], me = ie[L], Ae = ir(0,
|
|
4227
|
+
}, ie = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Li(), we = ie[I], me = ie[L], Ae = ir(0, O[$], te[$]), Be = C ? O[$] / 2 - ae - Ae - we - M : re - Ae - we - M, ot = C ? -O[$] / 2 + ae + Ae + me + M : ce + Ae + me + M, Re = t.elements.arrow && Nn(t.elements.arrow), it = Re ? p === "y" ? Re.clientTop || 0 : Re.clientLeft || 0 : 0, Ze = t.modifiersData.offset ? t.modifiersData.offset[t.placement][p] : 0, mt = S[p] + Be - Ze - it, Mt = S[p] + ot - Ze;
|
|
4228
4228
|
if (o) {
|
|
4229
|
-
var wt = ir(h ? Pn(X, mt) : X,
|
|
4230
|
-
S[p] = wt, P[p] = wt -
|
|
4229
|
+
var wt = ir(h ? Pn(X, mt) : X, Y, h ? Tt(K, Mt) : K);
|
|
4230
|
+
S[p] = wt, P[p] = wt - Y;
|
|
4231
4231
|
}
|
|
4232
4232
|
if (s) {
|
|
4233
4233
|
var Kt = p === "x" ? qe : ze, Jt = p === "x" ? tt : nt, st = S[x], xt = st + m[Kt], $t = st - m[Jt], Rt = ir(h ? Pn(xt, mt) : xt, st, h ? Tt($t, Mt) : $t);
|
|
@@ -4301,28 +4301,28 @@ function Uc(e) {
|
|
|
4301
4301
|
flipVariations: g,
|
|
4302
4302
|
allowedAutoPlacements: v
|
|
4303
4303
|
}) : Ae);
|
|
4304
|
-
}, []), x = t.rects.reference, S = t.rects.popper,
|
|
4305
|
-
var I = p[P], L = dt(I), $ = sn(I) === on,
|
|
4304
|
+
}, []), x = t.rects.reference, S = t.rects.popper, O = /* @__PURE__ */ new Map(), A = !0, M = p[0], P = 0; P < p.length; P++) {
|
|
4305
|
+
var I = p[P], L = dt(I), $ = sn(I) === on, Y = [qe, tt].indexOf(L) >= 0, X = Y ? "width" : "height", K = Oa(t, {
|
|
4306
4306
|
placement: I,
|
|
4307
4307
|
boundary: u,
|
|
4308
4308
|
rootBoundary: f,
|
|
4309
4309
|
altBoundary: c,
|
|
4310
4310
|
padding: d
|
|
4311
|
-
}), ae =
|
|
4311
|
+
}), ae = Y ? $ ? nt : ze : $ ? tt : qe;
|
|
4312
4312
|
x[X] > S[X] && (ae = sr(ae));
|
|
4313
4313
|
var re = sr(ae), ce = [];
|
|
4314
|
-
if (o && ce.push(
|
|
4314
|
+
if (o && ce.push(K[L] <= 0), s && ce.push(K[ae] <= 0, K[re] <= 0), ce.every(function(me) {
|
|
4315
4315
|
return me;
|
|
4316
4316
|
})) {
|
|
4317
4317
|
M = I, A = !1;
|
|
4318
4318
|
break;
|
|
4319
4319
|
}
|
|
4320
|
-
|
|
4320
|
+
O.set(I, ce);
|
|
4321
4321
|
}
|
|
4322
4322
|
if (A)
|
|
4323
4323
|
for (var ve = g ? 3 : 1, te = function(Ae) {
|
|
4324
4324
|
var Be = p.find(function(ot) {
|
|
4325
|
-
var Re =
|
|
4325
|
+
var Re = O.get(ot);
|
|
4326
4326
|
if (Re)
|
|
4327
4327
|
return Re.slice(0, Ae).every(function(it) {
|
|
4328
4328
|
return it;
|
|
@@ -4379,8 +4379,8 @@ var Gc = {
|
|
|
4379
4379
|
function Jc(e) {
|
|
4380
4380
|
var t, n = e.state, r = e.name, a = e.options, o = n.elements.arrow, i = n.modifiersData.popperOffsets, s = dt(n.placement), l = ka(s), d = [ze, nt].indexOf(s) >= 0, u = d ? "height" : "width";
|
|
4381
4381
|
if (!(!o || !i)) {
|
|
4382
|
-
var f = Kc(a.padding, n), c = xa(o), h = l === "y" ? qe : ze, g = l === "y" ? tt : nt, v = n.rects.reference[u] + n.rects.reference[l] - i[l] - n.rects.popper[u], m = i[l] - n.rects.reference[l], b = Nn(o), y = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = v / 2 - m / 2, p = f[h], x = y - c[u] - f[g], S = y / 2 - c[u] / 2 + C,
|
|
4383
|
-
n.modifiersData[r] = (t = {}, t[A] =
|
|
4382
|
+
var f = Kc(a.padding, n), c = xa(o), h = l === "y" ? qe : ze, g = l === "y" ? tt : nt, v = n.rects.reference[u] + n.rects.reference[l] - i[l] - n.rects.popper[u], m = i[l] - n.rects.reference[l], b = Nn(o), y = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = v / 2 - m / 2, p = f[h], x = y - c[u] - f[g], S = y / 2 - c[u] / 2 + C, O = ir(p, S, x), A = l;
|
|
4383
|
+
n.modifiersData[r] = (t = {}, t[A] = O, t.centerOffset = O - S, t);
|
|
4384
4384
|
}
|
|
4385
4385
|
}
|
|
4386
4386
|
function Zc(e) {
|
|
@@ -4685,52 +4685,52 @@ var Ni = {
|
|
|
4685
4685
|
popperNode: o,
|
|
4686
4686
|
triggerNode: i
|
|
4687
4687
|
}), {
|
|
4688
|
-
hasContent:
|
|
4689
|
-
} = Kd(r, o, u), A = T(() => C.value !== null), M = T(() => c.value || !
|
|
4690
|
-
M.value || A.value || (
|
|
4691
|
-
},
|
|
4692
|
-
A.value || ($.clear(),
|
|
4688
|
+
hasContent: O
|
|
4689
|
+
} = Kd(r, o, u), A = T(() => C.value !== null), M = T(() => c.value || !O.value), P = T(() => p.value && !M.value), I = T(() => !f.value && !A.value), L = T(() => h.value ? `border: ${v.value}px solid transparent; margin: -${v.value}px;` : null), $ = Mr.debounce(x, b.value), Y = Mr.debounce(S, d.value), X = async () => {
|
|
4690
|
+
M.value || A.value || (Y.clear(), $());
|
|
4691
|
+
}, K = async () => {
|
|
4692
|
+
A.value || ($.clear(), Y());
|
|
4693
4693
|
}, ae = () => {
|
|
4694
|
-
p.value ?
|
|
4694
|
+
p.value ? K() : X();
|
|
4695
4695
|
};
|
|
4696
|
-
return ee([
|
|
4696
|
+
return ee([O, c], ([re, ce]) => {
|
|
4697
4697
|
p.value && (!re || ce) && S();
|
|
4698
4698
|
}), ee(p, (re) => {
|
|
4699
4699
|
re ? s.value = !0 : Mr.debounce(() => {
|
|
4700
4700
|
s.value = !1;
|
|
4701
4701
|
}, 200);
|
|
4702
4702
|
}), Ee(() => {
|
|
4703
|
-
A.value && (C.value ? $() :
|
|
4703
|
+
A.value && (C.value ? $() : Y());
|
|
4704
4704
|
}), Ee(() => {
|
|
4705
|
-
I.value && Gd(a,
|
|
4705
|
+
I.value && Gd(a, K);
|
|
4706
4706
|
}), (re, ce) => (w(), B("div", {
|
|
4707
4707
|
class: "inline-block",
|
|
4708
4708
|
style: Ye(N(L)),
|
|
4709
|
-
onMouseleave: ce[2] || (ce[2] = (ve) => e.hover &&
|
|
4709
|
+
onMouseleave: ce[2] || (ce[2] = (ve) => e.hover && K()),
|
|
4710
4710
|
ref: (ve, te) => {
|
|
4711
4711
|
te.popperContainerNode = ve, a.value = ve;
|
|
4712
4712
|
}
|
|
4713
|
-
}, [
|
|
4713
|
+
}, [k("div", {
|
|
4714
4714
|
ref: (ve, te) => {
|
|
4715
4715
|
te.triggerNode = ve, i.value = ve;
|
|
4716
4716
|
},
|
|
4717
4717
|
onMouseover: ce[0] || (ce[0] = (ve) => e.hover && X()),
|
|
4718
4718
|
onClick: ae,
|
|
4719
4719
|
onFocus: X,
|
|
4720
|
-
onKeyup: js(
|
|
4721
|
-
}, [
|
|
4720
|
+
onKeyup: js(K, ["esc"])
|
|
4721
|
+
}, [G(re.$slots, "default")], 40, sf), W(Vo, {
|
|
4722
4722
|
name: "fade"
|
|
4723
4723
|
}, {
|
|
4724
|
-
default: _(() => [Xe(
|
|
4725
|
-
onClick: ce[1] || (ce[1] = (ve) => !N(h) &&
|
|
4724
|
+
default: _(() => [Xe(k("div", {
|
|
4725
|
+
onClick: ce[1] || (ce[1] = (ve) => !N(h) && K()),
|
|
4726
4726
|
class: "popper",
|
|
4727
4727
|
ref: (ve, te) => {
|
|
4728
4728
|
te.popperNode = ve, o.value = ve;
|
|
4729
4729
|
}
|
|
4730
|
-
}, [
|
|
4730
|
+
}, [G(re.$slots, "content", {
|
|
4731
4731
|
close: N(S),
|
|
4732
4732
|
isOpen: s.value
|
|
4733
|
-
}, () => [Ie(
|
|
4733
|
+
}, () => [Ie(H(N(u)), 1)]), e.arrow ? (w(), U(of, {
|
|
4734
4734
|
key: 0
|
|
4735
4735
|
})) : V("", !0)], 512), [[Ws, N(P)]])]),
|
|
4736
4736
|
_: 3
|
|
@@ -4800,23 +4800,23 @@ const ji = /* @__PURE__ */ R({
|
|
|
4800
4800
|
}
|
|
4801
4801
|
o.value = !o.value;
|
|
4802
4802
|
};
|
|
4803
|
-
return t({ toggle: i, isOpen: o }), (s, l) => (w(),
|
|
4803
|
+
return t({ toggle: i, isOpen: o }), (s, l) => (w(), U(ur(N(uf)), Hs(s.$attrs, {
|
|
4804
4804
|
placement: n.placement,
|
|
4805
4805
|
show: o.value
|
|
4806
4806
|
}), {
|
|
4807
4807
|
content: _((d) => [
|
|
4808
4808
|
Xe((w(), B("div", null, [
|
|
4809
|
-
|
|
4809
|
+
G(s.$slots, "content", qs(zs(d)))
|
|
4810
4810
|
])), [
|
|
4811
4811
|
[N(Yd), a]
|
|
4812
4812
|
])
|
|
4813
4813
|
]),
|
|
4814
4814
|
default: _(() => [
|
|
4815
|
-
|
|
4815
|
+
k("button", {
|
|
4816
4816
|
ref_key: "ignoreOutsideRef",
|
|
4817
4817
|
ref: r
|
|
4818
4818
|
}, [
|
|
4819
|
-
|
|
4819
|
+
G(s.$slots, "default")
|
|
4820
4820
|
], 512)
|
|
4821
4821
|
]),
|
|
4822
4822
|
_: 3
|
|
@@ -4848,7 +4848,7 @@ const ji = /* @__PURE__ */ R({
|
|
|
4848
4848
|
"progress-2xl": n.size === "2xl"
|
|
4849
4849
|
}])
|
|
4850
4850
|
}, [
|
|
4851
|
-
|
|
4851
|
+
k("div", {
|
|
4852
4852
|
class: z(["progress-bar", {
|
|
4853
4853
|
"progress-primary": n.color === "primary",
|
|
4854
4854
|
"progress-secondary": n.color === "secondary",
|
|
@@ -4862,7 +4862,7 @@ const ji = /* @__PURE__ */ R({
|
|
|
4862
4862
|
width: a.value + "%"
|
|
4863
4863
|
})
|
|
4864
4864
|
}, [
|
|
4865
|
-
|
|
4865
|
+
G(o.$slots, "default", {}, void 0, !0)
|
|
4866
4866
|
], 6)
|
|
4867
4867
|
], 2));
|
|
4868
4868
|
}
|
|
@@ -4876,47 +4876,47 @@ const ji = /* @__PURE__ */ R({
|
|
|
4876
4876
|
setup(e) {
|
|
4877
4877
|
const t = le(e, "sitemap");
|
|
4878
4878
|
return (n, r) => (w(), B("div", ff, [
|
|
4879
|
-
t.value.title ? (w(), B("h1", pf,
|
|
4880
|
-
t.value.subtitle ? (w(), B("h2", vf,
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4879
|
+
t.value.title ? (w(), B("h1", pf, H(t.value.title), 1)) : V("", !0),
|
|
4880
|
+
t.value.subtitle ? (w(), B("h2", vf, H(t.value.subtitle), 1)) : V("", !0),
|
|
4881
|
+
k("nav", mf, [
|
|
4882
|
+
k("ul", null, [
|
|
4883
|
+
k("li", hf, [
|
|
4884
|
+
k("a", {
|
|
4885
4885
|
href: t.value.homepage.link
|
|
4886
4886
|
}, [
|
|
4887
|
-
Ie(
|
|
4888
|
-
t.value.homepage.desc ? (w(), B("small", bf,
|
|
4887
|
+
Ie(H(t.value.homepage.name) + " ", 1),
|
|
4888
|
+
t.value.homepage.desc ? (w(), B("small", bf, H(t.value.homepage.desc), 1)) : V("", !0)
|
|
4889
4889
|
], 8, gf),
|
|
4890
|
-
|
|
4890
|
+
k("ul", null, [
|
|
4891
4891
|
(w(!0), B(fe, null, Me(t.value.menu, (a) => (w(), B("li", {
|
|
4892
4892
|
key: a.name
|
|
4893
4893
|
}, [
|
|
4894
|
-
|
|
4894
|
+
k("a", {
|
|
4895
4895
|
href: a.link ?? ""
|
|
4896
4896
|
}, [
|
|
4897
|
-
Ie(
|
|
4898
|
-
|
|
4897
|
+
Ie(H(a.name) + " ", 1),
|
|
4898
|
+
k("small", null, H(a.desc), 1)
|
|
4899
4899
|
], 8, yf),
|
|
4900
4900
|
a.child ? (w(), B("ul", Af, [
|
|
4901
4901
|
(w(!0), B(fe, null, Me(a.child, (o) => (w(), B("li", {
|
|
4902
4902
|
key: o.name
|
|
4903
4903
|
}, [
|
|
4904
|
-
|
|
4904
|
+
k("a", {
|
|
4905
4905
|
href: o.link ?? ""
|
|
4906
4906
|
}, [
|
|
4907
|
-
Ie(
|
|
4908
|
-
|
|
4907
|
+
Ie(H(o.name) + " ", 1),
|
|
4908
|
+
k("small", null, H(o.desc), 1)
|
|
4909
4909
|
], 8, wf),
|
|
4910
4910
|
o.child ? (w(), B("ul", xf, [
|
|
4911
4911
|
(w(!0), B(fe, null, Me(o.child, (i) => (w(), B("li", {
|
|
4912
4912
|
key: i.name
|
|
4913
4913
|
}, [
|
|
4914
|
-
|
|
4914
|
+
k("a", {
|
|
4915
4915
|
href: i.link ?? "",
|
|
4916
4916
|
class: "multi"
|
|
4917
4917
|
}, [
|
|
4918
|
-
Ie(
|
|
4919
|
-
|
|
4918
|
+
Ie(H(i.name) + " ", 1),
|
|
4919
|
+
k("small", null, H(i.desc), 1)
|
|
4920
4920
|
], 8, Sf)
|
|
4921
4921
|
]))), 128))
|
|
4922
4922
|
])) : V("", !0)
|
|
@@ -4964,23 +4964,23 @@ const ji = /* @__PURE__ */ R({
|
|
|
4964
4964
|
r("choosen", i);
|
|
4965
4965
|
};
|
|
4966
4966
|
return (i, s) => {
|
|
4967
|
-
const l =
|
|
4967
|
+
const l = Q("base-icon");
|
|
4968
4968
|
return w(), B("div", Tf, [
|
|
4969
4969
|
(w(!0), B(fe, null, Me(a.value, (d, u) => (w(), B(fe, { key: u }, [
|
|
4970
|
-
|
|
4970
|
+
k("div", {
|
|
4971
4971
|
class: "step-body",
|
|
4972
4972
|
onClick: (f) => o(d)
|
|
4973
4973
|
}, [
|
|
4974
|
-
|
|
4974
|
+
k("div", {
|
|
4975
4975
|
class: z(["step-icon-container", { active: d.active }])
|
|
4976
4976
|
}, [
|
|
4977
|
-
d.icon ? (w(),
|
|
4977
|
+
d.icon ? (w(), U(l, {
|
|
4978
4978
|
key: 0,
|
|
4979
4979
|
icon: d.icon,
|
|
4980
4980
|
class: "step-icon"
|
|
4981
|
-
}, null, 8, ["icon"])) : (w(), B("div", Pf,
|
|
4981
|
+
}, null, 8, ["icon"])) : (w(), B("div", Pf, H(u + 1), 1))
|
|
4982
4982
|
], 2),
|
|
4983
|
-
n.showLabel ? (w(), B("p", Df,
|
|
4983
|
+
n.showLabel ? (w(), B("p", Df, H(d.label), 1)) : V("", !0)
|
|
4984
4984
|
], 8, Bf),
|
|
4985
4985
|
u < a.value.length - 1 ? (w(), B("div", {
|
|
4986
4986
|
key: 0,
|
|
@@ -4993,9 +4993,9 @@ const ji = /* @__PURE__ */ R({
|
|
|
4993
4993
|
}), Mf = /* @__PURE__ */ oe(If, [["__scopeId", "data-v-3526c236"]]), Zr = /* @__PURE__ */ R({
|
|
4994
4994
|
__name: "base-tab",
|
|
4995
4995
|
setup(e) {
|
|
4996
|
-
return (t, n) => (w(),
|
|
4996
|
+
return (t, n) => (w(), U(N(sd), { as: "template" }, {
|
|
4997
4997
|
default: _(({ selected: r }) => [
|
|
4998
|
-
|
|
4998
|
+
G(t.$slots, "default", { selected: r })
|
|
4999
4999
|
]),
|
|
5000
5000
|
_: 3
|
|
5001
5001
|
}));
|
|
@@ -5003,9 +5003,9 @@ const ji = /* @__PURE__ */ R({
|
|
|
5003
5003
|
}), Wi = /* @__PURE__ */ R({
|
|
5004
5004
|
__name: "base-tab-group",
|
|
5005
5005
|
setup(e) {
|
|
5006
|
-
return (t, n) => (w(),
|
|
5006
|
+
return (t, n) => (w(), U(N(od), { as: "div" }, {
|
|
5007
5007
|
default: _(() => [
|
|
5008
|
-
|
|
5008
|
+
G(t.$slots, "default")
|
|
5009
5009
|
]),
|
|
5010
5010
|
_: 3
|
|
5011
5011
|
}));
|
|
@@ -5013,9 +5013,9 @@ const ji = /* @__PURE__ */ R({
|
|
|
5013
5013
|
}), Hi = /* @__PURE__ */ R({
|
|
5014
5014
|
__name: "base-tab-list",
|
|
5015
5015
|
setup(e) {
|
|
5016
|
-
return (t, n) => (w(),
|
|
5016
|
+
return (t, n) => (w(), U(N(id), null, {
|
|
5017
5017
|
default: _(() => [
|
|
5018
|
-
|
|
5018
|
+
G(t.$slots, "default")
|
|
5019
5019
|
]),
|
|
5020
5020
|
_: 3
|
|
5021
5021
|
}));
|
|
@@ -5023,9 +5023,9 @@ const ji = /* @__PURE__ */ R({
|
|
|
5023
5023
|
}), ea = /* @__PURE__ */ R({
|
|
5024
5024
|
__name: "base-tab-panel",
|
|
5025
5025
|
setup(e) {
|
|
5026
|
-
return (t, n) => (w(),
|
|
5026
|
+
return (t, n) => (w(), U(N(ud), null, {
|
|
5027
5027
|
default: _(() => [
|
|
5028
|
-
|
|
5028
|
+
G(t.$slots, "default")
|
|
5029
5029
|
]),
|
|
5030
5030
|
_: 3
|
|
5031
5031
|
}));
|
|
@@ -5033,9 +5033,9 @@ const ji = /* @__PURE__ */ R({
|
|
|
5033
5033
|
}), qi = /* @__PURE__ */ R({
|
|
5034
5034
|
__name: "base-tab-panels",
|
|
5035
5035
|
setup(e) {
|
|
5036
|
-
return (t, n) => (w(),
|
|
5036
|
+
return (t, n) => (w(), U(N(ld), null, {
|
|
5037
5037
|
default: _(() => [
|
|
5038
|
-
|
|
5038
|
+
G(t.$slots, "default")
|
|
5039
5039
|
]),
|
|
5040
5040
|
_: 3
|
|
5041
5041
|
}));
|
|
@@ -5043,25 +5043,25 @@ const ji = /* @__PURE__ */ R({
|
|
|
5043
5043
|
}), $f = {}, Rf = { class: "table-container" }, Lf = { class: "table basic-table" };
|
|
5044
5044
|
function Ff(e, t) {
|
|
5045
5045
|
return w(), B("div", Rf, [
|
|
5046
|
-
|
|
5047
|
-
|
|
5046
|
+
k("table", Lf, [
|
|
5047
|
+
G(e.$slots, "default", {}, void 0, !0)
|
|
5048
5048
|
])
|
|
5049
5049
|
]);
|
|
5050
5050
|
}
|
|
5051
5051
|
const _f = /* @__PURE__ */ oe($f, [["render", Ff], ["__scopeId", "data-v-d2d76ce9"]]), Vf = {}, Nf = { class: "timeline-root" };
|
|
5052
5052
|
function jf(e, t) {
|
|
5053
5053
|
return w(), B("div", Nf, [
|
|
5054
|
-
|
|
5054
|
+
G(e.$slots, "default", {}, void 0, !0)
|
|
5055
5055
|
]);
|
|
5056
5056
|
}
|
|
5057
5057
|
const Wf = /* @__PURE__ */ oe(Vf, [["render", jf], ["__scopeId", "data-v-cd7a6f00"]]), Hf = {}, qf = { class: "timeline-body" }, zf = { class: "timeline-point" }, Uf = { class: "timeline-content" };
|
|
5058
5058
|
function Yf(e, t) {
|
|
5059
5059
|
return w(), B("div", qf, [
|
|
5060
|
-
|
|
5061
|
-
|
|
5060
|
+
k("div", zf, [
|
|
5061
|
+
G(e.$slots, "point", {}, void 0, !0)
|
|
5062
5062
|
]),
|
|
5063
|
-
|
|
5064
|
-
|
|
5063
|
+
k("div", Uf, [
|
|
5064
|
+
G(e.$slots, "content", {}, void 0, !0)
|
|
5065
5065
|
])
|
|
5066
5066
|
]);
|
|
5067
5067
|
}
|
|
@@ -5133,17 +5133,17 @@ const ep = ["data-testid"], tp = { class: "self-start mt-0.5" }, np = {
|
|
|
5133
5133
|
s > -1 && n.value.splice(s, 1);
|
|
5134
5134
|
}, o = e;
|
|
5135
5135
|
return t({ toast: r, remove: a }), (i, s) => {
|
|
5136
|
-
const l =
|
|
5136
|
+
const l = Q("base-icon"), d = Q("base-button");
|
|
5137
5137
|
return n.value.length > 0 ? (w(), B("div", {
|
|
5138
5138
|
key: 0,
|
|
5139
5139
|
class: "toast-container",
|
|
5140
5140
|
"data-testid": o.dataTestid
|
|
5141
5141
|
}, [
|
|
5142
|
-
(w(!0), B(fe, null, Me(n.value, (u) =>
|
|
5142
|
+
(w(!0), B(fe, null, Me(n.value, (u) => G(i.$slots, "default", {
|
|
5143
5143
|
key: u,
|
|
5144
5144
|
data: u
|
|
5145
5145
|
}, () => [
|
|
5146
|
-
|
|
5146
|
+
k("div", {
|
|
5147
5147
|
class: z(["toast", {
|
|
5148
5148
|
"toast-primary": u.color === "primary",
|
|
5149
5149
|
"toast-secondary": u.color === "secondary",
|
|
@@ -5153,27 +5153,27 @@ const ep = ["data-testid"], tp = { class: "self-start mt-0.5" }, np = {
|
|
|
5153
5153
|
"toast-danger": u.color === "danger"
|
|
5154
5154
|
}])
|
|
5155
5155
|
}, [
|
|
5156
|
-
|
|
5156
|
+
k("div", tp, [
|
|
5157
5157
|
u.color === "primary" ? (w(), B("i", np)) : V("", !0),
|
|
5158
5158
|
u.color === "info" ? (w(), B("i", rp)) : V("", !0),
|
|
5159
5159
|
u.color === "success" ? (w(), B("i", ap)) : V("", !0),
|
|
5160
5160
|
u.color === "warning" ? (w(), B("i", op)) : V("", !0),
|
|
5161
5161
|
u.color === "danger" ? (w(), B("i", ip)) : V("", !0)
|
|
5162
5162
|
]),
|
|
5163
|
-
|
|
5164
|
-
Ie(
|
|
5165
|
-
|
|
5166
|
-
(w(!0), B(fe, null, Me(u.lists, (f) => (w(), B("li", { key: f }, "- " +
|
|
5163
|
+
k("div", sp, [
|
|
5164
|
+
Ie(H(u.message) + " ", 1),
|
|
5165
|
+
k("ul", null, [
|
|
5166
|
+
(w(!0), B(fe, null, Me(u.lists, (f) => (w(), B("li", { key: f }, "- " + H(f), 1))), 128))
|
|
5167
5167
|
])
|
|
5168
5168
|
]),
|
|
5169
|
-
|
|
5169
|
+
W(d, {
|
|
5170
5170
|
type: "button",
|
|
5171
5171
|
onClick: (f) => a(u.id),
|
|
5172
5172
|
variant: "text",
|
|
5173
5173
|
class: "toast-close-button"
|
|
5174
5174
|
}, {
|
|
5175
5175
|
default: _(() => [
|
|
5176
|
-
|
|
5176
|
+
W(l, {
|
|
5177
5177
|
icon: "i-fa7-solid:xmark",
|
|
5178
5178
|
class: "w-4 h-4"
|
|
5179
5179
|
})
|
|
@@ -5386,8 +5386,8 @@ var Ep = function(t, n) {
|
|
|
5386
5386
|
function Tp(e) {
|
|
5387
5387
|
var t, n = e.state, r = e.name, a = e.options, o = n.elements.arrow, i = n.modifiersData.popperOffsets, s = ct(n.placement), l = Ba(s), d = [Ve, Ke].indexOf(s) >= 0, u = d ? "height" : "width";
|
|
5388
5388
|
if (!(!o || !i)) {
|
|
5389
|
-
var f = Ep(a.padding, n), c = Ta(o), h = l === "y" ? _e : Ve, g = l === "y" ? Ge : Ke, v = n.rects.reference[u] + n.rects.reference[l] - i[l] - n.rects.popper[u], m = i[l] - n.rects.reference[l], b = Hn(o), y = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = v / 2 - m / 2, p = f[h], x = y - c[u] - f[g], S = y / 2 - c[u] / 2 + C,
|
|
5390
|
-
n.modifiersData[r] = (t = {}, t[A] =
|
|
5389
|
+
var f = Ep(a.padding, n), c = Ta(o), h = l === "y" ? _e : Ve, g = l === "y" ? Ge : Ke, v = n.rects.reference[u] + n.rects.reference[l] - i[l] - n.rects.popper[u], m = i[l] - n.rects.reference[l], b = Hn(o), y = b ? l === "y" ? b.clientHeight || 0 : b.clientWidth || 0 : 0, C = v / 2 - m / 2, p = f[h], x = y - c[u] - f[g], S = y / 2 - c[u] / 2 + C, O = Cn(p, S, x), A = l;
|
|
5390
|
+
n.modifiersData[r] = (t = {}, t[A] = O, t.centerOffset = O - S, t);
|
|
5391
5391
|
}
|
|
5392
5392
|
}
|
|
5393
5393
|
function Bp(e) {
|
|
@@ -5422,12 +5422,12 @@ function Ip(e) {
|
|
|
5422
5422
|
function fo(e) {
|
|
5423
5423
|
var t, n = e.popper, r = e.popperRect, a = e.placement, o = e.variation, i = e.offsets, s = e.position, l = e.gpuAcceleration, d = e.adaptive, u = e.roundOffsets, f = e.isFixed, c = u === !0 ? Ip(i) : typeof u == "function" ? u(i) : i, h = c.x, g = h === void 0 ? 0 : h, v = c.y, m = v === void 0 ? 0 : v, b = i.hasOwnProperty("x"), y = i.hasOwnProperty("y"), C = Ve, p = _e, x = window;
|
|
5424
5424
|
if (d) {
|
|
5425
|
-
var S = Hn(n),
|
|
5426
|
-
if (S === at(n) && (S = It(n), vt(S).position !== "static" && s === "absolute" && (
|
|
5425
|
+
var S = Hn(n), O = "clientHeight", A = "clientWidth";
|
|
5426
|
+
if (S === at(n) && (S = It(n), vt(S).position !== "static" && s === "absolute" && (O = "scrollHeight", A = "scrollWidth")), S = S, a === _e || (a === Ve || a === Ke) && o === Dn) {
|
|
5427
5427
|
p = Ge;
|
|
5428
5428
|
var M = f && x.visualViewport ? x.visualViewport.height : (
|
|
5429
5429
|
// $FlowFixMe[prop-missing]
|
|
5430
|
-
S[
|
|
5430
|
+
S[O]
|
|
5431
5431
|
);
|
|
5432
5432
|
m -= M - r.height, m *= l ? 1 : -1;
|
|
5433
5433
|
}
|
|
@@ -5644,11 +5644,11 @@ function In(e, t) {
|
|
|
5644
5644
|
reference: p,
|
|
5645
5645
|
element: b,
|
|
5646
5646
|
placement: a
|
|
5647
|
-
}), S = ta(Object.assign({}, b, x)),
|
|
5648
|
-
top: C.top -
|
|
5649
|
-
bottom:
|
|
5650
|
-
left: C.left -
|
|
5651
|
-
right:
|
|
5647
|
+
}), S = ta(Object.assign({}, b, x)), O = u === yn ? S : p, A = {
|
|
5648
|
+
top: C.top - O.top + v.top,
|
|
5649
|
+
bottom: O.bottom - C.bottom + v.bottom,
|
|
5650
|
+
left: C.left - O.left + v.left,
|
|
5651
|
+
right: O.right - C.right + v.right
|
|
5652
5652
|
}, M = e.modifiersData.offset;
|
|
5653
5653
|
if (u === yn && M) {
|
|
5654
5654
|
var P = M[a];
|
|
@@ -5697,28 +5697,28 @@ function Up(e) {
|
|
|
5697
5697
|
flipVariations: g,
|
|
5698
5698
|
allowedAutoPlacements: v
|
|
5699
5699
|
}) : Ae);
|
|
5700
|
-
}, []), x = t.rects.reference, S = t.rects.popper,
|
|
5701
|
-
var I = p[P], L = ct(I), $ = fn(I) === ln,
|
|
5700
|
+
}, []), x = t.rects.reference, S = t.rects.popper, O = /* @__PURE__ */ new Map(), A = !0, M = p[0], P = 0; P < p.length; P++) {
|
|
5701
|
+
var I = p[P], L = ct(I), $ = fn(I) === ln, Y = [_e, Ge].indexOf(L) >= 0, X = Y ? "width" : "height", K = In(t, {
|
|
5702
5702
|
placement: I,
|
|
5703
5703
|
boundary: u,
|
|
5704
5704
|
rootBoundary: f,
|
|
5705
5705
|
altBoundary: c,
|
|
5706
5706
|
padding: d
|
|
5707
|
-
}), ae =
|
|
5707
|
+
}), ae = Y ? $ ? Ke : Ve : $ ? Ge : _e;
|
|
5708
5708
|
x[X] > S[X] && (ae = lr(ae));
|
|
5709
5709
|
var re = lr(ae), ce = [];
|
|
5710
|
-
if (o && ce.push(
|
|
5710
|
+
if (o && ce.push(K[L] <= 0), s && ce.push(K[ae] <= 0, K[re] <= 0), ce.every(function(me) {
|
|
5711
5711
|
return me;
|
|
5712
5712
|
})) {
|
|
5713
5713
|
M = I, A = !1;
|
|
5714
5714
|
break;
|
|
5715
5715
|
}
|
|
5716
|
-
|
|
5716
|
+
O.set(I, ce);
|
|
5717
5717
|
}
|
|
5718
5718
|
if (A)
|
|
5719
5719
|
for (var ve = g ? 3 : 1, te = function(Ae) {
|
|
5720
5720
|
var Be = p.find(function(ot) {
|
|
5721
|
-
var Re =
|
|
5721
|
+
var Re = O.get(ot);
|
|
5722
5722
|
if (Re)
|
|
5723
5723
|
return Re.slice(0, Ae).every(function(it) {
|
|
5724
5724
|
return it;
|
|
@@ -5831,7 +5831,7 @@ function nv(e) {
|
|
|
5831
5831
|
rootBoundary: d,
|
|
5832
5832
|
padding: f,
|
|
5833
5833
|
altBoundary: u
|
|
5834
|
-
}), b = ct(t.placement), y = fn(t.placement), C = !y, p = Ba(b), x = tv(p), S = t.modifiersData.popperOffsets,
|
|
5834
|
+
}), b = ct(t.placement), y = fn(t.placement), C = !y, p = Ba(b), x = tv(p), S = t.modifiersData.popperOffsets, O = t.rects.reference, A = t.rects.popper, M = typeof v == "function" ? v(Object.assign({}, t.rects, {
|
|
5835
5835
|
placement: t.placement
|
|
5836
5836
|
})) : v, P = typeof M == "number" ? {
|
|
5837
5837
|
mainAxis: M,
|
|
@@ -5845,14 +5845,14 @@ function nv(e) {
|
|
|
5845
5845
|
};
|
|
5846
5846
|
if (S) {
|
|
5847
5847
|
if (o) {
|
|
5848
|
-
var $,
|
|
5848
|
+
var $, Y = p === "y" ? _e : Ve, X = p === "y" ? Ge : Ke, K = p === "y" ? "height" : "width", ae = S[p], re = ae + m[Y], ce = ae - m[X], ve = h ? -A[K] / 2 : 0, te = y === ln ? O[K] : A[K], ie = y === ln ? -A[K] : -O[K], we = t.elements.arrow, me = h && we ? Ta(we) : {
|
|
5849
5849
|
width: 0,
|
|
5850
5850
|
height: 0
|
|
5851
|
-
}, Ae = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ki(), Be = Ae[
|
|
5851
|
+
}, Ae = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Ki(), Be = Ae[Y], ot = Ae[X], Re = Cn(0, O[K], me[K]), it = C ? O[K] / 2 - ve - Re - Be - P.mainAxis : te - Re - Be - P.mainAxis, Ze = C ? -O[K] / 2 + ve + Re + ot + P.mainAxis : ie + Re + ot + P.mainAxis, mt = t.elements.arrow && Hn(t.elements.arrow), Mt = mt ? p === "y" ? mt.clientTop || 0 : mt.clientLeft || 0 : 0, wt = ($ = I?.[p]) != null ? $ : 0, Kt = ae + it - wt - Mt, Jt = ae + Ze - wt, st = Cn(h ? dr(re, Kt) : re, ae, h ? qt(ce, Jt) : ce);
|
|
5852
5852
|
S[p] = st, L[p] = st - ae;
|
|
5853
5853
|
}
|
|
5854
5854
|
if (s) {
|
|
5855
|
-
var xt, $t = p === "x" ? _e : Ve, Rt = p === "x" ? Ge : Ke, ht = S[x], St = x === "y" ? "height" : "width", vn = ht + m[$t], Lt = ht - m[Rt], mn = [_e, Ve].indexOf(b) !== -1, qn = (xt = I?.[x]) != null ? xt : 0, zn = mn ? vn : ht -
|
|
5855
|
+
var xt, $t = p === "x" ? _e : Ve, Rt = p === "x" ? Ge : Ke, ht = S[x], St = x === "y" ? "height" : "width", vn = ht + m[$t], Lt = ht - m[Rt], mn = [_e, Ve].indexOf(b) !== -1, qn = (xt = I?.[x]) != null ? xt : 0, zn = mn ? vn : ht - O[St] - A[St] - qn + P.altAxis, Un = mn ? ht + O[St] + A[St] - qn - P.altAxis : Lt, Yn = h && mn ? Cp(zn, ht, Un) : Cn(h ? zn : vn, ht, h ? Un : Lt);
|
|
5856
5856
|
S[x] = Yn, L[x] = Yn - ht;
|
|
5857
5857
|
}
|
|
5858
5858
|
t.modifiersData[r] = L;
|
|
@@ -6005,7 +6005,7 @@ function fv(e) {
|
|
|
6005
6005
|
u.reset = !1, p = -1;
|
|
6006
6006
|
continue;
|
|
6007
6007
|
}
|
|
6008
|
-
var x = u.orderedModifiers[p], S = x.fn,
|
|
6008
|
+
var x = u.orderedModifiers[p], S = x.fn, O = x.options, A = O === void 0 ? {} : O, M = x.name;
|
|
6009
6009
|
typeof S == "function" && (u = S({
|
|
6010
6010
|
state: u,
|
|
6011
6011
|
options: A,
|
|
@@ -6387,7 +6387,7 @@ function Rv(e, t) {
|
|
|
6387
6387
|
};
|
|
6388
6388
|
if (!n.render)
|
|
6389
6389
|
return p;
|
|
6390
|
-
var x = n.render(p), S = x.popper,
|
|
6390
|
+
var x = n.render(p), S = x.popper, O = x.onUpdate;
|
|
6391
6391
|
S.setAttribute("data-tippy-root", ""), S.id = "tippy-" + p.id, p.popper = S, e._tippy = p, S._tippy = p;
|
|
6392
6392
|
var A = y.map(function(D) {
|
|
6393
6393
|
return D.fn(p);
|
|
@@ -6395,7 +6395,7 @@ function Rv(e, t) {
|
|
|
6395
6395
|
return mt(), ve(), ae(), re("onCreate", [p]), n.showOnCreate && vn(), S.addEventListener("mouseenter", function() {
|
|
6396
6396
|
p.props.interactive && p.state.isVisible && p.clearDelayTimeouts();
|
|
6397
6397
|
}), S.addEventListener("mouseleave", function() {
|
|
6398
|
-
p.props.interactive && p.props.trigger.indexOf("mouseenter") >= 0 &&
|
|
6398
|
+
p.props.interactive && p.props.trigger.indexOf("mouseenter") >= 0 && Y().addEventListener("mousemove", g);
|
|
6399
6399
|
}), p;
|
|
6400
6400
|
function P() {
|
|
6401
6401
|
var D = p.props.touch;
|
|
@@ -6411,14 +6411,14 @@ function Rv(e, t) {
|
|
|
6411
6411
|
function $() {
|
|
6412
6412
|
return v || e;
|
|
6413
6413
|
}
|
|
6414
|
-
function
|
|
6414
|
+
function Y() {
|
|
6415
6415
|
var D = $().parentNode;
|
|
6416
6416
|
return D ? us(D) : document;
|
|
6417
6417
|
}
|
|
6418
6418
|
function X() {
|
|
6419
6419
|
return cr(S);
|
|
6420
6420
|
}
|
|
6421
|
-
function
|
|
6421
|
+
function K(D) {
|
|
6422
6422
|
return p.state.isMounted && !p.state.isVisible || lt.isTouch || u && u.type === "focus" ? 0 : Lr(p.props.delay, D ? 0 : 1, et.delay);
|
|
6423
6423
|
}
|
|
6424
6424
|
function ae(D) {
|
|
@@ -6456,7 +6456,7 @@ function Rv(e, t) {
|
|
|
6456
6456
|
}
|
|
6457
6457
|
}
|
|
6458
6458
|
function te() {
|
|
6459
|
-
|
|
6459
|
+
Y().removeEventListener("mousemove", g), nr = nr.filter(function(D) {
|
|
6460
6460
|
return D !== g;
|
|
6461
6461
|
});
|
|
6462
6462
|
}
|
|
@@ -6484,11 +6484,11 @@ function Rv(e, t) {
|
|
|
6484
6484
|
l = !1;
|
|
6485
6485
|
}
|
|
6486
6486
|
function Ae() {
|
|
6487
|
-
var D =
|
|
6487
|
+
var D = Y();
|
|
6488
6488
|
D.addEventListener("mousedown", ie, !0), D.addEventListener("touchend", ie, Vt), D.addEventListener("touchstart", me, Vt), D.addEventListener("touchmove", we, Vt);
|
|
6489
6489
|
}
|
|
6490
6490
|
function Be() {
|
|
6491
|
-
var D =
|
|
6491
|
+
var D = Y();
|
|
6492
6492
|
D.removeEventListener("mousedown", ie, !0), D.removeEventListener("touchend", ie, Vt), D.removeEventListener("touchstart", me, Vt), D.removeEventListener("touchmove", we, Vt);
|
|
6493
6493
|
}
|
|
6494
6494
|
function ot(D, j) {
|
|
@@ -6654,7 +6654,7 @@ function Rv(e, t) {
|
|
|
6654
6654
|
}
|
|
6655
6655
|
function vn(D) {
|
|
6656
6656
|
p.clearDelayTimeouts(), D && re("onTrigger", [p, D]), Ae();
|
|
6657
|
-
var j =
|
|
6657
|
+
var j = K(!0), J = P(), he = J[0], ue = J[1];
|
|
6658
6658
|
lt.isTouch && he === "hold" && ue && (j = ue), j ? r = setTimeout(function() {
|
|
6659
6659
|
p.show();
|
|
6660
6660
|
}, j) : p.show();
|
|
@@ -6665,7 +6665,7 @@ function Rv(e, t) {
|
|
|
6665
6665
|
return;
|
|
6666
6666
|
}
|
|
6667
6667
|
if (!(p.props.trigger.indexOf("mouseenter") >= 0 && p.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(D.type) >= 0 && i)) {
|
|
6668
|
-
var j =
|
|
6668
|
+
var j = K(!1);
|
|
6669
6669
|
j ? a = setTimeout(function() {
|
|
6670
6670
|
p.state.isVisible && p.hide();
|
|
6671
6671
|
}, j) : o = requestAnimationFrame(function() {
|
|
@@ -6690,7 +6690,7 @@ function Rv(e, t) {
|
|
|
6690
6690
|
}));
|
|
6691
6691
|
p.props = J, mt(), j.interactiveDebounce !== J.interactiveDebounce && (te(), g = yo(Kt, J.interactiveDebounce)), j.triggerTarget && !J.triggerTarget ? jt(j.triggerTarget).forEach(function(he) {
|
|
6692
6692
|
he.removeAttribute("aria-expanded");
|
|
6693
|
-
}) : J.triggerTarget && e.removeAttribute("aria-expanded"), ve(), ae(),
|
|
6693
|
+
}) : J.triggerTarget && e.removeAttribute("aria-expanded"), ve(), ae(), O && O(j, J), p.popperInstance && ($t(), St().forEach(function(he) {
|
|
6694
6694
|
requestAnimationFrame(he._tippy.popperInstance.forceUpdate);
|
|
6695
6695
|
})), re("onAfterUpdate", [p, D]);
|
|
6696
6696
|
}
|
|
@@ -6732,7 +6732,7 @@ function Rv(e, t) {
|
|
|
6732
6732
|
}
|
|
6733
6733
|
}
|
|
6734
6734
|
function Ds(D) {
|
|
6735
|
-
|
|
6735
|
+
Y().addEventListener("mousemove", g), Ao(nr, g), g(D);
|
|
6736
6736
|
}
|
|
6737
6737
|
function Is() {
|
|
6738
6738
|
p.state.isVisible && p.hide(), p.state.isMounted && (Rt(), St().forEach(function(D) {
|
|
@@ -6745,7 +6745,7 @@ function Rv(e, t) {
|
|
|
6745
6745
|
p.state.isDestroyed || (p.clearDelayTimeouts(), p.unmount(), Mt(), delete e._tippy, p.state.isDestroyed = !0, re("onDestroy", [p]));
|
|
6746
6746
|
}
|
|
6747
6747
|
}
|
|
6748
|
-
function
|
|
6748
|
+
function q(e, t) {
|
|
6749
6749
|
t === void 0 && (t = {});
|
|
6750
6750
|
var n = et.plugins.concat(t.plugins || []);
|
|
6751
6751
|
Ov();
|
|
@@ -6757,9 +6757,9 @@ function W(e, t) {
|
|
|
6757
6757
|
}, []);
|
|
6758
6758
|
return wr(e) ? o[0] : o;
|
|
6759
6759
|
}
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6760
|
+
q.defaultProps = et;
|
|
6761
|
+
q.setDefaultProps = Dv;
|
|
6762
|
+
q.currentInput = lt;
|
|
6763
6763
|
var Lv = Object.assign({}, Qi, {
|
|
6764
6764
|
effect: function(t) {
|
|
6765
6765
|
var n = t.state, r = {
|
|
@@ -6800,8 +6800,8 @@ var Lv = Object.assign({}, Qi, {
|
|
|
6800
6800
|
function g(p) {
|
|
6801
6801
|
return a.map(function(x) {
|
|
6802
6802
|
var S = x.setProps;
|
|
6803
|
-
return x.setProps = function(
|
|
6804
|
-
S(
|
|
6803
|
+
return x.setProps = function(O) {
|
|
6804
|
+
S(O), x.reference === s && p.setProps(O);
|
|
6805
6805
|
}, function() {
|
|
6806
6806
|
x.setProps = S;
|
|
6807
6807
|
};
|
|
@@ -6811,11 +6811,11 @@ var Lv = Object.assign({}, Qi, {
|
|
|
6811
6811
|
var S = i.indexOf(x);
|
|
6812
6812
|
if (x !== s) {
|
|
6813
6813
|
s = x;
|
|
6814
|
-
var
|
|
6814
|
+
var O = (l || []).concat("content").reduce(function(A, M) {
|
|
6815
6815
|
return A[M] = a[S].props[M], A;
|
|
6816
6816
|
}, {});
|
|
6817
|
-
p.setProps(Object.assign({},
|
|
6818
|
-
getReferenceClientRect: typeof
|
|
6817
|
+
p.setProps(Object.assign({}, O, {
|
|
6818
|
+
getReferenceClientRect: typeof O.getReferenceClientRect == "function" ? O.getReferenceClientRect : function() {
|
|
6819
6819
|
var A;
|
|
6820
6820
|
return (A = o[S]) == null ? void 0 : A.getBoundingClientRect();
|
|
6821
6821
|
}
|
|
@@ -6838,12 +6838,12 @@ var Lv = Object.assign({}, Qi, {
|
|
|
6838
6838
|
onShow: function(S) {
|
|
6839
6839
|
S.props.showOnCreate && !u && (u = !0, v(S, o[0]));
|
|
6840
6840
|
},
|
|
6841
|
-
onTrigger: function(S,
|
|
6842
|
-
v(S,
|
|
6841
|
+
onTrigger: function(S, O) {
|
|
6842
|
+
v(S, O.currentTarget);
|
|
6843
6843
|
}
|
|
6844
6844
|
};
|
|
6845
6845
|
}
|
|
6846
|
-
}, b =
|
|
6846
|
+
}, b = q(zt(), Object.assign({}, hv(n, ["overrides"]), {
|
|
6847
6847
|
plugins: [m].concat(n.plugins || []),
|
|
6848
6848
|
triggerTarget: i,
|
|
6849
6849
|
popperOptions: Object.assign({}, n.popperOptions, {
|
|
@@ -6963,14 +6963,14 @@ var Wv = {
|
|
|
6963
6963
|
getReferenceClientRect: function() {
|
|
6964
6964
|
var A = n.getBoundingClientRect(), M = y, P = C;
|
|
6965
6965
|
b === "initial" && (M = A.left + x, P = A.top + S);
|
|
6966
|
-
var I = b === "horizontal" ? A.top : P, L = b === "vertical" ? A.right : M, $ = b === "horizontal" ? A.bottom : P,
|
|
6966
|
+
var I = b === "horizontal" ? A.top : P, L = b === "vertical" ? A.right : M, $ = b === "horizontal" ? A.bottom : P, Y = b === "vertical" ? A.left : M;
|
|
6967
6967
|
return {
|
|
6968
|
-
width: L -
|
|
6968
|
+
width: L - Y,
|
|
6969
6969
|
height: $ - I,
|
|
6970
6970
|
top: I,
|
|
6971
6971
|
right: L,
|
|
6972
6972
|
bottom: $,
|
|
6973
|
-
left:
|
|
6973
|
+
left: Y
|
|
6974
6974
|
};
|
|
6975
6975
|
}
|
|
6976
6976
|
});
|
|
@@ -7138,10 +7138,10 @@ var Uv = {
|
|
|
7138
7138
|
function Eo(e, t) {
|
|
7139
7139
|
return e && t ? e.top !== t.top || e.right !== t.right || e.bottom !== t.bottom || e.left !== t.left : !0;
|
|
7140
7140
|
}
|
|
7141
|
-
|
|
7141
|
+
q.setDefaultProps({
|
|
7142
7142
|
render: fs
|
|
7143
7143
|
});
|
|
7144
|
-
|
|
7144
|
+
q.setDefaultProps({
|
|
7145
7145
|
//@ts-ignore
|
|
7146
7146
|
onShow: (e) => {
|
|
7147
7147
|
if (!e.props.content)
|
|
@@ -7159,18 +7159,18 @@ function vs(e, t = {}, n = { mount: !0, appName: "Tippy" }) {
|
|
|
7159
7159
|
isShown: !1
|
|
7160
7160
|
}), i = Rn();
|
|
7161
7161
|
let s = null;
|
|
7162
|
-
const l = () => s || (s = document.createDocumentFragment(), s), d = (
|
|
7163
|
-
let A, M = gt(
|
|
7162
|
+
const l = () => s || (s = document.createDocumentFragment(), s), d = (O) => {
|
|
7163
|
+
let A, M = gt(O) ? O.value : O;
|
|
7164
7164
|
return Us(M) ? (i.value || (i.value = Na({
|
|
7165
7165
|
name: n.appName,
|
|
7166
|
-
setup: () => () => gt(
|
|
7166
|
+
setup: () => () => gt(O) ? O.value : O
|
|
7167
7167
|
}), r && Object.assign(i.value._context, r.appContext), i.value.mount(l())), A = () => l()) : typeof M == "object" ? (i.value || (i.value = Na({
|
|
7168
7168
|
name: n.appName,
|
|
7169
|
-
setup: () => () => de(gt(
|
|
7169
|
+
setup: () => () => de(gt(O) ? O.value : O)
|
|
7170
7170
|
}), r && Object.assign(i.value._context, r.appContext), i.value.mount(l())), A = () => l()) : A = M, A;
|
|
7171
|
-
}, u = (
|
|
7171
|
+
}, u = (O) => {
|
|
7172
7172
|
let A = {};
|
|
7173
|
-
return gt(
|
|
7173
|
+
return gt(O) ? A = O.value || {} : Va(O) ? A = { ...O } : A = { ...O }, A.content && (A.content = d(A.content)), A.triggerTarget && (A.triggerTarget = gt(A.triggerTarget) ? A.triggerTarget.value : A.triggerTarget), (!A.plugins || !Array.isArray(A.plugins)) && (A.plugins = []), A.plugins = A.plugins.filter((M) => M.name !== "vueTippyReactiveState"), A.plugins.push({
|
|
7174
7174
|
name: "vueTippyReactiveState",
|
|
7175
7175
|
fn: () => ({
|
|
7176
7176
|
onCreate() {
|
|
@@ -7203,35 +7203,35 @@ function vs(e, t = {}, n = { mount: !0, appName: "Tippy" }) {
|
|
|
7203
7203
|
a.value && a.value.setProps(u(t));
|
|
7204
7204
|
}, c = () => {
|
|
7205
7205
|
!a.value || !t.content || a.value.setContent(d(t.content));
|
|
7206
|
-
}, h = (
|
|
7206
|
+
}, h = (O) => {
|
|
7207
7207
|
var A;
|
|
7208
|
-
(A = a.value) === null || A === void 0 || A.setContent(d(
|
|
7209
|
-
}, g = (
|
|
7208
|
+
(A = a.value) === null || A === void 0 || A.setContent(d(O));
|
|
7209
|
+
}, g = (O) => {
|
|
7210
7210
|
var A;
|
|
7211
|
-
(A = a.value) === null || A === void 0 || A.setProps(u(
|
|
7211
|
+
(A = a.value) === null || A === void 0 || A.setProps(u(O));
|
|
7212
7212
|
}, v = () => {
|
|
7213
|
-
var
|
|
7214
|
-
a.value && (a.value.destroy(), a.value = void 0), s = null, (
|
|
7213
|
+
var O;
|
|
7214
|
+
a.value && (a.value.destroy(), a.value = void 0), s = null, (O = i.value) === null || O === void 0 || O.unmount(), i.value = void 0;
|
|
7215
7215
|
}, m = () => {
|
|
7216
|
-
var
|
|
7217
|
-
(
|
|
7216
|
+
var O;
|
|
7217
|
+
(O = a.value) === null || O === void 0 || O.show();
|
|
7218
7218
|
}, b = () => {
|
|
7219
|
-
var
|
|
7220
|
-
(
|
|
7219
|
+
var O;
|
|
7220
|
+
(O = a.value) === null || O === void 0 || O.hide();
|
|
7221
7221
|
}, y = () => {
|
|
7222
|
-
var
|
|
7223
|
-
(
|
|
7222
|
+
var O;
|
|
7223
|
+
(O = a.value) === null || O === void 0 || O.disable(), o.value.isEnabled = !1;
|
|
7224
7224
|
}, C = () => {
|
|
7225
|
-
var
|
|
7226
|
-
(
|
|
7225
|
+
var O;
|
|
7226
|
+
(O = a.value) === null || O === void 0 || O.enable(), o.value.isEnabled = !0;
|
|
7227
7227
|
}, p = () => {
|
|
7228
|
-
var
|
|
7229
|
-
(
|
|
7228
|
+
var O;
|
|
7229
|
+
(O = a.value) === null || O === void 0 || O.unmount();
|
|
7230
7230
|
}, x = () => {
|
|
7231
7231
|
if (!e)
|
|
7232
7232
|
return;
|
|
7233
|
-
let
|
|
7234
|
-
typeof
|
|
7233
|
+
let O = gt(e) ? e.value : e;
|
|
7234
|
+
typeof O == "function" && (O = O()), Yv(O) && (O = O.$el), O && (a.value = q(O, u(t)), O.$tippy = S);
|
|
7235
7235
|
}, S = {
|
|
7236
7236
|
tippy: a,
|
|
7237
7237
|
refresh: f,
|
|
@@ -7285,51 +7285,51 @@ const ms = R({
|
|
|
7285
7285
|
type: String,
|
|
7286
7286
|
default: null
|
|
7287
7287
|
},
|
|
7288
|
-
appendTo: { default: () =>
|
|
7289
|
-
aria: { default: () =>
|
|
7290
|
-
delay: { default: () =>
|
|
7291
|
-
duration: { default: () =>
|
|
7292
|
-
getReferenceClientRect: { default: () =>
|
|
7293
|
-
hideOnClick: { type: [Boolean, String], default: () =>
|
|
7294
|
-
ignoreAttributes: { type: Boolean, default: () =>
|
|
7295
|
-
interactive: { type: Boolean, default: () =>
|
|
7296
|
-
interactiveBorder: { default: () =>
|
|
7297
|
-
interactiveDebounce: { default: () =>
|
|
7298
|
-
moveTransition: { default: () =>
|
|
7299
|
-
offset: { default: () =>
|
|
7300
|
-
onAfterUpdate: { default: () =>
|
|
7301
|
-
onBeforeUpdate: { default: () =>
|
|
7302
|
-
onCreate: { default: () =>
|
|
7303
|
-
onDestroy: { default: () =>
|
|
7304
|
-
onHidden: { default: () =>
|
|
7305
|
-
onHide: { default: () =>
|
|
7306
|
-
onMount: { default: () =>
|
|
7307
|
-
onShow: { default: () =>
|
|
7308
|
-
onShown: { default: () =>
|
|
7309
|
-
onTrigger: { default: () =>
|
|
7310
|
-
onUntrigger: { default: () =>
|
|
7311
|
-
onClickOutside: { default: () =>
|
|
7312
|
-
placement: { default: () =>
|
|
7313
|
-
plugins: { default: () =>
|
|
7314
|
-
popperOptions: { default: () =>
|
|
7315
|
-
render: { default: () =>
|
|
7316
|
-
showOnCreate: { type: Boolean, default: () =>
|
|
7317
|
-
touch: { type: [Boolean, String, Array], default: () =>
|
|
7318
|
-
trigger: { default: () =>
|
|
7319
|
-
triggerTarget: { default: () =>
|
|
7320
|
-
animateFill: { type: Boolean, default: () =>
|
|
7321
|
-
followCursor: { type: [Boolean, String], default: () =>
|
|
7322
|
-
inlinePositioning: { type: Boolean, default: () =>
|
|
7323
|
-
sticky: { type: [Boolean, String], default: () =>
|
|
7324
|
-
allowHTML: { type: Boolean, default: () =>
|
|
7325
|
-
animation: { default: () =>
|
|
7326
|
-
arrow: { default: () =>
|
|
7327
|
-
content: { default: () =>
|
|
7328
|
-
inertia: { default: () =>
|
|
7329
|
-
maxWidth: { default: () =>
|
|
7330
|
-
role: { default: () =>
|
|
7331
|
-
theme: { default: () =>
|
|
7332
|
-
zIndex: { default: () =>
|
|
7288
|
+
appendTo: { default: () => q.defaultProps.appendTo },
|
|
7289
|
+
aria: { default: () => q.defaultProps.aria },
|
|
7290
|
+
delay: { default: () => q.defaultProps.delay },
|
|
7291
|
+
duration: { default: () => q.defaultProps.duration },
|
|
7292
|
+
getReferenceClientRect: { default: () => q.defaultProps.getReferenceClientRect },
|
|
7293
|
+
hideOnClick: { type: [Boolean, String], default: () => q.defaultProps.hideOnClick },
|
|
7294
|
+
ignoreAttributes: { type: Boolean, default: () => q.defaultProps.ignoreAttributes },
|
|
7295
|
+
interactive: { type: Boolean, default: () => q.defaultProps.interactive },
|
|
7296
|
+
interactiveBorder: { default: () => q.defaultProps.interactiveBorder },
|
|
7297
|
+
interactiveDebounce: { default: () => q.defaultProps.interactiveDebounce },
|
|
7298
|
+
moveTransition: { default: () => q.defaultProps.moveTransition },
|
|
7299
|
+
offset: { default: () => q.defaultProps.offset },
|
|
7300
|
+
onAfterUpdate: { default: () => q.defaultProps.onAfterUpdate },
|
|
7301
|
+
onBeforeUpdate: { default: () => q.defaultProps.onBeforeUpdate },
|
|
7302
|
+
onCreate: { default: () => q.defaultProps.onCreate },
|
|
7303
|
+
onDestroy: { default: () => q.defaultProps.onDestroy },
|
|
7304
|
+
onHidden: { default: () => q.defaultProps.onHidden },
|
|
7305
|
+
onHide: { default: () => q.defaultProps.onHide },
|
|
7306
|
+
onMount: { default: () => q.defaultProps.onMount },
|
|
7307
|
+
onShow: { default: () => q.defaultProps.onShow },
|
|
7308
|
+
onShown: { default: () => q.defaultProps.onShown },
|
|
7309
|
+
onTrigger: { default: () => q.defaultProps.onTrigger },
|
|
7310
|
+
onUntrigger: { default: () => q.defaultProps.onUntrigger },
|
|
7311
|
+
onClickOutside: { default: () => q.defaultProps.onClickOutside },
|
|
7312
|
+
placement: { default: () => q.defaultProps.placement },
|
|
7313
|
+
plugins: { default: () => q.defaultProps.plugins },
|
|
7314
|
+
popperOptions: { default: () => q.defaultProps.popperOptions },
|
|
7315
|
+
render: { default: () => q.defaultProps.render },
|
|
7316
|
+
showOnCreate: { type: Boolean, default: () => q.defaultProps.showOnCreate },
|
|
7317
|
+
touch: { type: [Boolean, String, Array], default: () => q.defaultProps.touch },
|
|
7318
|
+
trigger: { default: () => q.defaultProps.trigger },
|
|
7319
|
+
triggerTarget: { default: () => q.defaultProps.triggerTarget },
|
|
7320
|
+
animateFill: { type: Boolean, default: () => q.defaultProps.animateFill },
|
|
7321
|
+
followCursor: { type: [Boolean, String], default: () => q.defaultProps.followCursor },
|
|
7322
|
+
inlinePositioning: { type: Boolean, default: () => q.defaultProps.inlinePositioning },
|
|
7323
|
+
sticky: { type: [Boolean, String], default: () => q.defaultProps.sticky },
|
|
7324
|
+
allowHTML: { type: Boolean, default: () => q.defaultProps.allowHTML },
|
|
7325
|
+
animation: { default: () => q.defaultProps.animation },
|
|
7326
|
+
arrow: { default: () => q.defaultProps.arrow },
|
|
7327
|
+
content: { default: () => q.defaultProps.content },
|
|
7328
|
+
inertia: { default: () => q.defaultProps.inertia },
|
|
7329
|
+
maxWidth: { default: () => q.defaultProps.maxWidth },
|
|
7330
|
+
role: { default: () => q.defaultProps.role },
|
|
7331
|
+
theme: { default: () => q.defaultProps.theme },
|
|
7332
|
+
zIndex: { default: () => q.defaultProps.zIndex }
|
|
7333
7333
|
},
|
|
7334
7334
|
emits: ["state"],
|
|
7335
7335
|
setup(e, { slots: t, emit: n, expose: r }) {
|
|
@@ -7408,15 +7408,15 @@ const ms = R({
|
|
|
7408
7408
|
"touchHold"
|
|
7409
7409
|
];
|
|
7410
7410
|
let aa = {};
|
|
7411
|
-
Object.keys(
|
|
7411
|
+
Object.keys(q.defaultProps).forEach((e) => {
|
|
7412
7412
|
Kv.includes(e) ? aa[e] = {
|
|
7413
7413
|
type: Boolean,
|
|
7414
7414
|
default: function() {
|
|
7415
|
-
return
|
|
7415
|
+
return q.defaultProps[e];
|
|
7416
7416
|
}
|
|
7417
7417
|
} : aa[e] = {
|
|
7418
7418
|
default: function() {
|
|
7419
|
-
return
|
|
7419
|
+
return q.defaultProps[e];
|
|
7420
7420
|
}
|
|
7421
7421
|
};
|
|
7422
7422
|
});
|
|
@@ -7464,9 +7464,9 @@ const Jv = R({
|
|
|
7464
7464
|
}
|
|
7465
7465
|
}, em = {
|
|
7466
7466
|
install(e, t = {}) {
|
|
7467
|
-
|
|
7467
|
+
q.setDefaultProps(t.defaultProps || {}), e.directive(t.directive || "tippy", Zv), e.component(t.component || "tippy", ms), e.component(t.componentSingleton || "tippy-singleton", Jv);
|
|
7468
7468
|
}
|
|
7469
|
-
}, tm =
|
|
7469
|
+
}, tm = q.setDefaultProps;
|
|
7470
7470
|
tm({
|
|
7471
7471
|
ignoreAttributes: !0,
|
|
7472
7472
|
plugins: [Uv, qv, Wv, _v]
|
|
@@ -7479,20 +7479,20 @@ const nm = /* @__PURE__ */ R({
|
|
|
7479
7479
|
zIndex: { default: 9999 }
|
|
7480
7480
|
},
|
|
7481
7481
|
setup(e) {
|
|
7482
|
-
return (t, n) => (w(),
|
|
7482
|
+
return (t, n) => (w(), U(N(ms), {
|
|
7483
7483
|
content: e.content,
|
|
7484
7484
|
interactive: !0,
|
|
7485
7485
|
"z-index": e.zIndex
|
|
7486
7486
|
}, Ys({
|
|
7487
7487
|
default: _(() => [
|
|
7488
|
-
|
|
7488
|
+
G(t.$slots, "default")
|
|
7489
7489
|
]),
|
|
7490
7490
|
_: 2
|
|
7491
7491
|
}, [
|
|
7492
7492
|
e.content ? void 0 : {
|
|
7493
7493
|
name: "content",
|
|
7494
7494
|
fn: _(() => [
|
|
7495
|
-
|
|
7495
|
+
G(t.$slots, "content")
|
|
7496
7496
|
]),
|
|
7497
7497
|
key: "0"
|
|
7498
7498
|
}
|
|
@@ -7515,22 +7515,22 @@ const nm = /* @__PURE__ */ R({
|
|
|
7515
7515
|
},
|
|
7516
7516
|
{ immediate: !0 }
|
|
7517
7517
|
), (o, i) => {
|
|
7518
|
-
const s =
|
|
7518
|
+
const s = Q("base-button");
|
|
7519
7519
|
return w(), B("div", rm, [
|
|
7520
|
-
|
|
7520
|
+
W(s, {
|
|
7521
7521
|
onClick: i[0] || (i[0] = (l) => r()),
|
|
7522
7522
|
variant: "text",
|
|
7523
7523
|
"is-block": "",
|
|
7524
7524
|
class: "space-x-4"
|
|
7525
7525
|
}, {
|
|
7526
7526
|
default: _(() => [
|
|
7527
|
-
|
|
7528
|
-
|
|
7527
|
+
G(o.$slots, "header", { isOpen: t.value }, () => [
|
|
7528
|
+
k("i", {
|
|
7529
7529
|
class: z(["i-fa7-solid:angle-right transform-gpu transition-all duration-200", {
|
|
7530
7530
|
"rotate-90": t.value
|
|
7531
7531
|
}])
|
|
7532
7532
|
}, null, 2),
|
|
7533
|
-
|
|
7533
|
+
k("p", am, H(a.title), 1)
|
|
7534
7534
|
])
|
|
7535
7535
|
]),
|
|
7536
7536
|
_: 3
|
|
@@ -7541,7 +7541,7 @@ const nm = /* @__PURE__ */ R({
|
|
|
7541
7541
|
ref: n,
|
|
7542
7542
|
class: "overflow-hidden px-4"
|
|
7543
7543
|
}, [
|
|
7544
|
-
|
|
7544
|
+
G(o.$slots, "default")
|
|
7545
7545
|
], 512)) : V("", !0)
|
|
7546
7546
|
]);
|
|
7547
7547
|
};
|
|
@@ -7580,11 +7580,11 @@ const nm = /* @__PURE__ */ R({
|
|
|
7580
7580
|
}
|
|
7581
7581
|
}), a = T(() => r.value === "horizontal");
|
|
7582
7582
|
return (o, i) => {
|
|
7583
|
-
const s =
|
|
7583
|
+
const s = Q("base-icon");
|
|
7584
7584
|
return w(), B("div", {
|
|
7585
7585
|
class: z({ "relative lg:flex lg:items-start lg:gap-5": a.value && t.label })
|
|
7586
7586
|
}, [
|
|
7587
|
-
|
|
7587
|
+
k("label", {
|
|
7588
7588
|
for: t.id,
|
|
7589
7589
|
class: z(["font-bold flex flex-col", {
|
|
7590
7590
|
// Horizontal classes
|
|
@@ -7593,37 +7593,37 @@ const nm = /* @__PURE__ */ R({
|
|
|
7593
7593
|
"text-sm gap-0 lg:gap-1": !a.value || !t.label
|
|
7594
7594
|
}])
|
|
7595
7595
|
}, [
|
|
7596
|
-
|
|
7597
|
-
t.label ? (w(), B("span", lm,
|
|
7596
|
+
k("div", sm, [
|
|
7597
|
+
t.label ? (w(), B("span", lm, H(t.label), 1)) : V("", !0),
|
|
7598
7598
|
t.required ? (w(), B("span", um, "(required)")) : V("", !0)
|
|
7599
7599
|
]),
|
|
7600
|
-
t.description ? (w(), B("span", dm,
|
|
7600
|
+
t.description ? (w(), B("span", dm, H(t.description), 1)) : V("", !0)
|
|
7601
7601
|
], 10, im),
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7602
|
+
k("div", cm, [
|
|
7603
|
+
k("div", fm, [
|
|
7604
|
+
G(o.$slots, "default", {}, void 0, !0)
|
|
7605
7605
|
]),
|
|
7606
7606
|
t.helpers || N(n).helper ? (w(), B("div", pm, [
|
|
7607
|
-
|
|
7607
|
+
G(o.$slots, "helper", {}, () => [
|
|
7608
7608
|
(w(!0), B(fe, null, Me(t.helpers, (l, d) => (w(), B("div", {
|
|
7609
7609
|
class: "flex items-center gap-1",
|
|
7610
7610
|
key: d
|
|
7611
7611
|
}, [
|
|
7612
|
-
|
|
7612
|
+
k("p", vm, H(l), 1)
|
|
7613
7613
|
]))), 128))
|
|
7614
7614
|
], !0)
|
|
7615
7615
|
])) : V("", !0),
|
|
7616
7616
|
t.errors || N(n).error ? (w(), B("div", mm, [
|
|
7617
|
-
|
|
7617
|
+
G(o.$slots, "error", {}, () => [
|
|
7618
7618
|
(w(!0), B(fe, null, Me(t.errors, (l, d) => (w(), B("div", {
|
|
7619
7619
|
class: "flex items-center gap-1",
|
|
7620
7620
|
key: d
|
|
7621
7621
|
}, [
|
|
7622
|
-
|
|
7622
|
+
W(s, {
|
|
7623
7623
|
icon: "i-fa7-regular:triangle-exclamation",
|
|
7624
7624
|
class: "text-danger"
|
|
7625
7625
|
}),
|
|
7626
|
-
|
|
7626
|
+
k("p", hm, H(l), 1)
|
|
7627
7627
|
]))), 128))
|
|
7628
7628
|
], !0)
|
|
7629
7629
|
])) : V("", !0)
|
|
@@ -7669,8 +7669,8 @@ const nm = /* @__PURE__ */ R({
|
|
|
7669
7669
|
return t({
|
|
7670
7670
|
inputRef: s
|
|
7671
7671
|
}), (d, u) => {
|
|
7672
|
-
const f =
|
|
7673
|
-
return w(),
|
|
7672
|
+
const f = Q("base-form");
|
|
7673
|
+
return w(), U(f, {
|
|
7674
7674
|
label: n.label,
|
|
7675
7675
|
layout: n.layout,
|
|
7676
7676
|
description: n.description,
|
|
@@ -7679,8 +7679,8 @@ const nm = /* @__PURE__ */ R({
|
|
|
7679
7679
|
errors: l.value
|
|
7680
7680
|
}, {
|
|
7681
7681
|
default: _(() => [
|
|
7682
|
-
|
|
7683
|
-
Xe(
|
|
7682
|
+
k("div", ym, [
|
|
7683
|
+
Xe(k("input", {
|
|
7684
7684
|
ref_key: "inputRef",
|
|
7685
7685
|
ref: s,
|
|
7686
7686
|
id: N(i),
|
|
@@ -7705,11 +7705,11 @@ const nm = /* @__PURE__ */ R({
|
|
|
7705
7705
|
}, null, 10, Am), [
|
|
7706
7706
|
[Wo, r.value]
|
|
7707
7707
|
]),
|
|
7708
|
-
|
|
7708
|
+
k("label", {
|
|
7709
7709
|
for: N(i),
|
|
7710
7710
|
class: "cursor-pointer"
|
|
7711
7711
|
}, [
|
|
7712
|
-
e.text ? (w(), B("p", xm,
|
|
7712
|
+
e.text ? (w(), B("p", xm, H(e.text), 1)) : V("", !0)
|
|
7713
7713
|
], 8, wm)
|
|
7714
7714
|
])
|
|
7715
7715
|
]),
|
|
@@ -7790,9 +7790,9 @@ const nm = /* @__PURE__ */ R({
|
|
|
7790
7790
|
u.value = !1;
|
|
7791
7791
|
};
|
|
7792
7792
|
return (y, C) => {
|
|
7793
|
-
const p =
|
|
7793
|
+
const p = Q("base-input"), x = Q("base-form"), S = Q("base-icon"), O = Q("base-modal");
|
|
7794
7794
|
return w(), B(fe, null, [
|
|
7795
|
-
|
|
7795
|
+
W(x, {
|
|
7796
7796
|
label: t.label,
|
|
7797
7797
|
layout: t.layout,
|
|
7798
7798
|
description: t.description,
|
|
@@ -7802,7 +7802,7 @@ const nm = /* @__PURE__ */ R({
|
|
|
7802
7802
|
class: "w-full"
|
|
7803
7803
|
}, {
|
|
7804
7804
|
default: _(() => [
|
|
7805
|
-
e.mode === "input" ? (w(),
|
|
7805
|
+
e.mode === "input" ? (w(), U(p, {
|
|
7806
7806
|
key: 0,
|
|
7807
7807
|
readonly: "",
|
|
7808
7808
|
modelValue: n.value,
|
|
@@ -7819,11 +7819,11 @@ const nm = /* @__PURE__ */ R({
|
|
|
7819
7819
|
class: "border-b border-dashed cursor-pointer border-black dark:border-white",
|
|
7820
7820
|
onClick: m,
|
|
7821
7821
|
"data-testid": `${e.dataTestid}-input`
|
|
7822
|
-
},
|
|
7822
|
+
}, H(a.value && !N(hs)(a.value.label) ? a.value.label : "SELECT"), 9, Pm)) : V("", !0)
|
|
7823
7823
|
]),
|
|
7824
7824
|
_: 1
|
|
7825
7825
|
}, 8, ["label", "layout", "description", "required", "helpers", "errors"]),
|
|
7826
|
-
|
|
7826
|
+
W(O, {
|
|
7827
7827
|
ref_key: "modalRef",
|
|
7828
7828
|
ref: c,
|
|
7829
7829
|
size: "lg",
|
|
@@ -7832,8 +7832,8 @@ const nm = /* @__PURE__ */ R({
|
|
|
7832
7832
|
title: t.title
|
|
7833
7833
|
}, {
|
|
7834
7834
|
default: _(() => [
|
|
7835
|
-
|
|
7836
|
-
|
|
7835
|
+
k("div", Dm, [
|
|
7836
|
+
W(p, {
|
|
7837
7837
|
placeholder: "Search",
|
|
7838
7838
|
ref_key: "inputRef",
|
|
7839
7839
|
ref: f,
|
|
@@ -7843,18 +7843,18 @@ const nm = /* @__PURE__ */ R({
|
|
|
7843
7843
|
"data-testid": `${e.dataTestid}-search`
|
|
7844
7844
|
}, {
|
|
7845
7845
|
suffix: _(() => [
|
|
7846
|
-
|
|
7846
|
+
k("button", {
|
|
7847
7847
|
class: "w-8 h-8",
|
|
7848
7848
|
"data-testid": `${e.dataTestid}-clear-button`,
|
|
7849
7849
|
onClick: v
|
|
7850
7850
|
}, [
|
|
7851
|
-
|
|
7851
|
+
W(S, { icon: "i-fa7-solid:xmark" })
|
|
7852
7852
|
], 8, Im)
|
|
7853
7853
|
]),
|
|
7854
7854
|
_: 1
|
|
7855
7855
|
}, 8, ["modelValue", "data-testid"]),
|
|
7856
|
-
|
|
7857
|
-
|
|
7856
|
+
k("div", Mm, [
|
|
7857
|
+
k("div", $m, [
|
|
7858
7858
|
r.value ? (w(), B("div", Rm, " Loading data... ")) : V("", !0),
|
|
7859
7859
|
!r.value && h.value.length === 0 ? (w(), B("div", Lm, " Nothing found. ")) : V("", !0),
|
|
7860
7860
|
(w(!0), B(fe, null, Me(h.value, (A, M) => (w(), B("div", {
|
|
@@ -7863,8 +7863,8 @@ const nm = /* @__PURE__ */ R({
|
|
|
7863
7863
|
onClick: (P) => g(A),
|
|
7864
7864
|
"data-testid": `${e.dataTestid}-option-${A._id}`
|
|
7865
7865
|
}, [
|
|
7866
|
-
|
|
7867
|
-
Ie(
|
|
7866
|
+
G(y.$slots, "default", { option: A }, () => [
|
|
7867
|
+
Ie(H(A?.label), 1)
|
|
7868
7868
|
])
|
|
7869
7869
|
], 10, Fm))), 128))
|
|
7870
7870
|
])
|
|
@@ -9183,8 +9183,8 @@ const Yh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Xh
|
|
|
9183
9183
|
inputRef: u,
|
|
9184
9184
|
dateRef: s
|
|
9185
9185
|
}), (f, c) => {
|
|
9186
|
-
const h =
|
|
9187
|
-
return w(),
|
|
9186
|
+
const h = Q("base-icon"), g = Q("base-button"), v = Q("base-form"), m = Ho("input-mask");
|
|
9187
|
+
return w(), U(v, {
|
|
9188
9188
|
label: r.label,
|
|
9189
9189
|
layout: r.layout,
|
|
9190
9190
|
description: r.description,
|
|
@@ -9193,7 +9193,7 @@ const Yh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Xh
|
|
|
9193
9193
|
errors: o.value
|
|
9194
9194
|
}, {
|
|
9195
9195
|
default: _(() => [
|
|
9196
|
-
Xe(
|
|
9196
|
+
Xe(k("input", {
|
|
9197
9197
|
ref_key: "dateRef",
|
|
9198
9198
|
ref: s,
|
|
9199
9199
|
"onUpdate:modelValue": c[0] || (c[0] = (b) => d.value = b),
|
|
@@ -9206,7 +9206,7 @@ const Yh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Xh
|
|
|
9206
9206
|
}, null, 2), [
|
|
9207
9207
|
[Ut, d.value]
|
|
9208
9208
|
]),
|
|
9209
|
-
Xe(
|
|
9209
|
+
Xe(k("input", {
|
|
9210
9210
|
ref_key: "inputRef",
|
|
9211
9211
|
ref: u,
|
|
9212
9212
|
"onUpdate:modelValue": c[1] || (c[1] = (b) => i.value = b),
|
|
@@ -9233,14 +9233,14 @@ const Yh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Xh
|
|
|
9233
9233
|
],
|
|
9234
9234
|
[m, { date: !0, delimiter: "-", datePattern: ["Y", "m", "d"] }]
|
|
9235
9235
|
]),
|
|
9236
|
-
|
|
9236
|
+
W(g, {
|
|
9237
9237
|
variant: "text",
|
|
9238
9238
|
type: "button",
|
|
9239
9239
|
class: "absolute h-full flex px-1 items-center justify-center text-slate-400 dark:text-slate-300",
|
|
9240
9240
|
onClick: c[2] || (c[2] = (b) => l())
|
|
9241
9241
|
}, {
|
|
9242
9242
|
default: _(() => [
|
|
9243
|
-
|
|
9243
|
+
W(h, { icon: "i-fa7-regular:calendar" })
|
|
9244
9244
|
]),
|
|
9245
9245
|
_: 1
|
|
9246
9246
|
})
|
|
@@ -9279,8 +9279,8 @@ const Yh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Xh
|
|
|
9279
9279
|
fileRef: i,
|
|
9280
9280
|
inputRef: s
|
|
9281
9281
|
}), (d, u) => {
|
|
9282
|
-
const f =
|
|
9283
|
-
return w(),
|
|
9282
|
+
const f = Q("base-form");
|
|
9283
|
+
return w(), U(f, {
|
|
9284
9284
|
label: r.label,
|
|
9285
9285
|
layout: r.layout,
|
|
9286
9286
|
description: r.description,
|
|
@@ -9289,8 +9289,8 @@ const Yh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Xh
|
|
|
9289
9289
|
errors: l.value
|
|
9290
9290
|
}, {
|
|
9291
9291
|
default: _(() => [
|
|
9292
|
-
|
|
9293
|
-
|
|
9292
|
+
G(d.$slots, "default", { fileRef: i.value }, () => [
|
|
9293
|
+
k("input", {
|
|
9294
9294
|
ref_key: "inputRef",
|
|
9295
9295
|
ref: s,
|
|
9296
9296
|
class: z(["form-input", {
|
|
@@ -9309,7 +9309,7 @@ const Yh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Xh
|
|
|
9309
9309
|
"data-testid": r.dataTestid
|
|
9310
9310
|
}, null, 42, Gh)
|
|
9311
9311
|
], !0),
|
|
9312
|
-
|
|
9312
|
+
k("input", {
|
|
9313
9313
|
ref_key: "fileRef",
|
|
9314
9314
|
ref: i,
|
|
9315
9315
|
class: "hidden",
|
|
@@ -9371,8 +9371,8 @@ const Yh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Xh
|
|
|
9371
9371
|
return t({
|
|
9372
9372
|
inputRef: i
|
|
9373
9373
|
}), (h, g) => {
|
|
9374
|
-
const v =
|
|
9375
|
-
return w(),
|
|
9374
|
+
const v = Q("base-form");
|
|
9375
|
+
return w(), U(v, {
|
|
9376
9376
|
label: r.label,
|
|
9377
9377
|
layout: r.layout,
|
|
9378
9378
|
description: r.description,
|
|
@@ -9381,7 +9381,7 @@ const Yh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Xh
|
|
|
9381
9381
|
errors: f.value
|
|
9382
9382
|
}, {
|
|
9383
9383
|
default: _(() => [
|
|
9384
|
-
Xe(
|
|
9384
|
+
Xe(k("input", {
|
|
9385
9385
|
ref_key: "inputRef",
|
|
9386
9386
|
ref: i,
|
|
9387
9387
|
class: z(["form-input", {
|
|
@@ -9413,19 +9413,19 @@ const Yh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Xh
|
|
|
9413
9413
|
{ trim: !0 }
|
|
9414
9414
|
]
|
|
9415
9415
|
]),
|
|
9416
|
-
|
|
9416
|
+
k("div", {
|
|
9417
9417
|
ref_key: "suffixRef",
|
|
9418
9418
|
ref: l,
|
|
9419
9419
|
class: "absolute flex px-2 items-center justify-center text-slate-400 dark:text-slate-300 right-0"
|
|
9420
9420
|
}, [
|
|
9421
|
-
|
|
9421
|
+
G(h.$slots, "suffix", {}, void 0, !0)
|
|
9422
9422
|
], 512),
|
|
9423
|
-
|
|
9423
|
+
k("div", {
|
|
9424
9424
|
ref_key: "prefixRef",
|
|
9425
9425
|
ref: s,
|
|
9426
9426
|
class: "absolute flex px-2 items-center justify-center text-slate-400 dark:text-slate-300"
|
|
9427
9427
|
}, [
|
|
9428
|
-
|
|
9428
|
+
G(h.$slots, "prefix", {}, void 0, !0)
|
|
9429
9429
|
], 512)
|
|
9430
9430
|
]),
|
|
9431
9431
|
_: 3
|
|
@@ -9470,8 +9470,8 @@ const Yh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Xh
|
|
|
9470
9470
|
}), t({
|
|
9471
9471
|
inputRef: i
|
|
9472
9472
|
}), (l, d) => {
|
|
9473
|
-
const u =
|
|
9474
|
-
return w(),
|
|
9473
|
+
const u = Q("base-form"), f = Ho("input-mask");
|
|
9474
|
+
return w(), U(u, {
|
|
9475
9475
|
label: r.label,
|
|
9476
9476
|
layout: r.layout,
|
|
9477
9477
|
description: r.description,
|
|
@@ -9480,7 +9480,7 @@ const Yh = ["autofocus", "required", "readonly", "disabled", "data-testid"], Xh
|
|
|
9480
9480
|
errors: s.value
|
|
9481
9481
|
}, {
|
|
9482
9482
|
default: _(() => [
|
|
9483
|
-
Xe(
|
|
9483
|
+
Xe(k("input", {
|
|
9484
9484
|
ref_key: "inputRef",
|
|
9485
9485
|
ref: i,
|
|
9486
9486
|
class: z(["form-input", {
|
|
@@ -10182,8 +10182,8 @@ const mg = ["placeholder", "autofocus", "required", "readonly", "disabled", "dat
|
|
|
10182
10182
|
return t({
|
|
10183
10183
|
inputRef: o
|
|
10184
10184
|
}), (b, y) => {
|
|
10185
|
-
const C =
|
|
10186
|
-
return w(),
|
|
10185
|
+
const C = Q("base-form");
|
|
10186
|
+
return w(), U(C, {
|
|
10187
10187
|
label: r.label,
|
|
10188
10188
|
layout: r.layout,
|
|
10189
10189
|
description: r.description,
|
|
@@ -10192,7 +10192,7 @@ const mg = ["placeholder", "autofocus", "required", "readonly", "disabled", "dat
|
|
|
10192
10192
|
errors: h.value
|
|
10193
10193
|
}, {
|
|
10194
10194
|
default: _(() => [
|
|
10195
|
-
Xe(
|
|
10195
|
+
Xe(k("input", {
|
|
10196
10196
|
ref_key: "inputRef",
|
|
10197
10197
|
ref: o,
|
|
10198
10198
|
class: z(["form-input", {
|
|
@@ -10219,19 +10219,19 @@ const mg = ["placeholder", "autofocus", "required", "readonly", "disabled", "dat
|
|
|
10219
10219
|
}, null, 14, mg), [
|
|
10220
10220
|
[Ut, m.value]
|
|
10221
10221
|
]),
|
|
10222
|
-
|
|
10222
|
+
k("div", {
|
|
10223
10223
|
ref_key: "suffixRef",
|
|
10224
10224
|
ref: l,
|
|
10225
10225
|
class: "absolute right-0 h-full flex items-center justify-center text-slate-400 dark:text-slate-300"
|
|
10226
10226
|
}, [
|
|
10227
|
-
|
|
10227
|
+
G(b.$slots, "suffix", {}, void 0, !0)
|
|
10228
10228
|
], 512),
|
|
10229
|
-
|
|
10229
|
+
k("div", {
|
|
10230
10230
|
ref_key: "prefixRef",
|
|
10231
10231
|
ref: s,
|
|
10232
10232
|
class: "absolute h-full flex items-center justify-center text-slate-400 dark:text-slate-300"
|
|
10233
10233
|
}, [
|
|
10234
|
-
|
|
10234
|
+
G(b.$slots, "prefix", {}, void 0, !0)
|
|
10235
10235
|
], 512)
|
|
10236
10236
|
]),
|
|
10237
10237
|
_: 3
|
|
@@ -10388,7 +10388,7 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
|
|
|
10388
10388
|
$ ? (v.value = $[1], m.value = P - $[2].length - 1, b.value = $[2], s({
|
|
10389
10389
|
trigger: v.value,
|
|
10390
10390
|
query: b.value
|
|
10391
|
-
}), h.value = !0, Se(C)) :
|
|
10391
|
+
}), h.value = !0, Se(C)) : O();
|
|
10392
10392
|
}
|
|
10393
10393
|
function x(A) {
|
|
10394
10394
|
if (!(!h.value || !y.value.length)) {
|
|
@@ -10396,19 +10396,19 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
|
|
|
10396
10396
|
A.preventDefault(), A.stopPropagation(), S(y.value[g.value]);
|
|
10397
10397
|
return;
|
|
10398
10398
|
}
|
|
10399
|
-
A.key === "Escape" &&
|
|
10399
|
+
A.key === "Escape" && O();
|
|
10400
10400
|
}
|
|
10401
10401
|
}
|
|
10402
10402
|
function S(A) {
|
|
10403
10403
|
if (!v.value || m.value < 0) return;
|
|
10404
10404
|
const M = l.value.slice(0, m.value), P = l.value.slice(m.value + b.value.length + 1);
|
|
10405
|
-
l.value = `${M}${v.value}${A.label} ${P}`,
|
|
10405
|
+
l.value = `${M}${v.value}${A.label} ${P}`, O(), Se(() => {
|
|
10406
10406
|
u.value?.focus();
|
|
10407
10407
|
const I = M.length + A.label.length + 2;
|
|
10408
10408
|
u.value?.setSelectionRange(I, I);
|
|
10409
10409
|
});
|
|
10410
10410
|
}
|
|
10411
|
-
function
|
|
10411
|
+
function O() {
|
|
10412
10412
|
i && (clearTimeout(i), i = null), h.value = !1, m.value = -1, b.value = "", v.value = null, g.value = 0;
|
|
10413
10413
|
}
|
|
10414
10414
|
return ee(l, () => {
|
|
@@ -10419,8 +10419,8 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
|
|
|
10419
10419
|
}
|
|
10420
10420
|
o("update:mentions", A);
|
|
10421
10421
|
}), t({ textareaRef: u }), (A, M) => {
|
|
10422
|
-
const P =
|
|
10423
|
-
return w(),
|
|
10422
|
+
const P = Q("base-avatar"), I = Q("base-form");
|
|
10423
|
+
return w(), U(I, {
|
|
10424
10424
|
label: r.label,
|
|
10425
10425
|
layout: r.layout,
|
|
10426
10426
|
description: r.description,
|
|
@@ -10429,8 +10429,8 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
|
|
|
10429
10429
|
errors: a.value
|
|
10430
10430
|
}, {
|
|
10431
10431
|
default: _(() => [
|
|
10432
|
-
|
|
10433
|
-
Xe(
|
|
10432
|
+
k("div", xg, [
|
|
10433
|
+
Xe(k("textarea", {
|
|
10434
10434
|
ref_key: "textareaRef",
|
|
10435
10435
|
ref: u,
|
|
10436
10436
|
"onUpdate:modelValue": M[0] || (M[0] = (L) => l.value = L),
|
|
@@ -10455,7 +10455,7 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
|
|
|
10455
10455
|
"data-testid": e.dataTestid,
|
|
10456
10456
|
onInput: p,
|
|
10457
10457
|
onKeydown: x,
|
|
10458
|
-
onBlur:
|
|
10458
|
+
onBlur: O
|
|
10459
10459
|
}, null, 46, Sg), [
|
|
10460
10460
|
[Ut, l.value]
|
|
10461
10461
|
]),
|
|
@@ -10471,14 +10471,14 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
|
|
|
10471
10471
|
"p-1 cursor-pointer flex items-center gap-1",
|
|
10472
10472
|
$ === g.value ? "bg-gray-200 dark:bg-gray-700" : "hover:bg-gray-100 dark:hover:bg-gray-700"
|
|
10473
10473
|
]),
|
|
10474
|
-
onMousedown: (
|
|
10474
|
+
onMousedown: (Y) => S(L)
|
|
10475
10475
|
}, [
|
|
10476
|
-
r.showAvatar ? (w(),
|
|
10476
|
+
r.showAvatar ? (w(), U(P, {
|
|
10477
10477
|
key: 0,
|
|
10478
10478
|
size: 24,
|
|
10479
10479
|
src: L.avatar_url
|
|
10480
10480
|
}, null, 8, ["src"])) : V("", !0),
|
|
10481
|
-
Ie(" " +
|
|
10481
|
+
Ie(" " + H(L.label), 1)
|
|
10482
10482
|
], 42, Cg))), 128))
|
|
10483
10483
|
], 4)) : V("", !0)
|
|
10484
10484
|
])
|
|
@@ -10522,8 +10522,8 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
|
|
|
10522
10522
|
get: () => n.modelValue ?? void 0
|
|
10523
10523
|
});
|
|
10524
10524
|
return (i, s) => {
|
|
10525
|
-
const l =
|
|
10526
|
-
return w(),
|
|
10525
|
+
const l = Q("base-icon"), d = Q("base-form");
|
|
10526
|
+
return w(), U(d, {
|
|
10527
10527
|
label: n.label,
|
|
10528
10528
|
layout: n.layout,
|
|
10529
10529
|
description: n.description,
|
|
@@ -10532,16 +10532,16 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
|
|
|
10532
10532
|
errors: r.value
|
|
10533
10533
|
}, {
|
|
10534
10534
|
default: _(() => [
|
|
10535
|
-
|
|
10535
|
+
W(N(Zu), {
|
|
10536
10536
|
modelValue: o.value,
|
|
10537
10537
|
"onUpdate:modelValue": s[0] || (s[0] = (u) => o.value = u),
|
|
10538
10538
|
class: "w-full"
|
|
10539
10539
|
}, {
|
|
10540
10540
|
default: _(() => [
|
|
10541
|
-
|
|
10541
|
+
k("div", {
|
|
10542
10542
|
class: z(["flex w-full gap-2", { "flex-col": n.optionsLayout === "vertical" }])
|
|
10543
10543
|
}, [
|
|
10544
|
-
(w(!0), B(fe, null, Me(e.options, (u) => (w(),
|
|
10544
|
+
(w(!0), B(fe, null, Me(e.options, (u) => (w(), U(N(td), {
|
|
10545
10545
|
as: "div",
|
|
10546
10546
|
key: u.label,
|
|
10547
10547
|
disabled: e.disabled || e.readonly,
|
|
@@ -10549,23 +10549,23 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
|
|
|
10549
10549
|
"data-testid": `${e.dataTestid}-${u.value}`
|
|
10550
10550
|
}, {
|
|
10551
10551
|
default: _(({ active: f, checked: c }) => [
|
|
10552
|
-
|
|
10552
|
+
G(i.$slots, "default", {
|
|
10553
10553
|
active: f,
|
|
10554
10554
|
checked: c,
|
|
10555
10555
|
option: u
|
|
10556
10556
|
}, () => [
|
|
10557
|
-
|
|
10558
|
-
|
|
10557
|
+
k("div", Bg, [
|
|
10558
|
+
k("div", {
|
|
10559
10559
|
class: z([[c ? "bg-primary text-white " : "bg-white dark:bg-slate-900 text-slate-900 dark:text-white"], "border dark:border-slate-800 rounded p-2"])
|
|
10560
10560
|
}, [
|
|
10561
|
-
|
|
10561
|
+
k("div", Pg, [
|
|
10562
10562
|
c ? (w(), B("div", Dg, [
|
|
10563
|
-
|
|
10563
|
+
W(l, { icon: "i-fa7-solid:circle-check" })
|
|
10564
10564
|
])) : (w(), B("div", Ig, [
|
|
10565
|
-
|
|
10565
|
+
W(l, { icon: "i-fa7-regular:circle" })
|
|
10566
10566
|
])),
|
|
10567
|
-
|
|
10568
|
-
|
|
10567
|
+
k("div", Mg, [
|
|
10568
|
+
k("div", $g, H(u.label), 1)
|
|
10569
10569
|
])
|
|
10570
10570
|
])
|
|
10571
10571
|
], 2)
|
|
@@ -10608,8 +10608,8 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
|
|
|
10608
10608
|
get: () => n.modelValue
|
|
10609
10609
|
});
|
|
10610
10610
|
return (i, s) => {
|
|
10611
|
-
const l =
|
|
10612
|
-
return w(),
|
|
10611
|
+
const l = Q("base-form");
|
|
10612
|
+
return w(), U(l, {
|
|
10613
10613
|
label: n.label,
|
|
10614
10614
|
layout: n.layout,
|
|
10615
10615
|
description: n.description,
|
|
@@ -10617,8 +10617,8 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
|
|
|
10617
10617
|
errors: r.value
|
|
10618
10618
|
}, {
|
|
10619
10619
|
default: _(() => [
|
|
10620
|
-
|
|
10621
|
-
Xe(
|
|
10620
|
+
k("div", Lg, [
|
|
10621
|
+
Xe(k("input", {
|
|
10622
10622
|
type: "range",
|
|
10623
10623
|
class: "w-full",
|
|
10624
10624
|
min: "0",
|
|
@@ -10629,7 +10629,7 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
|
|
|
10629
10629
|
}, null, 8, Fg), [
|
|
10630
10630
|
[Ut, o.value]
|
|
10631
10631
|
]),
|
|
10632
|
-
e.showText ? (w(), B("p", _g,
|
|
10632
|
+
e.showText ? (w(), B("p", _g, H(o.value), 1)) : V("", !0)
|
|
10633
10633
|
])
|
|
10634
10634
|
]),
|
|
10635
10635
|
_: 1
|
|
@@ -10700,8 +10700,8 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
|
|
|
10700
10700
|
), t({
|
|
10701
10701
|
inputRef: h
|
|
10702
10702
|
}), (g, v) => {
|
|
10703
|
-
const m =
|
|
10704
|
-
return w(),
|
|
10703
|
+
const m = Q("base-icon"), b = Q("base-button"), y = Q("base-form");
|
|
10704
|
+
return w(), U(y, {
|
|
10705
10705
|
label: a.label,
|
|
10706
10706
|
layout: a.layout,
|
|
10707
10707
|
description: a.description,
|
|
@@ -10710,14 +10710,14 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
|
|
|
10710
10710
|
errors: l.value
|
|
10711
10711
|
}, {
|
|
10712
10712
|
default: _(() => [
|
|
10713
|
-
|
|
10713
|
+
W(N(vu), {
|
|
10714
10714
|
modelValue: o.value,
|
|
10715
10715
|
"onUpdate:modelValue": v[3] || (v[3] = (C) => o.value = C)
|
|
10716
10716
|
}, {
|
|
10717
10717
|
default: _(() => [
|
|
10718
|
-
|
|
10719
|
-
|
|
10720
|
-
|
|
10718
|
+
k("div", Ng, [
|
|
10719
|
+
k("div", jg, [
|
|
10720
|
+
W(N(hu), {
|
|
10721
10721
|
ref_key: "inputRef",
|
|
10722
10722
|
ref: h,
|
|
10723
10723
|
class: z(["form-input", {
|
|
@@ -10737,17 +10737,17 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
|
|
|
10737
10737
|
onChange: v[0] || (v[0] = (C) => s.value = C.target.value),
|
|
10738
10738
|
"data-testid": `${e.dataTestid}-input`
|
|
10739
10739
|
}, null, 8, ["autofocus", "required", "readonly", "disabled", "placeholder", "class", "displayValue", "data-testid"]),
|
|
10740
|
-
N(hs)(o.value) ? (w(),
|
|
10740
|
+
N(hs)(o.value) ? (w(), U(N(mu), {
|
|
10741
10741
|
key: 0,
|
|
10742
10742
|
ref_key: "buttonRef",
|
|
10743
10743
|
ref: f,
|
|
10744
10744
|
class: "absolute inset-y-0 right-1 flex items-center"
|
|
10745
10745
|
}, {
|
|
10746
10746
|
default: _(() => [
|
|
10747
|
-
|
|
10747
|
+
W(m, { icon: "i-fa7-regular:angle-down" })
|
|
10748
10748
|
]),
|
|
10749
10749
|
_: 1
|
|
10750
|
-
}, 512)) : (w(),
|
|
10750
|
+
}, 512)) : (w(), U(b, {
|
|
10751
10751
|
key: 1,
|
|
10752
10752
|
size: "none",
|
|
10753
10753
|
variant: "text",
|
|
@@ -10757,38 +10757,38 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
|
|
|
10757
10757
|
"data-testid": `${e.dataTestid}-clear-button`
|
|
10758
10758
|
}, {
|
|
10759
10759
|
default: _(() => [
|
|
10760
|
-
|
|
10760
|
+
W(m, { icon: "i-fa7-regular:xmark" })
|
|
10761
10761
|
]),
|
|
10762
10762
|
_: 1
|
|
10763
10763
|
}, 8, ["data-testid"]))
|
|
10764
10764
|
]),
|
|
10765
|
-
|
|
10765
|
+
W(N(ba), {
|
|
10766
10766
|
leave: "transition ease-in duration-100",
|
|
10767
10767
|
leaveFrom: "opacity-100",
|
|
10768
10768
|
leaveTo: "opacity-0",
|
|
10769
10769
|
onAfterLeave: v[2] || (v[2] = (C) => s.value = "")
|
|
10770
10770
|
}, {
|
|
10771
10771
|
default: _(() => [
|
|
10772
|
-
|
|
10772
|
+
W(N(gu), { class: "options" }, {
|
|
10773
10773
|
default: _(() => [
|
|
10774
10774
|
i.value ? (w(), B("div", Wg, " Loading data... ")) : V("", !0),
|
|
10775
10775
|
!i.value && d.value.length === 0 && s.value !== "" ? (w(), B("div", Hg, " Nothing found. ")) : V("", !0),
|
|
10776
|
-
i.value ? V("", !0) : (w(!0), B(fe, { key: 2 }, Me(d.value, (C) => (w(),
|
|
10776
|
+
i.value ? V("", !0) : (w(!0), B(fe, { key: 2 }, Me(d.value, (C) => (w(), U(N(bu), {
|
|
10777
10777
|
as: "template",
|
|
10778
10778
|
key: C._id,
|
|
10779
10779
|
value: C,
|
|
10780
10780
|
"data-testid": `${e.dataTestid}-option-${C._id}`
|
|
10781
10781
|
}, {
|
|
10782
10782
|
default: _(({ selected: p, active: x }) => [
|
|
10783
|
-
|
|
10783
|
+
k("li", {
|
|
10784
10784
|
class: z(["option", {
|
|
10785
10785
|
"option-active": x,
|
|
10786
10786
|
"option-inactive": !x
|
|
10787
10787
|
}])
|
|
10788
10788
|
}, [
|
|
10789
|
-
|
|
10789
|
+
k("span", {
|
|
10790
10790
|
class: z(["block", { "font-medium": p, "font-normal": !p }])
|
|
10791
|
-
},
|
|
10791
|
+
}, H(C.label), 3)
|
|
10792
10792
|
], 2)
|
|
10793
10793
|
]),
|
|
10794
10794
|
_: 2
|
|
@@ -10838,8 +10838,8 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
|
|
|
10838
10838
|
get: () => n.modelValue
|
|
10839
10839
|
});
|
|
10840
10840
|
return (i, s) => {
|
|
10841
|
-
const l =
|
|
10842
|
-
return w(),
|
|
10841
|
+
const l = Q("base-form");
|
|
10842
|
+
return w(), U(l, {
|
|
10843
10843
|
label: n.label,
|
|
10844
10844
|
layout: n.layout,
|
|
10845
10845
|
description: n.description,
|
|
@@ -10848,14 +10848,14 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
|
|
|
10848
10848
|
errors: a.value
|
|
10849
10849
|
}, {
|
|
10850
10850
|
default: _(() => [
|
|
10851
|
-
|
|
10852
|
-
|
|
10851
|
+
k("label", null, [
|
|
10852
|
+
k("span", {
|
|
10853
10853
|
class: z(["inline-flex cursor-pointer select-none items-center gap-2", { "flex-row-reverse ": e.textPosition === "right" }])
|
|
10854
10854
|
}, [
|
|
10855
|
-
|
|
10856
|
-
Ie(
|
|
10855
|
+
G(i.$slots, "label", {}, () => [
|
|
10856
|
+
Ie(H(e.text), 1)
|
|
10857
10857
|
]),
|
|
10858
|
-
Xe(
|
|
10858
|
+
Xe(k("input", {
|
|
10859
10859
|
"onUpdate:modelValue": s[0] || (s[0] = (d) => o.value = d),
|
|
10860
10860
|
class: z(["switch", [
|
|
10861
10861
|
{
|
|
@@ -10923,8 +10923,8 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
|
|
|
10923
10923
|
return t({
|
|
10924
10924
|
textareaRef: l
|
|
10925
10925
|
}), (u, f) => {
|
|
10926
|
-
const c =
|
|
10927
|
-
return w(),
|
|
10926
|
+
const c = Q("base-form");
|
|
10927
|
+
return w(), U(c, {
|
|
10928
10928
|
label: r.label,
|
|
10929
10929
|
layout: r.layout,
|
|
10930
10930
|
description: r.description,
|
|
@@ -10933,7 +10933,7 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
|
|
|
10933
10933
|
errors: a.value
|
|
10934
10934
|
}, {
|
|
10935
10935
|
default: _(() => [
|
|
10936
|
-
Xe(
|
|
10936
|
+
Xe(k("textarea", {
|
|
10937
10937
|
ref_key: "textareaRef",
|
|
10938
10938
|
ref: l,
|
|
10939
10939
|
placeholder: e.placeholder,
|
|
@@ -10972,17 +10972,17 @@ const wg = /* @__PURE__ */ bg(Ag), xg = { class: "relative w-full" }, Sg = ["id"
|
|
|
10972
10972
|
setup(e) {
|
|
10973
10973
|
const t = e, n = t.year === (/* @__PURE__ */ new Date()).getFullYear() ? t.year : `${t.year}-${(/* @__PURE__ */ new Date()).getFullYear()}`;
|
|
10974
10974
|
return (r, a) => (w(), B("div", Kg, [
|
|
10975
|
-
|
|
10976
|
-
|
|
10975
|
+
k("p", null, "Pointhub © " + H(N(n)), 1),
|
|
10976
|
+
k("p", Jg, "v" + H(e.version), 1)
|
|
10977
10977
|
]));
|
|
10978
10978
|
}
|
|
10979
10979
|
}), eb = {}, tb = { class: "header" }, nb = { class: "header-container" }, rb = { class: "flex items-center" };
|
|
10980
10980
|
function ab(e, t) {
|
|
10981
10981
|
return w(), B("nav", tb, [
|
|
10982
|
-
|
|
10983
|
-
|
|
10984
|
-
|
|
10985
|
-
|
|
10982
|
+
k("div", nb, [
|
|
10983
|
+
G(e.$slots, "left-header", {}, void 0, !0),
|
|
10984
|
+
k("div", rb, [
|
|
10985
|
+
G(e.$slots, "right-header", {}, void 0, !0)
|
|
10986
10986
|
])
|
|
10987
10987
|
])
|
|
10988
10988
|
]);
|
|
@@ -11013,10 +11013,10 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11013
11013
|
ref: r,
|
|
11014
11014
|
class: "preloader"
|
|
11015
11015
|
}, [
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11016
|
+
k("div", ib, [
|
|
11017
|
+
k("div", sb, H(n.value), 1),
|
|
11018
|
+
k("div", lb, [
|
|
11019
|
+
k("div", {
|
|
11020
11020
|
class: "preloader-status-bar",
|
|
11021
11021
|
style: Ye({ width: t.value + "%" })
|
|
11022
11022
|
}, null, 4)
|
|
@@ -11058,12 +11058,12 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11058
11058
|
});
|
|
11059
11059
|
const u = (f) => f.substring(0, 8) === "https://" ? "external" : "internal";
|
|
11060
11060
|
return (f, c) => {
|
|
11061
|
-
const h =
|
|
11061
|
+
const h = Q("base-icon"), g = Q("router-link");
|
|
11062
11062
|
return w(), B("div", cb, [
|
|
11063
|
-
|
|
11064
|
-
|
|
11065
|
-
|
|
11066
|
-
n.value ? (w(),
|
|
11063
|
+
k("div", fb, [
|
|
11064
|
+
k("div", pb, [
|
|
11065
|
+
k("p", vb, H(e.title), 1),
|
|
11066
|
+
n.value ? (w(), U(ur(N(ia)), {
|
|
11067
11067
|
key: 0,
|
|
11068
11068
|
onClick: c[0] || (c[0] = (v) => N(o).closeSidebar()),
|
|
11069
11069
|
class: "mr-2",
|
|
@@ -11071,7 +11071,7 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11071
11071
|
}, {
|
|
11072
11072
|
default: _(() => [
|
|
11073
11073
|
N(o).isSidebarOpen ? (w(), B("div", mb, [
|
|
11074
|
-
|
|
11074
|
+
W(h, {
|
|
11075
11075
|
icon: "i-fa7-solid:angle-left",
|
|
11076
11076
|
class: "text-white"
|
|
11077
11077
|
})
|
|
@@ -11080,13 +11080,13 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11080
11080
|
_: 1
|
|
11081
11081
|
})) : V("", !0)
|
|
11082
11082
|
]),
|
|
11083
|
-
|
|
11084
|
-
|
|
11083
|
+
k("div", hb, [
|
|
11084
|
+
k("ul", gb, [
|
|
11085
11085
|
(w(!0), B(fe, null, Me(r.value, (v) => (w(), B("li", {
|
|
11086
11086
|
key: v.name
|
|
11087
11087
|
}, [
|
|
11088
11088
|
v.submenu ? (w(), B(fe, { key: 0 }, [
|
|
11089
|
-
v.path ? (w(),
|
|
11089
|
+
v.path ? (w(), U(g, {
|
|
11090
11090
|
key: 0,
|
|
11091
11091
|
to: v.path,
|
|
11092
11092
|
class: "menu-link-button",
|
|
@@ -11094,7 +11094,7 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11094
11094
|
"data-testid": v.dataTestid
|
|
11095
11095
|
}, {
|
|
11096
11096
|
default: _(() => [
|
|
11097
|
-
|
|
11097
|
+
k("p", null, H(v.name), 1),
|
|
11098
11098
|
v.submenu ? (w(), B("i", {
|
|
11099
11099
|
key: 0,
|
|
11100
11100
|
class: z(["i-fa7-solid:angle-right", {
|
|
@@ -11109,7 +11109,7 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11109
11109
|
onClick: (m) => s(v.name),
|
|
11110
11110
|
"data-testid": v.dataTestid
|
|
11111
11111
|
}, [
|
|
11112
|
-
|
|
11112
|
+
k("p", null, H(v.name), 1),
|
|
11113
11113
|
v.submenu ? (w(), B("i", {
|
|
11114
11114
|
key: 0,
|
|
11115
11115
|
class: z(["i-fa7-solid:angle-right", {
|
|
@@ -11117,7 +11117,7 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11117
11117
|
}])
|
|
11118
11118
|
}, null, 2)) : V("", !0)
|
|
11119
11119
|
], 10, bb)),
|
|
11120
|
-
|
|
11120
|
+
k("ul", {
|
|
11121
11121
|
class: z(["submenu", {
|
|
11122
11122
|
"max-h-[1000px]! overflow-auto bg-slate-700 px-2 py-1 w-[var(--sidebar-menu-width)] -mx-4": i.value === v.name
|
|
11123
11123
|
}])
|
|
@@ -11126,14 +11126,14 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11126
11126
|
key: m.name,
|
|
11127
11127
|
class: "overflow-hidden"
|
|
11128
11128
|
}, [
|
|
11129
|
-
|
|
11129
|
+
W(g, {
|
|
11130
11130
|
to: m.path,
|
|
11131
11131
|
class: "submenu-link",
|
|
11132
11132
|
"data-testid": m.dataTestid
|
|
11133
11133
|
}, {
|
|
11134
11134
|
default: _(() => [
|
|
11135
|
-
|
|
11136
|
-
|
|
11135
|
+
k("div", yb, [
|
|
11136
|
+
k("p", null, H(m.name), 1)
|
|
11137
11137
|
])
|
|
11138
11138
|
]),
|
|
11139
11139
|
_: 2
|
|
@@ -11142,7 +11142,7 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11142
11142
|
]))), 128))
|
|
11143
11143
|
], 2)
|
|
11144
11144
|
], 64)) : (w(), B(fe, { key: 1 }, [
|
|
11145
|
-
v.path && u(v.path) === "internal" ? (w(),
|
|
11145
|
+
v.path && u(v.path) === "internal" ? (w(), U(g, {
|
|
11146
11146
|
key: 0,
|
|
11147
11147
|
to: v.path,
|
|
11148
11148
|
class: "menu-link-button",
|
|
@@ -11150,7 +11150,7 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11150
11150
|
"data-testid": v.dataTestid
|
|
11151
11151
|
}, {
|
|
11152
11152
|
default: _(() => [
|
|
11153
|
-
Ie(
|
|
11153
|
+
Ie(H(v.name), 1)
|
|
11154
11154
|
]),
|
|
11155
11155
|
_: 2
|
|
11156
11156
|
}, 1032, ["to", "data-testid"])) : V("", !0),
|
|
@@ -11161,8 +11161,8 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11161
11161
|
target: "_blank",
|
|
11162
11162
|
class: "menu-link-button"
|
|
11163
11163
|
}, [
|
|
11164
|
-
Ie(
|
|
11165
|
-
|
|
11164
|
+
Ie(H(v.name) + " ", 1),
|
|
11165
|
+
W(h, { icon: "i-fa7-solid:up-right-from-square" })
|
|
11166
11166
|
], 8, wb)) : V("", !0)
|
|
11167
11167
|
], 64)),
|
|
11168
11168
|
v.separator ? (w(), B("div", xb)) : V("", !0)
|
|
@@ -11195,12 +11195,12 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11195
11195
|
r("choose", s);
|
|
11196
11196
|
};
|
|
11197
11197
|
return (s, l) => {
|
|
11198
|
-
const d =
|
|
11198
|
+
const d = Q("router-link");
|
|
11199
11199
|
return w(), B("div", kb, [
|
|
11200
|
-
|
|
11201
|
-
|
|
11200
|
+
k("div", Ob, [
|
|
11201
|
+
k("div", Cb, [
|
|
11202
11202
|
(w(!0), B(fe, null, Me(n.apps, (u, f) => (w(), B(fe, null, [
|
|
11203
|
-
a(u.path) === "internal" ? (w(),
|
|
11203
|
+
a(u.path) === "internal" ? (w(), U(d, {
|
|
11204
11204
|
key: `internal-${f}`,
|
|
11205
11205
|
to: u.path,
|
|
11206
11206
|
onClick: (c) => i(u.path),
|
|
@@ -11208,13 +11208,13 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11208
11208
|
class: "sidebar-panel-link"
|
|
11209
11209
|
}, {
|
|
11210
11210
|
default: _(() => [
|
|
11211
|
-
|
|
11211
|
+
k("div", Eb, [
|
|
11212
11212
|
u.icon && o(u.icon) === "img" ? (w(), B("img", {
|
|
11213
11213
|
key: 0,
|
|
11214
11214
|
src: u.icon,
|
|
11215
11215
|
class: "pt-2 px-1 max-w-12 max-h-12"
|
|
11216
11216
|
}, null, 8, Tb)) : (w(), B("img", Bb)),
|
|
11217
|
-
|
|
11217
|
+
k("div", Pb, H(u.name), 1)
|
|
11218
11218
|
])
|
|
11219
11219
|
]),
|
|
11220
11220
|
_: 2
|
|
@@ -11223,13 +11223,13 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11223
11223
|
href: u.path,
|
|
11224
11224
|
class: "sidebar-panel-link"
|
|
11225
11225
|
}, [
|
|
11226
|
-
|
|
11226
|
+
k("div", Ib, [
|
|
11227
11227
|
u.icon && o(u.icon) === "img" ? (w(), B("img", {
|
|
11228
11228
|
key: 0,
|
|
11229
11229
|
src: u.icon,
|
|
11230
11230
|
class: "pt-2 px-1 max-w-12 max-h-12"
|
|
11231
11231
|
}, null, 8, Mb)) : (w(), B("img", $b)),
|
|
11232
|
-
|
|
11232
|
+
k("div", Rb, H(u.name), 1)
|
|
11233
11233
|
])
|
|
11234
11234
|
], 8, Db)) : V("", !0)
|
|
11235
11235
|
], 64))), 256))
|
|
@@ -11253,19 +11253,19 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11253
11253
|
a("choose", u);
|
|
11254
11254
|
};
|
|
11255
11255
|
return (u, f) => (w(), B(fe, null, [
|
|
11256
|
-
|
|
11257
|
-
(w(),
|
|
11256
|
+
k("div", Fb, [
|
|
11257
|
+
(w(), U(ur(Es), {
|
|
11258
11258
|
apps: e.apps,
|
|
11259
11259
|
onChoose: d
|
|
11260
11260
|
}, null, 40, ["apps"])),
|
|
11261
|
-
(w(),
|
|
11261
|
+
(w(), U(ur(Os), {
|
|
11262
11262
|
title: o.value,
|
|
11263
11263
|
menus: l.value,
|
|
11264
11264
|
"is-sidebar-open": s.value,
|
|
11265
11265
|
"is-mobile": i.value
|
|
11266
11266
|
}, null, 8, ["title", "menus", "is-sidebar-open", "is-mobile"]))
|
|
11267
11267
|
]),
|
|
11268
|
-
|
|
11268
|
+
k("div", {
|
|
11269
11269
|
class: "sidebar-backdrop",
|
|
11270
11270
|
onClick: f[0] || (f[0] = (c) => N(n).closeSidebar())
|
|
11271
11271
|
})
|
|
@@ -11291,29 +11291,29 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11291
11291
|
r.value = !r.value;
|
|
11292
11292
|
};
|
|
11293
11293
|
return t({ toggle: a, isOpen: r }), (o, i) => {
|
|
11294
|
-
const s =
|
|
11295
|
-
return w(),
|
|
11294
|
+
const s = Q("base-avatar"), l = Q("base-popover");
|
|
11295
|
+
return w(), U(l, {
|
|
11296
11296
|
ref: "accountPopoverRef",
|
|
11297
11297
|
placement: "bottom-end",
|
|
11298
11298
|
"is-open": r.value,
|
|
11299
11299
|
"onUpdate:isOpen": i[1] || (i[1] = (d) => r.value = d)
|
|
11300
11300
|
}, {
|
|
11301
11301
|
content: _(() => [
|
|
11302
|
-
|
|
11303
|
-
|
|
11302
|
+
k("div", Hb, [
|
|
11303
|
+
G(o.$slots, "default", {}, void 0, !0)
|
|
11304
11304
|
])
|
|
11305
11305
|
]),
|
|
11306
11306
|
default: _(() => [
|
|
11307
|
-
|
|
11307
|
+
k("button", {
|
|
11308
11308
|
type: "button",
|
|
11309
11309
|
class: "flex gap-2",
|
|
11310
11310
|
onClick: i[0] || (i[0] = (d) => a())
|
|
11311
11311
|
}, [
|
|
11312
|
-
|
|
11313
|
-
|
|
11314
|
-
|
|
11312
|
+
k("div", Nb, [
|
|
11313
|
+
k("p", jb, H(n.organization), 1),
|
|
11314
|
+
k("p", Wb, H(n.username), 1)
|
|
11315
11315
|
]),
|
|
11316
|
-
|
|
11316
|
+
W(s, {
|
|
11317
11317
|
size: 48,
|
|
11318
11318
|
src: n.avatar,
|
|
11319
11319
|
shape: "squircle",
|
|
@@ -11335,15 +11335,15 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11335
11335
|
setup(e) {
|
|
11336
11336
|
const t = e;
|
|
11337
11337
|
return (n, r) => (w(), B("button", Ub, [
|
|
11338
|
-
|
|
11338
|
+
W(N(zo), {
|
|
11339
11339
|
size: 48,
|
|
11340
11340
|
src: t.avatar,
|
|
11341
11341
|
shape: "squircle",
|
|
11342
11342
|
name: "John Doe"
|
|
11343
11343
|
}, null, 8, ["src"]),
|
|
11344
|
-
|
|
11345
|
-
|
|
11346
|
-
|
|
11344
|
+
k("div", Yb, [
|
|
11345
|
+
k("p", Xb, H(t.organization), 1),
|
|
11346
|
+
k("p", Qb, H(t.username), 1)
|
|
11347
11347
|
])
|
|
11348
11348
|
]));
|
|
11349
11349
|
}
|
|
@@ -11359,8 +11359,8 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11359
11359
|
setup(e) {
|
|
11360
11360
|
const t = e, n = le(e, "is-dark-mode");
|
|
11361
11361
|
return (r, a) => {
|
|
11362
|
-
const o =
|
|
11363
|
-
return w(),
|
|
11362
|
+
const o = Q("base-icon"), i = Q("base-button");
|
|
11363
|
+
return w(), U(i, {
|
|
11364
11364
|
variant: "text",
|
|
11365
11365
|
color: "primary",
|
|
11366
11366
|
size: "lg",
|
|
@@ -11368,22 +11368,57 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11368
11368
|
class: "text-slate-900 dark:text-slate-50 flex justify-left!"
|
|
11369
11369
|
}, {
|
|
11370
11370
|
default: _(() => [
|
|
11371
|
-
n.value ? (w(),
|
|
11371
|
+
n.value ? (w(), U(o, {
|
|
11372
11372
|
key: 0,
|
|
11373
11373
|
icon: "i-ph:sun-duotone",
|
|
11374
11374
|
class: "w-1.25em"
|
|
11375
|
-
})) : (w(),
|
|
11375
|
+
})) : (w(), U(o, {
|
|
11376
11376
|
key: 1,
|
|
11377
11377
|
icon: "i-ph:moon-duotone",
|
|
11378
11378
|
class: "w-1.25em"
|
|
11379
11379
|
})),
|
|
11380
|
-
a[1] || (a[1] =
|
|
11380
|
+
a[1] || (a[1] = k("p", null, "Dark Mode", -1))
|
|
11381
11381
|
]),
|
|
11382
11382
|
_: 1
|
|
11383
11383
|
});
|
|
11384
11384
|
};
|
|
11385
11385
|
}
|
|
11386
11386
|
}), Jb = /* @__PURE__ */ R({
|
|
11387
|
+
__name: "header-menu-link",
|
|
11388
|
+
props: {
|
|
11389
|
+
path: {},
|
|
11390
|
+
label: {},
|
|
11391
|
+
icon: {}
|
|
11392
|
+
},
|
|
11393
|
+
setup(e) {
|
|
11394
|
+
return (t, n) => {
|
|
11395
|
+
const r = Q("base-icon"), a = Q("base-button"), o = Q("router-link");
|
|
11396
|
+
return w(), U(o, {
|
|
11397
|
+
to: e.path,
|
|
11398
|
+
class: "w-full"
|
|
11399
|
+
}, {
|
|
11400
|
+
default: _(() => [
|
|
11401
|
+
W(a, {
|
|
11402
|
+
variant: "text",
|
|
11403
|
+
color: "primary",
|
|
11404
|
+
size: "lg",
|
|
11405
|
+
class: "text-slate-900 dark:text-slate-50 flex justify-left! w-full"
|
|
11406
|
+
}, {
|
|
11407
|
+
default: _(() => [
|
|
11408
|
+
W(r, {
|
|
11409
|
+
icon: e.icon,
|
|
11410
|
+
class: "w-1.25em"
|
|
11411
|
+
}, null, 8, ["icon"]),
|
|
11412
|
+
k("p", null, H(e.label), 1)
|
|
11413
|
+
]),
|
|
11414
|
+
_: 1
|
|
11415
|
+
})
|
|
11416
|
+
]),
|
|
11417
|
+
_: 1
|
|
11418
|
+
}, 8, ["to"]);
|
|
11419
|
+
};
|
|
11420
|
+
}
|
|
11421
|
+
}), Zb = /* @__PURE__ */ R({
|
|
11387
11422
|
__name: "header-menu-signout",
|
|
11388
11423
|
props: {
|
|
11389
11424
|
onSignout: { type: Function }
|
|
@@ -11391,8 +11426,8 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11391
11426
|
setup(e) {
|
|
11392
11427
|
const t = e;
|
|
11393
11428
|
return (n, r) => {
|
|
11394
|
-
const a =
|
|
11395
|
-
return w(),
|
|
11429
|
+
const a = Q("base-icon"), o = Q("base-button");
|
|
11430
|
+
return w(), U(o, {
|
|
11396
11431
|
variant: "text",
|
|
11397
11432
|
color: "danger",
|
|
11398
11433
|
size: "lg",
|
|
@@ -11400,17 +11435,17 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11400
11435
|
onClick: t.onSignout
|
|
11401
11436
|
}, {
|
|
11402
11437
|
default: _(() => [
|
|
11403
|
-
|
|
11438
|
+
W(a, {
|
|
11404
11439
|
icon: "i-ph:sign-out-duotone",
|
|
11405
11440
|
class: "w-1.25em"
|
|
11406
11441
|
}),
|
|
11407
|
-
r[0] || (r[0] =
|
|
11442
|
+
r[0] || (r[0] = k("p", null, "Sign Out", -1))
|
|
11408
11443
|
]),
|
|
11409
11444
|
_: 1
|
|
11410
11445
|
}, 8, ["onClick"]);
|
|
11411
11446
|
};
|
|
11412
11447
|
}
|
|
11413
|
-
}),
|
|
11448
|
+
}), ey = { class: "text-xs" }, ty = /* @__PURE__ */ R({
|
|
11414
11449
|
__name: "header-menu-switch-organization",
|
|
11415
11450
|
props: {
|
|
11416
11451
|
organizations: {}
|
|
@@ -11420,9 +11455,9 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11420
11455
|
r.value = !r.value;
|
|
11421
11456
|
}, r = E(!1);
|
|
11422
11457
|
return (a, o) => {
|
|
11423
|
-
const i =
|
|
11458
|
+
const i = Q("base-icon"), s = Q("base-button"), l = Q("base-link"), d = Q("base-card");
|
|
11424
11459
|
return w(), B(fe, null, [
|
|
11425
|
-
|
|
11460
|
+
W(s, {
|
|
11426
11461
|
variant: "text",
|
|
11427
11462
|
color: "primary",
|
|
11428
11463
|
size: "lg",
|
|
@@ -11430,20 +11465,20 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11430
11465
|
onClick: n
|
|
11431
11466
|
}, {
|
|
11432
11467
|
default: _(() => [
|
|
11433
|
-
|
|
11468
|
+
W(i, {
|
|
11434
11469
|
icon: "i-ph:buildings-duotone",
|
|
11435
11470
|
class: "w-1.25em"
|
|
11436
11471
|
}),
|
|
11437
|
-
o[0] || (o[0] =
|
|
11472
|
+
o[0] || (o[0] = k("p", null, "Switch Organization", -1))
|
|
11438
11473
|
]),
|
|
11439
11474
|
_: 1
|
|
11440
11475
|
}),
|
|
11441
|
-
r.value ? (w(),
|
|
11476
|
+
r.value ? (w(), U(d, {
|
|
11442
11477
|
key: 0,
|
|
11443
11478
|
class: "p-0! gap-0! overflow-y-auto max-h-50"
|
|
11444
11479
|
}, {
|
|
11445
11480
|
default: _(() => [
|
|
11446
|
-
(w(!0), B(fe, null, Me(t.organizations, (u) => (w(),
|
|
11481
|
+
(w(!0), B(fe, null, Me(t.organizations, (u) => (w(), U(l, {
|
|
11447
11482
|
key: u.name,
|
|
11448
11483
|
href: u.link,
|
|
11449
11484
|
"is-block": "",
|
|
@@ -11452,7 +11487,7 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11452
11487
|
shape: "sharp"
|
|
11453
11488
|
}, {
|
|
11454
11489
|
default: _(() => [
|
|
11455
|
-
|
|
11490
|
+
k("span", ey, H(u.name), 1)
|
|
11456
11491
|
]),
|
|
11457
11492
|
_: 2
|
|
11458
11493
|
}, 1032, ["href"]))), 128))
|
|
@@ -11462,46 +11497,46 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11462
11497
|
], 64);
|
|
11463
11498
|
};
|
|
11464
11499
|
}
|
|
11465
|
-
}),
|
|
11500
|
+
}), ny = { class: "popper-root" }, ry = { class: "overflow-y-auto flex flex-col gap-4" }, ay = { class: "flex items-center space-x-3" }, oy = { class: "bg-info/10 dark:bg-info/15 h-10 w-10 flex shrink-0 items-center justify-center rounded-lg" }, iy = { class: "flex items-center space-x-3" }, sy = { class: "bg-info/10 dark:bg-info/15 h-10 w-10 flex shrink-0 items-center justify-center rounded-lg" }, ly = /* @__PURE__ */ R({
|
|
11466
11501
|
__name: "header-notification",
|
|
11467
11502
|
setup(e) {
|
|
11468
11503
|
const t = E();
|
|
11469
11504
|
return (n, r) => {
|
|
11470
|
-
const a =
|
|
11471
|
-
return w(),
|
|
11505
|
+
const a = Q("BaseIcon"), o = Q("base-icon");
|
|
11506
|
+
return w(), U(N(ji), {
|
|
11472
11507
|
ref_key: "notificationPopoverRef",
|
|
11473
11508
|
ref: t,
|
|
11474
11509
|
placement: "bottom"
|
|
11475
11510
|
}, {
|
|
11476
11511
|
content: _(() => [
|
|
11477
|
-
|
|
11478
|
-
|
|
11512
|
+
k("div", ny, [
|
|
11513
|
+
W(N(Wi), {
|
|
11479
11514
|
as: "div",
|
|
11480
11515
|
class: "bg-slate-100 dark:bg-slate-800"
|
|
11481
11516
|
}, {
|
|
11482
11517
|
default: _(() => [
|
|
11483
|
-
|
|
11518
|
+
W(N(Hi), { class: "flex overflow-x-auto overflow-y-hidden pt-4 border-b border-slate-200 dark:border-[#191e3a] scrollbar-hidden" }, {
|
|
11484
11519
|
default: _(() => [
|
|
11485
|
-
|
|
11520
|
+
W(N(Zr), { as: "template" }, {
|
|
11486
11521
|
default: _(({ selected: i }) => [
|
|
11487
|
-
|
|
11522
|
+
k("a", {
|
|
11488
11523
|
href: "javascript:void(0);",
|
|
11489
11524
|
class: z(["flex pb-1 px-2 gap-1 items-center !outline-none", { "border-b-2 !border-slate-500": i }])
|
|
11490
11525
|
}, [
|
|
11491
|
-
|
|
11492
|
-
r[2] || (r[2] =
|
|
11526
|
+
W(a, { icon: "i-ph-bell-duotone" }),
|
|
11527
|
+
r[2] || (r[2] = k("p", null, "Notifications", -1))
|
|
11493
11528
|
], 2)
|
|
11494
11529
|
]),
|
|
11495
11530
|
_: 1
|
|
11496
11531
|
}),
|
|
11497
|
-
|
|
11532
|
+
W(N(Zr), { as: "template" }, {
|
|
11498
11533
|
default: _(({ selected: i }) => [
|
|
11499
|
-
|
|
11534
|
+
k("a", {
|
|
11500
11535
|
href: "javascript:void(0);",
|
|
11501
11536
|
class: z(["flex pb-1 px-2 gap-1 items-center !outline-none", { "border-b-2 !border-slate-500": i }])
|
|
11502
11537
|
}, [
|
|
11503
|
-
|
|
11504
|
-
r[3] || (r[3] =
|
|
11538
|
+
W(a, { icon: "i-ph-folder-notch-minus-duotone" }),
|
|
11539
|
+
r[3] || (r[3] = k("p", null, "Logs", -1))
|
|
11505
11540
|
], 2)
|
|
11506
11541
|
]),
|
|
11507
11542
|
_: 1
|
|
@@ -11509,51 +11544,51 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11509
11544
|
]),
|
|
11510
11545
|
_: 1
|
|
11511
11546
|
}),
|
|
11512
|
-
|
|
11547
|
+
W(N(qi), { class: "flex-1 bg-white dark:bg-slate-700 text-sm p-4" }, {
|
|
11513
11548
|
default: _(() => [
|
|
11514
|
-
|
|
11549
|
+
W(N(ea), null, {
|
|
11515
11550
|
default: _(() => [...r[4] || (r[4] = [
|
|
11516
|
-
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
-
|
|
11551
|
+
k("div", { class: "mt-8 pb-8 text-center" }, [
|
|
11552
|
+
k("div", { class: "mt-5" }, [
|
|
11553
|
+
k("p", { class: "text-base font-semibold text-slate-700 dark:text-slate-100" }, " Empty Notification "),
|
|
11554
|
+
k("p", { class: "text-slate-400 dark:text-slate-300" }, "There are no new notifications")
|
|
11520
11555
|
])
|
|
11521
11556
|
], -1)
|
|
11522
11557
|
])]),
|
|
11523
11558
|
_: 1
|
|
11524
11559
|
}),
|
|
11525
|
-
|
|
11560
|
+
W(N(ea), null, {
|
|
11526
11561
|
default: _(() => [
|
|
11527
|
-
|
|
11528
|
-
|
|
11529
|
-
|
|
11530
|
-
|
|
11562
|
+
k("div", ry, [
|
|
11563
|
+
k("div", ay, [
|
|
11564
|
+
k("div", oy, [
|
|
11565
|
+
W(o, { icon: "i-fa7-regular:pencil" })
|
|
11531
11566
|
]),
|
|
11532
|
-
r[5] || (r[5] =
|
|
11533
|
-
|
|
11567
|
+
r[5] || (r[5] = k("div", null, [
|
|
11568
|
+
k("p", { class: "font-medium text-slate-600 dark:text-slate-100" }, [
|
|
11534
11569
|
Ie(" 01 Jan 2024 "),
|
|
11535
|
-
|
|
11570
|
+
k("span", { class: "text-xs font-light" }, "08:10")
|
|
11536
11571
|
]),
|
|
11537
|
-
|
|
11538
|
-
|
|
11572
|
+
k("div", { class: "flex text-sm text-slate-400 dark:text-slate-300" }, [
|
|
11573
|
+
k("span", { class: "line-clamp-1" }, "Create new invoice #0002")
|
|
11539
11574
|
])
|
|
11540
11575
|
], -1))
|
|
11541
11576
|
]),
|
|
11542
|
-
|
|
11543
|
-
|
|
11544
|
-
|
|
11577
|
+
k("div", iy, [
|
|
11578
|
+
k("div", sy, [
|
|
11579
|
+
W(o, { icon: "i-fa7-regular:pencil" })
|
|
11545
11580
|
]),
|
|
11546
|
-
r[6] || (r[6] =
|
|
11547
|
-
|
|
11581
|
+
r[6] || (r[6] = k("div", null, [
|
|
11582
|
+
k("p", { class: "font-medium text-slate-600 dark:text-slate-100" }, [
|
|
11548
11583
|
Ie(" 01 Jan 2024 "),
|
|
11549
|
-
|
|
11584
|
+
k("span", { class: "text-xs font-light" }, "08:00")
|
|
11550
11585
|
]),
|
|
11551
|
-
|
|
11552
|
-
|
|
11586
|
+
k("div", { class: "flex text-sm text-slate-400 dark:text-slate-300" }, [
|
|
11587
|
+
k("span", { class: "line-clamp-1" }, "Create new invoice #0001")
|
|
11553
11588
|
])
|
|
11554
11589
|
], -1))
|
|
11555
11590
|
]),
|
|
11556
|
-
r[7] || (r[7] =
|
|
11591
|
+
r[7] || (r[7] = k("button", { class: "btn btn-info btn-sm" }, "See all logs", -1))
|
|
11557
11592
|
]),
|
|
11558
11593
|
V("", !0)
|
|
11559
11594
|
]),
|
|
@@ -11568,19 +11603,19 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11568
11603
|
])
|
|
11569
11604
|
]),
|
|
11570
11605
|
default: _(() => [
|
|
11571
|
-
|
|
11606
|
+
W(N(ia), {
|
|
11572
11607
|
type: "button",
|
|
11573
11608
|
size: "xs",
|
|
11574
11609
|
onClick: r[0] || (r[0] = (i) => t.value.toggle())
|
|
11575
11610
|
}, {
|
|
11576
11611
|
default: _(() => [
|
|
11577
|
-
|
|
11612
|
+
W(a, {
|
|
11578
11613
|
icon: "i-ph-bell-ringing",
|
|
11579
11614
|
class: "w-6 h-6"
|
|
11580
11615
|
}),
|
|
11581
|
-
r[1] || (r[1] =
|
|
11582
|
-
|
|
11583
|
-
|
|
11616
|
+
r[1] || (r[1] = k("span", { class: "absolute -mt-6 -mr-6 h-2 w-2 flex items-center justify-center" }, [
|
|
11617
|
+
k("span", { class: "absolute h-full w-full inline-flex animate-ping rounded-full bg-red-400 opacity-80" }),
|
|
11618
|
+
k("span", { class: "h-2 w-2 inline-flex rounded-full bg-red-400" })
|
|
11584
11619
|
], -1))
|
|
11585
11620
|
]),
|
|
11586
11621
|
_: 1
|
|
@@ -11590,13 +11625,13 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11590
11625
|
}, 512);
|
|
11591
11626
|
};
|
|
11592
11627
|
}
|
|
11593
|
-
}),
|
|
11628
|
+
}), uy = /* @__PURE__ */ oe(ly, [["__scopeId", "data-v-1a669e00"]]), dy = {
|
|
11594
11629
|
key: 0,
|
|
11595
11630
|
class: "block w-6 h-6 i-lucide-panel-right-close"
|
|
11596
|
-
},
|
|
11631
|
+
}, cy = {
|
|
11597
11632
|
key: 1,
|
|
11598
11633
|
class: "block w-6 h-6 i-lucide-panel-left-close"
|
|
11599
|
-
},
|
|
11634
|
+
}, fy = /* @__PURE__ */ R({
|
|
11600
11635
|
__name: "header-sidebar-button",
|
|
11601
11636
|
props: /* @__PURE__ */ ye({
|
|
11602
11637
|
onToggleSidebar: { type: Function }
|
|
@@ -11611,18 +11646,18 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11611
11646
|
href: "javascript:void(0)",
|
|
11612
11647
|
onClick: a[0] || (a[0] = (o) => t.onToggleSidebar())
|
|
11613
11648
|
}, [
|
|
11614
|
-
n.value ? (w(), B("i",
|
|
11649
|
+
n.value ? (w(), B("i", cy)) : (w(), B("i", dy))
|
|
11615
11650
|
]));
|
|
11616
11651
|
}
|
|
11617
|
-
}),
|
|
11652
|
+
}), Ay = {
|
|
11618
11653
|
install(e) {
|
|
11619
|
-
e.component("AppFooter", Zg), e.component("AppHeader", ob), e.component("AppPreloader", db), e.component("AppSidebar", Vb), e.component("AppSidebarMenu", Os), e.component("AppSidebarPanel", Es), e.component("BaseAccordion", Ks), e.component("BaseAccordionItem", tl), e.component("BaseAlert", ll), e.component("BaseAvatar", zo), e.component("BaseAvatarGroup", vl), e.component("BaseBadge", gl), e.component("BaseBreadcrumb", Al), e.component("BaseButton", ia), e.component("BaseCard", Bl), e.component("BaseCheckbox", km), e.component("BaseChoosen", _m), e.component("BaseDatepicker", Qh), e.component("BaseDivider", Il), e.component("BaseDropdown", yd), e.component("BaseDropdownItem", wd), e.component("BaseFileUpload", Zh), e.component("BaseForm", bm), e.component("BaseIcon", Ei), e.component("BaseInput", ng), e.component("BaseInputMask", og), e.component("BaseInputNumber", gg), e.component("BaseLink", kd), e.component("BaseLoader", Cd), e.component("BaseMask", Bd), e.component("BaseMention", Tg), e.component("BaseModal", Rd), e.component("BasePagination", Vd), e.component("BasePopover", ji), e.component("BaseProgress", cf), e.component("BaseRadio", Rg), e.component("BaseRange", Vg), e.component("BaseSelect", zg), e.component("BaseSitemap", Of), e.component("BaseSpinner", Ef), e.component("BaseStep", Mf), e.component("BaseSwitch", Yg), e.component("BaseTab", Zr), e.component("BaseTabGroup", Wi), e.component("BaseTabList", Hi), e.component("BaseTabPanel", ea), e.component("BaseTabPanels", qi), e.component("BaseTable", _f), e.component("BaseTextarea", Gg), e.component("BaseTimeline", Wf), e.component("BaseTimelineContent", Xf), e.component("BaseToast", up), e.component("BaseTooltip", nm), e.component("BaseTreeview", om), e.component("HeaderMenu", zb), e.component("HeaderMenuAccount", Gb), e.component("HeaderMenuDarkMode", Kb), e.component("
|
|
11654
|
+
e.component("AppFooter", Zg), e.component("AppHeader", ob), e.component("AppPreloader", db), e.component("AppSidebar", Vb), e.component("AppSidebarMenu", Os), e.component("AppSidebarPanel", Es), e.component("BaseAccordion", Ks), e.component("BaseAccordionItem", tl), e.component("BaseAlert", ll), e.component("BaseAvatar", zo), e.component("BaseAvatarGroup", vl), e.component("BaseBadge", gl), e.component("BaseBreadcrumb", Al), e.component("BaseButton", ia), e.component("BaseCard", Bl), e.component("BaseCheckbox", km), e.component("BaseChoosen", _m), e.component("BaseDatepicker", Qh), e.component("BaseDivider", Il), e.component("BaseDropdown", yd), e.component("BaseDropdownItem", wd), e.component("BaseFileUpload", Zh), e.component("BaseForm", bm), e.component("BaseIcon", Ei), e.component("BaseInput", ng), e.component("BaseInputMask", og), e.component("BaseInputNumber", gg), e.component("BaseLink", kd), e.component("BaseLoader", Cd), e.component("BaseMask", Bd), e.component("BaseMention", Tg), e.component("BaseModal", Rd), e.component("BasePagination", Vd), e.component("BasePopover", ji), e.component("BaseProgress", cf), e.component("BaseRadio", Rg), e.component("BaseRange", Vg), e.component("BaseSelect", zg), e.component("BaseSitemap", Of), e.component("BaseSpinner", Ef), e.component("BaseStep", Mf), e.component("BaseSwitch", Yg), e.component("BaseTab", Zr), e.component("BaseTabGroup", Wi), e.component("BaseTabList", Hi), e.component("BaseTabPanel", ea), e.component("BaseTabPanels", qi), e.component("BaseTable", _f), e.component("BaseTextarea", Gg), e.component("BaseTimeline", Wf), e.component("BaseTimelineContent", Xf), e.component("BaseToast", up), e.component("BaseTooltip", nm), e.component("BaseTreeview", om), e.component("HeaderMenu", zb), e.component("HeaderMenuAccount", Gb), e.component("HeaderMenuDarkMode", Kb), e.component("HeaderMenuLink", Jb), e.component("HeaderMenuSignout", Zb), e.component("HeaderMenuSwitchOrganization", ty), e.component("HeaderNotification", uy), e.component("HeaderSidebarButton", fy);
|
|
11620
11655
|
}
|
|
11621
|
-
},
|
|
11656
|
+
}, wy = {
|
|
11622
11657
|
install(e) {
|
|
11623
11658
|
e.component("BaseIcon", Ei);
|
|
11624
11659
|
}
|
|
11625
|
-
},
|
|
11660
|
+
}, xy = {
|
|
11626
11661
|
install(e) {
|
|
11627
11662
|
e.directive("input-mask", {
|
|
11628
11663
|
mounted: (t, n) => {
|
|
@@ -11630,7 +11665,7 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11630
11665
|
}
|
|
11631
11666
|
});
|
|
11632
11667
|
}
|
|
11633
|
-
},
|
|
11668
|
+
}, Sy = {
|
|
11634
11669
|
install(e) {
|
|
11635
11670
|
e.use(em, {
|
|
11636
11671
|
directive: "tooltip",
|
|
@@ -11646,7 +11681,7 @@ const ob = /* @__PURE__ */ oe(eb, [["render", ab], ["__scopeId", "data-v-918420e
|
|
|
11646
11681
|
});
|
|
11647
11682
|
}
|
|
11648
11683
|
};
|
|
11649
|
-
function
|
|
11684
|
+
function ky() {
|
|
11650
11685
|
const e = document.getElementsByTagName("html")[0], t = E(e?.classList.contains("dark"));
|
|
11651
11686
|
function n() {
|
|
11652
11687
|
localStorage.getItem("dark-mode") === "dark" || !("dark-mode" in localStorage) && window.matchMedia("(prefers-color-scheme: dark)").matches ? (document.documentElement.classList.add("dark"), t.value = !0) : (document.documentElement.classList.remove("dark"), t.value = !1);
|
|
@@ -11664,7 +11699,7 @@ function Sy() {
|
|
|
11664
11699
|
loadDarkMode: n
|
|
11665
11700
|
};
|
|
11666
11701
|
}
|
|
11667
|
-
class
|
|
11702
|
+
class py {
|
|
11668
11703
|
events = [];
|
|
11669
11704
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
11670
11705
|
emit(t, n) {
|
|
@@ -11689,7 +11724,7 @@ class fy {
|
|
|
11689
11724
|
this.events[r]?.name == t && this.events.splice(r, 1);
|
|
11690
11725
|
}
|
|
11691
11726
|
}
|
|
11692
|
-
const
|
|
11727
|
+
const vy = new py(), Ts = mr("screen-breakpoint", {
|
|
11693
11728
|
state: () => ({
|
|
11694
11729
|
windowWidth: 0,
|
|
11695
11730
|
windowHeight: 0,
|
|
@@ -11722,16 +11757,16 @@ const py = new fy(), Ts = mr("screen-breakpoint", {
|
|
|
11722
11757
|
}
|
|
11723
11758
|
}
|
|
11724
11759
|
});
|
|
11725
|
-
function
|
|
11760
|
+
function my() {
|
|
11726
11761
|
const e = Ts();
|
|
11727
11762
|
return { isMobile: () => e.screenBreakpoint === "sm" || e.screenBreakpoint === "md" || e.screenBreakpoint === "lg" };
|
|
11728
11763
|
}
|
|
11729
|
-
function
|
|
11764
|
+
function Oy() {
|
|
11730
11765
|
return {
|
|
11731
11766
|
format: (t) => new Intl.NumberFormat(["en", "en"]).format(Number(t.toString()))
|
|
11732
11767
|
};
|
|
11733
11768
|
}
|
|
11734
|
-
function
|
|
11769
|
+
function Cy() {
|
|
11735
11770
|
const e = Ts();
|
|
11736
11771
|
ne(async () => {
|
|
11737
11772
|
e.onResizeWindow(), await Se(() => {
|
|
@@ -11759,8 +11794,8 @@ const or = typeof window < "u", Ra = mr("sidebar", {
|
|
|
11759
11794
|
}
|
|
11760
11795
|
}
|
|
11761
11796
|
});
|
|
11762
|
-
function
|
|
11763
|
-
const e = Ra(), t = qo(), { isMobile: n } =
|
|
11797
|
+
function Ey() {
|
|
11798
|
+
const e = Ra(), t = qo(), { isMobile: n } = my();
|
|
11764
11799
|
ne(() => {
|
|
11765
11800
|
r();
|
|
11766
11801
|
}), ee(
|
|
@@ -11774,7 +11809,7 @@ function Cy() {
|
|
|
11774
11809
|
n() ? e.closeSidebar() : e.openSidebar();
|
|
11775
11810
|
};
|
|
11776
11811
|
}
|
|
11777
|
-
const
|
|
11812
|
+
const Ty = mr("sidebar-menu", {
|
|
11778
11813
|
state: () => ({
|
|
11779
11814
|
choosenAppTitle: "",
|
|
11780
11815
|
choosenAppIndex: 0,
|
|
@@ -11804,7 +11839,7 @@ const Ey = mr("sidebar-menu", {
|
|
|
11804
11839
|
n.path === e && (this.choosenAppTitle = n.name, this.choosenAppIndex = t);
|
|
11805
11840
|
}
|
|
11806
11841
|
}
|
|
11807
|
-
}),
|
|
11842
|
+
}), By = mr("websocket", () => {
|
|
11808
11843
|
const e = E(), t = E(!1), n = E(0), r = E(10), a = E(1e3), o = E(0), i = E(""), s = () => e.value?.readyState === e.value?.OPEN, l = () => e.value?.readyState === e.value?.CLOSED, d = () => {
|
|
11809
11844
|
if (t.value = !0, n.value++, a.value += n.value * 1e3, e.value?.readyState === e.value?.CLOSING) {
|
|
11810
11845
|
setTimeout(d, a.value);
|
|
@@ -11822,7 +11857,7 @@ const Ey = mr("sidebar-menu", {
|
|
|
11822
11857
|
}, u = (g) => {
|
|
11823
11858
|
i.value = g, e.value = new WebSocket(i.value), e.value.onmessage = (v) => {
|
|
11824
11859
|
const m = Bm(v.data);
|
|
11825
|
-
|
|
11860
|
+
vy.emit(m.event, m);
|
|
11826
11861
|
}, e.value.onopen = (v) => {
|
|
11827
11862
|
o.value = 1;
|
|
11828
11863
|
}, e.value.onclose = (v) => {
|
|
@@ -11905,26 +11940,27 @@ export {
|
|
|
11905
11940
|
up as BaseToast,
|
|
11906
11941
|
nm as BaseTooltip,
|
|
11907
11942
|
om as BaseTreeview,
|
|
11908
|
-
|
|
11943
|
+
py as EventEmitter,
|
|
11909
11944
|
zb as HeaderMenu,
|
|
11910
11945
|
Gb as HeaderMenuAccount,
|
|
11911
11946
|
Kb as HeaderMenuDarkMode,
|
|
11912
|
-
Jb as
|
|
11913
|
-
|
|
11914
|
-
|
|
11915
|
-
|
|
11916
|
-
|
|
11917
|
-
Ay as
|
|
11918
|
-
wy as
|
|
11919
|
-
xy as
|
|
11920
|
-
|
|
11921
|
-
|
|
11922
|
-
|
|
11923
|
-
|
|
11947
|
+
Jb as HeaderMenuLink,
|
|
11948
|
+
Zb as HeaderMenuSignout,
|
|
11949
|
+
ty as HeaderMenuSwitchOrganization,
|
|
11950
|
+
uy as HeaderNotification,
|
|
11951
|
+
fy as HeaderSidebarButton,
|
|
11952
|
+
Ay as PluginBaseComponents,
|
|
11953
|
+
wy as PluginIcon,
|
|
11954
|
+
xy as PluginInputMask,
|
|
11955
|
+
Sy as PluginTooltip,
|
|
11956
|
+
vy as emitter,
|
|
11957
|
+
ky as useDarkMode,
|
|
11958
|
+
my as useMobileBreakpoint,
|
|
11959
|
+
Oy as useNumeric,
|
|
11924
11960
|
Ts as useScreenBreakpointStore,
|
|
11925
|
-
|
|
11926
|
-
|
|
11927
|
-
|
|
11961
|
+
Cy as useScreenSize,
|
|
11962
|
+
Ey as useSidebar,
|
|
11963
|
+
Ty as useSidebarMenuStore,
|
|
11928
11964
|
Ra as useSidebarStore,
|
|
11929
|
-
|
|
11965
|
+
By as useWebsocketStore
|
|
11930
11966
|
};
|