@ximatai/muyun-web-app 0.26.11 → 0.26.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BusinessActivityLogView-UC4rH4Fn.js +16 -0
- package/dist/BusinessLogListDrawer-BtaXVJKz.js +564 -0
- package/dist/LoginAuditLogView-Cjrp8MKX.js +16 -0
- package/dist/ModuleActionManagementView-Dkb35QXc.js +673 -0
- package/dist/ModuleGovernanceView-Dx43QvGf.js +28651 -0
- package/dist/RequestErrorLogView-WnGvMWiF.js +16 -0
- package/dist/RoleDetailWorkspaceView-DPDb_QOn.js +1397 -0
- package/dist/RuntimeLogView-BRl4ZDkU.js +330 -0
- package/dist/http-B0TC0pJB.js +157 -0
- package/dist/index.css +1 -1
- package/dist/index.js +1938 -325
- package/dist/moduleGovernanceWorkspaceView-4V_UW-Bt.js +40 -0
- package/dist/platform-components-1cvOeHmo.js +17854 -0
- package/dist/platform-workbench-Cu14Xd9d.js +10299 -0
- package/dist/rolldown-runtime-DPVXH0ON.js +17 -0
- package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +0 -2
- package/dist/types/app/LoginView.vue.d.ts +1 -1
- package/dist/types/app/workbenchRouteSync.d.ts +10 -1
- package/dist/types/app/workbenchSessionTabs.d.ts +22 -0
- package/dist/types/app/workbenchStartup.d.ts +7 -0
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +4 -1
- package/dist/types/consumer/index.d.ts +8 -0
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +2208 -0
- package/dist/types/dynamic-page-runtime/ModulePageBusinessState.vue.d.ts +11 -0
- package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/ModulePageHost.vue.d.ts +32 -5
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +4431 -0
- package/dist/types/dynamic-page-runtime/ModulePageHostSession.vue.d.ts +43 -0
- package/dist/types/dynamic-page-runtime/ModulePageRecordContent.vue.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +20 -0
- package/dist/types/dynamic-page-runtime/ModuleReferenceRecordDetailBrowser.vue.d.ts +42 -0
- package/dist/types/dynamic-page-runtime/NavigatorPanelActions.vue.d.ts +22 -0
- package/dist/types/dynamic-page-runtime/PageNavigatorExplorer.vue.d.ts +11 -11
- package/dist/types/dynamic-page-runtime/RecordFormSurface.vue.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/TenantScopeExplorer.vue.d.ts +21 -0
- package/dist/types/dynamic-page-runtime/childAggregateContext.d.ts +11 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageActions.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/composables/useModulePageDetailActionRuntime.d.ts +5 -0
- package/dist/types/dynamic-page-runtime/composables/useNavigatorRuntime.d.ts +81 -26
- package/dist/types/dynamic-page-runtime/composables/useRecordEditingSession.d.ts +1 -1
- package/dist/types/dynamic-page-runtime/formActionResult.d.ts +7 -0
- package/dist/types/dynamic-page-runtime/formComputeCoordinator.d.ts +7 -4
- package/dist/types/dynamic-page-runtime/formValidationCoordinator.d.ts +17 -0
- package/dist/types/dynamic-page-runtime/index.d.ts +3 -1
- package/dist/types/dynamic-page-runtime/inputValidationActionStatus.d.ts +20 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +13 -3
- package/dist/types/dynamic-page-runtime/modulePageUnsavedState.d.ts +10 -0
- package/dist/types/dynamic-page-runtime/pageActionInvocation.d.ts +7 -0
- package/dist/types/dynamic-page-runtime/pageActionPlacement.d.ts +14 -0
- package/dist/types/dynamic-page-runtime/recordDetailController.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/recordMutationPayload.d.ts +4 -0
- package/dist/types/dynamic-page-runtime/referenceRecordProjection.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/sessionViewBindings.d.ts +3 -0
- package/dist/types/dynamic-page-runtime/sourceReferencePickerConfig.d.ts +26 -0
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +1728 -0
- package/dist/types/dynamic-page-runtime/useTenantScopeController.d.ts +18 -0
- package/dist/types/formula/FormulaRuntime.d.ts +6 -0
- package/dist/types/platform-admin-runtime/WorkspaceViewDrawer.vue.d.ts +5 -0
- package/dist/types/platform-admin-runtime/module-menu/ModuleMenuDrawer.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/module-menu/ModuleMenuEntriesSection.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/module-menu/moduleMenuClient.d.ts +16 -0
- package/dist/types/platform-admin-runtime/platformModulePageEnhancement.d.ts +2 -0
- package/dist/types/platform-admin-runtime/role/roleScopeSelectionClient.d.ts +52 -0
- package/dist/types/platform-components/AdaptiveHeaderActionBar.vue.d.ts +24 -0
- package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +15 -1
- package/dist/types/platform-components/CrudRecordListExplorer.vue.d.ts +11 -3
- package/dist/types/platform-components/DetailRelationListPanel.vue.d.ts +1 -1
- package/dist/types/platform-components/DictionaryOptionDialog.vue.d.ts +37 -0
- package/dist/types/platform-components/DictionaryOptionDialogChoiceList.vue.d.ts +21 -0
- package/dist/types/platform-components/DictionaryPicker.vue.d.ts +47 -0
- package/dist/types/platform-components/DictionaryRadioGroup.vue.d.ts +20 -0
- package/dist/types/platform-components/EmployeePicker.vue.d.ts +40 -0
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +1 -1
- package/dist/types/platform-components/FormulaExpressionEditor.vue.d.ts +54 -0
- package/dist/types/platform-components/ManagementExplorerColumn.vue.d.ts +15 -3
- package/dist/types/platform-components/ManagementPanelHeader.vue.d.ts +5 -3
- package/dist/types/platform-components/ManagementWorkspace.vue.d.ts +11 -0
- package/dist/types/platform-components/ModuleActionButton.vue.d.ts +3 -3
- package/dist/types/platform-components/ObjectPickerInput.vue.d.ts +34 -0
- package/dist/types/platform-components/QueryCriteriaComposer.vue.d.ts +29 -0
- package/dist/types/platform-components/QueryCriteriaGroupEditor.vue.d.ts +36 -0
- package/dist/types/platform-components/QueryGroupedSummary.vue.d.ts +21 -0
- package/dist/types/platform-components/QueryValueEditor.vue.d.ts +33 -0
- package/dist/types/platform-components/ReadonlyReferenceValue.vue.d.ts +11 -0
- package/dist/types/platform-components/RecordContentSectionHeading.vue.d.ts +4 -2
- package/dist/types/platform-components/RecordDetailDrawer.vue.d.ts +8 -3
- package/dist/types/platform-components/RecordDetailExtensionSection.vue.d.ts +9 -3
- package/dist/types/platform-components/RecordDetailFields.vue.d.ts +41 -4
- package/dist/types/platform-components/RecordDetailLayout.vue.d.ts +4 -1
- package/dist/types/platform-components/RecordDetailPanel.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordExplorerCreateButton.vue.d.ts +16 -0
- package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +16 -5
- package/dist/types/platform-components/RecordFieldLabel.vue.d.ts +16 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +24 -5
- package/dist/types/platform-components/RecordFormGrid.vue.d.ts +24 -0
- package/dist/types/platform-components/RecordListExplorer.vue.d.ts +23 -1
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +11 -3
- package/dist/types/platform-components/RecordMultiPicker.vue.d.ts +3 -3
- package/dist/types/platform-components/RecordPanelButton.vue.d.ts +9 -3
- package/dist/types/platform-components/RecordPermissionDialog.vue.d.ts +15 -0
- package/dist/types/platform-components/RecordPicker.vue.d.ts +3 -3
- package/dist/types/platform-components/RecordQueryEnumFilter.vue.d.ts +17 -0
- package/dist/types/platform-components/RecordQueryListCell.vue.d.ts +12 -0
- package/dist/types/platform-components/RecordQueryListPanel.vue.d.ts +120 -63
- package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +144 -0
- package/dist/types/platform-components/RecordRelationTable.vue.d.ts +62 -0
- package/dist/types/platform-components/RecordRelationValue.vue.d.ts +9 -0
- package/dist/types/platform-components/RecordStatusSwitch.vue.d.ts +3 -3
- package/dist/types/platform-components/ReferencePicker.vue.d.ts +47 -0
- package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +55 -0
- package/dist/types/platform-components/ScopedTreePicker.vue.d.ts +31 -0
- package/dist/types/platform-components/StaticManagementLayout.vue.d.ts +2 -0
- package/dist/types/platform-components/TreeRecordExplorer.vue.d.ts +14 -3
- package/dist/types/platform-components/UserPicker.vue.d.ts +47 -0
- package/dist/types/platform-components/adaptiveHeaderActionLayout.d.ts +22 -0
- package/dist/types/platform-components/dictionaryOptionDialogModel.d.ts +23 -0
- package/dist/types/platform-components/employeePickerModel.d.ts +19 -0
- package/dist/types/platform-components/formulaExpressionTokens.d.ts +18 -0
- package/dist/types/platform-components/identityPickerModel.d.ts +18 -0
- package/dist/types/platform-components/index.d.ts +48 -2
- package/dist/types/platform-components/managementExplorerContext.d.ts +11 -0
- package/dist/types/platform-components/managementWorkspaceContext.d.ts +20 -0
- package/dist/types/platform-components/managementWorkspaceLayout.d.ts +14 -0
- package/dist/types/platform-components/optionFieldOptionCache.d.ts +1 -1
- package/dist/types/platform-components/queryCriteriaDraft.d.ts +24 -0
- package/dist/types/platform-components/queryReferencePickerProvider.d.ts +19 -0
- package/dist/types/platform-components/readonlyReferenceDisplay.d.ts +19 -0
- package/dist/types/platform-components/recordActionBarModel.d.ts +3 -0
- package/dist/types/platform-components/recordEditorSessionState.d.ts +11 -4
- package/dist/types/platform-components/recordFormFieldModel.d.ts +28 -2
- package/dist/types/platform-components/recordQueryListColumnModel.d.ts +44 -0
- package/dist/types/platform-components/referencePickerModel.d.ts +103 -0
- package/dist/types/platform-components/referencePickerReadError.d.ts +24 -0
- package/dist/types/platform-components/referenceRecordDetailBrowser.d.ts +48 -0
- package/dist/types/platform-components/scopedTreePickerModel.d.ts +46 -0
- package/dist/types/platform-components/selectionRefresh.d.ts +9 -0
- package/dist/types/platform-components/sortPartitionKey.d.ts +5 -0
- package/dist/types/platform-components/sourceReferencePickerProvider.d.ts +26 -0
- package/dist/types/platform-components/staticCrudManagementState.d.ts +7 -6
- package/dist/types/platform-components/userPickerModel.d.ts +45 -0
- package/dist/types/platform-components/userReferencePicker.d.ts +17 -0
- package/dist/types/platform-workbench/index.d.ts +2 -0
- package/dist/types/platform-workbench/useWorkspaceViewUnsavedState.d.ts +5 -0
- package/dist/types/platform-workbench/workbenchNavigation.d.ts +5 -1
- package/dist/types/platform-workbench/workspaceViewContract.d.ts +5 -0
- package/dist/types/platform-workbench/workspaceViewHost.d.ts +5 -0
- package/dist/types/platform-workbench/workspaceViewNavigation.d.ts +9 -0
- package/dist/types/platform-workbench/workspaceViewUnsavedState.d.ts +5 -0
- package/dist/types/views/BusinessActivityLogView.vue.d.ts +3 -0
- package/dist/types/views/BusinessLogListDrawer.vue.d.ts +9 -0
- package/dist/types/views/BusinessRuleGovernanceSurface.vue.d.ts +10 -0
- package/dist/types/views/LoginAuditLogView.vue.d.ts +3 -0
- package/dist/types/views/MetadataGovernanceSurface.vue.d.ts +8 -0
- package/dist/types/views/MetadataSourceTree.vue.d.ts +44 -0
- package/dist/types/views/ModuleBusinessPreview.vue.d.ts +7 -0
- package/dist/types/views/ModuleExperienceProfileOverview.vue.d.ts +7 -0
- package/dist/types/views/ModuleGovernanceView.vue.d.ts +9 -0
- package/dist/types/views/PageCompositionDescriptorPreview.vue.d.ts +54 -0
- package/dist/types/views/PageCompositionTree.vue.d.ts +103 -0
- package/dist/types/views/PageCompositionWorkspace.vue.d.ts +7 -0
- package/dist/types/views/PageQuerySummaryEditor.vue.d.ts +48 -0
- package/dist/types/views/RequestErrorLogView.vue.d.ts +3 -0
- package/dist/types/views/RuntimeLogView.vue.d.ts +3 -0
- package/dist/types/views/businessLogClient.d.ts +85 -0
- package/dist/types/views/businessRuleGovernance.d.ts +201 -0
- package/dist/types/views/dictionaryRadioEligibility.d.ts +18 -0
- package/dist/types/views/dictionaryRadioFactRequestEpoch.d.ts +10 -0
- package/dist/types/views/metadataModelEditSession.d.ts +84 -0
- package/dist/types/views/metadataModelTree.d.ts +40 -0
- package/dist/types/views/metadataNaming.d.ts +7 -0
- package/dist/types/views/metadataOrchestrationState.d.ts +161 -6
- package/dist/types/views/metadataSourceTree.d.ts +10 -0
- package/dist/types/views/moduleGovernanceWorkspaceView.d.ts +9 -0
- package/dist/types/views/pageCompositionDraftState.d.ts +404 -0
- package/dist/types/views/pageCompositionDragPayload.d.ts +26 -0
- package/dist/types/views/pageCompositionMode.d.ts +86 -0
- package/dist/types/views/pageCompositionPlacement.d.ts +48 -0
- package/dist/types/views/pageCompositionTransport.d.ts +9 -0
- package/dist/types/views/roleDetailWorkspaceSession.d.ts +1 -0
- package/dist/types/views/roleGrantClient.d.ts +0 -1
- package/dist/types/views/runtimeLogClient.d.ts +12 -0
- package/dist/types/views/runtimeLogSse.d.ts +13 -0
- package/dist/types/views/usePageCompositionActionPreviewDrag.d.ts +41 -0
- package/dist/types/views/usePageCompositionPreviewDrag.d.ts +48 -0
- package/dist/types/vue-ui-antdv/components/UiActionButton.vue.d.ts +2 -2
- package/dist/types/vue-ui-antdv/components/UiButton.vue.d.ts +6 -3
- package/dist/types/vue-ui-antdv/components/UiDataTable.vue.d.ts +20 -2
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiPopover.vue.d.ts +22 -0
- package/dist/types/vue-ui-antdv/components/UiRecordExplorerItem.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiSearchInput.vue.d.ts +16 -2
- package/dist/types/vue-ui-antdv/components/UiSelect.vue.d.ts +28 -2
- package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +9 -2
- package/dist/types/vue-ui-antdv/components/UiSwitch.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +38 -1
- package/dist/types/vue-ui-antdv/components/UiTokenInput.vue.d.ts +62 -0
- package/dist/types/vue-ui-antdv/components/UiTree.vue.d.ts +63 -9
- package/dist/types/vue-ui-antdv/components/UiTreeSelect.vue.d.ts +24 -2
- package/dist/types/vue-ui-antdv/drawerDismissal.d.ts +18 -0
- package/dist/types/vue-ui-antdv/drawerWidth.d.ts +22 -0
- package/dist/types/vue-ui-antdv/index.d.ts +10 -1
- package/dist/types/vue-ui-antdv/treeStructure.d.ts +18 -0
- package/dist/types/vue-ui-antdv/types.d.ts +64 -0
- package/dist/types/vue-ui-antdv/useTreeLoader.d.ts +21 -0
- package/dist/types/vue-ui-antdv/useTreeMotion.d.ts +9 -0
- package/dist/types/vue-ui-antdv/useUiTreeDrag.d.ts +32 -0
- package/dist/types/web-contracts/index.d.ts +132 -12
- package/dist/types/web-core/http.d.ts +2 -0
- package/dist/types/web-core/module/index.d.ts +1 -0
- package/dist/types/web-core/module/moduleContext.d.ts +29 -1
- package/dist/types/web-core/module/pageActionEntries.d.ts +21 -0
- package/dist/types/web-core/module/runtimeContext.d.ts +10 -5
- package/dist/types/web-core/module/staticModuleClient.d.ts +30 -3
- package/dist/workspaceViews-CCg6V0pr.js +3623 -0
- package/package.json +1 -1
- package/dist/MetadataOrchestrationView-F_Bmfn9K.js +0 -661
- package/dist/ModuleActionManagementView-Db_3Twom.js +0 -597
- package/dist/RoleDetailWorkspaceView-UOm1ejGH.js +0 -1369
- package/dist/platform-components-59b4qzUL.js +0 -12489
- package/dist/types/views/metadataOrchestrationWorkspaceView.d.ts +0 -6
- package/dist/workspaceViews-BvV8mpML.js +0 -11149
package/dist/index.js
CHANGED
|
@@ -1,23 +1,1490 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { $ as
|
|
3
|
-
import {
|
|
1
|
+
import { n as e, r as t } from "./rolldown-runtime-DPVXH0ON.js";
|
|
2
|
+
import { $n as n, An as r, At as i, Bn as a, Bt as o, Cn as s, Cr as c, Ct as l, Dn as u, En as d, Et as f, F as p, Fn as m, Gn as h, Hn as g, Ht as _, In as ee, It as te, Jn as ne, Jt as re, K as v, Kn as ie, Ln as ae, Mn as oe, Mt as se, Nn as ce, Nt as le, On as ue, P as de, Pn as fe, Pt as pe, Qn as me, Qt as he, Rn as ge, Sn as _e, Sr as ve, St as ye, Tn as be, U as xe, Un as Se, Vn as Ce, Vt as we, Wn as Te, Wt as Ee, Xn as De, Xt as Oe, Yn as ke, Yt as Ae, Zn as je, Zt as Me, _n as Ne, _r as Pe, ar as Fe, bn as Ie, br as Le, cr as Re, dn as ze, dr as Be, er as Ve, fr as He, gn as Ue, gr as We, hn as Ge, hr as Ke, ht as qe, ir as Je, jn as Ye, jt as Xe, kn as Ze, kt as Qe, lr as $e, mn as et, mr as tt, nr as nt, on as y, or as rt, pn as it, pr as at, qn as ot, rn as st, rr as ct, rt as lt, sr as ut, tn as dt, tr as ft, ur as pt, vn as mt, vr as ht, vt as gt, wn as _t, wt as vt, xn as yt, xr as bt, xt, yn as St, yr as Ct, yt as wt, zn as Tt } from "./platform-components-1cvOeHmo.js";
|
|
3
|
+
import { n as Et, r as Dt, t as Ot } from "./http-B0TC0pJB.js";
|
|
4
|
+
import { C as kt, S as At, _ as jt, b as Mt, d as Nt, f as Pt, g as Ft, h as It, l as Lt, m as Rt, p as zt, u as Bt, v as Vt, y as Ht } from "./workspaceViews-CCg6V0pr.js";
|
|
5
|
+
import { $ as Ut, A as Wt, B as Gt, C as Kt, D as qt, E as Jt, F as b, G as x, H as S, I as Yt, J as Xt, K as Zt, L as Qt, M as $t, N as en, O as tn, P as nn, Q as rn, R as an, S as on, T as sn, U as cn, V as ln, W as un, X as dn, Y as fn, Z as pn, _ as mn, a as hn, at as gn, b as _n, c as vn, d as yn, et as bn, g as xn, h as Sn, i as Cn, it as wn, j as Tn, k as En, l as Dn, m as On, n as kn, nt as An, o as jn, ot as Mn, p as Nn, q as Pn, r as Fn, rt as In, s as Ln, st as Rn, t as zn, tt as Bn, u as Vn, v as Hn, w as Un, y as Wn, z as C } from "./platform-workbench-Cu14Xd9d.js";
|
|
6
|
+
import { r as Gn } from "./moduleGovernanceWorkspaceView-4V_UW-Bt.js";
|
|
7
|
+
import * as Kn from "vue";
|
|
8
|
+
import { Fragment as qn, computed as w, createBlock as T, createCommentVNode as E, createElementBlock as D, createElementVNode as O, createTextVNode as Jn, createVNode as k, defineAsyncComponent as A, defineComponent as j, normalizeClass as Yn, normalizeStyle as Xn, onBeforeUnmount as Zn, onMounted as Qn, openBlock as M, provide as $n, ref as N, renderList as er, renderSlot as tr, resolveDynamicComponent as nr, toDisplayString as P, unref as F, watch as rr, withCtx as I, withModifiers as ir } from "vue";
|
|
9
|
+
//#region node_modules/@tanstack/query-core/build/modern/subscribable.js
|
|
10
|
+
var ar = class {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
13
|
+
}
|
|
14
|
+
subscribe(e) {
|
|
15
|
+
return this.listeners.add(e), this.onSubscribe(), () => {
|
|
16
|
+
this.listeners.delete(e), this.onUnsubscribe();
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
hasListeners() {
|
|
20
|
+
return this.listeners.size > 0;
|
|
21
|
+
}
|
|
22
|
+
onSubscribe() {}
|
|
23
|
+
onUnsubscribe() {}
|
|
24
|
+
}, or = new class extends ar {
|
|
25
|
+
#e;
|
|
26
|
+
#t;
|
|
27
|
+
#n;
|
|
28
|
+
constructor() {
|
|
29
|
+
super(), this.#n = (e) => {
|
|
30
|
+
if (typeof window < "u" && window.addEventListener) {
|
|
31
|
+
let t = () => e();
|
|
32
|
+
return window.addEventListener("visibilitychange", t, !1), () => {
|
|
33
|
+
window.removeEventListener("visibilitychange", t);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
onSubscribe() {
|
|
39
|
+
this.#t || this.setEventListener(this.#n);
|
|
40
|
+
}
|
|
41
|
+
onUnsubscribe() {
|
|
42
|
+
this.hasListeners() || (this.#t?.(), this.#t = void 0);
|
|
43
|
+
}
|
|
44
|
+
setEventListener(e) {
|
|
45
|
+
this.#n = e, this.#t?.(), this.#t = e((e) => {
|
|
46
|
+
typeof e == "boolean" ? this.setFocused(e) : this.onFocus();
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
setFocused(e) {
|
|
50
|
+
this.#e !== e && (this.#e = e, this.onFocus());
|
|
51
|
+
}
|
|
52
|
+
onFocus() {
|
|
53
|
+
let e = this.isFocused();
|
|
54
|
+
this.listeners.forEach((t) => {
|
|
55
|
+
t(e);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
isFocused() {
|
|
59
|
+
return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
|
|
60
|
+
}
|
|
61
|
+
}(), sr = {
|
|
62
|
+
setTimeout: (e, t) => setTimeout(e, t),
|
|
63
|
+
clearTimeout: (e) => clearTimeout(e),
|
|
64
|
+
setInterval: (e, t) => setInterval(e, t),
|
|
65
|
+
clearInterval: (e) => clearInterval(e)
|
|
66
|
+
}, cr = new class {
|
|
67
|
+
#e = sr;
|
|
68
|
+
#t = !1;
|
|
69
|
+
setTimeoutProvider(e) {
|
|
70
|
+
process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error("[timeoutManager]: Switching provider after calls to previous provider might result in unexpected behavior.", {
|
|
71
|
+
previous: this.#e,
|
|
72
|
+
provider: e
|
|
73
|
+
}), this.#e = e, process.env.NODE_ENV !== "production" && (this.#t = !1);
|
|
74
|
+
}
|
|
75
|
+
setTimeout(e, t) {
|
|
76
|
+
return process.env.NODE_ENV !== "production" && (this.#t = !0), this.#e.setTimeout(e, t);
|
|
77
|
+
}
|
|
78
|
+
clearTimeout(e) {
|
|
79
|
+
this.#e.clearTimeout(e);
|
|
80
|
+
}
|
|
81
|
+
setInterval(e, t) {
|
|
82
|
+
return process.env.NODE_ENV !== "production" && (this.#t = !0), this.#e.setInterval(e, t);
|
|
83
|
+
}
|
|
84
|
+
clearInterval(e) {
|
|
85
|
+
this.#e.clearInterval(e);
|
|
86
|
+
}
|
|
87
|
+
}();
|
|
88
|
+
function lr(e) {
|
|
89
|
+
setTimeout(e, 0);
|
|
90
|
+
}
|
|
91
|
+
//#endregion
|
|
92
|
+
//#region node_modules/@tanstack/query-core/build/modern/utils.js
|
|
93
|
+
var ur = typeof window > "u" || "Deno" in globalThis;
|
|
94
|
+
function L() {}
|
|
95
|
+
function dr(e, t) {
|
|
96
|
+
return typeof e == "function" ? e(t) : e;
|
|
97
|
+
}
|
|
98
|
+
function fr(e) {
|
|
99
|
+
return typeof e == "number" && e >= 0 && e !== Infinity;
|
|
100
|
+
}
|
|
101
|
+
function pr(e, t) {
|
|
102
|
+
return Math.max(e + (t || 0) - Date.now(), 0);
|
|
103
|
+
}
|
|
104
|
+
function mr(e, t) {
|
|
105
|
+
return typeof e == "function" ? e(t) : e;
|
|
106
|
+
}
|
|
107
|
+
function hr(e, t) {
|
|
108
|
+
return typeof e == "function" ? e(t) : e;
|
|
109
|
+
}
|
|
110
|
+
function gr(e, t) {
|
|
111
|
+
let { type: n = "all", exact: r, fetchStatus: i, predicate: a, queryKey: o, stale: s } = e;
|
|
112
|
+
if (o) {
|
|
113
|
+
if (r) {
|
|
114
|
+
if (t.queryHash !== vr(o, t.options)) return !1;
|
|
115
|
+
} else if (!z(t.queryKey, o)) return !1;
|
|
116
|
+
}
|
|
117
|
+
if (n !== "all") {
|
|
118
|
+
let e = t.isActive();
|
|
119
|
+
if (n === "active" && !e || n === "inactive" && e) return !1;
|
|
120
|
+
}
|
|
121
|
+
return !(typeof s == "boolean" && t.isStale() !== s || i && i !== t.state.fetchStatus || a && !a(t));
|
|
122
|
+
}
|
|
123
|
+
function _r(e, t) {
|
|
124
|
+
let { exact: n, status: r, predicate: i, mutationKey: a } = e;
|
|
125
|
+
if (a) {
|
|
126
|
+
if (!t.options.mutationKey) return !1;
|
|
127
|
+
if (n) {
|
|
128
|
+
if (R(t.options.mutationKey) !== R(a)) return !1;
|
|
129
|
+
} else if (!z(t.options.mutationKey, a)) return !1;
|
|
130
|
+
}
|
|
131
|
+
return !(r && t.state.status !== r || i && !i(t));
|
|
132
|
+
}
|
|
133
|
+
function vr(e, t) {
|
|
134
|
+
return (t?.queryKeyHashFn || R)(e);
|
|
135
|
+
}
|
|
136
|
+
function R(e) {
|
|
137
|
+
return JSON.stringify(e, (e, t) => Sr(t) ? Object.keys(t).sort().reduce((e, n) => (e[n] = t[n], e), {}) : t);
|
|
138
|
+
}
|
|
139
|
+
function z(e, t) {
|
|
140
|
+
return e === t ? !0 : typeof e == typeof t && e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((n) => z(e[n], t[n])) : !1;
|
|
141
|
+
}
|
|
142
|
+
var yr = Object.prototype.hasOwnProperty;
|
|
143
|
+
function br(e, t, n = 0) {
|
|
144
|
+
if (e === t) return e;
|
|
145
|
+
if (n > 500) return t;
|
|
146
|
+
let r = xr(e) && xr(t);
|
|
147
|
+
if (!r && !(Sr(e) && Sr(t))) return t;
|
|
148
|
+
let i = (r ? e : Object.keys(e)).length, a = r ? t : Object.keys(t), o = a.length, s = r ? Array(o) : {}, c = 0;
|
|
149
|
+
for (let l = 0; l < o; l++) {
|
|
150
|
+
let o = r ? l : a[l], u = e[o], d = t[o];
|
|
151
|
+
if (u === d) {
|
|
152
|
+
s[o] = u, (r ? l < i : yr.call(e, o)) && c++;
|
|
153
|
+
continue;
|
|
154
|
+
}
|
|
155
|
+
if (u === null || d === null || typeof u != "object" || typeof d != "object") {
|
|
156
|
+
s[o] = d;
|
|
157
|
+
continue;
|
|
158
|
+
}
|
|
159
|
+
let f = br(u, d, n + 1);
|
|
160
|
+
s[o] = f, f === u && c++;
|
|
161
|
+
}
|
|
162
|
+
return i === o && c === i ? e : s;
|
|
163
|
+
}
|
|
164
|
+
function xr(e) {
|
|
165
|
+
return Array.isArray(e) && e.length === Object.keys(e).length;
|
|
166
|
+
}
|
|
167
|
+
function Sr(e) {
|
|
168
|
+
if (!Cr(e)) return !1;
|
|
169
|
+
let t = e.constructor;
|
|
170
|
+
if (t === void 0) return !0;
|
|
171
|
+
let n = t.prototype;
|
|
172
|
+
return !(!Cr(n) || !n.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
|
|
173
|
+
}
|
|
174
|
+
function Cr(e) {
|
|
175
|
+
return Object.prototype.toString.call(e) === "[object Object]";
|
|
176
|
+
}
|
|
177
|
+
function wr(e) {
|
|
178
|
+
return new Promise((t) => {
|
|
179
|
+
cr.setTimeout(t, e);
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
function Tr(e, t, n) {
|
|
183
|
+
if (typeof n.structuralSharing == "function") return n.structuralSharing(e, t);
|
|
184
|
+
if (n.structuralSharing !== !1) {
|
|
185
|
+
if (process.env.NODE_ENV !== "production") try {
|
|
186
|
+
return br(e, t);
|
|
187
|
+
} catch (e) {
|
|
188
|
+
throw console.error(`Structural sharing requires data to be JSON serializable. To fix this, turn off structuralSharing or return JSON-serializable data from your queryFn. [${n.queryHash}]: ${e}`), e;
|
|
189
|
+
}
|
|
190
|
+
return br(e, t);
|
|
191
|
+
}
|
|
192
|
+
return t;
|
|
193
|
+
}
|
|
194
|
+
function Er(e, t, n = 0) {
|
|
195
|
+
let r = [...e, t];
|
|
196
|
+
return n && r.length > n ? r.slice(1) : r;
|
|
197
|
+
}
|
|
198
|
+
function Dr(e, t, n = 0) {
|
|
199
|
+
let r = [t, ...e];
|
|
200
|
+
return n && r.length > n ? r.slice(0, -1) : r;
|
|
201
|
+
}
|
|
202
|
+
var Or = /* @__PURE__ */ Symbol();
|
|
203
|
+
function kr(e, t) {
|
|
204
|
+
return process.env.NODE_ENV !== "production" && e.queryFn === Or && console.error(`Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === Or ? () => Promise.reject(/* @__PURE__ */ Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
|
|
205
|
+
}
|
|
206
|
+
function Ar(e, t, n) {
|
|
207
|
+
let r = !1, i;
|
|
208
|
+
return Object.defineProperty(e, "signal", {
|
|
209
|
+
enumerable: !0,
|
|
210
|
+
get: () => (i ??= t(), r ? i : (r = !0, i.aborted ? n() : i.addEventListener("abort", n, { once: !0 }), i))
|
|
211
|
+
}), e;
|
|
212
|
+
}
|
|
213
|
+
//#endregion
|
|
214
|
+
//#region node_modules/@tanstack/query-core/build/modern/environmentManager.js
|
|
215
|
+
var jr = /* @__PURE__ */ (() => {
|
|
216
|
+
let e = () => ur;
|
|
217
|
+
return {
|
|
218
|
+
isServer() {
|
|
219
|
+
return e();
|
|
220
|
+
},
|
|
221
|
+
setIsServer(t) {
|
|
222
|
+
e = t;
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
})();
|
|
226
|
+
//#endregion
|
|
227
|
+
//#region node_modules/@tanstack/query-core/build/modern/thenable.js
|
|
228
|
+
function Mr() {
|
|
229
|
+
let e, t, n = new Promise((n, r) => {
|
|
230
|
+
e = n, t = r;
|
|
231
|
+
});
|
|
232
|
+
n.status = "pending", n.catch(() => {});
|
|
233
|
+
function r(e) {
|
|
234
|
+
Object.assign(n, e), delete n.resolve, delete n.reject;
|
|
235
|
+
}
|
|
236
|
+
return n.resolve = (t) => {
|
|
237
|
+
r({
|
|
238
|
+
status: "fulfilled",
|
|
239
|
+
value: t
|
|
240
|
+
}), e(t);
|
|
241
|
+
}, n.reject = (e) => {
|
|
242
|
+
r({
|
|
243
|
+
status: "rejected",
|
|
244
|
+
reason: e
|
|
245
|
+
}), t(e);
|
|
246
|
+
}, n;
|
|
247
|
+
}
|
|
248
|
+
//#endregion
|
|
249
|
+
//#region node_modules/@tanstack/query-core/build/modern/notifyManager.js
|
|
250
|
+
var Nr = lr;
|
|
251
|
+
function Pr() {
|
|
252
|
+
let e = [], t = 0, n = (e) => {
|
|
253
|
+
e();
|
|
254
|
+
}, r = (e) => {
|
|
255
|
+
e();
|
|
256
|
+
}, i = Nr, a = (r) => {
|
|
257
|
+
t ? e.push(r) : i(() => {
|
|
258
|
+
n(r);
|
|
259
|
+
});
|
|
260
|
+
}, o = () => {
|
|
261
|
+
let t = e;
|
|
262
|
+
e = [], t.length && i(() => {
|
|
263
|
+
r(() => {
|
|
264
|
+
t.forEach((e) => {
|
|
265
|
+
n(e);
|
|
266
|
+
});
|
|
267
|
+
});
|
|
268
|
+
});
|
|
269
|
+
};
|
|
270
|
+
return {
|
|
271
|
+
batch: (e) => {
|
|
272
|
+
let n;
|
|
273
|
+
t++;
|
|
274
|
+
try {
|
|
275
|
+
n = e();
|
|
276
|
+
} finally {
|
|
277
|
+
t--, t || o();
|
|
278
|
+
}
|
|
279
|
+
return n;
|
|
280
|
+
},
|
|
281
|
+
batchCalls: (e) => (...t) => {
|
|
282
|
+
a(() => {
|
|
283
|
+
e(...t);
|
|
284
|
+
});
|
|
285
|
+
},
|
|
286
|
+
schedule: a,
|
|
287
|
+
setNotifyFunction: (e) => {
|
|
288
|
+
n = e;
|
|
289
|
+
},
|
|
290
|
+
setBatchNotifyFunction: (e) => {
|
|
291
|
+
r = e;
|
|
292
|
+
},
|
|
293
|
+
setScheduler: (e) => {
|
|
294
|
+
i = e;
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
var B = Pr(), V = new class extends ar {
|
|
299
|
+
#e = !0;
|
|
300
|
+
#t;
|
|
301
|
+
#n;
|
|
302
|
+
constructor() {
|
|
303
|
+
super(), this.#n = (e) => {
|
|
304
|
+
if (typeof window < "u" && window.addEventListener) {
|
|
305
|
+
let t = () => e(!0), n = () => e(!1);
|
|
306
|
+
return window.addEventListener("online", t, !1), window.addEventListener("offline", n, !1), () => {
|
|
307
|
+
window.removeEventListener("online", t), window.removeEventListener("offline", n);
|
|
308
|
+
};
|
|
309
|
+
}
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
onSubscribe() {
|
|
313
|
+
this.#t || this.setEventListener(this.#n);
|
|
314
|
+
}
|
|
315
|
+
onUnsubscribe() {
|
|
316
|
+
this.hasListeners() || (this.#t?.(), this.#t = void 0);
|
|
317
|
+
}
|
|
318
|
+
setEventListener(e) {
|
|
319
|
+
this.#n = e, this.#t?.(), this.#t = e(this.setOnline.bind(this));
|
|
320
|
+
}
|
|
321
|
+
setOnline(e) {
|
|
322
|
+
this.#e !== e && (this.#e = e, this.listeners.forEach((t) => {
|
|
323
|
+
t(e);
|
|
324
|
+
}));
|
|
325
|
+
}
|
|
326
|
+
isOnline() {
|
|
327
|
+
return this.#e;
|
|
328
|
+
}
|
|
329
|
+
}();
|
|
330
|
+
//#endregion
|
|
331
|
+
//#region node_modules/@tanstack/query-core/build/modern/retryer.js
|
|
332
|
+
function Fr(e) {
|
|
333
|
+
return Math.min(1e3 * 2 ** e, 3e4);
|
|
334
|
+
}
|
|
335
|
+
function Ir(e) {
|
|
336
|
+
return (e ?? "online") !== "online" || V.isOnline();
|
|
337
|
+
}
|
|
338
|
+
var Lr = class extends Error {
|
|
339
|
+
constructor(e) {
|
|
340
|
+
super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
function Rr(e) {
|
|
344
|
+
let t = !1, n = 0, r, i = Mr(), a = () => i.status !== "pending", o = (t) => {
|
|
345
|
+
if (!a()) {
|
|
346
|
+
let n = new Lr(t);
|
|
347
|
+
f(n), e.onCancel?.(n);
|
|
348
|
+
}
|
|
349
|
+
}, s = () => {
|
|
350
|
+
t = !0;
|
|
351
|
+
}, c = () => {
|
|
352
|
+
t = !1;
|
|
353
|
+
}, l = () => or.isFocused() && (e.networkMode === "always" || V.isOnline()) && e.canRun(), u = () => Ir(e.networkMode) && e.canRun(), d = (e) => {
|
|
354
|
+
a() || (r?.(), i.resolve(e));
|
|
355
|
+
}, f = (e) => {
|
|
356
|
+
a() || (r?.(), i.reject(e));
|
|
357
|
+
}, p = () => new Promise((t) => {
|
|
358
|
+
r = (e) => {
|
|
359
|
+
(a() || l()) && t(e);
|
|
360
|
+
}, e.onPause?.();
|
|
361
|
+
}).then(() => {
|
|
362
|
+
r = void 0, a() || e.onContinue?.();
|
|
363
|
+
}), m = () => {
|
|
364
|
+
if (a()) return;
|
|
365
|
+
let r, i = n === 0 ? e.initialPromise : void 0;
|
|
366
|
+
try {
|
|
367
|
+
r = i ?? e.fn();
|
|
368
|
+
} catch (e) {
|
|
369
|
+
r = Promise.reject(e);
|
|
370
|
+
}
|
|
371
|
+
Promise.resolve(r).then(d).catch((r) => {
|
|
372
|
+
if (a()) return;
|
|
373
|
+
let i = e.retry ?? (jr.isServer() ? 0 : 3), o = e.retryDelay ?? Fr, s = typeof o == "function" ? o(n, r) : o, c = i === !0 || typeof i == "number" && n < i || typeof i == "function" && i(n, r);
|
|
374
|
+
if (t || !c) {
|
|
375
|
+
f(r);
|
|
376
|
+
return;
|
|
377
|
+
}
|
|
378
|
+
n++, e.onFail?.(n, r), wr(s).then(() => l() ? void 0 : p()).then(() => {
|
|
379
|
+
t ? f(r) : m();
|
|
380
|
+
});
|
|
381
|
+
});
|
|
382
|
+
};
|
|
383
|
+
return {
|
|
384
|
+
promise: i,
|
|
385
|
+
status: () => i.status,
|
|
386
|
+
cancel: o,
|
|
387
|
+
continue: () => (r?.(), i),
|
|
388
|
+
cancelRetry: s,
|
|
389
|
+
continueRetry: c,
|
|
390
|
+
canStart: u,
|
|
391
|
+
start: () => (u() ? m() : p().then(m), i)
|
|
392
|
+
};
|
|
393
|
+
}
|
|
394
|
+
//#endregion
|
|
395
|
+
//#region node_modules/@tanstack/query-core/build/modern/removable.js
|
|
396
|
+
var zr = class {
|
|
397
|
+
#e;
|
|
398
|
+
destroy() {
|
|
399
|
+
this.clearGcTimeout();
|
|
400
|
+
}
|
|
401
|
+
scheduleGc() {
|
|
402
|
+
this.clearGcTimeout(), fr(this.gcTime) && (this.#e = cr.setTimeout(() => {
|
|
403
|
+
this.optionalRemove();
|
|
404
|
+
}, this.gcTime));
|
|
405
|
+
}
|
|
406
|
+
updateGcTime(e) {
|
|
407
|
+
this.gcTime = Math.max(this.gcTime || 0, e ?? (jr.isServer() ? Infinity : 3e5));
|
|
408
|
+
}
|
|
409
|
+
clearGcTimeout() {
|
|
410
|
+
this.#e !== void 0 && (cr.clearTimeout(this.#e), this.#e = void 0);
|
|
411
|
+
}
|
|
412
|
+
};
|
|
413
|
+
//#endregion
|
|
414
|
+
//#region node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
|
|
415
|
+
function Br(e) {
|
|
416
|
+
return { onFetch: (t, n) => {
|
|
417
|
+
let r = t.options, i = t.fetchOptions?.meta?.fetchMore?.direction, a = t.state.data?.pages || [], o = t.state.data?.pageParams || [], s = {
|
|
418
|
+
pages: [],
|
|
419
|
+
pageParams: []
|
|
420
|
+
}, c = 0, l = async () => {
|
|
421
|
+
let n = !1, l = (e) => {
|
|
422
|
+
Ar(e, () => t.signal, () => n = !0);
|
|
423
|
+
}, u = kr(t.options, t.fetchOptions), d = async (e, r, i) => {
|
|
424
|
+
if (n) return Promise.reject(t.signal.reason);
|
|
425
|
+
if (r == null && e.pages.length) return Promise.resolve(e);
|
|
426
|
+
let a = (() => {
|
|
427
|
+
let e = {
|
|
428
|
+
client: t.client,
|
|
429
|
+
queryKey: t.queryKey,
|
|
430
|
+
pageParam: r,
|
|
431
|
+
direction: i ? "backward" : "forward",
|
|
432
|
+
meta: t.options.meta
|
|
433
|
+
};
|
|
434
|
+
return l(e), e;
|
|
435
|
+
})(), o = await u(a), { maxPages: s } = t.options, c = i ? Dr : Er;
|
|
436
|
+
return {
|
|
437
|
+
pages: c(e.pages, o, s),
|
|
438
|
+
pageParams: c(e.pageParams, r, s)
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
if (i && a.length) {
|
|
442
|
+
let e = i === "backward", t = e ? Hr : Vr, n = {
|
|
443
|
+
pages: a,
|
|
444
|
+
pageParams: o
|
|
445
|
+
};
|
|
446
|
+
s = await d(n, t(r, n), e);
|
|
447
|
+
} else {
|
|
448
|
+
let t = e ?? a.length;
|
|
449
|
+
do {
|
|
450
|
+
let e = c === 0 ? o[0] ?? r.initialPageParam : Vr(r, s);
|
|
451
|
+
if (c > 0 && e == null) break;
|
|
452
|
+
s = await d(s, e), c++;
|
|
453
|
+
} while (c < t);
|
|
454
|
+
}
|
|
455
|
+
return s;
|
|
456
|
+
};
|
|
457
|
+
t.fetchFn = t.options.persister ? () => t.options.persister?.(l, {
|
|
458
|
+
client: t.client,
|
|
459
|
+
queryKey: t.queryKey,
|
|
460
|
+
meta: t.options.meta,
|
|
461
|
+
signal: t.signal
|
|
462
|
+
}, n) : l;
|
|
463
|
+
} };
|
|
464
|
+
}
|
|
465
|
+
function Vr(e, { pages: t, pageParams: n }) {
|
|
466
|
+
let r = t.length - 1;
|
|
467
|
+
return t.length > 0 ? e.getNextPageParam(t[r], t, n[r], n) : void 0;
|
|
468
|
+
}
|
|
469
|
+
function Hr(e, { pages: t, pageParams: n }) {
|
|
470
|
+
return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, n[0], n) : void 0;
|
|
471
|
+
}
|
|
472
|
+
//#endregion
|
|
473
|
+
//#region node_modules/@tanstack/query-core/build/modern/query.js
|
|
474
|
+
var Ur = class extends zr {
|
|
475
|
+
#e;
|
|
476
|
+
#t;
|
|
477
|
+
#n;
|
|
478
|
+
#r;
|
|
479
|
+
#i;
|
|
480
|
+
#a;
|
|
481
|
+
#o;
|
|
482
|
+
#s;
|
|
483
|
+
constructor(e) {
|
|
484
|
+
super(), this.#s = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#i = e.client, this.#r = this.#i.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#t = Kr(this.options), this.state = e.state ?? this.#t, this.scheduleGc();
|
|
485
|
+
}
|
|
486
|
+
get meta() {
|
|
487
|
+
return this.options.meta;
|
|
488
|
+
}
|
|
489
|
+
get queryType() {
|
|
490
|
+
return this.#e;
|
|
491
|
+
}
|
|
492
|
+
get promise() {
|
|
493
|
+
return this.#a?.promise;
|
|
494
|
+
}
|
|
495
|
+
setOptions(e) {
|
|
496
|
+
if (this.options = {
|
|
497
|
+
...this.#o,
|
|
498
|
+
...e
|
|
499
|
+
}, e?._type && (this.#e = e._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
500
|
+
let e = Kr(this.options);
|
|
501
|
+
e.data !== void 0 && (this.setState(Gr(e.data, e.dataUpdatedAt)), this.#t = e);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
optionalRemove() {
|
|
505
|
+
!this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
|
|
506
|
+
}
|
|
507
|
+
setData(e, t) {
|
|
508
|
+
let n = Tr(this.state.data, e, this.options);
|
|
509
|
+
return this.#l({
|
|
510
|
+
data: n,
|
|
511
|
+
type: "success",
|
|
512
|
+
dataUpdatedAt: t?.updatedAt,
|
|
513
|
+
manual: t?.manual
|
|
514
|
+
}), n;
|
|
515
|
+
}
|
|
516
|
+
setState(e) {
|
|
517
|
+
this.#l({
|
|
518
|
+
type: "setState",
|
|
519
|
+
state: e
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
cancel(e) {
|
|
523
|
+
let t = this.#a?.promise;
|
|
524
|
+
return this.#a?.cancel(e), t ? t.then(L).catch(L) : Promise.resolve();
|
|
525
|
+
}
|
|
526
|
+
destroy() {
|
|
527
|
+
super.destroy(), this.cancel({ silent: !0 });
|
|
528
|
+
}
|
|
529
|
+
get resetState() {
|
|
530
|
+
return this.#t;
|
|
531
|
+
}
|
|
532
|
+
reset() {
|
|
533
|
+
this.destroy(), this.setState(this.resetState);
|
|
534
|
+
}
|
|
535
|
+
isActive() {
|
|
536
|
+
return this.observers.some((e) => hr(e.options.enabled, this) !== !1);
|
|
537
|
+
}
|
|
538
|
+
isDisabled() {
|
|
539
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === Or || !this.isFetched();
|
|
540
|
+
}
|
|
541
|
+
isFetched() {
|
|
542
|
+
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
543
|
+
}
|
|
544
|
+
isStatic() {
|
|
545
|
+
return this.getObserversCount() > 0 && this.observers.some((e) => mr(e.options.staleTime, this) === "static");
|
|
546
|
+
}
|
|
547
|
+
isStale() {
|
|
548
|
+
return this.getObserversCount() > 0 ? this.observers.some((e) => e.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
|
|
549
|
+
}
|
|
550
|
+
isStaleByTime(e = 0) {
|
|
551
|
+
return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !pr(this.state.dataUpdatedAt, e);
|
|
552
|
+
}
|
|
553
|
+
onFocus() {
|
|
554
|
+
this.observers.find((e) => e.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
|
|
555
|
+
}
|
|
556
|
+
onOnline() {
|
|
557
|
+
this.observers.find((e) => e.shouldFetchOnReconnect())?.refetch({ cancelRefetch: !1 }), this.#a?.continue();
|
|
558
|
+
}
|
|
559
|
+
addObserver(e) {
|
|
560
|
+
this.observers.includes(e) || (this.observers.push(e), this.clearGcTimeout(), this.#r.notify({
|
|
561
|
+
type: "observerAdded",
|
|
562
|
+
query: this,
|
|
563
|
+
observer: e
|
|
564
|
+
}));
|
|
565
|
+
}
|
|
566
|
+
removeObserver(e) {
|
|
567
|
+
this.observers.includes(e) && (this.observers = this.observers.filter((t) => t !== e), this.observers.length || (this.#a && (this.#s || this.#c() ? this.#a.cancel({ revert: !0 }) : this.#a.cancelRetry()), this.scheduleGc()), this.#r.notify({
|
|
568
|
+
type: "observerRemoved",
|
|
569
|
+
query: this,
|
|
570
|
+
observer: e
|
|
571
|
+
}));
|
|
572
|
+
}
|
|
573
|
+
getObserversCount() {
|
|
574
|
+
return this.observers.length;
|
|
575
|
+
}
|
|
576
|
+
#c() {
|
|
577
|
+
return this.state.fetchStatus === "paused" && this.state.status === "pending";
|
|
578
|
+
}
|
|
579
|
+
invalidate() {
|
|
580
|
+
this.state.isInvalidated || this.#l({ type: "invalidate" });
|
|
581
|
+
}
|
|
582
|
+
async fetch(e, t) {
|
|
583
|
+
if (this.state.fetchStatus !== "idle" && this.#a?.status() !== "rejected") {
|
|
584
|
+
if (this.state.data !== void 0 && t?.cancelRefetch) this.cancel({ silent: !0 });
|
|
585
|
+
else if (this.#a) return this.#a.continueRetry(), this.#a.promise;
|
|
586
|
+
}
|
|
587
|
+
if (e && this.setOptions(e), !this.options.queryFn) {
|
|
588
|
+
let e = this.observers.find((e) => e.options.queryFn);
|
|
589
|
+
e && this.setOptions(e.options);
|
|
590
|
+
}
|
|
591
|
+
process.env.NODE_ENV !== "production" && (Array.isArray(this.options.queryKey) || console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));
|
|
592
|
+
let n = new AbortController(), r = (e) => {
|
|
593
|
+
Object.defineProperty(e, "signal", {
|
|
594
|
+
enumerable: !0,
|
|
595
|
+
get: () => (this.#s = !0, n.signal)
|
|
596
|
+
});
|
|
597
|
+
}, i = () => {
|
|
598
|
+
let e = kr(this.options, t), n = (() => {
|
|
599
|
+
let e = {
|
|
600
|
+
client: this.#i,
|
|
601
|
+
queryKey: this.queryKey,
|
|
602
|
+
meta: this.meta
|
|
603
|
+
};
|
|
604
|
+
return r(e), e;
|
|
605
|
+
})();
|
|
606
|
+
return this.#s = !1, this.options.persister ? this.options.persister(e, n, this) : e(n);
|
|
607
|
+
}, a = (() => {
|
|
608
|
+
let e = {
|
|
609
|
+
fetchOptions: t,
|
|
610
|
+
options: this.options,
|
|
611
|
+
queryKey: this.queryKey,
|
|
612
|
+
client: this.#i,
|
|
613
|
+
state: this.state,
|
|
614
|
+
fetchFn: i
|
|
615
|
+
};
|
|
616
|
+
return r(e), e;
|
|
617
|
+
})();
|
|
618
|
+
(this.#e === "infinite" ? Br(this.options.pages) : this.options.behavior)?.onFetch(a, this), this.#n = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== a.fetchOptions?.meta) && this.#l({
|
|
619
|
+
type: "fetch",
|
|
620
|
+
meta: a.fetchOptions?.meta
|
|
621
|
+
}), this.#a = Rr({
|
|
622
|
+
initialPromise: t?.initialPromise,
|
|
623
|
+
fn: a.fetchFn,
|
|
624
|
+
onCancel: (e) => {
|
|
625
|
+
e instanceof Lr && e.revert && this.setState({
|
|
626
|
+
...this.#n,
|
|
627
|
+
fetchStatus: "idle"
|
|
628
|
+
}), n.abort();
|
|
629
|
+
},
|
|
630
|
+
onFail: (e, t) => {
|
|
631
|
+
this.#l({
|
|
632
|
+
type: "failed",
|
|
633
|
+
failureCount: e,
|
|
634
|
+
error: t
|
|
635
|
+
});
|
|
636
|
+
},
|
|
637
|
+
onPause: () => {
|
|
638
|
+
this.#l({ type: "pause" });
|
|
639
|
+
},
|
|
640
|
+
onContinue: () => {
|
|
641
|
+
this.#l({ type: "continue" });
|
|
642
|
+
},
|
|
643
|
+
retry: a.options.retry,
|
|
644
|
+
retryDelay: a.options.retryDelay,
|
|
645
|
+
networkMode: a.options.networkMode,
|
|
646
|
+
canRun: () => !0
|
|
647
|
+
});
|
|
648
|
+
try {
|
|
649
|
+
let e = await this.#a.start();
|
|
650
|
+
if (e === void 0) throw process.env.NODE_ENV !== "production" && console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`), Error(`${this.queryHash} data is undefined`);
|
|
651
|
+
return this.setData(e), this.#r.config.onSuccess?.(e, this), this.#r.config.onSettled?.(e, this.state.error, this), e;
|
|
652
|
+
} catch (e) {
|
|
653
|
+
if (e instanceof Lr) {
|
|
654
|
+
if (e.silent) return this.#a.promise;
|
|
655
|
+
if (e.revert) {
|
|
656
|
+
if (this.state.data === void 0) throw e;
|
|
657
|
+
return this.state.data;
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
throw this.#l({
|
|
661
|
+
type: "error",
|
|
662
|
+
error: e
|
|
663
|
+
}), this.#r.config.onError?.(e, this), this.#r.config.onSettled?.(this.state.data, e, this), e;
|
|
664
|
+
} finally {
|
|
665
|
+
this.scheduleGc();
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
#l(e) {
|
|
669
|
+
let t = (t) => {
|
|
670
|
+
switch (e.type) {
|
|
671
|
+
case "failed": return {
|
|
672
|
+
...t,
|
|
673
|
+
fetchFailureCount: e.failureCount,
|
|
674
|
+
fetchFailureReason: e.error
|
|
675
|
+
};
|
|
676
|
+
case "pause": return {
|
|
677
|
+
...t,
|
|
678
|
+
fetchStatus: "paused"
|
|
679
|
+
};
|
|
680
|
+
case "continue": return {
|
|
681
|
+
...t,
|
|
682
|
+
fetchStatus: "fetching"
|
|
683
|
+
};
|
|
684
|
+
case "fetch": return {
|
|
685
|
+
...t,
|
|
686
|
+
...Wr(t.data, this.options),
|
|
687
|
+
fetchMeta: e.meta ?? null
|
|
688
|
+
};
|
|
689
|
+
case "success":
|
|
690
|
+
let n = {
|
|
691
|
+
...t,
|
|
692
|
+
...Gr(e.data, e.dataUpdatedAt),
|
|
693
|
+
dataUpdateCount: t.dataUpdateCount + 1,
|
|
694
|
+
...!e.manual && {
|
|
695
|
+
fetchStatus: "idle",
|
|
696
|
+
fetchFailureCount: 0,
|
|
697
|
+
fetchFailureReason: null
|
|
698
|
+
}
|
|
699
|
+
};
|
|
700
|
+
return this.#n = e.manual ? n : void 0, n;
|
|
701
|
+
case "error":
|
|
702
|
+
let r = e.error;
|
|
703
|
+
return {
|
|
704
|
+
...t,
|
|
705
|
+
error: r,
|
|
706
|
+
errorUpdateCount: t.errorUpdateCount + 1,
|
|
707
|
+
errorUpdatedAt: Date.now(),
|
|
708
|
+
fetchFailureCount: t.fetchFailureCount + 1,
|
|
709
|
+
fetchFailureReason: r,
|
|
710
|
+
fetchStatus: "idle",
|
|
711
|
+
status: "error",
|
|
712
|
+
isInvalidated: !0
|
|
713
|
+
};
|
|
714
|
+
case "invalidate": return {
|
|
715
|
+
...t,
|
|
716
|
+
isInvalidated: !0
|
|
717
|
+
};
|
|
718
|
+
case "setState": return {
|
|
719
|
+
...t,
|
|
720
|
+
...e.state
|
|
721
|
+
};
|
|
722
|
+
}
|
|
723
|
+
};
|
|
724
|
+
this.state = t(this.state), B.batch(() => {
|
|
725
|
+
this.observers.forEach((e) => {
|
|
726
|
+
e.onQueryUpdate();
|
|
727
|
+
}), this.#r.notify({
|
|
728
|
+
query: this,
|
|
729
|
+
type: "updated",
|
|
730
|
+
action: e
|
|
731
|
+
});
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
};
|
|
735
|
+
function Wr(e, t) {
|
|
736
|
+
return {
|
|
737
|
+
fetchFailureCount: 0,
|
|
738
|
+
fetchFailureReason: null,
|
|
739
|
+
fetchStatus: Ir(t.networkMode) ? "fetching" : "paused",
|
|
740
|
+
...e === void 0 && {
|
|
741
|
+
error: null,
|
|
742
|
+
status: "pending"
|
|
743
|
+
}
|
|
744
|
+
};
|
|
745
|
+
}
|
|
746
|
+
function Gr(e, t) {
|
|
747
|
+
return {
|
|
748
|
+
data: e,
|
|
749
|
+
dataUpdatedAt: t ?? Date.now(),
|
|
750
|
+
error: null,
|
|
751
|
+
isInvalidated: !1,
|
|
752
|
+
status: "success"
|
|
753
|
+
};
|
|
754
|
+
}
|
|
755
|
+
function Kr(e) {
|
|
756
|
+
let t = typeof e.initialData == "function" ? e.initialData() : e.initialData, n = t !== void 0, r = n ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
|
|
757
|
+
return {
|
|
758
|
+
data: t,
|
|
759
|
+
dataUpdateCount: 0,
|
|
760
|
+
dataUpdatedAt: n ? r ?? Date.now() : 0,
|
|
761
|
+
error: null,
|
|
762
|
+
errorUpdateCount: 0,
|
|
763
|
+
errorUpdatedAt: 0,
|
|
764
|
+
fetchFailureCount: 0,
|
|
765
|
+
fetchFailureReason: null,
|
|
766
|
+
fetchMeta: null,
|
|
767
|
+
isInvalidated: !1,
|
|
768
|
+
status: n ? "success" : "pending",
|
|
769
|
+
fetchStatus: "idle"
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
//#endregion
|
|
773
|
+
//#region node_modules/@tanstack/query-core/build/modern/mutation.js
|
|
774
|
+
var qr = class extends zr {
|
|
775
|
+
#e;
|
|
776
|
+
#t;
|
|
777
|
+
#n;
|
|
778
|
+
#r;
|
|
779
|
+
constructor(e) {
|
|
780
|
+
super(), this.#e = e.client, this.mutationId = e.mutationId, this.#n = e.mutationCache, this.#t = [], this.state = e.state || Jr(), this.setOptions(e.options), this.scheduleGc();
|
|
781
|
+
}
|
|
782
|
+
setOptions(e) {
|
|
783
|
+
this.options = e, this.updateGcTime(this.options.gcTime);
|
|
784
|
+
}
|
|
785
|
+
get meta() {
|
|
786
|
+
return this.options.meta;
|
|
787
|
+
}
|
|
788
|
+
addObserver(e) {
|
|
789
|
+
this.#t.includes(e) || (this.#t.push(e), this.clearGcTimeout(), this.#n.notify({
|
|
790
|
+
type: "observerAdded",
|
|
791
|
+
mutation: this,
|
|
792
|
+
observer: e
|
|
793
|
+
}));
|
|
794
|
+
}
|
|
795
|
+
removeObserver(e) {
|
|
796
|
+
this.#t = this.#t.filter((t) => t !== e), this.scheduleGc(), this.#n.notify({
|
|
797
|
+
type: "observerRemoved",
|
|
798
|
+
mutation: this,
|
|
799
|
+
observer: e
|
|
800
|
+
});
|
|
801
|
+
}
|
|
802
|
+
optionalRemove() {
|
|
803
|
+
this.#t.length || (this.state.status === "pending" ? this.scheduleGc() : this.#n.remove(this));
|
|
804
|
+
}
|
|
805
|
+
continue() {
|
|
806
|
+
return this.#r?.continue() ?? this.execute(this.state.variables);
|
|
807
|
+
}
|
|
808
|
+
async execute(e) {
|
|
809
|
+
let t = () => {
|
|
810
|
+
this.#i({ type: "continue" });
|
|
811
|
+
}, n = {
|
|
812
|
+
client: this.#e,
|
|
813
|
+
meta: this.options.meta,
|
|
814
|
+
mutationKey: this.options.mutationKey
|
|
815
|
+
};
|
|
816
|
+
this.#r = Rr({
|
|
817
|
+
fn: () => this.options.mutationFn ? this.options.mutationFn(e, n) : Promise.reject(/* @__PURE__ */ Error("No mutationFn found")),
|
|
818
|
+
onFail: (e, t) => {
|
|
819
|
+
this.#i({
|
|
820
|
+
type: "failed",
|
|
821
|
+
failureCount: e,
|
|
822
|
+
error: t
|
|
823
|
+
});
|
|
824
|
+
},
|
|
825
|
+
onPause: () => {
|
|
826
|
+
this.#i({ type: "pause" });
|
|
827
|
+
},
|
|
828
|
+
onContinue: t,
|
|
829
|
+
retry: this.options.retry ?? 0,
|
|
830
|
+
retryDelay: this.options.retryDelay,
|
|
831
|
+
networkMode: this.options.networkMode,
|
|
832
|
+
canRun: () => this.#n.canRun(this)
|
|
833
|
+
});
|
|
834
|
+
let r = this.state.status === "pending", i = !this.#r.canStart();
|
|
835
|
+
try {
|
|
836
|
+
if (r) t();
|
|
837
|
+
else {
|
|
838
|
+
this.#i({
|
|
839
|
+
type: "pending",
|
|
840
|
+
variables: e,
|
|
841
|
+
isPaused: i
|
|
842
|
+
}), this.#n.config.onMutate && await this.#n.config.onMutate(e, this, n);
|
|
843
|
+
let t = await this.options.onMutate?.(e, n);
|
|
844
|
+
t !== this.state.context && this.#i({
|
|
845
|
+
type: "pending",
|
|
846
|
+
context: t,
|
|
847
|
+
variables: e,
|
|
848
|
+
isPaused: i
|
|
849
|
+
});
|
|
850
|
+
}
|
|
851
|
+
let a = await this.#r.start();
|
|
852
|
+
return await this.#n.config.onSuccess?.(a, e, this.state.context, this, n), await this.options.onSuccess?.(a, e, this.state.context, n), await this.#n.config.onSettled?.(a, null, this.state.variables, this.state.context, this, n), await this.options.onSettled?.(a, null, e, this.state.context, n), this.#i({
|
|
853
|
+
type: "success",
|
|
854
|
+
data: a
|
|
855
|
+
}), a;
|
|
856
|
+
} catch (t) {
|
|
857
|
+
try {
|
|
858
|
+
await this.#n.config.onError?.(t, e, this.state.context, this, n);
|
|
859
|
+
} catch (e) {
|
|
860
|
+
Promise.reject(e);
|
|
861
|
+
}
|
|
862
|
+
try {
|
|
863
|
+
await this.options.onError?.(t, e, this.state.context, n);
|
|
864
|
+
} catch (e) {
|
|
865
|
+
Promise.reject(e);
|
|
866
|
+
}
|
|
867
|
+
try {
|
|
868
|
+
await this.#n.config.onSettled?.(void 0, t, this.state.variables, this.state.context, this, n);
|
|
869
|
+
} catch (e) {
|
|
870
|
+
Promise.reject(e);
|
|
871
|
+
}
|
|
872
|
+
try {
|
|
873
|
+
await this.options.onSettled?.(void 0, t, e, this.state.context, n);
|
|
874
|
+
} catch (e) {
|
|
875
|
+
Promise.reject(e);
|
|
876
|
+
}
|
|
877
|
+
throw this.#i({
|
|
878
|
+
type: "error",
|
|
879
|
+
error: t
|
|
880
|
+
}), t;
|
|
881
|
+
} finally {
|
|
882
|
+
this.#n.runNext(this);
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
#i(e) {
|
|
886
|
+
let t = (t) => {
|
|
887
|
+
switch (e.type) {
|
|
888
|
+
case "failed": return {
|
|
889
|
+
...t,
|
|
890
|
+
failureCount: e.failureCount,
|
|
891
|
+
failureReason: e.error
|
|
892
|
+
};
|
|
893
|
+
case "pause": return {
|
|
894
|
+
...t,
|
|
895
|
+
isPaused: !0
|
|
896
|
+
};
|
|
897
|
+
case "continue": return {
|
|
898
|
+
...t,
|
|
899
|
+
isPaused: !1
|
|
900
|
+
};
|
|
901
|
+
case "pending": return {
|
|
902
|
+
...t,
|
|
903
|
+
context: e.context,
|
|
904
|
+
data: void 0,
|
|
905
|
+
failureCount: 0,
|
|
906
|
+
failureReason: null,
|
|
907
|
+
error: null,
|
|
908
|
+
isPaused: e.isPaused,
|
|
909
|
+
status: "pending",
|
|
910
|
+
variables: e.variables,
|
|
911
|
+
submittedAt: Date.now()
|
|
912
|
+
};
|
|
913
|
+
case "success": return {
|
|
914
|
+
...t,
|
|
915
|
+
data: e.data,
|
|
916
|
+
failureCount: 0,
|
|
917
|
+
failureReason: null,
|
|
918
|
+
error: null,
|
|
919
|
+
status: "success",
|
|
920
|
+
isPaused: !1
|
|
921
|
+
};
|
|
922
|
+
case "error": return {
|
|
923
|
+
...t,
|
|
924
|
+
data: void 0,
|
|
925
|
+
error: e.error,
|
|
926
|
+
failureCount: t.failureCount + 1,
|
|
927
|
+
failureReason: e.error,
|
|
928
|
+
isPaused: !1,
|
|
929
|
+
status: "error"
|
|
930
|
+
};
|
|
931
|
+
}
|
|
932
|
+
};
|
|
933
|
+
this.state = t(this.state), B.batch(() => {
|
|
934
|
+
this.#t.forEach((t) => {
|
|
935
|
+
t.onMutationUpdate(e);
|
|
936
|
+
}), this.#n.notify({
|
|
937
|
+
mutation: this,
|
|
938
|
+
type: "updated",
|
|
939
|
+
action: e
|
|
940
|
+
});
|
|
941
|
+
});
|
|
942
|
+
}
|
|
943
|
+
};
|
|
944
|
+
function Jr() {
|
|
945
|
+
return {
|
|
946
|
+
context: void 0,
|
|
947
|
+
data: void 0,
|
|
948
|
+
error: null,
|
|
949
|
+
failureCount: 0,
|
|
950
|
+
failureReason: null,
|
|
951
|
+
isPaused: !1,
|
|
952
|
+
status: "idle",
|
|
953
|
+
variables: void 0,
|
|
954
|
+
submittedAt: 0
|
|
955
|
+
};
|
|
956
|
+
}
|
|
957
|
+
//#endregion
|
|
958
|
+
//#region node_modules/@tanstack/query-core/build/modern/mutationCache.js
|
|
959
|
+
var Yr = class extends ar {
|
|
960
|
+
constructor(e = {}) {
|
|
961
|
+
super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
962
|
+
}
|
|
963
|
+
#e;
|
|
964
|
+
#t;
|
|
965
|
+
#n;
|
|
966
|
+
build(e, t, n) {
|
|
967
|
+
let r = new qr({
|
|
968
|
+
client: e,
|
|
969
|
+
mutationCache: this,
|
|
970
|
+
mutationId: ++this.#n,
|
|
971
|
+
options: e.defaultMutationOptions(t),
|
|
972
|
+
state: n
|
|
973
|
+
});
|
|
974
|
+
return this.add(r), r;
|
|
975
|
+
}
|
|
976
|
+
add(e) {
|
|
977
|
+
this.#e.add(e);
|
|
978
|
+
let t = Xr(e);
|
|
979
|
+
if (typeof t == "string") {
|
|
980
|
+
let n = this.#t.get(t);
|
|
981
|
+
n ? n.push(e) : this.#t.set(t, [e]);
|
|
982
|
+
}
|
|
983
|
+
this.notify({
|
|
984
|
+
type: "added",
|
|
985
|
+
mutation: e
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
remove(e) {
|
|
989
|
+
if (this.#e.delete(e)) {
|
|
990
|
+
let t = Xr(e);
|
|
991
|
+
if (typeof t == "string") {
|
|
992
|
+
let n = this.#t.get(t);
|
|
993
|
+
if (n) {
|
|
994
|
+
if (n.length > 1) {
|
|
995
|
+
let t = n.indexOf(e);
|
|
996
|
+
t !== -1 && n.splice(t, 1);
|
|
997
|
+
} else n[0] === e && this.#t.delete(t);
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
this.notify({
|
|
1002
|
+
type: "removed",
|
|
1003
|
+
mutation: e
|
|
1004
|
+
});
|
|
1005
|
+
}
|
|
1006
|
+
canRun(e) {
|
|
1007
|
+
let t = Xr(e);
|
|
1008
|
+
if (typeof t == "string") {
|
|
1009
|
+
let n = this.#t.get(t)?.find((e) => e.state.status === "pending");
|
|
1010
|
+
return !n || n === e;
|
|
1011
|
+
}
|
|
1012
|
+
return !0;
|
|
1013
|
+
}
|
|
1014
|
+
runNext(e) {
|
|
1015
|
+
let t = Xr(e);
|
|
1016
|
+
return typeof t == "string" ? (this.#t.get(t)?.find((t) => t !== e && t.state.isPaused))?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
1017
|
+
}
|
|
1018
|
+
clear() {
|
|
1019
|
+
B.batch(() => {
|
|
1020
|
+
this.#e.forEach((e) => {
|
|
1021
|
+
this.notify({
|
|
1022
|
+
type: "removed",
|
|
1023
|
+
mutation: e
|
|
1024
|
+
});
|
|
1025
|
+
}), this.#e.clear(), this.#t.clear();
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
1028
|
+
getAll() {
|
|
1029
|
+
return Array.from(this.#e);
|
|
1030
|
+
}
|
|
1031
|
+
find(e) {
|
|
1032
|
+
let t = {
|
|
1033
|
+
exact: !0,
|
|
1034
|
+
...e
|
|
1035
|
+
};
|
|
1036
|
+
return this.getAll().find((e) => _r(t, e));
|
|
1037
|
+
}
|
|
1038
|
+
findAll(e = {}) {
|
|
1039
|
+
return this.getAll().filter((t) => _r(e, t));
|
|
1040
|
+
}
|
|
1041
|
+
notify(e) {
|
|
1042
|
+
B.batch(() => {
|
|
1043
|
+
this.listeners.forEach((t) => {
|
|
1044
|
+
t(e);
|
|
1045
|
+
});
|
|
1046
|
+
});
|
|
1047
|
+
}
|
|
1048
|
+
resumePausedMutations() {
|
|
1049
|
+
let e = this.getAll().filter((e) => e.state.isPaused);
|
|
1050
|
+
return B.batch(() => Promise.all(e.map((e) => e.continue().catch(L))));
|
|
1051
|
+
}
|
|
1052
|
+
};
|
|
1053
|
+
function Xr(e) {
|
|
1054
|
+
return e.options.scope?.id;
|
|
1055
|
+
}
|
|
1056
|
+
//#endregion
|
|
1057
|
+
//#region node_modules/@tanstack/query-core/build/modern/queryCache.js
|
|
1058
|
+
var Zr = class extends ar {
|
|
1059
|
+
constructor(e = {}) {
|
|
1060
|
+
super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
|
|
1061
|
+
}
|
|
1062
|
+
#e;
|
|
1063
|
+
build(e, t, n) {
|
|
1064
|
+
let r = t.queryKey, i = t.queryHash ?? vr(r, t), a = this.get(i);
|
|
1065
|
+
return a || (a = new Ur({
|
|
1066
|
+
client: e,
|
|
1067
|
+
queryKey: r,
|
|
1068
|
+
queryHash: i,
|
|
1069
|
+
options: e.defaultQueryOptions(t),
|
|
1070
|
+
state: n,
|
|
1071
|
+
defaultOptions: e.getQueryDefaults(r)
|
|
1072
|
+
}), this.add(a)), a;
|
|
1073
|
+
}
|
|
1074
|
+
add(e) {
|
|
1075
|
+
this.#e.has(e.queryHash) || (this.#e.set(e.queryHash, e), this.notify({
|
|
1076
|
+
type: "added",
|
|
1077
|
+
query: e
|
|
1078
|
+
}));
|
|
1079
|
+
}
|
|
1080
|
+
remove(e) {
|
|
1081
|
+
let t = this.#e.get(e.queryHash);
|
|
1082
|
+
t && (e.destroy(), t === e && this.#e.delete(e.queryHash), this.notify({
|
|
1083
|
+
type: "removed",
|
|
1084
|
+
query: e
|
|
1085
|
+
}));
|
|
1086
|
+
}
|
|
1087
|
+
clear() {
|
|
1088
|
+
B.batch(() => {
|
|
1089
|
+
this.getAll().forEach((e) => {
|
|
1090
|
+
this.remove(e);
|
|
1091
|
+
});
|
|
1092
|
+
});
|
|
1093
|
+
}
|
|
1094
|
+
get(e) {
|
|
1095
|
+
return this.#e.get(e);
|
|
1096
|
+
}
|
|
1097
|
+
getAll() {
|
|
1098
|
+
return [...this.#e.values()];
|
|
1099
|
+
}
|
|
1100
|
+
find(e) {
|
|
1101
|
+
let t = {
|
|
1102
|
+
exact: !0,
|
|
1103
|
+
...e
|
|
1104
|
+
};
|
|
1105
|
+
return this.getAll().find((e) => gr(t, e));
|
|
1106
|
+
}
|
|
1107
|
+
findAll(e = {}) {
|
|
1108
|
+
let t = this.getAll();
|
|
1109
|
+
return Object.keys(e).length > 0 ? t.filter((t) => gr(e, t)) : t;
|
|
1110
|
+
}
|
|
1111
|
+
notify(e) {
|
|
1112
|
+
B.batch(() => {
|
|
1113
|
+
this.listeners.forEach((t) => {
|
|
1114
|
+
t(e);
|
|
1115
|
+
});
|
|
1116
|
+
});
|
|
1117
|
+
}
|
|
1118
|
+
onFocus() {
|
|
1119
|
+
B.batch(() => {
|
|
1120
|
+
this.getAll().forEach((e) => {
|
|
1121
|
+
e.onFocus();
|
|
1122
|
+
});
|
|
1123
|
+
});
|
|
1124
|
+
}
|
|
1125
|
+
onOnline() {
|
|
1126
|
+
B.batch(() => {
|
|
1127
|
+
this.getAll().forEach((e) => {
|
|
1128
|
+
e.onOnline();
|
|
1129
|
+
});
|
|
1130
|
+
});
|
|
1131
|
+
}
|
|
1132
|
+
}, Qr = class {
|
|
1133
|
+
#e;
|
|
1134
|
+
#t;
|
|
1135
|
+
#n;
|
|
1136
|
+
#r;
|
|
1137
|
+
#i;
|
|
1138
|
+
#a;
|
|
1139
|
+
#o;
|
|
1140
|
+
#s;
|
|
1141
|
+
constructor(e = {}) {
|
|
1142
|
+
this.#e = e.queryCache || new Zr(), this.#t = e.mutationCache || new Yr(), this.#n = e.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
|
|
1143
|
+
}
|
|
1144
|
+
mount() {
|
|
1145
|
+
this.#a++, this.#a === 1 && (this.#o = or.subscribe(async (e) => {
|
|
1146
|
+
e && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
1147
|
+
}), this.#s = V.subscribe(async (e) => {
|
|
1148
|
+
e && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
1149
|
+
}));
|
|
1150
|
+
}
|
|
1151
|
+
unmount() {
|
|
1152
|
+
this.#a--, this.#a === 0 && (this.#o?.(), this.#o = void 0, this.#s?.(), this.#s = void 0);
|
|
1153
|
+
}
|
|
1154
|
+
isFetching(e) {
|
|
1155
|
+
return this.#e.findAll({
|
|
1156
|
+
...e,
|
|
1157
|
+
fetchStatus: "fetching"
|
|
1158
|
+
}).length;
|
|
1159
|
+
}
|
|
1160
|
+
isMutating(e) {
|
|
1161
|
+
return this.#t.findAll({
|
|
1162
|
+
...e,
|
|
1163
|
+
status: "pending"
|
|
1164
|
+
}).length;
|
|
1165
|
+
}
|
|
1166
|
+
getQueryData(e) {
|
|
1167
|
+
let t = this.defaultQueryOptions({ queryKey: e });
|
|
1168
|
+
return this.#e.get(t.queryHash)?.state.data;
|
|
1169
|
+
}
|
|
1170
|
+
ensureQueryData(e) {
|
|
1171
|
+
let t = this.defaultQueryOptions(e), n = this.#e.build(this, t), r = n.state.data;
|
|
1172
|
+
return r === void 0 ? this.fetchQuery(e) : (e.revalidateIfStale && n.isStaleByTime(mr(t.staleTime, n)) && this.prefetchQuery(t), Promise.resolve(r));
|
|
1173
|
+
}
|
|
1174
|
+
getQueriesData(e) {
|
|
1175
|
+
return this.#e.findAll(e).map(({ queryKey: e, state: t }) => [e, t.data]);
|
|
1176
|
+
}
|
|
1177
|
+
setQueryData(e, t, n) {
|
|
1178
|
+
let r = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(r.queryHash)?.state.data, a = dr(t, i);
|
|
1179
|
+
if (a !== void 0) return this.#e.build(this, r).setData(a, {
|
|
1180
|
+
...n,
|
|
1181
|
+
manual: !0
|
|
1182
|
+
});
|
|
1183
|
+
}
|
|
1184
|
+
setQueriesData(e, t, n) {
|
|
1185
|
+
return B.batch(() => this.#e.findAll(e).map(({ queryKey: e }) => [e, this.setQueryData(e, t, n)]));
|
|
1186
|
+
}
|
|
1187
|
+
getQueryState(e) {
|
|
1188
|
+
let t = this.defaultQueryOptions({ queryKey: e });
|
|
1189
|
+
return this.#e.get(t.queryHash)?.state;
|
|
1190
|
+
}
|
|
1191
|
+
removeQueries(e) {
|
|
1192
|
+
let t = this.#e;
|
|
1193
|
+
B.batch(() => {
|
|
1194
|
+
t.findAll(e).forEach((e) => {
|
|
1195
|
+
t.remove(e);
|
|
1196
|
+
});
|
|
1197
|
+
});
|
|
1198
|
+
}
|
|
1199
|
+
resetQueries(e, t) {
|
|
1200
|
+
let n = this.#e;
|
|
1201
|
+
return B.batch(() => (n.findAll(e).forEach((e) => {
|
|
1202
|
+
e.reset();
|
|
1203
|
+
}), this.refetchQueries({
|
|
1204
|
+
type: "active",
|
|
1205
|
+
...e
|
|
1206
|
+
}, t)));
|
|
1207
|
+
}
|
|
1208
|
+
cancelQueries(e, t = {}) {
|
|
1209
|
+
let n = {
|
|
1210
|
+
revert: !0,
|
|
1211
|
+
...t
|
|
1212
|
+
}, r = B.batch(() => this.#e.findAll(e).map((e) => e.cancel(n)));
|
|
1213
|
+
return Promise.all(r).then(L).catch(L);
|
|
1214
|
+
}
|
|
1215
|
+
invalidateQueries(e, t = {}) {
|
|
1216
|
+
return B.batch(() => (this.#e.findAll(e).forEach((e) => {
|
|
1217
|
+
e.invalidate();
|
|
1218
|
+
}), e?.refetchType === "none" ? Promise.resolve() : this.refetchQueries({
|
|
1219
|
+
...e,
|
|
1220
|
+
type: e?.refetchType ?? e?.type ?? "active"
|
|
1221
|
+
}, t)));
|
|
1222
|
+
}
|
|
1223
|
+
refetchQueries(e, t = {}) {
|
|
1224
|
+
let n = {
|
|
1225
|
+
...t,
|
|
1226
|
+
cancelRefetch: t.cancelRefetch ?? !0
|
|
1227
|
+
}, r = B.batch(() => this.#e.findAll(e).filter((e) => !e.isDisabled() && !e.isStatic()).map((e) => {
|
|
1228
|
+
let t = e.fetch(void 0, n);
|
|
1229
|
+
return n.throwOnError || (t = t.catch(L)), e.state.fetchStatus === "paused" ? Promise.resolve() : t;
|
|
1230
|
+
}));
|
|
1231
|
+
return Promise.all(r).then(L);
|
|
1232
|
+
}
|
|
1233
|
+
fetchQuery(e) {
|
|
1234
|
+
let t = this.defaultQueryOptions(e);
|
|
1235
|
+
t.retry === void 0 && (t.retry = !1);
|
|
1236
|
+
let n = this.#e.build(this, t);
|
|
1237
|
+
return n.isStaleByTime(mr(t.staleTime, n)) ? n.fetch(t) : Promise.resolve(n.state.data);
|
|
1238
|
+
}
|
|
1239
|
+
prefetchQuery(e) {
|
|
1240
|
+
return this.fetchQuery(e).then(L).catch(L);
|
|
1241
|
+
}
|
|
1242
|
+
fetchInfiniteQuery(e) {
|
|
1243
|
+
return e._type = "infinite", this.fetchQuery(e);
|
|
1244
|
+
}
|
|
1245
|
+
prefetchInfiniteQuery(e) {
|
|
1246
|
+
return this.fetchInfiniteQuery(e).then(L).catch(L);
|
|
1247
|
+
}
|
|
1248
|
+
ensureInfiniteQueryData(e) {
|
|
1249
|
+
return e._type = "infinite", this.ensureQueryData(e);
|
|
1250
|
+
}
|
|
1251
|
+
resumePausedMutations() {
|
|
1252
|
+
return V.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
1253
|
+
}
|
|
1254
|
+
getQueryCache() {
|
|
1255
|
+
return this.#e;
|
|
1256
|
+
}
|
|
1257
|
+
getMutationCache() {
|
|
1258
|
+
return this.#t;
|
|
1259
|
+
}
|
|
1260
|
+
getDefaultOptions() {
|
|
1261
|
+
return this.#n;
|
|
1262
|
+
}
|
|
1263
|
+
setDefaultOptions(e) {
|
|
1264
|
+
this.#n = e;
|
|
1265
|
+
}
|
|
1266
|
+
setQueryDefaults(e, t) {
|
|
1267
|
+
this.#r.set(R(e), {
|
|
1268
|
+
queryKey: e,
|
|
1269
|
+
defaultOptions: t
|
|
1270
|
+
});
|
|
1271
|
+
}
|
|
1272
|
+
getQueryDefaults(e) {
|
|
1273
|
+
let t = [...this.#r.values()], n = {};
|
|
1274
|
+
return t.forEach((t) => {
|
|
1275
|
+
z(e, t.queryKey) && Object.assign(n, t.defaultOptions);
|
|
1276
|
+
}), n;
|
|
1277
|
+
}
|
|
1278
|
+
setMutationDefaults(e, t) {
|
|
1279
|
+
this.#i.set(R(e), {
|
|
1280
|
+
mutationKey: e,
|
|
1281
|
+
defaultOptions: t
|
|
1282
|
+
});
|
|
1283
|
+
}
|
|
1284
|
+
getMutationDefaults(e) {
|
|
1285
|
+
let t = [...this.#i.values()], n = {};
|
|
1286
|
+
return t.forEach((t) => {
|
|
1287
|
+
z(e, t.mutationKey) && Object.assign(n, t.defaultOptions);
|
|
1288
|
+
}), n;
|
|
1289
|
+
}
|
|
1290
|
+
defaultQueryOptions(e) {
|
|
1291
|
+
if (e._defaulted) return e;
|
|
1292
|
+
let t = {
|
|
1293
|
+
...this.#n.queries,
|
|
1294
|
+
...this.getQueryDefaults(e.queryKey),
|
|
1295
|
+
...e,
|
|
1296
|
+
_defaulted: !0
|
|
1297
|
+
};
|
|
1298
|
+
return t.queryHash ||= vr(t.queryKey, t), t.refetchOnReconnect === void 0 && (t.refetchOnReconnect = t.networkMode !== "always"), t.throwOnError === void 0 && (t.throwOnError = !!t.suspense), !t.networkMode && t.persister && (t.networkMode = "offlineFirst"), t.queryFn === Or && (t.enabled = !1), t;
|
|
1299
|
+
}
|
|
1300
|
+
defaultMutationOptions(e) {
|
|
1301
|
+
return e?._defaulted ? e : {
|
|
1302
|
+
...this.#n.mutations,
|
|
1303
|
+
...e?.mutationKey && this.getMutationDefaults(e.mutationKey),
|
|
1304
|
+
...e,
|
|
1305
|
+
_defaulted: !0
|
|
1306
|
+
};
|
|
1307
|
+
}
|
|
1308
|
+
clear() {
|
|
1309
|
+
this.#e.clear(), this.#t.clear();
|
|
1310
|
+
}
|
|
1311
|
+
}, H = /* @__PURE__ */ e({
|
|
1312
|
+
Vue: () => Kn,
|
|
1313
|
+
Vue2: () => void 0,
|
|
1314
|
+
del: () => ni,
|
|
1315
|
+
install: () => ei,
|
|
1316
|
+
isVue2: () => !1,
|
|
1317
|
+
isVue3: () => !0,
|
|
1318
|
+
set: () => ti
|
|
1319
|
+
});
|
|
1320
|
+
import * as $r from "vue";
|
|
1321
|
+
t(H, $r);
|
|
1322
|
+
function ei() {}
|
|
1323
|
+
function ti(e, t, n) {
|
|
1324
|
+
return Array.isArray(e) ? (e.length = Math.max(e.length, t), e.splice(t, 1, n), n) : (e[t] = n, n);
|
|
1325
|
+
}
|
|
1326
|
+
function ni(e, t) {
|
|
1327
|
+
if (Array.isArray(e)) {
|
|
1328
|
+
e.splice(t, 1);
|
|
1329
|
+
return;
|
|
1330
|
+
}
|
|
1331
|
+
delete e[t];
|
|
1332
|
+
}
|
|
1333
|
+
//#endregion
|
|
1334
|
+
//#region node_modules/@tanstack/vue-query/build/modern/utils.js
|
|
1335
|
+
var ri = "VUE_QUERY_CLIENT";
|
|
1336
|
+
function ii(e) {
|
|
1337
|
+
return `${ri}${e ? `:${e}` : ""}`;
|
|
1338
|
+
}
|
|
1339
|
+
function ai(e, t, n = "", r = 0) {
|
|
1340
|
+
if (t) {
|
|
1341
|
+
let i = t(e, n, r);
|
|
1342
|
+
if (i === void 0 && (0, H.isRef)(e) || i !== void 0) return i;
|
|
1343
|
+
}
|
|
1344
|
+
if (Array.isArray(e)) return e.map((e, n) => ai(e, t, String(n), r + 1));
|
|
1345
|
+
if (typeof e == "object" && si(e)) {
|
|
1346
|
+
let n = Object.entries(e).map(([e, n]) => [e, ai(n, t, e, r + 1)]);
|
|
1347
|
+
return Object.fromEntries(n);
|
|
1348
|
+
}
|
|
1349
|
+
return e;
|
|
1350
|
+
}
|
|
1351
|
+
function oi(e, t) {
|
|
1352
|
+
return ai(e, t);
|
|
1353
|
+
}
|
|
1354
|
+
function U(e, t = !1) {
|
|
1355
|
+
return oi(e, (e, n, r) => {
|
|
1356
|
+
if (r === 1 && n === "queryKey") return U(e, !0);
|
|
1357
|
+
if (t && ci(e)) return U(e(), t);
|
|
1358
|
+
if ((0, H.isRef)(e)) return U((0, H.unref)(e), t);
|
|
1359
|
+
});
|
|
1360
|
+
}
|
|
1361
|
+
function si(e) {
|
|
1362
|
+
if (Object.prototype.toString.call(e) !== "[object Object]") return !1;
|
|
1363
|
+
let t = Object.getPrototypeOf(e);
|
|
1364
|
+
return t === null || t === Object.prototype;
|
|
1365
|
+
}
|
|
1366
|
+
function ci(e) {
|
|
1367
|
+
return typeof e == "function";
|
|
1368
|
+
}
|
|
1369
|
+
//#endregion
|
|
1370
|
+
//#region node_modules/@tanstack/vue-query/build/modern/queryCache.js
|
|
1371
|
+
var li = class extends Zr {
|
|
1372
|
+
find(e) {
|
|
1373
|
+
return super.find(U(e));
|
|
1374
|
+
}
|
|
1375
|
+
findAll(e = {}) {
|
|
1376
|
+
return super.findAll(U(e));
|
|
1377
|
+
}
|
|
1378
|
+
}, ui = class extends Yr {
|
|
1379
|
+
find(e) {
|
|
1380
|
+
return super.find(U(e));
|
|
1381
|
+
}
|
|
1382
|
+
findAll(e = {}) {
|
|
1383
|
+
return super.findAll(U(e));
|
|
1384
|
+
}
|
|
1385
|
+
}, di = class extends Qr {
|
|
1386
|
+
constructor(e = {}) {
|
|
1387
|
+
let t = {
|
|
1388
|
+
defaultOptions: e.defaultOptions,
|
|
1389
|
+
queryCache: e.queryCache || new li(),
|
|
1390
|
+
mutationCache: e.mutationCache || new ui()
|
|
1391
|
+
};
|
|
1392
|
+
super(t), this.isRestoring = (0, H.ref)(!1);
|
|
1393
|
+
}
|
|
1394
|
+
isFetching(e = {}) {
|
|
1395
|
+
return super.isFetching(U(e));
|
|
1396
|
+
}
|
|
1397
|
+
isMutating(e = {}) {
|
|
1398
|
+
return super.isMutating(U(e));
|
|
1399
|
+
}
|
|
1400
|
+
getQueryData(e) {
|
|
1401
|
+
return super.getQueryData(U(e));
|
|
1402
|
+
}
|
|
1403
|
+
ensureQueryData(e) {
|
|
1404
|
+
return super.ensureQueryData(U(e));
|
|
1405
|
+
}
|
|
1406
|
+
getQueriesData(e) {
|
|
1407
|
+
return super.getQueriesData(U(e));
|
|
1408
|
+
}
|
|
1409
|
+
setQueryData(e, t, n = {}) {
|
|
1410
|
+
return super.setQueryData(U(e), t, U(n));
|
|
1411
|
+
}
|
|
1412
|
+
setQueriesData(e, t, n = {}) {
|
|
1413
|
+
return super.setQueriesData(U(e), t, U(n));
|
|
1414
|
+
}
|
|
1415
|
+
getQueryState(e) {
|
|
1416
|
+
return super.getQueryState(U(e));
|
|
1417
|
+
}
|
|
1418
|
+
removeQueries(e = {}) {
|
|
1419
|
+
return super.removeQueries(U(e));
|
|
1420
|
+
}
|
|
1421
|
+
resetQueries(e = {}, t = {}) {
|
|
1422
|
+
return super.resetQueries(U(e), U(t));
|
|
1423
|
+
}
|
|
1424
|
+
cancelQueries(e = {}, t = {}) {
|
|
1425
|
+
return super.cancelQueries(U(e), U(t));
|
|
1426
|
+
}
|
|
1427
|
+
invalidateQueries(e = {}, t = {}) {
|
|
1428
|
+
let n = U(e), r = U(t);
|
|
1429
|
+
if (super.invalidateQueries({
|
|
1430
|
+
...n,
|
|
1431
|
+
refetchType: "none"
|
|
1432
|
+
}, r), n.refetchType === "none") return Promise.resolve();
|
|
1433
|
+
let i = {
|
|
1434
|
+
...n,
|
|
1435
|
+
type: n.refetchType ?? n.type ?? "active"
|
|
1436
|
+
};
|
|
1437
|
+
return (0, H.nextTick)().then(() => super.refetchQueries(i, r));
|
|
1438
|
+
}
|
|
1439
|
+
refetchQueries(e = {}, t = {}) {
|
|
1440
|
+
return super.refetchQueries(U(e), U(t));
|
|
1441
|
+
}
|
|
1442
|
+
fetchQuery(e) {
|
|
1443
|
+
return super.fetchQuery(U(e));
|
|
1444
|
+
}
|
|
1445
|
+
prefetchQuery(e) {
|
|
1446
|
+
return super.prefetchQuery(U(e));
|
|
1447
|
+
}
|
|
1448
|
+
fetchInfiniteQuery(e) {
|
|
1449
|
+
return super.fetchInfiniteQuery(U(e));
|
|
1450
|
+
}
|
|
1451
|
+
prefetchInfiniteQuery(e) {
|
|
1452
|
+
return super.prefetchInfiniteQuery(U(e));
|
|
1453
|
+
}
|
|
1454
|
+
setDefaultOptions(e) {
|
|
1455
|
+
super.setDefaultOptions(U(e));
|
|
1456
|
+
}
|
|
1457
|
+
setQueryDefaults(e, t) {
|
|
1458
|
+
super.setQueryDefaults(U(e), U(t));
|
|
1459
|
+
}
|
|
1460
|
+
getQueryDefaults(e) {
|
|
1461
|
+
return super.getQueryDefaults(U(e));
|
|
1462
|
+
}
|
|
1463
|
+
setMutationDefaults(e, t) {
|
|
1464
|
+
super.setMutationDefaults(U(e), U(t));
|
|
1465
|
+
}
|
|
1466
|
+
getMutationDefaults(e) {
|
|
1467
|
+
return super.getMutationDefaults(U(e));
|
|
1468
|
+
}
|
|
1469
|
+
};
|
|
1470
|
+
//#endregion
|
|
4
1471
|
//#region node_modules/@vue/devtools-api/lib/esm/env.js
|
|
5
|
-
function
|
|
6
|
-
return
|
|
1472
|
+
function fi() {
|
|
1473
|
+
return pi().__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
|
7
1474
|
}
|
|
8
|
-
function
|
|
1475
|
+
function pi() {
|
|
9
1476
|
return typeof navigator < "u" && typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : {};
|
|
10
1477
|
}
|
|
11
|
-
var
|
|
12
|
-
function
|
|
13
|
-
return
|
|
1478
|
+
var mi = typeof Proxy == "function", hi = "devtools-plugin:setup", gi = "plugin:settings:set", W, _i;
|
|
1479
|
+
function vi() {
|
|
1480
|
+
return W === void 0 && (typeof window < "u" && window.performance ? (W = !0, _i = window.performance) : typeof globalThis < "u" && globalThis.perf_hooks?.performance ? (W = !0, _i = globalThis.perf_hooks.performance) : W = !1), W;
|
|
14
1481
|
}
|
|
15
|
-
function
|
|
16
|
-
return
|
|
1482
|
+
function yi() {
|
|
1483
|
+
return vi() ? _i.now() : Date.now();
|
|
17
1484
|
}
|
|
18
1485
|
//#endregion
|
|
19
1486
|
//#region node_modules/@vue/devtools-api/lib/esm/proxy.js
|
|
20
|
-
var
|
|
1487
|
+
var bi = class {
|
|
21
1488
|
constructor(e, t) {
|
|
22
1489
|
this.target = null, this.targetQueue = [], this.onQueue = [], this.plugin = e, this.hook = t;
|
|
23
1490
|
let n = {};
|
|
@@ -38,9 +1505,9 @@ var nr = class {
|
|
|
38
1505
|
i = e;
|
|
39
1506
|
},
|
|
40
1507
|
now() {
|
|
41
|
-
return
|
|
1508
|
+
return yi();
|
|
42
1509
|
}
|
|
43
|
-
}, t && t.on(
|
|
1510
|
+
}, t && t.on(gi, (e, t) => {
|
|
44
1511
|
e === this.plugin.id && this.fallbacks.setSettings(t);
|
|
45
1512
|
}), this.proxiedOn = new Proxy({}, { get: (e, t) => this.target ? this.target.on[t] : (...e) => {
|
|
46
1513
|
this.onQueue.push({
|
|
@@ -67,11 +1534,11 @@ var nr = class {
|
|
|
67
1534
|
};
|
|
68
1535
|
//#endregion
|
|
69
1536
|
//#region node_modules/@vue/devtools-api/lib/esm/index.js
|
|
70
|
-
function
|
|
71
|
-
let n = e, r =
|
|
72
|
-
if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(
|
|
1537
|
+
function xi(e, t) {
|
|
1538
|
+
let n = e, r = pi(), i = fi(), a = mi && n.enableEarlyProxy;
|
|
1539
|
+
if (i && (r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__ || !a)) i.emit(hi, e, t);
|
|
73
1540
|
else {
|
|
74
|
-
let e = a ? new
|
|
1541
|
+
let e = a ? new bi(n, i) : null;
|
|
75
1542
|
(r.__VUE_DEVTOOLS_PLUGINS__ = r.__VUE_DEVTOOLS_PLUGINS__ || []).push({
|
|
76
1543
|
pluginDescriptor: n,
|
|
77
1544
|
setupFn: t,
|
|
@@ -81,7 +1548,7 @@ function rr(e, t) {
|
|
|
81
1548
|
}
|
|
82
1549
|
//#endregion
|
|
83
1550
|
//#region node_modules/@tanstack/match-sorter-utils/build/lib/index.mjs
|
|
84
|
-
var
|
|
1551
|
+
var Si = {
|
|
85
1552
|
À: "A",
|
|
86
1553
|
Á: "A",
|
|
87
1554
|
Â: "A",
|
|
@@ -481,11 +1948,11 @@ var ir = {
|
|
|
481
1948
|
x̧: "x",
|
|
482
1949
|
Z̧: "Z",
|
|
483
1950
|
z̧: "z"
|
|
484
|
-
},
|
|
485
|
-
function
|
|
486
|
-
return e.replace(
|
|
1951
|
+
}, Ci = Object.keys(Si).join("|"), wi = new RegExp(Ci, "g");
|
|
1952
|
+
function Ti(e) {
|
|
1953
|
+
return e.replace(wi, (e) => Si[e]);
|
|
487
1954
|
}
|
|
488
|
-
var
|
|
1955
|
+
var G = {
|
|
489
1956
|
CASE_SENSITIVE_EQUAL: 7,
|
|
490
1957
|
EQUAL: 6,
|
|
491
1958
|
STARTS_WITH: 5,
|
|
@@ -495,9 +1962,9 @@ var U = {
|
|
|
495
1962
|
MATCHES: 1,
|
|
496
1963
|
NO_MATCH: 0
|
|
497
1964
|
};
|
|
498
|
-
function
|
|
499
|
-
if (n ||= {}, n.threshold = n.threshold ??
|
|
500
|
-
let r =
|
|
1965
|
+
function Ei(e, t, n) {
|
|
1966
|
+
if (n ||= {}, n.threshold = n.threshold ?? G.MATCHES, !n.accessors) {
|
|
1967
|
+
let r = Di(e, t, n);
|
|
501
1968
|
return {
|
|
502
1969
|
rankedValue: e,
|
|
503
1970
|
rank: r,
|
|
@@ -506,23 +1973,23 @@ function cr(e, t, n) {
|
|
|
506
1973
|
passed: r >= n.threshold
|
|
507
1974
|
};
|
|
508
1975
|
}
|
|
509
|
-
let r =
|
|
1976
|
+
let r = Mi(e, n.accessors), i = {
|
|
510
1977
|
rankedValue: e,
|
|
511
|
-
rank:
|
|
1978
|
+
rank: G.NO_MATCH,
|
|
512
1979
|
accessorIndex: -1,
|
|
513
1980
|
accessorThreshold: n.threshold,
|
|
514
1981
|
passed: !1
|
|
515
1982
|
};
|
|
516
1983
|
for (let e = 0; e < r.length; e++) {
|
|
517
|
-
let a = r[e], o =
|
|
518
|
-
o < s && o >=
|
|
1984
|
+
let a = r[e], o = Di(a.itemValue, t, n), { minRanking: s, maxRanking: c, threshold: l = n.threshold } = a.attributes;
|
|
1985
|
+
o < s && o >= G.MATCHES ? o = s : o > c && (o = c), o = Math.min(o, c), o >= l && o > i.rank && (i.rank = o, i.passed = !0, i.accessorIndex = e, i.accessorThreshold = l, i.rankedValue = a.itemValue);
|
|
519
1986
|
}
|
|
520
1987
|
return i;
|
|
521
1988
|
}
|
|
522
|
-
function
|
|
523
|
-
return e =
|
|
1989
|
+
function Di(e, t, n) {
|
|
1990
|
+
return e = Ai(e, n), t = Ai(t, n), t.length > e.length ? G.NO_MATCH : e === t ? G.CASE_SENSITIVE_EQUAL : (e = e.toLowerCase(), t = t.toLowerCase(), e === t ? G.EQUAL : e.startsWith(t) ? G.STARTS_WITH : e.includes(` ${t}`) ? G.WORD_STARTS_WITH : e.includes(t) ? G.CONTAINS : t.length === 1 ? G.NO_MATCH : Oi(e).includes(t) ? G.ACRONYM : ki(e, t));
|
|
524
1991
|
}
|
|
525
|
-
function
|
|
1992
|
+
function Oi(e) {
|
|
526
1993
|
let t = "";
|
|
527
1994
|
return e.split(" ").forEach((e) => {
|
|
528
1995
|
e.split("-").forEach((e) => {
|
|
@@ -530,7 +1997,7 @@ function ur(e) {
|
|
|
530
1997
|
});
|
|
531
1998
|
}), t;
|
|
532
1999
|
}
|
|
533
|
-
function
|
|
2000
|
+
function ki(e, t) {
|
|
534
2001
|
let n = 0, r = 0;
|
|
535
2002
|
function i(e, t, r) {
|
|
536
2003
|
for (let i = r, a = t.length; i < a; i++) if (t[i] === e) return n += 1, i + 1;
|
|
@@ -538,31 +2005,31 @@ function dr(e, t) {
|
|
|
538
2005
|
}
|
|
539
2006
|
function a(e) {
|
|
540
2007
|
let r = 1 / e, i = n / t.length;
|
|
541
|
-
return
|
|
2008
|
+
return G.MATCHES + i * r;
|
|
542
2009
|
}
|
|
543
2010
|
let o = i(t[0], e, 0);
|
|
544
|
-
if (o < 0) return
|
|
2011
|
+
if (o < 0) return G.NO_MATCH;
|
|
545
2012
|
r = o;
|
|
546
2013
|
for (let n = 1, a = t.length; n < a; n++) {
|
|
547
2014
|
let a = t[n];
|
|
548
|
-
if (r = i(a, e, r), !(r > -1)) return
|
|
2015
|
+
if (r = i(a, e, r), !(r > -1)) return G.NO_MATCH;
|
|
549
2016
|
}
|
|
550
2017
|
return a(r - o);
|
|
551
2018
|
}
|
|
552
|
-
function
|
|
2019
|
+
function Ai(e, t) {
|
|
553
2020
|
let { keepDiacritics: n } = t;
|
|
554
|
-
return e = `${e}`, n || (e =
|
|
2021
|
+
return e = `${e}`, n || (e = Ti(e)), e;
|
|
555
2022
|
}
|
|
556
|
-
function
|
|
2023
|
+
function ji(e, t) {
|
|
557
2024
|
let n = t;
|
|
558
2025
|
typeof t == "object" && (n = t.accessor);
|
|
559
2026
|
let r = n(e);
|
|
560
2027
|
return r == null ? [] : Array.isArray(r) ? r : [String(r)];
|
|
561
2028
|
}
|
|
562
|
-
function
|
|
2029
|
+
function Mi(e, t) {
|
|
563
2030
|
let n = [];
|
|
564
2031
|
for (let r = 0, i = t.length; r < i; r++) {
|
|
565
|
-
let i = t[r], a =
|
|
2032
|
+
let i = t[r], a = Pi(i), o = ji(e, i);
|
|
566
2033
|
for (let e = 0, t = o.length; e < t; e++) n.push({
|
|
567
2034
|
itemValue: o[e],
|
|
568
2035
|
attributes: a
|
|
@@ -570,41 +2037,41 @@ function mr(e, t) {
|
|
|
570
2037
|
}
|
|
571
2038
|
return n;
|
|
572
2039
|
}
|
|
573
|
-
var
|
|
2040
|
+
var Ni = {
|
|
574
2041
|
maxRanking: Infinity,
|
|
575
2042
|
minRanking: -Infinity
|
|
576
2043
|
};
|
|
577
|
-
function
|
|
578
|
-
return typeof e == "function" ?
|
|
579
|
-
...
|
|
2044
|
+
function Pi(e) {
|
|
2045
|
+
return typeof e == "function" ? Ni : {
|
|
2046
|
+
...Ni,
|
|
580
2047
|
...e
|
|
581
2048
|
};
|
|
582
2049
|
}
|
|
583
2050
|
//#endregion
|
|
584
2051
|
//#region node_modules/@tanstack/vue-query/build/modern/devtools/utils.js
|
|
585
|
-
function
|
|
2052
|
+
function K(e) {
|
|
586
2053
|
return e.state.fetchStatus === "fetching" ? 0 : e.state.fetchStatus === "paused" ? 4 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3;
|
|
587
2054
|
}
|
|
588
|
-
function
|
|
589
|
-
let t =
|
|
2055
|
+
function Fi(e) {
|
|
2056
|
+
let t = K(e);
|
|
590
2057
|
return t === 0 ? "fetching" : t === 4 ? "paused" : t === 2 ? "stale" : t === 3 ? "inactive" : "fresh";
|
|
591
2058
|
}
|
|
592
|
-
function
|
|
593
|
-
return
|
|
2059
|
+
function Ii(e) {
|
|
2060
|
+
return K(e) === 2 ? 0 : 16777215;
|
|
594
2061
|
}
|
|
595
|
-
function
|
|
596
|
-
let t =
|
|
2062
|
+
function Li(e) {
|
|
2063
|
+
let t = K(e);
|
|
597
2064
|
return t === 0 ? 27647 : t === 4 ? 9193963 : t === 2 ? 16757248 : t === 3 ? 4148832 : 33575;
|
|
598
2065
|
}
|
|
599
|
-
var
|
|
600
|
-
"Status > Last Updated": (e, t) =>
|
|
601
|
-
"Query Hash":
|
|
602
|
-
"Last Updated":
|
|
603
|
-
},
|
|
604
|
-
function
|
|
605
|
-
|
|
606
|
-
id:
|
|
607
|
-
label:
|
|
2066
|
+
var Ri = (e, t) => e.queryHash.localeCompare(t.queryHash), zi = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, Bi = {
|
|
2067
|
+
"Status > Last Updated": (e, t) => K(e) === K(t) ? zi(e, t) : K(e) > K(t) ? 1 : -1,
|
|
2068
|
+
"Query Hash": Ri,
|
|
2069
|
+
"Last Updated": zi
|
|
2070
|
+
}, q = "vue-query", Vi = "Vue Query";
|
|
2071
|
+
function Hi(e, t) {
|
|
2072
|
+
xi({
|
|
2073
|
+
id: q,
|
|
2074
|
+
label: Vi,
|
|
608
2075
|
packageName: "vue-query",
|
|
609
2076
|
homepage: "https://tanstack.com/query/latest",
|
|
610
2077
|
logo: "https://raw.githubusercontent.com/TanStack/query/main/packages/vue-query/media/vue-query.svg",
|
|
@@ -626,11 +2093,11 @@ function wr(e, t) {
|
|
|
626
2093
|
sortFn: {
|
|
627
2094
|
type: "choice",
|
|
628
2095
|
label: "Sort Function",
|
|
629
|
-
options: Object.keys(
|
|
2096
|
+
options: Object.keys(Bi).map((e) => ({
|
|
630
2097
|
label: e,
|
|
631
2098
|
value: e
|
|
632
2099
|
})),
|
|
633
|
-
defaultValue: Object.keys(
|
|
2100
|
+
defaultValue: Object.keys(Bi)[0]
|
|
634
2101
|
},
|
|
635
2102
|
onlineMode: {
|
|
636
2103
|
type: "choice",
|
|
@@ -648,11 +2115,11 @@ function wr(e, t) {
|
|
|
648
2115
|
}
|
|
649
2116
|
}, (e) => {
|
|
650
2117
|
let n = e.getSettings();
|
|
651
|
-
|
|
2118
|
+
V.setOnline(!!n.onlineMode.valueOf());
|
|
652
2119
|
let r = t.getQueryCache();
|
|
653
2120
|
e.addInspector({
|
|
654
|
-
id:
|
|
655
|
-
label:
|
|
2121
|
+
id: q,
|
|
2122
|
+
label: Vi,
|
|
656
2123
|
icon: "api",
|
|
657
2124
|
nodeActions: [
|
|
658
2125
|
{
|
|
@@ -711,16 +2178,16 @@ function wr(e, t) {
|
|
|
711
2178
|
}
|
|
712
2179
|
]
|
|
713
2180
|
}), e.addTimelineLayer({
|
|
714
|
-
id:
|
|
715
|
-
label:
|
|
2181
|
+
id: q,
|
|
2182
|
+
label: Vi,
|
|
716
2183
|
color: 16767308
|
|
717
2184
|
}), r.subscribe((t) => {
|
|
718
|
-
e.sendInspectorTree(
|
|
2185
|
+
e.sendInspectorTree(q), e.sendInspectorState(q), [
|
|
719
2186
|
"added",
|
|
720
2187
|
"removed",
|
|
721
2188
|
"updated"
|
|
722
2189
|
].includes(t.type) && e.addTimelineEvent({
|
|
723
|
-
layerId:
|
|
2190
|
+
layerId: q,
|
|
724
2191
|
event: {
|
|
725
2192
|
title: t.type,
|
|
726
2193
|
subtitle: t.query.queryHash,
|
|
@@ -732,25 +2199,25 @@ function wr(e, t) {
|
|
|
732
2199
|
}
|
|
733
2200
|
});
|
|
734
2201
|
}), e.on.setPluginSettings((e) => {
|
|
735
|
-
e.key === "onlineMode" &&
|
|
2202
|
+
e.key === "onlineMode" && V.setOnline(!!e.newValue);
|
|
736
2203
|
}), e.on.getInspectorTree((t) => {
|
|
737
|
-
if (t.inspectorId ===
|
|
2204
|
+
if (t.inspectorId === q) {
|
|
738
2205
|
let n = r.getAll(), i = e.getSettings();
|
|
739
|
-
t.rootNodes = (t.filter ? n.filter((e) =>
|
|
740
|
-
let t =
|
|
2206
|
+
t.rootNodes = (t.filter ? n.filter((e) => Ei(e.queryHash, t.filter).passed) : [...n]).sort((e, t) => Bi[i.sortFn](e, t) * i.baseSort).map((e) => {
|
|
2207
|
+
let t = Fi(e);
|
|
741
2208
|
return {
|
|
742
2209
|
id: e.queryHash,
|
|
743
2210
|
label: e.queryHash,
|
|
744
2211
|
tags: [{
|
|
745
2212
|
label: `${t} [${e.getObserversCount()}]`,
|
|
746
|
-
textColor:
|
|
747
|
-
backgroundColor:
|
|
2213
|
+
textColor: Ii(e),
|
|
2214
|
+
backgroundColor: Li(e)
|
|
748
2215
|
}]
|
|
749
2216
|
};
|
|
750
2217
|
});
|
|
751
2218
|
}
|
|
752
2219
|
}), e.on.getInspectorState((e) => {
|
|
753
|
-
if (e.inspectorId ===
|
|
2220
|
+
if (e.inspectorId === q) {
|
|
754
2221
|
let t = r.get(e.nodeId);
|
|
755
2222
|
if (!t) return;
|
|
756
2223
|
e.state = {
|
|
@@ -761,7 +2228,7 @@ function wr(e, t) {
|
|
|
761
2228
|
},
|
|
762
2229
|
{
|
|
763
2230
|
key: "Query status",
|
|
764
|
-
value:
|
|
2231
|
+
value: Fi(t)
|
|
765
2232
|
},
|
|
766
2233
|
{
|
|
767
2234
|
key: "Observers",
|
|
@@ -787,96 +2254,208 @@ function wr(e, t) {
|
|
|
787
2254
|
}
|
|
788
2255
|
//#endregion
|
|
789
2256
|
//#region node_modules/@tanstack/vue-query/build/modern/vueQueryPlugin.js
|
|
790
|
-
var
|
|
791
|
-
let
|
|
792
|
-
|
|
793
|
-
let
|
|
794
|
-
if (
|
|
795
|
-
|
|
796
|
-
let [e,
|
|
797
|
-
|
|
798
|
-
|
|
2257
|
+
var Ui = { install: (e, t = {}) => {
|
|
2258
|
+
let n = ii(t.queryClientKey), r;
|
|
2259
|
+
r = "queryClient" in t && t.queryClient ? t.queryClient : new di("queryClientConfig" in t ? t.queryClientConfig : void 0), jr.isServer() || r.mount();
|
|
2260
|
+
let i = () => {};
|
|
2261
|
+
if (t.clientPersister) {
|
|
2262
|
+
r.isRestoring && (r.isRestoring.value = !0);
|
|
2263
|
+
let [e, n] = t.clientPersister(r);
|
|
2264
|
+
i = e, n.then(() => {
|
|
2265
|
+
r.isRestoring && (r.isRestoring.value = !1), t.clientPersisterOnSuccess?.(r);
|
|
799
2266
|
});
|
|
800
2267
|
}
|
|
801
|
-
let
|
|
802
|
-
|
|
2268
|
+
let a = () => {
|
|
2269
|
+
r.unmount(), i();
|
|
803
2270
|
};
|
|
804
|
-
if (e.onUnmount) e.onUnmount(
|
|
2271
|
+
if (e.onUnmount) e.onUnmount(a);
|
|
805
2272
|
else {
|
|
806
2273
|
let t = e.unmount;
|
|
807
2274
|
e.unmount = function() {
|
|
808
|
-
|
|
2275
|
+
a(), t();
|
|
809
2276
|
};
|
|
810
2277
|
}
|
|
811
|
-
e.provide(
|
|
812
|
-
} }
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
2278
|
+
e.provide(n, r), process.env.NODE_ENV === "development" && t.enableDevtoolsV6Plugin && Hi(e, r);
|
|
2279
|
+
} };
|
|
2280
|
+
//#endregion
|
|
2281
|
+
//#region src/web-core/query.ts
|
|
2282
|
+
function Wi() {
|
|
2283
|
+
return new di({ defaultOptions: { queries: {
|
|
2284
|
+
staleTime: 3e4,
|
|
2285
|
+
refetchOnWindowFocus: !1
|
|
2286
|
+
} } });
|
|
2287
|
+
}
|
|
2288
|
+
var Gi = {
|
|
2289
|
+
session: { current: ["session", "current"] },
|
|
2290
|
+
menu: { mine: ["menu", "mine"] },
|
|
2291
|
+
staticModule: {
|
|
2292
|
+
query: (e, t) => [
|
|
2293
|
+
"static-module",
|
|
2294
|
+
e,
|
|
2295
|
+
"query",
|
|
2296
|
+
t
|
|
2297
|
+
],
|
|
2298
|
+
tree: (e, t) => [
|
|
2299
|
+
"static-module",
|
|
2300
|
+
e,
|
|
2301
|
+
"tree",
|
|
2302
|
+
t
|
|
2303
|
+
],
|
|
2304
|
+
view: (e, t) => [
|
|
2305
|
+
"static-module",
|
|
2306
|
+
e,
|
|
2307
|
+
"view",
|
|
2308
|
+
t
|
|
2309
|
+
]
|
|
2310
|
+
}
|
|
2311
|
+
};
|
|
2312
|
+
//#endregion
|
|
2313
|
+
//#region src/web-core/businessNotifications.ts
|
|
2314
|
+
function Ki(e, t) {
|
|
2315
|
+
return e.request({
|
|
2316
|
+
method: "POST",
|
|
2317
|
+
path: `/${encodeURIComponent(t.moduleAlias)}/${encodeURIComponent(t.actionCode)}/${encodeURIComponent(t.recordId)}`,
|
|
2318
|
+
body: { payload: t.arguments ?? {} }
|
|
2319
|
+
});
|
|
821
2320
|
}
|
|
822
|
-
|
|
823
|
-
|
|
2321
|
+
//#endregion
|
|
2322
|
+
//#region src/platform-admin-runtime/platformAdminRoutes.ts
|
|
2323
|
+
var qi = A(() => import("./workspaceViews-CCg6V0pr.js").then((e) => e.n)), Ji = A(() => import("./BusinessActivityLogView-UC4rH4Fn.js")), Yi = A(() => import("./RequestErrorLogView-WnGvMWiF.js")), Xi = A(() => import("./LoginAuditLogView-Cjrp8MKX.js")), J = [
|
|
2324
|
+
{
|
|
2325
|
+
route: "/platform/logs/runtime",
|
|
2326
|
+
moduleAlias: "platform.runtime_log",
|
|
2327
|
+
component: A(() => import("./RuntimeLogView-BRl4ZDkU.js")),
|
|
2328
|
+
layout: "workspace"
|
|
2329
|
+
},
|
|
2330
|
+
{
|
|
2331
|
+
route: "/platform/logs/activity",
|
|
2332
|
+
moduleAlias: "platform.business_activity_log",
|
|
2333
|
+
component: Ji,
|
|
2334
|
+
layout: "workspace"
|
|
2335
|
+
},
|
|
2336
|
+
{
|
|
2337
|
+
route: "/platform/logs/errors",
|
|
2338
|
+
moduleAlias: "platform.request_error_log",
|
|
2339
|
+
component: Yi,
|
|
2340
|
+
layout: "workspace"
|
|
2341
|
+
},
|
|
2342
|
+
{
|
|
2343
|
+
route: "/iam/logs/login",
|
|
2344
|
+
moduleAlias: "iam.login_audit_log",
|
|
2345
|
+
component: Xi,
|
|
2346
|
+
layout: "workspace"
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
route: "/iam/role/authorization",
|
|
2350
|
+
moduleAlias: "iam.role",
|
|
2351
|
+
component: qi,
|
|
2352
|
+
layout: "workspace",
|
|
2353
|
+
menuEntry: !1
|
|
2354
|
+
}
|
|
2355
|
+
], Zi = Array.from(/* @__PURE__ */ new Set(["/_platform/workspace", ...J.map((e) => e.route)])), Qi = Object.fromEntries(J.filter((e) => e.menuEntry !== !1).map((e) => [e.moduleAlias, e.route])), $i = Object.fromEntries(J.map((e) => [e.route, e.layout]));
|
|
2356
|
+
function ea(e) {
|
|
2357
|
+
if (e) return J.find((t) => na(t, e.target));
|
|
824
2358
|
}
|
|
825
|
-
function
|
|
826
|
-
return
|
|
2359
|
+
function ta(e) {
|
|
2360
|
+
return e?.pageType === "business-route" && !!ea(e);
|
|
827
2361
|
}
|
|
828
|
-
function
|
|
2362
|
+
function na(e, t) {
|
|
2363
|
+
return t.route ? ra(e.route, t.route) && (t.moduleAlias === void 0 || t.moduleAlias === e.moduleAlias) : t.moduleAlias === e.moduleAlias;
|
|
2364
|
+
}
|
|
2365
|
+
function ra(e, t) {
|
|
829
2366
|
let n = e.split("/").filter(Boolean), r = t.split("/").filter(Boolean);
|
|
830
2367
|
return n.length === r.length && n.every((e, t) => e.startsWith(":") || e === r[t]);
|
|
831
2368
|
}
|
|
832
2369
|
//#endregion
|
|
833
2370
|
//#region src/app/pageRouteContext.ts
|
|
834
|
-
var
|
|
835
|
-
function
|
|
836
|
-
|
|
2371
|
+
var ia = Symbol("page-route");
|
|
2372
|
+
function aa(e) {
|
|
2373
|
+
$n(ia, w(e));
|
|
837
2374
|
}
|
|
838
2375
|
//#endregion
|
|
839
2376
|
//#region src/platform-admin-runtime/PlatformAdminOutlet.vue
|
|
840
|
-
var
|
|
2377
|
+
var oa = /* @__PURE__ */ j({
|
|
841
2378
|
name: "PlatformAdminRouteOutlet",
|
|
842
2379
|
__name: "PlatformAdminOutlet",
|
|
843
2380
|
props: { descriptor: {} },
|
|
844
2381
|
setup(e) {
|
|
845
|
-
let t = e, n =
|
|
846
|
-
|
|
2382
|
+
let t = e, n = w(() => ea(t.descriptor)), r = w(() => t.descriptor.target.moduleAlias ?? n.value?.moduleAlias), i = w(() => t.descriptor.target.query?.workspacePresentation);
|
|
2383
|
+
qe(w(() => t.descriptor.layout ?? n.value?.layout)), aa(() => {
|
|
847
2384
|
let e = n.value?.route ?? t.descriptor.target.route ?? "", r = t.descriptor.target.route ?? e;
|
|
848
2385
|
return {
|
|
849
2386
|
path: r,
|
|
850
2387
|
meta: {},
|
|
851
2388
|
query: t.descriptor.target.query ?? t.descriptor.params ?? {},
|
|
852
|
-
params:
|
|
2389
|
+
params: a(e, r),
|
|
853
2390
|
matched: [{ path: e }]
|
|
854
2391
|
};
|
|
855
2392
|
});
|
|
856
|
-
function
|
|
2393
|
+
function a(e, t) {
|
|
857
2394
|
let n = {}, r = e.split("/").filter(Boolean), i = t.split("/").filter(Boolean);
|
|
858
2395
|
return r.forEach((e, t) => {
|
|
859
2396
|
e.startsWith(":") && i[t] && (n[e.slice(1)] = i[t]);
|
|
860
2397
|
}), n;
|
|
861
2398
|
}
|
|
862
|
-
return (t,
|
|
2399
|
+
return (t, a) => n.value && r.value ? (M(), T(F(et), {
|
|
863
2400
|
key: 0,
|
|
864
2401
|
"module-alias": r.value
|
|
865
2402
|
}, {
|
|
866
|
-
default:
|
|
2403
|
+
default: I(() => [i.value === "drawer" || i.value === "tab" ? (M(), T(F(hn), {
|
|
867
2404
|
key: 0,
|
|
868
2405
|
descriptor: e.descriptor
|
|
869
|
-
}, null, 8, ["descriptor"])) : (
|
|
2406
|
+
}, null, 8, ["descriptor"])) : (M(), T(nr(n.value.component), { key: 1 }))]),
|
|
870
2407
|
_: 1
|
|
871
|
-
}, 8, ["module-alias"])) :
|
|
2408
|
+
}, 8, ["module-alias"])) : E("v-if", !0);
|
|
872
2409
|
}
|
|
873
|
-
})
|
|
2410
|
+
}), sa = /^\/openapi\/([a-z][a-z0-9_]*(?:\.[a-z][a-z0-9_]*)+)\/?$/;
|
|
2411
|
+
function ca(e) {
|
|
2412
|
+
return sa.exec(e)?.[1];
|
|
2413
|
+
}
|
|
2414
|
+
function la(e, t) {
|
|
2415
|
+
return {
|
|
2416
|
+
pageType: "platform-route",
|
|
2417
|
+
openMode: "workbench-route",
|
|
2418
|
+
hostType: "platform-route-host",
|
|
2419
|
+
title: `${t ?? e}.OpenAPI`,
|
|
2420
|
+
target: {
|
|
2421
|
+
route: `/openapi/${encodeURIComponent(e)}`,
|
|
2422
|
+
moduleAlias: e
|
|
2423
|
+
},
|
|
2424
|
+
tabPolicy: {
|
|
2425
|
+
identity: "by-target",
|
|
2426
|
+
closable: !0,
|
|
2427
|
+
cacheable: !0
|
|
2428
|
+
}
|
|
2429
|
+
};
|
|
2430
|
+
}
|
|
2431
|
+
function ua() {
|
|
2432
|
+
return {
|
|
2433
|
+
pageType: "platform-route",
|
|
2434
|
+
openMode: "workbench-route",
|
|
2435
|
+
hostType: "platform-route-host",
|
|
2436
|
+
title: "开放模块 API",
|
|
2437
|
+
target: { route: "/openapi" },
|
|
2438
|
+
tabPolicy: {
|
|
2439
|
+
identity: "by-target",
|
|
2440
|
+
closable: !0,
|
|
2441
|
+
cacheable: !0
|
|
2442
|
+
}
|
|
2443
|
+
};
|
|
2444
|
+
}
|
|
2445
|
+
function da(e) {
|
|
2446
|
+
if (e?.pageType !== "platform-route" || !("route" in e.target)) return !1;
|
|
2447
|
+
let t = ca(e.target.route ?? "");
|
|
2448
|
+
return t !== void 0 && e.target.moduleAlias === t;
|
|
2449
|
+
}
|
|
2450
|
+
function fa(e) {
|
|
2451
|
+
return e === "/openapi" || e === "/openapi/";
|
|
2452
|
+
}
|
|
874
2453
|
//#endregion
|
|
875
2454
|
//#region src/app/workbenchStartup.ts
|
|
876
|
-
function
|
|
877
|
-
let i =
|
|
2455
|
+
function pa(e, t, n, r = {}) {
|
|
2456
|
+
let i = $t(t, n, r), a = e.find((e) => e.key === i.key);
|
|
878
2457
|
if (a) {
|
|
879
|
-
let o = a.pageDescriptor ?
|
|
2458
|
+
let o = a.pageDescriptor ? Pa(t, n, a.pageDescriptor, r) : i;
|
|
880
2459
|
return {
|
|
881
2460
|
tabs: e.map((e) => e.key === i.key ? o : e),
|
|
882
2461
|
activeTabKey: i.key
|
|
@@ -887,8 +2466,8 @@ function Ir(e, t, n, r = {}) {
|
|
|
887
2466
|
activeTabKey: i.key
|
|
888
2467
|
};
|
|
889
2468
|
}
|
|
890
|
-
function
|
|
891
|
-
let r = X(
|
|
2469
|
+
function ma(e, t, n = {}) {
|
|
2470
|
+
let r = X(x(t), n), i = e.find((e) => e.key === r.key || r.pageDescriptor?.tabPolicy.identity === "by-params" && e.pageDescriptor?.tabPolicy.identity === "by-params" && S(e.pageDescriptor) === S(r.pageDescriptor));
|
|
892
2471
|
return i ? {
|
|
893
2472
|
tabs: e,
|
|
894
2473
|
activeTabKey: i.key,
|
|
@@ -899,41 +2478,48 @@ function Lr(e, t, n = {}) {
|
|
|
899
2478
|
created: !0
|
|
900
2479
|
};
|
|
901
2480
|
}
|
|
902
|
-
function
|
|
903
|
-
return t.menuType === "link" && t.openMode === "window" ? t.externalUrl :
|
|
2481
|
+
function ha(e, t, n = {}) {
|
|
2482
|
+
return t.menuType === "link" && t.openMode === "window" ? t.externalUrl : C(ln(t, {
|
|
904
2483
|
...n,
|
|
905
2484
|
title: e.title
|
|
906
2485
|
}), n);
|
|
907
2486
|
}
|
|
908
|
-
function
|
|
2487
|
+
function ga(e) {
|
|
909
2488
|
let t = (e.tabs ?? []).find((t) => t.key === e.activeTabKey);
|
|
910
2489
|
if (t?.fullPath) return t.fullPath;
|
|
911
|
-
let n = t?.pageDescriptor ?? (t?.target ?
|
|
912
|
-
return n?.pageType === "platform-route" &&
|
|
2490
|
+
let n = t?.pageDescriptor ?? (t?.target ? ln(t.target, { title: t.title }) : void 0);
|
|
2491
|
+
return n?.pageType === "platform-route" && da(n) && n.target.route ? n.target.route : n ? C(n) : void 0;
|
|
913
2492
|
}
|
|
914
|
-
function
|
|
2493
|
+
function _a(e, t, n = {}, r = !1) {
|
|
915
2494
|
if (t === "/" || t === "") return e;
|
|
916
|
-
let i = t.split(/[?#]/, 1)[0] ?? "", a =
|
|
2495
|
+
let i = t.split(/[?#]/, 1)[0] ?? "", a = ca(i), o = a ? la(a) : fa(i) ? ua() : un(t, n);
|
|
917
2496
|
if (!o) return e;
|
|
918
|
-
let s = o.menuId ?
|
|
2497
|
+
let s = o.menuId ? Va(e.menus, o.menuId) : void 0, c = s ? b(s) : void 0, l = s && c && xa(c, o) ? {
|
|
919
2498
|
...o,
|
|
920
2499
|
title: s.title
|
|
921
|
-
} : o, u =
|
|
2500
|
+
} : o, u = ba(l), d = u ?? l, f = e.tabs ?? [], p = u ? ya(f, u) : void 0, m = u ? va(u, p) : r ? x(d) : d, h = s && za(s, m, n) ? s : Ra(e.menus, m, n), g = h === s ? c : h ? b(h) : void 0, _ = u ? X(m, n) : h && g && Yt(g) ? Pa(h, g, m, n) : X(m, n), ee = Na(f, _);
|
|
922
2501
|
return {
|
|
923
2502
|
...e,
|
|
924
|
-
tabs:
|
|
925
|
-
activeTabKey:
|
|
2503
|
+
tabs: ee,
|
|
2504
|
+
activeTabKey: _.key
|
|
926
2505
|
};
|
|
927
2506
|
}
|
|
928
|
-
function
|
|
2507
|
+
function va(e, t) {
|
|
2508
|
+
return t?.instanceKey ? x(e, t.instanceKey) : t ? e : x(e);
|
|
2509
|
+
}
|
|
2510
|
+
function ya(e, t) {
|
|
2511
|
+
let n = S(t);
|
|
2512
|
+
return e.find((e) => e.pageDescriptor?.pageType === "business-route" && S(e.pageDescriptor) === n);
|
|
2513
|
+
}
|
|
2514
|
+
function ba(e) {
|
|
929
2515
|
if (e.pageType !== "business-route") return;
|
|
930
|
-
let t =
|
|
931
|
-
return t ?
|
|
2516
|
+
let t = dn(e);
|
|
2517
|
+
return t ? Pn(t.view, t.input, t.presentation, e.title) : void 0;
|
|
932
2518
|
}
|
|
933
|
-
function
|
|
2519
|
+
function xa(e, t) {
|
|
934
2520
|
return t.pageType === "dynamic-module" && e.menuType === "module" && e.moduleAlias === t.target.moduleAlias;
|
|
935
2521
|
}
|
|
936
|
-
function
|
|
2522
|
+
function Sa(e, t, n) {
|
|
937
2523
|
let r = e.findIndex((e) => e.key === n);
|
|
938
2524
|
if (r < 0) return {
|
|
939
2525
|
tabs: e,
|
|
@@ -948,7 +2534,7 @@ function Hr(e, t, n) {
|
|
|
948
2534
|
activeTabKey: t
|
|
949
2535
|
};
|
|
950
2536
|
}
|
|
951
|
-
function
|
|
2537
|
+
function Ca(e, t, n) {
|
|
952
2538
|
let r = new Set(n), i = e.findIndex((e) => e.key === t), a = e.filter((e) => !r.has(e.key) || e.closable === !1);
|
|
953
2539
|
return !t || !r.has(t) ? {
|
|
954
2540
|
tabs: a,
|
|
@@ -958,16 +2544,16 @@ function Ur(e, t, n) {
|
|
|
958
2544
|
activeTabKey: (a.find((t) => e.indexOf(t) > i) ?? a.at(-1))?.key
|
|
959
2545
|
};
|
|
960
2546
|
}
|
|
961
|
-
function
|
|
2547
|
+
function wa(e, t, n = !0) {
|
|
962
2548
|
let r = new Map(e.map((e) => [e.key, e])), i = /* @__PURE__ */ new Set();
|
|
963
2549
|
return [...t.flatMap((e) => {
|
|
964
2550
|
if (i.has(e.key)) return [];
|
|
965
2551
|
i.add(e.key);
|
|
966
2552
|
let t = r.get(e.key);
|
|
967
|
-
return t ? [
|
|
2553
|
+
return t ? [Ta(t, e)] : n ? [e] : [];
|
|
968
2554
|
}), ...e.filter((e) => !i.has(e.key))];
|
|
969
2555
|
}
|
|
970
|
-
function
|
|
2556
|
+
function Ta(e, t) {
|
|
971
2557
|
let n = e.pageDescriptor, r = t.pageDescriptor;
|
|
972
2558
|
if (!n || !r || !t.target) return e;
|
|
973
2559
|
let i = {
|
|
@@ -982,48 +2568,48 @@ function Wr(e, t) {
|
|
|
982
2568
|
target: t.target
|
|
983
2569
|
};
|
|
984
2570
|
}
|
|
985
|
-
function
|
|
2571
|
+
function Ea(e, t, n = {}) {
|
|
986
2572
|
let r = /* @__PURE__ */ new Map();
|
|
987
|
-
|
|
2573
|
+
Aa(t, r);
|
|
988
2574
|
let i = /* @__PURE__ */ new Set();
|
|
989
2575
|
return e.flatMap((e) => {
|
|
990
|
-
let t = e.pageDescriptor?.menuId ?? e.target?.menuId ??
|
|
2576
|
+
let t = e.pageDescriptor?.menuId ?? e.target?.menuId ?? Da(e.key);
|
|
991
2577
|
if (t) {
|
|
992
2578
|
if (i.has(t)) return [];
|
|
993
2579
|
let e = r.get(t);
|
|
994
|
-
return e ? (i.add(t), [
|
|
2580
|
+
return e ? (i.add(t), [$t(e.menu, e.target, n)]) : [];
|
|
995
2581
|
}
|
|
996
|
-
let a =
|
|
2582
|
+
let a = Oa(e);
|
|
997
2583
|
return !a || i.has(a.key) ? [] : (i.add(a.key), [a]);
|
|
998
2584
|
});
|
|
999
2585
|
}
|
|
1000
|
-
function
|
|
2586
|
+
function Da(e) {
|
|
1001
2587
|
return e.startsWith("menu:") && e.slice(5) || void 0;
|
|
1002
2588
|
}
|
|
1003
|
-
function
|
|
2589
|
+
function Oa(e) {
|
|
1004
2590
|
let t = e.pageDescriptor;
|
|
1005
2591
|
if (t?.pageType !== "business-route") return;
|
|
1006
|
-
let n =
|
|
1007
|
-
if (
|
|
2592
|
+
let n = dn(t);
|
|
2593
|
+
if (n && n.presentation === "tab") return X(Pn(n.view, n.input, "tab"));
|
|
1008
2594
|
}
|
|
1009
|
-
function
|
|
2595
|
+
function ka(e, t) {
|
|
1010
2596
|
let n = e.findIndex((e) => e.key === t.key);
|
|
1011
2597
|
return n < 0 ? [...e, t] : e.map((e, r) => r === n ? t : e);
|
|
1012
2598
|
}
|
|
1013
|
-
function
|
|
2599
|
+
function Aa(e, t) {
|
|
1014
2600
|
for (let n of e) {
|
|
1015
|
-
let e =
|
|
1016
|
-
e &&
|
|
2601
|
+
let e = b(n.record);
|
|
2602
|
+
e && Yt(e) && t.set(n.record.id, {
|
|
1017
2603
|
menu: n.record,
|
|
1018
2604
|
target: e
|
|
1019
|
-
}),
|
|
2605
|
+
}), Aa(n.children, t);
|
|
1020
2606
|
}
|
|
1021
2607
|
}
|
|
1022
2608
|
function Y(e, t) {
|
|
1023
2609
|
let n = new Set(t);
|
|
1024
2610
|
return e.filter((e) => !n.has(e.key));
|
|
1025
2611
|
}
|
|
1026
|
-
function
|
|
2612
|
+
function ja(e, t, n = []) {
|
|
1027
2613
|
if (e.length !== t.length || new Set(t).size !== e.length) return e;
|
|
1028
2614
|
let r = new Map(e.map((e) => [e.key, e]));
|
|
1029
2615
|
if (t.some((e) => !r.has(e))) return e;
|
|
@@ -1031,27 +2617,27 @@ function Xr(e, t, n = []) {
|
|
|
1031
2617
|
return [...i.filter((e) => a.has(e.key)), ...i.filter((e) => !a.has(e.key))];
|
|
1032
2618
|
}
|
|
1033
2619
|
function X(e, t = {}) {
|
|
1034
|
-
let n =
|
|
2620
|
+
let n = C(e, t);
|
|
1035
2621
|
return {
|
|
1036
|
-
...
|
|
1037
|
-
key:
|
|
1038
|
-
title: e.title ??
|
|
2622
|
+
...Ma(e) ? { instanceKey: Ma(e) } : {},
|
|
2623
|
+
key: cn(e),
|
|
2624
|
+
title: e.title ?? La(e),
|
|
1039
2625
|
fullPath: n,
|
|
1040
2626
|
pageDescriptor: e,
|
|
1041
2627
|
restoreState: { url: n },
|
|
1042
2628
|
closable: !0
|
|
1043
2629
|
};
|
|
1044
2630
|
}
|
|
1045
|
-
function
|
|
2631
|
+
function Ma(e) {
|
|
1046
2632
|
let t = (e.pageType === "platform-route" || e.pageType === "business-route" ? e.target.query ?? e.params : e.params)?.InstanceKey, n = Array.isArray(t) ? t[0] : t;
|
|
1047
2633
|
return typeof n == "string" && n ? n : void 0;
|
|
1048
2634
|
}
|
|
1049
|
-
function
|
|
2635
|
+
function Na(e, t) {
|
|
1050
2636
|
let n = e.findIndex((e) => e.key === t.key);
|
|
1051
2637
|
return n < 0 ? [...e, t] : e.map((e, r) => r === n ? t : e);
|
|
1052
2638
|
}
|
|
1053
|
-
function
|
|
1054
|
-
let i =
|
|
2639
|
+
function Pa(e, t, n, r) {
|
|
2640
|
+
let i = $t(e, t, r), a = i.pageDescriptor ?? n, o = Fa(n) && Fa(a) || Ia(n) && Ia(a) ? {
|
|
1055
2641
|
...n,
|
|
1056
2642
|
title: n.title ?? e.title,
|
|
1057
2643
|
menuId: e.id,
|
|
@@ -1072,84 +2658,89 @@ function $r(e, t, n, r) {
|
|
|
1072
2658
|
target: t
|
|
1073
2659
|
};
|
|
1074
2660
|
}
|
|
1075
|
-
function
|
|
2661
|
+
function Fa(e) {
|
|
1076
2662
|
return e.pageType === "platform-route" || e.pageType === "business-route";
|
|
1077
2663
|
}
|
|
1078
|
-
function
|
|
2664
|
+
function Ia(e) {
|
|
1079
2665
|
return e.pageType === "remote-url" || e.pageType === "external-link";
|
|
1080
2666
|
}
|
|
1081
|
-
function
|
|
2667
|
+
function La(e) {
|
|
1082
2668
|
return e.pageType === "dynamic-module" ? e.target.moduleAlias : e.pageType === "platform-route" || e.pageType === "business-route" ? e.target.route ?? e.target.routeName ?? e.target.pageKey ?? "workspace" : e.target.url;
|
|
1083
2669
|
}
|
|
1084
|
-
function
|
|
2670
|
+
function Ra(e, t, n) {
|
|
1085
2671
|
for (let r of e) {
|
|
1086
|
-
if (
|
|
1087
|
-
let e =
|
|
2672
|
+
if (za(r.record, t, n)) return r.record;
|
|
2673
|
+
let e = Ra(r.children, t, n);
|
|
1088
2674
|
if (e) return e;
|
|
1089
2675
|
}
|
|
1090
2676
|
}
|
|
1091
|
-
function
|
|
1092
|
-
let r =
|
|
2677
|
+
function za(e, t, n) {
|
|
2678
|
+
let r = b(e), i = r ? ln(r, {
|
|
1093
2679
|
...n,
|
|
1094
2680
|
title: e.title
|
|
1095
2681
|
}) : void 0;
|
|
1096
|
-
return i ?
|
|
2682
|
+
return i ? Ba(i, t) : !1;
|
|
1097
2683
|
}
|
|
1098
|
-
function
|
|
1099
|
-
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")
|
|
2684
|
+
function Ba(e, t) {
|
|
2685
|
+
return e.pageType !== t.pageType || e.hostType !== t.hostType ? !1 : e.pageType === "dynamic-module" && t.pageType === "dynamic-module" ? e.target.moduleAlias === t.target.moduleAlias && (e.target.pageMode ?? "LIST") === (t.target.pageMode ?? "LIST") && (!t.target.defaultUiConfigId || e.target.defaultUiConfigId === t.target.defaultUiConfigId) && (!t.target.defaultQueryTemplateId || e.target.defaultQueryTemplateId === t.target.defaultQueryTemplateId) : (e.pageType === "platform-route" || e.pageType === "business-route") && (t.pageType === "platform-route" || t.pageType === "business-route") ? e.target.route === t.target.route && e.target.routeName === t.target.routeName && e.target.pageKey === t.target.pageKey : (e.pageType === "remote-url" || e.pageType === "external-link") && (t.pageType === "remote-url" || t.pageType === "external-link") && e.target.url === t.target.url;
|
|
1100
2686
|
}
|
|
1101
|
-
function
|
|
2687
|
+
function Va(e, t) {
|
|
1102
2688
|
for (let n of e) {
|
|
1103
2689
|
if (n.record.id === t) return n.record;
|
|
1104
|
-
let e =
|
|
2690
|
+
let e = Va(n.children, t);
|
|
1105
2691
|
if (e) return e;
|
|
1106
2692
|
}
|
|
1107
2693
|
}
|
|
1108
2694
|
//#endregion
|
|
1109
|
-
//#region src/app/
|
|
1110
|
-
|
|
1111
|
-
async function ci(e) {
|
|
1112
|
-
return ui(await e.restore(si, [], { persistence: "backend" }));
|
|
1113
|
-
}
|
|
1114
|
-
async function li(e, t) {
|
|
1115
|
-
await e.set(si, t, { persistence: "backend" });
|
|
1116
|
-
}
|
|
1117
|
-
function ui(e) {
|
|
2695
|
+
//#region src/app/workbenchSessionTabs.ts
|
|
2696
|
+
function Ha(e) {
|
|
1118
2697
|
if (!Array.isArray(e)) return [];
|
|
1119
2698
|
let t = /* @__PURE__ */ new Set();
|
|
1120
|
-
return e.flatMap((e) => !
|
|
2699
|
+
return e.flatMap((e) => !Ua(e) || t.has(e.key) ? [] : (t.add(e.key), [e]));
|
|
1121
2700
|
}
|
|
1122
|
-
function
|
|
2701
|
+
function Ua(e) {
|
|
1123
2702
|
let t = e;
|
|
1124
|
-
return
|
|
2703
|
+
return Z(e) && typeof t.key == "string" && typeof t.title == "string" && (Wa(t.pageDescriptor) || Ka(t.target));
|
|
1125
2704
|
}
|
|
1126
|
-
function
|
|
2705
|
+
function Wa(e) {
|
|
1127
2706
|
return !Z(e) || !Z(e.target) || !Z(e.tabPolicy) || ![
|
|
1128
2707
|
"by-menu",
|
|
1129
2708
|
"by-target",
|
|
1130
2709
|
"by-params"
|
|
1131
|
-
].includes(String(e.tabPolicy.identity)) ? !1 : e.pageType === "platform-route" ? e.openMode === "workbench-route" && e.hostType === "platform-route-host" &&
|
|
2710
|
+
].includes(String(e.tabPolicy.identity)) ? !1 : e.pageType === "platform-route" ? e.openMode === "workbench-route" && e.hostType === "platform-route-host" && Ga(e.target) : e.pageType === "business-route" ? e.openMode === "workbench-route" && e.hostType === "business-route-host" && Ga(e.target) : e.pageType === "dynamic-module" ? e.openMode === "dynamic-runner" && (e.hostType === "module-page-host" || e.hostType === "dynamic-module-host") && typeof e.target.moduleAlias == "string" : e.pageType === "remote-url" ? (e.openMode === "iframe" || e.openMode === "new-window") && e.hostType === "external-page-host" && typeof e.target.url == "string" : e.pageType === "external-link" && e.openMode === "new-window" && e.hostType === "external-page-host" && typeof e.target.url == "string";
|
|
1132
2711
|
}
|
|
1133
|
-
function
|
|
2712
|
+
function Ga(e) {
|
|
1134
2713
|
return typeof e.route == "string" || typeof e.routeName == "string" || typeof e.pageKey == "string";
|
|
1135
2714
|
}
|
|
1136
|
-
function
|
|
2715
|
+
function Ka(e) {
|
|
1137
2716
|
return !Z(e) || typeof e.menuId != "string" || e.openMode !== "tab" ? !1 : e.menuType === "module" ? typeof e.moduleAlias == "string" : e.menuType === "route" ? typeof e.route == "string" : e.menuType === "link" && typeof e.externalUrl == "string";
|
|
1138
2717
|
}
|
|
1139
2718
|
function Z(e) {
|
|
1140
2719
|
return typeof e == "object" && !!e;
|
|
1141
2720
|
}
|
|
1142
2721
|
//#endregion
|
|
2722
|
+
//#region src/app/lockedTabPreference.ts
|
|
2723
|
+
var qa = "workbench.locked-tabs";
|
|
2724
|
+
async function Ja(e) {
|
|
2725
|
+
return Xa(await e.restore(qa, [], { persistence: "backend" }));
|
|
2726
|
+
}
|
|
2727
|
+
async function Ya(e, t) {
|
|
2728
|
+
await e.set(qa, t, { persistence: "backend" });
|
|
2729
|
+
}
|
|
2730
|
+
function Xa(e) {
|
|
2731
|
+
return Ha(e);
|
|
2732
|
+
}
|
|
2733
|
+
//#endregion
|
|
1143
2734
|
//#region src/consumer/PlatformAdminOutlet.vue
|
|
1144
|
-
var
|
|
2735
|
+
var Za = /* @__PURE__ */ j({
|
|
1145
2736
|
name: "PlatformAdminOutlet",
|
|
1146
2737
|
__name: "PlatformAdminOutlet",
|
|
1147
2738
|
props: { descriptor: {} },
|
|
1148
2739
|
setup(e) {
|
|
1149
|
-
return (t, n) =>
|
|
2740
|
+
return (t, n) => F(ta)(e.descriptor) ? (M(), T(oa, {
|
|
1150
2741
|
key: 0,
|
|
1151
2742
|
descriptor: e.descriptor
|
|
1152
|
-
}, null, 8, ["descriptor"])) : (
|
|
2743
|
+
}, null, 8, ["descriptor"])) : (M(), T(Fn, {
|
|
1153
2744
|
key: 1,
|
|
1154
2745
|
descriptor: e.descriptor
|
|
1155
2746
|
}, null, 8, ["descriptor"]));
|
|
@@ -1157,8 +2748,8 @@ var hi = /* @__PURE__ */ I({
|
|
|
1157
2748
|
});
|
|
1158
2749
|
//#endregion
|
|
1159
2750
|
//#region src/app/workbenchRouteSync.ts
|
|
1160
|
-
function
|
|
1161
|
-
let r =
|
|
2751
|
+
function Qa(e, t, n) {
|
|
2752
|
+
let r = ga(e) ?? "/";
|
|
1162
2753
|
return r === t ? void 0 : {
|
|
1163
2754
|
url: r,
|
|
1164
2755
|
mode: n
|
|
@@ -1166,11 +2757,15 @@ function gi(e, t, n) {
|
|
|
1166
2757
|
}
|
|
1167
2758
|
//#endregion
|
|
1168
2759
|
//#region src/consumer/AppWorkbenchShell.vue
|
|
1169
|
-
var
|
|
2760
|
+
var $a = /* @__PURE__ */ j({
|
|
1170
2761
|
name: "AppWorkbenchShell",
|
|
1171
2762
|
__name: "AppWorkbenchShell",
|
|
1172
2763
|
props: {
|
|
1173
2764
|
startup: {},
|
|
2765
|
+
loadMenus: {
|
|
2766
|
+
type: Function,
|
|
2767
|
+
default: void 0
|
|
2768
|
+
},
|
|
1174
2769
|
location: {},
|
|
1175
2770
|
resolveOptions: { default: () => ({}) },
|
|
1176
2771
|
loading: {
|
|
@@ -1188,29 +2783,41 @@ var _i = /* @__PURE__ */ I({
|
|
|
1188
2783
|
"userCommand"
|
|
1189
2784
|
],
|
|
1190
2785
|
setup(e, { emit: t }) {
|
|
1191
|
-
let n = e, r = t, i =
|
|
1192
|
-
|
|
2786
|
+
let n = e, r = t, i = w(() => n.startup.activeTabKey), a = N([]), o = 0, s = Promise.resolve(), c = !1;
|
|
2787
|
+
vn({
|
|
2788
|
+
refreshMenus: n.loadMenus ? async () => {
|
|
2789
|
+
let e = n.startup.session, t = await n.loadMenus();
|
|
2790
|
+
if (!c || e !== n.startup.session) throw Error("登录状态已变化,请重试");
|
|
2791
|
+
return r("update:startup", {
|
|
2792
|
+
...n.startup,
|
|
2793
|
+
menus: t
|
|
2794
|
+
}), t;
|
|
2795
|
+
} : void 0,
|
|
2796
|
+
openMenu: (e) => {
|
|
2797
|
+
let t = b(e);
|
|
2798
|
+
t && u(e, t);
|
|
2799
|
+
},
|
|
1193
2800
|
openRoute: te,
|
|
1194
|
-
replaceRoute:
|
|
1195
|
-
closeCurrentTab:
|
|
2801
|
+
replaceRoute: ne,
|
|
2802
|
+
closeCurrentTab: re,
|
|
1196
2803
|
openPage: ee,
|
|
1197
|
-
replacePage:
|
|
2804
|
+
replacePage: oe,
|
|
1198
2805
|
closePage: f,
|
|
1199
|
-
setTabName:
|
|
1200
|
-
}),
|
|
1201
|
-
c = !0,
|
|
1202
|
-
}),
|
|
2806
|
+
setTabName: ie
|
|
2807
|
+
}), Qn(() => {
|
|
2808
|
+
c = !0, Cn(), le(), ce(n.location);
|
|
2809
|
+
}), Zn(() => {
|
|
1203
2810
|
c = !1;
|
|
1204
|
-
}),
|
|
2811
|
+
}), rr(() => n.location, (e) => ce(e));
|
|
1205
2812
|
function l(e, t = void 0) {
|
|
1206
|
-
r("update:startup", e), t &&
|
|
2813
|
+
r("update:startup", e), t && se(e, t);
|
|
1207
2814
|
}
|
|
1208
2815
|
function u(e, t) {
|
|
1209
2816
|
if (t.openMode === "window") {
|
|
1210
|
-
window.open(
|
|
2817
|
+
window.open(ha(e, t), "_blank", "noopener,noreferrer");
|
|
1211
2818
|
return;
|
|
1212
2819
|
}
|
|
1213
|
-
let r =
|
|
2820
|
+
let r = pa(n.startup.tabs ?? [], e, t, n.resolveOptions);
|
|
1214
2821
|
l({
|
|
1215
2822
|
...n.startup,
|
|
1216
2823
|
tabs: r.tabs,
|
|
@@ -1224,7 +2831,7 @@ var _i = /* @__PURE__ */ I({
|
|
|
1224
2831
|
}, "push");
|
|
1225
2832
|
}
|
|
1226
2833
|
function f(e) {
|
|
1227
|
-
let t =
|
|
2834
|
+
let t = Sa(n.startup.tabs ?? [], n.startup.activeTabKey, e);
|
|
1228
2835
|
a.value.some((t) => t.key === e) && g(Y(a.value, [e])), l({
|
|
1229
2836
|
...n.startup,
|
|
1230
2837
|
tabs: t.tabs,
|
|
@@ -1232,7 +2839,7 @@ var _i = /* @__PURE__ */ I({
|
|
|
1232
2839
|
}, "replace");
|
|
1233
2840
|
}
|
|
1234
2841
|
function p(e) {
|
|
1235
|
-
let t =
|
|
2842
|
+
let t = Ca(n.startup.tabs ?? [], n.startup.activeTabKey, e), r = e.filter((e) => a.value.some((t) => t.key === e));
|
|
1236
2843
|
r.length > 0 && g(Y(a.value, r)), l({
|
|
1237
2844
|
...n.startup,
|
|
1238
2845
|
tabs: t.tabs,
|
|
@@ -1240,7 +2847,7 @@ var _i = /* @__PURE__ */ I({
|
|
|
1240
2847
|
}, "replace");
|
|
1241
2848
|
}
|
|
1242
2849
|
function m(e) {
|
|
1243
|
-
let t =
|
|
2850
|
+
let t = ja(n.startup.tabs ?? [], e, a.value.map((e) => e.key)), r = t.filter((e) => a.value.some((t) => t.key === e.key));
|
|
1244
2851
|
r.map((e) => e.key).join("|") !== a.value.map((e) => e.key).join("|") && g(r), l({
|
|
1245
2852
|
...n.startup,
|
|
1246
2853
|
tabs: t
|
|
@@ -1249,10 +2856,10 @@ var _i = /* @__PURE__ */ I({
|
|
|
1249
2856
|
function h(e) {
|
|
1250
2857
|
let t = n.startup.tabs?.find((t) => t.key === e);
|
|
1251
2858
|
if (!t) return;
|
|
1252
|
-
let r = a.value.some((t) => t.key === e), i = a.value, o = r ? Y(i, [e]) :
|
|
2859
|
+
let r = a.value.some((t) => t.key === e), i = a.value, o = r ? Y(i, [e]) : ka(i, t);
|
|
1253
2860
|
g(o), l({
|
|
1254
2861
|
...n.startup,
|
|
1255
|
-
tabs:
|
|
2862
|
+
tabs: wa(n.startup.tabs ?? [], o)
|
|
1256
2863
|
});
|
|
1257
2864
|
}
|
|
1258
2865
|
function g(e) {
|
|
@@ -1261,17 +2868,17 @@ var _i = /* @__PURE__ */ I({
|
|
|
1261
2868
|
}
|
|
1262
2869
|
async function _(e, t, r) {
|
|
1263
2870
|
try {
|
|
1264
|
-
s = s.catch(() => void 0).then(() =>
|
|
2871
|
+
s = s.catch(() => void 0).then(() => Ya(ae, e)), await s;
|
|
1265
2872
|
} catch {
|
|
1266
2873
|
if (r !== o) return;
|
|
1267
2874
|
a.value = t, l({
|
|
1268
2875
|
...n.startup,
|
|
1269
|
-
tabs:
|
|
2876
|
+
tabs: wa(n.startup.tabs ?? [], t, !1)
|
|
1270
2877
|
});
|
|
1271
2878
|
}
|
|
1272
2879
|
}
|
|
1273
2880
|
function ee(e) {
|
|
1274
|
-
let t =
|
|
2881
|
+
let t = ma(n.startup.tabs ?? [], e);
|
|
1275
2882
|
return l({
|
|
1276
2883
|
...n.startup,
|
|
1277
2884
|
tabs: t.tabs,
|
|
@@ -1279,14 +2886,14 @@ var _i = /* @__PURE__ */ I({
|
|
|
1279
2886
|
}, "push"), { created: t.created };
|
|
1280
2887
|
}
|
|
1281
2888
|
function te(e, t = {}) {
|
|
1282
|
-
return
|
|
2889
|
+
return v(Dn(e, t), "push", n.startup, t.tabTitle, t.newInstance);
|
|
1283
2890
|
}
|
|
1284
|
-
function
|
|
1285
|
-
let r = n.startup.activeTabKey, i = n.startup.tabs?.find((e) => e.key === r), a =
|
|
1286
|
-
if (!r || !i) return
|
|
1287
|
-
let o =
|
|
2891
|
+
function ne(e, t = {}) {
|
|
2892
|
+
let r = n.startup.activeTabKey, i = n.startup.tabs?.find((e) => e.key === r), a = Dn(e, t);
|
|
2893
|
+
if (!r || !i) return v(a, "replace", n.startup, t.tabTitle);
|
|
2894
|
+
let o = _a(n.startup, a, n.resolveOptions), s = o.tabs?.find((e) => e.key === o.activeTabKey);
|
|
1288
2895
|
if (!s) return { created: !1 };
|
|
1289
|
-
let c = s.pageDescriptor && i.instanceKey ?
|
|
2896
|
+
let c = s.pageDescriptor && i.instanceKey ? x(s.pageDescriptor, i.instanceKey) : s.pageDescriptor, u = c ? C(c, n.resolveOptions) : s.fullPath, d = (o.tabs ?? []).filter((e) => e.key !== s.key).map((e) => e.key === r ? {
|
|
1290
2897
|
...i,
|
|
1291
2898
|
...s,
|
|
1292
2899
|
key: r,
|
|
@@ -1302,28 +2909,28 @@ var _i = /* @__PURE__ */ I({
|
|
|
1302
2909
|
activeTabKey: r
|
|
1303
2910
|
}, "replace"), { created: !1 };
|
|
1304
2911
|
}
|
|
1305
|
-
function
|
|
1306
|
-
let t = n.startup.activeTabKey, r = t ?
|
|
2912
|
+
function re(e) {
|
|
2913
|
+
let t = n.startup.activeTabKey, r = t ? Sa(n.startup.tabs ?? [], t, t) : {
|
|
1307
2914
|
tabs: n.startup.tabs ?? [],
|
|
1308
2915
|
activeTabKey: n.startup.activeTabKey
|
|
1309
2916
|
};
|
|
1310
2917
|
t && a.value.some((e) => e.key === t) && g(Y(a.value, [t]));
|
|
1311
2918
|
let i = r.tabs.find((t) => {
|
|
1312
|
-
let n = t.fullPath ?? (t.pageDescriptor ?
|
|
2919
|
+
let n = t.fullPath ?? (t.pageDescriptor ? C(t.pageDescriptor) : void 0);
|
|
1313
2920
|
return n && new URL(n, "http://muyun.local").pathname === e;
|
|
1314
2921
|
});
|
|
1315
2922
|
return i ? (l({
|
|
1316
2923
|
...n.startup,
|
|
1317
2924
|
tabs: r.tabs,
|
|
1318
2925
|
activeTabKey: i.key
|
|
1319
|
-
}, "replace"), { created: !1 }) :
|
|
2926
|
+
}, "replace"), { created: !1 }) : v(Dn(e), "replace", {
|
|
1320
2927
|
...n.startup,
|
|
1321
2928
|
tabs: r.tabs,
|
|
1322
2929
|
activeTabKey: r.activeTabKey
|
|
1323
2930
|
});
|
|
1324
2931
|
}
|
|
1325
|
-
function
|
|
1326
|
-
let o = new Set((r.tabs ?? []).map((e) => e.key)), s =
|
|
2932
|
+
function v(e, t, r, i, a = !1) {
|
|
2933
|
+
let o = new Set((r.tabs ?? []).map((e) => e.key)), s = _a(r, e, {
|
|
1327
2934
|
...n.resolveOptions,
|
|
1328
2935
|
title: i ?? n.resolveOptions.title
|
|
1329
2936
|
}, a);
|
|
@@ -1333,11 +2940,11 @@ var _i = /* @__PURE__ */ I({
|
|
|
1333
2940
|
...e,
|
|
1334
2941
|
title: i
|
|
1335
2942
|
} : e)
|
|
1336
|
-
}), l(s, t), { created:
|
|
2943
|
+
}), l(s, t), { created: !(!s.activeTabKey || o.has(s.activeTabKey)) };
|
|
1337
2944
|
}
|
|
1338
|
-
function
|
|
2945
|
+
function ie(e, t) {
|
|
1339
2946
|
let r = t.trim();
|
|
1340
|
-
|
|
2947
|
+
e && r && l({
|
|
1341
2948
|
...n.startup,
|
|
1342
2949
|
tabs: (n.startup.tabs ?? []).map((t) => t.instanceKey === e ? {
|
|
1343
2950
|
...t,
|
|
@@ -1345,39 +2952,39 @@ var _i = /* @__PURE__ */ I({
|
|
|
1345
2952
|
} : t)
|
|
1346
2953
|
});
|
|
1347
2954
|
}
|
|
1348
|
-
function
|
|
2955
|
+
function oe(e, t) {
|
|
1349
2956
|
let r = (n.startup.tabs ?? []).map((n) => n.key === e ? {
|
|
1350
2957
|
...n,
|
|
1351
2958
|
title: t.title ?? n.title,
|
|
1352
2959
|
pageDescriptor: t,
|
|
1353
|
-
restoreState: { url:
|
|
2960
|
+
restoreState: { url: C(t) }
|
|
1354
2961
|
} : n), i = r.find((t) => t.key === e);
|
|
1355
|
-
i && a.value.some((t) => t.key === e) && g(
|
|
2962
|
+
i && a.value.some((t) => t.key === e) && g(ka(a.value, i)), l({
|
|
1356
2963
|
...n.startup,
|
|
1357
2964
|
tabs: r
|
|
1358
2965
|
}, "replace");
|
|
1359
2966
|
}
|
|
1360
|
-
function
|
|
1361
|
-
let i =
|
|
2967
|
+
function se(e, t) {
|
|
2968
|
+
let i = Qa(e, n.location, t);
|
|
1362
2969
|
i && r("navigate", i);
|
|
1363
2970
|
}
|
|
1364
|
-
function
|
|
1365
|
-
l(
|
|
2971
|
+
function ce(e) {
|
|
2972
|
+
l(_a(n.startup, e, n.resolveOptions));
|
|
1366
2973
|
}
|
|
1367
|
-
async function
|
|
2974
|
+
async function le() {
|
|
1368
2975
|
let e = o;
|
|
1369
2976
|
try {
|
|
1370
|
-
let t =
|
|
2977
|
+
let t = Ea(await Ja(ae), n.startup.menus, n.resolveOptions);
|
|
1371
2978
|
if (!c || e !== o) return;
|
|
1372
2979
|
a.value = t;
|
|
1373
2980
|
let r = new Set(t.map((e) => e.key)), i = [...t, ...(n.startup.tabs ?? []).filter((e) => !r.has(e.key))];
|
|
1374
2981
|
l({
|
|
1375
2982
|
...n.startup,
|
|
1376
|
-
tabs:
|
|
2983
|
+
tabs: wa(i, t)
|
|
1377
2984
|
});
|
|
1378
2985
|
} catch {}
|
|
1379
2986
|
}
|
|
1380
|
-
return (t, n) => (
|
|
2987
|
+
return (t, n) => (M(), T(on, {
|
|
1381
2988
|
startup: e.startup,
|
|
1382
2989
|
loading: e.loading,
|
|
1383
2990
|
error: e.error,
|
|
@@ -1394,7 +3001,7 @@ var _i = /* @__PURE__ */ I({
|
|
|
1394
3001
|
onRefreshPage: n[0] ||= (e) => r("refreshPage", e),
|
|
1395
3002
|
onUserCommand: n[1] ||= (e) => r("userCommand", e)
|
|
1396
3003
|
}, {
|
|
1397
|
-
default:
|
|
3004
|
+
default: I(({ pageDescriptor: e }) => [tr(t.$slots, "default", { pageDescriptor: e })]),
|
|
1398
3005
|
_: 3
|
|
1399
3006
|
}, 8, [
|
|
1400
3007
|
"startup",
|
|
@@ -1409,8 +3016,8 @@ var _i = /* @__PURE__ */ I({
|
|
|
1409
3016
|
});
|
|
1410
3017
|
//#endregion
|
|
1411
3018
|
//#region src/app/loginTenant.ts
|
|
1412
|
-
function
|
|
1413
|
-
let i =
|
|
3019
|
+
function eo(e, t = ro(), n = io(), r = "/") {
|
|
3020
|
+
let i = no(t, n === to(r));
|
|
1414
3021
|
return i ? {
|
|
1415
3022
|
tenantId: i,
|
|
1416
3023
|
tenantLocked: !0
|
|
@@ -1422,29 +3029,29 @@ function vi(e, t = xi(), n = Si(), r = "/") {
|
|
|
1422
3029
|
function Q(e) {
|
|
1423
3030
|
return e?.trim() ?? "";
|
|
1424
3031
|
}
|
|
1425
|
-
function
|
|
3032
|
+
function to(e) {
|
|
1426
3033
|
let t = `/${(e?.trim() || "/").replace(/^\/+|\/+$/g, "")}`.replace(/^\/\/+/g, "/") || "/";
|
|
1427
3034
|
return t === "/" ? t : `${t}/`;
|
|
1428
3035
|
}
|
|
1429
|
-
function
|
|
3036
|
+
function no(e, t) {
|
|
1430
3037
|
let n = new URLSearchParams(e.startsWith("?") ? e : `?${e}`), r = Q(n.get("_muyunTenantId"));
|
|
1431
3038
|
return r || !t ? r : Q(n.get("tenantId")) || Q(n.get("tenant"));
|
|
1432
3039
|
}
|
|
1433
|
-
function
|
|
3040
|
+
function ro() {
|
|
1434
3041
|
return typeof window > "u" ? "" : window.location.search;
|
|
1435
3042
|
}
|
|
1436
|
-
function
|
|
3043
|
+
function io() {
|
|
1437
3044
|
return typeof window > "u" ? "/" : window.location.pathname;
|
|
1438
3045
|
}
|
|
1439
3046
|
//#endregion
|
|
1440
3047
|
//#region src/app/LoginView.vue?vue&type=script&setup=true&lang.ts
|
|
1441
|
-
var
|
|
3048
|
+
var ao = { class: "login-page" }, oo = { class: "login-panel" }, so = { class: "login-brand" }, co = ["src"], lo = { key: 1 }, uo = { key: 0 }, fo = {
|
|
1442
3049
|
key: 1,
|
|
1443
3050
|
class: "login-subtitle"
|
|
1444
|
-
},
|
|
3051
|
+
}, po = {
|
|
1445
3052
|
key: 0,
|
|
1446
3053
|
class: "login-error"
|
|
1447
|
-
},
|
|
3054
|
+
}, mo = { key: 0 }, ho = /*#__PURE__*/ it(/* @__PURE__ */ j({
|
|
1448
3055
|
name: "LoginView",
|
|
1449
3056
|
__name: "LoginView",
|
|
1450
3057
|
props: {
|
|
@@ -1456,13 +3063,14 @@ var Ci = { class: "login-page" }, wi = { class: "login-panel" }, Ti = { class: "
|
|
|
1456
3063
|
},
|
|
1457
3064
|
emits: ["authenticated"],
|
|
1458
3065
|
setup(e, { emit: t }) {
|
|
1459
|
-
let n = e, r = t, i =
|
|
1460
|
-
|
|
1461
|
-
if (
|
|
3066
|
+
let n = e, r = t, i = eo(void 0), a = N(i.tenantId), o = i.tenantLocked, s = N(Q(n.initialUsername) || Q(void 0)), c = N(Q(void 0)), l = N(!1), u = N(), d = N(!1), f = N(), p = N(""), m = N(""), h = N(), g = N(!1), _ = N(), ee = w(() => !o || !g.value && !_.value), te = w(() => h.value?.mode !== "logoOnly"), ne = w(() => h.value?.title || "平台登录"), re = w(() => h.value?.subtitle);
|
|
3067
|
+
Qn(async () => {
|
|
3068
|
+
if (o && a.value) {
|
|
1462
3069
|
g.value = !0;
|
|
1463
3070
|
try {
|
|
1464
3071
|
if (!n.loginContextClient) throw Error("login context client is unavailable");
|
|
1465
|
-
|
|
3072
|
+
let e = await n.loginContextClient.loginContext(a.value);
|
|
3073
|
+
h.value = e.branding;
|
|
1466
3074
|
} catch {
|
|
1467
3075
|
_.value = "无法打开该租户的登录入口";
|
|
1468
3076
|
} finally {
|
|
@@ -1470,7 +3078,7 @@ var Ci = { class: "login-page" }, wi = { class: "login-panel" }, Ti = { class: "
|
|
|
1470
3078
|
}
|
|
1471
3079
|
}
|
|
1472
3080
|
});
|
|
1473
|
-
async function
|
|
3081
|
+
async function v() {
|
|
1474
3082
|
u.value = void 0, l.value = !0;
|
|
1475
3083
|
try {
|
|
1476
3084
|
let e = await n.authClient.login({
|
|
@@ -1484,12 +3092,15 @@ var Ci = { class: "login-page" }, wi = { class: "login-panel" }, Ti = { class: "
|
|
|
1484
3092
|
}
|
|
1485
3093
|
r("authenticated", e);
|
|
1486
3094
|
} catch (e) {
|
|
1487
|
-
u.value = e
|
|
3095
|
+
u.value = ie(e);
|
|
1488
3096
|
} finally {
|
|
1489
3097
|
l.value = !1;
|
|
1490
3098
|
}
|
|
1491
3099
|
}
|
|
1492
|
-
|
|
3100
|
+
function ie(e) {
|
|
3101
|
+
return e instanceof Ke ? e.code === ht.networkError || e.code === ht.httpError || (e.status ?? 0) >= 500 ? "无法连接后端服务,请确认服务已启动后重试" : e.code === ht.loginBadCredentials ? "用户名或密码错误" : e.message : e instanceof Error ? e.message : "登录失败,请稍后重试";
|
|
3102
|
+
}
|
|
3103
|
+
async function ae() {
|
|
1493
3104
|
if (u.value = void 0, !f.value) {
|
|
1494
3105
|
u.value = "登录状态已失效,请重新登录", d.value = !1;
|
|
1495
3106
|
return;
|
|
@@ -1503,100 +3114,102 @@ var Ci = { class: "login-page" }, wi = { class: "login-panel" }, Ti = { class: "
|
|
|
1503
3114
|
await n.authClient.changeOwnPassword({
|
|
1504
3115
|
currentPassword: c.value,
|
|
1505
3116
|
newPassword: p.value
|
|
1506
|
-
}, f.value), c.value = p.value
|
|
3117
|
+
}, f.value), c.value = p.value;
|
|
3118
|
+
let e = await n.authClient.login({
|
|
1507
3119
|
tenantId: a.value,
|
|
1508
3120
|
username: s.value,
|
|
1509
3121
|
password: p.value
|
|
1510
|
-
})
|
|
3122
|
+
});
|
|
3123
|
+
r("authenticated", e);
|
|
1511
3124
|
} catch (e) {
|
|
1512
3125
|
u.value = e instanceof Error ? e.message : "Password change failed";
|
|
1513
3126
|
} finally {
|
|
1514
3127
|
l.value = !1;
|
|
1515
3128
|
}
|
|
1516
3129
|
}
|
|
1517
|
-
return (t, n) => (
|
|
1518
|
-
|
|
3130
|
+
return (t, n) => (M(), D("main", ao, [O("section", oo, [
|
|
3131
|
+
O("header", null, [O("div", so, [h.value?.lightLogo ? (M(), D("img", {
|
|
1519
3132
|
key: 0,
|
|
1520
3133
|
class: "login-logo",
|
|
1521
3134
|
src: h.value.lightLogo,
|
|
1522
3135
|
alt: ""
|
|
1523
|
-
}, null, 8,
|
|
1524
|
-
h.value?.lightLogo ?
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
])) :
|
|
1528
|
-
u.value || e.error || _.value ? (
|
|
1529
|
-
d.value ? (
|
|
3136
|
+
}, null, 8, co)) : E("v-if", !0), te.value ? (M(), D("div", lo, [
|
|
3137
|
+
h.value?.lightLogo ? E("v-if", !0) : (M(), D("p", uo, "MuYun Platform")),
|
|
3138
|
+
O("h1", null, P(ne.value), 1),
|
|
3139
|
+
re.value ? (M(), D("p", fo, P(re.value), 1)) : E("v-if", !0)
|
|
3140
|
+
])) : E("v-if", !0)])]),
|
|
3141
|
+
u.value || e.error || _.value ? (M(), D("p", po, P(u.value || e.error || _.value), 1)) : E("v-if", !0),
|
|
3142
|
+
d.value ? (M(), D("form", {
|
|
1530
3143
|
key: 2,
|
|
1531
3144
|
class: "login-form",
|
|
1532
|
-
onSubmit:
|
|
3145
|
+
onSubmit: ir(ae, ["prevent"])
|
|
1533
3146
|
}, [
|
|
1534
|
-
n[10] ||=
|
|
1535
|
-
|
|
3147
|
+
n[10] ||= O("p", { class: "login-context" }, "当前密码需要修改后才能进入系统", -1),
|
|
3148
|
+
O("label", null, [n[8] ||= O("span", null, "新密码", -1), k(F(y), {
|
|
1536
3149
|
value: p.value,
|
|
1537
3150
|
"onUpdate:value": n[3] ||= (e) => p.value = e,
|
|
1538
3151
|
type: "password",
|
|
1539
3152
|
autocomplete: "new-password",
|
|
1540
3153
|
required: ""
|
|
1541
3154
|
}, null, 8, ["value"])]),
|
|
1542
|
-
|
|
3155
|
+
O("label", null, [n[9] ||= O("span", null, "确认新密码", -1), k(F(y), {
|
|
1543
3156
|
value: m.value,
|
|
1544
3157
|
"onUpdate:value": n[4] ||= (e) => m.value = e,
|
|
1545
3158
|
type: "password",
|
|
1546
3159
|
autocomplete: "new-password",
|
|
1547
3160
|
required: ""
|
|
1548
3161
|
}, null, 8, ["value"])]),
|
|
1549
|
-
F(
|
|
3162
|
+
k(F(ze), {
|
|
1550
3163
|
class: "login-submit",
|
|
1551
3164
|
"html-type": "submit",
|
|
1552
3165
|
type: "primary",
|
|
1553
3166
|
loading: l.value || e.loading
|
|
1554
3167
|
}, {
|
|
1555
|
-
default:
|
|
3168
|
+
default: I(() => [Jn(P(l.value || e.loading ? "保存中" : "修改密码"), 1)]),
|
|
1556
3169
|
_: 1
|
|
1557
3170
|
}, 8, ["loading"])
|
|
1558
|
-
], 32)) : (
|
|
3171
|
+
], 32)) : (M(), D("form", {
|
|
1559
3172
|
key: 1,
|
|
1560
3173
|
class: "login-form",
|
|
1561
|
-
onSubmit:
|
|
3174
|
+
onSubmit: ir(v, ["prevent"])
|
|
1562
3175
|
}, [
|
|
1563
|
-
|
|
3176
|
+
F(o) ? E("v-if", !0) : (M(), D("label", mo, [n[5] ||= O("span", null, "租户 ID", -1), k(F(y), {
|
|
1564
3177
|
value: a.value,
|
|
1565
3178
|
"onUpdate:value": n[0] ||= (e) => a.value = e,
|
|
1566
3179
|
autocomplete: "organization",
|
|
1567
3180
|
placeholder: "留空进入系统工作区"
|
|
1568
3181
|
}, null, 8, ["value"])])),
|
|
1569
|
-
|
|
3182
|
+
O("label", null, [n[6] ||= O("span", null, "用户名", -1), k(F(y), {
|
|
1570
3183
|
value: s.value,
|
|
1571
3184
|
"onUpdate:value": n[1] ||= (e) => s.value = e,
|
|
1572
3185
|
autocomplete: "username",
|
|
1573
3186
|
required: ""
|
|
1574
3187
|
}, null, 8, ["value"])]),
|
|
1575
|
-
|
|
3188
|
+
O("label", null, [n[7] ||= O("span", null, "密码", -1), k(F(y), {
|
|
1576
3189
|
value: c.value,
|
|
1577
3190
|
"onUpdate:value": n[2] ||= (e) => c.value = e,
|
|
1578
3191
|
type: "password",
|
|
1579
3192
|
autocomplete: "current-password",
|
|
1580
3193
|
required: ""
|
|
1581
3194
|
}, null, 8, ["value"])]),
|
|
1582
|
-
F(
|
|
3195
|
+
k(F(ze), {
|
|
1583
3196
|
class: "login-submit",
|
|
1584
3197
|
"html-type": "submit",
|
|
1585
3198
|
type: "primary",
|
|
1586
3199
|
disabled: !ee.value,
|
|
1587
3200
|
loading: l.value || e.loading || g.value
|
|
1588
3201
|
}, {
|
|
1589
|
-
default:
|
|
3202
|
+
default: I(() => [Jn(P(l.value || e.loading ? "登录中" : "登录"), 1)]),
|
|
1590
3203
|
_: 1
|
|
1591
3204
|
}, 8, ["disabled", "loading"])
|
|
1592
3205
|
], 32))
|
|
1593
3206
|
])]));
|
|
1594
3207
|
}
|
|
1595
|
-
}), [["__scopeId", "data-v-
|
|
3208
|
+
}), [["__scopeId", "data-v-76190b2a"]]);
|
|
1596
3209
|
//#endregion
|
|
1597
3210
|
//#region src/consumer/userPreferencePersistence.ts
|
|
1598
|
-
function
|
|
1599
|
-
|
|
3211
|
+
function go(e) {
|
|
3212
|
+
ee({
|
|
1600
3213
|
load: async (t) => (await e().request({
|
|
1601
3214
|
path: `/platform.user-preference/${encodeURIComponent(t)}`,
|
|
1602
3215
|
query: { clientType: "WEB" }
|
|
@@ -1618,10 +3231,10 @@ function Ni(e) {
|
|
|
1618
3231
|
}
|
|
1619
3232
|
//#endregion
|
|
1620
3233
|
//#region src/app/ChangeOwnPasswordDialog.vue?vue&type=script&setup=true&lang.ts
|
|
1621
|
-
var
|
|
3234
|
+
var _o = { class: "change-own-password-fields" }, vo = {
|
|
1622
3235
|
key: 0,
|
|
1623
3236
|
class: "change-own-password-error"
|
|
1624
|
-
},
|
|
3237
|
+
}, yo = /*#__PURE__*/ it(/* @__PURE__ */ j({
|
|
1625
3238
|
name: "ChangeOwnPasswordDialog",
|
|
1626
3239
|
__name: "ChangeOwnPasswordDialog",
|
|
1627
3240
|
props: {
|
|
@@ -1647,7 +3260,7 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
|
|
|
1647
3260
|
],
|
|
1648
3261
|
setup(e, { emit: t }) {
|
|
1649
3262
|
let n = t;
|
|
1650
|
-
return (t, r) => (
|
|
3263
|
+
return (t, r) => (M(), T(F(o), {
|
|
1651
3264
|
open: e.open,
|
|
1652
3265
|
title: "修改密码",
|
|
1653
3266
|
"confirm-text": "保存",
|
|
@@ -1656,8 +3269,8 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
|
|
|
1656
3269
|
onConfirm: r[3] ||= (e) => n("submit"),
|
|
1657
3270
|
onCancel: r[4] ||= (e) => n("close")
|
|
1658
3271
|
}, {
|
|
1659
|
-
default:
|
|
1660
|
-
|
|
3272
|
+
default: I(() => [O("div", _o, [
|
|
3273
|
+
O("label", null, [r[5] ||= O("span", null, "当前密码", -1), k(F(y), {
|
|
1661
3274
|
value: e.currentPassword,
|
|
1662
3275
|
type: "password",
|
|
1663
3276
|
autocomplete: "current-password",
|
|
@@ -1665,7 +3278,7 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
|
|
|
1665
3278
|
placeholder: "请输入当前密码",
|
|
1666
3279
|
"onUpdate:value": r[0] ||= (e) => n("update:currentPassword", e)
|
|
1667
3280
|
}, null, 8, ["value", "disabled"])]),
|
|
1668
|
-
|
|
3281
|
+
O("label", null, [r[6] ||= O("span", null, "新密码", -1), k(F(y), {
|
|
1669
3282
|
value: e.newPassword,
|
|
1670
3283
|
type: "password",
|
|
1671
3284
|
autocomplete: "new-password",
|
|
@@ -1673,7 +3286,7 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
|
|
|
1673
3286
|
placeholder: "请输入新密码",
|
|
1674
3287
|
"onUpdate:value": r[1] ||= (e) => n("update:newPassword", e)
|
|
1675
3288
|
}, null, 8, ["value", "disabled"])]),
|
|
1676
|
-
|
|
3289
|
+
O("label", null, [r[7] ||= O("span", null, "确认新密码", -1), k(F(y), {
|
|
1677
3290
|
value: e.confirmPassword,
|
|
1678
3291
|
type: "password",
|
|
1679
3292
|
autocomplete: "new-password",
|
|
@@ -1681,7 +3294,7 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
|
|
|
1681
3294
|
placeholder: "请再次输入新密码",
|
|
1682
3295
|
"onUpdate:value": r[2] ||= (e) => n("update:confirmPassword", e)
|
|
1683
3296
|
}, null, 8, ["value", "disabled"])])
|
|
1684
|
-
]), e.error ? (
|
|
3297
|
+
]), e.error ? (M(), D("p", vo, P(e.error), 1)) : E("v-if", !0)]),
|
|
1685
3298
|
_: 1
|
|
1686
3299
|
}, 8, [
|
|
1687
3300
|
"open",
|
|
@@ -1689,22 +3302,22 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
|
|
|
1689
3302
|
"confirm-disabled"
|
|
1690
3303
|
]));
|
|
1691
3304
|
}
|
|
1692
|
-
}), [["__scopeId", "data-v-6905dcfc"]]),
|
|
3305
|
+
}), [["__scopeId", "data-v-6905dcfc"]]), bo = { class: "theme-skin-preferences" }, xo = {
|
|
1693
3306
|
key: 0,
|
|
1694
3307
|
class: "theme-skin-error",
|
|
1695
3308
|
role: "alert"
|
|
1696
|
-
},
|
|
3309
|
+
}, So = {
|
|
1697
3310
|
class: "theme-skin-grid",
|
|
1698
3311
|
role: "radiogroup",
|
|
1699
3312
|
"aria-label": "工作台皮肤"
|
|
1700
|
-
},
|
|
3313
|
+
}, Co = [
|
|
1701
3314
|
"aria-checked",
|
|
1702
3315
|
"tabindex",
|
|
1703
3316
|
"data-skin-id",
|
|
1704
3317
|
"disabled",
|
|
1705
3318
|
"onClick",
|
|
1706
3319
|
"onKeydown"
|
|
1707
|
-
],
|
|
3320
|
+
], wo = /*#__PURE__*/ it(/* @__PURE__ */ j({
|
|
1708
3321
|
name: "ThemeSkinPreferencesDialog",
|
|
1709
3322
|
__name: "ThemeSkinPreferencesDialog",
|
|
1710
3323
|
props: {
|
|
@@ -1735,7 +3348,7 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
|
|
|
1735
3348
|
let a = e.key === "Home" ? 0 : e.key === "End" ? i - 1 : (t + (e.key === "ArrowRight" || e.key === "ArrowDown" ? 1 : -1) + i) % i, o = r?.children.item(a), s = o?.dataset.skinId;
|
|
1736
3349
|
s && (n("select", s), o?.focus());
|
|
1737
3350
|
}
|
|
1738
|
-
return (t, i) => (
|
|
3351
|
+
return (t, i) => (M(), T(F(o), {
|
|
1739
3352
|
open: e.open,
|
|
1740
3353
|
title: "偏好设置",
|
|
1741
3354
|
width: 460,
|
|
@@ -1744,12 +3357,12 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
|
|
|
1744
3357
|
onConfirm: i[0] ||= (e) => n("close"),
|
|
1745
3358
|
onCancel: i[1] ||= (e) => n("close")
|
|
1746
3359
|
}, {
|
|
1747
|
-
default:
|
|
1748
|
-
i[3] ||=
|
|
1749
|
-
e.error ? (
|
|
1750
|
-
|
|
3360
|
+
default: I(() => [O("section", bo, [
|
|
3361
|
+
i[3] ||= O("header", null, [O("h2", null, "工作台皮肤"), O("p", null, "皮肤会同步保存到当前账号,并在下次启动时优先恢复。")], -1),
|
|
3362
|
+
e.error ? (M(), D("p", xo, P(e.error), 1)) : E("v-if", !0),
|
|
3363
|
+
O("div", So, [(M(!0), D(qn, null, er(e.skins, (t, a) => (M(), D("button", {
|
|
1751
3364
|
key: t.id,
|
|
1752
|
-
class:
|
|
3365
|
+
class: Yn(["theme-skin-card", { selected: t.id === e.activeSkinId }]),
|
|
1753
3366
|
type: "button",
|
|
1754
3367
|
role: "radio",
|
|
1755
3368
|
"aria-checked": t.id === e.activeSkinId,
|
|
@@ -1759,9 +3372,9 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
|
|
|
1759
3372
|
onClick: (e) => n("select", t.id),
|
|
1760
3373
|
onKeydown: (e) => r(e, a)
|
|
1761
3374
|
}, [
|
|
1762
|
-
|
|
3375
|
+
O("span", {
|
|
1763
3376
|
class: "theme-skin-preview",
|
|
1764
|
-
style:
|
|
3377
|
+
style: Xn({
|
|
1765
3378
|
"--skin-canvas": t.theme.support.canvas,
|
|
1766
3379
|
"--skin-surface": t.theme.support.surface,
|
|
1767
3380
|
"--skin-text": t.theme.support.text,
|
|
@@ -1769,13 +3382,13 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
|
|
|
1769
3382
|
"--skin-accent": t.theme.brandAccent.base
|
|
1770
3383
|
})
|
|
1771
3384
|
}, [...i[2] ||= [
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
3385
|
+
O("i", { class: "theme-skin-preview-sidebar" }, null, -1),
|
|
3386
|
+
O("i", { class: "theme-skin-preview-toolbar" }, null, -1),
|
|
3387
|
+
O("i", { class: "theme-skin-preview-card" }, null, -1)
|
|
1775
3388
|
]], 4),
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
], 42,
|
|
3389
|
+
O("strong", null, P(t.title), 1),
|
|
3390
|
+
O("small", null, P(t.description), 1)
|
|
3391
|
+
], 42, Co))), 128))])
|
|
1779
3392
|
])]),
|
|
1780
3393
|
_: 1
|
|
1781
3394
|
}, 8, [
|
|
@@ -1785,11 +3398,11 @@ var Pi = { class: "change-own-password-fields" }, Fi = {
|
|
|
1785
3398
|
]));
|
|
1786
3399
|
}
|
|
1787
3400
|
}), [["__scopeId", "data-v-5d36f806"]]), $ = "workbench.theme-skin";
|
|
1788
|
-
async function
|
|
1789
|
-
let n =
|
|
1790
|
-
return await e.set($,
|
|
3401
|
+
async function To(e, t) {
|
|
3402
|
+
let n = await e.restore($, t, { persistence: "backend" }), r = Me(n).id;
|
|
3403
|
+
return await e.set($, r, { persistence: "local" }), r;
|
|
1791
3404
|
}
|
|
1792
|
-
async function
|
|
3405
|
+
async function Eo(e, t, n) {
|
|
1793
3406
|
await e.set($, t, { persistence: "local" });
|
|
1794
3407
|
try {
|
|
1795
3408
|
return await e.set($, t, { persistence: "backend" }), { skinId: t };
|
|
@@ -1801,4 +3414,4 @@ async function Ui(e, t, n) {
|
|
|
1801
3414
|
}
|
|
1802
3415
|
}
|
|
1803
3416
|
//#endregion
|
|
1804
|
-
export {
|
|
3417
|
+
export { Ke as AppError, $a as AppWorkbenchShell, le as BusinessNotificationPanel, yo as ChangeOwnPasswordDialog, pe as DateTimeText, f as DrawerOperationBar, yn as DynamicModuleWorkspaceDetailView, vt as FileSizeText, xt as FileTransferUploader, ho as LoginView, et as ModuleContextProvider, Ge as ModuleHttpProvider, xn as ModuleReferenceRecordDetailBrowser, Za as PlatformAdminOutlet, oa as PlatformAdminRouteOutlet, v as ReadonlyReferenceValue, lt as RecordDetailDrawer, de as ReferencePicker, p as ReferencePickerReadError, xe as ReferenceRecordDetailBrowser, gt as SingleImageFileReferenceField, wo as ThemeSkinPreferencesDialog, ze as UiButton, _ as UiDataTable, y as UiInput, we as UiSidePanel, re as UiSwitch, st as UiTextArea, Ae as UiThemeProvider, Ee as UiTree, dt as UiTreeSelect, Ui as VueQueryPlugin, on as Workbench, Kt as WorkbenchMenu, Fn as WorkbenchOutlet, hn as WorkspaceViewOutlet, $e as actionResultData, ga as activeTabUrlOf, wa as arrangeLockedMenuTabs, sn as buildWorkbenchMegaMenuModel, ce as canQueryRecycleBin, Tn as canonicalDynamicModulePath, It as clearAuthToken, Ue as configureModuleContext, mn as configureModulePageEnhancementContributions, Hn as configureModulePageEnhancements, go as configureUserPreferencePersistence, Zt as configureWorkspaceViewContributions, te as confirmAction, Lt as connectAppRealtime, ge as connectRealtimeBusinessEvents, Tt as connectRealtimeBusinessNotifications, a as connectRealtimeDataChanges, Ce as connectRealtimeUserNotifications, g as contextDataChangeChannel, An as createAuthClient, Rt as createBackendHttpClient, ye as createBrowserFileTransferUpload, At as createDataChangeDispatcher, Ot as createHttpClient, In as createLoginContextClient, _e as createManagedDetailRelationClient, wn as createMenuClient, $t as createMenuTab, Ne as createModuleContext, s as createModuleCrudClient, Wn as createModulePageEnhancementRegistry, _t as createModuleTreeClient, mt as createModuleTreeContext, be as createNavigatorReferenceCrudClient, d as createNavigatorReferenceTreeClient, gn as createPageBootstrapClient, Wi as createQueryClient, Se as createRealtimeClient, Bn as createReferenceResolveClient, Mn as createSessionClient, u as createStaticModuleCrudClient, ue as createStaticModuleTreeClient, Ze as createStaticResourceCrudClient, r as createStaticResourceTreeClient, Jt as createWorkbenchMenuNodes, Pn as createWorkspaceViewDescriptor, Xt as createWorkspaceViewRegistry, Te as dataChangeChannel, Oe as defaultUiThemeSkinId, Gn as defineWorkspaceView, Bt as disconnectAppRealtime, fn as dismissWorkspaceViewDescriptor, en as dynamicModuleAliasFromPath, Ft as effectiveAuthToken, qt as filterWorkbenchMenuNodes, nn as findFirstNavigationMenu, tn as findWorkbenchMenuNodeById, En as findWorkbenchMenuPath, Wt as firstDeepRootIdOf, b as getMenuNavigationTarget, bt as hasExecutableDetailRelationMutationContract, ve as hasExecutableDetailRelationQueryContract, fe as hasRecycleBinAbility, h as imConversationMessageChannel, ie as imMessageSendCommand, Ki as invokeBusinessNotificationRecordAction, Et as isHttpStreamClient, ta as isPlatformAdminRoutePage, Yt as isTabMenuTarget, We as isUnexpectedPlatformError, Qt as isWindowMenuTarget, m as moduleAbilityCodes, ot as moduleDataChangeChannel, _n as modulePageWorkspaceViews, kt as normalizeChangeSet, Pe as normalizeError, Rn as normalizeMenuMineResponse, Ye as normalizeModulePageResponse, oe as normalizeModuleRecord, ne as organizationPublicDataChangeChannel, ke as organizationPublicNotificationChannel, pn as pageActionEntryDescription, rn as pageActionEntryTitle, Ut as pageActionEntryVisible, bn as pageActionIntent, an as pageDescriptorFromUrl, C as pageDescriptorToUrl, Gt as pageInstanceKeyOf, Qi as platformAdminModuleRoutes, $i as platformAdminRouteLayouts, Zi as platformAdminRoutePrefixes, J as platformAdminRoutes, ht as platformErrorCodes, De as platformPingCommand, Qe as presentPlatformError, i as presentPlatformInfo, Xe as presentPlatformMessage, se as presentPlatformSuccess, Un as presentWorkbenchRealtimeStatus, On as provideCurrentUserContext, St as provideModuleContextConfig, vn as provideWorkbenchNavigation, jn as provideWorkspaceViewHost, Gi as queryKeys, je as realtimeDestinations, me as realtimeMessageTypes, n as recordDataChangeChannel, Nn as refreshModulePageList, Y as removeLockedMenuTabs, Ct as resolveGlobalErrorPresentation, ln as resolvePageDescriptor, ea as resolvePlatformAdminRoute, pt as resolveWebActionResult, Be as resolveWebActionResultMessage, dn as resolveWorkspaceView, Ve as resourceDataChangeChannel, ft as resourceRecordDataChangeChannel, Ja as restoreLockedTabPreference, Ea as restoreLockedWorkbenchTabs, To as restoreThemeSkinPreference, _a as restoreWorkbenchStartupStateFromUrl, Dn as routeUrlWithOpenOptions, jt as saveAuthSessionId, Vt as saveAuthToken, Ya as saveLockedTabPreference, Eo as saveThemeSkinPreference, nt as sessionActivityCommand, Ht as storedAuthSessionId, Mt as storedAuthToken, Nt as subscribeAppBusinessEvents, Pt as subscribeAppDataChanges, zt as subscribeAppModuleDataChanges, Cn as syncModulePageWorkspaceViewContributions, S as tabIdentityKeyOf, cn as tabKeyOf, ct as tenantPublicDataChangeChannel, Je as tenantPublicNotificationChannel, $ as themeSkinPreferenceKey, un as tryPageDescriptorFromUrl, Me as uiThemeSkinById, he as uiThemeSkins, l as unwrapResponsePayload, ka as updateLockedMenuTabs, wt as uploadedFileId, Sn as useCurrentUserContext, Ie as useModuleContext, yt as useModuleTreeContext, Vn as useWorkbenchNavigation, Ln as useWorkspaceViewHost, kn as useWorkspaceViewNavigation, zn as useWorkspaceViewUnsavedState, Fe as userBusinessEventChannel, rt as userBusinessNotificationChannel, Le as userFacingErrorMessage, ut as userImMessageChannel, Re as userNotificationChannel, ae as userPreferences, He as webDataChangeKey, c as webDataChangeTypes, at as webDataChanges, Dt as withHttpHeaders, x as withPageInstanceKey, tt as withWebActionResultChanges };
|