@wssto2/vue-core 0.1.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 +53 -9
- 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-CKghARkW.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-CvAnzdc1.js} +48 -47
- package/dist/{AlertDialog.vue_vue_type_script_setup_true_lang-BZb4qKXo.js → AlertDialog.vue_vue_type_script_setup_true_lang-CJsMUIUg.js} +2 -2
- package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-B82bl36A.js → AsyncSection.vue_vue_type_script_setup_true_lang-CCtthMRd.js} +4 -4
- package/dist/Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js +51 -0
- 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-CYil8h9z.js +182 -0
- package/dist/Changes-DlT5mN9G.js +129 -0
- package/dist/CollectionPage.vue_vue_type_script_setup_true_lang-CXILftEc.js +1481 -0
- package/dist/CountryFlag.vue_vue_type_script_setup_true_lang-Kry_vPPZ.js +299 -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-Bx5O1RZJ.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-DH6EB8br.js → LeaveGuardRoot.vue_vue_type_script_setup_true_lang-C2udmeEA.js} +2 -2
- package/dist/{Menu.vue_vue_type_script_setup_true_lang-D44EHXQZ.js → Menu.vue_vue_type_script_setup_true_lang-BNAjx9tj.js} +61 -57
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-DYQgaUtj.js → Modal.vue_vue_type_script_setup_true_lang-D7SwVPpL.js} +139 -129
- 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-DDVQXJRB.js → PhotoViewer.vue_vue_type_script_setup_true_lang-B3Q4dhqJ.js} +2 -2
- 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/{Tooltip.vue_vue_type_script_setup_true_lang-BJWPVyfT.js → Tooltip.vue_vue_type_script_setup_true_lang-OOD_XNWx.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/application.d.ts +5 -0
- package/dist/app/contributions.d.ts +1 -1
- package/dist/app/environment.d.ts +2 -0
- package/dist/app/feature.d.ts +8 -0
- package/dist/app/index.js +260 -294
- package/dist/bottomDock-BZEiOPYZ.js +12 -0
- package/dist/button/Button.vue.d.ts +3 -3
- package/dist/button/index.d.ts +1 -1
- package/dist/button/index.js +5 -3
- package/dist/button/shortcut.d.ts +28 -2
- 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/CollectionPage.vue.d.ts +1 -0
- package/dist/collection/CollectionRows.vue.d.ts +59 -0
- package/dist/collection/CollectionTable.vue.d.ts +1 -1
- package/dist/collection/DataTable.vue.d.ts +47 -0
- package/dist/collection/RowActions.vue.d.ts +19 -0
- package/dist/collection/columns.d.ts +2 -0
- package/dist/collection/http.d.ts +4 -2
- package/dist/collection/index.d.ts +4 -2
- package/dist/collection/index.js +87 -2299
- package/dist/collection/rowLayout.d.ts +10 -0
- package/dist/collection/slots.d.ts +6 -3
- 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-Ctga6GcS.js +41 -0
- package/dist/dialogStack-DZZg55w0.js +31 -0
- 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 +13 -2
- 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/MultiSelectField.vue.d.ts +4 -1
- package/dist/form/NumberCell.vue.d.ts +1 -1
- package/dist/form/NumberField.vue.d.ts +8 -2
- package/dist/form/OptionList.vue.d.ts +6 -2
- package/dist/form/OtpInput.vue.d.ts +2 -2
- package/dist/form/PhotoField.vue.d.ts +1 -1
- package/dist/form/SelectField.vue.d.ts +4 -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.d.ts +2 -0
- package/dist/form/index.js +1273 -3509
- package/dist/form/suggestions.d.ts +11 -0
- package/dist/form/useOptions.d.ts +60 -0
- package/dist/guards-Cd1V28oG.js +51 -0
- package/dist/http-DGGSKWvU.js +193 -0
- package/dist/i18n/describeError.d.ts +31 -0
- package/dist/i18n/index.d.ts +307 -0
- package/dist/i18n/index.js +54 -52
- 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/{phone/CountryFlag.vue.d.ts → identity/shared/SignInTable.vue.d.ts} +5 -4
- 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/CountryFlag.vue.d.ts +10 -0
- 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 +4 -0
- package/dist/modal/ShortcutHelp.vue.d.ts +2 -0
- package/dist/modal/index.d.ts +2 -0
- package/dist/modal/index.js +64 -6
- package/dist/modal/placement.d.ts +22 -0
- 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-CjSz2dQK.js → options-BXkMR63B.js} +48 -49
- package/dist/overlay/AlertDialog.vue.d.ts +3 -3
- package/dist/overlay/Popover.vue.d.ts +4 -1
- package/dist/overlay/closeOverlays.d.ts +7 -0
- package/dist/overlay/dialogStack.d.ts +9 -0
- package/dist/overlay/index.d.ts +1 -1
- package/dist/overlay/index.js +20 -18
- 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 +247 -540
- package/dist/platform/AccessGate.vue.d.ts +50 -0
- package/dist/platform/index.d.ts +4 -2
- package/dist/platform/index.js +38 -35
- 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 +4 -1
- package/dist/shell/BackofficeShell.vue.d.ts +2 -2
- 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 +476 -532
- package/dist/state/Badge.vue.d.ts +17 -10
- package/dist/state/ProgressTrack.vue.d.ts +1 -1
- package/dist/state/hue.d.ts +8 -0
- package/dist/state/index.d.ts +2 -0
- package/dist/state/index.js +34 -31
- package/dist/state/useLoad.d.ts +41 -0
- package/dist/status-C9aXR-Jb.js +33 -0
- package/dist/styles.css +1 -1
- package/dist/suggestions-BJAqOj4c.js +138 -0
- package/dist/testing/app.d.ts +61 -0
- package/dist/testing/async.d.ts +12 -0
- package/dist/testing/collection.d.ts +18 -0
- package/dist/testing/format.d.ts +9 -0
- package/dist/testing/i18n.d.ts +16 -0
- package/dist/testing/index.d.ts +14 -0
- package/dist/testing/index.js +178 -0
- package/dist/testing/media.d.ts +23 -0
- package/dist/testing/platform.d.ts +40 -0
- package/dist/testing/transport.d.ts +40 -0
- package/dist/toast-D9Z5To38.js +13 -0
- package/dist/useCommand-BgRwnYlV.js +135 -0
- package/dist/{useDialog-wmyNx2j_.js → useDialog-CXR3hN0G.js} +1 -1
- 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 +26 -5
- package/src/styles/theme.css +60 -0
- package/dist/Badge.vue_vue_type_script_setup_true_lang-DKc6ugmr.js +0 -31
- package/dist/Button.vue_vue_type_script_setup_true_lang-3f0emVNU.js +0 -141
- package/dist/NoAccess.vue_vue_type_script_setup_true_lang-OKW8pKYU.js +0 -78
- package/dist/SectionList.vue_vue_type_script_setup_true_lang-DGcKX_OJ.js +0 -230
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-SyFWE33A.js +0 -422
- package/dist/Sheet.vue_vue_type_script_setup_true_lang-BLBD5ps8.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/dialogStack-DiTG1rZc.js +0 -26
- package/dist/environment-D3nozt9a.js +0 -75
- package/dist/feature-DyDtyMLU.js +0 -47
- package/dist/platform-jqlKVJ2e.js +0 -244
- package/dist/toast-BTeX0r66.js +0 -129
- /package/dist/{phone → internal}/flagLoaders.d.ts +0 -0
package/dist/shell/index.js
CHANGED
|
@@ -1,171 +1,114 @@
|
|
|
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 Fe, S as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as
|
|
14
|
-
import { _ as
|
|
15
|
-
import {
|
|
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";
|
|
15
|
+
import { _ as qe } from "../Toaster.vue_vue_type_script_setup_true_lang-55boRLAj.js";
|
|
16
|
+
import { _ as Ge } from "../BottomDock.vue_vue_type_script_setup_true_lang-CjN7xYEr.js";
|
|
17
|
+
import { a as ke } from "../chrome-BS3xJcad.js";
|
|
16
18
|
import { A as He } from "../access-DdRFrVV1.js";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
label: {},
|
|
27
|
-
icon: { default: void 0 },
|
|
28
|
-
to: { default: void 0 },
|
|
29
|
-
checked: { type: Boolean, default: void 0 },
|
|
30
|
-
selected: { type: Boolean, default: void 0 },
|
|
31
|
-
tone: { default: void 0 }
|
|
32
|
-
},
|
|
33
|
-
emits: ["click"],
|
|
34
|
-
setup(e, { emit: a }) {
|
|
35
|
-
const t = e, o = a, i = nt(), s = S(() => i.appearance === "sheet"), u = S(() => t.checked !== void 0 || t.selected !== void 0), d = S(() => t.tone === "critical"), r = `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}`;
|
|
36
|
-
function b() {
|
|
37
|
-
u.value || i.close(), o("click");
|
|
38
|
-
}
|
|
39
|
-
return (x, w) => (c(), p("div", {
|
|
40
|
-
class: y(s.value ? at : "")
|
|
41
|
-
}, [
|
|
42
|
-
(c(), z(he(e.to ? n(oe) : "button"), K(e.to ? { to: e.to } : { type: "button" }, {
|
|
43
|
-
class: [s.value ? v : r, d.value ? "text-content-destructive" : "text-content-strong", s.value && d.value ? "justify-center" : ""],
|
|
44
|
-
role: e.checked !== void 0 ? "switch" : void 0,
|
|
45
|
-
"aria-checked": e.checked,
|
|
46
|
-
"aria-current": e.selected ? "true" : void 0,
|
|
47
|
-
"data-account-menu-item": "",
|
|
48
|
-
onClick: b
|
|
49
|
-
}), {
|
|
50
|
-
default: I(() => [
|
|
51
|
-
e.icon && !(s.value && d.value) ? (c(), z(n(R), {
|
|
52
|
-
key: 0,
|
|
53
|
-
name: e.icon,
|
|
54
|
-
size: s.value ? 22 : 16,
|
|
55
|
-
class: y(["shrink-0", d.value ? "" : "text-content-muted"])
|
|
56
|
-
}, null, 8, ["name", "size", "class"])) : L("", !0),
|
|
57
|
-
f("span", {
|
|
58
|
-
class: y(["min-w-0 truncate", s.value && d.value ? "" : "flex-1"])
|
|
59
|
-
}, O(e.label), 3),
|
|
60
|
-
e.checked !== void 0 ? (c(), p("span", {
|
|
61
|
-
key: 1,
|
|
62
|
-
"aria-hidden": "true",
|
|
63
|
-
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"]])
|
|
64
|
-
}, [
|
|
65
|
-
f("span", {
|
|
66
|
-
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"])
|
|
67
|
-
}, null, 2)
|
|
68
|
-
], 2)) : e.selected ? (c(), z(n(R), {
|
|
69
|
-
key: 2,
|
|
70
|
-
name: "checkCustom",
|
|
71
|
-
size: 16,
|
|
72
|
-
class: "shrink-0 text-content-link"
|
|
73
|
-
})) : e.to && s.value ? (c(), z(n(R), {
|
|
74
|
-
key: 3,
|
|
75
|
-
name: "arrowRightSLine",
|
|
76
|
-
size: 18,
|
|
77
|
-
class: "shrink-0 text-content-disabled"
|
|
78
|
-
})) : L("", !0)
|
|
79
|
-
]),
|
|
80
|
-
_: 1
|
|
81
|
-
}, 16, ["class", "role", "aria-checked", "aria-current"]))
|
|
82
|
-
], 2));
|
|
83
|
-
}
|
|
84
|
-
}), ot = ["aria-expanded", "aria-controls"], st = { class: "min-w-0 flex-1 truncate" }, it = ["id"], Se = /* @__PURE__ */ M({
|
|
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({
|
|
85
28
|
__name: "AccountMenuContent",
|
|
86
29
|
props: {
|
|
87
30
|
appearance: {}
|
|
88
31
|
},
|
|
89
32
|
emits: ["close"],
|
|
90
33
|
setup(e, { emit: a }) {
|
|
91
|
-
const t = e, o = a, { t:
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
try {
|
|
95
|
-
const l = new Intl.DisplayNames([E], { type: "language" }).of(E);
|
|
96
|
-
return l ? l.charAt(0).toLocaleUpperCase(E) + l.slice(1) : E;
|
|
97
|
-
} catch {
|
|
98
|
-
return E;
|
|
99
|
-
}
|
|
100
|
-
}, k = S(() => $(u.locale.value));
|
|
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];
|
|
101
37
|
async function A() {
|
|
102
38
|
try {
|
|
103
|
-
await
|
|
39
|
+
await c.signOut();
|
|
104
40
|
} catch {
|
|
105
|
-
we.error(
|
|
41
|
+
we.error(s("core.shell.account.sign_out_failed"));
|
|
106
42
|
}
|
|
107
43
|
}
|
|
108
|
-
const
|
|
109
|
-
return (
|
|
110
|
-
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"),
|
|
111
47
|
"data-shell-account-menu": ""
|
|
112
48
|
}, [
|
|
113
|
-
v.value ? (
|
|
49
|
+
v.value ? (u(), h("div", {
|
|
114
50
|
key: 0,
|
|
115
|
-
class:
|
|
51
|
+
class: _(n(f))
|
|
116
52
|
}, [
|
|
117
|
-
|
|
53
|
+
p(n(H), { name: "accountMenu" })
|
|
118
54
|
], 2)) : L("", !0),
|
|
119
|
-
|
|
55
|
+
g ? (u(), h("div", {
|
|
120
56
|
key: 1,
|
|
121
|
-
class:
|
|
57
|
+
class: _(n(f))
|
|
122
58
|
}, [
|
|
123
|
-
|
|
124
|
-
class:
|
|
59
|
+
d("div", {
|
|
60
|
+
class: _(l ? "relative" : "")
|
|
125
61
|
}, [
|
|
126
|
-
|
|
62
|
+
d("button", {
|
|
127
63
|
type: "button",
|
|
128
64
|
"aria-expanded": x.value,
|
|
129
|
-
"aria-controls": n(
|
|
65
|
+
"aria-controls": n(k),
|
|
130
66
|
"data-account-language": "",
|
|
131
|
-
class:
|
|
132
|
-
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)
|
|
133
69
|
}, [
|
|
134
|
-
|
|
70
|
+
p(n(B), {
|
|
135
71
|
name: "translate",
|
|
136
|
-
size:
|
|
72
|
+
size: l ? 22 : 16,
|
|
137
73
|
class: "shrink-0 text-content-muted"
|
|
138
74
|
}, null, 8, ["size"]),
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
class:
|
|
142
|
-
},
|
|
143
|
-
|
|
75
|
+
d("span", ot, D(n(s)("core.shell.account.language")), 1),
|
|
76
|
+
d("span", {
|
|
77
|
+
class: _(["flex min-w-0 items-center gap-1.5 text-content-muted", l ? "" : "text-xs"])
|
|
78
|
+
}, [
|
|
79
|
+
y(n(r).locale.value) ? (u(), O(We, {
|
|
80
|
+
key: 0,
|
|
81
|
+
country: y(n(r).locale.value)
|
|
82
|
+
}, null, 8, ["country"])) : L("", !0),
|
|
83
|
+
d("span", st, D($.value), 1)
|
|
84
|
+
], 2),
|
|
85
|
+
p(n(B), {
|
|
144
86
|
name: "arrowDownSLine",
|
|
145
|
-
size:
|
|
146
|
-
class:
|
|
87
|
+
size: l ? 18 : 16,
|
|
88
|
+
class: _(["shrink-0 text-content-disabled transition-transform duration-motion-fast", x.value ? "rotate-180" : ""])
|
|
147
89
|
}, null, 8, ["size", "class"])
|
|
148
|
-
], 10,
|
|
90
|
+
], 10, at)
|
|
149
91
|
], 2),
|
|
150
|
-
|
|
151
|
-
id: n(
|
|
152
|
-
class:
|
|
92
|
+
Ie(d("div", {
|
|
93
|
+
id: n(k),
|
|
94
|
+
class: _(l ? "" : "space-y-0.5 pl-4")
|
|
153
95
|
}, [
|
|
154
|
-
(
|
|
155
|
-
key:
|
|
156
|
-
label:
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
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)
|
|
102
|
+
}, null, 8, ["label", "flag", "selected", "onClick"]))), 128))
|
|
103
|
+
], 10, lt), [
|
|
104
|
+
[De, x.value]
|
|
162
105
|
])
|
|
163
106
|
], 2)) : L("", !0),
|
|
164
|
-
|
|
165
|
-
class:
|
|
107
|
+
d("div", {
|
|
108
|
+
class: _(n(f))
|
|
166
109
|
}, [
|
|
167
|
-
|
|
168
|
-
label: n(
|
|
110
|
+
p(pe, {
|
|
111
|
+
label: n(s)("core.shell.account.sign_out"),
|
|
169
112
|
icon: "logoutBoxRLine",
|
|
170
113
|
tone: "critical",
|
|
171
114
|
onClick: A
|
|
@@ -173,70 +116,70 @@ const [tt, nt] = _e("vue-core.accountMenu"), [ce] = _e("vue-core.headerSurface")
|
|
|
173
116
|
], 2)
|
|
174
117
|
], 2));
|
|
175
118
|
}
|
|
176
|
-
}),
|
|
119
|
+
}), it = ["onClick"], rt = { class: "min-w-0 flex-1" }, ct = { class: "block truncate text-sm font-semibold text-white" }, ut = {
|
|
177
120
|
key: 0,
|
|
178
121
|
class: "block truncate text-xs text-gray-300"
|
|
179
|
-
}, dt = /* @__PURE__ */
|
|
122
|
+
}, dt = /* @__PURE__ */ I({
|
|
180
123
|
__name: "AccountMenu",
|
|
181
124
|
props: {
|
|
182
125
|
identity: {}
|
|
183
126
|
},
|
|
184
127
|
setup(e) {
|
|
185
128
|
const { t: a } = N();
|
|
186
|
-
return (t, o) => (
|
|
129
|
+
return (t, o) => (u(), O(n(Ve), {
|
|
187
130
|
placement: "top-start",
|
|
188
131
|
width: "sm",
|
|
189
132
|
block: "",
|
|
190
133
|
arrow: !1,
|
|
191
134
|
label: n(a)("core.shell.account.open")
|
|
192
135
|
}, {
|
|
193
|
-
trigger:
|
|
194
|
-
|
|
136
|
+
trigger: T(({ toggle: s, attrs: c, presented: r }) => [
|
|
137
|
+
d("button", Y({ type: "button" }, c, {
|
|
195
138
|
"data-shell-account": "",
|
|
196
|
-
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":
|
|
197
|
-
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
|
|
198
141
|
}), [
|
|
199
|
-
|
|
142
|
+
p(n(xe), {
|
|
200
143
|
name: e.identity.name,
|
|
201
144
|
size: "md"
|
|
202
145
|
}, null, 8, ["name"]),
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
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)
|
|
206
149
|
]),
|
|
207
|
-
|
|
150
|
+
p(n(B), {
|
|
208
151
|
name: "expandUpDownLine",
|
|
209
152
|
size: 16,
|
|
210
153
|
class: "shrink-0 text-gray-400"
|
|
211
154
|
})
|
|
212
|
-
], 16,
|
|
155
|
+
], 16, it)
|
|
213
156
|
]),
|
|
214
|
-
default:
|
|
215
|
-
|
|
157
|
+
default: T(({ dismiss: s }) => [
|
|
158
|
+
p($e, {
|
|
216
159
|
appearance: "popover",
|
|
217
|
-
onClose:
|
|
160
|
+
onClose: s
|
|
218
161
|
}, null, 8, ["onClose"])
|
|
219
162
|
]),
|
|
220
163
|
_: 1
|
|
221
164
|
}, 8, ["label"]));
|
|
222
165
|
}
|
|
223
|
-
}), ft = /* @__PURE__ */
|
|
166
|
+
}), ft = /* @__PURE__ */ I({
|
|
224
167
|
__name: "AccountSheet",
|
|
225
168
|
props: {
|
|
226
169
|
identity: {}
|
|
227
170
|
},
|
|
228
171
|
setup(e, { expose: a }) {
|
|
229
|
-
const t =
|
|
230
|
-
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), {
|
|
231
174
|
ref_key: "sheet",
|
|
232
175
|
ref: t,
|
|
233
176
|
title: e.identity.name,
|
|
234
177
|
grouped: ""
|
|
235
178
|
}, {
|
|
236
|
-
default:
|
|
237
|
-
|
|
179
|
+
default: T(() => [
|
|
180
|
+
p($e, {
|
|
238
181
|
appearance: "sheet",
|
|
239
|
-
onClose:
|
|
182
|
+
onClose: s[0] || (s[0] = (c) => t.value?.dismiss())
|
|
240
183
|
})
|
|
241
184
|
]),
|
|
242
185
|
_: 1
|
|
@@ -247,26 +190,26 @@ function mt() {
|
|
|
247
190
|
const e = Pe(), a = (t, o) => Object.prototype.hasOwnProperty.call(t, o);
|
|
248
191
|
return (t) => t && (e[t] !== void 0 || a(je, t)) ? t : null;
|
|
249
192
|
}
|
|
250
|
-
function
|
|
193
|
+
function Se(e) {
|
|
251
194
|
return e.button === 0 && !e.metaKey && !e.ctrlKey && !e.shiftKey && !e.altKey && !e.defaultPrevented;
|
|
252
195
|
}
|
|
253
|
-
const
|
|
254
|
-
function
|
|
196
|
+
const Ce = (e) => e.to ? [e] : e.children.flatMap(Ce);
|
|
197
|
+
function pt(e) {
|
|
255
198
|
const a = [];
|
|
256
199
|
for (const t of e) {
|
|
257
|
-
const o =
|
|
200
|
+
const o = Ce(t);
|
|
258
201
|
if (o.length === 0) continue;
|
|
259
|
-
const
|
|
202
|
+
const s = !t.to && o.length > 1 ? t.label : null;
|
|
260
203
|
a.push({
|
|
261
204
|
key: t.key,
|
|
262
|
-
heading:
|
|
263
|
-
separated:
|
|
264
|
-
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 }))
|
|
265
208
|
});
|
|
266
209
|
}
|
|
267
210
|
return a;
|
|
268
211
|
}
|
|
269
|
-
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({
|
|
270
213
|
__name: "NavigationList",
|
|
271
214
|
props: {
|
|
272
215
|
items: { default: void 0 },
|
|
@@ -275,15 +218,15 @@ const pt = ["aria-label", "data-appearance"], ht = ["data-separated"], bt = ["id
|
|
|
275
218
|
},
|
|
276
219
|
emits: ["select"],
|
|
277
220
|
setup(e, { emit: a }) {
|
|
278
|
-
const t = e, o = a, { t:
|
|
279
|
-
function v(
|
|
280
|
-
if (t.appearance === "drawer" &&
|
|
281
|
-
|
|
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);
|
|
282
225
|
return;
|
|
283
226
|
}
|
|
284
|
-
A(
|
|
227
|
+
A(y);
|
|
285
228
|
}
|
|
286
|
-
const
|
|
229
|
+
const g = {
|
|
287
230
|
item: `${ve} group gap-2.5 rounded-md px-2.5 py-1.5 text-sm`,
|
|
288
231
|
active: "bg-white/10 font-medium text-white ring-1 ring-inset ring-white/5",
|
|
289
232
|
inactive: "font-normal text-gray-300 hover:bg-white/5 hover:text-white",
|
|
@@ -300,49 +243,49 @@ const pt = ["aria-label", "data-appearance"], ht = ["data-separated"], bt = ["id
|
|
|
300
243
|
iconInactive: "",
|
|
301
244
|
heading: "px-3 pt-4.5 pb-1.5 text-subheadline text-content-muted",
|
|
302
245
|
separator: "before:mx-3 before:my-3 before:block before:border-t before:border-border-separator"
|
|
303
|
-
},
|
|
304
|
-
return (
|
|
305
|
-
"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"),
|
|
306
249
|
"data-shell-navigation": "",
|
|
307
250
|
"data-appearance": e.appearance
|
|
308
251
|
}, [
|
|
309
|
-
|
|
310
|
-
(
|
|
311
|
-
key:
|
|
312
|
-
"data-separated":
|
|
313
|
-
class:
|
|
252
|
+
d("ul", null, [
|
|
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 : "")
|
|
314
257
|
}, [
|
|
315
|
-
|
|
258
|
+
f.heading ? (u(), h("p", {
|
|
316
259
|
key: 0,
|
|
317
|
-
id: `${n(
|
|
318
|
-
class:
|
|
319
|
-
},
|
|
320
|
-
|
|
321
|
-
"aria-labelledby":
|
|
322
|
-
class:
|
|
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),
|
|
263
|
+
d("ul", {
|
|
264
|
+
"aria-labelledby": f.heading ? `${n(c)}-${M}` : void 0,
|
|
265
|
+
class: _(e.appearance === "rail" ? "space-y-0.5" : "")
|
|
323
266
|
}, [
|
|
324
|
-
(
|
|
325
|
-
key:
|
|
267
|
+
(u(!0), h(V, null, te(f.items, (i) => (u(), h("li", {
|
|
268
|
+
key: i.key
|
|
326
269
|
}, [
|
|
327
|
-
|
|
270
|
+
p(n(ce), {
|
|
328
271
|
custom: "",
|
|
329
|
-
to:
|
|
272
|
+
to: i.to
|
|
330
273
|
}, {
|
|
331
|
-
default:
|
|
332
|
-
|
|
333
|
-
href:
|
|
334
|
-
"aria-current":
|
|
274
|
+
default: T(({ href: E, navigate: S }) => [
|
|
275
|
+
d("a", {
|
|
276
|
+
href: E,
|
|
277
|
+
"aria-current": i.active ? "page" : void 0,
|
|
335
278
|
"data-shell-destination": "",
|
|
336
|
-
class:
|
|
337
|
-
onClick: (
|
|
279
|
+
class: _([k.value.item, i.active ? k.value.active : k.value.inactive]),
|
|
280
|
+
onClick: (w) => v(w, S, i.to)
|
|
338
281
|
}, [
|
|
339
|
-
n(
|
|
282
|
+
n(m)(i.icon) ? (u(), O(n(B), {
|
|
340
283
|
key: 0,
|
|
341
|
-
name: n(
|
|
284
|
+
name: n(m)(i.icon),
|
|
342
285
|
size: $.value,
|
|
343
|
-
class:
|
|
286
|
+
class: _(i.active ? k.value.iconActive : k.value.iconInactive)
|
|
344
287
|
}, null, 8, ["name", "size", "class"])) : L("", !0),
|
|
345
|
-
|
|
288
|
+
d("span", xt, D(i.label), 1)
|
|
346
289
|
], 10, yt)
|
|
347
290
|
]),
|
|
348
291
|
_: 2
|
|
@@ -351,9 +294,9 @@ const pt = ["aria-label", "data-appearance"], ht = ["data-separated"], bt = ["id
|
|
|
351
294
|
], 10, gt)
|
|
352
295
|
], 10, ht))), 128))
|
|
353
296
|
])
|
|
354
|
-
], 8,
|
|
297
|
+
], 8, vt));
|
|
355
298
|
}
|
|
356
|
-
}), wt = ["href", "aria-label", "onClick"],
|
|
299
|
+
}), wt = ["href", "aria-label", "onClick"], de = /* @__PURE__ */ I({
|
|
357
300
|
inheritAttrs: !1,
|
|
358
301
|
__name: "ShellBrand",
|
|
359
302
|
props: {
|
|
@@ -363,30 +306,30 @@ const pt = ["aria-label", "data-appearance"], ht = ["data-separated"], bt = ["id
|
|
|
363
306
|
},
|
|
364
307
|
emits: ["select"],
|
|
365
308
|
setup(e, { emit: a }) {
|
|
366
|
-
const t = e, o = a, { t:
|
|
367
|
-
function
|
|
368
|
-
if (t.intercept &&
|
|
369
|
-
|
|
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);
|
|
370
313
|
return;
|
|
371
314
|
}
|
|
372
|
-
|
|
315
|
+
l(m);
|
|
373
316
|
}
|
|
374
|
-
return (
|
|
317
|
+
return (m, l) => (u(), O(n(ce), {
|
|
375
318
|
custom: "",
|
|
376
319
|
to: e.to
|
|
377
320
|
}, {
|
|
378
|
-
default:
|
|
379
|
-
|
|
321
|
+
default: T(({ href: v, navigate: g }) => [
|
|
322
|
+
d("a", Y(m.$attrs, {
|
|
380
323
|
href: v,
|
|
381
|
-
"aria-label": n(
|
|
324
|
+
"aria-label": n(s)("core.shell.home"),
|
|
382
325
|
"data-shell-brand": "",
|
|
383
326
|
class: "inline-block rounded-control focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus",
|
|
384
|
-
onClick: (x) =>
|
|
327
|
+
onClick: (x) => r(x, g)
|
|
385
328
|
}), [
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
class:
|
|
389
|
-
},
|
|
329
|
+
z(m.$slots, "default", { tone: e.tone }, () => [
|
|
330
|
+
d("span", {
|
|
331
|
+
class: _(["block truncate text-headline font-semibold", e.tone === "light" ? "text-white" : "text-content-strong"])
|
|
332
|
+
}, D(n(c).appName), 3)
|
|
390
333
|
])
|
|
391
334
|
], 16, wt)
|
|
392
335
|
]),
|
|
@@ -399,7 +342,7 @@ const pt = ["aria-label", "data-appearance"], ht = ["data-separated"], bt = ["id
|
|
|
399
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 = {
|
|
400
343
|
key: 0,
|
|
401
344
|
class: "block truncate text-footnote text-content-muted"
|
|
402
|
-
}, Lt = /* @__PURE__ */
|
|
345
|
+
}, Lt = /* @__PURE__ */ I({
|
|
403
346
|
__name: "NavigationDrawer",
|
|
404
347
|
props: {
|
|
405
348
|
identity: {},
|
|
@@ -408,51 +351,51 @@ const pt = ["aria-label", "data-appearance"], ht = ["data-separated"], bt = ["id
|
|
|
408
351
|
emits: ["select", "account"],
|
|
409
352
|
setup(e, { emit: a }) {
|
|
410
353
|
const t = a, { t: o } = N();
|
|
411
|
-
return (
|
|
412
|
-
|
|
413
|
-
|
|
354
|
+
return (s, c) => (u(), h("div", kt, [
|
|
355
|
+
d("div", _t, [
|
|
356
|
+
p(de, {
|
|
414
357
|
to: e.home,
|
|
415
358
|
tone: "brand",
|
|
416
359
|
intercept: "",
|
|
417
360
|
class: "max-w-36",
|
|
418
|
-
onSelect:
|
|
419
|
-
},
|
|
420
|
-
|
|
361
|
+
onSelect: c[0] || (c[0] = (r) => t("select", r))
|
|
362
|
+
}, K({ _: 2 }, [
|
|
363
|
+
s.$slots.brand ? {
|
|
421
364
|
name: "default",
|
|
422
|
-
fn:
|
|
423
|
-
|
|
365
|
+
fn: T((r) => [
|
|
366
|
+
z(s.$slots, "brand", U(X(r)))
|
|
424
367
|
]),
|
|
425
368
|
key: "0"
|
|
426
369
|
} : void 0
|
|
427
370
|
]), 1032, ["to"])
|
|
428
371
|
]),
|
|
429
|
-
|
|
372
|
+
c[3] || (c[3] = d("div", {
|
|
430
373
|
class: "mx-5.5 shrink-0 border-t border-border-separator",
|
|
431
374
|
role: "presentation"
|
|
432
375
|
}, null, -1)),
|
|
433
|
-
|
|
376
|
+
p(Le, {
|
|
434
377
|
appearance: "drawer",
|
|
435
378
|
label: n(o)("core.shell.menu"),
|
|
436
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)]",
|
|
437
|
-
onSelect:
|
|
380
|
+
onSelect: c[1] || (c[1] = (r) => t("select", r))
|
|
438
381
|
}, null, 8, ["label"]),
|
|
439
|
-
|
|
440
|
-
|
|
382
|
+
z(s.$slots, "footer"),
|
|
383
|
+
d("button", {
|
|
441
384
|
type: "button",
|
|
442
385
|
"data-shell-drawer-account": "",
|
|
443
386
|
"aria-haspopup": "dialog",
|
|
444
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",
|
|
445
|
-
onClick:
|
|
388
|
+
onClick: c[2] || (c[2] = (r) => t("account"))
|
|
446
389
|
}, [
|
|
447
|
-
|
|
390
|
+
p(n(xe), {
|
|
448
391
|
name: e.identity.name,
|
|
449
392
|
size: "lg"
|
|
450
393
|
}, null, 8, ["name"]),
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
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)
|
|
454
397
|
]),
|
|
455
|
-
|
|
398
|
+
p(n(B), {
|
|
456
399
|
name: "arrowRightSLine",
|
|
457
400
|
size: 18,
|
|
458
401
|
class: "shrink-0 text-content-disabled"
|
|
@@ -464,184 +407,184 @@ const pt = ["aria-label", "data-appearance"], ht = ["data-separated"], bt = ["id
|
|
|
464
407
|
key: 0,
|
|
465
408
|
"data-shell-sidebar": "",
|
|
466
409
|
class: "flex w-64 shrink-0 flex-col bg-anchor-900 dark:border-r dark:border-white/5 dark:bg-anchor-950"
|
|
467
|
-
}, Et = { class: "sticky top-
|
|
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({
|
|
468
411
|
__name: "ShellSidebar",
|
|
469
412
|
props: {
|
|
470
413
|
identity: {},
|
|
471
414
|
home: {}
|
|
472
415
|
},
|
|
473
416
|
setup(e) {
|
|
474
|
-
|
|
475
|
-
const a =
|
|
476
|
-
return (t, o) => n(a) ? (
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
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, {
|
|
480
423
|
to: e.home,
|
|
481
424
|
tone: "light",
|
|
482
425
|
class: "min-w-0"
|
|
483
|
-
},
|
|
426
|
+
}, K({ _: 2 }, [
|
|
484
427
|
t.$slots.brand ? {
|
|
485
428
|
name: "default",
|
|
486
|
-
fn:
|
|
487
|
-
|
|
429
|
+
fn: T((s) => [
|
|
430
|
+
z(t.$slots, "brand", U(X(s)))
|
|
488
431
|
]),
|
|
489
432
|
key: "0"
|
|
490
433
|
} : void 0
|
|
491
434
|
]), 1032, ["to"]),
|
|
492
|
-
|
|
493
|
-
|
|
435
|
+
d("div", Mt, [
|
|
436
|
+
p(n(H), { name: "headerActions" })
|
|
494
437
|
])
|
|
495
438
|
]),
|
|
496
|
-
|
|
439
|
+
p(Le, {
|
|
497
440
|
appearance: "rail",
|
|
498
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)]"
|
|
499
442
|
}),
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
443
|
+
z(t.$slots, "footer"),
|
|
444
|
+
d("div", zt, [
|
|
445
|
+
p(dt, { identity: e.identity }, null, 8, ["identity"])
|
|
503
446
|
])
|
|
504
447
|
])
|
|
505
448
|
])) : L("", !0);
|
|
506
449
|
}
|
|
507
|
-
}), Dt = 20, Ot = 8,
|
|
450
|
+
}), Dt = 20, Ot = 8, he = 0.5, Rt = 40;
|
|
508
451
|
function Bt({ offset: e, startOffset: a, width: t, velocity: o }) {
|
|
509
452
|
if (Math.abs(e - a) > Rt) {
|
|
510
|
-
if (o >
|
|
511
|
-
if (o < -
|
|
453
|
+
if (o > he) return !0;
|
|
454
|
+
if (o < -he) return !1;
|
|
512
455
|
}
|
|
513
456
|
return e > t / 2;
|
|
514
457
|
}
|
|
515
458
|
function Nt(e) {
|
|
516
459
|
const a = F(0), t = F(!1);
|
|
517
|
-
let o = !1,
|
|
518
|
-
function x(
|
|
519
|
-
o = !0,
|
|
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;
|
|
520
463
|
}
|
|
521
|
-
function
|
|
522
|
-
const
|
|
523
|
-
if (!o || !
|
|
524
|
-
const
|
|
525
|
-
if (!
|
|
526
|
-
if (Math.max(Math.abs(
|
|
527
|
-
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) {
|
|
528
471
|
o = !1;
|
|
529
472
|
return;
|
|
530
473
|
}
|
|
531
|
-
t.value = !0, a.value =
|
|
474
|
+
t.value = !0, a.value = m, e.onStart();
|
|
532
475
|
}
|
|
533
|
-
const
|
|
534
|
-
|
|
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();
|
|
535
478
|
}
|
|
536
479
|
function $() {
|
|
537
|
-
o && (o = !1, t.value && (t.value = !1, e.onSettle(Bt({ offset: a.value, startOffset:
|
|
480
|
+
o && (o = !1, t.value && (t.value = !1, e.onSettle(Bt({ offset: a.value, startOffset: m, width: e.width(), velocity: g }))));
|
|
538
481
|
}
|
|
539
|
-
function
|
|
482
|
+
function y() {
|
|
540
483
|
o = !1, t.value = !1;
|
|
541
484
|
}
|
|
542
|
-
function A(
|
|
543
|
-
const
|
|
544
|
-
!
|
|
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);
|
|
545
488
|
}
|
|
546
|
-
let
|
|
547
|
-
function
|
|
548
|
-
|
|
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", $));
|
|
549
492
|
}
|
|
550
|
-
function
|
|
551
|
-
|
|
493
|
+
function i() {
|
|
494
|
+
f && (f = !1, window.removeEventListener("touchstart", A), window.removeEventListener("touchmove", k), window.removeEventListener("touchend", $), window.removeEventListener("touchcancel", $), y());
|
|
552
495
|
}
|
|
553
|
-
return q(e.enabled, (
|
|
554
|
-
onTouchstartPassive(
|
|
555
|
-
const
|
|
556
|
-
|
|
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());
|
|
557
500
|
}
|
|
558
|
-
}, cancel:
|
|
501
|
+
}, cancel: y };
|
|
559
502
|
}
|
|
560
|
-
const
|
|
503
|
+
const Ae = Symbol("vue-core.navigationDrawer");
|
|
561
504
|
function Pt() {
|
|
562
|
-
return be(
|
|
505
|
+
return be(Ae, null);
|
|
563
506
|
}
|
|
564
|
-
const jt = ["id", "aria-label"], Vt = ["data-drawer", "inert"], Ft = /* @__PURE__ */
|
|
507
|
+
const jt = ["id", "aria-label"], Vt = ["data-drawer", "inert"], Ft = /* @__PURE__ */ I({
|
|
565
508
|
__name: "ShellStage",
|
|
566
509
|
props: {
|
|
567
510
|
enabled: { type: Boolean }
|
|
568
511
|
},
|
|
569
512
|
setup(e) {
|
|
570
|
-
const a = e, { t } = N(), o =
|
|
571
|
-
let
|
|
572
|
-
const
|
|
573
|
-
enabled: () =>
|
|
574
|
-
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,
|
|
575
518
|
isOpen: () => A.value,
|
|
576
|
-
canOpenFromEdge: () =>
|
|
519
|
+
canOpenFromEdge: () => r.value || navigator.standalone === !0,
|
|
577
520
|
onStart: () => {
|
|
578
|
-
clearTimeout(
|
|
521
|
+
clearTimeout(i), fe();
|
|
579
522
|
},
|
|
580
|
-
onSettle: (
|
|
581
|
-
}),
|
|
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, {
|
|
582
525
|
initialFocus: "panel",
|
|
583
526
|
onEscape: () => j()
|
|
584
527
|
});
|
|
585
|
-
function
|
|
586
|
-
const
|
|
587
|
-
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;
|
|
588
531
|
}
|
|
589
|
-
function
|
|
590
|
-
const
|
|
591
|
-
|
|
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);
|
|
592
535
|
}
|
|
593
|
-
function
|
|
594
|
-
const
|
|
595
|
-
!
|
|
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" }));
|
|
596
539
|
}
|
|
597
|
-
q([
|
|
598
|
-
const
|
|
599
|
-
!
|
|
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)");
|
|
600
543
|
}, { flush: "sync" });
|
|
601
544
|
function Te() {
|
|
602
|
-
if (!
|
|
545
|
+
if (!l.value) {
|
|
603
546
|
$.value = !1;
|
|
604
547
|
return;
|
|
605
548
|
}
|
|
606
|
-
clearTimeout(
|
|
549
|
+
clearTimeout(i), E = null, fe(), v.value?.offsetWidth, A.value = !0, W.present(), ye(() => {
|
|
607
550
|
x.value?.querySelector('[aria-current="page"]')?.focus({ preventScroll: !0 });
|
|
608
551
|
});
|
|
609
552
|
}
|
|
610
|
-
function j(
|
|
611
|
-
if (
|
|
553
|
+
function j(b) {
|
|
554
|
+
if (b && (E = b), $.value) {
|
|
612
555
|
$.value = !1;
|
|
613
556
|
return;
|
|
614
557
|
}
|
|
615
|
-
A.value = !1,
|
|
558
|
+
A.value = !1, W.dismissWithoutAsking(), clearTimeout(i), i = setTimeout(Me, Ee() + 30);
|
|
616
559
|
}
|
|
617
|
-
function
|
|
618
|
-
|
|
619
|
-
const
|
|
620
|
-
|
|
560
|
+
function Me() {
|
|
561
|
+
oe();
|
|
562
|
+
const b = E;
|
|
563
|
+
E = null, b?.();
|
|
621
564
|
}
|
|
622
|
-
q($, (
|
|
623
|
-
|
|
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());
|
|
624
567
|
}), q(() => o.fullPath, () => {
|
|
625
|
-
|
|
568
|
+
y.value && (M = !0), A.value && j();
|
|
626
569
|
});
|
|
627
|
-
function
|
|
628
|
-
|
|
570
|
+
function ze(b) {
|
|
571
|
+
s.push(b).catch(() => {
|
|
629
572
|
}).finally(() => j());
|
|
630
573
|
}
|
|
631
|
-
return
|
|
632
|
-
available:
|
|
574
|
+
return ae(Ae, {
|
|
575
|
+
available: l,
|
|
633
576
|
open: $,
|
|
634
|
-
panelId:
|
|
577
|
+
panelId: k,
|
|
635
578
|
present: () => {
|
|
636
|
-
|
|
579
|
+
l.value && ($.value = !0);
|
|
637
580
|
},
|
|
638
581
|
dismiss: j
|
|
639
|
-
}),
|
|
640
|
-
clearTimeout(
|
|
641
|
-
}), (
|
|
642
|
-
|
|
582
|
+
}), Oe(() => {
|
|
583
|
+
clearTimeout(i), oe();
|
|
584
|
+
}), (b, P) => (u(), h(V, null, [
|
|
585
|
+
l.value ? (u(), h("div", Y({
|
|
643
586
|
key: 0,
|
|
644
|
-
id: n(
|
|
587
|
+
id: n(k),
|
|
645
588
|
ref_key: "panel",
|
|
646
589
|
ref: x,
|
|
647
590
|
role: "dialog",
|
|
@@ -649,52 +592,52 @@ const jt = ["id", "aria-label"], Vt = ["data-drawer", "inert"], Ft = /* @__PURE_
|
|
|
649
592
|
"aria-label": n(t)("core.shell.menu"),
|
|
650
593
|
tabindex: "-1",
|
|
651
594
|
"data-shell-drawer": "",
|
|
652
|
-
class: ["fixed inset-y-0 left-0 z-0 w-[min(82vw,20rem)] outline-none",
|
|
653
|
-
style: n(
|
|
654
|
-
}, n(
|
|
655
|
-
|
|
656
|
-
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,
|
|
657
600
|
dismiss: j
|
|
658
601
|
})
|
|
659
602
|
], 16, jt)) : L("", !0),
|
|
660
|
-
|
|
603
|
+
d("div", {
|
|
661
604
|
ref_key: "stage",
|
|
662
605
|
ref: v,
|
|
663
606
|
"data-shell-stage": "",
|
|
664
607
|
"data-drawer": A.value ? "open" : void 0,
|
|
665
|
-
class:
|
|
666
|
-
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
|
|
667
610
|
}, [
|
|
668
|
-
|
|
611
|
+
d("div", {
|
|
669
612
|
ref_key: "scroller",
|
|
670
|
-
ref:
|
|
613
|
+
ref: g,
|
|
671
614
|
class: "flex flex-1 flex-col"
|
|
672
615
|
}, [
|
|
673
|
-
|
|
616
|
+
z(b.$slots, "default")
|
|
674
617
|
], 512),
|
|
675
|
-
|
|
618
|
+
y.value ? (u(), h("div", {
|
|
676
619
|
key: 0,
|
|
677
620
|
"aria-hidden": "true",
|
|
678
621
|
class: "pointer-events-none fixed inset-0 z-50 bg-scrim",
|
|
679
|
-
style: ge({ opacity:
|
|
622
|
+
style: ge({ opacity: J.value * 0.55 })
|
|
680
623
|
}, null, 4)) : L("", !0)
|
|
681
624
|
], 10, Vt),
|
|
682
|
-
|
|
625
|
+
y.value && R.value > 0 ? (u(), h("div", Y({
|
|
683
626
|
key: 1,
|
|
684
627
|
"aria-hidden": "true",
|
|
685
628
|
"data-shell-stage-cover": "",
|
|
686
629
|
class: "fixed inset-y-0 right-0 z-20",
|
|
687
|
-
style: { left: `${
|
|
688
|
-
}, n(
|
|
630
|
+
style: { left: `${R.value}px` }
|
|
631
|
+
}, n(w).closeEvents, {
|
|
689
632
|
onClick: P[0] || (P[0] = (wn) => j())
|
|
690
633
|
}), null, 16)) : L("", !0)
|
|
691
634
|
], 64));
|
|
692
635
|
}
|
|
693
|
-
}),
|
|
636
|
+
}), Kt = ["aria-label", "aria-expanded", "aria-controls"], Wt = /* @__PURE__ */ I({
|
|
694
637
|
__name: "NavigationMenuButton",
|
|
695
638
|
setup(e) {
|
|
696
639
|
const a = Pt(), { t } = N();
|
|
697
|
-
return (o,
|
|
640
|
+
return (o, s) => n(a)?.available.value ? (u(), h("button", {
|
|
698
641
|
key: 0,
|
|
699
642
|
type: "button",
|
|
700
643
|
"data-shell-menu-button": "",
|
|
@@ -703,136 +646,136 @@ const jt = ["id", "aria-label"], Vt = ["data-drawer", "inert"], Ft = /* @__PURE_
|
|
|
703
646
|
"aria-controls": n(a).panelId,
|
|
704
647
|
"aria-haspopup": "dialog",
|
|
705
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",
|
|
706
|
-
onClick:
|
|
649
|
+
onClick: s[0] || (s[0] = (c) => n(a).present())
|
|
707
650
|
}, [
|
|
708
|
-
|
|
651
|
+
p(n(B), {
|
|
709
652
|
name: "menuLines",
|
|
710
653
|
size: 20
|
|
711
654
|
})
|
|
712
|
-
], 8,
|
|
655
|
+
], 8, Kt)) : L("", !0);
|
|
713
656
|
}
|
|
714
|
-
}), 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" },
|
|
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({
|
|
715
658
|
__name: "ShellTopBar",
|
|
716
659
|
props: {
|
|
717
660
|
home: {}
|
|
718
661
|
},
|
|
719
662
|
setup(e) {
|
|
720
|
-
const { t: a } = N(), t =
|
|
721
|
-
|
|
722
|
-
const
|
|
723
|
-
() =>
|
|
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 }))
|
|
724
667
|
);
|
|
725
668
|
function A() {
|
|
726
|
-
|
|
669
|
+
l.value && t.push(l.value.to);
|
|
727
670
|
}
|
|
728
|
-
return (
|
|
671
|
+
return (f, M) => m.value ? (u(), h("header", {
|
|
729
672
|
key: 0,
|
|
730
673
|
"data-shell-top-bar": "",
|
|
731
|
-
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"])
|
|
732
675
|
}, [
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
v.value ? (
|
|
676
|
+
d("div", Ut, [
|
|
677
|
+
d("div", Xt, [
|
|
678
|
+
v.value ? (u(), h("button", {
|
|
736
679
|
key: 0,
|
|
737
680
|
type: "button",
|
|
738
681
|
"data-shell-bar-leading": "",
|
|
739
682
|
"data-page-action": v.value.id,
|
|
740
683
|
disabled: v.value.disabled || v.value.processing,
|
|
741
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",
|
|
742
|
-
onClick:
|
|
685
|
+
onClick: M[0] || (M[0] = (i) => v.value.onClick())
|
|
743
686
|
}, [
|
|
744
|
-
|
|
745
|
-
], 8, Yt)) :
|
|
687
|
+
d("span", qt, D(v.value.label), 1)
|
|
688
|
+
], 8, Yt)) : l.value ? (u(), h("button", {
|
|
746
689
|
key: 1,
|
|
747
690
|
type: "button",
|
|
748
691
|
"data-shell-bar-back": "",
|
|
749
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",
|
|
750
693
|
onClick: A
|
|
751
694
|
}, [
|
|
752
|
-
|
|
695
|
+
p(n(B), {
|
|
753
696
|
name: "arrowLeftSLine",
|
|
754
697
|
size: 28,
|
|
755
698
|
class: "-mr-0.5 shrink-0"
|
|
756
699
|
}),
|
|
757
|
-
|
|
758
|
-
class:
|
|
759
|
-
},
|
|
760
|
-
])) :
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
700
|
+
d("span", {
|
|
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" })
|
|
764
707
|
])
|
|
765
|
-
], 64)) : (
|
|
708
|
+
], 64)) : (u(), O(de, {
|
|
766
709
|
key: 3,
|
|
767
710
|
to: e.home,
|
|
768
711
|
tone: "brand",
|
|
769
|
-
class:
|
|
770
|
-
},
|
|
771
|
-
|
|
712
|
+
class: _(["px-2 transition-opacity", x.value ? "opacity-0" : "opacity-100"])
|
|
713
|
+
}, K({ _: 2 }, [
|
|
714
|
+
f.$slots.brand ? {
|
|
772
715
|
name: "default",
|
|
773
|
-
fn:
|
|
774
|
-
|
|
716
|
+
fn: T((i) => [
|
|
717
|
+
z(f.$slots, "brand", U(X(i)))
|
|
775
718
|
]),
|
|
776
719
|
key: "0"
|
|
777
720
|
} : void 0
|
|
778
721
|
]), 1032, ["to", "class"]))
|
|
779
722
|
]),
|
|
780
|
-
|
|
723
|
+
d("span", {
|
|
781
724
|
"aria-hidden": "true",
|
|
782
725
|
"data-shell-bar-title": "",
|
|
783
|
-
class:
|
|
784
|
-
},
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
(
|
|
788
|
-
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
|
|
789
732
|
}, [
|
|
790
|
-
|
|
733
|
+
i.compact === "icon" && i.icon ? (u(), h("button", {
|
|
791
734
|
key: 0,
|
|
792
735
|
type: "button",
|
|
793
|
-
"data-page-action":
|
|
794
|
-
"aria-label":
|
|
795
|
-
disabled:
|
|
736
|
+
"data-page-action": i.id,
|
|
737
|
+
"aria-label": i.label,
|
|
738
|
+
disabled: i.disabled || i.processing,
|
|
796
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",
|
|
797
|
-
onClick: (
|
|
740
|
+
onClick: (E) => i.onClick()
|
|
798
741
|
}, [
|
|
799
|
-
|
|
800
|
-
name:
|
|
742
|
+
p(n(B), {
|
|
743
|
+
name: i.processing ? "loader4Line" : i.icon,
|
|
801
744
|
size: 18,
|
|
802
|
-
class:
|
|
745
|
+
class: _(i.processing ? "animate-spin" : "")
|
|
803
746
|
}, null, 8, ["name", "class"])
|
|
804
|
-
], 8, Qt)) : (
|
|
747
|
+
], 8, Qt)) : (u(), h("button", {
|
|
805
748
|
key: 1,
|
|
806
749
|
type: "button",
|
|
807
|
-
"data-page-action":
|
|
808
|
-
disabled:
|
|
809
|
-
"aria-label":
|
|
810
|
-
"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,
|
|
811
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",
|
|
812
|
-
onClick: (
|
|
755
|
+
onClick: (E) => i.onClick()
|
|
813
756
|
}, [
|
|
814
|
-
|
|
757
|
+
i.processing ? (u(), O(n(B), {
|
|
815
758
|
key: 0,
|
|
816
759
|
name: "loader4Line",
|
|
817
760
|
size: 16,
|
|
818
761
|
class: "animate-spin"
|
|
819
762
|
})) : L("", !0),
|
|
820
|
-
|
|
763
|
+
d("span", Zt, D(i.shortLabel ?? i.label), 1)
|
|
821
764
|
], 8, Jt))
|
|
822
765
|
], 64))), 128)),
|
|
823
|
-
|
|
766
|
+
y.value.length ? (u(), O(n(et), {
|
|
824
767
|
key: 0,
|
|
825
|
-
items:
|
|
768
|
+
items: y.value,
|
|
826
769
|
label: n(a)("core.page.more_actions")
|
|
827
770
|
}, {
|
|
828
|
-
trigger:
|
|
829
|
-
|
|
771
|
+
trigger: T(({ toggle: i, attrs: E }) => [
|
|
772
|
+
d("button", Y({ type: "button" }, E, {
|
|
830
773
|
"aria-label": n(a)("core.page.more_actions"),
|
|
831
774
|
"data-shell-bar-more": "",
|
|
832
775
|
class: "hit-target flex size-9 cursor-pointer items-center justify-center rounded-full text-content-link",
|
|
833
|
-
onClick:
|
|
776
|
+
onClick: i
|
|
834
777
|
}), [
|
|
835
|
-
|
|
778
|
+
p(n(B), {
|
|
836
779
|
name: "moreLine",
|
|
837
780
|
size: 22
|
|
838
781
|
})
|
|
@@ -841,7 +784,7 @@ const jt = ["id", "aria-label"], Vt = ["data-drawer", "inert"], Ft = /* @__PURE_
|
|
|
841
784
|
_: 1
|
|
842
785
|
}, 8, ["items", "label"])) : L("", !0)
|
|
843
786
|
], 64)) : L("", !0),
|
|
844
|
-
|
|
787
|
+
z(f.$slots, "end")
|
|
845
788
|
])
|
|
846
789
|
])
|
|
847
790
|
], 2)) : L("", !0);
|
|
@@ -852,13 +795,13 @@ function nn(e) {
|
|
|
852
795
|
return { name: typeof a == "string" && a !== "" ? a : String(e.id), detail: typeof t == "string" ? t : null };
|
|
853
796
|
}
|
|
854
797
|
function an(e) {
|
|
855
|
-
const { session: a } =
|
|
856
|
-
return
|
|
857
|
-
const o = a.state.value;
|
|
858
|
-
return o
|
|
798
|
+
const { session: a } = Q(), t = e ?? nn;
|
|
799
|
+
return C(() => {
|
|
800
|
+
const o = ie(a.state.value);
|
|
801
|
+
return o ? t(o.user) : null;
|
|
859
802
|
});
|
|
860
803
|
}
|
|
861
|
-
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__ */
|
|
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({
|
|
862
805
|
__name: "BackofficeShell",
|
|
863
806
|
props: {
|
|
864
807
|
home: { default: void 0 },
|
|
@@ -866,91 +809,92 @@ const on = { class: "flex min-h-screen flex-col bg-surface-page text-base text-c
|
|
|
866
809
|
progress: { default: void 0 }
|
|
867
810
|
},
|
|
868
811
|
setup(e) {
|
|
869
|
-
const a = e, { t } = N(), { session: o } =
|
|
870
|
-
return (
|
|
871
|
-
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", {
|
|
872
815
|
key: 0,
|
|
873
816
|
role: "progressbar",
|
|
874
817
|
"aria-label": n(t)("core.state.loading"),
|
|
875
818
|
"data-shell-progress": "",
|
|
876
819
|
class: "fixed inset-x-0 top-0 z-10000 flex h-1 justify-center bg-primary-800"
|
|
877
820
|
}, [...v[0] || (v[0] = [
|
|
878
|
-
|
|
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)
|
|
879
822
|
])], 8, sn)) : L("", !0),
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
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 ? {
|
|
884
828
|
name: "brand",
|
|
885
|
-
fn:
|
|
886
|
-
|
|
829
|
+
fn: T((g) => [
|
|
830
|
+
z(l.$slots, "brand", U(X(g)))
|
|
887
831
|
]),
|
|
888
832
|
key: "0"
|
|
889
833
|
} : void 0,
|
|
890
|
-
|
|
834
|
+
l.$slots["top-bar-end"] ? {
|
|
891
835
|
name: "end",
|
|
892
|
-
fn:
|
|
893
|
-
|
|
836
|
+
fn: T(() => [
|
|
837
|
+
z(l.$slots, "top-bar-end")
|
|
894
838
|
]),
|
|
895
839
|
key: "1"
|
|
896
840
|
} : void 0
|
|
897
841
|
]), 1032, ["home"]),
|
|
898
|
-
|
|
899
|
-
n(
|
|
842
|
+
d("div", ln, [
|
|
843
|
+
n(c) ? (u(), O(It, {
|
|
900
844
|
key: 0,
|
|
901
|
-
identity: n(
|
|
845
|
+
identity: n(c),
|
|
902
846
|
home: e.home
|
|
903
|
-
},
|
|
904
|
-
|
|
847
|
+
}, K({ _: 2 }, [
|
|
848
|
+
l.$slots.brand ? {
|
|
905
849
|
name: "brand",
|
|
906
|
-
fn:
|
|
907
|
-
|
|
850
|
+
fn: T((g) => [
|
|
851
|
+
z(l.$slots, "brand", U(X(g)))
|
|
908
852
|
]),
|
|
909
853
|
key: "0"
|
|
910
854
|
} : void 0,
|
|
911
|
-
|
|
855
|
+
l.$slots.footer ? {
|
|
912
856
|
name: "footer",
|
|
913
|
-
fn:
|
|
914
|
-
|
|
857
|
+
fn: T(() => [
|
|
858
|
+
z(l.$slots, "footer")
|
|
915
859
|
]),
|
|
916
860
|
key: "1"
|
|
917
861
|
} : void 0
|
|
918
862
|
]), 1032, ["identity", "home"])) : L("", !0),
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
class:
|
|
922
|
-
style: ge(n(
|
|
863
|
+
d("div", rn, [
|
|
864
|
+
d("main", {
|
|
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)" })
|
|
923
867
|
}, [
|
|
924
|
-
|
|
868
|
+
p(n(He))
|
|
925
869
|
], 6)
|
|
926
870
|
])
|
|
927
871
|
]),
|
|
928
|
-
|
|
929
|
-
class:
|
|
872
|
+
p(n(Ge), {
|
|
873
|
+
class: _(r.value ? "md:left-64" : "")
|
|
930
874
|
}, null, 8, ["class"])
|
|
931
875
|
]),
|
|
932
876
|
_: 2
|
|
933
877
|
}, [
|
|
934
|
-
n(
|
|
878
|
+
n(c) ? {
|
|
935
879
|
name: "drawer",
|
|
936
|
-
fn:
|
|
937
|
-
|
|
938
|
-
identity: n(
|
|
880
|
+
fn: T(({ select: g, dismiss: x }) => [
|
|
881
|
+
p(Lt, {
|
|
882
|
+
identity: n(c),
|
|
939
883
|
home: e.home,
|
|
940
|
-
onSelect:
|
|
941
|
-
onAccount: (
|
|
942
|
-
},
|
|
943
|
-
|
|
884
|
+
onSelect: g,
|
|
885
|
+
onAccount: (k) => x(() => m.value?.present())
|
|
886
|
+
}, K({ _: 2 }, [
|
|
887
|
+
l.$slots.brand ? {
|
|
944
888
|
name: "brand",
|
|
945
|
-
fn:
|
|
946
|
-
|
|
889
|
+
fn: T((k) => [
|
|
890
|
+
z(l.$slots, "brand", U(X(k)))
|
|
947
891
|
]),
|
|
948
892
|
key: "0"
|
|
949
893
|
} : void 0,
|
|
950
|
-
|
|
894
|
+
l.$slots.footer ? {
|
|
951
895
|
name: "footer",
|
|
952
|
-
fn:
|
|
953
|
-
|
|
896
|
+
fn: T(() => [
|
|
897
|
+
z(l.$slots, "footer")
|
|
954
898
|
]),
|
|
955
899
|
key: "1"
|
|
956
900
|
} : void 0
|
|
@@ -959,24 +903,24 @@ const on = { class: "flex min-h-screen flex-col bg-surface-page text-base text-c
|
|
|
959
903
|
key: "0"
|
|
960
904
|
} : void 0
|
|
961
905
|
]), 1032, ["enabled"]),
|
|
962
|
-
n(
|
|
906
|
+
n(c) ? (u(), O(ft, {
|
|
963
907
|
key: 1,
|
|
964
908
|
ref_key: "accountSheet",
|
|
965
|
-
ref:
|
|
966
|
-
identity: n(
|
|
909
|
+
ref: m,
|
|
910
|
+
identity: n(c)
|
|
967
911
|
}, null, 8, ["identity"])) : L("", !0),
|
|
968
|
-
(
|
|
969
|
-
|
|
970
|
-
|
|
912
|
+
(u(), O(Re, { to: "body" }, [
|
|
913
|
+
d("div", cn, [
|
|
914
|
+
p(n(qe))
|
|
971
915
|
])
|
|
972
916
|
])),
|
|
973
|
-
|
|
974
|
-
|
|
917
|
+
p(Ye),
|
|
918
|
+
p(n(H), { name: "host" })
|
|
975
919
|
]));
|
|
976
920
|
}
|
|
977
921
|
});
|
|
978
|
-
function dn(e =
|
|
979
|
-
const a =
|
|
922
|
+
function dn(e = tt) {
|
|
923
|
+
const a = Be(!1);
|
|
980
924
|
let t;
|
|
981
925
|
return {
|
|
982
926
|
visible: a,
|
|
@@ -988,12 +932,12 @@ function dn(e = Ze) {
|
|
|
988
932
|
}
|
|
989
933
|
};
|
|
990
934
|
}
|
|
991
|
-
function
|
|
992
|
-
const a = dn(), { brand: t, footer: o, topBarEnd:
|
|
993
|
-
return { component:
|
|
935
|
+
function qn(e = {}) {
|
|
936
|
+
const a = dn(), { brand: t, footer: o, topBarEnd: s } = e;
|
|
937
|
+
return { component: I({
|
|
994
938
|
name: "BackofficeShell",
|
|
995
939
|
setup() {
|
|
996
|
-
return () =>
|
|
940
|
+
return () => Z(
|
|
997
941
|
un,
|
|
998
942
|
{
|
|
999
943
|
home: e.home,
|
|
@@ -1002,36 +946,36 @@ function Kn(e = {}) {
|
|
|
1002
946
|
progress: a
|
|
1003
947
|
},
|
|
1004
948
|
{
|
|
1005
|
-
...t && { brand: (
|
|
1006
|
-
...o && { footer: () =>
|
|
1007
|
-
...
|
|
949
|
+
...t && { brand: (r) => Z(t, r) },
|
|
950
|
+
...o && { footer: () => Z(o) },
|
|
951
|
+
...s && { "top-bar-end": () => Z(s) }
|
|
1008
952
|
}
|
|
1009
953
|
);
|
|
1010
954
|
}
|
|
1011
|
-
}), slots: ["headerActions", "accountMenu", "host"], progress: a };
|
|
955
|
+
}), slots: ["headerActions", "accountMenu", "banner", "host"], progress: a };
|
|
1012
956
|
}
|
|
1013
957
|
const fn = 30 * 6e4, mn = 6e4;
|
|
1014
|
-
function
|
|
958
|
+
function pn(e, a) {
|
|
1015
959
|
const t = new DOMParser().parseFromString(e, "text/html").querySelectorAll('script[type="module"][src]');
|
|
1016
960
|
return Array.from(t, (o) => new URL(o.getAttribute("src") ?? "", a).pathname).sort();
|
|
1017
961
|
}
|
|
1018
|
-
function
|
|
962
|
+
function vn() {
|
|
1019
963
|
return Array.from(document.querySelectorAll('script[type="module"][src]'), (e) => new URL(e.src, location.href).pathname).sort();
|
|
1020
964
|
}
|
|
1021
965
|
function hn(e) {
|
|
1022
|
-
return
|
|
966
|
+
return I({
|
|
1023
967
|
name: "AppUpdateNotice",
|
|
1024
968
|
setup() {
|
|
1025
969
|
if (e.enabled === !1) return () => null;
|
|
1026
|
-
const { t: a } = N(), t = e.url ?? "/", o =
|
|
1027
|
-
let
|
|
1028
|
-
async function
|
|
1029
|
-
if (!(
|
|
1030
|
-
|
|
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();
|
|
1031
975
|
try {
|
|
1032
|
-
const v = await fetch(t, { cache: "no-store", credentials: "include" }),
|
|
1033
|
-
if (
|
|
1034
|
-
|
|
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"), {
|
|
1035
979
|
duration: 1 / 0,
|
|
1036
980
|
action: { label: a("core.shell.update.reload"), onClick: () => location.reload() }
|
|
1037
981
|
});
|
|
@@ -1039,17 +983,17 @@ function hn(e) {
|
|
|
1039
983
|
}
|
|
1040
984
|
}
|
|
1041
985
|
}
|
|
1042
|
-
const
|
|
1043
|
-
document.addEventListener("visibilitychange",
|
|
1044
|
-
const
|
|
986
|
+
const m = () => void r();
|
|
987
|
+
document.addEventListener("visibilitychange", m);
|
|
988
|
+
const l = setInterval(r, e.checkEveryMs ?? fn);
|
|
1045
989
|
return le(() => {
|
|
1046
|
-
document.removeEventListener("visibilitychange",
|
|
990
|
+
document.removeEventListener("visibilitychange", m), clearInterval(l);
|
|
1047
991
|
}), () => null;
|
|
1048
992
|
}
|
|
1049
993
|
});
|
|
1050
994
|
}
|
|
1051
|
-
function
|
|
1052
|
-
return
|
|
995
|
+
function Gn(e = {}) {
|
|
996
|
+
return _e({
|
|
1053
997
|
id: "vue-core.app-updates",
|
|
1054
998
|
contributions: [{ id: "vue-core.app-updates", slot: "host", component: hn(e), scope: "always" }]
|
|
1055
999
|
});
|
|
@@ -1059,7 +1003,7 @@ const bn = {
|
|
|
1059
1003
|
"aria-hidden": "true",
|
|
1060
1004
|
"data-header-action-badge": "",
|
|
1061
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"
|
|
1062
|
-
},
|
|
1006
|
+
}, Hn = /* @__PURE__ */ I({
|
|
1063
1007
|
__name: "HeaderAction",
|
|
1064
1008
|
props: {
|
|
1065
1009
|
label: {},
|
|
@@ -1069,95 +1013,95 @@ const bn = {
|
|
|
1069
1013
|
},
|
|
1070
1014
|
emits: ["click"],
|
|
1071
1015
|
setup(e, { emit: a }) {
|
|
1072
|
-
const t = a, o = be(
|
|
1073
|
-
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" }, {
|
|
1074
1018
|
"aria-label": e.label,
|
|
1075
1019
|
"data-header-action": "",
|
|
1076
|
-
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",
|
|
1077
|
-
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"))
|
|
1078
1022
|
}), {
|
|
1079
|
-
default:
|
|
1080
|
-
|
|
1023
|
+
default: T(() => [
|
|
1024
|
+
p(n(B), {
|
|
1081
1025
|
name: e.icon,
|
|
1082
|
-
size:
|
|
1026
|
+
size: s.value ? 20 : 18
|
|
1083
1027
|
}, null, 8, ["name", "size"]),
|
|
1084
|
-
e.badge === "dot" ? (
|
|
1028
|
+
e.badge === "dot" ? (u(), h("span", {
|
|
1085
1029
|
key: 0,
|
|
1086
1030
|
"aria-hidden": "true",
|
|
1087
1031
|
"data-header-action-badge": "",
|
|
1088
|
-
class:
|
|
1089
|
-
}, 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)
|
|
1090
1034
|
]),
|
|
1091
1035
|
_: 1
|
|
1092
1036
|
}, 16, ["aria-label", "class"]));
|
|
1093
1037
|
}
|
|
1094
|
-
}), gn = 1e3,
|
|
1038
|
+
}), gn = 1e3, ee = (e) => e.path.split("/").filter(Boolean).length;
|
|
1095
1039
|
function yn(e) {
|
|
1096
1040
|
if (typeof document > "u" || typeof document.startViewTransition != "function") return () => {
|
|
1097
1041
|
};
|
|
1098
1042
|
let a = null;
|
|
1099
|
-
const t = () => window.matchMedia("(max-width: 1023px)").matches && !window.matchMedia("(prefers-reduced-motion: reduce)").matches && !document.body.classList.contains(
|
|
1100
|
-
if (
|
|
1101
|
-
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;
|
|
1102
1046
|
if (!v) return;
|
|
1103
|
-
const
|
|
1104
|
-
return
|
|
1105
|
-
const
|
|
1047
|
+
const g = document.documentElement;
|
|
1048
|
+
return g.dataset.navDirection = v, new Promise((x) => {
|
|
1049
|
+
const k = document.startViewTransition(
|
|
1106
1050
|
() => new Promise(($) => {
|
|
1107
|
-
const
|
|
1051
|
+
const y = setTimeout($, gn);
|
|
1108
1052
|
a = () => {
|
|
1109
|
-
clearTimeout(
|
|
1053
|
+
clearTimeout(y), $();
|
|
1110
1054
|
}, x();
|
|
1111
1055
|
})
|
|
1112
1056
|
);
|
|
1113
|
-
|
|
1114
|
-
}),
|
|
1057
|
+
k.ready.catch(() => {
|
|
1058
|
+
}), k.finished.catch(() => {
|
|
1115
1059
|
}).finally(() => {
|
|
1116
|
-
|
|
1060
|
+
g.dataset.navDirection === v && delete g.dataset.navDirection;
|
|
1117
1061
|
});
|
|
1118
1062
|
});
|
|
1119
1063
|
});
|
|
1120
|
-
function
|
|
1121
|
-
const
|
|
1122
|
-
a = null,
|
|
1064
|
+
function s() {
|
|
1065
|
+
const m = a;
|
|
1066
|
+
a = null, m && ye().then(m);
|
|
1123
1067
|
}
|
|
1124
|
-
const
|
|
1068
|
+
const c = e.afterEach(s), r = e.onError(s);
|
|
1125
1069
|
return () => {
|
|
1126
|
-
o(),
|
|
1070
|
+
o(), c(), r(), delete document.documentElement.dataset.navDirection, a?.(), a = null;
|
|
1127
1071
|
};
|
|
1128
1072
|
}
|
|
1129
|
-
const xn =
|
|
1073
|
+
const xn = I({
|
|
1130
1074
|
name: "ViewTransitions",
|
|
1131
1075
|
setup() {
|
|
1132
|
-
return le(yn(
|
|
1076
|
+
return le(yn(ue())), () => null;
|
|
1133
1077
|
}
|
|
1134
1078
|
});
|
|
1135
|
-
function
|
|
1136
|
-
return
|
|
1079
|
+
function Qn() {
|
|
1080
|
+
return _e({
|
|
1137
1081
|
id: "vue-core.view-transitions",
|
|
1138
1082
|
contributions: [{ id: "vue-core.view-transitions", slot: "host", component: xn, scope: "always" }]
|
|
1139
1083
|
});
|
|
1140
1084
|
}
|
|
1141
1085
|
export {
|
|
1142
1086
|
dt as AccountMenu,
|
|
1143
|
-
|
|
1087
|
+
pe as AccountMenuItem,
|
|
1144
1088
|
ft as AccountSheet,
|
|
1145
1089
|
un as BackofficeShell,
|
|
1146
|
-
|
|
1090
|
+
Hn as HeaderAction,
|
|
1147
1091
|
Lt as NavigationDrawer,
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1092
|
+
Le as NavigationList,
|
|
1093
|
+
Wt as NavigationMenuButton,
|
|
1094
|
+
de as ShellBrand,
|
|
1095
|
+
It as ShellSidebar,
|
|
1152
1096
|
Ft as ShellStage,
|
|
1153
1097
|
tn as ShellTopBar,
|
|
1154
|
-
|
|
1155
|
-
|
|
1098
|
+
Gn as appUpdates,
|
|
1099
|
+
qn as backofficeShell,
|
|
1156
1100
|
dn as createNavigationProgress,
|
|
1157
1101
|
nn as defaultIdentity,
|
|
1158
|
-
|
|
1102
|
+
pt as groupNavigation,
|
|
1159
1103
|
yn as installViewTransitions,
|
|
1160
1104
|
Pt as useNavigationDrawer,
|
|
1161
1105
|
an as useShellIdentity,
|
|
1162
|
-
|
|
1106
|
+
Qn as viewTransitions
|
|
1163
1107
|
};
|