@glimstone/vue 4.7.0 → 4.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.js +1 -1
- package/dist/{Button-CQbGuw5x.js → Button-CZHmbNOm.js} +2 -2
- package/dist/Carousel.js +2 -2
- package/dist/Collapsible.js +1 -1
- package/dist/Combobox.js +1 -1
- package/dist/ConnectionRow.vue.d.ts +3 -0
- package/dist/DatePicker.js +1 -1
- package/dist/FileUpload.js +1 -1
- package/dist/FloatingPanel.js +6 -6
- package/dist/Marquee.js +1 -1
- package/dist/Pagination.js +2 -2
- package/dist/PasswordField.vue.d.ts +8 -10
- package/dist/Rating.js +1 -1
- package/dist/{Select-CQxew-YP.js → Select-DBABOjwc.js} +1 -1
- package/dist/Select.js +1 -1
- package/dist/SignaturePad.js +2 -2
- package/dist/Steps.js +2 -2
- package/dist/TagsInput.js +1 -1
- package/dist/Timer.js +2 -2
- package/dist/Tour.js +2 -2
- package/dist/glyphs-CS3VBARx.js +27 -0
- package/dist/glyphs.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +877 -839
- package/dist/windowParts.d.ts +2 -1
- package/package.json +2 -2
- package/dist/glyphs-DeCDMDdg.js +0 -27
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as e } from "./Badge-BhK0gMse.js";
|
|
2
2
|
import { n as t, r as n, t as r } from "./TipWrap-5Nw7Yj0O.js";
|
|
3
|
-
import { a as i, c as a, i as o, l as s, n as c, o as l, r as u, s as d, t as f } from "./Button-
|
|
4
|
-
import { C as p, S as m,
|
|
5
|
-
import { t as
|
|
6
|
-
import { n as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { Fragment as S, Teleport as
|
|
11
|
-
import { COLOR_NAMES_DE as
|
|
3
|
+
import { a as i, c as a, i as o, l as s, n as c, o as l, r as u, s as d, t as f } from "./Button-CZHmbNOm.js";
|
|
4
|
+
import { C as p, S as m, T as h, _ as g, a as _, b as v, c as ee, d as te, f as y, g as ne, h as re, i as b, l as ie, m as ae, n as oe, o as se, p as ce, r as le, s as ue, t as de, u as fe, v as pe, w as me, x as he, y as ge } from "./glyphs-CS3VBARx.js";
|
|
5
|
+
import { t as _e } from "./IconTipButton-BLtrZfgN.js";
|
|
6
|
+
import { n as ve, r as x, t as ye } from "./fieldName-DBygJJfe.js";
|
|
7
|
+
import { t as be } from "./selectParts-0e1ib8BL.js";
|
|
8
|
+
import { t as xe } from "./Select-DBABOjwc.js";
|
|
9
|
+
import { t as Se } from "./IconButton-D5YOChZI.js";
|
|
10
|
+
import { Fragment as S, Teleport as Ce, 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 we, inject as Te, mergeModels as M, mergeProps as N, nextTick as Ee, normalizeClass as P, normalizeStyle as F, onBeforeUnmount as I, onMounted as L, onScopeDispose as De, onUnmounted as Oe, onUpdated as ke, openBlock as R, provide as Ae, ref as z, renderList as B, renderSlot as V, resolveDynamicComponent as H, shallowReactive as je, shallowRef as U, toDisplayString as W, toRef as Me, unref as G, useAttrs as Ne, useId as K, useModel as q, useSlots as Pe, vModelDynamic as Fe, vModelText as Ie, vShow as Le, watch as J, watchEffect as Re, withCtx as Y, withDirectives as ze, withKeys as Be, withModifiers as X } from "vue";
|
|
11
|
+
import { COLOR_NAMES_DE as Ve, COLOR_PICKER_TEXT as He, COPIED_MS as Ue, GLIMSTONE_RELEASE_URL as We, GLIMSTONE_REPO as Ge, GLIMSTONE_VERSION as Ke, MARKS as qe, PASSWORD_FIELD_TEXT as Je, PATH_ROOM_PX as Ye, TOAST_MARKS as Xe, WIDE_QUERY as Ze, anchorName as Qe, announce as $e, appCardView as et, ariaSort as tt, attachNumberSteppers as nt, claimMenu as rt, closeMenuOutside as it, colorPicker as at, columnValues as ot, computeBubblePosition as st, connectionButtons as ct, connectionTestFace as lt, connectionTile as ut, copyText as dt, countSelector as ft, createFortressFlow as pt, createSignInFlow as mt, donationHandlers as ht, doubtView as gt, fieldErrorView as _t, fieldWidthClass as vt, fill as Z, floatColorPicker as yt, focusByLetter as bt, focusFirstField as xt, focusFirstMenuRow as St, focusMenuRow as Ct, focusMenuRowByLetter as wt, focusTreeRow as Tt, focusedAsker as Et, footStartShows as Dt, holdPickHeight as Ot, hueVars as kt, isMenuHead as At, isTileMark as jt, isTypeahead as Mt, joinRefusalText as Nt, keepReadmeFit as Pt, labelInside as Ft, listKey as It, listOf as Lt, listView as Rt, liveRegionAttrs as zt, loadPaypal as Bt, mailHref as Vt, mediaMatches as Ht, memberName as Ut, menuIsOpen as Wt, menuMove as Gt, menuRowView as Kt, meterView as qt, nearestColorName as Jt, nextSort as Yt, normalizeHex as Xt, offersDiscord as Zt, offersMail as Qt, openInBrowser as $t, openInstance as en, openPopover as tn, openSheet as nn, othersLine as rn, pageLocale as an, passwordConfirmView as on, permissionsWith as sn, phraseReady as cn, pickFocusTarget as ln, pickMarkClass as un, pickSearchKey as dn, pickSections as fn, pickTileKey as pn, pickTileStyle as mn, pickerHue as hn, pillClassName as gn, placeMenu as _n, placeSubmenu as vn, portalTarget as yn, presenceTone as bn, pressRowControl as xn, progressView as Sn, qrCode as Cn, readmePartClass as wn, readmePartLabel as Tn, readmeSoon as En, readmeUnitClass as Dn, resetBlocked as On, returnFocus as kn, roveSelector as An, rovedIndex as jn, runUpdateCheck as Mn, segmentView as Nn, selectByClick as Pn, selectorAxis as Fn, selectorFlex as In, selectorTabId as Ln, selectorTabId as Rn, selectorView as zn, shake as Bn, showRefusal as Vn, sidebarRowView as Hn, signInBlocked as Un, signInStage as Wn, skeletonRowView as Gn, softBreaks as Kn, stackWindow as qn, statusView as Jn, storeShowOthers as Yn, storedShowOthers as Xn, subscribeMedia as Zn, syncNumberSteppers as Qn, tableCellClass as $n, textFieldClass as er, tidyMenu as tr, toastPoliteness as nr, toggleSelection as rr, trapDialogKeys as ir, treeRows as ar, treeStep as or, updateFace as sr, updateStage as cr, versionLink as lr, warnDeprecated as ur, watchSelectorFit as dr, windowFocusTarget as fr, windowFoot as pr } from "@glimstone/core";
|
|
12
12
|
// src/InfoBubble.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
-
var
|
|
13
|
+
var mr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
14
14
|
__name: "InfoBubble",
|
|
15
15
|
props: {
|
|
16
16
|
tip: {},
|
|
@@ -60,12 +60,12 @@ var ur = ["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, mr), A(t, { state: G(i) }, null, 8, ["state"])], 64));
|
|
64
64
|
}
|
|
65
|
-
}),
|
|
65
|
+
}), hr = ["data-glim-title"], gr = {
|
|
66
66
|
key: 0,
|
|
67
67
|
class: "glim-panel-heading"
|
|
68
|
-
},
|
|
68
|
+
}, _r = /* @__PURE__ */ j({
|
|
69
69
|
__name: "Card",
|
|
70
70
|
props: {
|
|
71
71
|
title: {},
|
|
@@ -74,7 +74,7 @@ var ur = ["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 : kt(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 ur = ["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", gr, [A(e, {
|
|
91
91
|
tone: "heading",
|
|
92
92
|
size: "heading",
|
|
93
93
|
wrap: "",
|
|
@@ -99,20 +99,20 @@ var ur = ["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, hr));
|
|
103
103
|
}
|
|
104
|
-
}),
|
|
104
|
+
}), vr = {
|
|
105
105
|
key: 0,
|
|
106
106
|
class: "glim-readme-btn-art",
|
|
107
107
|
"aria-hidden": "true"
|
|
108
|
-
},
|
|
108
|
+
}, yr = { class: "glim-readme-btn-text" }, br = { class: "glim-readme-btn-name" }, xr = {
|
|
109
109
|
key: 0,
|
|
110
110
|
class: "glim-readme-btn-sub"
|
|
111
|
-
},
|
|
111
|
+
}, Sr = {
|
|
112
112
|
key: 0,
|
|
113
113
|
class: "glim-readme-btn-sheen",
|
|
114
114
|
"aria-hidden": "true"
|
|
115
|
-
},
|
|
115
|
+
}, Cr = {
|
|
116
116
|
key: 1,
|
|
117
117
|
class: "glim-readme-btn-hint"
|
|
118
118
|
}, $ = /* @__PURE__ */ j({
|
|
@@ -135,10 +135,10 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
135
135
|
},
|
|
136
136
|
emits: ["linkClick"],
|
|
137
137
|
setup(e, { emit: r }) {
|
|
138
|
-
let i = e, a = r, o = C(() =>
|
|
138
|
+
let i = e, a = r, o = C(() => En(i.parts)), s = U(null), c = C(() => i.parts.map((e) => `${e.name}\n${e.sub ?? ""}`).join("\n") + (o.value ? i.soonLabel : "")), l;
|
|
139
139
|
J([s, c], () => {
|
|
140
|
-
l?.(), l = s.value ?
|
|
141
|
-
}, { flush: "post" }),
|
|
140
|
+
l?.(), l = s.value ? Pt(s.value) : void 0;
|
|
141
|
+
}, { flush: "post" }), De(() => l?.());
|
|
142
142
|
let u = n(() => i.tip), d = (e) => e === 0 ? {
|
|
143
143
|
ref: (e) => u.trigger.value = e,
|
|
144
144
|
"aria-describedby": u.describedBy.value,
|
|
@@ -147,7 +147,7 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
147
147
|
onMouseleave: u.hide,
|
|
148
148
|
onFocus: u.showOnFocus,
|
|
149
149
|
onBlur: u.hide
|
|
150
|
-
} : {}, f = (e) => o.value ? i.soonLabel : e.sub, p = (e) =>
|
|
150
|
+
} : {}, f = (e) => o.value ? i.soonLabel : e.sub, p = (e) => Tn(e, f(e)), m = (e) => o.value ? "span" : e.href ? "a" : "button", h = (e) => o.value ? { "aria-disabled": !0 } : e.href ? {
|
|
151
151
|
href: e.href,
|
|
152
152
|
target: "_blank",
|
|
153
153
|
rel: "noreferrer noopener",
|
|
@@ -160,28 +160,28 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
160
160
|
ref_key: "root",
|
|
161
161
|
ref: s,
|
|
162
162
|
"data-glim": "ReadmeButton",
|
|
163
|
-
class: P(G(
|
|
163
|
+
class: P(G(Dn)(e.brand, e.parts.length, e.note, o.value))
|
|
164
164
|
}, [
|
|
165
165
|
(R(!0), E(S, null, B(e.parts, (t, r) => (R(), w(H(m(t)), N({ key: r }, { ref_for: !0 }, {
|
|
166
166
|
...h(t),
|
|
167
167
|
...d(r)
|
|
168
168
|
}, {
|
|
169
169
|
"aria-label": p(t),
|
|
170
|
-
class: G(
|
|
170
|
+
class: G(wn)(r, o.value)
|
|
171
171
|
}), {
|
|
172
|
-
default: Y(() => [r === 0 && n.$slots.art ? (R(), E("span",
|
|
172
|
+
default: Y(() => [r === 0 && n.$slots.art ? (R(), E("span", vr, [V(n.$slots, "art")])) : (R(), E(S, { key: 1 }, [r === 0 && n.$slots.mark ? (R(), E("span", {
|
|
173
173
|
key: 0,
|
|
174
174
|
class: P(`glim-readme-btn-mark ${e.markClass ?? ""}`),
|
|
175
175
|
"aria-hidden": "true"
|
|
176
|
-
}, [V(n.$slots, "mark")], 2)) : T("", !0), D("span",
|
|
176
|
+
}, [V(n.$slots, "mark")], 2)) : T("", !0), D("span", yr, [D("span", br, W(t.name), 1), f(t) ? (R(), E("span", xr, W(f(t)), 1)) : T("", !0)])], 64))]),
|
|
177
177
|
_: 2
|
|
178
178
|
}, 1040, ["aria-label", "class"]))), 128)),
|
|
179
|
-
o.value ? T("", !0) : (R(), E("span",
|
|
180
|
-
e.hint ? (R(), E("span",
|
|
179
|
+
o.value ? T("", !0) : (R(), E("span", Sr)),
|
|
180
|
+
e.hint ? (R(), E("span", Cr, [A(Q, { tip: e.hint }, null, 8, ["tip"])])) : T("", !0),
|
|
181
181
|
A(t, { state: G(u) }, null, 8, ["state"])
|
|
182
182
|
], 2));
|
|
183
183
|
}
|
|
184
|
-
}),
|
|
184
|
+
}), wr = { class: "glim-info-text" }, Tr = { class: "glim-info-text" }, Er = { class: "glim-readme-btn-rows glim-about-give" }, Dr = /* @__PURE__ */ j({
|
|
185
185
|
__name: "InfoAboutCard",
|
|
186
186
|
props: {
|
|
187
187
|
text: {},
|
|
@@ -194,15 +194,15 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
194
194
|
hueIndex: {}
|
|
195
195
|
},
|
|
196
196
|
setup(e) {
|
|
197
|
-
return (t, n) => (R(), w(
|
|
197
|
+
return (t, n) => (R(), w(_r, {
|
|
198
198
|
"data-glim": "InfoAboutCard",
|
|
199
199
|
title: e.text.title,
|
|
200
200
|
"hue-index": e.hueIndex
|
|
201
201
|
}, {
|
|
202
202
|
default: Y(() => [
|
|
203
|
-
D("p",
|
|
204
|
-
D("p",
|
|
205
|
-
D("div",
|
|
203
|
+
D("p", wr, W(e.text.body), 1),
|
|
204
|
+
D("p", Tr, W(e.text.coffee), 1),
|
|
205
|
+
D("div", Er, [
|
|
206
206
|
A($, {
|
|
207
207
|
brand: "coffee",
|
|
208
208
|
parts: [{
|
|
@@ -244,7 +244,7 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
244
244
|
_: 1
|
|
245
245
|
}, 8, ["title", "hue-index"]));
|
|
246
246
|
}
|
|
247
|
-
}),
|
|
247
|
+
}), Or = { class: "glim-info-text" }, kr = { class: "glim-readme-btn-rows" }, Ar = /* @__PURE__ */ j({
|
|
248
248
|
__name: "InfoHelpCard",
|
|
249
249
|
props: {
|
|
250
250
|
text: {},
|
|
@@ -260,19 +260,19 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
260
260
|
bugGlyph: {},
|
|
261
261
|
openUrl: {
|
|
262
262
|
type: Function,
|
|
263
|
-
default:
|
|
263
|
+
default: $t
|
|
264
264
|
},
|
|
265
265
|
hueIndex: {}
|
|
266
266
|
},
|
|
267
267
|
setup(e) {
|
|
268
|
-
let t = e, n = C(() =>
|
|
269
|
-
return (t, i) => (R(), w(
|
|
268
|
+
let t = e, n = C(() => Qt(t.text.report, t.mailAddress)), r = C(() => Zt(t.text.report, t.discordUrl) && !!t.text.discordButton);
|
|
269
|
+
return (t, i) => (R(), w(_r, {
|
|
270
270
|
"data-glim": "InfoHelpCard",
|
|
271
271
|
title: e.text.title,
|
|
272
272
|
hint: e.text.hint,
|
|
273
273
|
"hue-index": e.hueIndex
|
|
274
274
|
}, {
|
|
275
|
-
default: Y(() => [D("p",
|
|
275
|
+
default: Y(() => [D("p", Or, W(e.text.report), 1), D("div", kr, [
|
|
276
276
|
A($, {
|
|
277
277
|
brand: "github",
|
|
278
278
|
parts: [{
|
|
@@ -303,7 +303,7 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
303
303
|
brand: "house",
|
|
304
304
|
parts: [{
|
|
305
305
|
name: e.text.mailButton,
|
|
306
|
-
onClick: () => e.openUrl(G(
|
|
306
|
+
onClick: () => e.openUrl(G(Vt)(e.mailAddress, e.text.mailSubject))
|
|
307
307
|
}],
|
|
308
308
|
"mark-class": "glim-house-mark"
|
|
309
309
|
}, O({ _: 2 }, [e.mailGlyph ? {
|
|
@@ -346,19 +346,19 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
346
346
|
"hue-index"
|
|
347
347
|
]));
|
|
348
348
|
}
|
|
349
|
-
}),
|
|
349
|
+
}), jr = { class: "glim-version-rows" }, Mr = { class: "glim-version-name" }, Nr = { class: "glim-version-part" }, Pr = {
|
|
350
350
|
key: 0,
|
|
351
351
|
class: "glim-version-sub"
|
|
352
|
-
},
|
|
352
|
+
}, Fr = ["href", "onClick"], Ir = {
|
|
353
353
|
key: 1,
|
|
354
354
|
class: "glim-num glim-version-number"
|
|
355
|
-
},
|
|
355
|
+
}, Lr = {
|
|
356
356
|
key: 0,
|
|
357
357
|
class: "glim-version-actions"
|
|
358
|
-
},
|
|
358
|
+
}, Rr = {
|
|
359
359
|
role: "status",
|
|
360
360
|
class: "glim-sr-only"
|
|
361
|
-
},
|
|
361
|
+
}, zr = /* @__PURE__ */ j({
|
|
362
362
|
__name: "InfoVersionCard",
|
|
363
363
|
props: {
|
|
364
364
|
text: {},
|
|
@@ -367,37 +367,37 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
367
367
|
onReleaseNotes: {},
|
|
368
368
|
openUrl: {
|
|
369
369
|
type: Function,
|
|
370
|
-
default:
|
|
370
|
+
default: $t
|
|
371
371
|
},
|
|
372
372
|
hueIndex: {}
|
|
373
373
|
},
|
|
374
374
|
setup(e) {
|
|
375
|
-
let t = e, n =
|
|
375
|
+
let t = e, n = Pe(), r = C(() => !n["whats-new"] && t.onReleaseNotes && t.text.releaseNotes), i = U({ kind: "idle" }), a = U(0), o = C(() => t.updateCheck && sr(i.value, t.updateCheck.text));
|
|
376
376
|
function s() {
|
|
377
|
-
|
|
377
|
+
Mn(t.updateCheck, i.value, (e) => {
|
|
378
378
|
i.value = e, e.kind === "failed" && a.value++;
|
|
379
379
|
});
|
|
380
380
|
}
|
|
381
381
|
function c(e, n) {
|
|
382
382
|
e.preventDefault(), t.openUrl(n);
|
|
383
383
|
}
|
|
384
|
-
return (t, n) => (R(), w(
|
|
384
|
+
return (t, n) => (R(), w(_r, {
|
|
385
385
|
"data-glim": "InfoVersionCard",
|
|
386
386
|
title: e.text.title,
|
|
387
387
|
hint: e.text.hint,
|
|
388
388
|
"hue-index": e.hueIndex
|
|
389
389
|
}, {
|
|
390
|
-
default: Y(() => [D("ul",
|
|
390
|
+
default: Y(() => [D("ul", jr, [(R(!0), E(S, null, B(e.rows, (t) => (R(), E("li", {
|
|
391
391
|
key: t.name,
|
|
392
392
|
class: "glim-version-row"
|
|
393
|
-
}, [D("span",
|
|
393
|
+
}, [D("span", Mr, [D("span", Nr, W(t.name), 1), t.sub ? (R(), E("span", Pr, W(t.sub), 1)) : T("", !0)]), G(lr)(t).href ? (R(), E("a", {
|
|
394
394
|
key: 0,
|
|
395
|
-
href: G(
|
|
395
|
+
href: G(lr)(t).href,
|
|
396
396
|
target: "_blank",
|
|
397
397
|
rel: "noopener noreferrer",
|
|
398
398
|
class: "glim-num glim-version-number",
|
|
399
|
-
onClick: (e) => c(e, G(
|
|
400
|
-
}, W(G(
|
|
399
|
+
onClick: (e) => c(e, G(lr)(t).href)
|
|
400
|
+
}, W(G(lr)(t).shown), 9, Fr)) : (R(), E("span", Ir, W(G(lr)(t).released ? G(lr)(t).shown : e.text.unreleased(G(lr)(t).shown)), 1))]))), 128))]), r.value || t.$slots["whats-new"] || e.updateCheck ? (R(), E("div", Lr, [
|
|
401
401
|
r.value ? (R(), w(f, {
|
|
402
402
|
key: 0,
|
|
403
403
|
label: e.text.releaseNotes,
|
|
@@ -410,7 +410,7 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
410
410
|
label: o.value.label,
|
|
411
411
|
"label-key": o.value.labelKey,
|
|
412
412
|
tone: o.value.tone,
|
|
413
|
-
stage: G(
|
|
413
|
+
stage: G(cr)(e.updateCheck.text, o.value.label),
|
|
414
414
|
busy: i.value.kind === "busy",
|
|
415
415
|
class: P(a.value > 0 ? "glim-shake" : ""),
|
|
416
416
|
onClick: s
|
|
@@ -421,7 +421,7 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
421
421
|
"stage",
|
|
422
422
|
"busy",
|
|
423
423
|
"class"
|
|
424
|
-
])), D("span",
|
|
424
|
+
])), D("span", Rr, W(o.value.announced), 1)], 64)) : T("", !0)
|
|
425
425
|
])) : T("", !0)]),
|
|
426
426
|
_: 3
|
|
427
427
|
}, 8, [
|
|
@@ -430,10 +430,10 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
430
430
|
"hue-index"
|
|
431
431
|
]));
|
|
432
432
|
}
|
|
433
|
-
}),
|
|
433
|
+
}), Br = {
|
|
434
434
|
"data-glim": "InfoTile",
|
|
435
435
|
style: { display: "contents" }
|
|
436
|
-
},
|
|
436
|
+
}, Vr = /* @__PURE__ */ j({
|
|
437
437
|
__name: "InfoTile",
|
|
438
438
|
props: {
|
|
439
439
|
version: {},
|
|
@@ -443,17 +443,17 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
443
443
|
},
|
|
444
444
|
setup(e) {
|
|
445
445
|
let t = e, n = (e) => t.hueIndex === void 0 ? void 0 : t.hueIndex + e;
|
|
446
|
-
return (t, r) => (R(), E("div",
|
|
447
|
-
A(
|
|
446
|
+
return (t, r) => (R(), E("div", Br, [
|
|
447
|
+
A(zr, N(e.version, { "hue-index": n(0) }), O({ _: 2 }, [t.$slots["whats-new"] ? {
|
|
448
448
|
name: "whats-new",
|
|
449
449
|
fn: Y(() => [V(t.$slots, "whats-new")]),
|
|
450
450
|
key: "0"
|
|
451
451
|
} : void 0]), 1040, ["hue-index"]),
|
|
452
|
-
A(
|
|
453
|
-
A(
|
|
452
|
+
A(Ar, N(e.help, { "hue-index": n(1) }), null, 16, ["hue-index"]),
|
|
453
|
+
A(Dr, N(e.about, { "hue-index": n(2) }), null, 16, ["hue-index"])
|
|
454
454
|
]));
|
|
455
455
|
}
|
|
456
|
-
}),
|
|
456
|
+
}), Hr = /* @__PURE__ */ j({
|
|
457
457
|
__name: "AboutCard",
|
|
458
458
|
props: {
|
|
459
459
|
text: {},
|
|
@@ -474,13 +474,13 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
474
474
|
mailGlyph: {},
|
|
475
475
|
openUrl: {
|
|
476
476
|
type: Function,
|
|
477
|
-
default:
|
|
477
|
+
default: $t
|
|
478
478
|
},
|
|
479
479
|
hueIndex: {}
|
|
480
480
|
},
|
|
481
481
|
setup(e) {
|
|
482
482
|
let t = e;
|
|
483
|
-
|
|
483
|
+
ur("AboutCard");
|
|
484
484
|
let n = C(() => [...t.version ? [{
|
|
485
485
|
name: t.text.version,
|
|
486
486
|
version: t.version,
|
|
@@ -490,7 +490,7 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
490
490
|
version: t.glimstoneVersion,
|
|
491
491
|
repoUrl: t.glimstoneRepoUrl
|
|
492
492
|
}]);
|
|
493
|
-
return (t, r) => (R(), w(
|
|
493
|
+
return (t, r) => (R(), w(Vr, {
|
|
494
494
|
"data-glim": "AboutCard",
|
|
495
495
|
"hue-index": e.hueIndex,
|
|
496
496
|
about: {
|
|
@@ -534,40 +534,40 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
534
534
|
"help"
|
|
535
535
|
]));
|
|
536
536
|
}
|
|
537
|
-
}),
|
|
537
|
+
}), Ur = {
|
|
538
538
|
key: 0,
|
|
539
539
|
"data-glim": "BrandMark",
|
|
540
540
|
class: "glim-brand-svg",
|
|
541
541
|
"aria-hidden": "true"
|
|
542
|
-
},
|
|
542
|
+
}, Wr = ["innerHTML"], Gr = ["innerHTML"], Kr = ["innerHTML"], qr = /* @__PURE__ */ j({
|
|
543
543
|
__name: "BrandMark",
|
|
544
544
|
props: {
|
|
545
545
|
svg: {},
|
|
546
546
|
hover: {}
|
|
547
547
|
},
|
|
548
548
|
setup(e) {
|
|
549
|
-
return (t, n) => e.hover ? (R(), E("span",
|
|
549
|
+
return (t, n) => e.hover ? (R(), E("span", Ur, [D("span", {
|
|
550
550
|
class: "glim-mark-rest",
|
|
551
551
|
innerHTML: e.svg
|
|
552
|
-
}, null, 8,
|
|
552
|
+
}, null, 8, Wr), D("span", {
|
|
553
553
|
class: "glim-mark-hover",
|
|
554
554
|
innerHTML: e.hover
|
|
555
|
-
}, null, 8,
|
|
555
|
+
}, null, 8, Gr)])) : (R(), E("span", {
|
|
556
556
|
key: 1,
|
|
557
557
|
"data-glim": "BrandMark",
|
|
558
558
|
class: "glim-brand-svg",
|
|
559
559
|
"aria-hidden": "true",
|
|
560
560
|
innerHTML: e.svg
|
|
561
|
-
}, null, 8,
|
|
561
|
+
}, null, 8, Kr));
|
|
562
562
|
}
|
|
563
|
-
}),
|
|
563
|
+
}), Jr = [
|
|
564
564
|
"aria-checked",
|
|
565
565
|
"aria-label",
|
|
566
566
|
"disabled"
|
|
567
|
-
],
|
|
567
|
+
], Yr = {
|
|
568
568
|
class: "glim-checkbox-box",
|
|
569
569
|
"aria-hidden": "true"
|
|
570
|
-
},
|
|
570
|
+
}, Xr = { key: 0 }, Zr = /* @__PURE__ */ j({
|
|
571
571
|
__name: "Checkbox",
|
|
572
572
|
props: /*@__PURE__*/ M({
|
|
573
573
|
label: {},
|
|
@@ -602,13 +602,13 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
602
602
|
disabled: e.disabled,
|
|
603
603
|
class: P(["glim-checkbox", { "glim-checkbox--slim": e.slim }]),
|
|
604
604
|
onClick: i[0] ||= (e) => r.value = !r.value,
|
|
605
|
-
onKeydown: i[1] ||=
|
|
606
|
-
}, [D("span",
|
|
605
|
+
onKeydown: i[1] ||= Be(X(() => {}, ["prevent"]), ["enter"])
|
|
606
|
+
}, [D("span", Yr, [A(G(b))]), n.value ? T("", !0) : (R(), E("span", Xr, W(e.label), 1))], 42, Jr));
|
|
607
607
|
}
|
|
608
|
-
}),
|
|
608
|
+
}), Qr = ["data-glim-title"], $r = { class: "glim-modal-head" }, ei = {
|
|
609
609
|
id: "coffee-title",
|
|
610
610
|
class: "glim-modal-title"
|
|
611
|
-
},
|
|
611
|
+
}, ti = { class: "glim-give-body" }, ni = { class: "glim-give-appeal" }, ri = { class: "glim-give-intro" }, ii = { class: "glim-give-frame" }, ai = ["src", "title"], oi = { class: "glim-give-foot" }, si = /* @__PURE__ */ j({
|
|
612
612
|
__name: "CoffeeDialog",
|
|
613
613
|
props: {
|
|
614
614
|
widgetUrl: {},
|
|
@@ -631,7 +631,7 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
631
631
|
"aria-labelledby": "coffee-title",
|
|
632
632
|
class: "glim-modal-card glim-modal-card--wide glim-modal-card--tall"
|
|
633
633
|
}, [
|
|
634
|
-
D("div",
|
|
634
|
+
D("div", $r, [D("h2", ei, [A(e, {
|
|
635
635
|
tone: "heading",
|
|
636
636
|
size: "heading",
|
|
637
637
|
wrap: ""
|
|
@@ -639,34 +639,34 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
639
639
|
default: Y(() => [k(W(t.text.title), 1)]),
|
|
640
640
|
_: 1
|
|
641
641
|
})])]),
|
|
642
|
-
D("div",
|
|
643
|
-
D("p",
|
|
644
|
-
D("p",
|
|
645
|
-
D("div",
|
|
642
|
+
D("div", ti, [
|
|
643
|
+
D("p", ni, W(t.text.appeal), 1),
|
|
644
|
+
D("p", ri, W(t.text.intro), 1),
|
|
645
|
+
D("div", ii, [D("iframe", {
|
|
646
646
|
src: t.widgetUrl,
|
|
647
647
|
title: t.text.title,
|
|
648
648
|
allow: "payment",
|
|
649
649
|
class: "glim-give-iframe"
|
|
650
|
-
}, null, 8,
|
|
650
|
+
}, null, 8, ai)])
|
|
651
651
|
]),
|
|
652
|
-
D("div",
|
|
652
|
+
D("div", oi, [A(f, {
|
|
653
653
|
label: t.text.closeLabel,
|
|
654
654
|
"label-key": "common.close",
|
|
655
655
|
tone: "neutral",
|
|
656
656
|
onClick: r[0] ||= (e) => i("close")
|
|
657
657
|
}, null, 8, ["label"])])
|
|
658
|
-
], 8,
|
|
658
|
+
], 8, Qr)]));
|
|
659
659
|
}
|
|
660
|
-
}),
|
|
660
|
+
}), ci = { class: "glim-picker-foot" }, li = {
|
|
661
661
|
key: 0,
|
|
662
662
|
class: "glim-picker-name"
|
|
663
|
-
},
|
|
663
|
+
}, ui = ["value", "aria-label"], di = { class: "glim-picker-actions" }, fi = /* @__PURE__ */ j({
|
|
664
664
|
__name: "ColorPicker",
|
|
665
665
|
props: /*@__PURE__*/ M({
|
|
666
666
|
anchor: { default: null },
|
|
667
667
|
names: {
|
|
668
668
|
type: [Array, Boolean],
|
|
669
|
-
default: () =>
|
|
669
|
+
default: () => Ve
|
|
670
670
|
},
|
|
671
671
|
text: {}
|
|
672
672
|
}, {
|
|
@@ -680,20 +680,20 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
680
680
|
], ["update:modelValue"]),
|
|
681
681
|
setup(e, { emit: t }) {
|
|
682
682
|
let n = e, r = q(e, "modelValue"), i = t, a = {
|
|
683
|
-
...
|
|
683
|
+
...He,
|
|
684
684
|
...n.text
|
|
685
|
-
}, o = U(null), s = U(null), c = z(
|
|
685
|
+
}, o = U(null), s = U(null), c = z(Xt(r.value) ?? "#000000"), l = z(c.value), u = C(() => n.names === !1 ? null : Jt(c.value, n.names)), d = at(c.value, (e) => {
|
|
686
686
|
c.value = e, l.value = e, i("input", e);
|
|
687
687
|
}, { text: a }), p;
|
|
688
688
|
L(() => {
|
|
689
|
-
s.value.appendChild(d.el), n.anchor && o.value && (p =
|
|
689
|
+
s.value.appendChild(d.el), n.anchor && o.value && (p = yt(o.value, n.anchor, () => i("close")), d.focus());
|
|
690
690
|
}), I(() => p?.()), J(r, (e) => {
|
|
691
|
-
let t =
|
|
691
|
+
let t = Xt(e);
|
|
692
692
|
t && (c.value = t, l.value = t, d.setValue(t));
|
|
693
693
|
});
|
|
694
694
|
function m(e) {
|
|
695
695
|
l.value = e.target.value;
|
|
696
|
-
let t =
|
|
696
|
+
let t = Xt(l.value);
|
|
697
697
|
t && (c.value = t, d.setValue(t), i("input", t));
|
|
698
698
|
}
|
|
699
699
|
function h() {
|
|
@@ -702,8 +702,8 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
702
702
|
function g(e) {
|
|
703
703
|
e.key === "Enter" && !(e.target instanceof HTMLButtonElement) && (e.preventDefault(), h());
|
|
704
704
|
}
|
|
705
|
-
return (t, n) => (R(), w(
|
|
706
|
-
to: G(
|
|
705
|
+
return (t, n) => (R(), w(Ce, {
|
|
706
|
+
to: G(yn)(),
|
|
707
707
|
disabled: !e.anchor
|
|
708
708
|
}, [D("div", {
|
|
709
709
|
"data-glim": "ColorPicker",
|
|
@@ -718,12 +718,12 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
718
718
|
ref: s,
|
|
719
719
|
style: { display: "contents" }
|
|
720
720
|
}, null, 512),
|
|
721
|
-
D("div",
|
|
721
|
+
D("div", ci, [
|
|
722
722
|
n[0] ||= D("span", {
|
|
723
723
|
class: "glim-picker-swatch",
|
|
724
724
|
"aria-hidden": "true"
|
|
725
725
|
}, null, -1),
|
|
726
|
-
u.value === null ? T("", !0) : (R(), E("span",
|
|
726
|
+
u.value === null ? T("", !0) : (R(), E("span", li, W(u.value), 1)),
|
|
727
727
|
D("input", {
|
|
728
728
|
class: "glim-picker-hex",
|
|
729
729
|
value: l.value,
|
|
@@ -731,9 +731,9 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
731
731
|
spellcheck: "false",
|
|
732
732
|
"aria-label": a.hex,
|
|
733
733
|
onInput: m
|
|
734
|
-
}, null, 40,
|
|
734
|
+
}, null, 40, ui)
|
|
735
735
|
]),
|
|
736
|
-
D("div",
|
|
736
|
+
D("div", di, [A(f, {
|
|
737
737
|
label: a.apply,
|
|
738
738
|
"label-key": "apply",
|
|
739
739
|
glyph: G(b),
|
|
@@ -742,16 +742,16 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
742
742
|
}, null, 8, ["label", "glyph"])])
|
|
743
743
|
], 38)], 8, ["to", "disabled"]));
|
|
744
744
|
}
|
|
745
|
-
}),
|
|
745
|
+
}), pi = ["data-glim-title"], mi = { class: "glim-modal-head" }, hi = {
|
|
746
746
|
id: "confirmdialog-title",
|
|
747
747
|
class: "glim-modal-title"
|
|
748
|
-
},
|
|
748
|
+
}, gi = { class: "glim-modal-body" }, _i = {
|
|
749
749
|
id: "confirmdialog-message",
|
|
750
750
|
class: "glim-modal-text"
|
|
751
|
-
},
|
|
751
|
+
}, vi = {
|
|
752
752
|
key: 0,
|
|
753
753
|
class: "glim-modal-extra"
|
|
754
|
-
},
|
|
754
|
+
}, yi = { class: "glim-modal-foot" }, bi = /* @__PURE__ */ j({
|
|
755
755
|
__name: "ConfirmDialog",
|
|
756
756
|
props: {
|
|
757
757
|
title: {},
|
|
@@ -779,7 +779,7 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
779
779
|
"aria-describedby": "confirmdialog-message",
|
|
780
780
|
class: "glim-modal-card"
|
|
781
781
|
}, [
|
|
782
|
-
D("div",
|
|
782
|
+
D("div", mi, [D("h2", hi, [A(e, {
|
|
783
783
|
tone: "heading",
|
|
784
784
|
size: "heading",
|
|
785
785
|
wrap: ""
|
|
@@ -790,17 +790,17 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
790
790
|
key: 0,
|
|
791
791
|
label: t.closeLabel,
|
|
792
792
|
"label-key": "common.close",
|
|
793
|
-
glyph: G(
|
|
793
|
+
glyph: G(_),
|
|
794
794
|
class: "glim-modal-close",
|
|
795
795
|
onClick: r[0] ||= (e) => i("cancel")
|
|
796
796
|
}, null, 8, ["label", "glyph"]))]),
|
|
797
|
-
D("div",
|
|
798
|
-
D("div",
|
|
797
|
+
D("div", gi, [D("p", _i, W(t.message), 1), n.$slots.extra ? (R(), E("div", vi, [V(n.$slots, "extra")])) : T("", !0)]),
|
|
798
|
+
D("div", yi, [A(f, {
|
|
799
799
|
ref_key: "cancel",
|
|
800
800
|
ref: o,
|
|
801
801
|
label: t.cancelLabel,
|
|
802
802
|
"label-key": "common.cancel",
|
|
803
|
-
glyph: G(
|
|
803
|
+
glyph: G(le),
|
|
804
804
|
onClick: r[1] ||= (e) => i("cancel")
|
|
805
805
|
}, null, 8, ["label", "glyph"]), A(f, {
|
|
806
806
|
label: t.confirmLabel,
|
|
@@ -812,24 +812,25 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
812
812
|
"label-key",
|
|
813
813
|
"glyph"
|
|
814
814
|
])])
|
|
815
|
-
], 8,
|
|
815
|
+
], 8, pi)]));
|
|
816
816
|
}
|
|
817
|
-
}),
|
|
817
|
+
}), xi = ["aria-label"], Si = { class: "glim-connection-main" }, Ci = { class: "glim-connection-head" }, wi = { class: "glim-connection-name" }, Ti = {
|
|
818
818
|
key: 0,
|
|
819
819
|
class: "glim-connection-badges"
|
|
820
|
-
},
|
|
820
|
+
}, Ei = { class: "glim-connection-foot" }, Di = { class: "glim-connection-about" }, Oi = {
|
|
821
821
|
key: 0,
|
|
822
822
|
class: "glim-connection-status"
|
|
823
|
-
},
|
|
823
|
+
}, ki = {
|
|
824
824
|
key: 0,
|
|
825
825
|
class: "glim-connection-actions"
|
|
826
|
-
},
|
|
826
|
+
}, Ai = 640, ji = /* @__PURE__ */ j({
|
|
827
827
|
__name: "ConnectionRow",
|
|
828
828
|
props: {
|
|
829
829
|
name: {},
|
|
830
830
|
mark: {},
|
|
831
831
|
status: {},
|
|
832
832
|
test: {},
|
|
833
|
+
actions: {},
|
|
833
834
|
text: {},
|
|
834
835
|
labelKeys: {},
|
|
835
836
|
onTest: { type: Function },
|
|
@@ -837,88 +838,73 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
837
838
|
onRemove: { type: Function }
|
|
838
839
|
},
|
|
839
840
|
setup(e) {
|
|
840
|
-
let t = e, n = C(() => ({
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
841
|
+
let t = e, n = C(() => ut(t.mark)), r = C(() => ct(t, {
|
|
842
|
+
test: b,
|
|
843
|
+
edit: ce,
|
|
844
|
+
remove: pe
|
|
845
|
+
}).map((e) => {
|
|
846
|
+
let t = lt(e);
|
|
847
|
+
return {
|
|
848
|
+
...e,
|
|
849
|
+
face: t,
|
|
850
|
+
glyph: t.outcome === "check" ? b : t.outcome === "cross" ? _ : e.glyph
|
|
851
|
+
};
|
|
852
|
+
}));
|
|
853
|
+
return (t, i) => (R(), E("div", {
|
|
845
854
|
"data-glim": "ConnectionRow",
|
|
846
855
|
role: "group",
|
|
847
856
|
"aria-label": e.name,
|
|
848
857
|
class: "glim-well glim-connection"
|
|
849
858
|
}, [D("span", {
|
|
850
859
|
class: "glim-connection-tile",
|
|
851
|
-
style: F(
|
|
860
|
+
style: F(n.value.style),
|
|
852
861
|
"aria-hidden": "true"
|
|
853
|
-
}, [D("span",
|
|
862
|
+
}, [D("span", { class: P(n.value.wordmark ? "glim-connection-mark glim-connection-mark--wordmark" : "glim-connection-mark") }, [n.value.svg === void 0 ? (R(), w(H(e.mark), { key: 1 })) : (R(), w(qr, {
|
|
854
863
|
key: 0,
|
|
855
|
-
svg:
|
|
856
|
-
}, null, 8, ["svg"]))])], 4), D("div",
|
|
857
|
-
e.
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
label: e.text.edit,
|
|
882
|
-
"label-key": n.value.edit,
|
|
883
|
-
"compact-below": Di,
|
|
884
|
-
"data-connection": "edit",
|
|
885
|
-
onClick: e.onEdit
|
|
886
|
-
}, null, 8, [
|
|
887
|
-
"label",
|
|
888
|
-
"label-key",
|
|
889
|
-
"onClick"
|
|
890
|
-
])) : T("", !0),
|
|
891
|
-
e.onRemove ? (R(), w(f, {
|
|
892
|
-
key: 2,
|
|
893
|
-
label: e.text.remove,
|
|
894
|
-
"label-key": n.value.remove,
|
|
895
|
-
"compact-below": Di,
|
|
896
|
-
"data-connection": "remove",
|
|
897
|
-
onClick: e.onRemove
|
|
898
|
-
}, null, 8, [
|
|
899
|
-
"label",
|
|
900
|
-
"label-key",
|
|
901
|
-
"onClick"
|
|
902
|
-
])) : T("", !0)
|
|
903
|
-
])) : T("", !0)])])], 8, _i));
|
|
864
|
+
svg: n.value.svg
|
|
865
|
+
}, null, 8, ["svg"]))], 2)], 4), D("div", Si, [D("div", Ci, [D("span", wi, W(e.name), 1), t.$slots.badges ? (R(), E("span", Ti, [V(t.$slots, "badges")])) : T("", !0)]), D("div", Ei, [D("div", Di, [e.status ? (R(), E("p", Oi, W(e.status), 1)) : T("", !0), V(t.$slots, "default")]), r.value.length > 0 ? (R(), E("span", ki, [(R(!0), E(S, null, B(r.value, (e) => (R(), w(f, {
|
|
866
|
+
key: e.id,
|
|
867
|
+
label: e.label,
|
|
868
|
+
"label-key": e.labelKey,
|
|
869
|
+
glyph: e.glyph,
|
|
870
|
+
tone: e.face.tone,
|
|
871
|
+
busy: e.busy,
|
|
872
|
+
title: e.title,
|
|
873
|
+
disabled: e.disabled,
|
|
874
|
+
"compact-below": Ai,
|
|
875
|
+
class: P({ "glim-shake": e.face.shake }),
|
|
876
|
+
"data-connection": e.id,
|
|
877
|
+
onClick: e.onClick
|
|
878
|
+
}, null, 8, [
|
|
879
|
+
"label",
|
|
880
|
+
"label-key",
|
|
881
|
+
"glyph",
|
|
882
|
+
"tone",
|
|
883
|
+
"busy",
|
|
884
|
+
"title",
|
|
885
|
+
"disabled",
|
|
886
|
+
"class",
|
|
887
|
+
"data-connection",
|
|
888
|
+
"onClick"
|
|
889
|
+
]))), 128))])) : T("", !0)])])], 8, xi));
|
|
904
890
|
}
|
|
905
|
-
}),
|
|
891
|
+
}), Mi = {
|
|
906
892
|
"data-glim": "Kbd",
|
|
907
893
|
class: "glim-kbd"
|
|
908
|
-
},
|
|
894
|
+
}, Ni = /* @__PURE__ */ j({
|
|
909
895
|
__name: "Kbd",
|
|
910
896
|
setup(e) {
|
|
911
|
-
return (e, t) => (R(), E("kbd",
|
|
897
|
+
return (e, t) => (R(), E("kbd", Mi, [V(e.$slots, "default")]));
|
|
912
898
|
}
|
|
913
|
-
}),
|
|
899
|
+
}), Pi = {
|
|
914
900
|
key: 0,
|
|
915
901
|
class: "glim-menu-sep",
|
|
916
902
|
role: "separator"
|
|
917
|
-
},
|
|
903
|
+
}, Fi = {
|
|
918
904
|
key: 1,
|
|
919
905
|
class: "glim-menu-head",
|
|
920
906
|
role: "presentation"
|
|
921
|
-
},
|
|
907
|
+
}, Ii = [
|
|
922
908
|
"role",
|
|
923
909
|
"aria-checked",
|
|
924
910
|
"aria-haspopup",
|
|
@@ -926,26 +912,26 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
926
912
|
"disabled",
|
|
927
913
|
"data-row",
|
|
928
914
|
"onClick"
|
|
929
|
-
],
|
|
915
|
+
], Li = {
|
|
930
916
|
key: 0,
|
|
931
917
|
class: "glim-checkbox-box",
|
|
932
918
|
"aria-hidden": "true"
|
|
933
|
-
},
|
|
919
|
+
}, Ri = {
|
|
934
920
|
key: 2,
|
|
935
921
|
class: "glim-menu-glyph",
|
|
936
922
|
"aria-hidden": "true"
|
|
937
|
-
},
|
|
923
|
+
}, zi = { class: "glim-menu-label" }, Bi = {
|
|
938
924
|
key: 3,
|
|
939
925
|
class: "glim-menu-end glim-menu-caret",
|
|
940
926
|
"aria-hidden": "true"
|
|
941
|
-
},
|
|
927
|
+
}, Vi = {
|
|
942
928
|
key: 4,
|
|
943
929
|
class: "glim-menu-end glim-menu-tick",
|
|
944
930
|
"aria-hidden": "true"
|
|
945
|
-
},
|
|
931
|
+
}, Hi = {
|
|
946
932
|
key: 6,
|
|
947
933
|
class: "glim-menu-end glim-menu-count glim-num"
|
|
948
|
-
},
|
|
934
|
+
}, Ui = /* @__PURE__ */ j({
|
|
949
935
|
__name: "MenuRows",
|
|
950
936
|
props: {
|
|
951
937
|
entries: {},
|
|
@@ -953,15 +939,15 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
953
939
|
},
|
|
954
940
|
emits: ["pick"],
|
|
955
941
|
setup(e, { emit: t }) {
|
|
956
|
-
let n = e, r = t, i = C(() => n.entries.map((e) => e === "-" ? { kind: "sep" } :
|
|
942
|
+
let n = e, r = t, i = C(() => n.entries.map((e) => e === "-" ? { kind: "sep" } : At(e) ? {
|
|
957
943
|
kind: "head",
|
|
958
944
|
head: e
|
|
959
945
|
} : {
|
|
960
946
|
kind: "item",
|
|
961
947
|
item: e,
|
|
962
|
-
view:
|
|
948
|
+
view: Kt(e)
|
|
963
949
|
}));
|
|
964
|
-
return (t, n) => (R(!0), E(S, null, B(i.value, (t, n) => (R(), E(S, { key: n }, [t.kind === "sep" ? (R(), E("div",
|
|
950
|
+
return (t, n) => (R(!0), E(S, null, B(i.value, (t, n) => (R(), E(S, { key: n }, [t.kind === "sep" ? (R(), E("div", Pi)) : t.kind === "head" ? (R(), E("div", Fi, [D("span", null, W(t.head.head), 1), t.head.edit ? (R(), w(_e, {
|
|
965
951
|
key: 0,
|
|
966
952
|
tip: t.head.edit.tip,
|
|
967
953
|
role: "menuitem",
|
|
@@ -970,7 +956,7 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
970
956
|
"data-row": n,
|
|
971
957
|
onClick: (e) => r("pick", n)
|
|
972
958
|
}, {
|
|
973
|
-
default: Y(() => [(R(), w(H(t.head.edit.glyph ?? G(
|
|
959
|
+
default: Y(() => [(R(), w(H(t.head.edit.glyph ?? G(ce))))]),
|
|
974
960
|
_: 2
|
|
975
961
|
}, 1032, [
|
|
976
962
|
"tip",
|
|
@@ -989,23 +975,23 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
989
975
|
"data-row": n,
|
|
990
976
|
onClick: (e) => r("pick", n)
|
|
991
977
|
}, [
|
|
992
|
-
t.view.lead === "box" ? (R(), E("span",
|
|
978
|
+
t.view.lead === "box" ? (R(), E("span", Li, [A(G(b))])) : t.view.lead === "dot" ? (R(), E("span", {
|
|
993
979
|
key: 1,
|
|
994
980
|
class: "glim-menu-dot",
|
|
995
981
|
style: F({ backgroundColor: t.item.color }),
|
|
996
982
|
"aria-hidden": "true"
|
|
997
|
-
}, null, 4)) : (R(), E("span",
|
|
998
|
-
D("span",
|
|
999
|
-
t.view.end === "submenu" ? (R(), E("span",
|
|
983
|
+
}, null, 4)) : (R(), E("span", Ri, [t.view.lead === "glyph" ? (R(), w(H(t.item.glyph), { key: 0 })) : T("", !0)])),
|
|
984
|
+
D("span", zi, W(t.item.label), 1),
|
|
985
|
+
t.view.end === "submenu" ? (R(), E("span", Bi, [A(G(ue))])) : t.view.end === "tick" ? (R(), E("span", Vi, [A(G(b))])) : t.view.end === "shortcut" ? (R(), w(Ni, {
|
|
1000
986
|
key: 5,
|
|
1001
987
|
class: "glim-menu-end"
|
|
1002
988
|
}, {
|
|
1003
989
|
default: Y(() => [k(W(t.item.shortcut), 1)]),
|
|
1004
990
|
_: 2
|
|
1005
|
-
}, 1024)) : t.view.end === "count" ? (R(), E("span",
|
|
1006
|
-
], 10,
|
|
991
|
+
}, 1024)) : t.view.end === "count" ? (R(), E("span", Hi, W(t.item.count), 1)) : T("", !0)
|
|
992
|
+
], 10, Ii))], 64))), 128));
|
|
1007
993
|
}
|
|
1008
|
-
}),
|
|
994
|
+
}), Wi = ["id", "aria-label"], Gi = ["id", "aria-label"], Ki = /* @__PURE__ */ j({
|
|
1009
995
|
__name: "ContextMenu",
|
|
1010
996
|
props: {
|
|
1011
997
|
x: {},
|
|
@@ -1025,22 +1011,22 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1025
1011
|
},
|
|
1026
1012
|
emits: ["close", "step"],
|
|
1027
1013
|
setup(e, { emit: t }) {
|
|
1028
|
-
let n = e, r = t, i = U(null), a = U(null), o =
|
|
1014
|
+
let n = e, r = t, i = U(null), a = U(null), o = Et(), s = z({
|
|
1029
1015
|
left: n.x,
|
|
1030
1016
|
top: n.y
|
|
1031
|
-
}), c = U(null), l = z(null), u = C(() =>
|
|
1017
|
+
}), c = U(null), l = z(null), u = C(() => tr(n.items)), d = C(() => {
|
|
1032
1018
|
let e = c.value ? u.value[c.value.at] : void 0;
|
|
1033
|
-
return e && e !== "-" && !
|
|
1034
|
-
}), f = C(() => d.value?.sub ?
|
|
1019
|
+
return e && e !== "-" && !At(e) && e.sub ? e : null;
|
|
1020
|
+
}), f = C(() => d.value?.sub ? tr(d.value.sub) : null), p = () => ({
|
|
1035
1021
|
width: innerWidth,
|
|
1036
1022
|
height: innerHeight
|
|
1037
1023
|
});
|
|
1038
1024
|
function m(e) {
|
|
1039
|
-
r("close"), e &&
|
|
1025
|
+
r("close"), e && kn(n.opener ?? o);
|
|
1040
1026
|
}
|
|
1041
1027
|
function h() {
|
|
1042
1028
|
let e = i.value;
|
|
1043
|
-
e && (s.value =
|
|
1029
|
+
e && (s.value = _n(n.x, n.y, {
|
|
1044
1030
|
width: e.offsetWidth,
|
|
1045
1031
|
height: e.offsetHeight
|
|
1046
1032
|
}, p(), n.above));
|
|
@@ -1052,46 +1038,46 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1052
1038
|
], h, { flush: "post" });
|
|
1053
1039
|
let g, _;
|
|
1054
1040
|
L(() => {
|
|
1055
|
-
h(), g =
|
|
1041
|
+
h(), g = rt(m), _ = it(() => [
|
|
1056
1042
|
i.value,
|
|
1057
1043
|
a.value,
|
|
1058
1044
|
n.opener
|
|
1059
|
-
], () => m(!1)), i.value && n.fromEnd ?
|
|
1060
|
-
}),
|
|
1045
|
+
], () => m(!1)), i.value && n.fromEnd ? Ct(i.value, "last") : i.value && St(i.value);
|
|
1046
|
+
}), Oe(() => {
|
|
1061
1047
|
g?.(), _?.();
|
|
1062
1048
|
}), J(c, (e) => {
|
|
1063
1049
|
l.value = null;
|
|
1064
1050
|
let t = e && i.value?.querySelector(`[data-row="${e.at}"]`), n = a.value;
|
|
1065
1051
|
if (!e || !t || !n) return;
|
|
1066
1052
|
let r = getComputedStyle(i.value).direction === "rtl";
|
|
1067
|
-
l.value =
|
|
1053
|
+
l.value = vn(t.getBoundingClientRect(), {
|
|
1068
1054
|
width: n.offsetWidth,
|
|
1069
1055
|
height: n.offsetHeight
|
|
1070
|
-
}, p(), r), e.focus &&
|
|
1056
|
+
}, p(), r), e.focus && St(n);
|
|
1071
1057
|
}, { flush: "post" });
|
|
1072
1058
|
function v(e, t) {
|
|
1073
1059
|
let n = e[t];
|
|
1074
|
-
n !== "-" && (
|
|
1060
|
+
n !== "-" && (At(n) ? (m(!0), n.edit?.onSelect()) : n.sub && e === u.value ? c.value = {
|
|
1075
1061
|
at: t,
|
|
1076
1062
|
focus: !0
|
|
1077
|
-
} : (
|
|
1063
|
+
} : (Kt(n).staysOpen || m(!0), n.onSelect?.()));
|
|
1078
1064
|
}
|
|
1079
1065
|
function ee(e, t) {
|
|
1080
1066
|
if (e.key === "Tab") return m(!1);
|
|
1081
1067
|
let n = e.currentTarget;
|
|
1082
|
-
if (
|
|
1083
|
-
|
|
1068
|
+
if (Mt(e)) {
|
|
1069
|
+
wt(n, e.key) && e.preventDefault();
|
|
1084
1070
|
return;
|
|
1085
1071
|
}
|
|
1086
|
-
let a =
|
|
1072
|
+
let a = Gt(e.key, getComputedStyle(n).direction === "rtl");
|
|
1087
1073
|
if (!a) return;
|
|
1088
|
-
if (e.preventDefault(), a !== "in" && a !== "out") return
|
|
1074
|
+
if (e.preventDefault(), a !== "in" && a !== "out") return Ct(n, a);
|
|
1089
1075
|
if (t) {
|
|
1090
1076
|
a === "out" && c.value && (i.value?.querySelector(`[data-row="${c.value.at}"]`)?.focus(), c.value = null);
|
|
1091
1077
|
return;
|
|
1092
1078
|
}
|
|
1093
1079
|
let o = Number(document.activeElement?.dataset.row), s = u.value[o];
|
|
1094
|
-
a === "in" && s && s !== "-" && !
|
|
1080
|
+
a === "in" && s && s !== "-" && !At(s) && s.sub && !s.disabled ? c.value = {
|
|
1095
1081
|
at: o,
|
|
1096
1082
|
focus: !0
|
|
1097
1083
|
} : r("step", a === "in" ? 1 : -1);
|
|
@@ -1099,13 +1085,13 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1099
1085
|
function te(e) {
|
|
1100
1086
|
let t = e.target.closest("[data-row]");
|
|
1101
1087
|
if (!t) return;
|
|
1102
|
-
let n = Number(t.dataset.row), r = u.value[n], i = r !== "-" && !
|
|
1088
|
+
let n = Number(t.dataset.row), r = u.value[n], i = r !== "-" && !At(r) && !!r.sub && !r.disabled;
|
|
1103
1089
|
i && c.value?.at !== n ? c.value = {
|
|
1104
1090
|
at: n,
|
|
1105
1091
|
focus: !1
|
|
1106
1092
|
} : !i && c.value && (c.value = null);
|
|
1107
1093
|
}
|
|
1108
|
-
return (t, n) => (R(), w(
|
|
1094
|
+
return (t, n) => (R(), w(Ce, { to: G(yn)() }, [D("div", {
|
|
1109
1095
|
id: e.id,
|
|
1110
1096
|
ref_key: "menu",
|
|
1111
1097
|
ref: i,
|
|
@@ -1120,11 +1106,11 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1120
1106
|
onKeydown: n[1] ||= (e) => ee(e, !1),
|
|
1121
1107
|
onMouseover: te,
|
|
1122
1108
|
onContextmenu: n[2] ||= X(() => {}, ["prevent"])
|
|
1123
|
-
}, [A(
|
|
1109
|
+
}, [A(Ui, {
|
|
1124
1110
|
entries: u.value,
|
|
1125
1111
|
"open-at": c.value?.at,
|
|
1126
1112
|
onPick: n[0] ||= (e) => v(u.value, e)
|
|
1127
|
-
}, null, 8, ["entries", "open-at"])], 44,
|
|
1113
|
+
}, null, 8, ["entries", "open-at"])], 44, Wi), f.value ? (R(), E("div", {
|
|
1128
1114
|
key: 0,
|
|
1129
1115
|
id: d.value?.subId,
|
|
1130
1116
|
ref_key: "subMenu",
|
|
@@ -1138,15 +1124,15 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1138
1124
|
}),
|
|
1139
1125
|
onKeydown: n[4] ||= (e) => ee(e, !0),
|
|
1140
1126
|
onContextmenu: n[5] ||= X(() => {}, ["prevent"])
|
|
1141
|
-
}, [A(
|
|
1127
|
+
}, [A(Ui, {
|
|
1142
1128
|
entries: f.value,
|
|
1143
1129
|
onPick: n[3] ||= (e) => v(f.value, e)
|
|
1144
|
-
}, null, 8, ["entries"])], 44,
|
|
1130
|
+
}, null, 8, ["entries"])], 44, Gi)) : T("", !0)], 8, ["to"]));
|
|
1145
1131
|
}
|
|
1146
|
-
}),
|
|
1132
|
+
}), qi = ["value", "aria-label"], Ji = {
|
|
1147
1133
|
role: "status",
|
|
1148
1134
|
class: "glim-sr-only"
|
|
1149
|
-
},
|
|
1135
|
+
}, Yi = /* @__PURE__ */ j({
|
|
1150
1136
|
__name: "CopyField",
|
|
1151
1137
|
props: {
|
|
1152
1138
|
value: {},
|
|
@@ -1162,12 +1148,12 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1162
1148
|
let n = e, r = t, i = x(() => n.label), a = z(!1), o = U(null), s;
|
|
1163
1149
|
I(() => clearTimeout(s));
|
|
1164
1150
|
async function c() {
|
|
1165
|
-
let e = await
|
|
1151
|
+
let e = await dt(n.value);
|
|
1166
1152
|
r("copy", e), e ? (a.value = !0, clearTimeout(s), s = window.setTimeout(() => a.value = !1, Ue)) : (o.value?.focus(), o.value?.select());
|
|
1167
1153
|
}
|
|
1168
1154
|
return (t, n) => (R(), E("span", {
|
|
1169
1155
|
"data-glim": "CopyField",
|
|
1170
|
-
class: P(["glim-copy", G(
|
|
1156
|
+
class: P(["glim-copy", G(vt)(e.width)])
|
|
1171
1157
|
}, [
|
|
1172
1158
|
D("input", {
|
|
1173
1159
|
ref_key: "field",
|
|
@@ -1177,11 +1163,11 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1177
1163
|
"aria-label": G(i),
|
|
1178
1164
|
spellcheck: "false",
|
|
1179
1165
|
class: "glim-input glim-input--mono"
|
|
1180
|
-
}, null, 8,
|
|
1166
|
+
}, null, 8, qi),
|
|
1181
1167
|
A(f, {
|
|
1182
1168
|
label: a.value ? e.text.copied : e.text.copy,
|
|
1183
1169
|
"label-key": a.value ? "copied" : "copy",
|
|
1184
|
-
glyph: a.value ? G(b) : G(
|
|
1170
|
+
glyph: a.value ? G(b) : G(se),
|
|
1185
1171
|
variant: "icon",
|
|
1186
1172
|
onClick: c
|
|
1187
1173
|
}, null, 8, [
|
|
@@ -1189,27 +1175,27 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1189
1175
|
"label-key",
|
|
1190
1176
|
"glyph"
|
|
1191
1177
|
]),
|
|
1192
|
-
D("span",
|
|
1178
|
+
D("span", Ji, W(a.value ? e.text.copied : ""), 1)
|
|
1193
1179
|
], 2));
|
|
1194
1180
|
}
|
|
1195
|
-
}),
|
|
1181
|
+
}), Xi = ["data-glim-title"], Zi = { class: "glim-modal-head" }, Qi = {
|
|
1196
1182
|
id: "cryptodonate-title",
|
|
1197
1183
|
class: "glim-modal-title"
|
|
1198
|
-
},
|
|
1184
|
+
}, $i = { class: "glim-give-body glim-give-body--scroll" }, ea = { class: "glim-give-appeal" }, ta = { class: "glim-give-intro" }, na = { class: "glim-give-well" }, ra = {
|
|
1199
1185
|
dir: "ltr",
|
|
1200
1186
|
class: "glim-give-address"
|
|
1201
|
-
},
|
|
1187
|
+
}, ia = ["aria-label"], aa = ["aria-selected", "onClick"], oa = {
|
|
1202
1188
|
key: 0,
|
|
1203
1189
|
class: "glim-give-note"
|
|
1204
|
-
},
|
|
1190
|
+
}, sa = ["aria-label"], ca = [
|
|
1205
1191
|
"aria-selected",
|
|
1206
1192
|
"aria-label",
|
|
1207
1193
|
"title",
|
|
1208
1194
|
"onClick"
|
|
1209
|
-
],
|
|
1195
|
+
], la = {
|
|
1210
1196
|
key: 1,
|
|
1211
1197
|
class: "glim-give-ticker"
|
|
1212
|
-
},
|
|
1198
|
+
}, ua = { class: "glim-give-foot" }, da = /* @__PURE__ */ j({
|
|
1213
1199
|
__name: "CryptoDonateDialog",
|
|
1214
1200
|
props: {
|
|
1215
1201
|
coins: {},
|
|
@@ -1228,7 +1214,7 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1228
1214
|
function d(e, t) {
|
|
1229
1215
|
let n = e.id !== i.coin.id && e.tile;
|
|
1230
1216
|
return {
|
|
1231
|
-
...
|
|
1217
|
+
...kt(t),
|
|
1232
1218
|
...n ? {
|
|
1233
1219
|
"--tile": e.tile.color,
|
|
1234
1220
|
"--tile-ink": e.tile.ink
|
|
@@ -1253,7 +1239,7 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1253
1239
|
"aria-labelledby": "cryptodonate-title",
|
|
1254
1240
|
class: "glim-modal-card glim-modal-card--wide"
|
|
1255
1241
|
}, [
|
|
1256
|
-
D("div",
|
|
1242
|
+
D("div", Zi, [D("h2", Qi, [A(e, {
|
|
1257
1243
|
tone: "heading",
|
|
1258
1244
|
size: "heading",
|
|
1259
1245
|
wrap: ""
|
|
@@ -1261,12 +1247,12 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1261
1247
|
default: Y(() => [k(W(t.text.title), 1)]),
|
|
1262
1248
|
_: 1
|
|
1263
1249
|
})])]),
|
|
1264
|
-
D("div",
|
|
1265
|
-
D("p",
|
|
1266
|
-
D("p",
|
|
1267
|
-
D("div",
|
|
1250
|
+
D("div", $i, [
|
|
1251
|
+
D("p", ea, W(t.text.appeal), 1),
|
|
1252
|
+
D("p", ta, W(t.text.intro), 1),
|
|
1253
|
+
D("div", na, [
|
|
1268
1254
|
V(n.$slots, "qr", { value: t.network.address }),
|
|
1269
|
-
D("p",
|
|
1255
|
+
D("p", ra, W(t.network.address), 1),
|
|
1270
1256
|
D("div", {
|
|
1271
1257
|
class: "glim-give-networks",
|
|
1272
1258
|
role: "listbox",
|
|
@@ -1276,11 +1262,11 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1276
1262
|
type: "button",
|
|
1277
1263
|
role: "option",
|
|
1278
1264
|
"aria-selected": e.id === t.network.id,
|
|
1279
|
-
style: F(G(
|
|
1265
|
+
style: F(G(kt)(n)),
|
|
1280
1266
|
class: P(e.id === t.network.id ? "glim-give-network glim-hue glim-active" : "glim-give-network glim-hue"),
|
|
1281
1267
|
onClick: (n) => a("pick", t.coin, e)
|
|
1282
|
-
}, W(e.name), 15,
|
|
1283
|
-
t.network.note ? (R(), E("p",
|
|
1268
|
+
}, W(e.name), 15, aa))), 128))], 8, ia),
|
|
1269
|
+
t.network.note ? (R(), E("p", oa, W(t.network.note), 1)) : T("", !0),
|
|
1284
1270
|
A(f, {
|
|
1285
1271
|
label: t.text.copyLabel,
|
|
1286
1272
|
"label-key": "common.copy",
|
|
@@ -1303,17 +1289,17 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1303
1289
|
style: F(d(e, r)),
|
|
1304
1290
|
class: P(p(e)),
|
|
1305
1291
|
onClick: (t) => a("pick", e, e.networks[0])
|
|
1306
|
-
}, [s.value ? V(n.$slots, "mark", { coin: e }, void 0, void 0, 0) : T("", !0), c.value ? (R(), E("span",
|
|
1292
|
+
}, [s.value ? V(n.$slots, "mark", { coin: e }, void 0, void 0, 0) : T("", !0), c.value ? (R(), E("span", la, W(e.symbol), 1)) : T("", !0)], 14, ca))), 128))], 8, sa)
|
|
1307
1293
|
]),
|
|
1308
|
-
D("div",
|
|
1294
|
+
D("div", ua, [A(f, {
|
|
1309
1295
|
label: t.text.closeLabel,
|
|
1310
1296
|
"label-key": "common.close",
|
|
1311
1297
|
tone: "neutral",
|
|
1312
1298
|
onClick: r[1] ||= (e) => a("close")
|
|
1313
1299
|
}, null, 8, ["label"])])
|
|
1314
|
-
], 8,
|
|
1300
|
+
], 8, Xi)]));
|
|
1315
1301
|
}
|
|
1316
|
-
}),
|
|
1302
|
+
}), fa = ["aria-multiselectable", "aria-label"], pa = 4, ma = /* @__PURE__ */ j({
|
|
1317
1303
|
__name: "DropdownListbox",
|
|
1318
1304
|
props: {
|
|
1319
1305
|
open: { type: Boolean },
|
|
@@ -1324,8 +1310,8 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1324
1310
|
emits: ["close"],
|
|
1325
1311
|
setup(e, { emit: t }) {
|
|
1326
1312
|
let n = e;
|
|
1327
|
-
|
|
1328
|
-
let r = t, i = U(null), a = U(null), o =
|
|
1313
|
+
ur("DropdownListbox");
|
|
1314
|
+
let r = t, i = U(null), a = U(null), o = be(() => n.open, Me(n, "triggerRef")), s = !1;
|
|
1329
1315
|
J(() => n.open, (e) => {
|
|
1330
1316
|
e || (s = !!i.value?.contains(document.activeElement));
|
|
1331
1317
|
}, { flush: "sync" });
|
|
@@ -1338,10 +1324,10 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1338
1324
|
let r = {
|
|
1339
1325
|
width: document.documentElement.clientWidth || window.innerWidth,
|
|
1340
1326
|
height: document.documentElement.clientHeight || window.innerHeight
|
|
1341
|
-
}, { left: o, top: s } =
|
|
1327
|
+
}, { left: o, top: s } = st(t, {
|
|
1342
1328
|
width: t.width,
|
|
1343
1329
|
height: i.value.offsetHeight
|
|
1344
|
-
}, r,
|
|
1330
|
+
}, r, pa);
|
|
1345
1331
|
a.value = {
|
|
1346
1332
|
left: o,
|
|
1347
1333
|
top: s,
|
|
@@ -1369,16 +1355,16 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1369
1355
|
a.value = null, s && n.triggerRef?.focus(), s = !1;
|
|
1370
1356
|
return;
|
|
1371
1357
|
}
|
|
1372
|
-
h(), await
|
|
1358
|
+
h(), await Ee(), l(), await Ee();
|
|
1373
1359
|
let t = c(), r = t.find((e) => e.getAttribute("aria-selected") === "true") ?? t[0];
|
|
1374
1360
|
r?.scrollIntoView?.({ block: "nearest" }), r?.focus();
|
|
1375
1361
|
}, {
|
|
1376
1362
|
immediate: !0,
|
|
1377
1363
|
flush: "post"
|
|
1378
|
-
}),
|
|
1364
|
+
}), De(() => m());
|
|
1379
1365
|
function g(e) {
|
|
1380
|
-
if (
|
|
1381
|
-
|
|
1366
|
+
if (Mt(e)) {
|
|
1367
|
+
bt(c(), e.key) && e.preventDefault();
|
|
1382
1368
|
return;
|
|
1383
1369
|
}
|
|
1384
1370
|
if (![
|
|
@@ -1399,9 +1385,9 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1399
1385
|
}
|
|
1400
1386
|
t[r].scrollIntoView?.({ block: "nearest" }), t[r].focus();
|
|
1401
1387
|
}
|
|
1402
|
-
return (t, n) => e.open ? (R(), w(
|
|
1388
|
+
return (t, n) => e.open ? (R(), w(Ce, {
|
|
1403
1389
|
key: 0,
|
|
1404
|
-
to: G(
|
|
1390
|
+
to: G(yn)()
|
|
1405
1391
|
}, [D("div", {
|
|
1406
1392
|
ref_key: "panel",
|
|
1407
1393
|
ref: i,
|
|
@@ -1422,16 +1408,16 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1422
1408
|
...G(o).style.value
|
|
1423
1409
|
}),
|
|
1424
1410
|
onKeydown: g
|
|
1425
|
-
}, [V(t.$slots, "default")], 46,
|
|
1411
|
+
}, [V(t.$slots, "default")], 46, fa)], 8, ["to"])) : T("", !0);
|
|
1426
1412
|
}
|
|
1427
|
-
}),
|
|
1413
|
+
}), ha = ["data-glim-title"], ga = {
|
|
1428
1414
|
key: 0,
|
|
1429
1415
|
class: "glim-empty-glyph",
|
|
1430
1416
|
"aria-hidden": "true"
|
|
1431
|
-
},
|
|
1417
|
+
}, _a = { class: "glim-empty-title" }, va = {
|
|
1432
1418
|
key: 1,
|
|
1433
1419
|
class: "glim-empty-hint"
|
|
1434
|
-
},
|
|
1420
|
+
}, ya = /* @__PURE__ */ j({
|
|
1435
1421
|
__name: "EmptyState",
|
|
1436
1422
|
props: {
|
|
1437
1423
|
glyph: {},
|
|
@@ -1448,13 +1434,13 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1448
1434
|
"data-glim-title": e.title,
|
|
1449
1435
|
class: P(e.nested ? "glim-empty" : "glim-card glim-empty")
|
|
1450
1436
|
}, [
|
|
1451
|
-
e.glyph ? (R(), E("span",
|
|
1452
|
-
D("p",
|
|
1453
|
-
e.hint ? (R(), E("p",
|
|
1437
|
+
e.glyph ? (R(), E("span", ga, [(R(), w(H(e.glyph)))])) : T("", !0),
|
|
1438
|
+
D("p", _a, W(e.title), 1),
|
|
1439
|
+
e.hint ? (R(), E("p", va, W(e.hint), 1)) : T("", !0),
|
|
1454
1440
|
V(t.$slots, "default")
|
|
1455
|
-
], 10,
|
|
1441
|
+
], 10, ha));
|
|
1456
1442
|
}
|
|
1457
|
-
}),
|
|
1443
|
+
}), ba = ["id"], xa = /* @__PURE__ */ j({
|
|
1458
1444
|
__name: "FieldError",
|
|
1459
1445
|
props: { id: {} },
|
|
1460
1446
|
setup(e) {
|
|
@@ -1462,22 +1448,22 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1462
1448
|
"data-glim": "FieldError",
|
|
1463
1449
|
id: e.id,
|
|
1464
1450
|
class: "glim-field-error"
|
|
1465
|
-
}, [A(G(
|
|
1451
|
+
}, [A(G(p), { mark: G(Xe).fail }, null, 8, ["mark"]), V(t.$slots, "default")], 8, ba));
|
|
1466
1452
|
}
|
|
1467
|
-
}),
|
|
1453
|
+
}), Sa = /* @__PURE__ */ j({
|
|
1468
1454
|
__name: "Pill",
|
|
1469
1455
|
props: { tone: { default: "neutral" } },
|
|
1470
1456
|
setup(e) {
|
|
1471
|
-
let t = e, n = C(() =>
|
|
1457
|
+
let t = e, n = C(() => gn(t.tone));
|
|
1472
1458
|
return (e, t) => (R(), E("span", {
|
|
1473
1459
|
"data-glim": "Pill",
|
|
1474
1460
|
class: P(n.value)
|
|
1475
1461
|
}, [V(e.$slots, "default")], 2));
|
|
1476
1462
|
}
|
|
1477
|
-
}),
|
|
1463
|
+
}), Ca = { class: "glim-field-row-name" }, wa = {
|
|
1478
1464
|
key: 0,
|
|
1479
1465
|
class: "glim-field-row-controls"
|
|
1480
|
-
},
|
|
1466
|
+
}, Ta = /* @__PURE__ */ j({
|
|
1481
1467
|
__name: "FieldRow",
|
|
1482
1468
|
props: {
|
|
1483
1469
|
label: {},
|
|
@@ -1488,27 +1474,27 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1488
1474
|
},
|
|
1489
1475
|
setup(e) {
|
|
1490
1476
|
let t = e;
|
|
1491
|
-
|
|
1492
|
-
let n =
|
|
1477
|
+
Ae(ye, C(() => t.label));
|
|
1478
|
+
let n = Te(ve, !1), r = U(null);
|
|
1493
1479
|
return (t, i) => (R(), E("div", {
|
|
1494
1480
|
ref_key: "row",
|
|
1495
1481
|
ref: r,
|
|
1496
1482
|
"data-glim": "FieldRow",
|
|
1497
1483
|
class: P(["glim-field-row", { "glim-field-row--wide": e.wide }])
|
|
1498
|
-
}, [D("span",
|
|
1484
|
+
}, [D("span", Ca, [D("span", {
|
|
1499
1485
|
class: "glim-field-row-label",
|
|
1500
|
-
onClick: i[0] ||= (e) => G(
|
|
1486
|
+
onClick: i[0] ||= (e) => G(xn)(r.value)
|
|
1501
1487
|
}, [V(t.$slots, "label", {}, () => [k(W(e.label), 1)])]), e.hint ? (R(), w(Q, {
|
|
1502
1488
|
key: 0,
|
|
1503
1489
|
tip: e.hint
|
|
1504
|
-
}, null, 8, ["tip"])) : T("", !0)]), G(n) ? (R(), E("span",
|
|
1490
|
+
}, null, 8, ["tip"])) : T("", !0)]), G(n) ? (R(), E("span", wa, [V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w(Sa, {
|
|
1505
1491
|
key: 0,
|
|
1506
1492
|
class: "glim-num",
|
|
1507
1493
|
tone: e.tone
|
|
1508
1494
|
}, {
|
|
1509
1495
|
default: Y(() => [k(W(e.value), 1)]),
|
|
1510
1496
|
_: 1
|
|
1511
|
-
}, 8, ["tone"]))])])) : V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w(
|
|
1497
|
+
}, 8, ["tone"]))])])) : V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w(Sa, {
|
|
1512
1498
|
key: 0,
|
|
1513
1499
|
class: "glim-num",
|
|
1514
1500
|
tone: e.tone
|
|
@@ -1517,23 +1503,23 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1517
1503
|
_: 1
|
|
1518
1504
|
}, 8, ["tone"]))], void 0, 1)], 2));
|
|
1519
1505
|
}
|
|
1520
|
-
}),
|
|
1506
|
+
}), Ea = /* @__PURE__ */ j({
|
|
1521
1507
|
__name: "FieldRowGroup",
|
|
1522
1508
|
props: { columns: {} },
|
|
1523
1509
|
setup(e) {
|
|
1524
|
-
return
|
|
1510
|
+
return Ae(ve, !0), (t, n) => (R(), E("div", {
|
|
1525
1511
|
"data-glim": "FieldRowGroup",
|
|
1526
1512
|
class: "glim-field-row-group",
|
|
1527
1513
|
style: F(e.columns ? { "--field-columns": e.columns } : void 0)
|
|
1528
1514
|
}, [V(t.$slots, "default")], 4));
|
|
1529
1515
|
}
|
|
1530
|
-
}),
|
|
1516
|
+
}), Da = {
|
|
1531
1517
|
key: 0,
|
|
1532
1518
|
class: "glim-modal-foot"
|
|
1533
|
-
},
|
|
1519
|
+
}, Oa = {
|
|
1534
1520
|
key: 0,
|
|
1535
1521
|
class: "glim-window-start"
|
|
1536
|
-
},
|
|
1522
|
+
}, ka = { class: "glim-window-actions" }, Aa = /* @__PURE__ */ j({
|
|
1537
1523
|
__name: "WindowFootRow",
|
|
1538
1524
|
props: {
|
|
1539
1525
|
actions: {},
|
|
@@ -1543,24 +1529,24 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1543
1529
|
},
|
|
1544
1530
|
emits: ["close"],
|
|
1545
1531
|
setup(e, { emit: t }) {
|
|
1546
|
-
let n = e, r = t, i = C(() =>
|
|
1532
|
+
let n = e, r = t, i = C(() => pr(n.actions, n.hasStart, {
|
|
1547
1533
|
cancel: {
|
|
1548
1534
|
label: n.text.cancel,
|
|
1549
1535
|
labelKey: "common.cancel",
|
|
1550
|
-
glyph:
|
|
1536
|
+
glyph: le,
|
|
1551
1537
|
wayOut: !0
|
|
1552
1538
|
},
|
|
1553
1539
|
close: {
|
|
1554
1540
|
label: n.text.close,
|
|
1555
1541
|
labelKey: "common.close",
|
|
1556
|
-
glyph:
|
|
1542
|
+
glyph: _,
|
|
1557
1543
|
wayOut: !0
|
|
1558
1544
|
}
|
|
1559
1545
|
}));
|
|
1560
1546
|
function a(e) {
|
|
1561
1547
|
e.onClick?.() !== !1 && r("close");
|
|
1562
1548
|
}
|
|
1563
|
-
return (t, n) => i.value.length ? (R(), E("div",
|
|
1549
|
+
return (t, n) => i.value.length ? (R(), E("div", Da, [e.hasStart ? (R(), E("span", Oa, [V(t.$slots, "start", {}, () => [k(W(e.start), 1)])])) : T("", !0), D("div", ka, [(R(!0), E(S, null, B(i.value, (e, t) => (R(), w(f, N({ ref_for: !0 }, e.attrs, {
|
|
1564
1550
|
key: t,
|
|
1565
1551
|
label: e.label,
|
|
1566
1552
|
"label-key": e.labelKey,
|
|
@@ -1579,13 +1565,13 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1579
1565
|
"title",
|
|
1580
1566
|
"disabled",
|
|
1581
1567
|
"onClick"
|
|
1582
|
-
]))), 128))])) : T("", !0);
|
|
1568
|
+
]))), 128))])])) : T("", !0);
|
|
1583
1569
|
}
|
|
1584
|
-
}),
|
|
1570
|
+
}), ja = [
|
|
1585
1571
|
"data-glim-title",
|
|
1586
1572
|
"aria-labelledby",
|
|
1587
1573
|
"aria-label"
|
|
1588
|
-
],
|
|
1574
|
+
], Ma = ["id"], Na = { class: "glim-modal-body glim-window-body" }, Pa = /* @__PURE__ */ j({
|
|
1589
1575
|
inheritAttrs: !1,
|
|
1590
1576
|
__name: "Window",
|
|
1591
1577
|
props: {
|
|
@@ -1601,19 +1587,19 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1601
1587
|
},
|
|
1602
1588
|
emits: ["close"],
|
|
1603
1589
|
setup(t, { expose: n, emit: r }) {
|
|
1604
|
-
let i = t, a = r, o =
|
|
1590
|
+
let i = t, a = r, o = Pe(), s = U(null), c = K(), l = Et(), u = C(() => Dt(i.start) || !!o.start), d;
|
|
1605
1591
|
function f() {
|
|
1606
1592
|
d?.(), a("close");
|
|
1607
1593
|
}
|
|
1608
1594
|
L(() => {
|
|
1609
|
-
d =
|
|
1610
|
-
}),
|
|
1611
|
-
d?.(),
|
|
1595
|
+
d = qn(() => s.value, f), s.value && fr(s.value)?.focus();
|
|
1596
|
+
}), Oe(() => {
|
|
1597
|
+
d?.(), kn(l);
|
|
1612
1598
|
}), n({ card: s });
|
|
1613
1599
|
function p() {
|
|
1614
|
-
i.closeOnBackdrop && !
|
|
1600
|
+
i.closeOnBackdrop && !Wt() && f();
|
|
1615
1601
|
}
|
|
1616
|
-
return (n, r) => (R(), w(
|
|
1602
|
+
return (n, r) => (R(), w(Ce, { to: G(yn)() }, [D("div", {
|
|
1617
1603
|
class: "glim-modal-backdrop",
|
|
1618
1604
|
onMousedown: X(p, ["self"])
|
|
1619
1605
|
}, [D("div", N({
|
|
@@ -1643,9 +1629,9 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1643
1629
|
}, {
|
|
1644
1630
|
default: Y(() => [V(n.$slots, "title", {}, () => [k(W(t.title), 1)])]),
|
|
1645
1631
|
_: 3
|
|
1646
|
-
})], 8,
|
|
1647
|
-
D("div",
|
|
1648
|
-
A(
|
|
1632
|
+
})], 8, Ma),
|
|
1633
|
+
D("div", Na, [V(n.$slots, "default")]),
|
|
1634
|
+
A(Aa, {
|
|
1649
1635
|
actions: t.actions,
|
|
1650
1636
|
start: t.start,
|
|
1651
1637
|
"has-start": u.value,
|
|
@@ -1661,9 +1647,9 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1661
1647
|
"has-start",
|
|
1662
1648
|
"text"
|
|
1663
1649
|
])
|
|
1664
|
-
], 16,
|
|
1650
|
+
], 16, ja)], 32)], 8, ["to"]));
|
|
1665
1651
|
}
|
|
1666
|
-
}),
|
|
1652
|
+
}), Fa = { class: "glim-fortress-text" }, Ia = /* @__PURE__ */ j({
|
|
1667
1653
|
__name: "FortressDoubtWindow",
|
|
1668
1654
|
props: {
|
|
1669
1655
|
app: {},
|
|
@@ -1673,14 +1659,14 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1673
1659
|
onClose: { type: Function }
|
|
1674
1660
|
},
|
|
1675
1661
|
setup(e) {
|
|
1676
|
-
let t = e, n = C(() =>
|
|
1662
|
+
let t = e, n = C(() => gt(t.text, t.app, t.instance)), r = C(() => [{
|
|
1677
1663
|
label: n.value.open,
|
|
1678
1664
|
labelKey: "open",
|
|
1679
1665
|
primary: !0,
|
|
1680
1666
|
attrs: { "data-fortress": "open-anyway" },
|
|
1681
1667
|
onClick: () => t.onOpen()
|
|
1682
1668
|
}]);
|
|
1683
|
-
return (t, i) => (R(), w(
|
|
1669
|
+
return (t, i) => (R(), w(Pa, {
|
|
1684
1670
|
"data-glim": "FortressDoubtWindow",
|
|
1685
1671
|
title: n.value.title,
|
|
1686
1672
|
actions: r.value,
|
|
@@ -1690,7 +1676,7 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1690
1676
|
},
|
|
1691
1677
|
onClose: i[0] ||= (t) => e.onClose()
|
|
1692
1678
|
}, {
|
|
1693
|
-
default: Y(() => [D("div",
|
|
1679
|
+
default: Y(() => [D("div", Fa, [D("p", null, W(n.value.body), 1)])]),
|
|
1694
1680
|
_: 1
|
|
1695
1681
|
}, 8, [
|
|
1696
1682
|
"title",
|
|
@@ -1698,32 +1684,32 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1698
1684
|
"text"
|
|
1699
1685
|
]));
|
|
1700
1686
|
}
|
|
1701
|
-
}),
|
|
1687
|
+
}), La = ["data-glim-title"], Ra = { class: "glim-instance-top" }, za = {
|
|
1702
1688
|
key: 0,
|
|
1703
1689
|
class: "glim-instance-mark",
|
|
1704
1690
|
"aria-hidden": "true"
|
|
1705
|
-
},
|
|
1691
|
+
}, Ba = ["src"], Va = { class: "glim-instance-main" }, Ha = { class: "glim-instance-name" }, Ua = { class: "glim-instance-title" }, Wa = {
|
|
1706
1692
|
key: 0,
|
|
1707
1693
|
class: "glim-instance-badges"
|
|
1708
|
-
},
|
|
1694
|
+
}, Ga = {
|
|
1709
1695
|
key: 0,
|
|
1710
1696
|
class: "glim-eyebrow"
|
|
1711
|
-
},
|
|
1697
|
+
}, Ka = {
|
|
1712
1698
|
key: 1,
|
|
1713
1699
|
class: "glim-instance-facts glim-num"
|
|
1714
|
-
},
|
|
1700
|
+
}, qa = {
|
|
1715
1701
|
key: 2,
|
|
1716
1702
|
class: "glim-instance-figures"
|
|
1717
|
-
},
|
|
1703
|
+
}, Ja = { class: "glim-num" }, Ya = {
|
|
1718
1704
|
key: 3,
|
|
1719
1705
|
class: "glim-instance-acts"
|
|
1720
|
-
},
|
|
1706
|
+
}, Xa = {
|
|
1721
1707
|
key: 0,
|
|
1722
1708
|
class: "glim-instance-body"
|
|
1723
|
-
},
|
|
1709
|
+
}, Za = {
|
|
1724
1710
|
key: 1,
|
|
1725
1711
|
class: "glim-instance-acts"
|
|
1726
|
-
},
|
|
1712
|
+
}, Qa = /* @__PURE__ */ j({
|
|
1727
1713
|
__name: "InstanceCard",
|
|
1728
1714
|
props: {
|
|
1729
1715
|
logo: {},
|
|
@@ -1734,34 +1720,34 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1734
1720
|
hueIndex: {}
|
|
1735
1721
|
},
|
|
1736
1722
|
setup(e) {
|
|
1737
|
-
let t = e, n = C(() => (t.facts ?? []).filter(Boolean).join(" · ")), r = C(() => t.hueIndex === void 0 ? void 0 :
|
|
1723
|
+
let t = e, n = C(() => (t.facts ?? []).filter(Boolean).join(" · ")), r = C(() => t.hueIndex === void 0 ? void 0 : kt(t.hueIndex));
|
|
1738
1724
|
return (t, i) => (R(), E("div", {
|
|
1739
1725
|
"data-glim": "InstanceCard",
|
|
1740
1726
|
"data-glim-title": e.name,
|
|
1741
1727
|
class: P(["glim-card glim-instance", e.hueIndex !== void 0 && "glim-hue"]),
|
|
1742
1728
|
style: F(r.value)
|
|
1743
1729
|
}, [
|
|
1744
|
-
D("div",
|
|
1730
|
+
D("div", Ra, [t.$slots.logo ? (R(), E("span", za, [V(t.$slots, "logo")])) : e.logo ? (R(), E("img", {
|
|
1745
1731
|
key: 1,
|
|
1746
1732
|
class: "glim-instance-mark",
|
|
1747
1733
|
src: e.logo,
|
|
1748
1734
|
alt: "",
|
|
1749
1735
|
draggable: "false"
|
|
1750
|
-
}, null, 8,
|
|
1751
|
-
D("div",
|
|
1752
|
-
e.eyebrow ? (R(), E("span",
|
|
1753
|
-
n.value ? (R(), E("p",
|
|
1754
|
-
e.figures?.length ? (R(), E("dl",
|
|
1755
|
-
t.$slots.actions && !t.$slots.default ? (R(), E("div",
|
|
1736
|
+
}, null, 8, Ba)) : T("", !0), D("div", Va, [
|
|
1737
|
+
D("div", Ha, [D("h3", Ua, W(e.name), 1), t.$slots.badges ? (R(), E("span", Wa, [V(t.$slots, "badges")])) : T("", !0)]),
|
|
1738
|
+
e.eyebrow ? (R(), E("span", Ga, W(e.eyebrow), 1)) : T("", !0),
|
|
1739
|
+
n.value ? (R(), E("p", Ka, W(n.value), 1)) : T("", !0),
|
|
1740
|
+
e.figures?.length ? (R(), E("dl", qa, [(R(!0), E(S, null, B(e.figures, (e) => (R(), E("div", { key: e.label }, [D("dt", null, W(e.label), 1), D("dd", Ja, W(e.value), 1)]))), 128))])) : T("", !0),
|
|
1741
|
+
t.$slots.actions && !t.$slots.default ? (R(), E("div", Ya, [V(t.$slots, "actions")])) : T("", !0)
|
|
1756
1742
|
])]),
|
|
1757
|
-
t.$slots.default ? (R(), E("div",
|
|
1758
|
-
t.$slots.actions && t.$slots.default ? (R(), E("div",
|
|
1759
|
-
], 14,
|
|
1743
|
+
t.$slots.default ? (R(), E("div", Xa, [V(t.$slots, "default")])) : T("", !0),
|
|
1744
|
+
t.$slots.actions && t.$slots.default ? (R(), E("div", Za, [V(t.$slots, "actions")])) : T("", !0)
|
|
1745
|
+
], 14, La));
|
|
1760
1746
|
}
|
|
1761
|
-
}),
|
|
1747
|
+
}), $a = {
|
|
1762
1748
|
"data-glim": "PresenceBadges",
|
|
1763
1749
|
style: { display: "contents" }
|
|
1764
|
-
},
|
|
1750
|
+
}, eo = /* @__PURE__ */ j({
|
|
1765
1751
|
__name: "PresenceBadges",
|
|
1766
1752
|
props: {
|
|
1767
1753
|
instance: {},
|
|
@@ -1773,24 +1759,24 @@ var ur = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
|
|
|
1773
1759
|
checking: n.text.checking,
|
|
1774
1760
|
away: n.text.away
|
|
1775
1761
|
})[n.instance.presence];
|
|
1776
|
-
return (n, i) => (R(), E("span",
|
|
1762
|
+
return (n, i) => (R(), E("span", $a, [t.instance.relay ? (R(), w(e, { key: 0 }, {
|
|
1777
1763
|
default: Y(() => [k(W(t.text.viaRelay), 1)]),
|
|
1778
1764
|
_: 1
|
|
1779
|
-
})) : T("", !0), A(e, { tone: G(
|
|
1765
|
+
})) : T("", !0), A(e, { tone: G(bn)(t.instance.presence) }, {
|
|
1780
1766
|
default: Y(() => [k(W(r()), 1)]),
|
|
1781
1767
|
_: 1
|
|
1782
1768
|
}, 8, ["tone"])]));
|
|
1783
1769
|
}
|
|
1784
1770
|
});
|
|
1785
1771
|
// src/fortressParts.ts
|
|
1786
|
-
function
|
|
1787
|
-
return e ?
|
|
1772
|
+
function to(e) {
|
|
1773
|
+
return e ? me(`device${e.charAt(0).toUpperCase()}${e.slice(1)}`) : void 0;
|
|
1788
1774
|
}
|
|
1789
1775
|
// src/FortressAppCard.vue?vue&type=script&setup=true&lang.ts
|
|
1790
|
-
var
|
|
1776
|
+
var no = { class: "glim-instance-rows" }, ro = ["data-instance"], io = {
|
|
1791
1777
|
class: "glim-instance-device",
|
|
1792
1778
|
"aria-hidden": "true"
|
|
1793
|
-
},
|
|
1779
|
+
}, ao = { class: "glim-instance-row-text" }, oo = { class: "glim-instance-row-name" }, so = { class: "glim-instance-row-sub glim-num" }, co = { class: "glim-instance-row-end" }, lo = /* @__PURE__ */ j({
|
|
1794
1780
|
inheritAttrs: !1,
|
|
1795
1781
|
__name: "FortressAppCard",
|
|
1796
1782
|
props: {
|
|
@@ -1803,15 +1789,15 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
1803
1789
|
removeKey: { default: "delete" }
|
|
1804
1790
|
},
|
|
1805
1791
|
setup(t) {
|
|
1806
|
-
let n = t, r = C(() =>
|
|
1792
|
+
let n = t, r = C(() => et(n.app, n.text, n.lang)), i = C(() => r.value.rows.length === 0), a = (e) => ({
|
|
1807
1793
|
connected: n.text.connected,
|
|
1808
1794
|
checking: n.text.checking,
|
|
1809
1795
|
away: n.text.away
|
|
1810
|
-
})[e.presence], o = (e) =>
|
|
1796
|
+
})[e.presence], o = (e) => to(e.deviceKind), s = (e) => Ut(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);
|
|
1811
1797
|
function d(e) {
|
|
1812
|
-
e.doubt ? u.value = e :
|
|
1798
|
+
e.doubt ? u.value = e : en(n.app, e, n.onOpen);
|
|
1813
1799
|
}
|
|
1814
|
-
return (n, p) => (R(), E(S, null, [A(
|
|
1800
|
+
return (n, p) => (R(), E(S, null, [A(Qa, N(n.$attrs, {
|
|
1815
1801
|
"data-glim": "FortressAppCard",
|
|
1816
1802
|
"data-fortress-app": t.app.id,
|
|
1817
1803
|
logo: t.app.logo,
|
|
@@ -1838,7 +1824,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
1838
1824
|
default: Y(() => [k(W(r.value.needs), 1)]),
|
|
1839
1825
|
_: 1
|
|
1840
1826
|
})) : T("", !0),
|
|
1841
|
-
A(
|
|
1827
|
+
A(eo, {
|
|
1842
1828
|
instance: r.value.main,
|
|
1843
1829
|
text: t.text
|
|
1844
1830
|
}, null, 8, ["instance", "text"])
|
|
@@ -1846,15 +1832,15 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
1846
1832
|
_: 2
|
|
1847
1833
|
}, [i.value ? void 0 : {
|
|
1848
1834
|
name: "default",
|
|
1849
|
-
fn: Y(() => [D("ul",
|
|
1835
|
+
fn: Y(() => [D("ul", no, [(R(!0), E(S, null, B(r.value.rows, ({ instance: n, sub: r, open: i }) => (R(), E("li", {
|
|
1850
1836
|
key: n.id,
|
|
1851
1837
|
class: "glim-instance-row",
|
|
1852
1838
|
"data-instance": n.id
|
|
1853
1839
|
}, [
|
|
1854
|
-
D("span",
|
|
1855
|
-
D("span",
|
|
1856
|
-
D("span",
|
|
1857
|
-
A(e, { tone: G(
|
|
1840
|
+
D("span", io, [o(n) ? (R(), w(H(o(n)), { key: 0 })) : T("", !0)]),
|
|
1841
|
+
D("span", ao, [D("span", oo, W(n.device), 1), D("span", so, W(r), 1)]),
|
|
1842
|
+
D("span", co, [
|
|
1843
|
+
A(e, { tone: G(bn)(n.presence) }, {
|
|
1858
1844
|
default: Y(() => [k(W(a(n)), 1)]),
|
|
1859
1845
|
_: 2
|
|
1860
1846
|
}, 1032, ["tone"]),
|
|
@@ -1890,7 +1876,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
1890
1876
|
"onClick"
|
|
1891
1877
|
])) : T("", !0)
|
|
1892
1878
|
])
|
|
1893
|
-
], 8,
|
|
1879
|
+
], 8, ro))), 128))])]),
|
|
1894
1880
|
key: "0"
|
|
1895
1881
|
}, l.value ? {
|
|
1896
1882
|
name: "actions",
|
|
@@ -1921,12 +1907,12 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
1921
1907
|
"eyebrow",
|
|
1922
1908
|
"facts",
|
|
1923
1909
|
"hue-index"
|
|
1924
|
-
]), u.value ? (R(), w(
|
|
1910
|
+
]), u.value ? (R(), w(Ia, {
|
|
1925
1911
|
key: 0,
|
|
1926
1912
|
app: t.app,
|
|
1927
1913
|
instance: u.value,
|
|
1928
1914
|
text: t.text,
|
|
1929
|
-
"on-open": () => G(
|
|
1915
|
+
"on-open": () => G(en)(t.app, u.value, t.onOpen),
|
|
1930
1916
|
"on-close": () => u.value = null
|
|
1931
1917
|
}, null, 8, [
|
|
1932
1918
|
"app",
|
|
@@ -1936,14 +1922,14 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
1936
1922
|
"on-close"
|
|
1937
1923
|
])) : T("", !0)], 64));
|
|
1938
1924
|
}
|
|
1939
|
-
}),
|
|
1925
|
+
}), uo = [
|
|
1940
1926
|
"href",
|
|
1941
1927
|
"data-sel-id",
|
|
1942
1928
|
"aria-selected",
|
|
1943
1929
|
"aria-current",
|
|
1944
1930
|
"aria-describedby",
|
|
1945
1931
|
"tabindex"
|
|
1946
|
-
],
|
|
1932
|
+
], fo = [
|
|
1947
1933
|
"data-sel-id",
|
|
1948
1934
|
"id",
|
|
1949
1935
|
"role",
|
|
@@ -1956,7 +1942,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
1956
1942
|
"aria-hidden",
|
|
1957
1943
|
"disabled",
|
|
1958
1944
|
"tabindex"
|
|
1959
|
-
],
|
|
1945
|
+
], po = ["id"], mo = /* @__PURE__ */ j({
|
|
1960
1946
|
__name: "SelectorSegment",
|
|
1961
1947
|
props: {
|
|
1962
1948
|
item: {},
|
|
@@ -1980,7 +1966,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
1980
1966
|
},
|
|
1981
1967
|
emits: ["select"],
|
|
1982
1968
|
setup(e, { emit: i }) {
|
|
1983
|
-
let a = e, o = i, s = C(() =>
|
|
1969
|
+
let a = e, o = i, s = C(() => Nn({
|
|
1984
1970
|
strip: a.strip,
|
|
1985
1971
|
orientation: a.orientation,
|
|
1986
1972
|
size: a.size,
|
|
@@ -2030,7 +2016,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2030
2016
|
key: 1,
|
|
2031
2017
|
"data-sel-label": "",
|
|
2032
2018
|
class: P(s.value.labelClass)
|
|
2033
|
-
}, W(e.item.label), 3))], 16,
|
|
2019
|
+
}, W(e.item.label), 3))], 16, uo)) : (R(), E(S, { key: 1 }, [A(G(r), N({
|
|
2034
2020
|
on: u.value,
|
|
2035
2021
|
show: G(c).show,
|
|
2036
2022
|
hide: G(c).hide
|
|
@@ -2039,7 +2025,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2039
2025
|
ref: m,
|
|
2040
2026
|
type: "button",
|
|
2041
2027
|
"data-sel-id": e.item.id,
|
|
2042
|
-
id: e.panelId && f.value ? G(
|
|
2028
|
+
id: e.panelId && f.value ? G(Rn)(e.panelId, e.item.id) : void 0,
|
|
2043
2029
|
role: e.strip.kind === "toggle" ? void 0 : e.strip.kind,
|
|
2044
2030
|
"aria-selected": f.value ? e.on : void 0,
|
|
2045
2031
|
"aria-controls": e.panelId && f.value && e.on ? e.panelId : void 0,
|
|
@@ -2061,7 +2047,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2061
2047
|
key: 1,
|
|
2062
2048
|
"data-sel-label": "",
|
|
2063
2049
|
class: P(s.value.labelClass)
|
|
2064
|
-
}, W(e.item.label), 3))], 16,
|
|
2050
|
+
}, W(e.item.label), 3))], 16, fo)]),
|
|
2065
2051
|
_: 1
|
|
2066
2052
|
}, 16, [
|
|
2067
2053
|
"on",
|
|
@@ -2071,16 +2057,16 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2071
2057
|
key: 0,
|
|
2072
2058
|
id: G(l),
|
|
2073
2059
|
hidden: ""
|
|
2074
|
-
}, W(s.value.tip), 9,
|
|
2060
|
+
}, W(s.value.tip), 9, po)) : T("", !0)], 64)), A(t, { state: G(c) }, null, 8, ["state"])], 64));
|
|
2075
2061
|
}
|
|
2076
|
-
}),
|
|
2062
|
+
}), ho = [
|
|
2077
2063
|
"role",
|
|
2078
2064
|
"aria-label",
|
|
2079
2065
|
"aria-orientation"
|
|
2080
|
-
],
|
|
2066
|
+
], go = {
|
|
2081
2067
|
key: 0,
|
|
2082
2068
|
class: "glim-sel-list"
|
|
2083
|
-
},
|
|
2069
|
+
}, _o = /* @__PURE__ */ j({
|
|
2084
2070
|
__name: "Selector",
|
|
2085
2071
|
props: {
|
|
2086
2072
|
items: {},
|
|
@@ -2126,10 +2112,10 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2126
2112
|
setup(e, { emit: t }) {
|
|
2127
2113
|
let n = e, r = t, i = C(() => n.modelValue);
|
|
2128
2114
|
function a(e) {
|
|
2129
|
-
let t = U(
|
|
2130
|
-
return
|
|
2115
|
+
let t = U(Ht(e));
|
|
2116
|
+
return De(Zn(e, () => t.value = Ht(e))), t;
|
|
2131
2117
|
}
|
|
2132
|
-
let o = x(() => n.label), s = C(() => n.inline || n.label === void 0 && o.value !== void 0), c = l(
|
|
2118
|
+
let o = x(() => n.label), s = C(() => n.inline || n.label === void 0 && o.value !== void 0), c = l(Fn(n.size, n.orientation)), u = a(Ze), d = C(() => zn({
|
|
2133
2119
|
mode: c.value,
|
|
2134
2120
|
select: n.select === "many" ? "many" : "one",
|
|
2135
2121
|
activation: n.activation,
|
|
@@ -2154,7 +2140,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2154
2140
|
i && r(i);
|
|
2155
2141
|
}, { flush: "post" });
|
|
2156
2142
|
}
|
|
2157
|
-
g(() => d.value.counted, (e) => d.value.counted ?
|
|
2143
|
+
g(() => d.value.counted, (e) => d.value.counted ? ft(e) : void 0), g(() => [
|
|
2158
2144
|
n.orientation,
|
|
2159
2145
|
d.value.pinWidth,
|
|
2160
2146
|
n.fit,
|
|
@@ -2171,14 +2157,14 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2171
2157
|
return;
|
|
2172
2158
|
}
|
|
2173
2159
|
let { pinWidth: t, canSqueeze: r, canList: i } = d.value;
|
|
2174
|
-
return
|
|
2160
|
+
return dr(e, {
|
|
2175
2161
|
pinWidth: t,
|
|
2176
2162
|
fit: n.fit,
|
|
2177
2163
|
canSqueeze: r,
|
|
2178
2164
|
canList: i
|
|
2179
2165
|
}, (e) => p.value = e);
|
|
2180
2166
|
});
|
|
2181
|
-
let _ = C(() =>
|
|
2167
|
+
let _ = C(() => In({
|
|
2182
2168
|
layout: p.value,
|
|
2183
2169
|
inline: s.value,
|
|
2184
2170
|
fit: n.fit
|
|
@@ -2186,11 +2172,11 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2186
2172
|
value: String(e.id),
|
|
2187
2173
|
label: e.label,
|
|
2188
2174
|
glyph: e.glyph,
|
|
2189
|
-
disabled:
|
|
2190
|
-
}))), te = C(() => i.value === null ? null : String(i.value)), y = C(() => n.select === "many"), ne = (e) => y.value ? (i.value ?? []).includes(e) : i.value === e,
|
|
2175
|
+
disabled: re.value[t]
|
|
2176
|
+
}))), te = C(() => i.value === null ? null : String(i.value)), y = C(() => n.select === "many"), ne = (e) => y.value ? (i.value ?? []).includes(e) : i.value === e, re = C(() => n.items.map((e) => n.disabled || !!e.disabled)), b = C(() => jn(re.value, n.items.findIndex((e) => ne(e.id))));
|
|
2191
2177
|
function ie(e) {
|
|
2192
2178
|
r("press", e);
|
|
2193
|
-
let t = y.value ?
|
|
2179
|
+
let t = y.value ? rr(i.value ?? [], e, n.items.map((e) => e.id)) : e;
|
|
2194
2180
|
t !== i.value && r("update:modelValue", t);
|
|
2195
2181
|
}
|
|
2196
2182
|
function ae(e) {
|
|
@@ -2204,7 +2190,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2204
2190
|
e.preventDefault(), t.click();
|
|
2205
2191
|
return;
|
|
2206
2192
|
}
|
|
2207
|
-
let r =
|
|
2193
|
+
let r = An(f.value, e.key, n.orientation);
|
|
2208
2194
|
if (!r) return;
|
|
2209
2195
|
e.preventDefault();
|
|
2210
2196
|
let i = n.items.find((e) => String(e.id) === r.dataset.selId);
|
|
@@ -2220,14 +2206,14 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2220
2206
|
class: P([d.value.className, { "glim-sel--listed": v.value }]),
|
|
2221
2207
|
style: F(_.value.track),
|
|
2222
2208
|
onKeydown: oe
|
|
2223
|
-
}, [(R(!0), E(S, null, B(e.items, (t, n) => (R(), w(
|
|
2209
|
+
}, [(R(!0), E(S, null, B(e.items, (t, n) => (R(), w(mo, {
|
|
2224
2210
|
key: t.id,
|
|
2225
2211
|
item: t,
|
|
2226
2212
|
index: n,
|
|
2227
2213
|
strip: d.value,
|
|
2228
2214
|
on: ne(t.id),
|
|
2229
|
-
disabled:
|
|
2230
|
-
roved: n ===
|
|
2215
|
+
disabled: re.value[n],
|
|
2216
|
+
roved: n === b.value,
|
|
2231
2217
|
listed: v.value,
|
|
2232
2218
|
share: e.orientation === "vertical" ? {} : _.value.segment,
|
|
2233
2219
|
squeezed: p.value?.fit === "squeezed",
|
|
@@ -2261,7 +2247,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2261
2247
|
"hue-offset",
|
|
2262
2248
|
"panel-id",
|
|
2263
2249
|
"onSelect"
|
|
2264
|
-
]))), 128)), v.value ? (R(), E("div",
|
|
2250
|
+
]))), 128)), v.value ? (R(), E("div", go, [A(xe, {
|
|
2265
2251
|
"model-value": te.value,
|
|
2266
2252
|
label: G(o) ?? "",
|
|
2267
2253
|
"hide-label": "",
|
|
@@ -2269,7 +2255,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2269
2255
|
width: "fill",
|
|
2270
2256
|
size: e.size === "sm" ? "row" : "field",
|
|
2271
2257
|
options: ee.value,
|
|
2272
|
-
disabled:
|
|
2258
|
+
disabled: re.value.every(Boolean),
|
|
2273
2259
|
"onUpdate:modelValue": ae
|
|
2274
2260
|
}, null, 8, [
|
|
2275
2261
|
"model-value",
|
|
@@ -2277,18 +2263,18 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2277
2263
|
"size",
|
|
2278
2264
|
"options",
|
|
2279
2265
|
"disabled"
|
|
2280
|
-
])])) : T("", !0)], 46,
|
|
2266
|
+
])])) : T("", !0)], 46, ho));
|
|
2281
2267
|
}
|
|
2282
|
-
}),
|
|
2268
|
+
}), vo = {
|
|
2283
2269
|
key: 0,
|
|
2284
2270
|
class: "glim-toggle-label"
|
|
2285
|
-
},
|
|
2271
|
+
}, yo = [
|
|
2286
2272
|
"aria-checked",
|
|
2287
2273
|
"aria-label",
|
|
2288
2274
|
"aria-disabled",
|
|
2289
2275
|
"aria-describedby",
|
|
2290
2276
|
"disabled"
|
|
2291
|
-
],
|
|
2277
|
+
], bo = ["id"], xo = /* @__PURE__ */ j({
|
|
2292
2278
|
inheritAttrs: !1,
|
|
2293
2279
|
__name: "Toggle",
|
|
2294
2280
|
props: /*@__PURE__*/ M({
|
|
@@ -2312,9 +2298,9 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2312
2298
|
emits: ["update:modelValue"],
|
|
2313
2299
|
setup(e) {
|
|
2314
2300
|
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;
|
|
2315
|
-
|
|
2301
|
+
De(() => u?.());
|
|
2316
2302
|
function d() {
|
|
2317
|
-
r.refused ? (u?.(), u =
|
|
2303
|
+
r.refused ? (u?.(), u = Bn(l.value)) : i.value = !i.value;
|
|
2318
2304
|
}
|
|
2319
2305
|
return (n, r) => (R(), E(S, null, [
|
|
2320
2306
|
D("span", {
|
|
@@ -2323,7 +2309,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2323
2309
|
"data-glim": "Toggle",
|
|
2324
2310
|
class: P(["glim-toggle", n.$attrs.class]),
|
|
2325
2311
|
style: F(n.$attrs.style)
|
|
2326
|
-
}, [o.value ? (R(), E("span",
|
|
2312
|
+
}, [o.value ? (R(), E("span", vo, W(e.label), 1)) : T("", !0), D("button", N({
|
|
2327
2313
|
...n.$attrs,
|
|
2328
2314
|
class: void 0,
|
|
2329
2315
|
style: void 0
|
|
@@ -2342,25 +2328,25 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2342
2328
|
onMouseleave: r[1] ||= (...e) => G(s).hide && G(s).hide(...e),
|
|
2343
2329
|
onFocus: r[2] ||= (...e) => G(s).showOnFocus && G(s).showOnFocus(...e),
|
|
2344
2330
|
onBlur: r[3] ||= (...e) => G(s).hide && G(s).hide(...e)
|
|
2345
|
-
}), [...r[4] ||= [D("span", { class: "glim-toggle-thumb" }, null, -1)]], 16,
|
|
2331
|
+
}), [...r[4] ||= [D("span", { class: "glim-toggle-thumb" }, null, -1)]], 16, yo)], 6),
|
|
2346
2332
|
e.refused ? (R(), E("span", {
|
|
2347
2333
|
key: 0,
|
|
2348
2334
|
id: G(c),
|
|
2349
2335
|
class: "glim-toggle-refusal"
|
|
2350
|
-
}, W(e.refused), 9,
|
|
2336
|
+
}, W(e.refused), 9, bo)) : T("", !0),
|
|
2351
2337
|
A(t, { state: G(s) }, null, 8, ["state"])
|
|
2352
2338
|
], 64));
|
|
2353
2339
|
}
|
|
2354
|
-
}),
|
|
2340
|
+
}), So = {
|
|
2355
2341
|
key: 0,
|
|
2356
2342
|
class: "glim-fortress-sub"
|
|
2357
|
-
},
|
|
2343
|
+
}, Co = { class: "glim-permissions" }, wo = ["data-permission"], To = {
|
|
2358
2344
|
class: "glim-permission-pair",
|
|
2359
2345
|
"aria-hidden": "true"
|
|
2360
|
-
},
|
|
2346
|
+
}, Eo = ["src"], Do = { class: "glim-permission-to" }, Oo = ["src"], ko = { class: "glim-permission-text" }, Ao = { class: "glim-permission-title" }, jo = {
|
|
2361
2347
|
key: 0,
|
|
2362
2348
|
class: "glim-fortress-sub"
|
|
2363
|
-
},
|
|
2349
|
+
}, Mo = /* @__PURE__ */ j({
|
|
2364
2350
|
__name: "FortressPermissions",
|
|
2365
2351
|
props: {
|
|
2366
2352
|
text: {},
|
|
@@ -2372,7 +2358,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2372
2358
|
hueIndex: {}
|
|
2373
2359
|
},
|
|
2374
2360
|
setup(e) {
|
|
2375
|
-
let t = e, n = z("all"), r = C(() =>
|
|
2361
|
+
let t = e, n = z("all"), r = C(() => sn(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(() => [{
|
|
2376
2362
|
id: "all",
|
|
2377
2363
|
label: `${t.text.all} ${t.permissions.length}`
|
|
2378
2364
|
}, {
|
|
@@ -2387,15 +2373,15 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2387
2373
|
}
|
|
2388
2374
|
t.notify?.(n.error ?? t.text.failed, "fail");
|
|
2389
2375
|
let r = document.querySelector(`[data-permission="${CSS.escape(e.id)}"] .glim-toggle`);
|
|
2390
|
-
r &&
|
|
2376
|
+
r && Bn(r);
|
|
2391
2377
|
}
|
|
2392
|
-
return (t, r) => (R(), w(
|
|
2378
|
+
return (t, r) => (R(), w(_r, {
|
|
2393
2379
|
"data-glim": "FortressPermissions",
|
|
2394
2380
|
title: e.text.permissions,
|
|
2395
2381
|
hint: e.text.permissionsAbout,
|
|
2396
2382
|
"hue-index": e.hueIndex
|
|
2397
2383
|
}, {
|
|
2398
|
-
default: Y(() => [e.permissions.length === 0 ? (R(), E("p",
|
|
2384
|
+
default: Y(() => [e.permissions.length === 0 ? (R(), E("p", So, W(e.text.noPermissions), 1)) : (R(), E(S, { key: 1 }, [i.value ? (R(), w(_o, {
|
|
2399
2385
|
key: 0,
|
|
2400
2386
|
modelValue: n.value,
|
|
2401
2387
|
"onUpdate:modelValue": r[0] ||= (e) => n.value = e,
|
|
@@ -2407,35 +2393,35 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2407
2393
|
"modelValue",
|
|
2408
2394
|
"label",
|
|
2409
2395
|
"items"
|
|
2410
|
-
])) : T("", !0), D("ul",
|
|
2396
|
+
])) : T("", !0), D("ul", Co, [(R(!0), E(S, null, B(a.value, (e) => (R(), E("li", {
|
|
2411
2397
|
key: e.id,
|
|
2412
2398
|
class: P(["glim-permission", e.on && "glim-permission--on"]),
|
|
2413
2399
|
"data-permission": e.id
|
|
2414
2400
|
}, [
|
|
2415
|
-
D("span",
|
|
2401
|
+
D("span", To, [
|
|
2416
2402
|
s(e.from) ? (R(), E("img", {
|
|
2417
2403
|
key: 0,
|
|
2418
2404
|
src: s(e.from),
|
|
2419
2405
|
alt: "",
|
|
2420
2406
|
draggable: "false"
|
|
2421
|
-
}, null, 8,
|
|
2422
|
-
A(G(
|
|
2407
|
+
}, null, 8, Eo)) : T("", !0),
|
|
2408
|
+
A(G(p), {
|
|
2423
2409
|
mark: G(qe).expand,
|
|
2424
2410
|
class: "glim-permission-arrow"
|
|
2425
2411
|
}, null, 8, ["mark"]),
|
|
2426
|
-
D("span",
|
|
2412
|
+
D("span", Do, [(R(!0), E(S, null, B(e.to, (e) => (R(), E(S, { key: e }, [s(e) ? (R(), E("img", {
|
|
2427
2413
|
key: 0,
|
|
2428
2414
|
src: s(e),
|
|
2429
2415
|
alt: "",
|
|
2430
2416
|
draggable: "false"
|
|
2431
|
-
}, null, 8,
|
|
2417
|
+
}, null, 8, Oo)) : T("", !0)], 64))), 128))])
|
|
2432
2418
|
]),
|
|
2433
|
-
D("span",
|
|
2434
|
-
D("span",
|
|
2435
|
-
e.detail ? (R(), E("span",
|
|
2419
|
+
D("span", ko, [
|
|
2420
|
+
D("span", Ao, W(e.title), 1),
|
|
2421
|
+
e.detail ? (R(), E("span", jo, W(e.detail), 1)) : T("", !0),
|
|
2436
2422
|
V(t.$slots, "extra", { permission: e })
|
|
2437
2423
|
]),
|
|
2438
|
-
A(
|
|
2424
|
+
A(xo, {
|
|
2439
2425
|
"model-value": e.on,
|
|
2440
2426
|
label: e.title,
|
|
2441
2427
|
"hide-label": "",
|
|
@@ -2445,7 +2431,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2445
2431
|
"label",
|
|
2446
2432
|
"onUpdate:modelValue"
|
|
2447
2433
|
])
|
|
2448
|
-
], 10,
|
|
2434
|
+
], 10, wo))), 128))])], 64))]),
|
|
2449
2435
|
_: 3
|
|
2450
2436
|
}, 8, [
|
|
2451
2437
|
"title",
|
|
@@ -2453,136 +2439,188 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2453
2439
|
"hue-index"
|
|
2454
2440
|
]));
|
|
2455
2441
|
}
|
|
2456
|
-
}),
|
|
2442
|
+
}), No = [
|
|
2443
|
+
"autocomplete",
|
|
2457
2444
|
"aria-label",
|
|
2458
2445
|
"aria-invalid",
|
|
2459
2446
|
"aria-describedby",
|
|
2460
2447
|
"disabled",
|
|
2461
2448
|
"type"
|
|
2462
|
-
],
|
|
2449
|
+
], Po = {
|
|
2450
|
+
key: 1,
|
|
2451
|
+
class: "glim-secret-confirm"
|
|
2452
|
+
}, Fo = ["for"], Io = { class: "glim-secret" }, Lo = [
|
|
2453
|
+
"id",
|
|
2454
|
+
"aria-invalid",
|
|
2455
|
+
"aria-describedby",
|
|
2456
|
+
"disabled",
|
|
2457
|
+
"type"
|
|
2458
|
+
], Ro = {
|
|
2459
|
+
"aria-live": "polite",
|
|
2460
|
+
class: "glim-secret-confirm-live"
|
|
2461
|
+
}, zo = /* @__PURE__ */ j({
|
|
2463
2462
|
inheritAttrs: !1,
|
|
2464
2463
|
__name: "PasswordField",
|
|
2465
2464
|
props: /*@__PURE__*/ M({
|
|
2466
2465
|
width: {},
|
|
2467
2466
|
eyeAttrs: {},
|
|
2468
|
-
text: {
|
|
2469
|
-
show: "Show",
|
|
2470
|
-
hide: "Hide"
|
|
2471
|
-
}) },
|
|
2467
|
+
text: {},
|
|
2472
2468
|
disabled: {
|
|
2473
2469
|
type: Boolean,
|
|
2474
2470
|
default: !1
|
|
2475
2471
|
},
|
|
2476
|
-
error: {}
|
|
2472
|
+
error: {},
|
|
2473
|
+
confirm: {
|
|
2474
|
+
type: Boolean,
|
|
2475
|
+
default: !1
|
|
2476
|
+
}
|
|
2477
2477
|
}, {
|
|
2478
2478
|
modelValue: { default: "" },
|
|
2479
2479
|
modelModifiers: {}
|
|
2480
2480
|
}),
|
|
2481
|
-
emits: ["update:modelValue"],
|
|
2482
|
-
setup(e, { expose: t }) {
|
|
2483
|
-
let
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2481
|
+
emits: /*@__PURE__*/ M(["confirmedChange"], ["update:modelValue"]),
|
|
2482
|
+
setup(e, { expose: t, emit: n }) {
|
|
2483
|
+
let r = e, i = q(e, "modelValue"), a = n, o = C(() => ({
|
|
2484
|
+
...Je,
|
|
2485
|
+
...r.text
|
|
2486
|
+
})), s = z(!1), c = z(!1), l = z(""), u = Ne(), d = x(() => u["aria-label"]), f = C(() => vt(r.width)), p = K(), m = C(() => u.id ?? p), h = C(() => _t(r.error, m.value, u["aria-describedby"])), g = C(() => on(i.value, l.value)), _ = C(() => _t(g.value.mismatch ? o.value.mismatch : void 0, `${m.value}-confirm`));
|
|
2487
|
+
J(() => g.value.shown, (e) => {
|
|
2488
|
+
e || (l.value = "");
|
|
2489
|
+
}), J(() => r.confirm && g.value.confirmed, (e) => a("confirmedChange", e), { immediate: !0 });
|
|
2490
|
+
let v = U(null);
|
|
2491
|
+
return t({ input: v }), (t, n) => (R(), E(S, null, [
|
|
2492
|
+
D("span", {
|
|
2493
|
+
"data-glim": "PasswordField",
|
|
2494
|
+
class: P([
|
|
2495
|
+
"glim-secret",
|
|
2496
|
+
f.value,
|
|
2497
|
+
t.$attrs.class
|
|
2498
|
+
]),
|
|
2499
|
+
style: F(t.$attrs.style)
|
|
2500
|
+
}, [ze(D("input", N({
|
|
2501
|
+
ref_key: "input",
|
|
2502
|
+
ref: v,
|
|
2503
|
+
"onUpdate:modelValue": n[0] ||= (e) => i.value = e,
|
|
2504
|
+
autocomplete: e.confirm ? "new-password" : "current-password",
|
|
2505
|
+
spellcheck: "false"
|
|
2506
|
+
}, {
|
|
2507
|
+
...t.$attrs,
|
|
2508
|
+
class: void 0,
|
|
2509
|
+
style: void 0
|
|
2510
|
+
}, {
|
|
2511
|
+
"aria-label": G(d),
|
|
2512
|
+
"aria-invalid": h.value.invalid,
|
|
2513
|
+
"aria-describedby": h.value.describedBy,
|
|
2514
|
+
disabled: e.disabled,
|
|
2515
|
+
type: s.value ? "text" : "password",
|
|
2516
|
+
class: "glim-input"
|
|
2517
|
+
}), null, 16, No), [[Fe, i.value]]), A(_e, N(e.eyeAttrs, {
|
|
2518
|
+
tip: s.value ? o.value.hide : o.value.show,
|
|
2519
|
+
class: "glim-secret-eye",
|
|
2520
|
+
disabled: e.disabled,
|
|
2521
|
+
onClick: n[1] ||= (e) => s.value = !s.value
|
|
2522
|
+
}), {
|
|
2523
|
+
default: Y(() => [(R(), w(H(s.value ? G(ie) : G(ee))))]),
|
|
2524
|
+
_: 1
|
|
2525
|
+
}, 16, ["tip", "disabled"])], 6),
|
|
2526
|
+
h.value.errorId ? (R(), w(xa, {
|
|
2527
|
+
key: 0,
|
|
2528
|
+
id: h.value.errorId
|
|
2529
|
+
}, {
|
|
2530
|
+
default: Y(() => [k(W(e.error), 1)]),
|
|
2531
|
+
_: 1
|
|
2532
|
+
}, 8, ["id"])) : T("", !0),
|
|
2533
|
+
e.confirm && g.value.shown ? (R(), E("span", Po, [D("label", {
|
|
2534
|
+
for: `${m.value}-confirm`,
|
|
2535
|
+
class: "glim-secret-confirm-label"
|
|
2536
|
+
}, W(o.value.confirm), 9, Fo), D("span", { class: P(["glim-secret-confirm-box", f.value]) }, [D("span", Io, [ze(D("input", {
|
|
2537
|
+
id: `${m.value}-confirm`,
|
|
2538
|
+
"onUpdate:modelValue": n[2] ||= (e) => l.value = e,
|
|
2539
|
+
autocomplete: "new-password",
|
|
2540
|
+
spellcheck: "false",
|
|
2541
|
+
"aria-invalid": _.value.invalid,
|
|
2542
|
+
"aria-describedby": _.value.describedBy,
|
|
2543
|
+
disabled: e.disabled,
|
|
2544
|
+
type: c.value ? "text" : "password",
|
|
2545
|
+
class: "glim-input"
|
|
2546
|
+
}, null, 8, Lo), [[Fe, l.value]]), A(_e, {
|
|
2547
|
+
tip: c.value ? o.value.hide : o.value.show,
|
|
2548
|
+
class: "glim-secret-eye",
|
|
2549
|
+
disabled: e.disabled,
|
|
2550
|
+
onClick: n[3] ||= (e) => c.value = !c.value
|
|
2551
|
+
}, {
|
|
2552
|
+
default: Y(() => [(R(), w(H(c.value ? G(ie) : G(ee))))]),
|
|
2553
|
+
_: 1
|
|
2554
|
+
}, 8, ["tip", "disabled"])]), D("span", Ro, [_.value.errorId ? (R(), w(xa, {
|
|
2555
|
+
key: 0,
|
|
2556
|
+
id: _.value.errorId
|
|
2557
|
+
}, {
|
|
2558
|
+
default: Y(() => [k(W(o.value.mismatch), 1)]),
|
|
2559
|
+
_: 1
|
|
2560
|
+
}, 8, ["id"])) : T("", !0)])], 2)])) : T("", !0)
|
|
2561
|
+
], 64));
|
|
2524
2562
|
}
|
|
2525
|
-
}),
|
|
2563
|
+
}), Bo = { class: "glim-phrase-fields" }, Vo = { class: "glim-phrase-number glim-num" }, Ho = [
|
|
2526
2564
|
"data-word",
|
|
2527
2565
|
"value",
|
|
2528
2566
|
"aria-label",
|
|
2529
2567
|
"onInput"
|
|
2530
|
-
],
|
|
2568
|
+
], Uo = { class: "glim-fortress-sub" }, Wo = {
|
|
2531
2569
|
key: 0,
|
|
2532
2570
|
class: "glim-fortress-note",
|
|
2533
2571
|
"data-fortress": "moves"
|
|
2534
|
-
},
|
|
2572
|
+
}, Go = {
|
|
2535
2573
|
key: 1,
|
|
2536
2574
|
class: "glim-fortress-error",
|
|
2537
2575
|
role: "alert"
|
|
2538
|
-
},
|
|
2576
|
+
}, Ko = {
|
|
2539
2577
|
key: 1,
|
|
2540
2578
|
class: "glim-fortress-result"
|
|
2541
|
-
},
|
|
2579
|
+
}, qo = {
|
|
2542
2580
|
class: "glim-fortress-result-mark",
|
|
2543
2581
|
"aria-hidden": "true"
|
|
2544
|
-
},
|
|
2582
|
+
}, Jo = { class: "glim-fortress-text" }, Yo = { class: "glim-fortress-result-title" }, Xo = { class: "glim-fortress-sub" }, Zo = {
|
|
2545
2583
|
key: 2,
|
|
2546
2584
|
class: "glim-fortress-text"
|
|
2547
|
-
},
|
|
2585
|
+
}, Qo = { class: "glim-fortress-sub" }, $o = {
|
|
2548
2586
|
key: 0,
|
|
2549
2587
|
class: "glim-fortress-error",
|
|
2550
2588
|
role: "alert"
|
|
2551
|
-
},
|
|
2589
|
+
}, es = {
|
|
2552
2590
|
key: 3,
|
|
2553
2591
|
class: "glim-fortress-text"
|
|
2554
|
-
},
|
|
2592
|
+
}, ts = { class: "glim-fortress-sub" }, ns = {
|
|
2555
2593
|
key: 0,
|
|
2556
2594
|
class: "glim-fortress-error",
|
|
2557
2595
|
role: "alert"
|
|
2558
|
-
},
|
|
2596
|
+
}, rs = {
|
|
2559
2597
|
key: 4,
|
|
2560
2598
|
class: "glim-fortress-text"
|
|
2561
|
-
},
|
|
2599
|
+
}, is = {
|
|
2562
2600
|
key: 0,
|
|
2563
2601
|
class: "glim-fortress-error",
|
|
2564
2602
|
role: "alert"
|
|
2565
|
-
},
|
|
2603
|
+
}, as = {
|
|
2566
2604
|
key: 0,
|
|
2567
2605
|
class: "glim-fortress-error",
|
|
2568
2606
|
role: "alert"
|
|
2569
|
-
},
|
|
2607
|
+
}, os = {
|
|
2570
2608
|
key: 6,
|
|
2571
2609
|
class: "glim-fortress-text"
|
|
2572
|
-
},
|
|
2610
|
+
}, ss = { class: "glim-fortress-sub" }, cs = {
|
|
2573
2611
|
key: 0,
|
|
2574
2612
|
class: "glim-fortress-error",
|
|
2575
2613
|
role: "alert"
|
|
2576
|
-
},
|
|
2614
|
+
}, ls = {
|
|
2577
2615
|
key: 7,
|
|
2578
2616
|
class: "glim-fortress-text"
|
|
2579
|
-
},
|
|
2617
|
+
}, us = { class: "glim-phrase-show" }, ds = {
|
|
2580
2618
|
class: "glim-phrase-words",
|
|
2581
2619
|
"data-fortress": "words"
|
|
2582
|
-
},
|
|
2620
|
+
}, fs = { class: "glim-phrase-number glim-num" }, ps = ["aria-label", "viewBox"], ms = ["width", "height"], hs = ["d"], gs = { class: "glim-phrase-scan" }, _s = {
|
|
2583
2621
|
key: 0,
|
|
2584
2622
|
class: "glim-fortress-sub"
|
|
2585
|
-
},
|
|
2623
|
+
}, vs = /* @__PURE__ */ j({
|
|
2586
2624
|
__name: "FortressWindow",
|
|
2587
2625
|
props: {
|
|
2588
2626
|
flow: {},
|
|
@@ -2597,20 +2635,20 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2597
2635
|
},
|
|
2598
2636
|
setup(e) {
|
|
2599
2637
|
let t = e, n = U(null), r = z(!1), i;
|
|
2600
|
-
|
|
2601
|
-
let a = C(() => t.state.window), o = C(() => t.pairedWith?.length ?
|
|
2638
|
+
De(() => clearTimeout(i));
|
|
2639
|
+
let a = C(() => t.state.window), o = C(() => t.pairedWith?.length ? Lt(t.lang, t.pairedWith) : null), s = C(() => ({
|
|
2602
2640
|
cancel: t.text.cancel,
|
|
2603
2641
|
close: t.text.close
|
|
2604
2642
|
})), c = C(() => t.state.busy !== null), l;
|
|
2605
|
-
|
|
2643
|
+
De(() => l?.()), J(() => t.state.refusal, (e) => {
|
|
2606
2644
|
let t = e && n.value?.card?.querySelector(`[data-fortress="${e.button}"]`);
|
|
2607
|
-
t && (l =
|
|
2645
|
+
t && (l = Bn(t));
|
|
2608
2646
|
}), J(() => a.value.kind === "join" ? a.value.focus : -1, async (e) => {
|
|
2609
|
-
await
|
|
2647
|
+
await Ee(), e >= 0 && n.value?.card?.querySelector(`[data-word="${e}"]`)?.focus();
|
|
2610
2648
|
}), J(() => a.value.kind, async () => {
|
|
2611
|
-
await
|
|
2649
|
+
await Ee();
|
|
2612
2650
|
let e = n.value?.card;
|
|
2613
|
-
e &&
|
|
2651
|
+
e && fr(e)?.focus();
|
|
2614
2652
|
});
|
|
2615
2653
|
function u(e, t, n, r, i = !1) {
|
|
2616
2654
|
return {
|
|
@@ -2627,7 +2665,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2627
2665
|
label: t.text.copy,
|
|
2628
2666
|
labelKey: t.keys.copy,
|
|
2629
2667
|
attrs: { "data-fortress": "copy" },
|
|
2630
|
-
onClick: () => (
|
|
2668
|
+
onClick: () => (dt(e.join(" ")).then((e) => {
|
|
2631
2669
|
r.value = e, clearTimeout(i), i = setTimeout(() => r.value = !1, Ue);
|
|
2632
2670
|
}), !1)
|
|
2633
2671
|
};
|
|
@@ -2635,27 +2673,27 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2635
2673
|
let f = C(() => {
|
|
2636
2674
|
let e = a.value;
|
|
2637
2675
|
if (e.kind !== "phrase" && e.kind !== "changed") return null;
|
|
2638
|
-
let n =
|
|
2676
|
+
let n = Cn(t.phraseQr ? t.phraseQr(e.words) : e.words.join(" "));
|
|
2639
2677
|
return {
|
|
2640
2678
|
...n,
|
|
2641
2679
|
side: n.size + 8
|
|
2642
2680
|
};
|
|
2643
|
-
}),
|
|
2681
|
+
}), m = C(() => ({
|
|
2644
2682
|
label: t.text.close,
|
|
2645
2683
|
labelKey: "common.close",
|
|
2646
|
-
glyph:
|
|
2684
|
+
glyph: _,
|
|
2647
2685
|
wayOut: !0
|
|
2648
|
-
})),
|
|
2686
|
+
})), h = C(() => {
|
|
2649
2687
|
let e = t.text, n = a.value, r = t.flow, i = t.keys;
|
|
2650
2688
|
switch (n.kind) {
|
|
2651
2689
|
case "join": return {
|
|
2652
2690
|
title: e.joinTitle,
|
|
2653
2691
|
size: "wide",
|
|
2654
|
-
actions: [u("join", r.join, e.join, i.join, !
|
|
2692
|
+
actions: [u("join", r.join, e.join, i.join, !cn(n.words))]
|
|
2655
2693
|
};
|
|
2656
2694
|
case "joined": return {
|
|
2657
2695
|
title: e.joinTitle,
|
|
2658
|
-
actions: [
|
|
2696
|
+
actions: [m.value]
|
|
2659
2697
|
};
|
|
2660
2698
|
case "leave": return {
|
|
2661
2699
|
title: e.leaveTitle,
|
|
@@ -2697,12 +2735,12 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2697
2735
|
actions: []
|
|
2698
2736
|
};
|
|
2699
2737
|
});
|
|
2700
|
-
return (t, i) => (R(), w(
|
|
2738
|
+
return (t, i) => (R(), w(Pa, {
|
|
2701
2739
|
ref_key: "win",
|
|
2702
2740
|
ref: n,
|
|
2703
|
-
title:
|
|
2704
|
-
size:
|
|
2705
|
-
actions:
|
|
2741
|
+
title: h.value.title,
|
|
2742
|
+
size: h.value.size,
|
|
2743
|
+
actions: h.value.actions,
|
|
2706
2744
|
start: r.value ? e.text.copied : void 0,
|
|
2707
2745
|
text: s.value,
|
|
2708
2746
|
onClose: i[3] ||= (t) => e.flow.close()
|
|
@@ -2713,10 +2751,10 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2713
2751
|
onSubmit: i[0] ||= X((t) => e.flow.join(), ["prevent"])
|
|
2714
2752
|
}, [
|
|
2715
2753
|
D("p", null, W(e.text.about), 1),
|
|
2716
|
-
D("div",
|
|
2754
|
+
D("div", Bo, [(R(!0), E(S, null, B(a.value.words, (t, n) => (R(), E("label", {
|
|
2717
2755
|
key: n,
|
|
2718
2756
|
class: "glim-phrase-field"
|
|
2719
|
-
}, [D("span",
|
|
2757
|
+
}, [D("span", Vo, W(n + 1), 1), D("input", {
|
|
2720
2758
|
class: "glim-input",
|
|
2721
2759
|
"data-word": n,
|
|
2722
2760
|
value: t,
|
|
@@ -2726,32 +2764,32 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2726
2764
|
autocorrect: "off",
|
|
2727
2765
|
spellcheck: "false",
|
|
2728
2766
|
onInput: (t) => e.flow.enter(n, t.target.value)
|
|
2729
|
-
}, null, 40,
|
|
2767
|
+
}, null, 40, Ho)]))), 128))]),
|
|
2730
2768
|
i[4] ||= D("button", {
|
|
2731
2769
|
type: "submit",
|
|
2732
2770
|
hidden: ""
|
|
2733
2771
|
}, null, -1),
|
|
2734
|
-
D("p",
|
|
2735
|
-
o.value ? (R(), E("p",
|
|
2772
|
+
D("p", Uo, W(e.text.phraseWhere), 1),
|
|
2773
|
+
o.value ? (R(), E("p", Wo, [G(me)("info") ? (R(), w(H(G(me)("info")), { key: 0 })) : T("", !0), D("span", null, W(G(Z)(e.text.moves, {
|
|
2736
2774
|
app: e.app.name,
|
|
2737
2775
|
devices: o.value
|
|
2738
2776
|
})), 1)])) : T("", !0),
|
|
2739
|
-
e.state.error ? (R(), E("p",
|
|
2740
|
-
], 32)) : a.value.kind === "joined" ? (R(), E("div",
|
|
2777
|
+
e.state.error ? (R(), E("p", Go, W(e.state.error), 1)) : T("", !0)
|
|
2778
|
+
], 32)) : a.value.kind === "joined" ? (R(), E("div", Ko, [D("span", qo, [A(G(p), { mark: G(qe).check }, null, 8, ["mark"])]), D("div", Jo, [D("p", Yo, W(G(Z)(e.text.joinedTitle, { app: e.app.name })), 1), D("p", Xo, W(o.value ? `${G(Z)(e.text.joinedMoved, { devices: o.value })} ` : "") + W(e.text.joinedNext), 1)])])) : a.value.kind === "leave" ? (R(), E("div", Zo, [
|
|
2741
2779
|
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),
|
|
2742
|
-
D("p",
|
|
2743
|
-
e.state.error ? (R(), E("p",
|
|
2744
|
-
])) : a.value.kind === "remove" ? (R(), E("div",
|
|
2780
|
+
D("p", Qo, W(e.text.leaveBack), 1),
|
|
2781
|
+
e.state.error ? (R(), E("p", $o, W(e.state.error), 1)) : T("", !0)
|
|
2782
|
+
])) : a.value.kind === "remove" ? (R(), E("div", es, [
|
|
2745
2783
|
D("p", null, W(G(Z)(e.text.removeBody, { device: a.value.device })), 1),
|
|
2746
|
-
D("p",
|
|
2747
|
-
e.state.error ? (R(), E("p",
|
|
2748
|
-
])) : a.value.kind === "removed" ? (R(), E("div",
|
|
2784
|
+
D("p", ts, W(e.text.removeBack), 1),
|
|
2785
|
+
e.state.error ? (R(), E("p", ns, W(e.state.error), 1)) : T("", !0)
|
|
2786
|
+
])) : a.value.kind === "removed" ? (R(), E("div", rs, [D("p", null, W(G(Z)(e.text.removedBody, { device: a.value.device })), 1), e.state.error ? (R(), E("p", is, W(e.state.error), 1)) : T("", !0)])) : a.value.kind === "phrase" && a.value.step === "password" ? (R(), E("form", {
|
|
2749
2787
|
key: 5,
|
|
2750
2788
|
class: "glim-fortress-text",
|
|
2751
2789
|
onSubmit: i[2] ||= X((t) => e.flow.unlock(), ["prevent"])
|
|
2752
2790
|
}, [
|
|
2753
2791
|
D("p", null, W(G(Z)(e.text.phrasePassword, { app: e.app.name })), 1),
|
|
2754
|
-
A(
|
|
2792
|
+
A(zo, {
|
|
2755
2793
|
"model-value": a.value.password,
|
|
2756
2794
|
"aria-label": G(Z)(e.text.password, { app: e.app.name }),
|
|
2757
2795
|
placeholder: G(Z)(e.text.password, { app: e.app.name }),
|
|
@@ -2766,15 +2804,15 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2766
2804
|
"placeholder",
|
|
2767
2805
|
"text"
|
|
2768
2806
|
]),
|
|
2769
|
-
e.state.error ? (R(), E("p",
|
|
2770
|
-
], 32)) : a.value.kind === "change" ? (R(), E("div",
|
|
2807
|
+
e.state.error ? (R(), E("p", as, W(e.state.error), 1)) : T("", !0)
|
|
2808
|
+
], 32)) : a.value.kind === "change" ? (R(), E("div", os, [
|
|
2771
2809
|
D("p", null, W(e.text.changeBody), 1),
|
|
2772
|
-
D("p",
|
|
2773
|
-
e.state.error ? (R(), E("p",
|
|
2774
|
-
])) : a.value.kind === "phrase" || a.value.kind === "changed" ? (R(), E("div",
|
|
2810
|
+
D("p", ss, W(e.text.changeAway), 1),
|
|
2811
|
+
e.state.error ? (R(), E("p", cs, W(e.state.error), 1)) : T("", !0)
|
|
2812
|
+
])) : a.value.kind === "phrase" || a.value.kind === "changed" ? (R(), E("div", ls, [
|
|
2775
2813
|
D("p", null, W(e.text.phraseBody), 1),
|
|
2776
|
-
D("div",
|
|
2777
|
-
D("ol",
|
|
2814
|
+
D("div", us, [
|
|
2815
|
+
D("ol", ds, [(R(!0), E(S, null, B(a.value.words, (e, t) => (R(), E("li", { key: t }, [D("span", fs, W(t + 1), 1), k(W(e), 1)]))), 128))]),
|
|
2778
2816
|
f.value ? (R(), E("svg", {
|
|
2779
2817
|
key: 0,
|
|
2780
2818
|
class: "glim-phrase-qr",
|
|
@@ -2789,13 +2827,13 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2789
2827
|
width: f.value.side,
|
|
2790
2828
|
height: f.value.side,
|
|
2791
2829
|
fill: "#ffffff"
|
|
2792
|
-
}, null, 8,
|
|
2830
|
+
}, null, 8, ms), D("path", {
|
|
2793
2831
|
d: f.value.path,
|
|
2794
2832
|
fill: "#161616"
|
|
2795
|
-
}, null, 8,
|
|
2796
|
-
D("p",
|
|
2833
|
+
}, null, 8, hs)], 8, ps)) : T("", !0),
|
|
2834
|
+
D("p", gs, W(e.text.scanHint), 1)
|
|
2797
2835
|
]),
|
|
2798
|
-
a.value.kind === "changed" && a.value.left.length ? (R(), E("p",
|
|
2836
|
+
a.value.kind === "changed" && a.value.left.length ? (R(), E("p", _s, W(G(Z)(e.text.changedLeft, { devices: G(Lt)(e.lang, a.value.left) })), 1)) : T("", !0)
|
|
2799
2837
|
])) : T("", !0)]),
|
|
2800
2838
|
_: 1
|
|
2801
2839
|
}, 8, [
|
|
@@ -2806,25 +2844,25 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2806
2844
|
"text"
|
|
2807
2845
|
]));
|
|
2808
2846
|
}
|
|
2809
|
-
}),
|
|
2847
|
+
}), ys = {
|
|
2810
2848
|
"data-glim": "Fortress",
|
|
2811
2849
|
class: "glim-fortress"
|
|
2812
|
-
},
|
|
2850
|
+
}, bs = { class: "glim-fortress-grid" }, xs = {
|
|
2813
2851
|
key: 0,
|
|
2814
2852
|
class: "glim-card glim-instance glim-instance--out",
|
|
2815
2853
|
"data-fortress": "out"
|
|
2816
|
-
},
|
|
2854
|
+
}, Ss = { class: "glim-instance-title" }, Cs = { class: "glim-instance-hint" }, ws = {
|
|
2817
2855
|
key: 0,
|
|
2818
2856
|
class: "glim-instance-found"
|
|
2819
|
-
},
|
|
2857
|
+
}, Ts = ["src"], Es = { class: "glim-fortress-switch-text" }, Ds = { class: "glim-fortress-switch-name" }, Os = { class: "glim-fortress-sub" }, ks = {
|
|
2820
2858
|
key: 1,
|
|
2821
2859
|
class: "glim-fortress-removed",
|
|
2822
2860
|
"data-fortress": "removed",
|
|
2823
2861
|
role: "status"
|
|
2824
|
-
},
|
|
2862
|
+
}, As = { class: "glim-fortress-grid" }, js = {
|
|
2825
2863
|
key: 3,
|
|
2826
2864
|
class: "glim-fortress-actions"
|
|
2827
|
-
},
|
|
2865
|
+
}, Ms = /* @__PURE__ */ j({
|
|
2828
2866
|
__name: "Fortress",
|
|
2829
2867
|
props: {
|
|
2830
2868
|
text: {},
|
|
@@ -2862,10 +2900,10 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2862
2900
|
},
|
|
2863
2901
|
emits: ["update:showOthers"],
|
|
2864
2902
|
setup(e, { emit: t }) {
|
|
2865
|
-
let n = e, r = t, i =
|
|
2903
|
+
let n = e, r = t, i = pt(() => ({
|
|
2866
2904
|
...n,
|
|
2867
2905
|
failed: n.text.failed,
|
|
2868
|
-
joinRefusal: (e) =>
|
|
2906
|
+
joinRefusal: (e) => Nt(n.text, e)
|
|
2869
2907
|
})), a = U(i.state()), o = i.subscribe(() => a.value = i.state());
|
|
2870
2908
|
I(o);
|
|
2871
2909
|
let s = C(() => ({
|
|
@@ -2878,20 +2916,20 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2878
2916
|
unlock: "unlock",
|
|
2879
2917
|
copy: "copy",
|
|
2880
2918
|
...n.labelKeys
|
|
2881
|
-
})), c = z(
|
|
2919
|
+
})), c = z(Xn()), l = C(() => n.showOthers ?? c.value);
|
|
2882
2920
|
function u(e) {
|
|
2883
|
-
r("update:showOthers", e), n.showOthers === void 0 && (
|
|
2921
|
+
r("update:showOthers", e), n.showOthers === void 0 && (Yn(e), c.value = e);
|
|
2884
2922
|
}
|
|
2885
|
-
let d = C(() => Z(n.text.removedNote, { devices:
|
|
2886
|
-
return (t, n) => (R(), E("div",
|
|
2887
|
-
D("div",
|
|
2888
|
-
D("h3",
|
|
2889
|
-
D("p",
|
|
2890
|
-
e.found ? (R(), E("p",
|
|
2923
|
+
let d = C(() => Z(n.text.removedNote, { devices: Lt(n.lang, n.removed) })), p = C(() => rn(n.text, n.lang, n.apps));
|
|
2924
|
+
return (t, n) => (R(), E("div", ys, [
|
|
2925
|
+
D("div", bs, [V(t.$slots, "default", { remove: G(i).openRemove }), e.joined ? T("", !0) : (R(), E("div", xs, [
|
|
2926
|
+
D("h3", Ss, W(e.removedHere ? e.text.removedHereTitle : e.text.outTitle), 1),
|
|
2927
|
+
D("p", Cs, W(G(Z)(e.removedHere ? e.text.removedHereHint : e.text.outHint, { app: e.app.name })), 1),
|
|
2928
|
+
e.found ? (R(), E("p", ws, [e.found.logo ? (R(), E("img", {
|
|
2891
2929
|
key: 0,
|
|
2892
2930
|
src: e.found.logo,
|
|
2893
2931
|
alt: ""
|
|
2894
|
-
}, null, 8,
|
|
2932
|
+
}, null, 8, Ts)) : T("", !0), D("span", null, W(G(Z)(e.text.found, {
|
|
2895
2933
|
app: e.found.app,
|
|
2896
2934
|
device: e.found.device
|
|
2897
2935
|
})), 1)])) : T("", !0)
|
|
@@ -2899,16 +2937,16 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2899
2937
|
e.joined && !e.hideSwitch ? (R(), E("div", {
|
|
2900
2938
|
key: 0,
|
|
2901
2939
|
class: "glim-card glim-fortress-switch glim-hue",
|
|
2902
|
-
style: F(G(
|
|
2903
|
-
}, [D("span",
|
|
2940
|
+
style: F(G(kt)(e.hueStart))
|
|
2941
|
+
}, [D("span", Es, [D("span", Ds, [k(W(e.text.showOthers), 1), A(Q, { tip: e.text.about }, null, 8, ["tip"])]), D("span", Os, W(p.value), 1)]), A(xo, {
|
|
2904
2942
|
"model-value": l.value,
|
|
2905
2943
|
label: e.text.showOthers,
|
|
2906
2944
|
"hide-label": "",
|
|
2907
2945
|
"data-fortress": "others",
|
|
2908
2946
|
"onUpdate:modelValue": u
|
|
2909
2947
|
}, null, 8, ["model-value", "label"])], 4)) : T("", !0),
|
|
2910
|
-
e.joined && e.removed.length ? (R(), E("div",
|
|
2911
|
-
G(
|
|
2948
|
+
e.joined && e.removed.length ? (R(), E("div", ks, [
|
|
2949
|
+
G(me)("info") ? (R(), w(H(G(me)("info")), { key: 0 })) : T("", !0),
|
|
2912
2950
|
D("span", null, W(d.value), 1),
|
|
2913
2951
|
e.onChangePhrase ? (R(), w(f, {
|
|
2914
2952
|
key: 1,
|
|
@@ -2919,11 +2957,11 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2919
2957
|
onClick: n[0] ||= (e) => G(i).openChange()
|
|
2920
2958
|
}, null, 8, ["label", "label-key"])) : T("", !0)
|
|
2921
2959
|
])) : T("", !0),
|
|
2922
|
-
e.joined && l.value ? (R(), E(S, { key: 2 }, [D("div",
|
|
2960
|
+
e.joined && l.value ? (R(), E(S, { key: 2 }, [D("div", As, [(R(!0), E(S, null, B(e.apps, (n, r) => (R(), E(S, { key: n.id }, [t.$slots.app ? V(t.$slots, "app", {
|
|
2923
2961
|
app: n,
|
|
2924
2962
|
hueIndex: e.hueStart + 1 + r,
|
|
2925
2963
|
remove: e.onRemove && G(i).openRemove
|
|
2926
|
-
}, void 0, void 0, 0) : (R(), w(
|
|
2964
|
+
}, void 0, void 0, 0) : (R(), w(lo, {
|
|
2927
2965
|
key: 1,
|
|
2928
2966
|
app: n,
|
|
2929
2967
|
text: e.text,
|
|
@@ -2940,7 +2978,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2940
2978
|
"on-open",
|
|
2941
2979
|
"on-remove",
|
|
2942
2980
|
"remove-key"
|
|
2943
|
-
]))], 64))), 128))]), A(
|
|
2981
|
+
]))], 64))), 128))]), A(Mo, {
|
|
2944
2982
|
text: e.text,
|
|
2945
2983
|
app: e.app,
|
|
2946
2984
|
apps: [e.app, ...e.apps],
|
|
@@ -2960,7 +2998,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2960
2998
|
"notify",
|
|
2961
2999
|
"hue-index"
|
|
2962
3000
|
])], 64)) : T("", !0),
|
|
2963
|
-
!e.joined || e.onShowPhrase ? (R(), E("div",
|
|
3001
|
+
!e.joined || e.onShowPhrase ? (R(), E("div", js, [e.joined ? (R(), w(f, {
|
|
2964
3002
|
key: 0,
|
|
2965
3003
|
label: e.text.showPhrase,
|
|
2966
3004
|
"label-key": s.value.showPhrase,
|
|
@@ -2982,7 +3020,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
2982
3020
|
"data-fortress": "open-join",
|
|
2983
3021
|
onClick: n[2] ||= (e) => G(i).openJoin()
|
|
2984
3022
|
}, null, 8, ["label", "label-key"]))])) : T("", !0),
|
|
2985
|
-
a.value.window ? (R(), w(
|
|
3023
|
+
a.value.window ? (R(), w(vs, {
|
|
2986
3024
|
key: 4,
|
|
2987
3025
|
flow: G(i),
|
|
2988
3026
|
state: a.value,
|
|
@@ -3004,7 +3042,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3004
3042
|
])) : T("", !0)
|
|
3005
3043
|
]));
|
|
3006
3044
|
}
|
|
3007
|
-
}),
|
|
3045
|
+
}), Ns = /* @__PURE__ */ j({
|
|
3008
3046
|
__name: "FortressPairing",
|
|
3009
3047
|
props: {
|
|
3010
3048
|
text: {},
|
|
@@ -3021,7 +3059,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3021
3059
|
hueIndex: {}
|
|
3022
3060
|
},
|
|
3023
3061
|
setup(e) {
|
|
3024
|
-
let t = e, n =
|
|
3062
|
+
let t = e, n = pt(() => ({
|
|
3025
3063
|
...t,
|
|
3026
3064
|
failed: t.text.failed
|
|
3027
3065
|
})), r = U(n.state()), i = n.subscribe(() => r.value = n.state());
|
|
@@ -3037,14 +3075,14 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3037
3075
|
copy: "copy",
|
|
3038
3076
|
...t.labelKeys
|
|
3039
3077
|
}));
|
|
3040
|
-
return (t, i) => (R(), w(
|
|
3078
|
+
return (t, i) => (R(), w(_r, {
|
|
3041
3079
|
"data-glim": "FortressPairing",
|
|
3042
3080
|
title: e.text.pairing,
|
|
3043
3081
|
"hue-index": e.hueIndex
|
|
3044
3082
|
}, {
|
|
3045
3083
|
default: Y(() => [
|
|
3046
3084
|
V(t.$slots, "default"),
|
|
3047
|
-
e.onShowPhrase || e.onChangePhrase ? (R(), w(
|
|
3085
|
+
e.onShowPhrase || e.onChangePhrase ? (R(), w(Ta, {
|
|
3048
3086
|
key: 0,
|
|
3049
3087
|
label: e.text.phraseTitle,
|
|
3050
3088
|
hint: e.onChangePhrase ? e.text.changePhraseAbout : void 0
|
|
@@ -3069,7 +3107,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3069
3107
|
}, null, 8, ["label", "label-key"])) : T("", !0)]),
|
|
3070
3108
|
_: 1
|
|
3071
3109
|
}, 8, ["label", "hint"])) : T("", !0),
|
|
3072
|
-
A(
|
|
3110
|
+
A(Ta, {
|
|
3073
3111
|
label: e.text.leaveRow,
|
|
3074
3112
|
hint: G(Z)(e.text.leaveAbout, { app: e.app.name })
|
|
3075
3113
|
}, {
|
|
@@ -3082,7 +3120,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3082
3120
|
_: 1
|
|
3083
3121
|
}, 8, ["label", "hint"]),
|
|
3084
3122
|
V(t.$slots, "after"),
|
|
3085
|
-
r.value.window ? (R(), w(
|
|
3123
|
+
r.value.window ? (R(), w(vs, {
|
|
3086
3124
|
key: 1,
|
|
3087
3125
|
flow: G(n),
|
|
3088
3126
|
state: r.value,
|
|
@@ -3108,13 +3146,13 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3108
3146
|
_: 3
|
|
3109
3147
|
}, 8, ["title", "hue-index"]));
|
|
3110
3148
|
}
|
|
3111
|
-
}),
|
|
3149
|
+
}), Ps = [
|
|
3112
3150
|
"aria-label",
|
|
3113
3151
|
"aria-valuemin",
|
|
3114
3152
|
"aria-valuemax",
|
|
3115
3153
|
"aria-valuenow",
|
|
3116
3154
|
"aria-valuetext"
|
|
3117
|
-
],
|
|
3155
|
+
], Fs = /* @__PURE__ */ j({
|
|
3118
3156
|
__name: "ProgressBar",
|
|
3119
3157
|
props: {
|
|
3120
3158
|
value: { default: null },
|
|
@@ -3130,7 +3168,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3130
3168
|
valueText: {}
|
|
3131
3169
|
},
|
|
3132
3170
|
setup(e) {
|
|
3133
|
-
let t = e, n = C(() =>
|
|
3171
|
+
let t = e, n = C(() => Sn(t.value, {
|
|
3134
3172
|
paused: t.paused,
|
|
3135
3173
|
failed: t.failed
|
|
3136
3174
|
}));
|
|
@@ -3146,48 +3184,48 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3146
3184
|
}, [D("span", {
|
|
3147
3185
|
class: "glim-progress-fill",
|
|
3148
3186
|
style: F(n.value.width ? { width: n.value.width } : void 0)
|
|
3149
|
-
}, null, 4)], 10,
|
|
3187
|
+
}, null, 4)], 10, Ps));
|
|
3150
3188
|
}
|
|
3151
|
-
}),
|
|
3189
|
+
}), Is = { class: "glim-status-title" }, Ls = ["src"], Rs = {
|
|
3152
3190
|
class: "glim-fortress-text",
|
|
3153
3191
|
"data-fortress": "status"
|
|
3154
|
-
},
|
|
3192
|
+
}, zs = {
|
|
3155
3193
|
key: 0,
|
|
3156
3194
|
class: "glim-fortress-note",
|
|
3157
3195
|
"data-fortress": "loading"
|
|
3158
|
-
},
|
|
3196
|
+
}, Bs = { role: "status" }, Vs = {
|
|
3159
3197
|
key: 1,
|
|
3160
3198
|
class: "glim-fortress-note",
|
|
3161
3199
|
role: "status",
|
|
3162
3200
|
"data-fortress": "error"
|
|
3163
|
-
},
|
|
3201
|
+
}, Hs = {
|
|
3164
3202
|
key: 2,
|
|
3165
3203
|
class: "glim-status-state",
|
|
3166
3204
|
"data-fortress": "state"
|
|
3167
|
-
},
|
|
3205
|
+
}, Us = {
|
|
3168
3206
|
key: 0,
|
|
3169
3207
|
class: "glim-fortress-sub"
|
|
3170
|
-
},
|
|
3208
|
+
}, Ws = {
|
|
3171
3209
|
key: 3,
|
|
3172
3210
|
class: "glim-status-section",
|
|
3173
3211
|
"data-fortress": "needs"
|
|
3174
|
-
},
|
|
3212
|
+
}, Gs = { class: "glim-status-heading" }, Ks = { class: "glim-status-list" }, qs = {
|
|
3175
3213
|
key: 4,
|
|
3176
3214
|
class: "glim-status-section",
|
|
3177
3215
|
"data-fortress": "work"
|
|
3178
|
-
},
|
|
3216
|
+
}, Js = { class: "glim-status-heading" }, Ys = { class: "glim-status-list" }, Xs = {
|
|
3179
3217
|
key: 5,
|
|
3180
3218
|
class: "glim-status-section",
|
|
3181
3219
|
"data-fortress": "next"
|
|
3182
|
-
},
|
|
3220
|
+
}, Zs = { class: "glim-status-heading" }, Qs = { class: "glim-status-list" }, $s = { class: "glim-status-at glim-num" }, ec = {
|
|
3183
3221
|
key: 6,
|
|
3184
3222
|
class: "glim-status-section",
|
|
3185
3223
|
"data-fortress": "log"
|
|
3186
|
-
},
|
|
3224
|
+
}, tc = { class: "glim-status-heading" }, nc = { class: "glim-status-list" }, rc = { class: "glim-status-at glim-num" }, ic = {
|
|
3187
3225
|
key: 7,
|
|
3188
3226
|
class: "glim-fortress-sub",
|
|
3189
3227
|
"data-fortress": "where"
|
|
3190
|
-
},
|
|
3228
|
+
}, ac = /* @__PURE__ */ j({
|
|
3191
3229
|
__name: "FortressStatusWindow",
|
|
3192
3230
|
props: {
|
|
3193
3231
|
app: {},
|
|
@@ -3201,7 +3239,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3201
3239
|
onClose: { type: Function }
|
|
3202
3240
|
},
|
|
3203
3241
|
setup(t) {
|
|
3204
|
-
let n = t, r = C(() =>
|
|
3242
|
+
let n = t, r = C(() => Jn({
|
|
3205
3243
|
app: n.app,
|
|
3206
3244
|
instance: n.instance,
|
|
3207
3245
|
report: n.report,
|
|
@@ -3212,10 +3250,10 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3212
3250
|
})), i = C(() => [{
|
|
3213
3251
|
label: n.text.close,
|
|
3214
3252
|
labelKey: "common.close",
|
|
3215
|
-
glyph:
|
|
3253
|
+
glyph: _,
|
|
3216
3254
|
wayOut: !0
|
|
3217
|
-
}]), a =
|
|
3218
|
-
return (n, o) => (R(), w(
|
|
3255
|
+
}]), a = me("info");
|
|
3256
|
+
return (n, o) => (R(), w(Pa, {
|
|
3219
3257
|
"data-glim": "FortressStatusWindow",
|
|
3220
3258
|
lang: t.lang,
|
|
3221
3259
|
title: r.value.title,
|
|
@@ -3226,22 +3264,22 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3226
3264
|
},
|
|
3227
3265
|
onClose: o[0] ||= (e) => t.onClose()
|
|
3228
3266
|
}, {
|
|
3229
|
-
title: Y(() => [D("span",
|
|
3267
|
+
title: Y(() => [D("span", Is, [t.app.logo ? (R(), E("img", {
|
|
3230
3268
|
key: 0,
|
|
3231
3269
|
src: t.app.logo,
|
|
3232
3270
|
alt: ""
|
|
3233
|
-
}, null, 8,
|
|
3234
|
-
default: Y(() => [D("div",
|
|
3235
|
-
r.value.loading ? (R(), E("p",
|
|
3271
|
+
}, null, 8, Ls)) : T("", !0), k(W(r.value.title), 1)])]),
|
|
3272
|
+
default: Y(() => [D("div", Rs, [
|
|
3273
|
+
r.value.loading ? (R(), E("p", zs, [A(c, {
|
|
3236
3274
|
size: "small",
|
|
3237
3275
|
delay: 0
|
|
3238
|
-
}), D("span",
|
|
3239
|
-
r.value.error === void 0 ? T("", !0) : (R(), E("p",
|
|
3240
|
-
r.value.state ? (R(), E("p",
|
|
3276
|
+
}), D("span", Bs, W(r.value.loading), 1)])) : T("", !0),
|
|
3277
|
+
r.value.error === void 0 ? T("", !0) : (R(), E("p", Vs, [G(a) ? (R(), w(H(G(a)), { key: 0 })) : T("", !0), D("span", null, W(r.value.error), 1)])),
|
|
3278
|
+
r.value.state ? (R(), E("p", Hs, [A(e, { tone: r.value.state.tone }, {
|
|
3241
3279
|
default: Y(() => [k(W(r.value.state.label), 1)]),
|
|
3242
3280
|
_: 1
|
|
3243
|
-
}, 8, ["tone"]), r.value.quiet ? (R(), E("span",
|
|
3244
|
-
r.value.needsYou.length ? (R(), E("section",
|
|
3281
|
+
}, 8, ["tone"]), r.value.quiet ? (R(), E("span", Us, W(r.value.quiet), 1)) : T("", !0)])) : T("", !0),
|
|
3282
|
+
r.value.needsYou.length ? (R(), E("section", Ws, [D("h3", Gs, W(t.text.statusNeedsYou), 1), D("ul", Ks, [(R(!0), E(S, null, B(r.value.needsYou, (t, n) => (R(), E("li", {
|
|
3245
3283
|
key: n,
|
|
3246
3284
|
class: "glim-status-line"
|
|
3247
3285
|
}, [
|
|
@@ -3255,26 +3293,26 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3255
3293
|
o[1] ||= k(),
|
|
3256
3294
|
D("span", null, W(t.text), 1)
|
|
3257
3295
|
]))), 128))])])) : T("", !0),
|
|
3258
|
-
r.value.work.length ? (R(), E("section",
|
|
3296
|
+
r.value.work.length ? (R(), E("section", qs, [D("h3", Js, W(t.text.statusWork), 1), D("ul", Ys, [(R(!0), E(S, null, B(r.value.work, (e, t) => (R(), E("li", {
|
|
3259
3297
|
key: t,
|
|
3260
3298
|
class: "glim-status-work"
|
|
3261
|
-
}, [D("span", null, W(e.title), 1), A(
|
|
3299
|
+
}, [D("span", null, W(e.title), 1), A(Fs, {
|
|
3262
3300
|
value: e.progress,
|
|
3263
3301
|
label: e.title
|
|
3264
3302
|
}, null, 8, ["value", "label"])]))), 128))])])) : T("", !0),
|
|
3265
|
-
r.value.next.length ? (R(), E("section",
|
|
3303
|
+
r.value.next.length ? (R(), E("section", Xs, [D("h3", Zs, W(t.text.statusNext), 1), D("ul", Qs, [(R(!0), E(S, null, B(r.value.next, (e, t) => (R(), E("li", {
|
|
3266
3304
|
key: t,
|
|
3267
3305
|
class: "glim-status-line"
|
|
3268
3306
|
}, [
|
|
3269
3307
|
D("span", null, W(e.title), 1),
|
|
3270
3308
|
o[2] ||= k(),
|
|
3271
|
-
D("span",
|
|
3309
|
+
D("span", $s, W(e.at), 1)
|
|
3272
3310
|
]))), 128))])])) : T("", !0),
|
|
3273
|
-
r.value.log.length ? (R(), E("section",
|
|
3311
|
+
r.value.log.length ? (R(), E("section", ec, [D("h3", tc, W(t.text.statusLog), 1), D("ul", nc, [(R(!0), E(S, null, B(r.value.log, (t, n) => (R(), E("li", {
|
|
3274
3312
|
key: n,
|
|
3275
3313
|
class: "glim-status-line"
|
|
3276
3314
|
}, [
|
|
3277
|
-
D("span",
|
|
3315
|
+
D("span", rc, W(t.at), 1),
|
|
3278
3316
|
o[3] ||= k(),
|
|
3279
3317
|
t.level ? (R(), w(e, {
|
|
3280
3318
|
key: 0,
|
|
@@ -3286,7 +3324,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3286
3324
|
o[4] ||= k(),
|
|
3287
3325
|
D("span", null, W(t.text), 1)
|
|
3288
3326
|
]))), 128))])])) : T("", !0),
|
|
3289
|
-
r.value.where ? (R(), E("p",
|
|
3327
|
+
r.value.where ? (R(), E("p", ic, W(r.value.where), 1)) : T("", !0)
|
|
3290
3328
|
])]),
|
|
3291
3329
|
_: 1
|
|
3292
3330
|
}, 8, [
|
|
@@ -3296,10 +3334,10 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3296
3334
|
"text"
|
|
3297
3335
|
]));
|
|
3298
3336
|
}
|
|
3299
|
-
}),
|
|
3337
|
+
}), oc = {
|
|
3300
3338
|
class: "glim-glyph-field-glyph",
|
|
3301
3339
|
"aria-hidden": "true"
|
|
3302
|
-
},
|
|
3340
|
+
}, sc = ["aria-label"], cc = /* @__PURE__ */ j({
|
|
3303
3341
|
inheritAttrs: !1,
|
|
3304
3342
|
__name: "GlyphField",
|
|
3305
3343
|
props: /*@__PURE__*/ M({
|
|
@@ -3313,7 +3351,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3313
3351
|
}),
|
|
3314
3352
|
emits: ["update:modelValue"],
|
|
3315
3353
|
setup(e, { expose: t }) {
|
|
3316
|
-
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() =>
|
|
3354
|
+
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => vt(n.width)), o = U(null);
|
|
3317
3355
|
return t({ input: o }), (t, n) => (R(), E("label", {
|
|
3318
3356
|
"data-glim": "GlyphField",
|
|
3319
3357
|
class: P([
|
|
@@ -3325,8 +3363,8 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3325
3363
|
]),
|
|
3326
3364
|
style: F(t.$attrs.style)
|
|
3327
3365
|
}, [
|
|
3328
|
-
D("span",
|
|
3329
|
-
|
|
3366
|
+
D("span", oc, [(R(), w(H(e.glyph)))]),
|
|
3367
|
+
ze(D("input", N({
|
|
3330
3368
|
ref_key: "input",
|
|
3331
3369
|
ref: o,
|
|
3332
3370
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
@@ -3336,11 +3374,11 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3336
3374
|
...t.$attrs,
|
|
3337
3375
|
class: void 0,
|
|
3338
3376
|
style: void 0
|
|
3339
|
-
}, { class: "glim-glyph-field-input" }), null, 16,
|
|
3377
|
+
}, { class: "glim-glyph-field-input" }), null, 16, sc), [[Ie, r.value]]),
|
|
3340
3378
|
V(t.$slots, "after")
|
|
3341
3379
|
], 6));
|
|
3342
3380
|
}
|
|
3343
|
-
}),
|
|
3381
|
+
}), lc = /* @__PURE__ */ j({
|
|
3344
3382
|
__name: "GlyphTile",
|
|
3345
3383
|
props: {
|
|
3346
3384
|
glyph: {},
|
|
@@ -3359,17 +3397,17 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3359
3397
|
"aria-hidden": "true"
|
|
3360
3398
|
}, [(R(), w(H(e.glyph)))], 2));
|
|
3361
3399
|
}
|
|
3362
|
-
}),
|
|
3400
|
+
}), uc = [
|
|
3363
3401
|
"aria-label",
|
|
3364
3402
|
"tabindex",
|
|
3365
3403
|
"onKeydown"
|
|
3366
|
-
],
|
|
3404
|
+
], dc = {
|
|
3367
3405
|
key: 0,
|
|
3368
3406
|
class: "glim-list-row-tile"
|
|
3369
|
-
},
|
|
3407
|
+
}, fc = { class: "glim-list-row-title" }, pc = {
|
|
3370
3408
|
key: 1,
|
|
3371
3409
|
class: "glim-list-row-badges"
|
|
3372
|
-
},
|
|
3410
|
+
}, mc = /* @__PURE__ */ j({
|
|
3373
3411
|
__name: "ListRow",
|
|
3374
3412
|
props: {
|
|
3375
3413
|
name: {},
|
|
@@ -3377,7 +3415,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3377
3415
|
mono: { type: Boolean }
|
|
3378
3416
|
},
|
|
3379
3417
|
setup(e) {
|
|
3380
|
-
let t = e, n =
|
|
3418
|
+
let t = e, n = Ne(), r = C(() => !!n.onClick), i = C(() => ["glim-list-row-name", { "glim-list-row-name--mono": t.mono }]);
|
|
3381
3419
|
function a(e) {
|
|
3382
3420
|
e.preventDefault(), e.currentTarget.click();
|
|
3383
3421
|
}
|
|
@@ -3387,23 +3425,23 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3387
3425
|
"aria-label": e.name,
|
|
3388
3426
|
tabindex: r.value ? 0 : void 0,
|
|
3389
3427
|
class: P(["glim-list-row", { "glim-list-row--opens": r.value }]),
|
|
3390
|
-
onKeydown: [
|
|
3428
|
+
onKeydown: [Be(X(a, ["self"]), ["enter"]), Be(X(a, ["self"]), ["space"])]
|
|
3391
3429
|
}, [
|
|
3392
|
-
t.$slots.tile ? (R(), E("span",
|
|
3393
|
-
D("span", { class: P(i.value) }, [D("span",
|
|
3430
|
+
t.$slots.tile ? (R(), E("span", dc, [V(t.$slots, "tile")])) : T("", !0),
|
|
3431
|
+
D("span", { class: P(i.value) }, [D("span", fc, W(e.name), 1), e.tip ? (R(), E("span", {
|
|
3394
3432
|
key: 0,
|
|
3395
3433
|
class: "glim-list-row-tip",
|
|
3396
3434
|
onClick: n[0] ||= X(() => {}, ["stop"])
|
|
3397
3435
|
}, [A(Q, { tip: e.tip }, null, 8, ["tip"])])) : T("", !0)], 2),
|
|
3398
|
-
t.$slots.badges ? (R(), E("span",
|
|
3436
|
+
t.$slots.badges ? (R(), E("span", pc, [V(t.$slots, "badges")])) : T("", !0),
|
|
3399
3437
|
t.$slots.actions ? (R(), E("span", {
|
|
3400
3438
|
key: 2,
|
|
3401
3439
|
class: "glim-list-row-actions",
|
|
3402
3440
|
onClick: n[1] ||= X(() => {}, ["stop"])
|
|
3403
3441
|
}, [V(t.$slots, "actions")])) : T("", !0)
|
|
3404
|
-
], 42,
|
|
3442
|
+
], 42, uc));
|
|
3405
3443
|
}
|
|
3406
|
-
}),
|
|
3444
|
+
}), hc = ["aria-label"], gc = /* @__PURE__ */ j({
|
|
3407
3445
|
__name: "Popover",
|
|
3408
3446
|
props: {
|
|
3409
3447
|
open: { type: Boolean },
|
|
@@ -3412,13 +3450,13 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3412
3450
|
},
|
|
3413
3451
|
emits: ["close"],
|
|
3414
3452
|
setup(e, { emit: t }) {
|
|
3415
|
-
let n = e, r = t, i = z(null), a =
|
|
3453
|
+
let n = e, r = t, i = z(null), a = Qe(K() ?? "popover"), o;
|
|
3416
3454
|
return J([
|
|
3417
3455
|
() => n.open,
|
|
3418
3456
|
() => n.anchor,
|
|
3419
3457
|
i
|
|
3420
3458
|
], ([e, t, n]) => {
|
|
3421
|
-
o?.(), o = void 0, e && t && n && (o =
|
|
3459
|
+
o?.(), o = void 0, e && t && n && (o = tn(n, t, a, () => r("close")));
|
|
3422
3460
|
}, { flush: "post" }), I(() => o?.()), (t, n) => e.open ? (R(), E("div", {
|
|
3423
3461
|
key: 0,
|
|
3424
3462
|
"data-glim": "Popover",
|
|
@@ -3428,24 +3466,24 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3428
3466
|
role: "dialog",
|
|
3429
3467
|
"aria-label": e.label,
|
|
3430
3468
|
class: "glim-popover"
|
|
3431
|
-
}, [V(t.$slots, "default")], 8,
|
|
3469
|
+
}, [V(t.$slots, "default")], 8, hc)) : T("", !0);
|
|
3432
3470
|
}
|
|
3433
|
-
}),
|
|
3471
|
+
}), _c = {
|
|
3434
3472
|
"data-glim": "ListTable",
|
|
3435
3473
|
class: "glim-list"
|
|
3436
|
-
},
|
|
3474
|
+
}, vc = ["aria-label", "onKeydown"], yc = ["aria-label", "aria-describedby"], bc = ["aria-sort"], xc = { class: "glim-list-th-box" }, Sc = ["onClick"], Cc = [
|
|
3437
3475
|
"aria-label",
|
|
3438
3476
|
"aria-expanded",
|
|
3439
3477
|
"aria-pressed",
|
|
3440
3478
|
"onClick"
|
|
3441
|
-
],
|
|
3479
|
+
], wc = [
|
|
3442
3480
|
"aria-selected",
|
|
3443
3481
|
"onClick",
|
|
3444
3482
|
"onDblclick"
|
|
3445
|
-
],
|
|
3483
|
+
], Tc = ["tabindex"], Ec = {
|
|
3446
3484
|
key: 1,
|
|
3447
3485
|
class: "glim-list-empty"
|
|
3448
|
-
},
|
|
3486
|
+
}, Dc = ["id"], Oc = { class: "glim-list-filter-values" }, kc = /* @__PURE__ */ j({
|
|
3449
3487
|
__name: "ListTable",
|
|
3450
3488
|
props: {
|
|
3451
3489
|
label: {},
|
|
@@ -3461,24 +3499,24 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3461
3499
|
keys: [],
|
|
3462
3500
|
anchor: null,
|
|
3463
3501
|
focus: null
|
|
3464
|
-
}), c = z(null), l = z(null), u = z(null), d = K(), f = C(() =>
|
|
3502
|
+
}), c = z(null), l = z(null), u = z(null), d = K(), f = C(() => Rt(n.rows, {
|
|
3465
3503
|
sort: i.value,
|
|
3466
3504
|
filters: a.value,
|
|
3467
3505
|
query: o.value ?? "",
|
|
3468
3506
|
search: n.search ?? [n.columns[0].key]
|
|
3469
|
-
})),
|
|
3470
|
-
let e = (e) => e === null ? -1 :
|
|
3507
|
+
})), m = C(() => f.value.map(n.rowKey)), h = C(() => {
|
|
3508
|
+
let e = (e) => e === null ? -1 : m.value.indexOf(e);
|
|
3471
3509
|
return {
|
|
3472
|
-
selected:
|
|
3510
|
+
selected: m.value.flatMap((e, t) => s.value.keys.includes(e) ? [t] : []),
|
|
3473
3511
|
anchor: e(s.value.anchor) < 0 ? null : e(s.value.anchor),
|
|
3474
3512
|
focus: Math.max(0, e(s.value.focus))
|
|
3475
3513
|
};
|
|
3476
3514
|
});
|
|
3477
3515
|
function g() {
|
|
3478
|
-
|
|
3516
|
+
Ee(() => l.value?.querySelector(`tbody tr:nth-child(${h.value.focus + 1}) > td`)?.focus());
|
|
3479
3517
|
}
|
|
3480
3518
|
function _(e) {
|
|
3481
|
-
let t =
|
|
3519
|
+
let t = m.value;
|
|
3482
3520
|
s.value = {
|
|
3483
3521
|
keys: e.selected.map((e) => t[e]),
|
|
3484
3522
|
anchor: e.anchor === null ? null : t[e.anchor],
|
|
@@ -3486,14 +3524,14 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3486
3524
|
}, r("select", e.selected.map((e) => f.value[e])), g();
|
|
3487
3525
|
}
|
|
3488
3526
|
function v(e) {
|
|
3489
|
-
let t =
|
|
3527
|
+
let t = It(h.value, e.key, {
|
|
3490
3528
|
toggle: e.ctrlKey || e.metaKey,
|
|
3491
3529
|
range: e.shiftKey
|
|
3492
3530
|
}, f.value.length);
|
|
3493
|
-
t && !e.altKey && (e.preventDefault(), "open" in t ? r("open", f.value[t.open]) : "search" in t ? (o.value = (o.value ?? "") + t.search,
|
|
3531
|
+
t && !e.altKey && (e.preventDefault(), "open" in t ? r("open", f.value[t.open]) : "search" in t ? (o.value = (o.value ?? "") + t.search, Ee(() => u.value?.focus())) : _(t.select));
|
|
3494
3532
|
}
|
|
3495
3533
|
function ee(e, t) {
|
|
3496
|
-
_(
|
|
3534
|
+
_(Pn(h.value, t, {
|
|
3497
3535
|
toggle: e.ctrlKey || e.metaKey,
|
|
3498
3536
|
range: e.shiftKey
|
|
3499
3537
|
}));
|
|
@@ -3502,22 +3540,22 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3502
3540
|
o.value = null, g();
|
|
3503
3541
|
}
|
|
3504
3542
|
let y = C(() => c.value && n.columns.find((e) => e.key === c.value.key)), ne = (e) => a.value[e] ?? [];
|
|
3505
|
-
function
|
|
3543
|
+
function re(e, t) {
|
|
3506
3544
|
let n = ne(e);
|
|
3507
3545
|
a.value = {
|
|
3508
3546
|
...a.value,
|
|
3509
3547
|
[e]: n.includes(t) ? n.filter((e) => e !== t) : [...n, t]
|
|
3510
3548
|
};
|
|
3511
3549
|
}
|
|
3512
|
-
function
|
|
3550
|
+
function b(e, t) {
|
|
3513
3551
|
c.value = c.value?.key === e ? null : {
|
|
3514
3552
|
key: e,
|
|
3515
3553
|
at: t
|
|
3516
3554
|
};
|
|
3517
3555
|
}
|
|
3518
3556
|
let ie = (e, t) => String(e[t] ?? "");
|
|
3519
|
-
return (t, n) => (R(), E("div",
|
|
3520
|
-
o.value === null ? T("", !0) :
|
|
3557
|
+
return (t, n) => (R(), E("div", _c, [
|
|
3558
|
+
o.value === null ? T("", !0) : ze((R(), E("input", {
|
|
3521
3559
|
key: 0,
|
|
3522
3560
|
ref_key: "searchField",
|
|
3523
3561
|
ref: u,
|
|
@@ -3525,8 +3563,8 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3525
3563
|
class: "glim-input glim-list-search",
|
|
3526
3564
|
type: "search",
|
|
3527
3565
|
"aria-label": e.text.search,
|
|
3528
|
-
onKeydown:
|
|
3529
|
-
}, null, 40,
|
|
3566
|
+
onKeydown: Be(X(te, ["prevent", "stop"]), ["esc"])
|
|
3567
|
+
}, null, 40, vc)), [[Ie, o.value]]),
|
|
3530
3568
|
D("table", {
|
|
3531
3569
|
ref_key: "grid",
|
|
3532
3570
|
ref: l,
|
|
@@ -3538,17 +3576,17 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3538
3576
|
}, [D("thead", null, [D("tr", null, [(R(!0), E(S, null, B(e.columns, (t) => (R(), E("th", {
|
|
3539
3577
|
key: t.key,
|
|
3540
3578
|
scope: "col",
|
|
3541
|
-
"aria-sort": G(
|
|
3579
|
+
"aria-sort": G(tt)(i.value, t.key),
|
|
3542
3580
|
class: P(t.end ? "glim-list-th glim-table-end" : "glim-list-th")
|
|
3543
|
-
}, [D("span",
|
|
3581
|
+
}, [D("span", xc, [D("button", {
|
|
3544
3582
|
type: "button",
|
|
3545
3583
|
class: "glim-list-sort",
|
|
3546
|
-
onClick: (e) => i.value = G(
|
|
3547
|
-
}, [k(W(t.label) + " ", 1), i.value?.key === t.key ? (R(), w(G(
|
|
3584
|
+
onClick: (e) => i.value = G(Yt)(i.value, t.key)
|
|
3585
|
+
}, [k(W(t.label) + " ", 1), i.value?.key === t.key ? (R(), w(G(p), {
|
|
3548
3586
|
key: 0,
|
|
3549
3587
|
mark: G(qe).expand,
|
|
3550
3588
|
class: P(`glim-list-sort-mark glim-list-sort-mark--${i.value.dir}`)
|
|
3551
|
-
}, null, 8, ["mark", "class"])) : T("", !0)], 8,
|
|
3589
|
+
}, null, 8, ["mark", "class"])) : T("", !0)], 8, Sc), t.filter ? (R(), E("button", {
|
|
3552
3590
|
key: 0,
|
|
3553
3591
|
type: "button",
|
|
3554
3592
|
"aria-label": e.text.filterOf(t.label),
|
|
@@ -3556,9 +3594,9 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3556
3594
|
"aria-expanded": c.value?.key === t.key,
|
|
3557
3595
|
"aria-pressed": ne(t.key).length > 0,
|
|
3558
3596
|
class: "glim-list-filter",
|
|
3559
|
-
onClick: (e) =>
|
|
3560
|
-
}, [A(G(
|
|
3561
|
-
key:
|
|
3597
|
+
onClick: (e) => b(t.key, e.currentTarget)
|
|
3598
|
+
}, [A(G(p), { mark: G(qe).expand }, null, 8, ["mark"])], 8, Cc)) : T("", !0)])], 10, bc))), 128))])]), D("tbody", { onKeydown: v }, [(R(!0), E(S, null, B(f.value, (n, i) => (R(), E("tr", {
|
|
3599
|
+
key: m.value[i],
|
|
3562
3600
|
"aria-selected": h.value.selected.includes(i),
|
|
3563
3601
|
class: "glim-list-tr",
|
|
3564
3602
|
onClick: (e) => ee(e, i),
|
|
@@ -3566,28 +3604,28 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3566
3604
|
}, [(R(!0), E(S, null, B(e.columns, (e, r) => (R(), E("td", {
|
|
3567
3605
|
key: e.key,
|
|
3568
3606
|
tabindex: r === 0 ? i === h.value.focus ? 0 : -1 : void 0,
|
|
3569
|
-
class: P(G(
|
|
3607
|
+
class: P(G($n)(e) || void 0)
|
|
3570
3608
|
}, [V(t.$slots, "cell", {
|
|
3571
3609
|
row: n,
|
|
3572
3610
|
column: e
|
|
3573
|
-
}, () => [k(W(ie(n, e.key)), 1)])], 10,
|
|
3574
|
-
f.value.length === 0 ? (R(), E("p",
|
|
3611
|
+
}, () => [k(W(ie(n, e.key)), 1)])], 10, Tc))), 128))], 40, wc))), 128))], 32)], 8, yc),
|
|
3612
|
+
f.value.length === 0 ? (R(), E("p", Ec, W(e.text.noMatch), 1)) : T("", !0),
|
|
3575
3613
|
D("p", {
|
|
3576
3614
|
id: G(d),
|
|
3577
3615
|
class: "glim-list-hint"
|
|
3578
|
-
}, W(e.text.hint), 9,
|
|
3579
|
-
y.value ? (R(), w(
|
|
3616
|
+
}, W(e.text.hint), 9, Dc),
|
|
3617
|
+
y.value ? (R(), w(gc, {
|
|
3580
3618
|
key: 2,
|
|
3581
3619
|
open: !0,
|
|
3582
3620
|
anchor: c.value.at,
|
|
3583
3621
|
label: e.text.filterOf(y.value.label),
|
|
3584
3622
|
onClose: n[1] ||= (e) => c.value = null
|
|
3585
3623
|
}, {
|
|
3586
|
-
default: Y(() => [D("div",
|
|
3624
|
+
default: Y(() => [D("div", Oc, [(R(!0), E(S, null, B(G(ot)(e.rows, y.value.key), (e) => (R(), w(Zr, {
|
|
3587
3625
|
key: e,
|
|
3588
3626
|
label: e,
|
|
3589
3627
|
"model-value": ne(y.value.key).includes(e),
|
|
3590
|
-
"onUpdate:modelValue": (t) =>
|
|
3628
|
+
"onUpdate:modelValue": (t) => re(y.value.key, e)
|
|
3591
3629
|
}, null, 8, [
|
|
3592
3630
|
"label",
|
|
3593
3631
|
"model-value",
|
|
@@ -3597,14 +3635,14 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3597
3635
|
}, 8, ["anchor", "label"])) : T("", !0)
|
|
3598
3636
|
]));
|
|
3599
3637
|
}
|
|
3600
|
-
}),
|
|
3638
|
+
}), Ac = ["aria-label"], jc = [
|
|
3601
3639
|
"aria-expanded",
|
|
3602
3640
|
"tabindex",
|
|
3603
3641
|
"onClick",
|
|
3604
3642
|
"onMouseenter",
|
|
3605
3643
|
"onKeydown",
|
|
3606
3644
|
"onFocus"
|
|
3607
|
-
],
|
|
3645
|
+
], Mc = /* @__PURE__ */ j({
|
|
3608
3646
|
__name: "MenuBar",
|
|
3609
3647
|
props: {
|
|
3610
3648
|
label: {},
|
|
@@ -3658,7 +3696,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3658
3696
|
onMouseenter: (e) => i.value && i.value.at !== t && o(t),
|
|
3659
3697
|
onKeydown: (e) => l(e, t),
|
|
3660
3698
|
onFocus: (e) => a.value = t
|
|
3661
|
-
}, W(e.label), 41,
|
|
3699
|
+
}, W(e.label), 41, jc))), 128)), i.value && e.menus[i.value.at] ? (R(), w(Ki, {
|
|
3662
3700
|
key: i.value.at,
|
|
3663
3701
|
x: i.value.x,
|
|
3664
3702
|
y: i.value.y,
|
|
@@ -3677,9 +3715,9 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3677
3715
|
"id",
|
|
3678
3716
|
"opener",
|
|
3679
3717
|
"from-end"
|
|
3680
|
-
])) : T("", !0)], 8,
|
|
3718
|
+
])) : T("", !0)], 8, Ac));
|
|
3681
3719
|
}
|
|
3682
|
-
}),
|
|
3720
|
+
}), Nc = [
|
|
3683
3721
|
"role",
|
|
3684
3722
|
"aria-label",
|
|
3685
3723
|
"aria-valuemin",
|
|
@@ -3687,7 +3725,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3687
3725
|
"aria-valuenow",
|
|
3688
3726
|
"aria-valuetext",
|
|
3689
3727
|
"aria-busy"
|
|
3690
|
-
],
|
|
3728
|
+
], Pc = /* @__PURE__ */ j({
|
|
3691
3729
|
inheritAttrs: !1,
|
|
3692
3730
|
__name: "Meter",
|
|
3693
3731
|
props: {
|
|
@@ -3702,7 +3740,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3702
3740
|
valueText: {}
|
|
3703
3741
|
},
|
|
3704
3742
|
setup(e) {
|
|
3705
|
-
let r = e, i = C(() =>
|
|
3743
|
+
let r = e, i = C(() => qt(r.value, {
|
|
3706
3744
|
size: r.size,
|
|
3707
3745
|
threshold: r.threshold,
|
|
3708
3746
|
quiet: r.quiet
|
|
@@ -3722,16 +3760,16 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3722
3760
|
}), [D("span", {
|
|
3723
3761
|
class: "glim-meter-fill",
|
|
3724
3762
|
style: F(i.value.width ? { width: i.value.width } : void 0)
|
|
3725
|
-
}, null, 4)], 16,
|
|
3763
|
+
}, null, 4)], 16, Nc), A(t, { state: G(o) }, null, 8, ["state"])], 64));
|
|
3726
3764
|
}
|
|
3727
|
-
}),
|
|
3765
|
+
}), Fc = {
|
|
3728
3766
|
"data-glim": "NumberField",
|
|
3729
3767
|
class: "glim-num-wrap"
|
|
3730
|
-
},
|
|
3768
|
+
}, Ic = [
|
|
3731
3769
|
"aria-label",
|
|
3732
3770
|
"aria-invalid",
|
|
3733
3771
|
"aria-describedby"
|
|
3734
|
-
],
|
|
3772
|
+
], Lc = /* @__PURE__ */ j({
|
|
3735
3773
|
inheritAttrs: !1,
|
|
3736
3774
|
__name: "NumberField",
|
|
3737
3775
|
props: /*@__PURE__*/ M({ error: {} }, {
|
|
@@ -3740,9 +3778,9 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3740
3778
|
}),
|
|
3741
3779
|
emits: ["update:modelValue"],
|
|
3742
3780
|
setup(e) {
|
|
3743
|
-
let t = e, n = q(e, "modelValue"), r =
|
|
3781
|
+
let t = e, n = q(e, "modelValue"), r = Ne(), i = x(() => r["aria-label"]), a = K(), o = C(() => _t(t.error, r.id ?? a, r["aria-describedby"])), s = U(null), c;
|
|
3744
3782
|
L(() => {
|
|
3745
|
-
l(n.value), c =
|
|
3783
|
+
l(n.value), c = nt(s.value);
|
|
3746
3784
|
}), I(() => c?.());
|
|
3747
3785
|
function l(e) {
|
|
3748
3786
|
let t = s.value;
|
|
@@ -3756,13 +3794,13 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3756
3794
|
() => r.disabled,
|
|
3757
3795
|
() => r.readonly
|
|
3758
3796
|
], () => {
|
|
3759
|
-
l(n.value), s.value &&
|
|
3797
|
+
l(n.value), s.value && Qn(s.value);
|
|
3760
3798
|
}, { flush: "post" });
|
|
3761
3799
|
function u(e) {
|
|
3762
3800
|
let t = e.target;
|
|
3763
3801
|
n.value = t.value === "" ? null : t.valueAsNumber;
|
|
3764
3802
|
}
|
|
3765
|
-
return (t, n) => (R(), E(S, null, [D("span",
|
|
3803
|
+
return (t, n) => (R(), E(S, null, [D("span", Fc, [D("input", N(t.$attrs, {
|
|
3766
3804
|
ref_key: "input",
|
|
3767
3805
|
ref: s,
|
|
3768
3806
|
"aria-label": G(i),
|
|
@@ -3771,7 +3809,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3771
3809
|
type: "number",
|
|
3772
3810
|
class: "glim-num-input glim-num-field glim-num",
|
|
3773
3811
|
onInput: u
|
|
3774
|
-
}), null, 16,
|
|
3812
|
+
}), null, 16, Ic)]), o.value.errorId ? (R(), w(xa, {
|
|
3775
3813
|
key: 0,
|
|
3776
3814
|
id: o.value.errorId
|
|
3777
3815
|
}, {
|
|
@@ -3779,7 +3817,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3779
3817
|
_: 1
|
|
3780
3818
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
3781
3819
|
}
|
|
3782
|
-
}),
|
|
3820
|
+
}), Rc = ["aria-label", "disabled"], zc = /* @__PURE__ */ j({
|
|
3783
3821
|
inheritAttrs: !1,
|
|
3784
3822
|
__name: "PathField",
|
|
3785
3823
|
props: /*@__PURE__*/ M({
|
|
@@ -3802,7 +3840,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3802
3840
|
setup(e, { expose: t, emit: n }) {
|
|
3803
3841
|
let r = e, i = q(e, "modelValue"), a = n, o = x(() => r.label), s = U(null);
|
|
3804
3842
|
t({ input: s });
|
|
3805
|
-
let c = U(null), l = z(!1), u = new ResizeObserver(([e]) => l.value = e.contentRect.width <
|
|
3843
|
+
let c = U(null), l = z(!1), u = new ResizeObserver(([e]) => l.value = e.contentRect.width < Ye);
|
|
3806
3844
|
L(() => u.observe(c.value)), I(() => u.disconnect());
|
|
3807
3845
|
async function d() {
|
|
3808
3846
|
let e = await r.pick(i.value);
|
|
@@ -3814,11 +3852,11 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3814
3852
|
"data-glim": "PathField",
|
|
3815
3853
|
class: P([
|
|
3816
3854
|
"glim-path",
|
|
3817
|
-
G(
|
|
3855
|
+
G(vt)(e.width),
|
|
3818
3856
|
t.$attrs.class
|
|
3819
3857
|
]),
|
|
3820
3858
|
style: F(t.$attrs.style)
|
|
3821
|
-
}, [
|
|
3859
|
+
}, [ze(D("input", N({
|
|
3822
3860
|
ref_key: "input",
|
|
3823
3861
|
ref: s,
|
|
3824
3862
|
"onUpdate:modelValue": n[0] ||= (e) => i.value = e,
|
|
@@ -3833,11 +3871,11 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3833
3871
|
}, {
|
|
3834
3872
|
disabled: e.disabled,
|
|
3835
3873
|
class: "glim-input glim-input--mono"
|
|
3836
|
-
}), null, 16,
|
|
3874
|
+
}), null, 16, Rc), [[Ie, i.value]]), A(f, N(e.buttonAttrs, {
|
|
3837
3875
|
variant: "icon",
|
|
3838
3876
|
label: e.text.pick,
|
|
3839
3877
|
"label-key": null,
|
|
3840
|
-
glyph: e.glyph ?? G(
|
|
3878
|
+
glyph: e.glyph ?? G(fe),
|
|
3841
3879
|
compact: e.compact || l.value,
|
|
3842
3880
|
disabled: e.disabled,
|
|
3843
3881
|
onClick: d
|
|
@@ -3848,27 +3886,27 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3848
3886
|
"disabled"
|
|
3849
3887
|
])], 6));
|
|
3850
3888
|
}
|
|
3851
|
-
}),
|
|
3889
|
+
}), Bc = ["data-glim-title"], Vc = { class: "glim-modal-head" }, Hc = {
|
|
3852
3890
|
id: "paypal-window-title",
|
|
3853
3891
|
class: "glim-modal-title"
|
|
3854
|
-
},
|
|
3892
|
+
}, Uc = { class: "glim-give-body glim-give-body--scroll" }, Wc = { class: "glim-give-appeal" }, Gc = { class: "glim-give-intro" }, Kc = { class: "glim-give-group" }, qc = {
|
|
3855
3893
|
id: "paypal-frequency",
|
|
3856
3894
|
class: "glim-eyebrow"
|
|
3857
|
-
},
|
|
3895
|
+
}, Jc = { class: "glim-give-group" }, Yc = {
|
|
3858
3896
|
id: "paypal-amount",
|
|
3859
3897
|
class: "glim-eyebrow"
|
|
3860
|
-
},
|
|
3898
|
+
}, Xc = { class: "glim-give-amounts" }, Zc = [
|
|
3861
3899
|
"value",
|
|
3862
3900
|
"placeholder",
|
|
3863
3901
|
"aria-label",
|
|
3864
3902
|
"aria-invalid"
|
|
3865
|
-
],
|
|
3903
|
+
], Qc = { class: "glim-give-loading" }, $c = {
|
|
3866
3904
|
key: 0,
|
|
3867
3905
|
class: "glim-give-status glim-give-status--ok"
|
|
3868
|
-
},
|
|
3906
|
+
}, el = {
|
|
3869
3907
|
key: 1,
|
|
3870
3908
|
class: "glim-give-status glim-give-status--fail"
|
|
3871
|
-
},
|
|
3909
|
+
}, tl = { class: "glim-give-foot" }, nl = /* @__PURE__ */ j({
|
|
3872
3910
|
__name: "PaypalDialog",
|
|
3873
3911
|
props: {
|
|
3874
3912
|
text: {},
|
|
@@ -3909,7 +3947,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3909
3947
|
"aria-labelledby": "paypal-window-title",
|
|
3910
3948
|
class: "glim-modal-card glim-modal-card--wide"
|
|
3911
3949
|
}, [
|
|
3912
|
-
D("div",
|
|
3950
|
+
D("div", Vc, [D("h2", Hc, [A(e, {
|
|
3913
3951
|
tone: "heading",
|
|
3914
3952
|
size: "heading",
|
|
3915
3953
|
wrap: ""
|
|
@@ -3917,10 +3955,10 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3917
3955
|
default: Y(() => [k(W(t.text.title), 1)]),
|
|
3918
3956
|
_: 1
|
|
3919
3957
|
})])]),
|
|
3920
|
-
D("div",
|
|
3921
|
-
D("p",
|
|
3922
|
-
D("p",
|
|
3923
|
-
D("div",
|
|
3958
|
+
D("div", Uc, [
|
|
3959
|
+
D("p", Wc, W(t.text.appeal), 1),
|
|
3960
|
+
D("p", Gc, W(t.text.intro), 1),
|
|
3961
|
+
D("div", Kc, [D("span", qc, W(t.text.frequencyLabel), 1), V(n.$slots, "selector", {
|
|
3924
3962
|
labelledBy: "paypal-frequency",
|
|
3925
3963
|
options: a.map((e) => ({
|
|
3926
3964
|
value: e,
|
|
@@ -3929,7 +3967,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3929
3967
|
value: t.frequency,
|
|
3930
3968
|
onChange: s
|
|
3931
3969
|
})]),
|
|
3932
|
-
D("div",
|
|
3970
|
+
D("div", Jc, [D("span", Yc, W(t.text.amountLabel), 1), D("div", Xc, [D("div", null, [V(n.$slots, "selector", {
|
|
3933
3971
|
labelledBy: "paypal-amount",
|
|
3934
3972
|
options: t.amounts.map((e) => ({
|
|
3935
3973
|
value: e,
|
|
@@ -3946,29 +3984,29 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3946
3984
|
"aria-invalid": t.typed !== "" && !t.typedValid,
|
|
3947
3985
|
class: P(t.typedValid ? "glim-give-amount glim-give-amount--valid" : "glim-give-amount"),
|
|
3948
3986
|
onInput: l
|
|
3949
|
-
}, null, 42,
|
|
3987
|
+
}, null, 42, Zc)])]),
|
|
3950
3988
|
D("div", {
|
|
3951
3989
|
ref: t.buttonsRef,
|
|
3952
3990
|
class: "glim-give-wallet"
|
|
3953
|
-
}, [D("p",
|
|
3954
|
-
t.status === "done" ? (R(), E("p",
|
|
3955
|
-
t.status === "failed" ? (R(), E("p",
|
|
3991
|
+
}, [D("p", Qc, W(t.text.loading), 1)], 512),
|
|
3992
|
+
t.status === "done" ? (R(), E("p", $c, W(t.text.thanks), 1)) : T("", !0),
|
|
3993
|
+
t.status === "failed" ? (R(), E("p", el, W(t.text.failed), 1)) : T("", !0)
|
|
3956
3994
|
]),
|
|
3957
|
-
D("div",
|
|
3995
|
+
D("div", tl, [A(f, {
|
|
3958
3996
|
label: t.text.closeLabel,
|
|
3959
3997
|
"label-key": "common.close",
|
|
3960
3998
|
tone: "neutral",
|
|
3961
3999
|
onClick: r[0] ||= (e) => i("close")
|
|
3962
4000
|
}, null, 8, ["label"])])
|
|
3963
|
-
], 8,
|
|
4001
|
+
], 8, Bc)]));
|
|
3964
4002
|
}
|
|
3965
|
-
}),
|
|
4003
|
+
}), rl = {
|
|
3966
4004
|
key: 0,
|
|
3967
4005
|
class: "glim-pick-none"
|
|
3968
|
-
},
|
|
4006
|
+
}, il = {
|
|
3969
4007
|
key: 0,
|
|
3970
4008
|
class: "glim-pick-eyebrow"
|
|
3971
|
-
},
|
|
4009
|
+
}, al = { class: "glim-eyebrow" }, ol = { class: "glim-provider-pick" }, sl = /* @__PURE__ */ j({
|
|
3972
4010
|
__name: "PickerWindow",
|
|
3973
4011
|
props: {
|
|
3974
4012
|
title: {},
|
|
@@ -3986,32 +4024,32 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
3986
4024
|
"close"
|
|
3987
4025
|
],
|
|
3988
4026
|
setup(t, { emit: n }) {
|
|
3989
|
-
let r = t, i = n, a =
|
|
4027
|
+
let r = t, i = n, a = Pe(), o = z(""), s = U(null), c = U(null), l = () => c.value?.input ?? null, u = hn(), d = U(null), f = () => !!a.default, p = !1;
|
|
3990
4028
|
L(() => {
|
|
3991
|
-
p = f(), d.value &&
|
|
3992
|
-
}),
|
|
3993
|
-
f() !== p && (p = f(), d.value &&
|
|
4029
|
+
p = f(), d.value && Ot(d.value), r.selected && s.value?.card && ln(s.value.card, d.value)?.focus();
|
|
4030
|
+
}), ke(() => {
|
|
4031
|
+
f() !== p && (p = f(), d.value && Ot(d.value), s.value?.card && ln(s.value.card, d.value)?.focus());
|
|
3994
4032
|
});
|
|
3995
4033
|
let m = C(() => ({
|
|
3996
4034
|
label: r.text.back,
|
|
3997
4035
|
labelKey: "common.back",
|
|
3998
|
-
glyph:
|
|
4036
|
+
glyph: de,
|
|
3999
4037
|
onClick: () => (i("back"), !1)
|
|
4000
4038
|
})), h = () => f() ? [m.value, ...r.actions] : [{
|
|
4001
4039
|
label: r.text.close,
|
|
4002
4040
|
labelKey: "common.close",
|
|
4003
|
-
glyph:
|
|
4041
|
+
glyph: _,
|
|
4004
4042
|
wayOut: !0
|
|
4005
|
-
}],
|
|
4043
|
+
}], g = C(() => fn(r.items, r.groups, o.value, an())), v = (e, t) => {
|
|
4006
4044
|
t && (e.preventDefault(), e.stopPropagation());
|
|
4007
4045
|
};
|
|
4008
4046
|
function ee() {
|
|
4009
4047
|
o.value = "", l()?.focus();
|
|
4010
4048
|
}
|
|
4011
|
-
let te = (e) => v(e,
|
|
4012
|
-
e.target !== e.currentTarget && v(e,
|
|
4049
|
+
let te = (e) => v(e, dn(e.key, o.value, d.value, () => o.value = "")), y = (e) => {
|
|
4050
|
+
e.target !== e.currentTarget && v(e, pn(e.key, e.target, e.currentTarget, l()));
|
|
4013
4051
|
};
|
|
4014
|
-
return (n, r) => (R(), w(
|
|
4052
|
+
return (n, r) => (R(), w(Pa, {
|
|
4015
4053
|
ref_key: "win",
|
|
4016
4054
|
ref: s,
|
|
4017
4055
|
"data-glim": "PickerWindow",
|
|
@@ -4030,13 +4068,13 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4030
4068
|
actions: h(),
|
|
4031
4069
|
onClose: r[1] ||= (e) => i("close")
|
|
4032
4070
|
}, O({
|
|
4033
|
-
default: Y(() => [f() ? V(n.$slots, "default", {}, void 0, void 0, 0) : (R(), E(S, { key: 1 }, [A(
|
|
4071
|
+
default: Y(() => [f() ? V(n.$slots, "default", {}, void 0, void 0, 0) : (R(), E(S, { key: 1 }, [A(cc, {
|
|
4034
4072
|
ref_key: "field",
|
|
4035
4073
|
ref: c,
|
|
4036
4074
|
modelValue: o.value,
|
|
4037
4075
|
"onUpdate:modelValue": r[0] ||= (e) => o.value = e,
|
|
4038
4076
|
class: "glim-pick-search",
|
|
4039
|
-
glyph: G(
|
|
4077
|
+
glyph: G(ne),
|
|
4040
4078
|
type: "search",
|
|
4041
4079
|
label: t.text.search,
|
|
4042
4080
|
placeholder: t.text.search,
|
|
@@ -4045,9 +4083,9 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4045
4083
|
onKeydown: te
|
|
4046
4084
|
}, O({ _: 2 }, [o.value ? {
|
|
4047
4085
|
name: "after",
|
|
4048
|
-
fn: Y(() => [A(
|
|
4086
|
+
fn: Y(() => [A(Se, {
|
|
4049
4087
|
tip: t.text.clear,
|
|
4050
|
-
glyph: G(
|
|
4088
|
+
glyph: G(_),
|
|
4051
4089
|
onClick: ee
|
|
4052
4090
|
}, null, 8, ["tip", "glyph"])]),
|
|
4053
4091
|
key: "0"
|
|
@@ -4060,12 +4098,12 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4060
4098
|
ref_key: "scroll",
|
|
4061
4099
|
ref: d,
|
|
4062
4100
|
class: "glim-pick-scroll",
|
|
4063
|
-
onKeydown:
|
|
4064
|
-
}, [
|
|
4101
|
+
onKeydown: y
|
|
4102
|
+
}, [g.value.length === 0 ? (R(), E("p", rl, W(G(Z)(t.text.none, { query: o.value.trim() })), 1)) : (R(!0), E(S, { key: 1 }, B(g.value, (n) => (R(), E("section", {
|
|
4065
4103
|
key: n.id,
|
|
4066
4104
|
class: "glim-pick-section"
|
|
4067
|
-
}, [n.title ? (R(), E("div",
|
|
4068
|
-
D("h3",
|
|
4105
|
+
}, [n.title ? (R(), E("div", il, [
|
|
4106
|
+
D("h3", al, W(n.title), 1),
|
|
4069
4107
|
n.badge ? (R(), w(e, {
|
|
4070
4108
|
key: 0,
|
|
4071
4109
|
size: "small",
|
|
@@ -4078,9 +4116,9 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4078
4116
|
key: 1,
|
|
4079
4117
|
tip: n.hint
|
|
4080
4118
|
}, null, 8, ["tip"])) : T("", !0)
|
|
4081
|
-
])) : T("", !0), D("ul",
|
|
4119
|
+
])) : T("", !0), D("ul", ol, [(R(!0), E(S, null, B(n.items, (e) => (R(), E("li", {
|
|
4082
4120
|
key: e.id,
|
|
4083
|
-
style: F(G(
|
|
4121
|
+
style: F(G(mn)(e.mark))
|
|
4084
4122
|
}, [A($, {
|
|
4085
4123
|
brand: "house",
|
|
4086
4124
|
parts: [{
|
|
@@ -4090,12 +4128,12 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4090
4128
|
}],
|
|
4091
4129
|
"soon-label": e.status,
|
|
4092
4130
|
current: e.id === t.selected,
|
|
4093
|
-
"mark-class": G(
|
|
4131
|
+
"mark-class": G(un)(e.mark),
|
|
4094
4132
|
hint: e.hint,
|
|
4095
4133
|
tip: e.tip
|
|
4096
4134
|
}, O({ _: 2 }, [e.mark ? {
|
|
4097
4135
|
name: "mark",
|
|
4098
|
-
fn: Y(() => [G(
|
|
4136
|
+
fn: Y(() => [G(jt)(e.mark) ? (R(), w(qr, {
|
|
4099
4137
|
key: 0,
|
|
4100
4138
|
svg: e.mark.svg,
|
|
4101
4139
|
hover: e.mark.hover
|
|
@@ -4131,7 +4169,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4131
4169
|
"actions"
|
|
4132
4170
|
]));
|
|
4133
4171
|
}
|
|
4134
|
-
}),
|
|
4172
|
+
}), cl = /* @__PURE__ */ j({
|
|
4135
4173
|
__name: "RowMark",
|
|
4136
4174
|
props: { on: { type: Boolean } },
|
|
4137
4175
|
setup(e) {
|
|
@@ -4141,7 +4179,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4141
4179
|
"aria-hidden": "true"
|
|
4142
4180
|
}, [A(G(b))], 2));
|
|
4143
4181
|
}
|
|
4144
|
-
}),
|
|
4182
|
+
}), ll = { class: "glim-sr-only" }, ul = /* @__PURE__ */ j({
|
|
4145
4183
|
inheritAttrs: !1,
|
|
4146
4184
|
__name: "SidebarRowLink",
|
|
4147
4185
|
props: {
|
|
@@ -4176,7 +4214,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4176
4214
|
e.view.countClass && e.count ? (R(), E(S, { key: 1 }, [D("span", {
|
|
4177
4215
|
class: P(e.view.countClass),
|
|
4178
4216
|
"aria-hidden": "true"
|
|
4179
|
-
}, W(e.count.value), 3), D("span",
|
|
4217
|
+
}, W(e.count.value), 3), D("span", ll, W(e.count.label), 1)], 64)) : T("", !0)
|
|
4180
4218
|
]),
|
|
4181
4219
|
_: 1
|
|
4182
4220
|
}, 16, [
|
|
@@ -4191,13 +4229,13 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4191
4229
|
"onBlur"
|
|
4192
4230
|
])), A(t, { state: G(i) }, null, 8, ["state"])], 64));
|
|
4193
4231
|
}
|
|
4194
|
-
}),
|
|
4232
|
+
}), dl = {
|
|
4195
4233
|
key: 0,
|
|
4196
4234
|
class: "glim-nav-row-slot"
|
|
4197
|
-
},
|
|
4235
|
+
}, fl = {
|
|
4198
4236
|
key: 1,
|
|
4199
4237
|
class: "glim-nav-row-slot"
|
|
4200
|
-
},
|
|
4238
|
+
}, pl = /* @__PURE__ */ j({
|
|
4201
4239
|
inheritAttrs: !1,
|
|
4202
4240
|
__name: "SidebarRow",
|
|
4203
4241
|
props: {
|
|
@@ -4213,7 +4251,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4213
4251
|
depth: {}
|
|
4214
4252
|
},
|
|
4215
4253
|
setup(e) {
|
|
4216
|
-
let t = e, n = l("sidebar"), r =
|
|
4254
|
+
let t = e, n = l("sidebar"), r = Pe(), i = C(() => Hn({
|
|
4217
4255
|
mode: n.value,
|
|
4218
4256
|
label: t.label,
|
|
4219
4257
|
hasGlyph: !!t.glyph,
|
|
@@ -4240,15 +4278,15 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4240
4278
|
]),
|
|
4241
4279
|
style: F([i.value.style, e.$attrs.style])
|
|
4242
4280
|
}, [
|
|
4243
|
-
e.$slots.before ? (R(), E("span",
|
|
4244
|
-
A(
|
|
4281
|
+
e.$slots.before ? (R(), E("span", dl, [V(e.$slots, "before")])) : T("", !0),
|
|
4282
|
+
A(ul, N({
|
|
4245
4283
|
...e.$attrs,
|
|
4246
4284
|
...a.value,
|
|
4247
4285
|
class: void 0,
|
|
4248
4286
|
style: void 0
|
|
4249
4287
|
}, { "class-name": "glim-nav-row-main" }), null, 16),
|
|
4250
|
-
e.$slots.after ? (R(), E("span",
|
|
4251
|
-
], 6)) : (R(), w(
|
|
4288
|
+
e.$slots.after ? (R(), E("span", fl, [V(e.$slots, "after")])) : T("", !0)
|
|
4289
|
+
], 6)) : (R(), w(ul, N({
|
|
4252
4290
|
key: 1,
|
|
4253
4291
|
"data-glim": "SidebarRow"
|
|
4254
4292
|
}, {
|
|
@@ -4265,7 +4303,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4265
4303
|
"style"
|
|
4266
4304
|
]));
|
|
4267
4305
|
}
|
|
4268
|
-
}),
|
|
4306
|
+
}), ml = ["data-glim-title", "aria-labelledby"], hl = { class: "glim-sheet-panel" }, gl = ["id"], _l = { class: "glim-sheet-body" }, vl = /* @__PURE__ */ j({
|
|
4269
4307
|
__name: "Sheet",
|
|
4270
4308
|
props: {
|
|
4271
4309
|
open: { type: Boolean },
|
|
@@ -4276,9 +4314,9 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4276
4314
|
},
|
|
4277
4315
|
emits: ["close"],
|
|
4278
4316
|
setup(t, { emit: n }) {
|
|
4279
|
-
let r = t, i = n, a =
|
|
4317
|
+
let r = t, i = n, a = Pe(), o = z(null), s = K(), c = C(() => Dt(r.start) || !!a.start), l;
|
|
4280
4318
|
return J([() => r.open, o], ([e, t]) => {
|
|
4281
|
-
l?.(), l = void 0, e && t && (l =
|
|
4319
|
+
l?.(), l = void 0, e && t && (l = nn(t, () => i("close")));
|
|
4282
4320
|
}, { flush: "post" }), I(() => l?.()), (n, r) => t.open ? (R(), E("dialog", {
|
|
4283
4321
|
key: 0,
|
|
4284
4322
|
"data-glim": "Sheet",
|
|
@@ -4287,7 +4325,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4287
4325
|
ref: o,
|
|
4288
4326
|
"aria-labelledby": G(s),
|
|
4289
4327
|
class: "glim-sheet"
|
|
4290
|
-
}, [D("div",
|
|
4328
|
+
}, [D("div", hl, [
|
|
4291
4329
|
D("h2", {
|
|
4292
4330
|
id: G(s),
|
|
4293
4331
|
class: "glim-sheet-title"
|
|
@@ -4299,9 +4337,9 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4299
4337
|
}, {
|
|
4300
4338
|
default: Y(() => [k(W(t.title), 1)]),
|
|
4301
4339
|
_: 1
|
|
4302
|
-
})], 8,
|
|
4303
|
-
D("div",
|
|
4304
|
-
A(
|
|
4340
|
+
})], 8, gl),
|
|
4341
|
+
D("div", _l, [V(n.$slots, "default")]),
|
|
4342
|
+
A(Aa, {
|
|
4305
4343
|
actions: t.actions,
|
|
4306
4344
|
start: t.start,
|
|
4307
4345
|
"has-start": c.value,
|
|
@@ -4317,12 +4355,12 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4317
4355
|
"has-start",
|
|
4318
4356
|
"text"
|
|
4319
4357
|
])
|
|
4320
|
-
])], 8,
|
|
4358
|
+
])], 8, ml)) : T("", !0);
|
|
4321
4359
|
}
|
|
4322
|
-
}),
|
|
4360
|
+
}), yl = {
|
|
4323
4361
|
"data-glim": "SignInField",
|
|
4324
4362
|
class: "glim-signin-field"
|
|
4325
|
-
},
|
|
4363
|
+
}, bl = ["for"], xl = /* @__PURE__ */ j({
|
|
4326
4364
|
__name: "SignInField",
|
|
4327
4365
|
props: {
|
|
4328
4366
|
label: {},
|
|
@@ -4331,21 +4369,21 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4331
4369
|
},
|
|
4332
4370
|
setup(e) {
|
|
4333
4371
|
let t = e, n = z(!1), r = (e) => {
|
|
4334
|
-
n.value =
|
|
4372
|
+
n.value = Ft(document.getElementById(t.for), t.label, t.hint, e);
|
|
4335
4373
|
};
|
|
4336
|
-
return L(() => r()), J(() => [t.label, t.hint], (e, [t]) => r(t)), (t, r) => (R(), E("div",
|
|
4374
|
+
return L(() => r()), J(() => [t.label, t.hint], (e, [t]) => r(t)), (t, r) => (R(), E("div", yl, [D("label", {
|
|
4337
4375
|
for: t.$props.for,
|
|
4338
4376
|
class: P(n.value ? "glim-sr-only" : "glim-signin-label")
|
|
4339
4377
|
}, [k(W(e.label), 1), e.hint ? (R(), w(Q, {
|
|
4340
4378
|
key: 0,
|
|
4341
4379
|
tip: e.hint
|
|
4342
|
-
}, null, 8, ["tip"])) : T("", !0)], 10,
|
|
4380
|
+
}, null, 8, ["tip"])) : T("", !0)], 10, bl), V(t.$slots, "default")]));
|
|
4343
4381
|
}
|
|
4344
|
-
}),
|
|
4382
|
+
}), Sl = [
|
|
4345
4383
|
"aria-label",
|
|
4346
4384
|
"aria-invalid",
|
|
4347
4385
|
"aria-describedby"
|
|
4348
|
-
],
|
|
4386
|
+
], Cl = /* @__PURE__ */ j({
|
|
4349
4387
|
inheritAttrs: !1,
|
|
4350
4388
|
__name: "TextField",
|
|
4351
4389
|
props: /*@__PURE__*/ M({
|
|
@@ -4359,11 +4397,11 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4359
4397
|
}),
|
|
4360
4398
|
emits: ["update:modelValue"],
|
|
4361
4399
|
setup(e, { expose: t }) {
|
|
4362
|
-
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() =>
|
|
4400
|
+
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => er({
|
|
4363
4401
|
width: n.width,
|
|
4364
4402
|
mono: n.mono
|
|
4365
|
-
})), o =
|
|
4366
|
-
return t({ input: l }), (t, n) => (R(), E(S, null, [
|
|
4403
|
+
})), o = Ne(), s = K(), c = C(() => _t(n.error, o.id ?? s, o["aria-describedby"])), l = U(null);
|
|
4404
|
+
return t({ input: l }), (t, n) => (R(), E(S, null, [ze(D("input", N({ "data-glim": "TextField" }, t.$attrs, {
|
|
4367
4405
|
ref_key: "input",
|
|
4368
4406
|
ref: l,
|
|
4369
4407
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
@@ -4372,7 +4410,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4372
4410
|
"aria-invalid": c.value.invalid,
|
|
4373
4411
|
"aria-describedby": c.value.describedBy,
|
|
4374
4412
|
class: a.value
|
|
4375
|
-
}), null, 16,
|
|
4413
|
+
}), null, 16, Sl), [[Ie, r.value]]), c.value.errorId ? (R(), w(xa, {
|
|
4376
4414
|
key: 0,
|
|
4377
4415
|
id: c.value.errorId
|
|
4378
4416
|
}, {
|
|
@@ -4380,26 +4418,26 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4380
4418
|
_: 1
|
|
4381
4419
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
4382
4420
|
}
|
|
4383
|
-
}),
|
|
4421
|
+
}), wl = {
|
|
4384
4422
|
"data-glim": "SignInCard",
|
|
4385
4423
|
class: "glim-signin"
|
|
4386
|
-
},
|
|
4424
|
+
}, Tl = { class: "glim-signin-head" }, El = {
|
|
4387
4425
|
key: 0,
|
|
4388
4426
|
class: "glim-signin-logo",
|
|
4389
4427
|
"aria-hidden": "true"
|
|
4390
|
-
},
|
|
4428
|
+
}, Dl = ["src"], Ol = { class: "glim-signin-name" }, kl = {
|
|
4391
4429
|
key: 0,
|
|
4392
4430
|
class: "glim-signin-error",
|
|
4393
4431
|
role: "alert"
|
|
4394
|
-
},
|
|
4432
|
+
}, Al = {
|
|
4395
4433
|
key: 0,
|
|
4396
4434
|
class: "glim-signin-note",
|
|
4397
4435
|
role: "status"
|
|
4398
|
-
},
|
|
4436
|
+
}, jl = { class: "glim-signin-hint" }, Ml = {
|
|
4399
4437
|
key: 3,
|
|
4400
4438
|
class: "glim-signin-error",
|
|
4401
4439
|
role: "alert"
|
|
4402
|
-
},
|
|
4440
|
+
}, Nl = /* @__PURE__ */ j({
|
|
4403
4441
|
__name: "SignInCard",
|
|
4404
4442
|
props: {
|
|
4405
4443
|
logo: {},
|
|
@@ -4427,7 +4465,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4427
4465
|
onSetPassword: {}
|
|
4428
4466
|
},
|
|
4429
4467
|
setup(e) {
|
|
4430
|
-
let t = e, n =
|
|
4468
|
+
let t = e, n = Pe(), r = mt(() => t), i = U(r.state()), a = r.subscribe(() => i.value = r.state());
|
|
4431
4469
|
I(a);
|
|
4432
4470
|
let o = K(), s = (e) => `${t.idPrefix ?? o}-${e}`, c = C(() => ({
|
|
4433
4471
|
signIn: "signIn",
|
|
@@ -4441,32 +4479,32 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4441
4479
|
hide: t.text.hide
|
|
4442
4480
|
})), u = U(null), d = "";
|
|
4443
4481
|
function p() {
|
|
4444
|
-
let e = n.step ? "step" :
|
|
4445
|
-
e !== d && ((d || t.autoFocus) &&
|
|
4482
|
+
let e = n.step ? "step" : Wn(i.value);
|
|
4483
|
+
e !== d && ((d || t.autoFocus) && xt(u.value), d = e);
|
|
4446
4484
|
}
|
|
4447
|
-
return L(p),
|
|
4485
|
+
return L(p), ke(p), J(() => i.value.refusal?.count, (e, t, n) => {
|
|
4448
4486
|
let r = i.value.refusal;
|
|
4449
|
-
r && n(
|
|
4450
|
-
}, { flush: "post" }), (t, n) => (R(), E("div",
|
|
4487
|
+
r && n(Vn(u.value, r));
|
|
4488
|
+
}, { flush: "post" }), (t, n) => (R(), E("div", wl, [D("div", {
|
|
4451
4489
|
ref_key: "card",
|
|
4452
4490
|
ref: u,
|
|
4453
4491
|
class: "glim-card glim-signin-card"
|
|
4454
|
-
}, [D("div",
|
|
4492
|
+
}, [D("div", Tl, [e.logo || t.$slots.logo ? (R(), E("span", El, [V(t.$slots, "logo", {}, () => [D("img", {
|
|
4455
4493
|
src: e.logo,
|
|
4456
4494
|
alt: "",
|
|
4457
4495
|
draggable: "false"
|
|
4458
|
-
}, null, 8,
|
|
4496
|
+
}, null, 8, Dl)])])) : T("", !0), D("h1", Ol, W(e.appName), 1)]), t.$slots.step ? V(t.$slots, "step", {}, void 0, void 0, 0) : i.value.view === "reset" ? (R(), E("form", {
|
|
4459
4497
|
key: 1,
|
|
4460
4498
|
class: "glim-signin-form",
|
|
4461
4499
|
novalidate: "",
|
|
4462
4500
|
onSubmit: n[4] ||= X((e) => G(r).submit(), ["prevent"])
|
|
4463
4501
|
}, [
|
|
4464
|
-
A(
|
|
4502
|
+
A(xl, {
|
|
4465
4503
|
label: e.text.resetCode,
|
|
4466
4504
|
for: s("reset-code"),
|
|
4467
4505
|
hint: e.text.resetCodeTip
|
|
4468
4506
|
}, {
|
|
4469
|
-
default: Y(() => [A(
|
|
4507
|
+
default: Y(() => [A(Cl, {
|
|
4470
4508
|
id: s("reset-code"),
|
|
4471
4509
|
"data-signin-field": "resetCode",
|
|
4472
4510
|
class: "glim-signin-log-code",
|
|
@@ -4483,11 +4521,11 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4483
4521
|
"for",
|
|
4484
4522
|
"hint"
|
|
4485
4523
|
]),
|
|
4486
|
-
A(
|
|
4524
|
+
A(xl, {
|
|
4487
4525
|
label: e.text.newPassword,
|
|
4488
4526
|
for: s("new")
|
|
4489
4527
|
}, {
|
|
4490
|
-
default: Y(() => [A(
|
|
4528
|
+
default: Y(() => [A(zo, {
|
|
4491
4529
|
id: s("new"),
|
|
4492
4530
|
"data-signin-field": "newPassword",
|
|
4493
4531
|
"model-value": i.value.newPassword,
|
|
@@ -4501,11 +4539,11 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4501
4539
|
])]),
|
|
4502
4540
|
_: 1
|
|
4503
4541
|
}, 8, ["label", "for"]),
|
|
4504
|
-
A(
|
|
4542
|
+
A(xl, {
|
|
4505
4543
|
label: e.text.confirmPassword,
|
|
4506
4544
|
for: s("confirm")
|
|
4507
4545
|
}, {
|
|
4508
|
-
default: Y(() => [A(
|
|
4546
|
+
default: Y(() => [A(zo, {
|
|
4509
4547
|
id: s("confirm"),
|
|
4510
4548
|
"data-signin-field": "confirm",
|
|
4511
4549
|
"model-value": i.value.confirm,
|
|
@@ -4519,14 +4557,14 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4519
4557
|
])]),
|
|
4520
4558
|
_: 1
|
|
4521
4559
|
}, 8, ["label", "for"]),
|
|
4522
|
-
i.value.error ? (R(), E("p",
|
|
4560
|
+
i.value.error ? (R(), E("p", kl, W(i.value.error), 1)) : T("", !0),
|
|
4523
4561
|
A(f, {
|
|
4524
4562
|
label: e.text.setPassword,
|
|
4525
4563
|
"label-key": c.value.setPassword,
|
|
4526
4564
|
tone: "accent",
|
|
4527
4565
|
type: "submit",
|
|
4528
4566
|
"data-signin": "set-password",
|
|
4529
|
-
disabled: G(
|
|
4567
|
+
disabled: G(On)(i.value),
|
|
4530
4568
|
busy: i.value.busy === "setPassword",
|
|
4531
4569
|
title: i.value.busy === "setPassword" ? e.text.saving : void 0
|
|
4532
4570
|
}, null, 8, [
|
|
@@ -4554,13 +4592,13 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4554
4592
|
novalidate: "",
|
|
4555
4593
|
onSubmit: n[10] ||= X((e) => G(r).submit(), ["prevent"])
|
|
4556
4594
|
}, [
|
|
4557
|
-
e.note ? (R(), E("p",
|
|
4595
|
+
e.note ? (R(), E("p", Al, W(e.note), 1)) : T("", !0),
|
|
4558
4596
|
i.value.viaPasskey ? T("", !0) : V(t.$slots, "fields", {}, void 0, void 0, 1),
|
|
4559
|
-
|
|
4597
|
+
ze(A(xl, {
|
|
4560
4598
|
label: e.text.password,
|
|
4561
4599
|
for: s("password")
|
|
4562
4600
|
}, {
|
|
4563
|
-
default: Y(() => [A(
|
|
4601
|
+
default: Y(() => [A(zo, {
|
|
4564
4602
|
id: s("password"),
|
|
4565
4603
|
"data-signin-field": "password",
|
|
4566
4604
|
"model-value": i.value.password,
|
|
@@ -4573,13 +4611,13 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4573
4611
|
"text"
|
|
4574
4612
|
])]),
|
|
4575
4613
|
_: 1
|
|
4576
|
-
}, 8, ["label", "for"]), [[
|
|
4577
|
-
i.value.needCode ? (R(), w(
|
|
4614
|
+
}, 8, ["label", "for"]), [[Le, !i.value.viaPasskey]]),
|
|
4615
|
+
i.value.needCode ? (R(), w(xl, {
|
|
4578
4616
|
key: 2,
|
|
4579
4617
|
label: e.text.code,
|
|
4580
4618
|
for: s("code")
|
|
4581
4619
|
}, {
|
|
4582
|
-
default: Y(() => [A(
|
|
4620
|
+
default: Y(() => [A(Cl, {
|
|
4583
4621
|
id: s("code"),
|
|
4584
4622
|
"data-signin-field": "code",
|
|
4585
4623
|
class: "glim-signin-code",
|
|
@@ -4589,17 +4627,17 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4589
4627
|
spellcheck: "false",
|
|
4590
4628
|
placeholder: "000000",
|
|
4591
4629
|
"onUpdate:modelValue": n[6] ||= (e) => G(r).set("code", e)
|
|
4592
|
-
}, null, 8, ["id", "model-value"]), D("p",
|
|
4630
|
+
}, null, 8, ["id", "model-value"]), D("p", jl, W(e.text.codeHint), 1)]),
|
|
4593
4631
|
_: 1
|
|
4594
4632
|
}, 8, ["label", "for"])) : T("", !0),
|
|
4595
|
-
i.value.error ? (R(), E("p",
|
|
4633
|
+
i.value.error ? (R(), E("p", Ml, W(i.value.error), 1)) : T("", !0),
|
|
4596
4634
|
A(f, {
|
|
4597
4635
|
label: e.text.signIn,
|
|
4598
4636
|
"label-key": c.value.signIn,
|
|
4599
4637
|
tone: "accent",
|
|
4600
4638
|
type: "submit",
|
|
4601
4639
|
"data-signin": "submit",
|
|
4602
|
-
disabled: G(
|
|
4640
|
+
disabled: G(Un)(i.value),
|
|
4603
4641
|
busy: i.value.busy === "signIn",
|
|
4604
4642
|
title: i.value.busy === "signIn" ? e.text.signingIn : void 0
|
|
4605
4643
|
}, null, 8, [
|
|
@@ -4653,13 +4691,13 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4653
4691
|
])) : T("", !0)
|
|
4654
4692
|
], 32))], 512)]));
|
|
4655
4693
|
}
|
|
4656
|
-
}),
|
|
4694
|
+
}), Pl = {
|
|
4657
4695
|
key: 0,
|
|
4658
4696
|
class: "glim-skeleton-block glim-skeleton-tile"
|
|
4659
|
-
},
|
|
4697
|
+
}, Fl = {
|
|
4660
4698
|
key: 1,
|
|
4661
4699
|
class: "glim-skeleton-block glim-skeleton-badge"
|
|
4662
|
-
},
|
|
4700
|
+
}, Il = /* @__PURE__ */ j({
|
|
4663
4701
|
__name: "SkeletonRow",
|
|
4664
4702
|
props: {
|
|
4665
4703
|
delay: {},
|
|
@@ -4673,7 +4711,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4673
4711
|
}
|
|
4674
4712
|
},
|
|
4675
4713
|
setup(e) {
|
|
4676
|
-
let t = e, n = C(() =>
|
|
4714
|
+
let t = e, n = C(() => Gn({
|
|
4677
4715
|
delay: t.delay,
|
|
4678
4716
|
tile: t.tile,
|
|
4679
4717
|
badge: t.badge
|
|
@@ -4684,18 +4722,18 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4684
4722
|
class: P(n.value.className),
|
|
4685
4723
|
style: F(n.value.style)
|
|
4686
4724
|
}, [
|
|
4687
|
-
n.value.tile ? (R(), E("span",
|
|
4725
|
+
n.value.tile ? (R(), E("span", Pl)) : T("", !0),
|
|
4688
4726
|
t[0] ||= D("span", { class: "glim-skeleton-block glim-skeleton-name" }, null, -1),
|
|
4689
|
-
n.value.badge ? (R(), E("span",
|
|
4727
|
+
n.value.badge ? (R(), E("span", Fl)) : T("", !0)
|
|
4690
4728
|
], 6));
|
|
4691
4729
|
}
|
|
4692
|
-
}),
|
|
4730
|
+
}), Ll = ["data-glim-title", "aria-labelledby"], Rl = {
|
|
4693
4731
|
key: 0,
|
|
4694
4732
|
class: "glim-panel-heading"
|
|
4695
|
-
},
|
|
4733
|
+
}, zl = ["id"], Bl = {
|
|
4696
4734
|
key: 1,
|
|
4697
4735
|
class: "glim-subcard-end"
|
|
4698
|
-
},
|
|
4736
|
+
}, Vl = /* @__PURE__ */ j({
|
|
4699
4737
|
__name: "SubCard",
|
|
4700
4738
|
props: {
|
|
4701
4739
|
title: {},
|
|
@@ -4709,23 +4747,23 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4709
4747
|
class: P(["glim-subcard", { "glim-subcard--titled": t.title }]),
|
|
4710
4748
|
"aria-labelledby": t.title ? G(n) : void 0
|
|
4711
4749
|
}, [
|
|
4712
|
-
t.title ? (R(), E("h3",
|
|
4750
|
+
t.title ? (R(), E("h3", Rl, [A(e, {
|
|
4713
4751
|
tone: "heading",
|
|
4714
4752
|
size: "heading",
|
|
4715
4753
|
wrap: ""
|
|
4716
4754
|
}, {
|
|
4717
|
-
default: Y(() => [D("span", { id: G(n) }, W(t.title), 9,
|
|
4755
|
+
default: Y(() => [D("span", { id: G(n) }, W(t.title), 9, zl), t.hint ? (R(), w(Q, {
|
|
4718
4756
|
key: 0,
|
|
4719
4757
|
tip: t.hint,
|
|
4720
4758
|
"on-accent": ""
|
|
4721
4759
|
}, null, 8, ["tip"])) : T("", !0)]),
|
|
4722
4760
|
_: 1
|
|
4723
4761
|
})])) : T("", !0),
|
|
4724
|
-
r.$slots.end ? (R(), E("div",
|
|
4762
|
+
r.$slots.end ? (R(), E("div", Bl, [V(r.$slots, "end")])) : T("", !0),
|
|
4725
4763
|
V(r.$slots, "default")
|
|
4726
|
-
], 10,
|
|
4764
|
+
], 10, Ll));
|
|
4727
4765
|
}
|
|
4728
|
-
}),
|
|
4766
|
+
}), Hl = ["aria-label"], Ul = { key: 0 }, Wl = { key: 0 }, Gl = ["colspan"], Kl = /* @__PURE__ */ j({
|
|
4729
4767
|
__name: "Table",
|
|
4730
4768
|
props: {
|
|
4731
4769
|
label: {},
|
|
@@ -4739,27 +4777,27 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4739
4777
|
"data-glim": "Table",
|
|
4740
4778
|
class: "glim-table",
|
|
4741
4779
|
"aria-label": e.label
|
|
4742
|
-
}, [n.value ? (R(), E("thead",
|
|
4780
|
+
}, [n.value ? (R(), E("thead", Ul, [D("tr", null, [(R(!0), E(S, null, B(e.columns, (e) => (R(), E("th", {
|
|
4743
4781
|
key: e.key,
|
|
4744
4782
|
scope: "col",
|
|
4745
4783
|
class: P({ "glim-table-end": e.end })
|
|
4746
4784
|
}, 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", {
|
|
4747
4785
|
key: e.key,
|
|
4748
|
-
class: P(G(
|
|
4786
|
+
class: P(G($n)(e))
|
|
4749
4787
|
}, [V(t.$slots, "cell", {
|
|
4750
4788
|
row: n,
|
|
4751
4789
|
column: e,
|
|
4752
4790
|
value: r(n, e)
|
|
4753
|
-
}, () => [k(W(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (R(), E("tr",
|
|
4791
|
+
}, () => [k(W(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (R(), E("tr", Wl, [D("td", {
|
|
4754
4792
|
colspan: e.columns.length,
|
|
4755
4793
|
class: "glim-table-muted"
|
|
4756
|
-
}, W(e.more), 9,
|
|
4794
|
+
}, W(e.more), 9, Gl)])) : T("", !0)])], 8, Hl));
|
|
4757
4795
|
}
|
|
4758
|
-
}),
|
|
4796
|
+
}), ql = [
|
|
4759
4797
|
"aria-label",
|
|
4760
4798
|
"aria-invalid",
|
|
4761
4799
|
"aria-describedby"
|
|
4762
|
-
],
|
|
4800
|
+
], Jl = /* @__PURE__ */ j({
|
|
4763
4801
|
inheritAttrs: !1,
|
|
4764
4802
|
__name: "TextArea",
|
|
4765
4803
|
props: /*@__PURE__*/ M({
|
|
@@ -4773,12 +4811,12 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4773
4811
|
}),
|
|
4774
4812
|
emits: ["update:modelValue"],
|
|
4775
4813
|
setup(e, { expose: t }) {
|
|
4776
|
-
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() =>
|
|
4814
|
+
let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => er({
|
|
4777
4815
|
width: n.width,
|
|
4778
4816
|
mono: n.mono,
|
|
4779
4817
|
area: !0
|
|
4780
|
-
})), o =
|
|
4781
|
-
return t({ input: l }), (t, n) => (R(), E(S, null, [
|
|
4818
|
+
})), o = Ne(), s = K(), c = C(() => _t(n.error, o.id ?? s, o["aria-describedby"])), l = U(null);
|
|
4819
|
+
return t({ input: l }), (t, n) => (R(), E(S, null, [ze(D("textarea", N({ "data-glim": "TextArea" }, t.$attrs, {
|
|
4782
4820
|
ref_key: "input",
|
|
4783
4821
|
ref: l,
|
|
4784
4822
|
"onUpdate:modelValue": n[0] ||= (e) => r.value = e,
|
|
@@ -4786,7 +4824,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4786
4824
|
"aria-invalid": c.value.invalid,
|
|
4787
4825
|
"aria-describedby": c.value.describedBy,
|
|
4788
4826
|
class: a.value
|
|
4789
|
-
}), null, 16,
|
|
4827
|
+
}), null, 16, ql), [[Ie, r.value]]), c.value.errorId ? (R(), w(xa, {
|
|
4790
4828
|
key: 0,
|
|
4791
4829
|
id: c.value.errorId
|
|
4792
4830
|
}, {
|
|
@@ -4794,7 +4832,7 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4794
4832
|
_: 1
|
|
4795
4833
|
}, 8, ["id"])) : T("", !0)], 64));
|
|
4796
4834
|
}
|
|
4797
|
-
}),
|
|
4835
|
+
}), Yl = { class: "glim-toast-body" }, Xl = { class: "glim-toast-message" }, Zl = { key: 0 }, Ql = ["aria-label"], $l = /* @__PURE__ */ j({
|
|
4798
4836
|
__name: "ToastCard",
|
|
4799
4837
|
props: {
|
|
4800
4838
|
id: {},
|
|
@@ -4822,13 +4860,13 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4822
4860
|
onMouseleave: n[3] ||= (t) => r("mouseLeave", e.id),
|
|
4823
4861
|
onFocusin: n[4] ||= (t) => r("focus", e.id),
|
|
4824
4862
|
onFocusout: n[5] ||= (t) => r("blur", e.id),
|
|
4825
|
-
onKeydown: n[6] ||=
|
|
4863
|
+
onKeydown: n[6] ||= Be(X((t) => r("dismiss", e.id), ["stop"]), ["esc"])
|
|
4826
4864
|
}, [
|
|
4827
|
-
A(G(
|
|
4828
|
-
mark: G(
|
|
4865
|
+
A(G(p), {
|
|
4866
|
+
mark: G(Xe)[e.severity],
|
|
4829
4867
|
class: P(`glim-toast-glyph glim-toast-glyph--${e.severity}`)
|
|
4830
4868
|
}, null, 8, ["mark", "class"]),
|
|
4831
|
-
D("div",
|
|
4869
|
+
D("div", Yl, [D("p", Xl, [(R(!0), E(S, null, B(G(Kn)(e.message), (e, t) => (R(), E(S, { key: t }, [t > 0 ? (R(), E("wbr", Zl)) : T("", !0), k(W(e), 1)], 64))), 128))]), e.action ? (R(), w(f, {
|
|
4832
4870
|
key: 0,
|
|
4833
4871
|
class: "glim-toast-action",
|
|
4834
4872
|
tone: "subtle",
|
|
@@ -4841,19 +4879,19 @@ var Qa = { class: "glim-instance-rows" }, $a = ["data-instance"], eo = {
|
|
|
4841
4879
|
"aria-label": e.dismissLabel,
|
|
4842
4880
|
class: "glim-btn-bare glim-toast-dismiss",
|
|
4843
4881
|
onClick: n[1] ||= (t) => r("dismiss", e.id)
|
|
4844
|
-
}, [A(G(
|
|
4882
|
+
}, [A(G(p), { mark: G(qe).dismiss }, null, 8, ["mark"])], 8, Ql)
|
|
4845
4883
|
], 32));
|
|
4846
4884
|
}
|
|
4847
|
-
}),
|
|
4848
|
-
function
|
|
4849
|
-
for (let i of Object.values(t)) typeof n[
|
|
4885
|
+
}), eu = (e) => `on${e.charAt(0).toUpperCase()}${e.slice(1)}`;
|
|
4886
|
+
function tu(e, t, n, r) {
|
|
4887
|
+
for (let i of Object.values(t)) typeof n[eu(i)] == "function" && r(`${e} ${i}`);
|
|
4850
4888
|
return (e, ...r) => {
|
|
4851
|
-
let i = t[e], a = i === void 0 ? void 0 : n[
|
|
4889
|
+
let i = t[e], a = i === void 0 ? void 0 : n[eu(i)];
|
|
4852
4890
|
typeof a == "function" && a(...r);
|
|
4853
4891
|
};
|
|
4854
4892
|
}
|
|
4855
4893
|
// src/ToastViewport.vue
|
|
4856
|
-
var
|
|
4894
|
+
var nu = /* @__PURE__ */ j({
|
|
4857
4895
|
inheritAttrs: !1,
|
|
4858
4896
|
__name: "ToastViewport",
|
|
4859
4897
|
props: {
|
|
@@ -4872,12 +4910,12 @@ var ql = /* @__PURE__ */ j({
|
|
|
4872
4910
|
"blur"
|
|
4873
4911
|
],
|
|
4874
4912
|
setup(e, { emit: t }) {
|
|
4875
|
-
let n = e, r = t, i =
|
|
4913
|
+
let n = e, r = t, i = tu("ToastViewport", {
|
|
4876
4914
|
mouseEnter: "enter",
|
|
4877
4915
|
mouseLeave: "leave",
|
|
4878
4916
|
focus: "focusin",
|
|
4879
4917
|
blur: "focusout"
|
|
4880
|
-
}, n,
|
|
4918
|
+
}, n, ur);
|
|
4881
4919
|
function a(e) {
|
|
4882
4920
|
r("mouseEnter", e), i("mouseEnter", e);
|
|
4883
4921
|
}
|
|
@@ -4894,18 +4932,18 @@ var ql = /* @__PURE__ */ j({
|
|
|
4894
4932
|
return J(() => n.toasts, (e) => {
|
|
4895
4933
|
let t = new Set(e.map((e) => e.id));
|
|
4896
4934
|
for (let e of l) t.has(e) || l.delete(e);
|
|
4897
|
-
for (let t of e) l.has(t.id) || (l.add(t.id),
|
|
4935
|
+
for (let t of e) l.has(t.id) || (l.add(t.id), $e(t.message, nr(t.severity)));
|
|
4898
4936
|
}, {
|
|
4899
4937
|
immediate: !0,
|
|
4900
4938
|
deep: 1,
|
|
4901
4939
|
flush: "post"
|
|
4902
4940
|
}), (t, n) => (R(), E(S, null, [
|
|
4903
|
-
D("div", N({ class: "glim-sr-only" }, G(
|
|
4904
|
-
D("div", N({ class: "glim-sr-only" }, G(
|
|
4941
|
+
D("div", N({ class: "glim-sr-only" }, G(zt)("polite")), null, 16),
|
|
4942
|
+
D("div", N({ class: "glim-sr-only" }, G(zt)("assertive")), null, 16),
|
|
4905
4943
|
D("div", N({
|
|
4906
4944
|
"data-glim": "ToastViewport",
|
|
4907
4945
|
class: "glim-toast-stack"
|
|
4908
|
-
}, t.$attrs), [(R(!0), E(S, null, B(e.toasts, (t) => (R(), w(
|
|
4946
|
+
}, t.$attrs), [(R(!0), E(S, null, B(e.toasts, (t) => (R(), w($l, {
|
|
4909
4947
|
id: t.id,
|
|
4910
4948
|
key: t.id,
|
|
4911
4949
|
message: t.message,
|
|
@@ -4926,7 +4964,7 @@ var ql = /* @__PURE__ */ j({
|
|
|
4926
4964
|
]))), 128))], 16)
|
|
4927
4965
|
], 64));
|
|
4928
4966
|
}
|
|
4929
|
-
}),
|
|
4967
|
+
}), ru = ["aria-label"], iu = [
|
|
4930
4968
|
"aria-level",
|
|
4931
4969
|
"aria-posinset",
|
|
4932
4970
|
"aria-setsize",
|
|
@@ -4937,11 +4975,11 @@ var ql = /* @__PURE__ */ j({
|
|
|
4937
4975
|
"onClick",
|
|
4938
4976
|
"onDblclick",
|
|
4939
4977
|
"onKeydown"
|
|
4940
|
-
],
|
|
4978
|
+
], au = ["onClick"], ou = {
|
|
4941
4979
|
key: 0,
|
|
4942
4980
|
class: "glim-tree-glyph",
|
|
4943
4981
|
"aria-hidden": "true"
|
|
4944
|
-
},
|
|
4982
|
+
}, su = { class: "glim-tree-label" }, cu = /* @__PURE__ */ j({
|
|
4945
4983
|
__name: "Tree",
|
|
4946
4984
|
props: /*@__PURE__*/ M({
|
|
4947
4985
|
label: {},
|
|
@@ -4954,12 +4992,12 @@ var ql = /* @__PURE__ */ j({
|
|
|
4954
4992
|
}),
|
|
4955
4993
|
emits: /*@__PURE__*/ M(["activate"], ["update:modelValue", "update:open"]),
|
|
4956
4994
|
setup(e, { emit: t }) {
|
|
4957
|
-
let n = e, r = q(e, "modelValue"), i = q(e, "open"), a = t, o =
|
|
4995
|
+
let n = e, r = q(e, "modelValue"), i = q(e, "open"), a = t, o = je(/* @__PURE__ */ new Map()), s = /* @__PURE__ */ new Set(), c = U(null);
|
|
4958
4996
|
function l(e) {
|
|
4959
4997
|
s.has(e) || (s.add(e), Promise.resolve(n.load(e)).then((t) => o.set(e, t), () => s.delete(e)));
|
|
4960
4998
|
}
|
|
4961
4999
|
J(i, (e) => [null, ...e].forEach(l), { immediate: !0 });
|
|
4962
|
-
let u = C(() =>
|
|
5000
|
+
let u = C(() => ar(o, i.value)), d = C(() => Math.max(u.value.findIndex((e) => e.node.id === r.value), 0));
|
|
4963
5001
|
function f(e) {
|
|
4964
5002
|
i.value = i.value.includes(e) ? i.value.filter((t) => t !== e) : [...i.value, e];
|
|
4965
5003
|
}
|
|
@@ -4970,8 +5008,8 @@ var ql = /* @__PURE__ */ j({
|
|
|
4970
5008
|
e.preventDefault(), r.value = n, e.key === "Enter" && a("activate", n);
|
|
4971
5009
|
return;
|
|
4972
5010
|
}
|
|
4973
|
-
let i =
|
|
4974
|
-
i && (e.preventDefault(), "focus" in i ? (r.value = i.focus,
|
|
5011
|
+
let i = or(u.value, t, e.key, getComputedStyle(c.value).direction === "rtl");
|
|
5012
|
+
i && (e.preventDefault(), "focus" in i ? (r.value = i.focus, Tt(c.value, i.focus)) : f("open" in i ? i.open : i.close));
|
|
4975
5013
|
}
|
|
4976
5014
|
return (t, n) => (R(), E("div", {
|
|
4977
5015
|
ref_key: "tree",
|
|
@@ -5001,15 +5039,15 @@ var ql = /* @__PURE__ */ j({
|
|
|
5001
5039
|
"aria-hidden": "true",
|
|
5002
5040
|
onClick: X((t) => e.node.hasChildren && f(e.node.id), ["stop"]),
|
|
5003
5041
|
onDblclick: n[0] ||= X(() => {}, ["stop"])
|
|
5004
|
-
}, [e.node.hasChildren ? (R(), w(G(
|
|
5005
|
-
e.node.glyph ? (R(), E("span",
|
|
5006
|
-
D("span",
|
|
5007
|
-
], 16,
|
|
5042
|
+
}, [e.node.hasChildren ? (R(), w(G(ue), { key: 0 })) : T("", !0)], 40, au),
|
|
5043
|
+
e.node.glyph ? (R(), E("span", ou, [(R(), w(H(e.open && e.node.openGlyph || e.node.glyph)))])) : T("", !0),
|
|
5044
|
+
D("span", su, W(e.node.label), 1)
|
|
5045
|
+
], 16, iu))), 128))], 8, ru));
|
|
5008
5046
|
}
|
|
5009
|
-
}),
|
|
5047
|
+
}), lu = ["data-glim-title"], uu = { class: "glim-notice-title" }, du = { class: "glim-notice-reason" }, fu = {
|
|
5010
5048
|
key: 0,
|
|
5011
5049
|
class: "glim-notice-action"
|
|
5012
|
-
},
|
|
5050
|
+
}, pu = /* @__PURE__ */ j({
|
|
5013
5051
|
__name: "UnavailableNotice",
|
|
5014
5052
|
props: { title: {} },
|
|
5015
5053
|
setup(e) {
|
|
@@ -5018,12 +5056,12 @@ var ql = /* @__PURE__ */ j({
|
|
|
5018
5056
|
"data-glim-title": e.title,
|
|
5019
5057
|
class: "glim-notice"
|
|
5020
5058
|
}, [
|
|
5021
|
-
D("p",
|
|
5022
|
-
D("p",
|
|
5023
|
-
t.$slots.action ? (R(), E("div",
|
|
5024
|
-
], 8,
|
|
5059
|
+
D("p", uu, W(e.title), 1),
|
|
5060
|
+
D("p", du, [V(t.$slots, "default")]),
|
|
5061
|
+
t.$slots.action ? (R(), E("div", fu, [V(t.$slots, "action")])) : T("", !0)
|
|
5062
|
+
], 8, lu));
|
|
5025
5063
|
}
|
|
5026
|
-
}),
|
|
5064
|
+
}), mu = ["aria-label"], hu = { class: "glim-window-square" }, gu = { class: "glim-window-square" }, _u = { class: "glim-window-square" }, vu = /* @__PURE__ */ j({
|
|
5027
5065
|
__name: "WindowBar",
|
|
5028
5066
|
props: {
|
|
5029
5067
|
appName: {},
|
|
@@ -5059,38 +5097,38 @@ var ql = /* @__PURE__ */ j({
|
|
|
5059
5097
|
onMouseup: c,
|
|
5060
5098
|
onDblclick: s
|
|
5061
5099
|
}, [
|
|
5062
|
-
A(
|
|
5100
|
+
A(_e, {
|
|
5063
5101
|
tip: e.text.minimise,
|
|
5064
5102
|
class: "glim-window-button",
|
|
5065
5103
|
onClick: r[0] ||= (e) => n("minimise")
|
|
5066
5104
|
}, {
|
|
5067
|
-
default: Y(() => [D("span",
|
|
5105
|
+
default: Y(() => [D("span", hu, [A(G(he))])]),
|
|
5068
5106
|
_: 1
|
|
5069
5107
|
}, 8, ["tip"]),
|
|
5070
|
-
A(
|
|
5108
|
+
A(_e, {
|
|
5071
5109
|
tip: e.maximised ? e.text.restore : e.text.maximise,
|
|
5072
5110
|
class: "glim-window-button",
|
|
5073
5111
|
onClick: r[1] ||= (e) => n("toggleMaximise")
|
|
5074
5112
|
}, {
|
|
5075
|
-
default: Y(() => [D("span",
|
|
5113
|
+
default: Y(() => [D("span", gu, [e.maximised ? (R(), w(G(m), { key: 0 })) : (R(), w(G(v), { key: 1 }))])]),
|
|
5076
5114
|
_: 1
|
|
5077
5115
|
}, 8, ["tip"]),
|
|
5078
|
-
A(
|
|
5116
|
+
A(_e, {
|
|
5079
5117
|
tip: e.text.close,
|
|
5080
5118
|
class: "glim-window-button",
|
|
5081
5119
|
onClick: r[2] ||= (e) => n("close")
|
|
5082
5120
|
}, {
|
|
5083
|
-
default: Y(() => [D("span",
|
|
5121
|
+
default: Y(() => [D("span", _u, [A(G(_))])]),
|
|
5084
5122
|
_: 1
|
|
5085
5123
|
}, 8, ["tip"])
|
|
5086
|
-
], 40,
|
|
5124
|
+
], 40, mu));
|
|
5087
5125
|
}
|
|
5088
5126
|
});
|
|
5089
5127
|
// src/confirm.ts
|
|
5090
|
-
function
|
|
5128
|
+
function yu(e) {
|
|
5091
5129
|
let t = U(null), n = U(null), r = null, i = null;
|
|
5092
5130
|
function a(e, n) {
|
|
5093
|
-
return i =
|
|
5131
|
+
return i = Et(), new Promise((i) => {
|
|
5094
5132
|
r = i, t.value = {
|
|
5095
5133
|
message: e,
|
|
5096
5134
|
...n
|
|
@@ -5098,15 +5136,15 @@ function uu(e) {
|
|
|
5098
5136
|
});
|
|
5099
5137
|
}
|
|
5100
5138
|
function o(e) {
|
|
5101
|
-
r?.(e), r = null, t.value = null,
|
|
5139
|
+
r?.(e), r = null, t.value = null, kn(i), i = null;
|
|
5102
5140
|
}
|
|
5103
5141
|
let s = () => o(!1);
|
|
5104
|
-
return
|
|
5142
|
+
return bu(() => t.value !== null, n, s), {
|
|
5105
5143
|
confirm: a,
|
|
5106
5144
|
dismiss: s,
|
|
5107
5145
|
ConfirmHost: j(() => () => {
|
|
5108
5146
|
let r = t.value;
|
|
5109
|
-
return r ? Ce
|
|
5147
|
+
return r ? we(Ce, { to: yn() }, [we(bi, {
|
|
5110
5148
|
ref: (e) => n.value = e?.card ?? null,
|
|
5111
5149
|
title: e.title,
|
|
5112
5150
|
message: r.message,
|
|
@@ -5116,17 +5154,17 @@ function uu(e) {
|
|
|
5116
5154
|
cancelLabel: e.cancel,
|
|
5117
5155
|
onConfirm: () => o(!0),
|
|
5118
5156
|
onCancel: () => o(!1)
|
|
5119
|
-
}, r.extra ? { extra: () =>
|
|
5157
|
+
}, r.extra ? { extra: () => we(r.extra) } : void 0)]) : null;
|
|
5120
5158
|
})
|
|
5121
5159
|
};
|
|
5122
5160
|
}
|
|
5123
|
-
function
|
|
5161
|
+
function bu(e, t, n) {
|
|
5124
5162
|
J(e, (e, r, i) => {
|
|
5125
|
-
e && i(
|
|
5163
|
+
e && i(ir(() => t.value, n));
|
|
5126
5164
|
}, { immediate: !0 });
|
|
5127
5165
|
}
|
|
5128
5166
|
// src/paypalButtons.ts
|
|
5129
|
-
function
|
|
5167
|
+
function xu(e) {
|
|
5130
5168
|
let t = U(null), n = () => {};
|
|
5131
5169
|
return J([
|
|
5132
5170
|
t,
|
|
@@ -5138,7 +5176,7 @@ function fu(e) {
|
|
|
5138
5176
|
let o = null, s = !1;
|
|
5139
5177
|
n = () => {
|
|
5140
5178
|
s = !0, o?.close().catch(() => {});
|
|
5141
|
-
},
|
|
5179
|
+
}, Bt(r, i !== "once").then((n) => {
|
|
5142
5180
|
if (s) return;
|
|
5143
5181
|
let c = n.Buttons({
|
|
5144
5182
|
style: {
|
|
@@ -5150,18 +5188,18 @@ function fu(e) {
|
|
|
5150
5188
|
height: 40
|
|
5151
5189
|
},
|
|
5152
5190
|
onClick: (t, n) => e().amount ? n.resolve() : n.reject(),
|
|
5153
|
-
...
|
|
5191
|
+
...ht(r, i, () => e().amount ?? "0", a, () => e().onDone()),
|
|
5154
5192
|
onError: () => e().onError()
|
|
5155
5193
|
});
|
|
5156
5194
|
o = c, t.replaceChildren(), c.render(t).catch(() => e().onError());
|
|
5157
5195
|
}, () => {
|
|
5158
5196
|
s || e().onError();
|
|
5159
5197
|
});
|
|
5160
|
-
}),
|
|
5198
|
+
}), De(() => n()), (e) => t.value = e;
|
|
5161
5199
|
}
|
|
5162
5200
|
// src/dragArmed.ts
|
|
5163
|
-
function
|
|
5201
|
+
function Su(e, t) {
|
|
5164
5202
|
let n = () => e.value?.classList.toggle("glim-drag-armed", t());
|
|
5165
|
-
|
|
5203
|
+
Re(n, { flush: "post" }), ke(n);
|
|
5166
5204
|
}
|
|
5167
|
-
export {
|
|
5205
|
+
export { Hr as AboutCard, e as Badge, qr as BrandMark, c as BusyRing, f as Button, _r as Card, Zr as Checkbox, si as CoffeeDialog, fi as ColorPicker, bi as ConfirmDialog, ji as ConnectionRow, Ki as ContextMenu, Yi as CopyField, da as CryptoDonateDialog, ma as DropdownListbox, ya as EmptyState, xa as FieldError, Ta as FieldRow, Ea as FieldRowGroup, Ms as Fortress, lo as FortressAppCard, Ia as FortressDoubtWindow, Ns as FortressPairing, Mo as FortressPermissions, ac as FortressStatusWindow, We as GLIMSTONE_RELEASE_URL, Ge as GLIMSTONE_REPO, Ke as GLIMSTONE_VERSION, cc as GlyphField, lc as GlyphTile, de as IconBack, Se as IconButton, oe as IconCalendar, le as IconCancel, b as IconCheck, _ as IconClose, se as IconCopy, ue as IconExpand, ee as IconEye, ie as IconEyeOff, fe as IconFolderOpen, te as IconForward, y as IconPause, ce as IconPencil, ae as IconPlay, re as IconResetArrow, ne as IconSearch, g as IconStar, _e as IconTipButton, pe as IconTrash, ge as IconUpload, v as IconWindowMaximise, he as IconWindowMinimise, m as IconWindowRestore, Dr as InfoAboutCard, Q as InfoBubble, Ar as InfoHelpCard, Vr as InfoTile, zr as InfoVersionCard, Qa as InstanceCard, Ni as Kbd, mc as ListRow, kc as ListTable, p as MarkSvg, Mc as MenuBar, Pc as Meter, Lc as NumberField, zo as PasswordField, zc as PathField, nl as PaypalDialog, sl as PickerWindow, Sa as Pill, gc as Popover, eo as PresenceBadges, Fs as ProgressBar, $ as ReadmeButton, cl as RowMark, _o as Selector, vl as Sheet, pl as SidebarRow, Nl as SignInCard, xl as SignInField, Il as SkeletonRow, Vl as SubCard, Kl as Table, Jl as TextArea, Cl as TextField, $l as ToastCard, nu as ToastViewport, xo as Toggle, cu as Tree, pu as UnavailableNotice, Pa as Window, vu as WindowBar, to as deviceGlyph, me as glyphFor, Ln as selectorTabId, h as setGlyphResolver, u as useAccent, yu as useConfirm, o as useDensity, bu as useDialogKeys, Su as useDragArmed, x as useFieldName, i as useHue, l as useLabelMode, d as useMotion, xu as usePaypalButtons, be as usePortalHue, a as useRainbow, s as useShape, n as useTipBubble };
|