@nordmanai/nif 0.2.0 → 0.2.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.d.ts +1 -0
- package/dist/index.js +522 -502
- package/dist/styles.css +1 -1
- package/dist/ui/components/nm-button/nm-button.d.ts +4 -2
- package/dist/ui/components/nm-kbd/nm-kbd.d.ts +5 -0
- package/dist/ui/components/nm-toolbar/nm-toolbar.d.ts +6 -2
- package/dist/ui/config/nm-icon-button.d.ts +0 -2
- package/package.json +1 -1
- package/registry/index.json +15 -2
- package/registry/ui/components/nm-button/nm-button.css +10 -14
- package/registry/ui/components/nm-button/nm-button.tsx +23 -16
- package/registry/ui/components/nm-button-group/nm-button-group.css +11 -0
- package/registry/ui/components/nm-dropdown/nm-dropdown.tsx +1 -1
- package/registry/ui/components/nm-icon-border/nm-icon-border.tsx +1 -1
- package/registry/ui/components/nm-kbd/nm-kbd.css +23 -0
- package/registry/ui/components/nm-kbd/nm-kbd.tsx +12 -0
- package/registry/ui/components/nm-segmented/nm-segmented.tsx +1 -1
- package/registry/ui/components/nm-toolbar/nm-toolbar.css +0 -6
- package/registry/ui/components/nm-toolbar/nm-toolbar.tsx +12 -6
- package/registry/ui/components/nm-tooltip/nm-tooltip.css +17 -0
- package/registry/ui/components/nordman-icon-button/nordman-icon-button.css +6 -9
- package/registry/ui/config/nm-icon-button.ts +0 -2
package/dist/index.js
CHANGED
|
@@ -704,42 +704,41 @@ function Kt(e, t = Wt.default, n = !1) {
|
|
|
704
704
|
return `${Gt.root} ${Gt[e]} ${Gt[t]}${n ? ` ${Gt.icon}` : ""}`;
|
|
705
705
|
}
|
|
706
706
|
// src/ui/components/nm-button/nm-button.tsx
|
|
707
|
-
var qt = N("interface-nm-button")
|
|
708
|
-
|
|
709
|
-
let t = e.size ?? Wt.default, n = [
|
|
707
|
+
var qt = N("interface-nm-button"), Jt = Ze(function(e, t) {
|
|
708
|
+
let { label: n, tone: r, size: i, block: a, type: o, disabled: s, pressed: c, icon: l, iconOnly: u, testId: d, onClick: f, className: p, ...m } = e, h = i ?? Wt.default, g = [
|
|
710
709
|
Gt.root,
|
|
711
|
-
Gt[
|
|
712
|
-
Gt[
|
|
713
|
-
|
|
714
|
-
|
|
710
|
+
Gt[r],
|
|
711
|
+
Gt[h],
|
|
712
|
+
a ? Gt.block : null,
|
|
713
|
+
u ? Gt.icon : null,
|
|
714
|
+
p
|
|
715
715
|
].filter(Boolean).join(" ");
|
|
716
|
-
return qt.debug("render",
|
|
717
|
-
tone:
|
|
718
|
-
size:
|
|
716
|
+
return qt.debug("render", n, {
|
|
717
|
+
tone: r,
|
|
718
|
+
size: h
|
|
719
719
|
}), /* @__PURE__ */ T("button", {
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
"
|
|
724
|
-
|
|
725
|
-
"
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
720
|
+
...m,
|
|
721
|
+
ref: t,
|
|
722
|
+
className: g,
|
|
723
|
+
type: o ?? "button",
|
|
724
|
+
disabled: s,
|
|
725
|
+
"aria-pressed": c,
|
|
726
|
+
"aria-label": u ? n : void 0,
|
|
727
|
+
"data-testid": d,
|
|
728
|
+
onClick: f,
|
|
729
|
+
children: [l ? /* @__PURE__ */ w(P, {
|
|
730
|
+
id: l,
|
|
729
731
|
className: "nm-button__icon"
|
|
730
|
-
}) : null,
|
|
732
|
+
}) : null, u ? null : /* @__PURE__ */ w("span", {
|
|
731
733
|
className: "nm-button__label",
|
|
732
|
-
children:
|
|
734
|
+
children: n
|
|
733
735
|
})]
|
|
734
736
|
});
|
|
735
|
-
}
|
|
736
|
-
// src/ui/config/nm-icon-button.ts
|
|
737
|
-
var Yt = {
|
|
737
|
+
}), Yt = {
|
|
738
738
|
line: "line",
|
|
739
739
|
raised: "raised",
|
|
740
740
|
quiet: "quiet",
|
|
741
741
|
solid: "solid",
|
|
742
|
-
subtle: "subtle",
|
|
743
742
|
panel: "panel",
|
|
744
743
|
invert: "invert"
|
|
745
744
|
}, F = {
|
|
@@ -750,7 +749,6 @@ var Yt = {
|
|
|
750
749
|
raised: "nm-icon-button--raised",
|
|
751
750
|
quiet: "nm-icon-button--quiet",
|
|
752
751
|
solid: "nm-icon-button--solid",
|
|
753
|
-
subtle: "nm-icon-button--subtle",
|
|
754
752
|
panel: "nm-icon-button--panel",
|
|
755
753
|
invert: "nm-icon-button--invert"
|
|
756
754
|
}, Xt = "nm-chatbox__send";
|
|
@@ -1656,7 +1654,7 @@ function xr(e) {
|
|
|
1656
1654
|
label: e.label,
|
|
1657
1655
|
glyph: e.imageSrc == null ? e.icon ?? "ellipsis" : void 0,
|
|
1658
1656
|
imageSrc: e.imageSrc,
|
|
1659
|
-
tone: Yt.
|
|
1657
|
+
tone: Yt.quiet,
|
|
1660
1658
|
disabled: e.disabled,
|
|
1661
1659
|
expanded: m,
|
|
1662
1660
|
popup: "listbox",
|
|
@@ -6215,7 +6213,7 @@ function Al(e) {
|
|
|
6215
6213
|
label: e.label,
|
|
6216
6214
|
glyph: e.icon,
|
|
6217
6215
|
imageSrc: e.imageSrc,
|
|
6218
|
-
tone: Yt.
|
|
6216
|
+
tone: Yt.quiet,
|
|
6219
6217
|
pressed: e.pressed,
|
|
6220
6218
|
checked: e.checked,
|
|
6221
6219
|
disabled: e.disabled,
|
|
@@ -10237,8 +10235,23 @@ function u_({ className: e, ...t }) {
|
|
|
10237
10235
|
...t
|
|
10238
10236
|
});
|
|
10239
10237
|
}
|
|
10238
|
+
// src/ui/components/nm-kbd/nm-kbd.tsx
|
|
10239
|
+
function d_({ className: e, ...t }) {
|
|
10240
|
+
return /* @__PURE__ */ w("kbd", {
|
|
10241
|
+
"data-slot": "kbd",
|
|
10242
|
+
className: M("nm-kbd", e),
|
|
10243
|
+
...t
|
|
10244
|
+
});
|
|
10245
|
+
}
|
|
10246
|
+
function f_({ className: e, ...t }) {
|
|
10247
|
+
return /* @__PURE__ */ w("span", {
|
|
10248
|
+
"data-slot": "kbd-group",
|
|
10249
|
+
className: M("nm-kbd__group", e),
|
|
10250
|
+
...t
|
|
10251
|
+
});
|
|
10252
|
+
}
|
|
10240
10253
|
// src/ui/config/nm-list-item.ts
|
|
10241
|
-
var
|
|
10254
|
+
var p_ = {
|
|
10242
10255
|
root: "nm-list-item",
|
|
10243
10256
|
marked: "nm-list-item--marked",
|
|
10244
10257
|
icon: "nm-list-item--icon",
|
|
@@ -10251,17 +10264,17 @@ var d_ = {
|
|
|
10251
10264
|
action: "nm-list-item__action",
|
|
10252
10265
|
menu: "nm-list-item__menu",
|
|
10253
10266
|
rest: "nm-list-item__rest"
|
|
10254
|
-
},
|
|
10255
|
-
function
|
|
10256
|
-
|
|
10267
|
+
}, m_ = N("interface-nm-list-item");
|
|
10268
|
+
function h_(e) {
|
|
10269
|
+
m_.debug("render", e.title);
|
|
10257
10270
|
let t = e.leading != null && e.leadingSize === "face", n = e.leading != null && e.leadingSize === "icon", r = e.leading != null && !t && !n, i = [
|
|
10258
|
-
|
|
10259
|
-
r ?
|
|
10260
|
-
n ?
|
|
10261
|
-
t ?
|
|
10271
|
+
p_.root,
|
|
10272
|
+
r ? p_.marked : "",
|
|
10273
|
+
n ? p_.icon : "",
|
|
10274
|
+
t ? p_.face : ""
|
|
10262
10275
|
].filter((e) => e.length > 0).join(" "), a = null;
|
|
10263
10276
|
return e.menuItems != null && e.menuItems.length > 0 ? a = /* @__PURE__ */ w("span", {
|
|
10264
|
-
className:
|
|
10277
|
+
className: p_.menu,
|
|
10265
10278
|
children: /* @__PURE__ */ w(xr, {
|
|
10266
10279
|
label: e.menuLabel ?? e.title,
|
|
10267
10280
|
trigger: On.iconButton,
|
|
@@ -10272,7 +10285,7 @@ function p_(e) {
|
|
|
10272
10285
|
onSelect: (t) => e.onMenuSelect?.(t)
|
|
10273
10286
|
})
|
|
10274
10287
|
}) : e.onMenu != null && (a = /* @__PURE__ */ w("button", {
|
|
10275
|
-
className: `${
|
|
10288
|
+
className: `${p_.menu} ${L.revealHover}`,
|
|
10276
10289
|
type: "button",
|
|
10277
10290
|
"aria-label": e.menuLabel ?? e.title,
|
|
10278
10291
|
onClick: e.onMenu,
|
|
@@ -10281,33 +10294,33 @@ function p_(e) {
|
|
|
10281
10294
|
className: i,
|
|
10282
10295
|
"data-nm-menu": "",
|
|
10283
10296
|
children: [/* @__PURE__ */ T("span", {
|
|
10284
|
-
className:
|
|
10297
|
+
className: p_.identity,
|
|
10285
10298
|
children: [e.leading == null ? null : /* @__PURE__ */ w("span", {
|
|
10286
|
-
className:
|
|
10299
|
+
className: p_.lead,
|
|
10287
10300
|
children: e.leading
|
|
10288
10301
|
}), e.onOpen ? /* @__PURE__ */ w("button", {
|
|
10289
10302
|
type: "button",
|
|
10290
|
-
className:
|
|
10303
|
+
className: p_.open,
|
|
10291
10304
|
onClick: e.onOpen,
|
|
10292
10305
|
children: /* @__PURE__ */ w("span", {
|
|
10293
|
-
className:
|
|
10306
|
+
className: p_.title,
|
|
10294
10307
|
children: e.title
|
|
10295
10308
|
})
|
|
10296
10309
|
}) : /* @__PURE__ */ w("span", {
|
|
10297
|
-
className:
|
|
10310
|
+
className: p_.title,
|
|
10298
10311
|
children: e.title
|
|
10299
10312
|
})]
|
|
10300
10313
|
}), /* @__PURE__ */ w("span", { children: e.locked ? /* @__PURE__ */ w(P, { id: "lock" }) : /* @__PURE__ */ T(qe, { children: [
|
|
10301
10314
|
e.action ? /* @__PURE__ */ w("span", {
|
|
10302
|
-
className:
|
|
10315
|
+
className: p_.action,
|
|
10303
10316
|
children: e.action
|
|
10304
10317
|
}) : null,
|
|
10305
10318
|
e.detail ? /* @__PURE__ */ w("span", {
|
|
10306
|
-
className:
|
|
10319
|
+
className: p_.detail,
|
|
10307
10320
|
children: e.detail
|
|
10308
10321
|
}) : null,
|
|
10309
10322
|
e.resting === "lock" ? /* @__PURE__ */ w("span", {
|
|
10310
|
-
className:
|
|
10323
|
+
className: p_.rest,
|
|
10311
10324
|
children: /* @__PURE__ */ w(P, { id: "lock" })
|
|
10312
10325
|
}) : null,
|
|
10313
10326
|
a
|
|
@@ -10315,20 +10328,20 @@ function p_(e) {
|
|
|
10315
10328
|
});
|
|
10316
10329
|
}
|
|
10317
10330
|
// src/ui/components/nm-menubar/nm-menubar.tsx
|
|
10318
|
-
function
|
|
10331
|
+
function g_({ className: e, ...t }) {
|
|
10319
10332
|
return /* @__PURE__ */ w(bt, {
|
|
10320
10333
|
"data-slot": "menubar",
|
|
10321
10334
|
className: M("nm-menubar", e),
|
|
10322
10335
|
...t
|
|
10323
10336
|
});
|
|
10324
10337
|
}
|
|
10325
|
-
function
|
|
10338
|
+
function __(e) {
|
|
10326
10339
|
return /* @__PURE__ */ w(yt.Root, {
|
|
10327
10340
|
"data-slot": "menubar-menu",
|
|
10328
10341
|
...e
|
|
10329
10342
|
});
|
|
10330
10343
|
}
|
|
10331
|
-
function
|
|
10344
|
+
function v_({ className: e, ...t }) {
|
|
10332
10345
|
return /* @__PURE__ */ w(yt.Trigger, {
|
|
10333
10346
|
"data-slot": "menubar-trigger",
|
|
10334
10347
|
className: M("nm-menubar__trigger", e),
|
|
@@ -10336,20 +10349,20 @@ function g_({ className: e, ...t }) {
|
|
|
10336
10349
|
});
|
|
10337
10350
|
}
|
|
10338
10351
|
// src/ui/config/nm-modal.ts
|
|
10339
|
-
var
|
|
10352
|
+
var y_ = {
|
|
10340
10353
|
section: "section",
|
|
10341
10354
|
page: "page"
|
|
10342
|
-
},
|
|
10355
|
+
}, b_ = {
|
|
10343
10356
|
simple: "simple",
|
|
10344
10357
|
menu: "menu",
|
|
10345
10358
|
wide: "wide"
|
|
10346
|
-
},
|
|
10359
|
+
}, x_ = {
|
|
10347
10360
|
modal: "modal",
|
|
10348
10361
|
pane: "pane"
|
|
10349
|
-
},
|
|
10362
|
+
}, S_ = {
|
|
10350
10363
|
quiet: "quiet",
|
|
10351
10364
|
primary: "primary"
|
|
10352
|
-
},
|
|
10365
|
+
}, C_ = 750, X = {
|
|
10353
10366
|
layer: "nm-modal-layer",
|
|
10354
10367
|
root: "nm-modal",
|
|
10355
10368
|
simple: "nm-modal--simple",
|
|
@@ -10392,54 +10405,54 @@ var __ = {
|
|
|
10392
10405
|
actionQuiet: "nm-modal__action--quiet",
|
|
10393
10406
|
actionPrimary: "nm-modal__action--primary",
|
|
10394
10407
|
tabs: "nm-modal__tabs"
|
|
10395
|
-
},
|
|
10396
|
-
function
|
|
10397
|
-
return
|
|
10408
|
+
}, w_ = "sv-SE", T_ = /* @__PURE__ */ new Set();
|
|
10409
|
+
function E_() {
|
|
10410
|
+
return w_;
|
|
10398
10411
|
}
|
|
10399
|
-
function
|
|
10400
|
-
return
|
|
10401
|
-
|
|
10412
|
+
function D_(e) {
|
|
10413
|
+
return T_.add(e), () => {
|
|
10414
|
+
T_.delete(e);
|
|
10402
10415
|
};
|
|
10403
10416
|
}
|
|
10404
|
-
function
|
|
10405
|
-
return nt(
|
|
10417
|
+
function O_() {
|
|
10418
|
+
return nt(D_, E_, E_);
|
|
10406
10419
|
}
|
|
10407
|
-
function
|
|
10420
|
+
function k_(e) {
|
|
10408
10421
|
let t = e === "auto" && typeof navigator < "u" ? navigator.language : e;
|
|
10409
10422
|
return /^en\b/i.test(t);
|
|
10410
10423
|
}
|
|
10411
10424
|
// src/ui/content/nm-modal.ts
|
|
10412
|
-
function
|
|
10413
|
-
return
|
|
10425
|
+
function A_() {
|
|
10426
|
+
return k_(E_()) ? "Saved" : "Sparat";
|
|
10414
10427
|
}
|
|
10415
10428
|
// src/ui/components/nm-modal/nm-modal.tsx
|
|
10416
|
-
var
|
|
10429
|
+
var j_ = N("interface-nm-modal"), M_ = 1200, N_ = 400, P_ = Xe({
|
|
10417
10430
|
phase: "idle",
|
|
10418
10431
|
track: async (e) => e
|
|
10419
|
-
}),
|
|
10420
|
-
function
|
|
10421
|
-
return [...
|
|
10432
|
+
}), F_ = [], I_ = Xe(!1), L_ = [], R_ = /* @__PURE__ */ new Map(), z_ = 0;
|
|
10433
|
+
function B_() {
|
|
10434
|
+
return [...R_.values()].some((e) => e);
|
|
10422
10435
|
}
|
|
10423
|
-
function
|
|
10424
|
-
let e =
|
|
10425
|
-
|
|
10436
|
+
function V_() {
|
|
10437
|
+
let e = B_();
|
|
10438
|
+
L_[L_.length - 1]?.(e);
|
|
10426
10439
|
}
|
|
10427
|
-
function
|
|
10440
|
+
function H_(e, t = !0) {
|
|
10428
10441
|
let n = A(0);
|
|
10429
|
-
n.current === 0 && (
|
|
10442
|
+
n.current === 0 && (z_ += 1, n.current = z_), et(() => {
|
|
10430
10443
|
let r = n.current;
|
|
10431
|
-
return t ? (
|
|
10432
|
-
|
|
10433
|
-
}) : (
|
|
10434
|
-
|
|
10444
|
+
return t ? (R_.set(r, e), V_(), () => {
|
|
10445
|
+
R_.delete(r), V_();
|
|
10446
|
+
}) : (R_.delete(r), V_(), () => {
|
|
10447
|
+
R_.delete(r), V_();
|
|
10435
10448
|
});
|
|
10436
10449
|
}, [e, t]);
|
|
10437
10450
|
}
|
|
10438
|
-
function
|
|
10439
|
-
let e = Qe(
|
|
10440
|
-
return (t) => (
|
|
10451
|
+
function U_() {
|
|
10452
|
+
let e = Qe(P_).track;
|
|
10453
|
+
return (t) => (F_[F_.length - 1] ?? e)(t);
|
|
10441
10454
|
}
|
|
10442
|
-
function
|
|
10455
|
+
function W_(e) {
|
|
10443
10456
|
let [t, n] = j("idle"), [r, i] = j(!1), a = O((e) => {
|
|
10444
10457
|
i((t) => t === e ? t : e);
|
|
10445
10458
|
}, []), o = A(null), s = () => {
|
|
@@ -10449,47 +10462,47 @@ function H_(e) {
|
|
|
10449
10462
|
let c = O((e) => {
|
|
10450
10463
|
s(), n("saving");
|
|
10451
10464
|
let t = Date.now();
|
|
10452
|
-
return
|
|
10453
|
-
let i = Math.max(0,
|
|
10465
|
+
return j_.debug("save", "start"), e.then((e) => new Promise((r) => {
|
|
10466
|
+
let i = Math.max(0, N_ - (Date.now() - t));
|
|
10454
10467
|
o.current = window.setTimeout(() => {
|
|
10455
|
-
|
|
10468
|
+
j_.info("save", "confirmed"), n("saved"), o.current = window.setTimeout(() => {
|
|
10456
10469
|
n("idle"), o.current = null, r(e);
|
|
10457
|
-
},
|
|
10470
|
+
}, M_);
|
|
10458
10471
|
}, i);
|
|
10459
10472
|
}), (e) => {
|
|
10460
|
-
throw
|
|
10473
|
+
throw j_.warn("save", "failed", { error: e }), n("idle"), e;
|
|
10461
10474
|
});
|
|
10462
10475
|
}, []);
|
|
10463
|
-
return k(() => (
|
|
10464
|
-
let e =
|
|
10465
|
-
e >= 0 && N_.splice(e, 1);
|
|
10466
|
-
}), [c]), et(() => (F_.push(a), a(R_()), () => {
|
|
10467
|
-
let e = F_.lastIndexOf(a);
|
|
10476
|
+
return k(() => (F_.push(c), () => {
|
|
10477
|
+
let e = F_.lastIndexOf(c);
|
|
10468
10478
|
e >= 0 && F_.splice(e, 1);
|
|
10469
|
-
}), [
|
|
10479
|
+
}), [c]), et(() => (L_.push(a), a(B_()), () => {
|
|
10480
|
+
let e = L_.lastIndexOf(a);
|
|
10481
|
+
e >= 0 && L_.splice(e, 1);
|
|
10482
|
+
}), [a]), /* @__PURE__ */ w(P_.Provider, {
|
|
10470
10483
|
value: {
|
|
10471
10484
|
phase: t,
|
|
10472
10485
|
track: c
|
|
10473
10486
|
},
|
|
10474
|
-
children: /* @__PURE__ */ w(
|
|
10487
|
+
children: /* @__PURE__ */ w(I_.Provider, {
|
|
10475
10488
|
value: r,
|
|
10476
10489
|
children: e.children
|
|
10477
10490
|
})
|
|
10478
10491
|
});
|
|
10479
10492
|
}
|
|
10480
|
-
var
|
|
10481
|
-
function
|
|
10482
|
-
return [...e.querySelectorAll(
|
|
10493
|
+
var G_ = "a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
10494
|
+
function K_(e) {
|
|
10495
|
+
return [...e.querySelectorAll(G_)].filter((e) => e.tabIndex !== -1);
|
|
10483
10496
|
}
|
|
10484
|
-
function
|
|
10485
|
-
let { open: t, onClose: n, title: r } = e, i = $e(), a = A(null), o = A(null), s = e.size ?? (e.menu == null ?
|
|
10497
|
+
function q_(e) {
|
|
10498
|
+
let { open: t, onClose: n, title: r } = e, i = $e(), a = A(null), o = A(null), s = e.size ?? (e.menu == null ? b_.simple : b_.menu), c = e.footer ?? x_.modal, l = e.titleSize ?? (s === b_.simple ? y_.section : y_.page), u = [
|
|
10486
10499
|
X.root,
|
|
10487
|
-
s ===
|
|
10488
|
-
s ===
|
|
10489
|
-
s ===
|
|
10490
|
-
].filter((e) => e !== "").join(" "), d = [X.title, l ===
|
|
10500
|
+
s === b_.simple ? X.simple : "",
|
|
10501
|
+
s === b_.menu || s === b_.wide ? X.menu : "",
|
|
10502
|
+
s === b_.wide ? X.wide : ""
|
|
10503
|
+
].filter((e) => e !== "").join(" "), d = [X.title, l === y_.page ? X.titlePage : ""].filter((e) => e !== "").join(" "), f = [X.footer, c === x_.pane ? X.footerPane : ""].filter((e) => e !== "").join(" ");
|
|
10491
10504
|
k(() => {
|
|
10492
|
-
|
|
10505
|
+
j_.debug("presence", r, {
|
|
10493
10506
|
open: t,
|
|
10494
10507
|
size: s,
|
|
10495
10508
|
footer: c
|
|
@@ -10535,7 +10548,7 @@ function G_(e) {
|
|
|
10535
10548
|
let t = a.current;
|
|
10536
10549
|
if (t == null) return;
|
|
10537
10550
|
let n = document.activeElement;
|
|
10538
|
-
return o.current = n instanceof HTMLElement ? n : null, (
|
|
10551
|
+
return o.current = n instanceof HTMLElement ? n : null, (K_(t)[0] ?? t).focus({ preventScroll: !0 }), () => {
|
|
10539
10552
|
o.current?.focus({ preventScroll: !0 }), o.current = null;
|
|
10540
10553
|
};
|
|
10541
10554
|
}, [e.open]);
|
|
@@ -10556,7 +10569,7 @@ function G_(e) {
|
|
|
10556
10569
|
if (e.key !== "Tab") return;
|
|
10557
10570
|
let t = a.current;
|
|
10558
10571
|
if (t == null) return;
|
|
10559
|
-
let n =
|
|
10572
|
+
let n = K_(t);
|
|
10560
10573
|
if (n.length === 0) {
|
|
10561
10574
|
e.preventDefault();
|
|
10562
10575
|
return;
|
|
@@ -10577,7 +10590,7 @@ function G_(e) {
|
|
|
10577
10590
|
className: X.body,
|
|
10578
10591
|
children: e.children
|
|
10579
10592
|
})] });
|
|
10580
|
-
return it(e.open ? /* @__PURE__ */ w(
|
|
10593
|
+
return it(e.open ? /* @__PURE__ */ w(W_, { children: /* @__PURE__ */ T("div", {
|
|
10581
10594
|
className: X.layer,
|
|
10582
10595
|
children: [/* @__PURE__ */ w("div", {
|
|
10583
10596
|
className: X.backdrop,
|
|
@@ -10616,7 +10629,7 @@ function G_(e) {
|
|
|
10616
10629
|
}),
|
|
10617
10630
|
h ? /* @__PURE__ */ T("div", {
|
|
10618
10631
|
className: f,
|
|
10619
|
-
children: [c ===
|
|
10632
|
+
children: [c === x_.pane ? e.leading : null, /* @__PURE__ */ w("div", {
|
|
10620
10633
|
className: X.actionsEnd,
|
|
10621
10634
|
children: e.actions
|
|
10622
10635
|
})]
|
|
@@ -10625,17 +10638,17 @@ function G_(e) {
|
|
|
10625
10638
|
})]
|
|
10626
10639
|
}) }) : null, document.body);
|
|
10627
10640
|
}
|
|
10628
|
-
function
|
|
10629
|
-
|
|
10630
|
-
let t = e.tone ??
|
|
10641
|
+
function J_(e) {
|
|
10642
|
+
O_();
|
|
10643
|
+
let t = e.tone ?? S_.quiet, n = Qe(P_).phase, r = Qe(I_), i = e.icon === "check" && t === S_.primary, a = i && n === "saving", o = i && n === "saved", s = !!e.requireChange && !r && !o, c = a ? "loader" : e.icon, l = o ? A_() : e.label, u = l == null || l.length === 0, d = [
|
|
10631
10644
|
X.action,
|
|
10632
10645
|
u ? X.actionIcon : "",
|
|
10633
|
-
t ===
|
|
10646
|
+
t === S_.primary ? X.actionPrimary : X.actionQuiet
|
|
10634
10647
|
].filter((e) => e !== "").join(" "), f;
|
|
10635
10648
|
return u ? (f = e.accessibleName ?? e.icon, /* @__PURE__ */ w(cn, {
|
|
10636
10649
|
glyph: c,
|
|
10637
10650
|
label: f,
|
|
10638
|
-
tone: t ===
|
|
10651
|
+
tone: t === S_.primary ? Yt.invert : Yt.panel,
|
|
10639
10652
|
type: e.type ?? "button",
|
|
10640
10653
|
form: e.form,
|
|
10641
10654
|
disabled: e.disabled || a || s,
|
|
@@ -10658,7 +10671,7 @@ function K_(e) {
|
|
|
10658
10671
|
}));
|
|
10659
10672
|
}
|
|
10660
10673
|
// src/ui/components/nm-native-select/nm-native-select.tsx
|
|
10661
|
-
function
|
|
10674
|
+
function Y_({ className: e, children: t, ...n }) {
|
|
10662
10675
|
return /* @__PURE__ */ T("div", {
|
|
10663
10676
|
className: "nm-native-select",
|
|
10664
10677
|
children: [/* @__PURE__ */ w("select", {
|
|
@@ -10672,25 +10685,25 @@ function q_({ className: e, children: t, ...n }) {
|
|
|
10672
10685
|
})]
|
|
10673
10686
|
});
|
|
10674
10687
|
}
|
|
10675
|
-
function
|
|
10688
|
+
function X_(e) {
|
|
10676
10689
|
return /* @__PURE__ */ w("option", {
|
|
10677
10690
|
"data-slot": "native-select-option",
|
|
10678
10691
|
...e
|
|
10679
10692
|
});
|
|
10680
10693
|
}
|
|
10681
|
-
function
|
|
10694
|
+
function Z_(e) {
|
|
10682
10695
|
return /* @__PURE__ */ w("optgroup", {
|
|
10683
10696
|
"data-slot": "native-select-optgroup",
|
|
10684
10697
|
...e
|
|
10685
10698
|
});
|
|
10686
10699
|
}
|
|
10687
10700
|
// src/ui/components/nm-panel/nm-panel.tsx
|
|
10688
|
-
var
|
|
10701
|
+
var Q_ = [
|
|
10689
10702
|
"default",
|
|
10690
10703
|
"inset",
|
|
10691
10704
|
"plain"
|
|
10692
10705
|
];
|
|
10693
|
-
function
|
|
10706
|
+
function $_({ className: e, variant: t = "default", ...n }) {
|
|
10694
10707
|
return /* @__PURE__ */ w("section", {
|
|
10695
10708
|
"data-slot": "panel",
|
|
10696
10709
|
"data-variant": t,
|
|
@@ -10698,42 +10711,42 @@ function Z_({ className: e, variant: t = "default", ...n }) {
|
|
|
10698
10711
|
...n
|
|
10699
10712
|
});
|
|
10700
10713
|
}
|
|
10701
|
-
function
|
|
10714
|
+
function ev({ className: e, ...t }) {
|
|
10702
10715
|
return /* @__PURE__ */ w("header", {
|
|
10703
10716
|
"data-slot": "panel-header",
|
|
10704
10717
|
className: M("nm-panel-region__header", e),
|
|
10705
10718
|
...t
|
|
10706
10719
|
});
|
|
10707
10720
|
}
|
|
10708
|
-
function
|
|
10721
|
+
function tv({ className: e, ...t }) {
|
|
10709
10722
|
return /* @__PURE__ */ w("h2", {
|
|
10710
10723
|
"data-slot": "panel-title",
|
|
10711
10724
|
className: M("nm-panel-region__title", e),
|
|
10712
10725
|
...t
|
|
10713
10726
|
});
|
|
10714
10727
|
}
|
|
10715
|
-
function
|
|
10728
|
+
function nv({ className: e, ...t }) {
|
|
10716
10729
|
return /* @__PURE__ */ w("p", {
|
|
10717
10730
|
"data-slot": "panel-description",
|
|
10718
10731
|
className: M("nm-panel-region__description", e),
|
|
10719
10732
|
...t
|
|
10720
10733
|
});
|
|
10721
10734
|
}
|
|
10722
|
-
function
|
|
10735
|
+
function rv({ className: e, ...t }) {
|
|
10723
10736
|
return /* @__PURE__ */ w("div", {
|
|
10724
10737
|
"data-slot": "panel-actions",
|
|
10725
10738
|
className: M("nm-panel-region__actions", e),
|
|
10726
10739
|
...t
|
|
10727
10740
|
});
|
|
10728
10741
|
}
|
|
10729
|
-
function
|
|
10742
|
+
function iv({ className: e, ...t }) {
|
|
10730
10743
|
return /* @__PURE__ */ w("div", {
|
|
10731
10744
|
"data-slot": "panel-content",
|
|
10732
10745
|
className: M("nm-panel-region__content", e),
|
|
10733
10746
|
...t
|
|
10734
10747
|
});
|
|
10735
10748
|
}
|
|
10736
|
-
function
|
|
10749
|
+
function av({ className: e, ...t }) {
|
|
10737
10750
|
return /* @__PURE__ */ w("footer", {
|
|
10738
10751
|
"data-slot": "panel-footer",
|
|
10739
10752
|
className: M("nm-panel-region__footer", e),
|
|
@@ -10741,12 +10754,12 @@ function rv({ className: e, ...t }) {
|
|
|
10741
10754
|
});
|
|
10742
10755
|
}
|
|
10743
10756
|
// src/ui/config/nm-segmented.ts
|
|
10744
|
-
var
|
|
10757
|
+
var ov = {
|
|
10745
10758
|
fill: "fill",
|
|
10746
10759
|
line: "line",
|
|
10747
10760
|
pills: "pills",
|
|
10748
10761
|
track: "track"
|
|
10749
|
-
},
|
|
10762
|
+
}, sv = {
|
|
10750
10763
|
root: "nm-segmented",
|
|
10751
10764
|
fill: "nm-segmented--fill",
|
|
10752
10765
|
line: "nm-segmented--line",
|
|
@@ -10755,29 +10768,29 @@ var iv = {
|
|
|
10755
10768
|
item: "nm-segmented__item",
|
|
10756
10769
|
itemIcon: "nm-segmented__item--icon",
|
|
10757
10770
|
icon: "nm-segmented__icon"
|
|
10758
|
-
},
|
|
10759
|
-
function
|
|
10771
|
+
}, cv = N("interface-nm-segmented");
|
|
10772
|
+
function lv(e) {
|
|
10760
10773
|
return e.imageSrc ? /* @__PURE__ */ w("img", {
|
|
10761
|
-
className:
|
|
10774
|
+
className: sv.icon,
|
|
10762
10775
|
src: e.imageSrc,
|
|
10763
10776
|
alt: ""
|
|
10764
10777
|
}) : e.icon ? /* @__PURE__ */ w(P, {
|
|
10765
10778
|
id: e.icon,
|
|
10766
|
-
className:
|
|
10779
|
+
className: sv.icon
|
|
10767
10780
|
}) : null;
|
|
10768
10781
|
}
|
|
10769
|
-
function
|
|
10770
|
-
let t = e.tone ??
|
|
10771
|
-
return
|
|
10782
|
+
function uv(e) {
|
|
10783
|
+
let t = e.tone ?? ov.line;
|
|
10784
|
+
return cv.debug("render", e.active, {
|
|
10772
10785
|
tone: t,
|
|
10773
10786
|
items: e.items.length
|
|
10774
10787
|
}), /* @__PURE__ */ w("div", {
|
|
10775
|
-
className: `${
|
|
10788
|
+
className: `${sv.root} ${sv[t]}`,
|
|
10776
10789
|
role: "radiogroup",
|
|
10777
10790
|
"aria-label": e.label,
|
|
10778
10791
|
"data-testid": e.testId,
|
|
10779
10792
|
children: e.items.map((t) => {
|
|
10780
|
-
let n = t.id === e.active, r = t.iconOnly === !0, i = r ? `${
|
|
10793
|
+
let n = t.id === e.active, r = t.iconOnly === !0, i = r ? `${sv.item} ${sv.itemIcon} ${F.root} ${F[Yt.quiet]}` : sv.item;
|
|
10781
10794
|
return /* @__PURE__ */ T("button", {
|
|
10782
10795
|
className: i,
|
|
10783
10796
|
type: "button",
|
|
@@ -10786,23 +10799,23 @@ function cv(e) {
|
|
|
10786
10799
|
"aria-checked": n,
|
|
10787
10800
|
"data-active": n ? "true" : "false",
|
|
10788
10801
|
onClick: () => e.onSelect(t.id),
|
|
10789
|
-
children: [
|
|
10802
|
+
children: [lv(t), r ? null : t.label]
|
|
10790
10803
|
}, t.id);
|
|
10791
10804
|
})
|
|
10792
10805
|
});
|
|
10793
10806
|
}
|
|
10794
10807
|
// src/ui/config/nm-panel-bar.ts
|
|
10795
|
-
var
|
|
10808
|
+
var dv = { icons: "icons" }, fv = {
|
|
10796
10809
|
root: "nm-panel-bar",
|
|
10797
10810
|
icons: "nm-panel-bar--icons",
|
|
10798
10811
|
actions: "nm-panel-bar__actions"
|
|
10799
|
-
},
|
|
10800
|
-
function
|
|
10801
|
-
return
|
|
10802
|
-
className: e.layout ===
|
|
10812
|
+
}, pv = N("interface-nm-panel-bar");
|
|
10813
|
+
function mv(e) {
|
|
10814
|
+
return pv.debug("render", e.active, { items: e.items.length }), /* @__PURE__ */ T("header", {
|
|
10815
|
+
className: e.layout === dv.icons ? `${fv.root} ${fv.icons}` : fv.root,
|
|
10803
10816
|
"aria-label": e.label,
|
|
10804
10817
|
"data-testid": e.testId,
|
|
10805
|
-
children: [/* @__PURE__ */ w(
|
|
10818
|
+
children: [/* @__PURE__ */ w(uv, {
|
|
10806
10819
|
label: e.toggleLabel,
|
|
10807
10820
|
active: e.active,
|
|
10808
10821
|
testId: e.toggleTestId,
|
|
@@ -10810,13 +10823,13 @@ function fv(e) {
|
|
|
10810
10823
|
items: e.items,
|
|
10811
10824
|
onSelect: e.onSelect
|
|
10812
10825
|
}), e.trailing ? /* @__PURE__ */ w("div", {
|
|
10813
|
-
className:
|
|
10826
|
+
className: fv.actions,
|
|
10814
10827
|
children: e.trailing
|
|
10815
10828
|
}) : null]
|
|
10816
10829
|
});
|
|
10817
10830
|
}
|
|
10818
10831
|
// src/ui/components/nm-prose/nm-prose.tsx
|
|
10819
|
-
function
|
|
10832
|
+
function hv({ className: e, ...t }) {
|
|
10820
10833
|
return /* @__PURE__ */ w("article", {
|
|
10821
10834
|
"data-slot": "prose",
|
|
10822
10835
|
className: M("nm-prose", e),
|
|
@@ -10824,11 +10837,11 @@ function pv({ className: e, ...t }) {
|
|
|
10824
10837
|
});
|
|
10825
10838
|
}
|
|
10826
10839
|
// src/ui/config/nm-questionnaire.ts
|
|
10827
|
-
var
|
|
10840
|
+
var gv = [
|
|
10828
10841
|
"none",
|
|
10829
10842
|
"letters",
|
|
10830
10843
|
"numbers"
|
|
10831
|
-
],
|
|
10844
|
+
], _v = ["card", "plain"], vv = {
|
|
10832
10845
|
previous: "Previous",
|
|
10833
10846
|
next: "Next",
|
|
10834
10847
|
skip: "Skip",
|
|
@@ -10855,17 +10868,17 @@ var mv = [
|
|
|
10855
10868
|
error: "nm-questionnaire__error",
|
|
10856
10869
|
actions: "nm-questionnaire__actions",
|
|
10857
10870
|
summary: "nm-questionnaire__summary"
|
|
10858
|
-
},
|
|
10871
|
+
}, yv = {
|
|
10859
10872
|
values: [],
|
|
10860
10873
|
text: ""
|
|
10861
10874
|
};
|
|
10862
|
-
function
|
|
10875
|
+
function bv(e) {
|
|
10863
10876
|
return e != null && (e.values.length > 0 || e.text.trim() !== "");
|
|
10864
10877
|
}
|
|
10865
|
-
function
|
|
10878
|
+
function xv(e, t) {
|
|
10866
10879
|
return e === "letters" ? String.fromCharCode(97 + t) : e === "numbers" ? String(t + 1) : null;
|
|
10867
10880
|
}
|
|
10868
|
-
function
|
|
10881
|
+
function Sv(e) {
|
|
10869
10882
|
let { questions: t } = e, [n, r] = j({}), i = e.answers ?? n, [a, o] = j(Math.min(e.defaultStep ?? 0, t.length - 1)), [s, c] = j(null), l = A(null), u = e.shortcuts ?? "none", d = a === t.length - 1, f = t[a];
|
|
10870
10883
|
k(() => {
|
|
10871
10884
|
l.current?.querySelector(`[data-step="${a}"] input:checked, [data-step="${a}"] input`)?.focus({ preventScroll: !0 });
|
|
@@ -10878,7 +10891,7 @@ function bv(e) {
|
|
|
10878
10891
|
c(null), r(a), e.onChange?.(a);
|
|
10879
10892
|
}
|
|
10880
10893
|
function m(e, t) {
|
|
10881
|
-
let n = i[e.name] ??
|
|
10894
|
+
let n = i[e.name] ?? yv;
|
|
10882
10895
|
if (e.multiple === !0) {
|
|
10883
10896
|
let r = n.values.includes(t);
|
|
10884
10897
|
p(e.name, {
|
|
@@ -10891,29 +10904,29 @@ function bv(e) {
|
|
|
10891
10904
|
});
|
|
10892
10905
|
}
|
|
10893
10906
|
function h(e, t) {
|
|
10894
|
-
let n = i[e.name] ??
|
|
10907
|
+
let n = i[e.name] ?? yv;
|
|
10895
10908
|
p(e.name, {
|
|
10896
10909
|
values: e.multiple === !0 ? n.values : [],
|
|
10897
10910
|
text: t
|
|
10898
10911
|
});
|
|
10899
10912
|
}
|
|
10900
10913
|
function g(e) {
|
|
10901
|
-
return e.required !== !0 ||
|
|
10914
|
+
return e.required !== !0 || bv(i[e.name]);
|
|
10902
10915
|
}
|
|
10903
10916
|
function _(e) {
|
|
10904
10917
|
c(null), o(e);
|
|
10905
10918
|
}
|
|
10906
10919
|
function v() {
|
|
10907
|
-
g(f) ? _(a + 1) : c(
|
|
10920
|
+
g(f) ? _(a + 1) : c(vv.required);
|
|
10908
10921
|
}
|
|
10909
10922
|
function y() {
|
|
10910
10923
|
let n = t.findIndex((e) => !g(e));
|
|
10911
|
-
n === -1 ? e.onSubmit(i) : (o(n), c(
|
|
10924
|
+
n === -1 ? e.onSubmit(i) : (o(n), c(vv.required));
|
|
10912
10925
|
}
|
|
10913
10926
|
function b(e) {
|
|
10914
10927
|
let t = e.target;
|
|
10915
10928
|
if (u === "none" || t.tagName === "INPUT" && t.type === "text") return;
|
|
10916
|
-
let n = f.choices.findIndex((t, n) =>
|
|
10929
|
+
let n = f.choices.findIndex((t, n) => xv(u, n) === e.key.toLowerCase());
|
|
10917
10930
|
n === -1 || e.metaKey || e.ctrlKey || e.altKey || (e.preventDefault(), m(f, f.choices[n].value));
|
|
10918
10931
|
}
|
|
10919
10932
|
return e.submitted === !0 ? /* @__PURE__ */ w("div", {
|
|
@@ -10922,7 +10935,7 @@ function bv(e) {
|
|
|
10922
10935
|
className: Z.summary,
|
|
10923
10936
|
children: t.map((e) => {
|
|
10924
10937
|
let t = i[e.name], n = (t?.values ?? []).map((t) => e.choices.find((e) => e.value === t)?.label ?? t);
|
|
10925
|
-
return t?.text && n.push(t.text), /* @__PURE__ */ T("li", { children: [/* @__PURE__ */ w("span", { children: e.title }), /* @__PURE__ */ w("span", { children: n.length > 0 ? n.join(", ") :
|
|
10938
|
+
return t?.text && n.push(t.text), /* @__PURE__ */ T("li", { children: [/* @__PURE__ */ w("span", { children: e.title }), /* @__PURE__ */ w("span", { children: n.length > 0 ? n.join(", ") : vv.skipped })] }, e.name);
|
|
10926
10939
|
})
|
|
10927
10940
|
})
|
|
10928
10941
|
}) : /* @__PURE__ */ T("form", {
|
|
@@ -10937,15 +10950,15 @@ function bv(e) {
|
|
|
10937
10950
|
className: Z.progress,
|
|
10938
10951
|
children: [/* @__PURE__ */ w("span", {
|
|
10939
10952
|
className: Z.progressLabel,
|
|
10940
|
-
children:
|
|
10953
|
+
children: vv.progress(a, t.length)
|
|
10941
10954
|
}), /* @__PURE__ */ w(Tr, {
|
|
10942
10955
|
value: a + 1,
|
|
10943
10956
|
max: t.length,
|
|
10944
|
-
"aria-label":
|
|
10957
|
+
"aria-label": vv.progress(a, t.length)
|
|
10945
10958
|
})]
|
|
10946
10959
|
}),
|
|
10947
10960
|
t.map((e, t) => {
|
|
10948
|
-
let n = i[e.name] ??
|
|
10961
|
+
let n = i[e.name] ?? yv, r = t === a, o = `${e.name}-description`;
|
|
10949
10962
|
return /* @__PURE__ */ T("fieldset", {
|
|
10950
10963
|
className: Z.item,
|
|
10951
10964
|
hidden: !r,
|
|
@@ -10965,7 +10978,7 @@ function bv(e) {
|
|
|
10965
10978
|
/* @__PURE__ */ T("div", {
|
|
10966
10979
|
className: Z.choices,
|
|
10967
10980
|
children: [e.choices.map((t, r) => {
|
|
10968
|
-
let i =
|
|
10981
|
+
let i = xv(u, r), a = n.values.includes(t.value);
|
|
10969
10982
|
return /* @__PURE__ */ T("label", {
|
|
10970
10983
|
className: Z.choice,
|
|
10971
10984
|
"data-multiple": e.multiple === !0 ? "true" : void 0,
|
|
@@ -11021,25 +11034,25 @@ function bv(e) {
|
|
|
11021
11034
|
className: Z.actions,
|
|
11022
11035
|
children: [
|
|
11023
11036
|
a > 0 ? /* @__PURE__ */ w(Jt, {
|
|
11024
|
-
label:
|
|
11037
|
+
label: vv.previous,
|
|
11025
11038
|
tone: "outline",
|
|
11026
11039
|
size: "compact",
|
|
11027
11040
|
onClick: () => _(a - 1)
|
|
11028
11041
|
}) : null,
|
|
11029
11042
|
/* @__PURE__ */ w("span", { "data-push": "" }),
|
|
11030
11043
|
f.required !== !0 && !d ? /* @__PURE__ */ w(Jt, {
|
|
11031
|
-
label:
|
|
11044
|
+
label: vv.skip,
|
|
11032
11045
|
tone: "outline",
|
|
11033
11046
|
size: "compact",
|
|
11034
11047
|
onClick: () => _(a + 1)
|
|
11035
11048
|
}) : null,
|
|
11036
11049
|
d ? /* @__PURE__ */ w(Jt, {
|
|
11037
|
-
label: e.submitLabel ??
|
|
11050
|
+
label: e.submitLabel ?? vv.submit,
|
|
11038
11051
|
tone: "filled",
|
|
11039
11052
|
size: "compact",
|
|
11040
11053
|
type: "submit"
|
|
11041
11054
|
}) : /* @__PURE__ */ w(Jt, {
|
|
11042
|
-
label:
|
|
11055
|
+
label: vv.next,
|
|
11043
11056
|
tone: "filled",
|
|
11044
11057
|
size: "compact",
|
|
11045
11058
|
type: "submit"
|
|
@@ -11050,14 +11063,14 @@ function bv(e) {
|
|
|
11050
11063
|
});
|
|
11051
11064
|
}
|
|
11052
11065
|
// src/ui/components/nm-radio-group/nm-radio-group.tsx
|
|
11053
|
-
function
|
|
11066
|
+
function Cv({ className: e, ...t }) {
|
|
11054
11067
|
return /* @__PURE__ */ w(St, {
|
|
11055
11068
|
"data-slot": "radio-group",
|
|
11056
11069
|
className: M("nm-radio-group", e),
|
|
11057
11070
|
...t
|
|
11058
11071
|
});
|
|
11059
11072
|
}
|
|
11060
|
-
function
|
|
11073
|
+
function wv({ className: e, ...t }) {
|
|
11061
11074
|
return /* @__PURE__ */ w(xt.Root, {
|
|
11062
11075
|
"data-slot": "radio-group-item",
|
|
11063
11076
|
className: M("nm-radio", e),
|
|
@@ -11069,7 +11082,7 @@ function Sv({ className: e, ...t }) {
|
|
|
11069
11082
|
});
|
|
11070
11083
|
}
|
|
11071
11084
|
// src/ui/components/nm-rail-icon/nm-rail-icon.tsx
|
|
11072
|
-
var
|
|
11085
|
+
var Tv = N("interface-nm-rail-icon"), Ev = {
|
|
11073
11086
|
plus: "plus",
|
|
11074
11087
|
plusSm: "plus",
|
|
11075
11088
|
folder: "folder",
|
|
@@ -11081,20 +11094,20 @@ var Cv = N("interface-nm-rail-icon"), wv = {
|
|
|
11081
11094
|
settings: "settings",
|
|
11082
11095
|
search: "search"
|
|
11083
11096
|
};
|
|
11084
|
-
function
|
|
11085
|
-
return
|
|
11086
|
-
id:
|
|
11097
|
+
function Dv(e) {
|
|
11098
|
+
return Tv.debug("render", e.id), /* @__PURE__ */ w(Ft, {
|
|
11099
|
+
id: Ev[e.id],
|
|
11087
11100
|
className: "nm-rail-icon"
|
|
11088
11101
|
});
|
|
11089
11102
|
}
|
|
11090
11103
|
// src/ui/components/nm-resize-handle/nm-resize-handle.tsx
|
|
11091
|
-
var
|
|
11092
|
-
function
|
|
11104
|
+
var Ov = 16;
|
|
11105
|
+
function kv(e, t, n) {
|
|
11093
11106
|
if (e.endsWith("%")) return parseFloat(e) / 100 * t;
|
|
11094
11107
|
let r = parseFloat(e);
|
|
11095
11108
|
return Number.isFinite(r) ? r : n;
|
|
11096
11109
|
}
|
|
11097
|
-
function
|
|
11110
|
+
function Av({ target: e, edge: t, label: n, onSize: r, placement: i = "free", className: a }) {
|
|
11098
11111
|
let [o, s] = j(!1), c = () => {
|
|
11099
11112
|
let t = e.current;
|
|
11100
11113
|
if (!t) return {
|
|
@@ -11104,8 +11117,8 @@ function Ov({ target: e, edge: t, label: n, onSize: r, placement: i = "free", cl
|
|
|
11104
11117
|
};
|
|
11105
11118
|
let n = getComputedStyle(t), r = t.parentElement?.getBoundingClientRect().width ?? 0;
|
|
11106
11119
|
return {
|
|
11107
|
-
min:
|
|
11108
|
-
max:
|
|
11120
|
+
min: kv(n.minWidth, r, 0),
|
|
11121
|
+
max: kv(n.maxWidth, r, r),
|
|
11109
11122
|
now: t.getBoundingClientRect().width
|
|
11110
11123
|
};
|
|
11111
11124
|
}, [l, u] = j(c), d = () => u(c());
|
|
@@ -11131,8 +11144,8 @@ function Ov({ target: e, edge: t, label: n, onSize: r, placement: i = "free", cl
|
|
|
11131
11144
|
tabIndex: 0,
|
|
11132
11145
|
onKeyDown: (e) => {
|
|
11133
11146
|
let { min: t, max: n, now: r } = c();
|
|
11134
|
-
if (e.key === "ArrowRight") p(f(r + m *
|
|
11135
|
-
else if (e.key === "ArrowLeft") p(f(r - m *
|
|
11147
|
+
if (e.key === "ArrowRight") p(f(r + m * Ov));
|
|
11148
|
+
else if (e.key === "ArrowLeft") p(f(r - m * Ov));
|
|
11136
11149
|
else if (e.key === "Home") p(t);
|
|
11137
11150
|
else if (e.key === "End") p(n);
|
|
11138
11151
|
else if (e.key === "Enter") p(null);
|
|
@@ -11152,7 +11165,7 @@ function Ov({ target: e, edge: t, label: n, onSize: r, placement: i = "free", cl
|
|
|
11152
11165
|
});
|
|
11153
11166
|
}
|
|
11154
11167
|
// src/ui/config/nm-side-panel.ts
|
|
11155
|
-
var
|
|
11168
|
+
var jv = [
|
|
11156
11169
|
{
|
|
11157
11170
|
id: "app",
|
|
11158
11171
|
label: "App",
|
|
@@ -11188,34 +11201,34 @@ var kv = [
|
|
|
11188
11201
|
label: "Markdown",
|
|
11189
11202
|
icon: "file-code"
|
|
11190
11203
|
}
|
|
11191
|
-
],
|
|
11204
|
+
], Mv = [
|
|
11192
11205
|
"narrow",
|
|
11193
11206
|
"default",
|
|
11194
11207
|
"wide"
|
|
11195
11208
|
];
|
|
11196
11209
|
// src/ui/components/nm-toolbar/nm-toolbar.tsx
|
|
11197
|
-
function
|
|
11210
|
+
function Nv({ className: e, ...t }) {
|
|
11198
11211
|
return /* @__PURE__ */ w(Ct.Root, {
|
|
11199
11212
|
"data-slot": "toolbar",
|
|
11200
11213
|
className: M("nm-toolbar", e),
|
|
11201
11214
|
...t
|
|
11202
11215
|
});
|
|
11203
11216
|
}
|
|
11204
|
-
function
|
|
11217
|
+
function Pv({ className: e, ...t }) {
|
|
11205
11218
|
return /* @__PURE__ */ w(Ct.Group, {
|
|
11206
11219
|
"data-slot": "toolbar-group",
|
|
11207
11220
|
className: M("nm-toolbar__group", e),
|
|
11208
11221
|
...t
|
|
11209
11222
|
});
|
|
11210
11223
|
}
|
|
11211
|
-
function
|
|
11224
|
+
function Fv({ className: e, ...t }) {
|
|
11212
11225
|
return /* @__PURE__ */ w(Ct.Separator, {
|
|
11213
11226
|
"data-slot": "toolbar-separator",
|
|
11214
11227
|
className: M("nm-toolbar__separator", e),
|
|
11215
11228
|
...t
|
|
11216
11229
|
});
|
|
11217
11230
|
}
|
|
11218
|
-
function
|
|
11231
|
+
function Iv({ className: e, ...t }) {
|
|
11219
11232
|
return /* @__PURE__ */ w("span", {
|
|
11220
11233
|
"aria-hidden": "true",
|
|
11221
11234
|
"data-slot": "toolbar-spacer",
|
|
@@ -11223,17 +11236,24 @@ function Pv({ className: e, ...t }) {
|
|
|
11223
11236
|
...t
|
|
11224
11237
|
});
|
|
11225
11238
|
}
|
|
11226
|
-
function
|
|
11239
|
+
function Lv({ icon: e, label: t, tone: n, pressed: r, className: i, children: a, ...o }) {
|
|
11240
|
+
let s = a != null, c = Object.values(Ut).includes(n ?? "") ? n : "muted";
|
|
11227
11241
|
return /* @__PURE__ */ T(Ct.Button, {
|
|
11228
11242
|
"data-slot": "toolbar-button",
|
|
11229
11243
|
"aria-label": t,
|
|
11230
11244
|
"aria-pressed": r,
|
|
11231
|
-
className: M(Zt(n
|
|
11245
|
+
className: M(s ? Kt(c) : Zt(n ?? "quiet"), i),
|
|
11232
11246
|
...o,
|
|
11233
|
-
children: [e ? /* @__PURE__ */ w(P, {
|
|
11247
|
+
children: [e ? /* @__PURE__ */ w(P, {
|
|
11248
|
+
id: e,
|
|
11249
|
+
className: s ? "nm-button__icon" : void 0
|
|
11250
|
+
}) : null, s ? /* @__PURE__ */ w("span", {
|
|
11251
|
+
className: "nm-button__label",
|
|
11252
|
+
children: a
|
|
11253
|
+
}) : null]
|
|
11234
11254
|
});
|
|
11235
11255
|
}
|
|
11236
|
-
function
|
|
11256
|
+
function Rv({ className: e, ...t }) {
|
|
11237
11257
|
return /* @__PURE__ */ w(Ct.Input, {
|
|
11238
11258
|
"data-slot": "toolbar-input",
|
|
11239
11259
|
className: M("nm-input nm-toolbar__input", e),
|
|
@@ -11241,7 +11261,7 @@ function Iv({ className: e, ...t }) {
|
|
|
11241
11261
|
});
|
|
11242
11262
|
}
|
|
11243
11263
|
// src/ui/components/nm-side-panel/nm-side-panel.tsx
|
|
11244
|
-
function
|
|
11264
|
+
function zv({ className: e, height: t = "fill", ...n }) {
|
|
11245
11265
|
return /* @__PURE__ */ w("div", {
|
|
11246
11266
|
"data-slot": "workspace",
|
|
11247
11267
|
"data-height": t,
|
|
@@ -11249,28 +11269,28 @@ function Lv({ className: e, height: t = "fill", ...n }) {
|
|
|
11249
11269
|
...n
|
|
11250
11270
|
});
|
|
11251
11271
|
}
|
|
11252
|
-
function
|
|
11272
|
+
function Bv({ className: e, ...t }) {
|
|
11253
11273
|
return /* @__PURE__ */ w("div", {
|
|
11254
11274
|
"data-slot": "workspace-main",
|
|
11255
11275
|
className: M("nm-workspace__main", e),
|
|
11256
11276
|
...t
|
|
11257
11277
|
});
|
|
11258
11278
|
}
|
|
11259
|
-
function
|
|
11279
|
+
function Vv({ className: e, ...t }) {
|
|
11260
11280
|
return /* @__PURE__ */ w("div", {
|
|
11261
11281
|
"data-slot": "workspace-body",
|
|
11262
11282
|
className: M("nm-workspace__body", e),
|
|
11263
11283
|
...t
|
|
11264
11284
|
});
|
|
11265
11285
|
}
|
|
11266
|
-
function
|
|
11286
|
+
function Hv({ className: e, ...t }) {
|
|
11267
11287
|
return /* @__PURE__ */ w("div", {
|
|
11268
11288
|
"data-slot": "workspace-footer",
|
|
11269
11289
|
className: M("nm-workspace__footer", e),
|
|
11270
11290
|
...t
|
|
11271
11291
|
});
|
|
11272
11292
|
}
|
|
11273
|
-
function
|
|
11293
|
+
function Uv({ className: e, open: t = !0, size: n = "default", label: r, resizable: i = !0, style: a, children: o, ...s }) {
|
|
11274
11294
|
let c = A(null), [l, u] = j(null);
|
|
11275
11295
|
return /* @__PURE__ */ T("aside", {
|
|
11276
11296
|
ref: c,
|
|
@@ -11285,7 +11305,7 @@ function Vv({ className: e, open: t = !0, size: n = "default", label: r, resizab
|
|
|
11285
11305
|
"--nm-side-panel-basis": `${l}px`
|
|
11286
11306
|
},
|
|
11287
11307
|
...s,
|
|
11288
|
-
children: [i ? /* @__PURE__ */ w(
|
|
11308
|
+
children: [i ? /* @__PURE__ */ w(Av, {
|
|
11289
11309
|
target: c,
|
|
11290
11310
|
edge: "start",
|
|
11291
11311
|
placement: "inside",
|
|
@@ -11294,15 +11314,15 @@ function Vv({ className: e, open: t = !0, size: n = "default", label: r, resizab
|
|
|
11294
11314
|
}) : null, o]
|
|
11295
11315
|
});
|
|
11296
11316
|
}
|
|
11297
|
-
function
|
|
11317
|
+
function Wv({ className: e, ...t }) {
|
|
11298
11318
|
return /* @__PURE__ */ w("div", {
|
|
11299
11319
|
"data-slot": "side-panel-body",
|
|
11300
11320
|
className: M("nm-side-panel__body", e),
|
|
11301
11321
|
...t
|
|
11302
11322
|
});
|
|
11303
11323
|
}
|
|
11304
|
-
function
|
|
11305
|
-
return /* @__PURE__ */ w(qe, { children:
|
|
11324
|
+
function Gv({ kinds: e = jv.map((e) => e.id), active: t, onSelect: n }) {
|
|
11325
|
+
return /* @__PURE__ */ w(qe, { children: jv.filter((t) => e.includes(t.id)).map((e) => /* @__PURE__ */ w(Lv, {
|
|
11306
11326
|
icon: e.icon,
|
|
11307
11327
|
label: e.label,
|
|
11308
11328
|
pressed: t === e.id,
|
|
@@ -11311,7 +11331,7 @@ function Uv({ kinds: e = kv.map((e) => e.id), active: t, onSelect: n }) {
|
|
|
11311
11331
|
}, e.id)) });
|
|
11312
11332
|
}
|
|
11313
11333
|
// src/ui/components/nm-slider/nm-slider.tsx
|
|
11314
|
-
function
|
|
11334
|
+
function Kv({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100, label: a, output: o, ...s }) {
|
|
11315
11335
|
let c = Array.isArray(n) ? n : Array.isArray(t) ? t : [r, i], l = /* @__PURE__ */ w(wt.Root, {
|
|
11316
11336
|
"data-slot": "slider",
|
|
11317
11337
|
className: M("nm-slider", e),
|
|
@@ -11352,14 +11372,14 @@ function Wv({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100,
|
|
|
11352
11372
|
}) : l;
|
|
11353
11373
|
}
|
|
11354
11374
|
// src/ui/components/nm-status-bar/nm-status-bar.tsx
|
|
11355
|
-
function
|
|
11375
|
+
function qv({ className: e, ...t }) {
|
|
11356
11376
|
return /* @__PURE__ */ w("footer", {
|
|
11357
11377
|
"data-slot": "status-bar",
|
|
11358
11378
|
className: M("nm-status-bar", e),
|
|
11359
11379
|
...t
|
|
11360
11380
|
});
|
|
11361
11381
|
}
|
|
11362
|
-
function
|
|
11382
|
+
function Jv({ className: e, onClick: t, children: n, ...r }) {
|
|
11363
11383
|
let i = M("nm-status-bar__item", e);
|
|
11364
11384
|
return t ? /* @__PURE__ */ w("button", {
|
|
11365
11385
|
type: "button",
|
|
@@ -11374,7 +11394,7 @@ function Kv({ className: e, onClick: t, children: n, ...r }) {
|
|
|
11374
11394
|
children: n
|
|
11375
11395
|
});
|
|
11376
11396
|
}
|
|
11377
|
-
function
|
|
11397
|
+
function Yv({ className: e, ...t }) {
|
|
11378
11398
|
return /* @__PURE__ */ w("span", {
|
|
11379
11399
|
"aria-hidden": "true",
|
|
11380
11400
|
"data-slot": "status-bar-spacer",
|
|
@@ -11383,7 +11403,7 @@ function qv({ className: e, ...t }) {
|
|
|
11383
11403
|
});
|
|
11384
11404
|
}
|
|
11385
11405
|
// src/ui/components/nm-switch/nm-switch.tsx
|
|
11386
|
-
function
|
|
11406
|
+
function Xv({ className: e, ...t }) {
|
|
11387
11407
|
return /* @__PURE__ */ w(Tt.Root, {
|
|
11388
11408
|
"data-slot": "switch",
|
|
11389
11409
|
className: M("nm-switch", e),
|
|
@@ -11395,13 +11415,13 @@ function Jv({ className: e, ...t }) {
|
|
|
11395
11415
|
});
|
|
11396
11416
|
}
|
|
11397
11417
|
// src/ui/components/nm-table/nm-table.tsx
|
|
11398
|
-
var
|
|
11418
|
+
var Zv = [
|
|
11399
11419
|
"default",
|
|
11400
11420
|
"striped",
|
|
11401
11421
|
"lined",
|
|
11402
11422
|
"plain"
|
|
11403
|
-
],
|
|
11404
|
-
function
|
|
11423
|
+
], Qv = ["default", "sm"];
|
|
11424
|
+
function $v({ className: e, variant: t = "default", size: n = "default", stickyHeader: r, maxHeight: i, ...a }) {
|
|
11405
11425
|
return /* @__PURE__ */ w("div", {
|
|
11406
11426
|
"data-slot": "table-container",
|
|
11407
11427
|
"data-sticky": r ? "" : void 0,
|
|
@@ -11416,28 +11436,28 @@ function Zv({ className: e, variant: t = "default", size: n = "default", stickyH
|
|
|
11416
11436
|
})
|
|
11417
11437
|
});
|
|
11418
11438
|
}
|
|
11419
|
-
function
|
|
11439
|
+
function ey({ className: e, ...t }) {
|
|
11420
11440
|
return /* @__PURE__ */ w("thead", {
|
|
11421
11441
|
"data-slot": "table-header",
|
|
11422
11442
|
className: M("nm-table__header", e),
|
|
11423
11443
|
...t
|
|
11424
11444
|
});
|
|
11425
11445
|
}
|
|
11426
|
-
function
|
|
11446
|
+
function ty({ className: e, ...t }) {
|
|
11427
11447
|
return /* @__PURE__ */ w("tbody", {
|
|
11428
11448
|
"data-slot": "table-body",
|
|
11429
11449
|
className: M("nm-table__body", e),
|
|
11430
11450
|
...t
|
|
11431
11451
|
});
|
|
11432
11452
|
}
|
|
11433
|
-
function
|
|
11453
|
+
function ny({ className: e, ...t }) {
|
|
11434
11454
|
return /* @__PURE__ */ w("tfoot", {
|
|
11435
11455
|
"data-slot": "table-footer",
|
|
11436
11456
|
className: M("nm-table__footer", e),
|
|
11437
11457
|
...t
|
|
11438
11458
|
});
|
|
11439
11459
|
}
|
|
11440
|
-
function
|
|
11460
|
+
function ry({ className: e, selected: t, disabled: n, ...r }) {
|
|
11441
11461
|
return /* @__PURE__ */ w("tr", {
|
|
11442
11462
|
"data-slot": "table-row",
|
|
11443
11463
|
"data-selected": t ? "" : void 0,
|
|
@@ -11449,7 +11469,7 @@ function ty({ className: e, selected: t, disabled: n, ...r }) {
|
|
|
11449
11469
|
...r
|
|
11450
11470
|
});
|
|
11451
11471
|
}
|
|
11452
|
-
function
|
|
11472
|
+
function iy({ className: e, textAlign: t = "start", sort: n, onSort: r, children: i, ...a }) {
|
|
11453
11473
|
return /* @__PURE__ */ w("th", {
|
|
11454
11474
|
"data-slot": "table-head",
|
|
11455
11475
|
"data-align": t,
|
|
@@ -11469,7 +11489,7 @@ function ny({ className: e, textAlign: t = "start", sort: n, onSort: r, children
|
|
|
11469
11489
|
}) : i
|
|
11470
11490
|
});
|
|
11471
11491
|
}
|
|
11472
|
-
function
|
|
11492
|
+
function ay({ className: e, textAlign: t = "start", wrap: n, ...r }) {
|
|
11473
11493
|
return /* @__PURE__ */ w("td", {
|
|
11474
11494
|
"data-slot": "table-cell",
|
|
11475
11495
|
"data-align": t,
|
|
@@ -11478,7 +11498,7 @@ function ry({ className: e, textAlign: t = "start", wrap: n, ...r }) {
|
|
|
11478
11498
|
...r
|
|
11479
11499
|
});
|
|
11480
11500
|
}
|
|
11481
|
-
function
|
|
11501
|
+
function oy({ className: e, ...t }) {
|
|
11482
11502
|
return /* @__PURE__ */ w("caption", {
|
|
11483
11503
|
"data-slot": "table-caption",
|
|
11484
11504
|
className: M("nm-table__caption", e),
|
|
@@ -11486,17 +11506,17 @@ function iy({ className: e, ...t }) {
|
|
|
11486
11506
|
});
|
|
11487
11507
|
}
|
|
11488
11508
|
// src/ui/config/nm-tabs.ts
|
|
11489
|
-
var
|
|
11509
|
+
var sy = {
|
|
11490
11510
|
root: "nm-tabs",
|
|
11491
11511
|
item: "nm-tabs__item"
|
|
11492
|
-
},
|
|
11493
|
-
function
|
|
11494
|
-
return
|
|
11495
|
-
className:
|
|
11512
|
+
}, cy = N("interface-nm-tabs");
|
|
11513
|
+
function ly(e) {
|
|
11514
|
+
return cy.debug("render", e.label, { value: e.value }), /* @__PURE__ */ w("div", {
|
|
11515
|
+
className: sy.root,
|
|
11496
11516
|
role: "tablist",
|
|
11497
11517
|
"aria-label": e.label,
|
|
11498
11518
|
children: e.items.map((t) => /* @__PURE__ */ w("button", {
|
|
11499
|
-
className:
|
|
11519
|
+
className: sy.item,
|
|
11500
11520
|
type: "button",
|
|
11501
11521
|
role: "tab",
|
|
11502
11522
|
"aria-selected": t.id === e.value,
|
|
@@ -11506,7 +11526,7 @@ function sy(e) {
|
|
|
11506
11526
|
});
|
|
11507
11527
|
}
|
|
11508
11528
|
// src/ui/components/nm-textarea/nm-textarea.tsx
|
|
11509
|
-
function
|
|
11529
|
+
function uy({ className: e, ...t }) {
|
|
11510
11530
|
return /* @__PURE__ */ w("textarea", {
|
|
11511
11531
|
"data-slot": "textarea",
|
|
11512
11532
|
className: M("nm-textarea", e),
|
|
@@ -11514,12 +11534,12 @@ function cy({ className: e, ...t }) {
|
|
|
11514
11534
|
});
|
|
11515
11535
|
}
|
|
11516
11536
|
// src/ui/components/nm-toggle/nm-toggle.tsx
|
|
11517
|
-
var
|
|
11537
|
+
var dy = ["default", "outline"], fy = [
|
|
11518
11538
|
"sm",
|
|
11519
11539
|
"default",
|
|
11520
11540
|
"lg"
|
|
11521
11541
|
];
|
|
11522
|
-
function
|
|
11542
|
+
function py({ className: e, variant: t = "default", size: n = "default", ...r }) {
|
|
11523
11543
|
return /* @__PURE__ */ w(Et, {
|
|
11524
11544
|
"data-slot": "toggle",
|
|
11525
11545
|
"data-variant": t,
|
|
@@ -11529,26 +11549,26 @@ function dy({ className: e, variant: t = "default", size: n = "default", ...r })
|
|
|
11529
11549
|
});
|
|
11530
11550
|
}
|
|
11531
11551
|
// src/ui/components/nm-tooltip/nm-tooltip.tsx
|
|
11532
|
-
function
|
|
11552
|
+
function my({ delay: e = 0, ...t }) {
|
|
11533
11553
|
return /* @__PURE__ */ w(Dt.Provider, {
|
|
11534
11554
|
"data-slot": "tooltip-provider",
|
|
11535
11555
|
delay: e,
|
|
11536
11556
|
...t
|
|
11537
11557
|
});
|
|
11538
11558
|
}
|
|
11539
|
-
function
|
|
11559
|
+
function hy(e) {
|
|
11540
11560
|
return /* @__PURE__ */ w(Dt.Root, {
|
|
11541
11561
|
"data-slot": "tooltip",
|
|
11542
11562
|
...e
|
|
11543
11563
|
});
|
|
11544
11564
|
}
|
|
11545
|
-
function
|
|
11565
|
+
function gy(e) {
|
|
11546
11566
|
return /* @__PURE__ */ w(Dt.Trigger, {
|
|
11547
11567
|
"data-slot": "tooltip-trigger",
|
|
11548
11568
|
...e
|
|
11549
11569
|
});
|
|
11550
11570
|
}
|
|
11551
|
-
function
|
|
11571
|
+
function _y({ className: e, side: t = "top", sideOffset: n = 4, align: r = "center", alignOffset: i = 0, children: a, ...o }) {
|
|
11552
11572
|
return /* @__PURE__ */ w(Dt.Portal, { children: /* @__PURE__ */ w(Dt.Positioner, {
|
|
11553
11573
|
align: r,
|
|
11554
11574
|
alignOffset: i,
|
|
@@ -11564,21 +11584,21 @@ function hy({ className: e, side: t = "top", sideOffset: n = 4, align: r = "cent
|
|
|
11564
11584
|
}) });
|
|
11565
11585
|
}
|
|
11566
11586
|
// src/ui/config/nm-top-bar.ts
|
|
11567
|
-
var
|
|
11587
|
+
var vy = {
|
|
11568
11588
|
root: "nm-header",
|
|
11569
11589
|
end: "nm-header__end"
|
|
11570
|
-
},
|
|
11571
|
-
function
|
|
11572
|
-
return
|
|
11590
|
+
}, yy = N("interface-nm-top-bar");
|
|
11591
|
+
function by(e) {
|
|
11592
|
+
return yy.debug("render", "top-bar", {
|
|
11573
11593
|
end: e.end != null,
|
|
11574
11594
|
menu: e.menu != null
|
|
11575
11595
|
}), /* @__PURE__ */ T("header", {
|
|
11576
|
-
className:
|
|
11596
|
+
className: vy.root,
|
|
11577
11597
|
children: [
|
|
11578
11598
|
e.menu,
|
|
11579
11599
|
e.children,
|
|
11580
11600
|
e.end == null ? null : /* @__PURE__ */ w("div", {
|
|
11581
|
-
className:
|
|
11601
|
+
className: vy.end,
|
|
11582
11602
|
"data-hidden-narrow": e.endHidden === !0 ? "true" : "false",
|
|
11583
11603
|
children: e.end
|
|
11584
11604
|
})
|
|
@@ -11586,12 +11606,12 @@ function vy(e) {
|
|
|
11586
11606
|
});
|
|
11587
11607
|
}
|
|
11588
11608
|
// src/ui/config/nordman-login.ts
|
|
11589
|
-
var
|
|
11609
|
+
var xy = {
|
|
11590
11610
|
signIn: "signIn",
|
|
11591
11611
|
register: "register",
|
|
11592
11612
|
forgot: "forgot",
|
|
11593
11613
|
reset: "reset"
|
|
11594
|
-
},
|
|
11614
|
+
}, Sy = "nm-login-form", Q = {
|
|
11595
11615
|
username: "username",
|
|
11596
11616
|
password: "password",
|
|
11597
11617
|
displayName: "displayName",
|
|
@@ -11599,11 +11619,11 @@ var yy = {
|
|
|
11599
11619
|
registerPassword: "register-password",
|
|
11600
11620
|
confirmPassword: "confirm-password",
|
|
11601
11621
|
resetPassword: "reset-password"
|
|
11602
|
-
},
|
|
11622
|
+
}, Cy = {
|
|
11603
11623
|
viewBox: "0 0 24 24",
|
|
11604
11624
|
show: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z",
|
|
11605
11625
|
hide: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"
|
|
11606
|
-
},
|
|
11626
|
+
}, wy = "nordman", Ty = {
|
|
11607
11627
|
skip: "Hoppa till innehållet",
|
|
11608
11628
|
identifier: "Email",
|
|
11609
11629
|
identifierPlaceholder: "name@mail.com",
|
|
@@ -11636,7 +11656,7 @@ var yy = {
|
|
|
11636
11656
|
registerEmailInUse: "Det finns redan ett konto med den här e-postadressen.",
|
|
11637
11657
|
registerDone: "Kolla mejlet för att bekräfta kontot.",
|
|
11638
11658
|
registerDoneReady: "Kontot är skapat. Logga in."
|
|
11639
|
-
},
|
|
11659
|
+
}, Ey = {
|
|
11640
11660
|
skip: "Skip to content",
|
|
11641
11661
|
identifier: "Email",
|
|
11642
11662
|
identifierPlaceholder: "name@mail.com",
|
|
@@ -11670,13 +11690,13 @@ var yy = {
|
|
|
11670
11690
|
registerDone: "Check your email to confirm the account.",
|
|
11671
11691
|
registerDoneReady: "The account is created. Log in."
|
|
11672
11692
|
};
|
|
11673
|
-
function
|
|
11674
|
-
return
|
|
11693
|
+
function Dy(e) {
|
|
11694
|
+
return k_(e ?? E_()) ? Ey : Ty;
|
|
11675
11695
|
}
|
|
11676
11696
|
var $ = new Proxy({}, { get(e, t) {
|
|
11677
|
-
return
|
|
11678
|
-
} }),
|
|
11679
|
-
function
|
|
11697
|
+
return Dy()[t];
|
|
11698
|
+
} }), Oy = N("interface-nordman-login-reveal");
|
|
11699
|
+
function ky(e) {
|
|
11680
11700
|
let t = e.revealed ? $.hidePassword : $.showPassword;
|
|
11681
11701
|
return /* @__PURE__ */ w("button", {
|
|
11682
11702
|
className: "nm-login__reveal",
|
|
@@ -11685,22 +11705,22 @@ function Dy(e) {
|
|
|
11685
11705
|
"aria-pressed": e.revealed,
|
|
11686
11706
|
"data-testid": "cta-reveal-password",
|
|
11687
11707
|
onClick: () => {
|
|
11688
|
-
|
|
11708
|
+
Oy.debug("toggle", e.revealed ? "hide" : "show"), e.onToggle();
|
|
11689
11709
|
},
|
|
11690
11710
|
children: /* @__PURE__ */ w("svg", {
|
|
11691
11711
|
className: "nm-login__reveal-icon",
|
|
11692
|
-
viewBox:
|
|
11712
|
+
viewBox: Cy.viewBox,
|
|
11693
11713
|
"aria-hidden": "true",
|
|
11694
11714
|
focusable: "false",
|
|
11695
11715
|
children: /* @__PURE__ */ w("path", {
|
|
11696
|
-
d: e.revealed ?
|
|
11716
|
+
d: e.revealed ? Cy.hide : Cy.show,
|
|
11697
11717
|
fill: "currentColor"
|
|
11698
11718
|
})
|
|
11699
11719
|
})
|
|
11700
11720
|
});
|
|
11701
11721
|
}
|
|
11702
11722
|
// src/ui/components/nordman-login-field/nordman-login-field.tsx
|
|
11703
|
-
function
|
|
11723
|
+
function Ay(e) {
|
|
11704
11724
|
let t = e.type === "password", [n, r] = j(!1), i = t && n ? "text" : e.type, a = /* @__PURE__ */ w("input", {
|
|
11705
11725
|
className: t ? "nm-login__control nm-login__control--secret" : "nm-login__control",
|
|
11706
11726
|
id: e.id,
|
|
@@ -11722,7 +11742,7 @@ function Oy(e) {
|
|
|
11722
11742
|
}), e.accessory]
|
|
11723
11743
|
}), t ? /* @__PURE__ */ T("div", {
|
|
11724
11744
|
className: "nm-login__control-wrap",
|
|
11725
|
-
children: [a, /* @__PURE__ */ w(
|
|
11745
|
+
children: [a, /* @__PURE__ */ w(ky, {
|
|
11726
11746
|
revealed: n,
|
|
11727
11747
|
onToggle: () => r((e) => !e)
|
|
11728
11748
|
})]
|
|
@@ -11730,12 +11750,12 @@ function Oy(e) {
|
|
|
11730
11750
|
});
|
|
11731
11751
|
}
|
|
11732
11752
|
// src/ui/components/nordman-login-register/nordman-login-register.tsx
|
|
11733
|
-
var
|
|
11734
|
-
function
|
|
11753
|
+
var jy = N("interface-nordman-login-register");
|
|
11754
|
+
function My(e) {
|
|
11735
11755
|
function t(t) {
|
|
11736
11756
|
t.preventDefault();
|
|
11737
11757
|
let n = new FormData(t.currentTarget);
|
|
11738
|
-
|
|
11758
|
+
jy.debug("submit", "start"), e.onRegister({
|
|
11739
11759
|
username: String(n.get(Q.registerUsername) ?? ""),
|
|
11740
11760
|
displayName: String(n.get(Q.displayName) ?? ""),
|
|
11741
11761
|
password: String(n.get(Q.registerPassword) ?? "")
|
|
@@ -11743,10 +11763,10 @@ function Ay(e) {
|
|
|
11743
11763
|
}
|
|
11744
11764
|
return /* @__PURE__ */ T("form", {
|
|
11745
11765
|
className: "nm-login__form",
|
|
11746
|
-
id:
|
|
11766
|
+
id: Sy,
|
|
11747
11767
|
onSubmit: t,
|
|
11748
11768
|
children: [
|
|
11749
|
-
/* @__PURE__ */ w(
|
|
11769
|
+
/* @__PURE__ */ w(Ay, {
|
|
11750
11770
|
id: Q.registerUsername,
|
|
11751
11771
|
name: Q.registerUsername,
|
|
11752
11772
|
label: $.identifier,
|
|
@@ -11755,7 +11775,7 @@ function Ay(e) {
|
|
|
11755
11775
|
placeholder: $.identifierPlaceholder,
|
|
11756
11776
|
required: !0
|
|
11757
11777
|
}),
|
|
11758
|
-
/* @__PURE__ */ w(
|
|
11778
|
+
/* @__PURE__ */ w(Ay, {
|
|
11759
11779
|
id: Q.displayName,
|
|
11760
11780
|
name: Q.displayName,
|
|
11761
11781
|
label: $.displayName,
|
|
@@ -11764,7 +11784,7 @@ function Ay(e) {
|
|
|
11764
11784
|
minLength: 3,
|
|
11765
11785
|
required: !0
|
|
11766
11786
|
}),
|
|
11767
|
-
/* @__PURE__ */ w(
|
|
11787
|
+
/* @__PURE__ */ w(Ay, {
|
|
11768
11788
|
id: Q.registerPassword,
|
|
11769
11789
|
name: Q.registerPassword,
|
|
11770
11790
|
label: $.password,
|
|
@@ -11789,22 +11809,22 @@ function Ay(e) {
|
|
|
11789
11809
|
});
|
|
11790
11810
|
}
|
|
11791
11811
|
// src/ui/components/nordman-login-sign-in/nordman-login-sign-in.tsx
|
|
11792
|
-
var
|
|
11793
|
-
function
|
|
11812
|
+
var Ny = N("interface-nordman-login-sign-in");
|
|
11813
|
+
function Py(e) {
|
|
11794
11814
|
function t(t) {
|
|
11795
11815
|
t.preventDefault();
|
|
11796
11816
|
let n = new FormData(t.currentTarget), r = String(n.get(Q.username) ?? ""), i = String(n.get(Q.password) ?? "");
|
|
11797
|
-
|
|
11817
|
+
Ny.debug("submit", "start"), e.onSignIn({
|
|
11798
11818
|
username: r,
|
|
11799
11819
|
password: i
|
|
11800
11820
|
});
|
|
11801
11821
|
}
|
|
11802
11822
|
return /* @__PURE__ */ T("form", {
|
|
11803
11823
|
className: "nm-login__form",
|
|
11804
|
-
id:
|
|
11824
|
+
id: Sy,
|
|
11805
11825
|
onSubmit: t,
|
|
11806
11826
|
children: [
|
|
11807
|
-
/* @__PURE__ */ w(
|
|
11827
|
+
/* @__PURE__ */ w(Ay, {
|
|
11808
11828
|
id: Q.username,
|
|
11809
11829
|
name: Q.username,
|
|
11810
11830
|
label: $.identifier,
|
|
@@ -11812,7 +11832,7 @@ function My(e) {
|
|
|
11812
11832
|
autoComplete: "username",
|
|
11813
11833
|
placeholder: $.identifierPlaceholder
|
|
11814
11834
|
}),
|
|
11815
|
-
/* @__PURE__ */ w(
|
|
11835
|
+
/* @__PURE__ */ w(Ay, {
|
|
11816
11836
|
id: Q.password,
|
|
11817
11837
|
name: Q.password,
|
|
11818
11838
|
label: $.password,
|
|
@@ -11844,12 +11864,12 @@ function My(e) {
|
|
|
11844
11864
|
});
|
|
11845
11865
|
}
|
|
11846
11866
|
// src/ui/components/nordman-login-forgot/nordman-login-forgot.tsx
|
|
11847
|
-
var
|
|
11848
|
-
function
|
|
11867
|
+
var Fy = N("interface-nordman-login-forgot");
|
|
11868
|
+
function Iy(e) {
|
|
11849
11869
|
function t(t) {
|
|
11850
11870
|
t.preventDefault();
|
|
11851
11871
|
let n = new FormData(t.currentTarget), r = String(n.get(Q.username) ?? "");
|
|
11852
|
-
|
|
11872
|
+
Fy.debug("submit", "start"), e.onRequestReset({ identifier: r });
|
|
11853
11873
|
}
|
|
11854
11874
|
return e.sent ? /* @__PURE__ */ w("p", {
|
|
11855
11875
|
className: "nm-login__notice",
|
|
@@ -11857,9 +11877,9 @@ function Py(e) {
|
|
|
11857
11877
|
children: $.forgotSent
|
|
11858
11878
|
}) : /* @__PURE__ */ T("form", {
|
|
11859
11879
|
className: "nm-login__form",
|
|
11860
|
-
id:
|
|
11880
|
+
id: Sy,
|
|
11861
11881
|
onSubmit: t,
|
|
11862
|
-
children: [/* @__PURE__ */ w(
|
|
11882
|
+
children: [/* @__PURE__ */ w(Ay, {
|
|
11863
11883
|
id: Q.username,
|
|
11864
11884
|
name: Q.username,
|
|
11865
11885
|
label: $.identifier,
|
|
@@ -11881,8 +11901,8 @@ function Py(e) {
|
|
|
11881
11901
|
});
|
|
11882
11902
|
}
|
|
11883
11903
|
// src/ui/components/nordman-login-google/nordman-login-google.tsx
|
|
11884
|
-
function
|
|
11885
|
-
return
|
|
11904
|
+
function Ly(e) {
|
|
11905
|
+
return O_(), /* @__PURE__ */ w("div", {
|
|
11886
11906
|
className: "nm-login__google-wrap",
|
|
11887
11907
|
children: /* @__PURE__ */ w(Jt, {
|
|
11888
11908
|
label: e.pending ? $.googlePending : $.continueWithGoogle,
|
|
@@ -11897,17 +11917,17 @@ function Fy(e) {
|
|
|
11897
11917
|
});
|
|
11898
11918
|
}
|
|
11899
11919
|
// src/ui/components/nordman-login-reset/nordman-login-reset.tsx
|
|
11900
|
-
var
|
|
11901
|
-
function
|
|
11920
|
+
var Ry = N("interface-nordman-login-reset");
|
|
11921
|
+
function zy(e) {
|
|
11902
11922
|
let [t, n] = j(!1);
|
|
11903
11923
|
function r(t) {
|
|
11904
11924
|
t.preventDefault();
|
|
11905
11925
|
let r = new FormData(t.currentTarget), i = String(r.get(Q.resetPassword) ?? "");
|
|
11906
|
-
i === String(r.get(Q.confirmPassword) ?? "") ? (n(!1),
|
|
11926
|
+
i === String(r.get(Q.confirmPassword) ?? "") ? (n(!1), Ry.debug("submit", "start"), e.onResetPassword({ password: i })) : (Ry.warn("submit", "mismatch"), n(!0));
|
|
11907
11927
|
}
|
|
11908
11928
|
return /* @__PURE__ */ T("form", {
|
|
11909
11929
|
className: "nm-login__form",
|
|
11910
|
-
id:
|
|
11930
|
+
id: Sy,
|
|
11911
11931
|
onSubmit: r,
|
|
11912
11932
|
children: [
|
|
11913
11933
|
t ? /* @__PURE__ */ w("p", {
|
|
@@ -11915,7 +11935,7 @@ function Ly(e) {
|
|
|
11915
11935
|
role: "alert",
|
|
11916
11936
|
children: $.mismatch
|
|
11917
11937
|
}) : null,
|
|
11918
|
-
/* @__PURE__ */ w(
|
|
11938
|
+
/* @__PURE__ */ w(Ay, {
|
|
11919
11939
|
id: Q.resetPassword,
|
|
11920
11940
|
name: Q.resetPassword,
|
|
11921
11941
|
label: $.password,
|
|
@@ -11924,7 +11944,7 @@ function Ly(e) {
|
|
|
11924
11944
|
placeholder: $.passwordPlaceholder,
|
|
11925
11945
|
minLength: e.passwordMin
|
|
11926
11946
|
}),
|
|
11927
|
-
/* @__PURE__ */ w(
|
|
11947
|
+
/* @__PURE__ */ w(Ay, {
|
|
11928
11948
|
id: Q.confirmPassword,
|
|
11929
11949
|
name: Q.confirmPassword,
|
|
11930
11950
|
label: $.confirmPassword,
|
|
@@ -11948,12 +11968,12 @@ function Ly(e) {
|
|
|
11948
11968
|
});
|
|
11949
11969
|
}
|
|
11950
11970
|
// src/ui/components/nordman-login-hero/nordman-login-hero.tsx
|
|
11951
|
-
var
|
|
11971
|
+
var By = {
|
|
11952
11972
|
square: "glow",
|
|
11953
11973
|
triangle: "glow tri",
|
|
11954
11974
|
circle: "glow circle"
|
|
11955
11975
|
};
|
|
11956
|
-
function
|
|
11976
|
+
function Vy(e) {
|
|
11957
11977
|
let t = A(null);
|
|
11958
11978
|
return k(() => {
|
|
11959
11979
|
let n = window.NordmanUI;
|
|
@@ -11965,51 +11985,51 @@ function zy(e) {
|
|
|
11965
11985
|
}), () => r.abort();
|
|
11966
11986
|
}, [e.shape]), /* @__PURE__ */ w("div", {
|
|
11967
11987
|
ref: t,
|
|
11968
|
-
className:
|
|
11988
|
+
className: By[e.shape],
|
|
11969
11989
|
"aria-hidden": "true",
|
|
11970
11990
|
children: /* @__PURE__ */ w("i", {})
|
|
11971
11991
|
});
|
|
11972
11992
|
}
|
|
11973
11993
|
// src/ui/components/nordman-login/nordman-login.tsx
|
|
11974
|
-
function
|
|
11975
|
-
return e.view ===
|
|
11994
|
+
function Hy(e) {
|
|
11995
|
+
return e.view === xy.register ? /* @__PURE__ */ w(My, {
|
|
11976
11996
|
pending: e.pending,
|
|
11977
11997
|
passwordMin: e.passwordMin,
|
|
11978
11998
|
onRegister: e.onRegister
|
|
11979
|
-
}) : e.view ===
|
|
11999
|
+
}) : e.view === xy.forgot ? /* @__PURE__ */ w(Iy, {
|
|
11980
12000
|
pending: e.pending,
|
|
11981
12001
|
sent: e.sent,
|
|
11982
12002
|
onRequestReset: e.onRequestReset
|
|
11983
|
-
}) : e.view ===
|
|
12003
|
+
}) : e.view === xy.reset ? /* @__PURE__ */ w(zy, {
|
|
11984
12004
|
pending: e.pending,
|
|
11985
12005
|
passwordMin: e.passwordMin,
|
|
11986
12006
|
onResetPassword: e.onResetPassword
|
|
11987
|
-
}) : e.googleOnly ? /* @__PURE__ */ w(
|
|
12007
|
+
}) : e.googleOnly ? /* @__PURE__ */ w(Ly, {
|
|
11988
12008
|
pending: e.pending,
|
|
11989
12009
|
onContinueWithGoogle: () => e.onContinueWithGoogle?.()
|
|
11990
|
-
}) : /* @__PURE__ */ w(
|
|
12010
|
+
}) : /* @__PURE__ */ w(Py, {
|
|
11991
12011
|
pending: e.pending,
|
|
11992
12012
|
passwordMin: e.passwordMin,
|
|
11993
|
-
onForgot: () => e.onView(
|
|
12013
|
+
onForgot: () => e.onView(xy.forgot),
|
|
11994
12014
|
onSignIn: e.onSignIn
|
|
11995
12015
|
});
|
|
11996
12016
|
}
|
|
11997
|
-
function
|
|
11998
|
-
let t = e.view ===
|
|
12017
|
+
function Uy(e) {
|
|
12018
|
+
let t = e.view === xy.register, n = e.view === xy.signIn;
|
|
11999
12019
|
return k(() => {
|
|
12000
|
-
document.documentElement.dataset.interface =
|
|
12020
|
+
document.documentElement.dataset.interface = wy;
|
|
12001
12021
|
}, []), /* @__PURE__ */ T("div", {
|
|
12002
12022
|
className: e.googleOnly ? "nm-login nm-login--google-only" : "nm-login",
|
|
12003
12023
|
"data-testid": "nordman-login",
|
|
12004
12024
|
children: [
|
|
12005
12025
|
/* @__PURE__ */ w("a", {
|
|
12006
12026
|
className: "nm-login__skip",
|
|
12007
|
-
href: `#${
|
|
12027
|
+
href: `#${Sy}`,
|
|
12008
12028
|
children: $.skip
|
|
12009
12029
|
}),
|
|
12010
12030
|
/* @__PURE__ */ w("div", {
|
|
12011
12031
|
className: "nm-login__visual",
|
|
12012
|
-
children: /* @__PURE__ */ w(
|
|
12032
|
+
children: /* @__PURE__ */ w(Vy, { shape: e.shape })
|
|
12013
12033
|
}),
|
|
12014
12034
|
/* @__PURE__ */ w("section", {
|
|
12015
12035
|
className: "nm-login__panel",
|
|
@@ -12025,11 +12045,11 @@ function Vy(e) {
|
|
|
12025
12045
|
role: "alert",
|
|
12026
12046
|
children: e.error
|
|
12027
12047
|
}) : null,
|
|
12028
|
-
e.notice && e.view !==
|
|
12048
|
+
e.notice && e.view !== xy.forgot ? /* @__PURE__ */ w("p", {
|
|
12029
12049
|
className: "nm-login__notice",
|
|
12030
12050
|
children: e.notice
|
|
12031
12051
|
}) : null,
|
|
12032
|
-
e.children ??
|
|
12052
|
+
e.children ?? Hy(e),
|
|
12033
12053
|
e.after,
|
|
12034
12054
|
e.children == null && e.hideSwitch !== !0 && !e.googleOnly ? /* @__PURE__ */ T("p", {
|
|
12035
12055
|
className: "nm-login__switch",
|
|
@@ -12039,7 +12059,7 @@ function Vy(e) {
|
|
|
12039
12059
|
/* @__PURE__ */ w("button", {
|
|
12040
12060
|
className: "nm-login__switch-action",
|
|
12041
12061
|
type: "button",
|
|
12042
|
-
onClick: () => e.onView(t || !n ?
|
|
12062
|
+
onClick: () => e.onView(t || !n ? xy.signIn : xy.register),
|
|
12043
12063
|
children: n ? $.registerAction : $.signInAction
|
|
12044
12064
|
})
|
|
12045
12065
|
]
|
|
@@ -12051,9 +12071,9 @@ function Vy(e) {
|
|
|
12051
12071
|
});
|
|
12052
12072
|
}
|
|
12053
12073
|
// src/ui/components/nordman-toggle/nordman-toggle.tsx
|
|
12054
|
-
var
|
|
12055
|
-
function
|
|
12056
|
-
return
|
|
12074
|
+
var Wy = N("interface-nordman-toggle");
|
|
12075
|
+
function Gy(e) {
|
|
12076
|
+
return Wy.debug("render", e.active, { items: e.items.length }), /* @__PURE__ */ w("nav", {
|
|
12057
12077
|
className: "nm-toggle",
|
|
12058
12078
|
"data-testid": e.testId,
|
|
12059
12079
|
children: e.items.map((t) => /* @__PURE__ */ w("a", {
|
|
@@ -12066,11 +12086,11 @@ function Uy(e) {
|
|
|
12066
12086
|
});
|
|
12067
12087
|
}
|
|
12068
12088
|
// src/ui/config/nm-app-panel.ts
|
|
12069
|
-
var
|
|
12089
|
+
var Ky = {
|
|
12070
12090
|
code: "code",
|
|
12071
12091
|
preview: "preview",
|
|
12072
12092
|
environment: "environment"
|
|
12073
|
-
},
|
|
12093
|
+
}, qy = {
|
|
12074
12094
|
code: "/interface/app-panel/code.svg",
|
|
12075
12095
|
play: "/interface/app-panel/play.svg",
|
|
12076
12096
|
ellipsis: "/interface/app-panel/ellipsis.svg",
|
|
@@ -12079,7 +12099,7 @@ var Wy = {
|
|
|
12079
12099
|
network: "/interface/app-panel/network.svg",
|
|
12080
12100
|
message: "/interface/app-panel/message.svg",
|
|
12081
12101
|
copy: "/interface/app-panel/copy.svg"
|
|
12082
|
-
},
|
|
12102
|
+
}, Jy = {
|
|
12083
12103
|
root: "nm-app-panel",
|
|
12084
12104
|
body: "nm-app-panel__body",
|
|
12085
12105
|
canvas: "nm-app-panel__canvas",
|
|
@@ -12094,10 +12114,10 @@ var Wy = {
|
|
|
12094
12114
|
blocked: "nm-app-panel__blocked",
|
|
12095
12115
|
blockedTitle: "nm-app-panel__blocked-title",
|
|
12096
12116
|
blockedBody: "nm-app-panel__blocked-body"
|
|
12097
|
-
},
|
|
12117
|
+
}, Yy = {
|
|
12098
12118
|
root: "nm-logs-panel",
|
|
12099
12119
|
body: "nm-logs-panel__body"
|
|
12100
|
-
},
|
|
12120
|
+
}, Xy = {
|
|
12101
12121
|
dark: {
|
|
12102
12122
|
canvas: "#000000",
|
|
12103
12123
|
fg: "#ededed",
|
|
@@ -12122,15 +12142,15 @@ var Wy = {
|
|
|
12122
12142
|
raised: "#fafafa",
|
|
12123
12143
|
inset: "#f2f2f2"
|
|
12124
12144
|
}
|
|
12125
|
-
},
|
|
12145
|
+
}, Zy = "nordman-appearance-v1", Qy = "nordman-appearance-applied", $y = [
|
|
12126
12146
|
"system",
|
|
12127
12147
|
"light",
|
|
12128
12148
|
"dark"
|
|
12129
|
-
],
|
|
12149
|
+
], eb = {
|
|
12130
12150
|
min: 12,
|
|
12131
12151
|
max: 16,
|
|
12132
12152
|
default: 14
|
|
12133
|
-
},
|
|
12153
|
+
}, tb = [
|
|
12134
12154
|
{
|
|
12135
12155
|
id: "100",
|
|
12136
12156
|
label: "Thin"
|
|
@@ -12167,27 +12187,27 @@ var Wy = {
|
|
|
12167
12187
|
id: "900",
|
|
12168
12188
|
label: "Black"
|
|
12169
12189
|
}
|
|
12170
|
-
],
|
|
12190
|
+
], nb = {
|
|
12171
12191
|
min: 100,
|
|
12172
12192
|
max: 900,
|
|
12173
12193
|
default: 400
|
|
12174
|
-
},
|
|
12194
|
+
}, rb = {
|
|
12175
12195
|
min: 14,
|
|
12176
12196
|
max: 24,
|
|
12177
12197
|
default: 18
|
|
12178
|
-
},
|
|
12198
|
+
}, ib = {
|
|
12179
12199
|
min: 50,
|
|
12180
12200
|
max: 150,
|
|
12181
12201
|
default: 100
|
|
12182
|
-
},
|
|
12202
|
+
}, ab = {
|
|
12183
12203
|
min: 75,
|
|
12184
12204
|
max: 125,
|
|
12185
12205
|
default: 100
|
|
12186
|
-
},
|
|
12206
|
+
}, ob = {
|
|
12187
12207
|
min: 0,
|
|
12188
12208
|
max: 100,
|
|
12189
12209
|
default: 0
|
|
12190
|
-
},
|
|
12210
|
+
}, sb = [
|
|
12191
12211
|
"default",
|
|
12192
12212
|
"blue",
|
|
12193
12213
|
"green",
|
|
@@ -12197,18 +12217,18 @@ var Wy = {
|
|
|
12197
12217
|
"purple",
|
|
12198
12218
|
"white",
|
|
12199
12219
|
"custom"
|
|
12200
|
-
],
|
|
12220
|
+
], cb = [
|
|
12201
12221
|
{
|
|
12202
12222
|
id: "nordman",
|
|
12203
12223
|
label: "Nordman",
|
|
12204
12224
|
swatch: "#D2BB9C",
|
|
12205
12225
|
dark: {
|
|
12206
|
-
canvas:
|
|
12207
|
-
foreground:
|
|
12226
|
+
canvas: Xy.dark.canvas,
|
|
12227
|
+
foreground: Xy.dark.fg
|
|
12208
12228
|
},
|
|
12209
12229
|
light: {
|
|
12210
|
-
canvas:
|
|
12211
|
-
foreground:
|
|
12230
|
+
canvas: Xy.light.canvas,
|
|
12231
|
+
foreground: Xy.light.fg
|
|
12212
12232
|
}
|
|
12213
12233
|
},
|
|
12214
12234
|
{
|
|
@@ -12450,15 +12470,15 @@ var Wy = {
|
|
|
12450
12470
|
label: "Custom",
|
|
12451
12471
|
swatch: "#D2BB9C",
|
|
12452
12472
|
dark: {
|
|
12453
|
-
canvas:
|
|
12454
|
-
foreground:
|
|
12473
|
+
canvas: Xy.dark.canvas,
|
|
12474
|
+
foreground: Xy.dark.fg
|
|
12455
12475
|
},
|
|
12456
12476
|
light: {
|
|
12457
|
-
canvas:
|
|
12458
|
-
foreground:
|
|
12477
|
+
canvas: Xy.light.canvas,
|
|
12478
|
+
foreground: Xy.light.fg
|
|
12459
12479
|
}
|
|
12460
12480
|
}
|
|
12461
|
-
],
|
|
12481
|
+
], lb = {
|
|
12462
12482
|
blue: "#58A6FF",
|
|
12463
12483
|
green: "#3DDC84",
|
|
12464
12484
|
yellow: "#E6B450",
|
|
@@ -12466,53 +12486,53 @@ var Wy = {
|
|
|
12466
12486
|
orange: "#FF9F43",
|
|
12467
12487
|
purple: "#A371F7",
|
|
12468
12488
|
white: "#FFFFFF"
|
|
12469
|
-
},
|
|
12489
|
+
}, ub = {
|
|
12470
12490
|
mode: "system",
|
|
12471
12491
|
themePresetId: "nordman",
|
|
12472
12492
|
accentPreset: "default",
|
|
12473
12493
|
customAccentHex: "#D2BB9C",
|
|
12474
|
-
backgroundHex:
|
|
12475
|
-
foregroundHex:
|
|
12476
|
-
uiFontSizePx:
|
|
12477
|
-
uiFontWeight:
|
|
12478
|
-
uiIconSizePx:
|
|
12479
|
-
uiRadiusPercent:
|
|
12480
|
-
uiSpacePercent:
|
|
12481
|
-
contrast:
|
|
12482
|
-
},
|
|
12483
|
-
function
|
|
12484
|
-
return
|
|
12485
|
-
}
|
|
12486
|
-
function
|
|
12487
|
-
return
|
|
12494
|
+
backgroundHex: Xy.dark.canvas,
|
|
12495
|
+
foregroundHex: Xy.dark.fg,
|
|
12496
|
+
uiFontSizePx: eb.default,
|
|
12497
|
+
uiFontWeight: nb.default,
|
|
12498
|
+
uiIconSizePx: rb.default,
|
|
12499
|
+
uiRadiusPercent: ib.default,
|
|
12500
|
+
uiSpacePercent: ab.default,
|
|
12501
|
+
contrast: ob.default
|
|
12502
|
+
}, db = /* @__PURE__ */ "--nm-canvas.--nm-fg.--nm-fg-muted.--nm-fg-subtle.--nm-stroke.--nm-line.--nm-line-strong.--nm-divider.--control-fs.--nm-panel.--nm-raised.--nm-inset.--nm-mark-primary.--nm-mark-secondary.--nm-mark-tertiary.--nm-mark-surface.--nm-canvas-rgb.--nm-fg-rgb.--nm-fg-muted-rgb.--nm-fg-subtle-rgb.--nm-stroke-rgb.--nm-line-rgb.--nm-panel-rgb.--nm-raised-rgb.--nm-inset-rgb.--sand.--nm-accent.--nm-accent-rgb.--orb-ui-cloud-appearance-deepColor.--orb-ui-cloud-appearance-upperColor.--orb-ui-cloud-appearance-lowerColor.--orb-ui-cloud-appearance-highlightColor.--orb-ui-cloud-appearance-launchColor.--orb-ui-cloud-appearance-spinnerColor.--nm-weight-light.--nm-weight-regular.--nm-weight-medium.--nm-weight-semibold.--nm-weight-bold.--nm-type-body.--nm-type-ui.--nm-type-ui-sm.--nm-type-lede.--nm-type-section.--nm-type-card.--nm-type-caption.--markdown-font-size.--font-size-base.--font-size-sm.--nm-icon-button.--nm-icon-sm.--nm-rail-icon.--nm-ui-chip-min-height.--nm-radius-scale.--nm-space-scale.--text-primary.--text-secondary.--text-tertiary.--text-muted.--presentation.--surface-primary.--surface-chat.--surface-secondary.--surface-secondary-alt.--surface-tertiary.--surface-primary-alt.--surface-dialog.--surface-hover.--surface-active.--border-light.--border-medium.--link.--link-hover.--link-visited.--accent-primary.--ring-primary.--brand-purple.--nordman-accent".split(".");
|
|
12503
|
+
function fb(e) {
|
|
12504
|
+
return cb.find((t) => t.id === e);
|
|
12505
|
+
}
|
|
12506
|
+
function pb() {
|
|
12507
|
+
return ub.themePresetId;
|
|
12488
12508
|
}
|
|
12489
12509
|
// src/ui/config/nm-fade.ts
|
|
12490
|
-
var
|
|
12510
|
+
var mb = [
|
|
12491
12511
|
.22,
|
|
12492
12512
|
1,
|
|
12493
12513
|
.36,
|
|
12494
12514
|
1
|
|
12495
|
-
],
|
|
12496
|
-
function
|
|
12497
|
-
return
|
|
12515
|
+
], hb = .25;
|
|
12516
|
+
function gb() {
|
|
12517
|
+
return _b();
|
|
12498
12518
|
}
|
|
12499
|
-
function
|
|
12500
|
-
if (typeof document > "u") return
|
|
12519
|
+
function _b() {
|
|
12520
|
+
if (typeof document > "u") return hb;
|
|
12501
12521
|
let e = getComputedStyle(document.documentElement).getPropertyValue("--reveal").trim();
|
|
12502
|
-
return e.endsWith("ms") ? parseFloat(e) / 1e3 : e.endsWith("s") ? parseFloat(e) :
|
|
12522
|
+
return e.endsWith("ms") ? parseFloat(e) / 1e3 : e.endsWith("s") ? parseFloat(e) : hb;
|
|
12503
12523
|
}
|
|
12504
|
-
function
|
|
12524
|
+
function vb(e) {
|
|
12505
12525
|
return e ? { duration: 0 } : {
|
|
12506
|
-
duration:
|
|
12507
|
-
ease: [...
|
|
12526
|
+
duration: _b(),
|
|
12527
|
+
ease: [...mb]
|
|
12508
12528
|
};
|
|
12509
12529
|
}
|
|
12510
|
-
function
|
|
12530
|
+
function yb() {
|
|
12511
12531
|
let e = st();
|
|
12512
|
-
return tt(() =>
|
|
12532
|
+
return tt(() => vb(e === !0), [e]);
|
|
12513
12533
|
}
|
|
12514
12534
|
// src/ui/config/nm-header-icons.ts
|
|
12515
|
-
var
|
|
12535
|
+
var bb = [
|
|
12516
12536
|
"chat",
|
|
12517
12537
|
"bot",
|
|
12518
12538
|
"app",
|
|
@@ -12524,7 +12544,7 @@ var vb = [
|
|
|
12524
12544
|
"play",
|
|
12525
12545
|
"schedule",
|
|
12526
12546
|
"search"
|
|
12527
|
-
],
|
|
12547
|
+
], xb = {
|
|
12528
12548
|
chat: "/interface/header/chat.svg",
|
|
12529
12549
|
bot: "/interface/header/bot.svg",
|
|
12530
12550
|
app: "/interface/header/app.svg",
|
|
@@ -12536,16 +12556,16 @@ var vb = [
|
|
|
12536
12556
|
play: "/interface/header/play.svg",
|
|
12537
12557
|
schedule: "/interface/header/schedule.svg",
|
|
12538
12558
|
search: "/interface/header/search.svg"
|
|
12539
|
-
},
|
|
12559
|
+
}, Sb = { root: "nm-icon-border" }, Cb = "--nm-radius-scale", wb = {
|
|
12540
12560
|
sm: 4,
|
|
12541
12561
|
md: 8,
|
|
12542
12562
|
lg: 12
|
|
12543
|
-
},
|
|
12563
|
+
}, Tb = {
|
|
12544
12564
|
row: "--nm-space-4",
|
|
12545
12565
|
menu: "--nm-space-8",
|
|
12546
12566
|
field: "--nm-space-12",
|
|
12547
12567
|
composer: "--nm-space-24"
|
|
12548
|
-
},
|
|
12568
|
+
}, Eb = {
|
|
12549
12569
|
sm: "--nm-radius-sm",
|
|
12550
12570
|
md: "--nm-radius-md",
|
|
12551
12571
|
lg: "--nm-radius-lg",
|
|
@@ -12554,17 +12574,17 @@ var vb = [
|
|
|
12554
12574
|
field: "--nm-field-radius",
|
|
12555
12575
|
menu: "--nm-menu-radius",
|
|
12556
12576
|
row: "--nm-row-radius"
|
|
12557
|
-
},
|
|
12577
|
+
}, Db = {
|
|
12558
12578
|
control: "calc(var(--nm-icon-control) / 2 * var(--nm-radius-scale))",
|
|
12559
12579
|
composer: "var(--nm-radius-lg)",
|
|
12560
12580
|
field: "var(--nm-control-r)",
|
|
12561
12581
|
menu: "var(--nm-radius-lg)",
|
|
12562
12582
|
row: "var(--nm-control-r)"
|
|
12563
|
-
},
|
|
12583
|
+
}, Ob = {
|
|
12564
12584
|
sm: "calc(4px * var(--nm-radius-scale))",
|
|
12565
12585
|
md: "calc(8px * var(--nm-radius-scale))",
|
|
12566
12586
|
lg: "calc(12px * var(--nm-radius-scale))"
|
|
12567
|
-
},
|
|
12587
|
+
}, kb = {
|
|
12568
12588
|
pad: "--nm-menu-pad",
|
|
12569
12589
|
menuRadius: "--nm-control-menu-radius",
|
|
12570
12590
|
optionRadius: "--nm-control-option-radius",
|
|
@@ -12574,7 +12594,7 @@ var vb = [
|
|
|
12574
12594
|
panelItemRadius: "--nm-panel-item-radius",
|
|
12575
12595
|
rowInline: "--nm-row-inline",
|
|
12576
12596
|
rowInlineEnd: "--nm-row-inline-end"
|
|
12577
|
-
},
|
|
12597
|
+
}, Ab = [
|
|
12578
12598
|
"plus",
|
|
12579
12599
|
"folder",
|
|
12580
12600
|
"chats",
|
|
@@ -12585,7 +12605,7 @@ var vb = [
|
|
|
12585
12605
|
"settings",
|
|
12586
12606
|
"search",
|
|
12587
12607
|
"plusSm"
|
|
12588
|
-
],
|
|
12608
|
+
], jb = {
|
|
12589
12609
|
plus: "/interface/rail/plus.svg",
|
|
12590
12610
|
folder: "/interface/rail/folder.svg",
|
|
12591
12611
|
chats: "/interface/rail/chats.svg",
|
|
@@ -12596,42 +12616,42 @@ var vb = [
|
|
|
12596
12616
|
settings: "/interface/rail/settings.svg",
|
|
12597
12617
|
search: "/interface/rail/search.svg",
|
|
12598
12618
|
plusSm: "/interface/rail/plus-sm.svg"
|
|
12599
|
-
},
|
|
12600
|
-
function
|
|
12601
|
-
return
|
|
12619
|
+
}, Mb = 750, Nb = 7e3, Pb = 500, Fb = /^#([0-9a-fA-F]{6})$/;
|
|
12620
|
+
function Ib(e) {
|
|
12621
|
+
return Fb.test(e);
|
|
12602
12622
|
}
|
|
12603
|
-
function
|
|
12623
|
+
function Lb(e, t) {
|
|
12604
12624
|
let n = e.trim();
|
|
12605
12625
|
if (!n.startsWith("#")) {
|
|
12606
12626
|
let e = `#${n}`;
|
|
12607
|
-
if (
|
|
12627
|
+
if (Ib(e)) return e.toUpperCase();
|
|
12608
12628
|
}
|
|
12609
|
-
return
|
|
12629
|
+
return Ib(n) ? n.toUpperCase() : t.toUpperCase();
|
|
12610
12630
|
}
|
|
12611
|
-
function
|
|
12612
|
-
let t =
|
|
12631
|
+
function Rb(e) {
|
|
12632
|
+
let t = Lb(e, "#000000").slice(1);
|
|
12613
12633
|
return `${Number.parseInt(t.slice(0, 2), 16)} ${Number.parseInt(t.slice(2, 4), 16)} ${Number.parseInt(t.slice(4, 6), 16)}`;
|
|
12614
12634
|
}
|
|
12615
|
-
function
|
|
12635
|
+
function zb(e) {
|
|
12616
12636
|
return Math.min(255, Math.max(0, Math.round(e)));
|
|
12617
12637
|
}
|
|
12618
|
-
function
|
|
12619
|
-
let r =
|
|
12638
|
+
function Bb(e, t, n) {
|
|
12639
|
+
let r = Lb(e, "#000000").slice(1), i = Lb(t, "#000000").slice(1), a = Math.min(1, Math.max(0, n)), o = (e, t) => Number.parseInt(e.slice(t, t + 2), 16), s = o(r, 0), c = o(r, 2), l = o(r, 4), u = o(i, 0), d = o(i, 2), f = o(i, 4), p = zb(s + (u - s) * a), m = zb(c + (d - c) * a), h = zb(l + (f - l) * a);
|
|
12620
12640
|
return `#${p.toString(16).padStart(2, "0")}${m.toString(16).padStart(2, "0")}${h.toString(16).padStart(2, "0")}`.toUpperCase();
|
|
12621
12641
|
}
|
|
12622
|
-
function
|
|
12623
|
-
let [t, n, r] =
|
|
12642
|
+
function Vb(e) {
|
|
12643
|
+
let [t, n, r] = Rb(e).split(" ").map((e) => {
|
|
12624
12644
|
let t = Number(e) / 255;
|
|
12625
12645
|
return t <= .03928 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
|
|
12626
12646
|
});
|
|
12627
12647
|
return .2126 * t + .7152 * n + .0722 * r;
|
|
12628
12648
|
}
|
|
12629
|
-
function
|
|
12630
|
-
let n =
|
|
12649
|
+
function Hb(e, t) {
|
|
12650
|
+
let n = Vb(e), r = Vb(t);
|
|
12631
12651
|
return (Math.max(n, r) + .05) / (Math.min(n, r) + .05);
|
|
12632
12652
|
}
|
|
12633
|
-
function
|
|
12634
|
-
let [t, n, r] =
|
|
12653
|
+
function Ub(e) {
|
|
12654
|
+
let [t, n, r] = Rb(e).split(" ").map((e) => Number(e) / 255), i = Math.max(t, n, r), a = Math.min(t, n, r), o = i - a, s = (i + a) / 2;
|
|
12635
12655
|
if (o === 0) return {
|
|
12636
12656
|
hue: 0,
|
|
12637
12657
|
saturation: 0,
|
|
@@ -12644,10 +12664,10 @@ function Vb(e) {
|
|
|
12644
12664
|
lightness: s
|
|
12645
12665
|
};
|
|
12646
12666
|
}
|
|
12647
|
-
function
|
|
12667
|
+
function Wb(e, t, n) {
|
|
12648
12668
|
let r = (1 - Math.abs(2 * n - 1)) * t, i = (t) => {
|
|
12649
12669
|
let i = (t + e / 30) % 12;
|
|
12650
|
-
return
|
|
12670
|
+
return zb((n - r / 2 * Math.max(-1, Math.min(i - 3, 9 - i, 1))) * 255);
|
|
12651
12671
|
};
|
|
12652
12672
|
return `#${[
|
|
12653
12673
|
i(0),
|
|
@@ -12656,110 +12676,110 @@ function Hb(e, t, n) {
|
|
|
12656
12676
|
].map((e) => e.toString(16).padStart(2, "0")).join("")}`.toUpperCase();
|
|
12657
12677
|
}
|
|
12658
12678
|
// src/ui/lib/appearance/appearanceState.ts
|
|
12659
|
-
function
|
|
12660
|
-
return typeof e == "string" &&
|
|
12679
|
+
function Gb(e) {
|
|
12680
|
+
return typeof e == "string" && $y.includes(e);
|
|
12661
12681
|
}
|
|
12662
|
-
function
|
|
12663
|
-
return typeof e == "string" &&
|
|
12682
|
+
function Kb(e) {
|
|
12683
|
+
return typeof e == "string" && sb.includes(e);
|
|
12664
12684
|
}
|
|
12665
|
-
function
|
|
12685
|
+
function qb(e, t, n, r) {
|
|
12666
12686
|
let i = typeof e == "number" ? e : Number(e);
|
|
12667
12687
|
return Number.isFinite(i) ? Math.min(n, Math.max(t, Math.round(i))) : r;
|
|
12668
12688
|
}
|
|
12669
|
-
function
|
|
12689
|
+
function Jb() {
|
|
12670
12690
|
return typeof window > "u" || typeof window.matchMedia != "function" || window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
12671
12691
|
}
|
|
12672
|
-
function
|
|
12692
|
+
function Yb(e, t = Jb()) {
|
|
12673
12693
|
return e === "light" ? "light" : e === "dark" || t ? "dark" : "light";
|
|
12674
12694
|
}
|
|
12675
|
-
function
|
|
12676
|
-
return
|
|
12677
|
-
mode:
|
|
12678
|
-
themePresetId:
|
|
12679
|
-
accentPreset:
|
|
12680
|
-
customAccentHex:
|
|
12681
|
-
backgroundHex:
|
|
12682
|
-
foregroundHex:
|
|
12683
|
-
uiFontSizePx:
|
|
12684
|
-
uiFontWeight:
|
|
12685
|
-
uiIconSizePx:
|
|
12686
|
-
uiRadiusPercent:
|
|
12687
|
-
uiSpacePercent:
|
|
12688
|
-
contrast:
|
|
12689
|
-
});
|
|
12690
|
-
}
|
|
12691
|
-
function
|
|
12692
|
-
let n =
|
|
12695
|
+
function Xb() {
|
|
12696
|
+
return ix({
|
|
12697
|
+
mode: ub.mode,
|
|
12698
|
+
themePresetId: ub.themePresetId,
|
|
12699
|
+
accentPreset: ub.accentPreset,
|
|
12700
|
+
customAccentHex: ub.customAccentHex,
|
|
12701
|
+
backgroundHex: ub.backgroundHex,
|
|
12702
|
+
foregroundHex: ub.foregroundHex,
|
|
12703
|
+
uiFontSizePx: ub.uiFontSizePx,
|
|
12704
|
+
uiFontWeight: ub.uiFontWeight,
|
|
12705
|
+
uiIconSizePx: ub.uiIconSizePx,
|
|
12706
|
+
uiRadiusPercent: ub.uiRadiusPercent,
|
|
12707
|
+
uiSpacePercent: ub.uiSpacePercent,
|
|
12708
|
+
contrast: ob.default
|
|
12709
|
+
});
|
|
12710
|
+
}
|
|
12711
|
+
function Zb(e, t) {
|
|
12712
|
+
let n = fb(e) ?? fb(ub.themePresetId), r = t === "dark" ? n.dark : n.light;
|
|
12693
12713
|
return {
|
|
12694
12714
|
backgroundHex: r.canvas,
|
|
12695
12715
|
foregroundHex: r.foreground
|
|
12696
12716
|
};
|
|
12697
12717
|
}
|
|
12698
|
-
var
|
|
12718
|
+
var Qb = {
|
|
12699
12719
|
"#000000/#ffffff": "dark",
|
|
12700
12720
|
"#fcfaf6/#0a0a0a": "light"
|
|
12701
12721
|
};
|
|
12702
|
-
function
|
|
12703
|
-
let r =
|
|
12704
|
-
return e !==
|
|
12722
|
+
function $b(e, t, n) {
|
|
12723
|
+
let r = Qb[`${t}/${n}`.toLowerCase()];
|
|
12724
|
+
return e !== ub.themePresetId || r == null ? {
|
|
12705
12725
|
backgroundHex: t,
|
|
12706
12726
|
foregroundHex: n
|
|
12707
|
-
} :
|
|
12727
|
+
} : Zb(e, r);
|
|
12708
12728
|
}
|
|
12709
|
-
function
|
|
12710
|
-
let t =
|
|
12729
|
+
function ex(e) {
|
|
12730
|
+
let t = Xb();
|
|
12711
12731
|
if (!e || typeof e != "object") return t;
|
|
12712
|
-
let n = e, r = typeof n.themePresetId == "string" &&
|
|
12732
|
+
let n = e, r = typeof n.themePresetId == "string" && fb(n.themePresetId) ? n.themePresetId : t.themePresetId, i = $b(r, Lb(typeof n.backgroundHex == "string" ? n.backgroundHex : t.backgroundHex, t.backgroundHex), Lb(typeof n.foregroundHex == "string" ? n.foregroundHex : t.foregroundHex, t.foregroundHex));
|
|
12713
12733
|
return {
|
|
12714
|
-
mode:
|
|
12734
|
+
mode: Gb(n.mode) ? n.mode : t.mode,
|
|
12715
12735
|
themePresetId: r,
|
|
12716
|
-
accentPreset:
|
|
12717
|
-
customAccentHex:
|
|
12736
|
+
accentPreset: Kb(n.accentPreset) ? n.accentPreset : t.accentPreset,
|
|
12737
|
+
customAccentHex: Lb(typeof n.customAccentHex == "string" ? n.customAccentHex : t.customAccentHex, t.customAccentHex),
|
|
12718
12738
|
...i,
|
|
12719
|
-
uiFontSizePx:
|
|
12720
|
-
uiFontWeight: Math.round(
|
|
12721
|
-
uiIconSizePx:
|
|
12722
|
-
uiRadiusPercent:
|
|
12723
|
-
uiSpacePercent:
|
|
12724
|
-
contrast:
|
|
12739
|
+
uiFontSizePx: qb(n.uiFontSizePx, eb.min, eb.max, t.uiFontSizePx),
|
|
12740
|
+
uiFontWeight: Math.round(qb(n.uiFontWeight, nb.min, nb.max, t.uiFontWeight) / 100) * 100,
|
|
12741
|
+
uiIconSizePx: qb(n.uiIconSizePx, rb.min, rb.max, t.uiIconSizePx),
|
|
12742
|
+
uiRadiusPercent: qb(n.uiRadiusPercent, ib.min, ib.max, t.uiRadiusPercent),
|
|
12743
|
+
uiSpacePercent: qb(n.uiSpacePercent, ab.min, ab.max, t.uiSpacePercent),
|
|
12744
|
+
contrast: qb(n.contrast, ob.min, ob.max, t.contrast)
|
|
12725
12745
|
};
|
|
12726
12746
|
}
|
|
12727
|
-
function
|
|
12747
|
+
function tx() {
|
|
12728
12748
|
if (typeof window > "u") return null;
|
|
12729
12749
|
try {
|
|
12730
|
-
let e = window.localStorage.getItem(
|
|
12731
|
-
return e ?
|
|
12750
|
+
let e = window.localStorage.getItem(Zy);
|
|
12751
|
+
return e ? ex(JSON.parse(e)) : null;
|
|
12732
12752
|
} catch {
|
|
12733
12753
|
return null;
|
|
12734
12754
|
}
|
|
12735
12755
|
}
|
|
12736
|
-
function
|
|
12737
|
-
typeof window < "u" && window.localStorage.setItem(
|
|
12756
|
+
function nx(e) {
|
|
12757
|
+
typeof window < "u" && window.localStorage.setItem(Zy, JSON.stringify(e));
|
|
12738
12758
|
}
|
|
12739
|
-
function
|
|
12759
|
+
function rx(e, t) {
|
|
12740
12760
|
if (e.themePresetId === "custom") return e;
|
|
12741
|
-
let { backgroundHex: n, foregroundHex: r } =
|
|
12761
|
+
let { backgroundHex: n, foregroundHex: r } = Zb(e.themePresetId, t), i = fb(e.themePresetId), a = {
|
|
12742
12762
|
...e,
|
|
12743
|
-
backgroundHex:
|
|
12744
|
-
foregroundHex:
|
|
12763
|
+
backgroundHex: Lb(n, e.backgroundHex),
|
|
12764
|
+
foregroundHex: Lb(r, e.foregroundHex)
|
|
12745
12765
|
};
|
|
12746
|
-
return a.accentPreset === "default" && i && (a.customAccentHex =
|
|
12766
|
+
return a.accentPreset === "default" && i && (a.customAccentHex = Lb(i.swatch, a.customAccentHex)), a;
|
|
12747
12767
|
}
|
|
12748
|
-
function
|
|
12749
|
-
return
|
|
12768
|
+
function ix(e, t = Jb()) {
|
|
12769
|
+
return rx(e, Yb(e.mode, t));
|
|
12750
12770
|
}
|
|
12751
12771
|
// src/ui/lib/appearance/cloudOrbAppearance.ts
|
|
12752
|
-
function
|
|
12772
|
+
function ax(e, t, n) {
|
|
12753
12773
|
return {
|
|
12754
|
-
deepColor:
|
|
12755
|
-
upperColor:
|
|
12756
|
-
lowerColor:
|
|
12757
|
-
highlightColor:
|
|
12758
|
-
launchColor:
|
|
12774
|
+
deepColor: Bb(e, t, .55),
|
|
12775
|
+
upperColor: Bb(e, n, .28),
|
|
12776
|
+
lowerColor: Bb(e, t, .12),
|
|
12777
|
+
highlightColor: Bb(e, n, .62),
|
|
12778
|
+
launchColor: Bb(e, t, .38),
|
|
12759
12779
|
spinnerColor: e
|
|
12760
12780
|
};
|
|
12761
12781
|
}
|
|
12762
|
-
function
|
|
12782
|
+
function ox(e) {
|
|
12763
12783
|
return {
|
|
12764
12784
|
"--orb-ui-cloud-appearance-deepColor": e.deepColor,
|
|
12765
12785
|
"--orb-ui-cloud-appearance-upperColor": e.upperColor,
|
|
@@ -12769,60 +12789,60 @@ function ix(e) {
|
|
|
12769
12789
|
"--orb-ui-cloud-appearance-spinnerColor": e.spinnerColor
|
|
12770
12790
|
};
|
|
12771
12791
|
}
|
|
12772
|
-
function
|
|
12773
|
-
return
|
|
12792
|
+
function sx(e, t, n) {
|
|
12793
|
+
return ox(ax(e, t, n));
|
|
12774
12794
|
}
|
|
12775
12795
|
// src/ui/lib/appearance/markTokens.ts
|
|
12776
|
-
var
|
|
12796
|
+
var cx = 4.6, lx = .09, ux = 120, dx = {
|
|
12777
12797
|
min: .4,
|
|
12778
12798
|
max: .7
|
|
12779
|
-
},
|
|
12780
|
-
function
|
|
12781
|
-
let i = n[0] ?? "#000000", a =
|
|
12782
|
-
for (let r = a ? .68 : .42; r >= 0 && r <= 1; r += o *
|
|
12783
|
-
let i =
|
|
12784
|
-
if (n.every((e) =>
|
|
12799
|
+
}, fx = .02;
|
|
12800
|
+
function px(e, t, n, r) {
|
|
12801
|
+
let i = n[0] ?? "#000000", a = Hb(i, "#FFFFFF") > Hb(i, "#000000"), o = a ? 1 : -1;
|
|
12802
|
+
for (let r = a ? .68 : .42; r >= 0 && r <= 1; r += o * fx) {
|
|
12803
|
+
let i = Wb(e, t, r);
|
|
12804
|
+
if (n.every((e) => Hb(i, e) >= cx)) return i;
|
|
12785
12805
|
}
|
|
12786
12806
|
return r;
|
|
12787
12807
|
}
|
|
12788
|
-
function
|
|
12789
|
-
let r =
|
|
12808
|
+
function mx(e, t, n) {
|
|
12809
|
+
let r = Bb(t, n, lx), { hue: i, saturation: a } = Ub(e), o = Math.min(dx.max, Math.max(dx.min, a)), s = (e) => px((i + e) % 360, o, [t, r], n);
|
|
12790
12810
|
return {
|
|
12791
12811
|
"--nm-mark-primary": s(0),
|
|
12792
|
-
"--nm-mark-secondary": s(
|
|
12812
|
+
"--nm-mark-secondary": s(ux),
|
|
12793
12813
|
"--nm-mark-tertiary": s(240),
|
|
12794
12814
|
"--nm-mark-surface": r
|
|
12795
12815
|
};
|
|
12796
12816
|
}
|
|
12797
12817
|
// src/ui/lib/appearance/deriveTokens.ts
|
|
12798
|
-
function
|
|
12799
|
-
return e.accentPreset === "custom" || e.accentPreset === "default" && e.themePresetId === "custom" ?
|
|
12818
|
+
function hx(e) {
|
|
12819
|
+
return e.accentPreset === "custom" || e.accentPreset === "default" && e.themePresetId === "custom" ? Lb(e.customAccentHex, "#D2BB9C") : e.accentPreset === "default" ? fb(e.themePresetId)?.swatch ?? cb[0].swatch : lb[e.accentPreset];
|
|
12800
12820
|
}
|
|
12801
|
-
function
|
|
12802
|
-
let n = e /
|
|
12821
|
+
function gx(e, t) {
|
|
12822
|
+
let n = e / ob.max, r = t === "dark" ? .06 : .05;
|
|
12803
12823
|
return r + n * ((t === "dark" ? .42 : .38) - r);
|
|
12804
12824
|
}
|
|
12805
|
-
function
|
|
12825
|
+
function _x(e) {
|
|
12806
12826
|
let t = `${e}px`;
|
|
12807
12827
|
return {
|
|
12808
12828
|
"--nm-icon-button": t,
|
|
12809
|
-
"--nm-icon-sm": `${Math.max(
|
|
12829
|
+
"--nm-icon-sm": `${Math.max(rb.min, e - 4)}px`,
|
|
12810
12830
|
"--nm-rail-icon": t
|
|
12811
12831
|
};
|
|
12812
12832
|
}
|
|
12813
|
-
function
|
|
12833
|
+
function vx(e, t) {
|
|
12814
12834
|
let n = t + 16;
|
|
12815
12835
|
return { "--nm-ui-chip-min-height": `${Math.max(n, e + 16)}px` };
|
|
12816
12836
|
}
|
|
12817
|
-
function
|
|
12818
|
-
let t = e /
|
|
12819
|
-
return { [
|
|
12837
|
+
function yx(e) {
|
|
12838
|
+
let t = e / ib.default;
|
|
12839
|
+
return { [Cb]: String(t) };
|
|
12820
12840
|
}
|
|
12821
|
-
function
|
|
12822
|
-
return { "--nm-space-scale": String(e /
|
|
12841
|
+
function bx(e) {
|
|
12842
|
+
return { "--nm-space-scale": String(e / ab.default) };
|
|
12823
12843
|
}
|
|
12824
|
-
function
|
|
12825
|
-
let t = (t) => String(Math.min(
|
|
12844
|
+
function xx(e) {
|
|
12845
|
+
let t = (t) => String(Math.min(nb.max, Math.max(nb.min, e + t)));
|
|
12826
12846
|
return {
|
|
12827
12847
|
"--nm-weight-light": t(-100),
|
|
12828
12848
|
"--nm-weight-regular": t(0),
|
|
@@ -12831,8 +12851,8 @@ function yx(e) {
|
|
|
12831
12851
|
"--nm-weight-bold": t(300)
|
|
12832
12852
|
};
|
|
12833
12853
|
}
|
|
12834
|
-
function
|
|
12835
|
-
let t = e /
|
|
12854
|
+
function Sx(e) {
|
|
12855
|
+
let t = e / eb.default, n = `${e}px`, r = `${Math.max(eb.min, e - 2)}px`;
|
|
12836
12856
|
return {
|
|
12837
12857
|
"--nm-type-body": n,
|
|
12838
12858
|
"--nm-type-ui": n,
|
|
@@ -12847,8 +12867,8 @@ function bx(e) {
|
|
|
12847
12867
|
"--font-size-sm": r
|
|
12848
12868
|
};
|
|
12849
12869
|
}
|
|
12850
|
-
function
|
|
12851
|
-
let n =
|
|
12870
|
+
function Cx(e, t) {
|
|
12871
|
+
let n = Rb(t);
|
|
12852
12872
|
return {
|
|
12853
12873
|
"--text-primary": e["--nm-fg-rgb"],
|
|
12854
12874
|
"--text-secondary": e["--nm-fg-subtle-rgb"],
|
|
@@ -12875,12 +12895,12 @@ function xx(e, t) {
|
|
|
12875
12895
|
"--nordman-accent": n
|
|
12876
12896
|
};
|
|
12877
12897
|
}
|
|
12878
|
-
function
|
|
12879
|
-
let i =
|
|
12880
|
-
return e.themePresetId ===
|
|
12898
|
+
function wx(e, t, n, r) {
|
|
12899
|
+
let i = Xy[t];
|
|
12900
|
+
return e.themePresetId === cb[0].id && e.contrast === ob.default && n.toLowerCase() === i.canvas && r.toLowerCase() === i.fg;
|
|
12881
12901
|
}
|
|
12882
|
-
function
|
|
12883
|
-
let n =
|
|
12902
|
+
function Tx(e, t) {
|
|
12903
|
+
let n = Lb(e.backgroundHex, "#000000"), r = Lb(e.foregroundHex, "#ffffff"), i = hx(e), a = gx(e.contrast, t), o = wx(e, t, n, r) ? Xy[t] : null, s = o?.panel ?? Bb(n, r, a), c = o?.raised ?? Bb(n, r, a * .72), l = o?.inset ?? Bb(n, r, a * .85), u = o?.line ?? Bb(n, r, Math.min(.55, a + .12)), d = o?.lineStrong ?? Bb(n, r, Math.min(.6, a + .17)), f = o?.stroke ?? Bb(n, r, Math.min(.65, a + .22)), p = o?.muted ?? Bb(r, n, .22), m = o?.subtle ?? Bb(r, n, .38), h = {
|
|
12884
12904
|
"--nm-canvas": n,
|
|
12885
12905
|
"--nm-fg": r,
|
|
12886
12906
|
"--nm-fg-muted": p,
|
|
@@ -12888,61 +12908,61 @@ function Cx(e, t) {
|
|
|
12888
12908
|
"--nm-stroke": f,
|
|
12889
12909
|
"--nm-line": u,
|
|
12890
12910
|
"--nm-line-strong": d,
|
|
12891
|
-
"--nm-divider":
|
|
12911
|
+
"--nm-divider": Bb(n, r, e.contrast / ob.max * .5),
|
|
12892
12912
|
"--nm-panel": s,
|
|
12893
12913
|
"--nm-raised": c,
|
|
12894
12914
|
"--nm-inset": l,
|
|
12895
|
-
"--nm-canvas-rgb":
|
|
12896
|
-
"--nm-fg-rgb":
|
|
12897
|
-
"--nm-fg-muted-rgb":
|
|
12898
|
-
"--nm-fg-subtle-rgb":
|
|
12899
|
-
"--nm-stroke-rgb":
|
|
12900
|
-
"--nm-line-rgb":
|
|
12901
|
-
"--nm-panel-rgb":
|
|
12902
|
-
"--nm-raised-rgb":
|
|
12903
|
-
"--nm-inset-rgb":
|
|
12915
|
+
"--nm-canvas-rgb": Rb(n),
|
|
12916
|
+
"--nm-fg-rgb": Rb(r),
|
|
12917
|
+
"--nm-fg-muted-rgb": Rb(p),
|
|
12918
|
+
"--nm-fg-subtle-rgb": Rb(m),
|
|
12919
|
+
"--nm-stroke-rgb": Rb(f),
|
|
12920
|
+
"--nm-line-rgb": Rb(u),
|
|
12921
|
+
"--nm-panel-rgb": Rb(s),
|
|
12922
|
+
"--nm-raised-rgb": Rb(c),
|
|
12923
|
+
"--nm-inset-rgb": Rb(l),
|
|
12904
12924
|
"--sand": i,
|
|
12905
12925
|
"--nm-accent": i,
|
|
12906
|
-
"--nm-accent-rgb":
|
|
12907
|
-
...
|
|
12908
|
-
...
|
|
12909
|
-
...
|
|
12910
|
-
...
|
|
12911
|
-
...
|
|
12912
|
-
...
|
|
12913
|
-
...
|
|
12914
|
-
...
|
|
12926
|
+
"--nm-accent-rgb": Rb(i),
|
|
12927
|
+
...sx(i, n, r),
|
|
12928
|
+
...mx(i, n, r),
|
|
12929
|
+
...Sx(e.uiFontSizePx),
|
|
12930
|
+
...xx(e.uiFontWeight),
|
|
12931
|
+
..._x(e.uiIconSizePx),
|
|
12932
|
+
...vx(e.uiFontSizePx, e.uiIconSizePx),
|
|
12933
|
+
...yx(e.uiRadiusPercent),
|
|
12934
|
+
...bx(e.uiSpacePercent)
|
|
12915
12935
|
};
|
|
12916
12936
|
return {
|
|
12917
12937
|
...h,
|
|
12918
|
-
...
|
|
12938
|
+
...Cx(h, i)
|
|
12919
12939
|
};
|
|
12920
12940
|
}
|
|
12921
|
-
function
|
|
12941
|
+
function Ex(e) {
|
|
12922
12942
|
return e;
|
|
12923
12943
|
}
|
|
12924
12944
|
// src/ui/lib/appearance/applyAppearance.ts
|
|
12925
|
-
var
|
|
12926
|
-
function
|
|
12945
|
+
var Dx = N("interface-appearance-apply");
|
|
12946
|
+
function Ox() {
|
|
12927
12947
|
return typeof window > "u" || typeof window.matchMedia != "function" || window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
12928
12948
|
}
|
|
12929
|
-
function
|
|
12930
|
-
|
|
12949
|
+
function kx(e = document.documentElement) {
|
|
12950
|
+
db.forEach((t) => {
|
|
12931
12951
|
e.style.removeProperty(t);
|
|
12932
12952
|
});
|
|
12933
12953
|
}
|
|
12934
|
-
function
|
|
12935
|
-
let n =
|
|
12936
|
-
return
|
|
12954
|
+
function Ax(e, t = document.documentElement) {
|
|
12955
|
+
let n = Yb(e.mode, Ox()), r = Tx(e, n);
|
|
12956
|
+
return Dx.debug("apply", "appearance", {
|
|
12937
12957
|
mode: e.mode,
|
|
12938
12958
|
scheme: n,
|
|
12939
12959
|
theme: e.themePresetId
|
|
12940
12960
|
}), Object.entries(r).forEach(([e, n]) => {
|
|
12941
12961
|
t.style.setProperty(e, n);
|
|
12942
|
-
}), typeof window < "u" && window.dispatchEvent(new CustomEvent(
|
|
12962
|
+
}), typeof window < "u" && window.dispatchEvent(new CustomEvent(Qy)), { scheme: n };
|
|
12943
12963
|
}
|
|
12944
12964
|
// src/ui/lib/appearance/readLayoutMetrics.ts
|
|
12945
|
-
function
|
|
12965
|
+
function jx(e, t, n) {
|
|
12946
12966
|
let r = getComputedStyle(e).getPropertyValue(t).trim();
|
|
12947
12967
|
if (!r) return n;
|
|
12948
12968
|
if (r.endsWith("px")) {
|
|
@@ -12955,7 +12975,7 @@ function kx(e, t, n) {
|
|
|
12955
12975
|
}
|
|
12956
12976
|
return n;
|
|
12957
12977
|
}
|
|
12958
|
-
function
|
|
12959
|
-
return
|
|
12978
|
+
function Mx(e = document.documentElement) {
|
|
12979
|
+
return jx(e, "--nm-icon-control", 34) + jx(e, "--nm-space-2", 2);
|
|
12960
12980
|
}
|
|
12961
|
-
export { sb as NM_ACCENT_HEX, ab as NM_ACCENT_PRESETS, Dn as NM_AI_BADGE_TONES, I as NM_AI_CLASSES, wn as NM_AI_STATUS, Xy as NM_APPEARANCE_APPLIED_EVENT, ib as NM_APPEARANCE_CONTRAST, lb as NM_APPEARANCE_CSS_VARS, cb as NM_APPEARANCE_DEFAULTS, Zy as NM_APPEARANCE_MODES, Yy as NM_APPEARANCE_STORAGE_KEY, Ky as NM_APP_PANEL_CLASSES, Gy as NM_APP_PANEL_ICON_SRC, Wy as NM_APP_PANEL_TABS, wi as NM_AVATAR_SIZES, ji as NM_BAR_OVERFLOW_CLASSES, Mi as NM_BAR_OVERFLOW_TEST_IDS, Gt as NM_BUTTON_CLASSES, Wt as NM_BUTTON_SIZES, Ut as NM_BUTTON_TONES, nl as NM_CARD_SIZES, tl as NM_CARD_VARIANTS, Xt as NM_CHATBOX_ACTION_CLASS, vl as NM_CHATBOX_CLASSES, ml as NM_CHATBOX_COMPOSER_ACTION_ICONS, hl as NM_CHATBOX_DURING_RUN_MENU_ICONS, dl as NM_CHATBOX_ICON_IDS, pl as NM_CHATBOX_ICON_SRC, fl as NM_CHATBOX_INTEGRATION_ICON_PATH, gl as NM_CHATBOX_LUCIDE_MAP, yl as NM_CHATBOX_MENU_MODE, Vt as NM_CHIP_SIZES, Bt as NM_CHIP_TONES, un as NM_CODE_BLOCK_SIZES, ln as NM_CODE_BLOCK_VARIANTS, yn as NM_CODE_LANGUAGES, Dl as NM_COLLECTION_ACTIONS, K as NM_COLLECTION_CLASSES, Cl as NM_COLLECTION_FILES_REFRESH_MS, El as NM_COLLECTION_ICON_SRC, Ol as NM_COLLECTION_MEDIA_KINDS, wl as NM_COLLECTION_SCROLL_IDLE_MS, Tl as NM_COLLECTION_VIEWS, Y as NM_COMPOSER_CLASSES, vg as NM_COMPOSER_COPY, Db as NM_CONTROL_MENU_CSS_VARS, An as NM_DROPDOWN_ALIGN, L as NM_DROPDOWN_CLASSES, Mn as NM_DROPDOWN_GAP_PX, jn as NM_DROPDOWN_REVEAL, Nn as NM_DROPDOWN_SCROLL_IDLE_MS, kn as NM_DROPDOWN_TONE, On as NM_DROPDOWN_TRIGGER, q as NM_FIELD_CLASSES, Kl as NM_FIELD_KINDS, ql as NM_FIELD_LAYOUT, $y as NM_FONT_WEIGHTS, vb as NM_HEADER_ICON_IDS, yb as NM_HEADER_ICON_SRC, jt as NM_ICONS, bb as NM_ICON_BORDER_CLASSES, F as NM_ICON_BUTTON_CLASSES, Yt as NM_ICON_BUTTON_TONES, At as NM_ICON_IDS, d_ as NM_LIST_ITEM_CLASSES, qy as NM_LOGS_PANEL_CLASSES, Mt as NM_LUCIDE_FILLED_IDS, R as NM_MESSAGE_CLASSES, Dr as NM_MESSAGE_ICON_GLYPH, Er as NM_MESSAGE_ICON_IDS, Or as NM_MESSAGE_ICON_SRC, b_ as NM_MODAL_ACTION, X as NM_MODAL_CLASSES, y_ as NM_MODAL_FOOTER, x_ as NM_MODAL_SCROLL_IDLE_MS, v_ as NM_MODAL_SIZE, __ as NM_MODAL_TITLE, uv as NM_PANEL_BAR_CLASSES, lv as NM_PANEL_BAR_LAYOUT, X_ as NM_PANEL_VARIANTS, Z as NM_QUESTIONNAIRE_CLASSES, gv as NM_QUESTIONNAIRE_COPY, mv as NM_QUESTIONNAIRE_SHORTCUTS, hv as NM_QUESTIONNAIRE_VARIANTS, wb as NM_RADIUS_CSS_VARS, Tb as NM_RADIUS_FORMULAS, Eb as NM_RADIUS_PRIMITIVE_FORMULAS, Sb as NM_RADIUS_PRIMITIVE_PX, xb as NM_RADIUS_SCALE_VAR, Cb as NM_RADIUS_SEMANTIC_OFFSET_SPACE, jb as NM_RAIL_FACE_HOLD_MS, Ob as NM_RAIL_ICON_IDS, kb as NM_RAIL_ICON_SRC, Ab as NM_RAIL_SCROLL_IDLE_MS, Mb as NM_RAIL_SEARCH_DEBOUNCE_MS, av as NM_SEGMENTED_CLASSES, iv as NM_SEGMENTED_TONES, kv as NM_SIDE_PANEL_KINDS, Av as NM_SIDE_PANEL_SIZES, Jy as NM_SITE_PALETTE, Il as NM_SMALL_ICON_BUTTON_CLASSES, Fl as NM_SMALL_ICON_BUTTON_TONES, Xv as NM_TABLE_SIZES, Yv as NM_TABLE_VARIANTS, ay as NM_TABS_CLASSES, ob as NM_THEME_PRESETS, uy as NM_TOGGLE_SIZES, ly as NM_TOGGLE_VARIANTS, En as NM_TOOL_STATES, gy as NM_TOP_BAR_CLASSES, Ar as NM_TRACE_GLYPH_PATHS, kr as NM_TRACE_STATUSES, Qy as NM_UI_FONT_SIZE_PX, eb as NM_UI_FONT_WEIGHT, tb as NM_UI_ICON_SIZE_PX, nb as NM_UI_RADIUS_PERCENT, rb as NM_UI_SPACE_PERCENT, en as NORDMAN_CHROME_ICONS, $t as NORDMAN_CHROME_ICON_IDS, nn as NORDMAN_ICON_BUTTON_VARIANTS, Q as NORDMAN_LOGIN_FIELDS, by as NORDMAN_LOGIN_FORM_ID, Sy as NORDMAN_LOGIN_INTERFACE, xy as NORDMAN_LOGIN_REVEAL, yy as NORDMAN_LOGIN_VIEWS, Ti as NmAvatar, Oi as NmAvatarBadge, Di as NmAvatarFallback, ki as NmAvatarGroup, Ai as NmAvatarGroupCount, Ei as NmAvatarImage, Zr as NmBadge, Ri as NmBarOverflow, zi as NmBrandLogo, Bi as NmBreadcrumb, Ki as NmBreadcrumbEllipsis, Hi as NmBreadcrumbItem, Ui as NmBreadcrumbLink, Vi as NmBreadcrumbList, Wi as NmBreadcrumbPage, Gi as NmBreadcrumbSeparator, Yr as NmBubble, Jt as NmButton, Ji as NmButtonGroup, Yi as NmButtonGroupSeparator, Xi as NmButtonGroupText, el as NmCalendar, rl as NmCard, sl as NmCardAction, cl as NmCardContent, ol as NmCardDescription, ll as NmCardFooter, il as NmCardHeader, ul as NmCardMedia, al as NmCardTitle, ni as NmChainOfThought, Ci as NmChat, xl as NmChatbox, _l as NmChatboxIcon, Sl as NmCheckbox, ri as NmCheckpoint, Ht as NmChip, fn as NmCodeBlock, hn as NmCodeBlockActions, Sn as NmCodeBlockContent, gn as NmCodeBlockCopyButton, Cn as NmCodeBlockFooter, pn as NmCodeBlockHeader, _n as NmCodeBlockLine, mn as NmCodeBlockTitle, Pl as NmCollectionBar, Gl as NmCollectionGrid, ad as NmCollectionQuery, cd as NmCollectionRowMenu, ud as NmCollectionTable, Hl as NmCollectionTileActions, jl as NmCollectionTitle, $u as NmColorPicker, Zu as NmColorSwatch, Jl as NmCombobox, Xl as NmComboboxContent, $l as NmComboboxEmpty, eu as NmComboboxGroup, Yl as NmComboboxInput, Ql as NmComboboxItem, tu as NmComboboxLabel, Zl as NmComboboxList, nu as NmComboboxSeparator, og as NmCommand, sg as NmCommandDialog, dg as NmCommandEmpty, lg as NmCommandFilters, pg as NmCommandGroup, cg as NmCommandInput, hg as NmCommandItem, gg as NmCommandItemActions, ug as NmCommandList, fg as NmCommandLoading, mg as NmCommandSeparator, _g as NmCommandShortcut, yg as NmComposer, ii as NmConfirmation, oi as NmContext, bg as NmContextMenu, Sg as NmContextMenuContent, xg as NmContextMenuTrigger, Eg as NmDatePicker, Dg as NmDateRangePicker, jg as NmDateTimePicker, $h as NmDialog, tg as NmDialogClose, ng as NmDialogContent, ag as NmDialogDescription, rg as NmDialogHeader, ig as NmDialogTitle, eg as NmDialogTrigger, xr as NmDropdown, cr as NmDropdownBranch, Mg as NmDropdownMenu, Vg as NmDropdownMenuCheckboxItem, Pg as NmDropdownMenuContent, qg as NmDropdownMenuDot, Fg as NmDropdownMenuGroup, Lg as NmDropdownMenuItem, Ig as NmDropdownMenuLabel, Hg as NmDropdownMenuRadioGroup, Ug as NmDropdownMenuRadioItem, Wg as NmDropdownMenuSeparator, Gg as NmDropdownMenuShortcut, Rg as NmDropdownMenuSub, Bg as NmDropdownMenuSubContent, zg as NmDropdownMenuSubTrigger, Kg as NmDropdownMenuText, Ng as NmDropdownMenuTrigger, gr as NmDropdownOptions, ar as NmDropdownPanel, nd as NmField, $g as NmFieldContent, n_ as NmFieldDescription, r_ as NmFieldError, Zg as NmFieldGroup, e_ as NmFieldLabel, Xg as NmFieldLegend, i_ as NmFieldSeparator, Yg as NmFieldSet, t_ as NmFieldTitle, li as NmFileTree, Qg as NmFormField, a_ as NmGallery, o_ as NmGalleryItem, Sr as NmHoverCard, wr as NmHoverCardContent, Cr as NmHoverCardTrigger, P as NmIcon, Al as NmIconBorder, ui as NmInlineCitation, Wu as NmInput, s_ as NmInputGroup, c_ as NmInputGroupAddon, u_ as NmInputGroupInput, l_ as NmInputGroupText, Qr as NmItem, Jg as NmLabel, p_ as NmListItem, Ft as NmLucide, m_ as NmMenubar, h_ as NmMenubarMenu, g_ as NmMenubarTrigger, ei as NmMessage, Mr as NmMessageActions, Fr as NmMessageMeta, G_ as NmModal, K_ as NmModalAction, di as NmModelSelector, Og as NmMonthPicker, q_ as NmNativeSelect, Y_ as NmNativeSelectOptGroup, J_ as NmNativeSelectOption, Z_ as NmPanel, tv as NmPanelActions, fv as NmPanelBar, nv as NmPanelContent, ev as NmPanelDescription, rv as NmPanelFooter, Q_ as NmPanelHeader, $_ as NmPanelTitle, fi as NmPlan, Gu as NmPopover, qu as NmPopoverContent, Xu as NmPopoverDescription, Ju as NmPopoverHeader, Yu as NmPopoverTitle, Ku as NmPopoverTrigger, Tr as NmProgress, pv as NmProse, bv as NmQuestionnaire, pi as NmQueue, xv as NmRadioGroup, Sv as NmRadioGroupItem, Tv as NmRailIcon, ti as NmReasoning, Ov as NmResizeHandle, cv as NmSegmented, ru as NmSelect, ou as NmSelectContent, cu as NmSelectGroup, su as NmSelectItem, lu as NmSelectLabel, uu as NmSelectSeparator, iu as NmSelectTrigger, au as NmSelectValue, qi as NmSeparator, $r as NmSheet, Vv as NmSidePanel, Hv as NmSidePanelBody, Uv as NmSidePanelKinds, Wv as NmSlider, zl as NmSmallIconButton, hi as NmSources, _i as NmStackTrace, Gv as NmStatusBar, Kv as NmStatusBarItem, qv as NmStatusBarSpacer, xi as NmSubagent, Si as NmSuggestions, Jv as NmSwitch, Zv as NmTable, $v as NmTableBody, iy as NmTableCaption, ry as NmTableCell, ey as NmTableFooter, ny as NmTableHead, Qv as NmTableHeader, ty as NmTableRow, sy as NmTabs, mi as NmTask, gi as NmTerminal, vi as NmTestResults, Nr as NmTextShimmer, cy as NmTextarea, Ag as NmTimePicker, dy as NmToggle, bi as NmTool, jv as NmToolbar, Fv as NmToolbarButton, Mv as NmToolbarGroup, Iv as NmToolbarInput, Nv as NmToolbarSeparator, Pv as NmToolbarSpacer, py as NmTooltip, hy as NmTooltipContent, fy as NmTooltipProvider, my as NmTooltipTrigger, vy as NmTopBar, zr as NmTrace, Kr as NmTraceBadge, Gr as NmTraceBadges, Br as NmTraceCollapsible, Hr as NmTraceCollapsibleContent, Vr as NmTraceCollapsibleTrigger, Wr as NmTraceDescription, Rr as NmTraceGlyph, Ur as NmTraceIcon, z as NmTraceLine, B as NmTraceTitle, Lv as NmWorkspace, zv as NmWorkspaceBody, Bv as NmWorkspaceFooter, Rv as NmWorkspaceMain, cn as NordmanIconButton, Vy as NordmanLogin, Oy as NordmanLoginField, Py as NordmanLoginForgot, Fy as NordmanLoginGoogle, zy as NordmanLoginHero, Ay as NordmanLoginRegister, Ly as NordmanLoginReset, Dy as NordmanLoginReveal, My as NordmanLoginSignIn, Uy as NordmanToggle, Ox as applyAppearanceState, nx as applyThemePresetPalette, Dx as clearAppliedAppearance, Bb as contrastRatio, Jb as createDefaultAppearanceState, db as defaultThemePresetId, Cx as deriveAppearanceTokens, Hn as dropdownBranchPath, zn as dropdownPortalHost, lr as findDropdownItem, ub as findThemePreset, Pt as hasNmLucide, Vb as hexToHsl, Ib as hexToRgbTriplet, Hb as hslToHex, Pb as isHexColor, Bn as isNmDropdownSeparator, tx as mergeThemePresetColors, Rb as mixHex, Wn as nextExpandedBranches, Tn as nmAiTraceStatus, Kt as nmButtonClassName, Qt as nmChatboxActionButtonClassName, M as nmClass, Vn as nmDropdownSeparator, Pn as nmDropdownViewportMaxHeight, gb as nmFade, vn as nmHighlightedLines, Zt as nmIconButtonClassName, mb as nmSettleSeconds, Fb as normalizeHexColor, Un as openDropdownBranch, Yb as paletteForPreset, Qb as parseAppearanceState, Fn as placeNmDropdownPanel, In as placeNmDropdownRowPanel, Ln as placeNmDropdownSubpanel, kx as readCssLengthPx, Ax as readNmRailRowStridePx, $b as readStoredAppearanceState, px as resolveAccentHex, qb as resolveAppearanceScheme, wx as themeModeFromAppearance, Ii as useBarOverflow, _b as useNmFade, B_ as useReportSaveDirty, V_ as useTrackSave, ex as writeStoredAppearanceState };
|
|
12981
|
+
export { lb as NM_ACCENT_HEX, sb as NM_ACCENT_PRESETS, Dn as NM_AI_BADGE_TONES, I as NM_AI_CLASSES, wn as NM_AI_STATUS, Qy as NM_APPEARANCE_APPLIED_EVENT, ob as NM_APPEARANCE_CONTRAST, db as NM_APPEARANCE_CSS_VARS, ub as NM_APPEARANCE_DEFAULTS, $y as NM_APPEARANCE_MODES, Zy as NM_APPEARANCE_STORAGE_KEY, Jy as NM_APP_PANEL_CLASSES, qy as NM_APP_PANEL_ICON_SRC, Ky as NM_APP_PANEL_TABS, wi as NM_AVATAR_SIZES, ji as NM_BAR_OVERFLOW_CLASSES, Mi as NM_BAR_OVERFLOW_TEST_IDS, Gt as NM_BUTTON_CLASSES, Wt as NM_BUTTON_SIZES, Ut as NM_BUTTON_TONES, nl as NM_CARD_SIZES, tl as NM_CARD_VARIANTS, Xt as NM_CHATBOX_ACTION_CLASS, vl as NM_CHATBOX_CLASSES, ml as NM_CHATBOX_COMPOSER_ACTION_ICONS, hl as NM_CHATBOX_DURING_RUN_MENU_ICONS, dl as NM_CHATBOX_ICON_IDS, pl as NM_CHATBOX_ICON_SRC, fl as NM_CHATBOX_INTEGRATION_ICON_PATH, gl as NM_CHATBOX_LUCIDE_MAP, yl as NM_CHATBOX_MENU_MODE, Vt as NM_CHIP_SIZES, Bt as NM_CHIP_TONES, un as NM_CODE_BLOCK_SIZES, ln as NM_CODE_BLOCK_VARIANTS, yn as NM_CODE_LANGUAGES, Dl as NM_COLLECTION_ACTIONS, K as NM_COLLECTION_CLASSES, Cl as NM_COLLECTION_FILES_REFRESH_MS, El as NM_COLLECTION_ICON_SRC, Ol as NM_COLLECTION_MEDIA_KINDS, wl as NM_COLLECTION_SCROLL_IDLE_MS, Tl as NM_COLLECTION_VIEWS, Y as NM_COMPOSER_CLASSES, vg as NM_COMPOSER_COPY, kb as NM_CONTROL_MENU_CSS_VARS, An as NM_DROPDOWN_ALIGN, L as NM_DROPDOWN_CLASSES, Mn as NM_DROPDOWN_GAP_PX, jn as NM_DROPDOWN_REVEAL, Nn as NM_DROPDOWN_SCROLL_IDLE_MS, kn as NM_DROPDOWN_TONE, On as NM_DROPDOWN_TRIGGER, q as NM_FIELD_CLASSES, Kl as NM_FIELD_KINDS, ql as NM_FIELD_LAYOUT, tb as NM_FONT_WEIGHTS, bb as NM_HEADER_ICON_IDS, xb as NM_HEADER_ICON_SRC, jt as NM_ICONS, Sb as NM_ICON_BORDER_CLASSES, F as NM_ICON_BUTTON_CLASSES, Yt as NM_ICON_BUTTON_TONES, At as NM_ICON_IDS, p_ as NM_LIST_ITEM_CLASSES, Yy as NM_LOGS_PANEL_CLASSES, Mt as NM_LUCIDE_FILLED_IDS, R as NM_MESSAGE_CLASSES, Dr as NM_MESSAGE_ICON_GLYPH, Er as NM_MESSAGE_ICON_IDS, Or as NM_MESSAGE_ICON_SRC, S_ as NM_MODAL_ACTION, X as NM_MODAL_CLASSES, x_ as NM_MODAL_FOOTER, C_ as NM_MODAL_SCROLL_IDLE_MS, b_ as NM_MODAL_SIZE, y_ as NM_MODAL_TITLE, fv as NM_PANEL_BAR_CLASSES, dv as NM_PANEL_BAR_LAYOUT, Q_ as NM_PANEL_VARIANTS, Z as NM_QUESTIONNAIRE_CLASSES, vv as NM_QUESTIONNAIRE_COPY, gv as NM_QUESTIONNAIRE_SHORTCUTS, _v as NM_QUESTIONNAIRE_VARIANTS, Eb as NM_RADIUS_CSS_VARS, Db as NM_RADIUS_FORMULAS, Ob as NM_RADIUS_PRIMITIVE_FORMULAS, wb as NM_RADIUS_PRIMITIVE_PX, Cb as NM_RADIUS_SCALE_VAR, Tb as NM_RADIUS_SEMANTIC_OFFSET_SPACE, Nb as NM_RAIL_FACE_HOLD_MS, Ab as NM_RAIL_ICON_IDS, jb as NM_RAIL_ICON_SRC, Mb as NM_RAIL_SCROLL_IDLE_MS, Pb as NM_RAIL_SEARCH_DEBOUNCE_MS, sv as NM_SEGMENTED_CLASSES, ov as NM_SEGMENTED_TONES, jv as NM_SIDE_PANEL_KINDS, Mv as NM_SIDE_PANEL_SIZES, Xy as NM_SITE_PALETTE, Il as NM_SMALL_ICON_BUTTON_CLASSES, Fl as NM_SMALL_ICON_BUTTON_TONES, Qv as NM_TABLE_SIZES, Zv as NM_TABLE_VARIANTS, sy as NM_TABS_CLASSES, cb as NM_THEME_PRESETS, fy as NM_TOGGLE_SIZES, dy as NM_TOGGLE_VARIANTS, En as NM_TOOL_STATES, vy as NM_TOP_BAR_CLASSES, Ar as NM_TRACE_GLYPH_PATHS, kr as NM_TRACE_STATUSES, eb as NM_UI_FONT_SIZE_PX, nb as NM_UI_FONT_WEIGHT, rb as NM_UI_ICON_SIZE_PX, ib as NM_UI_RADIUS_PERCENT, ab as NM_UI_SPACE_PERCENT, en as NORDMAN_CHROME_ICONS, $t as NORDMAN_CHROME_ICON_IDS, nn as NORDMAN_ICON_BUTTON_VARIANTS, Q as NORDMAN_LOGIN_FIELDS, Sy as NORDMAN_LOGIN_FORM_ID, wy as NORDMAN_LOGIN_INTERFACE, Cy as NORDMAN_LOGIN_REVEAL, xy as NORDMAN_LOGIN_VIEWS, Ti as NmAvatar, Oi as NmAvatarBadge, Di as NmAvatarFallback, ki as NmAvatarGroup, Ai as NmAvatarGroupCount, Ei as NmAvatarImage, Zr as NmBadge, Ri as NmBarOverflow, zi as NmBrandLogo, Bi as NmBreadcrumb, Ki as NmBreadcrumbEllipsis, Hi as NmBreadcrumbItem, Ui as NmBreadcrumbLink, Vi as NmBreadcrumbList, Wi as NmBreadcrumbPage, Gi as NmBreadcrumbSeparator, Yr as NmBubble, Jt as NmButton, Ji as NmButtonGroup, Yi as NmButtonGroupSeparator, Xi as NmButtonGroupText, el as NmCalendar, rl as NmCard, sl as NmCardAction, cl as NmCardContent, ol as NmCardDescription, ll as NmCardFooter, il as NmCardHeader, ul as NmCardMedia, al as NmCardTitle, ni as NmChainOfThought, Ci as NmChat, xl as NmChatbox, _l as NmChatboxIcon, Sl as NmCheckbox, ri as NmCheckpoint, Ht as NmChip, fn as NmCodeBlock, hn as NmCodeBlockActions, Sn as NmCodeBlockContent, gn as NmCodeBlockCopyButton, Cn as NmCodeBlockFooter, pn as NmCodeBlockHeader, _n as NmCodeBlockLine, mn as NmCodeBlockTitle, Pl as NmCollectionBar, Gl as NmCollectionGrid, ad as NmCollectionQuery, cd as NmCollectionRowMenu, ud as NmCollectionTable, Hl as NmCollectionTileActions, jl as NmCollectionTitle, $u as NmColorPicker, Zu as NmColorSwatch, Jl as NmCombobox, Xl as NmComboboxContent, $l as NmComboboxEmpty, eu as NmComboboxGroup, Yl as NmComboboxInput, Ql as NmComboboxItem, tu as NmComboboxLabel, Zl as NmComboboxList, nu as NmComboboxSeparator, og as NmCommand, sg as NmCommandDialog, dg as NmCommandEmpty, lg as NmCommandFilters, pg as NmCommandGroup, cg as NmCommandInput, hg as NmCommandItem, gg as NmCommandItemActions, ug as NmCommandList, fg as NmCommandLoading, mg as NmCommandSeparator, _g as NmCommandShortcut, yg as NmComposer, ii as NmConfirmation, oi as NmContext, bg as NmContextMenu, Sg as NmContextMenuContent, xg as NmContextMenuTrigger, Eg as NmDatePicker, Dg as NmDateRangePicker, jg as NmDateTimePicker, $h as NmDialog, tg as NmDialogClose, ng as NmDialogContent, ag as NmDialogDescription, rg as NmDialogHeader, ig as NmDialogTitle, eg as NmDialogTrigger, xr as NmDropdown, cr as NmDropdownBranch, Mg as NmDropdownMenu, Vg as NmDropdownMenuCheckboxItem, Pg as NmDropdownMenuContent, qg as NmDropdownMenuDot, Fg as NmDropdownMenuGroup, Lg as NmDropdownMenuItem, Ig as NmDropdownMenuLabel, Hg as NmDropdownMenuRadioGroup, Ug as NmDropdownMenuRadioItem, Wg as NmDropdownMenuSeparator, Gg as NmDropdownMenuShortcut, Rg as NmDropdownMenuSub, Bg as NmDropdownMenuSubContent, zg as NmDropdownMenuSubTrigger, Kg as NmDropdownMenuText, Ng as NmDropdownMenuTrigger, gr as NmDropdownOptions, ar as NmDropdownPanel, nd as NmField, $g as NmFieldContent, n_ as NmFieldDescription, r_ as NmFieldError, Zg as NmFieldGroup, e_ as NmFieldLabel, Xg as NmFieldLegend, i_ as NmFieldSeparator, Yg as NmFieldSet, t_ as NmFieldTitle, li as NmFileTree, Qg as NmFormField, a_ as NmGallery, o_ as NmGalleryItem, Sr as NmHoverCard, wr as NmHoverCardContent, Cr as NmHoverCardTrigger, P as NmIcon, Al as NmIconBorder, ui as NmInlineCitation, Wu as NmInput, s_ as NmInputGroup, c_ as NmInputGroupAddon, u_ as NmInputGroupInput, l_ as NmInputGroupText, Qr as NmItem, d_ as NmKbd, f_ as NmKbdGroup, Jg as NmLabel, h_ as NmListItem, Ft as NmLucide, g_ as NmMenubar, __ as NmMenubarMenu, v_ as NmMenubarTrigger, ei as NmMessage, Mr as NmMessageActions, Fr as NmMessageMeta, q_ as NmModal, J_ as NmModalAction, di as NmModelSelector, Og as NmMonthPicker, Y_ as NmNativeSelect, Z_ as NmNativeSelectOptGroup, X_ as NmNativeSelectOption, $_ as NmPanel, rv as NmPanelActions, mv as NmPanelBar, iv as NmPanelContent, nv as NmPanelDescription, av as NmPanelFooter, ev as NmPanelHeader, tv as NmPanelTitle, fi as NmPlan, Gu as NmPopover, qu as NmPopoverContent, Xu as NmPopoverDescription, Ju as NmPopoverHeader, Yu as NmPopoverTitle, Ku as NmPopoverTrigger, Tr as NmProgress, hv as NmProse, Sv as NmQuestionnaire, pi as NmQueue, Cv as NmRadioGroup, wv as NmRadioGroupItem, Dv as NmRailIcon, ti as NmReasoning, Av as NmResizeHandle, uv as NmSegmented, ru as NmSelect, ou as NmSelectContent, cu as NmSelectGroup, su as NmSelectItem, lu as NmSelectLabel, uu as NmSelectSeparator, iu as NmSelectTrigger, au as NmSelectValue, qi as NmSeparator, $r as NmSheet, Uv as NmSidePanel, Wv as NmSidePanelBody, Gv as NmSidePanelKinds, Kv as NmSlider, zl as NmSmallIconButton, hi as NmSources, _i as NmStackTrace, qv as NmStatusBar, Jv as NmStatusBarItem, Yv as NmStatusBarSpacer, xi as NmSubagent, Si as NmSuggestions, Xv as NmSwitch, $v as NmTable, ty as NmTableBody, oy as NmTableCaption, ay as NmTableCell, ny as NmTableFooter, iy as NmTableHead, ey as NmTableHeader, ry as NmTableRow, ly as NmTabs, mi as NmTask, gi as NmTerminal, vi as NmTestResults, Nr as NmTextShimmer, uy as NmTextarea, Ag as NmTimePicker, py as NmToggle, bi as NmTool, Nv as NmToolbar, Lv as NmToolbarButton, Pv as NmToolbarGroup, Rv as NmToolbarInput, Fv as NmToolbarSeparator, Iv as NmToolbarSpacer, hy as NmTooltip, _y as NmTooltipContent, my as NmTooltipProvider, gy as NmTooltipTrigger, by as NmTopBar, zr as NmTrace, Kr as NmTraceBadge, Gr as NmTraceBadges, Br as NmTraceCollapsible, Hr as NmTraceCollapsibleContent, Vr as NmTraceCollapsibleTrigger, Wr as NmTraceDescription, Rr as NmTraceGlyph, Ur as NmTraceIcon, z as NmTraceLine, B as NmTraceTitle, zv as NmWorkspace, Vv as NmWorkspaceBody, Hv as NmWorkspaceFooter, Bv as NmWorkspaceMain, cn as NordmanIconButton, Uy as NordmanLogin, Ay as NordmanLoginField, Iy as NordmanLoginForgot, Ly as NordmanLoginGoogle, Vy as NordmanLoginHero, My as NordmanLoginRegister, zy as NordmanLoginReset, ky as NordmanLoginReveal, Py as NordmanLoginSignIn, Gy as NordmanToggle, Ax as applyAppearanceState, ix as applyThemePresetPalette, kx as clearAppliedAppearance, Hb as contrastRatio, Xb as createDefaultAppearanceState, pb as defaultThemePresetId, Tx as deriveAppearanceTokens, Hn as dropdownBranchPath, zn as dropdownPortalHost, lr as findDropdownItem, fb as findThemePreset, Pt as hasNmLucide, Ub as hexToHsl, Rb as hexToRgbTriplet, Wb as hslToHex, Ib as isHexColor, Bn as isNmDropdownSeparator, rx as mergeThemePresetColors, Bb as mixHex, Wn as nextExpandedBranches, Tn as nmAiTraceStatus, Kt as nmButtonClassName, Qt as nmChatboxActionButtonClassName, M as nmClass, Vn as nmDropdownSeparator, Pn as nmDropdownViewportMaxHeight, vb as nmFade, vn as nmHighlightedLines, Zt as nmIconButtonClassName, gb as nmSettleSeconds, Lb as normalizeHexColor, Un as openDropdownBranch, Zb as paletteForPreset, ex as parseAppearanceState, Fn as placeNmDropdownPanel, In as placeNmDropdownRowPanel, Ln as placeNmDropdownSubpanel, jx as readCssLengthPx, Mx as readNmRailRowStridePx, tx as readStoredAppearanceState, hx as resolveAccentHex, Yb as resolveAppearanceScheme, Ex as themeModeFromAppearance, Ii as useBarOverflow, yb as useNmFade, H_ as useReportSaveDirty, U_ as useTrackSave, nx as writeStoredAppearanceState };
|