@ximatai/muyun-web-app 0.26.25 → 0.26.27
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/dist/{BusinessActivityLogView-a6oZ2t9t.js → BusinessActivityLogView-Bbe-GbNG.js} +2 -2
- package/dist/BusinessLogListDrawer-BmF-14We.js +868 -0
- package/dist/CodeConfigurationView-DdPfBjoC.js +1667 -0
- package/dist/{ConfigurationTranslationView-Cd8ezR4t.js → ConfigurationTranslationView-B3Cr9Wes.js} +48 -48
- package/dist/{LoginAuditLogView-DyvHTCXH.js → LoginAuditLogView-DOwkqtVB.js} +2 -2
- package/dist/{ModuleActionManagementView-y3t2YHKF.js → ModuleActionManagementView-DNXAhdXk.js} +145 -145
- package/dist/{ModuleGovernanceView-BqJq2Pxm.js → ModuleGovernanceView-g5W2R_Zl.js} +3131 -3131
- package/dist/{RequestErrorLogView-2iPeAi3b.js → RequestErrorLogView-9GIz2mkQ.js} +2 -2
- package/dist/RoleDetailWorkspaceView-BuqRT0pd.js +1435 -0
- package/dist/{RuntimeLogView-CulSgS0l.js → RuntimeLogView-C5i19Z-u.js} +55 -55
- package/dist/WorkflowAdministrationView-CnoTudpI.js +650 -0
- package/dist/{WorkflowConfigurationView-DpONX2nN.js → WorkflowConfigurationView-Cku-F1Fm.js} +33 -33
- package/dist/{WorkflowWorkbenchView-CGo1eZjr.js → WorkflowWorkbenchView-DbWqspEB.js} +34 -34
- package/dist/{codeConfiguration-fZiz0PNC.js → codeConfiguration-Bno8cWxB.js} +45 -45
- package/dist/index.css +1 -1
- package/dist/index.js +784 -676
- package/dist/{moduleMenuWorkspace-AZ4G9BpZ.js → moduleMenuWorkspace-DW13bHG5.js} +179 -179
- package/dist/{platform-components-D98pyZ77.js → platform-components-D3NvMY3T.js} +3302 -3260
- package/dist/{platform-workbench-BBLDvT9V.js → platform-workbench-C4OFiuG5.js} +4969 -4910
- package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +12 -3
- package/dist/types/dynamic-page-runtime/ModulePageHostSession.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModuleReferenceRecordDetailBrowser.vue.d.ts +4 -1
- package/dist/types/dynamic-page-runtime/recordFormAssistantCapabilities.d.ts +1 -1
- package/dist/types/platform-admin-runtime/realtime.d.ts +3 -1
- package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +1 -1
- package/dist/types/platform-components/referenceRecordDetailBrowser.d.ts +5 -2
- package/dist/types/web-contracts/operation.d.ts +7 -0
- package/dist/types/web-core/assistantConfirmation.d.ts +4 -4
- package/dist/types/web-core/assistantSurface.d.ts +2 -2
- package/dist/types/web-core/businessNotificationSession.d.ts +27 -0
- package/dist/types/web-core/index.d.ts +1 -0
- package/dist/types/web-core/operationConfirmation.d.ts +13 -8
- package/dist/{useWorkflowConfigurationContext-BcK19EXl.js → useWorkflowConfigurationContext-eQKyqe6_.js} +2 -2
- package/dist/{workspaceViews-Dr7RZXvX.js → workspaceViews-D2Uh4KAq.js} +610 -610
- package/package.json +1 -1
- package/dist/BusinessLogListDrawer-DtSXpK6g.js +0 -868
- package/dist/CodeConfigurationView-BVu1ZnH-.js +0 -1667
- package/dist/RoleDetailWorkspaceView-G-5VAV_B.js +0 -1435
- package/dist/WorkflowAdministrationView-y8VBYMLZ.js +0 -650
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as e, r as t } from "./rolldown-runtime-BAC7EHh5.js";
|
|
2
|
-
import { $ as n, A as r, At as i, B as a, C as o, Ct as s, Dt as c, Et as l, F as u, G as d, H as f, I as p, J as m, K as h, L as g, M as _, Mt as v, N as y, Nt as b, O as x, Ot as S, P as
|
|
3
|
-
import { $ as Ze, $a as Qe, $i as $e, $r as et, Aa as tt, Ai as nt, An as rt, Ar as it, B as at, Ba as ot, Bi as st, Bn as ct, Br as lt, Ca as ut, Ci as dt, Cn as ft, Cr as pt, Ct as mt, Da as ht, Di as gt, Dn as _t, Dr as vt, Ea as yt, Ei as bt, En as xt, Er as St, Fa as Ct, Fi as wt, Fr as Tt, Ga as Et, Gi as Dt, Gr as Ot, Ha as kt, Hi as At, Hn as jt, Hr as Mt, Ia as Nt, Ii as Pt, In as Ft, Ir as It, Ja as Lt, Ji as Rt, Jn as zt, Jr as Bt, Jt as Vt, Ka as Ht, Ki as Ut, Kn as Wt, Kr as Gt, La as Kt, Li as qt, Ln as Jt, Lr as Yt, Ma as Xt, Mi as Zt, Mr as Qt, Na as $t, Ni as en, Nr as tn, Oa as nn, Oi as rn, Or as an, Pa as on, Pi as sn, Pn as cn, Pr as ln, Qa as un, Qi as dn, Qn as fn, Qr as pn, Ra as mn, Ri as hn, Rn as gn, Rr as _n, Rt as vn, Sa as yn, Si as bn, Sn as xn, Sr as Sn, St as Cn, Ta as wn, Ti as Tn, Tr as En, Ua as Dn, Ui as On, Un as kn, Ur as An, Va as jn, Vi as Mn, Vr as Nn, Wa as Pn, Wi as Fn, Wn as In, Wr as Ln, Wt as Rn, Xa as zn, Xi as Bn, Xn as Vn, Xr as Hn, Ya as Un, Yi as Wn, Yn as Gn, Yr as Kn, Za as qn, Zi as Jn, Zn as Yn, Zr as Xn, _a as Zn, _i as Qn, _n as $n, _r as er, aa as tr, ai as nr, an as rr, ao as ir, at as ar, ba as or, bi as sr, bn as cr, br as lr, bt as ur, ca as dr, ci as fr, cn as pr,
|
|
4
|
-
import { n as
|
|
5
|
-
import { m as
|
|
6
|
-
import "./workspaceViews-
|
|
7
|
-
import * as
|
|
8
|
-
import { Fragment as
|
|
2
|
+
import { $ as n, A as r, At as i, B as a, C as o, Ct as s, Dt as c, Et as l, F as u, G as d, H as f, I as p, J as m, K as h, L as g, M as _, Mt as v, N as y, Nt as b, O as x, Ot as S, P as ee, Q as C, R as te, S as w, St as ne, Tt as T, U as E, V as D, W as O, X as k, Y as A, Z as j, _ as re, _t as M, a as ie, at as N, b as ae, bt as oe, c as se, ct as ce, d as le, dt as ue, et as de, f as fe, ft as pe, gt as me, h as he, ht as ge, i as _e, it as ve, j as ye, jt as be, k as xe, kt as Se, l as Ce, lt as we, m as Te, mt as Ee, n as De, nt as Oe, o as ke, ot as Ae, p as je, pt as Me, q as Ne, r as Pe, rt as Fe, s as Ie, st as Le, t as Re, tt as ze, u as Be, ut as Ve, v as He, vt as Ue, w as We, wt as Ge, x as Ke, xt as qe, y as Je, yt as Ye, z as Xe } from "./platform-workbench-C4OFiuG5.js";
|
|
3
|
+
import { $ as Ze, $a as Qe, $i as $e, $r as et, Aa as tt, Ai as nt, An as rt, Ar as it, B as at, Ba as ot, Bi as st, Bn as ct, Br as lt, Ca as ut, Ci as dt, Cn as ft, Cr as pt, Ct as mt, Da as ht, Di as gt, Dn as _t, Dr as vt, Ea as yt, Ei as bt, En as xt, Er as St, Fa as Ct, Fi as wt, Fr as Tt, Ga as Et, Gi as Dt, Gr as Ot, Ha as kt, Hi as At, Hn as jt, Hr as Mt, Ia as Nt, Ii as Pt, In as Ft, Ir as It, Ja as Lt, Ji as Rt, Jn as zt, Jr as Bt, Jt as Vt, Ka as Ht, Ki as Ut, Kn as Wt, Kr as Gt, La as Kt, Li as qt, Ln as Jt, Lr as Yt, Ma as Xt, Mi as Zt, Mr as Qt, Na as $t, Ni as en, Nr as tn, Oa as nn, Oi as rn, Or as an, Pa as on, Pi as sn, Pn as cn, Pr as ln, Qa as un, Qi as dn, Qn as fn, Qr as pn, Ra as mn, Ri as hn, Rn as gn, Rr as _n, Rt as vn, Sa as yn, Si as bn, Sn as xn, Sr as Sn, St as Cn, Ta as wn, Ti as Tn, Tr as En, Ua as Dn, Ui as On, Un as kn, Ur as An, Va as jn, Vi as Mn, Vr as Nn, Wa as Pn, Wi as Fn, Wn as In, Wr as Ln, Wt as Rn, Xa as zn, Xi as Bn, Xn as Vn, Xr as Hn, Ya as Un, Yi as Wn, Yn as Gn, Yr as Kn, Za as qn, Zi as Jn, Zn as Yn, Zr as Xn, _a as Zn, _i as Qn, _n as $n, _r as er, aa as tr, ai as nr, an as rr, ao as ir, at as ar, ba as or, bi as sr, bn as cr, br as lr, bt as ur, ca as dr, ci as fr, cn as pr, cr as mr, da as hr, di as gr, dn as _r, do as vr, dr as yr, dt as br, ea as xr, ei as Sr, eo as Cr, et as wr, fa as Tr, fi as Er, fn as Dr, fr as Or, ft as kr, ga as Ar, gi as jr, gr as P, gt as Mr, ha as Nr, hi as Pr, hn as Fr, ht as Ir, ia as Lr, ii as Rr, io as zr, ir as Br, ja as Vr, ji as Hr, jr as Ur, ka as Wr, ki as Gr, kr as Kr, la as qr, li as Jr, lo as Yr, lr as F, ma as Xr, mi as Zr, mn as Qr, mr as $r, mt as ei, n as ti, na as ni, ni as ri, nn as ii, no as ai, nr as oi, nt as si, oa as ci, oi as li, oo as ui, pa as di, pi as fi, pn as pi, pt as mi, q as hi, qa as gi, qi as _i, qr as vi, r as yi, ra as bi, ri as xi, rn as Si, ro as I, rt as Ci, sa as wi, si as Ti, sn as Ei, so as Di, sr as Oi, t as ki, ta as Ai, ti as ji, tn as Mi, to as Ni, ua as Pi, ui as Fi, un as Ii, uo as Li, ur as Ri, ut as zi, va as Bi, vi as Vi, vr as Hi, wa as Ui, wi as Wi, wr as Gi, xa as Ki, xi as qi, xn as Ji, xr as Yi, ya as Xi, yi as Zi, yr as Qi, yt as $i, z as ea, za as ta, zi as na, zr as ra } from "./platform-components-D3NvMY3T.js";
|
|
4
|
+
import { n as ia, t as aa } from "./recordReadEntry-CxDHM44F.js";
|
|
5
|
+
import { m as oa } from "./codeConfiguration-Bno8cWxB.js";
|
|
6
|
+
import "./workspaceViews-D2Uh4KAq.js";
|
|
7
|
+
import * as sa from "vue";
|
|
8
|
+
import { Fragment as ca, computed as L, createBlock as R, createCommentVNode as z, createElementBlock as B, createElementVNode as V, createSlots as la, createTextVNode as H, createVNode as U, defineAsyncComponent as ua, defineComponent as W, guardReactiveProps as da, inject as fa, mergeProps as pa, nextTick as ma, normalizeClass as ha, normalizeProps as ga, normalizeStyle as _a, onBeforeUnmount as va, onMounted as ya, onScopeDispose as ba, openBlock as G, provide as xa, readonly as Sa, ref as K, renderList as Ca, renderSlot as wa, resolveDynamicComponent as Ta, toDisplayString as q, unref as J, useId as Ea, vShow as Da, watch as Y, withCtx as X, withDirectives as Oa, withModifiers as ka } from "vue";
|
|
9
9
|
//#region node_modules/@tanstack/query-core/build/modern/subscribable.js
|
|
10
|
-
var
|
|
10
|
+
var Aa = class {
|
|
11
11
|
constructor() {
|
|
12
12
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
13
13
|
}
|
|
@@ -21,7 +21,7 @@ var ka = class {
|
|
|
21
21
|
}
|
|
22
22
|
onSubscribe() {}
|
|
23
23
|
onUnsubscribe() {}
|
|
24
|
-
},
|
|
24
|
+
}, ja = new class extends Aa {
|
|
25
25
|
#e;
|
|
26
26
|
#t;
|
|
27
27
|
#n;
|
|
@@ -58,13 +58,13 @@ var ka = class {
|
|
|
58
58
|
isFocused() {
|
|
59
59
|
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
|
60
60
|
}
|
|
61
|
-
}(),
|
|
61
|
+
}(), Ma = {
|
|
62
62
|
setTimeout: (e, t) => setTimeout(e, t),
|
|
63
63
|
clearTimeout: (e) => clearTimeout(e),
|
|
64
64
|
setInterval: (e, t) => setInterval(e, t),
|
|
65
65
|
clearInterval: (e) => clearInterval(e)
|
|
66
|
-
},
|
|
67
|
-
#e =
|
|
66
|
+
}, Na = new class {
|
|
67
|
+
#e = Ma;
|
|
68
68
|
#t = !1;
|
|
69
69
|
setTimeoutProvider(e) {
|
|
70
70
|
process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.", {
|
|
@@ -85,34 +85,34 @@ var ka = class {
|
|
|
85
85
|
this.#e.clearInterval(e);
|
|
86
86
|
}
|
|
87
87
|
}();
|
|
88
|
-
function
|
|
88
|
+
function Pa(e) {
|
|
89
89
|
setTimeout(e, 0);
|
|
90
90
|
}
|
|
91
91
|
//#endregion
|
|
92
92
|
//#region node_modules/@tanstack/query-core/build/modern/utils.js
|
|
93
|
-
var
|
|
94
|
-
function
|
|
95
|
-
function
|
|
93
|
+
var Fa = typeof window > "u" || "Deno" in globalThis;
|
|
94
|
+
function Ia() {}
|
|
95
|
+
function La(e, t) {
|
|
96
96
|
return typeof e == "function" ? e(t) : e;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Ra(e) {
|
|
99
99
|
return typeof e == "number" && e >= 0 && e !== Infinity;
|
|
100
100
|
}
|
|
101
|
-
function Ra(e, t) {
|
|
102
|
-
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
103
|
-
}
|
|
104
101
|
function za(e, t) {
|
|
105
|
-
return
|
|
102
|
+
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
106
103
|
}
|
|
107
104
|
function Ba(e, t) {
|
|
108
105
|
return typeof e == "function" ? e(t) : e;
|
|
109
106
|
}
|
|
110
107
|
function Va(e, t) {
|
|
108
|
+
return typeof e == "function" ? e(t) : e;
|
|
109
|
+
}
|
|
110
|
+
function Ha(e, t) {
|
|
111
111
|
let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
|
|
112
112
|
if (o) {
|
|
113
113
|
if (r) {
|
|
114
|
-
if (t.queryHash !==
|
|
115
|
-
} else if (!
|
|
114
|
+
if (t.queryHash !== Wa(o, t.options)) return !1;
|
|
115
|
+
} else if (!Ka(t.queryKey, o)) return !1;
|
|
116
116
|
}
|
|
117
117
|
if (n !== "all") {
|
|
118
118
|
let e = t.isActive();
|
|
@@ -120,90 +120,90 @@ function Va(e, t) {
|
|
|
120
120
|
}
|
|
121
121
|
return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function Ua(e, t) {
|
|
124
124
|
let { exact: n, status: r, predicate: i, mutationKey: a } = e;
|
|
125
125
|
if (a) {
|
|
126
126
|
if (!t.options.mutationKey) return !1;
|
|
127
127
|
if (n) {
|
|
128
|
-
if (
|
|
129
|
-
} else if (!
|
|
128
|
+
if (Ga(t.options.mutationKey) !== Ga(a)) return !1;
|
|
129
|
+
} else if (!Ka(t.options.mutationKey, a)) return !1;
|
|
130
130
|
}
|
|
131
131
|
return !(r && t.state.status !== r || i && !i(t));
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
return (t?.queryKeyHashFn ||
|
|
133
|
+
function Wa(e, t) {
|
|
134
|
+
return (t?.queryKeyHashFn || Ga)(e);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
return JSON.stringify(e, (e, t) =>
|
|
136
|
+
function Ga(e) {
|
|
137
|
+
return JSON.stringify(e, (e, t) => Xa(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) =>
|
|
139
|
+
function Ka(e, t) {
|
|
140
|
+
return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => Ka(e[n], t[n])) : !1;
|
|
141
141
|
}
|
|
142
|
-
var
|
|
143
|
-
function
|
|
142
|
+
var qa = Object.prototype.hasOwnProperty;
|
|
143
|
+
function Ja(e, t, n = 0) {
|
|
144
144
|
if (e === t) return e;
|
|
145
145
|
if (n > 500) return t;
|
|
146
|
-
let r =
|
|
147
|
-
if (!r && !(
|
|
146
|
+
let r = Ya(e) && Ya(t);
|
|
147
|
+
if (!r && !(Xa(e) && Xa(t))) return t;
|
|
148
148
|
let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
|
|
149
149
|
for (let l = 0; l < o; l++) {
|
|
150
150
|
let o = r ? l : a[l], u = e[o], d = t[o];
|
|
151
151
|
if (u === d) {
|
|
152
|
-
s[o] = u, (r ? l < i :
|
|
152
|
+
s[o] = u, (r ? l < i : qa.call(e, o)) && c++;
|
|
153
153
|
continue;
|
|
154
154
|
}
|
|
155
155
|
if (u === null || d === null || typeof u != "object" || typeof d != "object") {
|
|
156
156
|
s[o] = d;
|
|
157
157
|
continue;
|
|
158
158
|
}
|
|
159
|
-
let f =
|
|
159
|
+
let f = Ja(u, d, n + 1);
|
|
160
160
|
s[o] = f, f === u && c++;
|
|
161
161
|
}
|
|
162
162
|
return i === o && c === i ? e : s;
|
|
163
163
|
}
|
|
164
|
-
function
|
|
164
|
+
function Ya(e) {
|
|
165
165
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
168
|
-
if (!
|
|
167
|
+
function Xa(e) {
|
|
168
|
+
if (!Za(e)) return !1;
|
|
169
169
|
let t = e.constructor;
|
|
170
170
|
if (t === void 0) return !0;
|
|
171
171
|
let n = t.prototype;
|
|
172
|
-
return !(!
|
|
172
|
+
return !(!Za(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Za(e) {
|
|
175
175
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Qa(e) {
|
|
178
178
|
return new Promise((t) => {
|
|
179
|
-
|
|
179
|
+
Na.setTimeout(t, e);
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function $a(e, t, n) {
|
|
183
183
|
if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
|
|
184
184
|
if (n.structuralSharing !== !1) {
|
|
185
185
|
if (process.env.NODE_ENV !== "production") try {
|
|
186
|
-
return
|
|
186
|
+
return Ja(e, t);
|
|
187
187
|
} catch (e) {
|
|
188
188
|
throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${e}`), e;
|
|
189
189
|
}
|
|
190
|
-
return
|
|
190
|
+
return Ja(e, t);
|
|
191
191
|
}
|
|
192
192
|
return t;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function eo(e, t, n = 0) {
|
|
195
195
|
let r = [...e, t];
|
|
196
196
|
return n && r.length > n ? r.slice(1) : r;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function to(e, t, n = 0) {
|
|
199
199
|
let r = [t, ...e];
|
|
200
200
|
return n && r.length > n ? r.slice(0, -1) : r;
|
|
201
201
|
}
|
|
202
|
-
var
|
|
203
|
-
function
|
|
204
|
-
return process.env.NODE_ENV !== "production" && e.queryFn ===
|
|
202
|
+
var no = /* @__PURE__ */ Symbol();
|
|
203
|
+
function ro(e, t) {
|
|
204
|
+
return process.env.NODE_ENV !== "production" && e.queryFn === no && console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === no ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function io(e, t, n) {
|
|
207
207
|
let r = !1, i;
|
|
208
208
|
return Object.defineProperty(e, "signal", {
|
|
209
209
|
enumerable: !0,
|
|
@@ -212,8 +212,8 @@ function ro(e, t, n) {
|
|
|
212
212
|
}
|
|
213
213
|
//#endregion
|
|
214
214
|
//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
|
|
215
|
-
var
|
|
216
|
-
let e = () =>
|
|
215
|
+
var ao = /* @__PURE__ */ (() => {
|
|
216
|
+
let e = () => Fa;
|
|
217
217
|
return {
|
|
218
218
|
isServer() {
|
|
219
219
|
return e();
|
|
@@ -225,7 +225,7 @@ var io = /* @__PURE__ */ (() => {
|
|
|
225
225
|
})();
|
|
226
226
|
//#endregion
|
|
227
227
|
//#region node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
228
|
-
function
|
|
228
|
+
function oo() {
|
|
229
229
|
let e, t, n = new Promise((n, r) => {
|
|
230
230
|
e = n, t = r;
|
|
231
231
|
});
|
|
@@ -247,13 +247,13 @@ function ao() {
|
|
|
247
247
|
}
|
|
248
248
|
//#endregion
|
|
249
249
|
//#region node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
250
|
-
var
|
|
251
|
-
function
|
|
250
|
+
var so = Pa;
|
|
251
|
+
function co() {
|
|
252
252
|
let e = [], t = 0, n = (e) => {
|
|
253
253
|
e();
|
|
254
254
|
}, r = (e) => {
|
|
255
255
|
e();
|
|
256
|
-
}, i =
|
|
256
|
+
}, i = so, a = (r) => {
|
|
257
257
|
t ? e.push(r) : i(() => {
|
|
258
258
|
n(r);
|
|
259
259
|
});
|
|
@@ -295,7 +295,7 @@ function so() {
|
|
|
295
295
|
}
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
|
-
var Z =
|
|
298
|
+
var Z = co(), lo = new class extends Aa {
|
|
299
299
|
#e = !0;
|
|
300
300
|
#t;
|
|
301
301
|
#n;
|
|
@@ -329,28 +329,28 @@ var Z = so(), co = new class extends ka {
|
|
|
329
329
|
}();
|
|
330
330
|
//#endregion
|
|
331
331
|
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
332
|
-
function
|
|
332
|
+
function uo(e) {
|
|
333
333
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
334
334
|
}
|
|
335
|
-
function
|
|
336
|
-
return (e ?? "online") !== "online" ||
|
|
335
|
+
function fo(e) {
|
|
336
|
+
return (e ?? "online") !== "online" || lo.isOnline();
|
|
337
337
|
}
|
|
338
|
-
var
|
|
338
|
+
var po = class extends Error {
|
|
339
339
|
constructor(e) {
|
|
340
340
|
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
|
341
341
|
}
|
|
342
342
|
};
|
|
343
|
-
function
|
|
344
|
-
let t = !1, n = 0, r, i =
|
|
343
|
+
function mo(e) {
|
|
344
|
+
let t = !1, n = 0, r, i = oo(), a = () => i.status !== "pending", o = (t) => {
|
|
345
345
|
if (!a()) {
|
|
346
|
-
let n = new
|
|
346
|
+
let n = new po(t);
|
|
347
347
|
f(n), e.onCancel?.(n);
|
|
348
348
|
}
|
|
349
349
|
}, s = () => {
|
|
350
350
|
t = !0;
|
|
351
351
|
}, c = () => {
|
|
352
352
|
t = !1;
|
|
353
|
-
}, l = () =>
|
|
353
|
+
}, l = () => ja.isFocused() && (e.networkMode === "always" || lo.isOnline()) && e.canRun(), u = () => fo(e.networkMode) && e.canRun(), d = (e) => {
|
|
354
354
|
a() || (r?.(), i.resolve(e));
|
|
355
355
|
}, f = (e) => {
|
|
356
356
|
a() || (r?.(), i.reject(e));
|
|
@@ -370,12 +370,12 @@ function po(e) {
|
|
|
370
370
|
}
|
|
371
371
|
Promise.resolve(r).then(d).catch((r) => {
|
|
372
372
|
if (a()) return;
|
|
373
|
-
let i = e.retry ?? (
|
|
373
|
+
let i = e.retry ?? (ao.isServer() ? 0 : 3), o = e.retryDelay ?? uo, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
|
|
374
374
|
if (t || !c) {
|
|
375
375
|
f(r);
|
|
376
376
|
return;
|
|
377
377
|
}
|
|
378
|
-
n++, e.onFail?.(n, r),
|
|
378
|
+
n++, e.onFail?.(n, r), Qa(s).then(() => l() ? void 0 : p()).then(() => {
|
|
379
379
|
t ? f(r) : m();
|
|
380
380
|
});
|
|
381
381
|
});
|
|
@@ -393,34 +393,34 @@ function po(e) {
|
|
|
393
393
|
}
|
|
394
394
|
//#endregion
|
|
395
395
|
//#region node_modules/@tanstack/query-core/build/modern/removable.js
|
|
396
|
-
var
|
|
396
|
+
var ho = class {
|
|
397
397
|
#e;
|
|
398
398
|
destroy() {
|
|
399
399
|
this.clearGcTimeout();
|
|
400
400
|
}
|
|
401
401
|
scheduleGc() {
|
|
402
|
-
this.clearGcTimeout(),
|
|
402
|
+
this.clearGcTimeout(), Ra(this.gcTime) && (this.#e = Na.setTimeout(() => {
|
|
403
403
|
this.optionalRemove();
|
|
404
404
|
}, this.gcTime));
|
|
405
405
|
}
|
|
406
406
|
updateGcTime(e) {
|
|
407
|
-
this.gcTime = Math.max(this.gcTime || 0, e ?? (
|
|
407
|
+
this.gcTime = Math.max(this.gcTime || 0, e ?? (ao.isServer() ? Infinity : 3e5));
|
|
408
408
|
}
|
|
409
409
|
clearGcTimeout() {
|
|
410
|
-
this.#e !== void 0 && (
|
|
410
|
+
this.#e !== void 0 && (Na.clearTimeout(this.#e), this.#e = void 0);
|
|
411
411
|
}
|
|
412
412
|
};
|
|
413
413
|
//#endregion
|
|
414
414
|
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
|
|
415
|
-
function
|
|
415
|
+
function go(e) {
|
|
416
416
|
return { onFetch: (t, n) => {
|
|
417
417
|
let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
|
|
418
418
|
pages: [],
|
|
419
419
|
pageParams: []
|
|
420
420
|
}, c = 0, l = async () => {
|
|
421
421
|
let n = !1, l = (e) => {
|
|
422
|
-
|
|
423
|
-
}, u =
|
|
422
|
+
io(e, () => t.signal, () => n = !0);
|
|
423
|
+
}, u = ro(t.options, t.fetchOptions), d = async (e, r, i) => {
|
|
424
424
|
if (n) return Promise.reject(t.signal.reason);
|
|
425
425
|
if (r == null && e.pages.length) return Promise.resolve(e);
|
|
426
426
|
let a = (() => {
|
|
@@ -432,14 +432,14 @@ function ho(e) {
|
|
|
432
432
|
meta: t.options.meta
|
|
433
433
|
};
|
|
434
434
|
return l(e), e;
|
|
435
|
-
})(), o = await u(a), { maxPages: s } = t.options, c = i ?
|
|
435
|
+
})(), o = await u(a), { maxPages: s } = t.options, c = i ? to : eo;
|
|
436
436
|
return {
|
|
437
437
|
pages: c(e.pages, o, s),
|
|
438
438
|
pageParams: c(e.pageParams, r, s)
|
|
439
439
|
};
|
|
440
440
|
};
|
|
441
441
|
if (i && a.length) {
|
|
442
|
-
let e = i === "backward", t = e ?
|
|
442
|
+
let e = i === "backward", t = e ? vo : _o, n = {
|
|
443
443
|
pages: a,
|
|
444
444
|
pageParams: o
|
|
445
445
|
};
|
|
@@ -447,7 +447,7 @@ function ho(e) {
|
|
|
447
447
|
} else {
|
|
448
448
|
let t = e ?? a.length;
|
|
449
449
|
do {
|
|
450
|
-
let e = c === 0 ? o[0] ?? r.initialPageParam :
|
|
450
|
+
let e = c === 0 ? o[0] ?? r.initialPageParam : _o(r, s);
|
|
451
451
|
if (c > 0 && e == null) break;
|
|
452
452
|
s = await d(s, e), c++;
|
|
453
453
|
} while (c < t);
|
|
@@ -462,16 +462,16 @@ function ho(e) {
|
|
|
462
462
|
}, n) : l;
|
|
463
463
|
} };
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function _o(e, { pages: t, pageParams: n }) {
|
|
466
466
|
let r = t.length - 1;
|
|
467
467
|
return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function vo(e, { pages: t, pageParams: n }) {
|
|
470
470
|
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
|
|
471
471
|
}
|
|
472
472
|
//#endregion
|
|
473
473
|
//#region node_modules/@tanstack/query-core/build/modern/query.js
|
|
474
|
-
var
|
|
474
|
+
var yo = class extends ho {
|
|
475
475
|
#e;
|
|
476
476
|
#t;
|
|
477
477
|
#n;
|
|
@@ -481,7 +481,7 @@ var vo = class extends mo {
|
|
|
481
481
|
#o;
|
|
482
482
|
#s;
|
|
483
483
|
constructor(e) {
|
|
484
|
-
super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t =
|
|
484
|
+
super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = So(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
|
|
485
485
|
}
|
|
486
486
|
get meta() {
|
|
487
487
|
return this.options.meta;
|
|
@@ -497,15 +497,15 @@ var vo = class extends mo {
|
|
|
497
497
|
...this.#o,
|
|
498
498
|
...e
|
|
499
499
|
}, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
500
|
-
let e =
|
|
501
|
-
e.data !== void 0 && (this.setState(
|
|
500
|
+
let e = So(this.options);
|
|
501
|
+
e.data !== void 0 && (this.setState(xo(e.data, e.dataUpdatedAt)), this.#t = e);
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
504
|
optionalRemove() {
|
|
505
505
|
!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
|
|
506
506
|
}
|
|
507
507
|
setData(e, t) {
|
|
508
|
-
let n =
|
|
508
|
+
let n = $a(this.state.data, e, this.options);
|
|
509
509
|
return this.#l({
|
|
510
510
|
data: n,
|
|
511
511
|
type: "success",
|
|
@@ -521,7 +521,7 @@ var vo = class extends mo {
|
|
|
521
521
|
}
|
|
522
522
|
cancel(e) {
|
|
523
523
|
let t = this.#a?.promise;
|
|
524
|
-
return this.#a?.cancel(e), t ? t.then(
|
|
524
|
+
return this.#a?.cancel(e), t ? t.then(Ia).catch(Ia) : Promise.resolve();
|
|
525
525
|
}
|
|
526
526
|
destroy() {
|
|
527
527
|
super.destroy(), this.cancel({ silent: !0 });
|
|
@@ -533,22 +533,22 @@ var vo = class extends mo {
|
|
|
533
533
|
this.destroy(), this.setState(this.resetState);
|
|
534
534
|
}
|
|
535
535
|
isActive() {
|
|
536
|
-
return this.observers.some((e) =>
|
|
536
|
+
return this.observers.some((e) => Va(e.options.enabled, this) !== !1);
|
|
537
537
|
}
|
|
538
538
|
isDisabled() {
|
|
539
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
539
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === no || !this.isFetched();
|
|
540
540
|
}
|
|
541
541
|
isFetched() {
|
|
542
542
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
543
543
|
}
|
|
544
544
|
isStatic() {
|
|
545
|
-
return this.getObserversCount() > 0 && this.observers.some((e) =>
|
|
545
|
+
return this.getObserversCount() > 0 && this.observers.some((e) => Ba(e.options.staleTime, this) === "static");
|
|
546
546
|
}
|
|
547
547
|
isStale() {
|
|
548
548
|
return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
|
|
549
549
|
}
|
|
550
550
|
isStaleByTime(e = 0) {
|
|
551
|
-
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !
|
|
551
|
+
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !za(this.state.dataUpdatedAt, e);
|
|
552
552
|
}
|
|
553
553
|
onFocus() {
|
|
554
554
|
this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
|
|
@@ -595,7 +595,7 @@ var vo = class extends mo {
|
|
|
595
595
|
get: () => (this.#s = !0, n.signal)
|
|
596
596
|
});
|
|
597
597
|
}, i = () => {
|
|
598
|
-
let e =
|
|
598
|
+
let e = ro(this.options, t), n = (() => {
|
|
599
599
|
let e = {
|
|
600
600
|
client: this.#i,
|
|
601
601
|
queryKey: this.queryKey,
|
|
@@ -615,14 +615,14 @@ var vo = class extends mo {
|
|
|
615
615
|
};
|
|
616
616
|
return r(e), e;
|
|
617
617
|
})();
|
|
618
|
-
(this.#e === "infinite" ?
|
|
618
|
+
(this.#e === "infinite" ? go(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#l({
|
|
619
619
|
type: "fetch",
|
|
620
620
|
meta: a.fetchOptions?.meta
|
|
621
|
-
}), this.#a =
|
|
621
|
+
}), this.#a = mo({
|
|
622
622
|
initialPromise: t?.initialPromise,
|
|
623
623
|
fn: a.fetchFn,
|
|
624
624
|
onCancel: (e) => {
|
|
625
|
-
e instanceof
|
|
625
|
+
e instanceof po && e.revert && this.setState({
|
|
626
626
|
...this.#n,
|
|
627
627
|
fetchStatus: "idle"
|
|
628
628
|
}), n.abort();
|
|
@@ -650,7 +650,7 @@ var vo = class extends mo {
|
|
|
650
650
|
if (e === void 0) throw process.env.NODE_ENV !== "production" && console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`), Error(`${this.queryHash} data is undefined`);
|
|
651
651
|
return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;
|
|
652
652
|
} catch (e) {
|
|
653
|
-
if (e instanceof
|
|
653
|
+
if (e instanceof po) {
|
|
654
654
|
if (e.silent) return this.#a.promise;
|
|
655
655
|
if (e.revert) {
|
|
656
656
|
if (this.state.data === void 0) throw e;
|
|
@@ -683,13 +683,13 @@ var vo = class extends mo {
|
|
|
683
683
|
};
|
|
684
684
|
case "fetch": return {
|
|
685
685
|
...t,
|
|
686
|
-
...
|
|
686
|
+
...bo(t.data, this.options),
|
|
687
687
|
fetchMeta: e.meta ?? null
|
|
688
688
|
};
|
|
689
689
|
case "success":
|
|
690
690
|
let n = {
|
|
691
691
|
...t,
|
|
692
|
-
...
|
|
692
|
+
...xo(e.data, e.dataUpdatedAt),
|
|
693
693
|
dataUpdateCount: t.dataUpdateCount + 1,
|
|
694
694
|
...!e.manual && {
|
|
695
695
|
fetchStatus: "idle",
|
|
@@ -732,18 +732,18 @@ var vo = class extends mo {
|
|
|
732
732
|
});
|
|
733
733
|
}
|
|
734
734
|
};
|
|
735
|
-
function
|
|
735
|
+
function bo(e, t) {
|
|
736
736
|
return {
|
|
737
737
|
fetchFailureCount: 0,
|
|
738
738
|
fetchFailureReason: null,
|
|
739
|
-
fetchStatus:
|
|
739
|
+
fetchStatus: fo(t.networkMode) ? "fetching" : "paused",
|
|
740
740
|
...e === void 0 && {
|
|
741
741
|
error: null,
|
|
742
742
|
status: "pending"
|
|
743
743
|
}
|
|
744
744
|
};
|
|
745
745
|
}
|
|
746
|
-
function
|
|
746
|
+
function xo(e, t) {
|
|
747
747
|
return {
|
|
748
748
|
data: e,
|
|
749
749
|
dataUpdatedAt: t ?? Date.now(),
|
|
@@ -752,7 +752,7 @@ function bo(e, t) {
|
|
|
752
752
|
status: "success"
|
|
753
753
|
};
|
|
754
754
|
}
|
|
755
|
-
function
|
|
755
|
+
function So(e) {
|
|
756
756
|
let t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
|
|
757
757
|
return {
|
|
758
758
|
data: t,
|
|
@@ -771,13 +771,13 @@ function xo(e) {
|
|
|
771
771
|
}
|
|
772
772
|
//#endregion
|
|
773
773
|
//#region node_modules/@tanstack/query-core/build/modern/mutation.js
|
|
774
|
-
var
|
|
774
|
+
var Co = class extends ho {
|
|
775
775
|
#e;
|
|
776
776
|
#t;
|
|
777
777
|
#n;
|
|
778
778
|
#r;
|
|
779
779
|
constructor(e) {
|
|
780
|
-
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state ||
|
|
780
|
+
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || wo(), this.setOptions(e.options), this.scheduleGc();
|
|
781
781
|
}
|
|
782
782
|
setOptions(e) {
|
|
783
783
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -813,7 +813,7 @@ var So = class extends mo {
|
|
|
813
813
|
meta: this.options.meta,
|
|
814
814
|
mutationKey: this.options.mutationKey
|
|
815
815
|
};
|
|
816
|
-
this.#r =
|
|
816
|
+
this.#r = mo({
|
|
817
817
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
|
|
818
818
|
onFail: (e, t) => {
|
|
819
819
|
this.#i({
|
|
@@ -941,7 +941,7 @@ var So = class extends mo {
|
|
|
941
941
|
});
|
|
942
942
|
}
|
|
943
943
|
};
|
|
944
|
-
function
|
|
944
|
+
function wo() {
|
|
945
945
|
return {
|
|
946
946
|
context: void 0,
|
|
947
947
|
data: void 0,
|
|
@@ -956,7 +956,7 @@ function Co() {
|
|
|
956
956
|
}
|
|
957
957
|
//#endregion
|
|
958
958
|
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
|
|
959
|
-
var
|
|
959
|
+
var To = class extends Aa {
|
|
960
960
|
constructor(e = {}) {
|
|
961
961
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
962
962
|
}
|
|
@@ -964,7 +964,7 @@ var wo = class extends ka {
|
|
|
964
964
|
#t;
|
|
965
965
|
#n;
|
|
966
966
|
build(e, t, n) {
|
|
967
|
-
let r = new
|
|
967
|
+
let r = new Co({
|
|
968
968
|
client: e,
|
|
969
969
|
mutationCache: this,
|
|
970
970
|
mutationId: ++this.#n,
|
|
@@ -975,7 +975,7 @@ var wo = class extends ka {
|
|
|
975
975
|
}
|
|
976
976
|
add(e) {
|
|
977
977
|
this.#e.add(e);
|
|
978
|
-
let t =
|
|
978
|
+
let t = Eo(e);
|
|
979
979
|
if (typeof t == "string") {
|
|
980
980
|
let n = this.#t.get(t);
|
|
981
981
|
n ? n.push(e) : this.#t.set(t, [e]);
|
|
@@ -987,7 +987,7 @@ var wo = class extends ka {
|
|
|
987
987
|
}
|
|
988
988
|
remove(e) {
|
|
989
989
|
if (this.#e.delete(e)) {
|
|
990
|
-
let t =
|
|
990
|
+
let t = Eo(e);
|
|
991
991
|
if (typeof t == "string") {
|
|
992
992
|
let n = this.#t.get(t);
|
|
993
993
|
if (n) {
|
|
@@ -1004,7 +1004,7 @@ var wo = class extends ka {
|
|
|
1004
1004
|
});
|
|
1005
1005
|
}
|
|
1006
1006
|
canRun(e) {
|
|
1007
|
-
let t =
|
|
1007
|
+
let t = Eo(e);
|
|
1008
1008
|
if (typeof t == "string") {
|
|
1009
1009
|
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
|
|
1010
1010
|
return !n || n === e;
|
|
@@ -1012,7 +1012,7 @@ var wo = class extends ka {
|
|
|
1012
1012
|
return !0;
|
|
1013
1013
|
}
|
|
1014
1014
|
runNext(e) {
|
|
1015
|
-
let t =
|
|
1015
|
+
let t = Eo(e);
|
|
1016
1016
|
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
1017
1017
|
}
|
|
1018
1018
|
clear() {
|
|
@@ -1033,10 +1033,10 @@ var wo = class extends ka {
|
|
|
1033
1033
|
exact: !0,
|
|
1034
1034
|
...e
|
|
1035
1035
|
};
|
|
1036
|
-
return this.getAll().find((e) =>
|
|
1036
|
+
return this.getAll().find((e) => Ua(t, e));
|
|
1037
1037
|
}
|
|
1038
1038
|
findAll(e = {}) {
|
|
1039
|
-
return this.getAll().filter((t) =>
|
|
1039
|
+
return this.getAll().filter((t) => Ua(e, t));
|
|
1040
1040
|
}
|
|
1041
1041
|
notify(e) {
|
|
1042
1042
|
Z.batch(() => {
|
|
@@ -1047,22 +1047,22 @@ var wo = class extends ka {
|
|
|
1047
1047
|
}
|
|
1048
1048
|
resumePausedMutations() {
|
|
1049
1049
|
let e = this.getAll().filter((e) => e.state.isPaused);
|
|
1050
|
-
return Z.batch(() => Promise.all(e.map((e) => e.continue().catch(
|
|
1050
|
+
return Z.batch(() => Promise.all(e.map((e) => e.continue().catch(Ia))));
|
|
1051
1051
|
}
|
|
1052
1052
|
};
|
|
1053
|
-
function
|
|
1053
|
+
function Eo(e) {
|
|
1054
1054
|
return e.options.scope?.id;
|
|
1055
1055
|
}
|
|
1056
1056
|
//#endregion
|
|
1057
1057
|
//#region node_modules/@tanstack/query-core/build/modern/queryCache.js
|
|
1058
|
-
var
|
|
1058
|
+
var Do = class extends Aa {
|
|
1059
1059
|
constructor(e = {}) {
|
|
1060
1060
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
1061
1061
|
}
|
|
1062
1062
|
#e;
|
|
1063
1063
|
build(e, t, n) {
|
|
1064
|
-
let r = t.queryKey, i = t.queryHash ??
|
|
1065
|
-
return a || (a = new
|
|
1064
|
+
let r = t.queryKey, i = t.queryHash ?? Wa(r, t), a = this.get(i);
|
|
1065
|
+
return a || (a = new yo({
|
|
1066
1066
|
client: e,
|
|
1067
1067
|
queryKey: r,
|
|
1068
1068
|
queryHash: i,
|
|
@@ -1102,11 +1102,11 @@ var Eo = class extends ka {
|
|
|
1102
1102
|
exact: !0,
|
|
1103
1103
|
...e
|
|
1104
1104
|
};
|
|
1105
|
-
return this.getAll().find((e) =>
|
|
1105
|
+
return this.getAll().find((e) => Ha(t, e));
|
|
1106
1106
|
}
|
|
1107
1107
|
findAll(e = {}) {
|
|
1108
1108
|
let t = this.getAll();
|
|
1109
|
-
return Object.keys(e).length > 0 ? t.filter((t) =>
|
|
1109
|
+
return Object.keys(e).length > 0 ? t.filter((t) => Ha(e, t)) : t;
|
|
1110
1110
|
}
|
|
1111
1111
|
notify(e) {
|
|
1112
1112
|
Z.batch(() => {
|
|
@@ -1129,7 +1129,7 @@ var Eo = class extends ka {
|
|
|
1129
1129
|
});
|
|
1130
1130
|
});
|
|
1131
1131
|
}
|
|
1132
|
-
},
|
|
1132
|
+
}, Oo = class {
|
|
1133
1133
|
#e;
|
|
1134
1134
|
#t;
|
|
1135
1135
|
#n;
|
|
@@ -1139,12 +1139,12 @@ var Eo = class extends ka {
|
|
|
1139
1139
|
#o;
|
|
1140
1140
|
#s;
|
|
1141
1141
|
constructor(e = {}) {
|
|
1142
|
-
this.#e = e.queryCache || new
|
|
1142
|
+
this.#e = e.queryCache || new Do(), this.#t = e.mutationCache || new To(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
|
|
1143
1143
|
}
|
|
1144
1144
|
mount() {
|
|
1145
|
-
this.#a++, this.#a === 1 && (this.#o =
|
|
1145
|
+
this.#a++, this.#a === 1 && (this.#o = ja.subscribe(async (e) => {
|
|
1146
1146
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
1147
|
-
}), this.#s =
|
|
1147
|
+
}), this.#s = lo.subscribe(async (e) => {
|
|
1148
1148
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
1149
1149
|
}));
|
|
1150
1150
|
}
|
|
@@ -1169,13 +1169,13 @@ var Eo = class extends ka {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
ensureQueryData(e) {
|
|
1171
1171
|
let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
|
|
1172
|
-
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(
|
|
1172
|
+
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(Ba(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
|
|
1173
1173
|
}
|
|
1174
1174
|
getQueriesData(e) {
|
|
1175
1175
|
return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
|
|
1176
1176
|
}
|
|
1177
1177
|
setQueryData(e, t, n) {
|
|
1178
|
-
let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a =
|
|
1178
|
+
let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = La(t, i);
|
|
1179
1179
|
if (a !== void 0) return this.#e.build(this, r).setData(a, {
|
|
1180
1180
|
...n,
|
|
1181
1181
|
manual: !0
|
|
@@ -1210,7 +1210,7 @@ var Eo = class extends ka {
|
|
|
1210
1210
|
revert: !0,
|
|
1211
1211
|
...t
|
|
1212
1212
|
}, r = Z.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
|
|
1213
|
-
return Promise.all(r).then(
|
|
1213
|
+
return Promise.all(r).then(Ia).catch(Ia);
|
|
1214
1214
|
}
|
|
1215
1215
|
invalidateQueries(e, t = {}) {
|
|
1216
1216
|
return Z.batch(() => (this.#e.findAll(e).forEach((e) => {
|
|
@@ -1226,30 +1226,30 @@ var Eo = class extends ka {
|
|
|
1226
1226
|
cancelRefetch: t.cancelRefetch ?? !0
|
|
1227
1227
|
}, r = Z.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
|
|
1228
1228
|
let t = e.fetch(void 0, n);
|
|
1229
|
-
return n.throwOnError || (t = t.catch(
|
|
1229
|
+
return n.throwOnError || (t = t.catch(Ia)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
|
|
1230
1230
|
}));
|
|
1231
|
-
return Promise.all(r).then(
|
|
1231
|
+
return Promise.all(r).then(Ia);
|
|
1232
1232
|
}
|
|
1233
1233
|
fetchQuery(e) {
|
|
1234
1234
|
let t = this.defaultQueryOptions(e);
|
|
1235
1235
|
t.retry === void 0 && (t.retry = !1);
|
|
1236
1236
|
let n = this.#e.build(this, t);
|
|
1237
|
-
return n.isStaleByTime(
|
|
1237
|
+
return n.isStaleByTime(Ba(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
1238
1238
|
}
|
|
1239
1239
|
prefetchQuery(e) {
|
|
1240
|
-
return this.fetchQuery(e).then(
|
|
1240
|
+
return this.fetchQuery(e).then(Ia).catch(Ia);
|
|
1241
1241
|
}
|
|
1242
1242
|
fetchInfiniteQuery(e) {
|
|
1243
1243
|
return e._type = "infinite", this.fetchQuery(e);
|
|
1244
1244
|
}
|
|
1245
1245
|
prefetchInfiniteQuery(e) {
|
|
1246
|
-
return this.fetchInfiniteQuery(e).then(
|
|
1246
|
+
return this.fetchInfiniteQuery(e).then(Ia).catch(Ia);
|
|
1247
1247
|
}
|
|
1248
1248
|
ensureInfiniteQueryData(e) {
|
|
1249
1249
|
return e._type = "infinite", this.ensureQueryData(e);
|
|
1250
1250
|
}
|
|
1251
1251
|
resumePausedMutations() {
|
|
1252
|
-
return
|
|
1252
|
+
return lo.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
1253
1253
|
}
|
|
1254
1254
|
getQueryCache() {
|
|
1255
1255
|
return this.#e;
|
|
@@ -1264,7 +1264,7 @@ var Eo = class extends ka {
|
|
|
1264
1264
|
this.#n = e;
|
|
1265
1265
|
}
|
|
1266
1266
|
setQueryDefaults(e, t) {
|
|
1267
|
-
this.#r.set(
|
|
1267
|
+
this.#r.set(Ga(e), {
|
|
1268
1268
|
queryKey: e,
|
|
1269
1269
|
defaultOptions: t
|
|
1270
1270
|
});
|
|
@@ -1272,11 +1272,11 @@ var Eo = class extends ka {
|
|
|
1272
1272
|
getQueryDefaults(e) {
|
|
1273
1273
|
let t = [...this.#r.values()], n = {};
|
|
1274
1274
|
return t.forEach((t) => {
|
|
1275
|
-
|
|
1275
|
+
Ka(e, t.queryKey) && Object.assign(n, t.defaultOptions);
|
|
1276
1276
|
}), n;
|
|
1277
1277
|
}
|
|
1278
1278
|
setMutationDefaults(e, t) {
|
|
1279
|
-
this.#i.set(
|
|
1279
|
+
this.#i.set(Ga(e), {
|
|
1280
1280
|
mutationKey: e,
|
|
1281
1281
|
defaultOptions: t
|
|
1282
1282
|
});
|
|
@@ -1284,7 +1284,7 @@ var Eo = class extends ka {
|
|
|
1284
1284
|
getMutationDefaults(e) {
|
|
1285
1285
|
let t = [...this.#i.values()], n = {};
|
|
1286
1286
|
return t.forEach((t) => {
|
|
1287
|
-
|
|
1287
|
+
Ka(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
|
|
1288
1288
|
}), n;
|
|
1289
1289
|
}
|
|
1290
1290
|
defaultQueryOptions(e) {
|
|
@@ -1295,7 +1295,7 @@ var Eo = class extends ka {
|
|
|
1295
1295
|
...e,
|
|
1296
1296
|
_defaulted: !0
|
|
1297
1297
|
};
|
|
1298
|
-
return t.queryHash ||=
|
|
1298
|
+
return t.queryHash ||= Wa(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === no && (t.enabled = !1), t;
|
|
1299
1299
|
}
|
|
1300
1300
|
defaultMutationOptions(e) {
|
|
1301
1301
|
return e?._defaulted ? e : {
|
|
@@ -1308,22 +1308,22 @@ var Eo = class extends ka {
|
|
|
1308
1308
|
clear() {
|
|
1309
1309
|
this.#e.clear(), this.#t.clear();
|
|
1310
1310
|
}
|
|
1311
|
-
},
|
|
1312
|
-
Vue: () =>
|
|
1311
|
+
}, ko = /* @__PURE__ */ e({
|
|
1312
|
+
Vue: () => sa,
|
|
1313
1313
|
Vue2: () => void 0,
|
|
1314
|
-
del: () =>
|
|
1315
|
-
install: () =>
|
|
1314
|
+
del: () => No,
|
|
1315
|
+
install: () => jo,
|
|
1316
1316
|
isVue2: () => !1,
|
|
1317
1317
|
isVue3: () => !0,
|
|
1318
|
-
set: () =>
|
|
1318
|
+
set: () => Mo
|
|
1319
1319
|
});
|
|
1320
|
-
import * as
|
|
1321
|
-
t(
|
|
1322
|
-
function
|
|
1323
|
-
function
|
|
1320
|
+
import * as Ao from "vue";
|
|
1321
|
+
t(ko, Ao);
|
|
1322
|
+
function jo() {}
|
|
1323
|
+
function Mo(e, t, n) {
|
|
1324
1324
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
1325
1325
|
}
|
|
1326
|
-
function
|
|
1326
|
+
function No(e, t) {
|
|
1327
1327
|
if (Array.isArray(e)) {
|
|
1328
1328
|
e.splice(t, 1);
|
|
1329
1329
|
return;
|
|
@@ -1332,64 +1332,64 @@ function Mo(e, t) {
|
|
|
1332
1332
|
}
|
|
1333
1333
|
//#endregion
|
|
1334
1334
|
//#region node_modules/@tanstack/vue-query/build/modern/utils.js
|
|
1335
|
-
var
|
|
1336
|
-
function
|
|
1337
|
-
return `${
|
|
1335
|
+
var Po = "VUE_QUERY_CLIENT";
|
|
1336
|
+
function Fo(e) {
|
|
1337
|
+
return `${Po}${e ? `:${e}` : ""}`;
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1339
|
+
function Io(e, t, n = "", r = 0) {
|
|
1340
1340
|
if (t) {
|
|
1341
1341
|
let i = t(e, n, r);
|
|
1342
|
-
if (i === void 0 && (0,
|
|
1342
|
+
if (i === void 0 && (0, ko.isRef)(e) || i !== void 0) return i;
|
|
1343
1343
|
}
|
|
1344
|
-
if (Array.isArray(e)) return e.map((e, n) =>
|
|
1345
|
-
if (typeof e == "object" &&
|
|
1346
|
-
let n = Object.entries(e).map(([e, n]) => [e,
|
|
1344
|
+
if (Array.isArray(e)) return e.map((e, n) => Io(e, t, String(n), r + 1));
|
|
1345
|
+
if (typeof e == "object" && Ro(e)) {
|
|
1346
|
+
let n = Object.entries(e).map(([e, n]) => [e, Io(n, t, e, r + 1)]);
|
|
1347
1347
|
return Object.fromEntries(n);
|
|
1348
1348
|
}
|
|
1349
1349
|
return e;
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1352
|
-
return
|
|
1351
|
+
function Lo(e, t) {
|
|
1352
|
+
return Io(e, t);
|
|
1353
1353
|
}
|
|
1354
1354
|
function Q(e, t = !1) {
|
|
1355
|
-
return
|
|
1355
|
+
return Lo(e, (e, n, r) => {
|
|
1356
1356
|
if (r === 1 && n === "queryKey") return Q(e, !0);
|
|
1357
|
-
if (t &&
|
|
1358
|
-
if ((0,
|
|
1357
|
+
if (t && zo(e)) return Q(e(), t);
|
|
1358
|
+
if ((0, ko.isRef)(e)) return Q((0, ko.unref)(e), t);
|
|
1359
1359
|
});
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1361
|
+
function Ro(e) {
|
|
1362
1362
|
if (Object.prototype.toString.call(e) !== "[object Object]") return !1;
|
|
1363
1363
|
let t = Object.getPrototypeOf(e);
|
|
1364
1364
|
return t === null || t === Object.prototype;
|
|
1365
1365
|
}
|
|
1366
|
-
function
|
|
1366
|
+
function zo(e) {
|
|
1367
1367
|
return typeof e == "function";
|
|
1368
1368
|
}
|
|
1369
1369
|
//#endregion
|
|
1370
1370
|
//#region node_modules/@tanstack/vue-query/build/modern/queryCache.js
|
|
1371
|
-
var
|
|
1371
|
+
var Bo = class extends Do {
|
|
1372
1372
|
find(e) {
|
|
1373
1373
|
return super.find(Q(e));
|
|
1374
1374
|
}
|
|
1375
1375
|
findAll(e = {}) {
|
|
1376
1376
|
return super.findAll(Q(e));
|
|
1377
1377
|
}
|
|
1378
|
-
},
|
|
1378
|
+
}, Vo = class extends To {
|
|
1379
1379
|
find(e) {
|
|
1380
1380
|
return super.find(Q(e));
|
|
1381
1381
|
}
|
|
1382
1382
|
findAll(e = {}) {
|
|
1383
1383
|
return super.findAll(Q(e));
|
|
1384
1384
|
}
|
|
1385
|
-
},
|
|
1385
|
+
}, Ho = class extends Oo {
|
|
1386
1386
|
constructor(e = {}) {
|
|
1387
1387
|
let t = {
|
|
1388
1388
|
defaultOptions: e.defaultOptions,
|
|
1389
|
-
queryCache: e.queryCache || new
|
|
1390
|
-
mutationCache: e.mutationCache || new
|
|
1389
|
+
queryCache: e.queryCache || new Bo(),
|
|
1390
|
+
mutationCache: e.mutationCache || new Vo()
|
|
1391
1391
|
};
|
|
1392
|
-
super(t), this.isRestoring = (0,
|
|
1392
|
+
super(t), this.isRestoring = (0, ko.ref)(!1);
|
|
1393
1393
|
}
|
|
1394
1394
|
isFetching(e = {}) {
|
|
1395
1395
|
return super.isFetching(Q(e));
|
|
@@ -1434,7 +1434,7 @@ var zo = class extends Eo {
|
|
|
1434
1434
|
...n,
|
|
1435
1435
|
type: n.refetchType ?? n.type ?? "active"
|
|
1436
1436
|
};
|
|
1437
|
-
return (0,
|
|
1437
|
+
return (0, ko.nextTick)().then(() => super.refetchQueries(i, r));
|
|
1438
1438
|
}
|
|
1439
1439
|
refetchQueries(e = {}, t = {}) {
|
|
1440
1440
|
return super.refetchQueries(Q(e), Q(t));
|
|
@@ -1469,22 +1469,22 @@ var zo = class extends Eo {
|
|
|
1469
1469
|
};
|
|
1470
1470
|
//#endregion
|
|
1471
1471
|
//#region node_modules/@vue/devtools-api/lib/esm/env.js
|
|
1472
|
-
function Ho() {
|
|
1473
|
-
return Uo().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
1474
|
-
}
|
|
1475
1472
|
function Uo() {
|
|
1476
|
-
return
|
|
1473
|
+
return Wo().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
1477
1474
|
}
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
return qo === void 0 && (typeof window < "u" && window.performance ? (qo = !0, Jo = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (qo = !0, Jo = globalThis.perf_hooks.performance) : qo = !1), qo;
|
|
1475
|
+
function Wo() {
|
|
1476
|
+
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
1481
1477
|
}
|
|
1478
|
+
var Go = typeof Proxy == "function", Ko = "devtools-plugin:setup", qo = "plugin:settings:set", Jo, Yo;
|
|
1482
1479
|
function Xo() {
|
|
1483
|
-
return
|
|
1480
|
+
return Jo === void 0 && (typeof window < "u" && window.performance ? (Jo = !0, Yo = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (Jo = !0, Yo = globalThis.perf_hooks.performance) : Jo = !1), Jo;
|
|
1481
|
+
}
|
|
1482
|
+
function Zo() {
|
|
1483
|
+
return Xo() ? Yo.now() : Date.now();
|
|
1484
1484
|
}
|
|
1485
1485
|
//#endregion
|
|
1486
1486
|
//#region node_modules/@vue/devtools-api/lib/esm/proxy.js
|
|
1487
|
-
var
|
|
1487
|
+
var Qo = class {
|
|
1488
1488
|
constructor(e, t) {
|
|
1489
1489
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = e, this.hook = t;
|
|
1490
1490
|
let n = {};
|
|
@@ -1505,9 +1505,9 @@ var Zo = class {
|
|
|
1505
1505
|
i = e;
|
|
1506
1506
|
},
|
|
1507
1507
|
now() {
|
|
1508
|
-
return
|
|
1508
|
+
return Zo();
|
|
1509
1509
|
}
|
|
1510
|
-
}, t && t.on(
|
|
1510
|
+
}, t && t.on(qo, (e, t) => {
|
|
1511
1511
|
e === this.plugin.id && this.fallbacks.setSettings(t);
|
|
1512
1512
|
}), this.proxiedOn = new Proxy({}, { get: (e, t) => this.target ? this.target.on[t] : (...e) => {
|
|
1513
1513
|
this.onQueue.push({
|
|
@@ -1534,11 +1534,11 @@ var Zo = class {
|
|
|
1534
1534
|
};
|
|
1535
1535
|
//#endregion
|
|
1536
1536
|
//#region node_modules/@vue/devtools-api/lib/esm/index.js
|
|
1537
|
-
function
|
|
1538
|
-
let n = e, r =
|
|
1539
|
-
if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(
|
|
1537
|
+
function $o(e, t) {
|
|
1538
|
+
let n = e, r = Wo(), i = Uo(), a = Go && n.enableEarlyProxy;
|
|
1539
|
+
if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(Ko, e, t);
|
|
1540
1540
|
else {
|
|
1541
|
-
let e = a ? new
|
|
1541
|
+
let e = a ? new Qo(n, i) : null;
|
|
1542
1542
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
1543
1543
|
pluginDescriptor: n,
|
|
1544
1544
|
setupFn: t,
|
|
@@ -1548,7 +1548,7 @@ function Qo(e, t) {
|
|
|
1548
1548
|
}
|
|
1549
1549
|
//#endregion
|
|
1550
1550
|
//#region node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
|
|
1551
|
-
var
|
|
1551
|
+
var es = {
|
|
1552
1552
|
À: "A",
|
|
1553
1553
|
Á: "A",
|
|
1554
1554
|
Â: "A",
|
|
@@ -1948,9 +1948,9 @@ var $o = {
|
|
|
1948
1948
|
x̧: "x",
|
|
1949
1949
|
Z̧: "Z",
|
|
1950
1950
|
z̧: "z"
|
|
1951
|
-
},
|
|
1952
|
-
function
|
|
1953
|
-
return e.replace(
|
|
1951
|
+
}, ts = Object.keys(es).join("|"), ns = new RegExp(ts, "g");
|
|
1952
|
+
function rs(e) {
|
|
1953
|
+
return e.replace(ns, (e) => es[e]);
|
|
1954
1954
|
}
|
|
1955
1955
|
var $ = {
|
|
1956
1956
|
CASE_SENSITIVE_EQUAL: 7,
|
|
@@ -1962,9 +1962,9 @@ var $ = {
|
|
|
1962
1962
|
MATCHES: 1,
|
|
1963
1963
|
NO_MATCH: 0
|
|
1964
1964
|
};
|
|
1965
|
-
function
|
|
1965
|
+
function is(e, t, n) {
|
|
1966
1966
|
if (n ||= {}, n.threshold = n.threshold ?? $.MATCHES, !n.accessors) {
|
|
1967
|
-
let r =
|
|
1967
|
+
let r = as(e, t, n);
|
|
1968
1968
|
return {
|
|
1969
1969
|
rankedValue: e,
|
|
1970
1970
|
rank: r,
|
|
@@ -1973,7 +1973,7 @@ function rs(e, t, n) {
|
|
|
1973
1973
|
passed: r >= n.threshold
|
|
1974
1974
|
};
|
|
1975
1975
|
}
|
|
1976
|
-
let r =
|
|
1976
|
+
let r = us(e, n.accessors), i = {
|
|
1977
1977
|
rankedValue: e,
|
|
1978
1978
|
rank: $.NO_MATCH,
|
|
1979
1979
|
accessorIndex: -1,
|
|
@@ -1981,15 +1981,15 @@ function rs(e, t, n) {
|
|
|
1981
1981
|
passed: !1
|
|
1982
1982
|
};
|
|
1983
1983
|
for (let e = 0; e < r.length; e++) {
|
|
1984
|
-
let a = r[e], o =
|
|
1984
|
+
let a = r[e], o = as(a.itemValue, t, n), { minRanking: s, maxRanking: c, threshold: l = n.threshold } = a.attributes;
|
|
1985
1985
|
o < s && o >= $.MATCHES ? o = s : o > c && (o = c), o = Math.min(o, c), o >= l && o > i.rank && (i.rank = o, i.passed = !0, i.accessorIndex = e, i.accessorThreshold = l, i.rankedValue = a.itemValue);
|
|
1986
1986
|
}
|
|
1987
1987
|
return i;
|
|
1988
1988
|
}
|
|
1989
|
-
function
|
|
1990
|
-
return e =
|
|
1989
|
+
function as(e, t, n) {
|
|
1990
|
+
return e = cs(e, n), t = cs(t, n), t.length > e.length ? $.NO_MATCH : e === t ? $.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? $.EQUAL : e.startsWith(t) ? $.STARTS_WITH : e.includes(` ${t}`) ? $.WORD_STARTS_WITH : e.includes(t) ? $.CONTAINS : t.length === 1 ? $.NO_MATCH : os(e).includes(t) ? $.ACRONYM : ss(e, t));
|
|
1991
1991
|
}
|
|
1992
|
-
function
|
|
1992
|
+
function os(e) {
|
|
1993
1993
|
let t = "";
|
|
1994
1994
|
return e.split(" ").forEach((e) => {
|
|
1995
1995
|
e.split("-").forEach((e) => {
|
|
@@ -1997,7 +1997,7 @@ function as(e) {
|
|
|
1997
1997
|
});
|
|
1998
1998
|
}), t;
|
|
1999
1999
|
}
|
|
2000
|
-
function
|
|
2000
|
+
function ss(e, t) {
|
|
2001
2001
|
let n = 0, r = 0;
|
|
2002
2002
|
function i(e, t, r) {
|
|
2003
2003
|
for (let i = r, a = t.length; i < a; i++) if (t[i] === e) return n += 1, i + 1;
|
|
@@ -2016,20 +2016,20 @@ function os(e, t) {
|
|
|
2016
2016
|
}
|
|
2017
2017
|
return a(r - o);
|
|
2018
2018
|
}
|
|
2019
|
-
function
|
|
2019
|
+
function cs(e, t) {
|
|
2020
2020
|
let { keepDiacritics: n } = t;
|
|
2021
|
-
return e = `${e}`, n || (e =
|
|
2021
|
+
return e = `${e}`, n || (e = rs(e)), e;
|
|
2022
2022
|
}
|
|
2023
|
-
function
|
|
2023
|
+
function ls(e, t) {
|
|
2024
2024
|
let n = t;
|
|
2025
2025
|
typeof t == "object" && (n = t.accessor);
|
|
2026
2026
|
let r = n(e);
|
|
2027
2027
|
return r == null ? [] : Array.isArray(r) ? r : [String(r)];
|
|
2028
2028
|
}
|
|
2029
|
-
function
|
|
2029
|
+
function us(e, t) {
|
|
2030
2030
|
let n = [];
|
|
2031
2031
|
for (let r = 0, i = t.length; r < i; r++) {
|
|
2032
|
-
let i = t[r], a =
|
|
2032
|
+
let i = t[r], a = fs(i), o = ls(e, i);
|
|
2033
2033
|
for (let e = 0, t = o.length; e < t; e++) n.push({
|
|
2034
2034
|
itemValue: o[e],
|
|
2035
2035
|
attributes: a
|
|
@@ -2037,41 +2037,41 @@ function ls(e, t) {
|
|
|
2037
2037
|
}
|
|
2038
2038
|
return n;
|
|
2039
2039
|
}
|
|
2040
|
-
var
|
|
2040
|
+
var ds = {
|
|
2041
2041
|
maxRanking: Infinity,
|
|
2042
2042
|
minRanking: -Infinity
|
|
2043
2043
|
};
|
|
2044
|
-
function
|
|
2045
|
-
return typeof e == "function" ?
|
|
2046
|
-
...
|
|
2044
|
+
function fs(e) {
|
|
2045
|
+
return typeof e == "function" ? ds : {
|
|
2046
|
+
...ds,
|
|
2047
2047
|
...e
|
|
2048
2048
|
};
|
|
2049
2049
|
}
|
|
2050
2050
|
//#endregion
|
|
2051
2051
|
//#region node_modules/@tanstack/vue-query/build/modern/devtools/utils.js
|
|
2052
|
-
function fs(e) {
|
|
2053
|
-
return e.state.fetchStatus === "fetching" ? 0 : e.state.fetchStatus === "paused" ? 4 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3;
|
|
2054
|
-
}
|
|
2055
2052
|
function ps(e) {
|
|
2056
|
-
|
|
2057
|
-
return t === 0 ? "fetching" : t === 4 ? "paused" : t === 2 ? "stale" : t === 3 ? "inactive" : "fresh";
|
|
2053
|
+
return e.state.fetchStatus === "fetching" ? 0 : e.state.fetchStatus === "paused" ? 4 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3;
|
|
2058
2054
|
}
|
|
2059
2055
|
function ms(e) {
|
|
2060
|
-
|
|
2056
|
+
let t = ps(e);
|
|
2057
|
+
return t === 0 ? "fetching" : t === 4 ? "paused" : t === 2 ? "stale" : t === 3 ? "inactive" : "fresh";
|
|
2061
2058
|
}
|
|
2062
2059
|
function hs(e) {
|
|
2063
|
-
|
|
2060
|
+
return ps(e) === 2 ? 0 : 16777215;
|
|
2061
|
+
}
|
|
2062
|
+
function gs(e) {
|
|
2063
|
+
let t = ps(e);
|
|
2064
2064
|
return t === 0 ? 27647 : t === 4 ? 9193963 : t === 2 ? 16757248 : t === 3 ? 4148832 : 33575;
|
|
2065
2065
|
}
|
|
2066
|
-
var
|
|
2067
|
-
"Status > Last Updated": (e, t) =>
|
|
2068
|
-
"Query Hash":
|
|
2069
|
-
"Last Updated":
|
|
2070
|
-
},
|
|
2071
|
-
function
|
|
2072
|
-
|
|
2073
|
-
id:
|
|
2074
|
-
label:
|
|
2066
|
+
var _s = (e, t) => e.queryHash.localeCompare(t.queryHash), vs = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, ys = {
|
|
2067
|
+
"Status > Last Updated": (e, t) => ps(e) === ps(t) ? vs(e, t) : ps(e) > ps(t) ? 1 : -1,
|
|
2068
|
+
"Query Hash": _s,
|
|
2069
|
+
"Last Updated": vs
|
|
2070
|
+
}, bs = "vue-query", xs = "Vue Query";
|
|
2071
|
+
function Ss(e, t) {
|
|
2072
|
+
$o({
|
|
2073
|
+
id: bs,
|
|
2074
|
+
label: xs,
|
|
2075
2075
|
packageName: "vue-query",
|
|
2076
2076
|
homepage: "https://tanstack.com/query/latest",
|
|
2077
2077
|
logo: "https://raw.githubusercontent.com/TanStack/query/main/packages/vue-query/media/vue-query.svg",
|
|
@@ -2093,11 +2093,11 @@ function xs(e, t) {
|
|
|
2093
2093
|
sortFn: {
|
|
2094
2094
|
type: "choice",
|
|
2095
2095
|
label: "Sort Function",
|
|
2096
|
-
options: Object.keys(
|
|
2096
|
+
options: Object.keys(ys).map((e) => ({
|
|
2097
2097
|
label: e,
|
|
2098
2098
|
value: e
|
|
2099
2099
|
})),
|
|
2100
|
-
defaultValue: Object.keys(
|
|
2100
|
+
defaultValue: Object.keys(ys)[0]
|
|
2101
2101
|
},
|
|
2102
2102
|
onlineMode: {
|
|
2103
2103
|
type: "choice",
|
|
@@ -2115,11 +2115,11 @@ function xs(e, t) {
|
|
|
2115
2115
|
}
|
|
2116
2116
|
}, (e) => {
|
|
2117
2117
|
let n = e.getSettings();
|
|
2118
|
-
|
|
2118
|
+
lo.setOnline(!!n.onlineMode.valueOf());
|
|
2119
2119
|
let r = t.getQueryCache();
|
|
2120
2120
|
e.addInspector({
|
|
2121
|
-
id:
|
|
2122
|
-
label:
|
|
2121
|
+
id: bs,
|
|
2122
|
+
label: xs,
|
|
2123
2123
|
icon: "api",
|
|
2124
2124
|
nodeActions: [
|
|
2125
2125
|
{
|
|
@@ -2178,16 +2178,16 @@ function xs(e, t) {
|
|
|
2178
2178
|
}
|
|
2179
2179
|
]
|
|
2180
2180
|
}), e.addTimelineLayer({
|
|
2181
|
-
id:
|
|
2182
|
-
label:
|
|
2181
|
+
id: bs,
|
|
2182
|
+
label: xs,
|
|
2183
2183
|
color: 16767308
|
|
2184
2184
|
}), r.subscribe((t) => {
|
|
2185
|
-
e.sendInspectorTree(
|
|
2185
|
+
e.sendInspectorTree(bs), e.sendInspectorState(bs), [
|
|
2186
2186
|
"added",
|
|
2187
2187
|
"removed",
|
|
2188
2188
|
"updated"
|
|
2189
2189
|
].includes(t.type) && e.addTimelineEvent({
|
|
2190
|
-
layerId:
|
|
2190
|
+
layerId: bs,
|
|
2191
2191
|
event: {
|
|
2192
2192
|
title: t.type,
|
|
2193
2193
|
subtitle: t.query.queryHash,
|
|
@@ -2199,25 +2199,25 @@ function xs(e, t) {
|
|
|
2199
2199
|
}
|
|
2200
2200
|
});
|
|
2201
2201
|
}), e.on.setPluginSettings((e) => {
|
|
2202
|
-
e.key === "onlineMode" &&
|
|
2202
|
+
e.key === "onlineMode" && lo.setOnline(!!e.newValue);
|
|
2203
2203
|
}), e.on.getInspectorTree((t) => {
|
|
2204
|
-
if (t.inspectorId ===
|
|
2204
|
+
if (t.inspectorId === bs) {
|
|
2205
2205
|
let n = r.getAll(), i = e.getSettings();
|
|
2206
|
-
t.rootNodes = (t.filter ? n.filter((e) =>
|
|
2207
|
-
let t =
|
|
2206
|
+
t.rootNodes = (t.filter ? n.filter((e) => is(e.queryHash, t.filter).passed) : [...n]).sort((e, t) => ys[i.sortFn](e, t) * i.baseSort).map((e) => {
|
|
2207
|
+
let t = ms(e);
|
|
2208
2208
|
return {
|
|
2209
2209
|
id: e.queryHash,
|
|
2210
2210
|
label: e.queryHash,
|
|
2211
2211
|
tags: [{
|
|
2212
2212
|
label: `${t} [${e.getObserversCount()}]`,
|
|
2213
|
-
textColor:
|
|
2214
|
-
backgroundColor:
|
|
2213
|
+
textColor: hs(e),
|
|
2214
|
+
backgroundColor: gs(e)
|
|
2215
2215
|
}]
|
|
2216
2216
|
};
|
|
2217
2217
|
});
|
|
2218
2218
|
}
|
|
2219
2219
|
}), e.on.getInspectorState((e) => {
|
|
2220
|
-
if (e.inspectorId ===
|
|
2220
|
+
if (e.inspectorId === bs) {
|
|
2221
2221
|
let t = r.get(e.nodeId);
|
|
2222
2222
|
if (!t) return;
|
|
2223
2223
|
e.state = {
|
|
@@ -2228,7 +2228,7 @@ function xs(e, t) {
|
|
|
2228
2228
|
},
|
|
2229
2229
|
{
|
|
2230
2230
|
key: "Query status",
|
|
2231
|
-
value:
|
|
2231
|
+
value: ms(t)
|
|
2232
2232
|
},
|
|
2233
2233
|
{
|
|
2234
2234
|
key: "Observers",
|
|
@@ -2254,9 +2254,9 @@ function xs(e, t) {
|
|
|
2254
2254
|
}
|
|
2255
2255
|
//#endregion
|
|
2256
2256
|
//#region node_modules/@tanstack/vue-query/build/modern/vueQueryPlugin.js
|
|
2257
|
-
var
|
|
2258
|
-
let n =
|
|
2259
|
-
r = "queryClient" in t && t.queryClient ? t.queryClient : new
|
|
2257
|
+
var Cs = { install: (e, t = {}) => {
|
|
2258
|
+
let n = Fo(t.queryClientKey), r;
|
|
2259
|
+
r = "queryClient" in t && t.queryClient ? t.queryClient : new Ho("queryClientConfig" in t ? t.queryClientConfig : void 0), ao.isServer() || r.mount();
|
|
2260
2260
|
let i = () => {};
|
|
2261
2261
|
if (t.clientPersister) {
|
|
2262
2262
|
r.isRestoring && (r.isRestoring.value = !0);
|
|
@@ -2275,17 +2275,17 @@ var Ss = { install: (e, t = {}) => {
|
|
|
2275
2275
|
a(), t();
|
|
2276
2276
|
};
|
|
2277
2277
|
}
|
|
2278
|
-
e.provide(n, r), process.env.NODE_ENV === "development" && t.enableDevtoolsV6Plugin &&
|
|
2278
|
+
e.provide(n, r), process.env.NODE_ENV === "development" && t.enableDevtoolsV6Plugin && Ss(e, r);
|
|
2279
2279
|
} };
|
|
2280
2280
|
//#endregion
|
|
2281
2281
|
//#region src/web-core/query.ts
|
|
2282
|
-
function
|
|
2283
|
-
return new
|
|
2282
|
+
function ws() {
|
|
2283
|
+
return new Ho({ defaultOptions: { queries: {
|
|
2284
2284
|
staleTime: 3e4,
|
|
2285
2285
|
refetchOnWindowFocus: !1
|
|
2286
2286
|
} } });
|
|
2287
2287
|
}
|
|
2288
|
-
var
|
|
2288
|
+
var Ts = {
|
|
2289
2289
|
session: { current: ["session", "current"] },
|
|
2290
2290
|
menu: { mine: ["menu", "mine"] },
|
|
2291
2291
|
staticModule: {
|
|
@@ -2311,7 +2311,7 @@ var ws = {
|
|
|
2311
2311
|
};
|
|
2312
2312
|
//#endregion
|
|
2313
2313
|
//#region src/web-core/constructionPlanClient.ts
|
|
2314
|
-
function
|
|
2314
|
+
function Es(e) {
|
|
2315
2315
|
let t = "/platform.application-construction-plans", n = (e) => `${t}/${encodeURIComponent(e)}`;
|
|
2316
2316
|
return {
|
|
2317
2317
|
designContract: () => e.request({ path: `${t}/design-contract` }),
|
|
@@ -2346,7 +2346,7 @@ function Ts(e) {
|
|
|
2346
2346
|
}
|
|
2347
2347
|
//#endregion
|
|
2348
2348
|
//#region src/web-core/assistantConversationClient.ts
|
|
2349
|
-
function
|
|
2349
|
+
function Ds(e) {
|
|
2350
2350
|
let t = "/platform.assistant-conversations";
|
|
2351
2351
|
return {
|
|
2352
2352
|
lookupOperation: (t) => Ye(e, t),
|
|
@@ -2373,101 +2373,209 @@ function Es(e) {
|
|
|
2373
2373
|
};
|
|
2374
2374
|
}
|
|
2375
2375
|
//#endregion
|
|
2376
|
+
//#region src/web-core/businessNotificationSession.ts
|
|
2377
|
+
function Os(e) {
|
|
2378
|
+
let t = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set(), i = e.now ?? Date.now, a = !1, o = () => !a && e.isCurrent();
|
|
2379
|
+
function s(e) {
|
|
2380
|
+
if (!e.id) throw Error("Notification identity is required");
|
|
2381
|
+
let n = [...t.values()].filter((t) => t.definition.owns(e));
|
|
2382
|
+
if (n.length > 1) throw Error("Notification belongs to multiple recovery sources");
|
|
2383
|
+
return n[0]?.definition.id;
|
|
2384
|
+
}
|
|
2385
|
+
function c() {
|
|
2386
|
+
return o() ? [...n.values()].map((e) => e.notification).filter((e) => !r.has(e.id) && !_i(e, i())).map((e) => structuredClone(e)) : [];
|
|
2387
|
+
}
|
|
2388
|
+
function l() {
|
|
2389
|
+
o() && e.onChange(c());
|
|
2390
|
+
}
|
|
2391
|
+
function u(a) {
|
|
2392
|
+
if (!o()) return Promise.resolve();
|
|
2393
|
+
if (a.flight) return a.flight.promise;
|
|
2394
|
+
let c = {
|
|
2395
|
+
controller: new AbortController(),
|
|
2396
|
+
updates: /* @__PURE__ */ new Map(),
|
|
2397
|
+
promise: Promise.resolve()
|
|
2398
|
+
};
|
|
2399
|
+
a.flight = c;
|
|
2400
|
+
let u = a.definition.id, d = () => o() && t.get(u) === a && !c.controller.signal.aborted;
|
|
2401
|
+
return c.promise = Promise.resolve().then(async () => {
|
|
2402
|
+
try {
|
|
2403
|
+
if (!d()) return;
|
|
2404
|
+
let e = await a.definition.load(c.controller.signal);
|
|
2405
|
+
if (!d()) return;
|
|
2406
|
+
let t = /* @__PURE__ */ new Map();
|
|
2407
|
+
for (let r of e) {
|
|
2408
|
+
let e = structuredClone(r);
|
|
2409
|
+
if (s(e) !== u || t.has(e.id)) throw Error("Invalid notification recovery snapshot");
|
|
2410
|
+
let i = n.get(e.id);
|
|
2411
|
+
if (i && i.sourceId !== u) throw Error("Notification identity collides with another source");
|
|
2412
|
+
t.set(e.id, e);
|
|
2413
|
+
}
|
|
2414
|
+
for (let [e, n] of c.updates) t.delete(e), t.set(e, n);
|
|
2415
|
+
let o = new Map([...n].filter(([, e]) => e.sourceId !== u));
|
|
2416
|
+
for (let [e, n] of t) !r.has(e) && !_i(n, i()) && o.set(e, {
|
|
2417
|
+
sourceId: u,
|
|
2418
|
+
notification: n
|
|
2419
|
+
});
|
|
2420
|
+
n = o, l();
|
|
2421
|
+
} catch (t) {
|
|
2422
|
+
d() && e.onRecoveryError?.(u, t);
|
|
2423
|
+
} finally {
|
|
2424
|
+
a.flight === c && (a.flight = void 0);
|
|
2425
|
+
}
|
|
2426
|
+
}), c.promise;
|
|
2427
|
+
}
|
|
2428
|
+
return {
|
|
2429
|
+
register(e) {
|
|
2430
|
+
let r = e.id;
|
|
2431
|
+
if (!o()) throw Error("Notification session is no longer current");
|
|
2432
|
+
if (!r || t.has(r)) throw Error("Duplicate or empty notification source");
|
|
2433
|
+
let i = { definition: { ...e } };
|
|
2434
|
+
t.set(r, i);
|
|
2435
|
+
try {
|
|
2436
|
+
n = new Map([...n].map(([e, t]) => [e, {
|
|
2437
|
+
...t,
|
|
2438
|
+
sourceId: s(t.notification)
|
|
2439
|
+
}]));
|
|
2440
|
+
} catch (e) {
|
|
2441
|
+
throw t.delete(r), e;
|
|
2442
|
+
}
|
|
2443
|
+
return () => {
|
|
2444
|
+
t.get(r) === i && (t.delete(r), i.flight?.controller.abort(), n = new Map([...n].filter(([, e]) => e.sourceId !== r)), l());
|
|
2445
|
+
};
|
|
2446
|
+
},
|
|
2447
|
+
receive(e) {
|
|
2448
|
+
if (!o()) return;
|
|
2449
|
+
let a = structuredClone(e), c = s(a), u = n.get(a.id);
|
|
2450
|
+
if (u && u.sourceId !== c) throw Error("Notification identity collides with another source");
|
|
2451
|
+
c && t.get(c)?.flight?.updates.set(a.id, a), n.delete(a.id), !r.has(a.id) && !_i(a, i()) && n.set(a.id, {
|
|
2452
|
+
sourceId: c,
|
|
2453
|
+
notification: a
|
|
2454
|
+
});
|
|
2455
|
+
for (let [e, t] of n) _i(t.notification, i()) && n.delete(e);
|
|
2456
|
+
l();
|
|
2457
|
+
},
|
|
2458
|
+
dismiss(e) {
|
|
2459
|
+
o() && (r.add(e), n.delete(e), l());
|
|
2460
|
+
},
|
|
2461
|
+
async recover(e) {
|
|
2462
|
+
if (o()) {
|
|
2463
|
+
if (e !== void 0) {
|
|
2464
|
+
let n = t.get(e);
|
|
2465
|
+
if (!n) throw Error("Unknown notification source");
|
|
2466
|
+
await u(n);
|
|
2467
|
+
} else await Promise.all([...t.values()].map(u));
|
|
2468
|
+
}
|
|
2469
|
+
},
|
|
2470
|
+
snapshot: c,
|
|
2471
|
+
cancelRecovery() {
|
|
2472
|
+
for (let e of t.values()) e.flight?.controller.abort(), e.flight = void 0;
|
|
2473
|
+
},
|
|
2474
|
+
dispose() {
|
|
2475
|
+
if (a) return;
|
|
2476
|
+
let i = e.isCurrent();
|
|
2477
|
+
a = !0;
|
|
2478
|
+
for (let e of t.values()) e.flight?.controller.abort();
|
|
2479
|
+
t.clear(), n.clear(), r.clear(), i && e.onChange([]);
|
|
2480
|
+
}
|
|
2481
|
+
};
|
|
2482
|
+
}
|
|
2483
|
+
//#endregion
|
|
2376
2484
|
//#region src/platform-admin-runtime/platformAdminRoutes.ts
|
|
2377
|
-
var
|
|
2485
|
+
var ks = ua(() => import("./workspaceViews-D2Uh4KAq.js").then((e) => e.n)), As = ua(() => import("./BusinessActivityLogView-Bbe-GbNG.js")), js = ua(() => import("./RequestErrorLogView-9GIz2mkQ.js")), Ms = ua(() => import("./LoginAuditLogView-DOwkqtVB.js")), Ns = ua(() => import("./RuntimeLogView-C5i19Z-u.js")), Ps = [
|
|
2378
2486
|
{
|
|
2379
2487
|
route: "/platform/code-rule",
|
|
2380
2488
|
moduleAlias: "platform.code_rule",
|
|
2381
|
-
component:
|
|
2489
|
+
component: ua(() => import("./CodeConfigurationView-DdPfBjoC.js").then((e) => e.n)),
|
|
2382
2490
|
layout: "workspace"
|
|
2383
2491
|
},
|
|
2384
2492
|
{
|
|
2385
2493
|
route: "/platform/translations",
|
|
2386
2494
|
moduleAlias: "platform.localization",
|
|
2387
|
-
component:
|
|
2495
|
+
component: ua(() => import("./ConfigurationTranslationView-B3Cr9Wes.js")),
|
|
2388
2496
|
layout: "workspace"
|
|
2389
2497
|
},
|
|
2390
2498
|
{
|
|
2391
2499
|
route: "/workflow/admin",
|
|
2392
2500
|
moduleAlias: "platform.workflow_admin",
|
|
2393
|
-
component:
|
|
2501
|
+
component: ua(() => import("./WorkflowAdministrationView-CnoTudpI.js")),
|
|
2394
2502
|
layout: "workspace"
|
|
2395
2503
|
},
|
|
2396
2504
|
{
|
|
2397
2505
|
route: "/workflow/workbench",
|
|
2398
2506
|
moduleAlias: "iam.workflow_workbench",
|
|
2399
|
-
component:
|
|
2507
|
+
component: ua(() => import("./WorkflowWorkbenchView-DbWqspEB.js")),
|
|
2400
2508
|
layout: "workspace"
|
|
2401
2509
|
},
|
|
2402
2510
|
{
|
|
2403
2511
|
route: "/platform/logs/runtime",
|
|
2404
2512
|
moduleAlias: "platform.runtime_log",
|
|
2405
|
-
component:
|
|
2513
|
+
component: Ns,
|
|
2406
2514
|
layout: "workspace"
|
|
2407
2515
|
},
|
|
2408
2516
|
{
|
|
2409
2517
|
route: "/platform/logs/activity",
|
|
2410
2518
|
moduleAlias: "platform.business_activity_log",
|
|
2411
|
-
component:
|
|
2519
|
+
component: As,
|
|
2412
2520
|
layout: "workspace"
|
|
2413
2521
|
},
|
|
2414
2522
|
{
|
|
2415
2523
|
route: "/platform/logs/errors",
|
|
2416
2524
|
moduleAlias: "platform.request_error_log",
|
|
2417
|
-
component:
|
|
2525
|
+
component: js,
|
|
2418
2526
|
layout: "workspace"
|
|
2419
2527
|
},
|
|
2420
2528
|
{
|
|
2421
2529
|
route: "/iam/logs/login",
|
|
2422
2530
|
moduleAlias: "iam.login_audit_log",
|
|
2423
|
-
component:
|
|
2531
|
+
component: Ms,
|
|
2424
2532
|
layout: "workspace"
|
|
2425
2533
|
},
|
|
2426
2534
|
{
|
|
2427
2535
|
route: "/iam/role/authorization",
|
|
2428
2536
|
moduleAlias: "iam.role",
|
|
2429
|
-
component:
|
|
2537
|
+
component: ks,
|
|
2430
2538
|
layout: "workspace",
|
|
2431
2539
|
menuEntry: !1
|
|
2432
2540
|
}
|
|
2433
|
-
],
|
|
2434
|
-
function
|
|
2435
|
-
if (e) return
|
|
2541
|
+
], Fs = Array.from(/* @__PURE__ */ new Set(["/_platform/workspace", ...Ps.map((e) => e.route)])), Is = Object.fromEntries(Ps.filter((e) => e.menuEntry !== !1).map((e) => [e.moduleAlias, e.route])), Ls = Object.fromEntries(Ps.map((e) => [e.route, e.layout]));
|
|
2542
|
+
function Rs(e) {
|
|
2543
|
+
if (e) return Ps.find((t) => Bs(t, e.target));
|
|
2436
2544
|
}
|
|
2437
|
-
function
|
|
2438
|
-
return e?.pageType === "business-route" && !!
|
|
2545
|
+
function zs(e) {
|
|
2546
|
+
return e?.pageType === "business-route" && !!Rs(e);
|
|
2439
2547
|
}
|
|
2440
|
-
function
|
|
2441
|
-
return t.route ?
|
|
2548
|
+
function Bs(e, t) {
|
|
2549
|
+
return t.route ? Vs(e.route, t.route) && (t.moduleAlias === void 0 || t.moduleAlias === e.moduleAlias) : t.moduleAlias === e.moduleAlias;
|
|
2442
2550
|
}
|
|
2443
|
-
function
|
|
2551
|
+
function Vs(e, t) {
|
|
2444
2552
|
let n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean);
|
|
2445
2553
|
return n.length === r.length && n.every((e, t) => e.startsWith(":") || e === r[t]);
|
|
2446
2554
|
}
|
|
2447
2555
|
//#endregion
|
|
2448
2556
|
//#region src/app/pageRouteContext.ts
|
|
2449
|
-
var
|
|
2450
|
-
function
|
|
2451
|
-
|
|
2557
|
+
var Hs = Symbol("page-route"), Us = Symbol("page-descriptor");
|
|
2558
|
+
function Ws(e) {
|
|
2559
|
+
xa(Hs, L(e));
|
|
2452
2560
|
}
|
|
2453
|
-
function
|
|
2454
|
-
let e =
|
|
2561
|
+
function Gs() {
|
|
2562
|
+
let e = fa(Hs);
|
|
2455
2563
|
if (e) return e;
|
|
2456
2564
|
let t = Ie();
|
|
2457
2565
|
return L(() => t);
|
|
2458
2566
|
}
|
|
2459
|
-
function
|
|
2460
|
-
return
|
|
2567
|
+
function Ks() {
|
|
2568
|
+
return fa(Us) ?? L(() => void 0);
|
|
2461
2569
|
}
|
|
2462
2570
|
//#endregion
|
|
2463
2571
|
//#region src/platform-admin-runtime/PlatformAdminOutlet.vue
|
|
2464
|
-
var
|
|
2572
|
+
var qs = /* @__PURE__ */ W({
|
|
2465
2573
|
name: "PlatformAdminRouteOutlet",
|
|
2466
2574
|
__name: "PlatformAdminOutlet",
|
|
2467
2575
|
props: { descriptor: {} },
|
|
2468
2576
|
setup(e) {
|
|
2469
|
-
let t = e, n = L(() =>
|
|
2470
|
-
|
|
2577
|
+
let t = e, n = L(() => Rs(t.descriptor)), r = L(() => t.descriptor.target.moduleAlias ?? n.value?.moduleAlias), i = L(() => t.descriptor.target.query?.workspacePresentation);
|
|
2578
|
+
Si(L(() => t.descriptor.layout ?? n.value?.layout)), Ws(() => {
|
|
2471
2579
|
let e = n.value?.route ?? t.descriptor.target.route ?? "", r = t.descriptor.target.route ?? e;
|
|
2472
2580
|
return {
|
|
2473
2581
|
path: r,
|
|
@@ -2483,36 +2591,36 @@ var Gs = /* @__PURE__ */ W({
|
|
|
2483
2591
|
e.startsWith(":") && i[t] && (n[e.slice(1)] = i[t]);
|
|
2484
2592
|
}), n;
|
|
2485
2593
|
}
|
|
2486
|
-
return (t, a) => n.value && r.value ? (G(), R(J(
|
|
2594
|
+
return (t, a) => n.value && r.value ? (G(), R(J(vi), {
|
|
2487
2595
|
key: 0,
|
|
2488
2596
|
"module-alias": r.value
|
|
2489
2597
|
}, {
|
|
2490
2598
|
default: X(() => [i.value === "drawer" || i.value === "tab" ? (G(), R(J(se), {
|
|
2491
2599
|
key: 0,
|
|
2492
2600
|
descriptor: e.descriptor
|
|
2493
|
-
}, null, 8, ["descriptor"])) : (G(), R(
|
|
2601
|
+
}, null, 8, ["descriptor"])) : (G(), R(Ta(n.value.component), { key: 1 }))]),
|
|
2494
2602
|
_: 1
|
|
2495
2603
|
}, 8, ["module-alias"])) : z("v-if", !0);
|
|
2496
2604
|
}
|
|
2497
|
-
}),
|
|
2498
|
-
function
|
|
2499
|
-
|
|
2605
|
+
}), Js;
|
|
2606
|
+
function Ys(e) {
|
|
2607
|
+
Js = e;
|
|
2500
2608
|
}
|
|
2501
|
-
function
|
|
2502
|
-
return
|
|
2609
|
+
function Xs(e, t) {
|
|
2610
|
+
return Js?.(e, t) ?? !1;
|
|
2503
2611
|
}
|
|
2504
2612
|
//#endregion
|
|
2505
2613
|
//#region src/platform-admin-runtime/backendHttp.ts
|
|
2506
|
-
function
|
|
2507
|
-
let t = () =>
|
|
2614
|
+
function Zs(e = {}) {
|
|
2615
|
+
let t = () => zr(ir({
|
|
2508
2616
|
baseUrl: import.meta.env.VITE_MUYUN_API_BASE_URL,
|
|
2509
|
-
token: e.withAuth === !1 ? void 0 :
|
|
2510
|
-
credentials:
|
|
2511
|
-
onAuthenticationRequired: e.withAuth === !1 ? void 0 : (e, t) =>
|
|
2512
|
-
}), e.language ??
|
|
2617
|
+
token: e.withAuth === !1 ? void 0 : ee(import.meta.env.VITE_MUYUN_AUTH_TOKEN),
|
|
2618
|
+
credentials: Qs(import.meta.env.VITE_MUYUN_CREDENTIALS),
|
|
2619
|
+
onAuthenticationRequired: e.withAuth === !1 ? void 0 : (e, t) => Xs(e, t)
|
|
2620
|
+
}), e.language ?? Cr);
|
|
2513
2621
|
return {
|
|
2514
2622
|
async request(e) {
|
|
2515
|
-
let n = await t().request(e), r =
|
|
2623
|
+
let n = await t().request(e), r = yn(n);
|
|
2516
2624
|
return r.changeSetId && x.dispatch({
|
|
2517
2625
|
changeSetId: r.changeSetId,
|
|
2518
2626
|
changes: r.changes
|
|
@@ -2523,16 +2631,16 @@ function Ys(e = {}) {
|
|
|
2523
2631
|
}
|
|
2524
2632
|
};
|
|
2525
2633
|
}
|
|
2526
|
-
function
|
|
2634
|
+
function Qs(e) {
|
|
2527
2635
|
return e === "include" || e === "omit" || e === "same-origin" ? e : void 0;
|
|
2528
2636
|
}
|
|
2529
2637
|
//#endregion
|
|
2530
2638
|
//#region src/platform-admin-runtime/moduleOpenApi.ts
|
|
2531
|
-
var
|
|
2532
|
-
function
|
|
2533
|
-
return
|
|
2639
|
+
var $s = /^\/openapi\/([a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)+)\/?$/;
|
|
2640
|
+
function ec(e) {
|
|
2641
|
+
return $s.exec(e)?.[1];
|
|
2534
2642
|
}
|
|
2535
|
-
function
|
|
2643
|
+
function tc(e, t) {
|
|
2536
2644
|
return {
|
|
2537
2645
|
pageType: "platform-route",
|
|
2538
2646
|
openMode: "workbench-route",
|
|
@@ -2549,14 +2657,14 @@ function $s(e, t) {
|
|
|
2549
2657
|
}
|
|
2550
2658
|
};
|
|
2551
2659
|
}
|
|
2552
|
-
function
|
|
2553
|
-
let t = "platform.screen.OpenApiCatalogView.module-api-directory", n =
|
|
2660
|
+
function nc(e = Cr) {
|
|
2661
|
+
let t = "platform.screen.OpenApiCatalogView.module-api-directory", n = Qe(t);
|
|
2554
2662
|
return {
|
|
2555
2663
|
pageType: "platform-route",
|
|
2556
2664
|
openMode: "workbench-route",
|
|
2557
2665
|
hostType: "platform-route-host",
|
|
2558
2666
|
title: "开放模块 API",
|
|
2559
|
-
titleText:
|
|
2667
|
+
titleText: Nt(t, n.originalText, e),
|
|
2560
2668
|
target: { route: "/openapi" },
|
|
2561
2669
|
tabPolicy: {
|
|
2562
2670
|
identity: "by-target",
|
|
@@ -2565,20 +2673,20 @@ function ec(e = Qe) {
|
|
|
2565
2673
|
}
|
|
2566
2674
|
};
|
|
2567
2675
|
}
|
|
2568
|
-
function
|
|
2676
|
+
function rc(e) {
|
|
2569
2677
|
if (e?.pageType !== "platform-route" || !("route" in e.target)) return !1;
|
|
2570
|
-
let t =
|
|
2678
|
+
let t = ec(e.target.route ?? "");
|
|
2571
2679
|
return t !== void 0 && e.target.moduleAlias === t;
|
|
2572
2680
|
}
|
|
2573
|
-
function
|
|
2681
|
+
function ic(e) {
|
|
2574
2682
|
return e === "/openapi" || e === "/openapi/";
|
|
2575
2683
|
}
|
|
2576
2684
|
//#endregion
|
|
2577
2685
|
//#region src/app/workbenchStartup.ts
|
|
2578
|
-
function
|
|
2686
|
+
function ac(e, t, n, r = {}) {
|
|
2579
2687
|
let i = k(t, n, r), a = e.find((e) => e.key === i.key);
|
|
2580
2688
|
if (a) {
|
|
2581
|
-
let o = a.pageDescriptor ?
|
|
2689
|
+
let o = a.pageDescriptor ? Oc(t, n, a.pageDescriptor, r, a.instanceKey) : i;
|
|
2582
2690
|
return {
|
|
2583
2691
|
tabs: e.map((e) => e.key === i.key ? o : e),
|
|
2584
2692
|
activeTabKey: i.key
|
|
@@ -2589,8 +2697,8 @@ function rc(e, t, n, r = {}) {
|
|
|
2589
2697
|
activeTabKey: i.key
|
|
2590
2698
|
};
|
|
2591
2699
|
}
|
|
2592
|
-
function
|
|
2593
|
-
let r =
|
|
2700
|
+
function oc(e, t, n = {}) {
|
|
2701
|
+
let r = Tc(we(t), n), i = e.find((e) => e.key === r.key || r.pageDescriptor?.tabPolicy.identity === "by-params" && e.pageDescriptor?.tabPolicy.identity === "by-params" && Ae(e.pageDescriptor) === Ae(r.pageDescriptor));
|
|
2594
2702
|
return i ? {
|
|
2595
2703
|
tabs: e,
|
|
2596
2704
|
activeTabKey: i.key,
|
|
@@ -2601,49 +2709,49 @@ function ic(e, t, n = {}) {
|
|
|
2601
2709
|
created: !0
|
|
2602
2710
|
};
|
|
2603
2711
|
}
|
|
2604
|
-
function
|
|
2712
|
+
function sc(e, t, n = {}) {
|
|
2605
2713
|
return t.menuType === "link" && t.openMode === "window" ? t.externalUrl : Fe(N(t, {
|
|
2606
2714
|
...n,
|
|
2607
2715
|
title: e.title
|
|
2608
2716
|
}), n);
|
|
2609
2717
|
}
|
|
2610
|
-
function
|
|
2718
|
+
function cc(e) {
|
|
2611
2719
|
let t = (e.tabs ?? []).find((t) => t.key === e.activeTabKey);
|
|
2612
2720
|
if (t?.fullPath) return t.fullPath;
|
|
2613
2721
|
let n = t?.pageDescriptor ?? (t?.target ? N(t.target, { title: t.title }) : void 0);
|
|
2614
|
-
return n?.pageType === "platform-route" &&
|
|
2722
|
+
return n?.pageType === "platform-route" && rc(n) && n.target.route ? n.target.route : n ? Fe(n) : void 0;
|
|
2615
2723
|
}
|
|
2616
|
-
function
|
|
2724
|
+
function lc(e, t, r = {}, i = !1, a = Cr) {
|
|
2617
2725
|
if (t === "/" || t === "") return e;
|
|
2618
|
-
let o = t.split(/[?#]/, 1)[0] ?? "", s =
|
|
2726
|
+
let o = t.split(/[?#]/, 1)[0] ?? "", s = ec(o), c = s ? tc(s) : ic(o) ? nc(a) : ce(t, r);
|
|
2619
2727
|
if (!c) return e;
|
|
2620
|
-
let l = c.menuId ?
|
|
2728
|
+
let l = c.menuId ? Fc(e.menus, c.menuId) : void 0, u = l ? n(l) : void 0, d = l && u && pc(u, c) ? {
|
|
2621
2729
|
...c,
|
|
2622
2730
|
title: l.title,
|
|
2623
2731
|
titleText: l.titleText
|
|
2624
|
-
} : c, f =
|
|
2732
|
+
} : c, f = fc(d, r.title, a), p = f ?? d, m = e.tabs ?? [], h = f ? dc(m, f) : void 0, g = f ? uc(f, h) : i ? we(p) : p, _ = l && Nc(l, g, r) ? l : Mc(e.menus, g, r), v = _ === l ? u : _ ? n(_) : void 0, y = f ? Tc(g, r) : _ && v && de(v) ? Oc(_, v, g, r, m.find((e) => e.key === `menu:${_.id}`)?.instanceKey) : Tc(g, r), b = Dc(m, y);
|
|
2625
2733
|
return {
|
|
2626
2734
|
...e,
|
|
2627
2735
|
tabs: b,
|
|
2628
2736
|
activeTabKey: y.key
|
|
2629
2737
|
};
|
|
2630
2738
|
}
|
|
2631
|
-
function
|
|
2739
|
+
function uc(e, t) {
|
|
2632
2740
|
return t?.instanceKey ? we(e, t.instanceKey) : t ? e : we(e);
|
|
2633
2741
|
}
|
|
2634
|
-
function
|
|
2742
|
+
function dc(e, t) {
|
|
2635
2743
|
let n = Ae(t);
|
|
2636
2744
|
return e.find((e) => e.pageDescriptor?.pageType === "business-route" && Ae(e.pageDescriptor) === n);
|
|
2637
2745
|
}
|
|
2638
|
-
function
|
|
2746
|
+
function fc(e, t, n) {
|
|
2639
2747
|
if (e.pageType !== "business-route") return;
|
|
2640
2748
|
let r = Ee(e);
|
|
2641
2749
|
return r ? ue(r.view, r.input, r.presentation, t, n) : void 0;
|
|
2642
2750
|
}
|
|
2643
|
-
function
|
|
2751
|
+
function pc(e, t) {
|
|
2644
2752
|
return t.pageType === "dynamic-module" && e.menuType === "module" && e.moduleAlias === t.target.moduleAlias;
|
|
2645
2753
|
}
|
|
2646
|
-
function
|
|
2754
|
+
function mc(e, t, n) {
|
|
2647
2755
|
let r = e.findIndex((e) => e.key === n);
|
|
2648
2756
|
if (r < 0) return {
|
|
2649
2757
|
tabs: e,
|
|
@@ -2658,7 +2766,7 @@ function fc(e, t, n) {
|
|
|
2658
2766
|
activeTabKey: t
|
|
2659
2767
|
};
|
|
2660
2768
|
}
|
|
2661
|
-
function
|
|
2769
|
+
function hc(e, t, n) {
|
|
2662
2770
|
let r = new Set(n), i = e.findIndex((e) => e.key === t), a = e.filter((e) => !r.has(e.key) || e.closable === !1);
|
|
2663
2771
|
return !t || !r.has(t) ? {
|
|
2664
2772
|
tabs: a,
|
|
@@ -2668,16 +2776,16 @@ function pc(e, t, n) {
|
|
|
2668
2776
|
activeTabKey: (a.find((t) => e.indexOf(t) > i) ?? a.at(-1))?.key
|
|
2669
2777
|
};
|
|
2670
2778
|
}
|
|
2671
|
-
function
|
|
2779
|
+
function gc(e, t, n = !0) {
|
|
2672
2780
|
let r = new Map(e.map((e) => [e.key, e])), i = /* @__PURE__ */ new Set();
|
|
2673
2781
|
return [...t.flatMap((e) => {
|
|
2674
2782
|
if (i.has(e.key)) return [];
|
|
2675
2783
|
i.add(e.key);
|
|
2676
2784
|
let t = r.get(e.key);
|
|
2677
|
-
return t ? [
|
|
2785
|
+
return t ? [_c(t, e)] : n ? [e] : [];
|
|
2678
2786
|
}), ...e.filter((e) => !i.has(e.key))];
|
|
2679
2787
|
}
|
|
2680
|
-
function
|
|
2788
|
+
function _c(e, t) {
|
|
2681
2789
|
let n = e.pageDescriptor, r = t.pageDescriptor;
|
|
2682
2790
|
if (!n || !r || !t.target) return e;
|
|
2683
2791
|
let i = {
|
|
@@ -2688,83 +2796,83 @@ function hc(e, t) {
|
|
|
2688
2796
|
};
|
|
2689
2797
|
return {
|
|
2690
2798
|
...t,
|
|
2691
|
-
...
|
|
2799
|
+
...Tc(i),
|
|
2692
2800
|
target: t.target
|
|
2693
2801
|
};
|
|
2694
2802
|
}
|
|
2695
|
-
function
|
|
2803
|
+
function vc(e, t, n = {}, r = Cr) {
|
|
2696
2804
|
let i = /* @__PURE__ */ new Map();
|
|
2697
|
-
|
|
2805
|
+
Sc(t, i);
|
|
2698
2806
|
let a = /* @__PURE__ */ new Set();
|
|
2699
2807
|
return e.flatMap((e) => {
|
|
2700
|
-
let t = e.pageDescriptor?.menuId ?? e.target?.menuId ??
|
|
2808
|
+
let t = e.pageDescriptor?.menuId ?? e.target?.menuId ?? yc(e.key);
|
|
2701
2809
|
if (t) {
|
|
2702
2810
|
if (a.has(t)) return [];
|
|
2703
2811
|
let e = i.get(t);
|
|
2704
2812
|
return e ? (a.add(t), [k(e.menu, e.target, n)]) : [];
|
|
2705
2813
|
}
|
|
2706
|
-
let o =
|
|
2814
|
+
let o = bc(e, r);
|
|
2707
2815
|
return !o || a.has(o.key) ? [] : (a.add(o.key), [o]);
|
|
2708
2816
|
});
|
|
2709
2817
|
}
|
|
2710
|
-
function
|
|
2818
|
+
function yc(e) {
|
|
2711
2819
|
return e.startsWith("menu:") && e.slice(5) || void 0;
|
|
2712
2820
|
}
|
|
2713
|
-
function
|
|
2821
|
+
function bc(e, t) {
|
|
2714
2822
|
let n = e.pageDescriptor;
|
|
2715
2823
|
if (n?.pageType !== "business-route") return;
|
|
2716
2824
|
let r = Ee(n);
|
|
2717
|
-
if (r && r.presentation === "tab") return
|
|
2825
|
+
if (r && r.presentation === "tab") return Tc(ue(r.view, r.input, "tab", void 0, t));
|
|
2718
2826
|
}
|
|
2719
|
-
function
|
|
2827
|
+
function xc(e, t) {
|
|
2720
2828
|
let n = e.findIndex((e) => e.key === t.key);
|
|
2721
2829
|
return n < 0 ? [...e, t] : e.map((e, r) => r === n ? t : e);
|
|
2722
2830
|
}
|
|
2723
|
-
function
|
|
2831
|
+
function Sc(e, t) {
|
|
2724
2832
|
for (let r of e) {
|
|
2725
2833
|
let e = n(r.record);
|
|
2726
2834
|
e && de(e) && t.set(r.record.id, {
|
|
2727
2835
|
menu: r.record,
|
|
2728
2836
|
target: e
|
|
2729
|
-
}),
|
|
2837
|
+
}), Sc(r.children, t);
|
|
2730
2838
|
}
|
|
2731
2839
|
}
|
|
2732
|
-
function
|
|
2840
|
+
function Cc(e, t) {
|
|
2733
2841
|
let n = new Set(t);
|
|
2734
2842
|
return e.filter((e) => !n.has(e.key));
|
|
2735
2843
|
}
|
|
2736
|
-
function
|
|
2844
|
+
function wc(e, t, n = []) {
|
|
2737
2845
|
if (e.length !== t.length || new Set(t).size !== e.length) return e;
|
|
2738
2846
|
let r = new Map(e.map((e) => [e.key, e]));
|
|
2739
2847
|
if (t.some((e) => !r.has(e))) return e;
|
|
2740
2848
|
let i = t.map((e) => r.get(e)), a = new Set(n);
|
|
2741
2849
|
return [...i.filter((e) => a.has(e.key)), ...i.filter((e) => !a.has(e.key))];
|
|
2742
2850
|
}
|
|
2743
|
-
function
|
|
2851
|
+
function Tc(e, t = {}) {
|
|
2744
2852
|
let n = Fe(e, t);
|
|
2745
2853
|
return {
|
|
2746
|
-
...
|
|
2854
|
+
...Ec(e) ? { instanceKey: Ec(e) } : {},
|
|
2747
2855
|
key: Le(e),
|
|
2748
|
-
title: e.title ??
|
|
2856
|
+
title: e.title ?? jc(e),
|
|
2749
2857
|
fullPath: n,
|
|
2750
2858
|
pageDescriptor: e,
|
|
2751
2859
|
restoreState: { url: n },
|
|
2752
2860
|
closable: !0
|
|
2753
2861
|
};
|
|
2754
2862
|
}
|
|
2755
|
-
function
|
|
2863
|
+
function Ec(e) {
|
|
2756
2864
|
let t = (e.pageType === "platform-route" || e.pageType === "business-route" ? e.target.query ?? e.params : e.params)?.InstanceKey, n = Array.isArray(t) ? t[0] : t;
|
|
2757
2865
|
return typeof n == "string" && n ? n : void 0;
|
|
2758
2866
|
}
|
|
2759
|
-
function
|
|
2867
|
+
function Dc(e, t) {
|
|
2760
2868
|
let n = e.findIndex((e) => e.key === t.key);
|
|
2761
2869
|
return n < 0 ? [...e, t] : e.map((e, r) => r === n ? t : e);
|
|
2762
2870
|
}
|
|
2763
|
-
function
|
|
2871
|
+
function Oc(e, t, n, r, i) {
|
|
2764
2872
|
let a = we(n, i), o = k(e, t, r), s = o.pageDescriptor ?? a, c = a.title === void 0 ? {
|
|
2765
2873
|
title: e.title,
|
|
2766
2874
|
titleText: s.titleText
|
|
2767
|
-
} : { title: a.title }, l =
|
|
2875
|
+
} : { title: a.title }, l = kc(a) && kc(s) || Ac(a) && Ac(s) ? {
|
|
2768
2876
|
...a,
|
|
2769
2877
|
...c,
|
|
2770
2878
|
menuId: e.id,
|
|
@@ -2781,44 +2889,44 @@ function Ec(e, t, n, r, i) {
|
|
|
2781
2889
|
};
|
|
2782
2890
|
return {
|
|
2783
2891
|
...o,
|
|
2784
|
-
...
|
|
2892
|
+
...Tc(l, r),
|
|
2785
2893
|
target: t
|
|
2786
2894
|
};
|
|
2787
2895
|
}
|
|
2788
|
-
function
|
|
2896
|
+
function kc(e) {
|
|
2789
2897
|
return e.pageType === "platform-route" || e.pageType === "business-route";
|
|
2790
2898
|
}
|
|
2791
|
-
function
|
|
2899
|
+
function Ac(e) {
|
|
2792
2900
|
return e.pageType === "remote-url" || e.pageType === "external-link";
|
|
2793
2901
|
}
|
|
2794
|
-
function
|
|
2902
|
+
function jc(e) {
|
|
2795
2903
|
return e.pageType === "dynamic-module" ? e.target.moduleAlias : e.pageType === "platform-route" || e.pageType === "business-route" ? e.target.route ?? e.target.routeName ?? e.target.pageKey ?? "workspace" : e.target.url;
|
|
2796
2904
|
}
|
|
2797
|
-
function
|
|
2905
|
+
function Mc(e, t, n) {
|
|
2798
2906
|
for (let r of e) {
|
|
2799
|
-
if (
|
|
2800
|
-
let e =
|
|
2907
|
+
if (Nc(r.record, t, n)) return r.record;
|
|
2908
|
+
let e = Mc(r.children, t, n);
|
|
2801
2909
|
if (e) return e;
|
|
2802
2910
|
}
|
|
2803
2911
|
}
|
|
2804
|
-
function
|
|
2912
|
+
function Nc(e, t, r) {
|
|
2805
2913
|
let i = n(e), a = i ? N(i, {
|
|
2806
2914
|
...r,
|
|
2807
2915
|
title: e.title
|
|
2808
2916
|
}) : void 0;
|
|
2809
|
-
return a ?
|
|
2917
|
+
return a ? Pc(a, t) : !1;
|
|
2810
2918
|
}
|
|
2811
|
-
function
|
|
2919
|
+
function Pc(e, t) {
|
|
2812
2920
|
return e.pageType !== t.pageType || e.hostType !== t.hostType ? !1 : e.pageType === "dynamic-module" && t.pageType === "dynamic-module" ? e.target.moduleAlias === t.target.moduleAlias && (e.target.pageMode ?? "LIST") === (t.target.pageMode ?? "LIST") && (!t.target.defaultUiConfigId || e.target.defaultUiConfigId === t.target.defaultUiConfigId) && (!t.target.defaultQueryTemplateId || e.target.defaultQueryTemplateId === t.target.defaultQueryTemplateId) : (e.pageType === "platform-route" || e.pageType === "business-route") && (t.pageType === "platform-route" || t.pageType === "business-route") ? e.target.route === t.target.route && e.target.routeName === t.target.routeName && e.target.pageKey === t.target.pageKey : (e.pageType === "remote-url" || e.pageType === "external-link") && (t.pageType === "remote-url" || t.pageType === "external-link") && e.target.url === t.target.url;
|
|
2813
2921
|
}
|
|
2814
|
-
function
|
|
2922
|
+
function Fc(e, t) {
|
|
2815
2923
|
for (let n of e) {
|
|
2816
2924
|
if (n.record.id === t) return n.record;
|
|
2817
|
-
let e =
|
|
2925
|
+
let e = Fc(n.children, t);
|
|
2818
2926
|
if (e) return e;
|
|
2819
2927
|
}
|
|
2820
2928
|
}
|
|
2821
|
-
function
|
|
2929
|
+
function Ic(e, t) {
|
|
2822
2930
|
return {
|
|
2823
2931
|
...e,
|
|
2824
2932
|
title: t,
|
|
@@ -2831,60 +2939,60 @@ function Pc(e, t) {
|
|
|
2831
2939
|
}
|
|
2832
2940
|
//#endregion
|
|
2833
2941
|
//#region src/app/workbenchSessionTabs.ts
|
|
2834
|
-
function
|
|
2942
|
+
function Lc(e) {
|
|
2835
2943
|
if (!Array.isArray(e)) return [];
|
|
2836
2944
|
let t = /* @__PURE__ */ new Set();
|
|
2837
|
-
return e.flatMap((e) => !
|
|
2945
|
+
return e.flatMap((e) => !Rc(e) || t.has(e.key) ? [] : (t.add(e.key), [e]));
|
|
2838
2946
|
}
|
|
2839
|
-
function
|
|
2947
|
+
function Rc(e) {
|
|
2840
2948
|
let t = e;
|
|
2841
|
-
return
|
|
2949
|
+
return Hc(e) && typeof t.key == "string" && typeof t.title == "string" && (zc(t.pageDescriptor) || Vc(t.target));
|
|
2842
2950
|
}
|
|
2843
|
-
function
|
|
2844
|
-
return !
|
|
2951
|
+
function zc(e) {
|
|
2952
|
+
return !Hc(e) || !Hc(e.target) || !Hc(e.tabPolicy) || ![
|
|
2845
2953
|
"by-menu",
|
|
2846
2954
|
"by-target",
|
|
2847
2955
|
"by-params"
|
|
2848
|
-
].includes(String(e.tabPolicy.identity)) ? !1 : e.pageType === "platform-route" ? e.openMode === "workbench-route" && e.hostType === "platform-route-host" &&
|
|
2956
|
+
].includes(String(e.tabPolicy.identity)) ? !1 : e.pageType === "platform-route" ? e.openMode === "workbench-route" && e.hostType === "platform-route-host" && Bc(e.target) : e.pageType === "business-route" ? e.openMode === "workbench-route" && e.hostType === "business-route-host" && Bc(e.target) : e.pageType === "dynamic-module" ? e.openMode === "dynamic-runner" && (e.hostType === "module-page-host" || e.hostType === "dynamic-module-host") && typeof e.target.moduleAlias == "string" : e.pageType === "remote-url" ? (e.openMode === "iframe" || e.openMode === "new-window") && e.hostType === "external-page-host" && typeof e.target.url == "string" : e.pageType === "external-link" && e.openMode === "new-window" && e.hostType === "external-page-host" && typeof e.target.url == "string";
|
|
2849
2957
|
}
|
|
2850
|
-
function
|
|
2958
|
+
function Bc(e) {
|
|
2851
2959
|
return typeof e.route == "string" || typeof e.routeName == "string" || typeof e.pageKey == "string";
|
|
2852
2960
|
}
|
|
2853
|
-
function
|
|
2854
|
-
return !
|
|
2961
|
+
function Vc(e) {
|
|
2962
|
+
return !Hc(e) || typeof e.menuId != "string" || e.openMode !== "tab" ? !1 : e.menuType === "module" ? typeof e.moduleAlias == "string" : e.menuType === "route" ? typeof e.route == "string" : e.menuType === "link" && typeof e.externalUrl == "string";
|
|
2855
2963
|
}
|
|
2856
|
-
function
|
|
2964
|
+
function Hc(e) {
|
|
2857
2965
|
return typeof e == "object" && !!e;
|
|
2858
2966
|
}
|
|
2859
2967
|
//#endregion
|
|
2860
2968
|
//#region src/app/lockedTabPreference.ts
|
|
2861
|
-
var
|
|
2862
|
-
async function
|
|
2863
|
-
return
|
|
2969
|
+
var Uc = "workbench.locked-tabs";
|
|
2970
|
+
async function Wc(e) {
|
|
2971
|
+
return Kc(await e.restore(Uc, [], { persistence: "backend" }));
|
|
2864
2972
|
}
|
|
2865
|
-
async function
|
|
2866
|
-
await e.set(
|
|
2973
|
+
async function Gc(e, t) {
|
|
2974
|
+
await e.set(Uc, t, { persistence: "backend" });
|
|
2867
2975
|
}
|
|
2868
|
-
function
|
|
2869
|
-
return
|
|
2976
|
+
function Kc(e) {
|
|
2977
|
+
return Lc(e);
|
|
2870
2978
|
}
|
|
2871
2979
|
//#endregion
|
|
2872
2980
|
//#region src/consumer/PlatformAdminOutlet.vue
|
|
2873
|
-
var
|
|
2981
|
+
var qc = /* @__PURE__ */ W({
|
|
2874
2982
|
name: "PlatformAdminOutlet",
|
|
2875
2983
|
__name: "PlatformAdminOutlet",
|
|
2876
2984
|
props: { descriptor: {} },
|
|
2877
2985
|
setup(e) {
|
|
2878
|
-
return (t, n) => (G(), R(ie, { descriptor: e.descriptor },
|
|
2986
|
+
return (t, n) => (G(), R(ie, { descriptor: e.descriptor }, la({ _: 2 }, [J(zs)(e.descriptor) ? {
|
|
2879
2987
|
name: "default",
|
|
2880
|
-
fn: X(() => [U(
|
|
2988
|
+
fn: X(() => [U(qs, { descriptor: e.descriptor }, null, 8, ["descriptor"])]),
|
|
2881
2989
|
key: "0"
|
|
2882
2990
|
} : void 0]), 1032, ["descriptor"]));
|
|
2883
2991
|
}
|
|
2884
|
-
}),
|
|
2992
|
+
}), Jc = { class: "change-own-password-fields" }, Yc = {
|
|
2885
2993
|
key: 0,
|
|
2886
2994
|
class: "change-own-password-error"
|
|
2887
|
-
},
|
|
2995
|
+
}, Xc = /*#__PURE__*/ Hi(/* @__PURE__ */ W({
|
|
2888
2996
|
name: "ChangeOwnPasswordDialog",
|
|
2889
2997
|
__name: "ChangeOwnPasswordDialog",
|
|
2890
2998
|
props: {
|
|
@@ -2919,7 +3027,7 @@ var Gc = /* @__PURE__ */ W({
|
|
|
2919
3027
|
onConfirm: i[3] ||= (e) => r("submit"),
|
|
2920
3028
|
onCancel: i[4] ||= (e) => r("close")
|
|
2921
3029
|
}, {
|
|
2922
|
-
default: X(() => [V("div",
|
|
3030
|
+
default: X(() => [V("div", Jc, [
|
|
2923
3031
|
V("label", null, [V("span", null, q(J(n).t("platform.screen.ChangeOwnPasswordDialog.current-password", "当前密码")), 1), U(J(F), {
|
|
2924
3032
|
value: e.currentPassword,
|
|
2925
3033
|
type: "password",
|
|
@@ -2956,7 +3064,7 @@ var Gc = /* @__PURE__ */ W({
|
|
|
2956
3064
|
"disabled",
|
|
2957
3065
|
"placeholder"
|
|
2958
3066
|
])])
|
|
2959
|
-
]), e.error ? (G(), B("p",
|
|
3067
|
+
]), e.error ? (G(), B("p", Yc, q(e.error), 1)) : z("v-if", !0)]),
|
|
2960
3068
|
_: 1
|
|
2961
3069
|
}, 8, [
|
|
2962
3070
|
"open",
|
|
@@ -2966,24 +3074,24 @@ var Gc = /* @__PURE__ */ W({
|
|
|
2966
3074
|
"confirm-disabled"
|
|
2967
3075
|
]));
|
|
2968
3076
|
}
|
|
2969
|
-
}), [["__scopeId", "data-v-c6faa9f8"]]),
|
|
2970
|
-
function
|
|
2971
|
-
let r =
|
|
3077
|
+
}), [["__scopeId", "data-v-c6faa9f8"]]), Zc = "muyun.externalLogin.pending";
|
|
3078
|
+
function Qc(e, t, n = ol()) {
|
|
3079
|
+
let r = rl(n).filter((t) => t.state !== e.state);
|
|
2972
3080
|
r.push({
|
|
2973
3081
|
providerId: t.providerId,
|
|
2974
3082
|
state: e.state,
|
|
2975
3083
|
browserProof: e.browserProof,
|
|
2976
3084
|
purpose: t.purpose,
|
|
2977
3085
|
tenantId: t.tenantId || void 0
|
|
2978
|
-
}),
|
|
3086
|
+
}), il(n, r.slice(-5));
|
|
2979
3087
|
}
|
|
2980
|
-
function
|
|
2981
|
-
|
|
3088
|
+
function $c(e, t = ol()) {
|
|
3089
|
+
il(t, rl(t).filter((t) => t.state !== e));
|
|
2982
3090
|
}
|
|
2983
|
-
function
|
|
3091
|
+
function el(e) {
|
|
2984
3092
|
window.location.assign(e);
|
|
2985
3093
|
}
|
|
2986
|
-
function
|
|
3094
|
+
function tl(e, t = ol()) {
|
|
2987
3095
|
let n = {};
|
|
2988
3096
|
for (let [t, r] of Object.entries(e)) {
|
|
2989
3097
|
let e = Array.isArray(r) ? r[0] : r;
|
|
@@ -2991,13 +3099,13 @@ function $c(e, t = il()) {
|
|
|
2991
3099
|
}
|
|
2992
3100
|
let r = n.state?.trim();
|
|
2993
3101
|
if (!r) return;
|
|
2994
|
-
let i =
|
|
2995
|
-
return
|
|
3102
|
+
let i = rl(t);
|
|
3103
|
+
return il(t, i.filter((e) => e.state !== r)), {
|
|
2996
3104
|
pending: i.find((e) => e.state === r),
|
|
2997
3105
|
parameters: n
|
|
2998
3106
|
};
|
|
2999
3107
|
}
|
|
3000
|
-
function
|
|
3108
|
+
function nl(e, t) {
|
|
3001
3109
|
if (e.status === "reviewPending") return t.t("platform.external-login.review-pending", "加入申请已提交,审核通过后请重新扫码登录");
|
|
3002
3110
|
if (e.status === "reviewRejected") return t.t("platform.external-login.review-rejected", "加入申请已被拒绝,请联系管理员");
|
|
3003
3111
|
if (e.failure === "admissionRejected") return t.t("platform.external-login.admission-rejected", "无法确认有效的准入资料,请联系管理员检查准入范围并更新通讯录后重试");
|
|
@@ -3013,60 +3121,60 @@ function el(e, t) {
|
|
|
3013
3121
|
default: return t.t("platform.external-login.authorization-failed", "外部授权未通过,请重试或联系管理员");
|
|
3014
3122
|
}
|
|
3015
3123
|
}
|
|
3016
|
-
function
|
|
3124
|
+
function rl(e) {
|
|
3017
3125
|
try {
|
|
3018
|
-
let t = JSON.parse(e?.getItem(
|
|
3019
|
-
return Array.isArray(t) ? t.filter(
|
|
3126
|
+
let t = JSON.parse(e?.getItem(Zc) ?? "[]");
|
|
3127
|
+
return Array.isArray(t) ? t.filter(al) : [];
|
|
3020
3128
|
} catch {
|
|
3021
3129
|
return [];
|
|
3022
3130
|
}
|
|
3023
3131
|
}
|
|
3024
|
-
function
|
|
3132
|
+
function il(e, t) {
|
|
3025
3133
|
try {
|
|
3026
|
-
t.length === 0 ? e?.removeItem(
|
|
3134
|
+
t.length === 0 ? e?.removeItem(Zc) : e?.setItem(Zc, JSON.stringify(t));
|
|
3027
3135
|
} catch {}
|
|
3028
3136
|
}
|
|
3029
|
-
function
|
|
3137
|
+
function al(e) {
|
|
3030
3138
|
if (typeof e != "object" || !e) return !1;
|
|
3031
3139
|
let t = e;
|
|
3032
3140
|
return typeof t.providerId == "string" && typeof t.state == "string" && typeof t.browserProof == "string" && (t.purpose === "login" || t.purpose === "bind");
|
|
3033
3141
|
}
|
|
3034
|
-
function
|
|
3142
|
+
function ol() {
|
|
3035
3143
|
try {
|
|
3036
3144
|
return typeof window > "u" ? void 0 : window.sessionStorage;
|
|
3037
3145
|
} catch {
|
|
3038
3146
|
return;
|
|
3039
3147
|
}
|
|
3040
3148
|
}
|
|
3041
|
-
var
|
|
3042
|
-
function
|
|
3043
|
-
return window.wlQrcodeLogin ? Promise.resolve(window.wlQrcodeLogin) :
|
|
3149
|
+
var sl = "https://login.welink.huaweicloud.com/sso-proxy-front/public/qrcode/0.0.1/wlQrcodeLogin.js", cl;
|
|
3150
|
+
function ll() {
|
|
3151
|
+
return window.wlQrcodeLogin ? Promise.resolve(window.wlQrcodeLogin) : cl || (cl = new Promise((e, t) => {
|
|
3044
3152
|
let n = document.createElement("script");
|
|
3045
|
-
n.src =
|
|
3153
|
+
n.src = sl, n.async = !0, n.referrerPolicy = "no-referrer";
|
|
3046
3154
|
let r = setTimeout(i, 15e3);
|
|
3047
3155
|
function i() {
|
|
3048
|
-
clearTimeout(r), n.remove(),
|
|
3156
|
+
clearTimeout(r), n.remove(), cl = void 0, t(/* @__PURE__ */ Error("WeLink script unavailable"));
|
|
3049
3157
|
}
|
|
3050
3158
|
n.onerror = i, n.onload = () => {
|
|
3051
3159
|
if (!window.wlQrcodeLogin) return i();
|
|
3052
3160
|
clearTimeout(r), e(window.wlQrcodeLogin);
|
|
3053
3161
|
}, document.head.append(n);
|
|
3054
|
-
}),
|
|
3162
|
+
}), cl);
|
|
3055
3163
|
}
|
|
3056
3164
|
//#endregion
|
|
3057
3165
|
//#region src/app/WeLinkQrCode.vue?vue&type=script&setup=true&lang.ts
|
|
3058
|
-
var
|
|
3166
|
+
var ul = {
|
|
3059
3167
|
class: "welink-qr",
|
|
3060
3168
|
"aria-live": "polite"
|
|
3061
|
-
},
|
|
3169
|
+
}, dl = { key: 0 }, fl = {
|
|
3062
3170
|
key: 1,
|
|
3063
3171
|
role: "alert"
|
|
3064
|
-
},
|
|
3172
|
+
}, pl = /*#__PURE__*/ Hi(/* @__PURE__ */ W({
|
|
3065
3173
|
__name: "WeLinkQrCode",
|
|
3066
3174
|
props: { start: {} },
|
|
3067
3175
|
emits: ["close"],
|
|
3068
3176
|
setup(e, { emit: t }) {
|
|
3069
|
-
let n = e, r = t, i = I(), a = `welink-${
|
|
3177
|
+
let n = e, r = t, i = I(), a = `welink-${Ea()}`, o = K(), s = K(!1), c = K(!1), l = !0, u = !1, d;
|
|
3070
3178
|
function f(e) {
|
|
3071
3179
|
let t = o.value?.querySelector("iframe");
|
|
3072
3180
|
if (!l || s.value || c.value || u || Date.now() >= Date.parse(n.start.expiresAt) || e.origin !== "https://login.welink.huaweicloud.com" || !t?.contentWindow || e.source !== t.contentWindow || typeof e.data != "string" || !e.data.trim() || e.data.length > 4096) return;
|
|
@@ -3078,19 +3186,19 @@ var cl = {
|
|
|
3078
3186
|
scope: r.scope,
|
|
3079
3187
|
state: n.start.state,
|
|
3080
3188
|
code: e.data
|
|
3081
|
-
}).toString(), u = !0,
|
|
3189
|
+
}).toString(), u = !0, el(i.toString());
|
|
3082
3190
|
}
|
|
3083
|
-
return
|
|
3191
|
+
return ya(async () => {
|
|
3084
3192
|
try {
|
|
3085
3193
|
let e = n.start.qrCode;
|
|
3086
|
-
if (!e || e.providerType !== "welink" || e.scriptUrl !==
|
|
3194
|
+
if (!e || e.providerType !== "welink" || e.scriptUrl !== sl || e.messageOrigin !== "https://login.welink.huaweicloud.com" || e.state !== n.start.state || e.scope !== "snsapi_login" || new URL(e.authorizationUrl).origin !== "https://login.welink.huaweicloud.com" || new URL(e.authorizationUrl).pathname !== "/sso/oauth2/sns_authorize") throw Error("Unrecognized QR presentation");
|
|
3087
3195
|
let t = Date.parse(n.start.expiresAt) - Date.now();
|
|
3088
3196
|
if (!Number.isFinite(t) || t <= 0) {
|
|
3089
3197
|
c.value = !0;
|
|
3090
3198
|
return;
|
|
3091
3199
|
}
|
|
3092
3200
|
d = setTimeout(() => c.value = !0, Math.min(t, 2147483647));
|
|
3093
|
-
let r = await
|
|
3201
|
+
let r = await ll();
|
|
3094
3202
|
if (!l || c.value) return;
|
|
3095
3203
|
window.addEventListener("message", f), r({
|
|
3096
3204
|
id: a,
|
|
@@ -3109,9 +3217,9 @@ var cl = {
|
|
|
3109
3217
|
} catch {
|
|
3110
3218
|
l && (s.value = !0);
|
|
3111
3219
|
}
|
|
3112
|
-
}),
|
|
3220
|
+
}), va(() => {
|
|
3113
3221
|
l = !1, clearTimeout(d), window.removeEventListener("message", f);
|
|
3114
|
-
}), (e, t) => (G(), B("section",
|
|
3222
|
+
}), (e, t) => (G(), B("section", ul, [c.value ? (G(), B("p", dl, q(J(i).t("platform.welink.expired", "二维码授权已超时,请关闭后重新发起")), 1)) : s.value ? (G(), B("p", fl, q(J(i).t("platform.welink.load-failed", "无法加载 WeLink 二维码,请检查网络后重新发起,或使用其他登录方式")), 1)) : (G(), B(ca, { key: 2 }, [V("p", null, q(J(i).t("platform.welink.scan", "请使用 WeLink 扫码并在手机上确认授权")), 1), V("div", {
|
|
3115
3223
|
id: a,
|
|
3116
3224
|
ref_key: "container",
|
|
3117
3225
|
ref: o
|
|
@@ -3120,16 +3228,16 @@ var cl = {
|
|
|
3120
3228
|
_: 1
|
|
3121
3229
|
})]));
|
|
3122
3230
|
}
|
|
3123
|
-
}), [["__scopeId", "data-v-85e0956f"]]),
|
|
3231
|
+
}), [["__scopeId", "data-v-85e0956f"]]), ml = {
|
|
3124
3232
|
key: 0,
|
|
3125
3233
|
class: "external-bindings"
|
|
3126
|
-
},
|
|
3234
|
+
}, hl = {
|
|
3127
3235
|
key: 1,
|
|
3128
3236
|
class: "external-bindings-error"
|
|
3129
|
-
},
|
|
3237
|
+
}, gl = {
|
|
3130
3238
|
key: 2,
|
|
3131
3239
|
class: "external-bindings-list"
|
|
3132
|
-
},
|
|
3240
|
+
}, _l = { class: "external-bindings-provider" }, vl = { class: "external-bindings-account" }, yl = { class: "external-bindings-provider" }, bl = { class: "external-bindings-account muted" }, xl = /*#__PURE__*/ Hi(/* @__PURE__ */ W({
|
|
3133
3241
|
name: "ExternalIdentityBindings",
|
|
3134
3242
|
__name: "ExternalIdentityBindings",
|
|
3135
3243
|
props: {
|
|
@@ -3139,20 +3247,20 @@ var cl = {
|
|
|
3139
3247
|
setup(e) {
|
|
3140
3248
|
let t = e, n = I(), r = K();
|
|
3141
3249
|
function i() {
|
|
3142
|
-
r.value &&
|
|
3250
|
+
r.value && $c(r.value.state), r.value = void 0;
|
|
3143
3251
|
}
|
|
3144
3252
|
let a = K(), o = K(!1), s = K(!1), c = K();
|
|
3145
|
-
|
|
3253
|
+
ya(l);
|
|
3146
3254
|
async function l() {
|
|
3147
3255
|
c.value = void 0;
|
|
3148
3256
|
try {
|
|
3149
3257
|
a.value = await t.client.identities(t.token);
|
|
3150
3258
|
} catch (e) {
|
|
3151
|
-
if (e instanceof
|
|
3259
|
+
if (e instanceof nn && (e.status === 404 || e.status === 405)) {
|
|
3152
3260
|
o.value = !0;
|
|
3153
3261
|
return;
|
|
3154
3262
|
}
|
|
3155
|
-
c.value = () =>
|
|
3263
|
+
c.value = () => on(Vr(e), n);
|
|
3156
3264
|
}
|
|
3157
3265
|
}
|
|
3158
3266
|
async function u(e) {
|
|
@@ -3160,12 +3268,12 @@ var cl = {
|
|
|
3160
3268
|
try {
|
|
3161
3269
|
i();
|
|
3162
3270
|
let n = await t.client.startBind(e.providerId, t.token);
|
|
3163
|
-
|
|
3271
|
+
Qc(n, {
|
|
3164
3272
|
providerId: e.providerId,
|
|
3165
3273
|
purpose: "bind"
|
|
3166
|
-
}), n.qrCode ? (r.value = n, s.value = !1) :
|
|
3274
|
+
}), n.qrCode ? (r.value = n, s.value = !1) : el(n.authorizationUrl);
|
|
3167
3275
|
} catch (e) {
|
|
3168
|
-
c.value = () =>
|
|
3276
|
+
c.value = () => on(Vr(e), n), s.value = !1;
|
|
3169
3277
|
}
|
|
3170
3278
|
}
|
|
3171
3279
|
async function d(e) {
|
|
@@ -3178,23 +3286,23 @@ var cl = {
|
|
|
3178
3286
|
try {
|
|
3179
3287
|
await t.client.unbind(e.id, t.token), await l();
|
|
3180
3288
|
} catch (e) {
|
|
3181
|
-
c.value = () =>
|
|
3289
|
+
c.value = () => on(Vr(e), n);
|
|
3182
3290
|
} finally {
|
|
3183
3291
|
s.value = !1;
|
|
3184
3292
|
}
|
|
3185
3293
|
}
|
|
3186
3294
|
}
|
|
3187
|
-
return (e, t) => !o.value && (a.value?.bindings.length || a.value?.bindableProviders.length || c.value) ? (G(), B("section",
|
|
3188
|
-
r.value ? (G(), R(
|
|
3295
|
+
return (e, t) => !o.value && (a.value?.bindings.length || a.value?.bindableProviders.length || c.value) ? (G(), B("section", ml, [
|
|
3296
|
+
r.value ? (G(), R(pl, {
|
|
3189
3297
|
key: r.value.state,
|
|
3190
3298
|
start: r.value,
|
|
3191
3299
|
onClose: i
|
|
3192
3300
|
}, null, 8, ["start"])) : z("v-if", !0),
|
|
3193
3301
|
V("h3", null, q(J(n).t("platform.screen.ExternalIdentityBindings.title", "外部账号绑定")), 1),
|
|
3194
|
-
c.value ? (G(), B("p",
|
|
3195
|
-
a.value ? (G(), B("ul",
|
|
3196
|
-
V("span",
|
|
3197
|
-
V("span",
|
|
3302
|
+
c.value ? (G(), B("p", hl, q(c.value()), 1)) : z("v-if", !0),
|
|
3303
|
+
a.value ? (G(), B("ul", gl, [(G(!0), B(ca, null, Ca(a.value.bindings, (e) => (G(), B("li", { key: e.id }, [
|
|
3304
|
+
V("span", _l, q(e.providerTitle), 1),
|
|
3305
|
+
V("span", vl, q(e.displayName || e.externalUserId), 1),
|
|
3198
3306
|
U(J(P), {
|
|
3199
3307
|
size: "small",
|
|
3200
3308
|
danger: "",
|
|
@@ -3204,9 +3312,9 @@ var cl = {
|
|
|
3204
3312
|
default: X(() => [H(q(J(n).t("platform.screen.ExternalIdentityBindings.unbind", "解除绑定")), 1)]),
|
|
3205
3313
|
_: 1
|
|
3206
3314
|
}, 8, ["disabled", "onClick"])
|
|
3207
|
-
]))), 128)), (G(!0), B(
|
|
3208
|
-
V("span",
|
|
3209
|
-
V("span",
|
|
3315
|
+
]))), 128)), (G(!0), B(ca, null, Ca(a.value.bindableProviders, (e) => (G(), B("li", { key: e.providerId }, [
|
|
3316
|
+
V("span", yl, q(e.title), 1),
|
|
3317
|
+
V("span", bl, q(J(n).t("platform.screen.ExternalIdentityBindings.not-bound", "未绑定")), 1),
|
|
3210
3318
|
U(J(P), {
|
|
3211
3319
|
size: "small",
|
|
3212
3320
|
loading: s.value,
|
|
@@ -3218,25 +3326,25 @@ var cl = {
|
|
|
3218
3326
|
]))), 128))])) : z("v-if", !0)
|
|
3219
3327
|
])) : z("v-if", !0);
|
|
3220
3328
|
}
|
|
3221
|
-
}), [["__scopeId", "data-v-c99eaf5c"]]),
|
|
3329
|
+
}), [["__scopeId", "data-v-c99eaf5c"]]), Sl = {
|
|
3222
3330
|
key: 0,
|
|
3223
3331
|
class: "profile-loading"
|
|
3224
|
-
},
|
|
3332
|
+
}, Cl = {
|
|
3225
3333
|
key: 0,
|
|
3226
3334
|
class: "profile-hero"
|
|
3227
|
-
},
|
|
3335
|
+
}, wl = { class: "profile-avatar" }, Tl = { class: "profile-identity" }, El = { class: "profile-kicker" }, Dl = { class: "profile-number" }, Ol = { class: "profile-tags" }, kl = { class: "profile-account" }, Al = {
|
|
3228
3336
|
key: 1,
|
|
3229
3337
|
class: "profile-body"
|
|
3230
|
-
},
|
|
3338
|
+
}, jl = { class: "profile-card profile-card--readonly" }, Ml = { class: "profile-card-heading" }, Nl = { class: "profile-details" }, Pl = { class: "profile-card profile-card--editable" }, Fl = { class: "profile-card-heading" }, Il = { class: "profile-contact-fields" }, Ll = {
|
|
3231
3339
|
key: 0,
|
|
3232
3340
|
class: "profile-hint"
|
|
3233
|
-
},
|
|
3341
|
+
}, Rl = {
|
|
3234
3342
|
key: 2,
|
|
3235
3343
|
class: "profile-account-summary"
|
|
3236
|
-
},
|
|
3344
|
+
}, zl = { class: "profile-account-monogram" }, Bl = {
|
|
3237
3345
|
key: 2,
|
|
3238
3346
|
class: "profile-error"
|
|
3239
|
-
},
|
|
3347
|
+
}, Vl = /*#__PURE__*/ Hi(/* @__PURE__ */ W({
|
|
3240
3348
|
name: "CurrentUserProfileDialog",
|
|
3241
3349
|
__name: "CurrentUserProfileDialog",
|
|
3242
3350
|
props: {
|
|
@@ -3323,9 +3431,9 @@ var cl = {
|
|
|
3323
3431
|
"loading",
|
|
3324
3432
|
"disabled"
|
|
3325
3433
|
])]),
|
|
3326
|
-
default: X(() => [e.loading ? (G(), B("p",
|
|
3327
|
-
c.value ? (G(), B("section",
|
|
3328
|
-
V("div",
|
|
3434
|
+
default: X(() => [e.loading ? (G(), B("p", Sl, q(J(n).t("platform.screen.CurrentUserProfileDialog.loading-your-profile", "正在整理你的资料…")), 1)) : (G(), B(ca, { key: 1 }, [
|
|
3435
|
+
c.value ? (G(), B("section", Cl, [
|
|
3436
|
+
V("div", wl, [U(J(Ei), {
|
|
3329
3437
|
"hide-label": "",
|
|
3330
3438
|
label: J(n).t("platform.screen.CurrentUserProfileDialog.avatar", "头像"),
|
|
3331
3439
|
value: s.value,
|
|
@@ -3345,26 +3453,26 @@ var cl = {
|
|
|
3345
3453
|
"form-session-key",
|
|
3346
3454
|
"upload-hint"
|
|
3347
3455
|
])]),
|
|
3348
|
-
V("div",
|
|
3349
|
-
V("p",
|
|
3456
|
+
V("div", Tl, [
|
|
3457
|
+
V("p", El, q(J(n).t("platform.screen.CurrentUserProfileDialog.employee-profile", "职员档案")), 1),
|
|
3350
3458
|
V("h2", null, q(c.value.title || J(n).t("platform.screen.CurrentUserProfileDialog.unnamed-employee", "未命名职员")), 1),
|
|
3351
|
-
V("p",
|
|
3352
|
-
V("div",
|
|
3459
|
+
V("p", Dl, q(c.value.employeeNo || J(n).t("platform.screen.CurrentUserProfileDialog.no-employee-number-assigned", "尚未分配员工号")), 1),
|
|
3460
|
+
V("div", Ol, [V("span", null, q(c.value.organizationTitle || c.value.organizationId || J(n).t("platform.screen.CurrentUserProfileDialog.no-organization-assigned", "未分配机构")), 1), V("span", null, q(c.value.departmentTitle || c.value.departmentId || J(n).t("platform.screen.CurrentUserProfileDialog.no-department-assigned", "未分配部门")), 1)])
|
|
3353
3461
|
]),
|
|
3354
|
-
V("aside",
|
|
3462
|
+
V("aside", kl, [
|
|
3355
3463
|
V("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.sign-in-account", "登录账号")), 1),
|
|
3356
3464
|
V("strong", null, q(e.profile?.username || "—"), 1),
|
|
3357
3465
|
V("small", null, q(e.profile?.timeZone || J(n).t("platform.screen.CurrentUserProfileDialog.system-default-time-zone", "系统默认时区")), 1)
|
|
3358
3466
|
])
|
|
3359
3467
|
])) : z("v-if", !0),
|
|
3360
|
-
c.value ? (G(), B("section",
|
|
3468
|
+
c.value ? (G(), B("section", Al, [V("div", jl, [V("div", Ml, [V("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.employment-details", "任职信息")), 1), V("small", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.maintained-by-the-organization-administrator", "由组织管理员维护")), 1)]), V("dl", Nl, [
|
|
3361
3469
|
V("dt", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.organization-department", "机构 / 部门")), 1),
|
|
3362
3470
|
V("dd", null, q(c.value.organizationTitle || c.value.organizationId || "—") + " / " + q(c.value.departmentTitle || c.value.departmentId || "—"), 1),
|
|
3363
3471
|
V("dt", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.position", "岗位")), 1),
|
|
3364
3472
|
V("dd", null, q(u.value.map((e) => `${e.title || e.id || "—"}${e.primary ? J(n).t("platform.screen.CurrentUserProfileDialog.primary", "(主岗)") : ""}`).join("、") || "—"), 1)
|
|
3365
|
-
])]), V("div",
|
|
3366
|
-
V("div",
|
|
3367
|
-
V("div",
|
|
3473
|
+
])]), V("div", Pl, [
|
|
3474
|
+
V("div", Fl, [V("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.contact-details", "联系方式")), 1), V("small", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.only-you-can-edit-these-details", "仅你本人可修改")), 1)]),
|
|
3475
|
+
V("div", Il, [V("label", null, [V("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.mobile-number", "手机号")), 1), U(J(F), {
|
|
3368
3476
|
value: a.value,
|
|
3369
3477
|
disabled: !c.value.contactEditable || e.saving,
|
|
3370
3478
|
"onUpdate:value": r[1] ||= (e) => a.value = e
|
|
@@ -3373,14 +3481,14 @@ var cl = {
|
|
|
3373
3481
|
disabled: !c.value.contactEditable || e.saving,
|
|
3374
3482
|
"onUpdate:value": r[2] ||= (e) => o.value = e
|
|
3375
3483
|
}, null, 8, ["value", "disabled"])])]),
|
|
3376
|
-
c.value.contactEditable ? z("v-if", !0) : (G(), B("p",
|
|
3377
|
-
])])) : (G(), B("section",
|
|
3378
|
-
e.externalLoginClient && e.authToken && e.open ? (G(), R(
|
|
3484
|
+
c.value.contactEditable ? z("v-if", !0) : (G(), B("p", Ll, q(J(n).t("platform.screen.CurrentUserProfileDialog.this-employee-is-disabled-contact-details-cannot-be", "当前职员已停用,联系方式不能自助修改。")), 1))
|
|
3485
|
+
])])) : (G(), B("section", Rl, [V("span", zl, q((e.profile?.username || "?").slice(0, 1).toUpperCase()), 1), V("strong", null, q(e.profile?.username || J(n).t("platform.screen.CurrentUserProfileDialog.current-account", "当前账号")), 1)])),
|
|
3486
|
+
e.externalLoginClient && e.authToken && e.open ? (G(), R(xl, {
|
|
3379
3487
|
key: 3,
|
|
3380
3488
|
client: e.externalLoginClient,
|
|
3381
3489
|
token: e.authToken
|
|
3382
3490
|
}, null, 8, ["client", "token"])) : z("v-if", !0)
|
|
3383
|
-
], 64)), e.error ? (G(), B("p",
|
|
3491
|
+
], 64)), e.error ? (G(), B("p", Bl, q(e.error), 1)) : z("v-if", !0)]),
|
|
3384
3492
|
_: 1
|
|
3385
3493
|
}, 8, [
|
|
3386
3494
|
"open",
|
|
@@ -3390,13 +3498,13 @@ var cl = {
|
|
|
3390
3498
|
"confirm-disabled"
|
|
3391
3499
|
]));
|
|
3392
3500
|
}
|
|
3393
|
-
}), [["__scopeId", "data-v-dbb6933e"]]),
|
|
3501
|
+
}), [["__scopeId", "data-v-dbb6933e"]]), Hl = {
|
|
3394
3502
|
key: 0,
|
|
3395
3503
|
class: "personal-access-tokens"
|
|
3396
|
-
},
|
|
3504
|
+
}, Ul = {
|
|
3397
3505
|
key: 0,
|
|
3398
3506
|
class: "access-token-secret"
|
|
3399
|
-
},
|
|
3507
|
+
}, Wl = ["title"], Gl = /*#__PURE__*/ Hi(/* @__PURE__ */ W({
|
|
3400
3508
|
name: "PersonalAccessTokens",
|
|
3401
3509
|
__name: "PersonalAccessTokens",
|
|
3402
3510
|
props: {
|
|
@@ -3423,9 +3531,9 @@ var cl = {
|
|
|
3423
3531
|
...e,
|
|
3424
3532
|
status: S(e)
|
|
3425
3533
|
}))), g = !1;
|
|
3426
|
-
|
|
3534
|
+
va(() => {
|
|
3427
3535
|
g = !0, s.value = void 0;
|
|
3428
|
-
}),
|
|
3536
|
+
}), ya(_);
|
|
3429
3537
|
async function _() {
|
|
3430
3538
|
l.value = !0, u.value = void 0, d.value = !1;
|
|
3431
3539
|
try {
|
|
@@ -3438,7 +3546,7 @@ var cl = {
|
|
|
3438
3546
|
}
|
|
3439
3547
|
}
|
|
3440
3548
|
function v(e) {
|
|
3441
|
-
g || (u.value = () =>
|
|
3549
|
+
g || (u.value = () => on(Vr(e), n));
|
|
3442
3550
|
}
|
|
3443
3551
|
async function y() {
|
|
3444
3552
|
if (i.value && !l.value && a.value.trim() && !s.value) {
|
|
@@ -3494,8 +3602,8 @@ var cl = {
|
|
|
3494
3602
|
function S(e) {
|
|
3495
3603
|
return e.revokedAt ? "revoked" : Date.parse(e.expiresAt) <= Date.now() ? "expired" : "active";
|
|
3496
3604
|
}
|
|
3497
|
-
return (e, t) => i.value || r.value.length || u.value || s.value ? (G(), B("section",
|
|
3498
|
-
s.value ? (G(), B("div",
|
|
3605
|
+
return (e, t) => i.value || r.value.length || u.value || s.value ? (G(), B("section", Hl, [
|
|
3606
|
+
s.value ? (G(), B("div", Ul, [V("label", null, [V("span", null, q(J(n).t("platform.access-tokens.copy-now", "密钥仅显示一次,请保存。")), 1), U(J(Br), {
|
|
3499
3607
|
value: s.value,
|
|
3500
3608
|
readonly: "",
|
|
3501
3609
|
rows: 2
|
|
@@ -3508,7 +3616,7 @@ var cl = {
|
|
|
3508
3616
|
})])) : i.value ? (G(), B("form", {
|
|
3509
3617
|
key: 1,
|
|
3510
3618
|
class: "access-token-create",
|
|
3511
|
-
onSubmit:
|
|
3619
|
+
onSubmit: ka(y, ["prevent"])
|
|
3512
3620
|
}, [
|
|
3513
3621
|
V("label", null, [V("span", null, q(J(n).t("platform.access-tokens.name", "名称")), 1), U(J(F), {
|
|
3514
3622
|
value: a.value,
|
|
@@ -3572,7 +3680,7 @@ var cl = {
|
|
|
3572
3680
|
key: 0,
|
|
3573
3681
|
class: "access-token-name",
|
|
3574
3682
|
title: String(t.id)
|
|
3575
|
-
}, [V("span", null, q(t.name), 1), V("code", null, q(t.displayPrefix) + "…", 1)], 8,
|
|
3683
|
+
}, [V("span", null, q(t.name), 1), V("code", null, q(t.displayPrefix) + "…", 1)], 8, Wl)) : e.key === "expiresAt" ? (G(), B(ca, { key: 1 }, [t.status === "active" ? (G(), R(J(_t), {
|
|
3576
3684
|
key: 1,
|
|
3577
3685
|
value: String(t.expiresAt),
|
|
3578
3686
|
precision: "minute"
|
|
@@ -3614,7 +3722,7 @@ var cl = {
|
|
|
3614
3722
|
])
|
|
3615
3723
|
])) : z("v-if", !0);
|
|
3616
3724
|
}
|
|
3617
|
-
}), [["__scopeId", "data-v-07369c31"]]),
|
|
3725
|
+
}), [["__scopeId", "data-v-07369c31"]]), Kl = /* @__PURE__ */ W({
|
|
3618
3726
|
__name: "PersonalAccessTokenDialog",
|
|
3619
3727
|
props: {
|
|
3620
3728
|
open: { type: Boolean },
|
|
@@ -3635,7 +3743,7 @@ var cl = {
|
|
|
3635
3743
|
default: X(() => [H(q(J(i).t("platform.content.close", "关闭")), 1)]),
|
|
3636
3744
|
_: 1
|
|
3637
3745
|
})]),
|
|
3638
|
-
default: X(() => [e.open && e.sessionToken ? (G(), R(
|
|
3746
|
+
default: X(() => [e.open && e.sessionToken ? (G(), R(Gl, {
|
|
3639
3747
|
key: e.sessionToken,
|
|
3640
3748
|
client: e.client,
|
|
3641
3749
|
"session-token": e.sessionToken
|
|
@@ -3643,18 +3751,18 @@ var cl = {
|
|
|
3643
3751
|
_: 1
|
|
3644
3752
|
}, 8, ["open", "title"]));
|
|
3645
3753
|
}
|
|
3646
|
-
}),
|
|
3754
|
+
}), ql = { class: "theme-skin-preferences" }, Jl = {
|
|
3647
3755
|
key: 0,
|
|
3648
3756
|
class: "theme-skin-error",
|
|
3649
3757
|
role: "alert"
|
|
3650
|
-
},
|
|
3758
|
+
}, Yl = ["aria-label"], Xl = [
|
|
3651
3759
|
"aria-checked",
|
|
3652
3760
|
"tabindex",
|
|
3653
3761
|
"data-skin-id",
|
|
3654
3762
|
"disabled",
|
|
3655
3763
|
"onClick",
|
|
3656
3764
|
"onKeydown"
|
|
3657
|
-
],
|
|
3765
|
+
], Zl = /*#__PURE__*/ Hi(/* @__PURE__ */ W({
|
|
3658
3766
|
name: "ThemeSkinPreferencesDialog",
|
|
3659
3767
|
__name: "ThemeSkinPreferencesDialog",
|
|
3660
3768
|
props: {
|
|
@@ -3695,16 +3803,16 @@ var cl = {
|
|
|
3695
3803
|
onConfirm: r[0] ||= (e) => a("close"),
|
|
3696
3804
|
onCancel: r[1] ||= (e) => a("close")
|
|
3697
3805
|
}, {
|
|
3698
|
-
default: X(() => [V("section",
|
|
3806
|
+
default: X(() => [V("section", ql, [
|
|
3699
3807
|
V("header", null, [V("h2", null, q(J(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")), 1), V("p", null, q(J(n).t("platform.screen.ThemeSkinPreferencesDialog.your-appearance-preference-is-saved-to-this-account", "皮肤会同步保存到当前账号,并在下次启动时优先恢复。")), 1)]),
|
|
3700
|
-
i.value ? (G(), B("p",
|
|
3808
|
+
i.value ? (G(), B("p", Jl, q(i.value), 1)) : z("v-if", !0),
|
|
3701
3809
|
V("div", {
|
|
3702
3810
|
class: "theme-skin-grid",
|
|
3703
3811
|
role: "radiogroup",
|
|
3704
3812
|
"aria-label": J(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")
|
|
3705
|
-
}, [(G(!0), B(
|
|
3813
|
+
}, [(G(!0), B(ca, null, Ca(e.skins, (t, i) => (G(), B("button", {
|
|
3706
3814
|
key: t.id,
|
|
3707
|
-
class:
|
|
3815
|
+
class: ha(["theme-skin-card", { selected: t.id === e.activeSkinId }]),
|
|
3708
3816
|
type: "button",
|
|
3709
3817
|
role: "radio",
|
|
3710
3818
|
"aria-checked": t.id === e.activeSkinId,
|
|
@@ -3716,7 +3824,7 @@ var cl = {
|
|
|
3716
3824
|
}, [
|
|
3717
3825
|
V("span", {
|
|
3718
3826
|
class: "theme-skin-preview",
|
|
3719
|
-
style:
|
|
3827
|
+
style: _a({
|
|
3720
3828
|
"--skin-canvas": t.theme.support.canvas,
|
|
3721
3829
|
"--skin-surface": t.theme.support.surface,
|
|
3722
3830
|
"--skin-text": t.theme.support.text,
|
|
@@ -3730,7 +3838,7 @@ var cl = {
|
|
|
3730
3838
|
]], 4),
|
|
3731
3839
|
V("strong", null, q(t.titleKey ? J(n).t(t.titleKey, t.title) : t.title), 1),
|
|
3732
3840
|
V("small", null, q(t.descriptionKey ? J(n).t(t.descriptionKey, t.description) : t.description), 1)
|
|
3733
|
-
], 42,
|
|
3841
|
+
], 42, Xl))), 128))], 8, Yl)
|
|
3734
3842
|
])]),
|
|
3735
3843
|
_: 1
|
|
3736
3844
|
}, 8, [
|
|
@@ -3743,7 +3851,7 @@ var cl = {
|
|
|
3743
3851
|
}), [["__scopeId", "data-v-d7f8f04d"]]);
|
|
3744
3852
|
//#endregion
|
|
3745
3853
|
//#region src/app/useCurrentUserProfile.ts
|
|
3746
|
-
function
|
|
3854
|
+
function Ql(e) {
|
|
3747
3855
|
let t = K(), n = 0, r = !1, i = () => {
|
|
3748
3856
|
let t = e.currentUser();
|
|
3749
3857
|
return t ? JSON.stringify([
|
|
@@ -3772,7 +3880,7 @@ function Xl(e) {
|
|
|
3772
3880
|
}, {
|
|
3773
3881
|
immediate: !0,
|
|
3774
3882
|
flush: "sync"
|
|
3775
|
-
}),
|
|
3883
|
+
}), ba(() => {
|
|
3776
3884
|
r = !0, n++;
|
|
3777
3885
|
}), {
|
|
3778
3886
|
profile: t,
|
|
@@ -3782,7 +3890,7 @@ function Xl(e) {
|
|
|
3782
3890
|
}
|
|
3783
3891
|
//#endregion
|
|
3784
3892
|
//#region src/app/usePersonalAccessTokenAccess.ts
|
|
3785
|
-
function
|
|
3893
|
+
function $l(e) {
|
|
3786
3894
|
let t = K(!1), n = K(), r = 0, i = !1;
|
|
3787
3895
|
async function a() {
|
|
3788
3896
|
if (i) return;
|
|
@@ -3810,31 +3918,31 @@ function Zl(e) {
|
|
|
3810
3918
|
}, s = (t) => {
|
|
3811
3919
|
t.storageArea === window.localStorage && e.sessionToken() !== n.value && a();
|
|
3812
3920
|
};
|
|
3813
|
-
return
|
|
3921
|
+
return ya(() => {
|
|
3814
3922
|
window.addEventListener("focus", o), window.addEventListener("storage", s);
|
|
3815
|
-
}),
|
|
3923
|
+
}), ba(() => {
|
|
3816
3924
|
i = !0, r++, window.removeEventListener("focus", o), window.removeEventListener("storage", s);
|
|
3817
3925
|
}), {
|
|
3818
3926
|
available: t,
|
|
3819
|
-
sessionToken:
|
|
3927
|
+
sessionToken: Sa(n),
|
|
3820
3928
|
refresh: a
|
|
3821
3929
|
};
|
|
3822
3930
|
}
|
|
3823
3931
|
//#endregion
|
|
3824
3932
|
//#region src/app/themeSkinPreference.ts
|
|
3825
|
-
var
|
|
3826
|
-
async function
|
|
3827
|
-
let r = await e.restore(
|
|
3933
|
+
var eu = "workbench.theme-skin";
|
|
3934
|
+
async function tu(e, t, n = () => !0) {
|
|
3935
|
+
let r = await e.restore(eu, t, { persistence: "backend" });
|
|
3828
3936
|
if (!n()) return t;
|
|
3829
3937
|
let i = Yn(r).id;
|
|
3830
|
-
return await e.set(
|
|
3938
|
+
return await e.set(eu, i, { persistence: "local" }), i;
|
|
3831
3939
|
}
|
|
3832
|
-
async function
|
|
3833
|
-
if (await e.set(
|
|
3940
|
+
async function nu(e, t, n, r = () => !0) {
|
|
3941
|
+
if (await e.set(eu, t, { persistence: "local" }), !r()) return { skinId: n };
|
|
3834
3942
|
try {
|
|
3835
|
-
return await e.set(
|
|
3943
|
+
return await e.set(eu, t, { persistence: "backend" }), { skinId: t };
|
|
3836
3944
|
} catch {
|
|
3837
|
-
return r() ? (await e.set(
|
|
3945
|
+
return r() ? (await e.set(eu, n, { persistence: "local" }), {
|
|
3838
3946
|
skinId: n,
|
|
3839
3947
|
failure: "save-failed"
|
|
3840
3948
|
}) : { skinId: n };
|
|
@@ -3842,7 +3950,7 @@ async function eu(e, t, n, r = () => !0) {
|
|
|
3842
3950
|
}
|
|
3843
3951
|
//#endregion
|
|
3844
3952
|
//#region src/app/WorkbenchAccountCenter.vue
|
|
3845
|
-
var
|
|
3953
|
+
var ru = /* @__PURE__ */ W({
|
|
3846
3954
|
name: "WorkbenchAccountCenter",
|
|
3847
3955
|
inheritAttrs: !1,
|
|
3848
3956
|
__name: "WorkbenchAccountCenter",
|
|
@@ -3858,9 +3966,9 @@ var tu = /* @__PURE__ */ W({
|
|
|
3858
3966
|
"update:skinId"
|
|
3859
3967
|
],
|
|
3860
3968
|
setup(e, { expose: t, emit: n }) {
|
|
3861
|
-
let r = e, i = n, a = I(), o = { request: (e) => r.context ? r.context.http.request(e) : Promise.reject(/* @__PURE__ */ Error("Account context is unavailable")) }, l =
|
|
3969
|
+
let r = e, i = n, a = I(), o = { request: (e) => r.context ? r.context.http.request(e) : Promise.reject(/* @__PURE__ */ Error("Account context is unavailable")) }, l = ne(o), u = s(o), d = c(o), f = L(() => {
|
|
3862
3970
|
let e = r.context;
|
|
3863
|
-
return e?.token ?
|
|
3971
|
+
return e?.token ? Di(e.http, { Authorization: `Bearer ${e.token}` }) : void 0;
|
|
3864
3972
|
}), p = () => r.context?.token, m = () => {
|
|
3865
3973
|
let e = r.context?.currentUser;
|
|
3866
3974
|
return JSON.stringify([
|
|
@@ -3870,7 +3978,7 @@ var tu = /* @__PURE__ */ W({
|
|
|
3870
3978
|
e?.organizationId,
|
|
3871
3979
|
e?.system
|
|
3872
3980
|
]);
|
|
3873
|
-
}, h = L(() => r.context?.currentUser && p() && r.context.preferencePersistence !== "local" ? m() : void 0), g =
|
|
3981
|
+
}, h = L(() => r.context?.currentUser && p() && r.context.preferencePersistence !== "local" ? m() : void 0), g = Ql({
|
|
3874
3982
|
currentUser: () => r.context?.currentUser,
|
|
3875
3983
|
token: p,
|
|
3876
3984
|
scopeKey: () => r.context?.http,
|
|
@@ -3881,19 +3989,19 @@ var tu = /* @__PURE__ */ W({
|
|
|
3881
3989
|
http: t,
|
|
3882
3990
|
identity: n
|
|
3883
3991
|
};
|
|
3884
|
-
}), v =
|
|
3992
|
+
}), v = $l({
|
|
3885
3993
|
scopeKey: () => _.value,
|
|
3886
3994
|
client: d,
|
|
3887
3995
|
sessionToken: () => r.context?.currentUser && !r.menu?.hiddenCommands?.includes("accessTokens") ? p() : void 0
|
|
3888
|
-
}), y = L(() => r.context ? M(a, r.menu, v.available.value) : void 0), b = K(), x = K(!1), S = K(!1),
|
|
3996
|
+
}), y = L(() => r.context ? M(a, r.menu, v.available.value) : void 0), b = K(), x = K(!1), S = K(!1), ee = K(!1), C = K(), te = K(""), w = K(""), T = K(""), E = K(Yn(r.skinId ?? sr.get("workbench.theme-skin", "light-blue")).id), D = K(), O = 0, k = 0, A = 0, j = 0;
|
|
3889
3997
|
Y(() => r.skinId, (e) => {
|
|
3890
3998
|
e && (E.value = Yn(e).id);
|
|
3891
3999
|
});
|
|
3892
4000
|
function re() {
|
|
3893
|
-
|
|
4001
|
+
te.value = "", w.value = "", T.value = "";
|
|
3894
4002
|
}
|
|
3895
4003
|
function ie() {
|
|
3896
|
-
++O, ++k, ++j, b.value = void 0, x.value = !1, S.value = !1,
|
|
4004
|
+
++O, ++k, ++j, b.value = void 0, x.value = !1, S.value = !1, ee.value = !1, C.value = void 0, D.value = void 0, re();
|
|
3897
4005
|
}
|
|
3898
4006
|
Y([
|
|
3899
4007
|
m,
|
|
@@ -3905,18 +4013,18 @@ var tu = /* @__PURE__ */ W({
|
|
|
3905
4013
|
immediate: !0,
|
|
3906
4014
|
flush: "sync"
|
|
3907
4015
|
}), Y(b, () => {
|
|
3908
|
-
++A,
|
|
4016
|
+
++A, ee.value = !1;
|
|
3909
4017
|
}, { flush: "sync" }), Y(v.available, (e) => {
|
|
3910
4018
|
!e && b.value === "accessTokens" && N();
|
|
3911
4019
|
}), Y(y, (e) => {
|
|
3912
4020
|
b.value && !x.value && e && !e.some((e) => e.key === b.value) && ie();
|
|
3913
4021
|
});
|
|
3914
4022
|
function N() {
|
|
3915
|
-
S.value || (++k, b.value = void 0, x.value = !1,
|
|
4023
|
+
S.value || (++k, b.value = void 0, x.value = !1, C.value = void 0, re());
|
|
3916
4024
|
}
|
|
3917
4025
|
function ae(e) {
|
|
3918
|
-
let t =
|
|
3919
|
-
|
|
4026
|
+
let t = Vr(e);
|
|
4027
|
+
C.value = () => on(t, a);
|
|
3920
4028
|
}
|
|
3921
4029
|
function oe(e) {
|
|
3922
4030
|
E.value = e, i("update:skinId", e);
|
|
@@ -3925,7 +4033,7 @@ var tu = /* @__PURE__ */ W({
|
|
|
3925
4033
|
if (r.context?.preferencePersistence === "local") return;
|
|
3926
4034
|
let e = ++j;
|
|
3927
4035
|
try {
|
|
3928
|
-
let t = await
|
|
4036
|
+
let t = await tu(sr, E.value, () => e === j);
|
|
3929
4037
|
e === j && oe(t);
|
|
3930
4038
|
} catch {}
|
|
3931
4039
|
}
|
|
@@ -3935,10 +4043,10 @@ var tu = /* @__PURE__ */ W({
|
|
|
3935
4043
|
oe(e), S.value = !0, D.value = void 0;
|
|
3936
4044
|
try {
|
|
3937
4045
|
if (r.context?.preferencePersistence === "local") {
|
|
3938
|
-
await sr.set(
|
|
4046
|
+
await sr.set(eu, e, { persistence: "local" });
|
|
3939
4047
|
return;
|
|
3940
4048
|
}
|
|
3941
|
-
let i = await
|
|
4049
|
+
let i = await nu(sr, e, n, () => t === j);
|
|
3942
4050
|
t === j && (oe(i.skinId), D.value = i.failure);
|
|
3943
4051
|
} finally {
|
|
3944
4052
|
t === j && (S.value = !1);
|
|
@@ -3957,7 +4065,7 @@ var tu = /* @__PURE__ */ W({
|
|
|
3957
4065
|
key: e,
|
|
3958
4066
|
currentUser: r.context.currentUser
|
|
3959
4067
|
}) || n !== k || a !== m() || !y.value?.some((t) => t.key === e && !t.disabled)) return;
|
|
3960
|
-
if (
|
|
4068
|
+
if (C.value = void 0, D.value = void 0, e.includes(".")) {
|
|
3961
4069
|
i("userCommand", e);
|
|
3962
4070
|
return;
|
|
3963
4071
|
}
|
|
@@ -3976,19 +4084,19 @@ var tu = /* @__PURE__ */ W({
|
|
|
3976
4084
|
}
|
|
3977
4085
|
async function ue() {
|
|
3978
4086
|
let e = O, t = ++A, n = () => e === O && t === A && b.value === "profile";
|
|
3979
|
-
|
|
4087
|
+
ee.value = !0;
|
|
3980
4088
|
try {
|
|
3981
4089
|
await g.refresh();
|
|
3982
4090
|
} catch (e) {
|
|
3983
4091
|
n() && ae(e);
|
|
3984
4092
|
} finally {
|
|
3985
|
-
n() && (
|
|
4093
|
+
n() && (ee.value = !1);
|
|
3986
4094
|
}
|
|
3987
4095
|
}
|
|
3988
4096
|
async function de(e) {
|
|
3989
4097
|
if (S.value) return;
|
|
3990
4098
|
let t = O;
|
|
3991
|
-
S.value = !0,
|
|
4099
|
+
S.value = !0, C.value = void 0;
|
|
3992
4100
|
try {
|
|
3993
4101
|
await g.save(e) && t === O && (b.value = void 0, ft(a.t("platform.screen.App.your-profile-has-been-saved", "个人资料已保存")));
|
|
3994
4102
|
} catch (e) {
|
|
@@ -3998,29 +4106,29 @@ var tu = /* @__PURE__ */ W({
|
|
|
3998
4106
|
}
|
|
3999
4107
|
}
|
|
4000
4108
|
function fe() {
|
|
4001
|
-
if (!
|
|
4002
|
-
if (!
|
|
4003
|
-
if (
|
|
4004
|
-
if (
|
|
4109
|
+
if (!te.value.trim()) return a.t("platform.screen.App.enter-your-current-password", "请输入当前密码");
|
|
4110
|
+
if (!w.value.trim()) return a.t("platform.screen.App.enter-your-new-password", "请输入新密码");
|
|
4111
|
+
if (w.value !== T.value) return a.t("platform.screen.App.the-new-passwords-do-not-match", "两次输入的新密码不一致");
|
|
4112
|
+
if (te.value === w.value) return a.t("platform.screen.App.the-new-password-must-differ-from-the-current", "新密码不能与当前密码相同");
|
|
4005
4113
|
}
|
|
4006
4114
|
async function pe() {
|
|
4007
4115
|
if (S.value) return;
|
|
4008
4116
|
let e = fe();
|
|
4009
4117
|
if (e) {
|
|
4010
|
-
|
|
4118
|
+
C.value = () => e;
|
|
4011
4119
|
return;
|
|
4012
4120
|
}
|
|
4013
4121
|
let t = p();
|
|
4014
4122
|
if (!t) {
|
|
4015
|
-
|
|
4123
|
+
C.value = () => a.t("platform.screen.App.your-session-is-no-longer-valid-please-sign", "登录已失效,请重新登录");
|
|
4016
4124
|
return;
|
|
4017
4125
|
}
|
|
4018
4126
|
let n = O;
|
|
4019
|
-
S.value = !0,
|
|
4127
|
+
S.value = !0, C.value = void 0;
|
|
4020
4128
|
try {
|
|
4021
4129
|
await l.changeOwnPassword({
|
|
4022
|
-
currentPassword:
|
|
4023
|
-
newPassword:
|
|
4130
|
+
currentPassword: te.value,
|
|
4131
|
+
newPassword: w.value
|
|
4024
4132
|
}, t), n === O && (b.value = void 0, re(), i("logout", "passwordChanged"));
|
|
4025
4133
|
} catch (e) {
|
|
4026
4134
|
n === O && ae(e);
|
|
@@ -4029,10 +4137,10 @@ var tu = /* @__PURE__ */ W({
|
|
|
4029
4137
|
}
|
|
4030
4138
|
}
|
|
4031
4139
|
async function he() {
|
|
4032
|
-
await
|
|
4140
|
+
await ma(), ie(), x.value = !0, b.value = "changePassword";
|
|
4033
4141
|
}
|
|
4034
|
-
return
|
|
4035
|
-
|
|
4142
|
+
return va(ie), t({ requestPasswordChange: he }), (t, n) => (G(), B(ca, null, [
|
|
4143
|
+
wa(t.$slots, "default", {
|
|
4036
4144
|
items: y.value,
|
|
4037
4145
|
select: le,
|
|
4038
4146
|
refresh: J(v).refresh,
|
|
@@ -4045,16 +4153,16 @@ var tu = /* @__PURE__ */ W({
|
|
|
4045
4153
|
"identity-scope": h.value,
|
|
4046
4154
|
"onUpdate:open": n[0] ||= (e) => !e && N()
|
|
4047
4155
|
}, null, 8, ["open", "identity-scope"])) : z("v-if", !0),
|
|
4048
|
-
U(
|
|
4049
|
-
"current-password":
|
|
4050
|
-
"onUpdate:currentPassword": n[1] ||= (e) =>
|
|
4051
|
-
"new-password":
|
|
4052
|
-
"onUpdate:newPassword": n[2] ||= (e) =>
|
|
4053
|
-
"confirm-password":
|
|
4054
|
-
"onUpdate:confirmPassword": n[3] ||= (e) =>
|
|
4156
|
+
U(Xc, {
|
|
4157
|
+
"current-password": te.value,
|
|
4158
|
+
"onUpdate:currentPassword": n[1] ||= (e) => te.value = e,
|
|
4159
|
+
"new-password": w.value,
|
|
4160
|
+
"onUpdate:newPassword": n[2] ||= (e) => w.value = e,
|
|
4161
|
+
"confirm-password": T.value,
|
|
4162
|
+
"onUpdate:confirmPassword": n[3] ||= (e) => T.value = e,
|
|
4055
4163
|
open: b.value === "changePassword",
|
|
4056
4164
|
saving: S.value,
|
|
4057
|
-
error:
|
|
4165
|
+
error: C.value?.(),
|
|
4058
4166
|
onClose: N,
|
|
4059
4167
|
onSubmit: pe
|
|
4060
4168
|
}, null, 8, [
|
|
@@ -4065,12 +4173,12 @@ var tu = /* @__PURE__ */ W({
|
|
|
4065
4173
|
"saving",
|
|
4066
4174
|
"error"
|
|
4067
4175
|
]),
|
|
4068
|
-
U(
|
|
4176
|
+
U(Vl, {
|
|
4069
4177
|
open: b.value === "profile",
|
|
4070
4178
|
profile: J(g).profile.value,
|
|
4071
|
-
loading:
|
|
4179
|
+
loading: ee.value,
|
|
4072
4180
|
saving: S.value,
|
|
4073
|
-
error:
|
|
4181
|
+
error: C.value?.(),
|
|
4074
4182
|
"external-login-client": J(u),
|
|
4075
4183
|
http: f.value,
|
|
4076
4184
|
"auth-token": b.value === "profile" ? e.context?.token : void 0,
|
|
@@ -4086,7 +4194,7 @@ var tu = /* @__PURE__ */ W({
|
|
|
4086
4194
|
"http",
|
|
4087
4195
|
"auth-token"
|
|
4088
4196
|
]),
|
|
4089
|
-
U(
|
|
4197
|
+
U(Kl, {
|
|
4090
4198
|
open: b.value === "accessTokens",
|
|
4091
4199
|
client: J(d),
|
|
4092
4200
|
"session-token": e.context?.token,
|
|
@@ -4096,7 +4204,7 @@ var tu = /* @__PURE__ */ W({
|
|
|
4096
4204
|
"client",
|
|
4097
4205
|
"session-token"
|
|
4098
4206
|
]),
|
|
4099
|
-
U(
|
|
4207
|
+
U(Zl, {
|
|
4100
4208
|
open: b.value === "themeSkin",
|
|
4101
4209
|
skins: J(fn),
|
|
4102
4210
|
"active-skin-id": E.value,
|
|
@@ -4116,7 +4224,7 @@ var tu = /* @__PURE__ */ W({
|
|
|
4116
4224
|
});
|
|
4117
4225
|
//#endregion
|
|
4118
4226
|
//#region src/app/workbenchRouteSync.ts
|
|
4119
|
-
function
|
|
4227
|
+
function iu(e, t) {
|
|
4120
4228
|
if (e === t) return !0;
|
|
4121
4229
|
if (e === void 0 || t === void 0) return !1;
|
|
4122
4230
|
let n = (e) => {
|
|
@@ -4125,16 +4233,16 @@ function nu(e, t) {
|
|
|
4125
4233
|
};
|
|
4126
4234
|
return n(e) === n(t);
|
|
4127
4235
|
}
|
|
4128
|
-
function
|
|
4129
|
-
let r =
|
|
4130
|
-
return
|
|
4236
|
+
function au(e, t, n) {
|
|
4237
|
+
let r = cc(e) ?? "/";
|
|
4238
|
+
return iu(r, t) ? void 0 : {
|
|
4131
4239
|
url: r,
|
|
4132
4240
|
mode: n
|
|
4133
4241
|
};
|
|
4134
4242
|
}
|
|
4135
4243
|
//#endregion
|
|
4136
4244
|
//#region src/consumer/AppWorkbenchShell.vue
|
|
4137
|
-
var
|
|
4245
|
+
var ou = /* @__PURE__ */ W({
|
|
4138
4246
|
name: "AppWorkbenchShell",
|
|
4139
4247
|
inheritAttrs: !1,
|
|
4140
4248
|
__name: "AppWorkbenchShell",
|
|
@@ -4193,16 +4301,16 @@ var iu = /* @__PURE__ */ W({
|
|
|
4193
4301
|
let t = n(e);
|
|
4194
4302
|
t && h(e, t);
|
|
4195
4303
|
},
|
|
4196
|
-
openRoute:
|
|
4197
|
-
replaceRoute:
|
|
4198
|
-
closeCurrentTab:
|
|
4199
|
-
openPage:
|
|
4304
|
+
openRoute: te,
|
|
4305
|
+
replaceRoute: w,
|
|
4306
|
+
closeCurrentTab: ne,
|
|
4307
|
+
openPage: C,
|
|
4200
4308
|
replacePage: k,
|
|
4201
4309
|
closePage: v,
|
|
4202
4310
|
setTabName: O
|
|
4203
|
-
}),
|
|
4311
|
+
}), ya(() => {
|
|
4204
4312
|
p = !0, ke(), re(), j(i.location);
|
|
4205
|
-
}),
|
|
4313
|
+
}), va(() => {
|
|
4206
4314
|
p = !1;
|
|
4207
4315
|
}), Y(() => i.location, (e) => j(e));
|
|
4208
4316
|
function m(e, t = void 0) {
|
|
@@ -4210,10 +4318,10 @@ var iu = /* @__PURE__ */ W({
|
|
|
4210
4318
|
}
|
|
4211
4319
|
function h(e, t) {
|
|
4212
4320
|
if (t.openMode === "window") {
|
|
4213
|
-
window.open(
|
|
4321
|
+
window.open(sc(e, t), "_blank", "noopener,noreferrer");
|
|
4214
4322
|
return;
|
|
4215
4323
|
}
|
|
4216
|
-
let n =
|
|
4324
|
+
let n = ac(i.startup.tabs ?? [], e, t, i.resolveOptions);
|
|
4217
4325
|
m({
|
|
4218
4326
|
...i.startup,
|
|
4219
4327
|
tabs: n.tabs,
|
|
@@ -4231,8 +4339,8 @@ var iu = /* @__PURE__ */ W({
|
|
|
4231
4339
|
}
|
|
4232
4340
|
async function v(e) {
|
|
4233
4341
|
if (!await De([e], "close", r) || !p) return;
|
|
4234
|
-
let t =
|
|
4235
|
-
u.value.some((t) => t.key === e) && S(
|
|
4342
|
+
let t = mc(i.startup.tabs ?? [], i.startup.activeTabKey, e);
|
|
4343
|
+
u.value.some((t) => t.key === e) && S(Cc(u.value, [e])), m({
|
|
4236
4344
|
...i.startup,
|
|
4237
4345
|
tabs: t.tabs,
|
|
4238
4346
|
activeTabKey: t.activeTabKey
|
|
@@ -4240,15 +4348,15 @@ var iu = /* @__PURE__ */ W({
|
|
|
4240
4348
|
}
|
|
4241
4349
|
async function y(e) {
|
|
4242
4350
|
if (!await De(e, "close", r) || !p) return;
|
|
4243
|
-
let t =
|
|
4244
|
-
n.length > 0 && S(
|
|
4351
|
+
let t = hc(i.startup.tabs ?? [], i.startup.activeTabKey, e), n = e.filter((e) => u.value.some((t) => t.key === e));
|
|
4352
|
+
n.length > 0 && S(Cc(u.value, n)), m({
|
|
4245
4353
|
...i.startup,
|
|
4246
4354
|
tabs: t.tabs,
|
|
4247
4355
|
activeTabKey: t.activeTabKey
|
|
4248
4356
|
}, "replace"), e.forEach(Ce);
|
|
4249
4357
|
}
|
|
4250
4358
|
function b(e) {
|
|
4251
|
-
let t =
|
|
4359
|
+
let t = wc(i.startup.tabs ?? [], e, u.value.map((e) => e.key)), n = t.filter((e) => u.value.some((t) => t.key === e.key));
|
|
4252
4360
|
n.map((e) => e.key).join("|") !== u.value.map((e) => e.key).join("|") && S(n), m({
|
|
4253
4361
|
...i.startup,
|
|
4254
4362
|
tabs: t
|
|
@@ -4257,42 +4365,42 @@ var iu = /* @__PURE__ */ W({
|
|
|
4257
4365
|
function x(e) {
|
|
4258
4366
|
let t = i.startup.tabs?.find((t) => t.key === e);
|
|
4259
4367
|
if (!t) return;
|
|
4260
|
-
let n = u.value.some((t) => t.key === e), r = u.value, a = n ?
|
|
4368
|
+
let n = u.value.some((t) => t.key === e), r = u.value, a = n ? Cc(r, [e]) : xc(r, t);
|
|
4261
4369
|
S(a), m({
|
|
4262
4370
|
...i.startup,
|
|
4263
|
-
tabs:
|
|
4371
|
+
tabs: gc(i.startup.tabs ?? [], a)
|
|
4264
4372
|
});
|
|
4265
4373
|
}
|
|
4266
4374
|
function S(e) {
|
|
4267
4375
|
let t = u.value, n = ++d;
|
|
4268
|
-
u.value = e,
|
|
4376
|
+
u.value = e, ee(e, t, n);
|
|
4269
4377
|
}
|
|
4270
|
-
async function
|
|
4378
|
+
async function ee(e, t, n) {
|
|
4271
4379
|
try {
|
|
4272
|
-
f = f.catch(() => void 0).then(() =>
|
|
4380
|
+
f = f.catch(() => void 0).then(() => Gc(sr, e)), await f;
|
|
4273
4381
|
} catch {
|
|
4274
4382
|
if (n !== d) return;
|
|
4275
4383
|
u.value = t, m({
|
|
4276
4384
|
...i.startup,
|
|
4277
|
-
tabs:
|
|
4385
|
+
tabs: gc(i.startup.tabs ?? [], t, !1)
|
|
4278
4386
|
});
|
|
4279
4387
|
}
|
|
4280
4388
|
}
|
|
4281
|
-
function
|
|
4282
|
-
let t =
|
|
4389
|
+
function C(e) {
|
|
4390
|
+
let t = oc(i.startup.tabs ?? [], e);
|
|
4283
4391
|
return m({
|
|
4284
4392
|
...i.startup,
|
|
4285
4393
|
tabs: t.tabs,
|
|
4286
4394
|
activeTabKey: t.activeTabKey
|
|
4287
4395
|
}, "push"), { created: t.created };
|
|
4288
4396
|
}
|
|
4289
|
-
function
|
|
4397
|
+
function te(e, t = {}) {
|
|
4290
4398
|
return D(je(e, t), "push", i.startup, t.tabTitle, t.newInstance);
|
|
4291
4399
|
}
|
|
4292
|
-
function
|
|
4400
|
+
function w(e, t = {}) {
|
|
4293
4401
|
let n = i.startup.activeTabKey, a = i.startup.tabs?.find((e) => e.key === n), o = je(e, t);
|
|
4294
4402
|
if (!n || !a) return D(o, "replace", i.startup, t.tabTitle);
|
|
4295
|
-
let s =
|
|
4403
|
+
let s = lc(i.startup, o, {
|
|
4296
4404
|
...i.resolveOptions,
|
|
4297
4405
|
title: t.tabTitle ?? i.resolveOptions.title
|
|
4298
4406
|
}, !1, r), c = s.tabs?.find((e) => e.key === s.activeTabKey);
|
|
@@ -4313,16 +4421,16 @@ var iu = /* @__PURE__ */ W({
|
|
|
4313
4421
|
activeTabKey: n
|
|
4314
4422
|
}, "replace"), { created: !1 };
|
|
4315
4423
|
}
|
|
4316
|
-
function
|
|
4424
|
+
function ne(e) {
|
|
4317
4425
|
let t = i.startup.activeTabKey;
|
|
4318
|
-
return t ? Pe([t]) ? (
|
|
4426
|
+
return t ? Pe([t]) ? (T(e, t), { created: !1 }) : E(e, t) : D(je(e), "replace", i.startup);
|
|
4319
4427
|
}
|
|
4320
|
-
async function
|
|
4428
|
+
async function T(e, t) {
|
|
4321
4429
|
if (await De([t], "close", r) && p && (i.startup.tabs ?? []).some((e) => e.key === t)) return E(e, t);
|
|
4322
4430
|
}
|
|
4323
4431
|
function E(e, t) {
|
|
4324
|
-
let n =
|
|
4325
|
-
Ce(t), u.value.some((e) => e.key === t) && S(
|
|
4432
|
+
let n = mc(i.startup.tabs ?? [], i.startup.activeTabKey, t);
|
|
4433
|
+
Ce(t), u.value.some((e) => e.key === t) && S(Cc(u.value, [t]));
|
|
4326
4434
|
let r = n.tabs.find((t) => {
|
|
4327
4435
|
let n = t.fullPath ?? (t.pageDescriptor ? Fe(t.pageDescriptor) : void 0);
|
|
4328
4436
|
return n && new URL(n, "http://muyun.local").pathname === e;
|
|
@@ -4338,20 +4446,20 @@ var iu = /* @__PURE__ */ W({
|
|
|
4338
4446
|
});
|
|
4339
4447
|
}
|
|
4340
4448
|
function D(e, t, n, a, o = !1) {
|
|
4341
|
-
let s = new Set((n.tabs ?? []).map((e) => e.key)), c =
|
|
4449
|
+
let s = new Set((n.tabs ?? []).map((e) => e.key)), c = lc(n, e, {
|
|
4342
4450
|
...i.resolveOptions,
|
|
4343
4451
|
title: a ?? i.resolveOptions.title
|
|
4344
4452
|
}, o, r);
|
|
4345
4453
|
return a && c.activeTabKey && (c = {
|
|
4346
4454
|
...c,
|
|
4347
|
-
tabs: (c.tabs ?? []).map((e) => e.key === c.activeTabKey ?
|
|
4455
|
+
tabs: (c.tabs ?? []).map((e) => e.key === c.activeTabKey ? Ic(e, a) : e)
|
|
4348
4456
|
}), m(c, t), { created: !(!c.activeTabKey || s.has(c.activeTabKey)) };
|
|
4349
4457
|
}
|
|
4350
4458
|
function O(e, t) {
|
|
4351
4459
|
let n = t.trim();
|
|
4352
4460
|
e && n && m({
|
|
4353
4461
|
...i.startup,
|
|
4354
|
-
tabs: (i.startup.tabs ?? []).map((t) => t.instanceKey === e ?
|
|
4462
|
+
tabs: (i.startup.tabs ?? []).map((t) => t.instanceKey === e ? Ic(t, n) : t)
|
|
4355
4463
|
});
|
|
4356
4464
|
}
|
|
4357
4465
|
function k(e, t) {
|
|
@@ -4361,32 +4469,32 @@ var iu = /* @__PURE__ */ W({
|
|
|
4361
4469
|
pageDescriptor: t,
|
|
4362
4470
|
restoreState: { url: Fe(t) }
|
|
4363
4471
|
} : n), r = n.find((t) => t.key === e);
|
|
4364
|
-
r && u.value.some((t) => t.key === e) && S(
|
|
4472
|
+
r && u.value.some((t) => t.key === e) && S(xc(u.value, r)), m({
|
|
4365
4473
|
...i.startup,
|
|
4366
4474
|
tabs: n
|
|
4367
4475
|
}, "replace");
|
|
4368
4476
|
}
|
|
4369
4477
|
function A(e, t) {
|
|
4370
|
-
let n =
|
|
4478
|
+
let n = au(e, i.location, t);
|
|
4371
4479
|
n && o("navigate", n);
|
|
4372
4480
|
}
|
|
4373
4481
|
function j(e) {
|
|
4374
|
-
m(
|
|
4482
|
+
m(lc(i.startup, e, i.resolveOptions, !1, r));
|
|
4375
4483
|
}
|
|
4376
4484
|
async function re() {
|
|
4377
4485
|
let e = d;
|
|
4378
4486
|
try {
|
|
4379
|
-
let t =
|
|
4487
|
+
let t = vc(await Wc(sr), i.startup.menus, i.resolveOptions, r);
|
|
4380
4488
|
if (!p || e !== d) return;
|
|
4381
4489
|
u.value = t;
|
|
4382
4490
|
let n = new Set(t.map((e) => e.key)), a = [...t, ...(i.startup.tabs ?? []).filter((e) => !n.has(e.key))];
|
|
4383
4491
|
m({
|
|
4384
4492
|
...i.startup,
|
|
4385
|
-
tabs:
|
|
4493
|
+
tabs: gc(a, t)
|
|
4386
4494
|
});
|
|
4387
4495
|
} catch {}
|
|
4388
4496
|
}
|
|
4389
|
-
return (t, n) => (G(), R(
|
|
4497
|
+
return (t, n) => (G(), R(ru, {
|
|
4390
4498
|
context: s.value,
|
|
4391
4499
|
menu: e.accountMenu,
|
|
4392
4500
|
"before-command": c,
|
|
@@ -4395,7 +4503,7 @@ var iu = /* @__PURE__ */ W({
|
|
|
4395
4503
|
onLogout: n[2] ||= (e) => o("logout", e),
|
|
4396
4504
|
"onUpdate:skinId": n[3] ||= (e) => o("update:skinId", e)
|
|
4397
4505
|
}, {
|
|
4398
|
-
default: X((r) => [U(a,
|
|
4506
|
+
default: X((r) => [U(a, pa(t.$attrs, {
|
|
4399
4507
|
startup: e.startup,
|
|
4400
4508
|
"current-user-employee-name": e.currentUserEmployeeName ?? r.profile?.employee?.title,
|
|
4401
4509
|
"managed-account-menu-items": r.items,
|
|
@@ -4415,12 +4523,12 @@ var iu = /* @__PURE__ */ W({
|
|
|
4415
4523
|
onUserCommand: (e) => r.select(e),
|
|
4416
4524
|
onAccountMenuOpen: (e) => r.refresh(),
|
|
4417
4525
|
onRetryLoad: n[0] ||= (e) => o("retryLoad")
|
|
4418
|
-
}),
|
|
4419
|
-
default: X(({ pageDescriptor: e }) => [
|
|
4526
|
+
}), la({
|
|
4527
|
+
default: X(({ pageDescriptor: e }) => [wa(t.$slots, "default", { pageDescriptor: e })]),
|
|
4420
4528
|
_: 2
|
|
4421
4529
|
}, [t.$slots["topbar-actions"] ? {
|
|
4422
4530
|
name: "topbar-actions",
|
|
4423
|
-
fn: X((e) => [
|
|
4531
|
+
fn: X((e) => [wa(t.$slots, "topbar-actions", ga(da(e)))]),
|
|
4424
4532
|
key: "0"
|
|
4425
4533
|
} : void 0]), 1040, [
|
|
4426
4534
|
"startup",
|
|
@@ -4442,10 +4550,10 @@ var iu = /* @__PURE__ */ W({
|
|
|
4442
4550
|
"skin-id"
|
|
4443
4551
|
]));
|
|
4444
4552
|
}
|
|
4445
|
-
}),
|
|
4553
|
+
}), su = { class: "external-provisioning-confirmation" }, cu = {
|
|
4446
4554
|
key: 0,
|
|
4447
4555
|
role: "alert"
|
|
4448
|
-
},
|
|
4556
|
+
}, lu = /*#__PURE__*/ Hi(/* @__PURE__ */ W({
|
|
4449
4557
|
__name: "ExternalProvisioningConfirmation",
|
|
4450
4558
|
props: {
|
|
4451
4559
|
confirmation: {},
|
|
@@ -4455,7 +4563,7 @@ var iu = /* @__PURE__ */ W({
|
|
|
4455
4563
|
emits: ["confirm", "cancel"],
|
|
4456
4564
|
setup(e) {
|
|
4457
4565
|
let t = I();
|
|
4458
|
-
return (n, r) => (G(), B("main",
|
|
4566
|
+
return (n, r) => (G(), B("main", su, [
|
|
4459
4567
|
V("h1", null, q(J(t).t("platform.external-login.confirm-title", "确认加入")), 1),
|
|
4460
4568
|
V("p", null, q(J(t).t("platform.external-login.confirm-explanation", "请确认以下身份资料。确认后将创建本系统账号。")), 1),
|
|
4461
4569
|
V("dl", null, [
|
|
@@ -4466,7 +4574,7 @@ var iu = /* @__PURE__ */ W({
|
|
|
4466
4574
|
V("dt", null, q(J(t).t("platform.external-login.placements", "任职归属")), 1),
|
|
4467
4575
|
V("dd", null, q((e.confirmation.placements ?? e.confirmation.departmentIds).join(", ")), 1)
|
|
4468
4576
|
]),
|
|
4469
|
-
e.error ? (G(), B("p",
|
|
4577
|
+
e.error ? (G(), B("p", cu, q(e.error), 1)) : z("v-if", !0),
|
|
4470
4578
|
U(J(P), {
|
|
4471
4579
|
disabled: e.busy,
|
|
4472
4580
|
onClick: r[0] ||= (e) => n.$emit("confirm")
|
|
@@ -4486,45 +4594,45 @@ var iu = /* @__PURE__ */ W({
|
|
|
4486
4594
|
}), [["__scopeId", "data-v-90a45828"]]);
|
|
4487
4595
|
//#endregion
|
|
4488
4596
|
//#region src/app/loginTenant.ts
|
|
4489
|
-
function
|
|
4490
|
-
let i =
|
|
4597
|
+
function uu(e, t = mu(), n = hu(), r = "/") {
|
|
4598
|
+
let i = pu(t, n === fu(r));
|
|
4491
4599
|
return i ? {
|
|
4492
4600
|
tenantId: i,
|
|
4493
4601
|
tenantLocked: !0
|
|
4494
4602
|
} : {
|
|
4495
|
-
tenantId:
|
|
4603
|
+
tenantId: du(e),
|
|
4496
4604
|
tenantLocked: !1
|
|
4497
4605
|
};
|
|
4498
4606
|
}
|
|
4499
|
-
function
|
|
4607
|
+
function du(e) {
|
|
4500
4608
|
return e?.trim() ?? "";
|
|
4501
4609
|
}
|
|
4502
|
-
function
|
|
4610
|
+
function fu(e) {
|
|
4503
4611
|
let t = `/${(e?.trim() || "/").replace(/^\/+|\/+$/g, "")}`.replace(/^\/\/+/g, "/") || "/";
|
|
4504
4612
|
return t === "/" ? t : `${t}/`;
|
|
4505
4613
|
}
|
|
4506
|
-
function
|
|
4507
|
-
let n = new URLSearchParams(e.startsWith("?") ? e : `?${e}`), r =
|
|
4508
|
-
return r || !t ? r :
|
|
4614
|
+
function pu(e, t) {
|
|
4615
|
+
let n = new URLSearchParams(e.startsWith("?") ? e : `?${e}`), r = du(n.get("_muyunTenantId"));
|
|
4616
|
+
return r || !t ? r : du(n.get("tenantId")) || du(n.get("tenant"));
|
|
4509
4617
|
}
|
|
4510
|
-
function
|
|
4618
|
+
function mu() {
|
|
4511
4619
|
return typeof window > "u" ? "" : window.location.search;
|
|
4512
4620
|
}
|
|
4513
|
-
function
|
|
4621
|
+
function hu() {
|
|
4514
4622
|
return typeof window > "u" ? "/" : window.location.pathname;
|
|
4515
4623
|
}
|
|
4516
4624
|
//#endregion
|
|
4517
4625
|
//#region src/app/LoginView.vue?vue&type=script&setup=true&lang.ts
|
|
4518
|
-
var
|
|
4626
|
+
var gu = { class: "login-language" }, _u = { class: "login-page" }, vu = { class: "login-panel" }, yu = { class: "login-brand" }, bu = ["src"], xu = { key: 1 }, Su = { key: 0 }, Cu = {
|
|
4519
4627
|
key: 1,
|
|
4520
4628
|
class: "login-subtitle"
|
|
4521
|
-
},
|
|
4629
|
+
}, wu = {
|
|
4522
4630
|
key: 0,
|
|
4523
4631
|
class: "login-error"
|
|
4524
|
-
},
|
|
4632
|
+
}, Tu = { key: 0 }, Eu = {
|
|
4525
4633
|
key: 3,
|
|
4526
4634
|
class: "login-external"
|
|
4527
|
-
},
|
|
4635
|
+
}, Du = { class: "login-external-divider" }, Ou = { class: "login-context" }, ku = /*#__PURE__*/ Hi(/* @__PURE__ */ W({
|
|
4528
4636
|
name: "LoginView",
|
|
4529
4637
|
__name: "LoginView",
|
|
4530
4638
|
props: {
|
|
@@ -4539,10 +4647,10 @@ var mu = { class: "login-language" }, hu = { class: "login-page" }, gu = { class
|
|
|
4539
4647
|
setup(e, { emit: t }) {
|
|
4540
4648
|
let n = I(), r = K();
|
|
4541
4649
|
function i() {
|
|
4542
|
-
r.value &&
|
|
4650
|
+
r.value && $c(r.value.state), r.value = void 0;
|
|
4543
4651
|
}
|
|
4544
|
-
let a = e, o = t, s =
|
|
4545
|
-
|
|
4652
|
+
let a = e, o = t, s = uu(void 0), c = K(s.tenantId), l = s.tenantLocked, u = K(du(a.initialUsername) || du(void 0)), d = K(du(void 0)), f = K(!1), p = K(), m = K(!1), h = K(), g = K(""), _ = K(""), v = K(), y = K(!1), b = K(), x = K([]), S = K(!1), ee = L(() => !l || !y.value && !b.value), C = L(() => v.value?.mode !== "logoOnly"), te = L(() => v.value?.title || n.t("platform.screen.LoginView.platform-sign-in", "平台登录")), w = L(() => v.value?.subtitle);
|
|
4653
|
+
ya(async () => {
|
|
4546
4654
|
if (l && c.value) {
|
|
4547
4655
|
y.value = !0;
|
|
4548
4656
|
try {
|
|
@@ -4556,23 +4664,23 @@ var mu = { class: "login-language" }, hu = { class: "login-page" }, gu = { class
|
|
|
4556
4664
|
}
|
|
4557
4665
|
}
|
|
4558
4666
|
});
|
|
4559
|
-
async function
|
|
4667
|
+
async function ne(e) {
|
|
4560
4668
|
if (a.externalLoginClient) {
|
|
4561
4669
|
p.value = void 0, S.value = !0;
|
|
4562
4670
|
try {
|
|
4563
4671
|
i();
|
|
4564
4672
|
let t = await a.externalLoginClient.startLogin(e.providerId, c.value);
|
|
4565
|
-
|
|
4673
|
+
Qc(t, {
|
|
4566
4674
|
providerId: e.providerId,
|
|
4567
4675
|
purpose: "login",
|
|
4568
4676
|
tenantId: c.value
|
|
4569
|
-
}), t.qrCode ? (r.value = t, S.value = !1) :
|
|
4677
|
+
}), t.qrCode ? (r.value = t, S.value = !1) : el(t.authorizationUrl);
|
|
4570
4678
|
} catch (e) {
|
|
4571
4679
|
p.value = () => E(e), S.value = !1;
|
|
4572
4680
|
}
|
|
4573
4681
|
}
|
|
4574
4682
|
}
|
|
4575
|
-
async function
|
|
4683
|
+
async function T() {
|
|
4576
4684
|
p.value = void 0, f.value = !0;
|
|
4577
4685
|
try {
|
|
4578
4686
|
let e = await a.authClient.login({
|
|
@@ -4592,7 +4700,7 @@ var mu = { class: "login-language" }, hu = { class: "login-page" }, gu = { class
|
|
|
4592
4700
|
}
|
|
4593
4701
|
}
|
|
4594
4702
|
function E(e) {
|
|
4595
|
-
return e instanceof
|
|
4703
|
+
return e instanceof nn ? e.status === 403 ? n.t("platform.screen.LoginView.this-site-is-not-authorized-by-the-server", "当前站点未获后端授权,请联系管理员配置访问来源") : e.code === Xt.networkError || e.code === Xt.httpError || (e.status ?? 0) >= 500 ? n.t("platform.screen.LoginView.cannot-reach-the-server-check-its-status-and", "无法访问后端,请检查服务状态或站点授权配置") : e.code === Xt.loginBadCredentials ? n.t("platform.screen.LoginView.incorrect-username-or-password", "用户名或密码错误") : e.message : e instanceof Error ? e.message : n.t("platform.screen.LoginView.sign-in-failed-please-try-again-later", "登录失败,请稍后重试");
|
|
4596
4704
|
}
|
|
4597
4705
|
async function D() {
|
|
4598
4706
|
if (p.value = void 0, !h.value) {
|
|
@@ -4616,24 +4724,24 @@ var mu = { class: "login-language" }, hu = { class: "login-page" }, gu = { class
|
|
|
4616
4724
|
});
|
|
4617
4725
|
o("authenticated", e);
|
|
4618
4726
|
} catch (e) {
|
|
4619
|
-
p.value = () => e instanceof Error ?
|
|
4727
|
+
p.value = () => e instanceof Error ? on(Vr(e), n) : n.t("platform.screen.LoginView.password-change-failed", "密码修改失败,请重试");
|
|
4620
4728
|
} finally {
|
|
4621
4729
|
f.value = !1;
|
|
4622
4730
|
}
|
|
4623
4731
|
}
|
|
4624
|
-
return (t, a) => (G(), B(
|
|
4625
|
-
V("header", null, [V("div",
|
|
4732
|
+
return (t, a) => (G(), B(ca, null, [V("div", gu, [U(J(Re))]), V("main", _u, [V("section", vu, [
|
|
4733
|
+
V("header", null, [V("div", yu, [v.value?.lightLogo ? (G(), B("img", {
|
|
4626
4734
|
key: 0,
|
|
4627
4735
|
class: "login-logo",
|
|
4628
4736
|
src: v.value.lightLogo,
|
|
4629
4737
|
alt: ""
|
|
4630
|
-
}, null, 8,
|
|
4631
|
-
v.value?.lightLogo ? z("v-if", !0) : (G(), B("p",
|
|
4632
|
-
V("h1", null, q(
|
|
4633
|
-
|
|
4738
|
+
}, null, 8, bu)) : z("v-if", !0), C.value ? (G(), B("div", xu, [
|
|
4739
|
+
v.value?.lightLogo ? z("v-if", !0) : (G(), B("p", Su, "MuYun Platform")),
|
|
4740
|
+
V("h1", null, q(te.value), 1),
|
|
4741
|
+
w.value ? (G(), B("p", Cu, q(w.value), 1)) : z("v-if", !0)
|
|
4634
4742
|
])) : z("v-if", !0)])]),
|
|
4635
|
-
p.value || e.error || b.value ? (G(), B("p",
|
|
4636
|
-
r.value ? (G(), R(
|
|
4743
|
+
p.value || e.error || b.value ? (G(), B("p", wu, q(p.value?.() || e.error || b.value?.()), 1)) : z("v-if", !0),
|
|
4744
|
+
r.value ? (G(), R(pl, {
|
|
4637
4745
|
key: r.value.state,
|
|
4638
4746
|
start: r.value,
|
|
4639
4747
|
onClose: i
|
|
@@ -4641,9 +4749,9 @@ var mu = { class: "login-language" }, hu = { class: "login-page" }, gu = { class
|
|
|
4641
4749
|
m.value ? z("v-if", !0) : (G(), B("form", {
|
|
4642
4750
|
key: 2,
|
|
4643
4751
|
class: "login-form",
|
|
4644
|
-
onSubmit:
|
|
4752
|
+
onSubmit: ka(T, ["prevent"])
|
|
4645
4753
|
}, [
|
|
4646
|
-
J(l) ? z("v-if", !0) : (G(), B("label",
|
|
4754
|
+
J(l) ? z("v-if", !0) : (G(), B("label", Tu, [V("span", null, q(J(n).t("platform.screen.LoginView.tenant-id", "租户 ID")), 1), U(J(F), {
|
|
4647
4755
|
value: c.value,
|
|
4648
4756
|
"onUpdate:value": a[0] ||= (e) => c.value = e,
|
|
4649
4757
|
autocomplete: "organization",
|
|
@@ -4666,19 +4774,19 @@ var mu = { class: "login-language" }, hu = { class: "login-page" }, gu = { class
|
|
|
4666
4774
|
class: "login-submit",
|
|
4667
4775
|
"html-type": "submit",
|
|
4668
4776
|
type: "primary",
|
|
4669
|
-
disabled: !
|
|
4777
|
+
disabled: !ee.value,
|
|
4670
4778
|
loading: f.value || e.loading || y.value
|
|
4671
4779
|
}, {
|
|
4672
4780
|
default: X(() => [H(q(f.value || e.loading ? J(n).t("platform.screen.LoginView.signing-in", "登录中") : J(n).t("platform.screen.LoginView.sign-in", "登录")), 1)]),
|
|
4673
4781
|
_: 1
|
|
4674
4782
|
}, 8, ["disabled", "loading"])
|
|
4675
4783
|
], 32)),
|
|
4676
|
-
!m.value && x.value.length > 0 ? (G(), B("div",
|
|
4784
|
+
!m.value && x.value.length > 0 ? (G(), B("div", Eu, [V("p", Du, q(J(n).t("platform.screen.LoginView.or-sign-in-with", "或使用以下方式登录")), 1), (G(!0), B(ca, null, Ca(x.value, (e) => (G(), R(J(P), {
|
|
4677
4785
|
key: e.providerId,
|
|
4678
4786
|
class: "login-submit",
|
|
4679
4787
|
loading: S.value,
|
|
4680
4788
|
disabled: S.value,
|
|
4681
|
-
onClick: (t) =>
|
|
4789
|
+
onClick: (t) => ne(e)
|
|
4682
4790
|
}, {
|
|
4683
4791
|
default: X(() => [H(q(J(n).t("platform.screen.LoginView.sign-in-with", "使用 {provider} 登录", { provider: e.title })), 1)]),
|
|
4684
4792
|
_: 2
|
|
@@ -4689,9 +4797,9 @@ var mu = { class: "login-language" }, hu = { class: "login-page" }, gu = { class
|
|
|
4689
4797
|
]))), 128))])) : m.value ? (G(), B("form", {
|
|
4690
4798
|
key: 4,
|
|
4691
4799
|
class: "login-form",
|
|
4692
|
-
onSubmit:
|
|
4800
|
+
onSubmit: ka(D, ["prevent"])
|
|
4693
4801
|
}, [
|
|
4694
|
-
V("p",
|
|
4802
|
+
V("p", Ou, q(J(n).t("platform.screen.LoginView.change-your-current-password-before-entering-the-system", "当前密码需要修改后才能进入系统")), 1),
|
|
4695
4803
|
V("label", null, [V("span", null, q(J(n).t("platform.screen.LoginView.new-password", "新密码")), 1), U(J(F), {
|
|
4696
4804
|
value: g.value,
|
|
4697
4805
|
"onUpdate:value": a[3] ||= (e) => g.value = e,
|
|
@@ -4721,8 +4829,8 @@ var mu = { class: "login-language" }, hu = { class: "login-page" }, gu = { class
|
|
|
4721
4829
|
}), [["__scopeId", "data-v-96af9dc4"]]);
|
|
4722
4830
|
//#endregion
|
|
4723
4831
|
//#region src/consumer/userPreferencePersistence.ts
|
|
4724
|
-
function
|
|
4725
|
-
|
|
4832
|
+
function Au(e) {
|
|
4833
|
+
Zi({
|
|
4726
4834
|
load: async (t) => (await e().request({
|
|
4727
4835
|
path: `/platform.user-preference/${encodeURIComponent(t)}`,
|
|
4728
4836
|
query: { clientType: "WEB" }
|
|
@@ -4744,7 +4852,7 @@ function Ou(e) {
|
|
|
4744
4852
|
}
|
|
4745
4853
|
//#endregion
|
|
4746
4854
|
//#region src/platform-components/ReadonlyRecordWorkspace.vue?vue&type=script&setup=true&lang.ts
|
|
4747
|
-
var
|
|
4855
|
+
var ju = ["aria-label"], Mu = /*#__PURE__*/ Hi(/* @__PURE__ */ W({
|
|
4748
4856
|
name: "ReadonlyRecordWorkspace",
|
|
4749
4857
|
__name: "ReadonlyRecordWorkspace",
|
|
4750
4858
|
props: {
|
|
@@ -4762,11 +4870,11 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
|
|
|
4762
4870
|
}
|
|
4763
4871
|
},
|
|
4764
4872
|
setup(e, { expose: t }) {
|
|
4765
|
-
|
|
4766
|
-
let n = e, r = I(), i =
|
|
4873
|
+
Si("workspace");
|
|
4874
|
+
let n = e, r = I(), i = gi(r), a = K(), o = ti(a, rr(0)), s = K({}), c = K({}), l = K({}), u = K(0), d = L({
|
|
4767
4875
|
get: () => s.value.criteria,
|
|
4768
4876
|
set: (e) => {
|
|
4769
|
-
|
|
4877
|
+
T({
|
|
4770
4878
|
...s.value,
|
|
4771
4879
|
criteria: e
|
|
4772
4880
|
});
|
|
@@ -4774,7 +4882,7 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
|
|
|
4774
4882
|
}), f = L({
|
|
4775
4883
|
get: () => s.value.sorts,
|
|
4776
4884
|
set: (e) => {
|
|
4777
|
-
|
|
4885
|
+
T({
|
|
4778
4886
|
...s.value,
|
|
4779
4887
|
sorts: e
|
|
4780
4888
|
});
|
|
@@ -4785,12 +4893,12 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
|
|
|
4785
4893
|
n.view.scopeKey
|
|
4786
4894
|
])), _ = L(() => n.view.querySchema), v = L(() => _.value?.criteriaComposition ?? "TREE"), y = L(() => (_.value?.fields ?? []).filter((e) => !e.reference || !!n.referencePickerOf?.(e)).map((e) => ({
|
|
4787
4895
|
...e,
|
|
4788
|
-
title:
|
|
4896
|
+
title: ta(e.title ?? e.name, e.titleText, r)
|
|
4789
4897
|
}))), b = L(() => y.value.filter((e) => e.persistentControl)), x = L(() => Object.values(l.value).every((e) => e.valid));
|
|
4790
4898
|
function S(e) {
|
|
4791
4899
|
return b.value.flatMap((t) => {
|
|
4792
4900
|
let n = t.persistentControl, r = e?.[n.id] ?? n.defaultValues ?? [];
|
|
4793
|
-
return r.length ||
|
|
4901
|
+
return r.length || mi(n.operator) ? [{
|
|
4794
4902
|
kind: "CONDITION",
|
|
4795
4903
|
fieldName: t.name,
|
|
4796
4904
|
operator: n.operator,
|
|
@@ -4798,34 +4906,34 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
|
|
|
4798
4906
|
}] : [];
|
|
4799
4907
|
});
|
|
4800
4908
|
}
|
|
4801
|
-
let
|
|
4909
|
+
let ee = L(() => S(s.value.persistentValues)), C = L(() => b.value.map((e) => {
|
|
4802
4910
|
let t = e.persistentControl;
|
|
4803
4911
|
return {
|
|
4804
4912
|
...t,
|
|
4805
|
-
title:
|
|
4913
|
+
title: ta(t.title, t.titleText, r),
|
|
4806
4914
|
field: e,
|
|
4807
4915
|
values: c.value[t.id] ?? t.defaultValues ?? [],
|
|
4808
4916
|
options: n.queryOptionsByField[e.name],
|
|
4809
4917
|
referencePicker: n.referencePickerOf?.(e)
|
|
4810
4918
|
};
|
|
4811
4919
|
}));
|
|
4812
|
-
function
|
|
4813
|
-
x.value && !j.value &&
|
|
4920
|
+
function te() {
|
|
4921
|
+
x.value && !j.value && T({
|
|
4814
4922
|
...s.value,
|
|
4815
|
-
persistentValues: Object.fromEntries(
|
|
4923
|
+
persistentValues: Object.fromEntries(C.value.map((e) => [e.id, [...e.values]]))
|
|
4816
4924
|
});
|
|
4817
4925
|
}
|
|
4818
|
-
function
|
|
4819
|
-
c.value = {}, l.value = {}, u.value++,
|
|
4926
|
+
function w() {
|
|
4927
|
+
c.value = {}, l.value = {}, u.value++, T({
|
|
4820
4928
|
...s.value,
|
|
4821
4929
|
persistentValues: void 0
|
|
4822
4930
|
});
|
|
4823
4931
|
}
|
|
4824
|
-
let
|
|
4932
|
+
let ne = L(() => ({
|
|
4825
4933
|
...n.query,
|
|
4826
|
-
criteria:
|
|
4934
|
+
criteria: zi([
|
|
4827
4935
|
n.query?.criteria,
|
|
4828
|
-
...
|
|
4936
|
+
...ee.value,
|
|
4829
4937
|
d.value
|
|
4830
4938
|
]),
|
|
4831
4939
|
sorts: f.value ?? n.query?.sorts ?? _.value?.defaultSorts.map((e) => ({
|
|
@@ -4834,13 +4942,13 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
|
|
|
4834
4942
|
})),
|
|
4835
4943
|
quickSearchFields: _.value?.quickSearch.fields ?? n.query?.quickSearchFields
|
|
4836
4944
|
}));
|
|
4837
|
-
function
|
|
4838
|
-
let t = JSON.stringify(
|
|
4945
|
+
function T(e) {
|
|
4946
|
+
let t = JSON.stringify(ne.value), i = kr(zi([
|
|
4839
4947
|
n.query?.criteria,
|
|
4840
4948
|
...S(e.persistentValues),
|
|
4841
4949
|
e.criteria
|
|
4842
4950
|
]), r);
|
|
4843
|
-
h.value = i ?? "", !i && (s.value = e, JSON.stringify(
|
|
4951
|
+
h.value = i ?? "", !i && (s.value = e, JSON.stringify(ne.value) === t && k.goPage(1));
|
|
4844
4952
|
}
|
|
4845
4953
|
let E = L(() => JSON.stringify({
|
|
4846
4954
|
composition: v.value,
|
|
@@ -4871,9 +4979,9 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
|
|
|
4871
4979
|
function O(e) {
|
|
4872
4980
|
h.value = "", d.value = e;
|
|
4873
4981
|
}
|
|
4874
|
-
let k =
|
|
4982
|
+
let k = ia({
|
|
4875
4983
|
view: () => n.view,
|
|
4876
|
-
query:
|
|
4984
|
+
query: ne,
|
|
4877
4985
|
pageSize: n.pageSize,
|
|
4878
4986
|
contentLanguage: () => i.languageTag.value
|
|
4879
4987
|
}), { result: A, loading: j, error: re, selected: M, detail: ie, detailLoading: N, detailError: ae, pageNum: oe, pageSize: se } = k;
|
|
@@ -4888,7 +4996,7 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
|
|
|
4888
4996
|
}, { flush: "sync" });
|
|
4889
4997
|
let le = L(() => n.view.descriptor.page?.list), ue = L(() => Mr(le.value?.fields)), de = L(() => n.view.descriptor.page?.detail?.display ? vn(n.view.descriptor) : /* @__PURE__ */ new Map()), fe = L(() => !o.value), pe = L(() => le.value?.title?.text ?? le.value?.fields.title ?? n.view.viewCode), me = L(() => M.value ? n.view.detail?.title(M.value) ?? pe.value : pe.value), he = L(() => A.value?.pages ?? 0);
|
|
4890
4998
|
function ge(e) {
|
|
4891
|
-
return
|
|
4999
|
+
return on(Vr(e), r);
|
|
4892
5000
|
}
|
|
4893
5001
|
return t({
|
|
4894
5002
|
refresh: k.refresh,
|
|
@@ -4932,9 +5040,9 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
|
|
|
4932
5040
|
onPageChange: J(k).goPage,
|
|
4933
5041
|
onPageSizeChange: J(k).resizePage,
|
|
4934
5042
|
onRowClick: i[6] ||= (e) => J(k).select(e)
|
|
4935
|
-
},
|
|
5043
|
+
}, la({
|
|
4936
5044
|
persistentQueries: X(() => [U(Ze, {
|
|
4937
|
-
controls:
|
|
5045
|
+
controls: C.value,
|
|
4938
5046
|
"reset-key": `${g.value}:${u.value}`,
|
|
4939
5047
|
disabled: J(j),
|
|
4940
5048
|
valid: x.value,
|
|
@@ -4946,14 +5054,14 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
|
|
|
4946
5054
|
...l.value,
|
|
4947
5055
|
[e]: t
|
|
4948
5056
|
},
|
|
4949
|
-
onApply:
|
|
4950
|
-
onReset:
|
|
5057
|
+
onApply: te,
|
|
5058
|
+
onReset: w
|
|
4951
5059
|
}, null, 8, [
|
|
4952
5060
|
"controls",
|
|
4953
5061
|
"reset-key",
|
|
4954
5062
|
"disabled",
|
|
4955
5063
|
"valid"
|
|
4956
|
-
]),
|
|
5064
|
+
]), wa(t.$slots, "queries", {}, void 0, !0)]),
|
|
4957
5065
|
queryControls: X(() => [U(ei, {
|
|
4958
5066
|
"sort-visible": !!_.value,
|
|
4959
5067
|
"sort-fields": _.value?.fields.filter((e) => e.sortable) ?? [],
|
|
@@ -4975,7 +5083,7 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
|
|
|
4975
5083
|
"count",
|
|
4976
5084
|
"disabled"
|
|
4977
5085
|
])]),
|
|
4978
|
-
operations: X(() => [
|
|
5086
|
+
operations: X(() => [wa(t.$slots, "operations", { refresh: J(k).refresh }, void 0, !0)]),
|
|
4979
5087
|
beforeTable: X(() => [h.value ? (G(), R(J(Ft), {
|
|
4980
5088
|
key: 0,
|
|
4981
5089
|
message: h.value
|
|
@@ -4986,7 +5094,7 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
|
|
|
4986
5094
|
key: 3,
|
|
4987
5095
|
description: J(r).t("platform.read-view.empty", "暂无符合条件的记录")
|
|
4988
5096
|
}, null, 8, ["description"]))]),
|
|
4989
|
-
cell: X(({ column: n, record: r }) => [
|
|
5097
|
+
cell: X(({ column: n, record: r }) => [wa(t.$slots, "cell", {
|
|
4990
5098
|
column: ue.value.find((e) => e.key === n.key),
|
|
4991
5099
|
record: r
|
|
4992
5100
|
}, () => [U(Ir, {
|
|
@@ -5001,10 +5109,10 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
|
|
|
5001
5109
|
_: 2
|
|
5002
5110
|
}, [m.value ? {
|
|
5003
5111
|
name: "conditions",
|
|
5004
|
-
fn: X(() => [
|
|
5112
|
+
fn: X(() => [Oa(V("section", null, [(G(), R(wr, {
|
|
5005
5113
|
key: g.value,
|
|
5006
5114
|
fields: y.value,
|
|
5007
|
-
conjuncts: [...n.query?.criteria ? [n.query.criteria] : [], ...
|
|
5115
|
+
conjuncts: [...n.query?.criteria ? [n.query.criteria] : [], ...ee.value],
|
|
5008
5116
|
"excluded-field-names": v.value === "FLAT_AND" ? b.value.map((e) => e.name) : [],
|
|
5009
5117
|
"option-items-by-field": e.queryOptionsByField,
|
|
5010
5118
|
"reference-contexts": {},
|
|
@@ -5022,7 +5130,7 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
|
|
|
5022
5130
|
"reference-picker-of",
|
|
5023
5131
|
"disabled",
|
|
5024
5132
|
"composition"
|
|
5025
|
-
]))], 512), [[
|
|
5133
|
+
]))], 512), [[Da, p.value]])]),
|
|
5026
5134
|
key: "0"
|
|
5027
5135
|
} : void 0]), 1032, [
|
|
5028
5136
|
"title",
|
|
@@ -5049,20 +5157,20 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
|
|
|
5049
5157
|
"onQuickSearch",
|
|
5050
5158
|
"onPageChange",
|
|
5051
5159
|
"onPageSizeChange"
|
|
5052
|
-
]), U(
|
|
5160
|
+
]), U(ki, {
|
|
5053
5161
|
open: !!J(M),
|
|
5054
5162
|
docked: fe.value,
|
|
5055
5163
|
title: me.value,
|
|
5056
5164
|
dismissal: "dismissible",
|
|
5057
5165
|
onClose: J(k).closeDetail
|
|
5058
|
-
},
|
|
5166
|
+
}, la({
|
|
5059
5167
|
default: X(() => [J(ae) ? (G(), R(J(Ft), {
|
|
5060
5168
|
key: 0,
|
|
5061
5169
|
message: ge(J(ae))
|
|
5062
|
-
}, null, 8, ["message"])) : J(N) ? (G(), R(J(Jt), { key: 1 })) : J(M) && J(ie) ? (G(), B(
|
|
5170
|
+
}, null, 8, ["message"])) : J(N) ? (G(), R(J(Jt), { key: 1 })) : J(M) && J(ie) ? (G(), B(ca, { key: 2 }, [U(Cn, {
|
|
5063
5171
|
record: J(ie),
|
|
5064
5172
|
fields: de.value
|
|
5065
|
-
}, null, 8, ["record", "fields"]),
|
|
5173
|
+
}, null, 8, ["record", "fields"]), wa(t.$slots, "detail", {
|
|
5066
5174
|
record: J(M),
|
|
5067
5175
|
detail: J(ie),
|
|
5068
5176
|
refresh: J(k).refresh
|
|
@@ -5070,7 +5178,7 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
|
|
|
5070
5178
|
_: 2
|
|
5071
5179
|
}, [J(M) && J(ie) && !J(N) && !J(ae) ? {
|
|
5072
5180
|
name: "operation",
|
|
5073
|
-
fn: X(() => [
|
|
5181
|
+
fn: X(() => [wa(t.$slots, "detailOperations", {
|
|
5074
5182
|
record: J(M),
|
|
5075
5183
|
detail: J(ie),
|
|
5076
5184
|
refresh: J(k).refresh,
|
|
@@ -5084,12 +5192,12 @@ var ku = ["aria-label"], Au = /*#__PURE__*/ Vi(/* @__PURE__ */ W({
|
|
|
5084
5192
|
"onClose"
|
|
5085
5193
|
])]),
|
|
5086
5194
|
_: 3
|
|
5087
|
-
}, 8, ["detail-surface", "list-surface"])], 8,
|
|
5195
|
+
}, 8, ["detail-surface", "list-surface"])], 8, ju));
|
|
5088
5196
|
}
|
|
5089
5197
|
}), [["__scopeId", "data-v-e13b15ec"]]);
|
|
5090
5198
|
//#endregion
|
|
5091
5199
|
//#region src/app/useExternalLoginHost.ts
|
|
5092
|
-
function
|
|
5200
|
+
function Nu(e) {
|
|
5093
5201
|
let t = I(), n = K(), r = K(!1), i, a = K(), o = K(!1);
|
|
5094
5202
|
async function s() {
|
|
5095
5203
|
let r = a.value;
|
|
@@ -5100,9 +5208,9 @@ function ju(e) {
|
|
|
5100
5208
|
state: r.pending.state,
|
|
5101
5209
|
browserProof: r.pending.browserProof
|
|
5102
5210
|
});
|
|
5103
|
-
i.status === "succeeded" ? (a.value = void 0, i.login ? await e.onAuthenticated(i.login) : n.value = () => t.t("platform.external-login.created-sign-in-again", "账号已创建,请重新扫码登录")) : n.value = () =>
|
|
5211
|
+
i.status === "succeeded" ? (a.value = void 0, i.login ? await e.onAuthenticated(i.login) : n.value = () => t.t("platform.external-login.created-sign-in-again", "账号已创建,请重新扫码登录")) : n.value = () => nl(i, t);
|
|
5104
5212
|
} catch (e) {
|
|
5105
|
-
n.value = () =>
|
|
5213
|
+
n.value = () => on(Vr(e), t);
|
|
5106
5214
|
} finally {
|
|
5107
5215
|
o.value = !1;
|
|
5108
5216
|
}
|
|
@@ -5112,7 +5220,7 @@ function ju(e) {
|
|
|
5112
5220
|
r.value = !0, n.value = void 0;
|
|
5113
5221
|
try {
|
|
5114
5222
|
await e.router.isReady();
|
|
5115
|
-
let r = e.router.currentRoute.value, i = e.callbackPath ?? "/", o = r.path === i ?
|
|
5223
|
+
let r = e.router.currentRoute.value, i = e.callbackPath ?? "/", o = r.path === i ? tl(r.query) : void 0;
|
|
5116
5224
|
if (!o) return !1;
|
|
5117
5225
|
let s = o.pending;
|
|
5118
5226
|
if (await e.router.replace({
|
|
@@ -5128,9 +5236,9 @@ function ju(e) {
|
|
|
5128
5236
|
return c.status === "confirmationRequired" && c.confirmation && s.purpose === "login" ? (a.value = {
|
|
5129
5237
|
pending: s,
|
|
5130
5238
|
confirmation: c.confirmation
|
|
5131
|
-
}, !0) : c.status === "succeeded" && c.login ? (await e.onAuthenticated(c.login), !0) : c.status === "succeeded" ? (ft(t.t("platform.external-login.bound", "已绑定 {provider}", { provider: c.binding?.providerTitle ?? "" })), !1) : (n.value = () =>
|
|
5239
|
+
}, !0) : c.status === "succeeded" && c.login ? (await e.onAuthenticated(c.login), !0) : c.status === "succeeded" ? (ft(t.t("platform.external-login.bound", "已绑定 {provider}", { provider: c.binding?.providerTitle ?? "" })), !1) : (n.value = () => nl(c, t), s.purpose === "login" && !e.signedIn() || (xn(n.value()), !1));
|
|
5132
5240
|
} catch (r) {
|
|
5133
|
-
return n.value = () =>
|
|
5241
|
+
return n.value = () => on(Vr(r), t), !e.signedIn() || (xn(n.value()), !1);
|
|
5134
5242
|
} finally {
|
|
5135
5243
|
r.value = !1;
|
|
5136
5244
|
}
|
|
@@ -5153,4 +5261,4 @@ function ju(e) {
|
|
|
5153
5261
|
};
|
|
5154
5262
|
}
|
|
5155
5263
|
//#endregion
|
|
5156
|
-
export { ht as AppError, iu as AppWorkbenchShell, ni as AssistantCapabilityUsageError, Jn as AssistantConversationInterruptedError, yi as AssistantEffectInterruptedError, Xr as AssistantOperationRejectedError, Xr as OperationRejectedError, xt as BusinessNotificationPanel, Jc as ChangeOwnPasswordDialog, $i as CronExpressionInput, zl as CurrentUserProfileDialog, _t as DateTimeText, Ar as DraftUpdateRejectedError, $n as DrawerOperationBar, Fr as DurationSecondsInput, he as DynamicModuleWorkspaceDetailView, yl as ExternalIdentityBindings, su as ExternalProvisioningConfirmation, Qr as FileSizeText, vr as FileTransferUploadCancelledError, Fi as FileTransferUploader, Re as LanguageSelector, Du as LoginView, ji as ManagementExplorerColumn, ii as ManagementWorkspace, _i as ModuleContextProvider, Bt as ModuleHttpProvider, ae as ModuleReferenceRecordDetailBrowser, Zn as OperationUsageError, Wl as PersonalAccessTokenDialog, Gc as PlatformAdminOutlet, Gs as PlatformAdminRouteOutlet, Au as ReadonlyRecordWorkspace, mt as ReadonlyReferenceValue, Rn as RecordDetailDrawer, Qi as RecordDetailExtensionSection, Cn as RecordDetailFields, mi as RecordDetailPanel, ar as RecordExplorerPanel, Ir as RecordQueryListCell, Vt as RecordQueryListSurface, oi as ReferencePicker, Ci as ReferencePickerReadError, ur as ReferenceRecordDetailBrowser, Ei as SingleImageFileReferenceField, Lr as StaleAssistantInvocationError, vi as TenantScopeExplorer, Yl as ThemeSkinPreferencesDialog, P as UiButton, jt as UiDataTable, Li as UiDatePicker, Wt as UiDropdown, kn as UiEmpty, Ft as UiError, er as UiIcon, F as UiInput, hr as UiInputGroup, rt as UiLanguageProvider, Di as UiSearchInput, Or as UiSelect, ct as UiSidePanel, zt as UiSwitch, Br as UiTextArea, Gn as UiThemeProvider, In as UiTree, ai as UiTreeSelect, Ss as VueQueryPlugin, a as Workbench, tu as WorkbenchAccountCenter, ge as WorkbenchAssistantPanel, D as WorkbenchMenu, ie as WorkbenchOutlet, se as WorkspaceViewOutlet, or as actionResultData, oc as activeTabUrlOf, mc as arrangeLockedMenuTabs, dn as boundedAssistantConversationHistory, E as buildWorkbenchMegaMenuModel, Wi as businessContentGenerationBatch, on as businessContentLabel, Ht as businessContentLanguageContext, hi as businessContentLanguages, En as businessContentPath, Lt as businessContentReadHeaders, gi as businessNotificationExpired, jr as canQueryRecycleBin, A as canonicalDynamicModulePath, St as changeBusinessContentTranslation, y as clearAuthToken, zi as codeOperationErrorMessage, qs as configureAuthenticationRecovery, Kn as configureModuleContext, Ke as configureModulePageEnhancementContributions, T as configureModulePageEnhancements, Ou as configureUserPreferencePersistence, Ve as configureWorkspaceViewContributions, cn as confirmAction, De as confirmDiscardWorkspaceViewState, xe as connectAppRealtime, bn as connectRealtimeBusinessEvents, dt as connectRealtimeBusinessNotifications, Ui as connectRealtimeDataChanges, Tn as connectRealtimeUserNotifications, b as constructionPlanLimits, bt as contextDataChangeChannel, tr as createAssistantCapabilitySelection, Es as createAssistantConversationClient, $e as createAssistantDisplayObservations, Tr as createAssistantOperationConfirmation, si as createAssistantSurfaceRegistry, Wn as createAssistantTurnRequester, te as createAuthClient, Ys as createBackendHttpClient, Dr as createBrowserFileTransferUpload, Ct as createCodeTextPresentation, Ts as createConstructionPlanClient, i as createDataChangeDispatcher, Mt as createDataExchangeClient, s as createExternalLoginClient, zr as createHttpClient, Un as createLanguageContext, ln as createLanguagePreferenceController, Ge as createLoginContextClient, bi as createManagedDetailRelationClient, ne as createMenuClient, k as createMenuTab, Hn as createModuleContext, Rr as createModuleCrudClient, o as createModulePageEnhancementRegistry, nr as createModuleTreeClient, Xn as createModuleTreeContext, ci as createNavigatorReferenceCrudClient, Ti as createNavigatorReferenceTreeClient, Nr as createOperationConfirmation, l as createPageBootstrapClient, c as createPersonalAccessTokenClient, Cs as createQueryClient, gt as createRealtimeClient, Ki as createReferenceResolveClient, S as createSessionClient, yt as createSseParser, fr as createStaticModuleCrudClient, Jr as createStaticModuleTreeClient, Pi as createStaticResourceCrudClient, _r as createStaticResourceTreeClient, Nn as createUuid, O as createWorkbenchMenuNodes, Yt as createWorkflowAdminClient, _n as createWorkflowClient, na as createWorkflowDefinitionClient, ue as createWorkspaceViewDescriptor, pe as createWorkspaceViewRegistry, rn as dataChangeChannel, Vn as defaultUiThemeSkinId, aa as defineWorkspaceView, r as disconnectAppRealtime, Me as dismissWorkspaceViewDescriptor, ri as displayModuleRuntime, j as dynamicModuleAliasFromPath, C as effectiveAuthToken, wi as emptyAssistantCapabilityInputSchema, d as filterWorkbenchMenuNodes, w as findFirstNavigationMenu, h as findWorkbenchMenuNodeById, Ne as findWorkbenchMenuPath, m as firstDeepRootIdOf, n as getMenuNavigationTarget, mr as hasExecutableDetailRelationMutationContract, Yr as hasExecutableDetailRelationQueryContract, Qn as hasRecycleBinAbility, Pe as hasWorkspaceViewDiscardProtection, Gr as imConversationMessageChannel, nt as imMessageSendCommand, Rt as invokeBusinessNotificationRecordAction, ir as isHttpStreamClient, Ls as isPlatformAdminRoutePage, de as isTabMenuTarget, Nt as isTextReference, nn as isUnexpectedPlatformError, ze as isWindowMenuTarget, rr as listDetailWorkspaceMinWidth, vt as loadBusinessContentGeneration, an as loadBusinessContentHistory, Kr as loadBusinessContentReading, it as loadBusinessContentSources, Ur as loadBusinessContentTranslationHistory, zn as loadLanguageCatalog, Ye as lookupOperationReceipt, Wr as modelFailureMessage, Bi as moduleAbilityCodes, Hr as moduleDataChangeChannel, We as modulePageWorkspaceViews, be as normalizeChangeSet, tt as normalizeError, Se as normalizeMenuMineResponse, Er as normalizeModuleListResponse, di as normalizeModulePageResponse, Zr as normalizeModuleRecord, Pr as normalizeModuleTreeResponse, Zt as organizationPublicDataChangeChannel, en as organizationPublicNotificationChannel, Kt as originalPresentation, An as pageActionEntryDescription, Ln as pageActionEntryTitle, Ot as pageActionEntryVisible, Gt as pageActionIntent, v as pageAssistantCatalog, Oe as pageDescriptorFromUrl, Fe as pageDescriptorToUrl, ve as pageInstanceKeyOf, oe as pagePublicationDigest, dr as parseEmptyAssistantCapabilityInput, qe as parseOperationReceiptReference, Ps as platformAdminModuleRoutes, Fs as platformAdminRouteLayouts, Ns as platformAdminRoutePrefixes, Ms as platformAdminRoutes, qn as platformCodeTextOriginal, un as platformCodeTextReference, Vr as platformErrorCodes, Qe as platformLanguageContext, sn as platformPingCommand, Qt as prepareBusinessContentTranslation, cr as presentPlatformError, qi as presentPlatformInfo, xn as presentPlatformMessage, ft as presentPlatformSuccess, f as presentWorkbenchRealtimeStatus, mn as presentationLabel, qr as provideAssistantSurfaceHost, He as provideCurrentUserContext, Cr as provideLanguageContext, pn as provideModuleContextConfig, lr as provideRecordReadRefreshGuard, fe as provideWorkbenchNavigation, Tt as provideWorkspaceUnsavedStateRegistrar, Be as provideWorkspaceViewHost, ws as queryKeys, Bn as readAssistantAvailability, wt as realtimeDestinations, Pt as realtimeMessageTypes, ea as recordBusinessContentArray, ot as recordBusinessContentText, qt as recordDataChangeChannel, jn as recordPresentationLabel, kt as recordPresentationText, re as refreshModulePageList, lt as refreshWorkflowRecordActions, yr as registerUiLanguageLocales, xc as removeLockedMenuTabs, tn as requestBusinessContentGeneration, Xt as resolveGlobalErrorPresentation, Yi as resolveOperationErrorMessage, N as resolvePageDescriptor, Is as resolvePlatformAdminRoute, Dn as resolvePresentationText, vn as resolveRecordDetailFields, Mr as resolveRecordQueryListColumns, ia as resolveRecordReadEntry, Gi as resolveWebActionResult, yn as resolveWebActionResultMessage, Ee as resolveWorkspaceView, hn as resourceDataChangeChannel, ta as resourceRecordDataChangeChannel, ui as restoreAssistantOperationReceipt, Hc as restoreLockedTabPreference, gc as restoreLockedWorkbenchTabs, $l as restoreThemeSkinPreference, sc as restoreWorkbenchStartupStateFromUrl, je as routeUrlWithOpenOptions, xr as runAssistantConversation, ki as runAssistantStep, Ni as sameAssistantInvocationToken, u as saveAuthSessionId, p as saveAuthToken, Uc as saveLockedTabPreference, eu as saveThemeSkinPreference, st as sessionActivityCommand, g as storedAuthSessionId, ee as storedAuthToken, ye as subscribeAppBusinessEvents, _ as subscribeAppDataChanges, ke as syncModulePageWorkspaceViewContributions, Ae as tabIdentityKeyOf, Le as tabKeyOf, Mn as tenantPublicDataChangeChannel, At as tenantPublicNotificationChannel, Mi as textReferenceMatchesOriginal, Ql as themeSkinPreferenceKey, Pn as translatedPresentation, ce as tryPageDescriptorFromUrl, Yn as uiThemeSkinById, fn as uiThemeSkins, fi as unwrapResponsePayload, yc as updateLockedMenuTabs, pr as uploadedFileId, gr as useAssistantSurfaceHost, pt as useBusinessContentGenerationBatch, Zi as useBusinessContentReading, Je as useCurrentUserContext, Xe as useEffectiveAuthToken, ju as useExternalLoginHost, I as useLanguageContext, et as useModuleContext, Sr as useModuleHttpClient, Ai as useModuleTreeContext, Ws as usePageDescriptor, Us as usePageRoute, Zl as usePersonalAccessTokenAccess, Ji as useRecordReadRefreshGuard, Sn as useRecordReadRefreshRevision, ra as useRecordReadSession, Te as useWorkbenchNavigation, ti as useWorkspaceDetailSurface, le as useWorkspaceViewHost, _e as useWorkspaceViewNavigation, It as useWorkspaceViewUnsavedState, On as userBusinessEventChannel, Fn as userBusinessNotificationChannel, $t as userFacingErrorMessage, Dt as userImMessageChannel, Ut as userNotificationChannel, sr as userPreferences, at as validateCronExpression, ut as webDataChangeKey, Ii as webDataChangeTypes, Hi as webDataChanges, li as withHttpHeaders, Si as withLanguageContext, we as withPageInstanceKey, wn as withWebActionResultChanges, Et as withoutRecordPresentation, Ue as workbenchAccountCommands };
|
|
5264
|
+
export { nn as AppError, ou as AppWorkbenchShell, ni as AssistantCapabilityUsageError, Jn as AssistantConversationInterruptedError, bi as AssistantEffectInterruptedError, Xr as AssistantOperationRejectedError, Xr as OperationRejectedError, xt as BusinessNotificationPanel, Xc as ChangeOwnPasswordDialog, ea as CronExpressionInput, Vl as CurrentUserProfileDialog, _t as DateTimeText, Zn as DraftUpdateRejectedError, $n as DrawerOperationBar, Fr as DurationSecondsInput, he as DynamicModuleWorkspaceDetailView, xl as ExternalIdentityBindings, lu as ExternalProvisioningConfirmation, Qr as FileSizeText, _r as FileTransferUploadCancelledError, Ii as FileTransferUploader, Re as LanguageSelector, ku as LoginView, Mi as ManagementExplorerColumn, ii as ManagementWorkspace, vi as ModuleContextProvider, Bt as ModuleHttpProvider, ae as ModuleReferenceRecordDetailBrowser, Bi as OperationUsageError, Kl as PersonalAccessTokenDialog, qc as PlatformAdminOutlet, qs as PlatformAdminRouteOutlet, Mu as ReadonlyRecordWorkspace, mt as ReadonlyReferenceValue, Rn as RecordDetailDrawer, $i as RecordDetailExtensionSection, Cn as RecordDetailFields, hi as RecordDetailPanel, ar as RecordExplorerPanel, Ir as RecordQueryListCell, Vt as RecordQueryListSurface, si as ReferencePicker, Ci as ReferencePickerReadError, ur as ReferenceRecordDetailBrowser, Ei as SingleImageFileReferenceField, Lr as StaleAssistantInvocationError, yi as TenantScopeExplorer, Zl as ThemeSkinPreferencesDialog, P as UiButton, jt as UiDataTable, Ri as UiDatePicker, Wt as UiDropdown, kn as UiEmpty, Ft as UiError, er as UiIcon, F as UiInput, mr as UiInputGroup, rt as UiLanguageProvider, Oi as UiSearchInput, Or as UiSelect, ct as UiSidePanel, zt as UiSwitch, Br as UiTextArea, Gn as UiThemeProvider, In as UiTree, oi as UiTreeSelect, Cs as VueQueryPlugin, a as Workbench, ru as WorkbenchAccountCenter, ge as WorkbenchAssistantPanel, D as WorkbenchMenu, ie as WorkbenchOutlet, se as WorkspaceViewOutlet, Ki as actionResultData, cc as activeTabUrlOf, gc as arrangeLockedMenuTabs, dn as boundedAssistantConversationHistory, E as buildWorkbenchMegaMenuModel, Gi as businessContentGenerationBatch, Ct as businessContentLabel, gi as businessContentLanguageContext, Lt as businessContentLanguages, En as businessContentPath, Un as businessContentReadHeaders, _i as businessNotificationExpired, jr as canQueryRecycleBin, A as canonicalDynamicModulePath, St as changeBusinessContentTranslation, y as clearAuthToken, Xi as codeOperationErrorMessage, Ys as configureAuthenticationRecovery, Kn as configureModuleContext, Ke as configureModulePageEnhancementContributions, w as configureModulePageEnhancements, Au as configureUserPreferencePersistence, Ve as configureWorkspaceViewContributions, cn as confirmAction, De as confirmDiscardWorkspaceViewState, xe as connectAppRealtime, bn as connectRealtimeBusinessEvents, dt as connectRealtimeBusinessNotifications, Wi as connectRealtimeDataChanges, Tn as connectRealtimeUserNotifications, b as constructionPlanLimits, bt as contextDataChangeChannel, tr as createAssistantCapabilitySelection, Ds as createAssistantConversationClient, $e as createAssistantDisplayObservations, Tr as createAssistantOperationConfirmation, ci as createAssistantSurfaceRegistry, Wn as createAssistantTurnRequester, ne as createAuthClient, Zs as createBackendHttpClient, Dr as createBrowserFileTransferUpload, Os as createBusinessNotificationSession, Nt as createCodeTextPresentation, Es as createConstructionPlanClient, i as createDataChangeDispatcher, Mt as createDataExchangeClient, s as createExternalLoginClient, ir as createHttpClient, zn as createLanguageContext, ln as createLanguagePreferenceController, Ge as createLoginContextClient, xi as createManagedDetailRelationClient, T as createMenuClient, k as createMenuTab, Hn as createModuleContext, Rr as createModuleCrudClient, o as createModulePageEnhancementRegistry, nr as createModuleTreeClient, Xn as createModuleTreeContext, li as createNavigatorReferenceCrudClient, Ti as createNavigatorReferenceTreeClient, Nr as createOperationConfirmation, l as createPageBootstrapClient, c as createPersonalAccessTokenClient, ws as createQueryClient, gt as createRealtimeClient, qi as createReferenceResolveClient, S as createSessionClient, ht as createSseParser, fr as createStaticModuleCrudClient, Jr as createStaticModuleTreeClient, Fi as createStaticResourceCrudClient, gr as createStaticResourceTreeClient, Nn as createUuid, O as createWorkbenchMenuNodes, Yt as createWorkflowAdminClient, _n as createWorkflowClient, ra as createWorkflowDefinitionClient, ue as createWorkspaceViewDescriptor, pe as createWorkspaceViewRegistry, rn as dataChangeChannel, Vn as defaultUiThemeSkinId, oa as defineWorkspaceView, r as disconnectAppRealtime, Me as dismissWorkspaceViewDescriptor, ri as displayModuleRuntime, j as dynamicModuleAliasFromPath, ee as effectiveAuthToken, wi as emptyAssistantCapabilityInputSchema, d as filterWorkbenchMenuNodes, C as findFirstNavigationMenu, h as findWorkbenchMenuNodeById, Ne as findWorkbenchMenuPath, m as firstDeepRootIdOf, n as getMenuNavigationTarget, Yr as hasExecutableDetailRelationMutationContract, Li as hasExecutableDetailRelationQueryContract, Qn as hasRecycleBinAbility, Pe as hasWorkspaceViewDiscardProtection, Gr as imConversationMessageChannel, nt as imMessageSendCommand, Rt as invokeBusinessNotificationRecordAction, ui as isHttpStreamClient, zs as isPlatformAdminRoutePage, de as isTabMenuTarget, Kt as isTextReference, Wr as isUnexpectedPlatformError, ze as isWindowMenuTarget, rr as listDetailWorkspaceMinWidth, vt as loadBusinessContentGeneration, an as loadBusinessContentHistory, Kr as loadBusinessContentReading, it as loadBusinessContentSources, Ur as loadBusinessContentTranslationHistory, qn as loadLanguageCatalog, Ye as lookupOperationReceipt, tt as modelFailureMessage, Vi as moduleAbilityCodes, Hr as moduleDataChangeChannel, We as modulePageWorkspaceViews, be as normalizeChangeSet, Vr as normalizeError, Se as normalizeMenuMineResponse, Er as normalizeModuleListResponse, fi as normalizeModulePageResponse, Zr as normalizeModuleRecord, Pr as normalizeModuleTreeResponse, Zt as organizationPublicDataChangeChannel, en as organizationPublicNotificationChannel, mn as originalPresentation, An as pageActionEntryDescription, Ln as pageActionEntryTitle, Ot as pageActionEntryVisible, Gt as pageActionIntent, v as pageAssistantCatalog, Oe as pageDescriptorFromUrl, Fe as pageDescriptorToUrl, ve as pageInstanceKeyOf, oe as pagePublicationDigest, dr as parseEmptyAssistantCapabilityInput, qe as parseOperationReceiptReference, Is as platformAdminModuleRoutes, Ls as platformAdminRouteLayouts, Fs as platformAdminRoutePrefixes, Ps as platformAdminRoutes, un as platformCodeTextOriginal, Qe as platformCodeTextReference, Xt as platformErrorCodes, Cr as platformLanguageContext, sn as platformPingCommand, Qt as prepareBusinessContentTranslation, cr as presentPlatformError, Ji as presentPlatformInfo, xn as presentPlatformMessage, ft as presentPlatformSuccess, f as presentWorkbenchRealtimeStatus, ta as presentationLabel, qr as provideAssistantSurfaceHost, He as provideCurrentUserContext, Ni as provideLanguageContext, pn as provideModuleContextConfig, lr as provideRecordReadRefreshGuard, fe as provideWorkbenchNavigation, Tt as provideWorkspaceUnsavedStateRegistrar, Be as provideWorkspaceViewHost, Ts as queryKeys, Bn as readAssistantAvailability, wt as realtimeDestinations, Pt as realtimeMessageTypes, ot as recordBusinessContentArray, jn as recordBusinessContentText, qt as recordDataChangeChannel, kt as recordPresentationLabel, Dn as recordPresentationText, re as refreshModulePageList, lt as refreshWorkflowRecordActions, yr as registerUiLanguageLocales, Cc as removeLockedMenuTabs, tn as requestBusinessContentGeneration, $t as resolveGlobalErrorPresentation, or as resolveOperationErrorMessage, N as resolvePageDescriptor, Rs as resolvePlatformAdminRoute, Pn as resolvePresentationText, vn as resolveRecordDetailFields, Mr as resolveRecordQueryListColumns, aa as resolveRecordReadEntry, yn as resolveWebActionResult, ut as resolveWebActionResultMessage, Ee as resolveWorkspaceView, hn as resourceDataChangeChannel, na as resourceRecordDataChangeChannel, di as restoreAssistantOperationReceipt, Wc as restoreLockedTabPreference, vc as restoreLockedWorkbenchTabs, Ar as restoreOperationConfirmation, tu as restoreThemeSkinPreference, lc as restoreWorkbenchStartupStateFromUrl, je as routeUrlWithOpenOptions, xr as runAssistantConversation, Ai as runAssistantStep, Pi as sameAssistantInvocationToken, u as saveAuthSessionId, p as saveAuthToken, Gc as saveLockedTabPreference, nu as saveThemeSkinPreference, st as sessionActivityCommand, g as storedAuthSessionId, te as storedAuthToken, ye as subscribeAppBusinessEvents, _ as subscribeAppDataChanges, ke as syncModulePageWorkspaceViewContributions, Ae as tabIdentityKeyOf, Le as tabKeyOf, Mn as tenantPublicDataChangeChannel, At as tenantPublicNotificationChannel, ai as textReferenceMatchesOriginal, eu as themeSkinPreferenceKey, Et as translatedPresentation, ce as tryPageDescriptorFromUrl, Yn as uiThemeSkinById, fn as uiThemeSkins, pi as unwrapResponsePayload, xc as updateLockedMenuTabs, pr as uploadedFileId, hr as useAssistantSurfaceHost, pt as useBusinessContentGenerationBatch, Qi as useBusinessContentReading, Je as useCurrentUserContext, Xe as useEffectiveAuthToken, Nu as useExternalLoginHost, I as useLanguageContext, et as useModuleContext, Sr as useModuleHttpClient, ji as useModuleTreeContext, Ks as usePageDescriptor, Gs as usePageRoute, $l as usePersonalAccessTokenAccess, Yi as useRecordReadRefreshGuard, Sn as useRecordReadRefreshRevision, ia as useRecordReadSession, Te as useWorkbenchNavigation, ti as useWorkspaceDetailSurface, le as useWorkspaceViewHost, _e as useWorkspaceViewNavigation, It as useWorkspaceViewUnsavedState, On as userBusinessEventChannel, Fn as userBusinessNotificationChannel, on as userFacingErrorMessage, Dt as userImMessageChannel, Ut as userNotificationChannel, sr as userPreferences, at as validateCronExpression, Ui as webDataChangeKey, vr as webDataChangeTypes, wn as webDataChanges, Di as withHttpHeaders, zr as withLanguageContext, we as withPageInstanceKey, yt as withWebActionResultChanges, Ht as withoutRecordPresentation, Ue as workbenchAccountCommands };
|