@wssto2/vue-core 0.9.4 → 0.11.0

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.
Files changed (169) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/dist/ActionRow.vue_vue_type_script_setup_true_lang-DybAIOHS.js +64 -0
  3. package/dist/Activity-CdkJW68R.js +169 -0
  4. package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-DdJOodn8.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-D5i77H6S.js} +147 -159
  5. package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-BdeOKqz_.js → AsyncSection.vue_vue_type_script_setup_true_lang-DGzQ-Snp.js} +1 -1
  6. package/dist/BottomDockPortal.vue_vue_type_script_setup_true_lang-DmwR-2SP.js +17 -0
  7. package/dist/Button.vue_vue_type_script_setup_true_lang-C74hcb0N.js +123 -0
  8. package/dist/Changes-DxK_QfiB.js +69 -0
  9. package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-DHcekGNn.js → CollectionPage.vue_vue_type_script_setup_true_lang-x0jyJ01f.js} +19 -18
  10. package/dist/{DataTable.vue_vue_type_script_setup_true_lang-8kBsNRuq.js → DataTable.vue_vue_type_script_setup_true_lang-C_ZytnW-.js} +1 -1
  11. package/dist/{DateField.vue_vue_type_script_setup_true_lang-BhKdCVFn.js → DateField.vue_vue_type_script_setup_true_lang-CeNwBbJT.js} +1 -1
  12. package/dist/{DeadLetters-Bb5pPlOY.js → DeadLetters-DnA7LP1w.js} +5 -6
  13. package/dist/DrawnCheck.vue_vue_type_script_setup_true_lang-9DzDJlIA.js +38 -0
  14. package/dist/FormGroup.vue_vue_type_script_setup_true_lang-D6jYfNjW.js +427 -0
  15. package/dist/{FormView.vue_vue_type_script_setup_true_lang-aaNnMIOi.js → FormView.vue_vue_type_script_setup_true_lang-DvbPEiNQ.js} +2 -2
  16. package/dist/{General-BAG7S6wV.js → General-2matxl2Y.js} +23 -24
  17. package/dist/Highlight.vue_vue_type_script_setup_true_lang-DZGBmwcX.js +29 -0
  18. package/dist/{IncidentRecord-D8aOpNHo.js → IncidentRecord-Bt3G4HlX.js} +14 -15
  19. package/dist/{IncidentsList-C0cFl0Db.js → IncidentsList-2iwgqp9J.js} +3 -3
  20. package/dist/{Modal.vue_vue_type_script_setup_true_lang-BlHhdmMy.js → Modal.vue_vue_type_script_setup_true_lang-DDS0iEnn.js} +9 -8
  21. package/dist/{NewRolePage-C6Iu-EQJ.js → NewRolePage-DhGFwvk3.js} +4 -4
  22. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-TGGAq8J-.js → NumberField.vue_vue_type_script_setup_true_lang-B3UrXNqH.js} +1 -1
  23. package/dist/{PersonAccess.vue_vue_type_script_setup_true_lang-qz1tmYpF.js → PersonAccess.vue_vue_type_script_setup_true_lang-DbGZSNQc.js} +56 -56
  24. package/dist/ProfilePage-CpuyDBAv.js +685 -0
  25. package/dist/ProgressTrack.vue_vue_type_script_setup_true_lang-DrOm8k--.js +30 -0
  26. package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-B9mN7UxZ.js → RecordHeader.vue_vue_type_script_setup_true_lang-DqGc3Jyo.js} +1 -1
  27. package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-Cw8mGf_B.js → ResourcePage.vue_vue_type_script_setup_true_lang-DljhsTU4.js} +3 -3
  28. package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-CJPvOVDV.js → RoleEditor.vue_vue_type_script_setup_true_lang-C0FIotFA.js} +11 -12
  29. package/dist/{RolePage-Dj_ocMnM.js → RolePage-DaNv049g.js} +10 -10
  30. package/dist/{RolesPage-PXrs4O-1.js → RolesPage-6hlzJes_.js} +6 -6
  31. package/dist/SearchInput.vue_vue_type_script_setup_true_lang-w4eAqyZ9.js +32 -0
  32. package/dist/{SectionList.vue_vue_type_script_setup_true_lang-CtdF1zuv.js → SectionList.vue_vue_type_script_setup_true_lang-DR0_NsqC.js} +1 -1
  33. package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-B5ove3rM.js → SectionNavigator.vue_vue_type_script_setup_true_lang-Dh3sXUt_.js} +2 -2
  34. package/dist/{SegmentedField.vue_vue_type_script_setup_true_lang-ChfDFAA2.js → SegmentedField.vue_vue_type_script_setup_true_lang-zv_AxpBn.js} +1 -1
  35. package/dist/{SelectField.vue_vue_type_script_setup_true_lang-BP8nAQwo.js → SelectField.vue_vue_type_script_setup_true_lang-BZwdANL3.js} +3 -3
  36. package/dist/{ServiceAccountDialog.vue_vue_type_script_setup_true_lang-aWkKwxNe.js → ServiceAccountDialog.vue_vue_type_script_setup_true_lang-FJbWxME_.js} +20 -20
  37. package/dist/{ServiceAccountRecord-bxX9yQkC.js → ServiceAccountRecord-0-JF5lRx.js} +24 -24
  38. package/dist/{ServiceAccountsList-BXE6htxk.js → ServiceAccountsList-DcsnOcf-.js} +32 -32
  39. package/dist/{Sessions--Gvc0kxw.js → Sessions-DgWhpk-i.js} +23 -24
  40. package/dist/{SettingsPage-DzDC7gD-.js → SettingsPage-BXPWATYU.js} +28 -30
  41. package/dist/{SignIn-CTI_699e.js → SignIn-DPoUwHZd.js} +9 -10
  42. package/dist/{SignInPage-HKC1bm2E.js → SignInPage-OyrVemro.js} +4 -4
  43. package/dist/SignIns-BMDrZVVp.js +64 -0
  44. package/dist/StatusLine.vue_vue_type_script_setup_true_lang-DsdQmLq6.js +56 -0
  45. package/dist/{SwitchField.vue_vue_type_script_setup_true_lang-BMA2YXTZ.js → SwitchField.vue_vue_type_script_setup_true_lang-Ds4q0bbl.js} +1 -1
  46. package/dist/{TextField.vue_vue_type_script_setup_true_lang-BFVsqcBX.js → TextField.vue_vue_type_script_setup_true_lang-CWIeeZRE.js} +2 -2
  47. package/dist/{TextareaField.vue_vue_type_script_setup_true_lang-Dyh4Hhyl.js → TextareaField.vue_vue_type_script_setup_true_lang-D2j4s96s.js} +1 -1
  48. package/dist/{TimeField.vue_vue_type_script_setup_true_lang-gGFfQLuK.js → TimeField.vue_vue_type_script_setup_true_lang-D-Em4glH.js} +1 -1
  49. package/dist/UserRecord-BW-gdCqi.js +202 -0
  50. package/dist/UsersList-B3ZF_1Dj.js +74 -0
  51. package/dist/access/index.js +4 -4
  52. package/dist/app/index.d.ts +1 -0
  53. package/dist/app/index.js +11 -10
  54. package/dist/app/languages.d.ts +8 -0
  55. package/dist/{application-BmXW6iW_.js → application-CuzT-0vW.js} +1 -1
  56. package/dist/button/index.js +6 -5
  57. package/dist/collection/Highlight.vue.d.ts +12 -0
  58. package/dist/collection/PickerModal.vue.d.ts +26 -0
  59. package/dist/collection/definition.d.ts +6 -6
  60. package/dist/collection/http.d.ts +6 -6
  61. package/dist/collection/index.d.ts +6 -1
  62. package/dist/collection/index.js +145 -85
  63. package/dist/collection/picker.d.ts +39 -0
  64. package/dist/collection/types.d.ts +9 -4
  65. package/dist/collection/useCollection.d.ts +5 -5
  66. package/dist/content/ActivityStream.vue.d.ts +62 -0
  67. package/dist/content/CommentThread.vue.d.ts +52 -0
  68. package/dist/content/Composer.vue.d.ts +36 -0
  69. package/dist/content/index.d.ts +3 -0
  70. package/dist/content/index.js +321 -56
  71. package/dist/controls/index.js +28 -54
  72. package/dist/form/index.js +132 -134
  73. package/dist/format/index.d.ts +1 -0
  74. package/dist/format/index.js +10 -6
  75. package/dist/format/slug.d.ts +8 -0
  76. package/dist/http-Dm0uXY9O.js +95 -0
  77. package/dist/i18n/index.d.ts +15 -0
  78. package/dist/i18n/index.js +89 -63
  79. package/dist/i18n/plural.d.ts +23 -0
  80. package/dist/i18n/serverMessages.d.ts +16 -0
  81. package/dist/identity/embed.d.ts +39 -0
  82. package/dist/identity/index.d.ts +22 -1
  83. package/dist/identity/index.js +40 -21
  84. package/dist/identity/session.d.ts +9 -1
  85. package/dist/identity/shared/ChangeFeed.vue.d.ts +6 -3
  86. package/dist/identity/users/context.d.ts +11 -0
  87. package/dist/identity/users/dialogs.d.ts +10 -0
  88. package/dist/identity/users/ext.d.ts +8 -0
  89. package/dist/identity/users/feature.d.ts +22 -1
  90. package/dist/identity/users/list.d.ts +12 -1
  91. package/dist/identity/users/personSections.d.ts +15 -6
  92. package/dist/identity/users/replace.d.ts +45 -0
  93. package/dist/identity/users/words.d.ts +28 -0
  94. package/dist/incidents/api.d.ts +1 -1
  95. package/dist/incidents/index.js +1 -1
  96. package/dist/{index-Dz0LkLM8.js → index-ClJeyW3F.js} +4 -4
  97. package/dist/index-Cq9TuOqH.js +1264 -0
  98. package/dist/{index-Dm-sdJJr.js → index-kEHY7hcG.js} +31 -32
  99. package/dist/index.d.ts +1 -1
  100. package/dist/index.js +1 -1
  101. package/dist/keepAlive-ClGnsIzT.js +55 -0
  102. package/dist/modal/index.js +3 -3
  103. package/dist/modules/identity/entities.d.ts +7 -0
  104. package/dist/modules/identity/routes.d.ts +8 -4
  105. package/dist/modules/identity/schemas.d.ts +16 -0
  106. package/dist/{neighbors-DVfU9T0o.js → neighbors-OyvGi233.js} +2 -2
  107. package/dist/notifications/deadletters/list.d.ts +1 -1
  108. package/dist/notifications/index.js +1 -1
  109. package/dist/{options-QuOkMKVZ.js → options-B48UiYsG.js} +2 -2
  110. package/dist/page/index.js +11 -11
  111. package/dist/phone/index.js +1 -1
  112. package/dist/pwa/AndroidInstallBanner.vue.d.ts +18 -0
  113. package/dist/pwa/InstallQrSheet.vue.d.ts +21 -0
  114. package/dist/pwa/IosInstallGuide.vue.d.ts +19 -0
  115. package/dist/pwa/QrCode.vue.d.ts +16 -0
  116. package/dist/pwa/index.d.ts +4 -0
  117. package/dist/pwa/index.js +244 -24
  118. package/dist/resource/index.js +1 -1
  119. package/dist/rowLayout-BsKEzEME.js +650 -0
  120. package/dist/shell/DarkModeRow.vue.d.ts +15 -0
  121. package/dist/shell/OfflineNotice.vue.d.ts +2 -0
  122. package/dist/shell/QuickSearchButton.vue.d.ts +2 -0
  123. package/dist/shell/QuickSearchPalette.vue.d.ts +12 -0
  124. package/dist/shell/darkMode.d.ts +26 -0
  125. package/dist/shell/index.d.ts +10 -0
  126. package/dist/shell/index.js +954 -579
  127. package/dist/shell/offlineNotice.d.ts +3 -0
  128. package/dist/shell/quickSearch.d.ts +14 -0
  129. package/dist/shell/quickSearchControl.d.ts +69 -0
  130. package/dist/shortcut-DUR6yPWA.js +93 -0
  131. package/dist/state/BackgroundTaskCapsule.vue.d.ts +18 -0
  132. package/dist/state/backgroundTasks.d.ts +58 -0
  133. package/dist/state/index.d.ts +4 -0
  134. package/dist/state/index.js +194 -80
  135. package/dist/state/useCountUp.d.ts +9 -0
  136. package/dist/styles.css +1 -1
  137. package/dist/{suggestions-BVQhoXzS.js → suggestions-q_v3M7G6.js} +1 -1
  138. package/dist/testing/collection.d.ts +1 -1
  139. package/dist/{useCommand-Dc8Lgs9h.js → useCommand-Ch_nx1AQ.js} +4 -4
  140. package/dist/{useGroupSheet-DQ6cVG-z.js → useGroupSheet-CPjHydQV.js} +14 -15
  141. package/dist/{useRecordDialog-BTsbHY38.js → useRecordDialog-DdkauXnU.js} +1 -1
  142. package/dist/{useResourceForm-DJ4Q75pq.js → useResourceForm-Dl6YFYyz.js} +1 -1
  143. package/package.json +3 -2
  144. package/dist/ActionRow.vue_vue_type_script_setup_true_lang-Cg1lhpcA.js +0 -45
  145. package/dist/Activity-29hsZ28j.js +0 -156
  146. package/dist/Button.vue_vue_type_script_setup_true_lang-Dp7OB-eF.js +0 -192
  147. package/dist/Changes-Dxjdkd_5.js +0 -129
  148. package/dist/FormErrors.vue_vue_type_script_setup_true_lang-CIggKPtq.js +0 -295
  149. package/dist/FormGroup.vue_vue_type_script_setup_true_lang-B37dixvJ.js +0 -137
  150. package/dist/PageBar.vue_vue_type_script_setup_true_lang-qI94fjJv.js +0 -47
  151. package/dist/ProfilePage-BnohZIEg.js +0 -764
  152. package/dist/ProgressTrack.vue_vue_type_script_setup_true_lang-B6Prw9hi.js +0 -64
  153. package/dist/SectionIntro.vue_vue_type_script_setup_true_lang-CZtPrmXD.js +0 -23
  154. package/dist/SessionList.vue_vue_type_script_setup_true_lang-Cnyt5V8T.js +0 -133
  155. package/dist/SignIns-BcqBgWgN.js +0 -121
  156. package/dist/UserRecord-CtUPpbCt.js +0 -267
  157. package/dist/UsersList-BMkIgIg8.js +0 -155
  158. package/dist/definition-C7QuyV3i.js +0 -54
  159. package/dist/http-nz92KjdS.js +0 -42
  160. package/dist/identity/fieldMessages.d.ts +0 -15
  161. package/dist/identity/users/languages.d.ts +0 -4
  162. package/dist/index-CdtofdcJ.js +0 -501
  163. package/dist/keepAlive-z3IRFkQq.js +0 -46
  164. package/dist/languages-BShG9LpE.js +0 -10
  165. package/dist/rowLayout-CT8vWYgI.js +0 -663
  166. package/dist/signInEvents-DWShrJox.js +0 -30
  167. package/dist/status-BRA14qwX.js +0 -34
  168. package/dist/useWaitStatus-fsacMl4W.js +0 -24
  169. /package/dist/{fieldMessages-B6GHgi40.js → serverMessages-B6GHgi40.js} +0 -0
package/dist/pwa/index.js CHANGED
@@ -1,51 +1,271 @@
1
- import { computed as o, shallowRef as l, ref as s } from "vue";
2
- const n = l(null), r = s(!1);
3
- let i = !1;
4
- function p() {
5
- i || typeof window > "u" || (i = !0, window.addEventListener("beforeinstallprompt", (e) => {
6
- e.preventDefault(), n.value = e;
1
+ import { computed as m, shallowRef as D, ref as x, defineComponent as _, openBlock as f, createBlock as b, Teleport as S, createElementVNode as t, toDisplayString as c, unref as n, createVNode as g, withCtx as k, createTextVNode as q, createElementBlock as h, useModel as Q, watch as T, createCommentVNode as M, mergeModels as A, onMounted as V, onBeforeUnmount as R, Fragment as W, renderList as G, normalizeClass as j } from "vue";
2
+ import { useI18n as C } from "vue-i18n";
3
+ import { _ as P } from "../Button.vue_vue_type_script_setup_true_lang-C74hcb0N.js";
4
+ import { _ as z } from "../Icon.vue_vue_type_script_lang-BhhsFYwp.js";
5
+ import { _ as F } from "../Modal.vue_vue_type_script_setup_true_lang-DDS0iEnn.js";
6
+ import { encode as H } from "uqr";
7
+ const v = D(null), I = x(!1);
8
+ let B = !1;
9
+ function Ie() {
10
+ B || typeof window > "u" || (B = !0, window.addEventListener("beforeinstallprompt", (e) => {
11
+ e.preventDefault(), v.value = e;
7
12
  }), window.addEventListener("appinstalled", () => {
8
- r.value = !0, n.value = null;
13
+ I.value = !0, v.value = null;
9
14
  }));
10
15
  }
11
- function v() {
16
+ function Ce() {
12
17
  if (typeof navigator > "u") return "desktop";
13
18
  const e = navigator.userAgent;
14
19
  return /Android/i.test(e) ? "android" : /iPad|iPhone|iPod/.test(e) || navigator.platform === "MacIntel" && navigator.maxTouchPoints > 1 ? "ios" : "desktop";
15
20
  }
16
- function d() {
21
+ function J() {
17
22
  return typeof window > "u" ? !1 : window.matchMedia?.("(display-mode: standalone)").matches === !0 || navigator.standalone === !0;
18
23
  }
19
- function m() {
24
+ function L() {
20
25
  return {
21
- canInstall: o(() => n.value != null),
22
- installed: o(() => r.value || d()),
26
+ canInstall: m(() => v.value != null),
27
+ installed: m(() => I.value || J()),
23
28
  /** Opens the browser's install dialog; true when the user accepted. */
24
29
  async install() {
25
- const e = n.value;
30
+ const e = v.value;
26
31
  if (!e) return !1;
27
32
  await e.prompt();
28
- const { outcome: t } = await e.userChoice;
29
- return n.value = null, t === "accepted" && (r.value = !0), t === "accepted";
33
+ const { outcome: l } = await e.userChoice;
34
+ return v.value = null, l === "accepted" && (I.value = !0), l === "accepted";
30
35
  }
31
36
  };
32
37
  }
33
- function c() {
38
+ function K() {
34
39
  const e = document.querySelector('script[type="module"][src*="/assets/"]');
35
40
  return e ? new URL(e.src, location.href).pathname : null;
36
41
  }
37
- function w(e = {}) {
42
+ function Ne(e = {}) {
38
43
  if (e.enabled === !1 || typeof navigator > "u" || !("serviceWorker" in navigator)) return;
39
- const t = e.url ?? "/sw.js", u = encodeURIComponent(c() ?? "unknown"), a = () => {
40
- navigator.serviceWorker.register(`${t}${t.includes("?") ? "&" : "?"}build=${u}`).catch(() => {
44
+ const l = e.url ?? "/sw.js", i = encodeURIComponent(K() ?? "unknown"), a = () => {
45
+ navigator.serviceWorker.register(`${l}${l.includes("?") ? "&" : "?"}build=${i}`).catch(() => {
41
46
  });
42
47
  };
43
48
  document.readyState === "complete" ? a() : window.addEventListener("load", a, { once: !0 });
44
49
  }
50
+ const O = {
51
+ class: "fixed inset-x-3 bottom-[calc(var(--bottom-dock-h,0px)+env(safe-area-inset-bottom)+0.75rem)] z-40 flex animate-reveal items-center gap-3 rounded-2xl bg-surface-cell px-4 py-3.5 shadow-dialog",
52
+ "data-test": "install-android-banner"
53
+ }, X = { class: "grid size-10 shrink-0 place-items-center rounded-xl bg-tint text-footnote font-semibold text-content-on-tint" }, Y = { class: "flex flex-1 flex-col" }, Z = { class: "text-subheadline font-semibold text-content-strong" }, ee = { class: "text-footnote text-content-muted" }, te = ["aria-label"], Ee = /* @__PURE__ */ _({
54
+ __name: "AndroidInstallBanner",
55
+ props: {
56
+ appName: {},
57
+ badge: {}
58
+ },
59
+ emits: ["close"],
60
+ setup(e, { emit: l }) {
61
+ const i = e, a = l, { t: s } = C(), o = L(), r = x(!1);
62
+ async function d() {
63
+ r.value = !0;
64
+ try {
65
+ await o.install() && a("close");
66
+ } finally {
67
+ r.value = !1;
68
+ }
69
+ }
70
+ return (u, p) => (f(), b(S, { to: "body" }, [
71
+ t("div", O, [
72
+ t("span", X, c(i.badge ?? i.appName.slice(0, 3).toUpperCase()), 1),
73
+ t("span", Y, [
74
+ t("span", Z, c(n(s)("core.pwa.android.title", { app: e.appName })), 1),
75
+ t("span", ee, c(n(s)("core.pwa.android.text")), 1)
76
+ ]),
77
+ g(n(P), {
78
+ prominence: "primary",
79
+ size: "sm",
80
+ processing: r.value,
81
+ onClick: d
82
+ }, {
83
+ default: k(() => [
84
+ q(c(n(s)("core.pwa.android.install")), 1)
85
+ ]),
86
+ _: 1
87
+ }, 8, ["processing"]),
88
+ t("button", {
89
+ type: "button",
90
+ class: "hit-target grid size-7 place-items-center rounded-full bg-fill text-content-muted",
91
+ "aria-label": n(s)("core.actions.close"),
92
+ onClick: p[0] || (p[0] = (N) => a("close"))
93
+ }, [
94
+ g(n(z), {
95
+ name: "close",
96
+ size: 12
97
+ })
98
+ ], 8, te)
99
+ ])
100
+ ]));
101
+ }
102
+ }), ne = ["width", "height", "viewBox", "aria-label"], oe = ["d"], $ = 2, ae = /* @__PURE__ */ _({
103
+ __name: "QrCode",
104
+ props: {
105
+ value: {},
106
+ size: { default: 132 },
107
+ label: {}
108
+ },
109
+ setup(e) {
110
+ const l = e, i = m(() => H(l.value, { ecc: "M", border: 0 })), a = m(() => i.value.size + $ * 2), s = m(() => {
111
+ let o = "";
112
+ return i.value.data.forEach((r, d) => r.forEach((u, p) => {
113
+ u && (o += `M${p + $} ${d + $}h1v1h-1z`);
114
+ })), o;
115
+ });
116
+ return (o, r) => (f(), h("svg", {
117
+ width: e.size,
118
+ height: e.size,
119
+ viewBox: `0 0 ${a.value} ${a.value}`,
120
+ role: "img",
121
+ "aria-label": e.label,
122
+ "shape-rendering": "crispEdges",
123
+ class: "shrink-0 rounded-lg bg-white",
124
+ "data-test": "install-qr"
125
+ }, [
126
+ t("path", {
127
+ d: s.value,
128
+ fill: "#0D1714"
129
+ }, null, 8, oe)
130
+ ], 8, ne));
131
+ }
132
+ }), se = {
133
+ class: "flex flex-col items-center gap-4 pb-2 text-center",
134
+ "data-test": "install-qr-sheet"
135
+ }, le = { class: "text-subheadline text-content-muted" }, Be = /* @__PURE__ */ _({
136
+ __name: "InstallQrSheet",
137
+ props: /* @__PURE__ */ A({
138
+ appName: {},
139
+ url: {}
140
+ }, {
141
+ open: { type: Boolean, default: !1 },
142
+ openModifiers: {}
143
+ }),
144
+ emits: ["update:open"],
145
+ setup(e) {
146
+ const l = e, i = Q(e, "open"), { t: a } = C(), s = L(), o = x(null), r = () => l.url ?? (typeof window > "u" ? "" : window.location.origin);
147
+ return T(i, (d) => {
148
+ d && o.value?.present();
149
+ }), (d, u) => (f(), b(n(F), {
150
+ ref_key: "dialog",
151
+ ref: o,
152
+ size: "sm",
153
+ title: n(a)("core.pwa.qr.title", { app: e.appName }),
154
+ onDismissed: u[1] || (u[1] = (p) => i.value = !1)
155
+ }, {
156
+ default: k(() => [
157
+ t("div", se, [
158
+ g(ae, {
159
+ value: r(),
160
+ size: 184,
161
+ label: n(a)("core.pwa.qr.label", { app: e.appName })
162
+ }, null, 8, ["value", "label"]),
163
+ t("p", le, c(n(a)("core.pwa.qr.text", { app: e.appName })), 1),
164
+ n(s).canInstall.value ? (f(), b(n(P), {
165
+ key: 0,
166
+ prominence: "secondary",
167
+ icon: "download",
168
+ onClick: u[0] || (u[0] = (p) => n(s).install())
169
+ }, {
170
+ default: k(() => [
171
+ q(c(n(a)("core.pwa.qr.install_here")), 1)
172
+ ]),
173
+ _: 1
174
+ })) : M("", !0)
175
+ ])
176
+ ]),
177
+ _: 1
178
+ }, 8, ["title"]));
179
+ }
180
+ }), ie = {
181
+ class: "pointer-events-none fixed inset-0 z-50",
182
+ "data-test": "install-ios-guide"
183
+ }, re = { class: "pointer-events-auto absolute inset-x-3 top-[calc(env(safe-area-inset-top)+0.75rem)] flex animate-reveal flex-col gap-2.5 rounded-2xl bg-surface-cell px-4 py-3.5 shadow-dialog" }, ce = { class: "flex items-center gap-3" }, de = { class: "grid size-10 shrink-0 place-items-center rounded-xl bg-tint text-footnote font-semibold text-content-on-tint" }, ue = { class: "flex flex-1 flex-col" }, pe = { class: "text-body font-semibold text-content-strong" }, fe = { class: "text-footnote text-content-muted" }, me = ["aria-label"], ve = { class: "flex items-center gap-2.5 border-t border-border-separator pt-2.5" }, ge = { class: "grid size-6 shrink-0 place-items-center rounded-full bg-tint text-footnote font-semibold text-content-on-tint" }, he = {
184
+ class: "flex gap-1",
185
+ "aria-hidden": "true"
186
+ }, be = {
187
+ key: 0,
188
+ class: "absolute right-5 bottom-[calc(env(safe-area-inset-bottom)+4.5rem)] grid size-10 animate-bounce place-items-center rounded-full bg-tint text-content-on-tint shadow-dialog",
189
+ "aria-hidden": "true"
190
+ }, Se = /* @__PURE__ */ _({
191
+ __name: "IosInstallGuide",
192
+ props: {
193
+ appName: {},
194
+ badge: {}
195
+ },
196
+ emits: ["close"],
197
+ setup(e, { emit: l }) {
198
+ const i = e, a = l, { t: s } = C(), o = x(0), r = ["more", "share", "add"];
199
+ let d = null;
200
+ const u = () => {
201
+ d && clearInterval(d), d = null;
202
+ }, p = () => {
203
+ u(), d = setInterval(() => {
204
+ o.value = (o.value + 1) % r.length;
205
+ }, 2800);
206
+ }, N = () => {
207
+ o.value = (o.value + 1) % r.length, p();
208
+ }, w = m(() => r[o.value]);
209
+ return V(p), R(u), (xe, E) => (f(), b(S, { to: "body" }, [
210
+ t("div", ie, [
211
+ t("div", re, [
212
+ t("div", ce, [
213
+ t("span", de, c(i.badge ?? i.appName.slice(0, 3).toUpperCase()), 1),
214
+ t("span", ue, [
215
+ t("span", pe, c(n(s)("core.pwa.ios.title", { app: e.appName })), 1),
216
+ t("span", fe, c(n(s)("core.pwa.ios.subtitle")), 1)
217
+ ]),
218
+ t("button", {
219
+ type: "button",
220
+ class: "hit-target grid size-7 place-items-center rounded-full bg-fill text-content-muted",
221
+ "aria-label": n(s)("core.actions.close"),
222
+ "data-test": "install-ios-guide-close",
223
+ onClick: E[0] || (E[0] = (U) => a("close"))
224
+ }, [
225
+ g(n(z), {
226
+ name: "close",
227
+ size: 12
228
+ })
229
+ ], 8, me)
230
+ ]),
231
+ t("div", ve, [
232
+ t("span", ge, c(o.value + 1), 1),
233
+ (f(), h("span", {
234
+ key: w.value,
235
+ class: "flex-1 animate-text-swap text-subheadline font-semibold text-content-strong",
236
+ "aria-live": "polite"
237
+ }, c(n(s)(`core.pwa.ios.steps.${w.value}`)), 1)),
238
+ t("span", he, [
239
+ (f(), h(W, null, G(r, (U, y) => t("span", {
240
+ key: y,
241
+ class: j(["h-1.5 rounded-full transition-[width,background-color] duration-motion-normal", [y === o.value ? "w-4" : "w-1.5", y <= o.value ? "bg-tint" : "bg-fill-strong"]])
242
+ }, null, 2)), 64))
243
+ ]),
244
+ t("button", {
245
+ type: "button",
246
+ class: "text-subheadline font-semibold text-content-link",
247
+ onClick: N
248
+ }, c(n(s)("core.pwa.ios.next")), 1)
249
+ ])
250
+ ]),
251
+ w.value === "more" ? (f(), h("span", be, [
252
+ g(n(z), {
253
+ name: "arrowDownSLine",
254
+ class: "size-5"
255
+ })
256
+ ])) : M("", !0)
257
+ ])
258
+ ]));
259
+ }
260
+ });
45
261
  export {
46
- p as captureInstallPrompt,
47
- v as currentPlatform,
48
- d as isStandalone,
49
- w as registerServiceWorker,
50
- m as useInstallPrompt
262
+ Ee as AndroidInstallBanner,
263
+ Be as InstallQrSheet,
264
+ Se as IosInstallGuide,
265
+ ae as QrCode,
266
+ Ie as captureInstallPrompt,
267
+ Ce as currentPlatform,
268
+ J as isStandalone,
269
+ Ne as registerServiceWorker,
270
+ L as useInstallPrompt
51
271
  };
@@ -1,5 +1,5 @@
1
1
  import { p as o, u as r, a, b as u } from "../routeResource-DlTsGTg_.js";
2
- import { _ as R, a as c } from "../ResourcePage.vue_vue_type_script_setup_true_lang-Cw8mGf_B.js";
2
+ import { _ as R, a as c } from "../ResourcePage.vue_vue_type_script_setup_true_lang-DljhsTU4.js";
3
3
  export {
4
4
  R as RecordPager,
5
5
  c as ResourcePage,