@speckle/ui-components 2.19.4 → 2.19.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/components/global/ToastRenderer.vue.d.ts +5 -5
- package/dist/composables/form/input.d.ts +1 -2
- package/dist/lib.cjs +1 -1
- package/dist/lib.cjs.map +1 -1
- package/dist/lib.js +658 -668
- package/dist/lib.js.map +1 -1
- package/package.json +3 -3
package/dist/lib.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
var Ut = Object.defineProperty;
|
|
2
2
|
var Wt = (e, t, r) => t in e ? Ut(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
3
3
|
var re = (e, t, r) => (Wt(e, typeof t != "symbol" ? t + "" : t, r), r);
|
|
4
|
-
import { defineComponent as T, resolveDynamicComponent as X, computed as h, openBlock as a, createBlock as j, normalizeClass as x, withCtx as
|
|
4
|
+
import { defineComponent as T, resolveDynamicComponent as X, computed as h, openBlock as a, createBlock as j, normalizeClass as x, withCtx as z, createCommentVNode as $, renderSlot as R, createTextVNode as U, createElementBlock as d, createElementVNode as c, createVNode as O, Transition as et, unref as l, toDisplayString as B, toRefs as ie, Fragment as q, renderList as K, ref as L, onMounted as ne, onBeforeUnmount as Ee, normalizeStyle as ee, mergeProps as ue, mergeModels as we, useModel as Ve, watch as te, withDirectives as se, isRef as Re, vModelText as tt, useSlots as Fe, vModelDynamic as qt, pushScopeId as Ht, popScopeId as Gt, Teleport as Kt, withModifiers as be, onUnmounted as Nt, toHandlers as mt, nextTick as Xt, resolveDirective as st, vShow as Ct, getCurrentInstance as Zt, inject as Qt, withKeys as xe, defineAsyncComponent as Jt } from "vue";
|
|
5
5
|
import { isObjectLike as Ke, clamp as ht, isBoolean as Yt, noop as nt, debounce as De, isUndefined as me, isArray as J, isString as he, throttle as Ne, uniq as es, intersection as ts, difference as ss } from "lodash";
|
|
6
6
|
import { ArrowPathIcon as $t, XMarkIcon as It, CheckIcon as ns, ChevronUpIcon as ls, Bars3Icon as as, Squares2X2Icon as os, UserCircleIcon as rs } from "@heroicons/vue/24/solid";
|
|
7
7
|
import { CheckCircleIcon as is, XCircleIcon as us, ExclamationCircleIcon as cs, InformationCircleIcon as Xe, CheckIcon as ds, ClipboardDocumentCheckIcon as fs, ClipboardDocumentIcon as ps, XMarkIcon as ms, ChevronDownIcon as lt, ArrowLongLeftIcon as hs, ArrowLongRightIcon as vs, ExclamationTriangleIcon as gs } from "@heroicons/vue/24/outline";
|
|
8
|
-
import { XMarkIcon as ve, CheckIcon as at, CheckCircleIcon as St, ExclamationCircleIcon as
|
|
8
|
+
import { XMarkIcon as ve, CheckIcon as at, CheckCircleIcon as St, ExclamationCircleIcon as Me, EnvelopeIcon as bs, KeyIcon as ys, ChevronUpIcon as xs, ChevronDownIcon as ks, MagnifyingGlassIcon as ws, XCircleIcon as Cs, InformationCircleIcon as $s } from "@heroicons/vue/20/solid";
|
|
9
9
|
import { wait as Is, isNullOrUndefined as Ss, SourceApps as Bs, getClientOperatingSystem as _s, OperatingSystem as Ze, md5 as Ls } from "@speckle/shared";
|
|
10
|
-
import { buildManualPromise as
|
|
11
|
-
import { useField as
|
|
10
|
+
import { buildManualPromise as au } from "@speckle/shared";
|
|
11
|
+
import { useField as ze } from "vee-validate";
|
|
12
12
|
import { nanoid as Ue } from "nanoid";
|
|
13
|
-
import { useResizeObserver as Bt, useMutationObserver as Os, useMounted as _t, useElementBounding as js, useIntersectionObserver as
|
|
14
|
-
import { Listbox as
|
|
15
|
-
import { directive as
|
|
16
|
-
import
|
|
17
|
-
const
|
|
13
|
+
import { useResizeObserver as Bt, useMutationObserver as Os, useMounted as _t, useElementBounding as js, useIntersectionObserver as Vs, useClipboard as Ms, useMagicKeys as zs, whenever as As, isClient as ge, computedAsync as Ps, useFocus as Ts, useDropZone as Es } from "@vueuse/core";
|
|
14
|
+
import { Listbox as Rs, ListboxLabel as Fs, ListboxButton as Ds, ListboxOptions as Us, ListboxOption as Ws, Switch as qs, TransitionRoot as Lt, Dialog as Hs, TransitionChild as vt, DialogPanel as Gs, Disclosure as Ks, DisclosureButton as Ns, DisclosurePanel as Xs, Menu as Zs, MenuButton as Qs, MenuItems as Js, MenuItem as Ys, Combobox as en, ComboboxOptions as tn, ComboboxOption as sn } from "@headlessui/vue";
|
|
15
|
+
import { directive as nn } from "vue-tippy";
|
|
16
|
+
import ln from "v3-infinite-loading";
|
|
17
|
+
const an = /* @__PURE__ */ T({
|
|
18
18
|
__name: "Button",
|
|
19
19
|
props: {
|
|
20
20
|
/**
|
|
@@ -196,8 +196,8 @@ const ln = /* @__PURE__ */ T({
|
|
|
196
196
|
}
|
|
197
197
|
return m.join(" ");
|
|
198
198
|
}), k = h(() => {
|
|
199
|
-
const m = [],
|
|
200
|
-
if (
|
|
199
|
+
const m = [], M = s.textColor !== "default";
|
|
200
|
+
if (M && !i.value)
|
|
201
201
|
switch (s.textColor) {
|
|
202
202
|
case "primary":
|
|
203
203
|
m.push("text-primary");
|
|
@@ -218,7 +218,7 @@ const ln = /* @__PURE__ */ T({
|
|
|
218
218
|
if (!s.text && !s.link) {
|
|
219
219
|
if (i.value)
|
|
220
220
|
m.push("text-foreground-disabled");
|
|
221
|
-
else if (!
|
|
221
|
+
else if (!M)
|
|
222
222
|
switch (s.color) {
|
|
223
223
|
case "invert":
|
|
224
224
|
m.push(
|
|
@@ -259,7 +259,7 @@ const ln = /* @__PURE__ */ T({
|
|
|
259
259
|
break;
|
|
260
260
|
}
|
|
261
261
|
} else
|
|
262
|
-
i.value ? m.push("text-foreground-disabled") :
|
|
262
|
+
i.value ? m.push("text-foreground-disabled") : M || (s.color === "invert" ? m.push(
|
|
263
263
|
"text-foundation hover:text-foundation-2 dark:text-foreground dark:hover:text-foreground"
|
|
264
264
|
) : s.color === "secondary" ? m.push("text-foreground-2 hover:text-primary-focus") : s.color === "success" ? m.push("text-success") : s.color === "warning" ? m.push("text-warning") : s.color === "info" ? m.push("text-info") : s.color === "danger" ? m.push("text-danger") : m.push("text-primary hover:text-primary-focus"));
|
|
265
265
|
return m.join(" ");
|
|
@@ -305,7 +305,7 @@ const ln = /* @__PURE__ */ T({
|
|
|
305
305
|
case "base":
|
|
306
306
|
return "h-8 text-sm sm:text-base font-medium xxx-tracking-wide";
|
|
307
307
|
}
|
|
308
|
-
}),
|
|
308
|
+
}), V = h(() => {
|
|
309
309
|
switch (s.size) {
|
|
310
310
|
case "xs":
|
|
311
311
|
return "px-1";
|
|
@@ -337,7 +337,7 @@ const ln = /* @__PURE__ */ T({
|
|
|
337
337
|
m ? "" : y.value,
|
|
338
338
|
m ? "" : v.value,
|
|
339
339
|
m ? "" : b.value,
|
|
340
|
-
s.link ? "" :
|
|
340
|
+
s.link ? "" : V.value,
|
|
341
341
|
I.value
|
|
342
342
|
].join(" ");
|
|
343
343
|
}), _ = h(() => {
|
|
@@ -361,14 +361,14 @@ const ln = /* @__PURE__ */ T({
|
|
|
361
361
|
break;
|
|
362
362
|
}
|
|
363
363
|
return m.join(" ");
|
|
364
|
-
}),
|
|
364
|
+
}), A = (m) => {
|
|
365
365
|
if (i.value) {
|
|
366
366
|
m.preventDefault(), m.stopPropagation(), m.stopImmediatePropagation();
|
|
367
367
|
return;
|
|
368
368
|
}
|
|
369
369
|
r("click", m);
|
|
370
370
|
};
|
|
371
|
-
return (m,
|
|
371
|
+
return (m, M) => (a(), j(X(e.to ? p.value : "button"), {
|
|
372
372
|
href: e.to,
|
|
373
373
|
to: e.to,
|
|
374
374
|
type: u.value,
|
|
@@ -376,9 +376,9 @@ const ln = /* @__PURE__ */ T({
|
|
|
376
376
|
class: x(w.value),
|
|
377
377
|
disabled: i.value,
|
|
378
378
|
role: "button",
|
|
379
|
-
onClick:
|
|
379
|
+
onClick: A
|
|
380
380
|
}, {
|
|
381
|
-
default:
|
|
381
|
+
default: z(() => [
|
|
382
382
|
f.value ? (a(), j(X(f.value), {
|
|
383
383
|
key: 0,
|
|
384
384
|
class: x(`${_.value} ${e.hideText ? "" : "mr-1"}`)
|
|
@@ -400,7 +400,7 @@ const Ce = (e, t) => {
|
|
|
400
400
|
for (const [s, o] of t)
|
|
401
401
|
r[s] = o;
|
|
402
402
|
return r;
|
|
403
|
-
}, ce = /* @__PURE__ */ Ce(
|
|
403
|
+
}, ce = /* @__PURE__ */ Ce(an, [["__scopeId", "data-v-ad210086"]]), on = /* @__PURE__ */ T({
|
|
404
404
|
__name: "Link",
|
|
405
405
|
props: {
|
|
406
406
|
to: {
|
|
@@ -475,7 +475,7 @@ const Ce = (e, t) => {
|
|
|
475
475
|
role: "link",
|
|
476
476
|
onClickCapture: o
|
|
477
477
|
}, {
|
|
478
|
-
default:
|
|
478
|
+
default: z(() => [
|
|
479
479
|
R(n.$slots, "default", {}, () => [
|
|
480
480
|
U("Link")
|
|
481
481
|
])
|
|
@@ -485,13 +485,13 @@ const Ce = (e, t) => {
|
|
|
485
485
|
}
|
|
486
486
|
});
|
|
487
487
|
var Le = /* @__PURE__ */ ((e) => (e[e.Success = 0] = "Success", e[e.Warning = 1] = "Warning", e[e.Danger = 2] = "Danger", e[e.Info = 3] = "Info", e))(Le || {});
|
|
488
|
-
const
|
|
488
|
+
const rn = {
|
|
489
489
|
"aria-live": "assertive",
|
|
490
490
|
class: "pointer-events-none fixed inset-0 flex items-end px-4 py-6 mt-10 sm:items-start sm:p-6 z-50"
|
|
491
|
-
},
|
|
491
|
+
}, un = { class: "flex w-full flex-col items-center gap-4 sm:items-end" }, cn = { class: "flex-shrink-0" }, dn = { class: "w-full min-w-[10rem]" }, fn = {
|
|
492
492
|
key: 1,
|
|
493
493
|
class: "label label--light text-foreground-2 text-sm"
|
|
494
|
-
},
|
|
494
|
+
}, pn = { key: 2 }, mn = /* @__PURE__ */ c("span", { class: "sr-only" }, "Close", -1), vi = /* @__PURE__ */ T({
|
|
495
495
|
__name: "ToastRenderer",
|
|
496
496
|
props: {
|
|
497
497
|
notification: null
|
|
@@ -509,8 +509,8 @@ const on = {
|
|
|
509
509
|
var i, f, y;
|
|
510
510
|
(y = (f = (i = s.notification) == null ? void 0 : i.cta) == null ? void 0 : f.onClick) == null || y.call(f, u), n();
|
|
511
511
|
};
|
|
512
|
-
return (u, i) => (a(), d("div",
|
|
513
|
-
c("div",
|
|
512
|
+
return (u, i) => (a(), d("div", rn, [
|
|
513
|
+
c("div", un, [
|
|
514
514
|
O(et, {
|
|
515
515
|
"enter-active-class": "transform ease-out duration-300 transition",
|
|
516
516
|
"enter-from-class": "translate-y-2 opacity-0 sm:translate-y-0 sm:translate-x-2",
|
|
@@ -519,7 +519,7 @@ const on = {
|
|
|
519
519
|
"leave-from-class": "opacity-100",
|
|
520
520
|
"leave-to-class": "opacity-0"
|
|
521
521
|
}, {
|
|
522
|
-
default:
|
|
522
|
+
default: z(() => [
|
|
523
523
|
e.notification ? (a(), d("div", {
|
|
524
524
|
key: 0,
|
|
525
525
|
class: x(["pointer-events-auto w-full max-w-[20rem] overflow-hidden rounded-lg bg-foundation text-foreground shadow-lg ring-1 ring-primary-muted ring-opacity-5", o.value ? "p-2" : "p-3"])
|
|
@@ -527,7 +527,7 @@ const on = {
|
|
|
527
527
|
c("div", {
|
|
528
528
|
class: x(["flex gap-2", o.value ? "items-center" : "items-start"])
|
|
529
529
|
}, [
|
|
530
|
-
c("div",
|
|
530
|
+
c("div", cn, [
|
|
531
531
|
e.notification.type === l(Le).Success ? (a(), j(l(is), {
|
|
532
532
|
key: 0,
|
|
533
533
|
class: x(["text-success", o.value ? "h-5 w-5" : "h-6 w-6"]),
|
|
@@ -546,21 +546,21 @@ const on = {
|
|
|
546
546
|
"aria-hidden": "true"
|
|
547
547
|
}, null, 8, ["class"])) : $("", !0)
|
|
548
548
|
]),
|
|
549
|
-
c("div",
|
|
549
|
+
c("div", dn, [
|
|
550
550
|
e.notification.title ? (a(), d("p", {
|
|
551
551
|
key: 0,
|
|
552
552
|
class: x(["text-foreground font-bold", o.value ? "text-sm" : "text-base"])
|
|
553
553
|
}, B(e.notification.title), 3)) : $("", !0),
|
|
554
|
-
e.notification.description ? (a(), d("p",
|
|
555
|
-
e.notification.cta ? (a(), d("div",
|
|
556
|
-
O(
|
|
554
|
+
e.notification.description ? (a(), d("p", fn, B(e.notification.description), 1)) : $("", !0),
|
|
555
|
+
e.notification.cta ? (a(), d("div", pn, [
|
|
556
|
+
O(on, {
|
|
557
557
|
to: e.notification.cta.url,
|
|
558
558
|
class: "label",
|
|
559
559
|
size: "xs",
|
|
560
560
|
primary: "",
|
|
561
561
|
onClick: p
|
|
562
562
|
}, {
|
|
563
|
-
default:
|
|
563
|
+
default: z(() => [
|
|
564
564
|
U(B(e.notification.cta.title), 1)
|
|
565
565
|
]),
|
|
566
566
|
_: 1
|
|
@@ -575,7 +575,7 @@ const on = {
|
|
|
575
575
|
class: "inline-flex rounded-md bg-foundation text-foreground-2 hover:text-foreground focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2",
|
|
576
576
|
onClick: n
|
|
577
577
|
}, [
|
|
578
|
-
|
|
578
|
+
mn,
|
|
579
579
|
O(l(ve), {
|
|
580
580
|
class: "h-5 w-5",
|
|
581
581
|
"aria-hidden": "true"
|
|
@@ -590,18 +590,18 @@ const on = {
|
|
|
590
590
|
])
|
|
591
591
|
]));
|
|
592
592
|
}
|
|
593
|
-
}),
|
|
593
|
+
}), hn = "Enter";
|
|
594
594
|
function Ot(e) {
|
|
595
595
|
return (t) => {
|
|
596
|
-
t.code ===
|
|
596
|
+
t.code === hn && e(t);
|
|
597
597
|
};
|
|
598
598
|
}
|
|
599
|
-
const
|
|
599
|
+
const vn = /* @__PURE__ */ c("circle", {
|
|
600
600
|
cx: "4",
|
|
601
601
|
cy: "4",
|
|
602
602
|
r: "3"
|
|
603
|
-
}, null, -1),
|
|
604
|
-
|
|
603
|
+
}, null, -1), gn = [
|
|
604
|
+
vn
|
|
605
605
|
], ot = /* @__PURE__ */ T({
|
|
606
606
|
__name: "Badge",
|
|
607
607
|
props: {
|
|
@@ -653,7 +653,7 @@ const hn = /* @__PURE__ */ c("circle", {
|
|
|
653
653
|
class: x(i.value),
|
|
654
654
|
fill: "currentColor",
|
|
655
655
|
viewBox: "0 0 8 8"
|
|
656
|
-
},
|
|
656
|
+
}, gn, 2)) : $("", !0),
|
|
657
657
|
R(y.$slots, "default", {}, () => [
|
|
658
658
|
U("Badge")
|
|
659
659
|
]),
|
|
@@ -670,7 +670,7 @@ const hn = /* @__PURE__ */ c("circle", {
|
|
|
670
670
|
}
|
|
671
671
|
});
|
|
672
672
|
let gt = [];
|
|
673
|
-
function
|
|
673
|
+
function bn(e) {
|
|
674
674
|
gt = gt ? e : e.slice();
|
|
675
675
|
}
|
|
676
676
|
var Oe = /* @__PURE__ */ ((e) => (e[e.sm = 640] = "sm", e[e.md = 746] = "md", e[e.lg = 1024] = "lg", e[e.xl = 1280] = "xl", e[e["2xl"] = 1536] = "2xl", e))(Oe || {});
|
|
@@ -711,7 +711,7 @@ function jt(e) {
|
|
|
711
711
|
) : (o == null ? void 0 : o.value) === Oe.xl && C.push(
|
|
712
712
|
`xl:flex-row xl:space-y-0 xl:justify-start xl:${I} xl:items-center`
|
|
713
713
|
)) : C.push(`flex-row ${I} items-center`), C.join(" ");
|
|
714
|
-
}),
|
|
714
|
+
}), V = h(() => {
|
|
715
715
|
const C = ["flex items-center"];
|
|
716
716
|
return n != null && n.value || C.push("cursor-pointer"), C.join(" ");
|
|
717
717
|
});
|
|
@@ -722,11 +722,11 @@ function jt(e) {
|
|
|
722
722
|
switchStep: b,
|
|
723
723
|
getStepDisplayValue: y,
|
|
724
724
|
listClasses: g,
|
|
725
|
-
linkClasses:
|
|
725
|
+
linkClasses: V,
|
|
726
726
|
orientation: i
|
|
727
727
|
};
|
|
728
728
|
}
|
|
729
|
-
|
|
729
|
+
bn([
|
|
730
730
|
"sm:space-x-8",
|
|
731
731
|
"md:space-x-8",
|
|
732
732
|
"lg:space-x-8",
|
|
@@ -740,16 +740,16 @@ gn([
|
|
|
740
740
|
"lg:space-x-4",
|
|
741
741
|
"xl:space-x-4"
|
|
742
742
|
]);
|
|
743
|
-
const
|
|
743
|
+
const yn = ["aria-label"], xn = ["href", "onClick"], kn = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, wn = { class: "shrink-0 h-8 w-8 rounded-full bg-primary-focus text-foreground-on-primary inline-flex items-center justify-center select-none" }, Cn = { class: "flex flex-col" }, $n = {
|
|
744
744
|
key: 0,
|
|
745
745
|
class: "label label--light text-foreground"
|
|
746
|
-
},
|
|
746
|
+
}, In = ["href", "onClick"], Sn = { class: "flex space-x-3 items-center text-primary-focus normal font-medium leading-5" }, Bn = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-primary-focus inline-flex items-center justify-center select-none" }, _n = { class: "flex flex-col" }, Ln = {
|
|
747
747
|
key: 0,
|
|
748
748
|
class: "label label--light text-foreground"
|
|
749
|
-
},
|
|
749
|
+
}, On = ["href", "onClick"], jn = { class: "flex space-x-3 items-center text-foreground-disabled normal font-medium leading-5" }, Vn = { class: "shrink-0 h-8 w-8 rounded-full border-2 border-foreground-disabled inline-flex items-center justify-center select-none" }, Mn = { class: "flex flex-col" }, zn = {
|
|
750
750
|
key: 0,
|
|
751
751
|
class: "label label--light"
|
|
752
|
-
},
|
|
752
|
+
}, gi = /* @__PURE__ */ T({
|
|
753
753
|
__name: "Number",
|
|
754
754
|
props: {
|
|
755
755
|
ariaLabel: null,
|
|
@@ -789,66 +789,66 @@ const bn = ["aria-label"], yn = ["href", "onClick"], xn = { class: "flex space-x
|
|
|
789
789
|
class: x(l(f)),
|
|
790
790
|
onClick: (g) => l(p)(b, g)
|
|
791
791
|
}, [
|
|
792
|
-
c("div",
|
|
793
|
-
c("div",
|
|
792
|
+
c("div", kn, [
|
|
793
|
+
c("div", wn, [
|
|
794
794
|
O(l(at), { class: "w-5 h-5" })
|
|
795
795
|
]),
|
|
796
|
-
c("div",
|
|
796
|
+
c("div", Cn, [
|
|
797
797
|
c("div", null, B(v.name), 1),
|
|
798
|
-
v.description ? (a(), d("div",
|
|
798
|
+
v.description ? (a(), d("div", $n, B(v.description), 1)) : $("", !0)
|
|
799
799
|
])
|
|
800
800
|
])
|
|
801
|
-
], 10,
|
|
801
|
+
], 10, xn)) : l(o)(b) ? (a(), d("a", {
|
|
802
802
|
key: 1,
|
|
803
803
|
href: v.href,
|
|
804
804
|
class: x(l(f)),
|
|
805
805
|
"aria-current": "step",
|
|
806
806
|
onClick: (g) => l(p)(b, g)
|
|
807
807
|
}, [
|
|
808
|
-
c("div",
|
|
809
|
-
c("div",
|
|
810
|
-
c("div",
|
|
808
|
+
c("div", Sn, [
|
|
809
|
+
c("div", Bn, B(l(u)(b)), 1),
|
|
810
|
+
c("div", _n, [
|
|
811
811
|
c("div", null, B(v.name), 1),
|
|
812
|
-
v.description ? (a(), d("div",
|
|
812
|
+
v.description ? (a(), d("div", Ln, B(v.description), 1)) : $("", !0)
|
|
813
813
|
])
|
|
814
814
|
])
|
|
815
|
-
], 10,
|
|
815
|
+
], 10, In)) : (a(), d("a", {
|
|
816
816
|
key: 2,
|
|
817
817
|
href: v.href,
|
|
818
818
|
class: x(l(f)),
|
|
819
819
|
onClick: (g) => l(p)(b, g)
|
|
820
820
|
}, [
|
|
821
|
-
c("div",
|
|
822
|
-
c("div",
|
|
821
|
+
c("div", jn, [
|
|
822
|
+
c("div", Vn, B(l(u)(b)), 1),
|
|
823
823
|
c("div", Mn, [
|
|
824
824
|
c("div", null, B(v.name), 1),
|
|
825
|
-
v.description ? (a(), d("div",
|
|
825
|
+
v.description ? (a(), d("div", zn, B(v.description), 1)) : $("", !0)
|
|
826
826
|
])
|
|
827
827
|
])
|
|
828
|
-
], 10,
|
|
828
|
+
], 10, On))
|
|
829
829
|
]))), 128))
|
|
830
830
|
], 2)
|
|
831
|
-
], 8,
|
|
831
|
+
], 8, yn));
|
|
832
832
|
}
|
|
833
|
-
}), An = ["aria-label"],
|
|
833
|
+
}), An = ["aria-label"], Pn = ["href", "onClick"], Tn = { class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center" }, En = {
|
|
834
834
|
key: 0,
|
|
835
835
|
class: "h-3 w-3 rounded-full bg-foreground-2"
|
|
836
|
-
},
|
|
836
|
+
}, Rn = ["href", "onClick"], Fn = {
|
|
837
837
|
class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
|
|
838
838
|
"aria-hidden": "true"
|
|
839
|
-
},
|
|
839
|
+
}, Dn = {
|
|
840
840
|
key: 0,
|
|
841
841
|
class: "h-3 w-3 rounded-full bg-foreground"
|
|
842
|
-
},
|
|
842
|
+
}, Un = /* @__PURE__ */ c("span", { class: "absolute h-4 w-4 rounded-full bg-outline-2" }, null, -1), Wn = /* @__PURE__ */ c("span", { class: "relative block h-2 w-2 rounded-full bg-primary-focus" }, null, -1), qn = ["href", "onClick"], Hn = {
|
|
843
843
|
class: "relative flex h-5 w-5 flex-shrink-0 items-center justify-center",
|
|
844
844
|
"aria-hidden": "true"
|
|
845
|
-
},
|
|
845
|
+
}, Gn = {
|
|
846
846
|
key: 0,
|
|
847
847
|
class: "h-3 w-3 rounded-full bg-foreground-2"
|
|
848
|
-
},
|
|
848
|
+
}, Kn = {
|
|
849
849
|
key: 1,
|
|
850
850
|
class: "h-4 w-4 rounded-full bg-foreground-disabled"
|
|
851
|
-
},
|
|
851
|
+
}, bi = /* @__PURE__ */ T({
|
|
852
852
|
__name: "Bullet",
|
|
853
853
|
props: {
|
|
854
854
|
ariaLabel: null,
|
|
@@ -887,10 +887,10 @@ const bn = ["aria-label"], yn = ["href", "onClick"], xn = { class: "flex space-x
|
|
|
887
887
|
key: 0,
|
|
888
888
|
href: b.href,
|
|
889
889
|
class: x(l(i)),
|
|
890
|
-
onClick: (
|
|
890
|
+
onClick: (V) => l(p)(g, V)
|
|
891
891
|
}, [
|
|
892
|
-
c("span",
|
|
893
|
-
e.basic ? (a(), d("span",
|
|
892
|
+
c("span", Tn, [
|
|
893
|
+
e.basic ? (a(), d("span", En)) : (a(), j(l(St), {
|
|
894
894
|
key: 1,
|
|
895
895
|
class: "h-full w-full text-primary",
|
|
896
896
|
"aria-hidden": "true"
|
|
@@ -899,40 +899,40 @@ const bn = ["aria-label"], yn = ["href", "onClick"], xn = { class: "flex space-x
|
|
|
899
899
|
c("span", {
|
|
900
900
|
class: x(["text-foreground", f.value])
|
|
901
901
|
}, B(b.name), 3)
|
|
902
|
-
], 10,
|
|
902
|
+
], 10, Pn)) : l(o)(g) ? (a(), d("a", {
|
|
903
903
|
key: 1,
|
|
904
904
|
href: b.href,
|
|
905
905
|
class: x(l(i)),
|
|
906
906
|
"aria-current": "step",
|
|
907
|
-
onClick: (
|
|
907
|
+
onClick: (V) => l(p)(g, V)
|
|
908
908
|
}, [
|
|
909
|
-
c("span",
|
|
910
|
-
e.basic ? (a(), d("span",
|
|
911
|
-
|
|
912
|
-
|
|
909
|
+
c("span", Fn, [
|
|
910
|
+
e.basic ? (a(), d("span", Dn)) : (a(), d(q, { key: 1 }, [
|
|
911
|
+
Un,
|
|
912
|
+
Wn
|
|
913
913
|
], 64))
|
|
914
914
|
]),
|
|
915
915
|
c("span", {
|
|
916
916
|
class: x(["text-primary-focus", f.value])
|
|
917
917
|
}, B(b.name), 3)
|
|
918
|
-
], 10,
|
|
918
|
+
], 10, Rn)) : (a(), d("a", {
|
|
919
919
|
key: 2,
|
|
920
920
|
href: b.href,
|
|
921
921
|
class: x(l(i)),
|
|
922
|
-
onClick: (
|
|
922
|
+
onClick: (V) => l(p)(g, V)
|
|
923
923
|
}, [
|
|
924
|
-
c("div",
|
|
925
|
-
e.basic ? (a(), d("span",
|
|
924
|
+
c("div", Hn, [
|
|
925
|
+
e.basic ? (a(), d("span", Gn)) : (a(), d("div", Kn))
|
|
926
926
|
]),
|
|
927
927
|
c("p", {
|
|
928
928
|
class: x(["text-foreground-disabled", f.value])
|
|
929
929
|
}, B(b.name), 3)
|
|
930
|
-
], 10,
|
|
930
|
+
], 10, qn))
|
|
931
931
|
]))), 128))
|
|
932
932
|
], 2)
|
|
933
933
|
], 8, An));
|
|
934
934
|
}
|
|
935
|
-
}),
|
|
935
|
+
}), Nn = {}, Xn = {
|
|
936
936
|
xmlns: "http://www.w3.org/2000/svg",
|
|
937
937
|
class: "icon icon-tabler icon-tabler-pointer",
|
|
938
938
|
width: "44",
|
|
@@ -943,34 +943,34 @@ const bn = ["aria-label"], yn = ["href", "onClick"], xn = { class: "flex space-x
|
|
|
943
943
|
fill: "rgba(255,255,255,0.8)",
|
|
944
944
|
"stroke-linecap": "round",
|
|
945
945
|
"stroke-linejoin": "round"
|
|
946
|
-
},
|
|
946
|
+
}, Zn = /* @__PURE__ */ c("path", {
|
|
947
947
|
stroke: "none",
|
|
948
948
|
d: "M0 0h24v24H0z",
|
|
949
949
|
fill: "none"
|
|
950
|
-
}, null, -1),
|
|
951
|
-
|
|
952
|
-
|
|
950
|
+
}, null, -1), Qn = /* @__PURE__ */ c("path", { d: "M7.904 17.563a1.2 1.2 0 0 0 2.228 .308l2.09 -3.093l4.907 4.907a1.067 1.067 0 0 0 1.509 0l1.047 -1.047a1.067 1.067 0 0 0 0 -1.509l-4.907 -4.907l3.113 -2.09a1.2 1.2 0 0 0 -.309 -2.228l-13.582 -3.904l3.904 13.563z" }, null, -1), Jn = [
|
|
951
|
+
Zn,
|
|
952
|
+
Qn
|
|
953
953
|
];
|
|
954
|
-
function
|
|
955
|
-
return a(), d("svg",
|
|
954
|
+
function Yn(e, t) {
|
|
955
|
+
return a(), d("svg", Xn, Jn);
|
|
956
956
|
}
|
|
957
|
-
const
|
|
957
|
+
const el = /* @__PURE__ */ Ce(Nn, [["render", Yn]]), tl = {}, sl = {
|
|
958
958
|
viewBox: "0 0 18 17",
|
|
959
959
|
fill: "none",
|
|
960
960
|
xmlns: "http://www.w3.org/2000/svg"
|
|
961
|
-
},
|
|
961
|
+
}, nl = /* @__PURE__ */ c("path", {
|
|
962
962
|
d: "M9 1.25V3.5M14.834 3.666L13.243 5.257M17.25 9.5H15M4.757 13.743L3.167 15.333M3 9.5H0.75M4.757 5.257L3.167 3.667",
|
|
963
963
|
stroke: "currentColor",
|
|
964
964
|
"stroke-width": "1",
|
|
965
965
|
"stroke-linecap": "round",
|
|
966
966
|
"stroke-linejoin": "round"
|
|
967
|
-
}, null, -1),
|
|
968
|
-
|
|
967
|
+
}, null, -1), ll = [
|
|
968
|
+
nl
|
|
969
969
|
];
|
|
970
|
-
function
|
|
971
|
-
return a(), d("svg",
|
|
970
|
+
function al(e, t) {
|
|
971
|
+
return a(), d("svg", sl, ll);
|
|
972
972
|
}
|
|
973
|
-
const
|
|
973
|
+
const ol = /* @__PURE__ */ Ce(tl, [["render", al]]), rl = { class: "relative aspect-square w-full h-full max-w-[250px] mx-auto mb-8 border-t border-r border-outline-3 select-none" }, il = { class: "w-full h-full overflow-hidden" }, yi = /* @__PURE__ */ T({
|
|
974
974
|
__name: "Instructional",
|
|
975
975
|
props: {
|
|
976
976
|
actions: Array,
|
|
@@ -1014,7 +1014,7 @@ const al = /* @__PURE__ */ Ce(el, [["render", ll]]), ol = { class: "relative asp
|
|
|
1014
1014
|
})();
|
|
1015
1015
|
}), Ee(() => {
|
|
1016
1016
|
r.value = !1;
|
|
1017
|
-
}), (k, v) => (a(), d("div",
|
|
1017
|
+
}), (k, v) => (a(), d("div", rl, [
|
|
1018
1018
|
c("div", {
|
|
1019
1019
|
class: "absolute z-50 text-foreground dark:text-foundation",
|
|
1020
1020
|
style: ee({
|
|
@@ -1024,12 +1024,12 @@ const al = /* @__PURE__ */ Ce(el, [["render", ll]]), ol = { class: "relative asp
|
|
|
1024
1024
|
transitionDuration: n.value + "ms"
|
|
1025
1025
|
})
|
|
1026
1026
|
}, [
|
|
1027
|
-
O(
|
|
1027
|
+
O(ol, {
|
|
1028
1028
|
class: x(["absolute -top-5 -left-4 h-12 w-12 -rotate-12 text-foreground", [{ hidden: !o.value }]])
|
|
1029
1029
|
}, null, 8, ["class"]),
|
|
1030
|
-
O(
|
|
1030
|
+
O(el, { class: "absolute inset-0 h-11 w-11" })
|
|
1031
1031
|
], 4),
|
|
1032
|
-
c("div",
|
|
1032
|
+
c("div", il, [
|
|
1033
1033
|
R(k.$slots, "background"),
|
|
1034
1034
|
(a(!0), d(q, null, K(u.value, (b) => (a(), d(q, {
|
|
1035
1035
|
key: b.name
|
|
@@ -1039,7 +1039,7 @@ const al = /* @__PURE__ */ Ce(el, [["render", ll]]), ol = { class: "relative asp
|
|
|
1039
1039
|
])
|
|
1040
1040
|
]));
|
|
1041
1041
|
}
|
|
1042
|
-
}),
|
|
1042
|
+
}), ul = { class: "relative bg-foundation" }, cl = /* @__PURE__ */ c("div", {
|
|
1043
1043
|
class: "absolute inset-0 flex items-center justify-center",
|
|
1044
1044
|
role: "status"
|
|
1045
1045
|
}, [
|
|
@@ -1060,7 +1060,7 @@ const al = /* @__PURE__ */ Ce(el, [["render", ll]]), ol = { class: "relative asp
|
|
|
1060
1060
|
})
|
|
1061
1061
|
]),
|
|
1062
1062
|
/* @__PURE__ */ c("span", { class: "sr-only" }, "Loading...")
|
|
1063
|
-
], -1),
|
|
1063
|
+
], -1), dl = ["title", "src"], xi = /* @__PURE__ */ T({
|
|
1064
1064
|
__name: "VimeoEmbed",
|
|
1065
1065
|
props: {
|
|
1066
1066
|
vimeoId: null,
|
|
@@ -1070,8 +1070,8 @@ const al = /* @__PURE__ */ Ce(el, [["render", ll]]), ol = { class: "relative asp
|
|
|
1070
1070
|
controls: { type: Boolean }
|
|
1071
1071
|
},
|
|
1072
1072
|
setup(e) {
|
|
1073
|
-
return (t, r) => (a(), d("div",
|
|
1074
|
-
|
|
1073
|
+
return (t, r) => (a(), d("div", ul, [
|
|
1074
|
+
cl,
|
|
1075
1075
|
c("iframe", {
|
|
1076
1076
|
title: e.title,
|
|
1077
1077
|
src: `https://player.vimeo.com/video/${e.vimeoId}?badge=0&autopause=0&player_id=0&app_id=58479&autoplay=${e.autoplay ? "1" : "0"}&muted=${e.muted ? "1" : "0"}&controls=${e.controls ? "1" : "0"}`,
|
|
@@ -1079,10 +1079,10 @@ const al = /* @__PURE__ */ Ce(el, [["render", ll]]), ol = { class: "relative asp
|
|
|
1079
1079
|
allow: "autoplay; fullscreen;",
|
|
1080
1080
|
allowfullscreen: "",
|
|
1081
1081
|
class: "aspect-video w-full relative z-10"
|
|
1082
|
-
}, null, 8,
|
|
1082
|
+
}, null, 8, dl)
|
|
1083
1083
|
]));
|
|
1084
1084
|
}
|
|
1085
|
-
}),
|
|
1085
|
+
}), fl = ["disabled"], ki = /* @__PURE__ */ T({
|
|
1086
1086
|
__name: "CardButton",
|
|
1087
1087
|
props: {
|
|
1088
1088
|
disabled: { type: Boolean },
|
|
@@ -1113,15 +1113,15 @@ const al = /* @__PURE__ */ Ce(el, [["render", ll]]), ol = { class: "relative asp
|
|
|
1113
1113
|
R(p.$slots, "default", {}, () => [
|
|
1114
1114
|
U("Text")
|
|
1115
1115
|
])
|
|
1116
|
-
], 10,
|
|
1116
|
+
], 10, fl));
|
|
1117
1117
|
}
|
|
1118
|
-
}),
|
|
1118
|
+
}), pl = { class: "relative flex items-start" }, ml = { class: "flex h-6 items-center" }, hl = ["id", "checked", "aria-describedby", "name", "disabled", "value"], vl = {
|
|
1119
1119
|
class: "ml-2 text-sm",
|
|
1120
1120
|
style: { "padding-top": "2px" }
|
|
1121
|
-
},
|
|
1121
|
+
}, gl = ["for"], bl = {
|
|
1122
1122
|
key: 0,
|
|
1123
1123
|
class: "text-danger ml-1"
|
|
1124
|
-
},
|
|
1124
|
+
}, yl = ["id"], wi = /* @__PURE__ */ T({
|
|
1125
1125
|
inheritAttrs: !1,
|
|
1126
1126
|
__name: "Checkbox",
|
|
1127
1127
|
props: {
|
|
@@ -1215,7 +1215,7 @@ const al = /* @__PURE__ */ Ce(el, [["render", ll]]), ol = { class: "relative asp
|
|
|
1215
1215
|
errorMessage: n,
|
|
1216
1216
|
handleChange: p,
|
|
1217
1217
|
value: u
|
|
1218
|
-
} =
|
|
1218
|
+
} = ze(t.name, t.rules, {
|
|
1219
1219
|
validateOnMount: t.validateOnMount,
|
|
1220
1220
|
type: "checkbox",
|
|
1221
1221
|
checkedValue: s,
|
|
@@ -1223,14 +1223,14 @@ const al = /* @__PURE__ */ Ce(el, [["render", ll]]), ol = { class: "relative asp
|
|
|
1223
1223
|
}), i = h(() => t.label || t.name), f = h(() => n.value ? "border-danger-lighter" : "border-foreground-4 "), y = h(() => t.description || n.value), k = h(() => `${t.name}-description`), v = h(() => {
|
|
1224
1224
|
const C = [];
|
|
1225
1225
|
return t.inlineDescription ? C.push("inline ml-2") : C.push("block"), n.value ? C.push("text-danger") : C.push("text-foreground-2"), C.join(" ");
|
|
1226
|
-
}), b = L(r("checkbox")), g = h(() => t.id || b.value),
|
|
1226
|
+
}), b = L(r("checkbox")), g = h(() => t.id || b.value), V = (C) => {
|
|
1227
1227
|
t.disabled || p(C);
|
|
1228
1228
|
};
|
|
1229
1229
|
return ne(() => {
|
|
1230
1230
|
const C = t.modelValue, I = u.value, w = Array.isArray(C) ? C.includes(t.value) : C === t.value, _ = Array.isArray(I) ? I.includes(t.value) : I === t.value;
|
|
1231
1231
|
w !== _ && p(C);
|
|
1232
|
-
}), (C, I) => (a(), d("div",
|
|
1233
|
-
c("div",
|
|
1232
|
+
}), (C, I) => (a(), d("div", pl, [
|
|
1233
|
+
c("div", ml, [
|
|
1234
1234
|
c("input", ue({
|
|
1235
1235
|
id: g.value,
|
|
1236
1236
|
checked: l(o),
|
|
@@ -1240,31 +1240,31 @@ const al = /* @__PURE__ */ Ce(el, [["render", ll]]), ol = { class: "relative asp
|
|
|
1240
1240
|
value: s.value,
|
|
1241
1241
|
type: "checkbox",
|
|
1242
1242
|
class: ["h-4 w-4 rounded text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2", f.value]
|
|
1243
|
-
}, C.$attrs, { onChange:
|
|
1243
|
+
}, C.$attrs, { onChange: V }), null, 16, hl)
|
|
1244
1244
|
]),
|
|
1245
|
-
c("div",
|
|
1245
|
+
c("div", vl, [
|
|
1246
1246
|
c("label", {
|
|
1247
1247
|
for: g.value,
|
|
1248
1248
|
class: x(["font-medium text-foreground", { "sr-only": e.hideLabel }])
|
|
1249
1249
|
}, [
|
|
1250
1250
|
c("span", null, B(i.value), 1),
|
|
1251
|
-
e.showRequired ? (a(), d("span",
|
|
1252
|
-
], 10,
|
|
1251
|
+
e.showRequired ? (a(), d("span", bl, "*")) : $("", !0)
|
|
1252
|
+
], 10, gl),
|
|
1253
1253
|
y.value ? (a(), d("p", {
|
|
1254
1254
|
key: 0,
|
|
1255
1255
|
id: k.value,
|
|
1256
1256
|
class: x(v.value)
|
|
1257
|
-
}, B(y.value), 11,
|
|
1257
|
+
}, B(y.value), 11, yl)) : $("", !0)
|
|
1258
1258
|
])
|
|
1259
1259
|
]));
|
|
1260
1260
|
}
|
|
1261
|
-
}),
|
|
1261
|
+
}), xl = { class: "flex h-6 items-center" }, kl = ["id", "checked", "aria-describedby", "name", "disabled", "value"], wl = ["for"], Cl = {
|
|
1262
1262
|
key: 0,
|
|
1263
1263
|
class: "text-sm"
|
|
1264
|
-
},
|
|
1264
|
+
}, $l = { class: "flex flex-col" }, Il = ["id"], Sl = {
|
|
1265
1265
|
key: 1,
|
|
1266
1266
|
class: "text-danger ml-1"
|
|
1267
|
-
},
|
|
1267
|
+
}, Bl = ["id"], Ci = /* @__PURE__ */ T({
|
|
1268
1268
|
inheritAttrs: !1,
|
|
1269
1269
|
__name: "Radio",
|
|
1270
1270
|
props: {
|
|
@@ -1365,7 +1365,7 @@ const al = /* @__PURE__ */ Ce(el, [["render", ll]]), ol = { class: "relative asp
|
|
|
1365
1365
|
errorMessage: n,
|
|
1366
1366
|
handleChange: p,
|
|
1367
1367
|
value: u
|
|
1368
|
-
} =
|
|
1368
|
+
} = ze(t.name, t.rules, {
|
|
1369
1369
|
validateOnMount: t.validateOnMount,
|
|
1370
1370
|
type: "radio",
|
|
1371
1371
|
checkedValue: s,
|
|
@@ -1373,7 +1373,7 @@ const al = /* @__PURE__ */ Ce(el, [["render", ll]]), ol = { class: "relative asp
|
|
|
1373
1373
|
}), i = h(() => t.label || t.name), f = h(() => n.value ? "border-danger-lighter" : "border-foreground-4 "), y = h(() => t.description || n.value), k = h(() => `${t.name}-description`), v = h(() => {
|
|
1374
1374
|
const C = ["text-xs"];
|
|
1375
1375
|
return n.value ? C.push("text-danger") : C.push("text-foreground-2"), C.join(" ");
|
|
1376
|
-
}), b = L(r("radio")), g = h(() => t.id || b.value),
|
|
1376
|
+
}), b = L(r("radio")), g = h(() => t.id || b.value), V = (C) => {
|
|
1377
1377
|
t.disabled || p(C);
|
|
1378
1378
|
};
|
|
1379
1379
|
return ne(() => {
|
|
@@ -1382,7 +1382,7 @@ const al = /* @__PURE__ */ Ce(el, [["render", ll]]), ol = { class: "relative asp
|
|
|
1382
1382
|
}), (C, I) => (a(), d("div", {
|
|
1383
1383
|
class: x(["relative flex gap-2 mb-2 last:mb-0", e.description && e.inlineDescription ? "items-start" : "items-center"])
|
|
1384
1384
|
}, [
|
|
1385
|
-
c("div",
|
|
1385
|
+
c("div", xl, [
|
|
1386
1386
|
c("input", ue({
|
|
1387
1387
|
id: g.value,
|
|
1388
1388
|
checked: l(o),
|
|
@@ -1392,7 +1392,7 @@ const al = /* @__PURE__ */ Ce(el, [["render", ll]]), ol = { class: "relative asp
|
|
|
1392
1392
|
value: s.value,
|
|
1393
1393
|
type: "radio",
|
|
1394
1394
|
class: ["h-4 w-4 rounded-full text-primary focus:ring-primary bg-foundation disabled:cursor-not-allowed disabled:bg-disabled disabled:text-disabled-2", f.value]
|
|
1395
|
-
}, C.$attrs, { onChange:
|
|
1395
|
+
}, C.$attrs, { onChange: V }), null, 16, kl)
|
|
1396
1396
|
]),
|
|
1397
1397
|
c("div", {
|
|
1398
1398
|
class: x(["text-xs sm:text-sm", e.inlineDescription ? "flex gap-2 items-center" : ""])
|
|
@@ -1401,40 +1401,40 @@ const al = /* @__PURE__ */ Ce(el, [["render", ll]]), ol = { class: "relative asp
|
|
|
1401
1401
|
for: g.value,
|
|
1402
1402
|
class: x(["text-foreground flex gap-2 items-center", { "sr-only": e.hideLabel }])
|
|
1403
1403
|
}, [
|
|
1404
|
-
e.icon ? (a(), d("div",
|
|
1404
|
+
e.icon ? (a(), d("div", Cl, [
|
|
1405
1405
|
(a(), j(X(e.icon), { class: "h-8 sm:h-10 w-8 sm:w-10" }))
|
|
1406
1406
|
])) : $("", !0),
|
|
1407
|
-
c("div",
|
|
1407
|
+
c("div", $l, [
|
|
1408
1408
|
c("span", null, B(i.value), 1),
|
|
1409
1409
|
y.value && !e.inlineDescription ? (a(), d("p", {
|
|
1410
1410
|
key: 0,
|
|
1411
1411
|
id: k.value,
|
|
1412
1412
|
class: x(v.value)
|
|
1413
|
-
}, B(y.value), 11,
|
|
1413
|
+
}, B(y.value), 11, Il)) : $("", !0)
|
|
1414
1414
|
]),
|
|
1415
|
-
e.showRequired ? (a(), d("span",
|
|
1416
|
-
], 10,
|
|
1415
|
+
e.showRequired ? (a(), d("span", Sl, "*")) : $("", !0)
|
|
1416
|
+
], 10, wl),
|
|
1417
1417
|
y.value && e.inlineDescription ? (a(), d("p", {
|
|
1418
1418
|
key: 0,
|
|
1419
1419
|
id: k.value,
|
|
1420
1420
|
class: x(v.value)
|
|
1421
|
-
}, B(y.value), 11,
|
|
1421
|
+
}, B(y.value), 11, Bl)) : $("", !0)
|
|
1422
1422
|
], 2)
|
|
1423
1423
|
], 2));
|
|
1424
1424
|
}
|
|
1425
|
-
}),
|
|
1425
|
+
}), _l = { class: "flex flex-col sm:flex-row items-stretch gap-3 w-full" }, Ll = ["disabled", "onClick"], Ol = {
|
|
1426
1426
|
key: 0,
|
|
1427
1427
|
class: "h-full w-full rounded-full bg-primary flex items-center justify-center"
|
|
1428
|
-
},
|
|
1428
|
+
}, jl = { class: "px-3 py-4 flex flex-col gap-3 h-full" }, Vl = { class: "flex flex-col items-start text-left" }, Ml = {
|
|
1429
1429
|
key: 0,
|
|
1430
1430
|
class: "text-xs text-foreground-2 py-1 select-none"
|
|
1431
|
-
},
|
|
1431
|
+
}, zl = {
|
|
1432
1432
|
key: 0,
|
|
1433
1433
|
class: "sm:hidden text-xs flex gap-0.5 mt-2 text-foreground"
|
|
1434
|
-
}, Al = { class: "hidden sm:flex flex-col sm:flex-row gap-3 w-full" },
|
|
1434
|
+
}, Al = { class: "hidden sm:flex flex-col sm:flex-row gap-3 w-full" }, Pl = {
|
|
1435
1435
|
key: 0,
|
|
1436
1436
|
class: "text-xs flex gap-0.5 mt-2 text-foreground select-none"
|
|
1437
|
-
},
|
|
1437
|
+
}, $i = /* @__PURE__ */ T({
|
|
1438
1438
|
__name: "RadioGroup",
|
|
1439
1439
|
props: /* @__PURE__ */ we({
|
|
1440
1440
|
options: null,
|
|
@@ -1445,11 +1445,11 @@ const al = /* @__PURE__ */ Ce(el, [["render", ll]]), ol = { class: "relative asp
|
|
|
1445
1445
|
}),
|
|
1446
1446
|
emits: ["update:modelValue"],
|
|
1447
1447
|
setup(e) {
|
|
1448
|
-
const t =
|
|
1448
|
+
const t = Ve(e, "modelValue"), r = (s) => {
|
|
1449
1449
|
t.value = s;
|
|
1450
1450
|
};
|
|
1451
1451
|
return (s, o) => (a(), d("div", null, [
|
|
1452
|
-
c("div",
|
|
1452
|
+
c("div", _l, [
|
|
1453
1453
|
(a(!0), d(q, null, K(e.options, (n) => (a(), d("div", {
|
|
1454
1454
|
key: n.value,
|
|
1455
1455
|
class: "w-full flex flex-col"
|
|
@@ -1465,21 +1465,21 @@ const al = /* @__PURE__ */ Ce(el, [["render", ll]]), ol = { class: "relative asp
|
|
|
1465
1465
|
c("div", {
|
|
1466
1466
|
class: x(["absolute top-4 right-3 h-6 w-6 rounded-full", [t.value === n.value ? "" : "border border-outline-3"]])
|
|
1467
1467
|
}, [
|
|
1468
|
-
t.value === n.value ? (a(), d("div",
|
|
1468
|
+
t.value === n.value ? (a(), d("div", Ol, [
|
|
1469
1469
|
O(l(ds), { class: "w-4 h-4 text-white" })
|
|
1470
1470
|
])) : $("", !0)
|
|
1471
1471
|
], 2),
|
|
1472
|
-
c("div",
|
|
1472
|
+
c("div", jl, [
|
|
1473
1473
|
(a(), j(X(n.icon), { class: "text-foreground h-8 w-8 -mt-1 stroke-[1px]" })),
|
|
1474
|
-
c("div",
|
|
1474
|
+
c("div", Vl, [
|
|
1475
1475
|
c("h4", {
|
|
1476
1476
|
class: x(["font-bold text-base", n.introduction ? "text-base" : "text-sm"])
|
|
1477
1477
|
}, B(n.title), 3),
|
|
1478
1478
|
n.introduction ? (a(), d("div", Ml, B(n.introduction), 1)) : $("", !0)
|
|
1479
1479
|
])
|
|
1480
1480
|
])
|
|
1481
|
-
], 10,
|
|
1482
|
-
n.help ? (a(), d("div",
|
|
1481
|
+
], 10, Ll),
|
|
1482
|
+
n.help ? (a(), d("div", zl, [
|
|
1483
1483
|
O(l(Xe), { class: "h-4 w-4" }),
|
|
1484
1484
|
U(" " + B(n.help), 1)
|
|
1485
1485
|
])) : $("", !0)
|
|
@@ -1490,7 +1490,7 @@ const al = /* @__PURE__ */ Ce(el, [["render", ll]]), ol = { class: "relative asp
|
|
|
1490
1490
|
key: n.value,
|
|
1491
1491
|
class: "w-full"
|
|
1492
1492
|
}, [
|
|
1493
|
-
n.help ? (a(), d("div",
|
|
1493
|
+
n.help ? (a(), d("div", Pl, [
|
|
1494
1494
|
O(l(Xe), { class: "h-4 w-4" }),
|
|
1495
1495
|
U(" " + B(n.help), 1)
|
|
1496
1496
|
])) : $("", !0)
|
|
@@ -1500,7 +1500,7 @@ const al = /* @__PURE__ */ Ce(el, [["render", ll]]), ol = { class: "relative asp
|
|
|
1500
1500
|
}
|
|
1501
1501
|
});
|
|
1502
1502
|
function rt(e) {
|
|
1503
|
-
const { props: t, inputEl: r, emit: s, options: o } = e, { value: n, errorMessage: p } =
|
|
1503
|
+
const { props: t, inputEl: r, emit: s, options: o } = e, { value: n, errorMessage: p } = ze(t.name, t.rules, {
|
|
1504
1504
|
validateOnMount: l(t.validateOnMount),
|
|
1505
1505
|
validateOnValueUpdate: l(t.validateOnValueUpdate),
|
|
1506
1506
|
initialValue: l(t.modelValue) || void 0
|
|
@@ -1522,17 +1522,17 @@ function rt(e) {
|
|
|
1522
1522
|
p.value ? m.push(
|
|
1523
1523
|
"focus:border-danger focus:ring-danger border-2 border-danger text-danger-darker"
|
|
1524
1524
|
) : m.push("border-0 focus:ring-2 focus:ring-outline-2");
|
|
1525
|
-
const
|
|
1526
|
-
return
|
|
1525
|
+
const M = l(t.color);
|
|
1526
|
+
return M === "foundation" ? m.push(
|
|
1527
1527
|
"bg-foundation !border border-outline-3 focus:border-outline-1 focus:!outline-0 focus:!ring-0"
|
|
1528
|
-
) :
|
|
1528
|
+
) : M === "transparent" ? m.push("bg-transparent") : m.push("bg-foundation-page"), m.join(" ");
|
|
1529
1529
|
}), y = L(Ue()), k = h(() => l(t.label) || l(t.name)), v = h(() => {
|
|
1530
1530
|
const m = p.value;
|
|
1531
1531
|
return !m || !l(t.useLabelInErrors) ? m : m.replace("Value", k.value);
|
|
1532
1532
|
}), b = h(
|
|
1533
1533
|
() => v.value && l(t.hideErrorMessage)
|
|
1534
|
-
), g = h(() => v.value || l(t.help)),
|
|
1535
|
-
() =>
|
|
1534
|
+
), g = h(() => v.value || l(t.help)), V = h(() => !!g.value), C = h(
|
|
1535
|
+
() => V.value ? `${l(t.name)}-${y.value}` : void 0
|
|
1536
1536
|
), I = h(() => {
|
|
1537
1537
|
const m = ["mt-2 text-xs"];
|
|
1538
1538
|
return m.push(p.value ? "text-danger" : "text-foreground-2"), m.join(" ");
|
|
@@ -1542,7 +1542,7 @@ function rt(e) {
|
|
|
1542
1542
|
}), _ = () => {
|
|
1543
1543
|
var m;
|
|
1544
1544
|
(m = r.value) == null || m.focus();
|
|
1545
|
-
},
|
|
1545
|
+
}, A = () => {
|
|
1546
1546
|
var m;
|
|
1547
1547
|
n.value = J(n.value) ? [] : "", (m = o == null ? void 0 : o.customClear) == null || m.call(o), s("change", { value: n.value }), s("clear");
|
|
1548
1548
|
};
|
|
@@ -1558,13 +1558,13 @@ function rt(e) {
|
|
|
1558
1558
|
helpTip: g,
|
|
1559
1559
|
hideHelpTip: b,
|
|
1560
1560
|
errorMessage: v,
|
|
1561
|
-
clear:
|
|
1561
|
+
clear: A,
|
|
1562
1562
|
focus: _,
|
|
1563
1563
|
labelClasses: u,
|
|
1564
1564
|
shouldShowClear: w
|
|
1565
1565
|
};
|
|
1566
1566
|
}
|
|
1567
|
-
function
|
|
1567
|
+
function Ii(e) {
|
|
1568
1568
|
const { debouncedBy: t = 1e3, isBasicHtmlInput: r = !1, submitOnEnter: s } = e || {}, o = e != null && e.debug ? Yt(e.debug) ? console.debug : e.debug : nt, n = (e == null ? void 0 : e.model) || L(""), p = L(n.value), u = (v) => {
|
|
1569
1569
|
if (he(v))
|
|
1570
1570
|
return v;
|
|
@@ -1602,7 +1602,7 @@ function $i(e) {
|
|
|
1602
1602
|
value: n
|
|
1603
1603
|
};
|
|
1604
1604
|
}
|
|
1605
|
-
const
|
|
1605
|
+
const Tl = ["for"], El = { class: "relative" }, Rl = ["id", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Fl = /* @__PURE__ */ c("span", { class: "text-xs sr-only" }, "Clear input", -1), Dl = ["id"], Si = /* @__PURE__ */ T({
|
|
1606
1606
|
__name: "TextArea",
|
|
1607
1607
|
props: {
|
|
1608
1608
|
name: null,
|
|
@@ -1635,7 +1635,7 @@ const Pl = ["for"], Tl = { class: "relative" }, El = ["id", "name", "placeholder
|
|
|
1635
1635
|
errorMessage: v,
|
|
1636
1636
|
labelClasses: b,
|
|
1637
1637
|
clear: g,
|
|
1638
|
-
focus:
|
|
1638
|
+
focus: V,
|
|
1639
1639
|
shouldShowClear: C
|
|
1640
1640
|
} = rt({
|
|
1641
1641
|
props: ie(o),
|
|
@@ -1645,7 +1645,7 @@ const Pl = ["for"], Tl = { class: "relative" }, El = ["id", "name", "placeholder
|
|
|
1645
1645
|
const w = ["pl-2"];
|
|
1646
1646
|
return C.value && v.value ? w.push("pr-12") : (C.value || v.value) && w.push("pr-8"), w.join(" ");
|
|
1647
1647
|
});
|
|
1648
|
-
return t({ focus:
|
|
1648
|
+
return t({ focus: V }), (w, _) => (a(), d("div", {
|
|
1649
1649
|
class: x([e.fullWidth ? "w-full" : ""])
|
|
1650
1650
|
}, [
|
|
1651
1651
|
c("label", {
|
|
@@ -1653,13 +1653,13 @@ const Pl = ["for"], Tl = { class: "relative" }, El = ["id", "name", "placeholder
|
|
|
1653
1653
|
class: x(l(b))
|
|
1654
1654
|
}, [
|
|
1655
1655
|
c("span", null, B(l(u)), 1)
|
|
1656
|
-
], 10,
|
|
1657
|
-
c("div",
|
|
1656
|
+
], 10, Tl),
|
|
1657
|
+
c("div", El, [
|
|
1658
1658
|
se(c("textarea", ue({
|
|
1659
1659
|
id: e.name,
|
|
1660
1660
|
ref_key: "inputElement",
|
|
1661
1661
|
ref: n,
|
|
1662
|
-
"onUpdate:modelValue": _[0] || (_[0] = (
|
|
1662
|
+
"onUpdate:modelValue": _[0] || (_[0] = (A) => Re(i) ? i.value = A : null),
|
|
1663
1663
|
name: e.name,
|
|
1664
1664
|
class: [
|
|
1665
1665
|
l(p),
|
|
@@ -1672,9 +1672,9 @@ const Pl = ["for"], Tl = { class: "relative" }, El = ["id", "name", "placeholder
|
|
|
1672
1672
|
"aria-invalid": l(v) ? "true" : "false",
|
|
1673
1673
|
"aria-describedby": l(f)
|
|
1674
1674
|
}, w.$attrs, {
|
|
1675
|
-
onChange: _[1] || (_[1] = (
|
|
1676
|
-
onInput: _[2] || (_[2] = (
|
|
1677
|
-
}), null, 16,
|
|
1675
|
+
onChange: _[1] || (_[1] = (A) => w.$emit("change", { event: A, value: l(i) })),
|
|
1676
|
+
onInput: _[2] || (_[2] = (A) => w.$emit("input", { event: A, value: l(i) }))
|
|
1677
|
+
}), null, 16, Rl), [
|
|
1678
1678
|
[tt, l(i)]
|
|
1679
1679
|
]),
|
|
1680
1680
|
l(C) ? (a(), d("a", {
|
|
@@ -1682,11 +1682,11 @@ const Pl = ["for"], Tl = { class: "relative" }, El = ["id", "name", "placeholder
|
|
|
1682
1682
|
title: "Clear input",
|
|
1683
1683
|
class: "absolute top-2 right-0 flex items-center pr-2 cursor-pointer",
|
|
1684
1684
|
onClick: _[3] || (_[3] = //@ts-ignore
|
|
1685
|
-
(...
|
|
1685
|
+
(...A) => l(g) && l(g)(...A)),
|
|
1686
1686
|
onKeydown: _[4] || (_[4] = //@ts-ignore
|
|
1687
|
-
(...
|
|
1687
|
+
(...A) => l(g) && l(g)(...A))
|
|
1688
1688
|
}, [
|
|
1689
|
-
|
|
1689
|
+
Fl,
|
|
1690
1690
|
O(l(ve), {
|
|
1691
1691
|
class: "h-5 w-5 text-foreground",
|
|
1692
1692
|
"aria-hidden": "true"
|
|
@@ -1699,7 +1699,7 @@ const Pl = ["for"], Tl = { class: "relative" }, El = ["id", "name", "placeholder
|
|
|
1699
1699
|
l(C) ? "pr-8" : "pr-2"
|
|
1700
1700
|
])
|
|
1701
1701
|
}, [
|
|
1702
|
-
O(l(
|
|
1702
|
+
O(l(Me), {
|
|
1703
1703
|
class: "h-4 w-4 text-danger",
|
|
1704
1704
|
"aria-hidden": "true"
|
|
1705
1705
|
})
|
|
@@ -1713,16 +1713,16 @@ const Pl = ["for"], Tl = { class: "relative" }, El = ["id", "name", "placeholder
|
|
|
1713
1713
|
key: 0,
|
|
1714
1714
|
id: l(f),
|
|
1715
1715
|
class: x(l(y))
|
|
1716
|
-
}, B(l(k)), 11,
|
|
1716
|
+
}, B(l(k)), 11, Dl)) : $("", !0)
|
|
1717
1717
|
], 2));
|
|
1718
1718
|
}
|
|
1719
|
-
}),
|
|
1719
|
+
}), Ul = ["for"], Wl = {
|
|
1720
1720
|
key: 0,
|
|
1721
1721
|
class: "text-danger text-xs opacity-80"
|
|
1722
|
-
},
|
|
1722
|
+
}, ql = { class: "relative" }, Hl = {
|
|
1723
1723
|
key: 0,
|
|
1724
1724
|
class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2"
|
|
1725
|
-
},
|
|
1725
|
+
}, Gl = ["id", "type", "name", "placeholder", "disabled", "aria-invalid", "aria-describedby"], Kl = /* @__PURE__ */ c("span", { class: "text-xs sr-only" }, "Clear input", -1), Nl = ["id"], Xl = /* @__PURE__ */ T({
|
|
1726
1726
|
inheritAttrs: !1,
|
|
1727
1727
|
__name: "TextInput",
|
|
1728
1728
|
props: {
|
|
@@ -1868,7 +1868,7 @@ const Pl = ["for"], Tl = { class: "relative" }, El = ["id", "name", "placeholder
|
|
|
1868
1868
|
helpTip: v,
|
|
1869
1869
|
hideHelpTip: b,
|
|
1870
1870
|
errorMessage: g,
|
|
1871
|
-
clear:
|
|
1871
|
+
clear: V,
|
|
1872
1872
|
focus: C,
|
|
1873
1873
|
labelClasses: I,
|
|
1874
1874
|
shouldShowClear: w
|
|
@@ -1879,12 +1879,12 @@ const Pl = ["for"], Tl = { class: "relative" }, El = ["id", "name", "placeholder
|
|
|
1879
1879
|
}), _ = h(() => {
|
|
1880
1880
|
const P = ["h-5 w-5"];
|
|
1881
1881
|
return g.value ? P.push("text-danger") : P.push("text-foreground-2"), P.join(" ");
|
|
1882
|
-
}),
|
|
1882
|
+
}), A = h(
|
|
1883
1883
|
() => ["email", "password"].includes(s.type) || s.customIcon
|
|
1884
1884
|
), m = h(() => {
|
|
1885
1885
|
const P = [];
|
|
1886
|
-
return
|
|
1887
|
-
}),
|
|
1886
|
+
return A.value ? P.push("pl-8") : P.push("pl-2"), n["input-right"] || (g.value || w.value) && (g.value && w.value ? P.push("pr-12") : P.push("pr-8")), P.join(" ");
|
|
1887
|
+
}), M = h(() => {
|
|
1888
1888
|
switch (s.size) {
|
|
1889
1889
|
case "sm":
|
|
1890
1890
|
return "h-6 text-sm";
|
|
@@ -1905,10 +1905,10 @@ const Pl = ["for"], Tl = { class: "relative" }, El = ["id", "name", "placeholder
|
|
|
1905
1905
|
class: x(l(I))
|
|
1906
1906
|
}, [
|
|
1907
1907
|
c("span", null, B(l(i)), 1),
|
|
1908
|
-
e.showRequired ? (a(), d("div",
|
|
1909
|
-
], 10,
|
|
1910
|
-
c("div",
|
|
1911
|
-
|
|
1908
|
+
e.showRequired ? (a(), d("div", Wl, "*")) : $("", !0)
|
|
1909
|
+
], 10, Ul),
|
|
1910
|
+
c("div", ql, [
|
|
1911
|
+
A.value ? (a(), d("div", Hl, [
|
|
1912
1912
|
e.customIcon ? (a(), j(X(e.customIcon), {
|
|
1913
1913
|
key: 0,
|
|
1914
1914
|
class: x(_.value),
|
|
@@ -1930,7 +1930,7 @@ const Pl = ["for"], Tl = { class: "relative" }, El = ["id", "name", "placeholder
|
|
|
1930
1930
|
"onUpdate:modelValue": E[0] || (E[0] = (N) => Re(f) ? f.value = N : null),
|
|
1931
1931
|
type: e.type,
|
|
1932
1932
|
name: e.name,
|
|
1933
|
-
class: [l(u), m.value,
|
|
1933
|
+
class: [l(u), m.value, M.value, e.inputClasses || ""],
|
|
1934
1934
|
placeholder: e.placeholder,
|
|
1935
1935
|
disabled: e.disabled,
|
|
1936
1936
|
"aria-invalid": l(g) ? "true" : "false",
|
|
@@ -1941,7 +1941,7 @@ const Pl = ["for"], Tl = { class: "relative" }, El = ["id", "name", "placeholder
|
|
|
1941
1941
|
onInput: E[2] || (E[2] = (N) => P.$emit("input", { event: N, value: l(f) })),
|
|
1942
1942
|
onFocus: E[3] || (E[3] = (N) => P.$emit("focus")),
|
|
1943
1943
|
onBlur: E[4] || (E[4] = (N) => P.$emit("blur"))
|
|
1944
|
-
}), null, 16,
|
|
1944
|
+
}), null, 16, Gl), [
|
|
1945
1945
|
[qt, l(f)]
|
|
1946
1946
|
]),
|
|
1947
1947
|
R(P.$slots, "input-right", {}, () => [
|
|
@@ -1950,11 +1950,11 @@ const Pl = ["for"], Tl = { class: "relative" }, El = ["id", "name", "placeholder
|
|
|
1950
1950
|
title: "Clear input",
|
|
1951
1951
|
class: "absolute inset-y-0 right-0 flex items-center pr-2 cursor-pointer",
|
|
1952
1952
|
onClick: E[5] || (E[5] = //@ts-ignore
|
|
1953
|
-
(...N) => l(
|
|
1953
|
+
(...N) => l(V) && l(V)(...N)),
|
|
1954
1954
|
onKeydown: E[6] || (E[6] = //@ts-ignore
|
|
1955
|
-
(...N) => l(
|
|
1955
|
+
(...N) => l(V) && l(V)(...N))
|
|
1956
1956
|
}, [
|
|
1957
|
-
|
|
1957
|
+
Kl,
|
|
1958
1958
|
O(l(ve), {
|
|
1959
1959
|
class: "h-5 w-5 text-foreground",
|
|
1960
1960
|
"aria-hidden": "true"
|
|
@@ -1967,7 +1967,7 @@ const Pl = ["for"], Tl = { class: "relative" }, El = ["id", "name", "placeholder
|
|
|
1967
1967
|
l(w) ? "pr-8" : "pr-2"
|
|
1968
1968
|
])
|
|
1969
1969
|
}, [
|
|
1970
|
-
O(l(
|
|
1970
|
+
O(l(Me), {
|
|
1971
1971
|
class: "h-4 w-4 text-danger",
|
|
1972
1972
|
"aria-hidden": "true"
|
|
1973
1973
|
})
|
|
@@ -1982,29 +1982,29 @@ const Pl = ["for"], Tl = { class: "relative" }, El = ["id", "name", "placeholder
|
|
|
1982
1982
|
key: 0,
|
|
1983
1983
|
id: l(y),
|
|
1984
1984
|
class: x(l(k))
|
|
1985
|
-
}, B(l(v)), 11,
|
|
1985
|
+
}, B(l(v)), 11, Nl)) : $("", !0)
|
|
1986
1986
|
], 2));
|
|
1987
1987
|
}
|
|
1988
|
-
}),
|
|
1988
|
+
}), Vt = /^https?:\/\//, it = /^[\w-_.+]+@[\w-_.+]+$/, Zl = (e) => (e || "").match(it) ? !0 : "Value should be a valid e-mail address", Ql = (e) => (e || "").split(",").map((s) => s.trim()).every((s) => s.match(it)) || "Value should be one or multiple comma-delimited e-mail addresses", Jl = (e) => (he(e) && (e = e.trim()), e ? !0 : "Value is required"), Yl = (e, t) => (r, s) => r === s.form[e] ? !0 : `Value must be the same as in field '${t || e}'`, ea = (e) => (t) => {
|
|
1989
1989
|
const { minLength: r, maxLength: s } = e;
|
|
1990
1990
|
return t = Ss(t) ? "" : t, he(t) ? !me(r) && t.length < r ? `Value needs to be at least ${r} characters long` : !me(s) && t.length > s ? `Value needs to be no more than ${s} characters long` : !0 : "Value should be a text string";
|
|
1991
|
-
},
|
|
1991
|
+
}, ta = (e) => (t) => {
|
|
1992
1992
|
const { match: r, message: s } = e;
|
|
1993
1993
|
return he(t) ? r ? he(r) ? t.includes(r) ? !0 : s : r.test(t) ? !0 : s : !0 : "Value should be a text string";
|
|
1994
|
-
},
|
|
1994
|
+
}, sa = (e) => Vt.test(e) ? !0 : "Value is not a valid URL", na = (e) => Array.isArray(e) && e.length > 0 ? !0 : "Value should have at least a single item selected", Bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1995
1995
|
__proto__: null,
|
|
1996
1996
|
VALID_EMAIL: it,
|
|
1997
|
-
VALID_HTTP_URL:
|
|
1998
|
-
isEmail:
|
|
1999
|
-
isItemSelected:
|
|
2000
|
-
isOneOrMultipleEmails:
|
|
2001
|
-
isRequired:
|
|
2002
|
-
isSameAs:
|
|
2003
|
-
isStringOfLength:
|
|
2004
|
-
isUrl:
|
|
2005
|
-
stringContains:
|
|
1997
|
+
VALID_HTTP_URL: Vt,
|
|
1998
|
+
isEmail: Zl,
|
|
1999
|
+
isItemSelected: na,
|
|
2000
|
+
isOneOrMultipleEmails: Ql,
|
|
2001
|
+
isRequired: Jl,
|
|
2002
|
+
isSameAs: Yl,
|
|
2003
|
+
isStringOfLength: ea,
|
|
2004
|
+
isUrl: sa,
|
|
2005
|
+
stringContains: ta
|
|
2006
2006
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2007
|
-
function
|
|
2007
|
+
function Mt(e) {
|
|
2008
2008
|
const {
|
|
2009
2009
|
skipCalculation: t,
|
|
2010
2010
|
elementToWatchForChanges: r,
|
|
@@ -2030,12 +2030,12 @@ function Vt(e) {
|
|
|
2030
2030
|
hiddenItemCount: p
|
|
2031
2031
|
};
|
|
2032
2032
|
}
|
|
2033
|
-
function
|
|
2033
|
+
function zt(e) {
|
|
2034
2034
|
const { props: t, emit: r, dynamicVisibility: s } = e;
|
|
2035
2035
|
let o;
|
|
2036
2036
|
if (s) {
|
|
2037
2037
|
const { elementToWatchForChanges: f, itemContainer: y } = s;
|
|
2038
|
-
o =
|
|
2038
|
+
o = Mt({
|
|
2039
2039
|
skipCalculation: h(() => {
|
|
2040
2040
|
var v;
|
|
2041
2041
|
return !((v = t.multiple) != null && v.value);
|
|
@@ -2071,9 +2071,9 @@ function At(e) {
|
|
|
2071
2071
|
firstItem: (f) => p(f) ? f[0] : f
|
|
2072
2072
|
};
|
|
2073
2073
|
}
|
|
2074
|
-
const
|
|
2075
|
-
|
|
2076
|
-
],
|
|
2074
|
+
const la = (e) => (Ht("data-v-985badae"), e = e(), Gt(), e), aa = /* @__PURE__ */ la(() => /* @__PURE__ */ c("div", { class: "swoosher relative top-0 bg-blue-500/50" }, null, -1)), oa = [
|
|
2075
|
+
aa
|
|
2076
|
+
], ra = /* @__PURE__ */ T({
|
|
2077
2077
|
__name: "Bar",
|
|
2078
2078
|
props: {
|
|
2079
2079
|
loading: { type: Boolean },
|
|
@@ -2086,24 +2086,24 @@ const na = (e) => (Ht("data-v-985badae"), e = e(), Gt(), e), la = /* @__PURE__ *
|
|
|
2086
2086
|
"relative w-full h-1 bg-blue-500/30 text-xs text-foreground-on-primary overflow-hidden rounded-xl",
|
|
2087
2087
|
s.value ? "opacity-100" : "opacity-0"
|
|
2088
2088
|
])
|
|
2089
|
-
},
|
|
2089
|
+
}, oa, 2));
|
|
2090
2090
|
}
|
|
2091
2091
|
});
|
|
2092
|
-
const ut = /* @__PURE__ */ Ce(
|
|
2092
|
+
const ut = /* @__PURE__ */ Ce(ra, [["__scopeId", "data-v-985badae"]]), ia = {
|
|
2093
2093
|
key: 0,
|
|
2094
2094
|
class: "text-danger text-xs opacity-80"
|
|
2095
|
-
},
|
|
2095
|
+
}, ua = { class: "flex items-center justify-between w-full" }, ca = { class: "pointer-events-none shrink-0 ml-1 flex items-center space-x-2" }, da = {
|
|
2096
2096
|
key: 1,
|
|
2097
2097
|
class: "text-4xl text-danger opacity-50 h-4 w-4 leading-6"
|
|
2098
|
-
},
|
|
2098
|
+
}, fa = ["disabled"], pa = {
|
|
2099
2099
|
key: 0,
|
|
2100
2100
|
class: "flex flex-col mx-1 mb-1"
|
|
2101
|
-
},
|
|
2101
|
+
}, ma = /* @__PURE__ */ c("span", { class: "sr-only label text-foreground" }, "Search", -1), ha = { class: "relative" }, va = { class: "pointer-events-none absolute inset-y-0 left-0 flex items-center pl-2" }, ga = ["placeholder"], ba = {
|
|
2102
2102
|
key: 0,
|
|
2103
2103
|
class: "px-1"
|
|
2104
|
-
},
|
|
2104
|
+
}, ya = { key: 1 }, xa = { class: "text-foreground-2 text-center" }, ka = {
|
|
2105
2105
|
class: /* @__PURE__ */ x(["block truncate"])
|
|
2106
|
-
},
|
|
2106
|
+
}, wa = ["id"], At = /* @__PURE__ */ T({
|
|
2107
2107
|
__name: "Base",
|
|
2108
2108
|
props: {
|
|
2109
2109
|
multiple: {
|
|
@@ -2281,19 +2281,19 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2281
2281
|
},
|
|
2282
2282
|
emits: ["update:modelValue"],
|
|
2283
2283
|
setup(e, { expose: t, emit: r }) {
|
|
2284
|
-
const s = (S) => Ke(S), o = r, n = e, { value: p, errorMessage: u } =
|
|
2284
|
+
const s = (S) => Ke(S), o = r, n = e, { value: p, errorMessage: u } = ze(n.name, n.rules, {
|
|
2285
2285
|
validateOnMount: n.validateOnMount,
|
|
2286
2286
|
validateOnValueUpdate: n.validateOnValueUpdate,
|
|
2287
2287
|
// eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion
|
|
2288
2288
|
initialValue: n.modelValue
|
|
2289
|
-
}), i = _t(), f = L(null), y = L(null), k = L(null), v = L(""), b = L([]), g = L(!1),
|
|
2289
|
+
}), i = _t(), f = L(null), y = L(null), k = L(null), v = L(""), b = L([]), g = L(!1), V = L(1), C = L(Ue()), I = L(!1), w = js(
|
|
2290
2290
|
h(() => {
|
|
2291
2291
|
var S;
|
|
2292
2292
|
return (S = k.value) == null ? void 0 : S.el;
|
|
2293
2293
|
}),
|
|
2294
2294
|
{ windowResize: !0, windowScroll: !0, immediate: !0 }
|
|
2295
2295
|
);
|
|
2296
|
-
|
|
2296
|
+
Vs(
|
|
2297
2297
|
h(() => {
|
|
2298
2298
|
var S;
|
|
2299
2299
|
return (S = y.value) == null ? void 0 : S.el;
|
|
@@ -2302,11 +2302,11 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2302
2302
|
S && n.mountMenuOnBody && w.update();
|
|
2303
2303
|
}
|
|
2304
2304
|
);
|
|
2305
|
-
const _ = h(() => l(n.label) || l(n.name)),
|
|
2305
|
+
const _ = h(() => l(n.label) || l(n.name)), A = h(() => {
|
|
2306
2306
|
const S = u.value;
|
|
2307
2307
|
return !S || !l(n.useLabelInErrors) ? S : S.replace("Value", _.value);
|
|
2308
|
-
}), m = h(() =>
|
|
2309
|
-
() =>
|
|
2308
|
+
}), m = h(() => A.value || l(n.help)), M = h(() => !!m.value), P = h(
|
|
2309
|
+
() => M.value ? `${l(n.name)}-${C.value}` : void 0
|
|
2310
2310
|
), E = h(
|
|
2311
2311
|
() => u.value ? "text-danger" : "text-foreground-2"
|
|
2312
2312
|
), N = h(
|
|
@@ -2314,7 +2314,7 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2314
2314
|
), fe = h(() => {
|
|
2315
2315
|
const S = ["relative flex group"];
|
|
2316
2316
|
return u.value ? (S.push("hover:shadow rounded-md"), S.push("text-danger-darker focus:border-danger focus:ring-danger"), n.buttonStyle !== "simple" && S.push("outline outline-2 outline-danger")) : n.buttonStyle !== "simple" && (S.push("rounded-md border"), I.value ? S.push("border-outline-1") : S.push("border-outline-3")), n.fixedHeight && S.push("h-8"), S.join(" ");
|
|
2317
|
-
}),
|
|
2317
|
+
}), Ae = h(() => {
|
|
2318
2318
|
const S = [];
|
|
2319
2319
|
return n.buttonStyle !== "simple" && S.push(
|
|
2320
2320
|
pe.value ? "bg-foundation-disabled text-foreground-disabled" : ""
|
|
@@ -2325,7 +2325,7 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2325
2325
|
"flex items-center justify-center text-center shrink-0",
|
|
2326
2326
|
"rounded-r-md overflow-hidden transition-all",
|
|
2327
2327
|
"text-foreground",
|
|
2328
|
-
$e.value ? `w-6 ${
|
|
2328
|
+
$e.value ? `w-6 ${Ae.value}` : "w-0"
|
|
2329
2329
|
];
|
|
2330
2330
|
return pe.value || (S.push(
|
|
2331
2331
|
"hover:bg-primary hover:text-foreground-on-primary dark:text-foreground-on-primary"
|
|
@@ -2335,7 +2335,7 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2335
2335
|
"relative z-[2]",
|
|
2336
2336
|
"normal rounded-md cursor-pointer transition truncate flex-1",
|
|
2337
2337
|
"flex items-center",
|
|
2338
|
-
|
|
2338
|
+
Ae.value
|
|
2339
2339
|
];
|
|
2340
2340
|
return n.buttonStyle !== "simple" && (S.push("p-2"), pe.value || (n.buttonStyle === "tinted" ? S.push("bg-foundation-page text-foreground") : S.push("bg-foundation text-foreground"))), N.value && $e.value && S.push("rounded-r-none"), S.join(" ");
|
|
2341
2341
|
}), ye = h(
|
|
@@ -2362,7 +2362,7 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2362
2362
|
const H = p.value;
|
|
2363
2363
|
G = n.allowUnset && H && S && Q(H) === Q(S) ? void 0 : S;
|
|
2364
2364
|
}
|
|
2365
|
-
n.fullyControlValue ? o("update:modelValue", G) : p.value = G,
|
|
2365
|
+
n.fullyControlValue ? o("update:modelValue", G) : p.value = G, V.value += 1;
|
|
2366
2366
|
}
|
|
2367
2367
|
}), $e = h(() => n.multiple && J(Z.value) ? Z.value.length !== 0 : !!Z.value), He = () => {
|
|
2368
2368
|
n.multiple ? Z.value = [] : Z.value = void 0;
|
|
@@ -2413,8 +2413,8 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2413
2413
|
}), ne(() => {
|
|
2414
2414
|
ae.value && !n.items.length && Y();
|
|
2415
2415
|
}), t({ triggerSearch: Y }), (S, G) => (a(), d("div", null, [
|
|
2416
|
-
(a(), j(l(
|
|
2417
|
-
key:
|
|
2416
|
+
(a(), j(l(Rs), {
|
|
2417
|
+
key: V.value,
|
|
2418
2418
|
modelValue: Z.value,
|
|
2419
2419
|
"onUpdate:modelValue": G[4] || (G[4] = (H) => Z.value = H),
|
|
2420
2420
|
name: e.name,
|
|
@@ -2423,29 +2423,29 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2423
2423
|
disabled: pe.value,
|
|
2424
2424
|
as: "div"
|
|
2425
2425
|
}, {
|
|
2426
|
-
default:
|
|
2427
|
-
O(l(
|
|
2426
|
+
default: z(() => [
|
|
2427
|
+
O(l(Fs), {
|
|
2428
2428
|
id: e.labelId,
|
|
2429
2429
|
class: x(["flex label text-foreground mb-1.5", { "sr-only": !e.showLabel }]),
|
|
2430
2430
|
for: e.buttonId
|
|
2431
2431
|
}, {
|
|
2432
|
-
default:
|
|
2432
|
+
default: z(() => [
|
|
2433
2433
|
U(B(e.label) + " ", 1),
|
|
2434
|
-
e.showRequired ? (a(), d("div",
|
|
2434
|
+
e.showRequired ? (a(), d("div", ia, "*")) : $("", !0)
|
|
2435
2435
|
]),
|
|
2436
2436
|
_: 1
|
|
2437
2437
|
}, 8, ["id", "class", "for"]),
|
|
2438
2438
|
c("div", {
|
|
2439
2439
|
class: x(fe.value)
|
|
2440
2440
|
}, [
|
|
2441
|
-
O(l(
|
|
2441
|
+
O(l(Ds), {
|
|
2442
2442
|
id: e.buttonId,
|
|
2443
2443
|
ref_key: "listboxButton",
|
|
2444
2444
|
ref: k,
|
|
2445
2445
|
class: x(qe.value)
|
|
2446
2446
|
}, {
|
|
2447
|
-
default:
|
|
2448
|
-
c("div",
|
|
2447
|
+
default: z(({ open: H }) => [
|
|
2448
|
+
c("div", ua, [
|
|
2449
2449
|
c("div", {
|
|
2450
2450
|
class: x(["block truncate grow text-left text-xs sm:text-sm", [$e.value ? "text-foreground" : "text-foreground-2"]])
|
|
2451
2451
|
}, [
|
|
@@ -2458,12 +2458,12 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2458
2458
|
U(B(D(Z.value)), 1)
|
|
2459
2459
|
])
|
|
2460
2460
|
], 2),
|
|
2461
|
-
c("div",
|
|
2462
|
-
|
|
2461
|
+
c("div", ca, [
|
|
2462
|
+
A.value ? (a(), j(l(Me), {
|
|
2463
2463
|
key: 0,
|
|
2464
2464
|
class: "h-4 w-4 text-danger",
|
|
2465
2465
|
"aria-hidden": "true"
|
|
2466
|
-
})) : !e.showLabel && e.showRequired ? (a(), d("div",
|
|
2466
|
+
})) : !e.showLabel && e.showRequired ? (a(), d("div", da, " * ")) : $("", !0),
|
|
2467
2467
|
H ? (a(), j(l(xs), {
|
|
2468
2468
|
key: 2,
|
|
2469
2469
|
class: "h-4 w-4 text-foreground",
|
|
@@ -2486,19 +2486,19 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2486
2486
|
onClick: G[0] || (G[0] = (H) => He())
|
|
2487
2487
|
}, [
|
|
2488
2488
|
O(l(ve), { class: "w-3 h-3" })
|
|
2489
|
-
], 10,
|
|
2489
|
+
], 10, fa)) : $("", !0),
|
|
2490
2490
|
l(i) ? (a(), j(et, {
|
|
2491
2491
|
key: 1,
|
|
2492
2492
|
"leave-active-class": "transition ease-in duration-100",
|
|
2493
2493
|
"leave-from-class": "opacity-100",
|
|
2494
2494
|
"leave-to-class": "opacity-0"
|
|
2495
2495
|
}, {
|
|
2496
|
-
default:
|
|
2496
|
+
default: z(() => [
|
|
2497
2497
|
(a(), j(Kt, {
|
|
2498
2498
|
to: "body",
|
|
2499
2499
|
disabled: !e.mountMenuOnBody
|
|
2500
2500
|
}, [
|
|
2501
|
-
O(l(
|
|
2501
|
+
O(l(Us), {
|
|
2502
2502
|
ref_key: "menuEl",
|
|
2503
2503
|
ref: y,
|
|
2504
2504
|
class: x(F.value),
|
|
@@ -2508,11 +2508,11 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2508
2508
|
return (le = f.value) == null ? void 0 : le.focus();
|
|
2509
2509
|
})
|
|
2510
2510
|
}, {
|
|
2511
|
-
default:
|
|
2512
|
-
ye.value ? (a(), d("label",
|
|
2513
|
-
|
|
2514
|
-
c("div",
|
|
2515
|
-
c("div",
|
|
2511
|
+
default: z(() => [
|
|
2512
|
+
ye.value ? (a(), d("label", pa, [
|
|
2513
|
+
ma,
|
|
2514
|
+
c("div", ha, [
|
|
2515
|
+
c("div", va, [
|
|
2516
2516
|
O(l(ws), { class: "h-4 w-4 text-foreground-2" })
|
|
2517
2517
|
]),
|
|
2518
2518
|
se(c("input", {
|
|
@@ -2524,7 +2524,7 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2524
2524
|
placeholder: e.searchPlaceholder,
|
|
2525
2525
|
onKeydown: G[2] || (G[2] = be(() => {
|
|
2526
2526
|
}, ["stop"]))
|
|
2527
|
-
}, null, 40,
|
|
2527
|
+
}, null, 40, ga), [
|
|
2528
2528
|
[tt, v.value]
|
|
2529
2529
|
])
|
|
2530
2530
|
])
|
|
@@ -2532,10 +2532,10 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2532
2532
|
c("div", {
|
|
2533
2533
|
class: x(["overflow-auto simple-scrollbar", [ye.value ? "max-h-52" : "max-h-40"]])
|
|
2534
2534
|
}, [
|
|
2535
|
-
ae.value && g.value ? (a(), d("div",
|
|
2535
|
+
ae.value && g.value ? (a(), d("div", ba, [
|
|
2536
2536
|
O(ut, { loading: !0 })
|
|
2537
|
-
])) : ae.value && !b.value.length ? (a(), d("div",
|
|
2538
|
-
c("div",
|
|
2537
|
+
])) : ae.value && !b.value.length ? (a(), d("div", ya, [
|
|
2538
|
+
c("div", xa, [
|
|
2539
2539
|
R(S.$slots, "nothing-found", {}, () => [
|
|
2540
2540
|
U("Nothing found")
|
|
2541
2541
|
])
|
|
@@ -2543,12 +2543,12 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2543
2543
|
])) : $("", !0),
|
|
2544
2544
|
!ae.value || !g.value ? (a(!0), d(q, { key: 2 }, K(Ie.value, (H) => {
|
|
2545
2545
|
var le;
|
|
2546
|
-
return a(), j(l(
|
|
2546
|
+
return a(), j(l(Ws), {
|
|
2547
2547
|
key: Q(H),
|
|
2548
2548
|
value: H,
|
|
2549
2549
|
disabled: ((le = e.disabledItemPredicate) == null ? void 0 : le.call(e, H)) || !1
|
|
2550
2550
|
}, {
|
|
2551
|
-
default:
|
|
2551
|
+
default: z(({
|
|
2552
2552
|
active: oe,
|
|
2553
2553
|
selected: dt
|
|
2554
2554
|
}) => {
|
|
@@ -2562,7 +2562,7 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2562
2562
|
})
|
|
2563
2563
|
)
|
|
2564
2564
|
}, [
|
|
2565
|
-
c("span",
|
|
2565
|
+
c("span", ka, [
|
|
2566
2566
|
R(S.$slots, "option", {
|
|
2567
2567
|
item: H,
|
|
2568
2568
|
active: oe,
|
|
@@ -2606,10 +2606,10 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2606
2606
|
key: 0,
|
|
2607
2607
|
id: P.value,
|
|
2608
2608
|
class: x(["mt-2 text-xs", E.value])
|
|
2609
|
-
}, B(m.value), 11,
|
|
2609
|
+
}, B(m.value), 11, wa)) : $("", !0)
|
|
2610
2610
|
]));
|
|
2611
2611
|
}
|
|
2612
|
-
}),
|
|
2612
|
+
}), Ca = /* @__PURE__ */ T({
|
|
2613
2613
|
__name: "SourceAppBadge",
|
|
2614
2614
|
props: {
|
|
2615
2615
|
sourceApp: null
|
|
@@ -2620,19 +2620,19 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2620
2620
|
rounded: "",
|
|
2621
2621
|
style: ee({ backgroundColor: e.sourceApp.bgColor })
|
|
2622
2622
|
}, {
|
|
2623
|
-
default:
|
|
2623
|
+
default: z(() => [
|
|
2624
2624
|
U(B(e.sourceApp.short), 1)
|
|
2625
2625
|
]),
|
|
2626
2626
|
_: 1
|
|
2627
2627
|
}, 8, ["style"]));
|
|
2628
2628
|
}
|
|
2629
|
-
}),
|
|
2629
|
+
}), $a = {
|
|
2630
2630
|
key: 0,
|
|
2631
2631
|
class: "text-foreground-2 normal"
|
|
2632
|
-
},
|
|
2632
|
+
}, Ia = {
|
|
2633
2633
|
key: 1,
|
|
2634
2634
|
class: "flex items-center"
|
|
2635
|
-
},
|
|
2635
|
+
}, Sa = { class: "truncate" }, Ba = { class: "flex items-center" }, _a = { class: "truncate" }, _i = /* @__PURE__ */ T({
|
|
2636
2636
|
__name: "SourceApps",
|
|
2637
2637
|
props: {
|
|
2638
2638
|
/**
|
|
@@ -2704,12 +2704,12 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2704
2704
|
},
|
|
2705
2705
|
emits: ["update:modelValue"],
|
|
2706
2706
|
setup(e, { emit: t }) {
|
|
2707
|
-
const r = t, s = e, o = L(null), n = L(null), { selectedValue: p, hiddenSelectedItemCount: u, isMultiItemArrayValue: i, firstItem: f } =
|
|
2707
|
+
const r = t, s = e, o = L(null), n = L(null), { selectedValue: p, hiddenSelectedItemCount: u, isMultiItemArrayValue: i, firstItem: f } = zt({
|
|
2708
2708
|
props: ie(s),
|
|
2709
2709
|
emit: r,
|
|
2710
2710
|
dynamicVisibility: { elementToWatchForChanges: o, itemContainer: n }
|
|
2711
2711
|
}), y = (k, v) => k.name.toLocaleLowerCase().includes(v.toLocaleLowerCase());
|
|
2712
|
-
return (k, v) => (a(), j(
|
|
2712
|
+
return (k, v) => (a(), j(At, {
|
|
2713
2713
|
modelValue: l(p),
|
|
2714
2714
|
"onUpdate:modelValue": v[0] || (v[0] = (b) => Re(p) ? p.value = b : null),
|
|
2715
2715
|
multiple: e.multiple,
|
|
@@ -2726,14 +2726,14 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2726
2726
|
"button-id": e.buttonId,
|
|
2727
2727
|
by: "name"
|
|
2728
2728
|
}, {
|
|
2729
|
-
"nothing-selected":
|
|
2729
|
+
"nothing-selected": z(() => [
|
|
2730
2730
|
e.selectorPlaceholder ? (a(), d(q, { key: 0 }, [
|
|
2731
2731
|
U(B(e.selectorPlaceholder), 1)
|
|
2732
2732
|
], 64)) : (a(), d(q, { key: 1 }, [
|
|
2733
2733
|
U(B(e.multiple ? "Select apps" : "Select an app"), 1)
|
|
2734
2734
|
], 64))
|
|
2735
2735
|
]),
|
|
2736
|
-
"something-selected":
|
|
2736
|
+
"something-selected": z(({ value: b }) => [
|
|
2737
2737
|
l(i)(b) ? (a(), d("div", {
|
|
2738
2738
|
key: 0,
|
|
2739
2739
|
ref_key: "elementToWatchForChanges",
|
|
@@ -2745,33 +2745,33 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2745
2745
|
ref: n,
|
|
2746
2746
|
class: "flex flex-wrap overflow-hidden space-x-0.5 h-5"
|
|
2747
2747
|
}, [
|
|
2748
|
-
(a(!0), d(q, null, K(b, (g) => (a(), j(
|
|
2748
|
+
(a(!0), d(q, null, K(b, (g) => (a(), j(Ca, {
|
|
2749
2749
|
key: g.name,
|
|
2750
2750
|
"source-app": g
|
|
2751
2751
|
}, null, 8, ["source-app"]))), 128))
|
|
2752
2752
|
], 512),
|
|
2753
|
-
l(u) > 0 ? (a(), d("div",
|
|
2754
|
-
], 512)) : (a(), d("div",
|
|
2753
|
+
l(u) > 0 ? (a(), d("div", $a, " +" + B(l(u)), 1)) : $("", !0)
|
|
2754
|
+
], 512)) : (a(), d("div", Ia, [
|
|
2755
2755
|
c("div", {
|
|
2756
2756
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2757
2757
|
style: ee({ backgroundColor: l(f)(b).bgColor })
|
|
2758
2758
|
}, null, 4),
|
|
2759
|
-
c("span",
|
|
2759
|
+
c("span", Sa, B(l(f)(b).name), 1)
|
|
2760
2760
|
]))
|
|
2761
2761
|
]),
|
|
2762
|
-
option:
|
|
2763
|
-
c("div",
|
|
2762
|
+
option: z(({ item: b }) => [
|
|
2763
|
+
c("div", Ba, [
|
|
2764
2764
|
c("div", {
|
|
2765
2765
|
class: "h-2 w-2 rounded-full mr-2",
|
|
2766
2766
|
style: ee({ backgroundColor: b.bgColor })
|
|
2767
2767
|
}, null, 4),
|
|
2768
|
-
c("span",
|
|
2768
|
+
c("span", _a, B(b.name), 1)
|
|
2769
2769
|
])
|
|
2770
2770
|
]),
|
|
2771
2771
|
_: 1
|
|
2772
2772
|
}, 8, ["modelValue", "multiple", "items", "search", "search-placeholder", "label", "show-label", "name", "clearable", "help", "label-id", "button-id"]));
|
|
2773
2773
|
}
|
|
2774
|
-
}),
|
|
2774
|
+
}), La = { class: "flex flex-wrap gap-1.5 text-xs" }, Li = /* @__PURE__ */ T({
|
|
2775
2775
|
__name: "Badges",
|
|
2776
2776
|
props: {
|
|
2777
2777
|
items: null,
|
|
@@ -2787,13 +2787,13 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2787
2787
|
},
|
|
2788
2788
|
emits: ["update:modelValue"],
|
|
2789
2789
|
setup(e, { emit: t }) {
|
|
2790
|
-
const r = t, s = e, { selectedValue: o, isArrayValue: n } =
|
|
2790
|
+
const r = t, s = e, { selectedValue: o, isArrayValue: n } = zt({
|
|
2791
2791
|
props: ie(s),
|
|
2792
2792
|
emit: r
|
|
2793
2793
|
}), p = (u) => {
|
|
2794
2794
|
n(o.value) ? o.value = o.value.filter((i) => i.id !== u.id) : o.value = void 0;
|
|
2795
2795
|
};
|
|
2796
|
-
return (u, i) => (a(), j(
|
|
2796
|
+
return (u, i) => (a(), j(At, {
|
|
2797
2797
|
modelValue: l(o),
|
|
2798
2798
|
"onUpdate:modelValue": i[0] || (i[0] = (f) => Re(o) ? o.value = f : null),
|
|
2799
2799
|
multiple: e.multiple,
|
|
@@ -2806,8 +2806,8 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2806
2806
|
"label-id": e.labelId,
|
|
2807
2807
|
"button-id": e.buttonId
|
|
2808
2808
|
}, {
|
|
2809
|
-
"something-selected":
|
|
2810
|
-
c("ul",
|
|
2809
|
+
"something-selected": z(({ value: f }) => [
|
|
2810
|
+
c("ul", La, [
|
|
2811
2811
|
(a(!0), d(q, null, K(l(n)(f) ? f : [f], (y) => (a(), d("li", {
|
|
2812
2812
|
key: y[e.by]
|
|
2813
2813
|
}, [
|
|
@@ -2817,7 +2817,7 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2817
2817
|
"icon-left": l(It),
|
|
2818
2818
|
onClickIcon: be((k) => p(y), ["stop"])
|
|
2819
2819
|
}, {
|
|
2820
|
-
default:
|
|
2820
|
+
default: z(() => [
|
|
2821
2821
|
U(B(y.text), 1)
|
|
2822
2822
|
]),
|
|
2823
2823
|
_: 2
|
|
@@ -2825,13 +2825,13 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2825
2825
|
]))), 128))
|
|
2826
2826
|
])
|
|
2827
2827
|
]),
|
|
2828
|
-
option:
|
|
2828
|
+
option: z(({ item: f }) => [
|
|
2829
2829
|
U(B(f.text), 1)
|
|
2830
2830
|
]),
|
|
2831
2831
|
_: 1
|
|
2832
2832
|
}, 8, ["modelValue", "multiple", "items", "label", "name", "help", "rules", "by", "label-id", "button-id"]));
|
|
2833
2833
|
}
|
|
2834
|
-
}),
|
|
2834
|
+
}), Oa = { class: "flex items-center gap-2" }, ja = { class: "absolute inset-0 flex items-center gap-2 px-1 text-white" }, Va = ["for"], Oi = /* @__PURE__ */ T({
|
|
2835
2835
|
__name: "Switch",
|
|
2836
2836
|
props: /* @__PURE__ */ we({
|
|
2837
2837
|
icons: { type: Boolean },
|
|
@@ -2846,7 +2846,7 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2846
2846
|
}),
|
|
2847
2847
|
emits: ["update:modelValue"],
|
|
2848
2848
|
setup(e) {
|
|
2849
|
-
const t = e, r =
|
|
2849
|
+
const t = e, r = Ve(e, "modelValue"), s = h(() => t.label || t.name), o = h(() => {
|
|
2850
2850
|
const u = ["block label-light"];
|
|
2851
2851
|
return t.showLabel || u.push("sr-only"), u.join(" ");
|
|
2852
2852
|
}), n = h(() => {
|
|
@@ -2863,8 +2863,8 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2863
2863
|
];
|
|
2864
2864
|
return t.disabled ? u.push("bg-foreground-disabled") : u.push("bg-white"), r.value ? u.push("translate-x-5") : u.push("translate-x-0"), u.join(" ");
|
|
2865
2865
|
});
|
|
2866
|
-
return (u, i) => (a(), d("div",
|
|
2867
|
-
O(l(
|
|
2866
|
+
return (u, i) => (a(), d("div", Oa, [
|
|
2867
|
+
O(l(qs), {
|
|
2868
2868
|
id: e.id || e.name,
|
|
2869
2869
|
modelValue: r.value,
|
|
2870
2870
|
"onUpdate:modelValue": i[0] || (i[0] = (f) => r.value = f),
|
|
@@ -2872,8 +2872,8 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2872
2872
|
name: e.name,
|
|
2873
2873
|
disabled: e.disabled
|
|
2874
2874
|
}, {
|
|
2875
|
-
default:
|
|
2876
|
-
c("div",
|
|
2875
|
+
default: z(() => [
|
|
2876
|
+
c("div", ja, [
|
|
2877
2877
|
O(l(ns), {
|
|
2878
2878
|
class: x(["h-5 w-5 drop-shadow-md", e.icons ? "opacity-100" : "opacity-0"])
|
|
2879
2879
|
}, null, 8, ["class"]),
|
|
@@ -2892,10 +2892,10 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2892
2892
|
class: x(o.value)
|
|
2893
2893
|
}, [
|
|
2894
2894
|
c("span", null, B(s.value), 1)
|
|
2895
|
-
], 10,
|
|
2895
|
+
], 10, Va)
|
|
2896
2896
|
]));
|
|
2897
2897
|
}
|
|
2898
|
-
}), Ma = { class: "relative group bg-foundation-page p-2 rounded-lg pr-12" },
|
|
2898
|
+
}), Ma = { class: "relative group bg-foundation-page p-2 rounded-lg pr-12" }, za = { class: "absolute inset-0 right-2 flex justify-end items-center" }, ji = /* @__PURE__ */ T({
|
|
2899
2899
|
__name: "ClipboardInput",
|
|
2900
2900
|
props: {
|
|
2901
2901
|
value: null,
|
|
@@ -2904,7 +2904,7 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2904
2904
|
},
|
|
2905
2905
|
emits: ["copy"],
|
|
2906
2906
|
setup(e, { emit: t }) {
|
|
2907
|
-
const r = e, s = t, { copy: o } =
|
|
2907
|
+
const r = e, s = t, { copy: o } = Ms({ legacy: !0 }), n = L(!1), p = async () => {
|
|
2908
2908
|
r.value && (await o(r.value), n.value = !0, s("copy", r.value), setTimeout(() => {
|
|
2909
2909
|
n.value = !1;
|
|
2910
2910
|
}, 2e3));
|
|
@@ -2920,7 +2920,7 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2920
2920
|
key: 0,
|
|
2921
2921
|
class: "relative z-10 text-xs sm:text-sm text-foreground font-mono break-all p-2 pl-3 max-h-[4.8rem] simple-scrollbar overflow-y-auto",
|
|
2922
2922
|
onKeypress: f[0] || (f[0] = (y) => l(Ot)(u))
|
|
2923
|
-
}, B(e.value), 33)) : (a(), j(l(
|
|
2923
|
+
}, B(e.value), 33)) : (a(), j(l(Xl), {
|
|
2924
2924
|
key: 1,
|
|
2925
2925
|
color: "transparent",
|
|
2926
2926
|
name: "contentInput",
|
|
@@ -2928,7 +2928,7 @@ const ut = /* @__PURE__ */ Ce(oa, [["__scopeId", "data-v-985badae"]]), ra = {
|
|
|
2928
2928
|
"model-value": e.value,
|
|
2929
2929
|
class: "relative z-10 text-sm text-foreground font-mono"
|
|
2930
2930
|
}, null, 8, ["model-value"])),
|
|
2931
|
-
c("div",
|
|
2931
|
+
c("div", za, [
|
|
2932
2932
|
O(l(ce), {
|
|
2933
2933
|
color: "invert",
|
|
2934
2934
|
size: "sm",
|
|
@@ -2946,46 +2946,36 @@ const Qe = _s(), Aa = {
|
|
|
2946
2946
|
"alt-or-opt": Qe === Ze.Mac ? "Opt" : "Alt",
|
|
2947
2947
|
shift: "Shift"
|
|
2948
2948
|
};
|
|
2949
|
-
function
|
|
2949
|
+
function Vi(e) {
|
|
2950
2950
|
const t = (r) => Object.values(je).includes(r);
|
|
2951
2951
|
return e.map((r) => t(r) ? Aa[r] : r).join("+");
|
|
2952
2952
|
}
|
|
2953
|
-
function Mi(e,
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
break;
|
|
2968
|
-
case je.Shift:
|
|
2969
|
-
if (!n)
|
|
2970
|
-
return;
|
|
2971
|
-
break;
|
|
2972
|
-
}
|
|
2973
|
-
t[1](r);
|
|
2974
|
-
},
|
|
2975
|
-
t[2]
|
|
2976
|
-
);
|
|
2953
|
+
function Mi(e, t, r) {
|
|
2954
|
+
const s = zs(), n = `${e.map((p) => {
|
|
2955
|
+
switch (p) {
|
|
2956
|
+
case je.CtrlOrCmd:
|
|
2957
|
+
return Qe === Ze.Mac ? "Meta" : "Control";
|
|
2958
|
+
case je.AltOrOpt:
|
|
2959
|
+
return "Alt";
|
|
2960
|
+
case je.Shift:
|
|
2961
|
+
return "Shift";
|
|
2962
|
+
default:
|
|
2963
|
+
return "";
|
|
2964
|
+
}
|
|
2965
|
+
}).join("+")}+${t}`;
|
|
2966
|
+
As(s[n], r);
|
|
2977
2967
|
}
|
|
2978
|
-
function
|
|
2968
|
+
function zi(e) {
|
|
2979
2969
|
const t = (e == null ? void 0 : e.model) || L(), r = h({
|
|
2980
2970
|
get: () => !!t.value,
|
|
2981
2971
|
set: (s) => t.value = s ? !0 : void 0
|
|
2982
2972
|
});
|
|
2983
2973
|
return { model: t, isChecked: r };
|
|
2984
2974
|
}
|
|
2985
|
-
const
|
|
2975
|
+
const Pa = /* @__PURE__ */ c("div", { class: "fixed top-0 left-0 w-full h-full bg-neutral-100/70 dark:bg-neutral-900/70 transition-opacity backdrop-blur-xs" }, null, -1), Ta = { class: "fixed top-0 left-0 z-10 h-screen !h-[100dvh] w-screen" }, Ea = { class: "flex justify-center items-center h-full w-full p-4 sm:p-0" }, Ra = {
|
|
2986
2976
|
key: 0,
|
|
2987
2977
|
class: "flex items-center justify-start rounded-t-lg shrink-0 min-h-[2rem] sm:min-h-[4rem] p-4 sm:p-6 truncate text-lg sm:text-2xl font-bold"
|
|
2988
|
-
},
|
|
2978
|
+
}, Fa = { class: "w-full truncate pr-12" }, Da = /* @__PURE__ */ c("button", {
|
|
2989
2979
|
class: "hidden",
|
|
2990
2980
|
type: "button"
|
|
2991
2981
|
}, null, -1), Ai = /* @__PURE__ */ T({
|
|
@@ -3030,14 +3020,14 @@ const za = /* @__PURE__ */ c("div", { class: "fixed top-0 left-0 w-full h-full b
|
|
|
3030
3020
|
return v.value >= 1 && I.push("md:max-w-2xl"), v.value >= 2 && I.push("lg:max-w-4xl"), v.value >= 3 && I.push("xl:max-w-6xl"), v.value >= 4 && I.push("2xl:max-w-7xl"), I.join(" ");
|
|
3031
3021
|
}), g = () => {
|
|
3032
3022
|
s.preventCloseOnClickOutside || (k.value = !1);
|
|
3033
|
-
},
|
|
3023
|
+
}, V = (I) => {
|
|
3034
3024
|
var w;
|
|
3035
3025
|
(w = s.onSubmit) == null || w.call(s, I);
|
|
3036
3026
|
}, C = Ne((I) => {
|
|
3037
3027
|
if (!I.target)
|
|
3038
3028
|
return;
|
|
3039
|
-
const w = I.target, { scrollTop: _, offsetHeight:
|
|
3040
|
-
n.value = _ > 0, p.value = _ +
|
|
3029
|
+
const w = I.target, { scrollTop: _, offsetHeight: A, scrollHeight: m } = w;
|
|
3030
|
+
n.value = _ > 0, p.value = _ + A >= m;
|
|
3041
3031
|
}, 60);
|
|
3042
3032
|
return te(k, (I) => {
|
|
3043
3033
|
if (ge) {
|
|
@@ -3050,13 +3040,13 @@ const za = /* @__PURE__ */ c("div", { class: "fixed top-0 left-0 w-full h-full b
|
|
|
3050
3040
|
as: "template",
|
|
3051
3041
|
show: k.value
|
|
3052
3042
|
}, {
|
|
3053
|
-
default:
|
|
3054
|
-
O(l(
|
|
3043
|
+
default: z(() => [
|
|
3044
|
+
O(l(Hs), {
|
|
3055
3045
|
as: "div",
|
|
3056
3046
|
class: "relative z-40",
|
|
3057
3047
|
onClose: g
|
|
3058
3048
|
}, {
|
|
3059
|
-
default:
|
|
3049
|
+
default: z(() => [
|
|
3060
3050
|
O(l(vt), {
|
|
3061
3051
|
as: "template",
|
|
3062
3052
|
enter: "ease-out duration-300",
|
|
@@ -3066,13 +3056,13 @@ const za = /* @__PURE__ */ c("div", { class: "fixed top-0 left-0 w-full h-full b
|
|
|
3066
3056
|
"leave-from": "opacity-100",
|
|
3067
3057
|
"leave-to": "opacity-0"
|
|
3068
3058
|
}, {
|
|
3069
|
-
default:
|
|
3070
|
-
|
|
3059
|
+
default: z(() => [
|
|
3060
|
+
Pa
|
|
3071
3061
|
]),
|
|
3072
3062
|
_: 1
|
|
3073
3063
|
}),
|
|
3074
|
-
c("div",
|
|
3075
|
-
c("div",
|
|
3064
|
+
c("div", Ta, [
|
|
3065
|
+
c("div", Ea, [
|
|
3076
3066
|
O(l(vt), {
|
|
3077
3067
|
as: "template",
|
|
3078
3068
|
enter: "ease-out duration-300",
|
|
@@ -3083,27 +3073,27 @@ const za = /* @__PURE__ */ c("div", { class: "fixed top-0 left-0 w-full h-full b
|
|
|
3083
3073
|
"leave-to": "opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95",
|
|
3084
3074
|
onAfterLeave: w[2] || (w[2] = (_) => I.$emit("fully-closed"))
|
|
3085
3075
|
}, {
|
|
3086
|
-
default:
|
|
3087
|
-
O(l(
|
|
3076
|
+
default: z(() => [
|
|
3077
|
+
O(l(Gs), {
|
|
3088
3078
|
class: x([
|
|
3089
3079
|
"transform rounded-lg text-foreground overflow-hidden bg-foundation text-left shadow-xl transition-all flex flex-col max-h-[90vh]",
|
|
3090
3080
|
b.value
|
|
3091
3081
|
]),
|
|
3092
3082
|
as: i.value ? "form" : "div",
|
|
3093
|
-
onSubmit: be(
|
|
3083
|
+
onSubmit: be(V, ["prevent"])
|
|
3094
3084
|
}, {
|
|
3095
|
-
default:
|
|
3085
|
+
default: z(() => [
|
|
3096
3086
|
c("div", {
|
|
3097
3087
|
class: x(n.value && "relative z-20 shadow-lg")
|
|
3098
3088
|
}, [
|
|
3099
|
-
y.value ? (a(), d("div",
|
|
3100
|
-
c("div",
|
|
3089
|
+
y.value ? (a(), d("div", Ra, [
|
|
3090
|
+
c("div", Fa, [
|
|
3101
3091
|
U(B(e.title) + " ", 1),
|
|
3102
3092
|
R(I.$slots, "header")
|
|
3103
3093
|
])
|
|
3104
3094
|
])) : $("", !0)
|
|
3105
3095
|
], 2),
|
|
3106
|
-
|
|
3096
|
+
Da,
|
|
3107
3097
|
e.hideCloser ? $("", !0) : (a(), d("button", {
|
|
3108
3098
|
key: 0,
|
|
3109
3099
|
type: "button",
|
|
@@ -3130,19 +3120,19 @@ const za = /* @__PURE__ */ c("div", { class: "fixed top-0 left-0 w-full h-full b
|
|
|
3130
3120
|
[e.buttonsWrapperClasses || ""]: !0
|
|
3131
3121
|
}])
|
|
3132
3122
|
}, [
|
|
3133
|
-
e.buttons ? (a(!0), d(q, { key: 0 }, K(e.buttons, (_,
|
|
3134
|
-
var m,
|
|
3123
|
+
e.buttons ? (a(!0), d(q, { key: 0 }, K(e.buttons, (_, A) => {
|
|
3124
|
+
var m, M;
|
|
3135
3125
|
return a(), j(l(ce), ue({
|
|
3136
|
-
key: _.id ||
|
|
3126
|
+
key: _.id || A
|
|
3137
3127
|
}, _.props || {}, {
|
|
3138
3128
|
disabled: ((m = _.props) == null ? void 0 : m.disabled) || _.disabled,
|
|
3139
|
-
submit: ((
|
|
3129
|
+
submit: ((M = _.props) == null ? void 0 : M.submit) || _.submit,
|
|
3140
3130
|
onClick: (P) => {
|
|
3141
3131
|
var E;
|
|
3142
3132
|
return (E = _.onClick) == null ? void 0 : E.call(_, P);
|
|
3143
3133
|
}
|
|
3144
3134
|
}), {
|
|
3145
|
-
default:
|
|
3135
|
+
default: z(() => [
|
|
3146
3136
|
U(B(_.text), 1)
|
|
3147
3137
|
]),
|
|
3148
3138
|
_: 2
|
|
@@ -3165,10 +3155,10 @@ const za = /* @__PURE__ */ c("div", { class: "fixed top-0 left-0 w-full h-full b
|
|
|
3165
3155
|
}, 8, ["show"]));
|
|
3166
3156
|
}
|
|
3167
3157
|
});
|
|
3168
|
-
const
|
|
3158
|
+
const Ua = {
|
|
3169
3159
|
key: 0,
|
|
3170
3160
|
class: "h-4 sm:h-5 w-4 sm:w-5 empty:h-0 empty:w-0"
|
|
3171
|
-
},
|
|
3161
|
+
}, Pi = /* @__PURE__ */ T({
|
|
3172
3162
|
__name: "DialogSection",
|
|
3173
3163
|
props: {
|
|
3174
3164
|
title: String,
|
|
@@ -3235,7 +3225,7 @@ const Da = {
|
|
|
3235
3225
|
c("div", {
|
|
3236
3226
|
class: x(["text-sm sm:text-base font-bold flex items-center gap-1 sm:gap-2 select-none", p.value])
|
|
3237
3227
|
}, [
|
|
3238
|
-
i.$slots.icon || e.icon ? (a(), d("div",
|
|
3228
|
+
i.$slots.icon || e.icon ? (a(), d("div", Ua, [
|
|
3239
3229
|
i.$slots.icon ? R(i.$slots, "icon", { key: 0 }) : $("", !0),
|
|
3240
3230
|
e.icon ? (a(), j(X(e.icon), {
|
|
3241
3231
|
key: 1,
|
|
@@ -3257,7 +3247,7 @@ const Da = {
|
|
|
3257
3247
|
"icon-right": e.button.expandContent && o.value ? void 0 : e.button.iconRight,
|
|
3258
3248
|
onClick: (y = e.button) == null ? void 0 : y.onClick
|
|
3259
3249
|
}, mt((k = e.button) != null && k.expandContent ? { click: u } : {})), {
|
|
3260
|
-
default:
|
|
3250
|
+
default: z(() => [
|
|
3261
3251
|
U(B(e.button.expandContent && o.value ? "Cancel" : e.button.text), 1)
|
|
3262
3252
|
]),
|
|
3263
3253
|
_: 1
|
|
@@ -3299,7 +3289,7 @@ const Da = {
|
|
|
3299
3289
|
], 2);
|
|
3300
3290
|
};
|
|
3301
3291
|
}
|
|
3302
|
-
}),
|
|
3292
|
+
}), Wa = { class: "inline-flex items-center space-x-2" }, qa = { class: "label-light" }, Ti = /* @__PURE__ */ T({
|
|
3303
3293
|
__name: "Disclosure",
|
|
3304
3294
|
props: {
|
|
3305
3295
|
title: null,
|
|
@@ -3354,13 +3344,13 @@ const Da = {
|
|
|
3354
3344
|
return o.join(" ");
|
|
3355
3345
|
});
|
|
3356
3346
|
return (o, n) => (a(), d("div", null, [
|
|
3357
|
-
O(l(
|
|
3358
|
-
default:
|
|
3359
|
-
O(l(
|
|
3347
|
+
O(l(Ks), null, {
|
|
3348
|
+
default: z(({ open: p }) => [
|
|
3349
|
+
O(l(Ns), {
|
|
3360
3350
|
class: x(r.value)
|
|
3361
3351
|
}, {
|
|
3362
|
-
default:
|
|
3363
|
-
c("div",
|
|
3352
|
+
default: z(() => [
|
|
3353
|
+
c("div", Wa, [
|
|
3364
3354
|
e.icon ? (a(), j(X(e.icon), {
|
|
3365
3355
|
key: 0,
|
|
3366
3356
|
class: "h-5 w-5"
|
|
@@ -3373,11 +3363,11 @@ const Da = {
|
|
|
3373
3363
|
]),
|
|
3374
3364
|
_: 2
|
|
3375
3365
|
}, 1032, ["class"]),
|
|
3376
|
-
O(l(
|
|
3366
|
+
O(l(Xs), {
|
|
3377
3367
|
class: x(s.value)
|
|
3378
3368
|
}, {
|
|
3379
|
-
default:
|
|
3380
|
-
c("div",
|
|
3369
|
+
default: z(() => [
|
|
3370
|
+
c("div", qa, [
|
|
3381
3371
|
R(o.$slots, "default", {}, () => [
|
|
3382
3372
|
U("Panel contents")
|
|
3383
3373
|
])
|
|
@@ -3392,9 +3382,9 @@ const Da = {
|
|
|
3392
3382
|
}
|
|
3393
3383
|
});
|
|
3394
3384
|
var ke = /* @__PURE__ */ ((e) => (e.Grid = "grid", e.List = "list", e))(ke || {});
|
|
3395
|
-
const
|
|
3396
|
-
|
|
3397
|
-
],
|
|
3385
|
+
const Ha = { class: "relative flex bg-primary-muted rounded-md" }, Ga = /* @__PURE__ */ c("div", { class: "w-7 h-7 bg-foundation dark:bg-foundation-2 transition rounded shadow" }, null, -1), Ka = [
|
|
3386
|
+
Ga
|
|
3387
|
+
], Na = { class: "relative z-10 flex gap-1 items-center p-1 rounded-l" }, Xa = { class: "relative z-10 flex gap-1 items-center p-1 rounded-r" }, Ei = /* @__PURE__ */ T({
|
|
3398
3388
|
__name: "GridListToggle",
|
|
3399
3389
|
props: {
|
|
3400
3390
|
modelValue: null
|
|
@@ -3415,18 +3405,18 @@ const qa = { class: "relative flex bg-primary-muted rounded-md" }, Ha = /* @__PU
|
|
|
3415
3405
|
class: "max-w-max transition flex justify-center items-center gap-2 outline-none select-none h-8 text-foreground border-2 border-primary-muted dark:border-foundation bg-primary-muted rounded-md active:scale-[0.97] grow",
|
|
3416
3406
|
onClick: n
|
|
3417
3407
|
}, [
|
|
3418
|
-
c("div",
|
|
3408
|
+
c("div", Ha, [
|
|
3419
3409
|
c("div", {
|
|
3420
3410
|
class: x(["absolute transition", {
|
|
3421
3411
|
"translate-x-7": o.value !== l(ke).List
|
|
3422
3412
|
}])
|
|
3423
|
-
},
|
|
3424
|
-
se((a(), d("div",
|
|
3413
|
+
}, Ka, 2),
|
|
3414
|
+
se((a(), d("div", Na, [
|
|
3425
3415
|
O(l(as), { class: "h-5 w-5" })
|
|
3426
3416
|
])), [
|
|
3427
3417
|
[i, "List View"]
|
|
3428
3418
|
]),
|
|
3429
|
-
se((a(), d("div",
|
|
3419
|
+
se((a(), d("div", Xa, [
|
|
3430
3420
|
O(l(os), { class: "h-5 w-5" })
|
|
3431
3421
|
])), [
|
|
3432
3422
|
[i, "Grid View"]
|
|
@@ -3436,8 +3426,8 @@ const qa = { class: "relative flex bg-primary-muted rounded-md" }, Ha = /* @__PU
|
|
|
3436
3426
|
};
|
|
3437
3427
|
}
|
|
3438
3428
|
});
|
|
3439
|
-
var
|
|
3440
|
-
function
|
|
3429
|
+
var Za = /* @__PURE__ */ ((e) => (e[e.Throttle = 0] = "Throttle", e[e.Debounce = 1] = "Debounce", e))(Za || {}), Je = /* @__PURE__ */ ((e) => (e[e.Left = 0] = "Left", e[e.Right = 1] = "Right", e))(Je || {});
|
|
3430
|
+
function Qa(e, t) {
|
|
3441
3431
|
if (!ge)
|
|
3442
3432
|
return;
|
|
3443
3433
|
const {
|
|
@@ -3447,14 +3437,14 @@ function Za(e, t) {
|
|
|
3447
3437
|
} = t || {}, o = r ? s === 0 ? Ne(e, r) : De(e, r) : e;
|
|
3448
3438
|
ne(() => window.addEventListener("resize", o)), Ee(() => window.removeEventListener("resize", o));
|
|
3449
3439
|
}
|
|
3450
|
-
function
|
|
3440
|
+
function Ri(e) {
|
|
3451
3441
|
ne(() => {
|
|
3452
3442
|
window.addEventListener("beforeunload", e);
|
|
3453
3443
|
}), Ee(() => {
|
|
3454
3444
|
window.removeEventListener("beforeunload", e);
|
|
3455
3445
|
});
|
|
3456
3446
|
}
|
|
3457
|
-
function
|
|
3447
|
+
function Ja(e) {
|
|
3458
3448
|
const { el: t, defaultDirection: r } = e, s = L(
|
|
3459
3449
|
me(r) ? 1 : r
|
|
3460
3450
|
/* Right */
|
|
@@ -3473,7 +3463,7 @@ function Qa(e) {
|
|
|
3473
3463
|
const u = p.getBoundingClientRect(), i = u.x + u.width > window.innerWidth, f = u.x < 0;
|
|
3474
3464
|
i && f || !me(o.value) && window.innerWidth < o.value || (i ? s.value = 0 : f && (s.value = 1));
|
|
3475
3465
|
};
|
|
3476
|
-
return
|
|
3466
|
+
return Qa(() => n()), te(
|
|
3477
3467
|
() => l(t),
|
|
3478
3468
|
(p) => {
|
|
3479
3469
|
p && n();
|
|
@@ -3483,7 +3473,7 @@ function Qa(e) {
|
|
|
3483
3473
|
recalculateDirection: n
|
|
3484
3474
|
};
|
|
3485
3475
|
}
|
|
3486
|
-
const
|
|
3476
|
+
const Ya = ["disabled", "onClick"], Fi = /* @__PURE__ */ T({
|
|
3487
3477
|
__name: "Menu",
|
|
3488
3478
|
props: {
|
|
3489
3479
|
open: { type: Boolean },
|
|
@@ -3492,7 +3482,7 @@ const Ja = ["disabled", "onClick"], Ri = /* @__PURE__ */ T({
|
|
|
3492
3482
|
},
|
|
3493
3483
|
emits: ["update:open", "chosen"],
|
|
3494
3484
|
setup(e, { emit: t }) {
|
|
3495
|
-
const r = t, s = e, o = L(null), { direction: n } =
|
|
3485
|
+
const r = t, s = e, o = L(null), { direction: n } = Ja({
|
|
3496
3486
|
el: h(() => {
|
|
3497
3487
|
var b;
|
|
3498
3488
|
return ((b = o.value) == null ? void 0 : b.el) || null;
|
|
@@ -3503,10 +3493,10 @@ const Ja = ["disabled", "onClick"], Ri = /* @__PURE__ */ T({
|
|
|
3503
3493
|
get: () => s.open || !1,
|
|
3504
3494
|
set: (b) => r("update:open", b)
|
|
3505
3495
|
}), f = (b) => {
|
|
3506
|
-
const { active: g, disabled:
|
|
3496
|
+
const { active: g, disabled: V, color: C } = b, I = [
|
|
3507
3497
|
"group flex gap-3 w-full items-center rounded-md px-2 py-1.5 text-sm"
|
|
3508
3498
|
];
|
|
3509
|
-
return g && !C ? I.push("bg-foundation-focus text-foreground") :
|
|
3499
|
+
return g && !C ? I.push("bg-foundation-focus text-foreground") : V ? I.push("text-foreground-disabled") : C === "danger" && g ? I.push("text-foreground-on-primary bg-danger") : C === "danger" && !g ? I.push("text-danger") : C === "info" && g ? I.push("text-foreground-on-primary bg-info") : C === "info" && !g ? I.push("text-info") : I.push("text-foreground"), I.join(" ");
|
|
3510
3500
|
}, y = (b, g) => {
|
|
3511
3501
|
r("chosen", { item: b, event: g });
|
|
3512
3502
|
}, k = () => {
|
|
@@ -3520,13 +3510,13 @@ const Ja = ["disabled", "onClick"], Ri = /* @__PURE__ */ T({
|
|
|
3520
3510
|
b !== g && (i.value = b);
|
|
3521
3511
|
}), te(i, (b) => {
|
|
3522
3512
|
(b && !u.value || !b && u.value) && k();
|
|
3523
|
-
}), (b, g) => (a(), j(l(
|
|
3513
|
+
}), (b, g) => (a(), j(l(Zs), {
|
|
3524
3514
|
as: "div",
|
|
3525
3515
|
class: "relative inline-block"
|
|
3526
3516
|
}, {
|
|
3527
|
-
default:
|
|
3517
|
+
default: z(({ open: V }) => [
|
|
3528
3518
|
c("div", null, [
|
|
3529
|
-
O(l(
|
|
3519
|
+
O(l(Qs), {
|
|
3530
3520
|
id: e.menuId,
|
|
3531
3521
|
ref_key: "menuButton",
|
|
3532
3522
|
ref: p,
|
|
@@ -3535,11 +3525,11 @@ const Ja = ["disabled", "onClick"], Ri = /* @__PURE__ */ T({
|
|
|
3535
3525
|
}, ["stop", "prevent"]))
|
|
3536
3526
|
}, null, 8, ["id"]),
|
|
3537
3527
|
c("div", {
|
|
3538
|
-
class: x(
|
|
3528
|
+
class: x(V ? "pointer-events-none" : "")
|
|
3539
3529
|
}, [
|
|
3540
3530
|
R(b.$slots, "default", {
|
|
3541
3531
|
toggle: k,
|
|
3542
|
-
open: v(
|
|
3532
|
+
open: v(V)
|
|
3543
3533
|
})
|
|
3544
3534
|
], 2)
|
|
3545
3535
|
]),
|
|
@@ -3551,8 +3541,8 @@ const Ja = ["disabled", "onClick"], Ri = /* @__PURE__ */ T({
|
|
|
3551
3541
|
"leave-from-class": "transform scale-100 opacity-100",
|
|
3552
3542
|
"leave-to-class": "transform scale-95 opacity-0"
|
|
3553
3543
|
}, {
|
|
3554
|
-
default:
|
|
3555
|
-
O(l(
|
|
3544
|
+
default: z(() => [
|
|
3545
|
+
O(l(Js), {
|
|
3556
3546
|
ref_key: "menuItems",
|
|
3557
3547
|
ref: o,
|
|
3558
3548
|
class: x([
|
|
@@ -3560,21 +3550,21 @@ const Ja = ["disabled", "onClick"], Ri = /* @__PURE__ */ T({
|
|
|
3560
3550
|
l(n) === l(Je).Left ? "right-0" : ""
|
|
3561
3551
|
])
|
|
3562
3552
|
}, {
|
|
3563
|
-
default:
|
|
3553
|
+
default: z(() => [
|
|
3564
3554
|
(a(!0), d(q, null, K(e.items, (C, I) => (a(), d("div", {
|
|
3565
3555
|
key: I,
|
|
3566
3556
|
class: "p-1"
|
|
3567
3557
|
}, [
|
|
3568
|
-
(a(!0), d(q, null, K(C, (w) => (a(), j(l(
|
|
3558
|
+
(a(!0), d(q, null, K(C, (w) => (a(), j(l(Ys), {
|
|
3569
3559
|
key: w.id,
|
|
3570
3560
|
disabled: w.disabled,
|
|
3571
3561
|
color: w.color
|
|
3572
3562
|
}, {
|
|
3573
|
-
default:
|
|
3563
|
+
default: z(({ active: _, disabled: A }) => [
|
|
3574
3564
|
se((a(), d("span", null, [
|
|
3575
3565
|
c("button", {
|
|
3576
|
-
class: x(f({ active: _, disabled:
|
|
3577
|
-
disabled:
|
|
3566
|
+
class: x(f({ active: _, disabled: A, color: w.color })),
|
|
3567
|
+
disabled: A,
|
|
3578
3568
|
onClick: (m) => y(w, m)
|
|
3579
3569
|
}, [
|
|
3580
3570
|
w.icon ? (a(), j(X(w.icon), {
|
|
@@ -3584,9 +3574,9 @@ const Ja = ["disabled", "onClick"], Ri = /* @__PURE__ */ T({
|
|
|
3584
3574
|
R(b.$slots, "item", { item: w }, () => [
|
|
3585
3575
|
U(B(w.title), 1)
|
|
3586
3576
|
])
|
|
3587
|
-
], 10,
|
|
3577
|
+
], 10, Ya)
|
|
3588
3578
|
])), [
|
|
3589
|
-
[l(
|
|
3579
|
+
[l(nn), w.disabled && w.disabledTooltip]
|
|
3590
3580
|
])
|
|
3591
3581
|
]),
|
|
3592
3582
|
_: 2
|
|
@@ -3603,57 +3593,57 @@ const Ja = ["disabled", "onClick"], Ri = /* @__PURE__ */ T({
|
|
|
3603
3593
|
}));
|
|
3604
3594
|
}
|
|
3605
3595
|
});
|
|
3606
|
-
var
|
|
3607
|
-
const
|
|
3608
|
-
var
|
|
3609
|
-
const Pt =
|
|
3610
|
-
var
|
|
3611
|
-
const Pe =
|
|
3612
|
-
var Tt = Object.prototype,
|
|
3613
|
-
function
|
|
3614
|
-
var t =
|
|
3596
|
+
var eo = typeof global == "object" && global && global.Object === Object && global;
|
|
3597
|
+
const to = eo;
|
|
3598
|
+
var so = typeof self == "object" && self && self.Object === Object && self, no = to || so || Function("return this")();
|
|
3599
|
+
const Pt = no;
|
|
3600
|
+
var lo = Pt.Symbol;
|
|
3601
|
+
const Pe = lo;
|
|
3602
|
+
var Tt = Object.prototype, ao = Tt.hasOwnProperty, oo = Tt.toString, _e = Pe ? Pe.toStringTag : void 0;
|
|
3603
|
+
function ro(e) {
|
|
3604
|
+
var t = ao.call(e, _e), r = e[_e];
|
|
3615
3605
|
try {
|
|
3616
3606
|
e[_e] = void 0;
|
|
3617
3607
|
var s = !0;
|
|
3618
3608
|
} catch {
|
|
3619
3609
|
}
|
|
3620
|
-
var o =
|
|
3610
|
+
var o = oo.call(e);
|
|
3621
3611
|
return s && (t ? e[_e] = r : delete e[_e]), o;
|
|
3622
3612
|
}
|
|
3623
|
-
var
|
|
3624
|
-
function
|
|
3625
|
-
return
|
|
3626
|
-
}
|
|
3627
|
-
var co = "[object Null]", fo = "[object Undefined]", bt = Pe ? Pe.toStringTag : void 0;
|
|
3628
|
-
function po(e) {
|
|
3629
|
-
return e == null ? e === void 0 ? fo : co : bt && bt in Object(e) ? oo(e) : uo(e);
|
|
3613
|
+
var io = Object.prototype, uo = io.toString;
|
|
3614
|
+
function co(e) {
|
|
3615
|
+
return uo.call(e);
|
|
3630
3616
|
}
|
|
3617
|
+
var fo = "[object Null]", po = "[object Undefined]", bt = Pe ? Pe.toStringTag : void 0;
|
|
3631
3618
|
function mo(e) {
|
|
3619
|
+
return e == null ? e === void 0 ? po : fo : bt && bt in Object(e) ? ro(e) : co(e);
|
|
3620
|
+
}
|
|
3621
|
+
function ho(e) {
|
|
3632
3622
|
return e != null && typeof e == "object";
|
|
3633
3623
|
}
|
|
3634
|
-
var
|
|
3635
|
-
function
|
|
3636
|
-
return typeof e == "symbol" ||
|
|
3624
|
+
var vo = "[object Symbol]";
|
|
3625
|
+
function go(e) {
|
|
3626
|
+
return typeof e == "symbol" || ho(e) && mo(e) == vo;
|
|
3637
3627
|
}
|
|
3638
|
-
var
|
|
3639
|
-
function
|
|
3640
|
-
for (var t = e.length; t-- &&
|
|
3628
|
+
var bo = /\s/;
|
|
3629
|
+
function yo(e) {
|
|
3630
|
+
for (var t = e.length; t-- && bo.test(e.charAt(t)); )
|
|
3641
3631
|
;
|
|
3642
3632
|
return t;
|
|
3643
3633
|
}
|
|
3644
|
-
var
|
|
3645
|
-
function
|
|
3646
|
-
return e && e.slice(0,
|
|
3634
|
+
var xo = /^\s+/;
|
|
3635
|
+
function ko(e) {
|
|
3636
|
+
return e && e.slice(0, yo(e) + 1).replace(xo, "");
|
|
3647
3637
|
}
|
|
3648
3638
|
function Te(e) {
|
|
3649
3639
|
var t = typeof e;
|
|
3650
3640
|
return e != null && (t == "object" || t == "function");
|
|
3651
3641
|
}
|
|
3652
|
-
var yt = 0 / 0,
|
|
3642
|
+
var yt = 0 / 0, wo = /^[-+]0x[0-9a-f]+$/i, Co = /^0b[01]+$/i, $o = /^0o[0-7]+$/i, Io = parseInt;
|
|
3653
3643
|
function xt(e) {
|
|
3654
3644
|
if (typeof e == "number")
|
|
3655
3645
|
return e;
|
|
3656
|
-
if (
|
|
3646
|
+
if (go(e))
|
|
3657
3647
|
return yt;
|
|
3658
3648
|
if (Te(e)) {
|
|
3659
3649
|
var t = typeof e.valueOf == "function" ? e.valueOf() : e;
|
|
@@ -3661,53 +3651,53 @@ function xt(e) {
|
|
|
3661
3651
|
}
|
|
3662
3652
|
if (typeof e != "string")
|
|
3663
3653
|
return e === 0 ? e : +e;
|
|
3664
|
-
e =
|
|
3665
|
-
var r =
|
|
3666
|
-
return r ||
|
|
3654
|
+
e = ko(e);
|
|
3655
|
+
var r = Co.test(e);
|
|
3656
|
+
return r || $o.test(e) ? Io(e.slice(2), r ? 2 : 8) : wo.test(e) ? yt : +e;
|
|
3667
3657
|
}
|
|
3668
|
-
var
|
|
3658
|
+
var So = function() {
|
|
3669
3659
|
return Pt.Date.now();
|
|
3670
3660
|
};
|
|
3671
|
-
const Ge =
|
|
3672
|
-
var
|
|
3673
|
-
function
|
|
3661
|
+
const Ge = So;
|
|
3662
|
+
var Bo = "Expected a function", _o = Math.max, Lo = Math.min;
|
|
3663
|
+
function Oo(e, t, r) {
|
|
3674
3664
|
var s, o, n, p, u, i, f = 0, y = !1, k = !1, v = !0;
|
|
3675
3665
|
if (typeof e != "function")
|
|
3676
|
-
throw new TypeError(
|
|
3677
|
-
t = xt(t) || 0, Te(r) && (y = !!r.leading, k = "maxWait" in r, n = k ?
|
|
3678
|
-
function b(
|
|
3666
|
+
throw new TypeError(Bo);
|
|
3667
|
+
t = xt(t) || 0, Te(r) && (y = !!r.leading, k = "maxWait" in r, n = k ? _o(xt(r.maxWait) || 0, t) : n, v = "trailing" in r ? !!r.trailing : v);
|
|
3668
|
+
function b(M) {
|
|
3679
3669
|
var P = s, E = o;
|
|
3680
|
-
return s = o = void 0, f =
|
|
3670
|
+
return s = o = void 0, f = M, p = e.apply(E, P), p;
|
|
3681
3671
|
}
|
|
3682
|
-
function g(
|
|
3683
|
-
return f =
|
|
3672
|
+
function g(M) {
|
|
3673
|
+
return f = M, u = setTimeout(I, t), y ? b(M) : p;
|
|
3684
3674
|
}
|
|
3685
|
-
function M
|
|
3686
|
-
var P =
|
|
3687
|
-
return k ?
|
|
3675
|
+
function V(M) {
|
|
3676
|
+
var P = M - i, E = M - f, N = t - P;
|
|
3677
|
+
return k ? Lo(N, n - E) : N;
|
|
3688
3678
|
}
|
|
3689
|
-
function C(
|
|
3690
|
-
var P =
|
|
3679
|
+
function C(M) {
|
|
3680
|
+
var P = M - i, E = M - f;
|
|
3691
3681
|
return i === void 0 || P >= t || P < 0 || k && E >= n;
|
|
3692
3682
|
}
|
|
3693
3683
|
function I() {
|
|
3694
|
-
var
|
|
3695
|
-
if (C(
|
|
3696
|
-
return w(
|
|
3697
|
-
u = setTimeout(I, M
|
|
3684
|
+
var M = Ge();
|
|
3685
|
+
if (C(M))
|
|
3686
|
+
return w(M);
|
|
3687
|
+
u = setTimeout(I, V(M));
|
|
3698
3688
|
}
|
|
3699
|
-
function w(
|
|
3700
|
-
return u = void 0, v && s ? b(
|
|
3689
|
+
function w(M) {
|
|
3690
|
+
return u = void 0, v && s ? b(M) : (s = o = void 0, p);
|
|
3701
3691
|
}
|
|
3702
3692
|
function _() {
|
|
3703
3693
|
u !== void 0 && clearTimeout(u), f = 0, s = i = o = u = void 0;
|
|
3704
3694
|
}
|
|
3705
|
-
function
|
|
3695
|
+
function A() {
|
|
3706
3696
|
return u === void 0 ? p : w(Ge());
|
|
3707
3697
|
}
|
|
3708
3698
|
function m() {
|
|
3709
|
-
var
|
|
3710
|
-
if (s = arguments, o = this, i =
|
|
3699
|
+
var M = Ge(), P = C(M);
|
|
3700
|
+
if (s = arguments, o = this, i = M, P) {
|
|
3711
3701
|
if (u === void 0)
|
|
3712
3702
|
return g(i);
|
|
3713
3703
|
if (k)
|
|
@@ -3715,23 +3705,23 @@ function Lo(e, t, r) {
|
|
|
3715
3705
|
}
|
|
3716
3706
|
return u === void 0 && (u = setTimeout(I, t)), p;
|
|
3717
3707
|
}
|
|
3718
|
-
return m.cancel = _, m.flush =
|
|
3708
|
+
return m.cancel = _, m.flush = A, m;
|
|
3719
3709
|
}
|
|
3720
|
-
var
|
|
3721
|
-
function
|
|
3710
|
+
var jo = "Expected a function";
|
|
3711
|
+
function Vo(e, t, r) {
|
|
3722
3712
|
var s = !0, o = !0;
|
|
3723
3713
|
if (typeof e != "function")
|
|
3724
|
-
throw new TypeError(
|
|
3725
|
-
return Te(r) && (s = "leading" in r ? !!r.leading : s, o = "trailing" in r ? !!r.trailing : o),
|
|
3714
|
+
throw new TypeError(jo);
|
|
3715
|
+
return Te(r) && (s = "leading" in r ? !!r.leading : s, o = "trailing" in r ? !!r.trailing : o), Oo(e, t, {
|
|
3726
3716
|
leading: s,
|
|
3727
3717
|
maxWait: t,
|
|
3728
3718
|
trailing: o
|
|
3729
3719
|
});
|
|
3730
3720
|
}
|
|
3731
|
-
const Mo = { class: "relative z-10 flex gap-4 md:gap-6 flex-col" },
|
|
3721
|
+
const Mo = { class: "relative z-10 flex gap-4 md:gap-6 flex-col" }, zo = { class: "absolute left-[-2px] top-[-2px] z-20 pr-8 bg-gradient-to-r from-foundation-page to-transparent" }, Ao = /* @__PURE__ */ c("div", { class: "absolute left-0 z-10 w-full h-[1px] mt-px bg-outline-3 top-8" }, null, -1), Po = ["data-tab-id", "disabled", "onClick"], To = { class: "absolute inset-0" }, Eo = { class: "flex gap-2 items-center px-2" }, Ro = { class: "min-w-6" }, Fo = {
|
|
3732
3722
|
key: 2,
|
|
3733
3723
|
class: "text-[10px] leading-tight py-0.5 text-foreground-on-primary font-medium px-1.5 rounded-full bg-gradient-to-tr from-[#7025EB] to-primary select-none mt-0.5"
|
|
3734
|
-
},
|
|
3724
|
+
}, Do = { class: "absolute right-[-2px] top-[-2px] z-20 pl-8 bg-gradient-to-l from-foundation-page to-transparent" }, Di = /* @__PURE__ */ T({
|
|
3735
3725
|
__name: "Horizontal",
|
|
3736
3726
|
props: /* @__PURE__ */ we({
|
|
3737
3727
|
items: null
|
|
@@ -3741,9 +3731,9 @@ const Mo = { class: "relative z-10 flex gap-4 md:gap-6 flex-col" }, Vo = { class
|
|
|
3741
3731
|
}),
|
|
3742
3732
|
emits: ["update:activeItem"],
|
|
3743
3733
|
setup(e) {
|
|
3744
|
-
const t = e, r =
|
|
3734
|
+
const t = e, r = Ve(e, "activeItem"), s = L(null), o = L(null), n = L(!1), p = L(!1), u = L(!0), i = h(() => (w) => {
|
|
3745
3735
|
var m;
|
|
3746
|
-
const _ = ((m = r.value) == null ? void 0 : m.id) === w.id,
|
|
3736
|
+
const _ = ((m = r.value) == null ? void 0 : m.id) === w.id, A = [
|
|
3747
3737
|
"relative",
|
|
3748
3738
|
"z-10",
|
|
3749
3739
|
"flex",
|
|
@@ -3759,14 +3749,14 @@ const Mo = { class: "relative z-10 flex gap-4 md:gap-6 flex-col" }, Vo = { class
|
|
|
3759
3749
|
"last:mr-6",
|
|
3760
3750
|
"whitespace-nowrap"
|
|
3761
3751
|
];
|
|
3762
|
-
return _ ?
|
|
3752
|
+
return _ ? A.push("text-primary", "hover:text-primary") : A.push("text-foreground"), A;
|
|
3763
3753
|
}), f = h(() => {
|
|
3764
3754
|
var m;
|
|
3765
3755
|
const w = (m = r.value) == null ? void 0 : m.id;
|
|
3766
3756
|
if (!w)
|
|
3767
3757
|
return null;
|
|
3768
3758
|
const _ = s.value;
|
|
3769
|
-
return _ && [..._.getElementsByClassName("tab-button")].find((
|
|
3759
|
+
return _ && [..._.getElementsByClassName("tab-button")].find((M) => M.dataset.tabId === w) || null;
|
|
3770
3760
|
}), y = h(() => {
|
|
3771
3761
|
const w = f.value;
|
|
3772
3762
|
return {
|
|
@@ -3782,15 +3772,15 @@ const Mo = { class: "relative z-10 flex gap-4 md:gap-6 flex-col" }, Vo = { class
|
|
|
3782
3772
|
const w = o.value;
|
|
3783
3773
|
if (!w)
|
|
3784
3774
|
return;
|
|
3785
|
-
const _ = w.scrollWidth,
|
|
3786
|
-
n.value = m >
|
|
3775
|
+
const _ = w.scrollWidth, A = w.clientWidth, m = w.scrollLeft, M = 1;
|
|
3776
|
+
n.value = m > M, p.value = m < _ - A - M;
|
|
3787
3777
|
}, g = () => {
|
|
3788
3778
|
var w;
|
|
3789
3779
|
(w = o.value) == null || w.scrollBy({ left: -100, behavior: "smooth" }), b();
|
|
3790
|
-
},
|
|
3780
|
+
}, V = () => {
|
|
3791
3781
|
var w;
|
|
3792
3782
|
(w = o.value) == null || w.scrollBy({ left: 100, behavior: "smooth" }), b();
|
|
3793
|
-
}, C =
|
|
3783
|
+
}, C = Vo(() => {
|
|
3794
3784
|
b();
|
|
3795
3785
|
}, 250), I = () => {
|
|
3796
3786
|
const w = f.value;
|
|
@@ -3810,9 +3800,9 @@ const Mo = { class: "relative z-10 flex gap-4 md:gap-6 flex-col" }, Vo = { class
|
|
|
3810
3800
|
), Ee(() => {
|
|
3811
3801
|
C.cancel();
|
|
3812
3802
|
}), (w, _) => {
|
|
3813
|
-
const
|
|
3803
|
+
const A = st("tippy");
|
|
3814
3804
|
return a(), d("div", Mo, [
|
|
3815
|
-
c("div",
|
|
3805
|
+
c("div", zo, [
|
|
3816
3806
|
n.value ? (a(), d("button", {
|
|
3817
3807
|
key: 0,
|
|
3818
3808
|
class: "bg-foundation p-1 rounded-full border border-outline-4 shadow",
|
|
@@ -3839,7 +3829,7 @@ const Mo = { class: "relative z-10 flex gap-4 md:gap-6 flex-col" }, Vo = { class
|
|
|
3839
3829
|
class: "flex w-full gap-2 sm:gap-3"
|
|
3840
3830
|
}, [
|
|
3841
3831
|
(a(!0), d(q, null, K(e.items, (m) => {
|
|
3842
|
-
var
|
|
3832
|
+
var M;
|
|
3843
3833
|
return a(), d("button", {
|
|
3844
3834
|
key: m.id,
|
|
3845
3835
|
"data-tab-id": m.id,
|
|
@@ -3850,38 +3840,38 @@ const Mo = { class: "relative z-10 flex gap-4 md:gap-6 flex-col" }, Vo = { class
|
|
|
3850
3840
|
disabled: m.disabled,
|
|
3851
3841
|
onClick: (P) => k(m)
|
|
3852
3842
|
}, [
|
|
3853
|
-
se(c("div",
|
|
3843
|
+
se(c("div", To, null, 512), [
|
|
3854
3844
|
[
|
|
3855
|
-
|
|
3845
|
+
A,
|
|
3856
3846
|
m.disabled && m.disabledMessage ? m.disabledMessage : void 0
|
|
3857
3847
|
]
|
|
3858
3848
|
]),
|
|
3859
|
-
c("div",
|
|
3849
|
+
c("div", Eo, [
|
|
3860
3850
|
m.icon ? (a(), j(X(m.icon), {
|
|
3861
3851
|
key: 0,
|
|
3862
3852
|
class: "shrink-0 h-4 w-4 stroke-[2px]"
|
|
3863
3853
|
})) : $("", !0),
|
|
3864
|
-
c("span",
|
|
3854
|
+
c("span", Ro, B(m.title), 1),
|
|
3865
3855
|
m.count ? (a(), d("div", {
|
|
3866
3856
|
key: 1,
|
|
3867
3857
|
class: x([
|
|
3868
3858
|
"rounded-full px-2 text-[11px] transition-all min-w-6",
|
|
3869
|
-
((
|
|
3859
|
+
((M = r.value) == null ? void 0 : M.id) === m.id ? "text-primary bg-blue-100" : "text-foreground-2 bg-gray-200 dark:bg-foundation"
|
|
3870
3860
|
])
|
|
3871
3861
|
}, [
|
|
3872
3862
|
c("span", null, B(m.count), 1)
|
|
3873
3863
|
], 2)) : $("", !0),
|
|
3874
|
-
m.tag ? (a(), d("div",
|
|
3864
|
+
m.tag ? (a(), d("div", Fo, B(m.tag), 1)) : $("", !0)
|
|
3875
3865
|
])
|
|
3876
|
-
], 10,
|
|
3866
|
+
], 10, Po);
|
|
3877
3867
|
}), 128))
|
|
3878
3868
|
], 512)
|
|
3879
3869
|
], 544),
|
|
3880
|
-
c("div",
|
|
3870
|
+
c("div", Do, [
|
|
3881
3871
|
p.value ? (a(), d("button", {
|
|
3882
3872
|
key: 0,
|
|
3883
3873
|
class: "bg-foundation p-1 rounded-full border border-outline-3 shadow",
|
|
3884
|
-
onClick:
|
|
3874
|
+
onClick: V
|
|
3885
3875
|
}, [
|
|
3886
3876
|
O(l(vs), { class: "h-4 w-4" })
|
|
3887
3877
|
])) : $("", !0)
|
|
@@ -3893,10 +3883,10 @@ const Mo = { class: "relative z-10 flex gap-4 md:gap-6 flex-col" }, Vo = { class
|
|
|
3893
3883
|
};
|
|
3894
3884
|
}
|
|
3895
3885
|
});
|
|
3896
|
-
const
|
|
3886
|
+
const Uo = { class: "flex gap-8 flex-col lg:flex-row" }, Wo = { class: "lg:w-2/12" }, qo = { class: "flex w-full flex-col gap-1" }, Ho = ["data-tab-id", "disabled", "onClick"], Go = { class: "absolute inset-0" }, Ko = { class: "flex gap-2 items-center px-2" }, No = { class: "min-w-6" }, Xo = {
|
|
3897
3887
|
key: 2,
|
|
3898
3888
|
class: "text-[10px] leading-tight py-0.5 text-foreground-on-primary font-medium px-1.5 rounded-full bg-gradient-to-tr from-[#7025EB] to-primary select-none mt-0.5"
|
|
3899
|
-
},
|
|
3889
|
+
}, Zo = { class: "lg:w-10/12" }, Ui = /* @__PURE__ */ T({
|
|
3900
3890
|
__name: "Vertical",
|
|
3901
3891
|
props: /* @__PURE__ */ we({
|
|
3902
3892
|
items: null
|
|
@@ -3906,7 +3896,7 @@ const Do = { class: "flex gap-8 flex-col lg:flex-row" }, Uo = { class: "lg:w-2/1
|
|
|
3906
3896
|
}),
|
|
3907
3897
|
emits: ["update:activeItem"],
|
|
3908
3898
|
setup(e) {
|
|
3909
|
-
const t = e, r =
|
|
3899
|
+
const t = e, r = Ve(e, "activeItem"), s = h(() => (n) => {
|
|
3910
3900
|
var i;
|
|
3911
3901
|
const p = ((i = r.value) == null ? void 0 : i.id) === n.id, u = [
|
|
3912
3902
|
"relative",
|
|
@@ -3931,9 +3921,9 @@ const Do = { class: "flex gap-8 flex-col lg:flex-row" }, Uo = { class: "lg:w-2/1
|
|
|
3931
3921
|
}
|
|
3932
3922
|
), (n, p) => {
|
|
3933
3923
|
const u = st("tippy");
|
|
3934
|
-
return a(), d("div",
|
|
3935
|
-
c("div",
|
|
3936
|
-
c("div",
|
|
3924
|
+
return a(), d("div", Uo, [
|
|
3925
|
+
c("div", Wo, [
|
|
3926
|
+
c("div", qo, [
|
|
3937
3927
|
(a(!0), d(q, null, K(e.items, (i) => {
|
|
3938
3928
|
var f;
|
|
3939
3929
|
return a(), d("button", {
|
|
@@ -3943,18 +3933,18 @@ const Do = { class: "flex gap-8 flex-col lg:flex-row" }, Uo = { class: "lg:w-2/1
|
|
|
3943
3933
|
disabled: i.disabled,
|
|
3944
3934
|
onClick: (y) => o(i)
|
|
3945
3935
|
}, [
|
|
3946
|
-
se(c("div",
|
|
3936
|
+
se(c("div", Go, null, 512), [
|
|
3947
3937
|
[
|
|
3948
3938
|
u,
|
|
3949
3939
|
i.disabled && i.disabledMessage ? i.disabledMessage : void 0
|
|
3950
3940
|
]
|
|
3951
3941
|
]),
|
|
3952
|
-
c("div",
|
|
3942
|
+
c("div", Ko, [
|
|
3953
3943
|
i.icon ? (a(), j(X(i.icon), {
|
|
3954
3944
|
key: 0,
|
|
3955
3945
|
class: "shrink-0 h-4 w-4 stroke-[2px]"
|
|
3956
3946
|
})) : $("", !0),
|
|
3957
|
-
c("span",
|
|
3947
|
+
c("span", No, B(i.title), 1),
|
|
3958
3948
|
i.count ? (a(), d("div", {
|
|
3959
3949
|
key: 1,
|
|
3960
3950
|
class: x([
|
|
@@ -3964,19 +3954,19 @@ const Do = { class: "flex gap-8 flex-col lg:flex-row" }, Uo = { class: "lg:w-2/1
|
|
|
3964
3954
|
}, [
|
|
3965
3955
|
c("span", null, B(i.count), 1)
|
|
3966
3956
|
], 2)) : $("", !0),
|
|
3967
|
-
i.tag ? (a(), d("div",
|
|
3957
|
+
i.tag ? (a(), d("div", Xo, B(i.tag), 1)) : $("", !0)
|
|
3968
3958
|
])
|
|
3969
|
-
], 10,
|
|
3959
|
+
], 10, Ho);
|
|
3970
3960
|
}), 128))
|
|
3971
3961
|
])
|
|
3972
3962
|
]),
|
|
3973
|
-
c("div",
|
|
3963
|
+
c("div", Zo, [
|
|
3974
3964
|
R(n.$slots, "default", { activeItem: r.value })
|
|
3975
3965
|
])
|
|
3976
3966
|
]);
|
|
3977
3967
|
};
|
|
3978
3968
|
}
|
|
3979
|
-
}),
|
|
3969
|
+
}), Qo = { class: "text-foreground" }, Jo = { class: "w-full text-sm overflow-x-auto overflow-y-visible simple-scrollbar border border-outline-3 rounded-lg" }, Yo = ["onClick", "onKeypress"], er = /* @__PURE__ */ c("div", { class: "text-gray-900 font-medium order-1" }, "Placeholder", -1), tr = { class: "absolute right-1.5 gap-1 flex items-center p-0 h-full" }, sr = { class: "w-full text-center label-light text-foreground-2 italic" }, Wi = /* @__PURE__ */ T({
|
|
3980
3970
|
__name: "Table",
|
|
3981
3971
|
props: {
|
|
3982
3972
|
items: null,
|
|
@@ -4018,8 +4008,8 @@ const Do = { class: "flex gap-8 flex-col lg:flex-row" }, Uo = { class: "lg:w-2/1
|
|
|
4018
4008
|
var i;
|
|
4019
4009
|
(i = t.onRowClick) == null || i.call(t, u);
|
|
4020
4010
|
};
|
|
4021
|
-
return (u, i) => (a(), d("div",
|
|
4022
|
-
c("div",
|
|
4011
|
+
return (u, i) => (a(), d("div", Qo, [
|
|
4012
|
+
c("div", Jo, [
|
|
4023
4013
|
e.items.length > 0 ? (a(), d("div", {
|
|
4024
4014
|
key: 0,
|
|
4025
4015
|
class: "grid z-10 grid-cols-12 items-center gap-6 font-semibold bg-foundation-page rounded-t-lg w-full border-b border-outline-3 pb-2 pt-4 px-4 min-w-[750px]",
|
|
@@ -4047,10 +4037,10 @@ const Do = { class: "flex gap-8 flex-col lg:flex-row" }, Uo = { class: "lg:w-2/1
|
|
|
4047
4037
|
tabindex: "0"
|
|
4048
4038
|
}, [
|
|
4049
4039
|
R(u.$slots, y.id, { item: f }, () => [
|
|
4050
|
-
|
|
4040
|
+
er
|
|
4051
4041
|
])
|
|
4052
4042
|
], 2))), 128)),
|
|
4053
|
-
c("div",
|
|
4043
|
+
c("div", tr, [
|
|
4054
4044
|
(a(!0), d(q, null, K(e.buttons, (y) => (a(), d("div", {
|
|
4055
4045
|
key: y.label
|
|
4056
4046
|
}, [
|
|
@@ -4066,7 +4056,7 @@ const Do = { class: "flex gap-8 flex-col lg:flex-row" }, Uo = { class: "lg:w-2/1
|
|
|
4066
4056
|
}, null, 8, ["icon-left", "class", "text-color", "to", "onClick"])
|
|
4067
4057
|
]))), 128))
|
|
4068
4058
|
])
|
|
4069
|
-
], 46,
|
|
4059
|
+
], 46, Yo))), 128)) : (a(), d("div", {
|
|
4070
4060
|
key: 1,
|
|
4071
4061
|
tabindex: "0",
|
|
4072
4062
|
style: ee({ paddingRight: r.value }),
|
|
@@ -4077,7 +4067,7 @@ const Do = { class: "flex gap-8 flex-col lg:flex-row" }, Uo = { class: "lg:w-2/1
|
|
|
4077
4067
|
tabindex: "0"
|
|
4078
4068
|
}, [
|
|
4079
4069
|
R(u.$slots, "empty", {}, () => [
|
|
4080
|
-
c("div",
|
|
4070
|
+
c("div", sr, B(e.emptyMessage), 1)
|
|
4081
4071
|
])
|
|
4082
4072
|
], 2)
|
|
4083
4073
|
], 6))
|
|
@@ -4085,7 +4075,7 @@ const Do = { class: "flex gap-8 flex-col lg:flex-row" }, Uo = { class: "lg:w-2/1
|
|
|
4085
4075
|
])
|
|
4086
4076
|
]));
|
|
4087
4077
|
}
|
|
4088
|
-
}),
|
|
4078
|
+
}), nr = /* @__PURE__ */ c("div", { class: "h-8" }, null, -1), lr = { class: "w-full flex flex-col items-center my-2 space-y-2 mt-4" }, ar = { class: "inline-flex items-center space-x-1" }, or = /* @__PURE__ */ c("span", { class: "text-foreground-2" }, "An error occurred while loading", -1), qi = /* @__PURE__ */ T({
|
|
4089
4079
|
__name: "InfiniteLoading",
|
|
4090
4080
|
props: {
|
|
4091
4081
|
settings: null,
|
|
@@ -4103,29 +4093,29 @@ const Do = { class: "flex gap-8 flex-col lg:flex-row" }, Uo = { class: "lg:w-2/1
|
|
|
4103
4093
|
ref_key: "wrapper",
|
|
4104
4094
|
ref: t
|
|
4105
4095
|
}, [
|
|
4106
|
-
r.value ? (a(), j(l(
|
|
4096
|
+
r.value ? (a(), j(l(ln), ue({ key: 0 }, s.$props.settings || {}, {
|
|
4107
4097
|
onInfinite: o[0] || (o[0] = (n) => s.$emit("infinite", n))
|
|
4108
4098
|
}), {
|
|
4109
|
-
spinner:
|
|
4099
|
+
spinner: z(() => [
|
|
4110
4100
|
O(ut, {
|
|
4111
4101
|
loading: !0,
|
|
4112
4102
|
class: "my-2"
|
|
4113
4103
|
})
|
|
4114
4104
|
]),
|
|
4115
|
-
complete:
|
|
4116
|
-
|
|
4105
|
+
complete: z(() => [
|
|
4106
|
+
nr
|
|
4117
4107
|
]),
|
|
4118
|
-
error:
|
|
4119
|
-
c("div",
|
|
4120
|
-
c("div",
|
|
4108
|
+
error: z(({ retry: n }) => [
|
|
4109
|
+
c("div", lr, [
|
|
4110
|
+
c("div", ar, [
|
|
4121
4111
|
O(l(gs), { class: "w-5 h-5 text-danger" }),
|
|
4122
|
-
|
|
4112
|
+
or
|
|
4123
4113
|
]),
|
|
4124
4114
|
e.allowRetry ? (a(), j(ce, {
|
|
4125
4115
|
key: 0,
|
|
4126
4116
|
onClick: n
|
|
4127
4117
|
}, {
|
|
4128
|
-
default:
|
|
4118
|
+
default: z(() => [
|
|
4129
4119
|
U("Retry")
|
|
4130
4120
|
]),
|
|
4131
4121
|
_: 2
|
|
@@ -4136,10 +4126,10 @@ const Do = { class: "flex gap-8 flex-col lg:flex-row" }, Uo = { class: "lg:w-2/1
|
|
|
4136
4126
|
}, 16)) : $("", !0)
|
|
4137
4127
|
], 512));
|
|
4138
4128
|
}
|
|
4139
|
-
}),
|
|
4129
|
+
}), rr = { class: "relative group" }, ir = {
|
|
4140
4130
|
key: 0,
|
|
4141
4131
|
class: "absolute -inset-1 bg-blue-300 dark:bg-blue-500 opacity-5 dark:opacity-0 rounded-md blur-sm group-hover:opacity-60 dark:group-hover:opacity-30 transition duration-500"
|
|
4142
|
-
},
|
|
4132
|
+
}, Hi = /* @__PURE__ */ T({
|
|
4143
4133
|
__name: "Panel",
|
|
4144
4134
|
props: {
|
|
4145
4135
|
/**
|
|
@@ -4185,8 +4175,8 @@ const Do = { class: "flex gap-8 flex-col lg:flex-row" }, Uo = { class: "lg:w-2/1
|
|
|
4185
4175
|
const u = ["rounded-lg"];
|
|
4186
4176
|
return s.noShadow || u.push("shadow"), s.ring && u.push("ring-outline-2 hover:ring-2"), s.panelClasses && u.push(s.panelClasses), u.join(" ");
|
|
4187
4177
|
});
|
|
4188
|
-
return (u, i) => (a(), d("div",
|
|
4189
|
-
e.fancyGlow ? (a(), d("div",
|
|
4178
|
+
return (u, i) => (a(), d("div", rr, [
|
|
4179
|
+
e.fancyGlow ? (a(), d("div", ir)) : $("", !0),
|
|
4190
4180
|
(a(), j(X(e.form ? "form" : "div"), {
|
|
4191
4181
|
class: x([
|
|
4192
4182
|
"relative divide-outline-3 bg-foundation text-foreground flex flex-col divide-y overflow-hidden",
|
|
@@ -4194,7 +4184,7 @@ const Do = { class: "flex gap-8 flex-col lg:flex-row" }, Uo = { class: "lg:w-2/1
|
|
|
4194
4184
|
]),
|
|
4195
4185
|
onSubmit: i[0] || (i[0] = (f) => r("submit", f))
|
|
4196
4186
|
}, {
|
|
4197
|
-
default:
|
|
4187
|
+
default: z(() => [
|
|
4198
4188
|
u.$slots.header ? (a(), d("div", {
|
|
4199
4189
|
key: 0,
|
|
4200
4190
|
class: x(o.value)
|
|
@@ -4217,28 +4207,28 @@ const Do = { class: "flex gap-8 flex-col lg:flex-row" }, Uo = { class: "lg:w-2/1
|
|
|
4217
4207
|
}, 40, ["class"]))
|
|
4218
4208
|
]));
|
|
4219
4209
|
}
|
|
4220
|
-
}),
|
|
4221
|
-
function
|
|
4222
|
-
return a(), d("aside",
|
|
4210
|
+
}), ur = {}, cr = { class: "flex flex-col justify-between h-full w-full" };
|
|
4211
|
+
function dr(e, t) {
|
|
4212
|
+
return a(), d("aside", cr, [
|
|
4223
4213
|
R(e.$slots, "default")
|
|
4224
4214
|
]);
|
|
4225
4215
|
}
|
|
4226
|
-
const
|
|
4227
|
-
function
|
|
4228
|
-
return a(), d("nav",
|
|
4216
|
+
const Gi = /* @__PURE__ */ Ce(ur, [["render", dr]]), fr = {}, pr = { class: "flex flex-col gap-4" };
|
|
4217
|
+
function mr(e, t) {
|
|
4218
|
+
return a(), d("nav", pr, [
|
|
4229
4219
|
R(e.$slots, "default")
|
|
4230
4220
|
]);
|
|
4231
4221
|
}
|
|
4232
|
-
const
|
|
4222
|
+
const Ki = /* @__PURE__ */ Ce(fr, [["render", mr]]), hr = { class: "flex flex-col" }, vr = {
|
|
4233
4223
|
key: 0,
|
|
4234
4224
|
class: "select-none mb-1"
|
|
4235
|
-
},
|
|
4225
|
+
}, gr = { class: "font-bold text-foreground-2 text-xs flex items-center gap-1.5" }, br = {
|
|
4236
4226
|
key: 1,
|
|
4237
4227
|
class: "flex gap-1 items-center w-full p-0.5 text-foreground-2"
|
|
4238
|
-
},
|
|
4228
|
+
}, yr = {
|
|
4239
4229
|
key: 0,
|
|
4240
4230
|
class: "h-5 w-5 flex items-center justify-center"
|
|
4241
|
-
},
|
|
4231
|
+
}, xr = { class: "font-bold text-xs" }, kr = { class: "flex flex-col" }, Ni = /* @__PURE__ */ T({
|
|
4242
4232
|
__name: "Group",
|
|
4243
4233
|
props: {
|
|
4244
4234
|
title: null,
|
|
@@ -4246,8 +4236,8 @@ const Gi = /* @__PURE__ */ Ce(dr, [["render", pr]]), mr = { class: "flex flex-co
|
|
|
4246
4236
|
},
|
|
4247
4237
|
setup(e) {
|
|
4248
4238
|
const t = L(!0);
|
|
4249
|
-
return (r, s) => (a(), d("div",
|
|
4250
|
-
e.title ? (a(), d("div",
|
|
4239
|
+
return (r, s) => (a(), d("div", hr, [
|
|
4240
|
+
e.title ? (a(), d("div", vr, [
|
|
4251
4241
|
e.collapsible ? (a(), d("button", {
|
|
4252
4242
|
key: 0,
|
|
4253
4243
|
class: "group flex gap-1.5 items-center w-full hover:bg-foundation-3 rounded-md p-0.5",
|
|
@@ -4256,31 +4246,31 @@ const Gi = /* @__PURE__ */ Ce(dr, [["render", pr]]), mr = { class: "flex flex-co
|
|
|
4256
4246
|
O(l(lt), {
|
|
4257
4247
|
class: x([t.value ? "" : "rotate-180", "h-2.5 w-2.5"])
|
|
4258
4248
|
}, null, 8, ["class"]),
|
|
4259
|
-
c("h6",
|
|
4260
|
-
])) : (a(), d("div",
|
|
4261
|
-
r.$slots["title-icon"] ? (a(), d("div",
|
|
4249
|
+
c("h6", gr, B(e.title), 1)
|
|
4250
|
+
])) : (a(), d("div", br, [
|
|
4251
|
+
r.$slots["title-icon"] ? (a(), d("div", yr, [
|
|
4262
4252
|
R(r.$slots, "title-icon")
|
|
4263
4253
|
])) : $("", !0),
|
|
4264
|
-
c("h6",
|
|
4254
|
+
c("h6", xr, B(e.title), 1)
|
|
4265
4255
|
]))
|
|
4266
4256
|
])) : $("", !0),
|
|
4267
|
-
se(c("div",
|
|
4257
|
+
se(c("div", kr, [
|
|
4268
4258
|
R(r.$slots, "default")
|
|
4269
4259
|
], 512), [
|
|
4270
4260
|
[Ct, t.value]
|
|
4271
4261
|
])
|
|
4272
4262
|
]));
|
|
4273
4263
|
}
|
|
4274
|
-
}),
|
|
4264
|
+
}), wr = { class: "flex items-center gap-2" }, Cr = {
|
|
4275
4265
|
key: 0,
|
|
4276
4266
|
class: "h-5 w-5 flex items-center justify-center"
|
|
4277
|
-
},
|
|
4267
|
+
}, $r = {
|
|
4278
4268
|
key: 0,
|
|
4279
4269
|
class: "text-xs uppercase bg-primary-muted py-0.5 px-2 rounded-full font-medium text-primary-focus group-hover:bg-white"
|
|
4280
|
-
},
|
|
4270
|
+
}, Ir = {
|
|
4281
4271
|
key: 1,
|
|
4282
4272
|
class: "flex flex-col"
|
|
4283
|
-
},
|
|
4273
|
+
}, Sr = { class: "font-bold text-foreground-2 text-xs flex items-center gap-1.5" }, Br = { class: "pl-4" }, Xi = /* @__PURE__ */ T({
|
|
4284
4274
|
__name: "Item",
|
|
4285
4275
|
props: {
|
|
4286
4276
|
label: null,
|
|
@@ -4291,7 +4281,7 @@ const Gi = /* @__PURE__ */ Ce(dr, [["render", pr]]), mr = { class: "flex flex-co
|
|
|
4291
4281
|
setup(e) {
|
|
4292
4282
|
const t = L(!0), r = X("NuxtLink"), o = !!Fe().default;
|
|
4293
4283
|
return (n, p) => (a(), d("div", null, [
|
|
4294
|
-
o ? (a(), d("div",
|
|
4284
|
+
o ? (a(), d("div", Ir, [
|
|
4295
4285
|
c("button", {
|
|
4296
4286
|
class: "group flex gap-1.5 items-center w-full hover:bg-foundation-3 rounded-md p-0.5 cursor-pointer",
|
|
4297
4287
|
onClick: p[0] || (p[0] = (u) => t.value = !t.value)
|
|
@@ -4299,9 +4289,9 @@ const Gi = /* @__PURE__ */ Ce(dr, [["render", pr]]), mr = { class: "flex flex-co
|
|
|
4299
4289
|
O(l(lt), {
|
|
4300
4290
|
class: x([t.value ? "" : "rotate-180", "h-2.5 w-2.5"])
|
|
4301
4291
|
}, null, 8, ["class"]),
|
|
4302
|
-
c("h6",
|
|
4292
|
+
c("h6", Sr, B(e.label), 1)
|
|
4303
4293
|
]),
|
|
4304
|
-
se(c("div",
|
|
4294
|
+
se(c("div", Br, [
|
|
4305
4295
|
R(n.$slots, "default")
|
|
4306
4296
|
], 512), [
|
|
4307
4297
|
[Ct, t.value]
|
|
@@ -4314,22 +4304,22 @@ const Gi = /* @__PURE__ */ Ce(dr, [["render", pr]]), mr = { class: "flex flex-co
|
|
|
4314
4304
|
external: e.external,
|
|
4315
4305
|
target: e.external ? "_blank" : void 0
|
|
4316
4306
|
}, {
|
|
4317
|
-
default:
|
|
4318
|
-
c("div",
|
|
4319
|
-
n.$slots.icon ? (a(), d("div",
|
|
4307
|
+
default: z(() => [
|
|
4308
|
+
c("div", wr, [
|
|
4309
|
+
n.$slots.icon ? (a(), d("div", Cr, [
|
|
4320
4310
|
R(n.$slots, "icon")
|
|
4321
4311
|
])) : $("", !0),
|
|
4322
4312
|
c("span", {
|
|
4323
4313
|
class: x(n.$slots.icon ? "" : "pl-2")
|
|
4324
4314
|
}, B(e.label), 3)
|
|
4325
4315
|
]),
|
|
4326
|
-
e.tag ? (a(), d("div",
|
|
4316
|
+
e.tag ? (a(), d("div", $r, B(e.tag), 1)) : $("", !0)
|
|
4327
4317
|
]),
|
|
4328
4318
|
_: 3
|
|
4329
4319
|
}, 8, ["to", "external", "target"]))
|
|
4330
4320
|
]));
|
|
4331
4321
|
}
|
|
4332
|
-
}),
|
|
4322
|
+
}), _r = { class: "flex-shrink-0" }, Lr = /* @__PURE__ */ c("span", { class: "sr-only" }, "Dismiss", -1), Zi = /* @__PURE__ */ T({
|
|
4333
4323
|
__name: "Alert",
|
|
4334
4324
|
props: {
|
|
4335
4325
|
color: { default: "success" },
|
|
@@ -4347,7 +4337,7 @@ const Gi = /* @__PURE__ */ Ce(dr, [["render", pr]]), mr = { class: "flex flex-co
|
|
|
4347
4337
|
case "info":
|
|
4348
4338
|
return $s;
|
|
4349
4339
|
case "warning":
|
|
4350
|
-
return
|
|
4340
|
+
return Me;
|
|
4351
4341
|
case "danger":
|
|
4352
4342
|
return Cs;
|
|
4353
4343
|
case "success":
|
|
@@ -4423,14 +4413,14 @@ const Gi = /* @__PURE__ */ Ce(dr, [["render", pr]]), mr = { class: "flex flex-co
|
|
|
4423
4413
|
var C;
|
|
4424
4414
|
const g = ["flex"];
|
|
4425
4415
|
s.value || g.push("grow justify-end");
|
|
4426
|
-
const
|
|
4416
|
+
const V = s.value && ((C = t.actions) == null ? void 0 : C.length);
|
|
4427
4417
|
switch (t.size) {
|
|
4428
4418
|
case "xs":
|
|
4429
|
-
g.push("space-x-1"),
|
|
4419
|
+
g.push("space-x-1"), V && g.push("mt-1");
|
|
4430
4420
|
break;
|
|
4431
4421
|
case "default":
|
|
4432
4422
|
default:
|
|
4433
|
-
g.push("space-x-2"),
|
|
4423
|
+
g.push("space-x-2"), V && g.push("mt-4");
|
|
4434
4424
|
break;
|
|
4435
4425
|
}
|
|
4436
4426
|
return g.join(" ");
|
|
@@ -4503,13 +4493,13 @@ const Gi = /* @__PURE__ */ Ce(dr, [["render", pr]]), mr = { class: "flex flex-co
|
|
|
4503
4493
|
return "sm";
|
|
4504
4494
|
}
|
|
4505
4495
|
});
|
|
4506
|
-
return (g,
|
|
4496
|
+
return (g, V) => (a(), d("div", {
|
|
4507
4497
|
class: x(["rounded-md", [n.value, y.value]])
|
|
4508
4498
|
}, [
|
|
4509
4499
|
c("div", {
|
|
4510
4500
|
class: x(["flex", p.value])
|
|
4511
4501
|
}, [
|
|
4512
|
-
c("div",
|
|
4502
|
+
c("div", _r, [
|
|
4513
4503
|
(a(), j(X(o.value), {
|
|
4514
4504
|
class: x(k.value),
|
|
4515
4505
|
"aria-hidden": "true"
|
|
@@ -4544,7 +4534,7 @@ const Gi = /* @__PURE__ */ Ce(dr, [["render", pr]]), mr = { class: "flex flex-co
|
|
|
4544
4534
|
external: C.externalUrl || !1,
|
|
4545
4535
|
onClick: (w) => C.onClick || l(nt)
|
|
4546
4536
|
}, {
|
|
4547
|
-
default:
|
|
4537
|
+
default: z(() => [
|
|
4548
4538
|
U(B(C.title), 1)
|
|
4549
4539
|
]),
|
|
4550
4540
|
_: 2
|
|
@@ -4558,9 +4548,9 @@ const Gi = /* @__PURE__ */ Ce(dr, [["render", pr]]), mr = { class: "flex flex-co
|
|
|
4558
4548
|
c("button", {
|
|
4559
4549
|
type: "button",
|
|
4560
4550
|
class: x(["inline-flex rounded-md focus:outline-none focus:ring-2", v.value]),
|
|
4561
|
-
onClick:
|
|
4551
|
+
onClick: V[0] || (V[0] = (C) => g.$emit("dismiss"))
|
|
4562
4552
|
}, [
|
|
4563
|
-
|
|
4553
|
+
Lr,
|
|
4564
4554
|
O(l(ve), {
|
|
4565
4555
|
class: "h-5 w-5",
|
|
4566
4556
|
"aria-hidden": "true"
|
|
@@ -4571,15 +4561,15 @@ const Gi = /* @__PURE__ */ Ce(dr, [["render", pr]]), mr = { class: "flex flex-co
|
|
|
4571
4561
|
], 2));
|
|
4572
4562
|
}
|
|
4573
4563
|
});
|
|
4574
|
-
function
|
|
4575
|
-
var g,
|
|
4576
|
-
const { get: t, initialState: r, readOptions: s, set: o, asyncRead: n = !0, debugging: p } = e, u = p == null ? void 0 : p.log, i = () => (new Error("Trace:").stack || "").substring(7), f = ((
|
|
4564
|
+
function Qi(e) {
|
|
4565
|
+
var g, V;
|
|
4566
|
+
const { get: t, initialState: r, readOptions: s, set: o, asyncRead: n = !0, debugging: p } = e, u = p == null ? void 0 : p.log, i = () => (new Error("Trace:").stack || "").substring(7), f = ((V = (g = e.debugging) == null ? void 0 : g.log) == null ? void 0 : V.logger) || console.debug, y = u && !u.writesOnly ? () => {
|
|
4577
4567
|
const C = t();
|
|
4578
4568
|
return f(`debugging: '${u.name}' read`, C, i()), C;
|
|
4579
|
-
} : t, k = u && !u.readsOnly ? (C) => (f(`debugging: '${u.name}' written to`, C, i()), o(C)) : o, v = n ?
|
|
4569
|
+
} : t, k = u && !u.readsOnly ? (C) => (f(`debugging: '${u.name}' written to`, C, i()), o(C)) : o, v = n ? Ps(y, r, s) : h(y), b = h(() => v.value);
|
|
4580
4570
|
return b.update = k, b;
|
|
4581
4571
|
}
|
|
4582
|
-
const
|
|
4572
|
+
const Or = /* @__PURE__ */ T({
|
|
4583
4573
|
__name: "ContextManager",
|
|
4584
4574
|
setup(e, { expose: t }) {
|
|
4585
4575
|
const s = Zt().provides, o = Object.getOwnPropertySymbols(s).find(
|
|
@@ -4599,13 +4589,13 @@ const Lr = /* @__PURE__ */ T({
|
|
|
4599
4589
|
n == null || n.selectActiveOption();
|
|
4600
4590
|
}, isOpen: () => (n == null ? void 0 : n.comboboxState.value) === 0 }), (v, b) => R(v.$slots, "default");
|
|
4601
4591
|
}
|
|
4602
|
-
}),
|
|
4592
|
+
}), jr = ["for"], Vr = ["disabled", "placeholder"], Mr = /* @__PURE__ */ c("span", { class: "text-xs sr-only" }, "Clear input", -1), zr = { key: 1 }, Ar = /* @__PURE__ */ c("div", { class: "text-foreground-2 text-center" }, [
|
|
4603
4593
|
/* @__PURE__ */ U(" Press "),
|
|
4604
4594
|
/* @__PURE__ */ c("strong", null, "Enter"),
|
|
4605
4595
|
/* @__PURE__ */ U(" to create tag ⚡ ")
|
|
4606
|
-
], -1),
|
|
4596
|
+
], -1), Pr = [
|
|
4607
4597
|
Ar
|
|
4608
|
-
],
|
|
4598
|
+
], Tr = ["id"], Ji = /* @__PURE__ */ T({
|
|
4609
4599
|
__name: "Tags",
|
|
4610
4600
|
props: {
|
|
4611
4601
|
name: null,
|
|
@@ -4629,7 +4619,7 @@ const Lr = /* @__PURE__ */ T({
|
|
|
4629
4619
|
},
|
|
4630
4620
|
emits: ["update:modelValue", "change", "clear"],
|
|
4631
4621
|
setup(e, { expose: t, emit: r }) {
|
|
4632
|
-
const s = (F) => F.type === "input", o = r, n = e, p = L(null), { focused: u } =
|
|
4622
|
+
const s = (F) => F.type === "input", o = r, n = e, p = L(null), { focused: u } = Ts(p), i = L(
|
|
4633
4623
|
null
|
|
4634
4624
|
), {
|
|
4635
4625
|
coreInputClasses: f,
|
|
@@ -4638,7 +4628,7 @@ const Lr = /* @__PURE__ */ T({
|
|
|
4638
4628
|
title: v,
|
|
4639
4629
|
helpTip: b,
|
|
4640
4630
|
helpTipId: g,
|
|
4641
|
-
hideHelpTip:
|
|
4631
|
+
hideHelpTip: V,
|
|
4642
4632
|
helpTipClasses: C,
|
|
4643
4633
|
errorMessage: I,
|
|
4644
4634
|
clear: w,
|
|
@@ -4650,7 +4640,7 @@ const Lr = /* @__PURE__ */ T({
|
|
|
4650
4640
|
// options: {
|
|
4651
4641
|
// customClear: () => (selectedItems.value = [])
|
|
4652
4642
|
// }
|
|
4653
|
-
}),
|
|
4643
|
+
}), A = L([]), m = L(!1), M = L(!1), P = L(""), E = h({
|
|
4654
4644
|
get: () => _.value || [],
|
|
4655
4645
|
set: (F) => {
|
|
4656
4646
|
_.value = es(F).filter((W) => !!W.length);
|
|
@@ -4667,7 +4657,7 @@ const Lr = /* @__PURE__ */ T({
|
|
|
4667
4657
|
default:
|
|
4668
4658
|
return "h-8";
|
|
4669
4659
|
}
|
|
4670
|
-
}), fe = h(() => n.showClear && !!E.value.length),
|
|
4660
|
+
}), fe = h(() => n.showClear && !!E.value.length), Ae = h(() => {
|
|
4671
4661
|
const F = [
|
|
4672
4662
|
y.value,
|
|
4673
4663
|
n.disabled ? "cursor-not-allowed !bg-foundation-disabled !text-disabled-muted" : ""
|
|
@@ -4683,12 +4673,12 @@ const Lr = /* @__PURE__ */ T({
|
|
|
4683
4673
|
}
|
|
4684
4674
|
}, qe = () => {
|
|
4685
4675
|
var F;
|
|
4686
|
-
(F = p.value) == null || F.blur(),
|
|
4676
|
+
(F = p.value) == null || F.blur(), M.value = !1;
|
|
4687
4677
|
}, ye = (F) => {
|
|
4688
4678
|
if (F.key !== "Backspace" || P.value.length)
|
|
4689
4679
|
return;
|
|
4690
4680
|
const W = E.value.slice();
|
|
4691
|
-
W.pop(), E.value = W,
|
|
4681
|
+
W.pop(), E.value = W, M.value = !1;
|
|
4692
4682
|
}, ae = () => {
|
|
4693
4683
|
var F, W, D;
|
|
4694
4684
|
(F = i.value) != null && F.isOpen() ? (W = i.value) == null || W.goUp() : (D = i.value) == null || D.open();
|
|
@@ -4696,7 +4686,7 @@ const Lr = /* @__PURE__ */ T({
|
|
|
4696
4686
|
var F, W, D;
|
|
4697
4687
|
(F = i.value) != null && F.isOpen() ? (W = i.value) == null || W.goDown() : (D = i.value) == null || D.open();
|
|
4698
4688
|
}, Z = async () => {
|
|
4699
|
-
n.getAutocompleteItems && (m.value = !0,
|
|
4689
|
+
n.getAutocompleteItems && (m.value = !0, A.value = await Promise.resolve(
|
|
4700
4690
|
n.getAutocompleteItems(P.value)
|
|
4701
4691
|
), m.value = !1);
|
|
4702
4692
|
}, $e = De(Z, 1e3), He = async () => {
|
|
@@ -4705,24 +4695,24 @@ const Lr = /* @__PURE__ */ T({
|
|
|
4705
4695
|
var Q, Y;
|
|
4706
4696
|
if (s(F) ? F.data === " " || F.data === "," || F.data === ";" : !0) {
|
|
4707
4697
|
let Se = !1;
|
|
4708
|
-
if ((Q = i.value) != null && Q.isOpen() &&
|
|
4698
|
+
if ((Q = i.value) != null && Q.isOpen() && A.value.length && !W)
|
|
4709
4699
|
(Y = i.value) == null || Y.selectActive(), Se = !0;
|
|
4710
4700
|
else {
|
|
4711
4701
|
const Be = P.value.trim().substring(0, P.value.length - (s(F) ? 1 : 0)), S = E.value.includes(Be);
|
|
4712
4702
|
Be.length > 0 && !S && (E.value = [...E.value, Be], Se = !0);
|
|
4713
4703
|
}
|
|
4714
|
-
Se && (P.value = "",
|
|
4704
|
+
Se && (P.value = "", M.value = !1);
|
|
4715
4705
|
} else
|
|
4716
|
-
|
|
4706
|
+
M.value = !!P.value.length;
|
|
4717
4707
|
};
|
|
4718
|
-
return te(
|
|
4708
|
+
return te(M, (F, W) => {
|
|
4719
4709
|
var D, Q;
|
|
4720
4710
|
F && !W ? n.getAutocompleteItems && ((D = i.value) == null || D.open()) : !F && W && ((Q = i.value) == null || Q.close());
|
|
4721
4711
|
}), te(P, () => {
|
|
4722
4712
|
He();
|
|
4723
4713
|
}), ne(() => {
|
|
4724
4714
|
Z();
|
|
4725
|
-
}), t({ resolveAutocompleteItems: Z }), (F, W) => (a(), j(l(
|
|
4715
|
+
}), t({ resolveAutocompleteItems: Z }), (F, W) => (a(), j(l(en), {
|
|
4726
4716
|
modelValue: E.value,
|
|
4727
4717
|
"onUpdate:modelValue": W[5] || (W[5] = (D) => E.value = D),
|
|
4728
4718
|
as: "div",
|
|
@@ -4730,20 +4720,20 @@ const Lr = /* @__PURE__ */ T({
|
|
|
4730
4720
|
clearable: "",
|
|
4731
4721
|
class: x([e.wrapperClasses])
|
|
4732
4722
|
}, {
|
|
4733
|
-
default:
|
|
4734
|
-
O(
|
|
4723
|
+
default: z(() => [
|
|
4724
|
+
O(Or, {
|
|
4735
4725
|
ref_key: "ctxManager",
|
|
4736
4726
|
ref: i
|
|
4737
4727
|
}, {
|
|
4738
|
-
default:
|
|
4728
|
+
default: z(() => [
|
|
4739
4729
|
c("label", {
|
|
4740
4730
|
for: e.name,
|
|
4741
4731
|
class: x(l(k))
|
|
4742
4732
|
}, [
|
|
4743
4733
|
c("span", null, B(l(v)), 1)
|
|
4744
|
-
], 10,
|
|
4734
|
+
], 10, jr),
|
|
4745
4735
|
c("div", {
|
|
4746
|
-
class: x(["relative flex flex-wrap items-center space-x-1 px-2 py-1",
|
|
4736
|
+
class: x(["relative flex flex-wrap items-center space-x-1 px-2 py-1", Ae.value])
|
|
4747
4737
|
}, [
|
|
4748
4738
|
(a(!0), d(q, null, K(E.value, (D) => (a(), j(ot, {
|
|
4749
4739
|
key: D,
|
|
@@ -4752,7 +4742,7 @@ const Lr = /* @__PURE__ */ T({
|
|
|
4752
4742
|
size: "lg",
|
|
4753
4743
|
onClickIcon: () => We(D)
|
|
4754
4744
|
}, {
|
|
4755
|
-
default:
|
|
4745
|
+
default: z(() => [
|
|
4756
4746
|
U(B(D), 1)
|
|
4757
4747
|
]),
|
|
4758
4748
|
_: 2
|
|
@@ -4774,8 +4764,8 @@ const Lr = /* @__PURE__ */ T({
|
|
|
4774
4764
|
xe(ae, ["arrow-up"]),
|
|
4775
4765
|
xe(pe, ["arrow-down"])
|
|
4776
4766
|
],
|
|
4777
|
-
onBlur: W[2] || (W[2] = (D) =>
|
|
4778
|
-
}, null, 42,
|
|
4767
|
+
onBlur: W[2] || (W[2] = (D) => M.value = !1)
|
|
4768
|
+
}, null, 42, Vr), [
|
|
4779
4769
|
[tt, P.value]
|
|
4780
4770
|
]),
|
|
4781
4771
|
fe.value ? (a(), d("a", {
|
|
@@ -4800,7 +4790,7 @@ const Lr = /* @__PURE__ */ T({
|
|
|
4800
4790
|
fe.value ? "pr-8" : "pr-2"
|
|
4801
4791
|
])
|
|
4802
4792
|
}, [
|
|
4803
|
-
O(l(
|
|
4793
|
+
O(l(Me), {
|
|
4804
4794
|
class: "h-4 w-4 text-danger",
|
|
4805
4795
|
"aria-hidden": "true"
|
|
4806
4796
|
})
|
|
@@ -4816,22 +4806,22 @@ const Lr = /* @__PURE__ */ T({
|
|
|
4816
4806
|
"leave-to": "opacity-0",
|
|
4817
4807
|
class: "relative px-0.5"
|
|
4818
4808
|
}, {
|
|
4819
|
-
default:
|
|
4820
|
-
O(l(
|
|
4821
|
-
default:
|
|
4809
|
+
default: z(() => [
|
|
4810
|
+
O(l(tn), { class: "absolute top-1 max-h-60 w-full overflow-auto simple-scrollbar rounded-md bg-foundation-2 py-1 shadow label label--light outline outline-2 outline-primary-muted focus:outline-none" }, {
|
|
4811
|
+
default: z(() => [
|
|
4822
4812
|
m.value ? (a(), d("div", {
|
|
4823
4813
|
key: 0,
|
|
4824
|
-
class: x(["px-1",
|
|
4814
|
+
class: x(["px-1", A.value.length ? "mb-1" : ""])
|
|
4825
4815
|
}, [
|
|
4826
4816
|
O(ut, { loading: !0 })
|
|
4827
4817
|
], 2)) : $("", !0),
|
|
4828
|
-
!
|
|
4829
|
-
|
|
4818
|
+
!A.value.length && !m.value ? (a(), d("div", zr, Pr)) : $("", !0),
|
|
4819
|
+
A.value.length ? (a(!0), d(q, { key: 2 }, K(A.value, (D) => (a(), j(l(sn), {
|
|
4830
4820
|
key: D,
|
|
4831
4821
|
as: "template",
|
|
4832
4822
|
value: D
|
|
4833
4823
|
}, {
|
|
4834
|
-
default:
|
|
4824
|
+
default: z(({ selected: Q, active: Y }) => [
|
|
4835
4825
|
c("li", {
|
|
4836
4826
|
class: x(["relative cursor-pointer select-none py-1.5 pl-3", {
|
|
4837
4827
|
"text-primary": Y,
|
|
@@ -4860,11 +4850,11 @@ const Lr = /* @__PURE__ */ T({
|
|
|
4860
4850
|
]),
|
|
4861
4851
|
_: 1
|
|
4862
4852
|
}),
|
|
4863
|
-
l(g) && !l(
|
|
4853
|
+
l(g) && !l(V) ? (a(), d("p", {
|
|
4864
4854
|
key: 0,
|
|
4865
4855
|
id: l(g),
|
|
4866
4856
|
class: x(l(C))
|
|
4867
|
-
}, B(l(b)), 11,
|
|
4857
|
+
}, B(l(b)), 11, Tr)) : $("", !0)
|
|
4868
4858
|
]),
|
|
4869
4859
|
_: 1
|
|
4870
4860
|
}, 512)
|
|
@@ -4955,10 +4945,10 @@ function Et(e) {
|
|
|
4955
4945
|
);
|
|
4956
4946
|
return { heightClasses: r, widthClasses: s, sizeClasses: p, iconClasses: n };
|
|
4957
4947
|
}
|
|
4958
|
-
const
|
|
4948
|
+
const Er = {
|
|
4959
4949
|
key: 1,
|
|
4960
4950
|
class: "flex h-full w-full select-none items-center justify-center"
|
|
4961
|
-
},
|
|
4951
|
+
}, Rr = { key: 2 }, Ye = /* @__PURE__ */ T({
|
|
4962
4952
|
__name: "Avatar",
|
|
4963
4953
|
props: {
|
|
4964
4954
|
user: { default: null },
|
|
@@ -4993,7 +4983,7 @@ const Tr = {
|
|
|
4993
4983
|
key: 0,
|
|
4994
4984
|
class: "h-full w-full bg-cover bg-center bg-no-repeat",
|
|
4995
4985
|
style: ee({ backgroundImage: `url('${e.user.avatar}')` })
|
|
4996
|
-
}, null, 4)) : o.value ? (a(), d("div",
|
|
4986
|
+
}, null, 4)) : o.value ? (a(), d("div", Er, B(o.value), 1)) : (a(), d("div", Rr, [
|
|
4997
4987
|
O(l(rs), {
|
|
4998
4988
|
class: x(l(s))
|
|
4999
4989
|
}, null, 8, ["class"])
|
|
@@ -5003,7 +4993,7 @@ const Tr = {
|
|
|
5003
4993
|
R(f.$slots, "absolute-anchor")
|
|
5004
4994
|
], 2));
|
|
5005
4995
|
}
|
|
5006
|
-
}),
|
|
4996
|
+
}), Yi = /* @__PURE__ */ T({
|
|
5007
4997
|
__name: "AvatarGroup",
|
|
5008
4998
|
props: {
|
|
5009
4999
|
users: { default: () => [] },
|
|
@@ -5012,7 +5002,7 @@ const Tr = {
|
|
|
5012
5002
|
maxCount: { default: void 0 }
|
|
5013
5003
|
},
|
|
5014
5004
|
setup(e) {
|
|
5015
|
-
const t = e, r = L(null), s = L(null), { hiddenItemCount: o } =
|
|
5005
|
+
const t = e, r = L(null), s = L(null), { hiddenItemCount: o } = Mt({
|
|
5016
5006
|
elementToWatchForChanges: r,
|
|
5017
5007
|
itemContainer: s,
|
|
5018
5008
|
trackResize: !0,
|
|
@@ -5042,14 +5032,14 @@ const Tr = {
|
|
|
5042
5032
|
key: 0,
|
|
5043
5033
|
size: e.size
|
|
5044
5034
|
}, {
|
|
5045
|
-
default:
|
|
5035
|
+
default: z(() => [
|
|
5046
5036
|
U(" +" + B(u.value), 1)
|
|
5047
5037
|
]),
|
|
5048
5038
|
_: 1
|
|
5049
5039
|
}, 8, ["size"])) : $("", !0)
|
|
5050
5040
|
], 2));
|
|
5051
5041
|
}
|
|
5052
|
-
}),
|
|
5042
|
+
}), Fr = /* @__PURE__ */ T({
|
|
5053
5043
|
__name: "Icon",
|
|
5054
5044
|
props: {
|
|
5055
5045
|
loading: { type: Boolean, default: !0 },
|
|
@@ -5075,13 +5065,13 @@ const Tr = {
|
|
|
5075
5065
|
class: x(r.value)
|
|
5076
5066
|
}, null, 8, ["class"]));
|
|
5077
5067
|
}
|
|
5078
|
-
}),
|
|
5068
|
+
}), Dr = { class: "flex flex-col items-center space-y-2" }, Ur = {
|
|
5079
5069
|
key: 1,
|
|
5080
5070
|
class: "relative group"
|
|
5081
|
-
},
|
|
5071
|
+
}, Wr = { class: "opacity-0 transition-all absolute group-hover:opacity-100 inset-0 flex items-end justify-center bottom-4" }, qr = {
|
|
5082
5072
|
key: 2,
|
|
5083
5073
|
class: "w-full text-center text-danger text-sm"
|
|
5084
|
-
},
|
|
5074
|
+
}, eu = /* @__PURE__ */ T({
|
|
5085
5075
|
__name: "AvatarEditable",
|
|
5086
5076
|
props: /* @__PURE__ */ we({
|
|
5087
5077
|
modelValue: null,
|
|
@@ -5100,13 +5090,13 @@ const Tr = {
|
|
|
5100
5090
|
setup(e, { expose: t, emit: r }) {
|
|
5101
5091
|
const s = Jt({
|
|
5102
5092
|
loader: () => import("./AvatarEditor-ce4e7960.js"),
|
|
5103
|
-
loadingComponent:
|
|
5093
|
+
loadingComponent: Fr,
|
|
5104
5094
|
delay: 100
|
|
5105
|
-
}), o = r, n = e, { value: p, errorMessage: u } =
|
|
5095
|
+
}), o = r, n = e, { value: p, errorMessage: u } = ze(n.name, n.rules, {
|
|
5106
5096
|
validateOnMount: n.validateOnMount,
|
|
5107
5097
|
validateOnValueUpdate: n.validateOnValueUpdate,
|
|
5108
5098
|
initialValue: n.modelValue || void 0
|
|
5109
|
-
}), i =
|
|
5099
|
+
}), i = Ve(e, "editMode"), f = h(
|
|
5110
5100
|
() => ({
|
|
5111
5101
|
avatar: p.value,
|
|
5112
5102
|
name: n.placeholder
|
|
@@ -5114,33 +5104,33 @@ const Tr = {
|
|
|
5114
5104
|
), y = (b) => {
|
|
5115
5105
|
p.value = b, o("save", b);
|
|
5116
5106
|
};
|
|
5117
|
-
return t({ open: () => i.value = !0, close: () => i.value = !1 }), (b, g) => (a(), d("div",
|
|
5107
|
+
return t({ open: () => i.value = !0, close: () => i.value = !1 }), (b, g) => (a(), d("div", Dr, [
|
|
5118
5108
|
i.value ? (a(), j(l(s), {
|
|
5119
5109
|
key: 0,
|
|
5120
5110
|
user: f.value,
|
|
5121
5111
|
disabled: e.disabled,
|
|
5122
5112
|
size: e.size,
|
|
5123
|
-
onCancel: g[0] || (g[0] = (
|
|
5113
|
+
onCancel: g[0] || (g[0] = (V) => i.value = !1),
|
|
5124
5114
|
onSave: y
|
|
5125
|
-
}, null, 8, ["user", "disabled", "size"])) : (a(), d("div",
|
|
5115
|
+
}, null, 8, ["user", "disabled", "size"])) : (a(), d("div", Ur, [
|
|
5126
5116
|
O(Ye, {
|
|
5127
5117
|
user: f.value,
|
|
5128
5118
|
size: e.size
|
|
5129
5119
|
}, null, 8, ["user", "size"]),
|
|
5130
|
-
c("div",
|
|
5120
|
+
c("div", Wr, [
|
|
5131
5121
|
O(ce, {
|
|
5132
5122
|
disabled: e.disabled,
|
|
5133
5123
|
color: "secondary",
|
|
5134
|
-
onClick: g[1] || (g[1] = (
|
|
5124
|
+
onClick: g[1] || (g[1] = (V) => i.value = !0)
|
|
5135
5125
|
}, {
|
|
5136
|
-
default:
|
|
5126
|
+
default: z(() => [
|
|
5137
5127
|
U(" Change ")
|
|
5138
5128
|
]),
|
|
5139
5129
|
_: 1
|
|
5140
5130
|
}, 8, ["disabled"])
|
|
5141
5131
|
])
|
|
5142
5132
|
])),
|
|
5143
|
-
l(u) ? (a(), d("div",
|
|
5133
|
+
l(u) ? (a(), d("div", qr, B(l(u)), 1)) : $("", !0)
|
|
5144
5134
|
]));
|
|
5145
5135
|
}
|
|
5146
5136
|
});
|
|
@@ -5153,20 +5143,20 @@ class de extends Error {
|
|
|
5153
5143
|
* Default message if none is passed
|
|
5154
5144
|
*/
|
|
5155
5145
|
re(de, "defaultMessage", "Unexpected error occurred");
|
|
5156
|
-
class qr extends de {
|
|
5157
|
-
}
|
|
5158
|
-
re(qr, "defaultMessage", "An unexpected logic error occurred!");
|
|
5159
5146
|
class Hr extends de {
|
|
5160
5147
|
}
|
|
5161
|
-
re(Hr, "defaultMessage", "
|
|
5148
|
+
re(Hr, "defaultMessage", "An unexpected logic error occurred!");
|
|
5162
5149
|
class Gr extends de {
|
|
5163
5150
|
}
|
|
5164
|
-
re(Gr, "defaultMessage", "
|
|
5151
|
+
re(Gr, "defaultMessage", "Attempting to access an uninitialized resource");
|
|
5165
5152
|
class Kr extends de {
|
|
5166
5153
|
}
|
|
5167
|
-
re(Kr, "defaultMessage", "
|
|
5154
|
+
re(Kr, "defaultMessage", "getCurrentInstance() returned null. Method must be called at the top of a setup function");
|
|
5155
|
+
class Nr extends de {
|
|
5156
|
+
}
|
|
5157
|
+
re(Nr, "defaultMessage", "Operation not supported in current (server or client) environment");
|
|
5168
5158
|
var ct = /* @__PURE__ */ ((e) => (e.AnyAudio = "audio/*", e.AnyVideo = "video/*", e.AnyImage = "image/*", e))(ct || {});
|
|
5169
|
-
function
|
|
5159
|
+
function Xr(e, t) {
|
|
5170
5160
|
const r = ts(
|
|
5171
5161
|
Object.values(ct),
|
|
5172
5162
|
t
|
|
@@ -5186,7 +5176,7 @@ function Nr(e, t) {
|
|
|
5186
5176
|
return !0;
|
|
5187
5177
|
break;
|
|
5188
5178
|
}
|
|
5189
|
-
const s = ss(t, r), o =
|
|
5179
|
+
const s = ss(t, r), o = Zr(e.name);
|
|
5190
5180
|
if (!o)
|
|
5191
5181
|
return new Rt();
|
|
5192
5182
|
for (const n of s)
|
|
@@ -5194,11 +5184,11 @@ function Nr(e, t) {
|
|
|
5194
5184
|
return !0;
|
|
5195
5185
|
return new Ft();
|
|
5196
5186
|
}
|
|
5197
|
-
function
|
|
5187
|
+
function Zr(e) {
|
|
5198
5188
|
const t = e.split(".").pop() || null;
|
|
5199
5189
|
return t ? `.${t}` : null;
|
|
5200
5190
|
}
|
|
5201
|
-
function
|
|
5191
|
+
function Qr(e) {
|
|
5202
5192
|
return e.startsWith(".") || Object.values(ct).includes(e);
|
|
5203
5193
|
}
|
|
5204
5194
|
function kt(e) {
|
|
@@ -5214,7 +5204,7 @@ function kt(e) {
|
|
|
5214
5204
|
const o = s / 1024;
|
|
5215
5205
|
return `${t(o)}GB`;
|
|
5216
5206
|
}
|
|
5217
|
-
function
|
|
5207
|
+
function Jr(e) {
|
|
5218
5208
|
const t = {
|
|
5219
5209
|
name: e.name,
|
|
5220
5210
|
lastModified: e.lastModified,
|
|
@@ -5229,23 +5219,23 @@ re(Rt, "defaultMessage", "The selected file has a missing extension");
|
|
|
5229
5219
|
class Ft extends de {
|
|
5230
5220
|
}
|
|
5231
5221
|
re(Ft, "defaultMessage", "The selected file type is forbidden");
|
|
5232
|
-
var
|
|
5233
|
-
function
|
|
5222
|
+
var Yr = /* @__PURE__ */ ((e) => (e[e.Success = 1] = "Success", e[e.Failure = 2] = "Failure", e))(Yr || {});
|
|
5223
|
+
function ei(e) {
|
|
5234
5224
|
if (!e)
|
|
5235
5225
|
return;
|
|
5236
|
-
const t = e.split(",").map((r) =>
|
|
5226
|
+
const t = e.split(",").map((r) => Qr(r) ? r : null).filter((r) => r !== null);
|
|
5237
5227
|
return t.length ? t : void 0;
|
|
5238
5228
|
}
|
|
5239
|
-
function
|
|
5240
|
-
const { disabled: t, accept: r, multiple: s, sizeLimit: o, countLimit: n } = e, p = h(() =>
|
|
5229
|
+
function ti(e) {
|
|
5230
|
+
const { disabled: t, accept: r, multiple: s, sizeLimit: o, countLimit: n } = e, p = h(() => ei(l(r))), u = (i) => {
|
|
5241
5231
|
const f = [], y = p.value;
|
|
5242
5232
|
for (const k of i) {
|
|
5243
|
-
const v =
|
|
5233
|
+
const v = Jr(k), b = l(s) ? l(n) : 1;
|
|
5244
5234
|
if (!f.find((g) => g.id === v)) {
|
|
5245
5235
|
if (b && f.length >= b)
|
|
5246
5236
|
break;
|
|
5247
5237
|
if (y) {
|
|
5248
|
-
const g =
|
|
5238
|
+
const g = Xr(k, y);
|
|
5249
5239
|
if (g instanceof Error) {
|
|
5250
5240
|
f.push({
|
|
5251
5241
|
file: k,
|
|
@@ -5285,7 +5275,7 @@ function ei(e) {
|
|
|
5285
5275
|
class Dt extends de {
|
|
5286
5276
|
}
|
|
5287
5277
|
re(Dt, "defaultMessage", "The selected file's size is too large");
|
|
5288
|
-
const
|
|
5278
|
+
const si = ["accept", "multiple"], tu = /* @__PURE__ */ T({
|
|
5289
5279
|
__name: "Zone",
|
|
5290
5280
|
props: {
|
|
5291
5281
|
accept: null,
|
|
@@ -5296,7 +5286,7 @@ const ti = ["accept", "multiple"], eu = /* @__PURE__ */ T({
|
|
|
5296
5286
|
},
|
|
5297
5287
|
emits: ["files-selected"],
|
|
5298
5288
|
setup(e, { expose: t, emit: r }) {
|
|
5299
|
-
const s = r, o = e, n = L(null), p = L(null), { buildUploadableFiles: u } =
|
|
5289
|
+
const s = r, o = e, n = L(null), p = L(null), { buildUploadableFiles: u } = ti({
|
|
5300
5290
|
sizeLimit: h(() => o.sizeLimit),
|
|
5301
5291
|
countLimit: h(() => o.countLimit),
|
|
5302
5292
|
accept: h(() => o.accept),
|
|
@@ -5305,7 +5295,7 @@ const ti = ["accept", "multiple"], eu = /* @__PURE__ */ T({
|
|
|
5305
5295
|
}), i = (v) => {
|
|
5306
5296
|
const b = u(v);
|
|
5307
5297
|
b != null && b.length && s("files-selected", { files: b });
|
|
5308
|
-
}, { isOverDropZone: f } =
|
|
5298
|
+
}, { isOverDropZone: f } = Es(n, (v) => {
|
|
5309
5299
|
v != null && v.length && i(v);
|
|
5310
5300
|
}), y = () => {
|
|
5311
5301
|
const v = p.value;
|
|
@@ -5339,13 +5329,13 @@ const ti = ["accept", "multiple"], eu = /* @__PURE__ */ T({
|
|
|
5339
5329
|
onClick: b[0] || (b[0] = be(() => {
|
|
5340
5330
|
}, ["stop"])),
|
|
5341
5331
|
onChange: y
|
|
5342
|
-
}, null, 40,
|
|
5332
|
+
}, null, 40, si)
|
|
5343
5333
|
], 512));
|
|
5344
5334
|
}
|
|
5345
5335
|
}), wt = (e) => {
|
|
5346
5336
|
var t;
|
|
5347
5337
|
e.code === "Enter" && ((t = e.target) == null || t.click());
|
|
5348
|
-
},
|
|
5338
|
+
}, su = {
|
|
5349
5339
|
created(e) {
|
|
5350
5340
|
e.setAttribute("tabindex", "0"), e.addEventListener("keypress", wt);
|
|
5351
5341
|
},
|
|
@@ -5355,75 +5345,75 @@ const ti = ["accept", "multiple"], eu = /* @__PURE__ */ T({
|
|
|
5355
5345
|
};
|
|
5356
5346
|
export {
|
|
5357
5347
|
de as BaseError,
|
|
5358
|
-
|
|
5359
|
-
|
|
5360
|
-
|
|
5348
|
+
Yr as BlobUploadStatus,
|
|
5349
|
+
Zi as CommonAlert,
|
|
5350
|
+
yi as CommonAnimationInstructional,
|
|
5361
5351
|
ot as CommonBadge,
|
|
5362
5352
|
ut as CommonLoadingBar,
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5353
|
+
Fr as CommonLoadingIcon,
|
|
5354
|
+
bi as CommonStepsBullet,
|
|
5355
|
+
gi as CommonStepsNumber,
|
|
5356
|
+
on as CommonTextLink,
|
|
5357
|
+
xi as CommonVimeoEmbed,
|
|
5358
|
+
Kr as ComposableInvokedOutOfScopeError,
|
|
5369
5359
|
ce as FormButton,
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
|
|
5383
|
-
|
|
5360
|
+
ki as FormCardButton,
|
|
5361
|
+
wi as FormCheckbox,
|
|
5362
|
+
ji as FormClipboardInput,
|
|
5363
|
+
tu as FormFileUploadZone,
|
|
5364
|
+
Ci as FormRadio,
|
|
5365
|
+
$i as FormRadioGroup,
|
|
5366
|
+
Li as FormSelectBadges,
|
|
5367
|
+
At as FormSelectBase,
|
|
5368
|
+
_i as FormSelectSourceApps,
|
|
5369
|
+
Oi as FormSwitch,
|
|
5370
|
+
Ji as FormTags,
|
|
5371
|
+
Si as FormTextArea,
|
|
5372
|
+
Xl as FormTextInput,
|
|
5373
|
+
vi as GlobalToastRenderer,
|
|
5384
5374
|
ke as GridListToggleValue,
|
|
5385
5375
|
Je as HorizontalDirection,
|
|
5386
|
-
|
|
5376
|
+
qi as InfiniteLoading,
|
|
5387
5377
|
Ai as LayoutDialog,
|
|
5388
|
-
|
|
5389
|
-
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5378
|
+
Pi as LayoutDialogSection,
|
|
5379
|
+
Ti as LayoutDisclosure,
|
|
5380
|
+
Ei as LayoutGridListToggle,
|
|
5381
|
+
Fi as LayoutMenu,
|
|
5382
|
+
Hi as LayoutPanel,
|
|
5383
|
+
Gi as LayoutSidebar,
|
|
5384
|
+
Ki as LayoutSidebarMenu,
|
|
5385
|
+
Ni as LayoutSidebarMenuGroup,
|
|
5386
|
+
Xi as LayoutSidebarMenuGroupItem,
|
|
5387
|
+
Wi as LayoutTable,
|
|
5388
|
+
Di as LayoutTabsHoriztonal,
|
|
5389
|
+
Ui as LayoutTabsVertical,
|
|
5390
|
+
Hr as LogicError,
|
|
5401
5391
|
je as ModifierKeys,
|
|
5402
|
-
|
|
5392
|
+
Ca as SourceAppBadge,
|
|
5403
5393
|
Oe as TailwindBreakpoints,
|
|
5404
|
-
|
|
5394
|
+
Za as ThrottleOrDebounce,
|
|
5405
5395
|
Le as ToastNotificationType,
|
|
5406
|
-
|
|
5396
|
+
Gr as UninitializedResourceAccessError,
|
|
5407
5397
|
ct as UniqueFileTypeSpecifier,
|
|
5408
|
-
|
|
5398
|
+
Nr as UnsupportedEnvironmentError,
|
|
5409
5399
|
Ye as UserAvatar,
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5400
|
+
eu as UserAvatarEditable,
|
|
5401
|
+
Yi as UserAvatarGroup,
|
|
5402
|
+
Bi as ValidationHelpers,
|
|
5403
|
+
au as buildManualPromise,
|
|
5414
5404
|
Qe as clientOs,
|
|
5415
|
-
|
|
5405
|
+
Vi as getKeyboardShortcutTitle,
|
|
5416
5406
|
Ot as keyboardClick,
|
|
5417
5407
|
Mi as onKeyboardShortcut,
|
|
5418
5408
|
kt as prettyFileSize,
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5409
|
+
Ii as useDebouncedTextInput,
|
|
5410
|
+
zi as useFormCheckboxModel,
|
|
5411
|
+
zt as useFormSelectChildInternals,
|
|
5412
|
+
Ri as useOnBeforeWindowUnload,
|
|
5413
|
+
Ja as useResponsiveHorizontalDirectionCalculation,
|
|
5414
|
+
Qa as useWindowResizeHandler,
|
|
5415
|
+
Mt as useWrappingContainerHiddenCount,
|
|
5416
|
+
su as vKeyboardClickable,
|
|
5417
|
+
Qi as writableAsyncComputed
|
|
5428
5418
|
};
|
|
5429
5419
|
//# sourceMappingURL=lib.js.map
|