@glimstone/solid 4.5.0 → 4.5.1
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 -1
- package/dist/index.js +558 -558
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -11,13 +11,13 @@ import { t as he } from "./IconTipButton-BojUYQWU.js";
|
|
|
11
11
|
import { t as ge } from "./IconButton-Lzbq5Cst.js";
|
|
12
12
|
import { Dynamic as _e, addEventListener as ve, className as E, createComponent as D, delegateEvents as O, effect as k, insert as A, memo as j, mergeProps as M, setAttribute as N, setStyleProperty as ye, spread as P, style as F, template as I, use as L } from "solid-js/web";
|
|
13
13
|
import { For as R, Index as be, Match as z, Show as B, Switch as xe, children as V, createEffect as H, createMemo as U, createSignal as W, createUniqueId as G, mergeProps as K, on as q, onCleanup as J, onMount as Y, splitProps as X, untrack as Se, useContext as Ce } from "solid-js";
|
|
14
|
-
import { COLOR_NAMES_DE as we, COLOR_PICKER_TEXT as Te, COPIED_MS as Ee,
|
|
14
|
+
import { COLOR_NAMES_DE as we, COLOR_PICKER_TEXT as Te, COPIED_MS as Ee, GLIMSTONE_RELEASE_URL as De, GLIMSTONE_REPO as Oe, GLIMSTONE_VERSION as ke, MARKS as Ae, PATH_ROOM_PX as je, TOAST_MARKS as Me, WIDE_QUERY as Ne, anchorName as Pe, announce as Fe, appCardView as Ie, ariaSort as Le, attachNumberSteppers as Re, claimMenu as ze, closeMenuOutside as Be, colorPicker as Ve, columnValues as He, computeBubblePosition as Ue, copyText as We, countSelector as Ge, createFortressFlow as Ke, createSignInFlow as qe, donationHandlers as Je, doubtView as Ye, fieldErrorView as Xe, fieldWidthClass as Ze, fill as Z, floatColorPicker as Qe, focusByLetter as $e, focusFirstField as et, focusFirstMenuRow as tt, focusMenuRow as nt, focusMenuRowByLetter as rt, focusTreeRow as it, focusedAsker as at, hueVars as ot, isMenuHead as st, isTypeahead as ct, joinRefusalText as lt, keepReadmeFit as ut, labelInside as dt, listKey as ft, listOf as pt, listView as mt, liveRegionAttrs as ht, loadPaypal as gt, mailHref as _t, mediaMatches as vt, memberName as yt, menuIsOpen as bt, menuMove as xt, menuRowView as St, meterView as Ct, nearestColorName as wt, nextSort as Tt, normalizeHex as Et, offersMail as Dt, openInBrowser as Ot, openInstance as kt, openPopover as At, openSheet as jt, othersLine as Mt, permissionsWith as Nt, phraseReady as Pt, pillClassName as Ft, placeMenu as It, placeSubmenu as Lt, presenceTone as Rt, pressRowControl as zt, progressView as Bt, qrCode as Vt, readmePartClass as Ht, readmePartLabel as Ut, readmeSoon as Wt, readmeUnitClass as Gt, resetBlocked as Kt, returnFocus as qt, roveSelector as Jt, rovedIndex as Yt, runUpdateCheck as Xt, segmentView as Zt, selectByClick as Qt, selectorAxis as $t, selectorFlex as en, selectorTabId as tn, selectorTabId as nn, selectorView as rn, shake as an, showRefusal as on, sidebarRowView as sn, signInBlocked as cn, signInStage as ln, skeletonRowView as un, softBreaks as dn, stackWindow as fn, statusView as pn, storeShowOthers as mn, storedShowOthers as hn, subscribeMedia as gn, syncNumberSteppers as _n, tableCellClass as vn, textFieldClass as yn, tidyMenu as bn, toastPoliteness as xn, toggleSelection as Sn, trapDialogKeys as Cn, treeRows as wn, treeStep as Tn, updateFace as En, updateStage as Dn, versionLink as On, warnDeprecated as kn, watchSelectorFit as An, windowFocusTarget as jn, windowFoot as Mn } from "@glimstone/core";
|
|
15
15
|
// src/InfoBubble.tsx
|
|
16
|
-
var
|
|
16
|
+
var Nn = /*#__PURE__*/ I("<span data-glim=InfoBubble role=img tabindex=0><svg viewBox=\"0 0 16 16\"width=15 height=15 fill=none aria-hidden=true><circle cx=8 cy=8 r=7 stroke=currentColor stroke-width=1.3></circle><circle cx=8 cy=4.6 r=0.9 fill=currentColor></circle><path d=\"M8 7v4.4\"stroke=currentColor stroke-width=1.3 stroke-linecap=round>");
|
|
17
17
|
function Q(e) {
|
|
18
18
|
let t = K({ onAccent: !1 }, e), n = u(() => t.tip);
|
|
19
19
|
return [(() => {
|
|
20
|
-
var e =
|
|
20
|
+
var e = Nn(), r = n.ref;
|
|
21
21
|
return typeof r == "function" ? L(r, e) : n.ref = e, P(e, M({
|
|
22
22
|
get "aria-label"() {
|
|
23
23
|
return t.tip;
|
|
@@ -34,8 +34,8 @@ function Q(e) {
|
|
|
34
34
|
})(), j(() => n.bubble)];
|
|
35
35
|
}
|
|
36
36
|
// src/Card.tsx
|
|
37
|
-
var
|
|
38
|
-
function
|
|
37
|
+
var Pn = /*#__PURE__*/ I("<h2 class=glim-panel-heading>"), Fn = /*#__PURE__*/ I("<div data-glim=Card>");
|
|
38
|
+
function In(e) {
|
|
39
39
|
let [t, n] = X(e, [
|
|
40
40
|
"title",
|
|
41
41
|
"drawn",
|
|
@@ -45,7 +45,7 @@ function Pn(e) {
|
|
|
45
45
|
"nested"
|
|
46
46
|
]), r = V(() => t.drawn);
|
|
47
47
|
return (() => {
|
|
48
|
-
var e =
|
|
48
|
+
var e = Fn();
|
|
49
49
|
return P(e, M({ get "data-glim-title"() {
|
|
50
50
|
return t.title;
|
|
51
51
|
} }, n, {
|
|
@@ -53,14 +53,14 @@ function Pn(e) {
|
|
|
53
53
|
return `glim-panel glim-notch-card${t.nested ? " glim-panel--nested" : ""}${t.hueIndex === void 0 ? "" : " glim-hue"}`;
|
|
54
54
|
},
|
|
55
55
|
get style() {
|
|
56
|
-
return j(() => t.hueIndex !== void 0)() ? d(
|
|
56
|
+
return j(() => t.hueIndex !== void 0)() ? d(ot(t.hueIndex)) : void 0;
|
|
57
57
|
}
|
|
58
58
|
}), !1, !0), A(e, D(B, {
|
|
59
59
|
get when() {
|
|
60
60
|
return t.title || r() || t.hint;
|
|
61
61
|
},
|
|
62
62
|
get children() {
|
|
63
|
-
var e =
|
|
63
|
+
var e = Pn();
|
|
64
64
|
return A(e, D(l, {
|
|
65
65
|
tone: "heading",
|
|
66
66
|
size: "heading",
|
|
@@ -87,19 +87,19 @@ function Pn(e) {
|
|
|
87
87
|
})();
|
|
88
88
|
}
|
|
89
89
|
// src/ReadmeButton.tsx
|
|
90
|
-
var
|
|
90
|
+
var Ln = /*#__PURE__*/ I("<span class=glim-readme-btn-sheen aria-hidden=true>"), Rn = /*#__PURE__*/ I("<div data-glim=ReadmeButton>"), zn = /*#__PURE__*/ I("<span class=glim-readme-btn-art aria-hidden=true>"), Bn = /*#__PURE__*/ I("<span aria-hidden=true>"), Vn = /*#__PURE__*/ I("<span class=glim-readme-btn-sub>"), Hn = /*#__PURE__*/ I("<span class=glim-readme-btn-text><span class=glim-readme-btn-name>"), Un = /*#__PURE__*/ I("<span aria-disabled=true>"), Wn = /*#__PURE__*/ I("<a target=_blank rel=\"noreferrer noopener\">"), Gn = /*#__PURE__*/ I("<button type=button>"), Kn = /*#__PURE__*/ I("<span class=glim-readme-btn-hint>"), qn = /*#__PURE__*/ I("<span data-glim=BrandMark class=glim-brand-svg aria-hidden=true>");
|
|
91
91
|
function $(e) {
|
|
92
|
-
let t, n = U(() =>
|
|
93
|
-
H(q(() => e.parts.map((e) => `${e.name}\n${e.sub ?? ""}`).join("\n") + (n() ? e.soonLabel : ""), () => J(
|
|
92
|
+
let t, n = U(() => Wt(e.parts));
|
|
93
|
+
H(q(() => e.parts.map((e) => `${e.name}\n${e.sub ?? ""}`).join("\n") + (n() ? e.soonLabel : ""), () => J(ut(t))));
|
|
94
94
|
let r = V(() => e.mark), i = V(() => e.art);
|
|
95
95
|
return (() => {
|
|
96
|
-
var a =
|
|
96
|
+
var a = Rn(), o = t;
|
|
97
97
|
return typeof o == "function" ? L(o, a) : t = a, A(a, D(be, {
|
|
98
98
|
get each() {
|
|
99
99
|
return e.parts;
|
|
100
100
|
},
|
|
101
101
|
children: (t, a) => {
|
|
102
|
-
let o = () => n() ? e.soonLabel : t().sub, s = () =>
|
|
102
|
+
let o = () => n() ? e.soonLabel : t().sub, s = () => Ut(t(), o()), c = () => Ht(a, n()), l = () => D(B, {
|
|
103
103
|
get when() {
|
|
104
104
|
return a === 0 && i();
|
|
105
105
|
},
|
|
@@ -109,31 +109,31 @@ function $(e) {
|
|
|
109
109
|
return a === 0 && r();
|
|
110
110
|
},
|
|
111
111
|
get children() {
|
|
112
|
-
var t =
|
|
112
|
+
var t = Bn();
|
|
113
113
|
return A(t, r), k(() => E(t, `glim-readme-btn-mark ${e.markClass ?? ""}`)), t;
|
|
114
114
|
}
|
|
115
115
|
}), (() => {
|
|
116
|
-
var e =
|
|
116
|
+
var e = Hn(), n = e.firstChild;
|
|
117
117
|
return A(n, () => t().name), A(e, D(B, {
|
|
118
118
|
get when() {
|
|
119
119
|
return o();
|
|
120
120
|
},
|
|
121
121
|
get children() {
|
|
122
|
-
var e =
|
|
122
|
+
var e = Vn();
|
|
123
123
|
return A(e, o), e;
|
|
124
124
|
}
|
|
125
125
|
}), null), e;
|
|
126
126
|
})()];
|
|
127
127
|
},
|
|
128
128
|
get children() {
|
|
129
|
-
var e =
|
|
129
|
+
var e = zn();
|
|
130
130
|
return A(e, i), e;
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
return D(xe, {
|
|
134
134
|
get fallback() {
|
|
135
135
|
return (() => {
|
|
136
|
-
var e =
|
|
136
|
+
var e = Gn();
|
|
137
137
|
return e.$$click = () => t().onClick?.(), A(e, l), k((t) => {
|
|
138
138
|
var n = s(), r = c();
|
|
139
139
|
return n !== t.e && N(e, "aria-label", t.e = n), r !== t.t && E(e, t.t = r), t;
|
|
@@ -149,7 +149,7 @@ function $(e) {
|
|
|
149
149
|
return n();
|
|
150
150
|
},
|
|
151
151
|
get children() {
|
|
152
|
-
var e =
|
|
152
|
+
var e = Un();
|
|
153
153
|
return A(e, l), k((t) => {
|
|
154
154
|
var n = c(), r = s();
|
|
155
155
|
return n !== t.e && E(e, t.e = n), r !== t.t && N(e, "aria-label", t.t = r), t;
|
|
@@ -163,7 +163,7 @@ function $(e) {
|
|
|
163
163
|
return t().href;
|
|
164
164
|
},
|
|
165
165
|
get children() {
|
|
166
|
-
var n =
|
|
166
|
+
var n = Wn();
|
|
167
167
|
return n.$$click = (t) => e.onLinkClick?.(t), A(n, l), k((e) => {
|
|
168
168
|
var r = t().href, i = s(), a = c();
|
|
169
169
|
return r !== e.e && N(n, "href", e.e = r), i !== e.t && N(n, "aria-label", e.t = i), a !== e.a && E(n, e.a = a), e;
|
|
@@ -182,32 +182,32 @@ function $(e) {
|
|
|
182
182
|
return !n();
|
|
183
183
|
},
|
|
184
184
|
get children() {
|
|
185
|
-
return
|
|
185
|
+
return Ln();
|
|
186
186
|
}
|
|
187
187
|
}), null), A(a, D(B, {
|
|
188
188
|
get when() {
|
|
189
189
|
return e.hint;
|
|
190
190
|
},
|
|
191
191
|
children: (e) => (() => {
|
|
192
|
-
var t =
|
|
192
|
+
var t = Kn();
|
|
193
193
|
return A(t, D(Q, { get tip() {
|
|
194
194
|
return e();
|
|
195
195
|
} })), t;
|
|
196
196
|
})()
|
|
197
|
-
}), null), k(() => E(a,
|
|
197
|
+
}), null), k(() => E(a, Gt(e.brand, e.parts.length, !!e.note, n()))), a;
|
|
198
198
|
})();
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Jn(e) {
|
|
201
201
|
return (() => {
|
|
202
|
-
var t =
|
|
202
|
+
var t = qn();
|
|
203
203
|
return k(() => t.innerHTML = e.svg), t;
|
|
204
204
|
})();
|
|
205
205
|
}
|
|
206
206
|
O(["click"]);
|
|
207
207
|
// src/AboutCard.tsx
|
|
208
|
-
var
|
|
209
|
-
function
|
|
210
|
-
return D(
|
|
208
|
+
var Yn = /*#__PURE__*/ I("<p class=glim-info-text>"), Xn = /*#__PURE__*/ I("<div class=\"glim-readme-btn-rows glim-about-give\">"), Zn = /*#__PURE__*/ I("<ul class=glim-version-rows>"), Qn = /*#__PURE__*/ I("<div class=glim-version-actions>"), $n = /*#__PURE__*/ I("<span class=glim-version-sub>"), er = /*#__PURE__*/ I("<li class=glim-version-row><span class=glim-version-name><span class=glim-version-part>"), tr = /*#__PURE__*/ I("<span role=status class=glim-sr-only>"), nr = /*#__PURE__*/ I("<span class=\"glim-num glim-version-number\">"), rr = /*#__PURE__*/ I("<a target=_blank rel=\"noopener noreferrer\"class=\"glim-num glim-version-number\">"), ir = /*#__PURE__*/ I("<div class=glim-readme-btn-rows>"), ar = /*#__PURE__*/ I("<div data-glim=InfoTile>");
|
|
209
|
+
function or(e) {
|
|
210
|
+
return D(In, {
|
|
211
211
|
"data-glim": "InfoAboutCard",
|
|
212
212
|
get title() {
|
|
213
213
|
return e.text.title;
|
|
@@ -218,15 +218,15 @@ function ir(e) {
|
|
|
218
218
|
get children() {
|
|
219
219
|
return [
|
|
220
220
|
(() => {
|
|
221
|
-
var t =
|
|
221
|
+
var t = Yn();
|
|
222
222
|
return A(t, () => e.text.body), t;
|
|
223
223
|
})(),
|
|
224
224
|
(() => {
|
|
225
|
-
var t =
|
|
225
|
+
var t = Yn();
|
|
226
226
|
return A(t, () => e.text.coffee), t;
|
|
227
227
|
})(),
|
|
228
228
|
(() => {
|
|
229
|
-
var t =
|
|
229
|
+
var t = Xn();
|
|
230
230
|
return A(t, D($, {
|
|
231
231
|
brand: "coffee",
|
|
232
232
|
get parts() {
|
|
@@ -278,9 +278,9 @@ function ir(e) {
|
|
|
278
278
|
}
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
|
-
function
|
|
282
|
-
let t = K({ openUrl:
|
|
283
|
-
return D(
|
|
281
|
+
function sr(e) {
|
|
282
|
+
let t = K({ openUrl: Ot }, e), n = V(() => t.whatsNew), r = () => !n() && t.onReleaseNotes && t.text.releaseNotes;
|
|
283
|
+
return D(In, {
|
|
284
284
|
"data-glim": "InfoVersionCard",
|
|
285
285
|
get title() {
|
|
286
286
|
return t.text.title;
|
|
@@ -293,22 +293,22 @@ function ar(e) {
|
|
|
293
293
|
},
|
|
294
294
|
get children() {
|
|
295
295
|
return [(() => {
|
|
296
|
-
var e =
|
|
296
|
+
var e = Zn();
|
|
297
297
|
return A(e, D(R, {
|
|
298
298
|
get each() {
|
|
299
299
|
return t.rows;
|
|
300
300
|
},
|
|
301
301
|
children: (e) => (() => {
|
|
302
|
-
var n =
|
|
302
|
+
var n = er(), r = n.firstChild, i = r.firstChild;
|
|
303
303
|
return A(i, () => e.name), A(r, D(B, {
|
|
304
304
|
get when() {
|
|
305
305
|
return e.sub;
|
|
306
306
|
},
|
|
307
307
|
get children() {
|
|
308
|
-
var t =
|
|
308
|
+
var t = $n();
|
|
309
309
|
return A(t, () => e.sub), t;
|
|
310
310
|
}
|
|
311
|
-
}), null), A(n, D(
|
|
311
|
+
}), null), A(n, D(lr, {
|
|
312
312
|
row: e,
|
|
313
313
|
get unreleased() {
|
|
314
314
|
return t.text.unreleased;
|
|
@@ -324,7 +324,7 @@ function ar(e) {
|
|
|
324
324
|
return r() || n() || t.updateCheck;
|
|
325
325
|
},
|
|
326
326
|
get children() {
|
|
327
|
-
var e =
|
|
327
|
+
var e = Qn();
|
|
328
328
|
return A(e, D(B, {
|
|
329
329
|
get when() {
|
|
330
330
|
return r();
|
|
@@ -340,15 +340,15 @@ function ar(e) {
|
|
|
340
340
|
get when() {
|
|
341
341
|
return t.updateCheck;
|
|
342
342
|
},
|
|
343
|
-
children: (e) => D(
|
|
343
|
+
children: (e) => D(cr, M(e))
|
|
344
344
|
}), null), e;
|
|
345
345
|
}
|
|
346
346
|
})];
|
|
347
347
|
}
|
|
348
348
|
});
|
|
349
349
|
}
|
|
350
|
-
function
|
|
351
|
-
let [t, n] = W({ kind: "idle" }), [r, i] = W(0), a = U(() =>
|
|
350
|
+
function cr(e) {
|
|
351
|
+
let [t, n] = W({ kind: "idle" }), [r, i] = W(0), a = U(() => En(t(), e.text));
|
|
352
352
|
return [D(B, {
|
|
353
353
|
get when() {
|
|
354
354
|
return r() + 1;
|
|
@@ -366,12 +366,12 @@ function or(e) {
|
|
|
366
366
|
return a().tone;
|
|
367
367
|
},
|
|
368
368
|
get stage() {
|
|
369
|
-
return
|
|
369
|
+
return Dn(e.text, a().label);
|
|
370
370
|
},
|
|
371
371
|
get busy() {
|
|
372
372
|
return t().kind === "busy";
|
|
373
373
|
},
|
|
374
|
-
onClick: () => void
|
|
374
|
+
onClick: () => void Xt(e, t(), (e) => {
|
|
375
375
|
n(e), e.kind === "failed" && i((e) => e + 1);
|
|
376
376
|
}),
|
|
377
377
|
get class() {
|
|
@@ -380,19 +380,19 @@ function or(e) {
|
|
|
380
380
|
});
|
|
381
381
|
}
|
|
382
382
|
}), (() => {
|
|
383
|
-
var e =
|
|
383
|
+
var e = tr();
|
|
384
384
|
return A(e, () => a().announced), e;
|
|
385
385
|
})()];
|
|
386
386
|
}
|
|
387
|
-
function
|
|
388
|
-
let t = U(() =>
|
|
387
|
+
function lr(e) {
|
|
388
|
+
let t = U(() => On(e.row));
|
|
389
389
|
return D(B, {
|
|
390
390
|
get when() {
|
|
391
391
|
return t().href;
|
|
392
392
|
},
|
|
393
393
|
get fallback() {
|
|
394
394
|
return (() => {
|
|
395
|
-
var n =
|
|
395
|
+
var n = nr();
|
|
396
396
|
return A(n, (() => {
|
|
397
397
|
var n = j(() => !!t().released);
|
|
398
398
|
return () => n() ? t().shown : e.unreleased(t().shown);
|
|
@@ -400,16 +400,16 @@ function sr(e) {
|
|
|
400
400
|
})();
|
|
401
401
|
},
|
|
402
402
|
children: (n) => (() => {
|
|
403
|
-
var r =
|
|
403
|
+
var r = rr();
|
|
404
404
|
return r.$$click = (t) => {
|
|
405
405
|
t.preventDefault(), e.openUrl(n());
|
|
406
406
|
}, A(r, () => t().shown), k(() => N(r, "href", n())), r;
|
|
407
407
|
})()
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
|
-
function
|
|
411
|
-
let t = K({ openUrl:
|
|
412
|
-
return D(
|
|
410
|
+
function ur(e) {
|
|
411
|
+
let t = K({ openUrl: Ot }, e), n = () => Dt(t.text.report, t.mailAddress);
|
|
412
|
+
return D(In, {
|
|
413
413
|
"data-glim": "InfoHelpCard",
|
|
414
414
|
get title() {
|
|
415
415
|
return t.text.title;
|
|
@@ -422,10 +422,10 @@ function cr(e) {
|
|
|
422
422
|
},
|
|
423
423
|
get children() {
|
|
424
424
|
return [(() => {
|
|
425
|
-
var e =
|
|
425
|
+
var e = Yn();
|
|
426
426
|
return A(e, () => t.text.report), e;
|
|
427
427
|
})(), (() => {
|
|
428
|
-
var e =
|
|
428
|
+
var e = ir();
|
|
429
429
|
return A(e, D($, {
|
|
430
430
|
brand: "github",
|
|
431
431
|
get parts() {
|
|
@@ -448,7 +448,7 @@ function cr(e) {
|
|
|
448
448
|
get parts() {
|
|
449
449
|
return [{
|
|
450
450
|
name: t.text.mailButton,
|
|
451
|
-
onClick: () => t.openUrl(
|
|
451
|
+
onClick: () => t.openUrl(_t(t.mailAddress, t.text.mailSubject))
|
|
452
452
|
}];
|
|
453
453
|
},
|
|
454
454
|
get mark() {
|
|
@@ -497,7 +497,7 @@ function cr(e) {
|
|
|
497
497
|
}
|
|
498
498
|
});
|
|
499
499
|
}
|
|
500
|
-
function
|
|
500
|
+
function dr(e) {
|
|
501
501
|
let [t, n] = X(e, [
|
|
502
502
|
"version",
|
|
503
503
|
"help",
|
|
@@ -505,19 +505,19 @@ function lr(e) {
|
|
|
505
505
|
"hueIndex"
|
|
506
506
|
]), r = (e) => t.hueIndex === void 0 ? void 0 : t.hueIndex + e;
|
|
507
507
|
return (() => {
|
|
508
|
-
var e =
|
|
509
|
-
return P(e, M(n, { style: { display: "contents" } }), !1, !0), A(e, D(
|
|
508
|
+
var e = ar();
|
|
509
|
+
return P(e, M(n, { style: { display: "contents" } }), !1, !0), A(e, D(sr, M(() => t.version, { get hueIndex() {
|
|
510
510
|
return r(0);
|
|
511
|
-
} })), null), A(e, D(
|
|
511
|
+
} })), null), A(e, D(ur, M(() => t.help, { get hueIndex() {
|
|
512
512
|
return r(1);
|
|
513
|
-
} })), null), A(e, D(
|
|
513
|
+
} })), null), A(e, D(or, M(() => t.about, { get hueIndex() {
|
|
514
514
|
return r(2);
|
|
515
515
|
} })), null), e;
|
|
516
516
|
})();
|
|
517
517
|
}
|
|
518
|
-
function
|
|
519
|
-
|
|
520
|
-
let t = K({ openUrl:
|
|
518
|
+
function fr(e) {
|
|
519
|
+
kn("AboutCard");
|
|
520
|
+
let t = K({ openUrl: Ot }, e), n = () => [...t.version ? [{
|
|
521
521
|
name: t.text.version,
|
|
522
522
|
version: t.version,
|
|
523
523
|
repoUrl: t.repoUrl
|
|
@@ -526,7 +526,7 @@ function ur(e) {
|
|
|
526
526
|
version: t.glimstoneVersion,
|
|
527
527
|
repoUrl: t.glimstoneRepoUrl
|
|
528
528
|
}];
|
|
529
|
-
return D(
|
|
529
|
+
return D(dr, {
|
|
530
530
|
"data-glim": "AboutCard",
|
|
531
531
|
get hueIndex() {
|
|
532
532
|
return t.hueIndex;
|
|
@@ -572,20 +572,20 @@ function ur(e) {
|
|
|
572
572
|
}
|
|
573
573
|
O(["click"]);
|
|
574
574
|
// src/Checkbox.tsx
|
|
575
|
-
var
|
|
576
|
-
function
|
|
575
|
+
var pr = /*#__PURE__*/ I("<span>"), mr = /*#__PURE__*/ I("<button data-glim=Checkbox type=button role=checkbox><span class=glim-checkbox-box aria-hidden=true>");
|
|
576
|
+
function hr(e) {
|
|
577
577
|
let t = K({
|
|
578
578
|
hideLabel: !1,
|
|
579
579
|
slim: !1
|
|
580
580
|
}, e), n = () => t.hideLabel || t.slim;
|
|
581
581
|
return (() => {
|
|
582
|
-
var e =
|
|
582
|
+
var e = mr(), r = e.firstChild;
|
|
583
583
|
return e.$$keydown = (e) => e.key === "Enter" && e.preventDefault(), e.$$click = () => t.onChange(!t.checked), A(r, D(S, {})), A(e, D(B, {
|
|
584
584
|
get when() {
|
|
585
585
|
return !n();
|
|
586
586
|
},
|
|
587
587
|
get children() {
|
|
588
|
-
var e =
|
|
588
|
+
var e = pr();
|
|
589
589
|
return A(e, () => t.label), e;
|
|
590
590
|
}
|
|
591
591
|
}), null), k((r) => {
|
|
@@ -605,10 +605,10 @@ function pr(e) {
|
|
|
605
605
|
}
|
|
606
606
|
O(["click", "keydown"]);
|
|
607
607
|
// src/CoffeeDialog.tsx
|
|
608
|
-
var
|
|
609
|
-
function
|
|
608
|
+
var gr = /*#__PURE__*/ I("<div class=glim-modal-backdrop><div data-glim=CoffeeDialog tabindex=-1 role=dialog aria-modal=true aria-labelledby=coffee-title class=\"glim-modal-card glim-modal-card--wide glim-modal-card--tall\"><div class=glim-modal-head><h2 id=coffee-title class=glim-modal-title></h2></div><div class=glim-give-body><p class=glim-give-appeal></p><p class=glim-give-intro></p><div class=glim-give-frame><iframe allow=payment class=glim-give-iframe></iframe></div></div><div class=glim-give-foot>");
|
|
609
|
+
function _r(e) {
|
|
610
610
|
return (() => {
|
|
611
|
-
var t =
|
|
611
|
+
var t = gr(), n = t.firstChild, r = n.firstChild, i = r.firstChild, a = r.nextSibling, o = a.firstChild, s = o.nextSibling, u = s.nextSibling.firstChild, d = a.nextSibling;
|
|
612
612
|
t.$$click = (t) => {
|
|
613
613
|
t.target === t.currentTarget && e.onClose();
|
|
614
614
|
};
|
|
@@ -639,24 +639,24 @@ function hr(e) {
|
|
|
639
639
|
}
|
|
640
640
|
O(["click"]);
|
|
641
641
|
// src/ColorPicker.tsx
|
|
642
|
-
var
|
|
643
|
-
function
|
|
642
|
+
var vr = /*#__PURE__*/ I("<span class=glim-picker-name>"), yr = /*#__PURE__*/ I("<div data-glim=ColorPicker><div style=display:contents></div><div class=glim-picker-foot><span class=glim-picker-swatch aria-hidden=true></span><input class=glim-picker-hex maxlength=7></div><div class=glim-picker-actions>");
|
|
643
|
+
function br(e) {
|
|
644
644
|
let t = K({ names: we }, e), n = {
|
|
645
645
|
...Te,
|
|
646
646
|
...t.text
|
|
647
|
-
}, [r, i] = W(
|
|
647
|
+
}, [r, i] = W(Et(t.value) ?? "#000000"), [a, o] = W(r()), s = Ve(r(), (e) => {
|
|
648
648
|
i(e), o(e), t.onInput?.(e);
|
|
649
649
|
}, { text: n }), l, u;
|
|
650
650
|
Y(() => {
|
|
651
651
|
u.appendChild(s.el), J(() => s.el.remove());
|
|
652
652
|
}), H(q(() => t.value, (e) => {
|
|
653
|
-
let t =
|
|
653
|
+
let t = Et(e);
|
|
654
654
|
t && (i(t), o(t), s.setValue(t));
|
|
655
655
|
})), H(() => {
|
|
656
656
|
let e = t.anchor;
|
|
657
|
-
e && (J(
|
|
657
|
+
e && (J(Qe(l, e, () => t.onClose?.())), s.focus());
|
|
658
658
|
});
|
|
659
|
-
let d = () => t.names === !1 ? null :
|
|
659
|
+
let d = () => t.names === !1 ? null : wt(r(), t.names);
|
|
660
660
|
function f() {
|
|
661
661
|
t.onApply(r(), d()), t.anchor && (t.anchor.focus(), t.onClose?.());
|
|
662
662
|
}
|
|
@@ -665,11 +665,11 @@ function vr(e) {
|
|
|
665
665
|
}
|
|
666
666
|
function m(e) {
|
|
667
667
|
o(e.currentTarget.value);
|
|
668
|
-
let n =
|
|
668
|
+
let n = Et(e.currentTarget.value);
|
|
669
669
|
n && (i(n), s.setValue(n), t.onInput?.(n));
|
|
670
670
|
}
|
|
671
671
|
let h = (() => {
|
|
672
|
-
var e =
|
|
672
|
+
var e = yr(), i = e.firstChild, o = i.nextSibling, s = o.firstChild.nextSibling, h = o.nextSibling;
|
|
673
673
|
e.$$keydown = p;
|
|
674
674
|
var g = l;
|
|
675
675
|
typeof g == "function" ? L(g, e) : l = e;
|
|
@@ -679,7 +679,7 @@ function vr(e) {
|
|
|
679
679
|
return d() !== null;
|
|
680
680
|
},
|
|
681
681
|
get children() {
|
|
682
|
-
var e =
|
|
682
|
+
var e = vr();
|
|
683
683
|
return A(e, d), e;
|
|
684
684
|
}
|
|
685
685
|
}), s), s.$$input = m, N(s, "spellcheck", !1), A(h, D(c, {
|
|
@@ -717,11 +717,11 @@ function vr(e) {
|
|
|
717
717
|
}
|
|
718
718
|
O(["keydown", "input"]);
|
|
719
719
|
// src/ConfirmDialog.tsx
|
|
720
|
-
var
|
|
721
|
-
function
|
|
720
|
+
var xr = /*#__PURE__*/ I("<div class=glim-modal-extra>"), Sr = /*#__PURE__*/ I("<div class=glim-modal-backdrop><div data-glim=ConfirmDialog role=dialog aria-modal=true aria-labelledby=confirmdialog-title aria-describedby=confirmdialog-message class=glim-modal-card><div class=glim-modal-head><h2 id=confirmdialog-title class=glim-modal-title></h2></div><div class=glim-modal-body><p id=confirmdialog-message class=glim-modal-text></p></div><div class=glim-modal-foot>");
|
|
721
|
+
function Cr(e) {
|
|
722
722
|
let t = V(() => e.extra), n;
|
|
723
723
|
return Y(() => n?.focus()), (() => {
|
|
724
|
-
var r =
|
|
724
|
+
var r = Sr(), i = r.firstChild, a = i.firstChild, o = a.firstChild, s = a.nextSibling, u = s.firstChild, d = s.nextSibling;
|
|
725
725
|
r.$$click = (t) => {
|
|
726
726
|
t.target === t.currentTarget && e.onCancel();
|
|
727
727
|
};
|
|
@@ -756,7 +756,7 @@ function xr(e) {
|
|
|
756
756
|
return t() !== void 0;
|
|
757
757
|
},
|
|
758
758
|
get children() {
|
|
759
|
-
var e =
|
|
759
|
+
var e = xr();
|
|
760
760
|
return A(e, t), e;
|
|
761
761
|
}
|
|
762
762
|
}), null), A(d, D(c, {
|
|
@@ -787,25 +787,25 @@ function xr(e) {
|
|
|
787
787
|
}
|
|
788
788
|
O(["click"]);
|
|
789
789
|
// src/Kbd.tsx
|
|
790
|
-
var
|
|
791
|
-
function
|
|
790
|
+
var wr = /*#__PURE__*/ I("<kbd data-glim=Kbd>");
|
|
791
|
+
function Tr(e) {
|
|
792
792
|
return (() => {
|
|
793
|
-
var t =
|
|
793
|
+
var t = wr();
|
|
794
794
|
return A(t, () => e.children), k(() => E(t, e.class ? `glim-kbd ${e.class}` : "glim-kbd")), t;
|
|
795
795
|
})();
|
|
796
796
|
}
|
|
797
797
|
// src/ContextMenu.tsx
|
|
798
|
-
var
|
|
798
|
+
var Er = /*#__PURE__*/ I("<button type=button role=menuitem tabindex=-1 class=glim-menu-head-edit>"), Dr = /*#__PURE__*/ I("<span class=glim-checkbox-box aria-hidden=true>"), Or = /*#__PURE__*/ I("<span class=glim-menu-dot aria-hidden=true>"), kr = /*#__PURE__*/ I("<span class=\"glim-menu-end glim-menu-caret\"aria-hidden=true>"), Ar = /*#__PURE__*/ I("<span class=\"glim-menu-end glim-menu-tick\"aria-hidden=true>"), jr = /*#__PURE__*/ I("<span class=\"glim-menu-end glim-menu-count glim-num\">"), Mr = /*#__PURE__*/ I("<button type=button tabindex=-1><span class=glim-menu-label>"), Nr = /*#__PURE__*/ I("<span class=glim-menu-glyph aria-hidden=true>"), Pr = /*#__PURE__*/ I("<div class=glim-menu-sep role=separator>"), Fr = /*#__PURE__*/ I("<div class=glim-menu-head role=presentation><span>"), Ir = /*#__PURE__*/ I("<div data-glim=ContextMenu role=menu class=glim-menu>"), Lr = /*#__PURE__*/ I("<div role=menu class=glim-menu>"), Rr = () => ({
|
|
799
799
|
width: innerWidth,
|
|
800
800
|
height: innerHeight
|
|
801
|
-
}),
|
|
801
|
+
}), zr = (e) => ({
|
|
802
802
|
left: `${e.left}px`,
|
|
803
803
|
top: `${e.top}px`
|
|
804
|
-
}),
|
|
805
|
-
function
|
|
804
|
+
}), Br = (e) => !!e && e !== "-" && !st(e) && !!e.sub;
|
|
805
|
+
function Vr(e) {
|
|
806
806
|
let t = u(() => e.tip);
|
|
807
807
|
return [(() => {
|
|
808
|
-
var n =
|
|
808
|
+
var n = Er();
|
|
809
809
|
n.$$click = () => e.onPress(), ve(n, "blur", t.handlers.onBlur), ve(n, "focus", t.handlers.onFocus), ve(n, "mouseleave", t.handlers.onMouseLeave), ve(n, "mouseenter", t.handlers.onMouseEnter);
|
|
810
810
|
var r = t.ref;
|
|
811
811
|
return typeof r == "function" ? L(r, n) : t.ref = n, A(n, () => e.glyph ?? D(ie, {})), k((r) => {
|
|
@@ -818,14 +818,14 @@ function zr(e) {
|
|
|
818
818
|
}), n;
|
|
819
819
|
})(), j(() => t.bubble)];
|
|
820
820
|
}
|
|
821
|
-
function
|
|
822
|
-
let t = U(() =>
|
|
821
|
+
function Hr(e) {
|
|
822
|
+
let t = U(() => St(e.entry));
|
|
823
823
|
return (() => {
|
|
824
|
-
var n =
|
|
824
|
+
var n = Mr(), r = n.firstChild;
|
|
825
825
|
return n.$$click = () => e.onPick(), A(n, D(xe, {
|
|
826
826
|
get fallback() {
|
|
827
827
|
return (() => {
|
|
828
|
-
var n =
|
|
828
|
+
var n = Nr();
|
|
829
829
|
return A(n, (() => {
|
|
830
830
|
var n = j(() => t().lead === "glyph");
|
|
831
831
|
return () => n() && e.entry.glyph;
|
|
@@ -838,7 +838,7 @@ function Br(e) {
|
|
|
838
838
|
return t().lead === "box";
|
|
839
839
|
},
|
|
840
840
|
get children() {
|
|
841
|
-
var e =
|
|
841
|
+
var e = Dr();
|
|
842
842
|
return A(e, D(S, {})), e;
|
|
843
843
|
}
|
|
844
844
|
}), D(z, {
|
|
@@ -846,7 +846,7 @@ function Br(e) {
|
|
|
846
846
|
return t().lead === "dot";
|
|
847
847
|
},
|
|
848
848
|
get children() {
|
|
849
|
-
var t =
|
|
849
|
+
var t = Or();
|
|
850
850
|
return k((n) => ye(t, "background-color", e.entry.color)), t;
|
|
851
851
|
}
|
|
852
852
|
})];
|
|
@@ -856,7 +856,7 @@ function Br(e) {
|
|
|
856
856
|
return t().end === "submenu";
|
|
857
857
|
},
|
|
858
858
|
get children() {
|
|
859
|
-
var e =
|
|
859
|
+
var e = kr();
|
|
860
860
|
return A(e, D(oe, {})), e;
|
|
861
861
|
}
|
|
862
862
|
}), null), A(n, D(B, {
|
|
@@ -864,7 +864,7 @@ function Br(e) {
|
|
|
864
864
|
return t().end === "tick";
|
|
865
865
|
},
|
|
866
866
|
get children() {
|
|
867
|
-
var e =
|
|
867
|
+
var e = Ar();
|
|
868
868
|
return A(e, D(S, {})), e;
|
|
869
869
|
}
|
|
870
870
|
}), null), A(n, D(B, {
|
|
@@ -872,7 +872,7 @@ function Br(e) {
|
|
|
872
872
|
return t().end === "shortcut";
|
|
873
873
|
},
|
|
874
874
|
get children() {
|
|
875
|
-
return D(
|
|
875
|
+
return D(Tr, {
|
|
876
876
|
class: "glim-menu-end",
|
|
877
877
|
get children() {
|
|
878
878
|
return e.entry.shortcut;
|
|
@@ -884,7 +884,7 @@ function Br(e) {
|
|
|
884
884
|
return t().end === "count";
|
|
885
885
|
},
|
|
886
886
|
get children() {
|
|
887
|
-
var t =
|
|
887
|
+
var t = jr();
|
|
888
888
|
return A(t, () => e.entry.count), t;
|
|
889
889
|
}
|
|
890
890
|
}), null), k((r) => {
|
|
@@ -901,7 +901,7 @@ function Br(e) {
|
|
|
901
901
|
}), n;
|
|
902
902
|
})();
|
|
903
903
|
}
|
|
904
|
-
function
|
|
904
|
+
function Ur(e) {
|
|
905
905
|
return D(be, {
|
|
906
906
|
get each() {
|
|
907
907
|
return e.entries;
|
|
@@ -909,14 +909,14 @@ function Vr(e) {
|
|
|
909
909
|
children: (t, n) => {
|
|
910
910
|
let r = () => {
|
|
911
911
|
let e = t();
|
|
912
|
-
return e !== "-" &&
|
|
912
|
+
return e !== "-" && st(e) ? e : void 0;
|
|
913
913
|
}, i = () => {
|
|
914
914
|
let e = t();
|
|
915
|
-
return e !== "-" && !
|
|
915
|
+
return e !== "-" && !st(e) ? e : void 0;
|
|
916
916
|
};
|
|
917
917
|
return D(xe, {
|
|
918
918
|
get fallback() {
|
|
919
|
-
return
|
|
919
|
+
return Pr();
|
|
920
920
|
},
|
|
921
921
|
get children() {
|
|
922
922
|
return [D(z, {
|
|
@@ -924,12 +924,12 @@ function Vr(e) {
|
|
|
924
924
|
return r();
|
|
925
925
|
},
|
|
926
926
|
children: (t) => (() => {
|
|
927
|
-
var r =
|
|
927
|
+
var r = Fr(), i = r.firstChild;
|
|
928
928
|
return A(i, () => t().head), A(r, D(B, {
|
|
929
929
|
get when() {
|
|
930
930
|
return t().edit;
|
|
931
931
|
},
|
|
932
|
-
children: (t) => D(
|
|
932
|
+
children: (t) => D(Vr, {
|
|
933
933
|
get tip() {
|
|
934
934
|
return t().tip;
|
|
935
935
|
},
|
|
@@ -945,7 +945,7 @@ function Vr(e) {
|
|
|
945
945
|
get when() {
|
|
946
946
|
return i();
|
|
947
947
|
},
|
|
948
|
-
children: (t) => D(
|
|
948
|
+
children: (t) => D(Hr, {
|
|
949
949
|
get entry() {
|
|
950
950
|
return t();
|
|
951
951
|
},
|
|
@@ -961,35 +961,35 @@ function Vr(e) {
|
|
|
961
961
|
}
|
|
962
962
|
});
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function Wr(e) {
|
|
965
965
|
let t = K({
|
|
966
966
|
above: !1,
|
|
967
967
|
fromEnd: !1
|
|
968
|
-
}, e), n, r, i =
|
|
968
|
+
}, e), n, r, i = at(), [a, o] = W({
|
|
969
969
|
left: t.x,
|
|
970
970
|
top: t.y
|
|
971
|
-
}), [s, c] = W(null), [l, u] = W(null), d = U(() =>
|
|
971
|
+
}), [s, c] = W(null), [l, u] = W(null), d = U(() => bn(t.items)), f = U(() => {
|
|
972
972
|
let e = s(), t = e ? d()[e.at] : void 0;
|
|
973
|
-
return
|
|
973
|
+
return Br(t) ? t : void 0;
|
|
974
974
|
}), p = U(() => {
|
|
975
975
|
let e = f()?.sub;
|
|
976
|
-
return e ?
|
|
976
|
+
return e ? bn(e) : null;
|
|
977
977
|
}), m = (e) => {
|
|
978
978
|
let n = t.opener ?? i;
|
|
979
|
-
t.onClose(), e &&
|
|
979
|
+
t.onClose(), e && qt(n);
|
|
980
980
|
};
|
|
981
981
|
H(() => {
|
|
982
|
-
o(
|
|
982
|
+
o(It(t.x, t.y, {
|
|
983
983
|
width: n.offsetWidth,
|
|
984
984
|
height: n.offsetHeight
|
|
985
|
-
},
|
|
985
|
+
}, Rr(), t.above));
|
|
986
986
|
}), Y(() => {
|
|
987
|
-
let e =
|
|
987
|
+
let e = ze(m), i = Be(() => [
|
|
988
988
|
n,
|
|
989
989
|
r,
|
|
990
990
|
t.opener
|
|
991
991
|
], () => m(!1));
|
|
992
|
-
t.fromEnd ?
|
|
992
|
+
t.fromEnd ? nt(n, "last") : tt(n), J(() => {
|
|
993
993
|
e(), i();
|
|
994
994
|
});
|
|
995
995
|
}), H(() => {
|
|
@@ -999,34 +999,34 @@ function Hr(e) {
|
|
|
999
999
|
return;
|
|
1000
1000
|
}
|
|
1001
1001
|
let i = getComputedStyle(n).direction === "rtl";
|
|
1002
|
-
u(
|
|
1002
|
+
u(Lt(t.getBoundingClientRect(), {
|
|
1003
1003
|
width: r.offsetWidth,
|
|
1004
1004
|
height: r.offsetHeight
|
|
1005
|
-
},
|
|
1005
|
+
}, Rr(), i)), e.focus && tt(r);
|
|
1006
1006
|
});
|
|
1007
1007
|
function h(e, t) {
|
|
1008
1008
|
let n = e[t];
|
|
1009
|
-
n !== "-" && (
|
|
1009
|
+
n !== "-" && (st(n) ? (m(!0), n.edit?.onSelect()) : n.sub && e === d() ? c({
|
|
1010
1010
|
at: t,
|
|
1011
1011
|
focus: !0
|
|
1012
|
-
}) : (
|
|
1012
|
+
}) : (St(n).staysOpen || m(!0), n.onSelect?.()));
|
|
1013
1013
|
}
|
|
1014
1014
|
function g(e, r) {
|
|
1015
1015
|
if (e.key === "Tab") return m(!1);
|
|
1016
|
-
if (
|
|
1017
|
-
|
|
1016
|
+
if (ct(e)) {
|
|
1017
|
+
rt(e.currentTarget, e.key) && e.preventDefault();
|
|
1018
1018
|
return;
|
|
1019
1019
|
}
|
|
1020
|
-
let i =
|
|
1020
|
+
let i = xt(e.key, getComputedStyle(e.currentTarget).direction === "rtl");
|
|
1021
1021
|
if (!i) return;
|
|
1022
|
-
if (e.preventDefault(), i !== "in" && i !== "out") return
|
|
1022
|
+
if (e.preventDefault(), i !== "in" && i !== "out") return nt(e.currentTarget, i);
|
|
1023
1023
|
if (r) {
|
|
1024
1024
|
let e = s();
|
|
1025
1025
|
i === "out" && e && (n.querySelector(`[data-row="${e.at}"]`)?.focus(), c(null));
|
|
1026
1026
|
return;
|
|
1027
1027
|
}
|
|
1028
1028
|
let a = Number(document.activeElement?.dataset.row), o = d()[a];
|
|
1029
|
-
i === "in" &&
|
|
1029
|
+
i === "in" && Br(o) && !o.disabled ? c({
|
|
1030
1030
|
at: a,
|
|
1031
1031
|
focus: !0
|
|
1032
1032
|
}) : t.onStep?.(i === "in" ? 1 : -1);
|
|
@@ -1034,17 +1034,17 @@ function Hr(e) {
|
|
|
1034
1034
|
function _(e) {
|
|
1035
1035
|
let t = e.target.closest("[data-row]");
|
|
1036
1036
|
if (!t) return;
|
|
1037
|
-
let n = Number(t.dataset.row), r = d()[n], i =
|
|
1037
|
+
let n = Number(t.dataset.row), r = d()[n], i = Br(r) && !r.disabled;
|
|
1038
1038
|
i && s()?.at !== n ? c({
|
|
1039
1039
|
at: n,
|
|
1040
1040
|
focus: !1
|
|
1041
1041
|
}) : !i && s() && c(null);
|
|
1042
1042
|
}
|
|
1043
1043
|
return [D(w, { get children() {
|
|
1044
|
-
var e =
|
|
1044
|
+
var e = Ir();
|
|
1045
1045
|
e.$$contextmenu = (e) => e.preventDefault(), e.$$mouseover = _, e.$$keydown = (e) => g(e, !1);
|
|
1046
1046
|
var r = n;
|
|
1047
|
-
return typeof r == "function" ? L(r, e) : n = e, A(e, D(
|
|
1047
|
+
return typeof r == "function" ? L(r, e) : n = e, A(e, D(Ur, {
|
|
1048
1048
|
get entries() {
|
|
1049
1049
|
return d();
|
|
1050
1050
|
},
|
|
@@ -1053,7 +1053,7 @@ function Hr(e) {
|
|
|
1053
1053
|
},
|
|
1054
1054
|
onPick: (e) => h(d(), e)
|
|
1055
1055
|
})), k((n) => {
|
|
1056
|
-
var r = t.id, i = t.label, o =
|
|
1056
|
+
var r = t.id, i = t.label, o = zr(a());
|
|
1057
1057
|
return r !== n.e && N(e, "id", n.e = r), i !== n.t && N(e, "aria-label", n.t = i), n.a = F(e, o, n.a), n;
|
|
1058
1058
|
}, {
|
|
1059
1059
|
e: void 0,
|
|
@@ -1065,16 +1065,16 @@ function Hr(e) {
|
|
|
1065
1065
|
return p();
|
|
1066
1066
|
},
|
|
1067
1067
|
children: (e) => D(w, { get children() {
|
|
1068
|
-
var t =
|
|
1068
|
+
var t = Lr();
|
|
1069
1069
|
t.$$contextmenu = (e) => e.preventDefault(), t.$$keydown = (e) => g(e, !0);
|
|
1070
1070
|
var n = r;
|
|
1071
|
-
return typeof n == "function" ? L(n, t) : r = t, A(t, D(
|
|
1071
|
+
return typeof n == "function" ? L(n, t) : r = t, A(t, D(Ur, {
|
|
1072
1072
|
get entries() {
|
|
1073
1073
|
return e();
|
|
1074
1074
|
},
|
|
1075
1075
|
onPick: (t) => h(e(), t)
|
|
1076
1076
|
})), k((e) => {
|
|
1077
|
-
var n = f()?.subId, r = f()?.label, i =
|
|
1077
|
+
var n = f()?.subId, r = f()?.label, i = zr(l() ?? {
|
|
1078
1078
|
left: 0,
|
|
1079
1079
|
top: 0
|
|
1080
1080
|
});
|
|
@@ -1094,19 +1094,19 @@ O([
|
|
|
1094
1094
|
"contextmenu"
|
|
1095
1095
|
]);
|
|
1096
1096
|
// src/CopyField.tsx
|
|
1097
|
-
var
|
|
1098
|
-
function
|
|
1097
|
+
var Gr = /*#__PURE__*/ I("<span data-glim=CopyField><input readonly class=\"glim-input glim-input--mono\"><span role=status class=glim-sr-only>");
|
|
1098
|
+
function Kr(e) {
|
|
1099
1099
|
let t = K({ text: {
|
|
1100
1100
|
copy: "Copy",
|
|
1101
1101
|
copied: "Copied"
|
|
1102
1102
|
} }, e), n = T(() => t.label), [r, i] = W(!1), a, o;
|
|
1103
1103
|
J(() => clearTimeout(o));
|
|
1104
1104
|
async function s() {
|
|
1105
|
-
let e = await
|
|
1105
|
+
let e = await We(t.value);
|
|
1106
1106
|
t.onCopy?.(e), e ? (i(!0), clearTimeout(o), o = window.setTimeout(() => i(!1), Ee)) : (a.focus(), a.select());
|
|
1107
1107
|
}
|
|
1108
1108
|
return (() => {
|
|
1109
|
-
var e =
|
|
1109
|
+
var e = Gr(), i = e.firstChild, o = i.nextSibling, l = a;
|
|
1110
1110
|
return typeof l == "function" ? L(l, i) : a = i, N(i, "spellcheck", !1), A(e, D(c, {
|
|
1111
1111
|
get label() {
|
|
1112
1112
|
return j(() => !!r())() ? t.text.copied : t.text.copy;
|
|
@@ -1125,7 +1125,7 @@ function Wr(e) {
|
|
|
1125
1125
|
})()), k((r) => {
|
|
1126
1126
|
var a = [
|
|
1127
1127
|
"glim-copy",
|
|
1128
|
-
|
|
1128
|
+
Ze(t.width),
|
|
1129
1129
|
t.class
|
|
1130
1130
|
].filter(Boolean).join(" "), o = n();
|
|
1131
1131
|
return a !== r.e && E(e, r.e = a), o !== r.t && N(i, "aria-label", r.t = o), r;
|
|
@@ -1136,11 +1136,11 @@ function Wr(e) {
|
|
|
1136
1136
|
})();
|
|
1137
1137
|
}
|
|
1138
1138
|
// src/CryptoDonateDialog.tsx
|
|
1139
|
-
var
|
|
1140
|
-
function
|
|
1139
|
+
var qr = /*#__PURE__*/ I("<p class=glim-give-note>"), Jr = /*#__PURE__*/ I("<div class=glim-modal-backdrop><div data-glim=CryptoDonateDialog tabindex=-1 role=dialog aria-modal=true aria-labelledby=cryptodonate-title class=\"glim-modal-card glim-modal-card--wide\"><div class=glim-modal-head><h2 id=cryptodonate-title class=glim-modal-title></h2></div><div class=\"glim-give-body glim-give-body--scroll\"><p class=glim-give-appeal></p><p class=glim-give-intro></p><div class=glim-give-well><p dir=ltr class=glim-give-address></p><div class=glim-give-networks role=listbox></div></div><div class=glim-give-coins role=listbox></div></div><div class=glim-give-foot>"), Yr = /*#__PURE__*/ I("<button type=button role=option>"), Xr = /*#__PURE__*/ I("<span class=glim-give-ticker>");
|
|
1140
|
+
function Zr(e) {
|
|
1141
1141
|
let t = a("buttons"), n = () => t() !== "text", r = () => t() !== "glyph";
|
|
1142
1142
|
return (() => {
|
|
1143
|
-
var t =
|
|
1143
|
+
var t = Jr(), i = t.firstChild, a = i.firstChild, o = a.firstChild, s = a.nextSibling, u = s.firstChild, f = u.nextSibling, p = f.nextSibling, m = p.firstChild, h = m.nextSibling, g = p.nextSibling, _ = s.nextSibling;
|
|
1144
1144
|
t.$$click = (t) => {
|
|
1145
1145
|
t.target === t.currentTarget && e.onClose();
|
|
1146
1146
|
};
|
|
@@ -1157,9 +1157,9 @@ function Yr(e) {
|
|
|
1157
1157
|
return e.coin.networks;
|
|
1158
1158
|
},
|
|
1159
1159
|
children: (t, n) => (() => {
|
|
1160
|
-
var r =
|
|
1160
|
+
var r = Yr();
|
|
1161
1161
|
return r.$$click = () => e.onPick(e.coin, t), A(r, () => t.name), k((i) => {
|
|
1162
|
-
var a = t.id === e.network.id, o = d(
|
|
1162
|
+
var a = t.id === e.network.id, o = d(ot(n())), s = `glim-give-network glim-hue${t.id === e.network.id ? " glim-active" : ""}`;
|
|
1163
1163
|
return a !== i.e && N(r, "aria-selected", i.e = a), i.t = F(r, o, i.t), s !== i.a && E(r, i.a = s), i;
|
|
1164
1164
|
}, {
|
|
1165
1165
|
e: void 0,
|
|
@@ -1172,7 +1172,7 @@ function Yr(e) {
|
|
|
1172
1172
|
return e.network.note;
|
|
1173
1173
|
},
|
|
1174
1174
|
get children() {
|
|
1175
|
-
var t =
|
|
1175
|
+
var t = qr();
|
|
1176
1176
|
return A(t, () => e.network.note), t;
|
|
1177
1177
|
}
|
|
1178
1178
|
}), null), A(p, D(c, {
|
|
@@ -1192,7 +1192,7 @@ function Yr(e) {
|
|
|
1192
1192
|
children: (t, i) => {
|
|
1193
1193
|
let a = () => t.id === e.coin.id, o = () => !a() && t.tile;
|
|
1194
1194
|
return (() => {
|
|
1195
|
-
var s =
|
|
1195
|
+
var s = Yr();
|
|
1196
1196
|
return s.$$click = () => e.onPick(t, t.networks[0]), A(s, D(B, {
|
|
1197
1197
|
get when() {
|
|
1198
1198
|
return n();
|
|
@@ -1205,12 +1205,12 @@ function Yr(e) {
|
|
|
1205
1205
|
return r();
|
|
1206
1206
|
},
|
|
1207
1207
|
get children() {
|
|
1208
|
-
var e =
|
|
1208
|
+
var e = Xr();
|
|
1209
1209
|
return A(e, () => t.symbol), e;
|
|
1210
1210
|
}
|
|
1211
1211
|
}), null), k((e) => {
|
|
1212
1212
|
var n = a(), c = `${t.name} (${t.symbol})`, l = t.name, u = d({
|
|
1213
|
-
...
|
|
1213
|
+
...ot(i()),
|
|
1214
1214
|
...o() && {
|
|
1215
1215
|
"--tile": t.tile.color,
|
|
1216
1216
|
"--tile-ink": t.tile.ink
|
|
@@ -1245,9 +1245,9 @@ function Yr(e) {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
O(["click"]);
|
|
1247
1247
|
// src/DropdownListbox.tsx
|
|
1248
|
-
var
|
|
1249
|
-
function
|
|
1250
|
-
|
|
1248
|
+
var Qr = /*#__PURE__*/ I("<div data-glim=DropdownListbox role=listbox style=transform:translateX(-50%)>"), $r = 4;
|
|
1249
|
+
function ei(e) {
|
|
1250
|
+
kn("DropdownListbox");
|
|
1251
1251
|
let t = pe(() => e.open, () => e.triggerRef), n = !1;
|
|
1252
1252
|
return H(q(() => e.open, (t) => {
|
|
1253
1253
|
t || (n && e.triggerRef?.focus(), n = !1);
|
|
@@ -1256,14 +1256,14 @@ function Qr(e) {
|
|
|
1256
1256
|
return e.open;
|
|
1257
1257
|
},
|
|
1258
1258
|
get children() {
|
|
1259
|
-
return D(
|
|
1259
|
+
return D(ti, M(e, {
|
|
1260
1260
|
hue: t,
|
|
1261
1261
|
leaving: (e) => n = e
|
|
1262
1262
|
}));
|
|
1263
1263
|
}
|
|
1264
1264
|
});
|
|
1265
1265
|
}
|
|
1266
|
-
function
|
|
1266
|
+
function ti(e) {
|
|
1267
1267
|
let t, [n, r] = W(null), i = V(() => e.children), a = !1, o = () => Array.from(t.querySelectorAll("[role=\"option\"]"));
|
|
1268
1268
|
H(() => {
|
|
1269
1269
|
i();
|
|
@@ -1274,10 +1274,10 @@ function $r(e) {
|
|
|
1274
1274
|
let s = {
|
|
1275
1275
|
width: document.documentElement.clientWidth || window.innerWidth,
|
|
1276
1276
|
height: document.documentElement.clientHeight || window.innerHeight
|
|
1277
|
-
}, { left: c, top: l } =
|
|
1277
|
+
}, { left: c, top: l } = Ue(o, {
|
|
1278
1278
|
width: o.width,
|
|
1279
1279
|
height: t.offsetHeight
|
|
1280
|
-
}, s,
|
|
1280
|
+
}, s, $r), u = n();
|
|
1281
1281
|
u && u.left === c && u.top === l && u.width === o.width || r({
|
|
1282
1282
|
left: c,
|
|
1283
1283
|
top: l,
|
|
@@ -1303,8 +1303,8 @@ function $r(e) {
|
|
|
1303
1303
|
});
|
|
1304
1304
|
});
|
|
1305
1305
|
let s = (e) => {
|
|
1306
|
-
if (
|
|
1307
|
-
|
|
1306
|
+
if (ct(e)) {
|
|
1307
|
+
$e(o(), e.key) && e.preventDefault();
|
|
1308
1308
|
return;
|
|
1309
1309
|
}
|
|
1310
1310
|
if (e.key !== "ArrowDown" && e.key !== "ArrowUp" && e.key !== "Home" && e.key !== "End") return;
|
|
@@ -1324,7 +1324,7 @@ function $r(e) {
|
|
|
1324
1324
|
return D(w, {
|
|
1325
1325
|
onLeave: () => e.leaving(t.contains(document.activeElement)),
|
|
1326
1326
|
get children() {
|
|
1327
|
-
var r =
|
|
1327
|
+
var r = Qr();
|
|
1328
1328
|
r.$$keydown = s;
|
|
1329
1329
|
var a = t;
|
|
1330
1330
|
return typeof a == "function" ? L(a, r) : t = r, A(r, i), k((t) => {
|
|
@@ -1346,17 +1346,17 @@ function $r(e) {
|
|
|
1346
1346
|
}
|
|
1347
1347
|
O(["keydown"]);
|
|
1348
1348
|
// src/EmptyState.tsx
|
|
1349
|
-
var
|
|
1350
|
-
function
|
|
1349
|
+
var ni = /*#__PURE__*/ I("<span class=glim-empty-glyph aria-hidden=true>"), ri = /*#__PURE__*/ I("<p class=glim-empty-hint>"), ii = /*#__PURE__*/ I("<div data-glim=EmptyState><p class=glim-empty-title>");
|
|
1350
|
+
function ai(e) {
|
|
1351
1351
|
let t = K({ nested: !1 }, e), n = V(() => t.glyph);
|
|
1352
1352
|
return (() => {
|
|
1353
|
-
var e =
|
|
1353
|
+
var e = ii(), r = e.firstChild;
|
|
1354
1354
|
return A(e, D(B, {
|
|
1355
1355
|
get when() {
|
|
1356
1356
|
return n();
|
|
1357
1357
|
},
|
|
1358
1358
|
get children() {
|
|
1359
|
-
var e =
|
|
1359
|
+
var e = ni();
|
|
1360
1360
|
return A(e, n), e;
|
|
1361
1361
|
}
|
|
1362
1362
|
}), r), A(r, () => t.title), A(e, D(B, {
|
|
@@ -1364,7 +1364,7 @@ function ri(e) {
|
|
|
1364
1364
|
return t.hint;
|
|
1365
1365
|
},
|
|
1366
1366
|
get children() {
|
|
1367
|
-
var e =
|
|
1367
|
+
var e = ri();
|
|
1368
1368
|
return A(e, () => t.hint), e;
|
|
1369
1369
|
}
|
|
1370
1370
|
}), null), A(e, () => t.action, null), k((n) => {
|
|
@@ -1377,27 +1377,27 @@ function ri(e) {
|
|
|
1377
1377
|
})();
|
|
1378
1378
|
}
|
|
1379
1379
|
// src/FieldError.tsx
|
|
1380
|
-
var
|
|
1381
|
-
function
|
|
1380
|
+
var oi = /*#__PURE__*/ I("<span data-glim=FieldError class=glim-field-error>");
|
|
1381
|
+
function si(e) {
|
|
1382
1382
|
return (() => {
|
|
1383
|
-
var t =
|
|
1383
|
+
var t = oi();
|
|
1384
1384
|
return A(t, D(C, { get mark() {
|
|
1385
|
-
return
|
|
1385
|
+
return Me.fail;
|
|
1386
1386
|
} }), null), A(t, () => e.children, null), k(() => N(t, "id", e.id)), t;
|
|
1387
1387
|
})();
|
|
1388
1388
|
}
|
|
1389
1389
|
// src/Pill.tsx
|
|
1390
|
-
var
|
|
1391
|
-
function
|
|
1390
|
+
var ci = /*#__PURE__*/ I("<span data-glim=Pill>");
|
|
1391
|
+
function li(e) {
|
|
1392
1392
|
let t = K({ tone: "neutral" }, e);
|
|
1393
1393
|
return (() => {
|
|
1394
|
-
var e =
|
|
1395
|
-
return A(e, () => t.children), k(() => E(e, t.class ? `${
|
|
1394
|
+
var e = ci();
|
|
1395
|
+
return A(e, () => t.children), k(() => E(e, t.class ? `${Ft(t.tone)} ${t.class}` : Ft(t.tone))), e;
|
|
1396
1396
|
})();
|
|
1397
1397
|
}
|
|
1398
1398
|
// src/FieldRow.tsx
|
|
1399
|
-
var
|
|
1400
|
-
function
|
|
1399
|
+
var ui = /*#__PURE__*/ I("<div data-glim=FieldRow><span class=glim-field-row-name><span class=glim-field-row-label>"), di = /*#__PURE__*/ I("<span class=glim-field-row-controls>");
|
|
1400
|
+
function fi(e) {
|
|
1401
1401
|
let [t, n] = X(e, [
|
|
1402
1402
|
"label",
|
|
1403
1403
|
"drawn",
|
|
@@ -1417,7 +1417,7 @@ function ui(e) {
|
|
|
1417
1417
|
return t.value !== void 0;
|
|
1418
1418
|
},
|
|
1419
1419
|
get children() {
|
|
1420
|
-
return D(
|
|
1420
|
+
return D(li, {
|
|
1421
1421
|
class: "glim-num",
|
|
1422
1422
|
get tone() {
|
|
1423
1423
|
return t.tone;
|
|
@@ -1429,14 +1429,14 @@ function ui(e) {
|
|
|
1429
1429
|
}
|
|
1430
1430
|
});
|
|
1431
1431
|
return (() => {
|
|
1432
|
-
var e =
|
|
1432
|
+
var e = ui(), o = e.firstChild, s = o.firstChild, c = i;
|
|
1433
1433
|
return typeof c == "function" ? L(c, e) : i = e, P(e, M(n, { get class() {
|
|
1434
1434
|
return [
|
|
1435
1435
|
"glim-field-row",
|
|
1436
1436
|
t.wide && "glim-field-row--wide",
|
|
1437
1437
|
t.class
|
|
1438
1438
|
].filter(Boolean).join(" ");
|
|
1439
|
-
} }), !1, !0), s.$$click = () =>
|
|
1439
|
+
} }), !1, !0), s.$$click = () => zt(i), A(s, () => t.drawn ?? t.label), A(o, D(B, {
|
|
1440
1440
|
get when() {
|
|
1441
1441
|
return t.hint;
|
|
1442
1442
|
},
|
|
@@ -1444,7 +1444,7 @@ function ui(e) {
|
|
|
1444
1444
|
return e();
|
|
1445
1445
|
} })
|
|
1446
1446
|
}), null), A(e, () => r ? (() => {
|
|
1447
|
-
var e =
|
|
1447
|
+
var e = di();
|
|
1448
1448
|
return A(e, a), e;
|
|
1449
1449
|
})() : a(), null), e;
|
|
1450
1450
|
})();
|
|
@@ -1454,8 +1454,8 @@ function ui(e) {
|
|
|
1454
1454
|
}
|
|
1455
1455
|
O(["click"]);
|
|
1456
1456
|
// src/FieldRowGroup.tsx
|
|
1457
|
-
var
|
|
1458
|
-
function
|
|
1457
|
+
var pi = /*#__PURE__*/ I("<div data-glim=FieldRowGroup>");
|
|
1458
|
+
function mi(e) {
|
|
1459
1459
|
let [t, n] = X(e, [
|
|
1460
1460
|
"children",
|
|
1461
1461
|
"columns",
|
|
@@ -1465,7 +1465,7 @@ function fi(e) {
|
|
|
1465
1465
|
return D(de.Provider, {
|
|
1466
1466
|
value: !0,
|
|
1467
1467
|
get children() {
|
|
1468
|
-
var e =
|
|
1468
|
+
var e = pi();
|
|
1469
1469
|
return P(e, M(n, {
|
|
1470
1470
|
get style() {
|
|
1471
1471
|
return j(() => !!t.columns)() ? {
|
|
@@ -1481,8 +1481,8 @@ function fi(e) {
|
|
|
1481
1481
|
});
|
|
1482
1482
|
}
|
|
1483
1483
|
// src/InstanceCard.tsx
|
|
1484
|
-
var
|
|
1485
|
-
function
|
|
1484
|
+
var hi = /*#__PURE__*/ I("<div class=glim-instance-acts>"), gi = /*#__PURE__*/ I("<img class=glim-instance-mark alt draggable=false>"), _i = /*#__PURE__*/ I("<span class=glim-instance-badges>"), vi = /*#__PURE__*/ I("<span class=glim-eyebrow>"), yi = /*#__PURE__*/ I("<p class=\"glim-instance-facts glim-num\">"), bi = /*#__PURE__*/ I("<dl class=glim-instance-figures>"), xi = /*#__PURE__*/ I("<div class=glim-instance-body>"), Si = /*#__PURE__*/ I("<div data-glim=InstanceCard><div class=glim-instance-top><div class=glim-instance-main><div class=glim-instance-name><h3 class=glim-instance-title>"), Ci = /*#__PURE__*/ I("<span class=glim-instance-mark aria-hidden=true>"), wi = /*#__PURE__*/ I("<div><dt></dt><dd class=glim-num>");
|
|
1485
|
+
function Ti(e) {
|
|
1486
1486
|
let [t, n] = X(e, [
|
|
1487
1487
|
"logo",
|
|
1488
1488
|
"name",
|
|
@@ -1496,11 +1496,11 @@ function Ci(e) {
|
|
|
1496
1496
|
"class",
|
|
1497
1497
|
"style"
|
|
1498
1498
|
]), r = () => t.facts?.filter(Boolean) ?? [], i = V(() => t.logo), a = V(() => t.badges), o = V(() => t.children), s = V(() => t.actions), c = () => s() ? (() => {
|
|
1499
|
-
var e =
|
|
1499
|
+
var e = hi();
|
|
1500
1500
|
return A(e, s), e;
|
|
1501
1501
|
})() : void 0;
|
|
1502
1502
|
return (() => {
|
|
1503
|
-
var e =
|
|
1503
|
+
var e = Si(), s = e.firstChild, l = s.firstChild, u = l.firstChild, f = u.firstChild;
|
|
1504
1504
|
return P(e, M({ get "data-glim-title"() {
|
|
1505
1505
|
return t.name;
|
|
1506
1506
|
} }, n, {
|
|
@@ -1513,7 +1513,7 @@ function Ci(e) {
|
|
|
1513
1513
|
},
|
|
1514
1514
|
get style() {
|
|
1515
1515
|
return j(() => t.hueIndex !== void 0)() ? {
|
|
1516
|
-
...d(
|
|
1516
|
+
...d(ot(t.hueIndex)),
|
|
1517
1517
|
...t.style
|
|
1518
1518
|
} : t.style;
|
|
1519
1519
|
}
|
|
@@ -1527,13 +1527,13 @@ function Ci(e) {
|
|
|
1527
1527
|
return i();
|
|
1528
1528
|
},
|
|
1529
1529
|
get children() {
|
|
1530
|
-
var e =
|
|
1530
|
+
var e = Ci();
|
|
1531
1531
|
return A(e, i), e;
|
|
1532
1532
|
}
|
|
1533
1533
|
});
|
|
1534
1534
|
},
|
|
1535
1535
|
get children() {
|
|
1536
|
-
var e =
|
|
1536
|
+
var e = gi();
|
|
1537
1537
|
return k(() => N(e, "src", t.logo)), e;
|
|
1538
1538
|
}
|
|
1539
1539
|
}), l), A(f, () => t.name), A(u, D(B, {
|
|
@@ -1541,7 +1541,7 @@ function Ci(e) {
|
|
|
1541
1541
|
return a();
|
|
1542
1542
|
},
|
|
1543
1543
|
get children() {
|
|
1544
|
-
var e =
|
|
1544
|
+
var e = _i();
|
|
1545
1545
|
return A(e, a), e;
|
|
1546
1546
|
}
|
|
1547
1547
|
}), null), A(l, D(B, {
|
|
@@ -1549,7 +1549,7 @@ function Ci(e) {
|
|
|
1549
1549
|
return t.eyebrow;
|
|
1550
1550
|
},
|
|
1551
1551
|
get children() {
|
|
1552
|
-
var e =
|
|
1552
|
+
var e = vi();
|
|
1553
1553
|
return A(e, () => t.eyebrow), e;
|
|
1554
1554
|
}
|
|
1555
1555
|
}), null), A(l, D(B, {
|
|
@@ -1557,7 +1557,7 @@ function Ci(e) {
|
|
|
1557
1557
|
return r().length > 0;
|
|
1558
1558
|
},
|
|
1559
1559
|
get children() {
|
|
1560
|
-
var e =
|
|
1560
|
+
var e = yi();
|
|
1561
1561
|
return A(e, () => r().join(" · ")), e;
|
|
1562
1562
|
}
|
|
1563
1563
|
}), null), A(l, D(B, {
|
|
@@ -1565,13 +1565,13 @@ function Ci(e) {
|
|
|
1565
1565
|
return j(() => !!t.figures)() && t.figures.length > 0;
|
|
1566
1566
|
},
|
|
1567
1567
|
get children() {
|
|
1568
|
-
var e =
|
|
1568
|
+
var e = bi();
|
|
1569
1569
|
return A(e, D(R, {
|
|
1570
1570
|
get each() {
|
|
1571
1571
|
return t.figures;
|
|
1572
1572
|
},
|
|
1573
1573
|
children: (e) => (() => {
|
|
1574
|
-
var t =
|
|
1574
|
+
var t = wi(), n = t.firstChild, r = n.nextSibling;
|
|
1575
1575
|
return A(n, () => e.label), A(r, () => e.value), t;
|
|
1576
1576
|
})()
|
|
1577
1577
|
})), e;
|
|
@@ -1589,7 +1589,7 @@ function Ci(e) {
|
|
|
1589
1589
|
},
|
|
1590
1590
|
get children() {
|
|
1591
1591
|
return [(() => {
|
|
1592
|
-
var e =
|
|
1592
|
+
var e = xi();
|
|
1593
1593
|
return A(e, o), e;
|
|
1594
1594
|
})(), j(() => c())];
|
|
1595
1595
|
}
|
|
@@ -1597,9 +1597,9 @@ function Ci(e) {
|
|
|
1597
1597
|
})();
|
|
1598
1598
|
}
|
|
1599
1599
|
// src/WindowFootRow.tsx
|
|
1600
|
-
var
|
|
1601
|
-
function
|
|
1602
|
-
let t = V(() => e.start), n = U(() =>
|
|
1600
|
+
var Ei = /*#__PURE__*/ I("<span class=glim-window-start>"), Di = /*#__PURE__*/ I("<div class=glim-modal-foot>");
|
|
1601
|
+
function Oi(e) {
|
|
1602
|
+
let t = V(() => e.start), n = U(() => Mn(e.actions, t() !== void 0, {
|
|
1603
1603
|
cancel: {
|
|
1604
1604
|
label: e.text.cancel,
|
|
1605
1605
|
labelKey: "common.cancel",
|
|
@@ -1618,13 +1618,13 @@ function Ei(e) {
|
|
|
1618
1618
|
return n().length > 0;
|
|
1619
1619
|
},
|
|
1620
1620
|
get children() {
|
|
1621
|
-
var r =
|
|
1621
|
+
var r = Di();
|
|
1622
1622
|
return A(r, D(B, {
|
|
1623
1623
|
get when() {
|
|
1624
1624
|
return t() !== void 0;
|
|
1625
1625
|
},
|
|
1626
1626
|
get children() {
|
|
1627
|
-
var e =
|
|
1627
|
+
var e = Ei();
|
|
1628
1628
|
return A(e, t), e;
|
|
1629
1629
|
}
|
|
1630
1630
|
}), null), A(r, D(R, {
|
|
@@ -1656,8 +1656,8 @@ function Ei(e) {
|
|
|
1656
1656
|
});
|
|
1657
1657
|
}
|
|
1658
1658
|
// src/Window.tsx
|
|
1659
|
-
var
|
|
1660
|
-
function
|
|
1659
|
+
var ki = /*#__PURE__*/ I("<div class=glim-modal-backdrop><div data-glim=Window><h2 class=glim-window-title></h2><div class=\"glim-modal-body glim-window-body\">");
|
|
1660
|
+
function Ai(e) {
|
|
1661
1661
|
let t = K({
|
|
1662
1662
|
actions: [],
|
|
1663
1663
|
size: "normal"
|
|
@@ -1672,17 +1672,17 @@ function Oi(e) {
|
|
|
1672
1672
|
"onClose",
|
|
1673
1673
|
"class",
|
|
1674
1674
|
"ref"
|
|
1675
|
-
]), i = V(() => n.drawn), a, o = G(), s =
|
|
1675
|
+
]), i = V(() => n.drawn), a, o = G(), s = at(), c, u = () => {
|
|
1676
1676
|
c?.(), n.onClose();
|
|
1677
1677
|
};
|
|
1678
1678
|
return Y(() => {
|
|
1679
|
-
c =
|
|
1679
|
+
c = fn(() => a ?? null, u), a && jn(a)?.focus();
|
|
1680
1680
|
}), J(() => {
|
|
1681
|
-
c?.(),
|
|
1681
|
+
c?.(), qt(s);
|
|
1682
1682
|
}), D(w, { get children() {
|
|
1683
|
-
var e =
|
|
1683
|
+
var e = ki(), t = e.firstChild, s = t.firstChild, c = s.nextSibling;
|
|
1684
1684
|
return e.$$mousedown = (e) => {
|
|
1685
|
-
e.target === e.currentTarget && !
|
|
1685
|
+
e.target === e.currentTarget && !bt() && u();
|
|
1686
1686
|
}, L((e) => {
|
|
1687
1687
|
a = e, typeof n.ref == "function" && n.ref(e);
|
|
1688
1688
|
}, t), P(t, M({ get "data-glim-title"() {
|
|
@@ -1712,7 +1712,7 @@ function Oi(e) {
|
|
|
1712
1712
|
get children() {
|
|
1713
1713
|
return i() ?? n.title;
|
|
1714
1714
|
}
|
|
1715
|
-
})), A(c, () => n.children), A(t, D(
|
|
1715
|
+
})), A(c, () => n.children), A(t, D(Oi, {
|
|
1716
1716
|
get actions() {
|
|
1717
1717
|
return n.actions;
|
|
1718
1718
|
},
|
|
@@ -1728,14 +1728,14 @@ function Oi(e) {
|
|
|
1728
1728
|
}
|
|
1729
1729
|
O(["mousedown"]);
|
|
1730
1730
|
// src/FortressAppCard.tsx
|
|
1731
|
-
var
|
|
1731
|
+
var ji = /*#__PURE__*/ I("<span data-glim=PresenceBadges style=display:contents>"), Mi = /*#__PURE__*/ I("<div class=glim-fortress-text><p>"), Ni = /*#__PURE__*/ I("<ul class=glim-instance-rows>"), Pi = /*#__PURE__*/ I("<li class=glim-instance-row><span class=glim-instance-device aria-hidden=true></span><span class=glim-instance-row-text><span class=glim-instance-row-name></span><span class=\"glim-instance-row-sub glim-num\"></span></span><span class=glim-instance-row-end>"), Fi = (e, t) => ({
|
|
1732
1732
|
connected: e.connected,
|
|
1733
1733
|
checking: e.checking,
|
|
1734
1734
|
away: e.away
|
|
1735
1735
|
})[t.presence];
|
|
1736
|
-
function
|
|
1736
|
+
function Ii(e) {
|
|
1737
1737
|
return (() => {
|
|
1738
|
-
var t =
|
|
1738
|
+
var t = ji();
|
|
1739
1739
|
return A(t, D(B, {
|
|
1740
1740
|
get when() {
|
|
1741
1741
|
return e.instance.relay;
|
|
@@ -1747,20 +1747,20 @@ function Pi(e) {
|
|
|
1747
1747
|
}
|
|
1748
1748
|
}), null), A(t, D(l, {
|
|
1749
1749
|
get tone() {
|
|
1750
|
-
return
|
|
1750
|
+
return Rt(e.instance.presence);
|
|
1751
1751
|
},
|
|
1752
1752
|
get children() {
|
|
1753
|
-
return
|
|
1753
|
+
return Fi(e.text, e.instance);
|
|
1754
1754
|
}
|
|
1755
1755
|
}), null), t;
|
|
1756
1756
|
})();
|
|
1757
1757
|
}
|
|
1758
|
-
function
|
|
1758
|
+
function Li(e) {
|
|
1759
1759
|
return e ? p(`device${e.charAt(0).toUpperCase()}${e.slice(1)}`) : void 0;
|
|
1760
1760
|
}
|
|
1761
|
-
function
|
|
1762
|
-
let t = U(() =>
|
|
1763
|
-
return D(
|
|
1761
|
+
function Ri(e) {
|
|
1762
|
+
let t = U(() => Ye(e.text, e.app, e.instance));
|
|
1763
|
+
return D(Ai, {
|
|
1764
1764
|
"data-glim": "FortressDoubtWindow",
|
|
1765
1765
|
get title() {
|
|
1766
1766
|
return t().title;
|
|
@@ -1784,13 +1784,13 @@ function Ii(e) {
|
|
|
1784
1784
|
}];
|
|
1785
1785
|
},
|
|
1786
1786
|
get children() {
|
|
1787
|
-
var e =
|
|
1787
|
+
var e = Mi(), n = e.firstChild;
|
|
1788
1788
|
return A(n, () => t().body), e;
|
|
1789
1789
|
}
|
|
1790
1790
|
});
|
|
1791
1791
|
}
|
|
1792
|
-
function
|
|
1793
|
-
let t = K({ removeKey: "delete" }, e), n = U(() =>
|
|
1792
|
+
function zi(e) {
|
|
1793
|
+
let t = K({ removeKey: "delete" }, e), n = U(() => Ie(t.app, t.text, t.lang)), [r, i] = W(null), a = (e) => e.doubt ? i(e) : kt(t.app, e, t.onOpen), o = (e) => yt(t.text, t.app, e), s = (e, n) => D(B, {
|
|
1794
1794
|
get when() {
|
|
1795
1795
|
return j(() => !!t.onRemove)() && !e.self;
|
|
1796
1796
|
},
|
|
@@ -1813,7 +1813,7 @@ function Li(e) {
|
|
|
1813
1813
|
});
|
|
1814
1814
|
}
|
|
1815
1815
|
}), u = () => n().rows.length === 0, d = () => u() && t.onRemove && !n().main.self;
|
|
1816
|
-
return [D(
|
|
1816
|
+
return [D(Ti, {
|
|
1817
1817
|
"data-glim": "FortressAppCard",
|
|
1818
1818
|
get "data-fortress-app"() {
|
|
1819
1819
|
return t.app.id;
|
|
@@ -1861,7 +1861,7 @@ function Li(e) {
|
|
|
1861
1861
|
});
|
|
1862
1862
|
}
|
|
1863
1863
|
}),
|
|
1864
|
-
D(
|
|
1864
|
+
D(Ii, {
|
|
1865
1865
|
get instance() {
|
|
1866
1866
|
return n().main;
|
|
1867
1867
|
},
|
|
@@ -1902,19 +1902,19 @@ function Li(e) {
|
|
|
1902
1902
|
return !u();
|
|
1903
1903
|
},
|
|
1904
1904
|
get children() {
|
|
1905
|
-
var e =
|
|
1905
|
+
var e = Ni();
|
|
1906
1906
|
return A(e, D(R, {
|
|
1907
1907
|
get each() {
|
|
1908
1908
|
return n().rows;
|
|
1909
1909
|
},
|
|
1910
1910
|
children: ({ instance: e, sub: n, open: r }) => (() => {
|
|
1911
|
-
var i =
|
|
1912
|
-
return A(u, () =>
|
|
1911
|
+
var i = Pi(), u = i.firstChild, d = u.nextSibling, f = d.firstChild, p = f.nextSibling, m = d.nextSibling;
|
|
1912
|
+
return A(u, () => Li(e.deviceKind)), A(f, () => e.device), A(p, n), A(m, D(l, {
|
|
1913
1913
|
get tone() {
|
|
1914
|
-
return
|
|
1914
|
+
return Rt(e.presence);
|
|
1915
1915
|
},
|
|
1916
1916
|
get children() {
|
|
1917
|
-
return
|
|
1917
|
+
return Fi(t.text, e);
|
|
1918
1918
|
}
|
|
1919
1919
|
}), null), A(m, D(B, {
|
|
1920
1920
|
when: r,
|
|
@@ -1944,7 +1944,7 @@ function Li(e) {
|
|
|
1944
1944
|
get when() {
|
|
1945
1945
|
return r();
|
|
1946
1946
|
},
|
|
1947
|
-
children: (e) => D(
|
|
1947
|
+
children: (e) => D(Ri, {
|
|
1948
1948
|
get app() {
|
|
1949
1949
|
return t.app;
|
|
1950
1950
|
},
|
|
@@ -1954,18 +1954,18 @@ function Li(e) {
|
|
|
1954
1954
|
get text() {
|
|
1955
1955
|
return t.text;
|
|
1956
1956
|
},
|
|
1957
|
-
onOpen: () =>
|
|
1957
|
+
onOpen: () => kt(t.app, e(), t.onOpen),
|
|
1958
1958
|
onClose: () => i(null)
|
|
1959
1959
|
})
|
|
1960
1960
|
})];
|
|
1961
1961
|
}
|
|
1962
1962
|
// src/Selector.tsx
|
|
1963
|
-
var
|
|
1964
|
-
function
|
|
1965
|
-
let [t, n] = W(
|
|
1966
|
-
return J(
|
|
1963
|
+
var Bi = /*#__PURE__*/ I("<div class=glim-sel-list>"), Vi = /*#__PURE__*/ I("<div data-glim=Selector>"), Hi = /*#__PURE__*/ I("<span data-sel-label>"), Ui = /*#__PURE__*/ I("<button>"), Wi = /*#__PURE__*/ I("<a>"), Gi = /*#__PURE__*/ I("<span class=glim-tip-wrap>"), Ki = /*#__PURE__*/ I("<span hidden>");
|
|
1964
|
+
function qi(e) {
|
|
1965
|
+
let [t, n] = W(vt(e));
|
|
1966
|
+
return J(gn(e, () => n(vt(e)))), t;
|
|
1967
1967
|
}
|
|
1968
|
-
function
|
|
1968
|
+
function Ji(e) {
|
|
1969
1969
|
let t = K({
|
|
1970
1970
|
orientation: "horizontal",
|
|
1971
1971
|
size: "md",
|
|
@@ -1978,7 +1978,7 @@ function Ki(e) {
|
|
|
1978
1978
|
hue: !0,
|
|
1979
1979
|
disabled: !1,
|
|
1980
1980
|
class: ""
|
|
1981
|
-
}, e), n = T(() => t.label), r = () => t.inline || t.label === void 0 && n() !== void 0, i = () => t.orientation === "vertical", o = () => t.select === "many", s = a(
|
|
1981
|
+
}, e), n = T(() => t.label), r = () => t.inline || t.label === void 0 && n() !== void 0, i = () => t.orientation === "vertical", o = () => t.select === "many", s = a($t(t.size, t.orientation)), c = qi(Ne), l = U(() => rn({
|
|
1982
1982
|
mode: s(),
|
|
1983
1983
|
select: o() ? "many" : "one",
|
|
1984
1984
|
activation: t.activation,
|
|
@@ -1997,7 +1997,7 @@ function Ki(e) {
|
|
|
1997
1997
|
}))
|
|
1998
1998
|
})), u;
|
|
1999
1999
|
H(() => {
|
|
2000
|
-
l().counted && J(
|
|
2000
|
+
l().counted && J(Ge(u));
|
|
2001
2001
|
});
|
|
2002
2002
|
let [f, p] = W(null), m = U(() => [
|
|
2003
2003
|
i(),
|
|
@@ -2014,25 +2014,25 @@ function Ki(e) {
|
|
|
2014
2014
|
H(q(m, () => {
|
|
2015
2015
|
if (i()) return p(null);
|
|
2016
2016
|
let { pinWidth: e, canSqueeze: n, canList: r } = l();
|
|
2017
|
-
J(
|
|
2017
|
+
J(An(u, {
|
|
2018
2018
|
pinWidth: e,
|
|
2019
2019
|
fit: t.fit,
|
|
2020
2020
|
canSqueeze: n,
|
|
2021
2021
|
canList: r
|
|
2022
2022
|
}, p));
|
|
2023
2023
|
}));
|
|
2024
|
-
let h = U(() =>
|
|
2024
|
+
let h = U(() => en({
|
|
2025
2025
|
layout: f(),
|
|
2026
2026
|
inline: r(),
|
|
2027
2027
|
fit: t.fit
|
|
2028
2028
|
})), g = () => f()?.fit === "list", _ = () => o() ? t.value : null, v = (e) => {
|
|
2029
2029
|
let n = _();
|
|
2030
2030
|
return n ? n.includes(e) : t.value === e;
|
|
2031
|
-
}, y = U(() => t.items.map((e) => t.disabled || !!e.disabled)), b = U(() =>
|
|
2031
|
+
}, y = U(() => t.items.map((e) => t.disabled || !!e.disabled)), b = U(() => Yt(y(), t.items.findIndex((e) => v(e.id))));
|
|
2032
2032
|
function x(e) {
|
|
2033
2033
|
t.onPress?.(e);
|
|
2034
2034
|
let n = t.onChange, r = _();
|
|
2035
|
-
n(r ?
|
|
2035
|
+
n(r ? Sn(r, e, t.items.map((e) => e.id)) : e);
|
|
2036
2036
|
}
|
|
2037
2037
|
function S(e) {
|
|
2038
2038
|
if (g()) return;
|
|
@@ -2041,21 +2041,21 @@ function Ki(e) {
|
|
|
2041
2041
|
e.preventDefault(), n.click();
|
|
2042
2042
|
return;
|
|
2043
2043
|
}
|
|
2044
|
-
let r =
|
|
2044
|
+
let r = Jt(u, e.key, t.orientation);
|
|
2045
2045
|
if (!r) return;
|
|
2046
2046
|
e.preventDefault();
|
|
2047
2047
|
let a = t.items.find((e) => String(e.id) === r.dataset.selId);
|
|
2048
2048
|
l().autoSelect && a && x(a.id);
|
|
2049
2049
|
}
|
|
2050
2050
|
return (() => {
|
|
2051
|
-
var e =
|
|
2051
|
+
var e = Vi();
|
|
2052
2052
|
e.$$keydown = S;
|
|
2053
2053
|
var r = u;
|
|
2054
2054
|
return typeof r == "function" ? L(r, e) : u = e, A(e, D(R, {
|
|
2055
2055
|
get each() {
|
|
2056
2056
|
return t.items;
|
|
2057
2057
|
},
|
|
2058
|
-
children: (e, n) => D(
|
|
2058
|
+
children: (e, n) => D(Yi, {
|
|
2059
2059
|
item: e,
|
|
2060
2060
|
get index() {
|
|
2061
2061
|
return n();
|
|
@@ -2115,7 +2115,7 @@ function Ki(e) {
|
|
|
2115
2115
|
return g();
|
|
2116
2116
|
},
|
|
2117
2117
|
get children() {
|
|
2118
|
-
var e =
|
|
2118
|
+
var e = Bi();
|
|
2119
2119
|
return A(e, D(me, {
|
|
2120
2120
|
get label() {
|
|
2121
2121
|
return n() ?? "";
|
|
@@ -2158,8 +2158,8 @@ function Ki(e) {
|
|
|
2158
2158
|
}), e;
|
|
2159
2159
|
})();
|
|
2160
2160
|
}
|
|
2161
|
-
function
|
|
2162
|
-
let t = U(() =>
|
|
2161
|
+
function Yi(e) {
|
|
2162
|
+
let t = U(() => Zt({
|
|
2163
2163
|
strip: e.strip,
|
|
2164
2164
|
orientation: e.orientation,
|
|
2165
2165
|
size: e.size,
|
|
@@ -2194,20 +2194,20 @@ function qi(e) {
|
|
|
2194
2194
|
return t().labelClass !== null;
|
|
2195
2195
|
},
|
|
2196
2196
|
get children() {
|
|
2197
|
-
var n =
|
|
2197
|
+
var n = Hi();
|
|
2198
2198
|
return A(n, () => e.item.label), k(() => E(n, t().labelClass)), n;
|
|
2199
2199
|
}
|
|
2200
2200
|
})], l = (t) => {
|
|
2201
2201
|
t.ctrlKey || t.metaKey || t.shiftKey || t.altKey || t.button !== 0 || (t.preventDefault(), e.onSelect());
|
|
2202
2202
|
}, f = () => (() => {
|
|
2203
|
-
var r =
|
|
2203
|
+
var r = Ui(), i = n.ref;
|
|
2204
2204
|
return typeof i == "function" ? L(i, r) : n.ref = r, P(r, M(() => e.item.attrs, {
|
|
2205
2205
|
type: "button",
|
|
2206
2206
|
get "data-sel-id"() {
|
|
2207
2207
|
return e.item.id;
|
|
2208
2208
|
},
|
|
2209
2209
|
get id() {
|
|
2210
|
-
return j(() => !!(e.panelId && o()))() ?
|
|
2210
|
+
return j(() => !!(e.panelId && o()))() ? nn(e.panelId, e.item.id) : void 0;
|
|
2211
2211
|
},
|
|
2212
2212
|
get role() {
|
|
2213
2213
|
return j(() => e.strip.kind === "toggle")() ? void 0 : e.strip.kind;
|
|
@@ -2261,7 +2261,7 @@ function qi(e) {
|
|
|
2261
2261
|
return f();
|
|
2262
2262
|
},
|
|
2263
2263
|
get children() {
|
|
2264
|
-
var t =
|
|
2264
|
+
var t = Gi();
|
|
2265
2265
|
return ve(t, "mouseleave", n.hide), ve(t, "mouseenter", n.show), A(t, f), k((n) => F(t, d(e.share), n)), t;
|
|
2266
2266
|
}
|
|
2267
2267
|
}), D(B, {
|
|
@@ -2269,13 +2269,13 @@ function qi(e) {
|
|
|
2269
2269
|
return i();
|
|
2270
2270
|
},
|
|
2271
2271
|
get children() {
|
|
2272
|
-
var e =
|
|
2272
|
+
var e = Ki();
|
|
2273
2273
|
return N(e, "id", r), A(e, () => t().tip), e;
|
|
2274
2274
|
}
|
|
2275
2275
|
})];
|
|
2276
2276
|
},
|
|
2277
2277
|
get children() {
|
|
2278
|
-
var r =
|
|
2278
|
+
var r = Wi(), i = n.ref;
|
|
2279
2279
|
return typeof i == "function" ? L(i, r) : n.ref = r, P(r, M(() => e.item.attrs, {
|
|
2280
2280
|
get href() {
|
|
2281
2281
|
return e.item.href;
|
|
@@ -2309,8 +2309,8 @@ function qi(e) {
|
|
|
2309
2309
|
}
|
|
2310
2310
|
O(["keydown"]);
|
|
2311
2311
|
// src/Toggle.tsx
|
|
2312
|
-
var
|
|
2313
|
-
function
|
|
2312
|
+
var Xi = /*#__PURE__*/ I("<span class=glim-toggle-label>"), Zi = /*#__PURE__*/ I("<span data-glim=Toggle><button><span class=glim-toggle-thumb>"), Qi = /*#__PURE__*/ I("<span class=glim-toggle-refusal>");
|
|
2313
|
+
function $i(e) {
|
|
2314
2314
|
let t = K({ hideLabel: !1 }, e), [n, r] = X(t, [
|
|
2315
2315
|
"checked",
|
|
2316
2316
|
"onChange",
|
|
@@ -2325,17 +2325,17 @@ function Zi(e) {
|
|
|
2325
2325
|
J(() => c?.());
|
|
2326
2326
|
let l = (e) => {
|
|
2327
2327
|
if (typeof n.onClick == "function" && n.onClick(e), !n.refused) return n.onChange(!n.checked);
|
|
2328
|
-
c?.(), c =
|
|
2328
|
+
c?.(), c = an(s);
|
|
2329
2329
|
};
|
|
2330
2330
|
return [
|
|
2331
2331
|
(() => {
|
|
2332
|
-
var e =
|
|
2332
|
+
var e = Zi(), t = e.firstChild, c = s;
|
|
2333
2333
|
typeof c == "function" ? L(c, e) : s = e, A(e, D(B, {
|
|
2334
2334
|
get when() {
|
|
2335
2335
|
return j(() => n.label !== void 0)() && !n.hideLabel;
|
|
2336
2336
|
},
|
|
2337
2337
|
get children() {
|
|
2338
|
-
var e =
|
|
2338
|
+
var e = Xi();
|
|
2339
2339
|
return A(e, () => n.label), e;
|
|
2340
2340
|
}
|
|
2341
2341
|
}), t);
|
|
@@ -2381,7 +2381,7 @@ function Zi(e) {
|
|
|
2381
2381
|
return n.refused;
|
|
2382
2382
|
},
|
|
2383
2383
|
get children() {
|
|
2384
|
-
var e =
|
|
2384
|
+
var e = Qi();
|
|
2385
2385
|
return N(e, "id", o), A(e, () => n.refused), e;
|
|
2386
2386
|
}
|
|
2387
2387
|
}),
|
|
@@ -2389,12 +2389,12 @@ function Zi(e) {
|
|
|
2389
2389
|
];
|
|
2390
2390
|
}
|
|
2391
2391
|
// src/FortressPermissions.tsx
|
|
2392
|
-
var
|
|
2393
|
-
function
|
|
2394
|
-
let [t, n] = W("all"), r = () =>
|
|
2392
|
+
var ea = /*#__PURE__*/ I("<img alt>"), ta = /*#__PURE__*/ I("<ul class=glim-permissions>"), na = /*#__PURE__*/ I("<p class=glim-fortress-sub>"), ra = /*#__PURE__*/ I("<span class=glim-fortress-sub>"), ia = /*#__PURE__*/ I("<li><span class=glim-permission-pair aria-hidden=true><span class=glim-permission-to></span></span><span class=glim-permission-text><span class=glim-permission-title>");
|
|
2393
|
+
function aa(e) {
|
|
2394
|
+
let [t, n] = W("all"), r = () => Nt(e.permissions, e.app.id), i = () => r().length < e.permissions.length, a = () => t() === "all" || !i() ? e.permissions : r(), o = () => a().map((e) => e.id), s = (t) => {
|
|
2395
2395
|
let n = e.apps.find((e) => e.id === t);
|
|
2396
2396
|
return n?.logo ? (() => {
|
|
2397
|
-
var e =
|
|
2397
|
+
var e = ea();
|
|
2398
2398
|
return N(e, "draggable", !1), k(() => N(e, "src", n.logo)), e;
|
|
2399
2399
|
})() : null;
|
|
2400
2400
|
};
|
|
@@ -2406,9 +2406,9 @@ function ra(e) {
|
|
|
2406
2406
|
}
|
|
2407
2407
|
e.notify?.(n.error ?? e.text.failed, "fail");
|
|
2408
2408
|
let r = document.querySelector(`[data-permission="${CSS.escape(t.id)}"] .glim-toggle`);
|
|
2409
|
-
r &&
|
|
2409
|
+
r && an(r);
|
|
2410
2410
|
}
|
|
2411
|
-
return D(
|
|
2411
|
+
return D(In, {
|
|
2412
2412
|
"data-glim": "FortressPermissions",
|
|
2413
2413
|
get title() {
|
|
2414
2414
|
return e.text.permissions;
|
|
@@ -2426,7 +2426,7 @@ function ra(e) {
|
|
|
2426
2426
|
},
|
|
2427
2427
|
get fallback() {
|
|
2428
2428
|
return (() => {
|
|
2429
|
-
var t =
|
|
2429
|
+
var t = na();
|
|
2430
2430
|
return A(t, () => e.text.noPermissions), t;
|
|
2431
2431
|
})();
|
|
2432
2432
|
},
|
|
@@ -2436,7 +2436,7 @@ function ra(e) {
|
|
|
2436
2436
|
return i();
|
|
2437
2437
|
},
|
|
2438
2438
|
get children() {
|
|
2439
|
-
return D(
|
|
2439
|
+
return D(Ji, {
|
|
2440
2440
|
get label() {
|
|
2441
2441
|
return e.text.permissions;
|
|
2442
2442
|
},
|
|
@@ -2458,7 +2458,7 @@ function ra(e) {
|
|
|
2458
2458
|
});
|
|
2459
2459
|
}
|
|
2460
2460
|
}), (() => {
|
|
2461
|
-
var t =
|
|
2461
|
+
var t = ta();
|
|
2462
2462
|
return A(t, D(R, {
|
|
2463
2463
|
get each() {
|
|
2464
2464
|
return o();
|
|
@@ -2466,10 +2466,10 @@ function ra(e) {
|
|
|
2466
2466
|
children: (t) => {
|
|
2467
2467
|
let n = () => a().find((e) => e.id === t);
|
|
2468
2468
|
return (() => {
|
|
2469
|
-
var r =
|
|
2469
|
+
var r = ia(), i = r.firstChild, a = i.firstChild, o = i.nextSibling, l = o.firstChild;
|
|
2470
2470
|
return N(r, "data-permission", t), A(i, () => s(n().from), a), A(i, D(C, {
|
|
2471
2471
|
get mark() {
|
|
2472
|
-
return
|
|
2472
|
+
return Ae.expand;
|
|
2473
2473
|
},
|
|
2474
2474
|
class: "glim-permission-arrow"
|
|
2475
2475
|
}), a), A(a, () => n().to.map(s)), A(l, () => n().title), A(o, D(B, {
|
|
@@ -2477,10 +2477,10 @@ function ra(e) {
|
|
|
2477
2477
|
return n().detail;
|
|
2478
2478
|
},
|
|
2479
2479
|
get children() {
|
|
2480
|
-
var e =
|
|
2480
|
+
var e = ra();
|
|
2481
2481
|
return A(e, () => n().detail), e;
|
|
2482
2482
|
}
|
|
2483
|
-
}), null), A(o, () => e.extra?.(n()), null), A(r, D(
|
|
2483
|
+
}), null), A(o, () => e.extra?.(n()), null), A(r, D($i, {
|
|
2484
2484
|
get label() {
|
|
2485
2485
|
return n().title;
|
|
2486
2486
|
},
|
|
@@ -2500,8 +2500,8 @@ function ra(e) {
|
|
|
2500
2500
|
});
|
|
2501
2501
|
}
|
|
2502
2502
|
// src/PasswordField.tsx
|
|
2503
|
-
var
|
|
2504
|
-
function
|
|
2503
|
+
var oa = /*#__PURE__*/ I("<span data-glim=PasswordField><input autocomplete=current-password>");
|
|
2504
|
+
function sa(e) {
|
|
2505
2505
|
let t = K({ text: {
|
|
2506
2506
|
show: "Show",
|
|
2507
2507
|
hide: "Hide"
|
|
@@ -2515,9 +2515,9 @@ function aa(e) {
|
|
|
2515
2515
|
"disabled",
|
|
2516
2516
|
"aria-label",
|
|
2517
2517
|
"aria-describedby"
|
|
2518
|
-
]), [i, a] = W(!1), o = T(() => n["aria-label"]), s = G(), c = () =>
|
|
2518
|
+
]), [i, a] = W(!1), o = T(() => n["aria-label"]), s = G(), c = () => Xe(n.error, r.id ?? s, n["aria-describedby"]);
|
|
2519
2519
|
return [(() => {
|
|
2520
|
-
var e =
|
|
2520
|
+
var e = oa(), t = e.firstChild, s = n.ref;
|
|
2521
2521
|
return typeof s == "function" ? L(s, t) : n.ref = t, N(t, "spellcheck", !1), P(t, M(r, {
|
|
2522
2522
|
get "aria-label"() {
|
|
2523
2523
|
return o();
|
|
@@ -2559,14 +2559,14 @@ function aa(e) {
|
|
|
2559
2559
|
}
|
|
2560
2560
|
})), null), k(() => E(e, [
|
|
2561
2561
|
"glim-secret",
|
|
2562
|
-
|
|
2562
|
+
Ze(n.width),
|
|
2563
2563
|
n.class
|
|
2564
2564
|
].filter(Boolean).join(" "))), e;
|
|
2565
2565
|
})(), D(B, {
|
|
2566
2566
|
get when() {
|
|
2567
2567
|
return c().errorId;
|
|
2568
2568
|
},
|
|
2569
|
-
children: (e) => D(
|
|
2569
|
+
children: (e) => D(si, {
|
|
2570
2570
|
get id() {
|
|
2571
2571
|
return e();
|
|
2572
2572
|
},
|
|
@@ -2577,7 +2577,7 @@ function aa(e) {
|
|
|
2577
2577
|
})];
|
|
2578
2578
|
}
|
|
2579
2579
|
// src/Fortress.tsx
|
|
2580
|
-
var
|
|
2580
|
+
var ca = /*#__PURE__*/ I("<div class=\"glim-card glim-instance glim-instance--out\"data-fortress=out><h3 class=glim-instance-title></h3><p class=glim-instance-hint>"), la = /*#__PURE__*/ I("<div class=\"glim-card glim-fortress-switch glim-hue\"><span class=glim-fortress-switch-text><span class=glim-fortress-switch-name></span><span class=glim-fortress-sub>"), ua = /*#__PURE__*/ I("<div class=glim-fortress-removed data-fortress=removed role=status><span>"), da = /*#__PURE__*/ I("<div class=glim-fortress-grid>"), fa = /*#__PURE__*/ I("<div class=glim-fortress-actions>"), pa = /*#__PURE__*/ I("<div data-glim=Fortress class=glim-fortress><div class=glim-fortress-grid>"), ma = /*#__PURE__*/ I("<img alt>"), ha = /*#__PURE__*/ I("<p class=glim-instance-found><span>"), ga = /*#__PURE__*/ I("<svg class=glim-phrase-qr data-fortress=qr role=img shape-rendering=crispEdges><rect x=-4 y=-4 fill=#ffffff></rect><path fill=#161616>"), _a = /*#__PURE__*/ I("<p class=glim-fortress-error role=alert>"), va = /*#__PURE__*/ I("<div class=glim-phrase-show><ol class=glim-phrase-words data-fortress=words></ol><p class=glim-phrase-scan>"), ya = /*#__PURE__*/ I("<li><span class=\"glim-phrase-number glim-num\">"), ba = /*#__PURE__*/ I("<div class=glim-fortress-result><span class=glim-fortress-result-mark aria-hidden=true></span><div class=glim-fortress-text><p class=glim-fortress-result-title></p><p class=glim-fortress-sub>"), xa = /*#__PURE__*/ I("<div class=glim-fortress-text><p></p><p class=glim-fortress-sub>"), Sa = /*#__PURE__*/ I("<form class=glim-fortress-text><p></p><div class=glim-phrase-fields></div><button type=submit hidden></button><p class=glim-fortress-sub>"), Ca = /*#__PURE__*/ I("<label class=glim-phrase-field><span class=\"glim-phrase-number glim-num\"></span><input class=glim-input autocomplete=off autocapitalize=none autocorrect=off>"), wa = /*#__PURE__*/ I("<p class=glim-fortress-note data-fortress=moves><span>"), Ta = /*#__PURE__*/ I("<div class=glim-fortress-text><p>"), Ea = /*#__PURE__*/ I("<form class=glim-fortress-text><p>"), Da = /*#__PURE__*/ I("<p class=glim-fortress-sub>"), Oa = {
|
|
2581
2581
|
join: "fortressJoin",
|
|
2582
2582
|
leave: "fortressLeave",
|
|
2583
2583
|
showPhrase: "fortressShowPhrase",
|
|
@@ -2587,39 +2587,39 @@ var oa = /*#__PURE__*/ I("<div class=\"glim-card glim-instance glim-instance--ou
|
|
|
2587
2587
|
unlock: "unlock",
|
|
2588
2588
|
copy: "copy"
|
|
2589
2589
|
};
|
|
2590
|
-
function
|
|
2590
|
+
function ka(e) {
|
|
2591
2591
|
let [t, n] = W(e.state());
|
|
2592
2592
|
return J(e.subscribe(() => n(e.state()))), t;
|
|
2593
2593
|
}
|
|
2594
|
-
function
|
|
2594
|
+
function Aa(e) {
|
|
2595
2595
|
let t = K({
|
|
2596
2596
|
removed: [],
|
|
2597
2597
|
hueStart: 0
|
|
2598
|
-
}, e), n =
|
|
2598
|
+
}, e), n = Ke(() => ({
|
|
2599
2599
|
onJoin: e.onJoin,
|
|
2600
2600
|
onRemove: e.onRemove,
|
|
2601
2601
|
onShowPhrase: e.onShowPhrase,
|
|
2602
2602
|
onChangePhrase: e.onChangePhrase,
|
|
2603
2603
|
phrasePassword: e.phrasePassword,
|
|
2604
2604
|
failed: e.text.failed,
|
|
2605
|
-
joinRefusal: (t) =>
|
|
2606
|
-
})), r =
|
|
2607
|
-
...
|
|
2605
|
+
joinRefusal: (t) => lt(e.text, t)
|
|
2606
|
+
})), r = ka(n), i = () => ({
|
|
2607
|
+
...Oa,
|
|
2608
2608
|
...e.labelKeys
|
|
2609
|
-
}), [a, o] = W(
|
|
2610
|
-
e.onShowOthers ? e.onShowOthers(t) : (
|
|
2609
|
+
}), [a, o] = W(hn()), s = () => e.showOthers ?? a(), l = (t) => {
|
|
2610
|
+
e.onShowOthers ? e.onShowOthers(t) : (mn(t), o(t));
|
|
2611
2611
|
}, u = () => {
|
|
2612
2612
|
let t = e.children;
|
|
2613
2613
|
return typeof t == "function" ? t(n.openRemove) : t;
|
|
2614
2614
|
}, f = () => e.onRemove && n.openRemove, m = () => !e.joined || e.onShowPhrase;
|
|
2615
2615
|
return (() => {
|
|
2616
|
-
var a =
|
|
2616
|
+
var a = pa(), o = a.firstChild;
|
|
2617
2617
|
return A(o, u, null), A(o, D(B, {
|
|
2618
2618
|
get when() {
|
|
2619
2619
|
return !e.joined;
|
|
2620
2620
|
},
|
|
2621
2621
|
get children() {
|
|
2622
|
-
var t =
|
|
2622
|
+
var t = ca(), n = t.firstChild, r = n.nextSibling;
|
|
2623
2623
|
return A(n, (() => {
|
|
2624
2624
|
var t = j(() => !!e.removedHere);
|
|
2625
2625
|
return () => t() ? e.text.removedHereTitle : e.text.outTitle;
|
|
@@ -2628,13 +2628,13 @@ function Oa(e) {
|
|
|
2628
2628
|
return e.found;
|
|
2629
2629
|
},
|
|
2630
2630
|
children: (t) => (() => {
|
|
2631
|
-
var n =
|
|
2631
|
+
var n = ha(), r = n.firstChild;
|
|
2632
2632
|
return A(n, D(B, {
|
|
2633
2633
|
get when() {
|
|
2634
2634
|
return t().logo;
|
|
2635
2635
|
},
|
|
2636
2636
|
get children() {
|
|
2637
|
-
var e =
|
|
2637
|
+
var e = ma();
|
|
2638
2638
|
return k(() => N(e, "src", t().logo)), e;
|
|
2639
2639
|
}
|
|
2640
2640
|
}), r), A(r, () => Z(e.text.found, {
|
|
@@ -2649,10 +2649,10 @@ function Oa(e) {
|
|
|
2649
2649
|
return j(() => !!e.joined)() && !e.hideSwitch;
|
|
2650
2650
|
},
|
|
2651
2651
|
get children() {
|
|
2652
|
-
var n =
|
|
2652
|
+
var n = la(), r = n.firstChild.firstChild, i = r.nextSibling;
|
|
2653
2653
|
return A(r, () => e.text.showOthers, null), A(r, D(Q, { get tip() {
|
|
2654
2654
|
return e.text.about;
|
|
2655
|
-
} }), null), A(i, () =>
|
|
2655
|
+
} }), null), A(i, () => Mt(e.text, e.lang, e.apps)), A(n, D($i, {
|
|
2656
2656
|
get label() {
|
|
2657
2657
|
return e.text.showOthers;
|
|
2658
2658
|
},
|
|
@@ -2662,15 +2662,15 @@ function Oa(e) {
|
|
|
2662
2662
|
},
|
|
2663
2663
|
onChange: l,
|
|
2664
2664
|
"data-fortress": "others"
|
|
2665
|
-
}), null), k((e) => F(n, d(
|
|
2665
|
+
}), null), k((e) => F(n, d(ot(t.hueStart)), e)), n;
|
|
2666
2666
|
}
|
|
2667
2667
|
}), null), A(a, D(B, {
|
|
2668
2668
|
get when() {
|
|
2669
2669
|
return j(() => !!e.joined)() && t.removed.length > 0;
|
|
2670
2670
|
},
|
|
2671
2671
|
get children() {
|
|
2672
|
-
var r =
|
|
2673
|
-
return A(r, () => p("info"), a), A(a, () => Z(e.text.removedNote, { devices:
|
|
2672
|
+
var r = ua(), a = r.firstChild;
|
|
2673
|
+
return A(r, () => p("info"), a), A(a, () => Z(e.text.removedNote, { devices: pt(e.lang, t.removed) })), A(r, D(B, {
|
|
2674
2674
|
get when() {
|
|
2675
2675
|
return e.onChangePhrase;
|
|
2676
2676
|
},
|
|
@@ -2697,12 +2697,12 @@ function Oa(e) {
|
|
|
2697
2697
|
},
|
|
2698
2698
|
get children() {
|
|
2699
2699
|
return [(() => {
|
|
2700
|
-
var n =
|
|
2700
|
+
var n = da();
|
|
2701
2701
|
return A(n, D(R, {
|
|
2702
2702
|
get each() {
|
|
2703
2703
|
return e.apps;
|
|
2704
2704
|
},
|
|
2705
|
-
children: (n, r) => e.renderApp ? e.renderApp(n, t.hueStart + 1 + r(), f()) : D(
|
|
2705
|
+
children: (n, r) => e.renderApp ? e.renderApp(n, t.hueStart + 1 + r(), f()) : D(zi, {
|
|
2706
2706
|
app: n,
|
|
2707
2707
|
get text() {
|
|
2708
2708
|
return e.text;
|
|
@@ -2724,7 +2724,7 @@ function Oa(e) {
|
|
|
2724
2724
|
}
|
|
2725
2725
|
})
|
|
2726
2726
|
})), n;
|
|
2727
|
-
})(), D(
|
|
2727
|
+
})(), D(aa, {
|
|
2728
2728
|
get text() {
|
|
2729
2729
|
return e.text;
|
|
2730
2730
|
},
|
|
@@ -2756,7 +2756,7 @@ function Oa(e) {
|
|
|
2756
2756
|
return m();
|
|
2757
2757
|
},
|
|
2758
2758
|
get children() {
|
|
2759
|
-
var t =
|
|
2759
|
+
var t = fa();
|
|
2760
2760
|
return A(t, D(B, {
|
|
2761
2761
|
get when() {
|
|
2762
2762
|
return e.joined;
|
|
@@ -2801,7 +2801,7 @@ function Oa(e) {
|
|
|
2801
2801
|
return r().window;
|
|
2802
2802
|
},
|
|
2803
2803
|
get children() {
|
|
2804
|
-
return D(
|
|
2804
|
+
return D(Ma, {
|
|
2805
2805
|
flow: n,
|
|
2806
2806
|
get state() {
|
|
2807
2807
|
return r();
|
|
@@ -2815,10 +2815,10 @@ function Oa(e) {
|
|
|
2815
2815
|
}), null), a;
|
|
2816
2816
|
})();
|
|
2817
2817
|
}
|
|
2818
|
-
function
|
|
2819
|
-
let t = U(() =>
|
|
2818
|
+
function ja(e) {
|
|
2819
|
+
let t = U(() => Vt(e.content)), n = () => t().size + 8;
|
|
2820
2820
|
return (() => {
|
|
2821
|
-
var r =
|
|
2821
|
+
var r = ga(), i = r.firstChild, a = i.nextSibling;
|
|
2822
2822
|
return k((o) => {
|
|
2823
2823
|
var s = e.name, c = `-4 -4 ${n()} ${n()}`, l = n(), u = n(), d = t().path;
|
|
2824
2824
|
return s !== o.e && N(r, "aria-label", o.e = s), c !== o.t && N(r, "viewBox", o.t = c), l !== o.a && N(i, "width", o.a = l), u !== o.o && N(i, "height", o.o = u), d !== o.i && N(a, "d", o.i = d), o;
|
|
@@ -2831,13 +2831,13 @@ function ka(e) {
|
|
|
2831
2831
|
}), r;
|
|
2832
2832
|
})();
|
|
2833
2833
|
}
|
|
2834
|
-
function
|
|
2835
|
-
let t = () => e.context.text, n = () => e.context.app, r = () => e.state.window, i = (e) => r().kind === e ? r() : void 0, a = U(() => r().kind), o = U(() => i("phrase")?.step ?? a()), s = U(() => i("join")?.focus ?? -1), c = U(() => e.state.refusal), l, [u, d] = W(!1), f = () => e.context.pairedWith?.length ?
|
|
2834
|
+
function Ma(e) {
|
|
2835
|
+
let t = () => e.context.text, n = () => e.context.app, r = () => e.state.window, i = (e) => r().kind === e ? r() : void 0, a = U(() => r().kind), o = U(() => i("phrase")?.step ?? a()), s = U(() => i("join")?.focus ?? -1), c = U(() => e.state.refusal), l, [u, d] = W(!1), f = () => e.context.pairedWith?.length ? pt(e.context.lang, e.context.pairedWith) : null, m = () => e.state.busy !== null, g = () => D(B, {
|
|
2836
2836
|
get when() {
|
|
2837
2837
|
return e.state.error;
|
|
2838
2838
|
},
|
|
2839
2839
|
get children() {
|
|
2840
|
-
var t =
|
|
2840
|
+
var t = _a();
|
|
2841
2841
|
return A(t, () => e.state.error), t;
|
|
2842
2842
|
}
|
|
2843
2843
|
}), _ = (e, t, n, r, i = () => !1) => ({
|
|
@@ -2855,21 +2855,21 @@ function Aa(e) {
|
|
|
2855
2855
|
attrs: { "data-fortress": "copy" },
|
|
2856
2856
|
onClick: () => {
|
|
2857
2857
|
let e = r();
|
|
2858
|
-
return (e.kind === "phrase" || e.kind === "changed") &&
|
|
2858
|
+
return (e.kind === "phrase" || e.kind === "changed") && We(e.words.join(" ")).then(d), !1;
|
|
2859
2859
|
}
|
|
2860
2860
|
}), y = (t, n) => {
|
|
2861
2861
|
e.flow.enter(t, n.value);
|
|
2862
2862
|
let r = i("join")?.words[t];
|
|
2863
2863
|
r !== void 0 && n.value !== r && (n.value = r);
|
|
2864
2864
|
}, b = (n) => (() => {
|
|
2865
|
-
var r =
|
|
2865
|
+
var r = va(), i = r.firstChild, a = i.nextSibling;
|
|
2866
2866
|
return A(i, D(be, {
|
|
2867
2867
|
each: n,
|
|
2868
2868
|
children: (e, t) => (() => {
|
|
2869
|
-
var n =
|
|
2869
|
+
var n = ya(), r = n.firstChild;
|
|
2870
2870
|
return A(r, t + 1), A(n, e, null), n;
|
|
2871
2871
|
})()
|
|
2872
|
-
})), A(r, D(
|
|
2872
|
+
})), A(r, D(ja, {
|
|
2873
2873
|
get content() {
|
|
2874
2874
|
return j(() => !!e.context.phraseQr)() ? e.context.phraseQr(n) : n.join(" ");
|
|
2875
2875
|
},
|
|
@@ -2888,7 +2888,7 @@ function Aa(e) {
|
|
|
2888
2888
|
case "join": return {
|
|
2889
2889
|
title: n.joinTitle,
|
|
2890
2890
|
size: "wide",
|
|
2891
|
-
actions: [_("join", a.join, n.join, r.join, () => !
|
|
2891
|
+
actions: [_("join", a.join, n.join, r.join, () => !Pt(i("join")?.words ?? []))]
|
|
2892
2892
|
};
|
|
2893
2893
|
case "joined": return {
|
|
2894
2894
|
title: n.joinTitle,
|
|
@@ -2930,7 +2930,7 @@ function Aa(e) {
|
|
|
2930
2930
|
actions: [v()]
|
|
2931
2931
|
};
|
|
2932
2932
|
}
|
|
2933
|
-
}), S = D(
|
|
2933
|
+
}), S = D(Ai, {
|
|
2934
2934
|
ref: (e) => l = e,
|
|
2935
2935
|
get title() {
|
|
2936
2936
|
return x().title;
|
|
@@ -2961,7 +2961,7 @@ function Aa(e) {
|
|
|
2961
2961
|
return i("join");
|
|
2962
2962
|
},
|
|
2963
2963
|
children: (r) => (() => {
|
|
2964
|
-
var i =
|
|
2964
|
+
var i = Sa(), a = i.firstChild, o = a.nextSibling, s = o.nextSibling.nextSibling;
|
|
2965
2965
|
return i.addEventListener("submit", (t) => {
|
|
2966
2966
|
t.preventDefault(), e.flow.join();
|
|
2967
2967
|
}), A(a, () => t().about), A(o, D(be, {
|
|
@@ -2969,7 +2969,7 @@ function Aa(e) {
|
|
|
2969
2969
|
return r().words;
|
|
2970
2970
|
},
|
|
2971
2971
|
children: (e, n) => (() => {
|
|
2972
|
-
var r =
|
|
2972
|
+
var r = Ca(), i = r.firstChild, a = i.nextSibling;
|
|
2973
2973
|
return A(i, n + 1), a.$$input = (e) => y(n, e.currentTarget), N(a, "data-word", n), N(a, "spellcheck", !1), k(() => N(a, "aria-label", Z(t().word, { n: n + 1 }))), k(() => a.value = e()), r;
|
|
2974
2974
|
})()
|
|
2975
2975
|
})), A(s, () => t().phraseWhere), A(i, D(B, {
|
|
@@ -2977,7 +2977,7 @@ function Aa(e) {
|
|
|
2977
2977
|
return f();
|
|
2978
2978
|
},
|
|
2979
2979
|
children: (e) => (() => {
|
|
2980
|
-
var r =
|
|
2980
|
+
var r = wa(), i = r.firstChild;
|
|
2981
2981
|
return A(r, () => p("info"), i), A(i, () => Z(t().moves, {
|
|
2982
2982
|
app: n().name,
|
|
2983
2983
|
devices: e()
|
|
@@ -2991,9 +2991,9 @@ function Aa(e) {
|
|
|
2991
2991
|
return a() === "joined";
|
|
2992
2992
|
},
|
|
2993
2993
|
get children() {
|
|
2994
|
-
var e =
|
|
2994
|
+
var e = ba(), r = e.firstChild, i = r.nextSibling.firstChild, a = i.nextSibling;
|
|
2995
2995
|
return A(r, D(C, { get mark() {
|
|
2996
|
-
return
|
|
2996
|
+
return Ae.check;
|
|
2997
2997
|
} })), A(i, () => Z(t().joinedTitle, { app: n().name })), A(a, (() => {
|
|
2998
2998
|
var e = j(() => !!f());
|
|
2999
2999
|
return () => e() ? `${Z(t().joinedMoved, { devices: f() })} ` : "";
|
|
@@ -3005,7 +3005,7 @@ function Aa(e) {
|
|
|
3005
3005
|
return a() === "leave";
|
|
3006
3006
|
},
|
|
3007
3007
|
get children() {
|
|
3008
|
-
var r =
|
|
3008
|
+
var r = xa(), i = r.firstChild, a = i.nextSibling;
|
|
3009
3009
|
return A(i, () => Z(t().leaveBody, { app: n().name }), null), A(i, (() => {
|
|
3010
3010
|
var e = j(() => !!f());
|
|
3011
3011
|
return () => e() && ` ${Z(t().leavePairing, { devices: f() })}`;
|
|
@@ -3020,7 +3020,7 @@ function Aa(e) {
|
|
|
3020
3020
|
return i("remove");
|
|
3021
3021
|
},
|
|
3022
3022
|
children: (e) => (() => {
|
|
3023
|
-
var n =
|
|
3023
|
+
var n = xa(), r = n.firstChild, i = r.nextSibling;
|
|
3024
3024
|
return A(r, () => Z(t().removeBody, { device: e().device })), A(i, () => t().removeBack), A(n, g, null), n;
|
|
3025
3025
|
})()
|
|
3026
3026
|
}),
|
|
@@ -3029,7 +3029,7 @@ function Aa(e) {
|
|
|
3029
3029
|
return i("removed");
|
|
3030
3030
|
},
|
|
3031
3031
|
children: (e) => (() => {
|
|
3032
|
-
var n =
|
|
3032
|
+
var n = Ta(), r = n.firstChild;
|
|
3033
3033
|
return A(r, () => Z(t().removedBody, { device: e().device })), A(n, g, null), n;
|
|
3034
3034
|
})()
|
|
3035
3035
|
}),
|
|
@@ -3038,10 +3038,10 @@ function Aa(e) {
|
|
|
3038
3038
|
return j(() => i("phrase")?.step === "password")() && i("phrase");
|
|
3039
3039
|
},
|
|
3040
3040
|
children: (r) => (() => {
|
|
3041
|
-
var i =
|
|
3041
|
+
var i = Ea(), a = i.firstChild;
|
|
3042
3042
|
return i.addEventListener("submit", (t) => {
|
|
3043
3043
|
t.preventDefault(), e.flow.unlock();
|
|
3044
|
-
}), A(a, () => Z(t().phrasePassword, { app: n().name })), A(i, D(
|
|
3044
|
+
}), A(a, () => Z(t().phrasePassword, { app: n().name })), A(i, D(sa, {
|
|
3045
3045
|
get "aria-label"() {
|
|
3046
3046
|
return Z(t().password, { app: n().name });
|
|
3047
3047
|
},
|
|
@@ -3066,7 +3066,7 @@ function Aa(e) {
|
|
|
3066
3066
|
return i("phrase");
|
|
3067
3067
|
},
|
|
3068
3068
|
children: (e) => (() => {
|
|
3069
|
-
var n =
|
|
3069
|
+
var n = Ta(), r = n.firstChild;
|
|
3070
3070
|
return A(r, () => t().phraseBody), A(n, () => b(e().words), null), n;
|
|
3071
3071
|
})()
|
|
3072
3072
|
}),
|
|
@@ -3075,7 +3075,7 @@ function Aa(e) {
|
|
|
3075
3075
|
return a() === "change";
|
|
3076
3076
|
},
|
|
3077
3077
|
get children() {
|
|
3078
|
-
var e =
|
|
3078
|
+
var e = xa(), n = e.firstChild, r = n.nextSibling;
|
|
3079
3079
|
return A(n, () => t().changeBody), A(r, () => t().changeAway), A(e, g, null), e;
|
|
3080
3080
|
}
|
|
3081
3081
|
}),
|
|
@@ -3084,14 +3084,14 @@ function Aa(e) {
|
|
|
3084
3084
|
return i("changed");
|
|
3085
3085
|
},
|
|
3086
3086
|
children: (n) => (() => {
|
|
3087
|
-
var r =
|
|
3087
|
+
var r = Ta(), i = r.firstChild;
|
|
3088
3088
|
return A(i, () => t().phraseBody), A(r, () => b(n().words), null), A(r, D(B, {
|
|
3089
3089
|
get when() {
|
|
3090
3090
|
return n().left.length > 0;
|
|
3091
3091
|
},
|
|
3092
3092
|
get children() {
|
|
3093
|
-
var r =
|
|
3094
|
-
return A(r, () => Z(t().changedLeft, { devices:
|
|
3093
|
+
var r = Da();
|
|
3094
|
+
return A(r, () => Z(t().changedLeft, { devices: pt(e.context.lang, n().left) })), r;
|
|
3095
3095
|
}
|
|
3096
3096
|
}), null), r;
|
|
3097
3097
|
})()
|
|
@@ -3102,29 +3102,29 @@ function Aa(e) {
|
|
|
3102
3102
|
});
|
|
3103
3103
|
return H(q(c, (e) => {
|
|
3104
3104
|
let t = e && l?.querySelector(`[data-fortress="${e.button}"]`);
|
|
3105
|
-
t && J(
|
|
3105
|
+
t && J(an(t));
|
|
3106
3106
|
})), H(() => {
|
|
3107
3107
|
s() >= 0 && l?.querySelector(`[data-word="${s()}"]`)?.focus();
|
|
3108
3108
|
}), H(q(a, () => {
|
|
3109
|
-
l &&
|
|
3109
|
+
l && jn(l)?.focus();
|
|
3110
3110
|
}, { defer: !0 })), H(() => {
|
|
3111
3111
|
if (!u()) return;
|
|
3112
3112
|
let e = setTimeout(() => d(!1), Ee);
|
|
3113
3113
|
J(() => clearTimeout(e));
|
|
3114
3114
|
}), S;
|
|
3115
3115
|
}
|
|
3116
|
-
function
|
|
3117
|
-
let t =
|
|
3116
|
+
function Na(e) {
|
|
3117
|
+
let t = Ke(() => ({
|
|
3118
3118
|
onLeave: e.onLeave,
|
|
3119
3119
|
onShowPhrase: e.onShowPhrase,
|
|
3120
3120
|
onChangePhrase: e.onChangePhrase,
|
|
3121
3121
|
phrasePassword: e.phrasePassword,
|
|
3122
3122
|
failed: e.text.failed
|
|
3123
|
-
})), n =
|
|
3124
|
-
...
|
|
3123
|
+
})), n = ka(t), r = () => ({
|
|
3124
|
+
...Oa,
|
|
3125
3125
|
...e.labelKeys
|
|
3126
3126
|
});
|
|
3127
|
-
return D(
|
|
3127
|
+
return D(In, {
|
|
3128
3128
|
"data-glim": "FortressPairing",
|
|
3129
3129
|
get title() {
|
|
3130
3130
|
return e.text.pairing;
|
|
@@ -3140,7 +3140,7 @@ function ja(e) {
|
|
|
3140
3140
|
return e.onShowPhrase || e.onChangePhrase;
|
|
3141
3141
|
},
|
|
3142
3142
|
get children() {
|
|
3143
|
-
return D(
|
|
3143
|
+
return D(fi, {
|
|
3144
3144
|
get label() {
|
|
3145
3145
|
return e.text.phraseTitle;
|
|
3146
3146
|
},
|
|
@@ -3190,7 +3190,7 @@ function ja(e) {
|
|
|
3190
3190
|
});
|
|
3191
3191
|
}
|
|
3192
3192
|
}),
|
|
3193
|
-
D(
|
|
3193
|
+
D(fi, {
|
|
3194
3194
|
get label() {
|
|
3195
3195
|
return e.text.leaveRow;
|
|
3196
3196
|
},
|
|
@@ -3218,7 +3218,7 @@ function ja(e) {
|
|
|
3218
3218
|
return n().window;
|
|
3219
3219
|
},
|
|
3220
3220
|
get children() {
|
|
3221
|
-
return D(
|
|
3221
|
+
return D(Ma, {
|
|
3222
3222
|
flow: t,
|
|
3223
3223
|
get state() {
|
|
3224
3224
|
return n();
|
|
@@ -3236,14 +3236,14 @@ function ja(e) {
|
|
|
3236
3236
|
}
|
|
3237
3237
|
O(["input"]);
|
|
3238
3238
|
// src/ProgressBar.tsx
|
|
3239
|
-
var
|
|
3240
|
-
function
|
|
3241
|
-
let t = () =>
|
|
3239
|
+
var Pa = /*#__PURE__*/ I("<span data-glim=ProgressBar role=progressbar><span class=glim-progress-fill>");
|
|
3240
|
+
function Fa(e) {
|
|
3241
|
+
let t = () => Bt(e.value, {
|
|
3242
3242
|
paused: e.paused,
|
|
3243
3243
|
failed: e.failed
|
|
3244
3244
|
});
|
|
3245
3245
|
return (() => {
|
|
3246
|
-
var n =
|
|
3246
|
+
var n = Pa(), r = n.firstChild;
|
|
3247
3247
|
return k((i) => {
|
|
3248
3248
|
var a = e.label, o = t().percent === null ? void 0 : 0, s = t().percent === null ? void 0 : 100, c = t().percent ?? void 0, l = e.valueText, u = e.class ? `${t().className} ${e.class}` : t().className, d = t().width ? { width: t().width } : void 0;
|
|
3249
3249
|
return a !== i.e && N(n, "aria-label", i.e = a), o !== i.t && N(n, "aria-valuemin", i.t = o), s !== i.a && N(n, "aria-valuemax", i.a = s), c !== i.o && N(n, "aria-valuenow", i.o = c), l !== i.i && N(n, "aria-valuetext", i.i = l), u !== i.n && E(n, i.n = u), i.s = F(r, d, i.s), i;
|
|
@@ -3259,14 +3259,14 @@ function Na(e) {
|
|
|
3259
3259
|
})();
|
|
3260
3260
|
}
|
|
3261
3261
|
// src/FortressStatusWindow.tsx
|
|
3262
|
-
var
|
|
3263
|
-
function
|
|
3262
|
+
var Ia = /*#__PURE__*/ I("<section class=glim-status-section><h3 class=glim-status-heading></h3><ul class=glim-status-list>"), La = /*#__PURE__*/ I("<p class=glim-fortress-note data-fortress=loading><span role=status>"), Ra = /*#__PURE__*/ I("<p class=glim-fortress-note role=status data-fortress=error><span>"), za = /*#__PURE__*/ I("<p class=glim-fortress-sub data-fortress=where>"), Ba = /*#__PURE__*/ I("<div class=glim-fortress-text data-fortress=status>"), Va = /*#__PURE__*/ I("<img alt>"), Ha = /*#__PURE__*/ I("<span class=glim-status-title>"), Ua = /*#__PURE__*/ I("<span class=glim-fortress-sub>"), Wa = /*#__PURE__*/ I("<p class=glim-status-state data-fortress=state>"), Ga = /*#__PURE__*/ I("<li class=glim-status-line> <span>"), Ka = /*#__PURE__*/ I("<li class=glim-status-work><span>"), qa = /*#__PURE__*/ I("<li class=glim-status-line><span></span> <span class=\"glim-status-at glim-num\">"), Ja = /*#__PURE__*/ I("<li class=glim-status-line><span class=\"glim-status-at glim-num\"></span> <!> <span>");
|
|
3263
|
+
function Ya(e) {
|
|
3264
3264
|
return D(B, {
|
|
3265
3265
|
get when() {
|
|
3266
3266
|
return e.items.length > 0;
|
|
3267
3267
|
},
|
|
3268
3268
|
get children() {
|
|
3269
|
-
var t =
|
|
3269
|
+
var t = Ia(), n = t.firstChild, r = n.nextSibling;
|
|
3270
3270
|
return A(n, () => e.title), A(r, D(R, {
|
|
3271
3271
|
get each() {
|
|
3272
3272
|
return e.items;
|
|
@@ -3278,8 +3278,8 @@ function qa(e) {
|
|
|
3278
3278
|
}
|
|
3279
3279
|
});
|
|
3280
3280
|
}
|
|
3281
|
-
function
|
|
3282
|
-
let t = U(() =>
|
|
3281
|
+
function Xa(e) {
|
|
3282
|
+
let t = U(() => pn({
|
|
3283
3283
|
app: e.app,
|
|
3284
3284
|
instance: e.instance,
|
|
3285
3285
|
report: e.report,
|
|
@@ -3288,7 +3288,7 @@ function Ja(e) {
|
|
|
3288
3288
|
error: e.error,
|
|
3289
3289
|
text: e.text
|
|
3290
3290
|
}));
|
|
3291
|
-
return D(
|
|
3291
|
+
return D(Ai, {
|
|
3292
3292
|
"data-glim": "FortressStatusWindow",
|
|
3293
3293
|
get lang() {
|
|
3294
3294
|
return e.lang;
|
|
@@ -3298,13 +3298,13 @@ function Ja(e) {
|
|
|
3298
3298
|
},
|
|
3299
3299
|
get drawn() {
|
|
3300
3300
|
return (() => {
|
|
3301
|
-
var n =
|
|
3301
|
+
var n = Ha();
|
|
3302
3302
|
return A(n, D(B, {
|
|
3303
3303
|
get when() {
|
|
3304
3304
|
return e.app.logo;
|
|
3305
3305
|
},
|
|
3306
3306
|
get children() {
|
|
3307
|
-
var t =
|
|
3307
|
+
var t = Va();
|
|
3308
3308
|
return k(() => N(t, "src", e.app.logo)), t;
|
|
3309
3309
|
}
|
|
3310
3310
|
}), null), A(n, () => t().title, null), n;
|
|
@@ -3328,13 +3328,13 @@ function Ja(e) {
|
|
|
3328
3328
|
}];
|
|
3329
3329
|
},
|
|
3330
3330
|
get children() {
|
|
3331
|
-
var n =
|
|
3331
|
+
var n = Ba();
|
|
3332
3332
|
return A(n, D(B, {
|
|
3333
3333
|
get when() {
|
|
3334
3334
|
return t().loading;
|
|
3335
3335
|
},
|
|
3336
3336
|
get children() {
|
|
3337
|
-
var e =
|
|
3337
|
+
var e = La(), n = e.firstChild;
|
|
3338
3338
|
return A(e, D(i, {
|
|
3339
3339
|
size: "small",
|
|
3340
3340
|
delay: 0
|
|
@@ -3345,7 +3345,7 @@ function Ja(e) {
|
|
|
3345
3345
|
return t().error !== void 0;
|
|
3346
3346
|
},
|
|
3347
3347
|
get children() {
|
|
3348
|
-
var e =
|
|
3348
|
+
var e = Ra(), n = e.firstChild;
|
|
3349
3349
|
return A(e, () => p("info"), n), A(n, () => t().error), e;
|
|
3350
3350
|
}
|
|
3351
3351
|
}), null), A(n, D(B, {
|
|
@@ -3353,7 +3353,7 @@ function Ja(e) {
|
|
|
3353
3353
|
return t().state;
|
|
3354
3354
|
},
|
|
3355
3355
|
children: (e) => (() => {
|
|
3356
|
-
var n =
|
|
3356
|
+
var n = Wa();
|
|
3357
3357
|
return A(n, D(l, {
|
|
3358
3358
|
get tone() {
|
|
3359
3359
|
return e().tone;
|
|
@@ -3366,12 +3366,12 @@ function Ja(e) {
|
|
|
3366
3366
|
return t().quiet;
|
|
3367
3367
|
},
|
|
3368
3368
|
get children() {
|
|
3369
|
-
var e =
|
|
3369
|
+
var e = Ua();
|
|
3370
3370
|
return A(e, () => t().quiet), e;
|
|
3371
3371
|
}
|
|
3372
3372
|
}), null), n;
|
|
3373
3373
|
})()
|
|
3374
|
-
}), null), A(n, D(
|
|
3374
|
+
}), null), A(n, D(Ya, {
|
|
3375
3375
|
name: "needs",
|
|
3376
3376
|
get title() {
|
|
3377
3377
|
return e.text.statusNeedsYou;
|
|
@@ -3380,7 +3380,7 @@ function Ja(e) {
|
|
|
3380
3380
|
return t().needsYou;
|
|
3381
3381
|
},
|
|
3382
3382
|
children: (e) => (() => {
|
|
3383
|
-
var t =
|
|
3383
|
+
var t = Ga(), n = t.firstChild, r = n.nextSibling;
|
|
3384
3384
|
return A(t, D(B, {
|
|
3385
3385
|
get when() {
|
|
3386
3386
|
return e.level;
|
|
@@ -3395,7 +3395,7 @@ function Ja(e) {
|
|
|
3395
3395
|
})
|
|
3396
3396
|
}), n), A(r, () => e.text), t;
|
|
3397
3397
|
})()
|
|
3398
|
-
}), null), A(n, D(
|
|
3398
|
+
}), null), A(n, D(Ya, {
|
|
3399
3399
|
name: "work",
|
|
3400
3400
|
get title() {
|
|
3401
3401
|
return e.text.statusWork;
|
|
@@ -3404,8 +3404,8 @@ function Ja(e) {
|
|
|
3404
3404
|
return t().work;
|
|
3405
3405
|
},
|
|
3406
3406
|
children: (e) => (() => {
|
|
3407
|
-
var t =
|
|
3408
|
-
return A(n, () => e.title), A(t, D(
|
|
3407
|
+
var t = Ka(), n = t.firstChild;
|
|
3408
|
+
return A(n, () => e.title), A(t, D(Fa, {
|
|
3409
3409
|
get value() {
|
|
3410
3410
|
return e.progress;
|
|
3411
3411
|
},
|
|
@@ -3414,7 +3414,7 @@ function Ja(e) {
|
|
|
3414
3414
|
}
|
|
3415
3415
|
}), null), t;
|
|
3416
3416
|
})()
|
|
3417
|
-
}), null), A(n, D(
|
|
3417
|
+
}), null), A(n, D(Ya, {
|
|
3418
3418
|
name: "next",
|
|
3419
3419
|
get title() {
|
|
3420
3420
|
return e.text.statusNext;
|
|
@@ -3423,10 +3423,10 @@ function Ja(e) {
|
|
|
3423
3423
|
return t().next;
|
|
3424
3424
|
},
|
|
3425
3425
|
children: (e) => (() => {
|
|
3426
|
-
var t =
|
|
3426
|
+
var t = qa(), n = t.firstChild, r = n.nextSibling.nextSibling;
|
|
3427
3427
|
return A(n, () => e.title), A(r, () => e.at), t;
|
|
3428
3428
|
})()
|
|
3429
|
-
}), null), A(n, D(
|
|
3429
|
+
}), null), A(n, D(Ya, {
|
|
3430
3430
|
name: "log",
|
|
3431
3431
|
get title() {
|
|
3432
3432
|
return e.text.statusLog;
|
|
@@ -3435,7 +3435,7 @@ function Ja(e) {
|
|
|
3435
3435
|
return t().log;
|
|
3436
3436
|
},
|
|
3437
3437
|
children: (e) => (() => {
|
|
3438
|
-
var t =
|
|
3438
|
+
var t = Ja(), n = t.firstChild, r = n.nextSibling.nextSibling, i = r.nextSibling.nextSibling;
|
|
3439
3439
|
return A(n, () => e.at), A(t, D(B, {
|
|
3440
3440
|
get when() {
|
|
3441
3441
|
return e.level;
|
|
@@ -3455,7 +3455,7 @@ function Ja(e) {
|
|
|
3455
3455
|
return t().where;
|
|
3456
3456
|
},
|
|
3457
3457
|
get children() {
|
|
3458
|
-
var e =
|
|
3458
|
+
var e = za();
|
|
3459
3459
|
return A(e, () => t().where), e;
|
|
3460
3460
|
}
|
|
3461
3461
|
}), null), n;
|
|
@@ -3463,8 +3463,8 @@ function Ja(e) {
|
|
|
3463
3463
|
});
|
|
3464
3464
|
}
|
|
3465
3465
|
// src/GlyphField.tsx
|
|
3466
|
-
var
|
|
3467
|
-
function
|
|
3466
|
+
var Za = /*#__PURE__*/ I("<label data-glim=GlyphField><span class=glim-glyph-field-glyph aria-hidden=true></span><input>");
|
|
3467
|
+
function Qa(e) {
|
|
3468
3468
|
let t = K({ type: "text" }, e), [n, r] = X(t, [
|
|
3469
3469
|
"glyph",
|
|
3470
3470
|
"label",
|
|
@@ -3477,12 +3477,12 @@ function Xa(e) {
|
|
|
3477
3477
|
]), i = T(() => n.label), a = () => [
|
|
3478
3478
|
"glim-input",
|
|
3479
3479
|
"glim-glyph-field",
|
|
3480
|
-
|
|
3480
|
+
Ze(n.width),
|
|
3481
3481
|
n.mono && "glim-input--mono",
|
|
3482
3482
|
n.class
|
|
3483
3483
|
].filter(Boolean).join(" ");
|
|
3484
3484
|
return (() => {
|
|
3485
|
-
var e =
|
|
3485
|
+
var e = Za(), t = e.firstChild, o = t.nextSibling;
|
|
3486
3486
|
return A(t, () => n.glyph), P(o, M({ get "aria-label"() {
|
|
3487
3487
|
return i();
|
|
3488
3488
|
} }, r, {
|
|
@@ -3500,8 +3500,8 @@ function Xa(e) {
|
|
|
3500
3500
|
})();
|
|
3501
3501
|
}
|
|
3502
3502
|
// src/GlyphTile.tsx
|
|
3503
|
-
var
|
|
3504
|
-
function
|
|
3503
|
+
var $a = /*#__PURE__*/ I("<span data-glim=GlyphTile aria-hidden=true>");
|
|
3504
|
+
function eo(e) {
|
|
3505
3505
|
let t = () => [
|
|
3506
3506
|
"glim-tile",
|
|
3507
3507
|
e.quiet && "glim-tile--quiet",
|
|
@@ -3510,13 +3510,13 @@ function Qa(e) {
|
|
|
3510
3510
|
e.class
|
|
3511
3511
|
].filter(Boolean).join(" ");
|
|
3512
3512
|
return (() => {
|
|
3513
|
-
var n =
|
|
3513
|
+
var n = $a();
|
|
3514
3514
|
return A(n, () => e.glyph), k(() => E(n, t())), n;
|
|
3515
3515
|
})();
|
|
3516
3516
|
}
|
|
3517
3517
|
// src/ListRow.tsx
|
|
3518
|
-
var
|
|
3519
|
-
function
|
|
3518
|
+
var to = /*#__PURE__*/ I("<span class=glim-list-row-tile>"), no = /*#__PURE__*/ I("<span class=glim-list-row-badges>"), ro = /*#__PURE__*/ I("<span class=glim-list-row-actions>"), io = /*#__PURE__*/ I("<div data-glim=ListRow role=group><span><span class=glim-list-row-title>"), ao = /*#__PURE__*/ I("<span class=glim-list-row-tip>"), oo = (e) => e.stopPropagation();
|
|
3519
|
+
function so(e) {
|
|
3520
3520
|
let [t, n] = X(e, [
|
|
3521
3521
|
"name",
|
|
3522
3522
|
"tip",
|
|
@@ -3535,7 +3535,7 @@ function ao(e) {
|
|
|
3535
3535
|
t.class
|
|
3536
3536
|
].filter(Boolean).join(" ");
|
|
3537
3537
|
return (() => {
|
|
3538
|
-
var e =
|
|
3538
|
+
var e = io(), c = e.firstChild, l = c.firstChild;
|
|
3539
3539
|
return P(e, M({
|
|
3540
3540
|
get "aria-label"() {
|
|
3541
3541
|
return t.name;
|
|
@@ -3556,7 +3556,7 @@ function ao(e) {
|
|
|
3556
3556
|
return i();
|
|
3557
3557
|
},
|
|
3558
3558
|
get children() {
|
|
3559
|
-
var e =
|
|
3559
|
+
var e = to();
|
|
3560
3560
|
return A(e, i), e;
|
|
3561
3561
|
}
|
|
3562
3562
|
}), c), A(l, () => t.name), A(c, D(B, {
|
|
@@ -3564,8 +3564,8 @@ function ao(e) {
|
|
|
3564
3564
|
return t.tip;
|
|
3565
3565
|
},
|
|
3566
3566
|
children: (e) => (() => {
|
|
3567
|
-
var t =
|
|
3568
|
-
return t.$$click =
|
|
3567
|
+
var t = ao();
|
|
3568
|
+
return t.$$click = oo, A(t, D(Q, { get tip() {
|
|
3569
3569
|
return e();
|
|
3570
3570
|
} })), t;
|
|
3571
3571
|
})()
|
|
@@ -3574,7 +3574,7 @@ function ao(e) {
|
|
|
3574
3574
|
return a();
|
|
3575
3575
|
},
|
|
3576
3576
|
get children() {
|
|
3577
|
-
var e =
|
|
3577
|
+
var e = no();
|
|
3578
3578
|
return A(e, a), e;
|
|
3579
3579
|
}
|
|
3580
3580
|
}), null), A(e, D(B, {
|
|
@@ -3582,26 +3582,26 @@ function ao(e) {
|
|
|
3582
3582
|
return o();
|
|
3583
3583
|
},
|
|
3584
3584
|
get children() {
|
|
3585
|
-
var e =
|
|
3586
|
-
return e.$$click =
|
|
3585
|
+
var e = ro();
|
|
3586
|
+
return e.$$click = oo, A(e, o), e;
|
|
3587
3587
|
}
|
|
3588
3588
|
}), null), k(() => E(c, t.mono ? "glim-list-row-name glim-list-row-name--mono" : "glim-list-row-name")), e;
|
|
3589
3589
|
})();
|
|
3590
3590
|
}
|
|
3591
3591
|
O(["click"]);
|
|
3592
3592
|
// src/Popover.tsx
|
|
3593
|
-
var
|
|
3594
|
-
function
|
|
3593
|
+
var co = /*#__PURE__*/ I("<div data-glim=Popover popover=auto role=dialog>");
|
|
3594
|
+
function lo(e) {
|
|
3595
3595
|
let [t, n] = W(), r = G();
|
|
3596
3596
|
return H(() => {
|
|
3597
3597
|
let n = t();
|
|
3598
|
-
e.open && e.anchor && n && J(
|
|
3598
|
+
e.open && e.anchor && n && J(At(n, e.anchor, Pe(r), () => e.onClose()));
|
|
3599
3599
|
}), D(B, {
|
|
3600
3600
|
get when() {
|
|
3601
3601
|
return e.open;
|
|
3602
3602
|
},
|
|
3603
3603
|
get children() {
|
|
3604
|
-
var t =
|
|
3604
|
+
var t = co();
|
|
3605
3605
|
return L(n, t), A(t, () => e.children), k((n) => {
|
|
3606
3606
|
var r = e.label, i = e.class ? `glim-popover ${e.class}` : "glim-popover";
|
|
3607
3607
|
return r !== n.e && N(t, "aria-label", n.e = r), i !== n.t && E(t, n.t = i), n;
|
|
@@ -3613,13 +3613,13 @@ function so(e) {
|
|
|
3613
3613
|
});
|
|
3614
3614
|
}
|
|
3615
3615
|
// src/ListTable.tsx
|
|
3616
|
-
var
|
|
3617
|
-
function
|
|
3616
|
+
var uo = /*#__PURE__*/ I("<input class=\"glim-input glim-list-search\"type=search>"), fo = /*#__PURE__*/ I("<p class=glim-list-empty>"), po = /*#__PURE__*/ I("<div data-glim=ListTable class=glim-list><table role=grid aria-multiselectable=true class=glim-list-table><thead><tr></tr></thead><tbody></tbody></table><p class=glim-list-hint>"), mo = /*#__PURE__*/ I("<button type=button aria-haspopup=dialog class=glim-list-filter>"), ho = /*#__PURE__*/ I("<th scope=col><span class=glim-list-th-box><button type=button class=glim-list-sort>"), go = /*#__PURE__*/ I("<tr class=glim-list-tr>"), _o = /*#__PURE__*/ I("<td>"), vo = /*#__PURE__*/ I("<div class=glim-list-filter-values>");
|
|
3617
|
+
function yo(e) {
|
|
3618
3618
|
let [t, n] = W(null), [r, i] = W({}), [a, o] = W(null), [s, c] = W({
|
|
3619
3619
|
keys: [],
|
|
3620
3620
|
anchor: null,
|
|
3621
3621
|
focus: null
|
|
3622
|
-
}), [l, u] = W(null), [d, f] = W(0), p, m, h = G(), g = U(() =>
|
|
3622
|
+
}), [l, u] = W(null), [d, f] = W(0), p, m, h = G(), g = U(() => mt(e.rows, {
|
|
3623
3623
|
sort: t(),
|
|
3624
3624
|
filters: r(),
|
|
3625
3625
|
query: a() ?? "",
|
|
@@ -3642,14 +3642,14 @@ function _o(e) {
|
|
|
3642
3642
|
}
|
|
3643
3643
|
H(q(d, () => p.querySelector(`tbody tr:nth-child(${v().focus + 1}) > td`)?.focus(), { defer: !0 })), H(q(() => a() !== null, (e) => e && m?.focus()));
|
|
3644
3644
|
function b(t) {
|
|
3645
|
-
let n =
|
|
3645
|
+
let n = ft(v(), t.key, {
|
|
3646
3646
|
toggle: t.ctrlKey || t.metaKey,
|
|
3647
3647
|
range: t.shiftKey
|
|
3648
3648
|
}, g().length);
|
|
3649
3649
|
n && !t.altKey && (t.preventDefault(), "open" in n ? e.onOpen?.(g()[n.open]) : "search" in n ? o((e) => (e ?? "") + n.search) : y(n.select));
|
|
3650
3650
|
}
|
|
3651
3651
|
function x(e, t) {
|
|
3652
|
-
y(
|
|
3652
|
+
y(Qt(v(), t, {
|
|
3653
3653
|
toggle: e.ctrlKey || e.metaKey,
|
|
3654
3654
|
range: e.shiftKey
|
|
3655
3655
|
}));
|
|
@@ -3668,13 +3668,13 @@ function _o(e) {
|
|
|
3668
3668
|
};
|
|
3669
3669
|
});
|
|
3670
3670
|
return (() => {
|
|
3671
|
-
var r =
|
|
3671
|
+
var r = po(), i = r.firstChild, s = i.firstChild, c = s.firstChild, d = s.nextSibling, f = i.nextSibling;
|
|
3672
3672
|
A(r, D(B, {
|
|
3673
3673
|
get when() {
|
|
3674
3674
|
return a() !== null;
|
|
3675
3675
|
},
|
|
3676
3676
|
get children() {
|
|
3677
|
-
var t =
|
|
3677
|
+
var t = uo();
|
|
3678
3678
|
t.$$keydown = (e) => {
|
|
3679
3679
|
e.key === "Escape" && (e.preventDefault(), e.stopPropagation(), S());
|
|
3680
3680
|
}, t.$$input = (e) => o(e.currentTarget.value);
|
|
@@ -3688,15 +3688,15 @@ function _o(e) {
|
|
|
3688
3688
|
return e.columns;
|
|
3689
3689
|
},
|
|
3690
3690
|
children: (r) => (() => {
|
|
3691
|
-
var i =
|
|
3692
|
-
return o.$$click = () => n((e) =>
|
|
3691
|
+
var i = ho(), a = i.firstChild, o = a.firstChild;
|
|
3692
|
+
return o.$$click = () => n((e) => Tt(e, r.key)), A(o, () => r.label, null), A(o, D(B, {
|
|
3693
3693
|
get when() {
|
|
3694
3694
|
return t()?.key === r.key;
|
|
3695
3695
|
},
|
|
3696
3696
|
get children() {
|
|
3697
3697
|
return D(C, {
|
|
3698
3698
|
get mark() {
|
|
3699
|
-
return
|
|
3699
|
+
return Ae.expand;
|
|
3700
3700
|
},
|
|
3701
3701
|
get class() {
|
|
3702
3702
|
return `glim-list-sort-mark glim-list-sort-mark--${t().dir}`;
|
|
@@ -3708,12 +3708,12 @@ function _o(e) {
|
|
|
3708
3708
|
return r.filter;
|
|
3709
3709
|
},
|
|
3710
3710
|
get children() {
|
|
3711
|
-
var t =
|
|
3711
|
+
var t = mo();
|
|
3712
3712
|
return t.$$click = (e) => u(l()?.key === r.key ? null : {
|
|
3713
3713
|
key: r.key,
|
|
3714
3714
|
at: e.currentTarget
|
|
3715
3715
|
}), A(t, D(C, { get mark() {
|
|
3716
|
-
return
|
|
3716
|
+
return Ae.expand;
|
|
3717
3717
|
} })), k((n) => {
|
|
3718
3718
|
var i = e.text.filterOf(r.label), a = l()?.key === r.key, o = te(r.key).length > 0;
|
|
3719
3719
|
return i !== n.e && N(t, "aria-label", n.e = i), a !== n.t && N(t, "aria-expanded", n.t = a), o !== n.a && N(t, "aria-pressed", n.a = o), n;
|
|
@@ -3724,7 +3724,7 @@ function _o(e) {
|
|
|
3724
3724
|
}), t;
|
|
3725
3725
|
}
|
|
3726
3726
|
}), null), k((e) => {
|
|
3727
|
-
var n =
|
|
3727
|
+
var n = Le(t(), r.key), a = r.end ? "glim-list-th glim-table-end" : "glim-list-th";
|
|
3728
3728
|
return n !== e.e && N(i, "aria-sort", e.e = n), a !== e.t && E(i, e.t = a), e;
|
|
3729
3729
|
}, {
|
|
3730
3730
|
e: void 0,
|
|
@@ -3736,15 +3736,15 @@ function _o(e) {
|
|
|
3736
3736
|
return g();
|
|
3737
3737
|
},
|
|
3738
3738
|
children: (t, n) => (() => {
|
|
3739
|
-
var r =
|
|
3739
|
+
var r = go();
|
|
3740
3740
|
return r.$$dblclick = () => e.onOpen?.(t), r.$$click = (e) => x(e, n()), A(r, D(R, {
|
|
3741
3741
|
get each() {
|
|
3742
3742
|
return e.columns;
|
|
3743
3743
|
},
|
|
3744
3744
|
children: (r, i) => (() => {
|
|
3745
|
-
var a =
|
|
3745
|
+
var a = _o();
|
|
3746
3746
|
return A(a, () => e.cell?.(t, r) ?? String(t[r.key] ?? "")), k((e) => {
|
|
3747
|
-
var t = i() === 0 ? n() === v().focus ? 0 : -1 : void 0, o =
|
|
3747
|
+
var t = i() === 0 ? n() === v().focus ? 0 : -1 : void 0, o = vn(r) || void 0;
|
|
3748
3748
|
return t !== e.e && N(a, "tabindex", e.e = t), o !== e.t && E(a, e.t = o), e;
|
|
3749
3749
|
}, {
|
|
3750
3750
|
e: void 0,
|
|
@@ -3758,14 +3758,14 @@ function _o(e) {
|
|
|
3758
3758
|
return g().length === 0;
|
|
3759
3759
|
},
|
|
3760
3760
|
get children() {
|
|
3761
|
-
var t =
|
|
3761
|
+
var t = fo();
|
|
3762
3762
|
return A(t, () => e.text.noMatch), t;
|
|
3763
3763
|
}
|
|
3764
3764
|
}), f), N(f, "id", h), A(f, () => e.text.hint), A(r, D(B, {
|
|
3765
3765
|
get when() {
|
|
3766
3766
|
return ee();
|
|
3767
3767
|
},
|
|
3768
|
-
children: (t) => D(
|
|
3768
|
+
children: (t) => D(lo, {
|
|
3769
3769
|
open: !0,
|
|
3770
3770
|
get anchor() {
|
|
3771
3771
|
return l().at;
|
|
@@ -3775,12 +3775,12 @@ function _o(e) {
|
|
|
3775
3775
|
},
|
|
3776
3776
|
onClose: () => u(null),
|
|
3777
3777
|
get children() {
|
|
3778
|
-
var n =
|
|
3778
|
+
var n = vo();
|
|
3779
3779
|
return A(n, D(R, {
|
|
3780
3780
|
get each() {
|
|
3781
|
-
return
|
|
3781
|
+
return He(e.rows, t().key);
|
|
3782
3782
|
},
|
|
3783
|
-
children: (e) => D(
|
|
3783
|
+
children: (e) => D(hr, {
|
|
3784
3784
|
label: e,
|
|
3785
3785
|
get checked() {
|
|
3786
3786
|
return te(t().key).includes(e);
|
|
@@ -3800,8 +3800,8 @@ O([
|
|
|
3800
3800
|
"dblclick"
|
|
3801
3801
|
]);
|
|
3802
3802
|
// src/MenuBar.tsx
|
|
3803
|
-
var
|
|
3804
|
-
function
|
|
3803
|
+
var bo = /*#__PURE__*/ I("<div data-glim=MenuBar role=menubar>"), xo = /*#__PURE__*/ I("<button type=button role=menuitem aria-haspopup=menu class=glim-menubar-item>");
|
|
3804
|
+
function So(e) {
|
|
3805
3805
|
let t = [], [n, r] = W(null), [i, a] = W(0), o = () => e.menus.length;
|
|
3806
3806
|
function s(e, n = !1) {
|
|
3807
3807
|
let i = t[e];
|
|
@@ -3827,13 +3827,13 @@ function bo(e) {
|
|
|
3827
3827
|
c === void 0 ? (e.key === "ArrowDown" || e.key === "ArrowUp") && (e.preventDefault(), s(n, e.key === "ArrowUp")) : (e.preventDefault(), a(c), t[c]?.focus());
|
|
3828
3828
|
}
|
|
3829
3829
|
return (() => {
|
|
3830
|
-
var l =
|
|
3830
|
+
var l = bo();
|
|
3831
3831
|
return A(l, D(be, {
|
|
3832
3832
|
get each() {
|
|
3833
3833
|
return e.menus;
|
|
3834
3834
|
},
|
|
3835
3835
|
children: (e, o) => (() => {
|
|
3836
|
-
var l =
|
|
3836
|
+
var l = xo();
|
|
3837
3837
|
return l.addEventListener("focus", () => a(o)), l.$$keydown = (e) => c(e, o), l.addEventListener("mouseenter", () => n() && n().at !== o && s(o)), l.$$click = () => n()?.at === o ? r(null) : s(o), L((e) => t[o] = e, l), A(l, () => e().label), k((e) => {
|
|
3838
3838
|
var t = n()?.at === o, r = o === i() ? 0 : -1;
|
|
3839
3839
|
return t !== e.e && N(l, "aria-expanded", e.e = t), r !== e.t && N(l, "tabindex", e.t = r), e;
|
|
@@ -3846,7 +3846,7 @@ function bo(e) {
|
|
|
3846
3846
|
get each() {
|
|
3847
3847
|
return j(() => !!(n() && e.menus[n().at]))() ? [n().at] : [];
|
|
3848
3848
|
},
|
|
3849
|
-
children: (i) => D(
|
|
3849
|
+
children: (i) => D(Wr, {
|
|
3850
3850
|
get x() {
|
|
3851
3851
|
return n().x;
|
|
3852
3852
|
},
|
|
@@ -3882,18 +3882,18 @@ function bo(e) {
|
|
|
3882
3882
|
}
|
|
3883
3883
|
O(["click", "keydown"]);
|
|
3884
3884
|
// src/Meter.tsx
|
|
3885
|
-
var
|
|
3886
|
-
function
|
|
3885
|
+
var Co = /*#__PURE__*/ I("<span data-glim=Meter><span class=glim-meter-fill>");
|
|
3886
|
+
function wo(e) {
|
|
3887
3887
|
let t = K({
|
|
3888
3888
|
size: "medium",
|
|
3889
3889
|
threshold: .9
|
|
3890
|
-
}, e), n = () =>
|
|
3890
|
+
}, e), n = () => Ct(t.value, {
|
|
3891
3891
|
size: t.size,
|
|
3892
3892
|
threshold: t.threshold,
|
|
3893
3893
|
quiet: t.quiet
|
|
3894
3894
|
}), r = u(() => t.valueText), i = () => n().percent === null;
|
|
3895
3895
|
return [(() => {
|
|
3896
|
-
var e =
|
|
3896
|
+
var e = Co(), a = e.firstChild, o = r.ref;
|
|
3897
3897
|
return typeof o == "function" ? L(o, e) : r.ref = e, P(e, M(() => r.handlers, {
|
|
3898
3898
|
get role() {
|
|
3899
3899
|
return i() ? "progressbar" : "meter";
|
|
@@ -3923,8 +3923,8 @@ function So(e) {
|
|
|
3923
3923
|
})(), j(() => r.bubble)];
|
|
3924
3924
|
}
|
|
3925
3925
|
// src/NumberField.tsx
|
|
3926
|
-
var
|
|
3927
|
-
function
|
|
3926
|
+
var To = /*#__PURE__*/ I("<span data-glim=NumberField class=glim-num-wrap><input>");
|
|
3927
|
+
function Eo(e) {
|
|
3928
3928
|
let t = K({ class: "" }, e), [n, r] = X(t, [
|
|
3929
3929
|
"class",
|
|
3930
3930
|
"ref",
|
|
@@ -3932,16 +3932,16 @@ function wo(e) {
|
|
|
3932
3932
|
"onChange",
|
|
3933
3933
|
"aria-label",
|
|
3934
3934
|
"aria-describedby"
|
|
3935
|
-
]), i = T(() => n["aria-label"]), a = G(), o = () =>
|
|
3936
|
-
return Y(() => J(
|
|
3935
|
+
]), i = T(() => n["aria-label"]), a = G(), o = () => Xe(n.error, r.id ?? a, n["aria-describedby"]), s;
|
|
3936
|
+
return Y(() => J(Re(s))), H(q(() => [
|
|
3937
3937
|
r.value,
|
|
3938
3938
|
r.min,
|
|
3939
3939
|
r.max,
|
|
3940
3940
|
r.step,
|
|
3941
3941
|
r.disabled,
|
|
3942
3942
|
r.readonly
|
|
3943
|
-
], () =>
|
|
3944
|
-
var e =
|
|
3943
|
+
], () => _n(s))), [(() => {
|
|
3944
|
+
var e = To(), t = e.firstChild;
|
|
3945
3945
|
return L((e) => {
|
|
3946
3946
|
s = e, typeof n.ref == "function" && n.ref(e);
|
|
3947
3947
|
}, t), P(t, M(r, {
|
|
@@ -3964,7 +3964,7 @@ function wo(e) {
|
|
|
3964
3964
|
get when() {
|
|
3965
3965
|
return o().errorId;
|
|
3966
3966
|
},
|
|
3967
|
-
children: (e) => D(
|
|
3967
|
+
children: (e) => D(si, {
|
|
3968
3968
|
get id() {
|
|
3969
3969
|
return e();
|
|
3970
3970
|
},
|
|
@@ -3975,8 +3975,8 @@ function wo(e) {
|
|
|
3975
3975
|
})];
|
|
3976
3976
|
}
|
|
3977
3977
|
// src/PathField.tsx
|
|
3978
|
-
var
|
|
3979
|
-
function
|
|
3978
|
+
var Do = /*#__PURE__*/ I("<span data-glim=PathField><input autocomplete=off>");
|
|
3979
|
+
function Oo(e) {
|
|
3980
3980
|
let t = K({
|
|
3981
3981
|
text: { pick: "Choose" },
|
|
3982
3982
|
compact: !1
|
|
@@ -3997,7 +3997,7 @@ function Eo(e) {
|
|
|
3997
3997
|
"ref"
|
|
3998
3998
|
]), i = T(() => n.label), [a, o] = W(!1), s, l;
|
|
3999
3999
|
Y(() => {
|
|
4000
|
-
let e = new ResizeObserver(([e]) => o(e.contentRect.width <
|
|
4000
|
+
let e = new ResizeObserver(([e]) => o(e.contentRect.width < je));
|
|
4001
4001
|
e.observe(l), J(() => e.disconnect());
|
|
4002
4002
|
});
|
|
4003
4003
|
async function u() {
|
|
@@ -4005,7 +4005,7 @@ function Eo(e) {
|
|
|
4005
4005
|
s.focus(), e && (n.onChange(e), n.onPicked?.(e));
|
|
4006
4006
|
}
|
|
4007
4007
|
return (() => {
|
|
4008
|
-
var e =
|
|
4008
|
+
var e = Do(), t = e.firstChild, o = l;
|
|
4009
4009
|
return typeof o == "function" ? L(o, e) : l = e, L((e) => {
|
|
4010
4010
|
s = e, typeof n.ref == "function" && n.ref(e);
|
|
4011
4011
|
}, t), N(t, "spellcheck", !1), P(t, M({ get "aria-label"() {
|
|
@@ -4039,7 +4039,7 @@ function Eo(e) {
|
|
|
4039
4039
|
})), null), k((t) => {
|
|
4040
4040
|
var r = [
|
|
4041
4041
|
"glim-path",
|
|
4042
|
-
|
|
4042
|
+
Ze(n.width),
|
|
4043
4043
|
n.class
|
|
4044
4044
|
].filter(Boolean).join(" "), i = n.style;
|
|
4045
4045
|
return r !== t.e && E(e, t.e = r), t.t = F(e, i, t.t), t;
|
|
@@ -4050,14 +4050,14 @@ function Eo(e) {
|
|
|
4050
4050
|
})();
|
|
4051
4051
|
}
|
|
4052
4052
|
// src/PaypalDialog.tsx
|
|
4053
|
-
var
|
|
4053
|
+
var ko = /*#__PURE__*/ I("<p class=\"glim-give-status glim-give-status--ok\">"), Ao = /*#__PURE__*/ I("<p class=\"glim-give-status glim-give-status--fail\">"), jo = /*#__PURE__*/ I("<div class=glim-modal-backdrop><div data-glim=PaypalDialog tabindex=-1 role=dialog aria-modal=true aria-labelledby=paypal-window-title class=\"glim-modal-card glim-modal-card--wide\"><div class=glim-modal-head><h2 id=paypal-window-title class=glim-modal-title></h2></div><div class=\"glim-give-body glim-give-body--scroll\"><p class=glim-give-appeal></p><p class=glim-give-intro></p><div class=glim-give-group><span id=paypal-frequency class=glim-eyebrow></span></div><div class=glim-give-group><span id=paypal-amount class=glim-eyebrow></span><div class=glim-give-amounts><div></div><input type=text inputmode=decimal></div></div><div class=glim-give-wallet><p class=glim-give-loading></p></div></div><div class=glim-give-foot>"), Mo = [
|
|
4054
4054
|
"once",
|
|
4055
4055
|
"month",
|
|
4056
4056
|
"year"
|
|
4057
4057
|
];
|
|
4058
|
-
function
|
|
4058
|
+
function No(e) {
|
|
4059
4059
|
return (() => {
|
|
4060
|
-
var t =
|
|
4060
|
+
var t = jo(), n = t.firstChild, r = n.firstChild, i = r.firstChild, a = r.nextSibling, o = a.firstChild, s = o.nextSibling, u = s.nextSibling, d = u.firstChild, f = u.nextSibling, p = f.firstChild, m = p.nextSibling.firstChild, h = m.nextSibling, g = f.nextSibling, _ = g.firstChild, v = a.nextSibling;
|
|
4061
4061
|
t.$$click = (t) => {
|
|
4062
4062
|
t.target === t.currentTarget && e.onClose();
|
|
4063
4063
|
};
|
|
@@ -4072,7 +4072,7 @@ function jo(e) {
|
|
|
4072
4072
|
})), A(o, () => e.text.appeal), A(s, () => e.text.intro), A(d, () => e.text.frequencyLabel), A(u, () => e.renderSelector({
|
|
4073
4073
|
labelledBy: "paypal-frequency",
|
|
4074
4074
|
get options() {
|
|
4075
|
-
return
|
|
4075
|
+
return Mo.map((t) => ({
|
|
4076
4076
|
value: t,
|
|
4077
4077
|
label: e.text.frequencies[t]
|
|
4078
4078
|
}));
|
|
@@ -4100,7 +4100,7 @@ function jo(e) {
|
|
|
4100
4100
|
return e.status === "done";
|
|
4101
4101
|
},
|
|
4102
4102
|
get children() {
|
|
4103
|
-
var t =
|
|
4103
|
+
var t = ko();
|
|
4104
4104
|
return A(t, () => e.text.thanks), t;
|
|
4105
4105
|
}
|
|
4106
4106
|
}), null), A(a, D(B, {
|
|
@@ -4108,7 +4108,7 @@ function jo(e) {
|
|
|
4108
4108
|
return e.status === "failed";
|
|
4109
4109
|
},
|
|
4110
4110
|
get children() {
|
|
4111
|
-
var t =
|
|
4111
|
+
var t = Ao();
|
|
4112
4112
|
return A(t, () => e.text.failed), t;
|
|
4113
4113
|
}
|
|
4114
4114
|
}), null), A(v, D(c, {
|
|
@@ -4132,31 +4132,31 @@ function jo(e) {
|
|
|
4132
4132
|
}
|
|
4133
4133
|
O(["click", "input"]);
|
|
4134
4134
|
// src/RowMark.tsx
|
|
4135
|
-
var
|
|
4136
|
-
function
|
|
4135
|
+
var Po = /*#__PURE__*/ I("<span data-glim=RowMark aria-hidden=true>");
|
|
4136
|
+
function Fo(e) {
|
|
4137
4137
|
let t = () => [
|
|
4138
4138
|
"glim-rowmark",
|
|
4139
4139
|
e.on && "glim-rowmark--on",
|
|
4140
4140
|
e.class
|
|
4141
4141
|
].filter(Boolean).join(" ");
|
|
4142
4142
|
return (() => {
|
|
4143
|
-
var e =
|
|
4143
|
+
var e = Po();
|
|
4144
4144
|
return A(e, D(S, {})), k(() => E(e, t())), e;
|
|
4145
4145
|
})();
|
|
4146
4146
|
}
|
|
4147
4147
|
// src/Sheet.tsx
|
|
4148
|
-
var
|
|
4149
|
-
function
|
|
4148
|
+
var Io = /*#__PURE__*/ I("<dialog data-glim=Sheet><div class=glim-sheet-panel><h2 class=glim-sheet-title></h2><div class=glim-sheet-body>");
|
|
4149
|
+
function Lo(e) {
|
|
4150
4150
|
let t = K({ actions: [] }, e), [n, r] = W(), i = G();
|
|
4151
4151
|
return H(() => {
|
|
4152
4152
|
let e = n();
|
|
4153
|
-
t.open && e && J(
|
|
4153
|
+
t.open && e && J(jt(e, () => t.onClose()));
|
|
4154
4154
|
}), D(B, {
|
|
4155
4155
|
get when() {
|
|
4156
4156
|
return t.open;
|
|
4157
4157
|
},
|
|
4158
4158
|
get children() {
|
|
4159
|
-
var e =
|
|
4159
|
+
var e = Io(), n = e.firstChild, a = n.firstChild, o = a.nextSibling;
|
|
4160
4160
|
return L(r, e), N(e, "aria-labelledby", i), N(a, "id", i), A(a, D(l, {
|
|
4161
4161
|
tone: "heading",
|
|
4162
4162
|
size: "heading",
|
|
@@ -4165,7 +4165,7 @@ function Fo(e) {
|
|
|
4165
4165
|
get children() {
|
|
4166
4166
|
return t.title;
|
|
4167
4167
|
}
|
|
4168
|
-
})), A(o, () => t.children), A(n, D(
|
|
4168
|
+
})), A(o, () => t.children), A(n, D(Oi, {
|
|
4169
4169
|
get actions() {
|
|
4170
4170
|
return t.actions;
|
|
4171
4171
|
},
|
|
@@ -4187,8 +4187,8 @@ function Fo(e) {
|
|
|
4187
4187
|
});
|
|
4188
4188
|
}
|
|
4189
4189
|
// src/SidebarRow.tsx
|
|
4190
|
-
var
|
|
4191
|
-
function
|
|
4190
|
+
var Ro = /*#__PURE__*/ I("<span>"), zo = /*#__PURE__*/ I("<span aria-hidden=true>"), Bo = /*#__PURE__*/ I("<span class=glim-sr-only>"), Vo = /*#__PURE__*/ I("<span class=glim-nav-row-slot>"), Ho = /*#__PURE__*/ I("<div data-glim=SidebarRow>");
|
|
4191
|
+
function Uo(e) {
|
|
4192
4192
|
let t = K({
|
|
4193
4193
|
active: !1,
|
|
4194
4194
|
class: ""
|
|
@@ -4204,7 +4204,7 @@ function Vo(e) {
|
|
|
4204
4204
|
"after",
|
|
4205
4205
|
"class",
|
|
4206
4206
|
"style"
|
|
4207
|
-
]), i = a("sidebar"), o = V(() => n.glyph), s = V(() => n.before), c = V(() => n.after), l = () => !!(s() || c()), f = U(() =>
|
|
4207
|
+
]), i = a("sidebar"), o = V(() => n.glyph), s = V(() => n.before), c = V(() => n.after), l = () => !!(s() || c()), f = U(() => sn({
|
|
4208
4208
|
mode: i(),
|
|
4209
4209
|
label: n.label,
|
|
4210
4210
|
hasGlyph: !!o(),
|
|
@@ -4258,7 +4258,7 @@ function Vo(e) {
|
|
|
4258
4258
|
}
|
|
4259
4259
|
}),
|
|
4260
4260
|
(() => {
|
|
4261
|
-
var e =
|
|
4261
|
+
var e = Ro();
|
|
4262
4262
|
return A(e, () => n.label), k(() => E(e, f().labelClass)), e;
|
|
4263
4263
|
})(),
|
|
4264
4264
|
D(B, {
|
|
@@ -4267,10 +4267,10 @@ function Vo(e) {
|
|
|
4267
4267
|
},
|
|
4268
4268
|
get children() {
|
|
4269
4269
|
return [(() => {
|
|
4270
|
-
var e =
|
|
4270
|
+
var e = zo();
|
|
4271
4271
|
return A(e, () => n.count.value), k(() => E(e, f().countClass)), e;
|
|
4272
4272
|
})(), (() => {
|
|
4273
|
-
var e =
|
|
4273
|
+
var e = Bo();
|
|
4274
4274
|
return A(e, () => n.count.label), e;
|
|
4275
4275
|
})()];
|
|
4276
4276
|
}
|
|
@@ -4284,13 +4284,13 @@ function Vo(e) {
|
|
|
4284
4284
|
},
|
|
4285
4285
|
fallback: h,
|
|
4286
4286
|
get children() {
|
|
4287
|
-
var e =
|
|
4287
|
+
var e = Ho();
|
|
4288
4288
|
return A(e, D(B, {
|
|
4289
4289
|
get when() {
|
|
4290
4290
|
return s();
|
|
4291
4291
|
},
|
|
4292
4292
|
get children() {
|
|
4293
|
-
var e =
|
|
4293
|
+
var e = Vo();
|
|
4294
4294
|
return A(e, s), e;
|
|
4295
4295
|
}
|
|
4296
4296
|
}), null), A(e, h, null), A(e, D(B, {
|
|
@@ -4298,7 +4298,7 @@ function Vo(e) {
|
|
|
4298
4298
|
return c();
|
|
4299
4299
|
},
|
|
4300
4300
|
get children() {
|
|
4301
|
-
var e =
|
|
4301
|
+
var e = Vo();
|
|
4302
4302
|
return A(e, c), e;
|
|
4303
4303
|
}
|
|
4304
4304
|
}), null), k((t) => {
|
|
@@ -4312,8 +4312,8 @@ function Vo(e) {
|
|
|
4312
4312
|
}), j(() => p.bubble)];
|
|
4313
4313
|
}
|
|
4314
4314
|
// src/TextField.tsx
|
|
4315
|
-
var
|
|
4316
|
-
function
|
|
4315
|
+
var Wo = /*#__PURE__*/ I("<input data-glim=TextField>"), Go = /*#__PURE__*/ I("<textarea data-glim=TextArea>");
|
|
4316
|
+
function Ko(e) {
|
|
4317
4317
|
let t = K({ type: "text" }, e), [n, r] = X(t, [
|
|
4318
4318
|
"label",
|
|
4319
4319
|
"mono",
|
|
@@ -4323,9 +4323,9 @@ function Wo(e) {
|
|
|
4323
4323
|
"type",
|
|
4324
4324
|
"id",
|
|
4325
4325
|
"aria-describedby"
|
|
4326
|
-
]), i = T(() => n.label), a = G(), o = () =>
|
|
4326
|
+
]), i = T(() => n.label), a = G(), o = () => Xe(n.error, n.id ?? a, n["aria-describedby"]);
|
|
4327
4327
|
return [(() => {
|
|
4328
|
-
var e =
|
|
4328
|
+
var e = Wo();
|
|
4329
4329
|
return P(e, M({ get "aria-label"() {
|
|
4330
4330
|
return i();
|
|
4331
4331
|
} }, r, {
|
|
@@ -4342,7 +4342,7 @@ function Wo(e) {
|
|
|
4342
4342
|
return n.type;
|
|
4343
4343
|
},
|
|
4344
4344
|
get class() {
|
|
4345
|
-
return `${
|
|
4345
|
+
return `${yn({
|
|
4346
4346
|
width: n.width,
|
|
4347
4347
|
mono: n.mono
|
|
4348
4348
|
})} ${n.class ?? ""}`.trim();
|
|
@@ -4352,7 +4352,7 @@ function Wo(e) {
|
|
|
4352
4352
|
get when() {
|
|
4353
4353
|
return o().errorId;
|
|
4354
4354
|
},
|
|
4355
|
-
children: (e) => D(
|
|
4355
|
+
children: (e) => D(si, {
|
|
4356
4356
|
get id() {
|
|
4357
4357
|
return e();
|
|
4358
4358
|
},
|
|
@@ -4362,7 +4362,7 @@ function Wo(e) {
|
|
|
4362
4362
|
})
|
|
4363
4363
|
})];
|
|
4364
4364
|
}
|
|
4365
|
-
function
|
|
4365
|
+
function qo(e) {
|
|
4366
4366
|
let [t, n] = X(e, [
|
|
4367
4367
|
"label",
|
|
4368
4368
|
"mono",
|
|
@@ -4371,9 +4371,9 @@ function Go(e) {
|
|
|
4371
4371
|
"class",
|
|
4372
4372
|
"id",
|
|
4373
4373
|
"aria-describedby"
|
|
4374
|
-
]), r = T(() => t.label), i = G(), a = () =>
|
|
4374
|
+
]), r = T(() => t.label), i = G(), a = () => Xe(t.error, t.id ?? i, t["aria-describedby"]);
|
|
4375
4375
|
return [(() => {
|
|
4376
|
-
var e =
|
|
4376
|
+
var e = Go();
|
|
4377
4377
|
return P(e, M({ get "aria-label"() {
|
|
4378
4378
|
return r();
|
|
4379
4379
|
} }, n, {
|
|
@@ -4387,7 +4387,7 @@ function Go(e) {
|
|
|
4387
4387
|
return a().describedBy;
|
|
4388
4388
|
},
|
|
4389
4389
|
get class() {
|
|
4390
|
-
return `${
|
|
4390
|
+
return `${yn({
|
|
4391
4391
|
width: t.width,
|
|
4392
4392
|
mono: t.mono,
|
|
4393
4393
|
area: !0
|
|
@@ -4398,7 +4398,7 @@ function Go(e) {
|
|
|
4398
4398
|
get when() {
|
|
4399
4399
|
return a().errorId;
|
|
4400
4400
|
},
|
|
4401
|
-
children: (e) => D(
|
|
4401
|
+
children: (e) => D(si, {
|
|
4402
4402
|
get id() {
|
|
4403
4403
|
return e();
|
|
4404
4404
|
},
|
|
@@ -4409,19 +4409,19 @@ function Go(e) {
|
|
|
4409
4409
|
})];
|
|
4410
4410
|
}
|
|
4411
4411
|
// src/SignInCard.tsx
|
|
4412
|
-
var
|
|
4412
|
+
var Jo = /*#__PURE__*/ I("<div data-glim=SignInField class=glim-signin-field><label>"), Yo = /*#__PURE__*/ I("<p class=glim-signin-error role=alert>"), Xo = /*#__PURE__*/ I("<span class=glim-signin-logo aria-hidden=true>"), Zo = /*#__PURE__*/ I("<div data-glim=SignInCard><div class=\"glim-card glim-signin-card\"><div class=glim-signin-head><h1 class=glim-signin-name>"), Qo = /*#__PURE__*/ I("<img alt draggable=false>"), $o = /*#__PURE__*/ I("<form class=glim-signin-form novalidate>"), es = /*#__PURE__*/ I("<p class=glim-signin-note role=status>"), ts = /*#__PURE__*/ I("<div class=glim-signin-field><label class=glim-signin-label></label><p class=glim-signin-hint>"), ns = {
|
|
4413
4413
|
signIn: "signIn",
|
|
4414
4414
|
passkey: "signInWithPasskey",
|
|
4415
4415
|
forgot: "forgotPassword",
|
|
4416
4416
|
back: "back",
|
|
4417
4417
|
setPassword: "setPassword"
|
|
4418
4418
|
};
|
|
4419
|
-
function
|
|
4419
|
+
function rs(e) {
|
|
4420
4420
|
let [t, n] = W(!1), r;
|
|
4421
4421
|
return H(() => {
|
|
4422
|
-
n(
|
|
4422
|
+
n(dt(document.getElementById(e.htmlFor), e.label, e.hint, r)), r = e.label;
|
|
4423
4423
|
}), (() => {
|
|
4424
|
-
var n =
|
|
4424
|
+
var n = Jo(), r = n.firstChild;
|
|
4425
4425
|
return A(r, () => e.label, null), A(r, D(B, {
|
|
4426
4426
|
get when() {
|
|
4427
4427
|
return e.hint;
|
|
@@ -4439,28 +4439,28 @@ function ts(e) {
|
|
|
4439
4439
|
}), n;
|
|
4440
4440
|
})();
|
|
4441
4441
|
}
|
|
4442
|
-
function
|
|
4442
|
+
function is(e) {
|
|
4443
4443
|
let t = K({
|
|
4444
4444
|
passkey: !1,
|
|
4445
4445
|
reset: !1,
|
|
4446
4446
|
minPassword: 12,
|
|
4447
4447
|
autoFocus: !0
|
|
4448
|
-
}, e), n =
|
|
4448
|
+
}, e), n = qe(() => t), [r, i] = W(n.state());
|
|
4449
4449
|
J(n.subscribe(() => i(n.state())));
|
|
4450
4450
|
let a = G(), o = (e) => `${t.idPrefix ?? a}-${e}`, s = () => ({
|
|
4451
|
-
...
|
|
4451
|
+
...ns,
|
|
4452
4452
|
...t.labelKeys
|
|
4453
4453
|
}), l = () => ({
|
|
4454
4454
|
show: t.text.show,
|
|
4455
4455
|
hide: t.text.hide
|
|
4456
|
-
}), u, d = V(() => t.step), f = U(() => d() ? "step" :
|
|
4456
|
+
}), u, d = V(() => t.step), f = U(() => d() ? "step" : ln(r())), p = !1;
|
|
4457
4457
|
H(q(f, () => {
|
|
4458
|
-
(p || t.autoFocus) &&
|
|
4458
|
+
(p || t.autoFocus) && et(u), p = !0;
|
|
4459
4459
|
}));
|
|
4460
4460
|
let m = U(() => r().refusal?.count);
|
|
4461
4461
|
H(q(m, () => {
|
|
4462
4462
|
let e = r().refusal;
|
|
4463
|
-
e && J(
|
|
4463
|
+
e && J(on(u, e));
|
|
4464
4464
|
}));
|
|
4465
4465
|
let h = (e) => {
|
|
4466
4466
|
e.preventDefault(), n.submit();
|
|
@@ -4469,7 +4469,7 @@ function ns(e) {
|
|
|
4469
4469
|
return r().error;
|
|
4470
4470
|
},
|
|
4471
4471
|
get children() {
|
|
4472
|
-
var e =
|
|
4472
|
+
var e = Yo();
|
|
4473
4473
|
return A(e, () => r().error), e;
|
|
4474
4474
|
}
|
|
4475
4475
|
}), _ = () => D(c, {
|
|
@@ -4489,17 +4489,17 @@ function ns(e) {
|
|
|
4489
4489
|
}
|
|
4490
4490
|
});
|
|
4491
4491
|
return (() => {
|
|
4492
|
-
var e =
|
|
4492
|
+
var e = Zo(), i = e.firstChild, a = i.firstChild, f = a.firstChild, p = u;
|
|
4493
4493
|
return typeof p == "function" ? L(p, i) : u = i, A(a, D(B, {
|
|
4494
4494
|
get when() {
|
|
4495
4495
|
return t.logo;
|
|
4496
4496
|
},
|
|
4497
4497
|
get children() {
|
|
4498
|
-
var e =
|
|
4498
|
+
var e = Xo();
|
|
4499
4499
|
return A(e, (() => {
|
|
4500
4500
|
var e = j(() => typeof t.logo == "string");
|
|
4501
4501
|
return () => e() ? (() => {
|
|
4502
|
-
var e =
|
|
4502
|
+
var e = Qo();
|
|
4503
4503
|
return k(() => N(e, "src", t.logo)), e;
|
|
4504
4504
|
})() : t.logo;
|
|
4505
4505
|
})()), e;
|
|
@@ -4515,13 +4515,13 @@ function ns(e) {
|
|
|
4515
4515
|
},
|
|
4516
4516
|
get fallback() {
|
|
4517
4517
|
return (() => {
|
|
4518
|
-
var e =
|
|
4518
|
+
var e = $o();
|
|
4519
4519
|
return e.addEventListener("submit", h), A(e, D(B, {
|
|
4520
4520
|
get when() {
|
|
4521
4521
|
return t.note;
|
|
4522
4522
|
},
|
|
4523
4523
|
get children() {
|
|
4524
|
-
var e =
|
|
4524
|
+
var e = es();
|
|
4525
4525
|
return A(e, () => t.note), e;
|
|
4526
4526
|
}
|
|
4527
4527
|
}), null), A(e, D(B, {
|
|
@@ -4531,7 +4531,7 @@ function ns(e) {
|
|
|
4531
4531
|
get children() {
|
|
4532
4532
|
return t.fields;
|
|
4533
4533
|
}
|
|
4534
|
-
}), null), A(e, D(
|
|
4534
|
+
}), null), A(e, D(rs, {
|
|
4535
4535
|
get label() {
|
|
4536
4536
|
return t.text.password;
|
|
4537
4537
|
},
|
|
@@ -4542,7 +4542,7 @@ function ns(e) {
|
|
|
4542
4542
|
return r().viaPasskey;
|
|
4543
4543
|
},
|
|
4544
4544
|
get children() {
|
|
4545
|
-
return D(
|
|
4545
|
+
return D(sa, {
|
|
4546
4546
|
get id() {
|
|
4547
4547
|
return o("password");
|
|
4548
4548
|
},
|
|
@@ -4562,8 +4562,8 @@ function ns(e) {
|
|
|
4562
4562
|
return r().needCode;
|
|
4563
4563
|
},
|
|
4564
4564
|
get children() {
|
|
4565
|
-
var e =
|
|
4566
|
-
return A(i, () => t.text.code), A(e, D(
|
|
4565
|
+
var e = ts(), i = e.firstChild, a = i.nextSibling;
|
|
4566
|
+
return A(i, () => t.text.code), A(e, D(Ko, {
|
|
4567
4567
|
get id() {
|
|
4568
4568
|
return o("code");
|
|
4569
4569
|
},
|
|
@@ -4590,7 +4590,7 @@ function ns(e) {
|
|
|
4590
4590
|
type: "submit",
|
|
4591
4591
|
"data-signin": "submit",
|
|
4592
4592
|
get disabled() {
|
|
4593
|
-
return
|
|
4593
|
+
return cn(r());
|
|
4594
4594
|
},
|
|
4595
4595
|
get busy() {
|
|
4596
4596
|
return r().busy === "signIn";
|
|
@@ -4664,8 +4664,8 @@ function ns(e) {
|
|
|
4664
4664
|
})();
|
|
4665
4665
|
},
|
|
4666
4666
|
get children() {
|
|
4667
|
-
var e =
|
|
4668
|
-
return e.addEventListener("submit", h), A(e, D(
|
|
4667
|
+
var e = $o();
|
|
4668
|
+
return e.addEventListener("submit", h), A(e, D(rs, {
|
|
4669
4669
|
get label() {
|
|
4670
4670
|
return t.text.resetCode;
|
|
4671
4671
|
},
|
|
@@ -4676,7 +4676,7 @@ function ns(e) {
|
|
|
4676
4676
|
return t.text.resetCodeTip;
|
|
4677
4677
|
},
|
|
4678
4678
|
get children() {
|
|
4679
|
-
return D(
|
|
4679
|
+
return D(Ko, {
|
|
4680
4680
|
get id() {
|
|
4681
4681
|
return o("reset-code");
|
|
4682
4682
|
},
|
|
@@ -4692,7 +4692,7 @@ function ns(e) {
|
|
|
4692
4692
|
placeholder: "XXXX-XXXX-XXXX"
|
|
4693
4693
|
});
|
|
4694
4694
|
}
|
|
4695
|
-
}), null), A(e, D(
|
|
4695
|
+
}), null), A(e, D(rs, {
|
|
4696
4696
|
get label() {
|
|
4697
4697
|
return t.text.newPassword;
|
|
4698
4698
|
},
|
|
@@ -4700,7 +4700,7 @@ function ns(e) {
|
|
|
4700
4700
|
return o("new");
|
|
4701
4701
|
},
|
|
4702
4702
|
get children() {
|
|
4703
|
-
return D(
|
|
4703
|
+
return D(sa, {
|
|
4704
4704
|
get id() {
|
|
4705
4705
|
return o("new");
|
|
4706
4706
|
},
|
|
@@ -4715,7 +4715,7 @@ function ns(e) {
|
|
|
4715
4715
|
}
|
|
4716
4716
|
});
|
|
4717
4717
|
}
|
|
4718
|
-
}), null), A(e, D(
|
|
4718
|
+
}), null), A(e, D(rs, {
|
|
4719
4719
|
get label() {
|
|
4720
4720
|
return t.text.confirmPassword;
|
|
4721
4721
|
},
|
|
@@ -4723,7 +4723,7 @@ function ns(e) {
|
|
|
4723
4723
|
return o("confirm");
|
|
4724
4724
|
},
|
|
4725
4725
|
get children() {
|
|
4726
|
-
return D(
|
|
4726
|
+
return D(sa, {
|
|
4727
4727
|
get id() {
|
|
4728
4728
|
return o("confirm");
|
|
4729
4729
|
},
|
|
@@ -4749,7 +4749,7 @@ function ns(e) {
|
|
|
4749
4749
|
type: "submit",
|
|
4750
4750
|
"data-signin": "set-password",
|
|
4751
4751
|
get disabled() {
|
|
4752
|
-
return
|
|
4752
|
+
return Kt(r());
|
|
4753
4753
|
},
|
|
4754
4754
|
get busy() {
|
|
4755
4755
|
return r().busy === "setPassword";
|
|
@@ -4768,31 +4768,31 @@ function ns(e) {
|
|
|
4768
4768
|
})();
|
|
4769
4769
|
}
|
|
4770
4770
|
// src/SkeletonRow.tsx
|
|
4771
|
-
var
|
|
4772
|
-
function
|
|
4771
|
+
var as = /*#__PURE__*/ I("<span class=\"glim-skeleton-block glim-skeleton-tile\">"), os = /*#__PURE__*/ I("<span class=\"glim-skeleton-block glim-skeleton-badge\">"), ss = /*#__PURE__*/ I("<div data-glim=SkeletonRow aria-hidden=true><span class=\"glim-skeleton-block glim-skeleton-name\">");
|
|
4772
|
+
function cs(e) {
|
|
4773
4773
|
let t = K({
|
|
4774
4774
|
tile: !0,
|
|
4775
4775
|
badge: !0
|
|
4776
|
-
}, e), n = () =>
|
|
4776
|
+
}, e), n = () => un({
|
|
4777
4777
|
delay: t.delay,
|
|
4778
4778
|
tile: t.tile,
|
|
4779
4779
|
badge: t.badge
|
|
4780
4780
|
});
|
|
4781
4781
|
return (() => {
|
|
4782
|
-
var e =
|
|
4782
|
+
var e = ss(), r = e.firstChild;
|
|
4783
4783
|
return A(e, D(B, {
|
|
4784
4784
|
get when() {
|
|
4785
4785
|
return n().tile;
|
|
4786
4786
|
},
|
|
4787
4787
|
get children() {
|
|
4788
|
-
return
|
|
4788
|
+
return as();
|
|
4789
4789
|
}
|
|
4790
4790
|
}), r), A(e, D(B, {
|
|
4791
4791
|
get when() {
|
|
4792
4792
|
return n().badge;
|
|
4793
4793
|
},
|
|
4794
4794
|
get children() {
|
|
4795
|
-
return
|
|
4795
|
+
return os();
|
|
4796
4796
|
}
|
|
4797
4797
|
}), null), k((r) => {
|
|
4798
4798
|
var i = t.class ? `${n().className} ${t.class}` : n().className, a = d(n().style);
|
|
@@ -4804,24 +4804,24 @@ function os(e) {
|
|
|
4804
4804
|
})();
|
|
4805
4805
|
}
|
|
4806
4806
|
// src/SubCard.tsx
|
|
4807
|
-
var
|
|
4808
|
-
function
|
|
4807
|
+
var ls = /*#__PURE__*/ I("<span>"), us = /*#__PURE__*/ I("<h3 class=glim-panel-heading>"), ds = /*#__PURE__*/ I("<div class=glim-subcard-end>"), fs = /*#__PURE__*/ I("<section data-glim=SubCard>");
|
|
4808
|
+
function ps(e) {
|
|
4809
4809
|
let t = G(), n = V(() => e.end);
|
|
4810
4810
|
return (() => {
|
|
4811
|
-
var r =
|
|
4811
|
+
var r = fs();
|
|
4812
4812
|
return A(r, D(B, {
|
|
4813
4813
|
get when() {
|
|
4814
4814
|
return e.title;
|
|
4815
4815
|
},
|
|
4816
4816
|
get children() {
|
|
4817
|
-
var n =
|
|
4817
|
+
var n = us();
|
|
4818
4818
|
return A(n, D(l, {
|
|
4819
4819
|
tone: "heading",
|
|
4820
4820
|
size: "heading",
|
|
4821
4821
|
wrap: !0,
|
|
4822
4822
|
get children() {
|
|
4823
4823
|
return [(() => {
|
|
4824
|
-
var n =
|
|
4824
|
+
var n = ls();
|
|
4825
4825
|
return N(n, "id", t), A(n, () => e.title), n;
|
|
4826
4826
|
})(), D(B, {
|
|
4827
4827
|
get when() {
|
|
@@ -4842,7 +4842,7 @@ function ds(e) {
|
|
|
4842
4842
|
return n();
|
|
4843
4843
|
},
|
|
4844
4844
|
get children() {
|
|
4845
|
-
var e =
|
|
4845
|
+
var e = ds();
|
|
4846
4846
|
return A(e, n), e;
|
|
4847
4847
|
}
|
|
4848
4848
|
}), null), A(r, () => e.children, null), k((n) => {
|
|
@@ -4856,23 +4856,23 @@ function ds(e) {
|
|
|
4856
4856
|
})();
|
|
4857
4857
|
}
|
|
4858
4858
|
// src/Table.tsx
|
|
4859
|
-
var
|
|
4860
|
-
function
|
|
4859
|
+
var ms = /*#__PURE__*/ I("<thead><tr>"), hs = /*#__PURE__*/ I("<tr><td class=glim-table-muted>"), gs = /*#__PURE__*/ I("<table data-glim=Table class=glim-table><tbody>"), _s = /*#__PURE__*/ I("<th scope=col>"), vs = /*#__PURE__*/ I("<tr>"), ys = /*#__PURE__*/ I("<td>");
|
|
4860
|
+
function bs(e) {
|
|
4861
4861
|
let t = (e, t) => e[t.key];
|
|
4862
4862
|
return (() => {
|
|
4863
|
-
var n =
|
|
4863
|
+
var n = gs(), r = n.firstChild;
|
|
4864
4864
|
return A(n, D(B, {
|
|
4865
4865
|
get when() {
|
|
4866
4866
|
return e.columns.some((e) => e.label);
|
|
4867
4867
|
},
|
|
4868
4868
|
get children() {
|
|
4869
|
-
var t =
|
|
4869
|
+
var t = ms(), n = t.firstChild;
|
|
4870
4870
|
return A(n, D(R, {
|
|
4871
4871
|
get each() {
|
|
4872
4872
|
return e.columns;
|
|
4873
4873
|
},
|
|
4874
4874
|
children: (e) => (() => {
|
|
4875
|
-
var t =
|
|
4875
|
+
var t = _s();
|
|
4876
4876
|
return A(t, () => e.label), k(() => E(t, e.end ? "glim-table-end" : void 0)), t;
|
|
4877
4877
|
})()
|
|
4878
4878
|
})), t;
|
|
@@ -4882,14 +4882,14 @@ function vs(e) {
|
|
|
4882
4882
|
return e.rows;
|
|
4883
4883
|
},
|
|
4884
4884
|
children: (n) => (() => {
|
|
4885
|
-
var r =
|
|
4885
|
+
var r = vs();
|
|
4886
4886
|
return A(r, D(R, {
|
|
4887
4887
|
get each() {
|
|
4888
4888
|
return e.columns;
|
|
4889
4889
|
},
|
|
4890
4890
|
children: (r) => (() => {
|
|
4891
|
-
var i =
|
|
4892
|
-
return A(i, () => e.cell?.(n, r) ?? t(n, r)), k(() => E(i,
|
|
4891
|
+
var i = ys();
|
|
4892
|
+
return A(i, () => e.cell?.(n, r) ?? t(n, r)), k(() => E(i, vn(r) || void 0)), i;
|
|
4893
4893
|
})()
|
|
4894
4894
|
})), r;
|
|
4895
4895
|
})()
|
|
@@ -4898,31 +4898,31 @@ function vs(e) {
|
|
|
4898
4898
|
return e.more;
|
|
4899
4899
|
},
|
|
4900
4900
|
get children() {
|
|
4901
|
-
var t =
|
|
4901
|
+
var t = hs(), n = t.firstChild;
|
|
4902
4902
|
return A(n, () => e.more), k(() => N(n, "colspan", e.columns.length)), t;
|
|
4903
4903
|
}
|
|
4904
4904
|
}), null), k(() => N(n, "aria-label", e.label)), n;
|
|
4905
4905
|
})();
|
|
4906
4906
|
}
|
|
4907
4907
|
// src/Toast.tsx
|
|
4908
|
-
var
|
|
4909
|
-
function
|
|
4908
|
+
var xs = /*#__PURE__*/ I("<div data-glim=ToastCard class=\"glim-toast glim-toast-card\"><div class=glim-toast-body><p class=glim-toast-message></p></div><button type=button class=\"glim-btn-bare glim-toast-dismiss\">"), Ss = /*#__PURE__*/ I("<wbr>"), Cs = /*#__PURE__*/ I("<div class=glim-sr-only>"), ws = /*#__PURE__*/ I("<div data-glim=ToastViewport class=glim-toast-stack>");
|
|
4909
|
+
function Ts(e) {
|
|
4910
4910
|
return (() => {
|
|
4911
|
-
var t =
|
|
4911
|
+
var t = xs(), n = t.firstChild, r = n.firstChild, i = n.nextSibling;
|
|
4912
4912
|
return t.$$keydown = (t) => {
|
|
4913
4913
|
t.key === "Escape" && (t.stopPropagation(), e.onDismiss(e.id));
|
|
4914
4914
|
}, t.$$focusout = () => e.onBlur(e.id), t.$$focusin = () => e.onFocus(e.id), t.addEventListener("mouseleave", () => e.onMouseLeave(e.id)), t.addEventListener("mouseenter", () => e.onMouseEnter(e.id)), A(t, D(C, {
|
|
4915
4915
|
get mark() {
|
|
4916
|
-
return
|
|
4916
|
+
return Me[e.severity];
|
|
4917
4917
|
},
|
|
4918
4918
|
get class() {
|
|
4919
4919
|
return `glim-toast-glyph glim-toast-glyph--${e.severity}`;
|
|
4920
4920
|
}
|
|
4921
4921
|
}), n), A(r, D(be, {
|
|
4922
4922
|
get each() {
|
|
4923
|
-
return
|
|
4923
|
+
return dn(e.message);
|
|
4924
4924
|
},
|
|
4925
|
-
children: (e, t) => [t > 0 &&
|
|
4925
|
+
children: (e, t) => [t > 0 && Ss(), j(e)]
|
|
4926
4926
|
})), A(n, D(B, {
|
|
4927
4927
|
get when() {
|
|
4928
4928
|
return e.action;
|
|
@@ -4939,34 +4939,34 @@ function Cs(e) {
|
|
|
4939
4939
|
}
|
|
4940
4940
|
})
|
|
4941
4941
|
}), null), i.$$click = () => e.onDismiss(e.id), A(i, D(C, { get mark() {
|
|
4942
|
-
return
|
|
4942
|
+
return Ae.dismiss;
|
|
4943
4943
|
} })), k(() => N(i, "aria-label", e.dismissLabel)), t;
|
|
4944
4944
|
})();
|
|
4945
4945
|
}
|
|
4946
|
-
function
|
|
4946
|
+
function Es(e) {
|
|
4947
4947
|
let t = /* @__PURE__ */ new Set();
|
|
4948
4948
|
H(() => {
|
|
4949
4949
|
let n = new Set(e.toasts.map((e) => e.id));
|
|
4950
4950
|
for (let e of t) n.has(e) || t.delete(e);
|
|
4951
|
-
for (let n of e.toasts) t.has(n.id) || (t.add(n.id),
|
|
4951
|
+
for (let n of e.toasts) t.has(n.id) || (t.add(n.id), Fe(n.message, xn(n.severity)));
|
|
4952
4952
|
});
|
|
4953
4953
|
let n = U(() => e.toasts.map((e) => e.id)), r = (t) => e.toasts.find((e) => e.id === t);
|
|
4954
4954
|
return [
|
|
4955
4955
|
(() => {
|
|
4956
|
-
var e =
|
|
4957
|
-
return P(e, M(() =>
|
|
4956
|
+
var e = Cs();
|
|
4957
|
+
return P(e, M(() => ht("polite")), !1, !1), e;
|
|
4958
4958
|
})(),
|
|
4959
4959
|
(() => {
|
|
4960
|
-
var e =
|
|
4961
|
-
return P(e, M(() =>
|
|
4960
|
+
var e = Cs();
|
|
4961
|
+
return P(e, M(() => ht("assertive")), !1, !1), e;
|
|
4962
4962
|
})(),
|
|
4963
4963
|
(() => {
|
|
4964
|
-
var t =
|
|
4964
|
+
var t = ws();
|
|
4965
4965
|
return A(t, D(R, {
|
|
4966
4966
|
get each() {
|
|
4967
4967
|
return n();
|
|
4968
4968
|
},
|
|
4969
|
-
children: (t) => D(
|
|
4969
|
+
children: (t) => D(Ts, {
|
|
4970
4970
|
id: t,
|
|
4971
4971
|
get message() {
|
|
4972
4972
|
return r(t).message;
|
|
@@ -4997,13 +4997,13 @@ O([
|
|
|
4997
4997
|
"click"
|
|
4998
4998
|
]);
|
|
4999
4999
|
// src/Tree.tsx
|
|
5000
|
-
var
|
|
5001
|
-
function
|
|
5000
|
+
var Ds = /*#__PURE__*/ I("<div data-glim=Tree role=tree class=glim-tree>"), Os = /*#__PURE__*/ I("<span class=glim-tree-glyph aria-hidden=true>"), ks = /*#__PURE__*/ I("<div><span class=glim-tree-toggle aria-hidden=true></span><span class=glim-tree-label>");
|
|
5001
|
+
function As(e) {
|
|
5002
5002
|
let t = K({ defaultOpen: [] }, e), [n, r] = W(t.defaultOpen), i = () => t.open ?? n(), [a, o] = W(/* @__PURE__ */ new Map()), s = /* @__PURE__ */ new Set(), c;
|
|
5003
5003
|
H(() => {
|
|
5004
5004
|
for (let e of [null, ...i()]) s.has(e) || (s.add(e), Promise.resolve(t.load(e)).then((t) => o((n) => new Map(n).set(e, t)), () => s.delete(e)));
|
|
5005
5005
|
});
|
|
5006
|
-
let l = U(() =>
|
|
5006
|
+
let l = U(() => wn(a(), i())), u = () => Math.max(l().findIndex((e) => e.node.id === t.value), 0);
|
|
5007
5007
|
function d(e) {
|
|
5008
5008
|
let n = i(), a = n.includes(e) ? n.filter((t) => t !== e) : [...n, e];
|
|
5009
5009
|
r(a), t.onOpenChange?.(a);
|
|
@@ -5015,11 +5015,11 @@ function Os(e) {
|
|
|
5015
5015
|
e.preventDefault(), t.onChange(r), e.key === "Enter" && t.onActivate?.(r);
|
|
5016
5016
|
return;
|
|
5017
5017
|
}
|
|
5018
|
-
let i =
|
|
5019
|
-
i && (e.preventDefault(), "focus" in i ? (t.onChange(i.focus),
|
|
5018
|
+
let i = Tn(l(), n, e.key, getComputedStyle(c).direction === "rtl");
|
|
5019
|
+
i && (e.preventDefault(), "focus" in i ? (t.onChange(i.focus), it(c, i.focus)) : d("open" in i ? i.open : i.close));
|
|
5020
5020
|
}
|
|
5021
5021
|
return (() => {
|
|
5022
|
-
var e =
|
|
5022
|
+
var e = Ds(), n = c;
|
|
5023
5023
|
return typeof n == "function" ? L(n, e) : c = e, A(e, D(R, {
|
|
5024
5024
|
get each() {
|
|
5025
5025
|
return l().map((e) => e.node);
|
|
@@ -5027,7 +5027,7 @@ function Os(e) {
|
|
|
5027
5027
|
children: (e, n) => {
|
|
5028
5028
|
let r = () => l()[n()];
|
|
5029
5029
|
return (() => {
|
|
5030
|
-
var i =
|
|
5030
|
+
var i = ks(), a = i.firstChild, o = a.nextSibling;
|
|
5031
5031
|
return P(i, M(() => e.attrs, {
|
|
5032
5032
|
role: "treeitem",
|
|
5033
5033
|
get "aria-level"() {
|
|
@@ -5072,7 +5072,7 @@ function Os(e) {
|
|
|
5072
5072
|
return e.glyph;
|
|
5073
5073
|
},
|
|
5074
5074
|
get children() {
|
|
5075
|
-
var t =
|
|
5075
|
+
var t = Os();
|
|
5076
5076
|
return A(t, (() => {
|
|
5077
5077
|
var t = j(() => !!r().open);
|
|
5078
5078
|
return () => t() && e.openGlyph || e.glyph;
|
|
@@ -5086,40 +5086,40 @@ function Os(e) {
|
|
|
5086
5086
|
}
|
|
5087
5087
|
O(["click", "dblclick"]);
|
|
5088
5088
|
// src/UnavailableNotice.tsx
|
|
5089
|
-
var
|
|
5090
|
-
function
|
|
5089
|
+
var js = /*#__PURE__*/ I("<div class=glim-notice-action>"), Ms = /*#__PURE__*/ I("<div data-glim=UnavailableNotice class=glim-notice><p class=glim-notice-title></p><p class=glim-notice-reason>");
|
|
5090
|
+
function Ns(e) {
|
|
5091
5091
|
let t = V(() => e.action);
|
|
5092
5092
|
return (() => {
|
|
5093
|
-
var n =
|
|
5093
|
+
var n = Ms(), r = n.firstChild, i = r.nextSibling;
|
|
5094
5094
|
return A(r, () => e.title), A(i, () => e.reason), A(n, D(B, {
|
|
5095
5095
|
get when() {
|
|
5096
5096
|
return t();
|
|
5097
5097
|
},
|
|
5098
5098
|
get children() {
|
|
5099
|
-
var e =
|
|
5099
|
+
var e = js();
|
|
5100
5100
|
return A(e, t), e;
|
|
5101
5101
|
}
|
|
5102
5102
|
}), null), k(() => N(n, "data-glim-title", e.title)), n;
|
|
5103
5103
|
})();
|
|
5104
5104
|
}
|
|
5105
5105
|
// src/useConfirm.tsx
|
|
5106
|
-
function
|
|
5107
|
-
let [t, n] = W(null), r = null, i, a = null, o = (e, t) => (a =
|
|
5106
|
+
function Ps(e) {
|
|
5107
|
+
let [t, n] = W(null), r = null, i, a = null, o = (e, t) => (a = at(), new Promise((i) => {
|
|
5108
5108
|
r = i, n({
|
|
5109
5109
|
message: e,
|
|
5110
5110
|
...t
|
|
5111
5111
|
});
|
|
5112
5112
|
})), s = (e) => {
|
|
5113
|
-
r?.(e), r = null, n(null),
|
|
5113
|
+
r?.(e), r = null, n(null), qt(a), a = null;
|
|
5114
5114
|
}, c = () => s(!1);
|
|
5115
|
-
return
|
|
5115
|
+
return Fs(() => t() !== null, () => i ?? null, c), {
|
|
5116
5116
|
confirm: o,
|
|
5117
5117
|
confirmDialog: D(B, {
|
|
5118
5118
|
get when() {
|
|
5119
5119
|
return t();
|
|
5120
5120
|
},
|
|
5121
5121
|
children: (t) => D(w, { get children() {
|
|
5122
|
-
return D(
|
|
5122
|
+
return D(Cr, {
|
|
5123
5123
|
ref(e) {
|
|
5124
5124
|
var t = i;
|
|
5125
5125
|
typeof t == "function" ? t(e) : i = e;
|
|
@@ -5153,13 +5153,13 @@ function Ms(e) {
|
|
|
5153
5153
|
dismiss: c
|
|
5154
5154
|
};
|
|
5155
5155
|
}
|
|
5156
|
-
function
|
|
5156
|
+
function Fs(e, t, n) {
|
|
5157
5157
|
H(() => {
|
|
5158
|
-
e() && J(
|
|
5158
|
+
e() && J(Cn(t, n));
|
|
5159
5159
|
});
|
|
5160
5160
|
}
|
|
5161
5161
|
// src/useDragArmed.ts
|
|
5162
|
-
function
|
|
5162
|
+
function Is(e, t) {
|
|
5163
5163
|
H(() => {
|
|
5164
5164
|
let n = e();
|
|
5165
5165
|
if (!n) return;
|
|
@@ -5175,7 +5175,7 @@ function Ps(e, t) {
|
|
|
5175
5175
|
});
|
|
5176
5176
|
}
|
|
5177
5177
|
// src/usePaypalButtons.ts
|
|
5178
|
-
function
|
|
5178
|
+
function Ls(e) {
|
|
5179
5179
|
let [t, n] = W(), r = U(() => e().config), i = U(() => e().frequency), a = U(() => e().description);
|
|
5180
5180
|
return H(q([
|
|
5181
5181
|
t,
|
|
@@ -5185,7 +5185,7 @@ function Fs(e) {
|
|
|
5185
5185
|
], ([t, n, r, i]) => {
|
|
5186
5186
|
if (!t) return;
|
|
5187
5187
|
let a = null, o = !1;
|
|
5188
|
-
|
|
5188
|
+
gt(n, r !== "once").then((s) => {
|
|
5189
5189
|
if (o) return;
|
|
5190
5190
|
let c = s.Buttons({
|
|
5191
5191
|
style: {
|
|
@@ -5197,7 +5197,7 @@ function Fs(e) {
|
|
|
5197
5197
|
height: 40
|
|
5198
5198
|
},
|
|
5199
5199
|
onClick: (t, n) => e().amount ? n.resolve() : n.reject(),
|
|
5200
|
-
...
|
|
5200
|
+
...Je(n, r, () => e().amount ?? "0", i, () => e().onDone()),
|
|
5201
5201
|
onError: () => e().onError()
|
|
5202
5202
|
});
|
|
5203
5203
|
a = c, t.replaceChildren(), c.render(t).catch(() => e().onError());
|
|
@@ -5209,18 +5209,18 @@ function Fs(e) {
|
|
|
5209
5209
|
})), (e) => void n(e);
|
|
5210
5210
|
}
|
|
5211
5211
|
// src/WindowBar.tsx
|
|
5212
|
-
var
|
|
5213
|
-
function
|
|
5212
|
+
var Rs = /*#__PURE__*/ I("<header data-glim=WindowBar class=glim-window-bar>"), zs = /*#__PURE__*/ I("<span class=glim-window-square>"), Bs = (e) => e.target.closest("button") !== null;
|
|
5213
|
+
function Vs(e) {
|
|
5214
5214
|
let t = !1, n = (e) => {
|
|
5215
|
-
t = e.button === 0 && !e.defaultPrevented && !
|
|
5215
|
+
t = e.button === 0 && !e.defaultPrevented && !Bs(e);
|
|
5216
5216
|
}, r = (n) => {
|
|
5217
5217
|
t && (t = !1, n.buttons === 1 && e.onDragStart());
|
|
5218
5218
|
}, i = (t) => {
|
|
5219
|
-
|
|
5219
|
+
Bs(t) || e.onToggleMaximise();
|
|
5220
5220
|
};
|
|
5221
5221
|
return (() => {
|
|
5222
|
-
var a =
|
|
5223
|
-
return a.$$dblclick = i, a.$$mouseup = () => t = !1, a.$$mousemove = r, a.$$mousedown = n, A(a, D(
|
|
5222
|
+
var a = Rs();
|
|
5223
|
+
return a.$$dblclick = i, a.$$mouseup = () => t = !1, a.$$mousemove = r, a.$$mousedown = n, A(a, D(Hs, {
|
|
5224
5224
|
get label() {
|
|
5225
5225
|
return e.text.minimise;
|
|
5226
5226
|
},
|
|
@@ -5228,7 +5228,7 @@ function zs(e) {
|
|
|
5228
5228
|
get children() {
|
|
5229
5229
|
return D(ue, {});
|
|
5230
5230
|
}
|
|
5231
|
-
}), null), A(a, D(
|
|
5231
|
+
}), null), A(a, D(Hs, {
|
|
5232
5232
|
get label() {
|
|
5233
5233
|
return j(() => !!e.maximised)() ? e.text.restore : e.text.maximise;
|
|
5234
5234
|
},
|
|
@@ -5246,7 +5246,7 @@ function zs(e) {
|
|
|
5246
5246
|
}
|
|
5247
5247
|
});
|
|
5248
5248
|
}
|
|
5249
|
-
}), null), A(a, D(
|
|
5249
|
+
}), null), A(a, D(Hs, {
|
|
5250
5250
|
get label() {
|
|
5251
5251
|
return e.text.close;
|
|
5252
5252
|
},
|
|
@@ -5257,7 +5257,7 @@ function zs(e) {
|
|
|
5257
5257
|
}), null), k(() => N(a, "aria-label", e.appName)), a;
|
|
5258
5258
|
})();
|
|
5259
5259
|
}
|
|
5260
|
-
function
|
|
5260
|
+
function Hs(e) {
|
|
5261
5261
|
return D(he, {
|
|
5262
5262
|
get tip() {
|
|
5263
5263
|
return e.label;
|
|
@@ -5265,7 +5265,7 @@ function Bs(e) {
|
|
|
5265
5265
|
onClick: () => e.onPress(),
|
|
5266
5266
|
class: "glim-window-button",
|
|
5267
5267
|
get children() {
|
|
5268
|
-
var t =
|
|
5268
|
+
var t = zs();
|
|
5269
5269
|
return A(t, () => e.children), t;
|
|
5270
5270
|
}
|
|
5271
5271
|
});
|
|
@@ -5276,4 +5276,4 @@ O([
|
|
|
5276
5276
|
"mouseup",
|
|
5277
5277
|
"dblclick"
|
|
5278
5278
|
]);
|
|
5279
|
-
export {
|
|
5279
|
+
export { fr as AboutCard, l as Badge, Jn as BrandMark, i as BusyRing, c as Button, In as Card, hr as Checkbox, _r as CoffeeDialog, br as ColorPicker, Cr as ConfirmDialog, Wr as ContextMenu, Kr as CopyField, Zr as CryptoDonateDialog, ei as DropdownListbox, ai as EmptyState, si as FieldError, fi as FieldRow, mi as FieldRowGroup, Aa as Fortress, zi as FortressAppCard, Ri as FortressDoubtWindow, Na as FortressPairing, aa as FortressPermissions, Xa as FortressStatusWindow, De as GLIMSTONE_RELEASE_URL, Oe as GLIMSTONE_REPO, ke as GLIMSTONE_VERSION, Qa as GlyphField, eo as GlyphTile, se as IconBack, ge as IconButton, ne as IconCalendar, ae as IconCancel, S as IconCheck, h as IconClose, re as IconCopy, oe as IconExpand, _ as IconEye, ee as IconEyeOff, ce as IconFolderOpen, v as IconForward, y as IconPause, ie as IconPencil, te as IconPlay, x as IconResetArrow, b as IconStar, he as IconTipButton, m as IconUpload, le as IconWindowMaximise, ue as IconWindowMinimise, g as IconWindowRestore, or as InfoAboutCard, Q as InfoBubble, ur as InfoHelpCard, dr as InfoTile, sr as InfoVersionCard, Ti as InstanceCard, Tr as Kbd, so as ListRow, yo as ListTable, C as MarkSvg, So as MenuBar, wo as Meter, Eo as NumberField, sa as PasswordField, Oo as PathField, No as PaypalDialog, li as Pill, lo as Popover, Ii as PresenceBadges, Fa as ProgressBar, $ as ReadmeButton, Fo as RowMark, Ji as Selector, Lo as Sheet, Uo as SidebarRow, is as SignInCard, rs as SignInField, cs as SkeletonRow, ps as SubCard, bs as Table, qo as TextArea, Ko as TextField, Ts as ToastCard, Es as ToastViewport, $i as Toggle, As as Tree, Ns as UnavailableNotice, Ai as Window, Vs as WindowBar, Li as deviceGlyph, p as glyphFor, tn as selectorTabId, f as setGlyphResolver, o as useAccent, Ps as useConfirm, n as useDensity, Fs as useDialogKeys, Is as useDragArmed, T as useFieldName, e as useHue, a as useLabelMode, s as useMotion, Ls as usePaypalButtons, pe as usePortalHue, t as useRainbow, r as useShape, u as useTipBubble };
|