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