@fses/workbench-app 0.2.16 → 0.2.17
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/WORKBENCH-CLOSURE.json +18 -12
- package/dist/Workspace-r8ayksVF.js +23176 -0
- package/dist/canvas/api/index.js +1 -1
- package/dist/{canvasFacade-B2EHgdqA.js → canvasFacade-B8jYm_aO.js} +748 -748
- package/dist/cardFactory-DmEBcCf4.js +1460 -0
- package/dist/extensions/index.js +1 -1
- package/dist/fses-workbench-app.js +5 -5
- package/dist/{index-CMM-5ObU.js → index-DEOR_GPc.js} +350 -346
- package/dist/internal/personal-workbench/fde-skill-cards/runtime/fdeSkillProtocolChartDisplayData.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/assistantPersonaProfiles.d.ts +6 -6
- package/dist/internal/personal-workbench/lib/cardStyleConfig.d.ts +26 -26
- package/dist/internal/personal-workbench/lib/echartsOptionEditorBridge.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/historyCardBindingRestore.fixture.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/runtimePrimitiveRegistry.d.ts +1 -1
- package/dist/internal/personal-workbench/lib/vueRuntimeAdapters.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/workbenchCanvasBusinessGapChecklist.d.ts +1 -1
- package/dist/internal/personal-workbench/lib/workbenchCardRecommendationFallback.d.ts +1 -1
- package/dist/internal/personal-workbench/lib/workbenchCardRecommendationReturnItemUpsert.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/workbenchDataBindingBadge.d.ts +0 -5
- package/dist/internal/personal-workbench/lib/workbenchImageComposeEntry.d.ts +1 -1
- package/dist/internal/personal-workbench/lib/workbenchLayout.d.ts +0 -5
- package/dist/runtime/index.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{useWorkbenchRuntime-DLf_FgC7.js → useWorkbenchRuntime-DDD22mdF.js} +7817 -7813
- package/dist/version.d.ts +1 -1
- package/dist/{workbenchCustomComponentRegistry-Bt94Lgko.js → workbenchCustomComponentRegistry-CWUPjCnJ.js} +74 -74
- package/node_modules/@byteluck-fe/locale-message/README.md +2 -0
- package/node_modules/@byteluck-fe/locale-message/dist/index.d.ts +37 -0
- package/node_modules/@byteluck-fe/locale-message/dist/locale-message.js +55 -0
- package/node_modules/@byteluck-fe/locale-message/package.json +37 -0
- package/node_modules/@fses/ai-chat/dist/components/ContextUsageRing.vue.d.ts +5 -0
- package/node_modules/@fses/ai-chat/dist/components/FsesAiChat.vue.d.ts +5 -0
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.js +5446 -5321
- package/node_modules/@fses/ai-chat/dist/fses-ai-chat.umd.cjs +16 -18
- package/node_modules/@fses/ai-chat/dist/style.css +1 -1
- package/node_modules/@fses/ai-chat/dist/utils/attachment-upload.d.ts +0 -5
- package/node_modules/@fses/ai-chat/package.json +6 -5
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card-renderers.js +10144 -9914
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card.js +1517 -1503
- package/node_modules/@fses/workbench-card/dist/fses-workbench-card.umd.cjs +1 -1
- package/node_modules/@fses/workbench-card/dist/renderers/chart/chartRendererRegistry.d.ts +97 -97
- package/node_modules/@fses/workbench-card/dist/renderers/style.css +1 -1
- package/node_modules/@fses/workbench-card/package.json +4 -1
- package/node_modules/@fses/workbench-card/src/registry/cardRegistry.ts +99 -98
- package/node_modules/@fses/workbench-card/src/registry/compositeCardPatterns.ts +31 -30
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateCategories.ts +24 -23
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.js +765 -764
- package/node_modules/@fses/workbench-card/src/registry/echartsTemplateRegistry.generated.ts +765 -764
- package/node_modules/@fses/workbench-card/src/renderers/WorkbenchBlockRenderer.vue +143 -129
- package/node_modules/@fses/workbench-card/src/renderers/chart/ChartRegistry.vue +4 -3
- package/node_modules/@fses/workbench-card/src/renderers/chart/EChartsProtocolRenderer.vue +2 -1
- package/node_modules/@fses/workbench-card/src/renderers/chart/chartRendererRegistry.ts +99 -98
- package/node_modules/@fses/workbench-card/src/renderers/chart/useEchart.ts +30 -29
- package/node_modules/@fses/workbench-card/src/renderers/native/nativeBindings.ts +11 -10
- package/node_modules/@fses/workbench-card/src/renderers/nested/nestedBlockBindings.ts +102 -101
- package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceCompositeBindings.ts +364 -363
- package/node_modules/@fses/workbench-card/src/renderers/reference-composite/referenceRiskAndStrategyBindings.ts +90 -89
- package/node_modules/@fses/workbench-card/src/renderers/useWorkbenchBlockRendererBindings.ts +33 -32
- package/package.json +4 -3
- package/dist/Workspace-CfKvji6S.js +0 -22896
- package/dist/cardFactory-BK3CA-Gn.js +0 -1443
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { toRefs as
|
|
2
|
-
import { d as
|
|
3
|
-
import "./canvasFacade-
|
|
4
|
-
import { b as
|
|
5
|
-
import "./workbenchCustomComponentRegistry-
|
|
6
|
-
const
|
|
7
|
-
function
|
|
8
|
-
if (typeof document > "u" || document.querySelector(`meta[name="${
|
|
1
|
+
import { toRefs as ne, shallowReadonly as F, inject as oe, defineComponent as T, provide as ae, openBlock as w, createElementBlock as k, renderSlot as y, createElementVNode as C, normalizeClass as L, normalizeStyle as R, withModifiers as se, unref as _, createCommentVNode as P, createVNode as G, Transition as ie, withCtx as A, computed as de, createBlock as Y, defineAsyncComponent as ce } from "vue";
|
|
2
|
+
import { d as o, e as le } from "./cardFactory-DmEBcCf4.js";
|
|
3
|
+
import "./canvasFacade-B8jYm_aO.js";
|
|
4
|
+
import { b as ue } from "./useWorkbenchRuntime-DDD22mdF.js";
|
|
5
|
+
import "./workbenchCustomComponentRegistry-CWUPjCnJ.js";
|
|
6
|
+
const fe = "0.2.17", U = "workbench-app-version";
|
|
7
|
+
function me() {
|
|
8
|
+
if (typeof document > "u" || document.querySelector(`meta[name="${U}"]`)) return !1;
|
|
9
9
|
const e = document.createElement("meta");
|
|
10
|
-
return e.name =
|
|
10
|
+
return e.name = U, e.content = fe, document.head.appendChild(e), !0;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
function
|
|
15
|
-
const { adapters: r, config: t, extensions: n } =
|
|
12
|
+
me();
|
|
13
|
+
const J = Symbol("workbench-app-context");
|
|
14
|
+
function he(e) {
|
|
15
|
+
const { adapters: r, config: t, extensions: n } = ne(e);
|
|
16
16
|
return {
|
|
17
|
-
adapters:
|
|
18
|
-
config:
|
|
19
|
-
extensions:
|
|
17
|
+
adapters: F(r),
|
|
18
|
+
config: F(t),
|
|
19
|
+
extensions: F(n)
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
const e =
|
|
22
|
+
function nr() {
|
|
23
|
+
const e = oe(J);
|
|
24
24
|
if (!e)
|
|
25
25
|
throw new Error("useWorkbenchAppContext must be used inside WorkbenchWorkspaceCore");
|
|
26
26
|
return e;
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const be = { class: "fses-workbench-app" }, pe = /* @__PURE__ */ T({
|
|
29
29
|
__name: "WorkbenchWorkspaceCore",
|
|
30
30
|
props: {
|
|
31
31
|
adapters: {},
|
|
@@ -33,11 +33,11 @@ const he = { class: "fses-workbench-app" }, pe = /* @__PURE__ */ T({
|
|
|
33
33
|
extensions: {}
|
|
34
34
|
},
|
|
35
35
|
setup(e) {
|
|
36
|
-
return
|
|
36
|
+
return ae(J, he(e)), (t, n) => (w(), k("div", be, [
|
|
37
37
|
y(t.$slots, "default")
|
|
38
38
|
]));
|
|
39
39
|
}
|
|
40
|
-
}), ye = { class: "workbench-shell" },
|
|
40
|
+
}), ye = { class: "workbench-shell" }, ge = ["aria-label"], we = ["aria-hidden", "inert"], Ae = { class: "workbench-studio-panel__body" }, Ie = ["aria-label"], V = 48, ke = /* @__PURE__ */ T({
|
|
41
41
|
__name: "WorkbenchShell",
|
|
42
42
|
props: {
|
|
43
43
|
studioPanelWidth: {},
|
|
@@ -52,55 +52,57 @@ const he = { class: "fses-workbench-app" }, pe = /* @__PURE__ */ T({
|
|
|
52
52
|
emits: ["startDrag"],
|
|
53
53
|
setup(e, { emit: r }) {
|
|
54
54
|
const t = r;
|
|
55
|
-
return (n,
|
|
56
|
-
|
|
57
|
-
class:
|
|
55
|
+
return (n, a) => (w(), k("div", ye, [
|
|
56
|
+
C("div", {
|
|
57
|
+
class: L(["workbench-shell__body", { "workbench-shell__body--dragging": e.dragging }])
|
|
58
58
|
}, [
|
|
59
|
-
|
|
59
|
+
C("div", {
|
|
60
60
|
class: "workbench-shell__canvas-pane",
|
|
61
61
|
style: R({
|
|
62
|
-
flexBasis: e.drawerOpen ? `calc(100% - ${e.drawerWidth || 392}px)` : e.canvasFocusMode || !e.studioPanelEnabled ? "100%" : e.studioPanelCollapsed ? `calc(100% - ${
|
|
62
|
+
flexBasis: e.drawerOpen ? `calc(100% - ${e.drawerWidth || 392}px)` : e.canvasFocusMode || !e.studioPanelEnabled ? "100%" : e.studioPanelCollapsed ? `calc(100% - ${V}px)` : `calc(100% - ${e.studioPanelWidth}px - 8px)`
|
|
63
63
|
})
|
|
64
64
|
}, [
|
|
65
65
|
y(n.$slots, "left", {}, void 0, !0)
|
|
66
66
|
], 4),
|
|
67
|
-
e.studioPanelEnabled && !e.studioPanelCollapsed && !e.canvasFocusMode && !e.drawerOpen ? (
|
|
67
|
+
e.studioPanelEnabled && !e.studioPanelCollapsed && !e.canvasFocusMode && !e.drawerOpen ? (w(), k("div", {
|
|
68
68
|
key: 0,
|
|
69
69
|
"aria-orientation": "vertical",
|
|
70
|
-
"aria-label": "
|
|
70
|
+
"data-i18n-aria-label": "FWA.8cb91787571066462",
|
|
71
|
+
"aria-label": _(o)("FWA.8cb91787571066462"),
|
|
71
72
|
class: "workbench-splitter",
|
|
72
73
|
role: "separator",
|
|
73
|
-
onPointerdown:
|
|
74
|
-
onDragstart:
|
|
74
|
+
onPointerdown: a[0] || (a[0] = (c) => t("startDrag", c)),
|
|
75
|
+
onDragstart: a[1] || (a[1] = se(() => {
|
|
75
76
|
}, ["prevent"]))
|
|
76
|
-
}, [...
|
|
77
|
-
|
|
78
|
-
])],
|
|
79
|
-
e.studioPanelEnabled && !e.canvasFocusMode && !e.drawerOpen ? (
|
|
77
|
+
}, [...a[2] || (a[2] = [
|
|
78
|
+
C("div", { class: "workbench-splitter__track" }, null, -1)
|
|
79
|
+
])], 40, ge)) : P("", !0),
|
|
80
|
+
e.studioPanelEnabled && !e.canvasFocusMode && !e.drawerOpen ? (w(), k("div", {
|
|
80
81
|
key: 1,
|
|
81
|
-
class:
|
|
82
|
+
class: L(["workbench-studio-panel", { "workbench-studio-panel--collapsed": e.studioPanelCollapsed }]),
|
|
82
83
|
style: R({ flexBasis: e.studioPanelCollapsed ? "0px" : `${e.studioPanelWidth}px` }),
|
|
83
84
|
"aria-hidden": e.studioPanelCollapsed ? "true" : void 0,
|
|
84
85
|
inert: e.studioPanelCollapsed ? !0 : void 0
|
|
85
86
|
}, [
|
|
86
|
-
|
|
87
|
+
C("div", Ae, [
|
|
87
88
|
y(n.$slots, "right", {}, void 0, !0)
|
|
88
89
|
])
|
|
89
|
-
], 14,
|
|
90
|
-
|
|
91
|
-
default:
|
|
92
|
-
e.studioPanelEnabled && e.studioPanelCollapsed && !e.canvasFocusMode && !e.drawerOpen ? (
|
|
90
|
+
], 14, we)) : P("", !0),
|
|
91
|
+
G(ie, { name: "workbench-assistant-rail-shell" }, {
|
|
92
|
+
default: A(() => [
|
|
93
|
+
e.studioPanelEnabled && e.studioPanelCollapsed && !e.canvasFocusMode && !e.drawerOpen ? (w(), k("div", {
|
|
93
94
|
key: 0,
|
|
94
95
|
class: "workbench-assistant-rail-shell",
|
|
95
|
-
style: R({ flexBasis: `${
|
|
96
|
-
"aria-label": "
|
|
96
|
+
style: R({ flexBasis: `${V}px` }),
|
|
97
|
+
"data-i18n-aria-label": "FWA.f0e91787570935726",
|
|
98
|
+
"aria-label": _(o)("FWA.f0e91787570935726")
|
|
97
99
|
}, [
|
|
98
100
|
y(n.$slots, "collapsed-right", {}, void 0, !0)
|
|
99
|
-
],
|
|
101
|
+
], 12, Ie)) : P("", !0)
|
|
100
102
|
]),
|
|
101
103
|
_: 3
|
|
102
104
|
}),
|
|
103
|
-
e.drawerOpen ? (
|
|
105
|
+
e.drawerOpen ? (w(), k("div", {
|
|
104
106
|
key: 2,
|
|
105
107
|
class: "workbench-shell__drawer",
|
|
106
108
|
style: R({ flexBasis: `${e.drawerWidth || 392}px` })
|
|
@@ -110,12 +112,12 @@ const he = { class: "fses-workbench-app" }, pe = /* @__PURE__ */ T({
|
|
|
110
112
|
], 2)
|
|
111
113
|
]));
|
|
112
114
|
}
|
|
113
|
-
}),
|
|
115
|
+
}), Se = (e, r) => {
|
|
114
116
|
const t = e.__vccOpts || e;
|
|
115
|
-
for (const [n,
|
|
116
|
-
t[n] =
|
|
117
|
+
for (const [n, a] of r)
|
|
118
|
+
t[n] = a;
|
|
117
119
|
return t;
|
|
118
|
-
},
|
|
120
|
+
}, We = /* @__PURE__ */ Se(ke, [["__scopeId", "data-v-1cfa390d"]]), or = /* @__PURE__ */ T({
|
|
119
121
|
__name: "WorkbenchAppHost",
|
|
120
122
|
props: {
|
|
121
123
|
adapters: {},
|
|
@@ -124,7 +126,7 @@ const he = { class: "fses-workbench-app" }, pe = /* @__PURE__ */ T({
|
|
|
124
126
|
runtime: {}
|
|
125
127
|
},
|
|
126
128
|
setup(e) {
|
|
127
|
-
const r = e, t =
|
|
129
|
+
const r = e, t = de(() => ({
|
|
128
130
|
canvasFocusMode: r.runtime.canvasFocusMode ?? !1,
|
|
129
131
|
drawerOpen: r.runtime.drawerOpen ?? !1,
|
|
130
132
|
drawerWidth: r.runtime.drawerWidth,
|
|
@@ -134,13 +136,13 @@ const he = { class: "fses-workbench-app" }, pe = /* @__PURE__ */ T({
|
|
|
134
136
|
studioPanelEnabled: r.runtime.studioPanelEnabled ?? !0,
|
|
135
137
|
studioPanelWidth: r.runtime.studioPanelWidth ?? 420
|
|
136
138
|
}));
|
|
137
|
-
return (n,
|
|
139
|
+
return (n, a) => (w(), Y(pe, {
|
|
138
140
|
adapters: r.adapters,
|
|
139
141
|
config: r.config,
|
|
140
142
|
extensions: r.extensions
|
|
141
143
|
}, {
|
|
142
|
-
default:
|
|
143
|
-
|
|
144
|
+
default: A(() => [
|
|
145
|
+
G(We, {
|
|
144
146
|
"canvas-focus-mode": t.value.canvasFocusMode,
|
|
145
147
|
"drawer-open": t.value.drawerOpen,
|
|
146
148
|
"drawer-width": t.value.drawerWidth,
|
|
@@ -149,21 +151,21 @@ const he = { class: "fses-workbench-app" }, pe = /* @__PURE__ */ T({
|
|
|
149
151
|
"studio-panel-collapsed": t.value.studioPanelCollapsed,
|
|
150
152
|
"studio-panel-enabled": t.value.studioPanelEnabled,
|
|
151
153
|
"studio-panel-width": t.value.studioPanelWidth,
|
|
152
|
-
onStartDrag:
|
|
153
|
-
var
|
|
154
|
-
return (
|
|
154
|
+
onStartDrag: a[0] || (a[0] = (c) => {
|
|
155
|
+
var b, g;
|
|
156
|
+
return (g = (b = r.runtime).startStudioPanelDrag) == null ? void 0 : g.call(b, c);
|
|
155
157
|
})
|
|
156
158
|
}, {
|
|
157
|
-
left:
|
|
159
|
+
left: A(() => [
|
|
158
160
|
y(n.$slots, "left")
|
|
159
161
|
]),
|
|
160
|
-
right:
|
|
162
|
+
right: A(() => [
|
|
161
163
|
y(n.$slots, "right")
|
|
162
164
|
]),
|
|
163
|
-
"collapsed-right":
|
|
165
|
+
"collapsed-right": A(() => [
|
|
164
166
|
y(n.$slots, "collapsed-right")
|
|
165
167
|
]),
|
|
166
|
-
drawer:
|
|
168
|
+
drawer: A(() => [
|
|
167
169
|
y(n.$slots, "drawer")
|
|
168
170
|
]),
|
|
169
171
|
_: 3
|
|
@@ -172,7 +174,7 @@ const he = { class: "fses-workbench-app" }, pe = /* @__PURE__ */ T({
|
|
|
172
174
|
_: 3
|
|
173
175
|
}, 8, ["adapters", "config", "extensions"]));
|
|
174
176
|
}
|
|
175
|
-
}),
|
|
177
|
+
}), ar = /* @__PURE__ */ T({
|
|
176
178
|
__name: "WorkbenchApplication",
|
|
177
179
|
props: {
|
|
178
180
|
adapters: {},
|
|
@@ -182,39 +184,39 @@ const he = { class: "fses-workbench-app" }, pe = /* @__PURE__ */ T({
|
|
|
182
184
|
},
|
|
183
185
|
setup(e) {
|
|
184
186
|
const r = e;
|
|
185
|
-
|
|
186
|
-
const t =
|
|
187
|
-
return (n,
|
|
187
|
+
le(r.adapters, r.config, r.extensions);
|
|
188
|
+
const t = ce(() => import("./Workspace-r8ayksVF.js"));
|
|
189
|
+
return (n, a) => (w(), Y(_(t), {
|
|
188
190
|
"embed-in-portal": r.embedInPortal
|
|
189
191
|
}, {
|
|
190
|
-
"before-workbench":
|
|
192
|
+
"before-workbench": A(() => [
|
|
191
193
|
y(n.$slots, "before-workbench")
|
|
192
194
|
]),
|
|
193
195
|
_: 3
|
|
194
196
|
}, 8, ["embed-in-portal"]));
|
|
195
197
|
}
|
|
196
198
|
});
|
|
197
|
-
function
|
|
199
|
+
function sr(e) {
|
|
198
200
|
return {
|
|
199
201
|
getItem: (r) => e.getItem(r),
|
|
200
202
|
removeItem: (r) => e.removeItem(r),
|
|
201
203
|
setItem: (r, t) => e.setItem(r, t)
|
|
202
204
|
};
|
|
203
205
|
}
|
|
204
|
-
const
|
|
206
|
+
const Ce = {
|
|
205
207
|
resolveAssetUrl: (e) => e
|
|
206
208
|
}, S = {
|
|
207
209
|
debug: (e, r) => console.debug(e, r),
|
|
208
210
|
error: (e, r) => console.error(e, r),
|
|
209
211
|
info: (e, r) => console.info(e, r),
|
|
210
212
|
warn: (e, r) => console.warn(e, r)
|
|
211
|
-
},
|
|
213
|
+
}, Re = {
|
|
212
214
|
error: (e) => S.error(e),
|
|
213
215
|
info: (e) => S.info(e),
|
|
214
216
|
success: (e) => S.info(e),
|
|
215
217
|
warning: (e) => S.warn(e)
|
|
216
218
|
};
|
|
217
|
-
function
|
|
219
|
+
function ir(e = {}) {
|
|
218
220
|
const r = /* @__PURE__ */ new Map();
|
|
219
221
|
return {
|
|
220
222
|
agentTransportAdapter: {
|
|
@@ -222,12 +224,12 @@ function or(e = {}) {
|
|
|
222
224
|
},
|
|
223
225
|
requestJson: async () => ({})
|
|
224
226
|
},
|
|
225
|
-
assetAdapter:
|
|
227
|
+
assetAdapter: Ce,
|
|
226
228
|
identityAdapter: {
|
|
227
229
|
readIdentity: () => ({ appId: "test-app", roleId: "default", tenantId: "test-tenant", userId: "test-user" })
|
|
228
230
|
},
|
|
229
231
|
loggerAdapter: S,
|
|
230
|
-
messageAdapter:
|
|
232
|
+
messageAdapter: Re,
|
|
231
233
|
platformRequestAdapter: {
|
|
232
234
|
ensureSessionReady: async () => !0,
|
|
233
235
|
requestJson: async () => ({})
|
|
@@ -254,7 +256,7 @@ function or(e = {}) {
|
|
|
254
256
|
...e
|
|
255
257
|
};
|
|
256
258
|
}
|
|
257
|
-
const
|
|
259
|
+
const Pe = [
|
|
258
260
|
"attachments",
|
|
259
261
|
"cards",
|
|
260
262
|
"cardRecommendationDraft",
|
|
@@ -276,27 +278,27 @@ const Ae = [
|
|
|
276
278
|
"thinkingProcessMessages",
|
|
277
279
|
"workbenchTurnId"
|
|
278
280
|
];
|
|
279
|
-
function
|
|
280
|
-
for (const t of
|
|
281
|
+
function dr(e, r) {
|
|
282
|
+
for (const t of Pe)
|
|
281
283
|
e[t] = r[t];
|
|
282
284
|
}
|
|
283
|
-
function
|
|
285
|
+
function Ee(e) {
|
|
284
286
|
const r = e.cardRecommendationDraft;
|
|
285
287
|
if (!r || typeof r != "object") return "";
|
|
286
288
|
const t = r.sourceTurnId;
|
|
287
289
|
return typeof t == "string" && t.trim() ? t.trim() : "";
|
|
288
290
|
}
|
|
289
|
-
function
|
|
291
|
+
function Te(e) {
|
|
290
292
|
const r = e.cardRecommendationDraft;
|
|
291
293
|
if (!r || typeof r != "object") return "";
|
|
292
294
|
const t = r.placementTurnId;
|
|
293
295
|
return typeof t == "string" && t.trim() ? t.trim() : "";
|
|
294
296
|
}
|
|
295
|
-
function
|
|
297
|
+
function X(e) {
|
|
296
298
|
const r = e.workbenchTurnId;
|
|
297
299
|
return typeof r == "string" && r.trim() ? r.trim() : "";
|
|
298
300
|
}
|
|
299
|
-
function
|
|
301
|
+
function Z(e) {
|
|
300
302
|
if (typeof e != "string" || !e.startsWith("workbench-turn-")) return "";
|
|
301
303
|
const r = ["-reply", "-conclusion-stream", "-item-", "-process-", "-task-", "-card-mutation-confirmation"];
|
|
302
304
|
for (const t of r) {
|
|
@@ -305,46 +307,48 @@ function J(e) {
|
|
|
305
307
|
}
|
|
306
308
|
return "";
|
|
307
309
|
}
|
|
308
|
-
function
|
|
310
|
+
function M(e, r) {
|
|
309
311
|
var n;
|
|
310
312
|
if (e.role !== "assistant" || !((n = e.content) != null && n.trim())) return !1;
|
|
311
|
-
const t =
|
|
312
|
-
return t ? t === r :
|
|
313
|
+
const t = X(e);
|
|
314
|
+
return t ? t === r : Z(e.id) !== r ? !1 : typeof e.id == "string" && (e.id.endsWith("-reply") || e.id.endsWith("-conclusion-stream"));
|
|
313
315
|
}
|
|
314
|
-
function
|
|
315
|
-
return !!(r && e.some((t) =>
|
|
316
|
+
function Q(e, r) {
|
|
317
|
+
return !!(r && e.some((t) => M(t, r)));
|
|
316
318
|
}
|
|
317
|
-
function
|
|
318
|
-
const t =
|
|
319
|
-
return
|
|
319
|
+
function Fe(e, r) {
|
|
320
|
+
const t = Ee(r), n = Te(r);
|
|
321
|
+
return Q(e, t) ? t : Q(e, n) ? n : n || X(r) || t || Z(r.id);
|
|
320
322
|
}
|
|
321
|
-
function
|
|
323
|
+
function cr(e) {
|
|
322
324
|
for (const r of e.appendedMessages.values()) {
|
|
323
325
|
if (!r.cardRecommendationDraft) continue;
|
|
324
|
-
const t =
|
|
326
|
+
const t = Fe(e.messages, r);
|
|
325
327
|
if (!t) continue;
|
|
326
328
|
const n = e.messages.indexOf(r);
|
|
327
329
|
if (n < 0) continue;
|
|
328
|
-
const
|
|
329
|
-
if (
|
|
330
|
-
const [
|
|
331
|
-
if (
|
|
332
|
-
e.messages.splice(n, 0,
|
|
330
|
+
const a = e.messages.findIndex((g) => M(g, t));
|
|
331
|
+
if (a < 0 || n === a + 1) continue;
|
|
332
|
+
const [c] = e.messages.splice(n, 1), b = e.messages.findIndex((g) => M(g, t));
|
|
333
|
+
if (b < 0) {
|
|
334
|
+
e.messages.splice(n, 0, c);
|
|
333
335
|
continue;
|
|
334
336
|
}
|
|
335
|
-
e.messages.splice(
|
|
337
|
+
e.messages.splice(b + 1, 0, c);
|
|
336
338
|
}
|
|
337
339
|
}
|
|
338
|
-
function
|
|
340
|
+
function _e(e) {
|
|
339
341
|
return !e.thinkingProcess;
|
|
340
342
|
}
|
|
341
|
-
function
|
|
343
|
+
function Me(e) {
|
|
342
344
|
const r = e.content.trim();
|
|
343
|
-
|
|
345
|
+
if (!_e(e)) return r;
|
|
346
|
+
const t = r.replace(/完成(?:,用时 .*)?$/u, "").trim();
|
|
347
|
+
return o("FWA.cc001787570980831", { p0: t });
|
|
344
348
|
}
|
|
345
|
-
function
|
|
349
|
+
function lr(e, r) {
|
|
346
350
|
return {
|
|
347
|
-
content:
|
|
351
|
+
content: Me(e),
|
|
348
352
|
loading: !1,
|
|
349
353
|
...typeof e.startTime == "number" ? { startTime: e.startTime } : {},
|
|
350
354
|
...typeof e.endTime == "number" ? { endTime: e.endTime } : typeof r == "number" ? { endTime: r } : {}
|
|
@@ -353,218 +357,218 @@ function ir(e, r) {
|
|
|
353
357
|
function p(e) {
|
|
354
358
|
return e && typeof e == "object" && !Array.isArray(e) ? e : {};
|
|
355
359
|
}
|
|
356
|
-
function
|
|
360
|
+
function s(e) {
|
|
357
361
|
return typeof e == "string" ? e.trim() : typeof e == "number" || typeof e == "boolean" ? String(e) : "";
|
|
358
362
|
}
|
|
359
|
-
function
|
|
363
|
+
function j(e) {
|
|
360
364
|
return Array.isArray(e) ? String(e.length) : "";
|
|
361
365
|
}
|
|
362
|
-
function
|
|
366
|
+
function ee(e) {
|
|
363
367
|
const r = p(e);
|
|
364
368
|
return [
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
369
|
+
s(r.bindingId),
|
|
370
|
+
s(r.id),
|
|
371
|
+
s(r.metricId),
|
|
372
|
+
s(r.metricCode),
|
|
373
|
+
s(r.source),
|
|
374
|
+
s(r.bindingKind),
|
|
375
|
+
s(r.serviceOperation),
|
|
376
|
+
s(r.refreshApi),
|
|
377
|
+
s(r.contractHash)
|
|
374
378
|
].join("|");
|
|
375
379
|
}
|
|
376
|
-
function
|
|
380
|
+
function re(e) {
|
|
377
381
|
const r = p(e), t = p(r.data);
|
|
378
382
|
return [
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
383
|
+
s(r.resultId),
|
|
384
|
+
s(r.sourceTurnId),
|
|
385
|
+
s(r.rowCount),
|
|
386
|
+
j(r.rows || t.rows),
|
|
387
|
+
j(r.columns || t.columns),
|
|
388
|
+
ee(r.dataBinding || t.dataBinding)
|
|
385
389
|
].join("|");
|
|
386
390
|
}
|
|
387
|
-
function
|
|
388
|
-
const r = p(e), t = p(r.blockPlan), n = p(t.data),
|
|
391
|
+
function Be(e) {
|
|
392
|
+
const r = p(e), t = p(r.blockPlan), n = p(t.data), a = p(t.meta), c = p(a.queryResult);
|
|
389
393
|
return [
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
394
|
+
s(r.recommendationId),
|
|
395
|
+
s(r.capabilityId),
|
|
396
|
+
s(r.title),
|
|
397
|
+
s(r.previewStatus),
|
|
398
|
+
s(r.nextAction),
|
|
399
|
+
s(r.dataShape),
|
|
400
|
+
s(t.id),
|
|
401
|
+
s(t.title),
|
|
402
|
+
ee(r.dataBinding || n.dataBinding),
|
|
403
|
+
re(r.queryResult || c)
|
|
400
404
|
].join(":");
|
|
401
405
|
}
|
|
402
|
-
function
|
|
406
|
+
function ur(e) {
|
|
403
407
|
const r = p(e), t = typeof r.type == "string" ? r.type : "";
|
|
404
408
|
if (t === "card_recommendations_ready") {
|
|
405
|
-
const n = Array.isArray(r.recommendations) ? r.recommendations : [],
|
|
409
|
+
const n = Array.isArray(r.recommendations) ? r.recommendations : [], a = ue({
|
|
406
410
|
payload: r,
|
|
407
|
-
conversationId:
|
|
411
|
+
conversationId: s(r.conversationId),
|
|
408
412
|
groupType: t
|
|
409
413
|
});
|
|
410
414
|
return [
|
|
411
415
|
t,
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
n.map(
|
|
416
|
+
a.renderKey,
|
|
417
|
+
s(r.sourceTurnId),
|
|
418
|
+
s(r.placementTurnId),
|
|
419
|
+
re(r.queryResult),
|
|
420
|
+
n.map(Be).join(",")
|
|
417
421
|
].join(":");
|
|
418
422
|
}
|
|
419
423
|
if (t === "query_result_table_ready") {
|
|
420
|
-
const n = p(r.queryResult),
|
|
421
|
-
return `${t}:${
|
|
424
|
+
const n = p(r.queryResult), a = Array.isArray(n.rows) ? n.rows.length : "", c = Array.isArray(n.columns) ? n.columns.length : "";
|
|
425
|
+
return `${t}:${a}:${c}:${n.rowCount ?? ""}`;
|
|
422
426
|
}
|
|
423
427
|
return t;
|
|
424
428
|
}
|
|
425
|
-
const
|
|
426
|
-
function
|
|
429
|
+
const De = /* @__PURE__ */ new Set(["pending", "running"]), Ne = "/data-binding-candidate/query", ve = "/workbench/v2/documents/", Oe = "/data-bindings/";
|
|
430
|
+
function He(e) {
|
|
427
431
|
return typeof (e == null ? void 0 : e.refreshApi) == "string" ? e.refreshApi.trim() : "";
|
|
428
432
|
}
|
|
429
|
-
function
|
|
430
|
-
return e.includes(
|
|
433
|
+
function $e(e) {
|
|
434
|
+
return e.includes(Ne);
|
|
431
435
|
}
|
|
432
|
-
function
|
|
436
|
+
function te(e) {
|
|
433
437
|
let r = e;
|
|
434
438
|
try {
|
|
435
439
|
r = new URL(e, "http://localhost").pathname;
|
|
436
440
|
} catch {
|
|
437
441
|
r = e;
|
|
438
442
|
}
|
|
439
|
-
return r.includes(
|
|
443
|
+
return r.includes(ve) && r.includes(Oe);
|
|
440
444
|
}
|
|
441
|
-
function
|
|
445
|
+
function B(e) {
|
|
442
446
|
return !!(e && typeof e == "object" && !Array.isArray(e));
|
|
443
447
|
}
|
|
444
|
-
function
|
|
445
|
-
if (!
|
|
448
|
+
function h(e) {
|
|
449
|
+
if (!B(e)) return !1;
|
|
446
450
|
const r = typeof e.source == "string" ? e.source.trim().toLowerCase() : "", t = typeof e.sourceType == "string" ? e.sourceType.trim().toLowerCase() : "", n = typeof e.composeSource == "string" ? e.composeSource.trim().toLowerCase() : "";
|
|
447
|
-
return r === "image" || t === "image" || n === "image" ||
|
|
451
|
+
return r === "image" || t === "image" || n === "image" || h(e.params);
|
|
448
452
|
}
|
|
449
|
-
function
|
|
450
|
-
return
|
|
453
|
+
function W(e) {
|
|
454
|
+
return B(e) ? h(e) || h(e.recognition) ? !0 : B(e.v2) ? W(e.v2) : !1 : !1;
|
|
451
455
|
}
|
|
452
|
-
function
|
|
453
|
-
return (r == null ? void 0 : r.suppressImageComposeAutoRefresh) !== !0 || !
|
|
456
|
+
function qe(e, r, t) {
|
|
457
|
+
return (r == null ? void 0 : r.suppressImageComposeAutoRefresh) !== !0 || !te(t) ? !1 : h(e == null ? void 0 : e.params) || h(e) || h(r) || h(r == null ? void 0 : r.source) || h(r == null ? void 0 : r.data) || W(r == null ? void 0 : r.recognition) || W(r == null ? void 0 : r.meta);
|
|
454
458
|
}
|
|
455
|
-
function
|
|
456
|
-
return
|
|
459
|
+
function xe(e, r) {
|
|
460
|
+
return h(e == null ? void 0 : e.params) || h(e) || h(r) || h(r == null ? void 0 : r.source) || h(r == null ? void 0 : r.data) || W(r == null ? void 0 : r.recognition) || W(r == null ? void 0 : r.meta);
|
|
457
461
|
}
|
|
458
|
-
function
|
|
462
|
+
function fr(e, r) {
|
|
459
463
|
if (!e) return !1;
|
|
460
|
-
const t =
|
|
461
|
-
if (!t ||
|
|
464
|
+
const t = He(e);
|
|
465
|
+
if (!t || $e(t) || qe(e, r, t)) return !1;
|
|
462
466
|
const n = typeof (e == null ? void 0 : e.status) == "string" ? e.status.trim().toLowerCase() : "";
|
|
463
|
-
return !(
|
|
467
|
+
return !(De.has(n) || te(t) && xe(e, r));
|
|
464
468
|
}
|
|
465
|
-
function
|
|
469
|
+
function mr(e) {
|
|
466
470
|
var n;
|
|
467
|
-
const r = (n = e.title) == null ? void 0 : n.trim(), t = r ?
|
|
468
|
-
return t ||
|
|
471
|
+
const r = (n = e.title) == null ? void 0 : n.trim(), t = r ? Le(r) : void 0;
|
|
472
|
+
return t || o("FWA.56db1787570894461", { p0: e.index + 1 });
|
|
469
473
|
}
|
|
470
|
-
function
|
|
474
|
+
function Le(e) {
|
|
471
475
|
const r = e.replace(/[A-Za-z0-9_./\\()[\]{}::,,;;#%+\-=]+/gu, "").replace(/\s+/gu, "").trim();
|
|
472
476
|
return r && /[\u3400-\u9fff]/u.test(r) ? r : void 0;
|
|
473
477
|
}
|
|
474
|
-
function
|
|
478
|
+
function D(e, r = {}, t = "-") {
|
|
475
479
|
return Number.isFinite(e) ? new Intl.NumberFormat("zh-CN", r).format(e) : t;
|
|
476
480
|
}
|
|
477
|
-
function
|
|
478
|
-
return r === "percent" ? `${(e * 100).toFixed(1)}%` : r === "currency" ? Math.abs(e) >= 1e8 ?
|
|
481
|
+
function hr(e, r = "") {
|
|
482
|
+
return r === "percent" ? `${(e * 100).toFixed(1)}%` : r === "currency" ? Math.abs(e) >= 1e8 ? o("FWA.15b51787570950350", { p0: (e / 1e8).toFixed(2) }) : Math.abs(e) >= 1e4 ? o("FWA.e1c91787570950875", { p0: (e / 1e4).toFixed(1) }) : `¥${D(e)}` : D(e);
|
|
479
483
|
}
|
|
480
|
-
function
|
|
481
|
-
return e === 0 ? "-" :
|
|
484
|
+
function br(e, r = {}) {
|
|
485
|
+
return e === 0 ? "-" : D(e, r);
|
|
482
486
|
}
|
|
483
|
-
function
|
|
484
|
-
var t, n,
|
|
487
|
+
function K(e = {}) {
|
|
488
|
+
var t, n, a, c, b, g, v, O, H, $, q, x;
|
|
485
489
|
const r = {
|
|
486
|
-
workspaceId:
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
490
|
+
workspaceId: u([
|
|
491
|
+
i((t = e.routeQuery) == null ? void 0 : t.workspaceId),
|
|
492
|
+
l(e.locationSearch, "workspaceId"),
|
|
493
|
+
f(e.locationHash, "workspaceId"),
|
|
494
|
+
m(e.locationPathname, "workspaceId")
|
|
491
495
|
]),
|
|
492
|
-
userId:
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
496
|
+
userId: u([
|
|
497
|
+
i((n = e.routeQuery) == null ? void 0 : n.userId),
|
|
498
|
+
l(e.locationSearch, "userId"),
|
|
499
|
+
f(e.locationHash, "userId"),
|
|
500
|
+
m(e.locationPathname, "userId")
|
|
497
501
|
]),
|
|
498
|
-
tenantId:
|
|
499
|
-
appId:
|
|
502
|
+
tenantId: z(e, ["tenantId", "tenant_id", "tenant-id"]),
|
|
503
|
+
appId: z(e, ["appId", "app_id", "app-id"]),
|
|
500
504
|
roleId: "",
|
|
501
|
-
mode:
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
505
|
+
mode: u([
|
|
506
|
+
i((a = e.routeQuery) == null ? void 0 : a.mode),
|
|
507
|
+
l(e.locationSearch, "mode"),
|
|
508
|
+
f(e.locationHash, "mode"),
|
|
509
|
+
m(e.locationPathname, "mode")
|
|
506
510
|
]),
|
|
507
|
-
fdeMode:
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
511
|
+
fdeMode: u([
|
|
512
|
+
i((c = e.routeQuery) == null ? void 0 : c.fdeMode),
|
|
513
|
+
l(e.locationSearch, "fdeMode"),
|
|
514
|
+
f(e.locationHash, "fdeMode"),
|
|
515
|
+
m(e.locationPathname, "fdeMode")
|
|
512
516
|
]),
|
|
513
|
-
workbenchEditable:
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
517
|
+
workbenchEditable: u([
|
|
518
|
+
i((b = e.routeQuery) == null ? void 0 : b.workbenchEditable),
|
|
519
|
+
l(e.locationSearch, "workbenchEditable"),
|
|
520
|
+
f(e.locationHash, "workbenchEditable"),
|
|
521
|
+
m(e.locationPathname, "workbenchEditable")
|
|
518
522
|
]),
|
|
519
|
-
conversationId:
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
523
|
+
conversationId: u([
|
|
524
|
+
i((g = e.routeQuery) == null ? void 0 : g.conversationId),
|
|
525
|
+
l(e.locationSearch, "conversationId"),
|
|
526
|
+
f(e.locationHash, "conversationId"),
|
|
527
|
+
m(e.locationPathname, "conversationId")
|
|
524
528
|
]),
|
|
525
|
-
resourceId:
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
529
|
+
resourceId: u([
|
|
530
|
+
i((v = e.routeQuery) == null ? void 0 : v.resourceId),
|
|
531
|
+
l(e.locationSearch, "resourceId"),
|
|
532
|
+
f(e.locationHash, "resourceId"),
|
|
533
|
+
m(e.locationPathname, "resourceId")
|
|
530
534
|
]),
|
|
531
|
-
fdeResourceId:
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
535
|
+
fdeResourceId: u([
|
|
536
|
+
i((O = e.routeQuery) == null ? void 0 : O.fdeResourceId),
|
|
537
|
+
l(e.locationSearch, "fdeResourceId"),
|
|
538
|
+
f(e.locationHash, "fdeResourceId"),
|
|
539
|
+
m(e.locationPathname, "fdeResourceId")
|
|
536
540
|
]),
|
|
537
|
-
path:
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
541
|
+
path: u([
|
|
542
|
+
i((H = e.routeQuery) == null ? void 0 : H.path),
|
|
543
|
+
l(e.locationSearch, "path"),
|
|
544
|
+
f(e.locationHash, "path"),
|
|
545
|
+
m(e.locationPathname, "path")
|
|
542
546
|
]),
|
|
543
|
-
fdePath:
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
547
|
+
fdePath: u([
|
|
548
|
+
i(($ = e.routeQuery) == null ? void 0 : $.fdePath),
|
|
549
|
+
l(e.locationSearch, "fdePath"),
|
|
550
|
+
f(e.locationHash, "fdePath"),
|
|
551
|
+
m(e.locationPathname, "fdePath")
|
|
548
552
|
]),
|
|
549
|
-
name:
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
553
|
+
name: u([
|
|
554
|
+
i((q = e.routeQuery) == null ? void 0 : q.name),
|
|
555
|
+
l(e.locationSearch, "name"),
|
|
556
|
+
f(e.locationHash, "name"),
|
|
557
|
+
m(e.locationPathname, "name")
|
|
554
558
|
]),
|
|
555
|
-
fdeName:
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
559
|
+
fdeName: u([
|
|
560
|
+
i((x = e.routeQuery) == null ? void 0 : x.fdeName),
|
|
561
|
+
l(e.locationSearch, "fdeName"),
|
|
562
|
+
f(e.locationHash, "fdeName"),
|
|
563
|
+
m(e.locationPathname, "fdeName")
|
|
560
564
|
])
|
|
561
565
|
};
|
|
562
|
-
return
|
|
566
|
+
return Qe(r);
|
|
563
567
|
}
|
|
564
|
-
function
|
|
568
|
+
function pr(e) {
|
|
565
569
|
if (typeof window > "u")
|
|
566
|
-
return
|
|
567
|
-
const r =
|
|
570
|
+
return K({ routeQuery: e });
|
|
571
|
+
const r = K({
|
|
568
572
|
routeQuery: e,
|
|
569
573
|
locationPathname: window.location.pathname,
|
|
570
574
|
locationSearch: window.location.search,
|
|
@@ -572,67 +576,67 @@ function mr(e) {
|
|
|
572
576
|
});
|
|
573
577
|
return {
|
|
574
578
|
...r,
|
|
575
|
-
userId: r.userId ||
|
|
579
|
+
userId: r.userId || Ue(window)
|
|
576
580
|
};
|
|
577
581
|
}
|
|
578
|
-
function
|
|
579
|
-
return Array.isArray(e) ?
|
|
582
|
+
function i(e) {
|
|
583
|
+
return Array.isArray(e) ? i(e[0]) : typeof e == "string" ? e.trim() : "";
|
|
580
584
|
}
|
|
581
|
-
function
|
|
585
|
+
function l(e, r) {
|
|
582
586
|
var t;
|
|
583
587
|
return e && ((t = new URLSearchParams(e.startsWith("?") ? e.slice(1) : e).get(r)) == null ? void 0 : t.trim()) || "";
|
|
584
588
|
}
|
|
585
|
-
function
|
|
589
|
+
function f(e, r) {
|
|
586
590
|
if (!e) return "";
|
|
587
591
|
const t = e.indexOf("?");
|
|
588
592
|
if (t < 0) return "";
|
|
589
|
-
const n = e.indexOf("#", t + 1),
|
|
590
|
-
return
|
|
593
|
+
const n = e.indexOf("#", t + 1), a = n >= 0 ? e.slice(t + 1, n) : e.slice(t + 1);
|
|
594
|
+
return l(a, r);
|
|
591
595
|
}
|
|
592
|
-
function
|
|
596
|
+
function m(e, r) {
|
|
593
597
|
if (!e || !e.includes("=")) return "";
|
|
594
598
|
const t = e.split("/").filter(Boolean).find((n) => n.includes("="));
|
|
595
|
-
return t ?
|
|
599
|
+
return t ? l(t, r) : "";
|
|
596
600
|
}
|
|
597
|
-
function
|
|
598
|
-
return
|
|
601
|
+
function z(e, r) {
|
|
602
|
+
return u(r.flatMap((t) => {
|
|
599
603
|
var n;
|
|
600
604
|
return [
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
+
i((n = e.routeQuery) == null ? void 0 : n[t]),
|
|
606
|
+
l(e.locationSearch, t),
|
|
607
|
+
f(e.locationHash, t),
|
|
608
|
+
m(e.locationPathname, t)
|
|
605
609
|
];
|
|
606
610
|
}));
|
|
607
611
|
}
|
|
608
|
-
function
|
|
612
|
+
function u(e) {
|
|
609
613
|
return e.find((r) => r.trim()) || "";
|
|
610
614
|
}
|
|
611
|
-
function
|
|
615
|
+
function Ue(e) {
|
|
612
616
|
const r = [
|
|
613
617
|
e.__BT_WORKBENCH_USER__,
|
|
614
618
|
e.__BT_RUNTIME_IDENTITY__,
|
|
615
619
|
e.__BT_RUNTIME_CONTEXT__
|
|
616
620
|
];
|
|
617
621
|
for (const t of r) {
|
|
618
|
-
const n =
|
|
622
|
+
const n = Ve(t);
|
|
619
623
|
if (n) return n;
|
|
620
624
|
}
|
|
621
625
|
return "";
|
|
622
626
|
}
|
|
623
|
-
function
|
|
627
|
+
function Ve(e) {
|
|
624
628
|
if (!e || typeof e != "object" || Array.isArray(e)) return "";
|
|
625
629
|
const r = e;
|
|
626
|
-
return
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
630
|
+
return u([
|
|
631
|
+
i(r.userId),
|
|
632
|
+
i(r.user_id),
|
|
633
|
+
i(r.egoUserinfo),
|
|
634
|
+
i(r.egoUserInfo),
|
|
635
|
+
i(r["ego-userinfo"])
|
|
632
636
|
]);
|
|
633
637
|
}
|
|
634
|
-
function
|
|
635
|
-
if (!
|
|
638
|
+
function Qe(e) {
|
|
639
|
+
if (!je(e)) return e;
|
|
636
640
|
const r = e.fdeResourceId || e.resourceId;
|
|
637
641
|
return {
|
|
638
642
|
...e,
|
|
@@ -642,11 +646,11 @@ function Le(e) {
|
|
|
642
646
|
fdeResourceId: r
|
|
643
647
|
};
|
|
644
648
|
}
|
|
645
|
-
function
|
|
649
|
+
function je(e) {
|
|
646
650
|
const r = e.mode.trim().toLowerCase(), t = e.fdeMode.trim().toLowerCase();
|
|
647
651
|
return r === "fde" || t === "true" || t === "1" || t === "yes";
|
|
648
652
|
}
|
|
649
|
-
const
|
|
653
|
+
const d = {
|
|
650
654
|
radius: "standard",
|
|
651
655
|
border: "light",
|
|
652
656
|
shadow: "soft",
|
|
@@ -654,64 +658,64 @@ const i = {
|
|
|
654
658
|
textureColor: "#ffffff",
|
|
655
659
|
motion: "none",
|
|
656
660
|
density: "standard"
|
|
657
|
-
},
|
|
661
|
+
}, yr = [
|
|
658
662
|
{
|
|
659
663
|
key: "radius",
|
|
660
|
-
label: "
|
|
664
|
+
label: o("FWA.71e11787571689316"),
|
|
661
665
|
options: [
|
|
662
|
-
{ value: "square", label: "
|
|
663
|
-
{ value: "small", label: "
|
|
664
|
-
{ value: "standard", label: "
|
|
665
|
-
{ value: "large", label: "
|
|
666
|
+
{ value: "square", label: o("FWA.fbad1787571689609") },
|
|
667
|
+
{ value: "small", label: o("FWA.50721787571587373") },
|
|
668
|
+
{ value: "standard", label: o("FWA.e83b1787571408644") },
|
|
669
|
+
{ value: "large", label: o("FWA.c0491787571587595") }
|
|
666
670
|
]
|
|
667
671
|
},
|
|
668
672
|
{
|
|
669
673
|
key: "border",
|
|
670
|
-
label: "
|
|
674
|
+
label: o("FWA.49d21787571689615"),
|
|
671
675
|
options: [
|
|
672
|
-
{ value: "none", label: "
|
|
673
|
-
{ value: "light", label: "
|
|
674
|
-
{ value: "strong", label: "
|
|
676
|
+
{ value: "none", label: o("FWA.f0961787571587988") },
|
|
677
|
+
{ value: "light", label: o("FWA.36d41787571258647") },
|
|
678
|
+
{ value: "strong", label: o("FWA.35961787571588423") }
|
|
675
679
|
]
|
|
676
680
|
},
|
|
677
681
|
{
|
|
678
682
|
key: "shadow",
|
|
679
|
-
label: "
|
|
683
|
+
label: o("FWA.30c71787571689687"),
|
|
680
684
|
options: [
|
|
681
|
-
{ value: "none", label: "
|
|
682
|
-
{ value: "soft", label: "
|
|
683
|
-
{ value: "strong", label: "
|
|
685
|
+
{ value: "none", label: o("FWA.6e7c1787571588944") },
|
|
686
|
+
{ value: "soft", label: o("FWA.db821787571589152") },
|
|
687
|
+
{ value: "strong", label: o("FWA.7fbe1787571589516") }
|
|
684
688
|
]
|
|
685
689
|
},
|
|
686
690
|
{
|
|
687
691
|
key: "texture",
|
|
688
|
-
label: "
|
|
692
|
+
label: o("FWA.e4e81787571690132"),
|
|
689
693
|
options: [
|
|
690
|
-
{ value: "white", label: "
|
|
691
|
-
{ value: "muted", label: "
|
|
692
|
-
{ value: "glass", label: "
|
|
693
|
-
{ value: "texture", label: "
|
|
694
|
+
{ value: "white", label: o("FWA.3e791787571690179") },
|
|
695
|
+
{ value: "muted", label: o("FWA.2b471787571590077") },
|
|
696
|
+
{ value: "glass", label: o("FWA.c3e41787571409224") },
|
|
697
|
+
{ value: "texture", label: o("FWA.6b941787571590518") }
|
|
694
698
|
]
|
|
695
699
|
},
|
|
696
700
|
{
|
|
697
701
|
key: "motion",
|
|
698
|
-
label: "
|
|
702
|
+
label: o("FWA.f1801787571690658"),
|
|
699
703
|
options: [
|
|
700
|
-
{ value: "none", label: "
|
|
701
|
-
{ value: "lift", label: "
|
|
702
|
-
{ value: "glow", label: "
|
|
704
|
+
{ value: "none", label: o("FWA.252a1787571591043") },
|
|
705
|
+
{ value: "lift", label: o("FWA.f1bf1787571410166") },
|
|
706
|
+
{ value: "glow", label: o("FWA.8a811787571410691") }
|
|
703
707
|
]
|
|
704
708
|
},
|
|
705
709
|
{
|
|
706
710
|
key: "density",
|
|
707
|
-
label: "
|
|
711
|
+
label: o("FWA.b02d1787571690666"),
|
|
708
712
|
options: [
|
|
709
|
-
{ value: "loose", label: "
|
|
710
|
-
{ value: "standard", label: "
|
|
711
|
-
{ value: "compact", label: "
|
|
713
|
+
{ value: "loose", label: o("FWA.2d611787571591242") },
|
|
714
|
+
{ value: "standard", label: o("FWA.780f1787571591588") },
|
|
715
|
+
{ value: "compact", label: o("FWA.6a711787571146025") }
|
|
712
716
|
]
|
|
713
717
|
}
|
|
714
|
-
],
|
|
718
|
+
], Ke = {
|
|
715
719
|
radius: ["square", "small", "standard", "large"],
|
|
716
720
|
border: ["none", "light", "strong"],
|
|
717
721
|
shadow: ["none", "soft", "strong"],
|
|
@@ -719,53 +723,53 @@ const i = {
|
|
|
719
723
|
motion: ["none", "lift", "glow"],
|
|
720
724
|
density: ["loose", "standard", "compact"]
|
|
721
725
|
};
|
|
722
|
-
function
|
|
726
|
+
function N(e) {
|
|
723
727
|
return e && typeof e == "object" && !Array.isArray(e) ? e : {};
|
|
724
728
|
}
|
|
725
729
|
function I(e, r) {
|
|
726
|
-
const t =
|
|
727
|
-
return typeof r == "string" &&
|
|
730
|
+
const t = d[e];
|
|
731
|
+
return typeof r == "string" && Ke[e].includes(r) ? r : t;
|
|
728
732
|
}
|
|
729
|
-
function
|
|
730
|
-
return typeof e == "string" && /^#[0-9a-fA-F]{6}$/.test(e) ? e.toLowerCase() :
|
|
733
|
+
function ze(e) {
|
|
734
|
+
return typeof e == "string" && /^#[0-9a-fA-F]{6}$/.test(e) ? e.toLowerCase() : d.textureColor;
|
|
731
735
|
}
|
|
732
736
|
function E(e) {
|
|
733
|
-
const r =
|
|
737
|
+
const r = N(e);
|
|
734
738
|
return {
|
|
735
739
|
radius: I("radius", r.radius),
|
|
736
740
|
border: I("border", r.border),
|
|
737
741
|
shadow: I("shadow", r.shadow),
|
|
738
742
|
texture: I("texture", r.texture),
|
|
739
|
-
textureColor:
|
|
743
|
+
textureColor: ze(r.textureColor),
|
|
740
744
|
motion: I("motion", r.motion),
|
|
741
745
|
density: I("density", r.density)
|
|
742
746
|
};
|
|
743
747
|
}
|
|
744
|
-
function
|
|
748
|
+
function gr(e) {
|
|
745
749
|
const r = E(e);
|
|
746
|
-
return r.radius ===
|
|
750
|
+
return r.radius === d.radius && r.border === d.border && r.shadow === d.shadow && r.texture === d.texture && r.textureColor === d.textureColor && r.motion === d.motion && r.density === d.density;
|
|
747
751
|
}
|
|
748
|
-
const
|
|
752
|
+
const Ge = {
|
|
749
753
|
square: 0,
|
|
750
754
|
small: 4,
|
|
751
755
|
standard: 8,
|
|
752
756
|
large: 16
|
|
753
|
-
},
|
|
757
|
+
}, Ye = {
|
|
754
758
|
none: "none",
|
|
755
759
|
soft: "soft",
|
|
756
760
|
standard: "soft",
|
|
757
761
|
strong: "strong"
|
|
758
|
-
},
|
|
762
|
+
}, Je = {
|
|
759
763
|
thumbnail: "compact",
|
|
760
764
|
compact: "compact",
|
|
761
765
|
standard: "standard",
|
|
762
766
|
expanded: "loose"
|
|
763
767
|
};
|
|
764
|
-
function
|
|
768
|
+
function wr(e) {
|
|
765
769
|
const r = E(e);
|
|
766
770
|
return {
|
|
767
771
|
cardStyle: {
|
|
768
|
-
cardRadius:
|
|
772
|
+
cardRadius: Ge[r.radius],
|
|
769
773
|
cardShadow: r.shadow === "strong" ? "strong" : r.shadow,
|
|
770
774
|
density: r.density === "loose" ? "expanded" : r.density,
|
|
771
775
|
...r.texture === "color" ? { backgroundColor: r.textureColor } : {},
|
|
@@ -773,53 +777,53 @@ function yr(e) {
|
|
|
773
777
|
}
|
|
774
778
|
};
|
|
775
779
|
}
|
|
776
|
-
function
|
|
777
|
-
const r =
|
|
780
|
+
function Ar(e) {
|
|
781
|
+
const r = N(e == null ? void 0 : e.cardStyle), t = N(r.shell);
|
|
778
782
|
if (Object.keys(t).length > 0)
|
|
779
783
|
return E(t);
|
|
780
|
-
const n = typeof r.cardRadius == "number" ? r.cardRadius <= 0 ? "square" : r.cardRadius <= 4 ? "small" : r.cardRadius >= 16 ? "large" : "standard" :
|
|
784
|
+
const n = typeof r.cardRadius == "number" ? r.cardRadius <= 0 ? "square" : r.cardRadius <= 4 ? "small" : r.cardRadius >= 16 ? "large" : "standard" : d.radius, a = typeof r.cardShadow == "string" && Ye[r.cardShadow] || d.shadow, c = typeof r.density == "string" && Je[r.density] || d.density, b = typeof r.backgroundColor == "string" ? r.backgroundColor : void 0;
|
|
781
785
|
return E({
|
|
782
786
|
radius: n,
|
|
783
|
-
border:
|
|
784
|
-
shadow:
|
|
785
|
-
texture:
|
|
786
|
-
textureColor:
|
|
787
|
-
motion:
|
|
788
|
-
density:
|
|
787
|
+
border: d.border,
|
|
788
|
+
shadow: a,
|
|
789
|
+
texture: b ? "color" : d.texture,
|
|
790
|
+
textureColor: b,
|
|
791
|
+
motion: d.motion,
|
|
792
|
+
density: c
|
|
789
793
|
});
|
|
790
794
|
}
|
|
791
|
-
const
|
|
795
|
+
const Ir = "@fses/workbench-app";
|
|
792
796
|
export {
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
797
|
+
Re as A,
|
|
798
|
+
br as B,
|
|
799
|
+
nr as C,
|
|
800
|
+
d as D,
|
|
801
|
+
yr as W,
|
|
802
|
+
Se as _,
|
|
803
|
+
Me as a,
|
|
804
|
+
dr as b,
|
|
805
|
+
lr as c,
|
|
806
|
+
ur as d,
|
|
807
|
+
pr as e,
|
|
808
|
+
hr as f,
|
|
809
|
+
or as g,
|
|
810
|
+
Ar as h,
|
|
811
|
+
gr as i,
|
|
812
|
+
wr as j,
|
|
813
|
+
J as k,
|
|
814
|
+
Ir as l,
|
|
815
|
+
fe as m,
|
|
812
816
|
E as n,
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
817
|
+
ar as o,
|
|
818
|
+
cr as p,
|
|
819
|
+
We as q,
|
|
820
|
+
mr as r,
|
|
821
|
+
fr as s,
|
|
818
822
|
pe as t,
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
823
|
+
sr as u,
|
|
824
|
+
he as v,
|
|
825
|
+
He as w,
|
|
826
|
+
ir as x,
|
|
827
|
+
Ce as y,
|
|
824
828
|
S as z
|
|
825
829
|
};
|