scrubbed-tailwind-components-v2 2.5.3 → 2.5.4
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/AppNavTab.vue.d.ts +2 -2
- package/dist/{DialogContent-BQ3bdCEs.js → DialogContent-DCs1bZqu.js} +1 -1
- package/dist/{SheetContent-DflOq7ZN.js → SheetContent-CtZN-OFm.js} +1 -1
- package/dist/{index-CoFsEOrT.js → index-DW7UkJJk.js} +182 -178
- package/dist/index.d.ts +53 -0
- package/dist/scrubbed-tailwind-components-v2.es.js +20 -17
- package/dist/scrubbed-tailwind-components-v2.umd.js +1 -1
- package/package.json +1 -1
package/dist/AppNavTab.vue.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ type __VLS_WithSlots<T, S> = T & (new () => {
|
|
|
4
4
|
$slots: S;
|
|
5
5
|
});
|
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
7
|
-
to: string
|
|
7
|
+
to: string | Record<string, any>;
|
|
8
8
|
$props: {
|
|
9
|
-
readonly to?: string
|
|
9
|
+
readonly to?: string | Record<string, any>;
|
|
10
10
|
};
|
|
11
11
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
12
|
type __VLS_Slots = {
|
|
@@ -8,7 +8,7 @@ const D = {
|
|
|
8
8
|
setup(f) {
|
|
9
9
|
const g = i(
|
|
10
10
|
() => import("./DialogBackground-WvtbjhWD.js")
|
|
11
|
-
), m = i(() => import("./index-
|
|
11
|
+
), m = i(() => import("./index-DW7UkJJk.js").then((t) => t.V)), l = f, { toggled: r, toggleDialog: k } = y("DIALOG_META");
|
|
12
12
|
return (t, s) => (o(), n(C, { to: "body" }, [
|
|
13
13
|
d(c, { name: "fade-in" }, {
|
|
14
14
|
default: a(() => [
|
|
@@ -7,7 +7,7 @@ const w = {
|
|
|
7
7
|
setup(m) {
|
|
8
8
|
const u = s(
|
|
9
9
|
() => import("./DialogBackground-WvtbjhWD.js")
|
|
10
|
-
), p = s(() => import("./index-
|
|
10
|
+
), p = s(() => import("./index-DW7UkJJk.js").then((t) => t.V)), f = m, { toggled: a, toggleSheet: g } = h("SHEET_META");
|
|
11
11
|
return (t, l) => (o(), n(C, { to: "body" }, [
|
|
12
12
|
d(i, { name: "fade-in" }, {
|
|
13
13
|
default: r(() => [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useSlots as W, provide as P, createElementBlock as s, openBlock as a, normalizeClass as f, createElementVNode as l, createBlock as x, resolveDynamicComponent as $, cloneVNode as A, unref as c, renderSlot as i, inject as y, withCtx as V, ref as _, createVNode as
|
|
1
|
+
import { useSlots as W, provide as P, createElementBlock as s, openBlock as a, normalizeClass as f, createElementVNode as l, createBlock as x, resolveDynamicComponent as $, cloneVNode as A, unref as c, renderSlot as i, inject as y, withCtx as V, ref as _, createVNode as L, Fragment as S, createCommentVNode as T, Teleport as J, normalizeStyle as Y, watch as X, resolveComponent as Q, mergeProps as k, useModel as B, withDirectives as I, withModifiers as O, vModelCheckbox as ee, computed as E, vModelText as N, mergeModels as G, onMounted as re, renderList as R, createTextVNode as q, toDisplayString as D, vModelRadio as te, vModelSelect as oe, defineAsyncComponent as C } from "vue";
|
|
2
2
|
import { RouterLink as M, useRoute as H } from "vue-router";
|
|
3
|
-
const
|
|
3
|
+
const ne = {
|
|
4
4
|
__name: "Alert",
|
|
5
5
|
props: {
|
|
6
6
|
variant: {
|
|
@@ -65,27 +65,27 @@ const re = {
|
|
|
65
65
|
for (const [n, o] of r)
|
|
66
66
|
t[n] = o;
|
|
67
67
|
return t;
|
|
68
|
-
},
|
|
69
|
-
function
|
|
70
|
-
return a(), s("span",
|
|
68
|
+
}, ae = {}, se = { class: "text-sm text-neutral-600" };
|
|
69
|
+
function le(e, r) {
|
|
70
|
+
return a(), s("span", se, [
|
|
71
71
|
i(e.$slots, "default")
|
|
72
72
|
]);
|
|
73
73
|
}
|
|
74
|
-
const
|
|
75
|
-
function
|
|
76
|
-
return a(), s("p",
|
|
74
|
+
const ie = /* @__PURE__ */ h(ae, [["render", le]]), de = {}, ce = { class: "font-medium" };
|
|
75
|
+
function ue(e, r) {
|
|
76
|
+
return a(), s("p", ce, [
|
|
77
77
|
i(e.$slots, "default")
|
|
78
78
|
]);
|
|
79
79
|
}
|
|
80
|
-
const
|
|
80
|
+
const ge = /* @__PURE__ */ h(de, [["render", ue]]), pe = { class: "flex w-full items-center justify-between" }, me = { class: "flex items-center gap-2" }, be = { class: "lg:w-60" }, fe = { class: "hidden xl:block" }, he = { class: "flex items-center gap-10" }, ve = { class: "hidden gap-6 sm:flex" }, bt = {
|
|
81
81
|
__name: "AppHeader",
|
|
82
82
|
setup(e) {
|
|
83
83
|
const r = y("APP_DATA"), { isSidebarToggled: t, toggleSidebar: n } = r;
|
|
84
84
|
return (o, d) => (a(), s("header", {
|
|
85
85
|
class: f(["fixed top-0 flex h-16 w-dvw items-center justify-center bg-white px-3 backdrop-blur sm:px-6", { "rounded-t-2xl": c(t) }])
|
|
86
86
|
}, [
|
|
87
|
-
l("nav",
|
|
88
|
-
l("div",
|
|
87
|
+
l("nav", pe, [
|
|
88
|
+
l("div", me, [
|
|
89
89
|
l("button", {
|
|
90
90
|
onClick: d[0] || (d[0] = (u) => c(n)()),
|
|
91
91
|
class: "block cursor-pointer rounded-full p-2 hover:bg-neutral-100 lg:hidden"
|
|
@@ -107,15 +107,15 @@ const de = /* @__PURE__ */ h(se, [["render", ie]]), ce = { class: "flex w-full i
|
|
|
107
107
|
l("path", { d: "M4 6h16" })
|
|
108
108
|
], -1)
|
|
109
109
|
])),
|
|
110
|
-
l("div",
|
|
110
|
+
l("div", be, [
|
|
111
111
|
i(o.$slots, "header-img")
|
|
112
112
|
]),
|
|
113
|
-
l("div",
|
|
113
|
+
l("div", fe, [
|
|
114
114
|
i(o.$slots, "header-banner")
|
|
115
115
|
])
|
|
116
116
|
]),
|
|
117
|
-
l("div",
|
|
118
|
-
l("ul",
|
|
117
|
+
l("div", he, [
|
|
118
|
+
l("ul", ve, [
|
|
119
119
|
i(o.$slots, "header-links")
|
|
120
120
|
]),
|
|
121
121
|
i(o.$slots, "header-actions")
|
|
@@ -123,7 +123,7 @@ const de = /* @__PURE__ */ h(se, [["render", ie]]), ce = { class: "flex w-full i
|
|
|
123
123
|
])
|
|
124
124
|
], 2));
|
|
125
125
|
}
|
|
126
|
-
},
|
|
126
|
+
}, xe = ["href"], _e = {
|
|
127
127
|
__name: "AppHeaderLink",
|
|
128
128
|
props: {
|
|
129
129
|
to: { type: String, required: !0 }
|
|
@@ -146,10 +146,10 @@ const de = /* @__PURE__ */ h(se, [["render", ie]]), ce = { class: "flex w-full i
|
|
|
146
146
|
href: r.to
|
|
147
147
|
}, [
|
|
148
148
|
i(t.$slots, "default")
|
|
149
|
-
], 8,
|
|
149
|
+
], 8, xe))
|
|
150
150
|
]));
|
|
151
151
|
}
|
|
152
|
-
},
|
|
152
|
+
}, ye = { class: "relative" }, ke = { class: "flex" }, Ce = {
|
|
153
153
|
__name: "AppLayout",
|
|
154
154
|
setup(e) {
|
|
155
155
|
const r = _(!1);
|
|
@@ -167,9 +167,9 @@ const de = /* @__PURE__ */ h(se, [["render", ie]]), ce = { class: "flex w-full i
|
|
|
167
167
|
"origin-[center_top] translate-y-4 scale-93": r.value
|
|
168
168
|
}])
|
|
169
169
|
}, [
|
|
170
|
-
l("div",
|
|
170
|
+
l("div", ye, [
|
|
171
171
|
(a(), x($(A((m = (u = o.$slots).default) == null ? void 0 : m.call(u)[0])))),
|
|
172
|
-
l("div",
|
|
172
|
+
l("div", ke, [
|
|
173
173
|
(a(), x($(A((b = (p = o.$slots).default) == null ? void 0 : b.call(p)[1])))),
|
|
174
174
|
(a(), x($(A((v = (g = o.$slots).default) == null ? void 0 : v.call(g)[2]))))
|
|
175
175
|
])
|
|
@@ -177,7 +177,7 @@ const de = /* @__PURE__ */ h(se, [["render", ie]]), ce = { class: "flex w-full i
|
|
|
177
177
|
], 2);
|
|
178
178
|
};
|
|
179
179
|
}
|
|
180
|
-
},
|
|
180
|
+
}, we = { class: "grid h-full w-full place-items-center items-center" }, $e = { class: "mb-6 h-full w-full max-w-480 space-y-6" }, Ae = {
|
|
181
181
|
__name: "AppMain",
|
|
182
182
|
setup(e) {
|
|
183
183
|
const r = y("APP_DATA"), { isSidebarToggled: t } = r;
|
|
@@ -187,28 +187,28 @@ const de = /* @__PURE__ */ h(se, [["render", ie]]), ce = { class: "flex w-full i
|
|
|
187
187
|
c(t) ? "overflow-hidden rounded-t-xl sm:rounded-none" : "sm:rounded-tl-2xl"
|
|
188
188
|
])
|
|
189
189
|
}, [
|
|
190
|
-
l("div",
|
|
191
|
-
l("div",
|
|
190
|
+
l("div", we, [
|
|
191
|
+
l("div", $e, [
|
|
192
192
|
i(n.$slots, "default")
|
|
193
193
|
])
|
|
194
194
|
])
|
|
195
195
|
], 2));
|
|
196
196
|
}
|
|
197
|
-
},
|
|
198
|
-
function
|
|
199
|
-
return a(), s("div",
|
|
197
|
+
}, Se = {}, Te = { class: "flex w-full overflow-x-auto border-b-[1px] border-neutral-200 [&::-webkit-scrollbar]:hidden" };
|
|
198
|
+
function Be(e, r) {
|
|
199
|
+
return a(), s("div", Te, [
|
|
200
200
|
i(e.$slots, "default")
|
|
201
201
|
]);
|
|
202
202
|
}
|
|
203
|
-
const
|
|
203
|
+
const Ie = /* @__PURE__ */ h(Se, [["render", Be]]), Re = { class: "shrink-0" }, Ve = {
|
|
204
204
|
__name: "AppNavTab",
|
|
205
205
|
props: {
|
|
206
|
-
to: { type: String, required: !0 }
|
|
206
|
+
to: { type: [String, Object], required: !0 }
|
|
207
207
|
},
|
|
208
208
|
setup(e) {
|
|
209
209
|
const r = e;
|
|
210
|
-
return _(null), (t, n) => (a(), s("div",
|
|
211
|
-
|
|
210
|
+
return _(null), (t, n) => (a(), s("div", Re, [
|
|
211
|
+
L(c(M), {
|
|
212
212
|
class: "[&.router-link-exact-active]:text-brand-primary-900 [&.router-link-exact-active]:border-brand-primary-700 [&.router-link-exact-active]:bg-primary-100 group relative flex h-10 shrink-0 items-center justify-between gap-2 rounded-t-xl border-b-2 border-transparent px-4 text-xs text-neutral-600 transition-all hover:border-neutral-400 hover:bg-neutral-100 [&.router-link-exact-active]:font-medium",
|
|
213
213
|
to: r.to
|
|
214
214
|
}, {
|
|
@@ -219,30 +219,30 @@ const Se = /* @__PURE__ */ h(we, [["render", Ae]]), Te = { class: "shrink-0" },
|
|
|
219
219
|
}, 8, ["to"])
|
|
220
220
|
]));
|
|
221
221
|
}
|
|
222
|
-
},
|
|
222
|
+
}, De = { class: "sidebar-wrapper fixed top-0 left-0 hidden max-h-[calc(100vh-64px)] w-64 overflow-y-auto bg-white sm:top-16 lg:block" }, Pe = {
|
|
223
223
|
key: 0,
|
|
224
224
|
class: "sticky top-0 z-50 bg-white"
|
|
225
|
-
},
|
|
225
|
+
}, Me = {
|
|
226
226
|
key: 1,
|
|
227
227
|
class: "sticky bottom-0 z-50 bg-white"
|
|
228
|
-
},
|
|
228
|
+
}, ze = {
|
|
229
229
|
__name: "AppSidebar",
|
|
230
230
|
setup(e) {
|
|
231
231
|
const r = y("APP_DATA"), { isSidebarToggled: t, toggleSidebar: n } = r;
|
|
232
232
|
return W(), (o, d) => (a(), s(S, null, [
|
|
233
|
-
l("aside",
|
|
234
|
-
o.$slots.header ? (a(), s("div",
|
|
233
|
+
l("aside", De, [
|
|
234
|
+
o.$slots.header ? (a(), s("div", Pe, [
|
|
235
235
|
i(o.$slots, "header")
|
|
236
236
|
])) : T("", !0),
|
|
237
237
|
i(o.$slots, "default"),
|
|
238
|
-
o.$slots.footer ? (a(), s("div",
|
|
238
|
+
o.$slots.footer ? (a(), s("div", Me, [
|
|
239
239
|
i(o.$slots, "footer")
|
|
240
240
|
])) : T("", !0)
|
|
241
241
|
]),
|
|
242
|
-
(a(), x(
|
|
242
|
+
(a(), x(J, { to: "body" }, [
|
|
243
243
|
l("div", {
|
|
244
244
|
class: "shadow-t-2xl fixed bottom-0 z-50 h-[60svh] w-full overflow-y-scroll rounded-t-2xl bg-white transition-all duration-500 ease-[cubic-bezier(.32,.72,0,1)] [&::-webkit-scrollbar]:hidden",
|
|
245
|
-
style:
|
|
245
|
+
style: Y(
|
|
246
246
|
c(t) ? "transform: translateZ(0)" : "transform: translate3d(0,60svh,0)"
|
|
247
247
|
)
|
|
248
248
|
}, [
|
|
@@ -258,7 +258,7 @@ const Se = /* @__PURE__ */ h(we, [["render", Ae]]), Te = { class: "shrink-0" },
|
|
|
258
258
|
]))
|
|
259
259
|
], 64));
|
|
260
260
|
}
|
|
261
|
-
},
|
|
261
|
+
}, je = { class: "flex flex-col" }, Le = {
|
|
262
262
|
__name: "AppSidebarItem",
|
|
263
263
|
setup(e) {
|
|
264
264
|
H();
|
|
@@ -266,11 +266,11 @@ const Se = /* @__PURE__ */ h(we, [["render", Ae]]), Te = { class: "shrink-0" },
|
|
|
266
266
|
function t() {
|
|
267
267
|
r.value = !r.value;
|
|
268
268
|
}
|
|
269
|
-
return P("SIDEBAR_TOGGLE", { toggled: r, toggleSidebarItem: t }), (n, o) => (a(), s("div",
|
|
269
|
+
return P("SIDEBAR_TOGGLE", { toggled: r, toggleSidebarItem: t }), (n, o) => (a(), s("div", je, [
|
|
270
270
|
i(n.$slots, "default")
|
|
271
271
|
]));
|
|
272
272
|
}
|
|
273
|
-
},
|
|
273
|
+
}, Ee = ["href"], Ne = {
|
|
274
274
|
__name: "AppSidebarItemChild",
|
|
275
275
|
props: {
|
|
276
276
|
to: { type: [String, Object], required: !0 }
|
|
@@ -292,9 +292,9 @@ const Se = /* @__PURE__ */ h(we, [["render", Ae]]), Te = { class: "shrink-0" },
|
|
|
292
292
|
href: r.to
|
|
293
293
|
}, [
|
|
294
294
|
i(t.$slots, "default")
|
|
295
|
-
], 8,
|
|
295
|
+
], 8, Ee));
|
|
296
296
|
}
|
|
297
|
-
},
|
|
297
|
+
}, Ge = {
|
|
298
298
|
__name: "AppSidebarItemChildren",
|
|
299
299
|
setup(e) {
|
|
300
300
|
const r = y("SIDEBAR_TOGGLE"), { toggled: t } = r;
|
|
@@ -304,7 +304,7 @@ const Se = /* @__PURE__ */ h(we, [["render", Ae]]), Te = { class: "shrink-0" },
|
|
|
304
304
|
i(n.$slots, "default")
|
|
305
305
|
], 2));
|
|
306
306
|
}
|
|
307
|
-
},
|
|
307
|
+
}, We = { class: "link group/sidebar-item hover:bg-background-main peer has-[&.router-link-active]:from-brand-primary-50 has-[&.router-link-active]:to-brand-primary-100 flex h-10 items-center justify-between rounded-lg px-3 transition-all has-[&.router-link-active]:bg-gradient-to-br" }, Oe = ["href"], qe = {
|
|
308
308
|
__name: "AppSidebarItemParent",
|
|
309
309
|
props: {
|
|
310
310
|
to: { type: [String, Object], required: !0 },
|
|
@@ -318,7 +318,7 @@ const Se = /* @__PURE__ */ h(we, [["render", Ae]]), Te = { class: "shrink-0" },
|
|
|
318
318
|
(g) => t.name === g.name
|
|
319
319
|
) ? d.value = !0 : d.value = !1;
|
|
320
320
|
}
|
|
321
|
-
return
|
|
321
|
+
return X(r, () => p(), { immediate: !0 }), (b, g) => (a(), s("div", We, [
|
|
322
322
|
typeof t.to == "object" || t.to.startsWith("/") ? (a(), x(c(M), {
|
|
323
323
|
key: 0,
|
|
324
324
|
onClick: g[0] || (g[0] = (v) => c(m)()),
|
|
@@ -335,7 +335,7 @@ const Se = /* @__PURE__ */ h(we, [["render", Ae]]), Te = { class: "shrink-0" },
|
|
|
335
335
|
href: t.to
|
|
336
336
|
}, [
|
|
337
337
|
i(b.$slots, "default")
|
|
338
|
-
], 8,
|
|
338
|
+
], 8, Oe)),
|
|
339
339
|
t.hasChildren ? (a(), s("button", {
|
|
340
340
|
key: 2,
|
|
341
341
|
onClick: g[1] || (g[1] = (v) => c(u)()),
|
|
@@ -359,14 +359,14 @@ const Se = /* @__PURE__ */ h(we, [["render", Ae]]), Te = { class: "shrink-0" },
|
|
|
359
359
|
])) : T("", !0)
|
|
360
360
|
]));
|
|
361
361
|
}
|
|
362
|
-
},
|
|
362
|
+
}, He = { class: "hover:bg-background-main has-[&.router-link-active]:active has-[&.router-link-active]:bg-primary-700 peer flex h-10 items-center justify-between rounded-lg px-3 transition-all" }, Fe = {
|
|
363
363
|
__name: "AppSidebarToggle",
|
|
364
364
|
setup(e) {
|
|
365
365
|
const r = y("SIDEBAR_TOGGLE");
|
|
366
366
|
return (t, n) => {
|
|
367
|
-
const o =
|
|
368
|
-
return a(), s("div",
|
|
369
|
-
|
|
367
|
+
const o = Q("RouterLink");
|
|
368
|
+
return a(), s("div", He, [
|
|
369
|
+
L(o, {
|
|
370
370
|
class: "text-primary-950 peer flex h-full w-full items-center gap-3 text-xs [&.router-link-active]:font-medium [&.router-link-active]:text-white",
|
|
371
371
|
to: "/"
|
|
372
372
|
}, {
|
|
@@ -398,21 +398,21 @@ const Se = /* @__PURE__ */ h(we, [["render", Ae]]), Te = { class: "shrink-0" },
|
|
|
398
398
|
]);
|
|
399
399
|
};
|
|
400
400
|
}
|
|
401
|
-
},
|
|
401
|
+
}, Ue = {}, Ke = { class: "px-4 pb-4 first-of-type:pt-4" }, Ze = {
|
|
402
402
|
key: 0,
|
|
403
403
|
class: "text-primary-950 px-1 text-sm font-medium"
|
|
404
|
-
},
|
|
405
|
-
function
|
|
406
|
-
return a(), s("nav",
|
|
407
|
-
e.$slots.title ? (a(), s("b",
|
|
404
|
+
}, Je = { class: "mt-2" };
|
|
405
|
+
function Ye(e, r) {
|
|
406
|
+
return a(), s("nav", Ke, [
|
|
407
|
+
e.$slots.title ? (a(), s("b", Ze, [
|
|
408
408
|
i(e.$slots, "title")
|
|
409
409
|
])) : T("", !0),
|
|
410
|
-
l("div",
|
|
410
|
+
l("div", Je, [
|
|
411
411
|
i(e.$slots, "items")
|
|
412
412
|
])
|
|
413
413
|
]);
|
|
414
414
|
}
|
|
415
|
-
const
|
|
415
|
+
const Xe = /* @__PURE__ */ h(Ue, [["render", Ye]]), j = {
|
|
416
416
|
/* ---------------- Solid Buttons ---------------- */
|
|
417
417
|
primary: {
|
|
418
418
|
backgroundColor: "bg-brand-primary-700",
|
|
@@ -640,7 +640,7 @@ const Ze = /* @__PURE__ */ h(qe, [["render", Ue]]), G = {
|
|
|
640
640
|
hoverTextColor: "hover:text-warning-700",
|
|
641
641
|
focusRing: "focus:ring-warning-200"
|
|
642
642
|
}
|
|
643
|
-
},
|
|
643
|
+
}, Qe = {
|
|
644
644
|
__name: "Badge",
|
|
645
645
|
props: {
|
|
646
646
|
variant: { type: String, default: "primary" }
|
|
@@ -649,14 +649,15 @@ const Ze = /* @__PURE__ */ h(qe, [["render", Ue]]), G = {
|
|
|
649
649
|
const r = e;
|
|
650
650
|
return (t, n) => (a(), s("div", {
|
|
651
651
|
class: f(["rounded-full px-3 py-1 text-xs font-medium", [
|
|
652
|
-
c(
|
|
653
|
-
c(
|
|
652
|
+
c(j)[r.variant].backgroundColor,
|
|
653
|
+
c(j)[r.variant].textColor,
|
|
654
|
+
c(j)[r.variant].borderColor ?? ""
|
|
654
655
|
]])
|
|
655
656
|
}, [
|
|
656
657
|
i(t.$slots, "default")
|
|
657
658
|
], 2));
|
|
658
659
|
}
|
|
659
|
-
},
|
|
660
|
+
}, er = {
|
|
660
661
|
__name: "Button",
|
|
661
662
|
props: {
|
|
662
663
|
variant: { type: String, default: "primary" }
|
|
@@ -678,16 +679,16 @@ const Ze = /* @__PURE__ */ h(qe, [["render", Ue]]), G = {
|
|
|
678
679
|
i(o.$slots, "default")
|
|
679
680
|
], 16));
|
|
680
681
|
}
|
|
681
|
-
},
|
|
682
|
-
function
|
|
683
|
-
return a(), s("div",
|
|
682
|
+
}, rr = {}, tr = { class: "rounded-2xl bg-white p-6" };
|
|
683
|
+
function or(e, r) {
|
|
684
|
+
return a(), s("div", tr, [
|
|
684
685
|
i(e.$slots, "default")
|
|
685
686
|
]);
|
|
686
687
|
}
|
|
687
|
-
const F = /* @__PURE__ */ h(
|
|
688
|
+
const F = /* @__PURE__ */ h(rr, [["render", or]]), ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
688
689
|
__proto__: null,
|
|
689
690
|
default: F
|
|
690
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
691
|
+
}, Symbol.toStringTag, { value: "Module" })), nr = {
|
|
691
692
|
__name: "Checkbox",
|
|
692
693
|
props: {
|
|
693
694
|
modelValue: {},
|
|
@@ -723,54 +724,54 @@ const F = /* @__PURE__ */ h(Xe, [["render", er]]), ut = /* @__PURE__ */ Object.f
|
|
|
723
724
|
ref: t,
|
|
724
725
|
hidden: ""
|
|
725
726
|
}), null, 16), [
|
|
726
|
-
[
|
|
727
|
+
[ee, r.value]
|
|
727
728
|
])
|
|
728
729
|
]));
|
|
729
730
|
}
|
|
730
|
-
},
|
|
731
|
-
function
|
|
732
|
-
return a(), s("div",
|
|
733
|
-
l("div",
|
|
734
|
-
l("div",
|
|
731
|
+
}, ar = {}, sr = { class: "flex flex-col items-center justify-center gap-8" }, lr = { class: "flex max-w-xs flex-col items-center gap-2 text-center" }, ir = { class: "bg-brand-primary-100 mb-2 grid size-12 place-items-center rounded-full" };
|
|
732
|
+
function dr(e, r) {
|
|
733
|
+
return a(), s("div", sr, [
|
|
734
|
+
l("div", lr, [
|
|
735
|
+
l("div", ir, [
|
|
735
736
|
i(e.$slots, "icon")
|
|
736
737
|
]),
|
|
737
738
|
i(e.$slots, "default")
|
|
738
739
|
])
|
|
739
740
|
]);
|
|
740
741
|
}
|
|
741
|
-
const
|
|
742
|
-
function
|
|
743
|
-
return a(), s("p",
|
|
742
|
+
const U = /* @__PURE__ */ h(ar, [["render", dr]]), cr = {}, ur = { class: "text-sm text-neutral-600" };
|
|
743
|
+
function gr(e, r) {
|
|
744
|
+
return a(), s("p", ur, [
|
|
744
745
|
i(e.$slots, "default")
|
|
745
746
|
]);
|
|
746
747
|
}
|
|
747
|
-
const
|
|
748
|
-
function
|
|
749
|
-
return a(), s("b",
|
|
748
|
+
const K = /* @__PURE__ */ h(cr, [["render", gr]]), pr = {}, mr = { class: "text-lg font-medium" };
|
|
749
|
+
function br(e, r) {
|
|
750
|
+
return a(), s("b", mr, [
|
|
750
751
|
i(e.$slots, "default")
|
|
751
752
|
]);
|
|
752
753
|
}
|
|
753
|
-
const
|
|
754
|
+
const Z = /* @__PURE__ */ h(pr, [["render", br]]), fr = {
|
|
754
755
|
__name: "FormField",
|
|
755
756
|
props: {
|
|
756
757
|
invalid: { type: [Boolean, String] },
|
|
757
758
|
validate: { type: Boolean, default: !1 }
|
|
758
759
|
},
|
|
759
760
|
setup(e) {
|
|
760
|
-
const r = e, t =
|
|
761
|
+
const r = e, t = E(() => r.invalid === !0 || typeof r.invalid == "string" && r.invalid.trim() !== "");
|
|
761
762
|
return (n, o) => (a(), s("div", {
|
|
762
763
|
class: f(["group flex flex-col gap-2", { "invalid-form": t.value }])
|
|
763
764
|
}, [
|
|
764
765
|
i(n.$slots, "default")
|
|
765
766
|
], 2));
|
|
766
767
|
}
|
|
767
|
-
},
|
|
768
|
-
function
|
|
769
|
-
return a(), s("p",
|
|
768
|
+
}, hr = {}, vr = { class: "text-danger-700 hidden h-0 text-xs opacity-0 transition-all group-has-user-invalid:mt-1 group-has-user-invalid:block group-has-user-invalid:h-4 group-has-user-invalid:opacity-100 group-[&.invalid-form]:mt-1 group-[&.invalid-form]:block group-[&.invalid-form]:h-4 group-[&.invalid-form]:opacity-100" };
|
|
769
|
+
function xr(e, r) {
|
|
770
|
+
return a(), s("p", vr, [
|
|
770
771
|
i(e.$slots, "default", {}, void 0, !0)
|
|
771
772
|
]);
|
|
772
773
|
}
|
|
773
|
-
const
|
|
774
|
+
const _r = /* @__PURE__ */ h(hr, [["render", xr], ["__scopeId", "data-v-a299dc33"]]), yr = {
|
|
774
775
|
__name: "Input",
|
|
775
776
|
props: {
|
|
776
777
|
modelValue: {},
|
|
@@ -781,18 +782,18 @@ const vr = /* @__PURE__ */ h(br, [["render", hr], ["__scopeId", "data-v-a299dc33
|
|
|
781
782
|
const r = B(e, "modelValue");
|
|
782
783
|
return (t, n) => I((a(), s("input", {
|
|
783
784
|
"onUpdate:modelValue": n[0] || (n[0] = (o) => r.value = o),
|
|
784
|
-
class: "group-[&.invalid-form]:focus:ring-danger-
|
|
785
|
+
class: "group-[&.invalid-form]:focus:ring-danger-300 group-[&.invalid-form]:ring-danger-300 group-[&.invalid-form]:focus:border-danger-700 group-[&.invalid-form]:border-danger-700 text-primary-950 focus:ring-brand-primary-200 focus:border-brand-primary-500 focus:user-invalid:border-danger-700 user-invalid:border-danger-700 focus:user-invalid:ring-danger-300 user-invalid:ring-danger-300 rounded-lg border border-neutral-200 bg-white px-3 py-2 text-xs transition-all duration-300 outline-none group-[&.invalid-form]:ring-3 placeholder:text-neutral-400 user-invalid:ring-3 focus:ring-3 group-[&.invalid-form]:focus:ring-3 disabled:cursor-not-allowed disabled:opacity-50"
|
|
785
786
|
}, null, 512)), [
|
|
786
|
-
[
|
|
787
|
+
[N, r.value]
|
|
787
788
|
]);
|
|
788
789
|
}
|
|
789
|
-
},
|
|
790
|
-
function
|
|
790
|
+
}, kr = {};
|
|
791
|
+
function Cr(e, r) {
|
|
791
792
|
return a(), s("label", k(e.$attrs, { class: "text-primary-950 text-xs font-medium transition-all" }), [
|
|
792
793
|
i(e.$slots, "default")
|
|
793
794
|
], 16);
|
|
794
795
|
}
|
|
795
|
-
const
|
|
796
|
+
const wr = /* @__PURE__ */ h(kr, [["render", Cr]]), $r = {}, Ar = {
|
|
796
797
|
xmlns: "http://www.w3.org/2000/svg",
|
|
797
798
|
width: "24",
|
|
798
799
|
height: "24",
|
|
@@ -804,15 +805,15 @@ const kr = /* @__PURE__ */ h(_r, [["render", yr]]), Cr = {}, wr = {
|
|
|
804
805
|
"stroke-linejoin": "round",
|
|
805
806
|
class: "lucide lucide-x-icon lucide-x"
|
|
806
807
|
};
|
|
807
|
-
function
|
|
808
|
-
return a(), s("svg",
|
|
808
|
+
function Sr(e, r) {
|
|
809
|
+
return a(), s("svg", Ar, r[0] || (r[0] = [
|
|
809
810
|
l("path", { d: "M18 6 6 18" }, null, -1),
|
|
810
811
|
l("path", { d: "m6 6 12 12" }, null, -1)
|
|
811
812
|
]));
|
|
812
813
|
}
|
|
813
|
-
const
|
|
814
|
+
const Tr = /* @__PURE__ */ h($r, [["render", Sr]]), Br = { class: "max-w-72 space-y-2 rounded-xl border border-neutral-200 bg-white p-2" }, Ir = { class: "flex flex-wrap gap-2" }, Rr = { class: "group/item hover:border-brand-primary-500 inline-flex cursor-pointer items-center justify-center gap-2 rounded-full border border-neutral-200 bg-white px-3 py-2 text-xs transition-all" }, Vr = ["onClick"], Dr = { class: "max-h-72 overflow-y-auto" }, Pr = ["onClick"], Mr = {
|
|
814
815
|
__name: "MultiSelect",
|
|
815
|
-
props: /* @__PURE__ */
|
|
816
|
+
props: /* @__PURE__ */ G({
|
|
816
817
|
data: { type: Array, required: !0 },
|
|
817
818
|
labelKey: { type: String, required: !0 },
|
|
818
819
|
valueKey: { type: String, required: !0 }
|
|
@@ -822,7 +823,7 @@ const Ar = /* @__PURE__ */ h(Cr, [["render", $r]]), Sr = { class: "max-w-72 spac
|
|
|
822
823
|
}),
|
|
823
824
|
emits: ["update:modelValue"],
|
|
824
825
|
setup(e) {
|
|
825
|
-
const r = B(e, "modelValue"), t = e, n = _([]), o = _(null), d =
|
|
826
|
+
const r = B(e, "modelValue"), t = e, n = _([]), o = _(null), d = E(() => {
|
|
826
827
|
let p = t.data;
|
|
827
828
|
return n.value.length && (p = p.filter(
|
|
828
829
|
(b) => !n.value.some(
|
|
@@ -836,18 +837,18 @@ const Ar = /* @__PURE__ */ h(Cr, [["render", $r]]), Sr = { class: "max-w-72 spac
|
|
|
836
837
|
function m(p) {
|
|
837
838
|
n.value.splice(p, 1), r.value = n.value;
|
|
838
839
|
}
|
|
839
|
-
return
|
|
840
|
+
return re(() => {
|
|
840
841
|
n.value = r.value;
|
|
841
|
-
}), (p, b) => (a(), s("div",
|
|
842
|
-
l("ul",
|
|
843
|
-
(a(!0), s(S, null, R(n.value, (g, v) => (a(), s("li",
|
|
842
|
+
}), (p, b) => (a(), s("div", Br, [
|
|
843
|
+
l("ul", Ir, [
|
|
844
|
+
(a(!0), s(S, null, R(n.value, (g, v) => (a(), s("li", Rr, [
|
|
844
845
|
q(D(g[t.labelKey]) + " ", 1),
|
|
845
846
|
l("button", {
|
|
846
847
|
onClick: (z) => m(v),
|
|
847
848
|
class: "hidden shrink-0 cursor-pointer rounded-full group-hover/item:block"
|
|
848
849
|
}, [
|
|
849
|
-
|
|
850
|
-
], 8,
|
|
850
|
+
L(Tr, { class: "size-3.5 stroke-neutral-600" })
|
|
851
|
+
], 8, Vr)
|
|
851
852
|
]))), 256))
|
|
852
853
|
]),
|
|
853
854
|
I(l("input", {
|
|
@@ -856,20 +857,20 @@ const Ar = /* @__PURE__ */ h(Cr, [["render", $r]]), Sr = { class: "max-w-72 spac
|
|
|
856
857
|
placeholder: "Search",
|
|
857
858
|
type: "text"
|
|
858
859
|
}, null, 512), [
|
|
859
|
-
[
|
|
860
|
+
[N, o.value]
|
|
860
861
|
]),
|
|
861
|
-
l("ul",
|
|
862
|
+
l("ul", Dr, [
|
|
862
863
|
(a(!0), s(S, null, R(d.value, (g) => (a(), s("li", {
|
|
863
864
|
onClick: (v) => u(g),
|
|
864
865
|
class: "hover:bg-background-main cursor-pointer rounded-lg px-2 py-3 text-xs transition-colors",
|
|
865
866
|
key: g[t.valueKey]
|
|
866
|
-
}, D(g[t.labelKey]), 9,
|
|
867
|
+
}, D(g[t.labelKey]), 9, Pr))), 128))
|
|
867
868
|
])
|
|
868
869
|
]));
|
|
869
870
|
}
|
|
870
|
-
},
|
|
871
|
+
}, zr = {
|
|
871
872
|
__name: "Radio",
|
|
872
|
-
props: /* @__PURE__ */
|
|
873
|
+
props: /* @__PURE__ */ G({
|
|
873
874
|
variant: { type: String, default: "small" }
|
|
874
875
|
}, {
|
|
875
876
|
modelValue: {},
|
|
@@ -902,11 +903,11 @@ const Ar = /* @__PURE__ */ h(Cr, [["render", $r]]), Sr = { class: "max-w-72 spac
|
|
|
902
903
|
ref: n,
|
|
903
904
|
hidden: ""
|
|
904
905
|
}), null, 16), [
|
|
905
|
-
[
|
|
906
|
+
[te, r.value]
|
|
906
907
|
])
|
|
907
908
|
], 2));
|
|
908
909
|
}
|
|
909
|
-
},
|
|
910
|
+
}, jr = "bg-[url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM1YjYxNmUiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1jaGV2cm9uLWRvd24iPjxwYXRoIGQ9Im02IDkgNiA2IDYtNiIvPjwvc3ZnPg==')]", Lr = {
|
|
910
911
|
__name: "Select",
|
|
911
912
|
props: {
|
|
912
913
|
modelValue: {},
|
|
@@ -917,24 +918,24 @@ const Ar = /* @__PURE__ */ h(Cr, [["render", $r]]), Sr = { class: "max-w-72 spac
|
|
|
917
918
|
const r = B(e, "modelValue");
|
|
918
919
|
return (t, n) => I((a(), s("select", k(t.$attrs, {
|
|
919
920
|
"onUpdate:modelValue": n[0] || (n[0] = (o) => r.value = o),
|
|
920
|
-
class: ["group-[&.invalid-form]:ring-danger-
|
|
921
|
+
class: ["group-[&.invalid-form]:focus:ring-danger-300 group-[&.invalid-form]:ring-danger-300 group-[&.invalid-form]:focus:border-danger-700 group-[&.invalid-form]:border-danger-700 text-primary-950 focus:ring-brand-primary-200 focus:border-brand-primary-500 focus:user-invalid:border-danger-700 user-invalid:border-danger-700 focus:user-invalid:ring-danger-300 user-invalid:ring-danger-300 appearance-none rounded-lg border border-neutral-200 bg-white bg-[length:16px] bg-[right_8px_center] bg-no-repeat py-2 ps-3 pe-8 text-xs transition-all duration-300 outline-none group-[&.invalid-form]:ring-3 user-invalid:ring-3 focus:ring-3 group-[&.invalid-form]:focus:ring-3 disabled:cursor-not-allowed disabled:opacity-50", jr]
|
|
921
922
|
}), [
|
|
922
923
|
i(t.$slots, "default")
|
|
923
924
|
], 16)), [
|
|
924
|
-
[
|
|
925
|
+
[oe, r.value]
|
|
925
926
|
]);
|
|
926
927
|
}
|
|
927
|
-
},
|
|
928
|
-
function
|
|
929
|
-
return a(), s("div",
|
|
928
|
+
}, Er = {}, Nr = { class: "bg-primary-100 animate-pulse rounded-lg" };
|
|
929
|
+
function Gr(e, r) {
|
|
930
|
+
return a(), s("div", Nr);
|
|
930
931
|
}
|
|
931
|
-
const
|
|
932
|
-
function
|
|
933
|
-
return a(), s("div",
|
|
932
|
+
const Wr = /* @__PURE__ */ h(Er, [["render", Gr]]), Or = {}, qr = { class: "mt-4 flex items-center gap-2" };
|
|
933
|
+
function Hr(e, r) {
|
|
934
|
+
return a(), s("div", qr, [
|
|
934
935
|
i(e.$slots, "default")
|
|
935
936
|
]);
|
|
936
937
|
}
|
|
937
|
-
const
|
|
938
|
+
const ht = /* @__PURE__ */ h(Or, [["render", Hr]]), Fr = {
|
|
938
939
|
__name: "Switch",
|
|
939
940
|
props: ["modelValue"],
|
|
940
941
|
emits: ["update:modelValue"],
|
|
@@ -959,10 +960,10 @@ const mt = /* @__PURE__ */ h(Gr, [["render", Or]]), qr = {
|
|
|
959
960
|
], 2)
|
|
960
961
|
], 16));
|
|
961
962
|
}
|
|
962
|
-
},
|
|
963
|
+
}, Ur = { class: "w-full" }, Kr = { class: "h-16" }, Zr = { key: 0 }, Jr = {
|
|
963
964
|
key: 0,
|
|
964
965
|
class: "pe-4"
|
|
965
|
-
},
|
|
966
|
+
}, Yr = {
|
|
966
967
|
__name: "Table",
|
|
967
968
|
props: {
|
|
968
969
|
columns: { type: Array, required: !0 },
|
|
@@ -970,14 +971,14 @@ const mt = /* @__PURE__ */ h(Gr, [["render", Or]]), qr = {
|
|
|
970
971
|
},
|
|
971
972
|
setup(e) {
|
|
972
973
|
const r = e;
|
|
973
|
-
return (t, n) => (a(), s("table",
|
|
974
|
+
return (t, n) => (a(), s("table", Ur, [
|
|
974
975
|
l("thead", null, [
|
|
975
|
-
l("tr",
|
|
976
|
+
l("tr", Kr, [
|
|
976
977
|
(a(!0), s(S, null, R(r.columns, (o) => (a(), s("th", {
|
|
977
978
|
key: o.key,
|
|
978
979
|
class: "text-xs font-medium text-neutral-600 first-of-type:ps-4"
|
|
979
980
|
}, D(o.label), 1))), 128)),
|
|
980
|
-
t.$slots.actions ? (a(), s("th",
|
|
981
|
+
t.$slots.actions ? (a(), s("th", Zr)) : T("", !0)
|
|
981
982
|
])
|
|
982
983
|
]),
|
|
983
984
|
l("tbody", null, [
|
|
@@ -993,14 +994,14 @@ const mt = /* @__PURE__ */ h(Gr, [["render", Or]]), qr = {
|
|
|
993
994
|
q(D(o[u.key]), 1)
|
|
994
995
|
])
|
|
995
996
|
]))), 128)),
|
|
996
|
-
t.$slots.actions ? (a(), s("td",
|
|
997
|
+
t.$slots.actions ? (a(), s("td", Jr, [
|
|
997
998
|
i(t.$slots, "actions", { row: o })
|
|
998
999
|
])) : T("", !0)
|
|
999
1000
|
]))), 128))
|
|
1000
1001
|
])
|
|
1001
1002
|
]));
|
|
1002
1003
|
}
|
|
1003
|
-
},
|
|
1004
|
+
}, Xr = { class: "overflow-x-scroll rounded-xl bg-neutral-100/50 p-1 [&::-webkit-scrollbar]:hidden" }, Qr = {
|
|
1004
1005
|
__name: "Tabs",
|
|
1005
1006
|
props: {
|
|
1006
1007
|
default: { default: null }
|
|
@@ -1010,17 +1011,17 @@ const mt = /* @__PURE__ */ h(Gr, [["render", Or]]), qr = {
|
|
|
1010
1011
|
function n(o) {
|
|
1011
1012
|
t.value = o;
|
|
1012
1013
|
}
|
|
1013
|
-
return P("TAB_DATA", { currentValue: t, setCurrentValue: n }), (o, d) => (a(), s("div",
|
|
1014
|
+
return P("TAB_DATA", { currentValue: t, setCurrentValue: n }), (o, d) => (a(), s("div", Xr, [
|
|
1014
1015
|
i(o.$slots, "default")
|
|
1015
1016
|
]));
|
|
1016
1017
|
}
|
|
1017
|
-
},
|
|
1018
|
+
}, et = {
|
|
1018
1019
|
__name: "TabItem",
|
|
1019
1020
|
props: {
|
|
1020
1021
|
value: { required: !0 }
|
|
1021
1022
|
},
|
|
1022
1023
|
setup(e) {
|
|
1023
|
-
const r = e, t = y("TAB_DATA"), { currentValue: n, setCurrentValue: o } = t, d =
|
|
1024
|
+
const r = e, t = y("TAB_DATA"), { currentValue: n, setCurrentValue: o } = t, d = E(() => n.value === r.value ? [
|
|
1024
1025
|
"bg-white",
|
|
1025
1026
|
"font-medium",
|
|
1026
1027
|
"text-primary-700",
|
|
@@ -1034,9 +1035,9 @@ const mt = /* @__PURE__ */ h(Gr, [["render", Or]]), qr = {
|
|
|
1034
1035
|
i(u.$slots, "default", {}, void 0, !0)
|
|
1035
1036
|
], 2));
|
|
1036
1037
|
}
|
|
1037
|
-
},
|
|
1038
|
+
}, rt = /* @__PURE__ */ h(et, [["__scopeId", "data-v-9e06f71f"]]), tt = {
|
|
1038
1039
|
__name: "TextArea",
|
|
1039
|
-
props: /* @__PURE__ */
|
|
1040
|
+
props: /* @__PURE__ */ G(["modelValue"], {
|
|
1040
1041
|
modelValue: {},
|
|
1041
1042
|
modelModifiers: {}
|
|
1042
1043
|
}),
|
|
@@ -1047,63 +1048,66 @@ const mt = /* @__PURE__ */ h(Gr, [["render", Or]]), qr = {
|
|
|
1047
1048
|
onInput: n[0] || (n[0] = (o) => t.$emit("update:modelValue", o.target.value))
|
|
1048
1049
|
}, t.$attrs, {
|
|
1049
1050
|
"onUpdate:modelValue": n[1] || (n[1] = (o) => r.value = o),
|
|
1050
|
-
class: "
|
|
1051
|
+
class: "group-[&.invalid-form]:focus:ring-danger-300 group-[&.invalid-form]:ring-danger-300 group-[&.invalid-form]:focus:border-danger-700 group-[&.invalid-form]:border-danger-700 text-primary-950 focus:ring-brand-primary-200 focus:border-brand-primary-500 focus:user-invalid:border-danger-700 user-invalid:border-danger-700 focus:user-invalid:ring-danger-300 user-invalid:ring-danger-300 rounded-lg border border-neutral-200 bg-white px-3 py-2 text-xs transition-all duration-300 outline-none group-[&.invalid-form]:ring-3 placeholder:text-neutral-400 user-invalid:ring-3 focus:ring-3 group-[&.invalid-form]:focus:ring-3 disabled:cursor-not-allowed disabled:opacity-50"
|
|
1051
1052
|
}), null, 16)), [
|
|
1052
|
-
[
|
|
1053
|
+
[N, r.value]
|
|
1053
1054
|
]);
|
|
1054
1055
|
}
|
|
1055
|
-
},
|
|
1056
|
+
}, ot = C(() => import("./Dialog-BHLcOviq.js")), nt = C(() => import("./DialogContent-DCs1bZqu.js")), at = C(() => import("./DialogToggle-BBhhbRSr.js")), st = C(
|
|
1056
1057
|
() => import("./DialogBackground-WvtbjhWD.js")
|
|
1057
|
-
),
|
|
1058
|
+
), lt = U, it = K, dt = Z, ct = C(() => import("./Sheet-BSbgTrds.js")), ut = C(() => import("./SheetContent-CtZN-OFm.js")), gt = C(() => import("./SheetToggle-CE4cgr3o.js")), vt = {
|
|
1058
1059
|
install(e) {
|
|
1059
|
-
e.component("Alert",
|
|
1060
|
+
e.component("Alert", ne), e.component("AlertContent", ie), e.component("AlertTitle", ge), e.component("AppHeaderLink", _e), e.component("AppLayout", Ce), e.component("AppMain", Ae), e.component("AppNavTabs", Ie), e.component("AppNavTab", Ve), e.component("AppSidebar", ze), e.component("AppSidebarItem", Le), e.component("AppSidebarItemChild", Ne), e.component("AppSidebarItemChildren", Ge), e.component("AppSidebarItemParent", qe), e.component("AppSidebarToggle", Fe), e.component("AppSidebarNavSection", Xe), e.component("Badge", Qe), e.component("Button", er), e.component("Checkbox", nr), e.component("Card", F), e.component("Dialog", ot), e.component("DialogContent", nt), e.component("DialogToggle", at), e.component("DialogBackground", st), e.component("Empty", U), e.component("EmptyContent", K), e.component("EmptyTitle", Z), e.component("State", lt), e.component("StateContent", it), e.component("StateTitle", dt), e.component("FormField", fr), e.component("FormFieldError", _r), e.component("Input", yr), e.component("Label", wr), e.component("MultiSelect", Mr), e.component("Radio", zr), e.component("Select", Lr), e.component("Sheet", ct), e.component("SheetContent", ut), e.component("SheetToggle", gt), e.component("SkeletonLoader", Wr), e.component("Switch", Fr), e.component("Table", Yr), e.component("Tabs", Qr), e.component("TabItem", rt), e.component("TextArea", tt);
|
|
1060
1061
|
}
|
|
1061
1062
|
};
|
|
1062
1063
|
export {
|
|
1063
|
-
|
|
1064
|
-
|
|
1064
|
+
ie as A,
|
|
1065
|
+
Mr as B,
|
|
1065
1066
|
F as C,
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1067
|
+
ot as D,
|
|
1068
|
+
U as E,
|
|
1069
|
+
_r as F,
|
|
1070
|
+
zr as G,
|
|
1071
|
+
Lr as H,
|
|
1072
|
+
ct as I,
|
|
1073
|
+
ut as J,
|
|
1074
|
+
gt as K,
|
|
1075
|
+
wr as L,
|
|
1076
|
+
Wr as M,
|
|
1077
|
+
ht as N,
|
|
1078
|
+
Fr as O,
|
|
1079
|
+
Yr as P,
|
|
1080
|
+
Qr as Q,
|
|
1081
|
+
tt as R,
|
|
1082
|
+
lt as S,
|
|
1083
|
+
rt as T,
|
|
1084
|
+
vt as U,
|
|
1085
|
+
ft as V,
|
|
1086
|
+
ne as _,
|
|
1087
|
+
ge as a,
|
|
1088
|
+
bt as b,
|
|
1089
|
+
_e as c,
|
|
1090
|
+
Ce as d,
|
|
1091
|
+
Ae as e,
|
|
1092
|
+
Ie as f,
|
|
1093
|
+
Ve as g,
|
|
1094
|
+
ze as h,
|
|
1095
|
+
Le as i,
|
|
1096
|
+
Ne as j,
|
|
1097
|
+
Ge as k,
|
|
1098
|
+
qe as l,
|
|
1099
|
+
Fe as m,
|
|
1100
|
+
Xe as n,
|
|
1101
|
+
Qe as o,
|
|
1102
|
+
er as p,
|
|
1103
|
+
nr as q,
|
|
1104
|
+
nt as r,
|
|
1105
|
+
at as s,
|
|
1106
|
+
st as t,
|
|
1107
|
+
K as u,
|
|
1108
|
+
Z as v,
|
|
1109
|
+
it as w,
|
|
1110
|
+
dt as x,
|
|
1111
|
+
fr as y,
|
|
1112
|
+
yr as z
|
|
1109
1113
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -101,6 +101,59 @@ export const DialogBackground: {
|
|
|
101
101
|
import Empty from "./Empty.vue";
|
|
102
102
|
import EmptyContent from "./EmptyContent.vue";
|
|
103
103
|
import EmptyTitle from "./EmptyTitle.vue";
|
|
104
|
+
export const State: {
|
|
105
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
106
|
+
P: {};
|
|
107
|
+
B: {};
|
|
108
|
+
D: {};
|
|
109
|
+
C: {};
|
|
110
|
+
M: {};
|
|
111
|
+
Defaults: {};
|
|
112
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
113
|
+
__isFragment?: never;
|
|
114
|
+
__isTeleport?: never;
|
|
115
|
+
__isSuspense?: never;
|
|
116
|
+
} & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
117
|
+
$slots: {
|
|
118
|
+
icon?: (props: {}) => any;
|
|
119
|
+
} & {
|
|
120
|
+
default?: (props: {}) => any;
|
|
121
|
+
};
|
|
122
|
+
});
|
|
123
|
+
export const StateContent: {
|
|
124
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
125
|
+
P: {};
|
|
126
|
+
B: {};
|
|
127
|
+
D: {};
|
|
128
|
+
C: {};
|
|
129
|
+
M: {};
|
|
130
|
+
Defaults: {};
|
|
131
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
132
|
+
__isFragment?: never;
|
|
133
|
+
__isTeleport?: never;
|
|
134
|
+
__isSuspense?: never;
|
|
135
|
+
} & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
136
|
+
$slots: {
|
|
137
|
+
default?: (props: {}) => any;
|
|
138
|
+
};
|
|
139
|
+
});
|
|
140
|
+
export const StateTitle: {
|
|
141
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
142
|
+
P: {};
|
|
143
|
+
B: {};
|
|
144
|
+
D: {};
|
|
145
|
+
C: {};
|
|
146
|
+
M: {};
|
|
147
|
+
Defaults: {};
|
|
148
|
+
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
149
|
+
__isFragment?: never;
|
|
150
|
+
__isTeleport?: never;
|
|
151
|
+
__isSuspense?: never;
|
|
152
|
+
} & import("vue").ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
153
|
+
$slots: {
|
|
154
|
+
default?: (props: {}) => any;
|
|
155
|
+
};
|
|
156
|
+
});
|
|
104
157
|
import FormField from "./FormField.vue";
|
|
105
158
|
import FormFieldError from "./FormFieldError.vue";
|
|
106
159
|
import Input from "./Input.vue";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "vue";
|
|
2
|
-
import { _ as t, A as p, a as o, b as
|
|
2
|
+
import { _ as t, A as p, a as o, b as i, c as r, d as l, e as n, g as d, f as S, h as A, i as b, j as g, k as m, l as T, n as C, m as c, o as h, p as u, C as I, q as k, D as y, t as D, r as E, s as F, E as L, u as v, v as x, y as B, F as N, z as f, L as H, B as M, G as w, H as P, I as R, J as j, K as q, M as z, S as G, N as J, w as K, x as O, O as Q, T as U, P as _, Q as V, R as W, U as X } from "./index-DW7UkJJk.js";
|
|
3
3
|
export {
|
|
4
4
|
t as Alert,
|
|
5
5
|
p as AlertContent,
|
|
6
6
|
o as AlertTitle,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
i as AppHeader,
|
|
8
|
+
r as AppHeaderLink,
|
|
9
9
|
l as AppLayout,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
n as AppMain,
|
|
11
|
+
d as AppNavTab,
|
|
12
|
+
S as AppNavTabs,
|
|
13
|
+
A as AppSidebar,
|
|
14
14
|
b as AppSidebarItem,
|
|
15
15
|
g as AppSidebarItemChild,
|
|
16
16
|
m as AppSidebarItemChildren,
|
|
@@ -35,15 +35,18 @@ export {
|
|
|
35
35
|
M as MultiSelect,
|
|
36
36
|
w as Radio,
|
|
37
37
|
P as Select,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
R as Sheet,
|
|
39
|
+
j as SheetContent,
|
|
40
|
+
q as SheetToggle,
|
|
41
|
+
z as SkeletonLoader,
|
|
42
|
+
G as State,
|
|
42
43
|
J as StateActions,
|
|
43
|
-
K as
|
|
44
|
-
O as
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
K as StateContent,
|
|
45
|
+
O as StateTitle,
|
|
46
|
+
Q as Switch,
|
|
47
|
+
U as TabItem,
|
|
48
|
+
_ as Table,
|
|
49
|
+
V as Tabs,
|
|
50
|
+
W as TextArea,
|
|
51
|
+
X as default
|
|
49
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],e):(a=typeof globalThis<"u"?globalThis:a||self,e(a.ScrubbedTailwindComponentsV2={},a.Vue,a.vueRouter))})(this,function(a,e,f){"use strict";const y={__name:"Alert",props:{variant:{type:String,default:"info",validator:t=>["info","success","warning","destructive"].includes(t)}},setup(t){const o=e.useSlots(),r=t,l={info:{root:"bg-brand-primary-100 border-brand-primary-300 text-brand-primary-900 ",icon:"bg-brand-primary-300 text-brand-primary-700"},success:{root:"bg-success-100 border-success-300 text-success-800",icon:"bg-success-300 text-green-700"},warning:{root:"bg-warning-100 border-warning-300 text-warning-800",icon:"bg-warning-400 text-yellow-700"},destructive:{root:"bg-danger-100 border-danger-300 text-danger-700",icon:"bg-danger-300 text-red-700"}},n={info:{icon:"stroke-brand-primary-900"},success:{icon:"stroke-success-800"},warning:{icon:"stroke-warning-800"},destructive:{icon:"stroke-danger-700"}};return e.provide("ALERT",{VARIANT_MAP:l}),(s,c)=>{var d,m,g,i,u,_;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex w-full gap-4 rounded-2xl border p-4",l[r.variant].root])},[e.createElementVNode("div",{class:e.normalizeClass(["grid size-10 place-items-center rounded-full",l[r.variant].icon])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.cloneVNode((m=(d=e.unref(o)).default)==null?void 0:m.call(d)[0])),{class:e.normalizeClass(["size-4",n[r.variant].icon])},null,8,["class"]))],2),e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.cloneVNode((i=(g=e.unref(o)).default)==null?void 0:i.call(g)[1])))),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.cloneVNode((_=(u=e.unref(o)).default)==null?void 0:_.call(u)[2]))))])],2)}}},p=(t,o)=>{const r=t.__vccOpts||t;for(const[l,n]of o)r[l]=n;return r},se={},ce={class:"text-sm text-neutral-600"};function ie(t,o){return e.openBlock(),e.createElementBlock("span",ce,[e.renderSlot(t.$slots,"default")])}const x=p(se,[["render",ie]]),de={},me={class:"font-medium"};function ge(t,o){return e.openBlock(),e.createElementBlock("p",me,[e.renderSlot(t.$slots,"default")])}const C=p(de,[["render",ge]]),pe={class:"flex w-full items-center justify-between"},ue={class:"flex items-center gap-2"},fe={class:"lg:w-60"},be={class:"hidden xl:block"},he={class:"flex items-center gap-10"},ke={class:"hidden gap-6 sm:flex"},_e={__name:"AppHeader",setup(t){const o=e.inject("APP_DATA"),{isSidebarToggled:r,toggleSidebar:l}=o;return(n,s)=>(e.openBlock(),e.createElementBlock("header",{class:e.normalizeClass(["fixed top-0 flex h-16 w-dvw items-center justify-center bg-white px-3 backdrop-blur sm:px-6",{"rounded-t-2xl":e.unref(r)}])},[e.createElementVNode("nav",pe,[e.createElementVNode("div",ue,[e.createElementVNode("button",{onClick:s[0]||(s[0]=c=>e.unref(l)()),class:"block cursor-pointer rounded-full p-2 hover:bg-neutral-100 lg:hidden"},s[1]||(s[1]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-menu-icon lucide-menu size-5 stroke-neutral-600"},[e.createElementVNode("path",{d:"M4 12h16"}),e.createElementVNode("path",{d:"M4 18h16"}),e.createElementVNode("path",{d:"M4 6h16"})],-1)])),e.createElementVNode("div",fe,[e.renderSlot(n.$slots,"header-img")]),e.createElementVNode("div",be,[e.renderSlot(n.$slots,"header-banner")])]),e.createElementVNode("div",he,[e.createElementVNode("ul",ke,[e.renderSlot(n.$slots,"header-links")]),e.renderSlot(n.$slots,"header-actions")])])],2))}},ye=["href"],B={__name:"AppHeaderLink",props:{to:{type:String,required:!0}},setup(t){const o=t;return(r,l)=>(e.openBlock(),e.createElementBlock("li",null,[o.to.startsWith("/")?(e.openBlock(),e.createBlock(e.unref(f.RouterLink),{key:0,class:"hover:text-primary-950 [&.router-link-active]:text-primary-950 text-xs uppercase text-neutral-600 hover:transition-all [&.router-link-active]:font-semibold",to:o.to},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},8,["to"])):(e.openBlock(),e.createElementBlock("a",{key:1,class:"hover:text-primary-950 text-xs uppercase text-neutral-600 hover:transition-all",href:o.to},[e.renderSlot(r.$slots,"default")],8,ye))]))}},xe={class:"relative"},Ce={class:"flex"},w={__name:"AppLayout",setup(t){const o=e.ref(!1);function r(){window.innerWidth<=1024?(o.value=!o.value,l()):o.value&&(o.value=!1,l())}function l(){const n=document.querySelector("body");n.classList.contains("bg-black")?n.classList.remove("bg-black"):n.classList.add("bg-black")}return e.provide("APP_DATA",{isSidebarToggled:o,toggleSidebar:r}),(n,s)=>{var c,d,m,g,i,u;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-white transition-all duration-500 ease-[cubic-bezier(.32,.72,0,1)]",{"origin-[center_top] translate-y-4 scale-93":o.value}])},[e.createElementVNode("div",xe,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.cloneVNode((d=(c=n.$slots).default)==null?void 0:d.call(c)[0])))),e.createElementVNode("div",Ce,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.cloneVNode((g=(m=n.$slots).default)==null?void 0:g.call(m)[1])))),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.cloneVNode((u=(i=n.$slots).default)==null?void 0:u.call(i)[2]))))])])],2)}}},Be={class:"grid h-full w-full place-items-center items-center"},we={class:"mb-6 h-full w-full max-w-480 space-y-6"},S={__name:"AppMain",setup(t){const o=e.inject("APP_DATA"),{isSidebarToggled:r}=o;return(l,n)=>(e.openBlock(),e.createElementBlock("main",{class:e.normalizeClass(["bg-background-main fixed z-[-1] h-svh w-full overflow-auto px-6 pt-24 pb-9 sm:top-16 sm:pt-9 md:h-[calc(100dvh-4rem)] lg:ms-64 lg:w-[calc(100dvw-256px)]",e.unref(r)?"overflow-hidden rounded-t-xl sm:rounded-none":"sm:rounded-tl-2xl"])},[e.createElementVNode("div",Be,[e.createElementVNode("div",we,[e.renderSlot(l.$slots,"default")])])],2))}},Se={},$e={class:"flex w-full overflow-x-auto border-b-[1px] border-neutral-200 [&::-webkit-scrollbar]:hidden"};function Ee(t,o){return e.openBlock(),e.createElementBlock("div",$e,[e.renderSlot(t.$slots,"default")])}const $=p(Se,[["render",Ee]]),Ae={class:"shrink-0"},E={__name:"AppNavTab",props:{to:{type:String,required:!0}},setup(t){const o=t;return e.ref(null),(r,l)=>(e.openBlock(),e.createElementBlock("div",Ae,[e.createVNode(e.unref(f.RouterLink),{class:"[&.router-link-exact-active]:text-brand-primary-900 [&.router-link-exact-active]:border-brand-primary-700 [&.router-link-exact-active]:bg-primary-100 group relative flex h-10 shrink-0 items-center justify-between gap-2 rounded-t-xl border-b-2 border-transparent px-4 text-xs text-neutral-600 transition-all hover:border-neutral-400 hover:bg-neutral-100 [&.router-link-exact-active]:font-medium",to:o.to},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},8,["to"])]))}},Ve={class:"sidebar-wrapper fixed top-0 left-0 hidden max-h-[calc(100vh-64px)] w-64 overflow-y-auto bg-white sm:top-16 lg:block"},Te={key:0,class:"sticky top-0 z-50 bg-white"},Ne={key:1,class:"sticky bottom-0 z-50 bg-white"},A={__name:"AppSidebar",setup(t){const o=e.inject("APP_DATA"),{isSidebarToggled:r,toggleSidebar:l}=o;return e.useSlots(),(n,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("aside",Ve,[n.$slots.header?(e.openBlock(),e.createElementBlock("div",Te,[e.renderSlot(n.$slots,"header")])):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default"),n.$slots.footer?(e.openBlock(),e.createElementBlock("div",Ne,[e.renderSlot(n.$slots,"footer")])):e.createCommentVNode("",!0)]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createElementVNode("div",{class:"shadow-t-2xl fixed bottom-0 z-50 h-[60svh] w-full overflow-y-scroll rounded-t-2xl bg-white transition-all duration-500 ease-[cubic-bezier(.32,.72,0,1)] [&::-webkit-scrollbar]:hidden",style:e.normalizeStyle(e.unref(r)?"transform: translateZ(0)":"transform: translate3d(0,60svh,0)")},[e.renderSlot(n.$slots,"default")],4),e.createElementVNode("div",{onClick:s[0]||(s[0]=c=>e.unref(l)()),class:e.normalizeClass(["backdrop transition-all [transition-behavior:allow-discrete] duration-300",e.unref(r)?"fixed inset-0 z-40 block bg-black/80 opacity-100":"hidden"])},null,2)]))],64))}},De={class:"flex flex-col"},V={__name:"AppSidebarItem",setup(t){f.useRoute();const o=e.ref(!1);function r(){o.value=!o.value}return e.provide("SIDEBAR_TOGGLE",{toggled:o,toggleSidebarItem:r}),(l,n)=>(e.openBlock(),e.createElementBlock("div",De,[e.renderSlot(l.$slots,"default")]))}},Ie=["href"],T={__name:"AppSidebarItemChild",props:{to:{type:[String,Object],required:!0}},setup(t){const o=t;return(r,l)=>typeof o.to=="object"||o.to.startsWith("/")?(e.openBlock(),e.createBlock(e.unref(f.RouterLink),{key:0,class:"[&.router-link-exact-active]:text-primary-950 [&.router-link-exact-active]:bg-background-main text-primary-950 hover:bg-background-main block h-10 items-center gap-3 overflow-hidden rounded-lg px-3 text-xs leading-[40px] text-ellipsis whitespace-nowrap transition-all [&.router-link-exact-active]:font-medium",to:o.to},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},8,["to"])):(e.openBlock(),e.createElementBlock("a",{key:1,class:"text-primary-950 hover:bg-background-main block h-10 items-center gap-3 overflow-hidden rounded-lg px-3 text-xs leading-[40px] text-ellipsis whitespace-nowrap transition-all",href:o.to},[e.renderSlot(r.$slots,"default")],8,Ie))}},N={__name:"AppSidebarItemChildren",setup(t){const o=e.inject("SIDEBAR_TOGGLE"),{toggled:r}=o;return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["max-h-0 overflow-y-hidden rounded-b-lg opacity-0 transition-all",{"mt-2 max-h-max overflow-y-auto px-2 opacity-100":e.unref(r)}])},[e.renderSlot(l.$slots,"default")],2))}},Pe={class:"link group/sidebar-item hover:bg-background-main peer has-[&.router-link-active]:from-brand-primary-50 has-[&.router-link-active]:to-brand-primary-100 flex h-10 items-center justify-between rounded-lg px-3 transition-all has-[&.router-link-active]:bg-gradient-to-br"},Me=["href"],D={__name:"AppSidebarItemParent",props:{to:{type:[String,Object],required:!0},name:{type:String},hasChildren:{type:Boolean,default:!1}},setup(t){const o=f.useRoute(),r=t,l=e.inject("SIDEBAR_TOGGLE"),n=e.inject("APP_DATA"),{toggled:s,toggleSidebarItem:c}=l,{toggleSidebar:d}=n;function m(){o.matched.some(i=>r.name===i.name)?s.value=!0:s.value=!1}return e.watch(o,()=>m(),{immediate:!0}),(g,i)=>(e.openBlock(),e.createElementBlock("div",Pe,[typeof r.to=="object"||r.to.startsWith("/")?(e.openBlock(),e.createBlock(e.unref(f.RouterLink),{key:0,onClick:i[0]||(i[0]=u=>e.unref(d)()),class:"[&.router-link-active]:text-primary-700 text-primary-950 peer flex h-full w-full items-center gap-3 text-xs [&.router-link-active]:font-medium",to:r.to},{default:e.withCtx(()=>[e.renderSlot(g.$slots,"default")]),_:3},8,["to"])):(e.openBlock(),e.createElementBlock("a",{key:1,class:"text-primary-950 peer flex h-full w-full items-center gap-3 text-xs",href:r.to},[e.renderSlot(g.$slots,"default")],8,Me)),r.hasChildren?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:i[1]||(i[1]=u=>e.unref(c)()),class:"hover:bg-brand-primary-200 cursor-pointer rounded-full p-1 transition-all",type:"button"},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass(["lucide lucide-chevron-down-icon lucide-chevron-down stroke-brand-primary-800 transition-all duration-300",{"rotate-180":e.unref(s)}])},i[2]||(i[2]=[e.createElementVNode("path",{d:"m6 9 6 6 6-6"},null,-1)]),2))])):e.createCommentVNode("",!0)]))}},ze={class:"hover:bg-background-main has-[&.router-link-active]:active has-[&.router-link-active]:bg-primary-700 peer flex h-10 items-center justify-between rounded-lg px-3 transition-all"},I={__name:"AppSidebarToggle",setup(t){const o=e.inject("SIDEBAR_TOGGLE");return(r,l)=>{const n=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock("div",ze,[e.createVNode(n,{class:"text-primary-950 peer flex h-full w-full items-center gap-3 text-xs [&.router-link-active]:font-medium [&.router-link-active]:text-white",to:"/"},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3}),e.createElementVNode("button",{onClick:l[0]||(l[0]=s=>e.unref(o).toggleSidebarItem()),class:"cursor-pointer",type:"button"},l[1]||(l[1]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-chevron-down-icon lucide-chevron-down stroke-white"},[e.createElementVNode("path",{d:"m6 9 6 6 6-6"})],-1)]))])}}},je={},Re={class:"px-4 pb-4 first-of-type:pt-4"},Le={key:0,class:"text-primary-950 px-1 text-sm font-medium"},Oe={class:"mt-2"};function Ge(t,o){return e.openBlock(),e.createElementBlock("nav",Re,[t.$slots.title?(e.openBlock(),e.createElementBlock("b",Le,[e.renderSlot(t.$slots,"title")])):e.createCommentVNode("",!0),e.createElementVNode("div",Oe,[e.renderSlot(t.$slots,"items")])])}const P=p(je,[["render",Ge]]),M={primary:{backgroundColor:"bg-brand-primary-700",textColor:"text-white"},secondary:{backgroundColor:"bg-neutral-100",textColor:"text-neutral-700"},success:{backgroundColor:"bg-success-400",textColor:"text-white"},danger:{backgroundColor:"bg-danger-600",textColor:"text-white"},warning:{backgroundColor:"bg-warning-500",textColor:"text-neutral-950"},secondaryPrimary:{backgroundColor:"bg-brand-primary-100",textColor:"text-brand-primary-700"},secondaryAltPrimary:{backgroundColor:"bg-primary-100",textColor:"text-primary-700"},secondarySuccess:{backgroundColor:"bg-success-100",textColor:"text-success-700"},secondaryDanger:{backgroundColor:"bg-danger-100",textColor:"text-danger-700"},secondaryWarning:{backgroundColor:"bg-warning-100",textColor:"text-warning-700"},outlined:{backgroundColor:"bg-transparent",textColor:"text-neutral-700",borderColor:"border border-neutral-200"},outlinedPrimary:{backgroundColor:"bg-transparent",textColor:"text-brand-primary-700",borderColor:"border border-brand-primary-300"},outlinedSuccess:{backgroundColor:"bg-transparent",textColor:"text-success-600",borderColor:"border border-success-300"},outlinedDanger:{backgroundColor:"bg-transparent",textColor:"text-danger-600",borderColor:"border border-danger-300"},outlinedWarning:{backgroundColor:"bg-transparent",textColor:"text-warning-600",borderColor:"border border-warning-300"},ghost:{backgroundColor:"bg-transparent",textColor:"text-neutral-700"},ghostPrimary:{backgroundColor:"bg-transparent",textColor:"text-brand-primary-700"},ghostSuccess:{backgroundColor:"bg-transparent",textColor:"text-success-600"},ghostDanger:{backgroundColor:"bg-transparent",textColor:"text-danger-600"},ghostWarning:{backgroundColor:"bg-transparent",textColor:"text-warning-600"}},b={primary:{backgroundColor:"bg-gradient-to-br from-brand-primary-500 to-brand-primary-700",textColor:"text-white",hoverBackgroundColor:"hover:from-brand-primary-700 hover:to-brand-primary-800",focusRing:"focus:ring-brand-primary-300"},secondary:{backgroundColor:"bg-neutral-100",textColor:"text-neutral-700",hoverBackgroundColor:"hover:bg-neutral-200",focusRing:"focus:ring-neutral-300"},success:{backgroundColor:"bg-success-400",textColor:"text-white",hoverBackgroundColor:"hover:bg-success-500",focusRing:"focus:ring-success-300"},danger:{backgroundColor:"bg-danger-600",textColor:"text-white",hoverBackgroundColor:"hover:bg-danger-700",focusRing:"focus:ring-danger-300"},warning:{backgroundColor:"bg-warning-500",textColor:"text-neutral-950",hoverBackgroundColor:"hover:bg-warning-600",focusRing:"focus:ring-warning-300"},secondaryPrimary:{backgroundColor:"bg-brand-primary-100",textColor:"text-brand-primary-700",hoverBackgroundColor:"hover:bg-brand-primary-200",focusRing:"focus:ring-brand-primary-200"},secondaryAltPrimary:{backgroundColor:"bg-primary-100",textColor:"text-primary-700",hoverBackgroundColor:"hover:bg-primary-200",focusRing:"focus:ring-primary-200"},secondarySuccess:{backgroundColor:"bg-success-100",textColor:"text-success-700",hoverBackgroundColor:"hover:bg-success-200",focusRing:"focus:ring-success-200"},secondaryDanger:{backgroundColor:"bg-danger-100",textColor:"text-danger-700",hoverBackgroundColor:"hover:bg-danger-200",focusRing:"focus:ring-danger-200"},secondaryWarning:{backgroundColor:"bg-warning-100",textColor:"text-warning-700",hoverBackgroundColor:"hover:bg-warning-200",focusRing:"focus:ring-warning-200"},outlined:{backgroundColor:"bg-transparent",textColor:"text-neutral-700",borderColor:"border border-neutral-200",hoverBackgroundColor:"hover:bg-neutral-100",hoverTextColor:"hover:text-neutral-900",focusRing:"focus:ring-neutral-200"},outlinedPrimary:{backgroundColor:"bg-transparent",textColor:"text-brand-primary-700",borderColor:"border border-brand-primary-300",hoverBackgroundColor:"hover:bg-brand-primary-100",hoverTextColor:"hover:text-brand-primary-800",focusRing:"focus:ring-brand-primary-200"},outlinedSuccess:{backgroundColor:"bg-transparent",textColor:"text-success-600",borderColor:"border border-success-300",hoverBackgroundColor:"hover:bg-success-100",hoverTextColor:"hover:text-success-700",focusRing:"focus:ring-success-200"},outlinedDanger:{backgroundColor:"bg-transparent",textColor:"text-danger-600",borderColor:"border border-danger-300",hoverBackgroundColor:"hover:bg-danger-100",hoverTextColor:"hover:text-danger-700",focusRing:"focus:ring-danger-200"},outlinedWarning:{backgroundColor:"bg-transparent",textColor:"text-warning-600",borderColor:"border border-warning-300",hoverBackgroundColor:"hover:bg-warning-100",hoverTextColor:"hover:text-warning-700",focusRing:"focus:ring-warning-200"},ghost:{backgroundColor:"bg-transparent",textColor:"text-neutral-700",hoverBackgroundColor:"hover:bg-neutral-100",hoverTextColor:"hover:text-neutral-900",focusRing:"focus:ring-neutral-200"},ghostPrimary:{backgroundColor:"bg-transparent",textColor:"text-brand-primary-700",hoverBackgroundColor:"hover:bg-brand-primary-100",hoverTextColor:"hover:text-brand-primary-800",focusRing:"focus:ring-brand-primary-200"},ghostSuccess:{backgroundColor:"bg-transparent",textColor:"text-success-600",hoverBackgroundColor:"hover:bg-success-100",hoverTextColor:"hover:text-success-700",focusRing:"focus:ring-success-200"},ghostDanger:{backgroundColor:"bg-transparent",textColor:"text-danger-600",hoverBackgroundColor:"hover:bg-danger-100",hoverTextColor:"hover:text-danger-700",focusRing:"focus:ring-danger-200"},ghostWarning:{backgroundColor:"bg-transparent",textColor:"text-warning-600",hoverBackgroundColor:"hover:bg-warning-100",hoverTextColor:"hover:text-warning-700",focusRing:"focus:ring-warning-200"}},z={__name:"Badge",props:{variant:{type:String,default:"primary"}},setup(t){const o=t;return(r,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rounded-full px-3 py-1 text-xs font-medium",[e.unref(M)[o.variant].backgroundColor,e.unref(M)[o.variant].textColor]])},[e.renderSlot(r.$slots,"default")],2))}},j={__name:"Button",props:{variant:{type:String,default:"primary"}},setup(t,{expose:o}){const r=t,l=e.ref(null);return o({buttonRef:l}),(n,s)=>(e.openBlock(),e.createElementBlock("button",e.mergeProps(n.$attrs,{class:["cursor-pointer rounded-lg px-4 py-2 text-xs transition-all active:scale-[0.97] disabled:cursor-not-allowed disabled:opacity-50 disabled:active:scale-100",[e.unref(b)[r.variant].backgroundColor,e.unref(b)[r.variant].borderColor,e.unref(b)[r.variant].textColor,e.unref(b)[r.variant].hoverBackgroundColor,e.unref(b)[r.variant].hoverTextColor,e.unref(b)[r.variant].focusRing]],ref_key:"buttonRef",ref:l}),[e.renderSlot(n.$slots,"default")],16))}},Fe={},We={class:"rounded-2xl bg-white p-6"};function He(t,o){return e.openBlock(),e.createElementBlock("div",We,[e.renderSlot(t.$slots,"default")])}const h=p(Fe,[["render",He]]),R=Object.freeze(Object.defineProperty({__proto__:null,default:h},Symbol.toStringTag,{value:"Module"})),L={__name:"Checkbox",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue"),r=e.ref(null);return(l,n)=>(e.openBlock(),e.createElementBlock("button",{onClick:n[2]||(n[2]=s=>r.value.click()),class:"group/checkbox has-checked:bg-brand-primary-700 flex size-4 cursor-pointer items-center justify-center rounded-sm bg-neutral-200 transition-all duration-300 active:scale-[0.50] has-disabled:cursor-not-allowed has-disabled:opacity-50"},[n[3]||(n[3]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-check-icon lucide-check scale-0 stroke-white opacity-0 group-has-[:checked]/checkbox:scale-100 group-has-[:checked]/checkbox:opacity-100"},[e.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)),e.withDirectives(e.createElementVNode("input",e.mergeProps(l.$attrs,{"onUpdate:modelValue":n[0]||(n[0]=s=>o.value=s),onChange:n[1]||(n[1]=e.withModifiers(()=>{},["stop"])),type:"checkbox",ref_key:"checkboxRef",ref:r,hidden:""}),null,16),[[e.vModelCheckbox,o.value]])]))}},qe={},Ue={class:"flex flex-col items-center justify-center gap-8"},Ze={class:"flex max-w-xs flex-col items-center gap-2 text-center"},Ke={class:"bg-brand-primary-100 mb-2 grid size-12 place-items-center rounded-full"};function Je(t,o){return e.openBlock(),e.createElementBlock("div",Ue,[e.createElementVNode("div",Ze,[e.createElementVNode("div",Ke,[e.renderSlot(t.$slots,"icon")]),e.renderSlot(t.$slots,"default")])])}const O=p(qe,[["render",Je]]),Ye={},Xe={class:"text-sm text-neutral-600"};function Qe(t,o){return e.openBlock(),e.createElementBlock("p",Xe,[e.renderSlot(t.$slots,"default")])}const ve=p(Ye,[["render",Qe]]),et={},tt={class:"text-lg font-medium"};function ot(t,o){return e.openBlock(),e.createElementBlock("b",tt,[e.renderSlot(t.$slots,"default")])}const rt=p(et,[["render",ot]]),G={__name:"FormField",props:{invalid:{type:[Boolean,String]},validate:{type:Boolean,default:!1}},setup(t){const o=t,r=e.computed(()=>o.invalid===!0||typeof o.invalid=="string"&&o.invalid.trim()!=="");return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["group flex flex-col gap-2",{"invalid-form":r.value}])},[e.renderSlot(l.$slots,"default")],2))}},nt={},lt={class:"text-danger-700 hidden h-0 text-xs opacity-0 transition-all group-has-user-invalid:mt-1 group-has-user-invalid:block group-has-user-invalid:h-4 group-has-user-invalid:opacity-100 group-[&.invalid-form]:mt-1 group-[&.invalid-form]:block group-[&.invalid-form]:h-4 group-[&.invalid-form]:opacity-100"};function at(t,o){return e.openBlock(),e.createElementBlock("p",lt,[e.renderSlot(t.$slots,"default",{},void 0,!0)])}const F=p(nt,[["render",at],["__scopeId","data-v-a299dc33"]]),W={__name:"Input",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue");return(r,l)=>e.withDirectives((e.openBlock(),e.createElementBlock("input",{"onUpdate:modelValue":l[0]||(l[0]=n=>o.value=n),class:"group-[&.invalid-form]:focus:ring-danger-700 group-[&.invalid-form]:ring-danger-700 text-primary-950 focus:ring-brand-primary-700 focus:user-invalid:ring-danger-700 user-invalid:ring-danger-700 rounded-lg border-[1px] border-neutral-200 bg-white px-3 py-2 text-xs ring-offset-2 transition-all duration-300 outline-none group-[&.invalid-form]:ring-2 placeholder:text-neutral-400 user-invalid:ring-2 focus:ring-2 group-[&.invalid-form]:focus:ring-2 disabled:cursor-not-allowed disabled:opacity-50"},null,512)),[[e.vModelText,o.value]])}},st={};function ct(t,o){return e.openBlock(),e.createElementBlock("label",e.mergeProps(t.$attrs,{class:"text-primary-950 text-xs font-medium transition-all"}),[e.renderSlot(t.$slots,"default")],16)}const H=p(st,[["render",ct]]),it={},dt={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-x-icon lucide-x"};function mt(t,o){return e.openBlock(),e.createElementBlock("svg",dt,o[0]||(o[0]=[e.createElementVNode("path",{d:"M18 6 6 18"},null,-1),e.createElementVNode("path",{d:"m6 6 12 12"},null,-1)]))}const gt=p(it,[["render",mt]]),pt={class:"max-w-72 space-y-2 rounded-xl border border-neutral-200 bg-white p-2"},ut={class:"flex flex-wrap gap-2"},ft={class:"group/item hover:border-brand-primary-500 inline-flex cursor-pointer items-center justify-center gap-2 rounded-full border border-neutral-200 bg-white px-3 py-2 text-xs transition-all"},bt=["onClick"],ht={class:"max-h-72 overflow-y-auto"},kt=["onClick"],q={__name:"MultiSelect",props:e.mergeModels({data:{type:Array,required:!0},labelKey:{type:String,required:!0},valueKey:{type:String,required:!0}},{modelValue:{default:()=>[]},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue"),r=t,l=e.ref([]),n=e.ref(null),s=e.computed(()=>{let m=r.data;return l.value.length&&(m=m.filter(g=>!l.value.some(i=>i[r.valueKey]===g[r.valueKey]))),n.value?m.filter(g=>g[r.labelKey].toLowerCase().includes(n.value.toLowerCase())):m});function c(m){l.value.push(m),o.value=l.value}function d(m){l.value.splice(m,1),o.value=l.value}return e.onMounted(()=>{l.value=o.value}),(m,g)=>(e.openBlock(),e.createElementBlock("div",pt,[e.createElementVNode("ul",ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(i,u)=>(e.openBlock(),e.createElementBlock("li",ft,[e.createTextVNode(e.toDisplayString(i[r.labelKey])+" ",1),e.createElementVNode("button",{onClick:_=>d(u),class:"hidden shrink-0 cursor-pointer rounded-full group-hover/item:block"},[e.createVNode(gt,{class:"size-3.5 stroke-neutral-600"})],8,bt)]))),256))]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":g[0]||(g[0]=i=>n.value=i),class:"w-full px-2 py-3 text-xs outline-none",placeholder:"Search",type:"text"},null,512),[[e.vModelText,n.value]]),e.createElementVNode("ul",ht,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,i=>(e.openBlock(),e.createElementBlock("li",{onClick:u=>c(i),class:"hover:bg-background-main cursor-pointer rounded-lg px-2 py-3 text-xs transition-colors",key:i[r.valueKey]},e.toDisplayString(i[r.labelKey]),9,kt))),128))])]))}},U={__name:"Radio",props:e.mergeModels({variant:{type:String,default:"small"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue"),r=t,l=e.ref(null),n={small:{outerCircleSize:"size-4",innerCircleSize:"size-2.5"},large:{outerCircleSize:"size-5",innerCircleSize:"size-3"}};return(s,c)=>(e.openBlock(),e.createElementBlock("button",{onClick:c[2]||(c[2]=d=>l.value.click()),class:e.normalizeClass(["group/radio has-checked:border-brand-primary-700 flex cursor-pointer items-center justify-center rounded-full border-[1px] border-transparent bg-neutral-100 duration-300 active:scale-[0.80] has-checked:bg-white",n[r.variant].outerCircleSize]),role:"radio",type:"button"},[e.createElementVNode("div",{class:e.normalizeClass(["group-has-checked/radio:bg-brand-primary-700 grid place-items-center rounded-full opacity-0 transition-all group-has-checked/radio:opacity-100",n[r.variant].innerCircleSize])},[e.renderSlot(s.$slots,"default")],2),e.withDirectives(e.createElementVNode("input",e.mergeProps({onChange:c[0]||(c[0]=e.withModifiers(()=>{},["stop"]))},s.$attrs,{"onUpdate:modelValue":c[1]||(c[1]=d=>o.value=d),type:"radio",ref_key:"radioRef",ref:l,hidden:""}),null,16),[[e.vModelRadio,o.value]])],2))}},_t="bg-[url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM1YjYxNmUiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1jaGV2cm9uLWRvd24iPjxwYXRoIGQ9Im02IDkgNiA2IDYtNiIvPjwvc3ZnPg==')]",Z={__name:"Select",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue");return(r,l)=>e.withDirectives((e.openBlock(),e.createElementBlock("select",e.mergeProps(r.$attrs,{"onUpdate:modelValue":l[0]||(l[0]=n=>o.value=n),class:["group-[&.invalid-form]:ring-danger-700 group-[&.invalid-form]:focus:ring-danger-700 text-primary-950 user-invalid:ring-danger-700 focus:user-invalid:ring-danger-700 focus:ring-brand-primary-700 appearance-none rounded-lg border-[1px] border-neutral-200 bg-white bg-[length:16px] bg-[right_12px_center] bg-no-repeat px-3 py-2 text-xs ring-offset-2 transition-all outline-none group-[&.invalid-form]:ring-2 user-invalid:ring-2 focus:ring-2 group-[&.invalid-form]:focus:ring-2 disabled:cursor-not-allowed disabled:opacity-50",_t]}),[e.renderSlot(r.$slots,"default")],16)),[[e.vModelSelect,o.value]])}},yt={},xt={class:"bg-primary-100 animate-pulse rounded-lg"};function Ct(t,o){return e.openBlock(),e.createElementBlock("div",xt)}const K=p(yt,[["render",Ct]]),Bt={},wt={class:"mt-4 flex items-center gap-2"};function St(t,o){return e.openBlock(),e.createElementBlock("div",wt,[e.renderSlot(t.$slots,"default")])}const $t=p(Bt,[["render",St]]),J={__name:"Switch",props:["modelValue"],emits:["update:modelValue"],setup(t,{emit:o}){const r=o,l=t;function n(){r("update:modelValue",!l.modelValue)}return(s,c)=>(e.openBlock(),e.createElementBlock("button",e.mergeProps(s.$attrs,{onClick:c[0]||(c[0]=d=>n()),class:["group/switch h-5 w-9 cursor-pointer rounded-full p-0.5 transition-all duration-300 disabled:cursor-not-allowed disabled:opacity-50",l.modelValue?"from-brand-primary-600 to-brand-primary-700 bg-gradient-to-br":"bg-neutral-200"],role:"switch",type:"button"}),[e.createElementVNode("span",{class:e.normalizeClass(["pointer-events-none flex size-4 items-center justify-center rounded-full bg-white shadow-md transition-all duration-300",{"translate-x-full":l.modelValue}])},[e.renderSlot(s.$slots,"icon")],2)],16))}},Et={class:"w-full"},At={class:"h-16"},Vt={key:0},Tt={key:0,class:"pe-4"},Y={__name:"Table",props:{columns:{type:Array,required:!0},data:{type:Array,required:!0}},setup(t){const o=t;return(r,l)=>(e.openBlock(),e.createElementBlock("table",Et,[e.createElementVNode("thead",null,[e.createElementVNode("tr",At,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,n=>(e.openBlock(),e.createElementBlock("th",{key:n.key,class:"text-xs font-medium text-neutral-600 first-of-type:ps-4"},e.toDisplayString(n.label),1))),128)),r.$slots.actions?(e.openBlock(),e.createElementBlock("th",Vt)):e.createCommentVNode("",!0)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.data,(n,s)=>(e.openBlock(),e.createElementBlock("tr",{key:s,class:"odd:bg-background-main/50 hover:bg-background-main min-h-16 rounded-md transition-all"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,c=>(e.openBlock(),e.createElementBlock("td",{key:c.key,class:"text-primary-950 py-4 text-xs first-of-type:rounded-s-md first-of-type:ps-4 last-of-type:rounded-e-md last-of-type:pe-4"},[e.renderSlot(r.$slots,c.key,{row:n},()=>[e.createTextVNode(e.toDisplayString(n[c.key]),1)])]))),128)),r.$slots.actions?(e.openBlock(),e.createElementBlock("td",Tt,[e.renderSlot(r.$slots,"actions",{row:n})])):e.createCommentVNode("",!0)]))),128))])]))}},Nt={class:"overflow-x-scroll rounded-xl bg-neutral-100/50 p-1 [&::-webkit-scrollbar]:hidden"},X={__name:"Tabs",props:{default:{default:null}},setup(t){const o=t,r=e.ref(o.default);function l(n){r.value=n}return e.provide("TAB_DATA",{currentValue:r,setCurrentValue:l}),(n,s)=>(e.openBlock(),e.createElementBlock("div",Nt,[e.renderSlot(n.$slots,"default")]))}},Q=p({__name:"TabItem",props:{value:{required:!0}},setup(t){const o=t,r=e.inject("TAB_DATA"),{currentValue:l,setCurrentValue:n}=r,s=e.computed(()=>l.value===o.value?["bg-white","font-medium","text-primary-700","shadow-xl","tab-active"]:"text-neutral-600");return(c,d)=>(e.openBlock(),e.createElementBlock("button",{onClick:d[0]||(d[0]=m=>e.unref(n)(o.value)),class:e.normalizeClass(["tab h-8 cursor-pointer rounded-lg px-3 text-xs transition-all disabled:cursor-not-allowed disabled:opacity-50",s.value])},[e.renderSlot(c.$slots,"default",{},void 0,!0)],2))}},[["__scopeId","data-v-9e06f71f"]]),v={__name:"TextArea",props:e.mergeModels(["modelValue"],{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue");return(r,l)=>e.withDirectives((e.openBlock(),e.createElementBlock("textarea",e.mergeProps({onInput:l[0]||(l[0]=n=>r.$emit("update:modelValue",n.target.value))},r.$attrs,{"onUpdate:modelValue":l[1]||(l[1]=n=>o.value=n),class:"text-primary-950 neutral-400:text-neutral-400 focus:ring-brand-primary-700 group-[&.invalid-form]:focus:ring-danger-700 group-[&.invalid-form]:ring-danger-700 focus:user-invalid:ring-danger-700 user-invalid:ring-danger-700 rounded-lg border-[1px] border-neutral-200 px-3 py-2 text-xs ring-offset-2 transition-all outline-none group-[&.invalid-form]:ring-2 user-invalid:ring-2 focus:ring-2 focus:ring-offset-2 group-[&.invalid-form]:focus:ring-2 disabled:cursor-not-allowed disabled:opacity-50"}),null,16)),[[e.vModelText,o.value]])}},ee=e.defineAsyncComponent(()=>Promise.resolve().then(()=>It)),te=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Pt)),oe=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Mt)),re=e.defineAsyncComponent(()=>Promise.resolve().then(()=>k)),ne=e.defineAsyncComponent(()=>Promise.resolve().then(()=>zt)),le=e.defineAsyncComponent(()=>Promise.resolve().then(()=>jt)),ae=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Rt)),Dt={install(t){t.component("Alert",y),t.component("AlertContent",x),t.component("AlertTitle",C),t.component("AppHeaderLink",B),t.component("AppLayout",w),t.component("AppMain",S),t.component("AppNavTabs",$),t.component("AppNavTab",E),t.component("AppSidebar",A),t.component("AppSidebarItem",V),t.component("AppSidebarItemChild",T),t.component("AppSidebarItemChildren",N),t.component("AppSidebarItemParent",D),t.component("AppSidebarToggle",I),t.component("AppSidebarNavSection",P),t.component("Badge",z),t.component("Button",j),t.component("Checkbox",L),t.component("Card",h),t.component("Dialog",ee),t.component("DialogContent",te),t.component("DialogToggle",oe),t.component("DialogBackground",re),t.component("Empty",O),t.component("FormField",G),t.component("FormFieldError",F),t.component("Input",W),t.component("Label",H),t.component("MultiSelect",q),t.component("Radio",U),t.component("Select",Z),t.component("Sheet",ne),t.component("SheetContent",le),t.component("SheetToggle",ae),t.component("SkeletonLoader",K),t.component("Switch",J),t.component("Table",Y),t.component("Tabs",X),t.component("TabItem",Q),t.component("TextArea",v)}},It=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"Dialog",setup(t){const o=e.ref(!1);function r(){o.value=!o.value}return e.provide("DIALOG_META",{toggled:o,toggleDialog:r}),(l,n)=>e.renderSlot(l.$slots,"default",{toggled:o.value,toggleDialog:r})}}},Symbol.toStringTag,{value:"Module"})),Pt=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"DialogContent",props:{class:{type:String},backgroundZ:{type:String,default:"z-[175]"}},setup(t){const o=e.defineAsyncComponent(()=>Promise.resolve().then(()=>k)),r=e.defineAsyncComponent(()=>Promise.resolve().then(()=>R)),l=t,{toggled:n,toggleDialog:s}=e.inject("DIALOG_META");return(c,d)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"fade-in"},{default:e.withCtx(()=>[e.unref(n)?(e.openBlock(),e.createBlock(e.unref(o),{key:0,onClick:d[0]||(d[0]=m=>e.unref(s)()),class:e.normalizeClass(l.backgroundZ)},null,8,["class"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade-in-dialog"},{default:e.withCtx(()=>[e.unref(n)?(e.openBlock(),e.createBlock(e.unref(r),{key:0,class:e.normalizeClass(["fixed top-1/2 left-1/2 z-[200] -translate-x-1/2 -translate-y-1/2 rounded-xl bg-white transition-all",l.class])},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},8,["class"])):e.createCommentVNode("",!0)]),_:3})]))}}},Symbol.toStringTag,{value:"Module"})),Mt=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"DialogToggle",setup(t){const o=e.useSlots(),{toggleDialog:r}=e.inject("DIALOG_META");return(l,n)=>{var s,c;return e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.cloneVNode((c=(s=e.unref(o)).default)==null?void 0:c.call(s)[0],{onClick:e.unref(r)})))}}}},Symbol.toStringTag,{value:"Module"})),k=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"DialogBackground",setup(t){return e.onMounted(()=>{document.querySelector("body").classList.add("overflow-hidden")}),e.onUnmounted(()=>{document.querySelector("body").classList.remove("overflow-hidden")}),(o,r)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps(o.$attrs,{class:"pointer-events-auto fixed inset-0 z-[100] min-h-screen bg-black/80"}),[e.renderSlot(o.$slots,"default")],16))}}},Symbol.toStringTag,{value:"Module"})),zt=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"Sheet",setup(t){const o=e.ref(!1);function r(){o.value=!o.value}return e.provide("SHEET_META",{toggled:o,toggleSheet:r}),(l,n)=>e.renderSlot(l.$slots,"default",{toggled:o.value,toggleSheet:r})}}},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"SheetContent",props:{class:{type:String}},setup(t){const o=e.defineAsyncComponent(()=>Promise.resolve().then(()=>k)),r=e.defineAsyncComponent(()=>Promise.resolve().then(()=>R)),l=t,{toggled:n,toggleSheet:s}=e.inject("SHEET_META");return(c,d)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"fade-in"},{default:e.withCtx(()=>[e.unref(n)?(e.openBlock(),e.createBlock(e.unref(o),{key:0,onClick:d[0]||(d[0]=m=>e.unref(s)())})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide"},{default:e.withCtx(()=>[e.unref(n)?(e.openBlock(),e.createBlock(e.unref(r),{key:0,class:e.normalizeClass(["fixed top-1/2 right-0 z-[150] h-full w-3/4 -translate-y-1/2 rounded-e-none bg-white transition-all md:right-[1rem] md:h-[calc(100dvh-2rem)] md:w-96 md:rounded-xl",l.class])},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},8,["class"])):e.createCommentVNode("",!0)]),_:3})]))}}},Symbol.toStringTag,{value:"Module"})),Rt=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"SheetToggle",setup(t){const o=e.useSlots(),{toggleSheet:r}=e.inject("SHEET_META");return(l,n)=>{var s,c;return e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.cloneVNode((c=(s=e.unref(o)).default)==null?void 0:c.call(s)[0],{onClick:e.unref(r)})))}}}},Symbol.toStringTag,{value:"Module"}));a.Alert=y,a.AlertContent=x,a.AlertTitle=C,a.AppHeader=_e,a.AppHeaderLink=B,a.AppLayout=w,a.AppMain=S,a.AppNavTab=E,a.AppNavTabs=$,a.AppSidebar=A,a.AppSidebarItem=V,a.AppSidebarItemChild=T,a.AppSidebarItemChildren=N,a.AppSidebarItemParent=D,a.AppSidebarNavSection=P,a.AppSidebarToggle=I,a.Badge=z,a.Button=j,a.Card=h,a.Checkbox=L,a.Dialog=ee,a.DialogBackground=re,a.DialogContent=te,a.DialogToggle=oe,a.Empty=O,a.EmptyContent=ve,a.EmptyTitle=rt,a.FormField=G,a.FormFieldError=F,a.Input=W,a.Label=H,a.MultiSelect=q,a.Radio=U,a.Select=Z,a.Sheet=ne,a.SheetContent=le,a.SheetToggle=ae,a.SkeletonLoader=K,a.StateActions=$t,a.Switch=J,a.TabItem=Q,a.Table=Y,a.Tabs=X,a.TextArea=v,a.default=Dt,Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(a,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router"],e):(a=typeof globalThis<"u"?globalThis:a||self,e(a.ScrubbedTailwindComponentsV2={},a.Vue,a.vueRouter))})(this,function(a,e,f){"use strict";const S={__name:"Alert",props:{variant:{type:String,default:"info",validator:t=>["info","success","warning","destructive"].includes(t)}},setup(t){const o=e.useSlots(),r=t,l={info:{root:"bg-brand-primary-100 border-brand-primary-300 text-brand-primary-900 ",icon:"bg-brand-primary-300 text-brand-primary-700"},success:{root:"bg-success-100 border-success-300 text-success-800",icon:"bg-success-300 text-green-700"},warning:{root:"bg-warning-100 border-warning-300 text-warning-800",icon:"bg-warning-400 text-yellow-700"},destructive:{root:"bg-danger-100 border-danger-300 text-danger-700",icon:"bg-danger-300 text-red-700"}},n={info:{icon:"stroke-brand-primary-900"},success:{icon:"stroke-success-800"},warning:{icon:"stroke-warning-800"},destructive:{icon:"stroke-danger-700"}};return e.provide("ALERT",{VARIANT_MAP:l}),(s,c)=>{var d,m,g,i,u,B;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["flex w-full gap-4 rounded-2xl border p-4",l[r.variant].root])},[e.createElementVNode("div",{class:e.normalizeClass(["grid size-10 place-items-center rounded-full",l[r.variant].icon])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.cloneVNode((m=(d=e.unref(o)).default)==null?void 0:m.call(d)[0])),{class:e.normalizeClass(["size-4",n[r.variant].icon])},null,8,["class"]))],2),e.createElementVNode("div",null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.cloneVNode((i=(g=e.unref(o)).default)==null?void 0:i.call(g)[1])))),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.cloneVNode((B=(u=e.unref(o)).default)==null?void 0:B.call(u)[2]))))])],2)}}},p=(t,o)=>{const r=t.__vccOpts||t;for(const[l,n]of o)r[l]=n;return r},ge={},pe={class:"text-sm text-neutral-600"};function ue(t,o){return e.openBlock(),e.createElementBlock("span",pe,[e.renderSlot(t.$slots,"default")])}const w=p(ge,[["render",ue]]),fe={},be={class:"font-medium"};function he(t,o){return e.openBlock(),e.createElementBlock("p",be,[e.renderSlot(t.$slots,"default")])}const $=p(fe,[["render",he]]),ke={class:"flex w-full items-center justify-between"},_e={class:"flex items-center gap-2"},ye={class:"lg:w-60"},xe={class:"hidden xl:block"},Ce={class:"flex items-center gap-10"},Be={class:"hidden gap-6 sm:flex"},Se={__name:"AppHeader",setup(t){const o=e.inject("APP_DATA"),{isSidebarToggled:r,toggleSidebar:l}=o;return(n,s)=>(e.openBlock(),e.createElementBlock("header",{class:e.normalizeClass(["fixed top-0 flex h-16 w-dvw items-center justify-center bg-white px-3 backdrop-blur sm:px-6",{"rounded-t-2xl":e.unref(r)}])},[e.createElementVNode("nav",ke,[e.createElementVNode("div",_e,[e.createElementVNode("button",{onClick:s[0]||(s[0]=c=>e.unref(l)()),class:"block cursor-pointer rounded-full p-2 hover:bg-neutral-100 lg:hidden"},s[1]||(s[1]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-menu-icon lucide-menu size-5 stroke-neutral-600"},[e.createElementVNode("path",{d:"M4 12h16"}),e.createElementVNode("path",{d:"M4 18h16"}),e.createElementVNode("path",{d:"M4 6h16"})],-1)])),e.createElementVNode("div",ye,[e.renderSlot(n.$slots,"header-img")]),e.createElementVNode("div",xe,[e.renderSlot(n.$slots,"header-banner")])]),e.createElementVNode("div",Ce,[e.createElementVNode("ul",Be,[e.renderSlot(n.$slots,"header-links")]),e.renderSlot(n.$slots,"header-actions")])])],2))}},we=["href"],E={__name:"AppHeaderLink",props:{to:{type:String,required:!0}},setup(t){const o=t;return(r,l)=>(e.openBlock(),e.createElementBlock("li",null,[o.to.startsWith("/")?(e.openBlock(),e.createBlock(e.unref(f.RouterLink),{key:0,class:"hover:text-primary-950 [&.router-link-active]:text-primary-950 text-xs uppercase text-neutral-600 hover:transition-all [&.router-link-active]:font-semibold",to:o.to},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},8,["to"])):(e.openBlock(),e.createElementBlock("a",{key:1,class:"hover:text-primary-950 text-xs uppercase text-neutral-600 hover:transition-all",href:o.to},[e.renderSlot(r.$slots,"default")],8,we))]))}},$e={class:"relative"},Ee={class:"flex"},A={__name:"AppLayout",setup(t){const o=e.ref(!1);function r(){window.innerWidth<=1024?(o.value=!o.value,l()):o.value&&(o.value=!1,l())}function l(){const n=document.querySelector("body");n.classList.contains("bg-black")?n.classList.remove("bg-black"):n.classList.add("bg-black")}return e.provide("APP_DATA",{isSidebarToggled:o,toggleSidebar:r}),(n,s)=>{var c,d,m,g,i,u;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["bg-white transition-all duration-500 ease-[cubic-bezier(.32,.72,0,1)]",{"origin-[center_top] translate-y-4 scale-93":o.value}])},[e.createElementVNode("div",$e,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.cloneVNode((d=(c=n.$slots).default)==null?void 0:d.call(c)[0])))),e.createElementVNode("div",Ee,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.cloneVNode((g=(m=n.$slots).default)==null?void 0:g.call(m)[1])))),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.cloneVNode((u=(i=n.$slots).default)==null?void 0:u.call(i)[2]))))])])],2)}}},Ae={class:"grid h-full w-full place-items-center items-center"},Ve={class:"mb-6 h-full w-full max-w-480 space-y-6"},V={__name:"AppMain",setup(t){const o=e.inject("APP_DATA"),{isSidebarToggled:r}=o;return(l,n)=>(e.openBlock(),e.createElementBlock("main",{class:e.normalizeClass(["bg-background-main fixed z-[-1] h-svh w-full overflow-auto px-6 pt-24 pb-9 sm:top-16 sm:pt-9 md:h-[calc(100dvh-4rem)] lg:ms-64 lg:w-[calc(100dvw-256px)]",e.unref(r)?"overflow-hidden rounded-t-xl sm:rounded-none":"sm:rounded-tl-2xl"])},[e.createElementVNode("div",Ae,[e.createElementVNode("div",Ve,[e.renderSlot(l.$slots,"default")])])],2))}},Te={},Ne={class:"flex w-full overflow-x-auto border-b-[1px] border-neutral-200 [&::-webkit-scrollbar]:hidden"};function De(t,o){return e.openBlock(),e.createElementBlock("div",Ne,[e.renderSlot(t.$slots,"default")])}const T=p(Te,[["render",De]]),Ie={class:"shrink-0"},N={__name:"AppNavTab",props:{to:{type:[String,Object],required:!0}},setup(t){const o=t;return e.ref(null),(r,l)=>(e.openBlock(),e.createElementBlock("div",Ie,[e.createVNode(e.unref(f.RouterLink),{class:"[&.router-link-exact-active]:text-brand-primary-900 [&.router-link-exact-active]:border-brand-primary-700 [&.router-link-exact-active]:bg-primary-100 group relative flex h-10 shrink-0 items-center justify-between gap-2 rounded-t-xl border-b-2 border-transparent px-4 text-xs text-neutral-600 transition-all hover:border-neutral-400 hover:bg-neutral-100 [&.router-link-exact-active]:font-medium",to:o.to},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},8,["to"])]))}},Pe={class:"sidebar-wrapper fixed top-0 left-0 hidden max-h-[calc(100vh-64px)] w-64 overflow-y-auto bg-white sm:top-16 lg:block"},Me={key:0,class:"sticky top-0 z-50 bg-white"},ze={key:1,class:"sticky bottom-0 z-50 bg-white"},D={__name:"AppSidebar",setup(t){const o=e.inject("APP_DATA"),{isSidebarToggled:r,toggleSidebar:l}=o;return e.useSlots(),(n,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("aside",Pe,[n.$slots.header?(e.openBlock(),e.createElementBlock("div",Me,[e.renderSlot(n.$slots,"header")])):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default"),n.$slots.footer?(e.openBlock(),e.createElementBlock("div",ze,[e.renderSlot(n.$slots,"footer")])):e.createCommentVNode("",!0)]),(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createElementVNode("div",{class:"shadow-t-2xl fixed bottom-0 z-50 h-[60svh] w-full overflow-y-scroll rounded-t-2xl bg-white transition-all duration-500 ease-[cubic-bezier(.32,.72,0,1)] [&::-webkit-scrollbar]:hidden",style:e.normalizeStyle(e.unref(r)?"transform: translateZ(0)":"transform: translate3d(0,60svh,0)")},[e.renderSlot(n.$slots,"default")],4),e.createElementVNode("div",{onClick:s[0]||(s[0]=c=>e.unref(l)()),class:e.normalizeClass(["backdrop transition-all [transition-behavior:allow-discrete] duration-300",e.unref(r)?"fixed inset-0 z-40 block bg-black/80 opacity-100":"hidden"])},null,2)]))],64))}},je={class:"flex flex-col"},I={__name:"AppSidebarItem",setup(t){f.useRoute();const o=e.ref(!1);function r(){o.value=!o.value}return e.provide("SIDEBAR_TOGGLE",{toggled:o,toggleSidebarItem:r}),(l,n)=>(e.openBlock(),e.createElementBlock("div",je,[e.renderSlot(l.$slots,"default")]))}},Re=["href"],P={__name:"AppSidebarItemChild",props:{to:{type:[String,Object],required:!0}},setup(t){const o=t;return(r,l)=>typeof o.to=="object"||o.to.startsWith("/")?(e.openBlock(),e.createBlock(e.unref(f.RouterLink),{key:0,class:"[&.router-link-exact-active]:text-primary-950 [&.router-link-exact-active]:bg-background-main text-primary-950 hover:bg-background-main block h-10 items-center gap-3 overflow-hidden rounded-lg px-3 text-xs leading-[40px] text-ellipsis whitespace-nowrap transition-all [&.router-link-exact-active]:font-medium",to:o.to},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3},8,["to"])):(e.openBlock(),e.createElementBlock("a",{key:1,class:"text-primary-950 hover:bg-background-main block h-10 items-center gap-3 overflow-hidden rounded-lg px-3 text-xs leading-[40px] text-ellipsis whitespace-nowrap transition-all",href:o.to},[e.renderSlot(r.$slots,"default")],8,Re))}},M={__name:"AppSidebarItemChildren",setup(t){const o=e.inject("SIDEBAR_TOGGLE"),{toggled:r}=o;return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["max-h-0 overflow-y-hidden rounded-b-lg opacity-0 transition-all",{"mt-2 max-h-max overflow-y-auto px-2 opacity-100":e.unref(r)}])},[e.renderSlot(l.$slots,"default")],2))}},Le={class:"link group/sidebar-item hover:bg-background-main peer has-[&.router-link-active]:from-brand-primary-50 has-[&.router-link-active]:to-brand-primary-100 flex h-10 items-center justify-between rounded-lg px-3 transition-all has-[&.router-link-active]:bg-gradient-to-br"},Oe=["href"],z={__name:"AppSidebarItemParent",props:{to:{type:[String,Object],required:!0},name:{type:String},hasChildren:{type:Boolean,default:!1}},setup(t){const o=f.useRoute(),r=t,l=e.inject("SIDEBAR_TOGGLE"),n=e.inject("APP_DATA"),{toggled:s,toggleSidebarItem:c}=l,{toggleSidebar:d}=n;function m(){o.matched.some(i=>r.name===i.name)?s.value=!0:s.value=!1}return e.watch(o,()=>m(),{immediate:!0}),(g,i)=>(e.openBlock(),e.createElementBlock("div",Le,[typeof r.to=="object"||r.to.startsWith("/")?(e.openBlock(),e.createBlock(e.unref(f.RouterLink),{key:0,onClick:i[0]||(i[0]=u=>e.unref(d)()),class:"[&.router-link-active]:text-primary-700 text-primary-950 peer flex h-full w-full items-center gap-3 text-xs [&.router-link-active]:font-medium",to:r.to},{default:e.withCtx(()=>[e.renderSlot(g.$slots,"default")]),_:3},8,["to"])):(e.openBlock(),e.createElementBlock("a",{key:1,class:"text-primary-950 peer flex h-full w-full items-center gap-3 text-xs",href:r.to},[e.renderSlot(g.$slots,"default")],8,Oe)),r.hasChildren?(e.openBlock(),e.createElementBlock("button",{key:2,onClick:i[1]||(i[1]=u=>e.unref(c)()),class:"hover:bg-brand-primary-200 cursor-pointer rounded-full p-1 transition-all",type:"button"},[(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:e.normalizeClass(["lucide lucide-chevron-down-icon lucide-chevron-down stroke-brand-primary-800 transition-all duration-300",{"rotate-180":e.unref(s)}])},i[2]||(i[2]=[e.createElementVNode("path",{d:"m6 9 6 6 6-6"},null,-1)]),2))])):e.createCommentVNode("",!0)]))}},Ge={class:"hover:bg-background-main has-[&.router-link-active]:active has-[&.router-link-active]:bg-primary-700 peer flex h-10 items-center justify-between rounded-lg px-3 transition-all"},j={__name:"AppSidebarToggle",setup(t){const o=e.inject("SIDEBAR_TOGGLE");return(r,l)=>{const n=e.resolveComponent("RouterLink");return e.openBlock(),e.createElementBlock("div",Ge,[e.createVNode(n,{class:"text-primary-950 peer flex h-full w-full items-center gap-3 text-xs [&.router-link-active]:font-medium [&.router-link-active]:text-white",to:"/"},{default:e.withCtx(()=>[e.renderSlot(r.$slots,"default")]),_:3}),e.createElementVNode("button",{onClick:l[0]||(l[0]=s=>e.unref(o).toggleSidebarItem()),class:"cursor-pointer",type:"button"},l[1]||(l[1]=[e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-chevron-down-icon lucide-chevron-down stroke-white"},[e.createElementVNode("path",{d:"m6 9 6 6 6-6"})],-1)]))])}}},Fe={},We={class:"px-4 pb-4 first-of-type:pt-4"},He={key:0,class:"text-primary-950 px-1 text-sm font-medium"},qe={class:"mt-2"};function Ue(t,o){return e.openBlock(),e.createElementBlock("nav",We,[t.$slots.title?(e.openBlock(),e.createElementBlock("b",He,[e.renderSlot(t.$slots,"title")])):e.createCommentVNode("",!0),e.createElementVNode("div",qe,[e.renderSlot(t.$slots,"items")])])}const R=p(Fe,[["render",Ue]]),h={primary:{backgroundColor:"bg-brand-primary-700",textColor:"text-white"},secondary:{backgroundColor:"bg-neutral-100",textColor:"text-neutral-700"},success:{backgroundColor:"bg-success-400",textColor:"text-white"},danger:{backgroundColor:"bg-danger-600",textColor:"text-white"},warning:{backgroundColor:"bg-warning-500",textColor:"text-neutral-950"},secondaryPrimary:{backgroundColor:"bg-brand-primary-100",textColor:"text-brand-primary-700"},secondaryAltPrimary:{backgroundColor:"bg-primary-100",textColor:"text-primary-700"},secondarySuccess:{backgroundColor:"bg-success-100",textColor:"text-success-700"},secondaryDanger:{backgroundColor:"bg-danger-100",textColor:"text-danger-700"},secondaryWarning:{backgroundColor:"bg-warning-100",textColor:"text-warning-700"},outlined:{backgroundColor:"bg-transparent",textColor:"text-neutral-700",borderColor:"border border-neutral-200"},outlinedPrimary:{backgroundColor:"bg-transparent",textColor:"text-brand-primary-700",borderColor:"border border-brand-primary-300"},outlinedSuccess:{backgroundColor:"bg-transparent",textColor:"text-success-600",borderColor:"border border-success-300"},outlinedDanger:{backgroundColor:"bg-transparent",textColor:"text-danger-600",borderColor:"border border-danger-300"},outlinedWarning:{backgroundColor:"bg-transparent",textColor:"text-warning-600",borderColor:"border border-warning-300"},ghost:{backgroundColor:"bg-transparent",textColor:"text-neutral-700"},ghostPrimary:{backgroundColor:"bg-transparent",textColor:"text-brand-primary-700"},ghostSuccess:{backgroundColor:"bg-transparent",textColor:"text-success-600"},ghostDanger:{backgroundColor:"bg-transparent",textColor:"text-danger-600"},ghostWarning:{backgroundColor:"bg-transparent",textColor:"text-warning-600"}},b={primary:{backgroundColor:"bg-gradient-to-br from-brand-primary-500 to-brand-primary-700",textColor:"text-white",hoverBackgroundColor:"hover:from-brand-primary-700 hover:to-brand-primary-800",focusRing:"focus:ring-brand-primary-300"},secondary:{backgroundColor:"bg-neutral-100",textColor:"text-neutral-700",hoverBackgroundColor:"hover:bg-neutral-200",focusRing:"focus:ring-neutral-300"},success:{backgroundColor:"bg-success-400",textColor:"text-white",hoverBackgroundColor:"hover:bg-success-500",focusRing:"focus:ring-success-300"},danger:{backgroundColor:"bg-danger-600",textColor:"text-white",hoverBackgroundColor:"hover:bg-danger-700",focusRing:"focus:ring-danger-300"},warning:{backgroundColor:"bg-warning-500",textColor:"text-neutral-950",hoverBackgroundColor:"hover:bg-warning-600",focusRing:"focus:ring-warning-300"},secondaryPrimary:{backgroundColor:"bg-brand-primary-100",textColor:"text-brand-primary-700",hoverBackgroundColor:"hover:bg-brand-primary-200",focusRing:"focus:ring-brand-primary-200"},secondaryAltPrimary:{backgroundColor:"bg-primary-100",textColor:"text-primary-700",hoverBackgroundColor:"hover:bg-primary-200",focusRing:"focus:ring-primary-200"},secondarySuccess:{backgroundColor:"bg-success-100",textColor:"text-success-700",hoverBackgroundColor:"hover:bg-success-200",focusRing:"focus:ring-success-200"},secondaryDanger:{backgroundColor:"bg-danger-100",textColor:"text-danger-700",hoverBackgroundColor:"hover:bg-danger-200",focusRing:"focus:ring-danger-200"},secondaryWarning:{backgroundColor:"bg-warning-100",textColor:"text-warning-700",hoverBackgroundColor:"hover:bg-warning-200",focusRing:"focus:ring-warning-200"},outlined:{backgroundColor:"bg-transparent",textColor:"text-neutral-700",borderColor:"border border-neutral-200",hoverBackgroundColor:"hover:bg-neutral-100",hoverTextColor:"hover:text-neutral-900",focusRing:"focus:ring-neutral-200"},outlinedPrimary:{backgroundColor:"bg-transparent",textColor:"text-brand-primary-700",borderColor:"border border-brand-primary-300",hoverBackgroundColor:"hover:bg-brand-primary-100",hoverTextColor:"hover:text-brand-primary-800",focusRing:"focus:ring-brand-primary-200"},outlinedSuccess:{backgroundColor:"bg-transparent",textColor:"text-success-600",borderColor:"border border-success-300",hoverBackgroundColor:"hover:bg-success-100",hoverTextColor:"hover:text-success-700",focusRing:"focus:ring-success-200"},outlinedDanger:{backgroundColor:"bg-transparent",textColor:"text-danger-600",borderColor:"border border-danger-300",hoverBackgroundColor:"hover:bg-danger-100",hoverTextColor:"hover:text-danger-700",focusRing:"focus:ring-danger-200"},outlinedWarning:{backgroundColor:"bg-transparent",textColor:"text-warning-600",borderColor:"border border-warning-300",hoverBackgroundColor:"hover:bg-warning-100",hoverTextColor:"hover:text-warning-700",focusRing:"focus:ring-warning-200"},ghost:{backgroundColor:"bg-transparent",textColor:"text-neutral-700",hoverBackgroundColor:"hover:bg-neutral-100",hoverTextColor:"hover:text-neutral-900",focusRing:"focus:ring-neutral-200"},ghostPrimary:{backgroundColor:"bg-transparent",textColor:"text-brand-primary-700",hoverBackgroundColor:"hover:bg-brand-primary-100",hoverTextColor:"hover:text-brand-primary-800",focusRing:"focus:ring-brand-primary-200"},ghostSuccess:{backgroundColor:"bg-transparent",textColor:"text-success-600",hoverBackgroundColor:"hover:bg-success-100",hoverTextColor:"hover:text-success-700",focusRing:"focus:ring-success-200"},ghostDanger:{backgroundColor:"bg-transparent",textColor:"text-danger-600",hoverBackgroundColor:"hover:bg-danger-100",hoverTextColor:"hover:text-danger-700",focusRing:"focus:ring-danger-200"},ghostWarning:{backgroundColor:"bg-transparent",textColor:"text-warning-600",hoverBackgroundColor:"hover:bg-warning-100",hoverTextColor:"hover:text-warning-700",focusRing:"focus:ring-warning-200"}},L={__name:"Badge",props:{variant:{type:String,default:"primary"}},setup(t){const o=t;return(r,l)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rounded-full px-3 py-1 text-xs font-medium",[e.unref(h)[o.variant].backgroundColor,e.unref(h)[o.variant].textColor,e.unref(h)[o.variant].borderColor??""]])},[e.renderSlot(r.$slots,"default")],2))}},O={__name:"Button",props:{variant:{type:String,default:"primary"}},setup(t,{expose:o}){const r=t,l=e.ref(null);return o({buttonRef:l}),(n,s)=>(e.openBlock(),e.createElementBlock("button",e.mergeProps(n.$attrs,{class:["cursor-pointer rounded-lg px-4 py-2 text-xs transition-all active:scale-[0.97] disabled:cursor-not-allowed disabled:opacity-50 disabled:active:scale-100",[e.unref(b)[r.variant].backgroundColor,e.unref(b)[r.variant].borderColor,e.unref(b)[r.variant].textColor,e.unref(b)[r.variant].hoverBackgroundColor,e.unref(b)[r.variant].hoverTextColor,e.unref(b)[r.variant].focusRing]],ref_key:"buttonRef",ref:l}),[e.renderSlot(n.$slots,"default")],16))}},Ze={},Ke={class:"rounded-2xl bg-white p-6"};function Je(t,o){return e.openBlock(),e.createElementBlock("div",Ke,[e.renderSlot(t.$slots,"default")])}const k=p(Ze,[["render",Je]]),G=Object.freeze(Object.defineProperty({__proto__:null,default:k},Symbol.toStringTag,{value:"Module"})),F={__name:"Checkbox",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue"),r=e.ref(null);return(l,n)=>(e.openBlock(),e.createElementBlock("button",{onClick:n[2]||(n[2]=s=>r.value.click()),class:"group/checkbox has-checked:bg-brand-primary-700 flex size-4 cursor-pointer items-center justify-center rounded-sm bg-neutral-200 transition-all duration-300 active:scale-[0.50] has-disabled:cursor-not-allowed has-disabled:opacity-50"},[n[3]||(n[3]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-check-icon lucide-check scale-0 stroke-white opacity-0 group-has-[:checked]/checkbox:scale-100 group-has-[:checked]/checkbox:opacity-100"},[e.createElementVNode("path",{d:"M20 6 9 17l-5-5"})],-1)),e.withDirectives(e.createElementVNode("input",e.mergeProps(l.$attrs,{"onUpdate:modelValue":n[0]||(n[0]=s=>o.value=s),onChange:n[1]||(n[1]=e.withModifiers(()=>{},["stop"])),type:"checkbox",ref_key:"checkboxRef",ref:r,hidden:""}),null,16),[[e.vModelCheckbox,o.value]])]))}},Ye={},Xe={class:"flex flex-col items-center justify-center gap-8"},Qe={class:"flex max-w-xs flex-col items-center gap-2 text-center"},ve={class:"bg-brand-primary-100 mb-2 grid size-12 place-items-center rounded-full"};function et(t,o){return e.openBlock(),e.createElementBlock("div",Xe,[e.createElementVNode("div",Qe,[e.createElementVNode("div",ve,[e.renderSlot(t.$slots,"icon")]),e.renderSlot(t.$slots,"default")])])}const _=p(Ye,[["render",et]]),tt={},ot={class:"text-sm text-neutral-600"};function rt(t,o){return e.openBlock(),e.createElementBlock("p",ot,[e.renderSlot(t.$slots,"default")])}const y=p(tt,[["render",rt]]),nt={},lt={class:"text-lg font-medium"};function at(t,o){return e.openBlock(),e.createElementBlock("b",lt,[e.renderSlot(t.$slots,"default")])}const x=p(nt,[["render",at]]),W={__name:"FormField",props:{invalid:{type:[Boolean,String]},validate:{type:Boolean,default:!1}},setup(t){const o=t,r=e.computed(()=>o.invalid===!0||typeof o.invalid=="string"&&o.invalid.trim()!=="");return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["group flex flex-col gap-2",{"invalid-form":r.value}])},[e.renderSlot(l.$slots,"default")],2))}},st={},ct={class:"text-danger-700 hidden h-0 text-xs opacity-0 transition-all group-has-user-invalid:mt-1 group-has-user-invalid:block group-has-user-invalid:h-4 group-has-user-invalid:opacity-100 group-[&.invalid-form]:mt-1 group-[&.invalid-form]:block group-[&.invalid-form]:h-4 group-[&.invalid-form]:opacity-100"};function it(t,o){return e.openBlock(),e.createElementBlock("p",ct,[e.renderSlot(t.$slots,"default",{},void 0,!0)])}const H=p(st,[["render",it],["__scopeId","data-v-a299dc33"]]),q={__name:"Input",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue");return(r,l)=>e.withDirectives((e.openBlock(),e.createElementBlock("input",{"onUpdate:modelValue":l[0]||(l[0]=n=>o.value=n),class:"group-[&.invalid-form]:focus:ring-danger-300 group-[&.invalid-form]:ring-danger-300 group-[&.invalid-form]:focus:border-danger-700 group-[&.invalid-form]:border-danger-700 text-primary-950 focus:ring-brand-primary-200 focus:border-brand-primary-500 focus:user-invalid:border-danger-700 user-invalid:border-danger-700 focus:user-invalid:ring-danger-300 user-invalid:ring-danger-300 rounded-lg border border-neutral-200 bg-white px-3 py-2 text-xs transition-all duration-300 outline-none group-[&.invalid-form]:ring-3 placeholder:text-neutral-400 user-invalid:ring-3 focus:ring-3 group-[&.invalid-form]:focus:ring-3 disabled:cursor-not-allowed disabled:opacity-50"},null,512)),[[e.vModelText,o.value]])}},dt={};function mt(t,o){return e.openBlock(),e.createElementBlock("label",e.mergeProps(t.$attrs,{class:"text-primary-950 text-xs font-medium transition-all"}),[e.renderSlot(t.$slots,"default")],16)}const U=p(dt,[["render",mt]]),gt={},pt={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-x-icon lucide-x"};function ut(t,o){return e.openBlock(),e.createElementBlock("svg",pt,o[0]||(o[0]=[e.createElementVNode("path",{d:"M18 6 6 18"},null,-1),e.createElementVNode("path",{d:"m6 6 12 12"},null,-1)]))}const ft=p(gt,[["render",ut]]),bt={class:"max-w-72 space-y-2 rounded-xl border border-neutral-200 bg-white p-2"},ht={class:"flex flex-wrap gap-2"},kt={class:"group/item hover:border-brand-primary-500 inline-flex cursor-pointer items-center justify-center gap-2 rounded-full border border-neutral-200 bg-white px-3 py-2 text-xs transition-all"},_t=["onClick"],yt={class:"max-h-72 overflow-y-auto"},xt=["onClick"],Z={__name:"MultiSelect",props:e.mergeModels({data:{type:Array,required:!0},labelKey:{type:String,required:!0},valueKey:{type:String,required:!0}},{modelValue:{default:()=>[]},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue"),r=t,l=e.ref([]),n=e.ref(null),s=e.computed(()=>{let m=r.data;return l.value.length&&(m=m.filter(g=>!l.value.some(i=>i[r.valueKey]===g[r.valueKey]))),n.value?m.filter(g=>g[r.labelKey].toLowerCase().includes(n.value.toLowerCase())):m});function c(m){l.value.push(m),o.value=l.value}function d(m){l.value.splice(m,1),o.value=l.value}return e.onMounted(()=>{l.value=o.value}),(m,g)=>(e.openBlock(),e.createElementBlock("div",bt,[e.createElementVNode("ul",ht,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(i,u)=>(e.openBlock(),e.createElementBlock("li",kt,[e.createTextVNode(e.toDisplayString(i[r.labelKey])+" ",1),e.createElementVNode("button",{onClick:B=>d(u),class:"hidden shrink-0 cursor-pointer rounded-full group-hover/item:block"},[e.createVNode(ft,{class:"size-3.5 stroke-neutral-600"})],8,_t)]))),256))]),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":g[0]||(g[0]=i=>n.value=i),class:"w-full px-2 py-3 text-xs outline-none",placeholder:"Search",type:"text"},null,512),[[e.vModelText,n.value]]),e.createElementVNode("ul",yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,i=>(e.openBlock(),e.createElementBlock("li",{onClick:u=>c(i),class:"hover:bg-background-main cursor-pointer rounded-lg px-2 py-3 text-xs transition-colors",key:i[r.valueKey]},e.toDisplayString(i[r.labelKey]),9,xt))),128))])]))}},K={__name:"Radio",props:e.mergeModels({variant:{type:String,default:"small"}},{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue"),r=t,l=e.ref(null),n={small:{outerCircleSize:"size-4",innerCircleSize:"size-2.5"},large:{outerCircleSize:"size-5",innerCircleSize:"size-3"}};return(s,c)=>(e.openBlock(),e.createElementBlock("button",{onClick:c[2]||(c[2]=d=>l.value.click()),class:e.normalizeClass(["group/radio has-checked:border-brand-primary-700 flex cursor-pointer items-center justify-center rounded-full border-[1px] border-transparent bg-neutral-100 duration-300 active:scale-[0.80] has-checked:bg-white",n[r.variant].outerCircleSize]),role:"radio",type:"button"},[e.createElementVNode("div",{class:e.normalizeClass(["group-has-checked/radio:bg-brand-primary-700 grid place-items-center rounded-full opacity-0 transition-all group-has-checked/radio:opacity-100",n[r.variant].innerCircleSize])},[e.renderSlot(s.$slots,"default")],2),e.withDirectives(e.createElementVNode("input",e.mergeProps({onChange:c[0]||(c[0]=e.withModifiers(()=>{},["stop"]))},s.$attrs,{"onUpdate:modelValue":c[1]||(c[1]=d=>o.value=d),type:"radio",ref_key:"radioRef",ref:l,hidden:""}),null,16),[[e.vModelRadio,o.value]])],2))}},Ct="bg-[url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM1YjYxNmUiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1jaGV2cm9uLWRvd24iPjxwYXRoIGQ9Im02IDkgNiA2IDYtNiIvPjwvc3ZnPg==')]",J={__name:"Select",props:{modelValue:{},modelModifiers:{}},emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue");return(r,l)=>e.withDirectives((e.openBlock(),e.createElementBlock("select",e.mergeProps(r.$attrs,{"onUpdate:modelValue":l[0]||(l[0]=n=>o.value=n),class:["group-[&.invalid-form]:focus:ring-danger-300 group-[&.invalid-form]:ring-danger-300 group-[&.invalid-form]:focus:border-danger-700 group-[&.invalid-form]:border-danger-700 text-primary-950 focus:ring-brand-primary-200 focus:border-brand-primary-500 focus:user-invalid:border-danger-700 user-invalid:border-danger-700 focus:user-invalid:ring-danger-300 user-invalid:ring-danger-300 appearance-none rounded-lg border border-neutral-200 bg-white bg-[length:16px] bg-[right_8px_center] bg-no-repeat py-2 ps-3 pe-8 text-xs transition-all duration-300 outline-none group-[&.invalid-form]:ring-3 user-invalid:ring-3 focus:ring-3 group-[&.invalid-form]:focus:ring-3 disabled:cursor-not-allowed disabled:opacity-50",Ct]}),[e.renderSlot(r.$slots,"default")],16)),[[e.vModelSelect,o.value]])}},Bt={},St={class:"bg-primary-100 animate-pulse rounded-lg"};function wt(t,o){return e.openBlock(),e.createElementBlock("div",St)}const Y=p(Bt,[["render",wt]]),$t={},Et={class:"mt-4 flex items-center gap-2"};function At(t,o){return e.openBlock(),e.createElementBlock("div",Et,[e.renderSlot(t.$slots,"default")])}const Vt=p($t,[["render",At]]),X={__name:"Switch",props:["modelValue"],emits:["update:modelValue"],setup(t,{emit:o}){const r=o,l=t;function n(){r("update:modelValue",!l.modelValue)}return(s,c)=>(e.openBlock(),e.createElementBlock("button",e.mergeProps(s.$attrs,{onClick:c[0]||(c[0]=d=>n()),class:["group/switch h-5 w-9 cursor-pointer rounded-full p-0.5 transition-all duration-300 disabled:cursor-not-allowed disabled:opacity-50",l.modelValue?"from-brand-primary-600 to-brand-primary-700 bg-gradient-to-br":"bg-neutral-200"],role:"switch",type:"button"}),[e.createElementVNode("span",{class:e.normalizeClass(["pointer-events-none flex size-4 items-center justify-center rounded-full bg-white shadow-md transition-all duration-300",{"translate-x-full":l.modelValue}])},[e.renderSlot(s.$slots,"icon")],2)],16))}},Tt={class:"w-full"},Nt={class:"h-16"},Dt={key:0},It={key:0,class:"pe-4"},Q={__name:"Table",props:{columns:{type:Array,required:!0},data:{type:Array,required:!0}},setup(t){const o=t;return(r,l)=>(e.openBlock(),e.createElementBlock("table",Tt,[e.createElementVNode("thead",null,[e.createElementVNode("tr",Nt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,n=>(e.openBlock(),e.createElementBlock("th",{key:n.key,class:"text-xs font-medium text-neutral-600 first-of-type:ps-4"},e.toDisplayString(n.label),1))),128)),r.$slots.actions?(e.openBlock(),e.createElementBlock("th",Dt)):e.createCommentVNode("",!0)])]),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.data,(n,s)=>(e.openBlock(),e.createElementBlock("tr",{key:s,class:"odd:bg-background-main/50 hover:bg-background-main min-h-16 rounded-md transition-all"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,c=>(e.openBlock(),e.createElementBlock("td",{key:c.key,class:"text-primary-950 py-4 text-xs first-of-type:rounded-s-md first-of-type:ps-4 last-of-type:rounded-e-md last-of-type:pe-4"},[e.renderSlot(r.$slots,c.key,{row:n},()=>[e.createTextVNode(e.toDisplayString(n[c.key]),1)])]))),128)),r.$slots.actions?(e.openBlock(),e.createElementBlock("td",It,[e.renderSlot(r.$slots,"actions",{row:n})])):e.createCommentVNode("",!0)]))),128))])]))}},Pt={class:"overflow-x-scroll rounded-xl bg-neutral-100/50 p-1 [&::-webkit-scrollbar]:hidden"},v={__name:"Tabs",props:{default:{default:null}},setup(t){const o=t,r=e.ref(o.default);function l(n){r.value=n}return e.provide("TAB_DATA",{currentValue:r,setCurrentValue:l}),(n,s)=>(e.openBlock(),e.createElementBlock("div",Pt,[e.renderSlot(n.$slots,"default")]))}},ee=p({__name:"TabItem",props:{value:{required:!0}},setup(t){const o=t,r=e.inject("TAB_DATA"),{currentValue:l,setCurrentValue:n}=r,s=e.computed(()=>l.value===o.value?["bg-white","font-medium","text-primary-700","shadow-xl","tab-active"]:"text-neutral-600");return(c,d)=>(e.openBlock(),e.createElementBlock("button",{onClick:d[0]||(d[0]=m=>e.unref(n)(o.value)),class:e.normalizeClass(["tab h-8 cursor-pointer rounded-lg px-3 text-xs transition-all disabled:cursor-not-allowed disabled:opacity-50",s.value])},[e.renderSlot(c.$slots,"default",{},void 0,!0)],2))}},[["__scopeId","data-v-9e06f71f"]]),te={__name:"TextArea",props:e.mergeModels(["modelValue"],{modelValue:{},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const o=e.useModel(t,"modelValue");return(r,l)=>e.withDirectives((e.openBlock(),e.createElementBlock("textarea",e.mergeProps({onInput:l[0]||(l[0]=n=>r.$emit("update:modelValue",n.target.value))},r.$attrs,{"onUpdate:modelValue":l[1]||(l[1]=n=>o.value=n),class:"group-[&.invalid-form]:focus:ring-danger-300 group-[&.invalid-form]:ring-danger-300 group-[&.invalid-form]:focus:border-danger-700 group-[&.invalid-form]:border-danger-700 text-primary-950 focus:ring-brand-primary-200 focus:border-brand-primary-500 focus:user-invalid:border-danger-700 user-invalid:border-danger-700 focus:user-invalid:ring-danger-300 user-invalid:ring-danger-300 rounded-lg border border-neutral-200 bg-white px-3 py-2 text-xs transition-all duration-300 outline-none group-[&.invalid-form]:ring-3 placeholder:text-neutral-400 user-invalid:ring-3 focus:ring-3 group-[&.invalid-form]:focus:ring-3 disabled:cursor-not-allowed disabled:opacity-50"}),null,16)),[[e.vModelText,o.value]])}},oe=e.defineAsyncComponent(()=>Promise.resolve().then(()=>zt)),re=e.defineAsyncComponent(()=>Promise.resolve().then(()=>jt)),ne=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Rt)),le=e.defineAsyncComponent(()=>Promise.resolve().then(()=>C)),ae=_,se=y,ce=x,ie=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Lt)),de=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Ot)),me=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Gt)),Mt={install(t){t.component("Alert",S),t.component("AlertContent",w),t.component("AlertTitle",$),t.component("AppHeaderLink",E),t.component("AppLayout",A),t.component("AppMain",V),t.component("AppNavTabs",T),t.component("AppNavTab",N),t.component("AppSidebar",D),t.component("AppSidebarItem",I),t.component("AppSidebarItemChild",P),t.component("AppSidebarItemChildren",M),t.component("AppSidebarItemParent",z),t.component("AppSidebarToggle",j),t.component("AppSidebarNavSection",R),t.component("Badge",L),t.component("Button",O),t.component("Checkbox",F),t.component("Card",k),t.component("Dialog",oe),t.component("DialogContent",re),t.component("DialogToggle",ne),t.component("DialogBackground",le),t.component("Empty",_),t.component("EmptyContent",y),t.component("EmptyTitle",x),t.component("State",ae),t.component("StateContent",se),t.component("StateTitle",ce),t.component("FormField",W),t.component("FormFieldError",H),t.component("Input",q),t.component("Label",U),t.component("MultiSelect",Z),t.component("Radio",K),t.component("Select",J),t.component("Sheet",ie),t.component("SheetContent",de),t.component("SheetToggle",me),t.component("SkeletonLoader",Y),t.component("Switch",X),t.component("Table",Q),t.component("Tabs",v),t.component("TabItem",ee),t.component("TextArea",te)}},zt=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"Dialog",setup(t){const o=e.ref(!1);function r(){o.value=!o.value}return e.provide("DIALOG_META",{toggled:o,toggleDialog:r}),(l,n)=>e.renderSlot(l.$slots,"default",{toggled:o.value,toggleDialog:r})}}},Symbol.toStringTag,{value:"Module"})),jt=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"DialogContent",props:{class:{type:String},backgroundZ:{type:String,default:"z-[175]"}},setup(t){const o=e.defineAsyncComponent(()=>Promise.resolve().then(()=>C)),r=e.defineAsyncComponent(()=>Promise.resolve().then(()=>G)),l=t,{toggled:n,toggleDialog:s}=e.inject("DIALOG_META");return(c,d)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"fade-in"},{default:e.withCtx(()=>[e.unref(n)?(e.openBlock(),e.createBlock(e.unref(o),{key:0,onClick:d[0]||(d[0]=m=>e.unref(s)()),class:e.normalizeClass(l.backgroundZ)},null,8,["class"])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"fade-in-dialog"},{default:e.withCtx(()=>[e.unref(n)?(e.openBlock(),e.createBlock(e.unref(r),{key:0,class:e.normalizeClass(["fixed top-1/2 left-1/2 z-[200] -translate-x-1/2 -translate-y-1/2 rounded-xl bg-white transition-all",l.class])},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},8,["class"])):e.createCommentVNode("",!0)]),_:3})]))}}},Symbol.toStringTag,{value:"Module"})),Rt=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"DialogToggle",setup(t){const o=e.useSlots(),{toggleDialog:r}=e.inject("DIALOG_META");return(l,n)=>{var s,c;return e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.cloneVNode((c=(s=e.unref(o)).default)==null?void 0:c.call(s)[0],{onClick:e.unref(r)})))}}}},Symbol.toStringTag,{value:"Module"})),C=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"DialogBackground",setup(t){return e.onMounted(()=>{document.querySelector("body").classList.add("overflow-hidden")}),e.onUnmounted(()=>{document.querySelector("body").classList.remove("overflow-hidden")}),(o,r)=>(e.openBlock(),e.createElementBlock("div",e.mergeProps(o.$attrs,{class:"pointer-events-auto fixed inset-0 z-[100] min-h-screen bg-black/80"}),[e.renderSlot(o.$slots,"default")],16))}}},Symbol.toStringTag,{value:"Module"})),Lt=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"Sheet",setup(t){const o=e.ref(!1);function r(){o.value=!o.value}return e.provide("SHEET_META",{toggled:o,toggleSheet:r}),(l,n)=>e.renderSlot(l.$slots,"default",{toggled:o.value,toggleSheet:r})}}},Symbol.toStringTag,{value:"Module"})),Ot=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"SheetContent",props:{class:{type:String}},setup(t){const o=e.defineAsyncComponent(()=>Promise.resolve().then(()=>C)),r=e.defineAsyncComponent(()=>Promise.resolve().then(()=>G)),l=t,{toggled:n,toggleSheet:s}=e.inject("SHEET_META");return(c,d)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"fade-in"},{default:e.withCtx(()=>[e.unref(n)?(e.openBlock(),e.createBlock(e.unref(o),{key:0,onClick:d[0]||(d[0]=m=>e.unref(s)())})):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"slide"},{default:e.withCtx(()=>[e.unref(n)?(e.openBlock(),e.createBlock(e.unref(r),{key:0,class:e.normalizeClass(["fixed top-1/2 right-0 z-[150] h-full w-3/4 -translate-y-1/2 rounded-e-none bg-white transition-all md:right-[1rem] md:h-[calc(100dvh-2rem)] md:w-96 md:rounded-xl",l.class])},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"default")]),_:3},8,["class"])):e.createCommentVNode("",!0)]),_:3})]))}}},Symbol.toStringTag,{value:"Module"})),Gt=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"SheetToggle",setup(t){const o=e.useSlots(),{toggleSheet:r}=e.inject("SHEET_META");return(l,n)=>{var s,c;return e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.cloneVNode((c=(s=e.unref(o)).default)==null?void 0:c.call(s)[0],{onClick:e.unref(r)})))}}}},Symbol.toStringTag,{value:"Module"}));a.Alert=S,a.AlertContent=w,a.AlertTitle=$,a.AppHeader=Se,a.AppHeaderLink=E,a.AppLayout=A,a.AppMain=V,a.AppNavTab=N,a.AppNavTabs=T,a.AppSidebar=D,a.AppSidebarItem=I,a.AppSidebarItemChild=P,a.AppSidebarItemChildren=M,a.AppSidebarItemParent=z,a.AppSidebarNavSection=R,a.AppSidebarToggle=j,a.Badge=L,a.Button=O,a.Card=k,a.Checkbox=F,a.Dialog=oe,a.DialogBackground=le,a.DialogContent=re,a.DialogToggle=ne,a.Empty=_,a.EmptyContent=y,a.EmptyTitle=x,a.FormField=W,a.FormFieldError=H,a.Input=q,a.Label=U,a.MultiSelect=Z,a.Radio=K,a.Select=J,a.Sheet=ie,a.SheetContent=de,a.SheetToggle=me,a.SkeletonLoader=Y,a.State=ae,a.StateActions=Vt,a.StateContent=se,a.StateTitle=ce,a.Switch=X,a.TabItem=ee,a.Table=Q,a.Tabs=v,a.TextArea=te,a.default=Mt,Object.defineProperties(a,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|