sprintify-ui 0.0.34 → 0.0.35
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/README.md +2 -2
- package/dist/sprintify-ui.es.js +247 -256
- package/dist/types/src/components/BaseDataIterator.vue.d.ts +1 -32
- package/dist/types/src/components/BaseDataTable.vue.d.ts +1 -32
- package/dist/types/src/index.d.ts +0 -2
- package/package.json +1 -1
- package/src/components/BaseDataIterator.vue +0 -8
- package/src/components/BaseDataTable.vue +0 -9
- package/src/index.ts +0 -3
package/dist/sprintify-ui.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import al from "axios";
|
|
2
|
-
import { defineComponent as Q, inject as Oe, resolveComponent as pe, openBlock as b, createBlock as ne, withCtx as G, createElementVNode as h, normalizeClass as z, withModifiers as Ue, renderSlot as X, createElementBlock as T, createCommentVNode as Z, toDisplayString as J, h as Be, unref as g, computed as V, ref as N, watch as Ee, Teleport as Mt, createVNode as
|
|
2
|
+
import { defineComponent as Q, inject as Oe, resolveComponent as pe, openBlock as b, createBlock as ne, withCtx as G, createElementVNode as h, normalizeClass as z, withModifiers as Ue, renderSlot as X, createElementBlock as T, createCommentVNode as Z, toDisplayString as J, h as Be, unref as g, computed as V, ref as N, watch as Ee, Teleport as Mt, createVNode as H, Transition as qe, TransitionGroup as Ar, Fragment as me, renderList as ye, normalizeStyle as Ne, onMounted as he, withDirectives as Pe, vShow as nt, normalizeProps as We, guardReactiveProps as Qe, mergeProps as vt, resolveDynamicComponent as rn, createTextVNode as Ye, onBeforeUnmount as on, cloneVNode as sl, provide as Se, watchEffect as Re, nextTick as Ve, onUnmounted as et, reactive as il, isRef as _t, withKeys as $n, vModelText as Cn, useSlots as ul, createStaticVNode as Er, getCurrentInstance as cl, pushScopeId as dl, popScopeId as fl, createSlots as ml, vModelSelect as gn } from "vue";
|
|
3
3
|
import { useI18n as rt, createI18n as pl } from "vue-i18n";
|
|
4
4
|
import { defineStore as zn } from "pinia";
|
|
5
5
|
import sr from "qs";
|
|
6
|
-
import { isArray as Ze, isObject as Bn, get as Ot, debounce as ot, cloneDeep as De, trim as It, padStart as pt, range as it, isNumber as Tr, merge as ir, set as yn, capitalize as
|
|
6
|
+
import { isArray as Ze, isObject as Bn, get as Ot, debounce as ot, cloneDeep as De, trim as It, padStart as pt, range as it, isNumber as Tr, merge as ir, set as yn, capitalize as Ht, isString as Lr, isEqual as hl } from "lodash";
|
|
7
7
|
import { useInfiniteScroll as Mr, useMutationObserver as ln, useResizeObserver as an, useBreakpoints as vl, useMounted as gl } from "@vueuse/core";
|
|
8
8
|
import { useRoute as yl, useRouter as bl } from "vue-router";
|
|
9
9
|
import wl from "pikaday";
|
|
10
|
-
import { Info as
|
|
10
|
+
import { Info as Kt, DateTime as ut } from "luxon";
|
|
11
11
|
const xl = ["active", "href", "aria-current", "onClick"], kl = ["href"], Un = /* @__PURE__ */ Q({
|
|
12
12
|
__name: "BaseActionItem",
|
|
13
13
|
props: {
|
|
@@ -464,7 +464,7 @@ function zl(e, n) {
|
|
|
464
464
|
function An(e) {
|
|
465
465
|
return In[e] || In[""];
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function Hn(e) {
|
|
468
468
|
let n;
|
|
469
469
|
if (typeof e.resources == "string")
|
|
470
470
|
n = [e.resources];
|
|
@@ -481,21 +481,21 @@ function Kn(e) {
|
|
|
481
481
|
dataAfterTimeout: e.dataAfterTimeout !== !1
|
|
482
482
|
};
|
|
483
483
|
}
|
|
484
|
-
const
|
|
484
|
+
const Kn = /* @__PURE__ */ Object.create(null), St = [
|
|
485
485
|
"https://api.simplesvg.com",
|
|
486
486
|
"https://api.unisvg.com"
|
|
487
487
|
], Wt = [];
|
|
488
488
|
for (; St.length > 0; )
|
|
489
489
|
St.length === 1 || Math.random() > 0.5 ? Wt.push(St.shift()) : Wt.push(St.pop());
|
|
490
|
-
|
|
490
|
+
Kn[""] = Hn({
|
|
491
491
|
resources: ["https://api.iconify.design"].concat(Wt)
|
|
492
492
|
});
|
|
493
493
|
function Ul(e, n) {
|
|
494
|
-
const r =
|
|
495
|
-
return r === null ? !1 : (
|
|
494
|
+
const r = Hn(n);
|
|
495
|
+
return r === null ? !1 : (Kn[e] = r, !0);
|
|
496
496
|
}
|
|
497
497
|
function Gn(e) {
|
|
498
|
-
return
|
|
498
|
+
return Kn[e];
|
|
499
499
|
}
|
|
500
500
|
const ql = () => {
|
|
501
501
|
let e;
|
|
@@ -506,7 +506,7 @@ const ql = () => {
|
|
|
506
506
|
}
|
|
507
507
|
};
|
|
508
508
|
let fr = ql();
|
|
509
|
-
function
|
|
509
|
+
function Hl(e, n) {
|
|
510
510
|
const r = Gn(e);
|
|
511
511
|
if (!r)
|
|
512
512
|
return 0;
|
|
@@ -523,11 +523,11 @@ function Kl(e, n) {
|
|
|
523
523
|
}
|
|
524
524
|
return l;
|
|
525
525
|
}
|
|
526
|
-
function
|
|
526
|
+
function Kl(e) {
|
|
527
527
|
return e === 404;
|
|
528
528
|
}
|
|
529
529
|
const Gl = (e, n, r) => {
|
|
530
|
-
const l = [], o =
|
|
530
|
+
const l = [], o = Hl(e, n), a = "icons";
|
|
531
531
|
let s = {
|
|
532
532
|
type: a,
|
|
533
533
|
provider: e,
|
|
@@ -579,7 +579,7 @@ const Ql = (e, n, r) => {
|
|
|
579
579
|
const s = a.status;
|
|
580
580
|
if (s !== 200) {
|
|
581
581
|
setTimeout(() => {
|
|
582
|
-
r(
|
|
582
|
+
r(Kl(s) ? "abort" : "next", s);
|
|
583
583
|
});
|
|
584
584
|
return;
|
|
585
585
|
}
|
|
@@ -862,7 +862,7 @@ function la(e, n, r) {
|
|
|
862
862
|
const s = oa(e);
|
|
863
863
|
s && (l = s.redundancy);
|
|
864
864
|
} else {
|
|
865
|
-
const a =
|
|
865
|
+
const a = Hn(e);
|
|
866
866
|
if (a) {
|
|
867
867
|
l = zr(a);
|
|
868
868
|
const s = e.resources ? e.resources[0] : "", i = An(s);
|
|
@@ -899,7 +899,7 @@ function Ln(e) {
|
|
|
899
899
|
const cn = {
|
|
900
900
|
local: !0,
|
|
901
901
|
session: !0
|
|
902
|
-
},
|
|
902
|
+
}, Hr = {
|
|
903
903
|
local: /* @__PURE__ */ new Set(),
|
|
904
904
|
session: /* @__PURE__ */ new Set()
|
|
905
905
|
};
|
|
@@ -908,7 +908,7 @@ function sa(e) {
|
|
|
908
908
|
Qn = e;
|
|
909
909
|
}
|
|
910
910
|
let Rt = typeof window > "u" ? {} : window;
|
|
911
|
-
function
|
|
911
|
+
function Kr(e) {
|
|
912
912
|
const n = e + "Storage";
|
|
913
913
|
try {
|
|
914
914
|
if (Rt && Rt[n] && typeof Rt[n].length == "number")
|
|
@@ -918,7 +918,7 @@ function Hr(e) {
|
|
|
918
918
|
cn[e] = !1;
|
|
919
919
|
}
|
|
920
920
|
function Gr(e, n) {
|
|
921
|
-
const r =
|
|
921
|
+
const r = Kr(e);
|
|
922
922
|
if (!r)
|
|
923
923
|
return;
|
|
924
924
|
const l = En(r, hr);
|
|
@@ -945,7 +945,7 @@ function Gr(e, n) {
|
|
|
945
945
|
};
|
|
946
946
|
let s = Ln(r);
|
|
947
947
|
for (let i = s - 1; i >= 0; i--)
|
|
948
|
-
a(i) || (i === s - 1 ? (s--, Tn(r, s)) :
|
|
948
|
+
a(i) || (i === s - 1 ? (s--, Tn(r, s)) : Hr[e].add(i));
|
|
949
949
|
}
|
|
950
950
|
function Wr() {
|
|
951
951
|
if (!Qn) {
|
|
@@ -979,9 +979,9 @@ function ua(e, n) {
|
|
|
979
979
|
Qn || Wr();
|
|
980
980
|
function r(l) {
|
|
981
981
|
let o;
|
|
982
|
-
if (!cn[l] || !(o =
|
|
982
|
+
if (!cn[l] || !(o = Kr(l)))
|
|
983
983
|
return;
|
|
984
|
-
const a =
|
|
984
|
+
const a = Hr[l];
|
|
985
985
|
let s;
|
|
986
986
|
if (a.size)
|
|
987
987
|
a.delete(s = Array.from(a).shift());
|
|
@@ -1762,14 +1762,14 @@ Available fill gap methods: `).concat(Y, "."));
|
|
|
1762
1762
|
}, j = function(C) {
|
|
1763
1763
|
var Y = document.querySelectorAll(C);
|
|
1764
1764
|
d(Y, function(re) {
|
|
1765
|
-
|
|
1765
|
+
K(re);
|
|
1766
1766
|
});
|
|
1767
1767
|
}, D = function(C) {
|
|
1768
1768
|
var Y = document.querySelectorAll(C);
|
|
1769
1769
|
d(Y, function(re) {
|
|
1770
1770
|
le(re);
|
|
1771
1771
|
});
|
|
1772
|
-
},
|
|
1772
|
+
}, K = function(C) {
|
|
1773
1773
|
if (s(C) && C.getAttribute("data-scroll-lock-locked") !== "true") {
|
|
1774
1774
|
var Y = window.getComputedStyle(C);
|
|
1775
1775
|
C.setAttribute("data-scroll-lock-saved-overflow-y-property", Y.overflowY), C.setAttribute("data-scroll-lock-saved-inline-overflow-property", C.style.overflow), C.setAttribute("data-scroll-lock-saved-inline-overflow-y-property", C.style.overflowY), C.style.overflow = "hidden", C.setAttribute("data-scroll-lock-locked", "true");
|
|
@@ -1968,7 +1968,7 @@ const Ta = {
|
|
|
1968
1968
|
), n({
|
|
1969
1969
|
dialogs: l
|
|
1970
1970
|
}), (p, x) => (b(), ne(Mt, { to: "body" }, [
|
|
1971
|
-
|
|
1971
|
+
H(qe, {
|
|
1972
1972
|
appear: "",
|
|
1973
1973
|
"enter-active-class": "duration-300 ease-out",
|
|
1974
1974
|
"enter-from-class": "opacity-0",
|
|
@@ -1982,7 +1982,7 @@ const Ta = {
|
|
|
1982
1982
|
]),
|
|
1983
1983
|
_: 1
|
|
1984
1984
|
}),
|
|
1985
|
-
|
|
1985
|
+
H(Ar, {
|
|
1986
1986
|
appear: "",
|
|
1987
1987
|
"enter-active-class": "duration-300 ease-out",
|
|
1988
1988
|
"enter-from-class": "translate-y-10 opacity-0",
|
|
@@ -2005,7 +2005,7 @@ const Ta = {
|
|
|
2005
2005
|
class: "fixed inset-0 h-full w-full",
|
|
2006
2006
|
onClick: (A) => y.closeOnOutsideClick ? a(y) : d(y)
|
|
2007
2007
|
}, null, 8, Ma),
|
|
2008
|
-
|
|
2008
|
+
H(Yr, {
|
|
2009
2009
|
class: z((_ = g(i)[y.id]) != null ? _ : ""),
|
|
2010
2010
|
color: y.color,
|
|
2011
2011
|
title: y.title,
|
|
@@ -2038,7 +2038,7 @@ const Ta = {
|
|
|
2038
2038
|
return (l, o) => (b(), ne(Mt, { to: "body" }, [
|
|
2039
2039
|
h("div", Oa, [
|
|
2040
2040
|
h("div", ja, [
|
|
2041
|
-
|
|
2041
|
+
H(Ar, {
|
|
2042
2042
|
"enter-active-class": "transition duration-300 ease-out transform",
|
|
2043
2043
|
"enter-from-class": "sm:translate-y-0 sm:translate-x-4 translate-y-2 opacity-0",
|
|
2044
2044
|
"enter-to-class": "sm:translate-x-0 translate-y-0 opacity-100",
|
|
@@ -2086,8 +2086,8 @@ const Ta = {
|
|
|
2086
2086
|
setup(e) {
|
|
2087
2087
|
return (n, r) => (b(), T("div", za, [
|
|
2088
2088
|
X(n.$slots, "default"),
|
|
2089
|
-
|
|
2090
|
-
|
|
2089
|
+
H(eo),
|
|
2090
|
+
H(Xr)
|
|
2091
2091
|
]));
|
|
2092
2092
|
}
|
|
2093
2093
|
}), ht = /* @__PURE__ */ Q({
|
|
@@ -2141,7 +2141,7 @@ function dn(e, n, r, l, o = N(!1)) {
|
|
|
2141
2141
|
isSelected: i
|
|
2142
2142
|
};
|
|
2143
2143
|
}
|
|
2144
|
-
const qa = { class: "relative" },
|
|
2144
|
+
const qa = { class: "relative" }, Ha = { class: "relative" }, Ka = ["value", "placeholder", "disabled"], Ga = { class: "pointer-events-none absolute top-0 left-0 flex h-full items-center justify-center pl-2.5" }, Wa = {
|
|
2145
2145
|
key: 0,
|
|
2146
2146
|
class: "absolute top-0 right-0 flex h-full items-center p-1"
|
|
2147
2147
|
}, Qa = { class: "relative" }, Ya = { class: "absolute top-1 z-menu min-h-[110px] w-full overflow-hidden rounded border border-slate-300 bg-white shadow-md" }, Ja = { class: "flex items-center justify-center px-5 py-10 text-center text-slate-600" }, Za = {
|
|
@@ -2308,7 +2308,7 @@ const qa = { class: "relative" }, Ka = { class: "relative" }, Ha = ["value", "pl
|
|
|
2308
2308
|
const ee = pe("BaseIcon");
|
|
2309
2309
|
return b(), T("div", null, [
|
|
2310
2310
|
h("div", qa, [
|
|
2311
|
-
h("div",
|
|
2311
|
+
h("div", Ha, [
|
|
2312
2312
|
h("input", {
|
|
2313
2313
|
ref_key: "inputElement",
|
|
2314
2314
|
ref: i,
|
|
@@ -2322,9 +2322,9 @@ const qa = { class: "relative" }, Ka = { class: "relative" }, Ha = ["value", "pl
|
|
|
2322
2322
|
onBlur: t,
|
|
2323
2323
|
onInput: E,
|
|
2324
2324
|
onKeydown: M
|
|
2325
|
-
}, null, 42,
|
|
2325
|
+
}, null, 42, Ka),
|
|
2326
2326
|
h("div", Ga, [
|
|
2327
|
-
|
|
2327
|
+
H(ee, {
|
|
2328
2328
|
class: "h-5 w-5 text-slate-400",
|
|
2329
2329
|
icon: "heroicons:magnifying-glass-solid"
|
|
2330
2330
|
})
|
|
@@ -2336,7 +2336,7 @@ const qa = { class: "relative" }, Ka = { class: "relative" }, Ha = ["value", "pl
|
|
|
2336
2336
|
class: "group flex h-full items-center rounded p-1.5 enabled:hover:bg-slate-100",
|
|
2337
2337
|
onClick: q[0] || (q[0] = (W) => w())
|
|
2338
2338
|
}, [
|
|
2339
|
-
|
|
2339
|
+
H(ee, {
|
|
2340
2340
|
icon: "heroicons:x-mark",
|
|
2341
2341
|
class: "h-5 w-5 text-slate-500 group-hover:text-slate-700"
|
|
2342
2342
|
})
|
|
@@ -2387,15 +2387,15 @@ const qa = { class: "relative" }, Ka = { class: "relative" }, Ha = ["value", "pl
|
|
|
2387
2387
|
], 512),
|
|
2388
2388
|
e.loading ? (b(), T("div", ts, [
|
|
2389
2389
|
h("div", ns, [
|
|
2390
|
-
|
|
2390
|
+
H(ht, {
|
|
2391
2391
|
class: "h-7 w-full",
|
|
2392
2392
|
delay: "0ms"
|
|
2393
2393
|
}),
|
|
2394
|
-
|
|
2394
|
+
H(ht, {
|
|
2395
2395
|
class: "h-7 w-full opacity-70",
|
|
2396
2396
|
delay: "50ms"
|
|
2397
2397
|
}),
|
|
2398
|
-
|
|
2398
|
+
H(ht, {
|
|
2399
2399
|
class: "h-7 w-full opacity-30",
|
|
2400
2400
|
delay: "100ms"
|
|
2401
2401
|
})
|
|
@@ -2516,13 +2516,13 @@ const qa = { class: "relative" }, Ka = { class: "relative" }, Ha = ["value", "pl
|
|
|
2516
2516
|
"border-t border-slate-300": M.options.length > 0
|
|
2517
2517
|
}])
|
|
2518
2518
|
}, [
|
|
2519
|
-
|
|
2519
|
+
H(E, {
|
|
2520
2520
|
to: e.createNewUrl,
|
|
2521
2521
|
target: "_blank",
|
|
2522
2522
|
class: "btn btn-slate-200-outline flex items-center justify-center"
|
|
2523
2523
|
}, {
|
|
2524
2524
|
default: G(() => [
|
|
2525
|
-
|
|
2525
|
+
H(t, {
|
|
2526
2526
|
icon: "heroicons-solid:plus",
|
|
2527
2527
|
class: "mr-1.5 block h-5 w-5"
|
|
2528
2528
|
}),
|
|
@@ -2735,9 +2735,9 @@ const qa = { class: "relative" }, Ka = { class: "relative" }, Ha = ["value", "pl
|
|
|
2735
2735
|
class: z(["inline-flex h-5 w-5 items-center justify-center rounded-full", g(r)])
|
|
2736
2736
|
}, [
|
|
2737
2737
|
e.modelValue ? (b(), T("div", cs, [
|
|
2738
|
-
|
|
2738
|
+
H(a, { icon: "heroicons-solid:check" })
|
|
2739
2739
|
])) : (b(), T("div", ds, [
|
|
2740
|
-
|
|
2740
|
+
H(a, { icon: "heroicons-solid:x" })
|
|
2741
2741
|
]))
|
|
2742
2742
|
], 2);
|
|
2743
2743
|
};
|
|
@@ -2775,7 +2775,7 @@ const qa = { class: "relative" }, Ka = { class: "relative" }, Ha = ["value", "pl
|
|
|
2775
2775
|
class: "h-5 w-5 flex-shrink-0 text-slate-400",
|
|
2776
2776
|
"aria-hidden": "true"
|
|
2777
2777
|
})) : Z("", !0),
|
|
2778
|
-
|
|
2778
|
+
H(s, {
|
|
2779
2779
|
to: i.to,
|
|
2780
2780
|
custom: ""
|
|
2781
2781
|
}, {
|
|
@@ -2789,7 +2789,7 @@ const qa = { class: "relative" }, Ka = { class: "relative" }, Ha = ["value", "pl
|
|
|
2789
2789
|
onClick: Ue((_) => x(), ["prevent"])
|
|
2790
2790
|
}, [
|
|
2791
2791
|
i.icon ? (b(), T("span", gs, [
|
|
2792
|
-
|
|
2792
|
+
H(a, {
|
|
2793
2793
|
icon: i.icon
|
|
2794
2794
|
}, null, 8, ["icon"])
|
|
2795
2795
|
])) : (b(), T("span", ys, J(i.label), 1))
|
|
@@ -2808,7 +2808,7 @@ const qa = { class: "relative" }, Ka = { class: "relative" }, Ha = ["value", "pl
|
|
|
2808
2808
|
}, {
|
|
2809
2809
|
default: G(() => [
|
|
2810
2810
|
h("div", bs, [
|
|
2811
|
-
|
|
2811
|
+
H(a, {
|
|
2812
2812
|
icon: "heroicons-solid:arrow-left",
|
|
2813
2813
|
class: "mr-2"
|
|
2814
2814
|
}),
|
|
@@ -3109,7 +3109,7 @@ const Jn = /* @__PURE__ */ Fe(As, [["render", Ts]]), Ls = {
|
|
|
3109
3109
|
onMouseleave: y[2] || (y[2] = (A) => i())
|
|
3110
3110
|
}, [
|
|
3111
3111
|
X(x.$slots, "default"),
|
|
3112
|
-
|
|
3112
|
+
H(qe, {
|
|
3113
3113
|
"enter-active-class": "transition duration-200 ease-out",
|
|
3114
3114
|
"enter-from-class": "transform scale-90 opacity-0",
|
|
3115
3115
|
"enter-to-class": "transform scale-100 opacity-100",
|
|
@@ -3121,7 +3121,7 @@ const Jn = /* @__PURE__ */ Fe(As, [["render", Ts]]), Ls = {
|
|
|
3121
3121
|
Pe(h("div", Os, [
|
|
3122
3122
|
h("div", js, [
|
|
3123
3123
|
g(l) ? (b(), T("div", Ds, [
|
|
3124
|
-
|
|
3124
|
+
H(_, {
|
|
3125
3125
|
class: "mr-1 text-green-500",
|
|
3126
3126
|
icon: "heroicons:check-circle-solid"
|
|
3127
3127
|
}),
|
|
@@ -3457,7 +3457,7 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
3457
3457
|
function S(u, v, $) {
|
|
3458
3458
|
if (!(this instanceof S))
|
|
3459
3459
|
return new S(u, v, $);
|
|
3460
|
-
var j, D,
|
|
3460
|
+
var j, D, K, le, ve = typeof u;
|
|
3461
3461
|
if (v === "base64" && ve == "string")
|
|
3462
3462
|
for (u = (le = u).trim ? le.trim() : le.replace(/^\s+|\s+$/g, ""); u.length % 4 != 0; )
|
|
3463
3463
|
u += "=";
|
|
@@ -3473,26 +3473,26 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
3473
3473
|
if (S._useTypedArrays ? D = S._augment(new Uint8Array(j)) : ((D = this).length = j, D._isBuffer = !0), S._useTypedArrays && typeof u.byteLength == "number")
|
|
3474
3474
|
D._set(u);
|
|
3475
3475
|
else if (se(le = u) || S.isBuffer(le) || le && typeof le == "object" && typeof le.length == "number")
|
|
3476
|
-
for (
|
|
3477
|
-
S.isBuffer(u) ? D[
|
|
3476
|
+
for (K = 0; K < j; K++)
|
|
3477
|
+
S.isBuffer(u) ? D[K] = u.readUInt8(K) : D[K] = u[K];
|
|
3478
3478
|
else if (ve == "string")
|
|
3479
3479
|
D.write(u, 0, v);
|
|
3480
3480
|
else if (ve == "number" && !S._useTypedArrays && !$)
|
|
3481
|
-
for (
|
|
3482
|
-
D[
|
|
3481
|
+
for (K = 0; K < j; K++)
|
|
3482
|
+
D[K] = 0;
|
|
3483
3483
|
return D;
|
|
3484
3484
|
}
|
|
3485
3485
|
function L(u, v, $, j) {
|
|
3486
3486
|
return S._charsWritten = ce(function(D) {
|
|
3487
|
-
for (var
|
|
3488
|
-
|
|
3489
|
-
return
|
|
3487
|
+
for (var K = [], le = 0; le < D.length; le++)
|
|
3488
|
+
K.push(255 & D.charCodeAt(le));
|
|
3489
|
+
return K;
|
|
3490
3490
|
}(v), u, $, j);
|
|
3491
3491
|
}
|
|
3492
3492
|
function t(u, v, $, j) {
|
|
3493
3493
|
return S._charsWritten = ce(function(D) {
|
|
3494
|
-
for (var
|
|
3495
|
-
le = D.charCodeAt(xe),
|
|
3494
|
+
for (var K, le, ve = [], xe = 0; xe < D.length; xe++)
|
|
3495
|
+
le = D.charCodeAt(xe), K = le >> 8, le = le % 256, ve.push(le), ve.push(K);
|
|
3496
3496
|
return ve;
|
|
3497
3497
|
}(v), u, $, j);
|
|
3498
3498
|
}
|
|
@@ -3503,17 +3503,17 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
3503
3503
|
j += String.fromCharCode(u[D]);
|
|
3504
3504
|
return j;
|
|
3505
3505
|
}
|
|
3506
|
-
function M(u, v, $,
|
|
3507
|
-
|
|
3508
|
-
var D,
|
|
3509
|
-
if (!(
|
|
3510
|
-
return $ ? (D = u[v], v + 1 <
|
|
3506
|
+
function M(u, v, $, K) {
|
|
3507
|
+
K || (P(typeof $ == "boolean", "missing or invalid endian"), P(v != null, "missing offset"), P(v + 1 < u.length, "Trying to read beyond buffer length"));
|
|
3508
|
+
var D, K = u.length;
|
|
3509
|
+
if (!(K <= v))
|
|
3510
|
+
return $ ? (D = u[v], v + 1 < K && (D |= u[v + 1] << 8)) : (D = u[v] << 8, v + 1 < K && (D |= u[v + 1])), D;
|
|
3511
3511
|
}
|
|
3512
|
-
function R(u, v, $,
|
|
3513
|
-
|
|
3514
|
-
var D,
|
|
3515
|
-
if (!(
|
|
3516
|
-
return $ ? (v + 2 <
|
|
3512
|
+
function R(u, v, $, K) {
|
|
3513
|
+
K || (P(typeof $ == "boolean", "missing or invalid endian"), P(v != null, "missing offset"), P(v + 3 < u.length, "Trying to read beyond buffer length"));
|
|
3514
|
+
var D, K = u.length;
|
|
3515
|
+
if (!(K <= v))
|
|
3516
|
+
return $ ? (v + 2 < K && (D = u[v + 2] << 16), v + 1 < K && (D |= u[v + 1] << 8), D |= u[v], v + 3 < K && (D += u[v + 3] << 24 >>> 0)) : (v + 1 < K && (D = u[v + 1] << 16), v + 2 < K && (D |= u[v + 2] << 8), v + 3 < K && (D |= u[v + 3]), D += u[v] << 24 >>> 0), D;
|
|
3517
3517
|
}
|
|
3518
3518
|
function w(u, v, $, j) {
|
|
3519
3519
|
if (j || (P(typeof $ == "boolean", "missing or invalid endian"), P(v != null, "missing offset"), P(v + 1 < u.length, "Trying to read beyond buffer length")), !(u.length <= v))
|
|
@@ -3531,13 +3531,13 @@ Use "options.replacer" or "options.ignoreUnknown"
|
|
|
3531
3531
|
}
|
|
3532
3532
|
function f(u, v, $, j, D) {
|
|
3533
3533
|
if (D || (P(v != null, "missing value"), P(typeof j == "boolean", "missing or invalid endian"), P($ != null, "missing offset"), P($ + 1 < u.length, "trying to write beyond buffer length"), Le(v, 65535)), D = u.length, !(D <= $))
|
|
3534
|
-
for (var
|
|
3535
|
-
u[$ +
|
|
3534
|
+
for (var K = 0, le = Math.min(D - $, 2); K < le; K++)
|
|
3535
|
+
u[$ + K] = (v & 255 << 8 * (j ? K : 1 - K)) >>> 8 * (j ? K : 1 - K);
|
|
3536
3536
|
}
|
|
3537
3537
|
function I(u, v, $, j, D) {
|
|
3538
3538
|
if (D || (P(v != null, "missing value"), P(typeof j == "boolean", "missing or invalid endian"), P($ != null, "missing offset"), P($ + 3 < u.length, "trying to write beyond buffer length"), Le(v, 4294967295)), D = u.length, !(D <= $))
|
|
3539
|
-
for (var
|
|
3540
|
-
u[$ +
|
|
3539
|
+
for (var K = 0, le = Math.min(D - $, 4); K < le; K++)
|
|
3540
|
+
u[$ + K] = v >>> 8 * (j ? K : 3 - K) & 255;
|
|
3541
3541
|
}
|
|
3542
3542
|
function O(u, v, $, j, D) {
|
|
3543
3543
|
D || (P(v != null, "missing value"), P(typeof j == "boolean", "missing or invalid endian"), P($ != null, "missing offset"), P($ + 1 < u.length, "Trying to write beyond buffer length"), Je(v, 32767, -32768)), u.length <= $ || f(u, 0 <= v ? v : 65535 + v + 1, $, j, D);
|
|
@@ -3617,13 +3617,13 @@ list should be an Array.`), u.length === 0)
|
|
|
3617
3617
|
for (D = v = 0; D < u.length; D++)
|
|
3618
3618
|
v += u[D].length;
|
|
3619
3619
|
for (var $ = new S(v), j = 0, D = 0; D < u.length; D++) {
|
|
3620
|
-
var
|
|
3621
|
-
|
|
3620
|
+
var K = u[D];
|
|
3621
|
+
K.copy($, j), j += K.length;
|
|
3622
3622
|
}
|
|
3623
3623
|
return $;
|
|
3624
3624
|
}, S.prototype.write = function(u, v, $, j) {
|
|
3625
3625
|
isFinite(v) ? isFinite($) || (j = $, $ = void 0) : (xe = j, j = v, v = $, $ = xe), v = Number(v) || 0;
|
|
3626
|
-
var D,
|
|
3626
|
+
var D, K, le, ve, xe = this.length - v;
|
|
3627
3627
|
switch ((!$ || xe < ($ = Number($))) && ($ = xe), j = String(j || "utf8").toLowerCase()) {
|
|
3628
3628
|
case "hex":
|
|
3629
3629
|
D = function(je, Ce, Ie, we) {
|
|
@@ -3639,14 +3639,14 @@ list should be an Array.`), u.length === 0)
|
|
|
3639
3639
|
break;
|
|
3640
3640
|
case "utf8":
|
|
3641
3641
|
case "utf-8":
|
|
3642
|
-
|
|
3642
|
+
K = this, le = v, ve = $, D = S._charsWritten = ce($e(u), K, le, ve);
|
|
3643
3643
|
break;
|
|
3644
3644
|
case "ascii":
|
|
3645
3645
|
case "binary":
|
|
3646
3646
|
D = L(this, u, v, $);
|
|
3647
3647
|
break;
|
|
3648
3648
|
case "base64":
|
|
3649
|
-
|
|
3649
|
+
K = this, le = v, ve = $, D = S._charsWritten = ce(oe(u), K, le, ve);
|
|
3650
3650
|
break;
|
|
3651
3651
|
case "ucs2":
|
|
3652
3652
|
case "ucs-2":
|
|
@@ -3659,7 +3659,7 @@ list should be an Array.`), u.length === 0)
|
|
|
3659
3659
|
}
|
|
3660
3660
|
return D;
|
|
3661
3661
|
}, S.prototype.toString = function(u, v, $) {
|
|
3662
|
-
var j, D,
|
|
3662
|
+
var j, D, K, le, ve = this;
|
|
3663
3663
|
if (u = String(u || "utf8").toLowerCase(), v = Number(v) || 0, ($ = $ !== void 0 ? Number($) : ve.length) === v)
|
|
3664
3664
|
return "";
|
|
3665
3665
|
switch (u) {
|
|
@@ -3687,7 +3687,7 @@ list should be an Array.`), u.length === 0)
|
|
|
3687
3687
|
j = E(ve, v, $);
|
|
3688
3688
|
break;
|
|
3689
3689
|
case "base64":
|
|
3690
|
-
D = ve, le = $, j = (
|
|
3690
|
+
D = ve, le = $, j = (K = v) === 0 && le === D.length ? k.fromByteArray(D) : k.fromByteArray(D.slice(K, le));
|
|
3691
3691
|
break;
|
|
3692
3692
|
case "ucs2":
|
|
3693
3693
|
case "ucs-2":
|
|
@@ -3710,8 +3710,8 @@ list should be an Array.`), u.length === 0)
|
|
|
3710
3710
|
P($ <= j, "sourceEnd < sourceStart"), P(0 <= v && v < u.length, "targetStart out of bounds"), P(0 <= $ && $ < this.length, "sourceStart out of bounds"), P(0 <= j && j <= this.length, "sourceEnd out of bounds"), j > this.length && (j = this.length);
|
|
3711
3711
|
var D = (j = u.length - v < j - $ ? u.length - v + $ : j) - $;
|
|
3712
3712
|
if (D < 100 || !S._useTypedArrays)
|
|
3713
|
-
for (var
|
|
3714
|
-
u[
|
|
3713
|
+
for (var K = 0; K < D; K++)
|
|
3714
|
+
u[K + v] = this[K + $];
|
|
3715
3715
|
else
|
|
3716
3716
|
u._set(this.subarray($, $ + D), v);
|
|
3717
3717
|
}
|
|
@@ -3719,8 +3719,8 @@ list should be an Array.`), u.length === 0)
|
|
|
3719
3719
|
var $ = this.length;
|
|
3720
3720
|
if (u = ae(u, $, 0), v = ae(v, $, $), S._useTypedArrays)
|
|
3721
3721
|
return S._augment(this.subarray(u, v));
|
|
3722
|
-
for (var j = v - u, D = new S(j, void 0, !0),
|
|
3723
|
-
D[
|
|
3722
|
+
for (var j = v - u, D = new S(j, void 0, !0), K = 0; K < j; K++)
|
|
3723
|
+
D[K] = this[K + u];
|
|
3724
3724
|
return D;
|
|
3725
3725
|
}, S.prototype.get = function(u) {
|
|
3726
3726
|
return console.log(".get() is deprecated. Access using array indexes instead."), this.readUInt8(u);
|
|
@@ -3827,8 +3827,8 @@ list should be an Array.`), u.length === 0)
|
|
|
3827
3827
|
if (j <= 127)
|
|
3828
3828
|
v.push(u.charCodeAt($));
|
|
3829
3829
|
else
|
|
3830
|
-
for (var D = $,
|
|
3831
|
-
v.push(parseInt(
|
|
3830
|
+
for (var D = $, K = (55296 <= j && j <= 57343 && $++, encodeURIComponent(u.slice(D, $ + 1)).substr(1).split("%")), le = 0; le < K.length; le++)
|
|
3831
|
+
v.push(parseInt(K[le], 16));
|
|
3832
3832
|
}
|
|
3833
3833
|
return v;
|
|
3834
3834
|
}
|
|
@@ -4062,13 +4062,13 @@ list should be an Array.`), u.length === 0)
|
|
|
4062
4062
|
});
|
|
4063
4063
|
})(oo);
|
|
4064
4064
|
const Rs = oo.exports;
|
|
4065
|
-
function
|
|
4065
|
+
function He(e, n, ...r) {
|
|
4066
4066
|
if (e in n) {
|
|
4067
4067
|
let o = n[e];
|
|
4068
4068
|
return typeof o == "function" ? o(...r) : o;
|
|
4069
4069
|
}
|
|
4070
4070
|
let l = new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map((o) => `"${o}"`).join(", ")}.`);
|
|
4071
|
-
throw Error.captureStackTrace && Error.captureStackTrace(l,
|
|
4071
|
+
throw Error.captureStackTrace && Error.captureStackTrace(l, He), l;
|
|
4072
4072
|
}
|
|
4073
4073
|
var xt = ((e) => (e[e.None = 0] = "None", e[e.RenderStrategy = 1] = "RenderStrategy", e[e.Static = 2] = "Static", e))(xt || {}), ct = ((e) => (e[e.Unmount = 0] = "Unmount", e[e.Hidden = 1] = "Hidden", e))(ct || {});
|
|
4074
4074
|
function Te({ visible: e = !0, features: n = 0, ourProps: r, theirProps: l, ...o }) {
|
|
@@ -4078,7 +4078,7 @@ function Te({ visible: e = !0, features: n = 0, ourProps: r, theirProps: l, ...o
|
|
|
4078
4078
|
return xn(i);
|
|
4079
4079
|
if (n & 1) {
|
|
4080
4080
|
let d = (a = s.unmount) == null || a ? 0 : 1;
|
|
4081
|
-
return
|
|
4081
|
+
return He(d, { [0]() {
|
|
4082
4082
|
return null;
|
|
4083
4083
|
}, [1]() {
|
|
4084
4084
|
return xn({ ...o, props: { ...s, hidden: !0, style: { display: "none" } } });
|
|
@@ -4149,12 +4149,12 @@ function Zn(e, n = []) {
|
|
|
4149
4149
|
function qs(e) {
|
|
4150
4150
|
return e == null ? !1 : typeof e.type == "string" || typeof e.type == "object" || typeof e.type == "function";
|
|
4151
4151
|
}
|
|
4152
|
-
let
|
|
4153
|
-
function
|
|
4154
|
-
return ++
|
|
4152
|
+
let Hs = 0;
|
|
4153
|
+
function Ks() {
|
|
4154
|
+
return ++Hs;
|
|
4155
4155
|
}
|
|
4156
|
-
function
|
|
4157
|
-
return
|
|
4156
|
+
function Ke() {
|
|
4157
|
+
return Ks();
|
|
4158
4158
|
}
|
|
4159
4159
|
var Ae = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(Ae || {});
|
|
4160
4160
|
function Gs(e) {
|
|
@@ -4254,7 +4254,7 @@ function co(e = document.body) {
|
|
|
4254
4254
|
var Xn = ((e) => (e[e.Strict = 0] = "Strict", e[e.Loose = 1] = "Loose", e))(Xn || {});
|
|
4255
4255
|
function er(e, n = 0) {
|
|
4256
4256
|
var r;
|
|
4257
|
-
return e === ((r = dt(e)) == null ? void 0 : r.body) ? !1 :
|
|
4257
|
+
return e === ((r = dt(e)) == null ? void 0 : r.body) ? !1 : He(n, { [0]() {
|
|
4258
4258
|
return e.matches(On);
|
|
4259
4259
|
}, [1]() {
|
|
4260
4260
|
let l = e;
|
|
@@ -4418,7 +4418,7 @@ let $t = Object.assign(Q({ name: "FocusTrap", props: { as: { type: [Object, Stri
|
|
|
4418
4418
|
let i = oi();
|
|
4419
4419
|
function d() {
|
|
4420
4420
|
let p = ge(o);
|
|
4421
|
-
!p ||
|
|
4421
|
+
!p || He(i.value, { [jn.Forwards]: () => tn(p, yt.First), [jn.Backwards]: () => tn(p, yt.Last) });
|
|
4422
4422
|
}
|
|
4423
4423
|
return () => {
|
|
4424
4424
|
let p = {}, x = { ref: o }, { features: y, initialFocus: _, containers: A, ...k } = e;
|
|
@@ -4610,7 +4610,7 @@ function ko({ slot: e = N({}), name: n = "Description", props: r = {} } = {}) {
|
|
|
4610
4610
|
return Se(xo, { register: o, slot: e, name: n, props: r }), V(() => l.value.length > 0 ? l.value.join(" ") : void 0);
|
|
4611
4611
|
}
|
|
4612
4612
|
let kp = Q({ name: "Description", props: { as: { type: [Object, String], default: "p" } }, setup(e, { attrs: n, slots: r }) {
|
|
4613
|
-
let l = vi(), o = `headlessui-description-${
|
|
4613
|
+
let l = vi(), o = `headlessui-description-${Ke()}`;
|
|
4614
4614
|
return he(() => et(l.register(o))), () => {
|
|
4615
4615
|
let { name: a = "Description", slot: s = N({}), props: i = {} } = l, d = e, p = { ...Object.entries(i).reduce((x, [y, _]) => Object.assign(x, { [y]: g(_) }), {}), id: o };
|
|
4616
4616
|
return Te({ ourProps: p, theirProps: d, slot: s.value, attrs: n, slots: r, name: a });
|
|
@@ -4661,7 +4661,7 @@ let Ut = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", bi = Q({ name: "Dialog", inheri
|
|
|
4661
4661
|
he(() => {
|
|
4662
4662
|
s.value = !0;
|
|
4663
4663
|
});
|
|
4664
|
-
let i = N(0), d = fn(), p = V(() => e.open === Ut && d !== null ?
|
|
4664
|
+
let i = N(0), d = fn(), p = V(() => e.open === Ut && d !== null ? He(d.value, { [Xe.Open]: !0, [Xe.Closed]: !1 }) : e.open), x = N(/* @__PURE__ */ new Set()), y = N(null), _ = N(null), A = V(() => dt(y));
|
|
4665
4665
|
if (o({ el: y, $el: y }), !(e.open !== Ut || d !== null))
|
|
4666
4666
|
throw new Error("You forgot to provide an `open` prop to the `Dialog`.");
|
|
4667
4667
|
if (typeof p.value != "boolean")
|
|
@@ -4669,13 +4669,13 @@ let Ut = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", bi = Q({ name: "Dialog", inheri
|
|
|
4669
4669
|
let k = V(() => s.value && p.value ? 0 : 1), F = V(() => k.value === 0), S = V(() => i.value > 1), L = Oe(Pn, null) !== null, t = V(() => S.value ? "parent" : "leaf");
|
|
4670
4670
|
ci(y, V(() => S.value ? F.value : !1)), hi({ type: "Dialog", enabled: V(() => k.value === 0), element: y, onUpdate: (B, c, m) => {
|
|
4671
4671
|
if (c === "Dialog")
|
|
4672
|
-
return
|
|
4672
|
+
return He(B, { [Fn.Add]() {
|
|
4673
4673
|
x.value.add(m), i.value += 1;
|
|
4674
4674
|
}, [Fn.Remove]() {
|
|
4675
4675
|
x.value.delete(m), i.value -= 1;
|
|
4676
4676
|
} });
|
|
4677
4677
|
} });
|
|
4678
|
-
let E = ko({ name: "DialogDescription", slot: V(() => ({ open: p.value })) }), M = `headlessui-dialog-${
|
|
4678
|
+
let E = ko({ name: "DialogDescription", slot: V(() => ({ open: p.value })) }), M = `headlessui-dialog-${Ke()}`, R = N(null), w = { titleId: R, panelRef: N(null), dialogState: k, setTitleId(B) {
|
|
4679
4679
|
R.value !== B && (R.value = B);
|
|
4680
4680
|
}, close() {
|
|
4681
4681
|
n("close", !1);
|
|
@@ -4724,18 +4724,18 @@ let Ut = "DC8F892D-2EBD-447C-A4C8-A03058436FF4", bi = Q({ name: "Dialog", inheri
|
|
|
4724
4724
|
m.observe(c), B(() => m.disconnect());
|
|
4725
4725
|
}), () => {
|
|
4726
4726
|
let B = { ...r, ref: y, id: M, role: "dialog", "aria-modal": k.value === 0 ? !0 : void 0, "aria-labelledby": R.value, "aria-describedby": E.value }, { open: c, initialFocus: m, ...f } = e, I = { open: k.value === 0 };
|
|
4727
|
-
return Be(Dn, { force: !0 }, () => [Be(yo, () => Be(mi, { target: y.value }, () => Be(Dn, { force: !1 }, () => Be($t, { initialFocus: m, containers: x, features: F.value ?
|
|
4727
|
+
return Be(Dn, { force: !0 }, () => [Be(yo, () => Be(mi, { target: y.value }, () => Be(Dn, { force: !1 }, () => Be($t, { initialFocus: m, containers: x, features: F.value ? He(t.value, { parent: $t.features.RestoreFocus, leaf: $t.features.All & ~$t.features.FocusLock }) : $t.features.None }, () => Te({ ourProps: B, theirProps: f, slot: I, attrs: r, slots: l, visible: k.value === 0, features: xt.RenderStrategy | xt.Static, name: "Dialog" }))))), Be(nn, { features: Lt.Hidden, ref: _ })]);
|
|
4728
4728
|
};
|
|
4729
4729
|
} });
|
|
4730
4730
|
Q({ name: "DialogOverlay", props: { as: { type: [Object, String], default: "div" } }, setup(e, { attrs: n, slots: r }) {
|
|
4731
|
-
let l = Dt("DialogOverlay"), o = `headlessui-dialog-overlay-${
|
|
4731
|
+
let l = Dt("DialogOverlay"), o = `headlessui-dialog-overlay-${Ke()}`;
|
|
4732
4732
|
function a(s) {
|
|
4733
4733
|
s.target === s.currentTarget && (s.preventDefault(), s.stopPropagation(), l.close());
|
|
4734
4734
|
}
|
|
4735
4735
|
return () => Te({ ourProps: { id: o, "aria-hidden": !0, onClick: a }, theirProps: e, slot: { open: l.dialogState.value === 0 }, attrs: n, slots: r, name: "DialogOverlay" });
|
|
4736
4736
|
} });
|
|
4737
4737
|
Q({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div" } }, inheritAttrs: !1, setup(e, { attrs: n, slots: r, expose: l }) {
|
|
4738
|
-
let o = Dt("DialogBackdrop"), a = `headlessui-dialog-backdrop-${
|
|
4738
|
+
let o = Dt("DialogBackdrop"), a = `headlessui-dialog-backdrop-${Ke()}`, s = N(null);
|
|
4739
4739
|
return l({ el: s, $el: s }), he(() => {
|
|
4740
4740
|
if (o.panelRef.value === null)
|
|
4741
4741
|
throw new Error("A <DialogBackdrop /> component is being used, but a <DialogPanel /> component is missing.");
|
|
@@ -4745,7 +4745,7 @@ Q({ name: "DialogBackdrop", props: { as: { type: [Object, String], default: "div
|
|
|
4745
4745
|
};
|
|
4746
4746
|
} });
|
|
4747
4747
|
let wi = Q({ name: "DialogPanel", props: { as: { type: [Object, String], default: "div" } }, setup(e, { attrs: n, slots: r, expose: l }) {
|
|
4748
|
-
let o = Dt("DialogPanel"), a = `headlessui-dialog-panel-${
|
|
4748
|
+
let o = Dt("DialogPanel"), a = `headlessui-dialog-panel-${Ke()}`;
|
|
4749
4749
|
l({ el: o.panelRef, $el: o.panelRef });
|
|
4750
4750
|
function s(i) {
|
|
4751
4751
|
i.stopPropagation();
|
|
@@ -4756,7 +4756,7 @@ let wi = Q({ name: "DialogPanel", props: { as: { type: [Object, String], default
|
|
|
4756
4756
|
};
|
|
4757
4757
|
} });
|
|
4758
4758
|
Q({ name: "DialogTitle", props: { as: { type: [Object, String], default: "h2" } }, setup(e, { attrs: n, slots: r }) {
|
|
4759
|
-
let l = Dt("DialogTitle"), o = `headlessui-dialog-title-${
|
|
4759
|
+
let l = Dt("DialogTitle"), o = `headlessui-dialog-title-${Ke()}`;
|
|
4760
4760
|
return he(() => {
|
|
4761
4761
|
l.setTitleId(o), et(() => l.setTitleId(null));
|
|
4762
4762
|
}), () => Te({ ourProps: { id: o }, theirProps: e, slot: { open: l.dialogState.value === 0 }, attrs: n, slots: r, name: "DialogTitle" });
|
|
@@ -4805,12 +4805,12 @@ let $i = Q({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
4805
4805
|
return po([o, a], (_, A) => {
|
|
4806
4806
|
var k;
|
|
4807
4807
|
y.closeMenu(), er(A, Xn.Loose) || (_.preventDefault(), (k = ge(o)) == null || k.focus());
|
|
4808
|
-
}, V(() => l.value === 0)), Se(So, y), so(V(() =>
|
|
4808
|
+
}, V(() => l.value === 0)), Se(So, y), so(V(() => He(l.value, { [0]: Xe.Open, [1]: Xe.Closed }))), () => {
|
|
4809
4809
|
let _ = { open: l.value === 0, close: y.closeMenu };
|
|
4810
4810
|
return Te({ ourProps: {}, theirProps: e, slot: _, slots: n, attrs: r, name: "Menu" });
|
|
4811
4811
|
};
|
|
4812
4812
|
} }), Ci = Q({ name: "MenuButton", props: { disabled: { type: Boolean, default: !1 }, as: { type: [Object, String], default: "button" } }, setup(e, { attrs: n, slots: r, expose: l }) {
|
|
4813
|
-
let o = pn("MenuButton"), a = `headlessui-menu-button-${
|
|
4813
|
+
let o = pn("MenuButton"), a = `headlessui-menu-button-${Ke()}`;
|
|
4814
4814
|
l({ el: o.buttonRef, $el: o.buttonRef });
|
|
4815
4815
|
function s(x) {
|
|
4816
4816
|
switch (x.key) {
|
|
@@ -4853,7 +4853,7 @@ let $i = Q({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
4853
4853
|
return Te({ ourProps: _, theirProps: e, slot: y, attrs: n, slots: r, name: "MenuButton" });
|
|
4854
4854
|
};
|
|
4855
4855
|
} }), Bi = Q({ name: "MenuItems", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: !1 }, unmount: { type: Boolean, default: !0 } }, setup(e, { attrs: n, slots: r, expose: l }) {
|
|
4856
|
-
let o = pn("MenuItems"), a = `headlessui-menu-items-${
|
|
4856
|
+
let o = pn("MenuItems"), a = `headlessui-menu-items-${Ke()}`, s = N(null);
|
|
4857
4857
|
l({ el: o.itemsRef, $el: o.itemsRef }), Ys({ container: V(() => ge(o.itemsRef)), enabled: V(() => o.menuState.value === 0), accept(y) {
|
|
4858
4858
|
return y.getAttribute("role") === "menuitem" ? NodeFilter.FILTER_REJECT : y.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
4859
4859
|
}, walk(y) {
|
|
@@ -4910,7 +4910,7 @@ let $i = Q({ name: "Menu", props: { as: { type: [Object, String], default: "temp
|
|
|
4910
4910
|
return Te({ ourProps: k, theirProps: e, slot: A, attrs: n, slots: r, features: xt.RenderStrategy | xt.Static, visible: x.value, name: "MenuItems" });
|
|
4911
4911
|
};
|
|
4912
4912
|
} }), Bt = Q({ name: "MenuItem", props: { as: { type: [Object, String], default: "template" }, disabled: { type: Boolean, default: !1 } }, setup(e, { slots: n, attrs: r, expose: l }) {
|
|
4913
|
-
let o = pn("MenuItem"), a = `headlessui-menu-item-${
|
|
4913
|
+
let o = pn("MenuItem"), a = `headlessui-menu-item-${Ke()}`, s = N(null);
|
|
4914
4914
|
l({ el: s, $el: s });
|
|
4915
4915
|
let i = V(() => o.activeItemIndex.value !== null ? o.items.value[o.activeItemIndex.value].id === a : !1), d = V(() => ({ disabled: e.disabled, textValue: "", domRef: s }));
|
|
4916
4916
|
he(() => {
|
|
@@ -4963,7 +4963,7 @@ function _i({ slot: e = {}, name: n = "Label", props: r = {} } = {}) {
|
|
|
4963
4963
|
return Se($o, { register: o, slot: e, name: n, props: r }), V(() => l.value.length > 0 ? l.value.join(" ") : void 0);
|
|
4964
4964
|
}
|
|
4965
4965
|
let Ii = Q({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: !1 } }, setup(e, { slots: n, attrs: r }) {
|
|
4966
|
-
let l = Co(), o = `headlessui-label-${
|
|
4966
|
+
let l = Co(), o = `headlessui-label-${Ke()}`;
|
|
4967
4967
|
return he(() => et(l.register(o))), () => {
|
|
4968
4968
|
let { name: a = "Label", slot: s = {}, props: i = {} } = l, { passive: d, ...p } = e, x = { ...Object.entries(i).reduce((y, [_, A]) => Object.assign(y, { [_]: g(A) }), {}), id: o };
|
|
4969
4969
|
return d && (delete x.onClick, delete p.onClick), Te({ ourProps: x, theirProps: p, slot: s, attrs: r, slots: n, name: a });
|
|
@@ -4974,7 +4974,7 @@ let Ii = Q({ name: "Label", props: { as: { type: [Object, String], default: "lab
|
|
|
4974
4974
|
} } }), a = ko({ name: "SwitchDescription" });
|
|
4975
4975
|
return Se(Bo, { switchRef: l, labelledby: o, describedby: a }), () => Te({ theirProps: e, ourProps: {}, slot: {}, slots: n, attrs: r, name: "SwitchGroup" });
|
|
4976
4976
|
} }), Ei = Q({ name: "Switch", emits: { "update:modelValue": (e) => !0 }, props: { as: { type: [Object, String], default: "button" }, modelValue: { type: Boolean, default: void 0 }, defaultChecked: { type: Boolean, default: !1 }, name: { type: String, optional: !0 }, value: { type: String, optional: !0 } }, inheritAttrs: !1, setup(e, { emit: n, attrs: r, slots: l, expose: o }) {
|
|
4977
|
-
let a = Oe(Bo, null), s = `headlessui-switch-${
|
|
4977
|
+
let a = Oe(Bo, null), s = `headlessui-switch-${Ke()}`, [i, d] = ni(V(() => e.modelValue), (S) => n("update:modelValue", S), V(() => e.defaultChecked));
|
|
4978
4978
|
function p() {
|
|
4979
4979
|
d(!i.value);
|
|
4980
4980
|
}
|
|
@@ -5054,7 +5054,7 @@ function _o(e) {
|
|
|
5054
5054
|
he(() => r.value = !0), et(() => r.value = !1);
|
|
5055
5055
|
function l(a, s = ct.Hidden) {
|
|
5056
5056
|
let i = n.value.findIndex(({ id: d }) => d === a);
|
|
5057
|
-
i !== -1 && (
|
|
5057
|
+
i !== -1 && (He(s, { [ct.Unmount]() {
|
|
5058
5058
|
n.value.splice(i, 1);
|
|
5059
5059
|
}, [ct.Hidden]() {
|
|
5060
5060
|
n.value[i].state = "hidden";
|
|
@@ -5071,7 +5071,7 @@ let Io = xt.RenderStrategy, Yt = Q({ props: { as: { type: [Object, String], defa
|
|
|
5071
5071
|
return () => Be(Ao, { ...e, onBeforeEnter: () => n("beforeEnter"), onAfterEnter: () => n("afterEnter"), onBeforeLeave: () => n("beforeLeave"), onAfterLeave: () => n("afterLeave") }, l);
|
|
5072
5072
|
let a = N(null), s = N("visible"), i = V(() => e.unmount ? ct.Unmount : ct.Hidden);
|
|
5073
5073
|
o({ el: a, $el: a });
|
|
5074
|
-
let { show: d, appear: p } = Di(), { register: x, unregister: y } = Fi(), _ = { value: !0 }, A =
|
|
5074
|
+
let { show: d, appear: p } = Di(), { register: x, unregister: y } = Fi(), _ = { value: !0 }, A = Ke(), k = { value: !1 }, F = _o(() => {
|
|
5075
5075
|
k.value || (s.value = "hidden", y(A), n("afterLeave"));
|
|
5076
5076
|
});
|
|
5077
5077
|
he(() => {
|
|
@@ -5083,7 +5083,7 @@ let Io = xt.RenderStrategy, Yt = Q({ props: { as: { type: [Object, String], defa
|
|
|
5083
5083
|
s.value = "visible";
|
|
5084
5084
|
return;
|
|
5085
5085
|
}
|
|
5086
|
-
|
|
5086
|
+
He(s.value, { hidden: () => y(A), visible: () => x(A) });
|
|
5087
5087
|
}
|
|
5088
5088
|
});
|
|
5089
5089
|
let S = mt(e.enter), L = mt(e.enterFrom), t = mt(e.enterTo), E = mt(e.entered), M = mt(e.leave), R = mt(e.leaveFrom), w = mt(e.leaveTo);
|
|
@@ -5108,12 +5108,12 @@ let Io = xt.RenderStrategy, Yt = Q({ props: { as: { type: [Object, String], defa
|
|
|
5108
5108
|
Ee([d], (c, m, f) => {
|
|
5109
5109
|
B(f), _.value = !1;
|
|
5110
5110
|
}, { immediate: !0 });
|
|
5111
|
-
}), Se(rr, F), so(V(() =>
|
|
5111
|
+
}), Se(rr, F), so(V(() => He(s.value, { visible: Xe.Open, hidden: Xe.Closed }))), () => {
|
|
5112
5112
|
let { appear: c, show: m, enter: f, enterFrom: I, enterTo: O, entered: U, leave: q, leaveFrom: ee, leaveTo: W, ...ae } = e;
|
|
5113
5113
|
return Te({ theirProps: ae, ourProps: { ref: a }, slot: {}, slots: l, attrs: r, features: Io, visible: s.value === "visible", name: "TransitionChild" });
|
|
5114
5114
|
};
|
|
5115
5115
|
} }), Pi = Yt, Ao = Q({ 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: n, attrs: r, slots: l }) {
|
|
5116
|
-
let o = fn(), a = V(() => e.show === null && o !== null ?
|
|
5116
|
+
let o = fn(), a = V(() => e.show === null && o !== null ? He(o.value, { [Xe.Open]: !0, [Xe.Closed]: !1 }) : e.show);
|
|
5117
5117
|
Re(() => {
|
|
5118
5118
|
if (![!0, !1].includes(a.value))
|
|
5119
5119
|
throw new Error('A <Transition /> is used but it is missing a `:show="true | false"` prop.');
|
|
@@ -5179,7 +5179,7 @@ const Vi = { class: "flex items-center" }, Ni = {
|
|
|
5179
5179
|
Ye(" " + J(e.label), 1)
|
|
5180
5180
|
]),
|
|
5181
5181
|
e.count ? (b(), T("div", Ni, [
|
|
5182
|
-
|
|
5182
|
+
H(jt, {
|
|
5183
5183
|
count: e.count,
|
|
5184
5184
|
"max-digit": 2,
|
|
5185
5185
|
color: e.active ? "white" : "primary"
|
|
@@ -5224,14 +5224,14 @@ const Vi = { class: "flex items-center" }, Ni = {
|
|
|
5224
5224
|
}, {
|
|
5225
5225
|
default: G(({ open: s }) => [
|
|
5226
5226
|
h("div", null, [
|
|
5227
|
-
|
|
5227
|
+
H(g(Ci), { class: "flex" }, {
|
|
5228
5228
|
default: G(() => [
|
|
5229
5229
|
X(l.$slots, "button", { open: s })
|
|
5230
5230
|
]),
|
|
5231
5231
|
_: 2
|
|
5232
5232
|
}, 1024)
|
|
5233
5233
|
]),
|
|
5234
|
-
|
|
5234
|
+
H(qe, {
|
|
5235
5235
|
"enter-active-class": "transition duration-200 ease-out",
|
|
5236
5236
|
"enter-from-class": "transform scale-95 opacity-0",
|
|
5237
5237
|
"enter-to-class": "transform scale-100 opacity-100",
|
|
@@ -5240,7 +5240,7 @@ const Vi = { class: "flex items-center" }, Ni = {
|
|
|
5240
5240
|
"leave-to-class": "transform scale-95 opacity-0"
|
|
5241
5241
|
}, {
|
|
5242
5242
|
default: G(() => [
|
|
5243
|
-
|
|
5243
|
+
H(g(Bi), {
|
|
5244
5244
|
class: z([[e.menuClass, g(r)], "absolute z-menu mt-2 rounded-md bg-white p-1 shadow-lg ring-1 ring-black ring-opacity-10 focus:outline-none"])
|
|
5245
5245
|
}, {
|
|
5246
5246
|
default: G(() => [
|
|
@@ -5254,13 +5254,13 @@ const Vi = { class: "flex items-center" }, Ni = {
|
|
|
5254
5254
|
to: i.to
|
|
5255
5255
|
}, {
|
|
5256
5256
|
default: G(({ href: d, navigate: p }) => [
|
|
5257
|
-
|
|
5257
|
+
H(g(Bt), {
|
|
5258
5258
|
as: "a",
|
|
5259
5259
|
href: d,
|
|
5260
5260
|
onClick: p
|
|
5261
5261
|
}, {
|
|
5262
5262
|
default: G(({ active: x }) => [
|
|
5263
|
-
|
|
5263
|
+
H(Jt, {
|
|
5264
5264
|
label: i.label,
|
|
5265
5265
|
count: i.count,
|
|
5266
5266
|
icon: i.icon,
|
|
@@ -5278,7 +5278,7 @@ const Vi = { class: "flex items-center" }, Ni = {
|
|
|
5278
5278
|
href: i.href
|
|
5279
5279
|
}, {
|
|
5280
5280
|
default: G(({ active: d }) => [
|
|
5281
|
-
|
|
5281
|
+
H(Jt, {
|
|
5282
5282
|
label: i.label,
|
|
5283
5283
|
count: i.count,
|
|
5284
5284
|
icon: i.icon,
|
|
@@ -5295,7 +5295,7 @@ const Vi = { class: "flex items-center" }, Ni = {
|
|
|
5295
5295
|
onClick: i.action
|
|
5296
5296
|
}, {
|
|
5297
5297
|
default: G(({ active: d }) => [
|
|
5298
|
-
|
|
5298
|
+
H(Jt, {
|
|
5299
5299
|
label: i.label,
|
|
5300
5300
|
count: i.count,
|
|
5301
5301
|
icon: i.icon,
|
|
@@ -5318,7 +5318,7 @@ const Vi = { class: "flex items-center" }, Ni = {
|
|
|
5318
5318
|
}, 8, ["class"]);
|
|
5319
5319
|
};
|
|
5320
5320
|
}
|
|
5321
|
-
}), zi = { class: "flex grow items-center justify-between" }, Ui = { class: "-mt-px flex flex-1" }, qi = ["disabled"],
|
|
5321
|
+
}), zi = { class: "flex grow items-center justify-between" }, Ui = { class: "-mt-px flex flex-1" }, qi = ["disabled"], Hi = ["onClick"], Ki = {
|
|
5322
5322
|
key: 0,
|
|
5323
5323
|
class: "mx-3 flex shrink-0 items-center justify-end"
|
|
5324
5324
|
}, Gi = { class: "mr-2 text-sm font-normal text-slate-500" }, Wi = ["max", "onKeydown"], Qi = { class: "ml-2 text-sm font-normal text-slate-500" }, Yi = { class: "-mt-px flex flex-1 justify-end" }, Ji = ["disabled"], Zi = {
|
|
@@ -5434,7 +5434,7 @@ const Vi = { class: "flex items-center" }, Ni = {
|
|
|
5434
5434
|
class: "inline-flex items-center border-t-2 border-transparent px-1 py-4 text-sm font-medium text-slate-500 hover:enabled:border-slate-300 hover:enabled:text-slate-700 disabled:cursor-not-allowed disabled:opacity-60",
|
|
5435
5435
|
onClick: c[0] || (c[0] = (f) => s())
|
|
5436
5436
|
}, [
|
|
5437
|
-
|
|
5437
|
+
H(m, {
|
|
5438
5438
|
class: "mx-2 h-5 w-5 text-slate-400",
|
|
5439
5439
|
icon: "heroicons-solid:chevron-left"
|
|
5440
5440
|
})
|
|
@@ -5452,9 +5452,9 @@ const Vi = { class: "flex items-center" }, Ni = {
|
|
|
5452
5452
|
f != e.modelValue && A(f) ? "hover:border-slate-300 hover:text-slate-700" : ""
|
|
5453
5453
|
]]),
|
|
5454
5454
|
onClick: (O) => k(f)
|
|
5455
|
-
}, J(f), 11,
|
|
5455
|
+
}, J(f), 11, Hi))), 128))
|
|
5456
5456
|
], 2),
|
|
5457
|
-
g(p) ? (b(), T("div",
|
|
5457
|
+
g(p) ? (b(), T("div", Ki, [
|
|
5458
5458
|
h("span", Gi, J(B.$t("sui.page")), 1),
|
|
5459
5459
|
Pe(h("input", {
|
|
5460
5460
|
"onUpdate:modelValue": c[1] || (c[1] = (f) => _t(o) ? o.value = f : null),
|
|
@@ -5477,7 +5477,7 @@ const Vi = { class: "flex items-center" }, Ni = {
|
|
|
5477
5477
|
class: "inline-flex items-center border-t-2 border-transparent px-1 py-4 text-sm font-medium text-slate-500 hover:enabled:border-slate-300 hover:enabled:text-slate-700 disabled:cursor-not-allowed disabled:opacity-60",
|
|
5478
5478
|
onClick: c[3] || (c[3] = (f) => a())
|
|
5479
5479
|
}, [
|
|
5480
|
-
|
|
5480
|
+
H(m, {
|
|
5481
5481
|
class: "mx-2 h-5 w-5 text-slate-400",
|
|
5482
5482
|
icon: "heroicons-solid:chevron-right"
|
|
5483
5483
|
})
|
|
@@ -5606,7 +5606,7 @@ const su = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, iu = { class: "min
|
|
|
5606
5606
|
return (i, d) => {
|
|
5607
5607
|
const p = pe("BaseIcon");
|
|
5608
5608
|
return b(), ne(Mt, { to: "body" }, [
|
|
5609
|
-
|
|
5609
|
+
H(qe, {
|
|
5610
5610
|
name: "modal",
|
|
5611
5611
|
"enter-active-class": "duration-300",
|
|
5612
5612
|
"leave-active-class": "duration-200"
|
|
@@ -5621,7 +5621,7 @@ const su = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, iu = { class: "min
|
|
|
5621
5621
|
}, [
|
|
5622
5622
|
h("div", su, [
|
|
5623
5623
|
h("div", iu, [
|
|
5624
|
-
|
|
5624
|
+
H(qe, {
|
|
5625
5625
|
appear: "",
|
|
5626
5626
|
"enter-active-class": "duration-300 ease-out",
|
|
5627
5627
|
"enter-from-class": "opacity-0",
|
|
@@ -5640,7 +5640,7 @@ const su = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, iu = { class: "min
|
|
|
5640
5640
|
]),
|
|
5641
5641
|
_: 1
|
|
5642
5642
|
}),
|
|
5643
|
-
|
|
5643
|
+
H(qe, {
|
|
5644
5644
|
appear: "",
|
|
5645
5645
|
"enter-active-class": "duration-300 ease-out",
|
|
5646
5646
|
"enter-from-class": "translate-x-20 opacity-0",
|
|
@@ -5661,7 +5661,7 @@ const su = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, iu = { class: "min
|
|
|
5661
5661
|
type: "button",
|
|
5662
5662
|
onClick: d[1] || (d[1] = (x) => g(o).close())
|
|
5663
5663
|
}, [
|
|
5664
|
-
|
|
5664
|
+
H(p, {
|
|
5665
5665
|
class: "h-8 w-8 text-white",
|
|
5666
5666
|
icon: "heroicons:x-mark"
|
|
5667
5667
|
})
|
|
@@ -5708,10 +5708,6 @@ const su = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, iu = { class: "min
|
|
|
5708
5708
|
required: !0,
|
|
5709
5709
|
type: String
|
|
5710
5710
|
},
|
|
5711
|
-
routeKeyName: {
|
|
5712
|
-
default: "id",
|
|
5713
|
-
type: String
|
|
5714
|
-
},
|
|
5715
5711
|
urlQuery: {
|
|
5716
5712
|
default: void 0,
|
|
5717
5713
|
type: Object
|
|
@@ -5771,8 +5767,8 @@ const su = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, iu = { class: "min
|
|
|
5771
5767
|
}
|
|
5772
5768
|
);
|
|
5773
5769
|
function m(j, D) {
|
|
5774
|
-
let
|
|
5775
|
-
|
|
5770
|
+
let K = De(L.value);
|
|
5771
|
+
K = yn(K, j, D), K = yn(K, "page", 1), I(K);
|
|
5776
5772
|
}
|
|
5777
5773
|
function f(j) {
|
|
5778
5774
|
j = yn(j, "page", 1), I(j);
|
|
@@ -5785,8 +5781,8 @@ const su = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, iu = { class: "min
|
|
|
5785
5781
|
const D = i.resolve({
|
|
5786
5782
|
path: s.path,
|
|
5787
5783
|
params: s.params
|
|
5788
|
-
}),
|
|
5789
|
-
if (be.formatQueryString(ve) !=
|
|
5784
|
+
}), K = be.formatQueryString(j), le = D.fullPath + "?" + K, ve = ae();
|
|
5785
|
+
if (be.formatQueryString(ve) != K) {
|
|
5790
5786
|
if (!x.value) {
|
|
5791
5787
|
i.replace(le);
|
|
5792
5788
|
return;
|
|
@@ -5805,10 +5801,10 @@ const su = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, iu = { class: "min
|
|
|
5805
5801
|
D.page = j, I(D), P();
|
|
5806
5802
|
}
|
|
5807
5803
|
function ee(j, D) {
|
|
5808
|
-
let
|
|
5809
|
-
|
|
5804
|
+
let K = j;
|
|
5805
|
+
K && D == "desc" && (K = "-" + K);
|
|
5810
5806
|
const le = De(L.value);
|
|
5811
|
-
le.page = 1, le.sort =
|
|
5807
|
+
le.page = 1, le.sort = K, I(le);
|
|
5812
5808
|
}
|
|
5813
5809
|
const W = ot((j) => {
|
|
5814
5810
|
const D = De(L.value);
|
|
@@ -5826,16 +5822,16 @@ const su = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, iu = { class: "min
|
|
|
5826
5822
|
function de() {
|
|
5827
5823
|
if (!r.historyMode || s.name != d)
|
|
5828
5824
|
return;
|
|
5829
|
-
const D = ae(),
|
|
5830
|
-
|
|
5825
|
+
const D = ae(), K = O(D);
|
|
5826
|
+
K != S && (S = K, L.value = D, a.value && a.value !== document.activeElement && u(), se());
|
|
5831
5827
|
}
|
|
5832
5828
|
function se(j = !1) {
|
|
5833
5829
|
var Ie;
|
|
5834
|
-
const D = U.value.split(/[?#]/),
|
|
5830
|
+
const D = U.value.split(/[?#]/), K = D[0], le = (Ie = D[1]) != null ? Ie : null, ve = be.parseQueryString(le), xe = ir(
|
|
5835
5831
|
De(L.value),
|
|
5836
5832
|
De(r.urlQuery),
|
|
5837
5833
|
De(ve)
|
|
5838
|
-
), je = be.formatQueryString(xe), Ce =
|
|
5834
|
+
), je = be.formatQueryString(xe), Ce = K + "?" + je;
|
|
5839
5835
|
F == Ce && !j || (y.value = !0, F = Ce, l.get(Ce).then((we) => {
|
|
5840
5836
|
ue.value = we.data, y.value = !1, _.value = !1, x.value = !0;
|
|
5841
5837
|
}).catch(() => {
|
|
@@ -5878,7 +5874,7 @@ const su = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, iu = { class: "min
|
|
|
5878
5874
|
scrollIntoView: P,
|
|
5879
5875
|
query: L
|
|
5880
5876
|
}), (j, D) => {
|
|
5881
|
-
const
|
|
5877
|
+
const K = pe("BaseIcon");
|
|
5882
5878
|
return b(), T("div", {
|
|
5883
5879
|
ref_key: "dataIteratorNode",
|
|
5884
5880
|
ref: o
|
|
@@ -5895,7 +5891,7 @@ const su = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, iu = { class: "min
|
|
|
5895
5891
|
e.searchable ? (b(), T("div", cu, [
|
|
5896
5892
|
h("div", du, [
|
|
5897
5893
|
h("div", fu, [
|
|
5898
|
-
K
|
|
5894
|
+
H(K, {
|
|
5899
5895
|
class: "h-6 w-6 text-slate-400",
|
|
5900
5896
|
icon: "heroicons:magnifying-glass"
|
|
5901
5897
|
})
|
|
@@ -5919,7 +5915,7 @@ const su = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, iu = { class: "min
|
|
|
5919
5915
|
k.value = "", g(W)("");
|
|
5920
5916
|
})
|
|
5921
5917
|
}, [
|
|
5922
|
-
K
|
|
5918
|
+
H(K, {
|
|
5923
5919
|
class: "h-6 w-6 text-slate-500",
|
|
5924
5920
|
icon: "heroicons:x-mark"
|
|
5925
5921
|
})
|
|
@@ -5933,7 +5929,7 @@ const su = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, iu = { class: "min
|
|
|
5933
5929
|
type: "button",
|
|
5934
5930
|
onClick: D[3] || (D[3] = (le) => A.value = !0)
|
|
5935
5931
|
}, [
|
|
5936
|
-
K
|
|
5932
|
+
H(K, {
|
|
5937
5933
|
class: "h-6 w-6 text-slate-500 xs:mr-2",
|
|
5938
5934
|
icon: "heroicons:adjustments-horizontal-solid"
|
|
5939
5935
|
}),
|
|
@@ -5950,7 +5946,7 @@ const su = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, iu = { class: "min
|
|
|
5950
5946
|
le ? "ring-2 ring-primary-500 ring-offset-2" : !1
|
|
5951
5947
|
]])
|
|
5952
5948
|
}, [
|
|
5953
|
-
K
|
|
5949
|
+
H(K, { icon: "heroicons-solid:dots-vertical" })
|
|
5954
5950
|
], 2)
|
|
5955
5951
|
]),
|
|
5956
5952
|
_: 1
|
|
@@ -5977,7 +5973,7 @@ const su = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, iu = { class: "min
|
|
|
5977
5973
|
})), 1)
|
|
5978
5974
|
]),
|
|
5979
5975
|
h("div", yu, [
|
|
5980
|
-
|
|
5976
|
+
H(Eo, {
|
|
5981
5977
|
"model-value": g(ce),
|
|
5982
5978
|
"last-page": g(fe),
|
|
5983
5979
|
"onUpdate:modelValue": q
|
|
@@ -5991,9 +5987,9 @@ const su = { class: "flex min-h-full w-full pt-20 sm:pt-0" }, iu = { class: "min
|
|
|
5991
5987
|
}, [
|
|
5992
5988
|
X(j.$slots, "sidebarTop", { paginationMetadata: g(oe) }),
|
|
5993
5989
|
g(M) ? (b(), T("div", bu, [
|
|
5994
|
-
|
|
5990
|
+
H(Tt, null, {
|
|
5995
5991
|
default: G(() => [
|
|
5996
|
-
|
|
5992
|
+
H(Jn, { size: "sm" }, {
|
|
5997
5993
|
default: G(() => [
|
|
5998
5994
|
h("div", wu, [
|
|
5999
5995
|
X(j.$slots, "filters", {
|
|
@@ -6121,7 +6117,7 @@ const Do = /* @__PURE__ */ Fe(Bu, [["render", Eu], ["__scopeId", "data-v-945515f
|
|
|
6121
6117
|
key: 2,
|
|
6122
6118
|
class: "th pr-3",
|
|
6123
6119
|
align: "right"
|
|
6124
|
-
}, qu = ["checked", "disabled"],
|
|
6120
|
+
}, qu = ["checked", "disabled"], Hu = { class: "bg-white" }, Ku = { key: 0 }, Gu = ["colspan"], Wu = { class: "flex items-center justify-between bg-slate-100 py-2 pl-3 pr-2 text-sm" }, Qu = { class: "mr-3 text-slate-500" }, Yu = ["onClick"], Ju = { class: "flex items-center" }, Zu = ["disabled", "checked", "onClick"], Xu = ["disabled", "checked", "onClick"], ec = ["colspan"], tc = { key: 1 }, nc = ["colspan"], rc = {
|
|
6125
6121
|
key: 0,
|
|
6126
6122
|
class: "absolute inset-0 flex h-full w-full items-start justify-center"
|
|
6127
6123
|
}, oc = /* @__PURE__ */ Tu(() => /* @__PURE__ */ h("div", { class: "absolute h-full w-full bg-white bg-opacity-60" }, null, -1)), lc = { class: "pt-20" }, ac = {
|
|
@@ -6392,7 +6388,7 @@ const Do = /* @__PURE__ */ Fe(Bu, [["render", Eu], ["__scopeId", "data-v-945515f
|
|
|
6392
6388
|
}, [
|
|
6393
6389
|
h("span", zu, J($.label), 1),
|
|
6394
6390
|
Pe(h("span", null, [
|
|
6395
|
-
|
|
6391
|
+
H(v, {
|
|
6396
6392
|
icon: "mdi:chevron-down",
|
|
6397
6393
|
class: z(["h-5 w-5 duration-300", {
|
|
6398
6394
|
"rotate-180": p.value
|
|
@@ -6415,8 +6411,8 @@ const Do = /* @__PURE__ */ Fe(Bu, [["render", Eu], ["__scopeId", "data-v-945515f
|
|
|
6415
6411
|
])) : Z("", !0)
|
|
6416
6412
|
])
|
|
6417
6413
|
], 512)) : Z("", !0),
|
|
6418
|
-
h("tbody",
|
|
6419
|
-
g(s).length ? (b(), T("tr",
|
|
6414
|
+
h("tbody", Hu, [
|
|
6415
|
+
g(s).length ? (b(), T("tr", Ku, [
|
|
6420
6416
|
h("td", {
|
|
6421
6417
|
colspan: g(E),
|
|
6422
6418
|
class: z(["sticky z-[1] p-0", [fe]]),
|
|
@@ -6453,7 +6449,7 @@ const Do = /* @__PURE__ */ Fe(Bu, [["render", Eu], ["__scopeId", "data-v-945515f
|
|
|
6453
6449
|
j ? "ring-2 ring-primary-500 ring-offset-2" : !1
|
|
6454
6450
|
]])
|
|
6455
6451
|
}, [
|
|
6456
|
-
|
|
6452
|
+
H(v, { icon: "heroicons-solid:dots-vertical" })
|
|
6457
6453
|
], 2)
|
|
6458
6454
|
]),
|
|
6459
6455
|
_: 1
|
|
@@ -6499,8 +6495,8 @@ const Do = /* @__PURE__ */ Fe(Bu, [["render", Eu], ["__scopeId", "data-v-945515f
|
|
|
6499
6495
|
}, null, 8, Zu)
|
|
6500
6496
|
])
|
|
6501
6497
|
], 2)) : Z("", !0),
|
|
6502
|
-
(b(!0), T(me, null, ye(g(t), (D,
|
|
6503
|
-
key: D.newKey + j + ":" +
|
|
6498
|
+
(b(!0), T(me, null, ye(g(t), (D, K) => (b(), ne(g(Cu), vt({
|
|
6499
|
+
key: D.newKey + j + ":" + K
|
|
6504
6500
|
}, D.tdAttrs && D.tdAttrs($, D), {
|
|
6505
6501
|
component: D,
|
|
6506
6502
|
scoped: "",
|
|
@@ -6508,13 +6504,13 @@ const Do = /* @__PURE__ */ Fe(Bu, [["render", Eu], ["__scopeId", "data-v-945515f
|
|
|
6508
6504
|
tag: "td",
|
|
6509
6505
|
class: ["py-3 pl-3 pr-3 text-sm", Le(j, $)],
|
|
6510
6506
|
"data-label": D.label,
|
|
6511
|
-
props: { row: $, column: D, index: j, colindex:
|
|
6507
|
+
props: { row: $, column: D, index: j, colindex: K, toggleDetails: ee },
|
|
6512
6508
|
onClick: (le) => P.$emit(
|
|
6513
6509
|
"cell-click",
|
|
6514
6510
|
$,
|
|
6515
6511
|
D,
|
|
6516
6512
|
j,
|
|
6517
|
-
|
|
6513
|
+
K,
|
|
6518
6514
|
le
|
|
6519
6515
|
)
|
|
6520
6516
|
}), null, 16, ["component", "class", "data-label", "props", "onClick"]))), 128)),
|
|
@@ -6533,7 +6529,7 @@ const Do = /* @__PURE__ */ Fe(Bu, [["render", Eu], ["__scopeId", "data-v-945515f
|
|
|
6533
6529
|
}, null, 8, Xu)
|
|
6534
6530
|
], 2)) : Z("", !0)
|
|
6535
6531
|
]),
|
|
6536
|
-
|
|
6532
|
+
H(qe, { name: e.detailTransition }, {
|
|
6537
6533
|
default: G(() => [
|
|
6538
6534
|
se($) ? (b(), T("tr", {
|
|
6539
6535
|
key: j + "detail"
|
|
@@ -6560,7 +6556,7 @@ const Do = /* @__PURE__ */ Fe(Bu, [["render", Eu], ["__scopeId", "data-v-945515f
|
|
|
6560
6556
|
])
|
|
6561
6557
|
]),
|
|
6562
6558
|
X(P.$slots, "loading", {}, () => [
|
|
6563
|
-
|
|
6559
|
+
H(qe, {
|
|
6564
6560
|
"enter-active-class": "transition ease-out duration-200",
|
|
6565
6561
|
"enter-from-class": "opacity-0",
|
|
6566
6562
|
"enter-to-class": "opacity-100",
|
|
@@ -6572,7 +6568,7 @@ const Do = /* @__PURE__ */ Fe(Bu, [["render", Eu], ["__scopeId", "data-v-945515f
|
|
|
6572
6568
|
e.loading ? (b(), T("div", rc, [
|
|
6573
6569
|
oc,
|
|
6574
6570
|
h("div", lc, [
|
|
6575
|
-
|
|
6571
|
+
H(Do, { class: "h-10 w-10 text-blue-500" })
|
|
6576
6572
|
])
|
|
6577
6573
|
])) : Z("", !0)
|
|
6578
6574
|
]),
|
|
@@ -6747,10 +6743,6 @@ const vc = /* @__PURE__ */ Fe(dc, [["render", hc]]), gc = { class: "flex justify
|
|
|
6747
6743
|
required: !0,
|
|
6748
6744
|
type: String
|
|
6749
6745
|
},
|
|
6750
|
-
routeKeyName: {
|
|
6751
|
-
default: "id",
|
|
6752
|
-
type: String
|
|
6753
|
-
},
|
|
6754
6746
|
urlQuery: {
|
|
6755
6747
|
default: void 0,
|
|
6756
6748
|
type: Object
|
|
@@ -6896,7 +6888,6 @@ const vc = /* @__PURE__ */ Fe(dc, [["render", hc]]), gc = { class: "flex justify
|
|
|
6896
6888
|
ref_key: "dataIterator",
|
|
6897
6889
|
ref: p,
|
|
6898
6890
|
url: e.url,
|
|
6899
|
-
"route-key-name": e.routeKeyName,
|
|
6900
6891
|
"url-query": e.urlQuery,
|
|
6901
6892
|
"default-query": e.defaultQuery,
|
|
6902
6893
|
searchable: e.searchable,
|
|
@@ -6912,12 +6903,12 @@ const vc = /* @__PURE__ */ Fe(dc, [["render", hc]]), gc = { class: "flex justify
|
|
|
6912
6903
|
error: ae,
|
|
6913
6904
|
firstLoad: de
|
|
6914
6905
|
}) => [
|
|
6915
|
-
|
|
6906
|
+
H(Tt, {
|
|
6916
6907
|
clipped: "",
|
|
6917
6908
|
class: "w-full overflow-hidden"
|
|
6918
6909
|
}, {
|
|
6919
6910
|
default: G(() => [
|
|
6920
|
-
|
|
6911
|
+
H(Fo, {
|
|
6921
6912
|
ref_key: "table",
|
|
6922
6913
|
ref: d,
|
|
6923
6914
|
data: O,
|
|
@@ -6941,7 +6932,7 @@ const vc = /* @__PURE__ */ Fe(dc, [["render", hc]]), gc = { class: "flex justify
|
|
|
6941
6932
|
}, {
|
|
6942
6933
|
default: G(() => [
|
|
6943
6934
|
X(c.$slots, "default"),
|
|
6944
|
-
|
|
6935
|
+
H(Po, {
|
|
6945
6936
|
visible: e.editButton || e.deleteButton || c.$slots.rowActions != null,
|
|
6946
6937
|
toggle: !1
|
|
6947
6938
|
}, {
|
|
@@ -6955,7 +6946,7 @@ const vc = /* @__PURE__ */ Fe(dc, [["render", hc]]), gc = { class: "flex justify
|
|
|
6955
6946
|
}, {
|
|
6956
6947
|
default: G(() => [
|
|
6957
6948
|
h("button", yc, [
|
|
6958
|
-
|
|
6949
|
+
H(f, {
|
|
6959
6950
|
icon: "heroicons:cog-6-tooth-solid",
|
|
6960
6951
|
class: "text-slate-500"
|
|
6961
6952
|
})
|
|
@@ -6970,7 +6961,7 @@ const vc = /* @__PURE__ */ Fe(dc, [["render", hc]]), gc = { class: "flex justify
|
|
|
6970
6961
|
disabled: !A(se),
|
|
6971
6962
|
onClick: (ue) => k(se)
|
|
6972
6963
|
}, [
|
|
6973
|
-
|
|
6964
|
+
H(f, {
|
|
6974
6965
|
icon: "heroicons:trash-solid",
|
|
6975
6966
|
class: "text-slate-500"
|
|
6976
6967
|
})
|
|
@@ -6989,7 +6980,7 @@ const vc = /* @__PURE__ */ Fe(dc, [["render", hc]]), gc = { class: "flex justify
|
|
|
6989
6980
|
empty: G(() => [
|
|
6990
6981
|
ae ? (b(), T("div", wc, [
|
|
6991
6982
|
h("div", xc, [
|
|
6992
|
-
|
|
6983
|
+
H(f, {
|
|
6993
6984
|
icon: "heroicons:x-circle",
|
|
6994
6985
|
class: "h-10 w-10 text-red-600"
|
|
6995
6986
|
}),
|
|
@@ -6997,7 +6988,7 @@ const vc = /* @__PURE__ */ Fe(dc, [["render", hc]]), gc = { class: "flex justify
|
|
|
6997
6988
|
])
|
|
6998
6989
|
])) : de ? (b(), T("div", Sc, [
|
|
6999
6990
|
h("div", $c, [
|
|
7000
|
-
|
|
6991
|
+
H(vc, { class: "w-32" }),
|
|
7001
6992
|
h("p", Cc, J(c.$t("sui.nothing_found")), 1)
|
|
7002
6993
|
])
|
|
7003
6994
|
])) : Z("", !0)
|
|
@@ -7029,11 +7020,11 @@ const vc = /* @__PURE__ */ Fe(dc, [["render", hc]]), gc = { class: "flex justify
|
|
|
7029
7020
|
fn: G(() => [
|
|
7030
7021
|
h("div", Bc, [
|
|
7031
7022
|
h("h3", _c, J(c.$t("sui.columns")), 1),
|
|
7032
|
-
|
|
7023
|
+
H(Tt, null, {
|
|
7033
7024
|
default: G(() => [
|
|
7034
|
-
|
|
7025
|
+
H(Jn, { size: "sm" }, {
|
|
7035
7026
|
default: G(() => [
|
|
7036
|
-
|
|
7027
|
+
H(cc, {
|
|
7037
7028
|
visibleColumns: g(S),
|
|
7038
7029
|
"onUpdate:visibleColumns": [
|
|
7039
7030
|
m[3] || (m[3] = (O) => _t(S) ? S.value = O : null),
|
|
@@ -7051,7 +7042,7 @@ const vc = /* @__PURE__ */ Fe(dc, [["render", hc]]), gc = { class: "flex justify
|
|
|
7051
7042
|
]),
|
|
7052
7043
|
key: "1"
|
|
7053
7044
|
} : void 0
|
|
7054
|
-
]), 1032, ["url", "
|
|
7045
|
+
]), 1032, ["url", "url-query", "default-query", "searchable", "actions", "history-mode"]);
|
|
7055
7046
|
};
|
|
7056
7047
|
}
|
|
7057
7048
|
}), Ac = { class: "relative" }, Ec = { class: "pointer-events-none absolute top-0 left-0 flex h-full items-center justify-center pl-2.5" }, Tc = ["value", "disabled", "placeholder"], Lc = {
|
|
@@ -7091,16 +7082,16 @@ const vc = /* @__PURE__ */ Fe(dc, [["render", hc]]), gc = { class: "flex justify
|
|
|
7091
7082
|
},
|
|
7092
7083
|
emits: ["update:modelValue"],
|
|
7093
7084
|
setup(e, { emit: n }) {
|
|
7094
|
-
const r = e, l = rt(), o = N(null), a =
|
|
7095
|
-
(y) =>
|
|
7085
|
+
const r = e, l = rt(), o = N(null), a = Kt.months("long", { locale: l.locale.value }).map(
|
|
7086
|
+
(y) => Ht(y)
|
|
7096
7087
|
), s = x(
|
|
7097
|
-
|
|
7098
|
-
(y) =>
|
|
7088
|
+
Kt.weekdays("long", { locale: l.locale.value }).map(
|
|
7089
|
+
(y) => Ht(y)
|
|
7099
7090
|
),
|
|
7100
7091
|
!0
|
|
7101
7092
|
), i = x(
|
|
7102
|
-
|
|
7103
|
-
(y) =>
|
|
7093
|
+
Kt.weekdays("short", { locale: l.locale.value }).map(
|
|
7094
|
+
(y) => Ht(y)
|
|
7104
7095
|
),
|
|
7105
7096
|
!0
|
|
7106
7097
|
);
|
|
@@ -7153,7 +7144,7 @@ const vc = /* @__PURE__ */ Fe(dc, [["render", hc]]), gc = { class: "flex justify
|
|
|
7153
7144
|
const A = pe("BaseIcon");
|
|
7154
7145
|
return b(), T("div", Ac, [
|
|
7155
7146
|
h("div", Ec, [
|
|
7156
|
-
|
|
7147
|
+
H(A, {
|
|
7157
7148
|
class: "relative -top-px h-5 w-5 text-slate-400",
|
|
7158
7149
|
icon: "heroicons:calendar"
|
|
7159
7150
|
})
|
|
@@ -7174,7 +7165,7 @@ const vc = /* @__PURE__ */ Fe(dc, [["render", hc]]), gc = { class: "flex justify
|
|
|
7174
7165
|
class: "flex h-8 items-center rounded p-1 hover:bg-slate-200",
|
|
7175
7166
|
onClick: _[0] || (_[0] = (k) => p())
|
|
7176
7167
|
}, [
|
|
7177
|
-
|
|
7168
|
+
H(A, {
|
|
7178
7169
|
class: "h-5 w-5 text-slate-600",
|
|
7179
7170
|
icon: "heroicons:x-mark"
|
|
7180
7171
|
})
|
|
@@ -7193,12 +7184,12 @@ const vc = /* @__PURE__ */ Fe(dc, [["render", hc]]), gc = { class: "flex justify
|
|
|
7193
7184
|
selected: "",
|
|
7194
7185
|
hidden: "",
|
|
7195
7186
|
value: null
|
|
7196
|
-
}, zc = ["value"], Uc = { class: "w-auto p-0.5" }, qc = ["disabled", "required", "placeholder"],
|
|
7187
|
+
}, zc = ["value"], Uc = { class: "w-auto p-0.5" }, qc = ["disabled", "required", "placeholder"], Hc = {
|
|
7197
7188
|
disabled: "",
|
|
7198
7189
|
selected: "",
|
|
7199
7190
|
hidden: "",
|
|
7200
7191
|
value: null
|
|
7201
|
-
},
|
|
7192
|
+
}, Kc = ["value"], Gc = ["disabled"], Wc = /* @__PURE__ */ Q({
|
|
7202
7193
|
__name: "BaseDateSelect",
|
|
7203
7194
|
props: {
|
|
7204
7195
|
modelValue: {
|
|
@@ -7228,7 +7219,7 @@ const vc = /* @__PURE__ */ Fe(dc, [["render", hc]]), gc = { class: "flex justify
|
|
|
7228
7219
|
},
|
|
7229
7220
|
emits: ["update:modelValue"],
|
|
7230
7221
|
setup(e, { emit: n }) {
|
|
7231
|
-
const r = e, l = rt(), o = it(r.maxYear, r.minYear), a =
|
|
7222
|
+
const r = e, l = rt(), o = it(r.maxYear, r.minYear), a = Kt.months("short", { locale: l.locale.value }), s = V(() => {
|
|
7232
7223
|
if (!i.value.year)
|
|
7233
7224
|
return [];
|
|
7234
7225
|
if (!i.value.month)
|
|
@@ -7328,11 +7319,11 @@ const vc = /* @__PURE__ */ Fe(dc, [["render", hc]]), gc = { class: "flex justify
|
|
|
7328
7319
|
placeholder: _.$t("sui.day"),
|
|
7329
7320
|
onChange: A[5] || (A[5] = (k) => d())
|
|
7330
7321
|
}, [
|
|
7331
|
-
h("option",
|
|
7322
|
+
h("option", Hc, J(_.$t("sui.day")), 1),
|
|
7332
7323
|
(b(!0), T(me, null, ye(g(s), (k) => (b(), T("option", {
|
|
7333
7324
|
key: k,
|
|
7334
7325
|
value: k
|
|
7335
|
-
}, J(k), 9,
|
|
7326
|
+
}, J(k), 9, Kc))), 128))
|
|
7336
7327
|
], 42, qc), [
|
|
7337
7328
|
[gn, g(i).day]
|
|
7338
7329
|
])
|
|
@@ -7657,7 +7648,7 @@ const ud = /* @__PURE__ */ Fe(od, [["render", id]]), cd = {
|
|
|
7657
7648
|
n("upload:success", p);
|
|
7658
7649
|
}
|
|
7659
7650
|
return (p, x) => (b(), T("div", dd, [
|
|
7660
|
-
|
|
7651
|
+
H(Vo, {
|
|
7661
7652
|
"button-class": e.buttonClass,
|
|
7662
7653
|
disabled: g(s) || e.disabled,
|
|
7663
7654
|
accept: e.accept,
|
|
@@ -7676,7 +7667,7 @@ const ud = /* @__PURE__ */ Fe(od, [["render", id]]), cd = {
|
|
|
7676
7667
|
dragging: y.dragging,
|
|
7677
7668
|
disabled: y.disabled
|
|
7678
7669
|
}, () => [
|
|
7679
|
-
|
|
7670
|
+
H(No, {
|
|
7680
7671
|
delay: 0,
|
|
7681
7672
|
"icon-class": "text-primary-600 w-6 h-6",
|
|
7682
7673
|
"model-value": e.loading || g(s) || y.selecting
|
|
@@ -7962,15 +7953,15 @@ const ud = /* @__PURE__ */ Fe(od, [["render", id]]), cd = {
|
|
|
7962
7953
|
], 512),
|
|
7963
7954
|
e.loading ? (b(), T("div", Sd, [
|
|
7964
7955
|
h("div", $d, [
|
|
7965
|
-
|
|
7956
|
+
H(ht, {
|
|
7966
7957
|
class: "h-7 w-full",
|
|
7967
7958
|
delay: "0ms"
|
|
7968
7959
|
}),
|
|
7969
|
-
|
|
7960
|
+
H(ht, {
|
|
7970
7961
|
class: "h-7 w-full opacity-70",
|
|
7971
7962
|
delay: "50ms"
|
|
7972
7963
|
}),
|
|
7973
|
-
|
|
7964
|
+
H(ht, {
|
|
7974
7965
|
class: "h-7 w-full opacity-30",
|
|
7975
7966
|
delay: "100ms"
|
|
7976
7967
|
})
|
|
@@ -8264,7 +8255,7 @@ const ud = /* @__PURE__ */ Fe(od, [["render", id]]), cd = {
|
|
|
8264
8255
|
key: 0,
|
|
8265
8256
|
class: z(["flex shrink-0 items-center justify-center rounded-l border-r px-3 transition-colors", [g(o), g(a), g(s)]])
|
|
8266
8257
|
}, [
|
|
8267
|
-
|
|
8258
|
+
H(g(_e), { icon: e.iconLeft }, null, 8, ["icon"])
|
|
8268
8259
|
], 2)) : Z("", !0),
|
|
8269
8260
|
e.prefix ? (b(), T("div", {
|
|
8270
8261
|
key: 1,
|
|
@@ -8309,7 +8300,7 @@ const ud = /* @__PURE__ */ Fe(od, [["render", id]]), cd = {
|
|
|
8309
8300
|
key: 3,
|
|
8310
8301
|
class: z(["flex shrink-0 items-center justify-center rounded-r border-l px-3 transition-colors", [g(o), g(a), g(s)]])
|
|
8311
8302
|
}, [
|
|
8312
|
-
|
|
8303
|
+
H(g(_e), { icon: e.iconRight }, null, 8, ["icon"])
|
|
8313
8304
|
], 2)) : Z("", !0)
|
|
8314
8305
|
], 2));
|
|
8315
8306
|
}
|
|
@@ -8420,7 +8411,7 @@ const Ld = /* @__PURE__ */ Fe(Ad, [["render", Td]]), Md = ["src", "alt"], Od = [
|
|
|
8420
8411
|
return (a, s) => (b(), T("div", Fd, [
|
|
8421
8412
|
h("div", Pd, [
|
|
8422
8413
|
h("div", Vd, [
|
|
8423
|
-
|
|
8414
|
+
H(qo, {
|
|
8424
8415
|
class: "h-12 w-12 rounded-l",
|
|
8425
8416
|
media: e.media
|
|
8426
8417
|
}, null, 8, ["media"])
|
|
@@ -8444,7 +8435,7 @@ const Ld = /* @__PURE__ */ Fe(Ad, [["render", Td]]), Md = ["src", "alt"], Od = [
|
|
|
8444
8435
|
class: "rounded-full bg-white p-1 text-slate-400 hover:bg-slate-100",
|
|
8445
8436
|
onClick: s[0] || (s[0] = (i) => a.$emit("remove"))
|
|
8446
8437
|
}, [
|
|
8447
|
-
|
|
8438
|
+
H(g(_e), {
|
|
8448
8439
|
icon: "heroicons:x-mark-20-solid",
|
|
8449
8440
|
class: "h-4 w-4"
|
|
8450
8441
|
})
|
|
@@ -8453,7 +8444,7 @@ const Ld = /* @__PURE__ */ Fe(Ad, [["render", Td]]), Md = ["src", "alt"], Od = [
|
|
|
8453
8444
|
])
|
|
8454
8445
|
]));
|
|
8455
8446
|
}
|
|
8456
|
-
}), qd = { class: "text-center" },
|
|
8447
|
+
}), qd = { class: "text-center" }, Hd = { class: "mb-0 text-sm font-medium leading-tight" }, Kd = { class: "mt-1 text-xs leading-tight text-slate-500" }, Gd = { key: 0 }, Wd = {
|
|
8457
8448
|
key: 1,
|
|
8458
8449
|
class: "mt-5"
|
|
8459
8450
|
}, Qd = { class: "-m-1 flex flex-wrap" }, Yd = /* @__PURE__ */ Q({
|
|
@@ -8566,13 +8557,13 @@ const Ld = /* @__PURE__ */ Fe(Ad, [["render", Td]]), Md = ["src", "alt"], Od = [
|
|
|
8566
8557
|
function k(t) {
|
|
8567
8558
|
n("update", t);
|
|
8568
8559
|
}
|
|
8569
|
-
const F = V(() => r.errors && r.errors.length ? r.errors[0] : ""), S = V(() => l.t("sui.you_can_upload_up_to_n_files", { count: r.max })), L = V(() =>
|
|
8560
|
+
const F = V(() => r.errors && r.errors.length ? r.errors[0] : ""), S = V(() => l.t("sui.you_can_upload_up_to_n_files", { count: r.max })), L = V(() => Ht(
|
|
8570
8561
|
l.t("sui.up_to_x", { x: or(r.maxSize) })
|
|
8571
8562
|
));
|
|
8572
8563
|
return (t, E) => {
|
|
8573
8564
|
const M = pe("BaseIcon");
|
|
8574
8565
|
return b(), T("div", null, [
|
|
8575
|
-
|
|
8566
|
+
H(Ro, {
|
|
8576
8567
|
"max-size": e.maxSize,
|
|
8577
8568
|
disabled: e.disabled,
|
|
8578
8569
|
class: "w-full",
|
|
@@ -8598,13 +8589,13 @@ const Ld = /* @__PURE__ */ Fe(Ad, [["render", Td]]), Md = ["src", "alt"], Od = [
|
|
|
8598
8589
|
h("div", {
|
|
8599
8590
|
class: z([R.disabled ? "opacity-30" : ""])
|
|
8600
8591
|
}, [
|
|
8601
|
-
|
|
8592
|
+
H(M, {
|
|
8602
8593
|
icon: "heroicons:arrow-up-on-square",
|
|
8603
8594
|
class: "mx-auto mb-3 h-6 w-6 text-slate-500"
|
|
8604
8595
|
}),
|
|
8605
8596
|
h("div", qd, [
|
|
8606
|
-
h("p",
|
|
8607
|
-
h("div",
|
|
8597
|
+
h("p", Hd, J(t.$t("sui.drop_or_click_to_upload")), 1),
|
|
8598
|
+
h("div", Kd, [
|
|
8608
8599
|
g(S) ? (b(), T("p", Gd, J(g(S)), 1)) : Z("", !0),
|
|
8609
8600
|
h("p", null, J(g(L)), 1)
|
|
8610
8601
|
])
|
|
@@ -8632,7 +8623,7 @@ const Ld = /* @__PURE__ */ Fe(Ad, [["render", Td]]), Md = ["src", "alt"], Od = [
|
|
|
8632
8623
|
key: R.id,
|
|
8633
8624
|
class: "min-w-[220px] flex-1 p-1"
|
|
8634
8625
|
}, [
|
|
8635
|
-
|
|
8626
|
+
H(Nn, {
|
|
8636
8627
|
media: R,
|
|
8637
8628
|
"show-remove": !e.disabled,
|
|
8638
8629
|
onRemove: (B) => y(w)
|
|
@@ -8647,7 +8638,7 @@ const Ld = /* @__PURE__ */ Fe(Ad, [["render", Td]]), Md = ["src", "alt"], Od = [
|
|
|
8647
8638
|
key: R.id,
|
|
8648
8639
|
class: "min-w-[220px] flex-1 p-1"
|
|
8649
8640
|
}, [
|
|
8650
|
-
|
|
8641
|
+
H(Nn, {
|
|
8651
8642
|
media: R,
|
|
8652
8643
|
"show-remove": !e.disabled,
|
|
8653
8644
|
onRemove: (B) => x(w)
|
|
@@ -8693,7 +8684,7 @@ const Ld = /* @__PURE__ */ Fe(Ad, [["render", Td]]), Md = ["src", "alt"], Od = [
|
|
|
8693
8684
|
return (a, s) => {
|
|
8694
8685
|
const i = pe("BaseIcon");
|
|
8695
8686
|
return b(), ne(Mt, { to: "body" }, [
|
|
8696
|
-
|
|
8687
|
+
H(qe, {
|
|
8697
8688
|
name: "modal",
|
|
8698
8689
|
"enter-active-class": "duration-300",
|
|
8699
8690
|
"leave-active-class": "duration-200"
|
|
@@ -8713,7 +8704,7 @@ const Ld = /* @__PURE__ */ Fe(Ad, [["render", Td]]), Md = ["src", "alt"], Od = [
|
|
|
8713
8704
|
}])
|
|
8714
8705
|
}, [
|
|
8715
8706
|
h("div", Jd, [
|
|
8716
|
-
|
|
8707
|
+
H(qe, {
|
|
8717
8708
|
appear: "",
|
|
8718
8709
|
"enter-active-class": "duration-300 ease-out",
|
|
8719
8710
|
"enter-from-class": "opacity-0",
|
|
@@ -8731,7 +8722,7 @@ const Ld = /* @__PURE__ */ Fe(Ad, [["render", Td]]), Md = ["src", "alt"], Od = [
|
|
|
8731
8722
|
]),
|
|
8732
8723
|
_: 1
|
|
8733
8724
|
}),
|
|
8734
|
-
|
|
8725
|
+
H(qe, {
|
|
8735
8726
|
appear: "",
|
|
8736
8727
|
"enter-active-class": "duration-300 ease-out",
|
|
8737
8728
|
"enter-from-class": "translate-y-20 opacity-0",
|
|
@@ -8759,7 +8750,7 @@ const Ld = /* @__PURE__ */ Fe(Ad, [["render", Td]]), Md = ["src", "alt"], Od = [
|
|
|
8759
8750
|
type: "button",
|
|
8760
8751
|
onClick: s[1] || (s[1] = (d) => g(o).close())
|
|
8761
8752
|
}, [
|
|
8762
|
-
|
|
8753
|
+
H(i, {
|
|
8763
8754
|
class: "h-8 w-8 text-white",
|
|
8764
8755
|
icon: "heroicons:x-mark"
|
|
8765
8756
|
})
|
|
@@ -8774,7 +8765,7 @@ const Ld = /* @__PURE__ */ Fe(Ad, [["render", Td]]), Md = ["src", "alt"], Od = [
|
|
|
8774
8765
|
]);
|
|
8775
8766
|
};
|
|
8776
8767
|
}
|
|
8777
|
-
}), Xd = { class: "flex h-16 justify-between" }, ef = { class: "grow" }, tf = { class: "-mr-2 flex items-center md:hidden" }, nf = /* @__PURE__ */ h("span", { class: "sr-only" }, "Open main menu", -1),
|
|
8768
|
+
}), Xd = { class: "flex h-16 justify-between" }, ef = { class: "grow" }, tf = { class: "-mr-2 flex items-center md:hidden" }, nf = /* @__PURE__ */ h("span", { class: "sr-only" }, "Open main menu", -1), Ho = /* @__PURE__ */ Q({
|
|
8778
8769
|
__name: "BaseNavbar",
|
|
8779
8770
|
props: {
|
|
8780
8771
|
size: {
|
|
@@ -8800,7 +8791,7 @@ const Ld = /* @__PURE__ */ Fe(Ad, [["render", Td]]), Md = ["src", "alt"], Od = [
|
|
|
8800
8791
|
return Se("toggleMenu", r), Se("openMenu", l), Se("closeMenu", o), (a, s) => (b(), T("nav", {
|
|
8801
8792
|
class: z(["border-t-[3px] border-primary-500", [e.dark ? "bg-slate-900" : "bg-white"]])
|
|
8802
8793
|
}, [
|
|
8803
|
-
|
|
8794
|
+
H(ro, { size: e.size }, {
|
|
8804
8795
|
default: G(() => [
|
|
8805
8796
|
h("div", Xd, [
|
|
8806
8797
|
h("div", ef, [
|
|
@@ -8847,7 +8838,7 @@ const Ld = /* @__PURE__ */ Fe(Ad, [["render", Td]]), Md = ["src", "alt"], Od = [
|
|
|
8847
8838
|
}), rf = { class: "group flex grow items-center" }, of = {
|
|
8848
8839
|
key: 0,
|
|
8849
8840
|
class: "relative -top-px ml-[5px]"
|
|
8850
|
-
},
|
|
8841
|
+
}, Ko = /* @__PURE__ */ Q({
|
|
8851
8842
|
__name: "BaseNavbarItemContent",
|
|
8852
8843
|
props: {
|
|
8853
8844
|
label: {
|
|
@@ -8895,7 +8886,7 @@ const Ld = /* @__PURE__ */ Fe(Ad, [["render", Td]]), Md = ["src", "alt"], Od = [
|
|
|
8895
8886
|
Ye(" " + J(e.label), 1)
|
|
8896
8887
|
]),
|
|
8897
8888
|
e.count ? (b(), T("div", of, [
|
|
8898
|
-
|
|
8889
|
+
H(jt, {
|
|
8899
8890
|
count: e.count,
|
|
8900
8891
|
"max-digit": 2,
|
|
8901
8892
|
color: "primary"
|
|
@@ -8922,14 +8913,14 @@ const Ld = /* @__PURE__ */ Fe(Ad, [["render", Td]]), Md = ["src", "alt"], Od = [
|
|
|
8922
8913
|
n("click"), r();
|
|
8923
8914
|
}
|
|
8924
8915
|
return (o, a) => (b(), T("div", lf, [
|
|
8925
|
-
|
|
8916
|
+
H(Un, {
|
|
8926
8917
|
item: e.item,
|
|
8927
8918
|
dark: e.dark,
|
|
8928
8919
|
"item-class": "flex w-full",
|
|
8929
8920
|
onClick: l
|
|
8930
8921
|
}, {
|
|
8931
8922
|
default: G(({ active: s }) => [
|
|
8932
|
-
|
|
8923
|
+
H(Ko, {
|
|
8933
8924
|
label: e.item.label,
|
|
8934
8925
|
icon: e.item.icon,
|
|
8935
8926
|
active: s,
|
|
@@ -9383,7 +9374,7 @@ const zf = /* @__PURE__ */ Fe(Df, [["render", Rf]]), Uf = ["href", "disabled", "
|
|
|
9383
9374
|
}, 8, ["to"]);
|
|
9384
9375
|
};
|
|
9385
9376
|
}
|
|
9386
|
-
}),
|
|
9377
|
+
}), Hf = Q({
|
|
9387
9378
|
components: {
|
|
9388
9379
|
Switch: Ei,
|
|
9389
9380
|
SwitchGroup: Ai,
|
|
@@ -9435,13 +9426,13 @@ const zf = /* @__PURE__ */ Fe(Df, [["render", Rf]]), Uf = ["href", "disabled", "
|
|
|
9435
9426
|
this.$emit("update:modelValue", e);
|
|
9436
9427
|
}
|
|
9437
9428
|
}
|
|
9438
|
-
}),
|
|
9429
|
+
}), Kf = { class: "inline-flex items-center space-x-3" };
|
|
9439
9430
|
function Gf(e, n, r, l, o, a) {
|
|
9440
9431
|
const s = pe("Switch"), i = pe("SwitchLabel"), d = pe("SwitchGroup");
|
|
9441
9432
|
return b(), ne(d, null, {
|
|
9442
9433
|
default: G(() => [
|
|
9443
|
-
h("div",
|
|
9444
|
-
|
|
9434
|
+
h("div", Kf, [
|
|
9435
|
+
H(s, {
|
|
9445
9436
|
"model-value": e.modelValue,
|
|
9446
9437
|
class: z([
|
|
9447
9438
|
e.modelValue ? e.bg : "bg-slate-200",
|
|
@@ -9481,7 +9472,7 @@ function Gf(e, n, r, l, o, a) {
|
|
|
9481
9472
|
_: 3
|
|
9482
9473
|
});
|
|
9483
9474
|
}
|
|
9484
|
-
const Wf = /* @__PURE__ */ Fe(
|
|
9475
|
+
const Wf = /* @__PURE__ */ Fe(Hf, [["render", Gf]]), Qf = { class: "relative" }, Yf = { class: "max-w-4xl" }, Jf = {
|
|
9485
9476
|
key: 0,
|
|
9486
9477
|
class: "absolute top-0 right-0 p-3"
|
|
9487
9478
|
}, lr = /* @__PURE__ */ Q({
|
|
@@ -9537,7 +9528,7 @@ const Wf = /* @__PURE__ */ Fe(Kf, [["render", Gf]]), Qf = { class: "relative" },
|
|
|
9537
9528
|
class: "rounded-full bg-black bg-opacity-50 p-1 text-white",
|
|
9538
9529
|
onClick: l
|
|
9539
9530
|
}, [
|
|
9540
|
-
|
|
9531
|
+
H(d, { icon: "heroicons:x-mark" })
|
|
9541
9532
|
])
|
|
9542
9533
|
])) : Z("", !0)
|
|
9543
9534
|
]);
|
|
@@ -9574,7 +9565,7 @@ const om = /* @__PURE__ */ Fe(Zf, [["render", rm]]), lm = { role: "presentation"
|
|
|
9574
9565
|
return (n, r) => {
|
|
9575
9566
|
const l = pe("router-link");
|
|
9576
9567
|
return b(), T("li", lm, [
|
|
9577
|
-
|
|
9568
|
+
H(l, {
|
|
9578
9569
|
to: e.to,
|
|
9579
9570
|
custom: ""
|
|
9580
9571
|
}, {
|
|
@@ -9788,7 +9779,7 @@ const om = /* @__PURE__ */ Fe(Zf, [["render", rm]]), lm = { role: "presentation"
|
|
|
9788
9779
|
]),
|
|
9789
9780
|
_: 2
|
|
9790
9781
|
}, 1032, ["color", "to", "action", "closable", "onClose"]))), 128)),
|
|
9791
|
-
|
|
9782
|
+
H(Ho, { dark: e.dark }, {
|
|
9792
9783
|
navbar: G(() => [
|
|
9793
9784
|
X(l.$slots, "navbar")
|
|
9794
9785
|
]),
|
|
@@ -9852,7 +9843,7 @@ const om = /* @__PURE__ */ Fe(Zf, [["render", rm]]), lm = { role: "presentation"
|
|
|
9852
9843
|
Ye(" " + J(e.label), 1)
|
|
9853
9844
|
]),
|
|
9854
9845
|
e.count ? (b(), T("div", hm, [
|
|
9855
|
-
|
|
9846
|
+
H(jt, {
|
|
9856
9847
|
count: e.count,
|
|
9857
9848
|
"max-digit": 2,
|
|
9858
9849
|
color: "primary"
|
|
@@ -9884,7 +9875,7 @@ const om = /* @__PURE__ */ Fe(Zf, [["render", rm]]), lm = { role: "presentation"
|
|
|
9884
9875
|
onClick: r
|
|
9885
9876
|
}, {
|
|
9886
9877
|
default: G(({ active: a }) => [
|
|
9887
|
-
|
|
9878
|
+
H(vm, {
|
|
9888
9879
|
label: e.item.label,
|
|
9889
9880
|
icon: e.item.icon,
|
|
9890
9881
|
active: a,
|
|
@@ -11322,7 +11313,7 @@ const gm = Yo.exports, ym = ["innerHTML"], bm = {
|
|
|
11322
11313
|
to: e.notification.to
|
|
11323
11314
|
}, {
|
|
11324
11315
|
default: G(({ href: y, navigate: _ }) => [
|
|
11325
|
-
|
|
11316
|
+
H(g(Bt), {
|
|
11326
11317
|
as: "a",
|
|
11327
11318
|
href: y,
|
|
11328
11319
|
onClick: Ue((A) => i(_), ["prevent"])
|
|
@@ -11384,7 +11375,7 @@ const gm = Yo.exports, ym = ["innerHTML"], bm = {
|
|
|
11384
11375
|
class: z(["relative flex items-center rounded-full p-1.5", [""]]),
|
|
11385
11376
|
onClick: a
|
|
11386
11377
|
}, [
|
|
11387
|
-
|
|
11378
|
+
H(g(_e), {
|
|
11388
11379
|
icon: "heroicons:bell",
|
|
11389
11380
|
class: z(["h-6 w-6", [e.dark ? "text-slate-300" : "text-slate-600"]])
|
|
11390
11381
|
}, null, 8, ["class"]),
|
|
@@ -11403,7 +11394,7 @@ const gm = Yo.exports, ym = ["innerHTML"], bm = {
|
|
|
11403
11394
|
}, null, 8, ["notification"]))), 128)),
|
|
11404
11395
|
e.notificationsConfig.items.length == 0 ? (b(), T("div", xm, [
|
|
11405
11396
|
h("div", km, [
|
|
11406
|
-
|
|
11397
|
+
H(g(_e), {
|
|
11407
11398
|
icon: "heroicons:inbox-stack",
|
|
11408
11399
|
class: "mx-auto mb-2 h-8 w-8 text-slate-400"
|
|
11409
11400
|
}),
|
|
@@ -11411,12 +11402,12 @@ const gm = Yo.exports, ym = ["innerHTML"], bm = {
|
|
|
11411
11402
|
])
|
|
11412
11403
|
])) : Z("", !0),
|
|
11413
11404
|
e.notificationsConfig.footerTo ? (b(), T("div", $m, [
|
|
11414
|
-
|
|
11405
|
+
H(d, {
|
|
11415
11406
|
custom: "",
|
|
11416
11407
|
to: e.notificationsConfig.footerTo
|
|
11417
11408
|
}, {
|
|
11418
11409
|
default: G(({ href: p, navigate: x }) => [
|
|
11419
|
-
|
|
11410
|
+
H(g(Bt), {
|
|
11420
11411
|
as: "a",
|
|
11421
11412
|
href: p,
|
|
11422
11413
|
onClick: x
|
|
@@ -11481,7 +11472,7 @@ const gm = Yo.exports, ym = ["innerHTML"], bm = {
|
|
|
11481
11472
|
navbar: G(() => [
|
|
11482
11473
|
h("div", Bm, [
|
|
11483
11474
|
h("div", _m, [
|
|
11484
|
-
|
|
11475
|
+
H(s, {
|
|
11485
11476
|
to: "/",
|
|
11486
11477
|
class: "flex flex-shrink-0 items-center p-2 pl-0"
|
|
11487
11478
|
}, {
|
|
@@ -11511,7 +11502,7 @@ const gm = Yo.exports, ym = ["innerHTML"], bm = {
|
|
|
11511
11502
|
onClick: r,
|
|
11512
11503
|
onOpen: l
|
|
11513
11504
|
}, null, 8, ["dark", "notifications-config"])) : Z("", !0),
|
|
11514
|
-
|
|
11505
|
+
H(kt, {
|
|
11515
11506
|
"menu-class": "w-52",
|
|
11516
11507
|
class: "hidden md:block",
|
|
11517
11508
|
items: e.userMenu
|
|
@@ -11520,7 +11511,7 @@ const gm = Yo.exports, ym = ["innerHTML"], bm = {
|
|
|
11520
11511
|
h("div", {
|
|
11521
11512
|
class: z(["flex rounded-full", [""]])
|
|
11522
11513
|
}, [
|
|
11523
|
-
|
|
11514
|
+
H(en, {
|
|
11524
11515
|
class: z(e.dark ? "text-white" : ""),
|
|
11525
11516
|
user: e.user
|
|
11526
11517
|
}, null, 8, ["class", "user"])
|
|
@@ -11543,7 +11534,7 @@ const gm = Yo.exports, ym = ["innerHTML"], bm = {
|
|
|
11543
11534
|
class: z(["mb-4 mt-2", [e.dark ? "border-slate-700" : "border-slate-200"]])
|
|
11544
11535
|
}, null, 2),
|
|
11545
11536
|
h("div", Lm, [
|
|
11546
|
-
|
|
11537
|
+
H(en, {
|
|
11547
11538
|
user: e.user,
|
|
11548
11539
|
"show-details": "",
|
|
11549
11540
|
size: "base",
|
|
@@ -11568,7 +11559,7 @@ const gm = Yo.exports, ym = ["innerHTML"], bm = {
|
|
|
11568
11559
|
}), jm = { class: "min-h-full" }, Dm = /* @__PURE__ */ h("div", { class: "fixed inset-0 bg-slate-600 bg-opacity-75" }, null, -1), Fm = { class: "fixed inset-0 z-40 flex" }, Pm = { class: "absolute top-0 right-0 -mr-12 pt-2" }, Vm = /* @__PURE__ */ h("span", { class: "sr-only" }, "Close sidebar", -1), Nm = { class: "flex flex-shrink-0 items-center px-4" }, Rm = ["src", "alt"], zm = { class: "mt-5 h-0 flex-1 overflow-y-auto" }, Um = /* @__PURE__ */ h("div", {
|
|
11569
11560
|
class: "w-14 flex-shrink-0",
|
|
11570
11561
|
"aria-hidden": "true"
|
|
11571
|
-
}, null, -1), qm = { class: "flex min-h-full flex-col xl:pl-64" },
|
|
11562
|
+
}, null, -1), qm = { class: "flex min-h-full flex-col xl:pl-64" }, Hm = { class: "sticky top-0 left-0 z-10 shrink-0 shadow" }, Km = { class: "flex h-16 bg-white" }, Gm = /* @__PURE__ */ h("span", { class: "sr-only" }, "Open sidebar", -1), Wm = { class: "flex flex-1" }, Qm = { class: "relative min-h-full flex-1" }, Ym = { class: "z-10 hidden xl:fixed xl:inset-y-0 xl:flex xl:w-64 xl:flex-col" }, Jm = ["src", "alt"], Zm = { class: "flex flex-1" }, Xm = { class: "flex-1" }, Zo = /* @__PURE__ */ Q({
|
|
11572
11563
|
__name: "BaseLayoutSidebar",
|
|
11573
11564
|
props: {
|
|
11574
11565
|
appName: {
|
|
@@ -11596,18 +11587,18 @@ const gm = Yo.exports, ym = ["innerHTML"], bm = {
|
|
|
11596
11587
|
l.value = !1;
|
|
11597
11588
|
}
|
|
11598
11589
|
return Se("toggleMenu", o), Se("openMenu", a), Se("closeMenu", s), (i, d) => (b(), T("div", jm, [
|
|
11599
|
-
|
|
11590
|
+
H(g(Ao), {
|
|
11600
11591
|
as: "template",
|
|
11601
11592
|
show: l.value
|
|
11602
11593
|
}, {
|
|
11603
11594
|
default: G(() => [
|
|
11604
|
-
|
|
11595
|
+
H(g(bi), {
|
|
11605
11596
|
as: "div",
|
|
11606
11597
|
class: "relative z-40 xl:hidden",
|
|
11607
11598
|
onClose: d[1] || (d[1] = (p) => l.value = !1)
|
|
11608
11599
|
}, {
|
|
11609
11600
|
default: G(() => [
|
|
11610
|
-
|
|
11601
|
+
H(g(Yt), {
|
|
11611
11602
|
as: "template",
|
|
11612
11603
|
enter: "transition-opacity ease-linear duration-300",
|
|
11613
11604
|
"enter-from": "opacity-0",
|
|
@@ -11622,7 +11613,7 @@ const gm = Yo.exports, ym = ["innerHTML"], bm = {
|
|
|
11622
11613
|
_: 1
|
|
11623
11614
|
}),
|
|
11624
11615
|
h("div", Fm, [
|
|
11625
|
-
|
|
11616
|
+
H(g(Yt), {
|
|
11626
11617
|
as: "template",
|
|
11627
11618
|
enter: "transition ease-in-out duration-300 transform",
|
|
11628
11619
|
"enter-from": "-translate-x-full",
|
|
@@ -11632,11 +11623,11 @@ const gm = Yo.exports, ym = ["innerHTML"], bm = {
|
|
|
11632
11623
|
"leave-to": "-translate-x-full"
|
|
11633
11624
|
}, {
|
|
11634
11625
|
default: G(() => [
|
|
11635
|
-
|
|
11626
|
+
H(g(wi), {
|
|
11636
11627
|
class: z(["relative flex w-full max-w-xs flex-1 flex-col pt-5 pb-4", [e.dark ? "bg-slate-800" : "bg-white"]])
|
|
11637
11628
|
}, {
|
|
11638
11629
|
default: G(() => [
|
|
11639
|
-
|
|
11630
|
+
H(g(Yt), {
|
|
11640
11631
|
as: "template",
|
|
11641
11632
|
enter: "ease-in-out duration-300",
|
|
11642
11633
|
"enter-from": "opacity-0",
|
|
@@ -11653,7 +11644,7 @@ const gm = Yo.exports, ym = ["innerHTML"], bm = {
|
|
|
11653
11644
|
onClick: d[0] || (d[0] = (p) => l.value = !1)
|
|
11654
11645
|
}, [
|
|
11655
11646
|
Vm,
|
|
11656
|
-
|
|
11647
|
+
H(g(_e), {
|
|
11657
11648
|
icon: "heroicons:x-mark",
|
|
11658
11649
|
class: "h-6 w-6 text-white",
|
|
11659
11650
|
"aria-hidden": "true"
|
|
@@ -11690,7 +11681,7 @@ const gm = Yo.exports, ym = ["innerHTML"], bm = {
|
|
|
11690
11681
|
_: 3
|
|
11691
11682
|
}, 8, ["show"]),
|
|
11692
11683
|
h("div", qm, [
|
|
11693
|
-
h("div",
|
|
11684
|
+
h("div", Hm, [
|
|
11694
11685
|
(b(!0), T(me, null, ye(g(r), (p) => (b(), ne(lr, {
|
|
11695
11686
|
key: p.id,
|
|
11696
11687
|
color: p.color,
|
|
@@ -11704,14 +11695,14 @@ const gm = Yo.exports, ym = ["innerHTML"], bm = {
|
|
|
11704
11695
|
]),
|
|
11705
11696
|
_: 2
|
|
11706
11697
|
}, 1032, ["color", "to", "action", "closable", "onClose"]))), 128)),
|
|
11707
|
-
h("div",
|
|
11698
|
+
h("div", Km, [
|
|
11708
11699
|
h("button", {
|
|
11709
11700
|
type: "button",
|
|
11710
11701
|
class: "border-r border-slate-200 px-4 text-slate-500 xl:hidden",
|
|
11711
11702
|
onClick: d[2] || (d[2] = (p) => l.value = !0)
|
|
11712
11703
|
}, [
|
|
11713
11704
|
Gm,
|
|
11714
|
-
|
|
11705
|
+
H(g(_e), {
|
|
11715
11706
|
icon: "heroicons:bars-3-bottom-left",
|
|
11716
11707
|
class: "h-6 w-6",
|
|
11717
11708
|
"aria-hidden": "true"
|
|
@@ -11834,12 +11825,12 @@ const gm = Yo.exports, ym = ["innerHTML"], bm = {
|
|
|
11834
11825
|
onOpen: a
|
|
11835
11826
|
}, null, 8, ["notifications-config"])) : Z("", !0),
|
|
11836
11827
|
h("div", ap, [
|
|
11837
|
-
|
|
11828
|
+
H(kt, { items: e.userMenu }, {
|
|
11838
11829
|
button: G(({ open: d }) => [
|
|
11839
11830
|
h("div", {
|
|
11840
11831
|
class: z(["flex", [""]])
|
|
11841
11832
|
}, [
|
|
11842
|
-
|
|
11833
|
+
H(en, {
|
|
11843
11834
|
user: e.user,
|
|
11844
11835
|
"show-details": ""
|
|
11845
11836
|
}, null, 8, ["user"])
|
|
@@ -11900,9 +11891,9 @@ const gm = Yo.exports, ym = ["innerHTML"], bm = {
|
|
|
11900
11891
|
BaseMenuItem: Jt,
|
|
11901
11892
|
BaseModalCenter: Zd,
|
|
11902
11893
|
BaseModalSide: Oo,
|
|
11903
|
-
BaseNavbar:
|
|
11894
|
+
BaseNavbar: Ho,
|
|
11904
11895
|
BaseNavbarItem: Go,
|
|
11905
|
-
BaseNavbarItemContent:
|
|
11896
|
+
BaseNavbarItemContent: Ko,
|
|
11906
11897
|
BasePagination: Eo,
|
|
11907
11898
|
BasePanel: mf,
|
|
11908
11899
|
BasePassword: bf,
|
|
@@ -12130,9 +12121,9 @@ export {
|
|
|
12130
12121
|
Jt as BaseMenuItem,
|
|
12131
12122
|
Zd as BaseModalCenter,
|
|
12132
12123
|
Oo as BaseModalSide,
|
|
12133
|
-
|
|
12124
|
+
Ho as BaseNavbar,
|
|
12134
12125
|
Go as BaseNavbarItem,
|
|
12135
|
-
|
|
12126
|
+
Ko as BaseNavbarItemContent,
|
|
12136
12127
|
Eo as BasePagination,
|
|
12137
12128
|
mf as BasePanel,
|
|
12138
12129
|
bf as BasePassword,
|