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