@nordmanai/nif 0.2.14 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +263 -254
- package/dist/styles.css +1 -1
- package/dist/ui/components/nm-sidebar/nm-sidebar.d.ts +9 -1
- package/package.json +1 -1
- package/registry/index.json +1 -1
- package/registry/ui/components/nm-sidebar/nm-sidebar.css +26 -0
- package/registry/ui/components/nm-sidebar/nm-sidebar.tsx +14 -2
package/dist/index.js
CHANGED
|
@@ -31927,30 +31927,39 @@ function IH({ side: e = "left", variant: t = "sidebar", collapsible: n = "offcan
|
|
|
31927
31927
|
})
|
|
31928
31928
|
});
|
|
31929
31929
|
}
|
|
31930
|
-
function LH({ className: e, label: t, icon: n = "panel-left", tooltip: r = !0,
|
|
31931
|
-
let { open:
|
|
31930
|
+
function LH({ className: e, label: t, icon: n = "panel-left", tooltip: r = !0, anchored: i = !1, onClick: a, onPointerEnter: o, onPointerLeave: s, ...c }) {
|
|
31931
|
+
let { open: l, isMobile: u, toggleSidebar: d, peekIn: f, peekOut: p } = NH(), m = t ?? (l || u ? "Close sidebar" : "Open sidebar"), h = /* @__PURE__ */ b(GC, {
|
|
31932
31932
|
"data-slot": "sidebar-trigger",
|
|
31933
31933
|
glyph: n,
|
|
31934
|
-
label:
|
|
31934
|
+
label: m,
|
|
31935
31935
|
tone: "quiet",
|
|
31936
|
-
|
|
31936
|
+
"data-anchored": i ? "true" : void 0,
|
|
31937
|
+
className: F("nm-sidebar__trigger", i ? "nm-sidebar__trigger--anchored" : null, e),
|
|
31937
31938
|
onClick: (e) => {
|
|
31938
|
-
|
|
31939
|
+
a?.(e), d();
|
|
31939
31940
|
},
|
|
31940
31941
|
onPointerEnter: (e) => {
|
|
31941
|
-
|
|
31942
|
+
o?.(e), f(e);
|
|
31942
31943
|
},
|
|
31943
31944
|
onPointerLeave: (e) => {
|
|
31944
|
-
|
|
31945
|
+
s?.(e), p();
|
|
31945
31946
|
},
|
|
31946
|
-
...
|
|
31947
|
+
...c
|
|
31947
31948
|
});
|
|
31948
|
-
return r ? /* @__PURE__ */ x(EH, { children: [/* @__PURE__ */ b(DH, { render:
|
|
31949
|
+
return r ? /* @__PURE__ */ x(EH, { children: [/* @__PURE__ */ b(DH, { render: h }), /* @__PURE__ */ x(OH, {
|
|
31949
31950
|
side: "bottom",
|
|
31950
|
-
children: [
|
|
31951
|
-
})] }) :
|
|
31951
|
+
children: [m, /* @__PURE__ */ b(XB, { children: "⌘B" })]
|
|
31952
|
+
})] }) : h;
|
|
31953
|
+
}
|
|
31954
|
+
function RH({ className: e, ...t }) {
|
|
31955
|
+
return /* @__PURE__ */ b("span", {
|
|
31956
|
+
"aria-hidden": "true",
|
|
31957
|
+
"data-slot": "sidebar-trigger-space",
|
|
31958
|
+
className: F("nm-sidebar__trigger-space", e),
|
|
31959
|
+
...t
|
|
31960
|
+
});
|
|
31952
31961
|
}
|
|
31953
|
-
function
|
|
31962
|
+
function zH({ className: e, label: t = "Toggle sidebar", ...n }) {
|
|
31954
31963
|
let { toggleSidebar: r } = NH();
|
|
31955
31964
|
return /* @__PURE__ */ b("button", {
|
|
31956
31965
|
type: "button",
|
|
@@ -31963,7 +31972,7 @@ function RH({ className: e, label: t = "Toggle sidebar", ...n }) {
|
|
|
31963
31972
|
...n
|
|
31964
31973
|
});
|
|
31965
31974
|
}
|
|
31966
|
-
function
|
|
31975
|
+
function BH({ className: e, render: t, ref: n, ...r }) {
|
|
31967
31976
|
return Si({
|
|
31968
31977
|
render: t,
|
|
31969
31978
|
ref: n,
|
|
@@ -31975,49 +31984,49 @@ function zH({ className: e, render: t, ref: n, ...r }) {
|
|
|
31975
31984
|
}
|
|
31976
31985
|
});
|
|
31977
31986
|
}
|
|
31978
|
-
function
|
|
31987
|
+
function VH({ className: e, ...t }) {
|
|
31979
31988
|
return /* @__PURE__ */ b(mN, {
|
|
31980
31989
|
"data-slot": "sidebar-input",
|
|
31981
31990
|
className: F("nm-sidebar__input", e),
|
|
31982
31991
|
...t
|
|
31983
31992
|
});
|
|
31984
31993
|
}
|
|
31985
|
-
function
|
|
31994
|
+
function HH({ className: e, ...t }) {
|
|
31986
31995
|
return /* @__PURE__ */ b("div", {
|
|
31987
31996
|
"data-slot": "sidebar-header",
|
|
31988
31997
|
className: F("nm-sidebar__header", e),
|
|
31989
31998
|
...t
|
|
31990
31999
|
});
|
|
31991
32000
|
}
|
|
31992
|
-
function
|
|
32001
|
+
function UH({ className: e, ...t }) {
|
|
31993
32002
|
return /* @__PURE__ */ b("div", {
|
|
31994
32003
|
"data-slot": "sidebar-footer",
|
|
31995
32004
|
className: F("nm-sidebar__footer", e),
|
|
31996
32005
|
...t
|
|
31997
32006
|
});
|
|
31998
32007
|
}
|
|
31999
|
-
function
|
|
32008
|
+
function WH({ className: e, ...t }) {
|
|
32000
32009
|
return /* @__PURE__ */ b(dD, {
|
|
32001
32010
|
"data-slot": "sidebar-separator",
|
|
32002
32011
|
className: F("nm-sidebar__separator", e),
|
|
32003
32012
|
...t
|
|
32004
32013
|
});
|
|
32005
32014
|
}
|
|
32006
|
-
function
|
|
32015
|
+
function GH({ className: e, ...t }) {
|
|
32007
32016
|
return /* @__PURE__ */ b("div", {
|
|
32008
32017
|
"data-slot": "sidebar-content",
|
|
32009
32018
|
className: F("nm-sidebar__content", e),
|
|
32010
32019
|
...t
|
|
32011
32020
|
});
|
|
32012
32021
|
}
|
|
32013
|
-
function
|
|
32022
|
+
function KH({ className: e, ...t }) {
|
|
32014
32023
|
return /* @__PURE__ */ b("div", {
|
|
32015
32024
|
"data-slot": "sidebar-group",
|
|
32016
32025
|
className: F("nm-sidebar__group", e),
|
|
32017
32026
|
...t
|
|
32018
32027
|
});
|
|
32019
32028
|
}
|
|
32020
|
-
function
|
|
32029
|
+
function qH({ className: e, render: t, ref: n, ...r }) {
|
|
32021
32030
|
return Si({
|
|
32022
32031
|
render: t,
|
|
32023
32032
|
ref: n,
|
|
@@ -32029,7 +32038,7 @@ function KH({ className: e, render: t, ref: n, ...r }) {
|
|
|
32029
32038
|
}
|
|
32030
32039
|
});
|
|
32031
32040
|
}
|
|
32032
|
-
function
|
|
32041
|
+
function JH({ className: e, ...t }) {
|
|
32033
32042
|
return /* @__PURE__ */ b(cM, {
|
|
32034
32043
|
"data-slot": "sidebar-group-action",
|
|
32035
32044
|
tone: "quiet",
|
|
@@ -32037,28 +32046,28 @@ function qH({ className: e, ...t }) {
|
|
|
32037
32046
|
...t
|
|
32038
32047
|
});
|
|
32039
32048
|
}
|
|
32040
|
-
function
|
|
32049
|
+
function YH({ className: e, ...t }) {
|
|
32041
32050
|
return /* @__PURE__ */ b("div", {
|
|
32042
32051
|
"data-slot": "sidebar-group-content",
|
|
32043
32052
|
className: F("nm-sidebar__group-content", e),
|
|
32044
32053
|
...t
|
|
32045
32054
|
});
|
|
32046
32055
|
}
|
|
32047
|
-
function
|
|
32056
|
+
function XH({ className: e, ...t }) {
|
|
32048
32057
|
return /* @__PURE__ */ b("ul", {
|
|
32049
32058
|
"data-slot": "sidebar-menu",
|
|
32050
32059
|
className: F("nm-sidebar__menu", e),
|
|
32051
32060
|
...t
|
|
32052
32061
|
});
|
|
32053
32062
|
}
|
|
32054
|
-
function
|
|
32063
|
+
function ZH({ className: e, ...t }) {
|
|
32055
32064
|
return /* @__PURE__ */ b("li", {
|
|
32056
32065
|
"data-slot": "sidebar-menu-item",
|
|
32057
32066
|
className: F("nm-sidebar__menu-item", e),
|
|
32058
32067
|
...t
|
|
32059
32068
|
});
|
|
32060
32069
|
}
|
|
32061
|
-
function
|
|
32070
|
+
function QH({ render: e, isActive: t = !1, variant: n = "default", size: r = "default", tooltip: i, className: a, ref: o, ...s }) {
|
|
32062
32071
|
let { isMobile: c, state: l, peek: u } = NH(), d = Si({
|
|
32063
32072
|
render: e,
|
|
32064
32073
|
ref: o,
|
|
@@ -32080,7 +32089,7 @@ function ZH({ render: e, isActive: t = !1, variant: n = "default", size: r = "de
|
|
|
32080
32089
|
...typeof i == "string" ? { children: i } : i
|
|
32081
32090
|
}) : null] });
|
|
32082
32091
|
}
|
|
32083
|
-
function
|
|
32092
|
+
function $H({ className: e, showOnHover: t = !1, ...n }) {
|
|
32084
32093
|
return /* @__PURE__ */ b(cM, {
|
|
32085
32094
|
"data-slot": "sidebar-menu-action",
|
|
32086
32095
|
"data-show-on-hover": t ? "" : void 0,
|
|
@@ -32089,7 +32098,7 @@ function QH({ className: e, showOnHover: t = !1, ...n }) {
|
|
|
32089
32098
|
...n
|
|
32090
32099
|
});
|
|
32091
32100
|
}
|
|
32092
|
-
function
|
|
32101
|
+
function eU({ className: e, showOnHover: t = !1, ...n }) {
|
|
32093
32102
|
return /* @__PURE__ */ b("div", {
|
|
32094
32103
|
"data-slot": "sidebar-menu-actions",
|
|
32095
32104
|
"data-show-on-hover": t ? "" : void 0,
|
|
@@ -32097,14 +32106,14 @@ function $H({ className: e, showOnHover: t = !1, ...n }) {
|
|
|
32097
32106
|
...n
|
|
32098
32107
|
});
|
|
32099
32108
|
}
|
|
32100
|
-
function
|
|
32109
|
+
function tU({ className: e, ...t }) {
|
|
32101
32110
|
return /* @__PURE__ */ b("div", {
|
|
32102
32111
|
"data-slot": "sidebar-bar",
|
|
32103
32112
|
className: F("nm-sidebar__bar", e),
|
|
32104
32113
|
...t
|
|
32105
32114
|
});
|
|
32106
32115
|
}
|
|
32107
|
-
function
|
|
32116
|
+
function nU({ className: e, ...t }) {
|
|
32108
32117
|
return /* @__PURE__ */ b(CC, {
|
|
32109
32118
|
"data-slot": "sidebar-menu-badge",
|
|
32110
32119
|
size: "sm",
|
|
@@ -32112,7 +32121,7 @@ function tU({ className: e, ...t }) {
|
|
|
32112
32121
|
...t
|
|
32113
32122
|
});
|
|
32114
32123
|
}
|
|
32115
|
-
function
|
|
32124
|
+
function rU({ title: e, description: t, className: n, ...r }) {
|
|
32116
32125
|
return /* @__PURE__ */ x("span", {
|
|
32117
32126
|
"data-slot": "sidebar-menu-text",
|
|
32118
32127
|
className: F("nm-sidebar__text", n),
|
|
@@ -32120,7 +32129,7 @@ function nU({ title: e, description: t, className: n, ...r }) {
|
|
|
32120
32129
|
children: [/* @__PURE__ */ b("span", { children: e }), t == null ? null : /* @__PURE__ */ b("span", { children: t })]
|
|
32121
32130
|
});
|
|
32122
32131
|
}
|
|
32123
|
-
function
|
|
32132
|
+
function iU({ className: e, showIcon: t = !1, ...n }) {
|
|
32124
32133
|
let [r] = p(() => `${Math.floor(Math.random() * 40) + 50}%`);
|
|
32125
32134
|
return /* @__PURE__ */ x("div", {
|
|
32126
32135
|
"data-slot": "sidebar-menu-skeleton",
|
|
@@ -32132,21 +32141,21 @@ function rU({ className: e, showIcon: t = !1, ...n }) {
|
|
|
32132
32141
|
})]
|
|
32133
32142
|
});
|
|
32134
32143
|
}
|
|
32135
|
-
function
|
|
32144
|
+
function aU({ className: e, ...t }) {
|
|
32136
32145
|
return /* @__PURE__ */ b("ul", {
|
|
32137
32146
|
"data-slot": "sidebar-menu-sub",
|
|
32138
32147
|
className: F("nm-sidebar__menu-sub", e),
|
|
32139
32148
|
...t
|
|
32140
32149
|
});
|
|
32141
32150
|
}
|
|
32142
|
-
function
|
|
32151
|
+
function oU({ className: e, ...t }) {
|
|
32143
32152
|
return /* @__PURE__ */ b("li", {
|
|
32144
32153
|
"data-slot": "sidebar-menu-sub-item",
|
|
32145
32154
|
className: F("nm-sidebar__menu-sub-item", e),
|
|
32146
32155
|
...t
|
|
32147
32156
|
});
|
|
32148
32157
|
}
|
|
32149
|
-
function
|
|
32158
|
+
function sU({ render: e, size: t = "default", isActive: n = !1, disabled: r = !1, className: i, ref: a, ...o }) {
|
|
32150
32159
|
return Si({
|
|
32151
32160
|
render: e,
|
|
32152
32161
|
ref: a,
|
|
@@ -32164,7 +32173,7 @@ function oU({ render: e, size: t = "default", isActive: n = !1, disabled: r = !1
|
|
|
32164
32173
|
}
|
|
32165
32174
|
});
|
|
32166
32175
|
}
|
|
32167
|
-
function
|
|
32176
|
+
function cU({ className: e, menu: t = !1, ...n }) {
|
|
32168
32177
|
return /* @__PURE__ */ b(G, {
|
|
32169
32178
|
id: "chevron",
|
|
32170
32179
|
"data-menu": t ? "" : void 0,
|
|
@@ -32172,7 +32181,7 @@ function sU({ className: e, menu: t = !1, ...n }) {
|
|
|
32172
32181
|
...n
|
|
32173
32182
|
});
|
|
32174
32183
|
}
|
|
32175
|
-
function
|
|
32184
|
+
function lU({ open: e, onOpenChange: t, ...n }) {
|
|
32176
32185
|
let r = jH(), [i, a] = p(!1), s = (e ?? i) && r, l = o((e, n) => {
|
|
32177
32186
|
a(e), t?.(e, n);
|
|
32178
32187
|
}, [t]);
|
|
@@ -32185,7 +32194,7 @@ function cU({ open: e, onOpenChange: t, ...n }) {
|
|
|
32185
32194
|
});
|
|
32186
32195
|
}
|
|
32187
32196
|
// src/ui/components/nm-slider/nm-slider.tsx
|
|
32188
|
-
function
|
|
32197
|
+
function uU({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100, label: a, output: o, ...s }) {
|
|
32189
32198
|
let c = Array.isArray(n) ? n : Array.isArray(t) ? t : [r, i], l = /* @__PURE__ */ b(Up.Root, {
|
|
32190
32199
|
"data-slot": "slider",
|
|
32191
32200
|
className: F("nm-slider", e),
|
|
@@ -32226,7 +32235,7 @@ function lU({ className: e, defaultValue: t, value: n, min: r = 0, max: i = 100,
|
|
|
32226
32235
|
}) : l;
|
|
32227
32236
|
}
|
|
32228
32237
|
// src/ui/components/nm-spinner/nm-spinner.tsx
|
|
32229
|
-
function
|
|
32238
|
+
function dU({ className: e, ...t }) {
|
|
32230
32239
|
return /* @__PURE__ */ b("span", {
|
|
32231
32240
|
role: "status",
|
|
32232
32241
|
"aria-live": "polite",
|
|
@@ -32236,14 +32245,14 @@ function uU({ className: e, ...t }) {
|
|
|
32236
32245
|
});
|
|
32237
32246
|
}
|
|
32238
32247
|
// src/ui/components/nm-status-bar/nm-status-bar.tsx
|
|
32239
|
-
function
|
|
32248
|
+
function fU({ className: e, ...t }) {
|
|
32240
32249
|
return /* @__PURE__ */ b("footer", {
|
|
32241
32250
|
"data-slot": "status-bar",
|
|
32242
32251
|
className: F("nm-status-bar", e),
|
|
32243
32252
|
...t
|
|
32244
32253
|
});
|
|
32245
32254
|
}
|
|
32246
|
-
function
|
|
32255
|
+
function pU({ className: e, onClick: t, children: n, ...r }) {
|
|
32247
32256
|
let i = F("nm-status-bar__item", e);
|
|
32248
32257
|
return t ? /* @__PURE__ */ b("button", {
|
|
32249
32258
|
type: "button",
|
|
@@ -32258,7 +32267,7 @@ function fU({ className: e, onClick: t, children: n, ...r }) {
|
|
|
32258
32267
|
children: n
|
|
32259
32268
|
});
|
|
32260
32269
|
}
|
|
32261
|
-
function
|
|
32270
|
+
function mU({ className: e, ...t }) {
|
|
32262
32271
|
return /* @__PURE__ */ b("span", {
|
|
32263
32272
|
"aria-hidden": "true",
|
|
32264
32273
|
"data-slot": "status-bar-spacer",
|
|
@@ -32267,7 +32276,7 @@ function pU({ className: e, ...t }) {
|
|
|
32267
32276
|
});
|
|
32268
32277
|
}
|
|
32269
32278
|
// src/ui/components/nm-switch/nm-switch.tsx
|
|
32270
|
-
function
|
|
32279
|
+
function hU({ className: e, ...t }) {
|
|
32271
32280
|
return /* @__PURE__ */ b(ae.Root, {
|
|
32272
32281
|
"data-slot": "switch",
|
|
32273
32282
|
className: F("nm-switch", e),
|
|
@@ -32279,13 +32288,13 @@ function mU({ className: e, ...t }) {
|
|
|
32279
32288
|
});
|
|
32280
32289
|
}
|
|
32281
32290
|
// src/ui/components/nm-table/nm-table.tsx
|
|
32282
|
-
var
|
|
32291
|
+
var gU = [
|
|
32283
32292
|
"default",
|
|
32284
32293
|
"striped",
|
|
32285
32294
|
"lined",
|
|
32286
32295
|
"plain"
|
|
32287
|
-
],
|
|
32288
|
-
function
|
|
32296
|
+
], _U = ["default", "sm"];
|
|
32297
|
+
function vU({ className: e, variant: t = "default", size: n = "default", stickyHeader: r, maxHeight: i, ...a }) {
|
|
32289
32298
|
return /* @__PURE__ */ b("div", {
|
|
32290
32299
|
"data-slot": "table-container",
|
|
32291
32300
|
"data-sticky": r ? "" : void 0,
|
|
@@ -32300,28 +32309,28 @@ function _U({ className: e, variant: t = "default", size: n = "default", stickyH
|
|
|
32300
32309
|
})
|
|
32301
32310
|
});
|
|
32302
32311
|
}
|
|
32303
|
-
function
|
|
32312
|
+
function yU({ className: e, ...t }) {
|
|
32304
32313
|
return /* @__PURE__ */ b("thead", {
|
|
32305
32314
|
"data-slot": "table-header",
|
|
32306
32315
|
className: F("nm-table__header", e),
|
|
32307
32316
|
...t
|
|
32308
32317
|
});
|
|
32309
32318
|
}
|
|
32310
|
-
function
|
|
32319
|
+
function bU({ className: e, ...t }) {
|
|
32311
32320
|
return /* @__PURE__ */ b("tbody", {
|
|
32312
32321
|
"data-slot": "table-body",
|
|
32313
32322
|
className: F("nm-table__body", e),
|
|
32314
32323
|
...t
|
|
32315
32324
|
});
|
|
32316
32325
|
}
|
|
32317
|
-
function
|
|
32326
|
+
function xU({ className: e, ...t }) {
|
|
32318
32327
|
return /* @__PURE__ */ b("tfoot", {
|
|
32319
32328
|
"data-slot": "table-footer",
|
|
32320
32329
|
className: F("nm-table__footer", e),
|
|
32321
32330
|
...t
|
|
32322
32331
|
});
|
|
32323
32332
|
}
|
|
32324
|
-
function
|
|
32333
|
+
function SU({ className: e, selected: t, disabled: n, ...r }) {
|
|
32325
32334
|
return /* @__PURE__ */ b("tr", {
|
|
32326
32335
|
"data-slot": "table-row",
|
|
32327
32336
|
"data-selected": t ? "" : void 0,
|
|
@@ -32333,7 +32342,7 @@ function xU({ className: e, selected: t, disabled: n, ...r }) {
|
|
|
32333
32342
|
...r
|
|
32334
32343
|
});
|
|
32335
32344
|
}
|
|
32336
|
-
function
|
|
32345
|
+
function CU({ className: e, textAlign: t = "start", sort: n, onSort: r, children: i, ...a }) {
|
|
32337
32346
|
return /* @__PURE__ */ b("th", {
|
|
32338
32347
|
"data-slot": "table-head",
|
|
32339
32348
|
"data-align": t,
|
|
@@ -32353,7 +32362,7 @@ function SU({ className: e, textAlign: t = "start", sort: n, onSort: r, children
|
|
|
32353
32362
|
}) : i
|
|
32354
32363
|
});
|
|
32355
32364
|
}
|
|
32356
|
-
function
|
|
32365
|
+
function wU({ className: e, textAlign: t = "start", wrap: n, ...r }) {
|
|
32357
32366
|
return /* @__PURE__ */ b("td", {
|
|
32358
32367
|
"data-slot": "table-cell",
|
|
32359
32368
|
"data-align": t,
|
|
@@ -32362,7 +32371,7 @@ function CU({ className: e, textAlign: t = "start", wrap: n, ...r }) {
|
|
|
32362
32371
|
...r
|
|
32363
32372
|
});
|
|
32364
32373
|
}
|
|
32365
|
-
function
|
|
32374
|
+
function TU({ className: e, ...t }) {
|
|
32366
32375
|
return /* @__PURE__ */ b("caption", {
|
|
32367
32376
|
"data-slot": "table-caption",
|
|
32368
32377
|
className: F("nm-table__caption", e),
|
|
@@ -32370,17 +32379,17 @@ function wU({ className: e, ...t }) {
|
|
|
32370
32379
|
});
|
|
32371
32380
|
}
|
|
32372
32381
|
// src/ui/config/nm-tabs.ts
|
|
32373
|
-
var
|
|
32382
|
+
var EU = {
|
|
32374
32383
|
root: "nm-tabs",
|
|
32375
32384
|
item: "nm-tabs__item"
|
|
32376
|
-
},
|
|
32377
|
-
function
|
|
32378
|
-
return
|
|
32379
|
-
className:
|
|
32385
|
+
}, DU = W("interface-nm-tabs");
|
|
32386
|
+
function OU(e) {
|
|
32387
|
+
return DU.debug("render", e.label, { value: e.value }), /* @__PURE__ */ b("div", {
|
|
32388
|
+
className: EU.root,
|
|
32380
32389
|
role: "tablist",
|
|
32381
32390
|
"aria-label": e.label,
|
|
32382
32391
|
children: e.items.map((t) => /* @__PURE__ */ b("button", {
|
|
32383
|
-
className:
|
|
32392
|
+
className: EU.item,
|
|
32384
32393
|
type: "button",
|
|
32385
32394
|
role: "tab",
|
|
32386
32395
|
"aria-selected": t.id === e.value,
|
|
@@ -32389,27 +32398,27 @@ function DU(e) {
|
|
|
32389
32398
|
}, t.id))
|
|
32390
32399
|
});
|
|
32391
32400
|
}
|
|
32392
|
-
function
|
|
32401
|
+
function kU(e) {
|
|
32393
32402
|
return /* @__PURE__ */ b(ch.Root, {
|
|
32394
32403
|
"data-slot": "tabs",
|
|
32395
32404
|
...e
|
|
32396
32405
|
});
|
|
32397
32406
|
}
|
|
32398
|
-
function
|
|
32407
|
+
function AU({ className: e, ...t }) {
|
|
32399
32408
|
return /* @__PURE__ */ b(ch.List, {
|
|
32400
32409
|
"data-slot": "tabs-list",
|
|
32401
|
-
className: F(
|
|
32410
|
+
className: F(EU.root, e),
|
|
32402
32411
|
...t
|
|
32403
32412
|
});
|
|
32404
32413
|
}
|
|
32405
|
-
function
|
|
32414
|
+
function jU({ className: e, ...t }) {
|
|
32406
32415
|
return /* @__PURE__ */ b(ch.Tab, {
|
|
32407
32416
|
"data-slot": "tabs-trigger",
|
|
32408
|
-
className: F(
|
|
32417
|
+
className: F(EU.item, e),
|
|
32409
32418
|
...t
|
|
32410
32419
|
});
|
|
32411
32420
|
}
|
|
32412
|
-
function
|
|
32421
|
+
function MU({ className: e, ...t }) {
|
|
32413
32422
|
return /* @__PURE__ */ b(ch.Panel, {
|
|
32414
32423
|
"data-slot": "tabs-content",
|
|
32415
32424
|
className: F("nm-tabs__panel", e),
|
|
@@ -32417,12 +32426,12 @@ function jU({ className: e, ...t }) {
|
|
|
32417
32426
|
});
|
|
32418
32427
|
}
|
|
32419
32428
|
// src/ui/components/nm-toggle/nm-toggle.tsx
|
|
32420
|
-
var
|
|
32429
|
+
var NU = ["default", "outline"], PU = [
|
|
32421
32430
|
"sm",
|
|
32422
32431
|
"default",
|
|
32423
32432
|
"lg"
|
|
32424
32433
|
];
|
|
32425
|
-
function
|
|
32434
|
+
function FU({ className: e, variant: t = "default", size: n = "default", ...r }) {
|
|
32426
32435
|
return /* @__PURE__ */ b(vh, {
|
|
32427
32436
|
"data-slot": "toggle",
|
|
32428
32437
|
"data-variant": t,
|
|
@@ -32432,21 +32441,21 @@ function PU({ className: e, variant: t = "default", size: n = "default", ...r })
|
|
|
32432
32441
|
});
|
|
32433
32442
|
}
|
|
32434
32443
|
// src/ui/config/nm-top-bar.ts
|
|
32435
|
-
var
|
|
32444
|
+
var IU = {
|
|
32436
32445
|
root: "nm-header",
|
|
32437
32446
|
end: "nm-header__end"
|
|
32438
|
-
},
|
|
32439
|
-
function
|
|
32440
|
-
return
|
|
32447
|
+
}, LU = W("interface-nm-top-bar");
|
|
32448
|
+
function RU(e) {
|
|
32449
|
+
return LU.debug("render", "top-bar", {
|
|
32441
32450
|
end: e.end != null,
|
|
32442
32451
|
menu: e.menu != null
|
|
32443
32452
|
}), /* @__PURE__ */ x("header", {
|
|
32444
|
-
className:
|
|
32453
|
+
className: IU.root,
|
|
32445
32454
|
children: [
|
|
32446
32455
|
e.menu,
|
|
32447
32456
|
e.children,
|
|
32448
32457
|
e.end == null ? null : /* @__PURE__ */ b("div", {
|
|
32449
|
-
className:
|
|
32458
|
+
className: IU.end,
|
|
32450
32459
|
"data-hidden-narrow": e.endHidden === !0 ? "true" : "false",
|
|
32451
32460
|
children: e.end
|
|
32452
32461
|
})
|
|
@@ -32454,12 +32463,12 @@ function LU(e) {
|
|
|
32454
32463
|
});
|
|
32455
32464
|
}
|
|
32456
32465
|
// src/ui/config/nordman-login.ts
|
|
32457
|
-
var
|
|
32466
|
+
var zU = {
|
|
32458
32467
|
signIn: "signIn",
|
|
32459
32468
|
register: "register",
|
|
32460
32469
|
forgot: "forgot",
|
|
32461
32470
|
reset: "reset"
|
|
32462
|
-
},
|
|
32471
|
+
}, BU = "nm-login-form", VU = {
|
|
32463
32472
|
username: "username",
|
|
32464
32473
|
password: "password",
|
|
32465
32474
|
displayName: "displayName",
|
|
@@ -32467,11 +32476,11 @@ var RU = {
|
|
|
32467
32476
|
registerPassword: "register-password",
|
|
32468
32477
|
confirmPassword: "confirm-password",
|
|
32469
32478
|
resetPassword: "reset-password"
|
|
32470
|
-
},
|
|
32479
|
+
}, HU = {
|
|
32471
32480
|
viewBox: "0 0 24 24",
|
|
32472
32481
|
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",
|
|
32473
32482
|
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"
|
|
32474
|
-
},
|
|
32483
|
+
}, UU = "nordman", WU = {
|
|
32475
32484
|
skip: "Hoppa till innehållet",
|
|
32476
32485
|
identifier: "Email",
|
|
32477
32486
|
identifierPlaceholder: "name@mail.com",
|
|
@@ -32504,7 +32513,7 @@ var RU = {
|
|
|
32504
32513
|
registerEmailInUse: "Det finns redan ett konto med den här e-postadressen.",
|
|
32505
32514
|
registerDone: "Kolla mejlet för att bekräfta kontot.",
|
|
32506
32515
|
registerDoneReady: "Kontot är skapat. Logga in."
|
|
32507
|
-
},
|
|
32516
|
+
}, GU = {
|
|
32508
32517
|
skip: "Skip to content",
|
|
32509
32518
|
identifier: "Email",
|
|
32510
32519
|
identifierPlaceholder: "name@mail.com",
|
|
@@ -32538,13 +32547,13 @@ var RU = {
|
|
|
32538
32547
|
registerDone: "Check your email to confirm the account.",
|
|
32539
32548
|
registerDoneReady: "The account is created. Log in."
|
|
32540
32549
|
};
|
|
32541
|
-
function
|
|
32542
|
-
return hV(e ?? fV()) ?
|
|
32550
|
+
function KU(e) {
|
|
32551
|
+
return hV(e ?? fV()) ? GU : WU;
|
|
32543
32552
|
}
|
|
32544
32553
|
var $ = new Proxy({}, { get(e, t) {
|
|
32545
|
-
return
|
|
32546
|
-
} }),
|
|
32547
|
-
function
|
|
32554
|
+
return KU()[t];
|
|
32555
|
+
} }), qU = W("interface-nordman-login-reveal");
|
|
32556
|
+
function JU(e) {
|
|
32548
32557
|
let t = e.revealed ? $.hidePassword : $.showPassword;
|
|
32549
32558
|
return /* @__PURE__ */ b("button", {
|
|
32550
32559
|
className: "nm-login__reveal",
|
|
@@ -32553,22 +32562,22 @@ function qU(e) {
|
|
|
32553
32562
|
"aria-pressed": e.revealed,
|
|
32554
32563
|
"data-testid": "cta-reveal-password",
|
|
32555
32564
|
onClick: () => {
|
|
32556
|
-
|
|
32565
|
+
qU.debug("toggle", e.revealed ? "hide" : "show"), e.onToggle();
|
|
32557
32566
|
},
|
|
32558
32567
|
children: /* @__PURE__ */ b("svg", {
|
|
32559
32568
|
className: "nm-login__reveal-icon",
|
|
32560
|
-
viewBox:
|
|
32569
|
+
viewBox: HU.viewBox,
|
|
32561
32570
|
"aria-hidden": "true",
|
|
32562
32571
|
focusable: "false",
|
|
32563
32572
|
children: /* @__PURE__ */ b("path", {
|
|
32564
|
-
d: e.revealed ?
|
|
32573
|
+
d: e.revealed ? HU.hide : HU.show,
|
|
32565
32574
|
fill: "currentColor"
|
|
32566
32575
|
})
|
|
32567
32576
|
})
|
|
32568
32577
|
});
|
|
32569
32578
|
}
|
|
32570
32579
|
// src/ui/components/nordman-login-field/nordman-login-field.tsx
|
|
32571
|
-
function
|
|
32580
|
+
function YU(e) {
|
|
32572
32581
|
let t = e.type === "password", [n, r] = p(!1), i = t && n ? "text" : e.type, a = /* @__PURE__ */ b("input", {
|
|
32573
32582
|
className: t ? "nm-login__control nm-login__control--secret" : "nm-login__control",
|
|
32574
32583
|
id: e.id,
|
|
@@ -32590,7 +32599,7 @@ function JU(e) {
|
|
|
32590
32599
|
}), e.accessory]
|
|
32591
32600
|
}), t ? /* @__PURE__ */ x("div", {
|
|
32592
32601
|
className: "nm-login__control-wrap",
|
|
32593
|
-
children: [a, /* @__PURE__ */ b(
|
|
32602
|
+
children: [a, /* @__PURE__ */ b(JU, {
|
|
32594
32603
|
revealed: n,
|
|
32595
32604
|
onToggle: () => r((e) => !e)
|
|
32596
32605
|
})]
|
|
@@ -32598,43 +32607,43 @@ function JU(e) {
|
|
|
32598
32607
|
});
|
|
32599
32608
|
}
|
|
32600
32609
|
// src/ui/components/nordman-login-register/nordman-login-register.tsx
|
|
32601
|
-
var
|
|
32602
|
-
function
|
|
32610
|
+
var XU = W("interface-nordman-login-register");
|
|
32611
|
+
function ZU(e) {
|
|
32603
32612
|
function t(t) {
|
|
32604
32613
|
t.preventDefault();
|
|
32605
32614
|
let n = new FormData(t.currentTarget);
|
|
32606
|
-
|
|
32607
|
-
username: String(n.get(
|
|
32608
|
-
displayName: String(n.get(
|
|
32609
|
-
password: String(n.get(
|
|
32615
|
+
XU.debug("submit", "start"), e.onRegister({
|
|
32616
|
+
username: String(n.get(VU.registerUsername) ?? ""),
|
|
32617
|
+
displayName: String(n.get(VU.displayName) ?? ""),
|
|
32618
|
+
password: String(n.get(VU.registerPassword) ?? "")
|
|
32610
32619
|
});
|
|
32611
32620
|
}
|
|
32612
32621
|
return /* @__PURE__ */ x("form", {
|
|
32613
32622
|
className: "nm-login__form",
|
|
32614
|
-
id:
|
|
32623
|
+
id: BU,
|
|
32615
32624
|
onSubmit: t,
|
|
32616
32625
|
children: [
|
|
32617
|
-
/* @__PURE__ */ b(
|
|
32618
|
-
id:
|
|
32619
|
-
name:
|
|
32626
|
+
/* @__PURE__ */ b(YU, {
|
|
32627
|
+
id: VU.registerUsername,
|
|
32628
|
+
name: VU.registerUsername,
|
|
32620
32629
|
label: $.identifier,
|
|
32621
32630
|
type: "email",
|
|
32622
32631
|
autoComplete: "email",
|
|
32623
32632
|
placeholder: $.identifierPlaceholder,
|
|
32624
32633
|
required: !0
|
|
32625
32634
|
}),
|
|
32626
|
-
/* @__PURE__ */ b(
|
|
32627
|
-
id:
|
|
32628
|
-
name:
|
|
32635
|
+
/* @__PURE__ */ b(YU, {
|
|
32636
|
+
id: VU.displayName,
|
|
32637
|
+
name: VU.displayName,
|
|
32629
32638
|
label: $.displayName,
|
|
32630
32639
|
type: "text",
|
|
32631
32640
|
autoComplete: "name",
|
|
32632
32641
|
minLength: 3,
|
|
32633
32642
|
required: !0
|
|
32634
32643
|
}),
|
|
32635
|
-
/* @__PURE__ */ b(
|
|
32636
|
-
id:
|
|
32637
|
-
name:
|
|
32644
|
+
/* @__PURE__ */ b(YU, {
|
|
32645
|
+
id: VU.registerPassword,
|
|
32646
|
+
name: VU.registerPassword,
|
|
32638
32647
|
label: $.password,
|
|
32639
32648
|
type: "password",
|
|
32640
32649
|
autoComplete: "new-password",
|
|
@@ -32657,32 +32666,32 @@ function XU(e) {
|
|
|
32657
32666
|
});
|
|
32658
32667
|
}
|
|
32659
32668
|
// src/ui/components/nordman-login-sign-in/nordman-login-sign-in.tsx
|
|
32660
|
-
var
|
|
32661
|
-
function
|
|
32669
|
+
var QU = W("interface-nordman-login-sign-in");
|
|
32670
|
+
function $U(e) {
|
|
32662
32671
|
function t(t) {
|
|
32663
32672
|
t.preventDefault();
|
|
32664
|
-
let n = new FormData(t.currentTarget), r = String(n.get(
|
|
32665
|
-
|
|
32673
|
+
let n = new FormData(t.currentTarget), r = String(n.get(VU.username) ?? ""), i = String(n.get(VU.password) ?? "");
|
|
32674
|
+
QU.debug("submit", "start"), e.onSignIn({
|
|
32666
32675
|
username: r,
|
|
32667
32676
|
password: i
|
|
32668
32677
|
});
|
|
32669
32678
|
}
|
|
32670
32679
|
return /* @__PURE__ */ x("form", {
|
|
32671
32680
|
className: "nm-login__form",
|
|
32672
|
-
id:
|
|
32681
|
+
id: BU,
|
|
32673
32682
|
onSubmit: t,
|
|
32674
32683
|
children: [
|
|
32675
|
-
/* @__PURE__ */ b(
|
|
32676
|
-
id:
|
|
32677
|
-
name:
|
|
32684
|
+
/* @__PURE__ */ b(YU, {
|
|
32685
|
+
id: VU.username,
|
|
32686
|
+
name: VU.username,
|
|
32678
32687
|
label: $.identifier,
|
|
32679
32688
|
type: "text",
|
|
32680
32689
|
autoComplete: "username",
|
|
32681
32690
|
placeholder: $.identifierPlaceholder
|
|
32682
32691
|
}),
|
|
32683
|
-
/* @__PURE__ */ b(
|
|
32684
|
-
id:
|
|
32685
|
-
name:
|
|
32692
|
+
/* @__PURE__ */ b(YU, {
|
|
32693
|
+
id: VU.password,
|
|
32694
|
+
name: VU.password,
|
|
32686
32695
|
label: $.password,
|
|
32687
32696
|
type: "password",
|
|
32688
32697
|
autoComplete: "current-password",
|
|
@@ -32712,12 +32721,12 @@ function QU(e) {
|
|
|
32712
32721
|
});
|
|
32713
32722
|
}
|
|
32714
32723
|
// src/ui/components/nordman-login-forgot/nordman-login-forgot.tsx
|
|
32715
|
-
var
|
|
32716
|
-
function
|
|
32724
|
+
var eW = W("interface-nordman-login-forgot");
|
|
32725
|
+
function tW(e) {
|
|
32717
32726
|
function t(t) {
|
|
32718
32727
|
t.preventDefault();
|
|
32719
|
-
let n = new FormData(t.currentTarget), r = String(n.get(
|
|
32720
|
-
|
|
32728
|
+
let n = new FormData(t.currentTarget), r = String(n.get(VU.username) ?? "");
|
|
32729
|
+
eW.debug("submit", "start"), e.onRequestReset({ identifier: r });
|
|
32721
32730
|
}
|
|
32722
32731
|
return e.sent ? /* @__PURE__ */ b("p", {
|
|
32723
32732
|
className: "nm-login__notice",
|
|
@@ -32725,11 +32734,11 @@ function eW(e) {
|
|
|
32725
32734
|
children: $.forgotSent
|
|
32726
32735
|
}) : /* @__PURE__ */ x("form", {
|
|
32727
32736
|
className: "nm-login__form",
|
|
32728
|
-
id:
|
|
32737
|
+
id: BU,
|
|
32729
32738
|
onSubmit: t,
|
|
32730
|
-
children: [/* @__PURE__ */ b(
|
|
32731
|
-
id:
|
|
32732
|
-
name:
|
|
32739
|
+
children: [/* @__PURE__ */ b(YU, {
|
|
32740
|
+
id: VU.username,
|
|
32741
|
+
name: VU.username,
|
|
32733
32742
|
label: $.identifier,
|
|
32734
32743
|
type: "text",
|
|
32735
32744
|
autoComplete: "username",
|
|
@@ -32749,7 +32758,7 @@ function eW(e) {
|
|
|
32749
32758
|
});
|
|
32750
32759
|
}
|
|
32751
32760
|
// src/ui/components/nordman-login-google/nordman-login-google.tsx
|
|
32752
|
-
function
|
|
32761
|
+
function nW(e) {
|
|
32753
32762
|
return mV(), /* @__PURE__ */ b("div", {
|
|
32754
32763
|
className: "nm-login__google-wrap",
|
|
32755
32764
|
children: /* @__PURE__ */ b(jC, {
|
|
@@ -32765,17 +32774,17 @@ function tW(e) {
|
|
|
32765
32774
|
});
|
|
32766
32775
|
}
|
|
32767
32776
|
// src/ui/components/nordman-login-reset/nordman-login-reset.tsx
|
|
32768
|
-
var
|
|
32769
|
-
function
|
|
32777
|
+
var rW = W("interface-nordman-login-reset");
|
|
32778
|
+
function iW(e) {
|
|
32770
32779
|
let [t, n] = p(!1);
|
|
32771
32780
|
function r(t) {
|
|
32772
32781
|
t.preventDefault();
|
|
32773
|
-
let r = new FormData(t.currentTarget), i = String(r.get(
|
|
32774
|
-
i === String(r.get(
|
|
32782
|
+
let r = new FormData(t.currentTarget), i = String(r.get(VU.resetPassword) ?? "");
|
|
32783
|
+
i === String(r.get(VU.confirmPassword) ?? "") ? (n(!1), rW.debug("submit", "start"), e.onResetPassword({ password: i })) : (rW.warn("submit", "mismatch"), n(!0));
|
|
32775
32784
|
}
|
|
32776
32785
|
return /* @__PURE__ */ x("form", {
|
|
32777
32786
|
className: "nm-login__form",
|
|
32778
|
-
id:
|
|
32787
|
+
id: BU,
|
|
32779
32788
|
onSubmit: r,
|
|
32780
32789
|
children: [
|
|
32781
32790
|
t ? /* @__PURE__ */ b("p", {
|
|
@@ -32783,18 +32792,18 @@ function rW(e) {
|
|
|
32783
32792
|
role: "alert",
|
|
32784
32793
|
children: $.mismatch
|
|
32785
32794
|
}) : null,
|
|
32786
|
-
/* @__PURE__ */ b(
|
|
32787
|
-
id:
|
|
32788
|
-
name:
|
|
32795
|
+
/* @__PURE__ */ b(YU, {
|
|
32796
|
+
id: VU.resetPassword,
|
|
32797
|
+
name: VU.resetPassword,
|
|
32789
32798
|
label: $.password,
|
|
32790
32799
|
type: "password",
|
|
32791
32800
|
autoComplete: "new-password",
|
|
32792
32801
|
placeholder: $.passwordPlaceholder,
|
|
32793
32802
|
minLength: e.passwordMin
|
|
32794
32803
|
}),
|
|
32795
|
-
/* @__PURE__ */ b(
|
|
32796
|
-
id:
|
|
32797
|
-
name:
|
|
32804
|
+
/* @__PURE__ */ b(YU, {
|
|
32805
|
+
id: VU.confirmPassword,
|
|
32806
|
+
name: VU.confirmPassword,
|
|
32798
32807
|
label: $.confirmPassword,
|
|
32799
32808
|
type: "password",
|
|
32800
32809
|
autoComplete: "new-password",
|
|
@@ -32816,12 +32825,12 @@ function rW(e) {
|
|
|
32816
32825
|
});
|
|
32817
32826
|
}
|
|
32818
32827
|
// src/ui/components/nordman-login-hero/nordman-login-hero.tsx
|
|
32819
|
-
var
|
|
32828
|
+
var aW = {
|
|
32820
32829
|
square: "glow",
|
|
32821
32830
|
triangle: "glow tri",
|
|
32822
32831
|
circle: "glow circle"
|
|
32823
32832
|
};
|
|
32824
|
-
function
|
|
32833
|
+
function oW(e) {
|
|
32825
32834
|
let t = f(null);
|
|
32826
32835
|
return c(() => {
|
|
32827
32836
|
let n = window.NordmanUI;
|
|
@@ -32833,51 +32842,51 @@ function aW(e) {
|
|
|
32833
32842
|
}), () => r.abort();
|
|
32834
32843
|
}, [e.shape]), /* @__PURE__ */ b("div", {
|
|
32835
32844
|
ref: t,
|
|
32836
|
-
className:
|
|
32845
|
+
className: aW[e.shape],
|
|
32837
32846
|
"aria-hidden": "true",
|
|
32838
32847
|
children: /* @__PURE__ */ b("i", {})
|
|
32839
32848
|
});
|
|
32840
32849
|
}
|
|
32841
32850
|
// src/ui/components/nordman-login/nordman-login.tsx
|
|
32842
|
-
function
|
|
32843
|
-
return e.view ===
|
|
32851
|
+
function sW(e) {
|
|
32852
|
+
return e.view === zU.register ? /* @__PURE__ */ b(ZU, {
|
|
32844
32853
|
pending: e.pending,
|
|
32845
32854
|
passwordMin: e.passwordMin,
|
|
32846
32855
|
onRegister: e.onRegister
|
|
32847
|
-
}) : e.view ===
|
|
32856
|
+
}) : e.view === zU.forgot ? /* @__PURE__ */ b(tW, {
|
|
32848
32857
|
pending: e.pending,
|
|
32849
32858
|
sent: e.sent,
|
|
32850
32859
|
onRequestReset: e.onRequestReset
|
|
32851
|
-
}) : e.view ===
|
|
32860
|
+
}) : e.view === zU.reset ? /* @__PURE__ */ b(iW, {
|
|
32852
32861
|
pending: e.pending,
|
|
32853
32862
|
passwordMin: e.passwordMin,
|
|
32854
32863
|
onResetPassword: e.onResetPassword
|
|
32855
|
-
}) : e.googleOnly ? /* @__PURE__ */ b(
|
|
32864
|
+
}) : e.googleOnly ? /* @__PURE__ */ b(nW, {
|
|
32856
32865
|
pending: e.pending,
|
|
32857
32866
|
onContinueWithGoogle: () => e.onContinueWithGoogle?.()
|
|
32858
|
-
}) : /* @__PURE__ */ b(
|
|
32867
|
+
}) : /* @__PURE__ */ b($U, {
|
|
32859
32868
|
pending: e.pending,
|
|
32860
32869
|
passwordMin: e.passwordMin,
|
|
32861
|
-
onForgot: () => e.onView(
|
|
32870
|
+
onForgot: () => e.onView(zU.forgot),
|
|
32862
32871
|
onSignIn: e.onSignIn
|
|
32863
32872
|
});
|
|
32864
32873
|
}
|
|
32865
|
-
function
|
|
32866
|
-
let t = e.view ===
|
|
32874
|
+
function cW(e) {
|
|
32875
|
+
let t = e.view === zU.register, n = e.view === zU.signIn;
|
|
32867
32876
|
return c(() => {
|
|
32868
|
-
document.documentElement.dataset.interface =
|
|
32877
|
+
document.documentElement.dataset.interface = UU;
|
|
32869
32878
|
}, []), /* @__PURE__ */ x("div", {
|
|
32870
32879
|
className: e.googleOnly ? "nm-login nm-login--google-only" : "nm-login",
|
|
32871
32880
|
"data-testid": "nordman-login",
|
|
32872
32881
|
children: [
|
|
32873
32882
|
/* @__PURE__ */ b("a", {
|
|
32874
32883
|
className: "nm-login__skip",
|
|
32875
|
-
href: `#${
|
|
32884
|
+
href: `#${BU}`,
|
|
32876
32885
|
children: $.skip
|
|
32877
32886
|
}),
|
|
32878
32887
|
/* @__PURE__ */ b("div", {
|
|
32879
32888
|
className: "nm-login__visual",
|
|
32880
|
-
children: /* @__PURE__ */ b(
|
|
32889
|
+
children: /* @__PURE__ */ b(oW, { shape: e.shape })
|
|
32881
32890
|
}),
|
|
32882
32891
|
/* @__PURE__ */ b("section", {
|
|
32883
32892
|
className: "nm-login__panel",
|
|
@@ -32893,11 +32902,11 @@ function sW(e) {
|
|
|
32893
32902
|
role: "alert",
|
|
32894
32903
|
children: e.error
|
|
32895
32904
|
}) : null,
|
|
32896
|
-
e.notice && e.view !==
|
|
32905
|
+
e.notice && e.view !== zU.forgot ? /* @__PURE__ */ b("p", {
|
|
32897
32906
|
className: "nm-login__notice",
|
|
32898
32907
|
children: e.notice
|
|
32899
32908
|
}) : null,
|
|
32900
|
-
e.children ??
|
|
32909
|
+
e.children ?? sW(e),
|
|
32901
32910
|
e.after,
|
|
32902
32911
|
e.children == null && e.hideSwitch !== !0 && !e.googleOnly ? /* @__PURE__ */ x("p", {
|
|
32903
32912
|
className: "nm-login__switch",
|
|
@@ -32907,7 +32916,7 @@ function sW(e) {
|
|
|
32907
32916
|
/* @__PURE__ */ b("button", {
|
|
32908
32917
|
className: "nm-login__switch-action",
|
|
32909
32918
|
type: "button",
|
|
32910
|
-
onClick: () => e.onView(t || !n ?
|
|
32919
|
+
onClick: () => e.onView(t || !n ? zU.signIn : zU.register),
|
|
32911
32920
|
children: n ? $.registerAction : $.signInAction
|
|
32912
32921
|
})
|
|
32913
32922
|
]
|
|
@@ -32919,9 +32928,9 @@ function sW(e) {
|
|
|
32919
32928
|
});
|
|
32920
32929
|
}
|
|
32921
32930
|
// src/ui/components/nordman-toggle/nordman-toggle.tsx
|
|
32922
|
-
var
|
|
32923
|
-
function
|
|
32924
|
-
return
|
|
32931
|
+
var lW = W("interface-nordman-toggle");
|
|
32932
|
+
function uW(e) {
|
|
32933
|
+
return lW.debug("render", e.active, { items: e.items.length }), /* @__PURE__ */ b("nav", {
|
|
32925
32934
|
className: "nm-toggle",
|
|
32926
32935
|
"data-testid": e.testId,
|
|
32927
32936
|
children: e.items.map((t) => /* @__PURE__ */ b("a", {
|
|
@@ -32934,12 +32943,12 @@ function lW(e) {
|
|
|
32934
32943
|
});
|
|
32935
32944
|
}
|
|
32936
32945
|
// src/ui/config/nm-app-panel.ts
|
|
32937
|
-
var
|
|
32946
|
+
var dW = {
|
|
32938
32947
|
code: "code",
|
|
32939
32948
|
preview: "preview",
|
|
32940
32949
|
environment: "environment",
|
|
32941
32950
|
machine: "machine"
|
|
32942
|
-
},
|
|
32951
|
+
}, fW = {
|
|
32943
32952
|
code: "/interface/app-panel/code.svg",
|
|
32944
32953
|
play: "/interface/app-panel/play.svg",
|
|
32945
32954
|
ellipsis: "/interface/app-panel/ellipsis.svg",
|
|
@@ -32948,7 +32957,7 @@ var uW = {
|
|
|
32948
32957
|
network: "/interface/app-panel/network.svg",
|
|
32949
32958
|
message: "/interface/app-panel/message.svg",
|
|
32950
32959
|
copy: "/interface/app-panel/copy.svg"
|
|
32951
|
-
},
|
|
32960
|
+
}, pW = {
|
|
32952
32961
|
root: "nm-app-panel",
|
|
32953
32962
|
body: "nm-app-panel__body",
|
|
32954
32963
|
canvas: "nm-app-panel__canvas",
|
|
@@ -32963,35 +32972,35 @@ var uW = {
|
|
|
32963
32972
|
blocked: "nm-app-panel__blocked",
|
|
32964
32973
|
blockedTitle: "nm-app-panel__blocked-title",
|
|
32965
32974
|
blockedBody: "nm-app-panel__blocked-body"
|
|
32966
|
-
},
|
|
32975
|
+
}, mW = {
|
|
32967
32976
|
root: "nm-logs-panel",
|
|
32968
32977
|
body: "nm-logs-panel__body"
|
|
32969
|
-
},
|
|
32978
|
+
}, hW = ["left", "right"], gW = [
|
|
32970
32979
|
.22,
|
|
32971
32980
|
1,
|
|
32972
32981
|
.36,
|
|
32973
32982
|
1
|
|
32974
|
-
],
|
|
32975
|
-
function _W() {
|
|
32976
|
-
return vW();
|
|
32977
|
-
}
|
|
32983
|
+
], _W = .25;
|
|
32978
32984
|
function vW() {
|
|
32979
|
-
|
|
32985
|
+
return yW();
|
|
32986
|
+
}
|
|
32987
|
+
function yW() {
|
|
32988
|
+
if (typeof document > "u") return _W;
|
|
32980
32989
|
let e = getComputedStyle(document.documentElement).getPropertyValue("--reveal").trim();
|
|
32981
|
-
return e.endsWith("ms") ? parseFloat(e) / 1e3 : e.endsWith("s") ? parseFloat(e) :
|
|
32990
|
+
return e.endsWith("ms") ? parseFloat(e) / 1e3 : e.endsWith("s") ? parseFloat(e) : _W;
|
|
32982
32991
|
}
|
|
32983
|
-
function
|
|
32992
|
+
function bW(e) {
|
|
32984
32993
|
return e ? { duration: 0 } : {
|
|
32985
|
-
duration:
|
|
32986
|
-
ease: [...
|
|
32994
|
+
duration: yW(),
|
|
32995
|
+
ease: [...gW]
|
|
32987
32996
|
};
|
|
32988
32997
|
}
|
|
32989
|
-
function
|
|
32998
|
+
function xW() {
|
|
32990
32999
|
let e = v();
|
|
32991
|
-
return d(() =>
|
|
33000
|
+
return d(() => bW(e === !0), [e]);
|
|
32992
33001
|
}
|
|
32993
33002
|
// src/ui/config/nm-header-icons.ts
|
|
32994
|
-
var
|
|
33003
|
+
var SW = [
|
|
32995
33004
|
"chat",
|
|
32996
33005
|
"bot",
|
|
32997
33006
|
"app",
|
|
@@ -33003,7 +33012,7 @@ var xW = [
|
|
|
33003
33012
|
"play",
|
|
33004
33013
|
"schedule",
|
|
33005
33014
|
"search"
|
|
33006
|
-
],
|
|
33015
|
+
], CW = {
|
|
33007
33016
|
chat: "/interface/header/chat.svg",
|
|
33008
33017
|
bot: "/interface/header/bot.svg",
|
|
33009
33018
|
app: "/interface/header/app.svg",
|
|
@@ -33015,16 +33024,16 @@ var xW = [
|
|
|
33015
33024
|
play: "/interface/header/play.svg",
|
|
33016
33025
|
schedule: "/interface/header/schedule.svg",
|
|
33017
33026
|
search: "/interface/header/search.svg"
|
|
33018
|
-
},
|
|
33027
|
+
}, wW = { root: "nm-icon-border" }, TW = /* @__PURE__ */ "activity.app-window.archive-restore.arrow-down.arrow-left-right.arrow-right-left.arrow-up-down.arrow-up-left.ban.beaker.bitcoin.bone.book-copy.bookmark.bookmark-plus.calendar-days.chart-column.chart-column-increasing.chart-line.check-check.chevron-left.chevron-right.chevron-up.chevrons-up-down.circle.circle-alert.circle-check-big.circle-dashed.circle-dot.circle-plus.circle-question-mark.circle-x.clock-3.clock-4.cloud-sun.code-xml.copy-check.corner-down-right.database.dices.earth.external-link.eye.eye-off.fast-forward.feather.file-clock.file-code.file-image.file-json.file-pen-line.file-plus-2.file-question-mark.file-search.file-spreadsheet.file-type-2.file-up.file-x-2.files.film.folder-kanban.funnel-x.git-branch-plus.git-commit-horizontal.git-fork.graduation-cap.grip-vertical.history.image-off.image-up.info.key-round.keyboard.laptop.layers.layout-dashboard.library.life-buoy.lightbulb.link.link-2-off.list.list-tree.map-pin.message-circle-question-mark.message-square.message-square-plus.message-square-text.messages-square.minimize-2.mouse-pointer-click.newspaper.notebook-pen.octagon-pause.paperclip.pen-line.pen-tool.pin-off.plane-takeoff.plug-zap.qr-code.radio.refresh-cw.rocket.rotate-cw.scale.scan-search.scroll-text.send.share-2.shield.shield-check.shield-ellipsis.shopping-bag.sliders-horizontal.sparkles.square-pen.square-slash.square-terminal.star.table-2.text-quote.trash.trending-up.triangle-alert.trophy.type.user.user-check.users.utensils-crossed.variable.video.wand-sparkles.zap.zap-off.zoom-in.zoom-out".split("."), EW = "--nm-radius-scale", DW = {
|
|
33019
33028
|
sm: 4,
|
|
33020
33029
|
md: 8,
|
|
33021
33030
|
lg: 12
|
|
33022
|
-
},
|
|
33031
|
+
}, OW = {
|
|
33023
33032
|
row: "--nm-space-4",
|
|
33024
33033
|
menu: "--nm-space-8",
|
|
33025
33034
|
field: "--nm-space-12",
|
|
33026
33035
|
composer: "--nm-space-24"
|
|
33027
|
-
},
|
|
33036
|
+
}, kW = {
|
|
33028
33037
|
sm: "--nm-radius-sm",
|
|
33029
33038
|
md: "--nm-radius-md",
|
|
33030
33039
|
lg: "--nm-radius-lg",
|
|
@@ -33033,17 +33042,17 @@ var xW = [
|
|
|
33033
33042
|
field: "--nm-field-radius",
|
|
33034
33043
|
menu: "--nm-menu-radius",
|
|
33035
33044
|
row: "--nm-row-radius"
|
|
33036
|
-
},
|
|
33045
|
+
}, AW = {
|
|
33037
33046
|
control: "calc(var(--nm-icon-control) / 2 * var(--nm-radius-scale))",
|
|
33038
33047
|
composer: "var(--nm-radius-lg)",
|
|
33039
33048
|
field: "var(--nm-control-r)",
|
|
33040
33049
|
menu: "var(--nm-radius-lg)",
|
|
33041
33050
|
row: "var(--nm-control-r)"
|
|
33042
|
-
},
|
|
33051
|
+
}, jW = {
|
|
33043
33052
|
sm: "calc(4px * var(--nm-radius-scale))",
|
|
33044
33053
|
md: "calc(8px * var(--nm-radius-scale))",
|
|
33045
33054
|
lg: "calc(12px * var(--nm-radius-scale))"
|
|
33046
|
-
},
|
|
33055
|
+
}, MW = {
|
|
33047
33056
|
pad: "--nm-menu-pad",
|
|
33048
33057
|
menuRadius: "--nm-control-menu-radius",
|
|
33049
33058
|
optionRadius: "--nm-control-option-radius",
|
|
@@ -33053,7 +33062,7 @@ var xW = [
|
|
|
33053
33062
|
panelItemRadius: "--nm-panel-item-radius",
|
|
33054
33063
|
rowInline: "--nm-row-inline",
|
|
33055
33064
|
rowInlineEnd: "--nm-row-inline-end"
|
|
33056
|
-
},
|
|
33065
|
+
}, NW = [
|
|
33057
33066
|
"plus",
|
|
33058
33067
|
"folder",
|
|
33059
33068
|
"chats",
|
|
@@ -33064,7 +33073,7 @@ var xW = [
|
|
|
33064
33073
|
"settings",
|
|
33065
33074
|
"search",
|
|
33066
33075
|
"plusSm"
|
|
33067
|
-
],
|
|
33076
|
+
], PW = {
|
|
33068
33077
|
plus: "/interface/rail/plus.svg",
|
|
33069
33078
|
folder: "/interface/rail/folder.svg",
|
|
33070
33079
|
chats: "/interface/rail/chats.svg",
|
|
@@ -33075,29 +33084,29 @@ var xW = [
|
|
|
33075
33084
|
settings: "/interface/rail/settings.svg",
|
|
33076
33085
|
search: "/interface/rail/search.svg",
|
|
33077
33086
|
plusSm: "/interface/rail/plus-sm.svg"
|
|
33078
|
-
},
|
|
33087
|
+
}, FW = 750, IW = 7e3, LW = 500;
|
|
33079
33088
|
// src/ui/lib/appearance/appearanceState.ts
|
|
33080
|
-
function
|
|
33089
|
+
function RW(e) {
|
|
33081
33090
|
return typeof e == "string" && Rz.includes(e);
|
|
33082
33091
|
}
|
|
33083
|
-
function
|
|
33092
|
+
function zW(e) {
|
|
33084
33093
|
return typeof e == "string" && Gz.includes(e);
|
|
33085
33094
|
}
|
|
33086
|
-
function
|
|
33095
|
+
function BW(e) {
|
|
33087
33096
|
return typeof e == "string" && Yz.includes(e);
|
|
33088
33097
|
}
|
|
33089
|
-
function
|
|
33098
|
+
function VW(e, t, n, r) {
|
|
33090
33099
|
let i = typeof e == "number" ? e : Number(e);
|
|
33091
33100
|
return Number.isFinite(i) ? Math.min(n, Math.max(t, Math.round(i))) : r;
|
|
33092
33101
|
}
|
|
33093
|
-
function
|
|
33102
|
+
function HW() {
|
|
33094
33103
|
return typeof window > "u" || typeof window.matchMedia != "function" || window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
33095
33104
|
}
|
|
33096
|
-
function
|
|
33105
|
+
function UW(e, t = HW()) {
|
|
33097
33106
|
return e === "light" ? "light" : e === "dark" || t ? "dark" : "light";
|
|
33098
33107
|
}
|
|
33099
|
-
function
|
|
33100
|
-
return
|
|
33108
|
+
function WW() {
|
|
33109
|
+
return QW({
|
|
33101
33110
|
mode: Qz.mode,
|
|
33102
33111
|
themePresetId: Qz.themePresetId,
|
|
33103
33112
|
accentPreset: Qz.accentPreset,
|
|
@@ -33113,98 +33122,98 @@ function UW() {
|
|
|
33113
33122
|
borders: Qz.borders
|
|
33114
33123
|
});
|
|
33115
33124
|
}
|
|
33116
|
-
function
|
|
33125
|
+
function GW(e, t) {
|
|
33117
33126
|
let n = eB(e) ?? eB(Qz.themePresetId), r = t === "dark" ? n.dark : n.light;
|
|
33118
33127
|
return {
|
|
33119
33128
|
backgroundHex: r.canvas,
|
|
33120
33129
|
foregroundHex: r.foreground
|
|
33121
33130
|
};
|
|
33122
33131
|
}
|
|
33123
|
-
var
|
|
33132
|
+
var KW = {
|
|
33124
33133
|
"#000000/#ffffff": "dark",
|
|
33125
33134
|
"#fcfaf6/#0a0a0a": "light"
|
|
33126
33135
|
};
|
|
33127
|
-
function
|
|
33128
|
-
let r =
|
|
33136
|
+
function qW(e, t, n) {
|
|
33137
|
+
let r = KW[`${t}/${n}`.toLowerCase()];
|
|
33129
33138
|
return e !== Qz.themePresetId || r == null ? {
|
|
33130
33139
|
backgroundHex: t,
|
|
33131
33140
|
foregroundHex: n
|
|
33132
|
-
} :
|
|
33141
|
+
} : GW(e, r);
|
|
33133
33142
|
}
|
|
33134
|
-
function
|
|
33135
|
-
let t =
|
|
33143
|
+
function JW(e) {
|
|
33144
|
+
let t = WW();
|
|
33136
33145
|
if (!e || typeof e != "object") return t;
|
|
33137
|
-
let n = e, r = typeof n.themePresetId == "string" && eB(n.themePresetId) ? n.themePresetId : t.themePresetId, i =
|
|
33146
|
+
let n = e, r = typeof n.themePresetId == "string" && eB(n.themePresetId) ? n.themePresetId : t.themePresetId, i = qW(r, wz(typeof n.backgroundHex == "string" ? n.backgroundHex : t.backgroundHex, t.backgroundHex), wz(typeof n.foregroundHex == "string" ? n.foregroundHex : t.foregroundHex, t.foregroundHex));
|
|
33138
33147
|
return {
|
|
33139
|
-
mode:
|
|
33148
|
+
mode: RW(n.mode) ? n.mode : t.mode,
|
|
33140
33149
|
themePresetId: r,
|
|
33141
|
-
accentPreset:
|
|
33150
|
+
accentPreset: BW(n.accentPreset) ? n.accentPreset : t.accentPreset,
|
|
33142
33151
|
customAccentHex: wz(typeof n.customAccentHex == "string" ? n.customAccentHex : t.customAccentHex, t.customAccentHex),
|
|
33143
33152
|
...i,
|
|
33144
|
-
uiFontSizePx:
|
|
33145
|
-
uiFontWeight: Math.round(
|
|
33146
|
-
uiIconSizePx:
|
|
33147
|
-
uiRadiusPercent:
|
|
33148
|
-
uiSpacePercent:
|
|
33149
|
-
contrast:
|
|
33150
|
-
borders:
|
|
33153
|
+
uiFontSizePx: VW(n.uiFontSizePx, zz.min, zz.max, t.uiFontSizePx),
|
|
33154
|
+
uiFontWeight: Math.round(VW(n.uiFontWeight, Vz.min, Vz.max, t.uiFontWeight) / 100) * 100,
|
|
33155
|
+
uiIconSizePx: VW(n.uiIconSizePx, Hz.min, Hz.max, t.uiIconSizePx),
|
|
33156
|
+
uiRadiusPercent: VW(n.uiRadiusPercent, Uz.min, Uz.max, t.uiRadiusPercent),
|
|
33157
|
+
uiSpacePercent: VW(n.uiSpacePercent, Wz.min, Wz.max, t.uiSpacePercent),
|
|
33158
|
+
contrast: VW(n.contrast, Jz.min, Jz.max, t.contrast),
|
|
33159
|
+
borders: zW(n.borders) ? n.borders : t.borders
|
|
33151
33160
|
};
|
|
33152
33161
|
}
|
|
33153
|
-
function
|
|
33162
|
+
function YW() {
|
|
33154
33163
|
if (typeof window > "u") return null;
|
|
33155
33164
|
try {
|
|
33156
33165
|
let e = window.localStorage.getItem(Iz);
|
|
33157
|
-
return e ?
|
|
33166
|
+
return e ? JW(JSON.parse(e)) : null;
|
|
33158
33167
|
} catch {
|
|
33159
33168
|
return null;
|
|
33160
33169
|
}
|
|
33161
33170
|
}
|
|
33162
|
-
function
|
|
33171
|
+
function XW(e) {
|
|
33163
33172
|
typeof window < "u" && window.localStorage.setItem(Iz, JSON.stringify(e));
|
|
33164
33173
|
}
|
|
33165
|
-
function
|
|
33174
|
+
function ZW(e, t) {
|
|
33166
33175
|
if (e.themePresetId === "custom") return e;
|
|
33167
|
-
let { backgroundHex: n, foregroundHex: r } =
|
|
33176
|
+
let { backgroundHex: n, foregroundHex: r } = GW(e.themePresetId, t), i = eB(e.themePresetId), a = {
|
|
33168
33177
|
...e,
|
|
33169
33178
|
backgroundHex: wz(n, e.backgroundHex),
|
|
33170
33179
|
foregroundHex: wz(r, e.foregroundHex)
|
|
33171
33180
|
};
|
|
33172
33181
|
return a.accentPreset === "default" && i && (a.customAccentHex = wz(i.swatch, a.customAccentHex)), a;
|
|
33173
33182
|
}
|
|
33174
|
-
function
|
|
33175
|
-
return
|
|
33183
|
+
function QW(e, t = HW()) {
|
|
33184
|
+
return ZW(e, UW(e.mode, t));
|
|
33176
33185
|
}
|
|
33177
33186
|
// src/ui/lib/appearance/markTokens.ts
|
|
33178
|
-
var
|
|
33187
|
+
var $W = 4.6, eG = .09, tG = 120, nG = {
|
|
33179
33188
|
min: .4,
|
|
33180
33189
|
max: .7
|
|
33181
|
-
},
|
|
33182
|
-
function
|
|
33190
|
+
}, rG = .02;
|
|
33191
|
+
function iG(e, t, n, r) {
|
|
33183
33192
|
let i = n[0] ?? "#000000", a = kz(i, "#FFFFFF") > kz(i, "#000000"), o = a ? 1 : -1;
|
|
33184
|
-
for (let r = a ? .68 : .42; r >= 0 && r <= 1; r += o *
|
|
33193
|
+
for (let r = a ? .68 : .42; r >= 0 && r <= 1; r += o * rG) {
|
|
33185
33194
|
let i = jz(e, t, r);
|
|
33186
|
-
if (n.every((e) => kz(i, e) >=
|
|
33195
|
+
if (n.every((e) => kz(i, e) >= $W)) return i;
|
|
33187
33196
|
}
|
|
33188
33197
|
return r;
|
|
33189
33198
|
}
|
|
33190
|
-
function
|
|
33191
|
-
let r = Dz(t, n,
|
|
33199
|
+
function aG(e, t, n) {
|
|
33200
|
+
let r = Dz(t, n, eG), { hue: i, saturation: a } = Az(e), o = Math.min(nG.max, Math.max(nG.min, a)), s = (e) => iG((i + e) % 360, o, [t, r], n);
|
|
33192
33201
|
return {
|
|
33193
33202
|
"--nm-mark-primary": s(0),
|
|
33194
|
-
"--nm-mark-secondary": s(
|
|
33203
|
+
"--nm-mark-secondary": s(tG),
|
|
33195
33204
|
"--nm-mark-tertiary": s(240),
|
|
33196
33205
|
"--nm-mark-surface": r
|
|
33197
33206
|
};
|
|
33198
33207
|
}
|
|
33199
33208
|
// src/ui/lib/appearance/deriveTokens.ts
|
|
33200
|
-
function
|
|
33209
|
+
function oG(e) {
|
|
33201
33210
|
return e.accentPreset === "custom" || e.accentPreset === "default" && e.themePresetId === "custom" ? wz(e.customAccentHex, "#D2BB9C") : e.accentPreset === "default" ? eB(e.themePresetId)?.swatch ?? Xz[0].swatch : Zz[e.accentPreset];
|
|
33202
33211
|
}
|
|
33203
|
-
function
|
|
33212
|
+
function sG(e, t) {
|
|
33204
33213
|
let n = e / Jz.max, r = t === "dark" ? .06 : .05;
|
|
33205
33214
|
return r + n * ((t === "dark" ? .42 : .38) - r);
|
|
33206
33215
|
}
|
|
33207
|
-
function
|
|
33216
|
+
function cG(e) {
|
|
33208
33217
|
let t = `${e}px`;
|
|
33209
33218
|
return {
|
|
33210
33219
|
"--nm-icon-button": t,
|
|
@@ -33212,18 +33221,18 @@ function sG(e) {
|
|
|
33212
33221
|
"--nm-rail-icon": t
|
|
33213
33222
|
};
|
|
33214
33223
|
}
|
|
33215
|
-
function
|
|
33224
|
+
function lG(e, t) {
|
|
33216
33225
|
let n = t + 16;
|
|
33217
33226
|
return { "--nm-ui-chip-min-height": `${Math.max(n, e + 16)}px` };
|
|
33218
33227
|
}
|
|
33219
|
-
function
|
|
33228
|
+
function uG(e) {
|
|
33220
33229
|
let t = e / Uz.default;
|
|
33221
|
-
return { [
|
|
33230
|
+
return { [EW]: String(t) };
|
|
33222
33231
|
}
|
|
33223
|
-
function
|
|
33232
|
+
function dG(e) {
|
|
33224
33233
|
return { "--nm-space-scale": String(e / Wz.default) };
|
|
33225
33234
|
}
|
|
33226
|
-
function
|
|
33235
|
+
function fG(e) {
|
|
33227
33236
|
let t = (t) => String(Math.min(Vz.max, Math.max(Vz.min, e + t)));
|
|
33228
33237
|
return {
|
|
33229
33238
|
"--nm-weight-light": t(-100),
|
|
@@ -33233,7 +33242,7 @@ function dG(e) {
|
|
|
33233
33242
|
"--nm-weight-bold": t(300)
|
|
33234
33243
|
};
|
|
33235
33244
|
}
|
|
33236
|
-
function
|
|
33245
|
+
function pG(e) {
|
|
33237
33246
|
let t = e / zz.default, n = `${e}px`, r = `${Math.max(zz.min, e - 2)}px`;
|
|
33238
33247
|
return {
|
|
33239
33248
|
"--nm-type-body": n,
|
|
@@ -33249,7 +33258,7 @@ function fG(e) {
|
|
|
33249
33258
|
"--font-size-sm": r
|
|
33250
33259
|
};
|
|
33251
33260
|
}
|
|
33252
|
-
function
|
|
33261
|
+
function mG(e, t) {
|
|
33253
33262
|
let n = Tz(t);
|
|
33254
33263
|
return {
|
|
33255
33264
|
"--text-primary": e["--nm-fg-rgb"],
|
|
@@ -33277,12 +33286,12 @@ function pG(e, t) {
|
|
|
33277
33286
|
"--nordman-accent": n
|
|
33278
33287
|
};
|
|
33279
33288
|
}
|
|
33280
|
-
function
|
|
33289
|
+
function hG(e, t, n, r) {
|
|
33281
33290
|
let i = Fz[t];
|
|
33282
33291
|
return e.themePresetId === Xz[0].id && e.contrast === Jz.default && n.toLowerCase() === i.canvas && r.toLowerCase() === i.fg;
|
|
33283
33292
|
}
|
|
33284
|
-
function
|
|
33285
|
-
let n = wz(e.backgroundHex, "#000000"), r = wz(e.foregroundHex, "#ffffff"), i =
|
|
33293
|
+
function gG(e, t) {
|
|
33294
|
+
let n = wz(e.backgroundHex, "#000000"), r = wz(e.foregroundHex, "#ffffff"), i = oG(e), a = sG(e.contrast, t), o = hG(e, t, n, r) ? Fz[t] : null, s = o?.panel ?? Dz(n, r, a), c = o?.raised ?? Dz(n, r, a * .72), l = o?.inset ?? Dz(n, r, a * .85), u = o?.line ?? Dz(n, r, Math.min(.55, a + .12)), d = o?.lineStrong ?? Dz(n, r, Math.min(.6, a + .17)), f = o?.stroke ?? Dz(n, r, Math.min(.65, a + .22)), p = o?.muted ?? Dz(r, n, .22), m = o?.subtle ?? Dz(r, n, .38), h = {
|
|
33286
33295
|
"--nm-canvas": n,
|
|
33287
33296
|
"--nm-fg": r,
|
|
33288
33297
|
"--nm-fg-muted": p,
|
|
@@ -33307,36 +33316,36 @@ function hG(e, t) {
|
|
|
33307
33316
|
"--nm-accent": i,
|
|
33308
33317
|
"--nm-accent-rgb": Tz(i),
|
|
33309
33318
|
...Pz(i, n, r),
|
|
33310
|
-
...
|
|
33311
|
-
...
|
|
33312
|
-
...
|
|
33313
|
-
...
|
|
33314
|
-
...
|
|
33315
|
-
...
|
|
33316
|
-
...
|
|
33319
|
+
...aG(i, n, r),
|
|
33320
|
+
...pG(e.uiFontSizePx),
|
|
33321
|
+
...fG(e.uiFontWeight),
|
|
33322
|
+
...cG(e.uiIconSizePx),
|
|
33323
|
+
...lG(e.uiFontSizePx, e.uiIconSizePx),
|
|
33324
|
+
...uG(e.uiRadiusPercent),
|
|
33325
|
+
...dG(e.uiSpacePercent),
|
|
33317
33326
|
"--nm-border-strength": Kz[e.borders]
|
|
33318
33327
|
};
|
|
33319
33328
|
return {
|
|
33320
33329
|
...h,
|
|
33321
|
-
...
|
|
33330
|
+
...mG(h, i)
|
|
33322
33331
|
};
|
|
33323
33332
|
}
|
|
33324
|
-
function
|
|
33333
|
+
function _G(e) {
|
|
33325
33334
|
return e;
|
|
33326
33335
|
}
|
|
33327
33336
|
// src/ui/lib/appearance/applyAppearance.ts
|
|
33328
|
-
var
|
|
33329
|
-
function
|
|
33337
|
+
var vG = W("interface-appearance-apply");
|
|
33338
|
+
function yG() {
|
|
33330
33339
|
return typeof window > "u" || typeof window.matchMedia != "function" || window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
33331
33340
|
}
|
|
33332
|
-
function
|
|
33341
|
+
function bG(e = document.documentElement) {
|
|
33333
33342
|
$z.forEach((t) => {
|
|
33334
33343
|
e.style.removeProperty(t);
|
|
33335
33344
|
}), e.removeAttribute(qz);
|
|
33336
33345
|
}
|
|
33337
|
-
function
|
|
33338
|
-
let n =
|
|
33339
|
-
return
|
|
33346
|
+
function xG(e, t = document.documentElement) {
|
|
33347
|
+
let n = UW(e.mode, yG()), r = gG(e, n);
|
|
33348
|
+
return vG.debug("apply", "appearance", {
|
|
33340
33349
|
mode: e.mode,
|
|
33341
33350
|
scheme: n,
|
|
33342
33351
|
theme: e.themePresetId
|
|
@@ -33345,7 +33354,7 @@ function bG(e, t = document.documentElement) {
|
|
|
33345
33354
|
}), t.setAttribute(qz, e.borders), typeof window < "u" && window.dispatchEvent(new CustomEvent(Lz)), { scheme: n };
|
|
33346
33355
|
}
|
|
33347
33356
|
// src/ui/lib/appearance/readLayoutMetrics.ts
|
|
33348
|
-
function
|
|
33357
|
+
function SG(e, t, n) {
|
|
33349
33358
|
let r = getComputedStyle(e).getPropertyValue(t).trim();
|
|
33350
33359
|
if (!r) return n;
|
|
33351
33360
|
if (r.endsWith("px")) {
|
|
@@ -33358,7 +33367,7 @@ function xG(e, t, n) {
|
|
|
33358
33367
|
}
|
|
33359
33368
|
return n;
|
|
33360
33369
|
}
|
|
33361
|
-
function
|
|
33362
|
-
return
|
|
33370
|
+
function CG(e = document.documentElement) {
|
|
33371
|
+
return SG(e, "--nm-icon-control", 34) + SG(e, "--nm-space-2", 2);
|
|
33363
33372
|
}
|
|
33364
|
-
export { Zz as NM_ACCENT_HEX, Yz as NM_ACCENT_PRESETS, uw as NM_AI_BADGE_TONES, K as NM_AI_CLASSES, sw as NM_AI_STATUS, Lz as NM_APPEARANCE_APPLIED_EVENT, Jz as NM_APPEARANCE_CONTRAST, $z as NM_APPEARANCE_CSS_VARS, Qz as NM_APPEARANCE_DEFAULTS, Rz as NM_APPEARANCE_MODES, Iz as NM_APPEARANCE_STORAGE_KEY, fW as NM_APP_PANEL_CLASSES, dW as NM_APP_PANEL_ICON_SRC, uW as NM_APP_PANEL_TABS, HE as NM_AVATAR_SIZES, YE as NM_BAR_OVERFLOW_CLASSES, XE as NM_BAR_OVERFLOW_TEST_IDS, qz as NM_BORDER_ATTRIBUTE, Kz as NM_BORDER_STRENGTH, Gz as NM_BORDER_STYLES, EC as NM_BUTTON_CLASSES, TC as NM_BUTTON_SIZES, wC as NM_BUTTON_TONES, xj as NM_CARD_SIZES, bj as NM_CARD_VARIANTS, PC as NM_CHATBOX_ACTION_CLASS, Lj as NM_CHATBOX_CLASSES, Nj as NM_CHATBOX_COMPOSER_ACTION_ICONS, Pj as NM_CHATBOX_DURING_RUN_MENU_ICONS, Aj as NM_CHATBOX_ICON_IDS, Mj as NM_CHATBOX_ICON_SRC, jj as NM_CHATBOX_INTEGRATION_ICON_PATH, Fj as NM_CHATBOX_LUCIDE_MAP, Rj as NM_CHATBOX_MENU_MODE, SC as NM_CHIP_SIZES, xC as NM_CHIP_TONES, qC as NM_CODE_BLOCK_SIZES, KC as NM_CODE_BLOCK_VARIANTS, nw as NM_CODE_LANGUAGES, Xj as NM_COLLECTION_ACTIONS, Yj as NM_COLLECTION_CLASSES, Gj as NM_COLLECTION_FILES_REFRESH_MS, Jj as NM_COLLECTION_ICON_SRC, Zj as NM_COLLECTION_MEDIA_KINDS, Kj as NM_COLLECTION_SCROLL_IDLE_MS, qj as NM_COLLECTION_VIEWS, Q as NM_COMPOSER_CLASSES, gz as NM_COMPOSER_COPY, _z as NM_COMPOSER_INLINE_MARK, vz as NM_COMPOSER_SHAPE_ATTRIBUTE, jW as NM_CONTROL_MENU_CSS_VARS, OC as NM_CONTROL_SHAPES, mW as NM_DRAWER_SIDES, pw as NM_DROPDOWN_ALIGN, q as NM_DROPDOWN_CLASSES, gw as NM_DROPDOWN_GAP_PX, hw as NM_DROPDOWN_REVEAL, _w as NM_DROPDOWN_SCROLL_IDLE_MS, mw as NM_DROPDOWN_SIDE, fw as NM_DROPDOWN_TONE, dw as NM_DROPDOWN_TRIGGER, wW as NM_EXTENDED_ICON_IDS, _M as NM_FIELD_CLASSES, hM as NM_FIELD_KINDS, gM as NM_FIELD_LAYOUT, Bz as NM_FONT_WEIGHTS, xW as NM_HEADER_ICON_IDS, SW as NM_HEADER_ICON_SRC, og as NM_ICONS, CW as NM_ICON_BORDER_CLASSES, NC as NM_ICON_BUTTON_CLASSES, MC as NM_ICON_BUTTON_TONES, ag as NM_ICON_IDS, QB as NM_LIST_ITEM_CLASSES, pW as NM_LOGS_PANEL_CLASSES, cC as NM_LUCIDE_EXTENDED, lC as NM_LUCIDE_FILLED_IDS, J as NM_MESSAGE_CLASSES, AT as NM_MESSAGE_ICON_GLYPH, kT as NM_MESSAGE_ICON_IDS, jT as NM_MESSAGE_ICON_SRC, sV as NM_MODAL_ACTION, lV as NM_MODAL_CLASSES, oV as NM_MODAL_FOOTER, cV as NM_MODAL_SCROLL_IDLE_MS, aV as NM_MODAL_SIZE, iV as NM_MODAL_TITLE, $V as NM_PANEL_BAR_CLASSES, QV as NM_PANEL_BAR_LAYOUT, zV as NM_PANEL_MEASURES, RV as NM_PANEL_VARIANTS, aH as NM_QUESTIONNAIRE_CLASSES, iH as NM_QUESTIONNAIRE_COPY, nH as NM_QUESTIONNAIRE_SHORTCUTS, rH as NM_QUESTIONNAIRE_VARIANTS, OW as NM_RADIUS_CSS_VARS, kW as NM_RADIUS_FORMULAS, AW as NM_RADIUS_PRIMITIVE_FORMULAS, EW as NM_RADIUS_PRIMITIVE_PX, TW as NM_RADIUS_SCALE_VAR, DW as NM_RADIUS_SEMANTIC_OFFSET_SPACE, FW as NM_RAIL_FACE_HOLD_MS, MW as NM_RAIL_ICON_IDS, NW as NM_RAIL_ICON_SRC, PW as NM_RAIL_SCROLL_IDLE_MS, IW as NM_RAIL_SEARCH_DEBOUNCE_MS, JV as NM_SEGMENTED_CLASSES, qV as NM_SEGMENTED_TONES, kC as NM_SHAPE_ATTRIBUTE, yH as NM_SIDEBAR_BUTTON_SIZES, bH as NM_SIDEBAR_BUTTON_VARIANTS, _H as NM_SIDEBAR_COLLAPSIBLE, CH as NM_SIDEBAR_MOBILE_QUERY, SH as NM_SIDEBAR_PEEK_LEAVE_MS, xH as NM_SIDEBAR_SHORTCUT, hH as NM_SIDEBAR_SIDES, vH as NM_SIDEBAR_STATES, gH as NM_SIDEBAR_VARIANTS, TN as NM_SIDE_PANEL_KINDS, EN as NM_SIDE_PANEL_SIZES, Fz as NM_SITE_PALETTE, aM as NM_SMALL_ICON_BUTTON_CLASSES, iM as NM_SMALL_ICON_BUTTON_TONES, gU as NM_TABLE_SIZES, hU as NM_TABLE_VARIANTS, TU as NM_TABS_CLASSES, Xz as NM_THEME_PRESETS, NU as NM_TOGGLE_SIZES, MU as NM_TOGGLE_VARIANTS, lw as NM_TOOL_STATES, FU as NM_TOP_BAR_CLASSES, NT as NM_TRACE_GLYPH_PATHS, MT as NM_TRACE_STATUSES, zz as NM_UI_FONT_SIZE_PX, Vz as NM_UI_FONT_WEIGHT, Hz as NM_UI_ICON_SIZE_PX, Uz as NM_UI_RADIUS_PERCENT, Wz as NM_UI_SPACE_PERCENT, RC as NORDMAN_CHROME_ICONS, LC as NORDMAN_CHROME_ICON_IDS, BC as NORDMAN_ICON_BUTTON_VARIANTS, BU as NORDMAN_LOGIN_FIELDS, zU as NORDMAN_LOGIN_FORM_ID, HU as NORDMAN_LOGIN_INTERFACE, VU as NORDMAN_LOGIN_REVEAL, RU as NORDMAN_LOGIN_VIEWS, kE as NmAlert, ME as NmAlertAction, jE as NmAlertDescription, NE as NmAlertDialog, BE as NmAlertDialogAction, VE as NmAlertDialogCancel, FE as NmAlertDialogContent, zE as NmAlertDialogDescription, LE as NmAlertDialogFooter, IE as NmAlertDialogHeader, RE as NmAlertDialogTitle, PE as NmAlertDialogTrigger, AE as NmAlertTitle, UE as NmAvatar, KE as NmAvatarBadge, GE as NmAvatarFallback, qE as NmAvatarGroup, JE as NmAvatarGroupCount, WE as NmAvatarImage, nE as NmBadge, nD as NmBarOverflow, rD as NmBrandLogo, iD as NmBreadcrumb, uD as NmBreadcrumbEllipsis, oD as NmBreadcrumbItem, sD as NmBreadcrumbLink, aD as NmBreadcrumbList, cD as NmBreadcrumbPage, lD as NmBreadcrumbSeparator, eE as NmBubble, jC as NmButton, fD as NmButtonGroup, pD as NmButtonGroupSeparator, mD as NmButtonGroupText, yj as NmCalendar, Sj as NmCard, Ej as NmCardAction, Dj as NmCardContent, Tj as NmCardDescription, Oj as NmCardFooter, Cj as NmCardHeader, kj as NmCardMedia, wj as NmCardTitle, sE as NmChainOfThought, OE as NmChat, Bj as NmChatbox, Ij as NmChatboxIcon, Vj as NmCheckbox, cE as NmCheckpoint, CC as NmChip, YC as NmCodeBlock, QC as NmCodeBlockActions, aw as NmCodeBlockContent, $C as NmCodeBlockCopyButton, ow as NmCodeBlockFooter, XC as NmCodeBlockHeader, ew as NmCodeBlockLine, ZC as NmCodeBlockTitle, Hj as NmCollapsible, Wj as NmCollapsibleContent, Uj as NmCollapsibleTrigger, rM as NmCollectionBar, mM as NmCollectionGrid, $N as NmCollectionQuery, nP as NmCollectionRowMenu, iP as NmCollectionTable, dM as NmCollectionTileActions, eM as NmCollectionTitle, CN as NmColorPicker, xN as NmColorSwatch, vM as NmCombobox, bM as NmComboboxContent, CM as NmComboboxEmpty, wM as NmComboboxGroup, yM as NmComboboxInput, SM as NmComboboxItem, TM as NmComboboxLabel, xM as NmComboboxList, EM as NmComboboxSeparator, nz as NmCommand, mz as NmCommandDescription, rz as NmCommandDialog, sz as NmCommandEmpty, az as NmCommandFilters, lz as NmCommandGroup, hz as NmCommandIcon, iz as NmCommandInput, dz as NmCommandItem, fz as NmCommandItemActions, oz as NmCommandList, cz as NmCommandLoading, uz as NmCommandSeparator, pz as NmCommandShortcut, fB as NmComposer, lE as NmConfirmation, dE as NmContext, pB as NmContextMenu, hB as NmContextMenuContent, mB as NmContextMenuTrigger, yB as NmDatePicker, bB as NmDateRangePicker, wB as NmDateTimePicker, qR as NmDialog, QR as NmDialogBody, YR as NmDialogClose, XR as NmDialogContent, tz as NmDialogDescription, $R as NmDialogFooter, ZR as NmDialogHeader, ez as NmDialogTitle, JR as NmDialogTrigger, TB as NmDrawer, DB as NmDrawerClose, OB as NmDrawerContent, MB as NmDrawerDescription, AB as NmDrawerFooter, kB as NmDrawerHeader, jB as NmDrawerTitle, EB as NmDrawerTrigger, wT as NmDropdown, Kw as NmDropdownBranch, nT as NmDropdownMenu, dT as NmDropdownMenuCheckboxItem, iT as NmDropdownMenuContent, _T as NmDropdownMenuDot, aT as NmDropdownMenuGroup, sT as NmDropdownMenuItem, yT as NmDropdownMenuItems, oT as NmDropdownMenuLabel, fT as NmDropdownMenuRadioGroup, pT as NmDropdownMenuRadioItem, mT as NmDropdownMenuSeparator, hT as NmDropdownMenuShortcut, cT as NmDropdownMenuSub, uT as NmDropdownMenuSubContent, lT as NmDropdownMenuSubTrigger, gT as NmDropdownMenuText, rT as NmDropdownMenuTrigger, eT as NmDropdownOptions, Uw as NmDropdownPanel, XN as NmField, RB as NmFieldContent, VB as NmFieldDescription, HB as NmFieldError, IB as NmFieldGroup, zB as NmFieldLabel, FB as NmFieldLegend, UB as NmFieldSeparator, PB as NmFieldSet, BB as NmFieldTitle, mE as NmFileTree, LB as NmFormField, WB as NmGallery, GB as NmGalleryItem, TT as NmHoverCard, DT as NmHoverCardContent, ET as NmHoverCardTrigger, G as NmIcon, $j as NmIconBorder, hE as NmInlineCitation, mN as NmInput, KB as NmInputGroup, qB as NmInputGroupAddon, YB as NmInputGroupInput, JB as NmInputGroupText, rE as NmItem, XB as NmKbd, ZB as NmKbdGroup, NB as NmLabel, eV as NmListItem, hC as NmLucide, tV as NmMenubar, nV as NmMenubarMenu, rV as NmMenubarTrigger, aE as NmMessage, FT as NmMessageActions, RT as NmMessageMeta, NV as NmModal, PV as NmModalAction, gE as NmModelSelector, xB as NmMonthPicker, FV as NmNativeSelect, LV as NmNativeSelectOptGroup, IV as NmNativeSelectOption, BV as NmPanel, WV as NmPanelActions, tH as NmPanelBar, GV as NmPanelContent, UV as NmPanelDescription, KV as NmPanelFooter, VV as NmPanelHeader, HV as NmPanelTitle, _E as NmPlan, hN as NmPopover, _N as NmPopoverContent, bN as NmPopoverDescription, vN as NmPopoverHeader, yN as NmPopoverTitle, gN as NmPopoverTrigger, OT as NmProgress, wN as NmProse, lH as NmQuestionnaire, vE as NmQueue, uH as NmRadioGroup, dH as NmRadioGroupItem, mH as NmRailIcon, oE as NmReasoning, kN as NmResizeHandle, ZV as NmSegmented, DM as NmSelect, AM as NmSelectContent, MM as NmSelectGroup, jM as NmSelectItem, NM as NmSelectLabel, PM as NmSelectSeparator, OM as NmSelectTrigger, kM as NmSelectValue, dD as NmSeparator, iE as NmSheet, BN as NmSidePanel, VN as NmSidePanelBody, HN as NmSidePanelKinds, IH as NmSidebar, eU as NmSidebarBar, sU as NmSidebarChevron, WH as NmSidebarContent, cU as NmSidebarDropdownMenu, HH as NmSidebarFooter, GH as NmSidebarGroup, qH as NmSidebarGroupAction, JH as NmSidebarGroupContent, KH as NmSidebarGroupLabel, VH as NmSidebarHeader, BH as NmSidebarInput, zH as NmSidebarInset, YH as NmSidebarMenu, QH as NmSidebarMenuAction, $H as NmSidebarMenuActions, tU as NmSidebarMenuBadge, ZH as NmSidebarMenuButton, XH as NmSidebarMenuItem, rU as NmSidebarMenuSkeleton, iU as NmSidebarMenuSub, oU as NmSidebarMenuSubButton, aU as NmSidebarMenuSubItem, nU as NmSidebarMenuText, FH as NmSidebarProvider, RH as NmSidebarRail, UH as NmSidebarSeparator, LH as NmSidebarTrigger, wH as NmSkeleton, lU as NmSlider, cM as NmSmallIconButton, bE as NmSources, uU as NmSpinner, SE as NmStackTrace, dU as NmStatusBar, fU as NmStatusBarItem, pU as NmStatusBarSpacer, EE as NmSubagent, DE as NmSuggestions, mU as NmSwitch, _U as NmTable, yU as NmTableBody, wU as NmTableCaption, CU as NmTableCell, bU as NmTableFooter, SU as NmTableHead, vU as NmTableHeader, xU as NmTableRow, DU as NmTabs, jU as NmTabsContent, kU as NmTabsList, OU as NmTabsRoot, AU as NmTabsTrigger, yE as NmTask, xE as NmTerminal, CE as NmTestResults, IT as NmTextShimmer, KN as NmTextarea, qN as NmTextareaPanel, CB as NmTimePicker, PU as NmToggle, TE as NmTool, AN as NmToolbar, PN as NmToolbarButton, jN as NmToolbarGroup, FN as NmToolbarInput, MN as NmToolbarSeparator, NN as NmToolbarSpacer, EH as NmTooltip, OH as NmTooltipContent, TH as NmTooltipProvider, DH as NmTooltipTrigger, LU as NmTopBar, HT as NmTrace, ZT as NmTraceBadge, XT as NmTraceBadges, UT as NmTraceCollapsible, GT as NmTraceCollapsibleContent, WT as NmTraceCollapsibleTrigger, YT as NmTraceDescription, VT as NmTraceGlyph, qT as NmTraceIcon, KT as NmTraceLine, JT as NmTraceTitle, IN as NmWorkspace, RN as NmWorkspaceBody, zN as NmWorkspaceFooter, LN as NmWorkspaceMain, GC as NordmanIconButton, sW as NordmanLogin, JU as NordmanLoginField, eW as NordmanLoginForgot, tW as NordmanLoginGoogle, aW as NordmanLoginHero, XU as NordmanLoginRegister, rW as NordmanLoginReset, qU as NordmanLoginReveal, QU as NordmanLoginSignIn, lW as NordmanToggle, bG as applyAppearanceState, ZW as applyThemePresetPalette, yG as clearAppliedAppearance, kz as contrastRatio, UW as createDefaultAppearanceState, tB as defaultThemePresetId, hG as deriveAppearanceTokens, bw as dropdownBranchPath, Vw as dropdownPortalHost, qw as findDropdownItem, eB as findThemePreset, pC as hasNmLucide, Az as hexToHsl, Tz as hexToRgbTriplet, jz as hslToHex, Cz as isHexColor, vw as isNmDropdownSeparator, fC as isNmIconAnimated, XW as mergeThemePresetColors, Dz as mixHex, Sw as nextExpandedBranches, cw as nmAiTraceStatus, DC as nmButtonClassName, IC as nmChatboxActionButtonClassName, F as nmClass, yw as nmDropdownSeparator, Iw as nmDropdownViewportMaxHeight, yW as nmFade, tw as nmHighlightedLines, FC as nmIconButtonClassName, _W as nmSettleSeconds, wz as normalizeHexColor, xw as openDropdownBranch, WW as paletteForPreset, qW as parseAppearanceState, Lw as placeNmDropdownPanel, Rw as placeNmDropdownRowPanel, zw as placeNmDropdownSubpanel, xG as readCssLengthPx, SG as readNmRailRowStridePx, JW as readStoredAppearanceState, aG as resolveAccentHex, HW as resolveAppearanceScheme, gG as themeModeFromAppearance, eD as useBarOverflow, bW as useNmFade, MH as useOptionalSidebar, OV as useReportSaveDirty, NH as useSidebar, jH as useSidebarVisible, kV as useTrackSave, YW as writeStoredAppearanceState };
|
|
33373
|
+
export { Zz as NM_ACCENT_HEX, Yz as NM_ACCENT_PRESETS, uw as NM_AI_BADGE_TONES, K as NM_AI_CLASSES, sw as NM_AI_STATUS, Lz as NM_APPEARANCE_APPLIED_EVENT, Jz as NM_APPEARANCE_CONTRAST, $z as NM_APPEARANCE_CSS_VARS, Qz as NM_APPEARANCE_DEFAULTS, Rz as NM_APPEARANCE_MODES, Iz as NM_APPEARANCE_STORAGE_KEY, pW as NM_APP_PANEL_CLASSES, fW as NM_APP_PANEL_ICON_SRC, dW as NM_APP_PANEL_TABS, HE as NM_AVATAR_SIZES, YE as NM_BAR_OVERFLOW_CLASSES, XE as NM_BAR_OVERFLOW_TEST_IDS, qz as NM_BORDER_ATTRIBUTE, Kz as NM_BORDER_STRENGTH, Gz as NM_BORDER_STYLES, EC as NM_BUTTON_CLASSES, TC as NM_BUTTON_SIZES, wC as NM_BUTTON_TONES, xj as NM_CARD_SIZES, bj as NM_CARD_VARIANTS, PC as NM_CHATBOX_ACTION_CLASS, Lj as NM_CHATBOX_CLASSES, Nj as NM_CHATBOX_COMPOSER_ACTION_ICONS, Pj as NM_CHATBOX_DURING_RUN_MENU_ICONS, Aj as NM_CHATBOX_ICON_IDS, Mj as NM_CHATBOX_ICON_SRC, jj as NM_CHATBOX_INTEGRATION_ICON_PATH, Fj as NM_CHATBOX_LUCIDE_MAP, Rj as NM_CHATBOX_MENU_MODE, SC as NM_CHIP_SIZES, xC as NM_CHIP_TONES, qC as NM_CODE_BLOCK_SIZES, KC as NM_CODE_BLOCK_VARIANTS, nw as NM_CODE_LANGUAGES, Xj as NM_COLLECTION_ACTIONS, Yj as NM_COLLECTION_CLASSES, Gj as NM_COLLECTION_FILES_REFRESH_MS, Jj as NM_COLLECTION_ICON_SRC, Zj as NM_COLLECTION_MEDIA_KINDS, Kj as NM_COLLECTION_SCROLL_IDLE_MS, qj as NM_COLLECTION_VIEWS, Q as NM_COMPOSER_CLASSES, gz as NM_COMPOSER_COPY, _z as NM_COMPOSER_INLINE_MARK, vz as NM_COMPOSER_SHAPE_ATTRIBUTE, MW as NM_CONTROL_MENU_CSS_VARS, OC as NM_CONTROL_SHAPES, hW as NM_DRAWER_SIDES, pw as NM_DROPDOWN_ALIGN, q as NM_DROPDOWN_CLASSES, gw as NM_DROPDOWN_GAP_PX, hw as NM_DROPDOWN_REVEAL, _w as NM_DROPDOWN_SCROLL_IDLE_MS, mw as NM_DROPDOWN_SIDE, fw as NM_DROPDOWN_TONE, dw as NM_DROPDOWN_TRIGGER, TW as NM_EXTENDED_ICON_IDS, _M as NM_FIELD_CLASSES, hM as NM_FIELD_KINDS, gM as NM_FIELD_LAYOUT, Bz as NM_FONT_WEIGHTS, SW as NM_HEADER_ICON_IDS, CW as NM_HEADER_ICON_SRC, og as NM_ICONS, wW as NM_ICON_BORDER_CLASSES, NC as NM_ICON_BUTTON_CLASSES, MC as NM_ICON_BUTTON_TONES, ag as NM_ICON_IDS, QB as NM_LIST_ITEM_CLASSES, mW as NM_LOGS_PANEL_CLASSES, cC as NM_LUCIDE_EXTENDED, lC as NM_LUCIDE_FILLED_IDS, J as NM_MESSAGE_CLASSES, AT as NM_MESSAGE_ICON_GLYPH, kT as NM_MESSAGE_ICON_IDS, jT as NM_MESSAGE_ICON_SRC, sV as NM_MODAL_ACTION, lV as NM_MODAL_CLASSES, oV as NM_MODAL_FOOTER, cV as NM_MODAL_SCROLL_IDLE_MS, aV as NM_MODAL_SIZE, iV as NM_MODAL_TITLE, $V as NM_PANEL_BAR_CLASSES, QV as NM_PANEL_BAR_LAYOUT, zV as NM_PANEL_MEASURES, RV as NM_PANEL_VARIANTS, aH as NM_QUESTIONNAIRE_CLASSES, iH as NM_QUESTIONNAIRE_COPY, nH as NM_QUESTIONNAIRE_SHORTCUTS, rH as NM_QUESTIONNAIRE_VARIANTS, kW as NM_RADIUS_CSS_VARS, AW as NM_RADIUS_FORMULAS, jW as NM_RADIUS_PRIMITIVE_FORMULAS, DW as NM_RADIUS_PRIMITIVE_PX, EW as NM_RADIUS_SCALE_VAR, OW as NM_RADIUS_SEMANTIC_OFFSET_SPACE, IW as NM_RAIL_FACE_HOLD_MS, NW as NM_RAIL_ICON_IDS, PW as NM_RAIL_ICON_SRC, FW as NM_RAIL_SCROLL_IDLE_MS, LW as NM_RAIL_SEARCH_DEBOUNCE_MS, JV as NM_SEGMENTED_CLASSES, qV as NM_SEGMENTED_TONES, kC as NM_SHAPE_ATTRIBUTE, yH as NM_SIDEBAR_BUTTON_SIZES, bH as NM_SIDEBAR_BUTTON_VARIANTS, _H as NM_SIDEBAR_COLLAPSIBLE, CH as NM_SIDEBAR_MOBILE_QUERY, SH as NM_SIDEBAR_PEEK_LEAVE_MS, xH as NM_SIDEBAR_SHORTCUT, hH as NM_SIDEBAR_SIDES, vH as NM_SIDEBAR_STATES, gH as NM_SIDEBAR_VARIANTS, TN as NM_SIDE_PANEL_KINDS, EN as NM_SIDE_PANEL_SIZES, Fz as NM_SITE_PALETTE, aM as NM_SMALL_ICON_BUTTON_CLASSES, iM as NM_SMALL_ICON_BUTTON_TONES, _U as NM_TABLE_SIZES, gU as NM_TABLE_VARIANTS, EU as NM_TABS_CLASSES, Xz as NM_THEME_PRESETS, PU as NM_TOGGLE_SIZES, NU as NM_TOGGLE_VARIANTS, lw as NM_TOOL_STATES, IU as NM_TOP_BAR_CLASSES, NT as NM_TRACE_GLYPH_PATHS, MT as NM_TRACE_STATUSES, zz as NM_UI_FONT_SIZE_PX, Vz as NM_UI_FONT_WEIGHT, Hz as NM_UI_ICON_SIZE_PX, Uz as NM_UI_RADIUS_PERCENT, Wz as NM_UI_SPACE_PERCENT, RC as NORDMAN_CHROME_ICONS, LC as NORDMAN_CHROME_ICON_IDS, BC as NORDMAN_ICON_BUTTON_VARIANTS, VU as NORDMAN_LOGIN_FIELDS, BU as NORDMAN_LOGIN_FORM_ID, UU as NORDMAN_LOGIN_INTERFACE, HU as NORDMAN_LOGIN_REVEAL, zU as NORDMAN_LOGIN_VIEWS, kE as NmAlert, ME as NmAlertAction, jE as NmAlertDescription, NE as NmAlertDialog, BE as NmAlertDialogAction, VE as NmAlertDialogCancel, FE as NmAlertDialogContent, zE as NmAlertDialogDescription, LE as NmAlertDialogFooter, IE as NmAlertDialogHeader, RE as NmAlertDialogTitle, PE as NmAlertDialogTrigger, AE as NmAlertTitle, UE as NmAvatar, KE as NmAvatarBadge, GE as NmAvatarFallback, qE as NmAvatarGroup, JE as NmAvatarGroupCount, WE as NmAvatarImage, nE as NmBadge, nD as NmBarOverflow, rD as NmBrandLogo, iD as NmBreadcrumb, uD as NmBreadcrumbEllipsis, oD as NmBreadcrumbItem, sD as NmBreadcrumbLink, aD as NmBreadcrumbList, cD as NmBreadcrumbPage, lD as NmBreadcrumbSeparator, eE as NmBubble, jC as NmButton, fD as NmButtonGroup, pD as NmButtonGroupSeparator, mD as NmButtonGroupText, yj as NmCalendar, Sj as NmCard, Ej as NmCardAction, Dj as NmCardContent, Tj as NmCardDescription, Oj as NmCardFooter, Cj as NmCardHeader, kj as NmCardMedia, wj as NmCardTitle, sE as NmChainOfThought, OE as NmChat, Bj as NmChatbox, Ij as NmChatboxIcon, Vj as NmCheckbox, cE as NmCheckpoint, CC as NmChip, YC as NmCodeBlock, QC as NmCodeBlockActions, aw as NmCodeBlockContent, $C as NmCodeBlockCopyButton, ow as NmCodeBlockFooter, XC as NmCodeBlockHeader, ew as NmCodeBlockLine, ZC as NmCodeBlockTitle, Hj as NmCollapsible, Wj as NmCollapsibleContent, Uj as NmCollapsibleTrigger, rM as NmCollectionBar, mM as NmCollectionGrid, $N as NmCollectionQuery, nP as NmCollectionRowMenu, iP as NmCollectionTable, dM as NmCollectionTileActions, eM as NmCollectionTitle, CN as NmColorPicker, xN as NmColorSwatch, vM as NmCombobox, bM as NmComboboxContent, CM as NmComboboxEmpty, wM as NmComboboxGroup, yM as NmComboboxInput, SM as NmComboboxItem, TM as NmComboboxLabel, xM as NmComboboxList, EM as NmComboboxSeparator, nz as NmCommand, mz as NmCommandDescription, rz as NmCommandDialog, sz as NmCommandEmpty, az as NmCommandFilters, lz as NmCommandGroup, hz as NmCommandIcon, iz as NmCommandInput, dz as NmCommandItem, fz as NmCommandItemActions, oz as NmCommandList, cz as NmCommandLoading, uz as NmCommandSeparator, pz as NmCommandShortcut, fB as NmComposer, lE as NmConfirmation, dE as NmContext, pB as NmContextMenu, hB as NmContextMenuContent, mB as NmContextMenuTrigger, yB as NmDatePicker, bB as NmDateRangePicker, wB as NmDateTimePicker, qR as NmDialog, QR as NmDialogBody, YR as NmDialogClose, XR as NmDialogContent, tz as NmDialogDescription, $R as NmDialogFooter, ZR as NmDialogHeader, ez as NmDialogTitle, JR as NmDialogTrigger, TB as NmDrawer, DB as NmDrawerClose, OB as NmDrawerContent, MB as NmDrawerDescription, AB as NmDrawerFooter, kB as NmDrawerHeader, jB as NmDrawerTitle, EB as NmDrawerTrigger, wT as NmDropdown, Kw as NmDropdownBranch, nT as NmDropdownMenu, dT as NmDropdownMenuCheckboxItem, iT as NmDropdownMenuContent, _T as NmDropdownMenuDot, aT as NmDropdownMenuGroup, sT as NmDropdownMenuItem, yT as NmDropdownMenuItems, oT as NmDropdownMenuLabel, fT as NmDropdownMenuRadioGroup, pT as NmDropdownMenuRadioItem, mT as NmDropdownMenuSeparator, hT as NmDropdownMenuShortcut, cT as NmDropdownMenuSub, uT as NmDropdownMenuSubContent, lT as NmDropdownMenuSubTrigger, gT as NmDropdownMenuText, rT as NmDropdownMenuTrigger, eT as NmDropdownOptions, Uw as NmDropdownPanel, XN as NmField, RB as NmFieldContent, VB as NmFieldDescription, HB as NmFieldError, IB as NmFieldGroup, zB as NmFieldLabel, FB as NmFieldLegend, UB as NmFieldSeparator, PB as NmFieldSet, BB as NmFieldTitle, mE as NmFileTree, LB as NmFormField, WB as NmGallery, GB as NmGalleryItem, TT as NmHoverCard, DT as NmHoverCardContent, ET as NmHoverCardTrigger, G as NmIcon, $j as NmIconBorder, hE as NmInlineCitation, mN as NmInput, KB as NmInputGroup, qB as NmInputGroupAddon, YB as NmInputGroupInput, JB as NmInputGroupText, rE as NmItem, XB as NmKbd, ZB as NmKbdGroup, NB as NmLabel, eV as NmListItem, hC as NmLucide, tV as NmMenubar, nV as NmMenubarMenu, rV as NmMenubarTrigger, aE as NmMessage, FT as NmMessageActions, RT as NmMessageMeta, NV as NmModal, PV as NmModalAction, gE as NmModelSelector, xB as NmMonthPicker, FV as NmNativeSelect, LV as NmNativeSelectOptGroup, IV as NmNativeSelectOption, BV as NmPanel, WV as NmPanelActions, tH as NmPanelBar, GV as NmPanelContent, UV as NmPanelDescription, KV as NmPanelFooter, VV as NmPanelHeader, HV as NmPanelTitle, _E as NmPlan, hN as NmPopover, _N as NmPopoverContent, bN as NmPopoverDescription, vN as NmPopoverHeader, yN as NmPopoverTitle, gN as NmPopoverTrigger, OT as NmProgress, wN as NmProse, lH as NmQuestionnaire, vE as NmQueue, uH as NmRadioGroup, dH as NmRadioGroupItem, mH as NmRailIcon, oE as NmReasoning, kN as NmResizeHandle, ZV as NmSegmented, DM as NmSelect, AM as NmSelectContent, MM as NmSelectGroup, jM as NmSelectItem, NM as NmSelectLabel, PM as NmSelectSeparator, OM as NmSelectTrigger, kM as NmSelectValue, dD as NmSeparator, iE as NmSheet, BN as NmSidePanel, VN as NmSidePanelBody, HN as NmSidePanelKinds, IH as NmSidebar, tU as NmSidebarBar, cU as NmSidebarChevron, GH as NmSidebarContent, lU as NmSidebarDropdownMenu, UH as NmSidebarFooter, KH as NmSidebarGroup, JH as NmSidebarGroupAction, YH as NmSidebarGroupContent, qH as NmSidebarGroupLabel, HH as NmSidebarHeader, VH as NmSidebarInput, BH as NmSidebarInset, XH as NmSidebarMenu, $H as NmSidebarMenuAction, eU as NmSidebarMenuActions, nU as NmSidebarMenuBadge, QH as NmSidebarMenuButton, ZH as NmSidebarMenuItem, iU as NmSidebarMenuSkeleton, aU as NmSidebarMenuSub, sU as NmSidebarMenuSubButton, oU as NmSidebarMenuSubItem, rU as NmSidebarMenuText, FH as NmSidebarProvider, zH as NmSidebarRail, WH as NmSidebarSeparator, LH as NmSidebarTrigger, RH as NmSidebarTriggerSpace, wH as NmSkeleton, uU as NmSlider, cM as NmSmallIconButton, bE as NmSources, dU as NmSpinner, SE as NmStackTrace, fU as NmStatusBar, pU as NmStatusBarItem, mU as NmStatusBarSpacer, EE as NmSubagent, DE as NmSuggestions, hU as NmSwitch, vU as NmTable, bU as NmTableBody, TU as NmTableCaption, wU as NmTableCell, xU as NmTableFooter, CU as NmTableHead, yU as NmTableHeader, SU as NmTableRow, OU as NmTabs, MU as NmTabsContent, AU as NmTabsList, kU as NmTabsRoot, jU as NmTabsTrigger, yE as NmTask, xE as NmTerminal, CE as NmTestResults, IT as NmTextShimmer, KN as NmTextarea, qN as NmTextareaPanel, CB as NmTimePicker, FU as NmToggle, TE as NmTool, AN as NmToolbar, PN as NmToolbarButton, jN as NmToolbarGroup, FN as NmToolbarInput, MN as NmToolbarSeparator, NN as NmToolbarSpacer, EH as NmTooltip, OH as NmTooltipContent, TH as NmTooltipProvider, DH as NmTooltipTrigger, RU as NmTopBar, HT as NmTrace, ZT as NmTraceBadge, XT as NmTraceBadges, UT as NmTraceCollapsible, GT as NmTraceCollapsibleContent, WT as NmTraceCollapsibleTrigger, YT as NmTraceDescription, VT as NmTraceGlyph, qT as NmTraceIcon, KT as NmTraceLine, JT as NmTraceTitle, IN as NmWorkspace, RN as NmWorkspaceBody, zN as NmWorkspaceFooter, LN as NmWorkspaceMain, GC as NordmanIconButton, cW as NordmanLogin, YU as NordmanLoginField, tW as NordmanLoginForgot, nW as NordmanLoginGoogle, oW as NordmanLoginHero, ZU as NordmanLoginRegister, iW as NordmanLoginReset, JU as NordmanLoginReveal, $U as NordmanLoginSignIn, uW as NordmanToggle, xG as applyAppearanceState, QW as applyThemePresetPalette, bG as clearAppliedAppearance, kz as contrastRatio, WW as createDefaultAppearanceState, tB as defaultThemePresetId, gG as deriveAppearanceTokens, bw as dropdownBranchPath, Vw as dropdownPortalHost, qw as findDropdownItem, eB as findThemePreset, pC as hasNmLucide, Az as hexToHsl, Tz as hexToRgbTriplet, jz as hslToHex, Cz as isHexColor, vw as isNmDropdownSeparator, fC as isNmIconAnimated, ZW as mergeThemePresetColors, Dz as mixHex, Sw as nextExpandedBranches, cw as nmAiTraceStatus, DC as nmButtonClassName, IC as nmChatboxActionButtonClassName, F as nmClass, yw as nmDropdownSeparator, Iw as nmDropdownViewportMaxHeight, bW as nmFade, tw as nmHighlightedLines, FC as nmIconButtonClassName, vW as nmSettleSeconds, wz as normalizeHexColor, xw as openDropdownBranch, GW as paletteForPreset, JW as parseAppearanceState, Lw as placeNmDropdownPanel, Rw as placeNmDropdownRowPanel, zw as placeNmDropdownSubpanel, SG as readCssLengthPx, CG as readNmRailRowStridePx, YW as readStoredAppearanceState, oG as resolveAccentHex, UW as resolveAppearanceScheme, _G as themeModeFromAppearance, eD as useBarOverflow, xW as useNmFade, MH as useOptionalSidebar, OV as useReportSaveDirty, NH as useSidebar, jH as useSidebarVisible, kV as useTrackSave, XW as writeStoredAppearanceState };
|