@glasshome/ui 1.28.0 → 1.29.0
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/SPEC.md +1 -0
- package/dist/solid/data-table.d.ts +18 -1
- package/dist/solid/index.d.ts +1 -1
- package/dist/solid/index.js +926 -884
- package/package.json +1 -1
- package/src/solid/data-table.tsx +81 -1
- package/src/solid/index.ts +2 -0
package/dist/solid/index.js
CHANGED
|
@@ -13911,8 +13911,8 @@ var zb = Object.assign(Fb, {
|
|
|
13911
13911
|
return O("text-muted-foreground mt-4 text-sm", t.class);
|
|
13912
13912
|
} }, n), !1, !1), e;
|
|
13913
13913
|
})();
|
|
13914
|
-
}, vx = /*#__PURE__*/ K("<div data-slot=table-search-input>"), yx = /*#__PURE__*/ K("<button type=button class=\"absolute inset-0 outline-none\">"), bx = /*#__PURE__*/ K("<div class=\"relative flex shrink-0 items-center gap-1\">"), xx = /*#__PURE__*/ K("<div data-slot=data-table-row>"), Sx = /*#__PURE__*/ K("<a class=\"absolute inset-0 outline-none\"><span class=sr-only>"), Cx = /*#__PURE__*/ K("<div data-slot=data-table-head>"), wx = /*#__PURE__*/ K("<div data-slot=table-error class=\"px-4 py-10 text-center\"><p class=\"text-destructive text-sm\">"), Tx = /*#__PURE__*/ K("<div data-slot=table-skeleton aria-busy=true>"),
|
|
13915
|
-
function
|
|
13914
|
+
}, vx = /*#__PURE__*/ K("<div data-slot=table-search-input>"), yx = /*#__PURE__*/ K("<button type=button class=\"absolute inset-0 outline-none\">"), bx = /*#__PURE__*/ K("<div class=\"relative flex shrink-0 items-center gap-1\">"), xx = /*#__PURE__*/ K("<div data-slot=data-table-row>"), Sx = /*#__PURE__*/ K("<a class=\"absolute inset-0 outline-none\"><span class=sr-only>"), Cx = /*#__PURE__*/ K("<div data-slot=data-table-head>"), wx = /*#__PURE__*/ K("<div data-slot=table-error class=\"px-4 py-10 text-center\"><p class=\"text-destructive text-sm\">"), Tx = /*#__PURE__*/ K("<div data-slot=table-load-more>"), Ex = /*#__PURE__*/ K("<div data-slot=table-skeleton aria-busy=true>"), Dx = /*#__PURE__*/ K("<div data-slot=table-skeleton-row><div class=\"flex min-w-0 flex-1 items-start gap-3 sm:items-center\"><div class=\"flex min-w-0 flex-1 flex-col gap-1.5\"><div class=\"flex gap-1 pt-0.5 sm:hidden\">"), Ox = /*#__PURE__*/ K("<div data-slot=table-bulk-bar>"), kx = `${{ "p-3": "-mx-3" }["p-3"]} border-border/50 border-t`, Ax = "px-4", jx = "flex items-center gap-4 border-border/50 border-b px-4 py-2.5 transition-colors last:border-b-0 hover:bg-foreground/[0.03]", Mx = "flex items-center gap-4 border-border/50 border-b px-4 py-2", Nx = "overflow-x-auto gh-scroll", Px = "text-right text-muted-foreground text-xs tabular-nums";
|
|
13915
|
+
function Fx(e) {
|
|
13916
13916
|
return z(Ub, {
|
|
13917
13917
|
get options() {
|
|
13918
13918
|
return [...e.options];
|
|
@@ -13952,7 +13952,7 @@ function Px(e) {
|
|
|
13952
13952
|
}
|
|
13953
13953
|
});
|
|
13954
13954
|
}
|
|
13955
|
-
function
|
|
13955
|
+
function Ix(e) {
|
|
13956
13956
|
return (() => {
|
|
13957
13957
|
var t = vx();
|
|
13958
13958
|
return V(t, z($, {
|
|
@@ -13997,7 +13997,7 @@ function Fx(e) {
|
|
|
13997
13997
|
}), null), B(() => R(t, O("relative w-full sm:w-64", e.class))), t;
|
|
13998
13998
|
})();
|
|
13999
13999
|
}
|
|
14000
|
-
function
|
|
14000
|
+
function Lx(e) {
|
|
14001
14001
|
let t = () => e.onOpen !== void 0 || e.href !== void 0;
|
|
14002
14002
|
return (() => {
|
|
14003
14003
|
var n = xx();
|
|
@@ -14026,7 +14026,7 @@ function Ix(e) {
|
|
|
14026
14026
|
return V(t, () => e.actions), t;
|
|
14027
14027
|
}
|
|
14028
14028
|
}), null), B((r) => {
|
|
14029
|
-
var i = e.selected ? "selected" : void 0, a = O(
|
|
14029
|
+
var i = e.selected ? "selected" : void 0, a = O(jx, "data-[state=selected]:bg-muted relative", t() && "cursor-pointer", e.class);
|
|
14030
14030
|
return i !== r.e && W(n, "data-state", r.e = i), a !== r.t && R(n, r.t = a), r;
|
|
14031
14031
|
}, {
|
|
14032
14032
|
e: void 0,
|
|
@@ -14034,13 +14034,13 @@ function Ix(e) {
|
|
|
14034
14034
|
}), n;
|
|
14035
14035
|
})();
|
|
14036
14036
|
}
|
|
14037
|
-
function
|
|
14037
|
+
function Rx(e) {
|
|
14038
14038
|
return (() => {
|
|
14039
14039
|
var t = Cx();
|
|
14040
|
-
return V(t, () => e.children), B(() => R(t, O(
|
|
14040
|
+
return V(t, () => e.children), B(() => R(t, O(Mx, e.sticky && "bg-background sticky top-0 z-10", e.class))), t;
|
|
14041
14041
|
})();
|
|
14042
14042
|
}
|
|
14043
|
-
function
|
|
14043
|
+
function zx(e) {
|
|
14044
14044
|
return z(Xf, {
|
|
14045
14045
|
type: "button",
|
|
14046
14046
|
variant: "ghost",
|
|
@@ -14095,7 +14095,7 @@ function Rx(e) {
|
|
|
14095
14095
|
}
|
|
14096
14096
|
});
|
|
14097
14097
|
}
|
|
14098
|
-
function
|
|
14098
|
+
function Bx(e) {
|
|
14099
14099
|
return z(tb, {
|
|
14100
14100
|
class: "gap-3 rounded-none py-12",
|
|
14101
14101
|
get children() {
|
|
@@ -14134,7 +14134,7 @@ function zx(e) {
|
|
|
14134
14134
|
}
|
|
14135
14135
|
});
|
|
14136
14136
|
}
|
|
14137
|
-
function
|
|
14137
|
+
function Vx(e) {
|
|
14138
14138
|
return (() => {
|
|
14139
14139
|
var t = wx(), n = t.firstChild;
|
|
14140
14140
|
return V(n, () => e.message), V(t, z(Xf, {
|
|
@@ -14148,42 +14148,84 @@ function Bx(e) {
|
|
|
14148
14148
|
}), null), t;
|
|
14149
14149
|
})();
|
|
14150
14150
|
}
|
|
14151
|
-
|
|
14151
|
+
function Hx(e) {
|
|
14152
|
+
let t;
|
|
14153
|
+
return Ot(() => {
|
|
14154
|
+
if (!t || typeof IntersectionObserver > "u") return;
|
|
14155
|
+
let n = t, r = 0, i = new IntersectionObserver((t) => {
|
|
14156
|
+
!t[0]?.isIntersecting || !e.hasMore || e.loading || (e.onLoadMore(), cancelAnimationFrame(r), r = requestAnimationFrame(() => {
|
|
14157
|
+
i.unobserve(n), i.observe(n);
|
|
14158
|
+
}));
|
|
14159
|
+
}, { rootMargin: "400px" });
|
|
14160
|
+
i.observe(n), F(() => {
|
|
14161
|
+
cancelAnimationFrame(r), i.disconnect();
|
|
14162
|
+
});
|
|
14163
|
+
}), (() => {
|
|
14164
|
+
var n = Tx(), r = t;
|
|
14165
|
+
return typeof r == "function" ? Rt(r, n) : t = n, V(n, z(k, {
|
|
14166
|
+
get when() {
|
|
14167
|
+
return e.hasMore;
|
|
14168
|
+
},
|
|
14169
|
+
get children() {
|
|
14170
|
+
return z(Xf, {
|
|
14171
|
+
variant: "ghost",
|
|
14172
|
+
size: "sm",
|
|
14173
|
+
get disabled() {
|
|
14174
|
+
return e.loading;
|
|
14175
|
+
},
|
|
14176
|
+
onClick: () => e.onLoadMore(),
|
|
14177
|
+
get children() {
|
|
14178
|
+
return H(() => !!e.loading)() ? "Loading…" : e.label ?? "Show more";
|
|
14179
|
+
}
|
|
14180
|
+
});
|
|
14181
|
+
}
|
|
14182
|
+
})), B(() => R(n, O("flex justify-center py-3", e.class))), n;
|
|
14183
|
+
})();
|
|
14184
|
+
}
|
|
14185
|
+
function Ux(e, t = {}) {
|
|
14186
|
+
let n = t.pageSize ?? 50, [r, i] = N(n), a = t.resetOn;
|
|
14187
|
+
return a && j(Dt(a, () => i(n), { defer: !0 })), {
|
|
14188
|
+
shown: M(() => e().slice(0, r())),
|
|
14189
|
+
hasMore: () => e().length > r(),
|
|
14190
|
+
showMore: () => i((e) => e + n)
|
|
14191
|
+
};
|
|
14192
|
+
}
|
|
14193
|
+
var Wx = [
|
|
14152
14194
|
"w-2/5",
|
|
14153
14195
|
"w-1/3",
|
|
14154
14196
|
"w-1/2",
|
|
14155
14197
|
"w-2/5",
|
|
14156
14198
|
"w-5/12"
|
|
14157
|
-
],
|
|
14199
|
+
], Gx = [
|
|
14158
14200
|
"w-1/2",
|
|
14159
14201
|
"w-2/5",
|
|
14160
14202
|
"w-3/5",
|
|
14161
14203
|
"w-1/2",
|
|
14162
14204
|
"w-3/5"
|
|
14163
14205
|
];
|
|
14164
|
-
function
|
|
14206
|
+
function Kx(e) {
|
|
14165
14207
|
let t = e.count ?? 5;
|
|
14166
14208
|
return (() => {
|
|
14167
|
-
var n =
|
|
14209
|
+
var n = Ex();
|
|
14168
14210
|
return V(n, z(mt, {
|
|
14169
14211
|
get each() {
|
|
14170
14212
|
return Array.from({ length: t });
|
|
14171
14213
|
},
|
|
14172
14214
|
children: (t, n) => (() => {
|
|
14173
|
-
var t =
|
|
14215
|
+
var t = Dx(), r = t.firstChild, i = r.firstChild, a = i.firstChild;
|
|
14174
14216
|
return V(t, z(Qb, { class: "h-4 w-4 shrink-0" }), r), V(r, z(Qb, { class: "size-9 shrink-0 rounded-full sm:size-7" }), i), V(i, z(Qb, { get class() {
|
|
14175
|
-
return O("h-3",
|
|
14217
|
+
return O("h-3", Wx[n() % Wx.length]);
|
|
14176
14218
|
} }), a), V(i, z(Qb, { get class() {
|
|
14177
|
-
return O("h-2.5",
|
|
14178
|
-
} }), a), V(a, z(Qb, { class: "h-4 w-12 rounded-lg" }), null), V(a, z(Qb, { class: "h-4 w-16 rounded-lg" }), null), V(r, z(Qb, { class: "h-3 w-12 shrink-0" }), null), B(() => R(t, O(
|
|
14219
|
+
return O("h-2.5", Gx[n() % Gx.length]);
|
|
14220
|
+
} }), a), V(a, z(Qb, { class: "h-4 w-12 rounded-lg" }), null), V(a, z(Qb, { class: "h-4 w-16 rounded-lg" }), null), V(r, z(Qb, { class: "h-3 w-12 shrink-0" }), null), B(() => R(t, O(jx, e.class))), t;
|
|
14179
14221
|
})()
|
|
14180
14222
|
})), n;
|
|
14181
14223
|
})();
|
|
14182
14224
|
}
|
|
14183
|
-
function
|
|
14225
|
+
function qx(e) {
|
|
14184
14226
|
let [t, n] = I(e, ["class", "children"]);
|
|
14185
14227
|
return (() => {
|
|
14186
|
-
var e =
|
|
14228
|
+
var e = Ox();
|
|
14187
14229
|
return G(e, U({ get class() {
|
|
14188
14230
|
return O("border-border/50 bg-foreground/[0.03] flex flex-wrap items-center gap-2 border-b px-4 py-2", t.class);
|
|
14189
14231
|
} }, n), !1, !0), V(e, () => t.children), e;
|
|
@@ -14192,18 +14234,18 @@ function Wx(e) {
|
|
|
14192
14234
|
Nt(["click"]);
|
|
14193
14235
|
//#endregion
|
|
14194
14236
|
//#region src/lib/anchor-placement.ts
|
|
14195
|
-
var
|
|
14196
|
-
function
|
|
14197
|
-
let i = (e, t, n) => Math.max(t, Math.min(e, n)), a = Math.min(Math.max(n, e.width), t.width - 2 *
|
|
14237
|
+
var Jx = 16;
|
|
14238
|
+
function Yx(e, t, n, r) {
|
|
14239
|
+
let i = (e, t, n) => Math.max(t, Math.min(e, n)), a = Math.min(Math.max(n, e.width), t.width - 2 * Jx), o = i(e.left + (e.width - a) / 2, Jx, t.width - Jx - a), s = Math.min(Math.max(r ?? 0, e.height), t.height - 2 * Jx);
|
|
14198
14240
|
return {
|
|
14199
14241
|
left: o,
|
|
14200
|
-
top: i(r === void 0 ? e.top : e.top + (e.height - s) / 2,
|
|
14242
|
+
top: i(r === void 0 ? e.top : e.top + (e.height - s) / 2, Jx, t.height - Jx - s),
|
|
14201
14243
|
width: a,
|
|
14202
14244
|
height: s
|
|
14203
14245
|
};
|
|
14204
14246
|
}
|
|
14205
|
-
function
|
|
14206
|
-
let r = e.getBoundingClientRect(), i = window.innerHeight, a =
|
|
14247
|
+
function Xx(e, t, n) {
|
|
14248
|
+
let r = e.getBoundingClientRect(), i = window.innerHeight, a = Yx(r, {
|
|
14207
14249
|
width: window.innerWidth,
|
|
14208
14250
|
height: i
|
|
14209
14251
|
}, t, n), o = getComputedStyle(e).borderTopLeftRadius || "0px";
|
|
@@ -14213,8 +14255,8 @@ function qx(e, t, n) {
|
|
|
14213
14255
|
translate: "none",
|
|
14214
14256
|
width: `${a.width}px`,
|
|
14215
14257
|
"max-width": "none",
|
|
14216
|
-
"min-height": `${Math.min(r.height, i - 2 *
|
|
14217
|
-
"max-height": `${i - 2 *
|
|
14258
|
+
"min-height": `${Math.min(r.height, i - 2 * Jx)}px`,
|
|
14259
|
+
"max-height": `${i - 2 * Jx}px`,
|
|
14218
14260
|
"--morph-x": `${r.left - a.left}px`,
|
|
14219
14261
|
"--morph-y": `${r.top - a.top}px`,
|
|
14220
14262
|
"--morph-w": `${r.width}px`,
|
|
@@ -14224,14 +14266,14 @@ function qx(e, t, n) {
|
|
|
14224
14266
|
}
|
|
14225
14267
|
//#endregion
|
|
14226
14268
|
//#region src/solid/dialog.tsx
|
|
14227
|
-
var
|
|
14269
|
+
var Zx = (e) => z(rs, U(e, { preventScroll: !1 })), Qx = (e) => z(rs.Trigger, U({ "data-slot": "dialog-trigger" }, e)), $x = js("dialog-close"), eS = (e) => {
|
|
14228
14270
|
let [t, n] = I(e, [
|
|
14229
14271
|
"class",
|
|
14230
14272
|
"variant",
|
|
14231
14273
|
"size",
|
|
14232
14274
|
"children"
|
|
14233
14275
|
]);
|
|
14234
|
-
return z(
|
|
14276
|
+
return z($x, U({ get class() {
|
|
14235
14277
|
return O(f({
|
|
14236
14278
|
variant: t.variant ?? "outline",
|
|
14237
14279
|
size: t.size
|
|
@@ -14239,13 +14281,13 @@ var Jx = (e) => z(rs, U(e, { preventScroll: !1 })), Yx = (e) => z(rs.Trigger, U(
|
|
|
14239
14281
|
} }, n, { get children() {
|
|
14240
14282
|
return t.children ?? "Close";
|
|
14241
14283
|
} }));
|
|
14242
|
-
},
|
|
14284
|
+
}, tS = {
|
|
14243
14285
|
sm: 384,
|
|
14244
14286
|
md: 448,
|
|
14245
14287
|
lg: 512,
|
|
14246
14288
|
xl: 768,
|
|
14247
14289
|
full: 1024
|
|
14248
|
-
},
|
|
14290
|
+
}, nS = (e) => {
|
|
14249
14291
|
let [t, n] = I(e, [
|
|
14250
14292
|
"class",
|
|
14251
14293
|
"children",
|
|
@@ -14269,7 +14311,7 @@ var Jx = (e) => z(rs, U(e, { preventScroll: !1 })), Yx = (e) => z(rs.Trigger, U(
|
|
|
14269
14311
|
let u = () => {
|
|
14270
14312
|
i();
|
|
14271
14313
|
let e = t.anchor;
|
|
14272
|
-
return e ?
|
|
14314
|
+
return e ? Xx(e, tS[t.size ?? "lg"], c()) : void 0;
|
|
14273
14315
|
};
|
|
14274
14316
|
return z(rs.Portal, { get children() {
|
|
14275
14317
|
return [
|
|
@@ -14301,7 +14343,7 @@ var Jx = (e) => z(rs, U(e, { preventScroll: !1 })), Yx = (e) => z(rs.Trigger, U(
|
|
|
14301
14343
|
} }))
|
|
14302
14344
|
];
|
|
14303
14345
|
} });
|
|
14304
|
-
}, { Header:
|
|
14346
|
+
}, { Header: rS, Body: iS, Footer: aS } = ks("dialog"), oS = (e) => {
|
|
14305
14347
|
let [t, n] = I(e, ["class"]);
|
|
14306
14348
|
return z(rs.Title, U({
|
|
14307
14349
|
"data-slot": "dialog-title",
|
|
@@ -14309,7 +14351,7 @@ var Jx = (e) => z(rs, U(e, { preventScroll: !1 })), Yx = (e) => z(rs.Trigger, U(
|
|
|
14309
14351
|
return O(Ds, t.class);
|
|
14310
14352
|
}
|
|
14311
14353
|
}, n));
|
|
14312
|
-
},
|
|
14354
|
+
}, sS = (e) => {
|
|
14313
14355
|
let [t, n] = I(e, ["class"]);
|
|
14314
14356
|
return z(rs.Description, U({
|
|
14315
14357
|
"data-slot": "dialog-description",
|
|
@@ -14320,38 +14362,38 @@ var Jx = (e) => z(rs, U(e, { preventScroll: !1 })), Yx = (e) => z(rs.Trigger, U(
|
|
|
14320
14362
|
};
|
|
14321
14363
|
//#endregion
|
|
14322
14364
|
//#region src/solid/dock-paging.ts
|
|
14323
|
-
function
|
|
14365
|
+
function cS(e, t) {
|
|
14324
14366
|
return t <= 0 ? 1 : Math.max(1, Math.ceil((e - 1) / t));
|
|
14325
14367
|
}
|
|
14326
|
-
function
|
|
14368
|
+
function lS(e, t) {
|
|
14327
14369
|
return t <= 0 ? 0 : Math.round(e / t);
|
|
14328
14370
|
}
|
|
14329
|
-
function
|
|
14371
|
+
function uS(e, t, n) {
|
|
14330
14372
|
let r = Math.max(0, n - t);
|
|
14331
14373
|
return Math.min(r, Math.max(0, e * t));
|
|
14332
14374
|
}
|
|
14333
|
-
function
|
|
14375
|
+
function dS(e, t, n) {
|
|
14334
14376
|
if (e <= 0 || t <= 0) return e;
|
|
14335
14377
|
let r = Math.max(1, Math.floor((e + n) / (t + n)));
|
|
14336
14378
|
return Math.min(e, r * t + (r - 1) * n);
|
|
14337
14379
|
}
|
|
14338
14380
|
Qr({}, {
|
|
14339
14381
|
Arrow: () => Gu,
|
|
14340
|
-
Content: () =>
|
|
14341
|
-
Portal: () =>
|
|
14342
|
-
Root: () =>
|
|
14343
|
-
Tooltip: () =>
|
|
14344
|
-
Trigger: () =>
|
|
14345
|
-
useTooltipContext: () =>
|
|
14382
|
+
Content: () => mS,
|
|
14383
|
+
Portal: () => hS,
|
|
14384
|
+
Root: () => CS,
|
|
14385
|
+
Tooltip: () => TS,
|
|
14386
|
+
Trigger: () => wS,
|
|
14387
|
+
useTooltipContext: () => pS
|
|
14346
14388
|
});
|
|
14347
|
-
var
|
|
14348
|
-
function
|
|
14349
|
-
let e = L(
|
|
14389
|
+
var fS = A();
|
|
14390
|
+
function pS() {
|
|
14391
|
+
let e = L(fS);
|
|
14350
14392
|
if (e === void 0) throw Error("[kobalte]: `useTooltipContext` must be used within a `Tooltip` component");
|
|
14351
14393
|
return e;
|
|
14352
14394
|
}
|
|
14353
|
-
function
|
|
14354
|
-
let t =
|
|
14395
|
+
function mS(e) {
|
|
14396
|
+
let t = pS(), [n, r] = I(Z({ id: t.generateId("content") }, e), ["ref", "style"]);
|
|
14355
14397
|
return j(() => F(t.registerContentId(r.id))), z(k, {
|
|
14356
14398
|
get when() {
|
|
14357
14399
|
return t.contentPresent();
|
|
@@ -14380,8 +14422,8 @@ function dS(e) {
|
|
|
14380
14422
|
}
|
|
14381
14423
|
});
|
|
14382
14424
|
}
|
|
14383
|
-
function
|
|
14384
|
-
let t =
|
|
14425
|
+
function hS(e) {
|
|
14426
|
+
let t = pS();
|
|
14385
14427
|
return z(k, {
|
|
14386
14428
|
get when() {
|
|
14387
14429
|
return t.contentPresent();
|
|
@@ -14391,7 +14433,7 @@ function fS(e) {
|
|
|
14391
14433
|
}
|
|
14392
14434
|
});
|
|
14393
14435
|
}
|
|
14394
|
-
function
|
|
14436
|
+
function gS(e, t, n) {
|
|
14395
14437
|
let r = e.split("-")[0], i = t.getBoundingClientRect(), a = n.getBoundingClientRect(), o = [], s = i.left + i.width / 2, c = i.top + i.height / 2;
|
|
14396
14438
|
switch (r) {
|
|
14397
14439
|
case "top":
|
|
@@ -14409,9 +14451,9 @@ function pS(e, t, n) {
|
|
|
14409
14451
|
}
|
|
14410
14452
|
return o;
|
|
14411
14453
|
}
|
|
14412
|
-
var
|
|
14413
|
-
function
|
|
14414
|
-
let t = `tooltip-${P()}`, n = `${++
|
|
14454
|
+
var _S = {}, vS = 0, yS = !1, bS, xS, SS;
|
|
14455
|
+
function CS(e) {
|
|
14456
|
+
let t = `tooltip-${P()}`, n = `${++vS}`, r = Z({
|
|
14415
14457
|
id: t,
|
|
14416
14458
|
openDelay: 700,
|
|
14417
14459
|
closeDelay: 300,
|
|
@@ -14437,32 +14479,32 @@ function bS(e) {
|
|
|
14437
14479
|
show: () => i.forceMount || h.isOpen(),
|
|
14438
14480
|
element: () => d() ?? null
|
|
14439
14481
|
}), _ = () => {
|
|
14440
|
-
|
|
14482
|
+
_S[n] = y;
|
|
14441
14483
|
}, v = () => {
|
|
14442
|
-
for (let e in
|
|
14484
|
+
for (let e in _S) e !== n && (_S[e](!0), delete _S[e]);
|
|
14443
14485
|
}, y = (e = !1) => {
|
|
14444
14486
|
Pt || (e || i.closeDelay && i.closeDelay <= 0 ? (window.clearTimeout(o), o = void 0, h.close()) : o ||= window.setTimeout(() => {
|
|
14445
14487
|
o = void 0, h.close();
|
|
14446
|
-
}, i.closeDelay), window.clearTimeout(
|
|
14447
|
-
window.clearTimeout(
|
|
14448
|
-
}, i.skipDelayDuration)),
|
|
14449
|
-
delete
|
|
14488
|
+
}, i.closeDelay), window.clearTimeout(bS), bS = void 0, i.skipDelayDuration && i.skipDelayDuration >= 0 && (SS = window.setTimeout(() => {
|
|
14489
|
+
window.clearTimeout(SS), SS = void 0;
|
|
14490
|
+
}, i.skipDelayDuration)), yS && (window.clearTimeout(xS), xS = window.setTimeout(() => {
|
|
14491
|
+
delete _S[n], xS = void 0, yS = !1;
|
|
14450
14492
|
}, i.closeDelay)));
|
|
14451
14493
|
}, b = () => {
|
|
14452
|
-
Pt || (clearTimeout(o), o = void 0, v(), _(),
|
|
14494
|
+
Pt || (clearTimeout(o), o = void 0, v(), _(), yS = !0, h.open(), window.clearTimeout(bS), bS = void 0, window.clearTimeout(xS), xS = void 0, window.clearTimeout(SS), SS = void 0);
|
|
14453
14495
|
}, x = () => {
|
|
14454
|
-
Pt || (v(), _(), !h.isOpen() && !
|
|
14455
|
-
|
|
14496
|
+
Pt || (v(), _(), !h.isOpen() && !bS && !yS ? bS = window.setTimeout(() => {
|
|
14497
|
+
bS = void 0, yS = !0, b();
|
|
14456
14498
|
}, i.openDelay) : h.isOpen() || b());
|
|
14457
14499
|
}, S = (e = !1) => {
|
|
14458
|
-
Pt || (!e && i.openDelay && i.openDelay > 0 && !o && !
|
|
14500
|
+
Pt || (!e && i.openDelay && i.openDelay > 0 && !o && !SS ? x() : b());
|
|
14459
14501
|
}, C = () => {
|
|
14460
|
-
Pt || (window.clearTimeout(
|
|
14502
|
+
Pt || (window.clearTimeout(bS), bS = void 0, yS = !1);
|
|
14461
14503
|
}, w = () => {
|
|
14462
14504
|
Pt || (window.clearTimeout(o), o = void 0);
|
|
14463
14505
|
}, T = (e) => mn(l(), e) || mn(d(), e), E = (e) => {
|
|
14464
14506
|
let t = l(), n = d();
|
|
14465
|
-
if (!(!t || !n)) return
|
|
14507
|
+
if (!(!t || !n)) return gS(e, t, n);
|
|
14466
14508
|
}, ee = (e) => {
|
|
14467
14509
|
let t = e.target;
|
|
14468
14510
|
if (T(t)) {
|
|
@@ -14495,7 +14537,7 @@ function bS(e) {
|
|
|
14495
14537
|
n.removeEventListener("scroll", t, { capture: !0 });
|
|
14496
14538
|
});
|
|
14497
14539
|
}), F(() => {
|
|
14498
|
-
clearTimeout(o),
|
|
14540
|
+
clearTimeout(o), _S[n] && delete _S[n];
|
|
14499
14541
|
});
|
|
14500
14542
|
let D = {
|
|
14501
14543
|
dataset: M(() => ({
|
|
@@ -14516,7 +14558,7 @@ function bS(e) {
|
|
|
14516
14558
|
setTriggerRef: u,
|
|
14517
14559
|
setContentRef: f
|
|
14518
14560
|
};
|
|
14519
|
-
return z(
|
|
14561
|
+
return z(fS.Provider, {
|
|
14520
14562
|
value: D,
|
|
14521
14563
|
get children() {
|
|
14522
14564
|
return z(ed, U({
|
|
@@ -14529,8 +14571,8 @@ function bS(e) {
|
|
|
14529
14571
|
}
|
|
14530
14572
|
});
|
|
14531
14573
|
}
|
|
14532
|
-
function
|
|
14533
|
-
let t, n =
|
|
14574
|
+
function wS(e) {
|
|
14575
|
+
let t, n = pS(), [r, i] = I(e, [
|
|
14534
14576
|
"ref",
|
|
14535
14577
|
"onPointerEnter",
|
|
14536
14578
|
"onPointerLeave",
|
|
@@ -14581,22 +14623,22 @@ function xS(e) {
|
|
|
14581
14623
|
type: "button"
|
|
14582
14624
|
}, () => n.dataset(), i));
|
|
14583
14625
|
}
|
|
14584
|
-
var
|
|
14626
|
+
var TS = Object.assign(CS, {
|
|
14585
14627
|
Arrow: Gu,
|
|
14586
|
-
Content:
|
|
14587
|
-
Portal:
|
|
14588
|
-
Trigger:
|
|
14589
|
-
}),
|
|
14628
|
+
Content: mS,
|
|
14629
|
+
Portal: hS,
|
|
14630
|
+
Trigger: wS
|
|
14631
|
+
}), ES = Object.assign((e) => z(TS, U({ gutter: 6 }, e)), TS), DS = TS.Trigger, OS = (e) => {
|
|
14590
14632
|
let [t, n] = I(e, ["class"]);
|
|
14591
|
-
return z(
|
|
14592
|
-
return z(
|
|
14633
|
+
return z(TS.Portal, { get children() {
|
|
14634
|
+
return z(TS.Content, U({
|
|
14593
14635
|
"data-slot": "tooltip-content",
|
|
14594
14636
|
get class() {
|
|
14595
14637
|
return O(be, E, "overflow-hidden px-3 py-1.5 text-xs", t.class);
|
|
14596
14638
|
}
|
|
14597
14639
|
}, n));
|
|
14598
14640
|
} });
|
|
14599
|
-
},
|
|
14641
|
+
}, kS = /*#__PURE__*/ K("<div data-slot=dock-item-icon>"), AS = /*#__PURE__*/ K("<div data-slot=dock-glow aria-hidden=true class=\"glass-edge-orbit fade-in-0 animate-in duration-(--duration-state)\"><div>"), jS = /*#__PURE__*/ K("<div data-slot=dock-pages class=\"pointer-events-auto absolute inset-x-0 bottom-1.5 flex justify-center gap-1.5\">"), MS = /*#__PURE__*/ K("<div data-slot=dock><div data-slot=dock-surface><div aria-hidden=true class=\"pointer-events-none absolute inset-0 -z-10 overflow-hidden rounded-[inherit]\"><span data-slot=dock-flood></span></div><div data-slot=dock-bar>"), NS = /*#__PURE__*/ K("<button type=button>"), PS = (e) => {
|
|
14600
14642
|
let [t, n] = I(e, [
|
|
14601
14643
|
"icon",
|
|
14602
14644
|
"label",
|
|
@@ -14606,11 +14648,11 @@ var SS = Object.assign(bS, {
|
|
|
14606
14648
|
"type",
|
|
14607
14649
|
"lit"
|
|
14608
14650
|
]), r = () => typeof t.icon != "function";
|
|
14609
|
-
return z(
|
|
14651
|
+
return z(ES, {
|
|
14610
14652
|
openDelay: 150,
|
|
14611
14653
|
placement: "top",
|
|
14612
14654
|
get children() {
|
|
14613
|
-
return [z(
|
|
14655
|
+
return [z(DS, U({
|
|
14614
14656
|
type: "button",
|
|
14615
14657
|
"data-slot": "dock-item",
|
|
14616
14658
|
get class() {
|
|
@@ -14624,7 +14666,7 @@ var SS = Object.assign(bS, {
|
|
|
14624
14666
|
}
|
|
14625
14667
|
}, n, { get children() {
|
|
14626
14668
|
return [(() => {
|
|
14627
|
-
var e =
|
|
14669
|
+
var e = kS();
|
|
14628
14670
|
return V(e, (() => {
|
|
14629
14671
|
var e = H(() => !!r());
|
|
14630
14672
|
return () => e() ? t.icon : z(At, {
|
|
@@ -14652,7 +14694,7 @@ var SS = Object.assign(bS, {
|
|
|
14652
14694
|
});
|
|
14653
14695
|
}
|
|
14654
14696
|
})];
|
|
14655
|
-
} })), z(
|
|
14697
|
+
} })), z(OS, {
|
|
14656
14698
|
class: "hidden sm:block",
|
|
14657
14699
|
get children() {
|
|
14658
14700
|
return t.label;
|
|
@@ -14660,7 +14702,7 @@ var SS = Object.assign(bS, {
|
|
|
14660
14702
|
})];
|
|
14661
14703
|
}
|
|
14662
14704
|
});
|
|
14663
|
-
},
|
|
14705
|
+
}, FS = (e) => {
|
|
14664
14706
|
let [t, n] = I(e, [
|
|
14665
14707
|
"items",
|
|
14666
14708
|
"class",
|
|
@@ -14699,15 +14741,15 @@ var SS = Object.assign(bS, {
|
|
|
14699
14741
|
if (!s) return;
|
|
14700
14742
|
let e = x(), t = e > 0 && s.scrollWidth > e + 1;
|
|
14701
14743
|
if (t) {
|
|
14702
|
-
let t =
|
|
14744
|
+
let t = dS(e, y(), v());
|
|
14703
14745
|
t > 0 && (s.style.width = `${t}px`);
|
|
14704
14746
|
} else s.style.width && (s.style.width = "");
|
|
14705
14747
|
l(t);
|
|
14706
14748
|
let n = s.clientWidth;
|
|
14707
|
-
h(n), d(
|
|
14749
|
+
h(n), d(cS(s.scrollWidth, n)), p(lS(s.scrollLeft, n));
|
|
14708
14750
|
}, C = (e) => {
|
|
14709
14751
|
s && s.scrollTo({
|
|
14710
|
-
left:
|
|
14752
|
+
left: uS(e, m(), s.scrollWidth),
|
|
14711
14753
|
behavior: "smooth"
|
|
14712
14754
|
});
|
|
14713
14755
|
};
|
|
@@ -14738,7 +14780,7 @@ var SS = Object.assign(bS, {
|
|
|
14738
14780
|
let e = requestAnimationFrame(S);
|
|
14739
14781
|
F(() => cancelAnimationFrame(e));
|
|
14740
14782
|
})), (() => {
|
|
14741
|
-
var e =
|
|
14783
|
+
var e = MS(), i = e.firstChild, l = i.firstChild, d = l.firstChild, h = l.nextSibling;
|
|
14742
14784
|
G(e, U({ get class() {
|
|
14743
14785
|
return O("flex max-w-full items-center justify-center", o() === "floating" ? "p-1 sm:p-2" : "", t.class);
|
|
14744
14786
|
} }, n), !1, !0);
|
|
@@ -14748,10 +14790,10 @@ var SS = Object.assign(bS, {
|
|
|
14748
14790
|
return t.glow;
|
|
14749
14791
|
},
|
|
14750
14792
|
get children() {
|
|
14751
|
-
return
|
|
14793
|
+
return AS();
|
|
14752
14794
|
}
|
|
14753
14795
|
}), h), h.addEventListener("scroll", () => {
|
|
14754
|
-
s && p(
|
|
14796
|
+
s && p(lS(s.scrollLeft, m()));
|
|
14755
14797
|
});
|
|
14756
14798
|
var v = s;
|
|
14757
14799
|
return typeof v == "function" ? Rt(v, h) : s = h, V(h, z(Dd, {
|
|
@@ -14764,7 +14806,7 @@ var SS = Object.assign(bS, {
|
|
|
14764
14806
|
get each() {
|
|
14765
14807
|
return t.items;
|
|
14766
14808
|
},
|
|
14767
|
-
children: (e, t) => z(
|
|
14809
|
+
children: (e, t) => z(PS, {
|
|
14768
14810
|
get class() {
|
|
14769
14811
|
return c() ? "snap-start" : void 0;
|
|
14770
14812
|
},
|
|
@@ -14800,13 +14842,13 @@ var SS = Object.assign(bS, {
|
|
|
14800
14842
|
return u() > 1;
|
|
14801
14843
|
},
|
|
14802
14844
|
get children() {
|
|
14803
|
-
var e =
|
|
14845
|
+
var e = jS();
|
|
14804
14846
|
return V(e, z(ht, {
|
|
14805
14847
|
get each() {
|
|
14806
14848
|
return Array.from({ length: u() });
|
|
14807
14849
|
},
|
|
14808
14850
|
children: (e, t) => (() => {
|
|
14809
|
-
var e =
|
|
14851
|
+
var e = NS();
|
|
14810
14852
|
return e.$$click = () => C(t), W(e, "aria-label", `Page ${t + 1}`), B((n) => {
|
|
14811
14853
|
var r = f() === t ? "true" : void 0, i = O("transition-glass h-1.5 rounded-full", f() === t ? "bg-foreground/70 w-4" : "bg-foreground/25 w-1.5");
|
|
14812
14854
|
return r !== n.e && W(e, "aria-current", n.e = r), i !== n.t && R(e, n.t = i), n;
|
|
@@ -14837,21 +14879,21 @@ var SS = Object.assign(bS, {
|
|
|
14837
14879
|
Nt(["click"]);
|
|
14838
14880
|
//#endregion
|
|
14839
14881
|
//#region src/solid/docked-panel.tsx
|
|
14840
|
-
var
|
|
14841
|
-
function
|
|
14882
|
+
var IS = /*#__PURE__*/ K("<button type=button data-slot=docked-panel-handle class=\"mx-auto flex h-6 w-full shrink-0 items-center justify-center md:hidden\"><span class=\"bg-foreground/25 h-1.5 w-10 rounded-full\">"), LS = /*#__PURE__*/ K("<aside data-slot=docked-panel>"), RS = `fixed ${qe.sheet} flex flex-col overflow-hidden ${at} text-popover-foreground animate-in fade-in duration-300 max-md:inset-x-0 max-md:bottom-0 max-md:max-h-[min(60dvh,38rem)] max-md:rounded-t-2xl max-md:slide-in-from-bottom-8 md:inset-y-3 md:right-3 md:w-[25rem] md:rounded-2xl md:slide-in-from-right-8 max-md:data-[collapsed]:[&_[data-slot=docked-panel-body]]:hidden max-md:data-[collapsed]:[&_[data-slot=docked-panel-footer]]:hidden [&_[data-slot=docked-panel-footer]]:flex-row`;
|
|
14883
|
+
function zS(e) {
|
|
14842
14884
|
return z(k, {
|
|
14843
14885
|
get when() {
|
|
14844
14886
|
return e.open;
|
|
14845
14887
|
},
|
|
14846
14888
|
get children() {
|
|
14847
14889
|
return z(jt, { get children() {
|
|
14848
|
-
var t =
|
|
14890
|
+
var t = LS();
|
|
14849
14891
|
return V(t, z(k, {
|
|
14850
14892
|
get when() {
|
|
14851
14893
|
return e.onCollapsedChange;
|
|
14852
14894
|
},
|
|
14853
14895
|
get children() {
|
|
14854
|
-
var t =
|
|
14896
|
+
var t = IS();
|
|
14855
14897
|
return t.$$click = () => e.onCollapsedChange?.(!e.collapsed), B((n) => {
|
|
14856
14898
|
var r = e.collapsed ? "Show panel" : "Hide panel", i = !e.collapsed;
|
|
14857
14899
|
return r !== n.e && W(t, "aria-label", n.e = r), i !== n.t && W(t, "aria-expanded", n.t = i), n;
|
|
@@ -14861,7 +14903,7 @@ function IS(e) {
|
|
|
14861
14903
|
}), t;
|
|
14862
14904
|
}
|
|
14863
14905
|
}), null), V(t, () => e.children, null), B((n) => {
|
|
14864
|
-
var r = e.ariaLabel, i = e.collapsed ? "" : void 0, a = O(
|
|
14906
|
+
var r = e.ariaLabel, i = e.collapsed ? "" : void 0, a = O(RS, e.class);
|
|
14865
14907
|
return r !== n.e && W(t, "aria-label", n.e = r), i !== n.t && W(t, "data-collapsed", n.t = i), a !== n.a && R(t, n.a = a), n;
|
|
14866
14908
|
}, {
|
|
14867
14909
|
e: void 0,
|
|
@@ -14872,14 +14914,14 @@ function IS(e) {
|
|
|
14872
14914
|
}
|
|
14873
14915
|
});
|
|
14874
14916
|
}
|
|
14875
|
-
var { Header:
|
|
14917
|
+
var { Header: BS, Body: VS, Footer: HS } = ks("docked-panel");
|
|
14876
14918
|
Nt(["click"]);
|
|
14877
14919
|
//#endregion
|
|
14878
14920
|
//#region src/solid/dropdown-menu.tsx
|
|
14879
|
-
var
|
|
14921
|
+
var US = /*#__PURE__*/ K("<span data-slot=dropdown-menu-shortcut>"), WS = Object.assign((e) => z(W_, U({
|
|
14880
14922
|
gutter: 0,
|
|
14881
14923
|
getAnchorRect: o
|
|
14882
|
-
}, e)), W_),
|
|
14924
|
+
}, e)), W_), GS = W_.Group, KS = W_.Sub, qS = W_.RadioGroup, JS = (e) => z(W_.Trigger, U({ "data-slot": "dropdown-menu-trigger" }, e)), YS = (e) => {
|
|
14883
14925
|
let [t, n] = I(e, ["class", "children"]), r = $g(), i = (e) => {
|
|
14884
14926
|
let t = r.triggerRef();
|
|
14885
14927
|
if (!t) return;
|
|
@@ -14899,34 +14941,34 @@ var BS = /*#__PURE__*/ K("<span data-slot=dropdown-menu-shortcut>"), VS = Object
|
|
|
14899
14941
|
} });
|
|
14900
14942
|
} }));
|
|
14901
14943
|
} });
|
|
14902
|
-
},
|
|
14944
|
+
}, XS = (e) => z(Z_, U({ slotName: "dropdown-menu-item" }, e)), ZS = (e) => z(ev, U({ slotName: "dropdown-menu-sub-trigger" }, e)), QS = (e) => z(tv, U({ slotName: "dropdown-menu-sub-content" }, e)), $S = (e) => z(nv, U({ slotName: "dropdown-menu-checkbox-item" }, e)), eC = (e) => z(rv, U({ slotName: "dropdown-menu-radio-item" }, e)), tC = (e) => z($_, U({ slotName: "dropdown-menu-separator" }, e)), nC = (e) => z(Q_, U({ slotName: "dropdown-menu-label" }, e)), rC = (e) => {
|
|
14903
14945
|
let [t, n] = I(e, ["class"]);
|
|
14904
14946
|
return (() => {
|
|
14905
|
-
var e =
|
|
14947
|
+
var e = US();
|
|
14906
14948
|
return G(e, U({ get class() {
|
|
14907
14949
|
return O("text-muted-foreground ml-auto text-xs tracking-widest", t.class);
|
|
14908
14950
|
} }, n), !1, !1), e;
|
|
14909
14951
|
})();
|
|
14910
|
-
},
|
|
14952
|
+
}, iC = /*#__PURE__*/ K("<span class=\"text-muted-foreground flex-1 truncate text-left\">Select <!> <!>..."), aC = /*#__PURE__*/ K("<span class=\"flex-1 truncate text-left\">"), oC = /*#__PURE__*/ K("<button type=button class=\"text-muted-foreground hover:text-foreground shrink-0 text-xs transition-colors\">"), sC = /*#__PURE__*/ K("<div class=\"border-border/50 flex shrink-0 items-center justify-between gap-2 border-t px-3 py-2\"><span class=\"text-muted-foreground truncate text-xs\">"), cC = /*#__PURE__*/ K("<div class=\"flex min-h-0 flex-1 flex-col\"><div role=listbox data-sheet-scroll>"), lC = /*#__PURE__*/ K("<span class=\"text-muted-foreground text-sm\">No matches for \"<!>\""), uC = /*#__PURE__*/ K("<button type=button class=\"text-primary-tint-foreground text-sm hover:underline\">Clear search"), dC = /*#__PURE__*/ K("<div class=\"flex flex-col items-center gap-2 px-4 py-8 text-center\">"), fC = /*#__PURE__*/ K("<span class=\"text-muted-foreground text-sm\">Only diagnostic <!> entities available"), pC = /*#__PURE__*/ K("<button type=button class=\"text-primary-tint-foreground text-sm hover:underline\">Show diagnostic entities"), mC = /*#__PURE__*/ K("<span class=\"text-muted-foreground text-sm\">"), hC = /*#__PURE__*/ K("<span class=\"text-muted-foreground text-sm\">No <!> entities found in your home"), gC = /*#__PURE__*/ K("<div aria-hidden=true style=height:30px>"), _C = /*#__PURE__*/ K("<div class=\"flex flex-wrap gap-1.5\">"), vC = /*#__PURE__*/ K("<span><span class=\"flex min-w-0 items-center gap-1.5 py-1.5 pl-2\"><span class=truncate></span></span><button type=button class=\"text-muted-foreground hover:bg-destructive/10 hover:text-destructive flex w-8 shrink-0 cursor-pointer items-center justify-center transition-colors\">"), yC = /*#__PURE__*/ K("<div class=\"flex flex-col gap-2\">"), bC = {
|
|
14911
14953
|
power: ["W", "kW"],
|
|
14912
14954
|
energy: ["Wh", "kWh"]
|
|
14913
|
-
},
|
|
14914
|
-
function
|
|
14955
|
+
}, xC = 30, SC = 52, CC = 200, wC = "__no_area__", TC = "mdi:shape-outline";
|
|
14956
|
+
function EC(e, t) {
|
|
14915
14957
|
return e.kind === "header" && t.kind === "header" ? e.label === t.label : e.kind === "entity" && t.kind === "entity" && e.id === t.id && e.entityIndex === t.entityIndex;
|
|
14916
14958
|
}
|
|
14917
|
-
function
|
|
14959
|
+
function DC(e) {
|
|
14918
14960
|
return e.state === "unavailable" || e.state === "unknown";
|
|
14919
14961
|
}
|
|
14920
|
-
function
|
|
14921
|
-
if (
|
|
14962
|
+
function OC(e) {
|
|
14963
|
+
if (DC(e)) return "Unavailable";
|
|
14922
14964
|
let t = e.unitOfMeasurement;
|
|
14923
14965
|
return t ? `${e.state} ${t}` : e.state;
|
|
14924
14966
|
}
|
|
14925
|
-
function
|
|
14967
|
+
function kC(e) {
|
|
14926
14968
|
let t = $s(), n = Ye(), r = P(), [i, a] = N(!1), [o, s] = N(""), [c, l] = N(!1), [u, d] = N(0), f, p, [m, h] = N(0), [g, _] = N(320), v = M(() => t.entityIdsByDomain()[e.domain] ?? []), y = M(() => i() ? v() : e.entityIds), b = t.useEntities(y), x = t.useAreas(), S = M(() => new Map(x().map((e) => [e.id, e.name]))), C = M(() => new Set(e.entityIds)), w = M(() => b().filter((e) => !e.isHidden && !e.isDisabled)), E = M(() => {
|
|
14927
14969
|
let t = e.deviceClass;
|
|
14928
14970
|
if (!t) return w();
|
|
14929
|
-
let n =
|
|
14971
|
+
let n = bC[t];
|
|
14930
14972
|
return w().filter((e) => e.deviceClass === t || n != null && e.unitOfMeasurement != null && n.includes(e.unitOfMeasurement));
|
|
14931
14973
|
}), ee = M(() => e.deviceClass ? w().length - E().length : 0), D = () => {
|
|
14932
14974
|
let t = ee(), n = t === 1 ? `1 ${e.domain} entity was hidden because it does not` : `${t} ${e.domain} entities were hidden because they do not`;
|
|
@@ -14939,13 +14981,13 @@ function EC(e) {
|
|
|
14939
14981
|
}), ie = [], ae = M(() => {
|
|
14940
14982
|
let e = /* @__PURE__ */ new Map();
|
|
14941
14983
|
for (let t of re()) {
|
|
14942
|
-
let n = t.areaId ??
|
|
14984
|
+
let n = t.areaId ?? wC, r = e.get(n);
|
|
14943
14985
|
r ? r.push(t) : e.set(n, [t]);
|
|
14944
14986
|
}
|
|
14945
14987
|
let t = S(), n = Array.from(e.entries()).map(([e, n]) => ({
|
|
14946
14988
|
areaKey: e,
|
|
14947
|
-
label: e ===
|
|
14948
|
-
noArea: e ===
|
|
14989
|
+
label: e === wC ? "Other" : t.get(e) ?? e,
|
|
14990
|
+
noArea: e === wC,
|
|
14949
14991
|
views: n.sort((e, t) => e.friendlyName.localeCompare(t.friendlyName))
|
|
14950
14992
|
})).sort((e, t) => e.noArea === t.noArea ? e.label.localeCompare(t.label) : e.noArea ? 1 : -1), r = [], i = 0;
|
|
14951
14993
|
for (let e of n) {
|
|
@@ -14963,14 +15005,14 @@ function EC(e) {
|
|
|
14963
15005
|
}
|
|
14964
15006
|
let a = new Map(ie.map((e) => [e.key, e])), o = r.length !== ie.length, s = r.map((e, t) => {
|
|
14965
15007
|
let n = a.get(e.key);
|
|
14966
|
-
return n &&
|
|
15008
|
+
return n && EC(n, e) ? (n !== ie[t] && (o = !0), n) : (o = !0, e);
|
|
14967
15009
|
});
|
|
14968
15010
|
return o ? (ie = s, s) : ie;
|
|
14969
15011
|
}), oe = M(() => ae().filter((e) => e.kind === "entity")), se = M(() => {
|
|
14970
15012
|
let e = ae(), t = Array(e.length + 1);
|
|
14971
15013
|
t[0] = 0;
|
|
14972
15014
|
for (let n = 0; n < e.length; n++) {
|
|
14973
|
-
let r = e[n], i = r && r.kind === "header" ?
|
|
15015
|
+
let r = e[n], i = r && r.kind === "header" ? xC : SC;
|
|
14974
15016
|
t[n + 1] = (t[n] ?? 0) + i;
|
|
14975
15017
|
}
|
|
14976
15018
|
return t;
|
|
@@ -14980,7 +15022,7 @@ function EC(e) {
|
|
|
14980
15022
|
start: 0,
|
|
14981
15023
|
end: 0
|
|
14982
15024
|
};
|
|
14983
|
-
let n = m() -
|
|
15025
|
+
let n = m() - CC, r = m() + g() + CC, i = 0, a = t - 1;
|
|
14984
15026
|
for (; i < a;) {
|
|
14985
15027
|
let t = i + a >> 1;
|
|
14986
15028
|
(e[t + 1] ?? 0) > n ? a = t : i = t + 1;
|
|
@@ -15019,7 +15061,7 @@ function EC(e) {
|
|
|
15019
15061
|
if (!p) return;
|
|
15020
15062
|
let t = ae().findIndex((t) => t.kind === "entity" && t.entityIndex === e);
|
|
15021
15063
|
if (t < 0) return;
|
|
15022
|
-
let n = se()[t] ?? 0, r = n +
|
|
15064
|
+
let n = se()[t] ?? 0, r = n + SC;
|
|
15023
15065
|
n < p.scrollTop ? p.scrollTo({ top: n }) : r > p.scrollTop + p.clientHeight && p.scrollTo({ top: r - p.clientHeight });
|
|
15024
15066
|
}, he = (e) => `${r}-option-${e}`, ge = () => !n() && ue().some((e) => e.kind === "entity" && e.entityIndex === u()) ? he(u()) : void 0, _e = () => {
|
|
15025
15067
|
a(!1), s(""), d(0);
|
|
@@ -15102,12 +15144,12 @@ function EC(e) {
|
|
|
15102
15144
|
},
|
|
15103
15145
|
get fallback() {
|
|
15104
15146
|
return (() => {
|
|
15105
|
-
var t =
|
|
15147
|
+
var t = iC(), n = t.firstChild.nextSibling, r = n.nextSibling.nextSibling;
|
|
15106
15148
|
return r.nextSibling, V(t, () => e.domain, n), V(t, () => Ce() ? "entity" : "entities", r), t;
|
|
15107
15149
|
})();
|
|
15108
15150
|
},
|
|
15109
15151
|
children: (e) => (() => {
|
|
15110
|
-
var t =
|
|
15152
|
+
var t = aC();
|
|
15111
15153
|
return V(t, e), t;
|
|
15112
15154
|
})()
|
|
15113
15155
|
})];
|
|
@@ -15115,10 +15157,10 @@ function EC(e) {
|
|
|
15115
15157
|
}), De = (e) => {
|
|
15116
15158
|
let r = M(() => t.getEntityView(e.id)), i = () => C().has(e.id), a = () => {
|
|
15117
15159
|
let e = r();
|
|
15118
|
-
return e == null ||
|
|
15160
|
+
return e == null || DC(e);
|
|
15119
15161
|
}, o = () => {
|
|
15120
15162
|
let e = r();
|
|
15121
|
-
return e ?
|
|
15163
|
+
return e ? OC(e) : "";
|
|
15122
15164
|
};
|
|
15123
15165
|
return z(Fc, {
|
|
15124
15166
|
role: "option",
|
|
@@ -15136,11 +15178,11 @@ function EC(e) {
|
|
|
15136
15178
|
get style() {
|
|
15137
15179
|
return {
|
|
15138
15180
|
top: `${e.top}px`,
|
|
15139
|
-
height: `${
|
|
15181
|
+
height: `${SC}px`
|
|
15140
15182
|
};
|
|
15141
15183
|
},
|
|
15142
15184
|
get icon() {
|
|
15143
|
-
return r()?.icon ??
|
|
15185
|
+
return r()?.icon ?? TC;
|
|
15144
15186
|
},
|
|
15145
15187
|
get title() {
|
|
15146
15188
|
return r()?.friendlyName ?? e.id;
|
|
@@ -15164,7 +15206,7 @@ function EC(e) {
|
|
|
15164
15206
|
onClick: () => ve(e.id)
|
|
15165
15207
|
});
|
|
15166
15208
|
}, Oe = () => (() => {
|
|
15167
|
-
var t =
|
|
15209
|
+
var t = cC(), i = t.firstChild;
|
|
15168
15210
|
return V(t, z(zc, {
|
|
15169
15211
|
inputRef: (e) => {
|
|
15170
15212
|
f = e;
|
|
@@ -15196,7 +15238,7 @@ function EC(e) {
|
|
|
15196
15238
|
},
|
|
15197
15239
|
get fallback() {
|
|
15198
15240
|
return (() => {
|
|
15199
|
-
var t =
|
|
15241
|
+
var t = dC();
|
|
15200
15242
|
return V(t, z(k, {
|
|
15201
15243
|
get when() {
|
|
15202
15244
|
return o().trim();
|
|
@@ -15213,22 +15255,22 @@ function EC(e) {
|
|
|
15213
15255
|
},
|
|
15214
15256
|
get fallback() {
|
|
15215
15257
|
return (() => {
|
|
15216
|
-
var t =
|
|
15258
|
+
var t = hC(), n = t.firstChild.nextSibling;
|
|
15217
15259
|
return n.nextSibling, V(t, () => e.domain, n), t;
|
|
15218
15260
|
})();
|
|
15219
15261
|
},
|
|
15220
15262
|
get children() {
|
|
15221
|
-
var e =
|
|
15263
|
+
var e = mC();
|
|
15222
15264
|
return V(e, D), e;
|
|
15223
15265
|
}
|
|
15224
15266
|
});
|
|
15225
15267
|
},
|
|
15226
15268
|
get children() {
|
|
15227
15269
|
return [(() => {
|
|
15228
|
-
var t =
|
|
15270
|
+
var t = fC(), n = t.firstChild.nextSibling;
|
|
15229
15271
|
return n.nextSibling, V(t, () => e.domain, n), t;
|
|
15230
15272
|
})(), (() => {
|
|
15231
|
-
var e =
|
|
15273
|
+
var e = pC();
|
|
15232
15274
|
return e.$$click = () => l(!0), e;
|
|
15233
15275
|
})()];
|
|
15234
15276
|
}
|
|
@@ -15236,10 +15278,10 @@ function EC(e) {
|
|
|
15236
15278
|
},
|
|
15237
15279
|
get children() {
|
|
15238
15280
|
return [(() => {
|
|
15239
|
-
var e =
|
|
15281
|
+
var e = lC(), t = e.firstChild.nextSibling;
|
|
15240
15282
|
return t.nextSibling, V(e, () => o().trim(), t), e;
|
|
15241
15283
|
})(), (() => {
|
|
15242
|
-
var e =
|
|
15284
|
+
var e = uC();
|
|
15243
15285
|
return e.$$click = () => s(""), e;
|
|
15244
15286
|
})()];
|
|
15245
15287
|
}
|
|
@@ -15261,7 +15303,7 @@ function EC(e) {
|
|
|
15261
15303
|
return ue();
|
|
15262
15304
|
},
|
|
15263
15305
|
children: (e) => e.kind === "header" ? (() => {
|
|
15264
|
-
var t =
|
|
15306
|
+
var t = gC();
|
|
15265
15307
|
return V(t, () => e.label), B((n) => {
|
|
15266
15308
|
var r = O(T, "absolute inset-x-0 flex items-end px-2 pb-1"), i = `${fe(e)}px`;
|
|
15267
15309
|
return r !== n.e && R(t, n.e = r), i !== n.t && It(t, "top", n.t = i), n;
|
|
@@ -15289,7 +15331,7 @@ function EC(e) {
|
|
|
15289
15331
|
return te() > 0 || e.deviceClass;
|
|
15290
15332
|
},
|
|
15291
15333
|
get children() {
|
|
15292
|
-
var t =
|
|
15334
|
+
var t = sC(), n = t.firstChild;
|
|
15293
15335
|
return V(n, (() => {
|
|
15294
15336
|
var t = H(() => !!e.deviceClass);
|
|
15295
15337
|
return () => t() ? `Showing ${e.deviceClass} entities only` : "";
|
|
@@ -15298,7 +15340,7 @@ function EC(e) {
|
|
|
15298
15340
|
return te() > 0;
|
|
15299
15341
|
},
|
|
15300
15342
|
get children() {
|
|
15301
|
-
var e =
|
|
15343
|
+
var e = oC();
|
|
15302
15344
|
return e.$$click = () => l(!c()), V(e, (() => {
|
|
15303
15345
|
var e = H(() => !!c());
|
|
15304
15346
|
return () => e() ? "Hide diagnostic" : `Show diagnostic (${te()})`;
|
|
@@ -15319,7 +15361,7 @@ function EC(e) {
|
|
|
15319
15361
|
return H(() => !Ce())() && e.entityIds.length > 0;
|
|
15320
15362
|
},
|
|
15321
15363
|
get children() {
|
|
15322
|
-
var n =
|
|
15364
|
+
var n = _C();
|
|
15323
15365
|
return V(n, z(mt, {
|
|
15324
15366
|
get each() {
|
|
15325
15367
|
return e.entityIds;
|
|
@@ -15327,13 +15369,13 @@ function EC(e) {
|
|
|
15327
15369
|
children: (e) => {
|
|
15328
15370
|
let n = M(() => t.getEntityView(e)), r = () => {
|
|
15329
15371
|
let e = n();
|
|
15330
|
-
return e != null &&
|
|
15372
|
+
return e != null && DC(e);
|
|
15331
15373
|
};
|
|
15332
15374
|
return (() => {
|
|
15333
|
-
var t =
|
|
15375
|
+
var t = vC(), i = t.firstChild, a = i.firstChild, o = i.nextSibling;
|
|
15334
15376
|
return V(i, z($, {
|
|
15335
15377
|
get icon() {
|
|
15336
|
-
return n()?.icon ??
|
|
15378
|
+
return n()?.icon ?? TC;
|
|
15337
15379
|
},
|
|
15338
15380
|
width: 14,
|
|
15339
15381
|
height: 14,
|
|
@@ -15395,7 +15437,7 @@ function EC(e) {
|
|
|
15395
15437
|
}
|
|
15396
15438
|
});
|
|
15397
15439
|
return (() => {
|
|
15398
|
-
var e =
|
|
15440
|
+
var e = yC();
|
|
15399
15441
|
return V(e, z(gd, {
|
|
15400
15442
|
surface: "field",
|
|
15401
15443
|
get open() {
|
|
@@ -15421,26 +15463,26 @@ function EC(e) {
|
|
|
15421
15463
|
Nt(["click"]);
|
|
15422
15464
|
//#endregion
|
|
15423
15465
|
//#region src/solid/label.tsx
|
|
15424
|
-
var
|
|
15466
|
+
var AC = /*#__PURE__*/ K("<label data-slot=label>"), jC = (e) => {
|
|
15425
15467
|
let [t, n] = I(e, ["class"]);
|
|
15426
15468
|
return (() => {
|
|
15427
|
-
var e =
|
|
15469
|
+
var e = AC();
|
|
15428
15470
|
return G(e, U({ get class() {
|
|
15429
15471
|
return O("flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50", t.class);
|
|
15430
15472
|
} }, n), !1, !1), e;
|
|
15431
15473
|
})();
|
|
15432
|
-
},
|
|
15474
|
+
}, MC = /*#__PURE__*/ K("<fieldset data-slot=field-set>"), NC = /*#__PURE__*/ K("<legend data-slot=field-legend>"), PC = /*#__PURE__*/ K("<div data-slot=field-group>"), FC = /*#__PURE__*/ K("<div role=group data-slot=field>"), IC = /*#__PURE__*/ K("<div data-slot=field-content>"), LC = /*#__PURE__*/ K("<div data-slot=field-title>"), RC = /*#__PURE__*/ K("<p data-slot=field-description>"), zC = /*#__PURE__*/ K("<div data-slot=field-sub-group>"), BC = /*#__PURE__*/ K("<span class=\"bg-card text-muted-foreground relative mx-auto block w-fit px-2\"data-slot=field-separator-content>"), VC = /*#__PURE__*/ K("<div data-slot=field-separator>"), HC = /*#__PURE__*/ K("<ul class=\"flex list-disc flex-col gap-1 pl-4\">"), UC = /*#__PURE__*/ K("<li>"), WC = /*#__PURE__*/ K("<div role=alert data-slot=field-error>"), GC = (e) => {
|
|
15433
15475
|
let [t, n] = I(e, ["class"]);
|
|
15434
15476
|
return (() => {
|
|
15435
|
-
var e =
|
|
15477
|
+
var e = MC();
|
|
15436
15478
|
return G(e, U({ get class() {
|
|
15437
15479
|
return O("flex min-w-0 flex-col gap-4 [&>legend]:mb-4", t.class);
|
|
15438
15480
|
} }, n), !1, !1), e;
|
|
15439
15481
|
})();
|
|
15440
|
-
},
|
|
15482
|
+
}, KC = (e) => {
|
|
15441
15483
|
let [t, n] = I(e, ["class", "variant"]), r = () => t.variant ?? "legend";
|
|
15442
15484
|
return (() => {
|
|
15443
|
-
var e =
|
|
15485
|
+
var e = NC();
|
|
15444
15486
|
return G(e, U({
|
|
15445
15487
|
get "data-variant"() {
|
|
15446
15488
|
return r();
|
|
@@ -15450,15 +15492,15 @@ var DC = /*#__PURE__*/ K("<label data-slot=label>"), OC = (e) => {
|
|
|
15450
15492
|
}
|
|
15451
15493
|
}, n), !1, !1), e;
|
|
15452
15494
|
})();
|
|
15453
|
-
},
|
|
15495
|
+
}, qC = (e) => {
|
|
15454
15496
|
let [t, n] = I(e, ["class"]);
|
|
15455
15497
|
return (() => {
|
|
15456
|
-
var e =
|
|
15498
|
+
var e = PC();
|
|
15457
15499
|
return G(e, U({ get class() {
|
|
15458
15500
|
return O("group/field-group @container/field-group flex w-full flex-col gap-6", t.class);
|
|
15459
15501
|
} }, n), !1, !1), e;
|
|
15460
15502
|
})();
|
|
15461
|
-
},
|
|
15503
|
+
}, JC = v({
|
|
15462
15504
|
base: "group/field data-[invalid=true]:text-destructive flex w-full",
|
|
15463
15505
|
variants: { orientation: {
|
|
15464
15506
|
vertical: ["flex-col gap-2 [&>*]:w-full [&>.sr-only]:w-auto"],
|
|
@@ -15470,63 +15512,63 @@ var DC = /*#__PURE__*/ K("<label data-slot=label>"), OC = (e) => {
|
|
|
15470
15512
|
]
|
|
15471
15513
|
} },
|
|
15472
15514
|
defaultVariants: { orientation: "vertical" }
|
|
15473
|
-
}),
|
|
15515
|
+
}), YC = (e) => {
|
|
15474
15516
|
let [t, n] = I(e, ["class", "orientation"]), r = () => t.orientation ?? "vertical";
|
|
15475
15517
|
return (() => {
|
|
15476
|
-
var e =
|
|
15518
|
+
var e = FC();
|
|
15477
15519
|
return G(e, U({
|
|
15478
15520
|
get "data-orientation"() {
|
|
15479
15521
|
return r();
|
|
15480
15522
|
},
|
|
15481
15523
|
get class() {
|
|
15482
|
-
return O(
|
|
15524
|
+
return O(JC({ orientation: r() }), t.class);
|
|
15483
15525
|
}
|
|
15484
15526
|
}, n), !1, !1), e;
|
|
15485
15527
|
})();
|
|
15486
|
-
},
|
|
15528
|
+
}, XC = (e) => {
|
|
15487
15529
|
let [t, n] = I(e, ["class"]);
|
|
15488
15530
|
return (() => {
|
|
15489
|
-
var e =
|
|
15531
|
+
var e = IC();
|
|
15490
15532
|
return G(e, U({ get class() {
|
|
15491
15533
|
return O("group/field-content flex flex-1 flex-col gap-1.5 leading-snug", t.class);
|
|
15492
15534
|
} }, n), !1, !1), e;
|
|
15493
15535
|
})();
|
|
15494
|
-
},
|
|
15536
|
+
}, ZC = (e) => {
|
|
15495
15537
|
let [t, n] = I(e, ["class"]);
|
|
15496
|
-
return z(
|
|
15538
|
+
return z(jC, U({
|
|
15497
15539
|
"data-slot": "field-label",
|
|
15498
15540
|
get class() {
|
|
15499
15541
|
return O("group/field-label peer/field-label flex w-fit gap-2 leading-snug group-data-[disabled=true]/field:opacity-50", "has-[>[data-slot=field]]:w-full has-[>[data-slot=field]]:flex-col has-[>[data-slot=field]]:rounded-md has-[>[data-slot=field]]:border [&>*]:data-[slot=field]:p-4", "has-[>[data-slot=field]]:has-data-[checked]:border-primary has-[>[data-slot=field]]:has-data-[checked]:bg-primary/5 dark:has-[>[data-slot=field]]:has-data-[checked]:bg-primary/10", t.class);
|
|
15500
15542
|
}
|
|
15501
15543
|
}, n));
|
|
15502
|
-
},
|
|
15544
|
+
}, QC = (e) => {
|
|
15503
15545
|
let [t, n] = I(e, ["class"]);
|
|
15504
15546
|
return (() => {
|
|
15505
|
-
var e =
|
|
15547
|
+
var e = LC();
|
|
15506
15548
|
return G(e, U({ get class() {
|
|
15507
15549
|
return O("flex w-fit items-center gap-2 text-sm leading-snug font-medium group-data-[disabled=true]/field:opacity-50", t.class);
|
|
15508
15550
|
} }, n), !1, !1), e;
|
|
15509
15551
|
})();
|
|
15510
|
-
},
|
|
15552
|
+
}, $C = (e) => {
|
|
15511
15553
|
let [t, n] = I(e, ["class"]);
|
|
15512
15554
|
return (() => {
|
|
15513
|
-
var e =
|
|
15555
|
+
var e = RC();
|
|
15514
15556
|
return G(e, U({ get class() {
|
|
15515
15557
|
return O("text-muted-foreground text-sm leading-normal font-normal group-has-[[data-orientation=horizontal]]/field:text-balance", "group-data-[disabled=true]/field:opacity-50", "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", t.class);
|
|
15516
15558
|
} }, n), !1, !1), e;
|
|
15517
15559
|
})();
|
|
15518
|
-
},
|
|
15560
|
+
}, ew = (e) => {
|
|
15519
15561
|
let [t, n] = I(e, ["class"]);
|
|
15520
15562
|
return (() => {
|
|
15521
|
-
var e =
|
|
15563
|
+
var e = zC();
|
|
15522
15564
|
return G(e, U({ get class() {
|
|
15523
15565
|
return O("flex flex-col gap-1", t.class);
|
|
15524
15566
|
} }, n), !1, !1), e;
|
|
15525
15567
|
})();
|
|
15526
|
-
},
|
|
15568
|
+
}, tw = (e) => {
|
|
15527
15569
|
let [t, n] = I(e, ["children", "class"]);
|
|
15528
15570
|
return (() => {
|
|
15529
|
-
var e =
|
|
15571
|
+
var e = VC();
|
|
15530
15572
|
return G(e, U({
|
|
15531
15573
|
get "data-content"() {
|
|
15532
15574
|
return !!t.children;
|
|
@@ -15539,12 +15581,12 @@ var DC = /*#__PURE__*/ K("<label data-slot=label>"), OC = (e) => {
|
|
|
15539
15581
|
return t.children;
|
|
15540
15582
|
},
|
|
15541
15583
|
get children() {
|
|
15542
|
-
var e =
|
|
15584
|
+
var e = BC();
|
|
15543
15585
|
return V(e, () => t.children), e;
|
|
15544
15586
|
}
|
|
15545
15587
|
}), null), e;
|
|
15546
15588
|
})();
|
|
15547
|
-
},
|
|
15589
|
+
}, nw = (e) => {
|
|
15548
15590
|
let [t, n] = I(e, [
|
|
15549
15591
|
"class",
|
|
15550
15592
|
"children",
|
|
@@ -15554,7 +15596,7 @@ var DC = /*#__PURE__*/ K("<label data-slot=label>"), OC = (e) => {
|
|
|
15554
15596
|
if (!t.errors?.length) return null;
|
|
15555
15597
|
let e = [...new Map(t.errors.map((e) => [e?.message, e])).values()];
|
|
15556
15598
|
return e.length === 1 ? e[0]?.message : (() => {
|
|
15557
|
-
var t =
|
|
15599
|
+
var t = HC();
|
|
15558
15600
|
return V(t, z(mt, {
|
|
15559
15601
|
each: e,
|
|
15560
15602
|
children: (e) => z(k, {
|
|
@@ -15562,7 +15604,7 @@ var DC = /*#__PURE__*/ K("<label data-slot=label>"), OC = (e) => {
|
|
|
15562
15604
|
return e?.message;
|
|
15563
15605
|
},
|
|
15564
15606
|
children: (e) => (() => {
|
|
15565
|
-
var t =
|
|
15607
|
+
var t = UC();
|
|
15566
15608
|
return V(t, e), t;
|
|
15567
15609
|
})()
|
|
15568
15610
|
})
|
|
@@ -15574,33 +15616,33 @@ var DC = /*#__PURE__*/ K("<label data-slot=label>"), OC = (e) => {
|
|
|
15574
15616
|
return r();
|
|
15575
15617
|
},
|
|
15576
15618
|
get children() {
|
|
15577
|
-
var e =
|
|
15619
|
+
var e = WC();
|
|
15578
15620
|
return G(e, U({ get class() {
|
|
15579
15621
|
return O("text-destructive text-sm font-normal", t.class);
|
|
15580
15622
|
} }, n), !1, !0), V(e, r), e;
|
|
15581
15623
|
}
|
|
15582
15624
|
});
|
|
15583
|
-
},
|
|
15625
|
+
}, rw = /*#__PURE__*/ K("<form data-slot=form>"), iw = /*#__PURE__*/ K("<div data-slot=form-control>"), aw = A(), ow = A(), sw = A(), cw = (e) => {
|
|
15584
15626
|
let [t, n] = I(e, [
|
|
15585
15627
|
"children",
|
|
15586
15628
|
"errors",
|
|
15587
15629
|
"onSetError",
|
|
15588
15630
|
"onClearError"
|
|
15589
15631
|
]);
|
|
15590
|
-
return z(
|
|
15632
|
+
return z(sw.Provider, {
|
|
15591
15633
|
value: {
|
|
15592
15634
|
errors: () => t.errors ?? {},
|
|
15593
15635
|
setError: (e, n) => t.onSetError?.(e, n),
|
|
15594
15636
|
clearError: (e) => t.onClearError?.(e)
|
|
15595
15637
|
},
|
|
15596
15638
|
get children() {
|
|
15597
|
-
var e =
|
|
15639
|
+
var e = rw();
|
|
15598
15640
|
return G(e, n, !1, !0), V(e, () => t.children), e;
|
|
15599
15641
|
}
|
|
15600
15642
|
});
|
|
15601
15643
|
};
|
|
15602
|
-
function
|
|
15603
|
-
let e = L(
|
|
15644
|
+
function lw() {
|
|
15645
|
+
let e = L(aw), t = L(ow), n = L(sw), r = () => t?.id ?? "", i = () => e?.name ?? "";
|
|
15604
15646
|
return {
|
|
15605
15647
|
id: r,
|
|
15606
15648
|
name: i,
|
|
@@ -15611,28 +15653,28 @@ function ow() {
|
|
|
15611
15653
|
error: M(() => n?.errors()[i()] ?? "")
|
|
15612
15654
|
};
|
|
15613
15655
|
}
|
|
15614
|
-
var
|
|
15656
|
+
var uw = (e) => z(aw.Provider, {
|
|
15615
15657
|
get value() {
|
|
15616
15658
|
return { name: e.name };
|
|
15617
15659
|
},
|
|
15618
15660
|
get children() {
|
|
15619
15661
|
return e.children;
|
|
15620
15662
|
}
|
|
15621
|
-
}),
|
|
15663
|
+
}), dw = (e) => {
|
|
15622
15664
|
let t = P(), [n, r] = N(!1);
|
|
15623
|
-
return z(
|
|
15665
|
+
return z(ow.Provider, {
|
|
15624
15666
|
value: {
|
|
15625
15667
|
id: t,
|
|
15626
15668
|
hasDescription: n,
|
|
15627
15669
|
setHasDescription: r
|
|
15628
15670
|
},
|
|
15629
15671
|
get children() {
|
|
15630
|
-
return z(
|
|
15672
|
+
return z(YC, e);
|
|
15631
15673
|
}
|
|
15632
15674
|
});
|
|
15633
|
-
},
|
|
15634
|
-
let [t, n] = I(e, ["class"]), { error: r, formItemId: i } =
|
|
15635
|
-
return z(
|
|
15675
|
+
}, fw = (e) => {
|
|
15676
|
+
let [t, n] = I(e, ["class"]), { error: r, formItemId: i } = lw();
|
|
15677
|
+
return z(ZC, U({
|
|
15636
15678
|
get "data-error"() {
|
|
15637
15679
|
return !!r();
|
|
15638
15680
|
},
|
|
@@ -15643,17 +15685,17 @@ var sw = (e) => z(nw.Provider, {
|
|
|
15643
15685
|
return i();
|
|
15644
15686
|
}
|
|
15645
15687
|
}, n));
|
|
15646
|
-
},
|
|
15647
|
-
function
|
|
15648
|
-
|
|
15688
|
+
}, pw = !1;
|
|
15689
|
+
function mw() {
|
|
15690
|
+
pw || typeof process < "u" && process.env.NODE_ENV === "production" || (pw = !0, console.warn("[FormControl] The wrapper shape (<FormControl><Input /></FormControl>) is deprecated: an aria-describedby on a div around an input is read by nothing. Render the control itself instead: <FormControl type=\"email\" /> or <FormControl as={Textarea} />."));
|
|
15649
15691
|
}
|
|
15650
|
-
var
|
|
15651
|
-
let { error: t, hasDescription: n, formItemId: r, formDescriptionId: i, formMessageId: a } =
|
|
15692
|
+
var hw = (e) => {
|
|
15693
|
+
let { error: t, hasDescription: n, formItemId: r, formDescriptionId: i, formMessageId: a } = lw(), [o, s] = I(e, ["as", "children"]), c = () => {
|
|
15652
15694
|
let e = [n() ? i() : "", t() ? a() : ""].filter((e) => e !== "");
|
|
15653
15695
|
return e.length > 0 ? e.join(" ") : void 0;
|
|
15654
15696
|
}, l = yt(() => o.children), u = M(() => l() !== void 0);
|
|
15655
15697
|
return j(() => {
|
|
15656
|
-
u() &&
|
|
15698
|
+
u() && mw();
|
|
15657
15699
|
}), z(k, {
|
|
15658
15700
|
get when() {
|
|
15659
15701
|
return u();
|
|
@@ -15675,7 +15717,7 @@ var fw = (e) => {
|
|
|
15675
15717
|
}, s));
|
|
15676
15718
|
},
|
|
15677
15719
|
get children() {
|
|
15678
|
-
var e =
|
|
15720
|
+
var e = iw();
|
|
15679
15721
|
return G(e, U({
|
|
15680
15722
|
get id() {
|
|
15681
15723
|
return r();
|
|
@@ -15689,28 +15731,28 @@ var fw = (e) => {
|
|
|
15689
15731
|
}, s), !1, !0), V(e, l), e;
|
|
15690
15732
|
}
|
|
15691
15733
|
});
|
|
15692
|
-
},
|
|
15693
|
-
let t = L(
|
|
15694
|
-
return Ot(() => t?.setHasDescription(!0)), F(() => t?.setHasDescription(!1)), z(
|
|
15734
|
+
}, gw = (e) => {
|
|
15735
|
+
let t = L(ow), { formDescriptionId: n } = lw();
|
|
15736
|
+
return Ot(() => t?.setHasDescription(!0)), F(() => t?.setHasDescription(!1)), z($C, U({ get id() {
|
|
15695
15737
|
return n();
|
|
15696
15738
|
} }, e));
|
|
15697
|
-
},
|
|
15698
|
-
let [t, n] = I(e, ["children"]), { error: r, formMessageId: i } =
|
|
15699
|
-
return z(
|
|
15739
|
+
}, _w = (e) => {
|
|
15740
|
+
let [t, n] = I(e, ["children"]), { error: r, formMessageId: i } = lw(), a = () => r() || t.children;
|
|
15741
|
+
return z(nw, U({ get id() {
|
|
15700
15742
|
return i();
|
|
15701
15743
|
} }, n, { get children() {
|
|
15702
15744
|
return a();
|
|
15703
15745
|
} }));
|
|
15704
|
-
},
|
|
15705
|
-
function
|
|
15746
|
+
}, vw = /*#__PURE__*/ K("<div class=\"flex w-full items-center gap-4\"><span class=\"relative flex shrink-0 items-center justify-center\"style=color:var(--surface-tone)></span><div class=\"relative flex min-w-0 flex-1 flex-col gap-1\"><div class=\"flex items-center gap-2\"><h3 class=\"text-lg leading-tight font-semibold\"></h3></div><p class=\"text-foreground/80 truncate text-sm\">"), yw = /*#__PURE__*/ K("<img alt class=\"size-14 object-contain\"aria-hidden=true>"), bw = /*#__PURE__*/ K("<button type=button data-slot=hero-action>"), xw = "glass group relative flex min-h-[6.25rem] items-center gap-4 overflow-hidden rounded-[calc(var(--radius)+8px)] p-4 text-left transition-glass duration-200 [--glass-lift:0.4] [--glass-wash:20%] hover:[--glass-wash:30%] [--glass-edge:oklch(from_var(--glass-tone)_l_c_h/0.5)] [&_[data-slot=ornament-arrow]]:opacity-35 hover:-translate-y-0.5 active:translate-y-0 active:scale-[0.99] disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:translate-y-0 hover:[--glass-lift:0.85] data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50 data-[disabled]:hover:translate-y-0";
|
|
15747
|
+
function Sw(e) {
|
|
15706
15748
|
let t = Number.parseFloat(e.match(/oklch\(\s*([0-9.]+)/)?.[1] ?? "");
|
|
15707
15749
|
return Number.isNaN(t) || t >= .68 ? e : e.replace(/oklch\(\s*[0-9.]+/, "oklch(0.76");
|
|
15708
15750
|
}
|
|
15709
|
-
function
|
|
15751
|
+
function Cw(e) {
|
|
15710
15752
|
return [z(sp, { get kind() {
|
|
15711
15753
|
return e.ornament;
|
|
15712
15754
|
} }), (() => {
|
|
15713
|
-
var t =
|
|
15755
|
+
var t = vw(), n = t.firstChild, r = n.nextSibling.firstChild, i = r.firstChild, a = r.nextSibling;
|
|
15714
15756
|
return V(n, z(k, {
|
|
15715
15757
|
get when() {
|
|
15716
15758
|
return e.iconImage;
|
|
@@ -15725,7 +15767,7 @@ function bw(e) {
|
|
|
15725
15767
|
});
|
|
15726
15768
|
},
|
|
15727
15769
|
children: (e) => (() => {
|
|
15728
|
-
var t =
|
|
15770
|
+
var t = yw();
|
|
15729
15771
|
return B(() => W(t, "src", e())), t;
|
|
15730
15772
|
})()
|
|
15731
15773
|
})), V(i, () => e.title), V(r, z(k, {
|
|
@@ -15733,10 +15775,10 @@ function bw(e) {
|
|
|
15733
15775
|
return e.recommended;
|
|
15734
15776
|
},
|
|
15735
15777
|
get children() {
|
|
15736
|
-
return z(
|
|
15778
|
+
return z(ES, {
|
|
15737
15779
|
openDelay: 150,
|
|
15738
15780
|
get children() {
|
|
15739
|
-
return [z(
|
|
15781
|
+
return [z(DS, {
|
|
15740
15782
|
as: Zd,
|
|
15741
15783
|
tone: "var(--success)",
|
|
15742
15784
|
children: "Recommended"
|
|
@@ -15744,20 +15786,20 @@ function bw(e) {
|
|
|
15744
15786
|
get when() {
|
|
15745
15787
|
return e.recommendedHint;
|
|
15746
15788
|
},
|
|
15747
|
-
children: (e) => z(
|
|
15789
|
+
children: (e) => z(OS, { get children() {
|
|
15748
15790
|
return e();
|
|
15749
15791
|
} })
|
|
15750
15792
|
})];
|
|
15751
15793
|
}
|
|
15752
15794
|
});
|
|
15753
15795
|
}
|
|
15754
|
-
}), null), V(a, () => e.description), B((t) => It(i, "color", pe(
|
|
15796
|
+
}), null), V(a, () => e.description), B((t) => It(i, "color", pe(Sw(e.accentVar)))), t;
|
|
15755
15797
|
})()];
|
|
15756
15798
|
}
|
|
15757
|
-
function
|
|
15799
|
+
function ww(e) {
|
|
15758
15800
|
return (() => {
|
|
15759
|
-
var t =
|
|
15760
|
-
return t.$$click = () => !e.disabled && e.onClick(), V(t, z(
|
|
15801
|
+
var t = bw();
|
|
15802
|
+
return t.$$click = () => !e.disabled && e.onClick(), V(t, z(Cw, {
|
|
15761
15803
|
get icon() {
|
|
15762
15804
|
return e.icon;
|
|
15763
15805
|
},
|
|
@@ -15781,7 +15823,7 @@ function xw(e) {
|
|
|
15781
15823
|
},
|
|
15782
15824
|
ornament: "arrow"
|
|
15783
15825
|
})), B((n) => {
|
|
15784
|
-
var r = e.disabled, i = O(
|
|
15826
|
+
var r = e.disabled, i = O(xw, de(e.accentVar) && "[--glass-wash:12%]", e.class), a = { "--glass-tone": e.accentVar };
|
|
15785
15827
|
return r !== n.e && (t.disabled = n.e = r), i !== n.t && R(t, n.t = i), n.a = Lt(t, a, n.a), n;
|
|
15786
15828
|
}, {
|
|
15787
15829
|
e: void 0,
|
|
@@ -15791,10 +15833,10 @@ function xw(e) {
|
|
|
15791
15833
|
})();
|
|
15792
15834
|
}
|
|
15793
15835
|
Nt(["click"]), Qr({}, {
|
|
15794
|
-
Link: () =>
|
|
15795
|
-
Root: () =>
|
|
15836
|
+
Link: () => Ew,
|
|
15837
|
+
Root: () => Tw
|
|
15796
15838
|
});
|
|
15797
|
-
function
|
|
15839
|
+
function Tw(e) {
|
|
15798
15840
|
let t, [n, r] = I(e, [
|
|
15799
15841
|
"ref",
|
|
15800
15842
|
"href",
|
|
@@ -15823,24 +15865,24 @@ function Sw(e) {
|
|
|
15823
15865
|
}
|
|
15824
15866
|
}, r));
|
|
15825
15867
|
}
|
|
15826
|
-
var
|
|
15868
|
+
var Ew = Tw;
|
|
15827
15869
|
Qr({}, {
|
|
15828
15870
|
Arrow: () => Gu,
|
|
15829
|
-
Content: () =>
|
|
15830
|
-
HoverCard: () =>
|
|
15831
|
-
Portal: () =>
|
|
15832
|
-
Root: () =>
|
|
15833
|
-
Trigger: () =>
|
|
15834
|
-
useHoverCardContext: () =>
|
|
15871
|
+
Content: () => kw,
|
|
15872
|
+
HoverCard: () => Pw,
|
|
15873
|
+
Portal: () => Aw,
|
|
15874
|
+
Root: () => Mw,
|
|
15875
|
+
Trigger: () => Nw,
|
|
15876
|
+
useHoverCardContext: () => Ow
|
|
15835
15877
|
});
|
|
15836
|
-
var
|
|
15837
|
-
function
|
|
15838
|
-
let e = L(
|
|
15878
|
+
var Dw = A();
|
|
15879
|
+
function Ow() {
|
|
15880
|
+
let e = L(Dw);
|
|
15839
15881
|
if (e === void 0) throw Error("[kobalte]: `useHoverCardContext` must be used within a `HoverCard` component");
|
|
15840
15882
|
return e;
|
|
15841
15883
|
}
|
|
15842
|
-
function
|
|
15843
|
-
let t =
|
|
15884
|
+
function kw(e) {
|
|
15885
|
+
let t = Ow(), [n, r] = I(e, ["ref", "style"]);
|
|
15844
15886
|
return z(k, {
|
|
15845
15887
|
get when() {
|
|
15846
15888
|
return t.contentPresent();
|
|
@@ -15870,8 +15912,8 @@ function Ew(e) {
|
|
|
15870
15912
|
}
|
|
15871
15913
|
});
|
|
15872
15914
|
}
|
|
15873
|
-
function
|
|
15874
|
-
let t =
|
|
15915
|
+
function Aw(e) {
|
|
15916
|
+
let t = Ow();
|
|
15875
15917
|
return z(k, {
|
|
15876
15918
|
get when() {
|
|
15877
15919
|
return t.contentPresent();
|
|
@@ -15881,7 +15923,7 @@ function Dw(e) {
|
|
|
15881
15923
|
}
|
|
15882
15924
|
});
|
|
15883
15925
|
}
|
|
15884
|
-
function
|
|
15926
|
+
function jw(e, t, n) {
|
|
15885
15927
|
let r = e.split("-")[0], i = t.getBoundingClientRect(), a = n.getBoundingClientRect(), o = [], s = i.left + i.width / 2, c = i.top + i.height / 2;
|
|
15886
15928
|
switch (r) {
|
|
15887
15929
|
case "top":
|
|
@@ -15899,7 +15941,7 @@ function Ow(e, t, n) {
|
|
|
15899
15941
|
}
|
|
15900
15942
|
return o;
|
|
15901
15943
|
}
|
|
15902
|
-
function
|
|
15944
|
+
function Mw(e) {
|
|
15903
15945
|
let [t, n] = I(Z({
|
|
15904
15946
|
id: `hovercard-${P()}`,
|
|
15905
15947
|
openDelay: 700,
|
|
@@ -15934,7 +15976,7 @@ function kw(e) {
|
|
|
15934
15976
|
Pt || (window.clearTimeout(i), i = void 0);
|
|
15935
15977
|
}, y = (e) => mn(a(), e) || mn(s(), e), b = (e) => {
|
|
15936
15978
|
let t = a(), n = s();
|
|
15937
|
-
if (!(!t || !n)) return
|
|
15979
|
+
if (!(!t || !n)) return jw(e, t, n);
|
|
15938
15980
|
}, x = (e) => {
|
|
15939
15981
|
let n = e.target;
|
|
15940
15982
|
if (y(n)) {
|
|
@@ -15973,7 +16015,7 @@ function kw(e) {
|
|
|
15973
16015
|
setTriggerRef: o,
|
|
15974
16016
|
setContentRef: c
|
|
15975
16017
|
};
|
|
15976
|
-
return z(
|
|
16018
|
+
return z(Dw.Provider, {
|
|
15977
16019
|
value: S,
|
|
15978
16020
|
get children() {
|
|
15979
16021
|
return z(ed, U({
|
|
@@ -15984,15 +16026,15 @@ function kw(e) {
|
|
|
15984
16026
|
}
|
|
15985
16027
|
});
|
|
15986
16028
|
}
|
|
15987
|
-
function
|
|
15988
|
-
let t =
|
|
16029
|
+
function Nw(e) {
|
|
16030
|
+
let t = Ow(), [n, r] = I(e, [
|
|
15989
16031
|
"ref",
|
|
15990
16032
|
"onPointerEnter",
|
|
15991
16033
|
"onPointerLeave",
|
|
15992
16034
|
"onFocus",
|
|
15993
16035
|
"onBlur"
|
|
15994
16036
|
]);
|
|
15995
|
-
return F(t.cancelOpening), z(
|
|
16037
|
+
return F(t.cancelOpening), z(Tw, U({
|
|
15996
16038
|
ref(e) {
|
|
15997
16039
|
var r = J(t.setTriggerRef, n.ref);
|
|
15998
16040
|
typeof r == "function" && r(e);
|
|
@@ -16013,17 +16055,17 @@ function Aw(e) {
|
|
|
16013
16055
|
}
|
|
16014
16056
|
}, () => t.dataset(), r));
|
|
16015
16057
|
}
|
|
16016
|
-
var
|
|
16058
|
+
var Pw = Object.assign(Mw, {
|
|
16017
16059
|
Arrow: Gu,
|
|
16018
|
-
Content:
|
|
16019
|
-
Portal:
|
|
16020
|
-
Trigger:
|
|
16021
|
-
}),
|
|
16060
|
+
Content: kw,
|
|
16061
|
+
Portal: Aw,
|
|
16062
|
+
Trigger: Nw
|
|
16063
|
+
}), Fw = Pw, Iw = (e) => z(Pw.Trigger, U({ "data-slot": "hover-card-trigger" }, e)), Lw = (e) => {
|
|
16022
16064
|
let [t, n] = I(e, ["class"]);
|
|
16023
|
-
return z(
|
|
16065
|
+
return z(Pw.Portal, {
|
|
16024
16066
|
"data-slot": "hover-card-portal",
|
|
16025
16067
|
get children() {
|
|
16026
|
-
return z(
|
|
16068
|
+
return z(Pw.Content, U({
|
|
16027
16069
|
"data-slot": "hover-card-content",
|
|
16028
16070
|
get class() {
|
|
16029
16071
|
return O(be, E, "w-64 p-4", t.class);
|
|
@@ -16031,7 +16073,7 @@ var jw = Object.assign(kw, {
|
|
|
16031
16073
|
}, n));
|
|
16032
16074
|
}
|
|
16033
16075
|
});
|
|
16034
|
-
},
|
|
16076
|
+
}, Rw = /*#__PURE__*/ K("<span class=\"flex-1 truncate text-left\">"), zw = /*#__PURE__*/ K("<div class=\"text-muted-foreground py-4 text-center text-sm\">Searching..."), Bw = /*#__PURE__*/ K("<div class=\"text-muted-foreground py-4 text-center text-sm\">No icons found"), Vw = /*#__PURE__*/ K("<div class=\"flex flex-col\"><div class=\"border-border/50 flex flex-wrap gap-1 border-b px-2 py-1.5\"></div><div><div>"), Hw = /*#__PURE__*/ K("<span class=\"text-muted-foreground flex-1 text-left\">"), Uw = /*#__PURE__*/ K("<button type=button data-slot=icon-picker-library>"), Ww = /*#__PURE__*/ K("<button type=button>"), Gw = [
|
|
16035
16077
|
{
|
|
16036
16078
|
prefix: "",
|
|
16037
16079
|
label: "All"
|
|
@@ -16060,7 +16102,7 @@ var jw = Object.assign(kw, {
|
|
|
16060
16102
|
prefix: "fluent",
|
|
16061
16103
|
label: "Fluent"
|
|
16062
16104
|
}
|
|
16063
|
-
],
|
|
16105
|
+
], Kw = {
|
|
16064
16106
|
mdi: /* @__PURE__ */ "mdi:home.mdi:home-outline.mdi:lightbulb.mdi:lightbulb-outline.mdi:lamp.mdi:ceiling-light.mdi:floor-lamp.mdi:led-strip.mdi:power-plug.mdi:power-socket.mdi:toggle-switch.mdi:thermometer.mdi:thermostat.mdi:air-conditioner.mdi:fan.mdi:water.mdi:fire.mdi:snowflake.mdi:weather-partly-cloudy.mdi:lock.mdi:lock-open.mdi:door.mdi:door-open.mdi:window-closed.mdi:window-open.mdi:garage.mdi:gate.mdi:blinds.mdi:television.mdi:speaker.mdi:cast.mdi:camera.mdi:cctv.mdi:motion-sensor.mdi:smoke-detector.mdi:bell.mdi:battery.mdi:solar-power.mdi:robot-vacuum.mdi:washing-machine.mdi:fridge.mdi:stove.mdi:bed.mdi:sofa.mdi:shower.mdi:car.mdi:wifi.mdi:router-wireless.mdi:view-dashboard.mdi:cog.mdi:star.mdi:heart.mdi:shield-home.mdi:home-floor-1.mdi:home-floor-2.mdi:home-floor-3.mdi:home-group.mdi:office-building".split("."),
|
|
16065
16107
|
lucide: /* @__PURE__ */ "lucide:home.lucide:lightbulb.lucide:lamp.lucide:lamp-desk.lucide:plug.lucide:power.lucide:thermometer.lucide:flame.lucide:snowflake.lucide:wind.lucide:droplets.lucide:sun.lucide:cloud-sun.lucide:lock.lucide:lock-open.lucide:door-open.lucide:door-closed.lucide:blinds.lucide:tv.lucide:speaker.lucide:camera.lucide:bell.lucide:battery.lucide:car.lucide:wifi.lucide:router.lucide:layout-dashboard.lucide:settings.lucide:star.lucide:heart.lucide:shield.lucide:eye.lucide:zap.lucide:clock.lucide:calendar.lucide:link.lucide:image.lucide:music.lucide:map-pin.lucide:user".split("."),
|
|
16066
16108
|
solar: /* @__PURE__ */ "solar:home-bold.solar:home-linear.solar:lamp-bold.solar:lightbulb-bolt-bold.solar:plug-circle-bold.solar:temperature-bold.solar:fire-bold.solar:snowflake-bold.solar:lock-bold.solar:lock-unlocked-bold.solar:tv-bold.solar:speaker-bold.solar:camera-bold.solar:bell-bold.solar:battery-charge-bold.solar:wi-fi-router-bold.solar:widget-bold.solar:settings-bold.solar:star-bold.solar:heart-bold.solar:shield-bold.solar:eye-bold.solar:bolt-bold.solar:clock-circle-bold.solar:calendar-bold.solar:link-bold.solar:gallery-bold.solar:music-note-bold.solar:map-point-bold.solar:user-bold".split("."),
|
|
@@ -16068,13 +16110,13 @@ var jw = Object.assign(kw, {
|
|
|
16068
16110
|
ph: /* @__PURE__ */ "ph:house-bold.ph:lightbulb-bold.ph:lamp-bold.ph:plug-bold.ph:power-bold.ph:thermometer-bold.ph:fire-bold.ph:snowflake-bold.ph:wind-bold.ph:drop-bold.ph:sun-bold.ph:cloud-sun-bold.ph:lock-bold.ph:lock-open-bold.ph:door-bold.ph:television-bold.ph:speaker-high-bold.ph:camera-bold.ph:bell-bold.ph:battery-charging-bold.ph:car-bold.ph:wifi-high-bold.ph:squares-four-bold.ph:gear-bold.ph:star-bold.ph:heart-bold.ph:shield-bold.ph:eye-bold.ph:lightning-bold.ph:clock-bold".split("."),
|
|
16069
16111
|
fluent: /* @__PURE__ */ "fluent:home-24-filled.fluent:lightbulb-24-filled.fluent:plug-connected-24-filled.fluent:power-24-filled.fluent:temperature-24-filled.fluent:fire-24-filled.fluent:weather-snowflake-24-filled.fluent:lock-closed-24-filled.fluent:lock-open-24-filled.fluent:door-24-filled.fluent:tv-24-filled.fluent:speaker-2-24-filled.fluent:camera-24-filled.fluent:alert-24-filled.fluent:battery-charge-24-filled.fluent:vehicle-car-24-filled.fluent:wifi-1-24-filled.fluent:board-24-filled.fluent:settings-24-filled.fluent:star-24-filled.fluent:heart-24-filled.fluent:shield-24-filled.fluent:eye-24-filled.fluent:flash-24-filled.fluent:clock-24-filled.fluent:calendar-24-filled.fluent:link-24-filled.fluent:image-24-filled.fluent:music-note-1-24-filled.fluent:person-24-filled".split(".")
|
|
16070
16112
|
};
|
|
16071
|
-
function
|
|
16113
|
+
function qw(e) {
|
|
16072
16114
|
let [t, n] = N(!1), [r, i] = N(""), [a, o] = N(""), [s, c] = N([]), [l, u] = N(!1), d, f, p = (t, n) => {
|
|
16073
16115
|
if (clearTimeout(d), !t.trim()) {
|
|
16074
16116
|
c([]);
|
|
16075
16117
|
return;
|
|
16076
16118
|
}
|
|
16077
|
-
let r = e.searchIcons, i = ka(), a = n ? [n] :
|
|
16119
|
+
let r = e.searchIcons, i = ka(), a = n ? [n] : Gw.map((e) => e.prefix).filter(Boolean), o = r ? () => r(t, n) : i ? () => i(t, a) : void 0;
|
|
16078
16120
|
o && (u(!0), d = setTimeout(async () => {
|
|
16079
16121
|
try {
|
|
16080
16122
|
c(await o());
|
|
@@ -16086,7 +16128,7 @@ function Ww(e) {
|
|
|
16086
16128
|
}, 300));
|
|
16087
16129
|
}, m = M(() => {
|
|
16088
16130
|
let e = a();
|
|
16089
|
-
return e ?
|
|
16131
|
+
return e ? Kw[e] ?? [] : Object.values(Kw).flat().slice(0, 60);
|
|
16090
16132
|
}), h = M(() => {
|
|
16091
16133
|
let e = r().toLowerCase().trim();
|
|
16092
16134
|
return e ? s().length > 0 ? s() : m().filter((t) => t.toLowerCase().includes(e)) : m();
|
|
@@ -16129,7 +16171,7 @@ function Ww(e) {
|
|
|
16129
16171
|
},
|
|
16130
16172
|
get fallback() {
|
|
16131
16173
|
return (() => {
|
|
16132
|
-
var t =
|
|
16174
|
+
var t = Hw();
|
|
16133
16175
|
return V(t, () => e.placeholder ?? "mdi:home"), t;
|
|
16134
16176
|
})();
|
|
16135
16177
|
},
|
|
@@ -16142,7 +16184,7 @@ function Ww(e) {
|
|
|
16142
16184
|
height: 18,
|
|
16143
16185
|
class: "shrink-0"
|
|
16144
16186
|
}), (() => {
|
|
16145
|
-
var t =
|
|
16187
|
+
var t = Rw();
|
|
16146
16188
|
return V(t, () => e.value), t;
|
|
16147
16189
|
})()];
|
|
16148
16190
|
}
|
|
@@ -16156,7 +16198,7 @@ function Ww(e) {
|
|
|
16156
16198
|
},
|
|
16157
16199
|
onInteractOutside: () => n(!1),
|
|
16158
16200
|
get children() {
|
|
16159
|
-
var t =
|
|
16201
|
+
var t = Vw(), n = t.firstChild, o = n.nextSibling, s = o.firstChild;
|
|
16160
16202
|
return V(t, z(zc, {
|
|
16161
16203
|
inputRef: (e) => {
|
|
16162
16204
|
f = e;
|
|
@@ -16170,9 +16212,9 @@ function Ww(e) {
|
|
|
16170
16212
|
placeholder: "Search icons...",
|
|
16171
16213
|
"aria-label": "Search icons"
|
|
16172
16214
|
}), n), V(n, z(mt, {
|
|
16173
|
-
each:
|
|
16215
|
+
each: Gw,
|
|
16174
16216
|
children: (e) => (() => {
|
|
16175
|
-
var t =
|
|
16217
|
+
var t = Uw();
|
|
16176
16218
|
return t.$$click = () => v(e.prefix), V(t, () => e.label), B((n) => {
|
|
16177
16219
|
var r = a() === e.prefix, i = O(Be, "transition-glass cursor-pointer", a() === e.prefix ? "[--glass-tone:var(--primary)]" : "text-muted-foreground hover:text-foreground [--glass-base:transparent] [--glass-edge:transparent] [--glass-light:0] [--glass-rim:0]");
|
|
16178
16220
|
return r !== n.e && W(t, "aria-pressed", n.e = r), i !== n.t && R(t, n.t = i), n;
|
|
@@ -16186,21 +16228,21 @@ function Ww(e) {
|
|
|
16186
16228
|
return H(() => !!l())() && h().length === 0;
|
|
16187
16229
|
},
|
|
16188
16230
|
get children() {
|
|
16189
|
-
return
|
|
16231
|
+
return zw();
|
|
16190
16232
|
}
|
|
16191
16233
|
}), s), V(o, z(k, {
|
|
16192
16234
|
get when() {
|
|
16193
16235
|
return H(() => !!(!l() && r().trim()))() && h().length === 0;
|
|
16194
16236
|
},
|
|
16195
16237
|
get children() {
|
|
16196
|
-
return
|
|
16238
|
+
return Bw();
|
|
16197
16239
|
}
|
|
16198
16240
|
}), s), V(s, z(mt, {
|
|
16199
16241
|
get each() {
|
|
16200
16242
|
return h();
|
|
16201
16243
|
},
|
|
16202
16244
|
children: (t) => (() => {
|
|
16203
|
-
var n =
|
|
16245
|
+
var n = Ww();
|
|
16204
16246
|
return n.$$click = () => g(t), W(n, "title", t), V(n, z($, {
|
|
16205
16247
|
icon: t,
|
|
16206
16248
|
width: 22,
|
|
@@ -16228,27 +16270,27 @@ function Ww(e) {
|
|
|
16228
16270
|
Nt(["click"]);
|
|
16229
16271
|
//#endregion
|
|
16230
16272
|
//#region src/solid/media-store.ts
|
|
16231
|
-
var
|
|
16273
|
+
var Jw = class extends Error {
|
|
16232
16274
|
kind;
|
|
16233
16275
|
usage;
|
|
16234
16276
|
constructor(e, t) {
|
|
16235
16277
|
super(e), this.name = "MediaStoreError", this.kind = e, this.usage = t;
|
|
16236
16278
|
}
|
|
16237
|
-
},
|
|
16238
|
-
function
|
|
16239
|
-
|
|
16279
|
+
}, Yw = A(), Xw;
|
|
16280
|
+
function Zw(e) {
|
|
16281
|
+
Xw = e;
|
|
16240
16282
|
}
|
|
16241
|
-
function
|
|
16242
|
-
return L(
|
|
16283
|
+
function Qw() {
|
|
16284
|
+
return L(Yw) ?? Xw;
|
|
16243
16285
|
}
|
|
16244
|
-
var
|
|
16245
|
-
function
|
|
16286
|
+
var $w = 24;
|
|
16287
|
+
function eT(e) {
|
|
16246
16288
|
return typeof e.mimeType == "string" && e.mimeType.startsWith("image/");
|
|
16247
16289
|
}
|
|
16248
|
-
function
|
|
16249
|
-
return e.filter(
|
|
16290
|
+
function tT(e) {
|
|
16291
|
+
return e.filter(eT).sort((e, t) => e.usedBy === 0 == (t.usedBy === 0) ? e.id.localeCompare(t.id) : e.usedBy === 0 ? -1 : 1);
|
|
16250
16292
|
}
|
|
16251
|
-
function
|
|
16293
|
+
function nT(e) {
|
|
16252
16294
|
let [t, n] = N({});
|
|
16253
16295
|
return {
|
|
16254
16296
|
isBroken: (n) => t()[n.id] === e(n.id),
|
|
@@ -16258,17 +16300,17 @@ function $w(e) {
|
|
|
16258
16300
|
}))
|
|
16259
16301
|
};
|
|
16260
16302
|
}
|
|
16261
|
-
var
|
|
16262
|
-
function
|
|
16263
|
-
return `${
|
|
16303
|
+
var rT = "preset:";
|
|
16304
|
+
function iT(e) {
|
|
16305
|
+
return `${rT}${e}`;
|
|
16264
16306
|
}
|
|
16265
|
-
function
|
|
16266
|
-
return e?.startsWith(
|
|
16307
|
+
function aT(e) {
|
|
16308
|
+
return e?.startsWith(rT) ? e.slice(7) : void 0;
|
|
16267
16309
|
}
|
|
16268
|
-
function
|
|
16269
|
-
if (!(!e ||
|
|
16310
|
+
function oT(e) {
|
|
16311
|
+
if (!(!e || aT(e) !== void 0)) return Qw()?.url(e);
|
|
16270
16312
|
}
|
|
16271
|
-
var
|
|
16313
|
+
var sT = oT, cT = {
|
|
16272
16314
|
file_too_large: () => "That file is too large to upload.",
|
|
16273
16315
|
image_too_large: () => "That image's dimensions are too large.",
|
|
16274
16316
|
not_an_image: () => "That file isn't an image.",
|
|
@@ -16279,28 +16321,28 @@ var iT = rT, aT = {
|
|
|
16279
16321
|
no_active_household: () => "No household is active, so photos can't be stored right now.",
|
|
16280
16322
|
upload_failed: () => "That didn't work. Try again, and sign in again if it keeps failing."
|
|
16281
16323
|
};
|
|
16282
|
-
function
|
|
16283
|
-
return e instanceof
|
|
16324
|
+
function lT(e) {
|
|
16325
|
+
return e instanceof Jw ? e : new Jw("upload_failed");
|
|
16284
16326
|
}
|
|
16285
|
-
function
|
|
16286
|
-
return
|
|
16327
|
+
function uT(e) {
|
|
16328
|
+
return cT[e.kind](e.usage);
|
|
16287
16329
|
}
|
|
16288
|
-
function
|
|
16330
|
+
function dT(e) {
|
|
16289
16331
|
return e.kind === "no_active_household" ? "No household is active, so your photos can't be listed right now." : "Your photos couldn't be listed. The dashboard may have lost the server.";
|
|
16290
16332
|
}
|
|
16291
16333
|
//#endregion
|
|
16292
16334
|
//#region src/solid/media-tile.tsx
|
|
16293
|
-
var
|
|
16294
|
-
function
|
|
16335
|
+
var fT = /*#__PURE__*/ K("<img data-slot=media-tile-image loading=lazy decoding=async class=\"absolute inset-0 h-full w-full object-cover\">", !0, !1, !1), pT = /*#__PURE__*/ K("<div data-slot=media-tile><button type=button data-slot=media-tile-select data-testid=media-tile>"), mT = /*#__PURE__*/ K("<span data-slot=media-tile-broken data-testid=media-tile-broken class=\"text-muted-foreground absolute inset-0 flex items-center justify-center\">");
|
|
16336
|
+
function hT(e) {
|
|
16295
16337
|
return (() => {
|
|
16296
|
-
var t =
|
|
16338
|
+
var t = pT(), n = t.firstChild;
|
|
16297
16339
|
return n.$$click = () => e.onSelect(), V(n, z(k, {
|
|
16298
16340
|
get when() {
|
|
16299
16341
|
return !e.broken;
|
|
16300
16342
|
},
|
|
16301
16343
|
get fallback() {
|
|
16302
16344
|
return (() => {
|
|
16303
|
-
var e =
|
|
16345
|
+
var e = mT();
|
|
16304
16346
|
return V(e, z($, {
|
|
16305
16347
|
icon: "lucide:image-off",
|
|
16306
16348
|
width: 20,
|
|
@@ -16309,7 +16351,7 @@ function fT(e) {
|
|
|
16309
16351
|
})();
|
|
16310
16352
|
},
|
|
16311
16353
|
get children() {
|
|
16312
|
-
var t =
|
|
16354
|
+
var t = fT();
|
|
16313
16355
|
return t.addEventListener("error", () => e.onBroken()), B((n) => {
|
|
16314
16356
|
var r = e.thumbUrl, i = `Stored ${e.item.id}`, a = e.item.width, o = e.item.height;
|
|
16315
16357
|
return r !== n.e && W(t, "src", n.e = r), i !== n.t && W(t, "alt", n.t = i), a !== n.a && W(t, "width", n.a = a), o !== n.o && W(t, "height", n.o = o), n;
|
|
@@ -16373,33 +16415,33 @@ function fT(e) {
|
|
|
16373
16415
|
Nt(["click"]);
|
|
16374
16416
|
//#endregion
|
|
16375
16417
|
//#region src/solid/pagination.tsx
|
|
16376
|
-
var
|
|
16418
|
+
var gT = /*#__PURE__*/ K("<nav aria-label=pagination data-slot=pagination>"), _T = /*#__PURE__*/ K("<ul data-slot=pagination-content>"), vT = /*#__PURE__*/ K("<li data-slot=pagination-item>"), yT = /*#__PURE__*/ K("<a data-slot=pagination-link>"), bT = /*#__PURE__*/ K("<span class=\"hidden sm:block\">Previous"), xT = /*#__PURE__*/ K("<span class=\"hidden sm:block\">Next"), ST = /*#__PURE__*/ K("<span aria-hidden data-slot=pagination-ellipsis><span class=sr-only>More pages"), CT = (e) => {
|
|
16377
16419
|
let [t, n] = I(e, ["class"]);
|
|
16378
16420
|
return (() => {
|
|
16379
|
-
var e =
|
|
16421
|
+
var e = gT();
|
|
16380
16422
|
return G(e, U({ get class() {
|
|
16381
16423
|
return O("mx-auto flex w-full justify-center", t.class);
|
|
16382
16424
|
} }, n), !1, !1), e;
|
|
16383
16425
|
})();
|
|
16384
|
-
},
|
|
16426
|
+
}, wT = (e) => {
|
|
16385
16427
|
let [t, n] = I(e, ["class"]);
|
|
16386
16428
|
return (() => {
|
|
16387
|
-
var e =
|
|
16429
|
+
var e = _T();
|
|
16388
16430
|
return G(e, U({ get class() {
|
|
16389
16431
|
return O("flex flex-row items-center gap-1", t.class);
|
|
16390
16432
|
} }, n), !1, !1), e;
|
|
16391
16433
|
})();
|
|
16392
|
-
},
|
|
16393
|
-
var t =
|
|
16434
|
+
}, TT = (e) => (() => {
|
|
16435
|
+
var t = vT();
|
|
16394
16436
|
return G(t, e, !1, !1), t;
|
|
16395
|
-
})(),
|
|
16437
|
+
})(), ET = (e) => {
|
|
16396
16438
|
let [t, n] = I(e, [
|
|
16397
16439
|
"class",
|
|
16398
16440
|
"isActive",
|
|
16399
16441
|
"size"
|
|
16400
16442
|
]), r = () => t.size ?? "icon";
|
|
16401
16443
|
return (() => {
|
|
16402
|
-
var e =
|
|
16444
|
+
var e = yT();
|
|
16403
16445
|
return G(e, U({
|
|
16404
16446
|
get "aria-current"() {
|
|
16405
16447
|
return t.isActive ? "page" : void 0;
|
|
@@ -16415,9 +16457,9 @@ var pT = /*#__PURE__*/ K("<nav aria-label=pagination data-slot=pagination>"), mT
|
|
|
16415
16457
|
}
|
|
16416
16458
|
}, n), !1, !1), e;
|
|
16417
16459
|
})();
|
|
16418
|
-
},
|
|
16460
|
+
}, DT = (e) => {
|
|
16419
16461
|
let [t, n] = I(e, ["class"]);
|
|
16420
|
-
return z(
|
|
16462
|
+
return z(ET, U({
|
|
16421
16463
|
"aria-label": "Go to previous page",
|
|
16422
16464
|
size: "default",
|
|
16423
16465
|
get class() {
|
|
@@ -16428,27 +16470,27 @@ var pT = /*#__PURE__*/ K("<nav aria-label=pagination data-slot=pagination>"), mT
|
|
|
16428
16470
|
icon: "lucide:chevron-left",
|
|
16429
16471
|
width: 16,
|
|
16430
16472
|
height: 16
|
|
16431
|
-
}),
|
|
16473
|
+
}), bT()];
|
|
16432
16474
|
} }));
|
|
16433
|
-
},
|
|
16475
|
+
}, OT = (e) => {
|
|
16434
16476
|
let [t, n] = I(e, ["class"]);
|
|
16435
|
-
return z(
|
|
16477
|
+
return z(ET, U({
|
|
16436
16478
|
"aria-label": "Go to next page",
|
|
16437
16479
|
size: "default",
|
|
16438
16480
|
get class() {
|
|
16439
16481
|
return O("gap-1 px-2.5 sm:pr-2.5", t.class);
|
|
16440
16482
|
}
|
|
16441
16483
|
}, n, { get children() {
|
|
16442
|
-
return [
|
|
16484
|
+
return [xT(), z($, {
|
|
16443
16485
|
icon: "lucide:chevron-right",
|
|
16444
16486
|
width: 16,
|
|
16445
16487
|
height: 16
|
|
16446
16488
|
})];
|
|
16447
16489
|
} }));
|
|
16448
|
-
},
|
|
16490
|
+
}, kT = (e) => {
|
|
16449
16491
|
let [t, n] = I(e, ["class"]);
|
|
16450
16492
|
return (() => {
|
|
16451
|
-
var e =
|
|
16493
|
+
var e = ST(), r = e.firstChild;
|
|
16452
16494
|
return G(e, U({ get class() {
|
|
16453
16495
|
return O("flex size-9 items-center justify-center", t.class);
|
|
16454
16496
|
} }, n), !1, !0), V(e, z($, {
|
|
@@ -16458,26 +16500,26 @@ var pT = /*#__PURE__*/ K("<nav aria-label=pagination data-slot=pagination>"), mT
|
|
|
16458
16500
|
class: "size-4"
|
|
16459
16501
|
}), r), e;
|
|
16460
16502
|
})();
|
|
16461
|
-
},
|
|
16503
|
+
}, AT = /*#__PURE__*/ K("<div data-slot=section-card-actions class=\"flex shrink-0 items-center gap-2\">"), jT = /*#__PURE__*/ K("<header data-slot=section-card-header><div data-slot=section-card-headings class=\"flex min-w-0 flex-1 flex-col gap-0.5\"><div data-slot=section-card-headline class=\"flex min-w-0 items-center gap-2 sm:gap-3\">"), MT = /*#__PURE__*/ K("<div data-slot=section-card-toolbar>"), NT = /*#__PURE__*/ K("<div data-slot=section-card-body>"), PT = /*#__PURE__*/ K("<section data-slot=section-card>"), FT = /*#__PURE__*/ K("<div data-slot=section-row>"), IT = /*#__PURE__*/ K("<div data-slot=fact-row><span class=\"text-muted-foreground shrink-0 text-xs\"></span><span class=\"min-w-0 text-right text-sm\">"), LT = /*#__PURE__*/ K("<button type=button class=\"absolute inset-0 rounded-[inherit] outline-none\">"), RT = /*#__PURE__*/ K("<span class=\"flex shrink-0 items-center gap-2\">"), zT = /*#__PURE__*/ K("<p class=\"text-muted-foreground mt-1 truncate text-xs\">"), BT = /*#__PURE__*/ K("<div class=\"min-w-[9rem] flex-1\"><div class=\"flex min-w-0 items-center gap-2\"><p class=\"truncate text-sm leading-tight font-semibold\">"), VT = /*#__PURE__*/ K("<div class=\"text-muted-foreground shrink-0 text-xs\">"), HT = /*#__PURE__*/ K("<div class=\"relative flex shrink-0 items-center gap-1\">"), UT = /*#__PURE__*/ K("<a class=\"absolute inset-0 rounded-[inherit] outline-none\"><span class=sr-only>"), WT = /*#__PURE__*/ K("<span data-slot=section-icon>"), GT = /*#__PURE__*/ K("<h2 data-slot=section-title>"), KT = /*#__PURE__*/ K("<h3 data-slot=section-subtitle>"), qT = /*#__PURE__*/ K("<section data-slot=section-group><header data-slot=section-group-header class=\"mb-2 flex flex-wrap items-center justify-between gap-2\"><div data-slot=section-group-heading class=\"flex min-w-0 items-center gap-2\">"), JT = /*#__PURE__*/ K("<p data-slot=section-meta>"), YT = /*#__PURE__*/ K("<div data-slot=section-row-skeleton aria-hidden=true>"), XT = /*#__PURE__*/ K("<div data-slot=section-row-skeletons class=\"flex flex-col gap-2\"aria-busy=true>"), ZT = {
|
|
16462
16504
|
ref: () => {},
|
|
16463
16505
|
style: () => ({}),
|
|
16464
16506
|
active: () => !1
|
|
16465
16507
|
};
|
|
16466
|
-
function
|
|
16467
|
-
let t = () => e.glass ??
|
|
16508
|
+
function QT(e) {
|
|
16509
|
+
let t = () => e.glass ?? ZT, n = () => t().active?.() ?? !1, r = () => e.icon != null || e.title != null || e.action != null || e.count != null, i = yt(() => e.children), o = () => i.toArray().some((e) => e != null && e !== !1);
|
|
16468
16510
|
return (() => {
|
|
16469
|
-
var s =
|
|
16511
|
+
var s = PT(), c = t().ref;
|
|
16470
16512
|
return typeof c == "function" ? Rt(c, s) : t().ref = s, V(s, z(k, {
|
|
16471
16513
|
get when() {
|
|
16472
16514
|
return r();
|
|
16473
16515
|
},
|
|
16474
16516
|
get children() {
|
|
16475
|
-
var t =
|
|
16517
|
+
var t = jT(), n = t.firstChild, r = n.firstChild;
|
|
16476
16518
|
return V(t, z(k, {
|
|
16477
16519
|
get when() {
|
|
16478
16520
|
return e.icon;
|
|
16479
16521
|
},
|
|
16480
|
-
children: (e) => z(
|
|
16522
|
+
children: (e) => z(iE, {
|
|
16481
16523
|
get icon() {
|
|
16482
16524
|
return e();
|
|
16483
16525
|
},
|
|
@@ -16488,7 +16530,7 @@ function YT(e) {
|
|
|
16488
16530
|
return e.title;
|
|
16489
16531
|
},
|
|
16490
16532
|
get children() {
|
|
16491
|
-
return z(
|
|
16533
|
+
return z(aE, { get children() {
|
|
16492
16534
|
return e.title;
|
|
16493
16535
|
} });
|
|
16494
16536
|
}
|
|
@@ -16506,7 +16548,7 @@ function YT(e) {
|
|
|
16506
16548
|
return e.subtitle;
|
|
16507
16549
|
},
|
|
16508
16550
|
get children() {
|
|
16509
|
-
return z(
|
|
16551
|
+
return z(uE, {
|
|
16510
16552
|
get class() {
|
|
16511
16553
|
return e.subtitleClass;
|
|
16512
16554
|
},
|
|
@@ -16520,7 +16562,7 @@ function YT(e) {
|
|
|
16520
16562
|
return e.action;
|
|
16521
16563
|
},
|
|
16522
16564
|
get children() {
|
|
16523
|
-
var t =
|
|
16565
|
+
var t = AT();
|
|
16524
16566
|
return V(t, () => e.action), t;
|
|
16525
16567
|
}
|
|
16526
16568
|
}), null), B(() => R(t, O("flex items-center gap-2 sm:gap-3", e.headerClass))), t;
|
|
@@ -16530,7 +16572,7 @@ function YT(e) {
|
|
|
16530
16572
|
return e.toolbar;
|
|
16531
16573
|
},
|
|
16532
16574
|
get children() {
|
|
16533
|
-
var t =
|
|
16575
|
+
var t = MT();
|
|
16534
16576
|
return V(t, () => e.toolbar), B(() => R(t, O(r() && "border-border/50 border-t pt-3"))), t;
|
|
16535
16577
|
}
|
|
16536
16578
|
}), null), V(s, z(k, {
|
|
@@ -16538,7 +16580,7 @@ function YT(e) {
|
|
|
16538
16580
|
return o();
|
|
16539
16581
|
},
|
|
16540
16582
|
get children() {
|
|
16541
|
-
var e =
|
|
16583
|
+
var e = NT();
|
|
16542
16584
|
return V(e, i), e;
|
|
16543
16585
|
}
|
|
16544
16586
|
}), null), B((r) => {
|
|
@@ -16551,24 +16593,24 @@ function YT(e) {
|
|
|
16551
16593
|
}), s;
|
|
16552
16594
|
})();
|
|
16553
16595
|
}
|
|
16554
|
-
function
|
|
16596
|
+
function $T(e) {
|
|
16555
16597
|
let [t, n] = I(e, ["class", "interactive"]);
|
|
16556
16598
|
return (() => {
|
|
16557
|
-
var e =
|
|
16599
|
+
var e = FT();
|
|
16558
16600
|
return G(e, U({ get class() {
|
|
16559
16601
|
return O(s, tt, "p-3", t.interactive && l, t.class);
|
|
16560
16602
|
} }, n), !1, !1), e;
|
|
16561
16603
|
})();
|
|
16562
16604
|
}
|
|
16563
|
-
function
|
|
16605
|
+
function eE(e) {
|
|
16564
16606
|
return (() => {
|
|
16565
|
-
var t =
|
|
16607
|
+
var t = IT(), n = t.firstChild, r = n.nextSibling;
|
|
16566
16608
|
return V(n, () => e.label), V(r, () => e.children), B(() => R(t, O("flex items-baseline justify-between gap-3 py-1.5", e.class))), t;
|
|
16567
16609
|
})();
|
|
16568
16610
|
}
|
|
16569
|
-
function
|
|
16611
|
+
function tE(e) {
|
|
16570
16612
|
let t = () => e.onOpen !== void 0 || e.href !== void 0;
|
|
16571
|
-
return z(
|
|
16613
|
+
return z($T, {
|
|
16572
16614
|
get interactive() {
|
|
16573
16615
|
return t();
|
|
16574
16616
|
},
|
|
@@ -16582,7 +16624,7 @@ function QT(e) {
|
|
|
16582
16624
|
return e.href;
|
|
16583
16625
|
},
|
|
16584
16626
|
children: (t) => (() => {
|
|
16585
|
-
var n =
|
|
16627
|
+
var n = UT(), r = n.firstChild;
|
|
16586
16628
|
return V(r, () => e.openLabel), B(() => W(n, "href", t())), n;
|
|
16587
16629
|
})()
|
|
16588
16630
|
}),
|
|
@@ -16591,7 +16633,7 @@ function QT(e) {
|
|
|
16591
16633
|
return H(() => e.href === void 0)() && e.onOpen;
|
|
16592
16634
|
},
|
|
16593
16635
|
get children() {
|
|
16594
|
-
var t =
|
|
16636
|
+
var t = LT();
|
|
16595
16637
|
return t.$$click = () => e.onOpen?.(), B(() => W(t, "aria-label", e.openLabel)), t;
|
|
16596
16638
|
}
|
|
16597
16639
|
}),
|
|
@@ -16600,18 +16642,18 @@ function QT(e) {
|
|
|
16600
16642
|
return e.leading;
|
|
16601
16643
|
},
|
|
16602
16644
|
get children() {
|
|
16603
|
-
var t =
|
|
16645
|
+
var t = RT();
|
|
16604
16646
|
return V(t, () => e.leading), t;
|
|
16605
16647
|
}
|
|
16606
16648
|
}),
|
|
16607
16649
|
(() => {
|
|
16608
|
-
var t =
|
|
16650
|
+
var t = BT(), n = t.firstChild, r = n.firstChild;
|
|
16609
16651
|
return V(r, () => e.title), V(n, () => e.badges, null), V(t, z(k, {
|
|
16610
16652
|
get when() {
|
|
16611
16653
|
return e.subtitle;
|
|
16612
16654
|
},
|
|
16613
16655
|
get children() {
|
|
16614
|
-
var t =
|
|
16656
|
+
var t = zT();
|
|
16615
16657
|
return V(t, () => e.subtitle), t;
|
|
16616
16658
|
}
|
|
16617
16659
|
}), null), t;
|
|
@@ -16621,7 +16663,7 @@ function QT(e) {
|
|
|
16621
16663
|
return e.meta;
|
|
16622
16664
|
},
|
|
16623
16665
|
get children() {
|
|
16624
|
-
var t =
|
|
16666
|
+
var t = VT();
|
|
16625
16667
|
return V(t, () => e.meta), t;
|
|
16626
16668
|
}
|
|
16627
16669
|
}),
|
|
@@ -16630,7 +16672,7 @@ function QT(e) {
|
|
|
16630
16672
|
return e.actions;
|
|
16631
16673
|
},
|
|
16632
16674
|
get children() {
|
|
16633
|
-
var t =
|
|
16675
|
+
var t = HT();
|
|
16634
16676
|
return V(t, () => e.actions), t;
|
|
16635
16677
|
}
|
|
16636
16678
|
}),
|
|
@@ -16652,21 +16694,21 @@ function QT(e) {
|
|
|
16652
16694
|
}
|
|
16653
16695
|
});
|
|
16654
16696
|
}
|
|
16655
|
-
var
|
|
16697
|
+
var nE = {
|
|
16656
16698
|
sm: "size-7 [&>[data-slot=icon]]:text-[16px]",
|
|
16657
16699
|
md: "size-10 sm:size-11 [&>[data-slot=icon]]:text-[20px] sm:[&>[data-slot=icon]]:text-[22px]",
|
|
16658
16700
|
lg: "size-12 sm:size-14 [&>[data-slot=icon]]:text-[24px] sm:[&>[data-slot=icon]]:text-[28px]"
|
|
16659
|
-
},
|
|
16701
|
+
}, rE = {
|
|
16660
16702
|
neutral: void 0,
|
|
16661
16703
|
primary: "var(--primary)"
|
|
16662
16704
|
};
|
|
16663
|
-
function
|
|
16705
|
+
function iE(e) {
|
|
16664
16706
|
let t = () => {
|
|
16665
16707
|
let t = e.tone;
|
|
16666
|
-
if (t != null) return t in
|
|
16708
|
+
if (t != null) return t in rE ? rE[t] : t;
|
|
16667
16709
|
};
|
|
16668
16710
|
return (() => {
|
|
16669
|
-
var n =
|
|
16711
|
+
var n = WT();
|
|
16670
16712
|
return V(n, z(k, {
|
|
16671
16713
|
get when() {
|
|
16672
16714
|
return e.children;
|
|
@@ -16680,7 +16722,7 @@ function tE(e) {
|
|
|
16680
16722
|
return e.children;
|
|
16681
16723
|
}
|
|
16682
16724
|
})), B((r) => {
|
|
16683
|
-
var i = O(t() ? Oe : `${Ae} text-foreground/80`, tt,
|
|
16725
|
+
var i = O(t() ? Oe : `${Ae} text-foreground/80`, tt, nE[e.size ?? "md"], e.class), a = t() ? { "--glass-tone": t() } : void 0;
|
|
16684
16726
|
return i !== r.e && R(n, r.e = i), r.t = Lt(n, a, r.t), r;
|
|
16685
16727
|
}, {
|
|
16686
16728
|
e: void 0,
|
|
@@ -16688,20 +16730,20 @@ function tE(e) {
|
|
|
16688
16730
|
}), n;
|
|
16689
16731
|
})();
|
|
16690
16732
|
}
|
|
16691
|
-
function
|
|
16733
|
+
function aE(e) {
|
|
16692
16734
|
return (() => {
|
|
16693
|
-
var t =
|
|
16735
|
+
var t = GT();
|
|
16694
16736
|
return V(t, () => e.children), B(() => R(t, O("text-foreground truncate text-lg font-bold tracking-tight sm:text-xl", e.class))), t;
|
|
16695
16737
|
})();
|
|
16696
16738
|
}
|
|
16697
|
-
function
|
|
16739
|
+
function oE(e) {
|
|
16698
16740
|
return (() => {
|
|
16699
|
-
var t =
|
|
16741
|
+
var t = KT();
|
|
16700
16742
|
return V(t, () => e.children), B(() => R(t, O("text-base leading-tight font-semibold", e.class))), t;
|
|
16701
16743
|
})();
|
|
16702
16744
|
}
|
|
16703
|
-
function
|
|
16704
|
-
return z(
|
|
16745
|
+
function sE(e) {
|
|
16746
|
+
return z(oE, {
|
|
16705
16747
|
get class() {
|
|
16706
16748
|
return e.class;
|
|
16707
16749
|
},
|
|
@@ -16710,16 +16752,16 @@ function iE(e) {
|
|
|
16710
16752
|
}
|
|
16711
16753
|
});
|
|
16712
16754
|
}
|
|
16713
|
-
function
|
|
16755
|
+
function cE(e) {
|
|
16714
16756
|
return (() => {
|
|
16715
|
-
var t =
|
|
16716
|
-
return V(r, z(
|
|
16757
|
+
var t = qT(), n = t.firstChild, r = n.firstChild;
|
|
16758
|
+
return V(r, z(iE, {
|
|
16717
16759
|
get icon() {
|
|
16718
16760
|
return e.icon;
|
|
16719
16761
|
},
|
|
16720
16762
|
size: "sm",
|
|
16721
16763
|
tone: "var(--primary)"
|
|
16722
|
-
}), null), V(r, z(
|
|
16764
|
+
}), null), V(r, z(oE, { get children() {
|
|
16723
16765
|
return e.label;
|
|
16724
16766
|
} }), null), V(r, z(k, {
|
|
16725
16767
|
get when() {
|
|
@@ -16733,8 +16775,8 @@ function aE(e) {
|
|
|
16733
16775
|
}), null), V(n, () => e.action, null), V(t, () => e.children, null), B(() => R(t, O("mt-7 first:mt-3", e.class))), t;
|
|
16734
16776
|
})();
|
|
16735
16777
|
}
|
|
16736
|
-
function
|
|
16737
|
-
return z(
|
|
16778
|
+
function lE(e) {
|
|
16779
|
+
return z(uE, {
|
|
16738
16780
|
get class() {
|
|
16739
16781
|
return O("font-medium", e.class);
|
|
16740
16782
|
},
|
|
@@ -16743,38 +16785,38 @@ function oE(e) {
|
|
|
16743
16785
|
}
|
|
16744
16786
|
});
|
|
16745
16787
|
}
|
|
16746
|
-
function
|
|
16788
|
+
function uE(e) {
|
|
16747
16789
|
return (() => {
|
|
16748
|
-
var t =
|
|
16790
|
+
var t = JT();
|
|
16749
16791
|
return V(t, () => e.children), B(() => R(t, O("text-muted-foreground text-xs", e.class))), t;
|
|
16750
16792
|
})();
|
|
16751
16793
|
}
|
|
16752
|
-
function
|
|
16794
|
+
function dE(e) {
|
|
16753
16795
|
return (() => {
|
|
16754
|
-
var t =
|
|
16796
|
+
var t = YT();
|
|
16755
16797
|
return B(() => R(t, O(s, tt, "h-14 animate-pulse [--glass-rim:0.15]", e.class))), t;
|
|
16756
16798
|
})();
|
|
16757
16799
|
}
|
|
16758
|
-
function
|
|
16800
|
+
function fE(e) {
|
|
16759
16801
|
let t = e.count ?? 3;
|
|
16760
16802
|
return (() => {
|
|
16761
|
-
var e =
|
|
16762
|
-
return V(e, () => Array.from({ length: t }, () => z(
|
|
16803
|
+
var e = XT();
|
|
16804
|
+
return V(e, () => Array.from({ length: t }, () => z(dE, {}))), e;
|
|
16763
16805
|
})();
|
|
16764
16806
|
}
|
|
16765
16807
|
Nt(["click"]);
|
|
16766
16808
|
//#endregion
|
|
16767
16809
|
//#region src/solid/image-picker.tsx
|
|
16768
|
-
var
|
|
16769
|
-
function
|
|
16770
|
-
let t =
|
|
16810
|
+
var pE = /*#__PURE__*/ K("<div data-slot=image-picker>"), mE = /*#__PURE__*/ K("<div data-slot=image-picker-preset class=\"relative min-w-0\"><button type=button><img loading=lazy decoding=async class=\"absolute inset-0 h-full w-full object-cover\">", !0, !1, !1), hE = /*#__PURE__*/ K("<img alt width=24 height=24 decoding=async class=\"size-6 shrink-0 rounded-sm object-cover\">"), gE = /*#__PURE__*/ K("<span class=\"flex-1 truncate text-left\">"), _E = /*#__PURE__*/ K("<div data-slot=image-picker-gallery>"), vE = /*#__PURE__*/ K("<input type=file accept=image/* data-testid=image-upload-input class=hidden>"), yE = /*#__PURE__*/ K("<div data-slot=image-picker-body class=\"flex flex-col gap-3 p-3\">"), bE = /*#__PURE__*/ K("<span class=\"text-muted-foreground flex-1 truncate text-left\">"), xE = /*#__PURE__*/ K("<div data-slot=image-picker-loading class=\"grid grid-cols-3 gap-2\">");
|
|
16811
|
+
function SE(e) {
|
|
16812
|
+
let t = Qw();
|
|
16771
16813
|
return z(k, {
|
|
16772
16814
|
get when() {
|
|
16773
16815
|
return t || e.presets;
|
|
16774
16816
|
},
|
|
16775
16817
|
get fallback() {
|
|
16776
16818
|
return (() => {
|
|
16777
|
-
var t =
|
|
16819
|
+
var t = pE();
|
|
16778
16820
|
return V(t, z(Ja, {
|
|
16779
16821
|
tone: "info",
|
|
16780
16822
|
children: "This dashboard cannot store images."
|
|
@@ -16782,13 +16824,13 @@ function yE(e) {
|
|
|
16782
16824
|
})();
|
|
16783
16825
|
},
|
|
16784
16826
|
get children() {
|
|
16785
|
-
return z(
|
|
16827
|
+
return z(wE, U(e, { store: t }));
|
|
16786
16828
|
}
|
|
16787
16829
|
});
|
|
16788
16830
|
}
|
|
16789
|
-
function
|
|
16831
|
+
function CE(e) {
|
|
16790
16832
|
return (() => {
|
|
16791
|
-
var t =
|
|
16833
|
+
var t = mE(), n = t.firstChild, r = n.firstChild;
|
|
16792
16834
|
return n.$$click = () => e.onSelect(), V(t, z(Zd, {
|
|
16793
16835
|
tone: "var(--muted-foreground)",
|
|
16794
16836
|
class: "pointer-events-none absolute bottom-1 left-1 backdrop-blur-md",
|
|
@@ -16805,8 +16847,8 @@ function bE(e) {
|
|
|
16805
16847
|
}), t;
|
|
16806
16848
|
})();
|
|
16807
16849
|
}
|
|
16808
|
-
function
|
|
16809
|
-
let t = e.store, [n, r] = N(!1), [i, a] = N(!1), [o, s] = N(), [c, l] = N(), [u, d] = N(!1), [f, p] = N(!1), [m, h] = N(0), g = (e) => t?.url(e, "thumb") ?? "", _ =
|
|
16850
|
+
function wE(e) {
|
|
16851
|
+
let t = e.store, [n, r] = N(!1), [i, a] = N(!1), [o, s] = N(), [c, l] = N(), [u, d] = N(!1), [f, p] = N(!1), [m, h] = N(0), g = (e) => t?.url(e, "thumb") ?? "", _ = nT(g), v, [y, { refetch: b }] = Ct(() => i() && t !== void 0, () => t ? t.index() : Promise.reject(/* @__PURE__ */ Error("no media store"))), x = M(() => y.error === void 0 ? void 0 : lT(y.error)), S = () => y.error === void 0 ? y() : void 0, C = M(() => tT(S()?.media ?? [])), w = M(() => [...Object.entries(e.presets ?? {}).map(([e, t]) => ({
|
|
16810
16852
|
kind: "preset",
|
|
16811
16853
|
key: e,
|
|
16812
16854
|
preset: t
|
|
@@ -16817,7 +16859,7 @@ function xE(e) {
|
|
|
16817
16859
|
let e = c()?.usedBy ?? 0;
|
|
16818
16860
|
return e === 0 ? "This image isn't used by any widget." : `This image is used in ${e} widget${e === 1 ? "" : "s"}. Deleting it will leave those widgets without an image.`;
|
|
16819
16861
|
}), te = () => {
|
|
16820
|
-
let t =
|
|
16862
|
+
let t = aT(e.value);
|
|
16821
16863
|
return t === void 0 ? void 0 : e.presets?.[t];
|
|
16822
16864
|
}, ne = (t) => {
|
|
16823
16865
|
e.onChange(e.value === t ? "" : t), d(!1), r(!1);
|
|
@@ -16829,7 +16871,7 @@ function xE(e) {
|
|
|
16829
16871
|
j(() => {
|
|
16830
16872
|
n() && (s(void 0), h(0));
|
|
16831
16873
|
});
|
|
16832
|
-
let ae = (e) => h(Math.min(Math.max(E() + e, 0), T() - 1)), oe = (e) => s(
|
|
16874
|
+
let ae = (e) => h(Math.min(Math.max(E() + e, 0), T() - 1)), oe = (e) => s(lT(e)), se = async (n) => {
|
|
16833
16875
|
s(void 0), p(!0);
|
|
16834
16876
|
try {
|
|
16835
16877
|
if (!t) return;
|
|
@@ -16854,7 +16896,7 @@ function xE(e) {
|
|
|
16854
16896
|
}
|
|
16855
16897
|
};
|
|
16856
16898
|
return (() => {
|
|
16857
|
-
var i =
|
|
16899
|
+
var i = pE();
|
|
16858
16900
|
return V(i, z(gd, {
|
|
16859
16901
|
surface: "field",
|
|
16860
16902
|
get open() {
|
|
@@ -16893,16 +16935,16 @@ function xE(e) {
|
|
|
16893
16935
|
height: 18,
|
|
16894
16936
|
class: "text-muted-foreground shrink-0"
|
|
16895
16937
|
}), (() => {
|
|
16896
|
-
var e =
|
|
16938
|
+
var e = bE();
|
|
16897
16939
|
return V(e, () => u() ? "Image unavailable" : "Choose image"), e;
|
|
16898
16940
|
})()];
|
|
16899
16941
|
},
|
|
16900
16942
|
get children() {
|
|
16901
16943
|
return [(() => {
|
|
16902
|
-
var n =
|
|
16944
|
+
var n = hE();
|
|
16903
16945
|
return n.addEventListener("error", () => d(!0)), B(() => W(n, "src", te()?.thumb ?? t?.url(e.value))), n;
|
|
16904
16946
|
})(), (() => {
|
|
16905
|
-
var e =
|
|
16947
|
+
var e = gE();
|
|
16906
16948
|
return V(e, () => te()?.label ?? "Image selected"), e;
|
|
16907
16949
|
})()];
|
|
16908
16950
|
}
|
|
@@ -16914,7 +16956,7 @@ function xE(e) {
|
|
|
16914
16956
|
class: "min-w-72",
|
|
16915
16957
|
onInteractOutside: () => r(!1),
|
|
16916
16958
|
get children() {
|
|
16917
|
-
var n =
|
|
16959
|
+
var n = yE();
|
|
16918
16960
|
return V(n, z(k, {
|
|
16919
16961
|
get when() {
|
|
16920
16962
|
return o();
|
|
@@ -16923,7 +16965,7 @@ function xE(e) {
|
|
|
16923
16965
|
tone: "destructive",
|
|
16924
16966
|
role: "alert",
|
|
16925
16967
|
get children() {
|
|
16926
|
-
return
|
|
16968
|
+
return uT(e());
|
|
16927
16969
|
}
|
|
16928
16970
|
})
|
|
16929
16971
|
}), null), V(n, z(k, {
|
|
@@ -16947,7 +16989,7 @@ function xE(e) {
|
|
|
16947
16989
|
}),
|
|
16948
16990
|
z(ab, { children: "Images unavailable" }),
|
|
16949
16991
|
z(ob, { get children() {
|
|
16950
|
-
return
|
|
16992
|
+
return dT(e());
|
|
16951
16993
|
} })
|
|
16952
16994
|
];
|
|
16953
16995
|
} }), z(sb, { get children() {
|
|
@@ -16973,7 +17015,7 @@ function xE(e) {
|
|
|
16973
17015
|
return H(() => !!(t && !S()))() && !x();
|
|
16974
17016
|
},
|
|
16975
17017
|
get children() {
|
|
16976
|
-
var e =
|
|
17018
|
+
var e = xE();
|
|
16977
17019
|
return V(e, z(mt, {
|
|
16978
17020
|
each: [
|
|
16979
17021
|
0,
|
|
@@ -17015,20 +17057,20 @@ function xE(e) {
|
|
|
17015
17057
|
},
|
|
17016
17058
|
get children() {
|
|
17017
17059
|
return [(() => {
|
|
17018
|
-
var t =
|
|
17060
|
+
var t = _E();
|
|
17019
17061
|
return V(t, z(mt, {
|
|
17020
17062
|
get each() {
|
|
17021
17063
|
return ee();
|
|
17022
17064
|
},
|
|
17023
|
-
children: (t) => t.kind === "preset" ? z(
|
|
17065
|
+
children: (t) => t.kind === "preset" ? z(CE, {
|
|
17024
17066
|
get preset() {
|
|
17025
17067
|
return t.preset;
|
|
17026
17068
|
},
|
|
17027
17069
|
get selected() {
|
|
17028
|
-
return e.value ===
|
|
17070
|
+
return e.value === iT(t.key);
|
|
17029
17071
|
},
|
|
17030
|
-
onSelect: () => ne(
|
|
17031
|
-
}) : z(
|
|
17072
|
+
onSelect: () => ne(iT(t.key))
|
|
17073
|
+
}) : z(hT, {
|
|
17032
17074
|
get item() {
|
|
17033
17075
|
return t.image;
|
|
17034
17076
|
},
|
|
@@ -17055,13 +17097,13 @@ function xE(e) {
|
|
|
17055
17097
|
return T() > 1;
|
|
17056
17098
|
},
|
|
17057
17099
|
get children() {
|
|
17058
|
-
return z(
|
|
17059
|
-
return z(
|
|
17100
|
+
return z(CT, { get children() {
|
|
17101
|
+
return z(wT, {
|
|
17060
17102
|
class: "w-full justify-between",
|
|
17061
17103
|
get children() {
|
|
17062
17104
|
return [
|
|
17063
|
-
z(
|
|
17064
|
-
return z(
|
|
17105
|
+
z(TT, { get children() {
|
|
17106
|
+
return z(DT, {
|
|
17065
17107
|
href: "#",
|
|
17066
17108
|
get "aria-disabled"() {
|
|
17067
17109
|
return E() === 0;
|
|
@@ -17074,10 +17116,10 @@ function xE(e) {
|
|
|
17074
17116
|
}
|
|
17075
17117
|
});
|
|
17076
17118
|
} }),
|
|
17077
|
-
z(
|
|
17119
|
+
z(TT, {
|
|
17078
17120
|
"data-testid": "image-picker-page-label",
|
|
17079
17121
|
get children() {
|
|
17080
|
-
return z(
|
|
17122
|
+
return z(uE, { get children() {
|
|
17081
17123
|
return [
|
|
17082
17124
|
"Page ",
|
|
17083
17125
|
H(() => E() + 1),
|
|
@@ -17087,8 +17129,8 @@ function xE(e) {
|
|
|
17087
17129
|
} });
|
|
17088
17130
|
}
|
|
17089
17131
|
}),
|
|
17090
|
-
z(
|
|
17091
|
-
return z(
|
|
17132
|
+
z(TT, { get children() {
|
|
17133
|
+
return z(OT, {
|
|
17092
17134
|
href: "#",
|
|
17093
17135
|
get "aria-disabled"() {
|
|
17094
17136
|
return E() === T() - 1;
|
|
@@ -17112,7 +17154,7 @@ function xE(e) {
|
|
|
17112
17154
|
get when() {
|
|
17113
17155
|
return S()?.usage;
|
|
17114
17156
|
},
|
|
17115
|
-
children: (e) => z(
|
|
17157
|
+
children: (e) => z(uE, { get children() {
|
|
17116
17158
|
return [
|
|
17117
17159
|
H(() => Ah(e().bytes)),
|
|
17118
17160
|
" of ",
|
|
@@ -17129,7 +17171,7 @@ function xE(e) {
|
|
|
17129
17171
|
when: t,
|
|
17130
17172
|
get children() {
|
|
17131
17173
|
return [(() => {
|
|
17132
|
-
var e =
|
|
17174
|
+
var e = vE();
|
|
17133
17175
|
e.addEventListener("change", (e) => {
|
|
17134
17176
|
let t = e.currentTarget.files?.[0];
|
|
17135
17177
|
e.currentTarget.value = "", t && se(t);
|
|
@@ -17190,15 +17232,15 @@ function xE(e) {
|
|
|
17190
17232
|
Nt(["click"]);
|
|
17191
17233
|
//#endregion
|
|
17192
17234
|
//#region src/solid/input-group.tsx
|
|
17193
|
-
var
|
|
17235
|
+
var TE = /*#__PURE__*/ K("<div data-slot=input-group role=group>"), EE = /*#__PURE__*/ K("<div role=group data-slot=input-group-addon>"), DE = /*#__PURE__*/ K("<span data-slot=input-group-text>"), OE = /*#__PURE__*/ K("<input data-slot=input-group-control>"), kE = /*#__PURE__*/ K("<textarea data-slot=input-group-control>"), AE = (e) => {
|
|
17194
17236
|
let [t, n] = I(e, ["class"]);
|
|
17195
17237
|
return (() => {
|
|
17196
|
-
var e =
|
|
17238
|
+
var e = TE();
|
|
17197
17239
|
return G(e, U({ get class() {
|
|
17198
17240
|
return O(`group/input-group relative flex w-full items-center rounded-md ${De} transition-[color,box-shadow] outline-none`, `${ye.default} min-w-0 has-[>textarea]:h-auto`, "has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col", "has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col", "has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:[--glass-edge:var(--ring)]", "has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 has-[[data-slot][aria-invalid=true]]:[--glass-edge:var(--destructive)]", t.class);
|
|
17199
17241
|
} }, n), !1, !1), e;
|
|
17200
17242
|
})();
|
|
17201
|
-
},
|
|
17243
|
+
}, jE = v({
|
|
17202
17244
|
base: "text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-sm [&>svg:not([class*='size-'])]:size-4",
|
|
17203
17245
|
variants: { align: {
|
|
17204
17246
|
"inline-start": "order-first pl-3 has-[>button]:pl-1.5 has-[>kbd]:pl-2",
|
|
@@ -17207,10 +17249,10 @@ var SE = /*#__PURE__*/ K("<div data-slot=input-group role=group>"), CE = /*#__PU
|
|
|
17207
17249
|
"block-end": "order-last w-full justify-start px-3 pb-3 [.border-t]:pt-3"
|
|
17208
17250
|
} },
|
|
17209
17251
|
defaultVariants: { align: "inline-start" }
|
|
17210
|
-
}),
|
|
17252
|
+
}), ME = (e) => {
|
|
17211
17253
|
let [t, n] = I(e, ["class", "align"]), r = () => t.align ?? "inline-start";
|
|
17212
17254
|
return (() => {
|
|
17213
|
-
var e =
|
|
17255
|
+
var e = EE();
|
|
17214
17256
|
return e.$$click = (e) => {
|
|
17215
17257
|
e.target.closest("button") || e.currentTarget.parentElement?.querySelector("input")?.focus();
|
|
17216
17258
|
}, G(e, U({
|
|
@@ -17218,22 +17260,22 @@ var SE = /*#__PURE__*/ K("<div data-slot=input-group role=group>"), CE = /*#__PU
|
|
|
17218
17260
|
return r();
|
|
17219
17261
|
},
|
|
17220
17262
|
get class() {
|
|
17221
|
-
return O(
|
|
17263
|
+
return O(jE({ align: r() }), t.class);
|
|
17222
17264
|
}
|
|
17223
17265
|
}, n), !1, !1), e;
|
|
17224
17266
|
})();
|
|
17225
|
-
},
|
|
17267
|
+
}, NE = `${ye.sm} gap-1.5 px-2.5 has-[>svg]:px-2.5`, PE = "size-8 p-0 has-[>svg]:p-0", FE = v({
|
|
17226
17268
|
base: "flex items-center gap-2 rounded-sm text-sm shadow-none",
|
|
17227
17269
|
variants: { size: {
|
|
17228
|
-
xs:
|
|
17229
|
-
sm:
|
|
17270
|
+
xs: NE,
|
|
17271
|
+
sm: NE,
|
|
17230
17272
|
default: `${ye.default} px-3 has-[>svg]:px-3`,
|
|
17231
|
-
"icon-xs":
|
|
17232
|
-
"icon-sm":
|
|
17273
|
+
"icon-xs": PE,
|
|
17274
|
+
"icon-sm": PE,
|
|
17233
17275
|
"icon-default": "size-9 p-0 has-[>svg]:p-0"
|
|
17234
17276
|
} },
|
|
17235
17277
|
defaultVariants: { size: "sm" }
|
|
17236
|
-
}),
|
|
17278
|
+
}), IE = (e) => {
|
|
17237
17279
|
let [t, n] = I(e, [
|
|
17238
17280
|
"class",
|
|
17239
17281
|
"type",
|
|
@@ -17252,29 +17294,29 @@ var SE = /*#__PURE__*/ K("<div data-slot=input-group role=group>"), CE = /*#__PU
|
|
|
17252
17294
|
return t.variant ?? "ghost";
|
|
17253
17295
|
},
|
|
17254
17296
|
get class() {
|
|
17255
|
-
return O(
|
|
17297
|
+
return O(FE({ size: r() }), t.class);
|
|
17256
17298
|
}
|
|
17257
17299
|
}, n));
|
|
17258
|
-
},
|
|
17300
|
+
}, LE = (e) => {
|
|
17259
17301
|
let [t, n] = I(e, ["class"]);
|
|
17260
17302
|
return (() => {
|
|
17261
|
-
var e =
|
|
17303
|
+
var e = DE();
|
|
17262
17304
|
return G(e, U({ get class() {
|
|
17263
17305
|
return O("text-muted-foreground flex items-center gap-2 text-sm [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", t.class);
|
|
17264
17306
|
} }, n), !1, !1), e;
|
|
17265
17307
|
})();
|
|
17266
|
-
},
|
|
17308
|
+
}, RE = (e) => {
|
|
17267
17309
|
let [t, n] = I(e, ["class"]);
|
|
17268
17310
|
return (() => {
|
|
17269
|
-
var e =
|
|
17311
|
+
var e = OE();
|
|
17270
17312
|
return G(e, U({ get class() {
|
|
17271
17313
|
return O(`${ye.default} w-full flex-1 rounded-none border-0 bg-transparent px-3 py-1 ${ze} placeholder:text-muted-foreground shadow-none outline-none disabled:cursor-not-allowed disabled:opacity-50`, t.class);
|
|
17272
17314
|
} }, n), !1, !1), e;
|
|
17273
17315
|
})();
|
|
17274
|
-
},
|
|
17316
|
+
}, zE = (e) => {
|
|
17275
17317
|
let [t, n] = I(e, ["class"]);
|
|
17276
17318
|
return (() => {
|
|
17277
|
-
var e =
|
|
17319
|
+
var e = kE();
|
|
17278
17320
|
return G(e, U({ get class() {
|
|
17279
17321
|
return O(`field-sizing-content min-h-16 w-full flex-1 resize-none rounded-none border-0 bg-transparent px-3 py-2 ${ze} placeholder:text-muted-foreground shadow-none outline-none disabled:cursor-not-allowed disabled:opacity-50`, t.class);
|
|
17280
17322
|
} }, n), !1, !1), e;
|
|
@@ -17283,7 +17325,7 @@ var SE = /*#__PURE__*/ K("<div data-slot=input-group role=group>"), CE = /*#__PU
|
|
|
17283
17325
|
Nt(["click"]);
|
|
17284
17326
|
//#endregion
|
|
17285
17327
|
//#region src/solid/input-otp.tsx
|
|
17286
|
-
var
|
|
17328
|
+
var BE = /*#__PURE__*/ K("<div data-slot=input-otp><input type=text inputmode=numeric autocomplete=one-time-code>"), VE = /*#__PURE__*/ K("<div data-slot=input-otp-group>"), HE = /*#__PURE__*/ K("<div class=\"pointer-events-none absolute inset-0 flex items-center justify-center\"><div class=\"animate-caret-blink bg-foreground h-4 w-px duration-1000\">"), UE = /*#__PURE__*/ K("<div data-slot=input-otp-slot>"), WE = /*#__PURE__*/ K("<div data-slot=input-otp-separator aria-hidden=true>"), GE = A(), KE = (e) => {
|
|
17287
17329
|
let [t, n] = I(e, [
|
|
17288
17330
|
"class",
|
|
17289
17331
|
"children",
|
|
@@ -17314,14 +17356,14 @@ var LE = /*#__PURE__*/ K("<div data-slot=input-otp><input type=text inputmode=nu
|
|
|
17314
17356
|
}, m = () => {
|
|
17315
17357
|
c(!1), o(-1);
|
|
17316
17358
|
};
|
|
17317
|
-
return z(
|
|
17359
|
+
return z(GE.Provider, {
|
|
17318
17360
|
value: {
|
|
17319
17361
|
value: u,
|
|
17320
17362
|
activeIndex: a,
|
|
17321
17363
|
isActive: s
|
|
17322
17364
|
},
|
|
17323
17365
|
get children() {
|
|
17324
|
-
var e =
|
|
17366
|
+
var e = BE(), r = e.firstChild;
|
|
17325
17367
|
e.$$click = () => l.focus(), G(e, U({ get class() {
|
|
17326
17368
|
return O("flex items-center gap-2 has-[:disabled]:opacity-50", t.containerClass);
|
|
17327
17369
|
} }, n), !1, !0), r.addEventListener("blur", m), r.addEventListener("focus", p), r.$$keydown = f, r.$$input = d;
|
|
@@ -17335,18 +17377,18 @@ var LE = /*#__PURE__*/ K("<div data-slot=input-otp><input type=text inputmode=nu
|
|
|
17335
17377
|
}), B(() => r.value = u()), e;
|
|
17336
17378
|
}
|
|
17337
17379
|
});
|
|
17338
|
-
},
|
|
17380
|
+
}, qE = (e) => {
|
|
17339
17381
|
let [t, n] = I(e, ["class"]);
|
|
17340
17382
|
return (() => {
|
|
17341
|
-
var e =
|
|
17383
|
+
var e = VE();
|
|
17342
17384
|
return G(e, U({ get class() {
|
|
17343
17385
|
return O("flex items-center gap-1.5", t.class);
|
|
17344
17386
|
} }, n), !1, !1), e;
|
|
17345
17387
|
})();
|
|
17346
|
-
},
|
|
17347
|
-
let [t, n] = I(e, ["class", "index"]), r = L(
|
|
17388
|
+
}, JE = (e) => {
|
|
17389
|
+
let [t, n] = I(e, ["class", "index"]), r = L(GE), i = () => r?.value()[t.index] ?? "", a = () => r?.isActive() && r?.activeIndex() === t.index, o = () => a() && !i();
|
|
17348
17390
|
return (() => {
|
|
17349
|
-
var e =
|
|
17391
|
+
var e = UE();
|
|
17350
17392
|
return G(e, U({
|
|
17351
17393
|
get "data-active"() {
|
|
17352
17394
|
return a();
|
|
@@ -17359,12 +17401,12 @@ var LE = /*#__PURE__*/ K("<div data-slot=input-otp><input type=text inputmode=nu
|
|
|
17359
17401
|
return o();
|
|
17360
17402
|
},
|
|
17361
17403
|
get children() {
|
|
17362
|
-
return
|
|
17404
|
+
return HE();
|
|
17363
17405
|
}
|
|
17364
17406
|
}), null), e;
|
|
17365
17407
|
})();
|
|
17366
|
-
},
|
|
17367
|
-
var t =
|
|
17408
|
+
}, YE = (e) => (() => {
|
|
17409
|
+
var t = WE();
|
|
17368
17410
|
return G(t, e, !1, !0), V(t, z($, {
|
|
17369
17411
|
icon: "lucide:minus",
|
|
17370
17412
|
width: 16,
|
|
@@ -17378,15 +17420,15 @@ Nt([
|
|
|
17378
17420
|
]);
|
|
17379
17421
|
//#endregion
|
|
17380
17422
|
//#region src/solid/item.tsx
|
|
17381
|
-
var
|
|
17423
|
+
var XE = /*#__PURE__*/ K("<ul data-slot=item-group>"), ZE = /*#__PURE__*/ K("<div data-slot=item-media>"), QE = /*#__PURE__*/ K("<div data-slot=item-content>"), $E = /*#__PURE__*/ K("<div data-slot=item-title>"), eD = /*#__PURE__*/ K("<p data-slot=item-description>"), tD = /*#__PURE__*/ K("<div data-slot=item-actions>"), nD = /*#__PURE__*/ K("<div data-slot=item-header>"), rD = /*#__PURE__*/ K("<div data-slot=item-footer>"), iD = (e) => {
|
|
17382
17424
|
let [t, n] = I(e, ["class"]);
|
|
17383
17425
|
return (() => {
|
|
17384
|
-
var e =
|
|
17426
|
+
var e = XE();
|
|
17385
17427
|
return G(e, U({ get class() {
|
|
17386
17428
|
return O("group/item-group flex flex-col", t.class);
|
|
17387
17429
|
} }, n), !1, !1), e;
|
|
17388
17430
|
})();
|
|
17389
|
-
},
|
|
17431
|
+
}, aD = (e) => {
|
|
17390
17432
|
let [t, n] = I(e, ["class"]);
|
|
17391
17433
|
return z($f, U({
|
|
17392
17434
|
"data-slot": "item-separator",
|
|
@@ -17395,7 +17437,7 @@ var qE = /*#__PURE__*/ K("<ul data-slot=item-group>"), JE = /*#__PURE__*/ K("<di
|
|
|
17395
17437
|
return O("my-0", t.class);
|
|
17396
17438
|
}
|
|
17397
17439
|
}, n));
|
|
17398
|
-
},
|
|
17440
|
+
}, oD = v({
|
|
17399
17441
|
base: "group/item focus-visible:border-ring focus-visible:ring-ring/50 [a]:hover:bg-muted/50 flex flex-wrap items-center rounded-md border border-transparent text-sm transition-colors duration-100 outline-none focus-visible:ring-[3px] [a]:transition-colors",
|
|
17400
17442
|
variants: {
|
|
17401
17443
|
variant: {
|
|
@@ -17412,7 +17454,7 @@ var qE = /*#__PURE__*/ K("<ul data-slot=item-group>"), JE = /*#__PURE__*/ K("<di
|
|
|
17412
17454
|
variant: "default",
|
|
17413
17455
|
size: "default"
|
|
17414
17456
|
}
|
|
17415
|
-
}),
|
|
17457
|
+
}), sD = (e) => {
|
|
17416
17458
|
let [t, n] = I(e, [
|
|
17417
17459
|
"class",
|
|
17418
17460
|
"variant",
|
|
@@ -17431,23 +17473,23 @@ var qE = /*#__PURE__*/ K("<ul data-slot=item-group>"), JE = /*#__PURE__*/ K("<di
|
|
|
17431
17473
|
return i();
|
|
17432
17474
|
},
|
|
17433
17475
|
get class() {
|
|
17434
|
-
return O(
|
|
17476
|
+
return O(oD({
|
|
17435
17477
|
variant: r(),
|
|
17436
17478
|
size: i()
|
|
17437
17479
|
}), t.class);
|
|
17438
17480
|
}
|
|
17439
17481
|
}, n));
|
|
17440
|
-
},
|
|
17482
|
+
}, cD = {
|
|
17441
17483
|
icon: `${Ae} size-8 rounded-md text-foreground/80 [&_svg:not([class*='size-'])]:size-4`,
|
|
17442
17484
|
image: "size-10 overflow-hidden rounded-sm [&_img]:size-full [&_img]:object-cover"
|
|
17443
|
-
},
|
|
17485
|
+
}, lD = (e) => {
|
|
17444
17486
|
let [t, n] = I(e, [
|
|
17445
17487
|
"class",
|
|
17446
17488
|
"media",
|
|
17447
17489
|
"variant"
|
|
17448
17490
|
]), r = () => t.media ?? (t.variant === "default" ? void 0 : t.variant);
|
|
17449
17491
|
return (() => {
|
|
17450
|
-
var e =
|
|
17492
|
+
var e = ZE();
|
|
17451
17493
|
return G(e, U({
|
|
17452
17494
|
get "data-media"() {
|
|
17453
17495
|
return r();
|
|
@@ -17456,83 +17498,83 @@ var qE = /*#__PURE__*/ K("<ul data-slot=item-group>"), JE = /*#__PURE__*/ K("<di
|
|
|
17456
17498
|
return t.variant ?? r() ?? "default";
|
|
17457
17499
|
},
|
|
17458
17500
|
get class() {
|
|
17459
|
-
return O("flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none", r() &&
|
|
17501
|
+
return O("flex shrink-0 items-center justify-center gap-2 group-has-[[data-slot=item-description]]/item:translate-y-0.5 group-has-[[data-slot=item-description]]/item:self-start [&_svg]:pointer-events-none", r() && cD[r()], t.class);
|
|
17460
17502
|
}
|
|
17461
17503
|
}, n), !1, !1), e;
|
|
17462
17504
|
})();
|
|
17463
|
-
},
|
|
17505
|
+
}, uD = (e) => {
|
|
17464
17506
|
let [t, n] = I(e, ["class"]);
|
|
17465
17507
|
return (() => {
|
|
17466
|
-
var e =
|
|
17508
|
+
var e = QE();
|
|
17467
17509
|
return G(e, U({ get class() {
|
|
17468
17510
|
return O("flex flex-1 flex-col gap-1 [&+[data-slot=item-content]]:flex-none", t.class);
|
|
17469
17511
|
} }, n), !1, !1), e;
|
|
17470
17512
|
})();
|
|
17471
|
-
},
|
|
17513
|
+
}, dD = (e) => {
|
|
17472
17514
|
let [t, n] = I(e, ["class"]);
|
|
17473
17515
|
return (() => {
|
|
17474
|
-
var e =
|
|
17516
|
+
var e = $E();
|
|
17475
17517
|
return G(e, U({ get class() {
|
|
17476
17518
|
return O("flex w-fit items-center gap-2 text-sm leading-snug font-medium", t.class);
|
|
17477
17519
|
} }, n), !1, !1), e;
|
|
17478
17520
|
})();
|
|
17479
|
-
},
|
|
17521
|
+
}, fD = (e) => {
|
|
17480
17522
|
let [t, n] = I(e, ["class"]);
|
|
17481
17523
|
return (() => {
|
|
17482
|
-
var e =
|
|
17524
|
+
var e = eD();
|
|
17483
17525
|
return G(e, U({ get class() {
|
|
17484
17526
|
return O("text-muted-foreground line-clamp-2 text-sm leading-normal font-normal text-balance", "[&>a:hover]:text-primary [&>a]:underline [&>a]:underline-offset-4", t.class);
|
|
17485
17527
|
} }, n), !1, !1), e;
|
|
17486
17528
|
})();
|
|
17487
|
-
},
|
|
17529
|
+
}, pD = (e) => {
|
|
17488
17530
|
let [t, n] = I(e, ["class"]);
|
|
17489
17531
|
return (() => {
|
|
17490
|
-
var e =
|
|
17532
|
+
var e = tD();
|
|
17491
17533
|
return G(e, U({ get class() {
|
|
17492
17534
|
return O("flex items-center gap-2", t.class);
|
|
17493
17535
|
} }, n), !1, !1), e;
|
|
17494
17536
|
})();
|
|
17495
|
-
},
|
|
17537
|
+
}, mD = (e) => {
|
|
17496
17538
|
let [t, n] = I(e, ["class"]);
|
|
17497
17539
|
return (() => {
|
|
17498
|
-
var e =
|
|
17540
|
+
var e = nD();
|
|
17499
17541
|
return G(e, U({ get class() {
|
|
17500
17542
|
return O("flex basis-full items-center justify-between gap-2", t.class);
|
|
17501
17543
|
} }, n), !1, !1), e;
|
|
17502
17544
|
})();
|
|
17503
|
-
},
|
|
17545
|
+
}, hD = (e) => {
|
|
17504
17546
|
let [t, n] = I(e, ["class"]);
|
|
17505
17547
|
return (() => {
|
|
17506
|
-
var e =
|
|
17548
|
+
var e = rD();
|
|
17507
17549
|
return G(e, U({ get class() {
|
|
17508
17550
|
return O("flex basis-full items-center justify-between gap-2", t.class);
|
|
17509
17551
|
} }, n), !1, !1), e;
|
|
17510
17552
|
})();
|
|
17511
|
-
},
|
|
17553
|
+
}, gD = /*#__PURE__*/ K("<kbd data-slot=kbd>"), _D = /*#__PURE__*/ K("<kbd data-slot=kbd-group>"), vD = (e) => {
|
|
17512
17554
|
let [t, n] = I(e, ["class"]);
|
|
17513
17555
|
return (() => {
|
|
17514
|
-
var e =
|
|
17556
|
+
var e = gD();
|
|
17515
17557
|
return G(e, U({ get class() {
|
|
17516
17558
|
return O("bg-muted text-muted-foreground pointer-events-none inline-flex h-5 w-fit min-w-5 items-center justify-center gap-1 rounded-sm px-1 font-sans text-xs font-medium select-none", "[&_svg:not([class*='size-'])]:size-3", t.class);
|
|
17517
17559
|
} }, n), !1, !1), e;
|
|
17518
17560
|
})();
|
|
17519
|
-
},
|
|
17561
|
+
}, yD = (e) => {
|
|
17520
17562
|
let [t, n] = I(e, ["class"]);
|
|
17521
17563
|
return (() => {
|
|
17522
|
-
var e =
|
|
17564
|
+
var e = _D();
|
|
17523
17565
|
return G(e, U({ get class() {
|
|
17524
17566
|
return O("inline-flex items-center gap-1", t.class);
|
|
17525
17567
|
} }, n), !1, !1), e;
|
|
17526
17568
|
})();
|
|
17527
|
-
},
|
|
17528
|
-
function
|
|
17569
|
+
}, bD = 8, xD = 6;
|
|
17570
|
+
function SD(e, t, n) {
|
|
17529
17571
|
let r = t, i = n;
|
|
17530
17572
|
if (n < 0) for (; r > 0 && -i > (e[r - 1] ?? 0) / 2;) i += e[r - 1] ?? 0, r--;
|
|
17531
17573
|
else for (; r < e.length - 1 && i > (e[r + 1] ?? 0) / 2;) i -= e[r + 1] ?? 0, r++;
|
|
17532
17574
|
return r;
|
|
17533
17575
|
}
|
|
17534
|
-
function
|
|
17535
|
-
let t = e.gapPx ??
|
|
17576
|
+
function CD(e) {
|
|
17577
|
+
let t = e.gapPx ?? bD, n = [], [r, i] = N(null), [a, o] = N(!1), s = !1;
|
|
17536
17578
|
return {
|
|
17537
17579
|
setRowEl: (e, t) => {
|
|
17538
17580
|
n[e] = t;
|
|
@@ -17554,12 +17596,12 @@ function bD(e) {
|
|
|
17554
17596
|
}, p = () => n.slice(0, e.count()).map((e) => e?.offsetHeight ?? 0), m = (e) => {
|
|
17555
17597
|
let n = e.clientY - u;
|
|
17556
17598
|
if (!d) {
|
|
17557
|
-
if (Math.abs(n) <
|
|
17599
|
+
if (Math.abs(n) < xD) return;
|
|
17558
17600
|
f(n);
|
|
17559
17601
|
}
|
|
17560
17602
|
i({
|
|
17561
17603
|
from: t,
|
|
17562
|
-
to:
|
|
17604
|
+
to: SD(p(), t, n),
|
|
17563
17605
|
dy: n
|
|
17564
17606
|
});
|
|
17565
17607
|
}, h = () => {
|
|
@@ -17589,7 +17631,7 @@ function bD(e) {
|
|
|
17589
17631
|
}
|
|
17590
17632
|
//#endregion
|
|
17591
17633
|
//#region src/solid/logo.tsx
|
|
17592
|
-
var
|
|
17634
|
+
var wD = /*#__PURE__*/ K("<img alt>"), TD = /*#__PURE__*/ K("<span><span data-slot=logo-name>GlassHome"), ED = /*#__PURE__*/ K("<span data-slot=logo-sub>"), DD = (e) => {
|
|
17593
17635
|
let [t, n] = I(e, [
|
|
17594
17636
|
"class",
|
|
17595
17637
|
"sub",
|
|
@@ -17612,7 +17654,7 @@ var xD = /*#__PURE__*/ K("<img alt>"), SD = /*#__PURE__*/ K("<span><span data-sl
|
|
|
17612
17654
|
}
|
|
17613
17655
|
}, n, { get children() {
|
|
17614
17656
|
return [(() => {
|
|
17615
|
-
var e =
|
|
17657
|
+
var e = wD();
|
|
17616
17658
|
return B((n) => {
|
|
17617
17659
|
var o = t.src ?? "/assets/glasshome_logo.png", s = r[i()], c = r[i()], l = O(ut, a().mark, t.markClass);
|
|
17618
17660
|
return o !== n.e && W(e, "src", n.e = o), s !== n.t && W(e, "width", n.t = s), c !== n.a && W(e, "height", n.a = c), l !== n.o && R(e, n.o = l), n;
|
|
@@ -17623,14 +17665,14 @@ var xD = /*#__PURE__*/ K("<img alt>"), SD = /*#__PURE__*/ K("<span><span data-sl
|
|
|
17623
17665
|
o: void 0
|
|
17624
17666
|
}), e;
|
|
17625
17667
|
})(), (() => {
|
|
17626
|
-
var e =
|
|
17668
|
+
var e = TD(), n = e.firstChild;
|
|
17627
17669
|
return R(e, le), V(e, () => t.subSlot ?? (() => {
|
|
17628
|
-
var e =
|
|
17670
|
+
var e = ED();
|
|
17629
17671
|
return V(e, () => t.sub ?? "Dash"), B(() => R(e, O(a().sub, "font-bold text-primary uppercase leading-none tracking-[0.18em]"))), e;
|
|
17630
17672
|
})(), null), B(() => R(n, O(a().name, ce))), e;
|
|
17631
17673
|
})()];
|
|
17632
17674
|
} }));
|
|
17633
|
-
},
|
|
17675
|
+
}, OD = /*#__PURE__*/ K("<div data-slot=number-field-root class=relative><input type=number data-slot=number-field><div data-slot=number-field-spinner><button type=button tabindex=-1 aria-label=Increment class=\"text-muted-foreground hover:bg-muted hover:text-foreground active:bg-muted flex flex-1 items-center justify-center transition-colors\"></button><button type=button tabindex=-1 aria-label=Decrement class=\"text-muted-foreground hover:bg-muted hover:text-foreground active:bg-muted flex flex-1 items-center justify-center transition-colors\">"), kD = "w-10", AD = "pr-10", jD = (e) => {
|
|
17634
17676
|
let [t, n] = I(e, [
|
|
17635
17677
|
"class",
|
|
17636
17678
|
"step",
|
|
@@ -17642,7 +17684,7 @@ var xD = /*#__PURE__*/ K("<img alt>"), SD = /*#__PURE__*/ K("<span><span data-sl
|
|
|
17642
17684
|
t.min != null && (n = Math.max(Number(t.min), n)), t.max != null && (n = Math.min(Number(t.max), n)), r.value = String(n), r.dispatchEvent(new Event("input", { bubbles: !0 }));
|
|
17643
17685
|
};
|
|
17644
17686
|
return (() => {
|
|
17645
|
-
var e =
|
|
17687
|
+
var e = OD(), i = e.firstChild, o = i.nextSibling, s = o.firstChild, c = s.nextSibling, l = r;
|
|
17646
17688
|
return typeof l == "function" ? Rt(l, i) : r = i, G(i, U({
|
|
17647
17689
|
get step() {
|
|
17648
17690
|
return t.step;
|
|
@@ -17654,7 +17696,7 @@ var xD = /*#__PURE__*/ K("<img alt>"), SD = /*#__PURE__*/ K("<span><span data-sl
|
|
|
17654
17696
|
return t.max;
|
|
17655
17697
|
},
|
|
17656
17698
|
get class() {
|
|
17657
|
-
return O(Ce,
|
|
17699
|
+
return O(Ce, AD, "[appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-outer-spin-button]:appearance-none", t.class);
|
|
17658
17700
|
}
|
|
17659
17701
|
}, n), !1, !1), s.$$click = () => a(1), V(s, z($, {
|
|
17660
17702
|
icon: "lucide:chevron-up",
|
|
@@ -17666,37 +17708,37 @@ var xD = /*#__PURE__*/ K("<img alt>"), SD = /*#__PURE__*/ K("<span><span data-sl
|
|
|
17666
17708
|
width: 16,
|
|
17667
17709
|
height: 16,
|
|
17668
17710
|
class: "size-4"
|
|
17669
|
-
})), B(() => R(o, O("divide-border border-border absolute inset-y-0 right-0 flex flex-col divide-y overflow-hidden rounded-r-md border-l",
|
|
17711
|
+
})), B(() => R(o, O("divide-border border-border absolute inset-y-0 right-0 flex flex-col divide-y overflow-hidden rounded-r-md border-l", kD))), e;
|
|
17670
17712
|
})();
|
|
17671
17713
|
};
|
|
17672
17714
|
Nt(["click"]), Qr({}, {
|
|
17673
17715
|
Description: () => ac,
|
|
17674
17716
|
ErrorMessage: () => fc,
|
|
17675
|
-
Item: () =>
|
|
17676
|
-
ItemControl: () =>
|
|
17677
|
-
ItemDescription: () =>
|
|
17678
|
-
ItemIndicator: () =>
|
|
17679
|
-
ItemInput: () =>
|
|
17680
|
-
ItemLabel: () =>
|
|
17681
|
-
Label: () =>
|
|
17682
|
-
RadioGroup: () =>
|
|
17683
|
-
Root: () =>
|
|
17684
|
-
useRadioGroupContext: () =>
|
|
17717
|
+
Item: () => ID,
|
|
17718
|
+
ItemControl: () => LD,
|
|
17719
|
+
ItemDescription: () => RD,
|
|
17720
|
+
ItemIndicator: () => zD,
|
|
17721
|
+
ItemInput: () => BD,
|
|
17722
|
+
ItemLabel: () => VD,
|
|
17723
|
+
Label: () => HD,
|
|
17724
|
+
RadioGroup: () => WD,
|
|
17725
|
+
Root: () => UD,
|
|
17726
|
+
useRadioGroupContext: () => ND
|
|
17685
17727
|
});
|
|
17686
|
-
var
|
|
17687
|
-
function
|
|
17688
|
-
let e = L(
|
|
17728
|
+
var MD = A();
|
|
17729
|
+
function ND() {
|
|
17730
|
+
let e = L(MD);
|
|
17689
17731
|
if (e === void 0) throw Error("[kobalte]: `useRadioGroupContext` must be used within a `RadioGroup` component");
|
|
17690
17732
|
return e;
|
|
17691
17733
|
}
|
|
17692
|
-
var
|
|
17693
|
-
function
|
|
17694
|
-
let e = L(
|
|
17734
|
+
var PD = A();
|
|
17735
|
+
function FD() {
|
|
17736
|
+
let e = L(PD);
|
|
17695
17737
|
if (e === void 0) throw Error("[kobalte]: `useRadioGroupItemContext` must be used within a `RadioGroup.Item` component");
|
|
17696
17738
|
return e;
|
|
17697
17739
|
}
|
|
17698
|
-
function
|
|
17699
|
-
let t = ic(), n =
|
|
17740
|
+
function ID(e) {
|
|
17741
|
+
let t = ic(), n = ND(), [r, i] = I(Z({ id: `${t.generateId("item")}-${P()}` }, e), [
|
|
17700
17742
|
"value",
|
|
17701
17743
|
"disabled",
|
|
17702
17744
|
"onPointerDown"
|
|
@@ -17724,7 +17766,7 @@ function ND(e) {
|
|
|
17724
17766
|
setIsFocused: m,
|
|
17725
17767
|
setInputRef: f
|
|
17726
17768
|
};
|
|
17727
|
-
return z(
|
|
17769
|
+
return z(PD.Provider, {
|
|
17728
17770
|
value: b,
|
|
17729
17771
|
get children() {
|
|
17730
17772
|
return z(Q, U({
|
|
@@ -17735,8 +17777,8 @@ function ND(e) {
|
|
|
17735
17777
|
}
|
|
17736
17778
|
});
|
|
17737
17779
|
}
|
|
17738
|
-
function
|
|
17739
|
-
let t =
|
|
17780
|
+
function LD(e) {
|
|
17781
|
+
let t = FD(), [n, r] = I(Z({ id: t.generateId("control") }, e), ["onClick", "onKeyDown"]);
|
|
17740
17782
|
return z(Q, U({
|
|
17741
17783
|
as: "div",
|
|
17742
17784
|
onClick: (e) => {
|
|
@@ -17747,12 +17789,12 @@ function PD(e) {
|
|
|
17747
17789
|
}
|
|
17748
17790
|
}, () => t.dataset(), r));
|
|
17749
17791
|
}
|
|
17750
|
-
function
|
|
17751
|
-
let t =
|
|
17792
|
+
function RD(e) {
|
|
17793
|
+
let t = FD(), n = Z({ id: t.generateId("description") }, e);
|
|
17752
17794
|
return j(() => F(t.registerDescription(n.id))), z(Q, U({ as: "div" }, () => t.dataset(), n));
|
|
17753
17795
|
}
|
|
17754
|
-
function
|
|
17755
|
-
let t =
|
|
17796
|
+
function zD(e) {
|
|
17797
|
+
let t = FD(), [n, r] = I(Z({ id: t.generateId("indicator") }, e), ["ref", "forceMount"]), [i, a] = N(), { present: o } = Ai({
|
|
17756
17798
|
show: () => n.forceMount || t.isSelected(),
|
|
17757
17799
|
element: () => i() ?? null
|
|
17758
17800
|
});
|
|
@@ -17771,8 +17813,8 @@ function ID(e) {
|
|
|
17771
17813
|
}
|
|
17772
17814
|
});
|
|
17773
17815
|
}
|
|
17774
|
-
function
|
|
17775
|
-
let t = ic(), n =
|
|
17816
|
+
function BD(e) {
|
|
17817
|
+
let t = ic(), n = ND(), r = FD(), [i, a] = I(Z({ id: r.generateId("input") }, e), [
|
|
17776
17818
|
"ref",
|
|
17777
17819
|
"style",
|
|
17778
17820
|
"aria-labelledby",
|
|
@@ -17850,8 +17892,8 @@ function LD(e) {
|
|
|
17850
17892
|
}
|
|
17851
17893
|
}, () => r.dataset(), a));
|
|
17852
17894
|
}
|
|
17853
|
-
function
|
|
17854
|
-
let t =
|
|
17895
|
+
function VD(e) {
|
|
17896
|
+
let t = FD(), n = Z({ id: t.generateId("label") }, e);
|
|
17855
17897
|
return j(() => F(t.registerLabel(n.id))), z(Q, U({
|
|
17856
17898
|
as: "label",
|
|
17857
17899
|
get for() {
|
|
@@ -17859,10 +17901,10 @@ function RD(e) {
|
|
|
17859
17901
|
}
|
|
17860
17902
|
}, () => t.dataset(), n));
|
|
17861
17903
|
}
|
|
17862
|
-
function
|
|
17904
|
+
function HD(e) {
|
|
17863
17905
|
return z(cc, U({ as: "span" }, e));
|
|
17864
17906
|
}
|
|
17865
|
-
function
|
|
17907
|
+
function UD(e) {
|
|
17866
17908
|
let t, [n, r, i] = I(Z({
|
|
17867
17909
|
id: `radiogroup-${P()}`,
|
|
17868
17910
|
orientation: "vertical"
|
|
@@ -17894,7 +17936,7 @@ function BD(e) {
|
|
|
17894
17936
|
return z(rc.Provider, {
|
|
17895
17937
|
value: s,
|
|
17896
17938
|
get children() {
|
|
17897
|
-
return z(
|
|
17939
|
+
return z(MD.Provider, {
|
|
17898
17940
|
value: f,
|
|
17899
17941
|
get children() {
|
|
17900
17942
|
return z(Q, U({
|
|
@@ -17934,37 +17976,37 @@ function BD(e) {
|
|
|
17934
17976
|
}
|
|
17935
17977
|
});
|
|
17936
17978
|
}
|
|
17937
|
-
var
|
|
17979
|
+
var WD = Object.assign(UD, {
|
|
17938
17980
|
Description: ac,
|
|
17939
17981
|
ErrorMessage: fc,
|
|
17940
|
-
Item:
|
|
17941
|
-
ItemControl:
|
|
17942
|
-
ItemDescription:
|
|
17943
|
-
ItemIndicator:
|
|
17944
|
-
ItemInput:
|
|
17945
|
-
ItemLabel:
|
|
17946
|
-
Label:
|
|
17947
|
-
}),
|
|
17982
|
+
Item: ID,
|
|
17983
|
+
ItemControl: LD,
|
|
17984
|
+
ItemDescription: RD,
|
|
17985
|
+
ItemIndicator: zD,
|
|
17986
|
+
ItemInput: BD,
|
|
17987
|
+
ItemLabel: VD,
|
|
17988
|
+
Label: HD
|
|
17989
|
+
}), GD = /*#__PURE__*/ K("<span data-slot=radio-group-item-dot class=\"size-[36%] rounded-full [background:oklch(from_var(--primary)_calc((0.42_-_l)*100)_0_0)] dark:[background:oklch(from_var(--primary)_calc((0.6_-_l)*100)_0_0)]\">"), KD = /*#__PURE__*/ K("<div data-slot=radio-group-item-content class=\"min-w-0 flex-1 text-sm\">"), qD = (e) => {
|
|
17948
17990
|
let [t, n] = I(e, ["class"]);
|
|
17949
|
-
return z(
|
|
17991
|
+
return z(WD, U({
|
|
17950
17992
|
"data-slot": "radio-group",
|
|
17951
17993
|
get class() {
|
|
17952
17994
|
return O("flex flex-col gap-3", t.class);
|
|
17953
17995
|
}
|
|
17954
17996
|
}, n));
|
|
17955
|
-
},
|
|
17997
|
+
}, JD = (e) => {
|
|
17956
17998
|
let [t, n] = I(e, [
|
|
17957
17999
|
"class",
|
|
17958
18000
|
"children",
|
|
17959
18001
|
"showControl"
|
|
17960
18002
|
]);
|
|
17961
|
-
return z(
|
|
18003
|
+
return z(WD.Item, U({
|
|
17962
18004
|
"data-slot": "radio-group-item",
|
|
17963
18005
|
get class() {
|
|
17964
18006
|
return O("flex", t.class);
|
|
17965
18007
|
}
|
|
17966
18008
|
}, n, { get children() {
|
|
17967
|
-
return [z(
|
|
18009
|
+
return [z(WD.ItemInput, { class: "peer" }), z(WD.ItemLabel, {
|
|
17968
18010
|
"data-slot": "radio-group-item-label",
|
|
17969
18011
|
class: "flex flex-1 cursor-pointer items-center gap-2.5 select-none data-[disabled]:cursor-not-allowed",
|
|
17970
18012
|
get children() {
|
|
@@ -17973,32 +18015,32 @@ var VD = Object.assign(BD, {
|
|
|
17973
18015
|
return t.showControl ?? !0;
|
|
17974
18016
|
},
|
|
17975
18017
|
get children() {
|
|
17976
|
-
return z(
|
|
18018
|
+
return z(WD.ItemControl, {
|
|
17977
18019
|
"data-slot": "radio-group-item-control",
|
|
17978
18020
|
get class() {
|
|
17979
18021
|
return O("transition-glass relative flex aspect-square size-7 shrink-0 items-center justify-center overflow-hidden rounded-full duration-200 ease-out active:scale-90", Qe, "peer-focus-visible:ring-ring/50 peer-focus-visible:ring-[3px] peer-focus-visible:[--glass-edge:var(--ring)]", "data-[invalid]:ring-destructive/20 data-[disabled]:opacity-40 data-[invalid]:[--glass-edge:var(--destructive)]");
|
|
17980
18022
|
},
|
|
17981
18023
|
get children() {
|
|
17982
|
-
return z(
|
|
18024
|
+
return z(WD.ItemIndicator, {
|
|
17983
18025
|
"data-slot": "radio-group-item-indicator",
|
|
17984
18026
|
class: "glass glass-tint zoom-in-50 fade-in animate-in absolute inset-0 grid place-items-center rounded-full duration-200 [--glass-tone:var(--primary)] [--glass-wash:90%]",
|
|
17985
18027
|
get children() {
|
|
17986
|
-
return
|
|
18028
|
+
return GD();
|
|
17987
18029
|
}
|
|
17988
18030
|
});
|
|
17989
18031
|
}
|
|
17990
18032
|
});
|
|
17991
18033
|
}
|
|
17992
18034
|
}), H(() => H(() => !!t.children)() && (() => {
|
|
17993
|
-
var e =
|
|
18035
|
+
var e = KD();
|
|
17994
18036
|
return V(e, () => t.children), e;
|
|
17995
18037
|
})())];
|
|
17996
18038
|
}
|
|
17997
18039
|
})];
|
|
17998
18040
|
} }));
|
|
17999
|
-
},
|
|
18000
|
-
function
|
|
18001
|
-
let t = L(
|
|
18041
|
+
}, YD = /*#__PURE__*/ K("<div data-slot=option-card-row class=\"flex w-full items-center gap-3.5 p-3.5\"><div class=\"flex min-w-0 flex-1 flex-col gap-0.5\"><span data-slot=option-card-title class=\"text-[15px] leading-snug font-semibold\">"), XD = /*#__PURE__*/ K("<div data-slot=option-card-drawer class=\"grid grid-rows-[0fr] transition-[grid-template-rows] duration-(--duration-morph) ease-(--ease-morph) group-data-[checked]/option-card:grid-rows-[1fr]\"><div class=\"min-h-0 overflow-hidden\"><div class=\"-translate-y-2 flex flex-col gap-0.5 pr-1 pb-2 pl-[calc(var(--spacing)*3.5+54px)] opacity-0 transition-[opacity,translate] duration-(--duration-expand) ease-(--ease-morph) group-data-[checked]/option-card:translate-y-0 group-data-[checked]/option-card:opacity-100 group-data-[checked]/option-card:delay-[80ms]\">"), ZD = /*#__PURE__*/ K("<div data-slot=option-card>"), QD = /*#__PURE__*/ K("<span data-slot=option-card-description class=\"text-muted-foreground text-sm leading-normal\">"), $D = /*#__PURE__*/ K("<span data-slot=option-card-icon aria-hidden=true class=\"grid size-10 shrink-0 place-items-center rounded-[14px] bg-[color-mix(in_oklab,var(--surface-tone)_80%,black)] [color:oklch(from_var(--surface-tone)_calc((0.75_-_l)*100)_0_0)]\">"), eO = /*#__PURE__*/ K("<img alt class=\"size-5 object-contain\">"), tO = `${re} group/option-card relative cursor-pointer overflow-hidden rounded-xl transition-glass duration-200 [&:not([style*=--glass-tone])]:[--glass-tone:var(--primary)] [--glass-wash:9%] hover:[--glass-wash:16%] has-[:focus-visible]:[--glass-edge:var(--ring)] has-[:focus-visible]:ring-[3px] has-[:focus-visible]:ring-ring/50 data-[checked]:[--glass-wash:30%] data-[checked]:[--glass-edge:oklch(from_var(--glass-tone)_l_c_h/0.75)] data-[disabled]:cursor-not-allowed data-[disabled]:opacity-50`, nO = "rounded-sm text-foreground/75 transition-colors hover:bg-foreground/5 aria-checked:text-foreground", rO = A();
|
|
18042
|
+
function iO(e) {
|
|
18043
|
+
let t = L(rO);
|
|
18002
18044
|
if (!t) throw Error("OptionChoice renders inside an OptionCard");
|
|
18003
18045
|
Ot(() => F(t.register(e.value)));
|
|
18004
18046
|
let n = () => t.subValue() === e.value;
|
|
@@ -18010,7 +18052,7 @@ function tO(e) {
|
|
|
18010
18052
|
return n();
|
|
18011
18053
|
},
|
|
18012
18054
|
"data-slot": "option-choice",
|
|
18013
|
-
class:
|
|
18055
|
+
class: nO,
|
|
18014
18056
|
get disabled() {
|
|
18015
18057
|
return e.disabled;
|
|
18016
18058
|
},
|
|
@@ -18030,8 +18072,8 @@ function tO(e) {
|
|
|
18030
18072
|
onClick: () => !e.disabled && t.pick(e.value)
|
|
18031
18073
|
});
|
|
18032
18074
|
}
|
|
18033
|
-
function
|
|
18034
|
-
return z(
|
|
18075
|
+
function aO(e) {
|
|
18076
|
+
return z(qD, {
|
|
18035
18077
|
get class() {
|
|
18036
18078
|
return O("gap-2", e.class);
|
|
18037
18079
|
},
|
|
@@ -18052,20 +18094,20 @@ function nO(e) {
|
|
|
18052
18094
|
}
|
|
18053
18095
|
});
|
|
18054
18096
|
}
|
|
18055
|
-
function
|
|
18056
|
-
let t =
|
|
18097
|
+
function oO(e) {
|
|
18098
|
+
let t = ND(), n = () => t.isSelectedValue(e.value), [r, i] = N([]), a = {
|
|
18057
18099
|
subValue: () => e.subValue,
|
|
18058
18100
|
pick: (t) => e.onSubChange?.(t),
|
|
18059
18101
|
register: (e) => (i((t) => [...t, e]), () => i((t) => t.filter((t) => t !== e)))
|
|
18060
|
-
}, o = yt(() => z(
|
|
18102
|
+
}, o = yt(() => z(rO.Provider, {
|
|
18061
18103
|
value: a,
|
|
18062
18104
|
get children() {
|
|
18063
18105
|
return e.children;
|
|
18064
18106
|
}
|
|
18065
18107
|
}));
|
|
18066
18108
|
return (() => {
|
|
18067
|
-
var t =
|
|
18068
|
-
return V(t, z(
|
|
18109
|
+
var t = ZD();
|
|
18110
|
+
return V(t, z(JD, {
|
|
18069
18111
|
get value() {
|
|
18070
18112
|
return e.value;
|
|
18071
18113
|
},
|
|
@@ -18079,8 +18121,8 @@ function rO(e) {
|
|
|
18079
18121
|
return [z(sp, { get kind() {
|
|
18080
18122
|
return e.ornament ?? "check";
|
|
18081
18123
|
} }), (() => {
|
|
18082
|
-
var t =
|
|
18083
|
-
return V(t, z(
|
|
18124
|
+
var t = YD(), n = t.firstChild, r = n.firstChild;
|
|
18125
|
+
return V(t, z(sO, {
|
|
18084
18126
|
get icon() {
|
|
18085
18127
|
return e.icon;
|
|
18086
18128
|
},
|
|
@@ -18092,7 +18134,7 @@ function rO(e) {
|
|
|
18092
18134
|
return e.description;
|
|
18093
18135
|
},
|
|
18094
18136
|
children: (e) => (() => {
|
|
18095
|
-
var t =
|
|
18137
|
+
var t = QD();
|
|
18096
18138
|
return V(t, e), t;
|
|
18097
18139
|
})()
|
|
18098
18140
|
}), null), t;
|
|
@@ -18103,7 +18145,7 @@ function rO(e) {
|
|
|
18103
18145
|
return o.toArray().length > 0;
|
|
18104
18146
|
},
|
|
18105
18147
|
get children() {
|
|
18106
|
-
var t =
|
|
18148
|
+
var t = XD(), i = t.firstChild.firstChild;
|
|
18107
18149
|
return V(i, o), B((t) => {
|
|
18108
18150
|
var a = r().length > 0 ? "radiogroup" : "group", o = `${e.title} options`, s = { [dt]: n() };
|
|
18109
18151
|
return a !== t.e && W(i, "role", t.e = a), o !== t.t && W(i, "aria-label", t.t = o), t.a = Mt(i, s, t.a), t;
|
|
@@ -18114,7 +18156,7 @@ function rO(e) {
|
|
|
18114
18156
|
}), t;
|
|
18115
18157
|
}
|
|
18116
18158
|
}), null), B((r) => {
|
|
18117
|
-
var i = n() ? "" : void 0, a = e.disabled ? "" : void 0, o = O(
|
|
18159
|
+
var i = n() ? "" : void 0, a = e.disabled ? "" : void 0, o = O(tO, e.class), s = e.accentVar ? { "--glass-tone": e.accentVar } : void 0;
|
|
18118
18160
|
return i !== r.e && W(t, "data-checked", r.e = i), a !== r.t && W(t, "data-disabled", r.t = a), o !== r.a && R(t, r.a = o), r.o = Lt(t, s, r.o), r;
|
|
18119
18161
|
}, {
|
|
18120
18162
|
e: void 0,
|
|
@@ -18124,13 +18166,13 @@ function rO(e) {
|
|
|
18124
18166
|
}), t;
|
|
18125
18167
|
})();
|
|
18126
18168
|
}
|
|
18127
|
-
function
|
|
18169
|
+
function sO(e) {
|
|
18128
18170
|
return z(k, {
|
|
18129
18171
|
get when() {
|
|
18130
18172
|
return e.icon || e.image;
|
|
18131
18173
|
},
|
|
18132
18174
|
get children() {
|
|
18133
|
-
var t =
|
|
18175
|
+
var t = $D();
|
|
18134
18176
|
return V(t, z(k, {
|
|
18135
18177
|
get when() {
|
|
18136
18178
|
return e.image;
|
|
@@ -18150,24 +18192,24 @@ function iO(e) {
|
|
|
18150
18192
|
});
|
|
18151
18193
|
},
|
|
18152
18194
|
children: (e) => (() => {
|
|
18153
|
-
var t =
|
|
18195
|
+
var t = eO();
|
|
18154
18196
|
return B(() => W(t, "src", e())), t;
|
|
18155
18197
|
})()
|
|
18156
18198
|
})), t;
|
|
18157
18199
|
}
|
|
18158
18200
|
});
|
|
18159
18201
|
}
|
|
18160
|
-
var
|
|
18161
|
-
function
|
|
18162
|
-
let t = () => e.glass ??
|
|
18202
|
+
var cO = oO, lO = /*#__PURE__*/ K("<div data-slot=page-header-subtitle class=\"text-muted-foreground flex items-center gap-2 text-sm\">"), uO = /*#__PURE__*/ K("<div data-slot=page-header-actions class=\"flex shrink-0 items-center gap-2\">"), dO = /*#__PURE__*/ K("<div data-slot=page-header><div data-slot=page-header-row class=\"relative flex items-center gap-3 p-4 sm:gap-5 sm:p-6\"><div data-slot=page-header-headings class=\"flex min-w-0 flex-1 flex-col gap-1.5 sm:gap-2\"><div data-slot=page-header-headline class=\"flex min-w-0 items-center gap-2 sm:gap-3\"><h1 data-slot=page-header-title class=\"text-foreground min-w-0 truncate pb-0.5 text-[1.75rem] leading-none font-bold tracking-[-0.035em] sm:text-[2.5rem]\">"), fO = /*#__PURE__*/ K("<img data-slot=page-header-watermark alt class=\"pointer-events-none absolute -top-4 -right-8 size-48 rotate-[14deg] [mask-image:radial-gradient(circle_at_70%_30%,black,transparent_80%)] opacity-[0.13]\">");
|
|
18203
|
+
function pO(e) {
|
|
18204
|
+
let t = () => e.glass ?? ZT;
|
|
18163
18205
|
return (() => {
|
|
18164
|
-
var n =
|
|
18206
|
+
var n = dO(), r = n.firstChild, i = r.firstChild, o = i.firstChild, s = o.firstChild, c = t().ref;
|
|
18165
18207
|
return typeof c == "function" ? Rt(c, n) : t().ref = n, V(n, z(k, {
|
|
18166
18208
|
get when() {
|
|
18167
18209
|
return e.logo;
|
|
18168
18210
|
},
|
|
18169
18211
|
children: (e) => (() => {
|
|
18170
|
-
var t =
|
|
18212
|
+
var t = fO();
|
|
18171
18213
|
return B(() => W(t, "src", e())), t;
|
|
18172
18214
|
})()
|
|
18173
18215
|
}), r), V(r, z(k, {
|
|
@@ -18179,7 +18221,7 @@ function uO(e) {
|
|
|
18179
18221
|
get when() {
|
|
18180
18222
|
return e.icon;
|
|
18181
18223
|
},
|
|
18182
|
-
children: (e) => z(
|
|
18224
|
+
children: (e) => z(iE, {
|
|
18183
18225
|
get icon() {
|
|
18184
18226
|
return e();
|
|
18185
18227
|
},
|
|
@@ -18206,7 +18248,7 @@ function uO(e) {
|
|
|
18206
18248
|
return e.subtitle;
|
|
18207
18249
|
},
|
|
18208
18250
|
get children() {
|
|
18209
|
-
var t =
|
|
18251
|
+
var t = lO();
|
|
18210
18252
|
return V(t, () => e.subtitle), t;
|
|
18211
18253
|
}
|
|
18212
18254
|
}), null), V(r, z(k, {
|
|
@@ -18214,7 +18256,7 @@ function uO(e) {
|
|
|
18214
18256
|
return e.actions;
|
|
18215
18257
|
},
|
|
18216
18258
|
get children() {
|
|
18217
|
-
var t =
|
|
18259
|
+
var t = uO();
|
|
18218
18260
|
return V(t, () => e.actions), t;
|
|
18219
18261
|
}
|
|
18220
18262
|
}), null), B((e) => {
|
|
@@ -18229,7 +18271,7 @@ function uO(e) {
|
|
|
18229
18271
|
}
|
|
18230
18272
|
//#endregion
|
|
18231
18273
|
//#region src/solid/password-input.tsx
|
|
18232
|
-
var
|
|
18274
|
+
var mO = /*#__PURE__*/ K("<span data-slot=password-input-leading aria-hidden=true>"), hO = /*#__PURE__*/ K("<div data-slot=password-input class=relative><button type=button data-slot=password-input-toggle>"), gO = "w-10", _O = "pl-10", vO = "pr-10", yO = (e) => {
|
|
18233
18275
|
let [t, n] = I(e, [
|
|
18234
18276
|
"class",
|
|
18235
18277
|
"leading",
|
|
@@ -18237,21 +18279,21 @@ var dO = /*#__PURE__*/ K("<span data-slot=password-input-leading aria-hidden=tru
|
|
|
18237
18279
|
"hideLabel"
|
|
18238
18280
|
]), [r, i] = N(!1);
|
|
18239
18281
|
return (() => {
|
|
18240
|
-
var e =
|
|
18282
|
+
var e = hO(), a = e.firstChild;
|
|
18241
18283
|
return V(e, z(k, {
|
|
18242
18284
|
get when() {
|
|
18243
18285
|
return t.leading;
|
|
18244
18286
|
},
|
|
18245
18287
|
get children() {
|
|
18246
|
-
var e =
|
|
18247
|
-
return V(e, () => t.leading), B(() => R(e, O("text-primary/70 pointer-events-none absolute inset-y-0 left-0 z-10 flex items-center justify-center",
|
|
18288
|
+
var e = mO();
|
|
18289
|
+
return V(e, () => t.leading), B(() => R(e, O("text-primary/70 pointer-events-none absolute inset-y-0 left-0 z-10 flex items-center justify-center", gO))), e;
|
|
18248
18290
|
}
|
|
18249
18291
|
}), a), V(e, z(lb, U({
|
|
18250
18292
|
get type() {
|
|
18251
18293
|
return r() ? "text" : "password";
|
|
18252
18294
|
},
|
|
18253
18295
|
get class() {
|
|
18254
|
-
return O(t.class, t.leading &&
|
|
18296
|
+
return O(t.class, t.leading && _O, vO);
|
|
18255
18297
|
}
|
|
18256
18298
|
}, n)), a), a.$$click = () => i((e) => !e), V(a, z($, {
|
|
18257
18299
|
get icon() {
|
|
@@ -18260,7 +18302,7 @@ var dO = /*#__PURE__*/ K("<span data-slot=password-input-leading aria-hidden=tru
|
|
|
18260
18302
|
width: 20,
|
|
18261
18303
|
"aria-hidden": "true"
|
|
18262
18304
|
})), B((e) => {
|
|
18263
|
-
var n = r() ? t.hideLabel ?? "Hide password" : t.showLabel ?? "Show password", i = O("text-muted-foreground/70 hover:text-foreground absolute inset-y-0 right-0 z-10 flex items-center justify-center transition-colors",
|
|
18305
|
+
var n = r() ? t.hideLabel ?? "Hide password" : t.showLabel ?? "Show password", i = O("text-muted-foreground/70 hover:text-foreground absolute inset-y-0 right-0 z-10 flex items-center justify-center transition-colors", gO);
|
|
18264
18306
|
return n !== e.e && W(a, "aria-label", e.e = n), i !== e.t && R(a, e.t = i), e;
|
|
18265
18307
|
}, {
|
|
18266
18308
|
e: void 0,
|
|
@@ -18271,19 +18313,19 @@ var dO = /*#__PURE__*/ K("<span data-slot=password-input-leading aria-hidden=tru
|
|
|
18271
18313
|
Nt(["click"]);
|
|
18272
18314
|
//#endregion
|
|
18273
18315
|
//#region src/solid/preview-tile.tsx
|
|
18274
|
-
var
|
|
18316
|
+
var bO = /*#__PURE__*/ K("<div data-slot=preview-tile-face>"), xO = /*#__PURE__*/ K("<span data-slot=preview-tile-caption class=\"text-foreground flex min-w-0 items-center gap-1 text-xs font-medium\"><span class=truncate>"), SO = /*#__PURE__*/ K("<span data-slot=preview-tile-meta class=\"text-muted-foreground -mt-1 truncate text-[11px] leading-tight\">"), CO = /*#__PURE__*/ K("<span class=sr-only>"), wO = {
|
|
18275
18317
|
2: "grid-cols-2",
|
|
18276
18318
|
3: "grid-cols-3",
|
|
18277
18319
|
4: "grid-cols-4"
|
|
18278
|
-
},
|
|
18320
|
+
}, TO = {
|
|
18279
18321
|
wide: "aspect-[16/10]",
|
|
18280
18322
|
tile: "aspect-[5/4]"
|
|
18281
|
-
},
|
|
18282
|
-
function
|
|
18283
|
-
return z(
|
|
18323
|
+
}, EO = "relative w-full overflow-hidden rounded-lg border border-border/60 transition-glass duration-200 group-active/preview-tile:scale-[0.97] group-data-[checked]/preview-tile:border-transparent group-data-[checked]/preview-tile:ring-2 group-data-[checked]/preview-tile:ring-primary group-data-[checked]/preview-tile:ring-offset-2 group-data-[checked]/preview-tile:ring-offset-transparent group-has-[:focus-visible]/preview-tile:ring-[3px] group-has-[:focus-visible]/preview-tile:ring-ring/50";
|
|
18324
|
+
function DO(e) {
|
|
18325
|
+
return z(qD, {
|
|
18284
18326
|
"data-slot": "preview-tile-group",
|
|
18285
18327
|
get class() {
|
|
18286
|
-
return O("grid gap-2.5",
|
|
18328
|
+
return O("grid gap-2.5", wO[e.columns ?? 2], e.class);
|
|
18287
18329
|
},
|
|
18288
18330
|
get value() {
|
|
18289
18331
|
return e.value ?? "";
|
|
@@ -18299,8 +18341,8 @@ function wO(e) {
|
|
|
18299
18341
|
}
|
|
18300
18342
|
});
|
|
18301
18343
|
}
|
|
18302
|
-
function
|
|
18303
|
-
return z(
|
|
18344
|
+
function OO(e) {
|
|
18345
|
+
return z(JD, {
|
|
18304
18346
|
"data-slot": "preview-tile",
|
|
18305
18347
|
get value() {
|
|
18306
18348
|
return e.value;
|
|
@@ -18315,21 +18357,21 @@ function TO(e) {
|
|
|
18315
18357
|
},
|
|
18316
18358
|
get children() {
|
|
18317
18359
|
return [(() => {
|
|
18318
|
-
var t =
|
|
18319
|
-
return V(t, () => e.children), B(() => R(t, O(
|
|
18360
|
+
var t = bO();
|
|
18361
|
+
return V(t, () => e.children), B(() => R(t, O(EO, TO[e.shape ?? "wide"]))), t;
|
|
18320
18362
|
})(), z(k, {
|
|
18321
18363
|
get when() {
|
|
18322
18364
|
return e.caption ?? !0;
|
|
18323
18365
|
},
|
|
18324
18366
|
get fallback() {
|
|
18325
18367
|
return (() => {
|
|
18326
|
-
var t =
|
|
18368
|
+
var t = CO();
|
|
18327
18369
|
return V(t, () => e.label), t;
|
|
18328
18370
|
})();
|
|
18329
18371
|
},
|
|
18330
18372
|
get children() {
|
|
18331
18373
|
return [(() => {
|
|
18332
|
-
var t =
|
|
18374
|
+
var t = xO(), n = t.firstChild;
|
|
18333
18375
|
return V(t, z(k, {
|
|
18334
18376
|
get when() {
|
|
18335
18377
|
return e.icon;
|
|
@@ -18349,7 +18391,7 @@ function TO(e) {
|
|
|
18349
18391
|
return e.meta;
|
|
18350
18392
|
},
|
|
18351
18393
|
get children() {
|
|
18352
|
-
var t =
|
|
18394
|
+
var t = SO();
|
|
18353
18395
|
return V(t, () => e.meta), t;
|
|
18354
18396
|
}
|
|
18355
18397
|
})];
|
|
@@ -18360,14 +18402,14 @@ function TO(e) {
|
|
|
18360
18402
|
}
|
|
18361
18403
|
//#endregion
|
|
18362
18404
|
//#region node_modules/@kobalte/core/dist/chunk/OU7DYFTQ.jsx
|
|
18363
|
-
var
|
|
18364
|
-
function
|
|
18365
|
-
let e = L(
|
|
18405
|
+
var kO = A();
|
|
18406
|
+
function AO() {
|
|
18407
|
+
let e = L(kO);
|
|
18366
18408
|
if (e === void 0) throw Error("[kobalte]: `useMeterContext` must be used within a `Meter.Root` component");
|
|
18367
18409
|
return e;
|
|
18368
18410
|
}
|
|
18369
|
-
function
|
|
18370
|
-
let t =
|
|
18411
|
+
function jO(e) {
|
|
18412
|
+
let t = AO(), [n, r] = I(e, ["style"]);
|
|
18371
18413
|
return z(Q, U({
|
|
18372
18414
|
as: "div",
|
|
18373
18415
|
get style() {
|
|
@@ -18375,8 +18417,8 @@ function OO(e) {
|
|
|
18375
18417
|
}
|
|
18376
18418
|
}, () => t.dataset(), r));
|
|
18377
18419
|
}
|
|
18378
|
-
function
|
|
18379
|
-
let t =
|
|
18420
|
+
function MO(e) {
|
|
18421
|
+
let t = AO(), [n, r] = I(Z({ id: t.generateId("label") }, e), ["id"]);
|
|
18380
18422
|
return j(() => F(t.registerLabelId(n.id))), z(Q, U({
|
|
18381
18423
|
as: "span",
|
|
18382
18424
|
get id() {
|
|
@@ -18384,7 +18426,7 @@ function kO(e) {
|
|
|
18384
18426
|
}
|
|
18385
18427
|
}, () => t.dataset(), r));
|
|
18386
18428
|
}
|
|
18387
|
-
function
|
|
18429
|
+
function NO(e) {
|
|
18388
18430
|
let [t, n] = I(Z({
|
|
18389
18431
|
id: `meter-${P()}`,
|
|
18390
18432
|
value: 0,
|
|
@@ -18420,7 +18462,7 @@ function AO(e) {
|
|
|
18420
18462
|
generateId: fn(() => n.id),
|
|
18421
18463
|
registerLabelId: Oi(i)
|
|
18422
18464
|
};
|
|
18423
|
-
return z(
|
|
18465
|
+
return z(kO.Provider, {
|
|
18424
18466
|
value: d,
|
|
18425
18467
|
get children() {
|
|
18426
18468
|
return z(Q, U({
|
|
@@ -18447,50 +18489,50 @@ function AO(e) {
|
|
|
18447
18489
|
}
|
|
18448
18490
|
});
|
|
18449
18491
|
}
|
|
18450
|
-
function
|
|
18451
|
-
let t =
|
|
18492
|
+
function PO(e) {
|
|
18493
|
+
let t = AO();
|
|
18452
18494
|
return z(Q, U({ as: "div" }, () => t.dataset(), e));
|
|
18453
18495
|
}
|
|
18454
|
-
function
|
|
18455
|
-
let t =
|
|
18496
|
+
function FO(e) {
|
|
18497
|
+
let t = AO();
|
|
18456
18498
|
return z(Q, U({ as: "div" }, () => t.dataset(), e, { get children() {
|
|
18457
18499
|
return t.valueLabel();
|
|
18458
18500
|
} }));
|
|
18459
18501
|
}
|
|
18460
|
-
var
|
|
18461
|
-
Fill:
|
|
18462
|
-
Label:
|
|
18463
|
-
Track:
|
|
18464
|
-
ValueLabel:
|
|
18502
|
+
var IO = Object.assign(NO, {
|
|
18503
|
+
Fill: jO,
|
|
18504
|
+
Label: MO,
|
|
18505
|
+
Track: PO,
|
|
18506
|
+
ValueLabel: FO
|
|
18465
18507
|
});
|
|
18466
18508
|
Qr({}, {
|
|
18467
|
-
Fill: () =>
|
|
18468
|
-
Label: () =>
|
|
18469
|
-
Progress: () =>
|
|
18470
|
-
Root: () =>
|
|
18471
|
-
Track: () =>
|
|
18472
|
-
ValueLabel: () =>
|
|
18473
|
-
useProgressContext: () =>
|
|
18509
|
+
Fill: () => zO,
|
|
18510
|
+
Label: () => BO,
|
|
18511
|
+
Progress: () => WO,
|
|
18512
|
+
Root: () => VO,
|
|
18513
|
+
Track: () => HO,
|
|
18514
|
+
ValueLabel: () => UO,
|
|
18515
|
+
useProgressContext: () => RO
|
|
18474
18516
|
});
|
|
18475
|
-
var
|
|
18476
|
-
function
|
|
18477
|
-
let e = L(
|
|
18517
|
+
var LO = A();
|
|
18518
|
+
function RO() {
|
|
18519
|
+
let e = L(LO);
|
|
18478
18520
|
if (e === void 0) throw Error("[kobalte]: `useProgressContext` must be used within a `Progress.Root` component");
|
|
18479
18521
|
return e;
|
|
18480
18522
|
}
|
|
18481
|
-
function
|
|
18482
|
-
let t =
|
|
18483
|
-
return z(
|
|
18523
|
+
function zO(e) {
|
|
18524
|
+
let t = RO(), [n, r] = I(e, ["style"]);
|
|
18525
|
+
return z(IO.Fill, U({ get style() {
|
|
18484
18526
|
return on({ "--kb-progress-fill-width": t.progressFillWidth() }, n.style);
|
|
18485
18527
|
} }, () => t.dataset(), r));
|
|
18486
18528
|
}
|
|
18487
|
-
function
|
|
18488
|
-
let t =
|
|
18489
|
-
return j(() => F(t.registerLabelId(n.id))), z(
|
|
18529
|
+
function BO(e) {
|
|
18530
|
+
let t = RO(), [n, r] = I(Z({ id: t.generateId("label") }, e), ["id"]);
|
|
18531
|
+
return j(() => F(t.registerLabelId(n.id))), z(IO.Label, U({ get id() {
|
|
18490
18532
|
return n.id;
|
|
18491
18533
|
} }, () => t.dataset(), r));
|
|
18492
18534
|
}
|
|
18493
|
-
function
|
|
18535
|
+
function VO(e) {
|
|
18494
18536
|
let t = Z({
|
|
18495
18537
|
id: `progress-${P()}`,
|
|
18496
18538
|
value: 0,
|
|
@@ -18524,10 +18566,10 @@ function RO(e) {
|
|
|
18524
18566
|
generateId: fn(() => r.id),
|
|
18525
18567
|
registerLabelId: Oi(a)
|
|
18526
18568
|
};
|
|
18527
|
-
return z(
|
|
18569
|
+
return z(LO.Provider, {
|
|
18528
18570
|
value: f,
|
|
18529
18571
|
get children() {
|
|
18530
|
-
return z(
|
|
18572
|
+
return z(IO, U({
|
|
18531
18573
|
role: "progressbar",
|
|
18532
18574
|
get indeterminate() {
|
|
18533
18575
|
return n.indeterminate || !1;
|
|
@@ -18536,26 +18578,26 @@ function RO(e) {
|
|
|
18536
18578
|
}
|
|
18537
18579
|
});
|
|
18538
18580
|
}
|
|
18539
|
-
function
|
|
18540
|
-
let t =
|
|
18541
|
-
return z(
|
|
18581
|
+
function HO(e) {
|
|
18582
|
+
let t = RO();
|
|
18583
|
+
return z(IO.Track, U(() => t.dataset(), e));
|
|
18542
18584
|
}
|
|
18543
|
-
function
|
|
18544
|
-
let t =
|
|
18545
|
-
return z(
|
|
18546
|
-
}
|
|
18547
|
-
var
|
|
18548
|
-
Fill:
|
|
18549
|
-
Label:
|
|
18550
|
-
Track:
|
|
18551
|
-
ValueLabel:
|
|
18552
|
-
}),
|
|
18585
|
+
function UO(e) {
|
|
18586
|
+
let t = RO();
|
|
18587
|
+
return z(IO.ValueLabel, U(() => t.dataset(), e));
|
|
18588
|
+
}
|
|
18589
|
+
var WO = Object.assign(VO, {
|
|
18590
|
+
Fill: zO,
|
|
18591
|
+
Label: BO,
|
|
18592
|
+
Track: HO,
|
|
18593
|
+
ValueLabel: UO
|
|
18594
|
+
}), GO = (e) => {
|
|
18553
18595
|
let [t, n] = I(e, [
|
|
18554
18596
|
"class",
|
|
18555
18597
|
"value",
|
|
18556
18598
|
"tone"
|
|
18557
18599
|
]);
|
|
18558
|
-
return z(
|
|
18600
|
+
return z(WO, U({
|
|
18559
18601
|
"data-slot": "progress",
|
|
18560
18602
|
get value() {
|
|
18561
18603
|
return t.value;
|
|
@@ -18564,10 +18606,10 @@ var VO = Object.assign(RO, {
|
|
|
18564
18606
|
return O(Qe, "relative h-2 w-full overflow-hidden rounded-full", t.class);
|
|
18565
18607
|
}
|
|
18566
18608
|
}, n, { get children() {
|
|
18567
|
-
return z(
|
|
18609
|
+
return z(WO.Track, {
|
|
18568
18610
|
class: "h-full w-full",
|
|
18569
18611
|
get children() {
|
|
18570
|
-
return z(
|
|
18612
|
+
return z(WO.Fill, {
|
|
18571
18613
|
"data-slot": "progress-indicator",
|
|
18572
18614
|
class: "glass glass-tint transition-glass h-full w-full flex-1",
|
|
18573
18615
|
get style() {
|
|
@@ -18580,16 +18622,16 @@ var VO = Object.assign(RO, {
|
|
|
18580
18622
|
}
|
|
18581
18623
|
});
|
|
18582
18624
|
} }));
|
|
18583
|
-
},
|
|
18625
|
+
}, KO = /*#__PURE__*/ K("<div data-slot=resizable-panel-group>"), qO = /*#__PURE__*/ K("<div data-slot=resizable-panel>"), JO = /*#__PURE__*/ K("<div class=\"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border\">"), YO = /*#__PURE__*/ K("<div data-slot=resizable-handle>"), XO = A(), ZO = (e) => {
|
|
18584
18626
|
let [t, n] = I(e, [
|
|
18585
18627
|
"class",
|
|
18586
18628
|
"children",
|
|
18587
18629
|
"direction"
|
|
18588
18630
|
]), r = () => t.direction ?? "horizontal";
|
|
18589
|
-
return z(
|
|
18631
|
+
return z(XO.Provider, {
|
|
18590
18632
|
value: { direction: r },
|
|
18591
18633
|
get children() {
|
|
18592
|
-
var e =
|
|
18634
|
+
var e = KO();
|
|
18593
18635
|
return G(e, U({
|
|
18594
18636
|
get "data-panel-group-direction"() {
|
|
18595
18637
|
return r();
|
|
@@ -18600,7 +18642,7 @@ var VO = Object.assign(RO, {
|
|
|
18600
18642
|
}, n), !1, !0), V(e, () => t.children), e;
|
|
18601
18643
|
}
|
|
18602
18644
|
});
|
|
18603
|
-
},
|
|
18645
|
+
}, QO = (e) => {
|
|
18604
18646
|
let [t, n] = I(e, [
|
|
18605
18647
|
"class",
|
|
18606
18648
|
"children",
|
|
@@ -18610,7 +18652,7 @@ var VO = Object.assign(RO, {
|
|
|
18610
18652
|
"style"
|
|
18611
18653
|
]);
|
|
18612
18654
|
return (() => {
|
|
18613
|
-
var e =
|
|
18655
|
+
var e = qO();
|
|
18614
18656
|
return G(e, U({
|
|
18615
18657
|
get class() {
|
|
18616
18658
|
return O("flex-1 overflow-auto", t.class);
|
|
@@ -18625,8 +18667,8 @@ var VO = Object.assign(RO, {
|
|
|
18625
18667
|
}
|
|
18626
18668
|
}, n), !1, !0), V(e, () => t.children), e;
|
|
18627
18669
|
})();
|
|
18628
|
-
},
|
|
18629
|
-
let [t, n] = I(e, ["class", "withHandle"]), r = L(
|
|
18670
|
+
}, $O = (e) => {
|
|
18671
|
+
let [t, n] = I(e, ["class", "withHandle"]), r = L(XO), i = (e) => {
|
|
18630
18672
|
e.preventDefault();
|
|
18631
18673
|
let t = e.currentTarget;
|
|
18632
18674
|
t.setPointerCapture(e.pointerId);
|
|
@@ -18645,7 +18687,7 @@ var VO = Object.assign(RO, {
|
|
|
18645
18687
|
t.addEventListener("pointermove", _), t.addEventListener("pointerup", v);
|
|
18646
18688
|
};
|
|
18647
18689
|
return (() => {
|
|
18648
|
-
var e =
|
|
18690
|
+
var e = YO();
|
|
18649
18691
|
return e.$$pointerdown = i, G(e, U({
|
|
18650
18692
|
get "data-panel-group-direction"() {
|
|
18651
18693
|
return r?.direction();
|
|
@@ -18658,7 +18700,7 @@ var VO = Object.assign(RO, {
|
|
|
18658
18700
|
return t.withHandle;
|
|
18659
18701
|
},
|
|
18660
18702
|
get children() {
|
|
18661
|
-
var e =
|
|
18703
|
+
var e = JO();
|
|
18662
18704
|
return V(e, z($, {
|
|
18663
18705
|
icon: "lucide:grip-vertical",
|
|
18664
18706
|
width: 10,
|
|
@@ -18672,17 +18714,17 @@ var VO = Object.assign(RO, {
|
|
|
18672
18714
|
Nt(["pointerdown"]);
|
|
18673
18715
|
//#endregion
|
|
18674
18716
|
//#region src/solid/responsive-dialog.tsx
|
|
18675
|
-
var
|
|
18676
|
-
function
|
|
18677
|
-
let e = L(
|
|
18717
|
+
var ek = A();
|
|
18718
|
+
function tk() {
|
|
18719
|
+
let e = L(ek);
|
|
18678
18720
|
if (!e) throw Error("ResponsiveDialog parts must be used within <ResponsiveDialog>");
|
|
18679
18721
|
return e;
|
|
18680
18722
|
}
|
|
18681
|
-
var
|
|
18723
|
+
var nk = (e) => {
|
|
18682
18724
|
let [t, n] = N(e.defaultOpen ?? !1), r = Ye(), i = () => r() === !0, a = () => e.open === void 0 ? t() : e.open === !0, o = (t) => {
|
|
18683
18725
|
e.open === void 0 && n(t), e.onOpenChange?.(t);
|
|
18684
18726
|
};
|
|
18685
|
-
return z(
|
|
18727
|
+
return z(ek.Provider, {
|
|
18686
18728
|
value: {
|
|
18687
18729
|
open: a,
|
|
18688
18730
|
setOpen: o,
|
|
@@ -18694,7 +18736,7 @@ var $O = (e) => {
|
|
|
18694
18736
|
return i();
|
|
18695
18737
|
},
|
|
18696
18738
|
get fallback() {
|
|
18697
|
-
return z(
|
|
18739
|
+
return z(Zx, {
|
|
18698
18740
|
get open() {
|
|
18699
18741
|
return a();
|
|
18700
18742
|
},
|
|
@@ -18718,21 +18760,21 @@ var $O = (e) => {
|
|
|
18718
18760
|
});
|
|
18719
18761
|
}
|
|
18720
18762
|
});
|
|
18721
|
-
},
|
|
18722
|
-
let t =
|
|
18763
|
+
}, rk = (e) => {
|
|
18764
|
+
let t = tk();
|
|
18723
18765
|
return z(k, {
|
|
18724
18766
|
get when() {
|
|
18725
18767
|
return t.isMobile();
|
|
18726
18768
|
},
|
|
18727
18769
|
get fallback() {
|
|
18728
|
-
return z(
|
|
18770
|
+
return z(Qx, e);
|
|
18729
18771
|
},
|
|
18730
18772
|
get children() {
|
|
18731
18773
|
return z(Tf, e);
|
|
18732
18774
|
}
|
|
18733
18775
|
});
|
|
18734
|
-
},
|
|
18735
|
-
let t =
|
|
18776
|
+
}, ik = (e) => {
|
|
18777
|
+
let t = tk(), [n, r] = I(e, [
|
|
18736
18778
|
"class",
|
|
18737
18779
|
"children",
|
|
18738
18780
|
"size",
|
|
@@ -18744,7 +18786,7 @@ var $O = (e) => {
|
|
|
18744
18786
|
return t.isMobile();
|
|
18745
18787
|
},
|
|
18746
18788
|
get fallback() {
|
|
18747
|
-
return z(
|
|
18789
|
+
return z(nS, U({
|
|
18748
18790
|
get class() {
|
|
18749
18791
|
return n.class;
|
|
18750
18792
|
},
|
|
@@ -18776,39 +18818,39 @@ var $O = (e) => {
|
|
|
18776
18818
|
} });
|
|
18777
18819
|
}
|
|
18778
18820
|
});
|
|
18779
|
-
}, { Header:
|
|
18780
|
-
let t =
|
|
18821
|
+
}, { Header: ak, Body: ok, Footer: sk } = ks("responsive-dialog"), ck = (e) => {
|
|
18822
|
+
let t = tk();
|
|
18781
18823
|
return z(k, {
|
|
18782
18824
|
get when() {
|
|
18783
18825
|
return t.isMobile();
|
|
18784
18826
|
},
|
|
18785
18827
|
get fallback() {
|
|
18786
|
-
return z(
|
|
18828
|
+
return z(oS, e);
|
|
18787
18829
|
},
|
|
18788
18830
|
get children() {
|
|
18789
18831
|
return z(Nf, e);
|
|
18790
18832
|
}
|
|
18791
18833
|
});
|
|
18792
|
-
},
|
|
18793
|
-
let t =
|
|
18834
|
+
}, lk = (e) => {
|
|
18835
|
+
let t = tk();
|
|
18794
18836
|
return z(k, {
|
|
18795
18837
|
get when() {
|
|
18796
18838
|
return t.isMobile();
|
|
18797
18839
|
},
|
|
18798
18840
|
get fallback() {
|
|
18799
|
-
return z(
|
|
18841
|
+
return z(sS, e);
|
|
18800
18842
|
},
|
|
18801
18843
|
get children() {
|
|
18802
18844
|
return z(Pf, e);
|
|
18803
18845
|
}
|
|
18804
18846
|
});
|
|
18805
|
-
},
|
|
18847
|
+
}, uk = (e) => {
|
|
18806
18848
|
let [t, n] = I(e, [
|
|
18807
18849
|
"children",
|
|
18808
18850
|
"class",
|
|
18809
18851
|
"variant",
|
|
18810
18852
|
"size"
|
|
18811
|
-
]), r =
|
|
18853
|
+
]), r = tk();
|
|
18812
18854
|
return z(Xf, U({
|
|
18813
18855
|
"data-slot": "responsive-dialog-close",
|
|
18814
18856
|
get variant() {
|
|
@@ -18824,7 +18866,7 @@ var $O = (e) => {
|
|
|
18824
18866
|
}, n, { get children() {
|
|
18825
18867
|
return t.children ?? "Close";
|
|
18826
18868
|
} }));
|
|
18827
|
-
},
|
|
18869
|
+
}, dk = /*#__PURE__*/ K("<button><span data-slot=switch-thumb>"), fk = /*#__PURE__*/ K("<input type=hidden>"), pk = (e) => {
|
|
18828
18870
|
let [t, n] = I(e, [
|
|
18829
18871
|
"class",
|
|
18830
18872
|
"checked",
|
|
@@ -18834,7 +18876,7 @@ var $O = (e) => {
|
|
|
18834
18876
|
"name"
|
|
18835
18877
|
]), [r, i] = N(e.defaultChecked ?? !1), a = () => t.checked ?? r();
|
|
18836
18878
|
return (() => {
|
|
18837
|
-
var e =
|
|
18879
|
+
var e = dk(), r = e.firstChild;
|
|
18838
18880
|
return G(e, U(n, {
|
|
18839
18881
|
type: "button",
|
|
18840
18882
|
role: "switch",
|
|
@@ -18858,7 +18900,7 @@ var $O = (e) => {
|
|
|
18858
18900
|
}), !1, !0), V(e, (() => {
|
|
18859
18901
|
var e = H(() => !!t.name);
|
|
18860
18902
|
return () => e() && (() => {
|
|
18861
|
-
var e =
|
|
18903
|
+
var e = fk();
|
|
18862
18904
|
return B(() => W(e, "name", t.name)), B(() => e.value = a() ? "on" : "off"), e;
|
|
18863
18905
|
})();
|
|
18864
18906
|
})(), null), B((e) => {
|
|
@@ -18871,10 +18913,10 @@ var $O = (e) => {
|
|
|
18871
18913
|
})();
|
|
18872
18914
|
};
|
|
18873
18915
|
Qr({}, {
|
|
18874
|
-
Root: () =>
|
|
18875
|
-
ToggleButton: () =>
|
|
18916
|
+
Root: () => mk,
|
|
18917
|
+
ToggleButton: () => gk
|
|
18876
18918
|
});
|
|
18877
|
-
function
|
|
18919
|
+
function mk(e) {
|
|
18878
18920
|
let [t, n] = I(e, [
|
|
18879
18921
|
"children",
|
|
18880
18922
|
"pressed",
|
|
@@ -18898,7 +18940,7 @@ function dk(e) {
|
|
|
18898
18940
|
Y(e, t.onClick), r.toggle();
|
|
18899
18941
|
}
|
|
18900
18942
|
}, n, { get children() {
|
|
18901
|
-
return z(
|
|
18943
|
+
return z(hk, {
|
|
18902
18944
|
get state() {
|
|
18903
18945
|
return { pressed: r.isSelected };
|
|
18904
18946
|
},
|
|
@@ -18908,27 +18950,27 @@ function dk(e) {
|
|
|
18908
18950
|
});
|
|
18909
18951
|
} }));
|
|
18910
18952
|
}
|
|
18911
|
-
function
|
|
18953
|
+
function hk(e) {
|
|
18912
18954
|
return H(yt(() => {
|
|
18913
18955
|
let t = e.children;
|
|
18914
18956
|
return dn(t) ? t(e.state) : t;
|
|
18915
18957
|
}));
|
|
18916
18958
|
}
|
|
18917
|
-
var
|
|
18959
|
+
var gk = mk;
|
|
18918
18960
|
Qr({}, {
|
|
18919
|
-
Item: () =>
|
|
18920
|
-
Root: () =>
|
|
18921
|
-
ToggleGroup: () =>
|
|
18922
|
-
useToggleGroupContext: () =>
|
|
18961
|
+
Item: () => yk,
|
|
18962
|
+
Root: () => xk,
|
|
18963
|
+
ToggleGroup: () => Sk,
|
|
18964
|
+
useToggleGroupContext: () => vk
|
|
18923
18965
|
});
|
|
18924
|
-
var
|
|
18925
|
-
function
|
|
18926
|
-
let e = L(
|
|
18966
|
+
var _k = A();
|
|
18967
|
+
function vk() {
|
|
18968
|
+
let e = L(_k);
|
|
18927
18969
|
if (e === void 0) throw Error("[kobalte]: `useToggleGroupContext` must be used within a `ToggleGroup` component");
|
|
18928
18970
|
return e;
|
|
18929
18971
|
}
|
|
18930
|
-
function
|
|
18931
|
-
let t, n =
|
|
18972
|
+
function yk(e) {
|
|
18973
|
+
let t, n = vk(), [r, i] = I(Z({ id: n.generateId(`item-${P()}`) }, e), [
|
|
18932
18974
|
"ref",
|
|
18933
18975
|
"value",
|
|
18934
18976
|
"disabled",
|
|
@@ -18951,7 +18993,7 @@ function gk(e) {
|
|
|
18951
18993
|
selectionManager: a,
|
|
18952
18994
|
disabled: o
|
|
18953
18995
|
}, () => t);
|
|
18954
|
-
return z(
|
|
18996
|
+
return z(mk, U({
|
|
18955
18997
|
ref(e) {
|
|
18956
18998
|
var n = J((e) => t = e, r.ref);
|
|
18957
18999
|
typeof n == "function" && n(e);
|
|
@@ -18988,7 +19030,7 @@ function gk(e) {
|
|
|
18988
19030
|
}
|
|
18989
19031
|
}, i));
|
|
18990
19032
|
}
|
|
18991
|
-
function
|
|
19033
|
+
function bk(e) {
|
|
18992
19034
|
let t, [n, r] = I(Z({
|
|
18993
19035
|
id: `group-${P()}`,
|
|
18994
19036
|
selectionMode: "single",
|
|
@@ -19028,7 +19070,7 @@ function _k(e) {
|
|
|
19028
19070
|
orientation: () => n.orientation
|
|
19029
19071
|
};
|
|
19030
19072
|
return z(o, { get children() {
|
|
19031
|
-
return z(
|
|
19073
|
+
return z(_k.Provider, {
|
|
19032
19074
|
value: d,
|
|
19033
19075
|
get children() {
|
|
19034
19076
|
return z(Q, U({
|
|
@@ -19061,14 +19103,14 @@ function _k(e) {
|
|
|
19061
19103
|
});
|
|
19062
19104
|
} });
|
|
19063
19105
|
}
|
|
19064
|
-
function
|
|
19106
|
+
function xk(e) {
|
|
19065
19107
|
let [t, n] = I(e, [
|
|
19066
19108
|
"value",
|
|
19067
19109
|
"defaultValue",
|
|
19068
19110
|
"onChange",
|
|
19069
19111
|
"multiple"
|
|
19070
19112
|
]), r = M(() => t.value == null || t.multiple ? t.value : [t.value]), i = M(() => t.defaultValue == null || t.multiple ? t.defaultValue : [t.defaultValue]);
|
|
19071
|
-
return z(
|
|
19113
|
+
return z(bk, U({
|
|
19072
19114
|
get value() {
|
|
19073
19115
|
return r();
|
|
19074
19116
|
},
|
|
@@ -19083,7 +19125,7 @@ function vk(e) {
|
|
|
19083
19125
|
}
|
|
19084
19126
|
}, n));
|
|
19085
19127
|
}
|
|
19086
|
-
var
|
|
19128
|
+
var Sk = Object.assign(xk, { Item: yk }), Ck = v({
|
|
19087
19129
|
base: `${Re} aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 border border-transparent [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,
|
|
19088
19130
|
variants: {
|
|
19089
19131
|
variant: {
|
|
@@ -19100,29 +19142,29 @@ var yk = Object.assign(vk, { Item: gk }), bk = v({
|
|
|
19100
19142
|
variant: "default",
|
|
19101
19143
|
size: "default"
|
|
19102
19144
|
}
|
|
19103
|
-
}),
|
|
19145
|
+
}), wk = {
|
|
19104
19146
|
default: "not-data-[pressed]:hover:bg-muted not-data-[pressed]:hover:text-muted-foreground data-[pressed]:hover:[--glass-wash:40%]",
|
|
19105
19147
|
outline: ""
|
|
19106
|
-
},
|
|
19148
|
+
}, Tk = (e) => {
|
|
19107
19149
|
let [t, n] = I(e, [
|
|
19108
19150
|
"class",
|
|
19109
19151
|
"variant",
|
|
19110
19152
|
"size"
|
|
19111
19153
|
]);
|
|
19112
|
-
return z(
|
|
19154
|
+
return z(gk, U({
|
|
19113
19155
|
"data-slot": "toggle",
|
|
19114
19156
|
get class() {
|
|
19115
|
-
return O(
|
|
19157
|
+
return O(Ck({
|
|
19116
19158
|
variant: t.variant,
|
|
19117
19159
|
size: t.size
|
|
19118
|
-
}),
|
|
19160
|
+
}), wk[t.variant ?? "default"], "data-[pressed]:glass data-[pressed]:[--glass-tone:var(--material-accent)]", t.class);
|
|
19119
19161
|
}
|
|
19120
19162
|
}, n));
|
|
19121
|
-
},
|
|
19163
|
+
}, Ek = A({
|
|
19122
19164
|
size: "default",
|
|
19123
19165
|
variant: "default",
|
|
19124
19166
|
sliding: !0
|
|
19125
|
-
}),
|
|
19167
|
+
}), Dk = (e) => {
|
|
19126
19168
|
let [t, n] = I(e, [
|
|
19127
19169
|
"class",
|
|
19128
19170
|
"variant",
|
|
@@ -19133,7 +19175,7 @@ var yk = Object.assign(vk, { Item: gk }), bk = v({
|
|
|
19133
19175
|
]), r = () => !e.multiple, i;
|
|
19134
19176
|
return Ot(() => {
|
|
19135
19177
|
t.scroll && i && F(rh(i, "[data-pressed]", "data-pressed"));
|
|
19136
|
-
}), z(
|
|
19178
|
+
}), z(Sk, U({
|
|
19137
19179
|
ref(e) {
|
|
19138
19180
|
var t = i;
|
|
19139
19181
|
typeof t == "function" ? t(e) : i = e;
|
|
@@ -19152,7 +19194,7 @@ var yk = Object.assign(vk, { Item: gk }), bk = v({
|
|
|
19152
19194
|
return O(`group/toggle-group flex w-fit max-w-full flex-wrap items-center gap-y-1 rounded-lg ${w} p-1 data-[variant=outline]:shadow-xs`, t.scroll && "[scrollbar-width:none] flex-nowrap overflow-x-auto data-[clip-end]:[mask-image:linear-gradient(to_right,black_85%,transparent)] data-[clip-start]:[mask-image:linear-gradient(to_left,black_85%,transparent)] data-[clip-start]:data-[clip-end]:[mask-image:linear-gradient(to_right,transparent,black_15%,black_85%,transparent)]", t.class);
|
|
19153
19195
|
}
|
|
19154
19196
|
}, n, { get children() {
|
|
19155
|
-
return z(
|
|
19197
|
+
return z(Ek.Provider, {
|
|
19156
19198
|
get value() {
|
|
19157
19199
|
return {
|
|
19158
19200
|
variant: t.variant,
|
|
@@ -19190,13 +19232,13 @@ var yk = Object.assign(vk, { Item: gk }), bk = v({
|
|
|
19190
19232
|
}
|
|
19191
19233
|
});
|
|
19192
19234
|
} }));
|
|
19193
|
-
},
|
|
19235
|
+
}, Ok = (e) => {
|
|
19194
19236
|
let [t, n] = I(e, [
|
|
19195
19237
|
"class",
|
|
19196
19238
|
"variant",
|
|
19197
19239
|
"size"
|
|
19198
|
-
]), r = L(
|
|
19199
|
-
return z(
|
|
19240
|
+
]), r = L(Ek);
|
|
19241
|
+
return z(Sk.Item, U({
|
|
19200
19242
|
"data-slot": "toggle-group-item",
|
|
19201
19243
|
get "data-variant"() {
|
|
19202
19244
|
return r.variant || t.variant;
|
|
@@ -19205,79 +19247,79 @@ var yk = Object.assign(vk, { Item: gk }), bk = v({
|
|
|
19205
19247
|
return r.size || t.size;
|
|
19206
19248
|
},
|
|
19207
19249
|
get class() {
|
|
19208
|
-
return O(
|
|
19250
|
+
return O(Ck({
|
|
19209
19251
|
variant: r.variant || t.variant,
|
|
19210
19252
|
size: r.size || t.size
|
|
19211
19253
|
}), "min-w-max flex-1 shrink-0 rounded-md px-4 shadow-none focus:z-10 focus-visible:z-10 data-[variant=outline]:border-l-0 data-[variant=outline]:first-of-type:border-l", r.sliding ? "hover:text-(--material-accent)" : "data-[pressed]:bg-muted data-[pressed]:text-foreground not-data-[pressed]:hover:text-(--material-accent)", t.class);
|
|
19212
19254
|
}
|
|
19213
19255
|
}, n));
|
|
19214
|
-
},
|
|
19256
|
+
}, kk = /*#__PURE__*/ K("<ul class=\"flex list-inside list-disc flex-col gap-1\">"), Ak = /*#__PURE__*/ K("<div data-slot=schema-form>"), jk = /*#__PURE__*/ K("<li>"), Mk = /*#__PURE__*/ K("<div class=\"flex items-center gap-3\"><span class=text-sm>"), Nk = /*#__PURE__*/ K("<p class=\"text-muted-foreground text-sm\">Add at least <!> <!>."), Pk = /*#__PURE__*/ K("<fieldset data-slot=schema-form-list>"), Fk = /*#__PURE__*/ K("<span data-slot=schema-form-list-item-thumb>"), Ik = /*#__PURE__*/ K("<div data-slot=schema-form-list-row><span class=\"pointer-events-none relative min-w-0 flex-1 truncate text-left text-sm\">"), Lk = /*#__PURE__*/ K("<div class=\"border-border border-t p-3\">"), Rk = /*#__PURE__*/ K("<img alt decoding=async class=\"absolute inset-0 h-full w-full object-cover\">"), zk = /*#__PURE__*/ K("<fieldset class=\"flex w-full min-w-0 flex-col gap-3\"data-slot=schema-form-variants>"), Bk = /*#__PURE__*/ K("<div>"), Vk = /*#__PURE__*/ K("<div class=\"flex flex-wrap gap-1.5\">"), Hk = /*#__PURE__*/ K("<fieldset class=\"flex min-w-0 flex-col gap-2\"data-slot=schema-form-string-list>"), Uk = /*#__PURE__*/ K("<button type=button class=\"hover:text-destructive cursor-pointer rounded-sm\">"), Wk = [
|
|
19215
19257
|
"icon-picker",
|
|
19216
19258
|
"image-picker",
|
|
19217
19259
|
"area-picker",
|
|
19218
19260
|
"list",
|
|
19219
19261
|
"variants"
|
|
19220
|
-
],
|
|
19221
|
-
function
|
|
19262
|
+
], Gk = /* @__PURE__ */ new Set();
|
|
19263
|
+
function Kk(e, t) {
|
|
19222
19264
|
let n = e.toLowerCase();
|
|
19223
|
-
return t.type !== "string" || n !== "areaid" && n !== "area_id" ? !1 : (typeof process < "u" && process.env.NODE_ENV !== "production" && !
|
|
19224
|
-
}
|
|
19225
|
-
function Wk(e) {
|
|
19226
|
-
return e.formType === void 0 || Vk.includes(e.formType);
|
|
19227
|
-
}
|
|
19228
|
-
function Gk(e) {
|
|
19229
|
-
return typeof e == "object" && e ? e : {};
|
|
19230
|
-
}
|
|
19231
|
-
function Kk(e) {
|
|
19232
|
-
return Array.isArray(e.items) ? {} : Gk(e.items);
|
|
19265
|
+
return t.type !== "string" || n !== "areaid" && n !== "area_id" ? !1 : (typeof process < "u" && process.env.NODE_ENV !== "production" && !Gk.has(e) && (Gk.add(e), console.warn(`[SchemaForm] "${e}" renders an area picker because of its name. That fallback is removed in the next major; declare it with field.area() instead. https://glasshome.app/docs/widget-sdk/config`)), !0);
|
|
19233
19266
|
}
|
|
19234
19267
|
function qk(e) {
|
|
19235
|
-
return
|
|
19268
|
+
return e.formType === void 0 || Wk.includes(e.formType);
|
|
19236
19269
|
}
|
|
19237
19270
|
function Jk(e) {
|
|
19238
|
-
return e
|
|
19271
|
+
return typeof e == "object" && e ? e : {};
|
|
19239
19272
|
}
|
|
19240
19273
|
function Yk(e) {
|
|
19241
|
-
return e.
|
|
19274
|
+
return Array.isArray(e.items) ? {} : Jk(e.items);
|
|
19242
19275
|
}
|
|
19243
19276
|
function Xk(e) {
|
|
19244
|
-
return e.
|
|
19277
|
+
return Object.entries(e.properties ?? {}).map(([e, t]) => [e, Jk(t)]);
|
|
19245
19278
|
}
|
|
19246
19279
|
function Zk(e) {
|
|
19247
|
-
return e.type === "
|
|
19280
|
+
return e.type === "array" && Yk(e).type === "string" && e.domain !== void 0;
|
|
19248
19281
|
}
|
|
19249
19282
|
function Qk(e) {
|
|
19250
|
-
return
|
|
19283
|
+
return e.type === "array" && Yk(e).type === "string";
|
|
19251
19284
|
}
|
|
19252
19285
|
function $k(e) {
|
|
19253
|
-
return
|
|
19286
|
+
return e.type === "array" && Yk(e).enum !== void 0;
|
|
19254
19287
|
}
|
|
19255
19288
|
function eA(e) {
|
|
19256
|
-
|
|
19257
|
-
for (let [n, r] of qk(e)) r.const === void 0 ? r.default !== void 0 && (t[n] = structuredClone(r.default)) : t[n] = structuredClone(r.const);
|
|
19258
|
-
return t;
|
|
19289
|
+
return e.type === "object" && e.properties !== void 0 && e.formType === void 0;
|
|
19259
19290
|
}
|
|
19260
19291
|
function tA(e) {
|
|
19261
|
-
|
|
19262
|
-
let t = nA(e)[0];
|
|
19263
|
-
return eA(t || e);
|
|
19292
|
+
return typeof e == "object" && e ? e : {};
|
|
19264
19293
|
}
|
|
19265
19294
|
function nA(e) {
|
|
19266
|
-
return
|
|
19295
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" ? String(e) : "";
|
|
19296
|
+
}
|
|
19297
|
+
function rA(e) {
|
|
19298
|
+
let t = {};
|
|
19299
|
+
for (let [n, r] of Xk(e)) r.const === void 0 ? r.default !== void 0 && (t[n] = structuredClone(r.default)) : t[n] = structuredClone(r.const);
|
|
19300
|
+
return t;
|
|
19301
|
+
}
|
|
19302
|
+
function iA(e) {
|
|
19303
|
+
if (e.default !== void 0) return tA(structuredClone(e.default));
|
|
19304
|
+
let t = aA(e)[0];
|
|
19305
|
+
return rA(t || e);
|
|
19306
|
+
}
|
|
19307
|
+
function aA(e) {
|
|
19308
|
+
return (e.oneOf ?? e.anyOf ?? []).map(Jk).filter((e) => e.properties !== void 0);
|
|
19267
19309
|
}
|
|
19268
|
-
function
|
|
19269
|
-
let n =
|
|
19310
|
+
function oA(e, t) {
|
|
19311
|
+
let n = Jk(e.properties?.[t]);
|
|
19270
19312
|
return typeof n.const == "string" ? n.const : "";
|
|
19271
19313
|
}
|
|
19272
|
-
function
|
|
19273
|
-
let i =
|
|
19274
|
-
for (let [n] of
|
|
19314
|
+
function sA(e, t, n, r) {
|
|
19315
|
+
let i = rA(e);
|
|
19316
|
+
for (let [n] of Xk(e)) n !== t && n in r && r[n] !== void 0 && (i[n] = r[n]);
|
|
19275
19317
|
return i[t] = n, i;
|
|
19276
19318
|
}
|
|
19277
|
-
function
|
|
19319
|
+
function cA(e) {
|
|
19278
19320
|
let t = () => {
|
|
19279
19321
|
let t = e.schema;
|
|
19280
|
-
return t.type !== "object" || !t.properties ? [] :
|
|
19322
|
+
return t.type !== "object" || !t.properties ? [] : Xk(t);
|
|
19281
19323
|
}, n = (t, n) => {
|
|
19282
19324
|
e.onChange({
|
|
19283
19325
|
...e.data,
|
|
@@ -19285,12 +19327,12 @@ function aA(e) {
|
|
|
19285
19327
|
});
|
|
19286
19328
|
};
|
|
19287
19329
|
return (() => {
|
|
19288
|
-
var r =
|
|
19330
|
+
var r = Ak();
|
|
19289
19331
|
return V(r, z(mt, {
|
|
19290
19332
|
get each() {
|
|
19291
19333
|
return t();
|
|
19292
19334
|
},
|
|
19293
|
-
children: ([t, r]) => z(
|
|
19335
|
+
children: ([t, r]) => z(fA, {
|
|
19294
19336
|
id: t,
|
|
19295
19337
|
name: t,
|
|
19296
19338
|
prop: r,
|
|
@@ -19311,13 +19353,13 @@ function aA(e) {
|
|
|
19311
19353
|
tone: "destructive",
|
|
19312
19354
|
title: "Validation errors",
|
|
19313
19355
|
get children() {
|
|
19314
|
-
var t =
|
|
19356
|
+
var t = kk();
|
|
19315
19357
|
return V(t, z(mt, {
|
|
19316
19358
|
get each() {
|
|
19317
19359
|
return e.errors;
|
|
19318
19360
|
},
|
|
19319
19361
|
children: (e) => (() => {
|
|
19320
|
-
var t =
|
|
19362
|
+
var t = jk();
|
|
19321
19363
|
return V(t, e), t;
|
|
19322
19364
|
})()
|
|
19323
19365
|
})), t;
|
|
@@ -19327,25 +19369,25 @@ function aA(e) {
|
|
|
19327
19369
|
}), null), B(() => R(r, O("flex w-full min-w-0 flex-col gap-6", e.class))), r;
|
|
19328
19370
|
})();
|
|
19329
19371
|
}
|
|
19330
|
-
var
|
|
19331
|
-
["unknown", (e) => !
|
|
19372
|
+
var lA = [
|
|
19373
|
+
["unknown", (e) => !qk(e)],
|
|
19332
19374
|
["list", (e) => e.formType === "list"],
|
|
19333
19375
|
["variants", (e) => e.formType === "variants"],
|
|
19334
|
-
["entities", (e) =>
|
|
19376
|
+
["entities", (e) => Zk(e)],
|
|
19335
19377
|
["icon", (e) => e.formType === "icon-picker"],
|
|
19336
19378
|
["image", (e) => e.formType === "image-picker"],
|
|
19337
|
-
["area", (e, t) => e.formType === "area-picker" ||
|
|
19379
|
+
["area", (e, t) => e.formType === "area-picker" || Kk(t, e)],
|
|
19338
19380
|
["enum", (e) => e.enum !== void 0],
|
|
19339
19381
|
["boolean", (e) => e.type === "boolean"],
|
|
19340
19382
|
["number", (e) => e.type === "number" || e.type === "integer"],
|
|
19341
|
-
["choices", (e) =>
|
|
19342
|
-
["strings", (e) =>
|
|
19343
|
-
["group", (e) =>
|
|
19383
|
+
["choices", (e) => $k(e)],
|
|
19384
|
+
["strings", (e) => Qk(e)],
|
|
19385
|
+
["group", (e) => eA(e)]
|
|
19344
19386
|
];
|
|
19345
|
-
function
|
|
19346
|
-
return
|
|
19387
|
+
function uA(e, t) {
|
|
19388
|
+
return lA.find(([, n]) => n(e, t))?.[0] ?? "text";
|
|
19347
19389
|
}
|
|
19348
|
-
var
|
|
19390
|
+
var dA = {
|
|
19349
19391
|
text: "for",
|
|
19350
19392
|
image: "for",
|
|
19351
19393
|
number: "for",
|
|
@@ -19361,19 +19403,19 @@ var cA = {
|
|
|
19361
19403
|
unknown: "none",
|
|
19362
19404
|
group: "none"
|
|
19363
19405
|
};
|
|
19364
|
-
function
|
|
19365
|
-
let t = () =>
|
|
19406
|
+
function fA(e) {
|
|
19407
|
+
let t = () => uA(e.prop, e.name), n = () => `${e.id}-label`, r = () => dA[t()];
|
|
19366
19408
|
return z(k, {
|
|
19367
19409
|
get when() {
|
|
19368
19410
|
return t() !== "group";
|
|
19369
19411
|
},
|
|
19370
19412
|
get fallback() {
|
|
19371
|
-
return z(
|
|
19413
|
+
return z(pA, e);
|
|
19372
19414
|
},
|
|
19373
19415
|
get children() {
|
|
19374
|
-
return z(
|
|
19416
|
+
return z(YC, { get children() {
|
|
19375
19417
|
return [
|
|
19376
|
-
z(
|
|
19418
|
+
z(ZC, {
|
|
19377
19419
|
get id() {
|
|
19378
19420
|
return n();
|
|
19379
19421
|
},
|
|
@@ -19388,11 +19430,11 @@ function lA(e) {
|
|
|
19388
19430
|
get when() {
|
|
19389
19431
|
return e.prop.description;
|
|
19390
19432
|
},
|
|
19391
|
-
children: (e) => z(
|
|
19433
|
+
children: (e) => z($C, { get children() {
|
|
19392
19434
|
return e();
|
|
19393
19435
|
} })
|
|
19394
19436
|
}),
|
|
19395
|
-
z(
|
|
19437
|
+
z(pA, U(e, { get labelledBy() {
|
|
19396
19438
|
return H(() => r() === "labelledby")() ? n() : void 0;
|
|
19397
19439
|
} }))
|
|
19398
19440
|
];
|
|
@@ -19400,8 +19442,8 @@ function lA(e) {
|
|
|
19400
19442
|
}
|
|
19401
19443
|
});
|
|
19402
19444
|
}
|
|
19403
|
-
function
|
|
19404
|
-
let t = () => e.value ?? e.prop.default, n = () =>
|
|
19445
|
+
function pA(e) {
|
|
19446
|
+
let t = () => e.value ?? e.prop.default, n = () => nA(t()), r = (t) => e.prop.labels?.[t] ?? t, i = () => uA(e.prop, e.name);
|
|
19405
19447
|
return z(_t, {
|
|
19406
19448
|
get fallback() {
|
|
19407
19449
|
return z(lb, {
|
|
@@ -19434,7 +19476,7 @@ function uA(e) {
|
|
|
19434
19476
|
return i() === "list";
|
|
19435
19477
|
},
|
|
19436
19478
|
get children() {
|
|
19437
|
-
return z(
|
|
19479
|
+
return z(hA, e);
|
|
19438
19480
|
}
|
|
19439
19481
|
}),
|
|
19440
19482
|
z(gt, {
|
|
@@ -19442,7 +19484,7 @@ function uA(e) {
|
|
|
19442
19484
|
return i() === "variants";
|
|
19443
19485
|
},
|
|
19444
19486
|
get children() {
|
|
19445
|
-
return z(
|
|
19487
|
+
return z(gA, e);
|
|
19446
19488
|
}
|
|
19447
19489
|
}),
|
|
19448
19490
|
z(gt, {
|
|
@@ -19450,7 +19492,7 @@ function uA(e) {
|
|
|
19450
19492
|
return i() === "entities";
|
|
19451
19493
|
},
|
|
19452
19494
|
get children() {
|
|
19453
|
-
return z(
|
|
19495
|
+
return z(kC, {
|
|
19454
19496
|
get "aria-labelledby"() {
|
|
19455
19497
|
return e.labelledBy;
|
|
19456
19498
|
},
|
|
@@ -19475,7 +19517,7 @@ function uA(e) {
|
|
|
19475
19517
|
return i() === "icon";
|
|
19476
19518
|
},
|
|
19477
19519
|
get children() {
|
|
19478
|
-
return z(
|
|
19520
|
+
return z(qw, {
|
|
19479
19521
|
get "aria-labelledby"() {
|
|
19480
19522
|
return e.labelledBy;
|
|
19481
19523
|
},
|
|
@@ -19494,7 +19536,7 @@ function uA(e) {
|
|
|
19494
19536
|
return i() === "image";
|
|
19495
19537
|
},
|
|
19496
19538
|
get children() {
|
|
19497
|
-
return z(
|
|
19539
|
+
return z(SE, {
|
|
19498
19540
|
get id() {
|
|
19499
19541
|
return e.id;
|
|
19500
19542
|
},
|
|
@@ -19528,7 +19570,7 @@ function uA(e) {
|
|
|
19528
19570
|
get when() {
|
|
19529
19571
|
return H(() => i() === "enum")() && e.prop.icons;
|
|
19530
19572
|
},
|
|
19531
|
-
children: (t) => z(
|
|
19573
|
+
children: (t) => z(aO, {
|
|
19532
19574
|
get "aria-labelledby"() {
|
|
19533
19575
|
return e.labelledBy;
|
|
19534
19576
|
},
|
|
@@ -19542,7 +19584,7 @@ function uA(e) {
|
|
|
19542
19584
|
get each() {
|
|
19543
19585
|
return (e.prop.enum ?? []).map(String);
|
|
19544
19586
|
},
|
|
19545
|
-
children: (e) => z(
|
|
19587
|
+
children: (e) => z(oO, {
|
|
19546
19588
|
value: e,
|
|
19547
19589
|
get title() {
|
|
19548
19590
|
return r(e);
|
|
@@ -19597,8 +19639,8 @@ function uA(e) {
|
|
|
19597
19639
|
return i() === "boolean";
|
|
19598
19640
|
},
|
|
19599
19641
|
get children() {
|
|
19600
|
-
var n =
|
|
19601
|
-
return V(n, z(
|
|
19642
|
+
var n = Mk(), r = n.firstChild;
|
|
19643
|
+
return V(n, z(pk, {
|
|
19602
19644
|
get "aria-labelledby"() {
|
|
19603
19645
|
return e.labelledBy;
|
|
19604
19646
|
},
|
|
@@ -19614,7 +19656,7 @@ function uA(e) {
|
|
|
19614
19656
|
return i() === "number";
|
|
19615
19657
|
},
|
|
19616
19658
|
get children() {
|
|
19617
|
-
return z(
|
|
19659
|
+
return z(jD, {
|
|
19618
19660
|
get id() {
|
|
19619
19661
|
return e.id;
|
|
19620
19662
|
},
|
|
@@ -19639,7 +19681,7 @@ function uA(e) {
|
|
|
19639
19681
|
return i() === "choices";
|
|
19640
19682
|
},
|
|
19641
19683
|
get children() {
|
|
19642
|
-
return z(
|
|
19684
|
+
return z(_A, e);
|
|
19643
19685
|
}
|
|
19644
19686
|
}),
|
|
19645
19687
|
z(gt, {
|
|
@@ -19647,7 +19689,7 @@ function uA(e) {
|
|
|
19647
19689
|
return i() === "strings";
|
|
19648
19690
|
},
|
|
19649
19691
|
get children() {
|
|
19650
|
-
return z(
|
|
19692
|
+
return z(vA, {
|
|
19651
19693
|
get labelledBy() {
|
|
19652
19694
|
return e.labelledBy;
|
|
19653
19695
|
},
|
|
@@ -19663,7 +19705,7 @@ function uA(e) {
|
|
|
19663
19705
|
return i() === "group";
|
|
19664
19706
|
},
|
|
19665
19707
|
get children() {
|
|
19666
|
-
return z(
|
|
19708
|
+
return z(GC, {
|
|
19667
19709
|
get class() {
|
|
19668
19710
|
return O(e.bare !== !0 && "border-border rounded-lg border p-3");
|
|
19669
19711
|
},
|
|
@@ -19675,7 +19717,7 @@ function uA(e) {
|
|
|
19675
19717
|
return e.bare !== !0;
|
|
19676
19718
|
},
|
|
19677
19719
|
get children() {
|
|
19678
|
-
return z(
|
|
19720
|
+
return z(KC, {
|
|
19679
19721
|
variant: "label",
|
|
19680
19722
|
get children() {
|
|
19681
19723
|
return e.prop.title || e.name;
|
|
@@ -19687,25 +19729,25 @@ function uA(e) {
|
|
|
19687
19729
|
get when() {
|
|
19688
19730
|
return e.prop.description;
|
|
19689
19731
|
},
|
|
19690
|
-
children: (e) => z(
|
|
19732
|
+
children: (e) => z($C, { get children() {
|
|
19691
19733
|
return e();
|
|
19692
19734
|
} })
|
|
19693
19735
|
}),
|
|
19694
19736
|
z(mt, {
|
|
19695
19737
|
get each() {
|
|
19696
|
-
return
|
|
19738
|
+
return Xk(e.prop);
|
|
19697
19739
|
},
|
|
19698
|
-
children: ([n, r]) => z(
|
|
19740
|
+
children: ([n, r]) => z(fA, {
|
|
19699
19741
|
get id() {
|
|
19700
19742
|
return `${e.id}.${n}`;
|
|
19701
19743
|
},
|
|
19702
19744
|
name: n,
|
|
19703
19745
|
prop: r,
|
|
19704
19746
|
get value() {
|
|
19705
|
-
return
|
|
19747
|
+
return tA(t())[n];
|
|
19706
19748
|
},
|
|
19707
19749
|
onChange: (r) => e.onChange({
|
|
19708
|
-
...
|
|
19750
|
+
...tA(t()),
|
|
19709
19751
|
[n]: r
|
|
19710
19752
|
}),
|
|
19711
19753
|
get searchIcons() {
|
|
@@ -19722,21 +19764,21 @@ function uA(e) {
|
|
|
19722
19764
|
}
|
|
19723
19765
|
});
|
|
19724
19766
|
}
|
|
19725
|
-
var
|
|
19767
|
+
var mA = {
|
|
19726
19768
|
class: "gap-2",
|
|
19727
19769
|
px: 8
|
|
19728
19770
|
};
|
|
19729
|
-
function
|
|
19730
|
-
let t = () =>
|
|
19731
|
-
let e =
|
|
19771
|
+
function hA(e) {
|
|
19772
|
+
let t = () => Yk(e.prop), n = Qw(), [r, i] = N(/* @__PURE__ */ new Set()), a = M(() => {
|
|
19773
|
+
let e = Xk(t()).filter(([, e]) => e.formType === "image-picker");
|
|
19732
19774
|
return e.length === 1 ? e[0]?.[0] : void 0;
|
|
19733
19775
|
}), o = (e) => {
|
|
19734
19776
|
let r = a();
|
|
19735
19777
|
if (r === void 0) return;
|
|
19736
|
-
let i =
|
|
19778
|
+
let i = tA(e)[r];
|
|
19737
19779
|
if (typeof i != "string" || i === "") return;
|
|
19738
|
-
let o =
|
|
19739
|
-
if (o !== void 0) return
|
|
19780
|
+
let o = aT(i);
|
|
19781
|
+
if (o !== void 0) return Xk(t()).find(([e]) => e === r)?.[1].presets?.[o]?.thumb;
|
|
19740
19782
|
let s = n;
|
|
19741
19783
|
if (s) return s.url(i, "thumb");
|
|
19742
19784
|
}, s = (e) => {
|
|
@@ -19748,12 +19790,12 @@ function fA(e) {
|
|
|
19748
19790
|
}, l = () => e.prop.minItems ?? 0, u = () => e.prop.maxItems !== void 0 && c().length >= e.prop.maxItems, [d, f] = N(-1), p = (e) => {
|
|
19749
19791
|
let n = t();
|
|
19750
19792
|
if (n.formType !== "variants" || n.discriminator === void 0) return;
|
|
19751
|
-
let r =
|
|
19793
|
+
let r = tA(e)[n.discriminator];
|
|
19752
19794
|
if (typeof r == "string") return n.labels?.[r] ?? r;
|
|
19753
19795
|
}, m = (t) => {
|
|
19754
19796
|
let n = e.prop.labelField;
|
|
19755
19797
|
if (n === void 0) return;
|
|
19756
|
-
let r =
|
|
19798
|
+
let r = tA(t)[n];
|
|
19757
19799
|
if (typeof r == "string" && r.trim() !== "") return r;
|
|
19758
19800
|
if (typeof r == "number") return String(r);
|
|
19759
19801
|
}, h = (e, t) => m(e) ?? p(e) ?? `Item ${t + 1}`, g = (e) => m(e) === void 0 ? void 0 : p(e), _ = (t, n) => {
|
|
@@ -19766,19 +19808,19 @@ function fA(e) {
|
|
|
19766
19808
|
r.splice(n, 0, i), e.onChange(r);
|
|
19767
19809
|
let a = d();
|
|
19768
19810
|
a === t ? f(n) : a !== -1 && (t < a && n >= a ? f(a - 1) : t > a && n <= a && f(a + 1));
|
|
19769
|
-
}, b =
|
|
19811
|
+
}, b = CD({
|
|
19770
19812
|
count: () => c().length,
|
|
19771
|
-
gapPx:
|
|
19813
|
+
gapPx: mA.px,
|
|
19772
19814
|
onReorder: y,
|
|
19773
19815
|
onDragStart: (e) => {
|
|
19774
19816
|
d() === e && f(-1);
|
|
19775
19817
|
}
|
|
19776
19818
|
}), x = () => {
|
|
19777
|
-
let n = [...c(),
|
|
19819
|
+
let n = [...c(), iA(t())];
|
|
19778
19820
|
e.onChange(n), f(n.length - 1);
|
|
19779
19821
|
};
|
|
19780
19822
|
return (() => {
|
|
19781
|
-
var r =
|
|
19823
|
+
var r = Pk();
|
|
19782
19824
|
return V(r, z(ht, {
|
|
19783
19825
|
get each() {
|
|
19784
19826
|
return c();
|
|
@@ -19802,7 +19844,7 @@ function fA(e) {
|
|
|
19802
19844
|
},
|
|
19803
19845
|
get children() {
|
|
19804
19846
|
return [(() => {
|
|
19805
|
-
var e =
|
|
19847
|
+
var e = Ik(), t = e.firstChild;
|
|
19806
19848
|
return e.$$pointerdown = (e) => {
|
|
19807
19849
|
let t = e.target.closest("button");
|
|
19808
19850
|
t && t.dataset.slot !== "collapsible-trigger" || b.startDrag(u, e, !1);
|
|
@@ -19824,7 +19866,7 @@ function fA(e) {
|
|
|
19824
19866
|
return a() !== void 0 && n !== void 0;
|
|
19825
19867
|
},
|
|
19826
19868
|
get children() {
|
|
19827
|
-
var e =
|
|
19869
|
+
var e = Fk();
|
|
19828
19870
|
return V(e, z(k, {
|
|
19829
19871
|
get when() {
|
|
19830
19872
|
return s(r());
|
|
@@ -19840,7 +19882,7 @@ function fA(e) {
|
|
|
19840
19882
|
});
|
|
19841
19883
|
},
|
|
19842
19884
|
children: (e) => (() => {
|
|
19843
|
-
var t =
|
|
19885
|
+
var t = Rk();
|
|
19844
19886
|
return t.addEventListener("error", () => i((t) => new Set(t).add(e()))), B(() => W(t, "src", e())), t;
|
|
19845
19887
|
})()
|
|
19846
19888
|
})), B(() => R(e, O(Qe, "text-muted-foreground pointer-events-none relative flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-md"))), e;
|
|
@@ -19895,8 +19937,8 @@ function fA(e) {
|
|
|
19895
19937
|
}
|
|
19896
19938
|
}), null), B(() => R(e, O("relative flex min-h-11 items-center gap-1.5 py-1 pr-1.5 pl-2 select-none", "hover:bg-muted/40 transition-colors duration-(--duration-micro)"))), e;
|
|
19897
19939
|
})(), z(Uh, { get children() {
|
|
19898
|
-
var n =
|
|
19899
|
-
return V(n, z(
|
|
19940
|
+
var n = Lk();
|
|
19941
|
+
return V(n, z(fA, {
|
|
19900
19942
|
get id() {
|
|
19901
19943
|
return `${e.id}.${u}`;
|
|
19902
19944
|
},
|
|
@@ -19925,7 +19967,7 @@ function fA(e) {
|
|
|
19925
19967
|
return c().length < l();
|
|
19926
19968
|
},
|
|
19927
19969
|
get children() {
|
|
19928
|
-
var e =
|
|
19970
|
+
var e = Nk(), t = e.firstChild.nextSibling, n = t.nextSibling.nextSibling;
|
|
19929
19971
|
return n.nextSibling, V(e, l, t), V(e, () => l() === 1 ? "item" : "items", n), e;
|
|
19930
19972
|
}
|
|
19931
19973
|
}), null), V(r, z(Xf, {
|
|
@@ -19945,7 +19987,7 @@ function fA(e) {
|
|
|
19945
19987
|
}), H(() => e.prop.addLabel ?? "Add item")];
|
|
19946
19988
|
}
|
|
19947
19989
|
}), null), B((t) => {
|
|
19948
|
-
var n = e.labelledBy, i = O("flex w-full min-w-0 flex-col",
|
|
19990
|
+
var n = e.labelledBy, i = O("flex w-full min-w-0 flex-col", mA.class);
|
|
19949
19991
|
return n !== t.e && W(r, "aria-labelledby", t.e = n), i !== t.t && R(r, t.t = i), t;
|
|
19950
19992
|
}, {
|
|
19951
19993
|
e: void 0,
|
|
@@ -19953,20 +19995,20 @@ function fA(e) {
|
|
|
19953
19995
|
}), r;
|
|
19954
19996
|
})();
|
|
19955
19997
|
}
|
|
19956
|
-
function
|
|
19957
|
-
let t = () =>
|
|
19998
|
+
function gA(e) {
|
|
19999
|
+
let t = () => aA(e.prop), n = () => e.prop.discriminator ?? "", r = () => t().map((e) => oA(e, n())), i = () => tA(e.value ?? e.prop.default), a = M(() => {
|
|
19958
20000
|
let e = i()[n()];
|
|
19959
20001
|
return typeof e == "string" && r().includes(e) ? e : r()[0] ?? "";
|
|
19960
|
-
}), o = M(() => t().find((e) =>
|
|
20002
|
+
}), o = M(() => t().find((e) => oA(e, n()) === a())), s = (t) => e.prop.labels?.[t] ?? t, c = (r) => {
|
|
19961
20003
|
if (r === a()) return;
|
|
19962
|
-
let o = t().find((e) =>
|
|
19963
|
-
o && e.onChange(
|
|
20004
|
+
let o = t().find((e) => oA(e, n()) === r);
|
|
20005
|
+
o && e.onChange(sA(o, n(), r, i()));
|
|
19964
20006
|
}, l = M(() => {
|
|
19965
20007
|
let e = o();
|
|
19966
|
-
return e ?
|
|
20008
|
+
return e ? Xk(e).filter(([e]) => e !== n()) : [];
|
|
19967
20009
|
});
|
|
19968
20010
|
return (() => {
|
|
19969
|
-
var t =
|
|
20011
|
+
var t = zk();
|
|
19970
20012
|
return V(t, z(Ub, {
|
|
19971
20013
|
get value() {
|
|
19972
20014
|
return a();
|
|
@@ -20002,12 +20044,12 @@ function pA(e) {
|
|
|
20002
20044
|
},
|
|
20003
20045
|
keyed: !0,
|
|
20004
20046
|
children: (t) => (() => {
|
|
20005
|
-
var t =
|
|
20047
|
+
var t = Bk();
|
|
20006
20048
|
return V(t, z(mt, {
|
|
20007
20049
|
get each() {
|
|
20008
20050
|
return l();
|
|
20009
20051
|
},
|
|
20010
|
-
children: ([t, n]) => z(
|
|
20052
|
+
children: ([t, n]) => z(fA, {
|
|
20011
20053
|
get id() {
|
|
20012
20054
|
return `${e.id}.${t}`;
|
|
20013
20055
|
},
|
|
@@ -20029,9 +20071,9 @@ function pA(e) {
|
|
|
20029
20071
|
}), null), B(() => W(t, "aria-labelledby", e.labelledBy)), t;
|
|
20030
20072
|
})();
|
|
20031
20073
|
}
|
|
20032
|
-
function
|
|
20033
|
-
let t = () => e.value ?? e.prop.default, n = () => (
|
|
20034
|
-
return z(
|
|
20074
|
+
function _A(e) {
|
|
20075
|
+
let t = () => e.value ?? e.prop.default, n = () => (Yk(e.prop).enum ?? []).map(String), r = (t) => e.prop.labels?.[t] ?? t;
|
|
20076
|
+
return z(Dk, {
|
|
20035
20077
|
multiple: !0,
|
|
20036
20078
|
get "aria-labelledby"() {
|
|
20037
20079
|
return e.labelledBy;
|
|
@@ -20049,7 +20091,7 @@ function mA(e) {
|
|
|
20049
20091
|
get each() {
|
|
20050
20092
|
return n();
|
|
20051
20093
|
},
|
|
20052
|
-
children: (e) => z(
|
|
20094
|
+
children: (e) => z(Ok, {
|
|
20053
20095
|
value: e,
|
|
20054
20096
|
get children() {
|
|
20055
20097
|
return r(e);
|
|
@@ -20059,26 +20101,26 @@ function mA(e) {
|
|
|
20059
20101
|
}
|
|
20060
20102
|
});
|
|
20061
20103
|
}
|
|
20062
|
-
function
|
|
20104
|
+
function vA(e) {
|
|
20063
20105
|
let [t, n] = N(""), r = (t) => {
|
|
20064
20106
|
let r = t.trim();
|
|
20065
20107
|
!r || e.value.includes(r) || (e.onChange([...e.value, r]), n(""));
|
|
20066
20108
|
};
|
|
20067
20109
|
return (() => {
|
|
20068
|
-
var i =
|
|
20110
|
+
var i = Hk();
|
|
20069
20111
|
return V(i, z(k, {
|
|
20070
20112
|
get when() {
|
|
20071
20113
|
return e.value.length > 0;
|
|
20072
20114
|
},
|
|
20073
20115
|
get children() {
|
|
20074
|
-
var t =
|
|
20116
|
+
var t = Vk();
|
|
20075
20117
|
return V(t, z(mt, {
|
|
20076
20118
|
get each() {
|
|
20077
20119
|
return e.value;
|
|
20078
20120
|
},
|
|
20079
20121
|
children: (t) => z(Zd, { get children() {
|
|
20080
20122
|
return [t, (() => {
|
|
20081
|
-
var n =
|
|
20123
|
+
var n = Uk();
|
|
20082
20124
|
return n.$$click = () => e.onChange(e.value.filter((e) => e !== t)), W(n, "aria-label", `Remove ${t}`), V(n, z($, {
|
|
20083
20125
|
icon: "lucide:x",
|
|
20084
20126
|
width: 12,
|
|
@@ -20105,8 +20147,8 @@ function hA(e) {
|
|
|
20105
20147
|
Nt(["pointerdown", "click"]);
|
|
20106
20148
|
//#endregion
|
|
20107
20149
|
//#region src/solid/scope-indicator.tsx
|
|
20108
|
-
var
|
|
20109
|
-
function
|
|
20150
|
+
var yA = /*#__PURE__*/ K("<span>(<!>)");
|
|
20151
|
+
function bA(e) {
|
|
20110
20152
|
return z(Zd, {
|
|
20111
20153
|
tone: "var(--muted-foreground)",
|
|
20112
20154
|
class: "gap-1 font-mono font-normal",
|
|
@@ -20116,7 +20158,7 @@ function _A(e) {
|
|
|
20116
20158
|
H(() => e.scope),
|
|
20117
20159
|
" ",
|
|
20118
20160
|
(() => {
|
|
20119
|
-
var t =
|
|
20161
|
+
var t = yA(), n = t.firstChild.nextSibling;
|
|
20120
20162
|
return n.nextSibling, V(t, () => e.type === "personal" ? "personal" : "org", n), t;
|
|
20121
20163
|
})()
|
|
20122
20164
|
];
|
|
@@ -20125,16 +20167,16 @@ function _A(e) {
|
|
|
20125
20167
|
}
|
|
20126
20168
|
//#endregion
|
|
20127
20169
|
//#region src/solid/scroll-area.tsx
|
|
20128
|
-
var
|
|
20170
|
+
var xA = /*#__PURE__*/ K("<div data-slot=scroll-area><div data-slot=scroll-area-viewport class=\"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1\">"), SA = (e) => {
|
|
20129
20171
|
let [t, n] = I(e, ["class", "children"]);
|
|
20130
20172
|
return (() => {
|
|
20131
|
-
var e =
|
|
20173
|
+
var e = xA(), r = e.firstChild;
|
|
20132
20174
|
return G(e, U({ get class() {
|
|
20133
20175
|
return O("gh-scroll relative overflow-auto", t.class);
|
|
20134
20176
|
} }, n), !1, !0), V(r, () => t.children), e;
|
|
20135
20177
|
})();
|
|
20136
|
-
},
|
|
20137
|
-
function
|
|
20178
|
+
}, CA = (e) => null, wA = /*#__PURE__*/ K("<p data-slot=section-empty class=\"text-muted-foreground py-4 text-center text-sm\">"), TA = /*#__PURE__*/ K("<div data-slot=row-actions class=\"flex items-center gap-1\">"), EA = /*#__PURE__*/ K("<div data-slot=labeled-field class=\"flex flex-col gap-1\"><p data-slot=labeled-field-label class=\"text-sm font-medium\">");
|
|
20179
|
+
function DA(e) {
|
|
20138
20180
|
return z(Xf, {
|
|
20139
20181
|
variant: "outline",
|
|
20140
20182
|
size: "sm",
|
|
@@ -20150,15 +20192,15 @@ function wA(e) {
|
|
|
20150
20192
|
}
|
|
20151
20193
|
});
|
|
20152
20194
|
}
|
|
20153
|
-
function
|
|
20195
|
+
function OA(e) {
|
|
20154
20196
|
return (() => {
|
|
20155
|
-
var t =
|
|
20197
|
+
var t = wA();
|
|
20156
20198
|
return V(t, () => e.children), t;
|
|
20157
20199
|
})();
|
|
20158
20200
|
}
|
|
20159
|
-
function
|
|
20201
|
+
function kA(e) {
|
|
20160
20202
|
return (() => {
|
|
20161
|
-
var t =
|
|
20203
|
+
var t = TA();
|
|
20162
20204
|
return V(t, z(Xf, {
|
|
20163
20205
|
variant: "ghost",
|
|
20164
20206
|
size: "icon",
|
|
@@ -20203,19 +20245,19 @@ function EA(e) {
|
|
|
20203
20245
|
}), null), t;
|
|
20204
20246
|
})();
|
|
20205
20247
|
}
|
|
20206
|
-
function
|
|
20248
|
+
function AA(e) {
|
|
20207
20249
|
return (() => {
|
|
20208
|
-
var t =
|
|
20250
|
+
var t = EA(), n = t.firstChild;
|
|
20209
20251
|
return V(n, () => e.label), V(t, () => e.children, null), t;
|
|
20210
20252
|
})();
|
|
20211
20253
|
}
|
|
20212
|
-
function
|
|
20213
|
-
return z(
|
|
20254
|
+
function jA(e) {
|
|
20255
|
+
return z(AA, {
|
|
20214
20256
|
get label() {
|
|
20215
20257
|
return e.label;
|
|
20216
20258
|
},
|
|
20217
20259
|
get children() {
|
|
20218
|
-
return z(
|
|
20260
|
+
return z(qw, {
|
|
20219
20261
|
get value() {
|
|
20220
20262
|
return e.value;
|
|
20221
20263
|
},
|
|
@@ -20232,8 +20274,8 @@ function OA(e) {
|
|
|
20232
20274
|
}
|
|
20233
20275
|
});
|
|
20234
20276
|
}
|
|
20235
|
-
function
|
|
20236
|
-
return z(
|
|
20277
|
+
function MA(e) {
|
|
20278
|
+
return z(AA, {
|
|
20237
20279
|
get label() {
|
|
20238
20280
|
return e.label;
|
|
20239
20281
|
},
|
|
@@ -20250,9 +20292,9 @@ function kA(e) {
|
|
|
20250
20292
|
}
|
|
20251
20293
|
});
|
|
20252
20294
|
}
|
|
20253
|
-
function
|
|
20295
|
+
function NA(e) {
|
|
20254
20296
|
let t = P();
|
|
20255
|
-
return z(
|
|
20297
|
+
return z(YC, {
|
|
20256
20298
|
orientation: "horizontal",
|
|
20257
20299
|
class: "py-2",
|
|
20258
20300
|
get "data-disabled"() {
|
|
@@ -20279,7 +20321,7 @@ function AA(e) {
|
|
|
20279
20321
|
return e.description;
|
|
20280
20322
|
},
|
|
20281
20323
|
get fallback() {
|
|
20282
|
-
return z(
|
|
20324
|
+
return z(ZC, {
|
|
20283
20325
|
for: t,
|
|
20284
20326
|
class: "cursor-pointer",
|
|
20285
20327
|
get children() {
|
|
@@ -20287,14 +20329,14 @@ function AA(e) {
|
|
|
20287
20329
|
}
|
|
20288
20330
|
});
|
|
20289
20331
|
},
|
|
20290
|
-
children: (n) => z(
|
|
20291
|
-
return [z(
|
|
20332
|
+
children: (n) => z(XC, { get children() {
|
|
20333
|
+
return [z(ZC, {
|
|
20292
20334
|
for: t,
|
|
20293
20335
|
class: "cursor-pointer",
|
|
20294
20336
|
get children() {
|
|
20295
20337
|
return e.label;
|
|
20296
20338
|
}
|
|
20297
|
-
}), z(
|
|
20339
|
+
}), z($C, {
|
|
20298
20340
|
class: "text-xs",
|
|
20299
20341
|
get children() {
|
|
20300
20342
|
return n();
|
|
@@ -20302,7 +20344,7 @@ function AA(e) {
|
|
|
20302
20344
|
})];
|
|
20303
20345
|
} })
|
|
20304
20346
|
}),
|
|
20305
|
-
z(
|
|
20347
|
+
z(pk, {
|
|
20306
20348
|
id: t,
|
|
20307
20349
|
get checked() {
|
|
20308
20350
|
return e.checked;
|
|
@@ -20323,14 +20365,14 @@ function AA(e) {
|
|
|
20323
20365
|
}
|
|
20324
20366
|
//#endregion
|
|
20325
20367
|
//#region src/solid/sheet.tsx
|
|
20326
|
-
var
|
|
20368
|
+
var PA = /*#__PURE__*/ K("<div data-slot=sheet-content-above class=\"flex w-full shrink-0 items-end justify-center\">"), FA = (e) => z(rs, U(e, { preventScroll: !1 })), IA = (e) => z(rs.Trigger, U({ "data-slot": "sheet-trigger" }, e)), LA = js("sheet-close"), RA = (e) => {
|
|
20327
20369
|
let [t, n] = I(e, [
|
|
20328
20370
|
"class",
|
|
20329
20371
|
"variant",
|
|
20330
20372
|
"size",
|
|
20331
20373
|
"children"
|
|
20332
20374
|
]);
|
|
20333
|
-
return z(
|
|
20375
|
+
return z(LA, U({ get class() {
|
|
20334
20376
|
return O(f({
|
|
20335
20377
|
variant: t.variant ?? "outline",
|
|
20336
20378
|
size: t.size
|
|
@@ -20338,7 +20380,7 @@ var jA = /*#__PURE__*/ K("<div data-slot=sheet-content-above class=\"flex w-full
|
|
|
20338
20380
|
} }, n, { get children() {
|
|
20339
20381
|
return t.children ?? "Close";
|
|
20340
20382
|
} }));
|
|
20341
|
-
},
|
|
20383
|
+
}, zA = (e) => {
|
|
20342
20384
|
let [t, n] = I(e, ["class"]);
|
|
20343
20385
|
return z(rs.Overlay, U({
|
|
20344
20386
|
"data-slot": "sheet-overlay",
|
|
@@ -20346,20 +20388,20 @@ var jA = /*#__PURE__*/ K("<div data-slot=sheet-content-above class=\"flex w-full
|
|
|
20346
20388
|
return O(`${y} pointer-events-auto fixed inset-0 select-none ${qe.overlay} ${c}`, t.class);
|
|
20347
20389
|
}
|
|
20348
20390
|
}, n));
|
|
20349
|
-
},
|
|
20391
|
+
}, BA = `${ne} [--glass-sheen:600px_300px]`, VA = `fixed ${qe.overlay} flex flex-col overflow-hidden rounded-lg ${BA} transition ease-in-out focus:outline-none focus-visible:outline-none data-[closed]:animate-out data-[expanded]:animate-in data-[closed]:duration-300 data-[expanded]:duration-500`, HA = {
|
|
20350
20392
|
right: "data-[closed]:slide-out-to-right data-[expanded]:slide-in-from-right inset-y-3 right-3 w-3/4 sm:max-w-sm",
|
|
20351
20393
|
left: "data-[closed]:slide-out-to-left data-[expanded]:slide-in-from-left inset-y-3 left-3 w-3/4 sm:max-w-sm",
|
|
20352
20394
|
top: `data-[closed]:slide-out-to-top data-[expanded]:slide-in-from-top inset-x-3 top-3 ${gs}`,
|
|
20353
20395
|
bottom: `data-[closed]:slide-out-to-bottom data-[expanded]:slide-in-from-bottom inset-x-3 bottom-3 ${gs}`
|
|
20354
|
-
},
|
|
20396
|
+
}, UA = (e) => z(k, {
|
|
20355
20397
|
get when() {
|
|
20356
20398
|
return e.above;
|
|
20357
20399
|
},
|
|
20358
20400
|
get children() {
|
|
20359
|
-
var t =
|
|
20401
|
+
var t = PA();
|
|
20360
20402
|
return V(t, () => e.above), t;
|
|
20361
20403
|
}
|
|
20362
|
-
}),
|
|
20404
|
+
}), WA = (e) => {
|
|
20363
20405
|
let [t, n] = I(e, [
|
|
20364
20406
|
"class",
|
|
20365
20407
|
"children",
|
|
@@ -20370,7 +20412,7 @@ var jA = /*#__PURE__*/ K("<div data-slot=sheet-content-above class=\"flex w-full
|
|
|
20370
20412
|
return z(rs.Portal, { get children() {
|
|
20371
20413
|
return [
|
|
20372
20414
|
z(Ms, {}),
|
|
20373
|
-
z(
|
|
20415
|
+
z(zA, {}),
|
|
20374
20416
|
z(rs.Content, U({
|
|
20375
20417
|
"data-slot": "sheet-content",
|
|
20376
20418
|
role: "dialog",
|
|
@@ -20378,17 +20420,17 @@ var jA = /*#__PURE__*/ K("<div data-slot=sheet-content-above class=\"flex w-full
|
|
|
20378
20420
|
return H(() => !!r.titleId())() ? void 0 : t.ariaLabel;
|
|
20379
20421
|
},
|
|
20380
20422
|
get class() {
|
|
20381
|
-
return O(
|
|
20423
|
+
return O(VA, HA[t.side ?? "right"], t.class);
|
|
20382
20424
|
},
|
|
20383
20425
|
onOpenAutoFocus: (e) => e.preventDefault()
|
|
20384
20426
|
}, n, { get children() {
|
|
20385
|
-
return [z(
|
|
20427
|
+
return [z(UA, { get above() {
|
|
20386
20428
|
return t.above;
|
|
20387
20429
|
} }), H(() => t.children)];
|
|
20388
20430
|
} }))
|
|
20389
20431
|
];
|
|
20390
20432
|
} });
|
|
20391
|
-
}, { Header:
|
|
20433
|
+
}, { Header: GA, Body: KA, Footer: qA } = ks("sheet"), JA = (e) => {
|
|
20392
20434
|
let [t, n] = I(e, ["class"]);
|
|
20393
20435
|
return z(rs.Title, U({
|
|
20394
20436
|
"data-slot": "sheet-title",
|
|
@@ -20396,7 +20438,7 @@ var jA = /*#__PURE__*/ K("<div data-slot=sheet-content-above class=\"flex w-full
|
|
|
20396
20438
|
return O(Ds, t.class);
|
|
20397
20439
|
}
|
|
20398
20440
|
}, n));
|
|
20399
|
-
},
|
|
20441
|
+
}, YA = (e) => {
|
|
20400
20442
|
let [t, n] = I(e, ["class"]);
|
|
20401
20443
|
return z(rs.Description, U({
|
|
20402
20444
|
"data-slot": "sheet-description",
|
|
@@ -20404,7 +20446,7 @@ var jA = /*#__PURE__*/ K("<div data-slot=sheet-content-above class=\"flex w-full
|
|
|
20404
20446
|
return O(Os, t.class);
|
|
20405
20447
|
}
|
|
20406
20448
|
}, n));
|
|
20407
|
-
},
|
|
20449
|
+
}, XA = /*#__PURE__*/ K("<span data-slot=slider-marker class=\"pointer-events-none absolute top-1/2 h-3 w-0.5 -translate-x-1/2 -translate-y-1/2 rounded-full\"style=\"background:color-mix(in oklab, var(--foreground) 60%, transparent)\">"), ZA = (e) => {
|
|
20408
20450
|
let [t] = I(e, [
|
|
20409
20451
|
"value",
|
|
20410
20452
|
"defaultValue",
|
|
@@ -20486,7 +20528,7 @@ var jA = /*#__PURE__*/ K("<div data-slot=sheet-content-above class=\"flex w-full
|
|
|
20486
20528
|
return t.markers ?? [];
|
|
20487
20529
|
},
|
|
20488
20530
|
children: (e) => (() => {
|
|
20489
|
-
var t =
|
|
20531
|
+
var t = XA();
|
|
20490
20532
|
return B((r) => It(t, "left", `${n(e())}%`)), t;
|
|
20491
20533
|
})()
|
|
20492
20534
|
}),
|
|
@@ -20521,7 +20563,7 @@ var jA = /*#__PURE__*/ K("<div data-slot=sheet-content-above class=\"flex w-full
|
|
|
20521
20563
|
};
|
|
20522
20564
|
//#endregion
|
|
20523
20565
|
//#region src/lib/spotlight-geometry.ts
|
|
20524
|
-
function
|
|
20566
|
+
function QA(e, t, n, r) {
|
|
20525
20567
|
let i = t ? {
|
|
20526
20568
|
x: t.x - n,
|
|
20527
20569
|
y: t.y - n,
|
|
@@ -20535,8 +20577,8 @@ function YA(e, t, n, r) {
|
|
|
20535
20577
|
}, a = Math.max(0, Math.min(r, i.width / 2, i.height / 2)), o = i.x, s = i.y, c = i.x + i.width, l = i.y + i.height;
|
|
20536
20578
|
return `M0 0H${e.width}V${e.height}H0ZM${o + a} ${s}H${c - a}A${a} ${a} 0 0 1 ${c} ${s + a}V${l - a}A${a} ${a} 0 0 1 ${c - a} ${l}H${o + a}A${a} ${a} 0 0 1 ${o} ${l - a}V${s + a}A${a} ${a} 0 0 1 ${o + a} ${s}Z`;
|
|
20537
20579
|
}
|
|
20538
|
-
var
|
|
20539
|
-
function
|
|
20580
|
+
var $A = (e, t, n) => Math.min(Math.max(e, t), n), ej = 28.4;
|
|
20581
|
+
function tj(e, t, n, r, i) {
|
|
20540
20582
|
if (!t) return {
|
|
20541
20583
|
x: (e.width - n.width) / 2,
|
|
20542
20584
|
y: (e.height - n.height) / 2,
|
|
@@ -20545,33 +20587,33 @@ function QA(e, t, n, r, i) {
|
|
|
20545
20587
|
};
|
|
20546
20588
|
let a = t.x + t.width / 2 - n.width / 2;
|
|
20547
20589
|
if (t.height > e.height / 2) return {
|
|
20548
|
-
x:
|
|
20549
|
-
y:
|
|
20590
|
+
x: $A(a, i, e.width - n.width - i),
|
|
20591
|
+
y: $A(t.y + r, i, e.height - n.height - i),
|
|
20550
20592
|
side: "inside",
|
|
20551
20593
|
tail: null
|
|
20552
20594
|
};
|
|
20553
|
-
let o = t.y + t.height / 2 > e.height / 2 ? "above" : "below", s = o === "above" ? t.y - r - n.height : t.y + t.height + r, c =
|
|
20595
|
+
let o = t.y + t.height / 2 > e.height / 2 ? "above" : "below", s = o === "above" ? t.y - r - n.height : t.y + t.height + r, c = $A(a, i, e.width - n.width - i), l = t.x + t.width / 2;
|
|
20554
20596
|
return {
|
|
20555
20597
|
x: c,
|
|
20556
|
-
y:
|
|
20598
|
+
y: $A(s, i, e.height - n.height - i),
|
|
20557
20599
|
side: o,
|
|
20558
|
-
tail: { x:
|
|
20600
|
+
tail: { x: $A(l - c, ej, n.width - ej) }
|
|
20559
20601
|
};
|
|
20560
20602
|
}
|
|
20561
20603
|
//#endregion
|
|
20562
20604
|
//#region src/solid/spotlight.tsx
|
|
20563
|
-
var
|
|
20564
|
-
function
|
|
20605
|
+
var nj = /*#__PURE__*/ K("<div data-slot=spotlight-scrim data-expanded aria-hidden=true>"), rj = /*#__PURE__*/ K("<div data-slot=spotlight-bubble><div data-slot=spotlight-panel>"), ij = /*#__PURE__*/ K("<div data-slot=spotlight-tail aria-hidden=true style=width:20px;height:20px>"), aj = 8, oj = 12, sj = 12, cj = 12, lj = 20, uj = 384, dj = sj + lj * Math.SQRT2 / 2;
|
|
20606
|
+
function fj(e, t) {
|
|
20565
20607
|
return e === t ? !0 : !e || !t ? !1 : Object.keys(e).every((n) => e[n] === t[n]);
|
|
20566
20608
|
}
|
|
20567
|
-
var
|
|
20568
|
-
let [t, n] = N(null, { equals:
|
|
20609
|
+
var pj = (e) => {
|
|
20610
|
+
let [t, n] = N(null, { equals: fj }), [r, a] = N(null, { equals: fj }), [o, s] = N({
|
|
20569
20611
|
width: window.innerWidth,
|
|
20570
20612
|
height: window.innerHeight
|
|
20571
|
-
}, { equals:
|
|
20572
|
-
width:
|
|
20613
|
+
}, { equals: fj }), [l, u] = N({
|
|
20614
|
+
width: uj,
|
|
20573
20615
|
height: 96
|
|
20574
|
-
}, { equals:
|
|
20616
|
+
}, { equals: fj }), d, f = () => e.anchor ?? e.target, p = (e) => {
|
|
20575
20617
|
let t = e?.getBoundingClientRect();
|
|
20576
20618
|
return t ? {
|
|
20577
20619
|
x: t.left,
|
|
@@ -20588,7 +20630,7 @@ var uj = (e) => {
|
|
|
20588
20630
|
n(t);
|
|
20589
20631
|
let r = f();
|
|
20590
20632
|
a(r === e.target ? t : p(r)), d && u({
|
|
20591
|
-
width: d.offsetWidth ||
|
|
20633
|
+
width: d.offsetWidth || uj,
|
|
20592
20634
|
height: d.offsetHeight || 96
|
|
20593
20635
|
});
|
|
20594
20636
|
};
|
|
@@ -20612,16 +20654,16 @@ var uj = (e) => {
|
|
|
20612
20654
|
window.removeEventListener("resize", m), window.removeEventListener("scroll", m, { capture: !0 }), document.removeEventListener("keydown", t);
|
|
20613
20655
|
});
|
|
20614
20656
|
});
|
|
20615
|
-
let h = () =>
|
|
20657
|
+
let h = () => tj(o(), r(), l(), dj, cj);
|
|
20616
20658
|
return z(jt, { get children() {
|
|
20617
20659
|
return [z(k, {
|
|
20618
20660
|
get when() {
|
|
20619
20661
|
return e.scrim;
|
|
20620
20662
|
},
|
|
20621
20663
|
get children() {
|
|
20622
|
-
var n =
|
|
20664
|
+
var n = nj();
|
|
20623
20665
|
return B((r) => {
|
|
20624
|
-
var a = O("fixed inset-0", c, qe.overlay, y, i, !t() && !e.blocking && "pointer-events-none"), s = `path(evenodd, "${
|
|
20666
|
+
var a = O("fixed inset-0", c, qe.overlay, y, i, !t() && !e.blocking && "pointer-events-none"), s = `path(evenodd, "${QA(o(), t(), e.pad ?? aj, oj)}")`;
|
|
20625
20667
|
return a !== r.e && R(n, r.e = a), s !== r.t && It(n, "clip-path", r.t = s), r;
|
|
20626
20668
|
}, {
|
|
20627
20669
|
e: void 0,
|
|
@@ -20629,16 +20671,16 @@ var uj = (e) => {
|
|
|
20629
20671
|
}), n;
|
|
20630
20672
|
}
|
|
20631
20673
|
}), (() => {
|
|
20632
|
-
var t =
|
|
20674
|
+
var t = rj(), n = t.firstChild, r = d;
|
|
20633
20675
|
return typeof r == "function" ? Rt(r, t) : d = t, V(t, z(k, {
|
|
20634
20676
|
get when() {
|
|
20635
20677
|
return h().tail;
|
|
20636
20678
|
},
|
|
20637
20679
|
children: (e) => (() => {
|
|
20638
|
-
var t =
|
|
20680
|
+
var t = ij();
|
|
20639
20681
|
return B((n) => {
|
|
20640
20682
|
var r = h().side, i = O(at, "absolute rotate-45 rounded-[2px]"), a = {
|
|
20641
|
-
left: `${e().x -
|
|
20683
|
+
left: `${e().x - lj / 2}px`,
|
|
20642
20684
|
...h().side === "above" ? { bottom: `${-20 / 2}px` } : { top: `${-20 / 2}px` }
|
|
20643
20685
|
};
|
|
20644
20686
|
return r !== n.e && W(t, "data-side", n.e = r), i !== n.t && R(t, n.t = i), n.a = Lt(t, a, n.a), n;
|
|
@@ -20659,17 +20701,17 @@ var uj = (e) => {
|
|
|
20659
20701
|
}), t;
|
|
20660
20702
|
})()];
|
|
20661
20703
|
} });
|
|
20662
|
-
},
|
|
20663
|
-
function
|
|
20704
|
+
}, mj = /*#__PURE__*/ K("<div data-slot=step-indicator><span class=sr-only>"), hj = /*#__PURE__*/ K("<span data-slot=step-indicator-segment>");
|
|
20705
|
+
function gj(e) {
|
|
20664
20706
|
let t = () => Array.from({ length: Math.max(e.count, 0) }, (e, t) => t);
|
|
20665
20707
|
return (() => {
|
|
20666
|
-
var n =
|
|
20708
|
+
var n = mj(), r = n.firstChild;
|
|
20667
20709
|
return V(r, () => `Step ${e.index + 1} of ${e.count}`), V(n, z(mt, {
|
|
20668
20710
|
get each() {
|
|
20669
20711
|
return t();
|
|
20670
20712
|
},
|
|
20671
20713
|
children: (t) => (() => {
|
|
20672
|
-
var n =
|
|
20714
|
+
var n = hj();
|
|
20673
20715
|
return B((r) => {
|
|
20674
20716
|
var i = t === e.index ? "step" : void 0, a = O(Xe, "w-6", t <= e.index && "glass glass-tint [--glass-tone:var(--material-accent)] [--glass-wash:70%] [--glass-drop:0%]");
|
|
20675
20717
|
return i !== r.e && W(n, "aria-current", r.e = i), a !== r.t && R(n, r.t = a), r;
|
|
@@ -20683,9 +20725,9 @@ function pj(e) {
|
|
|
20683
20725
|
}
|
|
20684
20726
|
//#endregion
|
|
20685
20727
|
//#region src/solid/swatch-picker.tsx
|
|
20686
|
-
var
|
|
20687
|
-
function
|
|
20688
|
-
return z(
|
|
20728
|
+
var _j = /*#__PURE__*/ K("<span data-slot=swatch-picker-swatch class=\"border-foreground/15 transition-glass group-has-[:focus-visible]/swatch:ring-ring/50 group-data-[checked]/swatch:ring-foreground block aspect-square w-full max-w-9 rounded-full border duration-200 group-active/swatch:scale-90 group-has-[:focus-visible]/swatch:ring-[3px] group-data-[checked]/swatch:ring-2 group-data-[checked]/swatch:ring-offset-2 group-data-[checked]/swatch:ring-offset-transparent\">"), vj = /*#__PURE__*/ K("<span class=sr-only>");
|
|
20729
|
+
function yj(e) {
|
|
20730
|
+
return z(qD, {
|
|
20689
20731
|
"data-slot": "swatch-picker",
|
|
20690
20732
|
get class() {
|
|
20691
20733
|
return O("grid auto-cols-fr grid-flow-col items-center gap-2", e.class);
|
|
@@ -20704,17 +20746,17 @@ function gj(e) {
|
|
|
20704
20746
|
get each() {
|
|
20705
20747
|
return e.colors;
|
|
20706
20748
|
},
|
|
20707
|
-
children: (t, n) => z(
|
|
20749
|
+
children: (t, n) => z(JD, {
|
|
20708
20750
|
"data-slot": "swatch-picker-item",
|
|
20709
20751
|
value: t,
|
|
20710
20752
|
showControl: !1,
|
|
20711
20753
|
class: "group/swatch",
|
|
20712
20754
|
get children() {
|
|
20713
20755
|
return [(() => {
|
|
20714
|
-
var e =
|
|
20756
|
+
var e = _j();
|
|
20715
20757
|
return It(e, "background", t), e;
|
|
20716
20758
|
})(), (() => {
|
|
20717
|
-
var r =
|
|
20759
|
+
var r = vj();
|
|
20718
20760
|
return V(r, () => e.labelOf?.(t, n()) ?? `Colour ${n() + 1}`), r;
|
|
20719
20761
|
})()];
|
|
20720
20762
|
}
|
|
@@ -20725,46 +20767,46 @@ function gj(e) {
|
|
|
20725
20767
|
}
|
|
20726
20768
|
//#endregion
|
|
20727
20769
|
//#region src/solid/textarea.tsx
|
|
20728
|
-
var
|
|
20770
|
+
var bj = /*#__PURE__*/ K("<textarea data-slot=textarea>"), xj = (e) => {
|
|
20729
20771
|
let [t, n] = I(e, ["class"]);
|
|
20730
20772
|
return (() => {
|
|
20731
|
-
var e =
|
|
20773
|
+
var e = bj();
|
|
20732
20774
|
return G(e, U({ get class() {
|
|
20733
20775
|
return O(xe, "field-sizing-content min-h-16 py-2", t.class);
|
|
20734
20776
|
} }, n), !1, !1), e;
|
|
20735
20777
|
})();
|
|
20736
|
-
},
|
|
20737
|
-
function
|
|
20778
|
+
}, Sj = /*#__PURE__*/ K("<span class=\"text-primary inline-flex items-center\"title=\"Official GlassHome widget\"><svg width=14 height=14 viewBox=\"0 0 24 24\"fill=currentColor aria-hidden=true><path d=\"M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12m-13 5l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z\"></path></svg><span class=sr-only>Official"), Cj = /*#__PURE__*/ K("<span class=\"text-muted-foreground inline-flex items-center\"title=\"Community widget\"><svg width=14 height=14 viewBox=\"0 0 24 24\"fill=currentColor aria-hidden=true><path d=\"M12 5.5A3.5 3.5 0 0 1 15.5 9a3.5 3.5 0 0 1-3.5 3.5A3.5 3.5 0 0 1 8.5 9 3.5 3.5 0 0 1 12 5.5M5 8c.56 0 1.08.15 1.53.42-.15 1.43.27 2.85 1.13 3.96C7.16 13.34 6.16 14 5 14a3 3 0 0 1-3-3 3 3 0 0 1 3-3m14 0a3 3 0 0 1 3 3 3 3 0 0 1-3 3c-1.16 0-2.16-.66-2.66-1.62a5.54 5.54 0 0 0 1.13-3.96c.45-.27.97-.42 1.53-.42M5.5 18.25c0-2.07 2.91-3.75 6.5-3.75s6.5 1.68 6.5 3.75V20h-13v-1.75M0 20v-1.5c0-1.39 1.89-2.56 4.45-2.9-.59.68-.95 1.62-.95 2.65V20H0m24 0h-3.5v-1.75c0-1.03-.36-1.97-.95-2.65 2.56.34 4.45 1.51 4.45 2.9V20Z\"></path></svg><span class=sr-only>Community");
|
|
20779
|
+
function wj(e) {
|
|
20738
20780
|
return z(k, {
|
|
20739
20781
|
get when() {
|
|
20740
20782
|
return e.isOfficial;
|
|
20741
20783
|
},
|
|
20742
20784
|
get fallback() {
|
|
20743
|
-
return
|
|
20785
|
+
return Cj();
|
|
20744
20786
|
},
|
|
20745
20787
|
get children() {
|
|
20746
|
-
return
|
|
20788
|
+
return Sj();
|
|
20747
20789
|
}
|
|
20748
20790
|
});
|
|
20749
20791
|
}
|
|
20750
20792
|
//#endregion
|
|
20751
20793
|
//#region src/solid/widget-identity.tsx
|
|
20752
|
-
var
|
|
20753
|
-
function
|
|
20794
|
+
var Tj = /*#__PURE__*/ K("<span class=\"text-muted-foreground shrink-0 font-mono text-xs tabular-nums\">v"), Ej = /*#__PURE__*/ K("<div data-slot=widget-identity><div data-slot=widget-identity-headings class=\"flex min-w-0 flex-1 flex-col gap-0.5\"><div data-slot=widget-identity-headline class=\"flex items-center gap-2\"></div><div data-slot=widget-identity-scope class=\"flex min-w-0 flex-wrap items-center gap-1.5\"><span class=\"text-muted-foreground truncate font-mono text-xs\">@<!>/"), Dj = /*#__PURE__*/ K("<span class=\"flex items-center gap-1 tabular-nums\">"), Oj = /*#__PURE__*/ K("<span class=\"flex items-center gap-1 tabular-nums\"> versions"), kj = /*#__PURE__*/ K("<span class=tabular-nums>v"), Aj = /*#__PURE__*/ K("<div data-slot=widget-meta>");
|
|
20795
|
+
function jj(e) {
|
|
20754
20796
|
return `/widgets/@${e.scope}/${e.name}`;
|
|
20755
20797
|
}
|
|
20756
|
-
function
|
|
20798
|
+
function Mj(e) {
|
|
20757
20799
|
let t = e ?? 0;
|
|
20758
20800
|
return t >= 1e6 ? `${(t / 1e6).toFixed(1)}M` : t >= 1e3 ? `${(t / 1e3).toFixed(1)}k` : t.toString();
|
|
20759
20801
|
}
|
|
20760
|
-
function
|
|
20802
|
+
function Nj(e) {
|
|
20761
20803
|
let t = Et({
|
|
20762
20804
|
iconSize: "sm",
|
|
20763
20805
|
showVersionInline: !0
|
|
20764
20806
|
}, e);
|
|
20765
20807
|
return (() => {
|
|
20766
|
-
var e =
|
|
20767
|
-
return o.nextSibling, V(e, z(
|
|
20808
|
+
var e = Ej(), n = e.firstChild, r = n.firstChild, i = r.nextSibling, a = i.firstChild, o = a.firstChild.nextSibling;
|
|
20809
|
+
return o.nextSibling, V(e, z(iE, {
|
|
20768
20810
|
get size() {
|
|
20769
20811
|
return t.iconSize;
|
|
20770
20812
|
},
|
|
@@ -20784,7 +20826,7 @@ function Aj(e) {
|
|
|
20784
20826
|
} })
|
|
20785
20827
|
});
|
|
20786
20828
|
}
|
|
20787
|
-
}), n), V(r, z(
|
|
20829
|
+
}), n), V(r, z(sE, {
|
|
20788
20830
|
class: "truncate",
|
|
20789
20831
|
get children() {
|
|
20790
20832
|
return t.widget.displayName || t.widget.name;
|
|
@@ -20794,10 +20836,10 @@ function Aj(e) {
|
|
|
20794
20836
|
return H(() => !!t.showVersionInline)() && t.widget.latestVersion;
|
|
20795
20837
|
},
|
|
20796
20838
|
get children() {
|
|
20797
|
-
var e =
|
|
20839
|
+
var e = Tj();
|
|
20798
20840
|
return e.firstChild, V(e, () => t.widget.latestVersion, null), e;
|
|
20799
20841
|
}
|
|
20800
|
-
}), null), V(r, z(
|
|
20842
|
+
}), null), V(r, z(wj, { get isOfficial() {
|
|
20801
20843
|
return !!t.widget.isOfficial;
|
|
20802
20844
|
} }), null), V(r, z(k, {
|
|
20803
20845
|
get when() {
|
|
@@ -20824,7 +20866,7 @@ function Aj(e) {
|
|
|
20824
20866
|
return t.showScopeIndicator;
|
|
20825
20867
|
},
|
|
20826
20868
|
get children() {
|
|
20827
|
-
return z(
|
|
20869
|
+
return z(bA, {
|
|
20828
20870
|
get scope() {
|
|
20829
20871
|
return t.widget.scope;
|
|
20830
20872
|
},
|
|
@@ -20836,28 +20878,28 @@ function Aj(e) {
|
|
|
20836
20878
|
}), null), B(() => R(e, O("flex min-w-0 items-center gap-3", t.class))), e;
|
|
20837
20879
|
})();
|
|
20838
20880
|
}
|
|
20839
|
-
function
|
|
20881
|
+
function Pj(e) {
|
|
20840
20882
|
return (() => {
|
|
20841
|
-
var t =
|
|
20883
|
+
var t = Aj();
|
|
20842
20884
|
return V(t, z(k, {
|
|
20843
20885
|
get when() {
|
|
20844
20886
|
return e.widget.downloadCount != null;
|
|
20845
20887
|
},
|
|
20846
20888
|
get children() {
|
|
20847
|
-
var t =
|
|
20889
|
+
var t = Dj();
|
|
20848
20890
|
return V(t, z($, {
|
|
20849
20891
|
icon: "lucide:arrow-down-to-line",
|
|
20850
20892
|
width: 12,
|
|
20851
20893
|
height: 12,
|
|
20852
20894
|
class: "size-3"
|
|
20853
|
-
}), null), V(t, () =>
|
|
20895
|
+
}), null), V(t, () => Mj(e.widget.downloadCount), null), t;
|
|
20854
20896
|
}
|
|
20855
20897
|
}), null), V(t, z(k, {
|
|
20856
20898
|
get when() {
|
|
20857
20899
|
return H(() => !!e.showVersions)() && e.widget.versionCount != null;
|
|
20858
20900
|
},
|
|
20859
20901
|
get children() {
|
|
20860
|
-
var t =
|
|
20902
|
+
var t = Oj(), n = t.firstChild;
|
|
20861
20903
|
return V(t, z($, {
|
|
20862
20904
|
icon: "lucide:layers",
|
|
20863
20905
|
width: 12,
|
|
@@ -20870,7 +20912,7 @@ function jj(e) {
|
|
|
20870
20912
|
return H(() => !!e.showLatestVersion)() && e.widget.latestVersion;
|
|
20871
20913
|
},
|
|
20872
20914
|
get children() {
|
|
20873
|
-
var t =
|
|
20915
|
+
var t = kj();
|
|
20874
20916
|
return t.firstChild, V(t, () => e.widget.latestVersion, null), t;
|
|
20875
20917
|
}
|
|
20876
20918
|
}), null), B(() => R(t, O("text-muted-foreground flex items-center gap-4 text-xs", e.class))), t;
|
|
@@ -20878,15 +20920,15 @@ function jj(e) {
|
|
|
20878
20920
|
}
|
|
20879
20921
|
//#endregion
|
|
20880
20922
|
//#region src/solid/widget-card.tsx
|
|
20881
|
-
var
|
|
20882
|
-
function
|
|
20883
|
-
let t = Et({ layout: "row" }, e), n = () => t.href ?? (t.onClick ? void 0 :
|
|
20923
|
+
var Fj = /*#__PURE__*/ K("<p class=\"text-muted-foreground line-clamp-2 text-xs leading-relaxed\">"), Ij = /*#__PURE__*/ K("<div data-slot=widget-card-body class=\"flex flex-1 flex-col gap-3\">");
|
|
20924
|
+
function Lj(e) {
|
|
20925
|
+
let t = Et({ layout: "row" }, e), n = () => t.href ?? (t.onClick ? void 0 : jj(t.widget)), r = () => n() != null || t.onClick != null;
|
|
20884
20926
|
return z(k, {
|
|
20885
20927
|
get when() {
|
|
20886
20928
|
return t.layout === "tile";
|
|
20887
20929
|
},
|
|
20888
20930
|
get fallback() {
|
|
20889
|
-
return z(
|
|
20931
|
+
return z(Rj, U(t, {
|
|
20890
20932
|
get href() {
|
|
20891
20933
|
return n();
|
|
20892
20934
|
},
|
|
@@ -20896,7 +20938,7 @@ function Pj(e) {
|
|
|
20896
20938
|
}));
|
|
20897
20939
|
},
|
|
20898
20940
|
get children() {
|
|
20899
|
-
return z(
|
|
20941
|
+
return z(zj, U(t, {
|
|
20900
20942
|
get href() {
|
|
20901
20943
|
return n();
|
|
20902
20944
|
},
|
|
@@ -20907,7 +20949,7 @@ function Pj(e) {
|
|
|
20907
20949
|
}
|
|
20908
20950
|
});
|
|
20909
20951
|
}
|
|
20910
|
-
function
|
|
20952
|
+
function Rj(e) {
|
|
20911
20953
|
let t = () => e.widget.downloadCount != null || e.showVersions && e.widget.versionCount != null, n = () => e.trailing !== void 0 || e.interactive;
|
|
20912
20954
|
return z(mp, {
|
|
20913
20955
|
get as() {
|
|
@@ -20928,7 +20970,7 @@ function Fj(e) {
|
|
|
20928
20970
|
},
|
|
20929
20971
|
get children() {
|
|
20930
20972
|
return [
|
|
20931
|
-
z(
|
|
20973
|
+
z(Nj, {
|
|
20932
20974
|
get widget() {
|
|
20933
20975
|
return e.widget;
|
|
20934
20976
|
},
|
|
@@ -20943,7 +20985,7 @@ function Fj(e) {
|
|
|
20943
20985
|
return t();
|
|
20944
20986
|
},
|
|
20945
20987
|
get children() {
|
|
20946
|
-
return z(
|
|
20988
|
+
return z(Pj, {
|
|
20947
20989
|
get widget() {
|
|
20948
20990
|
return e.widget;
|
|
20949
20991
|
},
|
|
@@ -20982,7 +21024,7 @@ function Fj(e) {
|
|
|
20982
21024
|
}
|
|
20983
21025
|
});
|
|
20984
21026
|
}
|
|
20985
|
-
function
|
|
21027
|
+
function zj(e) {
|
|
20986
21028
|
let t = () => e.showDescription !== !1;
|
|
20987
21029
|
return z(mp, {
|
|
20988
21030
|
get as() {
|
|
@@ -21003,8 +21045,8 @@ function Ij(e) {
|
|
|
21003
21045
|
},
|
|
21004
21046
|
get children() {
|
|
21005
21047
|
return [(() => {
|
|
21006
|
-
var n =
|
|
21007
|
-
return V(n, z(
|
|
21048
|
+
var n = Ij();
|
|
21049
|
+
return V(n, z(Nj, {
|
|
21008
21050
|
get widget() {
|
|
21009
21051
|
return e.widget;
|
|
21010
21052
|
},
|
|
@@ -21015,11 +21057,11 @@ function Ij(e) {
|
|
|
21015
21057
|
return H(() => !!t())() && e.widget.description;
|
|
21016
21058
|
},
|
|
21017
21059
|
get children() {
|
|
21018
|
-
var t =
|
|
21060
|
+
var t = Fj();
|
|
21019
21061
|
return V(t, () => e.widget.description), t;
|
|
21020
21062
|
}
|
|
21021
21063
|
}), null), n;
|
|
21022
|
-
})(), z(
|
|
21064
|
+
})(), z(Pj, {
|
|
21023
21065
|
get widget() {
|
|
21024
21066
|
return e.widget;
|
|
21025
21067
|
},
|
|
@@ -21029,4 +21071,4 @@ function Ij(e) {
|
|
|
21029
21071
|
});
|
|
21030
21072
|
}
|
|
21031
21073
|
//#endregion
|
|
21032
|
-
export { La as Accordion, Ba as AccordionContent, Ra as AccordionItem, za as AccordionTrigger, Ja as Alert, Xa as AlertDescription, Ls as AlertDialog, Js as AlertDialogAction, Hs as AlertDialogBody, Ys as AlertDialogCancel, Bs as AlertDialogContent, Gs as AlertDialogDescription, Us as AlertDialogFooter, Vs as AlertDialogHeader, Ws as AlertDialogTitle, Rs as AlertDialogTrigger, Ya as AlertTitle, Ph as AreaChart, Fd as AreaPicker, Ld as AspectRatio, Wd as Avatar, Kd as AvatarFallback, Gd as AvatarImage, Zd as Badge, Fh as BarList, wf as BottomSheet, jf as BottomSheetBody, Ff as BottomSheetClose, Of as BottomSheetContent, Pf as BottomSheetDescription, Mf as BottomSheetFooter, kf as BottomSheetHandle, Af as BottomSheetHeader, Df as BottomSheetOverlay, Ef as BottomSheetPortal, Nf as BottomSheetTitle, Tf as BottomSheetTrigger, Hf as Breadcrumb, Jf as BreadcrumbEllipsis, Wf as BreadcrumbItem, Gf as BreadcrumbLink, Uf as BreadcrumbList, Kf as BreadcrumbPage, qf as BreadcrumbSeparator, Xf as Button, np as ButtonGroup, ip as ButtonGroupSeparator, rp as ButtonGroupText, Zf as ButtonWell, mp as Card, vp as CardAction, yp as CardContent, _p as CardDescription, bp as CardFooter, hp as CardHeader, gp as CardTitle, Fm as Carousel, Im as CarouselContent, Rm as CarouselDots, Lm as CarouselItem, Bm as CarouselNext, zm as CarouselPrevious, Dc as Checkbox, Vh as Collapsible, Uh as CollapsibleContent, Hh as CollapsibleTrigger, Xh as ColorDisc, Tg as ColorSlider, Wg as ColorWheel, av as ContextMenu, mv as ContextMenuCheckboxItem, fv as ContextMenuContent, ov as ContextMenuGroup, pv as ContextMenuItem, gv as ContextMenuLabel, cv as ContextMenuRadioGroup, hv as ContextMenuRadioItem, _v as ContextMenuSeparator, vv as ContextMenuShortcut, sv as ContextMenuSub, dv as ContextMenuSubContent, uv as ContextMenuSubTrigger, lv as ContextMenuTrigger, Iy as CopyButton, Ly as CountPill, Ky as DashboardPreview,
|
|
21074
|
+
export { La as Accordion, Ba as AccordionContent, Ra as AccordionItem, za as AccordionTrigger, Ja as Alert, Xa as AlertDescription, Ls as AlertDialog, Js as AlertDialogAction, Hs as AlertDialogBody, Ys as AlertDialogCancel, Bs as AlertDialogContent, Gs as AlertDialogDescription, Us as AlertDialogFooter, Vs as AlertDialogHeader, Ws as AlertDialogTitle, Rs as AlertDialogTrigger, Ya as AlertTitle, Ph as AreaChart, Fd as AreaPicker, Ld as AspectRatio, Wd as Avatar, Kd as AvatarFallback, Gd as AvatarImage, Zd as Badge, Fh as BarList, wf as BottomSheet, jf as BottomSheetBody, Ff as BottomSheetClose, Of as BottomSheetContent, Pf as BottomSheetDescription, Mf as BottomSheetFooter, kf as BottomSheetHandle, Af as BottomSheetHeader, Df as BottomSheetOverlay, Ef as BottomSheetPortal, Nf as BottomSheetTitle, Tf as BottomSheetTrigger, Hf as Breadcrumb, Jf as BreadcrumbEllipsis, Wf as BreadcrumbItem, Gf as BreadcrumbLink, Uf as BreadcrumbList, Kf as BreadcrumbPage, qf as BreadcrumbSeparator, Xf as Button, np as ButtonGroup, ip as ButtonGroupSeparator, rp as ButtonGroupText, Zf as ButtonWell, mp as Card, vp as CardAction, yp as CardContent, _p as CardDescription, bp as CardFooter, hp as CardHeader, gp as CardTitle, Fm as Carousel, Im as CarouselContent, Rm as CarouselDots, Lm as CarouselItem, Bm as CarouselNext, zm as CarouselPrevious, Dc as Checkbox, Vh as Collapsible, Uh as CollapsibleContent, Hh as CollapsibleTrigger, Xh as ColorDisc, Tg as ColorSlider, Wg as ColorWheel, av as ContextMenu, mv as ContextMenuCheckboxItem, fv as ContextMenuContent, ov as ContextMenuGroup, pv as ContextMenuItem, gv as ContextMenuLabel, cv as ContextMenuRadioGroup, hv as ContextMenuRadioItem, _v as ContextMenuSeparator, vv as ContextMenuShortcut, sv as ContextMenuSub, dv as ContextMenuSubContent, uv as ContextMenuSubTrigger, lv as ContextMenuTrigger, Iy as CopyButton, Ly as CountPill, Ky as DashboardPreview, Rx as DataTableHead, Lx as DataTableRow, Zx as Dialog, iS as DialogBody, eS as DialogClose, nS as DialogContent, sS as DialogDescription, aS as DialogFooter, rS as DialogHeader, oS as DialogTitle, Qx as DialogTrigger, FS as Dock, zS as DockedPanel, VS as DockedPanelBody, HS as DockedPanelFooter, BS as DockedPanelHeader, WS as DropdownMenu, $S as DropdownMenuCheckboxItem, YS as DropdownMenuContent, GS as DropdownMenuGroup, XS as DropdownMenuItem, nC as DropdownMenuLabel, qS as DropdownMenuRadioGroup, eC as DropdownMenuRadioItem, tC as DropdownMenuSeparator, rC as DropdownMenuShortcut, KS as DropdownMenuSub, QS as DropdownMenuSubContent, ZS as DropdownMenuSubTrigger, JS as DropdownMenuTrigger, tb as Empty, sb as EmptyContent, ob as EmptyDescription, nb as EmptyHeader, ib as EmptyMedia, ab as EmptyTitle, Xs as EntityDataContext, kC as EntitySelector, eE as FactRow, YC as Field, XC as FieldContent, $C as FieldDescription, nw as FieldError, qC as FieldGroup, ZC as FieldLabel, KC as FieldLegend, tw as FieldSeparator, GC as FieldSet, ew as FieldSubGroup, QC as FieldTitle, cw as Form, hw as FormControl, gw as FormDescription, uw as FormField, dw as FormItem, fw as FormLabel, _w as FormMessage, ky as GlassToast, C as HOLD_GRACE_MS, Ie as HOLD_MS, ww as HeroAction, cO as HeroOption, Fw as HoverCard, Lw as HoverCardContent, Iw as HoverCardTrigger, $ as Icon, qw as IconPicker, SE as ImagePicker, lb as Input, AE as InputGroup, ME as InputGroupAddon, IE as InputGroupButton, RE as InputGroupInput, LE as InputGroupText, zE as InputGroupTextarea, KE as InputOTP, qE as InputOTPGroup, YE as InputOTPSeparator, JE as InputOTPSlot, sD as Item, pD as ItemActions, uD as ItemContent, fD as ItemDescription, hD as ItemFooter, iD as ItemGroup, mD as ItemHeader, lD as ItemMedia, aD as ItemSeparator, dD as ItemTitle, vD as Kbd, yD as KbdGroup, jC as Label, AA as LabeledField, jA as LabeledIconPicker, MA as LabeledInput, tE as ListRow, DD as Logo, $w as MEDIA_PAGE_SIZE, Yw as MediaStoreContext, Jw as MediaStoreError, hT as MediaTile, ZT as NOOP_GLASS, jD as NumberField, ne as OVERLAY_SURFACE, oO as OptionCard, aO as OptionCardGroup, iO as OptionChoice, Hm as Overlay, Pc as PICKER_ROW_HEIGHT, pO as PageHeader, CT as Pagination, wT as PaginationContent, kT as PaginationEllipsis, TT as PaginationItem, ET as PaginationLink, OT as PaginationNext, DT as PaginationPrevious, yO as PasswordInput, Fc as PickerRow, zc as PickerSearch, Uc as PickerTrigger, gd as Popover, yd as PopoverAnchor, vd as PopoverContent, _d as PopoverTrigger, OO as PreviewTile, DO as PreviewTileGroup, GO as Progress, m as RISE_MOTION, qD as RadioGroup, JD as RadioGroupItem, Lh as RangeToggle, $O as ResizableHandle, QO as ResizablePanel, ZO as ResizablePanelGroup, nk as ResponsiveDialog, ok as ResponsiveDialogBody, uk as ResponsiveDialogClose, ik as ResponsiveDialogContent, lk as ResponsiveDialogDescription, sk as ResponsiveDialogFooter, ak as ResponsiveDialogHeader, ck as ResponsiveDialogTitle, rk as ResponsiveDialogTrigger, kA as RowActions, Wk as SCHEMA_FORM_FORM_TYPES, tt as SECTION_INNER_RADIUS, Se as SECTION_OUTER_RADIUS, Ee as SECTION_PADDING, Ke as SECTION_ROW_CLASS, s as SECTION_ROW_SURFACE, te as SETTLE_MOTION, cA as SchemaForm, bA as ScopeIndicator, SA as ScrollArea, CA as ScrollBar, DA as SectionAddButton, QT as SectionCard, OA as SectionEmpty, cE as SectionGroup, iE as SectionIcon, lE as SectionLabel, uE as SectionMeta, $T as SectionRow, dE as SectionRowSkeleton, fE as SectionRowSkeletons, sE as SectionSubtitle, aE as SectionTitle, Ub as Select, Kb as SelectContent, Yb as SelectGroup, Jb as SelectItem, qb as SelectLabel, Xb as SelectSeparator, Gb as SelectTrigger, Wb as SelectValue, $f as Separator, FA as Sheet, KA as SheetBody, RA as SheetClose, WA as SheetContent, YA as SheetDescription, qA as SheetFooter, GA as SheetHeader, JA as SheetTitle, IA as SheetTrigger, Qb as Skeleton, ZA as Slider, Dd as SlidingIndicator, vy as Spinner, pj as Spotlight, Bh as StackedBar, gj as StepIndicator, yj as SwatchPicker, pk as Switch, NA as SwitchRow, kx as TABLE_BLEED, sx as TABLE_CELL_INSET, Ax as TABLE_CELL_X, lx as TABLE_HEAD_CELL_CLASS, Mx as TABLE_HEAD_CLASS, cx as TABLE_HEAD_LABEL_CLASS, Px as TABLE_NUM_CELL_CLASS, jx as TABLE_ROW_CLASS, Nx as TABLE_SCROLL_CLASS, i as TRAVEL_MOTION, ux as Table, fx as TableBody, qx as TableBulkBar, _x as TableCaption, gx as TableCell, Bx as TableEmpty, Vx as TableError, Fx as TableFilterSelect, px as TableFooter, hx as TableHead, dx as TableHeader, Hx as TableLoadMore, mx as TableRow, Ix as TableSearchInput, Kx as TableSkeleton, zx as TableSortHeader, ah as Tabs, ch as TabsContent, oh as TabsList, sh as TabsTrigger, Qh as TemperatureBar, xj as Textarea, Qd as TierBadge, Py as Toaster, Tk as Toggle, Dk as ToggleGroup, Ok as ToggleGroupItem, ES as Tooltip, OS as TooltipContent, DS as TooltipTrigger, Lj as WidgetCard, Nj as WidgetIdentity, Pj as WidgetMeta, wj as WidgetTrustBadge, tp as buttonGroupVariants, f as buttonVariants, nT as createBrokenMedia, CD as createListReorder, Ux as createTableWindow, SD as dragTargetIndex, Ah as formatBytes, Oh as formatCompact, Mj as formatWidgetCount, aT as imagePreset, sT as imageUrl, eT as isMediaImage, Zh as kelvinToCss, dT as mediaIndexErrorCopy, uT as mediaStoreErrorCopy, oT as mediaUrl, Ar as parseColor, iT as presetValue, Qs as provideEntityData, Oa as provideIcons, Zw as provideMediaStore, tT as sortMediaForClearing, t as spendLongPress, lT as toMediaStoreError, Ny as toast, Ck as toggleVariants, $s as useEntityData, lw as useFormField, Qw as useMediaStore, jj as widgetHref };
|