@slexn/codecenter-ui 1.0.0 → 1.0.1
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/codecenter-ui.cjs +1 -1
- package/dist/codecenter-ui.js +205 -181
- package/dist/components/ui/rail/Rail.vue.d.ts +27 -0
- package/dist/components/ui/rail/index.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/public/r/rail.json +31 -0
- package/public/r/registry.json +27 -0
- package/registry.json +27 -0
- package/src/components/ui/rail/Rail.vue +34 -0
- package/src/components/ui/rail/index.ts +2 -0
package/dist/codecenter-ui.js
CHANGED
|
@@ -15915,36 +15915,60 @@ var Xp = {
|
|
|
15915
15915
|
class: g(k($)("text-xs leading-relaxed text-muted-foreground", t.descriptionClass))
|
|
15916
15916
|
}, O(t.description), 3)) : i("", !0)])], 10, Nh));
|
|
15917
15917
|
}
|
|
15918
|
-
}), Lh =
|
|
15918
|
+
}), Lh = /* @__PURE__ */ l({
|
|
15919
|
+
__name: "Rail",
|
|
15920
|
+
props: {
|
|
15921
|
+
as: { default: "aside" },
|
|
15922
|
+
class: { type: [
|
|
15923
|
+
Boolean,
|
|
15924
|
+
null,
|
|
15925
|
+
String,
|
|
15926
|
+
Object,
|
|
15927
|
+
Array
|
|
15928
|
+
] },
|
|
15929
|
+
side: { default: "left" }
|
|
15930
|
+
},
|
|
15931
|
+
setup(e) {
|
|
15932
|
+
let t = e;
|
|
15933
|
+
return (e, n) => (x(), r(E(t.as), {
|
|
15934
|
+
"data-slot": "rail",
|
|
15935
|
+
"data-side": t.side,
|
|
15936
|
+
class: g(k($)("flex h-full w-(--rail-width) shrink-0 flex-col items-center bg-background text-foreground [--rail-width:3.5rem]", t.side === "right" ? "border-l" : "border-r", t.class))
|
|
15937
|
+
}, {
|
|
15938
|
+
default: L(() => [T(e.$slots, "default")]),
|
|
15939
|
+
_: 3
|
|
15940
|
+
}, 8, ["data-side", "class"]));
|
|
15941
|
+
}
|
|
15942
|
+
}), Rh = [
|
|
15919
15943
|
"data-status",
|
|
15920
15944
|
"data-open",
|
|
15921
15945
|
"aria-live"
|
|
15922
|
-
],
|
|
15946
|
+
], zh = {
|
|
15923
15947
|
"data-slot": "reasoning-summary",
|
|
15924
15948
|
class: "flex min-w-0 items-center gap-1.5"
|
|
15925
|
-
},
|
|
15949
|
+
}, Bh = {
|
|
15926
15950
|
"data-slot": "reasoning-title",
|
|
15927
15951
|
class: "min-w-0 truncate font-medium leading-6 text-foreground/80"
|
|
15928
|
-
},
|
|
15952
|
+
}, Vh = {
|
|
15929
15953
|
key: 0,
|
|
15930
15954
|
"data-slot": "reasoning-duration",
|
|
15931
15955
|
class: "shrink-0 text-xs leading-5 text-muted-foreground"
|
|
15932
|
-
},
|
|
15956
|
+
}, Hh = {
|
|
15933
15957
|
key: 0,
|
|
15934
15958
|
"data-slot": "reasoning-body",
|
|
15935
15959
|
class: "whitespace-pre-wrap text-sm leading-7 text-muted-foreground"
|
|
15936
|
-
},
|
|
15960
|
+
}, Uh = ["data-status"], Wh = {
|
|
15937
15961
|
"data-slot": "reasoning-step-title",
|
|
15938
15962
|
class: "font-medium text-foreground/75"
|
|
15939
|
-
},
|
|
15963
|
+
}, Gh = {
|
|
15940
15964
|
key: 0,
|
|
15941
15965
|
"data-slot": "reasoning-step-description",
|
|
15942
15966
|
class: "col-start-2"
|
|
15943
|
-
},
|
|
15967
|
+
}, Kh = {
|
|
15944
15968
|
key: 2,
|
|
15945
15969
|
"data-slot": "reasoning-footer",
|
|
15946
15970
|
class: "mt-4 text-sm"
|
|
15947
|
-
},
|
|
15971
|
+
}, qh = /* @__PURE__ */ l({
|
|
15948
15972
|
__name: "Reasoning",
|
|
15949
15973
|
props: {
|
|
15950
15974
|
ariaLive: { default: "polite" },
|
|
@@ -16058,10 +16082,10 @@ var Xp = {
|
|
|
16058
16082
|
"aria-hidden": "true",
|
|
16059
16083
|
class: g(k($)("size-4 shrink-0", l.status === "error" && "text-destructive", l.status === "thinking" && "animate-pulse", l.iconClass))
|
|
16060
16084
|
}, null, 8, ["class"])),
|
|
16061
|
-
o("span",
|
|
16085
|
+
o("span", zh, [o("span", Bh, [T(t.$slots, "summary", {
|
|
16062
16086
|
duration: y.value,
|
|
16063
16087
|
status: l.status
|
|
16064
|
-
}, () => [s(O(b.value), 1)])]), y.value && !t.$slots.summary ? (x(), a("span",
|
|
16088
|
+
}, () => [s(O(b.value), 1)])]), y.value && !t.$slots.summary ? (x(), a("span", Vh, O(y.value), 1)) : i("", !0)]),
|
|
16065
16089
|
l.collapsible ? (x(), r(k(Rt), {
|
|
16066
16090
|
key: 0,
|
|
16067
16091
|
"data-slot": "reasoning-chevron",
|
|
@@ -16081,7 +16105,7 @@ var Xp = {
|
|
|
16081
16105
|
"data-slot": "reasoning-content",
|
|
16082
16106
|
class: g(k($)("mt-3 border-l pl-5", l.contentClass))
|
|
16083
16107
|
}, [
|
|
16084
|
-
D.value ? (x(), a("div",
|
|
16108
|
+
D.value ? (x(), a("div", Hh, [T(t.$slots, "default", {}, () => [s(O(l.content), 1)])])) : i("", !0),
|
|
16085
16109
|
S.value.length ? (x(), a("ol", {
|
|
16086
16110
|
key: 1,
|
|
16087
16111
|
"data-slot": "reasoning-steps",
|
|
@@ -16097,39 +16121,39 @@ var Xp = {
|
|
|
16097
16121
|
"aria-hidden": "true",
|
|
16098
16122
|
class: g(V(e.status))
|
|
16099
16123
|
}, null, 2),
|
|
16100
|
-
o("span",
|
|
16101
|
-
e.description ? (x(), a("span",
|
|
16102
|
-
], 8,
|
|
16103
|
-
t.$slots.footer ? (x(), a("div",
|
|
16104
|
-
], 2)), [[P, !l.collapsible || m.value]]) : i("", !0)], 10,
|
|
16124
|
+
o("span", Wh, O(e.title), 1),
|
|
16125
|
+
e.description ? (x(), a("span", Gh, O(e.description), 1)) : i("", !0)
|
|
16126
|
+
], 8, Uh))), 128))], 2)) : i("", !0),
|
|
16127
|
+
t.$slots.footer ? (x(), a("div", Kh, [T(t.$slots, "footer")])) : i("", !0)
|
|
16128
|
+
], 2)), [[P, !l.collapsible || m.value]]) : i("", !0)], 10, Rh));
|
|
16105
16129
|
}
|
|
16106
|
-
}),
|
|
16107
|
-
function
|
|
16108
|
-
S(
|
|
16109
|
-
}
|
|
16110
|
-
function eg() {
|
|
16111
|
-
return d(Qh, null);
|
|
16130
|
+
}), Jh = "b", Yh = "sidebar_state", Xh = "16rem", Zh = "3.25rem", Qh = "18rem", $h = Symbol("SidebarContext");
|
|
16131
|
+
function eg(e) {
|
|
16132
|
+
S($h, e);
|
|
16112
16133
|
}
|
|
16113
16134
|
function tg() {
|
|
16114
|
-
|
|
16135
|
+
return d($h, null);
|
|
16136
|
+
}
|
|
16137
|
+
function ng() {
|
|
16138
|
+
let e = tg();
|
|
16115
16139
|
if (!e) throw Error("Sidebar components must be used within a SidebarProvider.");
|
|
16116
16140
|
return e;
|
|
16117
16141
|
}
|
|
16118
16142
|
//#endregion
|
|
16119
16143
|
//#region src/components/ui/sidebar/Sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
16120
|
-
var
|
|
16144
|
+
var rg = ["data-side", "data-variant"], ig = [
|
|
16121
16145
|
"data-state",
|
|
16122
16146
|
"data-side",
|
|
16123
16147
|
"data-variant"
|
|
16124
|
-
],
|
|
16148
|
+
], ag = [
|
|
16125
16149
|
"data-state",
|
|
16126
16150
|
"data-collapsible",
|
|
16127
16151
|
"data-side",
|
|
16128
16152
|
"data-variant"
|
|
16129
|
-
],
|
|
16153
|
+
], og = {
|
|
16130
16154
|
"data-sidebar": "sidebar",
|
|
16131
16155
|
class: "flex h-full w-full flex-col bg-background group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm group-data-[variant=inset]:rounded-lg group-data-[variant=inset]:border group-data-[variant=inset]:shadow-xs"
|
|
16132
|
-
},
|
|
16156
|
+
}, sg = /* @__PURE__ */ l({
|
|
16133
16157
|
inheritAttrs: !1,
|
|
16134
16158
|
__name: "Sidebar",
|
|
16135
16159
|
props: {
|
|
@@ -16145,7 +16169,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16145
16169
|
variant: { default: "sidebar" }
|
|
16146
16170
|
},
|
|
16147
16171
|
setup(e) {
|
|
16148
|
-
let t = e, r =
|
|
16172
|
+
let t = e, r = tg(), s = n(() => r?.state.value ?? "expanded"), c = n(() => r?.isMobile.value ?? !1), l = n(() => r?.openMobile.value ?? !1), u = n(() => s.value === "collapsed" ? t.collapsible : "");
|
|
16149
16173
|
function d() {
|
|
16150
16174
|
r?.setOpenMobile(!1);
|
|
16151
16175
|
}
|
|
@@ -16157,18 +16181,18 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16157
16181
|
"data-side": t.side,
|
|
16158
16182
|
"data-variant": t.variant,
|
|
16159
16183
|
style: {
|
|
16160
|
-
"--sidebar-width": k(
|
|
16161
|
-
"--sidebar-width-icon": k(
|
|
16162
|
-
"--sidebar-width-mobile": k(
|
|
16184
|
+
"--sidebar-width": k(Xh),
|
|
16185
|
+
"--sidebar-width-icon": k(Zh),
|
|
16186
|
+
"--sidebar-width-mobile": k(Qh)
|
|
16163
16187
|
},
|
|
16164
16188
|
class: k($)("flex h-full w-(--sidebar-width) shrink-0 flex-col border-r bg-background text-foreground", t.side === "right" && "border-r-0 border-l", t.class)
|
|
16165
|
-
}, e.$attrs), [T(e.$slots, "default")], 16,
|
|
16189
|
+
}, e.$attrs), [T(e.$slots, "default")], 16, rg)) : c.value ? (x(), a("div", {
|
|
16166
16190
|
key: 1,
|
|
16167
16191
|
"data-slot": "sidebar-mobile",
|
|
16168
16192
|
style: v({
|
|
16169
|
-
"--sidebar-width": k(
|
|
16170
|
-
"--sidebar-width-icon": k(
|
|
16171
|
-
"--sidebar-width-mobile": k(
|
|
16193
|
+
"--sidebar-width": k(Xh),
|
|
16194
|
+
"--sidebar-width-icon": k(Zh),
|
|
16195
|
+
"--sidebar-width-mobile": k(Qh)
|
|
16172
16196
|
})
|
|
16173
16197
|
}, [l.value ? (x(), a("button", {
|
|
16174
16198
|
key: 0,
|
|
@@ -16185,7 +16209,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16185
16209
|
"data-side": t.side,
|
|
16186
16210
|
"data-variant": t.variant,
|
|
16187
16211
|
class: k($)("fixed inset-y-0 z-50 flex w-(--sidebar-width-mobile) max-w-[calc(100vw-2rem)] flex-col bg-background text-foreground shadow-lg md:hidden", t.side === "left" ? "left-0 border-r" : "right-0 border-l", t.class)
|
|
16188
|
-
}, e.$attrs), [T(e.$slots, "default")], 16,
|
|
16212
|
+
}, e.$attrs), [T(e.$slots, "default")], 16, ig)) : i("", !0)], 4)) : (x(), a("div", {
|
|
16189
16213
|
key: 2,
|
|
16190
16214
|
"data-slot": "sidebar",
|
|
16191
16215
|
class: "group peer hidden text-foreground md:block",
|
|
@@ -16194,9 +16218,9 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16194
16218
|
"data-side": t.side,
|
|
16195
16219
|
"data-variant": t.variant,
|
|
16196
16220
|
style: v({
|
|
16197
|
-
"--sidebar-width": k(
|
|
16198
|
-
"--sidebar-width-icon": k(
|
|
16199
|
-
"--sidebar-width-mobile": k(
|
|
16221
|
+
"--sidebar-width": k(Xh),
|
|
16222
|
+
"--sidebar-width-icon": k(Zh),
|
|
16223
|
+
"--sidebar-width-mobile": k(Qh)
|
|
16200
16224
|
})
|
|
16201
16225
|
}, [o("div", {
|
|
16202
16226
|
"data-slot": "sidebar-gap",
|
|
@@ -16204,9 +16228,9 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16204
16228
|
}, null, 2), o("div", m({
|
|
16205
16229
|
"data-slot": "sidebar-container",
|
|
16206
16230
|
class: k($)("fixed inset-y-0 z-10 hidden h-dvh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear md:flex", t.side === "left" ? "left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]" : "right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]", t.variant === "floating" || t.variant === "inset" ? "p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+1rem)]" : "group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l", t.class)
|
|
16207
|
-
}, e.$attrs), [o("aside",
|
|
16231
|
+
}, e.$attrs), [o("aside", og, [T(e.$slots, "default")])], 16)], 12, ag));
|
|
16208
16232
|
}
|
|
16209
|
-
}),
|
|
16233
|
+
}), cg = /* @__PURE__ */ l({
|
|
16210
16234
|
__name: "SidebarContent",
|
|
16211
16235
|
props: { class: { type: [
|
|
16212
16236
|
Boolean,
|
|
@@ -16223,7 +16247,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16223
16247
|
class: g(k($)("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", t.class))
|
|
16224
16248
|
}, [T(e.$slots, "default")], 2));
|
|
16225
16249
|
}
|
|
16226
|
-
}),
|
|
16250
|
+
}), lg = /* @__PURE__ */ l({
|
|
16227
16251
|
__name: "SidebarFooter",
|
|
16228
16252
|
props: { class: { type: [
|
|
16229
16253
|
Boolean,
|
|
@@ -16240,7 +16264,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16240
16264
|
class: g(k($)("flex flex-col gap-2 p-2", t.class))
|
|
16241
16265
|
}, [T(e.$slots, "default")], 2));
|
|
16242
16266
|
}
|
|
16243
|
-
}),
|
|
16267
|
+
}), ug = /* @__PURE__ */ l({
|
|
16244
16268
|
__name: "SidebarGroup",
|
|
16245
16269
|
props: { class: { type: [
|
|
16246
16270
|
Boolean,
|
|
@@ -16257,7 +16281,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16257
16281
|
class: g(k($)("relative flex w-full min-w-0 flex-col p-2", t.class))
|
|
16258
16282
|
}, [T(e.$slots, "default")], 2));
|
|
16259
16283
|
}
|
|
16260
|
-
}),
|
|
16284
|
+
}), dg = /* @__PURE__ */ l({
|
|
16261
16285
|
__name: "SidebarGroupAction",
|
|
16262
16286
|
props: {
|
|
16263
16287
|
asChild: { type: Boolean },
|
|
@@ -16287,7 +16311,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16287
16311
|
"class"
|
|
16288
16312
|
]));
|
|
16289
16313
|
}
|
|
16290
|
-
}),
|
|
16314
|
+
}), fg = /* @__PURE__ */ l({
|
|
16291
16315
|
__name: "SidebarGroupContent",
|
|
16292
16316
|
props: { class: { type: [
|
|
16293
16317
|
Boolean,
|
|
@@ -16304,7 +16328,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16304
16328
|
class: g(k($)("w-full text-sm", t.class))
|
|
16305
16329
|
}, [T(e.$slots, "default")], 2));
|
|
16306
16330
|
}
|
|
16307
|
-
}),
|
|
16331
|
+
}), pg = /* @__PURE__ */ l({
|
|
16308
16332
|
__name: "SidebarGroupLabel",
|
|
16309
16333
|
props: {
|
|
16310
16334
|
asChild: { type: Boolean },
|
|
@@ -16334,7 +16358,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16334
16358
|
"class"
|
|
16335
16359
|
]));
|
|
16336
16360
|
}
|
|
16337
|
-
}),
|
|
16361
|
+
}), mg = /* @__PURE__ */ l({
|
|
16338
16362
|
__name: "SidebarHeader",
|
|
16339
16363
|
props: { class: { type: [
|
|
16340
16364
|
Boolean,
|
|
@@ -16351,7 +16375,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16351
16375
|
class: g(k($)("flex flex-col gap-2 p-2", t.class))
|
|
16352
16376
|
}, [T(e.$slots, "default")], 2));
|
|
16353
16377
|
}
|
|
16354
|
-
}),
|
|
16378
|
+
}), hg = /* @__PURE__ */ l({
|
|
16355
16379
|
inheritAttrs: !1,
|
|
16356
16380
|
__name: "SidebarInput",
|
|
16357
16381
|
props: { class: { type: [
|
|
@@ -16369,7 +16393,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16369
16393
|
class: k($)("flex h-8 w-full min-w-0 rounded-md border border-input bg-background px-2.5 py-1 text-sm text-foreground shadow-none outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50", t.class)
|
|
16370
16394
|
}, e.$attrs), null, 16));
|
|
16371
16395
|
}
|
|
16372
|
-
}),
|
|
16396
|
+
}), gg = /* @__PURE__ */ l({
|
|
16373
16397
|
__name: "SidebarInset",
|
|
16374
16398
|
props: { class: { type: [
|
|
16375
16399
|
Boolean,
|
|
@@ -16385,7 +16409,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16385
16409
|
class: g(k($)("relative flex min-w-0 flex-1 flex-col bg-background", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-lg md:peer-data-[variant=inset]:border md:peer-data-[variant=inset]:shadow-xs md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2", t.class))
|
|
16386
16410
|
}, [T(e.$slots, "default")], 2));
|
|
16387
16411
|
}
|
|
16388
|
-
}),
|
|
16412
|
+
}), _g = /* @__PURE__ */ l({
|
|
16389
16413
|
__name: "SidebarMenu",
|
|
16390
16414
|
props: { class: { type: [
|
|
16391
16415
|
Boolean,
|
|
@@ -16402,7 +16426,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16402
16426
|
class: g(k($)("flex w-full min-w-0 flex-col gap-1", t.class))
|
|
16403
16427
|
}, [T(e.$slots, "default")], 2));
|
|
16404
16428
|
}
|
|
16405
|
-
}),
|
|
16429
|
+
}), vg = /* @__PURE__ */ l({
|
|
16406
16430
|
__name: "SidebarMenuAction",
|
|
16407
16431
|
props: {
|
|
16408
16432
|
asChild: { type: Boolean },
|
|
@@ -16433,7 +16457,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16433
16457
|
"class"
|
|
16434
16458
|
]));
|
|
16435
16459
|
}
|
|
16436
|
-
}),
|
|
16460
|
+
}), yg = /* @__PURE__ */ l({
|
|
16437
16461
|
__name: "SidebarMenuBadge",
|
|
16438
16462
|
props: { class: { type: [
|
|
16439
16463
|
Boolean,
|
|
@@ -16450,7 +16474,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16450
16474
|
class: g(k($)("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-muted-foreground peer-hover/menu-button:text-accent-foreground peer-data-[active=true]/menu-button:text-accent-foreground", "peer-data-[size=sm]/menu-button:top-1 peer-data-[size=default]/menu-button:top-1.5 peer-data-[size=lg]/menu-button:top-3", "group-data-[collapsible=icon]:hidden", t.class))
|
|
16451
16475
|
}, [T(e.$slots, "default")], 2));
|
|
16452
16476
|
}
|
|
16453
|
-
}),
|
|
16477
|
+
}), bg = Ci("peer/menu-button flex w-full min-w-0 items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-ring transition-[background-color,color,width,height,padding] hover:bg-accent hover:text-accent-foreground focus-visible:ring-2 active:bg-accent active:text-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-accent data-[active=true]:font-medium data-[active=true]:text-accent-foreground group-data-[collapsible=icon]:size-9 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:p-0 group-data-[collapsible=icon]:[&>span:last-child]:hidden [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0", {
|
|
16454
16478
|
variants: {
|
|
16455
16479
|
size: {
|
|
16456
16480
|
default: "h-8 text-sm",
|
|
@@ -16466,7 +16490,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16466
16490
|
size: "default",
|
|
16467
16491
|
variant: "default"
|
|
16468
16492
|
}
|
|
16469
|
-
}),
|
|
16493
|
+
}), xg = /* @__PURE__ */ l({
|
|
16470
16494
|
__name: "SidebarMenuButtonChild",
|
|
16471
16495
|
props: {
|
|
16472
16496
|
class: { type: [
|
|
@@ -16491,7 +16515,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16491
16515
|
"data-size": t.size,
|
|
16492
16516
|
as: t.as,
|
|
16493
16517
|
"as-child": t.asChild,
|
|
16494
|
-
class: k($)(k(
|
|
16518
|
+
class: k($)(k(bg)({
|
|
16495
16519
|
size: t.size,
|
|
16496
16520
|
variant: t.variant
|
|
16497
16521
|
}), t.class)
|
|
@@ -16506,7 +16530,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16506
16530
|
"class"
|
|
16507
16531
|
]));
|
|
16508
16532
|
}
|
|
16509
|
-
}),
|
|
16533
|
+
}), Sg = /* @__PURE__ */ l({
|
|
16510
16534
|
inheritAttrs: !1,
|
|
16511
16535
|
__name: "SidebarMenuButton",
|
|
16512
16536
|
props: {
|
|
@@ -16525,8 +16549,8 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16525
16549
|
tooltip: {}
|
|
16526
16550
|
},
|
|
16527
16551
|
setup(e) {
|
|
16528
|
-
let t = e, i =
|
|
16529
|
-
return (e, t) => (x(), r(
|
|
16552
|
+
let t = e, i = tg(), a = V(t, "tooltip"), o = n(() => t.tooltip && i?.state.value === "collapsed" && !i?.isMobile.value ? t.tooltip : void 0);
|
|
16553
|
+
return (e, t) => (x(), r(xg, m({
|
|
16530
16554
|
...k(a),
|
|
16531
16555
|
...e.$attrs
|
|
16532
16556
|
}, { title: o.value }), {
|
|
@@ -16534,7 +16558,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16534
16558
|
_: 3
|
|
16535
16559
|
}, 16, ["title"]));
|
|
16536
16560
|
}
|
|
16537
|
-
}),
|
|
16561
|
+
}), Cg = /* @__PURE__ */ l({
|
|
16538
16562
|
__name: "SidebarMenuItem",
|
|
16539
16563
|
props: { class: { type: [
|
|
16540
16564
|
Boolean,
|
|
@@ -16551,7 +16575,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16551
16575
|
class: g(k($)("group/menu-item relative", t.class))
|
|
16552
16576
|
}, [T(e.$slots, "default")], 2));
|
|
16553
16577
|
}
|
|
16554
|
-
}),
|
|
16578
|
+
}), wg = /* @__PURE__ */ l({
|
|
16555
16579
|
__name: "SidebarMenuSub",
|
|
16556
16580
|
props: { class: { type: [
|
|
16557
16581
|
Boolean,
|
|
@@ -16568,7 +16592,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16568
16592
|
class: g(k($)("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l px-2.5 py-0.5 group-data-[collapsible=icon]:hidden", t.class))
|
|
16569
16593
|
}, [T(e.$slots, "default")], 2));
|
|
16570
16594
|
}
|
|
16571
|
-
}),
|
|
16595
|
+
}), Tg = /* @__PURE__ */ l({
|
|
16572
16596
|
__name: "SidebarMenuSubButton",
|
|
16573
16597
|
props: {
|
|
16574
16598
|
asChild: { type: Boolean },
|
|
@@ -16604,7 +16628,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16604
16628
|
"class"
|
|
16605
16629
|
]));
|
|
16606
16630
|
}
|
|
16607
|
-
}),
|
|
16631
|
+
}), Eg = /* @__PURE__ */ l({
|
|
16608
16632
|
__name: "SidebarMenuSubItem",
|
|
16609
16633
|
props: { class: { type: [
|
|
16610
16634
|
Boolean,
|
|
@@ -16621,7 +16645,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16621
16645
|
class: g(k($)("group/menu-sub-item relative", t.class))
|
|
16622
16646
|
}, [T(e.$slots, "default")], 2));
|
|
16623
16647
|
}
|
|
16624
|
-
}),
|
|
16648
|
+
}), Dg = /* @__PURE__ */ l({
|
|
16625
16649
|
__name: "SidebarProvider",
|
|
16626
16650
|
props: {
|
|
16627
16651
|
class: { type: [
|
|
@@ -16644,7 +16668,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16644
16668
|
type: Boolean,
|
|
16645
16669
|
default: !1
|
|
16646
16670
|
},
|
|
16647
|
-
storageKey: { default:
|
|
16671
|
+
storageKey: { default: Yh }
|
|
16648
16672
|
},
|
|
16649
16673
|
emits: ["update:open"],
|
|
16650
16674
|
setup(e, { emit: t }) {
|
|
@@ -16678,7 +16702,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16678
16702
|
r.persist && window.localStorage.setItem(r.storageKey, String(e));
|
|
16679
16703
|
}), H("keydown", (e) => {
|
|
16680
16704
|
m(e) && (e.preventDefault(), p());
|
|
16681
|
-
}),
|
|
16705
|
+
}), eg({
|
|
16682
16706
|
isMobile: o,
|
|
16683
16707
|
open: l,
|
|
16684
16708
|
openMobile: s,
|
|
@@ -16689,14 +16713,14 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16689
16713
|
}), (e, t) => (x(), a("div", {
|
|
16690
16714
|
"data-slot": "sidebar-wrapper",
|
|
16691
16715
|
style: v({
|
|
16692
|
-
"--sidebar-width": k(
|
|
16693
|
-
"--sidebar-width-icon": k(
|
|
16694
|
-
"--sidebar-width-mobile": k(
|
|
16716
|
+
"--sidebar-width": k(Xh),
|
|
16717
|
+
"--sidebar-width-icon": k(Zh),
|
|
16718
|
+
"--sidebar-width-mobile": k(Qh)
|
|
16695
16719
|
}),
|
|
16696
16720
|
class: g(k($)("group/sidebar-wrapper flex min-h-svh w-full bg-background text-foreground", r.class))
|
|
16697
16721
|
}, [T(e.$slots, "default")], 6));
|
|
16698
16722
|
}
|
|
16699
|
-
}),
|
|
16723
|
+
}), Og = /* @__PURE__ */ l({
|
|
16700
16724
|
__name: "SidebarRail",
|
|
16701
16725
|
props: { class: { type: [
|
|
16702
16726
|
Boolean,
|
|
@@ -16706,7 +16730,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16706
16730
|
Array
|
|
16707
16731
|
] } },
|
|
16708
16732
|
setup(e) {
|
|
16709
|
-
let t = e, { toggleSidebar: n } =
|
|
16733
|
+
let t = e, { toggleSidebar: n } = ng();
|
|
16710
16734
|
return (e, r) => (x(), a("button", {
|
|
16711
16735
|
"data-slot": "sidebar-rail",
|
|
16712
16736
|
"data-sidebar": "rail",
|
|
@@ -16718,7 +16742,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16718
16742
|
onClick: r[0] ||= (...e) => k(n) && k(n)(...e)
|
|
16719
16743
|
}, [T(e.$slots, "default")], 2));
|
|
16720
16744
|
}
|
|
16721
|
-
}),
|
|
16745
|
+
}), kg = /* @__PURE__ */ l({
|
|
16722
16746
|
__name: "SidebarSeparator",
|
|
16723
16747
|
props: { class: { type: [
|
|
16724
16748
|
Boolean,
|
|
@@ -16736,7 +16760,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16736
16760
|
class: g(k($)("mx-2 w-auto", t.class))
|
|
16737
16761
|
}, null, 8, ["class"]));
|
|
16738
16762
|
}
|
|
16739
|
-
}),
|
|
16763
|
+
}), Ag = /* @__PURE__ */ l({
|
|
16740
16764
|
__name: "SidebarTrigger",
|
|
16741
16765
|
props: { class: { type: [
|
|
16742
16766
|
Boolean,
|
|
@@ -16746,7 +16770,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16746
16770
|
Array
|
|
16747
16771
|
] } },
|
|
16748
16772
|
setup(e) {
|
|
16749
|
-
let t = e, { toggleSidebar: n } =
|
|
16773
|
+
let t = e, { toggleSidebar: n } = ng();
|
|
16750
16774
|
return (e, i) => (x(), r(k(ki), {
|
|
16751
16775
|
"data-slot": "sidebar-trigger",
|
|
16752
16776
|
"data-sidebar": "trigger",
|
|
@@ -16760,7 +16784,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16760
16784
|
_: 1
|
|
16761
16785
|
}, 8, ["class", "onClick"]));
|
|
16762
16786
|
}
|
|
16763
|
-
}),
|
|
16787
|
+
}), jg = /* @__PURE__ */ _i(/* @__PURE__ */ l({
|
|
16764
16788
|
__name: "Shimmer",
|
|
16765
16789
|
props: {
|
|
16766
16790
|
as: { default: "span" },
|
|
@@ -16812,10 +16836,10 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16812
16836
|
"style"
|
|
16813
16837
|
]));
|
|
16814
16838
|
}
|
|
16815
|
-
}), [["__scopeId", "data-v-7ed5d913"]]),
|
|
16839
|
+
}), [["__scopeId", "data-v-7ed5d913"]]), Mg = {
|
|
16816
16840
|
key: 0,
|
|
16817
16841
|
class: "sr-only"
|
|
16818
|
-
},
|
|
16842
|
+
}, Ng = /* @__PURE__ */ l({
|
|
16819
16843
|
__name: "Skeleton",
|
|
16820
16844
|
props: {
|
|
16821
16845
|
animated: {
|
|
@@ -16848,7 +16872,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16848
16872
|
class: g(k($)("block shrink-0 bg-muted", o.value, t.animated && "animate-pulse", t.class)),
|
|
16849
16873
|
role: t.decorative ? void 0 : "status"
|
|
16850
16874
|
}, {
|
|
16851
|
-
default: L(() => [t.decorative ? i("", !0) : (x(), a("span",
|
|
16875
|
+
default: L(() => [t.decorative ? i("", !0) : (x(), a("span", Mg, O(t.label), 1))]),
|
|
16852
16876
|
_: 1
|
|
16853
16877
|
}, 8, [
|
|
16854
16878
|
"data-animated",
|
|
@@ -16859,7 +16883,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16859
16883
|
"role"
|
|
16860
16884
|
]));
|
|
16861
16885
|
}
|
|
16862
|
-
}),
|
|
16886
|
+
}), Pg = /* @__PURE__ */ l({
|
|
16863
16887
|
__name: "Stepper",
|
|
16864
16888
|
props: {
|
|
16865
16889
|
defaultValue: {},
|
|
@@ -16885,7 +16909,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16885
16909
|
_: 3
|
|
16886
16910
|
}, 16, ["class"]));
|
|
16887
16911
|
}
|
|
16888
|
-
}),
|
|
16912
|
+
}), Fg = /* @__PURE__ */ l({
|
|
16889
16913
|
__name: "StepperDescription",
|
|
16890
16914
|
props: {
|
|
16891
16915
|
asChild: { type: Boolean },
|
|
@@ -16905,7 +16929,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16905
16929
|
_: 3
|
|
16906
16930
|
}, 16, ["class"]));
|
|
16907
16931
|
}
|
|
16908
|
-
}),
|
|
16932
|
+
}), Ig = { key: 1 }, Lg = /* @__PURE__ */ l({
|
|
16909
16933
|
__name: "StepperIndicator",
|
|
16910
16934
|
props: {
|
|
16911
16935
|
asChild: { type: Boolean },
|
|
@@ -16928,11 +16952,11 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16928
16952
|
key: 0,
|
|
16929
16953
|
"aria-hidden": "true",
|
|
16930
16954
|
class: "size-4"
|
|
16931
|
-
})) : (x(), a("span",
|
|
16955
|
+
})) : (x(), a("span", Ig, O(s.value), 1))])]),
|
|
16932
16956
|
_: 3
|
|
16933
16957
|
}, 16, ["class"]));
|
|
16934
16958
|
}
|
|
16935
|
-
}),
|
|
16959
|
+
}), Rg = /* @__PURE__ */ l({
|
|
16936
16960
|
__name: "StepperItem",
|
|
16937
16961
|
props: {
|
|
16938
16962
|
step: {},
|
|
@@ -16955,7 +16979,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16955
16979
|
_: 3
|
|
16956
16980
|
}, 16, ["class"]));
|
|
16957
16981
|
}
|
|
16958
|
-
}),
|
|
16982
|
+
}), zg = /* @__PURE__ */ l({
|
|
16959
16983
|
__name: "StepperSeparator",
|
|
16960
16984
|
props: {
|
|
16961
16985
|
orientation: {},
|
|
@@ -16974,7 +16998,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16974
16998
|
let t = e, n = Y(V(t, "class"));
|
|
16975
16999
|
return (e, i) => (x(), r(k(st), m({ "data-slot": "stepper-separator" }, k(n), { class: k($)("bg-muted pointer-events-none z-0 transition-colors data-[orientation=horizontal]:h-0.5 data-[orientation=horizontal]:flex-1 data-[orientation=vertical]:w-0.5 data-[orientation=vertical]:self-stretch group-data-[state=completed]:bg-primary", t.class) }), null, 16, ["class"]));
|
|
16976
17000
|
}
|
|
16977
|
-
}),
|
|
17001
|
+
}), Bg = /* @__PURE__ */ l({
|
|
16978
17002
|
__name: "StepperTitle",
|
|
16979
17003
|
props: {
|
|
16980
17004
|
asChild: { type: Boolean },
|
|
@@ -16994,7 +17018,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
16994
17018
|
_: 3
|
|
16995
17019
|
}, 16, ["class"]));
|
|
16996
17020
|
}
|
|
16997
|
-
}),
|
|
17021
|
+
}), Vg = /* @__PURE__ */ l({
|
|
16998
17022
|
__name: "StepperTrigger",
|
|
16999
17023
|
props: {
|
|
17000
17024
|
asChild: { type: Boolean },
|
|
@@ -17014,7 +17038,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
17014
17038
|
_: 3
|
|
17015
17039
|
}, 16, ["class"]));
|
|
17016
17040
|
}
|
|
17017
|
-
}),
|
|
17041
|
+
}), Hg = 1, Ug = new class {
|
|
17018
17042
|
subscribers;
|
|
17019
17043
|
toasts;
|
|
17020
17044
|
dismissedToasts;
|
|
@@ -17032,7 +17056,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
17032
17056
|
this.publish(e), this.toasts = [...this.toasts, e];
|
|
17033
17057
|
};
|
|
17034
17058
|
create = (e) => {
|
|
17035
|
-
let { message: t, ...n } = e, r = typeof e.id == "number" || e.id && e.id?.length > 0 ? e.id :
|
|
17059
|
+
let { message: t, ...n } = e, r = typeof e.id == "number" || e.id && e.id?.length > 0 ? e.id : Hg++, i = this.toasts.find((e) => e.id === r), a = e.dismissible === void 0 ? !0 : e.dismissible;
|
|
17036
17060
|
return this.dismissedToasts.has(r) && this.dismissedToasts.delete(r), i ? this.toasts = this.toasts.map((n) => n.id === r ? (this.publish({
|
|
17037
17061
|
...n,
|
|
17038
17062
|
...e,
|
|
@@ -17106,7 +17130,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
17106
17130
|
type: "default",
|
|
17107
17131
|
message: e
|
|
17108
17132
|
});
|
|
17109
|
-
else if (
|
|
17133
|
+
else if (Gg(e) && !e.ok) {
|
|
17110
17134
|
i = !1;
|
|
17111
17135
|
let r = typeof t.error == "function" ? await t.error(`HTTP error! status: ${e.status}`) : t.error, a = typeof t.description == "function" ? await t.description(`HTTP error! status: ${e.status}`) : t.description, o = typeof r == "object" && !f(r) ? r : {
|
|
17112
17136
|
message: r || "",
|
|
@@ -17163,7 +17187,7 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
17163
17187
|
return typeof n != "string" && typeof n != "number" ? { unwrap: s } : Object.assign(n, { unwrap: s });
|
|
17164
17188
|
};
|
|
17165
17189
|
custom = (e, t) => {
|
|
17166
|
-
let n = t?.id ||
|
|
17190
|
+
let n = t?.id || Hg++, r = this.toasts.find((e) => e.id === n), i = t?.dismissible === void 0 ? !0 : t.dismissible;
|
|
17167
17191
|
return this.dismissedToasts.has(n) && this.dismissedToasts.delete(n), r ? this.toasts = this.toasts.map((r) => r.id === n ? (this.publish({
|
|
17168
17192
|
...r,
|
|
17169
17193
|
component: e,
|
|
@@ -17185,34 +17209,34 @@ var ng = ["data-side", "data-variant"], rg = [
|
|
|
17185
17209
|
};
|
|
17186
17210
|
getActiveToasts = () => this.toasts.filter((e) => !this.dismissedToasts.has(e.id));
|
|
17187
17211
|
}();
|
|
17188
|
-
function
|
|
17189
|
-
let n = t?.id ||
|
|
17190
|
-
return
|
|
17212
|
+
function Wg(e, t) {
|
|
17213
|
+
let n = t?.id || Hg++;
|
|
17214
|
+
return Ug.create({
|
|
17191
17215
|
message: e,
|
|
17192
17216
|
id: n,
|
|
17193
17217
|
type: "default",
|
|
17194
17218
|
...t
|
|
17195
17219
|
}), n;
|
|
17196
17220
|
}
|
|
17197
|
-
var
|
|
17198
|
-
success:
|
|
17199
|
-
info:
|
|
17200
|
-
warning:
|
|
17201
|
-
error:
|
|
17202
|
-
custom:
|
|
17203
|
-
message:
|
|
17204
|
-
promise:
|
|
17205
|
-
dismiss:
|
|
17206
|
-
loading:
|
|
17221
|
+
var Gg = (e) => e && typeof e == "object" && "ok" in e && typeof e.ok == "boolean" && "status" in e && typeof e.status == "number", Kg = Object.assign(Wg, {
|
|
17222
|
+
success: Ug.success,
|
|
17223
|
+
info: Ug.info,
|
|
17224
|
+
warning: Ug.warning,
|
|
17225
|
+
error: Ug.error,
|
|
17226
|
+
custom: Ug.custom,
|
|
17227
|
+
message: Ug.message,
|
|
17228
|
+
promise: Ug.promise,
|
|
17229
|
+
dismiss: Ug.dismiss,
|
|
17230
|
+
loading: Ug.loading
|
|
17207
17231
|
}, {
|
|
17208
|
-
getHistory: () =>
|
|
17209
|
-
getToasts: () =>
|
|
17232
|
+
getHistory: () => Ug.toasts,
|
|
17233
|
+
getToasts: () => Ug.getActiveToasts()
|
|
17210
17234
|
});
|
|
17211
|
-
function
|
|
17235
|
+
function qg(e) {
|
|
17212
17236
|
return e.label !== void 0;
|
|
17213
17237
|
}
|
|
17214
|
-
var
|
|
17215
|
-
function
|
|
17238
|
+
var Jg = 3, Yg = "24px", Xg = "16px", Zg = 4e3, Qg = 356, $g = 14, e_ = 45, t_ = 200;
|
|
17239
|
+
function n_() {
|
|
17216
17240
|
let e = C(!1);
|
|
17217
17241
|
return I(() => {
|
|
17218
17242
|
let t = () => {
|
|
@@ -17221,17 +17245,17 @@ function t_() {
|
|
|
17221
17245
|
return document.addEventListener("visibilitychange", t), () => window.removeEventListener("visibilitychange", t);
|
|
17222
17246
|
}), { isDocumentHidden: e };
|
|
17223
17247
|
}
|
|
17224
|
-
function
|
|
17248
|
+
function r_(...e) {
|
|
17225
17249
|
return e.filter(Boolean).join(" ");
|
|
17226
17250
|
}
|
|
17227
|
-
function
|
|
17251
|
+
function i_(e) {
|
|
17228
17252
|
let [t, n] = e.split("-"), r = [];
|
|
17229
17253
|
return t && r.push(t), n && r.push(n), r;
|
|
17230
17254
|
}
|
|
17231
|
-
function
|
|
17255
|
+
function a_(e, t) {
|
|
17232
17256
|
let n = {};
|
|
17233
17257
|
return [e, t].forEach((e, t) => {
|
|
17234
|
-
let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ?
|
|
17258
|
+
let r = t === 1, i = r ? "--mobile-offset" : "--offset", a = r ? Xg : Yg;
|
|
17235
17259
|
function o(e) {
|
|
17236
17260
|
[
|
|
17237
17261
|
"top",
|
|
@@ -17252,10 +17276,10 @@ function i_(e, t) {
|
|
|
17252
17276
|
}) : o(a);
|
|
17253
17277
|
}), n;
|
|
17254
17278
|
}
|
|
17255
|
-
function
|
|
17279
|
+
function o_() {
|
|
17256
17280
|
let e = C([]);
|
|
17257
17281
|
return I((t) => {
|
|
17258
|
-
let n =
|
|
17282
|
+
let n = Ug.subscribe((t) => {
|
|
17259
17283
|
if ("dismiss" in t && t.dismiss) {
|
|
17260
17284
|
e.value = e.value.filter((e) => e.id !== t.id);
|
|
17261
17285
|
return;
|
|
@@ -17276,7 +17300,7 @@ function a_() {
|
|
|
17276
17300
|
});
|
|
17277
17301
|
}), { activeToasts: e };
|
|
17278
17302
|
}
|
|
17279
|
-
var
|
|
17303
|
+
var s_ = [
|
|
17280
17304
|
"data-rich-colors",
|
|
17281
17305
|
"data-styled",
|
|
17282
17306
|
"data-mounted",
|
|
@@ -17296,11 +17320,11 @@ var o_ = [
|
|
|
17296
17320
|
"data-swipe-direction",
|
|
17297
17321
|
"data-expanded",
|
|
17298
17322
|
"data-testid"
|
|
17299
|
-
],
|
|
17323
|
+
], c_ = [
|
|
17300
17324
|
"aria-label",
|
|
17301
17325
|
"data-disabled",
|
|
17302
17326
|
"data-close-button-position"
|
|
17303
|
-
],
|
|
17327
|
+
], l_ = /* @__PURE__ */ l({
|
|
17304
17328
|
__name: "Toast",
|
|
17305
17329
|
props: {
|
|
17306
17330
|
toast: {},
|
|
@@ -17336,13 +17360,13 @@ var o_ = [
|
|
|
17336
17360
|
"removeToast"
|
|
17337
17361
|
],
|
|
17338
17362
|
setup(t, { emit: c }) {
|
|
17339
|
-
let l = t, u = c, d = C(null), f = C(null), p = C(!1), S = C(!1), w = C(!1), D = C(!1), A = C(!1), j = C(0), M = C(0), N = C(l.toast.duration || l.duration ||
|
|
17363
|
+
let l = t, u = c, d = C(null), f = C(null), p = C(!1), S = C(!1), w = C(!1), D = C(!1), A = C(!1), j = C(0), M = C(0), N = C(l.toast.duration || l.duration || Zg), P = C(null), L = C(null), R = n(() => l.index === 0), z = n(() => l.index + 1 <= l.visibleToasts), B = n(() => l.toast.type), V = n(() => l.toast.dismissible !== !1), H = n(() => l.toast.class || ""), ee = n(() => l.descriptionClass || ""), te = n(() => {
|
|
17340
17364
|
let e = l.toast.position || l.position, t = l.heights.filter((t) => t.position === e).findIndex((e) => e.toastId === l.toast.id);
|
|
17341
17365
|
return t >= 0 ? t : 0;
|
|
17342
17366
|
}), U = n(() => {
|
|
17343
17367
|
let e = l.toast.position || l.position;
|
|
17344
17368
|
return l.heights.filter((t) => t.position === e).reduce((e, t, n) => n >= te.value ? e : e + t.height, 0);
|
|
17345
|
-
}), ne = n(() => te.value * l.gap + U.value || 0), W = n(() => l.toast.closeButton ?? l.closeButton), re = n(() => l.toast.duration || l.duration ||
|
|
17369
|
+
}), ne = n(() => te.value * l.gap + U.value || 0), W = n(() => l.toast.closeButton ?? l.closeButton), re = n(() => l.toast.duration || l.duration || Zg), G = C(0), K = C(0), q = C(null), J = n(() => l.position.split("-")), ie = n(() => J.value[0]), ae = n(() => J.value[1]), oe = n(() => typeof l.toast.title != "string"), se = n(() => typeof l.toast.description != "string"), { isDocumentHidden: ce } = n_(), le = n(() => B.value && B.value === "loading");
|
|
17346
17370
|
b(() => {
|
|
17347
17371
|
p.value = !0, N.value = re.value;
|
|
17348
17372
|
}), I(async () => {
|
|
@@ -17360,7 +17384,7 @@ var o_ = [
|
|
|
17360
17384
|
function ue() {
|
|
17361
17385
|
S.value = !0, j.value = ne.value, setTimeout(() => {
|
|
17362
17386
|
u("removeToast", l.toast);
|
|
17363
|
-
},
|
|
17387
|
+
}, t_);
|
|
17364
17388
|
}
|
|
17365
17389
|
function de() {
|
|
17366
17390
|
if (le.value || !V.value) return {};
|
|
@@ -17376,7 +17400,7 @@ var o_ = [
|
|
|
17376
17400
|
if (D.value || !V.value) return;
|
|
17377
17401
|
q.value = null;
|
|
17378
17402
|
let e = Number(L.value?.style.getPropertyValue("--swipe-amount-x").replace("px", "") || 0), t = Number(L.value?.style.getPropertyValue("--swipe-amount-y").replace("px", "") || 0), n = (/* @__PURE__ */ new Date()).getTime() - (P.value?.getTime() || 0), r = d.value === "x" ? e : t, i = Math.abs(r) / n;
|
|
17379
|
-
if (Math.abs(r) >=
|
|
17403
|
+
if (Math.abs(r) >= e_ || i > .11) {
|
|
17380
17404
|
j.value = ne.value, l.toast.onDismiss?.(l.toast), d.value === "x" ? f.value = e > 0 ? "right" : "left" : f.value = t > 0 ? "down" : "up", ue(), D.value = !0;
|
|
17381
17405
|
return;
|
|
17382
17406
|
} else L.value?.style.setProperty("--swipe-amount-x", "0px"), L.value?.style.setProperty("--swipe-amount-y", "0px");
|
|
@@ -17384,7 +17408,7 @@ var o_ = [
|
|
|
17384
17408
|
}
|
|
17385
17409
|
function me(e) {
|
|
17386
17410
|
if (!q.value || !V.value || (window?.getSelection()?.toString()?.length ?? !1)) return;
|
|
17387
|
-
let t = e.clientY - q.value.y, n = e.clientX - q.value.x, r = l.swipeDirections ??
|
|
17411
|
+
let t = e.clientY - q.value.y, n = e.clientX - q.value.x, r = l.swipeDirections ?? i_(l.position);
|
|
17388
17412
|
!d.value && (Math.abs(n) > 1 || Math.abs(t) > 1) && (d.value = Math.abs(n) > Math.abs(t) ? "x" : "y");
|
|
17389
17413
|
let i = {
|
|
17390
17414
|
x: 0,
|
|
@@ -17437,7 +17461,7 @@ var o_ = [
|
|
|
17437
17461
|
tabindex: "0",
|
|
17438
17462
|
ref_key: "toastRef",
|
|
17439
17463
|
ref: L,
|
|
17440
|
-
class: g(k(
|
|
17464
|
+
class: g(k(r_)(l.class, H.value, t.classes?.toast, t.toast.classes?.toast, t.classes?.[B.value], t.toast?.classes?.[B.value])),
|
|
17441
17465
|
"data-sonner-toast": "",
|
|
17442
17466
|
"data-rich-colors": t.toast.richColors ?? t.defaultRichColors,
|
|
17443
17467
|
"data-styled": !(t.toast.component || t.toast?.unstyled || t.unstyled),
|
|
@@ -17477,55 +17501,55 @@ var o_ = [
|
|
|
17477
17501
|
"data-disabled": le.value,
|
|
17478
17502
|
"data-close-button": "true",
|
|
17479
17503
|
"data-close-button-position": t.closeButtonPosition,
|
|
17480
|
-
class: g(k(
|
|
17504
|
+
class: g(k(r_)(t.classes?.closeButton, t.toast?.classes?.closeButton)),
|
|
17481
17505
|
onClick: de
|
|
17482
|
-
}, [t.icons?.close ? (x(), r(E(t.icons?.close), { key: 0 })) : T(t.$slots, "close-icon", { key: 1 })], 10,
|
|
17506
|
+
}, [t.icons?.close ? (x(), r(E(t.icons?.close), { key: 0 })) : T(t.$slots, "close-icon", { key: 1 })], 10, c_)) : i("v-if", !0), t.toast.component ? (x(), r(E(t.toast.component), m({ key: 1 }, t.toast.componentProps, {
|
|
17483
17507
|
onCloseToast: de,
|
|
17484
17508
|
isPaused: t.$props.expanded || t.$props.interacting || k(ce)
|
|
17485
17509
|
}), null, 16, ["isPaused"])) : (x(), a(e, { key: 2 }, [
|
|
17486
17510
|
B.value !== "default" || t.toast.icon || t.toast.promise ? (x(), a("div", {
|
|
17487
17511
|
key: 0,
|
|
17488
17512
|
"data-icon": "",
|
|
17489
|
-
class: g(k(
|
|
17513
|
+
class: g(k(r_)(t.classes?.icon, t.toast?.classes?.icon))
|
|
17490
17514
|
}, [t.toast.icon ? (x(), r(E(t.toast.icon), { key: 0 })) : (x(), a(e, { key: 1 }, [B.value === "loading" ? T(t.$slots, "loading-icon", { key: 0 }) : B.value === "success" ? T(t.$slots, "success-icon", { key: 1 }) : B.value === "error" ? T(t.$slots, "error-icon", { key: 2 }) : B.value === "warning" ? T(t.$slots, "warning-icon", { key: 3 }) : B.value === "info" ? T(t.$slots, "info-icon", { key: 4 }) : i("v-if", !0)], 64))], 2)) : i("v-if", !0),
|
|
17491
17515
|
o("div", {
|
|
17492
17516
|
"data-content": "",
|
|
17493
|
-
class: g(k(
|
|
17517
|
+
class: g(k(r_)(t.classes?.content, t.toast?.classes?.content))
|
|
17494
17518
|
}, [o("div", {
|
|
17495
17519
|
"data-title": "",
|
|
17496
|
-
class: g(k(
|
|
17520
|
+
class: g(k(r_)(t.classes?.title, t.toast.classes?.title))
|
|
17497
17521
|
}, [oe.value ? (x(), r(E(t.toast.title), _(m({ key: 0 }, t.toast.componentProps)), null, 16)) : (x(), a(e, { key: 1 }, [s(O(t.toast.title), 1)], 64))], 2), t.toast.description ? (x(), a("div", {
|
|
17498
17522
|
key: 0,
|
|
17499
17523
|
"data-description": "",
|
|
17500
|
-
class: g(k(
|
|
17524
|
+
class: g(k(r_)(t.descriptionClass, ee.value, t.classes?.description, t.toast.classes?.description))
|
|
17501
17525
|
}, [se.value ? (x(), r(E(t.toast.description), _(m({ key: 0 }, t.toast.componentProps)), null, 16)) : (x(), a(e, { key: 1 }, [s(O(t.toast.description), 1)], 64))], 2)) : i("v-if", !0)], 2),
|
|
17502
17526
|
t.toast.cancel ? (x(), a("button", {
|
|
17503
17527
|
key: 1,
|
|
17504
17528
|
style: v(t.toast.cancelButtonStyle || t.cancelButtonStyle),
|
|
17505
|
-
class: g(k(
|
|
17529
|
+
class: g(k(r_)(t.classes?.cancelButton, t.toast.classes?.cancelButton)),
|
|
17506
17530
|
"data-button": "",
|
|
17507
17531
|
"data-cancel": "",
|
|
17508
17532
|
onClick: n[0] ||= (e) => {
|
|
17509
|
-
k(
|
|
17533
|
+
k(qg)(t.toast.cancel) && V.value && (t.toast.cancel.onClick?.(e), ue());
|
|
17510
17534
|
}
|
|
17511
|
-
}, O(k(
|
|
17535
|
+
}, O(k(qg)(t.toast.cancel) ? t.toast.cancel?.label : t.toast.cancel), 7)) : i("v-if", !0),
|
|
17512
17536
|
t.toast.action ? (x(), a("button", {
|
|
17513
17537
|
key: 2,
|
|
17514
17538
|
style: v(t.toast.actionButtonStyle || t.actionButtonStyle),
|
|
17515
|
-
class: g(k(
|
|
17539
|
+
class: g(k(r_)(t.classes?.actionButton, t.toast.classes?.actionButton)),
|
|
17516
17540
|
"data-button": "",
|
|
17517
17541
|
"data-action": "",
|
|
17518
17542
|
onClick: n[1] ||= (e) => {
|
|
17519
|
-
k(
|
|
17543
|
+
k(qg)(t.toast.action) && (t.toast.action.onClick?.(e), !e.defaultPrevented && ue());
|
|
17520
17544
|
}
|
|
17521
|
-
}, O(k(
|
|
17522
|
-
], 64))], 46,
|
|
17545
|
+
}, O(k(qg)(t.toast.action) ? t.toast.action?.label : t.toast.action), 7)) : i("v-if", !0)
|
|
17546
|
+
], 64))], 46, s_));
|
|
17523
17547
|
}
|
|
17524
|
-
}),
|
|
17548
|
+
}), u_ = (e, t) => {
|
|
17525
17549
|
let n = e.__vccOpts || e;
|
|
17526
17550
|
for (let [e, r] of t) n[e] = r;
|
|
17527
17551
|
return n;
|
|
17528
|
-
},
|
|
17552
|
+
}, d_ = {}, f_ = {
|
|
17529
17553
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17530
17554
|
width: "12",
|
|
17531
17555
|
height: "12",
|
|
@@ -17536,8 +17560,8 @@ var o_ = [
|
|
|
17536
17560
|
"stroke-linecap": "round",
|
|
17537
17561
|
"stroke-linejoin": "round"
|
|
17538
17562
|
};
|
|
17539
|
-
function
|
|
17540
|
-
return x(), a("svg",
|
|
17563
|
+
function p_(e, t) {
|
|
17564
|
+
return x(), a("svg", f_, t[0] ||= [o("line", {
|
|
17541
17565
|
x1: "18",
|
|
17542
17566
|
y1: "6",
|
|
17543
17567
|
x2: "6",
|
|
@@ -17549,7 +17573,7 @@ function f_(e, t) {
|
|
|
17549
17573
|
y2: "18"
|
|
17550
17574
|
}, null, -1)]);
|
|
17551
17575
|
}
|
|
17552
|
-
var
|
|
17576
|
+
var m_ = /* @__PURE__ */ u_(d_, [["render", p_]]), h_ = ["data-visible"], g_ = { class: "sonner-spinner" }, __ = /* @__PURE__ */ l({
|
|
17553
17577
|
__name: "Loader",
|
|
17554
17578
|
props: { visible: { type: Boolean } },
|
|
17555
17579
|
setup(t) {
|
|
@@ -17557,81 +17581,81 @@ var p_ = /* @__PURE__ */ l_(u_, [["render", f_]]), m_ = ["data-visible"], h_ = {
|
|
|
17557
17581
|
return (t, r) => (x(), a("div", {
|
|
17558
17582
|
class: "sonner-loading-wrapper",
|
|
17559
17583
|
"data-visible": t.visible
|
|
17560
|
-
}, [o("div",
|
|
17584
|
+
}, [o("div", g_, [(x(!0), a(e, null, w(k(n), (e) => (x(), a("div", {
|
|
17561
17585
|
key: `spinner-bar-${e}`,
|
|
17562
17586
|
class: "sonner-loading-bar"
|
|
17563
|
-
}))), 128))])], 8,
|
|
17587
|
+
}))), 128))])], 8, h_));
|
|
17564
17588
|
}
|
|
17565
|
-
}),
|
|
17589
|
+
}), v_ = {}, y_ = {
|
|
17566
17590
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17567
17591
|
viewBox: "0 0 20 20",
|
|
17568
17592
|
fill: "currentColor",
|
|
17569
17593
|
height: "20",
|
|
17570
17594
|
width: "20"
|
|
17571
17595
|
};
|
|
17572
|
-
function
|
|
17573
|
-
return x(), a("svg",
|
|
17596
|
+
function b_(e, t) {
|
|
17597
|
+
return x(), a("svg", y_, t[0] ||= [o("path", {
|
|
17574
17598
|
"fill-rule": "evenodd",
|
|
17575
17599
|
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
|
|
17576
17600
|
"clip-rule": "evenodd"
|
|
17577
17601
|
}, null, -1)]);
|
|
17578
17602
|
}
|
|
17579
|
-
var
|
|
17603
|
+
var x_ = /* @__PURE__ */ u_(v_, [["render", b_]]), S_ = {}, C_ = {
|
|
17580
17604
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17581
17605
|
viewBox: "0 0 20 20",
|
|
17582
17606
|
fill: "currentColor",
|
|
17583
17607
|
height: "20",
|
|
17584
17608
|
width: "20"
|
|
17585
17609
|
};
|
|
17586
|
-
function
|
|
17587
|
-
return x(), a("svg",
|
|
17610
|
+
function w_(e, t) {
|
|
17611
|
+
return x(), a("svg", C_, t[0] ||= [o("path", {
|
|
17588
17612
|
"fill-rule": "evenodd",
|
|
17589
17613
|
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
|
|
17590
17614
|
"clip-rule": "evenodd"
|
|
17591
17615
|
}, null, -1)]);
|
|
17592
17616
|
}
|
|
17593
|
-
var
|
|
17617
|
+
var T_ = /* @__PURE__ */ u_(S_, [["render", w_]]), E_ = {}, D_ = {
|
|
17594
17618
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17595
17619
|
viewBox: "0 0 24 24",
|
|
17596
17620
|
fill: "currentColor",
|
|
17597
17621
|
height: "20",
|
|
17598
17622
|
width: "20"
|
|
17599
17623
|
};
|
|
17600
|
-
function
|
|
17601
|
-
return x(), a("svg",
|
|
17624
|
+
function O_(e, t) {
|
|
17625
|
+
return x(), a("svg", D_, t[0] ||= [o("path", {
|
|
17602
17626
|
"fill-rule": "evenodd",
|
|
17603
17627
|
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
|
|
17604
17628
|
"clip-rule": "evenodd"
|
|
17605
17629
|
}, null, -1)]);
|
|
17606
17630
|
}
|
|
17607
|
-
var
|
|
17631
|
+
var k_ = /* @__PURE__ */ u_(E_, [["render", O_]]), A_ = {}, j_ = {
|
|
17608
17632
|
xmlns: "http://www.w3.org/2000/svg",
|
|
17609
17633
|
viewBox: "0 0 20 20",
|
|
17610
17634
|
fill: "currentColor",
|
|
17611
17635
|
height: "20",
|
|
17612
17636
|
width: "20"
|
|
17613
17637
|
};
|
|
17614
|
-
function
|
|
17615
|
-
return x(), a("svg",
|
|
17638
|
+
function M_(e, t) {
|
|
17639
|
+
return x(), a("svg", j_, t[0] ||= [o("path", {
|
|
17616
17640
|
"fill-rule": "evenodd",
|
|
17617
17641
|
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
|
|
17618
17642
|
"clip-rule": "evenodd"
|
|
17619
17643
|
}, null, -1)]);
|
|
17620
17644
|
}
|
|
17621
|
-
var
|
|
17645
|
+
var N_ = /* @__PURE__ */ u_(A_, [["render", M_]]), P_ = ["aria-label"], F_ = [
|
|
17622
17646
|
"data-sonner-theme",
|
|
17623
17647
|
"dir",
|
|
17624
17648
|
"data-theme",
|
|
17625
17649
|
"data-rich-colors",
|
|
17626
17650
|
"data-y-position",
|
|
17627
17651
|
"data-x-position"
|
|
17628
|
-
],
|
|
17629
|
-
function
|
|
17652
|
+
], I_ = typeof window < "u" && typeof document < "u";
|
|
17653
|
+
function L_() {
|
|
17630
17654
|
if (typeof window > "u" || typeof document > "u") return "ltr";
|
|
17631
17655
|
let e = document.documentElement.getAttribute("dir");
|
|
17632
17656
|
return e === "auto" || !e ? window.getComputedStyle(document.documentElement).direction : e;
|
|
17633
17657
|
}
|
|
17634
|
-
var
|
|
17658
|
+
var R_ = /* @__PURE__ */ l({
|
|
17635
17659
|
name: "Toaster",
|
|
17636
17660
|
inheritAttrs: !1,
|
|
17637
17661
|
__name: "Toaster",
|
|
@@ -17654,8 +17678,8 @@ var L_ = /* @__PURE__ */ l({
|
|
|
17654
17678
|
default: !1
|
|
17655
17679
|
},
|
|
17656
17680
|
duration: {},
|
|
17657
|
-
gap: { default:
|
|
17658
|
-
visibleToasts: { default:
|
|
17681
|
+
gap: { default: $g },
|
|
17682
|
+
visibleToasts: { default: Jg },
|
|
17659
17683
|
closeButton: {
|
|
17660
17684
|
type: Boolean,
|
|
17661
17685
|
default: !1
|
|
@@ -17663,8 +17687,8 @@ var L_ = /* @__PURE__ */ l({
|
|
|
17663
17687
|
toastOptions: { default: () => ({}) },
|
|
17664
17688
|
class: { default: "" },
|
|
17665
17689
|
style: {},
|
|
17666
|
-
offset: { default:
|
|
17667
|
-
mobileOffset: { default:
|
|
17690
|
+
offset: { default: Yg },
|
|
17691
|
+
mobileOffset: { default: Xg },
|
|
17668
17692
|
dir: { default: "auto" },
|
|
17669
17693
|
swipeDirections: {},
|
|
17670
17694
|
icons: {},
|
|
@@ -17691,7 +17715,7 @@ var L_ = /* @__PURE__ */ l({
|
|
|
17691
17715
|
});
|
|
17692
17716
|
let E = C(s.theme === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : s.theme), D = C(null), O = C(null), j = C(!1), M = s.hotkey.join("+").replace(/Key/g, "").replace(/Digit/g, "");
|
|
17693
17717
|
function N(e) {
|
|
17694
|
-
u.value.find((t) => t.id === e.id)?.delete ||
|
|
17718
|
+
u.value.find((t) => t.id === e.id)?.delete || Ug.dismiss(e.id), u.value = u.value.filter(({ id: t }) => t !== e.id), setTimeout(() => {
|
|
17695
17719
|
u.value.find((t) => t.id === e.id) || (y.value = y.value.filter((t) => t.toastId !== e.id));
|
|
17696
17720
|
}, 250);
|
|
17697
17721
|
}
|
|
@@ -17705,7 +17729,7 @@ var L_ = /* @__PURE__ */ l({
|
|
|
17705
17729
|
e.target && e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || (S.value = !0);
|
|
17706
17730
|
}
|
|
17707
17731
|
I((e) => {
|
|
17708
|
-
e(
|
|
17732
|
+
e(Ug.subscribe((e) => {
|
|
17709
17733
|
if (e.dismiss) {
|
|
17710
17734
|
requestAnimationFrame(() => {
|
|
17711
17735
|
u.value = u.value.map((t) => t.id === e.id ? {
|
|
@@ -17769,7 +17793,7 @@ var L_ = /* @__PURE__ */ l({
|
|
|
17769
17793
|
b.value[e] = !1;
|
|
17770
17794
|
});
|
|
17771
17795
|
}
|
|
17772
|
-
|
|
17796
|
+
I_ && (document.addEventListener("keydown", t), e(() => {
|
|
17773
17797
|
document.removeEventListener("keydown", t);
|
|
17774
17798
|
}));
|
|
17775
17799
|
});
|
|
@@ -17816,7 +17840,7 @@ var L_ = /* @__PURE__ */ l({
|
|
|
17816
17840
|
"data-sonner-toaster": "",
|
|
17817
17841
|
"data-sonner-theme": E.value,
|
|
17818
17842
|
class: s.class,
|
|
17819
|
-
dir: t.dir === "auto" ?
|
|
17843
|
+
dir: t.dir === "auto" ? L_() : t.dir,
|
|
17820
17844
|
tabIndex: -1,
|
|
17821
17845
|
"data-theme": t.theme,
|
|
17822
17846
|
"data-rich-colors": t.richColors,
|
|
@@ -17824,11 +17848,11 @@ var L_ = /* @__PURE__ */ l({
|
|
|
17824
17848
|
"data-x-position": n.split("-")[1],
|
|
17825
17849
|
style: {
|
|
17826
17850
|
"--front-toast-height": `${y.value[0]?.height || 0}px`,
|
|
17827
|
-
"--width": `${k(
|
|
17851
|
+
"--width": `${k(Qg)}px`,
|
|
17828
17852
|
"--gap": `${t.gap}px`,
|
|
17829
17853
|
...t.style,
|
|
17830
17854
|
...k(l).style,
|
|
17831
|
-
...k(
|
|
17855
|
+
...k(a_)(t.offset, t.mobileOffset)
|
|
17832
17856
|
}
|
|
17833
17857
|
}, { ref_for: !0 }, t.$attrs, {
|
|
17834
17858
|
onBlur: P,
|
|
@@ -17839,7 +17863,7 @@ var L_ = /* @__PURE__ */ l({
|
|
|
17839
17863
|
onDragend: V,
|
|
17840
17864
|
onPointerdown: R,
|
|
17841
17865
|
onPointerup: H
|
|
17842
|
-
}), [(x(!0), a(e, null, w(f(n, i), (e, i) => (x(), r(
|
|
17866
|
+
}), [(x(!0), a(e, null, w(f(n, i), (e, i) => (x(), r(l_, {
|
|
17843
17867
|
key: e.id,
|
|
17844
17868
|
heights: y.value,
|
|
17845
17869
|
icons: t.icons,
|
|
@@ -17870,12 +17894,12 @@ var L_ = /* @__PURE__ */ l({
|
|
|
17870
17894
|
"onUpdate:height": te,
|
|
17871
17895
|
onRemoveToast: N
|
|
17872
17896
|
}, {
|
|
17873
|
-
"close-icon": L(() => [T(t.$slots, "close-icon", {}, () => [c(
|
|
17874
|
-
"loading-icon": L(() => [T(t.$slots, "loading-icon", {}, () => [c(
|
|
17875
|
-
"success-icon": L(() => [T(t.$slots, "success-icon", {}, () => [c(
|
|
17876
|
-
"error-icon": L(() => [T(t.$slots, "error-icon", {}, () => [c(
|
|
17877
|
-
"warning-icon": L(() => [T(t.$slots, "warning-icon", {}, () => [c(
|
|
17878
|
-
"info-icon": L(() => [T(t.$slots, "info-icon", {}, () => [c(
|
|
17897
|
+
"close-icon": L(() => [T(t.$slots, "close-icon", {}, () => [c(m_)])]),
|
|
17898
|
+
"loading-icon": L(() => [T(t.$slots, "loading-icon", {}, () => [c(__, { visible: e.type === "loading" }, null, 8, ["visible"])])]),
|
|
17899
|
+
"success-icon": L(() => [T(t.$slots, "success-icon", {}, () => [c(x_)])]),
|
|
17900
|
+
"error-icon": L(() => [T(t.$slots, "error-icon", {}, () => [c(N_)])]),
|
|
17901
|
+
"warning-icon": L(() => [T(t.$slots, "warning-icon", {}, () => [c(k_)])]),
|
|
17902
|
+
"info-icon": L(() => [T(t.$slots, "info-icon", {}, () => [c(T_)])]),
|
|
17879
17903
|
_: 2
|
|
17880
17904
|
}, 1032, [
|
|
17881
17905
|
"heights",
|
|
@@ -17903,9 +17927,9 @@ var L_ = /* @__PURE__ */ l({
|
|
|
17903
17927
|
"gap",
|
|
17904
17928
|
"expanded",
|
|
17905
17929
|
"swipeDirections"
|
|
17906
|
-
]))), 128))], 16,
|
|
17930
|
+
]))), 128))], 16, F_))), 128))], 8, P_)], 2112));
|
|
17907
17931
|
}
|
|
17908
|
-
}),
|
|
17932
|
+
}), z_ = /* @__PURE__ */ l({
|
|
17909
17933
|
__name: "Sonner",
|
|
17910
17934
|
props: {
|
|
17911
17935
|
id: {},
|
|
@@ -17932,7 +17956,7 @@ var L_ = /* @__PURE__ */ l({
|
|
|
17932
17956
|
},
|
|
17933
17957
|
setup(e) {
|
|
17934
17958
|
let t = e;
|
|
17935
|
-
return (e, n) => (x(), r(k(
|
|
17959
|
+
return (e, n) => (x(), r(k(R_), m({
|
|
17936
17960
|
class: k($)("toaster group", t.class),
|
|
17937
17961
|
style: {
|
|
17938
17962
|
"--normal-bg": "var(--popover)",
|
|
@@ -17950,7 +17974,7 @@ var L_ = /* @__PURE__ */ l({
|
|
|
17950
17974
|
_: 1
|
|
17951
17975
|
}, 16, ["class"]));
|
|
17952
17976
|
}
|
|
17953
|
-
}),
|
|
17977
|
+
}), B_ = /* @__PURE__ */ l({
|
|
17954
17978
|
__name: "Switch",
|
|
17955
17979
|
props: {
|
|
17956
17980
|
defaultValue: {},
|
|
@@ -17992,4 +18016,4 @@ var L_ = /* @__PURE__ */ l({
|
|
|
17992
18016
|
}
|
|
17993
18017
|
});
|
|
17994
18018
|
//#endregion
|
|
17995
|
-
export { hi as Accordion, vi as AccordionContent, yi as AccordionItem, bi as AccordionTrigger, Ti as Alert, Ei as AlertDescription, Di as AlertTitle, ki as Button, ji as ButtonGroup, Mi as Card, Ni as CardContent, Pi as CardDescription, Fi as CardFooter, Ii as CardHeader, Li as CardTitle, fc as Chart, Bs as Chat, Ba as ChatAttachments, bs as ChatCodeBlock, Hf as Checkbox, gl as Commit, rl as ContributionGraph, Fp as DataTable, ep as DatePicker, Ip as Dialog, Lp as DialogClose, zp as DialogContent, Bp as DialogDescription, Vp as DialogFooter, Hp as DialogHeader, Rp as DialogOverlay, Up as DialogScrollContent, Wp as DialogTitle, Gp as DialogTrigger, Vf as DiffTool, ma as DropdownMenu, ga as DropdownMenuCheckboxItem, _a as DropdownMenuContent, va as DropdownMenuGroup, ya as DropdownMenuItem, ba as DropdownMenuLabel, ge as DropdownMenuPortal, xa as DropdownMenuRadioGroup, Ca as DropdownMenuRadioItem, wa as DropdownMenuSeparator, Ta as DropdownMenuShortcut, Ea as DropdownMenuSub, Da as DropdownMenuSubContent, Oa as DropdownMenuSubTrigger, ka as DropdownMenuTrigger, Lc as Gauge, Il as GitGraph, Ed as IncidentTimeline, lp as Input, rp as InputControl, up as InputFieldGroup, Ji as KpiCard, pa as KpiLineCard, km as ModelSelector, vd as NetworkGraph, dp as Pagination, fp as PaginationContent, pp as PaginationEllipsis, mp as PaginationFirst, hp as PaginationItem, gp as PaginationLast, _p as PaginationNext, vp as PaginationPrevious, Oh as Profile, Ah as ProfileGroup, yh as Progress, mh as PromptInput, jh as RadioGroup, Mh as RadioGroupItem, Ih as RadioGroupOption,
|
|
18019
|
+
export { hi as Accordion, vi as AccordionContent, yi as AccordionItem, bi as AccordionTrigger, Ti as Alert, Ei as AlertDescription, Di as AlertTitle, ki as Button, ji as ButtonGroup, Mi as Card, Ni as CardContent, Pi as CardDescription, Fi as CardFooter, Ii as CardHeader, Li as CardTitle, fc as Chart, Bs as Chat, Ba as ChatAttachments, bs as ChatCodeBlock, Hf as Checkbox, gl as Commit, rl as ContributionGraph, Fp as DataTable, ep as DatePicker, Ip as Dialog, Lp as DialogClose, zp as DialogContent, Bp as DialogDescription, Vp as DialogFooter, Hp as DialogHeader, Rp as DialogOverlay, Up as DialogScrollContent, Wp as DialogTitle, Gp as DialogTrigger, Vf as DiffTool, ma as DropdownMenu, ga as DropdownMenuCheckboxItem, _a as DropdownMenuContent, va as DropdownMenuGroup, ya as DropdownMenuItem, ba as DropdownMenuLabel, ge as DropdownMenuPortal, xa as DropdownMenuRadioGroup, Ca as DropdownMenuRadioItem, wa as DropdownMenuSeparator, Ta as DropdownMenuShortcut, Ea as DropdownMenuSub, Da as DropdownMenuSubContent, Oa as DropdownMenuSubTrigger, ka as DropdownMenuTrigger, Lc as Gauge, Il as GitGraph, Ed as IncidentTimeline, lp as Input, rp as InputControl, up as InputFieldGroup, Ji as KpiCard, pa as KpiLineCard, km as ModelSelector, vd as NetworkGraph, dp as Pagination, fp as PaginationContent, pp as PaginationEllipsis, mp as PaginationFirst, hp as PaginationItem, gp as PaginationLast, _p as PaginationNext, vp as PaginationPrevious, Oh as Profile, Ah as ProfileGroup, yh as Progress, mh as PromptInput, jh as RadioGroup, Mh as RadioGroupItem, Ih as RadioGroupOption, Lh as Rail, qh as Reasoning, Jh as SIDEBAR_KEYBOARD_SHORTCUT, Yh as SIDEBAR_STORAGE_KEY, Xh as SIDEBAR_WIDTH, Zh as SIDEBAR_WIDTH_ICON, Qh as SIDEBAR_WIDTH_MOBILE, Kp as Select, tm as SelectContent, nm as SelectGroup, om as SelectItem, sm as SelectItemText, cm as SelectLabel, lm as SelectScrollDownButton, um as SelectScrollUpButton, dm as SelectSeparator, fm as SelectTrigger, pm as SelectValue, Vm as Separator, jg as Shimmer, sg as Sidebar, cg as SidebarContent, lg as SidebarFooter, ug as SidebarGroup, dg as SidebarGroupAction, fg as SidebarGroupContent, pg as SidebarGroupLabel, mg as SidebarHeader, hg as SidebarInput, gg as SidebarInset, _g as SidebarMenu, vg as SidebarMenuAction, yg as SidebarMenuBadge, Sg as SidebarMenuButton, xg as SidebarMenuButtonChild, Cg as SidebarMenuItem, wg as SidebarMenuSub, Tg as SidebarMenuSubButton, Eg as SidebarMenuSubItem, Dg as SidebarProvider, Og as SidebarRail, kg as SidebarSeparator, Ag as SidebarTrigger, Ng as Skeleton, Ma as Spinner, Pg as Stepper, Fg as StepperDescription, Lg as StepperIndicator, Rg as StepperItem, zg as StepperSeparator, Bg as StepperTitle, Vg as StepperTrigger, B_ as Switch, yp as Table, bp as TableBody, xp as TableCaption, Cp as TableCell, Ep as TableEmpty, Dp as TableFooter, Op as TableHead, kp as TableHeader, wp as TableRow, Gm as Tabs, Km as TabsContent, qm as TabsList, Jm as TabsTrigger, Wm as Tag, Rm as Textarea, Mm as TextareaControl, zm as TextareaFieldGroup, z_ as Toaster, Nd as Tool, Rc as Tooltip, zc as TooltipContent, Bc as TooltipProvider, Vc as TooltipTrigger, wi as alertVariants, Oi as buttonVariants, $ as cn, bg as sidebarMenuButtonVariants, Hm as tagVariants, Kg as toast, tg as useOptionalSidebar, ng as useSidebar, o_ as useVueSonner };
|