@glimstone/vue 4.5.0 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AboutCard.vue.d.ts +3 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +647 -627
- package/dist/info.d.ts +6 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -8,9 +8,9 @@ import { t as ve } from "./selectParts-0e1ib8BL.js";
|
|
|
8
8
|
import { t as ye } from "./Select-CBScnONy.js";
|
|
9
9
|
import { t as be } from "./IconButton-D5YOChZI.js";
|
|
10
10
|
import { Fragment as S, Teleport as xe, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createSlots as O, createTextVNode as k, createVNode as A, defineComponent as j, h as Se, inject as Ce, mergeModels as M, mergeProps as N, nextTick as we, normalizeClass as P, normalizeStyle as F, onBeforeUnmount as I, onMounted as L, onScopeDispose as Te, onUnmounted as Ee, onUpdated as De, openBlock as R, provide as Oe, ref as z, renderList as B, renderSlot as V, resolveDynamicComponent as H, shallowReactive as ke, shallowRef as U, toDisplayString as W, toRef as Ae, unref as G, useAttrs as je, useId as K, useModel as q, useSlots as Me, vModelDynamic as Ne, vModelText as Pe, vShow as Fe, watch as J, watchEffect as Ie, withCtx as Y, withDirectives as Le, withKeys as Re, withModifiers as X } from "vue";
|
|
11
|
-
import { COLOR_NAMES_DE as ze, COLOR_PICKER_TEXT as Be, COPIED_MS as Ve,
|
|
11
|
+
import { COLOR_NAMES_DE as ze, COLOR_PICKER_TEXT as Be, COPIED_MS as Ve, GLIMSTONE_RELEASE_URL as He, GLIMSTONE_REPO as Ue, GLIMSTONE_VERSION as We, MARKS as Ge, PATH_ROOM_PX as Ke, TOAST_MARKS as qe, WIDE_QUERY as Je, anchorName as Ye, announce as Xe, appCardView as Ze, ariaSort as Qe, attachNumberSteppers as $e, claimMenu as et, closeMenuOutside as tt, colorPicker as nt, columnValues as rt, computeBubblePosition as it, copyText as at, countSelector as ot, createFortressFlow as st, createSignInFlow as ct, donationHandlers as lt, doubtView as ut, fieldErrorView as dt, fieldWidthClass as ft, fill as Z, floatColorPicker as pt, focusByLetter as mt, focusFirstField as ht, focusFirstMenuRow as gt, focusMenuRow as _t, focusMenuRowByLetter as vt, focusTreeRow as yt, focusedAsker as bt, hueVars as xt, isMenuHead as St, isTypeahead as Ct, joinRefusalText as wt, keepReadmeFit as Tt, labelInside as Et, listKey as Dt, listOf as Ot, listView as kt, liveRegionAttrs as At, loadPaypal as jt, mailHref as Mt, mediaMatches as Nt, memberName as Pt, menuIsOpen as Ft, menuMove as It, menuRowView as Lt, meterView as Rt, nearestColorName as zt, nextSort as Bt, normalizeHex as Vt, offersDiscord as Ht, offersMail as Ut, openInBrowser as Wt, openInstance as Gt, openPopover as Kt, openSheet as qt, othersLine as Jt, permissionsWith as Yt, phraseReady as Xt, pillClassName as Zt, placeMenu as Qt, placeSubmenu as $t, portalTarget as en, presenceTone as tn, pressRowControl as nn, progressView as rn, qrCode as an, readmePartClass as on, readmePartLabel as sn, readmeSoon as cn, readmeUnitClass as ln, resetBlocked as un, returnFocus as dn, roveSelector as fn, rovedIndex as pn, runUpdateCheck as mn, segmentView as hn, selectByClick as gn, selectorAxis as _n, selectorFlex as vn, selectorTabId as yn, selectorTabId as bn, selectorView as xn, shake as Sn, showRefusal as Cn, sidebarRowView as wn, signInBlocked as Tn, signInStage as En, skeletonRowView as Dn, softBreaks as On, stackWindow as kn, statusView as An, storeShowOthers as jn, storedShowOthers as Mn, subscribeMedia as Nn, syncNumberSteppers as Pn, tableCellClass as Fn, textFieldClass as In, tidyMenu as Ln, toastPoliteness as Rn, toggleSelection as zn, trapDialogKeys as Bn, treeRows as Vn, treeStep as Hn, updateFace as Un, updateStage as Wn, versionLink as Gn, warnDeprecated as Kn, watchSelectorFit as qn, windowFocusTarget as Jn, windowFoot as Yn } from "@glimstone/core";
|
|
12
12
|
// src/InfoBubble.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var
|
|
13
|
+
var Xn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
14
14
|
__name: "InfoBubble",
|
|
15
15
|
props: {
|
|
16
16
|
tip: {},
|
|
@@ -60,12 +60,12 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
60
60
|
"stroke-width": "1.3",
|
|
61
61
|
"stroke-linecap": "round"
|
|
62
62
|
})
|
|
63
|
-
], -1)]], 42,
|
|
63
|
+
], -1)]], 42, Xn), A(t, { state: G(i) }, null, 8, ["state"])], 64));
|
|
64
64
|
}
|
|
65
|
-
}),
|
|
65
|
+
}), Zn = ["data-glim-title"], Qn = {
|
|
66
66
|
key: 0,
|
|
67
67
|
class: "glim-panel-heading"
|
|
68
|
-
},
|
|
68
|
+
}, $n = /* @__PURE__ */ j({
|
|
69
69
|
__name: "Card",
|
|
70
70
|
props: {
|
|
71
71
|
title: {},
|
|
@@ -74,7 +74,7 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
74
74
|
nested: { type: Boolean }
|
|
75
75
|
},
|
|
76
76
|
setup(t) {
|
|
77
|
-
let n = t, r = C(() => n.hueIndex === void 0 ? void 0 :
|
|
77
|
+
let n = t, r = C(() => n.hueIndex === void 0 ? void 0 : xt(n.hueIndex));
|
|
78
78
|
return (n, i) => (R(), E("div", {
|
|
79
79
|
"data-glim": "Card",
|
|
80
80
|
"data-glim-title": t.title,
|
|
@@ -87,7 +87,7 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
87
87
|
}
|
|
88
88
|
]),
|
|
89
89
|
style: F(r.value)
|
|
90
|
-
}, [t.title || t.hint || n.$slots.title ? (R(), E("h2",
|
|
90
|
+
}, [t.title || t.hint || n.$slots.title ? (R(), E("h2", Qn, [A(e, {
|
|
91
91
|
tone: "heading",
|
|
92
92
|
size: "heading",
|
|
93
93
|
wrap: "",
|
|
@@ -99,20 +99,20 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
99
99
|
"on-accent": ""
|
|
100
100
|
}, null, 8, ["tip"])) : T("", !0)]),
|
|
101
101
|
_: 3
|
|
102
|
-
}, 8, ["hue-index"])])) : T("", !0), V(n.$slots, "default")], 14,
|
|
102
|
+
}, 8, ["hue-index"])])) : T("", !0), V(n.$slots, "default")], 14, Zn));
|
|
103
103
|
}
|
|
104
|
-
}),
|
|
104
|
+
}), er = {
|
|
105
105
|
key: 0,
|
|
106
106
|
class: "glim-readme-btn-art",
|
|
107
107
|
"aria-hidden": "true"
|
|
108
|
-
},
|
|
108
|
+
}, tr = { class: "glim-readme-btn-text" }, nr = { class: "glim-readme-btn-name" }, rr = {
|
|
109
109
|
key: 0,
|
|
110
110
|
class: "glim-readme-btn-sub"
|
|
111
|
-
},
|
|
111
|
+
}, ir = {
|
|
112
112
|
key: 0,
|
|
113
113
|
class: "glim-readme-btn-sheen",
|
|
114
114
|
"aria-hidden": "true"
|
|
115
|
-
},
|
|
115
|
+
}, ar = {
|
|
116
116
|
key: 1,
|
|
117
117
|
class: "glim-readme-btn-hint"
|
|
118
118
|
}, $ = /* @__PURE__ */ j({
|
|
@@ -130,11 +130,11 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
130
130
|
},
|
|
131
131
|
emits: ["linkClick"],
|
|
132
132
|
setup(e, { emit: t }) {
|
|
133
|
-
let n = e, r = t, i = C(() =>
|
|
133
|
+
let n = e, r = t, i = C(() => cn(n.parts)), a = U(null), o = C(() => n.parts.map((e) => `${e.name}\n${e.sub ?? ""}`).join("\n") + (i.value ? n.soonLabel : "")), s;
|
|
134
134
|
J([a, o], () => {
|
|
135
|
-
s?.(), s = a.value ?
|
|
135
|
+
s?.(), s = a.value ? Tt(a.value) : void 0;
|
|
136
136
|
}, { flush: "post" }), Te(() => s?.());
|
|
137
|
-
let c = (e) => i.value ? n.soonLabel : e.sub, l = (e) =>
|
|
137
|
+
let c = (e) => i.value ? n.soonLabel : e.sub, l = (e) => sn(e, c(e)), u = (e) => i.value ? "span" : e.href ? "a" : "button", d = (e) => i.value ? { "aria-disabled": !0 } : e.href ? {
|
|
138
138
|
href: e.href,
|
|
139
139
|
target: "_blank",
|
|
140
140
|
rel: "noreferrer noopener",
|
|
@@ -147,24 +147,24 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
147
147
|
ref_key: "root",
|
|
148
148
|
ref: a,
|
|
149
149
|
"data-glim": "ReadmeButton",
|
|
150
|
-
class: P(G(
|
|
150
|
+
class: P(G(ln)(e.brand, e.parts.length, e.note, i.value))
|
|
151
151
|
}, [
|
|
152
152
|
(R(!0), E(S, null, B(e.parts, (n, r) => (R(), w(H(u(n)), N({ key: r }, { ref_for: !0 }, d(n), {
|
|
153
153
|
"aria-label": l(n),
|
|
154
|
-
class: G(
|
|
154
|
+
class: G(on)(r, i.value)
|
|
155
155
|
}), {
|
|
156
|
-
default: Y(() => [r === 0 && t.$slots.art ? (R(), E("span",
|
|
156
|
+
default: Y(() => [r === 0 && t.$slots.art ? (R(), E("span", er, [V(t.$slots, "art")])) : (R(), E(S, { key: 1 }, [r === 0 && t.$slots.mark ? (R(), E("span", {
|
|
157
157
|
key: 0,
|
|
158
158
|
class: P(`glim-readme-btn-mark ${e.markClass ?? ""}`),
|
|
159
159
|
"aria-hidden": "true"
|
|
160
|
-
}, [V(t.$slots, "mark")], 2)) : T("", !0), D("span",
|
|
160
|
+
}, [V(t.$slots, "mark")], 2)) : T("", !0), D("span", tr, [D("span", nr, W(n.name), 1), c(n) ? (R(), E("span", rr, W(c(n)), 1)) : T("", !0)])], 64))]),
|
|
161
161
|
_: 2
|
|
162
162
|
}, 1040, ["aria-label", "class"]))), 128)),
|
|
163
|
-
i.value ? T("", !0) : (R(), E("span",
|
|
164
|
-
e.hint ? (R(), E("span",
|
|
163
|
+
i.value ? T("", !0) : (R(), E("span", ir)),
|
|
164
|
+
e.hint ? (R(), E("span", ar, [A(Q, { tip: e.hint }, null, 8, ["tip"])])) : T("", !0)
|
|
165
165
|
], 2));
|
|
166
166
|
}
|
|
167
|
-
}),
|
|
167
|
+
}), or = { class: "glim-info-text" }, sr = { class: "glim-info-text" }, cr = { class: "glim-readme-btn-rows glim-about-give" }, lr = /* @__PURE__ */ j({
|
|
168
168
|
__name: "InfoAboutCard",
|
|
169
169
|
props: {
|
|
170
170
|
text: {},
|
|
@@ -177,15 +177,15 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
177
177
|
hueIndex: {}
|
|
178
178
|
},
|
|
179
179
|
setup(e) {
|
|
180
|
-
return (t, n) => (R(), w(
|
|
180
|
+
return (t, n) => (R(), w($n, {
|
|
181
181
|
"data-glim": "InfoAboutCard",
|
|
182
182
|
title: e.text.title,
|
|
183
183
|
"hue-index": e.hueIndex
|
|
184
184
|
}, {
|
|
185
185
|
default: Y(() => [
|
|
186
|
-
D("p",
|
|
187
|
-
D("p",
|
|
188
|
-
D("div",
|
|
186
|
+
D("p", or, W(e.text.body), 1),
|
|
187
|
+
D("p", sr, W(e.text.coffee), 1),
|
|
188
|
+
D("div", cr, [
|
|
189
189
|
A($, {
|
|
190
190
|
brand: "coffee",
|
|
191
191
|
parts: [{
|
|
@@ -227,12 +227,14 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
227
227
|
_: 1
|
|
228
228
|
}, 8, ["title", "hue-index"]));
|
|
229
229
|
}
|
|
230
|
-
}),
|
|
230
|
+
}), ur = { class: "glim-info-text" }, dr = { class: "glim-readme-btn-rows" }, fr = /* @__PURE__ */ j({
|
|
231
231
|
__name: "InfoHelpCard",
|
|
232
232
|
props: {
|
|
233
233
|
text: {},
|
|
234
234
|
repoUrl: {},
|
|
235
235
|
repoGlyph: {},
|
|
236
|
+
discordUrl: {},
|
|
237
|
+
discordGlyph: {},
|
|
236
238
|
mailAddress: {},
|
|
237
239
|
mailGlyph: {},
|
|
238
240
|
manualUrl: {},
|
|
@@ -241,19 +243,19 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
241
243
|
bugGlyph: {},
|
|
242
244
|
openUrl: {
|
|
243
245
|
type: Function,
|
|
244
|
-
default:
|
|
246
|
+
default: Wt
|
|
245
247
|
},
|
|
246
248
|
hueIndex: {}
|
|
247
249
|
},
|
|
248
250
|
setup(e) {
|
|
249
|
-
let t = e, n = C(() =>
|
|
250
|
-
return (t,
|
|
251
|
+
let t = e, n = C(() => Ut(t.text.report, t.mailAddress)), r = C(() => Ht(t.text.report, t.discordUrl) && !!t.text.discordButton);
|
|
252
|
+
return (t, i) => (R(), w($n, {
|
|
251
253
|
"data-glim": "InfoHelpCard",
|
|
252
254
|
title: e.text.title,
|
|
253
255
|
hint: e.text.hint,
|
|
254
256
|
"hue-index": e.hueIndex
|
|
255
257
|
}, {
|
|
256
|
-
default: Y(() => [D("p",
|
|
258
|
+
default: Y(() => [D("p", ur, W(e.text.report), 1), D("div", dr, [
|
|
257
259
|
A($, {
|
|
258
260
|
brand: "github",
|
|
259
261
|
parts: [{
|
|
@@ -266,12 +268,25 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
266
268
|
fn: Y(() => [(R(), w(H(e.repoGlyph)))]),
|
|
267
269
|
key: "0"
|
|
268
270
|
} : void 0]), 1032, ["parts"]),
|
|
269
|
-
|
|
271
|
+
r.value ? (R(), w($, {
|
|
270
272
|
key: 0,
|
|
273
|
+
brand: "discord",
|
|
274
|
+
parts: [{
|
|
275
|
+
name: e.text.discordButton,
|
|
276
|
+
onClick: () => e.openUrl(e.discordUrl)
|
|
277
|
+
}],
|
|
278
|
+
"mark-class": "glim-discord-mark"
|
|
279
|
+
}, O({ _: 2 }, [e.discordGlyph ? {
|
|
280
|
+
name: "mark",
|
|
281
|
+
fn: Y(() => [(R(), w(H(e.discordGlyph)))]),
|
|
282
|
+
key: "0"
|
|
283
|
+
} : void 0]), 1032, ["parts"])) : T("", !0),
|
|
284
|
+
n.value ? (R(), w($, {
|
|
285
|
+
key: 1,
|
|
271
286
|
brand: "house",
|
|
272
287
|
parts: [{
|
|
273
288
|
name: e.text.mailButton,
|
|
274
|
-
onClick: () => e.openUrl(G(
|
|
289
|
+
onClick: () => e.openUrl(G(Mt)(e.mailAddress, e.text.mailSubject))
|
|
275
290
|
}],
|
|
276
291
|
"mark-class": "glim-house-mark"
|
|
277
292
|
}, O({ _: 2 }, [e.mailGlyph ? {
|
|
@@ -280,7 +295,7 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
280
295
|
key: "0"
|
|
281
296
|
} : void 0]), 1032, ["parts"])) : T("", !0),
|
|
282
297
|
e.manualUrl && e.text.manual ? (R(), w($, {
|
|
283
|
-
key:
|
|
298
|
+
key: 2,
|
|
284
299
|
brand: "docs",
|
|
285
300
|
parts: [{
|
|
286
301
|
name: e.text.manual,
|
|
@@ -294,7 +309,7 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
294
309
|
key: "0"
|
|
295
310
|
} : void 0]), 1032, ["parts"])) : T("", !0),
|
|
296
311
|
e.onBugReport && e.text.bugReport ? (R(), w($, {
|
|
297
|
-
key:
|
|
312
|
+
key: 3,
|
|
298
313
|
brand: "github",
|
|
299
314
|
parts: [{
|
|
300
315
|
name: e.text.bugReport,
|
|
@@ -314,19 +329,19 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
314
329
|
"hue-index"
|
|
315
330
|
]));
|
|
316
331
|
}
|
|
317
|
-
}),
|
|
332
|
+
}), pr = { class: "glim-version-rows" }, mr = { class: "glim-version-name" }, hr = { class: "glim-version-part" }, gr = {
|
|
318
333
|
key: 0,
|
|
319
334
|
class: "glim-version-sub"
|
|
320
|
-
},
|
|
335
|
+
}, _r = ["href", "onClick"], vr = {
|
|
321
336
|
key: 1,
|
|
322
337
|
class: "glim-num glim-version-number"
|
|
323
|
-
},
|
|
338
|
+
}, yr = {
|
|
324
339
|
key: 0,
|
|
325
340
|
class: "glim-version-actions"
|
|
326
|
-
},
|
|
341
|
+
}, br = {
|
|
327
342
|
role: "status",
|
|
328
343
|
class: "glim-sr-only"
|
|
329
|
-
},
|
|
344
|
+
}, xr = /* @__PURE__ */ j({
|
|
330
345
|
__name: "InfoVersionCard",
|
|
331
346
|
props: {
|
|
332
347
|
text: {},
|
|
@@ -335,37 +350,37 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
335
350
|
onReleaseNotes: {},
|
|
336
351
|
openUrl: {
|
|
337
352
|
type: Function,
|
|
338
|
-
default:
|
|
353
|
+
default: Wt
|
|
339
354
|
},
|
|
340
355
|
hueIndex: {}
|
|
341
356
|
},
|
|
342
357
|
setup(e) {
|
|
343
|
-
let t = e, n = Me(), r = C(() => !n["whats-new"] && t.onReleaseNotes && t.text.releaseNotes), i = U({ kind: "idle" }), a = U(0), o = C(() => t.updateCheck &&
|
|
358
|
+
let t = e, n = Me(), r = C(() => !n["whats-new"] && t.onReleaseNotes && t.text.releaseNotes), i = U({ kind: "idle" }), a = U(0), o = C(() => t.updateCheck && Un(i.value, t.updateCheck.text));
|
|
344
359
|
function s() {
|
|
345
|
-
|
|
360
|
+
mn(t.updateCheck, i.value, (e) => {
|
|
346
361
|
i.value = e, e.kind === "failed" && a.value++;
|
|
347
362
|
});
|
|
348
363
|
}
|
|
349
364
|
function c(e, n) {
|
|
350
365
|
e.preventDefault(), t.openUrl(n);
|
|
351
366
|
}
|
|
352
|
-
return (t, n) => (R(), w(
|
|
367
|
+
return (t, n) => (R(), w($n, {
|
|
353
368
|
"data-glim": "InfoVersionCard",
|
|
354
369
|
title: e.text.title,
|
|
355
370
|
hint: e.text.hint,
|
|
356
371
|
"hue-index": e.hueIndex
|
|
357
372
|
}, {
|
|
358
|
-
default: Y(() => [D("ul",
|
|
373
|
+
default: Y(() => [D("ul", pr, [(R(!0), E(S, null, B(e.rows, (t) => (R(), E("li", {
|
|
359
374
|
key: t.name,
|
|
360
375
|
class: "glim-version-row"
|
|
361
|
-
}, [D("span",
|
|
376
|
+
}, [D("span", mr, [D("span", hr, W(t.name), 1), t.sub ? (R(), E("span", gr, W(t.sub), 1)) : T("", !0)]), G(Gn)(t).href ? (R(), E("a", {
|
|
362
377
|
key: 0,
|
|
363
|
-
href: G(
|
|
378
|
+
href: G(Gn)(t).href,
|
|
364
379
|
target: "_blank",
|
|
365
380
|
rel: "noopener noreferrer",
|
|
366
381
|
class: "glim-num glim-version-number",
|
|
367
|
-
onClick: (e) => c(e, G(
|
|
368
|
-
}, W(G(
|
|
382
|
+
onClick: (e) => c(e, G(Gn)(t).href)
|
|
383
|
+
}, W(G(Gn)(t).shown), 9, _r)) : (R(), E("span", vr, W(G(Gn)(t).released ? G(Gn)(t).shown : e.text.unreleased(G(Gn)(t).shown)), 1))]))), 128))]), r.value || t.$slots["whats-new"] || e.updateCheck ? (R(), E("div", yr, [
|
|
369
384
|
r.value ? (R(), w(f, {
|
|
370
385
|
key: 0,
|
|
371
386
|
label: e.text.releaseNotes,
|
|
@@ -378,7 +393,7 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
378
393
|
label: o.value.label,
|
|
379
394
|
"label-key": o.value.labelKey,
|
|
380
395
|
tone: o.value.tone,
|
|
381
|
-
stage: G(
|
|
396
|
+
stage: G(Wn)(e.updateCheck.text, o.value.label),
|
|
382
397
|
busy: i.value.kind === "busy",
|
|
383
398
|
class: P(a.value > 0 ? "glim-shake" : ""),
|
|
384
399
|
onClick: s
|
|
@@ -389,7 +404,7 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
389
404
|
"stage",
|
|
390
405
|
"busy",
|
|
391
406
|
"class"
|
|
392
|
-
])), D("span",
|
|
407
|
+
])), D("span", br, W(o.value.announced), 1)], 64)) : T("", !0)
|
|
393
408
|
])) : T("", !0)]),
|
|
394
409
|
_: 3
|
|
395
410
|
}, 8, [
|
|
@@ -398,10 +413,10 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
398
413
|
"hue-index"
|
|
399
414
|
]));
|
|
400
415
|
}
|
|
401
|
-
}),
|
|
416
|
+
}), Sr = {
|
|
402
417
|
"data-glim": "InfoTile",
|
|
403
418
|
style: { display: "contents" }
|
|
404
|
-
},
|
|
419
|
+
}, Cr = /* @__PURE__ */ j({
|
|
405
420
|
__name: "InfoTile",
|
|
406
421
|
props: {
|
|
407
422
|
version: {},
|
|
@@ -411,17 +426,17 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
411
426
|
},
|
|
412
427
|
setup(e) {
|
|
413
428
|
let t = e, n = (e) => t.hueIndex === void 0 ? void 0 : t.hueIndex + e;
|
|
414
|
-
return (t, r) => (R(), E("div",
|
|
415
|
-
A(
|
|
429
|
+
return (t, r) => (R(), E("div", Sr, [
|
|
430
|
+
A(xr, N(e.version, { "hue-index": n(0) }), O({ _: 2 }, [t.$slots["whats-new"] ? {
|
|
416
431
|
name: "whats-new",
|
|
417
432
|
fn: Y(() => [V(t.$slots, "whats-new")]),
|
|
418
433
|
key: "0"
|
|
419
434
|
} : void 0]), 1040, ["hue-index"]),
|
|
420
|
-
A(
|
|
421
|
-
A(
|
|
435
|
+
A(fr, N(e.help, { "hue-index": n(1) }), null, 16, ["hue-index"]),
|
|
436
|
+
A(lr, N(e.about, { "hue-index": n(2) }), null, 16, ["hue-index"])
|
|
422
437
|
]));
|
|
423
438
|
}
|
|
424
|
-
}),
|
|
439
|
+
}), wr = /* @__PURE__ */ j({
|
|
425
440
|
__name: "AboutCard",
|
|
426
441
|
props: {
|
|
427
442
|
text: {},
|
|
@@ -436,17 +451,19 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
436
451
|
paypalGlyph: {},
|
|
437
452
|
onPaypal: {},
|
|
438
453
|
onCrypto: {},
|
|
454
|
+
discordUrl: {},
|
|
455
|
+
discordGlyph: {},
|
|
439
456
|
mailAddress: {},
|
|
440
457
|
mailGlyph: {},
|
|
441
458
|
openUrl: {
|
|
442
459
|
type: Function,
|
|
443
|
-
default:
|
|
460
|
+
default: Wt
|
|
444
461
|
},
|
|
445
462
|
hueIndex: {}
|
|
446
463
|
},
|
|
447
464
|
setup(e) {
|
|
448
465
|
let t = e;
|
|
449
|
-
|
|
466
|
+
Kn("AboutCard");
|
|
450
467
|
let n = C(() => [...t.version ? [{
|
|
451
468
|
name: t.text.version,
|
|
452
469
|
version: t.version,
|
|
@@ -456,7 +473,7 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
456
473
|
version: t.glimstoneVersion,
|
|
457
474
|
repoUrl: t.glimstoneRepoUrl
|
|
458
475
|
}]);
|
|
459
|
-
return (t, r) => (R(), w(
|
|
476
|
+
return (t, r) => (R(), w(Cr, {
|
|
460
477
|
"data-glim": "AboutCard",
|
|
461
478
|
"hue-index": e.hueIndex,
|
|
462
479
|
about: {
|
|
@@ -481,11 +498,14 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
481
498
|
title: e.text.helpTitle,
|
|
482
499
|
report: e.text.report,
|
|
483
500
|
repoButton: e.text.repoButton,
|
|
501
|
+
discordButton: e.text.discordButton,
|
|
484
502
|
mailButton: e.text.mailButton,
|
|
485
503
|
mailSubject: e.text.mailSubject
|
|
486
504
|
},
|
|
487
505
|
repoUrl: e.repoUrl,
|
|
488
506
|
repoGlyph: e.repoGlyph,
|
|
507
|
+
discordUrl: e.discordUrl,
|
|
508
|
+
discordGlyph: e.discordGlyph,
|
|
489
509
|
mailAddress: e.mailAddress,
|
|
490
510
|
mailGlyph: e.mailGlyph,
|
|
491
511
|
openUrl: e.openUrl
|
|
@@ -497,7 +517,7 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
497
517
|
"help"
|
|
498
518
|
]));
|
|
499
519
|
}
|
|
500
|
-
}),
|
|
520
|
+
}), Tr = ["innerHTML"], Er = /* @__PURE__ */ j({
|
|
501
521
|
__name: "BrandMark",
|
|
502
522
|
props: { svg: {} },
|
|
503
523
|
setup(e) {
|
|
@@ -506,16 +526,16 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
506
526
|
class: "glim-brand-svg",
|
|
507
527
|
"aria-hidden": "true",
|
|
508
528
|
innerHTML: e.svg
|
|
509
|
-
}, null, 8,
|
|
529
|
+
}, null, 8, Tr));
|
|
510
530
|
}
|
|
511
|
-
}),
|
|
531
|
+
}), Dr = [
|
|
512
532
|
"aria-checked",
|
|
513
533
|
"aria-label",
|
|
514
534
|
"disabled"
|
|
515
|
-
],
|
|
535
|
+
], Or = {
|
|
516
536
|
class: "glim-checkbox-box",
|
|
517
537
|
"aria-hidden": "true"
|
|
518
|
-
},
|
|
538
|
+
}, kr = { key: 0 }, Ar = /* @__PURE__ */ j({
|
|
519
539
|
__name: "Checkbox",
|
|
520
540
|
props: /*@__PURE__*/ M({
|
|
521
541
|
label: {},
|
|
@@ -551,12 +571,12 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
551
571
|
class: P(["glim-checkbox", { "glim-checkbox--slim": e.slim }]),
|
|
552
572
|
onClick: i[0] ||= (e) => r.value = !r.value,
|
|
553
573
|
onKeydown: i[1] ||= Re(X(() => {}, ["prevent"]), ["enter"])
|
|
554
|
-
}, [D("span",
|
|
574
|
+
}, [D("span", Or, [A(G(y))]), n.value ? T("", !0) : (R(), E("span", kr, W(e.label), 1))], 42, Dr));
|
|
555
575
|
}
|
|
556
|
-
}),
|
|
576
|
+
}), jr = ["data-glim-title"], Mr = { class: "glim-modal-head" }, Nr = {
|
|
557
577
|
id: "coffee-title",
|
|
558
578
|
class: "glim-modal-title"
|
|
559
|
-
},
|
|
579
|
+
}, Pr = { class: "glim-give-body" }, Fr = { class: "glim-give-appeal" }, Ir = { class: "glim-give-intro" }, Lr = { class: "glim-give-frame" }, Rr = ["src", "title"], zr = { class: "glim-give-foot" }, Br = /* @__PURE__ */ j({
|
|
560
580
|
__name: "CoffeeDialog",
|
|
561
581
|
props: {
|
|
562
582
|
widgetUrl: {},
|
|
@@ -579,7 +599,7 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
579
599
|
"aria-labelledby": "coffee-title",
|
|
580
600
|
class: "glim-modal-card glim-modal-card--wide glim-modal-card--tall"
|
|
581
601
|
}, [
|
|
582
|
-
D("div",
|
|
602
|
+
D("div", Mr, [D("h2", Nr, [A(e, {
|
|
583
603
|
tone: "heading",
|
|
584
604
|
size: "heading",
|
|
585
605
|
wrap: ""
|
|
@@ -587,28 +607,28 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
587
607
|
default: Y(() => [k(W(t.text.title), 1)]),
|
|
588
608
|
_: 1
|
|
589
609
|
})])]),
|
|
590
|
-
D("div",
|
|
591
|
-
D("p",
|
|
592
|
-
D("p",
|
|
593
|
-
D("div",
|
|
610
|
+
D("div", Pr, [
|
|
611
|
+
D("p", Fr, W(t.text.appeal), 1),
|
|
612
|
+
D("p", Ir, W(t.text.intro), 1),
|
|
613
|
+
D("div", Lr, [D("iframe", {
|
|
594
614
|
src: t.widgetUrl,
|
|
595
615
|
title: t.text.title,
|
|
596
616
|
allow: "payment",
|
|
597
617
|
class: "glim-give-iframe"
|
|
598
|
-
}, null, 8,
|
|
618
|
+
}, null, 8, Rr)])
|
|
599
619
|
]),
|
|
600
|
-
D("div",
|
|
620
|
+
D("div", zr, [A(f, {
|
|
601
621
|
label: t.text.closeLabel,
|
|
602
622
|
"label-key": "common.close",
|
|
603
623
|
tone: "neutral",
|
|
604
624
|
onClick: r[0] ||= (e) => i("close")
|
|
605
625
|
}, null, 8, ["label"])])
|
|
606
|
-
], 8,
|
|
626
|
+
], 8, jr)]));
|
|
607
627
|
}
|
|
608
|
-
}),
|
|
628
|
+
}), Vr = { class: "glim-picker-foot" }, Hr = {
|
|
609
629
|
key: 0,
|
|
610
630
|
class: "glim-picker-name"
|
|
611
|
-
},
|
|
631
|
+
}, Ur = ["value", "aria-label"], Wr = { class: "glim-picker-actions" }, Gr = /* @__PURE__ */ j({
|
|
612
632
|
__name: "ColorPicker",
|
|
613
633
|
props: /*@__PURE__*/ M({
|
|
614
634
|
anchor: { default: null },
|
|
@@ -630,18 +650,18 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
630
650
|
let n = e, r = q(e, "modelValue"), i = t, a = {
|
|
631
651
|
...Be,
|
|
632
652
|
...n.text
|
|
633
|
-
}, o = U(null), s = U(null), c = z(
|
|
653
|
+
}, o = U(null), s = U(null), c = z(Vt(r.value) ?? "#000000"), l = z(c.value), u = C(() => n.names === !1 ? null : zt(c.value, n.names)), d = nt(c.value, (e) => {
|
|
634
654
|
c.value = e, l.value = e, i("input", e);
|
|
635
655
|
}, { text: a }), p;
|
|
636
656
|
L(() => {
|
|
637
|
-
s.value.appendChild(d.el), n.anchor && o.value && (p =
|
|
657
|
+
s.value.appendChild(d.el), n.anchor && o.value && (p = pt(o.value, n.anchor, () => i("close")), d.focus());
|
|
638
658
|
}), I(() => p?.()), J(r, (e) => {
|
|
639
|
-
let t =
|
|
659
|
+
let t = Vt(e);
|
|
640
660
|
t && (c.value = t, l.value = t, d.setValue(t));
|
|
641
661
|
});
|
|
642
662
|
function m(e) {
|
|
643
663
|
l.value = e.target.value;
|
|
644
|
-
let t =
|
|
664
|
+
let t = Vt(l.value);
|
|
645
665
|
t && (c.value = t, d.setValue(t), i("input", t));
|
|
646
666
|
}
|
|
647
667
|
function h() {
|
|
@@ -651,7 +671,7 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
651
671
|
e.key === "Enter" && !(e.target instanceof HTMLButtonElement) && (e.preventDefault(), h());
|
|
652
672
|
}
|
|
653
673
|
return (t, n) => (R(), w(xe, {
|
|
654
|
-
to: G(
|
|
674
|
+
to: G(en)(),
|
|
655
675
|
disabled: !e.anchor
|
|
656
676
|
}, [D("div", {
|
|
657
677
|
"data-glim": "ColorPicker",
|
|
@@ -666,12 +686,12 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
666
686
|
ref: s,
|
|
667
687
|
style: { display: "contents" }
|
|
668
688
|
}, null, 512),
|
|
669
|
-
D("div",
|
|
689
|
+
D("div", Vr, [
|
|
670
690
|
n[0] ||= D("span", {
|
|
671
691
|
class: "glim-picker-swatch",
|
|
672
692
|
"aria-hidden": "true"
|
|
673
693
|
}, null, -1),
|
|
674
|
-
u.value === null ? T("", !0) : (R(), E("span",
|
|
694
|
+
u.value === null ? T("", !0) : (R(), E("span", Hr, W(u.value), 1)),
|
|
675
695
|
D("input", {
|
|
676
696
|
class: "glim-picker-hex",
|
|
677
697
|
value: l.value,
|
|
@@ -679,9 +699,9 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
679
699
|
spellcheck: "false",
|
|
680
700
|
"aria-label": a.hex,
|
|
681
701
|
onInput: m
|
|
682
|
-
}, null, 40,
|
|
702
|
+
}, null, 40, Ur)
|
|
683
703
|
]),
|
|
684
|
-
D("div",
|
|
704
|
+
D("div", Wr, [A(f, {
|
|
685
705
|
label: a.apply,
|
|
686
706
|
"label-key": "apply",
|
|
687
707
|
glyph: G(y),
|
|
@@ -690,16 +710,16 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
690
710
|
}, null, 8, ["label", "glyph"])])
|
|
691
711
|
], 38)], 8, ["to", "disabled"]));
|
|
692
712
|
}
|
|
693
|
-
}),
|
|
713
|
+
}), Kr = ["data-glim-title"], qr = { class: "glim-modal-head" }, Jr = {
|
|
694
714
|
id: "confirmdialog-title",
|
|
695
715
|
class: "glim-modal-title"
|
|
696
|
-
},
|
|
716
|
+
}, Yr = { class: "glim-modal-body" }, Xr = {
|
|
697
717
|
id: "confirmdialog-message",
|
|
698
718
|
class: "glim-modal-text"
|
|
699
|
-
},
|
|
719
|
+
}, Zr = {
|
|
700
720
|
key: 0,
|
|
701
721
|
class: "glim-modal-extra"
|
|
702
|
-
},
|
|
722
|
+
}, Qr = { class: "glim-modal-foot" }, $r = /* @__PURE__ */ j({
|
|
703
723
|
__name: "ConfirmDialog",
|
|
704
724
|
props: {
|
|
705
725
|
title: {},
|
|
@@ -727,7 +747,7 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
727
747
|
"aria-describedby": "confirmdialog-message",
|
|
728
748
|
class: "glim-modal-card"
|
|
729
749
|
}, [
|
|
730
|
-
D("div",
|
|
750
|
+
D("div", qr, [D("h2", Jr, [A(e, {
|
|
731
751
|
tone: "heading",
|
|
732
752
|
size: "heading",
|
|
733
753
|
wrap: ""
|
|
@@ -742,8 +762,8 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
742
762
|
class: "glim-modal-close",
|
|
743
763
|
onClick: r[0] ||= (e) => i("cancel")
|
|
744
764
|
}, null, 8, ["label", "glyph"]))]),
|
|
745
|
-
D("div",
|
|
746
|
-
D("div",
|
|
765
|
+
D("div", Yr, [D("p", Xr, W(t.message), 1), n.$slots.extra ? (R(), E("div", Zr, [V(n.$slots, "extra")])) : T("", !0)]),
|
|
766
|
+
D("div", Qr, [A(f, {
|
|
747
767
|
ref_key: "cancel",
|
|
748
768
|
ref: o,
|
|
749
769
|
label: t.cancelLabel,
|
|
@@ -760,25 +780,25 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
760
780
|
"label-key",
|
|
761
781
|
"glyph"
|
|
762
782
|
])])
|
|
763
|
-
], 8,
|
|
783
|
+
], 8, Kr)]));
|
|
764
784
|
}
|
|
765
|
-
}),
|
|
785
|
+
}), ei = {
|
|
766
786
|
"data-glim": "Kbd",
|
|
767
787
|
class: "glim-kbd"
|
|
768
|
-
},
|
|
788
|
+
}, ti = /* @__PURE__ */ j({
|
|
769
789
|
__name: "Kbd",
|
|
770
790
|
setup(e) {
|
|
771
|
-
return (e, t) => (R(), E("kbd",
|
|
791
|
+
return (e, t) => (R(), E("kbd", ei, [V(e.$slots, "default")]));
|
|
772
792
|
}
|
|
773
|
-
}),
|
|
793
|
+
}), ni = {
|
|
774
794
|
key: 0,
|
|
775
795
|
class: "glim-menu-sep",
|
|
776
796
|
role: "separator"
|
|
777
|
-
},
|
|
797
|
+
}, ri = {
|
|
778
798
|
key: 1,
|
|
779
799
|
class: "glim-menu-head",
|
|
780
800
|
role: "presentation"
|
|
781
|
-
},
|
|
801
|
+
}, ii = [
|
|
782
802
|
"role",
|
|
783
803
|
"aria-checked",
|
|
784
804
|
"aria-haspopup",
|
|
@@ -786,26 +806,26 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
786
806
|
"disabled",
|
|
787
807
|
"data-row",
|
|
788
808
|
"onClick"
|
|
789
|
-
],
|
|
809
|
+
], ai = {
|
|
790
810
|
key: 0,
|
|
791
811
|
class: "glim-checkbox-box",
|
|
792
812
|
"aria-hidden": "true"
|
|
793
|
-
},
|
|
813
|
+
}, oi = {
|
|
794
814
|
key: 2,
|
|
795
815
|
class: "glim-menu-glyph",
|
|
796
816
|
"aria-hidden": "true"
|
|
797
|
-
},
|
|
817
|
+
}, si = { class: "glim-menu-label" }, ci = {
|
|
798
818
|
key: 3,
|
|
799
819
|
class: "glim-menu-end glim-menu-caret",
|
|
800
820
|
"aria-hidden": "true"
|
|
801
|
-
},
|
|
821
|
+
}, li = {
|
|
802
822
|
key: 4,
|
|
803
823
|
class: "glim-menu-end glim-menu-tick",
|
|
804
824
|
"aria-hidden": "true"
|
|
805
|
-
},
|
|
825
|
+
}, ui = {
|
|
806
826
|
key: 6,
|
|
807
827
|
class: "glim-menu-end glim-menu-count glim-num"
|
|
808
|
-
},
|
|
828
|
+
}, di = /* @__PURE__ */ j({
|
|
809
829
|
__name: "MenuRows",
|
|
810
830
|
props: {
|
|
811
831
|
entries: {},
|
|
@@ -813,15 +833,15 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
813
833
|
},
|
|
814
834
|
emits: ["pick"],
|
|
815
835
|
setup(e, { emit: t }) {
|
|
816
|
-
let n = e, r = t, i = C(() => n.entries.map((e) => e === "-" ? { kind: "sep" } :
|
|
836
|
+
let n = e, r = t, i = C(() => n.entries.map((e) => e === "-" ? { kind: "sep" } : St(e) ? {
|
|
817
837
|
kind: "head",
|
|
818
838
|
head: e
|
|
819
839
|
} : {
|
|
820
840
|
kind: "item",
|
|
821
841
|
item: e,
|
|
822
|
-
view:
|
|
842
|
+
view: Lt(e)
|
|
823
843
|
}));
|
|
824
|
-
return (t, n) => (R(!0), E(S, null, B(i.value, (t, n) => (R(), E(S, { key: n }, [t.kind === "sep" ? (R(), E("div",
|
|
844
|
+
return (t, n) => (R(!0), E(S, null, B(i.value, (t, n) => (R(), E(S, { key: n }, [t.kind === "sep" ? (R(), E("div", ni)) : t.kind === "head" ? (R(), E("div", ri, [D("span", null, W(t.head.head), 1), t.head.edit ? (R(), w(he, {
|
|
825
845
|
key: 0,
|
|
826
846
|
tip: t.head.edit.tip,
|
|
827
847
|
role: "menuitem",
|
|
@@ -849,23 +869,23 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
849
869
|
"data-row": n,
|
|
850
870
|
onClick: (e) => r("pick", n)
|
|
851
871
|
}, [
|
|
852
|
-
t.view.lead === "box" ? (R(), E("span",
|
|
872
|
+
t.view.lead === "box" ? (R(), E("span", ai, [A(G(y))])) : t.view.lead === "dot" ? (R(), E("span", {
|
|
853
873
|
key: 1,
|
|
854
874
|
class: "glim-menu-dot",
|
|
855
875
|
style: F({ backgroundColor: t.item.color }),
|
|
856
876
|
"aria-hidden": "true"
|
|
857
|
-
}, null, 4)) : (R(), E("span",
|
|
858
|
-
D("span",
|
|
859
|
-
t.view.end === "submenu" ? (R(), E("span",
|
|
877
|
+
}, null, 4)) : (R(), E("span", oi, [t.view.lead === "glyph" ? (R(), w(H(t.item.glyph), { key: 0 })) : T("", !0)])),
|
|
878
|
+
D("span", si, W(t.item.label), 1),
|
|
879
|
+
t.view.end === "submenu" ? (R(), E("span", ci, [A(G(ue))])) : t.view.end === "tick" ? (R(), E("span", li, [A(G(y))])) : t.view.end === "shortcut" ? (R(), w(ti, {
|
|
860
880
|
key: 5,
|
|
861
881
|
class: "glim-menu-end"
|
|
862
882
|
}, {
|
|
863
883
|
default: Y(() => [k(W(t.item.shortcut), 1)]),
|
|
864
884
|
_: 2
|
|
865
|
-
}, 1024)) : t.view.end === "count" ? (R(), E("span",
|
|
866
|
-
], 10,
|
|
885
|
+
}, 1024)) : t.view.end === "count" ? (R(), E("span", ui, W(t.item.count), 1)) : T("", !0)
|
|
886
|
+
], 10, ii))], 64))), 128));
|
|
867
887
|
}
|
|
868
|
-
}),
|
|
888
|
+
}), fi = ["id", "aria-label"], pi = ["id", "aria-label"], mi = /* @__PURE__ */ j({
|
|
869
889
|
__name: "ContextMenu",
|
|
870
890
|
props: {
|
|
871
891
|
x: {},
|
|
@@ -885,22 +905,22 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
885
905
|
},
|
|
886
906
|
emits: ["close", "step"],
|
|
887
907
|
setup(e, { emit: t }) {
|
|
888
|
-
let n = e, r = t, i = U(null), a = U(null), o =
|
|
908
|
+
let n = e, r = t, i = U(null), a = U(null), o = bt(), s = z({
|
|
889
909
|
left: n.x,
|
|
890
910
|
top: n.y
|
|
891
|
-
}), c = U(null), l = z(null), u = C(() =>
|
|
911
|
+
}), c = U(null), l = z(null), u = C(() => Ln(n.items)), d = C(() => {
|
|
892
912
|
let e = c.value ? u.value[c.value.at] : void 0;
|
|
893
|
-
return e && e !== "-" && !
|
|
894
|
-
}), f = C(() => d.value?.sub ?
|
|
913
|
+
return e && e !== "-" && !St(e) && e.sub ? e : null;
|
|
914
|
+
}), f = C(() => d.value?.sub ? Ln(d.value.sub) : null), p = () => ({
|
|
895
915
|
width: innerWidth,
|
|
896
916
|
height: innerHeight
|
|
897
917
|
});
|
|
898
918
|
function m(e) {
|
|
899
|
-
r("close"), e &&
|
|
919
|
+
r("close"), e && dn(n.opener ?? o);
|
|
900
920
|
}
|
|
901
921
|
function h() {
|
|
902
922
|
let e = i.value;
|
|
903
|
-
e && (s.value =
|
|
923
|
+
e && (s.value = Qt(n.x, n.y, {
|
|
904
924
|
width: e.offsetWidth,
|
|
905
925
|
height: e.offsetHeight
|
|
906
926
|
}, p(), n.above));
|
|
@@ -912,11 +932,11 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
912
932
|
], h, { flush: "post" });
|
|
913
933
|
let g, ee;
|
|
914
934
|
L(() => {
|
|
915
|
-
h(), g =
|
|
935
|
+
h(), g = et(m), ee = tt(() => [
|
|
916
936
|
i.value,
|
|
917
937
|
a.value,
|
|
918
938
|
n.opener
|
|
919
|
-
], () => m(!1)), i.value && n.fromEnd ?
|
|
939
|
+
], () => m(!1)), i.value && n.fromEnd ? _t(i.value, "last") : i.value && gt(i.value);
|
|
920
940
|
}), Ee(() => {
|
|
921
941
|
g?.(), ee?.();
|
|
922
942
|
}), J(c, (e) => {
|
|
@@ -924,34 +944,34 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
924
944
|
let t = e && i.value?.querySelector(`[data-row="${e.at}"]`), n = a.value;
|
|
925
945
|
if (!e || !t || !n) return;
|
|
926
946
|
let r = getComputedStyle(i.value).direction === "rtl";
|
|
927
|
-
l.value =
|
|
947
|
+
l.value = $t(t.getBoundingClientRect(), {
|
|
928
948
|
width: n.offsetWidth,
|
|
929
949
|
height: n.offsetHeight
|
|
930
|
-
}, p(), r), e.focus &&
|
|
950
|
+
}, p(), r), e.focus && gt(n);
|
|
931
951
|
}, { flush: "post" });
|
|
932
952
|
function _(e, t) {
|
|
933
953
|
let n = e[t];
|
|
934
|
-
n !== "-" && (
|
|
954
|
+
n !== "-" && (St(n) ? (m(!0), n.edit?.onSelect()) : n.sub && e === u.value ? c.value = {
|
|
935
955
|
at: t,
|
|
936
956
|
focus: !0
|
|
937
|
-
} : (
|
|
957
|
+
} : (Lt(n).staysOpen || m(!0), n.onSelect?.()));
|
|
938
958
|
}
|
|
939
959
|
function te(e, t) {
|
|
940
960
|
if (e.key === "Tab") return m(!1);
|
|
941
961
|
let n = e.currentTarget;
|
|
942
|
-
if (
|
|
943
|
-
|
|
962
|
+
if (Ct(e)) {
|
|
963
|
+
vt(n, e.key) && e.preventDefault();
|
|
944
964
|
return;
|
|
945
965
|
}
|
|
946
|
-
let a =
|
|
966
|
+
let a = It(e.key, getComputedStyle(n).direction === "rtl");
|
|
947
967
|
if (!a) return;
|
|
948
|
-
if (e.preventDefault(), a !== "in" && a !== "out") return
|
|
968
|
+
if (e.preventDefault(), a !== "in" && a !== "out") return _t(n, a);
|
|
949
969
|
if (t) {
|
|
950
970
|
a === "out" && c.value && (i.value?.querySelector(`[data-row="${c.value.at}"]`)?.focus(), c.value = null);
|
|
951
971
|
return;
|
|
952
972
|
}
|
|
953
973
|
let o = Number(document.activeElement?.dataset.row), s = u.value[o];
|
|
954
|
-
a === "in" && s && s !== "-" && !
|
|
974
|
+
a === "in" && s && s !== "-" && !St(s) && s.sub && !s.disabled ? c.value = {
|
|
955
975
|
at: o,
|
|
956
976
|
focus: !0
|
|
957
977
|
} : r("step", a === "in" ? 1 : -1);
|
|
@@ -959,13 +979,13 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
959
979
|
function v(e) {
|
|
960
980
|
let t = e.target.closest("[data-row]");
|
|
961
981
|
if (!t) return;
|
|
962
|
-
let n = Number(t.dataset.row), r = u.value[n], i = r !== "-" && !
|
|
982
|
+
let n = Number(t.dataset.row), r = u.value[n], i = r !== "-" && !St(r) && !!r.sub && !r.disabled;
|
|
963
983
|
i && c.value?.at !== n ? c.value = {
|
|
964
984
|
at: n,
|
|
965
985
|
focus: !1
|
|
966
986
|
} : !i && c.value && (c.value = null);
|
|
967
987
|
}
|
|
968
|
-
return (t, n) => (R(), w(xe, { to: G(
|
|
988
|
+
return (t, n) => (R(), w(xe, { to: G(en)() }, [D("div", {
|
|
969
989
|
id: e.id,
|
|
970
990
|
ref_key: "menu",
|
|
971
991
|
ref: i,
|
|
@@ -980,11 +1000,11 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
980
1000
|
onKeydown: n[1] ||= (e) => te(e, !1),
|
|
981
1001
|
onMouseover: v,
|
|
982
1002
|
onContextmenu: n[2] ||= X(() => {}, ["prevent"])
|
|
983
|
-
}, [A(
|
|
1003
|
+
}, [A(di, {
|
|
984
1004
|
entries: u.value,
|
|
985
1005
|
"open-at": c.value?.at,
|
|
986
1006
|
onPick: n[0] ||= (e) => _(u.value, e)
|
|
987
|
-
}, null, 8, ["entries", "open-at"])], 44,
|
|
1007
|
+
}, null, 8, ["entries", "open-at"])], 44, fi), f.value ? (R(), E("div", {
|
|
988
1008
|
key: 0,
|
|
989
1009
|
id: d.value?.subId,
|
|
990
1010
|
ref_key: "subMenu",
|
|
@@ -998,15 +1018,15 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
998
1018
|
}),
|
|
999
1019
|
onKeydown: n[4] ||= (e) => te(e, !0),
|
|
1000
1020
|
onContextmenu: n[5] ||= X(() => {}, ["prevent"])
|
|
1001
|
-
}, [A(
|
|
1021
|
+
}, [A(di, {
|
|
1002
1022
|
entries: f.value,
|
|
1003
1023
|
onPick: n[3] ||= (e) => _(f.value, e)
|
|
1004
|
-
}, null, 8, ["entries"])], 44,
|
|
1024
|
+
}, null, 8, ["entries"])], 44, pi)) : T("", !0)], 8, ["to"]));
|
|
1005
1025
|
}
|
|
1006
|
-
}),
|
|
1026
|
+
}), hi = ["value", "aria-label"], gi = {
|
|
1007
1027
|
role: "status",
|
|
1008
1028
|
class: "glim-sr-only"
|
|
1009
|
-
},
|
|
1029
|
+
}, _i = /* @__PURE__ */ j({
|
|
1010
1030
|
__name: "CopyField",
|
|
1011
1031
|
props: {
|
|
1012
1032
|
value: {},
|
|
@@ -1022,12 +1042,12 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1022
1042
|
let n = e, r = t, i = x(() => n.label), a = z(!1), o = U(null), s;
|
|
1023
1043
|
I(() => clearTimeout(s));
|
|
1024
1044
|
async function c() {
|
|
1025
|
-
let e = await
|
|
1045
|
+
let e = await at(n.value);
|
|
1026
1046
|
r("copy", e), e ? (a.value = !0, clearTimeout(s), s = window.setTimeout(() => a.value = !1, Ve)) : (o.value?.focus(), o.value?.select());
|
|
1027
1047
|
}
|
|
1028
1048
|
return (t, n) => (R(), E("span", {
|
|
1029
1049
|
"data-glim": "CopyField",
|
|
1030
|
-
class: P(["glim-copy", G(
|
|
1050
|
+
class: P(["glim-copy", G(ft)(e.width)])
|
|
1031
1051
|
}, [
|
|
1032
1052
|
D("input", {
|
|
1033
1053
|
ref_key: "field",
|
|
@@ -1037,7 +1057,7 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1037
1057
|
"aria-label": G(i),
|
|
1038
1058
|
spellcheck: "false",
|
|
1039
1059
|
class: "glim-input glim-input--mono"
|
|
1040
|
-
}, null, 8,
|
|
1060
|
+
}, null, 8, hi),
|
|
1041
1061
|
A(f, {
|
|
1042
1062
|
label: a.value ? e.text.copied : e.text.copy,
|
|
1043
1063
|
"label-key": a.value ? "copied" : "copy",
|
|
@@ -1049,27 +1069,27 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1049
1069
|
"label-key",
|
|
1050
1070
|
"glyph"
|
|
1051
1071
|
]),
|
|
1052
|
-
D("span",
|
|
1072
|
+
D("span", gi, W(a.value ? e.text.copied : ""), 1)
|
|
1053
1073
|
], 2));
|
|
1054
1074
|
}
|
|
1055
|
-
}),
|
|
1075
|
+
}), vi = ["data-glim-title"], yi = { class: "glim-modal-head" }, bi = {
|
|
1056
1076
|
id: "cryptodonate-title",
|
|
1057
1077
|
class: "glim-modal-title"
|
|
1058
|
-
},
|
|
1078
|
+
}, xi = { class: "glim-give-body glim-give-body--scroll" }, Si = { class: "glim-give-appeal" }, Ci = { class: "glim-give-intro" }, wi = { class: "glim-give-well" }, Ti = {
|
|
1059
1079
|
dir: "ltr",
|
|
1060
1080
|
class: "glim-give-address"
|
|
1061
|
-
},
|
|
1081
|
+
}, Ei = ["aria-label"], Di = ["aria-selected", "onClick"], Oi = {
|
|
1062
1082
|
key: 0,
|
|
1063
1083
|
class: "glim-give-note"
|
|
1064
|
-
},
|
|
1084
|
+
}, ki = ["aria-label"], Ai = [
|
|
1065
1085
|
"aria-selected",
|
|
1066
1086
|
"aria-label",
|
|
1067
1087
|
"title",
|
|
1068
1088
|
"onClick"
|
|
1069
|
-
],
|
|
1089
|
+
], ji = {
|
|
1070
1090
|
key: 1,
|
|
1071
1091
|
class: "glim-give-ticker"
|
|
1072
|
-
},
|
|
1092
|
+
}, Mi = { class: "glim-give-foot" }, Ni = /* @__PURE__ */ j({
|
|
1073
1093
|
__name: "CryptoDonateDialog",
|
|
1074
1094
|
props: {
|
|
1075
1095
|
coins: {},
|
|
@@ -1088,7 +1108,7 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1088
1108
|
function d(e, t) {
|
|
1089
1109
|
let n = e.id !== i.coin.id && e.tile;
|
|
1090
1110
|
return {
|
|
1091
|
-
...
|
|
1111
|
+
...xt(t),
|
|
1092
1112
|
...n ? {
|
|
1093
1113
|
"--tile": e.tile.color,
|
|
1094
1114
|
"--tile-ink": e.tile.ink
|
|
@@ -1113,7 +1133,7 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1113
1133
|
"aria-labelledby": "cryptodonate-title",
|
|
1114
1134
|
class: "glim-modal-card glim-modal-card--wide"
|
|
1115
1135
|
}, [
|
|
1116
|
-
D("div",
|
|
1136
|
+
D("div", yi, [D("h2", bi, [A(e, {
|
|
1117
1137
|
tone: "heading",
|
|
1118
1138
|
size: "heading",
|
|
1119
1139
|
wrap: ""
|
|
@@ -1121,12 +1141,12 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1121
1141
|
default: Y(() => [k(W(t.text.title), 1)]),
|
|
1122
1142
|
_: 1
|
|
1123
1143
|
})])]),
|
|
1124
|
-
D("div",
|
|
1125
|
-
D("p",
|
|
1126
|
-
D("p",
|
|
1127
|
-
D("div",
|
|
1144
|
+
D("div", xi, [
|
|
1145
|
+
D("p", Si, W(t.text.appeal), 1),
|
|
1146
|
+
D("p", Ci, W(t.text.intro), 1),
|
|
1147
|
+
D("div", wi, [
|
|
1128
1148
|
V(n.$slots, "qr", { value: t.network.address }),
|
|
1129
|
-
D("p",
|
|
1149
|
+
D("p", Ti, W(t.network.address), 1),
|
|
1130
1150
|
D("div", {
|
|
1131
1151
|
class: "glim-give-networks",
|
|
1132
1152
|
role: "listbox",
|
|
@@ -1136,11 +1156,11 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1136
1156
|
type: "button",
|
|
1137
1157
|
role: "option",
|
|
1138
1158
|
"aria-selected": e.id === t.network.id,
|
|
1139
|
-
style: F(G(
|
|
1159
|
+
style: F(G(xt)(n)),
|
|
1140
1160
|
class: P(e.id === t.network.id ? "glim-give-network glim-hue glim-active" : "glim-give-network glim-hue"),
|
|
1141
1161
|
onClick: (n) => a("pick", t.coin, e)
|
|
1142
|
-
}, W(e.name), 15,
|
|
1143
|
-
t.network.note ? (R(), E("p",
|
|
1162
|
+
}, W(e.name), 15, Di))), 128))], 8, Ei),
|
|
1163
|
+
t.network.note ? (R(), E("p", Oi, W(t.network.note), 1)) : T("", !0),
|
|
1144
1164
|
A(f, {
|
|
1145
1165
|
label: t.text.copyLabel,
|
|
1146
1166
|
"label-key": "common.copy",
|
|
@@ -1163,17 +1183,17 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1163
1183
|
style: F(d(e, r)),
|
|
1164
1184
|
class: P(p(e)),
|
|
1165
1185
|
onClick: (t) => a("pick", e, e.networks[0])
|
|
1166
|
-
}, [s.value ? V(n.$slots, "mark", { coin: e }, void 0, void 0, 0) : T("", !0), c.value ? (R(), E("span",
|
|
1186
|
+
}, [s.value ? V(n.$slots, "mark", { coin: e }, void 0, void 0, 0) : T("", !0), c.value ? (R(), E("span", ji, W(e.symbol), 1)) : T("", !0)], 14, Ai))), 128))], 8, ki)
|
|
1167
1187
|
]),
|
|
1168
|
-
D("div",
|
|
1188
|
+
D("div", Mi, [A(f, {
|
|
1169
1189
|
label: t.text.closeLabel,
|
|
1170
1190
|
"label-key": "common.close",
|
|
1171
1191
|
tone: "neutral",
|
|
1172
1192
|
onClick: r[1] ||= (e) => a("close")
|
|
1173
1193
|
}, null, 8, ["label"])])
|
|
1174
|
-
], 8,
|
|
1194
|
+
], 8, vi)]));
|
|
1175
1195
|
}
|
|
1176
|
-
}),
|
|
1196
|
+
}), Pi = ["aria-multiselectable", "aria-label"], Fi = 4, Ii = /* @__PURE__ */ j({
|
|
1177
1197
|
__name: "DropdownListbox",
|
|
1178
1198
|
props: {
|
|
1179
1199
|
open: { type: Boolean },
|
|
@@ -1184,7 +1204,7 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1184
1204
|
emits: ["close"],
|
|
1185
1205
|
setup(e, { emit: t }) {
|
|
1186
1206
|
let n = e;
|
|
1187
|
-
|
|
1207
|
+
Kn("DropdownListbox");
|
|
1188
1208
|
let r = t, i = U(null), a = U(null), o = ve(() => n.open, Ae(n, "triggerRef")), s = !1;
|
|
1189
1209
|
J(() => n.open, (e) => {
|
|
1190
1210
|
e || (s = !!i.value?.contains(document.activeElement));
|
|
@@ -1198,10 +1218,10 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1198
1218
|
let r = {
|
|
1199
1219
|
width: document.documentElement.clientWidth || window.innerWidth,
|
|
1200
1220
|
height: document.documentElement.clientHeight || window.innerHeight
|
|
1201
|
-
}, { left: o, top: s } =
|
|
1221
|
+
}, { left: o, top: s } = it(t, {
|
|
1202
1222
|
width: t.width,
|
|
1203
1223
|
height: i.value.offsetHeight
|
|
1204
|
-
}, r,
|
|
1224
|
+
}, r, Fi);
|
|
1205
1225
|
a.value = {
|
|
1206
1226
|
left: o,
|
|
1207
1227
|
top: s,
|
|
@@ -1237,8 +1257,8 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1237
1257
|
flush: "post"
|
|
1238
1258
|
}), Te(() => m());
|
|
1239
1259
|
function g(e) {
|
|
1240
|
-
if (
|
|
1241
|
-
|
|
1260
|
+
if (Ct(e)) {
|
|
1261
|
+
mt(c(), e.key) && e.preventDefault();
|
|
1242
1262
|
return;
|
|
1243
1263
|
}
|
|
1244
1264
|
if (![
|
|
@@ -1261,7 +1281,7 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1261
1281
|
}
|
|
1262
1282
|
return (t, n) => e.open ? (R(), w(xe, {
|
|
1263
1283
|
key: 0,
|
|
1264
|
-
to: G(
|
|
1284
|
+
to: G(en)()
|
|
1265
1285
|
}, [D("div", {
|
|
1266
1286
|
ref_key: "panel",
|
|
1267
1287
|
ref: i,
|
|
@@ -1282,16 +1302,16 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1282
1302
|
...G(o).style.value
|
|
1283
1303
|
}),
|
|
1284
1304
|
onKeydown: g
|
|
1285
|
-
}, [V(t.$slots, "default")], 46,
|
|
1305
|
+
}, [V(t.$slots, "default")], 46, Pi)], 8, ["to"])) : T("", !0);
|
|
1286
1306
|
}
|
|
1287
|
-
}),
|
|
1307
|
+
}), Li = ["data-glim-title"], Ri = {
|
|
1288
1308
|
key: 0,
|
|
1289
1309
|
class: "glim-empty-glyph",
|
|
1290
1310
|
"aria-hidden": "true"
|
|
1291
|
-
},
|
|
1311
|
+
}, zi = { class: "glim-empty-title" }, Bi = {
|
|
1292
1312
|
key: 1,
|
|
1293
1313
|
class: "glim-empty-hint"
|
|
1294
|
-
},
|
|
1314
|
+
}, Vi = /* @__PURE__ */ j({
|
|
1295
1315
|
__name: "EmptyState",
|
|
1296
1316
|
props: {
|
|
1297
1317
|
glyph: {},
|
|
@@ -1308,13 +1328,13 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1308
1328
|
"data-glim-title": e.title,
|
|
1309
1329
|
class: P(e.nested ? "glim-empty" : "glim-card glim-empty")
|
|
1310
1330
|
}, [
|
|
1311
|
-
e.glyph ? (R(), E("span",
|
|
1312
|
-
D("p",
|
|
1313
|
-
e.hint ? (R(), E("p",
|
|
1331
|
+
e.glyph ? (R(), E("span", Ri, [(R(), w(H(e.glyph)))])) : T("", !0),
|
|
1332
|
+
D("p", zi, W(e.title), 1),
|
|
1333
|
+
e.hint ? (R(), E("p", Bi, W(e.hint), 1)) : T("", !0),
|
|
1314
1334
|
V(t.$slots, "default")
|
|
1315
|
-
], 10,
|
|
1335
|
+
], 10, Li));
|
|
1316
1336
|
}
|
|
1317
|
-
}),
|
|
1337
|
+
}), Hi = ["id"], Ui = /* @__PURE__ */ j({
|
|
1318
1338
|
__name: "FieldError",
|
|
1319
1339
|
props: { id: {} },
|
|
1320
1340
|
setup(e) {
|
|
@@ -1322,22 +1342,22 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1322
1342
|
"data-glim": "FieldError",
|
|
1323
1343
|
id: e.id,
|
|
1324
1344
|
class: "glim-field-error"
|
|
1325
|
-
}, [A(G(b), { mark: G(
|
|
1345
|
+
}, [A(G(b), { mark: G(qe).fail }, null, 8, ["mark"]), V(t.$slots, "default")], 8, Hi));
|
|
1326
1346
|
}
|
|
1327
|
-
}),
|
|
1347
|
+
}), Wi = /* @__PURE__ */ j({
|
|
1328
1348
|
__name: "Pill",
|
|
1329
1349
|
props: { tone: { default: "neutral" } },
|
|
1330
1350
|
setup(e) {
|
|
1331
|
-
let t = e, n = C(() =>
|
|
1351
|
+
let t = e, n = C(() => Zt(t.tone));
|
|
1332
1352
|
return (e, t) => (R(), E("span", {
|
|
1333
1353
|
"data-glim": "Pill",
|
|
1334
1354
|
class: P(n.value)
|
|
1335
1355
|
}, [V(e.$slots, "default")], 2));
|
|
1336
1356
|
}
|
|
1337
|
-
}),
|
|
1357
|
+
}), Gi = { class: "glim-field-row-name" }, Ki = {
|
|
1338
1358
|
key: 0,
|
|
1339
1359
|
class: "glim-field-row-controls"
|
|
1340
|
-
},
|
|
1360
|
+
}, qi = /* @__PURE__ */ j({
|
|
1341
1361
|
__name: "FieldRow",
|
|
1342
1362
|
props: {
|
|
1343
1363
|
label: {},
|
|
@@ -1355,20 +1375,20 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1355
1375
|
ref: r,
|
|
1356
1376
|
"data-glim": "FieldRow",
|
|
1357
1377
|
class: P(["glim-field-row", { "glim-field-row--wide": e.wide }])
|
|
1358
|
-
}, [D("span",
|
|
1378
|
+
}, [D("span", Gi, [D("span", {
|
|
1359
1379
|
class: "glim-field-row-label",
|
|
1360
|
-
onClick: i[0] ||= (e) => G(
|
|
1380
|
+
onClick: i[0] ||= (e) => G(nn)(r.value)
|
|
1361
1381
|
}, [V(t.$slots, "label", {}, () => [k(W(e.label), 1)])]), e.hint ? (R(), w(Q, {
|
|
1362
1382
|
key: 0,
|
|
1363
1383
|
tip: e.hint
|
|
1364
|
-
}, null, 8, ["tip"])) : T("", !0)]), G(n) ? (R(), E("span",
|
|
1384
|
+
}, null, 8, ["tip"])) : T("", !0)]), G(n) ? (R(), E("span", Ki, [V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w(Wi, {
|
|
1365
1385
|
key: 0,
|
|
1366
1386
|
class: "glim-num",
|
|
1367
1387
|
tone: e.tone
|
|
1368
1388
|
}, {
|
|
1369
1389
|
default: Y(() => [k(W(e.value), 1)]),
|
|
1370
1390
|
_: 1
|
|
1371
|
-
}, 8, ["tone"]))])])) : V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w(
|
|
1391
|
+
}, 8, ["tone"]))])])) : V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w(Wi, {
|
|
1372
1392
|
key: 0,
|
|
1373
1393
|
class: "glim-num",
|
|
1374
1394
|
tone: e.tone
|
|
@@ -1377,7 +1397,7 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1377
1397
|
_: 1
|
|
1378
1398
|
}, 8, ["tone"]))], void 0, 1)], 2));
|
|
1379
1399
|
}
|
|
1380
|
-
}),
|
|
1400
|
+
}), Ji = /* @__PURE__ */ j({
|
|
1381
1401
|
__name: "FieldRowGroup",
|
|
1382
1402
|
props: { columns: {} },
|
|
1383
1403
|
setup(e) {
|
|
@@ -1387,13 +1407,13 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1387
1407
|
style: F(e.columns ? { "--field-columns": e.columns } : void 0)
|
|
1388
1408
|
}, [V(t.$slots, "default")], 4));
|
|
1389
1409
|
}
|
|
1390
|
-
}),
|
|
1410
|
+
}), Yi = {
|
|
1391
1411
|
key: 0,
|
|
1392
1412
|
class: "glim-modal-foot"
|
|
1393
|
-
},
|
|
1413
|
+
}, Xi = {
|
|
1394
1414
|
key: 0,
|
|
1395
1415
|
class: "glim-window-start"
|
|
1396
|
-
},
|
|
1416
|
+
}, Zi = /* @__PURE__ */ j({
|
|
1397
1417
|
__name: "WindowFootRow",
|
|
1398
1418
|
props: {
|
|
1399
1419
|
actions: {},
|
|
@@ -1403,7 +1423,7 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1403
1423
|
},
|
|
1404
1424
|
emits: ["close"],
|
|
1405
1425
|
setup(e, { emit: t }) {
|
|
1406
|
-
let n = e, r = t, i = C(() =>
|
|
1426
|
+
let n = e, r = t, i = C(() => Yn(n.actions, n.hasStart, {
|
|
1407
1427
|
cancel: {
|
|
1408
1428
|
label: n.text.cancel,
|
|
1409
1429
|
labelKey: "common.cancel",
|
|
@@ -1420,7 +1440,7 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1420
1440
|
function a(e) {
|
|
1421
1441
|
e.onClick?.() !== !1 && r("close");
|
|
1422
1442
|
}
|
|
1423
|
-
return (t, n) => i.value.length ? (R(), E("div",
|
|
1443
|
+
return (t, n) => i.value.length ? (R(), E("div", Yi, [e.hasStart ? (R(), E("span", Xi, [V(t.$slots, "start", {}, () => [k(W(e.start), 1)])])) : T("", !0), (R(!0), E(S, null, B(i.value, (e, t) => (R(), w(f, N({ ref_for: !0 }, e.attrs, {
|
|
1424
1444
|
key: t,
|
|
1425
1445
|
label: e.label,
|
|
1426
1446
|
"label-key": e.labelKey,
|
|
@@ -1437,11 +1457,11 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1437
1457
|
"onClick"
|
|
1438
1458
|
]))), 128))])) : T("", !0);
|
|
1439
1459
|
}
|
|
1440
|
-
}),
|
|
1460
|
+
}), Qi = [
|
|
1441
1461
|
"data-glim-title",
|
|
1442
1462
|
"aria-labelledby",
|
|
1443
1463
|
"aria-label"
|
|
1444
|
-
],
|
|
1464
|
+
], $i = ["id"], ea = { class: "glim-modal-body glim-window-body" }, ta = /* @__PURE__ */ j({
|
|
1445
1465
|
inheritAttrs: !1,
|
|
1446
1466
|
__name: "Window",
|
|
1447
1467
|
props: {
|
|
@@ -1453,19 +1473,19 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1453
1473
|
},
|
|
1454
1474
|
emits: ["close"],
|
|
1455
1475
|
setup(t, { expose: n, emit: r }) {
|
|
1456
|
-
let i = t, a = r, o = Me(), s = U(null), c = K(), l =
|
|
1476
|
+
let i = t, a = r, o = Me(), s = U(null), c = K(), l = bt(), u = C(() => i.start !== void 0 || !!o.start), d;
|
|
1457
1477
|
function f() {
|
|
1458
1478
|
d?.(), a("close");
|
|
1459
1479
|
}
|
|
1460
1480
|
L(() => {
|
|
1461
|
-
d =
|
|
1481
|
+
d = kn(() => s.value, f), s.value && Jn(s.value)?.focus();
|
|
1462
1482
|
}), Ee(() => {
|
|
1463
|
-
d?.(),
|
|
1483
|
+
d?.(), dn(l);
|
|
1464
1484
|
}), n({ card: s });
|
|
1465
1485
|
function p() {
|
|
1466
|
-
|
|
1486
|
+
Ft() || f();
|
|
1467
1487
|
}
|
|
1468
|
-
return (n, r) => (R(), w(xe, { to: G(
|
|
1488
|
+
return (n, r) => (R(), w(xe, { to: G(en)() }, [D("div", {
|
|
1469
1489
|
class: "glim-modal-backdrop",
|
|
1470
1490
|
onMousedown: X(p, ["self"])
|
|
1471
1491
|
}, [D("div", N({
|
|
@@ -1495,9 +1515,9 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1495
1515
|
}, {
|
|
1496
1516
|
default: Y(() => [V(n.$slots, "title", {}, () => [k(W(t.title), 1)])]),
|
|
1497
1517
|
_: 3
|
|
1498
|
-
})], 8,
|
|
1499
|
-
D("div",
|
|
1500
|
-
A(
|
|
1518
|
+
})], 8, $i),
|
|
1519
|
+
D("div", ea, [V(n.$slots, "default")]),
|
|
1520
|
+
A(Zi, {
|
|
1501
1521
|
actions: t.actions,
|
|
1502
1522
|
start: t.start,
|
|
1503
1523
|
"has-start": u.value,
|
|
@@ -1513,9 +1533,9 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1513
1533
|
"has-start",
|
|
1514
1534
|
"text"
|
|
1515
1535
|
])
|
|
1516
|
-
], 16,
|
|
1536
|
+
], 16, Qi)], 32)], 8, ["to"]));
|
|
1517
1537
|
}
|
|
1518
|
-
}),
|
|
1538
|
+
}), na = { class: "glim-fortress-text" }, ra = /* @__PURE__ */ j({
|
|
1519
1539
|
__name: "FortressDoubtWindow",
|
|
1520
1540
|
props: {
|
|
1521
1541
|
app: {},
|
|
@@ -1525,14 +1545,14 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1525
1545
|
onClose: { type: Function }
|
|
1526
1546
|
},
|
|
1527
1547
|
setup(e) {
|
|
1528
|
-
let t = e, n = C(() =>
|
|
1548
|
+
let t = e, n = C(() => ut(t.text, t.app, t.instance)), r = C(() => [{
|
|
1529
1549
|
label: n.value.open,
|
|
1530
1550
|
labelKey: "open",
|
|
1531
1551
|
primary: !0,
|
|
1532
1552
|
attrs: { "data-fortress": "open-anyway" },
|
|
1533
1553
|
onClick: () => t.onOpen()
|
|
1534
1554
|
}]);
|
|
1535
|
-
return (t, i) => (R(), w(
|
|
1555
|
+
return (t, i) => (R(), w(ta, {
|
|
1536
1556
|
"data-glim": "FortressDoubtWindow",
|
|
1537
1557
|
title: n.value.title,
|
|
1538
1558
|
actions: r.value,
|
|
@@ -1542,7 +1562,7 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1542
1562
|
},
|
|
1543
1563
|
onClose: i[0] ||= (t) => e.onClose()
|
|
1544
1564
|
}, {
|
|
1545
|
-
default: Y(() => [D("div",
|
|
1565
|
+
default: Y(() => [D("div", na, [D("p", null, W(n.value.body), 1)])]),
|
|
1546
1566
|
_: 1
|
|
1547
1567
|
}, 8, [
|
|
1548
1568
|
"title",
|
|
@@ -1550,32 +1570,32 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1550
1570
|
"text"
|
|
1551
1571
|
]));
|
|
1552
1572
|
}
|
|
1553
|
-
}),
|
|
1573
|
+
}), ia = ["data-glim-title"], aa = { class: "glim-instance-top" }, oa = {
|
|
1554
1574
|
key: 0,
|
|
1555
1575
|
class: "glim-instance-mark",
|
|
1556
1576
|
"aria-hidden": "true"
|
|
1557
|
-
},
|
|
1577
|
+
}, sa = ["src"], ca = { class: "glim-instance-main" }, la = { class: "glim-instance-name" }, ua = { class: "glim-instance-title" }, da = {
|
|
1558
1578
|
key: 0,
|
|
1559
1579
|
class: "glim-instance-badges"
|
|
1560
|
-
},
|
|
1580
|
+
}, fa = {
|
|
1561
1581
|
key: 0,
|
|
1562
1582
|
class: "glim-eyebrow"
|
|
1563
|
-
},
|
|
1583
|
+
}, pa = {
|
|
1564
1584
|
key: 1,
|
|
1565
1585
|
class: "glim-instance-facts glim-num"
|
|
1566
|
-
},
|
|
1586
|
+
}, ma = {
|
|
1567
1587
|
key: 2,
|
|
1568
1588
|
class: "glim-instance-figures"
|
|
1569
|
-
},
|
|
1589
|
+
}, ha = { class: "glim-num" }, ga = {
|
|
1570
1590
|
key: 3,
|
|
1571
1591
|
class: "glim-instance-acts"
|
|
1572
|
-
},
|
|
1592
|
+
}, _a = {
|
|
1573
1593
|
key: 0,
|
|
1574
1594
|
class: "glim-instance-body"
|
|
1575
|
-
},
|
|
1595
|
+
}, va = {
|
|
1576
1596
|
key: 1,
|
|
1577
1597
|
class: "glim-instance-acts"
|
|
1578
|
-
},
|
|
1598
|
+
}, ya = /* @__PURE__ */ j({
|
|
1579
1599
|
__name: "InstanceCard",
|
|
1580
1600
|
props: {
|
|
1581
1601
|
logo: {},
|
|
@@ -1586,34 +1606,34 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1586
1606
|
hueIndex: {}
|
|
1587
1607
|
},
|
|
1588
1608
|
setup(e) {
|
|
1589
|
-
let t = e, n = C(() => (t.facts ?? []).filter(Boolean).join(" · ")), r = C(() => t.hueIndex === void 0 ? void 0 :
|
|
1609
|
+
let t = e, n = C(() => (t.facts ?? []).filter(Boolean).join(" · ")), r = C(() => t.hueIndex === void 0 ? void 0 : xt(t.hueIndex));
|
|
1590
1610
|
return (t, i) => (R(), E("div", {
|
|
1591
1611
|
"data-glim": "InstanceCard",
|
|
1592
1612
|
"data-glim-title": e.name,
|
|
1593
1613
|
class: P(["glim-card glim-instance", e.hueIndex !== void 0 && "glim-hue"]),
|
|
1594
1614
|
style: F(r.value)
|
|
1595
1615
|
}, [
|
|
1596
|
-
D("div",
|
|
1616
|
+
D("div", aa, [t.$slots.logo ? (R(), E("span", oa, [V(t.$slots, "logo")])) : e.logo ? (R(), E("img", {
|
|
1597
1617
|
key: 1,
|
|
1598
1618
|
class: "glim-instance-mark",
|
|
1599
1619
|
src: e.logo,
|
|
1600
1620
|
alt: "",
|
|
1601
1621
|
draggable: "false"
|
|
1602
|
-
}, null, 8,
|
|
1603
|
-
D("div",
|
|
1604
|
-
e.eyebrow ? (R(), E("span",
|
|
1605
|
-
n.value ? (R(), E("p",
|
|
1606
|
-
e.figures?.length ? (R(), E("dl",
|
|
1607
|
-
t.$slots.actions && !t.$slots.default ? (R(), E("div",
|
|
1622
|
+
}, null, 8, sa)) : T("", !0), D("div", ca, [
|
|
1623
|
+
D("div", la, [D("h3", ua, W(e.name), 1), t.$slots.badges ? (R(), E("span", da, [V(t.$slots, "badges")])) : T("", !0)]),
|
|
1624
|
+
e.eyebrow ? (R(), E("span", fa, W(e.eyebrow), 1)) : T("", !0),
|
|
1625
|
+
n.value ? (R(), E("p", pa, W(n.value), 1)) : T("", !0),
|
|
1626
|
+
e.figures?.length ? (R(), E("dl", ma, [(R(!0), E(S, null, B(e.figures, (e) => (R(), E("div", { key: e.label }, [D("dt", null, W(e.label), 1), D("dd", ha, W(e.value), 1)]))), 128))])) : T("", !0),
|
|
1627
|
+
t.$slots.actions && !t.$slots.default ? (R(), E("div", ga, [V(t.$slots, "actions")])) : T("", !0)
|
|
1608
1628
|
])]),
|
|
1609
|
-
t.$slots.default ? (R(), E("div",
|
|
1610
|
-
t.$slots.actions && t.$slots.default ? (R(), E("div",
|
|
1611
|
-
], 14,
|
|
1629
|
+
t.$slots.default ? (R(), E("div", _a, [V(t.$slots, "default")])) : T("", !0),
|
|
1630
|
+
t.$slots.actions && t.$slots.default ? (R(), E("div", va, [V(t.$slots, "actions")])) : T("", !0)
|
|
1631
|
+
], 14, ia));
|
|
1612
1632
|
}
|
|
1613
|
-
}),
|
|
1633
|
+
}), ba = {
|
|
1614
1634
|
"data-glim": "PresenceBadges",
|
|
1615
1635
|
style: { display: "contents" }
|
|
1616
|
-
},
|
|
1636
|
+
}, xa = /* @__PURE__ */ j({
|
|
1617
1637
|
__name: "PresenceBadges",
|
|
1618
1638
|
props: {
|
|
1619
1639
|
instance: {},
|
|
@@ -1625,24 +1645,24 @@ var qn = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1625
1645
|
checking: n.text.checking,
|
|
1626
1646
|
away: n.text.away
|
|
1627
1647
|
})[n.instance.presence];
|
|
1628
|
-
return (n, i) => (R(), E("span",
|
|
1648
|
+
return (n, i) => (R(), E("span", ba, [t.instance.relay ? (R(), w(e, { key: 0 }, {
|
|
1629
1649
|
default: Y(() => [k(W(t.text.viaRelay), 1)]),
|
|
1630
1650
|
_: 1
|
|
1631
|
-
})) : T("", !0), A(e, { tone: G(
|
|
1651
|
+
})) : T("", !0), A(e, { tone: G(tn)(t.instance.presence) }, {
|
|
1632
1652
|
default: Y(() => [k(W(r()), 1)]),
|
|
1633
1653
|
_: 1
|
|
1634
1654
|
}, 8, ["tone"])]));
|
|
1635
1655
|
}
|
|
1636
1656
|
});
|
|
1637
1657
|
// src/fortressParts.ts
|
|
1638
|
-
function
|
|
1658
|
+
function Sa(e) {
|
|
1639
1659
|
return e ? m(`device${e.charAt(0).toUpperCase()}${e.slice(1)}`) : void 0;
|
|
1640
1660
|
}
|
|
1641
1661
|
// src/FortressAppCard.vue?vue&type=script&setup=true&lang.ts
|
|
1642
|
-
var
|
|
1662
|
+
var Ca = { class: "glim-instance-rows" }, wa = ["data-instance"], Ta = {
|
|
1643
1663
|
class: "glim-instance-device",
|
|
1644
1664
|
"aria-hidden": "true"
|
|
1645
|
-
},
|
|
1665
|
+
}, Ea = { class: "glim-instance-row-text" }, Da = { class: "glim-instance-row-name" }, Oa = { class: "glim-instance-row-sub glim-num" }, ka = { class: "glim-instance-row-end" }, Aa = /* @__PURE__ */ j({
|
|
1646
1666
|
inheritAttrs: !1,
|
|
1647
1667
|
__name: "FortressAppCard",
|
|
1648
1668
|
props: {
|
|
@@ -1655,15 +1675,15 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
1655
1675
|
removeKey: { default: "delete" }
|
|
1656
1676
|
},
|
|
1657
1677
|
setup(t) {
|
|
1658
|
-
let n = t, r = C(() =>
|
|
1678
|
+
let n = t, r = C(() => Ze(n.app, n.text, n.lang)), i = C(() => r.value.rows.length === 0), a = (e) => ({
|
|
1659
1679
|
connected: n.text.connected,
|
|
1660
1680
|
checking: n.text.checking,
|
|
1661
1681
|
away: n.text.away
|
|
1662
|
-
})[e.presence], o = (e) =>
|
|
1682
|
+
})[e.presence], o = (e) => Sa(e.deviceKind), s = (e) => Pt(n.text, n.app, e), c = (e) => !!n.onRemove && !e.self, l = C(() => !!r.value.open || i.value && c(r.value.main)), u = U(null);
|
|
1663
1683
|
function d(e) {
|
|
1664
|
-
e.doubt ? u.value = e :
|
|
1684
|
+
e.doubt ? u.value = e : Gt(n.app, e, n.onOpen);
|
|
1665
1685
|
}
|
|
1666
|
-
return (n, p) => (R(), E(S, null, [A(
|
|
1686
|
+
return (n, p) => (R(), E(S, null, [A(ya, N(n.$attrs, {
|
|
1667
1687
|
"data-glim": "FortressAppCard",
|
|
1668
1688
|
"data-fortress-app": t.app.id,
|
|
1669
1689
|
logo: t.app.logo,
|
|
@@ -1690,7 +1710,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
1690
1710
|
default: Y(() => [k(W(r.value.needs), 1)]),
|
|
1691
1711
|
_: 1
|
|
1692
1712
|
})) : T("", !0),
|
|
1693
|
-
A(
|
|
1713
|
+
A(xa, {
|
|
1694
1714
|
instance: r.value.main,
|
|
1695
1715
|
text: t.text
|
|
1696
1716
|
}, null, 8, ["instance", "text"])
|
|
@@ -1698,15 +1718,15 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
1698
1718
|
_: 2
|
|
1699
1719
|
}, [i.value ? void 0 : {
|
|
1700
1720
|
name: "default",
|
|
1701
|
-
fn: Y(() => [D("ul",
|
|
1721
|
+
fn: Y(() => [D("ul", Ca, [(R(!0), E(S, null, B(r.value.rows, ({ instance: n, sub: r, open: i }) => (R(), E("li", {
|
|
1702
1722
|
key: n.id,
|
|
1703
1723
|
class: "glim-instance-row",
|
|
1704
1724
|
"data-instance": n.id
|
|
1705
1725
|
}, [
|
|
1706
|
-
D("span",
|
|
1707
|
-
D("span",
|
|
1708
|
-
D("span",
|
|
1709
|
-
A(e, { tone: G(
|
|
1726
|
+
D("span", Ta, [o(n) ? (R(), w(H(o(n)), { key: 0 })) : T("", !0)]),
|
|
1727
|
+
D("span", Ea, [D("span", Da, W(n.device), 1), D("span", Oa, W(r), 1)]),
|
|
1728
|
+
D("span", ka, [
|
|
1729
|
+
A(e, { tone: G(tn)(n.presence) }, {
|
|
1710
1730
|
default: Y(() => [k(W(a(n)), 1)]),
|
|
1711
1731
|
_: 2
|
|
1712
1732
|
}, 1032, ["tone"]),
|
|
@@ -1742,7 +1762,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
1742
1762
|
"onClick"
|
|
1743
1763
|
])) : T("", !0)
|
|
1744
1764
|
])
|
|
1745
|
-
], 8,
|
|
1765
|
+
], 8, wa))), 128))])]),
|
|
1746
1766
|
key: "0"
|
|
1747
1767
|
}, l.value ? {
|
|
1748
1768
|
name: "actions",
|
|
@@ -1773,12 +1793,12 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
1773
1793
|
"eyebrow",
|
|
1774
1794
|
"facts",
|
|
1775
1795
|
"hue-index"
|
|
1776
|
-
]), u.value ? (R(), w(
|
|
1796
|
+
]), u.value ? (R(), w(ra, {
|
|
1777
1797
|
key: 0,
|
|
1778
1798
|
app: t.app,
|
|
1779
1799
|
instance: u.value,
|
|
1780
1800
|
text: t.text,
|
|
1781
|
-
"on-open": () => G(
|
|
1801
|
+
"on-open": () => G(Gt)(t.app, u.value, t.onOpen),
|
|
1782
1802
|
"on-close": () => u.value = null
|
|
1783
1803
|
}, null, 8, [
|
|
1784
1804
|
"app",
|
|
@@ -1788,14 +1808,14 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
1788
1808
|
"on-close"
|
|
1789
1809
|
])) : T("", !0)], 64));
|
|
1790
1810
|
}
|
|
1791
|
-
}),
|
|
1811
|
+
}), ja = [
|
|
1792
1812
|
"href",
|
|
1793
1813
|
"data-sel-id",
|
|
1794
1814
|
"aria-selected",
|
|
1795
1815
|
"aria-current",
|
|
1796
1816
|
"aria-describedby",
|
|
1797
1817
|
"tabindex"
|
|
1798
|
-
],
|
|
1818
|
+
], Ma = [
|
|
1799
1819
|
"data-sel-id",
|
|
1800
1820
|
"id",
|
|
1801
1821
|
"role",
|
|
@@ -1808,7 +1828,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
1808
1828
|
"aria-hidden",
|
|
1809
1829
|
"disabled",
|
|
1810
1830
|
"tabindex"
|
|
1811
|
-
],
|
|
1831
|
+
], Na = ["id"], Pa = /* @__PURE__ */ j({
|
|
1812
1832
|
__name: "SelectorSegment",
|
|
1813
1833
|
props: {
|
|
1814
1834
|
item: {},
|
|
@@ -1832,7 +1852,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
1832
1852
|
},
|
|
1833
1853
|
emits: ["select"],
|
|
1834
1854
|
setup(e, { emit: i }) {
|
|
1835
|
-
let a = e, o = i, s = C(() =>
|
|
1855
|
+
let a = e, o = i, s = C(() => hn({
|
|
1836
1856
|
strip: a.strip,
|
|
1837
1857
|
orientation: a.orientation,
|
|
1838
1858
|
size: a.size,
|
|
@@ -1882,7 +1902,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
1882
1902
|
key: 1,
|
|
1883
1903
|
"data-sel-label": "",
|
|
1884
1904
|
class: P(s.value.labelClass)
|
|
1885
|
-
}, W(e.item.label), 3))], 16,
|
|
1905
|
+
}, W(e.item.label), 3))], 16, ja)) : (R(), E(S, { key: 1 }, [A(G(r), N({
|
|
1886
1906
|
on: u.value,
|
|
1887
1907
|
show: G(c).show,
|
|
1888
1908
|
hide: G(c).hide
|
|
@@ -1891,7 +1911,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
1891
1911
|
ref: m,
|
|
1892
1912
|
type: "button",
|
|
1893
1913
|
"data-sel-id": e.item.id,
|
|
1894
|
-
id: e.panelId && f.value ? G(
|
|
1914
|
+
id: e.panelId && f.value ? G(bn)(e.panelId, e.item.id) : void 0,
|
|
1895
1915
|
role: e.strip.kind === "toggle" ? void 0 : e.strip.kind,
|
|
1896
1916
|
"aria-selected": f.value ? e.on : void 0,
|
|
1897
1917
|
"aria-controls": e.panelId && f.value && e.on ? e.panelId : void 0,
|
|
@@ -1913,7 +1933,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
1913
1933
|
key: 1,
|
|
1914
1934
|
"data-sel-label": "",
|
|
1915
1935
|
class: P(s.value.labelClass)
|
|
1916
|
-
}, W(e.item.label), 3))], 16,
|
|
1936
|
+
}, W(e.item.label), 3))], 16, Ma)]),
|
|
1917
1937
|
_: 1
|
|
1918
1938
|
}, 16, [
|
|
1919
1939
|
"on",
|
|
@@ -1923,16 +1943,16 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
1923
1943
|
key: 0,
|
|
1924
1944
|
id: G(l),
|
|
1925
1945
|
hidden: ""
|
|
1926
|
-
}, W(s.value.tip), 9,
|
|
1946
|
+
}, W(s.value.tip), 9, Na)) : T("", !0)], 64)), A(t, { state: G(c) }, null, 8, ["state"])], 64));
|
|
1927
1947
|
}
|
|
1928
|
-
}),
|
|
1948
|
+
}), Fa = [
|
|
1929
1949
|
"role",
|
|
1930
1950
|
"aria-label",
|
|
1931
1951
|
"aria-orientation"
|
|
1932
|
-
],
|
|
1952
|
+
], Ia = {
|
|
1933
1953
|
key: 0,
|
|
1934
1954
|
class: "glim-sel-list"
|
|
1935
|
-
},
|
|
1955
|
+
}, La = /* @__PURE__ */ j({
|
|
1936
1956
|
__name: "Selector",
|
|
1937
1957
|
props: {
|
|
1938
1958
|
items: {},
|
|
@@ -1978,10 +1998,10 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
1978
1998
|
setup(e, { emit: t }) {
|
|
1979
1999
|
let n = e, r = t, i = C(() => n.modelValue);
|
|
1980
2000
|
function a(e) {
|
|
1981
|
-
let t = U(
|
|
1982
|
-
return Te(
|
|
2001
|
+
let t = U(Nt(e));
|
|
2002
|
+
return Te(Nn(e, () => t.value = Nt(e))), t;
|
|
1983
2003
|
}
|
|
1984
|
-
let o = x(() => n.label), s = C(() => n.inline || n.label === void 0 && o.value !== void 0), c = l(
|
|
2004
|
+
let o = x(() => n.label), s = C(() => n.inline || n.label === void 0 && o.value !== void 0), c = l(_n(n.size, n.orientation)), u = a(Je), d = C(() => xn({
|
|
1985
2005
|
mode: c.value,
|
|
1986
2006
|
select: n.select === "many" ? "many" : "one",
|
|
1987
2007
|
activation: n.activation,
|
|
@@ -2006,7 +2026,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2006
2026
|
i && r(i);
|
|
2007
2027
|
}, { flush: "post" });
|
|
2008
2028
|
}
|
|
2009
|
-
g(() => d.value.counted, (e) => d.value.counted ?
|
|
2029
|
+
g(() => d.value.counted, (e) => d.value.counted ? ot(e) : void 0), g(() => [
|
|
2010
2030
|
n.orientation,
|
|
2011
2031
|
d.value.pinWidth,
|
|
2012
2032
|
n.fit,
|
|
@@ -2023,14 +2043,14 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2023
2043
|
return;
|
|
2024
2044
|
}
|
|
2025
2045
|
let { pinWidth: t, canSqueeze: r, canList: i } = d.value;
|
|
2026
|
-
return
|
|
2046
|
+
return qn(e, {
|
|
2027
2047
|
pinWidth: t,
|
|
2028
2048
|
fit: n.fit,
|
|
2029
2049
|
canSqueeze: r,
|
|
2030
2050
|
canList: i
|
|
2031
2051
|
}, (e) => p.value = e);
|
|
2032
2052
|
});
|
|
2033
|
-
let ee = C(() =>
|
|
2053
|
+
let ee = C(() => vn({
|
|
2034
2054
|
layout: p.value,
|
|
2035
2055
|
inline: s.value,
|
|
2036
2056
|
fit: n.fit
|
|
@@ -2039,10 +2059,10 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2039
2059
|
label: e.label,
|
|
2040
2060
|
glyph: e.glyph,
|
|
2041
2061
|
disabled: y.value[t]
|
|
2042
|
-
}))), v = C(() => i.value === null ? null : String(i.value)), ne = C(() => n.select === "many"), re = (e) => ne.value ? (i.value ?? []).includes(e) : i.value === e, y = C(() => n.items.map((e) => n.disabled || !!e.disabled)), ie = C(() =>
|
|
2062
|
+
}))), v = C(() => i.value === null ? null : String(i.value)), ne = C(() => n.select === "many"), re = (e) => ne.value ? (i.value ?? []).includes(e) : i.value === e, y = C(() => n.items.map((e) => n.disabled || !!e.disabled)), ie = C(() => pn(y.value, n.items.findIndex((e) => re(e.id))));
|
|
2043
2063
|
function ae(e) {
|
|
2044
2064
|
r("press", e);
|
|
2045
|
-
let t = ne.value ?
|
|
2065
|
+
let t = ne.value ? zn(i.value ?? [], e, n.items.map((e) => e.id)) : e;
|
|
2046
2066
|
t !== i.value && r("update:modelValue", t);
|
|
2047
2067
|
}
|
|
2048
2068
|
function oe(e) {
|
|
@@ -2056,7 +2076,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2056
2076
|
e.preventDefault(), t.click();
|
|
2057
2077
|
return;
|
|
2058
2078
|
}
|
|
2059
|
-
let r =
|
|
2079
|
+
let r = fn(f.value, e.key, n.orientation);
|
|
2060
2080
|
if (!r) return;
|
|
2061
2081
|
e.preventDefault();
|
|
2062
2082
|
let i = n.items.find((e) => String(e.id) === r.dataset.selId);
|
|
@@ -2072,7 +2092,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2072
2092
|
class: P([d.value.className, { "glim-sel--listed": _.value }]),
|
|
2073
2093
|
style: F(ee.value.track),
|
|
2074
2094
|
onKeydown: se
|
|
2075
|
-
}, [(R(!0), E(S, null, B(e.items, (t, n) => (R(), w(
|
|
2095
|
+
}, [(R(!0), E(S, null, B(e.items, (t, n) => (R(), w(Pa, {
|
|
2076
2096
|
key: t.id,
|
|
2077
2097
|
item: t,
|
|
2078
2098
|
index: n,
|
|
@@ -2113,7 +2133,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2113
2133
|
"hue-offset",
|
|
2114
2134
|
"panel-id",
|
|
2115
2135
|
"onSelect"
|
|
2116
|
-
]))), 128)), _.value ? (R(), E("div",
|
|
2136
|
+
]))), 128)), _.value ? (R(), E("div", Ia, [A(ye, {
|
|
2117
2137
|
"model-value": v.value,
|
|
2118
2138
|
label: G(o) ?? "",
|
|
2119
2139
|
"hide-label": "",
|
|
@@ -2129,18 +2149,18 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2129
2149
|
"size",
|
|
2130
2150
|
"options",
|
|
2131
2151
|
"disabled"
|
|
2132
|
-
])])) : T("", !0)], 46,
|
|
2152
|
+
])])) : T("", !0)], 46, Fa));
|
|
2133
2153
|
}
|
|
2134
|
-
}),
|
|
2154
|
+
}), Ra = {
|
|
2135
2155
|
key: 0,
|
|
2136
2156
|
class: "glim-toggle-label"
|
|
2137
|
-
},
|
|
2157
|
+
}, za = [
|
|
2138
2158
|
"aria-checked",
|
|
2139
2159
|
"aria-label",
|
|
2140
2160
|
"aria-disabled",
|
|
2141
2161
|
"aria-describedby",
|
|
2142
2162
|
"disabled"
|
|
2143
|
-
],
|
|
2163
|
+
], Ba = ["id"], Va = /* @__PURE__ */ j({
|
|
2144
2164
|
inheritAttrs: !1,
|
|
2145
2165
|
__name: "Toggle",
|
|
2146
2166
|
props: /*@__PURE__*/ M({
|
|
@@ -2166,7 +2186,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2166
2186
|
let r = e, i = q(e, "modelValue"), a = x(() => r.label), o = C(() => r.label !== void 0 && !r.hideLabel), s = n(() => r.refused), c = K(), l = U(null), u;
|
|
2167
2187
|
Te(() => u?.());
|
|
2168
2188
|
function d() {
|
|
2169
|
-
r.refused ? (u?.(), u =
|
|
2189
|
+
r.refused ? (u?.(), u = Sn(l.value)) : i.value = !i.value;
|
|
2170
2190
|
}
|
|
2171
2191
|
return (n, r) => (R(), E(S, null, [
|
|
2172
2192
|
D("span", {
|
|
@@ -2175,7 +2195,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2175
2195
|
"data-glim": "Toggle",
|
|
2176
2196
|
class: P(["glim-toggle", n.$attrs.class]),
|
|
2177
2197
|
style: F(n.$attrs.style)
|
|
2178
|
-
}, [o.value ? (R(), E("span",
|
|
2198
|
+
}, [o.value ? (R(), E("span", Ra, W(e.label), 1)) : T("", !0), D("button", N({
|
|
2179
2199
|
...n.$attrs,
|
|
2180
2200
|
class: void 0,
|
|
2181
2201
|
style: void 0
|
|
@@ -2194,25 +2214,25 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2194
2214
|
onMouseleave: r[1] ||= (...e) => G(s).hide && G(s).hide(...e),
|
|
2195
2215
|
onFocus: r[2] ||= (...e) => G(s).showOnFocus && G(s).showOnFocus(...e),
|
|
2196
2216
|
onBlur: r[3] ||= (...e) => G(s).hide && G(s).hide(...e)
|
|
2197
|
-
}), [...r[4] ||= [D("span", { class: "glim-toggle-thumb" }, null, -1)]], 16,
|
|
2217
|
+
}), [...r[4] ||= [D("span", { class: "glim-toggle-thumb" }, null, -1)]], 16, za)], 6),
|
|
2198
2218
|
e.refused ? (R(), E("span", {
|
|
2199
2219
|
key: 0,
|
|
2200
2220
|
id: G(c),
|
|
2201
2221
|
class: "glim-toggle-refusal"
|
|
2202
|
-
}, W(e.refused), 9,
|
|
2222
|
+
}, W(e.refused), 9, Ba)) : T("", !0),
|
|
2203
2223
|
A(t, { state: G(s) }, null, 8, ["state"])
|
|
2204
2224
|
], 64));
|
|
2205
2225
|
}
|
|
2206
|
-
}),
|
|
2226
|
+
}), Ha = {
|
|
2207
2227
|
key: 0,
|
|
2208
2228
|
class: "glim-fortress-sub"
|
|
2209
|
-
},
|
|
2229
|
+
}, Ua = { class: "glim-permissions" }, Wa = ["data-permission"], Ga = {
|
|
2210
2230
|
class: "glim-permission-pair",
|
|
2211
2231
|
"aria-hidden": "true"
|
|
2212
|
-
},
|
|
2232
|
+
}, Ka = ["src"], qa = { class: "glim-permission-to" }, Ja = ["src"], Ya = { class: "glim-permission-text" }, Xa = { class: "glim-permission-title" }, Za = {
|
|
2213
2233
|
key: 0,
|
|
2214
2234
|
class: "glim-fortress-sub"
|
|
2215
|
-
},
|
|
2235
|
+
}, Qa = /* @__PURE__ */ j({
|
|
2216
2236
|
__name: "FortressPermissions",
|
|
2217
2237
|
props: {
|
|
2218
2238
|
text: {},
|
|
@@ -2224,7 +2244,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2224
2244
|
hueIndex: {}
|
|
2225
2245
|
},
|
|
2226
2246
|
setup(e) {
|
|
2227
|
-
let t = e, n = z("all"), r = C(() =>
|
|
2247
|
+
let t = e, n = z("all"), r = C(() => Yt(t.permissions, t.app.id)), i = C(() => r.value.length < t.permissions.length), a = C(() => n.value === "all" || !i.value ? t.permissions : r.value), o = C(() => [{
|
|
2228
2248
|
id: "all",
|
|
2229
2249
|
label: `${t.text.all} ${t.permissions.length}`
|
|
2230
2250
|
}, {
|
|
@@ -2239,15 +2259,15 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2239
2259
|
}
|
|
2240
2260
|
t.notify?.(n.error ?? t.text.failed, "fail");
|
|
2241
2261
|
let r = document.querySelector(`[data-permission="${CSS.escape(e.id)}"] .glim-toggle`);
|
|
2242
|
-
r &&
|
|
2262
|
+
r && Sn(r);
|
|
2243
2263
|
}
|
|
2244
|
-
return (t, r) => (R(), w(
|
|
2264
|
+
return (t, r) => (R(), w($n, {
|
|
2245
2265
|
"data-glim": "FortressPermissions",
|
|
2246
2266
|
title: e.text.permissions,
|
|
2247
2267
|
hint: e.text.permissionsAbout,
|
|
2248
2268
|
"hue-index": e.hueIndex
|
|
2249
2269
|
}, {
|
|
2250
|
-
default: Y(() => [e.permissions.length === 0 ? (R(), E("p",
|
|
2270
|
+
default: Y(() => [e.permissions.length === 0 ? (R(), E("p", Ha, W(e.text.noPermissions), 1)) : (R(), E(S, { key: 1 }, [i.value ? (R(), w(La, {
|
|
2251
2271
|
key: 0,
|
|
2252
2272
|
modelValue: n.value,
|
|
2253
2273
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
@@ -2259,35 +2279,35 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2259
2279
|
"modelValue",
|
|
2260
2280
|
"label",
|
|
2261
2281
|
"items"
|
|
2262
|
-
])) : T("", !0), D("ul",
|
|
2282
|
+
])) : T("", !0), D("ul", Ua, [(R(!0), E(S, null, B(a.value, (e) => (R(), E("li", {
|
|
2263
2283
|
key: e.id,
|
|
2264
2284
|
class: P(["glim-permission", e.on && "glim-permission--on"]),
|
|
2265
2285
|
"data-permission": e.id
|
|
2266
2286
|
}, [
|
|
2267
|
-
D("span",
|
|
2287
|
+
D("span", Ga, [
|
|
2268
2288
|
s(e.from) ? (R(), E("img", {
|
|
2269
2289
|
key: 0,
|
|
2270
2290
|
src: s(e.from),
|
|
2271
2291
|
alt: "",
|
|
2272
2292
|
draggable: "false"
|
|
2273
|
-
}, null, 8,
|
|
2293
|
+
}, null, 8, Ka)) : T("", !0),
|
|
2274
2294
|
A(G(b), {
|
|
2275
|
-
mark: G(
|
|
2295
|
+
mark: G(Ge).expand,
|
|
2276
2296
|
class: "glim-permission-arrow"
|
|
2277
2297
|
}, null, 8, ["mark"]),
|
|
2278
|
-
D("span",
|
|
2298
|
+
D("span", qa, [(R(!0), E(S, null, B(e.to, (e) => (R(), E(S, { key: e }, [s(e) ? (R(), E("img", {
|
|
2279
2299
|
key: 0,
|
|
2280
2300
|
src: s(e),
|
|
2281
2301
|
alt: "",
|
|
2282
2302
|
draggable: "false"
|
|
2283
|
-
}, null, 8,
|
|
2303
|
+
}, null, 8, Ja)) : T("", !0)], 64))), 128))])
|
|
2284
2304
|
]),
|
|
2285
|
-
D("span",
|
|
2286
|
-
D("span",
|
|
2287
|
-
e.detail ? (R(), E("span",
|
|
2305
|
+
D("span", Ya, [
|
|
2306
|
+
D("span", Xa, W(e.title), 1),
|
|
2307
|
+
e.detail ? (R(), E("span", Za, W(e.detail), 1)) : T("", !0),
|
|
2288
2308
|
V(t.$slots, "extra", { permission: e })
|
|
2289
2309
|
]),
|
|
2290
|
-
A(
|
|
2310
|
+
A(Va, {
|
|
2291
2311
|
"model-value": e.on,
|
|
2292
2312
|
label: e.title,
|
|
2293
2313
|
"hide-label": "",
|
|
@@ -2297,7 +2317,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2297
2317
|
"label",
|
|
2298
2318
|
"onUpdate:modelValue"
|
|
2299
2319
|
])
|
|
2300
|
-
], 10,
|
|
2320
|
+
], 10, Wa))), 128))])], 64))]),
|
|
2301
2321
|
_: 3
|
|
2302
2322
|
}, 8, [
|
|
2303
2323
|
"title",
|
|
@@ -2305,13 +2325,13 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2305
2325
|
"hue-index"
|
|
2306
2326
|
]));
|
|
2307
2327
|
}
|
|
2308
|
-
}),
|
|
2328
|
+
}), $a = [
|
|
2309
2329
|
"aria-label",
|
|
2310
2330
|
"aria-invalid",
|
|
2311
2331
|
"aria-describedby",
|
|
2312
2332
|
"disabled",
|
|
2313
2333
|
"type"
|
|
2314
|
-
],
|
|
2334
|
+
], eo = /* @__PURE__ */ j({
|
|
2315
2335
|
inheritAttrs: !1,
|
|
2316
2336
|
__name: "PasswordField",
|
|
2317
2337
|
props: /*@__PURE__*/ M({
|
|
@@ -2332,7 +2352,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2332
2352
|
}),
|
|
2333
2353
|
emits: ["update:modelValue"],
|
|
2334
2354
|
setup(e, { expose: t }) {
|
|
2335
|
-
let n = e, r = q(e, "modelValue"), i = z(!1), a = je(), o = x(() => a["aria-label"]), s = C(() =>
|
|
2355
|
+
let n = e, r = q(e, "modelValue"), i = z(!1), a = je(), o = x(() => a["aria-label"]), s = C(() => ft(n.width)), c = K(), l = C(() => dt(n.error, a.id ?? c, a["aria-describedby"])), u = U(null);
|
|
2336
2356
|
return t({ input: u }), (t, n) => (R(), E(S, null, [D("span", {
|
|
2337
2357
|
"data-glim": "PasswordField",
|
|
2338
2358
|
class: P([
|
|
@@ -2358,7 +2378,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2358
2378
|
disabled: e.disabled,
|
|
2359
2379
|
type: i.value ? "text" : "password",
|
|
2360
2380
|
class: "glim-input"
|
|
2361
|
-
}), null, 16,
|
|
2381
|
+
}), null, 16, $a), [[Ne, r.value]]), A(he, N(e.eyeAttrs, {
|
|
2362
2382
|
tip: i.value ? e.text.hide : e.text.show,
|
|
2363
2383
|
class: "glim-secret-eye",
|
|
2364
2384
|
disabled: e.disabled,
|
|
@@ -2366,7 +2386,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2366
2386
|
}), {
|
|
2367
2387
|
default: Y(() => [(R(), w(H(i.value ? G(ie) : G(_))))]),
|
|
2368
2388
|
_: 1
|
|
2369
|
-
}, 16, ["tip", "disabled"])], 6), l.value.errorId ? (R(), w(
|
|
2389
|
+
}, 16, ["tip", "disabled"])], 6), l.value.errorId ? (R(), w(Ui, {
|
|
2370
2390
|
key: 0,
|
|
2371
2391
|
id: l.value.errorId
|
|
2372
2392
|
}, {
|
|
@@ -2374,67 +2394,67 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2374
2394
|
_: 1
|
|
2375
2395
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
2376
2396
|
}
|
|
2377
|
-
}),
|
|
2397
|
+
}), to = { class: "glim-phrase-fields" }, no = { class: "glim-phrase-number glim-num" }, ro = [
|
|
2378
2398
|
"data-word",
|
|
2379
2399
|
"value",
|
|
2380
2400
|
"aria-label",
|
|
2381
2401
|
"onInput"
|
|
2382
|
-
],
|
|
2402
|
+
], io = { class: "glim-fortress-sub" }, ao = {
|
|
2383
2403
|
key: 0,
|
|
2384
2404
|
class: "glim-fortress-note",
|
|
2385
2405
|
"data-fortress": "moves"
|
|
2386
|
-
},
|
|
2406
|
+
}, oo = {
|
|
2387
2407
|
key: 1,
|
|
2388
2408
|
class: "glim-fortress-error",
|
|
2389
2409
|
role: "alert"
|
|
2390
|
-
},
|
|
2410
|
+
}, so = {
|
|
2391
2411
|
key: 1,
|
|
2392
2412
|
class: "glim-fortress-result"
|
|
2393
|
-
},
|
|
2413
|
+
}, co = {
|
|
2394
2414
|
class: "glim-fortress-result-mark",
|
|
2395
2415
|
"aria-hidden": "true"
|
|
2396
|
-
},
|
|
2416
|
+
}, lo = { class: "glim-fortress-text" }, uo = { class: "glim-fortress-result-title" }, fo = { class: "glim-fortress-sub" }, po = {
|
|
2397
2417
|
key: 2,
|
|
2398
2418
|
class: "glim-fortress-text"
|
|
2399
|
-
},
|
|
2419
|
+
}, mo = { class: "glim-fortress-sub" }, ho = {
|
|
2400
2420
|
key: 0,
|
|
2401
2421
|
class: "glim-fortress-error",
|
|
2402
2422
|
role: "alert"
|
|
2403
|
-
},
|
|
2423
|
+
}, go = {
|
|
2404
2424
|
key: 3,
|
|
2405
2425
|
class: "glim-fortress-text"
|
|
2406
|
-
},
|
|
2426
|
+
}, _o = { class: "glim-fortress-sub" }, vo = {
|
|
2407
2427
|
key: 0,
|
|
2408
2428
|
class: "glim-fortress-error",
|
|
2409
2429
|
role: "alert"
|
|
2410
|
-
},
|
|
2430
|
+
}, yo = {
|
|
2411
2431
|
key: 4,
|
|
2412
2432
|
class: "glim-fortress-text"
|
|
2413
|
-
},
|
|
2433
|
+
}, bo = {
|
|
2414
2434
|
key: 0,
|
|
2415
2435
|
class: "glim-fortress-error",
|
|
2416
2436
|
role: "alert"
|
|
2417
|
-
},
|
|
2437
|
+
}, xo = {
|
|
2418
2438
|
key: 0,
|
|
2419
2439
|
class: "glim-fortress-error",
|
|
2420
2440
|
role: "alert"
|
|
2421
|
-
},
|
|
2441
|
+
}, So = {
|
|
2422
2442
|
key: 6,
|
|
2423
2443
|
class: "glim-fortress-text"
|
|
2424
|
-
},
|
|
2444
|
+
}, Co = { class: "glim-fortress-sub" }, wo = {
|
|
2425
2445
|
key: 0,
|
|
2426
2446
|
class: "glim-fortress-error",
|
|
2427
2447
|
role: "alert"
|
|
2428
|
-
},
|
|
2448
|
+
}, To = {
|
|
2429
2449
|
key: 7,
|
|
2430
2450
|
class: "glim-fortress-text"
|
|
2431
|
-
},
|
|
2451
|
+
}, Eo = { class: "glim-phrase-show" }, Do = {
|
|
2432
2452
|
class: "glim-phrase-words",
|
|
2433
2453
|
"data-fortress": "words"
|
|
2434
|
-
},
|
|
2454
|
+
}, Oo = { class: "glim-phrase-number glim-num" }, ko = ["aria-label", "viewBox"], Ao = ["width", "height"], jo = ["d"], Mo = { class: "glim-phrase-scan" }, No = {
|
|
2435
2455
|
key: 0,
|
|
2436
2456
|
class: "glim-fortress-sub"
|
|
2437
|
-
},
|
|
2457
|
+
}, Po = /* @__PURE__ */ j({
|
|
2438
2458
|
__name: "FortressWindow",
|
|
2439
2459
|
props: {
|
|
2440
2460
|
flow: {},
|
|
@@ -2450,19 +2470,19 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2450
2470
|
setup(e) {
|
|
2451
2471
|
let t = e, n = U(null), r = z(!1), i;
|
|
2452
2472
|
Te(() => clearTimeout(i));
|
|
2453
|
-
let a = C(() => t.state.window), o = C(() => t.pairedWith?.length ?
|
|
2473
|
+
let a = C(() => t.state.window), o = C(() => t.pairedWith?.length ? Ot(t.lang, t.pairedWith) : null), s = C(() => ({
|
|
2454
2474
|
cancel: t.text.cancel,
|
|
2455
2475
|
close: t.text.close
|
|
2456
2476
|
})), c = C(() => t.state.busy !== null), l;
|
|
2457
2477
|
Te(() => l?.()), J(() => t.state.refusal, (e) => {
|
|
2458
2478
|
let t = e && n.value?.card?.querySelector(`[data-fortress="${e.button}"]`);
|
|
2459
|
-
t && (l =
|
|
2479
|
+
t && (l = Sn(t));
|
|
2460
2480
|
}), J(() => a.value.kind === "join" ? a.value.focus : -1, async (e) => {
|
|
2461
2481
|
await we(), e >= 0 && n.value?.card?.querySelector(`[data-word="${e}"]`)?.focus();
|
|
2462
2482
|
}), J(() => a.value.kind, async () => {
|
|
2463
2483
|
await we();
|
|
2464
2484
|
let e = n.value?.card;
|
|
2465
|
-
e &&
|
|
2485
|
+
e && Jn(e)?.focus();
|
|
2466
2486
|
});
|
|
2467
2487
|
function u(e, t, n, r, i = !1) {
|
|
2468
2488
|
return {
|
|
@@ -2479,7 +2499,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2479
2499
|
label: t.text.copy,
|
|
2480
2500
|
labelKey: t.keys.copy,
|
|
2481
2501
|
attrs: { "data-fortress": "copy" },
|
|
2482
|
-
onClick: () => (
|
|
2502
|
+
onClick: () => (at(e.join(" ")).then((e) => {
|
|
2483
2503
|
r.value = e, clearTimeout(i), i = setTimeout(() => r.value = !1, Ve);
|
|
2484
2504
|
}), !1)
|
|
2485
2505
|
};
|
|
@@ -2487,7 +2507,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2487
2507
|
let f = C(() => {
|
|
2488
2508
|
let e = a.value;
|
|
2489
2509
|
if (e.kind !== "phrase" && e.kind !== "changed") return null;
|
|
2490
|
-
let n =
|
|
2510
|
+
let n = an(t.phraseQr ? t.phraseQr(e.words) : e.words.join(" "));
|
|
2491
2511
|
return {
|
|
2492
2512
|
...n,
|
|
2493
2513
|
side: n.size + 8
|
|
@@ -2503,7 +2523,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2503
2523
|
case "join": return {
|
|
2504
2524
|
title: e.joinTitle,
|
|
2505
2525
|
size: "wide",
|
|
2506
|
-
actions: [u("join", r.join, e.join, i.join, !
|
|
2526
|
+
actions: [u("join", r.join, e.join, i.join, !Xt(n.words))]
|
|
2507
2527
|
};
|
|
2508
2528
|
case "joined": return {
|
|
2509
2529
|
title: e.joinTitle,
|
|
@@ -2549,7 +2569,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2549
2569
|
actions: []
|
|
2550
2570
|
};
|
|
2551
2571
|
});
|
|
2552
|
-
return (t, i) => (R(), w(
|
|
2572
|
+
return (t, i) => (R(), w(ta, {
|
|
2553
2573
|
ref_key: "win",
|
|
2554
2574
|
ref: n,
|
|
2555
2575
|
title: h.value.title,
|
|
@@ -2565,10 +2585,10 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2565
2585
|
onSubmit: i[0] ||= X((t) => e.flow.join(), ["prevent"])
|
|
2566
2586
|
}, [
|
|
2567
2587
|
D("p", null, W(e.text.about), 1),
|
|
2568
|
-
D("div",
|
|
2588
|
+
D("div", to, [(R(!0), E(S, null, B(a.value.words, (t, n) => (R(), E("label", {
|
|
2569
2589
|
key: n,
|
|
2570
2590
|
class: "glim-phrase-field"
|
|
2571
|
-
}, [D("span",
|
|
2591
|
+
}, [D("span", no, W(n + 1), 1), D("input", {
|
|
2572
2592
|
class: "glim-input",
|
|
2573
2593
|
"data-word": n,
|
|
2574
2594
|
value: t,
|
|
@@ -2578,32 +2598,32 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2578
2598
|
autocorrect: "off",
|
|
2579
2599
|
spellcheck: "false",
|
|
2580
2600
|
onInput: (t) => e.flow.enter(n, t.target.value)
|
|
2581
|
-
}, null, 40,
|
|
2601
|
+
}, null, 40, ro)]))), 128))]),
|
|
2582
2602
|
i[4] ||= D("button", {
|
|
2583
2603
|
type: "submit",
|
|
2584
2604
|
hidden: ""
|
|
2585
2605
|
}, null, -1),
|
|
2586
|
-
D("p",
|
|
2587
|
-
o.value ? (R(), E("p",
|
|
2606
|
+
D("p", io, W(e.text.phraseWhere), 1),
|
|
2607
|
+
o.value ? (R(), E("p", ao, [G(m)("info") ? (R(), w(H(G(m)("info")), { key: 0 })) : T("", !0), D("span", null, W(G(Z)(e.text.moves, {
|
|
2588
2608
|
app: e.app.name,
|
|
2589
2609
|
devices: o.value
|
|
2590
2610
|
})), 1)])) : T("", !0),
|
|
2591
|
-
e.state.error ? (R(), E("p",
|
|
2592
|
-
], 32)) : a.value.kind === "joined" ? (R(), E("div",
|
|
2611
|
+
e.state.error ? (R(), E("p", oo, W(e.state.error), 1)) : T("", !0)
|
|
2612
|
+
], 32)) : a.value.kind === "joined" ? (R(), E("div", so, [D("span", co, [A(G(b), { mark: G(Ge).check }, null, 8, ["mark"])]), D("div", lo, [D("p", uo, W(G(Z)(e.text.joinedTitle, { app: e.app.name })), 1), D("p", fo, W(o.value ? `${G(Z)(e.text.joinedMoved, { devices: o.value })} ` : "") + W(e.text.joinedNext), 1)])])) : a.value.kind === "leave" ? (R(), E("div", po, [
|
|
2593
2613
|
D("p", null, W(G(Z)(e.text.leaveBody, { app: e.app.name })) + W(o.value ? ` ${G(Z)(e.text.leavePairing, { devices: o.value })}` : "") + W(e.leaveNote ? ` ${e.leaveNote}` : ""), 1),
|
|
2594
|
-
D("p",
|
|
2595
|
-
e.state.error ? (R(), E("p", fo, W(e.state.error), 1)) : T("", !0)
|
|
2596
|
-
])) : a.value.kind === "remove" ? (R(), E("div", po, [
|
|
2597
|
-
D("p", null, W(G(Z)(e.text.removeBody, { device: a.value.device })), 1),
|
|
2598
|
-
D("p", mo, W(e.text.removeBack), 1),
|
|
2614
|
+
D("p", mo, W(e.text.leaveBack), 1),
|
|
2599
2615
|
e.state.error ? (R(), E("p", ho, W(e.state.error), 1)) : T("", !0)
|
|
2600
|
-
])) : a.value.kind === "
|
|
2616
|
+
])) : a.value.kind === "remove" ? (R(), E("div", go, [
|
|
2617
|
+
D("p", null, W(G(Z)(e.text.removeBody, { device: a.value.device })), 1),
|
|
2618
|
+
D("p", _o, W(e.text.removeBack), 1),
|
|
2619
|
+
e.state.error ? (R(), E("p", vo, W(e.state.error), 1)) : T("", !0)
|
|
2620
|
+
])) : a.value.kind === "removed" ? (R(), E("div", yo, [D("p", null, W(G(Z)(e.text.removedBody, { device: a.value.device })), 1), e.state.error ? (R(), E("p", bo, W(e.state.error), 1)) : T("", !0)])) : a.value.kind === "phrase" && a.value.step === "password" ? (R(), E("form", {
|
|
2601
2621
|
key: 5,
|
|
2602
2622
|
class: "glim-fortress-text",
|
|
2603
2623
|
onSubmit: i[2] ||= X((t) => e.flow.unlock(), ["prevent"])
|
|
2604
2624
|
}, [
|
|
2605
2625
|
D("p", null, W(G(Z)(e.text.phrasePassword, { app: e.app.name })), 1),
|
|
2606
|
-
A(
|
|
2626
|
+
A(eo, {
|
|
2607
2627
|
"model-value": a.value.password,
|
|
2608
2628
|
"aria-label": G(Z)(e.text.password, { app: e.app.name }),
|
|
2609
2629
|
placeholder: G(Z)(e.text.password, { app: e.app.name }),
|
|
@@ -2618,15 +2638,15 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2618
2638
|
"placeholder",
|
|
2619
2639
|
"text"
|
|
2620
2640
|
]),
|
|
2621
|
-
e.state.error ? (R(), E("p", vo, W(e.state.error), 1)) : T("", !0)
|
|
2622
|
-
], 32)) : a.value.kind === "change" ? (R(), E("div", yo, [
|
|
2623
|
-
D("p", null, W(e.text.changeBody), 1),
|
|
2624
|
-
D("p", bo, W(e.text.changeAway), 1),
|
|
2625
2641
|
e.state.error ? (R(), E("p", xo, W(e.state.error), 1)) : T("", !0)
|
|
2626
|
-
])) : a.value.kind === "
|
|
2642
|
+
], 32)) : a.value.kind === "change" ? (R(), E("div", So, [
|
|
2643
|
+
D("p", null, W(e.text.changeBody), 1),
|
|
2644
|
+
D("p", Co, W(e.text.changeAway), 1),
|
|
2645
|
+
e.state.error ? (R(), E("p", wo, W(e.state.error), 1)) : T("", !0)
|
|
2646
|
+
])) : a.value.kind === "phrase" || a.value.kind === "changed" ? (R(), E("div", To, [
|
|
2627
2647
|
D("p", null, W(e.text.phraseBody), 1),
|
|
2628
|
-
D("div",
|
|
2629
|
-
D("ol",
|
|
2648
|
+
D("div", Eo, [
|
|
2649
|
+
D("ol", Do, [(R(!0), E(S, null, B(a.value.words, (e, t) => (R(), E("li", { key: t }, [D("span", Oo, W(t + 1), 1), k(W(e), 1)]))), 128))]),
|
|
2630
2650
|
f.value ? (R(), E("svg", {
|
|
2631
2651
|
key: 0,
|
|
2632
2652
|
class: "glim-phrase-qr",
|
|
@@ -2641,13 +2661,13 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2641
2661
|
width: f.value.side,
|
|
2642
2662
|
height: f.value.side,
|
|
2643
2663
|
fill: "#ffffff"
|
|
2644
|
-
}, null, 8,
|
|
2664
|
+
}, null, 8, Ao), D("path", {
|
|
2645
2665
|
d: f.value.path,
|
|
2646
2666
|
fill: "#161616"
|
|
2647
|
-
}, null, 8,
|
|
2648
|
-
D("p",
|
|
2667
|
+
}, null, 8, jo)], 8, ko)) : T("", !0),
|
|
2668
|
+
D("p", Mo, W(e.text.scanHint), 1)
|
|
2649
2669
|
]),
|
|
2650
|
-
a.value.kind === "changed" && a.value.left.length ? (R(), E("p",
|
|
2670
|
+
a.value.kind === "changed" && a.value.left.length ? (R(), E("p", No, W(G(Z)(e.text.changedLeft, { devices: G(Ot)(e.lang, a.value.left) })), 1)) : T("", !0)
|
|
2651
2671
|
])) : T("", !0)]),
|
|
2652
2672
|
_: 1
|
|
2653
2673
|
}, 8, [
|
|
@@ -2658,25 +2678,25 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2658
2678
|
"text"
|
|
2659
2679
|
]));
|
|
2660
2680
|
}
|
|
2661
|
-
}),
|
|
2681
|
+
}), Fo = {
|
|
2662
2682
|
"data-glim": "Fortress",
|
|
2663
2683
|
class: "glim-fortress"
|
|
2664
|
-
},
|
|
2684
|
+
}, Io = { class: "glim-fortress-grid" }, Lo = {
|
|
2665
2685
|
key: 0,
|
|
2666
2686
|
class: "glim-card glim-instance glim-instance--out",
|
|
2667
2687
|
"data-fortress": "out"
|
|
2668
|
-
},
|
|
2688
|
+
}, Ro = { class: "glim-instance-title" }, zo = { class: "glim-instance-hint" }, Bo = {
|
|
2669
2689
|
key: 0,
|
|
2670
2690
|
class: "glim-instance-found"
|
|
2671
|
-
},
|
|
2691
|
+
}, Vo = ["src"], Ho = { class: "glim-fortress-switch-text" }, Uo = { class: "glim-fortress-switch-name" }, Wo = { class: "glim-fortress-sub" }, Go = {
|
|
2672
2692
|
key: 1,
|
|
2673
2693
|
class: "glim-fortress-removed",
|
|
2674
2694
|
"data-fortress": "removed",
|
|
2675
2695
|
role: "status"
|
|
2676
|
-
},
|
|
2696
|
+
}, Ko = { class: "glim-fortress-grid" }, qo = {
|
|
2677
2697
|
key: 3,
|
|
2678
2698
|
class: "glim-fortress-actions"
|
|
2679
|
-
},
|
|
2699
|
+
}, Jo = /* @__PURE__ */ j({
|
|
2680
2700
|
__name: "Fortress",
|
|
2681
2701
|
props: {
|
|
2682
2702
|
text: {},
|
|
@@ -2714,10 +2734,10 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2714
2734
|
},
|
|
2715
2735
|
emits: ["update:showOthers"],
|
|
2716
2736
|
setup(e, { emit: t }) {
|
|
2717
|
-
let n = e, r = t, i =
|
|
2737
|
+
let n = e, r = t, i = st(() => ({
|
|
2718
2738
|
...n,
|
|
2719
2739
|
failed: n.text.failed,
|
|
2720
|
-
joinRefusal: (e) =>
|
|
2740
|
+
joinRefusal: (e) => wt(n.text, e)
|
|
2721
2741
|
})), a = U(i.state()), o = i.subscribe(() => a.value = i.state());
|
|
2722
2742
|
I(o);
|
|
2723
2743
|
let s = C(() => ({
|
|
@@ -2730,20 +2750,20 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2730
2750
|
unlock: "unlock",
|
|
2731
2751
|
copy: "copy",
|
|
2732
2752
|
...n.labelKeys
|
|
2733
|
-
})), c = z(
|
|
2753
|
+
})), c = z(Mn()), l = C(() => n.showOthers ?? c.value);
|
|
2734
2754
|
function u(e) {
|
|
2735
|
-
r("update:showOthers", e), n.showOthers === void 0 && (
|
|
2755
|
+
r("update:showOthers", e), n.showOthers === void 0 && (jn(e), c.value = e);
|
|
2736
2756
|
}
|
|
2737
|
-
let d = C(() => Z(n.text.removedNote, { devices:
|
|
2738
|
-
return (t, n) => (R(), E("div",
|
|
2739
|
-
D("div",
|
|
2740
|
-
D("h3",
|
|
2741
|
-
D("p",
|
|
2742
|
-
e.found ? (R(), E("p",
|
|
2757
|
+
let d = C(() => Z(n.text.removedNote, { devices: Ot(n.lang, n.removed) })), p = C(() => Jt(n.text, n.lang, n.apps));
|
|
2758
|
+
return (t, n) => (R(), E("div", Fo, [
|
|
2759
|
+
D("div", Io, [V(t.$slots, "default", { remove: G(i).openRemove }), e.joined ? T("", !0) : (R(), E("div", Lo, [
|
|
2760
|
+
D("h3", Ro, W(e.removedHere ? e.text.removedHereTitle : e.text.outTitle), 1),
|
|
2761
|
+
D("p", zo, W(G(Z)(e.removedHere ? e.text.removedHereHint : e.text.outHint, { app: e.app.name })), 1),
|
|
2762
|
+
e.found ? (R(), E("p", Bo, [e.found.logo ? (R(), E("img", {
|
|
2743
2763
|
key: 0,
|
|
2744
2764
|
src: e.found.logo,
|
|
2745
2765
|
alt: ""
|
|
2746
|
-
}, null, 8,
|
|
2766
|
+
}, null, 8, Vo)) : T("", !0), D("span", null, W(G(Z)(e.text.found, {
|
|
2747
2767
|
app: e.found.app,
|
|
2748
2768
|
device: e.found.device
|
|
2749
2769
|
})), 1)])) : T("", !0)
|
|
@@ -2751,15 +2771,15 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2751
2771
|
e.joined && !e.hideSwitch ? (R(), E("div", {
|
|
2752
2772
|
key: 0,
|
|
2753
2773
|
class: "glim-card glim-fortress-switch glim-hue",
|
|
2754
|
-
style: F(G(
|
|
2755
|
-
}, [D("span",
|
|
2774
|
+
style: F(G(xt)(e.hueStart))
|
|
2775
|
+
}, [D("span", Ho, [D("span", Uo, [k(W(e.text.showOthers), 1), A(Q, { tip: e.text.about }, null, 8, ["tip"])]), D("span", Wo, W(p.value), 1)]), A(Va, {
|
|
2756
2776
|
"model-value": l.value,
|
|
2757
2777
|
label: e.text.showOthers,
|
|
2758
2778
|
"hide-label": "",
|
|
2759
2779
|
"data-fortress": "others",
|
|
2760
2780
|
"onUpdate:modelValue": u
|
|
2761
2781
|
}, null, 8, ["model-value", "label"])], 4)) : T("", !0),
|
|
2762
|
-
e.joined && e.removed.length ? (R(), E("div",
|
|
2782
|
+
e.joined && e.removed.length ? (R(), E("div", Go, [
|
|
2763
2783
|
G(m)("info") ? (R(), w(H(G(m)("info")), { key: 0 })) : T("", !0),
|
|
2764
2784
|
D("span", null, W(d.value), 1),
|
|
2765
2785
|
e.onChangePhrase ? (R(), w(f, {
|
|
@@ -2771,11 +2791,11 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2771
2791
|
onClick: n[0] ||= (e) => G(i).openChange()
|
|
2772
2792
|
}, null, 8, ["label", "label-key"])) : T("", !0)
|
|
2773
2793
|
])) : T("", !0),
|
|
2774
|
-
e.joined && l.value ? (R(), E(S, { key: 2 }, [D("div",
|
|
2794
|
+
e.joined && l.value ? (R(), E(S, { key: 2 }, [D("div", Ko, [(R(!0), E(S, null, B(e.apps, (n, r) => (R(), E(S, { key: n.id }, [t.$slots.app ? V(t.$slots, "app", {
|
|
2775
2795
|
app: n,
|
|
2776
2796
|
hueIndex: e.hueStart + 1 + r,
|
|
2777
2797
|
remove: e.onRemove && G(i).openRemove
|
|
2778
|
-
}, void 0, void 0, 0) : (R(), w(
|
|
2798
|
+
}, void 0, void 0, 0) : (R(), w(Aa, {
|
|
2779
2799
|
key: 1,
|
|
2780
2800
|
app: n,
|
|
2781
2801
|
text: e.text,
|
|
@@ -2792,7 +2812,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2792
2812
|
"on-open",
|
|
2793
2813
|
"on-remove",
|
|
2794
2814
|
"remove-key"
|
|
2795
|
-
]))], 64))), 128))]), A(
|
|
2815
|
+
]))], 64))), 128))]), A(Qa, {
|
|
2796
2816
|
text: e.text,
|
|
2797
2817
|
app: e.app,
|
|
2798
2818
|
apps: [e.app, ...e.apps],
|
|
@@ -2812,7 +2832,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2812
2832
|
"notify",
|
|
2813
2833
|
"hue-index"
|
|
2814
2834
|
])], 64)) : T("", !0),
|
|
2815
|
-
!e.joined || e.onShowPhrase ? (R(), E("div",
|
|
2835
|
+
!e.joined || e.onShowPhrase ? (R(), E("div", qo, [e.joined ? (R(), w(f, {
|
|
2816
2836
|
key: 0,
|
|
2817
2837
|
label: e.text.showPhrase,
|
|
2818
2838
|
"label-key": s.value.showPhrase,
|
|
@@ -2834,7 +2854,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2834
2854
|
"data-fortress": "open-join",
|
|
2835
2855
|
onClick: n[2] ||= (e) => G(i).openJoin()
|
|
2836
2856
|
}, null, 8, ["label", "label-key"]))])) : T("", !0),
|
|
2837
|
-
a.value.window ? (R(), w(
|
|
2857
|
+
a.value.window ? (R(), w(Po, {
|
|
2838
2858
|
key: 4,
|
|
2839
2859
|
flow: G(i),
|
|
2840
2860
|
state: a.value,
|
|
@@ -2856,7 +2876,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2856
2876
|
])) : T("", !0)
|
|
2857
2877
|
]));
|
|
2858
2878
|
}
|
|
2859
|
-
}),
|
|
2879
|
+
}), Yo = /* @__PURE__ */ j({
|
|
2860
2880
|
__name: "FortressPairing",
|
|
2861
2881
|
props: {
|
|
2862
2882
|
text: {},
|
|
@@ -2873,7 +2893,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2873
2893
|
hueIndex: {}
|
|
2874
2894
|
},
|
|
2875
2895
|
setup(e) {
|
|
2876
|
-
let t = e, n =
|
|
2896
|
+
let t = e, n = st(() => ({
|
|
2877
2897
|
...t,
|
|
2878
2898
|
failed: t.text.failed
|
|
2879
2899
|
})), r = U(n.state()), i = n.subscribe(() => r.value = n.state());
|
|
@@ -2889,14 +2909,14 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2889
2909
|
copy: "copy",
|
|
2890
2910
|
...t.labelKeys
|
|
2891
2911
|
}));
|
|
2892
|
-
return (t, i) => (R(), w(
|
|
2912
|
+
return (t, i) => (R(), w($n, {
|
|
2893
2913
|
"data-glim": "FortressPairing",
|
|
2894
2914
|
title: e.text.pairing,
|
|
2895
2915
|
"hue-index": e.hueIndex
|
|
2896
2916
|
}, {
|
|
2897
2917
|
default: Y(() => [
|
|
2898
2918
|
V(t.$slots, "default"),
|
|
2899
|
-
e.onShowPhrase || e.onChangePhrase ? (R(), w(
|
|
2919
|
+
e.onShowPhrase || e.onChangePhrase ? (R(), w(qi, {
|
|
2900
2920
|
key: 0,
|
|
2901
2921
|
label: e.text.phraseTitle,
|
|
2902
2922
|
hint: e.onChangePhrase ? e.text.changePhraseAbout : void 0
|
|
@@ -2921,7 +2941,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2921
2941
|
}, null, 8, ["label", "label-key"])) : T("", !0)]),
|
|
2922
2942
|
_: 1
|
|
2923
2943
|
}, 8, ["label", "hint"])) : T("", !0),
|
|
2924
|
-
A(
|
|
2944
|
+
A(qi, {
|
|
2925
2945
|
label: e.text.leaveRow,
|
|
2926
2946
|
hint: G(Z)(e.text.leaveAbout, { app: e.app.name })
|
|
2927
2947
|
}, {
|
|
@@ -2934,7 +2954,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2934
2954
|
_: 1
|
|
2935
2955
|
}, 8, ["label", "hint"]),
|
|
2936
2956
|
V(t.$slots, "after"),
|
|
2937
|
-
r.value.window ? (R(), w(
|
|
2957
|
+
r.value.window ? (R(), w(Po, {
|
|
2938
2958
|
key: 1,
|
|
2939
2959
|
flow: G(n),
|
|
2940
2960
|
state: r.value,
|
|
@@ -2960,13 +2980,13 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2960
2980
|
_: 3
|
|
2961
2981
|
}, 8, ["title", "hue-index"]));
|
|
2962
2982
|
}
|
|
2963
|
-
}),
|
|
2983
|
+
}), Xo = [
|
|
2964
2984
|
"aria-label",
|
|
2965
2985
|
"aria-valuemin",
|
|
2966
2986
|
"aria-valuemax",
|
|
2967
2987
|
"aria-valuenow",
|
|
2968
2988
|
"aria-valuetext"
|
|
2969
|
-
],
|
|
2989
|
+
], Zo = /* @__PURE__ */ j({
|
|
2970
2990
|
__name: "ProgressBar",
|
|
2971
2991
|
props: {
|
|
2972
2992
|
value: { default: null },
|
|
@@ -2982,7 +3002,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2982
3002
|
valueText: {}
|
|
2983
3003
|
},
|
|
2984
3004
|
setup(e) {
|
|
2985
|
-
let t = e, n = C(() =>
|
|
3005
|
+
let t = e, n = C(() => rn(t.value, {
|
|
2986
3006
|
paused: t.paused,
|
|
2987
3007
|
failed: t.failed
|
|
2988
3008
|
}));
|
|
@@ -2998,48 +3018,48 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
2998
3018
|
}, [D("span", {
|
|
2999
3019
|
class: "glim-progress-fill",
|
|
3000
3020
|
style: F(n.value.width ? { width: n.value.width } : void 0)
|
|
3001
|
-
}, null, 4)], 10,
|
|
3021
|
+
}, null, 4)], 10, Xo));
|
|
3002
3022
|
}
|
|
3003
|
-
}),
|
|
3023
|
+
}), Qo = { class: "glim-status-title" }, $o = ["src"], es = {
|
|
3004
3024
|
class: "glim-fortress-text",
|
|
3005
3025
|
"data-fortress": "status"
|
|
3006
|
-
},
|
|
3026
|
+
}, ts = {
|
|
3007
3027
|
key: 0,
|
|
3008
3028
|
class: "glim-fortress-note",
|
|
3009
3029
|
"data-fortress": "loading"
|
|
3010
|
-
},
|
|
3030
|
+
}, ns = { role: "status" }, rs = {
|
|
3011
3031
|
key: 1,
|
|
3012
3032
|
class: "glim-fortress-note",
|
|
3013
3033
|
role: "status",
|
|
3014
3034
|
"data-fortress": "error"
|
|
3015
|
-
},
|
|
3035
|
+
}, is = {
|
|
3016
3036
|
key: 2,
|
|
3017
3037
|
class: "glim-status-state",
|
|
3018
3038
|
"data-fortress": "state"
|
|
3019
|
-
},
|
|
3039
|
+
}, as = {
|
|
3020
3040
|
key: 0,
|
|
3021
3041
|
class: "glim-fortress-sub"
|
|
3022
|
-
},
|
|
3042
|
+
}, os = {
|
|
3023
3043
|
key: 3,
|
|
3024
3044
|
class: "glim-status-section",
|
|
3025
3045
|
"data-fortress": "needs"
|
|
3026
|
-
},
|
|
3046
|
+
}, ss = { class: "glim-status-heading" }, cs = { class: "glim-status-list" }, ls = {
|
|
3027
3047
|
key: 4,
|
|
3028
3048
|
class: "glim-status-section",
|
|
3029
3049
|
"data-fortress": "work"
|
|
3030
|
-
},
|
|
3050
|
+
}, us = { class: "glim-status-heading" }, ds = { class: "glim-status-list" }, fs = {
|
|
3031
3051
|
key: 5,
|
|
3032
3052
|
class: "glim-status-section",
|
|
3033
3053
|
"data-fortress": "next"
|
|
3034
|
-
},
|
|
3054
|
+
}, ps = { class: "glim-status-heading" }, ms = { class: "glim-status-list" }, hs = { class: "glim-status-at glim-num" }, gs = {
|
|
3035
3055
|
key: 6,
|
|
3036
3056
|
class: "glim-status-section",
|
|
3037
3057
|
"data-fortress": "log"
|
|
3038
|
-
},
|
|
3058
|
+
}, _s = { class: "glim-status-heading" }, vs = { class: "glim-status-list" }, ys = { class: "glim-status-at glim-num" }, bs = {
|
|
3039
3059
|
key: 7,
|
|
3040
3060
|
class: "glim-fortress-sub",
|
|
3041
3061
|
"data-fortress": "where"
|
|
3042
|
-
},
|
|
3062
|
+
}, xs = /* @__PURE__ */ j({
|
|
3043
3063
|
__name: "FortressStatusWindow",
|
|
3044
3064
|
props: {
|
|
3045
3065
|
app: {},
|
|
@@ -3053,7 +3073,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3053
3073
|
onClose: { type: Function }
|
|
3054
3074
|
},
|
|
3055
3075
|
setup(t) {
|
|
3056
|
-
let n = t, r = C(() =>
|
|
3076
|
+
let n = t, r = C(() => An({
|
|
3057
3077
|
app: n.app,
|
|
3058
3078
|
instance: n.instance,
|
|
3059
3079
|
report: n.report,
|
|
@@ -3067,7 +3087,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3067
3087
|
glyph: g,
|
|
3068
3088
|
wayOut: !0
|
|
3069
3089
|
}]), a = m("info");
|
|
3070
|
-
return (n, o) => (R(), w(
|
|
3090
|
+
return (n, o) => (R(), w(ta, {
|
|
3071
3091
|
"data-glim": "FortressStatusWindow",
|
|
3072
3092
|
lang: t.lang,
|
|
3073
3093
|
title: r.value.title,
|
|
@@ -3078,22 +3098,22 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3078
3098
|
},
|
|
3079
3099
|
onClose: o[0] ||= (e) => t.onClose()
|
|
3080
3100
|
}, {
|
|
3081
|
-
title: Y(() => [D("span",
|
|
3101
|
+
title: Y(() => [D("span", Qo, [t.app.logo ? (R(), E("img", {
|
|
3082
3102
|
key: 0,
|
|
3083
3103
|
src: t.app.logo,
|
|
3084
3104
|
alt: ""
|
|
3085
|
-
}, null, 8,
|
|
3086
|
-
default: Y(() => [D("div",
|
|
3087
|
-
r.value.loading ? (R(), E("p",
|
|
3105
|
+
}, null, 8, $o)) : T("", !0), k(W(r.value.title), 1)])]),
|
|
3106
|
+
default: Y(() => [D("div", es, [
|
|
3107
|
+
r.value.loading ? (R(), E("p", ts, [A(c, {
|
|
3088
3108
|
size: "small",
|
|
3089
3109
|
delay: 0
|
|
3090
|
-
}), D("span",
|
|
3091
|
-
r.value.error === void 0 ? T("", !0) : (R(), E("p",
|
|
3092
|
-
r.value.state ? (R(), E("p",
|
|
3110
|
+
}), D("span", ns, W(r.value.loading), 1)])) : T("", !0),
|
|
3111
|
+
r.value.error === void 0 ? T("", !0) : (R(), E("p", rs, [G(a) ? (R(), w(H(G(a)), { key: 0 })) : T("", !0), D("span", null, W(r.value.error), 1)])),
|
|
3112
|
+
r.value.state ? (R(), E("p", is, [A(e, { tone: r.value.state.tone }, {
|
|
3093
3113
|
default: Y(() => [k(W(r.value.state.label), 1)]),
|
|
3094
3114
|
_: 1
|
|
3095
|
-
}, 8, ["tone"]), r.value.quiet ? (R(), E("span",
|
|
3096
|
-
r.value.needsYou.length ? (R(), E("section",
|
|
3115
|
+
}, 8, ["tone"]), r.value.quiet ? (R(), E("span", as, W(r.value.quiet), 1)) : T("", !0)])) : T("", !0),
|
|
3116
|
+
r.value.needsYou.length ? (R(), E("section", os, [D("h3", ss, W(t.text.statusNeedsYou), 1), D("ul", cs, [(R(!0), E(S, null, B(r.value.needsYou, (t, n) => (R(), E("li", {
|
|
3097
3117
|
key: n,
|
|
3098
3118
|
class: "glim-status-line"
|
|
3099
3119
|
}, [
|
|
@@ -3107,26 +3127,26 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3107
3127
|
o[1] ||= k(),
|
|
3108
3128
|
D("span", null, W(t.text), 1)
|
|
3109
3129
|
]))), 128))])])) : T("", !0),
|
|
3110
|
-
r.value.work.length ? (R(), E("section",
|
|
3130
|
+
r.value.work.length ? (R(), E("section", ls, [D("h3", us, W(t.text.statusWork), 1), D("ul", ds, [(R(!0), E(S, null, B(r.value.work, (e, t) => (R(), E("li", {
|
|
3111
3131
|
key: t,
|
|
3112
3132
|
class: "glim-status-work"
|
|
3113
|
-
}, [D("span", null, W(e.title), 1), A(
|
|
3133
|
+
}, [D("span", null, W(e.title), 1), A(Zo, {
|
|
3114
3134
|
value: e.progress,
|
|
3115
3135
|
label: e.title
|
|
3116
3136
|
}, null, 8, ["value", "label"])]))), 128))])])) : T("", !0),
|
|
3117
|
-
r.value.next.length ? (R(), E("section",
|
|
3137
|
+
r.value.next.length ? (R(), E("section", fs, [D("h3", ps, W(t.text.statusNext), 1), D("ul", ms, [(R(!0), E(S, null, B(r.value.next, (e, t) => (R(), E("li", {
|
|
3118
3138
|
key: t,
|
|
3119
3139
|
class: "glim-status-line"
|
|
3120
3140
|
}, [
|
|
3121
3141
|
D("span", null, W(e.title), 1),
|
|
3122
3142
|
o[2] ||= k(),
|
|
3123
|
-
D("span",
|
|
3143
|
+
D("span", hs, W(e.at), 1)
|
|
3124
3144
|
]))), 128))])])) : T("", !0),
|
|
3125
|
-
r.value.log.length ? (R(), E("section",
|
|
3145
|
+
r.value.log.length ? (R(), E("section", gs, [D("h3", _s, W(t.text.statusLog), 1), D("ul", vs, [(R(!0), E(S, null, B(r.value.log, (t, n) => (R(), E("li", {
|
|
3126
3146
|
key: n,
|
|
3127
3147
|
class: "glim-status-line"
|
|
3128
3148
|
}, [
|
|
3129
|
-
D("span",
|
|
3149
|
+
D("span", ys, W(t.at), 1),
|
|
3130
3150
|
o[3] ||= k(),
|
|
3131
3151
|
t.level ? (R(), w(e, {
|
|
3132
3152
|
key: 0,
|
|
@@ -3138,7 +3158,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3138
3158
|
o[4] ||= k(),
|
|
3139
3159
|
D("span", null, W(t.text), 1)
|
|
3140
3160
|
]))), 128))])])) : T("", !0),
|
|
3141
|
-
r.value.where ? (R(), E("p",
|
|
3161
|
+
r.value.where ? (R(), E("p", bs, W(r.value.where), 1)) : T("", !0)
|
|
3142
3162
|
])]),
|
|
3143
3163
|
_: 1
|
|
3144
3164
|
}, 8, [
|
|
@@ -3148,10 +3168,10 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3148
3168
|
"text"
|
|
3149
3169
|
]));
|
|
3150
3170
|
}
|
|
3151
|
-
}),
|
|
3171
|
+
}), Ss = {
|
|
3152
3172
|
class: "glim-glyph-field-glyph",
|
|
3153
3173
|
"aria-hidden": "true"
|
|
3154
|
-
},
|
|
3174
|
+
}, Cs = ["aria-label"], ws = /* @__PURE__ */ j({
|
|
3155
3175
|
inheritAttrs: !1,
|
|
3156
3176
|
__name: "GlyphField",
|
|
3157
3177
|
props: /*@__PURE__*/ M({
|
|
@@ -3165,7 +3185,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3165
3185
|
}),
|
|
3166
3186
|
emits: ["update:modelValue"],
|
|
3167
3187
|
setup(e, { expose: t }) {
|
|
3168
|
-
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() =>
|
|
3188
|
+
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => ft(n.width)), o = U(null);
|
|
3169
3189
|
return t({ input: o }), (t, n) => (R(), E("label", {
|
|
3170
3190
|
"data-glim": "GlyphField",
|
|
3171
3191
|
class: P([
|
|
@@ -3177,7 +3197,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3177
3197
|
]),
|
|
3178
3198
|
style: F(t.$attrs.style)
|
|
3179
3199
|
}, [
|
|
3180
|
-
D("span",
|
|
3200
|
+
D("span", Ss, [(R(), w(H(e.glyph)))]),
|
|
3181
3201
|
Le(D("input", N({
|
|
3182
3202
|
ref_key: "input",
|
|
3183
3203
|
ref: o,
|
|
@@ -3188,11 +3208,11 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3188
3208
|
...t.$attrs,
|
|
3189
3209
|
class: void 0,
|
|
3190
3210
|
style: void 0
|
|
3191
|
-
}, { class: "glim-glyph-field-input" }), null, 16,
|
|
3211
|
+
}, { class: "glim-glyph-field-input" }), null, 16, Cs), [[Pe, r.value]]),
|
|
3192
3212
|
V(t.$slots, "after")
|
|
3193
3213
|
], 6));
|
|
3194
3214
|
}
|
|
3195
|
-
}),
|
|
3215
|
+
}), Ts = /* @__PURE__ */ j({
|
|
3196
3216
|
__name: "GlyphTile",
|
|
3197
3217
|
props: {
|
|
3198
3218
|
glyph: {},
|
|
@@ -3211,17 +3231,17 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3211
3231
|
"aria-hidden": "true"
|
|
3212
3232
|
}, [(R(), w(H(e.glyph)))], 2));
|
|
3213
3233
|
}
|
|
3214
|
-
}),
|
|
3234
|
+
}), Es = [
|
|
3215
3235
|
"aria-label",
|
|
3216
3236
|
"tabindex",
|
|
3217
3237
|
"onKeydown"
|
|
3218
|
-
],
|
|
3238
|
+
], Ds = {
|
|
3219
3239
|
key: 0,
|
|
3220
3240
|
class: "glim-list-row-tile"
|
|
3221
|
-
},
|
|
3241
|
+
}, Os = { class: "glim-list-row-title" }, ks = {
|
|
3222
3242
|
key: 1,
|
|
3223
3243
|
class: "glim-list-row-badges"
|
|
3224
|
-
},
|
|
3244
|
+
}, As = /* @__PURE__ */ j({
|
|
3225
3245
|
__name: "ListRow",
|
|
3226
3246
|
props: {
|
|
3227
3247
|
name: {},
|
|
@@ -3241,21 +3261,21 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3241
3261
|
class: P(["glim-list-row", { "glim-list-row--opens": r.value }]),
|
|
3242
3262
|
onKeydown: [Re(X(a, ["self"]), ["enter"]), Re(X(a, ["self"]), ["space"])]
|
|
3243
3263
|
}, [
|
|
3244
|
-
t.$slots.tile ? (R(), E("span",
|
|
3245
|
-
D("span", { class: P(i.value) }, [D("span",
|
|
3264
|
+
t.$slots.tile ? (R(), E("span", Ds, [V(t.$slots, "tile")])) : T("", !0),
|
|
3265
|
+
D("span", { class: P(i.value) }, [D("span", Os, W(e.name), 1), e.tip ? (R(), E("span", {
|
|
3246
3266
|
key: 0,
|
|
3247
3267
|
class: "glim-list-row-tip",
|
|
3248
3268
|
onClick: n[0] ||= X(() => {}, ["stop"])
|
|
3249
3269
|
}, [A(Q, { tip: e.tip }, null, 8, ["tip"])])) : T("", !0)], 2),
|
|
3250
|
-
t.$slots.badges ? (R(), E("span",
|
|
3270
|
+
t.$slots.badges ? (R(), E("span", ks, [V(t.$slots, "badges")])) : T("", !0),
|
|
3251
3271
|
t.$slots.actions ? (R(), E("span", {
|
|
3252
3272
|
key: 2,
|
|
3253
3273
|
class: "glim-list-row-actions",
|
|
3254
3274
|
onClick: n[1] ||= X(() => {}, ["stop"])
|
|
3255
3275
|
}, [V(t.$slots, "actions")])) : T("", !0)
|
|
3256
|
-
], 42,
|
|
3276
|
+
], 42, Es));
|
|
3257
3277
|
}
|
|
3258
|
-
}),
|
|
3278
|
+
}), js = ["aria-label"], Ms = /* @__PURE__ */ j({
|
|
3259
3279
|
__name: "Popover",
|
|
3260
3280
|
props: {
|
|
3261
3281
|
open: { type: Boolean },
|
|
@@ -3264,13 +3284,13 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3264
3284
|
},
|
|
3265
3285
|
emits: ["close"],
|
|
3266
3286
|
setup(e, { emit: t }) {
|
|
3267
|
-
let n = e, r = t, i = z(null), a =
|
|
3287
|
+
let n = e, r = t, i = z(null), a = Ye(K() ?? "popover"), o;
|
|
3268
3288
|
return J([
|
|
3269
3289
|
() => n.open,
|
|
3270
3290
|
() => n.anchor,
|
|
3271
3291
|
i
|
|
3272
3292
|
], ([e, t, n]) => {
|
|
3273
|
-
o?.(), o = void 0, e && t && n && (o =
|
|
3293
|
+
o?.(), o = void 0, e && t && n && (o = Kt(n, t, a, () => r("close")));
|
|
3274
3294
|
}, { flush: "post" }), I(() => o?.()), (t, n) => e.open ? (R(), E("div", {
|
|
3275
3295
|
key: 0,
|
|
3276
3296
|
"data-glim": "Popover",
|
|
@@ -3280,24 +3300,24 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3280
3300
|
role: "dialog",
|
|
3281
3301
|
"aria-label": e.label,
|
|
3282
3302
|
class: "glim-popover"
|
|
3283
|
-
}, [V(t.$slots, "default")], 8,
|
|
3303
|
+
}, [V(t.$slots, "default")], 8, js)) : T("", !0);
|
|
3284
3304
|
}
|
|
3285
|
-
}),
|
|
3305
|
+
}), Ns = {
|
|
3286
3306
|
"data-glim": "ListTable",
|
|
3287
3307
|
class: "glim-list"
|
|
3288
|
-
},
|
|
3308
|
+
}, Ps = ["aria-label", "onKeydown"], Fs = ["aria-label", "aria-describedby"], Is = ["aria-sort"], Ls = { class: "glim-list-th-box" }, Rs = ["onClick"], zs = [
|
|
3289
3309
|
"aria-label",
|
|
3290
3310
|
"aria-expanded",
|
|
3291
3311
|
"aria-pressed",
|
|
3292
3312
|
"onClick"
|
|
3293
|
-
],
|
|
3313
|
+
], Bs = [
|
|
3294
3314
|
"aria-selected",
|
|
3295
3315
|
"onClick",
|
|
3296
3316
|
"onDblclick"
|
|
3297
|
-
],
|
|
3317
|
+
], Vs = ["tabindex"], Hs = {
|
|
3298
3318
|
key: 1,
|
|
3299
3319
|
class: "glim-list-empty"
|
|
3300
|
-
},
|
|
3320
|
+
}, Us = ["id"], Ws = { class: "glim-list-filter-values" }, Gs = /* @__PURE__ */ j({
|
|
3301
3321
|
__name: "ListTable",
|
|
3302
3322
|
props: {
|
|
3303
3323
|
label: {},
|
|
@@ -3313,7 +3333,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3313
3333
|
keys: [],
|
|
3314
3334
|
anchor: null,
|
|
3315
3335
|
focus: null
|
|
3316
|
-
}), c = z(null), l = z(null), u = z(null), d = K(), f = C(() =>
|
|
3336
|
+
}), c = z(null), l = z(null), u = z(null), d = K(), f = C(() => kt(n.rows, {
|
|
3317
3337
|
sort: i.value,
|
|
3318
3338
|
filters: a.value,
|
|
3319
3339
|
query: o.value ?? "",
|
|
@@ -3338,14 +3358,14 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3338
3358
|
}, r("select", e.selected.map((e) => f.value[e])), h();
|
|
3339
3359
|
}
|
|
3340
3360
|
function ee(e) {
|
|
3341
|
-
let t =
|
|
3361
|
+
let t = Dt(m.value, e.key, {
|
|
3342
3362
|
toggle: e.ctrlKey || e.metaKey,
|
|
3343
3363
|
range: e.shiftKey
|
|
3344
3364
|
}, f.value.length);
|
|
3345
3365
|
t && !e.altKey && (e.preventDefault(), "open" in t ? r("open", f.value[t.open]) : "search" in t ? (o.value = (o.value ?? "") + t.search, we(() => u.value?.focus())) : g(t.select));
|
|
3346
3366
|
}
|
|
3347
3367
|
function _(e, t) {
|
|
3348
|
-
g(
|
|
3368
|
+
g(gn(m.value, t, {
|
|
3349
3369
|
toggle: e.ctrlKey || e.metaKey,
|
|
3350
3370
|
range: e.shiftKey
|
|
3351
3371
|
}));
|
|
@@ -3368,7 +3388,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3368
3388
|
};
|
|
3369
3389
|
}
|
|
3370
3390
|
let ie = (e, t) => String(e[t] ?? "");
|
|
3371
|
-
return (t, n) => (R(), E("div",
|
|
3391
|
+
return (t, n) => (R(), E("div", Ns, [
|
|
3372
3392
|
o.value === null ? T("", !0) : Le((R(), E("input", {
|
|
3373
3393
|
key: 0,
|
|
3374
3394
|
ref_key: "searchField",
|
|
@@ -3378,7 +3398,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3378
3398
|
type: "search",
|
|
3379
3399
|
"aria-label": e.text.search,
|
|
3380
3400
|
onKeydown: Re(X(te, ["prevent", "stop"]), ["esc"])
|
|
3381
|
-
}, null, 40,
|
|
3401
|
+
}, null, 40, Ps)), [[Pe, o.value]]),
|
|
3382
3402
|
D("table", {
|
|
3383
3403
|
ref_key: "grid",
|
|
3384
3404
|
ref: l,
|
|
@@ -3390,17 +3410,17 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3390
3410
|
}, [D("thead", null, [D("tr", null, [(R(!0), E(S, null, B(e.columns, (t) => (R(), E("th", {
|
|
3391
3411
|
key: t.key,
|
|
3392
3412
|
scope: "col",
|
|
3393
|
-
"aria-sort": G(
|
|
3413
|
+
"aria-sort": G(Qe)(i.value, t.key),
|
|
3394
3414
|
class: P(t.end ? "glim-list-th glim-table-end" : "glim-list-th")
|
|
3395
|
-
}, [D("span",
|
|
3415
|
+
}, [D("span", Ls, [D("button", {
|
|
3396
3416
|
type: "button",
|
|
3397
3417
|
class: "glim-list-sort",
|
|
3398
|
-
onClick: (e) => i.value = G(
|
|
3418
|
+
onClick: (e) => i.value = G(Bt)(i.value, t.key)
|
|
3399
3419
|
}, [k(W(t.label) + " ", 1), i.value?.key === t.key ? (R(), w(G(b), {
|
|
3400
3420
|
key: 0,
|
|
3401
|
-
mark: G(
|
|
3421
|
+
mark: G(Ge).expand,
|
|
3402
3422
|
class: P(`glim-list-sort-mark glim-list-sort-mark--${i.value.dir}`)
|
|
3403
|
-
}, null, 8, ["mark", "class"])) : T("", !0)], 8,
|
|
3423
|
+
}, null, 8, ["mark", "class"])) : T("", !0)], 8, Rs), t.filter ? (R(), E("button", {
|
|
3404
3424
|
key: 0,
|
|
3405
3425
|
type: "button",
|
|
3406
3426
|
"aria-label": e.text.filterOf(t.label),
|
|
@@ -3409,7 +3429,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3409
3429
|
"aria-pressed": ne(t.key).length > 0,
|
|
3410
3430
|
class: "glim-list-filter",
|
|
3411
3431
|
onClick: (e) => y(t.key, e.currentTarget)
|
|
3412
|
-
}, [A(G(b), { mark: G(
|
|
3432
|
+
}, [A(G(b), { mark: G(Ge).expand }, null, 8, ["mark"])], 8, zs)) : T("", !0)])], 10, Is))), 128))])]), D("tbody", { onKeydown: ee }, [(R(!0), E(S, null, B(f.value, (n, i) => (R(), E("tr", {
|
|
3413
3433
|
key: p.value[i],
|
|
3414
3434
|
"aria-selected": m.value.selected.includes(i),
|
|
3415
3435
|
class: "glim-list-tr",
|
|
@@ -3418,24 +3438,24 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3418
3438
|
}, [(R(!0), E(S, null, B(e.columns, (e, r) => (R(), E("td", {
|
|
3419
3439
|
key: e.key,
|
|
3420
3440
|
tabindex: r === 0 ? i === m.value.focus ? 0 : -1 : void 0,
|
|
3421
|
-
class: P(G(
|
|
3441
|
+
class: P(G(Fn)(e) || void 0)
|
|
3422
3442
|
}, [V(t.$slots, "cell", {
|
|
3423
3443
|
row: n,
|
|
3424
3444
|
column: e
|
|
3425
|
-
}, () => [k(W(ie(n, e.key)), 1)])], 10,
|
|
3426
|
-
f.value.length === 0 ? (R(), E("p",
|
|
3445
|
+
}, () => [k(W(ie(n, e.key)), 1)])], 10, Vs))), 128))], 40, Bs))), 128))], 32)], 8, Fs),
|
|
3446
|
+
f.value.length === 0 ? (R(), E("p", Hs, W(e.text.noMatch), 1)) : T("", !0),
|
|
3427
3447
|
D("p", {
|
|
3428
3448
|
id: G(d),
|
|
3429
3449
|
class: "glim-list-hint"
|
|
3430
|
-
}, W(e.text.hint), 9,
|
|
3431
|
-
v.value ? (R(), w(
|
|
3450
|
+
}, W(e.text.hint), 9, Us),
|
|
3451
|
+
v.value ? (R(), w(Ms, {
|
|
3432
3452
|
key: 2,
|
|
3433
3453
|
open: !0,
|
|
3434
3454
|
anchor: c.value.at,
|
|
3435
3455
|
label: e.text.filterOf(v.value.label),
|
|
3436
3456
|
onClose: n[1] ||= (e) => c.value = null
|
|
3437
3457
|
}, {
|
|
3438
|
-
default: Y(() => [D("div",
|
|
3458
|
+
default: Y(() => [D("div", Ws, [(R(!0), E(S, null, B(G(rt)(e.rows, v.value.key), (e) => (R(), w(Ar, {
|
|
3439
3459
|
key: e,
|
|
3440
3460
|
label: e,
|
|
3441
3461
|
"model-value": ne(v.value.key).includes(e),
|
|
@@ -3449,14 +3469,14 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3449
3469
|
}, 8, ["anchor", "label"])) : T("", !0)
|
|
3450
3470
|
]));
|
|
3451
3471
|
}
|
|
3452
|
-
}),
|
|
3472
|
+
}), Ks = ["aria-label"], qs = [
|
|
3453
3473
|
"aria-expanded",
|
|
3454
3474
|
"tabindex",
|
|
3455
3475
|
"onClick",
|
|
3456
3476
|
"onMouseenter",
|
|
3457
3477
|
"onKeydown",
|
|
3458
3478
|
"onFocus"
|
|
3459
|
-
],
|
|
3479
|
+
], Js = /* @__PURE__ */ j({
|
|
3460
3480
|
__name: "MenuBar",
|
|
3461
3481
|
props: {
|
|
3462
3482
|
label: {},
|
|
@@ -3510,7 +3530,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3510
3530
|
onMouseenter: (e) => i.value && i.value.at !== t && o(t),
|
|
3511
3531
|
onKeydown: (e) => l(e, t),
|
|
3512
3532
|
onFocus: (e) => a.value = t
|
|
3513
|
-
}, W(e.label), 41,
|
|
3533
|
+
}, W(e.label), 41, qs))), 128)), i.value && e.menus[i.value.at] ? (R(), w(mi, {
|
|
3514
3534
|
key: i.value.at,
|
|
3515
3535
|
x: i.value.x,
|
|
3516
3536
|
y: i.value.y,
|
|
@@ -3529,9 +3549,9 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3529
3549
|
"id",
|
|
3530
3550
|
"opener",
|
|
3531
3551
|
"from-end"
|
|
3532
|
-
])) : T("", !0)], 8,
|
|
3552
|
+
])) : T("", !0)], 8, Ks));
|
|
3533
3553
|
}
|
|
3534
|
-
}),
|
|
3554
|
+
}), Ys = [
|
|
3535
3555
|
"role",
|
|
3536
3556
|
"aria-label",
|
|
3537
3557
|
"aria-valuemin",
|
|
@@ -3539,7 +3559,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3539
3559
|
"aria-valuenow",
|
|
3540
3560
|
"aria-valuetext",
|
|
3541
3561
|
"aria-busy"
|
|
3542
|
-
],
|
|
3562
|
+
], Xs = /* @__PURE__ */ j({
|
|
3543
3563
|
inheritAttrs: !1,
|
|
3544
3564
|
__name: "Meter",
|
|
3545
3565
|
props: {
|
|
@@ -3554,7 +3574,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3554
3574
|
valueText: {}
|
|
3555
3575
|
},
|
|
3556
3576
|
setup(e) {
|
|
3557
|
-
let r = e, i = C(() =>
|
|
3577
|
+
let r = e, i = C(() => Rt(r.value, {
|
|
3558
3578
|
size: r.size,
|
|
3559
3579
|
threshold: r.threshold,
|
|
3560
3580
|
quiet: r.quiet
|
|
@@ -3574,16 +3594,16 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3574
3594
|
}), [D("span", {
|
|
3575
3595
|
class: "glim-meter-fill",
|
|
3576
3596
|
style: F(i.value.width ? { width: i.value.width } : void 0)
|
|
3577
|
-
}, null, 4)], 16,
|
|
3597
|
+
}, null, 4)], 16, Ys), A(t, { state: G(o) }, null, 8, ["state"])], 64));
|
|
3578
3598
|
}
|
|
3579
|
-
}),
|
|
3599
|
+
}), Zs = {
|
|
3580
3600
|
"data-glim": "NumberField",
|
|
3581
3601
|
class: "glim-num-wrap"
|
|
3582
|
-
},
|
|
3602
|
+
}, Qs = [
|
|
3583
3603
|
"aria-label",
|
|
3584
3604
|
"aria-invalid",
|
|
3585
3605
|
"aria-describedby"
|
|
3586
|
-
],
|
|
3606
|
+
], $s = /* @__PURE__ */ j({
|
|
3587
3607
|
inheritAttrs: !1,
|
|
3588
3608
|
__name: "NumberField",
|
|
3589
3609
|
props: /*@__PURE__*/ M({ error: {} }, {
|
|
@@ -3592,9 +3612,9 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3592
3612
|
}),
|
|
3593
3613
|
emits: ["update:modelValue"],
|
|
3594
3614
|
setup(e) {
|
|
3595
|
-
let t = e, n = q(e, "modelValue"), r = je(), i = x(() => r["aria-label"]), a = K(), o = C(() =>
|
|
3615
|
+
let t = e, n = q(e, "modelValue"), r = je(), i = x(() => r["aria-label"]), a = K(), o = C(() => dt(t.error, r.id ?? a, r["aria-describedby"])), s = U(null), c;
|
|
3596
3616
|
L(() => {
|
|
3597
|
-
l(n.value), c =
|
|
3617
|
+
l(n.value), c = $e(s.value);
|
|
3598
3618
|
}), I(() => c?.());
|
|
3599
3619
|
function l(e) {
|
|
3600
3620
|
let t = s.value;
|
|
@@ -3608,13 +3628,13 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3608
3628
|
() => r.disabled,
|
|
3609
3629
|
() => r.readonly
|
|
3610
3630
|
], () => {
|
|
3611
|
-
l(n.value), s.value &&
|
|
3631
|
+
l(n.value), s.value && Pn(s.value);
|
|
3612
3632
|
}, { flush: "post" });
|
|
3613
3633
|
function u(e) {
|
|
3614
3634
|
let t = e.target;
|
|
3615
3635
|
n.value = t.value === "" ? null : t.valueAsNumber;
|
|
3616
3636
|
}
|
|
3617
|
-
return (t, n) => (R(), E(S, null, [D("span",
|
|
3637
|
+
return (t, n) => (R(), E(S, null, [D("span", Zs, [D("input", N(t.$attrs, {
|
|
3618
3638
|
ref_key: "input",
|
|
3619
3639
|
ref: s,
|
|
3620
3640
|
"aria-label": G(i),
|
|
@@ -3623,7 +3643,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3623
3643
|
type: "number",
|
|
3624
3644
|
class: "glim-num-input glim-num-field glim-num",
|
|
3625
3645
|
onInput: u
|
|
3626
|
-
}), null, 16,
|
|
3646
|
+
}), null, 16, Qs)]), o.value.errorId ? (R(), w(Ui, {
|
|
3627
3647
|
key: 0,
|
|
3628
3648
|
id: o.value.errorId
|
|
3629
3649
|
}, {
|
|
@@ -3631,7 +3651,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3631
3651
|
_: 1
|
|
3632
3652
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
3633
3653
|
}
|
|
3634
|
-
}),
|
|
3654
|
+
}), ec = ["aria-label", "disabled"], tc = /* @__PURE__ */ j({
|
|
3635
3655
|
inheritAttrs: !1,
|
|
3636
3656
|
__name: "PathField",
|
|
3637
3657
|
props: /*@__PURE__*/ M({
|
|
@@ -3654,7 +3674,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3654
3674
|
setup(e, { expose: t, emit: n }) {
|
|
3655
3675
|
let r = e, i = q(e, "modelValue"), a = n, o = x(() => r.label), s = U(null);
|
|
3656
3676
|
t({ input: s });
|
|
3657
|
-
let c = U(null), l = z(!1), u = new ResizeObserver(([e]) => l.value = e.contentRect.width <
|
|
3677
|
+
let c = U(null), l = z(!1), u = new ResizeObserver(([e]) => l.value = e.contentRect.width < Ke);
|
|
3658
3678
|
L(() => u.observe(c.value)), I(() => u.disconnect());
|
|
3659
3679
|
async function d() {
|
|
3660
3680
|
let e = await r.pick(i.value);
|
|
@@ -3666,7 +3686,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3666
3686
|
"data-glim": "PathField",
|
|
3667
3687
|
class: P([
|
|
3668
3688
|
"glim-path",
|
|
3669
|
-
G(
|
|
3689
|
+
G(ft)(e.width),
|
|
3670
3690
|
t.$attrs.class
|
|
3671
3691
|
]),
|
|
3672
3692
|
style: F(t.$attrs.style)
|
|
@@ -3685,7 +3705,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3685
3705
|
}, {
|
|
3686
3706
|
disabled: e.disabled,
|
|
3687
3707
|
class: "glim-input glim-input--mono"
|
|
3688
|
-
}), null, 16,
|
|
3708
|
+
}), null, 16, ec), [[Pe, i.value]]), A(f, N(e.buttonAttrs, {
|
|
3689
3709
|
variant: "icon",
|
|
3690
3710
|
label: e.text.pick,
|
|
3691
3711
|
"label-key": null,
|
|
@@ -3700,27 +3720,27 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3700
3720
|
"disabled"
|
|
3701
3721
|
])], 6));
|
|
3702
3722
|
}
|
|
3703
|
-
}),
|
|
3723
|
+
}), nc = ["data-glim-title"], rc = { class: "glim-modal-head" }, ic = {
|
|
3704
3724
|
id: "paypal-window-title",
|
|
3705
3725
|
class: "glim-modal-title"
|
|
3706
|
-
},
|
|
3726
|
+
}, ac = { class: "glim-give-body glim-give-body--scroll" }, oc = { class: "glim-give-appeal" }, sc = { class: "glim-give-intro" }, cc = { class: "glim-give-group" }, lc = {
|
|
3707
3727
|
id: "paypal-frequency",
|
|
3708
3728
|
class: "glim-eyebrow"
|
|
3709
|
-
},
|
|
3729
|
+
}, uc = { class: "glim-give-group" }, dc = {
|
|
3710
3730
|
id: "paypal-amount",
|
|
3711
3731
|
class: "glim-eyebrow"
|
|
3712
|
-
},
|
|
3732
|
+
}, fc = { class: "glim-give-amounts" }, pc = [
|
|
3713
3733
|
"value",
|
|
3714
3734
|
"placeholder",
|
|
3715
3735
|
"aria-label",
|
|
3716
3736
|
"aria-invalid"
|
|
3717
|
-
],
|
|
3737
|
+
], mc = { class: "glim-give-loading" }, hc = {
|
|
3718
3738
|
key: 0,
|
|
3719
3739
|
class: "glim-give-status glim-give-status--ok"
|
|
3720
|
-
},
|
|
3740
|
+
}, gc = {
|
|
3721
3741
|
key: 1,
|
|
3722
3742
|
class: "glim-give-status glim-give-status--fail"
|
|
3723
|
-
},
|
|
3743
|
+
}, _c = { class: "glim-give-foot" }, vc = /* @__PURE__ */ j({
|
|
3724
3744
|
__name: "PaypalDialog",
|
|
3725
3745
|
props: {
|
|
3726
3746
|
text: {},
|
|
@@ -3761,7 +3781,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3761
3781
|
"aria-labelledby": "paypal-window-title",
|
|
3762
3782
|
class: "glim-modal-card glim-modal-card--wide"
|
|
3763
3783
|
}, [
|
|
3764
|
-
D("div",
|
|
3784
|
+
D("div", rc, [D("h2", ic, [A(e, {
|
|
3765
3785
|
tone: "heading",
|
|
3766
3786
|
size: "heading",
|
|
3767
3787
|
wrap: ""
|
|
@@ -3769,10 +3789,10 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3769
3789
|
default: Y(() => [k(W(t.text.title), 1)]),
|
|
3770
3790
|
_: 1
|
|
3771
3791
|
})])]),
|
|
3772
|
-
D("div",
|
|
3773
|
-
D("p",
|
|
3774
|
-
D("p",
|
|
3775
|
-
D("div",
|
|
3792
|
+
D("div", ac, [
|
|
3793
|
+
D("p", oc, W(t.text.appeal), 1),
|
|
3794
|
+
D("p", sc, W(t.text.intro), 1),
|
|
3795
|
+
D("div", cc, [D("span", lc, W(t.text.frequencyLabel), 1), V(n.$slots, "selector", {
|
|
3776
3796
|
labelledBy: "paypal-frequency",
|
|
3777
3797
|
options: a.map((e) => ({
|
|
3778
3798
|
value: e,
|
|
@@ -3781,7 +3801,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3781
3801
|
value: t.frequency,
|
|
3782
3802
|
onChange: s
|
|
3783
3803
|
})]),
|
|
3784
|
-
D("div",
|
|
3804
|
+
D("div", uc, [D("span", dc, W(t.text.amountLabel), 1), D("div", fc, [D("div", null, [V(n.$slots, "selector", {
|
|
3785
3805
|
labelledBy: "paypal-amount",
|
|
3786
3806
|
options: t.amounts.map((e) => ({
|
|
3787
3807
|
value: e,
|
|
@@ -3798,23 +3818,23 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3798
3818
|
"aria-invalid": t.typed !== "" && !t.typedValid,
|
|
3799
3819
|
class: P(t.typedValid ? "glim-give-amount glim-give-amount--valid" : "glim-give-amount"),
|
|
3800
3820
|
onInput: l
|
|
3801
|
-
}, null, 42,
|
|
3821
|
+
}, null, 42, pc)])]),
|
|
3802
3822
|
D("div", {
|
|
3803
3823
|
ref: t.buttonsRef,
|
|
3804
3824
|
class: "glim-give-wallet"
|
|
3805
|
-
}, [D("p",
|
|
3806
|
-
t.status === "done" ? (R(), E("p",
|
|
3807
|
-
t.status === "failed" ? (R(), E("p",
|
|
3825
|
+
}, [D("p", mc, W(t.text.loading), 1)], 512),
|
|
3826
|
+
t.status === "done" ? (R(), E("p", hc, W(t.text.thanks), 1)) : T("", !0),
|
|
3827
|
+
t.status === "failed" ? (R(), E("p", gc, W(t.text.failed), 1)) : T("", !0)
|
|
3808
3828
|
]),
|
|
3809
|
-
D("div",
|
|
3829
|
+
D("div", _c, [A(f, {
|
|
3810
3830
|
label: t.text.closeLabel,
|
|
3811
3831
|
"label-key": "common.close",
|
|
3812
3832
|
tone: "neutral",
|
|
3813
3833
|
onClick: r[0] ||= (e) => i("close")
|
|
3814
3834
|
}, null, 8, ["label"])])
|
|
3815
|
-
], 8,
|
|
3835
|
+
], 8, nc)]));
|
|
3816
3836
|
}
|
|
3817
|
-
}),
|
|
3837
|
+
}), yc = /* @__PURE__ */ j({
|
|
3818
3838
|
__name: "RowMark",
|
|
3819
3839
|
props: { on: { type: Boolean } },
|
|
3820
3840
|
setup(e) {
|
|
@@ -3824,7 +3844,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3824
3844
|
"aria-hidden": "true"
|
|
3825
3845
|
}, [A(G(y))], 2));
|
|
3826
3846
|
}
|
|
3827
|
-
}),
|
|
3847
|
+
}), bc = { class: "glim-sr-only" }, xc = /* @__PURE__ */ j({
|
|
3828
3848
|
inheritAttrs: !1,
|
|
3829
3849
|
__name: "SidebarRowLink",
|
|
3830
3850
|
props: {
|
|
@@ -3859,7 +3879,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3859
3879
|
e.view.countClass && e.count ? (R(), E(S, { key: 1 }, [D("span", {
|
|
3860
3880
|
class: P(e.view.countClass),
|
|
3861
3881
|
"aria-hidden": "true"
|
|
3862
|
-
}, W(e.count.value), 3), D("span",
|
|
3882
|
+
}, W(e.count.value), 3), D("span", bc, W(e.count.label), 1)], 64)) : T("", !0)
|
|
3863
3883
|
]),
|
|
3864
3884
|
_: 1
|
|
3865
3885
|
}, 16, [
|
|
@@ -3874,13 +3894,13 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3874
3894
|
"onBlur"
|
|
3875
3895
|
])), A(t, { state: G(i) }, null, 8, ["state"])], 64));
|
|
3876
3896
|
}
|
|
3877
|
-
}),
|
|
3897
|
+
}), Sc = {
|
|
3878
3898
|
key: 0,
|
|
3879
3899
|
class: "glim-nav-row-slot"
|
|
3880
|
-
},
|
|
3900
|
+
}, Cc = {
|
|
3881
3901
|
key: 1,
|
|
3882
3902
|
class: "glim-nav-row-slot"
|
|
3883
|
-
},
|
|
3903
|
+
}, wc = /* @__PURE__ */ j({
|
|
3884
3904
|
inheritAttrs: !1,
|
|
3885
3905
|
__name: "SidebarRow",
|
|
3886
3906
|
props: {
|
|
@@ -3896,7 +3916,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3896
3916
|
depth: {}
|
|
3897
3917
|
},
|
|
3898
3918
|
setup(e) {
|
|
3899
|
-
let t = e, n = l("sidebar"), r = Me(), i = C(() =>
|
|
3919
|
+
let t = e, n = l("sidebar"), r = Me(), i = C(() => wn({
|
|
3900
3920
|
mode: n.value,
|
|
3901
3921
|
label: t.label,
|
|
3902
3922
|
hasGlyph: !!t.glyph,
|
|
@@ -3923,15 +3943,15 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3923
3943
|
]),
|
|
3924
3944
|
style: F([i.value.style, e.$attrs.style])
|
|
3925
3945
|
}, [
|
|
3926
|
-
e.$slots.before ? (R(), E("span",
|
|
3927
|
-
A(
|
|
3946
|
+
e.$slots.before ? (R(), E("span", Sc, [V(e.$slots, "before")])) : T("", !0),
|
|
3947
|
+
A(xc, N({
|
|
3928
3948
|
...e.$attrs,
|
|
3929
3949
|
...a.value,
|
|
3930
3950
|
class: void 0,
|
|
3931
3951
|
style: void 0
|
|
3932
3952
|
}, { "class-name": "glim-nav-row-main" }), null, 16),
|
|
3933
|
-
e.$slots.after ? (R(), E("span",
|
|
3934
|
-
], 6)) : (R(), w(
|
|
3953
|
+
e.$slots.after ? (R(), E("span", Cc, [V(e.$slots, "after")])) : T("", !0)
|
|
3954
|
+
], 6)) : (R(), w(xc, N({
|
|
3935
3955
|
key: 1,
|
|
3936
3956
|
"data-glim": "SidebarRow"
|
|
3937
3957
|
}, {
|
|
@@ -3948,7 +3968,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3948
3968
|
"style"
|
|
3949
3969
|
]));
|
|
3950
3970
|
}
|
|
3951
|
-
}),
|
|
3971
|
+
}), Tc = ["data-glim-title", "aria-labelledby"], Ec = { class: "glim-sheet-panel" }, Dc = ["id"], Oc = { class: "glim-sheet-body" }, kc = /* @__PURE__ */ j({
|
|
3952
3972
|
__name: "Sheet",
|
|
3953
3973
|
props: {
|
|
3954
3974
|
open: { type: Boolean },
|
|
@@ -3961,7 +3981,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3961
3981
|
setup(t, { emit: n }) {
|
|
3962
3982
|
let r = t, i = n, a = Me(), o = z(null), s = K(), c = C(() => r.start !== void 0 || !!a.start), l;
|
|
3963
3983
|
return J([() => r.open, o], ([e, t]) => {
|
|
3964
|
-
l?.(), l = void 0, e && t && (l =
|
|
3984
|
+
l?.(), l = void 0, e && t && (l = qt(t, () => i("close")));
|
|
3965
3985
|
}, { flush: "post" }), I(() => l?.()), (n, r) => t.open ? (R(), E("dialog", {
|
|
3966
3986
|
key: 0,
|
|
3967
3987
|
"data-glim": "Sheet",
|
|
@@ -3970,7 +3990,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3970
3990
|
ref: o,
|
|
3971
3991
|
"aria-labelledby": G(s),
|
|
3972
3992
|
class: "glim-sheet"
|
|
3973
|
-
}, [D("div",
|
|
3993
|
+
}, [D("div", Ec, [
|
|
3974
3994
|
D("h2", {
|
|
3975
3995
|
id: G(s),
|
|
3976
3996
|
class: "glim-sheet-title"
|
|
@@ -3982,9 +4002,9 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
3982
4002
|
}, {
|
|
3983
4003
|
default: Y(() => [k(W(t.title), 1)]),
|
|
3984
4004
|
_: 1
|
|
3985
|
-
})], 8,
|
|
3986
|
-
D("div",
|
|
3987
|
-
A(
|
|
4005
|
+
})], 8, Dc),
|
|
4006
|
+
D("div", Oc, [V(n.$slots, "default")]),
|
|
4007
|
+
A(Zi, {
|
|
3988
4008
|
actions: t.actions,
|
|
3989
4009
|
start: t.start,
|
|
3990
4010
|
"has-start": c.value,
|
|
@@ -4000,12 +4020,12 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4000
4020
|
"has-start",
|
|
4001
4021
|
"text"
|
|
4002
4022
|
])
|
|
4003
|
-
])], 8,
|
|
4023
|
+
])], 8, Tc)) : T("", !0);
|
|
4004
4024
|
}
|
|
4005
|
-
}),
|
|
4025
|
+
}), Ac = {
|
|
4006
4026
|
"data-glim": "SignInField",
|
|
4007
4027
|
class: "glim-signin-field"
|
|
4008
|
-
},
|
|
4028
|
+
}, jc = ["for"], Mc = /* @__PURE__ */ j({
|
|
4009
4029
|
__name: "SignInField",
|
|
4010
4030
|
props: {
|
|
4011
4031
|
label: {},
|
|
@@ -4014,21 +4034,21 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4014
4034
|
},
|
|
4015
4035
|
setup(e) {
|
|
4016
4036
|
let t = e, n = z(!1), r = (e) => {
|
|
4017
|
-
n.value =
|
|
4037
|
+
n.value = Et(document.getElementById(t.for), t.label, t.hint, e);
|
|
4018
4038
|
};
|
|
4019
|
-
return L(() => r()), J(() => [t.label, t.hint], (e, [t]) => r(t)), (t, r) => (R(), E("div",
|
|
4039
|
+
return L(() => r()), J(() => [t.label, t.hint], (e, [t]) => r(t)), (t, r) => (R(), E("div", Ac, [D("label", {
|
|
4020
4040
|
for: t.$props.for,
|
|
4021
4041
|
class: P(n.value ? "glim-sr-only" : "glim-signin-label")
|
|
4022
4042
|
}, [k(W(e.label), 1), e.hint ? (R(), w(Q, {
|
|
4023
4043
|
key: 0,
|
|
4024
4044
|
tip: e.hint
|
|
4025
|
-
}, null, 8, ["tip"])) : T("", !0)], 10,
|
|
4045
|
+
}, null, 8, ["tip"])) : T("", !0)], 10, jc), V(t.$slots, "default")]));
|
|
4026
4046
|
}
|
|
4027
|
-
}),
|
|
4047
|
+
}), Nc = [
|
|
4028
4048
|
"aria-label",
|
|
4029
4049
|
"aria-invalid",
|
|
4030
4050
|
"aria-describedby"
|
|
4031
|
-
],
|
|
4051
|
+
], Pc = /* @__PURE__ */ j({
|
|
4032
4052
|
inheritAttrs: !1,
|
|
4033
4053
|
__name: "TextField",
|
|
4034
4054
|
props: /*@__PURE__*/ M({
|
|
@@ -4042,10 +4062,10 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4042
4062
|
}),
|
|
4043
4063
|
emits: ["update:modelValue"],
|
|
4044
4064
|
setup(e, { expose: t }) {
|
|
4045
|
-
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() =>
|
|
4065
|
+
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => In({
|
|
4046
4066
|
width: n.width,
|
|
4047
4067
|
mono: n.mono
|
|
4048
|
-
})), o = je(), s = K(), c = C(() =>
|
|
4068
|
+
})), o = je(), s = K(), c = C(() => dt(n.error, o.id ?? s, o["aria-describedby"])), l = U(null);
|
|
4049
4069
|
return t({ input: l }), (t, n) => (R(), E(S, null, [Le(D("input", N({ "data-glim": "TextField" }, t.$attrs, {
|
|
4050
4070
|
ref_key: "input",
|
|
4051
4071
|
ref: l,
|
|
@@ -4055,7 +4075,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4055
4075
|
"aria-invalid": c.value.invalid,
|
|
4056
4076
|
"aria-describedby": c.value.describedBy,
|
|
4057
4077
|
class: a.value
|
|
4058
|
-
}), null, 16,
|
|
4078
|
+
}), null, 16, Nc), [[Pe, r.value]]), c.value.errorId ? (R(), w(Ui, {
|
|
4059
4079
|
key: 0,
|
|
4060
4080
|
id: c.value.errorId
|
|
4061
4081
|
}, {
|
|
@@ -4063,26 +4083,26 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4063
4083
|
_: 1
|
|
4064
4084
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
4065
4085
|
}
|
|
4066
|
-
}),
|
|
4086
|
+
}), Fc = {
|
|
4067
4087
|
"data-glim": "SignInCard",
|
|
4068
4088
|
class: "glim-signin"
|
|
4069
|
-
},
|
|
4089
|
+
}, Ic = { class: "glim-signin-head" }, Lc = {
|
|
4070
4090
|
key: 0,
|
|
4071
4091
|
class: "glim-signin-logo",
|
|
4072
4092
|
"aria-hidden": "true"
|
|
4073
|
-
},
|
|
4093
|
+
}, Rc = ["src"], zc = { class: "glim-signin-name" }, Bc = {
|
|
4074
4094
|
key: 0,
|
|
4075
4095
|
class: "glim-signin-error",
|
|
4076
4096
|
role: "alert"
|
|
4077
|
-
},
|
|
4097
|
+
}, Vc = {
|
|
4078
4098
|
key: 0,
|
|
4079
4099
|
class: "glim-signin-note",
|
|
4080
4100
|
role: "status"
|
|
4081
|
-
},
|
|
4101
|
+
}, Hc = { class: "glim-signin-hint" }, Uc = {
|
|
4082
4102
|
key: 3,
|
|
4083
4103
|
class: "glim-signin-error",
|
|
4084
4104
|
role: "alert"
|
|
4085
|
-
},
|
|
4105
|
+
}, Wc = /* @__PURE__ */ j({
|
|
4086
4106
|
__name: "SignInCard",
|
|
4087
4107
|
props: {
|
|
4088
4108
|
logo: {},
|
|
@@ -4110,7 +4130,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4110
4130
|
onSetPassword: {}
|
|
4111
4131
|
},
|
|
4112
4132
|
setup(e) {
|
|
4113
|
-
let t = e, n = Me(), r =
|
|
4133
|
+
let t = e, n = Me(), r = ct(() => t), i = U(r.state()), a = r.subscribe(() => i.value = r.state());
|
|
4114
4134
|
I(a);
|
|
4115
4135
|
let o = K(), s = (e) => `${t.idPrefix ?? o}-${e}`, c = C(() => ({
|
|
4116
4136
|
signIn: "signIn",
|
|
@@ -4124,32 +4144,32 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4124
4144
|
hide: t.text.hide
|
|
4125
4145
|
})), u = U(null), d = "";
|
|
4126
4146
|
function p() {
|
|
4127
|
-
let e = n.step ? "step" :
|
|
4128
|
-
e !== d && ((d || t.autoFocus) &&
|
|
4147
|
+
let e = n.step ? "step" : En(i.value);
|
|
4148
|
+
e !== d && ((d || t.autoFocus) && ht(u.value), d = e);
|
|
4129
4149
|
}
|
|
4130
4150
|
return L(p), De(p), J(() => i.value.refusal?.count, (e, t, n) => {
|
|
4131
4151
|
let r = i.value.refusal;
|
|
4132
|
-
r && n(
|
|
4133
|
-
}, { flush: "post" }), (t, n) => (R(), E("div",
|
|
4152
|
+
r && n(Cn(u.value, r));
|
|
4153
|
+
}, { flush: "post" }), (t, n) => (R(), E("div", Fc, [D("div", {
|
|
4134
4154
|
ref_key: "card",
|
|
4135
4155
|
ref: u,
|
|
4136
4156
|
class: "glim-card glim-signin-card"
|
|
4137
|
-
}, [D("div",
|
|
4157
|
+
}, [D("div", Ic, [e.logo || t.$slots.logo ? (R(), E("span", Lc, [V(t.$slots, "logo", {}, () => [D("img", {
|
|
4138
4158
|
src: e.logo,
|
|
4139
4159
|
alt: "",
|
|
4140
4160
|
draggable: "false"
|
|
4141
|
-
}, null, 8,
|
|
4161
|
+
}, null, 8, Rc)])])) : T("", !0), D("h1", zc, W(e.appName), 1)]), t.$slots.step ? V(t.$slots, "step", {}, void 0, void 0, 0) : i.value.view === "reset" ? (R(), E("form", {
|
|
4142
4162
|
key: 1,
|
|
4143
4163
|
class: "glim-signin-form",
|
|
4144
4164
|
novalidate: "",
|
|
4145
4165
|
onSubmit: n[4] ||= X((e) => G(r).submit(), ["prevent"])
|
|
4146
4166
|
}, [
|
|
4147
|
-
A(
|
|
4167
|
+
A(Mc, {
|
|
4148
4168
|
label: e.text.resetCode,
|
|
4149
4169
|
for: s("reset-code"),
|
|
4150
4170
|
hint: e.text.resetCodeTip
|
|
4151
4171
|
}, {
|
|
4152
|
-
default: Y(() => [A(
|
|
4172
|
+
default: Y(() => [A(Pc, {
|
|
4153
4173
|
id: s("reset-code"),
|
|
4154
4174
|
"data-signin-field": "resetCode",
|
|
4155
4175
|
class: "glim-signin-log-code",
|
|
@@ -4166,11 +4186,11 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4166
4186
|
"for",
|
|
4167
4187
|
"hint"
|
|
4168
4188
|
]),
|
|
4169
|
-
A(
|
|
4189
|
+
A(Mc, {
|
|
4170
4190
|
label: e.text.newPassword,
|
|
4171
4191
|
for: s("new")
|
|
4172
4192
|
}, {
|
|
4173
|
-
default: Y(() => [A(
|
|
4193
|
+
default: Y(() => [A(eo, {
|
|
4174
4194
|
id: s("new"),
|
|
4175
4195
|
"data-signin-field": "newPassword",
|
|
4176
4196
|
"model-value": i.value.newPassword,
|
|
@@ -4184,11 +4204,11 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4184
4204
|
])]),
|
|
4185
4205
|
_: 1
|
|
4186
4206
|
}, 8, ["label", "for"]),
|
|
4187
|
-
A(
|
|
4207
|
+
A(Mc, {
|
|
4188
4208
|
label: e.text.confirmPassword,
|
|
4189
4209
|
for: s("confirm")
|
|
4190
4210
|
}, {
|
|
4191
|
-
default: Y(() => [A(
|
|
4211
|
+
default: Y(() => [A(eo, {
|
|
4192
4212
|
id: s("confirm"),
|
|
4193
4213
|
"data-signin-field": "confirm",
|
|
4194
4214
|
"model-value": i.value.confirm,
|
|
@@ -4202,14 +4222,14 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4202
4222
|
])]),
|
|
4203
4223
|
_: 1
|
|
4204
4224
|
}, 8, ["label", "for"]),
|
|
4205
|
-
i.value.error ? (R(), E("p",
|
|
4225
|
+
i.value.error ? (R(), E("p", Bc, W(i.value.error), 1)) : T("", !0),
|
|
4206
4226
|
A(f, {
|
|
4207
4227
|
label: e.text.setPassword,
|
|
4208
4228
|
"label-key": c.value.setPassword,
|
|
4209
4229
|
tone: "accent",
|
|
4210
4230
|
type: "submit",
|
|
4211
4231
|
"data-signin": "set-password",
|
|
4212
|
-
disabled: G(
|
|
4232
|
+
disabled: G(un)(i.value),
|
|
4213
4233
|
busy: i.value.busy === "setPassword",
|
|
4214
4234
|
title: i.value.busy === "setPassword" ? e.text.saving : void 0
|
|
4215
4235
|
}, null, 8, [
|
|
@@ -4237,13 +4257,13 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4237
4257
|
novalidate: "",
|
|
4238
4258
|
onSubmit: n[10] ||= X((e) => G(r).submit(), ["prevent"])
|
|
4239
4259
|
}, [
|
|
4240
|
-
e.note ? (R(), E("p",
|
|
4260
|
+
e.note ? (R(), E("p", Vc, W(e.note), 1)) : T("", !0),
|
|
4241
4261
|
i.value.viaPasskey ? T("", !0) : V(t.$slots, "fields", {}, void 0, void 0, 1),
|
|
4242
|
-
Le(A(
|
|
4262
|
+
Le(A(Mc, {
|
|
4243
4263
|
label: e.text.password,
|
|
4244
4264
|
for: s("password")
|
|
4245
4265
|
}, {
|
|
4246
|
-
default: Y(() => [A(
|
|
4266
|
+
default: Y(() => [A(eo, {
|
|
4247
4267
|
id: s("password"),
|
|
4248
4268
|
"data-signin-field": "password",
|
|
4249
4269
|
"model-value": i.value.password,
|
|
@@ -4257,12 +4277,12 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4257
4277
|
])]),
|
|
4258
4278
|
_: 1
|
|
4259
4279
|
}, 8, ["label", "for"]), [[Fe, !i.value.viaPasskey]]),
|
|
4260
|
-
i.value.needCode ? (R(), w(
|
|
4280
|
+
i.value.needCode ? (R(), w(Mc, {
|
|
4261
4281
|
key: 2,
|
|
4262
4282
|
label: e.text.code,
|
|
4263
4283
|
for: s("code")
|
|
4264
4284
|
}, {
|
|
4265
|
-
default: Y(() => [A(
|
|
4285
|
+
default: Y(() => [A(Pc, {
|
|
4266
4286
|
id: s("code"),
|
|
4267
4287
|
"data-signin-field": "code",
|
|
4268
4288
|
class: "glim-signin-code",
|
|
@@ -4272,17 +4292,17 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4272
4292
|
spellcheck: "false",
|
|
4273
4293
|
placeholder: "000000",
|
|
4274
4294
|
"onUpdate:modelValue": n[6] ||= (e) => G(r).set("code", e)
|
|
4275
|
-
}, null, 8, ["id", "model-value"]), D("p",
|
|
4295
|
+
}, null, 8, ["id", "model-value"]), D("p", Hc, W(e.text.codeHint), 1)]),
|
|
4276
4296
|
_: 1
|
|
4277
4297
|
}, 8, ["label", "for"])) : T("", !0),
|
|
4278
|
-
i.value.error ? (R(), E("p",
|
|
4298
|
+
i.value.error ? (R(), E("p", Uc, W(i.value.error), 1)) : T("", !0),
|
|
4279
4299
|
A(f, {
|
|
4280
4300
|
label: e.text.signIn,
|
|
4281
4301
|
"label-key": c.value.signIn,
|
|
4282
4302
|
tone: "accent",
|
|
4283
4303
|
type: "submit",
|
|
4284
4304
|
"data-signin": "submit",
|
|
4285
|
-
disabled: G(
|
|
4305
|
+
disabled: G(Tn)(i.value),
|
|
4286
4306
|
busy: i.value.busy === "signIn",
|
|
4287
4307
|
title: i.value.busy === "signIn" ? e.text.signingIn : void 0
|
|
4288
4308
|
}, null, 8, [
|
|
@@ -4336,13 +4356,13 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4336
4356
|
])) : T("", !0)
|
|
4337
4357
|
], 32))], 512)]));
|
|
4338
4358
|
}
|
|
4339
|
-
}),
|
|
4359
|
+
}), Gc = {
|
|
4340
4360
|
key: 0,
|
|
4341
4361
|
class: "glim-skeleton-block glim-skeleton-tile"
|
|
4342
|
-
},
|
|
4362
|
+
}, Kc = {
|
|
4343
4363
|
key: 1,
|
|
4344
4364
|
class: "glim-skeleton-block glim-skeleton-badge"
|
|
4345
|
-
},
|
|
4365
|
+
}, qc = /* @__PURE__ */ j({
|
|
4346
4366
|
__name: "SkeletonRow",
|
|
4347
4367
|
props: {
|
|
4348
4368
|
delay: {},
|
|
@@ -4356,7 +4376,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4356
4376
|
}
|
|
4357
4377
|
},
|
|
4358
4378
|
setup(e) {
|
|
4359
|
-
let t = e, n = C(() =>
|
|
4379
|
+
let t = e, n = C(() => Dn({
|
|
4360
4380
|
delay: t.delay,
|
|
4361
4381
|
tile: t.tile,
|
|
4362
4382
|
badge: t.badge
|
|
@@ -4367,18 +4387,18 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4367
4387
|
class: P(n.value.className),
|
|
4368
4388
|
style: F(n.value.style)
|
|
4369
4389
|
}, [
|
|
4370
|
-
n.value.tile ? (R(), E("span",
|
|
4390
|
+
n.value.tile ? (R(), E("span", Gc)) : T("", !0),
|
|
4371
4391
|
t[0] ||= D("span", { class: "glim-skeleton-block glim-skeleton-name" }, null, -1),
|
|
4372
|
-
n.value.badge ? (R(), E("span",
|
|
4392
|
+
n.value.badge ? (R(), E("span", Kc)) : T("", !0)
|
|
4373
4393
|
], 6));
|
|
4374
4394
|
}
|
|
4375
|
-
}),
|
|
4395
|
+
}), Jc = ["data-glim-title", "aria-labelledby"], Yc = {
|
|
4376
4396
|
key: 0,
|
|
4377
4397
|
class: "glim-panel-heading"
|
|
4378
|
-
},
|
|
4398
|
+
}, Xc = ["id"], Zc = {
|
|
4379
4399
|
key: 1,
|
|
4380
4400
|
class: "glim-subcard-end"
|
|
4381
|
-
},
|
|
4401
|
+
}, Qc = /* @__PURE__ */ j({
|
|
4382
4402
|
__name: "SubCard",
|
|
4383
4403
|
props: {
|
|
4384
4404
|
title: {},
|
|
@@ -4392,23 +4412,23 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4392
4412
|
class: P(["glim-subcard", { "glim-subcard--titled": t.title }]),
|
|
4393
4413
|
"aria-labelledby": t.title ? G(n) : void 0
|
|
4394
4414
|
}, [
|
|
4395
|
-
t.title ? (R(), E("h3",
|
|
4415
|
+
t.title ? (R(), E("h3", Yc, [A(e, {
|
|
4396
4416
|
tone: "heading",
|
|
4397
4417
|
size: "heading",
|
|
4398
4418
|
wrap: ""
|
|
4399
4419
|
}, {
|
|
4400
|
-
default: Y(() => [D("span", { id: G(n) }, W(t.title), 9,
|
|
4420
|
+
default: Y(() => [D("span", { id: G(n) }, W(t.title), 9, Xc), t.hint ? (R(), w(Q, {
|
|
4401
4421
|
key: 0,
|
|
4402
4422
|
tip: t.hint,
|
|
4403
4423
|
"on-accent": ""
|
|
4404
4424
|
}, null, 8, ["tip"])) : T("", !0)]),
|
|
4405
4425
|
_: 1
|
|
4406
4426
|
})])) : T("", !0),
|
|
4407
|
-
r.$slots.end ? (R(), E("div",
|
|
4427
|
+
r.$slots.end ? (R(), E("div", Zc, [V(r.$slots, "end")])) : T("", !0),
|
|
4408
4428
|
V(r.$slots, "default")
|
|
4409
|
-
], 10,
|
|
4429
|
+
], 10, Jc));
|
|
4410
4430
|
}
|
|
4411
|
-
}),
|
|
4431
|
+
}), $c = ["aria-label"], el = { key: 0 }, tl = { key: 0 }, nl = ["colspan"], rl = /* @__PURE__ */ j({
|
|
4412
4432
|
__name: "Table",
|
|
4413
4433
|
props: {
|
|
4414
4434
|
label: {},
|
|
@@ -4422,27 +4442,27 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4422
4442
|
"data-glim": "Table",
|
|
4423
4443
|
class: "glim-table",
|
|
4424
4444
|
"aria-label": e.label
|
|
4425
|
-
}, [n.value ? (R(), E("thead",
|
|
4445
|
+
}, [n.value ? (R(), E("thead", el, [D("tr", null, [(R(!0), E(S, null, B(e.columns, (e) => (R(), E("th", {
|
|
4426
4446
|
key: e.key,
|
|
4427
4447
|
scope: "col",
|
|
4428
4448
|
class: P({ "glim-table-end": e.end })
|
|
4429
4449
|
}, W(e.label), 3))), 128))])])) : T("", !0), D("tbody", null, [(R(!0), E(S, null, B(e.rows, (n, i) => (R(), E("tr", { key: i }, [(R(!0), E(S, null, B(e.columns, (e) => (R(), E("td", {
|
|
4430
4450
|
key: e.key,
|
|
4431
|
-
class: P(G(
|
|
4451
|
+
class: P(G(Fn)(e))
|
|
4432
4452
|
}, [V(t.$slots, "cell", {
|
|
4433
4453
|
row: n,
|
|
4434
4454
|
column: e,
|
|
4435
4455
|
value: r(n, e)
|
|
4436
|
-
}, () => [k(W(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (R(), E("tr",
|
|
4456
|
+
}, () => [k(W(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (R(), E("tr", tl, [D("td", {
|
|
4437
4457
|
colspan: e.columns.length,
|
|
4438
4458
|
class: "glim-table-muted"
|
|
4439
|
-
}, W(e.more), 9,
|
|
4459
|
+
}, W(e.more), 9, nl)])) : T("", !0)])], 8, $c));
|
|
4440
4460
|
}
|
|
4441
|
-
}),
|
|
4461
|
+
}), il = [
|
|
4442
4462
|
"aria-label",
|
|
4443
4463
|
"aria-invalid",
|
|
4444
4464
|
"aria-describedby"
|
|
4445
|
-
],
|
|
4465
|
+
], al = /* @__PURE__ */ j({
|
|
4446
4466
|
inheritAttrs: !1,
|
|
4447
4467
|
__name: "TextArea",
|
|
4448
4468
|
props: /*@__PURE__*/ M({
|
|
@@ -4456,11 +4476,11 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4456
4476
|
}),
|
|
4457
4477
|
emits: ["update:modelValue"],
|
|
4458
4478
|
setup(e, { expose: t }) {
|
|
4459
|
-
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() =>
|
|
4479
|
+
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => In({
|
|
4460
4480
|
width: n.width,
|
|
4461
4481
|
mono: n.mono,
|
|
4462
4482
|
area: !0
|
|
4463
|
-
})), o = je(), s = K(), c = C(() =>
|
|
4483
|
+
})), o = je(), s = K(), c = C(() => dt(n.error, o.id ?? s, o["aria-describedby"])), l = U(null);
|
|
4464
4484
|
return t({ input: l }), (t, n) => (R(), E(S, null, [Le(D("textarea", N({ "data-glim": "TextArea" }, t.$attrs, {
|
|
4465
4485
|
ref_key: "input",
|
|
4466
4486
|
ref: l,
|
|
@@ -4469,7 +4489,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4469
4489
|
"aria-invalid": c.value.invalid,
|
|
4470
4490
|
"aria-describedby": c.value.describedBy,
|
|
4471
4491
|
class: a.value
|
|
4472
|
-
}), null, 16,
|
|
4492
|
+
}), null, 16, il), [[Pe, r.value]]), c.value.errorId ? (R(), w(Ui, {
|
|
4473
4493
|
key: 0,
|
|
4474
4494
|
id: c.value.errorId
|
|
4475
4495
|
}, {
|
|
@@ -4477,7 +4497,7 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4477
4497
|
_: 1
|
|
4478
4498
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
4479
4499
|
}
|
|
4480
|
-
}),
|
|
4500
|
+
}), ol = { class: "glim-toast-body" }, sl = { class: "glim-toast-message" }, cl = { key: 0 }, ll = ["aria-label"], ul = /* @__PURE__ */ j({
|
|
4481
4501
|
__name: "ToastCard",
|
|
4482
4502
|
props: {
|
|
4483
4503
|
id: {},
|
|
@@ -4508,10 +4528,10 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4508
4528
|
onKeydown: n[6] ||= Re(X((t) => r("dismiss", e.id), ["stop"]), ["esc"])
|
|
4509
4529
|
}, [
|
|
4510
4530
|
A(G(b), {
|
|
4511
|
-
mark: G(
|
|
4531
|
+
mark: G(qe)[e.severity],
|
|
4512
4532
|
class: P(`glim-toast-glyph glim-toast-glyph--${e.severity}`)
|
|
4513
4533
|
}, null, 8, ["mark", "class"]),
|
|
4514
|
-
D("div",
|
|
4534
|
+
D("div", ol, [D("p", sl, [(R(!0), E(S, null, B(G(On)(e.message), (e, t) => (R(), E(S, { key: t }, [t > 0 ? (R(), E("wbr", cl)) : T("", !0), k(W(e), 1)], 64))), 128))]), e.action ? (R(), w(f, {
|
|
4515
4535
|
key: 0,
|
|
4516
4536
|
class: "glim-toast-action",
|
|
4517
4537
|
tone: "subtle",
|
|
@@ -4524,19 +4544,19 @@ var ba = { class: "glim-instance-rows" }, xa = ["data-instance"], Sa = {
|
|
|
4524
4544
|
"aria-label": e.dismissLabel,
|
|
4525
4545
|
class: "glim-btn-bare glim-toast-dismiss",
|
|
4526
4546
|
onClick: n[1] ||= (t) => r("dismiss", e.id)
|
|
4527
|
-
}, [A(G(b), { mark: G(
|
|
4547
|
+
}, [A(G(b), { mark: G(Ge).dismiss }, null, 8, ["mark"])], 8, ll)
|
|
4528
4548
|
], 32));
|
|
4529
4549
|
}
|
|
4530
|
-
}),
|
|
4531
|
-
function
|
|
4532
|
-
for (let i of Object.values(t)) typeof n[
|
|
4550
|
+
}), dl = (e) => `on${e.charAt(0).toUpperCase()}${e.slice(1)}`;
|
|
4551
|
+
function fl(e, t, n, r) {
|
|
4552
|
+
for (let i of Object.values(t)) typeof n[dl(i)] == "function" && r(`${e} ${i}`);
|
|
4533
4553
|
return (e, ...r) => {
|
|
4534
|
-
let i = t[e], a = i === void 0 ? void 0 : n[
|
|
4554
|
+
let i = t[e], a = i === void 0 ? void 0 : n[dl(i)];
|
|
4535
4555
|
typeof a == "function" && a(...r);
|
|
4536
4556
|
};
|
|
4537
4557
|
}
|
|
4538
4558
|
// src/ToastViewport.vue
|
|
4539
|
-
var
|
|
4559
|
+
var pl = /* @__PURE__ */ j({
|
|
4540
4560
|
inheritAttrs: !1,
|
|
4541
4561
|
__name: "ToastViewport",
|
|
4542
4562
|
props: {
|
|
@@ -4555,12 +4575,12 @@ var ul = /* @__PURE__ */ j({
|
|
|
4555
4575
|
"blur"
|
|
4556
4576
|
],
|
|
4557
4577
|
setup(e, { emit: t }) {
|
|
4558
|
-
let n = e, r = t, i =
|
|
4578
|
+
let n = e, r = t, i = fl("ToastViewport", {
|
|
4559
4579
|
mouseEnter: "enter",
|
|
4560
4580
|
mouseLeave: "leave",
|
|
4561
4581
|
focus: "focusin",
|
|
4562
4582
|
blur: "focusout"
|
|
4563
|
-
}, n,
|
|
4583
|
+
}, n, Kn);
|
|
4564
4584
|
function a(e) {
|
|
4565
4585
|
r("mouseEnter", e), i("mouseEnter", e);
|
|
4566
4586
|
}
|
|
@@ -4577,18 +4597,18 @@ var ul = /* @__PURE__ */ j({
|
|
|
4577
4597
|
return J(() => n.toasts, (e) => {
|
|
4578
4598
|
let t = new Set(e.map((e) => e.id));
|
|
4579
4599
|
for (let e of l) t.has(e) || l.delete(e);
|
|
4580
|
-
for (let t of e) l.has(t.id) || (l.add(t.id),
|
|
4600
|
+
for (let t of e) l.has(t.id) || (l.add(t.id), Xe(t.message, Rn(t.severity)));
|
|
4581
4601
|
}, {
|
|
4582
4602
|
immediate: !0,
|
|
4583
4603
|
deep: 1,
|
|
4584
4604
|
flush: "post"
|
|
4585
4605
|
}), (t, n) => (R(), E(S, null, [
|
|
4586
|
-
D("div", N({ class: "glim-sr-only" }, G(
|
|
4587
|
-
D("div", N({ class: "glim-sr-only" }, G(
|
|
4606
|
+
D("div", N({ class: "glim-sr-only" }, G(At)("polite")), null, 16),
|
|
4607
|
+
D("div", N({ class: "glim-sr-only" }, G(At)("assertive")), null, 16),
|
|
4588
4608
|
D("div", N({
|
|
4589
4609
|
"data-glim": "ToastViewport",
|
|
4590
4610
|
class: "glim-toast-stack"
|
|
4591
|
-
}, t.$attrs), [(R(!0), E(S, null, B(e.toasts, (t) => (R(), w(
|
|
4611
|
+
}, t.$attrs), [(R(!0), E(S, null, B(e.toasts, (t) => (R(), w(ul, {
|
|
4592
4612
|
id: t.id,
|
|
4593
4613
|
key: t.id,
|
|
4594
4614
|
message: t.message,
|
|
@@ -4609,7 +4629,7 @@ var ul = /* @__PURE__ */ j({
|
|
|
4609
4629
|
]))), 128))], 16)
|
|
4610
4630
|
], 64));
|
|
4611
4631
|
}
|
|
4612
|
-
}),
|
|
4632
|
+
}), ml = ["aria-label"], hl = [
|
|
4613
4633
|
"aria-level",
|
|
4614
4634
|
"aria-posinset",
|
|
4615
4635
|
"aria-setsize",
|
|
@@ -4620,11 +4640,11 @@ var ul = /* @__PURE__ */ j({
|
|
|
4620
4640
|
"onClick",
|
|
4621
4641
|
"onDblclick",
|
|
4622
4642
|
"onKeydown"
|
|
4623
|
-
],
|
|
4643
|
+
], gl = ["onClick"], _l = {
|
|
4624
4644
|
key: 0,
|
|
4625
4645
|
class: "glim-tree-glyph",
|
|
4626
4646
|
"aria-hidden": "true"
|
|
4627
|
-
},
|
|
4647
|
+
}, vl = { class: "glim-tree-label" }, yl = /* @__PURE__ */ j({
|
|
4628
4648
|
__name: "Tree",
|
|
4629
4649
|
props: /*@__PURE__*/ M({
|
|
4630
4650
|
label: {},
|
|
@@ -4642,7 +4662,7 @@ var ul = /* @__PURE__ */ j({
|
|
|
4642
4662
|
s.has(e) || (s.add(e), Promise.resolve(n.load(e)).then((t) => o.set(e, t), () => s.delete(e)));
|
|
4643
4663
|
}
|
|
4644
4664
|
J(i, (e) => [null, ...e].forEach(l), { immediate: !0 });
|
|
4645
|
-
let u = C(() =>
|
|
4665
|
+
let u = C(() => Vn(o, i.value)), d = C(() => Math.max(u.value.findIndex((e) => e.node.id === r.value), 0));
|
|
4646
4666
|
function f(e) {
|
|
4647
4667
|
i.value = i.value.includes(e) ? i.value.filter((t) => t !== e) : [...i.value, e];
|
|
4648
4668
|
}
|
|
@@ -4653,8 +4673,8 @@ var ul = /* @__PURE__ */ j({
|
|
|
4653
4673
|
e.preventDefault(), r.value = n, e.key === "Enter" && a("activate", n);
|
|
4654
4674
|
return;
|
|
4655
4675
|
}
|
|
4656
|
-
let i =
|
|
4657
|
-
i && (e.preventDefault(), "focus" in i ? (r.value = i.focus,
|
|
4676
|
+
let i = Hn(u.value, t, e.key, getComputedStyle(c.value).direction === "rtl");
|
|
4677
|
+
i && (e.preventDefault(), "focus" in i ? (r.value = i.focus, yt(c.value, i.focus)) : f("open" in i ? i.open : i.close));
|
|
4658
4678
|
}
|
|
4659
4679
|
return (t, n) => (R(), E("div", {
|
|
4660
4680
|
ref_key: "tree",
|
|
@@ -4684,15 +4704,15 @@ var ul = /* @__PURE__ */ j({
|
|
|
4684
4704
|
"aria-hidden": "true",
|
|
4685
4705
|
onClick: X((t) => e.node.hasChildren && f(e.node.id), ["stop"]),
|
|
4686
4706
|
onDblclick: n[0] ||= X(() => {}, ["stop"])
|
|
4687
|
-
}, [e.node.hasChildren ? (R(), w(G(ue), { key: 0 })) : T("", !0)], 40,
|
|
4688
|
-
e.node.glyph ? (R(), E("span",
|
|
4689
|
-
D("span",
|
|
4690
|
-
], 16,
|
|
4707
|
+
}, [e.node.hasChildren ? (R(), w(G(ue), { key: 0 })) : T("", !0)], 40, gl),
|
|
4708
|
+
e.node.glyph ? (R(), E("span", _l, [(R(), w(H(e.open && e.node.openGlyph || e.node.glyph)))])) : T("", !0),
|
|
4709
|
+
D("span", vl, W(e.node.label), 1)
|
|
4710
|
+
], 16, hl))), 128))], 8, ml));
|
|
4691
4711
|
}
|
|
4692
|
-
}),
|
|
4712
|
+
}), bl = ["data-glim-title"], xl = { class: "glim-notice-title" }, Sl = { class: "glim-notice-reason" }, Cl = {
|
|
4693
4713
|
key: 0,
|
|
4694
4714
|
class: "glim-notice-action"
|
|
4695
|
-
},
|
|
4715
|
+
}, wl = /* @__PURE__ */ j({
|
|
4696
4716
|
__name: "UnavailableNotice",
|
|
4697
4717
|
props: { title: {} },
|
|
4698
4718
|
setup(e) {
|
|
@@ -4701,12 +4721,12 @@ var ul = /* @__PURE__ */ j({
|
|
|
4701
4721
|
"data-glim-title": e.title,
|
|
4702
4722
|
class: "glim-notice"
|
|
4703
4723
|
}, [
|
|
4704
|
-
D("p",
|
|
4705
|
-
D("p",
|
|
4706
|
-
t.$slots.action ? (R(), E("div",
|
|
4707
|
-
], 8,
|
|
4724
|
+
D("p", xl, W(e.title), 1),
|
|
4725
|
+
D("p", Sl, [V(t.$slots, "default")]),
|
|
4726
|
+
t.$slots.action ? (R(), E("div", Cl, [V(t.$slots, "action")])) : T("", !0)
|
|
4727
|
+
], 8, bl));
|
|
4708
4728
|
}
|
|
4709
|
-
}),
|
|
4729
|
+
}), Tl = ["aria-label"], El = { class: "glim-window-square" }, Dl = { class: "glim-window-square" }, Ol = { class: "glim-window-square" }, kl = /* @__PURE__ */ j({
|
|
4710
4730
|
__name: "WindowBar",
|
|
4711
4731
|
props: {
|
|
4712
4732
|
appName: {},
|
|
@@ -4747,7 +4767,7 @@ var ul = /* @__PURE__ */ j({
|
|
|
4747
4767
|
class: "glim-window-button",
|
|
4748
4768
|
onClick: r[0] ||= (e) => n("minimise")
|
|
4749
4769
|
}, {
|
|
4750
|
-
default: Y(() => [D("span",
|
|
4770
|
+
default: Y(() => [D("span", El, [A(G(me))])]),
|
|
4751
4771
|
_: 1
|
|
4752
4772
|
}, 8, ["tip"]),
|
|
4753
4773
|
A(he, {
|
|
@@ -4755,7 +4775,7 @@ var ul = /* @__PURE__ */ j({
|
|
|
4755
4775
|
class: "glim-window-button",
|
|
4756
4776
|
onClick: r[1] ||= (e) => n("toggleMaximise")
|
|
4757
4777
|
}, {
|
|
4758
|
-
default: Y(() => [D("span",
|
|
4778
|
+
default: Y(() => [D("span", Dl, [e.maximised ? (R(), w(G(ee), { key: 0 })) : (R(), w(G(pe), { key: 1 }))])]),
|
|
4759
4779
|
_: 1
|
|
4760
4780
|
}, 8, ["tip"]),
|
|
4761
4781
|
A(he, {
|
|
@@ -4763,17 +4783,17 @@ var ul = /* @__PURE__ */ j({
|
|
|
4763
4783
|
class: "glim-window-button",
|
|
4764
4784
|
onClick: r[2] ||= (e) => n("close")
|
|
4765
4785
|
}, {
|
|
4766
|
-
default: Y(() => [D("span",
|
|
4786
|
+
default: Y(() => [D("span", Ol, [A(G(g))])]),
|
|
4767
4787
|
_: 1
|
|
4768
4788
|
}, 8, ["tip"])
|
|
4769
|
-
], 40,
|
|
4789
|
+
], 40, Tl));
|
|
4770
4790
|
}
|
|
4771
4791
|
});
|
|
4772
4792
|
// src/confirm.ts
|
|
4773
|
-
function
|
|
4793
|
+
function Al(e) {
|
|
4774
4794
|
let t = U(null), n = U(null), r = null, i = null;
|
|
4775
4795
|
function a(e, n) {
|
|
4776
|
-
return i =
|
|
4796
|
+
return i = bt(), new Promise((i) => {
|
|
4777
4797
|
r = i, t.value = {
|
|
4778
4798
|
message: e,
|
|
4779
4799
|
...n
|
|
@@ -4781,15 +4801,15 @@ function Dl(e) {
|
|
|
4781
4801
|
});
|
|
4782
4802
|
}
|
|
4783
4803
|
function o(e) {
|
|
4784
|
-
r?.(e), r = null, t.value = null,
|
|
4804
|
+
r?.(e), r = null, t.value = null, dn(i), i = null;
|
|
4785
4805
|
}
|
|
4786
4806
|
let s = () => o(!1);
|
|
4787
|
-
return
|
|
4807
|
+
return jl(() => t.value !== null, n, s), {
|
|
4788
4808
|
confirm: a,
|
|
4789
4809
|
dismiss: s,
|
|
4790
4810
|
ConfirmHost: j(() => () => {
|
|
4791
4811
|
let r = t.value;
|
|
4792
|
-
return r ? Se(xe, { to:
|
|
4812
|
+
return r ? Se(xe, { to: en() }, [Se($r, {
|
|
4793
4813
|
ref: (e) => n.value = e?.card ?? null,
|
|
4794
4814
|
title: e.title,
|
|
4795
4815
|
message: r.message,
|
|
@@ -4803,13 +4823,13 @@ function Dl(e) {
|
|
|
4803
4823
|
})
|
|
4804
4824
|
};
|
|
4805
4825
|
}
|
|
4806
|
-
function
|
|
4826
|
+
function jl(e, t, n) {
|
|
4807
4827
|
J(e, (e, r, i) => {
|
|
4808
|
-
e && i(
|
|
4828
|
+
e && i(Bn(() => t.value, n));
|
|
4809
4829
|
}, { immediate: !0 });
|
|
4810
4830
|
}
|
|
4811
4831
|
// src/paypalButtons.ts
|
|
4812
|
-
function
|
|
4832
|
+
function Ml(e) {
|
|
4813
4833
|
let t = U(null), n = () => {};
|
|
4814
4834
|
return J([
|
|
4815
4835
|
t,
|
|
@@ -4821,7 +4841,7 @@ function kl(e) {
|
|
|
4821
4841
|
let o = null, s = !1;
|
|
4822
4842
|
n = () => {
|
|
4823
4843
|
s = !0, o?.close().catch(() => {});
|
|
4824
|
-
},
|
|
4844
|
+
}, jt(r, i !== "once").then((n) => {
|
|
4825
4845
|
if (s) return;
|
|
4826
4846
|
let c = n.Buttons({
|
|
4827
4847
|
style: {
|
|
@@ -4833,7 +4853,7 @@ function kl(e) {
|
|
|
4833
4853
|
height: 40
|
|
4834
4854
|
},
|
|
4835
4855
|
onClick: (t, n) => e().amount ? n.resolve() : n.reject(),
|
|
4836
|
-
...
|
|
4856
|
+
...lt(r, i, () => e().amount ?? "0", a, () => e().onDone()),
|
|
4837
4857
|
onError: () => e().onError()
|
|
4838
4858
|
});
|
|
4839
4859
|
o = c, t.replaceChildren(), c.render(t).catch(() => e().onError());
|
|
@@ -4843,8 +4863,8 @@ function kl(e) {
|
|
|
4843
4863
|
}), Te(() => n()), (e) => t.value = e;
|
|
4844
4864
|
}
|
|
4845
4865
|
// src/dragArmed.ts
|
|
4846
|
-
function
|
|
4866
|
+
function Nl(e, t) {
|
|
4847
4867
|
let n = () => e.value?.classList.toggle("glim-drag-armed", t());
|
|
4848
4868
|
Ie(n, { flush: "post" }), De(n);
|
|
4849
4869
|
}
|
|
4850
|
-
export {
|
|
4870
|
+
export { wr as AboutCard, e as Badge, Er as BrandMark, c as BusyRing, f as Button, $n as Card, Ar as Checkbox, Br as CoffeeDialog, Gr as ColorPicker, $r as ConfirmDialog, mi as ContextMenu, _i as CopyField, Ni as CryptoDonateDialog, Ii as DropdownListbox, Vi as EmptyState, Ui as FieldError, qi as FieldRow, Ji as FieldRowGroup, Jo as Fortress, Aa as FortressAppCard, ra as FortressDoubtWindow, Yo as FortressPairing, Qa as FortressPermissions, xs as FortressStatusWindow, He as GLIMSTONE_RELEASE_URL, Ue as GLIMSTONE_REPO, We as GLIMSTONE_VERSION, ws as GlyphField, Ts as GlyphTile, de as IconBack, be as IconButton, oe as IconCalendar, le as IconCancel, y as IconCheck, g as IconClose, se as IconCopy, ue as IconExpand, _ as IconEye, ie as IconEyeOff, fe as IconFolderOpen, te as IconForward, v as IconPause, ce as IconPencil, ae as IconPlay, re as IconResetArrow, ne as IconStar, he as IconTipButton, h as IconUpload, pe as IconWindowMaximise, me as IconWindowMinimise, ee as IconWindowRestore, lr as InfoAboutCard, Q as InfoBubble, fr as InfoHelpCard, Cr as InfoTile, xr as InfoVersionCard, ya as InstanceCard, ti as Kbd, As as ListRow, Gs as ListTable, b as MarkSvg, Js as MenuBar, Xs as Meter, $s as NumberField, eo as PasswordField, tc as PathField, vc as PaypalDialog, Wi as Pill, Ms as Popover, xa as PresenceBadges, Zo as ProgressBar, $ as ReadmeButton, yc as RowMark, La as Selector, kc as Sheet, wc as SidebarRow, Wc as SignInCard, Mc as SignInField, qc as SkeletonRow, Qc as SubCard, rl as Table, al as TextArea, Pc as TextField, ul as ToastCard, pl as ToastViewport, Va as Toggle, yl as Tree, wl as UnavailableNotice, ta as Window, kl as WindowBar, Sa as deviceGlyph, m as glyphFor, yn as selectorTabId, p as setGlyphResolver, u as useAccent, Al as useConfirm, o as useDensity, jl as useDialogKeys, Nl as useDragArmed, x as useFieldName, i as useHue, l as useLabelMode, d as useMotion, Ml as usePaypalButtons, ve as usePortalHue, a as useRainbow, s as useShape, n as useTipBubble };
|