@wssto2/vue-core 0.3.0 → 0.4.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.
- package/README.md +3 -0
- package/dist/{AccessGate.vue_vue_type_script_setup_true_lang-DKX3PH2n.js → AccessGate.vue_vue_type_script_setup_true_lang-DcbZBINh.js} +1 -1
- package/dist/{AccountMenuItem.vue_vue_type_script_setup_true_lang-DIGqTLwd.js → AccountMenuItem.vue_vue_type_script_setup_true_lang-CPeNxh5K.js} +1 -1
- package/dist/{ActionRow.vue_vue_type_script_setup_true_lang-B7Lpfkf6.js → ActionRow.vue_vue_type_script_setup_true_lang-LlfIPWsJ.js} +2 -2
- package/dist/{Activity-DviO0VQ8.js → Activity-2gGxQn7v.js} +9 -9
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-CvAnzdc1.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-BoinCY93.js} +3 -3
- package/dist/{AlertDialog.vue_vue_type_script_setup_true_lang-CJsMUIUg.js → AlertDialog.vue_vue_type_script_setup_true_lang-whA4WLdl.js} +1 -1
- package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-CCtthMRd.js → AsyncSection.vue_vue_type_script_setup_true_lang-Blj6KgCr.js} +4 -4
- package/dist/{Banner.vue_vue_type_script_setup_true_lang-Cib_YYpr.js → Banner.vue_vue_type_script_setup_true_lang-DSStj_5z.js} +1 -1
- package/dist/{Button.vue_vue_type_script_setup_true_lang-CYil8h9z.js → Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js} +1 -1
- package/dist/{Changes-DlT5mN9G.js → Changes-Bm8xvagD.js} +8 -8
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-CXILftEc.js → CollectionPage.vue_vue_type_script_setup_true_lang-DCBVw2Qd.js} +176 -172
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-DSYgS9lC.js → DataTable.vue_vue_type_script_setup_true_lang-UH6f9puS.js} +1 -1
- package/dist/DateField.vue_vue_type_script_setup_true_lang-GVasv8ao.js +255 -0
- package/dist/DeadLetters-CMRtXn_N.js +104 -0
- package/dist/{DiscardChangesModal.vue_vue_type_script_setup_true_lang-Cb3xJI1x.js → DiscardChangesModal.vue_vue_type_script_setup_true_lang-D1arePCZ.js} +1 -1
- package/dist/{EmptyState.vue_vue_type_script_setup_true_lang-C2ZYIT9F.js → EmptyState.vue_vue_type_script_setup_true_lang-50p-Mp8I.js} +1 -1
- package/dist/{FormErrors.vue_vue_type_script_setup_true_lang-DVgNBQ8p.js → FormErrors.vue_vue_type_script_setup_true_lang-BQb7wLT0.js} +1 -1
- package/dist/{FormGroup.vue_vue_type_script_setup_true_lang-0mfG8TkU.js → FormGroup.vue_vue_type_script_setup_true_lang-DG2zdG_a.js} +10 -10
- package/dist/{FormView.vue_vue_type_script_setup_true_lang-Bz2m3AtF.js → FormView.vue_vue_type_script_setup_true_lang-cr0xNDXP.js} +2 -2
- package/dist/{General-BD-Hcz0a.js → General-CTqd0SLK.js} +8 -8
- package/dist/HeaderAction.vue_vue_type_script_setup_true_lang-Cgji-Jrr.js +45 -0
- package/dist/{Icon.vue_vue_type_script_lang-VvcV2Bzo.js → Icon.vue_vue_type_script_lang-D7oC-d-S.js} +33 -29
- package/dist/{IconTile.vue_vue_type_script_setup_true_lang-D7QgnUyN.js → IconTile.vue_vue_type_script_setup_true_lang-BpIjgu5E.js} +1 -1
- package/dist/{LeaveGuardRoot.vue_vue_type_script_setup_true_lang-C2udmeEA.js → LeaveGuardRoot.vue_vue_type_script_setup_true_lang-Cv7KlA5y.js} +1 -1
- package/dist/{Menu.vue_vue_type_script_setup_true_lang-BNAjx9tj.js → Menu.vue_vue_type_script_setup_true_lang-DTbAcDzL.js} +30 -26
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-D7SwVPpL.js → Modal.vue_vue_type_script_setup_true_lang-DpBb8ans.js} +2 -2
- package/dist/{NewRolePage-Dla4YnMs.js → NewRolePage-DTOWIxxC.js} +4 -4
- package/dist/{NoAccess.vue_vue_type_script_setup_true_lang-8m9cNptR.js → NoAccess.vue_vue_type_script_setup_true_lang-DWxq-MTM.js} +1 -1
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-CYRg7Kfg.js → NumberField.vue_vue_type_script_setup_true_lang-C7N5nq0P.js} +1 -1
- package/dist/{PageBar.vue_vue_type_script_setup_true_lang-Cfr5xsJx.js → PageBar.vue_vue_type_script_setup_true_lang-B7qdEeej.js} +1 -1
- package/dist/{Panel.vue_vue_type_script_setup_true_lang-BCRxRK4D.js → Panel.vue_vue_type_script_setup_true_lang-BA0u_DtS.js} +1 -1
- package/dist/PanelActions.vue_vue_type_script_setup_true_lang-E9VdIGkf.js +46 -0
- package/dist/{PhotoViewer.vue_vue_type_script_setup_true_lang-B3Q4dhqJ.js → PhotoViewer.vue_vue_type_script_setup_true_lang-QPCW3Xi6.js} +1 -1
- package/dist/ProfilePage-BlpiWH_W.js +654 -0
- package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-DKsaKlAq.js → RecordHeader.vue_vue_type_script_setup_true_lang-C_ymvhHU.js} +2 -2
- package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-CJcKa9SW.js → ResourcePage.vue_vue_type_script_setup_true_lang-CwI_sROp.js} +5 -5
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-DuEPOmjI.js → RoleEditor.vue_vue_type_script_setup_true_lang-CmwvSytD.js} +30 -29
- package/dist/{RolePage-bZzv_E4l.js → RolePage-DZk7BZOc.js} +13 -13
- package/dist/{RolesPage-BniZv0nB.js → RolesPage-DzGGCMnm.js} +9 -9
- package/dist/{SectionList.vue_vue_type_script_setup_true_lang-BKP_bge8.js → SectionList.vue_vue_type_script_setup_true_lang-BFYls8fR.js} +3 -3
- package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-BgGEGxSI.js → SectionNavigator.vue_vue_type_script_setup_true_lang-DSMXEaCs.js} +5 -5
- package/dist/{SegmentedField.vue_vue_type_script_setup_true_lang-BZ9UdgA1.js → SegmentedField.vue_vue_type_script_setup_true_lang-BMqWlpsL.js} +1 -1
- package/dist/{SelectField.vue_vue_type_script_setup_true_lang-BiGaEKBQ.js → SelectField.vue_vue_type_script_setup_true_lang-7O1BAx04.js} +15 -14
- package/dist/{SessionList.vue_vue_type_script_setup_true_lang-DUQpr7gb.js → SessionList.vue_vue_type_script_setup_true_lang-D5KRitar.js} +4 -4
- package/dist/{Sessions-Co5-xdeb.js → Sessions-CWqjjTr1.js} +6 -6
- package/dist/SettingsPage-C4s0IdkW.js +255 -0
- package/dist/{Sheet.vue_vue_type_script_setup_true_lang-bHYzx7-J.js → Sheet.vue_vue_type_script_setup_true_lang-DgOFV4fa.js} +48 -45
- package/dist/{SignIn-BWwFbxki.js → SignIn-zzKY__df.js} +7 -7
- package/dist/{SignInPage-FnLtoi2q.js → SignInPage-Rqnus_s-.js} +6 -6
- package/dist/{SignInTable.vue_vue_type_script_setup_true_lang-Dnx3T_42.js → SignInTable.vue_vue_type_script_setup_true_lang-CEbAvZ_C.js} +1 -1
- package/dist/{SignIns-3UcI64_h.js → SignIns-Cnf9BVR0.js} +6 -6
- package/dist/{SwipeActions.vue_vue_type_script_setup_true_lang-4I8m27ol.js → SwipeActions.vue_vue_type_script_setup_true_lang-BJIA2JfI.js} +1 -1
- package/dist/SwitchField.vue_vue_type_script_setup_true_lang-CM8yp9JQ.js +64 -0
- package/dist/{Tabs.vue_vue_type_script_setup_true_lang-BeGaydRr.js → Tabs.vue_vue_type_script_setup_true_lang-CcMcE38r.js} +1 -1
- package/dist/{TextField.vue_vue_type_script_setup_true_lang-C_FMf3Vc.js → TextField.vue_vue_type_script_setup_true_lang-B9dwVASU.js} +3 -3
- package/dist/TextareaField.vue_vue_type_script_setup_true_lang-CqAWfABZ.js +68 -0
- package/dist/TimeField.vue_vue_type_script_setup_true_lang-DWfAUlnz.js +164 -0
- package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-1RJGKxbD.js → Timestamp.vue_vue_type_script_setup_true_lang-FVRUr-9y.js} +1 -1
- package/dist/{UserRecord-Ci8HfwbX.js → UserRecord-DqigxVxH.js} +12 -12
- package/dist/{UsersList-vEJ-cgkT.js → UsersList-DNlZsI9J.js} +8 -8
- package/dist/{ViewTabs.vue_vue_type_script_setup_true_lang-ByqTU2JT.js → ViewTabs.vue_vue_type_script_setup_true_lang-BJIoZAlH.js} +1 -1
- package/dist/access/index.js +1 -1
- package/dist/app/index.js +9 -9
- package/dist/button/index.js +1 -1
- package/dist/client/index.js +11 -19
- package/dist/{client-Bw0aM5Gu.js → client-k9euDWF4.js} +19 -19
- package/dist/collection/definition.d.ts +3 -0
- package/dist/collection/index.js +6 -6
- package/dist/collection/useCollection.d.ts +2 -0
- package/dist/content/index.js +2 -2
- package/dist/{contributions-CDDg3fKp.js → contributions-DsfmDoRD.js} +1 -1
- package/dist/control-7EP4tjYy.js +313 -0
- package/dist/controls/index.js +4 -4
- package/dist/form/index.js +987 -1134
- package/dist/{guards-Cd1V28oG.js → guards-Dve61KjR.js} +1 -1
- package/dist/{http-DGGSKWvU.js → http-CNcDHSOj.js} +9 -8
- package/dist/i18n/index.js +20 -20
- package/dist/icon/core.d.ts +4 -0
- package/dist/icon/index.js +1 -1
- package/dist/identity/index.js +1 -1
- package/dist/index-BsJ92eub.js +504 -0
- package/dist/{index-BAcl44SC.js → index-CGv-u1Ws.js} +19 -19
- package/dist/{index-B2dbYZR9.js → index-GcLnFF-z.js} +15 -15
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/modal/Sheet.vue.d.ts +2 -0
- package/dist/modal/index.js +5 -5
- package/dist/modules/events/entities.d.ts +16 -0
- package/dist/modules/events/routes.d.ts +17 -0
- package/dist/modules/events/schemas.d.ts +16 -0
- package/dist/modules/notification/entities.d.ts +46 -0
- package/dist/modules/notification/routes.d.ts +26 -0
- package/dist/modules/notification/schemas.d.ts +25 -0
- package/dist/{navigation-BPWa63ge.js → navigation-Cm3iChlR.js} +1 -1
- package/dist/{neighbors-D0WRBxXI.js → neighbors-DpaIMQAL.js} +1 -1
- package/dist/notifications/InboxPanel.vue.d.ts +16 -0
- package/dist/notifications/MarkAllRead.vue.d.ts +7 -0
- package/dist/notifications/NotificationBell.vue.d.ts +2 -0
- package/dist/notifications/SettingsLink.vue.d.ts +6 -0
- package/dist/notifications/context.d.ts +20 -0
- package/dist/notifications/deadletters/DeadLetters.vue.d.ts +2 -0
- package/dist/notifications/deadletters/access.d.ts +3 -0
- package/dist/notifications/deadletters/list.d.ts +3 -0
- package/dist/notifications/deadletters/routes.d.ts +13 -0
- package/dist/notifications/feature.d.ts +31 -0
- package/dist/notifications/inbox.d.ts +62 -0
- package/dist/notifications/index.d.ts +13 -0
- package/dist/notifications/index.js +8 -0
- package/dist/notifications/settings/EmailPanel.vue.d.ts +14 -0
- package/dist/notifications/settings/QuietHoursPanel.vue.d.ts +14 -0
- package/dist/notifications/settings/SettingsMenuItem.vue.d.ts +2 -0
- package/dist/notifications/settings/SettingsPage.vue.d.ts +2 -0
- package/dist/notifications/settings/categoryText.d.ts +9 -0
- package/dist/notifications/settings/routes.d.ts +13 -0
- package/dist/notifications/settings/settings.d.ts +18 -0
- package/dist/notifications/settings/state.d.ts +16 -0
- package/dist/notifications/state.d.ts +27 -0
- package/dist/notifications/stream.d.ts +21 -0
- package/dist/options-Ba_0uLWN.js +18 -0
- package/dist/overlay/index.js +3 -3
- package/dist/page/index.js +7 -7
- package/dist/phone/index.js +68 -67
- package/dist/platform/index.js +2 -2
- package/dist/{platform-hunMqFdB.js → platform-q3cjODLx.js} +1 -1
- package/dist/resource/index.js +1 -1
- package/dist/route-goWMxDUN.js +13 -0
- package/dist/router/index.js +4 -4
- package/dist/{rowLayout-BI7a3Kom.js → rowLayout-BqTEhEuy.js} +5 -5
- package/dist/{sections-BEqW1dOc.js → sections-CntvUTxn.js} +1 -1
- package/dist/shell/index.js +460 -496
- package/dist/state/index.js +4 -4
- package/dist/{status-C9aXR-Jb.js → status-BuP3ULjH.js} +2 -2
- package/dist/styles.css +1 -1
- package/dist/{suggestions-BJAqOj4c.js → suggestions-BxMm6MQA.js} +1 -1
- package/dist/testing/index.js +1 -1
- package/dist/transport-BnP7WC0Y.js +4 -0
- package/dist/{useCommand-BgRwnYlV.js → useCommand-BkONMn3X.js} +2 -2
- package/dist/{useResourceForm-Bgc9jMcu.js → useResourceForm-D1hIpwW5.js} +1 -1
- package/dist/useTypedEntry-aTfPBAhw.js +857 -0
- package/package.json +6 -2
- package/dist/DateField.vue_vue_type_script_setup_true_lang-DMVjNsaM.js +0 -1099
- package/dist/ProfilePage-OJMQ8cr8.js +0 -691
- package/dist/TextareaField.vue_vue_type_script_setup_true_lang-CU3KTKIJ.js +0 -127
- package/dist/options-BXkMR63B.js +0 -329
package/dist/shell/index.js
CHANGED
|
@@ -1,215 +1,216 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as z, provide as ae, computed as A, ref as F, useId as se, openBlock as u, createElementBlock as b, normalizeClass as $, unref as n, createVNode as v, createCommentVNode as E, createElementVNode as d, toDisplayString as D, createBlock as O, withDirectives as Ie, Fragment as V, renderList as te, vShow as ze, withCtx as T, mergeProps as G, useTemplateRef as ne, renderSlot as I, createSlots as K, normalizeProps as U, guardReactiveProps as X, watch as Y, onScopeDispose as le, inject as De, onBeforeUnmount as Oe, normalizeStyle as ve, nextTick as he, Teleport as Re, shallowRef as Be, h as Z } from "vue";
|
|
2
2
|
import { useI18n as N } from "vue-i18n";
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as B, u as
|
|
5
|
-
import { _ as
|
|
6
|
-
import { u as
|
|
7
|
-
import { u as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { l as
|
|
10
|
-
import { t as
|
|
11
|
-
import { u as Q, h as ie } from "../platform-
|
|
12
|
-
import { a as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { _ as
|
|
15
|
-
import { _ as
|
|
16
|
-
import { _ as
|
|
17
|
-
import { a as
|
|
18
|
-
import { A as
|
|
19
|
-
import { RouterLink as
|
|
20
|
-
import { u as
|
|
21
|
-
import { a as
|
|
22
|
-
import { u as
|
|
23
|
-
import { _ as
|
|
24
|
-
import { W as
|
|
3
|
+
import { _ as be } from "../Avatar.vue_vue_type_script_setup_true_lang-CFIheaSr.js";
|
|
4
|
+
import { _ as B, u as Ne, c as Pe } from "../Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
5
|
+
import { _ as je } from "../Popover.vue_vue_type_script_setup_true_lang-Dx-tDhNE.js";
|
|
6
|
+
import { u as Ve, S as H } from "../contributions-DsfmDoRD.js";
|
|
7
|
+
import { u as Fe } from "../environment-Dva-SG8D.js";
|
|
8
|
+
import { _ as Ke } from "../CountryFlag.vue_vue_type_script_setup_true_lang-Kry_vPPZ.js";
|
|
9
|
+
import { l as de } from "../languageName-CItV_SOv.js";
|
|
10
|
+
import { t as ge } from "../toast-D9Z5To38.js";
|
|
11
|
+
import { u as Q, h as ie } from "../platform-q3cjODLx.js";
|
|
12
|
+
import { a as We, _ as fe, h as ye } from "../AccountMenuItem.vue_vue_type_script_setup_true_lang-CPeNxh5K.js";
|
|
13
|
+
import { _ as Ue } from "../Sheet.vue_vue_type_script_setup_true_lang-DgOFV4fa.js";
|
|
14
|
+
import { _ as Xe } from "../LeaveGuardRoot.vue_vue_type_script_setup_true_lang-Cv7KlA5y.js";
|
|
15
|
+
import { _ as Ye } from "../Toaster.vue_vue_type_script_setup_true_lang-55boRLAj.js";
|
|
16
|
+
import { _ as qe } from "../BottomDock.vue_vue_type_script_setup_true_lang-CjN7xYEr.js";
|
|
17
|
+
import { a as xe } from "../chrome-BS3xJcad.js";
|
|
18
|
+
import { A as Ge } from "../access-DdRFrVV1.js";
|
|
19
|
+
import { RouterLink as we, useRoute as He, useRouter as re } from "vue-router";
|
|
20
|
+
import { u as Qe } from "../navigation-Cm3iChlR.js";
|
|
21
|
+
import { a as q } from "../mediaQuery-CygcXmFW.js";
|
|
22
|
+
import { u as Je } from "../useDialog-CXR3hN0G.js";
|
|
23
|
+
import { _ as Ze } from "../Menu.vue_vue_type_script_setup_true_lang-DTbAcDzL.js";
|
|
24
|
+
import { W as et } from "../useWaitStatus-fsacMl4W.js";
|
|
25
25
|
import { d as _e } from "../feature-DdUAfyi4.js";
|
|
26
|
-
import {
|
|
27
|
-
|
|
26
|
+
import { _ as Qn } from "../HeaderAction.vue_vue_type_script_setup_true_lang-Cgji-Jrr.js";
|
|
27
|
+
import { S as tt } from "../dialogStack-DZZg55w0.js";
|
|
28
|
+
const nt = ["aria-expanded", "aria-controls"], at = { class: "flex-1 whitespace-nowrap" }, ot = { class: "truncate" }, st = ["id"], ke = /* @__PURE__ */ z({
|
|
28
29
|
__name: "AccountMenuContent",
|
|
29
30
|
props: {
|
|
30
31
|
appearance: {}
|
|
31
32
|
},
|
|
32
33
|
emits: ["close"],
|
|
33
34
|
setup(e, { emit: a }) {
|
|
34
|
-
const t = e, o = a, { t:
|
|
35
|
-
ae(
|
|
36
|
-
const
|
|
37
|
-
async function
|
|
35
|
+
const t = e, o = a, { t: i } = N(), { session: r } = Q(), c = Fe(), m = Ve();
|
|
36
|
+
ae(We, { appearance: t.appearance, close: () => o("close") });
|
|
37
|
+
const s = t.appearance === "sheet", p = A(() => m.get("accountMenu").length > 0), g = c.locales.length > 1, x = F(!1), _ = se(), k = A(() => de(c.locale.value)), y = (M) => c.localeFlags[M];
|
|
38
|
+
async function C() {
|
|
38
39
|
try {
|
|
39
|
-
await
|
|
40
|
+
await r.signOut();
|
|
40
41
|
} catch {
|
|
41
|
-
|
|
42
|
+
ge.error(i("core.shell.account.sign_out_failed"));
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
|
-
const f =
|
|
45
|
-
return (M,
|
|
46
|
-
class:
|
|
45
|
+
const f = s ? "overflow-hidden rounded-group bg-surface-cell shadow-group" : "";
|
|
46
|
+
return (M, l) => (u(), b("div", {
|
|
47
|
+
class: $(s ? "flex flex-col gap-group-gap text-content-strong" : "-m-1.5 space-y-1 *:not-first:border-t *:not-first:border-border-separator *:not-first:pt-1"),
|
|
47
48
|
"data-shell-account-menu": ""
|
|
48
49
|
}, [
|
|
49
|
-
|
|
50
|
+
p.value ? (u(), b("div", {
|
|
50
51
|
key: 0,
|
|
51
|
-
class:
|
|
52
|
+
class: $(n(f))
|
|
52
53
|
}, [
|
|
53
|
-
|
|
54
|
-
], 2)) :
|
|
55
|
-
g ? (u(),
|
|
54
|
+
v(n(H), { name: "accountMenu" })
|
|
55
|
+
], 2)) : E("", !0),
|
|
56
|
+
g ? (u(), b("div", {
|
|
56
57
|
key: 1,
|
|
57
|
-
class:
|
|
58
|
+
class: $(n(f))
|
|
58
59
|
}, [
|
|
59
60
|
d("div", {
|
|
60
|
-
class:
|
|
61
|
+
class: $(s ? "relative" : "")
|
|
61
62
|
}, [
|
|
62
63
|
d("button", {
|
|
63
64
|
type: "button",
|
|
64
65
|
"aria-expanded": x.value,
|
|
65
|
-
"aria-controls": n(
|
|
66
|
+
"aria-controls": n(_),
|
|
66
67
|
"data-account-language": "",
|
|
67
|
-
class:
|
|
68
|
-
onClick:
|
|
68
|
+
class: $(["flex w-full cursor-pointer items-center gap-3 text-left transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus", s ? "min-h-row px-row-inset py-2 text-body active:bg-fill" : "rounded-md px-2 py-1.5 text-sm hover:bg-fill"]),
|
|
69
|
+
onClick: l[0] || (l[0] = (L) => x.value = !x.value)
|
|
69
70
|
}, [
|
|
70
|
-
|
|
71
|
+
v(n(B), {
|
|
71
72
|
name: "translate",
|
|
72
|
-
size:
|
|
73
|
+
size: s ? 22 : 16,
|
|
73
74
|
class: "shrink-0 text-content-muted"
|
|
74
75
|
}, null, 8, ["size"]),
|
|
75
|
-
d("span",
|
|
76
|
+
d("span", at, D(n(i)("core.shell.account.language")), 1),
|
|
76
77
|
d("span", {
|
|
77
|
-
class:
|
|
78
|
+
class: $(["flex min-w-0 items-center gap-1.5 text-content-muted", s ? "" : "text-xs"])
|
|
78
79
|
}, [
|
|
79
|
-
y(n(
|
|
80
|
+
y(n(c).locale.value) ? (u(), O(Ke, {
|
|
80
81
|
key: 0,
|
|
81
|
-
country: y(n(
|
|
82
|
-
}, null, 8, ["country"])) :
|
|
83
|
-
d("span",
|
|
82
|
+
country: y(n(c).locale.value)
|
|
83
|
+
}, null, 8, ["country"])) : E("", !0),
|
|
84
|
+
d("span", ot, D(k.value), 1)
|
|
84
85
|
], 2),
|
|
85
|
-
|
|
86
|
+
v(n(B), {
|
|
86
87
|
name: "arrowDownSLine",
|
|
87
|
-
size:
|
|
88
|
-
class:
|
|
88
|
+
size: s ? 18 : 16,
|
|
89
|
+
class: $(["shrink-0 text-content-disabled transition-transform duration-motion-fast", x.value ? "rotate-180" : ""])
|
|
89
90
|
}, null, 8, ["size", "class"])
|
|
90
|
-
], 10,
|
|
91
|
+
], 10, nt)
|
|
91
92
|
], 2),
|
|
92
93
|
Ie(d("div", {
|
|
93
|
-
id: n(
|
|
94
|
-
class:
|
|
94
|
+
id: n(_),
|
|
95
|
+
class: $(s ? "" : "space-y-0.5 pl-4")
|
|
95
96
|
}, [
|
|
96
|
-
(u(!0),
|
|
97
|
-
key:
|
|
98
|
-
label: n(
|
|
99
|
-
flag: y(
|
|
100
|
-
selected:
|
|
101
|
-
onClick: (S) => n(
|
|
97
|
+
(u(!0), b(V, null, te(n(c).locales, (L) => (u(), O(fe, {
|
|
98
|
+
key: L,
|
|
99
|
+
label: n(de)(L),
|
|
100
|
+
flag: y(L),
|
|
101
|
+
selected: L === n(c).locale.value,
|
|
102
|
+
onClick: (S) => n(c).setLocale(L)
|
|
102
103
|
}, null, 8, ["label", "flag", "selected", "onClick"]))), 128))
|
|
103
|
-
], 10,
|
|
104
|
-
[
|
|
104
|
+
], 10, st), [
|
|
105
|
+
[ze, x.value]
|
|
105
106
|
])
|
|
106
|
-
], 2)) :
|
|
107
|
+
], 2)) : E("", !0),
|
|
107
108
|
d("div", {
|
|
108
|
-
class:
|
|
109
|
+
class: $(n(f))
|
|
109
110
|
}, [
|
|
110
|
-
|
|
111
|
-
label: n(
|
|
111
|
+
v(fe, {
|
|
112
|
+
label: n(i)("core.shell.account.sign_out"),
|
|
112
113
|
icon: "logoutBoxRLine",
|
|
113
114
|
tone: "critical",
|
|
114
|
-
onClick:
|
|
115
|
+
onClick: C
|
|
115
116
|
}, null, 8, ["label"])
|
|
116
117
|
], 2)
|
|
117
118
|
], 2));
|
|
118
119
|
}
|
|
119
|
-
}),
|
|
120
|
+
}), lt = ["onClick"], it = { class: "min-w-0 flex-1" }, rt = { class: "block truncate text-sm font-semibold text-white" }, ct = {
|
|
120
121
|
key: 0,
|
|
121
122
|
class: "block truncate text-xs text-gray-300"
|
|
122
|
-
},
|
|
123
|
+
}, ut = /* @__PURE__ */ z({
|
|
123
124
|
__name: "AccountMenu",
|
|
124
125
|
props: {
|
|
125
126
|
identity: {}
|
|
126
127
|
},
|
|
127
128
|
setup(e) {
|
|
128
129
|
const { t: a } = N();
|
|
129
|
-
return (t, o) => (u(), O(n(
|
|
130
|
+
return (t, o) => (u(), O(n(je), {
|
|
130
131
|
placement: "top-start",
|
|
131
132
|
width: "sm",
|
|
132
133
|
block: "",
|
|
133
134
|
arrow: !1,
|
|
134
135
|
label: n(a)("core.shell.account.open")
|
|
135
136
|
}, {
|
|
136
|
-
trigger: T(({ toggle:
|
|
137
|
-
d("button",
|
|
137
|
+
trigger: T(({ toggle: i, attrs: r, presented: c }) => [
|
|
138
|
+
d("button", G({ type: "button" }, r, {
|
|
138
139
|
"data-shell-account": "",
|
|
139
|
-
class: ["flex w-full cursor-pointer items-center gap-3 rounded-md px-2 py-2 text-left transition-colors hover:bg-white/5 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus", { "bg-white/10":
|
|
140
|
-
onClick:
|
|
140
|
+
class: ["flex w-full cursor-pointer items-center gap-3 rounded-md px-2 py-2 text-left transition-colors hover:bg-white/5 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus", { "bg-white/10": c }],
|
|
141
|
+
onClick: i
|
|
141
142
|
}), [
|
|
142
|
-
|
|
143
|
+
v(n(be), {
|
|
143
144
|
name: e.identity.name,
|
|
144
145
|
size: "md"
|
|
145
146
|
}, null, 8, ["name"]),
|
|
146
|
-
d("span",
|
|
147
|
-
d("span",
|
|
148
|
-
e.identity.detail ? (u(),
|
|
147
|
+
d("span", it, [
|
|
148
|
+
d("span", rt, D(e.identity.name), 1),
|
|
149
|
+
e.identity.detail ? (u(), b("span", ct, D(e.identity.detail), 1)) : E("", !0)
|
|
149
150
|
]),
|
|
150
|
-
|
|
151
|
+
v(n(B), {
|
|
151
152
|
name: "expandUpDownLine",
|
|
152
153
|
size: 16,
|
|
153
154
|
class: "shrink-0 text-gray-400"
|
|
154
155
|
})
|
|
155
|
-
], 16,
|
|
156
|
+
], 16, lt)
|
|
156
157
|
]),
|
|
157
|
-
default: T(({ dismiss:
|
|
158
|
-
|
|
158
|
+
default: T(({ dismiss: i }) => [
|
|
159
|
+
v(ke, {
|
|
159
160
|
appearance: "popover",
|
|
160
|
-
onClose:
|
|
161
|
+
onClose: i
|
|
161
162
|
}, null, 8, ["onClose"])
|
|
162
163
|
]),
|
|
163
164
|
_: 1
|
|
164
165
|
}, 8, ["label"]));
|
|
165
166
|
}
|
|
166
|
-
}),
|
|
167
|
+
}), dt = /* @__PURE__ */ z({
|
|
167
168
|
__name: "AccountSheet",
|
|
168
169
|
props: {
|
|
169
170
|
identity: {}
|
|
170
171
|
},
|
|
171
172
|
setup(e, { expose: a }) {
|
|
172
173
|
const t = ne("sheet");
|
|
173
|
-
return a({ present: () => t.value?.present(), dismiss: () => t.value?.dismiss() }), (o,
|
|
174
|
+
return a({ present: () => t.value?.present(), dismiss: () => t.value?.dismiss() }), (o, i) => (u(), O(n(Ue), {
|
|
174
175
|
ref_key: "sheet",
|
|
175
176
|
ref: t,
|
|
176
177
|
title: e.identity.name,
|
|
177
178
|
grouped: ""
|
|
178
179
|
}, {
|
|
179
180
|
default: T(() => [
|
|
180
|
-
|
|
181
|
+
v(ke, {
|
|
181
182
|
appearance: "sheet",
|
|
182
|
-
onClose:
|
|
183
|
+
onClose: i[0] || (i[0] = (r) => t.value?.dismiss())
|
|
183
184
|
})
|
|
184
185
|
]),
|
|
185
186
|
_: 1
|
|
186
187
|
}, 8, ["title"]));
|
|
187
188
|
}
|
|
188
189
|
});
|
|
189
|
-
function
|
|
190
|
-
const e =
|
|
191
|
-
return (t) => t && (e[t] !== void 0 || a(
|
|
190
|
+
function ft() {
|
|
191
|
+
const e = Ne(), a = (t, o) => Object.prototype.hasOwnProperty.call(t, o);
|
|
192
|
+
return (t) => t && (e[t] !== void 0 || a(Pe, t)) ? t : null;
|
|
192
193
|
}
|
|
193
|
-
function
|
|
194
|
+
function $e(e) {
|
|
194
195
|
return e.button === 0 && !e.metaKey && !e.ctrlKey && !e.shiftKey && !e.altKey && !e.defaultPrevented;
|
|
195
196
|
}
|
|
196
|
-
const
|
|
197
|
-
function
|
|
197
|
+
const Se = (e) => e.to ? [e] : e.children.flatMap(Se);
|
|
198
|
+
function mt(e) {
|
|
198
199
|
const a = [];
|
|
199
200
|
for (const t of e) {
|
|
200
|
-
const o =
|
|
201
|
+
const o = Se(t);
|
|
201
202
|
if (o.length === 0) continue;
|
|
202
|
-
const
|
|
203
|
+
const i = !t.to && o.length > 1 ? t.label : null;
|
|
203
204
|
a.push({
|
|
204
205
|
key: t.key,
|
|
205
|
-
heading:
|
|
206
|
-
separated:
|
|
207
|
-
items: o.map((
|
|
206
|
+
heading: i,
|
|
207
|
+
separated: i === null && a.length > 0,
|
|
208
|
+
items: o.map((r) => ({ key: r.key, label: r.label, icon: r.icon, to: r.to, active: r.active }))
|
|
208
209
|
});
|
|
209
210
|
}
|
|
210
211
|
return a;
|
|
211
212
|
}
|
|
212
|
-
const
|
|
213
|
+
const pt = ["aria-label", "data-appearance"], vt = ["data-separated"], ht = ["id"], bt = ["aria-labelledby"], gt = ["href", "aria-current", "onClick"], yt = { class: "min-w-0 flex-1 truncate" }, me = "flex w-full items-center transition-colors focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus", Ce = /* @__PURE__ */ z({
|
|
213
214
|
__name: "NavigationList",
|
|
214
215
|
props: {
|
|
215
216
|
items: { default: void 0 },
|
|
@@ -218,16 +219,16 @@ const vt = ["aria-label", "data-appearance"], ht = ["data-separated"], bt = ["id
|
|
|
218
219
|
},
|
|
219
220
|
emits: ["select"],
|
|
220
221
|
setup(e, { emit: a }) {
|
|
221
|
-
const t = e, o = a, { t:
|
|
222
|
-
function
|
|
223
|
-
if (t.appearance === "drawer" &&
|
|
222
|
+
const t = e, o = a, { t: i } = N(), r = se(), c = t.items === void 0 ? Qe() : null, m = ft(), s = A(() => mt(t.items ?? c?.value ?? []));
|
|
223
|
+
function p(y, C, f) {
|
|
224
|
+
if (t.appearance === "drawer" && $e(y)) {
|
|
224
225
|
y.preventDefault(), o("select", f);
|
|
225
226
|
return;
|
|
226
227
|
}
|
|
227
|
-
|
|
228
|
+
C(y);
|
|
228
229
|
}
|
|
229
230
|
const g = {
|
|
230
|
-
item: `${
|
|
231
|
+
item: `${me} group gap-2.5 rounded-md px-2.5 py-1.5 text-sm`,
|
|
231
232
|
active: "bg-white/10 font-medium text-white ring-1 ring-inset ring-white/5",
|
|
232
233
|
inactive: "font-normal text-gray-300 hover:bg-white/5 hover:text-white",
|
|
233
234
|
iconActive: "text-primary-400",
|
|
@@ -236,67 +237,67 @@ const vt = ["aria-label", "data-appearance"], ht = ["data-separated"], bt = ["id
|
|
|
236
237
|
// A hairline above the group, inset like the rows.
|
|
237
238
|
separator: "before:mx-2 before:my-2.5 before:block before:border-t before:border-white/10"
|
|
238
239
|
}, x = {
|
|
239
|
-
item: `${
|
|
240
|
+
item: `${me} min-h-[2.875rem] cursor-pointer gap-3.5 rounded-group px-3 text-left text-body duration-motion-fast`,
|
|
240
241
|
active: "bg-tint-soft font-semibold text-content-link",
|
|
241
242
|
inactive: "active:bg-fill",
|
|
242
243
|
iconActive: "",
|
|
243
244
|
iconInactive: "",
|
|
244
245
|
heading: "px-3 pt-4.5 pb-1.5 text-subheadline text-content-muted",
|
|
245
246
|
separator: "before:mx-3 before:my-3 before:block before:border-t before:border-border-separator"
|
|
246
|
-
},
|
|
247
|
-
return (y,
|
|
248
|
-
"aria-label": e.label ?? n(
|
|
247
|
+
}, _ = A(() => t.appearance === "rail" ? g : x), k = A(() => t.appearance === "rail" ? 16 : 22);
|
|
248
|
+
return (y, C) => (u(), b("nav", {
|
|
249
|
+
"aria-label": e.label ?? n(i)("core.shell.menu"),
|
|
249
250
|
"data-shell-navigation": "",
|
|
250
251
|
"data-appearance": e.appearance
|
|
251
252
|
}, [
|
|
252
253
|
d("ul", null, [
|
|
253
|
-
(u(!0),
|
|
254
|
+
(u(!0), b(V, null, te(s.value, (f, M) => (u(), b("li", {
|
|
254
255
|
key: f.key,
|
|
255
256
|
"data-separated": f.separated || void 0,
|
|
256
|
-
class:
|
|
257
|
+
class: $(f.separated ? _.value.separator : "")
|
|
257
258
|
}, [
|
|
258
|
-
f.heading ? (u(),
|
|
259
|
+
f.heading ? (u(), b("p", {
|
|
259
260
|
key: 0,
|
|
260
|
-
id: `${n(
|
|
261
|
-
class:
|
|
262
|
-
}, D(f.heading), 11,
|
|
261
|
+
id: `${n(r)}-${M}`,
|
|
262
|
+
class: $([_.value.heading, e.appearance === "rail" ? M > 0 ? "pt-4" : "pt-1" : ""])
|
|
263
|
+
}, D(f.heading), 11, ht)) : E("", !0),
|
|
263
264
|
d("ul", {
|
|
264
|
-
"aria-labelledby": f.heading ? `${n(
|
|
265
|
-
class:
|
|
265
|
+
"aria-labelledby": f.heading ? `${n(r)}-${M}` : void 0,
|
|
266
|
+
class: $(e.appearance === "rail" ? "space-y-0.5" : "")
|
|
266
267
|
}, [
|
|
267
|
-
(u(!0),
|
|
268
|
-
key:
|
|
268
|
+
(u(!0), b(V, null, te(f.items, (l) => (u(), b("li", {
|
|
269
|
+
key: l.key
|
|
269
270
|
}, [
|
|
270
|
-
|
|
271
|
+
v(n(we), {
|
|
271
272
|
custom: "",
|
|
272
|
-
to:
|
|
273
|
+
to: l.to
|
|
273
274
|
}, {
|
|
274
|
-
default: T(({ href:
|
|
275
|
+
default: T(({ href: L, navigate: S }) => [
|
|
275
276
|
d("a", {
|
|
276
|
-
href:
|
|
277
|
-
"aria-current":
|
|
277
|
+
href: L,
|
|
278
|
+
"aria-current": l.active ? "page" : void 0,
|
|
278
279
|
"data-shell-destination": "",
|
|
279
|
-
class:
|
|
280
|
-
onClick: (w) =>
|
|
280
|
+
class: $([_.value.item, l.active ? _.value.active : _.value.inactive]),
|
|
281
|
+
onClick: (w) => p(w, S, l.to)
|
|
281
282
|
}, [
|
|
282
|
-
n(m)(
|
|
283
|
+
n(m)(l.icon) ? (u(), O(n(B), {
|
|
283
284
|
key: 0,
|
|
284
|
-
name: n(m)(
|
|
285
|
-
size:
|
|
286
|
-
class:
|
|
287
|
-
}, null, 8, ["name", "size", "class"])) :
|
|
288
|
-
d("span",
|
|
289
|
-
], 10,
|
|
285
|
+
name: n(m)(l.icon),
|
|
286
|
+
size: k.value,
|
|
287
|
+
class: $(l.active ? _.value.iconActive : _.value.iconInactive)
|
|
288
|
+
}, null, 8, ["name", "size", "class"])) : E("", !0),
|
|
289
|
+
d("span", yt, D(l.label), 1)
|
|
290
|
+
], 10, gt)
|
|
290
291
|
]),
|
|
291
292
|
_: 2
|
|
292
293
|
}, 1032, ["to"])
|
|
293
294
|
]))), 128))
|
|
294
|
-
], 10,
|
|
295
|
-
], 10,
|
|
295
|
+
], 10, bt)
|
|
296
|
+
], 10, vt))), 128))
|
|
296
297
|
])
|
|
297
|
-
], 8,
|
|
298
|
+
], 8, pt));
|
|
298
299
|
}
|
|
299
|
-
}),
|
|
300
|
+
}), xt = ["href", "aria-label", "onClick"], ce = /* @__PURE__ */ z({
|
|
300
301
|
inheritAttrs: !1,
|
|
301
302
|
__name: "ShellBrand",
|
|
302
303
|
props: {
|
|
@@ -306,43 +307,43 @@ const vt = ["aria-label", "data-appearance"], ht = ["data-separated"], bt = ["id
|
|
|
306
307
|
},
|
|
307
308
|
emits: ["select"],
|
|
308
309
|
setup(e, { emit: a }) {
|
|
309
|
-
const t = e, o = a, { t:
|
|
310
|
-
function
|
|
311
|
-
if (t.intercept &&
|
|
310
|
+
const t = e, o = a, { t: i } = N(), { config: r } = Q();
|
|
311
|
+
function c(m, s) {
|
|
312
|
+
if (t.intercept && $e(m)) {
|
|
312
313
|
m.preventDefault(), o("select", t.to);
|
|
313
314
|
return;
|
|
314
315
|
}
|
|
315
|
-
|
|
316
|
+
s(m);
|
|
316
317
|
}
|
|
317
|
-
return (m,
|
|
318
|
+
return (m, s) => (u(), O(n(we), {
|
|
318
319
|
custom: "",
|
|
319
320
|
to: e.to
|
|
320
321
|
}, {
|
|
321
|
-
default: T(({ href:
|
|
322
|
-
d("a",
|
|
323
|
-
href:
|
|
324
|
-
"aria-label": n(
|
|
322
|
+
default: T(({ href: p, navigate: g }) => [
|
|
323
|
+
d("a", G(m.$attrs, {
|
|
324
|
+
href: p,
|
|
325
|
+
"aria-label": n(i)("core.shell.home"),
|
|
325
326
|
"data-shell-brand": "",
|
|
326
327
|
class: "inline-block rounded-control focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus",
|
|
327
|
-
onClick: (x) =>
|
|
328
|
+
onClick: (x) => c(x, g)
|
|
328
329
|
}), [
|
|
329
|
-
|
|
330
|
+
I(m.$slots, "default", { tone: e.tone }, () => [
|
|
330
331
|
d("span", {
|
|
331
|
-
class:
|
|
332
|
-
}, D(n(
|
|
332
|
+
class: $(["block truncate text-headline font-semibold", e.tone === "light" ? "text-white" : "text-content-strong"])
|
|
333
|
+
}, D(n(r).appName), 3)
|
|
333
334
|
])
|
|
334
|
-
], 16,
|
|
335
|
+
], 16, xt)
|
|
335
336
|
]),
|
|
336
337
|
_: 3
|
|
337
338
|
}, 8, ["to"]));
|
|
338
339
|
}
|
|
339
|
-
}),
|
|
340
|
+
}), wt = {
|
|
340
341
|
class: "flex h-full flex-col bg-surface-page text-content-strong",
|
|
341
342
|
"data-shell-drawer-content": ""
|
|
342
|
-
}, _t = { class: "shrink-0 pt-[calc(max(0.75rem,env(safe-area-inset-top))+0.75rem)] pr-4 pb-4 pl-[max(1.375rem,env(safe-area-inset-left))]" },
|
|
343
|
+
}, _t = { class: "shrink-0 pt-[calc(max(0.75rem,env(safe-area-inset-top))+0.75rem)] pr-4 pb-4 pl-[max(1.375rem,env(safe-area-inset-left))]" }, kt = { class: "min-w-0 flex-1" }, $t = { class: "block truncate text-headline font-semibold" }, St = {
|
|
343
344
|
key: 0,
|
|
344
345
|
class: "block truncate text-footnote text-content-muted"
|
|
345
|
-
},
|
|
346
|
+
}, Ct = /* @__PURE__ */ z({
|
|
346
347
|
__name: "NavigationDrawer",
|
|
347
348
|
props: {
|
|
348
349
|
identity: {},
|
|
@@ -351,51 +352,51 @@ const vt = ["aria-label", "data-appearance"], ht = ["data-separated"], bt = ["id
|
|
|
351
352
|
emits: ["select", "account"],
|
|
352
353
|
setup(e, { emit: a }) {
|
|
353
354
|
const t = a, { t: o } = N();
|
|
354
|
-
return (
|
|
355
|
+
return (i, r) => (u(), b("div", wt, [
|
|
355
356
|
d("div", _t, [
|
|
356
|
-
|
|
357
|
+
v(ce, {
|
|
357
358
|
to: e.home,
|
|
358
359
|
tone: "brand",
|
|
359
360
|
intercept: "",
|
|
360
361
|
class: "max-w-36",
|
|
361
|
-
onSelect:
|
|
362
|
+
onSelect: r[0] || (r[0] = (c) => t("select", c))
|
|
362
363
|
}, K({ _: 2 }, [
|
|
363
|
-
|
|
364
|
+
i.$slots.brand ? {
|
|
364
365
|
name: "default",
|
|
365
|
-
fn: T((
|
|
366
|
-
|
|
366
|
+
fn: T((c) => [
|
|
367
|
+
I(i.$slots, "brand", U(X(c)))
|
|
367
368
|
]),
|
|
368
369
|
key: "0"
|
|
369
370
|
} : void 0
|
|
370
371
|
]), 1032, ["to"])
|
|
371
372
|
]),
|
|
372
|
-
|
|
373
|
+
r[3] || (r[3] = d("div", {
|
|
373
374
|
class: "mx-5.5 shrink-0 border-t border-border-separator",
|
|
374
375
|
role: "presentation"
|
|
375
376
|
}, null, -1)),
|
|
376
|
-
|
|
377
|
+
v(Ce, {
|
|
377
378
|
appearance: "drawer",
|
|
378
379
|
label: n(o)("core.shell.menu"),
|
|
379
380
|
class: "min-h-0 flex-1 overflow-y-auto overscroll-contain pt-2 pr-2.5 pb-3 pl-[max(0.625rem,env(safe-area-inset-left))] [mask-image:linear-gradient(to_bottom,black_calc(100%-1.5rem),transparent)]",
|
|
380
|
-
onSelect:
|
|
381
|
+
onSelect: r[1] || (r[1] = (c) => t("select", c))
|
|
381
382
|
}, null, 8, ["label"]),
|
|
382
|
-
|
|
383
|
+
I(i.$slots, "footer"),
|
|
383
384
|
d("button", {
|
|
384
385
|
type: "button",
|
|
385
386
|
"data-shell-drawer-account": "",
|
|
386
387
|
"aria-haspopup": "dialog",
|
|
387
388
|
class: "flex shrink-0 cursor-pointer items-center gap-3 border-t border-border-separator pt-3 pr-4 pb-[max(1rem,env(safe-area-inset-bottom))] pl-[max(1.125rem,env(safe-area-inset-left))] text-left transition-colors duration-motion-fast active:bg-fill focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus",
|
|
388
|
-
onClick:
|
|
389
|
+
onClick: r[2] || (r[2] = (c) => t("account"))
|
|
389
390
|
}, [
|
|
390
|
-
|
|
391
|
+
v(n(be), {
|
|
391
392
|
name: e.identity.name,
|
|
392
393
|
size: "lg"
|
|
393
394
|
}, null, 8, ["name"]),
|
|
394
|
-
d("span",
|
|
395
|
-
d("span",
|
|
396
|
-
e.identity.detail ? (u(),
|
|
395
|
+
d("span", kt, [
|
|
396
|
+
d("span", $t, D(e.identity.name), 1),
|
|
397
|
+
e.identity.detail ? (u(), b("span", St, D(e.identity.detail), 1)) : E("", !0)
|
|
397
398
|
]),
|
|
398
|
-
|
|
399
|
+
v(n(B), {
|
|
399
400
|
name: "arrowRightSLine",
|
|
400
401
|
size: 18,
|
|
401
402
|
class: "shrink-0 text-content-disabled"
|
|
@@ -403,188 +404,188 @@ const vt = ["aria-label", "data-appearance"], ht = ["data-separated"], bt = ["id
|
|
|
403
404
|
])
|
|
404
405
|
]));
|
|
405
406
|
}
|
|
406
|
-
}),
|
|
407
|
+
}), Lt = {
|
|
407
408
|
key: 0,
|
|
408
409
|
"data-shell-sidebar": "",
|
|
409
410
|
class: "flex w-64 shrink-0 flex-col bg-anchor-900 dark:border-r dark:border-white/5 dark:bg-anchor-950"
|
|
410
|
-
},
|
|
411
|
+
}, At = { class: "sticky top-[var(--shell-banner-h,0px)] z-30 flex h-[calc(100vh-var(--shell-banner-h,0px))] flex-col" }, Et = { class: "flex items-center justify-between gap-2 pt-5 pr-2 pb-3 pl-4" }, Tt = { class: "flex shrink-0 items-center gap-1" }, Mt = { class: "border-t border-white/10 p-2" }, It = /* @__PURE__ */ z({
|
|
411
412
|
__name: "ShellSidebar",
|
|
412
413
|
props: {
|
|
413
414
|
identity: {},
|
|
414
415
|
home: {}
|
|
415
416
|
},
|
|
416
417
|
setup(e) {
|
|
417
|
-
ae(
|
|
418
|
-
const a =
|
|
419
|
-
return (t, o) => n(a) ? (u(),
|
|
420
|
-
d("div",
|
|
421
|
-
d("div",
|
|
422
|
-
|
|
418
|
+
ae(ye, "rail");
|
|
419
|
+
const a = q("(min-width: 48rem)");
|
|
420
|
+
return (t, o) => n(a) ? (u(), b("aside", Lt, [
|
|
421
|
+
d("div", At, [
|
|
422
|
+
d("div", Et, [
|
|
423
|
+
v(ce, {
|
|
423
424
|
to: e.home,
|
|
424
425
|
tone: "light",
|
|
425
426
|
class: "min-w-0"
|
|
426
427
|
}, K({ _: 2 }, [
|
|
427
428
|
t.$slots.brand ? {
|
|
428
429
|
name: "default",
|
|
429
|
-
fn: T((
|
|
430
|
-
|
|
430
|
+
fn: T((i) => [
|
|
431
|
+
I(t.$slots, "brand", U(X(i)))
|
|
431
432
|
]),
|
|
432
433
|
key: "0"
|
|
433
434
|
} : void 0
|
|
434
435
|
]), 1032, ["to"]),
|
|
435
|
-
d("div",
|
|
436
|
-
|
|
436
|
+
d("div", Tt, [
|
|
437
|
+
v(n(H), { name: "headerActions" })
|
|
437
438
|
])
|
|
438
439
|
]),
|
|
439
|
-
|
|
440
|
+
v(Ce, {
|
|
440
441
|
appearance: "rail",
|
|
441
442
|
class: "scrollbar-subtle min-h-0 flex-1 overflow-y-auto px-2 pt-3 pb-3 [mask-image:linear-gradient(to_bottom,transparent,black_12px,black_calc(100%-12px),transparent)]"
|
|
442
443
|
}),
|
|
443
|
-
|
|
444
|
-
d("div",
|
|
445
|
-
|
|
444
|
+
I(t.$slots, "footer"),
|
|
445
|
+
d("div", Mt, [
|
|
446
|
+
v(ut, { identity: e.identity }, null, 8, ["identity"])
|
|
446
447
|
])
|
|
447
448
|
])
|
|
448
|
-
])) :
|
|
449
|
+
])) : E("", !0);
|
|
449
450
|
}
|
|
450
|
-
}),
|
|
451
|
-
function
|
|
452
|
-
if (Math.abs(e - a) >
|
|
453
|
-
if (o >
|
|
454
|
-
if (o < -
|
|
451
|
+
}), zt = 20, Dt = 8, pe = 0.5, Ot = 40;
|
|
452
|
+
function Rt({ offset: e, startOffset: a, width: t, velocity: o }) {
|
|
453
|
+
if (Math.abs(e - a) > Ot) {
|
|
454
|
+
if (o > pe) return !0;
|
|
455
|
+
if (o < -pe) return !1;
|
|
455
456
|
}
|
|
456
457
|
return e > t / 2;
|
|
457
458
|
}
|
|
458
|
-
function
|
|
459
|
+
function Bt(e) {
|
|
459
460
|
const a = F(0), t = F(!1);
|
|
460
|
-
let o = !1,
|
|
461
|
+
let o = !1, i = null, r = 0, c = 0, m = 0, s = 0, p = 0, g = 0;
|
|
461
462
|
function x(S, w) {
|
|
462
|
-
o = !0,
|
|
463
|
+
o = !0, i = null, r = s = S.clientX, c = S.clientY, m = w, p = performance.now(), g = 0;
|
|
463
464
|
}
|
|
464
|
-
function
|
|
465
|
+
function _(S) {
|
|
465
466
|
const w = S.touches[0];
|
|
466
467
|
if (!o || !w) return;
|
|
467
|
-
const R = w.clientX -
|
|
468
|
-
if (!
|
|
469
|
-
if (Math.max(Math.abs(R), Math.abs(J)) <
|
|
470
|
-
if (
|
|
468
|
+
const R = w.clientX - r, J = w.clientY - c;
|
|
469
|
+
if (!i) {
|
|
470
|
+
if (Math.max(Math.abs(R), Math.abs(J)) < Dt) return;
|
|
471
|
+
if (i = Math.abs(R) > Math.abs(J) ? "x" : "y", i === "y" || m === 0 && R < 0) {
|
|
471
472
|
o = !1;
|
|
472
473
|
return;
|
|
473
474
|
}
|
|
474
475
|
t.value = !0, a.value = m, e.onStart();
|
|
475
476
|
}
|
|
476
477
|
const W = performance.now();
|
|
477
|
-
g = (w.clientX -
|
|
478
|
+
g = (w.clientX - s) / Math.max(W - p, 1), s = w.clientX, p = W, a.value = Math.min(e.width(), Math.max(0, m + R)), S.cancelable && S.preventDefault();
|
|
478
479
|
}
|
|
479
|
-
function
|
|
480
|
-
o && (o = !1, t.value && (t.value = !1, e.onSettle(
|
|
480
|
+
function k() {
|
|
481
|
+
o && (o = !1, t.value && (t.value = !1, e.onSettle(Rt({ offset: a.value, startOffset: m, width: e.width(), velocity: g }))));
|
|
481
482
|
}
|
|
482
483
|
function y() {
|
|
483
484
|
o = !1, t.value = !1;
|
|
484
485
|
}
|
|
485
|
-
function
|
|
486
|
+
function C(S) {
|
|
486
487
|
const w = S.touches[0];
|
|
487
|
-
!w || S.touches.length !== 1 || e.isOpen() || !e.canOpenFromEdge() || w.clientX >
|
|
488
|
+
!w || S.touches.length !== 1 || e.isOpen() || !e.canOpenFromEdge() || w.clientX > zt || x(w, 0);
|
|
488
489
|
}
|
|
489
490
|
let f = !1;
|
|
490
491
|
function M() {
|
|
491
|
-
f || (f = !0, window.addEventListener("touchstart",
|
|
492
|
+
f || (f = !0, window.addEventListener("touchstart", C, { passive: !0 }), window.addEventListener("touchmove", _, { passive: !1 }), window.addEventListener("touchend", k), window.addEventListener("touchcancel", k));
|
|
492
493
|
}
|
|
493
|
-
function
|
|
494
|
-
f && (f = !1, window.removeEventListener("touchstart",
|
|
494
|
+
function l() {
|
|
495
|
+
f && (f = !1, window.removeEventListener("touchstart", C), window.removeEventListener("touchmove", _), window.removeEventListener("touchend", k), window.removeEventListener("touchcancel", k), y());
|
|
495
496
|
}
|
|
496
|
-
return
|
|
497
|
+
return Y(e.enabled, (S) => S ? M() : l(), { immediate: !0 }), le(l), { offset: a, dragging: t, closeEvents: {
|
|
497
498
|
onTouchstartPassive(S) {
|
|
498
499
|
const w = S.touches[0];
|
|
499
500
|
w && S.touches.length === 1 && e.isOpen() && x(w, e.width());
|
|
500
501
|
}
|
|
501
502
|
}, cancel: y };
|
|
502
503
|
}
|
|
503
|
-
const
|
|
504
|
-
function
|
|
505
|
-
return
|
|
504
|
+
const Le = Symbol("vue-core.navigationDrawer");
|
|
505
|
+
function Nt() {
|
|
506
|
+
return De(Le, null);
|
|
506
507
|
}
|
|
507
|
-
const
|
|
508
|
+
const Pt = ["id", "aria-label"], jt = ["data-drawer", "inert"], Vt = /* @__PURE__ */ z({
|
|
508
509
|
__name: "ShellStage",
|
|
509
510
|
props: {
|
|
510
511
|
enabled: { type: Boolean }
|
|
511
512
|
},
|
|
512
513
|
setup(e) {
|
|
513
|
-
const a = e, { t } = N(), o =
|
|
514
|
-
let f = 0, M = !1,
|
|
515
|
-
const S = () => x.value?.offsetWidth ?? 0, w =
|
|
516
|
-
enabled: () =>
|
|
514
|
+
const a = e, { t } = N(), o = He(), i = re(), r = q("(max-width: 47.999rem)"), c = q("(display-mode: standalone)"), m = q("(prefers-reduced-motion: reduce)"), s = A(() => a.enabled && r.value), p = ne("stage"), g = ne("scroller"), x = F(null), _ = se(), k = F(!1), y = F(!1), C = F(!1);
|
|
515
|
+
let f = 0, M = !1, l, L = null;
|
|
516
|
+
const S = () => x.value?.offsetWidth ?? 0, w = Bt({
|
|
517
|
+
enabled: () => s.value,
|
|
517
518
|
width: S,
|
|
518
|
-
isOpen: () =>
|
|
519
|
-
canOpenFromEdge: () =>
|
|
519
|
+
isOpen: () => C.value,
|
|
520
|
+
canOpenFromEdge: () => c.value || navigator.standalone === !0,
|
|
520
521
|
onStart: () => {
|
|
521
|
-
clearTimeout(
|
|
522
|
+
clearTimeout(l), ue();
|
|
522
523
|
},
|
|
523
|
-
onSettle: (
|
|
524
|
-
}), R =
|
|
524
|
+
onSettle: (h) => h ? k.value = !0 : j()
|
|
525
|
+
}), R = A(() => w.dragging.value ? w.offset.value : C.value ? S() : 0), J = A(() => S() ? R.value / S() : 0), W = Je(x, {
|
|
525
526
|
initialFocus: "panel",
|
|
526
527
|
onEscape: () => j()
|
|
527
528
|
});
|
|
528
|
-
function
|
|
529
|
-
const
|
|
530
|
-
return
|
|
529
|
+
function Ae() {
|
|
530
|
+
const h = getComputedStyle(document.documentElement).getPropertyValue("--app-motion-drawer").trim();
|
|
531
|
+
return h.endsWith("ms") ? parseFloat(h) : parseFloat(h) * 1e3 || 0;
|
|
531
532
|
}
|
|
532
|
-
function
|
|
533
|
-
const
|
|
534
|
-
y.value || !
|
|
533
|
+
function ue() {
|
|
534
|
+
const h = p.value, P = g.value;
|
|
535
|
+
y.value || !h || !P || (f = window.scrollY, M = !1, Object.assign(h.style, { position: "fixed", inset: "0", overflow: "hidden", zIndex: "10" }), Object.assign(P.style, { position: "absolute", inset: "0", overflow: "hidden" }), P.scrollTop = f, y.value = !0);
|
|
535
536
|
}
|
|
536
537
|
function oe() {
|
|
537
|
-
const
|
|
538
|
-
!y.value || !
|
|
538
|
+
const h = p.value, P = g.value;
|
|
539
|
+
!y.value || !h || !P || (Object.assign(h.style, { position: "", inset: "", overflow: "", zIndex: "", transform: "", transition: "", borderRadius: "" }), Object.assign(P.style, { position: "", inset: "", overflow: "" }), y.value = !1, window.scrollTo({ top: M ? 0 : f, behavior: "instant" }));
|
|
539
540
|
}
|
|
540
|
-
|
|
541
|
-
const
|
|
542
|
-
!
|
|
541
|
+
Y([R, () => w.dragging.value, y], () => {
|
|
542
|
+
const h = p.value;
|
|
543
|
+
!h || !y.value || (h.style.transform = `translate3d(${R.value}px, 0, 0)`, h.style.borderRadius = R.value > 0 ? "2.5rem" : "", h.style.transition = w.dragging.value || m.value ? "none" : "transform var(--app-motion-drawer) var(--app-motion-sheet-easing), border-radius var(--app-motion-drawer) var(--app-motion-sheet-easing)");
|
|
543
544
|
}, { flush: "sync" });
|
|
544
|
-
function
|
|
545
|
-
if (!
|
|
546
|
-
|
|
545
|
+
function Ee() {
|
|
546
|
+
if (!s.value) {
|
|
547
|
+
k.value = !1;
|
|
547
548
|
return;
|
|
548
549
|
}
|
|
549
|
-
clearTimeout(
|
|
550
|
+
clearTimeout(l), L = null, ue(), p.value?.offsetWidth, C.value = !0, W.present(), he(() => {
|
|
550
551
|
x.value?.querySelector('[aria-current="page"]')?.focus({ preventScroll: !0 });
|
|
551
552
|
});
|
|
552
553
|
}
|
|
553
|
-
function j(
|
|
554
|
-
if (
|
|
555
|
-
|
|
554
|
+
function j(h) {
|
|
555
|
+
if (h && (L = h), k.value) {
|
|
556
|
+
k.value = !1;
|
|
556
557
|
return;
|
|
557
558
|
}
|
|
558
|
-
|
|
559
|
+
C.value = !1, W.dismissWithoutAsking(), clearTimeout(l), l = setTimeout(Te, Ae() + 30);
|
|
559
560
|
}
|
|
560
|
-
function
|
|
561
|
+
function Te() {
|
|
561
562
|
oe();
|
|
562
|
-
const
|
|
563
|
-
|
|
563
|
+
const h = L;
|
|
564
|
+
L = null, h?.();
|
|
564
565
|
}
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
}),
|
|
568
|
-
y.value && (M = !0),
|
|
566
|
+
Y(k, (h) => h ? Ee() : j()), Y(s, (h) => {
|
|
567
|
+
h || (w.cancel(), clearTimeout(l), L = null, k.value = !1, C.value = !1, W.dismissWithoutAsking(), oe());
|
|
568
|
+
}), Y(() => o.fullPath, () => {
|
|
569
|
+
y.value && (M = !0), C.value && j();
|
|
569
570
|
});
|
|
570
|
-
function
|
|
571
|
-
|
|
571
|
+
function Me(h) {
|
|
572
|
+
i.push(h).catch(() => {
|
|
572
573
|
}).finally(() => j());
|
|
573
574
|
}
|
|
574
|
-
return ae(
|
|
575
|
-
available:
|
|
576
|
-
open:
|
|
577
|
-
panelId:
|
|
575
|
+
return ae(Le, {
|
|
576
|
+
available: s,
|
|
577
|
+
open: k,
|
|
578
|
+
panelId: _,
|
|
578
579
|
present: () => {
|
|
579
|
-
|
|
580
|
+
s.value && (k.value = !0);
|
|
580
581
|
},
|
|
581
582
|
dismiss: j
|
|
582
583
|
}), Oe(() => {
|
|
583
|
-
clearTimeout(
|
|
584
|
-
}), (
|
|
585
|
-
|
|
584
|
+
clearTimeout(l), oe();
|
|
585
|
+
}), (h, P) => (u(), b(V, null, [
|
|
586
|
+
s.value ? (u(), b("div", G({
|
|
586
587
|
key: 0,
|
|
587
|
-
id: n(
|
|
588
|
+
id: n(_),
|
|
588
589
|
ref_key: "panel",
|
|
589
590
|
ref: x,
|
|
590
591
|
role: "dialog",
|
|
@@ -593,51 +594,51 @@ const jt = ["id", "aria-label"], Vt = ["data-drawer", "inert"], Ft = /* @__PURE_
|
|
|
593
594
|
tabindex: "-1",
|
|
594
595
|
"data-shell-drawer": "",
|
|
595
596
|
class: ["fixed inset-y-0 left-0 z-0 w-[min(82vw,20rem)] outline-none", y.value ? "visible" : "invisible"],
|
|
596
|
-
style: n(m) ? { opacity:
|
|
597
|
+
style: n(m) ? { opacity: C.value || n(w).dragging.value ? 1 : 0, transition: "opacity var(--app-motion-drawer) linear" } : void 0
|
|
597
598
|
}, n(w).closeEvents), [
|
|
598
|
-
|
|
599
|
-
select:
|
|
599
|
+
I(h.$slots, "drawer", {
|
|
600
|
+
select: Me,
|
|
600
601
|
dismiss: j
|
|
601
602
|
})
|
|
602
|
-
], 16,
|
|
603
|
+
], 16, Pt)) : E("", !0),
|
|
603
604
|
d("div", {
|
|
604
605
|
ref_key: "stage",
|
|
605
|
-
ref:
|
|
606
|
+
ref: p,
|
|
606
607
|
"data-shell-stage": "",
|
|
607
|
-
"data-drawer":
|
|
608
|
-
class:
|
|
609
|
-
inert:
|
|
608
|
+
"data-drawer": C.value ? "open" : void 0,
|
|
609
|
+
class: $(["flex flex-1 flex-col", y.value ? "overscroll-none bg-surface-page shadow-dialog" : ""]),
|
|
610
|
+
inert: C.value || n(w).dragging.value || void 0
|
|
610
611
|
}, [
|
|
611
612
|
d("div", {
|
|
612
613
|
ref_key: "scroller",
|
|
613
614
|
ref: g,
|
|
614
615
|
class: "flex flex-1 flex-col"
|
|
615
616
|
}, [
|
|
616
|
-
|
|
617
|
+
I(h.$slots, "default")
|
|
617
618
|
], 512),
|
|
618
|
-
y.value ? (u(),
|
|
619
|
+
y.value ? (u(), b("div", {
|
|
619
620
|
key: 0,
|
|
620
621
|
"aria-hidden": "true",
|
|
621
622
|
class: "pointer-events-none fixed inset-0 z-50 bg-scrim",
|
|
622
|
-
style:
|
|
623
|
-
}, null, 4)) :
|
|
624
|
-
], 10,
|
|
625
|
-
y.value && R.value > 0 ? (u(),
|
|
623
|
+
style: ve({ opacity: J.value * 0.55 })
|
|
624
|
+
}, null, 4)) : E("", !0)
|
|
625
|
+
], 10, jt),
|
|
626
|
+
y.value && R.value > 0 ? (u(), b("div", G({
|
|
626
627
|
key: 1,
|
|
627
628
|
"aria-hidden": "true",
|
|
628
629
|
"data-shell-stage-cover": "",
|
|
629
630
|
class: "fixed inset-y-0 right-0 z-20",
|
|
630
631
|
style: { left: `${R.value}px` }
|
|
631
632
|
}, n(w).closeEvents, {
|
|
632
|
-
onClick: P[0] || (P[0] = (
|
|
633
|
-
}), null, 16)) :
|
|
633
|
+
onClick: P[0] || (P[0] = (yn) => j())
|
|
634
|
+
}), null, 16)) : E("", !0)
|
|
634
635
|
], 64));
|
|
635
636
|
}
|
|
636
|
-
}),
|
|
637
|
+
}), Ft = ["aria-label", "aria-expanded", "aria-controls"], Kt = /* @__PURE__ */ z({
|
|
637
638
|
__name: "NavigationMenuButton",
|
|
638
639
|
setup(e) {
|
|
639
|
-
const a =
|
|
640
|
-
return (o,
|
|
640
|
+
const a = Nt(), { t } = N();
|
|
641
|
+
return (o, i) => n(a)?.available.value ? (u(), b("button", {
|
|
641
642
|
key: 0,
|
|
642
643
|
type: "button",
|
|
643
644
|
"data-shell-menu-button": "",
|
|
@@ -646,75 +647,75 @@ const jt = ["id", "aria-label"], Vt = ["data-drawer", "inert"], Ft = /* @__PURE_
|
|
|
646
647
|
"aria-controls": n(a).panelId,
|
|
647
648
|
"aria-haspopup": "dialog",
|
|
648
649
|
class: "relative my-1 ml-2 flex size-11 shrink-0 cursor-pointer items-center justify-center rounded-full bg-surface-cell text-content-strong shadow-float transition-transform duration-motion-fast active:scale-95 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus",
|
|
649
|
-
onClick:
|
|
650
|
+
onClick: i[0] || (i[0] = (r) => n(a).present())
|
|
650
651
|
}, [
|
|
651
|
-
|
|
652
|
+
v(n(B), {
|
|
652
653
|
name: "menuLines",
|
|
653
654
|
size: 20
|
|
654
655
|
})
|
|
655
|
-
], 8,
|
|
656
|
+
], 8, Ft)) : E("", !0);
|
|
656
657
|
}
|
|
657
|
-
}),
|
|
658
|
+
}), Wt = { class: "grid min-h-bar-height grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)] items-center gap-1" }, Ut = { class: "flex min-w-0 items-center justify-start" }, Xt = ["data-page-action", "disabled"], Yt = { class: "truncate" }, qt = { class: "ml-1 flex items-center gap-1" }, Gt = { class: "flex min-w-0 items-center justify-end" }, Ht = ["data-page-action", "aria-label", "disabled", "onClick"], Qt = ["data-page-action", "disabled", "aria-label", "aria-busy", "onClick"], Jt = { class: "truncate" }, Zt = ["aria-label", "onClick"], en = /* @__PURE__ */ z({
|
|
658
659
|
__name: "ShellTopBar",
|
|
659
660
|
props: {
|
|
660
661
|
home: {}
|
|
661
662
|
},
|
|
662
663
|
setup(e) {
|
|
663
|
-
const { t: a } = N(), t =
|
|
664
|
-
ae(
|
|
665
|
-
const
|
|
666
|
-
() =>
|
|
664
|
+
const { t: a } = N(), t = re(), o = xe(), { session: i } = Q(), r = q("(max-width: 47.999rem)");
|
|
665
|
+
ae(ye, "bar");
|
|
666
|
+
const c = A(() => ie(i.state.value) !== null), m = A(() => !c.value || r.value), s = A(() => c.value ? o.back.value : null), p = A(() => c.value ? o.leading.value : null), g = A(() => o.navTitle.value ?? o.title.value), x = A(() => c.value && !!g.value && (!!o.navTitle.value || !o.titleInView.value)), _ = A(() => c.value ? o.actions.value : []), k = A(() => _.value.filter((f) => f.placement === "primary" && f.tone !== "critical")), y = A(
|
|
667
|
+
() => _.value.filter((f) => !k.value.includes(f)).map((f) => ({ id: f.id, label: f.label, icon: f.icon, tone: f.tone, disabled: f.disabled, processing: f.processing, onSelect: f.onClick }))
|
|
667
668
|
);
|
|
668
|
-
function
|
|
669
|
-
|
|
669
|
+
function C() {
|
|
670
|
+
s.value && t.push(s.value.to);
|
|
670
671
|
}
|
|
671
|
-
return (f, M) => m.value ? (u(),
|
|
672
|
+
return (f, M) => m.value ? (u(), b("header", {
|
|
672
673
|
key: 0,
|
|
673
674
|
"data-shell-top-bar": "",
|
|
674
|
-
class:
|
|
675
|
+
class: $(["pt-[max(0.25rem,env(safe-area-inset-top))] pr-[max(0.5rem,env(safe-area-inset-right))] pb-1 pl-[max(0.5rem,env(safe-area-inset-left))] text-content-strong", c.value ? ["sticky top-[var(--shell-banner-h,0px)] z-30 border-b bg-surface-page/85 backdrop-blur-xl transition-colors duration-motion-normal", x.value ? "border-border-separator" : "border-transparent"] : "border-b border-border-separator bg-surface-cell"])
|
|
675
676
|
}, [
|
|
676
|
-
d("div",
|
|
677
|
-
d("div",
|
|
678
|
-
|
|
677
|
+
d("div", Wt, [
|
|
678
|
+
d("div", Ut, [
|
|
679
|
+
p.value ? (u(), b("button", {
|
|
679
680
|
key: 0,
|
|
680
681
|
type: "button",
|
|
681
682
|
"data-shell-bar-leading": "",
|
|
682
|
-
"data-page-action":
|
|
683
|
-
disabled:
|
|
683
|
+
"data-page-action": p.value.id,
|
|
684
|
+
disabled: p.value.disabled || p.value.processing,
|
|
684
685
|
class: "hit-target inline-flex min-w-0 cursor-pointer items-center rounded-control px-2 text-body text-content-link disabled:text-content-disabled",
|
|
685
|
-
onClick: M[0] || (M[0] = (
|
|
686
|
+
onClick: M[0] || (M[0] = (l) => p.value.onClick())
|
|
686
687
|
}, [
|
|
687
|
-
d("span",
|
|
688
|
-
], 8,
|
|
688
|
+
d("span", Yt, D(p.value.label), 1)
|
|
689
|
+
], 8, Xt)) : s.value ? (u(), b("button", {
|
|
689
690
|
key: 1,
|
|
690
691
|
type: "button",
|
|
691
692
|
"data-shell-bar-back": "",
|
|
692
693
|
class: "hit-target inline-flex min-w-0 cursor-pointer items-center rounded-control pr-2 text-body text-content-link active:opacity-60",
|
|
693
|
-
onClick:
|
|
694
|
+
onClick: C
|
|
694
695
|
}, [
|
|
695
|
-
|
|
696
|
+
v(n(B), {
|
|
696
697
|
name: "arrowLeftSLine",
|
|
697
698
|
size: 28,
|
|
698
699
|
class: "-mr-0.5 shrink-0"
|
|
699
700
|
}),
|
|
700
701
|
d("span", {
|
|
701
|
-
class:
|
|
702
|
-
}, D(
|
|
703
|
-
])) :
|
|
704
|
-
|
|
705
|
-
d("span",
|
|
706
|
-
|
|
702
|
+
class: $(["truncate", x.value ? "sr-only" : ""])
|
|
703
|
+
}, D(s.value.label), 3)
|
|
704
|
+
])) : c.value ? (u(), b(V, { key: 2 }, [
|
|
705
|
+
v(Kt),
|
|
706
|
+
d("span", qt, [
|
|
707
|
+
v(n(H), { name: "headerActions" })
|
|
707
708
|
])
|
|
708
|
-
], 64)) : (u(), O(
|
|
709
|
+
], 64)) : (u(), O(ce, {
|
|
709
710
|
key: 3,
|
|
710
711
|
to: e.home,
|
|
711
712
|
tone: "brand",
|
|
712
|
-
class:
|
|
713
|
+
class: $(["px-2 transition-opacity", x.value ? "opacity-0" : "opacity-100"])
|
|
713
714
|
}, K({ _: 2 }, [
|
|
714
715
|
f.$slots.brand ? {
|
|
715
716
|
name: "default",
|
|
716
|
-
fn: T((
|
|
717
|
-
|
|
717
|
+
fn: T((l) => [
|
|
718
|
+
I(f.$slots, "brand", U(X(l)))
|
|
718
719
|
]),
|
|
719
720
|
key: "0"
|
|
720
721
|
} : void 0
|
|
@@ -723,85 +724,85 @@ const jt = ["id", "aria-label"], Vt = ["data-drawer", "inert"], Ft = /* @__PURE_
|
|
|
723
724
|
d("span", {
|
|
724
725
|
"aria-hidden": "true",
|
|
725
726
|
"data-shell-bar-title": "",
|
|
726
|
-
class:
|
|
727
|
+
class: $(["pointer-events-none truncate text-center text-headline font-semibold transition-opacity duration-motion-normal", x.value ? "max-w-[42vw] opacity-100" : "max-w-0 opacity-0"])
|
|
727
728
|
}, D(g.value), 3),
|
|
728
|
-
d("div",
|
|
729
|
-
|
|
730
|
-
(u(!0),
|
|
731
|
-
key:
|
|
729
|
+
d("div", Gt, [
|
|
730
|
+
c.value ? (u(), b(V, { key: 0 }, [
|
|
731
|
+
(u(!0), b(V, null, te(k.value, (l) => (u(), b(V, {
|
|
732
|
+
key: l.id
|
|
732
733
|
}, [
|
|
733
|
-
|
|
734
|
+
l.compact === "icon" && l.icon ? (u(), b("button", {
|
|
734
735
|
key: 0,
|
|
735
736
|
type: "button",
|
|
736
|
-
"data-page-action":
|
|
737
|
-
"aria-label":
|
|
738
|
-
disabled:
|
|
737
|
+
"data-page-action": l.id,
|
|
738
|
+
"aria-label": l.label,
|
|
739
|
+
disabled: l.disabled || l.processing,
|
|
739
740
|
class: "hit-target mx-1 flex size-8 shrink-0 cursor-pointer items-center justify-center rounded-full bg-tint-soft text-content-link disabled:opacity-45",
|
|
740
|
-
onClick: (
|
|
741
|
+
onClick: (L) => l.onClick()
|
|
741
742
|
}, [
|
|
742
|
-
|
|
743
|
-
name:
|
|
743
|
+
v(n(B), {
|
|
744
|
+
name: l.processing ? "loader4Line" : l.icon,
|
|
744
745
|
size: 18,
|
|
745
|
-
class:
|
|
746
|
+
class: $(l.processing ? "animate-spin" : "")
|
|
746
747
|
}, null, 8, ["name", "class"])
|
|
747
|
-
], 8,
|
|
748
|
+
], 8, Ht)) : (u(), b("button", {
|
|
748
749
|
key: 1,
|
|
749
750
|
type: "button",
|
|
750
|
-
"data-page-action":
|
|
751
|
-
disabled:
|
|
752
|
-
"aria-label":
|
|
753
|
-
"aria-busy":
|
|
751
|
+
"data-page-action": l.id,
|
|
752
|
+
disabled: l.disabled || l.processing,
|
|
753
|
+
"aria-label": l.shortLabel ? l.label : void 0,
|
|
754
|
+
"aria-busy": l.processing || void 0,
|
|
754
755
|
class: "hit-target flex min-w-0 shrink cursor-pointer items-center gap-1 rounded-control px-2 text-body font-semibold text-content-link disabled:text-content-disabled",
|
|
755
|
-
onClick: (
|
|
756
|
+
onClick: (L) => l.onClick()
|
|
756
757
|
}, [
|
|
757
|
-
|
|
758
|
+
l.processing ? (u(), O(n(B), {
|
|
758
759
|
key: 0,
|
|
759
760
|
name: "loader4Line",
|
|
760
761
|
size: 16,
|
|
761
762
|
class: "animate-spin"
|
|
762
|
-
})) :
|
|
763
|
-
d("span",
|
|
764
|
-
], 8,
|
|
763
|
+
})) : E("", !0),
|
|
764
|
+
d("span", Jt, D(l.shortLabel ?? l.label), 1)
|
|
765
|
+
], 8, Qt))
|
|
765
766
|
], 64))), 128)),
|
|
766
|
-
y.value.length ? (u(), O(n(
|
|
767
|
+
y.value.length ? (u(), O(n(Ze), {
|
|
767
768
|
key: 0,
|
|
768
769
|
items: y.value,
|
|
769
770
|
label: n(a)("core.page.more_actions")
|
|
770
771
|
}, {
|
|
771
|
-
trigger: T(({ toggle:
|
|
772
|
-
d("button",
|
|
772
|
+
trigger: T(({ toggle: l, attrs: L }) => [
|
|
773
|
+
d("button", G({ type: "button" }, L, {
|
|
773
774
|
"aria-label": n(a)("core.page.more_actions"),
|
|
774
775
|
"data-shell-bar-more": "",
|
|
775
776
|
class: "hit-target flex size-9 cursor-pointer items-center justify-center rounded-full text-content-link",
|
|
776
|
-
onClick:
|
|
777
|
+
onClick: l
|
|
777
778
|
}), [
|
|
778
|
-
|
|
779
|
+
v(n(B), {
|
|
779
780
|
name: "moreLine",
|
|
780
781
|
size: 22
|
|
781
782
|
})
|
|
782
|
-
], 16,
|
|
783
|
+
], 16, Zt)
|
|
783
784
|
]),
|
|
784
785
|
_: 1
|
|
785
|
-
}, 8, ["items", "label"])) :
|
|
786
|
-
], 64)) :
|
|
787
|
-
|
|
786
|
+
}, 8, ["items", "label"])) : E("", !0)
|
|
787
|
+
], 64)) : E("", !0),
|
|
788
|
+
I(f.$slots, "end")
|
|
788
789
|
])
|
|
789
790
|
])
|
|
790
|
-
], 2)) :
|
|
791
|
+
], 2)) : E("", !0);
|
|
791
792
|
}
|
|
792
793
|
});
|
|
793
|
-
function
|
|
794
|
+
function tn(e) {
|
|
794
795
|
const { name: a, email: t } = e;
|
|
795
796
|
return { name: typeof a == "string" && a !== "" ? a : String(e.id), detail: typeof t == "string" ? t : null };
|
|
796
797
|
}
|
|
797
|
-
function
|
|
798
|
-
const { session: a } = Q(), t = e ??
|
|
799
|
-
return
|
|
798
|
+
function nn(e) {
|
|
799
|
+
const { session: a } = Q(), t = e ?? tn;
|
|
800
|
+
return A(() => {
|
|
800
801
|
const o = ie(a.state.value);
|
|
801
802
|
return o ? t(o.user) : null;
|
|
802
803
|
});
|
|
803
804
|
}
|
|
804
|
-
const
|
|
805
|
+
const an = { class: "flex min-h-screen flex-col bg-surface-page text-base text-content antialiased" }, on = ["aria-label"], sn = { class: "flex flex-1" }, ln = { class: "flex min-w-0 flex-1 overflow-x-clip" }, rn = { "data-dialog-inert-skip": "" }, cn = /* @__PURE__ */ z({
|
|
805
806
|
__name: "BackofficeShell",
|
|
806
807
|
props: {
|
|
807
808
|
home: { default: void 0 },
|
|
@@ -809,92 +810,92 @@ const on = { class: "flex min-h-screen flex-col bg-surface-page text-base text-c
|
|
|
809
810
|
progress: { default: void 0 }
|
|
810
811
|
},
|
|
811
812
|
setup(e) {
|
|
812
|
-
const a = e, { t } = N(), { session: o } = Q(),
|
|
813
|
-
return (
|
|
814
|
-
e.progress?.visible.value ? (u(),
|
|
813
|
+
const a = e, { t } = N(), { session: o } = Q(), i = xe(), r = nn(a.identity), c = A(() => ie(o.state.value) !== null), m = ne("accountSheet");
|
|
814
|
+
return (s, p) => (u(), b("div", an, [
|
|
815
|
+
e.progress?.visible.value ? (u(), b("div", {
|
|
815
816
|
key: 0,
|
|
816
817
|
role: "progressbar",
|
|
817
818
|
"aria-label": n(t)("core.state.loading"),
|
|
818
819
|
"data-shell-progress": "",
|
|
819
820
|
class: "fixed inset-x-0 top-0 z-10000 flex h-1 justify-center bg-primary-800"
|
|
820
|
-
}, [...
|
|
821
|
+
}, [...p[0] || (p[0] = [
|
|
821
822
|
d("div", { class: "animate-grow-and-shrink-width bg-primary-600 motion-reduce:w-full motion-reduce:animate-none motion-reduce:opacity-60" }, null, -1)
|
|
822
|
-
])], 8,
|
|
823
|
-
|
|
824
|
-
|
|
823
|
+
])], 8, on)) : E("", !0),
|
|
824
|
+
v(n(H), { name: "banner" }),
|
|
825
|
+
v(Vt, { enabled: c.value }, K({
|
|
825
826
|
default: T(() => [
|
|
826
|
-
|
|
827
|
-
|
|
827
|
+
v(en, { home: e.home }, K({ _: 2 }, [
|
|
828
|
+
s.$slots.brand ? {
|
|
828
829
|
name: "brand",
|
|
829
830
|
fn: T((g) => [
|
|
830
|
-
|
|
831
|
+
I(s.$slots, "brand", U(X(g)))
|
|
831
832
|
]),
|
|
832
833
|
key: "0"
|
|
833
834
|
} : void 0,
|
|
834
|
-
|
|
835
|
+
s.$slots["top-bar-end"] ? {
|
|
835
836
|
name: "end",
|
|
836
837
|
fn: T(() => [
|
|
837
|
-
|
|
838
|
+
I(s.$slots, "top-bar-end")
|
|
838
839
|
]),
|
|
839
840
|
key: "1"
|
|
840
841
|
} : void 0
|
|
841
842
|
]), 1032, ["home"]),
|
|
842
|
-
d("div",
|
|
843
|
-
n(
|
|
843
|
+
d("div", sn, [
|
|
844
|
+
n(r) ? (u(), O(It, {
|
|
844
845
|
key: 0,
|
|
845
|
-
identity: n(
|
|
846
|
+
identity: n(r),
|
|
846
847
|
home: e.home
|
|
847
848
|
}, K({ _: 2 }, [
|
|
848
|
-
|
|
849
|
+
s.$slots.brand ? {
|
|
849
850
|
name: "brand",
|
|
850
851
|
fn: T((g) => [
|
|
851
|
-
|
|
852
|
+
I(s.$slots, "brand", U(X(g)))
|
|
852
853
|
]),
|
|
853
854
|
key: "0"
|
|
854
855
|
} : void 0,
|
|
855
|
-
|
|
856
|
+
s.$slots.footer ? {
|
|
856
857
|
name: "footer",
|
|
857
858
|
fn: T(() => [
|
|
858
|
-
|
|
859
|
+
I(s.$slots, "footer")
|
|
859
860
|
]),
|
|
860
861
|
key: "1"
|
|
861
862
|
} : void 0
|
|
862
|
-
]), 1032, ["identity", "home"])) :
|
|
863
|
-
d("div",
|
|
863
|
+
]), 1032, ["identity", "home"])) : E("", !0),
|
|
864
|
+
d("div", ln, [
|
|
864
865
|
d("main", {
|
|
865
|
-
class:
|
|
866
|
-
style:
|
|
866
|
+
class: $(["flex min-w-0 flex-1 flex-col", n(i).hasShell.value ? "" : "p-4 md:px-8 md:py-6"]),
|
|
867
|
+
style: ve(n(i).hasShell.value ? void 0 : { paddingBottom: "calc(var(--bottom-dock-h, 0px) + 1rem)" })
|
|
867
868
|
}, [
|
|
868
|
-
|
|
869
|
+
v(n(Ge))
|
|
869
870
|
], 6)
|
|
870
871
|
])
|
|
871
872
|
]),
|
|
872
|
-
|
|
873
|
-
class:
|
|
873
|
+
v(n(qe), {
|
|
874
|
+
class: $(c.value ? "md:left-64" : "")
|
|
874
875
|
}, null, 8, ["class"])
|
|
875
876
|
]),
|
|
876
877
|
_: 2
|
|
877
878
|
}, [
|
|
878
|
-
n(
|
|
879
|
+
n(r) ? {
|
|
879
880
|
name: "drawer",
|
|
880
881
|
fn: T(({ select: g, dismiss: x }) => [
|
|
881
|
-
|
|
882
|
-
identity: n(
|
|
882
|
+
v(Ct, {
|
|
883
|
+
identity: n(r),
|
|
883
884
|
home: e.home,
|
|
884
885
|
onSelect: g,
|
|
885
|
-
onAccount: (
|
|
886
|
+
onAccount: (_) => x(() => m.value?.present())
|
|
886
887
|
}, K({ _: 2 }, [
|
|
887
|
-
|
|
888
|
+
s.$slots.brand ? {
|
|
888
889
|
name: "brand",
|
|
889
|
-
fn: T((
|
|
890
|
-
|
|
890
|
+
fn: T((_) => [
|
|
891
|
+
I(s.$slots, "brand", U(X(_)))
|
|
891
892
|
]),
|
|
892
893
|
key: "0"
|
|
893
894
|
} : void 0,
|
|
894
|
-
|
|
895
|
+
s.$slots.footer ? {
|
|
895
896
|
name: "footer",
|
|
896
897
|
fn: T(() => [
|
|
897
|
-
|
|
898
|
+
I(s.$slots, "footer")
|
|
898
899
|
]),
|
|
899
900
|
key: "1"
|
|
900
901
|
} : void 0
|
|
@@ -903,23 +904,23 @@ const on = { class: "flex min-h-screen flex-col bg-surface-page text-base text-c
|
|
|
903
904
|
key: "0"
|
|
904
905
|
} : void 0
|
|
905
906
|
]), 1032, ["enabled"]),
|
|
906
|
-
n(
|
|
907
|
+
n(r) ? (u(), O(dt, {
|
|
907
908
|
key: 1,
|
|
908
909
|
ref_key: "accountSheet",
|
|
909
910
|
ref: m,
|
|
910
|
-
identity: n(
|
|
911
|
-
}, null, 8, ["identity"])) :
|
|
911
|
+
identity: n(r)
|
|
912
|
+
}, null, 8, ["identity"])) : E("", !0),
|
|
912
913
|
(u(), O(Re, { to: "body" }, [
|
|
913
|
-
d("div",
|
|
914
|
-
|
|
914
|
+
d("div", rn, [
|
|
915
|
+
v(n(Ye))
|
|
915
916
|
])
|
|
916
917
|
])),
|
|
917
|
-
|
|
918
|
-
|
|
918
|
+
v(Xe),
|
|
919
|
+
v(n(H), { name: "host" })
|
|
919
920
|
]));
|
|
920
921
|
}
|
|
921
922
|
});
|
|
922
|
-
function
|
|
923
|
+
function un(e = et) {
|
|
923
924
|
const a = Be(!1);
|
|
924
925
|
let t;
|
|
925
926
|
return {
|
|
@@ -932,13 +933,13 @@ function dn(e = tt) {
|
|
|
932
933
|
}
|
|
933
934
|
};
|
|
934
935
|
}
|
|
935
|
-
function
|
|
936
|
-
const a =
|
|
937
|
-
return { component:
|
|
936
|
+
function Xn(e = {}) {
|
|
937
|
+
const a = un(), { brand: t, footer: o, topBarEnd: i } = e;
|
|
938
|
+
return { component: z({
|
|
938
939
|
name: "BackofficeShell",
|
|
939
940
|
setup() {
|
|
940
941
|
return () => Z(
|
|
941
|
-
|
|
942
|
+
cn,
|
|
942
943
|
{
|
|
943
944
|
home: e.home,
|
|
944
945
|
// The application's session produces U; the shell reads it as the SessionUser it is guaranteed to be.
|
|
@@ -946,36 +947,36 @@ function qn(e = {}) {
|
|
|
946
947
|
progress: a
|
|
947
948
|
},
|
|
948
949
|
{
|
|
949
|
-
...t && { brand: (
|
|
950
|
+
...t && { brand: (c) => Z(t, c) },
|
|
950
951
|
...o && { footer: () => Z(o) },
|
|
951
|
-
...
|
|
952
|
+
...i && { "top-bar-end": () => Z(i) }
|
|
952
953
|
}
|
|
953
954
|
);
|
|
954
955
|
}
|
|
955
956
|
}), slots: ["headerActions", "accountMenu", "banner", "host"], progress: a };
|
|
956
957
|
}
|
|
957
|
-
const
|
|
958
|
-
function
|
|
958
|
+
const dn = 30 * 6e4, fn = 6e4;
|
|
959
|
+
function mn(e, a) {
|
|
959
960
|
const t = new DOMParser().parseFromString(e, "text/html").querySelectorAll('script[type="module"][src]');
|
|
960
961
|
return Array.from(t, (o) => new URL(o.getAttribute("src") ?? "", a).pathname).sort();
|
|
961
962
|
}
|
|
962
|
-
function
|
|
963
|
+
function pn() {
|
|
963
964
|
return Array.from(document.querySelectorAll('script[type="module"][src]'), (e) => new URL(e.src, location.href).pathname).sort();
|
|
964
965
|
}
|
|
965
|
-
function
|
|
966
|
-
return
|
|
966
|
+
function vn(e) {
|
|
967
|
+
return z({
|
|
967
968
|
name: "AppUpdateNotice",
|
|
968
969
|
setup() {
|
|
969
970
|
if (e.enabled === !1) return () => null;
|
|
970
|
-
const { t: a } = N(), t = e.url ?? "/", o =
|
|
971
|
-
let
|
|
972
|
-
async function
|
|
973
|
-
if (!(
|
|
974
|
-
|
|
971
|
+
const { t: a } = N(), t = e.url ?? "/", o = pn();
|
|
972
|
+
let i = !1, r = 0;
|
|
973
|
+
async function c() {
|
|
974
|
+
if (!(i || o.length === 0 || !navigator.onLine || document.visibilityState !== "visible") && !(Date.now() - r < fn)) {
|
|
975
|
+
r = Date.now();
|
|
975
976
|
try {
|
|
976
|
-
const
|
|
977
|
+
const p = await fetch(t, { cache: "no-store", credentials: "include" }), g = p.ok ? mn(await p.text(), location.href) : [];
|
|
977
978
|
if (g.length === 0 || g.join() === o.join()) return;
|
|
978
|
-
|
|
979
|
+
i = !0, ge.info(a("core.shell.update.available"), {
|
|
979
980
|
duration: 1 / 0,
|
|
980
981
|
action: { label: a("core.shell.update.reload"), onClick: () => location.reload() }
|
|
981
982
|
});
|
|
@@ -983,125 +984,88 @@ function hn(e) {
|
|
|
983
984
|
}
|
|
984
985
|
}
|
|
985
986
|
}
|
|
986
|
-
const m = () => void
|
|
987
|
+
const m = () => void c();
|
|
987
988
|
document.addEventListener("visibilitychange", m);
|
|
988
|
-
const
|
|
989
|
+
const s = setInterval(c, e.checkEveryMs ?? dn);
|
|
989
990
|
return le(() => {
|
|
990
|
-
document.removeEventListener("visibilitychange", m), clearInterval(
|
|
991
|
+
document.removeEventListener("visibilitychange", m), clearInterval(s);
|
|
991
992
|
}), () => null;
|
|
992
993
|
}
|
|
993
994
|
});
|
|
994
995
|
}
|
|
995
|
-
function
|
|
996
|
+
function Yn(e = {}) {
|
|
996
997
|
return _e({
|
|
997
998
|
id: "vue-core.app-updates",
|
|
998
|
-
contributions: [{ id: "vue-core.app-updates", slot: "host", component:
|
|
999
|
+
contributions: [{ id: "vue-core.app-updates", slot: "host", component: vn(e), scope: "always" }]
|
|
999
1000
|
});
|
|
1000
1001
|
}
|
|
1001
|
-
const
|
|
1002
|
-
|
|
1003
|
-
"aria-hidden": "true",
|
|
1004
|
-
"data-header-action-badge": "",
|
|
1005
|
-
class: "absolute -top-0.5 -right-0.5 min-w-4 rounded-full bg-status-danger-solid px-1 text-center text-3xs leading-4 font-semibold text-white"
|
|
1006
|
-
}, Hn = /* @__PURE__ */ I({
|
|
1007
|
-
__name: "HeaderAction",
|
|
1008
|
-
props: {
|
|
1009
|
-
label: {},
|
|
1010
|
-
icon: {},
|
|
1011
|
-
to: {},
|
|
1012
|
-
badge: {}
|
|
1013
|
-
},
|
|
1014
|
-
emits: ["click"],
|
|
1015
|
-
setup(e, { emit: a }) {
|
|
1016
|
-
const t = a, o = be(re, "bar"), s = C(() => o === "rail");
|
|
1017
|
-
return (c, r) => (u(), O(Ne(e.to ? n(ce) : "button"), Y(e.to ? { to: e.to } : { type: "button" }, {
|
|
1018
|
-
"aria-label": e.label,
|
|
1019
|
-
"data-header-action": "",
|
|
1020
|
-
class: ["hit-target relative flex shrink-0 cursor-pointer items-center justify-center rounded-full transition-colors duration-motion-fast focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus", s.value ? "size-9 text-gray-300 hover:bg-white/10 hover:text-white" : "size-8 text-content-link active:bg-tint-soft"],
|
|
1021
|
-
onClick: r[0] || (r[0] = (m) => t("click"))
|
|
1022
|
-
}), {
|
|
1023
|
-
default: T(() => [
|
|
1024
|
-
p(n(B), {
|
|
1025
|
-
name: e.icon,
|
|
1026
|
-
size: s.value ? 20 : 18
|
|
1027
|
-
}, null, 8, ["name", "size"]),
|
|
1028
|
-
e.badge === "dot" ? (u(), h("span", {
|
|
1029
|
-
key: 0,
|
|
1030
|
-
"aria-hidden": "true",
|
|
1031
|
-
"data-header-action-badge": "",
|
|
1032
|
-
class: _(["absolute top-1 right-1 size-2.5 rounded-full bg-status-danger-solid ring-2", s.value ? "ring-anchor-900" : "ring-surface-page"])
|
|
1033
|
-
}, null, 2)) : e.badge !== void 0 ? (u(), h("span", bn, D(e.badge), 1)) : L("", !0)
|
|
1034
|
-
]),
|
|
1035
|
-
_: 1
|
|
1036
|
-
}, 16, ["aria-label", "class"]));
|
|
1037
|
-
}
|
|
1038
|
-
}), gn = 1e3, ee = (e) => e.path.split("/").filter(Boolean).length;
|
|
1039
|
-
function yn(e) {
|
|
1002
|
+
const hn = 1e3, ee = (e) => e.path.split("/").filter(Boolean).length;
|
|
1003
|
+
function bn(e) {
|
|
1040
1004
|
if (typeof document > "u" || typeof document.startViewTransition != "function") return () => {
|
|
1041
1005
|
};
|
|
1042
1006
|
let a = null;
|
|
1043
|
-
const t = () => window.matchMedia("(max-width: 1023px)").matches && !window.matchMedia("(prefers-reduced-motion: reduce)").matches && !document.body.classList.contains(
|
|
1044
|
-
if (
|
|
1045
|
-
const
|
|
1046
|
-
if (!
|
|
1007
|
+
const t = () => window.matchMedia("(max-width: 1023px)").matches && !window.matchMedia("(prefers-reduced-motion: reduce)").matches && !document.body.classList.contains(tt), o = e.beforeResolve((m, s) => {
|
|
1008
|
+
if (i(), !s.matched.length || m.path === s.path || !t()) return;
|
|
1009
|
+
const p = ee(m) > ee(s) ? "forward" : ee(m) < ee(s) ? "back" : null;
|
|
1010
|
+
if (!p) return;
|
|
1047
1011
|
const g = document.documentElement;
|
|
1048
|
-
return g.dataset.navDirection =
|
|
1049
|
-
const
|
|
1050
|
-
() => new Promise((
|
|
1051
|
-
const y = setTimeout(
|
|
1012
|
+
return g.dataset.navDirection = p, new Promise((x) => {
|
|
1013
|
+
const _ = document.startViewTransition(
|
|
1014
|
+
() => new Promise((k) => {
|
|
1015
|
+
const y = setTimeout(k, hn);
|
|
1052
1016
|
a = () => {
|
|
1053
|
-
clearTimeout(y),
|
|
1017
|
+
clearTimeout(y), k();
|
|
1054
1018
|
}, x();
|
|
1055
1019
|
})
|
|
1056
1020
|
);
|
|
1057
|
-
|
|
1058
|
-
}),
|
|
1021
|
+
_.ready.catch(() => {
|
|
1022
|
+
}), _.finished.catch(() => {
|
|
1059
1023
|
}).finally(() => {
|
|
1060
|
-
g.dataset.navDirection ===
|
|
1024
|
+
g.dataset.navDirection === p && delete g.dataset.navDirection;
|
|
1061
1025
|
});
|
|
1062
1026
|
});
|
|
1063
1027
|
});
|
|
1064
|
-
function
|
|
1028
|
+
function i() {
|
|
1065
1029
|
const m = a;
|
|
1066
|
-
a = null, m &&
|
|
1030
|
+
a = null, m && he().then(m);
|
|
1067
1031
|
}
|
|
1068
|
-
const
|
|
1032
|
+
const r = e.afterEach(i), c = e.onError(i);
|
|
1069
1033
|
return () => {
|
|
1070
|
-
o(),
|
|
1034
|
+
o(), r(), c(), delete document.documentElement.dataset.navDirection, a?.(), a = null;
|
|
1071
1035
|
};
|
|
1072
1036
|
}
|
|
1073
|
-
const
|
|
1037
|
+
const gn = z({
|
|
1074
1038
|
name: "ViewTransitions",
|
|
1075
1039
|
setup() {
|
|
1076
|
-
return le(
|
|
1040
|
+
return le(bn(re())), () => null;
|
|
1077
1041
|
}
|
|
1078
1042
|
});
|
|
1079
|
-
function
|
|
1043
|
+
function qn() {
|
|
1080
1044
|
return _e({
|
|
1081
1045
|
id: "vue-core.view-transitions",
|
|
1082
|
-
contributions: [{ id: "vue-core.view-transitions", slot: "host", component:
|
|
1046
|
+
contributions: [{ id: "vue-core.view-transitions", slot: "host", component: gn, scope: "always" }]
|
|
1083
1047
|
});
|
|
1084
1048
|
}
|
|
1085
1049
|
export {
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1050
|
+
ut as AccountMenu,
|
|
1051
|
+
fe as AccountMenuItem,
|
|
1052
|
+
dt as AccountSheet,
|
|
1053
|
+
cn as BackofficeShell,
|
|
1054
|
+
Qn as HeaderAction,
|
|
1055
|
+
Ct as NavigationDrawer,
|
|
1056
|
+
Ce as NavigationList,
|
|
1057
|
+
Kt as NavigationMenuButton,
|
|
1058
|
+
ce as ShellBrand,
|
|
1095
1059
|
It as ShellSidebar,
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1060
|
+
Vt as ShellStage,
|
|
1061
|
+
en as ShellTopBar,
|
|
1062
|
+
Yn as appUpdates,
|
|
1063
|
+
Xn as backofficeShell,
|
|
1064
|
+
un as createNavigationProgress,
|
|
1065
|
+
tn as defaultIdentity,
|
|
1066
|
+
mt as groupNavigation,
|
|
1067
|
+
bn as installViewTransitions,
|
|
1068
|
+
Nt as useNavigationDrawer,
|
|
1069
|
+
nn as useShellIdentity,
|
|
1070
|
+
qn as viewTransitions
|
|
1107
1071
|
};
|