@glasshome/ui 1.35.0 → 1.35.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/solid/index.js +454 -423
- package/dist/solid/radio-group.d.ts +2 -1
- package/dist/solid/settings-row.d.ts +4 -0
- package/dist/testing/happy-dom-fidelity.d.ts +2 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.js +64 -1
- package/dist/{utils-GYi7-pG_.js → utils-BhU5YZKh.js} +1 -0
- package/package.json +4 -3
- package/src/lib/clipboard.ts +2 -0
- package/src/solid/area-picker.tsx +9 -1
- package/src/solid/bottom-sheet/scroll-lock.ts +2 -0
- package/src/solid/image-picker.tsx +8 -1
- package/src/solid/option-card.tsx +4 -2
- package/src/solid/picker-search.tsx +9 -2
- package/src/solid/preview-tile.tsx +4 -2
- package/src/solid/radio-group.tsx +6 -1
- package/src/solid/schema-form.tsx +16 -3
- package/src/solid/settings-row.tsx +20 -6
- package/src/styles/globals.css +32 -0
- package/src/testing/happy-dom-fidelity.ts +105 -0
- package/src/testing/index.ts +1 -0
package/dist/solid/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, $t as t, A as n, At as r, B as i, Bt as a, Ct as o, D as s, Dt as c, E as l, Et as u, F as d, Ft as f, Gt as p, H as m, Ht as h, It as g, J as _, Jt as v, K as y, Kt as b, Lt as x, M as S, Mt as C, Nt as w, O as T, Ot as E, P as ee, Pt as te, Q as ne, Qt as re, Rt as ie, S as ae, T as oe, Tt as se, U as ce, V as le, Vt as ue, W as de, X as fe, Xt as pe, Y as me, Yt as he, Zt as ge, _ as _e, _t as ve, a as ye, at as be, b as xe, bt as Se, cn as Ce, ct as we, d as Te, dt as Ee, en as De, et as Oe, f as ke, ft as Ae, g as je, gt as Me, h as Ne, ht as Pe, i as Fe, j as Ie, jt as Le, k as Re, kt as ze, l as Be, lt as Ve, m as He, mt as Ue, nn as We, nt as Ge, o as Ke, on as qe, ot as Je, p as Ye, q as Xe, qt as Ze, r as Qe, rn as $e, rt as et, s as tt, st as nt, t as D, tt as rt, u as it, ut as at, v as ot, vt as st, w as ct, wt as lt, xt as ut, y as dt, yt as ft, z as pt, zt as mt } from "../utils-
|
|
1
|
+
import { $ as e, $t as t, A as n, At as r, B as i, Bt as a, Ct as o, D as s, Dt as c, E as l, Et as u, F as d, Ft as f, Gt as p, H as m, Ht as h, It as g, J as _, Jt as v, K as y, Kt as b, Lt as x, M as S, Mt as C, Nt as w, O as T, Ot as E, P as ee, Pt as te, Q as ne, Qt as re, Rt as ie, S as ae, T as oe, Tt as se, U as ce, V as le, Vt as ue, W as de, X as fe, Xt as pe, Y as me, Yt as he, Zt as ge, _ as _e, _t as ve, a as ye, at as be, b as xe, bt as Se, cn as Ce, ct as we, d as Te, dt as Ee, en as De, et as Oe, f as ke, ft as Ae, g as je, gt as Me, h as Ne, ht as Pe, i as Fe, j as Ie, jt as Le, k as Re, kt as ze, l as Be, lt as Ve, m as He, mt as Ue, nn as We, nt as Ge, o as Ke, on as qe, ot as Je, p as Ye, q as Xe, qt as Ze, r as Qe, rn as $e, rt as et, s as tt, st as nt, t as D, tt as rt, u as it, ut as at, v as ot, vt as st, w as ct, wt as lt, xt as ut, y as dt, yt as ft, z as pt, zt as mt } from "../utils-BhU5YZKh.js";
|
|
2
2
|
import { $TRACK as ht, DEV as gt, For as _t, Index as vt, Match as yt, Show as O, Switch as bt, batch as xt, children as k, createComponent as St, createComputed as Ct, createContext as A, createEffect as j, createMemo as M, createRenderEffect as wt, createResource as Tt, createRoot as Et, createSignal as N, createUniqueId as P, getOwner as Dt, mergeProps as Ot, on as kt, onCleanup as F, onMount as At, splitProps as I, untrack as jt, useContext as L } from "solid-js";
|
|
3
3
|
import { Dynamic as Mt, Portal as Nt, classList as Pt, className as R, createComponent as z, delegateEvents as Ft, effect as B, insert as V, isServer as It, isServer as Lt, memo as H, mergeProps as U, setAttribute as W, setStyleProperty as Rt, spread as G, style as zt, template as K, use as Bt } from "solid-js/web";
|
|
4
4
|
import { createStore as Vt, produce as Ht, reconcile as Ut } from "solid-js/store";
|
|
@@ -3551,6 +3551,7 @@ function ys() {
|
|
|
3551
3551
|
}
|
|
3552
3552
|
function bs() {
|
|
3553
3553
|
if (gs++, gs > 1 || typeof document > "u") return;
|
|
3554
|
+
document.documentElement.setAttribute("data-page-covered", "");
|
|
3554
3555
|
let e = document.body;
|
|
3555
3556
|
vs = {
|
|
3556
3557
|
position: e.style.position,
|
|
@@ -3563,6 +3564,7 @@ function bs() {
|
|
|
3563
3564
|
}
|
|
3564
3565
|
function xs() {
|
|
3565
3566
|
if (gs = Math.max(0, gs - 1), gs > 0 || typeof document > "u" || !vs) return;
|
|
3567
|
+
document.documentElement.removeAttribute("data-page-covered");
|
|
3566
3568
|
let e = document.body, t = e.style.position === "fixed";
|
|
3567
3569
|
e.style.position = vs.position, e.style.top = vs.top, e.style.left = vs.left, e.style.right = vs.right, e.style.width = vs.width, e.style.overflow = vs.overflow, vs = null, t && window.scrollTo(0, _s);
|
|
3568
3570
|
}
|
|
@@ -4501,10 +4503,10 @@ function ml(e) {
|
|
|
4501
4503
|
"class",
|
|
4502
4504
|
"inputRef",
|
|
4503
4505
|
"size"
|
|
4504
|
-
]);
|
|
4506
|
+
]), r;
|
|
4505
4507
|
return (() => {
|
|
4506
|
-
var e = fl(),
|
|
4507
|
-
V(e, z($, {
|
|
4508
|
+
var e = fl(), i = e.firstChild;
|
|
4509
|
+
return V(e, z($, {
|
|
4508
4510
|
get icon() {
|
|
4509
4511
|
return t.icon ?? "mdi:magnify";
|
|
4510
4512
|
},
|
|
@@ -4512,9 +4514,9 @@ function ml(e) {
|
|
|
4512
4514
|
height: 16,
|
|
4513
4515
|
class: "text-muted-foreground shrink-0",
|
|
4514
4516
|
"aria-hidden": "true"
|
|
4515
|
-
}),
|
|
4516
|
-
|
|
4517
|
-
|
|
4517
|
+
}), i), i.$$input = (e) => t.onValueChange?.(e.currentTarget.value), Bt((e) => {
|
|
4518
|
+
r = e, t.inputRef?.(e);
|
|
4519
|
+
}, i), G(i, U({
|
|
4518
4520
|
get value() {
|
|
4519
4521
|
return t.value ?? "";
|
|
4520
4522
|
},
|
|
@@ -4527,7 +4529,9 @@ function ml(e) {
|
|
|
4527
4529
|
},
|
|
4528
4530
|
get children() {
|
|
4529
4531
|
var e = dl();
|
|
4530
|
-
return e.$$click = () =>
|
|
4532
|
+
return e.$$click = () => {
|
|
4533
|
+
t.onValueChange?.(""), r?.focus();
|
|
4534
|
+
}, V(e, z($, {
|
|
4531
4535
|
icon: "mdi:close-circle",
|
|
4532
4536
|
width: 16,
|
|
4533
4537
|
height: 16
|
|
@@ -5939,36 +5943,36 @@ var Vd = Object.assign(Rd, {
|
|
|
5939
5943
|
});
|
|
5940
5944
|
}, Jd = (e) => z(Vd.Anchor, U({ "data-slot": "popover-anchor" }, e)), Yd = /*#__PURE__*/ K("<div class=\"text-muted-foreground py-4 text-center text-sm\">No areas found"), Xd = /*#__PURE__*/ K("<div class=\"flex flex-col\">"), Zd = /*#__PURE__*/ K("<span class=\"flex-1 truncate text-left\"> rooms"), Qd = /*#__PURE__*/ K("<span class=\"text-muted-foreground flex-1 text-left\">"), $d = /*#__PURE__*/ K("<div class=\"flex size-4 shrink-0 items-center justify-center\">"), ef = /*#__PURE__*/ K("<span class=\"flex-1 truncate text-left\">"), tf = /*#__PURE__*/ K("<div data-slot=area-picker-missing><span class=truncate></span><span class=\"shrink-0 text-xs\">no longer exists");
|
|
5941
5945
|
function nf(e) {
|
|
5942
|
-
let t = lc(), [n, r] = N(!1), [i, a] = N(""), o = t.useAreas(),
|
|
5946
|
+
let t = lc(), [n, r] = N(!1), [i, a] = N(""), o, s = t.useAreas(), c = M(() => s().map((e) => ({
|
|
5943
5947
|
id: e.id,
|
|
5944
5948
|
name: e.name,
|
|
5945
5949
|
icon: e.icon,
|
|
5946
5950
|
entityCount: e.entityIds.length
|
|
5947
|
-
}))),
|
|
5951
|
+
}))), l = M(() => {
|
|
5948
5952
|
let e = i().trim().toLowerCase();
|
|
5949
|
-
return e ?
|
|
5950
|
-
}),
|
|
5953
|
+
return e ? c().filter((t) => t.name.toLowerCase().includes(e) || t.id.toLowerCase().includes(e)) : c();
|
|
5954
|
+
}), u = () => e.values !== void 0, d = M(() => (e.values ?? []).filter((e) => c().some((t) => t.id === e))), f = M(() => {
|
|
5951
5955
|
let t = i().trim().toLowerCase();
|
|
5952
|
-
return (e.values ?? []).filter((e) => !
|
|
5953
|
-
}),
|
|
5954
|
-
if (!
|
|
5956
|
+
return (e.values ?? []).filter((e) => !c().some((t) => t.id === e)).filter((e) => !t || e.toLowerCase().includes(t));
|
|
5957
|
+
}), p = (t) => u() ? d().includes(t) : e.value === t, m = M(() => {
|
|
5958
|
+
if (!u()) {
|
|
5955
5959
|
let t = e.value;
|
|
5956
|
-
return t ?
|
|
5957
|
-
}
|
|
5958
|
-
let t =
|
|
5959
|
-
return t.length === 1 ?
|
|
5960
|
-
}), [
|
|
5961
|
-
let t =
|
|
5962
|
-
if (!
|
|
5963
|
-
let n =
|
|
5960
|
+
return t ? c().find((e) => e.id === t) : void 0;
|
|
5961
|
+
}
|
|
5962
|
+
let t = d();
|
|
5963
|
+
return t.length === 1 ? c().find((e) => e.id === t[0]) : void 0;
|
|
5964
|
+
}), [h, g] = N(null), _ = M(() => {
|
|
5965
|
+
let t = l();
|
|
5966
|
+
if (!u()) return t.some((t) => t.id === e.value) ? e.value ?? null : null;
|
|
5967
|
+
let n = d();
|
|
5964
5968
|
return t.find((e) => n.includes(e.id))?.id ?? null;
|
|
5965
|
-
}),
|
|
5969
|
+
}), v = () => h() ?? _(), y = (t) => {
|
|
5966
5970
|
e.disabled || (e.onChange?.(t === e.value && e.allowClear !== !1 ? "" : t), r(!1), a(""));
|
|
5967
|
-
},
|
|
5971
|
+
}, b = () => e.allowClear !== !1 && (u() ? d().length > 0 : !!e.value), x = () => {
|
|
5968
5972
|
e.disabled || (e.onChange?.(""), e.onValuesChange?.([]));
|
|
5969
|
-
},
|
|
5973
|
+
}, S = (t) => {
|
|
5970
5974
|
if (e.disabled) return;
|
|
5971
|
-
let n =
|
|
5975
|
+
let n = d();
|
|
5972
5976
|
e.onValuesChange?.(n.includes(t) ? n.filter((e) => e !== t) : [...n, t]);
|
|
5973
5977
|
};
|
|
5974
5978
|
return z(Gd, {
|
|
@@ -6000,30 +6004,30 @@ function nf(e) {
|
|
|
6000
6004
|
return e.disabled;
|
|
6001
6005
|
},
|
|
6002
6006
|
get onClear() {
|
|
6003
|
-
return
|
|
6007
|
+
return b() ? x : void 0;
|
|
6004
6008
|
},
|
|
6005
6009
|
get clearLabel() {
|
|
6006
|
-
return
|
|
6010
|
+
return u() ? "Clear areas" : "Clear area";
|
|
6007
6011
|
},
|
|
6008
6012
|
get children() {
|
|
6009
6013
|
return z(O, {
|
|
6010
6014
|
get when() {
|
|
6011
|
-
return
|
|
6015
|
+
return m();
|
|
6012
6016
|
},
|
|
6013
6017
|
get fallback() {
|
|
6014
6018
|
return z(O, {
|
|
6015
6019
|
get when() {
|
|
6016
|
-
return
|
|
6020
|
+
return d().length > 1;
|
|
6017
6021
|
},
|
|
6018
6022
|
get fallback() {
|
|
6019
6023
|
return (() => {
|
|
6020
6024
|
var t = Qd();
|
|
6021
|
-
return V(t, () => e.placeholder ?? (
|
|
6025
|
+
return V(t, () => e.placeholder ?? (u() ? "Select areas..." : "Select area...")), t;
|
|
6022
6026
|
})();
|
|
6023
6027
|
},
|
|
6024
6028
|
get children() {
|
|
6025
6029
|
var e = Zd(), t = e.firstChild;
|
|
6026
|
-
return V(e, () =>
|
|
6030
|
+
return V(e, () => d().length, t), e;
|
|
6027
6031
|
}
|
|
6028
6032
|
});
|
|
6029
6033
|
},
|
|
@@ -6045,11 +6049,16 @@ function nf(e) {
|
|
|
6045
6049
|
});
|
|
6046
6050
|
}
|
|
6047
6051
|
}), z(qd, {
|
|
6048
|
-
onOpenAutoFocus: (e) =>
|
|
6052
|
+
onOpenAutoFocus: (e) => {
|
|
6053
|
+
e.preventDefault(), o?.focus({ preventScroll: !0 });
|
|
6054
|
+
},
|
|
6049
6055
|
onInteractOutside: () => r(!1),
|
|
6050
6056
|
get children() {
|
|
6051
6057
|
var e = Xd();
|
|
6052
6058
|
return V(e, z(ml, {
|
|
6059
|
+
inputRef: (e) => {
|
|
6060
|
+
o = e;
|
|
6061
|
+
},
|
|
6053
6062
|
get value() {
|
|
6054
6063
|
return i();
|
|
6055
6064
|
},
|
|
@@ -6061,12 +6070,12 @@ function nf(e) {
|
|
|
6061
6070
|
get class() {
|
|
6062
6071
|
return D("flex flex-col gap-0.5 p-1", ue, ot);
|
|
6063
6072
|
},
|
|
6064
|
-
onMouseLeave: () =>
|
|
6073
|
+
onMouseLeave: () => g(null),
|
|
6065
6074
|
get children() {
|
|
6066
6075
|
return [
|
|
6067
6076
|
z(O, {
|
|
6068
6077
|
get when() {
|
|
6069
|
-
return H(() =>
|
|
6078
|
+
return H(() => l().length === 0)() && f().length === 0;
|
|
6070
6079
|
},
|
|
6071
6080
|
get children() {
|
|
6072
6081
|
return Yd();
|
|
@@ -6074,7 +6083,7 @@ function nf(e) {
|
|
|
6074
6083
|
}),
|
|
6075
6084
|
z(_t, {
|
|
6076
6085
|
get each() {
|
|
6077
|
-
return
|
|
6086
|
+
return f();
|
|
6078
6087
|
},
|
|
6079
6088
|
children: (e) => (() => {
|
|
6080
6089
|
var t = tf(), n = t.firstChild;
|
|
@@ -6083,17 +6092,17 @@ function nf(e) {
|
|
|
6083
6092
|
}),
|
|
6084
6093
|
z(_t, {
|
|
6085
6094
|
get each() {
|
|
6086
|
-
return
|
|
6095
|
+
return l();
|
|
6087
6096
|
},
|
|
6088
6097
|
children: (e) => z(ul, {
|
|
6089
6098
|
as: "button",
|
|
6090
6099
|
type: "button",
|
|
6091
6100
|
"data-slot": "area-picker-row",
|
|
6092
6101
|
get "data-highlighted"() {
|
|
6093
|
-
return
|
|
6102
|
+
return v() === e.id || void 0;
|
|
6094
6103
|
},
|
|
6095
6104
|
get "aria-pressed"() {
|
|
6096
|
-
return H(() => !!
|
|
6105
|
+
return H(() => !!u())() ? p(e.id) : void 0;
|
|
6097
6106
|
},
|
|
6098
6107
|
get icon() {
|
|
6099
6108
|
return e.icon || "mdi:home-floor-1";
|
|
@@ -6105,13 +6114,13 @@ function nf(e) {
|
|
|
6105
6114
|
return `${e.entityCount} ${e.entityCount === 1 ? "entity" : "entities"}`;
|
|
6106
6115
|
},
|
|
6107
6116
|
get selected() {
|
|
6108
|
-
return
|
|
6117
|
+
return p(e.id);
|
|
6109
6118
|
},
|
|
6110
6119
|
get multi() {
|
|
6111
|
-
return
|
|
6120
|
+
return u();
|
|
6112
6121
|
},
|
|
6113
|
-
onMouseEnter: () =>
|
|
6114
|
-
onClick: () =>
|
|
6122
|
+
onMouseEnter: () => g(e.id),
|
|
6123
|
+
onClick: () => u() ? S(e.id) : y(e.id)
|
|
6115
6124
|
})
|
|
6116
6125
|
})
|
|
6117
6126
|
];
|
|
@@ -17351,7 +17360,9 @@ function JE(e) {
|
|
|
17351
17360
|
}
|
|
17352
17361
|
}), z(qd, {
|
|
17353
17362
|
class: "min-w-72",
|
|
17354
|
-
onInteractOutside: () =>
|
|
17363
|
+
onInteractOutside: (e) => {
|
|
17364
|
+
c() ? e.preventDefault() : r(!1);
|
|
17365
|
+
},
|
|
17355
17366
|
get children() {
|
|
17356
17367
|
var n = UE();
|
|
17357
17368
|
return V(n, z(O, {
|
|
@@ -18445,9 +18456,15 @@ var mO = Object.assign(pO, {
|
|
|
18445
18456
|
}
|
|
18446
18457
|
})];
|
|
18447
18458
|
} }));
|
|
18448
|
-
}
|
|
18449
|
-
function
|
|
18450
|
-
|
|
18459
|
+
};
|
|
18460
|
+
function bO(e) {
|
|
18461
|
+
return e.target instanceof HTMLInputElement;
|
|
18462
|
+
}
|
|
18463
|
+
//#endregion
|
|
18464
|
+
//#region src/solid/option-card.tsx
|
|
18465
|
+
var xO = /*#__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\">"), SO = /*#__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]\">"), CO = /*#__PURE__*/ K("<div data-slot=option-card>"), wO = /*#__PURE__*/ K("<span data-slot=option-card-description class=\"text-muted-foreground text-sm leading-normal\">"), TO = /*#__PURE__*/ K("<span data-slot=option-card-icon aria-hidden=true class=\"color-calc:[color:oklch(from_var(--surface-tone)_calc((0.75_-_l)*100)_0_0)] text-primary-foreground grid size-10 shrink-0 place-items-center rounded-[14px] bg-[color-mix(in_oklab,var(--surface-tone)_80%,black)]\">"), EO = /*#__PURE__*/ K("<img alt class=\"size-5 object-contain\">"), DO = `${lt} 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`, OO = "rounded-sm text-foreground/75 transition-colors hover:bg-foreground/5 aria-checked:text-foreground", kO = A();
|
|
18466
|
+
function AO(e) {
|
|
18467
|
+
let t = L(kO);
|
|
18451
18468
|
if (!t) throw Error("OptionChoice renders inside an OptionCard");
|
|
18452
18469
|
At(() => F(t.register(e.value)));
|
|
18453
18470
|
let n = () => t.subValue() === e.value;
|
|
@@ -18459,7 +18476,7 @@ function kO(e) {
|
|
|
18459
18476
|
return n();
|
|
18460
18477
|
},
|
|
18461
18478
|
"data-slot": "option-choice",
|
|
18462
|
-
class:
|
|
18479
|
+
class: OO,
|
|
18463
18480
|
get disabled() {
|
|
18464
18481
|
return e.disabled;
|
|
18465
18482
|
},
|
|
@@ -18479,7 +18496,7 @@ function kO(e) {
|
|
|
18479
18496
|
onClick: () => !e.disabled && t.pick(e.value)
|
|
18480
18497
|
});
|
|
18481
18498
|
}
|
|
18482
|
-
function
|
|
18499
|
+
function jO(e) {
|
|
18483
18500
|
return z(_O, {
|
|
18484
18501
|
get class() {
|
|
18485
18502
|
return D("gap-2", e.class);
|
|
@@ -18501,19 +18518,19 @@ function AO(e) {
|
|
|
18501
18518
|
}
|
|
18502
18519
|
});
|
|
18503
18520
|
}
|
|
18504
|
-
function
|
|
18521
|
+
function MO(e) {
|
|
18505
18522
|
let t = rO(), n = () => t.isSelectedValue(e.value), [r, i] = N([]), a = {
|
|
18506
18523
|
subValue: () => e.subValue,
|
|
18507
18524
|
pick: (t) => e.onSubChange?.(t),
|
|
18508
18525
|
register: (e) => (i((t) => [...t, e]), () => i((t) => t.filter((t) => t !== e)))
|
|
18509
|
-
}, o = k(() => z(
|
|
18526
|
+
}, o = k(() => z(kO.Provider, {
|
|
18510
18527
|
value: a,
|
|
18511
18528
|
get children() {
|
|
18512
18529
|
return e.children;
|
|
18513
18530
|
}
|
|
18514
18531
|
}));
|
|
18515
18532
|
return (() => {
|
|
18516
|
-
var t =
|
|
18533
|
+
var t = CO();
|
|
18517
18534
|
return V(t, z(yO, {
|
|
18518
18535
|
get value() {
|
|
18519
18536
|
return e.value;
|
|
@@ -18522,14 +18539,14 @@ function jO(e) {
|
|
|
18522
18539
|
return e.disabled;
|
|
18523
18540
|
},
|
|
18524
18541
|
showControl: !1,
|
|
18525
|
-
onClick: () => !e.disabled && e.onPick?.(),
|
|
18542
|
+
onClick: (t) => !e.disabled && bO(t) && e.onPick?.(),
|
|
18526
18543
|
class: "relative w-full cursor-pointer overflow-hidden rounded-[inherit] text-left",
|
|
18527
18544
|
get children() {
|
|
18528
18545
|
return [z(Op, { get kind() {
|
|
18529
18546
|
return e.ornament ?? "check";
|
|
18530
18547
|
} }), (() => {
|
|
18531
|
-
var t =
|
|
18532
|
-
return V(t, z(
|
|
18548
|
+
var t = xO(), n = t.firstChild, r = n.firstChild;
|
|
18549
|
+
return V(t, z(NO, {
|
|
18533
18550
|
get icon() {
|
|
18534
18551
|
return e.icon;
|
|
18535
18552
|
},
|
|
@@ -18541,7 +18558,7 @@ function jO(e) {
|
|
|
18541
18558
|
return e.description;
|
|
18542
18559
|
},
|
|
18543
18560
|
children: (e) => (() => {
|
|
18544
|
-
var t =
|
|
18561
|
+
var t = wO();
|
|
18545
18562
|
return V(t, e), t;
|
|
18546
18563
|
})()
|
|
18547
18564
|
}), null), t;
|
|
@@ -18552,7 +18569,7 @@ function jO(e) {
|
|
|
18552
18569
|
return o.toArray().length > 0;
|
|
18553
18570
|
},
|
|
18554
18571
|
get children() {
|
|
18555
|
-
var t =
|
|
18572
|
+
var t = SO(), i = t.firstChild.firstChild;
|
|
18556
18573
|
return V(i, o), B((t) => {
|
|
18557
18574
|
var a = r().length > 0 ? "radiogroup" : "group", o = `${e.title} options`, s = { [ue]: n() };
|
|
18558
18575
|
return a !== t.e && W(i, "role", t.e = a), o !== t.t && W(i, "aria-label", t.t = o), t.a = Pt(i, s, t.a), t;
|
|
@@ -18563,7 +18580,7 @@ function jO(e) {
|
|
|
18563
18580
|
}), t;
|
|
18564
18581
|
}
|
|
18565
18582
|
}), null), B((r) => {
|
|
18566
|
-
var i = n() ? "" : void 0, a = e.disabled ? "" : void 0, o = D(
|
|
18583
|
+
var i = n() ? "" : void 0, a = e.disabled ? "" : void 0, o = D(DO, e.class), s = e.accentVar ? { "--glass-tone": e.accentVar } : void 0;
|
|
18567
18584
|
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 = zt(t, s, r.o), r;
|
|
18568
18585
|
}, {
|
|
18569
18586
|
e: void 0,
|
|
@@ -18573,13 +18590,13 @@ function jO(e) {
|
|
|
18573
18590
|
}), t;
|
|
18574
18591
|
})();
|
|
18575
18592
|
}
|
|
18576
|
-
function
|
|
18593
|
+
function NO(e) {
|
|
18577
18594
|
return z(O, {
|
|
18578
18595
|
get when() {
|
|
18579
18596
|
return e.icon || e.image;
|
|
18580
18597
|
},
|
|
18581
18598
|
get children() {
|
|
18582
|
-
var t =
|
|
18599
|
+
var t = TO();
|
|
18583
18600
|
return V(t, z(O, {
|
|
18584
18601
|
get when() {
|
|
18585
18602
|
return e.image;
|
|
@@ -18599,24 +18616,24 @@ function MO(e) {
|
|
|
18599
18616
|
});
|
|
18600
18617
|
},
|
|
18601
18618
|
children: (e) => (() => {
|
|
18602
|
-
var t =
|
|
18619
|
+
var t = EO();
|
|
18603
18620
|
return B(() => W(t, "src", e())), t;
|
|
18604
18621
|
})()
|
|
18605
18622
|
})), t;
|
|
18606
18623
|
}
|
|
18607
18624
|
});
|
|
18608
18625
|
}
|
|
18609
|
-
var
|
|
18610
|
-
function
|
|
18626
|
+
var PO = MO, FO = /*#__PURE__*/ K("<div data-slot=page-header-subtitle class=\"text-muted-foreground flex items-center gap-2 text-sm\">"), IO = /*#__PURE__*/ K("<div data-slot=page-header-actions class=\"flex shrink-0 items-center gap-2\">"), LO = /*#__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]\">"), RO = /*#__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]\">");
|
|
18627
|
+
function zO(e) {
|
|
18611
18628
|
let t = () => e.glass ?? xE, n = k(() => e.iconNode), r = k(() => e.subtitle), i = k(() => e.actions);
|
|
18612
18629
|
return (() => {
|
|
18613
|
-
var a =
|
|
18630
|
+
var a = LO(), o = a.firstChild, s = o.firstChild, c = s.firstChild, l = c.firstChild, u = t().ref;
|
|
18614
18631
|
return typeof u == "function" ? Bt(u, a) : t().ref = a, V(a, z(O, {
|
|
18615
18632
|
get when() {
|
|
18616
18633
|
return e.logo;
|
|
18617
18634
|
},
|
|
18618
18635
|
children: (e) => (() => {
|
|
18619
|
-
var t =
|
|
18636
|
+
var t = RO();
|
|
18620
18637
|
return B(() => W(t, "src", e())), t;
|
|
18621
18638
|
})()
|
|
18622
18639
|
}), o), V(o, z(O, {
|
|
@@ -18655,7 +18672,7 @@ function RO(e) {
|
|
|
18655
18672
|
return r();
|
|
18656
18673
|
},
|
|
18657
18674
|
get children() {
|
|
18658
|
-
var e =
|
|
18675
|
+
var e = FO();
|
|
18659
18676
|
return V(e, r), e;
|
|
18660
18677
|
}
|
|
18661
18678
|
}), null), V(o, z(O, {
|
|
@@ -18663,7 +18680,7 @@ function RO(e) {
|
|
|
18663
18680
|
return i();
|
|
18664
18681
|
},
|
|
18665
18682
|
get children() {
|
|
18666
|
-
var e =
|
|
18683
|
+
var e = IO();
|
|
18667
18684
|
return V(e, i), e;
|
|
18668
18685
|
}
|
|
18669
18686
|
}), null), B((e) => {
|
|
@@ -18678,7 +18695,7 @@ function RO(e) {
|
|
|
18678
18695
|
}
|
|
18679
18696
|
//#endregion
|
|
18680
18697
|
//#region src/solid/password-input.tsx
|
|
18681
|
-
var
|
|
18698
|
+
var BO = /*#__PURE__*/ K("<span data-slot=password-input-leading aria-hidden=true>"), VO = /*#__PURE__*/ K("<div data-slot=password-input class=relative><button type=button data-slot=password-input-toggle>"), HO = "w-10", UO = "pl-10", WO = "pr-10", GO = (e) => {
|
|
18682
18699
|
let [t, n] = I(e, [
|
|
18683
18700
|
"class",
|
|
18684
18701
|
"leading",
|
|
@@ -18686,21 +18703,21 @@ var zO = /*#__PURE__*/ K("<span data-slot=password-input-leading aria-hidden=tru
|
|
|
18686
18703
|
"hideLabel"
|
|
18687
18704
|
]), [r, i] = N(!1), a = k(() => t.leading);
|
|
18688
18705
|
return (() => {
|
|
18689
|
-
var e =
|
|
18706
|
+
var e = VO(), o = e.firstChild;
|
|
18690
18707
|
return V(e, z(O, {
|
|
18691
18708
|
get when() {
|
|
18692
18709
|
return a();
|
|
18693
18710
|
},
|
|
18694
18711
|
get children() {
|
|
18695
|
-
var e =
|
|
18696
|
-
return V(e, a), B(() => R(e, D("text-primary/70 pointer-events-none absolute inset-y-0 left-0 z-10 flex items-center justify-center",
|
|
18712
|
+
var e = BO();
|
|
18713
|
+
return V(e, a), B(() => R(e, D("text-primary/70 pointer-events-none absolute inset-y-0 left-0 z-10 flex items-center justify-center", HO))), e;
|
|
18697
18714
|
}
|
|
18698
18715
|
}), o), V(e, z(Mb, U({
|
|
18699
18716
|
get type() {
|
|
18700
18717
|
return r() ? "text" : "password";
|
|
18701
18718
|
},
|
|
18702
18719
|
get class() {
|
|
18703
|
-
return D(t.class, a() &&
|
|
18720
|
+
return D(t.class, a() && UO, WO);
|
|
18704
18721
|
}
|
|
18705
18722
|
}, n)), o), o.$$click = () => i((e) => !e), V(o, z($, {
|
|
18706
18723
|
get icon() {
|
|
@@ -18709,7 +18726,7 @@ var zO = /*#__PURE__*/ K("<span data-slot=password-input-leading aria-hidden=tru
|
|
|
18709
18726
|
width: 20,
|
|
18710
18727
|
"aria-hidden": "true"
|
|
18711
18728
|
})), B((e) => {
|
|
18712
|
-
var n = r() ? t.hideLabel ?? "Hide password" : t.showLabel ?? "Show password", i = D("text-muted-foreground/70 hover:text-foreground absolute inset-y-0 right-0 z-10 flex items-center justify-center transition-colors",
|
|
18729
|
+
var n = r() ? t.hideLabel ?? "Hide password" : t.showLabel ?? "Show password", i = D("text-muted-foreground/70 hover:text-foreground absolute inset-y-0 right-0 z-10 flex items-center justify-center transition-colors", HO);
|
|
18713
18730
|
return n !== e.e && W(o, "aria-label", e.e = n), i !== e.t && R(o, e.t = i), e;
|
|
18714
18731
|
}, {
|
|
18715
18732
|
e: void 0,
|
|
@@ -18720,19 +18737,19 @@ var zO = /*#__PURE__*/ K("<span data-slot=password-input-leading aria-hidden=tru
|
|
|
18720
18737
|
Ft(["click"]);
|
|
18721
18738
|
//#endregion
|
|
18722
18739
|
//#region src/solid/preview-tile.tsx
|
|
18723
|
-
var
|
|
18740
|
+
var KO = /*#__PURE__*/ K("<div data-slot=preview-tile-face>"), qO = /*#__PURE__*/ K("<span data-slot=preview-tile-caption class=\"text-foreground @container/source-marks flex min-w-0 items-center gap-1 text-xs font-medium\"><span class=truncate>"), JO = /*#__PURE__*/ K("<span data-slot=preview-tile-meta class=\"text-muted-foreground -mt-1 truncate text-[11px] leading-tight\">"), YO = /*#__PURE__*/ K("<span class=sr-only>"), XO = {
|
|
18724
18741
|
2: "grid-cols-2",
|
|
18725
18742
|
3: "grid-cols-3",
|
|
18726
18743
|
4: "grid-cols-4"
|
|
18727
|
-
},
|
|
18744
|
+
}, ZO = {
|
|
18728
18745
|
wide: "aspect-[16/10]",
|
|
18729
18746
|
tile: "aspect-[5/4]"
|
|
18730
|
-
},
|
|
18731
|
-
function
|
|
18747
|
+
}, QO = "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 after:pointer-events-none after:absolute after:inset-0 after:z-10 after:rounded-[inherit] after:ring-inset after:transition-glass group-data-[checked]/preview-tile:after:ring-2 group-data-[checked]/preview-tile:after:ring-primary group-has-[:focus-visible]/preview-tile:after:ring-[3px] group-has-[:focus-visible]/preview-tile:after:ring-ring/50";
|
|
18748
|
+
function $O(e) {
|
|
18732
18749
|
return z(_O, {
|
|
18733
18750
|
"data-slot": "preview-tile-group",
|
|
18734
18751
|
get class() {
|
|
18735
|
-
return D("grid gap-2.5",
|
|
18752
|
+
return D("grid gap-2.5", XO[e.columns ?? 2], e.class);
|
|
18736
18753
|
},
|
|
18737
18754
|
get value() {
|
|
18738
18755
|
return e.value ?? "";
|
|
@@ -18748,7 +18765,7 @@ function QO(e) {
|
|
|
18748
18765
|
}
|
|
18749
18766
|
});
|
|
18750
18767
|
}
|
|
18751
|
-
function
|
|
18768
|
+
function ek(e) {
|
|
18752
18769
|
return z(yO, {
|
|
18753
18770
|
"data-slot": "preview-tile",
|
|
18754
18771
|
get value() {
|
|
@@ -18758,27 +18775,27 @@ function $O(e) {
|
|
|
18758
18775
|
return e.disabled;
|
|
18759
18776
|
},
|
|
18760
18777
|
showControl: !1,
|
|
18761
|
-
onClick: () => !e.disabled && e.onPick?.(),
|
|
18778
|
+
onClick: (t) => !e.disabled && bO(t) && e.onPick?.(),
|
|
18762
18779
|
get class() {
|
|
18763
18780
|
return D("group/preview-tile min-w-0 [&_[data-slot=radio-group-item-content]]:flex [&_[data-slot=radio-group-item-content]]:flex-col [&_[data-slot=radio-group-item-content]]:gap-1.5 [&_[data-slot=radio-group-item-label]]:min-w-0", e.class);
|
|
18764
18781
|
},
|
|
18765
18782
|
get children() {
|
|
18766
18783
|
return [(() => {
|
|
18767
|
-
var t =
|
|
18768
|
-
return V(t, () => e.children), B(() => R(t, D(
|
|
18784
|
+
var t = KO();
|
|
18785
|
+
return V(t, () => e.children), B(() => R(t, D(QO, ZO[e.shape ?? "wide"]))), t;
|
|
18769
18786
|
})(), z(O, {
|
|
18770
18787
|
get when() {
|
|
18771
18788
|
return e.caption ?? !0;
|
|
18772
18789
|
},
|
|
18773
18790
|
get fallback() {
|
|
18774
18791
|
return (() => {
|
|
18775
|
-
var t =
|
|
18792
|
+
var t = YO();
|
|
18776
18793
|
return V(t, () => e.label), t;
|
|
18777
18794
|
})();
|
|
18778
18795
|
},
|
|
18779
18796
|
get children() {
|
|
18780
18797
|
return [(() => {
|
|
18781
|
-
var t =
|
|
18798
|
+
var t = qO(), n = t.firstChild;
|
|
18782
18799
|
return V(t, z(O, {
|
|
18783
18800
|
get when() {
|
|
18784
18801
|
return e.icon;
|
|
@@ -18798,7 +18815,7 @@ function $O(e) {
|
|
|
18798
18815
|
return e.meta;
|
|
18799
18816
|
},
|
|
18800
18817
|
get children() {
|
|
18801
|
-
var t =
|
|
18818
|
+
var t = JO();
|
|
18802
18819
|
return V(t, () => e.meta), t;
|
|
18803
18820
|
}
|
|
18804
18821
|
})];
|
|
@@ -18809,14 +18826,14 @@ function $O(e) {
|
|
|
18809
18826
|
}
|
|
18810
18827
|
//#endregion
|
|
18811
18828
|
//#region node_modules/@kobalte/core/dist/chunk/OU7DYFTQ.jsx
|
|
18812
|
-
var
|
|
18813
|
-
function
|
|
18814
|
-
let e = L(
|
|
18829
|
+
var tk = A();
|
|
18830
|
+
function nk() {
|
|
18831
|
+
let e = L(tk);
|
|
18815
18832
|
if (e === void 0) throw Error("[kobalte]: `useMeterContext` must be used within a `Meter.Root` component");
|
|
18816
18833
|
return e;
|
|
18817
18834
|
}
|
|
18818
|
-
function
|
|
18819
|
-
let t =
|
|
18835
|
+
function rk(e) {
|
|
18836
|
+
let t = nk(), [n, r] = I(e, ["style"]);
|
|
18820
18837
|
return z(Q, U({
|
|
18821
18838
|
as: "div",
|
|
18822
18839
|
get style() {
|
|
@@ -18824,8 +18841,8 @@ function nk(e) {
|
|
|
18824
18841
|
}
|
|
18825
18842
|
}, () => t.dataset(), r));
|
|
18826
18843
|
}
|
|
18827
|
-
function
|
|
18828
|
-
let t =
|
|
18844
|
+
function ik(e) {
|
|
18845
|
+
let t = nk(), [n, r] = I(Z({ id: t.generateId("label") }, e), ["id"]);
|
|
18829
18846
|
return j(() => F(t.registerLabelId(n.id))), z(Q, U({
|
|
18830
18847
|
as: "span",
|
|
18831
18848
|
get id() {
|
|
@@ -18833,7 +18850,7 @@ function rk(e) {
|
|
|
18833
18850
|
}
|
|
18834
18851
|
}, () => t.dataset(), r));
|
|
18835
18852
|
}
|
|
18836
|
-
function
|
|
18853
|
+
function ak(e) {
|
|
18837
18854
|
let [t, n] = I(Z({
|
|
18838
18855
|
id: `meter-${P()}`,
|
|
18839
18856
|
value: 0,
|
|
@@ -18869,7 +18886,7 @@ function ik(e) {
|
|
|
18869
18886
|
generateId: mn(() => n.id),
|
|
18870
18887
|
registerLabelId: Ai(i)
|
|
18871
18888
|
};
|
|
18872
|
-
return z(
|
|
18889
|
+
return z(tk.Provider, {
|
|
18873
18890
|
value: d,
|
|
18874
18891
|
get children() {
|
|
18875
18892
|
return z(Q, U({
|
|
@@ -18896,50 +18913,50 @@ function ik(e) {
|
|
|
18896
18913
|
}
|
|
18897
18914
|
});
|
|
18898
18915
|
}
|
|
18899
|
-
function
|
|
18900
|
-
let t =
|
|
18916
|
+
function ok(e) {
|
|
18917
|
+
let t = nk();
|
|
18901
18918
|
return z(Q, U({ as: "div" }, () => t.dataset(), e));
|
|
18902
18919
|
}
|
|
18903
|
-
function
|
|
18904
|
-
let t =
|
|
18920
|
+
function sk(e) {
|
|
18921
|
+
let t = nk();
|
|
18905
18922
|
return z(Q, U({ as: "div" }, () => t.dataset(), e, { get children() {
|
|
18906
18923
|
return t.valueLabel();
|
|
18907
18924
|
} }));
|
|
18908
18925
|
}
|
|
18909
|
-
var
|
|
18910
|
-
Fill:
|
|
18911
|
-
Label:
|
|
18912
|
-
Track:
|
|
18913
|
-
ValueLabel:
|
|
18926
|
+
var ck = Object.assign(ak, {
|
|
18927
|
+
Fill: rk,
|
|
18928
|
+
Label: ik,
|
|
18929
|
+
Track: ok,
|
|
18930
|
+
ValueLabel: sk
|
|
18914
18931
|
});
|
|
18915
18932
|
ei({}, {
|
|
18916
|
-
Fill: () =>
|
|
18917
|
-
Label: () =>
|
|
18918
|
-
Progress: () =>
|
|
18919
|
-
Root: () =>
|
|
18920
|
-
Track: () =>
|
|
18921
|
-
ValueLabel: () =>
|
|
18922
|
-
useProgressContext: () =>
|
|
18933
|
+
Fill: () => dk,
|
|
18934
|
+
Label: () => fk,
|
|
18935
|
+
Progress: () => gk,
|
|
18936
|
+
Root: () => pk,
|
|
18937
|
+
Track: () => mk,
|
|
18938
|
+
ValueLabel: () => hk,
|
|
18939
|
+
useProgressContext: () => uk
|
|
18923
18940
|
});
|
|
18924
|
-
var
|
|
18925
|
-
function
|
|
18926
|
-
let e = L(
|
|
18941
|
+
var lk = A();
|
|
18942
|
+
function uk() {
|
|
18943
|
+
let e = L(lk);
|
|
18927
18944
|
if (e === void 0) throw Error("[kobalte]: `useProgressContext` must be used within a `Progress.Root` component");
|
|
18928
18945
|
return e;
|
|
18929
18946
|
}
|
|
18930
|
-
function
|
|
18931
|
-
let t =
|
|
18932
|
-
return z(
|
|
18947
|
+
function dk(e) {
|
|
18948
|
+
let t = uk(), [n, r] = I(e, ["style"]);
|
|
18949
|
+
return z(ck.Fill, U({ get style() {
|
|
18933
18950
|
return cn({ "--kb-progress-fill-width": t.progressFillWidth() }, n.style);
|
|
18934
18951
|
} }, () => t.dataset(), r));
|
|
18935
18952
|
}
|
|
18936
|
-
function
|
|
18937
|
-
let t =
|
|
18938
|
-
return j(() => F(t.registerLabelId(n.id))), z(
|
|
18953
|
+
function fk(e) {
|
|
18954
|
+
let t = uk(), [n, r] = I(Z({ id: t.generateId("label") }, e), ["id"]);
|
|
18955
|
+
return j(() => F(t.registerLabelId(n.id))), z(ck.Label, U({ get id() {
|
|
18939
18956
|
return n.id;
|
|
18940
18957
|
} }, () => t.dataset(), r));
|
|
18941
18958
|
}
|
|
18942
|
-
function
|
|
18959
|
+
function pk(e) {
|
|
18943
18960
|
let t = Z({
|
|
18944
18961
|
id: `progress-${P()}`,
|
|
18945
18962
|
value: 0,
|
|
@@ -18973,10 +18990,10 @@ function fk(e) {
|
|
|
18973
18990
|
generateId: mn(() => r.id),
|
|
18974
18991
|
registerLabelId: Ai(a)
|
|
18975
18992
|
};
|
|
18976
|
-
return z(
|
|
18993
|
+
return z(lk.Provider, {
|
|
18977
18994
|
value: f,
|
|
18978
18995
|
get children() {
|
|
18979
|
-
return z(
|
|
18996
|
+
return z(ck, U({
|
|
18980
18997
|
role: "progressbar",
|
|
18981
18998
|
get indeterminate() {
|
|
18982
18999
|
return n.indeterminate || !1;
|
|
@@ -18985,26 +19002,26 @@ function fk(e) {
|
|
|
18985
19002
|
}
|
|
18986
19003
|
});
|
|
18987
19004
|
}
|
|
18988
|
-
function pk(e) {
|
|
18989
|
-
let t = lk();
|
|
18990
|
-
return z(sk.Track, U(() => t.dataset(), e));
|
|
18991
|
-
}
|
|
18992
19005
|
function mk(e) {
|
|
18993
|
-
let t =
|
|
18994
|
-
return z(
|
|
18995
|
-
}
|
|
18996
|
-
|
|
18997
|
-
|
|
18998
|
-
|
|
18999
|
-
|
|
19000
|
-
|
|
19001
|
-
|
|
19006
|
+
let t = uk();
|
|
19007
|
+
return z(ck.Track, U(() => t.dataset(), e));
|
|
19008
|
+
}
|
|
19009
|
+
function hk(e) {
|
|
19010
|
+
let t = uk();
|
|
19011
|
+
return z(ck.ValueLabel, U(() => t.dataset(), e));
|
|
19012
|
+
}
|
|
19013
|
+
var gk = Object.assign(pk, {
|
|
19014
|
+
Fill: dk,
|
|
19015
|
+
Label: fk,
|
|
19016
|
+
Track: mk,
|
|
19017
|
+
ValueLabel: hk
|
|
19018
|
+
}), _k = (e) => {
|
|
19002
19019
|
let [t, n] = I(e, [
|
|
19003
19020
|
"class",
|
|
19004
19021
|
"value",
|
|
19005
19022
|
"tone"
|
|
19006
19023
|
]);
|
|
19007
|
-
return z(
|
|
19024
|
+
return z(gk, U({
|
|
19008
19025
|
"data-slot": "progress",
|
|
19009
19026
|
get value() {
|
|
19010
19027
|
return t.value;
|
|
@@ -19013,10 +19030,10 @@ var hk = Object.assign(fk, {
|
|
|
19013
19030
|
return D(nt, "relative h-2 w-full overflow-hidden rounded-full", t.class);
|
|
19014
19031
|
}
|
|
19015
19032
|
}, n, { get children() {
|
|
19016
|
-
return z(
|
|
19033
|
+
return z(gk.Track, {
|
|
19017
19034
|
class: "h-full w-full",
|
|
19018
19035
|
get children() {
|
|
19019
|
-
return z(
|
|
19036
|
+
return z(gk.Fill, {
|
|
19020
19037
|
"data-slot": "progress-indicator",
|
|
19021
19038
|
class: "glass glass-tint transition-glass h-full w-full flex-1",
|
|
19022
19039
|
get style() {
|
|
@@ -19029,16 +19046,16 @@ var hk = Object.assign(fk, {
|
|
|
19029
19046
|
}
|
|
19030
19047
|
});
|
|
19031
19048
|
} }));
|
|
19032
|
-
},
|
|
19049
|
+
}, vk = /*#__PURE__*/ K("<div data-slot=resizable-panel-group>"), yk = /*#__PURE__*/ K("<div data-slot=resizable-panel>"), bk = /*#__PURE__*/ K("<div class=\"bg-border z-10 flex h-4 w-3 items-center justify-center rounded-xs border\">"), xk = /*#__PURE__*/ K("<div data-slot=resizable-handle>"), Sk = A(), Ck = (e) => {
|
|
19033
19050
|
let [t, n] = I(e, [
|
|
19034
19051
|
"class",
|
|
19035
19052
|
"children",
|
|
19036
19053
|
"direction"
|
|
19037
19054
|
]), r = () => t.direction ?? "horizontal";
|
|
19038
|
-
return z(
|
|
19055
|
+
return z(Sk.Provider, {
|
|
19039
19056
|
value: { direction: r },
|
|
19040
19057
|
get children() {
|
|
19041
|
-
var e =
|
|
19058
|
+
var e = vk();
|
|
19042
19059
|
return G(e, U({
|
|
19043
19060
|
get "data-panel-group-direction"() {
|
|
19044
19061
|
return r();
|
|
@@ -19049,7 +19066,7 @@ var hk = Object.assign(fk, {
|
|
|
19049
19066
|
}, n), !1, !0), V(e, () => t.children), e;
|
|
19050
19067
|
}
|
|
19051
19068
|
});
|
|
19052
|
-
},
|
|
19069
|
+
}, wk = (e) => {
|
|
19053
19070
|
let [t, n] = I(e, [
|
|
19054
19071
|
"class",
|
|
19055
19072
|
"children",
|
|
@@ -19059,7 +19076,7 @@ var hk = Object.assign(fk, {
|
|
|
19059
19076
|
"style"
|
|
19060
19077
|
]);
|
|
19061
19078
|
return (() => {
|
|
19062
|
-
var e =
|
|
19079
|
+
var e = yk();
|
|
19063
19080
|
return G(e, U({
|
|
19064
19081
|
get class() {
|
|
19065
19082
|
return D("flex-1 overflow-auto", t.class);
|
|
@@ -19074,8 +19091,8 @@ var hk = Object.assign(fk, {
|
|
|
19074
19091
|
}
|
|
19075
19092
|
}, n), !1, !0), V(e, () => t.children), e;
|
|
19076
19093
|
})();
|
|
19077
|
-
},
|
|
19078
|
-
let [t, n] = I(e, ["class", "withHandle"]), r = L(
|
|
19094
|
+
}, Tk = (e) => {
|
|
19095
|
+
let [t, n] = I(e, ["class", "withHandle"]), r = L(Sk), i = (e) => {
|
|
19079
19096
|
e.preventDefault();
|
|
19080
19097
|
let t = e.currentTarget;
|
|
19081
19098
|
t.setPointerCapture(e.pointerId);
|
|
@@ -19094,7 +19111,7 @@ var hk = Object.assign(fk, {
|
|
|
19094
19111
|
t.addEventListener("pointermove", _), t.addEventListener("pointerup", v);
|
|
19095
19112
|
};
|
|
19096
19113
|
return (() => {
|
|
19097
|
-
var e =
|
|
19114
|
+
var e = xk();
|
|
19098
19115
|
return e.$$pointerdown = i, G(e, U({
|
|
19099
19116
|
get "data-panel-group-direction"() {
|
|
19100
19117
|
return r?.direction();
|
|
@@ -19107,7 +19124,7 @@ var hk = Object.assign(fk, {
|
|
|
19107
19124
|
return t.withHandle;
|
|
19108
19125
|
},
|
|
19109
19126
|
get children() {
|
|
19110
|
-
var e =
|
|
19127
|
+
var e = bk();
|
|
19111
19128
|
return V(e, z($, {
|
|
19112
19129
|
icon: "lucide:grip-vertical",
|
|
19113
19130
|
width: 10,
|
|
@@ -19121,17 +19138,17 @@ var hk = Object.assign(fk, {
|
|
|
19121
19138
|
Ft(["pointerdown"]);
|
|
19122
19139
|
//#endregion
|
|
19123
19140
|
//#region src/solid/responsive-dialog.tsx
|
|
19124
|
-
var
|
|
19125
|
-
function
|
|
19126
|
-
let e = L(
|
|
19141
|
+
var Ek = A();
|
|
19142
|
+
function Dk() {
|
|
19143
|
+
let e = L(Ek);
|
|
19127
19144
|
if (!e) throw Error("ResponsiveDialog parts must be used within <ResponsiveDialog>");
|
|
19128
19145
|
return e;
|
|
19129
19146
|
}
|
|
19130
|
-
var
|
|
19147
|
+
var Ok = (e) => {
|
|
19131
19148
|
let [t, n] = N(e.defaultOpen ?? !1), r = Qe(), i = () => r() === !0, a = () => e.open === void 0 ? t() : e.open === !0, o = (t) => {
|
|
19132
19149
|
e.open === void 0 && n(t), e.onOpenChange?.(t);
|
|
19133
19150
|
};
|
|
19134
|
-
return z(
|
|
19151
|
+
return z(Ek.Provider, {
|
|
19135
19152
|
value: {
|
|
19136
19153
|
open: a,
|
|
19137
19154
|
setOpen: o,
|
|
@@ -19167,8 +19184,8 @@ var Dk = (e) => {
|
|
|
19167
19184
|
});
|
|
19168
19185
|
}
|
|
19169
19186
|
});
|
|
19170
|
-
},
|
|
19171
|
-
let t =
|
|
19187
|
+
}, kk = (e) => {
|
|
19188
|
+
let t = Dk();
|
|
19172
19189
|
return z(O, {
|
|
19173
19190
|
get when() {
|
|
19174
19191
|
return t.isMobile();
|
|
@@ -19180,8 +19197,8 @@ var Dk = (e) => {
|
|
|
19180
19197
|
return z(Kf, e);
|
|
19181
19198
|
}
|
|
19182
19199
|
});
|
|
19183
|
-
},
|
|
19184
|
-
let t =
|
|
19200
|
+
}, Ak = (e) => {
|
|
19201
|
+
let t = Dk(), [n, r] = I(e, [
|
|
19185
19202
|
"class",
|
|
19186
19203
|
"children",
|
|
19187
19204
|
"size",
|
|
@@ -19225,8 +19242,8 @@ var Dk = (e) => {
|
|
|
19225
19242
|
} });
|
|
19226
19243
|
}
|
|
19227
19244
|
});
|
|
19228
|
-
}, { Header:
|
|
19229
|
-
let t =
|
|
19245
|
+
}, { Header: jk, Body: Mk, Footer: Nk } = zs("responsive-dialog"), Pk = (e) => {
|
|
19246
|
+
let t = Dk();
|
|
19230
19247
|
return z(O, {
|
|
19231
19248
|
get when() {
|
|
19232
19249
|
return t.isMobile();
|
|
@@ -19238,8 +19255,8 @@ var Dk = (e) => {
|
|
|
19238
19255
|
return z(ep, e);
|
|
19239
19256
|
}
|
|
19240
19257
|
});
|
|
19241
|
-
},
|
|
19242
|
-
let t =
|
|
19258
|
+
}, Fk = (e) => {
|
|
19259
|
+
let t = Dk();
|
|
19243
19260
|
return z(O, {
|
|
19244
19261
|
get when() {
|
|
19245
19262
|
return t.isMobile();
|
|
@@ -19251,13 +19268,13 @@ var Dk = (e) => {
|
|
|
19251
19268
|
return z(tp, e);
|
|
19252
19269
|
}
|
|
19253
19270
|
});
|
|
19254
|
-
},
|
|
19271
|
+
}, Ik = (e) => {
|
|
19255
19272
|
let [t, n] = I(e, [
|
|
19256
19273
|
"children",
|
|
19257
19274
|
"class",
|
|
19258
19275
|
"variant",
|
|
19259
19276
|
"size"
|
|
19260
|
-
]), r =
|
|
19277
|
+
]), r = Dk();
|
|
19261
19278
|
return z(_p, U({
|
|
19262
19279
|
"data-slot": "responsive-dialog-close",
|
|
19263
19280
|
get variant() {
|
|
@@ -19273,7 +19290,7 @@ var Dk = (e) => {
|
|
|
19273
19290
|
}, n, { get children() {
|
|
19274
19291
|
return t.children ?? "Close";
|
|
19275
19292
|
} }));
|
|
19276
|
-
},
|
|
19293
|
+
}, Lk = /*#__PURE__*/ K("<button><span data-slot=switch-thumb>"), Rk = /*#__PURE__*/ K("<input type=hidden>"), zk = (e) => {
|
|
19277
19294
|
let [t, n] = I(e, [
|
|
19278
19295
|
"class",
|
|
19279
19296
|
"checked",
|
|
@@ -19283,7 +19300,7 @@ var Dk = (e) => {
|
|
|
19283
19300
|
"name"
|
|
19284
19301
|
]), [r, i] = N(e.defaultChecked ?? !1), a = () => t.checked ?? r();
|
|
19285
19302
|
return (() => {
|
|
19286
|
-
var e =
|
|
19303
|
+
var e = Lk(), r = e.firstChild;
|
|
19287
19304
|
return G(e, U(n, {
|
|
19288
19305
|
type: "button",
|
|
19289
19306
|
role: "switch",
|
|
@@ -19307,7 +19324,7 @@ var Dk = (e) => {
|
|
|
19307
19324
|
}), !1, !0), V(e, (() => {
|
|
19308
19325
|
var e = H(() => !!t.name);
|
|
19309
19326
|
return () => e() && (() => {
|
|
19310
|
-
var e =
|
|
19327
|
+
var e = Rk();
|
|
19311
19328
|
return B(() => W(e, "name", t.name)), B(() => e.value = a() ? "on" : "off"), e;
|
|
19312
19329
|
})();
|
|
19313
19330
|
})(), null), B((e) => {
|
|
@@ -19320,10 +19337,10 @@ var Dk = (e) => {
|
|
|
19320
19337
|
})();
|
|
19321
19338
|
};
|
|
19322
19339
|
ei({}, {
|
|
19323
|
-
Root: () =>
|
|
19324
|
-
ToggleButton: () =>
|
|
19340
|
+
Root: () => Bk,
|
|
19341
|
+
ToggleButton: () => Hk
|
|
19325
19342
|
});
|
|
19326
|
-
function
|
|
19343
|
+
function Bk(e) {
|
|
19327
19344
|
let [t, n] = I(e, [
|
|
19328
19345
|
"children",
|
|
19329
19346
|
"pressed",
|
|
@@ -19347,7 +19364,7 @@ function zk(e) {
|
|
|
19347
19364
|
Y(e, t.onClick), r.toggle();
|
|
19348
19365
|
}
|
|
19349
19366
|
}, n, { get children() {
|
|
19350
|
-
return z(
|
|
19367
|
+
return z(Vk, {
|
|
19351
19368
|
get state() {
|
|
19352
19369
|
return { pressed: r.isSelected };
|
|
19353
19370
|
},
|
|
@@ -19357,27 +19374,27 @@ function zk(e) {
|
|
|
19357
19374
|
});
|
|
19358
19375
|
} }));
|
|
19359
19376
|
}
|
|
19360
|
-
function
|
|
19377
|
+
function Vk(e) {
|
|
19361
19378
|
return H(k(() => {
|
|
19362
19379
|
let t = e.children;
|
|
19363
19380
|
return pn(t) ? t(e.state) : t;
|
|
19364
19381
|
}));
|
|
19365
19382
|
}
|
|
19366
|
-
var
|
|
19383
|
+
var Hk = Bk;
|
|
19367
19384
|
ei({}, {
|
|
19368
|
-
Item: () =>
|
|
19369
|
-
Root: () =>
|
|
19370
|
-
ToggleGroup: () =>
|
|
19371
|
-
useToggleGroupContext: () =>
|
|
19385
|
+
Item: () => Gk,
|
|
19386
|
+
Root: () => qk,
|
|
19387
|
+
ToggleGroup: () => Jk,
|
|
19388
|
+
useToggleGroupContext: () => Wk
|
|
19372
19389
|
});
|
|
19373
|
-
var
|
|
19374
|
-
function
|
|
19375
|
-
let e = L(
|
|
19390
|
+
var Uk = A();
|
|
19391
|
+
function Wk() {
|
|
19392
|
+
let e = L(Uk);
|
|
19376
19393
|
if (e === void 0) throw Error("[kobalte]: `useToggleGroupContext` must be used within a `ToggleGroup` component");
|
|
19377
19394
|
return e;
|
|
19378
19395
|
}
|
|
19379
|
-
function
|
|
19380
|
-
let t, n =
|
|
19396
|
+
function Gk(e) {
|
|
19397
|
+
let t, n = Wk(), [r, i] = I(Z({ id: n.generateId(`item-${P()}`) }, e), [
|
|
19381
19398
|
"ref",
|
|
19382
19399
|
"value",
|
|
19383
19400
|
"disabled",
|
|
@@ -19400,7 +19417,7 @@ function Wk(e) {
|
|
|
19400
19417
|
selectionManager: a,
|
|
19401
19418
|
disabled: o
|
|
19402
19419
|
}, () => t);
|
|
19403
|
-
return z(
|
|
19420
|
+
return z(Bk, U({
|
|
19404
19421
|
ref(e) {
|
|
19405
19422
|
var n = J((e) => t = e, r.ref);
|
|
19406
19423
|
typeof n == "function" && n(e);
|
|
@@ -19437,7 +19454,7 @@ function Wk(e) {
|
|
|
19437
19454
|
}
|
|
19438
19455
|
}, i));
|
|
19439
19456
|
}
|
|
19440
|
-
function
|
|
19457
|
+
function Kk(e) {
|
|
19441
19458
|
let t, [n, r] = I(Z({
|
|
19442
19459
|
id: `group-${P()}`,
|
|
19443
19460
|
selectionMode: "single",
|
|
@@ -19477,7 +19494,7 @@ function Gk(e) {
|
|
|
19477
19494
|
orientation: () => n.orientation
|
|
19478
19495
|
};
|
|
19479
19496
|
return z(o, { get children() {
|
|
19480
|
-
return z(
|
|
19497
|
+
return z(Uk.Provider, {
|
|
19481
19498
|
value: d,
|
|
19482
19499
|
get children() {
|
|
19483
19500
|
return z(Q, U({
|
|
@@ -19510,14 +19527,14 @@ function Gk(e) {
|
|
|
19510
19527
|
});
|
|
19511
19528
|
} });
|
|
19512
19529
|
}
|
|
19513
|
-
function
|
|
19530
|
+
function qk(e) {
|
|
19514
19531
|
let [t, n] = I(e, [
|
|
19515
19532
|
"value",
|
|
19516
19533
|
"defaultValue",
|
|
19517
19534
|
"onChange",
|
|
19518
19535
|
"multiple"
|
|
19519
19536
|
]), r = M(() => t.value == null || t.multiple ? t.value : [t.value]), i = M(() => t.defaultValue == null || t.multiple ? t.defaultValue : [t.defaultValue]);
|
|
19520
|
-
return z(
|
|
19537
|
+
return z(Kk, U({
|
|
19521
19538
|
get value() {
|
|
19522
19539
|
return r();
|
|
19523
19540
|
},
|
|
@@ -19532,7 +19549,7 @@ function Kk(e) {
|
|
|
19532
19549
|
}
|
|
19533
19550
|
}, n));
|
|
19534
19551
|
}
|
|
19535
|
-
var
|
|
19552
|
+
var Jk = Object.assign(qk, { Item: Gk }), Yk = v({
|
|
19536
19553
|
base: `${Be} 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`,
|
|
19537
19554
|
variants: {
|
|
19538
19555
|
variant: {
|
|
@@ -19549,29 +19566,29 @@ var qk = Object.assign(Kk, { Item: Wk }), Jk = v({
|
|
|
19549
19566
|
variant: "default",
|
|
19550
19567
|
size: "default"
|
|
19551
19568
|
}
|
|
19552
|
-
}),
|
|
19569
|
+
}), Xk = {
|
|
19553
19570
|
default: "not-data-[pressed]:hover:bg-muted not-data-[pressed]:hover:text-muted-foreground data-[pressed]:hover:[--glass-wash:40%]",
|
|
19554
19571
|
outline: ""
|
|
19555
|
-
},
|
|
19572
|
+
}, Zk = (e) => {
|
|
19556
19573
|
let [t, n] = I(e, [
|
|
19557
19574
|
"class",
|
|
19558
19575
|
"variant",
|
|
19559
19576
|
"size"
|
|
19560
19577
|
]);
|
|
19561
|
-
return z(
|
|
19578
|
+
return z(Hk, U({
|
|
19562
19579
|
"data-slot": "toggle",
|
|
19563
19580
|
get class() {
|
|
19564
|
-
return D(
|
|
19581
|
+
return D(Yk({
|
|
19565
19582
|
variant: t.variant,
|
|
19566
19583
|
size: t.size
|
|
19567
|
-
}),
|
|
19584
|
+
}), Xk[t.variant ?? "default"], "data-[pressed]:glass data-[pressed]:[--glass-tone:var(--material-accent)]", t.class);
|
|
19568
19585
|
}
|
|
19569
19586
|
}, n));
|
|
19570
|
-
},
|
|
19587
|
+
}, Qk = A({
|
|
19571
19588
|
size: "default",
|
|
19572
19589
|
variant: "default",
|
|
19573
19590
|
sliding: !0
|
|
19574
|
-
}),
|
|
19591
|
+
}), $k = (e) => {
|
|
19575
19592
|
let [t, n] = I(e, [
|
|
19576
19593
|
"class",
|
|
19577
19594
|
"variant",
|
|
@@ -19582,7 +19599,7 @@ var qk = Object.assign(Kk, { Item: Wk }), Jk = v({
|
|
|
19582
19599
|
]), i = () => !e.multiple, a;
|
|
19583
19600
|
return At(() => {
|
|
19584
19601
|
t.scroll && a && F(wh(a, "[data-pressed]", "data-pressed"));
|
|
19585
|
-
}), z(
|
|
19602
|
+
}), z(Jk, U({
|
|
19586
19603
|
ref(e) {
|
|
19587
19604
|
var t = a;
|
|
19588
19605
|
typeof t == "function" ? t(e) : a = e;
|
|
@@ -19601,7 +19618,7 @@ var qk = Object.assign(Kk, { Item: Wk }), Jk = v({
|
|
|
19601
19618
|
return D(`group/toggle-group flex w-fit max-w-full flex-wrap items-center gap-y-1 rounded-lg ${r} 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);
|
|
19602
19619
|
}
|
|
19603
19620
|
}, n, { get children() {
|
|
19604
|
-
return z(
|
|
19621
|
+
return z(Qk.Provider, {
|
|
19605
19622
|
get value() {
|
|
19606
19623
|
return {
|
|
19607
19624
|
variant: t.variant,
|
|
@@ -19635,14 +19652,14 @@ var qk = Object.assign(Kk, { Item: Wk }), Jk = v({
|
|
|
19635
19652
|
}
|
|
19636
19653
|
});
|
|
19637
19654
|
} }));
|
|
19638
|
-
},
|
|
19655
|
+
}, eA = (e) => {
|
|
19639
19656
|
let [t, n] = I(e, [
|
|
19640
19657
|
"class",
|
|
19641
19658
|
"variant",
|
|
19642
19659
|
"size",
|
|
19643
19660
|
"children"
|
|
19644
|
-
]), r = L(
|
|
19645
|
-
return z(
|
|
19661
|
+
]), r = L(Qk);
|
|
19662
|
+
return z(Jk.Item, U({
|
|
19646
19663
|
"data-slot": "toggle-group-item",
|
|
19647
19664
|
get "data-variant"() {
|
|
19648
19665
|
return r.variant || t.variant;
|
|
@@ -19651,7 +19668,7 @@ var qk = Object.assign(Kk, { Item: Wk }), Jk = v({
|
|
|
19651
19668
|
return r.size || t.size;
|
|
19652
19669
|
},
|
|
19653
19670
|
get class() {
|
|
19654
|
-
return D(
|
|
19671
|
+
return D(Yk({
|
|
19655
19672
|
variant: r.variant || t.variant,
|
|
19656
19673
|
size: r.size || t.size
|
|
19657
19674
|
}), "relative isolate 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);
|
|
@@ -19660,89 +19677,89 @@ var qk = Object.assign(Kk, { Item: Wk }), Jk = v({
|
|
|
19660
19677
|
let n = t.children;
|
|
19661
19678
|
return [z(Hc, {}), H(() => typeof n == "function" ? n(e) : n)];
|
|
19662
19679
|
} }));
|
|
19663
|
-
},
|
|
19680
|
+
}, tA = /*#__PURE__*/ K("<ul class=\"flex list-inside list-disc flex-col gap-1\">"), nA = /*#__PURE__*/ K("<div data-slot=schema-form>"), rA = /*#__PURE__*/ K("<li>"), iA = /*#__PURE__*/ K("<div class=\"flex items-center gap-3\"><span class=text-sm>"), aA = /*#__PURE__*/ K("<p class=\"text-muted-foreground text-sm\">Add at least <!> <!>."), oA = /*#__PURE__*/ K("<fieldset data-slot=schema-form-list>"), sA = /*#__PURE__*/ K("<span data-slot=schema-form-list-item-thumb>"), cA = /*#__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\">"), lA = /*#__PURE__*/ K("<div class=\"border-border border-t p-3\">"), uA = /*#__PURE__*/ K("<img alt decoding=async class=\"absolute inset-0 h-full w-full object-cover\">"), dA = /*#__PURE__*/ K("<fieldset class=\"flex w-full min-w-0 flex-col gap-3\"data-slot=schema-form-variants>"), fA = /*#__PURE__*/ K("<div>"), pA = /*#__PURE__*/ K("<div class=\"flex flex-wrap gap-1.5\">"), mA = /*#__PURE__*/ K("<fieldset class=\"flex min-w-0 flex-col gap-2\"data-slot=schema-form-string-list>"), hA = /*#__PURE__*/ K("<button type=button class=\"hover:text-destructive cursor-pointer rounded-sm\">"), gA = [
|
|
19664
19681
|
"icon-picker",
|
|
19665
19682
|
"image-picker",
|
|
19666
19683
|
"area-picker",
|
|
19667
19684
|
"list",
|
|
19668
19685
|
"variants"
|
|
19669
|
-
],
|
|
19670
|
-
function
|
|
19686
|
+
], _A = /* @__PURE__ */ new Set();
|
|
19687
|
+
function vA(e, t) {
|
|
19671
19688
|
let n = e.toLowerCase();
|
|
19672
|
-
return t.type !== "string" || n !== "areaid" && n !== "area_id" ? !1 : (typeof process < "u" && process.env.NODE_ENV !== "production" && !
|
|
19673
|
-
}
|
|
19674
|
-
function vA(e) {
|
|
19675
|
-
return e.formType === void 0 || hA.includes(e.formType);
|
|
19689
|
+
return t.type !== "string" || n !== "areaid" && n !== "area_id" ? !1 : (typeof process < "u" && process.env.NODE_ENV !== "production" && !_A.has(e) && (_A.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);
|
|
19676
19690
|
}
|
|
19677
19691
|
function yA(e) {
|
|
19678
|
-
return
|
|
19692
|
+
return e.formType === void 0 || gA.includes(e.formType);
|
|
19679
19693
|
}
|
|
19680
19694
|
function bA(e) {
|
|
19681
|
-
return
|
|
19695
|
+
return typeof e == "object" && e ? e : {};
|
|
19682
19696
|
}
|
|
19683
19697
|
function xA(e) {
|
|
19684
|
-
return
|
|
19698
|
+
return Array.isArray(e.items) ? {} : bA(e.items);
|
|
19685
19699
|
}
|
|
19686
19700
|
function SA(e) {
|
|
19687
|
-
return e.
|
|
19701
|
+
return Object.entries(e.properties ?? {}).map(([e, t]) => [e, bA(t)]);
|
|
19688
19702
|
}
|
|
19689
19703
|
function CA(e) {
|
|
19690
|
-
return e.type === "array" &&
|
|
19704
|
+
return e.type === "array" && xA(e).type === "string" && e.domain !== void 0;
|
|
19691
19705
|
}
|
|
19692
19706
|
function wA(e) {
|
|
19693
|
-
return e.type === "array" &&
|
|
19707
|
+
return e.type === "array" && xA(e).type === "string";
|
|
19694
19708
|
}
|
|
19695
19709
|
function TA(e) {
|
|
19696
|
-
return e.type === "
|
|
19710
|
+
return e.type === "array" && xA(e).enum !== void 0;
|
|
19697
19711
|
}
|
|
19698
19712
|
function EA(e) {
|
|
19699
|
-
return
|
|
19713
|
+
return e.type === "object" && e.properties !== void 0 && e.formType === void 0;
|
|
19700
19714
|
}
|
|
19701
19715
|
function DA(e) {
|
|
19702
|
-
return typeof e == "
|
|
19716
|
+
return typeof e == "object" && e ? e : {};
|
|
19703
19717
|
}
|
|
19704
19718
|
function OA(e) {
|
|
19705
|
-
|
|
19706
|
-
for (let [n, r] of xA(e)) r.const === void 0 ? r.default !== void 0 && (t[n] = structuredClone(r.default)) : t[n] = structuredClone(r.const);
|
|
19707
|
-
return t;
|
|
19719
|
+
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" ? String(e) : "";
|
|
19708
19720
|
}
|
|
19709
19721
|
function kA(e) {
|
|
19710
|
-
|
|
19711
|
-
let t =
|
|
19712
|
-
return
|
|
19722
|
+
let t = {};
|
|
19723
|
+
for (let [n, r] of SA(e)) r.const === void 0 ? r.default !== void 0 && (t[n] = structuredClone(r.default)) : t[n] = structuredClone(r.const);
|
|
19724
|
+
return t;
|
|
19713
19725
|
}
|
|
19714
19726
|
function AA(e) {
|
|
19715
|
-
|
|
19727
|
+
if (e.default !== void 0) return DA(structuredClone(e.default));
|
|
19728
|
+
let t = jA(e)[0];
|
|
19729
|
+
return kA(t || e);
|
|
19730
|
+
}
|
|
19731
|
+
function jA(e) {
|
|
19732
|
+
return (e.oneOf ?? e.anyOf ?? []).map(bA).filter((e) => e.properties !== void 0);
|
|
19716
19733
|
}
|
|
19717
|
-
function
|
|
19718
|
-
let n =
|
|
19734
|
+
function MA(e, t) {
|
|
19735
|
+
let n = bA(e.properties?.[t]);
|
|
19719
19736
|
return typeof n.const == "string" ? n.const : "";
|
|
19720
19737
|
}
|
|
19721
|
-
function
|
|
19722
|
-
let i =
|
|
19723
|
-
for (let [n] of
|
|
19738
|
+
function NA(e, t, n, r) {
|
|
19739
|
+
let i = kA(e);
|
|
19740
|
+
for (let [n] of SA(e)) n !== t && n in r && r[n] !== void 0 && (i[n] = r[n]);
|
|
19724
19741
|
return i[t] = n, i;
|
|
19725
19742
|
}
|
|
19726
|
-
function
|
|
19743
|
+
function PA(e) {
|
|
19727
19744
|
let t = () => {
|
|
19728
19745
|
let t = e.schema;
|
|
19729
|
-
return t.type !== "object" || !t.properties ? [] :
|
|
19746
|
+
return t.type !== "object" || !t.properties ? [] : SA(t);
|
|
19730
19747
|
}, n = (t, n) => {
|
|
19731
19748
|
e.onChange({
|
|
19732
19749
|
...e.data,
|
|
19733
19750
|
[t]: n
|
|
19734
19751
|
});
|
|
19735
|
-
};
|
|
19752
|
+
}, r = P();
|
|
19736
19753
|
return (() => {
|
|
19737
|
-
var
|
|
19738
|
-
return V(
|
|
19754
|
+
var i = nA();
|
|
19755
|
+
return V(i, z(_t, {
|
|
19739
19756
|
get each() {
|
|
19740
19757
|
return t();
|
|
19741
19758
|
},
|
|
19742
|
-
children: ([t,
|
|
19743
|
-
id: t
|
|
19759
|
+
children: ([t, i]) => z(RA, {
|
|
19760
|
+
id: `${r}-${t}`,
|
|
19744
19761
|
name: t,
|
|
19745
|
-
prop:
|
|
19762
|
+
prop: i,
|
|
19746
19763
|
get value() {
|
|
19747
19764
|
return e.data[t];
|
|
19748
19765
|
},
|
|
@@ -19751,7 +19768,7 @@ function NA(e) {
|
|
|
19751
19768
|
return e.searchIcons;
|
|
19752
19769
|
}
|
|
19753
19770
|
})
|
|
19754
|
-
}), null), V(
|
|
19771
|
+
}), null), V(i, z(O, {
|
|
19755
19772
|
get when() {
|
|
19756
19773
|
return H(() => !!e.errors)() && e.errors.length > 0;
|
|
19757
19774
|
},
|
|
@@ -19760,41 +19777,41 @@ function NA(e) {
|
|
|
19760
19777
|
tone: "destructive",
|
|
19761
19778
|
title: "Validation errors",
|
|
19762
19779
|
get children() {
|
|
19763
|
-
var t =
|
|
19780
|
+
var t = tA();
|
|
19764
19781
|
return V(t, z(_t, {
|
|
19765
19782
|
get each() {
|
|
19766
19783
|
return e.errors;
|
|
19767
19784
|
},
|
|
19768
19785
|
children: (e) => (() => {
|
|
19769
|
-
var t =
|
|
19786
|
+
var t = rA();
|
|
19770
19787
|
return V(t, e), t;
|
|
19771
19788
|
})()
|
|
19772
19789
|
})), t;
|
|
19773
19790
|
}
|
|
19774
19791
|
});
|
|
19775
19792
|
}
|
|
19776
|
-
}), null), B(() => R(
|
|
19793
|
+
}), null), B(() => R(i, D("flex w-full min-w-0 flex-col gap-6", e.class))), i;
|
|
19777
19794
|
})();
|
|
19778
19795
|
}
|
|
19779
|
-
var
|
|
19780
|
-
["unknown", (e) => !
|
|
19796
|
+
var FA = [
|
|
19797
|
+
["unknown", (e) => !yA(e)],
|
|
19781
19798
|
["list", (e) => e.formType === "list"],
|
|
19782
19799
|
["variants", (e) => e.formType === "variants"],
|
|
19783
|
-
["entities", (e) =>
|
|
19800
|
+
["entities", (e) => CA(e)],
|
|
19784
19801
|
["icon", (e) => e.formType === "icon-picker"],
|
|
19785
19802
|
["image", (e) => e.formType === "image-picker"],
|
|
19786
|
-
["area", (e, t) => e.formType === "area-picker" ||
|
|
19803
|
+
["area", (e, t) => e.formType === "area-picker" || vA(t, e)],
|
|
19787
19804
|
["enum", (e) => e.enum !== void 0],
|
|
19788
19805
|
["boolean", (e) => e.type === "boolean"],
|
|
19789
19806
|
["number", (e) => e.type === "number" || e.type === "integer"],
|
|
19790
|
-
["choices", (e) =>
|
|
19791
|
-
["strings", (e) =>
|
|
19792
|
-
["group", (e) =>
|
|
19807
|
+
["choices", (e) => TA(e)],
|
|
19808
|
+
["strings", (e) => wA(e)],
|
|
19809
|
+
["group", (e) => EA(e)]
|
|
19793
19810
|
];
|
|
19794
|
-
function
|
|
19795
|
-
return
|
|
19811
|
+
function IA(e, t) {
|
|
19812
|
+
return FA.find(([, n]) => n(e, t))?.[0] ?? "text";
|
|
19796
19813
|
}
|
|
19797
|
-
var
|
|
19814
|
+
var LA = {
|
|
19798
19815
|
text: "for",
|
|
19799
19816
|
image: "for",
|
|
19800
19817
|
number: "for",
|
|
@@ -19810,14 +19827,14 @@ var IA = {
|
|
|
19810
19827
|
unknown: "none",
|
|
19811
19828
|
group: "none"
|
|
19812
19829
|
};
|
|
19813
|
-
function
|
|
19814
|
-
let t = () =>
|
|
19830
|
+
function RA(e) {
|
|
19831
|
+
let t = () => IA(e.prop, e.name), n = () => `${e.id}-label`, r = () => LA[t()];
|
|
19815
19832
|
return z(O, {
|
|
19816
19833
|
get when() {
|
|
19817
19834
|
return t() !== "group";
|
|
19818
19835
|
},
|
|
19819
19836
|
get fallback() {
|
|
19820
|
-
return z(
|
|
19837
|
+
return z(zA, e);
|
|
19821
19838
|
},
|
|
19822
19839
|
get children() {
|
|
19823
19840
|
return z(yw, { get children() {
|
|
@@ -19841,7 +19858,7 @@ function LA(e) {
|
|
|
19841
19858
|
return e();
|
|
19842
19859
|
} })
|
|
19843
19860
|
}),
|
|
19844
|
-
z(
|
|
19861
|
+
z(zA, U(e, { get labelledBy() {
|
|
19845
19862
|
return H(() => r() === "labelledby")() ? n() : void 0;
|
|
19846
19863
|
} }))
|
|
19847
19864
|
];
|
|
@@ -19849,8 +19866,8 @@ function LA(e) {
|
|
|
19849
19866
|
}
|
|
19850
19867
|
});
|
|
19851
19868
|
}
|
|
19852
|
-
function
|
|
19853
|
-
let t = () => e.value ?? e.prop.default, n = () =>
|
|
19869
|
+
function zA(e) {
|
|
19870
|
+
let t = () => e.value ?? e.prop.default, n = () => OA(t()), r = (t) => e.prop.labels?.[t] ?? t, i = () => IA(e.prop, e.name);
|
|
19854
19871
|
return z(bt, {
|
|
19855
19872
|
get fallback() {
|
|
19856
19873
|
return z(Mb, {
|
|
@@ -19883,7 +19900,7 @@ function RA(e) {
|
|
|
19883
19900
|
return i() === "list";
|
|
19884
19901
|
},
|
|
19885
19902
|
get children() {
|
|
19886
|
-
return z(
|
|
19903
|
+
return z(VA, e);
|
|
19887
19904
|
}
|
|
19888
19905
|
}),
|
|
19889
19906
|
z(yt, {
|
|
@@ -19891,7 +19908,7 @@ function RA(e) {
|
|
|
19891
19908
|
return i() === "variants";
|
|
19892
19909
|
},
|
|
19893
19910
|
get children() {
|
|
19894
|
-
return z(
|
|
19911
|
+
return z(HA, e);
|
|
19895
19912
|
}
|
|
19896
19913
|
}),
|
|
19897
19914
|
z(yt, {
|
|
@@ -19977,7 +19994,7 @@ function RA(e) {
|
|
|
19977
19994
|
get when() {
|
|
19978
19995
|
return H(() => i() === "enum")() && e.prop.icons;
|
|
19979
19996
|
},
|
|
19980
|
-
children: (t) => z(
|
|
19997
|
+
children: (t) => z(jO, {
|
|
19981
19998
|
get "aria-labelledby"() {
|
|
19982
19999
|
return e.labelledBy;
|
|
19983
20000
|
},
|
|
@@ -19991,7 +20008,7 @@ function RA(e) {
|
|
|
19991
20008
|
get each() {
|
|
19992
20009
|
return (e.prop.enum ?? []).map(String);
|
|
19993
20010
|
},
|
|
19994
|
-
children: (e) => z(
|
|
20011
|
+
children: (e) => z(MO, {
|
|
19995
20012
|
value: e,
|
|
19996
20013
|
get title() {
|
|
19997
20014
|
return r(e);
|
|
@@ -20046,8 +20063,8 @@ function RA(e) {
|
|
|
20046
20063
|
return i() === "boolean";
|
|
20047
20064
|
},
|
|
20048
20065
|
get children() {
|
|
20049
|
-
var n =
|
|
20050
|
-
return V(n, z(
|
|
20066
|
+
var n = iA(), r = n.firstChild;
|
|
20067
|
+
return V(n, z(zk, {
|
|
20051
20068
|
get "aria-labelledby"() {
|
|
20052
20069
|
return e.labelledBy;
|
|
20053
20070
|
},
|
|
@@ -20088,7 +20105,7 @@ function RA(e) {
|
|
|
20088
20105
|
return i() === "choices";
|
|
20089
20106
|
},
|
|
20090
20107
|
get children() {
|
|
20091
|
-
return z(
|
|
20108
|
+
return z(UA, e);
|
|
20092
20109
|
}
|
|
20093
20110
|
}),
|
|
20094
20111
|
z(yt, {
|
|
@@ -20096,7 +20113,7 @@ function RA(e) {
|
|
|
20096
20113
|
return i() === "strings";
|
|
20097
20114
|
},
|
|
20098
20115
|
get children() {
|
|
20099
|
-
return z(
|
|
20116
|
+
return z(WA, {
|
|
20100
20117
|
get labelledBy() {
|
|
20101
20118
|
return e.labelledBy;
|
|
20102
20119
|
},
|
|
@@ -20142,19 +20159,19 @@ function RA(e) {
|
|
|
20142
20159
|
}),
|
|
20143
20160
|
z(_t, {
|
|
20144
20161
|
get each() {
|
|
20145
|
-
return
|
|
20162
|
+
return SA(e.prop);
|
|
20146
20163
|
},
|
|
20147
|
-
children: ([n, r]) => z(
|
|
20164
|
+
children: ([n, r]) => z(RA, {
|
|
20148
20165
|
get id() {
|
|
20149
20166
|
return `${e.id}.${n}`;
|
|
20150
20167
|
},
|
|
20151
20168
|
name: n,
|
|
20152
20169
|
prop: r,
|
|
20153
20170
|
get value() {
|
|
20154
|
-
return
|
|
20171
|
+
return DA(t())[n];
|
|
20155
20172
|
},
|
|
20156
20173
|
onChange: (r) => e.onChange({
|
|
20157
|
-
...
|
|
20174
|
+
...DA(t()),
|
|
20158
20175
|
[n]: r
|
|
20159
20176
|
}),
|
|
20160
20177
|
get searchIcons() {
|
|
@@ -20171,21 +20188,21 @@ function RA(e) {
|
|
|
20171
20188
|
}
|
|
20172
20189
|
});
|
|
20173
20190
|
}
|
|
20174
|
-
var
|
|
20191
|
+
var BA = {
|
|
20175
20192
|
class: "gap-2",
|
|
20176
20193
|
px: 8
|
|
20177
20194
|
};
|
|
20178
|
-
function
|
|
20179
|
-
let t = () =>
|
|
20180
|
-
let e =
|
|
20195
|
+
function VA(e) {
|
|
20196
|
+
let t = () => xA(e.prop), n = ST(), [r, i] = N(/* @__PURE__ */ new Set()), a = M(() => {
|
|
20197
|
+
let e = SA(t()).filter(([, e]) => e.formType === "image-picker");
|
|
20181
20198
|
return e.length === 1 ? e[0]?.[0] : void 0;
|
|
20182
20199
|
}), o = (e) => {
|
|
20183
20200
|
let r = a();
|
|
20184
20201
|
if (r === void 0) return;
|
|
20185
|
-
let i =
|
|
20202
|
+
let i = DA(e)[r];
|
|
20186
20203
|
if (typeof i != "string" || i === "") return;
|
|
20187
20204
|
let o = kT(i);
|
|
20188
|
-
if (o !== void 0) return
|
|
20205
|
+
if (o !== void 0) return SA(t()).find(([e]) => e === r)?.[1].presets?.[o]?.thumb;
|
|
20189
20206
|
let s = n;
|
|
20190
20207
|
if (s) return s.url(i, "thumb");
|
|
20191
20208
|
}, s = (e) => {
|
|
@@ -20197,12 +20214,12 @@ function BA(e) {
|
|
|
20197
20214
|
}, l = () => e.prop.minItems ?? 0, u = () => e.prop.maxItems !== void 0 && c().length >= e.prop.maxItems, [d, f] = N(-1), p = (e) => {
|
|
20198
20215
|
let n = t();
|
|
20199
20216
|
if (n.formType !== "variants" || n.discriminator === void 0) return;
|
|
20200
|
-
let r =
|
|
20217
|
+
let r = DA(e)[n.discriminator];
|
|
20201
20218
|
if (typeof r == "string") return n.labels?.[r] ?? r;
|
|
20202
20219
|
}, m = (t) => {
|
|
20203
20220
|
let n = e.prop.labelField;
|
|
20204
20221
|
if (n === void 0) return;
|
|
20205
|
-
let r =
|
|
20222
|
+
let r = DA(t)[n];
|
|
20206
20223
|
if (typeof r == "string" && r.trim() !== "") return r;
|
|
20207
20224
|
if (typeof r == "number") return String(r);
|
|
20208
20225
|
}, h = (e, t) => m(e) ?? p(e) ?? `Item ${t + 1}`, g = (e) => m(e) === void 0 ? void 0 : p(e), _ = (t, n) => {
|
|
@@ -20217,17 +20234,17 @@ function BA(e) {
|
|
|
20217
20234
|
a === t ? f(n) : a !== -1 && (t < a && n >= a ? f(a - 1) : t > a && n <= a && f(a + 1));
|
|
20218
20235
|
}, b = qD({
|
|
20219
20236
|
count: () => c().length,
|
|
20220
|
-
gapPx:
|
|
20237
|
+
gapPx: BA.px,
|
|
20221
20238
|
onReorder: y,
|
|
20222
20239
|
onDragStart: (e) => {
|
|
20223
20240
|
d() === e && f(-1);
|
|
20224
20241
|
}
|
|
20225
20242
|
}), x = () => {
|
|
20226
|
-
let n = [...c(),
|
|
20243
|
+
let n = [...c(), AA(t())];
|
|
20227
20244
|
e.onChange(n), f(n.length - 1);
|
|
20228
20245
|
};
|
|
20229
20246
|
return (() => {
|
|
20230
|
-
var r =
|
|
20247
|
+
var r = oA();
|
|
20231
20248
|
return V(r, z(vt, {
|
|
20232
20249
|
get each() {
|
|
20233
20250
|
return c();
|
|
@@ -20251,7 +20268,7 @@ function BA(e) {
|
|
|
20251
20268
|
},
|
|
20252
20269
|
get children() {
|
|
20253
20270
|
return [(() => {
|
|
20254
|
-
var e =
|
|
20271
|
+
var e = cA(), t = e.firstChild;
|
|
20255
20272
|
return e.$$pointerdown = (e) => {
|
|
20256
20273
|
let t = e.target.closest("button");
|
|
20257
20274
|
t && t.dataset.slot !== "collapsible-trigger" || b.startDrag(u, e, !1);
|
|
@@ -20273,7 +20290,7 @@ function BA(e) {
|
|
|
20273
20290
|
return a() !== void 0 && n !== void 0;
|
|
20274
20291
|
},
|
|
20275
20292
|
get children() {
|
|
20276
|
-
var e =
|
|
20293
|
+
var e = sA();
|
|
20277
20294
|
return V(e, z(O, {
|
|
20278
20295
|
get when() {
|
|
20279
20296
|
return s(r());
|
|
@@ -20289,8 +20306,11 @@ function BA(e) {
|
|
|
20289
20306
|
});
|
|
20290
20307
|
},
|
|
20291
20308
|
children: (e) => (() => {
|
|
20292
|
-
var t =
|
|
20293
|
-
return t.addEventListener("error", (
|
|
20309
|
+
var t = uA();
|
|
20310
|
+
return t.addEventListener("error", (e) => {
|
|
20311
|
+
let t = e.currentTarget.getAttribute("src");
|
|
20312
|
+
t && i((e) => new Set(e).add(t));
|
|
20313
|
+
}), B(() => W(t, "src", e())), t;
|
|
20294
20314
|
})()
|
|
20295
20315
|
})), B(() => R(e, D(nt, "text-muted-foreground pointer-events-none relative flex size-8 shrink-0 items-center justify-center overflow-hidden rounded-md"))), e;
|
|
20296
20316
|
}
|
|
@@ -20344,8 +20364,8 @@ function BA(e) {
|
|
|
20344
20364
|
}
|
|
20345
20365
|
}), null), B(() => R(e, D("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;
|
|
20346
20366
|
})(), z(ug, { get children() {
|
|
20347
|
-
var n =
|
|
20348
|
-
return V(n, z(
|
|
20367
|
+
var n = lA();
|
|
20368
|
+
return V(n, z(RA, {
|
|
20349
20369
|
get id() {
|
|
20350
20370
|
return `${e.id}.${u}`;
|
|
20351
20371
|
},
|
|
@@ -20374,7 +20394,7 @@ function BA(e) {
|
|
|
20374
20394
|
return c().length < l();
|
|
20375
20395
|
},
|
|
20376
20396
|
get children() {
|
|
20377
|
-
var e =
|
|
20397
|
+
var e = aA(), t = e.firstChild.nextSibling, n = t.nextSibling.nextSibling;
|
|
20378
20398
|
return n.nextSibling, V(e, l, t), V(e, () => l() === 1 ? "item" : "items", n), e;
|
|
20379
20399
|
}
|
|
20380
20400
|
}), null), V(r, z(_p, {
|
|
@@ -20394,7 +20414,7 @@ function BA(e) {
|
|
|
20394
20414
|
}), H(() => e.prop.addLabel ?? "Add item")];
|
|
20395
20415
|
}
|
|
20396
20416
|
}), null), B((t) => {
|
|
20397
|
-
var n = e.labelledBy, i = D("flex w-full min-w-0 flex-col",
|
|
20417
|
+
var n = e.labelledBy, i = D("flex w-full min-w-0 flex-col", BA.class);
|
|
20398
20418
|
return n !== t.e && W(r, "aria-labelledby", t.e = n), i !== t.t && R(r, t.t = i), t;
|
|
20399
20419
|
}, {
|
|
20400
20420
|
e: void 0,
|
|
@@ -20402,20 +20422,20 @@ function BA(e) {
|
|
|
20402
20422
|
}), r;
|
|
20403
20423
|
})();
|
|
20404
20424
|
}
|
|
20405
|
-
function
|
|
20406
|
-
let t = () =>
|
|
20425
|
+
function HA(e) {
|
|
20426
|
+
let t = () => jA(e.prop), n = () => e.prop.discriminator ?? "", r = () => t().map((e) => MA(e, n())), i = () => DA(e.value ?? e.prop.default), o = M(() => {
|
|
20407
20427
|
let e = i()[n()];
|
|
20408
20428
|
return typeof e == "string" && r().includes(e) ? e : r()[0] ?? "";
|
|
20409
|
-
}), s = M(() => t().find((e) =>
|
|
20429
|
+
}), s = M(() => t().find((e) => MA(e, n()) === o())), c = (t) => e.prop.labels?.[t] ?? t, l = (r) => {
|
|
20410
20430
|
if (r === o()) return;
|
|
20411
|
-
let a = t().find((e) =>
|
|
20412
|
-
a && e.onChange(
|
|
20431
|
+
let a = t().find((e) => MA(e, n()) === r);
|
|
20432
|
+
a && e.onChange(NA(a, n(), r, i()));
|
|
20413
20433
|
}, u = M(() => {
|
|
20414
20434
|
let e = s();
|
|
20415
|
-
return e ?
|
|
20435
|
+
return e ? SA(e).filter(([e]) => e !== n()) : [];
|
|
20416
20436
|
});
|
|
20417
20437
|
return (() => {
|
|
20418
|
-
var t =
|
|
20438
|
+
var t = dA();
|
|
20419
20439
|
return V(t, z(fx, {
|
|
20420
20440
|
get value() {
|
|
20421
20441
|
return o();
|
|
@@ -20451,12 +20471,12 @@ function VA(e) {
|
|
|
20451
20471
|
},
|
|
20452
20472
|
keyed: !0,
|
|
20453
20473
|
children: (t) => (() => {
|
|
20454
|
-
var t =
|
|
20474
|
+
var t = fA();
|
|
20455
20475
|
return V(t, z(_t, {
|
|
20456
20476
|
get each() {
|
|
20457
20477
|
return u();
|
|
20458
20478
|
},
|
|
20459
|
-
children: ([t, n]) => z(
|
|
20479
|
+
children: ([t, n]) => z(RA, {
|
|
20460
20480
|
get id() {
|
|
20461
20481
|
return `${e.id}.${t}`;
|
|
20462
20482
|
},
|
|
@@ -20478,9 +20498,9 @@ function VA(e) {
|
|
|
20478
20498
|
}), null), B(() => W(t, "aria-labelledby", e.labelledBy)), t;
|
|
20479
20499
|
})();
|
|
20480
20500
|
}
|
|
20481
|
-
function
|
|
20482
|
-
let t = () => e.value ?? e.prop.default, n = () => (
|
|
20483
|
-
return z(
|
|
20501
|
+
function UA(e) {
|
|
20502
|
+
let t = () => e.value ?? e.prop.default, n = () => (xA(e.prop).enum ?? []).map(String), r = (t) => e.prop.labels?.[t] ?? t;
|
|
20503
|
+
return z($k, {
|
|
20484
20504
|
multiple: !0,
|
|
20485
20505
|
get "aria-labelledby"() {
|
|
20486
20506
|
return e.labelledBy;
|
|
@@ -20498,7 +20518,7 @@ function HA(e) {
|
|
|
20498
20518
|
get each() {
|
|
20499
20519
|
return n();
|
|
20500
20520
|
},
|
|
20501
|
-
children: (e) => z(
|
|
20521
|
+
children: (e) => z(eA, {
|
|
20502
20522
|
value: e,
|
|
20503
20523
|
get children() {
|
|
20504
20524
|
return r(e);
|
|
@@ -20508,26 +20528,26 @@ function HA(e) {
|
|
|
20508
20528
|
}
|
|
20509
20529
|
});
|
|
20510
20530
|
}
|
|
20511
|
-
function
|
|
20531
|
+
function WA(e) {
|
|
20512
20532
|
let [t, n] = N(""), r = (t) => {
|
|
20513
20533
|
let r = t.trim();
|
|
20514
20534
|
!r || e.value.includes(r) || (e.onChange([...e.value, r]), n(""));
|
|
20515
20535
|
};
|
|
20516
20536
|
return (() => {
|
|
20517
|
-
var i =
|
|
20537
|
+
var i = mA();
|
|
20518
20538
|
return V(i, z(O, {
|
|
20519
20539
|
get when() {
|
|
20520
20540
|
return e.value.length > 0;
|
|
20521
20541
|
},
|
|
20522
20542
|
get children() {
|
|
20523
|
-
var t =
|
|
20543
|
+
var t = pA();
|
|
20524
20544
|
return V(t, z(_t, {
|
|
20525
20545
|
get each() {
|
|
20526
20546
|
return e.value;
|
|
20527
20547
|
},
|
|
20528
20548
|
children: (t) => z(yf, { get children() {
|
|
20529
20549
|
return [t, (() => {
|
|
20530
|
-
var n =
|
|
20550
|
+
var n = hA();
|
|
20531
20551
|
return n.$$click = () => e.onChange(e.value.filter((e) => e !== t)), W(n, "aria-label", `Remove ${t}`), V(n, z($, {
|
|
20532
20552
|
icon: "lucide:x",
|
|
20533
20553
|
width: 12,
|
|
@@ -20554,8 +20574,8 @@ function UA(e) {
|
|
|
20554
20574
|
Ft(["pointerdown", "click"]);
|
|
20555
20575
|
//#endregion
|
|
20556
20576
|
//#region src/solid/scope-indicator.tsx
|
|
20557
|
-
var
|
|
20558
|
-
function
|
|
20577
|
+
var GA = /*#__PURE__*/ K("<span>(<!>)");
|
|
20578
|
+
function KA(e) {
|
|
20559
20579
|
return z(yf, {
|
|
20560
20580
|
tone: "var(--muted-foreground)",
|
|
20561
20581
|
class: "gap-1 font-mono font-normal",
|
|
@@ -20565,7 +20585,7 @@ function GA(e) {
|
|
|
20565
20585
|
H(() => e.scope),
|
|
20566
20586
|
" ",
|
|
20567
20587
|
(() => {
|
|
20568
|
-
var t =
|
|
20588
|
+
var t = GA(), n = t.firstChild.nextSibling;
|
|
20569
20589
|
return n.nextSibling, V(t, () => e.type === "personal" ? "personal" : "org", n), t;
|
|
20570
20590
|
})()
|
|
20571
20591
|
];
|
|
@@ -20574,16 +20594,16 @@ function GA(e) {
|
|
|
20574
20594
|
}
|
|
20575
20595
|
//#endregion
|
|
20576
20596
|
//#region src/solid/scroll-area.tsx
|
|
20577
|
-
var
|
|
20597
|
+
var qA = /*#__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\">"), JA = (e) => {
|
|
20578
20598
|
let [t, n] = I(e, ["class", "children"]);
|
|
20579
20599
|
return (() => {
|
|
20580
|
-
var e =
|
|
20600
|
+
var e = qA(), r = e.firstChild;
|
|
20581
20601
|
return G(e, U({ get class() {
|
|
20582
20602
|
return D("gh-scroll relative overflow-auto", t.class);
|
|
20583
20603
|
} }, n), !1, !0), V(r, () => t.children), e;
|
|
20584
20604
|
})();
|
|
20585
|
-
},
|
|
20586
|
-
function
|
|
20605
|
+
}, YA = (e) => null, XA = /*#__PURE__*/ K("<p data-slot=section-empty class=\"text-muted-foreground py-4 text-center text-sm\">"), ZA = /*#__PURE__*/ K("<div data-slot=row-actions class=\"flex items-center gap-1\">"), QA = /*#__PURE__*/ K("<div data-slot=labeled-field role=group class=\"flex flex-col gap-1\"><label data-slot=labeled-field-label class=\"text-sm font-medium\">");
|
|
20606
|
+
function $A(e) {
|
|
20587
20607
|
return z(_p, {
|
|
20588
20608
|
variant: "outline",
|
|
20589
20609
|
size: "sm",
|
|
@@ -20599,22 +20619,26 @@ function QA(e) {
|
|
|
20599
20619
|
}
|
|
20600
20620
|
});
|
|
20601
20621
|
}
|
|
20602
|
-
function
|
|
20622
|
+
function ej(e) {
|
|
20603
20623
|
return (() => {
|
|
20604
|
-
var t =
|
|
20624
|
+
var t = XA();
|
|
20605
20625
|
return V(t, () => e.children), t;
|
|
20606
20626
|
})();
|
|
20607
20627
|
}
|
|
20608
|
-
function
|
|
20628
|
+
function tj(e) {
|
|
20629
|
+
let t = (t) => e.name ? `${t} ${e.name}` : t;
|
|
20609
20630
|
return (() => {
|
|
20610
|
-
var
|
|
20611
|
-
return V(
|
|
20631
|
+
var n = ZA();
|
|
20632
|
+
return V(n, z(_p, {
|
|
20612
20633
|
variant: "ghost",
|
|
20613
20634
|
size: "icon",
|
|
20614
20635
|
class: "size-8",
|
|
20615
20636
|
get onClick() {
|
|
20616
20637
|
return e.onEdit;
|
|
20617
20638
|
},
|
|
20639
|
+
get "aria-label"() {
|
|
20640
|
+
return t("Edit");
|
|
20641
|
+
},
|
|
20618
20642
|
get children() {
|
|
20619
20643
|
return z($, {
|
|
20620
20644
|
icon: "lucide:pencil",
|
|
@@ -20622,7 +20646,7 @@ function ej(e) {
|
|
|
20622
20646
|
height: 14
|
|
20623
20647
|
});
|
|
20624
20648
|
}
|
|
20625
|
-
}), null), V(
|
|
20649
|
+
}), null), V(n, z(O, {
|
|
20626
20650
|
get when() {
|
|
20627
20651
|
return e.showDelete ?? !0;
|
|
20628
20652
|
},
|
|
@@ -20640,6 +20664,9 @@ function ej(e) {
|
|
|
20640
20664
|
get title() {
|
|
20641
20665
|
return e.deleteTitle;
|
|
20642
20666
|
},
|
|
20667
|
+
get "aria-label"() {
|
|
20668
|
+
return t("Delete");
|
|
20669
|
+
},
|
|
20643
20670
|
get children() {
|
|
20644
20671
|
return z($, {
|
|
20645
20672
|
icon: "lucide:trash-2",
|
|
@@ -20649,17 +20676,18 @@ function ej(e) {
|
|
|
20649
20676
|
}
|
|
20650
20677
|
});
|
|
20651
20678
|
}
|
|
20652
|
-
}), null),
|
|
20679
|
+
}), null), n;
|
|
20653
20680
|
})();
|
|
20654
20681
|
}
|
|
20655
|
-
function
|
|
20682
|
+
function nj(e) {
|
|
20683
|
+
let t = P();
|
|
20656
20684
|
return (() => {
|
|
20657
|
-
var
|
|
20658
|
-
return
|
|
20685
|
+
var n = QA(), r = n.firstChild;
|
|
20686
|
+
return W(n, "aria-labelledby", t), W(r, "id", t), V(r, () => e.label), V(n, () => e.children, null), B(() => W(r, "for", e.for)), n;
|
|
20659
20687
|
})();
|
|
20660
20688
|
}
|
|
20661
|
-
function
|
|
20662
|
-
return z(
|
|
20689
|
+
function rj(e) {
|
|
20690
|
+
return z(nj, {
|
|
20663
20691
|
get label() {
|
|
20664
20692
|
return e.label;
|
|
20665
20693
|
},
|
|
@@ -20681,13 +20709,16 @@ function nj(e) {
|
|
|
20681
20709
|
}
|
|
20682
20710
|
});
|
|
20683
20711
|
}
|
|
20684
|
-
function
|
|
20685
|
-
|
|
20712
|
+
function ij(e) {
|
|
20713
|
+
let t = P();
|
|
20714
|
+
return z(nj, {
|
|
20686
20715
|
get label() {
|
|
20687
20716
|
return e.label;
|
|
20688
20717
|
},
|
|
20718
|
+
for: t,
|
|
20689
20719
|
get children() {
|
|
20690
20720
|
return z(Mb, {
|
|
20721
|
+
id: t,
|
|
20691
20722
|
get value() {
|
|
20692
20723
|
return e.value;
|
|
20693
20724
|
},
|
|
@@ -20699,7 +20730,7 @@ function rj(e) {
|
|
|
20699
20730
|
}
|
|
20700
20731
|
});
|
|
20701
20732
|
}
|
|
20702
|
-
function
|
|
20733
|
+
function aj(e) {
|
|
20703
20734
|
let t = P();
|
|
20704
20735
|
return z(yw, {
|
|
20705
20736
|
orientation: "horizontal",
|
|
@@ -20751,7 +20782,7 @@ function ij(e) {
|
|
|
20751
20782
|
})];
|
|
20752
20783
|
} })
|
|
20753
20784
|
}),
|
|
20754
|
-
z(
|
|
20785
|
+
z(zk, {
|
|
20755
20786
|
id: t,
|
|
20756
20787
|
get checked() {
|
|
20757
20788
|
return e.checked;
|
|
@@ -20772,19 +20803,19 @@ function ij(e) {
|
|
|
20772
20803
|
}
|
|
20773
20804
|
//#endregion
|
|
20774
20805
|
//#region src/solid/sheet.tsx
|
|
20775
|
-
var
|
|
20806
|
+
var oj = /*#__PURE__*/ K("<div data-slot=sheet-content-above class=\"flex w-full shrink-0 items-end justify-center\">"), sj = (e) => {
|
|
20776
20807
|
let t = us();
|
|
20777
20808
|
return z(os, U({ get modal() {
|
|
20778
20809
|
return !ps(t);
|
|
20779
20810
|
} }, e, { preventScroll: !1 }));
|
|
20780
|
-
},
|
|
20811
|
+
}, cj = (e) => z(os.Trigger, U({ "data-slot": "sheet-trigger" }, e)), lj = Vs("sheet-close"), uj = (e) => {
|
|
20781
20812
|
let [t, n] = I(e, [
|
|
20782
20813
|
"class",
|
|
20783
20814
|
"variant",
|
|
20784
20815
|
"size",
|
|
20785
20816
|
"children"
|
|
20786
20817
|
]);
|
|
20787
|
-
return z(
|
|
20818
|
+
return z(lj, U({ get class() {
|
|
20788
20819
|
return D(Ze({
|
|
20789
20820
|
variant: t.variant ?? "outline",
|
|
20790
20821
|
size: t.size
|
|
@@ -20792,7 +20823,7 @@ var aj = /*#__PURE__*/ K("<div data-slot=sheet-content-above class=\"flex w-full
|
|
|
20792
20823
|
} }, n, { get children() {
|
|
20793
20824
|
return t.children ?? "Close";
|
|
20794
20825
|
} }));
|
|
20795
|
-
},
|
|
20826
|
+
}, dj = (e) => {
|
|
20796
20827
|
let [t, n] = I(e, ["class"]);
|
|
20797
20828
|
return z(os.Overlay, U({
|
|
20798
20829
|
"data-slot": "sheet-overlay",
|
|
@@ -20800,23 +20831,23 @@ var aj = /*#__PURE__*/ K("<div data-slot=sheet-content-above class=\"flex w-full
|
|
|
20800
20831
|
return D(`${mt} pointer-events-auto fixed inset-0 select-none ${Xe.overlay} ${l}`, t.class);
|
|
20801
20832
|
}
|
|
20802
20833
|
}, n));
|
|
20803
|
-
},
|
|
20834
|
+
}, fj = `${ae} [--glass-sheen:600px_300px]`, pj = `fixed ${Xe.overlay} flex flex-col overflow-hidden rounded-lg ${fj} 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`, mj = {
|
|
20804
20835
|
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",
|
|
20805
20836
|
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",
|
|
20806
20837
|
top: `data-[closed]:slide-out-to-top data-[expanded]:slide-in-from-top inset-x-3 top-3 ${Es}`,
|
|
20807
20838
|
bottom: `data-[closed]:slide-out-to-bottom data-[expanded]:slide-in-from-bottom inset-x-3 bottom-3 ${Es}`
|
|
20808
|
-
},
|
|
20839
|
+
}, hj = (e) => {
|
|
20809
20840
|
let t = k(() => e.above);
|
|
20810
20841
|
return z(O, {
|
|
20811
20842
|
get when() {
|
|
20812
20843
|
return t();
|
|
20813
20844
|
},
|
|
20814
20845
|
get children() {
|
|
20815
|
-
var e =
|
|
20846
|
+
var e = oj();
|
|
20816
20847
|
return V(e, t), e;
|
|
20817
20848
|
}
|
|
20818
20849
|
});
|
|
20819
|
-
},
|
|
20850
|
+
}, gj = (e) => {
|
|
20820
20851
|
let [t, n] = I(e, [
|
|
20821
20852
|
"class",
|
|
20822
20853
|
"children",
|
|
@@ -20841,7 +20872,7 @@ var aj = /*#__PURE__*/ K("<div data-slot=sheet-content-above class=\"flex w-full
|
|
|
20841
20872
|
get children() {
|
|
20842
20873
|
return [
|
|
20843
20874
|
z(Hs, {}),
|
|
20844
|
-
z(
|
|
20875
|
+
z(dj, {}),
|
|
20845
20876
|
z(os.Content, U({
|
|
20846
20877
|
ref: (e) => {
|
|
20847
20878
|
a(e), typeof t.ref == "function" && t.ref(e);
|
|
@@ -20858,18 +20889,18 @@ var aj = /*#__PURE__*/ K("<div data-slot=sheet-content-above class=\"flex w-full
|
|
|
20858
20889
|
return H(() => !!r.titleId())() ? void 0 : t.ariaLabel;
|
|
20859
20890
|
},
|
|
20860
20891
|
get class() {
|
|
20861
|
-
return D(
|
|
20892
|
+
return D(pj, mj[t.side ?? "right"], t.class);
|
|
20862
20893
|
},
|
|
20863
20894
|
onOpenAutoFocus: (e) => e.preventDefault()
|
|
20864
20895
|
}, n, { get children() {
|
|
20865
|
-
return [z(
|
|
20896
|
+
return [z(hj, { get above() {
|
|
20866
20897
|
return t.above;
|
|
20867
20898
|
} }), H(() => t.children)];
|
|
20868
20899
|
} }))
|
|
20869
20900
|
];
|
|
20870
20901
|
}
|
|
20871
20902
|
});
|
|
20872
|
-
}, { Header:
|
|
20903
|
+
}, { Header: _j, Body: vj, Footer: yj } = zs("sheet"), bj = (e) => {
|
|
20873
20904
|
let [t, n] = I(e, ["class"]);
|
|
20874
20905
|
return z(os.Title, U({
|
|
20875
20906
|
"data-slot": "sheet-title",
|
|
@@ -20877,7 +20908,7 @@ var aj = /*#__PURE__*/ K("<div data-slot=sheet-content-above class=\"flex w-full
|
|
|
20877
20908
|
return D(Ls, t.class);
|
|
20878
20909
|
}
|
|
20879
20910
|
}, n));
|
|
20880
|
-
},
|
|
20911
|
+
}, xj = (e) => {
|
|
20881
20912
|
let [t, n] = I(e, ["class"]);
|
|
20882
20913
|
return z(os.Description, U({
|
|
20883
20914
|
"data-slot": "sheet-description",
|
|
@@ -20885,7 +20916,7 @@ var aj = /*#__PURE__*/ K("<div data-slot=sheet-content-above class=\"flex w-full
|
|
|
20885
20916
|
return D(Rs, t.class);
|
|
20886
20917
|
}
|
|
20887
20918
|
}, n));
|
|
20888
|
-
},
|
|
20919
|
+
}, Sj = /*#__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)\">"), Cj = (e) => {
|
|
20889
20920
|
let [t] = I(e, [
|
|
20890
20921
|
"value",
|
|
20891
20922
|
"defaultValue",
|
|
@@ -20967,7 +20998,7 @@ var aj = /*#__PURE__*/ K("<div data-slot=sheet-content-above class=\"flex w-full
|
|
|
20967
20998
|
return t.markers ?? [];
|
|
20968
20999
|
},
|
|
20969
21000
|
children: (e) => (() => {
|
|
20970
|
-
var t =
|
|
21001
|
+
var t = Sj();
|
|
20971
21002
|
return B((r) => Rt(t, "left", `${n(e())}%`)), t;
|
|
20972
21003
|
})()
|
|
20973
21004
|
}),
|
|
@@ -20999,18 +21030,18 @@ var aj = /*#__PURE__*/ K("<div data-slot=sheet-content-above class=\"flex w-full
|
|
|
20999
21030
|
});
|
|
21000
21031
|
}
|
|
21001
21032
|
});
|
|
21002
|
-
},
|
|
21003
|
-
function
|
|
21033
|
+
}, wj = /*#__PURE__*/ K("<div>"), Tj = /*#__PURE__*/ K("<div data-sliding-indicator aria-hidden=true>");
|
|
21034
|
+
function Ej(e, t) {
|
|
21004
21035
|
return e.offset === t.offset && e.size === t.size && e.cross === t.cross && e.crossOffset === t.crossOffset;
|
|
21005
21036
|
}
|
|
21006
|
-
function
|
|
21037
|
+
function Dj(e) {
|
|
21007
21038
|
let t = getComputedStyle(e).translate;
|
|
21008
21039
|
if (!t || t === "none") return [0, 0];
|
|
21009
21040
|
let [n = "0", r = "0"] = t.split(" ");
|
|
21010
21041
|
return [Number.parseFloat(n) || 0, Number.parseFloat(r) || 0];
|
|
21011
21042
|
}
|
|
21012
|
-
var
|
|
21013
|
-
function
|
|
21043
|
+
var Oj = 220, kj = 6, Aj = 6, jj = .14;
|
|
21044
|
+
function Mj(e) {
|
|
21014
21045
|
let [t, n] = I(e, [
|
|
21015
21046
|
"active",
|
|
21016
21047
|
"activeSelector",
|
|
@@ -21027,20 +21058,20 @@ function jj(e) {
|
|
|
21027
21058
|
let n = t.ref;
|
|
21028
21059
|
typeof n == "function" && n(e);
|
|
21029
21060
|
}, [o, s] = N(null), c, l = (e) => {
|
|
21030
|
-
let t = 1 + Math.min(
|
|
21061
|
+
let t = 1 + Math.min(jj, kj / (e.size || 1)), n = 1 - Math.min(jj, Aj / (e.cross || 1)), i = r() ? `${t} ${n}` : `${n} ${t}`;
|
|
21031
21062
|
c?.animate([
|
|
21032
21063
|
{ scale: "1 1" },
|
|
21033
21064
|
{ scale: i },
|
|
21034
21065
|
{ scale: "1 1" }
|
|
21035
21066
|
], {
|
|
21036
|
-
duration:
|
|
21067
|
+
duration: Oj,
|
|
21037
21068
|
easing: "ease-in-out"
|
|
21038
21069
|
});
|
|
21039
21070
|
}, u, [d, f] = N(!1), p, m = (e, t) => {
|
|
21040
21071
|
let n = o();
|
|
21041
|
-
if (n !== null && u === e &&
|
|
21072
|
+
if (n !== null && u === e && Ej(n, t)) return;
|
|
21042
21073
|
let r = u !== void 0 && u !== e && n !== null;
|
|
21043
|
-
u = e, r && (clearTimeout(p), f(!0), p = setTimeout(() => f(!1),
|
|
21074
|
+
u = e, r && (clearTimeout(p), f(!0), p = setTimeout(() => f(!1), Oj)), s(t), r && Math.abs(t.offset - n.offset) >= 1 && l(t);
|
|
21044
21075
|
}, h = 0, g, _ = () => {
|
|
21045
21076
|
x || g !== void 0 || h >= 90 || (h += 1, g = requestAnimationFrame(() => {
|
|
21046
21077
|
g = void 0, x || v();
|
|
@@ -21064,7 +21095,7 @@ function jj(e) {
|
|
|
21064
21095
|
return;
|
|
21065
21096
|
}
|
|
21066
21097
|
h = 0;
|
|
21067
|
-
let o = i.offsetWidth > 0 ? a.width / i.offsetWidth : 1, c = i.offsetHeight > 0 ? a.height / i.offsetHeight : 1, [l, d] =
|
|
21098
|
+
let o = i.offsetWidth > 0 ? a.width / i.offsetWidth : 1, c = i.offsetHeight > 0 ? a.height / i.offsetHeight : 1, [l, d] = Dj(e);
|
|
21068
21099
|
m(e, r() ? {
|
|
21069
21100
|
offset: (n.left - a.left) / o - l - i.clientLeft + i.scrollLeft,
|
|
21070
21101
|
size: n.width / o,
|
|
@@ -21112,7 +21143,7 @@ function jj(e) {
|
|
|
21112
21143
|
x = !0, g !== void 0 && cancelAnimationFrame(g), clearTimeout(p), y?.disconnect(), e.disconnect(), i?.removeEventListener("focusin", n), i?.removeEventListener("animationend", v);
|
|
21113
21144
|
});
|
|
21114
21145
|
}), (() => {
|
|
21115
|
-
var e =
|
|
21146
|
+
var e = wj();
|
|
21116
21147
|
return Bt(a, e), G(e, U({ get class() {
|
|
21117
21148
|
return D("relative isolate", t.class);
|
|
21118
21149
|
} }, n), !1, !0), V(e, z(O, {
|
|
@@ -21120,10 +21151,10 @@ function jj(e) {
|
|
|
21120
21151
|
return o();
|
|
21121
21152
|
},
|
|
21122
21153
|
children: (e) => (() => {
|
|
21123
|
-
var n =
|
|
21154
|
+
var n = Tj(), i = c;
|
|
21124
21155
|
return typeof i == "function" ? Bt(i, n) : c = n, B((i) => {
|
|
21125
21156
|
var a = D("pointer-events-none absolute -z-10", t.wrapped ? "top-0 left-0" : r() ? "inset-y-0 left-0" : "inset-x-0 top-0", "glass glass-tint", t.indicatorClass ?? "rounded-lg"), o = {
|
|
21126
|
-
transition: d() ? `transform ${
|
|
21157
|
+
transition: d() ? `transform ${Oj}ms ease-in-out, width ${Oj}ms ease-in-out, height ${Oj}ms ease-in-out` : "none",
|
|
21127
21158
|
"--glass-tone": t.indicatorTone ?? "var(--material-accent)",
|
|
21128
21159
|
...t.wrapped && r() ? {
|
|
21129
21160
|
transform: `translate(${e().offset}px, ${e().crossOffset}px)`,
|
|
@@ -21148,7 +21179,7 @@ function jj(e) {
|
|
|
21148
21179
|
}
|
|
21149
21180
|
//#endregion
|
|
21150
21181
|
//#region src/lib/spotlight-geometry.ts
|
|
21151
|
-
function
|
|
21182
|
+
function Nj(e, t, n, r) {
|
|
21152
21183
|
let i = t ? {
|
|
21153
21184
|
x: t.x - n,
|
|
21154
21185
|
y: t.y - n,
|
|
@@ -21162,8 +21193,8 @@ function Mj(e, t, n, r) {
|
|
|
21162
21193
|
}, 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;
|
|
21163
21194
|
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`;
|
|
21164
21195
|
}
|
|
21165
|
-
var
|
|
21166
|
-
function
|
|
21196
|
+
var Pj = (e, t, n) => Math.min(Math.max(e, t), n), Fj = 28.4;
|
|
21197
|
+
function Ij(e, t, n, r, i) {
|
|
21167
21198
|
if (!t) return {
|
|
21168
21199
|
x: (e.width - n.width) / 2,
|
|
21169
21200
|
y: (e.height - n.height) / 2,
|
|
@@ -21172,33 +21203,33 @@ function Fj(e, t, n, r, i) {
|
|
|
21172
21203
|
};
|
|
21173
21204
|
let a = t.x + t.width / 2 - n.width / 2;
|
|
21174
21205
|
if (t.height > e.height / 2) return {
|
|
21175
|
-
x:
|
|
21176
|
-
y:
|
|
21206
|
+
x: Pj(a, i, e.width - n.width - i),
|
|
21207
|
+
y: Pj(t.y + r, i, e.height - n.height - i),
|
|
21177
21208
|
side: "inside",
|
|
21178
21209
|
tail: null
|
|
21179
21210
|
};
|
|
21180
|
-
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 =
|
|
21211
|
+
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 = Pj(a, i, e.width - n.width - i), l = t.x + t.width / 2;
|
|
21181
21212
|
return {
|
|
21182
21213
|
x: c,
|
|
21183
|
-
y:
|
|
21214
|
+
y: Pj(s, i, e.height - n.height - i),
|
|
21184
21215
|
side: o,
|
|
21185
|
-
tail: { x:
|
|
21216
|
+
tail: { x: Pj(l - c, Fj, n.width - Fj) }
|
|
21186
21217
|
};
|
|
21187
21218
|
}
|
|
21188
21219
|
//#endregion
|
|
21189
21220
|
//#region src/solid/spotlight.tsx
|
|
21190
|
-
var
|
|
21191
|
-
function
|
|
21221
|
+
var Lj = /*#__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>"), zj = /*#__PURE__*/ K("<div data-slot=spotlight-tail aria-hidden=true style=width:20px;height:20px>"), Bj = 8, Vj = 12, Hj = 12, Uj = 12, Wj = 20, Gj = 384, Kj = Hj + Wj * Math.SQRT2 / 2;
|
|
21222
|
+
function qj(e, t) {
|
|
21192
21223
|
return e === t ? !0 : !e || !t ? !1 : Object.keys(e).every((n) => e[n] === t[n]);
|
|
21193
21224
|
}
|
|
21194
|
-
var
|
|
21195
|
-
let [t, n] = N(null, { equals:
|
|
21225
|
+
var Jj = (e) => {
|
|
21226
|
+
let [t, n] = N(null, { equals: qj }), [r, i] = N(null, { equals: qj }), [a, o] = N({
|
|
21196
21227
|
width: window.innerWidth,
|
|
21197
21228
|
height: window.innerHeight
|
|
21198
|
-
}, { equals:
|
|
21199
|
-
width:
|
|
21229
|
+
}, { equals: qj }), [s, c] = N({
|
|
21230
|
+
width: Gj,
|
|
21200
21231
|
height: 96
|
|
21201
|
-
}, { equals:
|
|
21232
|
+
}, { equals: qj }), u, d = () => e.anchor ?? e.target, f = (e) => {
|
|
21202
21233
|
let t = e?.getBoundingClientRect();
|
|
21203
21234
|
return t ? {
|
|
21204
21235
|
x: t.left,
|
|
@@ -21215,7 +21246,7 @@ var qj = (e) => {
|
|
|
21215
21246
|
n(t);
|
|
21216
21247
|
let r = d();
|
|
21217
21248
|
i(r === e.target ? t : f(r)), u && c({
|
|
21218
|
-
width: u.offsetWidth ||
|
|
21249
|
+
width: u.offsetWidth || Gj,
|
|
21219
21250
|
height: u.offsetHeight || 96
|
|
21220
21251
|
});
|
|
21221
21252
|
};
|
|
@@ -21239,7 +21270,7 @@ var qj = (e) => {
|
|
|
21239
21270
|
window.removeEventListener("resize", p), window.removeEventListener("scroll", p, { capture: !0 }), document.removeEventListener("keydown", t);
|
|
21240
21271
|
});
|
|
21241
21272
|
});
|
|
21242
|
-
let m = () =>
|
|
21273
|
+
let m = () => Ij(a(), r(), s(), Kj, Uj);
|
|
21243
21274
|
return z(Nt, {
|
|
21244
21275
|
get mount() {
|
|
21245
21276
|
return us();
|
|
@@ -21250,9 +21281,9 @@ var qj = (e) => {
|
|
|
21250
21281
|
return e.scrim;
|
|
21251
21282
|
},
|
|
21252
21283
|
get children() {
|
|
21253
|
-
var n =
|
|
21284
|
+
var n = Lj();
|
|
21254
21285
|
return B((r) => {
|
|
21255
|
-
var i = D("fixed inset-0", l, Xe.overlay, mt, h, !t() && !e.blocking && "pointer-events-none"), o = `path(evenodd, "${
|
|
21286
|
+
var i = D("fixed inset-0", l, Xe.overlay, mt, h, !t() && !e.blocking && "pointer-events-none"), o = `path(evenodd, "${Nj(a(), t(), e.pad ?? Bj, Vj)}")`;
|
|
21256
21287
|
return i !== r.e && R(n, r.e = i), o !== r.t && Rt(n, "clip-path", r.t = o), r;
|
|
21257
21288
|
}, {
|
|
21258
21289
|
e: void 0,
|
|
@@ -21260,16 +21291,16 @@ var qj = (e) => {
|
|
|
21260
21291
|
}), n;
|
|
21261
21292
|
}
|
|
21262
21293
|
}), (() => {
|
|
21263
|
-
var t =
|
|
21294
|
+
var t = Rj(), n = t.firstChild, r = u;
|
|
21264
21295
|
return typeof r == "function" ? Bt(r, t) : u = t, V(t, z(O, {
|
|
21265
21296
|
get when() {
|
|
21266
21297
|
return m().tail;
|
|
21267
21298
|
},
|
|
21268
21299
|
children: (e) => (() => {
|
|
21269
|
-
var t =
|
|
21300
|
+
var t = zj();
|
|
21270
21301
|
return B((n) => {
|
|
21271
21302
|
var r = m().side, i = D(ct, "absolute rotate-45 rounded-[2px]"), a = {
|
|
21272
|
-
left: `${e().x -
|
|
21303
|
+
left: `${e().x - Wj / 2}px`,
|
|
21273
21304
|
...m().side === "above" ? { bottom: `${-20 / 2}px` } : { top: `${-20 / 2}px` }
|
|
21274
21305
|
};
|
|
21275
21306
|
return r !== n.e && W(t, "data-side", n.e = r), i !== n.t && R(t, n.t = i), n.a = zt(t, a, n.a), n;
|
|
@@ -21291,17 +21322,17 @@ var qj = (e) => {
|
|
|
21291
21322
|
})()];
|
|
21292
21323
|
}
|
|
21293
21324
|
});
|
|
21294
|
-
},
|
|
21295
|
-
function
|
|
21325
|
+
}, Yj = /*#__PURE__*/ K("<div data-slot=step-indicator><span class=sr-only>"), Xj = /*#__PURE__*/ K("<span data-slot=step-indicator-segment>");
|
|
21326
|
+
function Zj(e) {
|
|
21296
21327
|
let t = () => Array.from({ length: Math.max(e.count, 0) }, (e, t) => t);
|
|
21297
21328
|
return (() => {
|
|
21298
|
-
var n =
|
|
21329
|
+
var n = Yj(), r = n.firstChild;
|
|
21299
21330
|
return V(r, () => `Step ${e.index + 1} of ${e.count}`), V(n, z(_t, {
|
|
21300
21331
|
get each() {
|
|
21301
21332
|
return t();
|
|
21302
21333
|
},
|
|
21303
21334
|
children: (t) => (() => {
|
|
21304
|
-
var n =
|
|
21335
|
+
var n = Xj();
|
|
21305
21336
|
return B((r) => {
|
|
21306
21337
|
var i = t === e.index ? "step" : void 0, a = D(et, "w-6", t <= e.index && "glass glass-tint [--glass-tone:var(--material-accent)] [--glass-wash:70%] [--glass-drop:0%]");
|
|
21307
21338
|
return i !== r.e && W(n, "aria-current", r.e = i), a !== r.t && R(n, r.t = a), r;
|
|
@@ -21315,8 +21346,8 @@ function Xj(e) {
|
|
|
21315
21346
|
}
|
|
21316
21347
|
//#endregion
|
|
21317
21348
|
//#region src/solid/swatch-picker.tsx
|
|
21318
|
-
var
|
|
21319
|
-
function
|
|
21349
|
+
var Qj = /*#__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\">"), $j = /*#__PURE__*/ K("<span class=sr-only>");
|
|
21350
|
+
function eM(e) {
|
|
21320
21351
|
return z(_O, {
|
|
21321
21352
|
"data-slot": "swatch-picker",
|
|
21322
21353
|
get class() {
|
|
@@ -21343,10 +21374,10 @@ function $j(e) {
|
|
|
21343
21374
|
class: "group/swatch",
|
|
21344
21375
|
get children() {
|
|
21345
21376
|
return [(() => {
|
|
21346
|
-
var e =
|
|
21377
|
+
var e = Qj();
|
|
21347
21378
|
return Rt(e, "background", t), e;
|
|
21348
21379
|
})(), (() => {
|
|
21349
|
-
var r =
|
|
21380
|
+
var r = $j();
|
|
21350
21381
|
return V(r, () => e.labelOf?.(t, n()) ?? `Colour ${n() + 1}`), r;
|
|
21351
21382
|
})()];
|
|
21352
21383
|
}
|
|
@@ -21357,45 +21388,45 @@ function $j(e) {
|
|
|
21357
21388
|
}
|
|
21358
21389
|
//#endregion
|
|
21359
21390
|
//#region src/solid/textarea.tsx
|
|
21360
|
-
var
|
|
21391
|
+
var tM = /*#__PURE__*/ K("<textarea data-slot=textarea>"), nM = (e) => {
|
|
21361
21392
|
let [t, n] = I(e, ["class"]);
|
|
21362
21393
|
return (() => {
|
|
21363
|
-
var e =
|
|
21394
|
+
var e = tM();
|
|
21364
21395
|
return G(e, U({ get class() {
|
|
21365
21396
|
return D(we, "field-sizing-content min-h-16 py-2", t.class);
|
|
21366
21397
|
} }, n), !1, !1), e;
|
|
21367
21398
|
})();
|
|
21368
|
-
},
|
|
21369
|
-
function
|
|
21399
|
+
}, rM = /*#__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"), iM = /*#__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");
|
|
21400
|
+
function aM(e) {
|
|
21370
21401
|
return z(O, {
|
|
21371
21402
|
get when() {
|
|
21372
21403
|
return e.isOfficial;
|
|
21373
21404
|
},
|
|
21374
21405
|
get fallback() {
|
|
21375
|
-
return
|
|
21406
|
+
return iM();
|
|
21376
21407
|
},
|
|
21377
21408
|
get children() {
|
|
21378
|
-
return
|
|
21409
|
+
return rM();
|
|
21379
21410
|
}
|
|
21380
21411
|
});
|
|
21381
21412
|
}
|
|
21382
21413
|
//#endregion
|
|
21383
21414
|
//#region src/solid/widget-identity.tsx
|
|
21384
|
-
var
|
|
21385
|
-
function
|
|
21415
|
+
var oM = /*#__PURE__*/ K("<span class=\"text-muted-foreground shrink-0 font-mono text-xs tabular-nums\">v"), sM = /*#__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\">@<!>/"), cM = /*#__PURE__*/ K("<span class=\"flex items-center gap-1 tabular-nums\">"), lM = /*#__PURE__*/ K("<span class=\"flex items-center gap-1 tabular-nums\"> versions"), uM = /*#__PURE__*/ K("<span class=tabular-nums>v"), dM = /*#__PURE__*/ K("<div data-slot=widget-meta>");
|
|
21416
|
+
function fM(e) {
|
|
21386
21417
|
return `/widgets/@${e.scope}/${e.name}`;
|
|
21387
21418
|
}
|
|
21388
|
-
function
|
|
21419
|
+
function pM(e) {
|
|
21389
21420
|
let t = e ?? 0;
|
|
21390
21421
|
return t >= 1e6 ? `${(t / 1e6).toFixed(1)}M` : t >= 1e3 ? `${(t / 1e3).toFixed(1)}k` : t.toString();
|
|
21391
21422
|
}
|
|
21392
|
-
function
|
|
21423
|
+
function mM(e) {
|
|
21393
21424
|
let t = Ot({
|
|
21394
21425
|
iconSize: "sm",
|
|
21395
21426
|
showVersionInline: !0
|
|
21396
21427
|
}, e);
|
|
21397
21428
|
return (() => {
|
|
21398
|
-
var e =
|
|
21429
|
+
var e = sM(), n = e.firstChild, r = n.firstChild, i = r.nextSibling, a = i.firstChild, o = a.firstChild.nextSibling;
|
|
21399
21430
|
return o.nextSibling, V(e, z(OE, {
|
|
21400
21431
|
get size() {
|
|
21401
21432
|
return t.iconSize;
|
|
@@ -21426,10 +21457,10 @@ function pM(e) {
|
|
|
21426
21457
|
return H(() => !!t.showVersionInline)() && t.widget.latestVersion;
|
|
21427
21458
|
},
|
|
21428
21459
|
get children() {
|
|
21429
|
-
var e =
|
|
21460
|
+
var e = oM();
|
|
21430
21461
|
return e.firstChild, V(e, () => t.widget.latestVersion, null), e;
|
|
21431
21462
|
}
|
|
21432
|
-
}), null), V(r, z(
|
|
21463
|
+
}), null), V(r, z(aM, { get isOfficial() {
|
|
21433
21464
|
return !!t.widget.isOfficial;
|
|
21434
21465
|
} }), null), V(r, z(O, {
|
|
21435
21466
|
get when() {
|
|
@@ -21456,7 +21487,7 @@ function pM(e) {
|
|
|
21456
21487
|
return t.showScopeIndicator;
|
|
21457
21488
|
},
|
|
21458
21489
|
get children() {
|
|
21459
|
-
return z(
|
|
21490
|
+
return z(KA, {
|
|
21460
21491
|
get scope() {
|
|
21461
21492
|
return t.widget.scope;
|
|
21462
21493
|
},
|
|
@@ -21468,28 +21499,28 @@ function pM(e) {
|
|
|
21468
21499
|
}), null), B(() => R(e, D("flex min-w-0 items-center gap-3", t.class))), e;
|
|
21469
21500
|
})();
|
|
21470
21501
|
}
|
|
21471
|
-
function
|
|
21502
|
+
function hM(e) {
|
|
21472
21503
|
return (() => {
|
|
21473
|
-
var t =
|
|
21504
|
+
var t = dM();
|
|
21474
21505
|
return V(t, z(O, {
|
|
21475
21506
|
get when() {
|
|
21476
21507
|
return e.widget.downloadCount != null;
|
|
21477
21508
|
},
|
|
21478
21509
|
get children() {
|
|
21479
|
-
var t =
|
|
21510
|
+
var t = cM();
|
|
21480
21511
|
return V(t, z($, {
|
|
21481
21512
|
icon: "lucide:arrow-down-to-line",
|
|
21482
21513
|
width: 12,
|
|
21483
21514
|
height: 12,
|
|
21484
21515
|
class: "size-3"
|
|
21485
|
-
}), null), V(t, () =>
|
|
21516
|
+
}), null), V(t, () => pM(e.widget.downloadCount), null), t;
|
|
21486
21517
|
}
|
|
21487
21518
|
}), null), V(t, z(O, {
|
|
21488
21519
|
get when() {
|
|
21489
21520
|
return H(() => !!e.showVersions)() && e.widget.versionCount != null;
|
|
21490
21521
|
},
|
|
21491
21522
|
get children() {
|
|
21492
|
-
var t =
|
|
21523
|
+
var t = lM(), n = t.firstChild;
|
|
21493
21524
|
return V(t, z($, {
|
|
21494
21525
|
icon: "lucide:layers",
|
|
21495
21526
|
width: 12,
|
|
@@ -21502,7 +21533,7 @@ function mM(e) {
|
|
|
21502
21533
|
return H(() => !!e.showLatestVersion)() && e.widget.latestVersion;
|
|
21503
21534
|
},
|
|
21504
21535
|
get children() {
|
|
21505
|
-
var t =
|
|
21536
|
+
var t = uM();
|
|
21506
21537
|
return t.firstChild, V(t, () => e.widget.latestVersion, null), t;
|
|
21507
21538
|
}
|
|
21508
21539
|
}), null), B(() => R(t, D("text-muted-foreground flex items-center gap-4 text-xs", e.class))), t;
|
|
@@ -21510,15 +21541,15 @@ function mM(e) {
|
|
|
21510
21541
|
}
|
|
21511
21542
|
//#endregion
|
|
21512
21543
|
//#region src/solid/widget-card.tsx
|
|
21513
|
-
var
|
|
21514
|
-
function
|
|
21515
|
-
let t = Ot({ layout: "row" }, e), n = () => t.href ?? (t.onClick ? void 0 :
|
|
21544
|
+
var gM = /*#__PURE__*/ K("<p class=\"text-muted-foreground line-clamp-2 text-xs leading-relaxed\">"), _M = /*#__PURE__*/ K("<div data-slot=widget-card-body class=\"flex flex-1 flex-col gap-3\">");
|
|
21545
|
+
function vM(e) {
|
|
21546
|
+
let t = Ot({ layout: "row" }, e), n = () => t.href ?? (t.onClick ? void 0 : fM(t.widget)), r = () => n() != null || t.onClick != null;
|
|
21516
21547
|
return z(O, {
|
|
21517
21548
|
get when() {
|
|
21518
21549
|
return t.layout === "tile";
|
|
21519
21550
|
},
|
|
21520
21551
|
get fallback() {
|
|
21521
|
-
return z(
|
|
21552
|
+
return z(yM, U(t, {
|
|
21522
21553
|
get href() {
|
|
21523
21554
|
return n();
|
|
21524
21555
|
},
|
|
@@ -21528,7 +21559,7 @@ function _M(e) {
|
|
|
21528
21559
|
}));
|
|
21529
21560
|
},
|
|
21530
21561
|
get children() {
|
|
21531
|
-
return z(
|
|
21562
|
+
return z(bM, U(t, {
|
|
21532
21563
|
get href() {
|
|
21533
21564
|
return n();
|
|
21534
21565
|
},
|
|
@@ -21539,7 +21570,7 @@ function _M(e) {
|
|
|
21539
21570
|
}
|
|
21540
21571
|
});
|
|
21541
21572
|
}
|
|
21542
|
-
function
|
|
21573
|
+
function yM(e) {
|
|
21543
21574
|
let t = () => e.widget.downloadCount != null || e.showVersions && e.widget.versionCount != null, n = k(() => e.trailing), r = () => n() !== void 0 || e.interactive;
|
|
21544
21575
|
return z(Fp, {
|
|
21545
21576
|
get as() {
|
|
@@ -21560,7 +21591,7 @@ function vM(e) {
|
|
|
21560
21591
|
},
|
|
21561
21592
|
get children() {
|
|
21562
21593
|
return [
|
|
21563
|
-
z(
|
|
21594
|
+
z(mM, {
|
|
21564
21595
|
get widget() {
|
|
21565
21596
|
return e.widget;
|
|
21566
21597
|
},
|
|
@@ -21575,7 +21606,7 @@ function vM(e) {
|
|
|
21575
21606
|
return t();
|
|
21576
21607
|
},
|
|
21577
21608
|
get children() {
|
|
21578
|
-
return z(
|
|
21609
|
+
return z(hM, {
|
|
21579
21610
|
get widget() {
|
|
21580
21611
|
return e.widget;
|
|
21581
21612
|
},
|
|
@@ -21614,7 +21645,7 @@ function vM(e) {
|
|
|
21614
21645
|
}
|
|
21615
21646
|
});
|
|
21616
21647
|
}
|
|
21617
|
-
function
|
|
21648
|
+
function bM(e) {
|
|
21618
21649
|
let t = () => e.showDescription !== !1;
|
|
21619
21650
|
return z(Fp, {
|
|
21620
21651
|
get as() {
|
|
@@ -21635,8 +21666,8 @@ function yM(e) {
|
|
|
21635
21666
|
},
|
|
21636
21667
|
get children() {
|
|
21637
21668
|
return [(() => {
|
|
21638
|
-
var n =
|
|
21639
|
-
return V(n, z(
|
|
21669
|
+
var n = _M();
|
|
21670
|
+
return V(n, z(mM, {
|
|
21640
21671
|
get widget() {
|
|
21641
21672
|
return e.widget;
|
|
21642
21673
|
},
|
|
@@ -21647,11 +21678,11 @@ function yM(e) {
|
|
|
21647
21678
|
return H(() => !!t())() && e.widget.description;
|
|
21648
21679
|
},
|
|
21649
21680
|
get children() {
|
|
21650
|
-
var t =
|
|
21681
|
+
var t = gM();
|
|
21651
21682
|
return V(t, () => e.widget.description), t;
|
|
21652
21683
|
}
|
|
21653
21684
|
}), null), n;
|
|
21654
|
-
})(), z(
|
|
21685
|
+
})(), z(hM, {
|
|
21655
21686
|
get widget() {
|
|
21656
21687
|
return e.widget;
|
|
21657
21688
|
},
|
|
@@ -21662,11 +21693,11 @@ function yM(e) {
|
|
|
21662
21693
|
}
|
|
21663
21694
|
//#endregion
|
|
21664
21695
|
//#region src/solid/source-marks.tsx
|
|
21665
|
-
var
|
|
21666
|
-
function
|
|
21696
|
+
var xM = /*#__PURE__*/ K("<span data-slot=source-marks>");
|
|
21697
|
+
function SM(e) {
|
|
21667
21698
|
return (() => {
|
|
21668
|
-
var t =
|
|
21669
|
-
return V(t, z(
|
|
21699
|
+
var t = xM();
|
|
21700
|
+
return V(t, z(aM, { get isOfficial() {
|
|
21670
21701
|
return e.official;
|
|
21671
21702
|
} }), null), V(t, z(O, {
|
|
21672
21703
|
get when() {
|
|
@@ -21683,4 +21714,4 @@ function xM(e) {
|
|
|
21683
21714
|
})();
|
|
21684
21715
|
}
|
|
21685
21716
|
//#endregion
|
|
21686
|
-
export { za as Accordion, Ha as AccordionContent, Ba as AccordionItem, Va as AccordionTrigger, Za as Alert, $a as AlertDescription, qs as AlertDialog, ic as AlertDialogAction, Qs as AlertDialogBody, ac as AlertDialogCancel, Xs as AlertDialogContent, tc as AlertDialogDescription, $s as AlertDialogFooter, Zs as AlertDialogHeader, ec as AlertDialogTitle, Js as AlertDialogTrigger, Qa as AlertTitle, tg as AreaChart, nf as AreaPicker, af as AspectRatio, ff as Avatar, mf as AvatarFallback, pf as AvatarImage, yf as Badge, ng as BarList, Gf as BottomSheet, Qf as BottomSheetBody, np as BottomSheetClose, Yf as BottomSheetContent, tp as BottomSheetDescription, $f as BottomSheetFooter, Xf as BottomSheetHandle, Zf as BottomSheetHeader, Jf as BottomSheetOverlay, qf as BottomSheetPortal, ep as BottomSheetTitle, Kf as BottomSheetTrigger, lp as Breadcrumb, hp as BreadcrumbEllipsis, dp as BreadcrumbItem, fp as BreadcrumbLink, up as BreadcrumbList, pp as BreadcrumbPage, mp as BreadcrumbSeparator, _p as Button, Cp as ButtonGroup, Tp as ButtonGroupSeparator, wp as ButtonGroupText, vp as ButtonWell, Fp as Card, zp as CardAction, Bp as CardContent, Rp as CardDescription, Vp as CardFooter, Ip as CardHeader, Lp as CardTitle, nh as Carousel, rh as CarouselContent, ah as CarouselDots, ih as CarouselItem, sh as CarouselNext, oh as CarouselPrevious, Rc as Checkbox, cg as Collapsible, ug as CollapsibleContent, lg as CollapsibleTrigger, _g as ColorDisc, Kg as ColorSlider, d_ as ColorWheel, Dv as ContextMenu, Iv as ContextMenuCheckboxItem, Pv as ContextMenuContent, Ov as ContextMenuGroup, Fv as ContextMenuItem, Rv as ContextMenuLabel, Av as ContextMenuRadioGroup, Lv as ContextMenuRadioItem, zv as ContextMenuSeparator, Bv as ContextMenuShortcut, kv as ContextMenuSub, Nv as ContextMenuSubContent, Mv as ContextMenuSubTrigger, jv as ContextMenuTrigger, ab as CopyButton, ob as CountPill, hb as DashboardPreview, sS as DataTableHead, oS as DataTableRow, bS as Dialog, DS as DialogBody, CS as DialogClose, TS as DialogContent, AS as DialogDescription, OS as DialogFooter, ES as DialogHeader, kS as DialogTitle, xS as DialogTrigger, aC as Dock, lC as DockedPanel, dC as DockedPanelBody, fC as DockedPanelFooter, uC as DockedPanelHeader, mC as DropdownMenu, CC as DropdownMenuCheckboxItem, yC as DropdownMenuContent, hC as DropdownMenuGroup, bC as DropdownMenuItem, EC as DropdownMenuLabel, _C as DropdownMenuRadioGroup, wC as DropdownMenuRadioItem, TC as DropdownMenuSeparator, DC as DropdownMenuShortcut, gC as DropdownMenuSub, SC as DropdownMenuSubContent, xC as DropdownMenuSubTrigger, vC as DropdownMenuTrigger, wb as Empty, Ab as EmptyContent, kb as EmptyDescription, Tb as EmptyHeader, Db as EmptyMedia, Ob as EmptyTitle, oc as EntityDataContext, $C as EntitySelector, wE as FactRow, yw as Field, bw as FieldContent, Cw as FieldDescription, Ew as FieldError, _w as FieldGroup, xw as FieldLabel, gw as FieldLegend, Tw as FieldSeparator, hw as FieldSet, ww as FieldSubGroup, Sw as FieldTitle, Mw as Form, zw as FormControl, Bw as FormDescription, Pw as FormField, Fw as FormItem, Iw as FormLabel, Vw as FormMessage, Zy as GlassToast, T as HOLD_GRACE_MS, Re as HOLD_MS, Jw as HeroAction,
|
|
21717
|
+
export { za as Accordion, Ha as AccordionContent, Ba as AccordionItem, Va as AccordionTrigger, Za as Alert, $a as AlertDescription, qs as AlertDialog, ic as AlertDialogAction, Qs as AlertDialogBody, ac as AlertDialogCancel, Xs as AlertDialogContent, tc as AlertDialogDescription, $s as AlertDialogFooter, Zs as AlertDialogHeader, ec as AlertDialogTitle, Js as AlertDialogTrigger, Qa as AlertTitle, tg as AreaChart, nf as AreaPicker, af as AspectRatio, ff as Avatar, mf as AvatarFallback, pf as AvatarImage, yf as Badge, ng as BarList, Gf as BottomSheet, Qf as BottomSheetBody, np as BottomSheetClose, Yf as BottomSheetContent, tp as BottomSheetDescription, $f as BottomSheetFooter, Xf as BottomSheetHandle, Zf as BottomSheetHeader, Jf as BottomSheetOverlay, qf as BottomSheetPortal, ep as BottomSheetTitle, Kf as BottomSheetTrigger, lp as Breadcrumb, hp as BreadcrumbEllipsis, dp as BreadcrumbItem, fp as BreadcrumbLink, up as BreadcrumbList, pp as BreadcrumbPage, mp as BreadcrumbSeparator, _p as Button, Cp as ButtonGroup, Tp as ButtonGroupSeparator, wp as ButtonGroupText, vp as ButtonWell, Fp as Card, zp as CardAction, Bp as CardContent, Rp as CardDescription, Vp as CardFooter, Ip as CardHeader, Lp as CardTitle, nh as Carousel, rh as CarouselContent, ah as CarouselDots, ih as CarouselItem, sh as CarouselNext, oh as CarouselPrevious, Rc as Checkbox, cg as Collapsible, ug as CollapsibleContent, lg as CollapsibleTrigger, _g as ColorDisc, Kg as ColorSlider, d_ as ColorWheel, Dv as ContextMenu, Iv as ContextMenuCheckboxItem, Pv as ContextMenuContent, Ov as ContextMenuGroup, Fv as ContextMenuItem, Rv as ContextMenuLabel, Av as ContextMenuRadioGroup, Lv as ContextMenuRadioItem, zv as ContextMenuSeparator, Bv as ContextMenuShortcut, kv as ContextMenuSub, Nv as ContextMenuSubContent, Mv as ContextMenuSubTrigger, jv as ContextMenuTrigger, ab as CopyButton, ob as CountPill, hb as DashboardPreview, sS as DataTableHead, oS as DataTableRow, bS as Dialog, DS as DialogBody, CS as DialogClose, TS as DialogContent, AS as DialogDescription, OS as DialogFooter, ES as DialogHeader, kS as DialogTitle, xS as DialogTrigger, aC as Dock, lC as DockedPanel, dC as DockedPanelBody, fC as DockedPanelFooter, uC as DockedPanelHeader, mC as DropdownMenu, CC as DropdownMenuCheckboxItem, yC as DropdownMenuContent, hC as DropdownMenuGroup, bC as DropdownMenuItem, EC as DropdownMenuLabel, _C as DropdownMenuRadioGroup, wC as DropdownMenuRadioItem, TC as DropdownMenuSeparator, DC as DropdownMenuShortcut, gC as DropdownMenuSub, SC as DropdownMenuSubContent, xC as DropdownMenuSubTrigger, vC as DropdownMenuTrigger, wb as Empty, Ab as EmptyContent, kb as EmptyDescription, Tb as EmptyHeader, Db as EmptyMedia, Ob as EmptyTitle, oc as EntityDataContext, $C as EntitySelector, wE as FactRow, yw as Field, bw as FieldContent, Cw as FieldDescription, Ew as FieldError, _w as FieldGroup, xw as FieldLabel, gw as FieldLegend, Tw as FieldSeparator, hw as FieldSet, ww as FieldSubGroup, Sw as FieldTitle, Mw as Form, zw as FormControl, Bw as FormDescription, Pw as FormField, Fw as FormItem, Iw as FormLabel, Vw as FormMessage, Zy as GlassToast, T as HOLD_GRACE_MS, Re as HOLD_MS, Jw as HeroAction, PO as HeroOption, aT as HoverCard, sT as HoverCardContent, oT as HoverCardTrigger, $ as Icon, _T as IconPicker, KE as ImagePicker, Mb as Input, eD as InputGroup, nD as InputGroupAddon, oD as InputGroupButton, cD as InputGroupInput, sD as InputGroupText, lD as InputGroupTextarea, gD as InputOTP, _D as InputOTPGroup, yD as InputOTPSeparator, vD as InputOTPSlot, jD as Item, LD as ItemActions, PD as ItemContent, ID as ItemDescription, zD as ItemFooter, OD as ItemGroup, RD as ItemHeader, ND as ItemMedia, kD as ItemSeparator, FD as ItemTitle, HD as Kbd, UD as KbdGroup, tw as Label, nj as LabeledField, rj as LabeledIconPicker, ij as LabeledInput, TE as ListRow, ZD as Logo, CT as MEDIA_PAGE_SIZE, yT as MediaStoreContext, vT as MediaStoreError, zT as MediaTile, xE as NOOP_GLASS, tO as NumberField, ae as OVERLAY_SURFACE, MO as OptionCard, jO as OptionCardGroup, AO as OptionChoice, lh as Overlay, ll as PICKER_ROW_HEIGHT, zO as PageHeader, qT as Pagination, JT as PaginationContent, $T as PaginationEllipsis, YT as PaginationItem, XT as PaginationLink, QT as PaginationNext, ZT as PaginationPrevious, GO as PasswordInput, ul as PickerRow, ml as PickerSearch, vl as PickerTrigger, Gd as Popover, Jd as PopoverAnchor, qd as PopoverContent, Kd as PopoverTrigger, ls as PortalMountContext, ek as PreviewTile, $O as PreviewTileGroup, _k as Progress, ie as RISE_MOTION, _O as RadioGroup, yO as RadioGroupItem, ig as RangeToggle, Tk as ResizableHandle, wk as ResizablePanel, Ck as ResizablePanelGroup, Ok as ResponsiveDialog, Mk as ResponsiveDialogBody, Ik as ResponsiveDialogClose, Ak as ResponsiveDialogContent, Fk as ResponsiveDialogDescription, Nk as ResponsiveDialogFooter, jk as ResponsiveDialogHeader, Pk as ResponsiveDialogTitle, kk as ResponsiveDialogTrigger, tj as RowActions, gA as SCHEMA_FORM_FORM_TYPES, it as SECTION_INNER_RADIUS, Te as SECTION_OUTER_RADIUS, ke as SECTION_PADDING, Ye as SECTION_ROW_CLASS, ze as SECTION_ROW_SURFACE, a as SETTLE_MOTION, PA as SchemaForm, KA as ScopeIndicator, JA as ScrollArea, YA as ScrollBar, $A as SectionAddButton, SE as SectionCard, ej as SectionEmpty, ME as SectionGroup, OE as SectionIcon, NE as SectionLabel, PE as SectionMeta, CE as SectionRow, FE as SectionRowSkeleton, IE as SectionRowSkeletons, jE as SectionSubtitle, kE as SectionTitle, fx as Select, hx as SelectContent, vx as SelectGroup, _x as SelectItem, gx as SelectLabel, yx as SelectSeparator, mx as SelectTrigger, px as SelectValue, Hc as SelectionHighlight, nl as SelectionScope, bp as Separator, sj as Sheet, vj as SheetBody, uj as SheetClose, gj as SheetContent, xj as SheetDescription, yj as SheetFooter, _j as SheetHeader, bj as SheetTitle, cj as SheetTrigger, xx as Skeleton, Cj as Slider, Mj as SlidingIndicator, SM as SourceMarks, By as Spinner, Jj as Spotlight, sg as StackedBar, Zj as StepIndicator, eM as SwatchPicker, zk as Switch, aj as SwitchRow, Qx as TABLE_BLEED, Ax as TABLE_CELL_INSET, $x as TABLE_CELL_X, Mx as TABLE_HEAD_CELL_CLASS, tS as TABLE_HEAD_CLASS, jx as TABLE_HEAD_LABEL_CLASS, rS as TABLE_NUM_CELL_CLASS, eS as TABLE_ROW_CLASS, nS as TABLE_SCROLL_CLASS, h as TRAVEL_MOTION, Nx as Table, Fx as TableBody, gS as TableBulkBar, Bx as TableCaption, zx as TableCell, lS as TableEmpty, uS as TableError, iS as TableFilterSelect, Ix as TableFooter, Rx as TableHead, Px as TableHeader, dS as TableLoadMore, Lx as TableRow, aS as TableSearchInput, hS as TableSkeleton, cS as TableSortHeader, Eh as Tabs, kh as TabsContent, Dh as TabsList, Oh as TabsTrigger, yg as TemperatureBar, nM as Textarea, bf as TierBadge, nb as Toaster, Zk as Toggle, $k as ToggleGroup, eA as ToggleGroupItem, YS as Tooltip, ZS as TooltipContent, XS as TooltipTrigger, vM as WidgetCard, mM as WidgetIdentity, hM as WidgetMeta, aM as WidgetTrustBadge, Sp as buttonGroupVariants, Ze as buttonVariants, Ue as copyImage, Pe as copyText, ET as createBrokenMedia, qD as createListReorder, fS as createTableWindow, KD as dragTargetIndex, Zh as formatBytes, Yh as formatCompact, pM as formatWidgetCount, kT as imagePreset, jT as imageUrl, wT as isMediaImage, vg as kelvinToCss, FT as mediaIndexErrorCopy, PT as mediaStoreErrorCopy, AT as mediaUrl, Mr as parseColor, OT as presetValue, cc as provideEntityData, Aa as provideIcons, xT as provideMediaStore, TT as sortMediaForClearing, n as spendLongPress, NT as toMediaStoreError, tb as toast, Yk as toggleVariants, rb as useCopyText, lc as useEntityData, Nw as useFormField, ST as useMediaStore, us as usePortalMount, fM as widgetHref };
|