@glimstone/vue 4.5.5 → 4.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js 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-BM5Dzboj.js";
4
- import { C as p, S as m, _ as h, a as g, b as ee, c as _, d as te, f as v, g as ne, h as re, i as y, 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, x as b, y as me } from "./glyphs-DEch1yYd.js";
5
- import { t as he } from "./IconTipButton-BLtrZfgN.js";
6
- import { n as ge, r as x, t as _e } from "./fieldName-DBygJJfe.js";
7
- import { t as ve } from "./selectParts-0e1ib8BL.js";
8
- import { t as ye } from "./Select-CBScnONy.js";
9
- import { t as be } from "./IconButton-D5YOChZI.js";
10
- import { Fragment as S, Teleport as xe, computed as C, createBlock as w, createCommentVNode as T, createElementBlock as E, createElementVNode as D, createSlots as O, createTextVNode as k, createVNode as A, defineComponent as j, h as Se, inject as Ce, mergeModels as M, mergeProps as N, nextTick as we, normalizeClass as P, normalizeStyle as F, onBeforeUnmount as I, onMounted as L, onScopeDispose as Te, onUnmounted as Ee, onUpdated as De, openBlock as R, provide as Oe, ref as z, renderList as B, renderSlot as V, resolveDynamicComponent as H, shallowReactive as ke, shallowRef as U, toDisplayString as W, toRef as Ae, unref as G, useAttrs as je, useId as K, useModel as q, useSlots as Me, vModelDynamic as Ne, vModelText as Pe, vShow as Fe, watch as J, watchEffect as Ie, withCtx as Y, withDirectives as Le, withKeys as Re, withModifiers as X } from "vue";
11
- import { COLOR_NAMES_DE as ze, COLOR_PICKER_TEXT as Be, COPIED_MS as Ve, GLIMSTONE_RELEASE_URL as He, GLIMSTONE_REPO as Ue, GLIMSTONE_VERSION as We, MARKS as Ge, PATH_ROOM_PX as Ke, TOAST_MARKS as qe, WIDE_QUERY as Je, anchorName as Ye, announce as Xe, appCardView as Ze, ariaSort as Qe, attachNumberSteppers as $e, claimMenu as et, closeMenuOutside as tt, colorPicker as nt, columnValues as rt, computeBubblePosition as it, copyText as at, countSelector as ot, createFortressFlow as st, createSignInFlow as ct, donationHandlers as lt, doubtView as ut, fieldErrorView as dt, fieldWidthClass as ft, fill as Z, floatColorPicker as pt, focusByLetter as mt, focusFirstField as ht, focusFirstMenuRow as gt, focusMenuRow as _t, focusMenuRowByLetter as vt, focusTreeRow as yt, focusedAsker as bt, holdPickHeight as xt, hueVars as St, isMenuHead as Ct, isTileMark as wt, isTypeahead as Tt, joinRefusalText as Et, keepReadmeFit as Dt, labelInside as Ot, listKey as kt, listOf as At, listView as jt, liveRegionAttrs as Mt, loadPaypal as Nt, mailHref as Pt, mediaMatches as Ft, memberName as It, menuIsOpen as Lt, menuMove as Rt, menuRowView as zt, meterView as Bt, nearestColorName as Vt, nextSort as Ht, normalizeHex as Ut, offersDiscord as Wt, offersMail as Gt, openInBrowser as Kt, openInstance as qt, openPopover as Jt, openSheet as Yt, othersLine as Xt, pageLocale as Zt, permissionsWith as Qt, phraseReady as $t, pickSearchKey as en, pickSections as tn, pickTileKey as nn, pickTileStyle as rn, pillClassName as an, placeMenu as on, placeSubmenu as sn, portalTarget as cn, presenceTone as ln, pressRowControl as un, progressView as dn, qrCode as fn, readmePartClass as pn, readmePartLabel as mn, readmeSoon as hn, readmeUnitClass as gn, resetBlocked as _n, returnFocus as vn, roveSelector as yn, rovedIndex as bn, runUpdateCheck as xn, segmentView as Sn, selectByClick as Cn, selectorAxis as wn, selectorFlex as Tn, selectorTabId as En, selectorTabId as Dn, selectorView as On, shake as kn, showRefusal as An, sidebarRowView as jn, signInBlocked as Mn, signInStage as Nn, skeletonRowView as Pn, softBreaks as Fn, stackWindow as In, statusView as Ln, storeShowOthers as Rn, storedShowOthers as zn, subscribeMedia as Bn, syncNumberSteppers as Vn, tableCellClass as Hn, textFieldClass as Un, tidyMenu as Wn, toastPoliteness as Gn, toggleSelection as Kn, trapDialogKeys as qn, treeRows as Jn, treeStep as Yn, updateFace as Xn, updateStage as Zn, versionLink as Qn, warnDeprecated as $n, watchSelectorFit as er, windowFocusTarget as tr, windowFoot as nr } from "@glimstone/core";
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-CQbGuw5x.js";
4
+ import { C as p, S as m, _ as h, a as g, b as _, c as v, d as ee, f as te, g as y, h as ne, i as b, l as re, m as ie, n as ae, o as oe, p as se, r as ce, s as le, t as ue, u as de, v as fe, w as pe, x as me, y as he } from "./glyphs-DeCDMDdg.js";
5
+ import { t as ge } from "./IconTipButton-BLtrZfgN.js";
6
+ import { n as _e, r as x, t as ve } from "./fieldName-DBygJJfe.js";
7
+ import { t as ye } from "./selectParts-0e1ib8BL.js";
8
+ import { t as be } from "./Select-CQxew-YP.js";
9
+ import { t as xe } from "./IconButton-D5YOChZI.js";
10
+ import { Fragment as S, Teleport as Se, 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 Ce, inject as we, mergeModels as M, mergeProps as N, nextTick as Te, normalizeClass as P, normalizeStyle as F, onBeforeUnmount as I, onMounted as L, onScopeDispose as Ee, onUnmounted as De, onUpdated as Oe, openBlock as R, provide as ke, ref as z, renderList as B, renderSlot as V, resolveDynamicComponent as H, shallowReactive as Ae, shallowRef as U, toDisplayString as W, toRef as je, unref as G, useAttrs as Me, useId as K, useModel as q, useSlots as Ne, vModelDynamic as Pe, vModelText as Fe, vShow as Ie, watch as J, watchEffect as Le, withCtx as Y, withDirectives as Re, withKeys as ze, withModifiers as X } from "vue";
11
+ import { COLOR_NAMES_DE as Be, COLOR_PICKER_TEXT as Ve, COPIED_MS as He, GLIMSTONE_RELEASE_URL as Ue, GLIMSTONE_REPO as We, GLIMSTONE_VERSION as Ge, MARKS as Ke, PATH_ROOM_PX as qe, TOAST_MARKS as Je, WIDE_QUERY as Ye, anchorName as Xe, announce as Ze, appCardView as Qe, ariaSort as $e, attachNumberSteppers as et, claimMenu as tt, closeMenuOutside as nt, colorPicker as rt, columnValues as it, computeBubblePosition as at, copyText as ot, countSelector as st, createFortressFlow as ct, createSignInFlow as lt, donationHandlers as ut, doubtView as dt, fieldErrorView as ft, fieldWidthClass as pt, fill as Z, floatColorPicker as mt, focusByLetter as ht, focusFirstField as gt, focusFirstMenuRow as _t, focusMenuRow as vt, focusMenuRowByLetter as yt, focusTreeRow as bt, focusedAsker as xt, holdPickHeight as St, hueVars as Ct, isMenuHead as wt, isTileMark as Tt, isTypeahead as Et, joinRefusalText as Dt, keepReadmeFit as Ot, labelInside as kt, listKey as At, listOf as jt, listView as Mt, liveRegionAttrs as Nt, loadPaypal as Pt, mailHref as Ft, mediaMatches as It, memberName as Lt, menuIsOpen as Rt, menuMove as zt, menuRowView as Bt, meterView as Vt, nearestColorName as Ht, nextSort as Ut, normalizeHex as Wt, offersDiscord as Gt, offersMail as Kt, openInBrowser as qt, openInstance as Jt, openPopover as Yt, openSheet as Xt, othersLine as Zt, pageLocale as Qt, permissionsWith as $t, phraseReady as en, pickSearchKey as tn, pickSections as nn, pickTileKey as rn, pickTileStyle as an, pickerHue as on, pillClassName as sn, placeMenu as cn, placeSubmenu as ln, portalTarget as un, presenceTone as dn, pressRowControl as fn, progressView as pn, qrCode as mn, readmePartClass as hn, readmePartLabel as gn, readmeSoon as _n, readmeUnitClass as vn, resetBlocked as yn, returnFocus as bn, roveSelector as xn, rovedIndex as Sn, runUpdateCheck as Cn, segmentView as wn, selectByClick as Tn, selectorAxis as En, selectorFlex as Dn, selectorTabId as On, selectorTabId as kn, selectorView as An, shake as jn, showRefusal as Mn, sidebarRowView as Nn, signInBlocked as Pn, signInStage as Fn, skeletonRowView as In, softBreaks as Ln, stackWindow as Rn, statusView as zn, storeShowOthers as Bn, storedShowOthers as Vn, subscribeMedia as Hn, syncNumberSteppers as Un, tableCellClass as Wn, textFieldClass as Gn, tidyMenu as Kn, toastPoliteness as qn, toggleSelection as Jn, trapDialogKeys as Yn, treeRows as Xn, treeStep as Zn, updateFace as Qn, updateStage as $n, versionLink as er, warnDeprecated as tr, watchSelectorFit as nr, windowFocusTarget as rr, windowFoot as ir } from "@glimstone/core";
12
12
  // src/InfoBubble.vue?vue&type=script&setup=true&lang.ts
13
- var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
13
+ var ar = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
14
14
  __name: "InfoBubble",
15
15
  props: {
16
16
  tip: {},
@@ -60,12 +60,12 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
60
60
  "stroke-width": "1.3",
61
61
  "stroke-linecap": "round"
62
62
  })
63
- ], -1)]], 42, rr), A(t, { state: G(i) }, null, 8, ["state"])], 64));
63
+ ], -1)]], 42, ar), A(t, { state: G(i) }, null, 8, ["state"])], 64));
64
64
  }
65
- }), ir = ["data-glim-title"], ar = {
65
+ }), or = ["data-glim-title"], sr = {
66
66
  key: 0,
67
67
  class: "glim-panel-heading"
68
- }, or = /* @__PURE__ */ j({
68
+ }, cr = /* @__PURE__ */ j({
69
69
  __name: "Card",
70
70
  props: {
71
71
  title: {},
@@ -74,7 +74,7 @@ var rr = ["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 : St(n.hueIndex));
77
+ let n = t, r = C(() => n.hueIndex === void 0 ? void 0 : Ct(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 rr = ["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", ar, [A(e, {
90
+ }, [t.title || t.hint || n.$slots.title ? (R(), E("h2", sr, [A(e, {
91
91
  tone: "heading",
92
92
  size: "heading",
93
93
  wrap: "",
@@ -99,20 +99,20 @@ var rr = ["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, ir));
102
+ }, 8, ["hue-index"])])) : T("", !0), V(n.$slots, "default")], 14, or));
103
103
  }
104
- }), sr = {
104
+ }), lr = {
105
105
  key: 0,
106
106
  class: "glim-readme-btn-art",
107
107
  "aria-hidden": "true"
108
- }, cr = { class: "glim-readme-btn-text" }, lr = { class: "glim-readme-btn-name" }, ur = {
108
+ }, ur = { class: "glim-readme-btn-text" }, dr = { class: "glim-readme-btn-name" }, fr = {
109
109
  key: 0,
110
110
  class: "glim-readme-btn-sub"
111
- }, dr = {
111
+ }, pr = {
112
112
  key: 0,
113
113
  class: "glim-readme-btn-sheen",
114
114
  "aria-hidden": "true"
115
- }, fr = {
115
+ }, mr = {
116
116
  key: 1,
117
117
  class: "glim-readme-btn-hint"
118
118
  }, $ = /* @__PURE__ */ j({
@@ -122,6 +122,7 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
122
122
  parts: {},
123
123
  markClass: {},
124
124
  hint: {},
125
+ tip: {},
125
126
  note: {
126
127
  type: Boolean,
127
128
  default: !1
@@ -129,42 +130,53 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
129
130
  soonLabel: {}
130
131
  },
131
132
  emits: ["linkClick"],
132
- setup(e, { emit: t }) {
133
- let n = e, r = t, i = C(() => hn(n.parts)), a = U(null), o = C(() => n.parts.map((e) => `${e.name}\n${e.sub ?? ""}`).join("\n") + (i.value ? n.soonLabel : "")), s;
134
- J([a, o], () => {
135
- s?.(), s = a.value ? Dt(a.value) : void 0;
136
- }, { flush: "post" }), Te(() => s?.());
137
- let c = (e) => i.value ? n.soonLabel : e.sub, l = (e) => mn(e, c(e)), u = (e) => i.value ? "span" : e.href ? "a" : "button", d = (e) => i.value ? { "aria-disabled": !0 } : e.href ? {
133
+ setup(e, { emit: r }) {
134
+ let i = e, a = r, o = C(() => _n(i.parts)), s = U(null), c = C(() => i.parts.map((e) => `${e.name}\n${e.sub ?? ""}`).join("\n") + (o.value ? i.soonLabel : "")), l;
135
+ J([s, c], () => {
136
+ l?.(), l = s.value ? Ot(s.value) : void 0;
137
+ }, { flush: "post" }), Ee(() => l?.());
138
+ let u = n(() => i.tip), d = (e) => e === 0 ? {
139
+ ref: (e) => u.trigger.value = e,
140
+ "aria-describedby": u.describedBy.value,
141
+ onMouseenter: u.show,
142
+ onMouseleave: u.hide,
143
+ onFocus: u.showOnFocus,
144
+ onBlur: u.hide
145
+ } : {}, f = (e) => o.value ? i.soonLabel : e.sub, p = (e) => gn(e, f(e)), m = (e) => o.value ? "span" : e.href ? "a" : "button", h = (e) => o.value ? { "aria-disabled": !0 } : e.href ? {
138
146
  href: e.href,
139
147
  target: "_blank",
140
148
  rel: "noreferrer noopener",
141
- onClick: (e) => r("linkClick", e)
149
+ onClick: (e) => a("linkClick", e)
142
150
  } : {
143
151
  type: "button",
144
152
  onClick: e.onClick
145
153
  };
146
- return (t, n) => (R(), E("div", {
154
+ return (n, r) => (R(), E("div", {
147
155
  ref_key: "root",
148
- ref: a,
156
+ ref: s,
149
157
  "data-glim": "ReadmeButton",
150
- class: P(G(gn)(e.brand, e.parts.length, e.note, i.value))
158
+ class: P(G(vn)(e.brand, e.parts.length, e.note, o.value))
151
159
  }, [
152
- (R(!0), E(S, null, B(e.parts, (n, r) => (R(), w(H(u(n)), N({ key: r }, { ref_for: !0 }, d(n), {
153
- "aria-label": l(n),
154
- class: G(pn)(r, i.value)
160
+ (R(!0), E(S, null, B(e.parts, (t, r) => (R(), w(H(m(t)), N({ key: r }, { ref_for: !0 }, {
161
+ ...h(t),
162
+ ...d(r)
163
+ }, {
164
+ "aria-label": p(t),
165
+ class: G(hn)(r, o.value)
155
166
  }), {
156
- default: Y(() => [r === 0 && t.$slots.art ? (R(), E("span", sr, [V(t.$slots, "art")])) : (R(), E(S, { key: 1 }, [r === 0 && t.$slots.mark ? (R(), E("span", {
167
+ default: Y(() => [r === 0 && n.$slots.art ? (R(), E("span", lr, [V(n.$slots, "art")])) : (R(), E(S, { key: 1 }, [r === 0 && n.$slots.mark ? (R(), E("span", {
157
168
  key: 0,
158
169
  class: P(`glim-readme-btn-mark ${e.markClass ?? ""}`),
159
170
  "aria-hidden": "true"
160
- }, [V(t.$slots, "mark")], 2)) : T("", !0), D("span", cr, [D("span", lr, W(n.name), 1), c(n) ? (R(), E("span", ur, W(c(n)), 1)) : T("", !0)])], 64))]),
171
+ }, [V(n.$slots, "mark")], 2)) : T("", !0), D("span", ur, [D("span", dr, W(t.name), 1), f(t) ? (R(), E("span", fr, W(f(t)), 1)) : T("", !0)])], 64))]),
161
172
  _: 2
162
173
  }, 1040, ["aria-label", "class"]))), 128)),
163
- i.value ? T("", !0) : (R(), E("span", dr)),
164
- e.hint ? (R(), E("span", fr, [A(Q, { tip: e.hint }, null, 8, ["tip"])])) : T("", !0)
174
+ o.value ? T("", !0) : (R(), E("span", pr)),
175
+ e.hint ? (R(), E("span", mr, [A(Q, { tip: e.hint }, null, 8, ["tip"])])) : T("", !0),
176
+ A(t, { state: G(u) }, null, 8, ["state"])
165
177
  ], 2));
166
178
  }
167
- }), pr = { class: "glim-info-text" }, mr = { class: "glim-info-text" }, hr = { class: "glim-readme-btn-rows glim-about-give" }, gr = /* @__PURE__ */ j({
179
+ }), hr = { class: "glim-info-text" }, gr = { class: "glim-info-text" }, _r = { class: "glim-readme-btn-rows glim-about-give" }, vr = /* @__PURE__ */ j({
168
180
  __name: "InfoAboutCard",
169
181
  props: {
170
182
  text: {},
@@ -177,15 +189,15 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
177
189
  hueIndex: {}
178
190
  },
179
191
  setup(e) {
180
- return (t, n) => (R(), w(or, {
192
+ return (t, n) => (R(), w(cr, {
181
193
  "data-glim": "InfoAboutCard",
182
194
  title: e.text.title,
183
195
  "hue-index": e.hueIndex
184
196
  }, {
185
197
  default: Y(() => [
186
- D("p", pr, W(e.text.body), 1),
187
- D("p", mr, W(e.text.coffee), 1),
188
- D("div", hr, [
198
+ D("p", hr, W(e.text.body), 1),
199
+ D("p", gr, W(e.text.coffee), 1),
200
+ D("div", _r, [
189
201
  A($, {
190
202
  brand: "coffee",
191
203
  parts: [{
@@ -227,7 +239,7 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
227
239
  _: 1
228
240
  }, 8, ["title", "hue-index"]));
229
241
  }
230
- }), _r = { class: "glim-info-text" }, vr = { class: "glim-readme-btn-rows" }, yr = /* @__PURE__ */ j({
242
+ }), yr = { class: "glim-info-text" }, br = { class: "glim-readme-btn-rows" }, xr = /* @__PURE__ */ j({
231
243
  __name: "InfoHelpCard",
232
244
  props: {
233
245
  text: {},
@@ -243,19 +255,19 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
243
255
  bugGlyph: {},
244
256
  openUrl: {
245
257
  type: Function,
246
- default: Kt
258
+ default: qt
247
259
  },
248
260
  hueIndex: {}
249
261
  },
250
262
  setup(e) {
251
- let t = e, n = C(() => Gt(t.text.report, t.mailAddress)), r = C(() => Wt(t.text.report, t.discordUrl) && !!t.text.discordButton);
252
- return (t, i) => (R(), w(or, {
263
+ let t = e, n = C(() => Kt(t.text.report, t.mailAddress)), r = C(() => Gt(t.text.report, t.discordUrl) && !!t.text.discordButton);
264
+ return (t, i) => (R(), w(cr, {
253
265
  "data-glim": "InfoHelpCard",
254
266
  title: e.text.title,
255
267
  hint: e.text.hint,
256
268
  "hue-index": e.hueIndex
257
269
  }, {
258
- default: Y(() => [D("p", _r, W(e.text.report), 1), D("div", vr, [
270
+ default: Y(() => [D("p", yr, W(e.text.report), 1), D("div", br, [
259
271
  A($, {
260
272
  brand: "github",
261
273
  parts: [{
@@ -286,7 +298,7 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
286
298
  brand: "house",
287
299
  parts: [{
288
300
  name: e.text.mailButton,
289
- onClick: () => e.openUrl(G(Pt)(e.mailAddress, e.text.mailSubject))
301
+ onClick: () => e.openUrl(G(Ft)(e.mailAddress, e.text.mailSubject))
290
302
  }],
291
303
  "mark-class": "glim-house-mark"
292
304
  }, O({ _: 2 }, [e.mailGlyph ? {
@@ -329,19 +341,19 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
329
341
  "hue-index"
330
342
  ]));
331
343
  }
332
- }), br = { class: "glim-version-rows" }, xr = { class: "glim-version-name" }, Sr = { class: "glim-version-part" }, Cr = {
344
+ }), Sr = { class: "glim-version-rows" }, Cr = { class: "glim-version-name" }, wr = { class: "glim-version-part" }, Tr = {
333
345
  key: 0,
334
346
  class: "glim-version-sub"
335
- }, wr = ["href", "onClick"], Tr = {
347
+ }, Er = ["href", "onClick"], Dr = {
336
348
  key: 1,
337
349
  class: "glim-num glim-version-number"
338
- }, Er = {
350
+ }, Or = {
339
351
  key: 0,
340
352
  class: "glim-version-actions"
341
- }, Dr = {
353
+ }, kr = {
342
354
  role: "status",
343
355
  class: "glim-sr-only"
344
- }, Or = /* @__PURE__ */ j({
356
+ }, Ar = /* @__PURE__ */ j({
345
357
  __name: "InfoVersionCard",
346
358
  props: {
347
359
  text: {},
@@ -350,37 +362,37 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
350
362
  onReleaseNotes: {},
351
363
  openUrl: {
352
364
  type: Function,
353
- default: Kt
365
+ default: qt
354
366
  },
355
367
  hueIndex: {}
356
368
  },
357
369
  setup(e) {
358
- let t = e, n = Me(), r = C(() => !n["whats-new"] && t.onReleaseNotes && t.text.releaseNotes), i = U({ kind: "idle" }), a = U(0), o = C(() => t.updateCheck && Xn(i.value, t.updateCheck.text));
370
+ let t = e, n = Ne(), r = C(() => !n["whats-new"] && t.onReleaseNotes && t.text.releaseNotes), i = U({ kind: "idle" }), a = U(0), o = C(() => t.updateCheck && Qn(i.value, t.updateCheck.text));
359
371
  function s() {
360
- xn(t.updateCheck, i.value, (e) => {
372
+ Cn(t.updateCheck, i.value, (e) => {
361
373
  i.value = e, e.kind === "failed" && a.value++;
362
374
  });
363
375
  }
364
376
  function c(e, n) {
365
377
  e.preventDefault(), t.openUrl(n);
366
378
  }
367
- return (t, n) => (R(), w(or, {
379
+ return (t, n) => (R(), w(cr, {
368
380
  "data-glim": "InfoVersionCard",
369
381
  title: e.text.title,
370
382
  hint: e.text.hint,
371
383
  "hue-index": e.hueIndex
372
384
  }, {
373
- default: Y(() => [D("ul", br, [(R(!0), E(S, null, B(e.rows, (t) => (R(), E("li", {
385
+ default: Y(() => [D("ul", Sr, [(R(!0), E(S, null, B(e.rows, (t) => (R(), E("li", {
374
386
  key: t.name,
375
387
  class: "glim-version-row"
376
- }, [D("span", xr, [D("span", Sr, W(t.name), 1), t.sub ? (R(), E("span", Cr, W(t.sub), 1)) : T("", !0)]), G(Qn)(t).href ? (R(), E("a", {
388
+ }, [D("span", Cr, [D("span", wr, W(t.name), 1), t.sub ? (R(), E("span", Tr, W(t.sub), 1)) : T("", !0)]), G(er)(t).href ? (R(), E("a", {
377
389
  key: 0,
378
- href: G(Qn)(t).href,
390
+ href: G(er)(t).href,
379
391
  target: "_blank",
380
392
  rel: "noopener noreferrer",
381
393
  class: "glim-num glim-version-number",
382
- onClick: (e) => c(e, G(Qn)(t).href)
383
- }, W(G(Qn)(t).shown), 9, wr)) : (R(), E("span", Tr, W(G(Qn)(t).released ? G(Qn)(t).shown : e.text.unreleased(G(Qn)(t).shown)), 1))]))), 128))]), r.value || t.$slots["whats-new"] || e.updateCheck ? (R(), E("div", Er, [
394
+ onClick: (e) => c(e, G(er)(t).href)
395
+ }, W(G(er)(t).shown), 9, Er)) : (R(), E("span", Dr, W(G(er)(t).released ? G(er)(t).shown : e.text.unreleased(G(er)(t).shown)), 1))]))), 128))]), r.value || t.$slots["whats-new"] || e.updateCheck ? (R(), E("div", Or, [
384
396
  r.value ? (R(), w(f, {
385
397
  key: 0,
386
398
  label: e.text.releaseNotes,
@@ -393,7 +405,7 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
393
405
  label: o.value.label,
394
406
  "label-key": o.value.labelKey,
395
407
  tone: o.value.tone,
396
- stage: G(Zn)(e.updateCheck.text, o.value.label),
408
+ stage: G($n)(e.updateCheck.text, o.value.label),
397
409
  busy: i.value.kind === "busy",
398
410
  class: P(a.value > 0 ? "glim-shake" : ""),
399
411
  onClick: s
@@ -404,7 +416,7 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
404
416
  "stage",
405
417
  "busy",
406
418
  "class"
407
- ])), D("span", Dr, W(o.value.announced), 1)], 64)) : T("", !0)
419
+ ])), D("span", kr, W(o.value.announced), 1)], 64)) : T("", !0)
408
420
  ])) : T("", !0)]),
409
421
  _: 3
410
422
  }, 8, [
@@ -413,10 +425,10 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
413
425
  "hue-index"
414
426
  ]));
415
427
  }
416
- }), kr = {
428
+ }), jr = {
417
429
  "data-glim": "InfoTile",
418
430
  style: { display: "contents" }
419
- }, Ar = /* @__PURE__ */ j({
431
+ }, Mr = /* @__PURE__ */ j({
420
432
  __name: "InfoTile",
421
433
  props: {
422
434
  version: {},
@@ -426,17 +438,17 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
426
438
  },
427
439
  setup(e) {
428
440
  let t = e, n = (e) => t.hueIndex === void 0 ? void 0 : t.hueIndex + e;
429
- return (t, r) => (R(), E("div", kr, [
430
- A(Or, N(e.version, { "hue-index": n(0) }), O({ _: 2 }, [t.$slots["whats-new"] ? {
441
+ return (t, r) => (R(), E("div", jr, [
442
+ A(Ar, N(e.version, { "hue-index": n(0) }), O({ _: 2 }, [t.$slots["whats-new"] ? {
431
443
  name: "whats-new",
432
444
  fn: Y(() => [V(t.$slots, "whats-new")]),
433
445
  key: "0"
434
446
  } : void 0]), 1040, ["hue-index"]),
435
- A(yr, N(e.help, { "hue-index": n(1) }), null, 16, ["hue-index"]),
436
- A(gr, N(e.about, { "hue-index": n(2) }), null, 16, ["hue-index"])
447
+ A(xr, N(e.help, { "hue-index": n(1) }), null, 16, ["hue-index"]),
448
+ A(vr, N(e.about, { "hue-index": n(2) }), null, 16, ["hue-index"])
437
449
  ]));
438
450
  }
439
- }), jr = /* @__PURE__ */ j({
451
+ }), Nr = /* @__PURE__ */ j({
440
452
  __name: "AboutCard",
441
453
  props: {
442
454
  text: {},
@@ -457,13 +469,13 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
457
469
  mailGlyph: {},
458
470
  openUrl: {
459
471
  type: Function,
460
- default: Kt
472
+ default: qt
461
473
  },
462
474
  hueIndex: {}
463
475
  },
464
476
  setup(e) {
465
477
  let t = e;
466
- $n("AboutCard");
478
+ tr("AboutCard");
467
479
  let n = C(() => [...t.version ? [{
468
480
  name: t.text.version,
469
481
  version: t.version,
@@ -473,7 +485,7 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
473
485
  version: t.glimstoneVersion,
474
486
  repoUrl: t.glimstoneRepoUrl
475
487
  }]);
476
- return (t, r) => (R(), w(Ar, {
488
+ return (t, r) => (R(), w(Mr, {
477
489
  "data-glim": "AboutCard",
478
490
  "hue-index": e.hueIndex,
479
491
  about: {
@@ -517,7 +529,7 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
517
529
  "help"
518
530
  ]));
519
531
  }
520
- }), Mr = ["innerHTML"], Nr = /* @__PURE__ */ j({
532
+ }), Pr = ["innerHTML"], Fr = /* @__PURE__ */ j({
521
533
  __name: "BrandMark",
522
534
  props: { svg: {} },
523
535
  setup(e) {
@@ -526,16 +538,16 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
526
538
  class: "glim-brand-svg",
527
539
  "aria-hidden": "true",
528
540
  innerHTML: e.svg
529
- }, null, 8, Mr));
541
+ }, null, 8, Pr));
530
542
  }
531
- }), Pr = [
543
+ }), Ir = [
532
544
  "aria-checked",
533
545
  "aria-label",
534
546
  "disabled"
535
- ], Fr = {
547
+ ], Lr = {
536
548
  class: "glim-checkbox-box",
537
549
  "aria-hidden": "true"
538
- }, Ir = { key: 0 }, Lr = /* @__PURE__ */ j({
550
+ }, Rr = { key: 0 }, zr = /* @__PURE__ */ j({
539
551
  __name: "Checkbox",
540
552
  props: /*@__PURE__*/ M({
541
553
  label: {},
@@ -570,13 +582,13 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
570
582
  disabled: e.disabled,
571
583
  class: P(["glim-checkbox", { "glim-checkbox--slim": e.slim }]),
572
584
  onClick: i[0] ||= (e) => r.value = !r.value,
573
- onKeydown: i[1] ||= Re(X(() => {}, ["prevent"]), ["enter"])
574
- }, [D("span", Fr, [A(G(y))]), n.value ? T("", !0) : (R(), E("span", Ir, W(e.label), 1))], 42, Pr));
585
+ onKeydown: i[1] ||= ze(X(() => {}, ["prevent"]), ["enter"])
586
+ }, [D("span", Lr, [A(G(b))]), n.value ? T("", !0) : (R(), E("span", Rr, W(e.label), 1))], 42, Ir));
575
587
  }
576
- }), Rr = ["data-glim-title"], zr = { class: "glim-modal-head" }, Br = {
588
+ }), Br = ["data-glim-title"], Vr = { class: "glim-modal-head" }, Hr = {
577
589
  id: "coffee-title",
578
590
  class: "glim-modal-title"
579
- }, Vr = { class: "glim-give-body" }, Hr = { class: "glim-give-appeal" }, Ur = { class: "glim-give-intro" }, Wr = { class: "glim-give-frame" }, Gr = ["src", "title"], Kr = { class: "glim-give-foot" }, qr = /* @__PURE__ */ j({
591
+ }, Ur = { class: "glim-give-body" }, Wr = { class: "glim-give-appeal" }, Gr = { class: "glim-give-intro" }, Kr = { class: "glim-give-frame" }, qr = ["src", "title"], Jr = { class: "glim-give-foot" }, Yr = /* @__PURE__ */ j({
580
592
  __name: "CoffeeDialog",
581
593
  props: {
582
594
  widgetUrl: {},
@@ -599,7 +611,7 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
599
611
  "aria-labelledby": "coffee-title",
600
612
  class: "glim-modal-card glim-modal-card--wide glim-modal-card--tall"
601
613
  }, [
602
- D("div", zr, [D("h2", Br, [A(e, {
614
+ D("div", Vr, [D("h2", Hr, [A(e, {
603
615
  tone: "heading",
604
616
  size: "heading",
605
617
  wrap: ""
@@ -607,34 +619,34 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
607
619
  default: Y(() => [k(W(t.text.title), 1)]),
608
620
  _: 1
609
621
  })])]),
610
- D("div", Vr, [
611
- D("p", Hr, W(t.text.appeal), 1),
612
- D("p", Ur, W(t.text.intro), 1),
613
- D("div", Wr, [D("iframe", {
622
+ D("div", Ur, [
623
+ D("p", Wr, W(t.text.appeal), 1),
624
+ D("p", Gr, W(t.text.intro), 1),
625
+ D("div", Kr, [D("iframe", {
614
626
  src: t.widgetUrl,
615
627
  title: t.text.title,
616
628
  allow: "payment",
617
629
  class: "glim-give-iframe"
618
- }, null, 8, Gr)])
630
+ }, null, 8, qr)])
619
631
  ]),
620
- D("div", Kr, [A(f, {
632
+ D("div", Jr, [A(f, {
621
633
  label: t.text.closeLabel,
622
634
  "label-key": "common.close",
623
635
  tone: "neutral",
624
636
  onClick: r[0] ||= (e) => i("close")
625
637
  }, null, 8, ["label"])])
626
- ], 8, Rr)]));
638
+ ], 8, Br)]));
627
639
  }
628
- }), Jr = { class: "glim-picker-foot" }, Yr = {
640
+ }), Xr = { class: "glim-picker-foot" }, Zr = {
629
641
  key: 0,
630
642
  class: "glim-picker-name"
631
- }, Xr = ["value", "aria-label"], Zr = { class: "glim-picker-actions" }, Qr = /* @__PURE__ */ j({
643
+ }, Qr = ["value", "aria-label"], $r = { class: "glim-picker-actions" }, ei = /* @__PURE__ */ j({
632
644
  __name: "ColorPicker",
633
645
  props: /*@__PURE__*/ M({
634
646
  anchor: { default: null },
635
647
  names: {
636
648
  type: [Array, Boolean],
637
- default: () => ze
649
+ default: () => Be
638
650
  },
639
651
  text: {}
640
652
  }, {
@@ -648,20 +660,20 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
648
660
  ], ["update:modelValue"]),
649
661
  setup(e, { emit: t }) {
650
662
  let n = e, r = q(e, "modelValue"), i = t, a = {
651
- ...Be,
663
+ ...Ve,
652
664
  ...n.text
653
- }, o = U(null), s = U(null), c = z(Ut(r.value) ?? "#000000"), l = z(c.value), u = C(() => n.names === !1 ? null : Vt(c.value, n.names)), d = nt(c.value, (e) => {
665
+ }, o = U(null), s = U(null), c = z(Wt(r.value) ?? "#000000"), l = z(c.value), u = C(() => n.names === !1 ? null : Ht(c.value, n.names)), d = rt(c.value, (e) => {
654
666
  c.value = e, l.value = e, i("input", e);
655
667
  }, { text: a }), p;
656
668
  L(() => {
657
- s.value.appendChild(d.el), n.anchor && o.value && (p = pt(o.value, n.anchor, () => i("close")), d.focus());
669
+ s.value.appendChild(d.el), n.anchor && o.value && (p = mt(o.value, n.anchor, () => i("close")), d.focus());
658
670
  }), I(() => p?.()), J(r, (e) => {
659
- let t = Ut(e);
671
+ let t = Wt(e);
660
672
  t && (c.value = t, l.value = t, d.setValue(t));
661
673
  });
662
674
  function m(e) {
663
675
  l.value = e.target.value;
664
- let t = Ut(l.value);
676
+ let t = Wt(l.value);
665
677
  t && (c.value = t, d.setValue(t), i("input", t));
666
678
  }
667
679
  function h() {
@@ -670,8 +682,8 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
670
682
  function g(e) {
671
683
  e.key === "Enter" && !(e.target instanceof HTMLButtonElement) && (e.preventDefault(), h());
672
684
  }
673
- return (t, n) => (R(), w(xe, {
674
- to: G(cn)(),
685
+ return (t, n) => (R(), w(Se, {
686
+ to: G(un)(),
675
687
  disabled: !e.anchor
676
688
  }, [D("div", {
677
689
  "data-glim": "ColorPicker",
@@ -686,12 +698,12 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
686
698
  ref: s,
687
699
  style: { display: "contents" }
688
700
  }, null, 512),
689
- D("div", Jr, [
701
+ D("div", Xr, [
690
702
  n[0] ||= D("span", {
691
703
  class: "glim-picker-swatch",
692
704
  "aria-hidden": "true"
693
705
  }, null, -1),
694
- u.value === null ? T("", !0) : (R(), E("span", Yr, W(u.value), 1)),
706
+ u.value === null ? T("", !0) : (R(), E("span", Zr, W(u.value), 1)),
695
707
  D("input", {
696
708
  class: "glim-picker-hex",
697
709
  value: l.value,
@@ -699,27 +711,27 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
699
711
  spellcheck: "false",
700
712
  "aria-label": a.hex,
701
713
  onInput: m
702
- }, null, 40, Xr)
714
+ }, null, 40, Qr)
703
715
  ]),
704
- D("div", Zr, [A(f, {
716
+ D("div", $r, [A(f, {
705
717
  label: a.apply,
706
718
  "label-key": "apply",
707
- glyph: G(y),
719
+ glyph: G(b),
708
720
  tone: "accent",
709
721
  onClick: h
710
722
  }, null, 8, ["label", "glyph"])])
711
723
  ], 38)], 8, ["to", "disabled"]));
712
724
  }
713
- }), $r = ["data-glim-title"], ei = { class: "glim-modal-head" }, ti = {
725
+ }), ti = ["data-glim-title"], ni = { class: "glim-modal-head" }, ri = {
714
726
  id: "confirmdialog-title",
715
727
  class: "glim-modal-title"
716
- }, ni = { class: "glim-modal-body" }, ri = {
728
+ }, ii = { class: "glim-modal-body" }, ai = {
717
729
  id: "confirmdialog-message",
718
730
  class: "glim-modal-text"
719
- }, ii = {
731
+ }, oi = {
720
732
  key: 0,
721
733
  class: "glim-modal-extra"
722
- }, ai = { class: "glim-modal-foot" }, oi = /* @__PURE__ */ j({
734
+ }, si = { class: "glim-modal-foot" }, ci = /* @__PURE__ */ j({
723
735
  __name: "ConfirmDialog",
724
736
  props: {
725
737
  title: {},
@@ -747,7 +759,7 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
747
759
  "aria-describedby": "confirmdialog-message",
748
760
  class: "glim-modal-card"
749
761
  }, [
750
- D("div", ei, [D("h2", ti, [A(e, {
762
+ D("div", ni, [D("h2", ri, [A(e, {
751
763
  tone: "heading",
752
764
  size: "heading",
753
765
  wrap: ""
@@ -762,13 +774,13 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
762
774
  class: "glim-modal-close",
763
775
  onClick: r[0] ||= (e) => i("cancel")
764
776
  }, null, 8, ["label", "glyph"]))]),
765
- D("div", ni, [D("p", ri, W(t.message), 1), n.$slots.extra ? (R(), E("div", ii, [V(n.$slots, "extra")])) : T("", !0)]),
766
- D("div", ai, [A(f, {
777
+ D("div", ii, [D("p", ai, W(t.message), 1), n.$slots.extra ? (R(), E("div", oi, [V(n.$slots, "extra")])) : T("", !0)]),
778
+ D("div", si, [A(f, {
767
779
  ref_key: "cancel",
768
780
  ref: o,
769
781
  label: t.cancelLabel,
770
782
  "label-key": "common.cancel",
771
- glyph: G(le),
783
+ glyph: G(ce),
772
784
  onClick: r[1] ||= (e) => i("cancel")
773
785
  }, null, 8, ["label", "glyph"]), A(f, {
774
786
  label: t.confirmLabel,
@@ -780,25 +792,25 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
780
792
  "label-key",
781
793
  "glyph"
782
794
  ])])
783
- ], 8, $r)]));
795
+ ], 8, ti)]));
784
796
  }
785
- }), si = {
797
+ }), li = {
786
798
  "data-glim": "Kbd",
787
799
  class: "glim-kbd"
788
- }, ci = /* @__PURE__ */ j({
800
+ }, ui = /* @__PURE__ */ j({
789
801
  __name: "Kbd",
790
802
  setup(e) {
791
- return (e, t) => (R(), E("kbd", si, [V(e.$slots, "default")]));
803
+ return (e, t) => (R(), E("kbd", li, [V(e.$slots, "default")]));
792
804
  }
793
- }), li = {
805
+ }), di = {
794
806
  key: 0,
795
807
  class: "glim-menu-sep",
796
808
  role: "separator"
797
- }, ui = {
809
+ }, fi = {
798
810
  key: 1,
799
811
  class: "glim-menu-head",
800
812
  role: "presentation"
801
- }, di = [
813
+ }, pi = [
802
814
  "role",
803
815
  "aria-checked",
804
816
  "aria-haspopup",
@@ -806,26 +818,26 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
806
818
  "disabled",
807
819
  "data-row",
808
820
  "onClick"
809
- ], fi = {
821
+ ], mi = {
810
822
  key: 0,
811
823
  class: "glim-checkbox-box",
812
824
  "aria-hidden": "true"
813
- }, pi = {
825
+ }, hi = {
814
826
  key: 2,
815
827
  class: "glim-menu-glyph",
816
828
  "aria-hidden": "true"
817
- }, mi = { class: "glim-menu-label" }, hi = {
829
+ }, gi = { class: "glim-menu-label" }, _i = {
818
830
  key: 3,
819
831
  class: "glim-menu-end glim-menu-caret",
820
832
  "aria-hidden": "true"
821
- }, gi = {
833
+ }, vi = {
822
834
  key: 4,
823
835
  class: "glim-menu-end glim-menu-tick",
824
836
  "aria-hidden": "true"
825
- }, _i = {
837
+ }, yi = {
826
838
  key: 6,
827
839
  class: "glim-menu-end glim-menu-count glim-num"
828
- }, vi = /* @__PURE__ */ j({
840
+ }, bi = /* @__PURE__ */ j({
829
841
  __name: "MenuRows",
830
842
  props: {
831
843
  entries: {},
@@ -833,15 +845,15 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
833
845
  },
834
846
  emits: ["pick"],
835
847
  setup(e, { emit: t }) {
836
- let n = e, r = t, i = C(() => n.entries.map((e) => e === "-" ? { kind: "sep" } : Ct(e) ? {
848
+ let n = e, r = t, i = C(() => n.entries.map((e) => e === "-" ? { kind: "sep" } : wt(e) ? {
837
849
  kind: "head",
838
850
  head: e
839
851
  } : {
840
852
  kind: "item",
841
853
  item: e,
842
- view: zt(e)
854
+ view: Bt(e)
843
855
  }));
844
- return (t, n) => (R(!0), E(S, null, B(i.value, (t, n) => (R(), E(S, { key: n }, [t.kind === "sep" ? (R(), E("div", li)) : t.kind === "head" ? (R(), E("div", ui, [D("span", null, W(t.head.head), 1), t.head.edit ? (R(), w(he, {
856
+ return (t, n) => (R(!0), E(S, null, B(i.value, (t, n) => (R(), E(S, { key: n }, [t.kind === "sep" ? (R(), E("div", di)) : t.kind === "head" ? (R(), E("div", fi, [D("span", null, W(t.head.head), 1), t.head.edit ? (R(), w(ge, {
845
857
  key: 0,
846
858
  tip: t.head.edit.tip,
847
859
  role: "menuitem",
@@ -850,7 +862,7 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
850
862
  "data-row": n,
851
863
  onClick: (e) => r("pick", n)
852
864
  }, {
853
- default: Y(() => [(R(), w(H(t.head.edit.glyph ?? G(ce))))]),
865
+ default: Y(() => [(R(), w(H(t.head.edit.glyph ?? G(se))))]),
854
866
  _: 2
855
867
  }, 1032, [
856
868
  "tip",
@@ -869,23 +881,23 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
869
881
  "data-row": n,
870
882
  onClick: (e) => r("pick", n)
871
883
  }, [
872
- t.view.lead === "box" ? (R(), E("span", fi, [A(G(y))])) : t.view.lead === "dot" ? (R(), E("span", {
884
+ t.view.lead === "box" ? (R(), E("span", mi, [A(G(b))])) : t.view.lead === "dot" ? (R(), E("span", {
873
885
  key: 1,
874
886
  class: "glim-menu-dot",
875
887
  style: F({ backgroundColor: t.item.color }),
876
888
  "aria-hidden": "true"
877
- }, null, 4)) : (R(), E("span", pi, [t.view.lead === "glyph" ? (R(), w(H(t.item.glyph), { key: 0 })) : T("", !0)])),
878
- D("span", mi, W(t.item.label), 1),
879
- t.view.end === "submenu" ? (R(), E("span", hi, [A(G(ue))])) : t.view.end === "tick" ? (R(), E("span", gi, [A(G(y))])) : t.view.end === "shortcut" ? (R(), w(ci, {
889
+ }, null, 4)) : (R(), E("span", hi, [t.view.lead === "glyph" ? (R(), w(H(t.item.glyph), { key: 0 })) : T("", !0)])),
890
+ D("span", gi, W(t.item.label), 1),
891
+ t.view.end === "submenu" ? (R(), E("span", _i, [A(G(le))])) : t.view.end === "tick" ? (R(), E("span", vi, [A(G(b))])) : t.view.end === "shortcut" ? (R(), w(ui, {
880
892
  key: 5,
881
893
  class: "glim-menu-end"
882
894
  }, {
883
895
  default: Y(() => [k(W(t.item.shortcut), 1)]),
884
896
  _: 2
885
- }, 1024)) : t.view.end === "count" ? (R(), E("span", _i, W(t.item.count), 1)) : T("", !0)
886
- ], 10, di))], 64))), 128));
897
+ }, 1024)) : t.view.end === "count" ? (R(), E("span", yi, W(t.item.count), 1)) : T("", !0)
898
+ ], 10, pi))], 64))), 128));
887
899
  }
888
- }), yi = ["id", "aria-label"], bi = ["id", "aria-label"], xi = /* @__PURE__ */ j({
900
+ }), xi = ["id", "aria-label"], Si = ["id", "aria-label"], Ci = /* @__PURE__ */ j({
889
901
  __name: "ContextMenu",
890
902
  props: {
891
903
  x: {},
@@ -905,22 +917,22 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
905
917
  },
906
918
  emits: ["close", "step"],
907
919
  setup(e, { emit: t }) {
908
- let n = e, r = t, i = U(null), a = U(null), o = bt(), s = z({
920
+ let n = e, r = t, i = U(null), a = U(null), o = xt(), s = z({
909
921
  left: n.x,
910
922
  top: n.y
911
- }), c = U(null), l = z(null), u = C(() => Wn(n.items)), d = C(() => {
923
+ }), c = U(null), l = z(null), u = C(() => Kn(n.items)), d = C(() => {
912
924
  let e = c.value ? u.value[c.value.at] : void 0;
913
- return e && e !== "-" && !Ct(e) && e.sub ? e : null;
914
- }), f = C(() => d.value?.sub ? Wn(d.value.sub) : null), p = () => ({
925
+ return e && e !== "-" && !wt(e) && e.sub ? e : null;
926
+ }), f = C(() => d.value?.sub ? Kn(d.value.sub) : null), p = () => ({
915
927
  width: innerWidth,
916
928
  height: innerHeight
917
929
  });
918
930
  function m(e) {
919
- r("close"), e && vn(n.opener ?? o);
931
+ r("close"), e && bn(n.opener ?? o);
920
932
  }
921
933
  function h() {
922
934
  let e = i.value;
923
- e && (s.value = on(n.x, n.y, {
935
+ e && (s.value = cn(n.x, n.y, {
924
936
  width: e.offsetWidth,
925
937
  height: e.offsetHeight
926
938
  }, p(), n.above));
@@ -930,62 +942,62 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
930
942
  n.y,
931
943
  n.above
932
944
  ], h, { flush: "post" });
933
- let g, ee;
945
+ let g, _;
934
946
  L(() => {
935
- h(), g = et(m), ee = tt(() => [
947
+ h(), g = tt(m), _ = nt(() => [
936
948
  i.value,
937
949
  a.value,
938
950
  n.opener
939
- ], () => m(!1)), i.value && n.fromEnd ? _t(i.value, "last") : i.value && gt(i.value);
940
- }), Ee(() => {
941
- g?.(), ee?.();
951
+ ], () => m(!1)), i.value && n.fromEnd ? vt(i.value, "last") : i.value && _t(i.value);
952
+ }), De(() => {
953
+ g?.(), _?.();
942
954
  }), J(c, (e) => {
943
955
  l.value = null;
944
956
  let t = e && i.value?.querySelector(`[data-row="${e.at}"]`), n = a.value;
945
957
  if (!e || !t || !n) return;
946
958
  let r = getComputedStyle(i.value).direction === "rtl";
947
- l.value = sn(t.getBoundingClientRect(), {
959
+ l.value = ln(t.getBoundingClientRect(), {
948
960
  width: n.offsetWidth,
949
961
  height: n.offsetHeight
950
- }, p(), r), e.focus && gt(n);
962
+ }, p(), r), e.focus && _t(n);
951
963
  }, { flush: "post" });
952
- function _(e, t) {
964
+ function v(e, t) {
953
965
  let n = e[t];
954
- n !== "-" && (Ct(n) ? (m(!0), n.edit?.onSelect()) : n.sub && e === u.value ? c.value = {
966
+ n !== "-" && (wt(n) ? (m(!0), n.edit?.onSelect()) : n.sub && e === u.value ? c.value = {
955
967
  at: t,
956
968
  focus: !0
957
- } : (zt(n).staysOpen || m(!0), n.onSelect?.()));
969
+ } : (Bt(n).staysOpen || m(!0), n.onSelect?.()));
958
970
  }
959
- function te(e, t) {
971
+ function ee(e, t) {
960
972
  if (e.key === "Tab") return m(!1);
961
973
  let n = e.currentTarget;
962
- if (Tt(e)) {
963
- vt(n, e.key) && e.preventDefault();
974
+ if (Et(e)) {
975
+ yt(n, e.key) && e.preventDefault();
964
976
  return;
965
977
  }
966
- let a = Rt(e.key, getComputedStyle(n).direction === "rtl");
978
+ let a = zt(e.key, getComputedStyle(n).direction === "rtl");
967
979
  if (!a) return;
968
- if (e.preventDefault(), a !== "in" && a !== "out") return _t(n, a);
980
+ if (e.preventDefault(), a !== "in" && a !== "out") return vt(n, a);
969
981
  if (t) {
970
982
  a === "out" && c.value && (i.value?.querySelector(`[data-row="${c.value.at}"]`)?.focus(), c.value = null);
971
983
  return;
972
984
  }
973
985
  let o = Number(document.activeElement?.dataset.row), s = u.value[o];
974
- a === "in" && s && s !== "-" && !Ct(s) && s.sub && !s.disabled ? c.value = {
986
+ a === "in" && s && s !== "-" && !wt(s) && s.sub && !s.disabled ? c.value = {
975
987
  at: o,
976
988
  focus: !0
977
989
  } : r("step", a === "in" ? 1 : -1);
978
990
  }
979
- function v(e) {
991
+ function te(e) {
980
992
  let t = e.target.closest("[data-row]");
981
993
  if (!t) return;
982
- let n = Number(t.dataset.row), r = u.value[n], i = r !== "-" && !Ct(r) && !!r.sub && !r.disabled;
994
+ let n = Number(t.dataset.row), r = u.value[n], i = r !== "-" && !wt(r) && !!r.sub && !r.disabled;
983
995
  i && c.value?.at !== n ? c.value = {
984
996
  at: n,
985
997
  focus: !1
986
998
  } : !i && c.value && (c.value = null);
987
999
  }
988
- return (t, n) => (R(), w(xe, { to: G(cn)() }, [D("div", {
1000
+ return (t, n) => (R(), w(Se, { to: G(un)() }, [D("div", {
989
1001
  id: e.id,
990
1002
  ref_key: "menu",
991
1003
  ref: i,
@@ -997,14 +1009,14 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
997
1009
  left: `${s.value.left}px`,
998
1010
  top: `${s.value.top}px`
999
1011
  }),
1000
- onKeydown: n[1] ||= (e) => te(e, !1),
1001
- onMouseover: v,
1012
+ onKeydown: n[1] ||= (e) => ee(e, !1),
1013
+ onMouseover: te,
1002
1014
  onContextmenu: n[2] ||= X(() => {}, ["prevent"])
1003
- }, [A(vi, {
1015
+ }, [A(bi, {
1004
1016
  entries: u.value,
1005
1017
  "open-at": c.value?.at,
1006
- onPick: n[0] ||= (e) => _(u.value, e)
1007
- }, null, 8, ["entries", "open-at"])], 44, yi), f.value ? (R(), E("div", {
1018
+ onPick: n[0] ||= (e) => v(u.value, e)
1019
+ }, null, 8, ["entries", "open-at"])], 44, xi), f.value ? (R(), E("div", {
1008
1020
  key: 0,
1009
1021
  id: d.value?.subId,
1010
1022
  ref_key: "subMenu",
@@ -1016,17 +1028,17 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1016
1028
  left: `${l.value?.left ?? 0}px`,
1017
1029
  top: `${l.value?.top ?? 0}px`
1018
1030
  }),
1019
- onKeydown: n[4] ||= (e) => te(e, !0),
1031
+ onKeydown: n[4] ||= (e) => ee(e, !0),
1020
1032
  onContextmenu: n[5] ||= X(() => {}, ["prevent"])
1021
- }, [A(vi, {
1033
+ }, [A(bi, {
1022
1034
  entries: f.value,
1023
- onPick: n[3] ||= (e) => _(f.value, e)
1024
- }, null, 8, ["entries"])], 44, bi)) : T("", !0)], 8, ["to"]));
1035
+ onPick: n[3] ||= (e) => v(f.value, e)
1036
+ }, null, 8, ["entries"])], 44, Si)) : T("", !0)], 8, ["to"]));
1025
1037
  }
1026
- }), Si = ["value", "aria-label"], Ci = {
1038
+ }), wi = ["value", "aria-label"], Ti = {
1027
1039
  role: "status",
1028
1040
  class: "glim-sr-only"
1029
- }, wi = /* @__PURE__ */ j({
1041
+ }, Ei = /* @__PURE__ */ j({
1030
1042
  __name: "CopyField",
1031
1043
  props: {
1032
1044
  value: {},
@@ -1042,12 +1054,12 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1042
1054
  let n = e, r = t, i = x(() => n.label), a = z(!1), o = U(null), s;
1043
1055
  I(() => clearTimeout(s));
1044
1056
  async function c() {
1045
- let e = await at(n.value);
1046
- r("copy", e), e ? (a.value = !0, clearTimeout(s), s = window.setTimeout(() => a.value = !1, Ve)) : (o.value?.focus(), o.value?.select());
1057
+ let e = await ot(n.value);
1058
+ r("copy", e), e ? (a.value = !0, clearTimeout(s), s = window.setTimeout(() => a.value = !1, He)) : (o.value?.focus(), o.value?.select());
1047
1059
  }
1048
1060
  return (t, n) => (R(), E("span", {
1049
1061
  "data-glim": "CopyField",
1050
- class: P(["glim-copy", G(ft)(e.width)])
1062
+ class: P(["glim-copy", G(pt)(e.width)])
1051
1063
  }, [
1052
1064
  D("input", {
1053
1065
  ref_key: "field",
@@ -1057,11 +1069,11 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1057
1069
  "aria-label": G(i),
1058
1070
  spellcheck: "false",
1059
1071
  class: "glim-input glim-input--mono"
1060
- }, null, 8, Si),
1072
+ }, null, 8, wi),
1061
1073
  A(f, {
1062
1074
  label: a.value ? e.text.copied : e.text.copy,
1063
1075
  "label-key": a.value ? "copied" : "copy",
1064
- glyph: a.value ? G(y) : G(se),
1076
+ glyph: a.value ? G(b) : G(oe),
1065
1077
  variant: "icon",
1066
1078
  onClick: c
1067
1079
  }, null, 8, [
@@ -1069,27 +1081,27 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1069
1081
  "label-key",
1070
1082
  "glyph"
1071
1083
  ]),
1072
- D("span", Ci, W(a.value ? e.text.copied : ""), 1)
1084
+ D("span", Ti, W(a.value ? e.text.copied : ""), 1)
1073
1085
  ], 2));
1074
1086
  }
1075
- }), Ti = ["data-glim-title"], Ei = { class: "glim-modal-head" }, Di = {
1087
+ }), Di = ["data-glim-title"], Oi = { class: "glim-modal-head" }, ki = {
1076
1088
  id: "cryptodonate-title",
1077
1089
  class: "glim-modal-title"
1078
- }, Oi = { class: "glim-give-body glim-give-body--scroll" }, ki = { class: "glim-give-appeal" }, Ai = { class: "glim-give-intro" }, ji = { class: "glim-give-well" }, Mi = {
1090
+ }, Ai = { class: "glim-give-body glim-give-body--scroll" }, ji = { class: "glim-give-appeal" }, Mi = { class: "glim-give-intro" }, Ni = { class: "glim-give-well" }, Pi = {
1079
1091
  dir: "ltr",
1080
1092
  class: "glim-give-address"
1081
- }, Ni = ["aria-label"], Pi = ["aria-selected", "onClick"], Fi = {
1093
+ }, Fi = ["aria-label"], Ii = ["aria-selected", "onClick"], Li = {
1082
1094
  key: 0,
1083
1095
  class: "glim-give-note"
1084
- }, Ii = ["aria-label"], Li = [
1096
+ }, Ri = ["aria-label"], zi = [
1085
1097
  "aria-selected",
1086
1098
  "aria-label",
1087
1099
  "title",
1088
1100
  "onClick"
1089
- ], Ri = {
1101
+ ], Bi = {
1090
1102
  key: 1,
1091
1103
  class: "glim-give-ticker"
1092
- }, zi = { class: "glim-give-foot" }, Bi = /* @__PURE__ */ j({
1104
+ }, Vi = { class: "glim-give-foot" }, Hi = /* @__PURE__ */ j({
1093
1105
  __name: "CryptoDonateDialog",
1094
1106
  props: {
1095
1107
  coins: {},
@@ -1108,7 +1120,7 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1108
1120
  function d(e, t) {
1109
1121
  let n = e.id !== i.coin.id && e.tile;
1110
1122
  return {
1111
- ...St(t),
1123
+ ...Ct(t),
1112
1124
  ...n ? {
1113
1125
  "--tile": e.tile.color,
1114
1126
  "--tile-ink": e.tile.ink
@@ -1133,7 +1145,7 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1133
1145
  "aria-labelledby": "cryptodonate-title",
1134
1146
  class: "glim-modal-card glim-modal-card--wide"
1135
1147
  }, [
1136
- D("div", Ei, [D("h2", Di, [A(e, {
1148
+ D("div", Oi, [D("h2", ki, [A(e, {
1137
1149
  tone: "heading",
1138
1150
  size: "heading",
1139
1151
  wrap: ""
@@ -1141,12 +1153,12 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1141
1153
  default: Y(() => [k(W(t.text.title), 1)]),
1142
1154
  _: 1
1143
1155
  })])]),
1144
- D("div", Oi, [
1145
- D("p", ki, W(t.text.appeal), 1),
1146
- D("p", Ai, W(t.text.intro), 1),
1147
- D("div", ji, [
1156
+ D("div", Ai, [
1157
+ D("p", ji, W(t.text.appeal), 1),
1158
+ D("p", Mi, W(t.text.intro), 1),
1159
+ D("div", Ni, [
1148
1160
  V(n.$slots, "qr", { value: t.network.address }),
1149
- D("p", Mi, W(t.network.address), 1),
1161
+ D("p", Pi, W(t.network.address), 1),
1150
1162
  D("div", {
1151
1163
  class: "glim-give-networks",
1152
1164
  role: "listbox",
@@ -1156,11 +1168,11 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1156
1168
  type: "button",
1157
1169
  role: "option",
1158
1170
  "aria-selected": e.id === t.network.id,
1159
- style: F(G(St)(n)),
1171
+ style: F(G(Ct)(n)),
1160
1172
  class: P(e.id === t.network.id ? "glim-give-network glim-hue glim-active" : "glim-give-network glim-hue"),
1161
1173
  onClick: (n) => a("pick", t.coin, e)
1162
- }, W(e.name), 15, Pi))), 128))], 8, Ni),
1163
- t.network.note ? (R(), E("p", Fi, W(t.network.note), 1)) : T("", !0),
1174
+ }, W(e.name), 15, Ii))), 128))], 8, Fi),
1175
+ t.network.note ? (R(), E("p", Li, W(t.network.note), 1)) : T("", !0),
1164
1176
  A(f, {
1165
1177
  label: t.text.copyLabel,
1166
1178
  "label-key": "common.copy",
@@ -1183,17 +1195,17 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1183
1195
  style: F(d(e, r)),
1184
1196
  class: P(p(e)),
1185
1197
  onClick: (t) => a("pick", e, e.networks[0])
1186
- }, [s.value ? V(n.$slots, "mark", { coin: e }, void 0, void 0, 0) : T("", !0), c.value ? (R(), E("span", Ri, W(e.symbol), 1)) : T("", !0)], 14, Li))), 128))], 8, Ii)
1198
+ }, [s.value ? V(n.$slots, "mark", { coin: e }, void 0, void 0, 0) : T("", !0), c.value ? (R(), E("span", Bi, W(e.symbol), 1)) : T("", !0)], 14, zi))), 128))], 8, Ri)
1187
1199
  ]),
1188
- D("div", zi, [A(f, {
1200
+ D("div", Vi, [A(f, {
1189
1201
  label: t.text.closeLabel,
1190
1202
  "label-key": "common.close",
1191
1203
  tone: "neutral",
1192
1204
  onClick: r[1] ||= (e) => a("close")
1193
1205
  }, null, 8, ["label"])])
1194
- ], 8, Ti)]));
1206
+ ], 8, Di)]));
1195
1207
  }
1196
- }), Vi = ["aria-multiselectable", "aria-label"], Hi = 4, Ui = /* @__PURE__ */ j({
1208
+ }), Ui = ["aria-multiselectable", "aria-label"], Wi = 4, Gi = /* @__PURE__ */ j({
1197
1209
  __name: "DropdownListbox",
1198
1210
  props: {
1199
1211
  open: { type: Boolean },
@@ -1204,8 +1216,8 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1204
1216
  emits: ["close"],
1205
1217
  setup(e, { emit: t }) {
1206
1218
  let n = e;
1207
- $n("DropdownListbox");
1208
- let r = t, i = U(null), a = U(null), o = ve(() => n.open, Ae(n, "triggerRef")), s = !1;
1219
+ tr("DropdownListbox");
1220
+ let r = t, i = U(null), a = U(null), o = ye(() => n.open, je(n, "triggerRef")), s = !1;
1209
1221
  J(() => n.open, (e) => {
1210
1222
  e || (s = !!i.value?.contains(document.activeElement));
1211
1223
  }, { flush: "sync" });
@@ -1218,10 +1230,10 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1218
1230
  let r = {
1219
1231
  width: document.documentElement.clientWidth || window.innerWidth,
1220
1232
  height: document.documentElement.clientHeight || window.innerHeight
1221
- }, { left: o, top: s } = it(t, {
1233
+ }, { left: o, top: s } = at(t, {
1222
1234
  width: t.width,
1223
1235
  height: i.value.offsetHeight
1224
- }, r, Hi);
1236
+ }, r, Wi);
1225
1237
  a.value = {
1226
1238
  left: o,
1227
1239
  top: s,
@@ -1249,16 +1261,16 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1249
1261
  a.value = null, s && n.triggerRef?.focus(), s = !1;
1250
1262
  return;
1251
1263
  }
1252
- h(), await we(), l(), await we();
1264
+ h(), await Te(), l(), await Te();
1253
1265
  let t = c(), r = t.find((e) => e.getAttribute("aria-selected") === "true") ?? t[0];
1254
1266
  r?.scrollIntoView?.({ block: "nearest" }), r?.focus();
1255
1267
  }, {
1256
1268
  immediate: !0,
1257
1269
  flush: "post"
1258
- }), Te(() => m());
1270
+ }), Ee(() => m());
1259
1271
  function g(e) {
1260
- if (Tt(e)) {
1261
- mt(c(), e.key) && e.preventDefault();
1272
+ if (Et(e)) {
1273
+ ht(c(), e.key) && e.preventDefault();
1262
1274
  return;
1263
1275
  }
1264
1276
  if (![
@@ -1279,9 +1291,9 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1279
1291
  }
1280
1292
  t[r].scrollIntoView?.({ block: "nearest" }), t[r].focus();
1281
1293
  }
1282
- return (t, n) => e.open ? (R(), w(xe, {
1294
+ return (t, n) => e.open ? (R(), w(Se, {
1283
1295
  key: 0,
1284
- to: G(cn)()
1296
+ to: G(un)()
1285
1297
  }, [D("div", {
1286
1298
  ref_key: "panel",
1287
1299
  ref: i,
@@ -1302,16 +1314,16 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1302
1314
  ...G(o).style.value
1303
1315
  }),
1304
1316
  onKeydown: g
1305
- }, [V(t.$slots, "default")], 46, Vi)], 8, ["to"])) : T("", !0);
1317
+ }, [V(t.$slots, "default")], 46, Ui)], 8, ["to"])) : T("", !0);
1306
1318
  }
1307
- }), Wi = ["data-glim-title"], Gi = {
1319
+ }), Ki = ["data-glim-title"], qi = {
1308
1320
  key: 0,
1309
1321
  class: "glim-empty-glyph",
1310
1322
  "aria-hidden": "true"
1311
- }, Ki = { class: "glim-empty-title" }, qi = {
1323
+ }, Ji = { class: "glim-empty-title" }, Yi = {
1312
1324
  key: 1,
1313
1325
  class: "glim-empty-hint"
1314
- }, Ji = /* @__PURE__ */ j({
1326
+ }, Xi = /* @__PURE__ */ j({
1315
1327
  __name: "EmptyState",
1316
1328
  props: {
1317
1329
  glyph: {},
@@ -1328,13 +1340,13 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1328
1340
  "data-glim-title": e.title,
1329
1341
  class: P(e.nested ? "glim-empty" : "glim-card glim-empty")
1330
1342
  }, [
1331
- e.glyph ? (R(), E("span", Gi, [(R(), w(H(e.glyph)))])) : T("", !0),
1332
- D("p", Ki, W(e.title), 1),
1333
- e.hint ? (R(), E("p", qi, W(e.hint), 1)) : T("", !0),
1343
+ e.glyph ? (R(), E("span", qi, [(R(), w(H(e.glyph)))])) : T("", !0),
1344
+ D("p", Ji, W(e.title), 1),
1345
+ e.hint ? (R(), E("p", Yi, W(e.hint), 1)) : T("", !0),
1334
1346
  V(t.$slots, "default")
1335
- ], 10, Wi));
1347
+ ], 10, Ki));
1336
1348
  }
1337
- }), Yi = ["id"], Xi = /* @__PURE__ */ j({
1349
+ }), Zi = ["id"], Qi = /* @__PURE__ */ j({
1338
1350
  __name: "FieldError",
1339
1351
  props: { id: {} },
1340
1352
  setup(e) {
@@ -1342,22 +1354,22 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1342
1354
  "data-glim": "FieldError",
1343
1355
  id: e.id,
1344
1356
  class: "glim-field-error"
1345
- }, [A(G(b), { mark: G(qe).fail }, null, 8, ["mark"]), V(t.$slots, "default")], 8, Yi));
1357
+ }, [A(G(m), { mark: G(Je).fail }, null, 8, ["mark"]), V(t.$slots, "default")], 8, Zi));
1346
1358
  }
1347
- }), Zi = /* @__PURE__ */ j({
1359
+ }), $i = /* @__PURE__ */ j({
1348
1360
  __name: "Pill",
1349
1361
  props: { tone: { default: "neutral" } },
1350
1362
  setup(e) {
1351
- let t = e, n = C(() => an(t.tone));
1363
+ let t = e, n = C(() => sn(t.tone));
1352
1364
  return (e, t) => (R(), E("span", {
1353
1365
  "data-glim": "Pill",
1354
1366
  class: P(n.value)
1355
1367
  }, [V(e.$slots, "default")], 2));
1356
1368
  }
1357
- }), Qi = { class: "glim-field-row-name" }, $i = {
1369
+ }), ea = { class: "glim-field-row-name" }, ta = {
1358
1370
  key: 0,
1359
1371
  class: "glim-field-row-controls"
1360
- }, ea = /* @__PURE__ */ j({
1372
+ }, na = /* @__PURE__ */ j({
1361
1373
  __name: "FieldRow",
1362
1374
  props: {
1363
1375
  label: {},
@@ -1368,27 +1380,27 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1368
1380
  },
1369
1381
  setup(e) {
1370
1382
  let t = e;
1371
- Oe(_e, C(() => t.label));
1372
- let n = Ce(ge, !1), r = U(null);
1383
+ ke(ve, C(() => t.label));
1384
+ let n = we(_e, !1), r = U(null);
1373
1385
  return (t, i) => (R(), E("div", {
1374
1386
  ref_key: "row",
1375
1387
  ref: r,
1376
1388
  "data-glim": "FieldRow",
1377
1389
  class: P(["glim-field-row", { "glim-field-row--wide": e.wide }])
1378
- }, [D("span", Qi, [D("span", {
1390
+ }, [D("span", ea, [D("span", {
1379
1391
  class: "glim-field-row-label",
1380
- onClick: i[0] ||= (e) => G(un)(r.value)
1392
+ onClick: i[0] ||= (e) => G(fn)(r.value)
1381
1393
  }, [V(t.$slots, "label", {}, () => [k(W(e.label), 1)])]), e.hint ? (R(), w(Q, {
1382
1394
  key: 0,
1383
1395
  tip: e.hint
1384
- }, null, 8, ["tip"])) : T("", !0)]), G(n) ? (R(), E("span", $i, [V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w(Zi, {
1396
+ }, null, 8, ["tip"])) : T("", !0)]), G(n) ? (R(), E("span", ta, [V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w($i, {
1385
1397
  key: 0,
1386
1398
  class: "glim-num",
1387
1399
  tone: e.tone
1388
1400
  }, {
1389
1401
  default: Y(() => [k(W(e.value), 1)]),
1390
1402
  _: 1
1391
- }, 8, ["tone"]))])])) : V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w(Zi, {
1403
+ }, 8, ["tone"]))])])) : V(t.$slots, "default", {}, () => [e.value === void 0 ? T("", !0) : (R(), w($i, {
1392
1404
  key: 0,
1393
1405
  class: "glim-num",
1394
1406
  tone: e.tone
@@ -1397,23 +1409,23 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1397
1409
  _: 1
1398
1410
  }, 8, ["tone"]))], void 0, 1)], 2));
1399
1411
  }
1400
- }), ta = /* @__PURE__ */ j({
1412
+ }), ra = /* @__PURE__ */ j({
1401
1413
  __name: "FieldRowGroup",
1402
1414
  props: { columns: {} },
1403
1415
  setup(e) {
1404
- return Oe(ge, !0), (t, n) => (R(), E("div", {
1416
+ return ke(_e, !0), (t, n) => (R(), E("div", {
1405
1417
  "data-glim": "FieldRowGroup",
1406
1418
  class: "glim-field-row-group",
1407
1419
  style: F(e.columns ? { "--field-columns": e.columns } : void 0)
1408
1420
  }, [V(t.$slots, "default")], 4));
1409
1421
  }
1410
- }), na = {
1422
+ }), ia = {
1411
1423
  key: 0,
1412
1424
  class: "glim-modal-foot"
1413
- }, ra = {
1425
+ }, aa = {
1414
1426
  key: 0,
1415
1427
  class: "glim-window-start"
1416
- }, ia = /* @__PURE__ */ j({
1428
+ }, oa = /* @__PURE__ */ j({
1417
1429
  __name: "WindowFootRow",
1418
1430
  props: {
1419
1431
  actions: {},
@@ -1423,11 +1435,11 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1423
1435
  },
1424
1436
  emits: ["close"],
1425
1437
  setup(e, { emit: t }) {
1426
- let n = e, r = t, i = C(() => nr(n.actions, n.hasStart, {
1438
+ let n = e, r = t, i = C(() => ir(n.actions, n.hasStart, {
1427
1439
  cancel: {
1428
1440
  label: n.text.cancel,
1429
1441
  labelKey: "common.cancel",
1430
- glyph: le,
1442
+ glyph: ce,
1431
1443
  wayOut: !0
1432
1444
  },
1433
1445
  close: {
@@ -1440,12 +1452,14 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1440
1452
  function a(e) {
1441
1453
  e.onClick?.() !== !1 && r("close");
1442
1454
  }
1443
- return (t, n) => i.value.length ? (R(), E("div", na, [e.hasStart ? (R(), E("span", ra, [V(t.$slots, "start", {}, () => [k(W(e.start), 1)])])) : T("", !0), (R(!0), E(S, null, B(i.value, (e, t) => (R(), w(f, N({ ref_for: !0 }, e.attrs, {
1455
+ return (t, n) => i.value.length ? (R(), E("div", ia, [e.hasStart ? (R(), E("span", aa, [V(t.$slots, "start", {}, () => [k(W(e.start), 1)])])) : T("", !0), (R(!0), E(S, null, B(i.value, (e, t) => (R(), w(f, N({ ref_for: !0 }, e.attrs, {
1444
1456
  key: t,
1445
1457
  label: e.label,
1446
1458
  "label-key": e.labelKey,
1447
1459
  glyph: e.glyph,
1448
- tone: e.primary ? "accent" : "neutral",
1460
+ tone: e.tone ?? (e.primary ? "accent" : "neutral"),
1461
+ busy: e.busy,
1462
+ title: e.title,
1449
1463
  disabled: e.disabled,
1450
1464
  onClick: (t) => a(e)
1451
1465
  }), null, 16, [
@@ -1453,15 +1467,17 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1453
1467
  "label-key",
1454
1468
  "glyph",
1455
1469
  "tone",
1470
+ "busy",
1471
+ "title",
1456
1472
  "disabled",
1457
1473
  "onClick"
1458
1474
  ]))), 128))])) : T("", !0);
1459
1475
  }
1460
- }), aa = [
1476
+ }), sa = [
1461
1477
  "data-glim-title",
1462
1478
  "aria-labelledby",
1463
1479
  "aria-label"
1464
- ], oa = ["id"], sa = { class: "glim-modal-body glim-window-body" }, ca = /* @__PURE__ */ j({
1480
+ ], ca = ["id"], la = { class: "glim-modal-body glim-window-body" }, ua = /* @__PURE__ */ j({
1465
1481
  inheritAttrs: !1,
1466
1482
  __name: "Window",
1467
1483
  props: {
@@ -1469,23 +1485,27 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1469
1485
  actions: { default: () => [] },
1470
1486
  start: {},
1471
1487
  size: { default: "normal" },
1472
- text: {}
1488
+ text: {},
1489
+ closeOnBackdrop: {
1490
+ type: Boolean,
1491
+ default: !0
1492
+ }
1473
1493
  },
1474
1494
  emits: ["close"],
1475
1495
  setup(t, { expose: n, emit: r }) {
1476
- let i = t, a = r, o = Me(), s = U(null), c = K(), l = bt(), u = C(() => i.start !== void 0 || !!o.start), d;
1496
+ let i = t, a = r, o = Ne(), s = U(null), c = K(), l = xt(), u = C(() => i.start !== void 0 || !!o.start), d;
1477
1497
  function f() {
1478
1498
  d?.(), a("close");
1479
1499
  }
1480
1500
  L(() => {
1481
- d = In(() => s.value, f), s.value && tr(s.value)?.focus();
1482
- }), Ee(() => {
1483
- d?.(), vn(l);
1501
+ d = Rn(() => s.value, f), s.value && rr(s.value)?.focus();
1502
+ }), De(() => {
1503
+ d?.(), bn(l);
1484
1504
  }), n({ card: s });
1485
1505
  function p() {
1486
- Lt() || f();
1506
+ i.closeOnBackdrop && !Rt() && f();
1487
1507
  }
1488
- return (n, r) => (R(), w(xe, { to: G(cn)() }, [D("div", {
1508
+ return (n, r) => (R(), w(Se, { to: G(un)() }, [D("div", {
1489
1509
  class: "glim-modal-backdrop",
1490
1510
  onMousedown: X(p, ["self"])
1491
1511
  }, [D("div", N({
@@ -1515,9 +1535,9 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1515
1535
  }, {
1516
1536
  default: Y(() => [V(n.$slots, "title", {}, () => [k(W(t.title), 1)])]),
1517
1537
  _: 3
1518
- })], 8, oa),
1519
- D("div", sa, [V(n.$slots, "default")]),
1520
- A(ia, {
1538
+ })], 8, ca),
1539
+ D("div", la, [V(n.$slots, "default")]),
1540
+ A(oa, {
1521
1541
  actions: t.actions,
1522
1542
  start: t.start,
1523
1543
  "has-start": u.value,
@@ -1533,9 +1553,9 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1533
1553
  "has-start",
1534
1554
  "text"
1535
1555
  ])
1536
- ], 16, aa)], 32)], 8, ["to"]));
1556
+ ], 16, sa)], 32)], 8, ["to"]));
1537
1557
  }
1538
- }), la = { class: "glim-fortress-text" }, ua = /* @__PURE__ */ j({
1558
+ }), da = { class: "glim-fortress-text" }, fa = /* @__PURE__ */ j({
1539
1559
  __name: "FortressDoubtWindow",
1540
1560
  props: {
1541
1561
  app: {},
@@ -1545,14 +1565,14 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1545
1565
  onClose: { type: Function }
1546
1566
  },
1547
1567
  setup(e) {
1548
- let t = e, n = C(() => ut(t.text, t.app, t.instance)), r = C(() => [{
1568
+ let t = e, n = C(() => dt(t.text, t.app, t.instance)), r = C(() => [{
1549
1569
  label: n.value.open,
1550
1570
  labelKey: "open",
1551
1571
  primary: !0,
1552
1572
  attrs: { "data-fortress": "open-anyway" },
1553
1573
  onClick: () => t.onOpen()
1554
1574
  }]);
1555
- return (t, i) => (R(), w(ca, {
1575
+ return (t, i) => (R(), w(ua, {
1556
1576
  "data-glim": "FortressDoubtWindow",
1557
1577
  title: n.value.title,
1558
1578
  actions: r.value,
@@ -1562,7 +1582,7 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1562
1582
  },
1563
1583
  onClose: i[0] ||= (t) => e.onClose()
1564
1584
  }, {
1565
- default: Y(() => [D("div", la, [D("p", null, W(n.value.body), 1)])]),
1585
+ default: Y(() => [D("div", da, [D("p", null, W(n.value.body), 1)])]),
1566
1586
  _: 1
1567
1587
  }, 8, [
1568
1588
  "title",
@@ -1570,32 +1590,32 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1570
1590
  "text"
1571
1591
  ]));
1572
1592
  }
1573
- }), da = ["data-glim-title"], fa = { class: "glim-instance-top" }, pa = {
1593
+ }), pa = ["data-glim-title"], ma = { class: "glim-instance-top" }, ha = {
1574
1594
  key: 0,
1575
1595
  class: "glim-instance-mark",
1576
1596
  "aria-hidden": "true"
1577
- }, ma = ["src"], ha = { class: "glim-instance-main" }, ga = { class: "glim-instance-name" }, _a = { class: "glim-instance-title" }, va = {
1597
+ }, ga = ["src"], _a = { class: "glim-instance-main" }, va = { class: "glim-instance-name" }, ya = { class: "glim-instance-title" }, ba = {
1578
1598
  key: 0,
1579
1599
  class: "glim-instance-badges"
1580
- }, ya = {
1600
+ }, xa = {
1581
1601
  key: 0,
1582
1602
  class: "glim-eyebrow"
1583
- }, ba = {
1603
+ }, Sa = {
1584
1604
  key: 1,
1585
1605
  class: "glim-instance-facts glim-num"
1586
- }, xa = {
1606
+ }, Ca = {
1587
1607
  key: 2,
1588
1608
  class: "glim-instance-figures"
1589
- }, Sa = { class: "glim-num" }, Ca = {
1609
+ }, wa = { class: "glim-num" }, Ta = {
1590
1610
  key: 3,
1591
1611
  class: "glim-instance-acts"
1592
- }, wa = {
1612
+ }, Ea = {
1593
1613
  key: 0,
1594
1614
  class: "glim-instance-body"
1595
- }, Ta = {
1615
+ }, Da = {
1596
1616
  key: 1,
1597
1617
  class: "glim-instance-acts"
1598
- }, Ea = /* @__PURE__ */ j({
1618
+ }, Oa = /* @__PURE__ */ j({
1599
1619
  __name: "InstanceCard",
1600
1620
  props: {
1601
1621
  logo: {},
@@ -1606,34 +1626,34 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1606
1626
  hueIndex: {}
1607
1627
  },
1608
1628
  setup(e) {
1609
- let t = e, n = C(() => (t.facts ?? []).filter(Boolean).join(" · ")), r = C(() => t.hueIndex === void 0 ? void 0 : St(t.hueIndex));
1629
+ let t = e, n = C(() => (t.facts ?? []).filter(Boolean).join(" · ")), r = C(() => t.hueIndex === void 0 ? void 0 : Ct(t.hueIndex));
1610
1630
  return (t, i) => (R(), E("div", {
1611
1631
  "data-glim": "InstanceCard",
1612
1632
  "data-glim-title": e.name,
1613
1633
  class: P(["glim-card glim-instance", e.hueIndex !== void 0 && "glim-hue"]),
1614
1634
  style: F(r.value)
1615
1635
  }, [
1616
- D("div", fa, [t.$slots.logo ? (R(), E("span", pa, [V(t.$slots, "logo")])) : e.logo ? (R(), E("img", {
1636
+ D("div", ma, [t.$slots.logo ? (R(), E("span", ha, [V(t.$slots, "logo")])) : e.logo ? (R(), E("img", {
1617
1637
  key: 1,
1618
1638
  class: "glim-instance-mark",
1619
1639
  src: e.logo,
1620
1640
  alt: "",
1621
1641
  draggable: "false"
1622
- }, null, 8, ma)) : T("", !0), D("div", ha, [
1623
- D("div", ga, [D("h3", _a, W(e.name), 1), t.$slots.badges ? (R(), E("span", va, [V(t.$slots, "badges")])) : T("", !0)]),
1624
- e.eyebrow ? (R(), E("span", ya, W(e.eyebrow), 1)) : T("", !0),
1625
- n.value ? (R(), E("p", ba, W(n.value), 1)) : T("", !0),
1626
- e.figures?.length ? (R(), E("dl", xa, [(R(!0), E(S, null, B(e.figures, (e) => (R(), E("div", { key: e.label }, [D("dt", null, W(e.label), 1), D("dd", Sa, W(e.value), 1)]))), 128))])) : T("", !0),
1627
- t.$slots.actions && !t.$slots.default ? (R(), E("div", Ca, [V(t.$slots, "actions")])) : T("", !0)
1642
+ }, null, 8, ga)) : T("", !0), D("div", _a, [
1643
+ D("div", va, [D("h3", ya, W(e.name), 1), t.$slots.badges ? (R(), E("span", ba, [V(t.$slots, "badges")])) : T("", !0)]),
1644
+ e.eyebrow ? (R(), E("span", xa, W(e.eyebrow), 1)) : T("", !0),
1645
+ n.value ? (R(), E("p", Sa, W(n.value), 1)) : T("", !0),
1646
+ e.figures?.length ? (R(), E("dl", Ca, [(R(!0), E(S, null, B(e.figures, (e) => (R(), E("div", { key: e.label }, [D("dt", null, W(e.label), 1), D("dd", wa, W(e.value), 1)]))), 128))])) : T("", !0),
1647
+ t.$slots.actions && !t.$slots.default ? (R(), E("div", Ta, [V(t.$slots, "actions")])) : T("", !0)
1628
1648
  ])]),
1629
- t.$slots.default ? (R(), E("div", wa, [V(t.$slots, "default")])) : T("", !0),
1630
- t.$slots.actions && t.$slots.default ? (R(), E("div", Ta, [V(t.$slots, "actions")])) : T("", !0)
1631
- ], 14, da));
1649
+ t.$slots.default ? (R(), E("div", Ea, [V(t.$slots, "default")])) : T("", !0),
1650
+ t.$slots.actions && t.$slots.default ? (R(), E("div", Da, [V(t.$slots, "actions")])) : T("", !0)
1651
+ ], 14, pa));
1632
1652
  }
1633
- }), Da = {
1653
+ }), ka = {
1634
1654
  "data-glim": "PresenceBadges",
1635
1655
  style: { display: "contents" }
1636
- }, Oa = /* @__PURE__ */ j({
1656
+ }, Aa = /* @__PURE__ */ j({
1637
1657
  __name: "PresenceBadges",
1638
1658
  props: {
1639
1659
  instance: {},
@@ -1645,24 +1665,24 @@ var rr = ["aria-label", "aria-describedby"], Q = /* @__PURE__ */ j({
1645
1665
  checking: n.text.checking,
1646
1666
  away: n.text.away
1647
1667
  })[n.instance.presence];
1648
- return (n, i) => (R(), E("span", Da, [t.instance.relay ? (R(), w(e, { key: 0 }, {
1668
+ return (n, i) => (R(), E("span", ka, [t.instance.relay ? (R(), w(e, { key: 0 }, {
1649
1669
  default: Y(() => [k(W(t.text.viaRelay), 1)]),
1650
1670
  _: 1
1651
- })) : T("", !0), A(e, { tone: G(ln)(t.instance.presence) }, {
1671
+ })) : T("", !0), A(e, { tone: G(dn)(t.instance.presence) }, {
1652
1672
  default: Y(() => [k(W(r()), 1)]),
1653
1673
  _: 1
1654
1674
  }, 8, ["tone"])]));
1655
1675
  }
1656
1676
  });
1657
1677
  // src/fortressParts.ts
1658
- function ka(e) {
1659
- return e ? m(`device${e.charAt(0).toUpperCase()}${e.slice(1)}`) : void 0;
1678
+ function ja(e) {
1679
+ return e ? p(`device${e.charAt(0).toUpperCase()}${e.slice(1)}`) : void 0;
1660
1680
  }
1661
1681
  // src/FortressAppCard.vue?vue&type=script&setup=true&lang.ts
1662
- var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
1682
+ var Ma = { class: "glim-instance-rows" }, Na = ["data-instance"], Pa = {
1663
1683
  class: "glim-instance-device",
1664
1684
  "aria-hidden": "true"
1665
- }, Na = { class: "glim-instance-row-text" }, Pa = { class: "glim-instance-row-name" }, Fa = { class: "glim-instance-row-sub glim-num" }, Ia = { class: "glim-instance-row-end" }, La = /* @__PURE__ */ j({
1685
+ }, Fa = { class: "glim-instance-row-text" }, Ia = { class: "glim-instance-row-name" }, La = { class: "glim-instance-row-sub glim-num" }, Ra = { class: "glim-instance-row-end" }, za = /* @__PURE__ */ j({
1666
1686
  inheritAttrs: !1,
1667
1687
  __name: "FortressAppCard",
1668
1688
  props: {
@@ -1675,15 +1695,15 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
1675
1695
  removeKey: { default: "delete" }
1676
1696
  },
1677
1697
  setup(t) {
1678
- let n = t, r = C(() => Ze(n.app, n.text, n.lang)), i = C(() => r.value.rows.length === 0), a = (e) => ({
1698
+ let n = t, r = C(() => Qe(n.app, n.text, n.lang)), i = C(() => r.value.rows.length === 0), a = (e) => ({
1679
1699
  connected: n.text.connected,
1680
1700
  checking: n.text.checking,
1681
1701
  away: n.text.away
1682
- })[e.presence], o = (e) => ka(e.deviceKind), s = (e) => It(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);
1702
+ })[e.presence], o = (e) => ja(e.deviceKind), s = (e) => Lt(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);
1683
1703
  function d(e) {
1684
- e.doubt ? u.value = e : qt(n.app, e, n.onOpen);
1704
+ e.doubt ? u.value = e : Jt(n.app, e, n.onOpen);
1685
1705
  }
1686
- return (n, p) => (R(), E(S, null, [A(Ea, N(n.$attrs, {
1706
+ return (n, p) => (R(), E(S, null, [A(Oa, N(n.$attrs, {
1687
1707
  "data-glim": "FortressAppCard",
1688
1708
  "data-fortress-app": t.app.id,
1689
1709
  logo: t.app.logo,
@@ -1710,7 +1730,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
1710
1730
  default: Y(() => [k(W(r.value.needs), 1)]),
1711
1731
  _: 1
1712
1732
  })) : T("", !0),
1713
- A(Oa, {
1733
+ A(Aa, {
1714
1734
  instance: r.value.main,
1715
1735
  text: t.text
1716
1736
  }, null, 8, ["instance", "text"])
@@ -1718,15 +1738,15 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
1718
1738
  _: 2
1719
1739
  }, [i.value ? void 0 : {
1720
1740
  name: "default",
1721
- fn: Y(() => [D("ul", Aa, [(R(!0), E(S, null, B(r.value.rows, ({ instance: n, sub: r, open: i }) => (R(), E("li", {
1741
+ fn: Y(() => [D("ul", Ma, [(R(!0), E(S, null, B(r.value.rows, ({ instance: n, sub: r, open: i }) => (R(), E("li", {
1722
1742
  key: n.id,
1723
1743
  class: "glim-instance-row",
1724
1744
  "data-instance": n.id
1725
1745
  }, [
1726
- D("span", Ma, [o(n) ? (R(), w(H(o(n)), { key: 0 })) : T("", !0)]),
1727
- D("span", Na, [D("span", Pa, W(n.device), 1), D("span", Fa, W(r), 1)]),
1728
- D("span", Ia, [
1729
- A(e, { tone: G(ln)(n.presence) }, {
1746
+ D("span", Pa, [o(n) ? (R(), w(H(o(n)), { key: 0 })) : T("", !0)]),
1747
+ D("span", Fa, [D("span", Ia, W(n.device), 1), D("span", La, W(r), 1)]),
1748
+ D("span", Ra, [
1749
+ A(e, { tone: G(dn)(n.presence) }, {
1730
1750
  default: Y(() => [k(W(a(n)), 1)]),
1731
1751
  _: 2
1732
1752
  }, 1032, ["tone"]),
@@ -1762,7 +1782,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
1762
1782
  "onClick"
1763
1783
  ])) : T("", !0)
1764
1784
  ])
1765
- ], 8, ja))), 128))])]),
1785
+ ], 8, Na))), 128))])]),
1766
1786
  key: "0"
1767
1787
  }, l.value ? {
1768
1788
  name: "actions",
@@ -1793,12 +1813,12 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
1793
1813
  "eyebrow",
1794
1814
  "facts",
1795
1815
  "hue-index"
1796
- ]), u.value ? (R(), w(ua, {
1816
+ ]), u.value ? (R(), w(fa, {
1797
1817
  key: 0,
1798
1818
  app: t.app,
1799
1819
  instance: u.value,
1800
1820
  text: t.text,
1801
- "on-open": () => G(qt)(t.app, u.value, t.onOpen),
1821
+ "on-open": () => G(Jt)(t.app, u.value, t.onOpen),
1802
1822
  "on-close": () => u.value = null
1803
1823
  }, null, 8, [
1804
1824
  "app",
@@ -1808,14 +1828,14 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
1808
1828
  "on-close"
1809
1829
  ])) : T("", !0)], 64));
1810
1830
  }
1811
- }), Ra = [
1831
+ }), Ba = [
1812
1832
  "href",
1813
1833
  "data-sel-id",
1814
1834
  "aria-selected",
1815
1835
  "aria-current",
1816
1836
  "aria-describedby",
1817
1837
  "tabindex"
1818
- ], za = [
1838
+ ], Va = [
1819
1839
  "data-sel-id",
1820
1840
  "id",
1821
1841
  "role",
@@ -1828,7 +1848,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
1828
1848
  "aria-hidden",
1829
1849
  "disabled",
1830
1850
  "tabindex"
1831
- ], Ba = ["id"], Va = /* @__PURE__ */ j({
1851
+ ], Ha = ["id"], Ua = /* @__PURE__ */ j({
1832
1852
  __name: "SelectorSegment",
1833
1853
  props: {
1834
1854
  item: {},
@@ -1852,7 +1872,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
1852
1872
  },
1853
1873
  emits: ["select"],
1854
1874
  setup(e, { emit: i }) {
1855
- let a = e, o = i, s = C(() => Sn({
1875
+ let a = e, o = i, s = C(() => wn({
1856
1876
  strip: a.strip,
1857
1877
  orientation: a.orientation,
1858
1878
  size: a.size,
@@ -1902,7 +1922,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
1902
1922
  key: 1,
1903
1923
  "data-sel-label": "",
1904
1924
  class: P(s.value.labelClass)
1905
- }, W(e.item.label), 3))], 16, Ra)) : (R(), E(S, { key: 1 }, [A(G(r), N({
1925
+ }, W(e.item.label), 3))], 16, Ba)) : (R(), E(S, { key: 1 }, [A(G(r), N({
1906
1926
  on: u.value,
1907
1927
  show: G(c).show,
1908
1928
  hide: G(c).hide
@@ -1911,7 +1931,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
1911
1931
  ref: m,
1912
1932
  type: "button",
1913
1933
  "data-sel-id": e.item.id,
1914
- id: e.panelId && f.value ? G(Dn)(e.panelId, e.item.id) : void 0,
1934
+ id: e.panelId && f.value ? G(kn)(e.panelId, e.item.id) : void 0,
1915
1935
  role: e.strip.kind === "toggle" ? void 0 : e.strip.kind,
1916
1936
  "aria-selected": f.value ? e.on : void 0,
1917
1937
  "aria-controls": e.panelId && f.value && e.on ? e.panelId : void 0,
@@ -1933,7 +1953,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
1933
1953
  key: 1,
1934
1954
  "data-sel-label": "",
1935
1955
  class: P(s.value.labelClass)
1936
- }, W(e.item.label), 3))], 16, za)]),
1956
+ }, W(e.item.label), 3))], 16, Va)]),
1937
1957
  _: 1
1938
1958
  }, 16, [
1939
1959
  "on",
@@ -1943,16 +1963,16 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
1943
1963
  key: 0,
1944
1964
  id: G(l),
1945
1965
  hidden: ""
1946
- }, W(s.value.tip), 9, Ba)) : T("", !0)], 64)), A(t, { state: G(c) }, null, 8, ["state"])], 64));
1966
+ }, W(s.value.tip), 9, Ha)) : T("", !0)], 64)), A(t, { state: G(c) }, null, 8, ["state"])], 64));
1947
1967
  }
1948
- }), Ha = [
1968
+ }), Wa = [
1949
1969
  "role",
1950
1970
  "aria-label",
1951
1971
  "aria-orientation"
1952
- ], Ua = {
1972
+ ], Ga = {
1953
1973
  key: 0,
1954
1974
  class: "glim-sel-list"
1955
- }, Wa = /* @__PURE__ */ j({
1975
+ }, Ka = /* @__PURE__ */ j({
1956
1976
  __name: "Selector",
1957
1977
  props: {
1958
1978
  items: {},
@@ -1998,10 +2018,10 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
1998
2018
  setup(e, { emit: t }) {
1999
2019
  let n = e, r = t, i = C(() => n.modelValue);
2000
2020
  function a(e) {
2001
- let t = U(Ft(e));
2002
- return Te(Bn(e, () => t.value = Ft(e))), t;
2021
+ let t = U(It(e));
2022
+ return Ee(Hn(e, () => t.value = It(e))), t;
2003
2023
  }
2004
- let o = x(() => n.label), s = C(() => n.inline || n.label === void 0 && o.value !== void 0), c = l(wn(n.size, n.orientation)), u = a(Je), d = C(() => On({
2024
+ let o = x(() => n.label), s = C(() => n.inline || n.label === void 0 && o.value !== void 0), c = l(En(n.size, n.orientation)), u = a(Ye), d = C(() => An({
2005
2025
  mode: c.value,
2006
2026
  select: n.select === "many" ? "many" : "one",
2007
2027
  activation: n.activation,
@@ -2026,7 +2046,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2026
2046
  i && r(i);
2027
2047
  }, { flush: "post" });
2028
2048
  }
2029
- g(() => d.value.counted, (e) => d.value.counted ? ot(e) : void 0), g(() => [
2049
+ g(() => d.value.counted, (e) => d.value.counted ? st(e) : void 0), g(() => [
2030
2050
  n.orientation,
2031
2051
  d.value.pinWidth,
2032
2052
  n.fit,
@@ -2043,65 +2063,65 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2043
2063
  return;
2044
2064
  }
2045
2065
  let { pinWidth: t, canSqueeze: r, canList: i } = d.value;
2046
- return er(e, {
2066
+ return nr(e, {
2047
2067
  pinWidth: t,
2048
2068
  fit: n.fit,
2049
2069
  canSqueeze: r,
2050
2070
  canList: i
2051
2071
  }, (e) => p.value = e);
2052
2072
  });
2053
- let ee = C(() => Tn({
2073
+ let _ = C(() => Dn({
2054
2074
  layout: p.value,
2055
2075
  inline: s.value,
2056
2076
  fit: n.fit
2057
- })), _ = C(() => p.value?.fit === "list"), te = C(() => n.items.map((e, t) => ({
2077
+ })), v = C(() => p.value?.fit === "list"), ee = C(() => n.items.map((e, t) => ({
2058
2078
  value: String(e.id),
2059
2079
  label: e.label,
2060
2080
  glyph: e.glyph,
2061
- disabled: y.value[t]
2062
- }))), v = C(() => i.value === null ? null : String(i.value)), ne = C(() => n.select === "many"), re = (e) => ne.value ? (i.value ?? []).includes(e) : i.value === e, y = C(() => n.items.map((e) => n.disabled || !!e.disabled)), ie = C(() => bn(y.value, n.items.findIndex((e) => re(e.id))));
2063
- function ae(e) {
2081
+ disabled: b.value[t]
2082
+ }))), 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, b = C(() => n.items.map((e) => n.disabled || !!e.disabled)), re = C(() => Sn(b.value, n.items.findIndex((e) => ne(e.id))));
2083
+ function ie(e) {
2064
2084
  r("press", e);
2065
- let t = ne.value ? Kn(i.value ?? [], e, n.items.map((e) => e.id)) : e;
2085
+ let t = y.value ? Jn(i.value ?? [], e, n.items.map((e) => e.id)) : e;
2066
2086
  t !== i.value && r("update:modelValue", t);
2067
2087
  }
2068
- function oe(e) {
2088
+ function ae(e) {
2069
2089
  let t = n.items.find((t) => String(t.id) === e);
2070
- t && ae(t.id);
2090
+ t && ie(t.id);
2071
2091
  }
2072
- function se(e) {
2073
- if (_.value) return;
2092
+ function oe(e) {
2093
+ if (v.value) return;
2074
2094
  let t = e.target;
2075
2095
  if (n.orientation === "vertical" && e.key === " " && t.dataset.selId) {
2076
2096
  e.preventDefault(), t.click();
2077
2097
  return;
2078
2098
  }
2079
- let r = yn(f.value, e.key, n.orientation);
2099
+ let r = xn(f.value, e.key, n.orientation);
2080
2100
  if (!r) return;
2081
2101
  e.preventDefault();
2082
2102
  let i = n.items.find((e) => String(e.id) === r.dataset.selId);
2083
- d.value.autoSelect && i && ae(i.id);
2103
+ d.value.autoSelect && i && ie(i.id);
2084
2104
  }
2085
2105
  return (t, n) => (R(), E("div", {
2086
2106
  ref_key: "track",
2087
2107
  ref: f,
2088
2108
  "data-glim": "Selector",
2089
- role: _.value ? void 0 : d.value.role,
2090
- "aria-label": _.value ? void 0 : G(o),
2091
- "aria-orientation": _.value || d.value.role === "group" ? void 0 : e.orientation,
2092
- class: P([d.value.className, { "glim-sel--listed": _.value }]),
2093
- style: F(ee.value.track),
2094
- onKeydown: se
2095
- }, [(R(!0), E(S, null, B(e.items, (t, n) => (R(), w(Va, {
2109
+ role: v.value ? void 0 : d.value.role,
2110
+ "aria-label": v.value ? void 0 : G(o),
2111
+ "aria-orientation": v.value || d.value.role === "group" ? void 0 : e.orientation,
2112
+ class: P([d.value.className, { "glim-sel--listed": v.value }]),
2113
+ style: F(_.value.track),
2114
+ onKeydown: oe
2115
+ }, [(R(!0), E(S, null, B(e.items, (t, n) => (R(), w(Ua, {
2096
2116
  key: t.id,
2097
2117
  item: t,
2098
2118
  index: n,
2099
2119
  strip: d.value,
2100
- on: re(t.id),
2101
- disabled: y.value[n],
2102
- roved: n === ie.value,
2103
- listed: _.value,
2104
- share: e.orientation === "vertical" ? {} : ee.value.segment,
2120
+ on: ne(t.id),
2121
+ disabled: b.value[n],
2122
+ roved: n === re.value,
2123
+ listed: v.value,
2124
+ share: e.orientation === "vertical" ? {} : _.value.segment,
2105
2125
  squeezed: p.value?.fit === "squeezed",
2106
2126
  cut: !!p.value?.cut[n],
2107
2127
  orientation: e.orientation,
@@ -2112,7 +2132,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2112
2132
  hue: e.hue,
2113
2133
  "hue-offset": e.hueOffset,
2114
2134
  "panel-id": e.panelId,
2115
- onSelect: (e) => ae(t.id)
2135
+ onSelect: (e) => ie(t.id)
2116
2136
  }, null, 8, [
2117
2137
  "item",
2118
2138
  "index",
@@ -2133,34 +2153,34 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2133
2153
  "hue-offset",
2134
2154
  "panel-id",
2135
2155
  "onSelect"
2136
- ]))), 128)), _.value ? (R(), E("div", Ua, [A(ye, {
2137
- "model-value": v.value,
2156
+ ]))), 128)), v.value ? (R(), E("div", Ga, [A(be, {
2157
+ "model-value": te.value,
2138
2158
  label: G(o) ?? "",
2139
2159
  "hide-label": "",
2140
2160
  wrap: "",
2141
2161
  width: "fill",
2142
2162
  size: e.size === "sm" ? "row" : "field",
2143
- options: te.value,
2144
- disabled: y.value.every(Boolean),
2145
- "onUpdate:modelValue": oe
2163
+ options: ee.value,
2164
+ disabled: b.value.every(Boolean),
2165
+ "onUpdate:modelValue": ae
2146
2166
  }, null, 8, [
2147
2167
  "model-value",
2148
2168
  "label",
2149
2169
  "size",
2150
2170
  "options",
2151
2171
  "disabled"
2152
- ])])) : T("", !0)], 46, Ha));
2172
+ ])])) : T("", !0)], 46, Wa));
2153
2173
  }
2154
- }), Ga = {
2174
+ }), qa = {
2155
2175
  key: 0,
2156
2176
  class: "glim-toggle-label"
2157
- }, Ka = [
2177
+ }, Ja = [
2158
2178
  "aria-checked",
2159
2179
  "aria-label",
2160
2180
  "aria-disabled",
2161
2181
  "aria-describedby",
2162
2182
  "disabled"
2163
- ], qa = ["id"], Ja = /* @__PURE__ */ j({
2183
+ ], Ya = ["id"], Xa = /* @__PURE__ */ j({
2164
2184
  inheritAttrs: !1,
2165
2185
  __name: "Toggle",
2166
2186
  props: /*@__PURE__*/ M({
@@ -2184,9 +2204,9 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2184
2204
  emits: ["update:modelValue"],
2185
2205
  setup(e) {
2186
2206
  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;
2187
- Te(() => u?.());
2207
+ Ee(() => u?.());
2188
2208
  function d() {
2189
- r.refused ? (u?.(), u = kn(l.value)) : i.value = !i.value;
2209
+ r.refused ? (u?.(), u = jn(l.value)) : i.value = !i.value;
2190
2210
  }
2191
2211
  return (n, r) => (R(), E(S, null, [
2192
2212
  D("span", {
@@ -2195,7 +2215,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2195
2215
  "data-glim": "Toggle",
2196
2216
  class: P(["glim-toggle", n.$attrs.class]),
2197
2217
  style: F(n.$attrs.style)
2198
- }, [o.value ? (R(), E("span", Ga, W(e.label), 1)) : T("", !0), D("button", N({
2218
+ }, [o.value ? (R(), E("span", qa, W(e.label), 1)) : T("", !0), D("button", N({
2199
2219
  ...n.$attrs,
2200
2220
  class: void 0,
2201
2221
  style: void 0
@@ -2214,25 +2234,25 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2214
2234
  onMouseleave: r[1] ||= (...e) => G(s).hide && G(s).hide(...e),
2215
2235
  onFocus: r[2] ||= (...e) => G(s).showOnFocus && G(s).showOnFocus(...e),
2216
2236
  onBlur: r[3] ||= (...e) => G(s).hide && G(s).hide(...e)
2217
- }), [...r[4] ||= [D("span", { class: "glim-toggle-thumb" }, null, -1)]], 16, Ka)], 6),
2237
+ }), [...r[4] ||= [D("span", { class: "glim-toggle-thumb" }, null, -1)]], 16, Ja)], 6),
2218
2238
  e.refused ? (R(), E("span", {
2219
2239
  key: 0,
2220
2240
  id: G(c),
2221
2241
  class: "glim-toggle-refusal"
2222
- }, W(e.refused), 9, qa)) : T("", !0),
2242
+ }, W(e.refused), 9, Ya)) : T("", !0),
2223
2243
  A(t, { state: G(s) }, null, 8, ["state"])
2224
2244
  ], 64));
2225
2245
  }
2226
- }), Ya = {
2246
+ }), Za = {
2227
2247
  key: 0,
2228
2248
  class: "glim-fortress-sub"
2229
- }, Xa = { class: "glim-permissions" }, Za = ["data-permission"], Qa = {
2249
+ }, Qa = { class: "glim-permissions" }, $a = ["data-permission"], eo = {
2230
2250
  class: "glim-permission-pair",
2231
2251
  "aria-hidden": "true"
2232
- }, $a = ["src"], eo = { class: "glim-permission-to" }, to = ["src"], no = { class: "glim-permission-text" }, ro = { class: "glim-permission-title" }, io = {
2252
+ }, to = ["src"], no = { class: "glim-permission-to" }, ro = ["src"], io = { class: "glim-permission-text" }, ao = { class: "glim-permission-title" }, oo = {
2233
2253
  key: 0,
2234
2254
  class: "glim-fortress-sub"
2235
- }, ao = /* @__PURE__ */ j({
2255
+ }, so = /* @__PURE__ */ j({
2236
2256
  __name: "FortressPermissions",
2237
2257
  props: {
2238
2258
  text: {},
@@ -2244,7 +2264,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2244
2264
  hueIndex: {}
2245
2265
  },
2246
2266
  setup(e) {
2247
- let t = e, n = z("all"), r = C(() => Qt(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(() => [{
2267
+ let t = e, n = z("all"), r = C(() => $t(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(() => [{
2248
2268
  id: "all",
2249
2269
  label: `${t.text.all} ${t.permissions.length}`
2250
2270
  }, {
@@ -2259,15 +2279,15 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2259
2279
  }
2260
2280
  t.notify?.(n.error ?? t.text.failed, "fail");
2261
2281
  let r = document.querySelector(`[data-permission="${CSS.escape(e.id)}"] .glim-toggle`);
2262
- r && kn(r);
2282
+ r && jn(r);
2263
2283
  }
2264
- return (t, r) => (R(), w(or, {
2284
+ return (t, r) => (R(), w(cr, {
2265
2285
  "data-glim": "FortressPermissions",
2266
2286
  title: e.text.permissions,
2267
2287
  hint: e.text.permissionsAbout,
2268
2288
  "hue-index": e.hueIndex
2269
2289
  }, {
2270
- default: Y(() => [e.permissions.length === 0 ? (R(), E("p", Ya, W(e.text.noPermissions), 1)) : (R(), E(S, { key: 1 }, [i.value ? (R(), w(Wa, {
2290
+ default: Y(() => [e.permissions.length === 0 ? (R(), E("p", Za, W(e.text.noPermissions), 1)) : (R(), E(S, { key: 1 }, [i.value ? (R(), w(Ka, {
2271
2291
  key: 0,
2272
2292
  modelValue: n.value,
2273
2293
  "onUpdate:modelValue": r[0] ||= (e) => n.value = e,
@@ -2279,35 +2299,35 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2279
2299
  "modelValue",
2280
2300
  "label",
2281
2301
  "items"
2282
- ])) : T("", !0), D("ul", Xa, [(R(!0), E(S, null, B(a.value, (e) => (R(), E("li", {
2302
+ ])) : T("", !0), D("ul", Qa, [(R(!0), E(S, null, B(a.value, (e) => (R(), E("li", {
2283
2303
  key: e.id,
2284
2304
  class: P(["glim-permission", e.on && "glim-permission--on"]),
2285
2305
  "data-permission": e.id
2286
2306
  }, [
2287
- D("span", Qa, [
2307
+ D("span", eo, [
2288
2308
  s(e.from) ? (R(), E("img", {
2289
2309
  key: 0,
2290
2310
  src: s(e.from),
2291
2311
  alt: "",
2292
2312
  draggable: "false"
2293
- }, null, 8, $a)) : T("", !0),
2294
- A(G(b), {
2295
- mark: G(Ge).expand,
2313
+ }, null, 8, to)) : T("", !0),
2314
+ A(G(m), {
2315
+ mark: G(Ke).expand,
2296
2316
  class: "glim-permission-arrow"
2297
2317
  }, null, 8, ["mark"]),
2298
- D("span", eo, [(R(!0), E(S, null, B(e.to, (e) => (R(), E(S, { key: e }, [s(e) ? (R(), E("img", {
2318
+ D("span", no, [(R(!0), E(S, null, B(e.to, (e) => (R(), E(S, { key: e }, [s(e) ? (R(), E("img", {
2299
2319
  key: 0,
2300
2320
  src: s(e),
2301
2321
  alt: "",
2302
2322
  draggable: "false"
2303
- }, null, 8, to)) : T("", !0)], 64))), 128))])
2323
+ }, null, 8, ro)) : T("", !0)], 64))), 128))])
2304
2324
  ]),
2305
- D("span", no, [
2306
- D("span", ro, W(e.title), 1),
2307
- e.detail ? (R(), E("span", io, W(e.detail), 1)) : T("", !0),
2325
+ D("span", io, [
2326
+ D("span", ao, W(e.title), 1),
2327
+ e.detail ? (R(), E("span", oo, W(e.detail), 1)) : T("", !0),
2308
2328
  V(t.$slots, "extra", { permission: e })
2309
2329
  ]),
2310
- A(Ja, {
2330
+ A(Xa, {
2311
2331
  "model-value": e.on,
2312
2332
  label: e.title,
2313
2333
  "hide-label": "",
@@ -2317,7 +2337,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2317
2337
  "label",
2318
2338
  "onUpdate:modelValue"
2319
2339
  ])
2320
- ], 10, Za))), 128))])], 64))]),
2340
+ ], 10, $a))), 128))])], 64))]),
2321
2341
  _: 3
2322
2342
  }, 8, [
2323
2343
  "title",
@@ -2325,13 +2345,13 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2325
2345
  "hue-index"
2326
2346
  ]));
2327
2347
  }
2328
- }), oo = [
2348
+ }), co = [
2329
2349
  "aria-label",
2330
2350
  "aria-invalid",
2331
2351
  "aria-describedby",
2332
2352
  "disabled",
2333
2353
  "type"
2334
- ], so = /* @__PURE__ */ j({
2354
+ ], lo = /* @__PURE__ */ j({
2335
2355
  inheritAttrs: !1,
2336
2356
  __name: "PasswordField",
2337
2357
  props: /*@__PURE__*/ M({
@@ -2352,7 +2372,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2352
2372
  }),
2353
2373
  emits: ["update:modelValue"],
2354
2374
  setup(e, { expose: t }) {
2355
- let n = e, r = q(e, "modelValue"), i = z(!1), a = je(), o = x(() => a["aria-label"]), s = C(() => ft(n.width)), c = K(), l = C(() => dt(n.error, a.id ?? c, a["aria-describedby"])), u = U(null);
2375
+ let n = e, r = q(e, "modelValue"), i = z(!1), a = Me(), o = x(() => a["aria-label"]), s = C(() => pt(n.width)), c = K(), l = C(() => ft(n.error, a.id ?? c, a["aria-describedby"])), u = U(null);
2356
2376
  return t({ input: u }), (t, n) => (R(), E(S, null, [D("span", {
2357
2377
  "data-glim": "PasswordField",
2358
2378
  class: P([
@@ -2361,7 +2381,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2361
2381
  t.$attrs.class
2362
2382
  ]),
2363
2383
  style: F(t.$attrs.style)
2364
- }, [Le(D("input", N({
2384
+ }, [Re(D("input", N({
2365
2385
  ref_key: "input",
2366
2386
  ref: u,
2367
2387
  "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
@@ -2378,15 +2398,15 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2378
2398
  disabled: e.disabled,
2379
2399
  type: i.value ? "text" : "password",
2380
2400
  class: "glim-input"
2381
- }), null, 16, oo), [[Ne, r.value]]), A(he, N(e.eyeAttrs, {
2401
+ }), null, 16, co), [[Pe, r.value]]), A(ge, N(e.eyeAttrs, {
2382
2402
  tip: i.value ? e.text.hide : e.text.show,
2383
2403
  class: "glim-secret-eye",
2384
2404
  disabled: e.disabled,
2385
2405
  onClick: n[1] ||= (e) => i.value = !i.value
2386
2406
  }), {
2387
- default: Y(() => [(R(), w(H(i.value ? G(ie) : G(_))))]),
2407
+ default: Y(() => [(R(), w(H(i.value ? G(re) : G(v))))]),
2388
2408
  _: 1
2389
- }, 16, ["tip", "disabled"])], 6), l.value.errorId ? (R(), w(Xi, {
2409
+ }, 16, ["tip", "disabled"])], 6), l.value.errorId ? (R(), w(Qi, {
2390
2410
  key: 0,
2391
2411
  id: l.value.errorId
2392
2412
  }, {
@@ -2394,67 +2414,67 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2394
2414
  _: 1
2395
2415
  }, 8, ["id"])) : T("", !0)], 64));
2396
2416
  }
2397
- }), co = { class: "glim-phrase-fields" }, lo = { class: "glim-phrase-number glim-num" }, uo = [
2417
+ }), uo = { class: "glim-phrase-fields" }, fo = { class: "glim-phrase-number glim-num" }, po = [
2398
2418
  "data-word",
2399
2419
  "value",
2400
2420
  "aria-label",
2401
2421
  "onInput"
2402
- ], fo = { class: "glim-fortress-sub" }, po = {
2422
+ ], mo = { class: "glim-fortress-sub" }, ho = {
2403
2423
  key: 0,
2404
2424
  class: "glim-fortress-note",
2405
2425
  "data-fortress": "moves"
2406
- }, mo = {
2426
+ }, go = {
2407
2427
  key: 1,
2408
2428
  class: "glim-fortress-error",
2409
2429
  role: "alert"
2410
- }, ho = {
2430
+ }, _o = {
2411
2431
  key: 1,
2412
2432
  class: "glim-fortress-result"
2413
- }, go = {
2433
+ }, vo = {
2414
2434
  class: "glim-fortress-result-mark",
2415
2435
  "aria-hidden": "true"
2416
- }, _o = { class: "glim-fortress-text" }, vo = { class: "glim-fortress-result-title" }, yo = { class: "glim-fortress-sub" }, bo = {
2436
+ }, yo = { class: "glim-fortress-text" }, bo = { class: "glim-fortress-result-title" }, xo = { class: "glim-fortress-sub" }, So = {
2417
2437
  key: 2,
2418
2438
  class: "glim-fortress-text"
2419
- }, xo = { class: "glim-fortress-sub" }, So = {
2439
+ }, Co = { class: "glim-fortress-sub" }, wo = {
2420
2440
  key: 0,
2421
2441
  class: "glim-fortress-error",
2422
2442
  role: "alert"
2423
- }, Co = {
2443
+ }, To = {
2424
2444
  key: 3,
2425
2445
  class: "glim-fortress-text"
2426
- }, wo = { class: "glim-fortress-sub" }, To = {
2446
+ }, Eo = { class: "glim-fortress-sub" }, Do = {
2427
2447
  key: 0,
2428
2448
  class: "glim-fortress-error",
2429
2449
  role: "alert"
2430
- }, Eo = {
2450
+ }, Oo = {
2431
2451
  key: 4,
2432
2452
  class: "glim-fortress-text"
2433
- }, Do = {
2453
+ }, ko = {
2434
2454
  key: 0,
2435
2455
  class: "glim-fortress-error",
2436
2456
  role: "alert"
2437
- }, Oo = {
2457
+ }, Ao = {
2438
2458
  key: 0,
2439
2459
  class: "glim-fortress-error",
2440
2460
  role: "alert"
2441
- }, ko = {
2461
+ }, jo = {
2442
2462
  key: 6,
2443
2463
  class: "glim-fortress-text"
2444
- }, Ao = { class: "glim-fortress-sub" }, jo = {
2464
+ }, Mo = { class: "glim-fortress-sub" }, No = {
2445
2465
  key: 0,
2446
2466
  class: "glim-fortress-error",
2447
2467
  role: "alert"
2448
- }, Mo = {
2468
+ }, Po = {
2449
2469
  key: 7,
2450
2470
  class: "glim-fortress-text"
2451
- }, No = { class: "glim-phrase-show" }, Po = {
2471
+ }, Fo = { class: "glim-phrase-show" }, Io = {
2452
2472
  class: "glim-phrase-words",
2453
2473
  "data-fortress": "words"
2454
- }, Fo = { class: "glim-phrase-number glim-num" }, Io = ["aria-label", "viewBox"], Lo = ["width", "height"], Ro = ["d"], zo = { class: "glim-phrase-scan" }, Bo = {
2474
+ }, Lo = { class: "glim-phrase-number glim-num" }, Ro = ["aria-label", "viewBox"], zo = ["width", "height"], Bo = ["d"], Vo = { class: "glim-phrase-scan" }, Ho = {
2455
2475
  key: 0,
2456
2476
  class: "glim-fortress-sub"
2457
- }, Vo = /* @__PURE__ */ j({
2477
+ }, Uo = /* @__PURE__ */ j({
2458
2478
  __name: "FortressWindow",
2459
2479
  props: {
2460
2480
  flow: {},
@@ -2469,20 +2489,20 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2469
2489
  },
2470
2490
  setup(e) {
2471
2491
  let t = e, n = U(null), r = z(!1), i;
2472
- Te(() => clearTimeout(i));
2473
- let a = C(() => t.state.window), o = C(() => t.pairedWith?.length ? At(t.lang, t.pairedWith) : null), s = C(() => ({
2492
+ Ee(() => clearTimeout(i));
2493
+ let a = C(() => t.state.window), o = C(() => t.pairedWith?.length ? jt(t.lang, t.pairedWith) : null), s = C(() => ({
2474
2494
  cancel: t.text.cancel,
2475
2495
  close: t.text.close
2476
2496
  })), c = C(() => t.state.busy !== null), l;
2477
- Te(() => l?.()), J(() => t.state.refusal, (e) => {
2497
+ Ee(() => l?.()), J(() => t.state.refusal, (e) => {
2478
2498
  let t = e && n.value?.card?.querySelector(`[data-fortress="${e.button}"]`);
2479
- t && (l = kn(t));
2499
+ t && (l = jn(t));
2480
2500
  }), J(() => a.value.kind === "join" ? a.value.focus : -1, async (e) => {
2481
- await we(), e >= 0 && n.value?.card?.querySelector(`[data-word="${e}"]`)?.focus();
2501
+ await Te(), e >= 0 && n.value?.card?.querySelector(`[data-word="${e}"]`)?.focus();
2482
2502
  }), J(() => a.value.kind, async () => {
2483
- await we();
2503
+ await Te();
2484
2504
  let e = n.value?.card;
2485
- e && tr(e)?.focus();
2505
+ e && rr(e)?.focus();
2486
2506
  });
2487
2507
  function u(e, t, n, r, i = !1) {
2488
2508
  return {
@@ -2499,35 +2519,35 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2499
2519
  label: t.text.copy,
2500
2520
  labelKey: t.keys.copy,
2501
2521
  attrs: { "data-fortress": "copy" },
2502
- onClick: () => (at(e.join(" ")).then((e) => {
2503
- r.value = e, clearTimeout(i), i = setTimeout(() => r.value = !1, Ve);
2522
+ onClick: () => (ot(e.join(" ")).then((e) => {
2523
+ r.value = e, clearTimeout(i), i = setTimeout(() => r.value = !1, He);
2504
2524
  }), !1)
2505
2525
  };
2506
2526
  }
2507
2527
  let f = C(() => {
2508
2528
  let e = a.value;
2509
2529
  if (e.kind !== "phrase" && e.kind !== "changed") return null;
2510
- let n = fn(t.phraseQr ? t.phraseQr(e.words) : e.words.join(" "));
2530
+ let n = mn(t.phraseQr ? t.phraseQr(e.words) : e.words.join(" "));
2511
2531
  return {
2512
2532
  ...n,
2513
2533
  side: n.size + 8
2514
2534
  };
2515
- }), p = C(() => ({
2535
+ }), h = C(() => ({
2516
2536
  label: t.text.close,
2517
2537
  labelKey: "common.close",
2518
2538
  glyph: g,
2519
2539
  wayOut: !0
2520
- })), h = C(() => {
2540
+ })), _ = C(() => {
2521
2541
  let e = t.text, n = a.value, r = t.flow, i = t.keys;
2522
2542
  switch (n.kind) {
2523
2543
  case "join": return {
2524
2544
  title: e.joinTitle,
2525
2545
  size: "wide",
2526
- actions: [u("join", r.join, e.join, i.join, !$t(n.words))]
2546
+ actions: [u("join", r.join, e.join, i.join, !en(n.words))]
2527
2547
  };
2528
2548
  case "joined": return {
2529
2549
  title: e.joinTitle,
2530
- actions: [p.value]
2550
+ actions: [h.value]
2531
2551
  };
2532
2552
  case "leave": return {
2533
2553
  title: e.leaveTitle,
@@ -2569,12 +2589,12 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2569
2589
  actions: []
2570
2590
  };
2571
2591
  });
2572
- return (t, i) => (R(), w(ca, {
2592
+ return (t, i) => (R(), w(ua, {
2573
2593
  ref_key: "win",
2574
2594
  ref: n,
2575
- title: h.value.title,
2576
- size: h.value.size,
2577
- actions: h.value.actions,
2595
+ title: _.value.title,
2596
+ size: _.value.size,
2597
+ actions: _.value.actions,
2578
2598
  start: r.value ? e.text.copied : void 0,
2579
2599
  text: s.value,
2580
2600
  onClose: i[3] ||= (t) => e.flow.close()
@@ -2585,10 +2605,10 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2585
2605
  onSubmit: i[0] ||= X((t) => e.flow.join(), ["prevent"])
2586
2606
  }, [
2587
2607
  D("p", null, W(e.text.about), 1),
2588
- D("div", co, [(R(!0), E(S, null, B(a.value.words, (t, n) => (R(), E("label", {
2608
+ D("div", uo, [(R(!0), E(S, null, B(a.value.words, (t, n) => (R(), E("label", {
2589
2609
  key: n,
2590
2610
  class: "glim-phrase-field"
2591
- }, [D("span", lo, W(n + 1), 1), D("input", {
2611
+ }, [D("span", fo, W(n + 1), 1), D("input", {
2592
2612
  class: "glim-input",
2593
2613
  "data-word": n,
2594
2614
  value: t,
@@ -2598,32 +2618,32 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2598
2618
  autocorrect: "off",
2599
2619
  spellcheck: "false",
2600
2620
  onInput: (t) => e.flow.enter(n, t.target.value)
2601
- }, null, 40, uo)]))), 128))]),
2621
+ }, null, 40, po)]))), 128))]),
2602
2622
  i[4] ||= D("button", {
2603
2623
  type: "submit",
2604
2624
  hidden: ""
2605
2625
  }, null, -1),
2606
- D("p", fo, W(e.text.phraseWhere), 1),
2607
- o.value ? (R(), E("p", po, [G(m)("info") ? (R(), w(H(G(m)("info")), { key: 0 })) : T("", !0), D("span", null, W(G(Z)(e.text.moves, {
2626
+ D("p", mo, W(e.text.phraseWhere), 1),
2627
+ o.value ? (R(), E("p", ho, [G(p)("info") ? (R(), w(H(G(p)("info")), { key: 0 })) : T("", !0), D("span", null, W(G(Z)(e.text.moves, {
2608
2628
  app: e.app.name,
2609
2629
  devices: o.value
2610
2630
  })), 1)])) : T("", !0),
2611
- e.state.error ? (R(), E("p", mo, W(e.state.error), 1)) : T("", !0)
2612
- ], 32)) : a.value.kind === "joined" ? (R(), E("div", ho, [D("span", go, [A(G(b), { mark: G(Ge).check }, null, 8, ["mark"])]), D("div", _o, [D("p", vo, W(G(Z)(e.text.joinedTitle, { app: e.app.name })), 1), D("p", yo, W(o.value ? `${G(Z)(e.text.joinedMoved, { devices: o.value })} ` : "") + W(e.text.joinedNext), 1)])])) : a.value.kind === "leave" ? (R(), E("div", bo, [
2631
+ e.state.error ? (R(), E("p", go, W(e.state.error), 1)) : T("", !0)
2632
+ ], 32)) : a.value.kind === "joined" ? (R(), E("div", _o, [D("span", vo, [A(G(m), { mark: G(Ke).check }, null, 8, ["mark"])]), D("div", yo, [D("p", bo, 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", So, [
2613
2633
  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),
2614
- D("p", xo, W(e.text.leaveBack), 1),
2615
- e.state.error ? (R(), E("p", So, W(e.state.error), 1)) : T("", !0)
2616
- ])) : a.value.kind === "remove" ? (R(), E("div", Co, [
2634
+ D("p", Co, W(e.text.leaveBack), 1),
2635
+ e.state.error ? (R(), E("p", wo, W(e.state.error), 1)) : T("", !0)
2636
+ ])) : a.value.kind === "remove" ? (R(), E("div", To, [
2617
2637
  D("p", null, W(G(Z)(e.text.removeBody, { device: a.value.device })), 1),
2618
- D("p", wo, W(e.text.removeBack), 1),
2619
- e.state.error ? (R(), E("p", To, W(e.state.error), 1)) : T("", !0)
2620
- ])) : a.value.kind === "removed" ? (R(), E("div", Eo, [D("p", null, W(G(Z)(e.text.removedBody, { device: a.value.device })), 1), e.state.error ? (R(), E("p", Do, W(e.state.error), 1)) : T("", !0)])) : a.value.kind === "phrase" && a.value.step === "password" ? (R(), E("form", {
2638
+ D("p", Eo, W(e.text.removeBack), 1),
2639
+ e.state.error ? (R(), E("p", Do, W(e.state.error), 1)) : T("", !0)
2640
+ ])) : a.value.kind === "removed" ? (R(), E("div", Oo, [D("p", null, W(G(Z)(e.text.removedBody, { device: a.value.device })), 1), e.state.error ? (R(), E("p", ko, W(e.state.error), 1)) : T("", !0)])) : a.value.kind === "phrase" && a.value.step === "password" ? (R(), E("form", {
2621
2641
  key: 5,
2622
2642
  class: "glim-fortress-text",
2623
2643
  onSubmit: i[2] ||= X((t) => e.flow.unlock(), ["prevent"])
2624
2644
  }, [
2625
2645
  D("p", null, W(G(Z)(e.text.phrasePassword, { app: e.app.name })), 1),
2626
- A(so, {
2646
+ A(lo, {
2627
2647
  "model-value": a.value.password,
2628
2648
  "aria-label": G(Z)(e.text.password, { app: e.app.name }),
2629
2649
  placeholder: G(Z)(e.text.password, { app: e.app.name }),
@@ -2638,15 +2658,15 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2638
2658
  "placeholder",
2639
2659
  "text"
2640
2660
  ]),
2641
- e.state.error ? (R(), E("p", Oo, W(e.state.error), 1)) : T("", !0)
2642
- ], 32)) : a.value.kind === "change" ? (R(), E("div", ko, [
2661
+ e.state.error ? (R(), E("p", Ao, W(e.state.error), 1)) : T("", !0)
2662
+ ], 32)) : a.value.kind === "change" ? (R(), E("div", jo, [
2643
2663
  D("p", null, W(e.text.changeBody), 1),
2644
- D("p", Ao, W(e.text.changeAway), 1),
2645
- e.state.error ? (R(), E("p", jo, W(e.state.error), 1)) : T("", !0)
2646
- ])) : a.value.kind === "phrase" || a.value.kind === "changed" ? (R(), E("div", Mo, [
2664
+ D("p", Mo, W(e.text.changeAway), 1),
2665
+ e.state.error ? (R(), E("p", No, W(e.state.error), 1)) : T("", !0)
2666
+ ])) : a.value.kind === "phrase" || a.value.kind === "changed" ? (R(), E("div", Po, [
2647
2667
  D("p", null, W(e.text.phraseBody), 1),
2648
- D("div", No, [
2649
- D("ol", Po, [(R(!0), E(S, null, B(a.value.words, (e, t) => (R(), E("li", { key: t }, [D("span", Fo, W(t + 1), 1), k(W(e), 1)]))), 128))]),
2668
+ D("div", Fo, [
2669
+ D("ol", Io, [(R(!0), E(S, null, B(a.value.words, (e, t) => (R(), E("li", { key: t }, [D("span", Lo, W(t + 1), 1), k(W(e), 1)]))), 128))]),
2650
2670
  f.value ? (R(), E("svg", {
2651
2671
  key: 0,
2652
2672
  class: "glim-phrase-qr",
@@ -2661,13 +2681,13 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2661
2681
  width: f.value.side,
2662
2682
  height: f.value.side,
2663
2683
  fill: "#ffffff"
2664
- }, null, 8, Lo), D("path", {
2684
+ }, null, 8, zo), D("path", {
2665
2685
  d: f.value.path,
2666
2686
  fill: "#161616"
2667
- }, null, 8, Ro)], 8, Io)) : T("", !0),
2668
- D("p", zo, W(e.text.scanHint), 1)
2687
+ }, null, 8, Bo)], 8, Ro)) : T("", !0),
2688
+ D("p", Vo, W(e.text.scanHint), 1)
2669
2689
  ]),
2670
- a.value.kind === "changed" && a.value.left.length ? (R(), E("p", Bo, W(G(Z)(e.text.changedLeft, { devices: G(At)(e.lang, a.value.left) })), 1)) : T("", !0)
2690
+ a.value.kind === "changed" && a.value.left.length ? (R(), E("p", Ho, W(G(Z)(e.text.changedLeft, { devices: G(jt)(e.lang, a.value.left) })), 1)) : T("", !0)
2671
2691
  ])) : T("", !0)]),
2672
2692
  _: 1
2673
2693
  }, 8, [
@@ -2678,25 +2698,25 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2678
2698
  "text"
2679
2699
  ]));
2680
2700
  }
2681
- }), Ho = {
2701
+ }), Wo = {
2682
2702
  "data-glim": "Fortress",
2683
2703
  class: "glim-fortress"
2684
- }, Uo = { class: "glim-fortress-grid" }, Wo = {
2704
+ }, Go = { class: "glim-fortress-grid" }, Ko = {
2685
2705
  key: 0,
2686
2706
  class: "glim-card glim-instance glim-instance--out",
2687
2707
  "data-fortress": "out"
2688
- }, Go = { class: "glim-instance-title" }, Ko = { class: "glim-instance-hint" }, qo = {
2708
+ }, qo = { class: "glim-instance-title" }, Jo = { class: "glim-instance-hint" }, Yo = {
2689
2709
  key: 0,
2690
2710
  class: "glim-instance-found"
2691
- }, Jo = ["src"], Yo = { class: "glim-fortress-switch-text" }, Xo = { class: "glim-fortress-switch-name" }, Zo = { class: "glim-fortress-sub" }, Qo = {
2711
+ }, Xo = ["src"], Zo = { class: "glim-fortress-switch-text" }, Qo = { class: "glim-fortress-switch-name" }, $o = { class: "glim-fortress-sub" }, es = {
2692
2712
  key: 1,
2693
2713
  class: "glim-fortress-removed",
2694
2714
  "data-fortress": "removed",
2695
2715
  role: "status"
2696
- }, $o = { class: "glim-fortress-grid" }, es = {
2716
+ }, ts = { class: "glim-fortress-grid" }, ns = {
2697
2717
  key: 3,
2698
2718
  class: "glim-fortress-actions"
2699
- }, ts = /* @__PURE__ */ j({
2719
+ }, rs = /* @__PURE__ */ j({
2700
2720
  __name: "Fortress",
2701
2721
  props: {
2702
2722
  text: {},
@@ -2734,10 +2754,10 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2734
2754
  },
2735
2755
  emits: ["update:showOthers"],
2736
2756
  setup(e, { emit: t }) {
2737
- let n = e, r = t, i = st(() => ({
2757
+ let n = e, r = t, i = ct(() => ({
2738
2758
  ...n,
2739
2759
  failed: n.text.failed,
2740
- joinRefusal: (e) => Et(n.text, e)
2760
+ joinRefusal: (e) => Dt(n.text, e)
2741
2761
  })), a = U(i.state()), o = i.subscribe(() => a.value = i.state());
2742
2762
  I(o);
2743
2763
  let s = C(() => ({
@@ -2750,20 +2770,20 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2750
2770
  unlock: "unlock",
2751
2771
  copy: "copy",
2752
2772
  ...n.labelKeys
2753
- })), c = z(zn()), l = C(() => n.showOthers ?? c.value);
2773
+ })), c = z(Vn()), l = C(() => n.showOthers ?? c.value);
2754
2774
  function u(e) {
2755
- r("update:showOthers", e), n.showOthers === void 0 && (Rn(e), c.value = e);
2775
+ r("update:showOthers", e), n.showOthers === void 0 && (Bn(e), c.value = e);
2756
2776
  }
2757
- let d = C(() => Z(n.text.removedNote, { devices: At(n.lang, n.removed) })), p = C(() => Xt(n.text, n.lang, n.apps));
2758
- return (t, n) => (R(), E("div", Ho, [
2759
- D("div", Uo, [V(t.$slots, "default", { remove: G(i).openRemove }), e.joined ? T("", !0) : (R(), E("div", Wo, [
2760
- D("h3", Go, W(e.removedHere ? e.text.removedHereTitle : e.text.outTitle), 1),
2761
- D("p", Ko, W(G(Z)(e.removedHere ? e.text.removedHereHint : e.text.outHint, { app: e.app.name })), 1),
2762
- e.found ? (R(), E("p", qo, [e.found.logo ? (R(), E("img", {
2777
+ let d = C(() => Z(n.text.removedNote, { devices: jt(n.lang, n.removed) })), m = C(() => Zt(n.text, n.lang, n.apps));
2778
+ return (t, n) => (R(), E("div", Wo, [
2779
+ D("div", Go, [V(t.$slots, "default", { remove: G(i).openRemove }), e.joined ? T("", !0) : (R(), E("div", Ko, [
2780
+ D("h3", qo, W(e.removedHere ? e.text.removedHereTitle : e.text.outTitle), 1),
2781
+ D("p", Jo, W(G(Z)(e.removedHere ? e.text.removedHereHint : e.text.outHint, { app: e.app.name })), 1),
2782
+ e.found ? (R(), E("p", Yo, [e.found.logo ? (R(), E("img", {
2763
2783
  key: 0,
2764
2784
  src: e.found.logo,
2765
2785
  alt: ""
2766
- }, null, 8, Jo)) : T("", !0), D("span", null, W(G(Z)(e.text.found, {
2786
+ }, null, 8, Xo)) : T("", !0), D("span", null, W(G(Z)(e.text.found, {
2767
2787
  app: e.found.app,
2768
2788
  device: e.found.device
2769
2789
  })), 1)])) : T("", !0)
@@ -2771,16 +2791,16 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2771
2791
  e.joined && !e.hideSwitch ? (R(), E("div", {
2772
2792
  key: 0,
2773
2793
  class: "glim-card glim-fortress-switch glim-hue",
2774
- style: F(G(St)(e.hueStart))
2775
- }, [D("span", Yo, [D("span", Xo, [k(W(e.text.showOthers), 1), A(Q, { tip: e.text.about }, null, 8, ["tip"])]), D("span", Zo, W(p.value), 1)]), A(Ja, {
2794
+ style: F(G(Ct)(e.hueStart))
2795
+ }, [D("span", Zo, [D("span", Qo, [k(W(e.text.showOthers), 1), A(Q, { tip: e.text.about }, null, 8, ["tip"])]), D("span", $o, W(m.value), 1)]), A(Xa, {
2776
2796
  "model-value": l.value,
2777
2797
  label: e.text.showOthers,
2778
2798
  "hide-label": "",
2779
2799
  "data-fortress": "others",
2780
2800
  "onUpdate:modelValue": u
2781
2801
  }, null, 8, ["model-value", "label"])], 4)) : T("", !0),
2782
- e.joined && e.removed.length ? (R(), E("div", Qo, [
2783
- G(m)("info") ? (R(), w(H(G(m)("info")), { key: 0 })) : T("", !0),
2802
+ e.joined && e.removed.length ? (R(), E("div", es, [
2803
+ G(p)("info") ? (R(), w(H(G(p)("info")), { key: 0 })) : T("", !0),
2784
2804
  D("span", null, W(d.value), 1),
2785
2805
  e.onChangePhrase ? (R(), w(f, {
2786
2806
  key: 1,
@@ -2791,11 +2811,11 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2791
2811
  onClick: n[0] ||= (e) => G(i).openChange()
2792
2812
  }, null, 8, ["label", "label-key"])) : T("", !0)
2793
2813
  ])) : T("", !0),
2794
- e.joined && l.value ? (R(), E(S, { key: 2 }, [D("div", $o, [(R(!0), E(S, null, B(e.apps, (n, r) => (R(), E(S, { key: n.id }, [t.$slots.app ? V(t.$slots, "app", {
2814
+ e.joined && l.value ? (R(), E(S, { key: 2 }, [D("div", ts, [(R(!0), E(S, null, B(e.apps, (n, r) => (R(), E(S, { key: n.id }, [t.$slots.app ? V(t.$slots, "app", {
2795
2815
  app: n,
2796
2816
  hueIndex: e.hueStart + 1 + r,
2797
2817
  remove: e.onRemove && G(i).openRemove
2798
- }, void 0, void 0, 0) : (R(), w(La, {
2818
+ }, void 0, void 0, 0) : (R(), w(za, {
2799
2819
  key: 1,
2800
2820
  app: n,
2801
2821
  text: e.text,
@@ -2812,7 +2832,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2812
2832
  "on-open",
2813
2833
  "on-remove",
2814
2834
  "remove-key"
2815
- ]))], 64))), 128))]), A(ao, {
2835
+ ]))], 64))), 128))]), A(so, {
2816
2836
  text: e.text,
2817
2837
  app: e.app,
2818
2838
  apps: [e.app, ...e.apps],
@@ -2832,7 +2852,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2832
2852
  "notify",
2833
2853
  "hue-index"
2834
2854
  ])], 64)) : T("", !0),
2835
- !e.joined || e.onShowPhrase ? (R(), E("div", es, [e.joined ? (R(), w(f, {
2855
+ !e.joined || e.onShowPhrase ? (R(), E("div", ns, [e.joined ? (R(), w(f, {
2836
2856
  key: 0,
2837
2857
  label: e.text.showPhrase,
2838
2858
  "label-key": s.value.showPhrase,
@@ -2854,7 +2874,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2854
2874
  "data-fortress": "open-join",
2855
2875
  onClick: n[2] ||= (e) => G(i).openJoin()
2856
2876
  }, null, 8, ["label", "label-key"]))])) : T("", !0),
2857
- a.value.window ? (R(), w(Vo, {
2877
+ a.value.window ? (R(), w(Uo, {
2858
2878
  key: 4,
2859
2879
  flow: G(i),
2860
2880
  state: a.value,
@@ -2876,7 +2896,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2876
2896
  ])) : T("", !0)
2877
2897
  ]));
2878
2898
  }
2879
- }), ns = /* @__PURE__ */ j({
2899
+ }), is = /* @__PURE__ */ j({
2880
2900
  __name: "FortressPairing",
2881
2901
  props: {
2882
2902
  text: {},
@@ -2893,7 +2913,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2893
2913
  hueIndex: {}
2894
2914
  },
2895
2915
  setup(e) {
2896
- let t = e, n = st(() => ({
2916
+ let t = e, n = ct(() => ({
2897
2917
  ...t,
2898
2918
  failed: t.text.failed
2899
2919
  })), r = U(n.state()), i = n.subscribe(() => r.value = n.state());
@@ -2909,14 +2929,14 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2909
2929
  copy: "copy",
2910
2930
  ...t.labelKeys
2911
2931
  }));
2912
- return (t, i) => (R(), w(or, {
2932
+ return (t, i) => (R(), w(cr, {
2913
2933
  "data-glim": "FortressPairing",
2914
2934
  title: e.text.pairing,
2915
2935
  "hue-index": e.hueIndex
2916
2936
  }, {
2917
2937
  default: Y(() => [
2918
2938
  V(t.$slots, "default"),
2919
- e.onShowPhrase || e.onChangePhrase ? (R(), w(ea, {
2939
+ e.onShowPhrase || e.onChangePhrase ? (R(), w(na, {
2920
2940
  key: 0,
2921
2941
  label: e.text.phraseTitle,
2922
2942
  hint: e.onChangePhrase ? e.text.changePhraseAbout : void 0
@@ -2941,7 +2961,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2941
2961
  }, null, 8, ["label", "label-key"])) : T("", !0)]),
2942
2962
  _: 1
2943
2963
  }, 8, ["label", "hint"])) : T("", !0),
2944
- A(ea, {
2964
+ A(na, {
2945
2965
  label: e.text.leaveRow,
2946
2966
  hint: G(Z)(e.text.leaveAbout, { app: e.app.name })
2947
2967
  }, {
@@ -2954,7 +2974,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2954
2974
  _: 1
2955
2975
  }, 8, ["label", "hint"]),
2956
2976
  V(t.$slots, "after"),
2957
- r.value.window ? (R(), w(Vo, {
2977
+ r.value.window ? (R(), w(Uo, {
2958
2978
  key: 1,
2959
2979
  flow: G(n),
2960
2980
  state: r.value,
@@ -2980,13 +3000,13 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
2980
3000
  _: 3
2981
3001
  }, 8, ["title", "hue-index"]));
2982
3002
  }
2983
- }), rs = [
3003
+ }), as = [
2984
3004
  "aria-label",
2985
3005
  "aria-valuemin",
2986
3006
  "aria-valuemax",
2987
3007
  "aria-valuenow",
2988
3008
  "aria-valuetext"
2989
- ], is = /* @__PURE__ */ j({
3009
+ ], os = /* @__PURE__ */ j({
2990
3010
  __name: "ProgressBar",
2991
3011
  props: {
2992
3012
  value: { default: null },
@@ -3002,7 +3022,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3002
3022
  valueText: {}
3003
3023
  },
3004
3024
  setup(e) {
3005
- let t = e, n = C(() => dn(t.value, {
3025
+ let t = e, n = C(() => pn(t.value, {
3006
3026
  paused: t.paused,
3007
3027
  failed: t.failed
3008
3028
  }));
@@ -3018,48 +3038,48 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3018
3038
  }, [D("span", {
3019
3039
  class: "glim-progress-fill",
3020
3040
  style: F(n.value.width ? { width: n.value.width } : void 0)
3021
- }, null, 4)], 10, rs));
3041
+ }, null, 4)], 10, as));
3022
3042
  }
3023
- }), as = { class: "glim-status-title" }, os = ["src"], ss = {
3043
+ }), ss = { class: "glim-status-title" }, cs = ["src"], ls = {
3024
3044
  class: "glim-fortress-text",
3025
3045
  "data-fortress": "status"
3026
- }, cs = {
3046
+ }, us = {
3027
3047
  key: 0,
3028
3048
  class: "glim-fortress-note",
3029
3049
  "data-fortress": "loading"
3030
- }, ls = { role: "status" }, us = {
3050
+ }, ds = { role: "status" }, fs = {
3031
3051
  key: 1,
3032
3052
  class: "glim-fortress-note",
3033
3053
  role: "status",
3034
3054
  "data-fortress": "error"
3035
- }, ds = {
3055
+ }, ps = {
3036
3056
  key: 2,
3037
3057
  class: "glim-status-state",
3038
3058
  "data-fortress": "state"
3039
- }, fs = {
3059
+ }, ms = {
3040
3060
  key: 0,
3041
3061
  class: "glim-fortress-sub"
3042
- }, ps = {
3062
+ }, hs = {
3043
3063
  key: 3,
3044
3064
  class: "glim-status-section",
3045
3065
  "data-fortress": "needs"
3046
- }, ms = { class: "glim-status-heading" }, hs = { class: "glim-status-list" }, gs = {
3066
+ }, gs = { class: "glim-status-heading" }, _s = { class: "glim-status-list" }, vs = {
3047
3067
  key: 4,
3048
3068
  class: "glim-status-section",
3049
3069
  "data-fortress": "work"
3050
- }, _s = { class: "glim-status-heading" }, vs = { class: "glim-status-list" }, ys = {
3070
+ }, ys = { class: "glim-status-heading" }, bs = { class: "glim-status-list" }, xs = {
3051
3071
  key: 5,
3052
3072
  class: "glim-status-section",
3053
3073
  "data-fortress": "next"
3054
- }, bs = { class: "glim-status-heading" }, xs = { class: "glim-status-list" }, Ss = { class: "glim-status-at glim-num" }, Cs = {
3074
+ }, Ss = { class: "glim-status-heading" }, Cs = { class: "glim-status-list" }, ws = { class: "glim-status-at glim-num" }, Ts = {
3055
3075
  key: 6,
3056
3076
  class: "glim-status-section",
3057
3077
  "data-fortress": "log"
3058
- }, ws = { class: "glim-status-heading" }, Ts = { class: "glim-status-list" }, Es = { class: "glim-status-at glim-num" }, Ds = {
3078
+ }, Es = { class: "glim-status-heading" }, Ds = { class: "glim-status-list" }, Os = { class: "glim-status-at glim-num" }, ks = {
3059
3079
  key: 7,
3060
3080
  class: "glim-fortress-sub",
3061
3081
  "data-fortress": "where"
3062
- }, Os = /* @__PURE__ */ j({
3082
+ }, As = /* @__PURE__ */ j({
3063
3083
  __name: "FortressStatusWindow",
3064
3084
  props: {
3065
3085
  app: {},
@@ -3073,7 +3093,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3073
3093
  onClose: { type: Function }
3074
3094
  },
3075
3095
  setup(t) {
3076
- let n = t, r = C(() => Ln({
3096
+ let n = t, r = C(() => zn({
3077
3097
  app: n.app,
3078
3098
  instance: n.instance,
3079
3099
  report: n.report,
@@ -3086,8 +3106,8 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3086
3106
  labelKey: "common.close",
3087
3107
  glyph: g,
3088
3108
  wayOut: !0
3089
- }]), a = m("info");
3090
- return (n, o) => (R(), w(ca, {
3109
+ }]), a = p("info");
3110
+ return (n, o) => (R(), w(ua, {
3091
3111
  "data-glim": "FortressStatusWindow",
3092
3112
  lang: t.lang,
3093
3113
  title: r.value.title,
@@ -3098,22 +3118,22 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3098
3118
  },
3099
3119
  onClose: o[0] ||= (e) => t.onClose()
3100
3120
  }, {
3101
- title: Y(() => [D("span", as, [t.app.logo ? (R(), E("img", {
3121
+ title: Y(() => [D("span", ss, [t.app.logo ? (R(), E("img", {
3102
3122
  key: 0,
3103
3123
  src: t.app.logo,
3104
3124
  alt: ""
3105
- }, null, 8, os)) : T("", !0), k(W(r.value.title), 1)])]),
3106
- default: Y(() => [D("div", ss, [
3107
- r.value.loading ? (R(), E("p", cs, [A(c, {
3125
+ }, null, 8, cs)) : T("", !0), k(W(r.value.title), 1)])]),
3126
+ default: Y(() => [D("div", ls, [
3127
+ r.value.loading ? (R(), E("p", us, [A(c, {
3108
3128
  size: "small",
3109
3129
  delay: 0
3110
- }), D("span", ls, W(r.value.loading), 1)])) : T("", !0),
3111
- r.value.error === void 0 ? T("", !0) : (R(), E("p", us, [G(a) ? (R(), w(H(G(a)), { key: 0 })) : T("", !0), D("span", null, W(r.value.error), 1)])),
3112
- r.value.state ? (R(), E("p", ds, [A(e, { tone: r.value.state.tone }, {
3130
+ }), D("span", ds, W(r.value.loading), 1)])) : T("", !0),
3131
+ r.value.error === void 0 ? T("", !0) : (R(), E("p", fs, [G(a) ? (R(), w(H(G(a)), { key: 0 })) : T("", !0), D("span", null, W(r.value.error), 1)])),
3132
+ r.value.state ? (R(), E("p", ps, [A(e, { tone: r.value.state.tone }, {
3113
3133
  default: Y(() => [k(W(r.value.state.label), 1)]),
3114
3134
  _: 1
3115
- }, 8, ["tone"]), r.value.quiet ? (R(), E("span", fs, W(r.value.quiet), 1)) : T("", !0)])) : T("", !0),
3116
- r.value.needsYou.length ? (R(), E("section", ps, [D("h3", ms, W(t.text.statusNeedsYou), 1), D("ul", hs, [(R(!0), E(S, null, B(r.value.needsYou, (t, n) => (R(), E("li", {
3135
+ }, 8, ["tone"]), r.value.quiet ? (R(), E("span", ms, W(r.value.quiet), 1)) : T("", !0)])) : T("", !0),
3136
+ r.value.needsYou.length ? (R(), E("section", hs, [D("h3", gs, W(t.text.statusNeedsYou), 1), D("ul", _s, [(R(!0), E(S, null, B(r.value.needsYou, (t, n) => (R(), E("li", {
3117
3137
  key: n,
3118
3138
  class: "glim-status-line"
3119
3139
  }, [
@@ -3127,26 +3147,26 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3127
3147
  o[1] ||= k(),
3128
3148
  D("span", null, W(t.text), 1)
3129
3149
  ]))), 128))])])) : T("", !0),
3130
- r.value.work.length ? (R(), E("section", gs, [D("h3", _s, W(t.text.statusWork), 1), D("ul", vs, [(R(!0), E(S, null, B(r.value.work, (e, t) => (R(), E("li", {
3150
+ r.value.work.length ? (R(), E("section", vs, [D("h3", ys, W(t.text.statusWork), 1), D("ul", bs, [(R(!0), E(S, null, B(r.value.work, (e, t) => (R(), E("li", {
3131
3151
  key: t,
3132
3152
  class: "glim-status-work"
3133
- }, [D("span", null, W(e.title), 1), A(is, {
3153
+ }, [D("span", null, W(e.title), 1), A(os, {
3134
3154
  value: e.progress,
3135
3155
  label: e.title
3136
3156
  }, null, 8, ["value", "label"])]))), 128))])])) : T("", !0),
3137
- r.value.next.length ? (R(), E("section", ys, [D("h3", bs, W(t.text.statusNext), 1), D("ul", xs, [(R(!0), E(S, null, B(r.value.next, (e, t) => (R(), E("li", {
3157
+ r.value.next.length ? (R(), E("section", xs, [D("h3", Ss, W(t.text.statusNext), 1), D("ul", Cs, [(R(!0), E(S, null, B(r.value.next, (e, t) => (R(), E("li", {
3138
3158
  key: t,
3139
3159
  class: "glim-status-line"
3140
3160
  }, [
3141
3161
  D("span", null, W(e.title), 1),
3142
3162
  o[2] ||= k(),
3143
- D("span", Ss, W(e.at), 1)
3163
+ D("span", ws, W(e.at), 1)
3144
3164
  ]))), 128))])])) : T("", !0),
3145
- r.value.log.length ? (R(), E("section", Cs, [D("h3", ws, W(t.text.statusLog), 1), D("ul", Ts, [(R(!0), E(S, null, B(r.value.log, (t, n) => (R(), E("li", {
3165
+ r.value.log.length ? (R(), E("section", Ts, [D("h3", Es, W(t.text.statusLog), 1), D("ul", Ds, [(R(!0), E(S, null, B(r.value.log, (t, n) => (R(), E("li", {
3146
3166
  key: n,
3147
3167
  class: "glim-status-line"
3148
3168
  }, [
3149
- D("span", Es, W(t.at), 1),
3169
+ D("span", Os, W(t.at), 1),
3150
3170
  o[3] ||= k(),
3151
3171
  t.level ? (R(), w(e, {
3152
3172
  key: 0,
@@ -3158,7 +3178,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3158
3178
  o[4] ||= k(),
3159
3179
  D("span", null, W(t.text), 1)
3160
3180
  ]))), 128))])])) : T("", !0),
3161
- r.value.where ? (R(), E("p", Ds, W(r.value.where), 1)) : T("", !0)
3181
+ r.value.where ? (R(), E("p", ks, W(r.value.where), 1)) : T("", !0)
3162
3182
  ])]),
3163
3183
  _: 1
3164
3184
  }, 8, [
@@ -3168,10 +3188,10 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3168
3188
  "text"
3169
3189
  ]));
3170
3190
  }
3171
- }), ks = {
3191
+ }), js = {
3172
3192
  class: "glim-glyph-field-glyph",
3173
3193
  "aria-hidden": "true"
3174
- }, As = ["aria-label"], js = /* @__PURE__ */ j({
3194
+ }, Ms = ["aria-label"], Ns = /* @__PURE__ */ j({
3175
3195
  inheritAttrs: !1,
3176
3196
  __name: "GlyphField",
3177
3197
  props: /*@__PURE__*/ M({
@@ -3185,7 +3205,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3185
3205
  }),
3186
3206
  emits: ["update:modelValue"],
3187
3207
  setup(e, { expose: t }) {
3188
- let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => ft(n.width)), o = U(null);
3208
+ let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => pt(n.width)), o = U(null);
3189
3209
  return t({ input: o }), (t, n) => (R(), E("label", {
3190
3210
  "data-glim": "GlyphField",
3191
3211
  class: P([
@@ -3197,8 +3217,8 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3197
3217
  ]),
3198
3218
  style: F(t.$attrs.style)
3199
3219
  }, [
3200
- D("span", ks, [(R(), w(H(e.glyph)))]),
3201
- Le(D("input", N({
3220
+ D("span", js, [(R(), w(H(e.glyph)))]),
3221
+ Re(D("input", N({
3202
3222
  ref_key: "input",
3203
3223
  ref: o,
3204
3224
  "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
@@ -3208,11 +3228,11 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3208
3228
  ...t.$attrs,
3209
3229
  class: void 0,
3210
3230
  style: void 0
3211
- }, { class: "glim-glyph-field-input" }), null, 16, As), [[Pe, r.value]]),
3231
+ }, { class: "glim-glyph-field-input" }), null, 16, Ms), [[Fe, r.value]]),
3212
3232
  V(t.$slots, "after")
3213
3233
  ], 6));
3214
3234
  }
3215
- }), Ms = /* @__PURE__ */ j({
3235
+ }), Ps = /* @__PURE__ */ j({
3216
3236
  __name: "GlyphTile",
3217
3237
  props: {
3218
3238
  glyph: {},
@@ -3231,17 +3251,17 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3231
3251
  "aria-hidden": "true"
3232
3252
  }, [(R(), w(H(e.glyph)))], 2));
3233
3253
  }
3234
- }), Ns = [
3254
+ }), Fs = [
3235
3255
  "aria-label",
3236
3256
  "tabindex",
3237
3257
  "onKeydown"
3238
- ], Ps = {
3258
+ ], Is = {
3239
3259
  key: 0,
3240
3260
  class: "glim-list-row-tile"
3241
- }, Fs = { class: "glim-list-row-title" }, Is = {
3261
+ }, Ls = { class: "glim-list-row-title" }, Rs = {
3242
3262
  key: 1,
3243
3263
  class: "glim-list-row-badges"
3244
- }, Ls = /* @__PURE__ */ j({
3264
+ }, zs = /* @__PURE__ */ j({
3245
3265
  __name: "ListRow",
3246
3266
  props: {
3247
3267
  name: {},
@@ -3249,7 +3269,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3249
3269
  mono: { type: Boolean }
3250
3270
  },
3251
3271
  setup(e) {
3252
- let t = e, n = je(), r = C(() => !!n.onClick), i = C(() => ["glim-list-row-name", { "glim-list-row-name--mono": t.mono }]);
3272
+ let t = e, n = Me(), r = C(() => !!n.onClick), i = C(() => ["glim-list-row-name", { "glim-list-row-name--mono": t.mono }]);
3253
3273
  function a(e) {
3254
3274
  e.preventDefault(), e.currentTarget.click();
3255
3275
  }
@@ -3259,23 +3279,23 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3259
3279
  "aria-label": e.name,
3260
3280
  tabindex: r.value ? 0 : void 0,
3261
3281
  class: P(["glim-list-row", { "glim-list-row--opens": r.value }]),
3262
- onKeydown: [Re(X(a, ["self"]), ["enter"]), Re(X(a, ["self"]), ["space"])]
3282
+ onKeydown: [ze(X(a, ["self"]), ["enter"]), ze(X(a, ["self"]), ["space"])]
3263
3283
  }, [
3264
- t.$slots.tile ? (R(), E("span", Ps, [V(t.$slots, "tile")])) : T("", !0),
3265
- D("span", { class: P(i.value) }, [D("span", Fs, W(e.name), 1), e.tip ? (R(), E("span", {
3284
+ t.$slots.tile ? (R(), E("span", Is, [V(t.$slots, "tile")])) : T("", !0),
3285
+ D("span", { class: P(i.value) }, [D("span", Ls, W(e.name), 1), e.tip ? (R(), E("span", {
3266
3286
  key: 0,
3267
3287
  class: "glim-list-row-tip",
3268
3288
  onClick: n[0] ||= X(() => {}, ["stop"])
3269
3289
  }, [A(Q, { tip: e.tip }, null, 8, ["tip"])])) : T("", !0)], 2),
3270
- t.$slots.badges ? (R(), E("span", Is, [V(t.$slots, "badges")])) : T("", !0),
3290
+ t.$slots.badges ? (R(), E("span", Rs, [V(t.$slots, "badges")])) : T("", !0),
3271
3291
  t.$slots.actions ? (R(), E("span", {
3272
3292
  key: 2,
3273
3293
  class: "glim-list-row-actions",
3274
3294
  onClick: n[1] ||= X(() => {}, ["stop"])
3275
3295
  }, [V(t.$slots, "actions")])) : T("", !0)
3276
- ], 42, Ns));
3296
+ ], 42, Fs));
3277
3297
  }
3278
- }), Rs = ["aria-label"], zs = /* @__PURE__ */ j({
3298
+ }), Bs = ["aria-label"], Vs = /* @__PURE__ */ j({
3279
3299
  __name: "Popover",
3280
3300
  props: {
3281
3301
  open: { type: Boolean },
@@ -3284,13 +3304,13 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3284
3304
  },
3285
3305
  emits: ["close"],
3286
3306
  setup(e, { emit: t }) {
3287
- let n = e, r = t, i = z(null), a = Ye(K() ?? "popover"), o;
3307
+ let n = e, r = t, i = z(null), a = Xe(K() ?? "popover"), o;
3288
3308
  return J([
3289
3309
  () => n.open,
3290
3310
  () => n.anchor,
3291
3311
  i
3292
3312
  ], ([e, t, n]) => {
3293
- o?.(), o = void 0, e && t && n && (o = Jt(n, t, a, () => r("close")));
3313
+ o?.(), o = void 0, e && t && n && (o = Yt(n, t, a, () => r("close")));
3294
3314
  }, { flush: "post" }), I(() => o?.()), (t, n) => e.open ? (R(), E("div", {
3295
3315
  key: 0,
3296
3316
  "data-glim": "Popover",
@@ -3300,24 +3320,24 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3300
3320
  role: "dialog",
3301
3321
  "aria-label": e.label,
3302
3322
  class: "glim-popover"
3303
- }, [V(t.$slots, "default")], 8, Rs)) : T("", !0);
3323
+ }, [V(t.$slots, "default")], 8, Bs)) : T("", !0);
3304
3324
  }
3305
- }), Bs = {
3325
+ }), Hs = {
3306
3326
  "data-glim": "ListTable",
3307
3327
  class: "glim-list"
3308
- }, Vs = ["aria-label", "onKeydown"], Hs = ["aria-label", "aria-describedby"], Us = ["aria-sort"], Ws = { class: "glim-list-th-box" }, Gs = ["onClick"], Ks = [
3328
+ }, Us = ["aria-label", "onKeydown"], Ws = ["aria-label", "aria-describedby"], Gs = ["aria-sort"], Ks = { class: "glim-list-th-box" }, qs = ["onClick"], Js = [
3309
3329
  "aria-label",
3310
3330
  "aria-expanded",
3311
3331
  "aria-pressed",
3312
3332
  "onClick"
3313
- ], qs = [
3333
+ ], Ys = [
3314
3334
  "aria-selected",
3315
3335
  "onClick",
3316
3336
  "onDblclick"
3317
- ], Js = ["tabindex"], Ys = {
3337
+ ], Xs = ["tabindex"], Zs = {
3318
3338
  key: 1,
3319
3339
  class: "glim-list-empty"
3320
- }, Xs = ["id"], Zs = { class: "glim-list-filter-values" }, Qs = /* @__PURE__ */ j({
3340
+ }, Qs = ["id"], $s = { class: "glim-list-filter-values" }, ec = /* @__PURE__ */ j({
3321
3341
  __name: "ListTable",
3322
3342
  props: {
3323
3343
  label: {},
@@ -3333,12 +3353,12 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3333
3353
  keys: [],
3334
3354
  anchor: null,
3335
3355
  focus: null
3336
- }), c = z(null), l = z(null), u = z(null), d = K(), f = C(() => jt(n.rows, {
3356
+ }), c = z(null), l = z(null), u = z(null), d = K(), f = C(() => Mt(n.rows, {
3337
3357
  sort: i.value,
3338
3358
  filters: a.value,
3339
3359
  query: o.value ?? "",
3340
3360
  search: n.search ?? [n.columns[0].key]
3341
- })), p = C(() => f.value.map(n.rowKey)), m = C(() => {
3361
+ })), p = C(() => f.value.map(n.rowKey)), h = C(() => {
3342
3362
  let e = (e) => e === null ? -1 : p.value.indexOf(e);
3343
3363
  return {
3344
3364
  selected: p.value.flatMap((e, t) => s.value.keys.includes(e) ? [t] : []),
@@ -3346,50 +3366,50 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3346
3366
  focus: Math.max(0, e(s.value.focus))
3347
3367
  };
3348
3368
  });
3349
- function h() {
3350
- we(() => l.value?.querySelector(`tbody tr:nth-child(${m.value.focus + 1}) > td`)?.focus());
3369
+ function g() {
3370
+ Te(() => l.value?.querySelector(`tbody tr:nth-child(${h.value.focus + 1}) > td`)?.focus());
3351
3371
  }
3352
- function g(e) {
3372
+ function _(e) {
3353
3373
  let t = p.value;
3354
3374
  s.value = {
3355
3375
  keys: e.selected.map((e) => t[e]),
3356
3376
  anchor: e.anchor === null ? null : t[e.anchor],
3357
3377
  focus: t[e.focus] ?? null
3358
- }, r("select", e.selected.map((e) => f.value[e])), h();
3378
+ }, r("select", e.selected.map((e) => f.value[e])), g();
3359
3379
  }
3360
- function ee(e) {
3361
- let t = kt(m.value, e.key, {
3380
+ function v(e) {
3381
+ let t = At(h.value, e.key, {
3362
3382
  toggle: e.ctrlKey || e.metaKey,
3363
3383
  range: e.shiftKey
3364
3384
  }, f.value.length);
3365
- t && !e.altKey && (e.preventDefault(), "open" in t ? r("open", f.value[t.open]) : "search" in t ? (o.value = (o.value ?? "") + t.search, we(() => u.value?.focus())) : g(t.select));
3385
+ t && !e.altKey && (e.preventDefault(), "open" in t ? r("open", f.value[t.open]) : "search" in t ? (o.value = (o.value ?? "") + t.search, Te(() => u.value?.focus())) : _(t.select));
3366
3386
  }
3367
- function _(e, t) {
3368
- g(Cn(m.value, t, {
3387
+ function ee(e, t) {
3388
+ _(Tn(h.value, t, {
3369
3389
  toggle: e.ctrlKey || e.metaKey,
3370
3390
  range: e.shiftKey
3371
3391
  }));
3372
3392
  }
3373
3393
  function te() {
3374
- o.value = null, h();
3394
+ o.value = null, g();
3375
3395
  }
3376
- let v = C(() => c.value && n.columns.find((e) => e.key === c.value.key)), ne = (e) => a.value[e] ?? [];
3377
- function re(e, t) {
3396
+ let y = C(() => c.value && n.columns.find((e) => e.key === c.value.key)), ne = (e) => a.value[e] ?? [];
3397
+ function b(e, t) {
3378
3398
  let n = ne(e);
3379
3399
  a.value = {
3380
3400
  ...a.value,
3381
3401
  [e]: n.includes(t) ? n.filter((e) => e !== t) : [...n, t]
3382
3402
  };
3383
3403
  }
3384
- function y(e, t) {
3404
+ function re(e, t) {
3385
3405
  c.value = c.value?.key === e ? null : {
3386
3406
  key: e,
3387
3407
  at: t
3388
3408
  };
3389
3409
  }
3390
3410
  let ie = (e, t) => String(e[t] ?? "");
3391
- return (t, n) => (R(), E("div", Bs, [
3392
- o.value === null ? T("", !0) : Le((R(), E("input", {
3411
+ return (t, n) => (R(), E("div", Hs, [
3412
+ o.value === null ? T("", !0) : Re((R(), E("input", {
3393
3413
  key: 0,
3394
3414
  ref_key: "searchField",
3395
3415
  ref: u,
@@ -3397,8 +3417,8 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3397
3417
  class: "glim-input glim-list-search",
3398
3418
  type: "search",
3399
3419
  "aria-label": e.text.search,
3400
- onKeydown: Re(X(te, ["prevent", "stop"]), ["esc"])
3401
- }, null, 40, Vs)), [[Pe, o.value]]),
3420
+ onKeydown: ze(X(te, ["prevent", "stop"]), ["esc"])
3421
+ }, null, 40, Us)), [[Fe, o.value]]),
3402
3422
  D("table", {
3403
3423
  ref_key: "grid",
3404
3424
  ref: l,
@@ -3410,17 +3430,17 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3410
3430
  }, [D("thead", null, [D("tr", null, [(R(!0), E(S, null, B(e.columns, (t) => (R(), E("th", {
3411
3431
  key: t.key,
3412
3432
  scope: "col",
3413
- "aria-sort": G(Qe)(i.value, t.key),
3433
+ "aria-sort": G($e)(i.value, t.key),
3414
3434
  class: P(t.end ? "glim-list-th glim-table-end" : "glim-list-th")
3415
- }, [D("span", Ws, [D("button", {
3435
+ }, [D("span", Ks, [D("button", {
3416
3436
  type: "button",
3417
3437
  class: "glim-list-sort",
3418
- onClick: (e) => i.value = G(Ht)(i.value, t.key)
3419
- }, [k(W(t.label) + " ", 1), i.value?.key === t.key ? (R(), w(G(b), {
3438
+ onClick: (e) => i.value = G(Ut)(i.value, t.key)
3439
+ }, [k(W(t.label) + " ", 1), i.value?.key === t.key ? (R(), w(G(m), {
3420
3440
  key: 0,
3421
- mark: G(Ge).expand,
3441
+ mark: G(Ke).expand,
3422
3442
  class: P(`glim-list-sort-mark glim-list-sort-mark--${i.value.dir}`)
3423
- }, null, 8, ["mark", "class"])) : T("", !0)], 8, Gs), t.filter ? (R(), E("button", {
3443
+ }, null, 8, ["mark", "class"])) : T("", !0)], 8, qs), t.filter ? (R(), E("button", {
3424
3444
  key: 0,
3425
3445
  type: "button",
3426
3446
  "aria-label": e.text.filterOf(t.label),
@@ -3428,38 +3448,38 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3428
3448
  "aria-expanded": c.value?.key === t.key,
3429
3449
  "aria-pressed": ne(t.key).length > 0,
3430
3450
  class: "glim-list-filter",
3431
- onClick: (e) => y(t.key, e.currentTarget)
3432
- }, [A(G(b), { mark: G(Ge).expand }, null, 8, ["mark"])], 8, Ks)) : T("", !0)])], 10, Us))), 128))])]), D("tbody", { onKeydown: ee }, [(R(!0), E(S, null, B(f.value, (n, i) => (R(), E("tr", {
3451
+ onClick: (e) => re(t.key, e.currentTarget)
3452
+ }, [A(G(m), { mark: G(Ke).expand }, null, 8, ["mark"])], 8, Js)) : T("", !0)])], 10, Gs))), 128))])]), D("tbody", { onKeydown: v }, [(R(!0), E(S, null, B(f.value, (n, i) => (R(), E("tr", {
3433
3453
  key: p.value[i],
3434
- "aria-selected": m.value.selected.includes(i),
3454
+ "aria-selected": h.value.selected.includes(i),
3435
3455
  class: "glim-list-tr",
3436
- onClick: (e) => _(e, i),
3456
+ onClick: (e) => ee(e, i),
3437
3457
  onDblclick: (e) => r("open", n)
3438
3458
  }, [(R(!0), E(S, null, B(e.columns, (e, r) => (R(), E("td", {
3439
3459
  key: e.key,
3440
- tabindex: r === 0 ? i === m.value.focus ? 0 : -1 : void 0,
3441
- class: P(G(Hn)(e) || void 0)
3460
+ tabindex: r === 0 ? i === h.value.focus ? 0 : -1 : void 0,
3461
+ class: P(G(Wn)(e) || void 0)
3442
3462
  }, [V(t.$slots, "cell", {
3443
3463
  row: n,
3444
3464
  column: e
3445
- }, () => [k(W(ie(n, e.key)), 1)])], 10, Js))), 128))], 40, qs))), 128))], 32)], 8, Hs),
3446
- f.value.length === 0 ? (R(), E("p", Ys, W(e.text.noMatch), 1)) : T("", !0),
3465
+ }, () => [k(W(ie(n, e.key)), 1)])], 10, Xs))), 128))], 40, Ys))), 128))], 32)], 8, Ws),
3466
+ f.value.length === 0 ? (R(), E("p", Zs, W(e.text.noMatch), 1)) : T("", !0),
3447
3467
  D("p", {
3448
3468
  id: G(d),
3449
3469
  class: "glim-list-hint"
3450
- }, W(e.text.hint), 9, Xs),
3451
- v.value ? (R(), w(zs, {
3470
+ }, W(e.text.hint), 9, Qs),
3471
+ y.value ? (R(), w(Vs, {
3452
3472
  key: 2,
3453
3473
  open: !0,
3454
3474
  anchor: c.value.at,
3455
- label: e.text.filterOf(v.value.label),
3475
+ label: e.text.filterOf(y.value.label),
3456
3476
  onClose: n[1] ||= (e) => c.value = null
3457
3477
  }, {
3458
- default: Y(() => [D("div", Zs, [(R(!0), E(S, null, B(G(rt)(e.rows, v.value.key), (e) => (R(), w(Lr, {
3478
+ default: Y(() => [D("div", $s, [(R(!0), E(S, null, B(G(it)(e.rows, y.value.key), (e) => (R(), w(zr, {
3459
3479
  key: e,
3460
3480
  label: e,
3461
- "model-value": ne(v.value.key).includes(e),
3462
- "onUpdate:modelValue": (t) => re(v.value.key, e)
3481
+ "model-value": ne(y.value.key).includes(e),
3482
+ "onUpdate:modelValue": (t) => b(y.value.key, e)
3463
3483
  }, null, 8, [
3464
3484
  "label",
3465
3485
  "model-value",
@@ -3469,14 +3489,14 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3469
3489
  }, 8, ["anchor", "label"])) : T("", !0)
3470
3490
  ]));
3471
3491
  }
3472
- }), $s = ["aria-label"], ec = [
3492
+ }), tc = ["aria-label"], nc = [
3473
3493
  "aria-expanded",
3474
3494
  "tabindex",
3475
3495
  "onClick",
3476
3496
  "onMouseenter",
3477
3497
  "onKeydown",
3478
3498
  "onFocus"
3479
- ], tc = /* @__PURE__ */ j({
3499
+ ], rc = /* @__PURE__ */ j({
3480
3500
  __name: "MenuBar",
3481
3501
  props: {
3482
3502
  label: {},
@@ -3530,7 +3550,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3530
3550
  onMouseenter: (e) => i.value && i.value.at !== t && o(t),
3531
3551
  onKeydown: (e) => l(e, t),
3532
3552
  onFocus: (e) => a.value = t
3533
- }, W(e.label), 41, ec))), 128)), i.value && e.menus[i.value.at] ? (R(), w(xi, {
3553
+ }, W(e.label), 41, nc))), 128)), i.value && e.menus[i.value.at] ? (R(), w(Ci, {
3534
3554
  key: i.value.at,
3535
3555
  x: i.value.x,
3536
3556
  y: i.value.y,
@@ -3549,9 +3569,9 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3549
3569
  "id",
3550
3570
  "opener",
3551
3571
  "from-end"
3552
- ])) : T("", !0)], 8, $s));
3572
+ ])) : T("", !0)], 8, tc));
3553
3573
  }
3554
- }), nc = [
3574
+ }), ic = [
3555
3575
  "role",
3556
3576
  "aria-label",
3557
3577
  "aria-valuemin",
@@ -3559,7 +3579,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3559
3579
  "aria-valuenow",
3560
3580
  "aria-valuetext",
3561
3581
  "aria-busy"
3562
- ], rc = /* @__PURE__ */ j({
3582
+ ], ac = /* @__PURE__ */ j({
3563
3583
  inheritAttrs: !1,
3564
3584
  __name: "Meter",
3565
3585
  props: {
@@ -3574,7 +3594,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3574
3594
  valueText: {}
3575
3595
  },
3576
3596
  setup(e) {
3577
- let r = e, i = C(() => Bt(r.value, {
3597
+ let r = e, i = C(() => Vt(r.value, {
3578
3598
  size: r.size,
3579
3599
  threshold: r.threshold,
3580
3600
  quiet: r.quiet
@@ -3594,16 +3614,16 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3594
3614
  }), [D("span", {
3595
3615
  class: "glim-meter-fill",
3596
3616
  style: F(i.value.width ? { width: i.value.width } : void 0)
3597
- }, null, 4)], 16, nc), A(t, { state: G(o) }, null, 8, ["state"])], 64));
3617
+ }, null, 4)], 16, ic), A(t, { state: G(o) }, null, 8, ["state"])], 64));
3598
3618
  }
3599
- }), ic = {
3619
+ }), oc = {
3600
3620
  "data-glim": "NumberField",
3601
3621
  class: "glim-num-wrap"
3602
- }, ac = [
3622
+ }, sc = [
3603
3623
  "aria-label",
3604
3624
  "aria-invalid",
3605
3625
  "aria-describedby"
3606
- ], oc = /* @__PURE__ */ j({
3626
+ ], cc = /* @__PURE__ */ j({
3607
3627
  inheritAttrs: !1,
3608
3628
  __name: "NumberField",
3609
3629
  props: /*@__PURE__*/ M({ error: {} }, {
@@ -3612,9 +3632,9 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3612
3632
  }),
3613
3633
  emits: ["update:modelValue"],
3614
3634
  setup(e) {
3615
- let t = e, n = q(e, "modelValue"), r = je(), i = x(() => r["aria-label"]), a = K(), o = C(() => dt(t.error, r.id ?? a, r["aria-describedby"])), s = U(null), c;
3635
+ let t = e, n = q(e, "modelValue"), r = Me(), i = x(() => r["aria-label"]), a = K(), o = C(() => ft(t.error, r.id ?? a, r["aria-describedby"])), s = U(null), c;
3616
3636
  L(() => {
3617
- l(n.value), c = $e(s.value);
3637
+ l(n.value), c = et(s.value);
3618
3638
  }), I(() => c?.());
3619
3639
  function l(e) {
3620
3640
  let t = s.value;
@@ -3628,13 +3648,13 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3628
3648
  () => r.disabled,
3629
3649
  () => r.readonly
3630
3650
  ], () => {
3631
- l(n.value), s.value && Vn(s.value);
3651
+ l(n.value), s.value && Un(s.value);
3632
3652
  }, { flush: "post" });
3633
3653
  function u(e) {
3634
3654
  let t = e.target;
3635
3655
  n.value = t.value === "" ? null : t.valueAsNumber;
3636
3656
  }
3637
- return (t, n) => (R(), E(S, null, [D("span", ic, [D("input", N(t.$attrs, {
3657
+ return (t, n) => (R(), E(S, null, [D("span", oc, [D("input", N(t.$attrs, {
3638
3658
  ref_key: "input",
3639
3659
  ref: s,
3640
3660
  "aria-label": G(i),
@@ -3643,7 +3663,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3643
3663
  type: "number",
3644
3664
  class: "glim-num-input glim-num-field glim-num",
3645
3665
  onInput: u
3646
- }), null, 16, ac)]), o.value.errorId ? (R(), w(Xi, {
3666
+ }), null, 16, sc)]), o.value.errorId ? (R(), w(Qi, {
3647
3667
  key: 0,
3648
3668
  id: o.value.errorId
3649
3669
  }, {
@@ -3651,7 +3671,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3651
3671
  _: 1
3652
3672
  }, 8, ["id"])) : T("", !0)], 64));
3653
3673
  }
3654
- }), sc = ["aria-label", "disabled"], cc = /* @__PURE__ */ j({
3674
+ }), lc = ["aria-label", "disabled"], uc = /* @__PURE__ */ j({
3655
3675
  inheritAttrs: !1,
3656
3676
  __name: "PathField",
3657
3677
  props: /*@__PURE__*/ M({
@@ -3674,7 +3694,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3674
3694
  setup(e, { expose: t, emit: n }) {
3675
3695
  let r = e, i = q(e, "modelValue"), a = n, o = x(() => r.label), s = U(null);
3676
3696
  t({ input: s });
3677
- let c = U(null), l = z(!1), u = new ResizeObserver(([e]) => l.value = e.contentRect.width < Ke);
3697
+ let c = U(null), l = z(!1), u = new ResizeObserver(([e]) => l.value = e.contentRect.width < qe);
3678
3698
  L(() => u.observe(c.value)), I(() => u.disconnect());
3679
3699
  async function d() {
3680
3700
  let e = await r.pick(i.value);
@@ -3686,11 +3706,11 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3686
3706
  "data-glim": "PathField",
3687
3707
  class: P([
3688
3708
  "glim-path",
3689
- G(ft)(e.width),
3709
+ G(pt)(e.width),
3690
3710
  t.$attrs.class
3691
3711
  ]),
3692
3712
  style: F(t.$attrs.style)
3693
- }, [Le(D("input", N({
3713
+ }, [Re(D("input", N({
3694
3714
  ref_key: "input",
3695
3715
  ref: s,
3696
3716
  "onUpdate:modelValue": n[0] ||= (e) => i.value = e,
@@ -3705,11 +3725,11 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3705
3725
  }, {
3706
3726
  disabled: e.disabled,
3707
3727
  class: "glim-input glim-input--mono"
3708
- }), null, 16, sc), [[Pe, i.value]]), A(f, N(e.buttonAttrs, {
3728
+ }), null, 16, lc), [[Fe, i.value]]), A(f, N(e.buttonAttrs, {
3709
3729
  variant: "icon",
3710
3730
  label: e.text.pick,
3711
3731
  "label-key": null,
3712
- glyph: e.glyph ?? G(fe),
3732
+ glyph: e.glyph ?? G(de),
3713
3733
  compact: e.compact || l.value,
3714
3734
  disabled: e.disabled,
3715
3735
  onClick: d
@@ -3720,27 +3740,27 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3720
3740
  "disabled"
3721
3741
  ])], 6));
3722
3742
  }
3723
- }), lc = ["data-glim-title"], uc = { class: "glim-modal-head" }, dc = {
3743
+ }), dc = ["data-glim-title"], fc = { class: "glim-modal-head" }, pc = {
3724
3744
  id: "paypal-window-title",
3725
3745
  class: "glim-modal-title"
3726
- }, fc = { class: "glim-give-body glim-give-body--scroll" }, pc = { class: "glim-give-appeal" }, mc = { class: "glim-give-intro" }, hc = { class: "glim-give-group" }, gc = {
3746
+ }, mc = { class: "glim-give-body glim-give-body--scroll" }, hc = { class: "glim-give-appeal" }, gc = { class: "glim-give-intro" }, _c = { class: "glim-give-group" }, vc = {
3727
3747
  id: "paypal-frequency",
3728
3748
  class: "glim-eyebrow"
3729
- }, _c = { class: "glim-give-group" }, vc = {
3749
+ }, yc = { class: "glim-give-group" }, bc = {
3730
3750
  id: "paypal-amount",
3731
3751
  class: "glim-eyebrow"
3732
- }, yc = { class: "glim-give-amounts" }, bc = [
3752
+ }, xc = { class: "glim-give-amounts" }, Sc = [
3733
3753
  "value",
3734
3754
  "placeholder",
3735
3755
  "aria-label",
3736
3756
  "aria-invalid"
3737
- ], xc = { class: "glim-give-loading" }, Sc = {
3757
+ ], Cc = { class: "glim-give-loading" }, wc = {
3738
3758
  key: 0,
3739
3759
  class: "glim-give-status glim-give-status--ok"
3740
- }, Cc = {
3760
+ }, Tc = {
3741
3761
  key: 1,
3742
3762
  class: "glim-give-status glim-give-status--fail"
3743
- }, wc = { class: "glim-give-foot" }, Tc = /* @__PURE__ */ j({
3763
+ }, Ec = { class: "glim-give-foot" }, Dc = /* @__PURE__ */ j({
3744
3764
  __name: "PaypalDialog",
3745
3765
  props: {
3746
3766
  text: {},
@@ -3781,7 +3801,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3781
3801
  "aria-labelledby": "paypal-window-title",
3782
3802
  class: "glim-modal-card glim-modal-card--wide"
3783
3803
  }, [
3784
- D("div", uc, [D("h2", dc, [A(e, {
3804
+ D("div", fc, [D("h2", pc, [A(e, {
3785
3805
  tone: "heading",
3786
3806
  size: "heading",
3787
3807
  wrap: ""
@@ -3789,10 +3809,10 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3789
3809
  default: Y(() => [k(W(t.text.title), 1)]),
3790
3810
  _: 1
3791
3811
  })])]),
3792
- D("div", fc, [
3793
- D("p", pc, W(t.text.appeal), 1),
3794
- D("p", mc, W(t.text.intro), 1),
3795
- D("div", hc, [D("span", gc, W(t.text.frequencyLabel), 1), V(n.$slots, "selector", {
3812
+ D("div", mc, [
3813
+ D("p", hc, W(t.text.appeal), 1),
3814
+ D("p", gc, W(t.text.intro), 1),
3815
+ D("div", _c, [D("span", vc, W(t.text.frequencyLabel), 1), V(n.$slots, "selector", {
3796
3816
  labelledBy: "paypal-frequency",
3797
3817
  options: a.map((e) => ({
3798
3818
  value: e,
@@ -3801,7 +3821,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3801
3821
  value: t.frequency,
3802
3822
  onChange: s
3803
3823
  })]),
3804
- D("div", _c, [D("span", vc, W(t.text.amountLabel), 1), D("div", yc, [D("div", null, [V(n.$slots, "selector", {
3824
+ D("div", yc, [D("span", bc, W(t.text.amountLabel), 1), D("div", xc, [D("div", null, [V(n.$slots, "selector", {
3805
3825
  labelledBy: "paypal-amount",
3806
3826
  options: t.amounts.map((e) => ({
3807
3827
  value: e,
@@ -3818,29 +3838,29 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3818
3838
  "aria-invalid": t.typed !== "" && !t.typedValid,
3819
3839
  class: P(t.typedValid ? "glim-give-amount glim-give-amount--valid" : "glim-give-amount"),
3820
3840
  onInput: l
3821
- }, null, 42, bc)])]),
3841
+ }, null, 42, Sc)])]),
3822
3842
  D("div", {
3823
3843
  ref: t.buttonsRef,
3824
3844
  class: "glim-give-wallet"
3825
- }, [D("p", xc, W(t.text.loading), 1)], 512),
3826
- t.status === "done" ? (R(), E("p", Sc, W(t.text.thanks), 1)) : T("", !0),
3827
- t.status === "failed" ? (R(), E("p", Cc, W(t.text.failed), 1)) : T("", !0)
3845
+ }, [D("p", Cc, W(t.text.loading), 1)], 512),
3846
+ t.status === "done" ? (R(), E("p", wc, W(t.text.thanks), 1)) : T("", !0),
3847
+ t.status === "failed" ? (R(), E("p", Tc, W(t.text.failed), 1)) : T("", !0)
3828
3848
  ]),
3829
- D("div", wc, [A(f, {
3849
+ D("div", Ec, [A(f, {
3830
3850
  label: t.text.closeLabel,
3831
3851
  "label-key": "common.close",
3832
3852
  tone: "neutral",
3833
3853
  onClick: r[0] ||= (e) => i("close")
3834
3854
  }, null, 8, ["label"])])
3835
- ], 8, lc)]));
3855
+ ], 8, dc)]));
3836
3856
  }
3837
- }), Ec = ["aria-label", "placeholder"], Dc = {
3857
+ }), Oc = {
3838
3858
  key: 0,
3839
3859
  class: "glim-pick-none"
3840
- }, Oc = {
3860
+ }, kc = {
3841
3861
  key: 0,
3842
3862
  class: "glim-eyebrow"
3843
- }, kc = { class: "glim-provider-pick" }, Ac = /* @__PURE__ */ j({
3863
+ }, Ac = { class: "glim-provider-pick" }, jc = /* @__PURE__ */ j({
3844
3864
  __name: "PickerWindow",
3845
3865
  props: {
3846
3866
  title: {},
@@ -3848,7 +3868,8 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3848
3868
  items: {},
3849
3869
  groups: { default: () => [] },
3850
3870
  text: {},
3851
- actions: { default: () => [] }
3871
+ actions: { default: () => [] },
3872
+ start: {}
3852
3873
  },
3853
3874
  emits: [
3854
3875
  "pick",
@@ -3856,73 +3877,100 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3856
3877
  "close"
3857
3878
  ],
3858
3879
  setup(e, { emit: t }) {
3859
- let n = e, r = t, i = Me(), a = z(""), o = U(null), s = U(null), c = U(null), l = () => !!i.default, u = !1;
3880
+ let n = e, r = t, i = Ne(), a = z(""), o = U(null), s = U(null), c = () => s.value?.input ?? null, l = on(), u = U(null), d = () => !!i.default, f = !1;
3860
3881
  L(() => {
3861
- u = l(), c.value && xt(c.value);
3862
- }), De(() => {
3863
- l() !== u && (u = l(), c.value && xt(c.value), o.value?.card && tr(o.value.card)?.focus());
3882
+ f = d(), u.value && St(u.value);
3883
+ }), Oe(() => {
3884
+ d() !== f && (f = d(), u.value && St(u.value), o.value?.card && rr(o.value.card)?.focus());
3864
3885
  });
3865
- let d = C(() => ({
3886
+ let p = C(() => ({
3866
3887
  label: n.text.back,
3867
3888
  labelKey: "common.back",
3868
- glyph: de,
3889
+ glyph: ue,
3869
3890
  onClick: () => (r("back"), !1)
3870
- })), f = () => l() ? [d.value, ...n.actions] : [{
3891
+ })), m = () => d() ? [p.value, ...n.actions] : [{
3871
3892
  label: n.text.close,
3872
3893
  labelKey: "common.close",
3873
3894
  glyph: g,
3874
3895
  wayOut: !0
3875
- }], p = C(() => tn(n.items, n.groups, a.value, Zt())), m = (e, t) => {
3896
+ }], h = C(() => nn(n.items, n.groups, a.value, Qt())), _ = (e, t) => {
3876
3897
  t && (e.preventDefault(), e.stopPropagation());
3877
- }, h = (e) => m(e, en(e.key, a.value, c.value, () => a.value = "")), ee = (e) => {
3878
- e.target !== e.currentTarget && m(e, nn(e.key, e.target, e.currentTarget, s.value));
3879
3898
  };
3880
- return (t, n) => (R(), w(ca, {
3899
+ function v() {
3900
+ a.value = "", c()?.focus();
3901
+ }
3902
+ let ee = (e) => _(e, tn(e.key, a.value, u.value, () => a.value = "")), te = (e) => {
3903
+ e.target !== e.currentTarget && _(e, rn(e.key, e.target, e.currentTarget, c()));
3904
+ };
3905
+ return (t, n) => (R(), w(ua, {
3881
3906
  ref_key: "win",
3882
3907
  ref: o,
3883
3908
  "data-glim": "PickerWindow",
3884
3909
  title: e.title,
3885
- class: "glim-pick-window",
3910
+ class: P(["glim-pick-window", {
3911
+ "glim-pick-window--form": d(),
3912
+ "glim-hue": G(l)
3913
+ }]),
3914
+ style: F(G(l) ?? void 0),
3886
3915
  text: {
3887
3916
  cancel: e.text.cancel,
3888
3917
  close: e.text.close
3889
3918
  },
3890
- actions: f(),
3919
+ start: e.start,
3920
+ "close-on-backdrop": !d(),
3921
+ actions: m(),
3891
3922
  onClose: n[1] ||= (e) => r("close")
3892
3923
  }, O({
3893
- default: Y(() => [l() ? V(t.$slots, "default", {}, void 0, void 0, 0) : (R(), E(S, { key: 1 }, [Le(D("input", {
3894
- ref_key: "search",
3924
+ default: Y(() => [d() ? V(t.$slots, "default", {}, void 0, void 0, 0) : (R(), E(S, { key: 1 }, [A(Ns, {
3925
+ ref_key: "field",
3895
3926
  ref: s,
3927
+ modelValue: a.value,
3896
3928
  "onUpdate:modelValue": n[0] ||= (e) => a.value = e,
3897
- class: "glim-input glim-pick-search",
3929
+ class: "glim-pick-search",
3930
+ glyph: G(y),
3898
3931
  type: "search",
3899
- "aria-label": e.text.search,
3932
+ label: e.text.search,
3900
3933
  placeholder: e.text.search,
3901
3934
  spellcheck: "false",
3902
3935
  autocomplete: "off",
3903
- onKeydown: h
3904
- }, null, 40, Ec), [[Pe, a.value]]), D("div", {
3936
+ onKeydown: ee
3937
+ }, O({ _: 2 }, [a.value ? {
3938
+ name: "after",
3939
+ fn: Y(() => [A(xe, {
3940
+ tip: e.text.clear,
3941
+ glyph: G(g),
3942
+ onClick: v
3943
+ }, null, 8, ["tip", "glyph"])]),
3944
+ key: "0"
3945
+ } : void 0]), 1032, [
3946
+ "modelValue",
3947
+ "glyph",
3948
+ "label",
3949
+ "placeholder"
3950
+ ]), D("div", {
3905
3951
  ref_key: "scroll",
3906
- ref: c,
3952
+ ref: u,
3907
3953
  class: "glim-pick-scroll",
3908
- onKeydown: ee
3909
- }, [p.value.length === 0 ? (R(), E("p", Dc, W(G(Z)(e.text.none, { query: a.value.trim() })), 1)) : (R(!0), E(S, { key: 1 }, B(p.value, (e) => (R(), E("section", {
3954
+ onKeydown: te
3955
+ }, [h.value.length === 0 ? (R(), E("p", Oc, W(G(Z)(e.text.none, { query: a.value.trim() })), 1)) : (R(!0), E(S, { key: 1 }, B(h.value, (e) => (R(), E("section", {
3910
3956
  key: e.id,
3911
3957
  class: "glim-pick-section"
3912
- }, [e.title ? (R(), E("h3", Oc, W(e.title), 1)) : T("", !0), D("ul", kc, [(R(!0), E(S, null, B(e.items, (e) => (R(), E("li", {
3958
+ }, [e.title ? (R(), E("h3", kc, W(e.title), 1)) : T("", !0), D("ul", Ac, [(R(!0), E(S, null, B(e.items, (e) => (R(), E("li", {
3913
3959
  key: e.id,
3914
- style: F(G(rn)(e.mark))
3960
+ style: F(G(an)(e.mark))
3915
3961
  }, [A($, {
3916
3962
  brand: "house",
3917
3963
  parts: [{
3918
3964
  name: e.label,
3965
+ sub: e.sub,
3919
3966
  onClick: () => r("pick", e.id)
3920
3967
  }],
3921
- "mark-class": G(wt)(e.mark) ? void 0 : "glim-house-mark",
3922
- hint: e.hint
3968
+ "mark-class": G(Tt)(e.mark) ? void 0 : "glim-house-mark",
3969
+ hint: e.hint,
3970
+ tip: e.tip
3923
3971
  }, O({ _: 2 }, [e.mark ? {
3924
3972
  name: "mark",
3925
- fn: Y(() => [G(wt)(e.mark) ? (R(), w(Nr, {
3973
+ fn: Y(() => [G(Tt)(e.mark) ? (R(), w(Fr, {
3926
3974
  key: 0,
3927
3975
  svg: e.mark.svg
3928
3976
  }, null, 8, ["svg"])) : (R(), w(H(e.mark), { key: 1 }))]),
@@ -3930,23 +3978,32 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3930
3978
  } : void 0]), 1032, [
3931
3979
  "parts",
3932
3980
  "mark-class",
3933
- "hint"
3981
+ "hint",
3982
+ "tip"
3934
3983
  ])], 4))), 128))])]))), 128))], 544)], 64))]),
3935
3984
  _: 2
3936
- }, [e.hint ? {
3985
+ }, [t.$slots.start ? {
3986
+ name: "start",
3987
+ fn: Y(() => [V(t.$slots, "start")]),
3988
+ key: "0"
3989
+ } : void 0, e.hint ? {
3937
3990
  name: "title",
3938
3991
  fn: Y(() => [k(W(e.title), 1), A(Q, {
3939
3992
  tip: e.hint,
3940
3993
  "on-accent": ""
3941
3994
  }, null, 8, ["tip"])]),
3942
- key: "0"
3995
+ key: "1"
3943
3996
  } : void 0]), 1032, [
3944
3997
  "title",
3998
+ "class",
3999
+ "style",
3945
4000
  "text",
4001
+ "start",
4002
+ "close-on-backdrop",
3946
4003
  "actions"
3947
4004
  ]));
3948
4005
  }
3949
- }), jc = /* @__PURE__ */ j({
4006
+ }), Mc = /* @__PURE__ */ j({
3950
4007
  __name: "RowMark",
3951
4008
  props: { on: { type: Boolean } },
3952
4009
  setup(e) {
@@ -3954,9 +4011,9 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3954
4011
  "data-glim": "RowMark",
3955
4012
  class: P(["glim-rowmark", { "glim-rowmark--on": e.on }]),
3956
4013
  "aria-hidden": "true"
3957
- }, [A(G(y))], 2));
4014
+ }, [A(G(b))], 2));
3958
4015
  }
3959
- }), Mc = { class: "glim-sr-only" }, Nc = /* @__PURE__ */ j({
4016
+ }), Nc = { class: "glim-sr-only" }, Pc = /* @__PURE__ */ j({
3960
4017
  inheritAttrs: !1,
3961
4018
  __name: "SidebarRowLink",
3962
4019
  props: {
@@ -3991,7 +4048,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
3991
4048
  e.view.countClass && e.count ? (R(), E(S, { key: 1 }, [D("span", {
3992
4049
  class: P(e.view.countClass),
3993
4050
  "aria-hidden": "true"
3994
- }, W(e.count.value), 3), D("span", Mc, W(e.count.label), 1)], 64)) : T("", !0)
4051
+ }, W(e.count.value), 3), D("span", Nc, W(e.count.label), 1)], 64)) : T("", !0)
3995
4052
  ]),
3996
4053
  _: 1
3997
4054
  }, 16, [
@@ -4006,13 +4063,13 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4006
4063
  "onBlur"
4007
4064
  ])), A(t, { state: G(i) }, null, 8, ["state"])], 64));
4008
4065
  }
4009
- }), Pc = {
4066
+ }), Fc = {
4010
4067
  key: 0,
4011
4068
  class: "glim-nav-row-slot"
4012
- }, Fc = {
4069
+ }, Ic = {
4013
4070
  key: 1,
4014
4071
  class: "glim-nav-row-slot"
4015
- }, Ic = /* @__PURE__ */ j({
4072
+ }, Lc = /* @__PURE__ */ j({
4016
4073
  inheritAttrs: !1,
4017
4074
  __name: "SidebarRow",
4018
4075
  props: {
@@ -4028,7 +4085,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4028
4085
  depth: {}
4029
4086
  },
4030
4087
  setup(e) {
4031
- let t = e, n = l("sidebar"), r = Me(), i = C(() => jn({
4088
+ let t = e, n = l("sidebar"), r = Ne(), i = C(() => Nn({
4032
4089
  mode: n.value,
4033
4090
  label: t.label,
4034
4091
  hasGlyph: !!t.glyph,
@@ -4055,15 +4112,15 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4055
4112
  ]),
4056
4113
  style: F([i.value.style, e.$attrs.style])
4057
4114
  }, [
4058
- e.$slots.before ? (R(), E("span", Pc, [V(e.$slots, "before")])) : T("", !0),
4059
- A(Nc, N({
4115
+ e.$slots.before ? (R(), E("span", Fc, [V(e.$slots, "before")])) : T("", !0),
4116
+ A(Pc, N({
4060
4117
  ...e.$attrs,
4061
4118
  ...a.value,
4062
4119
  class: void 0,
4063
4120
  style: void 0
4064
4121
  }, { "class-name": "glim-nav-row-main" }), null, 16),
4065
- e.$slots.after ? (R(), E("span", Fc, [V(e.$slots, "after")])) : T("", !0)
4066
- ], 6)) : (R(), w(Nc, N({
4122
+ e.$slots.after ? (R(), E("span", Ic, [V(e.$slots, "after")])) : T("", !0)
4123
+ ], 6)) : (R(), w(Pc, N({
4067
4124
  key: 1,
4068
4125
  "data-glim": "SidebarRow"
4069
4126
  }, {
@@ -4080,7 +4137,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4080
4137
  "style"
4081
4138
  ]));
4082
4139
  }
4083
- }), Lc = ["data-glim-title", "aria-labelledby"], Rc = { class: "glim-sheet-panel" }, zc = ["id"], Bc = { class: "glim-sheet-body" }, Vc = /* @__PURE__ */ j({
4140
+ }), Rc = ["data-glim-title", "aria-labelledby"], zc = { class: "glim-sheet-panel" }, Bc = ["id"], Vc = { class: "glim-sheet-body" }, Hc = /* @__PURE__ */ j({
4084
4141
  __name: "Sheet",
4085
4142
  props: {
4086
4143
  open: { type: Boolean },
@@ -4091,9 +4148,9 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4091
4148
  },
4092
4149
  emits: ["close"],
4093
4150
  setup(t, { emit: n }) {
4094
- let r = t, i = n, a = Me(), o = z(null), s = K(), c = C(() => r.start !== void 0 || !!a.start), l;
4151
+ let r = t, i = n, a = Ne(), o = z(null), s = K(), c = C(() => r.start !== void 0 || !!a.start), l;
4095
4152
  return J([() => r.open, o], ([e, t]) => {
4096
- l?.(), l = void 0, e && t && (l = Yt(t, () => i("close")));
4153
+ l?.(), l = void 0, e && t && (l = Xt(t, () => i("close")));
4097
4154
  }, { flush: "post" }), I(() => l?.()), (n, r) => t.open ? (R(), E("dialog", {
4098
4155
  key: 0,
4099
4156
  "data-glim": "Sheet",
@@ -4102,7 +4159,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4102
4159
  ref: o,
4103
4160
  "aria-labelledby": G(s),
4104
4161
  class: "glim-sheet"
4105
- }, [D("div", Rc, [
4162
+ }, [D("div", zc, [
4106
4163
  D("h2", {
4107
4164
  id: G(s),
4108
4165
  class: "glim-sheet-title"
@@ -4114,9 +4171,9 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4114
4171
  }, {
4115
4172
  default: Y(() => [k(W(t.title), 1)]),
4116
4173
  _: 1
4117
- })], 8, zc),
4118
- D("div", Bc, [V(n.$slots, "default")]),
4119
- A(ia, {
4174
+ })], 8, Bc),
4175
+ D("div", Vc, [V(n.$slots, "default")]),
4176
+ A(oa, {
4120
4177
  actions: t.actions,
4121
4178
  start: t.start,
4122
4179
  "has-start": c.value,
@@ -4132,12 +4189,12 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4132
4189
  "has-start",
4133
4190
  "text"
4134
4191
  ])
4135
- ])], 8, Lc)) : T("", !0);
4192
+ ])], 8, Rc)) : T("", !0);
4136
4193
  }
4137
- }), Hc = {
4194
+ }), Uc = {
4138
4195
  "data-glim": "SignInField",
4139
4196
  class: "glim-signin-field"
4140
- }, Uc = ["for"], Wc = /* @__PURE__ */ j({
4197
+ }, Wc = ["for"], Gc = /* @__PURE__ */ j({
4141
4198
  __name: "SignInField",
4142
4199
  props: {
4143
4200
  label: {},
@@ -4146,21 +4203,21 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4146
4203
  },
4147
4204
  setup(e) {
4148
4205
  let t = e, n = z(!1), r = (e) => {
4149
- n.value = Ot(document.getElementById(t.for), t.label, t.hint, e);
4206
+ n.value = kt(document.getElementById(t.for), t.label, t.hint, e);
4150
4207
  };
4151
- return L(() => r()), J(() => [t.label, t.hint], (e, [t]) => r(t)), (t, r) => (R(), E("div", Hc, [D("label", {
4208
+ return L(() => r()), J(() => [t.label, t.hint], (e, [t]) => r(t)), (t, r) => (R(), E("div", Uc, [D("label", {
4152
4209
  for: t.$props.for,
4153
4210
  class: P(n.value ? "glim-sr-only" : "glim-signin-label")
4154
4211
  }, [k(W(e.label), 1), e.hint ? (R(), w(Q, {
4155
4212
  key: 0,
4156
4213
  tip: e.hint
4157
- }, null, 8, ["tip"])) : T("", !0)], 10, Uc), V(t.$slots, "default")]));
4214
+ }, null, 8, ["tip"])) : T("", !0)], 10, Wc), V(t.$slots, "default")]));
4158
4215
  }
4159
- }), Gc = [
4216
+ }), Kc = [
4160
4217
  "aria-label",
4161
4218
  "aria-invalid",
4162
4219
  "aria-describedby"
4163
- ], Kc = /* @__PURE__ */ j({
4220
+ ], qc = /* @__PURE__ */ j({
4164
4221
  inheritAttrs: !1,
4165
4222
  __name: "TextField",
4166
4223
  props: /*@__PURE__*/ M({
@@ -4174,11 +4231,11 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4174
4231
  }),
4175
4232
  emits: ["update:modelValue"],
4176
4233
  setup(e, { expose: t }) {
4177
- let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => Un({
4234
+ let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => Gn({
4178
4235
  width: n.width,
4179
4236
  mono: n.mono
4180
- })), o = je(), s = K(), c = C(() => dt(n.error, o.id ?? s, o["aria-describedby"])), l = U(null);
4181
- return t({ input: l }), (t, n) => (R(), E(S, null, [Le(D("input", N({ "data-glim": "TextField" }, t.$attrs, {
4237
+ })), o = Me(), s = K(), c = C(() => ft(n.error, o.id ?? s, o["aria-describedby"])), l = U(null);
4238
+ return t({ input: l }), (t, n) => (R(), E(S, null, [Re(D("input", N({ "data-glim": "TextField" }, t.$attrs, {
4182
4239
  ref_key: "input",
4183
4240
  ref: l,
4184
4241
  "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
@@ -4187,7 +4244,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4187
4244
  "aria-invalid": c.value.invalid,
4188
4245
  "aria-describedby": c.value.describedBy,
4189
4246
  class: a.value
4190
- }), null, 16, Gc), [[Pe, r.value]]), c.value.errorId ? (R(), w(Xi, {
4247
+ }), null, 16, Kc), [[Fe, r.value]]), c.value.errorId ? (R(), w(Qi, {
4191
4248
  key: 0,
4192
4249
  id: c.value.errorId
4193
4250
  }, {
@@ -4195,26 +4252,26 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4195
4252
  _: 1
4196
4253
  }, 8, ["id"])) : T("", !0)], 64));
4197
4254
  }
4198
- }), qc = {
4255
+ }), Jc = {
4199
4256
  "data-glim": "SignInCard",
4200
4257
  class: "glim-signin"
4201
- }, Jc = { class: "glim-signin-head" }, Yc = {
4258
+ }, Yc = { class: "glim-signin-head" }, Xc = {
4202
4259
  key: 0,
4203
4260
  class: "glim-signin-logo",
4204
4261
  "aria-hidden": "true"
4205
- }, Xc = ["src"], Zc = { class: "glim-signin-name" }, Qc = {
4262
+ }, Zc = ["src"], Qc = { class: "glim-signin-name" }, $c = {
4206
4263
  key: 0,
4207
4264
  class: "glim-signin-error",
4208
4265
  role: "alert"
4209
- }, $c = {
4266
+ }, el = {
4210
4267
  key: 0,
4211
4268
  class: "glim-signin-note",
4212
4269
  role: "status"
4213
- }, el = { class: "glim-signin-hint" }, tl = {
4270
+ }, tl = { class: "glim-signin-hint" }, nl = {
4214
4271
  key: 3,
4215
4272
  class: "glim-signin-error",
4216
4273
  role: "alert"
4217
- }, nl = /* @__PURE__ */ j({
4274
+ }, rl = /* @__PURE__ */ j({
4218
4275
  __name: "SignInCard",
4219
4276
  props: {
4220
4277
  logo: {},
@@ -4242,7 +4299,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4242
4299
  onSetPassword: {}
4243
4300
  },
4244
4301
  setup(e) {
4245
- let t = e, n = Me(), r = ct(() => t), i = U(r.state()), a = r.subscribe(() => i.value = r.state());
4302
+ let t = e, n = Ne(), r = lt(() => t), i = U(r.state()), a = r.subscribe(() => i.value = r.state());
4246
4303
  I(a);
4247
4304
  let o = K(), s = (e) => `${t.idPrefix ?? o}-${e}`, c = C(() => ({
4248
4305
  signIn: "signIn",
@@ -4256,32 +4313,32 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4256
4313
  hide: t.text.hide
4257
4314
  })), u = U(null), d = "";
4258
4315
  function p() {
4259
- let e = n.step ? "step" : Nn(i.value);
4260
- e !== d && ((d || t.autoFocus) && ht(u.value), d = e);
4316
+ let e = n.step ? "step" : Fn(i.value);
4317
+ e !== d && ((d || t.autoFocus) && gt(u.value), d = e);
4261
4318
  }
4262
- return L(p), De(p), J(() => i.value.refusal?.count, (e, t, n) => {
4319
+ return L(p), Oe(p), J(() => i.value.refusal?.count, (e, t, n) => {
4263
4320
  let r = i.value.refusal;
4264
- r && n(An(u.value, r));
4265
- }, { flush: "post" }), (t, n) => (R(), E("div", qc, [D("div", {
4321
+ r && n(Mn(u.value, r));
4322
+ }, { flush: "post" }), (t, n) => (R(), E("div", Jc, [D("div", {
4266
4323
  ref_key: "card",
4267
4324
  ref: u,
4268
4325
  class: "glim-card glim-signin-card"
4269
- }, [D("div", Jc, [e.logo || t.$slots.logo ? (R(), E("span", Yc, [V(t.$slots, "logo", {}, () => [D("img", {
4326
+ }, [D("div", Yc, [e.logo || t.$slots.logo ? (R(), E("span", Xc, [V(t.$slots, "logo", {}, () => [D("img", {
4270
4327
  src: e.logo,
4271
4328
  alt: "",
4272
4329
  draggable: "false"
4273
- }, null, 8, Xc)])])) : T("", !0), D("h1", Zc, W(e.appName), 1)]), t.$slots.step ? V(t.$slots, "step", {}, void 0, void 0, 0) : i.value.view === "reset" ? (R(), E("form", {
4330
+ }, null, 8, Zc)])])) : T("", !0), D("h1", Qc, W(e.appName), 1)]), t.$slots.step ? V(t.$slots, "step", {}, void 0, void 0, 0) : i.value.view === "reset" ? (R(), E("form", {
4274
4331
  key: 1,
4275
4332
  class: "glim-signin-form",
4276
4333
  novalidate: "",
4277
4334
  onSubmit: n[4] ||= X((e) => G(r).submit(), ["prevent"])
4278
4335
  }, [
4279
- A(Wc, {
4336
+ A(Gc, {
4280
4337
  label: e.text.resetCode,
4281
4338
  for: s("reset-code"),
4282
4339
  hint: e.text.resetCodeTip
4283
4340
  }, {
4284
- default: Y(() => [A(Kc, {
4341
+ default: Y(() => [A(qc, {
4285
4342
  id: s("reset-code"),
4286
4343
  "data-signin-field": "resetCode",
4287
4344
  class: "glim-signin-log-code",
@@ -4298,11 +4355,11 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4298
4355
  "for",
4299
4356
  "hint"
4300
4357
  ]),
4301
- A(Wc, {
4358
+ A(Gc, {
4302
4359
  label: e.text.newPassword,
4303
4360
  for: s("new")
4304
4361
  }, {
4305
- default: Y(() => [A(so, {
4362
+ default: Y(() => [A(lo, {
4306
4363
  id: s("new"),
4307
4364
  "data-signin-field": "newPassword",
4308
4365
  "model-value": i.value.newPassword,
@@ -4316,11 +4373,11 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4316
4373
  ])]),
4317
4374
  _: 1
4318
4375
  }, 8, ["label", "for"]),
4319
- A(Wc, {
4376
+ A(Gc, {
4320
4377
  label: e.text.confirmPassword,
4321
4378
  for: s("confirm")
4322
4379
  }, {
4323
- default: Y(() => [A(so, {
4380
+ default: Y(() => [A(lo, {
4324
4381
  id: s("confirm"),
4325
4382
  "data-signin-field": "confirm",
4326
4383
  "model-value": i.value.confirm,
@@ -4334,14 +4391,14 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4334
4391
  ])]),
4335
4392
  _: 1
4336
4393
  }, 8, ["label", "for"]),
4337
- i.value.error ? (R(), E("p", Qc, W(i.value.error), 1)) : T("", !0),
4394
+ i.value.error ? (R(), E("p", $c, W(i.value.error), 1)) : T("", !0),
4338
4395
  A(f, {
4339
4396
  label: e.text.setPassword,
4340
4397
  "label-key": c.value.setPassword,
4341
4398
  tone: "accent",
4342
4399
  type: "submit",
4343
4400
  "data-signin": "set-password",
4344
- disabled: G(_n)(i.value),
4401
+ disabled: G(yn)(i.value),
4345
4402
  busy: i.value.busy === "setPassword",
4346
4403
  title: i.value.busy === "setPassword" ? e.text.saving : void 0
4347
4404
  }, null, 8, [
@@ -4369,13 +4426,13 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4369
4426
  novalidate: "",
4370
4427
  onSubmit: n[10] ||= X((e) => G(r).submit(), ["prevent"])
4371
4428
  }, [
4372
- e.note ? (R(), E("p", $c, W(e.note), 1)) : T("", !0),
4429
+ e.note ? (R(), E("p", el, W(e.note), 1)) : T("", !0),
4373
4430
  i.value.viaPasskey ? T("", !0) : V(t.$slots, "fields", {}, void 0, void 0, 1),
4374
- Le(A(Wc, {
4431
+ Re(A(Gc, {
4375
4432
  label: e.text.password,
4376
4433
  for: s("password")
4377
4434
  }, {
4378
- default: Y(() => [A(so, {
4435
+ default: Y(() => [A(lo, {
4379
4436
  id: s("password"),
4380
4437
  "data-signin-field": "password",
4381
4438
  "model-value": i.value.password,
@@ -4388,13 +4445,13 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4388
4445
  "text"
4389
4446
  ])]),
4390
4447
  _: 1
4391
- }, 8, ["label", "for"]), [[Fe, !i.value.viaPasskey]]),
4392
- i.value.needCode ? (R(), w(Wc, {
4448
+ }, 8, ["label", "for"]), [[Ie, !i.value.viaPasskey]]),
4449
+ i.value.needCode ? (R(), w(Gc, {
4393
4450
  key: 2,
4394
4451
  label: e.text.code,
4395
4452
  for: s("code")
4396
4453
  }, {
4397
- default: Y(() => [A(Kc, {
4454
+ default: Y(() => [A(qc, {
4398
4455
  id: s("code"),
4399
4456
  "data-signin-field": "code",
4400
4457
  class: "glim-signin-code",
@@ -4404,17 +4461,17 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4404
4461
  spellcheck: "false",
4405
4462
  placeholder: "000000",
4406
4463
  "onUpdate:modelValue": n[6] ||= (e) => G(r).set("code", e)
4407
- }, null, 8, ["id", "model-value"]), D("p", el, W(e.text.codeHint), 1)]),
4464
+ }, null, 8, ["id", "model-value"]), D("p", tl, W(e.text.codeHint), 1)]),
4408
4465
  _: 1
4409
4466
  }, 8, ["label", "for"])) : T("", !0),
4410
- i.value.error ? (R(), E("p", tl, W(i.value.error), 1)) : T("", !0),
4467
+ i.value.error ? (R(), E("p", nl, W(i.value.error), 1)) : T("", !0),
4411
4468
  A(f, {
4412
4469
  label: e.text.signIn,
4413
4470
  "label-key": c.value.signIn,
4414
4471
  tone: "accent",
4415
4472
  type: "submit",
4416
4473
  "data-signin": "submit",
4417
- disabled: G(Mn)(i.value),
4474
+ disabled: G(Pn)(i.value),
4418
4475
  busy: i.value.busy === "signIn",
4419
4476
  title: i.value.busy === "signIn" ? e.text.signingIn : void 0
4420
4477
  }, null, 8, [
@@ -4468,13 +4525,13 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4468
4525
  ])) : T("", !0)
4469
4526
  ], 32))], 512)]));
4470
4527
  }
4471
- }), rl = {
4528
+ }), il = {
4472
4529
  key: 0,
4473
4530
  class: "glim-skeleton-block glim-skeleton-tile"
4474
- }, il = {
4531
+ }, al = {
4475
4532
  key: 1,
4476
4533
  class: "glim-skeleton-block glim-skeleton-badge"
4477
- }, al = /* @__PURE__ */ j({
4534
+ }, ol = /* @__PURE__ */ j({
4478
4535
  __name: "SkeletonRow",
4479
4536
  props: {
4480
4537
  delay: {},
@@ -4488,7 +4545,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4488
4545
  }
4489
4546
  },
4490
4547
  setup(e) {
4491
- let t = e, n = C(() => Pn({
4548
+ let t = e, n = C(() => In({
4492
4549
  delay: t.delay,
4493
4550
  tile: t.tile,
4494
4551
  badge: t.badge
@@ -4499,18 +4556,18 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4499
4556
  class: P(n.value.className),
4500
4557
  style: F(n.value.style)
4501
4558
  }, [
4502
- n.value.tile ? (R(), E("span", rl)) : T("", !0),
4559
+ n.value.tile ? (R(), E("span", il)) : T("", !0),
4503
4560
  t[0] ||= D("span", { class: "glim-skeleton-block glim-skeleton-name" }, null, -1),
4504
- n.value.badge ? (R(), E("span", il)) : T("", !0)
4561
+ n.value.badge ? (R(), E("span", al)) : T("", !0)
4505
4562
  ], 6));
4506
4563
  }
4507
- }), ol = ["data-glim-title", "aria-labelledby"], sl = {
4564
+ }), sl = ["data-glim-title", "aria-labelledby"], cl = {
4508
4565
  key: 0,
4509
4566
  class: "glim-panel-heading"
4510
- }, cl = ["id"], ll = {
4567
+ }, ll = ["id"], ul = {
4511
4568
  key: 1,
4512
4569
  class: "glim-subcard-end"
4513
- }, ul = /* @__PURE__ */ j({
4570
+ }, dl = /* @__PURE__ */ j({
4514
4571
  __name: "SubCard",
4515
4572
  props: {
4516
4573
  title: {},
@@ -4524,23 +4581,23 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4524
4581
  class: P(["glim-subcard", { "glim-subcard--titled": t.title }]),
4525
4582
  "aria-labelledby": t.title ? G(n) : void 0
4526
4583
  }, [
4527
- t.title ? (R(), E("h3", sl, [A(e, {
4584
+ t.title ? (R(), E("h3", cl, [A(e, {
4528
4585
  tone: "heading",
4529
4586
  size: "heading",
4530
4587
  wrap: ""
4531
4588
  }, {
4532
- default: Y(() => [D("span", { id: G(n) }, W(t.title), 9, cl), t.hint ? (R(), w(Q, {
4589
+ default: Y(() => [D("span", { id: G(n) }, W(t.title), 9, ll), t.hint ? (R(), w(Q, {
4533
4590
  key: 0,
4534
4591
  tip: t.hint,
4535
4592
  "on-accent": ""
4536
4593
  }, null, 8, ["tip"])) : T("", !0)]),
4537
4594
  _: 1
4538
4595
  })])) : T("", !0),
4539
- r.$slots.end ? (R(), E("div", ll, [V(r.$slots, "end")])) : T("", !0),
4596
+ r.$slots.end ? (R(), E("div", ul, [V(r.$slots, "end")])) : T("", !0),
4540
4597
  V(r.$slots, "default")
4541
- ], 10, ol));
4598
+ ], 10, sl));
4542
4599
  }
4543
- }), dl = ["aria-label"], fl = { key: 0 }, pl = { key: 0 }, ml = ["colspan"], hl = /* @__PURE__ */ j({
4600
+ }), fl = ["aria-label"], pl = { key: 0 }, ml = { key: 0 }, hl = ["colspan"], gl = /* @__PURE__ */ j({
4544
4601
  __name: "Table",
4545
4602
  props: {
4546
4603
  label: {},
@@ -4554,27 +4611,27 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4554
4611
  "data-glim": "Table",
4555
4612
  class: "glim-table",
4556
4613
  "aria-label": e.label
4557
- }, [n.value ? (R(), E("thead", fl, [D("tr", null, [(R(!0), E(S, null, B(e.columns, (e) => (R(), E("th", {
4614
+ }, [n.value ? (R(), E("thead", pl, [D("tr", null, [(R(!0), E(S, null, B(e.columns, (e) => (R(), E("th", {
4558
4615
  key: e.key,
4559
4616
  scope: "col",
4560
4617
  class: P({ "glim-table-end": e.end })
4561
4618
  }, 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", {
4562
4619
  key: e.key,
4563
- class: P(G(Hn)(e))
4620
+ class: P(G(Wn)(e))
4564
4621
  }, [V(t.$slots, "cell", {
4565
4622
  row: n,
4566
4623
  column: e,
4567
4624
  value: r(n, e)
4568
- }, () => [k(W(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (R(), E("tr", pl, [D("td", {
4625
+ }, () => [k(W(r(n, e)), 1)])], 2))), 128))]))), 128)), e.more ? (R(), E("tr", ml, [D("td", {
4569
4626
  colspan: e.columns.length,
4570
4627
  class: "glim-table-muted"
4571
- }, W(e.more), 9, ml)])) : T("", !0)])], 8, dl));
4628
+ }, W(e.more), 9, hl)])) : T("", !0)])], 8, fl));
4572
4629
  }
4573
- }), gl = [
4630
+ }), _l = [
4574
4631
  "aria-label",
4575
4632
  "aria-invalid",
4576
4633
  "aria-describedby"
4577
- ], _l = /* @__PURE__ */ j({
4634
+ ], vl = /* @__PURE__ */ j({
4578
4635
  inheritAttrs: !1,
4579
4636
  __name: "TextArea",
4580
4637
  props: /*@__PURE__*/ M({
@@ -4588,12 +4645,12 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4588
4645
  }),
4589
4646
  emits: ["update:modelValue"],
4590
4647
  setup(e, { expose: t }) {
4591
- let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => Un({
4648
+ let n = e, r = q(e, "modelValue"), i = x(() => n.label), a = C(() => Gn({
4592
4649
  width: n.width,
4593
4650
  mono: n.mono,
4594
4651
  area: !0
4595
- })), o = je(), s = K(), c = C(() => dt(n.error, o.id ?? s, o["aria-describedby"])), l = U(null);
4596
- return t({ input: l }), (t, n) => (R(), E(S, null, [Le(D("textarea", N({ "data-glim": "TextArea" }, t.$attrs, {
4652
+ })), o = Me(), s = K(), c = C(() => ft(n.error, o.id ?? s, o["aria-describedby"])), l = U(null);
4653
+ return t({ input: l }), (t, n) => (R(), E(S, null, [Re(D("textarea", N({ "data-glim": "TextArea" }, t.$attrs, {
4597
4654
  ref_key: "input",
4598
4655
  ref: l,
4599
4656
  "onUpdate:modelValue": n[0] ||= (e) => r.value = e,
@@ -4601,7 +4658,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4601
4658
  "aria-invalid": c.value.invalid,
4602
4659
  "aria-describedby": c.value.describedBy,
4603
4660
  class: a.value
4604
- }), null, 16, gl), [[Pe, r.value]]), c.value.errorId ? (R(), w(Xi, {
4661
+ }), null, 16, _l), [[Fe, r.value]]), c.value.errorId ? (R(), w(Qi, {
4605
4662
  key: 0,
4606
4663
  id: c.value.errorId
4607
4664
  }, {
@@ -4609,7 +4666,7 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4609
4666
  _: 1
4610
4667
  }, 8, ["id"])) : T("", !0)], 64));
4611
4668
  }
4612
- }), vl = { class: "glim-toast-body" }, yl = { class: "glim-toast-message" }, bl = { key: 0 }, xl = ["aria-label"], Sl = /* @__PURE__ */ j({
4669
+ }), yl = { class: "glim-toast-body" }, bl = { class: "glim-toast-message" }, xl = { key: 0 }, Sl = ["aria-label"], Cl = /* @__PURE__ */ j({
4613
4670
  __name: "ToastCard",
4614
4671
  props: {
4615
4672
  id: {},
@@ -4637,13 +4694,13 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4637
4694
  onMouseleave: n[3] ||= (t) => r("mouseLeave", e.id),
4638
4695
  onFocusin: n[4] ||= (t) => r("focus", e.id),
4639
4696
  onFocusout: n[5] ||= (t) => r("blur", e.id),
4640
- onKeydown: n[6] ||= Re(X((t) => r("dismiss", e.id), ["stop"]), ["esc"])
4697
+ onKeydown: n[6] ||= ze(X((t) => r("dismiss", e.id), ["stop"]), ["esc"])
4641
4698
  }, [
4642
- A(G(b), {
4643
- mark: G(qe)[e.severity],
4699
+ A(G(m), {
4700
+ mark: G(Je)[e.severity],
4644
4701
  class: P(`glim-toast-glyph glim-toast-glyph--${e.severity}`)
4645
4702
  }, null, 8, ["mark", "class"]),
4646
- D("div", vl, [D("p", yl, [(R(!0), E(S, null, B(G(Fn)(e.message), (e, t) => (R(), E(S, { key: t }, [t > 0 ? (R(), E("wbr", bl)) : T("", !0), k(W(e), 1)], 64))), 128))]), e.action ? (R(), w(f, {
4703
+ D("div", yl, [D("p", bl, [(R(!0), E(S, null, B(G(Ln)(e.message), (e, t) => (R(), E(S, { key: t }, [t > 0 ? (R(), E("wbr", xl)) : T("", !0), k(W(e), 1)], 64))), 128))]), e.action ? (R(), w(f, {
4647
4704
  key: 0,
4648
4705
  class: "glim-toast-action",
4649
4706
  tone: "subtle",
@@ -4656,19 +4713,19 @@ var Aa = { class: "glim-instance-rows" }, ja = ["data-instance"], Ma = {
4656
4713
  "aria-label": e.dismissLabel,
4657
4714
  class: "glim-btn-bare glim-toast-dismiss",
4658
4715
  onClick: n[1] ||= (t) => r("dismiss", e.id)
4659
- }, [A(G(b), { mark: G(Ge).dismiss }, null, 8, ["mark"])], 8, xl)
4716
+ }, [A(G(m), { mark: G(Ke).dismiss }, null, 8, ["mark"])], 8, Sl)
4660
4717
  ], 32));
4661
4718
  }
4662
- }), Cl = (e) => `on${e.charAt(0).toUpperCase()}${e.slice(1)}`;
4663
- function wl(e, t, n, r) {
4664
- for (let i of Object.values(t)) typeof n[Cl(i)] == "function" && r(`${e} ${i}`);
4719
+ }), wl = (e) => `on${e.charAt(0).toUpperCase()}${e.slice(1)}`;
4720
+ function Tl(e, t, n, r) {
4721
+ for (let i of Object.values(t)) typeof n[wl(i)] == "function" && r(`${e} ${i}`);
4665
4722
  return (e, ...r) => {
4666
- let i = t[e], a = i === void 0 ? void 0 : n[Cl(i)];
4723
+ let i = t[e], a = i === void 0 ? void 0 : n[wl(i)];
4667
4724
  typeof a == "function" && a(...r);
4668
4725
  };
4669
4726
  }
4670
4727
  // src/ToastViewport.vue
4671
- var Tl = /* @__PURE__ */ j({
4728
+ var El = /* @__PURE__ */ j({
4672
4729
  inheritAttrs: !1,
4673
4730
  __name: "ToastViewport",
4674
4731
  props: {
@@ -4687,12 +4744,12 @@ var Tl = /* @__PURE__ */ j({
4687
4744
  "blur"
4688
4745
  ],
4689
4746
  setup(e, { emit: t }) {
4690
- let n = e, r = t, i = wl("ToastViewport", {
4747
+ let n = e, r = t, i = Tl("ToastViewport", {
4691
4748
  mouseEnter: "enter",
4692
4749
  mouseLeave: "leave",
4693
4750
  focus: "focusin",
4694
4751
  blur: "focusout"
4695
- }, n, $n);
4752
+ }, n, tr);
4696
4753
  function a(e) {
4697
4754
  r("mouseEnter", e), i("mouseEnter", e);
4698
4755
  }
@@ -4709,18 +4766,18 @@ var Tl = /* @__PURE__ */ j({
4709
4766
  return J(() => n.toasts, (e) => {
4710
4767
  let t = new Set(e.map((e) => e.id));
4711
4768
  for (let e of l) t.has(e) || l.delete(e);
4712
- for (let t of e) l.has(t.id) || (l.add(t.id), Xe(t.message, Gn(t.severity)));
4769
+ for (let t of e) l.has(t.id) || (l.add(t.id), Ze(t.message, qn(t.severity)));
4713
4770
  }, {
4714
4771
  immediate: !0,
4715
4772
  deep: 1,
4716
4773
  flush: "post"
4717
4774
  }), (t, n) => (R(), E(S, null, [
4718
- D("div", N({ class: "glim-sr-only" }, G(Mt)("polite")), null, 16),
4719
- D("div", N({ class: "glim-sr-only" }, G(Mt)("assertive")), null, 16),
4775
+ D("div", N({ class: "glim-sr-only" }, G(Nt)("polite")), null, 16),
4776
+ D("div", N({ class: "glim-sr-only" }, G(Nt)("assertive")), null, 16),
4720
4777
  D("div", N({
4721
4778
  "data-glim": "ToastViewport",
4722
4779
  class: "glim-toast-stack"
4723
- }, t.$attrs), [(R(!0), E(S, null, B(e.toasts, (t) => (R(), w(Sl, {
4780
+ }, t.$attrs), [(R(!0), E(S, null, B(e.toasts, (t) => (R(), w(Cl, {
4724
4781
  id: t.id,
4725
4782
  key: t.id,
4726
4783
  message: t.message,
@@ -4741,7 +4798,7 @@ var Tl = /* @__PURE__ */ j({
4741
4798
  ]))), 128))], 16)
4742
4799
  ], 64));
4743
4800
  }
4744
- }), El = ["aria-label"], Dl = [
4801
+ }), Dl = ["aria-label"], Ol = [
4745
4802
  "aria-level",
4746
4803
  "aria-posinset",
4747
4804
  "aria-setsize",
@@ -4752,11 +4809,11 @@ var Tl = /* @__PURE__ */ j({
4752
4809
  "onClick",
4753
4810
  "onDblclick",
4754
4811
  "onKeydown"
4755
- ], Ol = ["onClick"], kl = {
4812
+ ], kl = ["onClick"], Al = {
4756
4813
  key: 0,
4757
4814
  class: "glim-tree-glyph",
4758
4815
  "aria-hidden": "true"
4759
- }, Al = { class: "glim-tree-label" }, jl = /* @__PURE__ */ j({
4816
+ }, jl = { class: "glim-tree-label" }, Ml = /* @__PURE__ */ j({
4760
4817
  __name: "Tree",
4761
4818
  props: /*@__PURE__*/ M({
4762
4819
  label: {},
@@ -4769,12 +4826,12 @@ var Tl = /* @__PURE__ */ j({
4769
4826
  }),
4770
4827
  emits: /*@__PURE__*/ M(["activate"], ["update:modelValue", "update:open"]),
4771
4828
  setup(e, { emit: t }) {
4772
- let n = e, r = q(e, "modelValue"), i = q(e, "open"), a = t, o = ke(/* @__PURE__ */ new Map()), s = /* @__PURE__ */ new Set(), c = U(null);
4829
+ let n = e, r = q(e, "modelValue"), i = q(e, "open"), a = t, o = Ae(/* @__PURE__ */ new Map()), s = /* @__PURE__ */ new Set(), c = U(null);
4773
4830
  function l(e) {
4774
4831
  s.has(e) || (s.add(e), Promise.resolve(n.load(e)).then((t) => o.set(e, t), () => s.delete(e)));
4775
4832
  }
4776
4833
  J(i, (e) => [null, ...e].forEach(l), { immediate: !0 });
4777
- let u = C(() => Jn(o, i.value)), d = C(() => Math.max(u.value.findIndex((e) => e.node.id === r.value), 0));
4834
+ let u = C(() => Xn(o, i.value)), d = C(() => Math.max(u.value.findIndex((e) => e.node.id === r.value), 0));
4778
4835
  function f(e) {
4779
4836
  i.value = i.value.includes(e) ? i.value.filter((t) => t !== e) : [...i.value, e];
4780
4837
  }
@@ -4785,8 +4842,8 @@ var Tl = /* @__PURE__ */ j({
4785
4842
  e.preventDefault(), r.value = n, e.key === "Enter" && a("activate", n);
4786
4843
  return;
4787
4844
  }
4788
- let i = Yn(u.value, t, e.key, getComputedStyle(c.value).direction === "rtl");
4789
- i && (e.preventDefault(), "focus" in i ? (r.value = i.focus, yt(c.value, i.focus)) : f("open" in i ? i.open : i.close));
4845
+ let i = Zn(u.value, t, e.key, getComputedStyle(c.value).direction === "rtl");
4846
+ i && (e.preventDefault(), "focus" in i ? (r.value = i.focus, bt(c.value, i.focus)) : f("open" in i ? i.open : i.close));
4790
4847
  }
4791
4848
  return (t, n) => (R(), E("div", {
4792
4849
  ref_key: "tree",
@@ -4816,15 +4873,15 @@ var Tl = /* @__PURE__ */ j({
4816
4873
  "aria-hidden": "true",
4817
4874
  onClick: X((t) => e.node.hasChildren && f(e.node.id), ["stop"]),
4818
4875
  onDblclick: n[0] ||= X(() => {}, ["stop"])
4819
- }, [e.node.hasChildren ? (R(), w(G(ue), { key: 0 })) : T("", !0)], 40, Ol),
4820
- e.node.glyph ? (R(), E("span", kl, [(R(), w(H(e.open && e.node.openGlyph || e.node.glyph)))])) : T("", !0),
4821
- D("span", Al, W(e.node.label), 1)
4822
- ], 16, Dl))), 128))], 8, El));
4876
+ }, [e.node.hasChildren ? (R(), w(G(le), { key: 0 })) : T("", !0)], 40, kl),
4877
+ e.node.glyph ? (R(), E("span", Al, [(R(), w(H(e.open && e.node.openGlyph || e.node.glyph)))])) : T("", !0),
4878
+ D("span", jl, W(e.node.label), 1)
4879
+ ], 16, Ol))), 128))], 8, Dl));
4823
4880
  }
4824
- }), Ml = ["data-glim-title"], Nl = { class: "glim-notice-title" }, Pl = { class: "glim-notice-reason" }, Fl = {
4881
+ }), Nl = ["data-glim-title"], Pl = { class: "glim-notice-title" }, Fl = { class: "glim-notice-reason" }, Il = {
4825
4882
  key: 0,
4826
4883
  class: "glim-notice-action"
4827
- }, Il = /* @__PURE__ */ j({
4884
+ }, Ll = /* @__PURE__ */ j({
4828
4885
  __name: "UnavailableNotice",
4829
4886
  props: { title: {} },
4830
4887
  setup(e) {
@@ -4833,12 +4890,12 @@ var Tl = /* @__PURE__ */ j({
4833
4890
  "data-glim-title": e.title,
4834
4891
  class: "glim-notice"
4835
4892
  }, [
4836
- D("p", Nl, W(e.title), 1),
4837
- D("p", Pl, [V(t.$slots, "default")]),
4838
- t.$slots.action ? (R(), E("div", Fl, [V(t.$slots, "action")])) : T("", !0)
4839
- ], 8, Ml));
4893
+ D("p", Pl, W(e.title), 1),
4894
+ D("p", Fl, [V(t.$slots, "default")]),
4895
+ t.$slots.action ? (R(), E("div", Il, [V(t.$slots, "action")])) : T("", !0)
4896
+ ], 8, Nl));
4840
4897
  }
4841
- }), Ll = ["aria-label"], Rl = { class: "glim-window-square" }, zl = { class: "glim-window-square" }, Bl = { class: "glim-window-square" }, Vl = /* @__PURE__ */ j({
4898
+ }), Rl = ["aria-label"], zl = { class: "glim-window-square" }, Bl = { class: "glim-window-square" }, Vl = { class: "glim-window-square" }, Hl = /* @__PURE__ */ j({
4842
4899
  __name: "WindowBar",
4843
4900
  props: {
4844
4901
  appName: {},
@@ -4874,38 +4931,38 @@ var Tl = /* @__PURE__ */ j({
4874
4931
  onMouseup: c,
4875
4932
  onDblclick: s
4876
4933
  }, [
4877
- A(he, {
4934
+ A(ge, {
4878
4935
  tip: e.text.minimise,
4879
4936
  class: "glim-window-button",
4880
4937
  onClick: r[0] ||= (e) => n("minimise")
4881
4938
  }, {
4882
- default: Y(() => [D("span", Rl, [A(G(me))])]),
4939
+ default: Y(() => [D("span", zl, [A(G(_))])]),
4883
4940
  _: 1
4884
4941
  }, 8, ["tip"]),
4885
- A(he, {
4942
+ A(ge, {
4886
4943
  tip: e.maximised ? e.text.restore : e.text.maximise,
4887
4944
  class: "glim-window-button",
4888
4945
  onClick: r[1] ||= (e) => n("toggleMaximise")
4889
4946
  }, {
4890
- default: Y(() => [D("span", zl, [e.maximised ? (R(), w(G(ee), { key: 0 })) : (R(), w(G(pe), { key: 1 }))])]),
4947
+ default: Y(() => [D("span", Bl, [e.maximised ? (R(), w(G(me), { key: 0 })) : (R(), w(G(he), { key: 1 }))])]),
4891
4948
  _: 1
4892
4949
  }, 8, ["tip"]),
4893
- A(he, {
4950
+ A(ge, {
4894
4951
  tip: e.text.close,
4895
4952
  class: "glim-window-button",
4896
4953
  onClick: r[2] ||= (e) => n("close")
4897
4954
  }, {
4898
- default: Y(() => [D("span", Bl, [A(G(g))])]),
4955
+ default: Y(() => [D("span", Vl, [A(G(g))])]),
4899
4956
  _: 1
4900
4957
  }, 8, ["tip"])
4901
- ], 40, Ll));
4958
+ ], 40, Rl));
4902
4959
  }
4903
4960
  });
4904
4961
  // src/confirm.ts
4905
- function Hl(e) {
4962
+ function Ul(e) {
4906
4963
  let t = U(null), n = U(null), r = null, i = null;
4907
4964
  function a(e, n) {
4908
- return i = bt(), new Promise((i) => {
4965
+ return i = xt(), new Promise((i) => {
4909
4966
  r = i, t.value = {
4910
4967
  message: e,
4911
4968
  ...n
@@ -4913,15 +4970,15 @@ function Hl(e) {
4913
4970
  });
4914
4971
  }
4915
4972
  function o(e) {
4916
- r?.(e), r = null, t.value = null, vn(i), i = null;
4973
+ r?.(e), r = null, t.value = null, bn(i), i = null;
4917
4974
  }
4918
4975
  let s = () => o(!1);
4919
- return Ul(() => t.value !== null, n, s), {
4976
+ return Wl(() => t.value !== null, n, s), {
4920
4977
  confirm: a,
4921
4978
  dismiss: s,
4922
4979
  ConfirmHost: j(() => () => {
4923
4980
  let r = t.value;
4924
- return r ? Se(xe, { to: cn() }, [Se(oi, {
4981
+ return r ? Ce(Se, { to: un() }, [Ce(ci, {
4925
4982
  ref: (e) => n.value = e?.card ?? null,
4926
4983
  title: e.title,
4927
4984
  message: r.message,
@@ -4931,17 +4988,17 @@ function Hl(e) {
4931
4988
  cancelLabel: e.cancel,
4932
4989
  onConfirm: () => o(!0),
4933
4990
  onCancel: () => o(!1)
4934
- }, r.extra ? { extra: () => Se(r.extra) } : void 0)]) : null;
4991
+ }, r.extra ? { extra: () => Ce(r.extra) } : void 0)]) : null;
4935
4992
  })
4936
4993
  };
4937
4994
  }
4938
- function Ul(e, t, n) {
4995
+ function Wl(e, t, n) {
4939
4996
  J(e, (e, r, i) => {
4940
- e && i(qn(() => t.value, n));
4997
+ e && i(Yn(() => t.value, n));
4941
4998
  }, { immediate: !0 });
4942
4999
  }
4943
5000
  // src/paypalButtons.ts
4944
- function Wl(e) {
5001
+ function Gl(e) {
4945
5002
  let t = U(null), n = () => {};
4946
5003
  return J([
4947
5004
  t,
@@ -4953,7 +5010,7 @@ function Wl(e) {
4953
5010
  let o = null, s = !1;
4954
5011
  n = () => {
4955
5012
  s = !0, o?.close().catch(() => {});
4956
- }, Nt(r, i !== "once").then((n) => {
5013
+ }, Pt(r, i !== "once").then((n) => {
4957
5014
  if (s) return;
4958
5015
  let c = n.Buttons({
4959
5016
  style: {
@@ -4965,18 +5022,18 @@ function Wl(e) {
4965
5022
  height: 40
4966
5023
  },
4967
5024
  onClick: (t, n) => e().amount ? n.resolve() : n.reject(),
4968
- ...lt(r, i, () => e().amount ?? "0", a, () => e().onDone()),
5025
+ ...ut(r, i, () => e().amount ?? "0", a, () => e().onDone()),
4969
5026
  onError: () => e().onError()
4970
5027
  });
4971
5028
  o = c, t.replaceChildren(), c.render(t).catch(() => e().onError());
4972
5029
  }, () => {
4973
5030
  s || e().onError();
4974
5031
  });
4975
- }), Te(() => n()), (e) => t.value = e;
5032
+ }), Ee(() => n()), (e) => t.value = e;
4976
5033
  }
4977
5034
  // src/dragArmed.ts
4978
- function Gl(e, t) {
5035
+ function Kl(e, t) {
4979
5036
  let n = () => e.value?.classList.toggle("glim-drag-armed", t());
4980
- Ie(n, { flush: "post" }), De(n);
5037
+ Le(n, { flush: "post" }), Oe(n);
4981
5038
  }
4982
- export { jr as AboutCard, e as Badge, Nr as BrandMark, c as BusyRing, f as Button, or as Card, Lr as Checkbox, qr as CoffeeDialog, Qr as ColorPicker, oi as ConfirmDialog, xi as ContextMenu, wi as CopyField, Bi as CryptoDonateDialog, Ui as DropdownListbox, Ji as EmptyState, Xi as FieldError, ea as FieldRow, ta as FieldRowGroup, ts as Fortress, La as FortressAppCard, ua as FortressDoubtWindow, ns as FortressPairing, ao as FortressPermissions, Os as FortressStatusWindow, He as GLIMSTONE_RELEASE_URL, Ue as GLIMSTONE_REPO, We as GLIMSTONE_VERSION, js as GlyphField, Ms as GlyphTile, de as IconBack, be as IconButton, oe as IconCalendar, le as IconCancel, y as IconCheck, g as IconClose, se as IconCopy, ue as IconExpand, _ as IconEye, ie as IconEyeOff, fe as IconFolderOpen, te as IconForward, v as IconPause, ce as IconPencil, ae as IconPlay, re as IconResetArrow, ne as IconStar, he as IconTipButton, h as IconUpload, pe as IconWindowMaximise, me as IconWindowMinimise, ee as IconWindowRestore, gr as InfoAboutCard, Q as InfoBubble, yr as InfoHelpCard, Ar as InfoTile, Or as InfoVersionCard, Ea as InstanceCard, ci as Kbd, Ls as ListRow, Qs as ListTable, b as MarkSvg, tc as MenuBar, rc as Meter, oc as NumberField, so as PasswordField, cc as PathField, Tc as PaypalDialog, Ac as PickerWindow, Zi as Pill, zs as Popover, Oa as PresenceBadges, is as ProgressBar, $ as ReadmeButton, jc as RowMark, Wa as Selector, Vc as Sheet, Ic as SidebarRow, nl as SignInCard, Wc as SignInField, al as SkeletonRow, ul as SubCard, hl as Table, _l as TextArea, Kc as TextField, Sl as ToastCard, Tl as ToastViewport, Ja as Toggle, jl as Tree, Il as UnavailableNotice, ca as Window, Vl as WindowBar, ka as deviceGlyph, m as glyphFor, En as selectorTabId, p as setGlyphResolver, u as useAccent, Hl as useConfirm, o as useDensity, Ul as useDialogKeys, Gl as useDragArmed, x as useFieldName, i as useHue, l as useLabelMode, d as useMotion, Wl as usePaypalButtons, ve as usePortalHue, a as useRainbow, s as useShape, n as useTipBubble };
5039
+ export { Nr as AboutCard, e as Badge, Fr as BrandMark, c as BusyRing, f as Button, cr as Card, zr as Checkbox, Yr as CoffeeDialog, ei as ColorPicker, ci as ConfirmDialog, Ci as ContextMenu, Ei as CopyField, Hi as CryptoDonateDialog, Gi as DropdownListbox, Xi as EmptyState, Qi as FieldError, na as FieldRow, ra as FieldRowGroup, rs as Fortress, za as FortressAppCard, fa as FortressDoubtWindow, is as FortressPairing, so as FortressPermissions, As as FortressStatusWindow, Ue as GLIMSTONE_RELEASE_URL, We as GLIMSTONE_REPO, Ge as GLIMSTONE_VERSION, Ns as GlyphField, Ps as GlyphTile, ue as IconBack, xe as IconButton, ae as IconCalendar, ce as IconCancel, b as IconCheck, g as IconClose, oe as IconCopy, le as IconExpand, v as IconEye, re as IconEyeOff, de as IconFolderOpen, ee as IconForward, te as IconPause, se as IconPencil, ie as IconPlay, ne as IconResetArrow, y as IconSearch, h as IconStar, ge as IconTipButton, fe as IconUpload, he as IconWindowMaximise, _ as IconWindowMinimise, me as IconWindowRestore, vr as InfoAboutCard, Q as InfoBubble, xr as InfoHelpCard, Mr as InfoTile, Ar as InfoVersionCard, Oa as InstanceCard, ui as Kbd, zs as ListRow, ec as ListTable, m as MarkSvg, rc as MenuBar, ac as Meter, cc as NumberField, lo as PasswordField, uc as PathField, Dc as PaypalDialog, jc as PickerWindow, $i as Pill, Vs as Popover, Aa as PresenceBadges, os as ProgressBar, $ as ReadmeButton, Mc as RowMark, Ka as Selector, Hc as Sheet, Lc as SidebarRow, rl as SignInCard, Gc as SignInField, ol as SkeletonRow, dl as SubCard, gl as Table, vl as TextArea, qc as TextField, Cl as ToastCard, El as ToastViewport, Xa as Toggle, Ml as Tree, Ll as UnavailableNotice, ua as Window, Hl as WindowBar, ja as deviceGlyph, p as glyphFor, On as selectorTabId, pe as setGlyphResolver, u as useAccent, Ul as useConfirm, o as useDensity, Wl as useDialogKeys, Kl as useDragArmed, x as useFieldName, i as useHue, l as useLabelMode, d as useMotion, Gl as usePaypalButtons, ye as usePortalHue, a as useRainbow, s as useShape, n as useTipBubble };