@ximatai/muyun-web-app 0.26.23 → 0.26.24
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-IWGZiPLo.js → BusinessActivityLogView-DQ5_VmLp.js} +2 -2
- package/dist/{BusinessLogListDrawer-UCsg6psI.js → BusinessLogListDrawer-BnucgqNA.js} +155 -155
- package/dist/{CodeConfigurationView-Calkazua.js → CodeConfigurationView-CtQjmpLz.js} +390 -390
- package/dist/{ConfigurationTranslationView-fZrlRAMy.js → ConfigurationTranslationView-BiYn2MJx.js} +21 -21
- package/dist/{LoginAuditLogView-B6J7t__0.js → LoginAuditLogView-BIz1LVC3.js} +2 -2
- package/dist/ModuleActionManagementView-0_ek9yag.js +780 -0
- package/dist/{ModuleGovernanceView-D8ONs78K.js → ModuleGovernanceView-DEDF61vj.js} +3154 -3154
- package/dist/{RequestErrorLogView-poMgx4_6.js → RequestErrorLogView-HatmiK8_.js} +2 -2
- package/dist/{RoleDetailWorkspaceView-6Bs1eKbm.js → RoleDetailWorkspaceView-BzzoarpR.js} +65 -65
- package/dist/{RuntimeLogView-Co-Z86bt.js → RuntimeLogView-Vdt6SWK6.js} +47 -47
- package/dist/WorkflowAdministrationView-Dlw2ng0N.js +650 -0
- package/dist/{WorkflowConfigurationView-mSyL_-We.js → WorkflowConfigurationView-j2xnGmkM.js} +35 -35
- package/dist/WorkflowWorkbenchView-Nv4mvTTP.js +759 -0
- package/dist/{codeConfiguration-D1zrxzoW.js → codeConfiguration-B_z1qQvB.js} +37 -37
- package/dist/index.css +1 -1
- package/dist/index.js +1340 -788
- package/dist/{moduleMenuWorkspace-lIVrTaOB.js → moduleMenuWorkspace-1N0U7QW9.js} +220 -220
- package/dist/{platform-components-D0T03KGl.js → platform-components-Xb5qgsXU.js} +3091 -2880
- package/dist/{platform-workbench-CobObbuz.js → platform-workbench-VhgKhPLI.js} +5526 -5451
- package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +6 -0
- package/dist/types/app/ExternalIdentityBindings.vue.d.ts +8 -0
- package/dist/types/app/ExternalProvisioningConfirmation.vue.d.ts +15 -0
- package/dist/types/app/LoginView.vue.d.ts +3 -1
- package/dist/types/app/WeLinkQrCode.vue.d.ts +11 -0
- package/dist/types/app/externalLoginReturn.d.ts +38 -0
- package/dist/types/app/useExternalLoginHost.d.ts +27 -0
- package/dist/types/app/weLinkQrCode.d.ts +22 -0
- package/dist/types/consumer/index.d.ts +7 -2
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +4 -0
- package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +11 -15
- package/dist/types/dynamic-page-runtime/composables/useModulePageDetailActionRuntime.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +2 -0
- package/dist/types/platform-admin-runtime/job/ScheduledActionTargetFields.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/scheduledActionPlanPageEnhancement.d.ts +3 -0
- package/dist/types/platform-components/BusinessNotificationCard.vue.d.ts +30 -0
- package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +4 -39
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +8 -17
- package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +2 -2
- package/dist/types/platform-components/SingleImageFileReferenceField.vue.d.ts +4 -0
- package/dist/types/platform-components/fileReferenceTransfer.d.ts +9 -2
- package/dist/types/platform-components/managementWorkspaceContext.d.ts +2 -1
- package/dist/types/platform-components/useNotificationDeckMotion.d.ts +7 -0
- package/dist/types/views/businessRuleGovernance.d.ts +1 -0
- package/dist/types/web-contracts/index.d.ts +71 -2
- package/dist/types/web-core/clients.d.ts +11 -1
- package/dist/{useWorkflowConfigurationContext-BkcNPU2H.js → useWorkflowConfigurationContext-BLFXzHwn.js} +5 -5
- package/dist/{workspaceViews-BtqO8rU0.js → workspaceViews-Cas3PR5B.js} +1050 -894
- package/package.json +1 -1
- package/dist/ModuleActionManagementView-BZ89Woex.js +0 -755
- package/dist/WorkflowAdministrationView-D7QpRHDp.js +0 -650
- package/dist/WorkflowWorkbenchView-DBMh3ycN.js +0 -759
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, B as i, C as a, Ct as o, Dt as s, Et as c, F as l, G as u, H as d, I as f, J as p, K as m, L as h, M as g, N as _, O as v, Ot as y, P as b, Q as x, R as
|
|
3
|
-
import { $a as
|
|
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, B as i, C as a, Ct as o, Dt as s, Et as c, F as l, G as u, H as d, I as f, J as p, K as m, L as h, M as g, N as _, O as v, Ot as y, P as b, Q as x, R as S, S as ee, St as te, Tt as ne, U as re, V as C, W as ie, X as ae, Y as oe, Z as se, _ as w, _t as T, a as E, at as ce, b as D, bt as le, c as ue, ct as O, d as de, dt as fe, et as pe, f as me, ft as he, gt as ge, h as _e, ht as ve, i as ye, it as be, j as xe, k 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-VhgKhPLI.js";
|
|
3
|
+
import { $a as Ze, $i as Qe, $r as $e, $t as et, Aa as tt, Ai as nt, An as rt, Ar as it, Ba as at, Bi as ot, Bn as st, Br as ct, Ca as lt, Ci as ut, Cn as dt, Cr as ft, Da as pt, Di as mt, Dn as ht, Dr as gt, Ea as _t, Ei as vt, En as yt, Er as bt, Fa as xt, Fi as St, Fr as Ct, G as wt, Ga as Tt, Gi as Et, Gn as Dt, Gr as Ot, Ha as kt, Hi as At, Hn as jt, Hr as Mt, Ht as Nt, Ia as Pt, Ii as Ft, In as It, Ir as Lt, It as Rt, Ja as zt, Ji as Bt, Jn as Vt, Jr as Ht, Ka as Ut, Ki as Wt, Kn as Gt, Kr as Kt, Kt as qt, La as Jt, Li as Yt, Lr as Xt, Ma as Zt, Mi as Qt, Mn as $t, Mr as en, Na as tn, Ni as nn, Nn as rn, Nr as an, Oa as k, Oi as on, Or as sn, Pa as cn, Pi as ln, Pn as un, Pr as dn, Q as fn, Qa as pn, Qi as mn, Qn as hn, Qr as gn, Ra as _n, Ri as vn, Rn as yn, Rr as bn, Sa as xn, Si as Sn, Sn as Cn, Sr as wn, Ta as A, Ti as Tn, Tr as En, Ua as Dn, Ui as On, Ur as kn, Va as An, Vi as jn, Vr as Mn, Wa as Nn, Wi as Pn, Wn as Fn, Wr as In, Xa as Ln, Xi as Rn, Xr as zn, Ya as Bn, Yi as Vn, Yr as Hn, Z as Un, Za as j, Zi as Wn, Zr as Gn, _a as Kn, _i as qn, _n as Jn, _r as Yn, _t as Xn, aa as Zn, ai as Qn, an as $n, ao as er, ar as tr, ba as nr, bi as rr, bn as ir, br as ar, bt as or, ca as sr, ci as cr, cn as lr, ct as ur, da as dr, di as fr, dn as pr, dr as M, dt as mr, ea as hr, ei as gr, en as _r, eo as vr, er as yr, et as br, fa as xr, fi as Sr, fn as Cr, fr as wr, ft as Tr, ga as Er, gi as Dr, gr as Or, ha as kr, hi as Ar, hr as jr, ia as Mr, ii as Nr, io as Pr, ir as N, ja as Fr, ji as Ir, jr as Lr, ka as Rr, ki as zr, kr as Br, la as Vr, li as Hr, ln as Ur, lt as Wr, ma as Gr, mi as Kr, mn as qr, mr as Jr, mt as Yr, n as Xr, na as Zr, ni as Qr, oa as $r, oi as ei, on as ti, or as ni, pa as ri, pi as ii, pr as P, pt as ai, qa as oi, qi as si, qn as ci, qr as li, r as ui, ra as di, ri as fi, rn as pi, ro as mi, rr as hi, rt as gi, sa as _i, si as vi, sr as yi, t as bi, ta as xi, ti as Si, tn as Ci, to as wi, tt as Ti, ua as Ei, ui as Di, un as Oi, ut as ki, va as Ai, vi as ji, vn as Mi, vr as Ni, vt as Pi, wa as Fi, wi as Ii, wr as Li, xa as Ri, xi as zi, xr as Bi, xt as Vi, ya as Hi, yi as Ui, yn as Wi, yr as Gi, za as Ki, zi as qi, zn as Ji, zr as Yi } from "./platform-components-Xb5qgsXU.js";
|
|
4
|
+
import { n as Xi, t as Zi } from "./recordReadEntry-CxDHM44F.js";
|
|
5
|
+
import { m as Qi } from "./codeConfiguration-B_z1qQvB.js";
|
|
6
|
+
import "./workspaceViews-Cas3PR5B.js";
|
|
7
|
+
import * as $i from "vue";
|
|
8
|
+
import { Fragment as F, computed as I, createBlock as L, createCommentVNode as R, createElementBlock as z, createElementVNode as B, createSlots as ea, createTextVNode as V, createVNode as H, defineAsyncComponent as U, defineComponent as W, guardReactiveProps as ta, inject as na, normalizeClass as ra, normalizeProps as ia, normalizeStyle as aa, onBeforeUnmount as oa, onMounted as sa, openBlock as G, provide as ca, ref as K, renderList as la, renderSlot as ua, resolveDynamicComponent as da, toDisplayString as q, unref as J, useId as fa, vShow as pa, watch as ma, withCtx as Y, withDirectives as ha, withModifiers as ga } from "vue";
|
|
9
9
|
//#region node_modules/@tanstack/query-core/build/modern/subscribable.js
|
|
10
|
-
var
|
|
10
|
+
var _a = class {
|
|
11
11
|
constructor() {
|
|
12
12
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
13
13
|
}
|
|
@@ -21,7 +21,7 @@ var ha = class {
|
|
|
21
21
|
}
|
|
22
22
|
onSubscribe() {}
|
|
23
23
|
onUnsubscribe() {}
|
|
24
|
-
},
|
|
24
|
+
}, va = new class extends _a {
|
|
25
25
|
#e;
|
|
26
26
|
#t;
|
|
27
27
|
#n;
|
|
@@ -58,13 +58,13 @@ var ha = class {
|
|
|
58
58
|
isFocused() {
|
|
59
59
|
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
|
60
60
|
}
|
|
61
|
-
}(),
|
|
61
|
+
}(), ya = {
|
|
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
|
+
}, ba = new class {
|
|
67
|
+
#e = ya;
|
|
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 ha = class {
|
|
|
85
85
|
this.#e.clearInterval(e);
|
|
86
86
|
}
|
|
87
87
|
}();
|
|
88
|
-
function
|
|
88
|
+
function xa(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 Sa = typeof window > "u" || "Deno" in globalThis;
|
|
94
|
+
function X() {}
|
|
95
|
+
function Ca(e, t) {
|
|
96
96
|
return typeof e == "function" ? e(t) : e;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function wa(e) {
|
|
99
99
|
return typeof e == "number" && e >= 0 && e !== Infinity;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function Ta(e, t) {
|
|
102
102
|
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function Ea(e, t) {
|
|
105
105
|
return typeof e == "function" ? e(t) : e;
|
|
106
106
|
}
|
|
107
|
-
function
|
|
107
|
+
function Da(e, t) {
|
|
108
108
|
return typeof e == "function" ? e(t) : e;
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function Oa(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 !== Aa(o, t.options)) return !1;
|
|
115
|
+
} else if (!Ma(t.queryKey, o)) return !1;
|
|
116
116
|
}
|
|
117
117
|
if (n !== "all") {
|
|
118
118
|
let e = t.isActive();
|
|
@@ -120,90 +120,90 @@ function Ea(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 ka(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 (ja(t.options.mutationKey) !== ja(a)) return !1;
|
|
129
|
+
} else if (!Ma(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 Aa(e, t) {
|
|
134
|
+
return (t?.queryKeyHashFn || ja)(e);
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
return JSON.stringify(e, (e, t) =>
|
|
136
|
+
function ja(e) {
|
|
137
|
+
return JSON.stringify(e, (e, t) => Ia(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 Ma(e, t) {
|
|
140
|
+
return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => Ma(e[n], t[n])) : !1;
|
|
141
141
|
}
|
|
142
|
-
var
|
|
143
|
-
function
|
|
142
|
+
var Na = Object.prototype.hasOwnProperty;
|
|
143
|
+
function Pa(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 = Fa(e) && Fa(t);
|
|
147
|
+
if (!r && !(Ia(e) && Ia(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 : Na.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 = Pa(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 Fa(e) {
|
|
165
165
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
166
166
|
}
|
|
167
|
-
function
|
|
168
|
-
if (!
|
|
167
|
+
function Ia(e) {
|
|
168
|
+
if (!La(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 !(!La(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function La(e) {
|
|
175
175
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function Ra(e) {
|
|
178
178
|
return new Promise((t) => {
|
|
179
|
-
|
|
179
|
+
ba.setTimeout(t, e);
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function za(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 Pa(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 Pa(e, t);
|
|
191
191
|
}
|
|
192
192
|
return t;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
194
|
+
function Ba(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 Va(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 Ha = /* @__PURE__ */ Symbol();
|
|
203
|
+
function Ua(e, t) {
|
|
204
|
+
return process.env.NODE_ENV !== "production" && e.queryFn === Ha && 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 === Ha ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function Wa(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 Ha(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 Ga = /* @__PURE__ */ (() => {
|
|
216
|
+
let e = () => Sa;
|
|
217
217
|
return {
|
|
218
218
|
isServer() {
|
|
219
219
|
return e();
|
|
@@ -225,7 +225,7 @@ var Ua = /* @__PURE__ */ (() => {
|
|
|
225
225
|
})();
|
|
226
226
|
//#endregion
|
|
227
227
|
//#region node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
228
|
-
function
|
|
228
|
+
function Ka() {
|
|
229
229
|
let e, t, n = new Promise((n, r) => {
|
|
230
230
|
e = n, t = r;
|
|
231
231
|
});
|
|
@@ -247,13 +247,13 @@ function Wa() {
|
|
|
247
247
|
}
|
|
248
248
|
//#endregion
|
|
249
249
|
//#region node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
250
|
-
var
|
|
251
|
-
function
|
|
250
|
+
var qa = xa;
|
|
251
|
+
function Ja() {
|
|
252
252
|
let e = [], t = 0, n = (e) => {
|
|
253
253
|
e();
|
|
254
254
|
}, r = (e) => {
|
|
255
255
|
e();
|
|
256
|
-
}, i =
|
|
256
|
+
}, i = qa, a = (r) => {
|
|
257
257
|
t ? e.push(r) : i(() => {
|
|
258
258
|
n(r);
|
|
259
259
|
});
|
|
@@ -295,7 +295,7 @@ function Ka() {
|
|
|
295
295
|
}
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
|
-
var
|
|
298
|
+
var Z = Ja(), Ya = new class extends _a {
|
|
299
299
|
#e = !0;
|
|
300
300
|
#t;
|
|
301
301
|
#n;
|
|
@@ -329,28 +329,28 @@ var q = Ka(), qa = new class extends ha {
|
|
|
329
329
|
}();
|
|
330
330
|
//#endregion
|
|
331
331
|
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
332
|
-
function
|
|
332
|
+
function Xa(e) {
|
|
333
333
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
334
334
|
}
|
|
335
|
-
function
|
|
336
|
-
return (e ?? "online") !== "online" ||
|
|
335
|
+
function Za(e) {
|
|
336
|
+
return (e ?? "online") !== "online" || Ya.isOnline();
|
|
337
337
|
}
|
|
338
|
-
var
|
|
338
|
+
var Qa = 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 $a(e) {
|
|
344
|
+
let t = !1, n = 0, r, i = Ka(), a = () => i.status !== "pending", o = (t) => {
|
|
345
345
|
if (!a()) {
|
|
346
|
-
let n = new
|
|
346
|
+
let n = new Qa(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 = () => va.isFocused() && (e.networkMode === "always" || Ya.isOnline()) && e.canRun(), u = () => Za(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 Za(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 ?? (Ga.isServer() ? 0 : 3), o = e.retryDelay ?? Xa, 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), Ra(s).then(() => l() ? void 0 : p()).then(() => {
|
|
379
379
|
t ? f(r) : m();
|
|
380
380
|
});
|
|
381
381
|
});
|
|
@@ -393,34 +393,34 @@ function Za(e) {
|
|
|
393
393
|
}
|
|
394
394
|
//#endregion
|
|
395
395
|
//#region node_modules/@tanstack/query-core/build/modern/removable.js
|
|
396
|
-
var
|
|
396
|
+
var eo = class {
|
|
397
397
|
#e;
|
|
398
398
|
destroy() {
|
|
399
399
|
this.clearGcTimeout();
|
|
400
400
|
}
|
|
401
401
|
scheduleGc() {
|
|
402
|
-
this.clearGcTimeout(),
|
|
402
|
+
this.clearGcTimeout(), wa(this.gcTime) && (this.#e = ba.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 ?? (Ga.isServer() ? Infinity : 3e5));
|
|
408
408
|
}
|
|
409
409
|
clearGcTimeout() {
|
|
410
|
-
this.#e !== void 0 && (
|
|
410
|
+
this.#e !== void 0 && (ba.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 to(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
|
+
Wa(e, () => t.signal, () => n = !0);
|
|
423
|
+
}, u = Ua(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 $a(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 ? Va : Ba;
|
|
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 ? ro : no, n = {
|
|
443
443
|
pages: a,
|
|
444
444
|
pageParams: o
|
|
445
445
|
};
|
|
@@ -447,7 +447,7 @@ function $a(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 : no(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 $a(e) {
|
|
|
462
462
|
}, n) : l;
|
|
463
463
|
} };
|
|
464
464
|
}
|
|
465
|
-
function
|
|
465
|
+
function no(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 ro(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 io = class extends eo {
|
|
475
475
|
#e;
|
|
476
476
|
#t;
|
|
477
477
|
#n;
|
|
@@ -481,7 +481,7 @@ var no = class extends Qa {
|
|
|
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 no = class extends Qa {
|
|
|
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(oo(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 = za(this.state.data, e, this.options);
|
|
509
509
|
return this.#l({
|
|
510
510
|
data: n,
|
|
511
511
|
type: "success",
|
|
@@ -521,7 +521,7 @@ var no = class extends Qa {
|
|
|
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(X).catch(X) : Promise.resolve();
|
|
525
525
|
}
|
|
526
526
|
destroy() {
|
|
527
527
|
super.destroy(), this.cancel({ silent: !0 });
|
|
@@ -533,22 +533,22 @@ var no = class extends Qa {
|
|
|
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) => Da(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 === Ha || !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) => Ea(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 : !Ta(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 no = class extends Qa {
|
|
|
595
595
|
get: () => (this.#s = !0, n.signal)
|
|
596
596
|
});
|
|
597
597
|
}, i = () => {
|
|
598
|
-
let e =
|
|
598
|
+
let e = Ua(this.options, t), n = (() => {
|
|
599
599
|
let e = {
|
|
600
600
|
client: this.#i,
|
|
601
601
|
queryKey: this.queryKey,
|
|
@@ -615,14 +615,14 @@ var no = class extends Qa {
|
|
|
615
615
|
};
|
|
616
616
|
return r(e), e;
|
|
617
617
|
})();
|
|
618
|
-
(this.#e === "infinite" ?
|
|
618
|
+
(this.#e === "infinite" ? to(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 = $a({
|
|
622
622
|
initialPromise: t?.initialPromise,
|
|
623
623
|
fn: a.fetchFn,
|
|
624
624
|
onCancel: (e) => {
|
|
625
|
-
e instanceof
|
|
625
|
+
e instanceof Qa && e.revert && this.setState({
|
|
626
626
|
...this.#n,
|
|
627
627
|
fetchStatus: "idle"
|
|
628
628
|
}), n.abort();
|
|
@@ -650,7 +650,7 @@ var no = class extends Qa {
|
|
|
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 Qa) {
|
|
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 no = class extends Qa {
|
|
|
683
683
|
};
|
|
684
684
|
case "fetch": return {
|
|
685
685
|
...t,
|
|
686
|
-
...
|
|
686
|
+
...ao(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
|
+
...oo(e.data, e.dataUpdatedAt),
|
|
693
693
|
dataUpdateCount: t.dataUpdateCount + 1,
|
|
694
694
|
...!e.manual && {
|
|
695
695
|
fetchStatus: "idle",
|
|
@@ -721,7 +721,7 @@ var no = class extends Qa {
|
|
|
721
721
|
};
|
|
722
722
|
}
|
|
723
723
|
};
|
|
724
|
-
this.state = t(this.state),
|
|
724
|
+
this.state = t(this.state), Z.batch(() => {
|
|
725
725
|
this.observers.forEach((e) => {
|
|
726
726
|
e.onQueryUpdate();
|
|
727
727
|
}), this.#r.notify({
|
|
@@ -732,18 +732,18 @@ var no = class extends Qa {
|
|
|
732
732
|
});
|
|
733
733
|
}
|
|
734
734
|
};
|
|
735
|
-
function
|
|
735
|
+
function ao(e, t) {
|
|
736
736
|
return {
|
|
737
737
|
fetchFailureCount: 0,
|
|
738
738
|
fetchFailureReason: null,
|
|
739
|
-
fetchStatus:
|
|
739
|
+
fetchStatus: Za(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 oo(e, t) {
|
|
747
747
|
return {
|
|
748
748
|
data: e,
|
|
749
749
|
dataUpdatedAt: t ?? Date.now(),
|
|
@@ -752,7 +752,7 @@ function io(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 ao(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 eo {
|
|
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 || lo(), 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 oo = class extends Qa {
|
|
|
813
813
|
meta: this.options.meta,
|
|
814
814
|
mutationKey: this.options.mutationKey
|
|
815
815
|
};
|
|
816
|
-
this.#r =
|
|
816
|
+
this.#r = $a({
|
|
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({
|
|
@@ -930,7 +930,7 @@ var oo = class extends Qa {
|
|
|
930
930
|
};
|
|
931
931
|
}
|
|
932
932
|
};
|
|
933
|
-
this.state = t(this.state),
|
|
933
|
+
this.state = t(this.state), Z.batch(() => {
|
|
934
934
|
this.#t.forEach((t) => {
|
|
935
935
|
t.onMutationUpdate(e);
|
|
936
936
|
}), this.#n.notify({
|
|
@@ -941,7 +941,7 @@ var oo = class extends Qa {
|
|
|
941
941
|
});
|
|
942
942
|
}
|
|
943
943
|
};
|
|
944
|
-
function
|
|
944
|
+
function lo() {
|
|
945
945
|
return {
|
|
946
946
|
context: void 0,
|
|
947
947
|
data: void 0,
|
|
@@ -956,7 +956,7 @@ function so() {
|
|
|
956
956
|
}
|
|
957
957
|
//#endregion
|
|
958
958
|
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
|
|
959
|
-
var
|
|
959
|
+
var uo = class extends _a {
|
|
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 co = class extends ha {
|
|
|
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 co = class extends ha {
|
|
|
975
975
|
}
|
|
976
976
|
add(e) {
|
|
977
977
|
this.#e.add(e);
|
|
978
|
-
let t =
|
|
978
|
+
let t = fo(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 co = class extends ha {
|
|
|
987
987
|
}
|
|
988
988
|
remove(e) {
|
|
989
989
|
if (this.#e.delete(e)) {
|
|
990
|
-
let t =
|
|
990
|
+
let t = fo(e);
|
|
991
991
|
if (typeof t == "string") {
|
|
992
992
|
let n = this.#t.get(t);
|
|
993
993
|
if (n) {
|
|
@@ -1004,7 +1004,7 @@ var co = class extends ha {
|
|
|
1004
1004
|
});
|
|
1005
1005
|
}
|
|
1006
1006
|
canRun(e) {
|
|
1007
|
-
let t =
|
|
1007
|
+
let t = fo(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,11 +1012,11 @@ var co = class extends ha {
|
|
|
1012
1012
|
return !0;
|
|
1013
1013
|
}
|
|
1014
1014
|
runNext(e) {
|
|
1015
|
-
let t =
|
|
1015
|
+
let t = fo(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() {
|
|
1019
|
-
|
|
1019
|
+
Z.batch(() => {
|
|
1020
1020
|
this.#e.forEach((e) => {
|
|
1021
1021
|
this.notify({
|
|
1022
1022
|
type: "removed",
|
|
@@ -1033,13 +1033,13 @@ var co = class extends ha {
|
|
|
1033
1033
|
exact: !0,
|
|
1034
1034
|
...e
|
|
1035
1035
|
};
|
|
1036
|
-
return this.getAll().find((e) =>
|
|
1036
|
+
return this.getAll().find((e) => ka(t, e));
|
|
1037
1037
|
}
|
|
1038
1038
|
findAll(e = {}) {
|
|
1039
|
-
return this.getAll().filter((t) =>
|
|
1039
|
+
return this.getAll().filter((t) => ka(e, t));
|
|
1040
1040
|
}
|
|
1041
1041
|
notify(e) {
|
|
1042
|
-
|
|
1042
|
+
Z.batch(() => {
|
|
1043
1043
|
this.listeners.forEach((t) => {
|
|
1044
1044
|
t(e);
|
|
1045
1045
|
});
|
|
@@ -1047,22 +1047,22 @@ var co = class extends ha {
|
|
|
1047
1047
|
}
|
|
1048
1048
|
resumePausedMutations() {
|
|
1049
1049
|
let e = this.getAll().filter((e) => e.state.isPaused);
|
|
1050
|
-
return
|
|
1050
|
+
return Z.batch(() => Promise.all(e.map((e) => e.continue().catch(X))));
|
|
1051
1051
|
}
|
|
1052
1052
|
};
|
|
1053
|
-
function
|
|
1053
|
+
function fo(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 po = class extends _a {
|
|
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 ?? Aa(r, t), a = this.get(i);
|
|
1065
|
+
return a || (a = new io({
|
|
1066
1066
|
client: e,
|
|
1067
1067
|
queryKey: r,
|
|
1068
1068
|
queryHash: i,
|
|
@@ -1085,7 +1085,7 @@ var uo = class extends ha {
|
|
|
1085
1085
|
}));
|
|
1086
1086
|
}
|
|
1087
1087
|
clear() {
|
|
1088
|
-
|
|
1088
|
+
Z.batch(() => {
|
|
1089
1089
|
this.getAll().forEach((e) => {
|
|
1090
1090
|
this.remove(e);
|
|
1091
1091
|
});
|
|
@@ -1102,34 +1102,34 @@ var uo = class extends ha {
|
|
|
1102
1102
|
exact: !0,
|
|
1103
1103
|
...e
|
|
1104
1104
|
};
|
|
1105
|
-
return this.getAll().find((e) =>
|
|
1105
|
+
return this.getAll().find((e) => Oa(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) => Oa(e, t)) : t;
|
|
1110
1110
|
}
|
|
1111
1111
|
notify(e) {
|
|
1112
|
-
|
|
1112
|
+
Z.batch(() => {
|
|
1113
1113
|
this.listeners.forEach((t) => {
|
|
1114
1114
|
t(e);
|
|
1115
1115
|
});
|
|
1116
1116
|
});
|
|
1117
1117
|
}
|
|
1118
1118
|
onFocus() {
|
|
1119
|
-
|
|
1119
|
+
Z.batch(() => {
|
|
1120
1120
|
this.getAll().forEach((e) => {
|
|
1121
1121
|
e.onFocus();
|
|
1122
1122
|
});
|
|
1123
1123
|
});
|
|
1124
1124
|
}
|
|
1125
1125
|
onOnline() {
|
|
1126
|
-
|
|
1126
|
+
Z.batch(() => {
|
|
1127
1127
|
this.getAll().forEach((e) => {
|
|
1128
1128
|
e.onOnline();
|
|
1129
1129
|
});
|
|
1130
1130
|
});
|
|
1131
1131
|
}
|
|
1132
|
-
},
|
|
1132
|
+
}, mo = class {
|
|
1133
1133
|
#e;
|
|
1134
1134
|
#t;
|
|
1135
1135
|
#n;
|
|
@@ -1139,12 +1139,12 @@ var uo = class extends ha {
|
|
|
1139
1139
|
#o;
|
|
1140
1140
|
#s;
|
|
1141
1141
|
constructor(e = {}) {
|
|
1142
|
-
this.#e = e.queryCache || new
|
|
1142
|
+
this.#e = e.queryCache || new po(), this.#t = e.mutationCache || new uo(), 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 = va.subscribe(async (e) => {
|
|
1146
1146
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
1147
|
-
}), this.#s =
|
|
1147
|
+
}), this.#s = Ya.subscribe(async (e) => {
|
|
1148
1148
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
1149
1149
|
}));
|
|
1150
1150
|
}
|
|
@@ -1169,20 +1169,20 @@ var uo = class extends ha {
|
|
|
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(Ea(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 = Ca(t, i);
|
|
1179
1179
|
if (a !== void 0) return this.#e.build(this, r).setData(a, {
|
|
1180
1180
|
...n,
|
|
1181
1181
|
manual: !0
|
|
1182
1182
|
});
|
|
1183
1183
|
}
|
|
1184
1184
|
setQueriesData(e, t, n) {
|
|
1185
|
-
return
|
|
1185
|
+
return Z.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
|
|
1186
1186
|
}
|
|
1187
1187
|
getQueryState(e) {
|
|
1188
1188
|
let t = this.defaultQueryOptions({ queryKey: e });
|
|
@@ -1190,7 +1190,7 @@ var uo = class extends ha {
|
|
|
1190
1190
|
}
|
|
1191
1191
|
removeQueries(e) {
|
|
1192
1192
|
let t = this.#e;
|
|
1193
|
-
|
|
1193
|
+
Z.batch(() => {
|
|
1194
1194
|
t.findAll(e).forEach((e) => {
|
|
1195
1195
|
t.remove(e);
|
|
1196
1196
|
});
|
|
@@ -1198,7 +1198,7 @@ var uo = class extends ha {
|
|
|
1198
1198
|
}
|
|
1199
1199
|
resetQueries(e, t) {
|
|
1200
1200
|
let n = this.#e;
|
|
1201
|
-
return
|
|
1201
|
+
return Z.batch(() => (n.findAll(e).forEach((e) => {
|
|
1202
1202
|
e.reset();
|
|
1203
1203
|
}), this.refetchQueries({
|
|
1204
1204
|
type: "active",
|
|
@@ -1209,11 +1209,11 @@ var uo = class extends ha {
|
|
|
1209
1209
|
let n = {
|
|
1210
1210
|
revert: !0,
|
|
1211
1211
|
...t
|
|
1212
|
-
}, r =
|
|
1213
|
-
return Promise.all(r).then(
|
|
1212
|
+
}, r = Z.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
|
|
1213
|
+
return Promise.all(r).then(X).catch(X);
|
|
1214
1214
|
}
|
|
1215
1215
|
invalidateQueries(e, t = {}) {
|
|
1216
|
-
return
|
|
1216
|
+
return Z.batch(() => (this.#e.findAll(e).forEach((e) => {
|
|
1217
1217
|
e.invalidate();
|
|
1218
1218
|
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
|
|
1219
1219
|
...e,
|
|
@@ -1224,32 +1224,32 @@ var uo = class extends ha {
|
|
|
1224
1224
|
let n = {
|
|
1225
1225
|
...t,
|
|
1226
1226
|
cancelRefetch: t.cancelRefetch ?? !0
|
|
1227
|
-
}, r =
|
|
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(X)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
|
|
1230
1230
|
}));
|
|
1231
|
-
return Promise.all(r).then(
|
|
1231
|
+
return Promise.all(r).then(X);
|
|
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(Ea(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(X).catch(X);
|
|
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(X).catch(X);
|
|
1247
1247
|
}
|
|
1248
1248
|
ensureInfiniteQueryData(e) {
|
|
1249
1249
|
return e._type = "infinite", this.ensureQueryData(e);
|
|
1250
1250
|
}
|
|
1251
1251
|
resumePausedMutations() {
|
|
1252
|
-
return
|
|
1252
|
+
return Ya.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
1253
1253
|
}
|
|
1254
1254
|
getQueryCache() {
|
|
1255
1255
|
return this.#e;
|
|
@@ -1264,7 +1264,7 @@ var uo = class extends ha {
|
|
|
1264
1264
|
this.#n = e;
|
|
1265
1265
|
}
|
|
1266
1266
|
setQueryDefaults(e, t) {
|
|
1267
|
-
this.#r.set(
|
|
1267
|
+
this.#r.set(ja(e), {
|
|
1268
1268
|
queryKey: e,
|
|
1269
1269
|
defaultOptions: t
|
|
1270
1270
|
});
|
|
@@ -1272,11 +1272,11 @@ var uo = class extends ha {
|
|
|
1272
1272
|
getQueryDefaults(e) {
|
|
1273
1273
|
let t = [...this.#r.values()], n = {};
|
|
1274
1274
|
return t.forEach((t) => {
|
|
1275
|
-
|
|
1275
|
+
Ma(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(ja(e), {
|
|
1280
1280
|
mutationKey: e,
|
|
1281
1281
|
defaultOptions: t
|
|
1282
1282
|
});
|
|
@@ -1284,7 +1284,7 @@ var uo = class extends ha {
|
|
|
1284
1284
|
getMutationDefaults(e) {
|
|
1285
1285
|
let t = [...this.#i.values()], n = {};
|
|
1286
1286
|
return t.forEach((t) => {
|
|
1287
|
-
|
|
1287
|
+
Ma(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
|
|
1288
1288
|
}), n;
|
|
1289
1289
|
}
|
|
1290
1290
|
defaultQueryOptions(e) {
|
|
@@ -1295,7 +1295,7 @@ var uo = class extends ha {
|
|
|
1295
1295
|
...e,
|
|
1296
1296
|
_defaulted: !0
|
|
1297
1297
|
};
|
|
1298
|
-
return t.queryHash ||=
|
|
1298
|
+
return t.queryHash ||= Aa(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 === Ha && (t.enabled = !1), t;
|
|
1299
1299
|
}
|
|
1300
1300
|
defaultMutationOptions(e) {
|
|
1301
1301
|
return e?._defaulted ? e : {
|
|
@@ -1308,22 +1308,22 @@ var uo = class extends ha {
|
|
|
1308
1308
|
clear() {
|
|
1309
1309
|
this.#e.clear(), this.#t.clear();
|
|
1310
1310
|
}
|
|
1311
|
-
},
|
|
1312
|
-
Vue: () =>
|
|
1311
|
+
}, ho = /* @__PURE__ */ e({
|
|
1312
|
+
Vue: () => $i,
|
|
1313
1313
|
Vue2: () => void 0,
|
|
1314
|
-
del: () =>
|
|
1315
|
-
install: () =>
|
|
1314
|
+
del: () => yo,
|
|
1315
|
+
install: () => _o,
|
|
1316
1316
|
isVue2: () => !1,
|
|
1317
1317
|
isVue3: () => !0,
|
|
1318
|
-
set: () =>
|
|
1318
|
+
set: () => vo
|
|
1319
1319
|
});
|
|
1320
|
-
import * as
|
|
1321
|
-
t(
|
|
1322
|
-
function
|
|
1323
|
-
function
|
|
1320
|
+
import * as go from "vue";
|
|
1321
|
+
t(ho, go);
|
|
1322
|
+
function _o() {}
|
|
1323
|
+
function vo(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 yo(e, t) {
|
|
1327
1327
|
if (Array.isArray(e)) {
|
|
1328
1328
|
e.splice(t, 1);
|
|
1329
1329
|
return;
|
|
@@ -1332,100 +1332,100 @@ function _o(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 bo = "VUE_QUERY_CLIENT";
|
|
1336
|
+
function xo(e) {
|
|
1337
|
+
return `${bo}${e ? `:${e}` : ""}`;
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1339
|
+
function So(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, ho.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) => So(e, t, String(n), r + 1));
|
|
1345
|
+
if (typeof e == "object" && wo(e)) {
|
|
1346
|
+
let n = Object.entries(e).map(([e, n]) => [e, So(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 Co(e, t) {
|
|
1352
|
+
return So(e, t);
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1355
|
-
return
|
|
1356
|
-
if (r === 1 && n === "queryKey") return
|
|
1357
|
-
if (t &&
|
|
1358
|
-
if ((0,
|
|
1354
|
+
function Q(e, t = !1) {
|
|
1355
|
+
return Co(e, (e, n, r) => {
|
|
1356
|
+
if (r === 1 && n === "queryKey") return Q(e, !0);
|
|
1357
|
+
if (t && To(e)) return Q(e(), t);
|
|
1358
|
+
if ((0, ho.isRef)(e)) return Q((0, ho.unref)(e), t);
|
|
1359
1359
|
});
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1361
|
+
function wo(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 To(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 Eo = class extends po {
|
|
1372
1372
|
find(e) {
|
|
1373
|
-
return super.find(
|
|
1373
|
+
return super.find(Q(e));
|
|
1374
1374
|
}
|
|
1375
1375
|
findAll(e = {}) {
|
|
1376
|
-
return super.findAll(
|
|
1376
|
+
return super.findAll(Q(e));
|
|
1377
1377
|
}
|
|
1378
|
-
},
|
|
1378
|
+
}, Do = class extends uo {
|
|
1379
1379
|
find(e) {
|
|
1380
|
-
return super.find(
|
|
1380
|
+
return super.find(Q(e));
|
|
1381
1381
|
}
|
|
1382
1382
|
findAll(e = {}) {
|
|
1383
|
-
return super.findAll(
|
|
1383
|
+
return super.findAll(Q(e));
|
|
1384
1384
|
}
|
|
1385
|
-
},
|
|
1385
|
+
}, Oo = class extends mo {
|
|
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 Eo(),
|
|
1390
|
+
mutationCache: e.mutationCache || new Do()
|
|
1391
1391
|
};
|
|
1392
|
-
super(t), this.isRestoring = (0,
|
|
1392
|
+
super(t), this.isRestoring = (0, ho.ref)(!1);
|
|
1393
1393
|
}
|
|
1394
1394
|
isFetching(e = {}) {
|
|
1395
|
-
return super.isFetching(
|
|
1395
|
+
return super.isFetching(Q(e));
|
|
1396
1396
|
}
|
|
1397
1397
|
isMutating(e = {}) {
|
|
1398
|
-
return super.isMutating(
|
|
1398
|
+
return super.isMutating(Q(e));
|
|
1399
1399
|
}
|
|
1400
1400
|
getQueryData(e) {
|
|
1401
|
-
return super.getQueryData(
|
|
1401
|
+
return super.getQueryData(Q(e));
|
|
1402
1402
|
}
|
|
1403
1403
|
ensureQueryData(e) {
|
|
1404
|
-
return super.ensureQueryData(
|
|
1404
|
+
return super.ensureQueryData(Q(e));
|
|
1405
1405
|
}
|
|
1406
1406
|
getQueriesData(e) {
|
|
1407
|
-
return super.getQueriesData(
|
|
1407
|
+
return super.getQueriesData(Q(e));
|
|
1408
1408
|
}
|
|
1409
1409
|
setQueryData(e, t, n = {}) {
|
|
1410
|
-
return super.setQueryData(
|
|
1410
|
+
return super.setQueryData(Q(e), t, Q(n));
|
|
1411
1411
|
}
|
|
1412
1412
|
setQueriesData(e, t, n = {}) {
|
|
1413
|
-
return super.setQueriesData(
|
|
1413
|
+
return super.setQueriesData(Q(e), t, Q(n));
|
|
1414
1414
|
}
|
|
1415
1415
|
getQueryState(e) {
|
|
1416
|
-
return super.getQueryState(
|
|
1416
|
+
return super.getQueryState(Q(e));
|
|
1417
1417
|
}
|
|
1418
1418
|
removeQueries(e = {}) {
|
|
1419
|
-
return super.removeQueries(
|
|
1419
|
+
return super.removeQueries(Q(e));
|
|
1420
1420
|
}
|
|
1421
1421
|
resetQueries(e = {}, t = {}) {
|
|
1422
|
-
return super.resetQueries(
|
|
1422
|
+
return super.resetQueries(Q(e), Q(t));
|
|
1423
1423
|
}
|
|
1424
1424
|
cancelQueries(e = {}, t = {}) {
|
|
1425
|
-
return super.cancelQueries(
|
|
1425
|
+
return super.cancelQueries(Q(e), Q(t));
|
|
1426
1426
|
}
|
|
1427
1427
|
invalidateQueries(e = {}, t = {}) {
|
|
1428
|
-
let n =
|
|
1428
|
+
let n = Q(e), r = Q(t);
|
|
1429
1429
|
if (super.invalidateQueries({
|
|
1430
1430
|
...n,
|
|
1431
1431
|
refetchType: "none"
|
|
@@ -1434,57 +1434,57 @@ var wo = class extends uo {
|
|
|
1434
1434
|
...n,
|
|
1435
1435
|
type: n.refetchType ?? n.type ?? "active"
|
|
1436
1436
|
};
|
|
1437
|
-
return (0,
|
|
1437
|
+
return (0, ho.nextTick)().then(() => super.refetchQueries(i, r));
|
|
1438
1438
|
}
|
|
1439
1439
|
refetchQueries(e = {}, t = {}) {
|
|
1440
|
-
return super.refetchQueries(
|
|
1440
|
+
return super.refetchQueries(Q(e), Q(t));
|
|
1441
1441
|
}
|
|
1442
1442
|
fetchQuery(e) {
|
|
1443
|
-
return super.fetchQuery(
|
|
1443
|
+
return super.fetchQuery(Q(e));
|
|
1444
1444
|
}
|
|
1445
1445
|
prefetchQuery(e) {
|
|
1446
|
-
return super.prefetchQuery(
|
|
1446
|
+
return super.prefetchQuery(Q(e));
|
|
1447
1447
|
}
|
|
1448
1448
|
fetchInfiniteQuery(e) {
|
|
1449
|
-
return super.fetchInfiniteQuery(
|
|
1449
|
+
return super.fetchInfiniteQuery(Q(e));
|
|
1450
1450
|
}
|
|
1451
1451
|
prefetchInfiniteQuery(e) {
|
|
1452
|
-
return super.prefetchInfiniteQuery(
|
|
1452
|
+
return super.prefetchInfiniteQuery(Q(e));
|
|
1453
1453
|
}
|
|
1454
1454
|
setDefaultOptions(e) {
|
|
1455
|
-
super.setDefaultOptions(
|
|
1455
|
+
super.setDefaultOptions(Q(e));
|
|
1456
1456
|
}
|
|
1457
1457
|
setQueryDefaults(e, t) {
|
|
1458
|
-
super.setQueryDefaults(
|
|
1458
|
+
super.setQueryDefaults(Q(e), Q(t));
|
|
1459
1459
|
}
|
|
1460
1460
|
getQueryDefaults(e) {
|
|
1461
|
-
return super.getQueryDefaults(
|
|
1461
|
+
return super.getQueryDefaults(Q(e));
|
|
1462
1462
|
}
|
|
1463
1463
|
setMutationDefaults(e, t) {
|
|
1464
|
-
super.setMutationDefaults(
|
|
1464
|
+
super.setMutationDefaults(Q(e), Q(t));
|
|
1465
1465
|
}
|
|
1466
1466
|
getMutationDefaults(e) {
|
|
1467
|
-
return super.getMutationDefaults(
|
|
1467
|
+
return super.getMutationDefaults(Q(e));
|
|
1468
1468
|
}
|
|
1469
1469
|
};
|
|
1470
1470
|
//#endregion
|
|
1471
1471
|
//#region node_modules/@vue/devtools-api/lib/esm/env.js
|
|
1472
|
-
function
|
|
1473
|
-
return
|
|
1472
|
+
function ko() {
|
|
1473
|
+
return Ao().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
1474
1474
|
}
|
|
1475
|
-
function
|
|
1475
|
+
function Ao() {
|
|
1476
1476
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
1477
1477
|
}
|
|
1478
|
-
var
|
|
1479
|
-
function
|
|
1480
|
-
return
|
|
1478
|
+
var jo = typeof Proxy == "function", Mo = "devtools-plugin:setup", No = "plugin:settings:set", Po, Fo;
|
|
1479
|
+
function Io() {
|
|
1480
|
+
return Po === void 0 && (typeof window < "u" && window.performance ? (Po = !0, Fo = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (Po = !0, Fo = globalThis.perf_hooks.performance) : Po = !1), Po;
|
|
1481
1481
|
}
|
|
1482
|
-
function
|
|
1483
|
-
return
|
|
1482
|
+
function Lo() {
|
|
1483
|
+
return Io() ? Fo.now() : Date.now();
|
|
1484
1484
|
}
|
|
1485
1485
|
//#endregion
|
|
1486
1486
|
//#region node_modules/@vue/devtools-api/lib/esm/proxy.js
|
|
1487
|
-
var
|
|
1487
|
+
var Ro = 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 Io = class {
|
|
|
1505
1505
|
i = e;
|
|
1506
1506
|
},
|
|
1507
1507
|
now() {
|
|
1508
|
-
return
|
|
1508
|
+
return Lo();
|
|
1509
1509
|
}
|
|
1510
|
-
}, t && t.on(
|
|
1510
|
+
}, t && t.on(No, (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 Io = 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 zo(e, t) {
|
|
1538
|
+
let n = e, r = Ao(), i = ko(), a = jo && n.enableEarlyProxy;
|
|
1539
|
+
if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(Mo, e, t);
|
|
1540
1540
|
else {
|
|
1541
|
-
let e = a ? new
|
|
1541
|
+
let e = a ? new Ro(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 Lo(e, t) {
|
|
|
1548
1548
|
}
|
|
1549
1549
|
//#endregion
|
|
1550
1550
|
//#region node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
|
|
1551
|
-
var
|
|
1551
|
+
var Bo = {
|
|
1552
1552
|
À: "A",
|
|
1553
1553
|
Á: "A",
|
|
1554
1554
|
Â: "A",
|
|
@@ -1948,11 +1948,11 @@ var Ro = {
|
|
|
1948
1948
|
x̧: "x",
|
|
1949
1949
|
Z̧: "Z",
|
|
1950
1950
|
z̧: "z"
|
|
1951
|
-
},
|
|
1952
|
-
function
|
|
1953
|
-
return e.replace(
|
|
1951
|
+
}, Vo = Object.keys(Bo).join("|"), Ho = new RegExp(Vo, "g");
|
|
1952
|
+
function Uo(e) {
|
|
1953
|
+
return e.replace(Ho, (e) => Bo[e]);
|
|
1954
1954
|
}
|
|
1955
|
-
var
|
|
1955
|
+
var $ = {
|
|
1956
1956
|
CASE_SENSITIVE_EQUAL: 7,
|
|
1957
1957
|
EQUAL: 6,
|
|
1958
1958
|
STARTS_WITH: 5,
|
|
@@ -1962,9 +1962,9 @@ var Y = {
|
|
|
1962
1962
|
MATCHES: 1,
|
|
1963
1963
|
NO_MATCH: 0
|
|
1964
1964
|
};
|
|
1965
|
-
function
|
|
1966
|
-
if (n ||= {}, n.threshold = n.threshold ??
|
|
1967
|
-
let r =
|
|
1965
|
+
function Wo(e, t, n) {
|
|
1966
|
+
if (n ||= {}, n.threshold = n.threshold ?? $.MATCHES, !n.accessors) {
|
|
1967
|
+
let r = Go(e, t, n);
|
|
1968
1968
|
return {
|
|
1969
1969
|
rankedValue: e,
|
|
1970
1970
|
rank: r,
|
|
@@ -1973,23 +1973,23 @@ function Ho(e, t, n) {
|
|
|
1973
1973
|
passed: r >= n.threshold
|
|
1974
1974
|
};
|
|
1975
1975
|
}
|
|
1976
|
-
let r =
|
|
1976
|
+
let r = Xo(e, n.accessors), i = {
|
|
1977
1977
|
rankedValue: e,
|
|
1978
|
-
rank:
|
|
1978
|
+
rank: $.NO_MATCH,
|
|
1979
1979
|
accessorIndex: -1,
|
|
1980
1980
|
accessorThreshold: n.threshold,
|
|
1981
1981
|
passed: !1
|
|
1982
1982
|
};
|
|
1983
1983
|
for (let e = 0; e < r.length; e++) {
|
|
1984
|
-
let a = r[e], o =
|
|
1985
|
-
o < s && o >=
|
|
1984
|
+
let a = r[e], o = Go(a.itemValue, t, n), { minRanking: s, maxRanking: c, threshold: l = n.threshold } = a.attributes;
|
|
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 Go(e, t, n) {
|
|
1990
|
+
return e = Jo(e, n), t = Jo(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 : Ko(e).includes(t) ? $.ACRONYM : qo(e, t));
|
|
1991
1991
|
}
|
|
1992
|
-
function
|
|
1992
|
+
function Ko(e) {
|
|
1993
1993
|
let t = "";
|
|
1994
1994
|
return e.split(" ").forEach((e) => {
|
|
1995
1995
|
e.split("-").forEach((e) => {
|
|
@@ -1997,7 +1997,7 @@ function Wo(e) {
|
|
|
1997
1997
|
});
|
|
1998
1998
|
}), t;
|
|
1999
1999
|
}
|
|
2000
|
-
function
|
|
2000
|
+
function qo(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;
|
|
@@ -2005,31 +2005,31 @@ function Go(e, t) {
|
|
|
2005
2005
|
}
|
|
2006
2006
|
function a(e) {
|
|
2007
2007
|
let r = 1 / e, i = n / t.length;
|
|
2008
|
-
return
|
|
2008
|
+
return $.MATCHES + i * r;
|
|
2009
2009
|
}
|
|
2010
2010
|
let o = i(t[0], e, 0);
|
|
2011
|
-
if (o < 0) return
|
|
2011
|
+
if (o < 0) return $.NO_MATCH;
|
|
2012
2012
|
r = o;
|
|
2013
2013
|
for (let n = 1, a = t.length; n < a; n++) {
|
|
2014
2014
|
let a = t[n];
|
|
2015
|
-
if (r = i(a, e, r), !(r > -1)) return
|
|
2015
|
+
if (r = i(a, e, r), !(r > -1)) return $.NO_MATCH;
|
|
2016
2016
|
}
|
|
2017
2017
|
return a(r - o);
|
|
2018
2018
|
}
|
|
2019
|
-
function
|
|
2019
|
+
function Jo(e, t) {
|
|
2020
2020
|
let { keepDiacritics: n } = t;
|
|
2021
|
-
return e = `${e}`, n || (e =
|
|
2021
|
+
return e = `${e}`, n || (e = Uo(e)), e;
|
|
2022
2022
|
}
|
|
2023
|
-
function
|
|
2023
|
+
function Yo(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 Xo(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 = Qo(i), o = Yo(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 Jo(e, t) {
|
|
|
2037
2037
|
}
|
|
2038
2038
|
return n;
|
|
2039
2039
|
}
|
|
2040
|
-
var
|
|
2040
|
+
var Zo = {
|
|
2041
2041
|
maxRanking: Infinity,
|
|
2042
2042
|
minRanking: -Infinity
|
|
2043
2043
|
};
|
|
2044
|
-
function
|
|
2045
|
-
return typeof e == "function" ?
|
|
2046
|
-
...
|
|
2044
|
+
function Qo(e) {
|
|
2045
|
+
return typeof e == "function" ? Zo : {
|
|
2046
|
+
...Zo,
|
|
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
|
|
2052
|
+
function $o(e) {
|
|
2053
2053
|
return e.state.fetchStatus === "fetching" ? 0 : e.state.fetchStatus === "paused" ? 4 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3;
|
|
2054
2054
|
}
|
|
2055
|
-
function
|
|
2056
|
-
let t =
|
|
2055
|
+
function es(e) {
|
|
2056
|
+
let t = $o(e);
|
|
2057
2057
|
return t === 0 ? "fetching" : t === 4 ? "paused" : t === 2 ? "stale" : t === 3 ? "inactive" : "fresh";
|
|
2058
2058
|
}
|
|
2059
|
-
function
|
|
2060
|
-
return
|
|
2059
|
+
function ts(e) {
|
|
2060
|
+
return $o(e) === 2 ? 0 : 16777215;
|
|
2061
2061
|
}
|
|
2062
|
-
function
|
|
2063
|
-
let t =
|
|
2062
|
+
function ns(e) {
|
|
2063
|
+
let t = $o(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 rs = (e, t) => e.queryHash.localeCompare(t.queryHash), is = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, as = {
|
|
2067
|
+
"Status > Last Updated": (e, t) => $o(e) === $o(t) ? is(e, t) : $o(e) > $o(t) ? 1 : -1,
|
|
2068
|
+
"Query Hash": rs,
|
|
2069
|
+
"Last Updated": is
|
|
2070
|
+
}, os = "vue-query", ss = "Vue Query";
|
|
2071
|
+
function cs(e, t) {
|
|
2072
|
+
zo({
|
|
2073
|
+
id: os,
|
|
2074
|
+
label: ss,
|
|
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 is(e, t) {
|
|
|
2093
2093
|
sortFn: {
|
|
2094
2094
|
type: "choice",
|
|
2095
2095
|
label: "Sort Function",
|
|
2096
|
-
options: Object.keys(
|
|
2096
|
+
options: Object.keys(as).map((e) => ({
|
|
2097
2097
|
label: e,
|
|
2098
2098
|
value: e
|
|
2099
2099
|
})),
|
|
2100
|
-
defaultValue: Object.keys(
|
|
2100
|
+
defaultValue: Object.keys(as)[0]
|
|
2101
2101
|
},
|
|
2102
2102
|
onlineMode: {
|
|
2103
2103
|
type: "choice",
|
|
@@ -2115,11 +2115,11 @@ function is(e, t) {
|
|
|
2115
2115
|
}
|
|
2116
2116
|
}, (e) => {
|
|
2117
2117
|
let n = e.getSettings();
|
|
2118
|
-
|
|
2118
|
+
Ya.setOnline(!!n.onlineMode.valueOf());
|
|
2119
2119
|
let r = t.getQueryCache();
|
|
2120
2120
|
e.addInspector({
|
|
2121
|
-
id:
|
|
2122
|
-
label:
|
|
2121
|
+
id: os,
|
|
2122
|
+
label: ss,
|
|
2123
2123
|
icon: "api",
|
|
2124
2124
|
nodeActions: [
|
|
2125
2125
|
{
|
|
@@ -2178,16 +2178,16 @@ function is(e, t) {
|
|
|
2178
2178
|
}
|
|
2179
2179
|
]
|
|
2180
2180
|
}), e.addTimelineLayer({
|
|
2181
|
-
id:
|
|
2182
|
-
label:
|
|
2181
|
+
id: os,
|
|
2182
|
+
label: ss,
|
|
2183
2183
|
color: 16767308
|
|
2184
2184
|
}), r.subscribe((t) => {
|
|
2185
|
-
e.sendInspectorTree(
|
|
2185
|
+
e.sendInspectorTree(os), e.sendInspectorState(os), [
|
|
2186
2186
|
"added",
|
|
2187
2187
|
"removed",
|
|
2188
2188
|
"updated"
|
|
2189
2189
|
].includes(t.type) && e.addTimelineEvent({
|
|
2190
|
-
layerId:
|
|
2190
|
+
layerId: os,
|
|
2191
2191
|
event: {
|
|
2192
2192
|
title: t.type,
|
|
2193
2193
|
subtitle: t.query.queryHash,
|
|
@@ -2199,25 +2199,25 @@ function is(e, t) {
|
|
|
2199
2199
|
}
|
|
2200
2200
|
});
|
|
2201
2201
|
}), e.on.setPluginSettings((e) => {
|
|
2202
|
-
e.key === "onlineMode" &&
|
|
2202
|
+
e.key === "onlineMode" && Ya.setOnline(!!e.newValue);
|
|
2203
2203
|
}), e.on.getInspectorTree((t) => {
|
|
2204
|
-
if (t.inspectorId ===
|
|
2204
|
+
if (t.inspectorId === os) {
|
|
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) => Wo(e.queryHash, t.filter).passed) : [...n]).sort((e, t) => as[i.sortFn](e, t) * i.baseSort).map((e) => {
|
|
2207
|
+
let t = es(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: ts(e),
|
|
2214
|
+
backgroundColor: ns(e)
|
|
2215
2215
|
}]
|
|
2216
2216
|
};
|
|
2217
2217
|
});
|
|
2218
2218
|
}
|
|
2219
2219
|
}), e.on.getInspectorState((e) => {
|
|
2220
|
-
if (e.inspectorId ===
|
|
2220
|
+
if (e.inspectorId === os) {
|
|
2221
2221
|
let t = r.get(e.nodeId);
|
|
2222
2222
|
if (!t) return;
|
|
2223
2223
|
e.state = {
|
|
@@ -2228,7 +2228,7 @@ function is(e, t) {
|
|
|
2228
2228
|
},
|
|
2229
2229
|
{
|
|
2230
2230
|
key: "Query status",
|
|
2231
|
-
value:
|
|
2231
|
+
value: es(t)
|
|
2232
2232
|
},
|
|
2233
2233
|
{
|
|
2234
2234
|
key: "Observers",
|
|
@@ -2254,9 +2254,9 @@ function is(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 ls = { install: (e, t = {}) => {
|
|
2258
|
+
let n = xo(t.queryClientKey), r;
|
|
2259
|
+
r = "queryClient" in t && t.queryClient ? t.queryClient : new Oo("queryClientConfig" in t ? t.queryClientConfig : void 0), Ga.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 as = { 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 && cs(e, r);
|
|
2279
2279
|
} };
|
|
2280
2280
|
//#endregion
|
|
2281
2281
|
//#region src/web-core/query.ts
|
|
2282
|
-
function
|
|
2283
|
-
return new
|
|
2282
|
+
function us() {
|
|
2283
|
+
return new Oo({ defaultOptions: { queries: {
|
|
2284
2284
|
staleTime: 3e4,
|
|
2285
2285
|
refetchOnWindowFocus: !1
|
|
2286
2286
|
} } });
|
|
2287
2287
|
}
|
|
2288
|
-
var
|
|
2288
|
+
var ds = {
|
|
2289
2289
|
session: { current: ["session", "current"] },
|
|
2290
2290
|
menu: { mine: ["menu", "mine"] },
|
|
2291
2291
|
staticModule: {
|
|
@@ -2311,7 +2311,7 @@ var ss = {
|
|
|
2311
2311
|
};
|
|
2312
2312
|
//#endregion
|
|
2313
2313
|
//#region src/web-core/constructionPlanClient.ts
|
|
2314
|
-
function
|
|
2314
|
+
function fs(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,10 +2346,10 @@ function cs(e) {
|
|
|
2346
2346
|
}
|
|
2347
2347
|
//#endregion
|
|
2348
2348
|
//#region src/web-core/assistantConversationClient.ts
|
|
2349
|
-
function
|
|
2349
|
+
function ps(e) {
|
|
2350
2350
|
let t = "/platform.assistant-conversations";
|
|
2351
2351
|
return {
|
|
2352
|
-
lookupOperation: (t) =>
|
|
2352
|
+
lookupOperation: (t) => ve(e, t),
|
|
2353
2353
|
list: (n, r) => e.request({
|
|
2354
2354
|
path: t,
|
|
2355
2355
|
query: {
|
|
@@ -2374,100 +2374,100 @@ function ls(e) {
|
|
|
2374
2374
|
}
|
|
2375
2375
|
//#endregion
|
|
2376
2376
|
//#region src/platform-admin-runtime/platformAdminRoutes.ts
|
|
2377
|
-
var
|
|
2377
|
+
var ms = U(() => import("./workspaceViews-Cas3PR5B.js").then((e) => e.n)), hs = U(() => import("./BusinessActivityLogView-DQ5_VmLp.js")), gs = U(() => import("./RequestErrorLogView-HatmiK8_.js")), _s = U(() => import("./LoginAuditLogView-BIz1LVC3.js")), vs = U(() => import("./RuntimeLogView-Vdt6SWK6.js")), ys = [
|
|
2378
2378
|
{
|
|
2379
2379
|
route: "/platform/code-rule",
|
|
2380
2380
|
moduleAlias: "platform.code_rule",
|
|
2381
|
-
component:
|
|
2381
|
+
component: U(() => import("./CodeConfigurationView-CtQjmpLz.js").then((e) => e.n)),
|
|
2382
2382
|
layout: "workspace"
|
|
2383
2383
|
},
|
|
2384
2384
|
{
|
|
2385
2385
|
route: "/platform/translations",
|
|
2386
2386
|
moduleAlias: "platform.localization",
|
|
2387
|
-
component:
|
|
2387
|
+
component: U(() => import("./ConfigurationTranslationView-BiYn2MJx.js")),
|
|
2388
2388
|
layout: "workspace"
|
|
2389
2389
|
},
|
|
2390
2390
|
{
|
|
2391
2391
|
route: "/workflow/admin",
|
|
2392
2392
|
moduleAlias: "platform.workflow_admin",
|
|
2393
|
-
component:
|
|
2393
|
+
component: U(() => import("./WorkflowAdministrationView-Dlw2ng0N.js")),
|
|
2394
2394
|
layout: "workspace"
|
|
2395
2395
|
},
|
|
2396
2396
|
{
|
|
2397
2397
|
route: "/workflow/workbench",
|
|
2398
2398
|
moduleAlias: "iam.workflow_workbench",
|
|
2399
|
-
component:
|
|
2399
|
+
component: U(() => import("./WorkflowWorkbenchView-Nv4mvTTP.js")),
|
|
2400
2400
|
layout: "workspace"
|
|
2401
2401
|
},
|
|
2402
2402
|
{
|
|
2403
2403
|
route: "/platform/logs/runtime",
|
|
2404
2404
|
moduleAlias: "platform.runtime_log",
|
|
2405
|
-
component:
|
|
2405
|
+
component: vs,
|
|
2406
2406
|
layout: "workspace"
|
|
2407
2407
|
},
|
|
2408
2408
|
{
|
|
2409
2409
|
route: "/platform/logs/activity",
|
|
2410
2410
|
moduleAlias: "platform.business_activity_log",
|
|
2411
|
-
component:
|
|
2411
|
+
component: hs,
|
|
2412
2412
|
layout: "workspace"
|
|
2413
2413
|
},
|
|
2414
2414
|
{
|
|
2415
2415
|
route: "/platform/logs/errors",
|
|
2416
2416
|
moduleAlias: "platform.request_error_log",
|
|
2417
|
-
component:
|
|
2417
|
+
component: gs,
|
|
2418
2418
|
layout: "workspace"
|
|
2419
2419
|
},
|
|
2420
2420
|
{
|
|
2421
2421
|
route: "/iam/logs/login",
|
|
2422
2422
|
moduleAlias: "iam.login_audit_log",
|
|
2423
|
-
component:
|
|
2423
|
+
component: _s,
|
|
2424
2424
|
layout: "workspace"
|
|
2425
2425
|
},
|
|
2426
2426
|
{
|
|
2427
2427
|
route: "/iam/role/authorization",
|
|
2428
2428
|
moduleAlias: "iam.role",
|
|
2429
|
-
component:
|
|
2429
|
+
component: ms,
|
|
2430
2430
|
layout: "workspace",
|
|
2431
2431
|
menuEntry: !1
|
|
2432
2432
|
}
|
|
2433
|
-
],
|
|
2434
|
-
function
|
|
2435
|
-
if (e) return
|
|
2433
|
+
], bs = Array.from(/* @__PURE__ */ new Set(["/_platform/workspace", ...ys.map((e) => e.route)])), xs = Object.fromEntries(ys.filter((e) => e.menuEntry !== !1).map((e) => [e.moduleAlias, e.route])), Ss = Object.fromEntries(ys.map((e) => [e.route, e.layout]));
|
|
2434
|
+
function Cs(e) {
|
|
2435
|
+
if (e) return ys.find((t) => Ts(t, e.target));
|
|
2436
2436
|
}
|
|
2437
|
-
function
|
|
2438
|
-
return e?.pageType === "business-route" && !!
|
|
2437
|
+
function ws(e) {
|
|
2438
|
+
return e?.pageType === "business-route" && !!Cs(e);
|
|
2439
2439
|
}
|
|
2440
|
-
function
|
|
2441
|
-
return t.route ?
|
|
2440
|
+
function Ts(e, t) {
|
|
2441
|
+
return t.route ? Es(e.route, t.route) && (t.moduleAlias === void 0 || t.moduleAlias === e.moduleAlias) : t.moduleAlias === e.moduleAlias;
|
|
2442
2442
|
}
|
|
2443
|
-
function
|
|
2443
|
+
function Es(e, t) {
|
|
2444
2444
|
let n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean);
|
|
2445
2445
|
return n.length === r.length && n.every((e, t) => e.startsWith(":") || e === r[t]);
|
|
2446
2446
|
}
|
|
2447
2447
|
//#endregion
|
|
2448
2448
|
//#region src/app/pageRouteContext.ts
|
|
2449
|
-
var
|
|
2450
|
-
function
|
|
2451
|
-
ca(
|
|
2449
|
+
var Ds = Symbol("page-route"), Os = Symbol("page-descriptor");
|
|
2450
|
+
function ks(e) {
|
|
2451
|
+
ca(Ds, I(e));
|
|
2452
2452
|
}
|
|
2453
|
-
function
|
|
2454
|
-
let e = na(
|
|
2453
|
+
function As() {
|
|
2454
|
+
let e = na(Ds);
|
|
2455
2455
|
if (e) return e;
|
|
2456
|
-
let t =
|
|
2457
|
-
return
|
|
2456
|
+
let t = E();
|
|
2457
|
+
return I(() => t);
|
|
2458
2458
|
}
|
|
2459
|
-
function
|
|
2460
|
-
return na(
|
|
2459
|
+
function js() {
|
|
2460
|
+
return na(Os) ?? I(() => void 0);
|
|
2461
2461
|
}
|
|
2462
2462
|
//#endregion
|
|
2463
2463
|
//#region src/platform-admin-runtime/PlatformAdminOutlet.vue
|
|
2464
|
-
var
|
|
2464
|
+
var Ms = /* @__PURE__ */ W({
|
|
2465
2465
|
name: "PlatformAdminRouteOutlet",
|
|
2466
2466
|
__name: "PlatformAdminOutlet",
|
|
2467
2467
|
props: { descriptor: {} },
|
|
2468
2468
|
setup(e) {
|
|
2469
|
-
let t = e, n =
|
|
2470
|
-
|
|
2469
|
+
let t = e, n = I(() => Cs(t.descriptor)), r = I(() => t.descriptor.target.moduleAlias ?? n.value?.moduleAlias), i = I(() => t.descriptor.target.query?.workspacePresentation);
|
|
2470
|
+
Ci(I(() => t.descriptor.layout ?? n.value?.layout)), ks(() => {
|
|
2471
2471
|
let e = n.value?.route ?? t.descriptor.target.route ?? "", r = t.descriptor.target.route ?? e;
|
|
2472
2472
|
return {
|
|
2473
2473
|
path: r,
|
|
@@ -2483,36 +2483,36 @@ var Os = /* @__PURE__ */ z({
|
|
|
2483
2483
|
e.startsWith(":") && i[t] && (n[e.slice(1)] = i[t]);
|
|
2484
2484
|
}), n;
|
|
2485
2485
|
}
|
|
2486
|
-
return (t, a) => n.value && r.value ? (
|
|
2486
|
+
return (t, a) => n.value && r.value ? (G(), L(J(Mt), {
|
|
2487
2487
|
key: 0,
|
|
2488
2488
|
"module-alias": r.value
|
|
2489
2489
|
}, {
|
|
2490
|
-
default:
|
|
2490
|
+
default: Y(() => [i.value === "drawer" || i.value === "tab" ? (G(), L(J(ke), {
|
|
2491
2491
|
key: 0,
|
|
2492
2492
|
descriptor: e.descriptor
|
|
2493
|
-
}, null, 8, ["descriptor"])) : (
|
|
2493
|
+
}, null, 8, ["descriptor"])) : (G(), L(da(n.value.component), { key: 1 }))]),
|
|
2494
2494
|
_: 1
|
|
2495
|
-
}, 8, ["module-alias"])) :
|
|
2495
|
+
}, 8, ["module-alias"])) : R("v-if", !0);
|
|
2496
2496
|
}
|
|
2497
|
-
}),
|
|
2498
|
-
function
|
|
2499
|
-
|
|
2497
|
+
}), Ns;
|
|
2498
|
+
function Ps(e) {
|
|
2499
|
+
Ns = e;
|
|
2500
2500
|
}
|
|
2501
|
-
function
|
|
2502
|
-
return
|
|
2501
|
+
function Fs(e, t) {
|
|
2502
|
+
return Ns?.(e, t) ?? !1;
|
|
2503
2503
|
}
|
|
2504
2504
|
//#endregion
|
|
2505
2505
|
//#region src/platform-admin-runtime/backendHttp.ts
|
|
2506
|
-
function
|
|
2507
|
-
let t = () =>
|
|
2506
|
+
function Is(e = {}) {
|
|
2507
|
+
let t = () => pn(Ze({
|
|
2508
2508
|
baseUrl: import.meta.env.VITE_MUYUN_API_BASE_URL,
|
|
2509
2509
|
token: e.withAuth === !1 ? void 0 : b(import.meta.env.VITE_MUYUN_AUTH_TOKEN),
|
|
2510
|
-
credentials:
|
|
2511
|
-
onAuthenticationRequired: e.withAuth === !1 ? void 0 : (e, t) =>
|
|
2512
|
-
}), e.language ??
|
|
2510
|
+
credentials: Ls(import.meta.env.VITE_MUYUN_CREDENTIALS),
|
|
2511
|
+
onAuthenticationRequired: e.withAuth === !1 ? void 0 : (e, t) => Fs(e, t)
|
|
2512
|
+
}), e.language ?? zt);
|
|
2513
2513
|
return {
|
|
2514
2514
|
async request(e) {
|
|
2515
|
-
let n = await t().request(e), r =
|
|
2515
|
+
let n = await t().request(e), r = Er(n);
|
|
2516
2516
|
return r.changeSetId && v.dispatch({
|
|
2517
2517
|
changeSetId: r.changeSetId,
|
|
2518
2518
|
changes: r.changes
|
|
@@ -2523,16 +2523,16 @@ function Ms(e = {}) {
|
|
|
2523
2523
|
}
|
|
2524
2524
|
};
|
|
2525
2525
|
}
|
|
2526
|
-
function
|
|
2526
|
+
function Ls(e) {
|
|
2527
2527
|
return e === "include" || e === "omit" || e === "same-origin" ? e : void 0;
|
|
2528
2528
|
}
|
|
2529
2529
|
//#endregion
|
|
2530
2530
|
//#region src/platform-admin-runtime/moduleOpenApi.ts
|
|
2531
|
-
var
|
|
2532
|
-
function
|
|
2533
|
-
return
|
|
2531
|
+
var Rs = /^\/openapi\/([a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)+)\/?$/;
|
|
2532
|
+
function zs(e) {
|
|
2533
|
+
return Rs.exec(e)?.[1];
|
|
2534
2534
|
}
|
|
2535
|
-
function
|
|
2535
|
+
function Bs(e, t) {
|
|
2536
2536
|
return {
|
|
2537
2537
|
pageType: "platform-route",
|
|
2538
2538
|
openMode: "workbench-route",
|
|
@@ -2549,14 +2549,14 @@ function Is(e, t) {
|
|
|
2549
2549
|
}
|
|
2550
2550
|
};
|
|
2551
2551
|
}
|
|
2552
|
-
function
|
|
2553
|
-
let t = "platform.screen.OpenApiCatalogView.module-api-directory", n =
|
|
2552
|
+
function Vs(e = zt) {
|
|
2553
|
+
let t = "platform.screen.OpenApiCatalogView.module-api-directory", n = oi(t);
|
|
2554
2554
|
return {
|
|
2555
2555
|
pageType: "platform-route",
|
|
2556
2556
|
openMode: "workbench-route",
|
|
2557
2557
|
hostType: "platform-route-host",
|
|
2558
2558
|
title: "开放模块 API",
|
|
2559
|
-
titleText:
|
|
2559
|
+
titleText: tt(t, n.originalText, e),
|
|
2560
2560
|
target: { route: "/openapi" },
|
|
2561
2561
|
tabPolicy: {
|
|
2562
2562
|
identity: "by-target",
|
|
@@ -2565,20 +2565,20 @@ function Ls(e = Bt) {
|
|
|
2565
2565
|
}
|
|
2566
2566
|
};
|
|
2567
2567
|
}
|
|
2568
|
-
function
|
|
2568
|
+
function Hs(e) {
|
|
2569
2569
|
if (e?.pageType !== "platform-route" || !("route" in e.target)) return !1;
|
|
2570
|
-
let t =
|
|
2570
|
+
let t = zs(e.target.route ?? "");
|
|
2571
2571
|
return t !== void 0 && e.target.moduleAlias === t;
|
|
2572
2572
|
}
|
|
2573
|
-
function
|
|
2573
|
+
function Us(e) {
|
|
2574
2574
|
return e === "/openapi" || e === "/openapi/";
|
|
2575
2575
|
}
|
|
2576
2576
|
//#endregion
|
|
2577
2577
|
//#region src/app/workbenchStartup.ts
|
|
2578
|
-
function
|
|
2579
|
-
let i =
|
|
2578
|
+
function Ws(e, t, n, r = {}) {
|
|
2579
|
+
let i = oe(t, n, r), a = e.find((e) => e.key === i.key);
|
|
2580
2580
|
if (a) {
|
|
2581
|
-
let o = a.pageDescriptor ?
|
|
2581
|
+
let o = a.pageDescriptor ? pc(t, n, a.pageDescriptor, r, a.instanceKey) : i;
|
|
2582
2582
|
return {
|
|
2583
2583
|
tabs: e.map((e) => e.key === i.key ? o : e),
|
|
2584
2584
|
activeTabKey: i.key
|
|
@@ -2589,8 +2589,8 @@ function Bs(e, t, n, r = {}) {
|
|
|
2589
2589
|
activeTabKey: i.key
|
|
2590
2590
|
};
|
|
2591
2591
|
}
|
|
2592
|
-
function
|
|
2593
|
-
let r =
|
|
2592
|
+
function Gs(e, t, n = {}) {
|
|
2593
|
+
let r = uc(O(t), n), i = e.find((e) => e.key === r.key || r.pageDescriptor?.tabPolicy.identity === "by-params" && e.pageDescriptor?.tabPolicy.identity === "by-params" && ce(e.pageDescriptor) === ce(r.pageDescriptor));
|
|
2594
2594
|
return i ? {
|
|
2595
2595
|
tabs: e,
|
|
2596
2596
|
activeTabKey: i.key,
|
|
@@ -2601,49 +2601,49 @@ function Vs(e, t, n = {}) {
|
|
|
2601
2601
|
created: !0
|
|
2602
2602
|
};
|
|
2603
2603
|
}
|
|
2604
|
-
function
|
|
2605
|
-
return t.menuType === "link" && t.openMode === "window" ? t.externalUrl :
|
|
2604
|
+
function Ks(e, t, n = {}) {
|
|
2605
|
+
return t.menuType === "link" && t.openMode === "window" ? t.externalUrl : Oe(be(t, {
|
|
2606
2606
|
...n,
|
|
2607
2607
|
title: e.title
|
|
2608
2608
|
}), n);
|
|
2609
2609
|
}
|
|
2610
|
-
function
|
|
2610
|
+
function qs(e) {
|
|
2611
2611
|
let t = (e.tabs ?? []).find((t) => t.key === e.activeTabKey);
|
|
2612
2612
|
if (t?.fullPath) return t.fullPath;
|
|
2613
|
-
let n = t?.pageDescriptor ?? (t?.target ?
|
|
2614
|
-
return n?.pageType === "platform-route" &&
|
|
2613
|
+
let n = t?.pageDescriptor ?? (t?.target ? be(t.target, { title: t.title }) : void 0);
|
|
2614
|
+
return n?.pageType === "platform-route" && Hs(n) && n.target.route ? n.target.route : n ? Oe(n) : void 0;
|
|
2615
2615
|
}
|
|
2616
|
-
function
|
|
2616
|
+
function Js(e, t, r = {}, i = !1, a = zt) {
|
|
2617
2617
|
if (t === "/" || t === "") return e;
|
|
2618
|
-
let o = t.split(/[?#]/, 1)[0] ?? "", s =
|
|
2618
|
+
let o = t.split(/[?#]/, 1)[0] ?? "", s = zs(o), c = s ? Bs(s) : Us(o) ? Vs(a) : Le(t, r);
|
|
2619
2619
|
if (!c) return e;
|
|
2620
|
-
let l = c.menuId ?
|
|
2620
|
+
let l = c.menuId ? bc(e.menus, c.menuId) : void 0, u = l ? x(l) : void 0, d = l && u && Qs(u, c) ? {
|
|
2621
2621
|
...c,
|
|
2622
2622
|
title: l.title,
|
|
2623
2623
|
titleText: l.titleText
|
|
2624
|
-
} : c, f =
|
|
2624
|
+
} : c, f = Zs(d, r.title, a), p = f ?? d, m = e.tabs ?? [], h = f ? Xs(m, f) : void 0, g = f ? Ys(f, h) : i ? O(p) : p, _ = l && vc(l, g, r) ? l : _c(e.menus, g, r), v = _ === l ? u : _ ? x(_) : void 0, y = f ? uc(g, r) : _ && v && n(v) ? pc(_, v, g, r, m.find((e) => e.key === `menu:${_.id}`)?.instanceKey) : uc(g, r), b = fc(m, y);
|
|
2625
2625
|
return {
|
|
2626
2626
|
...e,
|
|
2627
2627
|
tabs: b,
|
|
2628
2628
|
activeTabKey: y.key
|
|
2629
2629
|
};
|
|
2630
2630
|
}
|
|
2631
|
-
function
|
|
2631
|
+
function Ys(e, t) {
|
|
2632
2632
|
return t?.instanceKey ? O(e, t.instanceKey) : t ? e : O(e);
|
|
2633
2633
|
}
|
|
2634
|
-
function
|
|
2635
|
-
let n =
|
|
2636
|
-
return e.find((e) => e.pageDescriptor?.pageType === "business-route" &&
|
|
2634
|
+
function Xs(e, t) {
|
|
2635
|
+
let n = ce(t);
|
|
2636
|
+
return e.find((e) => e.pageDescriptor?.pageType === "business-route" && ce(e.pageDescriptor) === n);
|
|
2637
2637
|
}
|
|
2638
|
-
function
|
|
2638
|
+
function Zs(e, t, n) {
|
|
2639
2639
|
if (e.pageType !== "business-route") return;
|
|
2640
|
-
let r =
|
|
2641
|
-
return r ?
|
|
2640
|
+
let r = Me(e);
|
|
2641
|
+
return r ? Ve(r.view, r.input, r.presentation, t, n) : void 0;
|
|
2642
2642
|
}
|
|
2643
|
-
function
|
|
2643
|
+
function Qs(e, t) {
|
|
2644
2644
|
return t.pageType === "dynamic-module" && e.menuType === "module" && e.moduleAlias === t.target.moduleAlias;
|
|
2645
2645
|
}
|
|
2646
|
-
function
|
|
2646
|
+
function $s(e, t, n) {
|
|
2647
2647
|
let r = e.findIndex((e) => e.key === n);
|
|
2648
2648
|
if (r < 0) return {
|
|
2649
2649
|
tabs: e,
|
|
@@ -2658,7 +2658,7 @@ function Ys(e, t, n) {
|
|
|
2658
2658
|
activeTabKey: t
|
|
2659
2659
|
};
|
|
2660
2660
|
}
|
|
2661
|
-
function
|
|
2661
|
+
function ec(e, t, n) {
|
|
2662
2662
|
let r = new Set(n), i = e.findIndex((e) => e.key === t), a = e.filter((e) => !r.has(e.key) || e.closable === !1);
|
|
2663
2663
|
return !t || !r.has(t) ? {
|
|
2664
2664
|
tabs: a,
|
|
@@ -2668,16 +2668,16 @@ function Xs(e, t, n) {
|
|
|
2668
2668
|
activeTabKey: (a.find((t) => e.indexOf(t) > i) ?? a.at(-1))?.key
|
|
2669
2669
|
};
|
|
2670
2670
|
}
|
|
2671
|
-
function
|
|
2671
|
+
function tc(e, t, n = !0) {
|
|
2672
2672
|
let r = new Map(e.map((e) => [e.key, e])), i = /* @__PURE__ */ new Set();
|
|
2673
2673
|
return [...t.flatMap((e) => {
|
|
2674
2674
|
if (i.has(e.key)) return [];
|
|
2675
2675
|
i.add(e.key);
|
|
2676
2676
|
let t = r.get(e.key);
|
|
2677
|
-
return t ? [
|
|
2677
|
+
return t ? [nc(t, e)] : n ? [e] : [];
|
|
2678
2678
|
}), ...e.filter((e) => !i.has(e.key))];
|
|
2679
2679
|
}
|
|
2680
|
-
function
|
|
2680
|
+
function nc(e, t) {
|
|
2681
2681
|
let n = e.pageDescriptor, r = t.pageDescriptor;
|
|
2682
2682
|
if (!n || !r || !t.target) return e;
|
|
2683
2683
|
let i = {
|
|
@@ -2688,83 +2688,83 @@ function Qs(e, t) {
|
|
|
2688
2688
|
};
|
|
2689
2689
|
return {
|
|
2690
2690
|
...t,
|
|
2691
|
-
...
|
|
2691
|
+
...uc(i),
|
|
2692
2692
|
target: t.target
|
|
2693
2693
|
};
|
|
2694
2694
|
}
|
|
2695
|
-
function
|
|
2695
|
+
function rc(e, t, n = {}, r = zt) {
|
|
2696
2696
|
let i = /* @__PURE__ */ new Map();
|
|
2697
|
-
|
|
2697
|
+
sc(t, i);
|
|
2698
2698
|
let a = /* @__PURE__ */ new Set();
|
|
2699
2699
|
return e.flatMap((e) => {
|
|
2700
|
-
let t = e.pageDescriptor?.menuId ?? e.target?.menuId ??
|
|
2700
|
+
let t = e.pageDescriptor?.menuId ?? e.target?.menuId ?? ic(e.key);
|
|
2701
2701
|
if (t) {
|
|
2702
2702
|
if (a.has(t)) return [];
|
|
2703
2703
|
let e = i.get(t);
|
|
2704
|
-
return e ? (a.add(t), [
|
|
2704
|
+
return e ? (a.add(t), [oe(e.menu, e.target, n)]) : [];
|
|
2705
2705
|
}
|
|
2706
|
-
let o =
|
|
2706
|
+
let o = ac(e, r);
|
|
2707
2707
|
return !o || a.has(o.key) ? [] : (a.add(o.key), [o]);
|
|
2708
2708
|
});
|
|
2709
2709
|
}
|
|
2710
|
-
function
|
|
2710
|
+
function ic(e) {
|
|
2711
2711
|
return e.startsWith("menu:") && e.slice(5) || void 0;
|
|
2712
2712
|
}
|
|
2713
|
-
function
|
|
2713
|
+
function ac(e, t) {
|
|
2714
2714
|
let n = e.pageDescriptor;
|
|
2715
2715
|
if (n?.pageType !== "business-route") return;
|
|
2716
|
-
let r =
|
|
2717
|
-
if (r && r.presentation === "tab") return
|
|
2716
|
+
let r = Me(n);
|
|
2717
|
+
if (r && r.presentation === "tab") return uc(Ve(r.view, r.input, "tab", void 0, t));
|
|
2718
2718
|
}
|
|
2719
|
-
function
|
|
2719
|
+
function oc(e, t) {
|
|
2720
2720
|
let n = e.findIndex((e) => e.key === t.key);
|
|
2721
2721
|
return n < 0 ? [...e, t] : e.map((e, r) => r === n ? t : e);
|
|
2722
2722
|
}
|
|
2723
|
-
function
|
|
2723
|
+
function sc(e, t) {
|
|
2724
2724
|
for (let r of e) {
|
|
2725
2725
|
let e = x(r.record);
|
|
2726
2726
|
e && n(e) && t.set(r.record.id, {
|
|
2727
2727
|
menu: r.record,
|
|
2728
2728
|
target: e
|
|
2729
|
-
}),
|
|
2729
|
+
}), sc(r.children, t);
|
|
2730
2730
|
}
|
|
2731
2731
|
}
|
|
2732
|
-
function
|
|
2732
|
+
function cc(e, t) {
|
|
2733
2733
|
let n = new Set(t);
|
|
2734
2734
|
return e.filter((e) => !n.has(e.key));
|
|
2735
2735
|
}
|
|
2736
|
-
function
|
|
2736
|
+
function lc(e, t, n = []) {
|
|
2737
2737
|
if (e.length !== t.length || new Set(t).size !== e.length) return e;
|
|
2738
2738
|
let r = new Map(e.map((e) => [e.key, e]));
|
|
2739
2739
|
if (t.some((e) => !r.has(e))) return e;
|
|
2740
2740
|
let i = t.map((e) => r.get(e)), a = new Set(n);
|
|
2741
2741
|
return [...i.filter((e) => a.has(e.key)), ...i.filter((e) => !a.has(e.key))];
|
|
2742
2742
|
}
|
|
2743
|
-
function
|
|
2744
|
-
let n =
|
|
2743
|
+
function uc(e, t = {}) {
|
|
2744
|
+
let n = Oe(e, t);
|
|
2745
2745
|
return {
|
|
2746
|
-
...
|
|
2747
|
-
key:
|
|
2748
|
-
title: e.title ??
|
|
2746
|
+
...dc(e) ? { instanceKey: dc(e) } : {},
|
|
2747
|
+
key: Ae(e),
|
|
2748
|
+
title: e.title ?? gc(e),
|
|
2749
2749
|
fullPath: n,
|
|
2750
2750
|
pageDescriptor: e,
|
|
2751
2751
|
restoreState: { url: n },
|
|
2752
2752
|
closable: !0
|
|
2753
2753
|
};
|
|
2754
2754
|
}
|
|
2755
|
-
function
|
|
2755
|
+
function dc(e) {
|
|
2756
2756
|
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
2757
|
return typeof n == "string" && n ? n : void 0;
|
|
2758
2758
|
}
|
|
2759
|
-
function
|
|
2759
|
+
function fc(e, t) {
|
|
2760
2760
|
let n = e.findIndex((e) => e.key === t.key);
|
|
2761
2761
|
return n < 0 ? [...e, t] : e.map((e, r) => r === n ? t : e);
|
|
2762
2762
|
}
|
|
2763
|
-
function
|
|
2764
|
-
let a = O(n, i), o =
|
|
2763
|
+
function pc(e, t, n, r, i) {
|
|
2764
|
+
let a = O(n, i), o = oe(e, t, r), s = o.pageDescriptor ?? a, c = a.title === void 0 ? {
|
|
2765
2765
|
title: e.title,
|
|
2766
2766
|
titleText: s.titleText
|
|
2767
|
-
} : { title: a.title }, l =
|
|
2767
|
+
} : { title: a.title }, l = mc(a) && mc(s) || hc(a) && hc(s) ? {
|
|
2768
2768
|
...a,
|
|
2769
2769
|
...c,
|
|
2770
2770
|
menuId: e.id,
|
|
@@ -2781,44 +2781,44 @@ function lc(e, t, n, r, i) {
|
|
|
2781
2781
|
};
|
|
2782
2782
|
return {
|
|
2783
2783
|
...o,
|
|
2784
|
-
...
|
|
2784
|
+
...uc(l, r),
|
|
2785
2785
|
target: t
|
|
2786
2786
|
};
|
|
2787
2787
|
}
|
|
2788
|
-
function
|
|
2788
|
+
function mc(e) {
|
|
2789
2789
|
return e.pageType === "platform-route" || e.pageType === "business-route";
|
|
2790
2790
|
}
|
|
2791
|
-
function
|
|
2791
|
+
function hc(e) {
|
|
2792
2792
|
return e.pageType === "remote-url" || e.pageType === "external-link";
|
|
2793
2793
|
}
|
|
2794
|
-
function
|
|
2794
|
+
function gc(e) {
|
|
2795
2795
|
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
2796
|
}
|
|
2797
|
-
function
|
|
2797
|
+
function _c(e, t, n) {
|
|
2798
2798
|
for (let r of e) {
|
|
2799
|
-
if (
|
|
2800
|
-
let e =
|
|
2799
|
+
if (vc(r.record, t, n)) return r.record;
|
|
2800
|
+
let e = _c(r.children, t, n);
|
|
2801
2801
|
if (e) return e;
|
|
2802
2802
|
}
|
|
2803
2803
|
}
|
|
2804
|
-
function
|
|
2805
|
-
let r = x(e), i = r ?
|
|
2804
|
+
function vc(e, t, n) {
|
|
2805
|
+
let r = x(e), i = r ? be(r, {
|
|
2806
2806
|
...n,
|
|
2807
2807
|
title: e.title
|
|
2808
2808
|
}) : void 0;
|
|
2809
|
-
return i ?
|
|
2809
|
+
return i ? yc(i, t) : !1;
|
|
2810
2810
|
}
|
|
2811
|
-
function
|
|
2811
|
+
function yc(e, t) {
|
|
2812
2812
|
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
2813
|
}
|
|
2814
|
-
function
|
|
2814
|
+
function bc(e, t) {
|
|
2815
2815
|
for (let n of e) {
|
|
2816
2816
|
if (n.record.id === t) return n.record;
|
|
2817
|
-
let e =
|
|
2817
|
+
let e = bc(n.children, t);
|
|
2818
2818
|
if (e) return e;
|
|
2819
2819
|
}
|
|
2820
2820
|
}
|
|
2821
|
-
function
|
|
2821
|
+
function xc(e, t) {
|
|
2822
2822
|
return {
|
|
2823
2823
|
...e,
|
|
2824
2824
|
title: t,
|
|
@@ -2831,54 +2831,54 @@ function _c(e, t) {
|
|
|
2831
2831
|
}
|
|
2832
2832
|
//#endregion
|
|
2833
2833
|
//#region src/app/workbenchSessionTabs.ts
|
|
2834
|
-
function
|
|
2834
|
+
function Sc(e) {
|
|
2835
2835
|
if (!Array.isArray(e)) return [];
|
|
2836
2836
|
let t = /* @__PURE__ */ new Set();
|
|
2837
|
-
return e.flatMap((e) => !
|
|
2837
|
+
return e.flatMap((e) => !Cc(e) || t.has(e.key) ? [] : (t.add(e.key), [e]));
|
|
2838
2838
|
}
|
|
2839
|
-
function
|
|
2839
|
+
function Cc(e) {
|
|
2840
2840
|
let t = e;
|
|
2841
|
-
return
|
|
2841
|
+
return Dc(e) && typeof t.key == "string" && typeof t.title == "string" && (wc(t.pageDescriptor) || Ec(t.target));
|
|
2842
2842
|
}
|
|
2843
|
-
function
|
|
2844
|
-
return !
|
|
2843
|
+
function wc(e) {
|
|
2844
|
+
return !Dc(e) || !Dc(e.target) || !Dc(e.tabPolicy) || ![
|
|
2845
2845
|
"by-menu",
|
|
2846
2846
|
"by-target",
|
|
2847
2847
|
"by-params"
|
|
2848
|
-
].includes(String(e.tabPolicy.identity)) ? !1 : e.pageType === "platform-route" ? e.openMode === "workbench-route" && e.hostType === "platform-route-host" &&
|
|
2848
|
+
].includes(String(e.tabPolicy.identity)) ? !1 : e.pageType === "platform-route" ? e.openMode === "workbench-route" && e.hostType === "platform-route-host" && Tc(e.target) : e.pageType === "business-route" ? e.openMode === "workbench-route" && e.hostType === "business-route-host" && Tc(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
2849
|
}
|
|
2850
|
-
function
|
|
2850
|
+
function Tc(e) {
|
|
2851
2851
|
return typeof e.route == "string" || typeof e.routeName == "string" || typeof e.pageKey == "string";
|
|
2852
2852
|
}
|
|
2853
|
-
function
|
|
2854
|
-
return !
|
|
2853
|
+
function Ec(e) {
|
|
2854
|
+
return !Dc(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
2855
|
}
|
|
2856
|
-
function
|
|
2856
|
+
function Dc(e) {
|
|
2857
2857
|
return typeof e == "object" && !!e;
|
|
2858
2858
|
}
|
|
2859
2859
|
//#endregion
|
|
2860
2860
|
//#region src/app/lockedTabPreference.ts
|
|
2861
|
-
var
|
|
2862
|
-
async function
|
|
2863
|
-
return
|
|
2861
|
+
var Oc = "workbench.locked-tabs";
|
|
2862
|
+
async function kc(e) {
|
|
2863
|
+
return jc(await e.restore(Oc, [], { persistence: "backend" }));
|
|
2864
2864
|
}
|
|
2865
|
-
async function
|
|
2866
|
-
await e.set(
|
|
2865
|
+
async function Ac(e, t) {
|
|
2866
|
+
await e.set(Oc, t, { persistence: "backend" });
|
|
2867
2867
|
}
|
|
2868
|
-
function
|
|
2869
|
-
return
|
|
2868
|
+
function jc(e) {
|
|
2869
|
+
return Sc(e);
|
|
2870
2870
|
}
|
|
2871
2871
|
//#endregion
|
|
2872
2872
|
//#region src/consumer/PlatformAdminOutlet.vue
|
|
2873
|
-
var
|
|
2873
|
+
var Mc = /* @__PURE__ */ W({
|
|
2874
2874
|
name: "PlatformAdminOutlet",
|
|
2875
2875
|
__name: "PlatformAdminOutlet",
|
|
2876
2876
|
props: { descriptor: {} },
|
|
2877
2877
|
setup(e) {
|
|
2878
|
-
return (t, n) =>
|
|
2878
|
+
return (t, n) => J(ws)(e.descriptor) ? (G(), L(Ms, {
|
|
2879
2879
|
key: 0,
|
|
2880
2880
|
descriptor: e.descriptor
|
|
2881
|
-
}, null, 8, ["descriptor"])) : (
|
|
2881
|
+
}, null, 8, ["descriptor"])) : (G(), L(Pe, {
|
|
2882
2882
|
key: 1,
|
|
2883
2883
|
descriptor: e.descriptor
|
|
2884
2884
|
}, null, 8, ["descriptor"]));
|
|
@@ -2886,7 +2886,7 @@ var Oc = /* @__PURE__ */ z({
|
|
|
2886
2886
|
});
|
|
2887
2887
|
//#endregion
|
|
2888
2888
|
//#region src/app/workbenchRouteSync.ts
|
|
2889
|
-
function
|
|
2889
|
+
function Nc(e, t) {
|
|
2890
2890
|
if (e === t) return !0;
|
|
2891
2891
|
if (e === void 0 || t === void 0) return !1;
|
|
2892
2892
|
let n = (e) => {
|
|
@@ -2895,47 +2895,47 @@ function kc(e, t) {
|
|
|
2895
2895
|
};
|
|
2896
2896
|
return n(e) === n(t);
|
|
2897
2897
|
}
|
|
2898
|
-
function
|
|
2899
|
-
let r =
|
|
2900
|
-
return
|
|
2898
|
+
function Pc(e, t, n) {
|
|
2899
|
+
let r = qs(e) ?? "/";
|
|
2900
|
+
return Nc(r, t) ? void 0 : {
|
|
2901
2901
|
url: r,
|
|
2902
2902
|
mode: n
|
|
2903
2903
|
};
|
|
2904
2904
|
}
|
|
2905
2905
|
//#endregion
|
|
2906
2906
|
//#region src/platform-workbench/workspaceViewDiscardGuard.ts
|
|
2907
|
-
function
|
|
2908
|
-
return e.some((e) => ue(e).length > 0 ||
|
|
2907
|
+
function Fc(e) {
|
|
2908
|
+
return e.some((e) => ue(e).length > 0 || Ce(e).length > 0);
|
|
2909
2909
|
}
|
|
2910
|
-
async function
|
|
2911
|
-
if (
|
|
2912
|
-
if ([...new Set(e.flatMap(
|
|
2910
|
+
async function Ic(e, t = "close", n = zt) {
|
|
2911
|
+
if (Lc(e, t, n)) return !1;
|
|
2912
|
+
if ([...new Set(e.flatMap(Ce))].length === 0) return !0;
|
|
2913
2913
|
let r = () => {
|
|
2914
2914
|
let r = t === "refresh" ? n.t("platform.screen.workspaceViewDiscardGuard.refresh", "刷新") : n.t("platform.screen.workspaceViewDiscardGuard.close", "关闭");
|
|
2915
2915
|
return {
|
|
2916
2916
|
title: t === "refresh" ? n.t("platform.screen.workspaceViewDiscardGuard.refresh-page", "刷新页面") : n.t("platform.screen.UiTabs.close-tab", "关闭标签"),
|
|
2917
2917
|
content: n.t("platform.screen.workspaceViewDiscardGuard.value-has-unsaved-changes-that-will-be-lost-when-you", "“{value1}”存在未保存的更改,{value2}后将丢失。是否继续?", {
|
|
2918
|
-
value1: [...new Set(e.flatMap(
|
|
2918
|
+
value1: [...new Set(e.flatMap(Ce))].join(n.t("platform.list.separator", "、")),
|
|
2919
2919
|
value2: r
|
|
2920
2920
|
}),
|
|
2921
2921
|
okText: r
|
|
2922
2922
|
};
|
|
2923
2923
|
};
|
|
2924
|
-
return await
|
|
2924
|
+
return await rt({
|
|
2925
2925
|
...r(),
|
|
2926
2926
|
presentation: r
|
|
2927
|
-
}, n) && !
|
|
2927
|
+
}, n) && !Lc(e, t, n);
|
|
2928
2928
|
}
|
|
2929
|
-
function
|
|
2929
|
+
function Lc(e, t, n) {
|
|
2930
2930
|
let r = t === "refresh" ? n.t("platform.screen.workspaceViewDiscardGuard.refresh", "刷新") : n.t("platform.screen.workspaceViewDiscardGuard.close", "关闭"), i = [...new Set(e.flatMap(ue))];
|
|
2931
|
-
return i.length !== 0 && (
|
|
2931
|
+
return i.length !== 0 && (ht(n.t("platform.screen.workspaceViewDiscardGuard.value-has-an-operation-in-progress-wait-for-it-to", "“{value1}”正在处理操作,请完成后再{value2}。", {
|
|
2932
2932
|
value1: i.join(n.t("platform.list.separator", "、")),
|
|
2933
2933
|
value2: r
|
|
2934
2934
|
})), !0);
|
|
2935
2935
|
}
|
|
2936
2936
|
//#endregion
|
|
2937
2937
|
//#region src/consumer/AppWorkbenchShell.vue
|
|
2938
|
-
var
|
|
2938
|
+
var Rc = /* @__PURE__ */ W({
|
|
2939
2939
|
name: "AppWorkbenchShell",
|
|
2940
2940
|
__name: "AppWorkbenchShell",
|
|
2941
2941
|
props: {
|
|
@@ -2963,8 +2963,8 @@ var Pc = /* @__PURE__ */ z({
|
|
|
2963
2963
|
"userCommand"
|
|
2964
2964
|
],
|
|
2965
2965
|
setup(e, { emit: t }) {
|
|
2966
|
-
let n =
|
|
2967
|
-
|
|
2966
|
+
let n = j(), r = e, i = t, a = I(() => r.startup.activeTabKey), o = K([]), s = 0, c = Promise.resolve(), l = !1;
|
|
2967
|
+
me({
|
|
2968
2968
|
refreshMenus: r.loadMenus ? async () => {
|
|
2969
2969
|
let e = r.startup.session, t = await r.loadMenus();
|
|
2970
2970
|
if (!l || e !== r.startup.session) throw Error(n.t("platform.screen.AppWorkbenchShell.your-sign-in-state-has-changed-please-try", "登录状态已变化,请重试"));
|
|
@@ -2977,27 +2977,27 @@ var Pc = /* @__PURE__ */ z({
|
|
|
2977
2977
|
let t = x(e);
|
|
2978
2978
|
t && d(e, t);
|
|
2979
2979
|
},
|
|
2980
|
-
openRoute:
|
|
2981
|
-
replaceRoute:
|
|
2982
|
-
closeCurrentTab:
|
|
2980
|
+
openRoute: S,
|
|
2981
|
+
replaceRoute: ee,
|
|
2982
|
+
closeCurrentTab: te,
|
|
2983
2983
|
openPage: b,
|
|
2984
|
-
replacePage:
|
|
2984
|
+
replacePage: ae,
|
|
2985
2985
|
closePage: m,
|
|
2986
|
-
setTabName:
|
|
2986
|
+
setTabName: ie
|
|
2987
2987
|
}), sa(() => {
|
|
2988
|
-
l = !0,
|
|
2988
|
+
l = !0, ye(), w(), se(r.location);
|
|
2989
2989
|
}), oa(() => {
|
|
2990
2990
|
l = !1;
|
|
2991
|
-
}),
|
|
2991
|
+
}), ma(() => r.location, (e) => se(e));
|
|
2992
2992
|
function u(e, t = void 0) {
|
|
2993
|
-
i("update:startup", e), t &&
|
|
2993
|
+
i("update:startup", e), t && oe(e, t);
|
|
2994
2994
|
}
|
|
2995
2995
|
function d(e, t) {
|
|
2996
2996
|
if (t.openMode === "window") {
|
|
2997
|
-
window.open(
|
|
2997
|
+
window.open(Ks(e, t), "_blank", "noopener,noreferrer");
|
|
2998
2998
|
return;
|
|
2999
2999
|
}
|
|
3000
|
-
let n =
|
|
3000
|
+
let n = Ws(r.startup.tabs ?? [], e, t, r.resolveOptions);
|
|
3001
3001
|
u({
|
|
3002
3002
|
...r.startup,
|
|
3003
3003
|
tabs: n.tabs,
|
|
@@ -3011,28 +3011,28 @@ var Pc = /* @__PURE__ */ z({
|
|
|
3011
3011
|
}, "push");
|
|
3012
3012
|
}
|
|
3013
3013
|
async function p(e) {
|
|
3014
|
-
await
|
|
3014
|
+
await Ic([e], "refresh", n) && l && (r.startup.tabs ?? []).some((t) => t.key === e) && i("refreshPage", e);
|
|
3015
3015
|
}
|
|
3016
3016
|
async function m(e) {
|
|
3017
|
-
if (!await
|
|
3018
|
-
let t =
|
|
3019
|
-
o.value.some((t) => t.key === e) && v(
|
|
3017
|
+
if (!await Ic([e], "close", n) || !l) return;
|
|
3018
|
+
let t = $s(r.startup.tabs ?? [], r.startup.activeTabKey, e);
|
|
3019
|
+
o.value.some((t) => t.key === e) && v(cc(o.value, [e])), u({
|
|
3020
3020
|
...r.startup,
|
|
3021
3021
|
tabs: t.tabs,
|
|
3022
3022
|
activeTabKey: t.activeTabKey
|
|
3023
|
-
}, "replace"),
|
|
3023
|
+
}, "replace"), Ie(e);
|
|
3024
3024
|
}
|
|
3025
3025
|
async function h(e) {
|
|
3026
|
-
if (!await
|
|
3027
|
-
let t =
|
|
3028
|
-
i.length > 0 && v(
|
|
3026
|
+
if (!await Ic(e, "close", n) || !l) return;
|
|
3027
|
+
let t = ec(r.startup.tabs ?? [], r.startup.activeTabKey, e), i = e.filter((e) => o.value.some((t) => t.key === e));
|
|
3028
|
+
i.length > 0 && v(cc(o.value, i)), u({
|
|
3029
3029
|
...r.startup,
|
|
3030
3030
|
tabs: t.tabs,
|
|
3031
3031
|
activeTabKey: t.activeTabKey
|
|
3032
|
-
}, "replace"), e.forEach(
|
|
3032
|
+
}, "replace"), e.forEach(Ie);
|
|
3033
3033
|
}
|
|
3034
3034
|
function g(e) {
|
|
3035
|
-
let t =
|
|
3035
|
+
let t = lc(r.startup.tabs ?? [], e, o.value.map((e) => e.key)), n = t.filter((e) => o.value.some((t) => t.key === e.key));
|
|
3036
3036
|
n.map((e) => e.key).join("|") !== o.value.map((e) => e.key).join("|") && v(n), u({
|
|
3037
3037
|
...r.startup,
|
|
3038
3038
|
tabs: t
|
|
@@ -3041,10 +3041,10 @@ var Pc = /* @__PURE__ */ z({
|
|
|
3041
3041
|
function _(e) {
|
|
3042
3042
|
let t = r.startup.tabs?.find((t) => t.key === e);
|
|
3043
3043
|
if (!t) return;
|
|
3044
|
-
let n = o.value.some((t) => t.key === e), i = o.value, a = n ?
|
|
3044
|
+
let n = o.value.some((t) => t.key === e), i = o.value, a = n ? cc(i, [e]) : oc(i, t);
|
|
3045
3045
|
v(a), u({
|
|
3046
3046
|
...r.startup,
|
|
3047
|
-
tabs:
|
|
3047
|
+
tabs: tc(r.startup.tabs ?? [], a)
|
|
3048
3048
|
});
|
|
3049
3049
|
}
|
|
3050
3050
|
function v(e) {
|
|
@@ -3053,35 +3053,35 @@ var Pc = /* @__PURE__ */ z({
|
|
|
3053
3053
|
}
|
|
3054
3054
|
async function y(e, t, n) {
|
|
3055
3055
|
try {
|
|
3056
|
-
c = c.catch(() => void 0).then(() =>
|
|
3056
|
+
c = c.catch(() => void 0).then(() => Ac(Ar, e)), await c;
|
|
3057
3057
|
} catch {
|
|
3058
3058
|
if (n !== s) return;
|
|
3059
3059
|
o.value = t, u({
|
|
3060
3060
|
...r.startup,
|
|
3061
|
-
tabs:
|
|
3061
|
+
tabs: tc(r.startup.tabs ?? [], t, !1)
|
|
3062
3062
|
});
|
|
3063
3063
|
}
|
|
3064
3064
|
}
|
|
3065
3065
|
function b(e) {
|
|
3066
|
-
let t =
|
|
3066
|
+
let t = Gs(r.startup.tabs ?? [], e);
|
|
3067
3067
|
return u({
|
|
3068
3068
|
...r.startup,
|
|
3069
3069
|
tabs: t.tabs,
|
|
3070
3070
|
activeTabKey: t.activeTabKey
|
|
3071
3071
|
}, "push"), { created: t.created };
|
|
3072
3072
|
}
|
|
3073
|
-
function
|
|
3074
|
-
return
|
|
3073
|
+
function S(e, t = {}) {
|
|
3074
|
+
return C(je(e, t), "push", r.startup, t.tabTitle, t.newInstance);
|
|
3075
3075
|
}
|
|
3076
|
-
function
|
|
3077
|
-
let i = r.startup.activeTabKey, a = r.startup.tabs?.find((e) => e.key === i), o =
|
|
3078
|
-
if (!i || !a) return
|
|
3079
|
-
let s =
|
|
3076
|
+
function ee(e, t = {}) {
|
|
3077
|
+
let i = r.startup.activeTabKey, a = r.startup.tabs?.find((e) => e.key === i), o = je(e, t);
|
|
3078
|
+
if (!i || !a) return C(o, "replace", r.startup, t.tabTitle);
|
|
3079
|
+
let s = Js(r.startup, o, {
|
|
3080
3080
|
...r.resolveOptions,
|
|
3081
3081
|
title: t.tabTitle ?? r.resolveOptions.title
|
|
3082
3082
|
}, !1, n), c = s.tabs?.find((e) => e.key === s.activeTabKey);
|
|
3083
3083
|
if (!c) return { created: !1 };
|
|
3084
|
-
let l = c.pageDescriptor && a.instanceKey ? O(c.pageDescriptor, a.instanceKey) : c.pageDescriptor, d = l ?
|
|
3084
|
+
let l = c.pageDescriptor && a.instanceKey ? O(c.pageDescriptor, a.instanceKey) : c.pageDescriptor, d = l ? Oe(l, r.resolveOptions) : c.fullPath, f = (s.tabs ?? []).filter((e) => e.key !== c.key).map((e) => e.key === i ? {
|
|
3085
3085
|
...a,
|
|
3086
3086
|
...c,
|
|
3087
3087
|
key: i,
|
|
@@ -3097,80 +3097,80 @@ var Pc = /* @__PURE__ */ z({
|
|
|
3097
3097
|
activeTabKey: i
|
|
3098
3098
|
}, "replace"), { created: !1 };
|
|
3099
3099
|
}
|
|
3100
|
-
function
|
|
3100
|
+
function te(e) {
|
|
3101
3101
|
let t = r.startup.activeTabKey;
|
|
3102
|
-
return t ?
|
|
3102
|
+
return t ? Fc([t]) ? (ne(e, t), { created: !1 }) : re(e, t) : C(je(e), "replace", r.startup);
|
|
3103
3103
|
}
|
|
3104
|
-
async function
|
|
3105
|
-
if (await
|
|
3104
|
+
async function ne(e, t) {
|
|
3105
|
+
if (await Ic([t], "close", n) && l && (r.startup.tabs ?? []).some((e) => e.key === t)) return re(e, t);
|
|
3106
3106
|
}
|
|
3107
|
-
function
|
|
3108
|
-
let n =
|
|
3109
|
-
|
|
3107
|
+
function re(e, t) {
|
|
3108
|
+
let n = $s(r.startup.tabs ?? [], r.startup.activeTabKey, t);
|
|
3109
|
+
Ie(t), o.value.some((e) => e.key === t) && v(cc(o.value, [t]));
|
|
3110
3110
|
let i = n.tabs.find((t) => {
|
|
3111
|
-
let n = t.fullPath ?? (t.pageDescriptor ?
|
|
3111
|
+
let n = t.fullPath ?? (t.pageDescriptor ? Oe(t.pageDescriptor) : void 0);
|
|
3112
3112
|
return n && new URL(n, "http://muyun.local").pathname === e;
|
|
3113
3113
|
});
|
|
3114
3114
|
return i ? (u({
|
|
3115
3115
|
...r.startup,
|
|
3116
3116
|
tabs: n.tabs,
|
|
3117
3117
|
activeTabKey: i.key
|
|
3118
|
-
}, "replace"), { created: !1 }) :
|
|
3118
|
+
}, "replace"), { created: !1 }) : C(je(e), "replace", {
|
|
3119
3119
|
...r.startup,
|
|
3120
3120
|
tabs: n.tabs,
|
|
3121
3121
|
activeTabKey: n.activeTabKey
|
|
3122
3122
|
});
|
|
3123
3123
|
}
|
|
3124
|
-
function
|
|
3125
|
-
let s = new Set((i.tabs ?? []).map((e) => e.key)), c =
|
|
3124
|
+
function C(e, t, i, a, o = !1) {
|
|
3125
|
+
let s = new Set((i.tabs ?? []).map((e) => e.key)), c = Js(i, e, {
|
|
3126
3126
|
...r.resolveOptions,
|
|
3127
3127
|
title: a ?? r.resolveOptions.title
|
|
3128
3128
|
}, o, n);
|
|
3129
3129
|
return a && c.activeTabKey && (c = {
|
|
3130
3130
|
...c,
|
|
3131
|
-
tabs: (c.tabs ?? []).map((e) => e.key === c.activeTabKey ?
|
|
3131
|
+
tabs: (c.tabs ?? []).map((e) => e.key === c.activeTabKey ? xc(e, a) : e)
|
|
3132
3132
|
}), u(c, t), { created: !(!c.activeTabKey || s.has(c.activeTabKey)) };
|
|
3133
3133
|
}
|
|
3134
|
-
function
|
|
3134
|
+
function ie(e, t) {
|
|
3135
3135
|
let n = t.trim();
|
|
3136
3136
|
e && n && u({
|
|
3137
3137
|
...r.startup,
|
|
3138
|
-
tabs: (r.startup.tabs ?? []).map((t) => t.instanceKey === e ?
|
|
3138
|
+
tabs: (r.startup.tabs ?? []).map((t) => t.instanceKey === e ? xc(t, n) : t)
|
|
3139
3139
|
});
|
|
3140
3140
|
}
|
|
3141
|
-
function
|
|
3141
|
+
function ae(e, t) {
|
|
3142
3142
|
let n = (r.startup.tabs ?? []).map((n) => n.key === e ? {
|
|
3143
3143
|
...n,
|
|
3144
3144
|
title: t.title ?? n.title,
|
|
3145
3145
|
pageDescriptor: t,
|
|
3146
|
-
restoreState: { url:
|
|
3146
|
+
restoreState: { url: Oe(t) }
|
|
3147
3147
|
} : n), i = n.find((t) => t.key === e);
|
|
3148
|
-
i && o.value.some((t) => t.key === e) && v(
|
|
3148
|
+
i && o.value.some((t) => t.key === e) && v(oc(o.value, i)), u({
|
|
3149
3149
|
...r.startup,
|
|
3150
3150
|
tabs: n
|
|
3151
3151
|
}, "replace");
|
|
3152
3152
|
}
|
|
3153
|
-
function
|
|
3154
|
-
let n =
|
|
3153
|
+
function oe(e, t) {
|
|
3154
|
+
let n = Pc(e, r.location, t);
|
|
3155
3155
|
n && i("navigate", n);
|
|
3156
3156
|
}
|
|
3157
|
-
function
|
|
3158
|
-
u(
|
|
3157
|
+
function se(e) {
|
|
3158
|
+
u(Js(r.startup, e, r.resolveOptions, !1, n));
|
|
3159
3159
|
}
|
|
3160
|
-
async function
|
|
3160
|
+
async function w() {
|
|
3161
3161
|
let e = s;
|
|
3162
3162
|
try {
|
|
3163
|
-
let t =
|
|
3163
|
+
let t = rc(await kc(Ar), r.startup.menus, r.resolveOptions, n);
|
|
3164
3164
|
if (!l || e !== s) return;
|
|
3165
3165
|
o.value = t;
|
|
3166
3166
|
let i = new Set(t.map((e) => e.key)), a = [...t, ...(r.startup.tabs ?? []).filter((e) => !i.has(e.key))];
|
|
3167
3167
|
u({
|
|
3168
3168
|
...r.startup,
|
|
3169
|
-
tabs:
|
|
3169
|
+
tabs: tc(a, t)
|
|
3170
3170
|
});
|
|
3171
3171
|
} catch {}
|
|
3172
3172
|
}
|
|
3173
|
-
return (t, n) => (
|
|
3173
|
+
return (t, n) => (G(), L(Xe, {
|
|
3174
3174
|
startup: e.startup,
|
|
3175
3175
|
"current-user-employee-name": e.currentUserEmployeeName,
|
|
3176
3176
|
loading: e.loading,
|
|
@@ -3188,12 +3188,12 @@ var Pc = /* @__PURE__ */ z({
|
|
|
3188
3188
|
onRefreshPage: p,
|
|
3189
3189
|
onUserCommand: n[0] ||= (e) => i("userCommand", e),
|
|
3190
3190
|
onRetryLoad: n[1] ||= (e) => i("retryLoad")
|
|
3191
|
-
},
|
|
3192
|
-
default:
|
|
3191
|
+
}, ea({
|
|
3192
|
+
default: Y(({ pageDescriptor: e }) => [ua(t.$slots, "default", { pageDescriptor: e })]),
|
|
3193
3193
|
_: 2
|
|
3194
3194
|
}, [t.$slots["topbar-actions"] ? {
|
|
3195
3195
|
name: "topbar-actions",
|
|
3196
|
-
fn:
|
|
3196
|
+
fn: Y((e) => [ua(t.$slots, "topbar-actions", ia(ta(e)))]),
|
|
3197
3197
|
key: "0"
|
|
3198
3198
|
} : void 0]), 1032, [
|
|
3199
3199
|
"startup",
|
|
@@ -3206,203 +3206,441 @@ var Pc = /* @__PURE__ */ z({
|
|
|
3206
3206
|
"theme-appearance"
|
|
3207
3207
|
]));
|
|
3208
3208
|
}
|
|
3209
|
-
})
|
|
3209
|
+
}), zc = { class: "external-provisioning-confirmation" }, Bc = {
|
|
3210
|
+
key: 0,
|
|
3211
|
+
role: "alert"
|
|
3212
|
+
}, Vc = /*#__PURE__*/ P(/* @__PURE__ */ W({
|
|
3213
|
+
__name: "ExternalProvisioningConfirmation",
|
|
3214
|
+
props: {
|
|
3215
|
+
confirmation: {},
|
|
3216
|
+
busy: { type: Boolean },
|
|
3217
|
+
error: {}
|
|
3218
|
+
},
|
|
3219
|
+
emits: ["confirm", "cancel"],
|
|
3220
|
+
setup(e) {
|
|
3221
|
+
let t = j();
|
|
3222
|
+
return (n, r) => (G(), z("main", zc, [
|
|
3223
|
+
B("h1", null, q(J(t).t("platform.external-login.confirm-title", "确认加入")), 1),
|
|
3224
|
+
B("p", null, q(J(t).t("platform.external-login.confirm-explanation", "请确认以下身份资料。确认后将创建本系统账号。")), 1),
|
|
3225
|
+
B("dl", null, [
|
|
3226
|
+
B("dt", null, q(J(t).t("platform.external-login.person", "姓名")), 1),
|
|
3227
|
+
B("dd", null, q(e.confirmation.displayName), 1),
|
|
3228
|
+
B("dt", null, q(J(t).t("platform.external-login.tenant", "租户")), 1),
|
|
3229
|
+
B("dd", null, q(e.confirmation.tenantId), 1),
|
|
3230
|
+
B("dt", null, q(J(t).t("platform.external-login.placements", "任职归属")), 1),
|
|
3231
|
+
B("dd", null, q((e.confirmation.placements ?? e.confirmation.departmentIds).join(", ")), 1)
|
|
3232
|
+
]),
|
|
3233
|
+
e.error ? (G(), z("p", Bc, q(e.error), 1)) : R("v-if", !0),
|
|
3234
|
+
H(J(M), {
|
|
3235
|
+
disabled: e.busy,
|
|
3236
|
+
onClick: r[0] ||= (e) => n.$emit("confirm")
|
|
3237
|
+
}, {
|
|
3238
|
+
default: Y(() => [V(q(J(t).t("platform.external-login.confirm-join", "确认并登录")), 1)]),
|
|
3239
|
+
_: 1
|
|
3240
|
+
}, 8, ["disabled"]),
|
|
3241
|
+
H(J(M), {
|
|
3242
|
+
disabled: e.busy,
|
|
3243
|
+
onClick: r[1] ||= (e) => n.$emit("cancel")
|
|
3244
|
+
}, {
|
|
3245
|
+
default: Y(() => [V(q(J(t).t("platform.external-login.cancel-join", "取消")), 1)]),
|
|
3246
|
+
_: 1
|
|
3247
|
+
}, 8, ["disabled"])
|
|
3248
|
+
]));
|
|
3249
|
+
}
|
|
3250
|
+
}), [["__scopeId", "data-v-90a45828"]]);
|
|
3210
3251
|
//#endregion
|
|
3211
3252
|
//#region src/app/loginTenant.ts
|
|
3212
|
-
function
|
|
3213
|
-
let i =
|
|
3253
|
+
function Hc(e, t = Kc(), n = qc(), r = "/") {
|
|
3254
|
+
let i = Gc(t, n === Wc(r));
|
|
3214
3255
|
return i ? {
|
|
3215
3256
|
tenantId: i,
|
|
3216
3257
|
tenantLocked: !0
|
|
3217
3258
|
} : {
|
|
3218
|
-
tenantId:
|
|
3259
|
+
tenantId: Uc(e),
|
|
3219
3260
|
tenantLocked: !1
|
|
3220
3261
|
};
|
|
3221
3262
|
}
|
|
3222
|
-
function
|
|
3263
|
+
function Uc(e) {
|
|
3223
3264
|
return e?.trim() ?? "";
|
|
3224
3265
|
}
|
|
3225
|
-
function
|
|
3266
|
+
function Wc(e) {
|
|
3226
3267
|
let t = `/${(e?.trim() || "/").replace(/^\/+|\/+$/g, "")}`.replace(/^\/\/+/g, "/") || "/";
|
|
3227
3268
|
return t === "/" ? t : `${t}/`;
|
|
3228
3269
|
}
|
|
3229
|
-
function
|
|
3230
|
-
let n = new URLSearchParams(e.startsWith("?") ? e : `?${e}`), r =
|
|
3231
|
-
return r || !t ? r :
|
|
3270
|
+
function Gc(e, t) {
|
|
3271
|
+
let n = new URLSearchParams(e.startsWith("?") ? e : `?${e}`), r = Uc(n.get("_muyunTenantId"));
|
|
3272
|
+
return r || !t ? r : Uc(n.get("tenantId")) || Uc(n.get("tenant"));
|
|
3232
3273
|
}
|
|
3233
|
-
function
|
|
3274
|
+
function Kc() {
|
|
3234
3275
|
return typeof window > "u" ? "" : window.location.search;
|
|
3235
3276
|
}
|
|
3236
|
-
function
|
|
3277
|
+
function qc() {
|
|
3237
3278
|
return typeof window > "u" ? "/" : window.location.pathname;
|
|
3238
3279
|
}
|
|
3239
3280
|
//#endregion
|
|
3240
|
-
//#region src/app/
|
|
3241
|
-
var
|
|
3281
|
+
//#region src/app/externalLoginReturn.ts
|
|
3282
|
+
var Jc = "muyun.externalLogin.pending";
|
|
3283
|
+
function Yc(e, t, n = rl()) {
|
|
3284
|
+
let r = el(n).filter((t) => t.state !== e.state);
|
|
3285
|
+
r.push({
|
|
3286
|
+
providerId: t.providerId,
|
|
3287
|
+
state: e.state,
|
|
3288
|
+
browserProof: e.browserProof,
|
|
3289
|
+
purpose: t.purpose,
|
|
3290
|
+
tenantId: t.tenantId || void 0
|
|
3291
|
+
}), tl(n, r.slice(-5));
|
|
3292
|
+
}
|
|
3293
|
+
function Xc(e, t = rl()) {
|
|
3294
|
+
tl(t, el(t).filter((t) => t.state !== e));
|
|
3295
|
+
}
|
|
3296
|
+
function Zc(e) {
|
|
3297
|
+
window.location.assign(e);
|
|
3298
|
+
}
|
|
3299
|
+
function Qc(e, t = rl()) {
|
|
3300
|
+
let n = {};
|
|
3301
|
+
for (let [t, r] of Object.entries(e)) {
|
|
3302
|
+
let e = Array.isArray(r) ? r[0] : r;
|
|
3303
|
+
typeof e == "string" && !t.startsWith("_muyun") && (n[t] = e);
|
|
3304
|
+
}
|
|
3305
|
+
let r = n.state?.trim();
|
|
3306
|
+
if (!r) return;
|
|
3307
|
+
let i = el(t);
|
|
3308
|
+
return tl(t, i.filter((e) => e.state !== r)), {
|
|
3309
|
+
pending: i.find((e) => e.state === r),
|
|
3310
|
+
parameters: n
|
|
3311
|
+
};
|
|
3312
|
+
}
|
|
3313
|
+
function $c(e, t) {
|
|
3314
|
+
if (e.status === "reviewPending") return t.t("platform.external-login.review-pending", "加入申请已提交,审核通过后请重新扫码登录");
|
|
3315
|
+
if (e.status === "reviewRejected") return t.t("platform.external-login.review-rejected", "加入申请已被拒绝,请联系管理员");
|
|
3316
|
+
if (e.failure === "admissionRejected") return t.t("platform.external-login.admission-rejected", "无法确认有效的准入资料,请联系管理员检查准入范围并更新通讯录后重试");
|
|
3317
|
+
if (e.status === "expired") return t.t("platform.external-login.authorization-expired", "授权已超时,请重新发起");
|
|
3318
|
+
switch (e.failure) {
|
|
3319
|
+
case "identityNotBound": return t.t("platform.external-login.identity-not-bound", "该外部账号尚未绑定本系统账号,请先用账号密码登录,在个人信息中绑定后再使用");
|
|
3320
|
+
case "identityConflict": return t.t("platform.external-login.identity-conflict", "该外部账号已绑定其他账号");
|
|
3321
|
+
case "alreadyBound": return t.t("platform.external-login.already-bound", "当前账号已绑定该身份源");
|
|
3322
|
+
case "enterpriseMismatch": return t.t("platform.external-login.enterprise-mismatch", "该外部账号不属于允许的企业");
|
|
3323
|
+
case "providerUnavailable": return t.t("platform.external-login.provider-unavailable", "身份源暂时不可用,请稍后重试");
|
|
3324
|
+
case "internalError": return t.t("platform.external-login.internal-error", "平台处理失败,请稍后重试");
|
|
3325
|
+
case "sessionEnded": return t.t("platform.external-login.session-ended", "发起绑定的登录已失效,请重新登录后再绑定");
|
|
3326
|
+
default: return t.t("platform.external-login.authorization-failed", "外部授权未通过,请重试或联系管理员");
|
|
3327
|
+
}
|
|
3328
|
+
}
|
|
3329
|
+
function el(e) {
|
|
3330
|
+
try {
|
|
3331
|
+
let t = JSON.parse(e?.getItem(Jc) ?? "[]");
|
|
3332
|
+
return Array.isArray(t) ? t.filter(nl) : [];
|
|
3333
|
+
} catch {
|
|
3334
|
+
return [];
|
|
3335
|
+
}
|
|
3336
|
+
}
|
|
3337
|
+
function tl(e, t) {
|
|
3338
|
+
try {
|
|
3339
|
+
t.length === 0 ? e?.removeItem(Jc) : e?.setItem(Jc, JSON.stringify(t));
|
|
3340
|
+
} catch {}
|
|
3341
|
+
}
|
|
3342
|
+
function nl(e) {
|
|
3343
|
+
if (typeof e != "object" || !e) return !1;
|
|
3344
|
+
let t = e;
|
|
3345
|
+
return typeof t.providerId == "string" && typeof t.state == "string" && typeof t.browserProof == "string" && (t.purpose === "login" || t.purpose === "bind");
|
|
3346
|
+
}
|
|
3347
|
+
function rl() {
|
|
3348
|
+
try {
|
|
3349
|
+
return typeof window > "u" ? void 0 : window.sessionStorage;
|
|
3350
|
+
} catch {
|
|
3351
|
+
return;
|
|
3352
|
+
}
|
|
3353
|
+
}
|
|
3354
|
+
var il = "https://login.welink.huaweicloud.com/sso-proxy-front/public/qrcode/0.0.1/wlQrcodeLogin.js", al;
|
|
3355
|
+
function ol() {
|
|
3356
|
+
return window.wlQrcodeLogin ? Promise.resolve(window.wlQrcodeLogin) : al || (al = new Promise((e, t) => {
|
|
3357
|
+
let n = document.createElement("script");
|
|
3358
|
+
n.src = il, n.async = !0, n.referrerPolicy = "no-referrer";
|
|
3359
|
+
let r = setTimeout(i, 15e3);
|
|
3360
|
+
function i() {
|
|
3361
|
+
clearTimeout(r), n.remove(), al = void 0, t(/* @__PURE__ */ Error("WeLink script unavailable"));
|
|
3362
|
+
}
|
|
3363
|
+
n.onerror = i, n.onload = () => {
|
|
3364
|
+
if (!window.wlQrcodeLogin) return i();
|
|
3365
|
+
clearTimeout(r), e(window.wlQrcodeLogin);
|
|
3366
|
+
}, document.head.append(n);
|
|
3367
|
+
}), al);
|
|
3368
|
+
}
|
|
3369
|
+
//#endregion
|
|
3370
|
+
//#region src/app/WeLinkQrCode.vue?vue&type=script&setup=true&lang.ts
|
|
3371
|
+
var sl = {
|
|
3372
|
+
class: "welink-qr",
|
|
3373
|
+
"aria-live": "polite"
|
|
3374
|
+
}, cl = { key: 0 }, ll = {
|
|
3375
|
+
key: 1,
|
|
3376
|
+
role: "alert"
|
|
3377
|
+
}, ul = /*#__PURE__*/ P(/* @__PURE__ */ W({
|
|
3378
|
+
__name: "WeLinkQrCode",
|
|
3379
|
+
props: { start: {} },
|
|
3380
|
+
emits: ["close"],
|
|
3381
|
+
setup(e, { emit: t }) {
|
|
3382
|
+
let n = e, r = t, i = j(), a = `welink-${fa()}`, o = K(), s = K(!1), c = K(!1), l = !0, u = !1, d;
|
|
3383
|
+
function f(e) {
|
|
3384
|
+
let t = o.value?.querySelector("iframe");
|
|
3385
|
+
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;
|
|
3386
|
+
let r = n.start.qrCode, i = new URL(r.authorizationUrl);
|
|
3387
|
+
i.search = new URLSearchParams({
|
|
3388
|
+
client_id: r.clientId,
|
|
3389
|
+
redirect_uri: r.redirectUri,
|
|
3390
|
+
response_type: "code",
|
|
3391
|
+
scope: r.scope,
|
|
3392
|
+
state: n.start.state,
|
|
3393
|
+
code: e.data
|
|
3394
|
+
}).toString(), u = !0, Zc(i.toString());
|
|
3395
|
+
}
|
|
3396
|
+
return sa(async () => {
|
|
3397
|
+
try {
|
|
3398
|
+
let e = n.start.qrCode;
|
|
3399
|
+
if (!e || e.providerType !== "welink" || e.scriptUrl !== il || 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");
|
|
3400
|
+
let t = Date.parse(n.start.expiresAt) - Date.now();
|
|
3401
|
+
if (!Number.isFinite(t) || t <= 0) {
|
|
3402
|
+
c.value = !0;
|
|
3403
|
+
return;
|
|
3404
|
+
}
|
|
3405
|
+
d = setTimeout(() => c.value = !0, Math.min(t, 2147483647));
|
|
3406
|
+
let r = await ol();
|
|
3407
|
+
if (!l || c.value) return;
|
|
3408
|
+
window.addEventListener("message", f), r({
|
|
3409
|
+
id: a,
|
|
3410
|
+
client_id: e.clientId,
|
|
3411
|
+
redirect_uri: e.redirectUri,
|
|
3412
|
+
state: e.state,
|
|
3413
|
+
scope: e.scope,
|
|
3414
|
+
response_type: "code",
|
|
3415
|
+
self_redirect: "false",
|
|
3416
|
+
lang: i.languageTag.value.startsWith("en") ? "en" : "cn",
|
|
3417
|
+
width: 300,
|
|
3418
|
+
height: 330
|
|
3419
|
+
});
|
|
3420
|
+
let s = o.value?.querySelector("iframe");
|
|
3421
|
+
s && (s.title = i.t("platform.welink.qr-title", "WeLink 扫码授权"));
|
|
3422
|
+
} catch {
|
|
3423
|
+
l && (s.value = !0);
|
|
3424
|
+
}
|
|
3425
|
+
}), oa(() => {
|
|
3426
|
+
l = !1, clearTimeout(d), window.removeEventListener("message", f);
|
|
3427
|
+
}), (e, t) => (G(), z("section", sl, [c.value ? (G(), z("p", cl, q(J(i).t("platform.welink.expired", "二维码授权已超时,请关闭后重新发起")), 1)) : s.value ? (G(), z("p", ll, q(J(i).t("platform.welink.load-failed", "无法加载 WeLink 二维码,请检查网络后重新发起,或使用其他登录方式")), 1)) : (G(), z(F, { key: 2 }, [B("p", null, q(J(i).t("platform.welink.scan", "请使用 WeLink 扫码并在手机上确认授权")), 1), B("div", {
|
|
3428
|
+
id: a,
|
|
3429
|
+
ref_key: "container",
|
|
3430
|
+
ref: o
|
|
3431
|
+
}, null, 512)], 64)), H(J(M), { onClick: t[0] ||= (e) => r("close") }, {
|
|
3432
|
+
default: Y(() => [V(q(J(i).t("platform.action.cancel", "取消")), 1)]),
|
|
3433
|
+
_: 1
|
|
3434
|
+
})]));
|
|
3435
|
+
}
|
|
3436
|
+
}), [["__scopeId", "data-v-85e0956f"]]), dl = { class: "login-language" }, fl = { class: "login-page" }, pl = { class: "login-panel" }, ml = { class: "login-brand" }, hl = ["src"], gl = { key: 1 }, _l = { key: 0 }, vl = {
|
|
3242
3437
|
key: 1,
|
|
3243
3438
|
class: "login-subtitle"
|
|
3244
|
-
},
|
|
3439
|
+
}, yl = {
|
|
3245
3440
|
key: 0,
|
|
3246
3441
|
class: "login-error"
|
|
3247
|
-
},
|
|
3442
|
+
}, bl = { key: 0 }, xl = {
|
|
3443
|
+
key: 3,
|
|
3444
|
+
class: "login-external"
|
|
3445
|
+
}, Sl = { class: "login-external-divider" }, Cl = { class: "login-context" }, wl = /*#__PURE__*/ P(/* @__PURE__ */ W({
|
|
3248
3446
|
name: "LoginView",
|
|
3249
3447
|
__name: "LoginView",
|
|
3250
3448
|
props: {
|
|
3251
3449
|
authClient: {},
|
|
3252
3450
|
loginContextClient: {},
|
|
3451
|
+
externalLoginClient: {},
|
|
3253
3452
|
loading: { type: Boolean },
|
|
3254
3453
|
error: {},
|
|
3255
3454
|
initialUsername: {}
|
|
3256
3455
|
},
|
|
3257
3456
|
emits: ["authenticated"],
|
|
3258
3457
|
setup(e, { emit: t }) {
|
|
3259
|
-
let n =
|
|
3458
|
+
let n = j(), r = K();
|
|
3459
|
+
function i() {
|
|
3460
|
+
r.value && Xc(r.value.state), r.value = void 0;
|
|
3461
|
+
}
|
|
3462
|
+
let a = e, o = t, s = Hc(void 0), c = K(s.tenantId), l = s.tenantLocked, u = K(Uc(a.initialUsername) || Uc(void 0)), d = K(Uc(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 = I(() => !l || !y.value && !b.value), te = I(() => v.value?.mode !== "logoOnly"), ne = I(() => v.value?.title || n.t("platform.screen.LoginView.platform-sign-in", "平台登录")), re = I(() => v.value?.subtitle);
|
|
3260
3463
|
sa(async () => {
|
|
3261
|
-
if (
|
|
3262
|
-
|
|
3464
|
+
if (l && c.value) {
|
|
3465
|
+
y.value = !0;
|
|
3263
3466
|
try {
|
|
3264
|
-
if (!
|
|
3265
|
-
let e = await
|
|
3266
|
-
|
|
3467
|
+
if (!a.loginContextClient) throw Error("login context client is unavailable");
|
|
3468
|
+
let e = await a.loginContextClient.loginContext(c.value);
|
|
3469
|
+
v.value = e.branding, x.value = a.externalLoginClient ? e.externalLoginMethods ?? [] : [];
|
|
3267
3470
|
} catch {
|
|
3268
|
-
|
|
3471
|
+
b.value = () => n.t("platform.screen.LoginView.unable-to-open-sign-in-for-this-tenant", "无法打开该租户的登录入口");
|
|
3269
3472
|
} finally {
|
|
3270
|
-
|
|
3473
|
+
y.value = !1;
|
|
3271
3474
|
}
|
|
3272
3475
|
}
|
|
3273
3476
|
});
|
|
3274
|
-
async function
|
|
3275
|
-
|
|
3477
|
+
async function C(e) {
|
|
3478
|
+
if (a.externalLoginClient) {
|
|
3479
|
+
p.value = void 0, S.value = !0;
|
|
3480
|
+
try {
|
|
3481
|
+
i();
|
|
3482
|
+
let t = await a.externalLoginClient.startLogin(e.providerId, c.value);
|
|
3483
|
+
Yc(t, {
|
|
3484
|
+
providerId: e.providerId,
|
|
3485
|
+
purpose: "login",
|
|
3486
|
+
tenantId: c.value
|
|
3487
|
+
}), t.qrCode ? (r.value = t, S.value = !1) : Zc(t.authorizationUrl);
|
|
3488
|
+
} catch (e) {
|
|
3489
|
+
p.value = () => ae(e), S.value = !1;
|
|
3490
|
+
}
|
|
3491
|
+
}
|
|
3492
|
+
}
|
|
3493
|
+
async function ie() {
|
|
3494
|
+
p.value = void 0, f.value = !0;
|
|
3276
3495
|
try {
|
|
3277
|
-
let e = await
|
|
3278
|
-
tenantId:
|
|
3279
|
-
username:
|
|
3280
|
-
password:
|
|
3496
|
+
let e = await a.authClient.login({
|
|
3497
|
+
tenantId: c.value,
|
|
3498
|
+
username: u.value,
|
|
3499
|
+
password: d.value
|
|
3281
3500
|
});
|
|
3282
3501
|
if (e.passwordChangeRequired) {
|
|
3283
|
-
|
|
3502
|
+
h.value = e.token, m.value = !0, p.value = void 0;
|
|
3284
3503
|
return;
|
|
3285
3504
|
}
|
|
3286
|
-
|
|
3505
|
+
o("authenticated", e);
|
|
3287
3506
|
} catch (e) {
|
|
3288
|
-
|
|
3507
|
+
p.value = () => ae(e);
|
|
3289
3508
|
} finally {
|
|
3290
|
-
|
|
3509
|
+
f.value = !1;
|
|
3291
3510
|
}
|
|
3292
3511
|
}
|
|
3293
|
-
function
|
|
3294
|
-
return e instanceof
|
|
3512
|
+
function ae(e) {
|
|
3513
|
+
return e instanceof xn ? e.status === 403 ? n.t("platform.screen.LoginView.this-site-is-not-authorized-by-the-server", "当前站点未获后端授权,请联系管理员配置访问来源") : e.code === _t.networkError || e.code === _t.httpError || (e.status ?? 0) >= 500 ? n.t("platform.screen.LoginView.cannot-reach-the-server-check-its-status-and", "无法访问后端,请检查服务状态或站点授权配置") : e.code === _t.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", "登录失败,请稍后重试");
|
|
3295
3514
|
}
|
|
3296
|
-
async function
|
|
3297
|
-
if (
|
|
3298
|
-
|
|
3515
|
+
async function oe() {
|
|
3516
|
+
if (p.value = void 0, !h.value) {
|
|
3517
|
+
p.value = () => n.t("platform.screen.LoginView.your-session-is-no-longer-valid-please-sign", "登录状态已失效,请重新登录"), m.value = !1;
|
|
3299
3518
|
return;
|
|
3300
3519
|
}
|
|
3301
|
-
if (
|
|
3302
|
-
|
|
3520
|
+
if (g.value !== _.value) {
|
|
3521
|
+
p.value = () => n.t("platform.screen.LoginView.the-new-passwords-do-not-match", "两次输入的新密码不一致");
|
|
3303
3522
|
return;
|
|
3304
3523
|
}
|
|
3305
|
-
|
|
3524
|
+
f.value = !0;
|
|
3306
3525
|
try {
|
|
3307
|
-
await
|
|
3308
|
-
currentPassword:
|
|
3309
|
-
newPassword:
|
|
3310
|
-
},
|
|
3311
|
-
let e = await
|
|
3312
|
-
tenantId:
|
|
3313
|
-
username:
|
|
3314
|
-
password:
|
|
3526
|
+
await a.authClient.changeOwnPassword({
|
|
3527
|
+
currentPassword: d.value,
|
|
3528
|
+
newPassword: g.value
|
|
3529
|
+
}, h.value), d.value = g.value;
|
|
3530
|
+
let e = await a.authClient.login({
|
|
3531
|
+
tenantId: c.value,
|
|
3532
|
+
username: u.value,
|
|
3533
|
+
password: g.value
|
|
3315
3534
|
});
|
|
3316
|
-
|
|
3535
|
+
o("authenticated", e);
|
|
3317
3536
|
} catch (e) {
|
|
3318
|
-
|
|
3537
|
+
p.value = () => e instanceof Error ? k(A(e), n) : n.t("platform.screen.LoginView.password-change-failed", "密码修改失败,请重试");
|
|
3319
3538
|
} finally {
|
|
3320
|
-
|
|
3539
|
+
f.value = !1;
|
|
3321
3540
|
}
|
|
3322
3541
|
}
|
|
3323
|
-
return (t,
|
|
3324
|
-
|
|
3542
|
+
return (t, a) => (G(), z(F, null, [B("div", dl, [H(J(Re))]), B("main", fl, [B("section", pl, [
|
|
3543
|
+
B("header", null, [B("div", ml, [v.value?.lightLogo ? (G(), z("img", {
|
|
3325
3544
|
key: 0,
|
|
3326
3545
|
class: "login-logo",
|
|
3327
|
-
src:
|
|
3546
|
+
src: v.value.lightLogo,
|
|
3328
3547
|
alt: ""
|
|
3329
|
-
}, null, 8,
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
])) :
|
|
3334
|
-
|
|
3335
|
-
|
|
3548
|
+
}, null, 8, hl)) : R("v-if", !0), te.value ? (G(), z("div", gl, [
|
|
3549
|
+
v.value?.lightLogo ? R("v-if", !0) : (G(), z("p", _l, "MuYun Platform")),
|
|
3550
|
+
B("h1", null, q(ne.value), 1),
|
|
3551
|
+
re.value ? (G(), z("p", vl, q(re.value), 1)) : R("v-if", !0)
|
|
3552
|
+
])) : R("v-if", !0)])]),
|
|
3553
|
+
p.value || e.error || b.value ? (G(), z("p", yl, q(p.value?.() || e.error || b.value?.()), 1)) : R("v-if", !0),
|
|
3554
|
+
r.value ? (G(), L(ul, {
|
|
3555
|
+
key: r.value.state,
|
|
3556
|
+
start: r.value,
|
|
3557
|
+
onClose: i
|
|
3558
|
+
}, null, 8, ["start"])) : R("v-if", !0),
|
|
3559
|
+
m.value ? R("v-if", !0) : (G(), z("form", {
|
|
3336
3560
|
key: 2,
|
|
3337
3561
|
class: "login-form",
|
|
3338
|
-
onSubmit:
|
|
3562
|
+
onSubmit: ga(ie, ["prevent"])
|
|
3339
3563
|
}, [
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
value:
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3564
|
+
J(l) ? R("v-if", !0) : (G(), z("label", bl, [B("span", null, q(J(n).t("platform.screen.LoginView.tenant-id", "租户 ID")), 1), H(J(N), {
|
|
3565
|
+
value: c.value,
|
|
3566
|
+
"onUpdate:value": a[0] ||= (e) => c.value = e,
|
|
3567
|
+
autocomplete: "organization",
|
|
3568
|
+
placeholder: J(n).t("platform.screen.LoginView.leave-blank-to-enter-the-system-workspace", "留空进入系统工作区")
|
|
3569
|
+
}, null, 8, ["value", "placeholder"])])),
|
|
3570
|
+
B("label", null, [B("span", null, q(J(n).t("platform.screen.LoginView.username", "用户名")), 1), H(J(N), {
|
|
3571
|
+
value: u.value,
|
|
3572
|
+
"onUpdate:value": a[1] ||= (e) => u.value = e,
|
|
3573
|
+
autocomplete: "username",
|
|
3346
3574
|
required: ""
|
|
3347
3575
|
}, null, 8, ["value"])]),
|
|
3348
|
-
|
|
3349
|
-
value:
|
|
3350
|
-
"onUpdate:value":
|
|
3576
|
+
B("label", null, [B("span", null, q(J(n).t("platform.screen.LoginView.password", "密码")), 1), H(J(N), {
|
|
3577
|
+
value: d.value,
|
|
3578
|
+
"onUpdate:value": a[2] ||= (e) => d.value = e,
|
|
3351
3579
|
type: "password",
|
|
3352
|
-
autocomplete: "
|
|
3580
|
+
autocomplete: "current-password",
|
|
3353
3581
|
required: ""
|
|
3354
3582
|
}, null, 8, ["value"])]),
|
|
3355
|
-
|
|
3583
|
+
H(J(M), {
|
|
3356
3584
|
class: "login-submit",
|
|
3357
3585
|
"html-type": "submit",
|
|
3358
3586
|
type: "primary",
|
|
3359
|
-
|
|
3587
|
+
disabled: !ee.value,
|
|
3588
|
+
loading: f.value || e.loading || y.value
|
|
3360
3589
|
}, {
|
|
3361
|
-
default:
|
|
3590
|
+
default: Y(() => [V(q(f.value || e.loading ? J(n).t("platform.screen.LoginView.signing-in", "登录中") : J(n).t("platform.screen.LoginView.sign-in", "登录")), 1)]),
|
|
3362
3591
|
_: 1
|
|
3363
|
-
}, 8, ["loading"])
|
|
3364
|
-
], 32))
|
|
3365
|
-
|
|
3592
|
+
}, 8, ["disabled", "loading"])
|
|
3593
|
+
], 32)),
|
|
3594
|
+
!m.value && x.value.length > 0 ? (G(), z("div", xl, [B("p", Sl, q(J(n).t("platform.screen.LoginView.or-sign-in-with", "或使用以下方式登录")), 1), (G(!0), z(F, null, la(x.value, (e) => (G(), L(J(M), {
|
|
3595
|
+
key: e.providerId,
|
|
3596
|
+
class: "login-submit",
|
|
3597
|
+
loading: S.value,
|
|
3598
|
+
disabled: S.value,
|
|
3599
|
+
onClick: (t) => C(e)
|
|
3600
|
+
}, {
|
|
3601
|
+
default: Y(() => [V(q(J(n).t("platform.screen.LoginView.sign-in-with", "使用 {provider} 登录", { provider: e.title })), 1)]),
|
|
3602
|
+
_: 2
|
|
3603
|
+
}, 1032, [
|
|
3604
|
+
"loading",
|
|
3605
|
+
"disabled",
|
|
3606
|
+
"onClick"
|
|
3607
|
+
]))), 128))])) : m.value ? (G(), z("form", {
|
|
3608
|
+
key: 4,
|
|
3366
3609
|
class: "login-form",
|
|
3367
|
-
onSubmit:
|
|
3610
|
+
onSubmit: ga(oe, ["prevent"])
|
|
3368
3611
|
}, [
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
I("label", null, [I("span", null, U(W(n).t("platform.screen.LoginView.username", "用户名")), 1), L(W(j), {
|
|
3376
|
-
value: c.value,
|
|
3377
|
-
"onUpdate:value": r[1] ||= (e) => c.value = e,
|
|
3378
|
-
autocomplete: "username",
|
|
3612
|
+
B("p", Cl, q(J(n).t("platform.screen.LoginView.change-your-current-password-before-entering-the-system", "当前密码需要修改后才能进入系统")), 1),
|
|
3613
|
+
B("label", null, [B("span", null, q(J(n).t("platform.screen.LoginView.new-password", "新密码")), 1), H(J(N), {
|
|
3614
|
+
value: g.value,
|
|
3615
|
+
"onUpdate:value": a[3] ||= (e) => g.value = e,
|
|
3616
|
+
type: "password",
|
|
3617
|
+
autocomplete: "new-password",
|
|
3379
3618
|
required: ""
|
|
3380
3619
|
}, null, 8, ["value"])]),
|
|
3381
|
-
|
|
3382
|
-
value:
|
|
3383
|
-
"onUpdate:value":
|
|
3620
|
+
B("label", null, [B("span", null, q(J(n).t("platform.screen.LoginView.confirm-new-password", "确认新密码")), 1), H(J(N), {
|
|
3621
|
+
value: _.value,
|
|
3622
|
+
"onUpdate:value": a[4] ||= (e) => _.value = e,
|
|
3384
3623
|
type: "password",
|
|
3385
|
-
autocomplete: "
|
|
3624
|
+
autocomplete: "new-password",
|
|
3386
3625
|
required: ""
|
|
3387
3626
|
}, null, 8, ["value"])]),
|
|
3388
|
-
|
|
3627
|
+
H(J(M), {
|
|
3389
3628
|
class: "login-submit",
|
|
3390
3629
|
"html-type": "submit",
|
|
3391
3630
|
type: "primary",
|
|
3392
|
-
|
|
3393
|
-
loading: u.value || e.loading || _.value
|
|
3631
|
+
loading: f.value || e.loading
|
|
3394
3632
|
}, {
|
|
3395
|
-
default:
|
|
3633
|
+
default: Y(() => [V(q(f.value || e.loading ? J(n).t("platform.screen.LoginView.saving", "保存中") : J(n).t("platform.screen.LoginView.change-password", "修改密码")), 1)]),
|
|
3396
3634
|
_: 1
|
|
3397
|
-
}, 8, ["
|
|
3398
|
-
], 32))
|
|
3635
|
+
}, 8, ["loading"])
|
|
3636
|
+
], 32)) : R("v-if", !0)
|
|
3399
3637
|
])])], 64));
|
|
3400
3638
|
}
|
|
3401
|
-
}), [["__scopeId", "data-v-
|
|
3639
|
+
}), [["__scopeId", "data-v-96af9dc4"]]);
|
|
3402
3640
|
//#endregion
|
|
3403
3641
|
//#region src/consumer/userPreferencePersistence.ts
|
|
3404
|
-
function
|
|
3405
|
-
|
|
3642
|
+
function Tl(e) {
|
|
3643
|
+
Kr({
|
|
3406
3644
|
load: async (t) => (await e().request({
|
|
3407
3645
|
path: `/platform.user-preference/${encodeURIComponent(t)}`,
|
|
3408
3646
|
query: { clientType: "WEB" }
|
|
@@ -3424,10 +3662,10 @@ function Qc(e) {
|
|
|
3424
3662
|
}
|
|
3425
3663
|
//#endregion
|
|
3426
3664
|
//#region src/app/ChangeOwnPasswordDialog.vue?vue&type=script&setup=true&lang.ts
|
|
3427
|
-
var
|
|
3665
|
+
var El = { class: "change-own-password-fields" }, Dl = {
|
|
3428
3666
|
key: 0,
|
|
3429
3667
|
class: "change-own-password-error"
|
|
3430
|
-
},
|
|
3668
|
+
}, Ol = /*#__PURE__*/ P(/* @__PURE__ */ W({
|
|
3431
3669
|
name: "ChangeOwnPasswordDialog",
|
|
3432
3670
|
__name: "ChangeOwnPasswordDialog",
|
|
3433
3671
|
props: {
|
|
@@ -3452,54 +3690,54 @@ var $c = { class: "change-own-password-fields" }, el = {
|
|
|
3452
3690
|
"update:confirmPassword"
|
|
3453
3691
|
],
|
|
3454
3692
|
setup(e, { emit: t }) {
|
|
3455
|
-
let n =
|
|
3456
|
-
return (t, i) => (
|
|
3693
|
+
let n = j(), r = t;
|
|
3694
|
+
return (t, i) => (G(), L(J(un), {
|
|
3457
3695
|
open: e.open,
|
|
3458
|
-
title:
|
|
3459
|
-
"confirm-text":
|
|
3696
|
+
title: J(n).t("platform.screen.ChangeOwnPasswordDialog.change-password", "修改密码"),
|
|
3697
|
+
"confirm-text": J(n).t("platform.screen.ChangeOwnPasswordDialog.save", "保存"),
|
|
3460
3698
|
"confirm-loading": e.saving,
|
|
3461
3699
|
"confirm-disabled": !e.currentPassword || !e.newPassword || !e.confirmPassword,
|
|
3462
3700
|
onConfirm: i[3] ||= (e) => r("submit"),
|
|
3463
3701
|
onCancel: i[4] ||= (e) => r("close")
|
|
3464
3702
|
}, {
|
|
3465
|
-
default:
|
|
3466
|
-
|
|
3703
|
+
default: Y(() => [B("div", El, [
|
|
3704
|
+
B("label", null, [B("span", null, q(J(n).t("platform.screen.ChangeOwnPasswordDialog.current-password", "当前密码")), 1), H(J(N), {
|
|
3467
3705
|
value: e.currentPassword,
|
|
3468
3706
|
type: "password",
|
|
3469
3707
|
autocomplete: "current-password",
|
|
3470
3708
|
disabled: e.saving,
|
|
3471
|
-
placeholder:
|
|
3709
|
+
placeholder: J(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-current-password", "请输入当前密码"),
|
|
3472
3710
|
"onUpdate:value": i[0] ||= (e) => r("update:currentPassword", e)
|
|
3473
3711
|
}, null, 8, [
|
|
3474
3712
|
"value",
|
|
3475
3713
|
"disabled",
|
|
3476
3714
|
"placeholder"
|
|
3477
3715
|
])]),
|
|
3478
|
-
|
|
3716
|
+
B("label", null, [B("span", null, q(J(n).t("platform.screen.ChangeOwnPasswordDialog.new-password", "新密码")), 1), H(J(N), {
|
|
3479
3717
|
value: e.newPassword,
|
|
3480
3718
|
type: "password",
|
|
3481
3719
|
autocomplete: "new-password",
|
|
3482
3720
|
disabled: e.saving,
|
|
3483
|
-
placeholder:
|
|
3721
|
+
placeholder: J(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-new-password", "请输入新密码"),
|
|
3484
3722
|
"onUpdate:value": i[1] ||= (e) => r("update:newPassword", e)
|
|
3485
3723
|
}, null, 8, [
|
|
3486
3724
|
"value",
|
|
3487
3725
|
"disabled",
|
|
3488
3726
|
"placeholder"
|
|
3489
3727
|
])]),
|
|
3490
|
-
|
|
3728
|
+
B("label", null, [B("span", null, q(J(n).t("platform.screen.ChangeOwnPasswordDialog.confirm-new-password", "确认新密码")), 1), H(J(N), {
|
|
3491
3729
|
value: e.confirmPassword,
|
|
3492
3730
|
type: "password",
|
|
3493
3731
|
autocomplete: "new-password",
|
|
3494
3732
|
disabled: e.saving,
|
|
3495
|
-
placeholder:
|
|
3733
|
+
placeholder: J(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-new-password-again", "请再次输入新密码"),
|
|
3496
3734
|
"onUpdate:value": i[2] ||= (e) => r("update:confirmPassword", e)
|
|
3497
3735
|
}, null, 8, [
|
|
3498
3736
|
"value",
|
|
3499
3737
|
"disabled",
|
|
3500
3738
|
"placeholder"
|
|
3501
3739
|
])])
|
|
3502
|
-
]), e.error ? (
|
|
3740
|
+
]), e.error ? (G(), z("p", Dl, q(e.error), 1)) : R("v-if", !0)]),
|
|
3503
3741
|
_: 1
|
|
3504
3742
|
}, 8, [
|
|
3505
3743
|
"open",
|
|
@@ -3509,18 +3747,18 @@ var $c = { class: "change-own-password-fields" }, el = {
|
|
|
3509
3747
|
"confirm-disabled"
|
|
3510
3748
|
]));
|
|
3511
3749
|
}
|
|
3512
|
-
}), [["__scopeId", "data-v-c6faa9f8"]]),
|
|
3750
|
+
}), [["__scopeId", "data-v-c6faa9f8"]]), kl = { class: "theme-skin-preferences" }, Al = {
|
|
3513
3751
|
key: 0,
|
|
3514
3752
|
class: "theme-skin-error",
|
|
3515
3753
|
role: "alert"
|
|
3516
|
-
},
|
|
3754
|
+
}, jl = ["aria-label"], Ml = [
|
|
3517
3755
|
"aria-checked",
|
|
3518
3756
|
"tabindex",
|
|
3519
3757
|
"data-skin-id",
|
|
3520
3758
|
"disabled",
|
|
3521
3759
|
"onClick",
|
|
3522
3760
|
"onKeydown"
|
|
3523
|
-
],
|
|
3761
|
+
], Nl = /*#__PURE__*/ P(/* @__PURE__ */ W({
|
|
3524
3762
|
name: "ThemeSkinPreferencesDialog",
|
|
3525
3763
|
__name: "ThemeSkinPreferencesDialog",
|
|
3526
3764
|
props: {
|
|
@@ -3536,7 +3774,7 @@ var $c = { class: "change-own-password-fields" }, el = {
|
|
|
3536
3774
|
},
|
|
3537
3775
|
emits: ["close", "select"],
|
|
3538
3776
|
setup(e, { emit: t }) {
|
|
3539
|
-
let n =
|
|
3777
|
+
let n = j(), r = e, i = I(() => r.failure === "save-failed" ? n.t("platform.screen.themeSkinPreference.could-not-save-the-appearance-preference-the-previous", "皮肤保存失败,已恢复为之前的设置。") : r.error), a = t;
|
|
3540
3778
|
function o(e, t) {
|
|
3541
3779
|
if (![
|
|
3542
3780
|
"ArrowRight",
|
|
@@ -3552,23 +3790,23 @@ var $c = { class: "change-own-password-fields" }, el = {
|
|
|
3552
3790
|
let i = e.key === "Home" ? 0 : e.key === "End" ? r - 1 : (t + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + r) % r, o = n?.children.item(i), s = o?.dataset.skinId;
|
|
3553
3791
|
s && (a("select", s), o?.focus());
|
|
3554
3792
|
}
|
|
3555
|
-
return (t, r) => (
|
|
3793
|
+
return (t, r) => (G(), L(J(un), {
|
|
3556
3794
|
open: e.open,
|
|
3557
|
-
title:
|
|
3795
|
+
title: J(n).t("platform.screen.ThemeSkinPreferencesDialog.preferences", "偏好设置"),
|
|
3558
3796
|
width: 460,
|
|
3559
|
-
"confirm-text": e.saving ?
|
|
3797
|
+
"confirm-text": e.saving ? J(n).t("platform.screen.ThemeSkinPreferencesDialog.saving", "保存中…") : J(n).t("platform.screen.ThemeSkinPreferencesDialog.done", "完成"),
|
|
3560
3798
|
"confirm-loading": e.saving,
|
|
3561
3799
|
onConfirm: r[0] ||= (e) => a("close"),
|
|
3562
3800
|
onCancel: r[1] ||= (e) => a("close")
|
|
3563
3801
|
}, {
|
|
3564
|
-
default:
|
|
3565
|
-
|
|
3566
|
-
i.value ? (
|
|
3567
|
-
|
|
3802
|
+
default: Y(() => [B("section", kl, [
|
|
3803
|
+
B("header", null, [B("h2", null, q(J(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")), 1), B("p", null, q(J(n).t("platform.screen.ThemeSkinPreferencesDialog.your-appearance-preference-is-saved-to-this-account", "皮肤会同步保存到当前账号,并在下次启动时优先恢复。")), 1)]),
|
|
3804
|
+
i.value ? (G(), z("p", Al, q(i.value), 1)) : R("v-if", !0),
|
|
3805
|
+
B("div", {
|
|
3568
3806
|
class: "theme-skin-grid",
|
|
3569
3807
|
role: "radiogroup",
|
|
3570
|
-
"aria-label":
|
|
3571
|
-
}, [(
|
|
3808
|
+
"aria-label": J(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")
|
|
3809
|
+
}, [(G(!0), z(F, null, la(e.skins, (t, i) => (G(), z("button", {
|
|
3572
3810
|
key: t.id,
|
|
3573
3811
|
class: ra(["theme-skin-card", { selected: t.id === e.activeSkinId }]),
|
|
3574
3812
|
type: "button",
|
|
@@ -3580,7 +3818,7 @@ var $c = { class: "change-own-password-fields" }, el = {
|
|
|
3580
3818
|
onClick: (e) => a("select", t.id),
|
|
3581
3819
|
onKeydown: (e) => o(e, i)
|
|
3582
3820
|
}, [
|
|
3583
|
-
|
|
3821
|
+
B("span", {
|
|
3584
3822
|
class: "theme-skin-preview",
|
|
3585
3823
|
style: aa({
|
|
3586
3824
|
"--skin-canvas": t.theme.support.canvas,
|
|
@@ -3590,13 +3828,13 @@ var $c = { class: "change-own-password-fields" }, el = {
|
|
|
3590
3828
|
"--skin-accent": t.theme.brandAccent.base
|
|
3591
3829
|
})
|
|
3592
3830
|
}, [...r[2] ||= [
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3831
|
+
B("i", { class: "theme-skin-preview-sidebar" }, null, -1),
|
|
3832
|
+
B("i", { class: "theme-skin-preview-toolbar" }, null, -1),
|
|
3833
|
+
B("i", { class: "theme-skin-preview-card" }, null, -1)
|
|
3596
3834
|
]], 4),
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
], 42,
|
|
3835
|
+
B("strong", null, q(t.titleKey ? J(n).t(t.titleKey, t.title) : t.title), 1),
|
|
3836
|
+
B("small", null, q(t.descriptionKey ? J(n).t(t.descriptionKey, t.description) : t.description), 1)
|
|
3837
|
+
], 42, Ml))), 128))], 8, jl)
|
|
3600
3838
|
])]),
|
|
3601
3839
|
_: 1
|
|
3602
3840
|
}, 8, [
|
|
@@ -3606,17 +3844,17 @@ var $c = { class: "change-own-password-fields" }, el = {
|
|
|
3606
3844
|
"confirm-loading"
|
|
3607
3845
|
]));
|
|
3608
3846
|
}
|
|
3609
|
-
}), [["__scopeId", "data-v-d7f8f04d"]]),
|
|
3610
|
-
async function
|
|
3611
|
-
let n = await e.restore(
|
|
3612
|
-
return await e.set(
|
|
3847
|
+
}), [["__scopeId", "data-v-d7f8f04d"]]), Pl = "workbench.theme-skin";
|
|
3848
|
+
async function Fl(e, t) {
|
|
3849
|
+
let n = await e.restore(Pl, t, { persistence: "backend" }), r = ci(n).id;
|
|
3850
|
+
return await e.set(Pl, r, { persistence: "local" }), r;
|
|
3613
3851
|
}
|
|
3614
|
-
async function
|
|
3615
|
-
await e.set(
|
|
3852
|
+
async function Il(e, t, n) {
|
|
3853
|
+
await e.set(Pl, t, { persistence: "local" });
|
|
3616
3854
|
try {
|
|
3617
|
-
return await e.set(
|
|
3855
|
+
return await e.set(Pl, t, { persistence: "backend" }), { skinId: t };
|
|
3618
3856
|
} catch {
|
|
3619
|
-
return await e.set(
|
|
3857
|
+
return await e.set(Pl, n, { persistence: "local" }), {
|
|
3620
3858
|
skinId: n,
|
|
3621
3859
|
failure: "save-failed"
|
|
3622
3860
|
};
|
|
@@ -3624,7 +3862,7 @@ async function cl(e, t, n) {
|
|
|
3624
3862
|
}
|
|
3625
3863
|
//#endregion
|
|
3626
3864
|
//#region src/platform-components/ReadonlyRecordWorkspace.vue?vue&type=script&setup=true&lang.ts
|
|
3627
|
-
var
|
|
3865
|
+
var Ll = ["aria-label"], Rl = /*#__PURE__*/ P(/* @__PURE__ */ W({
|
|
3628
3866
|
name: "ReadonlyRecordWorkspace",
|
|
3629
3867
|
__name: "ReadonlyRecordWorkspace",
|
|
3630
3868
|
props: {
|
|
@@ -3642,32 +3880,32 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ Cr(/* @__PURE__ */ z({
|
|
|
3642
3880
|
}
|
|
3643
3881
|
},
|
|
3644
3882
|
setup(e, { expose: t }) {
|
|
3645
|
-
|
|
3646
|
-
let n = e, r =
|
|
3883
|
+
Ci("workspace");
|
|
3884
|
+
let n = e, r = j(), i = An(r), a = K(), o = Xr(a, pi(0)), s = K({}), c = K({}), l = K({}), u = K(0), d = I({
|
|
3647
3885
|
get: () => s.value.criteria,
|
|
3648
3886
|
set: (e) => {
|
|
3649
|
-
|
|
3887
|
+
ie({
|
|
3650
3888
|
...s.value,
|
|
3651
3889
|
criteria: e
|
|
3652
3890
|
});
|
|
3653
3891
|
}
|
|
3654
|
-
}), f =
|
|
3892
|
+
}), f = I({
|
|
3655
3893
|
get: () => s.value.sorts,
|
|
3656
3894
|
set: (e) => {
|
|
3657
|
-
|
|
3895
|
+
ie({
|
|
3658
3896
|
...s.value,
|
|
3659
3897
|
sorts: e
|
|
3660
3898
|
});
|
|
3661
3899
|
}
|
|
3662
|
-
}), p =
|
|
3900
|
+
}), p = K(!1), m = K(!1), h = K(""), g = I(() => JSON.stringify([
|
|
3663
3901
|
n.view.sourceId,
|
|
3664
3902
|
n.view.viewCode,
|
|
3665
3903
|
n.view.scopeKey
|
|
3666
|
-
])), _ =
|
|
3904
|
+
])), _ = I(() => n.view.querySchema), v = I(() => _.value?.criteriaComposition ?? "TREE"), y = I(() => (_.value?.fields ?? []).filter((e) => !e.reference || !!n.referencePickerOf?.(e)).map((e) => ({
|
|
3667
3905
|
...e,
|
|
3668
|
-
title:
|
|
3669
|
-
}))), b =
|
|
3670
|
-
function
|
|
3906
|
+
title: tn(e.title ?? e.name, e.titleText, r)
|
|
3907
|
+
}))), b = I(() => y.value.filter((e) => e.persistentControl)), x = I(() => Object.values(l.value).every((e) => e.valid));
|
|
3908
|
+
function S(e) {
|
|
3671
3909
|
return b.value.flatMap((t) => {
|
|
3672
3910
|
let n = t.persistentControl, r = e?.[n.id] ?? n.defaultValues ?? [];
|
|
3673
3911
|
return r.length || mr(n.operator) ? [{
|
|
@@ -3678,34 +3916,34 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ Cr(/* @__PURE__ */ z({
|
|
|
3678
3916
|
}] : [];
|
|
3679
3917
|
});
|
|
3680
3918
|
}
|
|
3681
|
-
let
|
|
3919
|
+
let ee = I(() => S(s.value.persistentValues)), te = I(() => b.value.map((e) => {
|
|
3682
3920
|
let t = e.persistentControl;
|
|
3683
3921
|
return {
|
|
3684
3922
|
...t,
|
|
3685
|
-
title:
|
|
3923
|
+
title: tn(t.title, t.titleText, r),
|
|
3686
3924
|
field: e,
|
|
3687
3925
|
values: c.value[t.id] ?? t.defaultValues ?? [],
|
|
3688
3926
|
options: n.queryOptionsByField[e.name],
|
|
3689
3927
|
referencePicker: n.referencePickerOf?.(e)
|
|
3690
3928
|
};
|
|
3691
3929
|
}));
|
|
3692
|
-
function
|
|
3693
|
-
x.value && !
|
|
3930
|
+
function ne() {
|
|
3931
|
+
x.value && !E.value && ie({
|
|
3694
3932
|
...s.value,
|
|
3695
|
-
persistentValues: Object.fromEntries(
|
|
3933
|
+
persistentValues: Object.fromEntries(te.value.map((e) => [e.id, [...e.values]]))
|
|
3696
3934
|
});
|
|
3697
3935
|
}
|
|
3698
|
-
function
|
|
3699
|
-
c.value = {}, l.value = {}, u.value++,
|
|
3936
|
+
function re() {
|
|
3937
|
+
c.value = {}, l.value = {}, u.value++, ie({
|
|
3700
3938
|
...s.value,
|
|
3701
3939
|
persistentValues: void 0
|
|
3702
3940
|
});
|
|
3703
3941
|
}
|
|
3704
|
-
let
|
|
3942
|
+
let C = I(() => ({
|
|
3705
3943
|
...n.query,
|
|
3706
|
-
criteria:
|
|
3944
|
+
criteria: ur([
|
|
3707
3945
|
n.query?.criteria,
|
|
3708
|
-
...
|
|
3946
|
+
...ee.value,
|
|
3709
3947
|
d.value
|
|
3710
3948
|
]),
|
|
3711
3949
|
sorts: f.value ?? n.query?.sorts ?? _.value?.defaultSorts.map((e) => ({
|
|
@@ -3714,15 +3952,15 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ Cr(/* @__PURE__ */ z({
|
|
|
3714
3952
|
})),
|
|
3715
3953
|
quickSearchFields: _.value?.quickSearch.fields ?? n.query?.quickSearchFields
|
|
3716
3954
|
}));
|
|
3717
|
-
function
|
|
3718
|
-
let t = JSON.stringify(
|
|
3955
|
+
function ie(e) {
|
|
3956
|
+
let t = JSON.stringify(C.value), i = ki(ur([
|
|
3719
3957
|
n.query?.criteria,
|
|
3720
|
-
...
|
|
3958
|
+
...S(e.persistentValues),
|
|
3721
3959
|
e.criteria
|
|
3722
3960
|
]), r);
|
|
3723
|
-
h.value = i ?? "", !i && (s.value = e, JSON.stringify(
|
|
3961
|
+
h.value = i ?? "", !i && (s.value = e, JSON.stringify(C.value) === t && w.goPage(1));
|
|
3724
3962
|
}
|
|
3725
|
-
let
|
|
3963
|
+
let ae = I(() => JSON.stringify({
|
|
3726
3964
|
composition: v.value,
|
|
3727
3965
|
fields: _.value?.fields.map((e) => ({
|
|
3728
3966
|
name: e.name,
|
|
@@ -3742,81 +3980,81 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ Cr(/* @__PURE__ */ z({
|
|
|
3742
3980
|
},
|
|
3743
3981
|
defaultSorts: _.value?.defaultSorts
|
|
3744
3982
|
}));
|
|
3745
|
-
|
|
3983
|
+
ma([g, ae], () => {
|
|
3746
3984
|
s.value = {}, c.value = {}, l.value = {}, u.value++, p.value = !1, m.value = !1, h.value = "";
|
|
3747
3985
|
}, { flush: "sync" });
|
|
3748
|
-
function
|
|
3986
|
+
function oe() {
|
|
3749
3987
|
m.value = !0, p.value = !p.value;
|
|
3750
3988
|
}
|
|
3751
|
-
function
|
|
3989
|
+
function se(e) {
|
|
3752
3990
|
h.value = "", d.value = e;
|
|
3753
3991
|
}
|
|
3754
|
-
let
|
|
3992
|
+
let w = Xi({
|
|
3755
3993
|
view: () => n.view,
|
|
3756
|
-
query:
|
|
3994
|
+
query: C,
|
|
3757
3995
|
pageSize: n.pageSize,
|
|
3758
3996
|
contentLanguage: () => i.languageTag.value
|
|
3759
|
-
}), { result:
|
|
3760
|
-
|
|
3761
|
-
|
|
3997
|
+
}), { result: T, loading: E, error: ce, selected: D, detail: le, detailLoading: ue, detailError: O, pageNum: de, pageSize: fe } = w;
|
|
3998
|
+
ma(ae, () => {
|
|
3999
|
+
w.search("");
|
|
3762
4000
|
}, { flush: "sync" });
|
|
3763
|
-
let pe =
|
|
3764
|
-
|
|
4001
|
+
let pe = K("");
|
|
4002
|
+
ma(() => n.pageSize, (e) => void w.resizePage(e)), ma(w.quickSearch, (e) => {
|
|
3765
4003
|
pe.value = e;
|
|
3766
|
-
}),
|
|
4004
|
+
}), ma(g, () => {
|
|
3767
4005
|
pe.value = "";
|
|
3768
4006
|
}, { flush: "sync" });
|
|
3769
|
-
let
|
|
3770
|
-
function
|
|
3771
|
-
return
|
|
4007
|
+
let me = I(() => n.view.descriptor.page?.list), he = I(() => Yr(me.value?.fields)), ge = I(() => n.view.descriptor.page?.detail?.display ? Rt(n.view.descriptor) : /* @__PURE__ */ new Map()), _e = I(() => !o.value), ve = I(() => me.value?.title?.text ?? me.value?.fields.title ?? n.view.viewCode), ye = I(() => D.value ? n.view.detail?.title(D.value) ?? ve.value : ve.value), be = I(() => T.value?.pages ?? 0);
|
|
4008
|
+
function xe(e) {
|
|
4009
|
+
return k(A(e), r);
|
|
3772
4010
|
}
|
|
3773
4011
|
return t({
|
|
3774
|
-
refresh:
|
|
3775
|
-
closeDetail:
|
|
3776
|
-
}), (t, i) => (
|
|
4012
|
+
refresh: w.refresh,
|
|
4013
|
+
closeDetail: w.closeDetail
|
|
4014
|
+
}), (t, i) => (G(), z("section", {
|
|
3777
4015
|
ref_key: "host",
|
|
3778
4016
|
ref: a,
|
|
3779
4017
|
class: "readonly-record-workspace",
|
|
3780
|
-
"aria-label":
|
|
3781
|
-
}, [
|
|
4018
|
+
"aria-label": ve.value
|
|
4019
|
+
}, [H(_r, {
|
|
3782
4020
|
"explorer-count": 0,
|
|
3783
|
-
"detail-surface": !!
|
|
3784
|
-
"list-surface": !
|
|
4021
|
+
"detail-surface": !!J(D) && _e.value,
|
|
4022
|
+
"list-surface": !J(D) || !_e.value
|
|
3785
4023
|
}, {
|
|
3786
|
-
default:
|
|
3787
|
-
title:
|
|
3788
|
-
subtitle:
|
|
4024
|
+
default: Y(() => [H(qt, {
|
|
4025
|
+
title: ve.value,
|
|
4026
|
+
subtitle: me.value?.subtitle?.text,
|
|
3789
4027
|
"title-action-icon": "reload",
|
|
3790
|
-
"title-action-title":
|
|
3791
|
-
"title-action-disabled":
|
|
4028
|
+
"title-action-title": J(r).t("platform.read-view.refresh", "刷新"),
|
|
4029
|
+
"title-action-disabled": J(E),
|
|
3792
4030
|
"quick-search-visible": e.quickSearch && (_.value?.quickSearch.enabled ?? !0),
|
|
3793
4031
|
"quick-search-value": pe.value,
|
|
3794
|
-
"quick-search-placeholder":
|
|
3795
|
-
"quick-search-disabled":
|
|
3796
|
-
columns:
|
|
3797
|
-
rows:
|
|
4032
|
+
"quick-search-placeholder": me.value?.searchPlaceholder,
|
|
4033
|
+
"quick-search-disabled": J(E),
|
|
4034
|
+
columns: he.value,
|
|
4035
|
+
rows: J(T)?.records ?? [],
|
|
3798
4036
|
"row-key": (t) => e.view.recordKey(t),
|
|
3799
|
-
"selected-row-key":
|
|
4037
|
+
"selected-row-key": J(D) ? e.view.recordKey(J(D)) : void 0,
|
|
3800
4038
|
"clickable-rows": !!e.view.detail,
|
|
3801
|
-
"table-visible": !
|
|
4039
|
+
"table-visible": !J(E) && !J(ce) && !!J(T)?.records.length,
|
|
3802
4040
|
pageable: "",
|
|
3803
|
-
total:
|
|
3804
|
-
"total-known":
|
|
3805
|
-
"page-num":
|
|
3806
|
-
"page-size":
|
|
3807
|
-
pages:
|
|
3808
|
-
"pagination-disabled":
|
|
3809
|
-
onTitleAction:
|
|
4041
|
+
total: J(T)?.total ?? 0,
|
|
4042
|
+
"total-known": J(T)?.totalKnown ?? !0,
|
|
4043
|
+
"page-num": J(de),
|
|
4044
|
+
"page-size": J(fe),
|
|
4045
|
+
pages: be.value,
|
|
4046
|
+
"pagination-disabled": J(E) || !J(T),
|
|
4047
|
+
onTitleAction: J(w).refresh,
|
|
3810
4048
|
"onUpdate:quickSearchValue": i[5] ||= (e) => pe.value = e,
|
|
3811
|
-
onQuickSearch:
|
|
3812
|
-
onPageChange:
|
|
3813
|
-
onPageSizeChange:
|
|
3814
|
-
onRowClick: i[6] ||= (e) =>
|
|
3815
|
-
},
|
|
3816
|
-
persistentQueries:
|
|
3817
|
-
controls:
|
|
4049
|
+
onQuickSearch: J(w).search,
|
|
4050
|
+
onPageChange: J(w).goPage,
|
|
4051
|
+
onPageSizeChange: J(w).resizePage,
|
|
4052
|
+
onRowClick: i[6] ||= (e) => J(w).select(e)
|
|
4053
|
+
}, ea({
|
|
4054
|
+
persistentQueries: Y(() => [H(Un, {
|
|
4055
|
+
controls: te.value,
|
|
3818
4056
|
"reset-key": `${g.value}:${u.value}`,
|
|
3819
|
-
disabled:
|
|
4057
|
+
disabled: J(E),
|
|
3820
4058
|
valid: x.value,
|
|
3821
4059
|
"onUpdate:values": i[0] ||= (e, t) => c.value = {
|
|
3822
4060
|
...c.value,
|
|
@@ -3826,25 +4064,25 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ Cr(/* @__PURE__ */ z({
|
|
|
3826
4064
|
...l.value,
|
|
3827
4065
|
[e]: t
|
|
3828
4066
|
},
|
|
3829
|
-
onApply:
|
|
3830
|
-
onReset:
|
|
4067
|
+
onApply: ne,
|
|
4068
|
+
onReset: re
|
|
3831
4069
|
}, null, 8, [
|
|
3832
4070
|
"controls",
|
|
3833
4071
|
"reset-key",
|
|
3834
4072
|
"disabled",
|
|
3835
4073
|
"valid"
|
|
3836
|
-
]),
|
|
3837
|
-
queryControls:
|
|
4074
|
+
]), ua(t.$slots, "queries", {}, void 0, !0)]),
|
|
4075
|
+
queryControls: Y(() => [H(Tr, {
|
|
3838
4076
|
"sort-visible": !!_.value,
|
|
3839
4077
|
"sort-fields": _.value?.fields.filter((e) => e.sortable) ?? [],
|
|
3840
4078
|
sorts: f.value,
|
|
3841
4079
|
"filter-visible": v.value !== "NONE" && y.value.some((e) => v.value !== "FLAT_AND" || !e.persistentControl),
|
|
3842
|
-
"filter-title": v.value === "FLAT_AND" ?
|
|
4080
|
+
"filter-title": v.value === "FLAT_AND" ? J(r).t("platform.screen.RecordQueryListPanel.more-filters", "更多筛选") : J(r).t("platform.screen.RecordQueryListPanel.advanced-filters", "高级筛选"),
|
|
3843
4081
|
expanded: p.value,
|
|
3844
|
-
count:
|
|
3845
|
-
disabled:
|
|
4082
|
+
count: J(Wr)(d.value),
|
|
4083
|
+
disabled: J(E),
|
|
3846
4084
|
onSortChange: i[2] ||= (e) => f.value = e,
|
|
3847
|
-
onToggle:
|
|
4085
|
+
onToggle: oe
|
|
3848
4086
|
}, null, 8, [
|
|
3849
4087
|
"sort-visible",
|
|
3850
4088
|
"sort-fields",
|
|
@@ -3855,24 +4093,24 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ Cr(/* @__PURE__ */ z({
|
|
|
3855
4093
|
"count",
|
|
3856
4094
|
"disabled"
|
|
3857
4095
|
])]),
|
|
3858
|
-
operations:
|
|
3859
|
-
beforeTable:
|
|
4096
|
+
operations: Y(() => [ua(t.$slots, "operations", { refresh: J(w).refresh }, void 0, !0)]),
|
|
4097
|
+
beforeTable: Y(() => [h.value ? (G(), L(J($t), {
|
|
3860
4098
|
key: 0,
|
|
3861
4099
|
message: h.value
|
|
3862
|
-
}, null, 8, ["message"])) :
|
|
4100
|
+
}, null, 8, ["message"])) : R("v-if", !0), J(ce) ? (G(), L(J($t), {
|
|
3863
4101
|
key: 1,
|
|
3864
|
-
message:
|
|
3865
|
-
}, null, 8, ["message"])) :
|
|
4102
|
+
message: xe(J(ce))
|
|
4103
|
+
}, null, 8, ["message"])) : J(E) ? (G(), L(J(rn), { key: 2 })) : J(T)?.records.length ? R("v-if", !0) : (G(), L(J(Ji), {
|
|
3866
4104
|
key: 3,
|
|
3867
|
-
description:
|
|
4105
|
+
description: J(r).t("platform.read-view.empty", "暂无符合条件的记录")
|
|
3868
4106
|
}, null, 8, ["description"]))]),
|
|
3869
|
-
cell:
|
|
3870
|
-
column:
|
|
4107
|
+
cell: Y(({ column: n, record: r }) => [ua(t.$slots, "cell", {
|
|
4108
|
+
column: he.value.find((e) => e.key === n.key),
|
|
3871
4109
|
record: r
|
|
3872
|
-
}, () => [
|
|
3873
|
-
column:
|
|
4110
|
+
}, () => [H(ai, {
|
|
4111
|
+
column: he.value.find((e) => e.key === n.key),
|
|
3874
4112
|
record: r,
|
|
3875
|
-
reading:
|
|
4113
|
+
reading: J(T)?.businessContent?.readings[e.view.recordKey(r)]?.[n.key]
|
|
3876
4114
|
}, null, 8, [
|
|
3877
4115
|
"column",
|
|
3878
4116
|
"record",
|
|
@@ -3881,18 +4119,18 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ Cr(/* @__PURE__ */ z({
|
|
|
3881
4119
|
_: 2
|
|
3882
4120
|
}, [m.value ? {
|
|
3883
4121
|
name: "conditions",
|
|
3884
|
-
fn:
|
|
4122
|
+
fn: Y(() => [ha(B("section", null, [(G(), L(fn, {
|
|
3885
4123
|
key: g.value,
|
|
3886
4124
|
fields: y.value,
|
|
3887
|
-
conjuncts: [...n.query?.criteria ? [n.query.criteria] : [], ...
|
|
4125
|
+
conjuncts: [...n.query?.criteria ? [n.query.criteria] : [], ...ee.value],
|
|
3888
4126
|
"excluded-field-names": v.value === "FLAT_AND" ? b.value.map((e) => e.name) : [],
|
|
3889
4127
|
"option-items-by-field": e.queryOptionsByField,
|
|
3890
4128
|
"reference-contexts": {},
|
|
3891
4129
|
"reference-picker-of": e.referencePickerOf,
|
|
3892
|
-
disabled:
|
|
4130
|
+
disabled: J(E),
|
|
3893
4131
|
composition: v.value === "FLAT_AND" ? "FLAT_AND" : "TREE",
|
|
3894
|
-
onApply:
|
|
3895
|
-
onClear: i[3] ||= (e) =>
|
|
4132
|
+
onApply: se,
|
|
4133
|
+
onClear: i[3] ||= (e) => se(void 0),
|
|
3896
4134
|
onValidation: i[4] ||= (e) => h.value = e
|
|
3897
4135
|
}, null, 8, [
|
|
3898
4136
|
"fields",
|
|
@@ -3902,7 +4140,7 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ Cr(/* @__PURE__ */ z({
|
|
|
3902
4140
|
"reference-picker-of",
|
|
3903
4141
|
"disabled",
|
|
3904
4142
|
"composition"
|
|
3905
|
-
]))], 512), [[
|
|
4143
|
+
]))], 512), [[pa, p.value]])]),
|
|
3906
4144
|
key: "0"
|
|
3907
4145
|
} : void 0]), 1032, [
|
|
3908
4146
|
"title",
|
|
@@ -3929,32 +4167,32 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ Cr(/* @__PURE__ */ z({
|
|
|
3929
4167
|
"onQuickSearch",
|
|
3930
4168
|
"onPageChange",
|
|
3931
4169
|
"onPageSizeChange"
|
|
3932
|
-
]),
|
|
3933
|
-
open: !!
|
|
3934
|
-
docked:
|
|
3935
|
-
title:
|
|
4170
|
+
]), H(bi, {
|
|
4171
|
+
open: !!J(D),
|
|
4172
|
+
docked: _e.value,
|
|
4173
|
+
title: ye.value,
|
|
3936
4174
|
dismissal: "dismissible",
|
|
3937
|
-
onClose:
|
|
3938
|
-
},
|
|
3939
|
-
default:
|
|
4175
|
+
onClose: J(w).closeDetail
|
|
4176
|
+
}, ea({
|
|
4177
|
+
default: Y(() => [J(O) ? (G(), L(J($t), {
|
|
3940
4178
|
key: 0,
|
|
3941
|
-
message:
|
|
3942
|
-
}, null, 8, ["message"])) :
|
|
3943
|
-
record:
|
|
3944
|
-
fields:
|
|
3945
|
-
}, null, 8, ["record", "fields"]),
|
|
3946
|
-
record:
|
|
3947
|
-
detail:
|
|
3948
|
-
refresh:
|
|
3949
|
-
}, void 0, !0)], 64)) :
|
|
4179
|
+
message: xe(J(O))
|
|
4180
|
+
}, null, 8, ["message"])) : J(ue) ? (G(), L(J(rn), { key: 1 })) : J(D) && J(le) ? (G(), z(F, { key: 2 }, [H(or, {
|
|
4181
|
+
record: J(le),
|
|
4182
|
+
fields: ge.value
|
|
4183
|
+
}, null, 8, ["record", "fields"]), ua(t.$slots, "detail", {
|
|
4184
|
+
record: J(D),
|
|
4185
|
+
detail: J(le),
|
|
4186
|
+
refresh: J(w).refresh
|
|
4187
|
+
}, void 0, !0)], 64)) : R("v-if", !0)]),
|
|
3950
4188
|
_: 2
|
|
3951
|
-
}, [
|
|
4189
|
+
}, [J(D) && J(le) && !J(ue) && !J(O) ? {
|
|
3952
4190
|
name: "operation",
|
|
3953
|
-
fn:
|
|
3954
|
-
record:
|
|
3955
|
-
detail:
|
|
3956
|
-
refresh:
|
|
3957
|
-
close:
|
|
4191
|
+
fn: Y(() => [ua(t.$slots, "detailOperations", {
|
|
4192
|
+
record: J(D),
|
|
4193
|
+
detail: J(le),
|
|
4194
|
+
refresh: J(w).refresh,
|
|
4195
|
+
close: J(w).closeDetail
|
|
3958
4196
|
}, void 0, !0)]),
|
|
3959
4197
|
key: "0"
|
|
3960
4198
|
} : void 0]), 1032, [
|
|
@@ -3964,8 +4202,322 @@ var ll = ["aria-label"], ul = /*#__PURE__*/ Cr(/* @__PURE__ */ z({
|
|
|
3964
4202
|
"onClose"
|
|
3965
4203
|
])]),
|
|
3966
4204
|
_: 3
|
|
3967
|
-
}, 8, ["detail-surface", "list-surface"])], 8,
|
|
4205
|
+
}, 8, ["detail-surface", "list-surface"])], 8, Ll));
|
|
3968
4206
|
}
|
|
3969
4207
|
}), [["__scopeId", "data-v-e13b15ec"]]);
|
|
3970
4208
|
//#endregion
|
|
3971
|
-
|
|
4209
|
+
//#region src/app/useExternalLoginHost.ts
|
|
4210
|
+
function zl(e) {
|
|
4211
|
+
let t = j(), n = K(), r = K(!1), i, a = K(), o = K(!1);
|
|
4212
|
+
async function s() {
|
|
4213
|
+
let r = a.value;
|
|
4214
|
+
if (r && !o.value) {
|
|
4215
|
+
o.value = !0, n.value = void 0;
|
|
4216
|
+
try {
|
|
4217
|
+
let i = await e.client.confirm(r.pending.providerId, {
|
|
4218
|
+
state: r.pending.state,
|
|
4219
|
+
browserProof: r.pending.browserProof
|
|
4220
|
+
});
|
|
4221
|
+
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 = () => $c(i, t);
|
|
4222
|
+
} catch (e) {
|
|
4223
|
+
n.value = () => k(A(e), t);
|
|
4224
|
+
} finally {
|
|
4225
|
+
o.value = !1;
|
|
4226
|
+
}
|
|
4227
|
+
}
|
|
4228
|
+
}
|
|
4229
|
+
async function c() {
|
|
4230
|
+
r.value = !0, n.value = void 0;
|
|
4231
|
+
try {
|
|
4232
|
+
await e.router.isReady();
|
|
4233
|
+
let r = e.router.currentRoute.value, i = e.callbackPath ?? "/", o = r.path === i ? Qc(r.query) : void 0;
|
|
4234
|
+
if (!o) return !1;
|
|
4235
|
+
let s = o.pending;
|
|
4236
|
+
if (await e.router.replace({
|
|
4237
|
+
path: i,
|
|
4238
|
+
query: s?.purpose === "login" && s.tenantId ? { _muyunTenantId: s.tenantId } : {},
|
|
4239
|
+
hash: ""
|
|
4240
|
+
}), !s) return !1;
|
|
4241
|
+
let c = await e.client.complete(s.providerId, {
|
|
4242
|
+
state: s.state,
|
|
4243
|
+
browserProof: s.browserProof,
|
|
4244
|
+
parameters: o.parameters
|
|
4245
|
+
});
|
|
4246
|
+
return c.status === "confirmationRequired" && c.confirmation && s.purpose === "login" ? (a.value = {
|
|
4247
|
+
pending: s,
|
|
4248
|
+
confirmation: c.confirmation
|
|
4249
|
+
}, !0) : c.status === "succeeded" && c.login ? (await e.onAuthenticated(c.login), !0) : c.status === "succeeded" ? (ir(t.t("platform.external-login.bound", "已绑定 {provider}", { provider: c.binding?.providerTitle ?? "" })), !1) : (n.value = () => $c(c, t), s.purpose === "login" && !e.signedIn() || (Wi(n.value()), !1));
|
|
4250
|
+
} catch (r) {
|
|
4251
|
+
return n.value = () => k(A(r), t), !e.signedIn() || (Wi(n.value()), !1);
|
|
4252
|
+
} finally {
|
|
4253
|
+
r.value = !1;
|
|
4254
|
+
}
|
|
4255
|
+
}
|
|
4256
|
+
return {
|
|
4257
|
+
client: e.client,
|
|
4258
|
+
confirmation: I(() => a.value?.confirmation),
|
|
4259
|
+
confirming: I(() => o.value),
|
|
4260
|
+
confirmProvisioning: s,
|
|
4261
|
+
cancelProvisioning() {
|
|
4262
|
+
o.value || (a.value = void 0, n.value = void 0);
|
|
4263
|
+
},
|
|
4264
|
+
error: I(() => n.value?.()),
|
|
4265
|
+
completing: I(() => r.value),
|
|
4266
|
+
completeReturn() {
|
|
4267
|
+
return i ||= c().finally(() => {
|
|
4268
|
+
i = void 0;
|
|
4269
|
+
}), i;
|
|
4270
|
+
}
|
|
4271
|
+
};
|
|
4272
|
+
}
|
|
4273
|
+
//#endregion
|
|
4274
|
+
//#region src/app/ExternalIdentityBindings.vue?vue&type=script&setup=true&lang.ts
|
|
4275
|
+
var Bl = {
|
|
4276
|
+
key: 0,
|
|
4277
|
+
class: "external-bindings"
|
|
4278
|
+
}, Vl = {
|
|
4279
|
+
key: 1,
|
|
4280
|
+
class: "external-bindings-error"
|
|
4281
|
+
}, Hl = {
|
|
4282
|
+
key: 2,
|
|
4283
|
+
class: "external-bindings-list"
|
|
4284
|
+
}, Ul = { class: "external-bindings-provider" }, Wl = { class: "external-bindings-account" }, Gl = { class: "external-bindings-provider" }, Kl = { class: "external-bindings-account muted" }, ql = /*#__PURE__*/ P(/* @__PURE__ */ W({
|
|
4285
|
+
name: "ExternalIdentityBindings",
|
|
4286
|
+
__name: "ExternalIdentityBindings",
|
|
4287
|
+
props: {
|
|
4288
|
+
client: {},
|
|
4289
|
+
token: {}
|
|
4290
|
+
},
|
|
4291
|
+
setup(e) {
|
|
4292
|
+
let t = e, n = j(), r = K();
|
|
4293
|
+
function i() {
|
|
4294
|
+
r.value && Xc(r.value.state), r.value = void 0;
|
|
4295
|
+
}
|
|
4296
|
+
let a = K(), o = K(!1), s = K(!1), c = K();
|
|
4297
|
+
sa(l);
|
|
4298
|
+
async function l() {
|
|
4299
|
+
c.value = void 0;
|
|
4300
|
+
try {
|
|
4301
|
+
a.value = await t.client.identities(t.token);
|
|
4302
|
+
} catch (e) {
|
|
4303
|
+
if (e instanceof xn && e.status === 404) {
|
|
4304
|
+
o.value = !0;
|
|
4305
|
+
return;
|
|
4306
|
+
}
|
|
4307
|
+
c.value = () => k(A(e), n);
|
|
4308
|
+
}
|
|
4309
|
+
}
|
|
4310
|
+
async function u(e) {
|
|
4311
|
+
s.value = !0, c.value = void 0;
|
|
4312
|
+
try {
|
|
4313
|
+
i();
|
|
4314
|
+
let n = await t.client.startBind(e.providerId, t.token);
|
|
4315
|
+
Yc(n, {
|
|
4316
|
+
providerId: e.providerId,
|
|
4317
|
+
purpose: "bind"
|
|
4318
|
+
}), n.qrCode ? (r.value = n, s.value = !1) : Zc(n.authorizationUrl);
|
|
4319
|
+
} catch (e) {
|
|
4320
|
+
c.value = () => k(A(e), n), s.value = !1;
|
|
4321
|
+
}
|
|
4322
|
+
}
|
|
4323
|
+
async function d(e) {
|
|
4324
|
+
if (await rt({
|
|
4325
|
+
title: n.t("platform.screen.ExternalIdentityBindings.unbind-title", "解除外部账号绑定"),
|
|
4326
|
+
content: n.t("platform.screen.ExternalIdentityBindings.unbind-content", "解除后将无法再通过 {provider} 登录当前账号。", { provider: e.providerTitle }),
|
|
4327
|
+
danger: !0
|
|
4328
|
+
}, n)) {
|
|
4329
|
+
s.value = !0, c.value = void 0;
|
|
4330
|
+
try {
|
|
4331
|
+
await t.client.unbind(e.id, t.token), await l();
|
|
4332
|
+
} catch (e) {
|
|
4333
|
+
c.value = () => k(A(e), n);
|
|
4334
|
+
} finally {
|
|
4335
|
+
s.value = !1;
|
|
4336
|
+
}
|
|
4337
|
+
}
|
|
4338
|
+
}
|
|
4339
|
+
return (e, t) => !o.value && (a.value?.bindings.length || a.value?.bindableProviders.length || c.value) ? (G(), z("section", Bl, [
|
|
4340
|
+
r.value ? (G(), L(ul, {
|
|
4341
|
+
key: r.value.state,
|
|
4342
|
+
start: r.value,
|
|
4343
|
+
onClose: i
|
|
4344
|
+
}, null, 8, ["start"])) : R("v-if", !0),
|
|
4345
|
+
B("h3", null, q(J(n).t("platform.screen.ExternalIdentityBindings.title", "外部账号绑定")), 1),
|
|
4346
|
+
c.value ? (G(), z("p", Vl, q(c.value()), 1)) : R("v-if", !0),
|
|
4347
|
+
a.value ? (G(), z("ul", Hl, [(G(!0), z(F, null, la(a.value.bindings, (e) => (G(), z("li", { key: e.id }, [
|
|
4348
|
+
B("span", Ul, q(e.providerTitle), 1),
|
|
4349
|
+
B("span", Wl, q(e.displayName || e.externalUserId), 1),
|
|
4350
|
+
H(J(M), {
|
|
4351
|
+
size: "small",
|
|
4352
|
+
danger: "",
|
|
4353
|
+
disabled: s.value,
|
|
4354
|
+
onClick: (t) => d(e)
|
|
4355
|
+
}, {
|
|
4356
|
+
default: Y(() => [V(q(J(n).t("platform.screen.ExternalIdentityBindings.unbind", "解除绑定")), 1)]),
|
|
4357
|
+
_: 1
|
|
4358
|
+
}, 8, ["disabled", "onClick"])
|
|
4359
|
+
]))), 128)), (G(!0), z(F, null, la(a.value.bindableProviders, (e) => (G(), z("li", { key: e.providerId }, [
|
|
4360
|
+
B("span", Gl, q(e.title), 1),
|
|
4361
|
+
B("span", Kl, q(J(n).t("platform.screen.ExternalIdentityBindings.not-bound", "未绑定")), 1),
|
|
4362
|
+
H(J(M), {
|
|
4363
|
+
size: "small",
|
|
4364
|
+
loading: s.value,
|
|
4365
|
+
onClick: (t) => u(e)
|
|
4366
|
+
}, {
|
|
4367
|
+
default: Y(() => [V(q(J(n).t("platform.screen.ExternalIdentityBindings.bind", "去绑定")), 1)]),
|
|
4368
|
+
_: 1
|
|
4369
|
+
}, 8, ["loading", "onClick"])
|
|
4370
|
+
]))), 128))])) : R("v-if", !0)
|
|
4371
|
+
])) : R("v-if", !0);
|
|
4372
|
+
}
|
|
4373
|
+
}), [["__scopeId", "data-v-b3d09e12"]]), Jl = {
|
|
4374
|
+
key: 0,
|
|
4375
|
+
class: "profile-loading"
|
|
4376
|
+
}, Yl = {
|
|
4377
|
+
key: 0,
|
|
4378
|
+
class: "profile-hero"
|
|
4379
|
+
}, Xl = { class: "profile-avatar" }, Zl = { class: "profile-identity" }, Ql = { class: "profile-kicker" }, $l = { class: "profile-number" }, eu = { class: "profile-tags" }, tu = { class: "profile-account" }, nu = {
|
|
4380
|
+
key: 1,
|
|
4381
|
+
class: "profile-body"
|
|
4382
|
+
}, ru = { class: "profile-card profile-card--readonly" }, iu = { class: "profile-card-heading" }, au = { class: "profile-details" }, ou = { class: "profile-card profile-card--editable" }, su = { class: "profile-card-heading" }, cu = { class: "profile-contact-fields" }, lu = {
|
|
4383
|
+
key: 0,
|
|
4384
|
+
class: "profile-hint"
|
|
4385
|
+
}, uu = {
|
|
4386
|
+
key: 2,
|
|
4387
|
+
class: "profile-empty-state"
|
|
4388
|
+
}, du = { class: "profile-empty-monogram" }, fu = {
|
|
4389
|
+
key: 2,
|
|
4390
|
+
class: "profile-error"
|
|
4391
|
+
}, pu = /*#__PURE__*/ P(/* @__PURE__ */ W({
|
|
4392
|
+
name: "CurrentUserProfileDialog",
|
|
4393
|
+
__name: "CurrentUserProfileDialog",
|
|
4394
|
+
props: {
|
|
4395
|
+
open: {
|
|
4396
|
+
type: Boolean,
|
|
4397
|
+
default: !1
|
|
4398
|
+
},
|
|
4399
|
+
profile: { default: void 0 },
|
|
4400
|
+
loading: {
|
|
4401
|
+
type: Boolean,
|
|
4402
|
+
default: !1
|
|
4403
|
+
},
|
|
4404
|
+
saving: {
|
|
4405
|
+
type: Boolean,
|
|
4406
|
+
default: !1
|
|
4407
|
+
},
|
|
4408
|
+
error: { default: void 0 },
|
|
4409
|
+
externalLoginClient: { default: void 0 },
|
|
4410
|
+
authToken: { default: void 0 }
|
|
4411
|
+
},
|
|
4412
|
+
emits: ["close", "submit"],
|
|
4413
|
+
setup(e, { emit: t }) {
|
|
4414
|
+
let n = j(), r = e, i = t, a = K(""), o = K(""), s = K();
|
|
4415
|
+
ma(() => r.profile, (e) => {
|
|
4416
|
+
a.value = e?.employee?.mobile ?? "", o.value = e?.employee?.email ?? "", s.value = e?.employee?.avatarAssetId;
|
|
4417
|
+
}, { immediate: !0 });
|
|
4418
|
+
let c = I(() => r.profile?.employee), l = I(() => Ot({ moduleAlias: "iam.employee" })), u = I(() => c.value?.positions ?? []), d = {
|
|
4419
|
+
fieldRef: { fieldName: "avatarAssetId" },
|
|
4420
|
+
allowedMediaTypes: [
|
|
4421
|
+
"image/png",
|
|
4422
|
+
"image/jpeg",
|
|
4423
|
+
"image/gif",
|
|
4424
|
+
"image/webp"
|
|
4425
|
+
],
|
|
4426
|
+
maxFileSizeBytes: 1048576,
|
|
4427
|
+
maxFiles: 1,
|
|
4428
|
+
storagePolicy: "DATABASE_INLINE",
|
|
4429
|
+
uploadAvailable: !0,
|
|
4430
|
+
readAvailable: !0
|
|
4431
|
+
}, f = I(() => ({
|
|
4432
|
+
id: c.value?.id,
|
|
4433
|
+
avatarAssetId: s.value
|
|
4434
|
+
}));
|
|
4435
|
+
return (t, r) => (G(), L(J(un), {
|
|
4436
|
+
open: e.open,
|
|
4437
|
+
title: J(n).t("platform.screen.CurrentUserProfileDialog.my-profile", "个人信息"),
|
|
4438
|
+
width: 640,
|
|
4439
|
+
class: "current-user-profile-dialog",
|
|
4440
|
+
"confirm-text": c.value?.contactEditable ? J(n).t("platform.screen.CurrentUserProfileDialog.save-contact-details", "保存联系方式") : J(n).t("platform.screen.CurrentUserProfileDialog.close", "关闭"),
|
|
4441
|
+
"confirm-loading": e.saving,
|
|
4442
|
+
"confirm-disabled": e.loading,
|
|
4443
|
+
onConfirm: r[3] ||= (e) => c.value?.contactEditable ? i("submit", {
|
|
4444
|
+
mobile: a.value,
|
|
4445
|
+
email: o.value,
|
|
4446
|
+
avatarAssetId: s.value
|
|
4447
|
+
}) : i("close"),
|
|
4448
|
+
onCancel: r[4] ||= (e) => i("close")
|
|
4449
|
+
}, {
|
|
4450
|
+
default: Y(() => [e.loading ? (G(), z("p", Jl, q(J(n).t("platform.screen.CurrentUserProfileDialog.loading-your-profile", "正在整理你的资料…")), 1)) : (G(), z(F, { key: 1 }, [
|
|
4451
|
+
c.value ? (G(), z("section", Yl, [
|
|
4452
|
+
B("div", Xl, [H(J($n), {
|
|
4453
|
+
"hide-label": "",
|
|
4454
|
+
label: J(n).t("platform.screen.CurrentUserProfileDialog.avatar", "头像"),
|
|
4455
|
+
value: s.value,
|
|
4456
|
+
record: f.value,
|
|
4457
|
+
context: l.value,
|
|
4458
|
+
definition: d,
|
|
4459
|
+
disabled: !c.value.contactEditable || e.saving,
|
|
4460
|
+
"form-session-key": c.value.id,
|
|
4461
|
+
"upload-hint": J(n).t("platform.screen.CurrentUserProfileDialog.png-jpg-gif-and-webp-are-supported-up", "支持 PNG、JPG、GIF、WebP,文件不超过 1024 KB。"),
|
|
4462
|
+
"onUpdate:value": r[0] ||= (e) => s.value = e
|
|
4463
|
+
}, null, 8, [
|
|
4464
|
+
"label",
|
|
4465
|
+
"value",
|
|
4466
|
+
"record",
|
|
4467
|
+
"context",
|
|
4468
|
+
"disabled",
|
|
4469
|
+
"form-session-key",
|
|
4470
|
+
"upload-hint"
|
|
4471
|
+
])]),
|
|
4472
|
+
B("div", Zl, [
|
|
4473
|
+
B("p", Ql, q(J(n).t("platform.screen.CurrentUserProfileDialog.employee-profile", "职员档案")), 1),
|
|
4474
|
+
B("h2", null, q(c.value.title || J(n).t("platform.screen.CurrentUserProfileDialog.unnamed-employee", "未命名职员")), 1),
|
|
4475
|
+
B("p", $l, q(c.value.employeeNo || J(n).t("platform.screen.CurrentUserProfileDialog.no-employee-number-assigned", "尚未分配员工号")), 1),
|
|
4476
|
+
B("div", eu, [B("span", null, q(c.value.organizationTitle || c.value.organizationId || J(n).t("platform.screen.CurrentUserProfileDialog.no-organization-assigned", "未分配机构")), 1), B("span", null, q(c.value.departmentTitle || c.value.departmentId || J(n).t("platform.screen.CurrentUserProfileDialog.no-department-assigned", "未分配部门")), 1)])
|
|
4477
|
+
]),
|
|
4478
|
+
B("aside", tu, [
|
|
4479
|
+
B("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.sign-in-account", "登录账号")), 1),
|
|
4480
|
+
B("strong", null, q(e.profile?.username || "—"), 1),
|
|
4481
|
+
B("small", null, q(e.profile?.timeZone || J(n).t("platform.screen.CurrentUserProfileDialog.system-default-time-zone", "系统默认时区")), 1)
|
|
4482
|
+
])
|
|
4483
|
+
])) : R("v-if", !0),
|
|
4484
|
+
c.value ? (G(), z("section", nu, [B("div", ru, [B("div", iu, [B("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.employment-details", "任职信息")), 1), B("small", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.maintained-by-the-organization-administrator", "由组织管理员维护")), 1)]), B("dl", au, [
|
|
4485
|
+
B("dt", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.organization-department", "机构 / 部门")), 1),
|
|
4486
|
+
B("dd", null, q(c.value.organizationTitle || c.value.organizationId || "—") + " / " + q(c.value.departmentTitle || c.value.departmentId || "—"), 1),
|
|
4487
|
+
B("dt", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.position", "岗位")), 1),
|
|
4488
|
+
B("dd", null, q(u.value.map((e) => `${e.title || e.id || "—"}${e.primary ? J(n).t("platform.screen.CurrentUserProfileDialog.primary", "(主岗)") : ""}`).join("、") || "—"), 1)
|
|
4489
|
+
])]), B("div", ou, [
|
|
4490
|
+
B("div", su, [B("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.contact-details", "联系方式")), 1), B("small", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.only-you-can-edit-these-details", "仅你本人可修改")), 1)]),
|
|
4491
|
+
B("div", cu, [B("label", null, [B("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.mobile-number", "手机号")), 1), H(J(N), {
|
|
4492
|
+
value: a.value,
|
|
4493
|
+
disabled: !c.value.contactEditable || e.saving,
|
|
4494
|
+
"onUpdate:value": r[1] ||= (e) => a.value = e
|
|
4495
|
+
}, null, 8, ["value", "disabled"])]), B("label", null, [B("span", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.email", "邮箱")), 1), H(J(N), {
|
|
4496
|
+
value: o.value,
|
|
4497
|
+
disabled: !c.value.contactEditable || e.saving,
|
|
4498
|
+
"onUpdate:value": r[2] ||= (e) => o.value = e
|
|
4499
|
+
}, null, 8, ["value", "disabled"])])]),
|
|
4500
|
+
c.value.contactEditable ? R("v-if", !0) : (G(), z("p", lu, q(J(n).t("platform.screen.CurrentUserProfileDialog.this-employee-is-disabled-contact-details-cannot-be", "当前职员已停用,联系方式不能自助修改。")), 1))
|
|
4501
|
+
])])) : (G(), z("section", uu, [
|
|
4502
|
+
B("span", du, q((e.profile?.username || "?").slice(0, 1).toUpperCase()), 1),
|
|
4503
|
+
B("h2", null, q(e.profile?.username || J(n).t("platform.screen.CurrentUserProfileDialog.current-account", "当前账号")), 1),
|
|
4504
|
+
B("p", null, q(J(n).t("platform.screen.CurrentUserProfileDialog.this-account-is-not-linked-to-an-employee", "此账号尚未绑定职员档案。请在职员管理中完成绑定后维护个人资料。")), 1)
|
|
4505
|
+
])),
|
|
4506
|
+
e.externalLoginClient && e.authToken && e.open ? (G(), L(ql, {
|
|
4507
|
+
key: 3,
|
|
4508
|
+
client: e.externalLoginClient,
|
|
4509
|
+
token: e.authToken
|
|
4510
|
+
}, null, 8, ["client", "token"])) : R("v-if", !0)
|
|
4511
|
+
], 64)), e.error ? (G(), z("p", fu, q(e.error), 1)) : R("v-if", !0)]),
|
|
4512
|
+
_: 1
|
|
4513
|
+
}, 8, [
|
|
4514
|
+
"open",
|
|
4515
|
+
"title",
|
|
4516
|
+
"confirm-text",
|
|
4517
|
+
"confirm-loading",
|
|
4518
|
+
"confirm-disabled"
|
|
4519
|
+
]));
|
|
4520
|
+
}
|
|
4521
|
+
}), [["__scopeId", "data-v-31653f7f"]]);
|
|
4522
|
+
//#endregion
|
|
4523
|
+
export { xn as AppError, Rc as AppWorkbenchShell, Wn as AssistantCapabilityUsageError, Wt as AssistantConversationInterruptedError, mn as AssistantEffectInterruptedError, Vr as AssistantOperationRejectedError, Vr as OperationRejectedError, Cn as BusinessNotificationPanel, Ol as ChangeOwnPasswordDialog, pu as CurrentUserProfileDialog, dt as DateTimeText, dr as DraftUpdateRejectedError, qr as DrawerOperationBar, _e as DynamicModuleWorkspaceDetailView, ql as ExternalIdentityBindings, Vc as ExternalProvisioningConfirmation, Cr as FileSizeText, Ur as FileTransferUploadCancelledError, lr as FileTransferUploader, Re as LanguageSelector, wl as LoginView, et as ManagementExplorerColumn, _r as ManagementWorkspace, Mt as ModuleContextProvider, kn as ModuleHttpProvider, D as ModuleReferenceRecordDetailBrowser, xr as OperationUsageError, Mc as PlatformAdminOutlet, Ms as PlatformAdminRouteOutlet, Rl as ReadonlyRecordWorkspace, Vi as ReadonlyReferenceValue, Nt as RecordDetailDrawer, Xn as RecordDetailExtensionSection, or as RecordDetailFields, wt as RecordDetailPanel, gi as RecordExplorerPanel, ai as RecordQueryListCell, qt as RecordQueryListSurface, br as ReferencePicker, Ti as ReferencePickerReadError, Pi as ReferenceRecordDetailBrowser, $n as SingleImageFileReferenceField, Qe as StaleAssistantInvocationError, ui as TenantScopeExplorer, Nl as ThemeSkinPreferencesDialog, M as UiButton, yn as UiDataTable, tr as UiDatePicker, jt as UiDropdown, Ji as UiEmpty, $t as UiError, wr as UiIcon, N as UiInput, yt as UiLanguageProvider, hi as UiSearchInput, yi as UiSelect, It as UiSidePanel, Fn as UiSwitch, yr as UiTextArea, Dt as UiThemeProvider, st as UiTree, hn as UiTreeSelect, ls as VueQueryPlugin, Xe as Workbench, Ee as WorkbenchAssistantPanel, i as WorkbenchMenu, Pe as WorkbenchOutlet, ke as WorkspaceViewOutlet, kr as actionResultData, qs as activeTabUrlOf, tc as arrangeLockedMenuTabs, si as boundedAssistantConversationHistory, d as buildWorkbenchMegaMenuModel, Gi as businessContentGenerationBatch, Rr as businessContentLabel, An as businessContentLanguageContext, kt as businessContentLanguages, ar as businessContentPath, Dn as businessContentReadHeaders, At as businessNotificationExpired, fr as canQueryRecycleBin, p as canonicalDynamicModulePath, Bi as changeBusinessContentTranslation, _ as clearAuthToken, ri as codeOperationErrorMessage, Ps as configureAuthenticationRecovery, In as configureModuleContext, Ke as configureModulePageEnhancementContributions, ee as configureModulePageEnhancements, Tl as configureUserPreferencePersistence, we as configureWorkspaceViewContributions, rt as confirmAction, Se as connectAppRealtime, qn as connectRealtimeBusinessEvents, ji as connectRealtimeBusinessNotifications, Ui as connectRealtimeDataChanges, rr as connectRealtimeUserNotifications, y as constructionPlanLimits, zi as contextDataChangeChannel, hr as createAssistantCapabilitySelection, ps as createAssistantConversationClient, Bt as createAssistantDisplayObservations, _i as createAssistantOperationConfirmation, xi as createAssistantSurfaceRegistry, Pn as createAssistantTurnRequester, Ue as createAuthClient, Is as createBackendHttpClient, Oi as createBrowserFileTransferUpload, tt as createCodeTextPresentation, fs as createConstructionPlanClient, ne as createDataChangeDispatcher, Xt as createDataExchangeClient, Ye as createExternalLoginClient, Ze as createHttpClient, Nn as createLanguageContext, Br as createLanguagePreferenceController, le as createLoginContextClient, gn as createManagedDetailRelationClient, qe as createMenuClient, oe as createMenuTab, Ot as createModuleContext, $e as createModuleCrudClient, a as createModulePageEnhancementRegistry, gr as createModuleTreeClient, Kt as createModuleTreeContext, Si as createNavigatorReferenceCrudClient, Qr as createNavigatorReferenceTreeClient, Ei as createOperationConfirmation, te as createPageBootstrapClient, us as createQueryClient, Sn as createRealtimeClient, Dr as createReferenceResolveClient, o as createSessionClient, Ri as createSseParser, fi as createStaticModuleCrudClient, Nr as createStaticModuleTreeClient, Qn as createStaticResourceCrudClient, ei as createStaticResourceTreeClient, Lt as createUuid, re as createWorkbenchMenuNodes, en as createWorkflowAdminClient, an as createWorkflowClient, dn as createWorkflowDefinitionClient, Ve as createWorkspaceViewDescriptor, fe as createWorkspaceViewRegistry, ut as dataChangeChannel, Gt as defaultUiThemeSkinId, Qi as defineWorkspaceView, r as disconnectAppRealtime, he as dismissWorkspaceViewDescriptor, Gn as displayModuleRuntime, ae as dynamicModuleAliasFromPath, b as effectiveAuthToken, Zr as emptyAssistantCapabilityInputSchema, ie as filterWorkbenchMenuNodes, se as findFirstNavigationMenu, u as findWorkbenchMenuNodeById, m as findWorkbenchMenuPath, Ne as firstDeepRootIdOf, x as getMenuNavigationTarget, mi as hasExecutableDetailRelationMutationContract, Pr as hasExecutableDetailRelationQueryContract, Sr as hasRecycleBinAbility, Ii as imConversationMessageChannel, Tn as imMessageSendCommand, On as invokeBusinessNotificationRecordAction, vr as isHttpStreamClient, ws as isPlatformAdminRoutePage, n as isTabMenuTarget, Fr as isTextReference, lt as isUnexpectedPlatformError, pe as isWindowMenuTarget, pi as listDetailWorkspaceMinWidth, wn as loadBusinessContentGeneration, ft as loadBusinessContentHistory, Li as loadBusinessContentReading, En as loadBusinessContentSources, bt as loadBusinessContentTranslationHistory, Tt as loadLanguageCatalog, ve as lookupOperationReceipt, Fi as modelFailureMessage, ii as moduleAbilityCodes, vt as moduleDataChangeChannel, We as modulePageWorkspaceViews, c as normalizeChangeSet, A as normalizeError, Ge as normalizeMenuMineResponse, vi as normalizeModuleListResponse, cr as normalizeModulePageResponse, Hr as normalizeModuleRecord, Di as normalizeModuleTreeResponse, mt as organizationPublicDataChangeChannel, on as organizationPublicNotificationChannel, Zt as originalPresentation, bn as pageActionEntryDescription, Yi as pageActionEntryTitle, ct as pageActionEntryVisible, Mn as pageActionIntent, s as pageAssistantCatalog, ze as pageDescriptorFromUrl, Oe as pageDescriptorToUrl, Fe as pageInstanceKeyOf, ge as pagePublicationDigest, di as parseEmptyAssistantCapabilityInput, T as parseOperationReceiptReference, xs as platformAdminModuleRoutes, Ss as platformAdminRouteLayouts, bs as platformAdminRoutePrefixes, ys as platformAdminRoutes, Ut as platformCodeTextOriginal, oi as platformCodeTextReference, _t as platformErrorCodes, zt as platformLanguageContext, zr as platformPingCommand, gt as prepareBusinessContentTranslation, Jn as presentPlatformError, Mi as presentPlatformInfo, Wi as presentPlatformMessage, ir as presentPlatformSuccess, C as presentWorkbenchRealtimeStatus, tn as presentationLabel, Mr as provideAssistantSurfaceHost, He as provideCurrentUserContext, Bn as provideLanguageContext, li as provideModuleContextConfig, jr as provideRecordReadRefreshGuard, me as provideWorkbenchNavigation, it as provideWorkspaceUnsavedStateRegistrar, Be as provideWorkspaceViewHost, ds as queryKeys, Et as readAssistantAvailability, nt as realtimeDestinations, Ir as realtimeMessageTypes, cn as recordBusinessContentArray, xt as recordBusinessContentText, Qt as recordDataChangeChannel, Pt as recordPresentationLabel, Jt as recordPresentationText, w as refreshModulePageList, Ct as refreshWorkflowRecordActions, ni as registerUiLanguageLocales, cc as removeLockedMenuTabs, sn as requestBusinessContentGeneration, pt as resolveGlobalErrorPresentation, Gr as resolveOperationErrorMessage, be as resolvePageDescriptor, Cs as resolvePlatformAdminRoute, _n as resolvePresentationText, Rt as resolveRecordDetailFields, Yr as resolveRecordQueryListColumns, Zi as resolveRecordReadEntry, Er as resolveWebActionResult, Kn as resolveWebActionResultMessage, Me as resolveWorkspaceView, nn as resourceDataChangeChannel, ln as resourceRecordDataChangeChannel, sr as restoreAssistantOperationReceipt, kc as restoreLockedTabPreference, rc as restoreLockedWorkbenchTabs, Fl as restoreThemeSkinPreference, Js as restoreWorkbenchStartupStateFromUrl, je as routeUrlWithOpenOptions, Vn as runAssistantConversation, Rn as runAssistantStep, Zn as sameAssistantInvocationToken, l as saveAuthSessionId, f as saveAuthToken, Ac as saveLockedTabPreference, Il as saveThemeSkinPreference, St as sessionActivityCommand, h as storedAuthSessionId, S as storedAuthToken, xe as subscribeAppBusinessEvents, g as subscribeAppDataChanges, ye as syncModulePageWorkspaceViewContributions, ce as tabIdentityKeyOf, Ae as tabKeyOf, Ft as tenantPublicDataChangeChannel, Yt as tenantPublicNotificationChannel, Ln as textReferenceMatchesOriginal, Pl as themeSkinPreferenceKey, Ki as translatedPresentation, Le as tryPageDescriptorFromUrl, ci as uiThemeSkinById, Vt as uiThemeSkins, pr as unwrapResponsePayload, oc as updateLockedMenuTabs, ti as uploadedFileId, $r as useAssistantSurfaceHost, Ni as useBusinessContentGenerationBatch, Jr as useBusinessContentReading, Je as useCurrentUserContext, zl as useExternalLoginHost, j as useLanguageContext, Ht as useModuleContext, Hn as useModuleHttpClient, zn as useModuleTreeContext, js as usePageDescriptor, As as usePageRoute, Or as useRecordReadRefreshGuard, Yn as useRecordReadRefreshRevision, Xi as useRecordReadSession, Te as useWorkbenchNavigation, Xr as useWorkspaceDetailSurface, de as useWorkspaceViewHost, De as useWorkspaceViewNavigation, Lr as useWorkspaceViewUnsavedState, vn as userBusinessEventChannel, qi as userBusinessNotificationChannel, k as userFacingErrorMessage, ot as userImMessageChannel, jn as userNotificationChannel, Ar as userPreferences, Ai as webDataChangeKey, er as webDataChangeTypes, Hi as webDataChanges, wi as withHttpHeaders, pn as withLanguageContext, O as withPageInstanceKey, nr as withWebActionResultChanges, at as withoutRecordPresentation };
|