@wssto2/vue-core 0.9.4 → 0.10.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/CHANGELOG.md +24 -0
- package/dist/ActionRow.vue_vue_type_script_setup_true_lang-IpcP3Bjc.js +87 -0
- package/dist/Activity-CeAG0ZtJ.js +169 -0
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-DdJOodn8.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-D5i77H6S.js} +147 -159
- package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-BdeOKqz_.js → AsyncSection.vue_vue_type_script_setup_true_lang-DGzQ-Snp.js} +1 -1
- package/dist/BottomDockPortal.vue_vue_type_script_setup_true_lang-DmwR-2SP.js +17 -0
- package/dist/Button.vue_vue_type_script_setup_true_lang-C74hcb0N.js +123 -0
- package/dist/Changes-B9-zpDxG.js +69 -0
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-DHcekGNn.js → CollectionPage.vue_vue_type_script_setup_true_lang-Cn0YOWJF.js} +19 -18
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-8kBsNRuq.js → DataTable.vue_vue_type_script_setup_true_lang-BQRG8bpH.js} +1 -1
- package/dist/{DateField.vue_vue_type_script_setup_true_lang-BhKdCVFn.js → DateField.vue_vue_type_script_setup_true_lang-CeNwBbJT.js} +1 -1
- package/dist/{DeadLetters-Bb5pPlOY.js → DeadLetters-BP03yC4R.js} +5 -6
- package/dist/DrawnCheck.vue_vue_type_script_setup_true_lang-9DzDJlIA.js +38 -0
- package/dist/FormGroup.vue_vue_type_script_setup_true_lang-D6jYfNjW.js +427 -0
- package/dist/{FormView.vue_vue_type_script_setup_true_lang-aaNnMIOi.js → FormView.vue_vue_type_script_setup_true_lang-DvbPEiNQ.js} +2 -2
- package/dist/{General-BAG7S6wV.js → General-BDmCJr3H.js} +35 -38
- package/dist/{IncidentRecord-D8aOpNHo.js → IncidentRecord-DEhl6AyA.js} +14 -15
- package/dist/{IncidentsList-C0cFl0Db.js → IncidentsList-COgRPdk3.js} +3 -3
- package/dist/{Modal.vue_vue_type_script_setup_true_lang-BlHhdmMy.js → Modal.vue_vue_type_script_setup_true_lang-DDS0iEnn.js} +9 -8
- package/dist/{NewRolePage-C6Iu-EQJ.js → NewRolePage-DhGFwvk3.js} +4 -4
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-TGGAq8J-.js → NumberField.vue_vue_type_script_setup_true_lang-B3UrXNqH.js} +1 -1
- package/dist/{PersonAccess.vue_vue_type_script_setup_true_lang-qz1tmYpF.js → PersonAccess.vue_vue_type_script_setup_true_lang-DbGZSNQc.js} +56 -56
- package/dist/ProfilePage-BQCK2w8R.js +684 -0
- package/dist/ProgressTrack.vue_vue_type_script_setup_true_lang-DrOm8k--.js +30 -0
- package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-B9mN7UxZ.js → RecordHeader.vue_vue_type_script_setup_true_lang-DqGc3Jyo.js} +1 -1
- package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-Cw8mGf_B.js → ResourcePage.vue_vue_type_script_setup_true_lang-DljhsTU4.js} +3 -3
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-CJPvOVDV.js → RoleEditor.vue_vue_type_script_setup_true_lang-C0FIotFA.js} +11 -12
- package/dist/{RolePage-Dj_ocMnM.js → RolePage-DaNv049g.js} +10 -10
- package/dist/{RolesPage-PXrs4O-1.js → RolesPage-6hlzJes_.js} +6 -6
- package/dist/SearchInput.vue_vue_type_script_setup_true_lang-w4eAqyZ9.js +32 -0
- package/dist/{SectionList.vue_vue_type_script_setup_true_lang-CtdF1zuv.js → SectionList.vue_vue_type_script_setup_true_lang-DR0_NsqC.js} +1 -1
- package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-B5ove3rM.js → SectionNavigator.vue_vue_type_script_setup_true_lang-Dh3sXUt_.js} +2 -2
- package/dist/{SegmentedField.vue_vue_type_script_setup_true_lang-ChfDFAA2.js → SegmentedField.vue_vue_type_script_setup_true_lang-zv_AxpBn.js} +1 -1
- package/dist/{SelectField.vue_vue_type_script_setup_true_lang-BP8nAQwo.js → SelectField.vue_vue_type_script_setup_true_lang-BZwdANL3.js} +3 -3
- package/dist/{ServiceAccountDialog.vue_vue_type_script_setup_true_lang-aWkKwxNe.js → ServiceAccountDialog.vue_vue_type_script_setup_true_lang-C0OIBrSp.js} +20 -20
- package/dist/{ServiceAccountRecord-bxX9yQkC.js → ServiceAccountRecord-gtlhYaAz.js} +37 -37
- package/dist/{ServiceAccountsList-BXE6htxk.js → ServiceAccountsList-BM7GGcvw.js} +33 -33
- package/dist/{Sessions--Gvc0kxw.js → Sessions-BCDJYuV2.js} +23 -24
- package/dist/{SettingsPage-DzDC7gD-.js → SettingsPage-DUhMsYBf.js} +27 -30
- package/dist/{SignIn-CTI_699e.js → SignIn-4D7WohI8.js} +9 -10
- package/dist/{SignInPage-HKC1bm2E.js → SignInPage-B6B-34GG.js} +4 -4
- package/dist/SignIns-CFoe4hpX.js +64 -0
- package/dist/StatusLine.vue_vue_type_script_setup_true_lang-DsdQmLq6.js +56 -0
- package/dist/{SwitchField.vue_vue_type_script_setup_true_lang-BMA2YXTZ.js → SwitchField.vue_vue_type_script_setup_true_lang-Ds4q0bbl.js} +1 -1
- package/dist/{TextField.vue_vue_type_script_setup_true_lang-BFVsqcBX.js → TextField.vue_vue_type_script_setup_true_lang-CWIeeZRE.js} +2 -2
- package/dist/{TextareaField.vue_vue_type_script_setup_true_lang-Dyh4Hhyl.js → TextareaField.vue_vue_type_script_setup_true_lang-D2j4s96s.js} +1 -1
- package/dist/{TimeField.vue_vue_type_script_setup_true_lang-gGFfQLuK.js → TimeField.vue_vue_type_script_setup_true_lang-D-Em4glH.js} +1 -1
- package/dist/UserRecord-Cd1TCpJZ.js +202 -0
- package/dist/UsersList-GJU5-CTG.js +74 -0
- package/dist/access/index.js +4 -4
- package/dist/app/index.js +1 -1
- package/dist/{application-BmXW6iW_.js → application-CuzT-0vW.js} +1 -1
- package/dist/button/index.js +6 -5
- package/dist/collection/PickerModal.vue.d.ts +26 -0
- package/dist/collection/definition.d.ts +6 -6
- package/dist/collection/http.d.ts +6 -6
- package/dist/collection/index.d.ts +5 -1
- package/dist/collection/index.js +144 -85
- package/dist/collection/picker.d.ts +39 -0
- package/dist/collection/types.d.ts +9 -4
- package/dist/collection/useCollection.d.ts +5 -5
- package/dist/content/ActivityStream.vue.d.ts +62 -0
- package/dist/content/CommentThread.vue.d.ts +52 -0
- package/dist/content/Composer.vue.d.ts +36 -0
- package/dist/content/index.d.ts +3 -0
- package/dist/content/index.js +321 -56
- package/dist/controls/index.js +28 -54
- package/dist/form/index.js +132 -134
- package/dist/format/index.d.ts +1 -0
- package/dist/format/index.js +10 -6
- package/dist/format/slug.d.ts +8 -0
- package/dist/highlight-DnYhLXnu.js +9 -0
- package/dist/http-Dm0uXY9O.js +95 -0
- package/dist/i18n/index.d.ts +14 -0
- package/dist/i18n/index.js +87 -63
- package/dist/i18n/plural.d.ts +23 -0
- package/dist/identity/embed.d.ts +39 -0
- package/dist/identity/index.d.ts +20 -0
- package/dist/identity/index.js +40 -21
- package/dist/identity/session.d.ts +9 -1
- package/dist/identity/shared/ChangeFeed.vue.d.ts +6 -3
- package/dist/identity/users/context.d.ts +8 -0
- package/dist/identity/users/dialogs.d.ts +10 -0
- package/dist/identity/users/ext.d.ts +8 -0
- package/dist/identity/users/feature.d.ts +10 -0
- package/dist/identity/users/list.d.ts +1 -1
- package/dist/identity/users/personSections.d.ts +1 -1
- package/dist/identity/users/replace.d.ts +45 -0
- package/dist/identity/users/words.d.ts +28 -0
- package/dist/incidents/api.d.ts +1 -1
- package/dist/incidents/index.js +1 -1
- package/dist/{index-Dz0LkLM8.js → index-CTkG-acm.js} +4 -4
- package/dist/{index-Dm-sdJJr.js → index-DUs7WSz-.js} +31 -32
- package/dist/index-pJ_eRg80.js +1257 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/modal/index.js +3 -3
- package/dist/modules/identity/entities.d.ts +7 -0
- package/dist/modules/identity/routes.d.ts +8 -4
- package/dist/modules/identity/schemas.d.ts +16 -0
- package/dist/{neighbors-DVfU9T0o.js → neighbors-OyvGi233.js} +2 -2
- package/dist/notifications/deadletters/list.d.ts +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/{options-QuOkMKVZ.js → options-B48UiYsG.js} +2 -2
- package/dist/page/index.js +11 -11
- package/dist/phone/index.js +1 -1
- package/dist/pwa/AndroidInstallBanner.vue.d.ts +18 -0
- package/dist/pwa/InstallQrSheet.vue.d.ts +21 -0
- package/dist/pwa/IosInstallGuide.vue.d.ts +19 -0
- package/dist/pwa/QrCode.vue.d.ts +16 -0
- package/dist/pwa/index.d.ts +4 -0
- package/dist/pwa/index.js +244 -24
- package/dist/resource/index.js +1 -1
- package/dist/{rowLayout-CT8vWYgI.js → rowLayout-Il4psyXN.js} +183 -188
- package/dist/shell/DarkModeRow.vue.d.ts +15 -0
- package/dist/shell/OfflineNotice.vue.d.ts +2 -0
- package/dist/shell/QuickSearchButton.vue.d.ts +2 -0
- package/dist/shell/QuickSearchPalette.vue.d.ts +12 -0
- package/dist/shell/darkMode.d.ts +26 -0
- package/dist/shell/index.d.ts +10 -0
- package/dist/shell/index.js +963 -580
- package/dist/shell/offlineNotice.d.ts +3 -0
- package/dist/shell/quickSearch.d.ts +14 -0
- package/dist/shell/quickSearchControl.d.ts +66 -0
- package/dist/shortcut-DUR6yPWA.js +93 -0
- package/dist/state/BackgroundTaskCapsule.vue.d.ts +18 -0
- package/dist/state/backgroundTasks.d.ts +58 -0
- package/dist/state/index.d.ts +4 -0
- package/dist/state/index.js +194 -80
- package/dist/state/useCountUp.d.ts +9 -0
- package/dist/styles.css +1 -1
- package/dist/{suggestions-BVQhoXzS.js → suggestions-q_v3M7G6.js} +1 -1
- package/dist/testing/collection.d.ts +1 -1
- package/dist/{useCommand-Dc8Lgs9h.js → useCommand-Ch_nx1AQ.js} +4 -4
- package/dist/{useGroupSheet-DQ6cVG-z.js → useGroupSheet-CPjHydQV.js} +14 -15
- package/dist/{useRecordDialog-BTsbHY38.js → useRecordDialog-DdkauXnU.js} +1 -1
- package/dist/{useResourceForm-DJ4Q75pq.js → useResourceForm-Dl6YFYyz.js} +1 -1
- package/package.json +3 -2
- package/dist/ActionRow.vue_vue_type_script_setup_true_lang-Cg1lhpcA.js +0 -45
- package/dist/Activity-29hsZ28j.js +0 -156
- package/dist/Button.vue_vue_type_script_setup_true_lang-Dp7OB-eF.js +0 -192
- package/dist/Changes-Dxjdkd_5.js +0 -129
- package/dist/FormErrors.vue_vue_type_script_setup_true_lang-CIggKPtq.js +0 -295
- package/dist/FormGroup.vue_vue_type_script_setup_true_lang-B37dixvJ.js +0 -137
- package/dist/PageBar.vue_vue_type_script_setup_true_lang-qI94fjJv.js +0 -47
- package/dist/ProfilePage-BnohZIEg.js +0 -764
- package/dist/ProgressTrack.vue_vue_type_script_setup_true_lang-B6Prw9hi.js +0 -64
- package/dist/SectionIntro.vue_vue_type_script_setup_true_lang-CZtPrmXD.js +0 -23
- package/dist/SessionList.vue_vue_type_script_setup_true_lang-Cnyt5V8T.js +0 -133
- package/dist/SignIns-BcqBgWgN.js +0 -121
- package/dist/UserRecord-CtUPpbCt.js +0 -267
- package/dist/UsersList-BMkIgIg8.js +0 -155
- package/dist/definition-C7QuyV3i.js +0 -54
- package/dist/fieldMessages-B6GHgi40.js +0 -25
- package/dist/http-nz92KjdS.js +0 -42
- package/dist/index-CdtofdcJ.js +0 -501
- package/dist/languages-BShG9LpE.js +0 -10
- package/dist/signInEvents-DWShrJox.js +0 -30
- package/dist/status-BRA14qwX.js +0 -34
- package/dist/useWaitStatus-fsacMl4W.js +0 -24
package/dist/index-CdtofdcJ.js
DELETED
|
@@ -1,501 +0,0 @@
|
|
|
1
|
-
import { r as i } from "./route-goWMxDUN.js";
|
|
2
|
-
import { d as N, p as F } from "./feature-DdUAfyi4.js";
|
|
3
|
-
import { k as ce } from "./keepAlive-z3IRFkQq.js";
|
|
4
|
-
import { d as K } from "./defineRoutes-BGAdiIrt.js";
|
|
5
|
-
import { d as A } from "./context-Ch1r4fdN.js";
|
|
6
|
-
import { defineComponent as w, computed as y, watch as z, openBlock as _, createElementBlock as D, ref as V, useTemplateRef as ue, watchEffect as le, onBeforeUnmount as me, createVNode as g, unref as o, createElementVNode as p, toDisplayString as f, createCommentVNode as I, createBlock as U, useId as pe, Teleport as de, normalizeClass as B, createTextVNode as O, withCtx as T, mergeProps as fe, h as he } from "vue";
|
|
7
|
-
import { a as P } from "./error-CD7x0Jrz.js";
|
|
8
|
-
import { u as ve } from "./environment-Dva-SG8D.js";
|
|
9
|
-
import { u as C } from "./describeError-B-NMa--w.js";
|
|
10
|
-
import { t as k } from "./toast-CqSDTWRX.js";
|
|
11
|
-
import { u as x, h as R, f as j } from "./platform-BQOX_Ntw.js";
|
|
12
|
-
import { useI18n as E } from "vue-i18n";
|
|
13
|
-
import { _ as J } from "./Icon.vue_vue_type_script_lang-BhhsFYwp.js";
|
|
14
|
-
import { useRouter as Q, useRoute as ye } from "vue-router";
|
|
15
|
-
import { _ as X } from "./AccountMenuItem.vue_vue_type_script_setup_true_lang-BIYgaihv.js";
|
|
16
|
-
import { _ as G } from "./Button.vue_vue_type_script_setup_true_lang-Dp7OB-eF.js";
|
|
17
|
-
import { u as ge } from "./leaveGuard-Cc8yeLxM.js";
|
|
18
|
-
import { _ as _e } from "./FormView.vue_vue_type_script_setup_true_lang-aaNnMIOi.js";
|
|
19
|
-
import { _ as be } from "./TextField.vue_vue_type_script_setup_true_lang-BFVsqcBX.js";
|
|
20
|
-
import { u as we } from "./mediaQuery-CygcXmFW.js";
|
|
21
|
-
import { u as xe } from "./useDialog-DfNmqM-0.js";
|
|
22
|
-
import { c as Ee } from "./closeOverlays-CjVsIrpL.js";
|
|
23
|
-
import { u as Se } from "./FormErrors.vue_vue_type_script_setup_true_lang-CIggKPtq.js";
|
|
24
|
-
import { u as Te } from "./format-D8KUBmbS.js";
|
|
25
|
-
import { b as ke } from "./routeResource-DlTsGTg_.js";
|
|
26
|
-
import "./ActionRow.vue_vue_type_script_setup_true_lang-Cg1lhpcA.js";
|
|
27
|
-
import { _ as Ae } from "./AccessGate.vue_vue_type_script_setup_true_lang-CzQbD2Pc.js";
|
|
28
|
-
import "./routes-Beyr5NQo.js";
|
|
29
|
-
const b = {
|
|
30
|
-
login: i("POST", "/v1/auth/login", { public: !0 }),
|
|
31
|
-
refresh: i("POST", "/v1/auth/refresh", { public: !0 }),
|
|
32
|
-
logout: i("POST", "/v1/auth/logout"),
|
|
33
|
-
me: i("GET", "/v1/auth/me"),
|
|
34
|
-
changeLocale: i("POST", "/v1/auth/change-locale"),
|
|
35
|
-
loginAs: i("POST", "/v1/auth/login-as"),
|
|
36
|
-
loginAsReturn: i("POST", "/v1/auth/login-as/return"),
|
|
37
|
-
usersList: i("GET", "/v1/iam/users", { permission: "iam.user:view" }),
|
|
38
|
-
usersShow: i("GET", "/v1/iam/users/:id", { permission: "iam.user:view" }),
|
|
39
|
-
usersCreate: i("POST", "/v1/iam/users", { permission: "iam.user:manage" }),
|
|
40
|
-
usersUpdate: i("PUT", "/v1/iam/users/:id", { permission: "iam.user:manage" }),
|
|
41
|
-
usersSetPassword: i("PUT", "/v1/iam/users/:id/password", { permission: "iam.user:manage" }),
|
|
42
|
-
usersDeactivate: i("POST", "/v1/iam/users/:id/deactivate", { permission: "iam.user:manage" }),
|
|
43
|
-
usersActivate: i("POST", "/v1/iam/users/:id/activate", { permission: "iam.user:manage" }),
|
|
44
|
-
usersUnlock: i("POST", "/v1/iam/users/:id/unlock", { permission: "iam.user:manage" }),
|
|
45
|
-
usersSignins: i("GET", "/v1/iam/users/:id/signins", { permission: "iam.user:view" }),
|
|
46
|
-
usersChanges: i("GET", "/v1/iam/users/:id/changes", { permission: "iam.user:view" }),
|
|
47
|
-
usersActivity: i("GET", "/v1/iam/users/:id/activity", { permission: "iam.user.activity:view" }),
|
|
48
|
-
usersSessions: i("GET", "/v1/iam/users/:id/sessions", { permission: "iam.user:view" }),
|
|
49
|
-
usersRevokeSession: i("DELETE", "/v1/iam/users/:id/sessions/:session_id", { permission: "iam.user:manage" }),
|
|
50
|
-
usersRevokeSessions: i("DELETE", "/v1/iam/users/:id/sessions", { permission: "iam.user:manage" }),
|
|
51
|
-
profileShow: i("GET", "/v1/iam/profile"),
|
|
52
|
-
profileUpdate: i("PUT", "/v1/iam/profile"),
|
|
53
|
-
profileChangePassword: i("PUT", "/v1/iam/profile/password"),
|
|
54
|
-
profileRequestEmail: i("POST", "/v1/iam/profile/email"),
|
|
55
|
-
profileResendEmail: i("POST", "/v1/iam/profile/email/resend"),
|
|
56
|
-
profileConfirmEmail: i("POST", "/v1/iam/profile/email/confirm"),
|
|
57
|
-
profileCancelEmail: i("DELETE", "/v1/iam/profile/email"),
|
|
58
|
-
profileSignins: i("GET", "/v1/iam/profile/signins"),
|
|
59
|
-
profileSessions: i("GET", "/v1/iam/profile/sessions"),
|
|
60
|
-
profileRevokeSession: i("DELETE", "/v1/iam/profile/sessions/:session_id")
|
|
61
|
-
}, [Pe, Z] = A("vue-core.identity"), $ = (e) => P(e) && e.kind === "unauthorized";
|
|
62
|
-
function Ce(e) {
|
|
63
|
-
if (!P(e) || e.code !== "identity.signin.locked") return null;
|
|
64
|
-
const s = e.params?.locked_until, t = typeof s == "string" ? new Date(s) : null;
|
|
65
|
-
return t && !Number.isNaN(t.getTime()) ? t : null;
|
|
66
|
-
}
|
|
67
|
-
async function Oe({ http: e, session: s }, t) {
|
|
68
|
-
await e.request(b.login, t, { handleUnauthorized: !1 }), await M({ session: s });
|
|
69
|
-
}
|
|
70
|
-
async function M({ session: e }) {
|
|
71
|
-
const s = await e.refresh();
|
|
72
|
-
if (s.status === "failed") throw s.error;
|
|
73
|
-
if (s.status !== "authenticated") throw new Error("The server accepted the request but reports nobody signed in.");
|
|
74
|
-
}
|
|
75
|
-
async function Re(e, s) {
|
|
76
|
-
await e.http.request(b.loginAs, { user_id: s }), await M(e);
|
|
77
|
-
}
|
|
78
|
-
async function Ke(e) {
|
|
79
|
-
await e.http.request(b.loginAsReturn), await M(e);
|
|
80
|
-
}
|
|
81
|
-
const Ie = { hidden: "" }, Ue = /* @__PURE__ */ w({
|
|
82
|
-
__name: "LocaleSync",
|
|
83
|
-
setup(e) {
|
|
84
|
-
const { http: s, session: t } = x(), n = ve(), m = C(), d = y(() => {
|
|
85
|
-
const r = t.state.value, a = r.status === "authenticated" ? r.user.locale : void 0;
|
|
86
|
-
return typeof a == "string" ? a : null;
|
|
87
|
-
});
|
|
88
|
-
let u = null;
|
|
89
|
-
return z(d, async (r) => {
|
|
90
|
-
u = r, r !== null && r !== n.locale.value && n.locales.includes(r) && await n.setLocale(r);
|
|
91
|
-
}, { immediate: !0 }), z(n.locale, async (r) => {
|
|
92
|
-
if (!(t.state.value.status !== "authenticated" || r === u))
|
|
93
|
-
try {
|
|
94
|
-
await s.request(b.changeLocale, { locale: r }), u = r;
|
|
95
|
-
} catch (a) {
|
|
96
|
-
if ($(a)) return;
|
|
97
|
-
k.error(m(a)), P(a) && a.code === "identity.locale.unsupported" && u !== null && await n.setLocale(u);
|
|
98
|
-
}
|
|
99
|
-
}), (r, a) => (_(), D("span", Ie));
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
function ee() {
|
|
103
|
-
const e = x(), s = Q(), { home: t } = Z(), n = C(), m = V(!1), d = y(() => R(e.session.state.value)?.impersonator != null);
|
|
104
|
-
async function u() {
|
|
105
|
-
m.value = !0;
|
|
106
|
-
try {
|
|
107
|
-
await Ke(e), await s.push(t);
|
|
108
|
-
} catch (r) {
|
|
109
|
-
$(r) || k.error(n(r)), e.session.refresh();
|
|
110
|
-
} finally {
|
|
111
|
-
m.value = !1;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
return { impersonating: d, returning: m, leave: u };
|
|
115
|
-
}
|
|
116
|
-
const $e = { class: "min-w-0 flex-1" }, Le = { class: "hidden md:inline" }, qe = { class: "md:hidden" }, ze = ["disabled"], Ge = /* @__PURE__ */ w({
|
|
117
|
-
__name: "ImpersonationBanner",
|
|
118
|
-
setup(e) {
|
|
119
|
-
const { t: s } = E(), t = x(), { returning: n, leave: m } = ee(), d = y(() => R(t.session.state.value)?.impersonator ?? null), u = y(() => {
|
|
120
|
-
const l = R(t.session.state.value)?.user;
|
|
121
|
-
return typeof l?.name == "string" ? l.name : typeof l?.login == "string" ? l.login : String(l?.id ?? "");
|
|
122
|
-
}), r = ue("strip");
|
|
123
|
-
let a = null;
|
|
124
|
-
return le(() => {
|
|
125
|
-
a?.disconnect(), a = null;
|
|
126
|
-
const l = r.value;
|
|
127
|
-
if (!l) return void document.documentElement.style.removeProperty("--shell-banner-h");
|
|
128
|
-
if (typeof ResizeObserver > "u") return;
|
|
129
|
-
const c = () => document.documentElement.style.setProperty("--shell-banner-h", `${l.offsetHeight}px`);
|
|
130
|
-
a = new ResizeObserver(c), a.observe(l), c();
|
|
131
|
-
}, { flush: "post" }), me(() => {
|
|
132
|
-
a?.disconnect(), document.documentElement.style.removeProperty("--shell-banner-h");
|
|
133
|
-
}), (l, c) => d.value ? (_(), D("div", {
|
|
134
|
-
key: 0,
|
|
135
|
-
ref_key: "strip",
|
|
136
|
-
ref: r,
|
|
137
|
-
role: "status",
|
|
138
|
-
"data-impersonation-banner": "",
|
|
139
|
-
class: "sticky top-0 z-40 flex flex-wrap items-center gap-x-3 gap-y-1.5 bg-status-warning-surface px-4 py-2 text-subheadline text-status-warning-content shadow-[inset_0_-1px_0_rgb(154_74_7/0.25)]"
|
|
140
|
-
}, [
|
|
141
|
-
g(o(J), {
|
|
142
|
-
name: "informationLine",
|
|
143
|
-
size: 18,
|
|
144
|
-
class: "shrink-0 compact:hidden"
|
|
145
|
-
}),
|
|
146
|
-
p("span", $e, [
|
|
147
|
-
p("span", Le, f(o(s)("core.identity.impersonation.banner", { name: u.value })), 1),
|
|
148
|
-
p("span", qe, f(o(s)("core.identity.impersonation.banner_short", { name: u.value })), 1)
|
|
149
|
-
]),
|
|
150
|
-
p("button", {
|
|
151
|
-
type: "button",
|
|
152
|
-
disabled: o(n),
|
|
153
|
-
class: "hit-target cursor-pointer rounded-control bg-status-warning-solid px-3 py-1 text-footnote font-semibold whitespace-nowrap text-white transition duration-motion-fast hover:brightness-110 disabled:opacity-45",
|
|
154
|
-
onClick: c[0] || (c[0] = //@ts-ignore
|
|
155
|
-
(...h) => o(m) && o(m)(...h))
|
|
156
|
-
}, f(o(s)("core.identity.impersonation.return")), 9, ze)
|
|
157
|
-
], 512)) : I("", !0);
|
|
158
|
-
}
|
|
159
|
-
}), Ne = /* @__PURE__ */ w({
|
|
160
|
-
__name: "ReturnMenuItem",
|
|
161
|
-
setup(e) {
|
|
162
|
-
const { t: s } = E(), { impersonating: t, leave: n } = ee();
|
|
163
|
-
return (m, d) => o(t) ? (_(), U(X, {
|
|
164
|
-
key: 0,
|
|
165
|
-
label: o(s)("core.identity.impersonation.return"),
|
|
166
|
-
icon: "logoutBoxRLine",
|
|
167
|
-
"data-return-menu-item": "",
|
|
168
|
-
onClick: o(n)
|
|
169
|
-
}, null, 8, ["label", "onClick"])) : I("", !0);
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
function Fe(e = {}) {
|
|
173
|
-
const { t: s } = E(), t = x(), n = Te(), m = C(), u = Se({
|
|
174
|
-
defaults: () => ({ login: e.login ?? "", password: "" }),
|
|
175
|
-
validator: {
|
|
176
|
-
safeParse(a) {
|
|
177
|
-
const l = a, c = ["login", "password"].filter((h) => l[h] === "").map((h) => ({ path: [h], message: s("core.identity.signin.required") }));
|
|
178
|
-
return c.length === 0 ? { success: !0, data: l } : { success: !1, error: { issues: c } };
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
failureMessage(a, l) {
|
|
182
|
-
const c = Ce(l);
|
|
183
|
-
return c ? s("core.errors.identity.signin.locked", { locked_until: n.time(c) }) : P(l) ? m(l) : void 0;
|
|
184
|
-
}
|
|
185
|
-
}), r = y(() => u.errors.first("password") ?? (u.failure.value?.error ? u.failure.value.message : void 0));
|
|
186
|
-
return { form: u, passwordError: r, submit: async () => (await u.submit((a) => Oe(t, a))).status === "saved" };
|
|
187
|
-
}
|
|
188
|
-
const De = ["aria-labelledby"], Ve = ["id"], Me = { class: "mt-1 text-subheadline text-content-muted" }, Be = { class: "flex items-center gap-2 rounded-control bg-status-success-surface px-2.5 py-2 text-footnote text-status-success-content" }, je = { class: "flex flex-col gap-1.5" }, We = { class: "text-footnote text-content-muted" }, Ye = {
|
|
189
|
-
class: "rounded-control bg-fill px-2.5 py-2 text-body text-content-muted",
|
|
190
|
-
"data-expiry-login": ""
|
|
191
|
-
}, He = /* @__PURE__ */ w({
|
|
192
|
-
__name: "SessionExpiry",
|
|
193
|
-
setup(e) {
|
|
194
|
-
const { t: s } = E(), { session: t } = x(), n = ye(), m = ge(), d = C(), u = we(), r = pe(), a = y(() => {
|
|
195
|
-
const v = t.state.value, S = v.status === "anonymous" && v.reason === "expired" ? v.previous?.user : void 0;
|
|
196
|
-
return typeof S?.login == "string" ? S.login : null;
|
|
197
|
-
}), l = y(() => a.value !== null && n.meta.public !== !0), c = V(null), h = xe(c, { onEscape: () => {
|
|
198
|
-
} }), { isOpen: oe } = h, { form: L, passwordError: ie, submit: re } = Fe({ login: a.value ?? "" });
|
|
199
|
-
z(l, (v) => {
|
|
200
|
-
v ? (L.hydrate({ login: a.value ?? "", password: "" }), Ee(), k.dismiss(), h.present()) : h.dismissWithoutAsking();
|
|
201
|
-
}, { immediate: !0, flush: "post" });
|
|
202
|
-
async function ae() {
|
|
203
|
-
if (!(m.hasUnsavedChanges() && !await m.confirm()))
|
|
204
|
-
try {
|
|
205
|
-
await t.signOut();
|
|
206
|
-
} catch (v) {
|
|
207
|
-
$(v) || k.error(d(v));
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
return (v, S) => (_(), U(de, { to: "body" }, [
|
|
211
|
-
o(oe) ? (_(), D("div", {
|
|
212
|
-
key: 0,
|
|
213
|
-
class: "relative z-10000",
|
|
214
|
-
role: "alertdialog",
|
|
215
|
-
"aria-modal": "true",
|
|
216
|
-
"aria-labelledby": o(r),
|
|
217
|
-
"data-session-expiry": ""
|
|
218
|
-
}, [
|
|
219
|
-
S[0] || (S[0] = p("div", {
|
|
220
|
-
class: "fixed inset-0 bg-scrim",
|
|
221
|
-
"aria-hidden": "true"
|
|
222
|
-
}, null, -1)),
|
|
223
|
-
p("div", {
|
|
224
|
-
class: B(["fixed inset-0 flex p-4", o(u) ? "items-end p-0" : "items-center justify-center"])
|
|
225
|
-
}, [
|
|
226
|
-
p("div", {
|
|
227
|
-
ref_key: "panel",
|
|
228
|
-
ref: c,
|
|
229
|
-
tabindex: "-1",
|
|
230
|
-
class: B(["flex w-full flex-col gap-4 bg-surface-overlay p-6 shadow-float outline-none", o(u) ? "rounded-t-2xl pb-[max(2rem,var(--app-safe-bottom))]" : "max-w-sm rounded-menu"])
|
|
231
|
-
}, [
|
|
232
|
-
p("div", null, [
|
|
233
|
-
p("h2", {
|
|
234
|
-
id: o(r),
|
|
235
|
-
class: "text-headline font-semibold text-content-strong"
|
|
236
|
-
}, f(o(s)("core.identity.expired.title")), 9, Ve),
|
|
237
|
-
p("p", Me, f(o(s)("core.identity.expired.body")), 1)
|
|
238
|
-
]),
|
|
239
|
-
p("p", Be, [
|
|
240
|
-
g(o(J), {
|
|
241
|
-
name: "checkboxCircleFill",
|
|
242
|
-
size: 16,
|
|
243
|
-
class: "shrink-0"
|
|
244
|
-
}),
|
|
245
|
-
O(" " + f(o(s)("core.identity.expired.kept")), 1)
|
|
246
|
-
]),
|
|
247
|
-
g(o(_e), { onSubmit: o(re) }, {
|
|
248
|
-
default: T(() => [
|
|
249
|
-
p("div", je, [
|
|
250
|
-
p("span", We, f(o(s)("core.identity.username")), 1),
|
|
251
|
-
p("span", Ye, f(a.value), 1)
|
|
252
|
-
]),
|
|
253
|
-
g(o(be), fe(o(L).bind("password"), {
|
|
254
|
-
label: o(s)("core.identity.signin.password"),
|
|
255
|
-
type: "password",
|
|
256
|
-
autocomplete: "current-password",
|
|
257
|
-
required: "",
|
|
258
|
-
error: o(ie)
|
|
259
|
-
}), null, 16, ["label", "error"]),
|
|
260
|
-
g(o(G), {
|
|
261
|
-
type: "submit",
|
|
262
|
-
prominence: "primary",
|
|
263
|
-
class: "w-full",
|
|
264
|
-
processing: o(L).submitting.value
|
|
265
|
-
}, {
|
|
266
|
-
default: T(() => [
|
|
267
|
-
O(f(o(s)("core.identity.signin.submit")), 1)
|
|
268
|
-
]),
|
|
269
|
-
_: 1
|
|
270
|
-
}, 8, ["processing"])
|
|
271
|
-
]),
|
|
272
|
-
_: 1
|
|
273
|
-
}, 8, ["onSubmit"]),
|
|
274
|
-
g(o(G), {
|
|
275
|
-
prominence: "plain",
|
|
276
|
-
class: "self-center",
|
|
277
|
-
onClick: ae
|
|
278
|
-
}, {
|
|
279
|
-
default: T(() => [
|
|
280
|
-
O(f(o(s)("core.identity.expired.sign_out")), 1)
|
|
281
|
-
]),
|
|
282
|
-
_: 1
|
|
283
|
-
})
|
|
284
|
-
], 2)
|
|
285
|
-
], 2)
|
|
286
|
-
], 8, De)) : I("", !0)
|
|
287
|
-
]));
|
|
288
|
-
}
|
|
289
|
-
}), Je = K({
|
|
290
|
-
login: { name: "login", path: "/login", component: () => import("./SignInPage-HKC1bm2E.js"), meta: { public: !0, titleKey: "core.identity.signin.title" } }
|
|
291
|
-
});
|
|
292
|
-
function $s(e = {}) {
|
|
293
|
-
return N({
|
|
294
|
-
id: "identity",
|
|
295
|
-
routes: Je.records,
|
|
296
|
-
context: F(Pe, { home: e.home ?? "/" }),
|
|
297
|
-
holdsExpiredSession: !0,
|
|
298
|
-
contributions: [
|
|
299
|
-
// Not optional: a shell without a `host` could not ask for the password, and the person would be stuck on a dead page.
|
|
300
|
-
{ id: "identity.expiry", slot: "host", component: He, scope: "always" },
|
|
301
|
-
// Not optional either: acting as somebody else must always be visible.
|
|
302
|
-
{ id: "identity.impersonation", slot: "banner", component: Ge, scope: "authenticated" },
|
|
303
|
-
// The same way out in the account menu (a shell without that slot shows only the banner's button).
|
|
304
|
-
{ id: "identity.return", slot: "accountMenu", component: Ne, scope: "authenticated", optional: !0, order: -20 },
|
|
305
|
-
{ id: "identity.locale", slot: "host", component: Ue, scope: "authenticated", optional: !0 }
|
|
306
|
-
],
|
|
307
|
-
effects: [ce()]
|
|
308
|
-
});
|
|
309
|
-
}
|
|
310
|
-
const Qe = (e) => typeof e == "object" && e !== null && !Array.isArray(e), Xe = (e) => {
|
|
311
|
-
if (!Qe(e)) throw new TypeError("expected an object");
|
|
312
|
-
if (typeof e.id != "number") throw new TypeError("id: expected a number");
|
|
313
|
-
for (const s of ["login", "name", "email", "locale"])
|
|
314
|
-
if (typeof e[s] != "string") throw new TypeError(`${s}: expected a string`);
|
|
315
|
-
return { id: e.id, login: e.login, name: e.name, email: e.email, locale: e.locale };
|
|
316
|
-
}, q = (e) => P(e) && e.kind === "unauthorized", se = (e, s) => e.request(b.refresh, { refresh_token: "" }, { signal: s, handleUnauthorized: !1 });
|
|
317
|
-
function Ze(e, s) {
|
|
318
|
-
return {
|
|
319
|
-
async load(t) {
|
|
320
|
-
try {
|
|
321
|
-
const { data: n } = await e.request(b.me, void 0, { signal: t, handleUnauthorized: !1 });
|
|
322
|
-
return j(n, s);
|
|
323
|
-
} catch (n) {
|
|
324
|
-
if (!q(n)) throw n;
|
|
325
|
-
}
|
|
326
|
-
try {
|
|
327
|
-
const { data: n } = await se(e, t);
|
|
328
|
-
return j(n, s);
|
|
329
|
-
} catch (n) {
|
|
330
|
-
if (q(n)) return null;
|
|
331
|
-
throw n;
|
|
332
|
-
}
|
|
333
|
-
},
|
|
334
|
-
async signOut() {
|
|
335
|
-
try {
|
|
336
|
-
await e.request(b.logout, void 0, { handleUnauthorized: !1 });
|
|
337
|
-
} catch (t) {
|
|
338
|
-
if (!q(t)) throw t;
|
|
339
|
-
}
|
|
340
|
-
}
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
function Ls(e) {
|
|
344
|
-
const s = e?.parseUser ?? Xe;
|
|
345
|
-
return {
|
|
346
|
-
session: (n) => Ze(n, s),
|
|
347
|
-
...e?.renewable && { renewable: e.renewable },
|
|
348
|
-
async renewSession(n, m) {
|
|
349
|
-
try {
|
|
350
|
-
return await se(m), (await n.refresh()).status === "authenticated";
|
|
351
|
-
} catch {
|
|
352
|
-
return !1;
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
};
|
|
356
|
-
}
|
|
357
|
-
const te = K({
|
|
358
|
-
index: { name: "profile", path: "/profile", component: () => import("./ProfilePage-BnohZIEg.js"), meta: { titleKey: "core.profile.title" } }
|
|
359
|
-
}), es = /* @__PURE__ */ w({
|
|
360
|
-
__name: "ProfileMenuItem",
|
|
361
|
-
setup(e) {
|
|
362
|
-
const { t: s } = E();
|
|
363
|
-
return (t, n) => (_(), U(X, {
|
|
364
|
-
label: o(s)("core.profile.menu"),
|
|
365
|
-
icon: "user3Line",
|
|
366
|
-
to: o(te).index,
|
|
367
|
-
"data-profile-menu-item": ""
|
|
368
|
-
}, null, 8, ["label", "to"]));
|
|
369
|
-
}
|
|
370
|
-
}), [ss, qs] = A("vue-core.users"), ts = Symbol("vue-core.users.person"), [zs, Gs] = A("vue-core.users.personActions"), [Ns, Fs] = A("vue-core.users.personSessions");
|
|
371
|
-
function ns(e) {
|
|
372
|
-
const s = w({
|
|
373
|
-
name: `PersonSection(${e.path})`,
|
|
374
|
-
setup() {
|
|
375
|
-
const t = ke(ts);
|
|
376
|
-
return () => t.data.value ? he(e.component, e.props?.(t.data.value) ?? {}) : null;
|
|
377
|
-
}
|
|
378
|
-
});
|
|
379
|
-
return { name: `users.record.${e.path}`, path: e.path, component: s, meta: { ...e.meta } };
|
|
380
|
-
}
|
|
381
|
-
const W = "iam.user:view", Ds = "iam.user:manage", os = "iam.user.activity:view", ne = K({
|
|
382
|
-
index: { name: "users.index", path: "/users", component: () => import("./UsersList-BMkIgIg8.js"), meta: { access: W, titleKey: "core.users.title" } },
|
|
383
|
-
record: {
|
|
384
|
-
name: "users.record",
|
|
385
|
-
path: "/users/:id",
|
|
386
|
-
component: () => import("./UserRecord-CtUPpbCt.js"),
|
|
387
|
-
meta: { access: W, titleKey: "core.users.title", remountOnParam: "id" },
|
|
388
|
-
children: [
|
|
389
|
-
{ name: "users.record.general", path: "general", component: () => import("./General-BAG7S6wV.js"), meta: { section: { labelKey: "core.users.sections.general", icon: "user3Line", groupKey: "core.users.section_groups.person" } } },
|
|
390
|
-
{ name: "users.record.signin", path: "signin", component: () => import("./SignIn-CTI_699e.js"), meta: { section: { labelKey: "core.users.sections.signin", icon: "key2Line", groupKey: "core.users.section_groups.access" } } },
|
|
391
|
-
{ name: "users.record.sessions", path: "sessions", component: () => import("./Sessions--Gvc0kxw.js"), meta: { section: { labelKey: "core.users.sections.sessions", icon: "deviceLine", groupKey: "core.users.section_groups.access" } } },
|
|
392
|
-
{ name: "users.record.signins", path: "signins", component: () => import("./SignIns-BcqBgWgN.js"), meta: { section: { labelKey: "core.users.sections.signins", icon: "timeFill", groupKey: "core.users.section_groups.activity" } } },
|
|
393
|
-
{ name: "users.record.changes", path: "changes", component: () => import("./Changes-Dxjdkd_5.js"), meta: { section: { labelKey: "core.users.sections.changes", icon: "edit", groupKey: "core.users.section_groups.activity" } } },
|
|
394
|
-
{ name: "users.record.activity", path: "activity", component: () => import("./Activity-29hsZ28j.js"), meta: { access: os, section: { labelKey: "core.users.sections.activity", icon: "listCheck", groupKey: "core.users.section_groups.activity" } } }
|
|
395
|
-
]
|
|
396
|
-
}
|
|
397
|
-
});
|
|
398
|
-
function is(e) {
|
|
399
|
-
return ne.records.map((s) => s.name === "users.record" ? { ...s, children: [...s.children ?? [], ...e.map(ns)] } : s);
|
|
400
|
-
}
|
|
401
|
-
function Vs(e = {}) {
|
|
402
|
-
const s = e.people ?? !0, t = e.profile ?? !0, n = e.signInAs ?? "iam.user:impersonate";
|
|
403
|
-
return N({
|
|
404
|
-
id: "users",
|
|
405
|
-
routes: [...s ? is(e.sections ?? []) : [], ...t ? te.records : []],
|
|
406
|
-
context: F(ss, { signInAs: n, activityAreas: e.activityAreas ?? {}, profileSections: e.profileSections ?? [] }),
|
|
407
|
-
navigation: s && e.destination ? [{ destination: e.destination, to: ne.index, within: ["users.record"] }] : [],
|
|
408
|
-
// The entry of the account menu; a shell without that menu leaves it out.
|
|
409
|
-
contributions: t ? [{ id: "users.profile", slot: "accountMenu", component: es, scope: "authenticated", optional: !0, order: -10 }] : [],
|
|
410
|
-
requires: s && n !== !1 ? ["identity"] : []
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
const Ms = /* @__PURE__ */ w({
|
|
414
|
-
__name: "SignInAsButton",
|
|
415
|
-
props: {
|
|
416
|
-
userId: {},
|
|
417
|
-
name: {},
|
|
418
|
-
permission: {}
|
|
419
|
-
},
|
|
420
|
-
setup(e) {
|
|
421
|
-
const s = e, { t } = E(), n = x(), m = Q(), { home: d } = Z(), u = C(), r = V(!1), a = y(() => {
|
|
422
|
-
const c = R(n.session.state.value);
|
|
423
|
-
return c !== null && c.impersonator === void 0 && c.user.id !== s.userId;
|
|
424
|
-
});
|
|
425
|
-
async function l() {
|
|
426
|
-
r.value = !0;
|
|
427
|
-
try {
|
|
428
|
-
await Re(n, s.userId), await m.push(d);
|
|
429
|
-
} catch (c) {
|
|
430
|
-
$(c) || k.error(u(c, { fallback: t("core.identity.impersonation.sign_in_as_failed", { name: s.name }) }));
|
|
431
|
-
} finally {
|
|
432
|
-
r.value = !1;
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
return (c, h) => a.value ? (_(), U(o(Ae), {
|
|
436
|
-
key: 0,
|
|
437
|
-
permission: s.permission
|
|
438
|
-
}, {
|
|
439
|
-
default: T(() => [
|
|
440
|
-
g(o(G), {
|
|
441
|
-
processing: r.value,
|
|
442
|
-
"data-sign-in-as": "",
|
|
443
|
-
onClick: l
|
|
444
|
-
}, {
|
|
445
|
-
default: T(() => [
|
|
446
|
-
O(f(o(t)("core.identity.impersonation.sign_in_as", { name: s.name })), 1)
|
|
447
|
-
]),
|
|
448
|
-
_: 1
|
|
449
|
-
}, 8, ["processing"])
|
|
450
|
-
]),
|
|
451
|
-
_: 1
|
|
452
|
-
}, 8, ["permission"])) : I("", !0);
|
|
453
|
-
}
|
|
454
|
-
}), [rs, Bs] = A("vue-core.serviceaccounts"), Y = "iam.serviceaccount:view", js = "iam.serviceaccount:manage", Ws = "iam.serviceaccount:revoke", H = K({
|
|
455
|
-
index: { name: "serviceaccounts.index", path: "/iam/service-accounts", component: () => import("./ServiceAccountsList-BXE6htxk.js"), meta: { access: Y, titleKey: "core.serviceaccounts.title_plural" } },
|
|
456
|
-
record: {
|
|
457
|
-
name: "serviceaccounts.record",
|
|
458
|
-
path: "/iam/service-accounts/:id",
|
|
459
|
-
component: () => import("./ServiceAccountRecord-bxX9yQkC.js"),
|
|
460
|
-
meta: { access: Y, titleKey: "core.serviceaccounts.title_plural", remountOnParam: "id" }
|
|
461
|
-
}
|
|
462
|
-
});
|
|
463
|
-
function Ys(e = {}) {
|
|
464
|
-
return N({
|
|
465
|
-
id: "serviceaccounts",
|
|
466
|
-
routes: H.records,
|
|
467
|
-
context: F(rs, { tenants: e.tenants ?? null }),
|
|
468
|
-
navigation: e.destination ? [{ destination: e.destination, to: H.index, within: ["serviceaccounts.record"] }] : [],
|
|
469
|
-
requires: ["access"]
|
|
470
|
-
});
|
|
471
|
-
}
|
|
472
|
-
export {
|
|
473
|
-
js as M,
|
|
474
|
-
ts as P,
|
|
475
|
-
Ws as R,
|
|
476
|
-
Ms as _,
|
|
477
|
-
Fe as a,
|
|
478
|
-
Gs as b,
|
|
479
|
-
qs as c,
|
|
480
|
-
$ as d,
|
|
481
|
-
Fs as e,
|
|
482
|
-
Bs as f,
|
|
483
|
-
ne as g,
|
|
484
|
-
Ds as h,
|
|
485
|
-
b as i,
|
|
486
|
-
zs as j,
|
|
487
|
-
$s as k,
|
|
488
|
-
Ls as l,
|
|
489
|
-
Ze as m,
|
|
490
|
-
Ce as n,
|
|
491
|
-
Xe as o,
|
|
492
|
-
Ns as p,
|
|
493
|
-
te as q,
|
|
494
|
-
Ke as r,
|
|
495
|
-
H as s,
|
|
496
|
-
Ys as t,
|
|
497
|
-
Z as u,
|
|
498
|
-
Oe as v,
|
|
499
|
-
Re as w,
|
|
500
|
-
Vs as x
|
|
501
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { computed as e } from "vue";
|
|
2
|
-
import { u as p } from "./environment-Dva-SG8D.js";
|
|
3
|
-
import { l as t } from "./languageName-CItV_SOv.js";
|
|
4
|
-
function r() {
|
|
5
|
-
const o = p();
|
|
6
|
-
return e(() => o.locales.map((a) => ({ value: a, label: t(a) })));
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
r as u
|
|
10
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
const i = (e) => /Edg\/|EdgA\/|EdgiOS\//.test(e) ? "Edge" : /Firefox\/|FxiOS\//.test(e) ? "Firefox" : /Chrome\/|CriOS\//.test(e) ? "Chrome" : /Safari\/|iPhone|iPad/.test(e) ? "Safari" : "", s = (e) => e.includes("iPhone") ? "iPhone" : e.includes("iPad") ? "iPad" : e.includes("Android") ? "Android" : e.includes("Windows") ? "Windows" : /Mac OS X|Macintosh/.test(e) ? "macOS" : /Linux|X11/.test(e) ? "Linux" : "";
|
|
2
|
-
function u(e) {
|
|
3
|
-
const n = e.trim();
|
|
4
|
-
if (n === "") return "";
|
|
5
|
-
const t = i(n), r = s(n);
|
|
6
|
-
return t && r ? `${t} · ${r}` : [...n].slice(0, 80).join("");
|
|
7
|
-
}
|
|
8
|
-
const o = {
|
|
9
|
-
signed_in: { tone: "positive", byOther: !1 },
|
|
10
|
-
wrong_password: { tone: "critical", byOther: !1 },
|
|
11
|
-
locked_out: { tone: "critical", byOther: !1 },
|
|
12
|
-
refused_inactive: { tone: "critical", byOther: !1 },
|
|
13
|
-
signed_in_as: { tone: "warning", byOther: !0 },
|
|
14
|
-
unlocked: { tone: "neutral", byOther: !0 },
|
|
15
|
-
signed_out_everywhere: { tone: "neutral", byOther: !0 },
|
|
16
|
-
session_revoked: { tone: "neutral", byOther: !0 }
|
|
17
|
-
};
|
|
18
|
-
function c(e) {
|
|
19
|
-
const n = o[e];
|
|
20
|
-
return n ? { ...n, known: !0 } : { tone: "neutral", byOther: !1, known: !1 };
|
|
21
|
-
}
|
|
22
|
-
function a(e, n) {
|
|
23
|
-
const t = c(e);
|
|
24
|
-
return t.known ? t.byOther && n ? `core.account.signins.events_by.${e}` : `core.account.signins.events.${e}` : "core.account.signins.events.unknown";
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
a,
|
|
28
|
-
u as d,
|
|
29
|
-
c as s
|
|
30
|
-
};
|
package/dist/status-BRA14qwX.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { d as o } from "./definition-C7QuyV3i.js";
|
|
2
|
-
import { r as a } from "./http-nz92KjdS.js";
|
|
3
|
-
import { i as r } from "./index-CdtofdcJ.js";
|
|
4
|
-
const n = ["active", "locked", "inactive", "all"];
|
|
5
|
-
function v(i) {
|
|
6
|
-
return o({
|
|
7
|
-
id: "identity.users",
|
|
8
|
-
stateVersion: 1,
|
|
9
|
-
load: async (e, { signal: t }) => {
|
|
10
|
-
const s = await i.request(
|
|
11
|
-
r.usersList,
|
|
12
|
-
{
|
|
13
|
-
view: e.view ?? void 0,
|
|
14
|
-
search: e.search || void 0,
|
|
15
|
-
order_col: e.sort ?? void 0,
|
|
16
|
-
order_dir: e.sort ? e.direction : void 0,
|
|
17
|
-
page: e.page,
|
|
18
|
-
per_page: e.pageSize
|
|
19
|
-
},
|
|
20
|
-
{ signal: t }
|
|
21
|
-
);
|
|
22
|
-
return a(s, e);
|
|
23
|
-
},
|
|
24
|
-
key: (e) => e.id,
|
|
25
|
-
query: { sorts: ["login", "name", "email", "created_at"], filters: [], views: n },
|
|
26
|
-
defaults: { sort: "name", direction: "asc", view: "active" }
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
const p = (i) => i === "locked" ? "critical" : i === "inactive" ? "neutral" : "positive";
|
|
30
|
-
export {
|
|
31
|
-
n as U,
|
|
32
|
-
p as s,
|
|
33
|
-
v as u
|
|
34
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { ref as r, watch as c, toValue as v, onScopeDispose as m } from "vue";
|
|
2
|
-
const p = 300, A = 600;
|
|
3
|
-
function E(i, f = {}) {
|
|
4
|
-
const e = r(!1), a = r(0), t = r(!1);
|
|
5
|
-
let s = [], l = null;
|
|
6
|
-
function u() {
|
|
7
|
-
s.forEach((o) => clearTimeout(o)), s = [], l && clearInterval(l), l = null;
|
|
8
|
-
}
|
|
9
|
-
function n() {
|
|
10
|
-
u(), e.value = !1, a.value = 0, t.value = !1, s.push(setTimeout(() => e.value = !0, p)), f.slowAfterMs && s.push(setTimeout(() => t.value = !0, f.slowAfterMs)), l = setInterval(() => a.value += 1, 1e3);
|
|
11
|
-
}
|
|
12
|
-
return c(
|
|
13
|
-
() => v(i),
|
|
14
|
-
(o) => {
|
|
15
|
-
o ? n() : (u(), e.value = !1, t.value = !1);
|
|
16
|
-
},
|
|
17
|
-
{ immediate: !0 }
|
|
18
|
-
), m(u), { visible: e, elapsed: a, slow: t };
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
A as D,
|
|
22
|
-
p as W,
|
|
23
|
-
E as u
|
|
24
|
-
};
|