@ximatai/muyun-web-app 0.26.12 → 0.26.13
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-UC4rH4Fn.js +16 -0
- package/dist/BusinessLogListDrawer-BtaXVJKz.js +564 -0
- package/dist/LoginAuditLogView-Cjrp8MKX.js +16 -0
- package/dist/{ModuleActionManagementView-BHEooZ5L.js → ModuleActionManagementView-Dkb35QXc.js} +139 -138
- package/dist/{ModuleGovernanceView-DB3TWlMy.js → ModuleGovernanceView-Dx43QvGf.js} +2878 -2748
- package/dist/RequestErrorLogView-WnGvMWiF.js +16 -0
- package/dist/RoleDetailWorkspaceView-DPDb_QOn.js +1397 -0
- package/dist/RuntimeLogView-BRl4ZDkU.js +330 -0
- package/dist/http-B0TC0pJB.js +157 -0
- package/dist/index.css +1 -1
- package/dist/index.js +505 -475
- package/dist/{moduleGovernanceWorkspaceView-C5pqJOEJ.js → moduleGovernanceWorkspaceView-4V_UW-Bt.js} +2 -2
- package/dist/platform-components-1cvOeHmo.js +17854 -0
- package/dist/platform-workbench-Cu14Xd9d.js +10299 -0
- package/dist/types/consumer/index.d.ts +7 -0
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +2208 -0
- package/dist/types/dynamic-page-runtime/ModulePageBusinessState.vue.d.ts +11 -0
- package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +20 -4
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +4431 -0
- package/dist/types/dynamic-page-runtime/ModulePageHostSession.vue.d.ts +43 -0
- package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +3 -0
- package/dist/types/dynamic-page-runtime/ModuleReferenceRecordDetailBrowser.vue.d.ts +42 -0
- package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/TenantScopeExplorer.vue.d.ts +21 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageActions.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/composables/useModulePageDetailActionRuntime.d.ts +5 -0
- package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/formActionResult.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/index.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/inputValidationActionStatus.d.ts +20 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +7 -3
- package/dist/types/dynamic-page-runtime/modulePageUnsavedState.d.ts +10 -0
- package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/recordMutationPayload.d.ts +3 -2
- package/dist/types/dynamic-page-runtime/referenceRecordProjection.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/sessionViewBindings.d.ts +3 -0
- package/dist/types/dynamic-page-runtime/sourceReferencePickerConfig.d.ts +26 -0
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +1728 -0
- package/dist/types/dynamic-page-runtime/useTenantScopeController.d.ts +18 -0
- package/dist/types/platform-admin-runtime/WorkspaceViewDrawer.vue.d.ts +5 -0
- package/dist/types/platform-admin-runtime/role/roleScopeSelectionClient.d.ts +52 -0
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +5 -2
- package/dist/types/platform-components/DictionaryOptionDialog.vue.d.ts +37 -0
- package/dist/types/platform-components/DictionaryOptionDialogChoiceList.vue.d.ts +21 -0
- package/dist/types/platform-components/DictionaryPicker.vue.d.ts +47 -0
- package/dist/types/platform-components/DictionaryRadioGroup.vue.d.ts +20 -0
- package/dist/types/platform-components/EmployeePicker.vue.d.ts +40 -0
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +1 -1
- package/dist/types/platform-components/ObjectPickerInput.vue.d.ts +34 -0
- package/dist/types/platform-components/QueryCriteriaComposer.vue.d.ts +29 -0
- package/dist/types/platform-components/QueryCriteriaGroupEditor.vue.d.ts +36 -0
- package/dist/types/platform-components/QueryValueEditor.vue.d.ts +33 -0
- package/dist/types/platform-components/ReadonlyReferenceValue.vue.d.ts +11 -0
- package/dist/types/platform-components/RecordContentSectionHeading.vue.d.ts +4 -2
- package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +8 -3
- package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +7 -3
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +3 -5
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +5 -5
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +11 -3
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordPicker.vue.d.ts +2 -2
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +18 -4
- package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +20 -0
- package/dist/types/platform-components/ReferencePicker.vue.d.ts +47 -0
- package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +55 -0
- package/dist/types/platform-components/ScopedTreePicker.vue.d.ts +31 -0
- package/dist/types/platform-components/UserPicker.vue.d.ts +47 -0
- package/dist/types/platform-components/dictionaryOptionDialogModel.d.ts +23 -0
- package/dist/types/platform-components/employeePickerModel.d.ts +19 -0
- package/dist/types/platform-components/identityPickerModel.d.ts +18 -0
- package/dist/types/platform-components/index.d.ts +28 -1
- package/dist/types/platform-components/optionFieldOptionCache.d.ts +1 -1
- package/dist/types/platform-components/queryCriteriaDraft.d.ts +24 -0
- package/dist/types/platform-components/queryReferencePickerProvider.d.ts +19 -0
- package/dist/types/platform-components/readonlyReferenceDisplay.d.ts +19 -0
- package/dist/types/platform-components/recordEditorSessionState.d.ts +11 -4
- package/dist/types/platform-components/recordFormFieldModel.d.ts +28 -2
- package/dist/types/platform-components/recordQueryListColumnModel.d.ts +3 -1
- package/dist/types/platform-components/referencePickerModel.d.ts +103 -0
- package/dist/types/platform-components/referencePickerReadError.d.ts +24 -0
- package/dist/types/platform-components/referenceRecordDetailBrowser.d.ts +48 -0
- package/dist/types/platform-components/scopedTreePickerModel.d.ts +46 -0
- package/dist/types/platform-components/sourceReferencePickerProvider.d.ts +26 -0
- package/dist/types/platform-components/staticCrudManagementState.d.ts +7 -6
- package/dist/types/platform-components/userPickerModel.d.ts +45 -0
- package/dist/types/platform-components/userReferencePicker.d.ts +17 -0
- package/dist/types/platform-workbench/useWorkspaceViewUnsavedState.d.ts +1 -1
- package/dist/types/platform-workbench/workspaceViewHost.d.ts +1 -1
- package/dist/types/platform-workbench/workspaceViewUnsavedState.d.ts +3 -1
- package/dist/types/views/BusinessActivityLogView.vue.d.ts +3 -0
- package/dist/types/views/BusinessLogListDrawer.vue.d.ts +9 -0
- package/dist/types/views/LoginAuditLogView.vue.d.ts +3 -0
- package/dist/types/views/RequestErrorLogView.vue.d.ts +3 -0
- package/dist/types/views/RuntimeLogView.vue.d.ts +3 -0
- package/dist/types/views/businessLogClient.d.ts +85 -0
- package/dist/types/views/dictionaryRadioEligibility.d.ts +18 -0
- package/dist/types/views/dictionaryRadioFactRequestEpoch.d.ts +10 -0
- package/dist/types/views/metadataModelEditSession.d.ts +10 -1
- package/dist/types/views/pageCompositionDraftState.d.ts +29 -0
- package/dist/types/views/roleDetailWorkspaceSession.d.ts +1 -0
- package/dist/types/views/roleGrantClient.d.ts +0 -1
- package/dist/types/views/runtimeLogClient.d.ts +12 -0
- package/dist/types/views/runtimeLogSse.d.ts +13 -0
- package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +15 -0
- package/dist/types/vue-ui-antdv/components/UiSearchInput.vue.d.ts +16 -2
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +23 -1
- package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +9 -2
- package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +23 -1
- package/dist/types/vue-ui-antdv/drawerDismissal.d.ts +18 -0
- package/dist/types/vue-ui-antdv/drawerWidth.d.ts +22 -0
- package/dist/types/vue-ui-antdv/index.d.ts +4 -0
- package/dist/types/web-contracts/index.d.ts +66 -6
- package/dist/types/web-core/http.d.ts +2 -0
- package/dist/types/web-core/module/moduleContext.d.ts +15 -2
- package/dist/types/web-core/module/runtimeContext.d.ts +3 -2
- package/dist/types/web-core/module/staticModuleClient.d.ts +5 -1
- package/dist/{workspaceViews-DI_1vYX9.js → workspaceViews-CCg6V0pr.js} +1245 -1140
- package/package.json +1 -1
- package/dist/RoleDetailWorkspaceView-D6X7pAj5.js +0 -1379
- package/dist/platform-workbench-DJj42YQP.js +0 -22911
package/dist/index.js
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { n as e, r as t } from "./rolldown-runtime-DPVXH0ON.js";
|
|
2
|
-
import { $n as n, An as r,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
2
|
+
import { $n as n, An as r, At as i, Bn as a, Bt as o, Cn as s, Cr as c, Ct as l, Dn as u, En as d, Et as f, F as p, Fn as m, Gn as h, Hn as g, Ht as _, In as ee, It as te, Jn as ne, Jt as re, K as v, Kn as ie, Ln as ae, Mn as oe, Mt as se, Nn as ce, Nt as le, On as ue, P as de, Pn as fe, Pt as pe, Qn as me, Qt as he, Rn as ge, Sn as _e, Sr as ve, St as ye, Tn as be, U as xe, Un as Se, Vn as Ce, Vt as we, Wn as Te, Wt as Ee, Xn as De, Xt as Oe, Yn as ke, Yt as Ae, Zn as je, Zt as Me, _n as Ne, _r as Pe, ar as Fe, bn as Ie, br as Le, cr as Re, dn as ze, dr as Be, er as Ve, fr as He, gn as Ue, gr as We, hn as Ge, hr as Ke, ht as qe, ir as Je, jn as Ye, jt as Xe, kn as Ze, kt as Qe, lr as $e, mn as et, mr as tt, nr as nt, on as y, or as rt, pn as it, pr as at, qn as ot, rn as st, rr as ct, rt as lt, sr as ut, tn as dt, tr as ft, ur as pt, vn as mt, vr as ht, vt as gt, wn as _t, wt as vt, xn as yt, xr as bt, xt, yn as St, yr as Ct, yt as wt, zn as Tt } from "./platform-components-1cvOeHmo.js";
|
|
3
|
+
import { n as Et, r as Dt, t as Ot } from "./http-B0TC0pJB.js";
|
|
4
|
+
import { C as kt, S as At, _ as jt, b as Mt, d as Nt, f as Pt, g as Ft, h as It, l as Lt, m as Rt, p as zt, u as Bt, v as Vt, y as Ht } from "./workspaceViews-CCg6V0pr.js";
|
|
5
|
+
import { $ as Ut, A as Wt, B as Gt, C as Kt, D as qt, E as Jt, F as b, G as x, H as S, I as Yt, J as Xt, K as Zt, L as Qt, M as $t, N as en, O as tn, P as nn, Q as rn, R as an, S as on, T as sn, U as cn, V as ln, W as un, X as dn, Y as fn, Z as pn, _ as mn, a as hn, at as gn, b as _n, c as vn, d as yn, et as bn, g as xn, h as Sn, i as Cn, it as wn, j as Tn, k as En, l as Dn, m as On, n as kn, nt as An, o as jn, ot as Mn, p as Nn, q as Pn, r as Fn, rt as In, s as Ln, st as Rn, t as zn, tt as Bn, u as Vn, v as Hn, w as Un, y as Wn, z as C } from "./platform-workbench-Cu14Xd9d.js";
|
|
6
|
+
import { r as Gn } from "./moduleGovernanceWorkspaceView-4V_UW-Bt.js";
|
|
7
|
+
import * as Kn from "vue";
|
|
8
|
+
import { Fragment as qn, computed as w, createBlock as T, createCommentVNode as E, createElementBlock as D, createElementVNode as O, createTextVNode as Jn, createVNode as k, defineAsyncComponent as A, defineComponent as j, normalizeClass as Yn, normalizeStyle as Xn, onBeforeUnmount as Zn, onMounted as Qn, openBlock as M, provide as $n, ref as N, renderList as er, renderSlot as tr, resolveDynamicComponent as nr, toDisplayString as P, unref as F, watch as rr, withCtx as I, withModifiers as ir } from "vue";
|
|
7
9
|
//#region node_modules/@tanstack/query-core/build/modern/subscribable.js
|
|
8
|
-
var
|
|
10
|
+
var ar = class {
|
|
9
11
|
constructor() {
|
|
10
12
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
11
13
|
}
|
|
@@ -19,7 +21,7 @@ var er = class {
|
|
|
19
21
|
}
|
|
20
22
|
onSubscribe() {}
|
|
21
23
|
onUnsubscribe() {}
|
|
22
|
-
},
|
|
24
|
+
}, or = new class extends ar {
|
|
23
25
|
#e;
|
|
24
26
|
#t;
|
|
25
27
|
#n;
|
|
@@ -56,13 +58,13 @@ var er = class {
|
|
|
56
58
|
isFocused() {
|
|
57
59
|
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
|
58
60
|
}
|
|
59
|
-
}(),
|
|
61
|
+
}(), sr = {
|
|
60
62
|
setTimeout: (e, t) => setTimeout(e, t),
|
|
61
63
|
clearTimeout: (e) => clearTimeout(e),
|
|
62
64
|
setInterval: (e, t) => setInterval(e, t),
|
|
63
65
|
clearInterval: (e) => clearInterval(e)
|
|
64
|
-
},
|
|
65
|
-
#e =
|
|
66
|
+
}, cr = new class {
|
|
67
|
+
#e = sr;
|
|
66
68
|
#t = !1;
|
|
67
69
|
setTimeoutProvider(e) {
|
|
68
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.", {
|
|
@@ -83,33 +85,33 @@ var er = class {
|
|
|
83
85
|
this.#e.clearInterval(e);
|
|
84
86
|
}
|
|
85
87
|
}();
|
|
86
|
-
function
|
|
88
|
+
function lr(e) {
|
|
87
89
|
setTimeout(e, 0);
|
|
88
90
|
}
|
|
89
91
|
//#endregion
|
|
90
92
|
//#region node_modules/@tanstack/query-core/build/modern/utils.js
|
|
91
|
-
var
|
|
93
|
+
var ur = typeof window > "u" || "Deno" in globalThis;
|
|
92
94
|
function L() {}
|
|
93
|
-
function
|
|
95
|
+
function dr(e, t) {
|
|
94
96
|
return typeof e == "function" ? e(t) : e;
|
|
95
97
|
}
|
|
96
|
-
function
|
|
98
|
+
function fr(e) {
|
|
97
99
|
return typeof e == "number" && e >= 0 && e !== Infinity;
|
|
98
100
|
}
|
|
99
|
-
function
|
|
101
|
+
function pr(e, t) {
|
|
100
102
|
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
101
103
|
}
|
|
102
|
-
function
|
|
104
|
+
function mr(e, t) {
|
|
103
105
|
return typeof e == "function" ? e(t) : e;
|
|
104
106
|
}
|
|
105
|
-
function
|
|
107
|
+
function hr(e, t) {
|
|
106
108
|
return typeof e == "function" ? e(t) : e;
|
|
107
109
|
}
|
|
108
|
-
function
|
|
110
|
+
function gr(e, t) {
|
|
109
111
|
let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
|
|
110
112
|
if (o) {
|
|
111
113
|
if (r) {
|
|
112
|
-
if (t.queryHash !==
|
|
114
|
+
if (t.queryHash !== vr(o, t.options)) return !1;
|
|
113
115
|
} else if (!z(t.queryKey, o)) return !1;
|
|
114
116
|
}
|
|
115
117
|
if (n !== "all") {
|
|
@@ -118,7 +120,7 @@ function dr(e, t) {
|
|
|
118
120
|
}
|
|
119
121
|
return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
|
|
120
122
|
}
|
|
121
|
-
function
|
|
123
|
+
function _r(e, t) {
|
|
122
124
|
let { exact: n, status: r, predicate: i, mutationKey: a } = e;
|
|
123
125
|
if (a) {
|
|
124
126
|
if (!t.options.mutationKey) return !1;
|
|
@@ -128,80 +130,80 @@ function fr(e, t) {
|
|
|
128
130
|
}
|
|
129
131
|
return !(r && t.state.status !== r || i && !i(t));
|
|
130
132
|
}
|
|
131
|
-
function
|
|
133
|
+
function vr(e, t) {
|
|
132
134
|
return (t?.queryKeyHashFn || R)(e);
|
|
133
135
|
}
|
|
134
136
|
function R(e) {
|
|
135
|
-
return JSON.stringify(e, (e, t) =>
|
|
137
|
+
return JSON.stringify(e, (e, t) => Sr(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
|
|
136
138
|
}
|
|
137
139
|
function z(e, t) {
|
|
138
140
|
return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => z(e[n], t[n])) : !1;
|
|
139
141
|
}
|
|
140
|
-
var
|
|
141
|
-
function
|
|
142
|
+
var yr = Object.prototype.hasOwnProperty;
|
|
143
|
+
function br(e, t, n = 0) {
|
|
142
144
|
if (e === t) return e;
|
|
143
145
|
if (n > 500) return t;
|
|
144
|
-
let r =
|
|
145
|
-
if (!r && !(
|
|
146
|
+
let r = xr(e) && xr(t);
|
|
147
|
+
if (!r && !(Sr(e) && Sr(t))) return t;
|
|
146
148
|
let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
|
|
147
149
|
for (let l = 0; l < o; l++) {
|
|
148
150
|
let o = r ? l : a[l], u = e[o], d = t[o];
|
|
149
151
|
if (u === d) {
|
|
150
|
-
s[o] = u, (r ? l < i :
|
|
152
|
+
s[o] = u, (r ? l < i : yr.call(e, o)) && c++;
|
|
151
153
|
continue;
|
|
152
154
|
}
|
|
153
155
|
if (u === null || d === null || typeof u != "object" || typeof d != "object") {
|
|
154
156
|
s[o] = d;
|
|
155
157
|
continue;
|
|
156
158
|
}
|
|
157
|
-
let f =
|
|
159
|
+
let f = br(u, d, n + 1);
|
|
158
160
|
s[o] = f, f === u && c++;
|
|
159
161
|
}
|
|
160
162
|
return i === o && c === i ? e : s;
|
|
161
163
|
}
|
|
162
|
-
function
|
|
164
|
+
function xr(e) {
|
|
163
165
|
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
164
166
|
}
|
|
165
|
-
function
|
|
166
|
-
if (!
|
|
167
|
+
function Sr(e) {
|
|
168
|
+
if (!Cr(e)) return !1;
|
|
167
169
|
let t = e.constructor;
|
|
168
170
|
if (t === void 0) return !0;
|
|
169
171
|
let n = t.prototype;
|
|
170
|
-
return !(!
|
|
172
|
+
return !(!Cr(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
171
173
|
}
|
|
172
|
-
function
|
|
174
|
+
function Cr(e) {
|
|
173
175
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
174
176
|
}
|
|
175
|
-
function
|
|
177
|
+
function wr(e) {
|
|
176
178
|
return new Promise((t) => {
|
|
177
|
-
|
|
179
|
+
cr.setTimeout(t, e);
|
|
178
180
|
});
|
|
179
181
|
}
|
|
180
|
-
function
|
|
182
|
+
function Tr(e, t, n) {
|
|
181
183
|
if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
|
|
182
184
|
if (n.structuralSharing !== !1) {
|
|
183
185
|
if (process.env.NODE_ENV !== "production") try {
|
|
184
|
-
return
|
|
186
|
+
return br(e, t);
|
|
185
187
|
} catch (e) {
|
|
186
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;
|
|
187
189
|
}
|
|
188
|
-
return
|
|
190
|
+
return br(e, t);
|
|
189
191
|
}
|
|
190
192
|
return t;
|
|
191
193
|
}
|
|
192
|
-
function
|
|
194
|
+
function Er(e, t, n = 0) {
|
|
193
195
|
let r = [...e, t];
|
|
194
196
|
return n && r.length > n ? r.slice(1) : r;
|
|
195
197
|
}
|
|
196
|
-
function
|
|
198
|
+
function Dr(e, t, n = 0) {
|
|
197
199
|
let r = [t, ...e];
|
|
198
200
|
return n && r.length > n ? r.slice(0, -1) : r;
|
|
199
201
|
}
|
|
200
|
-
var
|
|
201
|
-
function
|
|
202
|
-
return process.env.NODE_ENV !== "production" && e.queryFn ===
|
|
202
|
+
var Or = /* @__PURE__ */ Symbol();
|
|
203
|
+
function kr(e, t) {
|
|
204
|
+
return process.env.NODE_ENV !== "production" && e.queryFn === Or && 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 === Or ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
203
205
|
}
|
|
204
|
-
function
|
|
206
|
+
function Ar(e, t, n) {
|
|
205
207
|
let r = !1, i;
|
|
206
208
|
return Object.defineProperty(e, "signal", {
|
|
207
209
|
enumerable: !0,
|
|
@@ -210,8 +212,8 @@ function Tr(e, t, n) {
|
|
|
210
212
|
}
|
|
211
213
|
//#endregion
|
|
212
214
|
//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
|
|
213
|
-
var
|
|
214
|
-
let e = () =>
|
|
215
|
+
var jr = /* @__PURE__ */ (() => {
|
|
216
|
+
let e = () => ur;
|
|
215
217
|
return {
|
|
216
218
|
isServer() {
|
|
217
219
|
return e();
|
|
@@ -223,7 +225,7 @@ var Er = /* @__PURE__ */ (() => {
|
|
|
223
225
|
})();
|
|
224
226
|
//#endregion
|
|
225
227
|
//#region node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
226
|
-
function
|
|
228
|
+
function Mr() {
|
|
227
229
|
let e, t, n = new Promise((n, r) => {
|
|
228
230
|
e = n, t = r;
|
|
229
231
|
});
|
|
@@ -245,13 +247,13 @@ function Dr() {
|
|
|
245
247
|
}
|
|
246
248
|
//#endregion
|
|
247
249
|
//#region node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
248
|
-
var
|
|
249
|
-
function
|
|
250
|
+
var Nr = lr;
|
|
251
|
+
function Pr() {
|
|
250
252
|
let e = [], t = 0, n = (e) => {
|
|
251
253
|
e();
|
|
252
254
|
}, r = (e) => {
|
|
253
255
|
e();
|
|
254
|
-
}, i =
|
|
256
|
+
}, i = Nr, a = (r) => {
|
|
255
257
|
t ? e.push(r) : i(() => {
|
|
256
258
|
n(r);
|
|
257
259
|
});
|
|
@@ -293,7 +295,7 @@ function kr() {
|
|
|
293
295
|
}
|
|
294
296
|
};
|
|
295
297
|
}
|
|
296
|
-
var B =
|
|
298
|
+
var B = Pr(), V = new class extends ar {
|
|
297
299
|
#e = !0;
|
|
298
300
|
#t;
|
|
299
301
|
#n;
|
|
@@ -327,28 +329,28 @@ var B = kr(), V = new class extends er {
|
|
|
327
329
|
}();
|
|
328
330
|
//#endregion
|
|
329
331
|
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
330
|
-
function
|
|
332
|
+
function Fr(e) {
|
|
331
333
|
return Math.min(1e3 * 2 ** e, 3e4);
|
|
332
334
|
}
|
|
333
|
-
function
|
|
335
|
+
function Ir(e) {
|
|
334
336
|
return (e ?? "online") !== "online" || V.isOnline();
|
|
335
337
|
}
|
|
336
|
-
var
|
|
338
|
+
var Lr = class extends Error {
|
|
337
339
|
constructor(e) {
|
|
338
340
|
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
|
339
341
|
}
|
|
340
342
|
};
|
|
341
|
-
function
|
|
342
|
-
let t = !1, n = 0, r, i =
|
|
343
|
+
function Rr(e) {
|
|
344
|
+
let t = !1, n = 0, r, i = Mr(), a = () => i.status !== "pending", o = (t) => {
|
|
343
345
|
if (!a()) {
|
|
344
|
-
let n = new
|
|
346
|
+
let n = new Lr(t);
|
|
345
347
|
f(n), e.onCancel?.(n);
|
|
346
348
|
}
|
|
347
349
|
}, s = () => {
|
|
348
350
|
t = !0;
|
|
349
351
|
}, c = () => {
|
|
350
352
|
t = !1;
|
|
351
|
-
}, l = () =>
|
|
353
|
+
}, l = () => or.isFocused() && (e.networkMode === "always" || V.isOnline()) && e.canRun(), u = () => Ir(e.networkMode) && e.canRun(), d = (e) => {
|
|
352
354
|
a() || (r?.(), i.resolve(e));
|
|
353
355
|
}, f = (e) => {
|
|
354
356
|
a() || (r?.(), i.reject(e));
|
|
@@ -368,12 +370,12 @@ function Nr(e) {
|
|
|
368
370
|
}
|
|
369
371
|
Promise.resolve(r).then(d).catch((r) => {
|
|
370
372
|
if (a()) return;
|
|
371
|
-
let i = e.retry ?? (
|
|
373
|
+
let i = e.retry ?? (jr.isServer() ? 0 : 3), o = e.retryDelay ?? Fr, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
|
|
372
374
|
if (t || !c) {
|
|
373
375
|
f(r);
|
|
374
376
|
return;
|
|
375
377
|
}
|
|
376
|
-
n++, e.onFail?.(n, r),
|
|
378
|
+
n++, e.onFail?.(n, r), wr(s).then(() => l() ? void 0 : p()).then(() => {
|
|
377
379
|
t ? f(r) : m();
|
|
378
380
|
});
|
|
379
381
|
});
|
|
@@ -391,34 +393,34 @@ function Nr(e) {
|
|
|
391
393
|
}
|
|
392
394
|
//#endregion
|
|
393
395
|
//#region node_modules/@tanstack/query-core/build/modern/removable.js
|
|
394
|
-
var
|
|
396
|
+
var zr = class {
|
|
395
397
|
#e;
|
|
396
398
|
destroy() {
|
|
397
399
|
this.clearGcTimeout();
|
|
398
400
|
}
|
|
399
401
|
scheduleGc() {
|
|
400
|
-
this.clearGcTimeout(),
|
|
402
|
+
this.clearGcTimeout(), fr(this.gcTime) && (this.#e = cr.setTimeout(() => {
|
|
401
403
|
this.optionalRemove();
|
|
402
404
|
}, this.gcTime));
|
|
403
405
|
}
|
|
404
406
|
updateGcTime(e) {
|
|
405
|
-
this.gcTime = Math.max(this.gcTime || 0, e ?? (
|
|
407
|
+
this.gcTime = Math.max(this.gcTime || 0, e ?? (jr.isServer() ? Infinity : 3e5));
|
|
406
408
|
}
|
|
407
409
|
clearGcTimeout() {
|
|
408
|
-
this.#e !== void 0 && (
|
|
410
|
+
this.#e !== void 0 && (cr.clearTimeout(this.#e), this.#e = void 0);
|
|
409
411
|
}
|
|
410
412
|
};
|
|
411
413
|
//#endregion
|
|
412
414
|
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
|
|
413
|
-
function
|
|
415
|
+
function Br(e) {
|
|
414
416
|
return { onFetch: (t, n) => {
|
|
415
417
|
let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
|
|
416
418
|
pages: [],
|
|
417
419
|
pageParams: []
|
|
418
420
|
}, c = 0, l = async () => {
|
|
419
421
|
let n = !1, l = (e) => {
|
|
420
|
-
|
|
421
|
-
}, u =
|
|
422
|
+
Ar(e, () => t.signal, () => n = !0);
|
|
423
|
+
}, u = kr(t.options, t.fetchOptions), d = async (e, r, i) => {
|
|
422
424
|
if (n) return Promise.reject(t.signal.reason);
|
|
423
425
|
if (r == null && e.pages.length) return Promise.resolve(e);
|
|
424
426
|
let a = (() => {
|
|
@@ -430,14 +432,14 @@ function Fr(e) {
|
|
|
430
432
|
meta: t.options.meta
|
|
431
433
|
};
|
|
432
434
|
return l(e), e;
|
|
433
|
-
})(), o = await u(a), { maxPages: s } = t.options, c = i ?
|
|
435
|
+
})(), o = await u(a), { maxPages: s } = t.options, c = i ? Dr : Er;
|
|
434
436
|
return {
|
|
435
437
|
pages: c(e.pages, o, s),
|
|
436
438
|
pageParams: c(e.pageParams, r, s)
|
|
437
439
|
};
|
|
438
440
|
};
|
|
439
441
|
if (i && a.length) {
|
|
440
|
-
let e = i === "backward", t = e ?
|
|
442
|
+
let e = i === "backward", t = e ? Hr : Vr, n = {
|
|
441
443
|
pages: a,
|
|
442
444
|
pageParams: o
|
|
443
445
|
};
|
|
@@ -445,7 +447,7 @@ function Fr(e) {
|
|
|
445
447
|
} else {
|
|
446
448
|
let t = e ?? a.length;
|
|
447
449
|
do {
|
|
448
|
-
let e = c === 0 ? o[0] ?? r.initialPageParam :
|
|
450
|
+
let e = c === 0 ? o[0] ?? r.initialPageParam : Vr(r, s);
|
|
449
451
|
if (c > 0 && e == null) break;
|
|
450
452
|
s = await d(s, e), c++;
|
|
451
453
|
} while (c < t);
|
|
@@ -460,16 +462,16 @@ function Fr(e) {
|
|
|
460
462
|
}, n) : l;
|
|
461
463
|
} };
|
|
462
464
|
}
|
|
463
|
-
function
|
|
465
|
+
function Vr(e, { pages: t, pageParams: n }) {
|
|
464
466
|
let r = t.length - 1;
|
|
465
467
|
return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
|
|
466
468
|
}
|
|
467
|
-
function
|
|
469
|
+
function Hr(e, { pages: t, pageParams: n }) {
|
|
468
470
|
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
|
|
469
471
|
}
|
|
470
472
|
//#endregion
|
|
471
473
|
//#region node_modules/@tanstack/query-core/build/modern/query.js
|
|
472
|
-
var
|
|
474
|
+
var Ur = class extends zr {
|
|
473
475
|
#e;
|
|
474
476
|
#t;
|
|
475
477
|
#n;
|
|
@@ -479,7 +481,7 @@ var Rr = class extends Pr {
|
|
|
479
481
|
#o;
|
|
480
482
|
#s;
|
|
481
483
|
constructor(e) {
|
|
482
|
-
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 = Kr(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
|
|
483
485
|
}
|
|
484
486
|
get meta() {
|
|
485
487
|
return this.options.meta;
|
|
@@ -495,15 +497,15 @@ var Rr = class extends Pr {
|
|
|
495
497
|
...this.#o,
|
|
496
498
|
...e
|
|
497
499
|
}, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
498
|
-
let e =
|
|
499
|
-
e.data !== void 0 && (this.setState(
|
|
500
|
+
let e = Kr(this.options);
|
|
501
|
+
e.data !== void 0 && (this.setState(Gr(e.data, e.dataUpdatedAt)), this.#t = e);
|
|
500
502
|
}
|
|
501
503
|
}
|
|
502
504
|
optionalRemove() {
|
|
503
505
|
!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
|
|
504
506
|
}
|
|
505
507
|
setData(e, t) {
|
|
506
|
-
let n =
|
|
508
|
+
let n = Tr(this.state.data, e, this.options);
|
|
507
509
|
return this.#l({
|
|
508
510
|
data: n,
|
|
509
511
|
type: "success",
|
|
@@ -531,22 +533,22 @@ var Rr = class extends Pr {
|
|
|
531
533
|
this.destroy(), this.setState(this.resetState);
|
|
532
534
|
}
|
|
533
535
|
isActive() {
|
|
534
|
-
return this.observers.some((e) =>
|
|
536
|
+
return this.observers.some((e) => hr(e.options.enabled, this) !== !1);
|
|
535
537
|
}
|
|
536
538
|
isDisabled() {
|
|
537
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
539
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === Or || !this.isFetched();
|
|
538
540
|
}
|
|
539
541
|
isFetched() {
|
|
540
542
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
541
543
|
}
|
|
542
544
|
isStatic() {
|
|
543
|
-
return this.getObserversCount() > 0 && this.observers.some((e) =>
|
|
545
|
+
return this.getObserversCount() > 0 && this.observers.some((e) => mr(e.options.staleTime, this) === "static");
|
|
544
546
|
}
|
|
545
547
|
isStale() {
|
|
546
548
|
return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
|
|
547
549
|
}
|
|
548
550
|
isStaleByTime(e = 0) {
|
|
549
|
-
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 : !pr(this.state.dataUpdatedAt, e);
|
|
550
552
|
}
|
|
551
553
|
onFocus() {
|
|
552
554
|
this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
|
|
@@ -593,7 +595,7 @@ var Rr = class extends Pr {
|
|
|
593
595
|
get: () => (this.#s = !0, n.signal)
|
|
594
596
|
});
|
|
595
597
|
}, i = () => {
|
|
596
|
-
let e =
|
|
598
|
+
let e = kr(this.options, t), n = (() => {
|
|
597
599
|
let e = {
|
|
598
600
|
client: this.#i,
|
|
599
601
|
queryKey: this.queryKey,
|
|
@@ -613,14 +615,14 @@ var Rr = class extends Pr {
|
|
|
613
615
|
};
|
|
614
616
|
return r(e), e;
|
|
615
617
|
})();
|
|
616
|
-
(this.#e === "infinite" ?
|
|
618
|
+
(this.#e === "infinite" ? Br(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({
|
|
617
619
|
type: "fetch",
|
|
618
620
|
meta: a.fetchOptions?.meta
|
|
619
|
-
}), this.#a =
|
|
621
|
+
}), this.#a = Rr({
|
|
620
622
|
initialPromise: t?.initialPromise,
|
|
621
623
|
fn: a.fetchFn,
|
|
622
624
|
onCancel: (e) => {
|
|
623
|
-
e instanceof
|
|
625
|
+
e instanceof Lr && e.revert && this.setState({
|
|
624
626
|
...this.#n,
|
|
625
627
|
fetchStatus: "idle"
|
|
626
628
|
}), n.abort();
|
|
@@ -648,7 +650,7 @@ var Rr = class extends Pr {
|
|
|
648
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`);
|
|
649
651
|
return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;
|
|
650
652
|
} catch (e) {
|
|
651
|
-
if (e instanceof
|
|
653
|
+
if (e instanceof Lr) {
|
|
652
654
|
if (e.silent) return this.#a.promise;
|
|
653
655
|
if (e.revert) {
|
|
654
656
|
if (this.state.data === void 0) throw e;
|
|
@@ -681,13 +683,13 @@ var Rr = class extends Pr {
|
|
|
681
683
|
};
|
|
682
684
|
case "fetch": return {
|
|
683
685
|
...t,
|
|
684
|
-
...
|
|
686
|
+
...Wr(t.data, this.options),
|
|
685
687
|
fetchMeta: e.meta ?? null
|
|
686
688
|
};
|
|
687
689
|
case "success":
|
|
688
690
|
let n = {
|
|
689
691
|
...t,
|
|
690
|
-
...
|
|
692
|
+
...Gr(e.data, e.dataUpdatedAt),
|
|
691
693
|
dataUpdateCount: t.dataUpdateCount + 1,
|
|
692
694
|
...!e.manual && {
|
|
693
695
|
fetchStatus: "idle",
|
|
@@ -730,18 +732,18 @@ var Rr = class extends Pr {
|
|
|
730
732
|
});
|
|
731
733
|
}
|
|
732
734
|
};
|
|
733
|
-
function
|
|
735
|
+
function Wr(e, t) {
|
|
734
736
|
return {
|
|
735
737
|
fetchFailureCount: 0,
|
|
736
738
|
fetchFailureReason: null,
|
|
737
|
-
fetchStatus:
|
|
739
|
+
fetchStatus: Ir(t.networkMode) ? "fetching" : "paused",
|
|
738
740
|
...e === void 0 && {
|
|
739
741
|
error: null,
|
|
740
742
|
status: "pending"
|
|
741
743
|
}
|
|
742
744
|
};
|
|
743
745
|
}
|
|
744
|
-
function
|
|
746
|
+
function Gr(e, t) {
|
|
745
747
|
return {
|
|
746
748
|
data: e,
|
|
747
749
|
dataUpdatedAt: t ?? Date.now(),
|
|
@@ -750,7 +752,7 @@ function Br(e, t) {
|
|
|
750
752
|
status: "success"
|
|
751
753
|
};
|
|
752
754
|
}
|
|
753
|
-
function
|
|
755
|
+
function Kr(e) {
|
|
754
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;
|
|
755
757
|
return {
|
|
756
758
|
data: t,
|
|
@@ -769,13 +771,13 @@ function Vr(e) {
|
|
|
769
771
|
}
|
|
770
772
|
//#endregion
|
|
771
773
|
//#region node_modules/@tanstack/query-core/build/modern/mutation.js
|
|
772
|
-
var
|
|
774
|
+
var qr = class extends zr {
|
|
773
775
|
#e;
|
|
774
776
|
#t;
|
|
775
777
|
#n;
|
|
776
778
|
#r;
|
|
777
779
|
constructor(e) {
|
|
778
|
-
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 || Jr(), this.setOptions(e.options), this.scheduleGc();
|
|
779
781
|
}
|
|
780
782
|
setOptions(e) {
|
|
781
783
|
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
@@ -811,7 +813,7 @@ var Hr = class extends Pr {
|
|
|
811
813
|
meta: this.options.meta,
|
|
812
814
|
mutationKey: this.options.mutationKey
|
|
813
815
|
};
|
|
814
|
-
this.#r =
|
|
816
|
+
this.#r = Rr({
|
|
815
817
|
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
|
|
816
818
|
onFail: (e, t) => {
|
|
817
819
|
this.#i({
|
|
@@ -939,7 +941,7 @@ var Hr = class extends Pr {
|
|
|
939
941
|
});
|
|
940
942
|
}
|
|
941
943
|
};
|
|
942
|
-
function
|
|
944
|
+
function Jr() {
|
|
943
945
|
return {
|
|
944
946
|
context: void 0,
|
|
945
947
|
data: void 0,
|
|
@@ -954,7 +956,7 @@ function Ur() {
|
|
|
954
956
|
}
|
|
955
957
|
//#endregion
|
|
956
958
|
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
|
|
957
|
-
var
|
|
959
|
+
var Yr = class extends ar {
|
|
958
960
|
constructor(e = {}) {
|
|
959
961
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
960
962
|
}
|
|
@@ -962,7 +964,7 @@ var Wr = class extends er {
|
|
|
962
964
|
#t;
|
|
963
965
|
#n;
|
|
964
966
|
build(e, t, n) {
|
|
965
|
-
let r = new
|
|
967
|
+
let r = new qr({
|
|
966
968
|
client: e,
|
|
967
969
|
mutationCache: this,
|
|
968
970
|
mutationId: ++this.#n,
|
|
@@ -973,7 +975,7 @@ var Wr = class extends er {
|
|
|
973
975
|
}
|
|
974
976
|
add(e) {
|
|
975
977
|
this.#e.add(e);
|
|
976
|
-
let t =
|
|
978
|
+
let t = Xr(e);
|
|
977
979
|
if (typeof t == "string") {
|
|
978
980
|
let n = this.#t.get(t);
|
|
979
981
|
n ? n.push(e) : this.#t.set(t, [e]);
|
|
@@ -985,7 +987,7 @@ var Wr = class extends er {
|
|
|
985
987
|
}
|
|
986
988
|
remove(e) {
|
|
987
989
|
if (this.#e.delete(e)) {
|
|
988
|
-
let t =
|
|
990
|
+
let t = Xr(e);
|
|
989
991
|
if (typeof t == "string") {
|
|
990
992
|
let n = this.#t.get(t);
|
|
991
993
|
if (n) {
|
|
@@ -1002,7 +1004,7 @@ var Wr = class extends er {
|
|
|
1002
1004
|
});
|
|
1003
1005
|
}
|
|
1004
1006
|
canRun(e) {
|
|
1005
|
-
let t =
|
|
1007
|
+
let t = Xr(e);
|
|
1006
1008
|
if (typeof t == "string") {
|
|
1007
1009
|
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
|
|
1008
1010
|
return !n || n === e;
|
|
@@ -1010,7 +1012,7 @@ var Wr = class extends er {
|
|
|
1010
1012
|
return !0;
|
|
1011
1013
|
}
|
|
1012
1014
|
runNext(e) {
|
|
1013
|
-
let t =
|
|
1015
|
+
let t = Xr(e);
|
|
1014
1016
|
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
1015
1017
|
}
|
|
1016
1018
|
clear() {
|
|
@@ -1031,10 +1033,10 @@ var Wr = class extends er {
|
|
|
1031
1033
|
exact: !0,
|
|
1032
1034
|
...e
|
|
1033
1035
|
};
|
|
1034
|
-
return this.getAll().find((e) =>
|
|
1036
|
+
return this.getAll().find((e) => _r(t, e));
|
|
1035
1037
|
}
|
|
1036
1038
|
findAll(e = {}) {
|
|
1037
|
-
return this.getAll().filter((t) =>
|
|
1039
|
+
return this.getAll().filter((t) => _r(e, t));
|
|
1038
1040
|
}
|
|
1039
1041
|
notify(e) {
|
|
1040
1042
|
B.batch(() => {
|
|
@@ -1048,19 +1050,19 @@ var Wr = class extends er {
|
|
|
1048
1050
|
return B.batch(() => Promise.all(e.map((e) => e.continue().catch(L))));
|
|
1049
1051
|
}
|
|
1050
1052
|
};
|
|
1051
|
-
function
|
|
1053
|
+
function Xr(e) {
|
|
1052
1054
|
return e.options.scope?.id;
|
|
1053
1055
|
}
|
|
1054
1056
|
//#endregion
|
|
1055
1057
|
//#region node_modules/@tanstack/query-core/build/modern/queryCache.js
|
|
1056
|
-
var
|
|
1058
|
+
var Zr = class extends ar {
|
|
1057
1059
|
constructor(e = {}) {
|
|
1058
1060
|
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
1059
1061
|
}
|
|
1060
1062
|
#e;
|
|
1061
1063
|
build(e, t, n) {
|
|
1062
|
-
let r = t.queryKey, i = t.queryHash ??
|
|
1063
|
-
return a || (a = new
|
|
1064
|
+
let r = t.queryKey, i = t.queryHash ?? vr(r, t), a = this.get(i);
|
|
1065
|
+
return a || (a = new Ur({
|
|
1064
1066
|
client: e,
|
|
1065
1067
|
queryKey: r,
|
|
1066
1068
|
queryHash: i,
|
|
@@ -1100,11 +1102,11 @@ var Kr = class extends er {
|
|
|
1100
1102
|
exact: !0,
|
|
1101
1103
|
...e
|
|
1102
1104
|
};
|
|
1103
|
-
return this.getAll().find((e) =>
|
|
1105
|
+
return this.getAll().find((e) => gr(t, e));
|
|
1104
1106
|
}
|
|
1105
1107
|
findAll(e = {}) {
|
|
1106
1108
|
let t = this.getAll();
|
|
1107
|
-
return Object.keys(e).length > 0 ? t.filter((t) =>
|
|
1109
|
+
return Object.keys(e).length > 0 ? t.filter((t) => gr(e, t)) : t;
|
|
1108
1110
|
}
|
|
1109
1111
|
notify(e) {
|
|
1110
1112
|
B.batch(() => {
|
|
@@ -1127,7 +1129,7 @@ var Kr = class extends er {
|
|
|
1127
1129
|
});
|
|
1128
1130
|
});
|
|
1129
1131
|
}
|
|
1130
|
-
},
|
|
1132
|
+
}, Qr = class {
|
|
1131
1133
|
#e;
|
|
1132
1134
|
#t;
|
|
1133
1135
|
#n;
|
|
@@ -1137,10 +1139,10 @@ var Kr = class extends er {
|
|
|
1137
1139
|
#o;
|
|
1138
1140
|
#s;
|
|
1139
1141
|
constructor(e = {}) {
|
|
1140
|
-
this.#e = e.queryCache || new
|
|
1142
|
+
this.#e = e.queryCache || new Zr(), this.#t = e.mutationCache || new Yr(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
|
|
1141
1143
|
}
|
|
1142
1144
|
mount() {
|
|
1143
|
-
this.#a++, this.#a === 1 && (this.#o =
|
|
1145
|
+
this.#a++, this.#a === 1 && (this.#o = or.subscribe(async (e) => {
|
|
1144
1146
|
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
1145
1147
|
}), this.#s = V.subscribe(async (e) => {
|
|
1146
1148
|
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
@@ -1167,13 +1169,13 @@ var Kr = class extends er {
|
|
|
1167
1169
|
}
|
|
1168
1170
|
ensureQueryData(e) {
|
|
1169
1171
|
let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
|
|
1170
|
-
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(
|
|
1172
|
+
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(mr(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
|
|
1171
1173
|
}
|
|
1172
1174
|
getQueriesData(e) {
|
|
1173
1175
|
return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
|
|
1174
1176
|
}
|
|
1175
1177
|
setQueryData(e, t, n) {
|
|
1176
|
-
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 = dr(t, i);
|
|
1177
1179
|
if (a !== void 0) return this.#e.build(this, r).setData(a, {
|
|
1178
1180
|
...n,
|
|
1179
1181
|
manual: !0
|
|
@@ -1232,7 +1234,7 @@ var Kr = class extends er {
|
|
|
1232
1234
|
let t = this.defaultQueryOptions(e);
|
|
1233
1235
|
t.retry === void 0 && (t.retry = !1);
|
|
1234
1236
|
let n = this.#e.build(this, t);
|
|
1235
|
-
return n.isStaleByTime(
|
|
1237
|
+
return n.isStaleByTime(mr(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
1236
1238
|
}
|
|
1237
1239
|
prefetchQuery(e) {
|
|
1238
1240
|
return this.fetchQuery(e).then(L).catch(L);
|
|
@@ -1293,7 +1295,7 @@ var Kr = class extends er {
|
|
|
1293
1295
|
...e,
|
|
1294
1296
|
_defaulted: !0
|
|
1295
1297
|
};
|
|
1296
|
-
return t.queryHash ||=
|
|
1298
|
+
return t.queryHash ||= vr(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 === Or && (t.enabled = !1), t;
|
|
1297
1299
|
}
|
|
1298
1300
|
defaultMutationOptions(e) {
|
|
1299
1301
|
return e?._defaulted ? e : {
|
|
@@ -1307,21 +1309,21 @@ var Kr = class extends er {
|
|
|
1307
1309
|
this.#e.clear(), this.#t.clear();
|
|
1308
1310
|
}
|
|
1309
1311
|
}, H = /* @__PURE__ */ e({
|
|
1310
|
-
Vue: () =>
|
|
1312
|
+
Vue: () => Kn,
|
|
1311
1313
|
Vue2: () => void 0,
|
|
1312
|
-
del: () =>
|
|
1313
|
-
install: () =>
|
|
1314
|
+
del: () => ni,
|
|
1315
|
+
install: () => ei,
|
|
1314
1316
|
isVue2: () => !1,
|
|
1315
1317
|
isVue3: () => !0,
|
|
1316
|
-
set: () =>
|
|
1318
|
+
set: () => ti
|
|
1317
1319
|
});
|
|
1318
|
-
import * as
|
|
1319
|
-
t(H,
|
|
1320
|
-
function
|
|
1321
|
-
function
|
|
1320
|
+
import * as $r from "vue";
|
|
1321
|
+
t(H, $r);
|
|
1322
|
+
function ei() {}
|
|
1323
|
+
function ti(e, t, n) {
|
|
1322
1324
|
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
1323
1325
|
}
|
|
1324
|
-
function
|
|
1326
|
+
function ni(e, t) {
|
|
1325
1327
|
if (Array.isArray(e)) {
|
|
1326
1328
|
e.splice(t, 1);
|
|
1327
1329
|
return;
|
|
@@ -1330,62 +1332,62 @@ function Zr(e, t) {
|
|
|
1330
1332
|
}
|
|
1331
1333
|
//#endregion
|
|
1332
1334
|
//#region node_modules/@tanstack/vue-query/build/modern/utils.js
|
|
1333
|
-
var
|
|
1334
|
-
function
|
|
1335
|
-
return `${
|
|
1335
|
+
var ri = "VUE_QUERY_CLIENT";
|
|
1336
|
+
function ii(e) {
|
|
1337
|
+
return `${ri}${e ? `:${e}` : ""}`;
|
|
1336
1338
|
}
|
|
1337
|
-
function
|
|
1339
|
+
function ai(e, t, n = "", r = 0) {
|
|
1338
1340
|
if (t) {
|
|
1339
1341
|
let i = t(e, n, r);
|
|
1340
1342
|
if (i === void 0 && (0, H.isRef)(e) || i !== void 0) return i;
|
|
1341
1343
|
}
|
|
1342
|
-
if (Array.isArray(e)) return e.map((e, n) =>
|
|
1343
|
-
if (typeof e == "object" &&
|
|
1344
|
-
let n = Object.entries(e).map(([e, n]) => [e,
|
|
1344
|
+
if (Array.isArray(e)) return e.map((e, n) => ai(e, t, String(n), r + 1));
|
|
1345
|
+
if (typeof e == "object" && si(e)) {
|
|
1346
|
+
let n = Object.entries(e).map(([e, n]) => [e, ai(n, t, e, r + 1)]);
|
|
1345
1347
|
return Object.fromEntries(n);
|
|
1346
1348
|
}
|
|
1347
1349
|
return e;
|
|
1348
1350
|
}
|
|
1349
|
-
function
|
|
1350
|
-
return
|
|
1351
|
+
function oi(e, t) {
|
|
1352
|
+
return ai(e, t);
|
|
1351
1353
|
}
|
|
1352
1354
|
function U(e, t = !1) {
|
|
1353
|
-
return
|
|
1355
|
+
return oi(e, (e, n, r) => {
|
|
1354
1356
|
if (r === 1 && n === "queryKey") return U(e, !0);
|
|
1355
|
-
if (t &&
|
|
1357
|
+
if (t && ci(e)) return U(e(), t);
|
|
1356
1358
|
if ((0, H.isRef)(e)) return U((0, H.unref)(e), t);
|
|
1357
1359
|
});
|
|
1358
1360
|
}
|
|
1359
|
-
function
|
|
1361
|
+
function si(e) {
|
|
1360
1362
|
if (Object.prototype.toString.call(e) !== "[object Object]") return !1;
|
|
1361
1363
|
let t = Object.getPrototypeOf(e);
|
|
1362
1364
|
return t === null || t === Object.prototype;
|
|
1363
1365
|
}
|
|
1364
|
-
function
|
|
1366
|
+
function ci(e) {
|
|
1365
1367
|
return typeof e == "function";
|
|
1366
1368
|
}
|
|
1367
1369
|
//#endregion
|
|
1368
1370
|
//#region node_modules/@tanstack/vue-query/build/modern/queryCache.js
|
|
1369
|
-
var
|
|
1371
|
+
var li = class extends Zr {
|
|
1370
1372
|
find(e) {
|
|
1371
1373
|
return super.find(U(e));
|
|
1372
1374
|
}
|
|
1373
1375
|
findAll(e = {}) {
|
|
1374
1376
|
return super.findAll(U(e));
|
|
1375
1377
|
}
|
|
1376
|
-
},
|
|
1378
|
+
}, ui = class extends Yr {
|
|
1377
1379
|
find(e) {
|
|
1378
1380
|
return super.find(U(e));
|
|
1379
1381
|
}
|
|
1380
1382
|
findAll(e = {}) {
|
|
1381
1383
|
return super.findAll(U(e));
|
|
1382
1384
|
}
|
|
1383
|
-
},
|
|
1385
|
+
}, di = class extends Qr {
|
|
1384
1386
|
constructor(e = {}) {
|
|
1385
1387
|
let t = {
|
|
1386
1388
|
defaultOptions: e.defaultOptions,
|
|
1387
|
-
queryCache: e.queryCache || new
|
|
1388
|
-
mutationCache: e.mutationCache || new
|
|
1389
|
+
queryCache: e.queryCache || new li(),
|
|
1390
|
+
mutationCache: e.mutationCache || new ui()
|
|
1389
1391
|
};
|
|
1390
1392
|
super(t), this.isRestoring = (0, H.ref)(!1);
|
|
1391
1393
|
}
|
|
@@ -1467,22 +1469,22 @@ var ii = class extends Kr {
|
|
|
1467
1469
|
};
|
|
1468
1470
|
//#endregion
|
|
1469
1471
|
//#region node_modules/@vue/devtools-api/lib/esm/env.js
|
|
1470
|
-
function
|
|
1471
|
-
return
|
|
1472
|
+
function fi() {
|
|
1473
|
+
return pi().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
1472
1474
|
}
|
|
1473
|
-
function
|
|
1475
|
+
function pi() {
|
|
1474
1476
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
1475
1477
|
}
|
|
1476
|
-
var
|
|
1477
|
-
function
|
|
1478
|
-
return W === void 0 && (typeof window < "u" && window.performance ? (W = !0,
|
|
1478
|
+
var mi = typeof Proxy == "function", hi = "devtools-plugin:setup", gi = "plugin:settings:set", W, _i;
|
|
1479
|
+
function vi() {
|
|
1480
|
+
return W === void 0 && (typeof window < "u" && window.performance ? (W = !0, _i = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (W = !0, _i = globalThis.perf_hooks.performance) : W = !1), W;
|
|
1479
1481
|
}
|
|
1480
|
-
function
|
|
1481
|
-
return
|
|
1482
|
+
function yi() {
|
|
1483
|
+
return vi() ? _i.now() : Date.now();
|
|
1482
1484
|
}
|
|
1483
1485
|
//#endregion
|
|
1484
1486
|
//#region node_modules/@vue/devtools-api/lib/esm/proxy.js
|
|
1485
|
-
var
|
|
1487
|
+
var bi = class {
|
|
1486
1488
|
constructor(e, t) {
|
|
1487
1489
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = e, this.hook = t;
|
|
1488
1490
|
let n = {};
|
|
@@ -1503,9 +1505,9 @@ var hi = class {
|
|
|
1503
1505
|
i = e;
|
|
1504
1506
|
},
|
|
1505
1507
|
now() {
|
|
1506
|
-
return
|
|
1508
|
+
return yi();
|
|
1507
1509
|
}
|
|
1508
|
-
}, t && t.on(
|
|
1510
|
+
}, t && t.on(gi, (e, t) => {
|
|
1509
1511
|
e === this.plugin.id && this.fallbacks.setSettings(t);
|
|
1510
1512
|
}), this.proxiedOn = new Proxy({}, { get: (e, t) => this.target ? this.target.on[t] : (...e) => {
|
|
1511
1513
|
this.onQueue.push({
|
|
@@ -1532,11 +1534,11 @@ var hi = class {
|
|
|
1532
1534
|
};
|
|
1533
1535
|
//#endregion
|
|
1534
1536
|
//#region node_modules/@vue/devtools-api/lib/esm/index.js
|
|
1535
|
-
function
|
|
1536
|
-
let n = e, r =
|
|
1537
|
-
if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(
|
|
1537
|
+
function xi(e, t) {
|
|
1538
|
+
let n = e, r = pi(), i = fi(), a = mi && n.enableEarlyProxy;
|
|
1539
|
+
if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(hi, e, t);
|
|
1538
1540
|
else {
|
|
1539
|
-
let e = a ? new
|
|
1541
|
+
let e = a ? new bi(n, i) : null;
|
|
1540
1542
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
1541
1543
|
pluginDescriptor: n,
|
|
1542
1544
|
setupFn: t,
|
|
@@ -1546,7 +1548,7 @@ function gi(e, t) {
|
|
|
1546
1548
|
}
|
|
1547
1549
|
//#endregion
|
|
1548
1550
|
//#region node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
|
|
1549
|
-
var
|
|
1551
|
+
var Si = {
|
|
1550
1552
|
À: "A",
|
|
1551
1553
|
Á: "A",
|
|
1552
1554
|
Â: "A",
|
|
@@ -1946,9 +1948,9 @@ var _i = {
|
|
|
1946
1948
|
x̧: "x",
|
|
1947
1949
|
Z̧: "Z",
|
|
1948
1950
|
z̧: "z"
|
|
1949
|
-
},
|
|
1950
|
-
function
|
|
1951
|
-
return e.replace(
|
|
1951
|
+
}, Ci = Object.keys(Si).join("|"), wi = new RegExp(Ci, "g");
|
|
1952
|
+
function Ti(e) {
|
|
1953
|
+
return e.replace(wi, (e) => Si[e]);
|
|
1952
1954
|
}
|
|
1953
1955
|
var G = {
|
|
1954
1956
|
CASE_SENSITIVE_EQUAL: 7,
|
|
@@ -1960,9 +1962,9 @@ var G = {
|
|
|
1960
1962
|
MATCHES: 1,
|
|
1961
1963
|
NO_MATCH: 0
|
|
1962
1964
|
};
|
|
1963
|
-
function
|
|
1965
|
+
function Ei(e, t, n) {
|
|
1964
1966
|
if (n ||= {}, n.threshold = n.threshold ?? G.MATCHES, !n.accessors) {
|
|
1965
|
-
let r =
|
|
1967
|
+
let r = Di(e, t, n);
|
|
1966
1968
|
return {
|
|
1967
1969
|
rankedValue: e,
|
|
1968
1970
|
rank: r,
|
|
@@ -1971,7 +1973,7 @@ function xi(e, t, n) {
|
|
|
1971
1973
|
passed: r >= n.threshold
|
|
1972
1974
|
};
|
|
1973
1975
|
}
|
|
1974
|
-
let r =
|
|
1976
|
+
let r = Mi(e, n.accessors), i = {
|
|
1975
1977
|
rankedValue: e,
|
|
1976
1978
|
rank: G.NO_MATCH,
|
|
1977
1979
|
accessorIndex: -1,
|
|
@@ -1979,15 +1981,15 @@ function xi(e, t, n) {
|
|
|
1979
1981
|
passed: !1
|
|
1980
1982
|
};
|
|
1981
1983
|
for (let e = 0; e < r.length; e++) {
|
|
1982
|
-
let a = r[e], o =
|
|
1984
|
+
let a = r[e], o = Di(a.itemValue, t, n), { minRanking: s, maxRanking: c, threshold: l = n.threshold } = a.attributes;
|
|
1983
1985
|
o < s && o >= G.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);
|
|
1984
1986
|
}
|
|
1985
1987
|
return i;
|
|
1986
1988
|
}
|
|
1987
|
-
function
|
|
1988
|
-
return e =
|
|
1989
|
+
function Di(e, t, n) {
|
|
1990
|
+
return e = Ai(e, n), t = Ai(t, n), t.length > e.length ? G.NO_MATCH : e === t ? G.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? G.EQUAL : e.startsWith(t) ? G.STARTS_WITH : e.includes(` ${t}`) ? G.WORD_STARTS_WITH : e.includes(t) ? G.CONTAINS : t.length === 1 ? G.NO_MATCH : Oi(e).includes(t) ? G.ACRONYM : ki(e, t));
|
|
1989
1991
|
}
|
|
1990
|
-
function
|
|
1992
|
+
function Oi(e) {
|
|
1991
1993
|
let t = "";
|
|
1992
1994
|
return e.split(" ").forEach((e) => {
|
|
1993
1995
|
e.split("-").forEach((e) => {
|
|
@@ -1995,7 +1997,7 @@ function Ci(e) {
|
|
|
1995
1997
|
});
|
|
1996
1998
|
}), t;
|
|
1997
1999
|
}
|
|
1998
|
-
function
|
|
2000
|
+
function ki(e, t) {
|
|
1999
2001
|
let n = 0, r = 0;
|
|
2000
2002
|
function i(e, t, r) {
|
|
2001
2003
|
for (let i = r, a = t.length; i < a; i++) if (t[i] === e) return n += 1, i + 1;
|
|
@@ -2014,20 +2016,20 @@ function wi(e, t) {
|
|
|
2014
2016
|
}
|
|
2015
2017
|
return a(r - o);
|
|
2016
2018
|
}
|
|
2017
|
-
function
|
|
2019
|
+
function Ai(e, t) {
|
|
2018
2020
|
let { keepDiacritics: n } = t;
|
|
2019
|
-
return e = `${e}`, n || (e =
|
|
2021
|
+
return e = `${e}`, n || (e = Ti(e)), e;
|
|
2020
2022
|
}
|
|
2021
|
-
function
|
|
2023
|
+
function ji(e, t) {
|
|
2022
2024
|
let n = t;
|
|
2023
2025
|
typeof t == "object" && (n = t.accessor);
|
|
2024
2026
|
let r = n(e);
|
|
2025
2027
|
return r == null ? [] : Array.isArray(r) ? r : [String(r)];
|
|
2026
2028
|
}
|
|
2027
|
-
function
|
|
2029
|
+
function Mi(e, t) {
|
|
2028
2030
|
let n = [];
|
|
2029
2031
|
for (let r = 0, i = t.length; r < i; r++) {
|
|
2030
|
-
let i = t[r], a =
|
|
2032
|
+
let i = t[r], a = Pi(i), o = ji(e, i);
|
|
2031
2033
|
for (let e = 0, t = o.length; e < t; e++) n.push({
|
|
2032
2034
|
itemValue: o[e],
|
|
2033
2035
|
attributes: a
|
|
@@ -2035,13 +2037,13 @@ function Di(e, t) {
|
|
|
2035
2037
|
}
|
|
2036
2038
|
return n;
|
|
2037
2039
|
}
|
|
2038
|
-
var
|
|
2040
|
+
var Ni = {
|
|
2039
2041
|
maxRanking: Infinity,
|
|
2040
2042
|
minRanking: -Infinity
|
|
2041
2043
|
};
|
|
2042
|
-
function
|
|
2043
|
-
return typeof e == "function" ?
|
|
2044
|
-
...
|
|
2044
|
+
function Pi(e) {
|
|
2045
|
+
return typeof e == "function" ? Ni : {
|
|
2046
|
+
...Ni,
|
|
2045
2047
|
...e
|
|
2046
2048
|
};
|
|
2047
2049
|
}
|
|
@@ -2050,26 +2052,26 @@ function ki(e) {
|
|
|
2050
2052
|
function K(e) {
|
|
2051
2053
|
return e.state.fetchStatus === "fetching" ? 0 : e.state.fetchStatus === "paused" ? 4 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3;
|
|
2052
2054
|
}
|
|
2053
|
-
function
|
|
2055
|
+
function Fi(e) {
|
|
2054
2056
|
let t = K(e);
|
|
2055
2057
|
return t === 0 ? "fetching" : t === 4 ? "paused" : t === 2 ? "stale" : t === 3 ? "inactive" : "fresh";
|
|
2056
2058
|
}
|
|
2057
|
-
function
|
|
2059
|
+
function Ii(e) {
|
|
2058
2060
|
return K(e) === 2 ? 0 : 16777215;
|
|
2059
2061
|
}
|
|
2060
|
-
function
|
|
2062
|
+
function Li(e) {
|
|
2061
2063
|
let t = K(e);
|
|
2062
2064
|
return t === 0 ? 27647 : t === 4 ? 9193963 : t === 2 ? 16757248 : t === 3 ? 4148832 : 33575;
|
|
2063
2065
|
}
|
|
2064
|
-
var
|
|
2065
|
-
"Status > Last Updated": (e, t) => K(e) === K(t) ?
|
|
2066
|
-
"Query Hash":
|
|
2067
|
-
"Last Updated":
|
|
2068
|
-
}, q = "vue-query",
|
|
2069
|
-
function
|
|
2070
|
-
|
|
2066
|
+
var Ri = (e, t) => e.queryHash.localeCompare(t.queryHash), zi = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, Bi = {
|
|
2067
|
+
"Status > Last Updated": (e, t) => K(e) === K(t) ? zi(e, t) : K(e) > K(t) ? 1 : -1,
|
|
2068
|
+
"Query Hash": Ri,
|
|
2069
|
+
"Last Updated": zi
|
|
2070
|
+
}, q = "vue-query", Vi = "Vue Query";
|
|
2071
|
+
function Hi(e, t) {
|
|
2072
|
+
xi({
|
|
2071
2073
|
id: q,
|
|
2072
|
-
label:
|
|
2074
|
+
label: Vi,
|
|
2073
2075
|
packageName: "vue-query",
|
|
2074
2076
|
homepage: "https://tanstack.com/query/latest",
|
|
2075
2077
|
logo: "https://raw.githubusercontent.com/TanStack/query/main/packages/vue-query/media/vue-query.svg",
|
|
@@ -2091,11 +2093,11 @@ function Li(e, t) {
|
|
|
2091
2093
|
sortFn: {
|
|
2092
2094
|
type: "choice",
|
|
2093
2095
|
label: "Sort Function",
|
|
2094
|
-
options: Object.keys(
|
|
2096
|
+
options: Object.keys(Bi).map((e) => ({
|
|
2095
2097
|
label: e,
|
|
2096
2098
|
value: e
|
|
2097
2099
|
})),
|
|
2098
|
-
defaultValue: Object.keys(
|
|
2100
|
+
defaultValue: Object.keys(Bi)[0]
|
|
2099
2101
|
},
|
|
2100
2102
|
onlineMode: {
|
|
2101
2103
|
type: "choice",
|
|
@@ -2117,7 +2119,7 @@ function Li(e, t) {
|
|
|
2117
2119
|
let r = t.getQueryCache();
|
|
2118
2120
|
e.addInspector({
|
|
2119
2121
|
id: q,
|
|
2120
|
-
label:
|
|
2122
|
+
label: Vi,
|
|
2121
2123
|
icon: "api",
|
|
2122
2124
|
nodeActions: [
|
|
2123
2125
|
{
|
|
@@ -2177,7 +2179,7 @@ function Li(e, t) {
|
|
|
2177
2179
|
]
|
|
2178
2180
|
}), e.addTimelineLayer({
|
|
2179
2181
|
id: q,
|
|
2180
|
-
label:
|
|
2182
|
+
label: Vi,
|
|
2181
2183
|
color: 16767308
|
|
2182
2184
|
}), r.subscribe((t) => {
|
|
2183
2185
|
e.sendInspectorTree(q), e.sendInspectorState(q), [
|
|
@@ -2201,15 +2203,15 @@ function Li(e, t) {
|
|
|
2201
2203
|
}), e.on.getInspectorTree((t) => {
|
|
2202
2204
|
if (t.inspectorId === q) {
|
|
2203
2205
|
let n = r.getAll(), i = e.getSettings();
|
|
2204
|
-
t.rootNodes = (t.filter ? n.filter((e) =>
|
|
2205
|
-
let t =
|
|
2206
|
+
t.rootNodes = (t.filter ? n.filter((e) => Ei(e.queryHash, t.filter).passed) : [...n]).sort((e, t) => Bi[i.sortFn](e, t) * i.baseSort).map((e) => {
|
|
2207
|
+
let t = Fi(e);
|
|
2206
2208
|
return {
|
|
2207
2209
|
id: e.queryHash,
|
|
2208
2210
|
label: e.queryHash,
|
|
2209
2211
|
tags: [{
|
|
2210
2212
|
label: `${t} [${e.getObserversCount()}]`,
|
|
2211
|
-
textColor:
|
|
2212
|
-
backgroundColor:
|
|
2213
|
+
textColor: Ii(e),
|
|
2214
|
+
backgroundColor: Li(e)
|
|
2213
2215
|
}]
|
|
2214
2216
|
};
|
|
2215
2217
|
});
|
|
@@ -2226,7 +2228,7 @@ function Li(e, t) {
|
|
|
2226
2228
|
},
|
|
2227
2229
|
{
|
|
2228
2230
|
key: "Query status",
|
|
2229
|
-
value:
|
|
2231
|
+
value: Fi(t)
|
|
2230
2232
|
},
|
|
2231
2233
|
{
|
|
2232
2234
|
key: "Observers",
|
|
@@ -2252,9 +2254,9 @@ function Li(e, t) {
|
|
|
2252
2254
|
}
|
|
2253
2255
|
//#endregion
|
|
2254
2256
|
//#region node_modules/@tanstack/vue-query/build/modern/vueQueryPlugin.js
|
|
2255
|
-
var
|
|
2256
|
-
let n =
|
|
2257
|
-
r = "queryClient" in t && t.queryClient ? t.queryClient : new
|
|
2257
|
+
var Ui = { install: (e, t = {}) => {
|
|
2258
|
+
let n = ii(t.queryClientKey), r;
|
|
2259
|
+
r = "queryClient" in t && t.queryClient ? t.queryClient : new di("queryClientConfig" in t ? t.queryClientConfig : void 0), jr.isServer() || r.mount();
|
|
2258
2260
|
let i = () => {};
|
|
2259
2261
|
if (t.clientPersister) {
|
|
2260
2262
|
r.isRestoring && (r.isRestoring.value = !0);
|
|
@@ -2273,17 +2275,17 @@ var Ri = { install: (e, t = {}) => {
|
|
|
2273
2275
|
a(), t();
|
|
2274
2276
|
};
|
|
2275
2277
|
}
|
|
2276
|
-
e.provide(n, r), process.env.NODE_ENV === "development" && t.enableDevtoolsV6Plugin &&
|
|
2278
|
+
e.provide(n, r), process.env.NODE_ENV === "development" && t.enableDevtoolsV6Plugin && Hi(e, r);
|
|
2277
2279
|
} };
|
|
2278
2280
|
//#endregion
|
|
2279
2281
|
//#region src/web-core/query.ts
|
|
2280
|
-
function
|
|
2281
|
-
return new
|
|
2282
|
+
function Wi() {
|
|
2283
|
+
return new di({ defaultOptions: { queries: {
|
|
2282
2284
|
staleTime: 3e4,
|
|
2283
2285
|
refetchOnWindowFocus: !1
|
|
2284
2286
|
} } });
|
|
2285
2287
|
}
|
|
2286
|
-
var
|
|
2288
|
+
var Gi = {
|
|
2287
2289
|
session: { current: ["session", "current"] },
|
|
2288
2290
|
menu: { mine: ["menu", "mine"] },
|
|
2289
2291
|
staticModule: {
|
|
@@ -2309,48 +2311,76 @@ var Bi = {
|
|
|
2309
2311
|
};
|
|
2310
2312
|
//#endregion
|
|
2311
2313
|
//#region src/web-core/businessNotifications.ts
|
|
2312
|
-
function
|
|
2314
|
+
function Ki(e, t) {
|
|
2313
2315
|
return e.request({
|
|
2314
2316
|
method: "POST",
|
|
2315
2317
|
path: `/${encodeURIComponent(t.moduleAlias)}/${encodeURIComponent(t.actionCode)}/${encodeURIComponent(t.recordId)}`,
|
|
2316
2318
|
body: { payload: t.arguments ?? {} }
|
|
2317
2319
|
});
|
|
2318
2320
|
}
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2321
|
+
//#endregion
|
|
2322
|
+
//#region src/platform-admin-runtime/platformAdminRoutes.ts
|
|
2323
|
+
var qi = A(() => import("./workspaceViews-CCg6V0pr.js").then((e) => e.n)), Ji = A(() => import("./BusinessActivityLogView-UC4rH4Fn.js")), Yi = A(() => import("./RequestErrorLogView-WnGvMWiF.js")), Xi = A(() => import("./LoginAuditLogView-Cjrp8MKX.js")), J = [
|
|
2324
|
+
{
|
|
2325
|
+
route: "/platform/logs/runtime",
|
|
2326
|
+
moduleAlias: "platform.runtime_log",
|
|
2327
|
+
component: A(() => import("./RuntimeLogView-BRl4ZDkU.js")),
|
|
2328
|
+
layout: "workspace"
|
|
2329
|
+
},
|
|
2330
|
+
{
|
|
2331
|
+
route: "/platform/logs/activity",
|
|
2332
|
+
moduleAlias: "platform.business_activity_log",
|
|
2333
|
+
component: Ji,
|
|
2334
|
+
layout: "workspace"
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
route: "/platform/logs/errors",
|
|
2338
|
+
moduleAlias: "platform.request_error_log",
|
|
2339
|
+
component: Yi,
|
|
2340
|
+
layout: "workspace"
|
|
2341
|
+
},
|
|
2342
|
+
{
|
|
2343
|
+
route: "/iam/logs/login",
|
|
2344
|
+
moduleAlias: "iam.login_audit_log",
|
|
2345
|
+
component: Xi,
|
|
2346
|
+
layout: "workspace"
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
route: "/iam/role/authorization",
|
|
2350
|
+
moduleAlias: "iam.role",
|
|
2351
|
+
component: qi,
|
|
2352
|
+
layout: "workspace",
|
|
2353
|
+
menuEntry: !1
|
|
2354
|
+
}
|
|
2355
|
+
], Zi = Array.from(/* @__PURE__ */ new Set(["/_platform/workspace", ...J.map((e) => e.route)])), Qi = Object.fromEntries(J.filter((e) => e.menuEntry !== !1).map((e) => [e.moduleAlias, e.route])), $i = Object.fromEntries(J.map((e) => [e.route, e.layout]));
|
|
2356
|
+
function ea(e) {
|
|
2357
|
+
if (e) return J.find((t) => na(t, e.target));
|
|
2328
2358
|
}
|
|
2329
|
-
function
|
|
2330
|
-
return e?.pageType === "business-route" && !!
|
|
2359
|
+
function ta(e) {
|
|
2360
|
+
return e?.pageType === "business-route" && !!ea(e);
|
|
2331
2361
|
}
|
|
2332
|
-
function
|
|
2333
|
-
return t.route ?
|
|
2362
|
+
function na(e, t) {
|
|
2363
|
+
return t.route ? ra(e.route, t.route) && (t.moduleAlias === void 0 || t.moduleAlias === e.moduleAlias) : t.moduleAlias === e.moduleAlias;
|
|
2334
2364
|
}
|
|
2335
|
-
function
|
|
2365
|
+
function ra(e, t) {
|
|
2336
2366
|
let n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean);
|
|
2337
2367
|
return n.length === r.length && n.every((e, t) => e.startsWith(":") || e === r[t]);
|
|
2338
2368
|
}
|
|
2339
2369
|
//#endregion
|
|
2340
2370
|
//#region src/app/pageRouteContext.ts
|
|
2341
|
-
var
|
|
2342
|
-
function
|
|
2343
|
-
|
|
2371
|
+
var ia = Symbol("page-route");
|
|
2372
|
+
function aa(e) {
|
|
2373
|
+
$n(ia, w(e));
|
|
2344
2374
|
}
|
|
2345
2375
|
//#endregion
|
|
2346
2376
|
//#region src/platform-admin-runtime/PlatformAdminOutlet.vue
|
|
2347
|
-
var
|
|
2377
|
+
var oa = /* @__PURE__ */ j({
|
|
2348
2378
|
name: "PlatformAdminRouteOutlet",
|
|
2349
2379
|
__name: "PlatformAdminOutlet",
|
|
2350
2380
|
props: { descriptor: {} },
|
|
2351
2381
|
setup(e) {
|
|
2352
|
-
let t = e, n =
|
|
2353
|
-
|
|
2382
|
+
let t = e, n = w(() => ea(t.descriptor)), r = w(() => t.descriptor.target.moduleAlias ?? n.value?.moduleAlias), i = w(() => t.descriptor.target.query?.workspacePresentation);
|
|
2383
|
+
qe(w(() => t.descriptor.layout ?? n.value?.layout)), aa(() => {
|
|
2354
2384
|
let e = n.value?.route ?? t.descriptor.target.route ?? "", r = t.descriptor.target.route ?? e;
|
|
2355
2385
|
return {
|
|
2356
2386
|
path: r,
|
|
@@ -2366,22 +2396,22 @@ var Zi = /* @__PURE__ */ j({
|
|
|
2366
2396
|
e.startsWith(":") && i[t] && (n[e.slice(1)] = i[t]);
|
|
2367
2397
|
}), n;
|
|
2368
2398
|
}
|
|
2369
|
-
return (t, a) => n.value && r.value ? (M(),
|
|
2399
|
+
return (t, a) => n.value && r.value ? (M(), T(F(et), {
|
|
2370
2400
|
key: 0,
|
|
2371
2401
|
"module-alias": r.value
|
|
2372
2402
|
}, {
|
|
2373
|
-
default: I(() => [i.value === "drawer" || i.value === "tab" ? (M(),
|
|
2403
|
+
default: I(() => [i.value === "drawer" || i.value === "tab" ? (M(), T(F(hn), {
|
|
2374
2404
|
key: 0,
|
|
2375
2405
|
descriptor: e.descriptor
|
|
2376
|
-
}, null, 8, ["descriptor"])) : (M(),
|
|
2406
|
+
}, null, 8, ["descriptor"])) : (M(), T(nr(n.value.component), { key: 1 }))]),
|
|
2377
2407
|
_: 1
|
|
2378
|
-
}, 8, ["module-alias"])) :
|
|
2408
|
+
}, 8, ["module-alias"])) : E("v-if", !0);
|
|
2379
2409
|
}
|
|
2380
|
-
}),
|
|
2381
|
-
function
|
|
2382
|
-
return
|
|
2410
|
+
}), sa = /^\/openapi\/([a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)+)\/?$/;
|
|
2411
|
+
function ca(e) {
|
|
2412
|
+
return sa.exec(e)?.[1];
|
|
2383
2413
|
}
|
|
2384
|
-
function
|
|
2414
|
+
function la(e, t) {
|
|
2385
2415
|
return {
|
|
2386
2416
|
pageType: "platform-route",
|
|
2387
2417
|
openMode: "workbench-route",
|
|
@@ -2398,7 +2428,7 @@ function ea(e, t) {
|
|
|
2398
2428
|
}
|
|
2399
2429
|
};
|
|
2400
2430
|
}
|
|
2401
|
-
function
|
|
2431
|
+
function ua() {
|
|
2402
2432
|
return {
|
|
2403
2433
|
pageType: "platform-route",
|
|
2404
2434
|
openMode: "workbench-route",
|
|
@@ -2412,20 +2442,20 @@ function ta() {
|
|
|
2412
2442
|
}
|
|
2413
2443
|
};
|
|
2414
2444
|
}
|
|
2415
|
-
function
|
|
2445
|
+
function da(e) {
|
|
2416
2446
|
if (e?.pageType !== "platform-route" || !("route" in e.target)) return !1;
|
|
2417
|
-
let t =
|
|
2447
|
+
let t = ca(e.target.route ?? "");
|
|
2418
2448
|
return t !== void 0 && e.target.moduleAlias === t;
|
|
2419
2449
|
}
|
|
2420
|
-
function
|
|
2450
|
+
function fa(e) {
|
|
2421
2451
|
return e === "/openapi" || e === "/openapi/";
|
|
2422
2452
|
}
|
|
2423
2453
|
//#endregion
|
|
2424
2454
|
//#region src/app/workbenchStartup.ts
|
|
2425
|
-
function
|
|
2426
|
-
let i =
|
|
2455
|
+
function pa(e, t, n, r = {}) {
|
|
2456
|
+
let i = $t(t, n, r), a = e.find((e) => e.key === i.key);
|
|
2427
2457
|
if (a) {
|
|
2428
|
-
let o = a.pageDescriptor ?
|
|
2458
|
+
let o = a.pageDescriptor ? Pa(t, n, a.pageDescriptor, r) : i;
|
|
2429
2459
|
return {
|
|
2430
2460
|
tabs: e.map((e) => e.key === i.key ? o : e),
|
|
2431
2461
|
activeTabKey: i.key
|
|
@@ -2436,8 +2466,8 @@ function ia(e, t, n, r = {}) {
|
|
|
2436
2466
|
activeTabKey: i.key
|
|
2437
2467
|
};
|
|
2438
2468
|
}
|
|
2439
|
-
function
|
|
2440
|
-
let r = X(x(t), n), i = e.find((e) => e.key === r.key || r.pageDescriptor?.tabPolicy.identity === "by-params" && e.pageDescriptor?.tabPolicy.identity === "by-params" &&
|
|
2469
|
+
function ma(e, t, n = {}) {
|
|
2470
|
+
let r = X(x(t), n), i = e.find((e) => e.key === r.key || r.pageDescriptor?.tabPolicy.identity === "by-params" && e.pageDescriptor?.tabPolicy.identity === "by-params" && S(e.pageDescriptor) === S(r.pageDescriptor));
|
|
2441
2471
|
return i ? {
|
|
2442
2472
|
tabs: e,
|
|
2443
2473
|
activeTabKey: i.key,
|
|
@@ -2448,48 +2478,48 @@ function aa(e, t, n = {}) {
|
|
|
2448
2478
|
created: !0
|
|
2449
2479
|
};
|
|
2450
2480
|
}
|
|
2451
|
-
function
|
|
2452
|
-
return t.menuType === "link" && t.openMode === "window" ? t.externalUrl :
|
|
2481
|
+
function ha(e, t, n = {}) {
|
|
2482
|
+
return t.menuType === "link" && t.openMode === "window" ? t.externalUrl : C(ln(t, {
|
|
2453
2483
|
...n,
|
|
2454
2484
|
title: e.title
|
|
2455
2485
|
}), n);
|
|
2456
2486
|
}
|
|
2457
|
-
function
|
|
2487
|
+
function ga(e) {
|
|
2458
2488
|
let t = (e.tabs ?? []).find((t) => t.key === e.activeTabKey);
|
|
2459
2489
|
if (t?.fullPath) return t.fullPath;
|
|
2460
|
-
let n = t?.pageDescriptor ?? (t?.target ?
|
|
2461
|
-
return n?.pageType === "platform-route" &&
|
|
2490
|
+
let n = t?.pageDescriptor ?? (t?.target ? ln(t.target, { title: t.title }) : void 0);
|
|
2491
|
+
return n?.pageType === "platform-route" && da(n) && n.target.route ? n.target.route : n ? C(n) : void 0;
|
|
2462
2492
|
}
|
|
2463
|
-
function
|
|
2493
|
+
function _a(e, t, n = {}, r = !1) {
|
|
2464
2494
|
if (t === "/" || t === "") return e;
|
|
2465
|
-
let i = t.split(/[?#]/, 1)[0] ?? "", a =
|
|
2495
|
+
let i = t.split(/[?#]/, 1)[0] ?? "", a = ca(i), o = a ? la(a) : fa(i) ? ua() : un(t, n);
|
|
2466
2496
|
if (!o) return e;
|
|
2467
|
-
let s = o.menuId ?
|
|
2497
|
+
let s = o.menuId ? Va(e.menus, o.menuId) : void 0, c = s ? b(s) : void 0, l = s && c && xa(c, o) ? {
|
|
2468
2498
|
...o,
|
|
2469
2499
|
title: s.title
|
|
2470
|
-
} : o,
|
|
2500
|
+
} : o, u = ba(l), d = u ?? l, f = e.tabs ?? [], p = u ? ya(f, u) : void 0, m = u ? va(u, p) : r ? x(d) : d, h = s && za(s, m, n) ? s : Ra(e.menus, m, n), g = h === s ? c : h ? b(h) : void 0, _ = u ? X(m, n) : h && g && Yt(g) ? Pa(h, g, m, n) : X(m, n), ee = Na(f, _);
|
|
2471
2501
|
return {
|
|
2472
2502
|
...e,
|
|
2473
2503
|
tabs: ee,
|
|
2474
|
-
activeTabKey:
|
|
2504
|
+
activeTabKey: _.key
|
|
2475
2505
|
};
|
|
2476
2506
|
}
|
|
2477
|
-
function
|
|
2507
|
+
function va(e, t) {
|
|
2478
2508
|
return t?.instanceKey ? x(e, t.instanceKey) : t ? e : x(e);
|
|
2479
2509
|
}
|
|
2480
|
-
function
|
|
2481
|
-
let n =
|
|
2482
|
-
return e.find((e) => e.pageDescriptor?.pageType === "business-route" &&
|
|
2510
|
+
function ya(e, t) {
|
|
2511
|
+
let n = S(t);
|
|
2512
|
+
return e.find((e) => e.pageDescriptor?.pageType === "business-route" && S(e.pageDescriptor) === n);
|
|
2483
2513
|
}
|
|
2484
|
-
function
|
|
2514
|
+
function ba(e) {
|
|
2485
2515
|
if (e.pageType !== "business-route") return;
|
|
2486
|
-
let t =
|
|
2487
|
-
return t ?
|
|
2516
|
+
let t = dn(e);
|
|
2517
|
+
return t ? Pn(t.view, t.input, t.presentation, e.title) : void 0;
|
|
2488
2518
|
}
|
|
2489
|
-
function
|
|
2519
|
+
function xa(e, t) {
|
|
2490
2520
|
return t.pageType === "dynamic-module" && e.menuType === "module" && e.moduleAlias === t.target.moduleAlias;
|
|
2491
2521
|
}
|
|
2492
|
-
function
|
|
2522
|
+
function Sa(e, t, n) {
|
|
2493
2523
|
let r = e.findIndex((e) => e.key === n);
|
|
2494
2524
|
if (r < 0) return {
|
|
2495
2525
|
tabs: e,
|
|
@@ -2504,7 +2534,7 @@ function pa(e, t, n) {
|
|
|
2504
2534
|
activeTabKey: t
|
|
2505
2535
|
};
|
|
2506
2536
|
}
|
|
2507
|
-
function
|
|
2537
|
+
function Ca(e, t, n) {
|
|
2508
2538
|
let r = new Set(n), i = e.findIndex((e) => e.key === t), a = e.filter((e) => !r.has(e.key) || e.closable === !1);
|
|
2509
2539
|
return !t || !r.has(t) ? {
|
|
2510
2540
|
tabs: a,
|
|
@@ -2514,16 +2544,16 @@ function ma(e, t, n) {
|
|
|
2514
2544
|
activeTabKey: (a.find((t) => e.indexOf(t) > i) ?? a.at(-1))?.key
|
|
2515
2545
|
};
|
|
2516
2546
|
}
|
|
2517
|
-
function
|
|
2547
|
+
function wa(e, t, n = !0) {
|
|
2518
2548
|
let r = new Map(e.map((e) => [e.key, e])), i = /* @__PURE__ */ new Set();
|
|
2519
2549
|
return [...t.flatMap((e) => {
|
|
2520
2550
|
if (i.has(e.key)) return [];
|
|
2521
2551
|
i.add(e.key);
|
|
2522
2552
|
let t = r.get(e.key);
|
|
2523
|
-
return t ? [
|
|
2553
|
+
return t ? [Ta(t, e)] : n ? [e] : [];
|
|
2524
2554
|
}), ...e.filter((e) => !i.has(e.key))];
|
|
2525
2555
|
}
|
|
2526
|
-
function
|
|
2556
|
+
function Ta(e, t) {
|
|
2527
2557
|
let n = e.pageDescriptor, r = t.pageDescriptor;
|
|
2528
2558
|
if (!n || !r || !t.target) return e;
|
|
2529
2559
|
let i = {
|
|
@@ -2538,48 +2568,48 @@ function ga(e, t) {
|
|
|
2538
2568
|
target: t.target
|
|
2539
2569
|
};
|
|
2540
2570
|
}
|
|
2541
|
-
function
|
|
2571
|
+
function Ea(e, t, n = {}) {
|
|
2542
2572
|
let r = /* @__PURE__ */ new Map();
|
|
2543
|
-
|
|
2573
|
+
Aa(t, r);
|
|
2544
2574
|
let i = /* @__PURE__ */ new Set();
|
|
2545
2575
|
return e.flatMap((e) => {
|
|
2546
|
-
let t = e.pageDescriptor?.menuId ?? e.target?.menuId ??
|
|
2576
|
+
let t = e.pageDescriptor?.menuId ?? e.target?.menuId ?? Da(e.key);
|
|
2547
2577
|
if (t) {
|
|
2548
2578
|
if (i.has(t)) return [];
|
|
2549
2579
|
let e = r.get(t);
|
|
2550
|
-
return e ? (i.add(t), [
|
|
2580
|
+
return e ? (i.add(t), [$t(e.menu, e.target, n)]) : [];
|
|
2551
2581
|
}
|
|
2552
|
-
let a =
|
|
2582
|
+
let a = Oa(e);
|
|
2553
2583
|
return !a || i.has(a.key) ? [] : (i.add(a.key), [a]);
|
|
2554
2584
|
});
|
|
2555
2585
|
}
|
|
2556
|
-
function
|
|
2586
|
+
function Da(e) {
|
|
2557
2587
|
return e.startsWith("menu:") && e.slice(5) || void 0;
|
|
2558
2588
|
}
|
|
2559
|
-
function
|
|
2589
|
+
function Oa(e) {
|
|
2560
2590
|
let t = e.pageDescriptor;
|
|
2561
2591
|
if (t?.pageType !== "business-route") return;
|
|
2562
|
-
let n =
|
|
2563
|
-
if (n && n.presentation === "tab") return X(
|
|
2592
|
+
let n = dn(t);
|
|
2593
|
+
if (n && n.presentation === "tab") return X(Pn(n.view, n.input, "tab"));
|
|
2564
2594
|
}
|
|
2565
|
-
function
|
|
2595
|
+
function ka(e, t) {
|
|
2566
2596
|
let n = e.findIndex((e) => e.key === t.key);
|
|
2567
2597
|
return n < 0 ? [...e, t] : e.map((e, r) => r === n ? t : e);
|
|
2568
2598
|
}
|
|
2569
|
-
function
|
|
2599
|
+
function Aa(e, t) {
|
|
2570
2600
|
for (let n of e) {
|
|
2571
|
-
let e =
|
|
2572
|
-
e &&
|
|
2601
|
+
let e = b(n.record);
|
|
2602
|
+
e && Yt(e) && t.set(n.record.id, {
|
|
2573
2603
|
menu: n.record,
|
|
2574
2604
|
target: e
|
|
2575
|
-
}),
|
|
2605
|
+
}), Aa(n.children, t);
|
|
2576
2606
|
}
|
|
2577
2607
|
}
|
|
2578
2608
|
function Y(e, t) {
|
|
2579
2609
|
let n = new Set(t);
|
|
2580
2610
|
return e.filter((e) => !n.has(e.key));
|
|
2581
2611
|
}
|
|
2582
|
-
function
|
|
2612
|
+
function ja(e, t, n = []) {
|
|
2583
2613
|
if (e.length !== t.length || new Set(t).size !== e.length) return e;
|
|
2584
2614
|
let r = new Map(e.map((e) => [e.key, e]));
|
|
2585
2615
|
if (t.some((e) => !r.has(e))) return e;
|
|
@@ -2587,27 +2617,27 @@ function Sa(e, t, n = []) {
|
|
|
2587
2617
|
return [...i.filter((e) => a.has(e.key)), ...i.filter((e) => !a.has(e.key))];
|
|
2588
2618
|
}
|
|
2589
2619
|
function X(e, t = {}) {
|
|
2590
|
-
let n =
|
|
2620
|
+
let n = C(e, t);
|
|
2591
2621
|
return {
|
|
2592
|
-
...
|
|
2593
|
-
key:
|
|
2594
|
-
title: e.title ??
|
|
2622
|
+
...Ma(e) ? { instanceKey: Ma(e) } : {},
|
|
2623
|
+
key: cn(e),
|
|
2624
|
+
title: e.title ?? La(e),
|
|
2595
2625
|
fullPath: n,
|
|
2596
2626
|
pageDescriptor: e,
|
|
2597
2627
|
restoreState: { url: n },
|
|
2598
2628
|
closable: !0
|
|
2599
2629
|
};
|
|
2600
2630
|
}
|
|
2601
|
-
function
|
|
2631
|
+
function Ma(e) {
|
|
2602
2632
|
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;
|
|
2603
2633
|
return typeof n == "string" && n ? n : void 0;
|
|
2604
2634
|
}
|
|
2605
|
-
function
|
|
2635
|
+
function Na(e, t) {
|
|
2606
2636
|
let n = e.findIndex((e) => e.key === t.key);
|
|
2607
2637
|
return n < 0 ? [...e, t] : e.map((e, r) => r === n ? t : e);
|
|
2608
2638
|
}
|
|
2609
|
-
function
|
|
2610
|
-
let i =
|
|
2639
|
+
function Pa(e, t, n, r) {
|
|
2640
|
+
let i = $t(e, t, r), a = i.pageDescriptor ?? n, o = Fa(n) && Fa(a) || Ia(n) && Ia(a) ? {
|
|
2611
2641
|
...n,
|
|
2612
2642
|
title: n.title ?? e.title,
|
|
2613
2643
|
menuId: e.id,
|
|
@@ -2628,61 +2658,61 @@ function Ta(e, t, n, r) {
|
|
|
2628
2658
|
target: t
|
|
2629
2659
|
};
|
|
2630
2660
|
}
|
|
2631
|
-
function
|
|
2661
|
+
function Fa(e) {
|
|
2632
2662
|
return e.pageType === "platform-route" || e.pageType === "business-route";
|
|
2633
2663
|
}
|
|
2634
|
-
function
|
|
2664
|
+
function Ia(e) {
|
|
2635
2665
|
return e.pageType === "remote-url" || e.pageType === "external-link";
|
|
2636
2666
|
}
|
|
2637
|
-
function
|
|
2667
|
+
function La(e) {
|
|
2638
2668
|
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;
|
|
2639
2669
|
}
|
|
2640
|
-
function
|
|
2670
|
+
function Ra(e, t, n) {
|
|
2641
2671
|
for (let r of e) {
|
|
2642
|
-
if (
|
|
2643
|
-
let e =
|
|
2672
|
+
if (za(r.record, t, n)) return r.record;
|
|
2673
|
+
let e = Ra(r.children, t, n);
|
|
2644
2674
|
if (e) return e;
|
|
2645
2675
|
}
|
|
2646
2676
|
}
|
|
2647
|
-
function
|
|
2648
|
-
let r =
|
|
2677
|
+
function za(e, t, n) {
|
|
2678
|
+
let r = b(e), i = r ? ln(r, {
|
|
2649
2679
|
...n,
|
|
2650
2680
|
title: e.title
|
|
2651
2681
|
}) : void 0;
|
|
2652
|
-
return i ?
|
|
2682
|
+
return i ? Ba(i, t) : !1;
|
|
2653
2683
|
}
|
|
2654
|
-
function
|
|
2684
|
+
function Ba(e, t) {
|
|
2655
2685
|
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;
|
|
2656
2686
|
}
|
|
2657
|
-
function
|
|
2687
|
+
function Va(e, t) {
|
|
2658
2688
|
for (let n of e) {
|
|
2659
2689
|
if (n.record.id === t) return n.record;
|
|
2660
|
-
let e =
|
|
2690
|
+
let e = Va(n.children, t);
|
|
2661
2691
|
if (e) return e;
|
|
2662
2692
|
}
|
|
2663
2693
|
}
|
|
2664
2694
|
//#endregion
|
|
2665
2695
|
//#region src/app/workbenchSessionTabs.ts
|
|
2666
|
-
function
|
|
2696
|
+
function Ha(e) {
|
|
2667
2697
|
if (!Array.isArray(e)) return [];
|
|
2668
2698
|
let t = /* @__PURE__ */ new Set();
|
|
2669
|
-
return e.flatMap((e) => !
|
|
2699
|
+
return e.flatMap((e) => !Ua(e) || t.has(e.key) ? [] : (t.add(e.key), [e]));
|
|
2670
2700
|
}
|
|
2671
|
-
function
|
|
2701
|
+
function Ua(e) {
|
|
2672
2702
|
let t = e;
|
|
2673
|
-
return Z(e) && typeof t.key == "string" && typeof t.title == "string" && (
|
|
2703
|
+
return Z(e) && typeof t.key == "string" && typeof t.title == "string" && (Wa(t.pageDescriptor) || Ka(t.target));
|
|
2674
2704
|
}
|
|
2675
|
-
function
|
|
2705
|
+
function Wa(e) {
|
|
2676
2706
|
return !Z(e) || !Z(e.target) || !Z(e.tabPolicy) || ![
|
|
2677
2707
|
"by-menu",
|
|
2678
2708
|
"by-target",
|
|
2679
2709
|
"by-params"
|
|
2680
|
-
].includes(String(e.tabPolicy.identity)) ? !1 : e.pageType === "platform-route" ? e.openMode === "workbench-route" && e.hostType === "platform-route-host" &&
|
|
2710
|
+
].includes(String(e.tabPolicy.identity)) ? !1 : e.pageType === "platform-route" ? e.openMode === "workbench-route" && e.hostType === "platform-route-host" && Ga(e.target) : e.pageType === "business-route" ? e.openMode === "workbench-route" && e.hostType === "business-route-host" && Ga(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";
|
|
2681
2711
|
}
|
|
2682
|
-
function
|
|
2712
|
+
function Ga(e) {
|
|
2683
2713
|
return typeof e.route == "string" || typeof e.routeName == "string" || typeof e.pageKey == "string";
|
|
2684
2714
|
}
|
|
2685
|
-
function
|
|
2715
|
+
function Ka(e) {
|
|
2686
2716
|
return !Z(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";
|
|
2687
2717
|
}
|
|
2688
2718
|
function Z(e) {
|
|
@@ -2690,27 +2720,27 @@ function Z(e) {
|
|
|
2690
2720
|
}
|
|
2691
2721
|
//#endregion
|
|
2692
2722
|
//#region src/app/lockedTabPreference.ts
|
|
2693
|
-
var
|
|
2694
|
-
async function
|
|
2695
|
-
return
|
|
2723
|
+
var qa = "workbench.locked-tabs";
|
|
2724
|
+
async function Ja(e) {
|
|
2725
|
+
return Xa(await e.restore(qa, [], { persistence: "backend" }));
|
|
2696
2726
|
}
|
|
2697
|
-
async function
|
|
2698
|
-
await e.set(
|
|
2727
|
+
async function Ya(e, t) {
|
|
2728
|
+
await e.set(qa, t, { persistence: "backend" });
|
|
2699
2729
|
}
|
|
2700
|
-
function
|
|
2701
|
-
return
|
|
2730
|
+
function Xa(e) {
|
|
2731
|
+
return Ha(e);
|
|
2702
2732
|
}
|
|
2703
2733
|
//#endregion
|
|
2704
2734
|
//#region src/consumer/PlatformAdminOutlet.vue
|
|
2705
|
-
var
|
|
2735
|
+
var Za = /* @__PURE__ */ j({
|
|
2706
2736
|
name: "PlatformAdminOutlet",
|
|
2707
2737
|
__name: "PlatformAdminOutlet",
|
|
2708
2738
|
props: { descriptor: {} },
|
|
2709
2739
|
setup(e) {
|
|
2710
|
-
return (t, n) => F(
|
|
2740
|
+
return (t, n) => F(ta)(e.descriptor) ? (M(), T(oa, {
|
|
2711
2741
|
key: 0,
|
|
2712
2742
|
descriptor: e.descriptor
|
|
2713
|
-
}, null, 8, ["descriptor"])) : (M(),
|
|
2743
|
+
}, null, 8, ["descriptor"])) : (M(), T(Fn, {
|
|
2714
2744
|
key: 1,
|
|
2715
2745
|
descriptor: e.descriptor
|
|
2716
2746
|
}, null, 8, ["descriptor"]));
|
|
@@ -2718,8 +2748,8 @@ var Ha = /* @__PURE__ */ j({
|
|
|
2718
2748
|
});
|
|
2719
2749
|
//#endregion
|
|
2720
2750
|
//#region src/app/workbenchRouteSync.ts
|
|
2721
|
-
function
|
|
2722
|
-
let r =
|
|
2751
|
+
function Qa(e, t, n) {
|
|
2752
|
+
let r = ga(e) ?? "/";
|
|
2723
2753
|
return r === t ? void 0 : {
|
|
2724
2754
|
url: r,
|
|
2725
2755
|
mode: n
|
|
@@ -2727,7 +2757,7 @@ function Ua(e, t, n) {
|
|
|
2727
2757
|
}
|
|
2728
2758
|
//#endregion
|
|
2729
2759
|
//#region src/consumer/AppWorkbenchShell.vue
|
|
2730
|
-
var
|
|
2760
|
+
var $a = /* @__PURE__ */ j({
|
|
2731
2761
|
name: "AppWorkbenchShell",
|
|
2732
2762
|
__name: "AppWorkbenchShell",
|
|
2733
2763
|
props: {
|
|
@@ -2753,154 +2783,154 @@ var Wa = /* @__PURE__ */ j({
|
|
|
2753
2783
|
"userCommand"
|
|
2754
2784
|
],
|
|
2755
2785
|
setup(e, { emit: t }) {
|
|
2756
|
-
let n = e, r = t, i =
|
|
2757
|
-
|
|
2786
|
+
let n = e, r = t, i = w(() => n.startup.activeTabKey), a = N([]), o = 0, s = Promise.resolve(), c = !1;
|
|
2787
|
+
vn({
|
|
2758
2788
|
refreshMenus: n.loadMenus ? async () => {
|
|
2759
2789
|
let e = n.startup.session, t = await n.loadMenus();
|
|
2760
|
-
if (!
|
|
2790
|
+
if (!c || e !== n.startup.session) throw Error("登录状态已变化,请重试");
|
|
2761
2791
|
return r("update:startup", {
|
|
2762
2792
|
...n.startup,
|
|
2763
2793
|
menus: t
|
|
2764
2794
|
}), t;
|
|
2765
2795
|
} : void 0,
|
|
2766
2796
|
openMenu: (e) => {
|
|
2767
|
-
let t =
|
|
2768
|
-
t &&
|
|
2797
|
+
let t = b(e);
|
|
2798
|
+
t && u(e, t);
|
|
2769
2799
|
},
|
|
2770
|
-
openRoute:
|
|
2771
|
-
replaceRoute:
|
|
2772
|
-
closeCurrentTab:
|
|
2773
|
-
openPage:
|
|
2800
|
+
openRoute: te,
|
|
2801
|
+
replaceRoute: ne,
|
|
2802
|
+
closeCurrentTab: re,
|
|
2803
|
+
openPage: ee,
|
|
2774
2804
|
replacePage: oe,
|
|
2775
|
-
closePage:
|
|
2776
|
-
setTabName:
|
|
2777
|
-
}),
|
|
2778
|
-
|
|
2779
|
-
}),
|
|
2780
|
-
|
|
2781
|
-
}),
|
|
2782
|
-
function
|
|
2805
|
+
closePage: f,
|
|
2806
|
+
setTabName: ie
|
|
2807
|
+
}), Qn(() => {
|
|
2808
|
+
c = !0, Cn(), le(), ce(n.location);
|
|
2809
|
+
}), Zn(() => {
|
|
2810
|
+
c = !1;
|
|
2811
|
+
}), rr(() => n.location, (e) => ce(e));
|
|
2812
|
+
function l(e, t = void 0) {
|
|
2783
2813
|
r("update:startup", e), t && se(e, t);
|
|
2784
2814
|
}
|
|
2785
|
-
function
|
|
2815
|
+
function u(e, t) {
|
|
2786
2816
|
if (t.openMode === "window") {
|
|
2787
|
-
window.open(
|
|
2817
|
+
window.open(ha(e, t), "_blank", "noopener,noreferrer");
|
|
2788
2818
|
return;
|
|
2789
2819
|
}
|
|
2790
|
-
let r =
|
|
2791
|
-
|
|
2820
|
+
let r = pa(n.startup.tabs ?? [], e, t, n.resolveOptions);
|
|
2821
|
+
l({
|
|
2792
2822
|
...n.startup,
|
|
2793
2823
|
tabs: r.tabs,
|
|
2794
2824
|
activeTabKey: r.activeTabKey
|
|
2795
2825
|
}, "push");
|
|
2796
2826
|
}
|
|
2797
|
-
function
|
|
2798
|
-
e !== n.startup.activeTabKey &&
|
|
2827
|
+
function d(e) {
|
|
2828
|
+
e !== n.startup.activeTabKey && l({
|
|
2799
2829
|
...n.startup,
|
|
2800
2830
|
activeTabKey: e
|
|
2801
2831
|
}, "push");
|
|
2802
2832
|
}
|
|
2803
|
-
function
|
|
2804
|
-
let t =
|
|
2805
|
-
a.value.some((t) => t.key === e) &&
|
|
2833
|
+
function f(e) {
|
|
2834
|
+
let t = Sa(n.startup.tabs ?? [], n.startup.activeTabKey, e);
|
|
2835
|
+
a.value.some((t) => t.key === e) && g(Y(a.value, [e])), l({
|
|
2806
2836
|
...n.startup,
|
|
2807
2837
|
tabs: t.tabs,
|
|
2808
2838
|
activeTabKey: t.activeTabKey
|
|
2809
2839
|
}, "replace");
|
|
2810
2840
|
}
|
|
2811
|
-
function
|
|
2812
|
-
let t =
|
|
2813
|
-
r.length > 0 &&
|
|
2841
|
+
function p(e) {
|
|
2842
|
+
let t = Ca(n.startup.tabs ?? [], n.startup.activeTabKey, e), r = e.filter((e) => a.value.some((t) => t.key === e));
|
|
2843
|
+
r.length > 0 && g(Y(a.value, r)), l({
|
|
2814
2844
|
...n.startup,
|
|
2815
2845
|
tabs: t.tabs,
|
|
2816
2846
|
activeTabKey: t.activeTabKey
|
|
2817
2847
|
}, "replace");
|
|
2818
2848
|
}
|
|
2819
|
-
function
|
|
2820
|
-
let t =
|
|
2821
|
-
r.map((e) => e.key).join("|") !== a.value.map((e) => e.key).join("|") &&
|
|
2849
|
+
function m(e) {
|
|
2850
|
+
let t = ja(n.startup.tabs ?? [], e, a.value.map((e) => e.key)), r = t.filter((e) => a.value.some((t) => t.key === e.key));
|
|
2851
|
+
r.map((e) => e.key).join("|") !== a.value.map((e) => e.key).join("|") && g(r), l({
|
|
2822
2852
|
...n.startup,
|
|
2823
2853
|
tabs: t
|
|
2824
2854
|
});
|
|
2825
2855
|
}
|
|
2826
|
-
function
|
|
2856
|
+
function h(e) {
|
|
2827
2857
|
let t = n.startup.tabs?.find((t) => t.key === e);
|
|
2828
2858
|
if (!t) return;
|
|
2829
|
-
let r = a.value.some((t) => t.key === e), i = a.value, o = r ? Y(i, [e]) :
|
|
2830
|
-
|
|
2859
|
+
let r = a.value.some((t) => t.key === e), i = a.value, o = r ? Y(i, [e]) : ka(i, t);
|
|
2860
|
+
g(o), l({
|
|
2831
2861
|
...n.startup,
|
|
2832
|
-
tabs:
|
|
2862
|
+
tabs: wa(n.startup.tabs ?? [], o)
|
|
2833
2863
|
});
|
|
2834
2864
|
}
|
|
2835
|
-
function
|
|
2865
|
+
function g(e) {
|
|
2836
2866
|
let t = a.value, n = ++o;
|
|
2837
|
-
a.value = e,
|
|
2867
|
+
a.value = e, _(e, t, n);
|
|
2838
2868
|
}
|
|
2839
|
-
async function
|
|
2869
|
+
async function _(e, t, r) {
|
|
2840
2870
|
try {
|
|
2841
|
-
s = s.catch(() => void 0).then(() =>
|
|
2871
|
+
s = s.catch(() => void 0).then(() => Ya(ae, e)), await s;
|
|
2842
2872
|
} catch {
|
|
2843
2873
|
if (r !== o) return;
|
|
2844
|
-
a.value = t,
|
|
2874
|
+
a.value = t, l({
|
|
2845
2875
|
...n.startup,
|
|
2846
|
-
tabs:
|
|
2876
|
+
tabs: wa(n.startup.tabs ?? [], t, !1)
|
|
2847
2877
|
});
|
|
2848
2878
|
}
|
|
2849
2879
|
}
|
|
2850
|
-
function
|
|
2851
|
-
let t =
|
|
2852
|
-
return
|
|
2880
|
+
function ee(e) {
|
|
2881
|
+
let t = ma(n.startup.tabs ?? [], e);
|
|
2882
|
+
return l({
|
|
2853
2883
|
...n.startup,
|
|
2854
2884
|
tabs: t.tabs,
|
|
2855
2885
|
activeTabKey: t.activeTabKey
|
|
2856
2886
|
}, "push"), { created: t.created };
|
|
2857
2887
|
}
|
|
2858
|
-
function
|
|
2859
|
-
return
|
|
2888
|
+
function te(e, t = {}) {
|
|
2889
|
+
return v(Dn(e, t), "push", n.startup, t.tabTitle, t.newInstance);
|
|
2860
2890
|
}
|
|
2861
|
-
function
|
|
2862
|
-
let r = n.startup.activeTabKey, i = n.startup.tabs?.find((e) => e.key === r), a =
|
|
2863
|
-
if (!r || !i) return
|
|
2864
|
-
let o =
|
|
2891
|
+
function ne(e, t = {}) {
|
|
2892
|
+
let r = n.startup.activeTabKey, i = n.startup.tabs?.find((e) => e.key === r), a = Dn(e, t);
|
|
2893
|
+
if (!r || !i) return v(a, "replace", n.startup, t.tabTitle);
|
|
2894
|
+
let o = _a(n.startup, a, n.resolveOptions), s = o.tabs?.find((e) => e.key === o.activeTabKey);
|
|
2865
2895
|
if (!s) return { created: !1 };
|
|
2866
|
-
let c = s.pageDescriptor && i.instanceKey ? x(s.pageDescriptor, i.instanceKey) : s.pageDescriptor,
|
|
2896
|
+
let c = s.pageDescriptor && i.instanceKey ? x(s.pageDescriptor, i.instanceKey) : s.pageDescriptor, u = c ? C(c, n.resolveOptions) : s.fullPath, d = (o.tabs ?? []).filter((e) => e.key !== s.key).map((e) => e.key === r ? {
|
|
2867
2897
|
...i,
|
|
2868
2898
|
...s,
|
|
2869
2899
|
key: r,
|
|
2870
2900
|
instanceKey: i.instanceKey,
|
|
2871
2901
|
pageDescriptor: c,
|
|
2872
|
-
fullPath:
|
|
2873
|
-
restoreState:
|
|
2902
|
+
fullPath: u,
|
|
2903
|
+
restoreState: u ? { url: u } : s.restoreState,
|
|
2874
2904
|
title: t.tabTitle ?? s.title
|
|
2875
2905
|
} : e);
|
|
2876
|
-
return
|
|
2906
|
+
return l({
|
|
2877
2907
|
...o,
|
|
2878
2908
|
tabs: d,
|
|
2879
2909
|
activeTabKey: r
|
|
2880
2910
|
}, "replace"), { created: !1 };
|
|
2881
2911
|
}
|
|
2882
|
-
function
|
|
2883
|
-
let t = n.startup.activeTabKey, r = t ?
|
|
2912
|
+
function re(e) {
|
|
2913
|
+
let t = n.startup.activeTabKey, r = t ? Sa(n.startup.tabs ?? [], t, t) : {
|
|
2884
2914
|
tabs: n.startup.tabs ?? [],
|
|
2885
2915
|
activeTabKey: n.startup.activeTabKey
|
|
2886
2916
|
};
|
|
2887
|
-
t && a.value.some((e) => e.key === t) &&
|
|
2917
|
+
t && a.value.some((e) => e.key === t) && g(Y(a.value, [t]));
|
|
2888
2918
|
let i = r.tabs.find((t) => {
|
|
2889
|
-
let n = t.fullPath ?? (t.pageDescriptor ?
|
|
2919
|
+
let n = t.fullPath ?? (t.pageDescriptor ? C(t.pageDescriptor) : void 0);
|
|
2890
2920
|
return n && new URL(n, "http://muyun.local").pathname === e;
|
|
2891
2921
|
});
|
|
2892
|
-
return i ? (
|
|
2922
|
+
return i ? (l({
|
|
2893
2923
|
...n.startup,
|
|
2894
2924
|
tabs: r.tabs,
|
|
2895
2925
|
activeTabKey: i.key
|
|
2896
|
-
}, "replace"), { created: !1 }) :
|
|
2926
|
+
}, "replace"), { created: !1 }) : v(Dn(e), "replace", {
|
|
2897
2927
|
...n.startup,
|
|
2898
2928
|
tabs: r.tabs,
|
|
2899
2929
|
activeTabKey: r.activeTabKey
|
|
2900
2930
|
});
|
|
2901
2931
|
}
|
|
2902
|
-
function
|
|
2903
|
-
let o = new Set((r.tabs ?? []).map((e) => e.key)), s =
|
|
2932
|
+
function v(e, t, r, i, a = !1) {
|
|
2933
|
+
let o = new Set((r.tabs ?? []).map((e) => e.key)), s = _a(r, e, {
|
|
2904
2934
|
...n.resolveOptions,
|
|
2905
2935
|
title: i ?? n.resolveOptions.title
|
|
2906
2936
|
}, a);
|
|
@@ -2910,11 +2940,11 @@ var Wa = /* @__PURE__ */ j({
|
|
|
2910
2940
|
...e,
|
|
2911
2941
|
title: i
|
|
2912
2942
|
} : e)
|
|
2913
|
-
}),
|
|
2943
|
+
}), l(s, t), { created: !(!s.activeTabKey || o.has(s.activeTabKey)) };
|
|
2914
2944
|
}
|
|
2915
|
-
function
|
|
2945
|
+
function ie(e, t) {
|
|
2916
2946
|
let r = t.trim();
|
|
2917
|
-
e && r &&
|
|
2947
|
+
e && r && l({
|
|
2918
2948
|
...n.startup,
|
|
2919
2949
|
tabs: (n.startup.tabs ?? []).map((t) => t.instanceKey === e ? {
|
|
2920
2950
|
...t,
|
|
@@ -2927,34 +2957,34 @@ var Wa = /* @__PURE__ */ j({
|
|
|
2927
2957
|
...n,
|
|
2928
2958
|
title: t.title ?? n.title,
|
|
2929
2959
|
pageDescriptor: t,
|
|
2930
|
-
restoreState: { url:
|
|
2960
|
+
restoreState: { url: C(t) }
|
|
2931
2961
|
} : n), i = r.find((t) => t.key === e);
|
|
2932
|
-
i && a.value.some((t) => t.key === e) &&
|
|
2962
|
+
i && a.value.some((t) => t.key === e) && g(ka(a.value, i)), l({
|
|
2933
2963
|
...n.startup,
|
|
2934
2964
|
tabs: r
|
|
2935
2965
|
}, "replace");
|
|
2936
2966
|
}
|
|
2937
2967
|
function se(e, t) {
|
|
2938
|
-
let i =
|
|
2968
|
+
let i = Qa(e, n.location, t);
|
|
2939
2969
|
i && r("navigate", i);
|
|
2940
2970
|
}
|
|
2941
2971
|
function ce(e) {
|
|
2942
|
-
|
|
2972
|
+
l(_a(n.startup, e, n.resolveOptions));
|
|
2943
2973
|
}
|
|
2944
2974
|
async function le() {
|
|
2945
2975
|
let e = o;
|
|
2946
2976
|
try {
|
|
2947
|
-
let t =
|
|
2948
|
-
if (!
|
|
2977
|
+
let t = Ea(await Ja(ae), n.startup.menus, n.resolveOptions);
|
|
2978
|
+
if (!c || e !== o) return;
|
|
2949
2979
|
a.value = t;
|
|
2950
2980
|
let r = new Set(t.map((e) => e.key)), i = [...t, ...(n.startup.tabs ?? []).filter((e) => !r.has(e.key))];
|
|
2951
|
-
|
|
2981
|
+
l({
|
|
2952
2982
|
...n.startup,
|
|
2953
|
-
tabs:
|
|
2983
|
+
tabs: wa(i, t)
|
|
2954
2984
|
});
|
|
2955
2985
|
} catch {}
|
|
2956
2986
|
}
|
|
2957
|
-
return (t, n) => (M(),
|
|
2987
|
+
return (t, n) => (M(), T(on, {
|
|
2958
2988
|
startup: e.startup,
|
|
2959
2989
|
loading: e.loading,
|
|
2960
2990
|
error: e.error,
|
|
@@ -2962,16 +2992,16 @@ var Wa = /* @__PURE__ */ j({
|
|
|
2962
2992
|
"locked-tab-keys": a.value.map((e) => e.key),
|
|
2963
2993
|
"realtime-status": e.realtimeStatus,
|
|
2964
2994
|
"theme-appearance": e.themeAppearance,
|
|
2965
|
-
onSelectMenu:
|
|
2966
|
-
onChangeTab:
|
|
2967
|
-
onCloseTab:
|
|
2968
|
-
onCloseTabs:
|
|
2969
|
-
onReorderTabs:
|
|
2970
|
-
onToggleTabLock:
|
|
2995
|
+
onSelectMenu: u,
|
|
2996
|
+
onChangeTab: d,
|
|
2997
|
+
onCloseTab: f,
|
|
2998
|
+
onCloseTabs: p,
|
|
2999
|
+
onReorderTabs: m,
|
|
3000
|
+
onToggleTabLock: h,
|
|
2971
3001
|
onRefreshPage: n[0] ||= (e) => r("refreshPage", e),
|
|
2972
3002
|
onUserCommand: n[1] ||= (e) => r("userCommand", e)
|
|
2973
3003
|
}, {
|
|
2974
|
-
default: I(({ pageDescriptor: e }) => [
|
|
3004
|
+
default: I(({ pageDescriptor: e }) => [tr(t.$slots, "default", { pageDescriptor: e })]),
|
|
2975
3005
|
_: 3
|
|
2976
3006
|
}, 8, [
|
|
2977
3007
|
"startup",
|
|
@@ -2986,8 +3016,8 @@ var Wa = /* @__PURE__ */ j({
|
|
|
2986
3016
|
});
|
|
2987
3017
|
//#endregion
|
|
2988
3018
|
//#region src/app/loginTenant.ts
|
|
2989
|
-
function
|
|
2990
|
-
let i =
|
|
3019
|
+
function eo(e, t = ro(), n = io(), r = "/") {
|
|
3020
|
+
let i = no(t, n === to(r));
|
|
2991
3021
|
return i ? {
|
|
2992
3022
|
tenantId: i,
|
|
2993
3023
|
tenantLocked: !0
|
|
@@ -2999,29 +3029,29 @@ function Ga(e, t = Ja(), n = Ya(), r = "/") {
|
|
|
2999
3029
|
function Q(e) {
|
|
3000
3030
|
return e?.trim() ?? "";
|
|
3001
3031
|
}
|
|
3002
|
-
function
|
|
3032
|
+
function to(e) {
|
|
3003
3033
|
let t = `/${(e?.trim() || "/").replace(/^\/+|\/+$/g, "")}`.replace(/^\/\/+/g, "/") || "/";
|
|
3004
3034
|
return t === "/" ? t : `${t}/`;
|
|
3005
3035
|
}
|
|
3006
|
-
function
|
|
3036
|
+
function no(e, t) {
|
|
3007
3037
|
let n = new URLSearchParams(e.startsWith("?") ? e : `?${e}`), r = Q(n.get("_muyunTenantId"));
|
|
3008
3038
|
return r || !t ? r : Q(n.get("tenantId")) || Q(n.get("tenant"));
|
|
3009
3039
|
}
|
|
3010
|
-
function
|
|
3040
|
+
function ro() {
|
|
3011
3041
|
return typeof window > "u" ? "" : window.location.search;
|
|
3012
3042
|
}
|
|
3013
|
-
function
|
|
3043
|
+
function io() {
|
|
3014
3044
|
return typeof window > "u" ? "/" : window.location.pathname;
|
|
3015
3045
|
}
|
|
3016
3046
|
//#endregion
|
|
3017
3047
|
//#region src/app/LoginView.vue?vue&type=script&setup=true&lang.ts
|
|
3018
|
-
var
|
|
3048
|
+
var ao = { class: "login-page" }, oo = { class: "login-panel" }, so = { class: "login-brand" }, co = ["src"], lo = { key: 1 }, uo = { key: 0 }, fo = {
|
|
3019
3049
|
key: 1,
|
|
3020
3050
|
class: "login-subtitle"
|
|
3021
|
-
},
|
|
3051
|
+
}, po = {
|
|
3022
3052
|
key: 0,
|
|
3023
3053
|
class: "login-error"
|
|
3024
|
-
},
|
|
3054
|
+
}, mo = { key: 0 }, ho = /*#__PURE__*/ it(/* @__PURE__ */ j({
|
|
3025
3055
|
name: "LoginView",
|
|
3026
3056
|
__name: "LoginView",
|
|
3027
3057
|
props: {
|
|
@@ -3033,8 +3063,8 @@ var Xa = { class: "login-page" }, Za = { class: "login-panel" }, Qa = { class: "
|
|
|
3033
3063
|
},
|
|
3034
3064
|
emits: ["authenticated"],
|
|
3035
3065
|
setup(e, { emit: t }) {
|
|
3036
|
-
let n = e, r = t, i =
|
|
3037
|
-
|
|
3066
|
+
let n = e, r = t, i = eo(void 0), a = N(i.tenantId), o = i.tenantLocked, s = N(Q(n.initialUsername) || Q(void 0)), c = N(Q(void 0)), l = N(!1), u = N(), d = N(!1), f = N(), p = N(""), m = N(""), h = N(), g = N(!1), _ = N(), ee = w(() => !o || !g.value && !_.value), te = w(() => h.value?.mode !== "logoOnly"), ne = w(() => h.value?.title || "平台登录"), re = w(() => h.value?.subtitle);
|
|
3067
|
+
Qn(async () => {
|
|
3038
3068
|
if (o && a.value) {
|
|
3039
3069
|
g.value = !0;
|
|
3040
3070
|
try {
|
|
@@ -3048,7 +3078,7 @@ var Xa = { class: "login-page" }, Za = { class: "login-panel" }, Qa = { class: "
|
|
|
3048
3078
|
}
|
|
3049
3079
|
}
|
|
3050
3080
|
});
|
|
3051
|
-
async function
|
|
3081
|
+
async function v() {
|
|
3052
3082
|
u.value = void 0, l.value = !0;
|
|
3053
3083
|
try {
|
|
3054
3084
|
let e = await n.authClient.login({
|
|
@@ -3068,9 +3098,9 @@ var Xa = { class: "login-page" }, Za = { class: "login-panel" }, Qa = { class: "
|
|
|
3068
3098
|
}
|
|
3069
3099
|
}
|
|
3070
3100
|
function ie(e) {
|
|
3071
|
-
return e instanceof
|
|
3101
|
+
return e instanceof Ke ? e.code === ht.networkError || e.code === ht.httpError || (e.status ?? 0) >= 500 ? "无法连接后端服务,请确认服务已启动后重试" : e.code === ht.loginBadCredentials ? "用户名或密码错误" : e.message : e instanceof Error ? e.message : "登录失败,请稍后重试";
|
|
3072
3102
|
}
|
|
3073
|
-
async function
|
|
3103
|
+
async function ae() {
|
|
3074
3104
|
if (u.value = void 0, !f.value) {
|
|
3075
3105
|
u.value = "登录状态已失效,请重新登录", d.value = !1;
|
|
3076
3106
|
return;
|
|
@@ -3097,79 +3127,79 @@ var Xa = { class: "login-page" }, Za = { class: "login-panel" }, Qa = { class: "
|
|
|
3097
3127
|
l.value = !1;
|
|
3098
3128
|
}
|
|
3099
3129
|
}
|
|
3100
|
-
return (t, n) => (M(),
|
|
3101
|
-
|
|
3130
|
+
return (t, n) => (M(), D("main", ao, [O("section", oo, [
|
|
3131
|
+
O("header", null, [O("div", so, [h.value?.lightLogo ? (M(), D("img", {
|
|
3102
3132
|
key: 0,
|
|
3103
3133
|
class: "login-logo",
|
|
3104
3134
|
src: h.value.lightLogo,
|
|
3105
3135
|
alt: ""
|
|
3106
|
-
}, null, 8,
|
|
3107
|
-
h.value?.lightLogo ?
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
])) :
|
|
3111
|
-
u.value || e.error || _.value ? (M(),
|
|
3112
|
-
d.value ? (M(),
|
|
3136
|
+
}, null, 8, co)) : E("v-if", !0), te.value ? (M(), D("div", lo, [
|
|
3137
|
+
h.value?.lightLogo ? E("v-if", !0) : (M(), D("p", uo, "MuYun Platform")),
|
|
3138
|
+
O("h1", null, P(ne.value), 1),
|
|
3139
|
+
re.value ? (M(), D("p", fo, P(re.value), 1)) : E("v-if", !0)
|
|
3140
|
+
])) : E("v-if", !0)])]),
|
|
3141
|
+
u.value || e.error || _.value ? (M(), D("p", po, P(u.value || e.error || _.value), 1)) : E("v-if", !0),
|
|
3142
|
+
d.value ? (M(), D("form", {
|
|
3113
3143
|
key: 2,
|
|
3114
3144
|
class: "login-form",
|
|
3115
|
-
onSubmit:
|
|
3145
|
+
onSubmit: ir(ae, ["prevent"])
|
|
3116
3146
|
}, [
|
|
3117
|
-
n[10] ||=
|
|
3118
|
-
|
|
3147
|
+
n[10] ||= O("p", { class: "login-context" }, "当前密码需要修改后才能进入系统", -1),
|
|
3148
|
+
O("label", null, [n[8] ||= O("span", null, "新密码", -1), k(F(y), {
|
|
3119
3149
|
value: p.value,
|
|
3120
3150
|
"onUpdate:value": n[3] ||= (e) => p.value = e,
|
|
3121
3151
|
type: "password",
|
|
3122
3152
|
autocomplete: "new-password",
|
|
3123
3153
|
required: ""
|
|
3124
3154
|
}, null, 8, ["value"])]),
|
|
3125
|
-
|
|
3155
|
+
O("label", null, [n[9] ||= O("span", null, "确认新密码", -1), k(F(y), {
|
|
3126
3156
|
value: m.value,
|
|
3127
3157
|
"onUpdate:value": n[4] ||= (e) => m.value = e,
|
|
3128
3158
|
type: "password",
|
|
3129
3159
|
autocomplete: "new-password",
|
|
3130
3160
|
required: ""
|
|
3131
3161
|
}, null, 8, ["value"])]),
|
|
3132
|
-
|
|
3162
|
+
k(F(ze), {
|
|
3133
3163
|
class: "login-submit",
|
|
3134
3164
|
"html-type": "submit",
|
|
3135
3165
|
type: "primary",
|
|
3136
3166
|
loading: l.value || e.loading
|
|
3137
3167
|
}, {
|
|
3138
|
-
default: I(() => [
|
|
3168
|
+
default: I(() => [Jn(P(l.value || e.loading ? "保存中" : "修改密码"), 1)]),
|
|
3139
3169
|
_: 1
|
|
3140
3170
|
}, 8, ["loading"])
|
|
3141
|
-
], 32)) : (M(),
|
|
3171
|
+
], 32)) : (M(), D("form", {
|
|
3142
3172
|
key: 1,
|
|
3143
3173
|
class: "login-form",
|
|
3144
|
-
onSubmit:
|
|
3174
|
+
onSubmit: ir(v, ["prevent"])
|
|
3145
3175
|
}, [
|
|
3146
|
-
F(o) ?
|
|
3176
|
+
F(o) ? E("v-if", !0) : (M(), D("label", mo, [n[5] ||= O("span", null, "租户 ID", -1), k(F(y), {
|
|
3147
3177
|
value: a.value,
|
|
3148
3178
|
"onUpdate:value": n[0] ||= (e) => a.value = e,
|
|
3149
3179
|
autocomplete: "organization",
|
|
3150
3180
|
placeholder: "留空进入系统工作区"
|
|
3151
3181
|
}, null, 8, ["value"])])),
|
|
3152
|
-
|
|
3182
|
+
O("label", null, [n[6] ||= O("span", null, "用户名", -1), k(F(y), {
|
|
3153
3183
|
value: s.value,
|
|
3154
3184
|
"onUpdate:value": n[1] ||= (e) => s.value = e,
|
|
3155
3185
|
autocomplete: "username",
|
|
3156
3186
|
required: ""
|
|
3157
3187
|
}, null, 8, ["value"])]),
|
|
3158
|
-
|
|
3188
|
+
O("label", null, [n[7] ||= O("span", null, "密码", -1), k(F(y), {
|
|
3159
3189
|
value: c.value,
|
|
3160
3190
|
"onUpdate:value": n[2] ||= (e) => c.value = e,
|
|
3161
3191
|
type: "password",
|
|
3162
3192
|
autocomplete: "current-password",
|
|
3163
3193
|
required: ""
|
|
3164
3194
|
}, null, 8, ["value"])]),
|
|
3165
|
-
|
|
3195
|
+
k(F(ze), {
|
|
3166
3196
|
class: "login-submit",
|
|
3167
3197
|
"html-type": "submit",
|
|
3168
3198
|
type: "primary",
|
|
3169
|
-
disabled: !
|
|
3199
|
+
disabled: !ee.value,
|
|
3170
3200
|
loading: l.value || e.loading || g.value
|
|
3171
3201
|
}, {
|
|
3172
|
-
default: I(() => [
|
|
3202
|
+
default: I(() => [Jn(P(l.value || e.loading ? "登录中" : "登录"), 1)]),
|
|
3173
3203
|
_: 1
|
|
3174
3204
|
}, 8, ["disabled", "loading"])
|
|
3175
3205
|
], 32))
|
|
@@ -3178,8 +3208,8 @@ var Xa = { class: "login-page" }, Za = { class: "login-panel" }, Qa = { class: "
|
|
|
3178
3208
|
}), [["__scopeId", "data-v-76190b2a"]]);
|
|
3179
3209
|
//#endregion
|
|
3180
3210
|
//#region src/consumer/userPreferencePersistence.ts
|
|
3181
|
-
function
|
|
3182
|
-
|
|
3211
|
+
function go(e) {
|
|
3212
|
+
ee({
|
|
3183
3213
|
load: async (t) => (await e().request({
|
|
3184
3214
|
path: `/platform.user-preference/${encodeURIComponent(t)}`,
|
|
3185
3215
|
query: { clientType: "WEB" }
|
|
@@ -3201,10 +3231,10 @@ function oo(e) {
|
|
|
3201
3231
|
}
|
|
3202
3232
|
//#endregion
|
|
3203
3233
|
//#region src/app/ChangeOwnPasswordDialog.vue?vue&type=script&setup=true&lang.ts
|
|
3204
|
-
var
|
|
3234
|
+
var _o = { class: "change-own-password-fields" }, vo = {
|
|
3205
3235
|
key: 0,
|
|
3206
3236
|
class: "change-own-password-error"
|
|
3207
|
-
},
|
|
3237
|
+
}, yo = /*#__PURE__*/ it(/* @__PURE__ */ j({
|
|
3208
3238
|
name: "ChangeOwnPasswordDialog",
|
|
3209
3239
|
__name: "ChangeOwnPasswordDialog",
|
|
3210
3240
|
props: {
|
|
@@ -3230,7 +3260,7 @@ var so = { class: "change-own-password-fields" }, co = {
|
|
|
3230
3260
|
],
|
|
3231
3261
|
setup(e, { emit: t }) {
|
|
3232
3262
|
let n = t;
|
|
3233
|
-
return (t, r) => (M(),
|
|
3263
|
+
return (t, r) => (M(), T(F(o), {
|
|
3234
3264
|
open: e.open,
|
|
3235
3265
|
title: "修改密码",
|
|
3236
3266
|
"confirm-text": "保存",
|
|
@@ -3239,8 +3269,8 @@ var so = { class: "change-own-password-fields" }, co = {
|
|
|
3239
3269
|
onConfirm: r[3] ||= (e) => n("submit"),
|
|
3240
3270
|
onCancel: r[4] ||= (e) => n("close")
|
|
3241
3271
|
}, {
|
|
3242
|
-
default: I(() => [
|
|
3243
|
-
|
|
3272
|
+
default: I(() => [O("div", _o, [
|
|
3273
|
+
O("label", null, [r[5] ||= O("span", null, "当前密码", -1), k(F(y), {
|
|
3244
3274
|
value: e.currentPassword,
|
|
3245
3275
|
type: "password",
|
|
3246
3276
|
autocomplete: "current-password",
|
|
@@ -3248,7 +3278,7 @@ var so = { class: "change-own-password-fields" }, co = {
|
|
|
3248
3278
|
placeholder: "请输入当前密码",
|
|
3249
3279
|
"onUpdate:value": r[0] ||= (e) => n("update:currentPassword", e)
|
|
3250
3280
|
}, null, 8, ["value", "disabled"])]),
|
|
3251
|
-
|
|
3281
|
+
O("label", null, [r[6] ||= O("span", null, "新密码", -1), k(F(y), {
|
|
3252
3282
|
value: e.newPassword,
|
|
3253
3283
|
type: "password",
|
|
3254
3284
|
autocomplete: "new-password",
|
|
@@ -3256,7 +3286,7 @@ var so = { class: "change-own-password-fields" }, co = {
|
|
|
3256
3286
|
placeholder: "请输入新密码",
|
|
3257
3287
|
"onUpdate:value": r[1] ||= (e) => n("update:newPassword", e)
|
|
3258
3288
|
}, null, 8, ["value", "disabled"])]),
|
|
3259
|
-
|
|
3289
|
+
O("label", null, [r[7] ||= O("span", null, "确认新密码", -1), k(F(y), {
|
|
3260
3290
|
value: e.confirmPassword,
|
|
3261
3291
|
type: "password",
|
|
3262
3292
|
autocomplete: "new-password",
|
|
@@ -3264,7 +3294,7 @@ var so = { class: "change-own-password-fields" }, co = {
|
|
|
3264
3294
|
placeholder: "请再次输入新密码",
|
|
3265
3295
|
"onUpdate:value": r[2] ||= (e) => n("update:confirmPassword", e)
|
|
3266
3296
|
}, null, 8, ["value", "disabled"])])
|
|
3267
|
-
]), e.error ? (M(),
|
|
3297
|
+
]), e.error ? (M(), D("p", vo, P(e.error), 1)) : E("v-if", !0)]),
|
|
3268
3298
|
_: 1
|
|
3269
3299
|
}, 8, [
|
|
3270
3300
|
"open",
|
|
@@ -3272,22 +3302,22 @@ var so = { class: "change-own-password-fields" }, co = {
|
|
|
3272
3302
|
"confirm-disabled"
|
|
3273
3303
|
]));
|
|
3274
3304
|
}
|
|
3275
|
-
}), [["__scopeId", "data-v-6905dcfc"]]),
|
|
3305
|
+
}), [["__scopeId", "data-v-6905dcfc"]]), bo = { class: "theme-skin-preferences" }, xo = {
|
|
3276
3306
|
key: 0,
|
|
3277
3307
|
class: "theme-skin-error",
|
|
3278
3308
|
role: "alert"
|
|
3279
|
-
},
|
|
3309
|
+
}, So = {
|
|
3280
3310
|
class: "theme-skin-grid",
|
|
3281
3311
|
role: "radiogroup",
|
|
3282
3312
|
"aria-label": "工作台皮肤"
|
|
3283
|
-
},
|
|
3313
|
+
}, Co = [
|
|
3284
3314
|
"aria-checked",
|
|
3285
3315
|
"tabindex",
|
|
3286
3316
|
"data-skin-id",
|
|
3287
3317
|
"disabled",
|
|
3288
3318
|
"onClick",
|
|
3289
3319
|
"onKeydown"
|
|
3290
|
-
],
|
|
3320
|
+
], wo = /*#__PURE__*/ it(/* @__PURE__ */ j({
|
|
3291
3321
|
name: "ThemeSkinPreferencesDialog",
|
|
3292
3322
|
__name: "ThemeSkinPreferencesDialog",
|
|
3293
3323
|
props: {
|
|
@@ -3318,7 +3348,7 @@ var so = { class: "change-own-password-fields" }, co = {
|
|
|
3318
3348
|
let a = e.key === "Home" ? 0 : e.key === "End" ? i - 1 : (t + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + i) % i, o = r?.children.item(a), s = o?.dataset.skinId;
|
|
3319
3349
|
s && (n("select", s), o?.focus());
|
|
3320
3350
|
}
|
|
3321
|
-
return (t, i) => (M(),
|
|
3351
|
+
return (t, i) => (M(), T(F(o), {
|
|
3322
3352
|
open: e.open,
|
|
3323
3353
|
title: "偏好设置",
|
|
3324
3354
|
width: 460,
|
|
@@ -3327,12 +3357,12 @@ var so = { class: "change-own-password-fields" }, co = {
|
|
|
3327
3357
|
onConfirm: i[0] ||= (e) => n("close"),
|
|
3328
3358
|
onCancel: i[1] ||= (e) => n("close")
|
|
3329
3359
|
}, {
|
|
3330
|
-
default: I(() => [
|
|
3331
|
-
i[3] ||=
|
|
3332
|
-
e.error ? (M(),
|
|
3333
|
-
|
|
3360
|
+
default: I(() => [O("section", bo, [
|
|
3361
|
+
i[3] ||= O("header", null, [O("h2", null, "工作台皮肤"), O("p", null, "皮肤会同步保存到当前账号,并在下次启动时优先恢复。")], -1),
|
|
3362
|
+
e.error ? (M(), D("p", xo, P(e.error), 1)) : E("v-if", !0),
|
|
3363
|
+
O("div", So, [(M(!0), D(qn, null, er(e.skins, (t, a) => (M(), D("button", {
|
|
3334
3364
|
key: t.id,
|
|
3335
|
-
class:
|
|
3365
|
+
class: Yn(["theme-skin-card", { selected: t.id === e.activeSkinId }]),
|
|
3336
3366
|
type: "button",
|
|
3337
3367
|
role: "radio",
|
|
3338
3368
|
"aria-checked": t.id === e.activeSkinId,
|
|
@@ -3342,9 +3372,9 @@ var so = { class: "change-own-password-fields" }, co = {
|
|
|
3342
3372
|
onClick: (e) => n("select", t.id),
|
|
3343
3373
|
onKeydown: (e) => r(e, a)
|
|
3344
3374
|
}, [
|
|
3345
|
-
|
|
3375
|
+
O("span", {
|
|
3346
3376
|
class: "theme-skin-preview",
|
|
3347
|
-
style:
|
|
3377
|
+
style: Xn({
|
|
3348
3378
|
"--skin-canvas": t.theme.support.canvas,
|
|
3349
3379
|
"--skin-surface": t.theme.support.surface,
|
|
3350
3380
|
"--skin-text": t.theme.support.text,
|
|
@@ -3352,13 +3382,13 @@ var so = { class: "change-own-password-fields" }, co = {
|
|
|
3352
3382
|
"--skin-accent": t.theme.brandAccent.base
|
|
3353
3383
|
})
|
|
3354
3384
|
}, [...i[2] ||= [
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3385
|
+
O("i", { class: "theme-skin-preview-sidebar" }, null, -1),
|
|
3386
|
+
O("i", { class: "theme-skin-preview-toolbar" }, null, -1),
|
|
3387
|
+
O("i", { class: "theme-skin-preview-card" }, null, -1)
|
|
3358
3388
|
]], 4),
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
], 42,
|
|
3389
|
+
O("strong", null, P(t.title), 1),
|
|
3390
|
+
O("small", null, P(t.description), 1)
|
|
3391
|
+
], 42, Co))), 128))])
|
|
3362
3392
|
])]),
|
|
3363
3393
|
_: 1
|
|
3364
3394
|
}, 8, [
|
|
@@ -3368,11 +3398,11 @@ var so = { class: "change-own-password-fields" }, co = {
|
|
|
3368
3398
|
]));
|
|
3369
3399
|
}
|
|
3370
3400
|
}), [["__scopeId", "data-v-5d36f806"]]), $ = "workbench.theme-skin";
|
|
3371
|
-
async function
|
|
3372
|
-
let n = await e.restore($, t, { persistence: "backend" }), r =
|
|
3401
|
+
async function To(e, t) {
|
|
3402
|
+
let n = await e.restore($, t, { persistence: "backend" }), r = Me(n).id;
|
|
3373
3403
|
return await e.set($, r, { persistence: "local" }), r;
|
|
3374
3404
|
}
|
|
3375
|
-
async function
|
|
3405
|
+
async function Eo(e, t, n) {
|
|
3376
3406
|
await e.set($, t, { persistence: "local" });
|
|
3377
3407
|
try {
|
|
3378
3408
|
return await e.set($, t, { persistence: "backend" }), { skinId: t };
|
|
@@ -3384,4 +3414,4 @@ async function _o(e, t, n) {
|
|
|
3384
3414
|
}
|
|
3385
3415
|
}
|
|
3386
3416
|
//#endregion
|
|
3387
|
-
export {
|
|
3417
|
+
export { Ke as AppError, $a as AppWorkbenchShell, le as BusinessNotificationPanel, yo as ChangeOwnPasswordDialog, pe as DateTimeText, f as DrawerOperationBar, yn as DynamicModuleWorkspaceDetailView, vt as FileSizeText, xt as FileTransferUploader, ho as LoginView, et as ModuleContextProvider, Ge as ModuleHttpProvider, xn as ModuleReferenceRecordDetailBrowser, Za as PlatformAdminOutlet, oa as PlatformAdminRouteOutlet, v as ReadonlyReferenceValue, lt as RecordDetailDrawer, de as ReferencePicker, p as ReferencePickerReadError, xe as ReferenceRecordDetailBrowser, gt as SingleImageFileReferenceField, wo as ThemeSkinPreferencesDialog, ze as UiButton, _ as UiDataTable, y as UiInput, we as UiSidePanel, re as UiSwitch, st as UiTextArea, Ae as UiThemeProvider, Ee as UiTree, dt as UiTreeSelect, Ui as VueQueryPlugin, on as Workbench, Kt as WorkbenchMenu, Fn as WorkbenchOutlet, hn as WorkspaceViewOutlet, $e as actionResultData, ga as activeTabUrlOf, wa as arrangeLockedMenuTabs, sn as buildWorkbenchMegaMenuModel, ce as canQueryRecycleBin, Tn as canonicalDynamicModulePath, It as clearAuthToken, Ue as configureModuleContext, mn as configureModulePageEnhancementContributions, Hn as configureModulePageEnhancements, go as configureUserPreferencePersistence, Zt as configureWorkspaceViewContributions, te as confirmAction, Lt as connectAppRealtime, ge as connectRealtimeBusinessEvents, Tt as connectRealtimeBusinessNotifications, a as connectRealtimeDataChanges, Ce as connectRealtimeUserNotifications, g as contextDataChangeChannel, An as createAuthClient, Rt as createBackendHttpClient, ye as createBrowserFileTransferUpload, At as createDataChangeDispatcher, Ot as createHttpClient, In as createLoginContextClient, _e as createManagedDetailRelationClient, wn as createMenuClient, $t as createMenuTab, Ne as createModuleContext, s as createModuleCrudClient, Wn as createModulePageEnhancementRegistry, _t as createModuleTreeClient, mt as createModuleTreeContext, be as createNavigatorReferenceCrudClient, d as createNavigatorReferenceTreeClient, gn as createPageBootstrapClient, Wi as createQueryClient, Se as createRealtimeClient, Bn as createReferenceResolveClient, Mn as createSessionClient, u as createStaticModuleCrudClient, ue as createStaticModuleTreeClient, Ze as createStaticResourceCrudClient, r as createStaticResourceTreeClient, Jt as createWorkbenchMenuNodes, Pn as createWorkspaceViewDescriptor, Xt as createWorkspaceViewRegistry, Te as dataChangeChannel, Oe as defaultUiThemeSkinId, Gn as defineWorkspaceView, Bt as disconnectAppRealtime, fn as dismissWorkspaceViewDescriptor, en as dynamicModuleAliasFromPath, Ft as effectiveAuthToken, qt as filterWorkbenchMenuNodes, nn as findFirstNavigationMenu, tn as findWorkbenchMenuNodeById, En as findWorkbenchMenuPath, Wt as firstDeepRootIdOf, b as getMenuNavigationTarget, bt as hasExecutableDetailRelationMutationContract, ve as hasExecutableDetailRelationQueryContract, fe as hasRecycleBinAbility, h as imConversationMessageChannel, ie as imMessageSendCommand, Ki as invokeBusinessNotificationRecordAction, Et as isHttpStreamClient, ta as isPlatformAdminRoutePage, Yt as isTabMenuTarget, We as isUnexpectedPlatformError, Qt as isWindowMenuTarget, m as moduleAbilityCodes, ot as moduleDataChangeChannel, _n as modulePageWorkspaceViews, kt as normalizeChangeSet, Pe as normalizeError, Rn as normalizeMenuMineResponse, Ye as normalizeModulePageResponse, oe as normalizeModuleRecord, ne as organizationPublicDataChangeChannel, ke as organizationPublicNotificationChannel, pn as pageActionEntryDescription, rn as pageActionEntryTitle, Ut as pageActionEntryVisible, bn as pageActionIntent, an as pageDescriptorFromUrl, C as pageDescriptorToUrl, Gt as pageInstanceKeyOf, Qi as platformAdminModuleRoutes, $i as platformAdminRouteLayouts, Zi as platformAdminRoutePrefixes, J as platformAdminRoutes, ht as platformErrorCodes, De as platformPingCommand, Qe as presentPlatformError, i as presentPlatformInfo, Xe as presentPlatformMessage, se as presentPlatformSuccess, Un as presentWorkbenchRealtimeStatus, On as provideCurrentUserContext, St as provideModuleContextConfig, vn as provideWorkbenchNavigation, jn as provideWorkspaceViewHost, Gi as queryKeys, je as realtimeDestinations, me as realtimeMessageTypes, n as recordDataChangeChannel, Nn as refreshModulePageList, Y as removeLockedMenuTabs, Ct as resolveGlobalErrorPresentation, ln as resolvePageDescriptor, ea as resolvePlatformAdminRoute, pt as resolveWebActionResult, Be as resolveWebActionResultMessage, dn as resolveWorkspaceView, Ve as resourceDataChangeChannel, ft as resourceRecordDataChangeChannel, Ja as restoreLockedTabPreference, Ea as restoreLockedWorkbenchTabs, To as restoreThemeSkinPreference, _a as restoreWorkbenchStartupStateFromUrl, Dn as routeUrlWithOpenOptions, jt as saveAuthSessionId, Vt as saveAuthToken, Ya as saveLockedTabPreference, Eo as saveThemeSkinPreference, nt as sessionActivityCommand, Ht as storedAuthSessionId, Mt as storedAuthToken, Nt as subscribeAppBusinessEvents, Pt as subscribeAppDataChanges, zt as subscribeAppModuleDataChanges, Cn as syncModulePageWorkspaceViewContributions, S as tabIdentityKeyOf, cn as tabKeyOf, ct as tenantPublicDataChangeChannel, Je as tenantPublicNotificationChannel, $ as themeSkinPreferenceKey, un as tryPageDescriptorFromUrl, Me as uiThemeSkinById, he as uiThemeSkins, l as unwrapResponsePayload, ka as updateLockedMenuTabs, wt as uploadedFileId, Sn as useCurrentUserContext, Ie as useModuleContext, yt as useModuleTreeContext, Vn as useWorkbenchNavigation, Ln as useWorkspaceViewHost, kn as useWorkspaceViewNavigation, zn as useWorkspaceViewUnsavedState, Fe as userBusinessEventChannel, rt as userBusinessNotificationChannel, Le as userFacingErrorMessage, ut as userImMessageChannel, Re as userNotificationChannel, ae as userPreferences, He as webDataChangeKey, c as webDataChangeTypes, at as webDataChanges, Dt as withHttpHeaders, x as withPageInstanceKey, tt as withWebActionResultChanges };
|