@ximatai/muyun-web-app 0.26.19 → 0.26.21

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.
Files changed (56) hide show
  1. package/dist/{BusinessActivityLogView-DudCmeKP.js → BusinessActivityLogView-6L75GZVc.js} +2 -2
  2. package/dist/{BusinessLogListDrawer-CVUvUG48.js → BusinessLogListDrawer-C4iFnkE7.js} +95 -95
  3. package/dist/{CodeConfigurationView-ZjVgaZkD.js → CodeConfigurationView-D7sqbNCg.js} +515 -515
  4. package/dist/{ConfigurationTranslationView-Dl757QMl.js → ConfigurationTranslationView-ta82REbn.js} +21 -21
  5. package/dist/{LoginAuditLogView-Cj3PMvN5.js → LoginAuditLogView-B_RQ9JIX.js} +2 -2
  6. package/dist/ModuleActionManagementView-DtGF3NC_.js +755 -0
  7. package/dist/{ModuleGovernanceView-C3RxdgQN.js → ModuleGovernanceView-Cl6tkZ6M.js} +2659 -2651
  8. package/dist/{RequestErrorLogView-tmjMOeLE.js → RequestErrorLogView-BJDO3Scn.js} +2 -2
  9. package/dist/RoleDetailWorkspaceView-C0Ab3PEp.js +1435 -0
  10. package/dist/{RuntimeLogView-BkkgHcF0.js → RuntimeLogView-jP9ceuJD.js} +61 -61
  11. package/dist/WorkflowAdministrationView-BmNJQYtq.js +650 -0
  12. package/dist/{WorkflowConfigurationView-Bnjdrkdx.js → WorkflowConfigurationView-Dh6BKQm5.js} +309 -309
  13. package/dist/WorkflowWorkbenchView-BvPNKbuV.js +759 -0
  14. package/dist/{codeConfiguration-DERwCY-U.js → codeConfiguration-DhCBKbkc.js} +38 -38
  15. package/dist/index.css +1 -1
  16. package/dist/index.js +999 -618
  17. package/dist/moduleMenuWorkspace-BbVmNKZn.js +626 -0
  18. package/dist/{platform-components-wRXbnwMr.js → platform-components-i2ONyZ8r.js} +2989 -2746
  19. package/dist/{platform-workbench-Cm_0kmTT.js → platform-workbench-DhaREttd.js} +5400 -5384
  20. package/dist/types/consumer/index.d.ts +8 -0
  21. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +2 -0
  22. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +19 -29
  23. package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +2 -0
  24. package/dist/types/dynamic-page-runtime/ModulePageTenantNavigator.vue.d.ts +8 -0
  25. package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +1 -0
  26. package/dist/types/dynamic-page-runtime/recordSaveFeedback.d.ts +5 -0
  27. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +1 -0
  28. package/dist/types/dynamic-page-runtime/useTenantScopeController.d.ts +1 -0
  29. package/dist/types/platform-components/EmployeePicker.vue.d.ts +1 -1
  30. package/dist/types/platform-components/QueryCriteriaComposer.vue.d.ts +3 -1
  31. package/dist/types/platform-components/ReadonlyRecordWorkspace.vue.d.ts +56 -0
  32. package/dist/types/platform-components/RecordAdaptiveDetailPanel.vue.d.ts +3 -1
  33. package/dist/types/platform-components/RecordFormFields.vue.d.ts +3 -0
  34. package/dist/types/platform-components/RecordQueryControls.vue.d.ts +21 -0
  35. package/dist/types/platform-components/RecordQueryFieldControls.vue.d.ts +32 -0
  36. package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +1 -1
  37. package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +2 -2
  38. package/dist/types/platform-components/ReferencePicker.vue.d.ts +1 -1
  39. package/dist/types/platform-components/UserPicker.vue.d.ts +1 -1
  40. package/dist/types/platform-components/queryCriteria.d.ts +7 -0
  41. package/dist/types/platform-components/referencePickerModel.d.ts +5 -1
  42. package/dist/types/views/metadataChangeSetSubmission.d.ts +3 -0
  43. package/dist/types/views/metadataModelChangeSetClient.d.ts +7 -1
  44. package/dist/types/web-contracts/index.d.ts +3 -0
  45. package/dist/types/web-core/index.d.ts +3 -0
  46. package/dist/types/web-core/recordReadEntry.d.ts +23 -0
  47. package/dist/types/web-core/recordReadView.d.ts +28 -0
  48. package/dist/types/web-core/useRecordReadSession.d.ts +27 -0
  49. package/dist/{useWorkflowConfigurationContext-BE_UjKgk.js → useWorkflowConfigurationContext-B_NxZFyz.js} +8 -8
  50. package/dist/{workspaceViews-D37OpJ7g.js → workspaceViews-MTwNg_aQ.js} +565 -565
  51. package/package.json +1 -1
  52. package/dist/ModuleActionManagementView-BuhQrVA3.js +0 -755
  53. package/dist/RoleDetailWorkspaceView-OhpBChaT.js +0 -1435
  54. package/dist/WorkflowAdministrationView-DOhA_5-M.js +0 -650
  55. package/dist/WorkflowWorkbenchView-Cf6yiofx.js +0 -759
  56. package/dist/moduleMenuWorkspace-DPmYGkS_.js +0 -626
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { n as e, r as t } from "./rolldown-runtime-BAC7EHh5.js";
2
- import { $ as n, A as r, B as i, C as a, Ct as o, Dt as s, Et as c, F as l, G as u, H as d, I as f, J as p, K as m, L as h, M as g, N as _, O as v, Ot as ee, P as y, Q as b, R as te, S as ne, St as re, Tt as ie, U as ae, V as x, W as oe, X as se, Y as S, Z as ce, _ as le, _t as ue, at as de, b as fe, bt as pe, c as me, ct as C, d as he, dt as ge, et as _e, f as ve, ft as ye, gt as be, h as xe, ht as Se, i as Ce, it as we, j as Te, k as Ee, l as De, lt as Oe, m as ke, mt as Ae, n as je, nt as w, o as Me, ot as Ne, p as T, pt as Pe, q as Fe, r as Ie, rt as Le, s as Re, st as ze, t as Be, tt as Ve, u as He, ut as Ue, v as We, vt as Ge, w as Ke, wt as qe, x as Je, xt as Ye, y as Xe, yt as Ze, z as Qe } from "./platform-workbench-Cm_0kmTT.js";
3
- import { $ as $e, $i as et, $r as tt, $t as nt, Aa as rt, Ai as it, Ar as at, Ba as ot, Bi as st, Bn as ct, Br as lt, Ca as ut, Ci as dt, Cn as ft, Cr as pt, Da as mt, Di as ht, Dn as gt, Dr as _t, Ea as vt, Ei as yt, Er as bt, Fa as xt, Fi as St, Fn as Ct, Fr as wt, Ft as Tt, Ga as Et, Gi as Dt, Gn as Ot, Gr as kt, Ha as At, Hi as jt, Hr as Mt, Ia as Nt, Ii as Pt, Ir as Ft, Ja as It, Ji as Lt, Jr as Rt, Jt as zt, Ka as Bt, Ki as Vt, Kr as Ht, La as Ut, Li as Wt, Ln as Gt, Lr as Kt, Ma as qt, Mi as Jt, Mr as Yt, Na as Xt, Ni as Zt, Nn as Qt, Nr as $t, Oa as en, Oi as tn, Or as nn, Pa as rn, Pi as an, Pr as on, Q as sn, Qi as cn, Qn as ln, Qr as un, Qt as dn, Ra as fn, Ri as pn, Rn as mn, Rr as hn, Sa as gn, Si as _n, Sr as vn, Ta as yn, Ti as bn, Tr as xn, Ua as Sn, Ui as Cn, Ur as wn, Va as Tn, Vi as En, Vn as Dn, Vr as On, Wa as kn, Wi as An, Wr as jn, Xa as Mn, Xi as Nn, Xn as E, Xr as Pn, Ya as Fn, Yi as In, Yr as Ln, Zi as Rn, Zn as zn, Zr as Bn, _a as Vn, _i as Hn, _r as Un, aa as Wn, ai as Gn, an as Kn, ar as qn, ba as Jn, bi as Yn, bn as Xn, br as Zn, ca as Qn, ci as $n, cr as er, da as tr, di as nr, dn as rr, dr as ir, dt as ar, ea as or, ei as sr, fa as cr, fi as lr, fn as ur, fr as dr, ga as fr, gi as pr, gn as mr, gr as hr, ha as gr, hi as _r, hn as vr, hr as yr, ia as br, ii as xr, in as Sr, ir as Cr, ja as wr, ji as Tr, jn as Er, jr as Dr, ka as Or, ki as kr, kn as Ar, kr as jr, la as Mr, li as Nr, lr as Pr, ma as Fr, mi as Ir, mr as Lr, mt as Rr, na as zr, ni as Br, nn as Vr, oa as Hr, oi as Ur, or as Wr, pa as Gr, pi as Kr, pn as qr, pr as Jr, qi as Yr, qn as Xr, qr as Zr, ra as Qr, ri as $r, rn as ei, rr as ti, sa as ni, si as ri, sn as ii, sr as ai, ta as oi, ti as si, tn as ci, ua as li, ui, un as di, ur as fi, va as pi, vi as mi, vr as hi, wa as gi, wi as _i, wr as vi, xa as yi, xi as bi, xr as xi, ya as Si, yi as Ci, yn as wi, yr as Ti, za as D, zi as Ei, zn as Di, zr as Oi } from "./platform-components-wRXbnwMr.js";
4
- import { m as ki } from "./codeConfiguration-DERwCY-U.js";
5
- import "./workspaceViews-D37OpJ7g.js";
6
- import * as Ai from "vue";
7
- import { Fragment as ji, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createSlots as Mi, createTextVNode as Ni, createVNode as N, defineAsyncComponent as P, defineComponent as F, guardReactiveProps as Pi, normalizeClass as Fi, normalizeProps as Ii, normalizeStyle as Li, onBeforeUnmount as Ri, onMounted as zi, openBlock as I, provide as Bi, ref as L, renderList as Vi, renderSlot as Hi, resolveDynamicComponent as Ui, toDisplayString as R, unref as z, watch as Wi, withCtx as B, withModifiers as Gi } from "vue";
2
+ import { $ as n, A as r, B as i, C as a, Ct as o, Dt as s, Et as c, F as l, G as u, H as d, I as f, J as p, K as m, L as h, M as g, N as _, O as v, Ot as y, P as b, Q as x, R as ee, S as te, St as ne, Tt as re, U as ie, V as S, W as ae, X as oe, Y as se, Z as ce, _ as C, _t as w, a as T, at as E, b as D, bt as le, c as ue, ct as O, d as de, dt as fe, et as pe, f as k, ft as me, gt as he, h as ge, ht as _e, i as ve, it as ye, j as be, k as xe, l as Se, lt as Ce, m as we, mt as Te, n as Ee, nt as A, o as De, ot as Oe, p as ke, pt as Ae, q as je, r as Me, rt as Ne, s as Pe, st as Fe, t as Ie, tt as Le, u as Re, ut as ze, v as Be, vt as Ve, w as He, wt as Ue, x as We, xt as Ge, y as Ke, yt as qe, z as Je } from "./platform-workbench-DhaREttd.js";
3
+ import { $a as Ye, $i as Xe, $r as Ze, Aa as Qe, Ai as $e, An as et, Ar as tt, Ba as nt, Bi as rt, Bn as it, Br as at, Ca as ot, Ci as st, Cn as ct, Cr as lt, Da as ut, Di as dt, Dn as ft, Dr as pt, Ea as mt, Ei as ht, En as gt, Er as _t, Fa as vt, Fi as yt, Fr as bt, G as xt, Ga as St, Gi as Ct, Gn as wt, Gr as Tt, Ha as Et, Hi as Dt, Hn as Ot, Hr as kt, Ht as At, Ia as jt, Ii as Mt, In as Nt, Ir as Pt, It as Ft, Ja as It, Ji as Lt, Jn as Rt, Jr as zt, Ka as Bt, Ki as Vt, Kn as Ht, Kr as Ut, Kt as Wt, La as Gt, Li as Kt, Lr as qt, Ma as Jt, Mi as Yt, Mn as Xt, Mr as Zt, Na as Qt, Ni as $t, Nn as en, Nr as tn, Oa as nn, Oi as rn, Or as an, Pa as on, Pi as sn, Pn as cn, Pr as ln, Q as un, Qa as dn, Qi as fn, Qn as pn, Qr as mn, Ra as hn, Ri as gn, Rn as _n, Rr as vn, Sa as yn, Si as bn, Sn as xn, Sr as Sn, Ta as Cn, Ti as wn, Tr as Tn, Ua as En, Ui as Dn, Ur as On, Va as kn, Vi as An, Vr as jn, Wa as Mn, Wi as Nn, Wn as Pn, Wr as Fn, Xa as In, Xi as Ln, Xr as Rn, Ya as zn, Yi as Bn, Yr as Vn, Z as Hn, Za as Un, Zi as Wn, Zr as Gn, _a as Kn, _i as qn, _n as Jn, _r as Yn, _t as Xn, aa as Zn, ai as Qn, an as $n, ar as er, ba as tr, bi as nr, bn as rr, br as ir, bt as ar, ca as or, ci as sr, cn as cr, ct as lr, da as ur, di as dr, dn as fr, dr as pr, dt as mr, ea as hr, ei as gr, en as _r, eo as vr, er as yr, et as br, fa as xr, fi as Sr, fn as Cr, fr as wr, ft as Tr, ga as Er, gi as Dr, gr as Or, ha as kr, hi as Ar, hr as jr, ia as Mr, ii as Nr, io as Pr, ir as Fr, ja as Ir, ji as Lr, jr as Rr, ka as zr, ki as Br, kr as Vr, la as Hr, li as Ur, ln as Wr, lt as Gr, ma as Kr, mi as qr, mn as Jr, mr as Yr, mt as Xr, n as Zr, na as Qr, ni as $r, no as ei, oa as ti, oi as ni, on as ri, or as ii, pa as ai, pi as oi, pr as si, pt as ci, qa as li, qi as ui, qn as di, qr as fi, ra as pi, ri as mi, rn as hi, ro as gi, rr as j, sa as _i, si as vi, t as yi, ta as bi, ti as xi, tn as Si, tt as Ci, ua as wi, ui as Ti, un as Ei, ur as Di, ut as Oi, va as ki, vi as Ai, vn as ji, vr as Mi, vt as Ni, wa as Pi, wi as Fi, wr as Ii, xa as Li, xi as Ri, xr as zi, xt as Bi, ya as Vi, yi as Hi, yn as Ui, yr as Wi, za as Gi, zi as Ki, zn as qi, zr as Ji } from "./platform-components-i2ONyZ8r.js";
4
+ import { m as Yi } from "./codeConfiguration-DhCBKbkc.js";
5
+ import "./workspaceViews-MTwNg_aQ.js";
6
+ import * as Xi from "vue";
7
+ import { Fragment as Zi, computed as M, createBlock as N, createCommentVNode as P, createElementBlock as F, createElementVNode as I, createSlots as Qi, createTextVNode as $i, createVNode as L, defineAsyncComponent as R, defineComponent as z, guardReactiveProps as ea, inject as ta, normalizeClass as na, normalizeProps as ra, normalizeStyle as ia, onBeforeUnmount as aa, onMounted as oa, openBlock as B, provide as sa, ref as V, renderList as ca, renderSlot as H, resolveDynamicComponent as la, toDisplayString as U, unref as W, vShow as ua, watch as da, withCtx as G, withDirectives as fa, withModifiers as pa } from "vue";
8
8
  //#region node_modules/@tanstack/query-core/build/modern/subscribable.js
9
- var Ki = class {
9
+ var ma = class {
10
10
  constructor() {
11
11
  this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
12
12
  }
@@ -20,7 +20,7 @@ var Ki = class {
20
20
  }
21
21
  onSubscribe() {}
22
22
  onUnsubscribe() {}
23
- }, qi = new class extends Ki {
23
+ }, ha = new class extends ma {
24
24
  #e;
25
25
  #t;
26
26
  #n;
@@ -57,13 +57,13 @@ var Ki = class {
57
57
  isFocused() {
58
58
  return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
59
59
  }
60
- }(), Ji = {
60
+ }(), ga = {
61
61
  setTimeout: (e, t) => setTimeout(e, t),
62
62
  clearTimeout: (e) => clearTimeout(e),
63
63
  setInterval: (e, t) => setInterval(e, t),
64
64
  clearInterval: (e) => clearInterval(e)
65
- }, Yi = new class {
66
- #e = Ji;
65
+ }, _a = new class {
66
+ #e = ga;
67
67
  #t = !1;
68
68
  setTimeoutProvider(e) {
69
69
  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.", {
@@ -84,34 +84,34 @@ var Ki = class {
84
84
  this.#e.clearInterval(e);
85
85
  }
86
86
  }();
87
- function Xi(e) {
87
+ function va(e) {
88
88
  setTimeout(e, 0);
89
89
  }
90
90
  //#endregion
91
91
  //#region node_modules/@tanstack/query-core/build/modern/utils.js
92
- var Zi = typeof window > "u" || "Deno" in globalThis;
93
- function V() {}
94
- function Qi(e, t) {
92
+ var ya = typeof window > "u" || "Deno" in globalThis;
93
+ function K() {}
94
+ function ba(e, t) {
95
95
  return typeof e == "function" ? e(t) : e;
96
96
  }
97
- function $i(e) {
97
+ function xa(e) {
98
98
  return typeof e == "number" && e >= 0 && e !== Infinity;
99
99
  }
100
- function ea(e, t) {
100
+ function Sa(e, t) {
101
101
  return Math.max(e + (t || 0) - Date.now(), 0);
102
102
  }
103
- function ta(e, t) {
103
+ function Ca(e, t) {
104
104
  return typeof e == "function" ? e(t) : e;
105
105
  }
106
- function na(e, t) {
106
+ function wa(e, t) {
107
107
  return typeof e == "function" ? e(t) : e;
108
108
  }
109
- function ra(e, t) {
109
+ function Ta(e, t) {
110
110
  let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
111
111
  if (o) {
112
112
  if (r) {
113
- if (t.queryHash !== aa(o, t.options)) return !1;
114
- } else if (!U(t.queryKey, o)) return !1;
113
+ if (t.queryHash !== Da(o, t.options)) return !1;
114
+ } else if (!ka(t.queryKey, o)) return !1;
115
115
  }
116
116
  if (n !== "all") {
117
117
  let e = t.isActive();
@@ -119,90 +119,90 @@ function ra(e, t) {
119
119
  }
120
120
  return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
121
121
  }
122
- function ia(e, t) {
122
+ function Ea(e, t) {
123
123
  let { exact: n, status: r, predicate: i, mutationKey: a } = e;
124
124
  if (a) {
125
125
  if (!t.options.mutationKey) return !1;
126
126
  if (n) {
127
- if (H(t.options.mutationKey) !== H(a)) return !1;
128
- } else if (!U(t.options.mutationKey, a)) return !1;
127
+ if (Oa(t.options.mutationKey) !== Oa(a)) return !1;
128
+ } else if (!ka(t.options.mutationKey, a)) return !1;
129
129
  }
130
130
  return !(r && t.state.status !== r || i && !i(t));
131
131
  }
132
- function aa(e, t) {
133
- return (t?.queryKeyHashFn || H)(e);
132
+ function Da(e, t) {
133
+ return (t?.queryKeyHashFn || Oa)(e);
134
134
  }
135
- function H(e) {
136
- return JSON.stringify(e, (e, t) => la(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
135
+ function Oa(e) {
136
+ return JSON.stringify(e, (e, t) => Na(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
137
137
  }
138
- function U(e, t) {
139
- return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => U(e[n], t[n])) : !1;
138
+ function ka(e, t) {
139
+ return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => ka(e[n], t[n])) : !1;
140
140
  }
141
- var oa = Object.prototype.hasOwnProperty;
142
- function sa(e, t, n = 0) {
141
+ var Aa = Object.prototype.hasOwnProperty;
142
+ function ja(e, t, n = 0) {
143
143
  if (e === t) return e;
144
144
  if (n > 500) return t;
145
- let r = ca(e) && ca(t);
146
- if (!r && !(la(e) && la(t))) return t;
145
+ let r = Ma(e) && Ma(t);
146
+ if (!r && !(Na(e) && Na(t))) return t;
147
147
  let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
148
148
  for (let l = 0; l < o; l++) {
149
149
  let o = r ? l : a[l], u = e[o], d = t[o];
150
150
  if (u === d) {
151
- s[o] = u, (r ? l < i : oa.call(e, o)) && c++;
151
+ s[o] = u, (r ? l < i : Aa.call(e, o)) && c++;
152
152
  continue;
153
153
  }
154
154
  if (u === null || d === null || typeof u != "object" || typeof d != "object") {
155
155
  s[o] = d;
156
156
  continue;
157
157
  }
158
- let f = sa(u, d, n + 1);
158
+ let f = ja(u, d, n + 1);
159
159
  s[o] = f, f === u && c++;
160
160
  }
161
161
  return i === o && c === i ? e : s;
162
162
  }
163
- function ca(e) {
163
+ function Ma(e) {
164
164
  return Array.isArray(e) && e.length === Object.keys(e).length;
165
165
  }
166
- function la(e) {
167
- if (!ua(e)) return !1;
166
+ function Na(e) {
167
+ if (!Pa(e)) return !1;
168
168
  let t = e.constructor;
169
169
  if (t === void 0) return !0;
170
170
  let n = t.prototype;
171
- return !(!ua(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
171
+ return !(!Pa(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
172
172
  }
173
- function ua(e) {
173
+ function Pa(e) {
174
174
  return Object.prototype.toString.call(e) === "[object Object]";
175
175
  }
176
- function da(e) {
176
+ function Fa(e) {
177
177
  return new Promise((t) => {
178
- Yi.setTimeout(t, e);
178
+ _a.setTimeout(t, e);
179
179
  });
180
180
  }
181
- function fa(e, t, n) {
181
+ function Ia(e, t, n) {
182
182
  if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
183
183
  if (n.structuralSharing !== !1) {
184
184
  if (process.env.NODE_ENV !== "production") try {
185
- return sa(e, t);
185
+ return ja(e, t);
186
186
  } catch (e) {
187
187
  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;
188
188
  }
189
- return sa(e, t);
189
+ return ja(e, t);
190
190
  }
191
191
  return t;
192
192
  }
193
- function pa(e, t, n = 0) {
193
+ function La(e, t, n = 0) {
194
194
  let r = [...e, t];
195
195
  return n && r.length > n ? r.slice(1) : r;
196
196
  }
197
- function ma(e, t, n = 0) {
197
+ function Ra(e, t, n = 0) {
198
198
  let r = [t, ...e];
199
199
  return n && r.length > n ? r.slice(0, -1) : r;
200
200
  }
201
- var ha = /* @__PURE__ */ Symbol();
202
- function ga(e, t) {
203
- return process.env.NODE_ENV !== "production" && e.queryFn === ha && console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === ha ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
201
+ var za = /* @__PURE__ */ Symbol();
202
+ function Ba(e, t) {
203
+ return process.env.NODE_ENV !== "production" && e.queryFn === za && 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 === za ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
204
204
  }
205
- function _a(e, t, n) {
205
+ function Va(e, t, n) {
206
206
  let r = !1, i;
207
207
  return Object.defineProperty(e, "signal", {
208
208
  enumerable: !0,
@@ -211,8 +211,8 @@ function _a(e, t, n) {
211
211
  }
212
212
  //#endregion
213
213
  //#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
214
- var va = /* @__PURE__ */ (() => {
215
- let e = () => Zi;
214
+ var Ha = /* @__PURE__ */ (() => {
215
+ let e = () => ya;
216
216
  return {
217
217
  isServer() {
218
218
  return e();
@@ -224,7 +224,7 @@ var va = /* @__PURE__ */ (() => {
224
224
  })();
225
225
  //#endregion
226
226
  //#region node_modules/@tanstack/query-core/build/modern/thenable.js
227
- function ya() {
227
+ function Ua() {
228
228
  let e, t, n = new Promise((n, r) => {
229
229
  e = n, t = r;
230
230
  });
@@ -246,13 +246,13 @@ function ya() {
246
246
  }
247
247
  //#endregion
248
248
  //#region node_modules/@tanstack/query-core/build/modern/notifyManager.js
249
- var ba = Xi;
250
- function xa() {
249
+ var Wa = va;
250
+ function Ga() {
251
251
  let e = [], t = 0, n = (e) => {
252
252
  e();
253
253
  }, r = (e) => {
254
254
  e();
255
- }, i = ba, a = (r) => {
255
+ }, i = Wa, a = (r) => {
256
256
  t ? e.push(r) : i(() => {
257
257
  n(r);
258
258
  });
@@ -294,7 +294,7 @@ function xa() {
294
294
  }
295
295
  };
296
296
  }
297
- var W = xa(), G = new class extends Ki {
297
+ var q = Ga(), Ka = new class extends ma {
298
298
  #e = !0;
299
299
  #t;
300
300
  #n;
@@ -328,28 +328,28 @@ var W = xa(), G = new class extends Ki {
328
328
  }();
329
329
  //#endregion
330
330
  //#region node_modules/@tanstack/query-core/build/modern/retryer.js
331
- function Sa(e) {
331
+ function qa(e) {
332
332
  return Math.min(1e3 * 2 ** e, 3e4);
333
333
  }
334
- function Ca(e) {
335
- return (e ?? "online") !== "online" || G.isOnline();
334
+ function Ja(e) {
335
+ return (e ?? "online") !== "online" || Ka.isOnline();
336
336
  }
337
- var wa = class extends Error {
337
+ var Ya = class extends Error {
338
338
  constructor(e) {
339
339
  super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
340
340
  }
341
341
  };
342
- function Ta(e) {
343
- let t = !1, n = 0, r, i = ya(), a = () => i.status !== "pending", o = (t) => {
342
+ function Xa(e) {
343
+ let t = !1, n = 0, r, i = Ua(), a = () => i.status !== "pending", o = (t) => {
344
344
  if (!a()) {
345
- let n = new wa(t);
345
+ let n = new Ya(t);
346
346
  f(n), e.onCancel?.(n);
347
347
  }
348
348
  }, s = () => {
349
349
  t = !0;
350
350
  }, c = () => {
351
351
  t = !1;
352
- }, l = () => qi.isFocused() && (e.networkMode === "always" || G.isOnline()) && e.canRun(), u = () => Ca(e.networkMode) && e.canRun(), d = (e) => {
352
+ }, l = () => ha.isFocused() && (e.networkMode === "always" || Ka.isOnline()) && e.canRun(), u = () => Ja(e.networkMode) && e.canRun(), d = (e) => {
353
353
  a() || (r?.(), i.resolve(e));
354
354
  }, f = (e) => {
355
355
  a() || (r?.(), i.reject(e));
@@ -369,12 +369,12 @@ function Ta(e) {
369
369
  }
370
370
  Promise.resolve(r).then(d).catch((r) => {
371
371
  if (a()) return;
372
- let i = e.retry ?? (va.isServer() ? 0 : 3), o = e.retryDelay ?? Sa, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
372
+ let i = e.retry ?? (Ha.isServer() ? 0 : 3), o = e.retryDelay ?? qa, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
373
373
  if (t || !c) {
374
374
  f(r);
375
375
  return;
376
376
  }
377
- n++, e.onFail?.(n, r), da(s).then(() => l() ? void 0 : p()).then(() => {
377
+ n++, e.onFail?.(n, r), Fa(s).then(() => l() ? void 0 : p()).then(() => {
378
378
  t ? f(r) : m();
379
379
  });
380
380
  });
@@ -392,34 +392,34 @@ function Ta(e) {
392
392
  }
393
393
  //#endregion
394
394
  //#region node_modules/@tanstack/query-core/build/modern/removable.js
395
- var Ea = class {
395
+ var Za = class {
396
396
  #e;
397
397
  destroy() {
398
398
  this.clearGcTimeout();
399
399
  }
400
400
  scheduleGc() {
401
- this.clearGcTimeout(), $i(this.gcTime) && (this.#e = Yi.setTimeout(() => {
401
+ this.clearGcTimeout(), xa(this.gcTime) && (this.#e = _a.setTimeout(() => {
402
402
  this.optionalRemove();
403
403
  }, this.gcTime));
404
404
  }
405
405
  updateGcTime(e) {
406
- this.gcTime = Math.max(this.gcTime || 0, e ?? (va.isServer() ? Infinity : 3e5));
406
+ this.gcTime = Math.max(this.gcTime || 0, e ?? (Ha.isServer() ? Infinity : 3e5));
407
407
  }
408
408
  clearGcTimeout() {
409
- this.#e !== void 0 && (Yi.clearTimeout(this.#e), this.#e = void 0);
409
+ this.#e !== void 0 && (_a.clearTimeout(this.#e), this.#e = void 0);
410
410
  }
411
411
  };
412
412
  //#endregion
413
413
  //#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
414
- function Da(e) {
414
+ function Qa(e) {
415
415
  return { onFetch: (t, n) => {
416
416
  let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
417
417
  pages: [],
418
418
  pageParams: []
419
419
  }, c = 0, l = async () => {
420
420
  let n = !1, l = (e) => {
421
- _a(e, () => t.signal, () => n = !0);
422
- }, u = ga(t.options, t.fetchOptions), d = async (e, r, i) => {
421
+ Va(e, () => t.signal, () => n = !0);
422
+ }, u = Ba(t.options, t.fetchOptions), d = async (e, r, i) => {
423
423
  if (n) return Promise.reject(t.signal.reason);
424
424
  if (r == null && e.pages.length) return Promise.resolve(e);
425
425
  let a = (() => {
@@ -431,14 +431,14 @@ function Da(e) {
431
431
  meta: t.options.meta
432
432
  };
433
433
  return l(e), e;
434
- })(), o = await u(a), { maxPages: s } = t.options, c = i ? ma : pa;
434
+ })(), o = await u(a), { maxPages: s } = t.options, c = i ? Ra : La;
435
435
  return {
436
436
  pages: c(e.pages, o, s),
437
437
  pageParams: c(e.pageParams, r, s)
438
438
  };
439
439
  };
440
440
  if (i && a.length) {
441
- let e = i === "backward", t = e ? ka : Oa, n = {
441
+ let e = i === "backward", t = e ? eo : $a, n = {
442
442
  pages: a,
443
443
  pageParams: o
444
444
  };
@@ -446,7 +446,7 @@ function Da(e) {
446
446
  } else {
447
447
  let t = e ?? a.length;
448
448
  do {
449
- let e = c === 0 ? o[0] ?? r.initialPageParam : Oa(r, s);
449
+ let e = c === 0 ? o[0] ?? r.initialPageParam : $a(r, s);
450
450
  if (c > 0 && e == null) break;
451
451
  s = await d(s, e), c++;
452
452
  } while (c < t);
@@ -461,16 +461,16 @@ function Da(e) {
461
461
  }, n) : l;
462
462
  } };
463
463
  }
464
- function Oa(e, { pages: t, pageParams: n }) {
464
+ function $a(e, { pages: t, pageParams: n }) {
465
465
  let r = t.length - 1;
466
466
  return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
467
467
  }
468
- function ka(e, { pages: t, pageParams: n }) {
468
+ function eo(e, { pages: t, pageParams: n }) {
469
469
  return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
470
470
  }
471
471
  //#endregion
472
472
  //#region node_modules/@tanstack/query-core/build/modern/query.js
473
- var Aa = class extends Ea {
473
+ var to = class extends Za {
474
474
  #e;
475
475
  #t;
476
476
  #n;
@@ -480,7 +480,7 @@ var Aa = class extends Ea {
480
480
  #o;
481
481
  #s;
482
482
  constructor(e) {
483
- 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 = Na(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
483
+ 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 = io(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
484
484
  }
485
485
  get meta() {
486
486
  return this.options.meta;
@@ -496,15 +496,15 @@ var Aa = class extends Ea {
496
496
  ...this.#o,
497
497
  ...e
498
498
  }, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
499
- let e = Na(this.options);
500
- e.data !== void 0 && (this.setState(Ma(e.data, e.dataUpdatedAt)), this.#t = e);
499
+ let e = io(this.options);
500
+ e.data !== void 0 && (this.setState(ro(e.data, e.dataUpdatedAt)), this.#t = e);
501
501
  }
502
502
  }
503
503
  optionalRemove() {
504
504
  !this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
505
505
  }
506
506
  setData(e, t) {
507
- let n = fa(this.state.data, e, this.options);
507
+ let n = Ia(this.state.data, e, this.options);
508
508
  return this.#l({
509
509
  data: n,
510
510
  type: "success",
@@ -520,7 +520,7 @@ var Aa = class extends Ea {
520
520
  }
521
521
  cancel(e) {
522
522
  let t = this.#a?.promise;
523
- return this.#a?.cancel(e), t ? t.then(V).catch(V) : Promise.resolve();
523
+ return this.#a?.cancel(e), t ? t.then(K).catch(K) : Promise.resolve();
524
524
  }
525
525
  destroy() {
526
526
  super.destroy(), this.cancel({ silent: !0 });
@@ -532,22 +532,22 @@ var Aa = class extends Ea {
532
532
  this.destroy(), this.setState(this.resetState);
533
533
  }
534
534
  isActive() {
535
- return this.observers.some((e) => na(e.options.enabled, this) !== !1);
535
+ return this.observers.some((e) => wa(e.options.enabled, this) !== !1);
536
536
  }
537
537
  isDisabled() {
538
- return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === ha || !this.isFetched();
538
+ return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === za || !this.isFetched();
539
539
  }
540
540
  isFetched() {
541
541
  return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
542
542
  }
543
543
  isStatic() {
544
- return this.getObserversCount() > 0 && this.observers.some((e) => ta(e.options.staleTime, this) === "static");
544
+ return this.getObserversCount() > 0 && this.observers.some((e) => Ca(e.options.staleTime, this) === "static");
545
545
  }
546
546
  isStale() {
547
547
  return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
548
548
  }
549
549
  isStaleByTime(e = 0) {
550
- return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !ea(this.state.dataUpdatedAt, e);
550
+ return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !Sa(this.state.dataUpdatedAt, e);
551
551
  }
552
552
  onFocus() {
553
553
  this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
@@ -594,7 +594,7 @@ var Aa = class extends Ea {
594
594
  get: () => (this.#s = !0, n.signal)
595
595
  });
596
596
  }, i = () => {
597
- let e = ga(this.options, t), n = (() => {
597
+ let e = Ba(this.options, t), n = (() => {
598
598
  let e = {
599
599
  client: this.#i,
600
600
  queryKey: this.queryKey,
@@ -614,14 +614,14 @@ var Aa = class extends Ea {
614
614
  };
615
615
  return r(e), e;
616
616
  })();
617
- (this.#e === "infinite" ? Da(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
+ (this.#e === "infinite" ? Qa(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({
618
618
  type: "fetch",
619
619
  meta: a.fetchOptions?.meta
620
- }), this.#a = Ta({
620
+ }), this.#a = Xa({
621
621
  initialPromise: t?.initialPromise,
622
622
  fn: a.fetchFn,
623
623
  onCancel: (e) => {
624
- e instanceof wa && e.revert && this.setState({
624
+ e instanceof Ya && e.revert && this.setState({
625
625
  ...this.#n,
626
626
  fetchStatus: "idle"
627
627
  }), n.abort();
@@ -649,7 +649,7 @@ var Aa = class extends Ea {
649
649
  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`);
650
650
  return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;
651
651
  } catch (e) {
652
- if (e instanceof wa) {
652
+ if (e instanceof Ya) {
653
653
  if (e.silent) return this.#a.promise;
654
654
  if (e.revert) {
655
655
  if (this.state.data === void 0) throw e;
@@ -682,13 +682,13 @@ var Aa = class extends Ea {
682
682
  };
683
683
  case "fetch": return {
684
684
  ...t,
685
- ...ja(t.data, this.options),
685
+ ...no(t.data, this.options),
686
686
  fetchMeta: e.meta ?? null
687
687
  };
688
688
  case "success":
689
689
  let n = {
690
690
  ...t,
691
- ...Ma(e.data, e.dataUpdatedAt),
691
+ ...ro(e.data, e.dataUpdatedAt),
692
692
  dataUpdateCount: t.dataUpdateCount + 1,
693
693
  ...!e.manual && {
694
694
  fetchStatus: "idle",
@@ -720,7 +720,7 @@ var Aa = class extends Ea {
720
720
  };
721
721
  }
722
722
  };
723
- this.state = t(this.state), W.batch(() => {
723
+ this.state = t(this.state), q.batch(() => {
724
724
  this.observers.forEach((e) => {
725
725
  e.onQueryUpdate();
726
726
  }), this.#r.notify({
@@ -731,18 +731,18 @@ var Aa = class extends Ea {
731
731
  });
732
732
  }
733
733
  };
734
- function ja(e, t) {
734
+ function no(e, t) {
735
735
  return {
736
736
  fetchFailureCount: 0,
737
737
  fetchFailureReason: null,
738
- fetchStatus: Ca(t.networkMode) ? "fetching" : "paused",
738
+ fetchStatus: Ja(t.networkMode) ? "fetching" : "paused",
739
739
  ...e === void 0 && {
740
740
  error: null,
741
741
  status: "pending"
742
742
  }
743
743
  };
744
744
  }
745
- function Ma(e, t) {
745
+ function ro(e, t) {
746
746
  return {
747
747
  data: e,
748
748
  dataUpdatedAt: t ?? Date.now(),
@@ -751,7 +751,7 @@ function Ma(e, t) {
751
751
  status: "success"
752
752
  };
753
753
  }
754
- function Na(e) {
754
+ function io(e) {
755
755
  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;
756
756
  return {
757
757
  data: t,
@@ -770,13 +770,13 @@ function Na(e) {
770
770
  }
771
771
  //#endregion
772
772
  //#region node_modules/@tanstack/query-core/build/modern/mutation.js
773
- var Pa = class extends Ea {
773
+ var ao = class extends Za {
774
774
  #e;
775
775
  #t;
776
776
  #n;
777
777
  #r;
778
778
  constructor(e) {
779
- super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || Fa(), this.setOptions(e.options), this.scheduleGc();
779
+ super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || oo(), this.setOptions(e.options), this.scheduleGc();
780
780
  }
781
781
  setOptions(e) {
782
782
  this.options = e, this.updateGcTime(this.options.gcTime);
@@ -812,7 +812,7 @@ var Pa = class extends Ea {
812
812
  meta: this.options.meta,
813
813
  mutationKey: this.options.mutationKey
814
814
  };
815
- this.#r = Ta({
815
+ this.#r = Xa({
816
816
  fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
817
817
  onFail: (e, t) => {
818
818
  this.#i({
@@ -929,7 +929,7 @@ var Pa = class extends Ea {
929
929
  };
930
930
  }
931
931
  };
932
- this.state = t(this.state), W.batch(() => {
932
+ this.state = t(this.state), q.batch(() => {
933
933
  this.#t.forEach((t) => {
934
934
  t.onMutationUpdate(e);
935
935
  }), this.#n.notify({
@@ -940,7 +940,7 @@ var Pa = class extends Ea {
940
940
  });
941
941
  }
942
942
  };
943
- function Fa() {
943
+ function oo() {
944
944
  return {
945
945
  context: void 0,
946
946
  data: void 0,
@@ -955,7 +955,7 @@ function Fa() {
955
955
  }
956
956
  //#endregion
957
957
  //#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
958
- var Ia = class extends Ki {
958
+ var so = class extends ma {
959
959
  constructor(e = {}) {
960
960
  super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
961
961
  }
@@ -963,7 +963,7 @@ var Ia = class extends Ki {
963
963
  #t;
964
964
  #n;
965
965
  build(e, t, n) {
966
- let r = new Pa({
966
+ let r = new ao({
967
967
  client: e,
968
968
  mutationCache: this,
969
969
  mutationId: ++this.#n,
@@ -974,7 +974,7 @@ var Ia = class extends Ki {
974
974
  }
975
975
  add(e) {
976
976
  this.#e.add(e);
977
- let t = La(e);
977
+ let t = co(e);
978
978
  if (typeof t == "string") {
979
979
  let n = this.#t.get(t);
980
980
  n ? n.push(e) : this.#t.set(t, [e]);
@@ -986,7 +986,7 @@ var Ia = class extends Ki {
986
986
  }
987
987
  remove(e) {
988
988
  if (this.#e.delete(e)) {
989
- let t = La(e);
989
+ let t = co(e);
990
990
  if (typeof t == "string") {
991
991
  let n = this.#t.get(t);
992
992
  if (n) {
@@ -1003,7 +1003,7 @@ var Ia = class extends Ki {
1003
1003
  });
1004
1004
  }
1005
1005
  canRun(e) {
1006
- let t = La(e);
1006
+ let t = co(e);
1007
1007
  if (typeof t == "string") {
1008
1008
  let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
1009
1009
  return !n || n === e;
@@ -1011,11 +1011,11 @@ var Ia = class extends Ki {
1011
1011
  return !0;
1012
1012
  }
1013
1013
  runNext(e) {
1014
- let t = La(e);
1014
+ let t = co(e);
1015
1015
  return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
1016
1016
  }
1017
1017
  clear() {
1018
- W.batch(() => {
1018
+ q.batch(() => {
1019
1019
  this.#e.forEach((e) => {
1020
1020
  this.notify({
1021
1021
  type: "removed",
@@ -1032,13 +1032,13 @@ var Ia = class extends Ki {
1032
1032
  exact: !0,
1033
1033
  ...e
1034
1034
  };
1035
- return this.getAll().find((e) => ia(t, e));
1035
+ return this.getAll().find((e) => Ea(t, e));
1036
1036
  }
1037
1037
  findAll(e = {}) {
1038
- return this.getAll().filter((t) => ia(e, t));
1038
+ return this.getAll().filter((t) => Ea(e, t));
1039
1039
  }
1040
1040
  notify(e) {
1041
- W.batch(() => {
1041
+ q.batch(() => {
1042
1042
  this.listeners.forEach((t) => {
1043
1043
  t(e);
1044
1044
  });
@@ -1046,22 +1046,22 @@ var Ia = class extends Ki {
1046
1046
  }
1047
1047
  resumePausedMutations() {
1048
1048
  let e = this.getAll().filter((e) => e.state.isPaused);
1049
- return W.batch(() => Promise.all(e.map((e) => e.continue().catch(V))));
1049
+ return q.batch(() => Promise.all(e.map((e) => e.continue().catch(K))));
1050
1050
  }
1051
1051
  };
1052
- function La(e) {
1052
+ function co(e) {
1053
1053
  return e.options.scope?.id;
1054
1054
  }
1055
1055
  //#endregion
1056
1056
  //#region node_modules/@tanstack/query-core/build/modern/queryCache.js
1057
- var Ra = class extends Ki {
1057
+ var lo = class extends ma {
1058
1058
  constructor(e = {}) {
1059
1059
  super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
1060
1060
  }
1061
1061
  #e;
1062
1062
  build(e, t, n) {
1063
- let r = t.queryKey, i = t.queryHash ?? aa(r, t), a = this.get(i);
1064
- return a || (a = new Aa({
1063
+ let r = t.queryKey, i = t.queryHash ?? Da(r, t), a = this.get(i);
1064
+ return a || (a = new to({
1065
1065
  client: e,
1066
1066
  queryKey: r,
1067
1067
  queryHash: i,
@@ -1084,7 +1084,7 @@ var Ra = class extends Ki {
1084
1084
  }));
1085
1085
  }
1086
1086
  clear() {
1087
- W.batch(() => {
1087
+ q.batch(() => {
1088
1088
  this.getAll().forEach((e) => {
1089
1089
  this.remove(e);
1090
1090
  });
@@ -1101,34 +1101,34 @@ var Ra = class extends Ki {
1101
1101
  exact: !0,
1102
1102
  ...e
1103
1103
  };
1104
- return this.getAll().find((e) => ra(t, e));
1104
+ return this.getAll().find((e) => Ta(t, e));
1105
1105
  }
1106
1106
  findAll(e = {}) {
1107
1107
  let t = this.getAll();
1108
- return Object.keys(e).length > 0 ? t.filter((t) => ra(e, t)) : t;
1108
+ return Object.keys(e).length > 0 ? t.filter((t) => Ta(e, t)) : t;
1109
1109
  }
1110
1110
  notify(e) {
1111
- W.batch(() => {
1111
+ q.batch(() => {
1112
1112
  this.listeners.forEach((t) => {
1113
1113
  t(e);
1114
1114
  });
1115
1115
  });
1116
1116
  }
1117
1117
  onFocus() {
1118
- W.batch(() => {
1118
+ q.batch(() => {
1119
1119
  this.getAll().forEach((e) => {
1120
1120
  e.onFocus();
1121
1121
  });
1122
1122
  });
1123
1123
  }
1124
1124
  onOnline() {
1125
- W.batch(() => {
1125
+ q.batch(() => {
1126
1126
  this.getAll().forEach((e) => {
1127
1127
  e.onOnline();
1128
1128
  });
1129
1129
  });
1130
1130
  }
1131
- }, za = class {
1131
+ }, uo = class {
1132
1132
  #e;
1133
1133
  #t;
1134
1134
  #n;
@@ -1138,12 +1138,12 @@ var Ra = class extends Ki {
1138
1138
  #o;
1139
1139
  #s;
1140
1140
  constructor(e = {}) {
1141
- this.#e = e.queryCache || new Ra(), this.#t = e.mutationCache || new Ia(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
1141
+ this.#e = e.queryCache || new lo(), this.#t = e.mutationCache || new so(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
1142
1142
  }
1143
1143
  mount() {
1144
- this.#a++, this.#a === 1 && (this.#o = qi.subscribe(async (e) => {
1144
+ this.#a++, this.#a === 1 && (this.#o = ha.subscribe(async (e) => {
1145
1145
  e && (await this.resumePausedMutations(), this.#e.onFocus());
1146
- }), this.#s = G.subscribe(async (e) => {
1146
+ }), this.#s = Ka.subscribe(async (e) => {
1147
1147
  e && (await this.resumePausedMutations(), this.#e.onOnline());
1148
1148
  }));
1149
1149
  }
@@ -1168,20 +1168,20 @@ var Ra = class extends Ki {
1168
1168
  }
1169
1169
  ensureQueryData(e) {
1170
1170
  let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
1171
- return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(ta(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
1171
+ return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(Ca(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
1172
1172
  }
1173
1173
  getQueriesData(e) {
1174
1174
  return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
1175
1175
  }
1176
1176
  setQueryData(e, t, n) {
1177
- let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = Qi(t, i);
1177
+ let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = ba(t, i);
1178
1178
  if (a !== void 0) return this.#e.build(this, r).setData(a, {
1179
1179
  ...n,
1180
1180
  manual: !0
1181
1181
  });
1182
1182
  }
1183
1183
  setQueriesData(e, t, n) {
1184
- return W.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
1184
+ return q.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
1185
1185
  }
1186
1186
  getQueryState(e) {
1187
1187
  let t = this.defaultQueryOptions({ queryKey: e });
@@ -1189,7 +1189,7 @@ var Ra = class extends Ki {
1189
1189
  }
1190
1190
  removeQueries(e) {
1191
1191
  let t = this.#e;
1192
- W.batch(() => {
1192
+ q.batch(() => {
1193
1193
  t.findAll(e).forEach((e) => {
1194
1194
  t.remove(e);
1195
1195
  });
@@ -1197,7 +1197,7 @@ var Ra = class extends Ki {
1197
1197
  }
1198
1198
  resetQueries(e, t) {
1199
1199
  let n = this.#e;
1200
- return W.batch(() => (n.findAll(e).forEach((e) => {
1200
+ return q.batch(() => (n.findAll(e).forEach((e) => {
1201
1201
  e.reset();
1202
1202
  }), this.refetchQueries({
1203
1203
  type: "active",
@@ -1208,11 +1208,11 @@ var Ra = class extends Ki {
1208
1208
  let n = {
1209
1209
  revert: !0,
1210
1210
  ...t
1211
- }, r = W.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
1212
- return Promise.all(r).then(V).catch(V);
1211
+ }, r = q.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
1212
+ return Promise.all(r).then(K).catch(K);
1213
1213
  }
1214
1214
  invalidateQueries(e, t = {}) {
1215
- return W.batch(() => (this.#e.findAll(e).forEach((e) => {
1215
+ return q.batch(() => (this.#e.findAll(e).forEach((e) => {
1216
1216
  e.invalidate();
1217
1217
  }), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
1218
1218
  ...e,
@@ -1223,32 +1223,32 @@ var Ra = class extends Ki {
1223
1223
  let n = {
1224
1224
  ...t,
1225
1225
  cancelRefetch: t.cancelRefetch ?? !0
1226
- }, r = W.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
1226
+ }, r = q.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
1227
1227
  let t = e.fetch(void 0, n);
1228
- return n.throwOnError || (t = t.catch(V)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
1228
+ return n.throwOnError || (t = t.catch(K)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
1229
1229
  }));
1230
- return Promise.all(r).then(V);
1230
+ return Promise.all(r).then(K);
1231
1231
  }
1232
1232
  fetchQuery(e) {
1233
1233
  let t = this.defaultQueryOptions(e);
1234
1234
  t.retry === void 0 && (t.retry = !1);
1235
1235
  let n = this.#e.build(this, t);
1236
- return n.isStaleByTime(ta(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
1236
+ return n.isStaleByTime(Ca(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
1237
1237
  }
1238
1238
  prefetchQuery(e) {
1239
- return this.fetchQuery(e).then(V).catch(V);
1239
+ return this.fetchQuery(e).then(K).catch(K);
1240
1240
  }
1241
1241
  fetchInfiniteQuery(e) {
1242
1242
  return e._type = "infinite", this.fetchQuery(e);
1243
1243
  }
1244
1244
  prefetchInfiniteQuery(e) {
1245
- return this.fetchInfiniteQuery(e).then(V).catch(V);
1245
+ return this.fetchInfiniteQuery(e).then(K).catch(K);
1246
1246
  }
1247
1247
  ensureInfiniteQueryData(e) {
1248
1248
  return e._type = "infinite", this.ensureQueryData(e);
1249
1249
  }
1250
1250
  resumePausedMutations() {
1251
- return G.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
1251
+ return Ka.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
1252
1252
  }
1253
1253
  getQueryCache() {
1254
1254
  return this.#e;
@@ -1263,7 +1263,7 @@ var Ra = class extends Ki {
1263
1263
  this.#n = e;
1264
1264
  }
1265
1265
  setQueryDefaults(e, t) {
1266
- this.#r.set(H(e), {
1266
+ this.#r.set(Oa(e), {
1267
1267
  queryKey: e,
1268
1268
  defaultOptions: t
1269
1269
  });
@@ -1271,11 +1271,11 @@ var Ra = class extends Ki {
1271
1271
  getQueryDefaults(e) {
1272
1272
  let t = [...this.#r.values()], n = {};
1273
1273
  return t.forEach((t) => {
1274
- U(e, t.queryKey) && Object.assign(n, t.defaultOptions);
1274
+ ka(e, t.queryKey) && Object.assign(n, t.defaultOptions);
1275
1275
  }), n;
1276
1276
  }
1277
1277
  setMutationDefaults(e, t) {
1278
- this.#i.set(H(e), {
1278
+ this.#i.set(Oa(e), {
1279
1279
  mutationKey: e,
1280
1280
  defaultOptions: t
1281
1281
  });
@@ -1283,7 +1283,7 @@ var Ra = class extends Ki {
1283
1283
  getMutationDefaults(e) {
1284
1284
  let t = [...this.#i.values()], n = {};
1285
1285
  return t.forEach((t) => {
1286
- U(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
1286
+ ka(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
1287
1287
  }), n;
1288
1288
  }
1289
1289
  defaultQueryOptions(e) {
@@ -1294,7 +1294,7 @@ var Ra = class extends Ki {
1294
1294
  ...e,
1295
1295
  _defaulted: !0
1296
1296
  };
1297
- return t.queryHash ||= aa(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === ha && (t.enabled = !1), t;
1297
+ return t.queryHash ||= Da(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 === za && (t.enabled = !1), t;
1298
1298
  }
1299
1299
  defaultMutationOptions(e) {
1300
1300
  return e?._defaulted ? e : {
@@ -1307,22 +1307,22 @@ var Ra = class extends Ki {
1307
1307
  clear() {
1308
1308
  this.#e.clear(), this.#t.clear();
1309
1309
  }
1310
- }, K = /* @__PURE__ */ e({
1311
- Vue: () => Ai,
1310
+ }, J = /* @__PURE__ */ e({
1311
+ Vue: () => Xi,
1312
1312
  Vue2: () => void 0,
1313
- del: () => Ua,
1314
- install: () => Va,
1313
+ del: () => ho,
1314
+ install: () => po,
1315
1315
  isVue2: () => !1,
1316
1316
  isVue3: () => !0,
1317
- set: () => Ha
1317
+ set: () => mo
1318
1318
  });
1319
- import * as Ba from "vue";
1320
- t(K, Ba);
1321
- function Va() {}
1322
- function Ha(e, t, n) {
1319
+ import * as fo from "vue";
1320
+ t(J, fo);
1321
+ function po() {}
1322
+ function mo(e, t, n) {
1323
1323
  return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
1324
1324
  }
1325
- function Ua(e, t) {
1325
+ function ho(e, t) {
1326
1326
  if (Array.isArray(e)) {
1327
1327
  e.splice(t, 1);
1328
1328
  return;
@@ -1331,100 +1331,100 @@ function Ua(e, t) {
1331
1331
  }
1332
1332
  //#endregion
1333
1333
  //#region node_modules/@tanstack/vue-query/build/modern/utils.js
1334
- var Wa = "VUE_QUERY_CLIENT";
1335
- function Ga(e) {
1336
- return `${Wa}${e ? `:${e}` : ""}`;
1334
+ var go = "VUE_QUERY_CLIENT";
1335
+ function _o(e) {
1336
+ return `${go}${e ? `:${e}` : ""}`;
1337
1337
  }
1338
- function Ka(e, t, n = "", r = 0) {
1338
+ function vo(e, t, n = "", r = 0) {
1339
1339
  if (t) {
1340
1340
  let i = t(e, n, r);
1341
- if (i === void 0 && (0, K.isRef)(e) || i !== void 0) return i;
1341
+ if (i === void 0 && (0, J.isRef)(e) || i !== void 0) return i;
1342
1342
  }
1343
- if (Array.isArray(e)) return e.map((e, n) => Ka(e, t, String(n), r + 1));
1344
- if (typeof e == "object" && Ja(e)) {
1345
- let n = Object.entries(e).map(([e, n]) => [e, Ka(n, t, e, r + 1)]);
1343
+ if (Array.isArray(e)) return e.map((e, n) => vo(e, t, String(n), r + 1));
1344
+ if (typeof e == "object" && bo(e)) {
1345
+ let n = Object.entries(e).map(([e, n]) => [e, vo(n, t, e, r + 1)]);
1346
1346
  return Object.fromEntries(n);
1347
1347
  }
1348
1348
  return e;
1349
1349
  }
1350
- function qa(e, t) {
1351
- return Ka(e, t);
1350
+ function yo(e, t) {
1351
+ return vo(e, t);
1352
1352
  }
1353
- function q(e, t = !1) {
1354
- return qa(e, (e, n, r) => {
1355
- if (r === 1 && n === "queryKey") return q(e, !0);
1356
- if (t && Ya(e)) return q(e(), t);
1357
- if ((0, K.isRef)(e)) return q((0, K.unref)(e), t);
1353
+ function Y(e, t = !1) {
1354
+ return yo(e, (e, n, r) => {
1355
+ if (r === 1 && n === "queryKey") return Y(e, !0);
1356
+ if (t && xo(e)) return Y(e(), t);
1357
+ if ((0, J.isRef)(e)) return Y((0, J.unref)(e), t);
1358
1358
  });
1359
1359
  }
1360
- function Ja(e) {
1360
+ function bo(e) {
1361
1361
  if (Object.prototype.toString.call(e) !== "[object Object]") return !1;
1362
1362
  let t = Object.getPrototypeOf(e);
1363
1363
  return t === null || t === Object.prototype;
1364
1364
  }
1365
- function Ya(e) {
1365
+ function xo(e) {
1366
1366
  return typeof e == "function";
1367
1367
  }
1368
1368
  //#endregion
1369
1369
  //#region node_modules/@tanstack/vue-query/build/modern/queryCache.js
1370
- var Xa = class extends Ra {
1370
+ var So = class extends lo {
1371
1371
  find(e) {
1372
- return super.find(q(e));
1372
+ return super.find(Y(e));
1373
1373
  }
1374
1374
  findAll(e = {}) {
1375
- return super.findAll(q(e));
1375
+ return super.findAll(Y(e));
1376
1376
  }
1377
- }, Za = class extends Ia {
1377
+ }, Co = class extends so {
1378
1378
  find(e) {
1379
- return super.find(q(e));
1379
+ return super.find(Y(e));
1380
1380
  }
1381
1381
  findAll(e = {}) {
1382
- return super.findAll(q(e));
1382
+ return super.findAll(Y(e));
1383
1383
  }
1384
- }, Qa = class extends za {
1384
+ }, wo = class extends uo {
1385
1385
  constructor(e = {}) {
1386
1386
  let t = {
1387
1387
  defaultOptions: e.defaultOptions,
1388
- queryCache: e.queryCache || new Xa(),
1389
- mutationCache: e.mutationCache || new Za()
1388
+ queryCache: e.queryCache || new So(),
1389
+ mutationCache: e.mutationCache || new Co()
1390
1390
  };
1391
- super(t), this.isRestoring = (0, K.ref)(!1);
1391
+ super(t), this.isRestoring = (0, J.ref)(!1);
1392
1392
  }
1393
1393
  isFetching(e = {}) {
1394
- return super.isFetching(q(e));
1394
+ return super.isFetching(Y(e));
1395
1395
  }
1396
1396
  isMutating(e = {}) {
1397
- return super.isMutating(q(e));
1397
+ return super.isMutating(Y(e));
1398
1398
  }
1399
1399
  getQueryData(e) {
1400
- return super.getQueryData(q(e));
1400
+ return super.getQueryData(Y(e));
1401
1401
  }
1402
1402
  ensureQueryData(e) {
1403
- return super.ensureQueryData(q(e));
1403
+ return super.ensureQueryData(Y(e));
1404
1404
  }
1405
1405
  getQueriesData(e) {
1406
- return super.getQueriesData(q(e));
1406
+ return super.getQueriesData(Y(e));
1407
1407
  }
1408
1408
  setQueryData(e, t, n = {}) {
1409
- return super.setQueryData(q(e), t, q(n));
1409
+ return super.setQueryData(Y(e), t, Y(n));
1410
1410
  }
1411
1411
  setQueriesData(e, t, n = {}) {
1412
- return super.setQueriesData(q(e), t, q(n));
1412
+ return super.setQueriesData(Y(e), t, Y(n));
1413
1413
  }
1414
1414
  getQueryState(e) {
1415
- return super.getQueryState(q(e));
1415
+ return super.getQueryState(Y(e));
1416
1416
  }
1417
1417
  removeQueries(e = {}) {
1418
- return super.removeQueries(q(e));
1418
+ return super.removeQueries(Y(e));
1419
1419
  }
1420
1420
  resetQueries(e = {}, t = {}) {
1421
- return super.resetQueries(q(e), q(t));
1421
+ return super.resetQueries(Y(e), Y(t));
1422
1422
  }
1423
1423
  cancelQueries(e = {}, t = {}) {
1424
- return super.cancelQueries(q(e), q(t));
1424
+ return super.cancelQueries(Y(e), Y(t));
1425
1425
  }
1426
1426
  invalidateQueries(e = {}, t = {}) {
1427
- let n = q(e), r = q(t);
1427
+ let n = Y(e), r = Y(t);
1428
1428
  if (super.invalidateQueries({
1429
1429
  ...n,
1430
1430
  refetchType: "none"
@@ -1433,57 +1433,57 @@ var Xa = class extends Ra {
1433
1433
  ...n,
1434
1434
  type: n.refetchType ?? n.type ?? "active"
1435
1435
  };
1436
- return (0, K.nextTick)().then(() => super.refetchQueries(i, r));
1436
+ return (0, J.nextTick)().then(() => super.refetchQueries(i, r));
1437
1437
  }
1438
1438
  refetchQueries(e = {}, t = {}) {
1439
- return super.refetchQueries(q(e), q(t));
1439
+ return super.refetchQueries(Y(e), Y(t));
1440
1440
  }
1441
1441
  fetchQuery(e) {
1442
- return super.fetchQuery(q(e));
1442
+ return super.fetchQuery(Y(e));
1443
1443
  }
1444
1444
  prefetchQuery(e) {
1445
- return super.prefetchQuery(q(e));
1445
+ return super.prefetchQuery(Y(e));
1446
1446
  }
1447
1447
  fetchInfiniteQuery(e) {
1448
- return super.fetchInfiniteQuery(q(e));
1448
+ return super.fetchInfiniteQuery(Y(e));
1449
1449
  }
1450
1450
  prefetchInfiniteQuery(e) {
1451
- return super.prefetchInfiniteQuery(q(e));
1451
+ return super.prefetchInfiniteQuery(Y(e));
1452
1452
  }
1453
1453
  setDefaultOptions(e) {
1454
- super.setDefaultOptions(q(e));
1454
+ super.setDefaultOptions(Y(e));
1455
1455
  }
1456
1456
  setQueryDefaults(e, t) {
1457
- super.setQueryDefaults(q(e), q(t));
1457
+ super.setQueryDefaults(Y(e), Y(t));
1458
1458
  }
1459
1459
  getQueryDefaults(e) {
1460
- return super.getQueryDefaults(q(e));
1460
+ return super.getQueryDefaults(Y(e));
1461
1461
  }
1462
1462
  setMutationDefaults(e, t) {
1463
- super.setMutationDefaults(q(e), q(t));
1463
+ super.setMutationDefaults(Y(e), Y(t));
1464
1464
  }
1465
1465
  getMutationDefaults(e) {
1466
- return super.getMutationDefaults(q(e));
1466
+ return super.getMutationDefaults(Y(e));
1467
1467
  }
1468
1468
  };
1469
1469
  //#endregion
1470
1470
  //#region node_modules/@vue/devtools-api/lib/esm/env.js
1471
- function $a() {
1472
- return eo().__VUE_DEVTOOLS_GLOBAL_HOOK__;
1471
+ function To() {
1472
+ return Eo().__VUE_DEVTOOLS_GLOBAL_HOOK__;
1473
1473
  }
1474
- function eo() {
1474
+ function Eo() {
1475
1475
  return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
1476
1476
  }
1477
- var to = typeof Proxy == "function", no = "devtools-plugin:setup", ro = "plugin:settings:set", io, ao;
1478
- function oo() {
1479
- return io === void 0 && (typeof window < "u" && window.performance ? (io = !0, ao = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (io = !0, ao = globalThis.perf_hooks.performance) : io = !1), io;
1477
+ var Do = typeof Proxy == "function", Oo = "devtools-plugin:setup", ko = "plugin:settings:set", Ao, jo;
1478
+ function Mo() {
1479
+ return Ao === void 0 && (typeof window < "u" && window.performance ? (Ao = !0, jo = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (Ao = !0, jo = globalThis.perf_hooks.performance) : Ao = !1), Ao;
1480
1480
  }
1481
- function so() {
1482
- return oo() ? ao.now() : Date.now();
1481
+ function No() {
1482
+ return Mo() ? jo.now() : Date.now();
1483
1483
  }
1484
1484
  //#endregion
1485
1485
  //#region node_modules/@vue/devtools-api/lib/esm/proxy.js
1486
- var co = class {
1486
+ var Po = class {
1487
1487
  constructor(e, t) {
1488
1488
  this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = e, this.hook = t;
1489
1489
  let n = {};
@@ -1504,9 +1504,9 @@ var co = class {
1504
1504
  i = e;
1505
1505
  },
1506
1506
  now() {
1507
- return so();
1507
+ return No();
1508
1508
  }
1509
- }, t && t.on(ro, (e, t) => {
1509
+ }, t && t.on(ko, (e, t) => {
1510
1510
  e === this.plugin.id && this.fallbacks.setSettings(t);
1511
1511
  }), this.proxiedOn = new Proxy({}, { get: (e, t) => this.target ? this.target.on[t] : (...e) => {
1512
1512
  this.onQueue.push({
@@ -1533,11 +1533,11 @@ var co = class {
1533
1533
  };
1534
1534
  //#endregion
1535
1535
  //#region node_modules/@vue/devtools-api/lib/esm/index.js
1536
- function lo(e, t) {
1537
- let n = e, r = eo(), i = $a(), a = to && n.enableEarlyProxy;
1538
- if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(no, e, t);
1536
+ function Fo(e, t) {
1537
+ let n = e, r = Eo(), i = To(), a = Do && n.enableEarlyProxy;
1538
+ if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(Oo, e, t);
1539
1539
  else {
1540
- let e = a ? new co(n, i) : null;
1540
+ let e = a ? new Po(n, i) : null;
1541
1541
  (r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
1542
1542
  pluginDescriptor: n,
1543
1543
  setupFn: t,
@@ -1547,7 +1547,7 @@ function lo(e, t) {
1547
1547
  }
1548
1548
  //#endregion
1549
1549
  //#region node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
1550
- var uo = {
1550
+ var Io = {
1551
1551
  À: "A",
1552
1552
  Á: "A",
1553
1553
  Â: "A",
@@ -1947,11 +1947,11 @@ var uo = {
1947
1947
  x̧: "x",
1948
1948
  Z̧: "Z",
1949
1949
  z̧: "z"
1950
- }, fo = Object.keys(uo).join("|"), po = new RegExp(fo, "g");
1951
- function mo(e) {
1952
- return e.replace(po, (e) => uo[e]);
1950
+ }, Lo = Object.keys(Io).join("|"), Ro = new RegExp(Lo, "g");
1951
+ function zo(e) {
1952
+ return e.replace(Ro, (e) => Io[e]);
1953
1953
  }
1954
- var J = {
1954
+ var X = {
1955
1955
  CASE_SENSITIVE_EQUAL: 7,
1956
1956
  EQUAL: 6,
1957
1957
  STARTS_WITH: 5,
@@ -1961,9 +1961,9 @@ var J = {
1961
1961
  MATCHES: 1,
1962
1962
  NO_MATCH: 0
1963
1963
  };
1964
- function ho(e, t, n) {
1965
- if (n ||= {}, n.threshold = n.threshold ?? J.MATCHES, !n.accessors) {
1966
- let r = go(e, t, n);
1964
+ function Bo(e, t, n) {
1965
+ if (n ||= {}, n.threshold = n.threshold ?? X.MATCHES, !n.accessors) {
1966
+ let r = Vo(e, t, n);
1967
1967
  return {
1968
1968
  rankedValue: e,
1969
1969
  rank: r,
@@ -1972,23 +1972,23 @@ function ho(e, t, n) {
1972
1972
  passed: r >= n.threshold
1973
1973
  };
1974
1974
  }
1975
- let r = xo(e, n.accessors), i = {
1975
+ let r = Ko(e, n.accessors), i = {
1976
1976
  rankedValue: e,
1977
- rank: J.NO_MATCH,
1977
+ rank: X.NO_MATCH,
1978
1978
  accessorIndex: -1,
1979
1979
  accessorThreshold: n.threshold,
1980
1980
  passed: !1
1981
1981
  };
1982
1982
  for (let e = 0; e < r.length; e++) {
1983
- let a = r[e], o = go(a.itemValue, t, n), { minRanking: s, maxRanking: c, threshold: l = n.threshold } = a.attributes;
1984
- o < s && o >= J.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);
1983
+ let a = r[e], o = Vo(a.itemValue, t, n), { minRanking: s, maxRanking: c, threshold: l = n.threshold } = a.attributes;
1984
+ o < s && o >= X.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);
1985
1985
  }
1986
1986
  return i;
1987
1987
  }
1988
- function go(e, t, n) {
1989
- return e = yo(e, n), t = yo(t, n), t.length > e.length ? J.NO_MATCH : e === t ? J.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? J.EQUAL : e.startsWith(t) ? J.STARTS_WITH : e.includes(` ${t}`) ? J.WORD_STARTS_WITH : e.includes(t) ? J.CONTAINS : t.length === 1 ? J.NO_MATCH : _o(e).includes(t) ? J.ACRONYM : vo(e, t));
1988
+ function Vo(e, t, n) {
1989
+ return e = Wo(e, n), t = Wo(t, n), t.length > e.length ? X.NO_MATCH : e === t ? X.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? X.EQUAL : e.startsWith(t) ? X.STARTS_WITH : e.includes(` ${t}`) ? X.WORD_STARTS_WITH : e.includes(t) ? X.CONTAINS : t.length === 1 ? X.NO_MATCH : Ho(e).includes(t) ? X.ACRONYM : Uo(e, t));
1990
1990
  }
1991
- function _o(e) {
1991
+ function Ho(e) {
1992
1992
  let t = "";
1993
1993
  return e.split(" ").forEach((e) => {
1994
1994
  e.split("-").forEach((e) => {
@@ -1996,7 +1996,7 @@ function _o(e) {
1996
1996
  });
1997
1997
  }), t;
1998
1998
  }
1999
- function vo(e, t) {
1999
+ function Uo(e, t) {
2000
2000
  let n = 0, r = 0;
2001
2001
  function i(e, t, r) {
2002
2002
  for (let i = r, a = t.length; i < a; i++) if (t[i] === e) return n += 1, i + 1;
@@ -2004,31 +2004,31 @@ function vo(e, t) {
2004
2004
  }
2005
2005
  function a(e) {
2006
2006
  let r = 1 / e, i = n / t.length;
2007
- return J.MATCHES + i * r;
2007
+ return X.MATCHES + i * r;
2008
2008
  }
2009
2009
  let o = i(t[0], e, 0);
2010
- if (o < 0) return J.NO_MATCH;
2010
+ if (o < 0) return X.NO_MATCH;
2011
2011
  r = o;
2012
2012
  for (let n = 1, a = t.length; n < a; n++) {
2013
2013
  let a = t[n];
2014
- if (r = i(a, e, r), !(r > -1)) return J.NO_MATCH;
2014
+ if (r = i(a, e, r), !(r > -1)) return X.NO_MATCH;
2015
2015
  }
2016
2016
  return a(r - o);
2017
2017
  }
2018
- function yo(e, t) {
2018
+ function Wo(e, t) {
2019
2019
  let { keepDiacritics: n } = t;
2020
- return e = `${e}`, n || (e = mo(e)), e;
2020
+ return e = `${e}`, n || (e = zo(e)), e;
2021
2021
  }
2022
- function bo(e, t) {
2022
+ function Go(e, t) {
2023
2023
  let n = t;
2024
2024
  typeof t == "object" && (n = t.accessor);
2025
2025
  let r = n(e);
2026
2026
  return r == null ? [] : Array.isArray(r) ? r : [String(r)];
2027
2027
  }
2028
- function xo(e, t) {
2028
+ function Ko(e, t) {
2029
2029
  let n = [];
2030
2030
  for (let r = 0, i = t.length; r < i; r++) {
2031
- let i = t[r], a = Co(i), o = bo(e, i);
2031
+ let i = t[r], a = Jo(i), o = Go(e, i);
2032
2032
  for (let e = 0, t = o.length; e < t; e++) n.push({
2033
2033
  itemValue: o[e],
2034
2034
  attributes: a
@@ -2036,41 +2036,41 @@ function xo(e, t) {
2036
2036
  }
2037
2037
  return n;
2038
2038
  }
2039
- var So = {
2039
+ var qo = {
2040
2040
  maxRanking: Infinity,
2041
2041
  minRanking: -Infinity
2042
2042
  };
2043
- function Co(e) {
2044
- return typeof e == "function" ? So : {
2045
- ...So,
2043
+ function Jo(e) {
2044
+ return typeof e == "function" ? qo : {
2045
+ ...qo,
2046
2046
  ...e
2047
2047
  };
2048
2048
  }
2049
2049
  //#endregion
2050
2050
  //#region node_modules/@tanstack/vue-query/build/modern/devtools/utils.js
2051
- function Y(e) {
2051
+ function Z(e) {
2052
2052
  return e.state.fetchStatus === "fetching" ? 0 : e.state.fetchStatus === "paused" ? 4 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3;
2053
2053
  }
2054
- function wo(e) {
2055
- let t = Y(e);
2054
+ function Yo(e) {
2055
+ let t = Z(e);
2056
2056
  return t === 0 ? "fetching" : t === 4 ? "paused" : t === 2 ? "stale" : t === 3 ? "inactive" : "fresh";
2057
2057
  }
2058
- function To(e) {
2059
- return Y(e) === 2 ? 0 : 16777215;
2058
+ function Xo(e) {
2059
+ return Z(e) === 2 ? 0 : 16777215;
2060
2060
  }
2061
- function Eo(e) {
2062
- let t = Y(e);
2061
+ function Zo(e) {
2062
+ let t = Z(e);
2063
2063
  return t === 0 ? 27647 : t === 4 ? 9193963 : t === 2 ? 16757248 : t === 3 ? 4148832 : 33575;
2064
2064
  }
2065
- var Do = (e, t) => e.queryHash.localeCompare(t.queryHash), Oo = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, ko = {
2066
- "Status > Last Updated": (e, t) => Y(e) === Y(t) ? Oo(e, t) : Y(e) > Y(t) ? 1 : -1,
2067
- "Query Hash": Do,
2068
- "Last Updated": Oo
2069
- }, X = "vue-query", Ao = "Vue Query";
2070
- function jo(e, t) {
2071
- lo({
2072
- id: X,
2073
- label: Ao,
2065
+ var Qo = (e, t) => e.queryHash.localeCompare(t.queryHash), $o = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, es = {
2066
+ "Status > Last Updated": (e, t) => Z(e) === Z(t) ? $o(e, t) : Z(e) > Z(t) ? 1 : -1,
2067
+ "Query Hash": Qo,
2068
+ "Last Updated": $o
2069
+ }, Q = "vue-query", ts = "Vue Query";
2070
+ function ns(e, t) {
2071
+ Fo({
2072
+ id: Q,
2073
+ label: ts,
2074
2074
  packageName: "vue-query",
2075
2075
  homepage: "https://tanstack.com/query/latest",
2076
2076
  logo: "https://raw.githubusercontent.com/TanStack/query/main/packages/vue-query/media/vue-query.svg",
@@ -2092,11 +2092,11 @@ function jo(e, t) {
2092
2092
  sortFn: {
2093
2093
  type: "choice",
2094
2094
  label: "Sort Function",
2095
- options: Object.keys(ko).map((e) => ({
2095
+ options: Object.keys(es).map((e) => ({
2096
2096
  label: e,
2097
2097
  value: e
2098
2098
  })),
2099
- defaultValue: Object.keys(ko)[0]
2099
+ defaultValue: Object.keys(es)[0]
2100
2100
  },
2101
2101
  onlineMode: {
2102
2102
  type: "choice",
@@ -2114,11 +2114,11 @@ function jo(e, t) {
2114
2114
  }
2115
2115
  }, (e) => {
2116
2116
  let n = e.getSettings();
2117
- G.setOnline(!!n.onlineMode.valueOf());
2117
+ Ka.setOnline(!!n.onlineMode.valueOf());
2118
2118
  let r = t.getQueryCache();
2119
2119
  e.addInspector({
2120
- id: X,
2121
- label: Ao,
2120
+ id: Q,
2121
+ label: ts,
2122
2122
  icon: "api",
2123
2123
  nodeActions: [
2124
2124
  {
@@ -2177,16 +2177,16 @@ function jo(e, t) {
2177
2177
  }
2178
2178
  ]
2179
2179
  }), e.addTimelineLayer({
2180
- id: X,
2181
- label: Ao,
2180
+ id: Q,
2181
+ label: ts,
2182
2182
  color: 16767308
2183
2183
  }), r.subscribe((t) => {
2184
- e.sendInspectorTree(X), e.sendInspectorState(X), [
2184
+ e.sendInspectorTree(Q), e.sendInspectorState(Q), [
2185
2185
  "added",
2186
2186
  "removed",
2187
2187
  "updated"
2188
2188
  ].includes(t.type) && e.addTimelineEvent({
2189
- layerId: X,
2189
+ layerId: Q,
2190
2190
  event: {
2191
2191
  title: t.type,
2192
2192
  subtitle: t.query.queryHash,
@@ -2198,25 +2198,25 @@ function jo(e, t) {
2198
2198
  }
2199
2199
  });
2200
2200
  }), e.on.setPluginSettings((e) => {
2201
- e.key === "onlineMode" && G.setOnline(!!e.newValue);
2201
+ e.key === "onlineMode" && Ka.setOnline(!!e.newValue);
2202
2202
  }), e.on.getInspectorTree((t) => {
2203
- if (t.inspectorId === X) {
2203
+ if (t.inspectorId === Q) {
2204
2204
  let n = r.getAll(), i = e.getSettings();
2205
- t.rootNodes = (t.filter ? n.filter((e) => ho(e.queryHash, t.filter).passed) : [...n]).sort((e, t) => ko[i.sortFn](e, t) * i.baseSort).map((e) => {
2206
- let t = wo(e);
2205
+ t.rootNodes = (t.filter ? n.filter((e) => Bo(e.queryHash, t.filter).passed) : [...n]).sort((e, t) => es[i.sortFn](e, t) * i.baseSort).map((e) => {
2206
+ let t = Yo(e);
2207
2207
  return {
2208
2208
  id: e.queryHash,
2209
2209
  label: e.queryHash,
2210
2210
  tags: [{
2211
2211
  label: `${t} [${e.getObserversCount()}]`,
2212
- textColor: To(e),
2213
- backgroundColor: Eo(e)
2212
+ textColor: Xo(e),
2213
+ backgroundColor: Zo(e)
2214
2214
  }]
2215
2215
  };
2216
2216
  });
2217
2217
  }
2218
2218
  }), e.on.getInspectorState((e) => {
2219
- if (e.inspectorId === X) {
2219
+ if (e.inspectorId === Q) {
2220
2220
  let t = r.get(e.nodeId);
2221
2221
  if (!t) return;
2222
2222
  e.state = {
@@ -2227,7 +2227,7 @@ function jo(e, t) {
2227
2227
  },
2228
2228
  {
2229
2229
  key: "Query status",
2230
- value: wo(t)
2230
+ value: Yo(t)
2231
2231
  },
2232
2232
  {
2233
2233
  key: "Observers",
@@ -2253,9 +2253,9 @@ function jo(e, t) {
2253
2253
  }
2254
2254
  //#endregion
2255
2255
  //#region node_modules/@tanstack/vue-query/build/modern/vueQueryPlugin.js
2256
- var Mo = { install: (e, t = {}) => {
2257
- let n = Ga(t.queryClientKey), r;
2258
- r = "queryClient" in t && t.queryClient ? t.queryClient : new Qa("queryClientConfig" in t ? t.queryClientConfig : void 0), va.isServer() || r.mount();
2256
+ var rs = { install: (e, t = {}) => {
2257
+ let n = _o(t.queryClientKey), r;
2258
+ r = "queryClient" in t && t.queryClient ? t.queryClient : new wo("queryClientConfig" in t ? t.queryClientConfig : void 0), Ha.isServer() || r.mount();
2259
2259
  let i = () => {};
2260
2260
  if (t.clientPersister) {
2261
2261
  r.isRestoring && (r.isRestoring.value = !0);
@@ -2274,17 +2274,17 @@ var Mo = { install: (e, t = {}) => {
2274
2274
  a(), t();
2275
2275
  };
2276
2276
  }
2277
- e.provide(n, r), process.env.NODE_ENV === "development" && t.enableDevtoolsV6Plugin && jo(e, r);
2277
+ e.provide(n, r), process.env.NODE_ENV === "development" && t.enableDevtoolsV6Plugin && ns(e, r);
2278
2278
  } };
2279
2279
  //#endregion
2280
2280
  //#region src/web-core/query.ts
2281
- function No() {
2282
- return new Qa({ defaultOptions: { queries: {
2281
+ function is() {
2282
+ return new wo({ defaultOptions: { queries: {
2283
2283
  staleTime: 3e4,
2284
2284
  refetchOnWindowFocus: !1
2285
2285
  } } });
2286
2286
  }
2287
- var Po = {
2287
+ var as = {
2288
2288
  session: { current: ["session", "current"] },
2289
2289
  menu: { mine: ["menu", "mine"] },
2290
2290
  staticModule: {
@@ -2310,7 +2310,7 @@ var Po = {
2310
2310
  };
2311
2311
  //#endregion
2312
2312
  //#region src/web-core/constructionPlanClient.ts
2313
- function Fo(e) {
2313
+ function os(e) {
2314
2314
  let t = "/platform.application-construction-plans", n = (e) => `${t}/${encodeURIComponent(e)}`;
2315
2315
  return {
2316
2316
  designContract: () => e.request({ path: `${t}/design-contract` }),
@@ -2345,10 +2345,10 @@ function Fo(e) {
2345
2345
  }
2346
2346
  //#endregion
2347
2347
  //#region src/web-core/assistantConversationClient.ts
2348
- function Io(e) {
2348
+ function ss(e) {
2349
2349
  let t = "/platform.assistant-conversations";
2350
2350
  return {
2351
- lookupOperation: (t) => be(e, t),
2351
+ lookupOperation: (t) => he(e, t),
2352
2352
  list: (n, r) => e.request({
2353
2353
  path: t,
2354
2354
  query: {
@@ -2372,92 +2372,128 @@ function Io(e) {
2372
2372
  };
2373
2373
  }
2374
2374
  //#endregion
2375
+ //#region src/web-core/recordReadEntry.ts
2376
+ function cs(e) {
2377
+ let { page: t, moduleAlias: n } = e;
2378
+ if (t?.target.moduleAlias && t.target.moduleAlias !== n) throw Error(`Read entry module mismatch: ${n}`);
2379
+ let r = {};
2380
+ if (t?.entryParamsJson !== void 0) {
2381
+ let e = JSON.parse(t.entryParamsJson);
2382
+ if (typeof e != "object" || !e || Array.isArray(e)) throw Error("Read entry parameters require a JSON object");
2383
+ r = e;
2384
+ }
2385
+ let i = r.view;
2386
+ if (i !== void 0 && (typeof i != "string" || !i.trim())) throw Error("Read entry requires a named view");
2387
+ let a = t?.menuId ? i : e.directViewCode ?? i ?? e.defaultViewCode;
2388
+ if (typeof a != "string" || !e.viewCodes.includes(a)) throw Error(`Unknown read view: ${String(a)}`);
2389
+ if (t?.menuId && e.directViewCode && e.directViewCode !== a) throw Error("Read entry view conflicts with menu");
2390
+ return {
2391
+ moduleAlias: n,
2392
+ viewCode: a,
2393
+ menuId: t?.menuId,
2394
+ params: r,
2395
+ ...t?.pageType === "dynamic-module" || t?.pageType === "business-route" ? {
2396
+ defaultUiConfigId: t.target.defaultUiConfigId,
2397
+ defaultQueryTemplateId: t.target.defaultQueryTemplateId
2398
+ } : {}
2399
+ };
2400
+ }
2401
+ //#endregion
2375
2402
  //#region src/platform-admin-runtime/platformAdminRoutes.ts
2376
- var Lo = P(() => import("./workspaceViews-D37OpJ7g.js").then((e) => e.n)), Ro = P(() => import("./BusinessActivityLogView-DudCmeKP.js")), zo = P(() => import("./RequestErrorLogView-tmjMOeLE.js")), Bo = P(() => import("./LoginAuditLogView-Cj3PMvN5.js")), Vo = P(() => import("./RuntimeLogView-BkkgHcF0.js")), Ho = [
2403
+ var ls = R(() => import("./workspaceViews-MTwNg_aQ.js").then((e) => e.n)), us = R(() => import("./BusinessActivityLogView-6L75GZVc.js")), ds = R(() => import("./RequestErrorLogView-BJDO3Scn.js")), fs = R(() => import("./LoginAuditLogView-B_RQ9JIX.js")), ps = R(() => import("./RuntimeLogView-jP9ceuJD.js")), ms = [
2377
2404
  {
2378
2405
  route: "/platform/code-rule",
2379
2406
  moduleAlias: "platform.code_rule",
2380
- component: P(() => import("./CodeConfigurationView-ZjVgaZkD.js").then((e) => e.n)),
2407
+ component: R(() => import("./CodeConfigurationView-D7sqbNCg.js").then((e) => e.n)),
2381
2408
  layout: "workspace"
2382
2409
  },
2383
2410
  {
2384
2411
  route: "/platform/translations",
2385
2412
  moduleAlias: "platform.localization",
2386
- component: P(() => import("./ConfigurationTranslationView-Dl757QMl.js")),
2413
+ component: R(() => import("./ConfigurationTranslationView-ta82REbn.js")),
2387
2414
  layout: "workspace"
2388
2415
  },
2389
2416
  {
2390
2417
  route: "/workflow/admin",
2391
2418
  moduleAlias: "platform.workflow_admin",
2392
- component: P(() => import("./WorkflowAdministrationView-DOhA_5-M.js")),
2419
+ component: R(() => import("./WorkflowAdministrationView-BmNJQYtq.js")),
2393
2420
  layout: "workspace"
2394
2421
  },
2395
2422
  {
2396
2423
  route: "/workflow/workbench",
2397
2424
  moduleAlias: "iam.workflow_workbench",
2398
- component: P(() => import("./WorkflowWorkbenchView-Cf6yiofx.js")),
2425
+ component: R(() => import("./WorkflowWorkbenchView-BvPNKbuV.js")),
2399
2426
  layout: "workspace"
2400
2427
  },
2401
2428
  {
2402
2429
  route: "/platform/logs/runtime",
2403
2430
  moduleAlias: "platform.runtime_log",
2404
- component: Vo,
2431
+ component: ps,
2405
2432
  layout: "workspace"
2406
2433
  },
2407
2434
  {
2408
2435
  route: "/platform/logs/activity",
2409
2436
  moduleAlias: "platform.business_activity_log",
2410
- component: Ro,
2437
+ component: us,
2411
2438
  layout: "workspace"
2412
2439
  },
2413
2440
  {
2414
2441
  route: "/platform/logs/errors",
2415
2442
  moduleAlias: "platform.request_error_log",
2416
- component: zo,
2443
+ component: ds,
2417
2444
  layout: "workspace"
2418
2445
  },
2419
2446
  {
2420
2447
  route: "/iam/logs/login",
2421
2448
  moduleAlias: "iam.login_audit_log",
2422
- component: Bo,
2449
+ component: fs,
2423
2450
  layout: "workspace"
2424
2451
  },
2425
2452
  {
2426
2453
  route: "/iam/role/authorization",
2427
2454
  moduleAlias: "iam.role",
2428
- component: Lo,
2455
+ component: ls,
2429
2456
  layout: "workspace",
2430
2457
  menuEntry: !1
2431
2458
  }
2432
- ], Uo = Array.from(/* @__PURE__ */ new Set(["/_platform/workspace", ...Ho.map((e) => e.route)])), Wo = Object.fromEntries(Ho.filter((e) => e.menuEntry !== !1).map((e) => [e.moduleAlias, e.route])), Go = Object.fromEntries(Ho.map((e) => [e.route, e.layout]));
2433
- function Ko(e) {
2434
- if (e) return Ho.find((t) => Jo(t, e.target));
2459
+ ], hs = Array.from(/* @__PURE__ */ new Set(["/_platform/workspace", ...ms.map((e) => e.route)])), gs = Object.fromEntries(ms.filter((e) => e.menuEntry !== !1).map((e) => [e.moduleAlias, e.route])), _s = Object.fromEntries(ms.map((e) => [e.route, e.layout]));
2460
+ function vs(e) {
2461
+ if (e) return ms.find((t) => bs(t, e.target));
2435
2462
  }
2436
- function qo(e) {
2437
- return e?.pageType === "business-route" && !!Ko(e);
2463
+ function ys(e) {
2464
+ return e?.pageType === "business-route" && !!vs(e);
2438
2465
  }
2439
- function Jo(e, t) {
2440
- return t.route ? Yo(e.route, t.route) && (t.moduleAlias === void 0 || t.moduleAlias === e.moduleAlias) : t.moduleAlias === e.moduleAlias;
2466
+ function bs(e, t) {
2467
+ return t.route ? xs(e.route, t.route) && (t.moduleAlias === void 0 || t.moduleAlias === e.moduleAlias) : t.moduleAlias === e.moduleAlias;
2441
2468
  }
2442
- function Yo(e, t) {
2469
+ function xs(e, t) {
2443
2470
  let n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean);
2444
2471
  return n.length === r.length && n.every((e, t) => e.startsWith(":") || e === r[t]);
2445
2472
  }
2446
2473
  //#endregion
2447
2474
  //#region src/app/pageRouteContext.ts
2448
- var Xo = Symbol("page-route");
2449
- function Zo(e) {
2450
- Bi(Xo, O(e));
2475
+ var Ss = Symbol("page-route"), Cs = Symbol("page-descriptor");
2476
+ function ws(e) {
2477
+ sa(Ss, M(e));
2478
+ }
2479
+ function Ts() {
2480
+ let e = ta(Ss);
2481
+ if (e) return e;
2482
+ let t = T();
2483
+ return M(() => t);
2484
+ }
2485
+ function Es() {
2486
+ return ta(Cs) ?? M(() => void 0);
2451
2487
  }
2452
2488
  //#endregion
2453
2489
  //#region src/platform-admin-runtime/PlatformAdminOutlet.vue
2454
- var Qo = /* @__PURE__ */ F({
2490
+ var Ds = /* @__PURE__ */ z({
2455
2491
  name: "PlatformAdminRouteOutlet",
2456
2492
  __name: "PlatformAdminOutlet",
2457
2493
  props: { descriptor: {} },
2458
2494
  setup(e) {
2459
- let t = e, n = O(() => Ko(t.descriptor)), r = O(() => t.descriptor.target.moduleAlias ?? n.value?.moduleAlias), i = O(() => t.descriptor.target.query?.workspacePresentation);
2460
- zt(O(() => t.descriptor.layout ?? n.value?.layout)), Zo(() => {
2495
+ let t = e, n = M(() => vs(t.descriptor)), r = M(() => t.descriptor.target.moduleAlias ?? n.value?.moduleAlias), i = M(() => t.descriptor.target.query?.workspacePresentation);
2496
+ Si(M(() => t.descriptor.layout ?? n.value?.layout)), ws(() => {
2461
2497
  let e = n.value?.route ?? t.descriptor.target.route ?? "", r = t.descriptor.target.route ?? e;
2462
2498
  return {
2463
2499
  path: r,
@@ -2473,36 +2509,36 @@ var Qo = /* @__PURE__ */ F({
2473
2509
  e.startsWith(":") && i[t] && (n[e.slice(1)] = i[t]);
2474
2510
  }), n;
2475
2511
  }
2476
- return (t, a) => n.value && r.value ? (I(), k(z($t), {
2512
+ return (t, a) => n.value && r.value ? (B(), N(W(jn), {
2477
2513
  key: 0,
2478
2514
  "module-alias": r.value
2479
2515
  }, {
2480
- default: B(() => [i.value === "drawer" || i.value === "tab" ? (I(), k(z(Me), {
2516
+ default: G(() => [i.value === "drawer" || i.value === "tab" ? (B(), N(W(De), {
2481
2517
  key: 0,
2482
2518
  descriptor: e.descriptor
2483
- }, null, 8, ["descriptor"])) : (I(), k(Ui(n.value.component), { key: 1 }))]),
2519
+ }, null, 8, ["descriptor"])) : (B(), N(la(n.value.component), { key: 1 }))]),
2484
2520
  _: 1
2485
- }, 8, ["module-alias"])) : A("v-if", !0);
2521
+ }, 8, ["module-alias"])) : P("v-if", !0);
2486
2522
  }
2487
- }), $o;
2488
- function es(e) {
2489
- $o = e;
2523
+ }), Os;
2524
+ function ks(e) {
2525
+ Os = e;
2490
2526
  }
2491
- function ts(e, t) {
2492
- return $o?.(e, t) ?? !1;
2527
+ function As(e, t) {
2528
+ return Os?.(e, t) ?? !1;
2493
2529
  }
2494
2530
  //#endregion
2495
2531
  //#region src/platform-admin-runtime/backendHttp.ts
2496
- function ns(e = {}) {
2497
- let t = () => Sn(kn({
2532
+ function js(e = {}) {
2533
+ let t = () => Un(dn({
2498
2534
  baseUrl: import.meta.env.VITE_MUYUN_API_BASE_URL,
2499
- token: e.withAuth === !1 ? void 0 : y(import.meta.env.VITE_MUYUN_AUTH_TOKEN),
2500
- credentials: rs(import.meta.env.VITE_MUYUN_CREDENTIALS),
2501
- onAuthenticationRequired: e.withAuth === !1 ? void 0 : (e, t) => ts(e, t)
2502
- }), e.language ?? D);
2535
+ token: e.withAuth === !1 ? void 0 : b(import.meta.env.VITE_MUYUN_AUTH_TOKEN),
2536
+ credentials: Ms(import.meta.env.VITE_MUYUN_CREDENTIALS),
2537
+ onAuthenticationRequired: e.withAuth === !1 ? void 0 : (e, t) => As(e, t)
2538
+ }), e.language ?? li);
2503
2539
  return {
2504
2540
  async request(e) {
2505
- let n = await t().request(e), r = ni(n);
2541
+ let n = await t().request(e), r = kr(n);
2506
2542
  return r.changeSetId && v.dispatch({
2507
2543
  changeSetId: r.changeSetId,
2508
2544
  changes: r.changes
@@ -2513,16 +2549,16 @@ function ns(e = {}) {
2513
2549
  }
2514
2550
  };
2515
2551
  }
2516
- function rs(e) {
2552
+ function Ms(e) {
2517
2553
  return e === "include" || e === "omit" || e === "same-origin" ? e : void 0;
2518
2554
  }
2519
2555
  //#endregion
2520
2556
  //#region src/platform-admin-runtime/moduleOpenApi.ts
2521
- var is = /^\/openapi\/([a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)+)\/?$/;
2522
- function as(e) {
2523
- return is.exec(e)?.[1];
2557
+ var Ns = /^\/openapi\/([a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)+)\/?$/;
2558
+ function Ps(e) {
2559
+ return Ns.exec(e)?.[1];
2524
2560
  }
2525
- function os(e, t) {
2561
+ function Fs(e, t) {
2526
2562
  return {
2527
2563
  pageType: "platform-route",
2528
2564
  openMode: "workbench-route",
@@ -2539,14 +2575,14 @@ function os(e, t) {
2539
2575
  }
2540
2576
  };
2541
2577
  }
2542
- function ss(e = D) {
2543
- let t = "platform.screen.OpenApiCatalogView.module-api-directory", n = fn(t);
2578
+ function Is(e = li) {
2579
+ let t = "platform.screen.OpenApiCatalogView.module-api-directory", n = Bt(t);
2544
2580
  return {
2545
2581
  pageType: "platform-route",
2546
2582
  openMode: "workbench-route",
2547
2583
  hostType: "platform-route-host",
2548
2584
  title: "开放模块 API",
2549
- titleText: yi(t, n.originalText, e),
2585
+ titleText: zr(t, n.originalText, e),
2550
2586
  target: { route: "/openapi" },
2551
2587
  tabPolicy: {
2552
2588
  identity: "by-target",
@@ -2555,20 +2591,20 @@ function ss(e = D) {
2555
2591
  }
2556
2592
  };
2557
2593
  }
2558
- function cs(e) {
2594
+ function Ls(e) {
2559
2595
  if (e?.pageType !== "platform-route" || !("route" in e.target)) return !1;
2560
- let t = as(e.target.route ?? "");
2596
+ let t = Ps(e.target.route ?? "");
2561
2597
  return t !== void 0 && e.target.moduleAlias === t;
2562
2598
  }
2563
- function ls(e) {
2599
+ function Rs(e) {
2564
2600
  return e === "/openapi" || e === "/openapi/";
2565
2601
  }
2566
2602
  //#endregion
2567
2603
  //#region src/app/workbenchStartup.ts
2568
- function us(e, t, n, r = {}) {
2569
- let i = S(t, n, r), a = e.find((e) => e.key === i.key);
2604
+ function zs(e, t, n, r = {}) {
2605
+ let i = se(t, n, r), a = e.find((e) => e.key === i.key);
2570
2606
  if (a) {
2571
- let o = a.pageDescriptor ? Ms(t, n, a.pageDescriptor, r, a.instanceKey) : i;
2607
+ let o = a.pageDescriptor ? cc(t, n, a.pageDescriptor, r, a.instanceKey) : i;
2572
2608
  return {
2573
2609
  tabs: e.map((e) => e.key === i.key ? o : e),
2574
2610
  activeTabKey: i.key
@@ -2579,8 +2615,8 @@ function us(e, t, n, r = {}) {
2579
2615
  activeTabKey: i.key
2580
2616
  };
2581
2617
  }
2582
- function ds(e, t, n = {}) {
2583
- let r = Z(C(t), n), i = e.find((e) => e.key === r.key || r.pageDescriptor?.tabPolicy.identity === "by-params" && e.pageDescriptor?.tabPolicy.identity === "by-params" && de(e.pageDescriptor) === de(r.pageDescriptor));
2618
+ function Bs(e, t, n = {}) {
2619
+ let r = ac(O(t), n), i = e.find((e) => e.key === r.key || r.pageDescriptor?.tabPolicy.identity === "by-params" && e.pageDescriptor?.tabPolicy.identity === "by-params" && E(e.pageDescriptor) === E(r.pageDescriptor));
2584
2620
  return i ? {
2585
2621
  tabs: e,
2586
2622
  activeTabKey: i.key,
@@ -2591,49 +2627,49 @@ function ds(e, t, n = {}) {
2591
2627
  created: !0
2592
2628
  };
2593
2629
  }
2594
- function fs(e, t, n = {}) {
2595
- return t.menuType === "link" && t.openMode === "window" ? t.externalUrl : w(we(t, {
2630
+ function Vs(e, t, n = {}) {
2631
+ return t.menuType === "link" && t.openMode === "window" ? t.externalUrl : A(ye(t, {
2596
2632
  ...n,
2597
2633
  title: e.title
2598
2634
  }), n);
2599
2635
  }
2600
- function ps(e) {
2636
+ function Hs(e) {
2601
2637
  let t = (e.tabs ?? []).find((t) => t.key === e.activeTabKey);
2602
2638
  if (t?.fullPath) return t.fullPath;
2603
- let n = t?.pageDescriptor ?? (t?.target ? we(t.target, { title: t.title }) : void 0);
2604
- return n?.pageType === "platform-route" && cs(n) && n.target.route ? n.target.route : n ? w(n) : void 0;
2639
+ let n = t?.pageDescriptor ?? (t?.target ? ye(t.target, { title: t.title }) : void 0);
2640
+ return n?.pageType === "platform-route" && Ls(n) && n.target.route ? n.target.route : n ? A(n) : void 0;
2605
2641
  }
2606
- function ms(e, t, r = {}, i = !1, a = D) {
2642
+ function Us(e, t, r = {}, i = !1, a = li) {
2607
2643
  if (t === "/" || t === "") return e;
2608
- let o = t.split(/[?#]/, 1)[0] ?? "", s = as(o), c = s ? os(s) : ls(o) ? ss(a) : ze(t, r);
2644
+ let o = t.split(/[?#]/, 1)[0] ?? "", s = Ps(o), c = s ? Fs(s) : Rs(o) ? Is(a) : Fe(t, r);
2609
2645
  if (!c) return e;
2610
- let l = c.menuId ? zs(e.menus, c.menuId) : void 0, u = l ? b(l) : void 0, d = l && u && vs(u, c) ? {
2646
+ let l = c.menuId ? hc(e.menus, c.menuId) : void 0, u = l ? x(l) : void 0, d = l && u && qs(u, c) ? {
2611
2647
  ...c,
2612
2648
  title: l.title,
2613
2649
  titleText: l.titleText
2614
- } : c, f = _s(d, r.title, a), p = f ?? d, m = e.tabs ?? [], h = f ? gs(m, f) : void 0, g = f ? hs(f, h) : i ? C(p) : p, _ = l && Ls(l, g, r) ? l : Is(e.menus, g, r), v = _ === l ? u : _ ? b(_) : void 0, ee = f ? Z(g, r) : _ && v && n(v) ? Ms(_, v, g, r, m.find((e) => e.key === `menu:${_.id}`)?.instanceKey) : Z(g, r), y = js(m, ee);
2650
+ } : c, f = Ks(d, r.title, a), p = f ?? d, m = e.tabs ?? [], h = f ? Gs(m, f) : void 0, g = f ? Ws(f, h) : i ? O(p) : p, _ = l && pc(l, g, r) ? l : fc(e.menus, g, r), v = _ === l ? u : _ ? x(_) : void 0, y = f ? ac(g, r) : _ && v && n(v) ? cc(_, v, g, r, m.find((e) => e.key === `menu:${_.id}`)?.instanceKey) : ac(g, r), b = sc(m, y);
2615
2651
  return {
2616
2652
  ...e,
2617
- tabs: y,
2618
- activeTabKey: ee.key
2653
+ tabs: b,
2654
+ activeTabKey: y.key
2619
2655
  };
2620
2656
  }
2621
- function hs(e, t) {
2622
- return t?.instanceKey ? C(e, t.instanceKey) : t ? e : C(e);
2657
+ function Ws(e, t) {
2658
+ return t?.instanceKey ? O(e, t.instanceKey) : t ? e : O(e);
2623
2659
  }
2624
- function gs(e, t) {
2625
- let n = de(t);
2626
- return e.find((e) => e.pageDescriptor?.pageType === "business-route" && de(e.pageDescriptor) === n);
2660
+ function Gs(e, t) {
2661
+ let n = E(t);
2662
+ return e.find((e) => e.pageDescriptor?.pageType === "business-route" && E(e.pageDescriptor) === n);
2627
2663
  }
2628
- function _s(e, t, n) {
2664
+ function Ks(e, t, n) {
2629
2665
  if (e.pageType !== "business-route") return;
2630
- let r = Pe(e);
2631
- return r ? Ue(r.view, r.input, r.presentation, t, n) : void 0;
2666
+ let r = Ae(e);
2667
+ return r ? ze(r.view, r.input, r.presentation, t, n) : void 0;
2632
2668
  }
2633
- function vs(e, t) {
2669
+ function qs(e, t) {
2634
2670
  return t.pageType === "dynamic-module" && e.menuType === "module" && e.moduleAlias === t.target.moduleAlias;
2635
2671
  }
2636
- function ys(e, t, n) {
2672
+ function Js(e, t, n) {
2637
2673
  let r = e.findIndex((e) => e.key === n);
2638
2674
  if (r < 0) return {
2639
2675
  tabs: e,
@@ -2648,7 +2684,7 @@ function ys(e, t, n) {
2648
2684
  activeTabKey: t
2649
2685
  };
2650
2686
  }
2651
- function bs(e, t, n) {
2687
+ function Ys(e, t, n) {
2652
2688
  let r = new Set(n), i = e.findIndex((e) => e.key === t), a = e.filter((e) => !r.has(e.key) || e.closable === !1);
2653
2689
  return !t || !r.has(t) ? {
2654
2690
  tabs: a,
@@ -2658,16 +2694,16 @@ function bs(e, t, n) {
2658
2694
  activeTabKey: (a.find((t) => e.indexOf(t) > i) ?? a.at(-1))?.key
2659
2695
  };
2660
2696
  }
2661
- function xs(e, t, n = !0) {
2697
+ function Xs(e, t, n = !0) {
2662
2698
  let r = new Map(e.map((e) => [e.key, e])), i = /* @__PURE__ */ new Set();
2663
2699
  return [...t.flatMap((e) => {
2664
2700
  if (i.has(e.key)) return [];
2665
2701
  i.add(e.key);
2666
2702
  let t = r.get(e.key);
2667
- return t ? [Ss(t, e)] : n ? [e] : [];
2703
+ return t ? [Zs(t, e)] : n ? [e] : [];
2668
2704
  }), ...e.filter((e) => !i.has(e.key))];
2669
2705
  }
2670
- function Ss(e, t) {
2706
+ function Zs(e, t) {
2671
2707
  let n = e.pageDescriptor, r = t.pageDescriptor;
2672
2708
  if (!n || !r || !t.target) return e;
2673
2709
  let i = {
@@ -2678,83 +2714,83 @@ function Ss(e, t) {
2678
2714
  };
2679
2715
  return {
2680
2716
  ...t,
2681
- ...Z(i),
2717
+ ...ac(i),
2682
2718
  target: t.target
2683
2719
  };
2684
2720
  }
2685
- function Cs(e, t, n = {}, r = D) {
2721
+ function Qs(e, t, n = {}, r = li) {
2686
2722
  let i = /* @__PURE__ */ new Map();
2687
- Ds(t, i);
2723
+ nc(t, i);
2688
2724
  let a = /* @__PURE__ */ new Set();
2689
2725
  return e.flatMap((e) => {
2690
- let t = e.pageDescriptor?.menuId ?? e.target?.menuId ?? ws(e.key);
2726
+ let t = e.pageDescriptor?.menuId ?? e.target?.menuId ?? $s(e.key);
2691
2727
  if (t) {
2692
2728
  if (a.has(t)) return [];
2693
2729
  let e = i.get(t);
2694
- return e ? (a.add(t), [S(e.menu, e.target, n)]) : [];
2730
+ return e ? (a.add(t), [se(e.menu, e.target, n)]) : [];
2695
2731
  }
2696
- let o = Ts(e, r);
2732
+ let o = ec(e, r);
2697
2733
  return !o || a.has(o.key) ? [] : (a.add(o.key), [o]);
2698
2734
  });
2699
2735
  }
2700
- function ws(e) {
2736
+ function $s(e) {
2701
2737
  return e.startsWith("menu:") && e.slice(5) || void 0;
2702
2738
  }
2703
- function Ts(e, t) {
2739
+ function ec(e, t) {
2704
2740
  let n = e.pageDescriptor;
2705
2741
  if (n?.pageType !== "business-route") return;
2706
- let r = Pe(n);
2707
- if (r && r.presentation === "tab") return Z(Ue(r.view, r.input, "tab", void 0, t));
2742
+ let r = Ae(n);
2743
+ if (r && r.presentation === "tab") return ac(ze(r.view, r.input, "tab", void 0, t));
2708
2744
  }
2709
- function Es(e, t) {
2745
+ function tc(e, t) {
2710
2746
  let n = e.findIndex((e) => e.key === t.key);
2711
2747
  return n < 0 ? [...e, t] : e.map((e, r) => r === n ? t : e);
2712
2748
  }
2713
- function Ds(e, t) {
2749
+ function nc(e, t) {
2714
2750
  for (let r of e) {
2715
- let e = b(r.record);
2751
+ let e = x(r.record);
2716
2752
  e && n(e) && t.set(r.record.id, {
2717
2753
  menu: r.record,
2718
2754
  target: e
2719
- }), Ds(r.children, t);
2755
+ }), nc(r.children, t);
2720
2756
  }
2721
2757
  }
2722
- function Os(e, t) {
2758
+ function rc(e, t) {
2723
2759
  let n = new Set(t);
2724
2760
  return e.filter((e) => !n.has(e.key));
2725
2761
  }
2726
- function ks(e, t, n = []) {
2762
+ function ic(e, t, n = []) {
2727
2763
  if (e.length !== t.length || new Set(t).size !== e.length) return e;
2728
2764
  let r = new Map(e.map((e) => [e.key, e]));
2729
2765
  if (t.some((e) => !r.has(e))) return e;
2730
2766
  let i = t.map((e) => r.get(e)), a = new Set(n);
2731
2767
  return [...i.filter((e) => a.has(e.key)), ...i.filter((e) => !a.has(e.key))];
2732
2768
  }
2733
- function Z(e, t = {}) {
2734
- let n = w(e, t);
2769
+ function ac(e, t = {}) {
2770
+ let n = A(e, t);
2735
2771
  return {
2736
- ...As(e) ? { instanceKey: As(e) } : {},
2737
- key: Ne(e),
2738
- title: e.title ?? Fs(e),
2772
+ ...oc(e) ? { instanceKey: oc(e) } : {},
2773
+ key: Oe(e),
2774
+ title: e.title ?? dc(e),
2739
2775
  fullPath: n,
2740
2776
  pageDescriptor: e,
2741
2777
  restoreState: { url: n },
2742
2778
  closable: !0
2743
2779
  };
2744
2780
  }
2745
- function As(e) {
2781
+ function oc(e) {
2746
2782
  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;
2747
2783
  return typeof n == "string" && n ? n : void 0;
2748
2784
  }
2749
- function js(e, t) {
2785
+ function sc(e, t) {
2750
2786
  let n = e.findIndex((e) => e.key === t.key);
2751
2787
  return n < 0 ? [...e, t] : e.map((e, r) => r === n ? t : e);
2752
2788
  }
2753
- function Ms(e, t, n, r, i) {
2754
- let a = C(n, i), o = S(e, t, r), s = o.pageDescriptor ?? a, c = a.title === void 0 ? {
2789
+ function cc(e, t, n, r, i) {
2790
+ let a = O(n, i), o = se(e, t, r), s = o.pageDescriptor ?? a, c = a.title === void 0 ? {
2755
2791
  title: e.title,
2756
2792
  titleText: s.titleText
2757
- } : { title: a.title }, l = Ns(a) && Ns(s) || Ps(a) && Ps(s) ? {
2793
+ } : { title: a.title }, l = lc(a) && lc(s) || uc(a) && uc(s) ? {
2758
2794
  ...a,
2759
2795
  ...c,
2760
2796
  menuId: e.id,
@@ -2771,44 +2807,44 @@ function Ms(e, t, n, r, i) {
2771
2807
  };
2772
2808
  return {
2773
2809
  ...o,
2774
- ...Z(l, r),
2810
+ ...ac(l, r),
2775
2811
  target: t
2776
2812
  };
2777
2813
  }
2778
- function Ns(e) {
2814
+ function lc(e) {
2779
2815
  return e.pageType === "platform-route" || e.pageType === "business-route";
2780
2816
  }
2781
- function Ps(e) {
2817
+ function uc(e) {
2782
2818
  return e.pageType === "remote-url" || e.pageType === "external-link";
2783
2819
  }
2784
- function Fs(e) {
2820
+ function dc(e) {
2785
2821
  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;
2786
2822
  }
2787
- function Is(e, t, n) {
2823
+ function fc(e, t, n) {
2788
2824
  for (let r of e) {
2789
- if (Ls(r.record, t, n)) return r.record;
2790
- let e = Is(r.children, t, n);
2825
+ if (pc(r.record, t, n)) return r.record;
2826
+ let e = fc(r.children, t, n);
2791
2827
  if (e) return e;
2792
2828
  }
2793
2829
  }
2794
- function Ls(e, t, n) {
2795
- let r = b(e), i = r ? we(r, {
2830
+ function pc(e, t, n) {
2831
+ let r = x(e), i = r ? ye(r, {
2796
2832
  ...n,
2797
2833
  title: e.title
2798
2834
  }) : void 0;
2799
- return i ? Rs(i, t) : !1;
2835
+ return i ? mc(i, t) : !1;
2800
2836
  }
2801
- function Rs(e, t) {
2837
+ function mc(e, t) {
2802
2838
  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;
2803
2839
  }
2804
- function zs(e, t) {
2840
+ function hc(e, t) {
2805
2841
  for (let n of e) {
2806
2842
  if (n.record.id === t) return n.record;
2807
- let e = zs(n.children, t);
2843
+ let e = hc(n.children, t);
2808
2844
  if (e) return e;
2809
2845
  }
2810
2846
  }
2811
- function Bs(e, t) {
2847
+ function gc(e, t) {
2812
2848
  return {
2813
2849
  ...e,
2814
2850
  title: t,
@@ -2821,54 +2857,54 @@ function Bs(e, t) {
2821
2857
  }
2822
2858
  //#endregion
2823
2859
  //#region src/app/workbenchSessionTabs.ts
2824
- function Vs(e) {
2860
+ function _c(e) {
2825
2861
  if (!Array.isArray(e)) return [];
2826
2862
  let t = /* @__PURE__ */ new Set();
2827
- return e.flatMap((e) => !Hs(e) || t.has(e.key) ? [] : (t.add(e.key), [e]));
2863
+ return e.flatMap((e) => !vc(e) || t.has(e.key) ? [] : (t.add(e.key), [e]));
2828
2864
  }
2829
- function Hs(e) {
2865
+ function vc(e) {
2830
2866
  let t = e;
2831
- return Ks(e) && typeof t.key == "string" && typeof t.title == "string" && (Us(t.pageDescriptor) || Gs(t.target));
2867
+ return Sc(e) && typeof t.key == "string" && typeof t.title == "string" && (yc(t.pageDescriptor) || xc(t.target));
2832
2868
  }
2833
- function Us(e) {
2834
- return !Ks(e) || !Ks(e.target) || !Ks(e.tabPolicy) || ![
2869
+ function yc(e) {
2870
+ return !Sc(e) || !Sc(e.target) || !Sc(e.tabPolicy) || ![
2835
2871
  "by-menu",
2836
2872
  "by-target",
2837
2873
  "by-params"
2838
- ].includes(String(e.tabPolicy.identity)) ? !1 : e.pageType === "platform-route" ? e.openMode === "workbench-route" && e.hostType === "platform-route-host" && Ws(e.target) : e.pageType === "business-route" ? e.openMode === "workbench-route" && e.hostType === "business-route-host" && Ws(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";
2874
+ ].includes(String(e.tabPolicy.identity)) ? !1 : e.pageType === "platform-route" ? e.openMode === "workbench-route" && e.hostType === "platform-route-host" && bc(e.target) : e.pageType === "business-route" ? e.openMode === "workbench-route" && e.hostType === "business-route-host" && bc(e.target) : e.pageType === "dynamic-module" ? e.openMode === "dynamic-runner" && (e.hostType === "module-page-host" || e.hostType === "dynamic-module-host") && typeof e.target.moduleAlias == "string" : e.pageType === "remote-url" ? (e.openMode === "iframe" || e.openMode === "new-window") && e.hostType === "external-page-host" && typeof e.target.url == "string" : e.pageType === "external-link" && e.openMode === "new-window" && e.hostType === "external-page-host" && typeof e.target.url == "string";
2839
2875
  }
2840
- function Ws(e) {
2876
+ function bc(e) {
2841
2877
  return typeof e.route == "string" || typeof e.routeName == "string" || typeof e.pageKey == "string";
2842
2878
  }
2843
- function Gs(e) {
2844
- return !Ks(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";
2879
+ function xc(e) {
2880
+ return !Sc(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";
2845
2881
  }
2846
- function Ks(e) {
2882
+ function Sc(e) {
2847
2883
  return typeof e == "object" && !!e;
2848
2884
  }
2849
2885
  //#endregion
2850
2886
  //#region src/app/lockedTabPreference.ts
2851
- var qs = "workbench.locked-tabs";
2852
- async function Js(e) {
2853
- return Xs(await e.restore(qs, [], { persistence: "backend" }));
2887
+ var Cc = "workbench.locked-tabs";
2888
+ async function wc(e) {
2889
+ return Ec(await e.restore(Cc, [], { persistence: "backend" }));
2854
2890
  }
2855
- async function Ys(e, t) {
2856
- await e.set(qs, t, { persistence: "backend" });
2891
+ async function Tc(e, t) {
2892
+ await e.set(Cc, t, { persistence: "backend" });
2857
2893
  }
2858
- function Xs(e) {
2859
- return Vs(e);
2894
+ function Ec(e) {
2895
+ return _c(e);
2860
2896
  }
2861
2897
  //#endregion
2862
2898
  //#region src/consumer/PlatformAdminOutlet.vue
2863
- var Zs = /* @__PURE__ */ F({
2899
+ var Dc = /* @__PURE__ */ z({
2864
2900
  name: "PlatformAdminOutlet",
2865
2901
  __name: "PlatformAdminOutlet",
2866
2902
  props: { descriptor: {} },
2867
2903
  setup(e) {
2868
- return (t, n) => z(qo)(e.descriptor) ? (I(), k(Qo, {
2904
+ return (t, n) => W(ys)(e.descriptor) ? (B(), N(Ds, {
2869
2905
  key: 0,
2870
2906
  descriptor: e.descriptor
2871
- }, null, 8, ["descriptor"])) : (I(), k(Ie, {
2907
+ }, null, 8, ["descriptor"])) : (B(), N(Me, {
2872
2908
  key: 1,
2873
2909
  descriptor: e.descriptor
2874
2910
  }, null, 8, ["descriptor"]));
@@ -2876,7 +2912,7 @@ var Zs = /* @__PURE__ */ F({
2876
2912
  });
2877
2913
  //#endregion
2878
2914
  //#region src/app/workbenchRouteSync.ts
2879
- function Qs(e, t) {
2915
+ function Oc(e, t) {
2880
2916
  if (e === t) return !0;
2881
2917
  if (e === void 0 || t === void 0) return !1;
2882
2918
  let n = (e) => {
@@ -2885,47 +2921,47 @@ function Qs(e, t) {
2885
2921
  };
2886
2922
  return n(e) === n(t);
2887
2923
  }
2888
- function $s(e, t, n) {
2889
- let r = ps(e) ?? "/";
2890
- return Qs(r, t) ? void 0 : {
2924
+ function kc(e, t, n) {
2925
+ let r = Hs(e) ?? "/";
2926
+ return Oc(r, t) ? void 0 : {
2891
2927
  url: r,
2892
2928
  mode: n
2893
2929
  };
2894
2930
  }
2895
2931
  //#endregion
2896
2932
  //#region src/platform-workbench/workspaceViewDiscardGuard.ts
2897
- function ec(e) {
2898
- return e.some((e) => me(e).length > 0 || De(e).length > 0);
2933
+ function Ac(e) {
2934
+ return e.some((e) => ue(e).length > 0 || Se(e).length > 0);
2899
2935
  }
2900
- async function tc(e, t = "close", n = D) {
2901
- if (nc(e, t, n)) return !1;
2902
- if ([...new Set(e.flatMap(De))].length === 0) return !0;
2936
+ async function jc(e, t = "close", n = li) {
2937
+ if (Mc(e, t, n)) return !1;
2938
+ if ([...new Set(e.flatMap(Se))].length === 0) return !0;
2903
2939
  let r = () => {
2904
2940
  let r = t === "refresh" ? n.t("platform.screen.workspaceViewDiscardGuard.refresh", "刷新") : n.t("platform.screen.workspaceViewDiscardGuard.close", "关闭");
2905
2941
  return {
2906
2942
  title: t === "refresh" ? n.t("platform.screen.workspaceViewDiscardGuard.refresh-page", "刷新页面") : n.t("platform.screen.UiTabs.close-tab", "关闭标签"),
2907
2943
  content: n.t("platform.screen.workspaceViewDiscardGuard.value-has-unsaved-changes-that-will-be-lost-when-you", "“{value1}”存在未保存的更改,{value2}后将丢失。是否继续?", {
2908
- value1: [...new Set(e.flatMap(De))].join(n.t("platform.list.separator", "、")),
2944
+ value1: [...new Set(e.flatMap(Se))].join(n.t("platform.list.separator", "、")),
2909
2945
  value2: r
2910
2946
  }),
2911
2947
  okText: r
2912
2948
  };
2913
2949
  };
2914
- return await ft({
2950
+ return await et({
2915
2951
  ...r(),
2916
2952
  presentation: r
2917
- }, n) && !nc(e, t, n);
2953
+ }, n) && !Mc(e, t, n);
2918
2954
  }
2919
- function nc(e, t, n) {
2920
- let r = t === "refresh" ? n.t("platform.screen.workspaceViewDiscardGuard.refresh", "刷新") : n.t("platform.screen.workspaceViewDiscardGuard.close", "关闭"), i = [...new Set(e.flatMap(me))];
2921
- return i.length !== 0 && (Xn(n.t("platform.screen.workspaceViewDiscardGuard.value-has-an-operation-in-progress-wait-for-it-to", "“{value1}”正在处理操作,请完成后再{value2}。", {
2955
+ function Mc(e, t, n) {
2956
+ let r = t === "refresh" ? n.t("platform.screen.workspaceViewDiscardGuard.refresh", "刷新") : n.t("platform.screen.workspaceViewDiscardGuard.close", "关闭"), i = [...new Set(e.flatMap(ue))];
2957
+ return i.length !== 0 && (ft(n.t("platform.screen.workspaceViewDiscardGuard.value-has-an-operation-in-progress-wait-for-it-to", "“{value1}”正在处理操作,请完成后再{value2}。", {
2922
2958
  value1: i.join(n.t("platform.list.separator", "、")),
2923
2959
  value2: r
2924
2960
  })), !0);
2925
2961
  }
2926
2962
  //#endregion
2927
2963
  //#region src/consumer/AppWorkbenchShell.vue
2928
- var rc = /* @__PURE__ */ F({
2964
+ var Nc = /* @__PURE__ */ z({
2929
2965
  name: "AppWorkbenchShell",
2930
2966
  __name: "AppWorkbenchShell",
2931
2967
  props: {
@@ -2953,8 +2989,8 @@ var rc = /* @__PURE__ */ F({
2953
2989
  "userCommand"
2954
2990
  ],
2955
2991
  setup(e, { emit: t }) {
2956
- let n = At(), r = e, i = t, a = O(() => r.startup.activeTabKey), o = L([]), s = 0, c = Promise.resolve(), l = !1;
2957
- ve({
2992
+ let n = In(), r = e, i = t, a = M(() => r.startup.activeTabKey), o = V([]), s = 0, c = Promise.resolve(), l = !1;
2993
+ k({
2958
2994
  refreshMenus: r.loadMenus ? async () => {
2959
2995
  let e = r.startup.session, t = await r.loadMenus();
2960
2996
  if (!l || e !== r.startup.session) throw Error(n.t("platform.screen.AppWorkbenchShell.your-sign-in-state-has-changed-please-try", "登录状态已变化,请重试"));
@@ -2964,30 +3000,30 @@ var rc = /* @__PURE__ */ F({
2964
3000
  }), t;
2965
3001
  } : void 0,
2966
3002
  openMenu: (e) => {
2967
- let t = b(e);
3003
+ let t = x(e);
2968
3004
  t && d(e, t);
2969
3005
  },
2970
- openRoute: te,
2971
- replaceRoute: ne,
2972
- closeCurrentTab: re,
2973
- openPage: y,
2974
- replacePage: se,
3006
+ openRoute: ee,
3007
+ replaceRoute: te,
3008
+ closeCurrentTab: ne,
3009
+ openPage: b,
3010
+ replacePage: oe,
2975
3011
  closePage: m,
2976
- setTabName: oe
2977
- }), zi(() => {
2978
- l = !0, Ce(), le(), ce(r.location);
2979
- }), Ri(() => {
3012
+ setTabName: ae
3013
+ }), oa(() => {
3014
+ l = !0, ve(), C(), ce(r.location);
3015
+ }), aa(() => {
2980
3016
  l = !1;
2981
- }), Wi(() => r.location, (e) => ce(e));
3017
+ }), da(() => r.location, (e) => ce(e));
2982
3018
  function u(e, t = void 0) {
2983
- i("update:startup", e), t && S(e, t);
3019
+ i("update:startup", e), t && se(e, t);
2984
3020
  }
2985
3021
  function d(e, t) {
2986
3022
  if (t.openMode === "window") {
2987
- window.open(fs(e, t), "_blank", "noopener,noreferrer");
3023
+ window.open(Vs(e, t), "_blank", "noopener,noreferrer");
2988
3024
  return;
2989
3025
  }
2990
- let n = us(r.startup.tabs ?? [], e, t, r.resolveOptions);
3026
+ let n = zs(r.startup.tabs ?? [], e, t, r.resolveOptions);
2991
3027
  u({
2992
3028
  ...r.startup,
2993
3029
  tabs: n.tabs,
@@ -3001,28 +3037,28 @@ var rc = /* @__PURE__ */ F({
3001
3037
  }, "push");
3002
3038
  }
3003
3039
  async function p(e) {
3004
- await tc([e], "refresh", n) && l && (r.startup.tabs ?? []).some((t) => t.key === e) && i("refreshPage", e);
3040
+ await jc([e], "refresh", n) && l && (r.startup.tabs ?? []).some((t) => t.key === e) && i("refreshPage", e);
3005
3041
  }
3006
3042
  async function m(e) {
3007
- if (!await tc([e], "close", n) || !l) return;
3008
- let t = ys(r.startup.tabs ?? [], r.startup.activeTabKey, e);
3009
- o.value.some((t) => t.key === e) && v(Os(o.value, [e])), u({
3043
+ if (!await jc([e], "close", n) || !l) return;
3044
+ let t = Js(r.startup.tabs ?? [], r.startup.activeTabKey, e);
3045
+ o.value.some((t) => t.key === e) && v(rc(o.value, [e])), u({
3010
3046
  ...r.startup,
3011
3047
  tabs: t.tabs,
3012
3048
  activeTabKey: t.activeTabKey
3013
- }, "replace"), Re(e);
3049
+ }, "replace"), Pe(e);
3014
3050
  }
3015
3051
  async function h(e) {
3016
- if (!await tc(e, "close", n) || !l) return;
3017
- let t = bs(r.startup.tabs ?? [], r.startup.activeTabKey, e), i = e.filter((e) => o.value.some((t) => t.key === e));
3018
- i.length > 0 && v(Os(o.value, i)), u({
3052
+ if (!await jc(e, "close", n) || !l) return;
3053
+ let t = Ys(r.startup.tabs ?? [], r.startup.activeTabKey, e), i = e.filter((e) => o.value.some((t) => t.key === e));
3054
+ i.length > 0 && v(rc(o.value, i)), u({
3019
3055
  ...r.startup,
3020
3056
  tabs: t.tabs,
3021
3057
  activeTabKey: t.activeTabKey
3022
- }, "replace"), e.forEach(Re);
3058
+ }, "replace"), e.forEach(Pe);
3023
3059
  }
3024
3060
  function g(e) {
3025
- let t = ks(r.startup.tabs ?? [], e, o.value.map((e) => e.key)), n = t.filter((e) => o.value.some((t) => t.key === e.key));
3061
+ let t = ic(r.startup.tabs ?? [], e, o.value.map((e) => e.key)), n = t.filter((e) => o.value.some((t) => t.key === e.key));
3026
3062
  n.map((e) => e.key).join("|") !== o.value.map((e) => e.key).join("|") && v(n), u({
3027
3063
  ...r.startup,
3028
3064
  tabs: t
@@ -3031,47 +3067,47 @@ var rc = /* @__PURE__ */ F({
3031
3067
  function _(e) {
3032
3068
  let t = r.startup.tabs?.find((t) => t.key === e);
3033
3069
  if (!t) return;
3034
- let n = o.value.some((t) => t.key === e), i = o.value, a = n ? Os(i, [e]) : Es(i, t);
3070
+ let n = o.value.some((t) => t.key === e), i = o.value, a = n ? rc(i, [e]) : tc(i, t);
3035
3071
  v(a), u({
3036
3072
  ...r.startup,
3037
- tabs: xs(r.startup.tabs ?? [], a)
3073
+ tabs: Xs(r.startup.tabs ?? [], a)
3038
3074
  });
3039
3075
  }
3040
3076
  function v(e) {
3041
3077
  let t = o.value, n = ++s;
3042
- o.value = e, ee(e, t, n);
3078
+ o.value = e, y(e, t, n);
3043
3079
  }
3044
- async function ee(e, t, n) {
3080
+ async function y(e, t, n) {
3045
3081
  try {
3046
- c = c.catch(() => void 0).then(() => Ys(Ur, e)), await c;
3082
+ c = c.catch(() => void 0).then(() => Tc(qr, e)), await c;
3047
3083
  } catch {
3048
3084
  if (n !== s) return;
3049
3085
  o.value = t, u({
3050
3086
  ...r.startup,
3051
- tabs: xs(r.startup.tabs ?? [], t, !1)
3087
+ tabs: Xs(r.startup.tabs ?? [], t, !1)
3052
3088
  });
3053
3089
  }
3054
3090
  }
3055
- function y(e) {
3056
- let t = ds(r.startup.tabs ?? [], e);
3091
+ function b(e) {
3092
+ let t = Bs(r.startup.tabs ?? [], e);
3057
3093
  return u({
3058
3094
  ...r.startup,
3059
3095
  tabs: t.tabs,
3060
3096
  activeTabKey: t.activeTabKey
3061
3097
  }, "push"), { created: t.created };
3062
3098
  }
3063
- function te(e, t = {}) {
3064
- return x(T(e, t), "push", r.startup, t.tabTitle, t.newInstance);
3099
+ function ee(e, t = {}) {
3100
+ return S(ke(e, t), "push", r.startup, t.tabTitle, t.newInstance);
3065
3101
  }
3066
- function ne(e, t = {}) {
3067
- let i = r.startup.activeTabKey, a = r.startup.tabs?.find((e) => e.key === i), o = T(e, t);
3068
- if (!i || !a) return x(o, "replace", r.startup, t.tabTitle);
3069
- let s = ms(r.startup, o, {
3102
+ function te(e, t = {}) {
3103
+ let i = r.startup.activeTabKey, a = r.startup.tabs?.find((e) => e.key === i), o = ke(e, t);
3104
+ if (!i || !a) return S(o, "replace", r.startup, t.tabTitle);
3105
+ let s = Us(r.startup, o, {
3070
3106
  ...r.resolveOptions,
3071
3107
  title: t.tabTitle ?? r.resolveOptions.title
3072
3108
  }, !1, n), c = s.tabs?.find((e) => e.key === s.activeTabKey);
3073
3109
  if (!c) return { created: !1 };
3074
- let l = c.pageDescriptor && a.instanceKey ? C(c.pageDescriptor, a.instanceKey) : c.pageDescriptor, d = l ? w(l, r.resolveOptions) : c.fullPath, f = (s.tabs ?? []).filter((e) => e.key !== c.key).map((e) => e.key === i ? {
3110
+ let l = c.pageDescriptor && a.instanceKey ? O(c.pageDescriptor, a.instanceKey) : c.pageDescriptor, d = l ? A(l, r.resolveOptions) : c.fullPath, f = (s.tabs ?? []).filter((e) => e.key !== c.key).map((e) => e.key === i ? {
3075
3111
  ...a,
3076
3112
  ...c,
3077
3113
  key: i,
@@ -3087,80 +3123,80 @@ var rc = /* @__PURE__ */ F({
3087
3123
  activeTabKey: i
3088
3124
  }, "replace"), { created: !1 };
3089
3125
  }
3090
- function re(e) {
3126
+ function ne(e) {
3091
3127
  let t = r.startup.activeTabKey;
3092
- return t ? ec([t]) ? (ie(e, t), { created: !1 }) : ae(e, t) : x(T(e), "replace", r.startup);
3128
+ return t ? Ac([t]) ? (re(e, t), { created: !1 }) : ie(e, t) : S(ke(e), "replace", r.startup);
3093
3129
  }
3094
- async function ie(e, t) {
3095
- if (await tc([t], "close", n) && l && (r.startup.tabs ?? []).some((e) => e.key === t)) return ae(e, t);
3130
+ async function re(e, t) {
3131
+ if (await jc([t], "close", n) && l && (r.startup.tabs ?? []).some((e) => e.key === t)) return ie(e, t);
3096
3132
  }
3097
- function ae(e, t) {
3098
- let n = ys(r.startup.tabs ?? [], r.startup.activeTabKey, t);
3099
- Re(t), o.value.some((e) => e.key === t) && v(Os(o.value, [t]));
3133
+ function ie(e, t) {
3134
+ let n = Js(r.startup.tabs ?? [], r.startup.activeTabKey, t);
3135
+ Pe(t), o.value.some((e) => e.key === t) && v(rc(o.value, [t]));
3100
3136
  let i = n.tabs.find((t) => {
3101
- let n = t.fullPath ?? (t.pageDescriptor ? w(t.pageDescriptor) : void 0);
3137
+ let n = t.fullPath ?? (t.pageDescriptor ? A(t.pageDescriptor) : void 0);
3102
3138
  return n && new URL(n, "http://muyun.local").pathname === e;
3103
3139
  });
3104
3140
  return i ? (u({
3105
3141
  ...r.startup,
3106
3142
  tabs: n.tabs,
3107
3143
  activeTabKey: i.key
3108
- }, "replace"), { created: !1 }) : x(T(e), "replace", {
3144
+ }, "replace"), { created: !1 }) : S(ke(e), "replace", {
3109
3145
  ...r.startup,
3110
3146
  tabs: n.tabs,
3111
3147
  activeTabKey: n.activeTabKey
3112
3148
  });
3113
3149
  }
3114
- function x(e, t, i, a, o = !1) {
3115
- let s = new Set((i.tabs ?? []).map((e) => e.key)), c = ms(i, e, {
3150
+ function S(e, t, i, a, o = !1) {
3151
+ let s = new Set((i.tabs ?? []).map((e) => e.key)), c = Us(i, e, {
3116
3152
  ...r.resolveOptions,
3117
3153
  title: a ?? r.resolveOptions.title
3118
3154
  }, o, n);
3119
3155
  return a && c.activeTabKey && (c = {
3120
3156
  ...c,
3121
- tabs: (c.tabs ?? []).map((e) => e.key === c.activeTabKey ? Bs(e, a) : e)
3157
+ tabs: (c.tabs ?? []).map((e) => e.key === c.activeTabKey ? gc(e, a) : e)
3122
3158
  }), u(c, t), { created: !(!c.activeTabKey || s.has(c.activeTabKey)) };
3123
3159
  }
3124
- function oe(e, t) {
3160
+ function ae(e, t) {
3125
3161
  let n = t.trim();
3126
3162
  e && n && u({
3127
3163
  ...r.startup,
3128
- tabs: (r.startup.tabs ?? []).map((t) => t.instanceKey === e ? Bs(t, n) : t)
3164
+ tabs: (r.startup.tabs ?? []).map((t) => t.instanceKey === e ? gc(t, n) : t)
3129
3165
  });
3130
3166
  }
3131
- function se(e, t) {
3167
+ function oe(e, t) {
3132
3168
  let n = (r.startup.tabs ?? []).map((n) => n.key === e ? {
3133
3169
  ...n,
3134
3170
  title: t.title ?? n.title,
3135
3171
  pageDescriptor: t,
3136
- restoreState: { url: w(t) }
3172
+ restoreState: { url: A(t) }
3137
3173
  } : n), i = n.find((t) => t.key === e);
3138
- i && o.value.some((t) => t.key === e) && v(Es(o.value, i)), u({
3174
+ i && o.value.some((t) => t.key === e) && v(tc(o.value, i)), u({
3139
3175
  ...r.startup,
3140
3176
  tabs: n
3141
3177
  }, "replace");
3142
3178
  }
3143
- function S(e, t) {
3144
- let n = $s(e, r.location, t);
3179
+ function se(e, t) {
3180
+ let n = kc(e, r.location, t);
3145
3181
  n && i("navigate", n);
3146
3182
  }
3147
3183
  function ce(e) {
3148
- u(ms(r.startup, e, r.resolveOptions, !1, n));
3184
+ u(Us(r.startup, e, r.resolveOptions, !1, n));
3149
3185
  }
3150
- async function le() {
3186
+ async function C() {
3151
3187
  let e = s;
3152
3188
  try {
3153
- let t = Cs(await Js(Ur), r.startup.menus, r.resolveOptions, n);
3189
+ let t = Qs(await wc(qr), r.startup.menus, r.resolveOptions, n);
3154
3190
  if (!l || e !== s) return;
3155
3191
  o.value = t;
3156
3192
  let i = new Set(t.map((e) => e.key)), a = [...t, ...(r.startup.tabs ?? []).filter((e) => !i.has(e.key))];
3157
3193
  u({
3158
3194
  ...r.startup,
3159
- tabs: xs(a, t)
3195
+ tabs: Xs(a, t)
3160
3196
  });
3161
3197
  } catch {}
3162
3198
  }
3163
- return (t, n) => (I(), k(Qe, {
3199
+ return (t, n) => (B(), N(Je, {
3164
3200
  startup: e.startup,
3165
3201
  "current-user-employee-name": e.currentUserEmployeeName,
3166
3202
  loading: e.loading,
@@ -3178,12 +3214,12 @@ var rc = /* @__PURE__ */ F({
3178
3214
  onRefreshPage: p,
3179
3215
  onUserCommand: n[0] ||= (e) => i("userCommand", e),
3180
3216
  onRetryLoad: n[1] ||= (e) => i("retryLoad")
3181
- }, Mi({
3182
- default: B(({ pageDescriptor: e }) => [Hi(t.$slots, "default", { pageDescriptor: e })]),
3217
+ }, Qi({
3218
+ default: G(({ pageDescriptor: e }) => [H(t.$slots, "default", { pageDescriptor: e })]),
3183
3219
  _: 2
3184
3220
  }, [t.$slots["topbar-actions"] ? {
3185
3221
  name: "topbar-actions",
3186
- fn: B((e) => [Hi(t.$slots, "topbar-actions", Ii(Pi(e)))]),
3222
+ fn: G((e) => [H(t.$slots, "topbar-actions", ra(ea(e)))]),
3187
3223
  key: "0"
3188
3224
  } : void 0]), 1032, [
3189
3225
  "startup",
@@ -3199,42 +3235,42 @@ var rc = /* @__PURE__ */ F({
3199
3235
  });
3200
3236
  //#endregion
3201
3237
  //#region src/app/loginTenant.ts
3202
- function ic(e, t = sc(), n = cc(), r = "/") {
3203
- let i = oc(t, n === ac(r));
3238
+ function Pc(e, t = Lc(), n = Rc(), r = "/") {
3239
+ let i = Ic(t, n === Fc(r));
3204
3240
  return i ? {
3205
3241
  tenantId: i,
3206
3242
  tenantLocked: !0
3207
3243
  } : {
3208
- tenantId: Q(e),
3244
+ tenantId: $(e),
3209
3245
  tenantLocked: !1
3210
3246
  };
3211
3247
  }
3212
- function Q(e) {
3248
+ function $(e) {
3213
3249
  return e?.trim() ?? "";
3214
3250
  }
3215
- function ac(e) {
3251
+ function Fc(e) {
3216
3252
  let t = `/${(e?.trim() || "/").replace(/^\/+|\/+$/g, "")}`.replace(/^\/\/+/g, "/") || "/";
3217
3253
  return t === "/" ? t : `${t}/`;
3218
3254
  }
3219
- function oc(e, t) {
3220
- let n = new URLSearchParams(e.startsWith("?") ? e : `?${e}`), r = Q(n.get("_muyunTenantId"));
3221
- return r || !t ? r : Q(n.get("tenantId")) || Q(n.get("tenant"));
3255
+ function Ic(e, t) {
3256
+ let n = new URLSearchParams(e.startsWith("?") ? e : `?${e}`), r = $(n.get("_muyunTenantId"));
3257
+ return r || !t ? r : $(n.get("tenantId")) || $(n.get("tenant"));
3222
3258
  }
3223
- function sc() {
3259
+ function Lc() {
3224
3260
  return typeof window > "u" ? "" : window.location.search;
3225
3261
  }
3226
- function cc() {
3262
+ function Rc() {
3227
3263
  return typeof window > "u" ? "/" : window.location.pathname;
3228
3264
  }
3229
3265
  //#endregion
3230
3266
  //#region src/app/LoginView.vue?vue&type=script&setup=true&lang.ts
3231
- var lc = { class: "login-language" }, uc = { class: "login-page" }, dc = { class: "login-panel" }, fc = { class: "login-brand" }, pc = ["src"], mc = { key: 1 }, hc = { key: 0 }, gc = {
3267
+ var zc = { class: "login-language" }, Bc = { class: "login-page" }, Vc = { class: "login-panel" }, Hc = { class: "login-brand" }, Uc = ["src"], Wc = { key: 1 }, Gc = { key: 0 }, Kc = {
3232
3268
  key: 1,
3233
3269
  class: "login-subtitle"
3234
- }, _c = {
3270
+ }, qc = {
3235
3271
  key: 0,
3236
3272
  class: "login-error"
3237
- }, vc = { key: 0 }, yc = { class: "login-context" }, bc = /*#__PURE__*/ qn(/* @__PURE__ */ F({
3273
+ }, Jc = { key: 0 }, Yc = { class: "login-context" }, Xc = /*#__PURE__*/ wr(/* @__PURE__ */ z({
3238
3274
  name: "LoginView",
3239
3275
  __name: "LoginView",
3240
3276
  props: {
@@ -3246,8 +3282,8 @@ var lc = { class: "login-language" }, uc = { class: "login-page" }, dc = { class
3246
3282
  },
3247
3283
  emits: ["authenticated"],
3248
3284
  setup(e, { emit: t }) {
3249
- let n = At(), r = e, i = t, a = ic(void 0), o = L(a.tenantId), s = a.tenantLocked, c = L(Q(r.initialUsername) || Q(void 0)), l = L(Q(void 0)), u = L(!1), d = L(), f = L(!1), p = L(), m = L(""), h = L(""), g = L(), _ = L(!1), v = L(), ee = O(() => !s || !_.value && !v.value), y = O(() => g.value?.mode !== "logoOnly"), b = O(() => g.value?.title || n.t("platform.screen.LoginView.platform-sign-in", "平台登录")), te = O(() => g.value?.subtitle);
3250
- zi(async () => {
3285
+ let n = In(), r = e, i = t, a = Pc(void 0), o = V(a.tenantId), s = a.tenantLocked, c = V($(r.initialUsername) || $(void 0)), l = V($(void 0)), u = V(!1), d = V(), f = V(!1), p = V(), m = V(""), h = V(""), g = V(), _ = V(!1), v = V(), y = M(() => !s || !_.value && !v.value), b = M(() => g.value?.mode !== "logoOnly"), x = M(() => g.value?.title || n.t("platform.screen.LoginView.platform-sign-in", "平台登录")), ee = M(() => g.value?.subtitle);
3286
+ oa(async () => {
3251
3287
  if (s && o.value) {
3252
3288
  _.value = !0;
3253
3289
  try {
@@ -3261,7 +3297,7 @@ var lc = { class: "login-language" }, uc = { class: "login-page" }, dc = { class
3261
3297
  }
3262
3298
  }
3263
3299
  });
3264
- async function ne() {
3300
+ async function te() {
3265
3301
  d.value = void 0, u.value = !0;
3266
3302
  try {
3267
3303
  let e = await r.authClient.login({
@@ -3275,15 +3311,15 @@ var lc = { class: "login-language" }, uc = { class: "login-page" }, dc = { class
3275
3311
  }
3276
3312
  i("authenticated", e);
3277
3313
  } catch (e) {
3278
- d.value = () => re(e);
3314
+ d.value = () => ne(e);
3279
3315
  } finally {
3280
3316
  u.value = !1;
3281
3317
  }
3282
3318
  }
3283
- function re(e) {
3284
- return e instanceof Gr ? e.status === 403 ? n.t("platform.screen.LoginView.this-site-is-not-authorized-by-the-server", "当前站点未获后端授权,请联系管理员配置访问来源") : e.code === Vn.networkError || e.code === Vn.httpError || (e.status ?? 0) >= 500 ? n.t("platform.screen.LoginView.cannot-reach-the-server-check-its-status-and", "无法访问后端,请检查服务状态或站点授权配置") : e.code === Vn.loginBadCredentials ? n.t("platform.screen.LoginView.incorrect-username-or-password", "用户名或密码错误") : e.message : e instanceof Error ? e.message : n.t("platform.screen.LoginView.sign-in-failed-please-try-again-later", "登录失败,请稍后重试");
3319
+ function ne(e) {
3320
+ return e instanceof Li ? e.status === 403 ? n.t("platform.screen.LoginView.this-site-is-not-authorized-by-the-server", "当前站点未获后端授权,请联系管理员配置访问来源") : e.code === Cn.networkError || e.code === Cn.httpError || (e.status ?? 0) >= 500 ? n.t("platform.screen.LoginView.cannot-reach-the-server-check-its-status-and", "无法访问后端,请检查服务状态或站点授权配置") : e.code === Cn.loginBadCredentials ? n.t("platform.screen.LoginView.incorrect-username-or-password", "用户名或密码错误") : e.message : e instanceof Error ? e.message : n.t("platform.screen.LoginView.sign-in-failed-please-try-again-later", "登录失败,请稍后重试");
3285
3321
  }
3286
- async function ie() {
3322
+ async function re() {
3287
3323
  if (d.value = void 0, !p.value) {
3288
3324
  d.value = () => n.t("platform.screen.LoginView.your-session-is-no-longer-valid-please-sign", "登录状态已失效,请重新登录"), f.value = !1;
3289
3325
  return;
@@ -3305,84 +3341,84 @@ var lc = { class: "login-language" }, uc = { class: "login-page" }, dc = { class
3305
3341
  });
3306
3342
  i("authenticated", e);
3307
3343
  } catch (e) {
3308
- d.value = () => e instanceof Error ? Si(fr(e), n) : n.t("platform.screen.LoginView.password-change-failed", "密码修改失败,请重试");
3344
+ d.value = () => e instanceof Error ? ut(Pi(e), n) : n.t("platform.screen.LoginView.password-change-failed", "密码修改失败,请重试");
3309
3345
  } finally {
3310
3346
  u.value = !1;
3311
3347
  }
3312
3348
  }
3313
- return (t, r) => (I(), j(ji, null, [M("div", lc, [N(z(Be))]), M("main", uc, [M("section", dc, [
3314
- M("header", null, [M("div", fc, [g.value?.lightLogo ? (I(), j("img", {
3349
+ return (t, r) => (B(), F(Zi, null, [I("div", zc, [L(W(Ie))]), I("main", Bc, [I("section", Vc, [
3350
+ I("header", null, [I("div", Hc, [g.value?.lightLogo ? (B(), F("img", {
3315
3351
  key: 0,
3316
3352
  class: "login-logo",
3317
3353
  src: g.value.lightLogo,
3318
3354
  alt: ""
3319
- }, null, 8, pc)) : A("v-if", !0), y.value ? (I(), j("div", mc, [
3320
- g.value?.lightLogo ? A("v-if", !0) : (I(), j("p", hc, "MuYun Platform")),
3321
- M("h1", null, R(b.value), 1),
3322
- te.value ? (I(), j("p", gc, R(te.value), 1)) : A("v-if", !0)
3323
- ])) : A("v-if", !0)])]),
3324
- d.value || e.error || v.value ? (I(), j("p", _c, R(d.value?.() || e.error || v.value?.()), 1)) : A("v-if", !0),
3325
- f.value ? (I(), j("form", {
3355
+ }, null, 8, Uc)) : P("v-if", !0), b.value ? (B(), F("div", Wc, [
3356
+ g.value?.lightLogo ? P("v-if", !0) : (B(), F("p", Gc, "MuYun Platform")),
3357
+ I("h1", null, U(x.value), 1),
3358
+ ee.value ? (B(), F("p", Kc, U(ee.value), 1)) : P("v-if", !0)
3359
+ ])) : P("v-if", !0)])]),
3360
+ d.value || e.error || v.value ? (B(), F("p", qc, U(d.value?.() || e.error || v.value?.()), 1)) : P("v-if", !0),
3361
+ f.value ? (B(), F("form", {
3326
3362
  key: 2,
3327
3363
  class: "login-form",
3328
- onSubmit: Gi(ie, ["prevent"])
3364
+ onSubmit: pa(re, ["prevent"])
3329
3365
  }, [
3330
- M("p", yc, R(z(n).t("platform.screen.LoginView.change-your-current-password-before-entering-the-system", "当前密码需要修改后才能进入系统")), 1),
3331
- M("label", null, [M("span", null, R(z(n).t("platform.screen.LoginView.new-password", "新密码")), 1), N(z(E), {
3366
+ I("p", Yc, U(W(n).t("platform.screen.LoginView.change-your-current-password-before-entering-the-system", "当前密码需要修改后才能进入系统")), 1),
3367
+ I("label", null, [I("span", null, U(W(n).t("platform.screen.LoginView.new-password", "新密码")), 1), L(W(j), {
3332
3368
  value: m.value,
3333
3369
  "onUpdate:value": r[3] ||= (e) => m.value = e,
3334
3370
  type: "password",
3335
3371
  autocomplete: "new-password",
3336
3372
  required: ""
3337
3373
  }, null, 8, ["value"])]),
3338
- M("label", null, [M("span", null, R(z(n).t("platform.screen.LoginView.confirm-new-password", "确认新密码")), 1), N(z(E), {
3374
+ I("label", null, [I("span", null, U(W(n).t("platform.screen.LoginView.confirm-new-password", "确认新密码")), 1), L(W(j), {
3339
3375
  value: h.value,
3340
3376
  "onUpdate:value": r[4] ||= (e) => h.value = e,
3341
3377
  type: "password",
3342
3378
  autocomplete: "new-password",
3343
3379
  required: ""
3344
3380
  }, null, 8, ["value"])]),
3345
- N(z(ti), {
3381
+ L(W(Di), {
3346
3382
  class: "login-submit",
3347
3383
  "html-type": "submit",
3348
3384
  type: "primary",
3349
3385
  loading: u.value || e.loading
3350
3386
  }, {
3351
- default: B(() => [Ni(R(u.value || e.loading ? z(n).t("platform.screen.LoginView.saving", "保存中") : z(n).t("platform.screen.LoginView.change-password", "修改密码")), 1)]),
3387
+ default: G(() => [$i(U(u.value || e.loading ? W(n).t("platform.screen.LoginView.saving", "保存中") : W(n).t("platform.screen.LoginView.change-password", "修改密码")), 1)]),
3352
3388
  _: 1
3353
3389
  }, 8, ["loading"])
3354
- ], 32)) : (I(), j("form", {
3390
+ ], 32)) : (B(), F("form", {
3355
3391
  key: 1,
3356
3392
  class: "login-form",
3357
- onSubmit: Gi(ne, ["prevent"])
3393
+ onSubmit: pa(te, ["prevent"])
3358
3394
  }, [
3359
- z(s) ? A("v-if", !0) : (I(), j("label", vc, [M("span", null, R(z(n).t("platform.screen.LoginView.tenant-id", "租户 ID")), 1), N(z(E), {
3395
+ W(s) ? P("v-if", !0) : (B(), F("label", Jc, [I("span", null, U(W(n).t("platform.screen.LoginView.tenant-id", "租户 ID")), 1), L(W(j), {
3360
3396
  value: o.value,
3361
3397
  "onUpdate:value": r[0] ||= (e) => o.value = e,
3362
3398
  autocomplete: "organization",
3363
- placeholder: z(n).t("platform.screen.LoginView.leave-blank-to-enter-the-system-workspace", "留空进入系统工作区")
3399
+ placeholder: W(n).t("platform.screen.LoginView.leave-blank-to-enter-the-system-workspace", "留空进入系统工作区")
3364
3400
  }, null, 8, ["value", "placeholder"])])),
3365
- M("label", null, [M("span", null, R(z(n).t("platform.screen.LoginView.username", "用户名")), 1), N(z(E), {
3401
+ I("label", null, [I("span", null, U(W(n).t("platform.screen.LoginView.username", "用户名")), 1), L(W(j), {
3366
3402
  value: c.value,
3367
3403
  "onUpdate:value": r[1] ||= (e) => c.value = e,
3368
3404
  autocomplete: "username",
3369
3405
  required: ""
3370
3406
  }, null, 8, ["value"])]),
3371
- M("label", null, [M("span", null, R(z(n).t("platform.screen.LoginView.password", "密码")), 1), N(z(E), {
3407
+ I("label", null, [I("span", null, U(W(n).t("platform.screen.LoginView.password", "密码")), 1), L(W(j), {
3372
3408
  value: l.value,
3373
3409
  "onUpdate:value": r[2] ||= (e) => l.value = e,
3374
3410
  type: "password",
3375
3411
  autocomplete: "current-password",
3376
3412
  required: ""
3377
3413
  }, null, 8, ["value"])]),
3378
- N(z(ti), {
3414
+ L(W(Di), {
3379
3415
  class: "login-submit",
3380
3416
  "html-type": "submit",
3381
3417
  type: "primary",
3382
- disabled: !ee.value,
3418
+ disabled: !y.value,
3383
3419
  loading: u.value || e.loading || _.value
3384
3420
  }, {
3385
- default: B(() => [Ni(R(u.value || e.loading ? z(n).t("platform.screen.LoginView.signing-in", "登录中") : z(n).t("platform.screen.LoginView.sign-in", "登录")), 1)]),
3421
+ default: G(() => [$i(U(u.value || e.loading ? W(n).t("platform.screen.LoginView.signing-in", "登录中") : W(n).t("platform.screen.LoginView.sign-in", "登录")), 1)]),
3386
3422
  _: 1
3387
3423
  }, 8, ["disabled", "loading"])
3388
3424
  ], 32))
@@ -3391,8 +3427,8 @@ var lc = { class: "login-language" }, uc = { class: "login-page" }, dc = { class
3391
3427
  }), [["__scopeId", "data-v-8ea5034c"]]);
3392
3428
  //#endregion
3393
3429
  //#region src/consumer/userPreferencePersistence.ts
3394
- function xc(e) {
3395
- Gn({
3430
+ function Zc(e) {
3431
+ oi({
3396
3432
  load: async (t) => (await e().request({
3397
3433
  path: `/platform.user-preference/${encodeURIComponent(t)}`,
3398
3434
  query: { clientType: "WEB" }
@@ -3414,10 +3450,10 @@ function xc(e) {
3414
3450
  }
3415
3451
  //#endregion
3416
3452
  //#region src/app/ChangeOwnPasswordDialog.vue?vue&type=script&setup=true&lang.ts
3417
- var Sc = { class: "change-own-password-fields" }, Cc = {
3453
+ var Qc = { class: "change-own-password-fields" }, $c = {
3418
3454
  key: 0,
3419
3455
  class: "change-own-password-error"
3420
- }, wc = /*#__PURE__*/ qn(/* @__PURE__ */ F({
3456
+ }, el = /*#__PURE__*/ wr(/* @__PURE__ */ z({
3421
3457
  name: "ChangeOwnPasswordDialog",
3422
3458
  __name: "ChangeOwnPasswordDialog",
3423
3459
  props: {
@@ -3442,54 +3478,54 @@ var Sc = { class: "change-own-password-fields" }, Cc = {
3442
3478
  "update:confirmPassword"
3443
3479
  ],
3444
3480
  setup(e, { emit: t }) {
3445
- let n = At(), r = t;
3446
- return (t, i) => (I(), k(z(gt), {
3481
+ let n = In(), r = t;
3482
+ return (t, i) => (B(), N(W(cn), {
3447
3483
  open: e.open,
3448
- title: z(n).t("platform.screen.ChangeOwnPasswordDialog.change-password", "修改密码"),
3449
- "confirm-text": z(n).t("platform.screen.ChangeOwnPasswordDialog.save", "保存"),
3484
+ title: W(n).t("platform.screen.ChangeOwnPasswordDialog.change-password", "修改密码"),
3485
+ "confirm-text": W(n).t("platform.screen.ChangeOwnPasswordDialog.save", "保存"),
3450
3486
  "confirm-loading": e.saving,
3451
3487
  "confirm-disabled": !e.currentPassword || !e.newPassword || !e.confirmPassword,
3452
3488
  onConfirm: i[3] ||= (e) => r("submit"),
3453
3489
  onCancel: i[4] ||= (e) => r("close")
3454
3490
  }, {
3455
- default: B(() => [M("div", Sc, [
3456
- M("label", null, [M("span", null, R(z(n).t("platform.screen.ChangeOwnPasswordDialog.current-password", "当前密码")), 1), N(z(E), {
3491
+ default: G(() => [I("div", Qc, [
3492
+ I("label", null, [I("span", null, U(W(n).t("platform.screen.ChangeOwnPasswordDialog.current-password", "当前密码")), 1), L(W(j), {
3457
3493
  value: e.currentPassword,
3458
3494
  type: "password",
3459
3495
  autocomplete: "current-password",
3460
3496
  disabled: e.saving,
3461
- placeholder: z(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-current-password", "请输入当前密码"),
3497
+ placeholder: W(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-current-password", "请输入当前密码"),
3462
3498
  "onUpdate:value": i[0] ||= (e) => r("update:currentPassword", e)
3463
3499
  }, null, 8, [
3464
3500
  "value",
3465
3501
  "disabled",
3466
3502
  "placeholder"
3467
3503
  ])]),
3468
- M("label", null, [M("span", null, R(z(n).t("platform.screen.ChangeOwnPasswordDialog.new-password", "新密码")), 1), N(z(E), {
3504
+ I("label", null, [I("span", null, U(W(n).t("platform.screen.ChangeOwnPasswordDialog.new-password", "新密码")), 1), L(W(j), {
3469
3505
  value: e.newPassword,
3470
3506
  type: "password",
3471
3507
  autocomplete: "new-password",
3472
3508
  disabled: e.saving,
3473
- placeholder: z(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-new-password", "请输入新密码"),
3509
+ placeholder: W(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-new-password", "请输入新密码"),
3474
3510
  "onUpdate:value": i[1] ||= (e) => r("update:newPassword", e)
3475
3511
  }, null, 8, [
3476
3512
  "value",
3477
3513
  "disabled",
3478
3514
  "placeholder"
3479
3515
  ])]),
3480
- M("label", null, [M("span", null, R(z(n).t("platform.screen.ChangeOwnPasswordDialog.confirm-new-password", "确认新密码")), 1), N(z(E), {
3516
+ I("label", null, [I("span", null, U(W(n).t("platform.screen.ChangeOwnPasswordDialog.confirm-new-password", "确认新密码")), 1), L(W(j), {
3481
3517
  value: e.confirmPassword,
3482
3518
  type: "password",
3483
3519
  autocomplete: "new-password",
3484
3520
  disabled: e.saving,
3485
- placeholder: z(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-new-password-again", "请再次输入新密码"),
3521
+ placeholder: W(n).t("platform.screen.ChangeOwnPasswordDialog.enter-your-new-password-again", "请再次输入新密码"),
3486
3522
  "onUpdate:value": i[2] ||= (e) => r("update:confirmPassword", e)
3487
3523
  }, null, 8, [
3488
3524
  "value",
3489
3525
  "disabled",
3490
3526
  "placeholder"
3491
3527
  ])])
3492
- ]), e.error ? (I(), j("p", Cc, R(e.error), 1)) : A("v-if", !0)]),
3528
+ ]), e.error ? (B(), F("p", $c, U(e.error), 1)) : P("v-if", !0)]),
3493
3529
  _: 1
3494
3530
  }, 8, [
3495
3531
  "open",
@@ -3499,18 +3535,18 @@ var Sc = { class: "change-own-password-fields" }, Cc = {
3499
3535
  "confirm-disabled"
3500
3536
  ]));
3501
3537
  }
3502
- }), [["__scopeId", "data-v-c6faa9f8"]]), Tc = { class: "theme-skin-preferences" }, Ec = {
3538
+ }), [["__scopeId", "data-v-c6faa9f8"]]), tl = { class: "theme-skin-preferences" }, nl = {
3503
3539
  key: 0,
3504
3540
  class: "theme-skin-error",
3505
3541
  role: "alert"
3506
- }, Dc = ["aria-label"], Oc = [
3542
+ }, rl = ["aria-label"], il = [
3507
3543
  "aria-checked",
3508
3544
  "tabindex",
3509
3545
  "data-skin-id",
3510
3546
  "disabled",
3511
3547
  "onClick",
3512
3548
  "onKeydown"
3513
- ], kc = /*#__PURE__*/ qn(/* @__PURE__ */ F({
3549
+ ], al = /*#__PURE__*/ wr(/* @__PURE__ */ z({
3514
3550
  name: "ThemeSkinPreferencesDialog",
3515
3551
  __name: "ThemeSkinPreferencesDialog",
3516
3552
  props: {
@@ -3526,7 +3562,7 @@ var Sc = { class: "change-own-password-fields" }, Cc = {
3526
3562
  },
3527
3563
  emits: ["close", "select"],
3528
3564
  setup(e, { emit: t }) {
3529
- let n = At(), r = e, i = O(() => r.failure === "save-failed" ? n.t("platform.screen.themeSkinPreference.could-not-save-the-appearance-preference-the-previous", "皮肤保存失败,已恢复为之前的设置。") : r.error), a = t;
3565
+ let n = In(), r = e, i = M(() => r.failure === "save-failed" ? n.t("platform.screen.themeSkinPreference.could-not-save-the-appearance-preference-the-previous", "皮肤保存失败,已恢复为之前的设置。") : r.error), a = t;
3530
3566
  function o(e, t) {
3531
3567
  if (![
3532
3568
  "ArrowRight",
@@ -3542,25 +3578,25 @@ var Sc = { class: "change-own-password-fields" }, Cc = {
3542
3578
  let i = e.key === "Home" ? 0 : e.key === "End" ? r - 1 : (t + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + r) % r, o = n?.children.item(i), s = o?.dataset.skinId;
3543
3579
  s && (a("select", s), o?.focus());
3544
3580
  }
3545
- return (t, r) => (I(), k(z(gt), {
3581
+ return (t, r) => (B(), N(W(cn), {
3546
3582
  open: e.open,
3547
- title: z(n).t("platform.screen.ThemeSkinPreferencesDialog.preferences", "偏好设置"),
3583
+ title: W(n).t("platform.screen.ThemeSkinPreferencesDialog.preferences", "偏好设置"),
3548
3584
  width: 460,
3549
- "confirm-text": e.saving ? z(n).t("platform.screen.ThemeSkinPreferencesDialog.saving", "保存中…") : z(n).t("platform.screen.ThemeSkinPreferencesDialog.done", "完成"),
3585
+ "confirm-text": e.saving ? W(n).t("platform.screen.ThemeSkinPreferencesDialog.saving", "保存中…") : W(n).t("platform.screen.ThemeSkinPreferencesDialog.done", "完成"),
3550
3586
  "confirm-loading": e.saving,
3551
3587
  onConfirm: r[0] ||= (e) => a("close"),
3552
3588
  onCancel: r[1] ||= (e) => a("close")
3553
3589
  }, {
3554
- default: B(() => [M("section", Tc, [
3555
- M("header", null, [M("h2", null, R(z(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")), 1), M("p", null, R(z(n).t("platform.screen.ThemeSkinPreferencesDialog.your-appearance-preference-is-saved-to-this-account", "皮肤会同步保存到当前账号,并在下次启动时优先恢复。")), 1)]),
3556
- i.value ? (I(), j("p", Ec, R(i.value), 1)) : A("v-if", !0),
3557
- M("div", {
3590
+ default: G(() => [I("section", tl, [
3591
+ I("header", null, [I("h2", null, U(W(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")), 1), I("p", null, U(W(n).t("platform.screen.ThemeSkinPreferencesDialog.your-appearance-preference-is-saved-to-this-account", "皮肤会同步保存到当前账号,并在下次启动时优先恢复。")), 1)]),
3592
+ i.value ? (B(), F("p", nl, U(i.value), 1)) : P("v-if", !0),
3593
+ I("div", {
3558
3594
  class: "theme-skin-grid",
3559
3595
  role: "radiogroup",
3560
- "aria-label": z(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")
3561
- }, [(I(!0), j(ji, null, Vi(e.skins, (t, i) => (I(), j("button", {
3596
+ "aria-label": W(n).t("platform.screen.ThemeSkinPreferencesDialog.workbench-appearance", "工作台皮肤")
3597
+ }, [(B(!0), F(Zi, null, ca(e.skins, (t, i) => (B(), F("button", {
3562
3598
  key: t.id,
3563
- class: Fi(["theme-skin-card", { selected: t.id === e.activeSkinId }]),
3599
+ class: na(["theme-skin-card", { selected: t.id === e.activeSkinId }]),
3564
3600
  type: "button",
3565
3601
  role: "radio",
3566
3602
  "aria-checked": t.id === e.activeSkinId,
@@ -3570,9 +3606,9 @@ var Sc = { class: "change-own-password-fields" }, Cc = {
3570
3606
  onClick: (e) => a("select", t.id),
3571
3607
  onKeydown: (e) => o(e, i)
3572
3608
  }, [
3573
- M("span", {
3609
+ I("span", {
3574
3610
  class: "theme-skin-preview",
3575
- style: Li({
3611
+ style: ia({
3576
3612
  "--skin-canvas": t.theme.support.canvas,
3577
3613
  "--skin-surface": t.theme.support.surface,
3578
3614
  "--skin-text": t.theme.support.text,
@@ -3580,13 +3616,13 @@ var Sc = { class: "change-own-password-fields" }, Cc = {
3580
3616
  "--skin-accent": t.theme.brandAccent.base
3581
3617
  })
3582
3618
  }, [...r[2] ||= [
3583
- M("i", { class: "theme-skin-preview-sidebar" }, null, -1),
3584
- M("i", { class: "theme-skin-preview-toolbar" }, null, -1),
3585
- M("i", { class: "theme-skin-preview-card" }, null, -1)
3619
+ I("i", { class: "theme-skin-preview-sidebar" }, null, -1),
3620
+ I("i", { class: "theme-skin-preview-toolbar" }, null, -1),
3621
+ I("i", { class: "theme-skin-preview-card" }, null, -1)
3586
3622
  ]], 4),
3587
- M("strong", null, R(t.titleKey ? z(n).t(t.titleKey, t.title) : t.title), 1),
3588
- M("small", null, R(t.descriptionKey ? z(n).t(t.descriptionKey, t.description) : t.description), 1)
3589
- ], 42, Oc))), 128))], 8, Dc)
3623
+ I("strong", null, U(t.titleKey ? W(n).t(t.titleKey, t.title) : t.title), 1),
3624
+ I("small", null, U(t.descriptionKey ? W(n).t(t.descriptionKey, t.description) : t.description), 1)
3625
+ ], 42, il))), 128))], 8, rl)
3590
3626
  ])]),
3591
3627
  _: 1
3592
3628
  }, 8, [
@@ -3596,21 +3632,366 @@ var Sc = { class: "change-own-password-fields" }, Cc = {
3596
3632
  "confirm-loading"
3597
3633
  ]));
3598
3634
  }
3599
- }), [["__scopeId", "data-v-d7f8f04d"]]), $ = "workbench.theme-skin";
3600
- async function Ac(e, t) {
3601
- let n = await e.restore($, t, { persistence: "backend" }), r = ct(n).id;
3602
- return await e.set($, r, { persistence: "local" }), r;
3635
+ }), [["__scopeId", "data-v-d7f8f04d"]]), ol = "workbench.theme-skin";
3636
+ async function sl(e, t) {
3637
+ let n = await e.restore(ol, t, { persistence: "backend" }), r = di(n).id;
3638
+ return await e.set(ol, r, { persistence: "local" }), r;
3603
3639
  }
3604
- async function jc(e, t, n) {
3605
- await e.set($, t, { persistence: "local" });
3640
+ async function cl(e, t, n) {
3641
+ await e.set(ol, t, { persistence: "local" });
3606
3642
  try {
3607
- return await e.set($, t, { persistence: "backend" }), { skinId: t };
3643
+ return await e.set(ol, t, { persistence: "backend" }), { skinId: t };
3608
3644
  } catch {
3609
- return await e.set($, n, { persistence: "local" }), {
3645
+ return await e.set(ol, n, { persistence: "local" }), {
3610
3646
  skinId: n,
3611
3647
  failure: "save-failed"
3612
3648
  };
3613
3649
  }
3614
3650
  }
3615
3651
  //#endregion
3616
- export { Gr as AppError, rc as AppWorkbenchShell, jt as AssistantCapabilityUsageError, Wt as AssistantConversationInterruptedError, Cn as AssistantEffectInterruptedError, or as AssistantOperationRejectedError, or as OperationRejectedError, vr as BusinessNotificationPanel, wc as ChangeOwnPasswordDialog, mr as DateTimeText, zr as DraftUpdateRejectedError, ii as DrawerOperationBar, xe as DynamicModuleWorkspaceDetailView, Kn as FileSizeText, Vr as FileTransferUploadCancelledError, ci as FileTransferUploader, Be as LanguageSelector, bc as LoginView, $t as ModuleContextProvider, on as ModuleHttpProvider, fe as ModuleReferenceRecordDetailBrowser, Qr as OperationUsageError, Zs as PlatformAdminOutlet, Qo as PlatformAdminRouteOutlet, Rr as ReadonlyReferenceValue, Tt as RecordDetailDrawer, sn as ReferencePicker, $e as ReferencePickerReadError, ar as ReferenceRecordDetailBrowser, dn as SingleImageFileReferenceField, An as StaleAssistantInvocationError, kc as ThemeSkinPreferencesDialog, ti as UiButton, Er as UiDataTable, zn as UiDatePicker, Ct as UiDropdown, Cr as UiIcon, E as UiInput, wi as UiLanguageProvider, Ar as UiSidePanel, Gt as UiSwitch, Xr as UiTextArea, mn as UiThemeProvider, Qt as UiTree, Ot as UiTreeSelect, Mo as VueQueryPlugin, Qe as Workbench, Ae as WorkbenchAssistantPanel, i as WorkbenchMenu, Ie as WorkbenchOutlet, Me as WorkspaceViewOutlet, Hr as actionResultData, ps as activeTabUrlOf, xs as arrangeLockedMenuTabs, pn as boundedAssistantConversationHistory, d as buildWorkbenchMegaMenuModel, ir as businessContentGenerationBatch, Jn as businessContentLabel, qt as businessContentLanguageContext, Xt as businessContentLanguages, dr as businessContentPath, rn as businessContentReadHeaders, Zt as businessNotificationExpired, Br as canQueryRecycleBin, p as canonicalDynamicModulePath, Jr as changeBusinessContentTranslation, _ as clearAuthToken, br as codeOperationErrorMessage, es as configureAuthenticationRecovery, wt as configureModuleContext, Je as configureModulePageEnhancementContributions, ne as configureModulePageEnhancements, xc as configureUserPreferencePersistence, Oe as configureWorkspaceViewContributions, ft as confirmAction, Ee as connectAppRealtime, $n as connectRealtimeBusinessEvents, Nr as connectRealtimeBusinessNotifications, ui as connectRealtimeDataChanges, nr as connectRealtimeUserNotifications, ee as constructionPlanLimits, lr as contextDataChangeChannel, Dt as createAssistantCapabilitySelection, Io as createAssistantConversationClient, Ei as createAssistantDisplayObservations, cn as createAssistantOperationConfirmation, Vt as createAssistantSurfaceRegistry, St as createAssistantTurnRequester, Ze as createAuthClient, ns as createBackendHttpClient, ei as createBrowserFileTransferUpload, yi as createCodeTextPresentation, Fo as createConstructionPlanClient, ie as createDataChangeDispatcher, nn as createDataExchangeClient, kn as createHttpClient, xt as createLanguageContext, xi as createLanguagePreferenceController, pe as createLoginContextClient, wn as createManagedDetailRelationClient, Ye as createMenuClient, S as createMenuTab, Ft as createModuleContext, jn as createModuleCrudClient, a as createModulePageEnhancementRegistry, kt as createModuleTreeClient, Kt as createModuleTreeContext, Ht as createNavigatorReferenceCrudClient, Zr as createNavigatorReferenceTreeClient, oi as createOperationConfirmation, re as createPageBootstrapClient, No as createQueryClient, Kr as createRealtimeClient, ri as createReferenceResolveClient, o as createSessionClient, cr as createSseParser, Rt as createStaticModuleCrudClient, Ln as createStaticModuleTreeClient, Pn as createStaticResourceCrudClient, Bn as createStaticResourceTreeClient, Se as createUuid, ae as createWorkbenchMenuNodes, vi as createWorkflowAdminClient, xn as createWorkflowClient, bt as createWorkflowDefinitionClient, Ue as createWorkspaceViewDescriptor, ge as createWorkspaceViewRegistry, Ir as dataChangeChannel, Di as defaultUiThemeSkinId, ki as defineWorkspaceView, r as disconnectAppRealtime, ye as dismissWorkspaceViewDescriptor, Mt as displayModuleRuntime, se as dynamicModuleAliasFromPath, y as effectiveAuthToken, Yr as emptyAssistantCapabilityInputSchema, oe as filterWorkbenchMenuNodes, ce as findFirstNavigationMenu, u as findWorkbenchMenuNodeById, m as findWorkbenchMenuPath, Fe as firstDeepRootIdOf, b as getMenuNavigationTarget, It as hasExecutableDetailRelationMutationContract, Fn as hasExecutableDetailRelationQueryContract, $r as hasRecycleBinAbility, _r as imConversationMessageChannel, pr as imMessageSendCommand, an as invokeBusinessNotificationRecordAction, Et as isHttpStreamClient, qo as isPlatformAdminRoutePage, n as isTabMenuTarget, gn as isTextReference, Fr as isUnexpectedPlatformError, _e as isWindowMenuTarget, Lr as loadBusinessContentGeneration, yr as loadBusinessContentHistory, hr as loadBusinessContentReading, Un as loadBusinessContentSources, hi as loadBusinessContentTranslationHistory, Nt as loadLanguageCatalog, be as lookupOperationReceipt, gr as modelFailureMessage, xr as moduleAbilityCodes, Hn as moduleDataChangeChannel, Ke as modulePageWorkspaceViews, c as normalizeChangeSet, fr as normalizeError, qe as normalizeMenuMineResponse, un as normalizeModuleListResponse, tt as normalizeModulePageResponse, sr as normalizeModuleRecord, si as normalizeModuleTreeResponse, mi as organizationPublicDataChangeChannel, Ci as organizationPublicNotificationChannel, ut as originalPresentation, jr as pageActionEntryDescription, at as pageActionEntryTitle, Dr as pageActionEntryVisible, Yt as pageActionIntent, s as pageAssistantCatalog, Ve as pageDescriptorFromUrl, w as pageDescriptorToUrl, Le as pageInstanceKeyOf, ue as pagePublicationDigest, Lt as parseEmptyAssistantCapabilityInput, Ge as parseOperationReceiptReference, Wo as platformAdminModuleRoutes, Go as platformAdminRouteLayouts, Uo as platformAdminRoutePrefixes, Ho as platformAdminRoutes, Ut as platformCodeTextOriginal, fn as platformCodeTextReference, Vn as platformErrorCodes, D as platformLanguageContext, Yn as platformPingCommand, Ti as prepareBusinessContentTranslation, di as presentPlatformError, rr as presentPlatformInfo, ur as presentPlatformMessage, qr as presentPlatformSuccess, x as presentWorkbenchRealtimeStatus, gi as presentationLabel, In as provideAssistantSurfaceHost, We as provideCurrentUserContext, ot as provideLanguageContext, hn as provideModuleContextConfig, ai as provideRecordReadRefreshGuard, ve as provideWorkbenchNavigation, vn as provideWorkspaceUnsavedStateRegistrar, He as provideWorkspaceViewHost, Po as queryKeys, Pt as readAssistantAvailability, bi as realtimeDestinations, _n as realtimeMessageTypes, yn as recordBusinessContentArray, vt as recordBusinessContentText, dt as recordDataChangeChannel, mt as recordPresentationLabel, en as recordPresentationText, le as refreshModulePageList, _t as refreshWorkflowRecordActions, ln as registerUiLanguageLocales, Os as removeLockedMenuTabs, Zn as requestBusinessContentGeneration, pi as resolveGlobalErrorPresentation, Wn as resolveOperationErrorMessage, we as resolvePageDescriptor, Ko as resolvePlatformAdminRoute, Or as resolvePresentationText, ni as resolveWebActionResult, Qn as resolveWebActionResultMessage, Pe as resolveWorkspaceView, _i as resourceDataChangeChannel, bn as resourceRecordDataChangeChannel, et as restoreAssistantOperationReceipt, Js as restoreLockedTabPreference, Cs as restoreLockedWorkbenchTabs, Ac as restoreThemeSkinPreference, ms as restoreWorkbenchStartupStateFromUrl, T as routeUrlWithOpenOptions, st as runAssistantConversation, En as runAssistantStep, Nn as sameAssistantInvocationToken, l as saveAuthSessionId, f as saveAuthToken, Ys as saveLockedTabPreference, jc as saveThemeSkinPreference, yt as sessionActivityCommand, h as storedAuthSessionId, te as storedAuthToken, Te as subscribeAppBusinessEvents, g as subscribeAppDataChanges, Ce as syncModulePageWorkspaceViewContributions, de as tabIdentityKeyOf, Ne as tabKeyOf, ht as tenantPublicDataChangeChannel, tn as tenantPublicNotificationChannel, Tn as textReferenceMatchesOriginal, $ as themeSkinPreferenceKey, rt as translatedPresentation, ze as tryPageDescriptorFromUrl, ct as uiThemeSkinById, Dn as uiThemeSkins, Sr as unwrapResponsePayload, Es as updateLockedMenuTabs, nt as uploadedFileId, Rn as useAssistantSurfaceHost, fi as useBusinessContentGenerationBatch, Wr as useBusinessContentReading, Xe as useCurrentUserContext, At as useLanguageContext, Oi as useModuleContext, lt as useModuleHttpClient, On as useModuleTreeContext, er as useRecordReadRefreshGuard, Pr as useRecordReadRefreshRevision, ke as useWorkbenchNavigation, he as useWorkspaceViewHost, je as useWorkspaceViewNavigation, pt as useWorkspaceViewUnsavedState, kr as userBusinessEventChannel, it as userBusinessNotificationChannel, Si as userFacingErrorMessage, Tr as userImMessageChannel, Jt as userNotificationChannel, Ur as userPreferences, Mr as webDataChangeKey, Mn as webDataChangeTypes, li as webDataChanges, Bt as withHttpHeaders, Sn as withLanguageContext, C as withPageInstanceKey, tr as withWebActionResultChanges, wr as withoutRecordPresentation };
3652
+ //#region src/platform-components/ReadonlyRecordWorkspace.vue?vue&type=script&setup=true&lang.ts
3653
+ var ll = ["aria-label"], ul = /*#__PURE__*/ wr(/* @__PURE__ */ z({
3654
+ name: "ReadonlyRecordWorkspace",
3655
+ __name: "ReadonlyRecordWorkspace",
3656
+ props: {
3657
+ view: {},
3658
+ query: { default: void 0 },
3659
+ pageSize: { default: 20 },
3660
+ quickSearch: {
3661
+ type: Boolean,
3662
+ default: !0
3663
+ },
3664
+ queryOptionsByField: { default: () => ({}) },
3665
+ referencePickerOf: {
3666
+ type: Function,
3667
+ default: void 0
3668
+ }
3669
+ },
3670
+ setup(e, { expose: t }) {
3671
+ Si("workspace");
3672
+ let n = e, r = In(), i = nt(r), a = V(), o = Zr(a, hi(0)), s = V({}), c = V({}), l = V({}), u = V(0), d = M({
3673
+ get: () => s.value.criteria,
3674
+ set: (e) => {
3675
+ ae({
3676
+ ...s.value,
3677
+ criteria: e
3678
+ });
3679
+ }
3680
+ }), f = M({
3681
+ get: () => s.value.sorts,
3682
+ set: (e) => {
3683
+ ae({
3684
+ ...s.value,
3685
+ sorts: e
3686
+ });
3687
+ }
3688
+ }), p = V(!1), m = V(!1), h = V(""), g = M(() => JSON.stringify([
3689
+ n.view.sourceId,
3690
+ n.view.viewCode,
3691
+ n.view.scopeKey
3692
+ ])), _ = M(() => n.view.querySchema), v = M(() => _.value?.criteriaComposition ?? "TREE"), y = M(() => (_.value?.fields ?? []).filter((e) => !e.reference || !!n.referencePickerOf?.(e)).map((e) => ({
3693
+ ...e,
3694
+ title: Jt(e.title ?? e.name, e.titleText, r)
3695
+ }))), b = M(() => y.value.filter((e) => e.persistentControl)), x = M(() => Object.values(l.value).every((e) => e.valid));
3696
+ function ee(e) {
3697
+ return b.value.flatMap((t) => {
3698
+ let n = t.persistentControl, r = e?.[n.id] ?? n.defaultValues ?? [];
3699
+ return r.length || mr(n.operator) ? [{
3700
+ kind: "CONDITION",
3701
+ fieldName: t.name,
3702
+ operator: n.operator,
3703
+ values: r
3704
+ }] : [];
3705
+ });
3706
+ }
3707
+ let te = M(() => ee(s.value.persistentValues)), ne = M(() => b.value.map((e) => {
3708
+ let t = e.persistentControl;
3709
+ return {
3710
+ ...t,
3711
+ title: Jt(t.title, t.titleText, r),
3712
+ field: e,
3713
+ values: c.value[t.id] ?? t.defaultValues ?? [],
3714
+ options: n.queryOptionsByField[e.name],
3715
+ referencePicker: n.referencePickerOf?.(e)
3716
+ };
3717
+ }));
3718
+ function re() {
3719
+ x.value && !T.value && ae({
3720
+ ...s.value,
3721
+ persistentValues: Object.fromEntries(ne.value.map((e) => [e.id, [...e.values]]))
3722
+ });
3723
+ }
3724
+ function ie() {
3725
+ c.value = {}, l.value = {}, u.value++, ae({
3726
+ ...s.value,
3727
+ persistentValues: void 0
3728
+ });
3729
+ }
3730
+ let S = M(() => ({
3731
+ ...n.query,
3732
+ criteria: lr([
3733
+ n.query?.criteria,
3734
+ ...te.value,
3735
+ d.value
3736
+ ]),
3737
+ sorts: f.value ?? n.query?.sorts ?? _.value?.defaultSorts.map((e) => ({
3738
+ ...e,
3739
+ desc: e.desc ?? !1
3740
+ })),
3741
+ quickSearchFields: _.value?.quickSearch.fields ?? n.query?.quickSearchFields
3742
+ }));
3743
+ function ae(e) {
3744
+ let t = JSON.stringify(S.value), i = Oi(lr([
3745
+ n.query?.criteria,
3746
+ ...ee(e.persistentValues),
3747
+ e.criteria
3748
+ ]), r);
3749
+ h.value = i ?? "", !i && (s.value = e, JSON.stringify(S.value) === t && C.goPage(1));
3750
+ }
3751
+ let oe = M(() => JSON.stringify({
3752
+ composition: v.value,
3753
+ fields: _.value?.fields.map((e) => ({
3754
+ name: e.name,
3755
+ valueType: e.valueType,
3756
+ operators: e.operators,
3757
+ sortable: e.sortable,
3758
+ reference: e.reference,
3759
+ persistentControl: e.persistentControl && {
3760
+ id: e.persistentControl.id,
3761
+ operator: e.persistentControl.operator,
3762
+ defaultValues: e.persistentControl.defaultValues
3763
+ }
3764
+ })),
3765
+ quickSearch: _.value && {
3766
+ enabled: _.value.quickSearch.enabled,
3767
+ fields: _.value.quickSearch.fields
3768
+ },
3769
+ defaultSorts: _.value?.defaultSorts
3770
+ }));
3771
+ da([g, oe], () => {
3772
+ s.value = {}, c.value = {}, l.value = {}, u.value++, p.value = !1, m.value = !1, h.value = "";
3773
+ }, { flush: "sync" });
3774
+ function se() {
3775
+ m.value = !0, p.value = !p.value;
3776
+ }
3777
+ function ce(e) {
3778
+ h.value = "", d.value = e;
3779
+ }
3780
+ let C = si({
3781
+ view: () => n.view,
3782
+ query: S,
3783
+ pageSize: n.pageSize,
3784
+ contentLanguage: () => i.languageTag.value
3785
+ }), { result: w, loading: T, error: E, selected: D, detail: le, detailLoading: ue, detailError: O, pageNum: de, pageSize: fe } = C;
3786
+ da(oe, () => {
3787
+ C.search("");
3788
+ }, { flush: "sync" });
3789
+ let pe = V("");
3790
+ da(() => n.pageSize, (e) => void C.resizePage(e)), da(C.quickSearch, (e) => {
3791
+ pe.value = e;
3792
+ }), da(g, () => {
3793
+ pe.value = "";
3794
+ }, { flush: "sync" });
3795
+ let k = M(() => n.view.descriptor.page?.list), me = M(() => Xr(k.value?.fields)), he = M(() => n.view.descriptor.page?.detail?.display ? Ft(n.view.descriptor) : /* @__PURE__ */ new Map()), ge = M(() => !o.value), _e = M(() => k.value?.title?.text ?? k.value?.fields.title ?? n.view.viewCode), ve = M(() => D.value ? n.view.detail?.title(D.value) ?? _e.value : _e.value), ye = M(() => w.value?.pages ?? 0);
3796
+ function be(e) {
3797
+ return ut(Pi(e), r);
3798
+ }
3799
+ return t({
3800
+ refresh: C.refresh,
3801
+ closeDetail: C.closeDetail
3802
+ }), (t, i) => (B(), F("section", {
3803
+ ref_key: "host",
3804
+ ref: a,
3805
+ class: "readonly-record-workspace",
3806
+ "aria-label": _e.value
3807
+ }, [L(_r, {
3808
+ "explorer-count": 0,
3809
+ "detail-surface": !!W(D) && ge.value,
3810
+ "list-surface": !W(D) || !ge.value
3811
+ }, {
3812
+ default: G(() => [L(Wt, {
3813
+ title: _e.value,
3814
+ subtitle: k.value?.subtitle?.text,
3815
+ "title-action-icon": "reload",
3816
+ "title-action-title": W(r).t("platform.read-view.refresh", "刷新"),
3817
+ "title-action-disabled": W(T),
3818
+ "quick-search-visible": e.quickSearch && (_.value?.quickSearch.enabled ?? !0),
3819
+ "quick-search-value": pe.value,
3820
+ "quick-search-placeholder": k.value?.searchPlaceholder,
3821
+ "quick-search-disabled": W(T),
3822
+ columns: me.value,
3823
+ rows: W(w)?.records ?? [],
3824
+ "row-key": (t) => e.view.recordKey(t),
3825
+ "selected-row-key": W(D) ? e.view.recordKey(W(D)) : void 0,
3826
+ "clickable-rows": !!e.view.detail,
3827
+ "table-visible": !W(T) && !W(E) && !!W(w)?.records.length,
3828
+ pageable: "",
3829
+ total: W(w)?.total ?? 0,
3830
+ "total-known": W(w)?.totalKnown ?? !0,
3831
+ "page-num": W(de),
3832
+ "page-size": W(fe),
3833
+ pages: ye.value,
3834
+ "pagination-disabled": W(T) || !W(w),
3835
+ onTitleAction: W(C).refresh,
3836
+ "onUpdate:quickSearchValue": i[5] ||= (e) => pe.value = e,
3837
+ onQuickSearch: W(C).search,
3838
+ onPageChange: W(C).goPage,
3839
+ onPageSizeChange: W(C).resizePage,
3840
+ onRowClick: i[6] ||= (e) => W(C).select(e)
3841
+ }, Qi({
3842
+ persistentQueries: G(() => [L(Hn, {
3843
+ controls: ne.value,
3844
+ "reset-key": `${g.value}:${u.value}`,
3845
+ disabled: W(T),
3846
+ valid: x.value,
3847
+ "onUpdate:values": i[0] ||= (e, t) => c.value = {
3848
+ ...c.value,
3849
+ [e]: t
3850
+ },
3851
+ onValidity: i[1] ||= (e, t) => l.value = {
3852
+ ...l.value,
3853
+ [e]: t
3854
+ },
3855
+ onApply: re,
3856
+ onReset: ie
3857
+ }, null, 8, [
3858
+ "controls",
3859
+ "reset-key",
3860
+ "disabled",
3861
+ "valid"
3862
+ ]), H(t.$slots, "queries", {}, void 0, !0)]),
3863
+ queryControls: G(() => [L(Tr, {
3864
+ "sort-visible": !!_.value,
3865
+ "sort-fields": _.value?.fields.filter((e) => e.sortable) ?? [],
3866
+ sorts: f.value,
3867
+ "filter-visible": v.value !== "NONE" && y.value.some((e) => v.value !== "FLAT_AND" || !e.persistentControl),
3868
+ "filter-title": v.value === "FLAT_AND" ? W(r).t("platform.screen.RecordQueryListPanel.more-filters", "更多筛选") : W(r).t("platform.screen.RecordQueryListPanel.advanced-filters", "高级筛选"),
3869
+ expanded: p.value,
3870
+ count: W(Gr)(d.value),
3871
+ disabled: W(T),
3872
+ onSortChange: i[2] ||= (e) => f.value = e,
3873
+ onToggle: se
3874
+ }, null, 8, [
3875
+ "sort-visible",
3876
+ "sort-fields",
3877
+ "sorts",
3878
+ "filter-visible",
3879
+ "filter-title",
3880
+ "expanded",
3881
+ "count",
3882
+ "disabled"
3883
+ ])]),
3884
+ operations: G(() => [H(t.$slots, "operations", { refresh: W(C).refresh }, void 0, !0)]),
3885
+ beforeTable: G(() => [h.value ? (B(), N(W(Xt), {
3886
+ key: 0,
3887
+ message: h.value
3888
+ }, null, 8, ["message"])) : P("v-if", !0), W(E) ? (B(), N(W(Xt), {
3889
+ key: 1,
3890
+ message: be(W(E))
3891
+ }, null, 8, ["message"])) : W(T) ? (B(), N(W(en), { key: 2 })) : W(w)?.records.length ? P("v-if", !0) : (B(), N(W(qi), {
3892
+ key: 3,
3893
+ description: W(r).t("platform.read-view.empty", "暂无符合条件的记录")
3894
+ }, null, 8, ["description"]))]),
3895
+ cell: G(({ column: n, record: r }) => [H(t.$slots, "cell", {
3896
+ column: me.value.find((e) => e.key === n.key),
3897
+ record: r
3898
+ }, () => [L(ci, {
3899
+ column: me.value.find((e) => e.key === n.key),
3900
+ record: r,
3901
+ reading: W(w)?.businessContent?.readings[e.view.recordKey(r)]?.[n.key]
3902
+ }, null, 8, [
3903
+ "column",
3904
+ "record",
3905
+ "reading"
3906
+ ])], !0)]),
3907
+ _: 2
3908
+ }, [m.value ? {
3909
+ name: "conditions",
3910
+ fn: G(() => [fa(I("section", null, [(B(), N(un, {
3911
+ key: g.value,
3912
+ fields: y.value,
3913
+ conjuncts: [...n.query?.criteria ? [n.query.criteria] : [], ...te.value],
3914
+ "excluded-field-names": v.value === "FLAT_AND" ? b.value.map((e) => e.name) : [],
3915
+ "option-items-by-field": e.queryOptionsByField,
3916
+ "reference-contexts": {},
3917
+ "reference-picker-of": e.referencePickerOf,
3918
+ disabled: W(T),
3919
+ composition: v.value === "FLAT_AND" ? "FLAT_AND" : "TREE",
3920
+ onApply: ce,
3921
+ onClear: i[3] ||= (e) => ce(void 0),
3922
+ onValidation: i[4] ||= (e) => h.value = e
3923
+ }, null, 8, [
3924
+ "fields",
3925
+ "conjuncts",
3926
+ "excluded-field-names",
3927
+ "option-items-by-field",
3928
+ "reference-picker-of",
3929
+ "disabled",
3930
+ "composition"
3931
+ ]))], 512), [[ua, p.value]])]),
3932
+ key: "0"
3933
+ } : void 0]), 1032, [
3934
+ "title",
3935
+ "subtitle",
3936
+ "title-action-title",
3937
+ "title-action-disabled",
3938
+ "quick-search-visible",
3939
+ "quick-search-value",
3940
+ "quick-search-placeholder",
3941
+ "quick-search-disabled",
3942
+ "columns",
3943
+ "rows",
3944
+ "row-key",
3945
+ "selected-row-key",
3946
+ "clickable-rows",
3947
+ "table-visible",
3948
+ "total",
3949
+ "total-known",
3950
+ "page-num",
3951
+ "page-size",
3952
+ "pages",
3953
+ "pagination-disabled",
3954
+ "onTitleAction",
3955
+ "onQuickSearch",
3956
+ "onPageChange",
3957
+ "onPageSizeChange"
3958
+ ]), L(yi, {
3959
+ open: !!W(D),
3960
+ docked: ge.value,
3961
+ title: ve.value,
3962
+ dismissal: "dismissible",
3963
+ onClose: W(C).closeDetail
3964
+ }, Qi({
3965
+ default: G(() => [W(O) ? (B(), N(W(Xt), {
3966
+ key: 0,
3967
+ message: be(W(O))
3968
+ }, null, 8, ["message"])) : W(ue) ? (B(), N(W(en), { key: 1 })) : W(D) && W(le) ? (B(), F(Zi, { key: 2 }, [L(ar, {
3969
+ record: W(le),
3970
+ fields: he.value
3971
+ }, null, 8, ["record", "fields"]), H(t.$slots, "detail", {
3972
+ record: W(D),
3973
+ detail: W(le),
3974
+ refresh: W(C).refresh
3975
+ }, void 0, !0)], 64)) : P("v-if", !0)]),
3976
+ _: 2
3977
+ }, [W(D) && W(le) && !W(ue) && !W(O) ? {
3978
+ name: "operation",
3979
+ fn: G(() => [H(t.$slots, "detailOperations", {
3980
+ record: W(D),
3981
+ detail: W(le),
3982
+ refresh: W(C).refresh,
3983
+ close: W(C).closeDetail
3984
+ }, void 0, !0)]),
3985
+ key: "0"
3986
+ } : void 0]), 1032, [
3987
+ "open",
3988
+ "docked",
3989
+ "title",
3990
+ "onClose"
3991
+ ])]),
3992
+ _: 3
3993
+ }, 8, ["detail-surface", "list-surface"])], 8, ll));
3994
+ }
3995
+ }), [["__scopeId", "data-v-e13b15ec"]]);
3996
+ //#endregion
3997
+ export { Li as AppError, Nc as AppWorkbenchShell, Ln as AssistantCapabilityUsageError, Ct as AssistantConversationInterruptedError, Wn as AssistantEffectInterruptedError, or as AssistantOperationRejectedError, or as OperationRejectedError, xn as BusinessNotificationPanel, el as ChangeOwnPasswordDialog, ct as DateTimeText, wi as DraftUpdateRejectedError, Jr as DrawerOperationBar, ge as DynamicModuleWorkspaceDetailView, Cr as FileSizeText, Wr as FileTransferUploadCancelledError, cr as FileTransferUploader, Ie as LanguageSelector, Xc as LoginView, _r as ManagementWorkspace, jn as ModuleContextProvider, kt as ModuleHttpProvider, D as ModuleReferenceRecordDetailBrowser, ur as OperationUsageError, Dc as PlatformAdminOutlet, Ds as PlatformAdminRouteOutlet, ul as ReadonlyRecordWorkspace, Bi as ReadonlyReferenceValue, At as RecordDetailDrawer, Xn as RecordDetailExtensionSection, ar as RecordDetailFields, xt as RecordDetailPanel, ci as RecordQueryListCell, Wt as RecordQueryListSurface, br as ReferencePicker, Ci as ReferencePickerReadError, Ni as ReferenceRecordDetailBrowser, $n as SingleImageFileReferenceField, fn as StaleAssistantInvocationError, al as ThemeSkinPreferencesDialog, Di as UiButton, _n as UiDataTable, Fr as UiDatePicker, Ot as UiDropdown, qi as UiEmpty, Xt as UiError, pr as UiIcon, j as UiInput, gt as UiLanguageProvider, ii as UiSelect, Nt as UiSidePanel, Pn as UiSwitch, yr as UiTextArea, wt as UiThemeProvider, it as UiTree, pn as UiTreeSelect, rs as VueQueryPlugin, Je as Workbench, Te as WorkbenchAssistantPanel, i as WorkbenchMenu, Me as WorkbenchOutlet, De as WorkspaceViewOutlet, Kr as actionResultData, Hs as activeTabUrlOf, Xs as arrangeLockedMenuTabs, Vt as boundedAssistantConversationHistory, d as buildWorkbenchMegaMenuModel, Wi as businessContentGenerationBatch, nn as businessContentLabel, nt as businessContentLanguageContext, kn as businessContentLanguages, ir as businessContentPath, Et as businessContentReadHeaders, An as businessNotificationExpired, Ti as canQueryRecycleBin, p as canonicalDynamicModulePath, zi as changeBusinessContentTranslation, _ as clearAuthToken, xr as codeOperationErrorMessage, ks as configureAuthenticationRecovery, On as configureModuleContext, We as configureModulePageEnhancementContributions, te as configureModulePageEnhancements, Zc as configureUserPreferencePersistence, Ce as configureWorkspaceViewContributions, et as confirmAction, xe as connectAppRealtime, Dr as connectRealtimeBusinessEvents, qn as connectRealtimeBusinessNotifications, Ai as connectRealtimeDataChanges, Hi as connectRealtimeUserNotifications, y as constructionPlanLimits, nr as contextDataChangeChannel, Xe as createAssistantCapabilitySelection, ss as createAssistantConversationClient, ui as createAssistantDisplayObservations, ti as createAssistantOperationConfirmation, hr as createAssistantSurfaceRegistry, Dn as createAssistantTurnRequester, qe as createAuthClient, js as createBackendHttpClient, Ei as createBrowserFileTransferUpload, zr as createCodeTextPresentation, os as createConstructionPlanClient, re as createDataChangeDispatcher, Pt as createDataExchangeClient, dn as createHttpClient, En as createLanguageContext, Vr as createLanguagePreferenceController, le as createLoginContextClient, Gn as createManagedDetailRelationClient, Ge as createMenuClient, se as createMenuTab, Fn as createModuleContext, mn as createModuleCrudClient, a as createModulePageEnhancementRegistry, Ze as createModuleTreeClient, Tt as createModuleTreeContext, gr as createNavigatorReferenceCrudClient, xi as createNavigatorReferenceTreeClient, Hr as createOperationConfirmation, ne as createPageBootstrapClient, is as createQueryClient, Ri as createRealtimeClient, Ar as createReferenceResolveClient, o as createSessionClient, tr as createSseParser, $r as createStaticModuleCrudClient, mi as createStaticModuleTreeClient, Nr as createStaticResourceCrudClient, Qn as createStaticResourceTreeClient, _e as createUuid, ie as createWorkbenchMenuNodes, Zt as createWorkflowAdminClient, tn as createWorkflowClient, ln as createWorkflowDefinitionClient, ze as createWorkspaceViewDescriptor, fe as createWorkspaceViewRegistry, bn as dataChangeChannel, Ht as defaultUiThemeSkinId, Yi as defineWorkspaceView, r as disconnectAppRealtime, me as dismissWorkspaceViewDescriptor, Rn as displayModuleRuntime, oe as dynamicModuleAliasFromPath, b as effectiveAuthToken, bi as emptyAssistantCapabilityInputSchema, ae as filterWorkbenchMenuNodes, ce as findFirstNavigationMenu, u as findWorkbenchMenuNodeById, m as findWorkbenchMenuPath, je as firstDeepRootIdOf, x as getMenuNavigationTarget, ei as hasExecutableDetailRelationMutationContract, gi as hasExecutableDetailRelationQueryContract, dr as hasRecycleBinAbility, st as imConversationMessageChannel, Fi as imMessageSendCommand, Dt as invokeBusinessNotificationRecordAction, Ye as isHttpStreamClient, ys as isPlatformAdminRoutePage, n as isTabMenuTarget, Qe as isTextReference, yn as isUnexpectedPlatformError, pe as isWindowMenuTarget, hi as listDetailWorkspaceMinWidth, Sn as loadBusinessContentGeneration, lt as loadBusinessContentHistory, Ii as loadBusinessContentReading, Tn as loadBusinessContentSources, _t as loadBusinessContentTranslationHistory, Mn as loadLanguageCatalog, he as lookupOperationReceipt, ot as modelFailureMessage, Sr as moduleAbilityCodes, wn as moduleDataChangeChannel, He as modulePageWorkspaceViews, c as normalizeChangeSet, Pi as normalizeError, Ue as normalizeMenuMineResponse, ni as normalizeModuleListResponse, vi as normalizeModulePageResponse, sr as normalizeModuleRecord, Ur as normalizeModuleTreeResponse, ht as organizationPublicDataChangeChannel, dt as organizationPublicNotificationChannel, Ir as originalPresentation, qt as pageActionEntryDescription, vn as pageActionEntryTitle, Ji as pageActionEntryVisible, at as pageActionIntent, s as pageAssistantCatalog, Le as pageDescriptorFromUrl, A as pageDescriptorToUrl, Ne as pageInstanceKeyOf, w as pagePublicationDigest, Qr as parseEmptyAssistantCapabilityInput, Ve as parseOperationReceiptReference, gs as platformAdminModuleRoutes, _s as platformAdminRouteLayouts, hs as platformAdminRoutePrefixes, ms as platformAdminRoutes, St as platformCodeTextOriginal, Bt as platformCodeTextReference, Cn as platformErrorCodes, li as platformLanguageContext, rn as platformPingCommand, pt as prepareBusinessContentTranslation, Jn as presentPlatformError, ji as presentPlatformInfo, Ui as presentPlatformMessage, rr as presentPlatformSuccess, S as presentWorkbenchRealtimeStatus, Jt as presentationLabel, pi as provideAssistantSurfaceHost, Be as provideCurrentUserContext, It as provideLanguageContext, Ut as provideModuleContextConfig, jr as provideRecordReadRefreshGuard, k as provideWorkbenchNavigation, tt as provideWorkspaceUnsavedStateRegistrar, Re as provideWorkspaceViewHost, as as queryKeys, Nn as readAssistantAvailability, Br as realtimeDestinations, $e as realtimeMessageTypes, Qt as recordBusinessContentArray, on as recordBusinessContentText, Lr as recordDataChangeChannel, vt as recordPresentationLabel, jt as recordPresentationText, C as refreshModulePageList, bt as refreshWorkflowRecordActions, er as registerUiLanguageLocales, rc as removeLockedMenuTabs, an as requestBusinessContentGeneration, mt as resolveGlobalErrorPresentation, ai as resolveOperationErrorMessage, ye as resolvePageDescriptor, vs as resolvePlatformAdminRoute, Gt as resolvePresentationText, Ft as resolveRecordDetailFields, Xr as resolveRecordQueryListColumns, cs as resolveRecordReadEntry, kr as resolveWebActionResult, Er as resolveWebActionResultMessage, Ae as resolveWorkspaceView, Yt as resourceDataChangeChannel, $t as resourceRecordDataChangeChannel, _i as restoreAssistantOperationReceipt, wc as restoreLockedTabPreference, Qs as restoreLockedWorkbenchTabs, sl as restoreThemeSkinPreference, Us as restoreWorkbenchStartupStateFromUrl, ke as routeUrlWithOpenOptions, Lt as runAssistantConversation, Bn as runAssistantStep, Mr as sameAssistantInvocationToken, l as saveAuthSessionId, f as saveAuthToken, Tc as saveLockedTabPreference, cl as saveThemeSkinPreference, sn as sessionActivityCommand, h as storedAuthSessionId, ee as storedAuthToken, be as subscribeAppBusinessEvents, g as subscribeAppDataChanges, ve as syncModulePageWorkspaceViewContributions, E as tabIdentityKeyOf, Oe as tabKeyOf, yt as tenantPublicDataChangeChannel, Mt as tenantPublicNotificationChannel, zn as textReferenceMatchesOriginal, ol as themeSkinPreferenceKey, hn as translatedPresentation, Fe as tryPageDescriptorFromUrl, di as uiThemeSkinById, Rt as uiThemeSkins, fr as unwrapResponsePayload, tc as updateLockedMenuTabs, ri as uploadedFileId, Zn as useAssistantSurfaceHost, Mi as useBusinessContentGenerationBatch, Yr as useBusinessContentReading, Ke as useCurrentUserContext, In as useLanguageContext, fi as useModuleContext, zt as useModuleHttpClient, Vn as useModuleTreeContext, Es as usePageDescriptor, Ts as usePageRoute, Or as useRecordReadRefreshGuard, Yn as useRecordReadRefreshRevision, si as useRecordReadSession, we as useWorkbenchNavigation, Zr as useWorkspaceDetailSurface, de as useWorkspaceViewHost, Ee as useWorkspaceViewNavigation, Rr as useWorkspaceViewUnsavedState, Kt as userBusinessEventChannel, gn as userBusinessNotificationChannel, ut as userFacingErrorMessage, Ki as userImMessageChannel, rt as userNotificationChannel, qr as userPreferences, Kn as webDataChangeKey, Pr as webDataChangeTypes, ki as webDataChanges, vr as withHttpHeaders, Un as withLanguageContext, O as withPageInstanceKey, Vi as withWebActionResultChanges, Gi as withoutRecordPresentation };