@apform-ui/core 1.10.2 → 1.10.3
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/apform-ui.css +1 -1
- package/dist/apform-ui.js +870 -847
- package/dist/apform-ui.umd.cjs +30 -30
- package/dist/components/Chat/SessionSidebar/SessionSidebar.vue.d.ts +24 -1
- package/dist/components/FieldRow/FieldRow.vue.d.ts +1 -1
- package/dist/types/chat.d.ts +2 -0
- package/package.json +1 -1
- package/src/tokens/tokens.css +1 -1
package/dist/apform-ui.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var El = Object.defineProperty;
|
|
2
2
|
var Pl = (I, g, C) => g in I ? El(I, g, { enumerable: !0, configurable: !0, writable: !0, value: C }) : I[g] = C;
|
|
3
3
|
var GI = (I, g, C) => Pl(I, typeof g != "symbol" ? g + "" : g, C);
|
|
4
|
-
import { defineComponent as j, openBlock as
|
|
4
|
+
import { defineComponent as j, openBlock as m, createElementBlock as W, createElementVNode as Y, ref as t, resolveComponent as _, createBlock as x, normalizeStyle as dI, withCtx as O, normalizeClass as u, renderSlot as ZI, createVNode as II, createTextVNode as gI, toDisplayString as h, unref as $, createCommentVNode as H, shallowRef as jC, onMounted as tg, watch as NI, onUnmounted as mg, h as kI, nextTick as $I, computed as n, Fragment as Q, renderList as q, Teleport as QZ, TransitionGroup as rl, onErrorCaptured as fl, createSlots as UZ, resolveDynamicComponent as vZ, withKeys as QC, withModifiers as UI, resolveDirective as OZ, withDirectives as Gg, reactive as EZ, useAttrs as ql, vShow as _l, onBeforeUnmount as PZ, normalizeProps as vA, guardReactiveProps as OA, useSlots as rZ, vModelText as UC, vModelSelect as $l, inject as Id, toValue as gd } from "vue";
|
|
5
5
|
import { ElButton as Cd, ElImageViewer as Ad, ElMessageBox as Zd, ElMessage as IC } from "element-plus";
|
|
6
6
|
/*! Element Plus Icons Vue v2.3.2 */
|
|
7
7
|
var ld = /* @__PURE__ */ j({
|
|
8
8
|
name: "Close",
|
|
9
9
|
__name: "close",
|
|
10
10
|
setup(I) {
|
|
11
|
-
return (g, C) => (
|
|
11
|
+
return (g, C) => (m(), W("svg", {
|
|
12
12
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13
13
|
viewBox: "0 0 1024 1024"
|
|
14
14
|
}, [
|
|
@@ -22,7 +22,7 @@ var ld = /* @__PURE__ */ j({
|
|
|
22
22
|
name: "FullScreen",
|
|
23
23
|
__name: "full-screen",
|
|
24
24
|
setup(I) {
|
|
25
|
-
return (g, C) => (
|
|
25
|
+
return (g, C) => (m(), W("svg", {
|
|
26
26
|
xmlns: "http://www.w3.org/2000/svg",
|
|
27
27
|
viewBox: "0 0 1024 1024"
|
|
28
28
|
}, [
|
|
@@ -36,7 +36,7 @@ var ld = /* @__PURE__ */ j({
|
|
|
36
36
|
name: "ScaleToOriginal",
|
|
37
37
|
__name: "scale-to-original",
|
|
38
38
|
setup(I) {
|
|
39
|
-
return (g, C) => (
|
|
39
|
+
return (g, C) => (m(), W("svg", {
|
|
40
40
|
xmlns: "http://www.w3.org/2000/svg",
|
|
41
41
|
viewBox: "0 0 1024 1024"
|
|
42
42
|
}, [
|
|
@@ -78,12 +78,12 @@ const id = /* @__PURE__ */ j({
|
|
|
78
78
|
C("close");
|
|
79
79
|
}
|
|
80
80
|
return (G, b) => {
|
|
81
|
-
const
|
|
82
|
-
return
|
|
81
|
+
const i = _("el-button"), w = _("el-dialog");
|
|
82
|
+
return m(), x(w, {
|
|
83
83
|
"model-value": I.modelValue,
|
|
84
84
|
width: Z.value ? "100vw" : I.width,
|
|
85
85
|
fullscreen: Z.value,
|
|
86
|
-
style:
|
|
86
|
+
style: dI(Z.value ? { margin: 0 } : {}),
|
|
87
87
|
"destroy-on-close": I.destroyOnClose,
|
|
88
88
|
draggable: I.draggable && !Z.value,
|
|
89
89
|
"append-to-body": I.appendToBody,
|
|
@@ -102,16 +102,16 @@ const id = /* @__PURE__ */ j({
|
|
|
102
102
|
Y("div", {
|
|
103
103
|
class: u(G.$style.headerRight)
|
|
104
104
|
}, [
|
|
105
|
-
I.showFullscreenBtn ? (
|
|
105
|
+
I.showFullscreenBtn ? (m(), x(i, {
|
|
106
106
|
key: 0,
|
|
107
107
|
class: u(G.$style.headerBtn),
|
|
108
|
-
icon: Z.value ?
|
|
108
|
+
icon: Z.value ? $(md) : $(cd),
|
|
109
109
|
text: "",
|
|
110
110
|
onClick: A
|
|
111
111
|
}, null, 8, ["class", "icon"])) : H("", !0),
|
|
112
|
-
|
|
112
|
+
II(i, {
|
|
113
113
|
class: u(G.$style.headerBtn),
|
|
114
|
-
icon:
|
|
114
|
+
icon: $(dd),
|
|
115
115
|
text: "",
|
|
116
116
|
onClick: b[0] || (b[0] = (s) => C("update:modelValue", !1))
|
|
117
117
|
}, null, 8, ["class", "icon"])
|
|
@@ -122,14 +122,14 @@ const id = /* @__PURE__ */ j({
|
|
|
122
122
|
Y("div", {
|
|
123
123
|
class: u(G.$style.footer)
|
|
124
124
|
}, [
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
ZI(G.$slots, "footer", {}, () => [
|
|
126
|
+
II(i, { onClick: l }, {
|
|
127
127
|
default: O(() => [
|
|
128
128
|
gI(h(I.cancelText), 1)
|
|
129
129
|
]),
|
|
130
130
|
_: 1
|
|
131
131
|
}),
|
|
132
|
-
|
|
132
|
+
II(i, {
|
|
133
133
|
type: "primary",
|
|
134
134
|
loading: I.loading,
|
|
135
135
|
onClick: d
|
|
@@ -146,7 +146,7 @@ const id = /* @__PURE__ */ j({
|
|
|
146
146
|
Y("div", {
|
|
147
147
|
class: u(G.$style.body)
|
|
148
148
|
}, [
|
|
149
|
-
|
|
149
|
+
ZI(G.$slots, "default")
|
|
150
150
|
], 2)
|
|
151
151
|
]),
|
|
152
152
|
_: 3
|
|
@@ -426,12 +426,12 @@ function zd(I, g) {
|
|
|
426
426
|
L % 2 === 1 && (A.left !== A.top && (K = A.left, A.left = A.top, A.top = K), A.width !== A.height && (K = A.width, A.width = A.height, A.height = K)), o.length && (d = pd(d, '<g transform="' + o.join(" ") + '">', "</g>"));
|
|
427
427
|
});
|
|
428
428
|
const l = Z.width, c = Z.height, G = A.width, b = A.height;
|
|
429
|
-
let
|
|
430
|
-
l === null ? (w = c === null ? "1em" : c === "auto" ? b : c,
|
|
429
|
+
let i, w;
|
|
430
|
+
l === null ? (w = c === null ? "1em" : c === "auto" ? b : c, i = rA(w, G / b)) : (i = l === "auto" ? G : l, w = c === null ? rA(i, b / G) : c === "auto" ? b : c);
|
|
431
431
|
const s = {}, a = (X, o) => {
|
|
432
432
|
Jd(o) || (s[X] = o.toString());
|
|
433
433
|
};
|
|
434
|
-
a("width",
|
|
434
|
+
a("width", i), a("height", w);
|
|
435
435
|
const V = [
|
|
436
436
|
A.left,
|
|
437
437
|
A.top,
|
|
@@ -656,14 +656,14 @@ function qd(I) {
|
|
|
656
656
|
if (Z.name === A.name && Z.prefix === A.prefix && Z.provider === A.provider) return;
|
|
657
657
|
Z = A;
|
|
658
658
|
const d = A.provider, l = A.prefix, c = A.name, G = C[d] || (C[d] = /* @__PURE__ */ Object.create(null)), b = G[l] || (G[l] = ag(d, l));
|
|
659
|
-
let
|
|
660
|
-
c in b.icons ?
|
|
659
|
+
let i;
|
|
660
|
+
c in b.icons ? i = g.loaded : l === "" || b.missing.has(c) ? i = g.missing : i = g.pending;
|
|
661
661
|
const w = {
|
|
662
662
|
provider: d,
|
|
663
663
|
prefix: l,
|
|
664
664
|
name: c
|
|
665
665
|
};
|
|
666
|
-
|
|
666
|
+
i.push(w);
|
|
667
667
|
}), g;
|
|
668
668
|
}
|
|
669
669
|
function _d(I, g = !0, C = !1) {
|
|
@@ -693,7 +693,7 @@ function IG(I, g, C, Z) {
|
|
|
693
693
|
l = l.concat(y);
|
|
694
694
|
} else l = I.resources.slice(d).concat(I.resources.slice(0, d));
|
|
695
695
|
const c = Date.now();
|
|
696
|
-
let G = "pending", b = 0,
|
|
696
|
+
let G = "pending", b = 0, i, w = null, s = [], a = [];
|
|
697
697
|
typeof Z == "function" && a.push(Z);
|
|
698
698
|
function V() {
|
|
699
699
|
w && (clearTimeout(w), w = null);
|
|
@@ -719,7 +719,7 @@ function IG(I, g, C, Z) {
|
|
|
719
719
|
}
|
|
720
720
|
function k() {
|
|
721
721
|
G = "failed", a.forEach((y) => {
|
|
722
|
-
y(void 0,
|
|
722
|
+
y(void 0, i);
|
|
723
723
|
});
|
|
724
724
|
}
|
|
725
725
|
function L() {
|
|
@@ -739,11 +739,11 @@ function IG(I, g, C, Z) {
|
|
|
739
739
|
return;
|
|
740
740
|
}
|
|
741
741
|
if (p === "abort") {
|
|
742
|
-
|
|
742
|
+
i = J, k();
|
|
743
743
|
return;
|
|
744
744
|
}
|
|
745
745
|
if (R) {
|
|
746
|
-
|
|
746
|
+
i = J, s.length || (l.length ? e() : k());
|
|
747
747
|
return;
|
|
748
748
|
}
|
|
749
749
|
if (V(), L(), !I.random) {
|
|
@@ -789,8 +789,8 @@ function ll(I) {
|
|
|
789
789
|
C = C.filter((l) => l().status === "pending");
|
|
790
790
|
}
|
|
791
791
|
function A(l, c, G) {
|
|
792
|
-
const b = IG(g, l, c, (
|
|
793
|
-
Z(), G && G(
|
|
792
|
+
const b = IG(g, l, c, (i, w) => {
|
|
793
|
+
Z(), G && G(i, w);
|
|
794
794
|
});
|
|
795
795
|
return C.push(b), b;
|
|
796
796
|
}
|
|
@@ -894,10 +894,10 @@ function lG(I, g) {
|
|
|
894
894
|
}
|
|
895
895
|
if (d) {
|
|
896
896
|
A.forEach((b) => {
|
|
897
|
-
IZ(d(b, Z, C), (
|
|
898
|
-
Kg(I, [b],
|
|
897
|
+
IZ(d(b, Z, C), (i) => {
|
|
898
|
+
Kg(I, [b], i ? {
|
|
899
899
|
prefix: Z,
|
|
900
|
-
icons: { [b]:
|
|
900
|
+
icons: { [b]: i }
|
|
901
901
|
} : null);
|
|
902
902
|
});
|
|
903
903
|
});
|
|
@@ -911,8 +911,8 @@ function lG(I, g) {
|
|
|
911
911
|
return;
|
|
912
912
|
}
|
|
913
913
|
G.prepare(C, Z, l).forEach((b) => {
|
|
914
|
-
CG(C, b, (
|
|
915
|
-
Kg(I, b.icons,
|
|
914
|
+
CG(C, b, (i) => {
|
|
915
|
+
Kg(I, b.icons, i);
|
|
916
916
|
});
|
|
917
917
|
});
|
|
918
918
|
}));
|
|
@@ -933,11 +933,11 @@ const dG = (I, g) => {
|
|
|
933
933
|
const { provider: G, prefix: b } = c;
|
|
934
934
|
if (b === l && G === d) return;
|
|
935
935
|
d = G, l = b, A.push(ag(G, b));
|
|
936
|
-
const
|
|
937
|
-
|
|
936
|
+
const i = Z[G] || (Z[G] = /* @__PURE__ */ Object.create(null));
|
|
937
|
+
i[b] || (i[b] = []);
|
|
938
938
|
}), C.pending.forEach((c) => {
|
|
939
|
-
const { provider: G, prefix: b, name:
|
|
940
|
-
s.has(
|
|
939
|
+
const { provider: G, prefix: b, name: i } = c, w = ag(G, b), s = w.pendingIcons || (w.pendingIcons = /* @__PURE__ */ new Set());
|
|
940
|
+
s.has(i) || (s.add(i), Z[G][b].push(i));
|
|
941
941
|
}), A.forEach((c) => {
|
|
942
942
|
const G = Z[c.provider][c.prefix];
|
|
943
943
|
G.length && lG(c, G);
|
|
@@ -1088,7 +1088,7 @@ const lZ = (I, g) => {
|
|
|
1088
1088
|
...d,
|
|
1089
1089
|
...c
|
|
1090
1090
|
}, Object.assign(Z, b), Z.innerHTML = Ld(G.body), kI("svg", Z);
|
|
1091
|
-
const { body:
|
|
1091
|
+
const { body: i, width: w, height: s } = I, a = A === "mask" || (A === "bg" ? !1 : i.indexOf("currentColor") !== -1), V = iG(i, {
|
|
1092
1092
|
...b,
|
|
1093
1093
|
width: w + "",
|
|
1094
1094
|
height: s + ""
|
|
@@ -1142,8 +1142,8 @@ const VG = {
|
|
|
1142
1142
|
}, NG = j((I, { emit: g }) => {
|
|
1143
1143
|
const C = t(null);
|
|
1144
1144
|
function Z() {
|
|
1145
|
-
var b,
|
|
1146
|
-
C.value && ((
|
|
1145
|
+
var b, i;
|
|
1146
|
+
C.value && ((i = (b = C.value).abort) == null || i.call(b), C.value = null);
|
|
1147
1147
|
}
|
|
1148
1148
|
const A = t(!!I.ssr), d = t(""), l = jC(null);
|
|
1149
1149
|
function c() {
|
|
@@ -1152,17 +1152,17 @@ const VG = {
|
|
|
1152
1152
|
return d.value = "", {
|
|
1153
1153
|
data: b
|
|
1154
1154
|
};
|
|
1155
|
-
let
|
|
1156
|
-
if (typeof b != "string" || (
|
|
1155
|
+
let i;
|
|
1156
|
+
if (typeof b != "string" || (i = WC(b, !1, !0)) === null)
|
|
1157
1157
|
return null;
|
|
1158
|
-
let w = ud(
|
|
1158
|
+
let w = ud(i);
|
|
1159
1159
|
if (!w) {
|
|
1160
1160
|
const V = C.value;
|
|
1161
1161
|
return (!V || V.name !== b) && (w === null ? C.value = {
|
|
1162
1162
|
name: b
|
|
1163
1163
|
} : C.value = {
|
|
1164
1164
|
name: b,
|
|
1165
|
-
abort: dG([
|
|
1165
|
+
abort: dG([i], G)
|
|
1166
1166
|
}), null;
|
|
1167
1167
|
}
|
|
1168
1168
|
Z(), d.value !== b && (d.value = b, $I(() => {
|
|
@@ -1171,16 +1171,16 @@ const VG = {
|
|
|
1171
1171
|
const s = I.customise;
|
|
1172
1172
|
if (s) {
|
|
1173
1173
|
w = Object.assign({}, w);
|
|
1174
|
-
const V = s(w.body,
|
|
1174
|
+
const V = s(w.body, i.name, i.prefix, i.provider);
|
|
1175
1175
|
typeof V == "string" && (w.body = V);
|
|
1176
1176
|
}
|
|
1177
1177
|
const a = ["iconify"];
|
|
1178
|
-
return
|
|
1178
|
+
return i.prefix !== "" && a.push("iconify--" + i.prefix), i.provider !== "" && a.push("iconify--" + i.provider), { data: w, classes: a };
|
|
1179
1179
|
}
|
|
1180
1180
|
function G() {
|
|
1181
|
-
var
|
|
1181
|
+
var i;
|
|
1182
1182
|
const b = c();
|
|
1183
|
-
b ? b.data !== ((
|
|
1183
|
+
b ? b.data !== ((i = l.value) == null ? void 0 : i.data) && (l.value = b) : l.value = null;
|
|
1184
1184
|
}
|
|
1185
1185
|
return A.value ? G() : tg(() => {
|
|
1186
1186
|
A.value = !0, G();
|
|
@@ -1188,14 +1188,14 @@ const VG = {
|
|
|
1188
1188
|
const b = l.value;
|
|
1189
1189
|
if (!b)
|
|
1190
1190
|
return lZ(VG, I);
|
|
1191
|
-
let
|
|
1192
|
-
return b.classes && (
|
|
1191
|
+
let i = I;
|
|
1192
|
+
return b.classes && (i = {
|
|
1193
1193
|
...I,
|
|
1194
1194
|
class: b.classes.join(" ")
|
|
1195
1195
|
}), lZ({
|
|
1196
1196
|
...BC,
|
|
1197
1197
|
...b.data
|
|
1198
|
-
},
|
|
1198
|
+
}, i);
|
|
1199
1199
|
};
|
|
1200
1200
|
}, {
|
|
1201
1201
|
props: [
|
|
@@ -1811,8 +1811,8 @@ const VG = {
|
|
|
1811
1811
|
"data-analysis": Rb,
|
|
1812
1812
|
reading: Hb,
|
|
1813
1813
|
flag: yb
|
|
1814
|
-
},
|
|
1815
|
-
function
|
|
1814
|
+
}, BV = Object.keys(ZA).sort();
|
|
1815
|
+
function YV(I) {
|
|
1816
1816
|
return I in ZA;
|
|
1817
1817
|
}
|
|
1818
1818
|
const RI = /* @__PURE__ */ j({
|
|
@@ -1824,15 +1824,15 @@ const RI = /* @__PURE__ */ j({
|
|
|
1824
1824
|
},
|
|
1825
1825
|
setup(I) {
|
|
1826
1826
|
const g = I, C = n(() => ZA[g.name] ?? null), Z = n(() => typeof g.size == "number" ? `${g.size}px` : g.size ?? "1em");
|
|
1827
|
-
return (A, d) => C.value ? (
|
|
1827
|
+
return (A, d) => C.value ? (m(), x($(NG), {
|
|
1828
1828
|
key: 0,
|
|
1829
1829
|
icon: C.value,
|
|
1830
1830
|
width: Z.value,
|
|
1831
1831
|
height: Z.value,
|
|
1832
|
-
style:
|
|
1833
|
-
}, null, 8, ["icon", "width", "height", "style"])) : (
|
|
1832
|
+
style: dI(I.color ? { color: I.color } : void 0)
|
|
1833
|
+
}, null, 8, ["icon", "width", "height", "style"])) : (m(), W("span", {
|
|
1834
1834
|
key: 1,
|
|
1835
|
-
style:
|
|
1835
|
+
style: dI({ fontSize: Z.value, color: I.color, width: Z.value, height: Z.value, display: "inline-block" }),
|
|
1836
1836
|
"aria-hidden": "true"
|
|
1837
1837
|
}, null, 4));
|
|
1838
1838
|
}
|
|
@@ -1856,17 +1856,17 @@ const RI = /* @__PURE__ */ j({
|
|
|
1856
1856
|
}
|
|
1857
1857
|
return (l, c) => {
|
|
1858
1858
|
const G = _("el-pagination");
|
|
1859
|
-
return C.total > 0 ? (
|
|
1859
|
+
return C.total > 0 ? (m(), W("div", {
|
|
1860
1860
|
key: 0,
|
|
1861
1861
|
class: u(l.$style.pagination),
|
|
1862
1862
|
"data-testid": "app-pagination"
|
|
1863
1863
|
}, [
|
|
1864
|
-
|
|
1864
|
+
II(G, {
|
|
1865
1865
|
"current-page": C.currentPage,
|
|
1866
1866
|
"page-size": C.pageSize,
|
|
1867
|
-
"page-sizes": [
|
|
1867
|
+
"page-sizes": [...$(ub)],
|
|
1868
1868
|
total: C.total,
|
|
1869
|
-
layout:
|
|
1869
|
+
layout: $(nb),
|
|
1870
1870
|
size: C.size,
|
|
1871
1871
|
background: "",
|
|
1872
1872
|
onCurrentChange: A,
|
|
@@ -1879,7 +1879,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
1879
1879
|
pagination: Kb
|
|
1880
1880
|
}, Db = {
|
|
1881
1881
|
$style: Sb
|
|
1882
|
-
},
|
|
1882
|
+
}, sV = /* @__PURE__ */ U(Mb, [["__cssModules", Db]]), Fb = /* @__PURE__ */ j({
|
|
1883
1883
|
__name: "ConfirmDialog",
|
|
1884
1884
|
props: {
|
|
1885
1885
|
modelValue: { type: Boolean },
|
|
@@ -1897,7 +1897,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
1897
1897
|
function Z() {
|
|
1898
1898
|
C("confirm"), C("update:modelValue", !1);
|
|
1899
1899
|
}
|
|
1900
|
-
return (A, d) => (
|
|
1900
|
+
return (A, d) => (m(), x(IA, {
|
|
1901
1901
|
"model-value": I.modelValue,
|
|
1902
1902
|
title: I.title,
|
|
1903
1903
|
width: I.width,
|
|
@@ -1911,17 +1911,17 @@ const RI = /* @__PURE__ */ j({
|
|
|
1911
1911
|
Y("div", {
|
|
1912
1912
|
class: u(A.$style.content)
|
|
1913
1913
|
}, [
|
|
1914
|
-
I.type === "warning" ? (
|
|
1914
|
+
I.type === "warning" ? (m(), x(RI, {
|
|
1915
1915
|
key: 0,
|
|
1916
1916
|
name: "warning",
|
|
1917
1917
|
class: u(A.$style.icon),
|
|
1918
1918
|
style: { color: "var(--el-color-warning)" }
|
|
1919
|
-
}, null, 8, ["class"])) : I.type === "danger" ? (
|
|
1919
|
+
}, null, 8, ["class"])) : I.type === "danger" ? (m(), x(RI, {
|
|
1920
1920
|
key: 1,
|
|
1921
1921
|
name: "circle-close-filled",
|
|
1922
1922
|
class: u(A.$style.icon),
|
|
1923
1923
|
style: { color: "var(--el-color-danger)" }
|
|
1924
|
-
}, null, 8, ["class"])) : (
|
|
1924
|
+
}, null, 8, ["class"])) : (m(), x(RI, {
|
|
1925
1925
|
key: 2,
|
|
1926
1926
|
name: "info-filled",
|
|
1927
1927
|
class: u(A.$style.icon),
|
|
@@ -1941,7 +1941,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
1941
1941
|
message: zb
|
|
1942
1942
|
}, eb = {
|
|
1943
1943
|
$style: kb
|
|
1944
|
-
},
|
|
1944
|
+
}, wV = /* @__PURE__ */ U(Fb, [["__cssModules", eb]]), VV = /* @__PURE__ */ j({
|
|
1945
1945
|
__name: "FormDialog",
|
|
1946
1946
|
props: {
|
|
1947
1947
|
modelValue: { type: Boolean },
|
|
@@ -1973,7 +1973,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
1973
1973
|
c && ((G = A.value) == null || G.clearValidate());
|
|
1974
1974
|
}), (c, G) => {
|
|
1975
1975
|
const b = _("el-form");
|
|
1976
|
-
return
|
|
1976
|
+
return m(), x(IA, {
|
|
1977
1977
|
"model-value": I.modelValue,
|
|
1978
1978
|
title: I.title,
|
|
1979
1979
|
width: I.width,
|
|
@@ -1981,12 +1981,12 @@ const RI = /* @__PURE__ */ j({
|
|
|
1981
1981
|
"show-fullscreen-btn": I.showFullscreenBtn,
|
|
1982
1982
|
"cancel-text": I.cancelText,
|
|
1983
1983
|
"confirm-text": I.confirmText,
|
|
1984
|
-
"onUpdate:modelValue": G[0] || (G[0] = (
|
|
1984
|
+
"onUpdate:modelValue": G[0] || (G[0] = (i) => c.$emit("update:modelValue", i)),
|
|
1985
1985
|
onConfirm: d,
|
|
1986
1986
|
onCancel: l
|
|
1987
1987
|
}, {
|
|
1988
1988
|
default: O(() => [
|
|
1989
|
-
|
|
1989
|
+
II(b, {
|
|
1990
1990
|
ref_key: "formRef",
|
|
1991
1991
|
ref: A,
|
|
1992
1992
|
model: I.formData,
|
|
@@ -1994,7 +1994,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
1994
1994
|
"label-width": I.labelWidth
|
|
1995
1995
|
}, {
|
|
1996
1996
|
default: O(() => [
|
|
1997
|
-
|
|
1997
|
+
ZI(c.$slots, "default", { form: I.formData })
|
|
1998
1998
|
]),
|
|
1999
1999
|
_: 3
|
|
2000
2000
|
}, 8, ["model", "rules", "label-width"])
|
|
@@ -2012,16 +2012,16 @@ const RI = /* @__PURE__ */ j({
|
|
|
2012
2012
|
emits: ["update:modelValue"],
|
|
2013
2013
|
setup(I, { emit: g }) {
|
|
2014
2014
|
const C = g;
|
|
2015
|
-
return (Z, A) => (
|
|
2015
|
+
return (Z, A) => (m(), W("div", {
|
|
2016
2016
|
class: u(Z.$style.tabs)
|
|
2017
2017
|
}, [
|
|
2018
|
-
(
|
|
2018
|
+
(m(!0), W(Q, null, q(I.options, (d) => (m(), W("button", {
|
|
2019
2019
|
key: d.value,
|
|
2020
2020
|
class: u([Z.$style.tab, { [Z.$style.tabActive]: I.modelValue === d.value }]),
|
|
2021
2021
|
onClick: (l) => C("update:modelValue", d.value)
|
|
2022
2022
|
}, [
|
|
2023
2023
|
gI(h(d.label) + " ", 1),
|
|
2024
|
-
d.count != null ? (
|
|
2024
|
+
d.count != null ? (m(), W("span", {
|
|
2025
2025
|
key: 0,
|
|
2026
2026
|
class: u(Z.$style.count)
|
|
2027
2027
|
}, h(d.count), 3)) : H("", !0)
|
|
@@ -2035,14 +2035,14 @@ const RI = /* @__PURE__ */ j({
|
|
|
2035
2035
|
count: Qb
|
|
2036
2036
|
}, vb = {
|
|
2037
2037
|
$style: Ub
|
|
2038
|
-
},
|
|
2038
|
+
}, NV = /* @__PURE__ */ U(tb, [["__cssModules", vb]]), Ob = ["onClick"], Eb = /* @__PURE__ */ j({
|
|
2039
2039
|
__name: "Toast",
|
|
2040
2040
|
setup(I, { expose: g }) {
|
|
2041
2041
|
const C = t([]);
|
|
2042
2042
|
let Z = 0;
|
|
2043
2043
|
function A(c, G = "info", b = 3e3) {
|
|
2044
|
-
const
|
|
2045
|
-
C.value.push({ id:
|
|
2044
|
+
const i = Z++;
|
|
2045
|
+
C.value.push({ id: i, message: c, type: G }), setTimeout(() => d(i), b);
|
|
2046
2046
|
}
|
|
2047
2047
|
function d(c) {
|
|
2048
2048
|
const G = C.value.findIndex((b) => b.id === c);
|
|
@@ -2053,27 +2053,27 @@ const RI = /* @__PURE__ */ j({
|
|
|
2053
2053
|
function l(c, G = "info", b) {
|
|
2054
2054
|
A(c, G, b);
|
|
2055
2055
|
}
|
|
2056
|
-
return g({ show: l }), (c, G) => (
|
|
2056
|
+
return g({ show: l }), (c, G) => (m(), x(QZ, { to: "body" }, [
|
|
2057
2057
|
Y("div", {
|
|
2058
2058
|
class: u(c.$style.container)
|
|
2059
2059
|
}, [
|
|
2060
|
-
|
|
2060
|
+
II(rl, { name: "toast" }, {
|
|
2061
2061
|
default: O(() => [
|
|
2062
|
-
(
|
|
2062
|
+
(m(!0), W(Q, null, q(C.value, (b) => (m(), W("div", {
|
|
2063
2063
|
key: b.id,
|
|
2064
2064
|
class: u([c.$style.item, c.$style[b.type], { [c.$style.removing]: b.removing }]),
|
|
2065
|
-
onClick: (
|
|
2065
|
+
onClick: (i) => d(b.id)
|
|
2066
2066
|
}, [
|
|
2067
2067
|
Y("span", {
|
|
2068
2068
|
class: u(c.$style.icon)
|
|
2069
2069
|
}, [
|
|
2070
|
-
b.type === "success" ? (
|
|
2070
|
+
b.type === "success" ? (m(), W(Q, { key: 0 }, [
|
|
2071
2071
|
gI("✓")
|
|
2072
|
-
], 64)) : b.type === "error" ? (
|
|
2072
|
+
], 64)) : b.type === "error" ? (m(), W(Q, { key: 1 }, [
|
|
2073
2073
|
gI("✗")
|
|
2074
|
-
], 64)) : b.type === "warning" ? (
|
|
2074
|
+
], 64)) : b.type === "warning" ? (m(), W(Q, { key: 2 }, [
|
|
2075
2075
|
gI("⚠")
|
|
2076
|
-
], 64)) : (
|
|
2076
|
+
], 64)) : (m(), W(Q, { key: 3 }, [
|
|
2077
2077
|
gI("ℹ")
|
|
2078
2078
|
], 64))
|
|
2079
2079
|
], 2),
|
|
@@ -2099,7 +2099,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2099
2099
|
msg: Cm
|
|
2100
2100
|
}, Zm = {
|
|
2101
2101
|
$style: Am
|
|
2102
|
-
},
|
|
2102
|
+
}, XV = /* @__PURE__ */ U(Eb, [["__cssModules", Zm]]), lm = /* @__PURE__ */ j({
|
|
2103
2103
|
__name: "EmptyState",
|
|
2104
2104
|
props: {
|
|
2105
2105
|
icon: {},
|
|
@@ -2114,32 +2114,32 @@ const RI = /* @__PURE__ */ j({
|
|
|
2114
2114
|
const C = g;
|
|
2115
2115
|
return (Z, A) => {
|
|
2116
2116
|
const d = _("el-button");
|
|
2117
|
-
return
|
|
2117
|
+
return m(), W("div", {
|
|
2118
2118
|
class: u([Z.$style.empty, I.compact && Z.$style.compact])
|
|
2119
2119
|
}, [
|
|
2120
|
-
I.icon ? (
|
|
2120
|
+
I.icon ? (m(), W("div", {
|
|
2121
2121
|
key: 0,
|
|
2122
2122
|
class: u(Z.$style.icon)
|
|
2123
2123
|
}, [
|
|
2124
|
-
|
|
2124
|
+
II(RI, {
|
|
2125
2125
|
name: I.icon,
|
|
2126
2126
|
size: I.iconSize ?? (I.compact ? 48 : 64)
|
|
2127
2127
|
}, null, 8, ["name", "size"])
|
|
2128
2128
|
], 2)) : H("", !0),
|
|
2129
|
-
I.title ? (
|
|
2129
|
+
I.title ? (m(), W("h2", {
|
|
2130
2130
|
key: 1,
|
|
2131
2131
|
class: u(Z.$style.title)
|
|
2132
2132
|
}, h(I.title), 3)) : H("", !0),
|
|
2133
|
-
I.description ? (
|
|
2133
|
+
I.description ? (m(), W("p", {
|
|
2134
2134
|
key: 2,
|
|
2135
2135
|
class: u(Z.$style.desc)
|
|
2136
2136
|
}, h(I.description), 3)) : H("", !0),
|
|
2137
|
-
Z.$slots.default || I.actionText ? (
|
|
2137
|
+
Z.$slots.default || I.actionText ? (m(), W("div", {
|
|
2138
2138
|
key: 3,
|
|
2139
2139
|
class: u(Z.$style.actions)
|
|
2140
2140
|
}, [
|
|
2141
|
-
|
|
2142
|
-
I.actionText ? (
|
|
2141
|
+
ZI(Z.$slots, "default", {}, () => [
|
|
2142
|
+
I.actionText ? (m(), x(d, {
|
|
2143
2143
|
key: 0,
|
|
2144
2144
|
type: "primary",
|
|
2145
2145
|
onClick: A[0] || (A[0] = (l) => C("action"))
|
|
@@ -2163,7 +2163,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2163
2163
|
actions: im
|
|
2164
2164
|
}, Bm = {
|
|
2165
2165
|
$style: Wm
|
|
2166
|
-
}, cg = /* @__PURE__ */ U(lm, [["__cssModules", Bm]]),
|
|
2166
|
+
}, cg = /* @__PURE__ */ U(lm, [["__cssModules", Bm]]), oV = j({
|
|
2167
2167
|
name: "ErrorBoundary",
|
|
2168
2168
|
props: {
|
|
2169
2169
|
/** 自定义上下文信息,用于错误日志 */
|
|
@@ -2198,7 +2198,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2198
2198
|
return c ? kI("div", { key: d.value, style: { display: "contents" } }, c) : null;
|
|
2199
2199
|
};
|
|
2200
2200
|
}
|
|
2201
|
-
}),
|
|
2201
|
+
}), hV = /* @__PURE__ */ j({
|
|
2202
2202
|
__name: "StatusTag",
|
|
2203
2203
|
props: {
|
|
2204
2204
|
status: {},
|
|
@@ -2229,7 +2229,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2229
2229
|
}, C = I, Z = n(() => ({ ...g, ...C.statusMap })[C.status] ?? { label: C.status, type: "info", effect: "light" });
|
|
2230
2230
|
return (A, d) => {
|
|
2231
2231
|
const l = _("el-tag");
|
|
2232
|
-
return
|
|
2232
|
+
return m(), x(l, {
|
|
2233
2233
|
type: Z.value.type,
|
|
2234
2234
|
effect: Z.value.effect ?? "light",
|
|
2235
2235
|
round: I.round,
|
|
@@ -2253,10 +2253,10 @@ const RI = /* @__PURE__ */ j({
|
|
|
2253
2253
|
setup(I) {
|
|
2254
2254
|
return (g, C) => {
|
|
2255
2255
|
const Z = _("el-skeleton");
|
|
2256
|
-
return
|
|
2256
|
+
return m(), W("div", {
|
|
2257
2257
|
class: u([g.$style.skeleton, { [g.$style.animated]: I.animated }])
|
|
2258
2258
|
}, [
|
|
2259
|
-
I.variant === "card" ? (
|
|
2259
|
+
I.variant === "card" ? (m(!0), W(Q, { key: 0 }, q(I.count, (A) => (m(), W("div", {
|
|
2260
2260
|
key: A,
|
|
2261
2261
|
class: u(g.$style.card)
|
|
2262
2262
|
}, [
|
|
@@ -2277,7 +2277,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2277
2277
|
}, null, 2)
|
|
2278
2278
|
], 2)
|
|
2279
2279
|
], 2))), 128)) : H("", !0),
|
|
2280
|
-
I.variant === "list" ? (
|
|
2280
|
+
I.variant === "list" ? (m(!0), W(Q, { key: 1 }, q(I.count, (A) => (m(), W("div", {
|
|
2281
2281
|
key: A,
|
|
2282
2282
|
class: u(g.$style.listItem)
|
|
2283
2283
|
}, [
|
|
@@ -2295,7 +2295,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2295
2295
|
}, null, 2)
|
|
2296
2296
|
], 2)
|
|
2297
2297
|
], 2))), 128)) : H("", !0),
|
|
2298
|
-
I.variant === "table" ? (
|
|
2298
|
+
I.variant === "table" ? (m(), x(Z, {
|
|
2299
2299
|
key: 2,
|
|
2300
2300
|
rows: I.rows,
|
|
2301
2301
|
animated: ""
|
|
@@ -2319,7 +2319,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2319
2319
|
lineTextShort: um
|
|
2320
2320
|
}, Mm = {
|
|
2321
2321
|
$style: nm
|
|
2322
|
-
},
|
|
2322
|
+
}, aV = /* @__PURE__ */ U(Ym, [["__cssModules", Mm]]), Km = /* @__PURE__ */ j({
|
|
2323
2323
|
__name: "CardGridSkeleton",
|
|
2324
2324
|
props: {
|
|
2325
2325
|
count: { default: 6 },
|
|
@@ -2327,14 +2327,14 @@ const RI = /* @__PURE__ */ j({
|
|
|
2327
2327
|
animated: { type: Boolean, default: !0 }
|
|
2328
2328
|
},
|
|
2329
2329
|
setup(I) {
|
|
2330
|
-
return (g, C) => (
|
|
2330
|
+
return (g, C) => (m(), W("div", {
|
|
2331
2331
|
class: u([g.$style.grid, { [g.$style.animated]: I.animated }])
|
|
2332
2332
|
}, [
|
|
2333
|
-
(
|
|
2333
|
+
(m(!0), W(Q, null, q(I.count, (Z) => (m(), W("div", {
|
|
2334
2334
|
key: Z,
|
|
2335
2335
|
class: u(g.$style.card)
|
|
2336
2336
|
}, [
|
|
2337
|
-
I.showThumb ? (
|
|
2337
|
+
I.showThumb ? (m(), W("div", {
|
|
2338
2338
|
key: 0,
|
|
2339
2339
|
class: u(g.$style.thumb)
|
|
2340
2340
|
}, null, 2)) : H("", !0),
|
|
@@ -2367,7 +2367,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2367
2367
|
textShort: Lm
|
|
2368
2368
|
}, Tm = {
|
|
2369
2369
|
$style: tm
|
|
2370
|
-
},
|
|
2370
|
+
}, RV = /* @__PURE__ */ U(Km, [["__cssModules", Tm]]), xm = ["src", "alt"], jm = { name: "UserAvatar" }, Qm = /* @__PURE__ */ j({
|
|
2371
2371
|
...jm,
|
|
2372
2372
|
props: {
|
|
2373
2373
|
name: { default: "" },
|
|
@@ -2384,17 +2384,17 @@ const RI = /* @__PURE__ */ j({
|
|
|
2384
2384
|
fontSize: `${Math.max(g.size * 0.45, 12)}px`
|
|
2385
2385
|
};
|
|
2386
2386
|
});
|
|
2387
|
-
return (d, l) => (
|
|
2387
|
+
return (d, l) => (m(), W("div", {
|
|
2388
2388
|
class: u([d.$style.avatar, I.shape === "square" ? d.$style.square : d.$style.circle]),
|
|
2389
|
-
style:
|
|
2389
|
+
style: dI(A.value)
|
|
2390
2390
|
}, [
|
|
2391
|
-
Z.value ? (
|
|
2391
|
+
Z.value ? (m(), W("img", {
|
|
2392
2392
|
key: 0,
|
|
2393
2393
|
src: I.src,
|
|
2394
2394
|
alt: I.name,
|
|
2395
2395
|
class: u(d.$style.img),
|
|
2396
2396
|
onError: l[0] || (l[0] = (c) => d.$emit("error", c))
|
|
2397
|
-
}, null, 42, xm)) : (
|
|
2397
|
+
}, null, 42, xm)) : (m(), W("span", {
|
|
2398
2398
|
key: 1,
|
|
2399
2399
|
class: u(d.$style.initial)
|
|
2400
2400
|
}, h(C.value), 3))
|
|
@@ -2408,7 +2408,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2408
2408
|
initial: Pm
|
|
2409
2409
|
}, fm = {
|
|
2410
2410
|
$style: rm
|
|
2411
|
-
},
|
|
2411
|
+
}, HV = /* @__PURE__ */ U(Qm, [["__cssModules", fm]]), qm = ["aria-label"], _m = {
|
|
2412
2412
|
class: "apf-user-panel__avatar",
|
|
2413
2413
|
"aria-hidden": "true"
|
|
2414
2414
|
}, $m = { class: "apf-user-panel__name" }, I0 = { class: "apf-user-panel__body" }, g0 = { class: "apf-user-panel__header" }, C0 = {
|
|
@@ -2448,10 +2448,10 @@ const RI = /* @__PURE__ */ j({
|
|
|
2448
2448
|
});
|
|
2449
2449
|
return (c, G) => {
|
|
2450
2450
|
const b = _("el-popover");
|
|
2451
|
-
return
|
|
2451
|
+
return m(), W("div", {
|
|
2452
2452
|
class: u(["apf-user-panel", { "apf-user-panel--block": I.block }])
|
|
2453
2453
|
}, [
|
|
2454
|
-
|
|
2454
|
+
II(b, {
|
|
2455
2455
|
placement: I.placement,
|
|
2456
2456
|
trigger: ["hover", "focus"],
|
|
2457
2457
|
"show-arrow": !1,
|
|
@@ -2472,18 +2472,18 @@ const RI = /* @__PURE__ */ j({
|
|
|
2472
2472
|
], 10, qm)
|
|
2473
2473
|
]),
|
|
2474
2474
|
default: O(() => {
|
|
2475
|
-
var
|
|
2475
|
+
var i;
|
|
2476
2476
|
return [
|
|
2477
2477
|
Y("div", I0, [
|
|
2478
2478
|
Y("div", g0, [
|
|
2479
2479
|
Y("span", C0, h(d.value), 1),
|
|
2480
2480
|
Y("div", A0, [
|
|
2481
2481
|
Y("div", Z0, h(A.value), 1),
|
|
2482
|
-
(
|
|
2482
|
+
(i = I.user) != null && i.username ? (m(), W("div", l0, "@" + h(I.user.username), 1)) : H("", !0)
|
|
2483
2483
|
])
|
|
2484
2484
|
]),
|
|
2485
|
-
l.value.length > 0 ? (
|
|
2486
|
-
(
|
|
2485
|
+
l.value.length > 0 ? (m(), W("dl", d0, [
|
|
2486
|
+
(m(!0), W(Q, null, q(l.value, (w) => (m(), W("div", {
|
|
2487
2487
|
key: w.label,
|
|
2488
2488
|
class: "apf-user-panel__row"
|
|
2489
2489
|
}, [
|
|
@@ -2497,7 +2497,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2497
2497
|
class: "apf-user-panel__logout",
|
|
2498
2498
|
onClick: G[0] || (G[0] = (w) => Z("logout"))
|
|
2499
2499
|
}, [
|
|
2500
|
-
$(
|
|
2500
|
+
II($(RI), {
|
|
2501
2501
|
name: "switch-button",
|
|
2502
2502
|
size: 14
|
|
2503
2503
|
}),
|
|
@@ -2511,7 +2511,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2511
2511
|
], 2);
|
|
2512
2512
|
};
|
|
2513
2513
|
}
|
|
2514
|
-
}),
|
|
2514
|
+
}), yV = /* @__PURE__ */ U(G0, [["__scopeId", "data-v-1bb71f74"]]), c0 = { class: "apf-slider-captcha__panel" }, b0 = {
|
|
2515
2515
|
key: 0,
|
|
2516
2516
|
class: "apf-slider-captcha__placeholder"
|
|
2517
2517
|
}, m0 = {
|
|
@@ -2531,18 +2531,18 @@ const RI = /* @__PURE__ */ j({
|
|
|
2531
2531
|
},
|
|
2532
2532
|
emits: ["update:modelValue"],
|
|
2533
2533
|
setup(I, { expose: g, emit: C }) {
|
|
2534
|
-
const Z = I, A = C, d = t(!1), l = t(null), c = t(null), G = t(0), b = t(!1),
|
|
2534
|
+
const Z = I, A = C, d = t(!1), l = t(null), c = t(null), G = t(0), b = t(!1), i = t(!1), w = t(!1), s = t(0), a = t(0), V = n(() => cZ - bZ);
|
|
2535
2535
|
function X(y) {
|
|
2536
2536
|
var p;
|
|
2537
2537
|
A("update:modelValue", {
|
|
2538
2538
|
captchaId: ((p = c.value) == null ? void 0 : p.captchaId) ?? "",
|
|
2539
2539
|
captchaX: G.value,
|
|
2540
|
-
verified:
|
|
2540
|
+
verified: i.value,
|
|
2541
2541
|
...y
|
|
2542
2542
|
});
|
|
2543
2543
|
}
|
|
2544
2544
|
async function o() {
|
|
2545
|
-
d.value = !0, l.value = null,
|
|
2545
|
+
d.value = !0, l.value = null, i.value = !1, G.value = 0, c.value = null, X({ captchaId: "", captchaX: 0, verified: !1 });
|
|
2546
2546
|
try {
|
|
2547
2547
|
const y = await Z.fetchCaptcha();
|
|
2548
2548
|
c.value = y, X({ captchaId: y.captchaId, captchaX: 0, verified: !1 });
|
|
@@ -2556,18 +2556,18 @@ const RI = /* @__PURE__ */ j({
|
|
|
2556
2556
|
return Math.max(0, Math.min(V.value, y));
|
|
2557
2557
|
}
|
|
2558
2558
|
function k(y) {
|
|
2559
|
-
|
|
2559
|
+
i.value || !c.value || d.value || (b.value = !0, s.value = y.clientX, a.value = G.value, y.currentTarget.setPointerCapture(y.pointerId));
|
|
2560
2560
|
}
|
|
2561
2561
|
function L(y) {
|
|
2562
2562
|
b.value && (G.value = S(a.value + (y.clientX - s.value)));
|
|
2563
2563
|
}
|
|
2564
2564
|
function K() {
|
|
2565
2565
|
var y;
|
|
2566
|
-
b.value && (b.value = !1,
|
|
2566
|
+
b.value && (b.value = !1, i.value = G.value > 10, X({
|
|
2567
2567
|
captchaId: ((y = c.value) == null ? void 0 : y.captchaId) ?? "",
|
|
2568
2568
|
captchaX: Math.round(G.value),
|
|
2569
|
-
verified:
|
|
2570
|
-
}),
|
|
2569
|
+
verified: i.value
|
|
2570
|
+
}), i.value || (w.value = !0, window.setTimeout(() => {
|
|
2571
2571
|
w.value = !1;
|
|
2572
2572
|
}, 400)));
|
|
2573
2573
|
}
|
|
@@ -2586,24 +2586,24 @@ const RI = /* @__PURE__ */ j({
|
|
|
2586
2586
|
return {
|
|
2587
2587
|
captchaId: ((y = c.value) == null ? void 0 : y.captchaId) ?? "",
|
|
2588
2588
|
captchaX: Math.round(G.value),
|
|
2589
|
-
verified:
|
|
2589
|
+
verified: i.value
|
|
2590
2590
|
};
|
|
2591
2591
|
}
|
|
2592
|
-
}), (y, p) => (
|
|
2592
|
+
}), (y, p) => (m(), W("div", {
|
|
2593
2593
|
class: u(["apf-slider-captcha", { "apf-slider-captcha--shake": w.value }])
|
|
2594
2594
|
}, [
|
|
2595
2595
|
Y("div", c0, [
|
|
2596
|
-
d.value ? (
|
|
2596
|
+
d.value ? (m(), W("div", b0, "加载验证码…")) : l.value ? (m(), W("div", m0, [
|
|
2597
2597
|
Y("span", null, h(l.value), 1),
|
|
2598
2598
|
Y("button", {
|
|
2599
2599
|
type: "button",
|
|
2600
2600
|
class: "apf-slider-captcha__link",
|
|
2601
2601
|
onClick: o
|
|
2602
2602
|
}, "重试")
|
|
2603
|
-
])) : c.value ? (
|
|
2603
|
+
])) : c.value ? (m(), W("div", {
|
|
2604
2604
|
key: 2,
|
|
2605
2605
|
class: "apf-slider-captcha__stage",
|
|
2606
|
-
style:
|
|
2606
|
+
style: dI({ width: `${cZ}px` })
|
|
2607
2607
|
}, [
|
|
2608
2608
|
Y("img", {
|
|
2609
2609
|
src: c.value.backgroundImage,
|
|
@@ -2615,7 +2615,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2615
2615
|
src: c.value.sliderImage,
|
|
2616
2616
|
alt: "",
|
|
2617
2617
|
class: "apf-slider-captcha__piece",
|
|
2618
|
-
style:
|
|
2618
|
+
style: dI({ top: `${c.value.sliderY}px`, left: `${G.value}px` }),
|
|
2619
2619
|
draggable: "false"
|
|
2620
2620
|
}, null, 12, W0),
|
|
2621
2621
|
Y("button", {
|
|
@@ -2625,7 +2625,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2625
2625
|
"aria-label": "刷新验证码",
|
|
2626
2626
|
onClick: o
|
|
2627
2627
|
}, [
|
|
2628
|
-
$(
|
|
2628
|
+
II($(RI), {
|
|
2629
2629
|
name: "refresh-right",
|
|
2630
2630
|
size: 14
|
|
2631
2631
|
})
|
|
@@ -2634,32 +2634,32 @@ const RI = /* @__PURE__ */ j({
|
|
|
2634
2634
|
]),
|
|
2635
2635
|
Y("div", {
|
|
2636
2636
|
class: u(["apf-slider-captcha__track", {
|
|
2637
|
-
"apf-slider-captcha__track--ok":
|
|
2637
|
+
"apf-slider-captcha__track--ok": i.value,
|
|
2638
2638
|
"apf-slider-captcha__track--active": b.value
|
|
2639
2639
|
}])
|
|
2640
2640
|
}, [
|
|
2641
2641
|
Y("div", {
|
|
2642
2642
|
class: "apf-slider-captcha__fill",
|
|
2643
|
-
style:
|
|
2643
|
+
style: dI({ width: `${G.value + bZ / 2}px` })
|
|
2644
2644
|
}, null, 4),
|
|
2645
|
-
!
|
|
2645
|
+
!i.value && G.value < 8 ? (m(), W("span", B0, "向右拖动滑块完成验证")) : i.value ? (m(), W("span", Y0, "已完成,提交时校验")) : H("", !0),
|
|
2646
2646
|
Y("div", {
|
|
2647
|
-
class: u(["apf-slider-captcha__knob", { "apf-slider-captcha__knob--ok":
|
|
2648
|
-
style:
|
|
2647
|
+
class: u(["apf-slider-captcha__knob", { "apf-slider-captcha__knob--ok": i.value }]),
|
|
2648
|
+
style: dI({ left: `${G.value}px` }),
|
|
2649
2649
|
onPointerdown: k,
|
|
2650
2650
|
onPointermove: L,
|
|
2651
2651
|
onPointerup: K,
|
|
2652
2652
|
onPointercancel: K
|
|
2653
2653
|
}, [
|
|
2654
|
-
$(
|
|
2655
|
-
name:
|
|
2654
|
+
II($(RI), {
|
|
2655
|
+
name: i.value ? "check" : "arrow-right",
|
|
2656
2656
|
size: 14
|
|
2657
2657
|
}, null, 8, ["name"])
|
|
2658
2658
|
], 38)
|
|
2659
2659
|
], 2)
|
|
2660
2660
|
], 2));
|
|
2661
2661
|
}
|
|
2662
|
-
}),
|
|
2662
|
+
}), uV = /* @__PURE__ */ U(s0, [["__scopeId", "data-v-c7d9d170"]]), w0 = { class: "apf-time-range-picker__panel" }, V0 = { class: "apf-time-range-picker__actions" }, N0 = /* @__PURE__ */ j({
|
|
2663
2663
|
__name: "TimeRangePicker",
|
|
2664
2664
|
props: {
|
|
2665
2665
|
modelValue: {},
|
|
@@ -2704,7 +2704,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2704
2704
|
};
|
|
2705
2705
|
return `自定义 ${V(a.start)} ~ ${V(a.end)}`;
|
|
2706
2706
|
}
|
|
2707
|
-
const
|
|
2707
|
+
const i = n(
|
|
2708
2708
|
() => A.modelValue.preset === "custom" ? b(A.modelValue) : "自定义"
|
|
2709
2709
|
);
|
|
2710
2710
|
function w(a) {
|
|
@@ -2726,12 +2726,12 @@ const RI = /* @__PURE__ */ j({
|
|
|
2726
2726
|
}
|
|
2727
2727
|
return (a, V) => {
|
|
2728
2728
|
const X = _("el-button"), o = _("el-button-group"), S = _("el-date-picker"), k = _("el-popover");
|
|
2729
|
-
return
|
|
2729
|
+
return m(), W("div", {
|
|
2730
2730
|
class: u(["apf-time-range-picker", [`apf-time-range-picker--${I.size}`]])
|
|
2731
2731
|
}, [
|
|
2732
|
-
I.showPresets ? (
|
|
2732
|
+
I.showPresets ? (m(), x(o, { key: 0 }, {
|
|
2733
2733
|
default: O(() => [
|
|
2734
|
-
(
|
|
2734
|
+
(m(!0), W(Q, null, q(G.value, (L) => (m(), x(X, {
|
|
2735
2735
|
key: L,
|
|
2736
2736
|
size: I.size,
|
|
2737
2737
|
disabled: I.disabled,
|
|
@@ -2746,7 +2746,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2746
2746
|
]),
|
|
2747
2747
|
_: 1
|
|
2748
2748
|
})) : H("", !0),
|
|
2749
|
-
I.allowCustom ? (
|
|
2749
|
+
I.allowCustom ? (m(), x(k, {
|
|
2750
2750
|
key: 1,
|
|
2751
2751
|
visible: l.value,
|
|
2752
2752
|
"onUpdate:visible": V[2] || (V[2] = (L) => l.value = L),
|
|
@@ -2756,21 +2756,21 @@ const RI = /* @__PURE__ */ j({
|
|
|
2756
2756
|
disabled: I.disabled
|
|
2757
2757
|
}, {
|
|
2758
2758
|
reference: O(() => [
|
|
2759
|
-
|
|
2759
|
+
II(X, {
|
|
2760
2760
|
size: I.size,
|
|
2761
2761
|
disabled: I.disabled,
|
|
2762
2762
|
type: I.modelValue.preset === "custom" ? "primary" : "default",
|
|
2763
2763
|
class: "apf-time-range-picker__custom"
|
|
2764
2764
|
}, {
|
|
2765
2765
|
default: O(() => [
|
|
2766
|
-
gI(h(
|
|
2766
|
+
gI(h(i.value), 1)
|
|
2767
2767
|
]),
|
|
2768
2768
|
_: 1
|
|
2769
2769
|
}, 8, ["size", "disabled", "type"])
|
|
2770
2770
|
]),
|
|
2771
2771
|
default: O(() => [
|
|
2772
2772
|
Y("div", w0, [
|
|
2773
|
-
|
|
2773
|
+
II(S, {
|
|
2774
2774
|
modelValue: c.value,
|
|
2775
2775
|
"onUpdate:modelValue": V[0] || (V[0] = (L) => c.value = L),
|
|
2776
2776
|
type: "datetimerange",
|
|
@@ -2781,7 +2781,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2781
2781
|
style: { width: "100%" }
|
|
2782
2782
|
}, null, 8, ["modelValue", "size"]),
|
|
2783
2783
|
Y("div", V0, [
|
|
2784
|
-
|
|
2784
|
+
II(X, {
|
|
2785
2785
|
size: I.size,
|
|
2786
2786
|
onClick: V[1] || (V[1] = (L) => l.value = !1)
|
|
2787
2787
|
}, {
|
|
@@ -2790,7 +2790,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2790
2790
|
])]),
|
|
2791
2791
|
_: 1
|
|
2792
2792
|
}, 8, ["size"]),
|
|
2793
|
-
|
|
2793
|
+
II(X, {
|
|
2794
2794
|
type: "primary",
|
|
2795
2795
|
size: I.size,
|
|
2796
2796
|
disabled: !c.value,
|
|
@@ -2809,7 +2809,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2809
2809
|
], 2);
|
|
2810
2810
|
};
|
|
2811
2811
|
}
|
|
2812
|
-
}),
|
|
2812
|
+
}), nV = /* @__PURE__ */ U(N0, [["__scopeId", "data-v-cb3adbf3"]]), X0 = {
|
|
2813
2813
|
key: 0,
|
|
2814
2814
|
class: "apf-content-panel__head"
|
|
2815
2815
|
}, o0 = {
|
|
@@ -2826,20 +2826,20 @@ const RI = /* @__PURE__ */ j({
|
|
|
2826
2826
|
fill: { type: Boolean, default: !1 }
|
|
2827
2827
|
},
|
|
2828
2828
|
setup(I) {
|
|
2829
|
-
return (g, C) => (
|
|
2829
|
+
return (g, C) => (m(), W("section", {
|
|
2830
2830
|
class: u(["apf-content-panel", {
|
|
2831
2831
|
"apf-content-panel--flush": I.flush,
|
|
2832
2832
|
"apf-content-panel--fill": I.fill
|
|
2833
2833
|
}])
|
|
2834
2834
|
}, [
|
|
2835
|
-
I.title || g.$slots.extra ? (
|
|
2836
|
-
I.title ? (
|
|
2837
|
-
g.$slots.extra ? (
|
|
2838
|
-
|
|
2835
|
+
I.title || g.$slots.extra ? (m(), W("header", X0, [
|
|
2836
|
+
I.title ? (m(), W("span", o0, h(I.title), 1)) : H("", !0),
|
|
2837
|
+
g.$slots.extra ? (m(), W("div", h0, [
|
|
2838
|
+
ZI(g.$slots, "extra", {}, void 0, !0)
|
|
2839
2839
|
])) : H("", !0)
|
|
2840
2840
|
])) : H("", !0),
|
|
2841
2841
|
Y("div", a0, [
|
|
2842
|
-
|
|
2842
|
+
ZI(g.$slots, "default", {}, void 0, !0)
|
|
2843
2843
|
])
|
|
2844
2844
|
], 2));
|
|
2845
2845
|
}
|
|
@@ -2873,7 +2873,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2873
2873
|
splitLine: "#EBEDF3",
|
|
2874
2874
|
tooltipBg: "#FFFFFF",
|
|
2875
2875
|
tooltipText: "#303133"
|
|
2876
|
-
},
|
|
2876
|
+
}, MV = {
|
|
2877
2877
|
title: "#303133",
|
|
2878
2878
|
primary: "#333333",
|
|
2879
2879
|
regular: "#606266",
|
|
@@ -2882,7 +2882,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2882
2882
|
placeholder: "#969FA8",
|
|
2883
2883
|
disabled: "#C0C4CC",
|
|
2884
2884
|
inverse: "#FFFFFF"
|
|
2885
|
-
},
|
|
2885
|
+
}, KV = {
|
|
2886
2886
|
10: "10px",
|
|
2887
2887
|
11: "11px",
|
|
2888
2888
|
12: "12px",
|
|
@@ -2895,7 +2895,7 @@ const RI = /* @__PURE__ */ j({
|
|
|
2895
2895
|
22: "22px",
|
|
2896
2896
|
24: "24px",
|
|
2897
2897
|
28: "28px"
|
|
2898
|
-
},
|
|
2898
|
+
}, SV = {
|
|
2899
2899
|
xs: "4px",
|
|
2900
2900
|
sm: "8px",
|
|
2901
2901
|
md: "16px",
|
|
@@ -2906,32 +2906,32 @@ const RI = /* @__PURE__ */ j({
|
|
|
2906
2906
|
10: "10px",
|
|
2907
2907
|
12: "12px",
|
|
2908
2908
|
20: "20px"
|
|
2909
|
-
},
|
|
2909
|
+
}, DV = {
|
|
2910
2910
|
xs: "24px",
|
|
2911
2911
|
sm: "28px",
|
|
2912
2912
|
md: "32px",
|
|
2913
2913
|
lg: "40px",
|
|
2914
2914
|
xl: "44px"
|
|
2915
|
-
},
|
|
2915
|
+
}, FV = {
|
|
2916
2916
|
header: "56px",
|
|
2917
2917
|
conversationHeader: "68px",
|
|
2918
2918
|
dialogFooter: "60px",
|
|
2919
2919
|
toolbar: "48px",
|
|
2920
2920
|
tabs: "40px",
|
|
2921
2921
|
listRow: "48px"
|
|
2922
|
-
},
|
|
2922
|
+
}, pV = {
|
|
2923
2923
|
xs: "12px",
|
|
2924
2924
|
sm: "14px",
|
|
2925
2925
|
md: "16px",
|
|
2926
2926
|
lg: "20px",
|
|
2927
2927
|
xl: "24px"
|
|
2928
|
-
},
|
|
2928
|
+
}, JV = {
|
|
2929
2929
|
paddingX: "24px",
|
|
2930
2930
|
paddingY: "24px",
|
|
2931
2931
|
headerPaddingTop: "28px",
|
|
2932
2932
|
sidebarWidth: "240px",
|
|
2933
2933
|
sidebarWidthCollapsed: "64px"
|
|
2934
|
-
},
|
|
2934
|
+
}, zV = {
|
|
2935
2935
|
sm: "2px",
|
|
2936
2936
|
md: "4px",
|
|
2937
2937
|
6: "6px",
|
|
@@ -2939,11 +2939,11 @@ const RI = /* @__PURE__ */ j({
|
|
|
2939
2939
|
lg: "10px",
|
|
2940
2940
|
xl: "12px",
|
|
2941
2941
|
full: "999px"
|
|
2942
|
-
},
|
|
2942
|
+
}, kV = {
|
|
2943
2943
|
fieldWidth: "220px",
|
|
2944
2944
|
labelWidth: "96px",
|
|
2945
2945
|
fieldGap: "6px"
|
|
2946
|
-
},
|
|
2946
|
+
}, eV = {
|
|
2947
2947
|
sm: "24px",
|
|
2948
2948
|
md: "32px",
|
|
2949
2949
|
lg: "40px",
|
|
@@ -2952,11 +2952,11 @@ const RI = /* @__PURE__ */ j({
|
|
|
2952
2952
|
sm: "0 1px 2px rgba(0, 0, 0, 0.05)",
|
|
2953
2953
|
md: "0 4px 12px rgba(0, 0, 0, 0.08)",
|
|
2954
2954
|
lg: "0 8px 24px rgba(0, 0, 0, 0.12)"
|
|
2955
|
-
},
|
|
2955
|
+
}, LV = {
|
|
2956
2956
|
fast: "0.15s",
|
|
2957
2957
|
normal: "0.25s",
|
|
2958
2958
|
slow: "0.35s"
|
|
2959
|
-
},
|
|
2959
|
+
}, tV = {
|
|
2960
2960
|
dropdown: 1e3,
|
|
2961
2961
|
sticky: 1020,
|
|
2962
2962
|
fixed: 1030,
|
|
@@ -3063,7 +3063,7 @@ const D0 = {
|
|
|
3063
3063
|
setup(I, { emit: g }) {
|
|
3064
3064
|
const C = I, Z = g, A = t(null), d = t(!1);
|
|
3065
3065
|
let l = null, c = null, G = null, b = null;
|
|
3066
|
-
const
|
|
3066
|
+
const i = n(
|
|
3067
3067
|
() => C.height ?? (C.variant === "spark" ? 32 : 280)
|
|
3068
3068
|
), w = n(() => C.series.some((k) => k.data.length > 0)), s = n(
|
|
3069
3069
|
() => !C.loading && !d.value && w.value
|
|
@@ -3194,32 +3194,32 @@ const D0 = {
|
|
|
3194
3194
|
S();
|
|
3195
3195
|
}), mg(() => {
|
|
3196
3196
|
V();
|
|
3197
|
-
}), (k, L) => I.variant === "full" ? (
|
|
3197
|
+
}), (k, L) => I.variant === "full" ? (m(), x($(H0), {
|
|
3198
3198
|
key: 0,
|
|
3199
3199
|
title: I.title,
|
|
3200
3200
|
class: "apf-metric-chart"
|
|
3201
3201
|
}, UZ({
|
|
3202
3202
|
default: O(() => [
|
|
3203
|
-
I.loading ? (
|
|
3203
|
+
I.loading ? (m(), W("div", {
|
|
3204
3204
|
key: 0,
|
|
3205
3205
|
class: "apf-metric-chart__loading",
|
|
3206
|
-
style:
|
|
3207
|
-
}, " 加载中… ", 4)) : d.value ? (
|
|
3206
|
+
style: dI({ height: `${i.value}px` })
|
|
3207
|
+
}, " 加载中… ", 4)) : d.value ? (m(), x($(cg), {
|
|
3208
3208
|
key: 1,
|
|
3209
3209
|
title: "需要安装 echarts",
|
|
3210
3210
|
description: "pnpm add echarts"
|
|
3211
|
-
})) : w.value ? (
|
|
3211
|
+
})) : w.value ? (m(), W("div", {
|
|
3212
3212
|
key: 3,
|
|
3213
3213
|
ref_key: "chartEl",
|
|
3214
3214
|
ref: A,
|
|
3215
3215
|
class: "apf-metric-chart__canvas",
|
|
3216
|
-
style:
|
|
3217
|
-
}, null, 4)) : (
|
|
3216
|
+
style: dI({ height: `${i.value}px` })
|
|
3217
|
+
}, null, 4)) : (m(), W("div", {
|
|
3218
3218
|
key: 2,
|
|
3219
|
-
style:
|
|
3219
|
+
style: dI({ height: `${i.value}px` })
|
|
3220
3220
|
}, [
|
|
3221
|
-
|
|
3222
|
-
$(
|
|
3221
|
+
ZI(k.$slots, "empty", {}, () => [
|
|
3222
|
+
II($(cg), { title: "暂无数据" })
|
|
3223
3223
|
], !0)
|
|
3224
3224
|
], 4))
|
|
3225
3225
|
]),
|
|
@@ -3228,33 +3228,33 @@ const D0 = {
|
|
|
3228
3228
|
k.$slots["header-actions"] ? {
|
|
3229
3229
|
name: "extra",
|
|
3230
3230
|
fn: O(() => [
|
|
3231
|
-
|
|
3231
|
+
ZI(k.$slots, "header-actions", {}, void 0, !0)
|
|
3232
3232
|
]),
|
|
3233
3233
|
key: "0"
|
|
3234
3234
|
} : void 0
|
|
3235
|
-
]), 1032, ["title"])) : (
|
|
3236
|
-
I.loading ? (
|
|
3235
|
+
]), 1032, ["title"])) : (m(), W("div", D0, [
|
|
3236
|
+
I.loading ? (m(), W("div", {
|
|
3237
3237
|
key: 0,
|
|
3238
3238
|
class: "apf-metric-chart__loading",
|
|
3239
|
-
style:
|
|
3240
|
-
}, " … ", 4)) : d.value ? (
|
|
3239
|
+
style: dI({ height: `${i.value}px` })
|
|
3240
|
+
}, " … ", 4)) : d.value ? (m(), x($(cg), {
|
|
3241
3241
|
key: 1,
|
|
3242
3242
|
title: "需要 echarts",
|
|
3243
3243
|
description: ""
|
|
3244
|
-
})) : w.value ? (
|
|
3244
|
+
})) : w.value ? (m(), W("div", {
|
|
3245
3245
|
key: 3,
|
|
3246
3246
|
ref_key: "chartEl",
|
|
3247
3247
|
ref: A,
|
|
3248
3248
|
class: "apf-metric-chart__canvas",
|
|
3249
|
-
style:
|
|
3250
|
-
}, null, 4)) : (
|
|
3249
|
+
style: dI({ height: `${i.value}px` })
|
|
3250
|
+
}, null, 4)) : (m(), W("div", {
|
|
3251
3251
|
key: 2,
|
|
3252
3252
|
class: "apf-metric-chart__spark-empty",
|
|
3253
|
-
style:
|
|
3253
|
+
style: dI({ height: `${i.value}px` })
|
|
3254
3254
|
}, null, 4))
|
|
3255
3255
|
]));
|
|
3256
3256
|
}
|
|
3257
|
-
}),
|
|
3257
|
+
}), TV = /* @__PURE__ */ U(F0, [["__scopeId", "data-v-a72b4e2b"]]), p0 = {
|
|
3258
3258
|
key: 0,
|
|
3259
3259
|
class: "apf-stat-card__bar"
|
|
3260
3260
|
}, J0 = {
|
|
@@ -3289,25 +3289,25 @@ const D0 = {
|
|
|
3289
3289
|
const C = I, Z = g, A = n(() => {
|
|
3290
3290
|
const b = C.trend;
|
|
3291
3291
|
if (!b || b.direction === "flat") return "var(--text-color-muted)";
|
|
3292
|
-
const
|
|
3293
|
-
return (b.direction === "up" ?
|
|
3292
|
+
const i = b.positiveIsGood !== !1;
|
|
3293
|
+
return (b.direction === "up" ? i : !i) ? "var(--color-success)" : "var(--color-danger)";
|
|
3294
3294
|
}), d = n(() => {
|
|
3295
|
-
var
|
|
3296
|
-
const b = (
|
|
3295
|
+
var i;
|
|
3296
|
+
const b = (i = C.trend) == null ? void 0 : i.direction;
|
|
3297
3297
|
return b === "up" ? "↑" : b === "down" ? "↓" : "→";
|
|
3298
3298
|
}), l = n(() => {
|
|
3299
3299
|
const b = C.sparkline;
|
|
3300
3300
|
if (!(b != null && b.length)) return "";
|
|
3301
|
-
const
|
|
3301
|
+
const i = 80, w = 32, s = Math.min(...b), V = Math.max(...b) - s || 1;
|
|
3302
3302
|
return b.map((X, o) => {
|
|
3303
|
-
const S = o / Math.max(b.length - 1, 1) *
|
|
3303
|
+
const S = o / Math.max(b.length - 1, 1) * i, k = w - (X - s) / V * (w - 4) - 2;
|
|
3304
3304
|
return `${o === 0 ? "M" : "L"}${S.toFixed(1)},${k.toFixed(1)}`;
|
|
3305
3305
|
}).join(" ");
|
|
3306
3306
|
}), c = n(() => C.status === "healthy" ? "var(--color-success)" : C.status === "warning" ? "var(--color-warning)" : C.status === "error" ? "var(--color-danger)" : "var(--color-primary)");
|
|
3307
3307
|
function G(b) {
|
|
3308
3308
|
C.to || Z("click", b);
|
|
3309
3309
|
}
|
|
3310
|
-
return (b,
|
|
3310
|
+
return (b, i) => (m(), x(vZ(I.to ? "a" : "div"), {
|
|
3311
3311
|
class: u(["apf-stat-card", [
|
|
3312
3312
|
I.status ? `apf-stat-card--${I.status}` : "",
|
|
3313
3313
|
{ "apf-stat-card--clickable": !!I.to }
|
|
@@ -3316,33 +3316,33 @@ const D0 = {
|
|
|
3316
3316
|
role: I.to ? void 0 : "button",
|
|
3317
3317
|
tabindex: I.to ? void 0 : 0,
|
|
3318
3318
|
onClick: G,
|
|
3319
|
-
onKeydown:
|
|
3319
|
+
onKeydown: i[0] || (i[0] = QC(UI((w) => !I.to && G(w), ["prevent"]), ["enter"]))
|
|
3320
3320
|
}, {
|
|
3321
3321
|
default: O(() => {
|
|
3322
3322
|
var w;
|
|
3323
3323
|
return [
|
|
3324
|
-
I.status ? (
|
|
3325
|
-
I.loading ? (
|
|
3324
|
+
I.status ? (m(), W("div", p0)) : H("", !0),
|
|
3325
|
+
I.loading ? (m(), W("div", J0, [...i[1] || (i[1] = [
|
|
3326
3326
|
Y("div", { class: "apf-stat-card__skel apf-stat-card__skel--label" }, null, -1),
|
|
3327
3327
|
Y("div", { class: "apf-stat-card__skel apf-stat-card__skel--value" }, null, -1),
|
|
3328
3328
|
Y("div", { class: "apf-stat-card__skel apf-stat-card__skel--spark" }, null, -1)
|
|
3329
|
-
])])) : (
|
|
3329
|
+
])])) : (m(), W("div", z0, [
|
|
3330
3330
|
Y("div", k0, h(I.label), 1),
|
|
3331
3331
|
Y("div", e0, [
|
|
3332
3332
|
Y("span", L0, h(I.value), 1),
|
|
3333
|
-
I.unit ? (
|
|
3334
|
-
I.trend ? (
|
|
3333
|
+
I.unit ? (m(), W("span", t0, h(I.unit), 1)) : H("", !0),
|
|
3334
|
+
I.trend ? (m(), W("span", {
|
|
3335
3335
|
key: 1,
|
|
3336
3336
|
class: "apf-stat-card__trend",
|
|
3337
|
-
style:
|
|
3337
|
+
style: dI({ color: A.value })
|
|
3338
3338
|
}, [
|
|
3339
3339
|
gI(h(d.value) + " ", 1),
|
|
3340
|
-
I.trend.percent != null ? (
|
|
3340
|
+
I.trend.percent != null ? (m(), W(Q, { key: 0 }, [
|
|
3341
3341
|
gI(h(I.trend.percent) + "%", 1)
|
|
3342
3342
|
], 64)) : H("", !0)
|
|
3343
3343
|
], 4)) : H("", !0)
|
|
3344
3344
|
]),
|
|
3345
|
-
(w = I.sparkline) != null && w.length ? (
|
|
3345
|
+
(w = I.sparkline) != null && w.length ? (m(), W("svg", T0, [
|
|
3346
3346
|
Y("path", {
|
|
3347
3347
|
d: l.value,
|
|
3348
3348
|
fill: "none",
|
|
@@ -3358,7 +3358,7 @@ const D0 = {
|
|
|
3358
3358
|
_: 1
|
|
3359
3359
|
}, 40, ["class", "href", "role", "tabindex"]));
|
|
3360
3360
|
}
|
|
3361
|
-
}),
|
|
3361
|
+
}), xV = /* @__PURE__ */ U(j0, [["__scopeId", "data-v-3e48d232"]]), Q0 = /* @__PURE__ */ j({
|
|
3362
3362
|
__name: "SeverityBadge",
|
|
3363
3363
|
props: {
|
|
3364
3364
|
severity: {},
|
|
@@ -3373,7 +3373,7 @@ const D0 = {
|
|
|
3373
3373
|
warning: "警告",
|
|
3374
3374
|
info: "信息"
|
|
3375
3375
|
};
|
|
3376
|
-
return (A, d) => (
|
|
3376
|
+
return (A, d) => (m(), W("span", {
|
|
3377
3377
|
class: u(["apf-severity-badge", [
|
|
3378
3378
|
`apf-severity-badge--${I.severity}`,
|
|
3379
3379
|
`apf-severity-badge--${I.size}`,
|
|
@@ -3387,7 +3387,7 @@ const D0 = {
|
|
|
3387
3387
|
Y("span", null, h(Z[I.severity]), 1)
|
|
3388
3388
|
], 2));
|
|
3389
3389
|
}
|
|
3390
|
-
}),
|
|
3390
|
+
}), jV = /* @__PURE__ */ U(Q0, [["__scopeId", "data-v-e6c92ddb"]]), U0 = ["onClick"], v0 = { class: "apf-service-grid__body" }, O0 = { class: "apf-service-grid__name" }, E0 = {
|
|
3391
3391
|
key: 0,
|
|
3392
3392
|
class: "apf-service-grid__metrics"
|
|
3393
3393
|
}, P0 = { key: 0 }, r0 = { key: 1 }, f0 = { key: 2 }, q0 = /* @__PURE__ */ j({
|
|
@@ -3414,25 +3414,25 @@ const D0 = {
|
|
|
3414
3414
|
const G = Date.parse(c);
|
|
3415
3415
|
return Number.isFinite(G) && Date.now() - G > 300 * 1e3;
|
|
3416
3416
|
}
|
|
3417
|
-
return (c, G) => I.loading ? (
|
|
3417
|
+
return (c, G) => I.loading ? (m(), W("div", {
|
|
3418
3418
|
key: 0,
|
|
3419
3419
|
class: "apf-service-grid",
|
|
3420
|
-
style:
|
|
3420
|
+
style: dI(d.value)
|
|
3421
3421
|
}, [
|
|
3422
|
-
(
|
|
3422
|
+
(m(), W(Q, null, q(6, (b) => Y("div", {
|
|
3423
3423
|
key: b,
|
|
3424
3424
|
class: "apf-service-grid__skel"
|
|
3425
3425
|
})), 64))
|
|
3426
|
-
], 4)) : I.services.length ? (
|
|
3426
|
+
], 4)) : I.services.length ? (m(), W("div", {
|
|
3427
3427
|
key: 2,
|
|
3428
3428
|
class: "apf-service-grid",
|
|
3429
|
-
style:
|
|
3429
|
+
style: dI(d.value)
|
|
3430
3430
|
}, [
|
|
3431
|
-
(
|
|
3431
|
+
(m(!0), W(Q, null, q(I.services, (b) => (m(), W("button", {
|
|
3432
3432
|
key: b.id,
|
|
3433
3433
|
type: "button",
|
|
3434
3434
|
class: u(["apf-service-grid__item", `apf-service-grid__item--${b.status}`]),
|
|
3435
|
-
onClick: (
|
|
3435
|
+
onClick: (i) => A("service-click", b)
|
|
3436
3436
|
}, [
|
|
3437
3437
|
G[0] || (G[0] = Y("div", { class: "apf-service-grid__bar" }, null, -1)),
|
|
3438
3438
|
Y("div", v0, [
|
|
@@ -3440,24 +3440,24 @@ const D0 = {
|
|
|
3440
3440
|
Y("div", {
|
|
3441
3441
|
class: u(["apf-service-grid__status", `apf-service-grid__status--${b.status}`])
|
|
3442
3442
|
}, h(C[b.status]), 3),
|
|
3443
|
-
b.metrics ? (
|
|
3444
|
-
b.metrics.errorRate != null ? (
|
|
3445
|
-
b.metrics.latencyP95 != null ? (
|
|
3446
|
-
b.metrics.eventCount != null ? (
|
|
3447
|
-
b.metrics.lastSeen ? (
|
|
3443
|
+
b.metrics ? (m(), W("div", E0, [
|
|
3444
|
+
b.metrics.errorRate != null ? (m(), W("span", P0, " err " + h(b.metrics.errorRate.toFixed(1)) + "% ", 1)) : H("", !0),
|
|
3445
|
+
b.metrics.latencyP95 != null ? (m(), W("span", r0, " p95 " + h(Math.round(b.metrics.latencyP95)) + "ms ", 1)) : H("", !0),
|
|
3446
|
+
b.metrics.eventCount != null ? (m(), W("span", f0, " n " + h(b.metrics.eventCount.toLocaleString()), 1)) : H("", !0),
|
|
3447
|
+
b.metrics.lastSeen ? (m(), W("span", {
|
|
3448
3448
|
key: 3,
|
|
3449
3449
|
class: u({ "is-stale": l(b.metrics.lastSeen) })
|
|
3450
|
-
}, h(
|
|
3450
|
+
}, h($(u0)(b.metrics.lastSeen)), 3)) : H("", !0)
|
|
3451
3451
|
])) : H("", !0)
|
|
3452
3452
|
])
|
|
3453
3453
|
], 10, U0))), 128))
|
|
3454
|
-
], 4)) : (
|
|
3454
|
+
], 4)) : (m(), x($(cg), {
|
|
3455
3455
|
key: 1,
|
|
3456
3456
|
title: "暂无服务",
|
|
3457
3457
|
description: "等待上报或检查筛选条件"
|
|
3458
3458
|
}));
|
|
3459
3459
|
}
|
|
3460
|
-
}),
|
|
3460
|
+
}), QV = /* @__PURE__ */ U(q0, [["__scopeId", "data-v-7e1890bc"]]), _0 = { class: "apf-status-timeline" }, $0 = { class: "apf-status-timeline__ticks" }, Ii = /* @__PURE__ */ j({
|
|
3461
3461
|
__name: "StatusTimeline",
|
|
3462
3462
|
props: {
|
|
3463
3463
|
segments: {},
|
|
@@ -3487,30 +3487,30 @@ const D0 = {
|
|
|
3487
3487
|
}), d = n(() => {
|
|
3488
3488
|
const G = Date.parse(Z.value.start);
|
|
3489
3489
|
return C.segments.map((b) => {
|
|
3490
|
-
const
|
|
3490
|
+
const i = Date.parse(b.start), w = Date.parse(b.end), s = (i - G) / A.value * 100, a = (w - i) / A.value * 100;
|
|
3491
3491
|
return {
|
|
3492
3492
|
...b,
|
|
3493
3493
|
left: Math.max(0, s),
|
|
3494
3494
|
width: Math.max(0.2, a),
|
|
3495
|
-
durationMs: Math.max(0, w -
|
|
3495
|
+
durationMs: Math.max(0, w - i)
|
|
3496
3496
|
};
|
|
3497
3497
|
});
|
|
3498
3498
|
});
|
|
3499
3499
|
function l(G) {
|
|
3500
|
-
const b = new Date(G),
|
|
3501
|
-
return `${
|
|
3500
|
+
const b = new Date(G), i = String(b.getMonth() + 1).padStart(2, "0"), w = String(b.getDate()).padStart(2, "0"), s = String(b.getHours()).padStart(2, "0"), a = String(b.getMinutes()).padStart(2, "0");
|
|
3501
|
+
return `${i}-${w} ${s}:${a}`;
|
|
3502
3502
|
}
|
|
3503
3503
|
function c(G) {
|
|
3504
3504
|
return `${g[G.status]} · ${l(G.start)} ~ ${l(G.end)} · ${n0(G.durationMs)}`;
|
|
3505
3505
|
}
|
|
3506
3506
|
return (G, b) => {
|
|
3507
|
-
const
|
|
3508
|
-
return
|
|
3507
|
+
const i = _("el-tooltip");
|
|
3508
|
+
return m(), W("div", _0, [
|
|
3509
3509
|
Y("div", {
|
|
3510
3510
|
class: "apf-status-timeline__track",
|
|
3511
|
-
style:
|
|
3511
|
+
style: dI({ height: `${I.height}px` })
|
|
3512
3512
|
}, [
|
|
3513
|
-
(
|
|
3513
|
+
(m(!0), W(Q, null, q(d.value, (w, s) => (m(), x(i, {
|
|
3514
3514
|
key: `${w.start}-${s}`,
|
|
3515
3515
|
disabled: !I.showTooltip,
|
|
3516
3516
|
content: c(w),
|
|
@@ -3519,7 +3519,7 @@ const D0 = {
|
|
|
3519
3519
|
default: O(() => [
|
|
3520
3520
|
Y("div", {
|
|
3521
3521
|
class: u(["apf-status-timeline__seg", `apf-status-timeline__seg--${w.status}`]),
|
|
3522
|
-
style:
|
|
3522
|
+
style: dI({ left: `${w.left}%`, width: `${w.width}%` })
|
|
3523
3523
|
}, null, 6)
|
|
3524
3524
|
]),
|
|
3525
3525
|
_: 2
|
|
@@ -3532,7 +3532,7 @@ const D0 = {
|
|
|
3532
3532
|
]);
|
|
3533
3533
|
};
|
|
3534
3534
|
}
|
|
3535
|
-
}),
|
|
3535
|
+
}), UV = /* @__PURE__ */ U(Ii, [["__scopeId", "data-v-97b528a0"]]), gi = {
|
|
3536
3536
|
key: 0,
|
|
3537
3537
|
class: "apf-log-stream__loading"
|
|
3538
3538
|
}, Ci = ["onClick"], Ai = { class: "apf-log-stream__ts" }, Zi = { class: "apf-log-stream__service" }, li = ["innerHTML"], di = {
|
|
@@ -3560,13 +3560,13 @@ const D0 = {
|
|
|
3560
3560
|
let c = !0, G = null;
|
|
3561
3561
|
const b = n(
|
|
3562
3562
|
() => Math.ceil(C.height / C.rowHeight) + iZ * 2
|
|
3563
|
-
),
|
|
3563
|
+
), i = n(
|
|
3564
3564
|
() => Math.max(0, Math.floor(d.value / C.rowHeight) - iZ)
|
|
3565
3565
|
), w = n(
|
|
3566
|
-
() => Math.min(C.logs.length,
|
|
3566
|
+
() => Math.min(C.logs.length, i.value + b.value)
|
|
3567
3567
|
), s = n(
|
|
3568
|
-
() => C.logs.slice(
|
|
3569
|
-
), a = n(() => C.logs.length * C.rowHeight), V = n(() =>
|
|
3568
|
+
() => C.logs.slice(i.value, w.value)
|
|
3569
|
+
), a = n(() => C.logs.length * C.rowHeight), V = n(() => i.value * C.rowHeight), X = n(
|
|
3570
3570
|
() => C.logs.find((R) => R.id === l.value) ?? null
|
|
3571
3571
|
), o = n(() => {
|
|
3572
3572
|
var R;
|
|
@@ -3639,28 +3639,28 @@ const D0 = {
|
|
|
3639
3639
|
}), mg(() => {
|
|
3640
3640
|
var R;
|
|
3641
3641
|
(R = A.value) == null || R.removeEventListener("scroll", y), G && clearTimeout(G);
|
|
3642
|
-
}), (R, z) => (
|
|
3642
|
+
}), (R, z) => (m(), W("div", {
|
|
3643
3643
|
class: "apf-log-stream-wrap",
|
|
3644
|
-
style:
|
|
3644
|
+
style: dI({ height: `${I.height}px` })
|
|
3645
3645
|
}, [
|
|
3646
3646
|
Y("div", {
|
|
3647
3647
|
ref_key: "scrollerRef",
|
|
3648
3648
|
ref: A,
|
|
3649
3649
|
class: u(["apf-log-stream", { "apf-log-stream--with-panel": !!X.value }])
|
|
3650
3650
|
}, [
|
|
3651
|
-
I.loading ? (
|
|
3651
|
+
I.loading ? (m(), W("div", gi, "加载中…")) : I.logs.length ? (m(), W("div", {
|
|
3652
3652
|
key: 2,
|
|
3653
3653
|
class: "apf-log-stream__phantom",
|
|
3654
|
-
style:
|
|
3654
|
+
style: dI({ height: `${a.value}px` })
|
|
3655
3655
|
}, [
|
|
3656
3656
|
Y("div", {
|
|
3657
3657
|
class: "apf-log-stream__window",
|
|
3658
|
-
style:
|
|
3658
|
+
style: dI({ transform: `translateY(${V.value}px)` })
|
|
3659
3659
|
}, [
|
|
3660
|
-
(
|
|
3660
|
+
(m(!0), W(Q, null, q(s.value, (D) => (m(), W("div", {
|
|
3661
3661
|
key: D.id,
|
|
3662
3662
|
class: u(["apf-log-stream__row", { "is-active": l.value === D.id }]),
|
|
3663
|
-
style:
|
|
3663
|
+
style: dI({ height: `${I.rowHeight}px` }),
|
|
3664
3664
|
onClick: (f) => p(D)
|
|
3665
3665
|
}, [
|
|
3666
3666
|
Y("i", {
|
|
@@ -3678,13 +3678,13 @@ const D0 = {
|
|
|
3678
3678
|
}, null, 8, li)
|
|
3679
3679
|
], 14, Ci))), 128))
|
|
3680
3680
|
], 4)
|
|
3681
|
-
], 4)) : (
|
|
3681
|
+
], 4)) : (m(), x($(cg), {
|
|
3682
3682
|
key: 1,
|
|
3683
3683
|
title: "暂无日志",
|
|
3684
3684
|
description: "等待事件推送或调整筛选"
|
|
3685
3685
|
}))
|
|
3686
3686
|
], 2),
|
|
3687
|
-
X.value ? (
|
|
3687
|
+
X.value ? (m(), W("aside", di, [
|
|
3688
3688
|
Y("header", Gi, [
|
|
3689
3689
|
Y("span", null, "Payload · " + h(X.value.service), 1),
|
|
3690
3690
|
Y("button", {
|
|
@@ -3693,11 +3693,11 @@ const D0 = {
|
|
|
3693
3693
|
onClick: J
|
|
3694
3694
|
}, " 关闭 ")
|
|
3695
3695
|
]),
|
|
3696
|
-
o.value ? (
|
|
3696
|
+
o.value ? (m(), W("pre", ci, h(o.value), 1)) : (m(), W("div", bi, "无 payload"))
|
|
3697
3697
|
])) : H("", !0)
|
|
3698
3698
|
], 4));
|
|
3699
3699
|
}
|
|
3700
|
-
}),
|
|
3700
|
+
}), vV = /* @__PURE__ */ U(mi, [["__scopeId", "data-v-1766eb79"]]), ii = { class: "apf-threshold-slider__meta" }, Wi = { class: "apf-threshold-slider__unit" }, Bi = { class: "apf-threshold-slider__hint" }, Yi = { class: "apf-threshold-slider__row" }, si = /* @__PURE__ */ j({
|
|
3701
3701
|
__name: "ThresholdSlider",
|
|
3702
3702
|
props: {
|
|
3703
3703
|
type: {},
|
|
@@ -3723,8 +3723,8 @@ const D0 = {
|
|
|
3723
3723
|
l(b), A("change", b);
|
|
3724
3724
|
}
|
|
3725
3725
|
return (G, b) => {
|
|
3726
|
-
const
|
|
3727
|
-
return
|
|
3726
|
+
const i = _("el-slider"), w = _("el-input-number");
|
|
3727
|
+
return m(), W("div", {
|
|
3728
3728
|
class: u(["apf-threshold-slider", { "is-disabled": I.disabled }])
|
|
3729
3729
|
}, [
|
|
3730
3730
|
Y("div", ii, [
|
|
@@ -3732,7 +3732,7 @@ const D0 = {
|
|
|
3732
3732
|
Y("span", Bi, "建议 " + h(d.value.suggest) + h(d.value.unit), 1)
|
|
3733
3733
|
]),
|
|
3734
3734
|
Y("div", Yi, [
|
|
3735
|
-
|
|
3735
|
+
II(i, {
|
|
3736
3736
|
"model-value": I.modelValue,
|
|
3737
3737
|
min: d.value.min,
|
|
3738
3738
|
max: d.value.max,
|
|
@@ -3742,7 +3742,7 @@ const D0 = {
|
|
|
3742
3742
|
"onUpdate:modelValue": b[0] || (b[0] = (s) => l(s)),
|
|
3743
3743
|
onChange: c
|
|
3744
3744
|
}, null, 8, ["model-value", "min", "max", "step", "disabled"]),
|
|
3745
|
-
I.showInput ? (
|
|
3745
|
+
I.showInput ? (m(), x(w, {
|
|
3746
3746
|
key: 0,
|
|
3747
3747
|
"model-value": I.modelValue,
|
|
3748
3748
|
min: d.value.min,
|
|
@@ -3759,16 +3759,16 @@ const D0 = {
|
|
|
3759
3759
|
], 2);
|
|
3760
3760
|
};
|
|
3761
3761
|
}
|
|
3762
|
-
}),
|
|
3762
|
+
}), OV = /* @__PURE__ */ U(si, [["__scopeId", "data-v-7098971c"]]), wi = /* @__PURE__ */ j({
|
|
3763
3763
|
__name: "PageShell",
|
|
3764
3764
|
props: {
|
|
3765
3765
|
fill: { type: Boolean, default: !1 }
|
|
3766
3766
|
},
|
|
3767
3767
|
setup(I) {
|
|
3768
|
-
return (g, C) => (
|
|
3768
|
+
return (g, C) => (m(), W("div", {
|
|
3769
3769
|
class: u([g.$style.shell, I.fill && g.$style.shellFill])
|
|
3770
3770
|
}, [
|
|
3771
|
-
|
|
3771
|
+
ZI(g.$slots, "default")
|
|
3772
3772
|
], 2));
|
|
3773
3773
|
}
|
|
3774
3774
|
}), Vi = "_shell_1qlp7_2", Ni = "_shellFill_1qlp7_10", Xi = {
|
|
@@ -3776,14 +3776,14 @@ const D0 = {
|
|
|
3776
3776
|
shellFill: Ni
|
|
3777
3777
|
}, oi = {
|
|
3778
3778
|
$style: Xi
|
|
3779
|
-
},
|
|
3779
|
+
}, EV = /* @__PURE__ */ U(wi, [["__cssModules", oi]]), hi = /* @__PURE__ */ j({
|
|
3780
3780
|
__name: "PageHeader",
|
|
3781
3781
|
props: {
|
|
3782
3782
|
title: {},
|
|
3783
3783
|
subtitle: {}
|
|
3784
3784
|
},
|
|
3785
3785
|
setup(I) {
|
|
3786
|
-
return (g, C) => (
|
|
3786
|
+
return (g, C) => (m(), W("header", {
|
|
3787
3787
|
class: u(g.$style.header)
|
|
3788
3788
|
}, [
|
|
3789
3789
|
Y("div", {
|
|
@@ -3795,18 +3795,18 @@ const D0 = {
|
|
|
3795
3795
|
Y("h1", {
|
|
3796
3796
|
class: u(g.$style.title)
|
|
3797
3797
|
}, h(I.title), 3),
|
|
3798
|
-
I.subtitle ? (
|
|
3798
|
+
I.subtitle ? (m(), W("p", {
|
|
3799
3799
|
key: 0,
|
|
3800
3800
|
class: u(g.$style.subtitle)
|
|
3801
3801
|
}, h(I.subtitle), 3)) : H("", !0),
|
|
3802
|
-
|
|
3802
|
+
ZI(g.$slots, "default")
|
|
3803
3803
|
], 2),
|
|
3804
|
-
g.$slots.actions || g.$slots.extra ? (
|
|
3804
|
+
g.$slots.actions || g.$slots.extra ? (m(), W("div", {
|
|
3805
3805
|
key: 0,
|
|
3806
3806
|
class: u(g.$style.actions)
|
|
3807
3807
|
}, [
|
|
3808
|
-
|
|
3809
|
-
|
|
3808
|
+
ZI(g.$slots, "actions"),
|
|
3809
|
+
ZI(g.$slots, "extra")
|
|
3810
3810
|
], 2)) : H("", !0)
|
|
3811
3811
|
], 2)
|
|
3812
3812
|
], 2));
|
|
@@ -3820,7 +3820,7 @@ const D0 = {
|
|
|
3820
3820
|
actions: ni
|
|
3821
3821
|
}, Ki = {
|
|
3822
3822
|
$style: Mi
|
|
3823
|
-
},
|
|
3823
|
+
}, PV = /* @__PURE__ */ U(hi, [["__cssModules", Ki]]), Si = ["onClick"], Di = /* @__PURE__ */ j({
|
|
3824
3824
|
__name: "BreadcrumbNav",
|
|
3825
3825
|
props: {
|
|
3826
3826
|
items: {}
|
|
@@ -3828,25 +3828,25 @@ const D0 = {
|
|
|
3828
3828
|
emits: ["navigate"],
|
|
3829
3829
|
setup(I, { emit: g }) {
|
|
3830
3830
|
const C = g;
|
|
3831
|
-
return (Z, A) => I.items.length > 0 ? (
|
|
3831
|
+
return (Z, A) => I.items.length > 0 ? (m(), W("nav", {
|
|
3832
3832
|
key: 0,
|
|
3833
3833
|
class: u(Z.$style.breadcrumb),
|
|
3834
3834
|
"aria-label": "面包屑"
|
|
3835
3835
|
}, [
|
|
3836
|
-
(
|
|
3836
|
+
(m(!0), W(Q, null, q(I.items, (d, l) => (m(), W(Q, {
|
|
3837
3837
|
key: `${d.label}-${l}`
|
|
3838
3838
|
}, [
|
|
3839
|
-
l > 0 ? (
|
|
3839
|
+
l > 0 ? (m(), W("span", {
|
|
3840
3840
|
key: 0,
|
|
3841
3841
|
class: u(Z.$style.separator),
|
|
3842
3842
|
"aria-hidden": "true"
|
|
3843
3843
|
}, "/", 2)) : H("", !0),
|
|
3844
|
-
d.to && l < I.items.length - 1 ? (
|
|
3844
|
+
d.to && l < I.items.length - 1 ? (m(), W("button", {
|
|
3845
3845
|
key: 1,
|
|
3846
3846
|
type: "button",
|
|
3847
3847
|
class: u(Z.$style.link),
|
|
3848
3848
|
onClick: (c) => C("navigate", d.to)
|
|
3849
|
-
}, h(d.label), 11, Si)) : (
|
|
3849
|
+
}, h(d.label), 11, Si)) : (m(), W("span", {
|
|
3850
3850
|
key: 2,
|
|
3851
3851
|
class: u(Z.$style.current)
|
|
3852
3852
|
}, h(d.label), 3))
|
|
@@ -3860,7 +3860,7 @@ const D0 = {
|
|
|
3860
3860
|
current: zi
|
|
3861
3861
|
}, ei = {
|
|
3862
3862
|
$style: ki
|
|
3863
|
-
},
|
|
3863
|
+
}, rV = /* @__PURE__ */ U(Di, [["__cssModules", ei]]), Li = { class: "apf-filter-bar" }, ti = {
|
|
3864
3864
|
key: 0,
|
|
3865
3865
|
class: "apf-filter-bar__title"
|
|
3866
3866
|
}, Ti = { class: "apf-filter-bar__fields" }, xi = { class: "apf-filter-bar__actions" }, ji = /* @__PURE__ */ j({
|
|
@@ -3873,14 +3873,14 @@ const D0 = {
|
|
|
3873
3873
|
const C = g;
|
|
3874
3874
|
return (Z, A) => {
|
|
3875
3875
|
const d = _("el-button");
|
|
3876
|
-
return
|
|
3877
|
-
I.title ? (
|
|
3876
|
+
return m(), W("div", Li, [
|
|
3877
|
+
I.title ? (m(), W("div", ti, h(I.title), 1)) : H("", !0),
|
|
3878
3878
|
Y("div", Ti, [
|
|
3879
|
-
|
|
3879
|
+
ZI(Z.$slots, "default", {}, void 0, !0)
|
|
3880
3880
|
]),
|
|
3881
3881
|
Y("div", xi, [
|
|
3882
|
-
|
|
3883
|
-
|
|
3882
|
+
ZI(Z.$slots, "actions", {}, () => [
|
|
3883
|
+
II(d, {
|
|
3884
3884
|
type: "primary",
|
|
3885
3885
|
onClick: A[0] || (A[0] = (l) => C("search"))
|
|
3886
3886
|
}, {
|
|
@@ -3889,7 +3889,7 @@ const D0 = {
|
|
|
3889
3889
|
])]),
|
|
3890
3890
|
_: 1
|
|
3891
3891
|
}),
|
|
3892
|
-
|
|
3892
|
+
II(d, {
|
|
3893
3893
|
onClick: A[1] || (A[1] = (l) => C("reset"))
|
|
3894
3894
|
}, {
|
|
3895
3895
|
default: O(() => [...A[3] || (A[3] = [
|
|
@@ -3902,7 +3902,7 @@ const D0 = {
|
|
|
3902
3902
|
]);
|
|
3903
3903
|
};
|
|
3904
3904
|
}
|
|
3905
|
-
}),
|
|
3905
|
+
}), fV = /* @__PURE__ */ U(ji, [["__scopeId", "data-v-86218301"]]), Qi = /* @__PURE__ */ j({
|
|
3906
3906
|
__name: "CardTable",
|
|
3907
3907
|
props: {
|
|
3908
3908
|
loading: { type: Boolean, default: !1 },
|
|
@@ -3912,17 +3912,17 @@ const D0 = {
|
|
|
3912
3912
|
setup(I) {
|
|
3913
3913
|
return (g, C) => {
|
|
3914
3914
|
const Z = OZ("loading");
|
|
3915
|
-
return Gg((
|
|
3915
|
+
return Gg((m(), W("div", {
|
|
3916
3916
|
class: u(["apf-card-table", { "apf-card-table--borderless": I.borderless }]),
|
|
3917
|
-
style:
|
|
3917
|
+
style: dI({ padding: I.padding })
|
|
3918
3918
|
}, [
|
|
3919
|
-
|
|
3919
|
+
ZI(g.$slots, "default", {}, void 0, !0)
|
|
3920
3920
|
], 6)), [
|
|
3921
3921
|
[Z, I.loading]
|
|
3922
3922
|
]);
|
|
3923
3923
|
};
|
|
3924
3924
|
}
|
|
3925
|
-
}),
|
|
3925
|
+
}), qV = /* @__PURE__ */ U(Qi, [["__scopeId", "data-v-fbd06971"]]), Ui = { class: "apf-table-row-actions" }, vi = /* @__PURE__ */ j({
|
|
3926
3926
|
__name: "TableRowActions",
|
|
3927
3927
|
props: {
|
|
3928
3928
|
actions: {},
|
|
@@ -3940,9 +3940,9 @@ const D0 = {
|
|
|
3940
3940
|
(c = g.actions.find((G) => G.key === l)) == null || c.onClick();
|
|
3941
3941
|
}
|
|
3942
3942
|
return (l, c) => {
|
|
3943
|
-
const G = _("el-button"), b = _("el-dropdown-item"),
|
|
3944
|
-
return
|
|
3945
|
-
(
|
|
3943
|
+
const G = _("el-button"), b = _("el-dropdown-item"), i = _("el-dropdown-menu"), w = _("el-dropdown");
|
|
3944
|
+
return m(), W("div", Ui, [
|
|
3945
|
+
(m(!0), W(Q, null, q(Z.value, (s) => (m(), x(G, {
|
|
3946
3946
|
key: s.key,
|
|
3947
3947
|
link: "",
|
|
3948
3948
|
type: s.type ?? "primary",
|
|
@@ -3955,21 +3955,21 @@ const D0 = {
|
|
|
3955
3955
|
]),
|
|
3956
3956
|
_: 2
|
|
3957
3957
|
}, 1032, ["type", "loading", "onClick"]))), 128)),
|
|
3958
|
-
A.value.length ? (
|
|
3958
|
+
A.value.length ? (m(), x(w, {
|
|
3959
3959
|
key: 0,
|
|
3960
3960
|
trigger: "click",
|
|
3961
3961
|
onCommand: d
|
|
3962
3962
|
}, {
|
|
3963
3963
|
dropdown: O(() => [
|
|
3964
|
-
|
|
3964
|
+
II(i, null, {
|
|
3965
3965
|
default: O(() => [
|
|
3966
|
-
(
|
|
3966
|
+
(m(!0), W(Q, null, q(A.value, (s) => (m(), x(b, {
|
|
3967
3967
|
key: s.key,
|
|
3968
3968
|
command: s.key,
|
|
3969
|
-
style:
|
|
3969
|
+
style: dI(s.type === "danger" ? { color: "var(--el-color-danger)" } : void 0)
|
|
3970
3970
|
}, {
|
|
3971
3971
|
default: O(() => [
|
|
3972
|
-
s.icon ? (
|
|
3972
|
+
s.icon ? (m(), x($(RI), {
|
|
3973
3973
|
key: 0,
|
|
3974
3974
|
name: s.icon,
|
|
3975
3975
|
size: 14,
|
|
@@ -3984,14 +3984,14 @@ const D0 = {
|
|
|
3984
3984
|
})
|
|
3985
3985
|
]),
|
|
3986
3986
|
default: O(() => [
|
|
3987
|
-
|
|
3987
|
+
II(G, {
|
|
3988
3988
|
link: "",
|
|
3989
3989
|
type: "primary",
|
|
3990
3990
|
size: "small"
|
|
3991
3991
|
}, {
|
|
3992
3992
|
default: O(() => [
|
|
3993
3993
|
c[0] || (c[0] = gI(" 更多 ", -1)),
|
|
3994
|
-
$(
|
|
3994
|
+
II($(RI), {
|
|
3995
3995
|
name: "arrow-down",
|
|
3996
3996
|
size: 12,
|
|
3997
3997
|
style: { "margin-left": "2px" }
|
|
@@ -4005,7 +4005,7 @@ const D0 = {
|
|
|
4005
4005
|
]);
|
|
4006
4006
|
};
|
|
4007
4007
|
}
|
|
4008
|
-
}),
|
|
4008
|
+
}), _V = /* @__PURE__ */ U(vi, [["__scopeId", "data-v-06e2a9ce"]]), Oi = { class: "apf-search-form" }, Ei = { class: "apf-search-form__row" }, Pi = { class: "apf-search-form__label" }, ri = { class: "apf-search-form__actions" }, fi = /* @__PURE__ */ j({
|
|
4009
4009
|
__name: "SearchForm",
|
|
4010
4010
|
props: {
|
|
4011
4011
|
fields: {},
|
|
@@ -4028,38 +4028,38 @@ const D0 = {
|
|
|
4028
4028
|
const G = n(
|
|
4029
4029
|
() => Z.collapsible && Z.fields.length > Z.defaultVisibleCount
|
|
4030
4030
|
), b = n(() => !G.value || !d.value ? Z.fields : Z.fields.slice(0, Z.defaultVisibleCount));
|
|
4031
|
-
function
|
|
4031
|
+
function i() {
|
|
4032
4032
|
return { ...l };
|
|
4033
4033
|
}
|
|
4034
4034
|
function w() {
|
|
4035
|
-
const a =
|
|
4035
|
+
const a = i();
|
|
4036
4036
|
A("update:modelValue", a), A("search", a);
|
|
4037
4037
|
}
|
|
4038
4038
|
function s() {
|
|
4039
4039
|
for (const V of Z.fields)
|
|
4040
4040
|
l[V.key] = V.type === "daterange" ? [] : "";
|
|
4041
|
-
const a =
|
|
4041
|
+
const a = i();
|
|
4042
4042
|
A("update:modelValue", a), A("reset");
|
|
4043
4043
|
}
|
|
4044
4044
|
return g({
|
|
4045
|
-
getValues:
|
|
4045
|
+
getValues: i,
|
|
4046
4046
|
reset: s
|
|
4047
4047
|
}), (a, V) => {
|
|
4048
4048
|
const X = _("el-input"), o = _("el-option"), S = _("el-select"), k = _("el-date-picker"), L = _("el-button");
|
|
4049
|
-
return
|
|
4049
|
+
return m(), W("div", Oi, [
|
|
4050
4050
|
Y("div", Ei, [
|
|
4051
|
-
(
|
|
4051
|
+
(m(!0), W(Q, null, q(b.value, (K) => (m(), W("div", {
|
|
4052
4052
|
key: K.key,
|
|
4053
4053
|
class: "apf-search-form__field"
|
|
4054
4054
|
}, [
|
|
4055
4055
|
Y("label", Pi, h(K.label), 1),
|
|
4056
|
-
K.type === "input" ? (
|
|
4056
|
+
K.type === "input" ? (m(), x(X, {
|
|
4057
4057
|
key: 0,
|
|
4058
4058
|
modelValue: l[K.key],
|
|
4059
4059
|
"onUpdate:modelValue": (e) => l[K.key] = e,
|
|
4060
4060
|
clearable: "",
|
|
4061
4061
|
placeholder: K.placeholder || `请输入${K.label}`
|
|
4062
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : K.type === "select" ? (
|
|
4062
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : K.type === "select" ? (m(), x(S, {
|
|
4063
4063
|
key: 1,
|
|
4064
4064
|
modelValue: l[K.key],
|
|
4065
4065
|
"onUpdate:modelValue": (e) => l[K.key] = e,
|
|
@@ -4068,14 +4068,14 @@ const D0 = {
|
|
|
4068
4068
|
style: { width: "100%" }
|
|
4069
4069
|
}, {
|
|
4070
4070
|
default: O(() => [
|
|
4071
|
-
(
|
|
4071
|
+
(m(!0), W(Q, null, q(K.options || [], (e) => (m(), x(o, {
|
|
4072
4072
|
key: String(e.value),
|
|
4073
4073
|
label: e.label,
|
|
4074
4074
|
value: e.value
|
|
4075
4075
|
}, null, 8, ["label", "value"]))), 128))
|
|
4076
4076
|
]),
|
|
4077
4077
|
_: 2
|
|
4078
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])) : K.type === "date" ? (
|
|
4078
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder"])) : K.type === "date" ? (m(), x(k, {
|
|
4079
4079
|
key: 2,
|
|
4080
4080
|
modelValue: l[K.key],
|
|
4081
4081
|
"onUpdate:modelValue": (e) => l[K.key] = e,
|
|
@@ -4083,7 +4083,7 @@ const D0 = {
|
|
|
4083
4083
|
"value-format": "YYYY-MM-DD",
|
|
4084
4084
|
placeholder: K.placeholder || `请选择${K.label}`,
|
|
4085
4085
|
style: { width: "100%" }
|
|
4086
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : (
|
|
4086
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder"])) : (m(), x(k, {
|
|
4087
4087
|
key: 3,
|
|
4088
4088
|
modelValue: l[K.key],
|
|
4089
4089
|
"onUpdate:modelValue": (e) => l[K.key] = e,
|
|
@@ -4095,12 +4095,12 @@ const D0 = {
|
|
|
4095
4095
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]))
|
|
4096
4096
|
]))), 128)),
|
|
4097
4097
|
Y("div", ri, [
|
|
4098
|
-
|
|
4098
|
+
II(L, {
|
|
4099
4099
|
type: "primary",
|
|
4100
4100
|
onClick: w
|
|
4101
4101
|
}, {
|
|
4102
4102
|
default: O(() => [
|
|
4103
|
-
$(
|
|
4103
|
+
II($(RI), {
|
|
4104
4104
|
name: "search",
|
|
4105
4105
|
size: 14,
|
|
4106
4106
|
style: { "margin-right": "var(--spacing-xs, 4px)" }
|
|
@@ -4109,13 +4109,13 @@ const D0 = {
|
|
|
4109
4109
|
]),
|
|
4110
4110
|
_: 1
|
|
4111
4111
|
}),
|
|
4112
|
-
|
|
4112
|
+
II(L, { onClick: s }, {
|
|
4113
4113
|
default: O(() => [...V[2] || (V[2] = [
|
|
4114
4114
|
gI("重置", -1)
|
|
4115
4115
|
])]),
|
|
4116
4116
|
_: 1
|
|
4117
4117
|
}),
|
|
4118
|
-
G.value ? (
|
|
4118
|
+
G.value ? (m(), x(L, {
|
|
4119
4119
|
key: 0,
|
|
4120
4120
|
link: "",
|
|
4121
4121
|
type: "primary",
|
|
@@ -4131,7 +4131,7 @@ const D0 = {
|
|
|
4131
4131
|
]);
|
|
4132
4132
|
};
|
|
4133
4133
|
}
|
|
4134
|
-
}),
|
|
4134
|
+
}), $V = /* @__PURE__ */ U(fi, [["__scopeId", "data-v-8a00c2b6"]]), qi = /* @__PURE__ */ j({
|
|
4135
4135
|
inheritAttrs: !1,
|
|
4136
4136
|
__name: "TruncatedTooltipText",
|
|
4137
4137
|
props: {
|
|
@@ -4143,7 +4143,7 @@ const D0 = {
|
|
|
4143
4143
|
const g = ql();
|
|
4144
4144
|
return (C, Z) => {
|
|
4145
4145
|
const A = _("el-tooltip");
|
|
4146
|
-
return
|
|
4146
|
+
return m(), x(A, {
|
|
4147
4147
|
content: I.content,
|
|
4148
4148
|
placement: I.placement,
|
|
4149
4149
|
"show-after": 200,
|
|
@@ -4151,10 +4151,10 @@ const D0 = {
|
|
|
4151
4151
|
}, {
|
|
4152
4152
|
default: O(() => [
|
|
4153
4153
|
Y("span", {
|
|
4154
|
-
class: u(["apf-truncated-text",
|
|
4155
|
-
style:
|
|
4154
|
+
class: u(["apf-truncated-text", $(g).class]),
|
|
4155
|
+
style: dI($(g).style)
|
|
4156
4156
|
}, [
|
|
4157
|
-
|
|
4157
|
+
ZI(C.$slots, "default", {}, () => [
|
|
4158
4158
|
gI(h(I.content), 1)
|
|
4159
4159
|
], !0)
|
|
4160
4160
|
], 6)
|
|
@@ -4180,12 +4180,12 @@ const D0 = {
|
|
|
4180
4180
|
return (Z = g.hint) != null && Z.trim() ? `${g.label}
|
|
4181
4181
|
${g.hint.trim()}` : g.label;
|
|
4182
4182
|
});
|
|
4183
|
-
return (Z, A) => (
|
|
4183
|
+
return (Z, A) => (m(), W("div", {
|
|
4184
4184
|
class: u(["apf-field-row", { "apf-field-row--textarea": I.textarea }])
|
|
4185
4185
|
}, [
|
|
4186
4186
|
Y("div", $i, [
|
|
4187
|
-
I.required ? (
|
|
4188
|
-
$(
|
|
4187
|
+
I.required ? (m(), W("span", IW, "*")) : H("", !0),
|
|
4188
|
+
II($(_i), {
|
|
4189
4189
|
content: C.value,
|
|
4190
4190
|
class: "apf-field-row__label-text"
|
|
4191
4191
|
}, {
|
|
@@ -4198,11 +4198,11 @@ ${g.hint.trim()}` : g.label;
|
|
|
4198
4198
|
Y("div", {
|
|
4199
4199
|
class: u(["apf-field-row__control", { "apf-field-row__control--textarea": I.textarea }])
|
|
4200
4200
|
}, [
|
|
4201
|
-
|
|
4201
|
+
ZI(Z.$slots, "default", {}, void 0, !0)
|
|
4202
4202
|
], 2)
|
|
4203
4203
|
], 2));
|
|
4204
4204
|
}
|
|
4205
|
-
}),
|
|
4205
|
+
}), IN = /* @__PURE__ */ U(gW, [["__scopeId", "data-v-84b9f50d"]]), CW = ["aria-label"], AW = {
|
|
4206
4206
|
class: "apf-hint-trigger",
|
|
4207
4207
|
"aria-label": "提示"
|
|
4208
4208
|
}, ZW = { class: "apf-hint-content" }, lW = /* @__PURE__ */ j({
|
|
@@ -4214,7 +4214,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4214
4214
|
setup(I) {
|
|
4215
4215
|
return (g, C) => {
|
|
4216
4216
|
const Z = _("el-tooltip"), A = _("el-popover");
|
|
4217
|
-
return I.content ? (
|
|
4217
|
+
return I.content ? (m(), x(Z, {
|
|
4218
4218
|
key: 0,
|
|
4219
4219
|
content: I.content,
|
|
4220
4220
|
placement: "top",
|
|
@@ -4226,14 +4226,14 @@ ${g.hint.trim()}` : g.label;
|
|
|
4226
4226
|
tabindex: "0",
|
|
4227
4227
|
"aria-label": I.content
|
|
4228
4228
|
}, [
|
|
4229
|
-
$(
|
|
4229
|
+
II($(RI), {
|
|
4230
4230
|
name: "question-filled",
|
|
4231
4231
|
size: 14
|
|
4232
4232
|
})
|
|
4233
4233
|
], 8, CW)
|
|
4234
4234
|
]),
|
|
4235
4235
|
_: 1
|
|
4236
|
-
}, 8, ["content"])) : (
|
|
4236
|
+
}, 8, ["content"])) : (m(), x(A, {
|
|
4237
4237
|
key: 1,
|
|
4238
4238
|
placement: "top",
|
|
4239
4239
|
width: I.width,
|
|
@@ -4243,7 +4243,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4243
4243
|
}, {
|
|
4244
4244
|
reference: O(() => [
|
|
4245
4245
|
Y("span", AW, [
|
|
4246
|
-
$(
|
|
4246
|
+
II($(RI), {
|
|
4247
4247
|
name: "question-filled",
|
|
4248
4248
|
size: 14
|
|
4249
4249
|
})
|
|
@@ -4251,14 +4251,14 @@ ${g.hint.trim()}` : g.label;
|
|
|
4251
4251
|
]),
|
|
4252
4252
|
default: O(() => [
|
|
4253
4253
|
Y("div", ZW, [
|
|
4254
|
-
|
|
4254
|
+
ZI(g.$slots, "default", {}, void 0, !0)
|
|
4255
4255
|
])
|
|
4256
4256
|
]),
|
|
4257
4257
|
_: 3
|
|
4258
4258
|
}, 8, ["width"]));
|
|
4259
4259
|
};
|
|
4260
4260
|
}
|
|
4261
|
-
}),
|
|
4261
|
+
}), gN = /* @__PURE__ */ U(lW, [["__scopeId", "data-v-38245bc2"]]), dW = { class: "apf-section-toggle" }, GW = { class: "apf-section-toggle__label" }, cW = {
|
|
4262
4262
|
key: 0,
|
|
4263
4263
|
class: "apf-section-toggle__count"
|
|
4264
4264
|
}, bW = { class: "apf-section-toggle__body" }, mW = /* @__PURE__ */ j({
|
|
@@ -4273,28 +4273,28 @@ ${g.hint.trim()}` : g.label;
|
|
|
4273
4273
|
function Z() {
|
|
4274
4274
|
C.value = !C.value;
|
|
4275
4275
|
}
|
|
4276
|
-
return (A, d) => (
|
|
4276
|
+
return (A, d) => (m(), W("div", dW, [
|
|
4277
4277
|
Y("button", {
|
|
4278
4278
|
type: "button",
|
|
4279
4279
|
class: "apf-section-toggle__header",
|
|
4280
4280
|
onClick: Z
|
|
4281
4281
|
}, [
|
|
4282
|
-
$(
|
|
4282
|
+
II($(RI), {
|
|
4283
4283
|
name: C.value ? "arrow-down" : "arrow-right",
|
|
4284
|
-
size:
|
|
4284
|
+
size: 11,
|
|
4285
4285
|
class: "apf-section-toggle__arrow"
|
|
4286
4286
|
}, null, 8, ["name"]),
|
|
4287
4287
|
Y("span", GW, h(I.title), 1),
|
|
4288
|
-
I.count !== void 0 ? (
|
|
4288
|
+
I.count !== void 0 ? (m(), W("span", cW, h(I.count), 1)) : H("", !0)
|
|
4289
4289
|
]),
|
|
4290
4290
|
Gg(Y("div", bW, [
|
|
4291
|
-
|
|
4291
|
+
ZI(A.$slots, "default", {}, void 0, !0)
|
|
4292
4292
|
], 512), [
|
|
4293
4293
|
[_l, C.value]
|
|
4294
4294
|
])
|
|
4295
4295
|
]));
|
|
4296
4296
|
}
|
|
4297
|
-
}),
|
|
4297
|
+
}), CN = /* @__PURE__ */ U(mW, [["__scopeId", "data-v-64b3dfe8"]]), iW = {
|
|
4298
4298
|
class: "apf-loading-dots",
|
|
4299
4299
|
"aria-label": "加载中",
|
|
4300
4300
|
role: "status"
|
|
@@ -4304,15 +4304,15 @@ ${g.hint.trim()}` : g.label;
|
|
|
4304
4304
|
size: {}
|
|
4305
4305
|
},
|
|
4306
4306
|
setup(I) {
|
|
4307
|
-
return (g, C) => (
|
|
4308
|
-
(
|
|
4307
|
+
return (g, C) => (m(), W("span", iW, [
|
|
4308
|
+
(m(), W(Q, null, q(3, (Z) => Y("span", {
|
|
4309
4309
|
key: Z,
|
|
4310
4310
|
class: "apf-loading-dots__dot",
|
|
4311
|
-
style:
|
|
4311
|
+
style: dI(I.size ? { width: I.size + "px", height: I.size + "px" } : void 0)
|
|
4312
4312
|
}, null, 4)), 64))
|
|
4313
4313
|
]));
|
|
4314
4314
|
}
|
|
4315
|
-
}),
|
|
4315
|
+
}), AN = /* @__PURE__ */ U(WW, [["__scopeId", "data-v-df891291"]]), BW = { class: "apf-json-card__body" }, YW = { class: "apf-json-card__title" }, sW = { class: "apf-json-card__summary" }, wW = /* @__PURE__ */ j({
|
|
4316
4316
|
__name: "JsonCard",
|
|
4317
4317
|
props: {
|
|
4318
4318
|
title: {},
|
|
@@ -4341,20 +4341,20 @@ ${g.hint.trim()}` : g.label;
|
|
|
4341
4341
|
const w = Array.isArray(b.edges) ? b.edges.length : 0;
|
|
4342
4342
|
return `${b.nodes.length} 个节点, ${w} 条连线`;
|
|
4343
4343
|
}
|
|
4344
|
-
const
|
|
4345
|
-
return `${
|
|
4344
|
+
const i = Object.keys(b);
|
|
4345
|
+
return `${i.length} 个字段${i.length ? ` (${i.slice(0, 3).join(", ")}${i.length > 3 ? "..." : ""})` : ""}`;
|
|
4346
4346
|
}
|
|
4347
4347
|
return String(G);
|
|
4348
4348
|
}), l = n(() => C.type === "schema" ? "document" : C.type === "flow" ? "connection" : "files");
|
|
4349
4349
|
function c() {
|
|
4350
4350
|
Z("click"), Z("openDetail");
|
|
4351
4351
|
}
|
|
4352
|
-
return (G, b) => (
|
|
4352
|
+
return (G, b) => (m(), W("button", {
|
|
4353
4353
|
type: "button",
|
|
4354
4354
|
class: "apf-json-card",
|
|
4355
4355
|
onClick: c
|
|
4356
4356
|
}, [
|
|
4357
|
-
$(
|
|
4357
|
+
II($(RI), {
|
|
4358
4358
|
name: l.value,
|
|
4359
4359
|
size: 20,
|
|
4360
4360
|
class: "apf-json-card__icon"
|
|
@@ -4390,7 +4390,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4390
4390
|
});
|
|
4391
4391
|
return (d, l) => {
|
|
4392
4392
|
const c = _("el-button");
|
|
4393
|
-
return
|
|
4393
|
+
return m(), x($(IA), {
|
|
4394
4394
|
"model-value": I.modelValue,
|
|
4395
4395
|
title: I.title || "JSON 详情",
|
|
4396
4396
|
width: "720px",
|
|
@@ -4398,7 +4398,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4398
4398
|
"onUpdate:modelValue": l[1] || (l[1] = (G) => Z("update:modelValue", G))
|
|
4399
4399
|
}, {
|
|
4400
4400
|
footer: O(() => [
|
|
4401
|
-
|
|
4401
|
+
II(c, {
|
|
4402
4402
|
type: "primary",
|
|
4403
4403
|
onClick: l[0] || (l[0] = (G) => Z("update:modelValue", !1))
|
|
4404
4404
|
}, {
|
|
@@ -4439,27 +4439,27 @@ ${g.hint.trim()}` : g.label;
|
|
|
4439
4439
|
Z("update:modelValue", { ...A });
|
|
4440
4440
|
}
|
|
4441
4441
|
return (c, G) => {
|
|
4442
|
-
const b = _("el-input"),
|
|
4443
|
-
return
|
|
4444
|
-
|
|
4442
|
+
const b = _("el-input"), i = _("el-input-number"), w = _("el-option"), s = _("el-select"), a = _("el-switch"), V = _("el-date-picker"), X = _("el-form-item"), o = _("el-form");
|
|
4443
|
+
return m(), W("div", hW, [
|
|
4444
|
+
II(o, {
|
|
4445
4445
|
model: A,
|
|
4446
4446
|
"label-width": I.labelWidth,
|
|
4447
4447
|
onChange: l
|
|
4448
4448
|
}, {
|
|
4449
4449
|
default: O(() => [
|
|
4450
|
-
(
|
|
4450
|
+
(m(!0), W(Q, null, q(I.fields, (S) => (m(), x(X, {
|
|
4451
4451
|
key: S.key,
|
|
4452
4452
|
label: S.label
|
|
4453
4453
|
}, {
|
|
4454
4454
|
default: O(() => [
|
|
4455
|
-
S.type === "input" ? (
|
|
4455
|
+
S.type === "input" ? (m(), x(b, {
|
|
4456
4456
|
key: 0,
|
|
4457
4457
|
modelValue: A[S.key],
|
|
4458
4458
|
"onUpdate:modelValue": (k) => A[S.key] = k,
|
|
4459
4459
|
placeholder: S.placeholder,
|
|
4460
4460
|
disabled: S.disabled,
|
|
4461
4461
|
onChange: l
|
|
4462
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : S.type === "textarea" ? (
|
|
4462
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : S.type === "textarea" ? (m(), x(b, {
|
|
4463
4463
|
key: 1,
|
|
4464
4464
|
modelValue: A[S.key],
|
|
4465
4465
|
"onUpdate:modelValue": (k) => A[S.key] = k,
|
|
@@ -4468,13 +4468,13 @@ ${g.hint.trim()}` : g.label;
|
|
|
4468
4468
|
placeholder: S.placeholder,
|
|
4469
4469
|
disabled: S.disabled,
|
|
4470
4470
|
onChange: l
|
|
4471
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : S.type === "number" ? (
|
|
4471
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : S.type === "number" ? (m(), x(i, {
|
|
4472
4472
|
key: 2,
|
|
4473
4473
|
modelValue: A[S.key],
|
|
4474
4474
|
"onUpdate:modelValue": (k) => A[S.key] = k,
|
|
4475
4475
|
disabled: S.disabled,
|
|
4476
4476
|
onChange: l
|
|
4477
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : S.type === "select" ? (
|
|
4477
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : S.type === "select" ? (m(), x(s, {
|
|
4478
4478
|
key: 3,
|
|
4479
4479
|
modelValue: A[S.key],
|
|
4480
4480
|
"onUpdate:modelValue": (k) => A[S.key] = k,
|
|
@@ -4484,20 +4484,20 @@ ${g.hint.trim()}` : g.label;
|
|
|
4484
4484
|
onChange: l
|
|
4485
4485
|
}, {
|
|
4486
4486
|
default: O(() => [
|
|
4487
|
-
(
|
|
4487
|
+
(m(!0), W(Q, null, q(S.options || [], (k) => (m(), x(w, {
|
|
4488
4488
|
key: String(k.value),
|
|
4489
4489
|
label: k.label,
|
|
4490
4490
|
value: k.value
|
|
4491
4491
|
}, null, 8, ["label", "value"]))), 128))
|
|
4492
4492
|
]),
|
|
4493
4493
|
_: 2
|
|
4494
|
-
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : S.type === "switch" ? (
|
|
4494
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "placeholder", "disabled"])) : S.type === "switch" ? (m(), x(a, {
|
|
4495
4495
|
key: 4,
|
|
4496
4496
|
modelValue: A[S.key],
|
|
4497
4497
|
"onUpdate:modelValue": (k) => A[S.key] = k,
|
|
4498
4498
|
disabled: S.disabled,
|
|
4499
4499
|
onChange: l
|
|
4500
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : (
|
|
4500
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"])) : (m(), x(V, {
|
|
4501
4501
|
key: 5,
|
|
4502
4502
|
modelValue: A[S.key],
|
|
4503
4503
|
"onUpdate:modelValue": (k) => A[S.key] = k,
|
|
@@ -4517,7 +4517,7 @@ ${g.hint.trim()}` : g.label;
|
|
|
4517
4517
|
]);
|
|
4518
4518
|
};
|
|
4519
4519
|
}
|
|
4520
|
-
}),
|
|
4520
|
+
}), ZN = /* @__PURE__ */ U(aW, [["__scopeId", "data-v-1d125a82"]]);
|
|
4521
4521
|
function Rg(I) {
|
|
4522
4522
|
const g = (I.mimetype || "").toLowerCase(), C = (I.filename || "").toLowerCase();
|
|
4523
4523
|
return g.startsWith("image/") || /\.(png|jpe?g|gif|webp|bmp)$/.test(C);
|
|
@@ -4530,7 +4530,7 @@ function WZ(I) {
|
|
|
4530
4530
|
const g = (I.mimetype || "").toLowerCase(), C = (I.filename || "").toLowerCase();
|
|
4531
4531
|
return C.endsWith(".docx") || C.endsWith(".doc") || C.endsWith(".xlsx") || C.endsWith(".xls") || g.includes("word") || g.includes("sheet") || g.includes("excel");
|
|
4532
4532
|
}
|
|
4533
|
-
function
|
|
4533
|
+
function lN(I) {
|
|
4534
4534
|
return Rg(I) || Lg(I);
|
|
4535
4535
|
}
|
|
4536
4536
|
function lA(I) {
|
|
@@ -4566,16 +4566,16 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4566
4566
|
forceIframe: { type: Boolean, default: !1 }
|
|
4567
4567
|
},
|
|
4568
4568
|
setup(I) {
|
|
4569
|
-
const g = I, C = t(!1), Z = t(!1), A = t(null), d = t(1), l = t(0), c = t(1.2), G = t(null), b = jC(null),
|
|
4569
|
+
const g = I, C = t(!1), Z = t(!1), A = t(null), d = t(1), l = t(0), c = t(1.2), G = t(null), b = jC(null), i = jC(null), w = n(() => C.value && !g.forceIframe), s = n(
|
|
4570
4570
|
() => w.value ? Z.value : g.loading
|
|
4571
4571
|
), a = n(
|
|
4572
4572
|
() => w.value ? A.value : g.error
|
|
4573
4573
|
);
|
|
4574
4574
|
async function V(e) {
|
|
4575
|
-
if (!(!
|
|
4575
|
+
if (!(!i.value || !G.value)) {
|
|
4576
4576
|
Z.value = !0, A.value = null;
|
|
4577
4577
|
try {
|
|
4578
|
-
const y = await
|
|
4578
|
+
const y = await i.value.getPage(e), p = y.getViewport({ scale: c.value }), J = G.value, R = J.getContext("2d");
|
|
4579
4579
|
if (!R) throw new Error("Canvas 不可用");
|
|
4580
4580
|
const z = window.devicePixelRatio || 1;
|
|
4581
4581
|
J.width = p.width * z, J.height = p.height * z, J.style.width = `${p.width}px`, J.style.height = `${p.height}px`, R.setTransform(z, 0, 0, z, 0, 0), await y.render({
|
|
@@ -4593,10 +4593,10 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4593
4593
|
async function X() {
|
|
4594
4594
|
var e;
|
|
4595
4595
|
if (!(!g.url || !b.value)) {
|
|
4596
|
-
Z.value = !0, A.value = null, (e =
|
|
4596
|
+
Z.value = !0, A.value = null, (e = i.value) == null || e.cleanup(), i.value = null, d.value = 1, c.value = 1.2;
|
|
4597
4597
|
try {
|
|
4598
4598
|
const y = await b.value.getDocument({ url: g.url }).promise;
|
|
4599
|
-
|
|
4599
|
+
i.value = y, l.value = y.numPages, await V(1);
|
|
4600
4600
|
} catch (y) {
|
|
4601
4601
|
A.value = y instanceof Error ? y.message : "PDF 加载失败";
|
|
4602
4602
|
} finally {
|
|
@@ -4632,9 +4632,9 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4632
4632
|
{ immediate: !0 }
|
|
4633
4633
|
), PZ(() => {
|
|
4634
4634
|
var e;
|
|
4635
|
-
(e =
|
|
4636
|
-
}), (e, y) => (
|
|
4637
|
-
w.value ? (
|
|
4635
|
+
(e = i.value) == null || e.cleanup(), i.value = null;
|
|
4636
|
+
}), (e, y) => (m(), W("div", RW, [
|
|
4637
|
+
w.value ? (m(), W(Q, { key: 0 }, [
|
|
4638
4638
|
Y("div", HW, [
|
|
4639
4639
|
Y("div", yW, [
|
|
4640
4640
|
Y("button", {
|
|
@@ -4667,10 +4667,10 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4667
4667
|
}, "+", 8, DW)
|
|
4668
4668
|
])
|
|
4669
4669
|
]),
|
|
4670
|
-
s.value ? (
|
|
4670
|
+
s.value ? (m(), W("div", FW, "加载中...")) : a.value ? (m(), W("div", pW, h(a.value), 1)) : (m(), W("div", {
|
|
4671
4671
|
key: 2,
|
|
4672
4672
|
class: "apf-pdf-preview__canvas-wrap",
|
|
4673
|
-
style:
|
|
4673
|
+
style: dI({ minHeight: I.minHeight })
|
|
4674
4674
|
}, [
|
|
4675
4675
|
Y("canvas", {
|
|
4676
4676
|
ref_key: "canvasRef",
|
|
@@ -4678,15 +4678,15 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4678
4678
|
"aria-label": I.title
|
|
4679
4679
|
}, null, 8, JW)
|
|
4680
4680
|
], 4))
|
|
4681
|
-
], 64)) : (
|
|
4682
|
-
s.value ? (
|
|
4681
|
+
], 64)) : (m(), W(Q, { key: 1 }, [
|
|
4682
|
+
s.value ? (m(), W("div", zW, "加载中...")) : a.value ? (m(), W("div", kW, h(a.value), 1)) : I.url ? ZI(e.$slots, "default", { url: I.url }, () => [
|
|
4683
4683
|
Y("iframe", {
|
|
4684
4684
|
class: "apf-pdf-preview__frame",
|
|
4685
4685
|
src: I.url,
|
|
4686
4686
|
title: I.title,
|
|
4687
|
-
style:
|
|
4687
|
+
style: dI({ minHeight: I.minHeight })
|
|
4688
4688
|
}, null, 12, eW)
|
|
4689
|
-
], !0, 2) : (
|
|
4689
|
+
], !0, 2) : (m(), W("div", LW, "未提供 PDF URL"))
|
|
4690
4690
|
], 64))
|
|
4691
4691
|
]));
|
|
4692
4692
|
}
|
|
@@ -4724,7 +4724,7 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4724
4724
|
},
|
|
4725
4725
|
emits: ["update:modelValue"],
|
|
4726
4726
|
setup(I, { emit: g }) {
|
|
4727
|
-
const C = I, Z = g, A = t(!1), d = t(null), l = t([]), c = t([]), G = t([]), b = t(0),
|
|
4727
|
+
const C = I, Z = g, A = t(!1), d = t(null), l = t([]), c = t([]), G = t([]), b = t(0), i = t(""), w = t(!1);
|
|
4728
4728
|
let s = null, a = null;
|
|
4729
4729
|
function V(J) {
|
|
4730
4730
|
if (!s || !a) return;
|
|
@@ -4748,7 +4748,7 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4748
4748
|
}
|
|
4749
4749
|
A.value = !0, d.value = null;
|
|
4750
4750
|
try {
|
|
4751
|
-
s = R.read(J, { type: "array" }), a = R.utils, l.value = s.SheetNames, w.value = !0, s.SheetNames.length && (
|
|
4751
|
+
s = R.read(J, { type: "array" }), a = R.utils, l.value = s.SheetNames, w.value = !0, s.SheetNames.length && (i.value = s.SheetNames[0], Z("update:modelValue", i.value), V(i.value));
|
|
4752
4752
|
} catch (z) {
|
|
4753
4753
|
w.value = !1, d.value = z instanceof Error ? z.message : "Excel 解析失败";
|
|
4754
4754
|
} finally {
|
|
@@ -4778,12 +4778,12 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4778
4778
|
{ immediate: !0 }
|
|
4779
4779
|
);
|
|
4780
4780
|
function o(J) {
|
|
4781
|
-
Z("update:modelValue", J), w.value && (
|
|
4781
|
+
Z("update:modelValue", J), w.value && (i.value = J, V(J));
|
|
4782
4782
|
}
|
|
4783
4783
|
const S = n(
|
|
4784
4784
|
() => w.value ? l.value : C.sheetNames
|
|
4785
4785
|
), k = n(
|
|
4786
|
-
() => w.value ?
|
|
4786
|
+
() => w.value ? i.value : C.modelValue
|
|
4787
4787
|
), L = n(
|
|
4788
4788
|
() => w.value ? c.value : C.headers
|
|
4789
4789
|
), K = n(() => w.value ? G.value : C.rows), e = n(
|
|
@@ -4793,37 +4793,37 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4793
4793
|
), p = n(
|
|
4794
4794
|
() => w.value || C.src || C.arrayBuffer ? d.value : C.error
|
|
4795
4795
|
);
|
|
4796
|
-
return (J, R) => (
|
|
4797
|
-
S.value.length ? (
|
|
4796
|
+
return (J, R) => (m(), W("div", TW, [
|
|
4797
|
+
S.value.length ? (m(), W("div", xW, [
|
|
4798
4798
|
Y("div", jW, [
|
|
4799
|
-
(
|
|
4799
|
+
(m(!0), W(Q, null, q(S.value, (z) => (m(), W("button", {
|
|
4800
4800
|
key: z,
|
|
4801
4801
|
type: "button",
|
|
4802
4802
|
class: u(["apf-excel-preview__tab", { "apf-excel-preview__tab--active": k.value === z }]),
|
|
4803
4803
|
onClick: (D) => o(z)
|
|
4804
4804
|
}, h(z), 11, QW))), 128))
|
|
4805
4805
|
]),
|
|
4806
|
-
e.value > 0 ? (
|
|
4806
|
+
e.value > 0 ? (m(), W("div", UW, [
|
|
4807
4807
|
gI(h(e.value) + " 行 ", 1),
|
|
4808
|
-
e.value > I.maxPreviewRows ? (
|
|
4808
|
+
e.value > I.maxPreviewRows ? (m(), W("span", vW, "(显示前 " + h(I.maxPreviewRows) + " 行)", 1)) : H("", !0)
|
|
4809
4809
|
])) : H("", !0)
|
|
4810
4810
|
])) : H("", !0),
|
|
4811
|
-
y.value ? (
|
|
4811
|
+
y.value ? (m(), W("div", OW, "加载中...")) : p.value ? (m(), W("div", EW, h(p.value), 1)) : L.value.length ? (m(), W("div", PW, [
|
|
4812
4812
|
Y("table", rW, [
|
|
4813
4813
|
Y("thead", null, [
|
|
4814
4814
|
Y("tr", null, [
|
|
4815
4815
|
R[0] || (R[0] = Y("th", { class: "apf-excel-preview__row-num" }, "#", -1)),
|
|
4816
|
-
(
|
|
4816
|
+
(m(!0), W(Q, null, q(L.value, (z, D) => (m(), W("th", { key: D }, h(z || `列${D + 1}`), 1))), 128))
|
|
4817
4817
|
])
|
|
4818
4818
|
]),
|
|
4819
4819
|
Y("tbody", null, [
|
|
4820
|
-
(
|
|
4820
|
+
(m(!0), W(Q, null, q(K.value, (z, D) => (m(), W("tr", { key: D }, [
|
|
4821
4821
|
Y("td", fW, h(D + 1), 1),
|
|
4822
|
-
(
|
|
4822
|
+
(m(!0), W(Q, null, q(z, (f, AI) => (m(), W("td", { key: AI }, h(f), 1))), 128))
|
|
4823
4823
|
]))), 128))
|
|
4824
4824
|
])
|
|
4825
4825
|
])
|
|
4826
|
-
])) : (
|
|
4826
|
+
])) : (m(), W("div", qW, "无数据"))
|
|
4827
4827
|
]));
|
|
4828
4828
|
}
|
|
4829
4829
|
}), $W = /* @__PURE__ */ U(_W, [["__scopeId", "data-v-0d49cbe0"]]), IB = { class: "apf-doc-preview" }, gB = {
|
|
@@ -4876,14 +4876,14 @@ const RW = { class: "apf-pdf-preview" }, HW = { class: "apf-pdf-preview__toolbar
|
|
|
4876
4876
|
${s.text}`).join(`
|
|
4877
4877
|
|
|
4878
4878
|
`) : "";
|
|
4879
|
-
}), G = n(() => !!C.pdfUrl && A.value), b = n(() => !!C.excelUrl && d.value && !G.value),
|
|
4879
|
+
}), G = n(() => !!C.pdfUrl && A.value), b = n(() => !!C.excelUrl && d.value && !G.value), i = n(() => !G.value && !b.value);
|
|
4880
4880
|
return (w, s) => {
|
|
4881
4881
|
const a = _("el-button"), V = _("el-scrollbar");
|
|
4882
|
-
return
|
|
4883
|
-
I.loading ? (
|
|
4884
|
-
l.value ? (
|
|
4885
|
-
I.hasOriginalFile ? (
|
|
4886
|
-
|
|
4882
|
+
return m(), W("div", IB, [
|
|
4883
|
+
I.loading ? (m(), W("div", gB, "加载中...")) : I.error ? (m(), W("div", CB, h(I.error), 1)) : (m(), W(Q, { key: 2 }, [
|
|
4884
|
+
l.value ? (m(), W("div", AB, h(l.value), 1)) : H("", !0),
|
|
4885
|
+
I.hasOriginalFile ? (m(), W("div", ZB, [
|
|
4886
|
+
II(a, {
|
|
4887
4887
|
size: "small",
|
|
4888
4888
|
type: "primary",
|
|
4889
4889
|
plain: "",
|
|
@@ -4895,19 +4895,19 @@ ${s.text}`).join(`
|
|
|
4895
4895
|
_: 1
|
|
4896
4896
|
})
|
|
4897
4897
|
])) : H("", !0),
|
|
4898
|
-
G.value ? (
|
|
4899
|
-
|
|
4900
|
-
|
|
4898
|
+
G.value ? (m(), W("div", lB, [
|
|
4899
|
+
ZI(w.$slots, "pdf", { url: I.pdfUrl }, () => [
|
|
4900
|
+
II(cl, {
|
|
4901
4901
|
url: I.pdfUrl,
|
|
4902
4902
|
title: I.filename,
|
|
4903
4903
|
"min-height": "280px"
|
|
4904
4904
|
}, null, 8, ["url", "title"])
|
|
4905
4905
|
], !0)
|
|
4906
|
-
])) : b.value ? (
|
|
4907
|
-
|
|
4908
|
-
|
|
4906
|
+
])) : b.value ? (m(), W("div", dB, [
|
|
4907
|
+
ZI(w.$slots, "excel", { url: I.excelUrl }, () => [
|
|
4908
|
+
II($W, { src: I.excelUrl }, null, 8, ["src"])
|
|
4909
4909
|
], !0)
|
|
4910
|
-
])) :
|
|
4910
|
+
])) : i.value ? (m(), x(V, {
|
|
4911
4911
|
key: 4,
|
|
4912
4912
|
class: "apf-doc-preview__scroll"
|
|
4913
4913
|
}, {
|
|
@@ -4920,7 +4920,7 @@ ${s.text}`).join(`
|
|
|
4920
4920
|
]);
|
|
4921
4921
|
};
|
|
4922
4922
|
}
|
|
4923
|
-
}), bB = /* @__PURE__ */ U(cB, [["__scopeId", "data-v-83366d94"]]),
|
|
4923
|
+
}), bB = /* @__PURE__ */ U(cB, [["__scopeId", "data-v-83366d94"]]), dN = /* @__PURE__ */ j({
|
|
4924
4924
|
__name: "DocumentPreviewDrawer",
|
|
4925
4925
|
props: {
|
|
4926
4926
|
modelValue: { type: Boolean },
|
|
@@ -4944,7 +4944,7 @@ ${s.text}`).join(`
|
|
|
4944
4944
|
}
|
|
4945
4945
|
return (A, d) => {
|
|
4946
4946
|
const l = _("el-drawer");
|
|
4947
|
-
return
|
|
4947
|
+
return m(), x(l, {
|
|
4948
4948
|
"model-value": I.modelValue,
|
|
4949
4949
|
title: I.filename || "文档预览",
|
|
4950
4950
|
size: I.sizeDrawer,
|
|
@@ -4953,7 +4953,7 @@ ${s.text}`).join(`
|
|
|
4953
4953
|
onClose: Z
|
|
4954
4954
|
}, {
|
|
4955
4955
|
default: O(() => [
|
|
4956
|
-
|
|
4956
|
+
II(bB, {
|
|
4957
4957
|
filename: I.filename || "文档预览",
|
|
4958
4958
|
mimetype: I.mimetype,
|
|
4959
4959
|
size: I.size,
|
|
@@ -4970,14 +4970,14 @@ ${s.text}`).join(`
|
|
|
4970
4970
|
A.$slots.pdf ? {
|
|
4971
4971
|
name: "pdf",
|
|
4972
4972
|
fn: O((c) => [
|
|
4973
|
-
|
|
4973
|
+
ZI(A.$slots, "pdf", vA(OA(c)))
|
|
4974
4974
|
]),
|
|
4975
4975
|
key: "0"
|
|
4976
4976
|
} : void 0,
|
|
4977
4977
|
A.$slots.excel ? {
|
|
4978
4978
|
name: "excel",
|
|
4979
4979
|
fn: O((c) => [
|
|
4980
|
-
|
|
4980
|
+
ZI(A.$slots, "excel", vA(OA(c)))
|
|
4981
4981
|
]),
|
|
4982
4982
|
key: "1"
|
|
4983
4983
|
} : void 0
|
|
@@ -5003,15 +5003,15 @@ ${s.text}`).join(`
|
|
|
5003
5003
|
function d(l) {
|
|
5004
5004
|
Z.value = l, C.value = !0;
|
|
5005
5005
|
}
|
|
5006
|
-
return (l, c) => A.value.length ? (
|
|
5006
|
+
return (l, c) => A.value.length ? (m(), W("div", {
|
|
5007
5007
|
key: 0,
|
|
5008
5008
|
class: u(["apf-image-preview", `apf-image-preview--${I.size}`])
|
|
5009
5009
|
}, [
|
|
5010
|
-
(
|
|
5010
|
+
(m(!0), W(Q, null, q(A.value, (G, b) => (m(), W("button", {
|
|
5011
5011
|
key: `${G}-${b}`,
|
|
5012
5012
|
type: "button",
|
|
5013
5013
|
class: "apf-image-preview__thumb",
|
|
5014
|
-
onClick: UI((
|
|
5014
|
+
onClick: UI((i) => d(b), ["stop"])
|
|
5015
5015
|
}, [
|
|
5016
5016
|
Y("img", {
|
|
5017
5017
|
src: G,
|
|
@@ -5019,7 +5019,7 @@ ${s.text}`).join(`
|
|
|
5019
5019
|
loading: "lazy"
|
|
5020
5020
|
}, null, 8, iB)
|
|
5021
5021
|
], 8, mB))), 128)),
|
|
5022
|
-
C.value && A.value.length ? (
|
|
5022
|
+
C.value && A.value.length ? (m(), x($(Ad), {
|
|
5023
5023
|
key: 0,
|
|
5024
5024
|
"url-list": A.value,
|
|
5025
5025
|
"initial-index": Z.value,
|
|
@@ -5035,7 +5035,7 @@ ${s.text}`).join(`
|
|
|
5035
5035
|
size: { default: "default" }
|
|
5036
5036
|
},
|
|
5037
5037
|
setup(I) {
|
|
5038
|
-
return (g, C) => (
|
|
5038
|
+
return (g, C) => (m(), W("video", {
|
|
5039
5039
|
class: u(["apf-video-preview", `apf-video-preview--${I.size}`]),
|
|
5040
5040
|
src: I.url,
|
|
5041
5041
|
controls: "",
|
|
@@ -5059,8 +5059,8 @@ function VB(I = {}) {
|
|
|
5059
5059
|
} catch (b) {
|
|
5060
5060
|
try {
|
|
5061
5061
|
return g(A), (c = I.onSuccess) == null || c.call(I, A), !0;
|
|
5062
|
-
} catch (
|
|
5063
|
-
return (G = I.onError) == null || G.call(I,
|
|
5062
|
+
} catch (i) {
|
|
5063
|
+
return (G = I.onError) == null || G.call(I, i ?? b), !1;
|
|
5064
5064
|
}
|
|
5065
5065
|
}
|
|
5066
5066
|
}
|
|
@@ -5093,7 +5093,7 @@ const NB = {
|
|
|
5093
5093
|
async function A() {
|
|
5094
5094
|
await C(g.text);
|
|
5095
5095
|
}
|
|
5096
|
-
return (d, l) => I.size === "compact" ? (
|
|
5096
|
+
return (d, l) => I.size === "compact" ? (m(), W("div", NB, h(Z.value), 1)) : (m(), W("div", XB, [
|
|
5097
5097
|
Y("div", oB, [
|
|
5098
5098
|
Y("span", hB, h(I.label || "文本"), 1),
|
|
5099
5099
|
Y("button", {
|
|
@@ -5104,7 +5104,7 @@ const NB = {
|
|
|
5104
5104
|
]),
|
|
5105
5105
|
Y("pre", {
|
|
5106
5106
|
class: "apf-text-preview__body",
|
|
5107
|
-
style:
|
|
5107
|
+
style: dI({ maxHeight: I.maxHeight })
|
|
5108
5108
|
}, h(I.text), 5)
|
|
5109
5109
|
]));
|
|
5110
5110
|
}
|
|
@@ -5120,12 +5120,12 @@ const NB = {
|
|
|
5120
5120
|
filename: C.item.filename || C.item.label || "file",
|
|
5121
5121
|
mimetype: C.item.mimetype || ""
|
|
5122
5122
|
}) : "文件"), d = n(() => C.item.filename || C.item.label || A.value);
|
|
5123
|
-
return (l, c) => (
|
|
5123
|
+
return (l, c) => (m(), W("button", {
|
|
5124
5124
|
type: "button",
|
|
5125
5125
|
class: "apf-file-chip",
|
|
5126
5126
|
onClick: c[0] || (c[0] = UI((G) => Z("preview", I.item), ["stop"]))
|
|
5127
5127
|
}, [
|
|
5128
|
-
$(
|
|
5128
|
+
II($(RI), {
|
|
5129
5129
|
name: "document",
|
|
5130
5130
|
size: 14
|
|
5131
5131
|
}),
|
|
@@ -5159,7 +5159,7 @@ const NB = {
|
|
|
5159
5159
|
), G = n(() => l.value.filter((X) => X.kind === "video" && X.url)), b = n(() => l.value.filter((X) => {
|
|
5160
5160
|
var o;
|
|
5161
5161
|
return X.kind === "json" && ((o = X.text) == null ? void 0 : o.trim());
|
|
5162
|
-
})),
|
|
5162
|
+
})), i = n(() => l.value.filter((X) => {
|
|
5163
5163
|
var o;
|
|
5164
5164
|
return X.kind === "text" && ((o = X.text) == null ? void 0 : o.trim());
|
|
5165
5165
|
})), w = n(
|
|
@@ -5167,7 +5167,7 @@ const NB = {
|
|
|
5167
5167
|
(X) => X.kind === "pdf" || X.kind === "office" || X.kind === "file" || X.kind === "image" && !X.url && X.documentId
|
|
5168
5168
|
)
|
|
5169
5169
|
), s = n(
|
|
5170
|
-
() => c.value.length > 0 || G.value.length > 0 || b.value.length > 0 ||
|
|
5170
|
+
() => c.value.length > 0 || G.value.length > 0 || b.value.length > 0 || i.value.length > 0 || w.value.length > 0
|
|
5171
5171
|
);
|
|
5172
5172
|
function a(X) {
|
|
5173
5173
|
Z("preview", X);
|
|
@@ -5177,46 +5177,46 @@ const NB = {
|
|
|
5177
5177
|
}
|
|
5178
5178
|
return (X, o) => {
|
|
5179
5179
|
var S, k;
|
|
5180
|
-
return s.value ? (
|
|
5180
|
+
return s.value ? (m(), W("div", {
|
|
5181
5181
|
key: 0,
|
|
5182
5182
|
class: u(["apf-artifact-gallery", `apf-artifact-gallery--${I.size}`])
|
|
5183
5183
|
}, [
|
|
5184
|
-
c.value.length ? (
|
|
5184
|
+
c.value.length ? (m(), x(BB, {
|
|
5185
5185
|
key: 0,
|
|
5186
5186
|
urls: c.value,
|
|
5187
5187
|
size: I.size
|
|
5188
5188
|
}, null, 8, ["urls", "size"])) : H("", !0),
|
|
5189
|
-
G.value.length ? (
|
|
5190
|
-
(
|
|
5189
|
+
G.value.length ? (m(), W("div", MB, [
|
|
5190
|
+
(m(!0), W(Q, null, q(G.value, (L) => (m(), x(wB, {
|
|
5191
5191
|
key: L.id,
|
|
5192
5192
|
url: L.url,
|
|
5193
5193
|
size: I.size
|
|
5194
5194
|
}, null, 8, ["url", "size"]))), 128))
|
|
5195
5195
|
])) : H("", !0),
|
|
5196
|
-
b.value.length ? (
|
|
5197
|
-
(
|
|
5196
|
+
b.value.length ? (m(), W("div", KB, [
|
|
5197
|
+
(m(!0), W(Q, null, q(b.value, (L) => (m(), x($(VW), {
|
|
5198
5198
|
key: L.id,
|
|
5199
5199
|
title: L.label || "JSON 输出",
|
|
5200
5200
|
content: L.text,
|
|
5201
5201
|
onOpenDetail: (K) => V(L)
|
|
5202
5202
|
}, null, 8, ["title", "content", "onOpenDetail"]))), 128))
|
|
5203
5203
|
])) : H("", !0),
|
|
5204
|
-
w.value.length ? (
|
|
5205
|
-
(
|
|
5204
|
+
w.value.length ? (m(), W("div", SB, [
|
|
5205
|
+
(m(!0), W(Q, null, q(w.value, (L) => (m(), x(nB, {
|
|
5206
5206
|
key: L.id,
|
|
5207
5207
|
item: L,
|
|
5208
5208
|
onPreview: a
|
|
5209
5209
|
}, null, 8, ["item"]))), 128))
|
|
5210
5210
|
])) : H("", !0),
|
|
5211
|
-
|
|
5212
|
-
(
|
|
5211
|
+
i.value.length ? (m(), W("div", DB, [
|
|
5212
|
+
(m(!0), W(Q, null, q(i.value, (L) => (m(), x(RB, {
|
|
5213
5213
|
key: L.id,
|
|
5214
5214
|
text: L.text,
|
|
5215
5215
|
label: L.label,
|
|
5216
5216
|
size: I.size
|
|
5217
5217
|
}, null, 8, ["text", "label", "size"]))), 128))
|
|
5218
5218
|
])) : H("", !0),
|
|
5219
|
-
$(
|
|
5219
|
+
II($(oW), {
|
|
5220
5220
|
modelValue: A.value,
|
|
5221
5221
|
"onUpdate:modelValue": o[0] || (o[0] = (L) => A.value = L),
|
|
5222
5222
|
title: ((S = d.value) == null ? void 0 : S.label) || "JSON 详情",
|
|
@@ -5234,7 +5234,7 @@ const NB = {
|
|
|
5234
5234
|
emits: ["preview"],
|
|
5235
5235
|
setup(I, { emit: g }) {
|
|
5236
5236
|
const C = g;
|
|
5237
|
-
return (Z, A) => (
|
|
5237
|
+
return (Z, A) => (m(), x(GA, {
|
|
5238
5238
|
class: "apf-node-artifact-strip",
|
|
5239
5239
|
items: I.items,
|
|
5240
5240
|
size: "compact",
|
|
@@ -5242,7 +5242,7 @@ const NB = {
|
|
|
5242
5242
|
onPreview: A[0] || (A[0] = (d) => C("preview", d))
|
|
5243
5243
|
}, null, 8, ["items", "max"]));
|
|
5244
5244
|
}
|
|
5245
|
-
}),
|
|
5245
|
+
}), GN = /* @__PURE__ */ U(pB, [["__scopeId", "data-v-27af4171"]]), JB = {
|
|
5246
5246
|
key: 0,
|
|
5247
5247
|
class: "apf-hitl-artifact-panel"
|
|
5248
5248
|
}, zB = {
|
|
@@ -5258,9 +5258,9 @@ const NB = {
|
|
|
5258
5258
|
emits: ["preview"],
|
|
5259
5259
|
setup(I, { emit: g }) {
|
|
5260
5260
|
const C = g;
|
|
5261
|
-
return (Z, A) => I.items.length ? (
|
|
5262
|
-
I.title ? (
|
|
5263
|
-
|
|
5261
|
+
return (Z, A) => I.items.length ? (m(), W("section", JB, [
|
|
5262
|
+
I.title ? (m(), W("header", zB, h(I.title), 1)) : H("", !0),
|
|
5263
|
+
II(GA, {
|
|
5264
5264
|
items: I.items,
|
|
5265
5265
|
size: "default",
|
|
5266
5266
|
max: I.max,
|
|
@@ -5268,7 +5268,7 @@ const NB = {
|
|
|
5268
5268
|
}, null, 8, ["items", "max"])
|
|
5269
5269
|
])) : H("", !0);
|
|
5270
5270
|
}
|
|
5271
|
-
}),
|
|
5271
|
+
}), cN = /* @__PURE__ */ U(kB, [["__scopeId", "data-v-8c940624"]]), eB = { class: "apf-execution-artifact-panel" }, LB = { class: "apf-execution-artifact-panel__head" }, tB = { class: "apf-execution-artifact-panel__title-row" }, TB = { class: "apf-execution-artifact-panel__title" }, xB = {
|
|
5272
5272
|
key: 0,
|
|
5273
5273
|
class: "apf-execution-artifact-panel__count"
|
|
5274
5274
|
}, jB = {
|
|
@@ -5324,7 +5324,7 @@ const NB = {
|
|
|
5324
5324
|
(X) => d.includes(X.kind) || X.kind === "image" && !X.url && !!X.documentId
|
|
5325
5325
|
).length
|
|
5326
5326
|
};
|
|
5327
|
-
}),
|
|
5327
|
+
}), i = n(() => {
|
|
5328
5328
|
const V = b.value;
|
|
5329
5329
|
return [
|
|
5330
5330
|
{ value: "all", label: "全部", count: V.all },
|
|
@@ -5344,14 +5344,14 @@ const NB = {
|
|
|
5344
5344
|
const V = c(C.items ?? []);
|
|
5345
5345
|
return V.length ? [{ key: "_all", label: "", items: V }] : [];
|
|
5346
5346
|
}), s = n(() => G.value.length > 0), a = n(() => w.value.some((V) => V.items.length > 0));
|
|
5347
|
-
return (V, X) => (
|
|
5347
|
+
return (V, X) => (m(), W("section", eB, [
|
|
5348
5348
|
Y("header", LB, [
|
|
5349
5349
|
Y("div", tB, [
|
|
5350
5350
|
Y("h3", TB, h(I.title), 1),
|
|
5351
|
-
s.value ? (
|
|
5351
|
+
s.value ? (m(), W("span", xB, h(b.value.all) + " 项 ", 1)) : H("", !0)
|
|
5352
5352
|
]),
|
|
5353
|
-
I.showFilters && s.value &&
|
|
5354
|
-
(
|
|
5353
|
+
I.showFilters && s.value && i.value.length > 1 ? (m(), W("div", jB, [
|
|
5354
|
+
(m(!0), W(Q, null, q(i.value, (o) => (m(), W("button", {
|
|
5355
5355
|
key: o.value,
|
|
5356
5356
|
type: "button",
|
|
5357
5357
|
role: "tab",
|
|
@@ -5364,29 +5364,29 @@ const NB = {
|
|
|
5364
5364
|
], 10, QB))), 128))
|
|
5365
5365
|
])) : H("", !0)
|
|
5366
5366
|
]),
|
|
5367
|
-
s.value ? a.value ? (
|
|
5368
|
-
(
|
|
5367
|
+
s.value ? a.value ? (m(), W("div", UB, [
|
|
5368
|
+
(m(!0), W(Q, null, q(w.value, (o) => (m(), W("div", {
|
|
5369
5369
|
key: o.key,
|
|
5370
5370
|
class: "apf-execution-artifact-panel__group"
|
|
5371
5371
|
}, [
|
|
5372
|
-
o.label ? (
|
|
5372
|
+
o.label ? (m(), W("div", vB, [
|
|
5373
5373
|
gI(h(o.label) + " ", 1),
|
|
5374
5374
|
Y("em", null, h(o.items.length), 1)
|
|
5375
5375
|
])) : H("", !0),
|
|
5376
|
-
|
|
5376
|
+
II(GA, {
|
|
5377
5377
|
items: o.items,
|
|
5378
5378
|
size: "default",
|
|
5379
5379
|
max: I.max,
|
|
5380
5380
|
onPreview: X[0] || (X[0] = (S) => Z("preview", S))
|
|
5381
5381
|
}, null, 8, ["items", "max"])
|
|
5382
5382
|
]))), 128))
|
|
5383
|
-
])) : (
|
|
5383
|
+
])) : (m(), x(cg, {
|
|
5384
5384
|
key: 1,
|
|
5385
5385
|
compact: "",
|
|
5386
5386
|
icon: "search",
|
|
5387
5387
|
title: "无匹配产物",
|
|
5388
5388
|
description: "换一个类型筛选试试。"
|
|
5389
|
-
})) : (
|
|
5389
|
+
})) : (m(), x(cg, {
|
|
5390
5390
|
key: 0,
|
|
5391
5391
|
compact: "",
|
|
5392
5392
|
icon: "folder",
|
|
@@ -5395,7 +5395,7 @@ const NB = {
|
|
|
5395
5395
|
}))
|
|
5396
5396
|
]));
|
|
5397
5397
|
}
|
|
5398
|
-
}),
|
|
5398
|
+
}), bN = /* @__PURE__ */ U(OB, [["__scopeId", "data-v-704305fc"]]);
|
|
5399
5399
|
function cA() {
|
|
5400
5400
|
return { async: !1, breaks: !1, extensions: null, gfm: !0, hooks: null, pedantic: !1, renderer: null, silent: !1, tokenizer: null, walkTokens: null };
|
|
5401
5401
|
}
|
|
@@ -5443,8 +5443,8 @@ function XZ(I) {
|
|
|
5443
5443
|
function oZ(I, g) {
|
|
5444
5444
|
var d;
|
|
5445
5445
|
let C = I.replace(aI.findPipe, (l, c, G) => {
|
|
5446
|
-
let b = !1,
|
|
5447
|
-
for (; --
|
|
5446
|
+
let b = !1, i = c;
|
|
5447
|
+
for (; --i >= 0 && G[i] === "\\"; ) b = !b;
|
|
5448
5448
|
return b ? "|" : " |";
|
|
5449
5449
|
}), Z = C.split(aI.splitPipe), A = 0;
|
|
5450
5450
|
if (Z[0].trim() || Z.shift(), Z.length > 0 && !((d = Z.at(-1)) != null && d.trim()) && Z.pop(), g) if (Z.length > g) Z.splice(g);
|
|
@@ -5486,12 +5486,12 @@ function TY(I, g = 0) {
|
|
|
5486
5486
|
function aZ(I, g, C, Z, A) {
|
|
5487
5487
|
let d = g.href, l = g.title || null, c = I[1].replace(A.other.outputLinkReplace, "$1"), G = I[0].charAt(0) === "!";
|
|
5488
5488
|
Z.state.inLink = !0;
|
|
5489
|
-
let b = Z.state.linkEmitted,
|
|
5489
|
+
let b = Z.state.linkEmitted, i = Z.state.inRawBlock;
|
|
5490
5490
|
Z.state.linkEmitted = !1;
|
|
5491
5491
|
let w = Z.inlineTokens(c), s = Z.state.linkEmitted;
|
|
5492
5492
|
if (Z.state.linkEmitted = b, Z.state.inLink = !1, !G) {
|
|
5493
5493
|
if (s) {
|
|
5494
|
-
Z.state.inRawBlock =
|
|
5494
|
+
Z.state.inRawBlock = i;
|
|
5495
5495
|
return;
|
|
5496
5496
|
}
|
|
5497
5497
|
Z.state.linkEmitted = !0;
|
|
@@ -5566,13 +5566,13 @@ var mC = class {
|
|
|
5566
5566
|
else break;
|
|
5567
5567
|
C = C.slice(G);
|
|
5568
5568
|
let b = c.join(`
|
|
5569
|
-
`),
|
|
5569
|
+
`), i = b.replace(this.rules.other.blockquoteSetextReplace, `
|
|
5570
5570
|
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
5571
5571
|
Z = Z ? `${Z}
|
|
5572
5572
|
${b}` : b, A = A ? `${A}
|
|
5573
|
-
${
|
|
5573
|
+
${i}` : i;
|
|
5574
5574
|
let w = this.lexer.state.top;
|
|
5575
|
-
if (this.lexer.state.top = !0, this.lexer.blockTokens(
|
|
5575
|
+
if (this.lexer.state.top = !0, this.lexer.blockTokens(i, d, !0), this.lexer.state.top = w, C.length === 0) break;
|
|
5576
5576
|
let s = d.at(-1);
|
|
5577
5577
|
if ((s == null ? void 0 : s.type) === "code") break;
|
|
5578
5578
|
if ((s == null ? void 0 : s.type) === "blockquote") {
|
|
@@ -5601,39 +5601,39 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
5601
5601
|
C = Z ? `\\d{1,9}\\${C.slice(-1)}` : `\\${C}`, this.options.pedantic && (C = Z ? C : "[*+-]");
|
|
5602
5602
|
let d = this.rules.other.listItemRegex(C), l = !1;
|
|
5603
5603
|
for (; I; ) {
|
|
5604
|
-
let G = !1, b = "",
|
|
5604
|
+
let G = !1, b = "", i = "";
|
|
5605
5605
|
if (!(g = d.exec(I)) || this.rules.block.hr.test(I)) break;
|
|
5606
5606
|
b = g[0], I = I.substring(b.length);
|
|
5607
5607
|
let w = TY(g[2].split(`
|
|
5608
5608
|
`, 1)[0], g[1].length), s = I.split(`
|
|
5609
5609
|
`, 1)[0], a = !w.trim(), V = 0;
|
|
5610
|
-
if (this.options.pedantic ? (V = 2,
|
|
5610
|
+
if (this.options.pedantic ? (V = 2, i = w.trimStart()) : a ? V = g[1].length + 1 : (V = w.search(this.rules.other.nonSpaceChar), V = V > 4 ? 1 : V, i = w.slice(V), V += g[1].length), a && this.rules.other.blankLine.test(s) && (b += s + `
|
|
5611
5611
|
`, I = I.substring(s.length + 1), G = !0), !G) {
|
|
5612
5612
|
let X = this.rules.other.nextBulletRegex(V), o = this.rules.other.hrRegex(V), S = this.rules.other.fencesBeginRegex(V), k = this.rules.other.headingBeginRegex(V), L = this.rules.other.htmlBeginRegex(V), K = this.rules.other.blockquoteBeginRegex(V);
|
|
5613
5613
|
for (; I; ) {
|
|
5614
5614
|
let e = I.split(`
|
|
5615
5615
|
`, 1)[0], y;
|
|
5616
5616
|
if (s = e, this.options.pedantic ? (s = s.replace(this.rules.other.listReplaceNesting, " "), y = s) : y = s.replace(this.rules.other.tabCharGlobal, " "), S.test(s) || k.test(s) || L.test(s) || K.test(s) || X.test(s) || o.test(s)) break;
|
|
5617
|
-
if (y.search(this.rules.other.nonSpaceChar) >= V || !s.trim())
|
|
5617
|
+
if (y.search(this.rules.other.nonSpaceChar) >= V || !s.trim()) i += `
|
|
5618
5618
|
` + y.slice(V);
|
|
5619
5619
|
else {
|
|
5620
5620
|
if (a || w.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || S.test(w) || k.test(w) || o.test(w)) break;
|
|
5621
|
-
|
|
5621
|
+
i += `
|
|
5622
5622
|
` + s;
|
|
5623
5623
|
}
|
|
5624
5624
|
a = !s.trim(), b += e + `
|
|
5625
5625
|
`, I = I.substring(e.length + 1), w = y.slice(V);
|
|
5626
5626
|
}
|
|
5627
5627
|
}
|
|
5628
|
-
A.loose || (l ? A.loose = !0 : this.rules.other.doubleBlankLine.test(b) && (l = !0)), A.items.push({ type: "list_item", raw: b, task: !!this.options.gfm && this.rules.other.listIsTask.test(
|
|
5628
|
+
A.loose || (l ? A.loose = !0 : this.rules.other.doubleBlankLine.test(b) && (l = !0)), A.items.push({ type: "list_item", raw: b, task: !!this.options.gfm && this.rules.other.listIsTask.test(i), loose: !1, text: i, tokens: [] }), A.raw += b;
|
|
5629
5629
|
}
|
|
5630
5630
|
let c = A.items.at(-1);
|
|
5631
5631
|
if (c) c.raw = c.raw.trimEnd(), c.text = c.text.trimEnd();
|
|
5632
5632
|
else return;
|
|
5633
5633
|
A.raw = A.raw.trimEnd();
|
|
5634
5634
|
for (let G of A.items) if (this.lexer.state.top = !1, G.tokens = this.lexer.blockTokens(G.text, []), !A.loose) {
|
|
5635
|
-
let b = G.tokens.filter((w) => w.type === "space"),
|
|
5636
|
-
A.loose =
|
|
5635
|
+
let b = G.tokens.filter((w) => w.type === "space"), i = b.length > 0 && b.some((w) => this.rules.other.anyLine.test(w.raw));
|
|
5636
|
+
A.loose = i;
|
|
5637
5637
|
}
|
|
5638
5638
|
for (let G of A.items) {
|
|
5639
5639
|
let b = G.tokens[0];
|
|
@@ -5643,9 +5643,9 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
5643
5643
|
this.lexer.inlineQueue[w].src = this.lexer.inlineQueue[w].src.replace(this.rules.other.listReplaceTask, "");
|
|
5644
5644
|
break;
|
|
5645
5645
|
}
|
|
5646
|
-
let
|
|
5647
|
-
if (
|
|
5648
|
-
let w = { type: "checkbox", raw:
|
|
5646
|
+
let i = this.rules.other.listTaskCheckbox.exec(G.raw);
|
|
5647
|
+
if (i) {
|
|
5648
|
+
let w = { type: "checkbox", raw: i[0] + " ", checked: i[0] !== "[ ]" };
|
|
5649
5649
|
G.checked = w.checked, A.loose ? G.tokens[0] && ["paragraph", "text"].includes(G.tokens[0].type) && "tokens" in G.tokens[0] && G.tokens[0].tokens ? (G.tokens[0].raw = w.raw + G.tokens[0].raw, G.tokens[0].text = w.raw + G.tokens[0].text, G.tokens[0].tokens.unshift(w)) : G.tokens.unshift({ type: "paragraph", raw: w.raw, text: w.raw, tokens: [w] }) : G.tokens.unshift(w);
|
|
5650
5650
|
}
|
|
5651
5651
|
} else G.task && (G.task = !1);
|
|
@@ -5752,7 +5752,7 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
5752
5752
|
emStrong(I, g, C = "") {
|
|
5753
5753
|
let Z = this.rules.inline.emStrongLDelim.exec(I);
|
|
5754
5754
|
if (!(!Z || !Z[1] && !Z[2] && !Z[3] && !Z[4] || Z[4] && C.match(this.rules.other.unicodeAlphaNumeric)) && (!(Z[1] || Z[3]) || !C || this.rules.inline.punctuation.exec(C))) {
|
|
5755
|
-
let A = [...Z[0]].length - 1, d, l, c = A, G = 0, b = Z[0][0],
|
|
5755
|
+
let A = [...Z[0]].length - 1, d, l, c = A, G = 0, b = Z[0][0], i = C === b, w = b === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
5756
5756
|
for (w.lastIndex = 0, g = g.slice(-1 * I.length + A); (Z = w.exec(g)) !== null; ) {
|
|
5757
5757
|
if (d = Z[1] || Z[2] || Z[3] || Z[4] || Z[5] || Z[6], !d) continue;
|
|
5758
5758
|
if (l = [...d].length, Z[3] || Z[4]) {
|
|
@@ -5763,7 +5763,7 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
5763
5763
|
G += l;
|
|
5764
5764
|
continue;
|
|
5765
5765
|
}
|
|
5766
|
-
if (
|
|
5766
|
+
if (i) break;
|
|
5767
5767
|
}
|
|
5768
5768
|
if (c -= l, c > 0) continue;
|
|
5769
5769
|
l = Math.min(l, l + c + G);
|
|
@@ -5800,8 +5800,8 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
5800
5800
|
}
|
|
5801
5801
|
if (c -= l, c > 0) continue;
|
|
5802
5802
|
l = Math.min(l, l + c);
|
|
5803
|
-
let b = [...Z[0]][0].length,
|
|
5804
|
-
return { type: "del", raw:
|
|
5803
|
+
let b = [...Z[0]][0].length, i = I.slice(0, A + Z.index + b + l), w = i.slice(A, -A);
|
|
5804
|
+
return { type: "del", raw: i, text: w, tokens: this.lexer.inlineTokens(w) };
|
|
5805
5805
|
}
|
|
5806
5806
|
}
|
|
5807
5807
|
}
|
|
@@ -5875,21 +5875,21 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
5875
5875
|
break;
|
|
5876
5876
|
}
|
|
5877
5877
|
let G;
|
|
5878
|
-
if ((l = (d = this.options.extensions) == null ? void 0 : d.block) != null && l.some((
|
|
5878
|
+
if ((l = (d = this.options.extensions) == null ? void 0 : d.block) != null && l.some((i) => (G = i.call({ lexer: this }, g, C)) ? (g = g.substring(G.raw.length), C.push(G), !0) : !1)) continue;
|
|
5879
5879
|
if (G = this.tokenizer.space(g)) {
|
|
5880
5880
|
g = g.substring(G.raw.length);
|
|
5881
|
-
let
|
|
5882
|
-
G.raw.length === 1 &&
|
|
5881
|
+
let i = C.at(-1);
|
|
5882
|
+
G.raw.length === 1 && i !== void 0 ? i.raw += `
|
|
5883
5883
|
` : C.push(G);
|
|
5884
5884
|
continue;
|
|
5885
5885
|
}
|
|
5886
5886
|
if (G = this.tokenizer.code(g)) {
|
|
5887
5887
|
g = g.substring(G.raw.length);
|
|
5888
|
-
let
|
|
5889
|
-
(
|
|
5888
|
+
let i = C.at(-1);
|
|
5889
|
+
(i == null ? void 0 : i.type) === "paragraph" || (i == null ? void 0 : i.type) === "text" ? (i.raw += (i.raw.endsWith(`
|
|
5890
5890
|
`) ? "" : `
|
|
5891
|
-
`) + G.raw,
|
|
5892
|
-
` + G.text, this.inlineQueue.at(-1).src =
|
|
5891
|
+
`) + G.raw, i.text += `
|
|
5892
|
+
` + G.text, this.inlineQueue.at(-1).src = i.text) : C.push(G);
|
|
5893
5893
|
continue;
|
|
5894
5894
|
}
|
|
5895
5895
|
if (G = this.tokenizer.fences(g)) {
|
|
@@ -5918,11 +5918,11 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
5918
5918
|
}
|
|
5919
5919
|
if (G = this.tokenizer.def(g)) {
|
|
5920
5920
|
g = g.substring(G.raw.length);
|
|
5921
|
-
let
|
|
5922
|
-
(
|
|
5921
|
+
let i = C.at(-1);
|
|
5922
|
+
(i == null ? void 0 : i.type) === "paragraph" || (i == null ? void 0 : i.type) === "text" ? (i.raw += (i.raw.endsWith(`
|
|
5923
5923
|
`) ? "" : `
|
|
5924
|
-
`) + G.raw,
|
|
5925
|
-
` + G.raw, this.inlineQueue.at(-1).src =
|
|
5924
|
+
`) + G.raw, i.text += `
|
|
5925
|
+
` + G.raw, this.inlineQueue.at(-1).src = i.text) : this.tokens.links[G.tag] || (this.tokens.links[G.tag] = { href: G.href, title: G.title }, C.push(G));
|
|
5926
5926
|
continue;
|
|
5927
5927
|
}
|
|
5928
5928
|
if (G = this.tokenizer.table(g)) {
|
|
@@ -5935,26 +5935,26 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
5935
5935
|
}
|
|
5936
5936
|
let b = g;
|
|
5937
5937
|
if ((c = this.options.extensions) != null && c.startBlock) {
|
|
5938
|
-
let
|
|
5938
|
+
let i = 1 / 0, w = g.slice(1), s;
|
|
5939
5939
|
this.options.extensions.startBlock.forEach((a) => {
|
|
5940
|
-
s = a.call({ lexer: this }, w), typeof s == "number" && s >= 0 && (
|
|
5941
|
-
}),
|
|
5940
|
+
s = a.call({ lexer: this }, w), typeof s == "number" && s >= 0 && (i = Math.min(i, s));
|
|
5941
|
+
}), i < 1 / 0 && i >= 0 && (b = g.substring(0, i + 1));
|
|
5942
5942
|
}
|
|
5943
5943
|
if (this.state.top && (G = this.tokenizer.paragraph(b))) {
|
|
5944
|
-
let
|
|
5945
|
-
Z && (
|
|
5944
|
+
let i = C.at(-1);
|
|
5945
|
+
Z && (i == null ? void 0 : i.type) === "paragraph" ? (i.raw += (i.raw.endsWith(`
|
|
5946
5946
|
`) ? "" : `
|
|
5947
|
-
`) + G.raw,
|
|
5948
|
-
` + G.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src =
|
|
5947
|
+
`) + G.raw, i.text += `
|
|
5948
|
+
` + G.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = i.text) : C.push(G), Z = b.length !== g.length, g = g.substring(G.raw.length);
|
|
5949
5949
|
continue;
|
|
5950
5950
|
}
|
|
5951
5951
|
if (G = this.tokenizer.text(g)) {
|
|
5952
5952
|
g = g.substring(G.raw.length);
|
|
5953
|
-
let
|
|
5954
|
-
(
|
|
5953
|
+
let i = C.at(-1);
|
|
5954
|
+
(i == null ? void 0 : i.type) === "text" ? (i.raw += (i.raw.endsWith(`
|
|
5955
5955
|
`) ? "" : `
|
|
5956
|
-
`) + G.raw,
|
|
5957
|
-
` + G.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src =
|
|
5956
|
+
`) + G.raw, i.text += `
|
|
5957
|
+
` + G.text, this.inlineQueue.pop(), this.inlineQueue.at(-1).src = i.text) : C.push(G);
|
|
5958
5958
|
continue;
|
|
5959
5959
|
}
|
|
5960
5960
|
if (g) {
|
|
@@ -5978,7 +5978,7 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
5978
5978
|
return !1;
|
|
5979
5979
|
}
|
|
5980
5980
|
inlineTokens(g, C = []) {
|
|
5981
|
-
var c, G, b,
|
|
5981
|
+
var c, G, b, i, w;
|
|
5982
5982
|
this.tokenizer.lexer = this;
|
|
5983
5983
|
let Z = g;
|
|
5984
5984
|
if (this.tokens.links && g.includes("[")) {
|
|
@@ -6006,7 +6006,7 @@ ${V}`, A = A.substring(0, A.length - a.text.length) + o.text;
|
|
|
6006
6006
|
}
|
|
6007
6007
|
A || (d = ""), A = !1;
|
|
6008
6008
|
let s;
|
|
6009
|
-
if ((
|
|
6009
|
+
if ((i = (b = this.options.extensions) == null ? void 0 : b.inline) != null && i.some((V) => (s = V.call({ lexer: this }, g, C)) ? (g = g.substring(s.raw.length), C.push(s), !0) : !1)) continue;
|
|
6010
6010
|
if (s = this.tokenizer.escape(g)) {
|
|
6011
6011
|
g = g.substring(s.raw.length), C.push(s);
|
|
6012
6012
|
continue;
|
|
@@ -6465,8 +6465,8 @@ ${I}</tr>
|
|
|
6465
6465
|
if (["options", "parser"].includes(d)) continue;
|
|
6466
6466
|
let l = d, c = C.renderer[l], G = A[l];
|
|
6467
6467
|
A[l] = (...b) => {
|
|
6468
|
-
let
|
|
6469
|
-
return
|
|
6468
|
+
let i = c.apply(A, b);
|
|
6469
|
+
return i === !1 && (i = G.apply(A, b)), i || "";
|
|
6470
6470
|
};
|
|
6471
6471
|
}
|
|
6472
6472
|
Z.renderer = A;
|
|
@@ -6478,8 +6478,8 @@ ${I}</tr>
|
|
|
6478
6478
|
if (["options", "rules", "lexer"].includes(d)) continue;
|
|
6479
6479
|
let l = d, c = C.tokenizer[l], G = A[l];
|
|
6480
6480
|
A[l] = (...b) => {
|
|
6481
|
-
let
|
|
6482
|
-
return
|
|
6481
|
+
let i = c.apply(A, b);
|
|
6482
|
+
return i === !1 && (i = G.apply(A, b)), i;
|
|
6483
6483
|
};
|
|
6484
6484
|
}
|
|
6485
6485
|
Z.tokenizer = A;
|
|
@@ -6495,15 +6495,15 @@ ${I}</tr>
|
|
|
6495
6495
|
let w = await c.call(A, b);
|
|
6496
6496
|
return G.call(A, w);
|
|
6497
6497
|
})();
|
|
6498
|
-
let
|
|
6499
|
-
return G.call(A,
|
|
6498
|
+
let i = c.call(A, b);
|
|
6499
|
+
return G.call(A, i);
|
|
6500
6500
|
} : A[l] = (...b) => {
|
|
6501
6501
|
if (this.defaults.async) return (async () => {
|
|
6502
6502
|
let w = await c.apply(A, b);
|
|
6503
6503
|
return w === !1 && (w = await G.apply(A, b)), w;
|
|
6504
6504
|
})();
|
|
6505
|
-
let
|
|
6506
|
-
return
|
|
6505
|
+
let i = c.apply(A, b);
|
|
6506
|
+
return i === !1 && (i = G.apply(A, b)), i;
|
|
6507
6507
|
};
|
|
6508
6508
|
}
|
|
6509
6509
|
Z.hooks = A;
|
|
@@ -6608,8 +6608,8 @@ function vY(I, g) {
|
|
|
6608
6608
|
var Z, A, d, l, c = [], G = !0, b = !1;
|
|
6609
6609
|
try {
|
|
6610
6610
|
if (d = (C = C.call(I)).next, g !== 0) for (; !(G = (Z = d.call(C)).done) && (c.push(Z.value), c.length !== g); G = !0) ;
|
|
6611
|
-
} catch (
|
|
6612
|
-
b = !0, A =
|
|
6611
|
+
} catch (i) {
|
|
6612
|
+
b = !0, A = i;
|
|
6613
6613
|
} finally {
|
|
6614
6614
|
try {
|
|
6615
6615
|
if (!G && C.return != null && (l = C.return(), Object(l) !== l)) return;
|
|
@@ -6668,7 +6668,7 @@ function As(I) {
|
|
|
6668
6668
|
return $C(I, C);
|
|
6669
6669
|
};
|
|
6670
6670
|
}
|
|
6671
|
-
function
|
|
6671
|
+
function lI(I, g) {
|
|
6672
6672
|
let C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : zg;
|
|
6673
6673
|
if (HZ && HZ(I, null), !hg(g))
|
|
6674
6674
|
return I;
|
|
@@ -6771,7 +6771,7 @@ const SZ = VI(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
|
|
|
6771
6771
|
documentFragment: 11,
|
|
6772
6772
|
notation: 12
|
|
6773
6773
|
// Deprecated
|
|
6774
|
-
}, hl = ["style", "script", "xmp", "iframe", "noembed", "noframes", "plaintext", "noscript"], os = VI(
|
|
6774
|
+
}, hl = ["style", "script", "xmp", "iframe", "noembed", "noframes", "plaintext", "noscript"], os = VI(lI({}, hl)), hs = (function() {
|
|
6775
6775
|
const I = {};
|
|
6776
6776
|
return lg(hl, (g) => {
|
|
6777
6777
|
I[g] = XI(new RegExp("</" + g + "(?=[\\t\\n\\f\\r />])", "i"));
|
|
@@ -6810,7 +6810,7 @@ const SZ = VI(["a", "abbr", "acronym", "address", "area", "article", "aside", "a
|
|
|
6810
6810
|
uponSanitizeShadowNode: []
|
|
6811
6811
|
};
|
|
6812
6812
|
}, qI = function(g, C, Z, A) {
|
|
6813
|
-
return MI(g, C) && hg(g[C]) ?
|
|
6813
|
+
return MI(g, C) && hg(g[C]) ? lI(A.base ? SI(A.base) : {}, g[C], A.transform) : Z;
|
|
6814
6814
|
}, eC = function(g, C, Z) {
|
|
6815
6815
|
const A = MI(g, C) ? g[C] : void 0;
|
|
6816
6816
|
return A && typeof A == "object" ? SI(A) : Z();
|
|
@@ -6825,7 +6825,7 @@ function al() {
|
|
|
6825
6825
|
I.DocumentFragment;
|
|
6826
6826
|
const d = I.HTMLTemplateElement, l = I.Node, c = I.Element, G = I.NodeFilter, b = I.NamedNodeMap;
|
|
6827
6827
|
b === void 0 && (I.NamedNodeMap || I.MozNamedAttrMap), I.HTMLFormElement;
|
|
6828
|
-
const
|
|
6828
|
+
const i = I.DOMParser, w = I.trustedTypes, s = c.prototype, a = zI(s, "cloneNode"), V = zI(s, "remove"), X = zI(s, "nextSibling"), o = zI(s, "childNodes"), S = zI(s, "parentNode"), k = zI(s, "shadowRoot"), L = zI(s, "attributes"), K = l && l.prototype ? zI(l.prototype, "nodeType") : null, e = l && l.prototype ? zI(l.prototype, "nodeName") : null, y = l && l.prototype ? zI(l.prototype, "ownerDocument") : null, p = function(B) {
|
|
6829
6829
|
return K ? K(B) : B.nodeType;
|
|
6830
6830
|
}, J = function(B) {
|
|
6831
6831
|
return e ? e(B) : B.nodeName;
|
|
@@ -6859,9 +6859,9 @@ function al() {
|
|
|
6859
6859
|
g.isSupported = typeof Xl == "function" && typeof S == "function" && HI && HI.createHTMLDocument !== void 0;
|
|
6860
6860
|
const Hl = bs, yl = ms, ul = is, nl = Ws, Ml = Bs, Kl = Ys, wA = ss, Sl = Vs;
|
|
6861
6861
|
let VA = JZ, iI = null;
|
|
6862
|
-
const sC =
|
|
6862
|
+
const sC = lI({}, [...SZ, ...pC, ...JC, ...zC, ...DZ]);
|
|
6863
6863
|
let WI = null;
|
|
6864
|
-
const wC =
|
|
6864
|
+
const wC = lI({}, [...FZ, ...kC, ...pZ, ...CC]);
|
|
6865
6865
|
let tI = Object.seal(Xg(null, {
|
|
6866
6866
|
tagNameCheck: {
|
|
6867
6867
|
writable: !0,
|
|
@@ -6899,7 +6899,7 @@ function al() {
|
|
|
6899
6899
|
let XA = !0, VC = !0, oA = !1, hA = !0, PI = !1, gg = !0, Cg = !1, NC = !1, jg = null, Qg = null, XC = !1, Wg = !1, Ug = !1, vg = !1, aA = !0, RA = !1;
|
|
6900
6900
|
const HA = "user-content-";
|
|
6901
6901
|
let oC = !0, hC = !1, Bg = {}, Yg = null;
|
|
6902
|
-
const yA =
|
|
6902
|
+
const yA = lI({}, [
|
|
6903
6903
|
"annotation-xml",
|
|
6904
6904
|
"audio",
|
|
6905
6905
|
"colgroup",
|
|
@@ -6937,15 +6937,15 @@ function al() {
|
|
|
6937
6937
|
"xmp"
|
|
6938
6938
|
]);
|
|
6939
6939
|
let uA = null;
|
|
6940
|
-
const nA =
|
|
6940
|
+
const nA = lI({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
6941
6941
|
let MA = null;
|
|
6942
|
-
const KA =
|
|
6942
|
+
const KA = lI({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Og = "http://www.w3.org/1998/Math/MathML", Eg = "http://www.w3.org/2000/svg", TI = "http://www.w3.org/1999/xhtml";
|
|
6943
6943
|
let sg = TI, aC = !1, RC = null;
|
|
6944
|
-
const Dl =
|
|
6945
|
-
let HC =
|
|
6944
|
+
const Dl = lI({}, [Og, Eg, TI], FC), SA = VI(["mi", "mo", "mn", "ms", "mtext"]);
|
|
6945
|
+
let HC = lI({}, SA);
|
|
6946
6946
|
const DA = VI(["annotation-xml"]);
|
|
6947
|
-
let yC =
|
|
6948
|
-
const Fl =
|
|
6947
|
+
let yC = lI({}, DA);
|
|
6948
|
+
const Fl = lI({}, ["title", "style", "font", "a", "script"]);
|
|
6949
6949
|
let ug = null;
|
|
6950
6950
|
const pl = ["application/xhtml+xml", "text/html"], Jl = "text/html";
|
|
6951
6951
|
let YI = null, wg = null;
|
|
@@ -6977,16 +6977,16 @@ function al() {
|
|
|
6977
6977
|
}), Bg = MI(B, "USE_PROFILES") ? B.USE_PROFILES && typeof B.USE_PROFILES == "object" ? SI(B.USE_PROFILES) : B.USE_PROFILES : !1, XA = B.ALLOW_ARIA_ATTR !== !1, VC = B.ALLOW_DATA_ATTR !== !1, oA = B.ALLOW_UNKNOWN_PROTOCOLS || !1, hA = B.ALLOW_SELF_CLOSE_IN_ATTR !== !1, PI = B.SAFE_FOR_TEMPLATES || !1, gg = B.SAFE_FOR_XML !== !1, Cg = B.WHOLE_DOCUMENT || !1, Wg = B.RETURN_DOM || !1, Ug = B.RETURN_DOM_FRAGMENT || !1, vg = B.RETURN_TRUSTED_TYPE || !1, XC = B.FORCE_BODY || !1, aA = B.SANITIZE_DOM !== !1, RA = B.SANITIZE_NAMED_PROPS || !1, oC = B.KEEP_CONTENT !== !1, hC = B.IN_PLACE || !1, VA = ds(B.ALLOWED_URI_REGEXP) ? B.ALLOWED_URI_REGEXP : JZ, sg = typeof B.NAMESPACE == "string" ? B.NAMESPACE : TI, HC = eC(
|
|
6978
6978
|
B,
|
|
6979
6979
|
"MATHML_TEXT_INTEGRATION_POINTS",
|
|
6980
|
-
() =>
|
|
6980
|
+
() => lI({}, SA)
|
|
6981
6981
|
// Default built-in map
|
|
6982
6982
|
), yC = eC(
|
|
6983
6983
|
B,
|
|
6984
6984
|
"HTML_INTEGRATION_POINTS",
|
|
6985
|
-
() =>
|
|
6985
|
+
() => lI({}, DA)
|
|
6986
6986
|
// Default built-in map
|
|
6987
6987
|
);
|
|
6988
6988
|
const N = eC(B, "CUSTOM_ELEMENT_HANDLING", () => Xg(null));
|
|
6989
|
-
if (tI = Xg(null), MI(N, "tagNameCheck") && FA(N.tagNameCheck) && (tI.tagNameCheck = N.tagNameCheck), MI(N, "attributeNameCheck") && FA(N.attributeNameCheck) && (tI.attributeNameCheck = N.attributeNameCheck), MI(N, "allowCustomizedBuiltInElements") && typeof N.allowCustomizedBuiltInElements == "boolean" && (tI.allowCustomizedBuiltInElements = N.allowCustomizedBuiltInElements), XI(tI), PI && (VC = !1), Ug && (Wg = !0), Bg && (iI =
|
|
6989
|
+
if (tI = Xg(null), MI(N, "tagNameCheck") && FA(N.tagNameCheck) && (tI.tagNameCheck = N.tagNameCheck), MI(N, "attributeNameCheck") && FA(N.attributeNameCheck) && (tI.attributeNameCheck = N.attributeNameCheck), MI(N, "allowCustomizedBuiltInElements") && typeof N.allowCustomizedBuiltInElements == "boolean" && (tI.allowCustomizedBuiltInElements = N.allowCustomizedBuiltInElements), XI(tI), PI && (VC = !1), Ug && (Wg = !0), Bg && (iI = lI({}, DZ), WI = Xg(null), Bg.html === !0 && (lI(iI, SZ), lI(WI, FZ)), Bg.svg === !0 && (lI(iI, pC), lI(WI, kC), lI(WI, CC)), Bg.svgFilters === !0 && (lI(iI, JC), lI(WI, kC), lI(WI, CC)), Bg.mathMl === !0 && (lI(iI, zC), lI(WI, pZ), lI(WI, CC))), EI.tagCheck = null, EI.attributeCheck = null, MI(B, "ADD_TAGS") && (typeof B.ADD_TAGS == "function" ? EI.tagCheck = B.ADD_TAGS : hg(B.ADD_TAGS) && (iI === sC && (iI = SI(iI)), lI(iI, B.ADD_TAGS, YI))), MI(B, "ADD_ATTR") && (typeof B.ADD_ATTR == "function" ? EI.attributeCheck = B.ADD_ATTR : hg(B.ADD_ATTR) && (WI === wC && (WI = SI(WI)), lI(WI, B.ADD_ATTR, YI))), MI(B, "ADD_FORBID_CONTENTS") && hg(B.ADD_FORBID_CONTENTS) && (Yg === yA && (Yg = SI(Yg)), lI(Yg, B.ADD_FORBID_CONTENTS, YI)), oC && (iI["#text"] = !0), Cg && lI(iI, ["html", "head", "body"]), iI.table && (lI(iI, ["tbody"]), delete yg.tbody), B.TRUSTED_TYPES_POLICY) {
|
|
6990
6990
|
if (typeof B.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
6991
6991
|
throw Zg('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
6992
6992
|
if (typeof B.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -7000,7 +7000,7 @@ function al() {
|
|
|
7000
7000
|
}
|
|
7001
7001
|
} else B.TRUSTED_TYPES_POLICY === null ? (R = void 0, z = "") : (R === void 0 && (R = r()), R && typeof z == "string" && (z = FI("")));
|
|
7002
7002
|
VI && VI(B), wg = B;
|
|
7003
|
-
}, pA =
|
|
7003
|
+
}, pA = lI({}, [...pC, ...JC, ...Gs]), JA = lI({}, [...zC, ...cs]), kl = function(B, N, M) {
|
|
7004
7004
|
return N.namespaceURI === TI ? B === "svg" : N.namespaceURI === Og ? B === "svg" && (M === "annotation-xml" || HC[M]) : !!pA[B];
|
|
7005
7005
|
}, el = function(B, N, M) {
|
|
7006
7006
|
return N.namespaceURI === TI ? B === "math" : N.namespaceURI === Eg ? B === "math" && yC[M] : !!JA[B];
|
|
@@ -7139,7 +7139,7 @@ function al() {
|
|
|
7139
7139
|
const T = R ? FI(B) : B;
|
|
7140
7140
|
if (sg === TI)
|
|
7141
7141
|
try {
|
|
7142
|
-
N = new
|
|
7142
|
+
N = new i().parseFromString(T, ug);
|
|
7143
7143
|
} catch {
|
|
7144
7144
|
}
|
|
7145
7145
|
if (!N || !N.documentElement) {
|
|
@@ -7295,7 +7295,7 @@ function al() {
|
|
|
7295
7295
|
// allowed.
|
|
7296
7296
|
N === "is" && tI.allowCustomizedBuiltInElements && _g(tI.tagNameCheck, M)
|
|
7297
7297
|
);
|
|
7298
|
-
}, Ul =
|
|
7298
|
+
}, Ul = lI({}, ["annotation-xml", "color-profile", "font-face", "font-face-format", "font-face-name", "font-face-src", "font-face-uri", "missing-glyph"]), QA = function(B) {
|
|
7299
7299
|
return !Ul[zg(B)] && hI(Sl, B);
|
|
7300
7300
|
}, vl = function(B, N, M, T) {
|
|
7301
7301
|
if (R && typeof w == "object" && typeof w.getAttributeType == "function" && !M)
|
|
@@ -7515,8 +7515,8 @@ function ys(I) {
|
|
|
7515
7515
|
language: "json"
|
|
7516
7516
|
}), d = !0;
|
|
7517
7517
|
else if (A[1] !== void 0) {
|
|
7518
|
-
const b = (A[1] || "text").trim() || "text",
|
|
7519
|
-
LZ(g, b,
|
|
7518
|
+
const b = (A[1] || "text").trim() || "text", i = (A[2] || "").replace(/^\n/, "").replace(/\n$/, "");
|
|
7519
|
+
LZ(g, b, i);
|
|
7520
7520
|
} else
|
|
7521
7521
|
LZ(g, "text", (A[3] || "").trim());
|
|
7522
7522
|
Z = A.index + A[0].length;
|
|
@@ -7567,27 +7567,27 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7567
7567
|
G && ((b = navigator.clipboard) == null || b.writeText(G));
|
|
7568
7568
|
}
|
|
7569
7569
|
function c(G) {
|
|
7570
|
-
const b = G.isJson || G.language === "json" ? "json" : G.language && G.language !== "text" ? G.language.replace(/[^a-z0-9]+/gi, "") : "txt",
|
|
7570
|
+
const b = G.isJson || G.language === "json" ? "json" : G.language && G.language !== "text" ? G.language.replace(/[^a-z0-9]+/gi, "") : "txt", i = new Blob([G.display], { type: "text/plain;charset=utf-8" }), w = URL.createObjectURL(i), s = document.createElement("a");
|
|
7571
7571
|
s.href = w, s.download = `result.${b || "txt"}`, s.click(), URL.revokeObjectURL(w);
|
|
7572
7572
|
}
|
|
7573
|
-
return (G, b) => (
|
|
7574
|
-
(
|
|
7575
|
-
|
|
7573
|
+
return (G, b) => (m(), W("div", ns, [
|
|
7574
|
+
(m(!0), W(Q, null, q(C.value, (i, w) => (m(), W(Q, { key: w }, [
|
|
7575
|
+
i.type === "text" ? (m(), W("div", {
|
|
7576
7576
|
key: 0,
|
|
7577
7577
|
class: "apf-md-block",
|
|
7578
|
-
innerHTML:
|
|
7579
|
-
}, null, 8, Ms)) :
|
|
7578
|
+
innerHTML: $(us)(i.content)
|
|
7579
|
+
}, null, 8, Ms)) : i.type === "artifact" ? (m(), W("div", {
|
|
7580
7580
|
key: 1,
|
|
7581
|
-
class: u(["apf-artifact-card", { "apf-json":
|
|
7581
|
+
class: u(["apf-artifact-card", { "apf-json": i.isJson }])
|
|
7582
7582
|
}, [
|
|
7583
7583
|
Y("div", Ks, [
|
|
7584
|
-
Y("span", Ss, "工件 · " + h(d(
|
|
7584
|
+
Y("span", Ss, "工件 · " + h(d(i)), 1),
|
|
7585
7585
|
Y("div", Ds, [
|
|
7586
7586
|
Y("button", {
|
|
7587
7587
|
class: "apf-icon-btn",
|
|
7588
7588
|
type: "button",
|
|
7589
7589
|
"aria-label": "复制",
|
|
7590
|
-
onClick: (s) => l(
|
|
7590
|
+
onClick: (s) => l(i.display)
|
|
7591
7591
|
}, [...b[0] || (b[0] = [
|
|
7592
7592
|
Y("svg", {
|
|
7593
7593
|
viewBox: "0 0 16 16",
|
|
@@ -7617,7 +7617,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7617
7617
|
class: "apf-icon-btn",
|
|
7618
7618
|
type: "button",
|
|
7619
7619
|
"aria-label": "下载",
|
|
7620
|
-
onClick: (s) => c(
|
|
7620
|
+
onClick: (s) => c(i)
|
|
7621
7621
|
}, [...b[1] || (b[1] = [
|
|
7622
7622
|
Y("svg", {
|
|
7623
7623
|
viewBox: "0 0 16 16",
|
|
@@ -7637,20 +7637,20 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7637
7637
|
])
|
|
7638
7638
|
]),
|
|
7639
7639
|
Y("pre", Js, [
|
|
7640
|
-
Y("code", null, h(
|
|
7640
|
+
Y("code", null, h(i.display), 1)
|
|
7641
7641
|
])
|
|
7642
|
-
], 2)) : (
|
|
7642
|
+
], 2)) : (m(), W("div", {
|
|
7643
7643
|
key: 2,
|
|
7644
|
-
class: u(["apf-code-wrap", { "apf-json":
|
|
7644
|
+
class: u(["apf-code-wrap", { "apf-json": i.isJson }])
|
|
7645
7645
|
}, [
|
|
7646
7646
|
Y("div", zs, [
|
|
7647
|
-
Y("span", ks, h(d(
|
|
7647
|
+
Y("span", ks, h(d(i)), 1),
|
|
7648
7648
|
Y("div", es, [
|
|
7649
7649
|
Y("button", {
|
|
7650
7650
|
class: "apf-icon-btn",
|
|
7651
7651
|
type: "button",
|
|
7652
7652
|
"aria-label": "复制",
|
|
7653
|
-
onClick: (s) => l(
|
|
7653
|
+
onClick: (s) => l(i.display)
|
|
7654
7654
|
}, [...b[2] || (b[2] = [
|
|
7655
7655
|
Y("svg", {
|
|
7656
7656
|
viewBox: "0 0 16 16",
|
|
@@ -7680,7 +7680,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7680
7680
|
class: "apf-icon-btn",
|
|
7681
7681
|
type: "button",
|
|
7682
7682
|
"aria-label": "下载",
|
|
7683
|
-
onClick: (s) => c(
|
|
7683
|
+
onClick: (s) => c(i)
|
|
7684
7684
|
}, [...b[3] || (b[3] = [
|
|
7685
7685
|
Y("svg", {
|
|
7686
7686
|
viewBox: "0 0 16 16",
|
|
@@ -7700,7 +7700,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7700
7700
|
])
|
|
7701
7701
|
]),
|
|
7702
7702
|
Y("pre", Ts, [
|
|
7703
|
-
Y("code", null, h(
|
|
7703
|
+
Y("code", null, h(i.display), 1)
|
|
7704
7704
|
])
|
|
7705
7705
|
], 2))
|
|
7706
7706
|
], 64))), 128))
|
|
@@ -7725,48 +7725,48 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7725
7725
|
}
|
|
7726
7726
|
return (c, G) => {
|
|
7727
7727
|
var b;
|
|
7728
|
-
return (b = I.attachments) != null && b.length ? (
|
|
7729
|
-
A.value.length ? (
|
|
7728
|
+
return (b = I.attachments) != null && b.length ? (m(), W("div", Qs, [
|
|
7729
|
+
A.value.length ? (m(), W("div", {
|
|
7730
7730
|
key: 0,
|
|
7731
7731
|
class: u(["apf-image-grid", { "apf-multi": A.value.length > 1 }])
|
|
7732
7732
|
}, [
|
|
7733
|
-
(
|
|
7734
|
-
key:
|
|
7733
|
+
(m(!0), W(Q, null, q(A.value, (i) => (m(), W("button", {
|
|
7734
|
+
key: i.id,
|
|
7735
7735
|
type: "button",
|
|
7736
7736
|
class: "apf-att-image",
|
|
7737
|
-
"aria-label": `预览图片 ${
|
|
7738
|
-
onClick: (w) => l(
|
|
7737
|
+
"aria-label": `预览图片 ${i.filename}`,
|
|
7738
|
+
onClick: (w) => l(i)
|
|
7739
7739
|
}, [
|
|
7740
7740
|
Y("img", {
|
|
7741
|
-
src:
|
|
7742
|
-
alt:
|
|
7741
|
+
src: i.url,
|
|
7742
|
+
alt: i.filename,
|
|
7743
7743
|
loading: "lazy"
|
|
7744
7744
|
}, null, 8, vs)
|
|
7745
7745
|
], 8, Us))), 128))
|
|
7746
7746
|
], 2)) : H("", !0),
|
|
7747
|
-
(
|
|
7748
|
-
key:
|
|
7747
|
+
(m(!0), W(Q, null, q(d.value, (i) => (m(), W("button", {
|
|
7748
|
+
key: i.id,
|
|
7749
7749
|
type: "button",
|
|
7750
7750
|
class: "apf-att-file",
|
|
7751
|
-
"aria-label": `${
|
|
7752
|
-
onClick: (w) => l(
|
|
7751
|
+
"aria-label": `${$(Lg)(i) ? "预览" : $(WZ)(i) ? "查看" : "打开"} ${i.filename}`,
|
|
7752
|
+
onClick: (w) => l(i)
|
|
7753
7753
|
}, [
|
|
7754
|
-
Y("span", Es, h(
|
|
7754
|
+
Y("span", Es, h($(lA)(i)), 1),
|
|
7755
7755
|
Y("span", Ps, [
|
|
7756
|
-
Y("strong", null, h(
|
|
7756
|
+
Y("strong", null, h(i.filename), 1),
|
|
7757
7757
|
Y("small", null, [
|
|
7758
|
-
|
|
7759
|
-
gI(h(
|
|
7758
|
+
i.size ? (m(), W(Q, { key: 0 }, [
|
|
7759
|
+
gI(h($(dA)(i.size)), 1)
|
|
7760
7760
|
], 64)) : H("", !0),
|
|
7761
|
-
|
|
7761
|
+
$(Lg)(i) ? (m(), W(Q, { key: 1 }, [
|
|
7762
7762
|
gI(" · 点击预览")
|
|
7763
|
-
], 64)) :
|
|
7763
|
+
], 64)) : $(WZ)(i) ? (m(), W(Q, { key: 2 }, [
|
|
7764
7764
|
gI(" · 点击查看")
|
|
7765
|
-
], 64)) : (
|
|
7765
|
+
], 64)) : (m(), W(Q, { key: 3 }, [
|
|
7766
7766
|
gI(" · 点击打开")
|
|
7767
7767
|
], 64))
|
|
7768
7768
|
]),
|
|
7769
|
-
|
|
7769
|
+
i.excerpt ? (m(), W("em", rs, h(i.excerpt), 1)) : H("", !0)
|
|
7770
7770
|
])
|
|
7771
7771
|
], 8, Os))), 128))
|
|
7772
7772
|
])) : H("", !0);
|
|
@@ -7794,11 +7794,11 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7794
7794
|
var b;
|
|
7795
7795
|
if (!((b = C.attachments) != null && b.length)) return null;
|
|
7796
7796
|
if (c.attachmentId) {
|
|
7797
|
-
const
|
|
7798
|
-
if (
|
|
7797
|
+
const i = C.attachments.find((w) => w.id === c.attachmentId);
|
|
7798
|
+
if (i) return i;
|
|
7799
7799
|
}
|
|
7800
7800
|
const G = (c.filename || "").toLowerCase();
|
|
7801
|
-
return C.attachments.find((
|
|
7801
|
+
return C.attachments.find((i) => (i.filename || "").toLowerCase() === G) || null;
|
|
7802
7802
|
}
|
|
7803
7803
|
function d(c) {
|
|
7804
7804
|
const G = A(c);
|
|
@@ -7809,17 +7809,17 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7809
7809
|
}
|
|
7810
7810
|
return (c, G) => {
|
|
7811
7811
|
var b;
|
|
7812
|
-
return (b = I.summaries) != null && b.length ? (
|
|
7813
|
-
(
|
|
7814
|
-
key:
|
|
7815
|
-
class: u(["apf-doc-card", { "apf-clickable": l(
|
|
7816
|
-
role: l(
|
|
7817
|
-
tabindex: l(
|
|
7818
|
-
"aria-label": l(
|
|
7819
|
-
onClick: (w) => d(
|
|
7812
|
+
return (b = I.summaries) != null && b.length ? (m(), W("div", _s, [
|
|
7813
|
+
(m(!0), W(Q, null, q(I.summaries, (i) => (m(), W("article", {
|
|
7814
|
+
key: i.documentId,
|
|
7815
|
+
class: u(["apf-doc-card", { "apf-clickable": l(i) }]),
|
|
7816
|
+
role: l(i) ? "button" : void 0,
|
|
7817
|
+
tabindex: l(i) ? 0 : void 0,
|
|
7818
|
+
"aria-label": l(i) ? `预览 ${i.filename}` : void 0,
|
|
7819
|
+
onClick: (w) => d(i),
|
|
7820
7820
|
onKeydown: [
|
|
7821
|
-
QC((w) => d(
|
|
7822
|
-
QC(UI((w) => d(
|
|
7821
|
+
QC((w) => d(i), ["enter"]),
|
|
7822
|
+
QC(UI((w) => d(i), ["prevent"]), ["space"])
|
|
7823
7823
|
]
|
|
7824
7824
|
}, [
|
|
7825
7825
|
G[0] || (G[0] = Y("div", {
|
|
@@ -7848,10 +7848,10 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7848
7848
|
])
|
|
7849
7849
|
], -1)),
|
|
7850
7850
|
Y("div", I2, [
|
|
7851
|
-
Y("strong", g2, h(
|
|
7852
|
-
Y("p", C2, h(
|
|
7853
|
-
|
|
7854
|
-
l(
|
|
7851
|
+
Y("strong", g2, h(i.filename), 1),
|
|
7852
|
+
Y("p", C2, h(i.summary), 1),
|
|
7853
|
+
i.pageCount ? (m(), W("span", A2, h(i.pageCount) + " 页", 1)) : H("", !0),
|
|
7854
|
+
l(i) ? H("", !0) : (m(), W("span", Z2, "无对应附件,请从附件列表打开"))
|
|
7855
7855
|
])
|
|
7856
7856
|
], 42, $s))), 128))
|
|
7857
7857
|
])) : H("", !0);
|
|
@@ -7891,14 +7891,14 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7891
7891
|
}), b = n(() => !G.value.length || !C.attachment ? -1 : G.value.findIndex((D) => {
|
|
7892
7892
|
var f;
|
|
7893
7893
|
return D.id === ((f = C.attachment) == null ? void 0 : f.id);
|
|
7894
|
-
})),
|
|
7894
|
+
})), i = n(() => b.value > 0), w = n(
|
|
7895
7895
|
() => b.value >= 0 && b.value < G.value.length - 1
|
|
7896
7896
|
), s = t(1), a = t(null), V = t(null), X = t(null);
|
|
7897
7897
|
function o() {
|
|
7898
7898
|
A.value = !1;
|
|
7899
7899
|
}
|
|
7900
7900
|
function S() {
|
|
7901
|
-
if (!
|
|
7901
|
+
if (!i.value) return;
|
|
7902
7902
|
const D = G.value[b.value - 1];
|
|
7903
7903
|
D && Z("update:attachment", D);
|
|
7904
7904
|
}
|
|
@@ -7933,7 +7933,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7933
7933
|
D.preventDefault(), o();
|
|
7934
7934
|
return;
|
|
7935
7935
|
}
|
|
7936
|
-
if (D.key === "ArrowLeft" &&
|
|
7936
|
+
if (D.key === "ArrowLeft" && i.value) {
|
|
7937
7937
|
D.preventDefault(), S();
|
|
7938
7938
|
return;
|
|
7939
7939
|
}
|
|
@@ -7986,8 +7986,8 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
7986
7986
|
function z(D) {
|
|
7987
7987
|
l.value && (D.preventDefault(), D.deltaY < 0 ? L() : K());
|
|
7988
7988
|
}
|
|
7989
|
-
return (D, f) => (
|
|
7990
|
-
A.value && I.attachment ? (
|
|
7989
|
+
return (D, f) => (m(), x(QZ, { to: "body" }, [
|
|
7990
|
+
A.value && I.attachment ? (m(), W("div", {
|
|
7991
7991
|
key: 0,
|
|
7992
7992
|
class: "apf-preview-mask",
|
|
7993
7993
|
role: "dialog",
|
|
@@ -8008,7 +8008,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8008
8008
|
Y("header", c2, [
|
|
8009
8009
|
Y("strong", b2, h(I.attachment.filename), 1),
|
|
8010
8010
|
Y("div", m2, [
|
|
8011
|
-
l.value ? (
|
|
8011
|
+
l.value ? (m(), W(Q, { key: 0 }, [
|
|
8012
8012
|
Y("button", {
|
|
8013
8013
|
type: "button",
|
|
8014
8014
|
class: "apf-preview-action-btn",
|
|
@@ -8028,14 +8028,14 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8028
8028
|
onClick: L
|
|
8029
8029
|
}, "+")
|
|
8030
8030
|
], 64)) : H("", !0),
|
|
8031
|
-
d(I.attachment) ? (
|
|
8031
|
+
d(I.attachment) ? (m(), W("a", {
|
|
8032
8032
|
key: 1,
|
|
8033
8033
|
href: d(I.attachment),
|
|
8034
8034
|
target: "_blank",
|
|
8035
8035
|
rel: "noopener",
|
|
8036
8036
|
class: "apf-preview-action-btn"
|
|
8037
8037
|
}, h(c.value ? "新窗口打开" : l.value ? "打开原图" : "打开原文件"), 9, i2)) : H("", !0),
|
|
8038
|
-
d(I.attachment) ? (
|
|
8038
|
+
d(I.attachment) ? (m(), W("button", {
|
|
8039
8039
|
key: 2,
|
|
8040
8040
|
type: "button",
|
|
8041
8041
|
class: "apf-preview-action-btn",
|
|
@@ -8051,55 +8051,55 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8051
8051
|
}, " 关闭 ", 512)
|
|
8052
8052
|
])
|
|
8053
8053
|
]),
|
|
8054
|
-
l.value ? (
|
|
8054
|
+
l.value ? (m(), W("div", {
|
|
8055
8055
|
key: 0,
|
|
8056
8056
|
class: "apf-preview-body apf-preview-body-image",
|
|
8057
8057
|
onWheel: UI(z, ["prevent"])
|
|
8058
8058
|
}, [
|
|
8059
|
-
|
|
8059
|
+
i.value ? (m(), W("button", {
|
|
8060
8060
|
key: 0,
|
|
8061
8061
|
type: "button",
|
|
8062
8062
|
class: "apf-gallery-btn apf-gallery-prev",
|
|
8063
8063
|
"aria-label": "上一张图片",
|
|
8064
8064
|
onClick: S
|
|
8065
8065
|
}, " ‹ ")) : H("", !0),
|
|
8066
|
-
d(I.attachment) ? (
|
|
8066
|
+
d(I.attachment) ? (m(), W("img", {
|
|
8067
8067
|
key: 1,
|
|
8068
8068
|
src: d(I.attachment),
|
|
8069
8069
|
alt: I.attachment.filename,
|
|
8070
8070
|
class: "apf-preview-img",
|
|
8071
|
-
style:
|
|
8071
|
+
style: dI({ transform: `scale(${s.value})` })
|
|
8072
8072
|
}, null, 12, W2)) : H("", !0),
|
|
8073
|
-
w.value ? (
|
|
8073
|
+
w.value ? (m(), W("button", {
|
|
8074
8074
|
key: 2,
|
|
8075
8075
|
type: "button",
|
|
8076
8076
|
class: "apf-gallery-btn apf-gallery-next",
|
|
8077
8077
|
"aria-label": "下一张图片",
|
|
8078
8078
|
onClick: k
|
|
8079
8079
|
}, " › ")) : H("", !0),
|
|
8080
|
-
G.value.length > 1 ? (
|
|
8081
|
-
], 32)) : c.value ? (
|
|
8082
|
-
d(I.attachment) ? (
|
|
8080
|
+
G.value.length > 1 ? (m(), W("div", B2, h(b.value + 1) + " / " + h(G.value.length), 1)) : H("", !0)
|
|
8081
|
+
], 32)) : c.value ? (m(), W("div", Y2, [
|
|
8082
|
+
d(I.attachment) ? (m(), x(cl, {
|
|
8083
8083
|
key: 0,
|
|
8084
8084
|
url: d(I.attachment),
|
|
8085
8085
|
title: I.attachment.filename,
|
|
8086
8086
|
"min-height": "70vh"
|
|
8087
8087
|
}, null, 8, ["url", "title"])) : H("", !0)
|
|
8088
|
-
])) : (
|
|
8088
|
+
])) : (m(), W("div", s2, [
|
|
8089
8089
|
Y("div", w2, [
|
|
8090
|
-
Y("span", V2, h(
|
|
8090
|
+
Y("span", V2, h($(lA)(I.attachment)), 1),
|
|
8091
8091
|
Y("strong", N2, h(I.attachment.filename), 1),
|
|
8092
|
-
I.attachment.size ? (
|
|
8092
|
+
I.attachment.size ? (m(), W("p", X2, h($(dA)(I.attachment.size)), 1)) : H("", !0),
|
|
8093
8093
|
f[2] || (f[2] = Y("p", { class: "apf-degraded-hint" }, "此格式暂不支持应用内预览", -1)),
|
|
8094
8094
|
Y("div", o2, [
|
|
8095
|
-
d(I.attachment) ? (
|
|
8095
|
+
d(I.attachment) ? (m(), W("a", {
|
|
8096
8096
|
key: 0,
|
|
8097
8097
|
href: d(I.attachment),
|
|
8098
8098
|
target: "_blank",
|
|
8099
8099
|
rel: "noopener",
|
|
8100
8100
|
class: "apf-preview-action-btn apf-preview-action-primary"
|
|
8101
8101
|
}, " 打开原文件 ", 8, h2)) : H("", !0),
|
|
8102
|
-
d(I.attachment) ? (
|
|
8102
|
+
d(I.attachment) ? (m(), W("button", {
|
|
8103
8103
|
key: 1,
|
|
8104
8104
|
type: "button",
|
|
8105
8105
|
class: "apf-preview-action-btn apf-preview-action-primary",
|
|
@@ -8175,7 +8175,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8175
8175
|
}
|
|
8176
8176
|
return E;
|
|
8177
8177
|
}), b = n(() => G.value.filter(Rg));
|
|
8178
|
-
function
|
|
8178
|
+
function i(E) {
|
|
8179
8179
|
c.value = E, l.value = !0, Z("preview", E);
|
|
8180
8180
|
}
|
|
8181
8181
|
const w = n(() => C.message.role === "user"), s = n(() => C.message.role === "assistant");
|
|
@@ -8267,49 +8267,49 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8267
8267
|
}
|
|
8268
8268
|
return (E, r) => {
|
|
8269
8269
|
var oI, HI, pI, OI, Ig;
|
|
8270
|
-
return
|
|
8270
|
+
return m(), W("div", {
|
|
8271
8271
|
class: u(["apf-message", [I.message.role, I.message.status && s.value ? `apf-st-${I.message.status}` : ""]])
|
|
8272
8272
|
}, [
|
|
8273
|
-
s.value && I.brandMark ? (
|
|
8273
|
+
s.value && I.brandMark ? (m(), x(vZ(I.brandMark), {
|
|
8274
8274
|
key: 0,
|
|
8275
8275
|
variant: "ai",
|
|
8276
8276
|
size: "sm"
|
|
8277
8277
|
})) : H("", !0),
|
|
8278
8278
|
Y("div", u2, [
|
|
8279
|
-
!d.value && s.value && I.message.tip ? (
|
|
8280
|
-
k.value ? (
|
|
8279
|
+
!d.value && s.value && I.message.tip ? (m(), W("p", n2, h(I.message.tip), 1)) : H("", !0),
|
|
8280
|
+
k.value ? (m(), W("div", M2, [...r[4] || (r[4] = [
|
|
8281
8281
|
Y("span", { class: "apf-status-text" }, "正在处理", -1),
|
|
8282
8282
|
Y("span", { class: "apf-dots" }, [
|
|
8283
8283
|
Y("i"),
|
|
8284
8284
|
Y("i"),
|
|
8285
8285
|
Y("i")
|
|
8286
8286
|
], -1)
|
|
8287
|
-
])])) : L.value ? (
|
|
8287
|
+
])])) : L.value ? (m(), W("div", K2, [
|
|
8288
8288
|
Y("div", {
|
|
8289
8289
|
class: u(["apf-bubble apf-message-content", K.value])
|
|
8290
8290
|
}, [
|
|
8291
|
-
!d.value && ((oI = I.message.attachments) != null && oI.length) ? (
|
|
8291
|
+
!d.value && ((oI = I.message.attachments) != null && oI.length) ? (m(), x(qs, {
|
|
8292
8292
|
key: 0,
|
|
8293
8293
|
attachments: I.message.attachments,
|
|
8294
|
-
onPreview:
|
|
8294
|
+
onPreview: i
|
|
8295
8295
|
}, null, 8, ["attachments"])) : H("", !0),
|
|
8296
|
-
|
|
8297
|
-
|
|
8298
|
-
S.value ? (
|
|
8296
|
+
ZI(E.$slots, "content", {}, () => [
|
|
8297
|
+
ZI(E.$slots, "default", {}, () => [
|
|
8298
|
+
S.value ? (m(), x(js, {
|
|
8299
8299
|
key: 0,
|
|
8300
8300
|
content: S.value
|
|
8301
8301
|
}, null, 8, ["content"])) : H("", !0)
|
|
8302
8302
|
], !0)
|
|
8303
8303
|
], !0),
|
|
8304
|
-
!d.value && ((HI = I.message.documentSummaries) != null && HI.length) ? (
|
|
8304
|
+
!d.value && ((HI = I.message.documentSummaries) != null && HI.length) ? (m(), x(d2, {
|
|
8305
8305
|
key: 1,
|
|
8306
8306
|
summaries: I.message.documentSummaries,
|
|
8307
8307
|
attachments: G.value,
|
|
8308
|
-
onPreview:
|
|
8308
|
+
onPreview: i
|
|
8309
8309
|
}, null, 8, ["summaries", "attachments"])) : H("", !0),
|
|
8310
|
-
!d.value && s.value && I.message.status === "RUNNING" && S.value ? (
|
|
8310
|
+
!d.value && s.value && I.message.status === "RUNNING" && S.value ? (m(), W("p", S2, "仍在处理…")) : H("", !0)
|
|
8311
8311
|
], 2),
|
|
8312
|
-
!d.value && s.value && I.message.status === "COMPLETED" ? (
|
|
8312
|
+
!d.value && s.value && I.message.status === "COMPLETED" ? (m(), W("div", D2, [
|
|
8313
8313
|
Y("button", {
|
|
8314
8314
|
class: "apf-icon-btn",
|
|
8315
8315
|
type: "button",
|
|
@@ -8361,14 +8361,14 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8361
8361
|
})
|
|
8362
8362
|
], -1)
|
|
8363
8363
|
])]),
|
|
8364
|
-
I.message.thinking || (pI = I.message.toolCalls) != null && pI.length ? (
|
|
8364
|
+
I.message.thinking || (pI = I.message.toolCalls) != null && pI.length ? (m(), W("button", {
|
|
8365
8365
|
key: 0,
|
|
8366
8366
|
class: "apf-text-link",
|
|
8367
8367
|
type: "button",
|
|
8368
8368
|
onClick: r[0] || (r[0] = (sI) => Z("open-process"))
|
|
8369
8369
|
}, "处理信息")) : H("", !0)
|
|
8370
8370
|
])) : H("", !0),
|
|
8371
|
-
!d.value && s.value && I.message.status === "FAILED" ? (
|
|
8371
|
+
!d.value && s.value && I.message.status === "FAILED" ? (m(), W("div", F2, [
|
|
8372
8372
|
Y("button", {
|
|
8373
8373
|
class: "apf-icon-btn",
|
|
8374
8374
|
type: "button",
|
|
@@ -8405,8 +8405,8 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8405
8405
|
], -1)
|
|
8406
8406
|
])])
|
|
8407
8407
|
])) : H("", !0)
|
|
8408
|
-
])) : !d.value && s.value && I.message.status === "WAITING_INPUT" && !L.value ? (
|
|
8409
|
-
d.value ? H("", !0) : (
|
|
8408
|
+
])) : !d.value && s.value && I.message.status === "WAITING_INPUT" && !L.value ? (m(), W("div", p2, "请在下方确认后继续。")) : !d.value && s.value && I.message.status === "FAILED" && !L.value ? (m(), W("div", J2, "处理失败")) : !d.value && s.value && I.message.status === "CANCELLED" && !L.value ? (m(), W("div", z2, "已取消")) : H("", !0),
|
|
8409
|
+
d.value ? H("", !0) : (m(), x(y2, {
|
|
8410
8410
|
key: 6,
|
|
8411
8411
|
modelValue: l.value,
|
|
8412
8412
|
"onUpdate:modelValue": r[2] || (r[2] = (sI) => l.value = sI),
|
|
@@ -8414,7 +8414,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8414
8414
|
"onUpdate:attachment": r[3] || (r[3] = (sI) => c.value = sI),
|
|
8415
8415
|
gallery: b.value
|
|
8416
8416
|
}, null, 8, ["modelValue", "attachment", "gallery"])),
|
|
8417
|
-
!d.value && s.value && ((OI = I.message.thinking) != null && OI.trim()) ? (
|
|
8417
|
+
!d.value && s.value && ((OI = I.message.thinking) != null && OI.trim()) ? (m(), W("div", {
|
|
8418
8418
|
key: 7,
|
|
8419
8419
|
class: u(["apf-detail-block", { open: z.value, streaming: AI.value }])
|
|
8420
8420
|
}, [
|
|
@@ -8426,7 +8426,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8426
8426
|
}, [
|
|
8427
8427
|
r[8] || (r[8] = Y("span", { class: "apf-chevron" }, null, -1)),
|
|
8428
8428
|
r[9] || (r[9] = Y("span", null, "思考过程", -1)),
|
|
8429
|
-
AI.value ? (
|
|
8429
|
+
AI.value ? (m(), W("span", e2)) : H("", !0)
|
|
8430
8430
|
], 8, k2),
|
|
8431
8431
|
Y("div", L2, [
|
|
8432
8432
|
Y("div", t2, [
|
|
@@ -8436,7 +8436,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8436
8436
|
])
|
|
8437
8437
|
])
|
|
8438
8438
|
], 2)) : H("", !0),
|
|
8439
|
-
!d.value && s.value && ((Ig = I.message.toolCalls) != null && Ig.length) ? (
|
|
8439
|
+
!d.value && s.value && ((Ig = I.message.toolCalls) != null && Ig.length) ? (m(), W("div", {
|
|
8440
8440
|
key: 8,
|
|
8441
8441
|
class: u(["apf-detail-block", { open: f.value }])
|
|
8442
8442
|
}, [
|
|
@@ -8451,7 +8451,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8451
8451
|
], 8, T2),
|
|
8452
8452
|
Y("div", x2, [
|
|
8453
8453
|
Y("div", j2, [
|
|
8454
|
-
(
|
|
8454
|
+
(m(!0), W(Q, null, q(I.message.toolCalls, (sI) => (m(), W("div", {
|
|
8455
8455
|
key: sI.id || sI.name,
|
|
8456
8456
|
class: "apf-tool-row"
|
|
8457
8457
|
}, [
|
|
@@ -8463,29 +8463,29 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8463
8463
|
])
|
|
8464
8464
|
])
|
|
8465
8465
|
], 2)) : H("", !0),
|
|
8466
|
-
d.value ? H("", !0) : (
|
|
8467
|
-
s.value && I.message.status !== "COMPLETED" && I.message.status !== "CANCELLED" ? (
|
|
8466
|
+
d.value ? H("", !0) : (m(), W(Q, { key: 9 }, [
|
|
8467
|
+
s.value && I.message.status !== "COMPLETED" && I.message.status !== "CANCELLED" ? (m(), W("span", {
|
|
8468
8468
|
key: 0,
|
|
8469
8469
|
class: u(["apf-chip", V(I.message.status)])
|
|
8470
8470
|
}, [
|
|
8471
8471
|
r[11] || (r[11] = Y("i", null, null, -1)),
|
|
8472
8472
|
gI(h(a(I.message.status)), 1)
|
|
8473
|
-
], 2)) : s.value && I.message.status === "COMPLETED" ? (
|
|
8473
|
+
], 2)) : s.value && I.message.status === "COMPLETED" ? (m(), W("span", Q2, [...r[12] || (r[12] = [
|
|
8474
8474
|
Y("i", null, null, -1),
|
|
8475
8475
|
gI("已完成", -1)
|
|
8476
8476
|
])])) : H("", !0)
|
|
8477
8477
|
], 64)),
|
|
8478
|
-
!d.value && o.value ? (
|
|
8478
|
+
!d.value && o.value ? (m(), W("div", {
|
|
8479
8479
|
key: 10,
|
|
8480
8480
|
class: u(["apf-inline-approval", { "apf-dangerous-approval": o.value.dangerous }])
|
|
8481
8481
|
}, [
|
|
8482
8482
|
Y("div", U2, [
|
|
8483
8483
|
r[13] || (r[13] = Y("span", { class: "apf-approval-title" }, "需要你的确认", -1)),
|
|
8484
|
-
o.value.dangerous ? (
|
|
8484
|
+
o.value.dangerous ? (m(), W("span", v2, "需谨慎")) : H("", !0)
|
|
8485
8485
|
]),
|
|
8486
8486
|
Y("p", O2, h(o.value.prompt), 1),
|
|
8487
8487
|
Y("div", E2, [
|
|
8488
|
-
(
|
|
8488
|
+
(m(!0), W(Q, null, q(o.value.actions, (sI) => (m(), W("button", {
|
|
8489
8489
|
key: sI.action,
|
|
8490
8490
|
type: "button",
|
|
8491
8491
|
class: u(["apf-approval-btn", sI.style === "danger" ? "apf-approval-btn-danger" : "apf-approval-btn-primary"]),
|
|
@@ -8525,12 +8525,12 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8525
8525
|
function d(l) {
|
|
8526
8526
|
return !C.currentRun || !l.runtimeExecutionId ? null : C.currentRun.runtimeExecutionId === l.runtimeExecutionId ? C.currentRun : null;
|
|
8527
8527
|
}
|
|
8528
|
-
return (l, c) => (
|
|
8528
|
+
return (l, c) => (m(), W("div", {
|
|
8529
8529
|
ref_key: "container",
|
|
8530
8530
|
ref: A,
|
|
8531
8531
|
class: "apf-message-list"
|
|
8532
8532
|
}, [
|
|
8533
|
-
I.loading && !I.messages.length ? (
|
|
8533
|
+
I.loading && !I.messages.length ? (m(), W("div", q2, [...c[4] || (c[4] = [
|
|
8534
8534
|
Y("div", {
|
|
8535
8535
|
class: "apf-skeleton",
|
|
8536
8536
|
style: { height: "var(--icon-size-sm, 14px)", width: "60%" }
|
|
@@ -8540,14 +8540,14 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8540
8540
|
style: { height: "var(--icon-size-sm, 14px)", width: "45%", "margin-top": "var(--spacing-sm, 8px)" }
|
|
8541
8541
|
}, null, -1)
|
|
8542
8542
|
])])) : H("", !0),
|
|
8543
|
-
(
|
|
8543
|
+
(m(!0), W(Q, null, q(I.messages, (G) => (m(), x(f2, {
|
|
8544
8544
|
key: G.id,
|
|
8545
8545
|
message: G,
|
|
8546
8546
|
run: d(G),
|
|
8547
8547
|
sending: !!I.sending,
|
|
8548
8548
|
"brand-mark": I.brandMark,
|
|
8549
8549
|
"session-messages": I.messages,
|
|
8550
|
-
onResume: c[0] || (c[0] = (b,
|
|
8550
|
+
onResume: c[0] || (c[0] = (b, i) => Z("resume", b, i)),
|
|
8551
8551
|
onCancel: c[1] || (c[1] = (b) => Z("cancel")),
|
|
8552
8552
|
onRetry: c[2] || (c[2] = (b) => Z("retry")),
|
|
8553
8553
|
onOpenProcess: (b) => Z("open-process", G),
|
|
@@ -8555,7 +8555,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8555
8555
|
}, null, 8, ["message", "run", "sending", "brand-mark", "session-messages", "onOpenProcess"]))), 128))
|
|
8556
8556
|
], 512));
|
|
8557
8557
|
}
|
|
8558
|
-
}),
|
|
8558
|
+
}), mN = /* @__PURE__ */ U(_2, [["__scopeId", "data-v-0957f79a"]]), $2 = {
|
|
8559
8559
|
key: 0,
|
|
8560
8560
|
class: "apf-pending-list"
|
|
8561
8561
|
}, Iw = ["src"], gw = { class: "apf-pending-name" }, Cw = {
|
|
@@ -8590,7 +8590,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8590
8590
|
},
|
|
8591
8591
|
emits: ["send", "upload", "remove-attachment", "ws-click"],
|
|
8592
8592
|
setup(I, { emit: g }) {
|
|
8593
|
-
const C = I, Z = g, A = t(""), d = t(null), l = t(null), c = t([]), G = t(!1), b = rZ(),
|
|
8593
|
+
const C = I, Z = g, A = t(""), d = t(null), l = t(null), c = t([]), G = t(!1), b = rZ(), i = n(() => C.supportedInputs || ["text"]), w = n(() => i.value.some((p) => p === "file" || p === "image" || p === "document")), s = n(() => !!b.input), a = n(() => !C.hideDefaultInput && !s.value), V = n(() => !C.hideSend), X = n(() => w.value && !C.hideFileButton), o = n(() => {
|
|
8594
8594
|
if (C.disabled || G.value) return !1;
|
|
8595
8595
|
const p = !!A.value.trim(), J = c.value.some((z) => z.status === "done"), R = c.value.some((z) => z.status === "uploading");
|
|
8596
8596
|
return (p || J) && !R;
|
|
@@ -8629,27 +8629,27 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8629
8629
|
c.value.forEach((p) => {
|
|
8630
8630
|
p.previewUrl && URL.revokeObjectURL(p.previewUrl);
|
|
8631
8631
|
});
|
|
8632
|
-
}), (p, J) => (
|
|
8632
|
+
}), (p, J) => (m(), W("form", {
|
|
8633
8633
|
class: u(["apf-composer", { "apf-composer-stretch": I.stretch }]),
|
|
8634
8634
|
onSubmit: UI(K, ["prevent"])
|
|
8635
8635
|
}, [
|
|
8636
8636
|
Y("div", {
|
|
8637
8637
|
class: u(["apf-composer-field", { "apf-disabled": I.disabled }])
|
|
8638
8638
|
}, [
|
|
8639
|
-
|
|
8640
|
-
c.value.length ? (
|
|
8641
|
-
(
|
|
8639
|
+
ZI(p.$slots, "pending", {}, () => [
|
|
8640
|
+
c.value.length ? (m(), W("div", $2, [
|
|
8641
|
+
(m(!0), W(Q, null, q(c.value, (R) => (m(), W("div", {
|
|
8642
8642
|
key: R.id,
|
|
8643
8643
|
class: u(["apf-pending-chip", R.status])
|
|
8644
8644
|
}, [
|
|
8645
|
-
R.previewUrl ? (
|
|
8645
|
+
R.previewUrl ? (m(), W("img", {
|
|
8646
8646
|
key: 0,
|
|
8647
8647
|
src: R.previewUrl,
|
|
8648
8648
|
alt: "",
|
|
8649
8649
|
class: "apf-pending-thumb"
|
|
8650
8650
|
}, null, 8, Iw)) : H("", !0),
|
|
8651
8651
|
Y("span", gw, h(R.filename), 1),
|
|
8652
|
-
R.status === "uploading" ? (
|
|
8652
|
+
R.status === "uploading" ? (m(), W("span", Cw, "上传中")) : R.status === "error" ? (m(), W("span", Aw, h(R.error || "失败"), 1)) : H("", !0),
|
|
8653
8653
|
Y("button", {
|
|
8654
8654
|
type: "button",
|
|
8655
8655
|
class: "apf-pending-remove",
|
|
@@ -8658,8 +8658,8 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8658
8658
|
], 2))), 128))
|
|
8659
8659
|
])) : H("", !0)
|
|
8660
8660
|
], !0),
|
|
8661
|
-
|
|
8662
|
-
a.value ? Gg((
|
|
8661
|
+
ZI(p.$slots, "input", {}, () => [
|
|
8662
|
+
a.value ? Gg((m(), W("textarea", {
|
|
8663
8663
|
key: 0,
|
|
8664
8664
|
ref_key: "textareaRef",
|
|
8665
8665
|
ref: d,
|
|
@@ -8674,7 +8674,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8674
8674
|
], !0),
|
|
8675
8675
|
Y("div", dw, [
|
|
8676
8676
|
Y("div", Gw, [
|
|
8677
|
-
|
|
8677
|
+
ZI(p.$slots, "tools", {}, void 0, !0),
|
|
8678
8678
|
Y("input", {
|
|
8679
8679
|
ref_key: "fileInputRef",
|
|
8680
8680
|
ref: l,
|
|
@@ -8684,7 +8684,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8684
8684
|
accept: "image/*,.pdf,.txt,.md,.csv,.json,.doc,.docx,.xls,.xlsx",
|
|
8685
8685
|
onChange: k
|
|
8686
8686
|
}, null, 544),
|
|
8687
|
-
X.value ? (
|
|
8687
|
+
X.value ? (m(), W("button", {
|
|
8688
8688
|
key: 0,
|
|
8689
8689
|
class: "apf-cap-btn",
|
|
8690
8690
|
type: "button",
|
|
@@ -8708,8 +8708,8 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8708
8708
|
], -1)
|
|
8709
8709
|
])], 8, cw)) : H("", !0)
|
|
8710
8710
|
]),
|
|
8711
|
-
|
|
8712
|
-
V.value ? (
|
|
8711
|
+
ZI(p.$slots, "actions", {}, () => [
|
|
8712
|
+
V.value ? (m(), W("button", {
|
|
8713
8713
|
key: 0,
|
|
8714
8714
|
type: "submit",
|
|
8715
8715
|
class: "apf-send-btn",
|
|
@@ -8719,14 +8719,14 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8719
8719
|
], !0)
|
|
8720
8720
|
])
|
|
8721
8721
|
], 2),
|
|
8722
|
-
I.hideMeta ? H("", !0) : (
|
|
8722
|
+
I.hideMeta ? H("", !0) : (m(), W("div", mw, [
|
|
8723
8723
|
Y("div", iw, [
|
|
8724
8724
|
J[3] || (J[3] = Y("span", { class: "apf-cap-chip" }, "文本", -1)),
|
|
8725
|
-
w.value ? (
|
|
8726
|
-
I.hitlCapable ? (
|
|
8725
|
+
w.value ? (m(), W("span", Ww, "文件")) : H("", !0),
|
|
8726
|
+
I.hitlCapable ? (m(), W("span", Bw, "需要确认")) : H("", !0)
|
|
8727
8727
|
]),
|
|
8728
8728
|
Y("div", Yw, [
|
|
8729
|
-
I.wsStatus ? (
|
|
8729
|
+
I.wsStatus ? (m(), W("button", {
|
|
8730
8730
|
key: 0,
|
|
8731
8731
|
type: "button",
|
|
8732
8732
|
class: u(["apf-ws-status", I.wsStatus]),
|
|
@@ -8739,7 +8739,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8739
8739
|
]))
|
|
8740
8740
|
], 34));
|
|
8741
8741
|
}
|
|
8742
|
-
}),
|
|
8742
|
+
}), iN = /* @__PURE__ */ U(sw, [["__scopeId", "data-v-e996c32a"]]), ww = {
|
|
8743
8743
|
key: 0,
|
|
8744
8744
|
class: "apf-run-bar"
|
|
8745
8745
|
}, Vw = { class: "apf-row" }, Nw = {
|
|
@@ -8768,10 +8768,10 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8768
8768
|
}
|
|
8769
8769
|
function c() {
|
|
8770
8770
|
if (!C.run) return "";
|
|
8771
|
-
const G = new Date(C.run.startedAt).getTime(), b = C.run.finishedAt ? new Date(C.run.finishedAt).getTime() : Date.now(),
|
|
8772
|
-
return
|
|
8771
|
+
const G = new Date(C.run.startedAt).getTime(), b = C.run.finishedAt ? new Date(C.run.finishedAt).getTime() : Date.now(), i = Math.round((b - G) / 1e3);
|
|
8772
|
+
return i < 60 ? i + "s" : Math.floor(i / 60) + "m " + i % 60 + "s";
|
|
8773
8773
|
}
|
|
8774
|
-
return (G, b) => I.run ? (
|
|
8774
|
+
return (G, b) => I.run ? (m(), W("div", ww, [
|
|
8775
8775
|
Y("div", Vw, [
|
|
8776
8776
|
Y("span", {
|
|
8777
8777
|
class: u(["apf-chip", l(A.value || "")])
|
|
@@ -8779,14 +8779,14 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8779
8779
|
b[1] || (b[1] = Y("i", null, null, -1)),
|
|
8780
8780
|
gI(h(d(A.value || "")), 1)
|
|
8781
8781
|
], 2),
|
|
8782
|
-
A.value === "RUNNING" || A.value === "WAITING_INPUT" ? (
|
|
8783
|
-
A.value === "RUNNING" ? (
|
|
8782
|
+
A.value === "RUNNING" || A.value === "WAITING_INPUT" ? (m(), W("span", Nw, h(c()), 1)) : H("", !0),
|
|
8783
|
+
A.value === "RUNNING" ? (m(), W("button", {
|
|
8784
8784
|
key: 1,
|
|
8785
8785
|
class: "apf-btn-cancel",
|
|
8786
|
-
onClick: b[0] || (b[0] = (
|
|
8786
|
+
onClick: b[0] || (b[0] = (i) => Z("cancel"))
|
|
8787
8787
|
}, "停止")) : H("", !0)
|
|
8788
8788
|
]),
|
|
8789
|
-
I.run.errorMessage ? (
|
|
8789
|
+
I.run.errorMessage ? (m(), W("p", Xw, h(I.run.errorMessage), 1)) : H("", !0)
|
|
8790
8790
|
])) : H("", !0);
|
|
8791
8791
|
}
|
|
8792
8792
|
}), hw = /* @__PURE__ */ U(ow, [["__scopeId", "data-v-33963f1d"]]), aw = { class: "apf-header" }, Rw = {
|
|
@@ -8804,38 +8804,38 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8804
8804
|
function A(d) {
|
|
8805
8805
|
C("resume", d, Z.value || void 0), Z.value = "";
|
|
8806
8806
|
}
|
|
8807
|
-
return (d, l) => I.waiting ? (
|
|
8807
|
+
return (d, l) => I.waiting ? (m(), W("div", {
|
|
8808
8808
|
key: 0,
|
|
8809
8809
|
class: u(["apf-approval-card", { "apf-dangerous": I.waiting.dangerous }])
|
|
8810
8810
|
}, [
|
|
8811
8811
|
Y("div", aw, [
|
|
8812
8812
|
l[3] || (l[3] = Y("span", { class: "apf-title" }, "需要你的操作", -1)),
|
|
8813
|
-
I.waiting.dangerous ? (
|
|
8813
|
+
I.waiting.dangerous ? (m(), W("span", Rw, "危险操作")) : H("", !0)
|
|
8814
8814
|
]),
|
|
8815
8815
|
Y("p", Hw, h(I.waiting.prompt), 1),
|
|
8816
|
-
(
|
|
8816
|
+
(m(!0), W(Q, null, q(I.waiting.fields, (c) => (m(), W("div", {
|
|
8817
8817
|
key: c.key,
|
|
8818
8818
|
class: "apf-field"
|
|
8819
8819
|
}, [
|
|
8820
8820
|
Y("label", null, h(c.label), 1),
|
|
8821
|
-
c.type === "textarea" ? Gg((
|
|
8821
|
+
c.type === "textarea" ? Gg((m(), W("textarea", {
|
|
8822
8822
|
key: 0,
|
|
8823
8823
|
"onUpdate:modelValue": l[0] || (l[0] = (G) => Z.value = G),
|
|
8824
8824
|
placeholder: "请输入" + c.label,
|
|
8825
8825
|
rows: "2"
|
|
8826
8826
|
}, null, 8, yw)), [
|
|
8827
8827
|
[UC, Z.value]
|
|
8828
|
-
]) : c.type === "select" && c.options.length ? Gg((
|
|
8828
|
+
]) : c.type === "select" && c.options.length ? Gg((m(), W("select", {
|
|
8829
8829
|
key: 1,
|
|
8830
8830
|
"onUpdate:modelValue": l[1] || (l[1] = (G) => Z.value = G)
|
|
8831
8831
|
}, [
|
|
8832
|
-
(
|
|
8832
|
+
(m(!0), W(Q, null, q(c.options, (G) => (m(), W("option", {
|
|
8833
8833
|
key: G,
|
|
8834
8834
|
value: G
|
|
8835
8835
|
}, h(G), 9, uw))), 128))
|
|
8836
8836
|
], 512)), [
|
|
8837
8837
|
[$l, Z.value]
|
|
8838
|
-
]) : Gg((
|
|
8838
|
+
]) : Gg((m(), W("input", {
|
|
8839
8839
|
key: 2,
|
|
8840
8840
|
"onUpdate:modelValue": l[2] || (l[2] = (G) => Z.value = G),
|
|
8841
8841
|
placeholder: "请输入" + c.label
|
|
@@ -8844,7 +8844,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8844
8844
|
])
|
|
8845
8845
|
]))), 128)),
|
|
8846
8846
|
Y("div", Mw, [
|
|
8847
|
-
(
|
|
8847
|
+
(m(!0), W(Q, null, q(I.waiting.actions, (c) => (m(), W("button", {
|
|
8848
8848
|
key: c.action,
|
|
8849
8849
|
class: u(["apf-btn", c.style === "danger" ? "apf-btn-danger" : "apf-btn-primary"]),
|
|
8850
8850
|
disabled: I.disabled,
|
|
@@ -8853,77 +8853,100 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8853
8853
|
])
|
|
8854
8854
|
], 2)) : H("", !0);
|
|
8855
8855
|
}
|
|
8856
|
-
}),
|
|
8856
|
+
}), WN = /* @__PURE__ */ U(Sw, [["__scopeId", "data-v-ca69b479"]]), Dw = {
|
|
8857
8857
|
class: "apf-session-sidebar",
|
|
8858
8858
|
"aria-label": "会话列表"
|
|
8859
|
-
}, Fw = { class: "apf-session-sidebar__head" }, pw = { class: "apf-session-
|
|
8859
|
+
}, Fw = { class: "apf-session-sidebar__head" }, pw = { class: "apf-session-sidebar__head-actions" }, Jw = { class: "apf-session-sidebar__list" }, zw = ["onClick"], kw = { class: "apf-session-sidebar__item-title" }, ew = { class: "apf-session-sidebar__item-meta" }, Lw = {
|
|
8860
8860
|
key: 0,
|
|
8861
8861
|
class: "apf-session-sidebar__empty"
|
|
8862
|
-
},
|
|
8862
|
+
}, tw = /* @__PURE__ */ j({
|
|
8863
8863
|
__name: "SessionSidebar",
|
|
8864
8864
|
props: {
|
|
8865
8865
|
sessions: {},
|
|
8866
8866
|
activeId: {},
|
|
8867
8867
|
loading: { type: Boolean },
|
|
8868
|
-
title: {}
|
|
8868
|
+
title: {},
|
|
8869
|
+
hideCreate: { type: Boolean },
|
|
8870
|
+
hideDelete: { type: Boolean },
|
|
8871
|
+
emptyText: {}
|
|
8869
8872
|
},
|
|
8870
8873
|
emits: ["select", "create", "delete"],
|
|
8871
8874
|
setup(I, { emit: g }) {
|
|
8872
8875
|
const C = g;
|
|
8873
8876
|
function Z(A) {
|
|
8874
8877
|
if (!A) return "";
|
|
8875
|
-
const d = new Date(A), l = (
|
|
8876
|
-
|
|
8878
|
+
const d = new Date(A), l = /* @__PURE__ */ new Date(), c = l.getTime() - d.getTime();
|
|
8879
|
+
if (c < 864e5 && d.getDate() === l.getDate())
|
|
8880
|
+
return d.toLocaleTimeString("zh-CN", { hour: "2-digit", minute: "2-digit" });
|
|
8881
|
+
const G = new Date(l);
|
|
8882
|
+
return G.setDate(G.getDate() - 1), d.getDate() === G.getDate() && d.getMonth() === G.getMonth() && d.getFullYear() === G.getFullYear() ? "昨天" : c < 6e4 ? "刚刚" : c < 36e5 ? `${Math.floor(c / 6e4)} 分钟前` : c < 864e5 ? `${Math.floor(c / 36e5)} 小时前` : d.toLocaleDateString("zh-CN", { month: "2-digit", day: "2-digit" });
|
|
8877
8883
|
}
|
|
8878
8884
|
return (A, d) => {
|
|
8879
8885
|
const l = _("el-button"), c = OZ("loading");
|
|
8880
|
-
return
|
|
8886
|
+
return m(), W("aside", Dw, [
|
|
8881
8887
|
Y("div", Fw, [
|
|
8882
8888
|
Y("strong", null, h(I.title || "会话"), 1),
|
|
8883
|
-
|
|
8884
|
-
|
|
8885
|
-
|
|
8886
|
-
|
|
8887
|
-
|
|
8888
|
-
|
|
8889
|
-
|
|
8890
|
-
|
|
8891
|
-
|
|
8892
|
-
|
|
8889
|
+
Y("div", pw, [
|
|
8890
|
+
ZI(A.$slots, "toolbar", {}, void 0, !0),
|
|
8891
|
+
I.hideCreate ? H("", !0) : (m(), x(l, {
|
|
8892
|
+
key: 0,
|
|
8893
|
+
type: "primary",
|
|
8894
|
+
size: "small",
|
|
8895
|
+
onClick: d[0] || (d[0] = (G) => C("create"))
|
|
8896
|
+
}, {
|
|
8897
|
+
default: O(() => [...d[2] || (d[2] = [
|
|
8898
|
+
gI("新建", -1)
|
|
8899
|
+
])]),
|
|
8900
|
+
_: 1
|
|
8901
|
+
}))
|
|
8902
|
+
])
|
|
8893
8903
|
]),
|
|
8894
|
-
Gg((
|
|
8895
|
-
(
|
|
8904
|
+
Gg((m(), W("div", Jw, [
|
|
8905
|
+
(m(!0), W(Q, null, q(I.sessions, (G) => (m(), W("button", {
|
|
8896
8906
|
key: G.id,
|
|
8897
8907
|
type: "button",
|
|
8898
8908
|
class: u(["apf-session-sidebar__item", { "is-active": G.id === I.activeId }]),
|
|
8899
8909
|
onClick: (b) => C("select", G.id)
|
|
8900
8910
|
}, [
|
|
8901
|
-
Y("span",
|
|
8902
|
-
Y("
|
|
8903
|
-
|
|
8904
|
-
|
|
8905
|
-
|
|
8906
|
-
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8911
|
+
Y("span", kw, h(G.title || "未命名会话"), 1),
|
|
8912
|
+
Y("div", ew, [
|
|
8913
|
+
ZI(A.$slots, "item-meta", { session: G }, () => [
|
|
8914
|
+
Y("small", null, h(Z(G.updatedAt || G.createdAt)), 1)
|
|
8915
|
+
], !0)
|
|
8916
|
+
]),
|
|
8917
|
+
Y("div", {
|
|
8918
|
+
class: "apf-session-sidebar__item-actions",
|
|
8919
|
+
onClick: d[1] || (d[1] = UI(() => {
|
|
8920
|
+
}, ["stop"]))
|
|
8921
|
+
}, [
|
|
8922
|
+
ZI(A.$slots, "item-actions", { session: G }, () => [
|
|
8923
|
+
I.hideDelete ? H("", !0) : (m(), x(l, {
|
|
8924
|
+
key: 0,
|
|
8925
|
+
class: "apf-session-sidebar__delete",
|
|
8926
|
+
link: "",
|
|
8927
|
+
type: "danger",
|
|
8928
|
+
size: "small",
|
|
8929
|
+
onClick: (b) => C("delete", G.id)
|
|
8930
|
+
}, {
|
|
8931
|
+
default: O(() => [...d[3] || (d[3] = [
|
|
8932
|
+
gI(" 删除 ", -1)
|
|
8933
|
+
])]),
|
|
8934
|
+
_: 1
|
|
8935
|
+
}, 8, ["onClick"]))
|
|
8936
|
+
], !0)
|
|
8937
|
+
])
|
|
8938
|
+
], 10, zw))), 128)),
|
|
8939
|
+
!I.loading && !I.sessions.length ? (m(), W("div", Lw, h(I.emptyText || "暂无会话"), 1)) : H("", !0)
|
|
8917
8940
|
])), [
|
|
8918
8941
|
[c, I.loading]
|
|
8919
8942
|
])
|
|
8920
8943
|
]);
|
|
8921
8944
|
};
|
|
8922
8945
|
}
|
|
8923
|
-
}),
|
|
8946
|
+
}), BN = /* @__PURE__ */ U(tw, [["__scopeId", "data-v-05d3ce80"]]), Tw = {
|
|
8924
8947
|
key: 0,
|
|
8925
8948
|
class: "apf-processing-drawer__subtitle"
|
|
8926
|
-
},
|
|
8949
|
+
}, xw = { class: "apf-processing-drawer__body" }, jw = /* @__PURE__ */ j({
|
|
8927
8950
|
__name: "ProcessingDrawer",
|
|
8928
8951
|
props: {
|
|
8929
8952
|
modelValue: { type: Boolean },
|
|
@@ -8937,7 +8960,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8937
8960
|
const C = g;
|
|
8938
8961
|
return (Z, A) => {
|
|
8939
8962
|
const d = _("el-drawer");
|
|
8940
|
-
return
|
|
8963
|
+
return m(), x(d, {
|
|
8941
8964
|
"model-value": I.modelValue,
|
|
8942
8965
|
title: I.title || "处理详情",
|
|
8943
8966
|
size: "380px",
|
|
@@ -8945,25 +8968,25 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8945
8968
|
"onUpdate:modelValue": A[1] || (A[1] = (l) => C("update:modelValue", l))
|
|
8946
8969
|
}, {
|
|
8947
8970
|
default: O(() => [
|
|
8948
|
-
I.subtitle ? (
|
|
8949
|
-
I.run ? (
|
|
8971
|
+
I.subtitle ? (m(), W("p", Tw, h(I.subtitle), 1)) : H("", !0),
|
|
8972
|
+
I.run ? (m(), x($(hw), {
|
|
8950
8973
|
key: 1,
|
|
8951
8974
|
run: I.run,
|
|
8952
8975
|
sending: I.sending ?? !1,
|
|
8953
8976
|
onCancel: A[0] || (A[0] = (l) => C("cancel"))
|
|
8954
8977
|
}, null, 8, ["run", "sending"])) : H("", !0),
|
|
8955
|
-
Y("div",
|
|
8956
|
-
|
|
8978
|
+
Y("div", xw, [
|
|
8979
|
+
ZI(Z.$slots, "default", {}, void 0, !0)
|
|
8957
8980
|
])
|
|
8958
8981
|
]),
|
|
8959
8982
|
_: 3
|
|
8960
8983
|
}, 8, ["model-value", "title"]);
|
|
8961
8984
|
};
|
|
8962
8985
|
}
|
|
8963
|
-
}),
|
|
8986
|
+
}), YN = /* @__PURE__ */ U(jw, [["__scopeId", "data-v-6036074a"]]), Qw = { class: "apf-conversation-header" }, Uw = { class: "apf-conversation-header__identity" }, vw = { class: "apf-conversation-header__copy" }, Ow = { class: "apf-conversation-header__label" }, Ew = { class: "apf-conversation-header__actions" }, Pw = {
|
|
8964
8987
|
key: 0,
|
|
8965
8988
|
class: "apf-conversation-header__processing"
|
|
8966
|
-
},
|
|
8989
|
+
}, rw = /* @__PURE__ */ j({
|
|
8967
8990
|
__name: "ConversationHeader",
|
|
8968
8991
|
props: {
|
|
8969
8992
|
title: {},
|
|
@@ -8974,15 +8997,15 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8974
8997
|
emits: ["changeAssistant", "toggleDetails", "create"],
|
|
8975
8998
|
setup(I, { emit: g }) {
|
|
8976
8999
|
const C = g;
|
|
8977
|
-
return (Z, A) => (
|
|
8978
|
-
Y("div",
|
|
8979
|
-
Y("div",
|
|
8980
|
-
Y("span",
|
|
9000
|
+
return (Z, A) => (m(), W("header", Qw, [
|
|
9001
|
+
Y("div", Uw, [
|
|
9002
|
+
Y("div", vw, [
|
|
9003
|
+
Y("span", Ow, h(I.label || "正在使用"), 1),
|
|
8981
9004
|
Y("strong", null, h(I.title || "选择一个智能体开始"), 1)
|
|
8982
9005
|
])
|
|
8983
9006
|
]),
|
|
8984
|
-
Y("div",
|
|
8985
|
-
I.processing ? (
|
|
9007
|
+
Y("div", Ew, [
|
|
9008
|
+
I.processing ? (m(), W("span", Pw, [...A[2] || (A[2] = [
|
|
8986
9009
|
Y("i", null, null, -1),
|
|
8987
9010
|
Y("span", null, "正在处理", -1)
|
|
8988
9011
|
])])) : H("", !0),
|
|
@@ -8991,7 +9014,7 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
8991
9014
|
class: "apf-conversation-header__btn",
|
|
8992
9015
|
onClick: A[0] || (A[0] = (d) => I.hasMessages ? C("create") : C("changeAssistant"))
|
|
8993
9016
|
}, h(I.hasMessages ? "新建对话" : "选择智能体"), 1),
|
|
8994
|
-
I.hasMessages ? (
|
|
9017
|
+
I.hasMessages ? (m(), W("button", {
|
|
8995
9018
|
key: 1,
|
|
8996
9019
|
type: "button",
|
|
8997
9020
|
class: "apf-conversation-header__btn",
|
|
@@ -9000,16 +9023,16 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
9000
9023
|
])
|
|
9001
9024
|
]));
|
|
9002
9025
|
}
|
|
9003
|
-
}),
|
|
9026
|
+
}), sN = /* @__PURE__ */ U(rw, [["__scopeId", "data-v-d93df7f9"]]), fw = { class: "apf-assistant-picker" }, qw = {
|
|
9004
9027
|
key: 0,
|
|
9005
9028
|
class: "apf-assistant-picker__state"
|
|
9006
|
-
},
|
|
9029
|
+
}, _w = {
|
|
9007
9030
|
key: 1,
|
|
9008
9031
|
class: "apf-assistant-picker__state apf-assistant-picker__state--error"
|
|
9009
|
-
},
|
|
9032
|
+
}, $w = {
|
|
9010
9033
|
key: 2,
|
|
9011
9034
|
class: "apf-assistant-picker__state"
|
|
9012
|
-
},
|
|
9035
|
+
}, IV = ["onClick"], gV = { class: "apf-assistant-picker__main" }, CV = { class: "apf-assistant-picker__icon-wrap" }, AV = { class: "apf-assistant-picker__info" }, ZV = { class: "apf-assistant-picker__caps" }, lV = /* @__PURE__ */ j({
|
|
9013
9036
|
__name: "AssistantPicker",
|
|
9014
9037
|
props: {
|
|
9015
9038
|
items: {},
|
|
@@ -9021,9 +9044,9 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
9021
9044
|
setup(I, { emit: g }) {
|
|
9022
9045
|
const C = I, Z = g;
|
|
9023
9046
|
function A(G) {
|
|
9024
|
-
var
|
|
9047
|
+
var i, w;
|
|
9025
9048
|
const b = ["文本"];
|
|
9026
|
-
return (
|
|
9049
|
+
return (i = G.supportedInputs) != null && i.includes("file") && b.push("文件"), (w = G.supportedInputs) != null && w.includes("image") && b.push("图片"), G.hitlCapable && b.push("需要确认"), b;
|
|
9027
9050
|
}
|
|
9028
9051
|
function d(G) {
|
|
9029
9052
|
return G.icon || "chat-dot-round";
|
|
@@ -9032,32 +9055,32 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
9032
9055
|
Z("update:modelValue", G.id), Z("select", G);
|
|
9033
9056
|
}
|
|
9034
9057
|
const c = n(() => !C.loading && !C.error && !C.items.length);
|
|
9035
|
-
return (G, b) => (
|
|
9036
|
-
I.loading ? (
|
|
9058
|
+
return (G, b) => (m(), W("div", fw, [
|
|
9059
|
+
I.loading ? (m(), W("div", qw, [...b[0] || (b[0] = [
|
|
9037
9060
|
Y("p", null, "正在加载智能体…", -1)
|
|
9038
|
-
])])) : I.error ? (
|
|
9061
|
+
])])) : I.error ? (m(), W("div", _w, [
|
|
9039
9062
|
Y("p", null, h(I.error), 1)
|
|
9040
|
-
])) : c.value ? (
|
|
9063
|
+
])) : c.value ? (m(), W("div", $w, [...b[1] || (b[1] = [
|
|
9041
9064
|
Y("p", null, "暂无可用智能体", -1)
|
|
9042
9065
|
])])) : H("", !0),
|
|
9043
|
-
(
|
|
9044
|
-
key:
|
|
9066
|
+
(m(!0), W(Q, null, q(I.items, (i) => (m(), W("button", {
|
|
9067
|
+
key: i.id,
|
|
9045
9068
|
type: "button",
|
|
9046
|
-
class: u(["apf-assistant-picker__item", { "is-active": I.modelValue ===
|
|
9047
|
-
onClick: (w) => l(
|
|
9069
|
+
class: u(["apf-assistant-picker__item", { "is-active": I.modelValue === i.id }]),
|
|
9070
|
+
onClick: (w) => l(i)
|
|
9048
9071
|
}, [
|
|
9049
|
-
Y("div",
|
|
9050
|
-
Y("span",
|
|
9051
|
-
$(
|
|
9052
|
-
name: d(
|
|
9072
|
+
Y("div", gV, [
|
|
9073
|
+
Y("span", CV, [
|
|
9074
|
+
II($(RI), {
|
|
9075
|
+
name: d(i),
|
|
9053
9076
|
size: 22
|
|
9054
9077
|
}, null, 8, ["name"])
|
|
9055
9078
|
]),
|
|
9056
|
-
Y("span",
|
|
9057
|
-
Y("b", null, h(
|
|
9058
|
-
Y("small", null, h(
|
|
9059
|
-
Y("span",
|
|
9060
|
-
(
|
|
9079
|
+
Y("span", AV, [
|
|
9080
|
+
Y("b", null, h(i.name), 1),
|
|
9081
|
+
Y("small", null, h(i.description || "适合处理一类明确任务"), 1),
|
|
9082
|
+
Y("span", ZV, [
|
|
9083
|
+
(m(!0), W(Q, null, q(A(i), (w) => (m(), W("span", {
|
|
9061
9084
|
key: w,
|
|
9062
9085
|
class: u(["apf-assistant-picker__cap", { "is-confirm": w === "需要确认" }])
|
|
9063
9086
|
}, h(w), 3))), 128))
|
|
@@ -9065,12 +9088,12 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
9065
9088
|
])
|
|
9066
9089
|
]),
|
|
9067
9090
|
Y("span", {
|
|
9068
|
-
class: u(["apf-assistant-picker__choose", { "is-selected": I.modelValue ===
|
|
9069
|
-
}, h(I.modelValue ===
|
|
9070
|
-
], 10,
|
|
9091
|
+
class: u(["apf-assistant-picker__choose", { "is-selected": I.modelValue === i.id }])
|
|
9092
|
+
}, h(I.modelValue === i.id ? "已选择" : "开始使用"), 3)
|
|
9093
|
+
], 10, IV))), 128))
|
|
9071
9094
|
]));
|
|
9072
9095
|
}
|
|
9073
|
-
}),
|
|
9096
|
+
}), wN = /* @__PURE__ */ U(lV, [["__scopeId", "data-v-f05e69c0"]]), dV = { class: "apf-model-picker" }, GV = /* @__PURE__ */ j({
|
|
9074
9097
|
__name: "ModelPicker",
|
|
9075
9098
|
props: {
|
|
9076
9099
|
models: {},
|
|
@@ -9082,26 +9105,26 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
9082
9105
|
const C = g;
|
|
9083
9106
|
return (Z, A) => {
|
|
9084
9107
|
const d = _("el-option"), l = _("el-select");
|
|
9085
|
-
return
|
|
9086
|
-
|
|
9108
|
+
return m(), W("label", dV, [
|
|
9109
|
+
II(l, {
|
|
9087
9110
|
"model-value": I.modelValue || void 0,
|
|
9088
9111
|
disabled: I.loading || !I.models.length,
|
|
9089
9112
|
placeholder: "选择模型",
|
|
9090
9113
|
"onUpdate:modelValue": A[0] || (A[0] = (c) => C("update:modelValue", c))
|
|
9091
9114
|
}, {
|
|
9092
9115
|
default: O(() => [
|
|
9093
|
-
I.loading ? (
|
|
9116
|
+
I.loading ? (m(), x(d, {
|
|
9094
9117
|
key: 0,
|
|
9095
9118
|
label: "正在加载模型…",
|
|
9096
9119
|
value: "",
|
|
9097
9120
|
disabled: ""
|
|
9098
|
-
})) : I.models.length ? H("", !0) : (
|
|
9121
|
+
})) : I.models.length ? H("", !0) : (m(), x(d, {
|
|
9099
9122
|
key: 1,
|
|
9100
9123
|
label: "暂无可用模型",
|
|
9101
9124
|
value: "",
|
|
9102
9125
|
disabled: ""
|
|
9103
9126
|
})),
|
|
9104
|
-
(
|
|
9127
|
+
(m(!0), W(Q, null, q(I.models, (c) => (m(), x(d, {
|
|
9105
9128
|
key: c.id,
|
|
9106
9129
|
label: `${c.name} · ${c.provider}`,
|
|
9107
9130
|
value: c.id
|
|
@@ -9112,11 +9135,11 @@ const ns = { class: "apf-message-parts" }, Ms = ["innerHTML"], Ks = { class: "ap
|
|
|
9112
9135
|
]);
|
|
9113
9136
|
};
|
|
9114
9137
|
}
|
|
9115
|
-
}),
|
|
9116
|
-
function
|
|
9138
|
+
}), VN = /* @__PURE__ */ U(GV, [["__scopeId", "data-v-483ae73d"]]), Rl = Symbol("fg-toast");
|
|
9139
|
+
function NN(I) {
|
|
9117
9140
|
return { [Rl]: I };
|
|
9118
9141
|
}
|
|
9119
|
-
function
|
|
9142
|
+
function XN() {
|
|
9120
9143
|
const I = Id(Rl);
|
|
9121
9144
|
return {
|
|
9122
9145
|
show(g, C = "info", Z) {
|
|
@@ -9141,7 +9164,7 @@ function VN() {
|
|
|
9141
9164
|
}
|
|
9142
9165
|
};
|
|
9143
9166
|
}
|
|
9144
|
-
function
|
|
9167
|
+
function oN() {
|
|
9145
9168
|
async function I(Z, A = {}) {
|
|
9146
9169
|
const {
|
|
9147
9170
|
title: d = "确认操作",
|
|
@@ -9182,7 +9205,7 @@ function NN() {
|
|
|
9182
9205
|
confirmDanger: C
|
|
9183
9206
|
};
|
|
9184
9207
|
}
|
|
9185
|
-
function
|
|
9208
|
+
function hN() {
|
|
9186
9209
|
return {
|
|
9187
9210
|
success(I, g = {}) {
|
|
9188
9211
|
IC({ message: I, type: "success", ...g });
|
|
@@ -9198,7 +9221,7 @@ function XN() {
|
|
|
9198
9221
|
}
|
|
9199
9222
|
};
|
|
9200
9223
|
}
|
|
9201
|
-
function
|
|
9224
|
+
function aN(I, g = 300) {
|
|
9202
9225
|
const C = t(null);
|
|
9203
9226
|
function Z(...A) {
|
|
9204
9227
|
C.value && clearTimeout(C.value), C.value = setTimeout(() => {
|
|
@@ -9209,7 +9232,7 @@ function oN(I, g = 300) {
|
|
|
9209
9232
|
C.value && clearTimeout(C.value);
|
|
9210
9233
|
}), Z;
|
|
9211
9234
|
}
|
|
9212
|
-
function
|
|
9235
|
+
function RN(I, g) {
|
|
9213
9236
|
var c;
|
|
9214
9237
|
const C = t(1), Z = t((g == null ? void 0 : g.initialPageSize) ?? Gl), A = n(() => {
|
|
9215
9238
|
const G = I.value, b = (C.value - 1) * Z.value;
|
|
@@ -9233,7 +9256,7 @@ function hN(I, g) {
|
|
|
9233
9256
|
resetPage: l
|
|
9234
9257
|
};
|
|
9235
9258
|
}
|
|
9236
|
-
function
|
|
9259
|
+
function HN(I = {}) {
|
|
9237
9260
|
const { timeout: g = 15e3, silentError: C = !1 } = I, Z = t(!1), A = t(null), d = t(!1), l = n(() => A.value !== null);
|
|
9238
9261
|
let c = null, G = 0;
|
|
9239
9262
|
function b() {
|
|
@@ -9241,7 +9264,7 @@ function aN(I = {}) {
|
|
|
9241
9264
|
d.value = !0;
|
|
9242
9265
|
}, g));
|
|
9243
9266
|
}
|
|
9244
|
-
function
|
|
9267
|
+
function i() {
|
|
9245
9268
|
G = Math.max(0, G - 1), G === 0 && (Z.value = !1, d.value = !1, c && (clearTimeout(c), c = null));
|
|
9246
9269
|
}
|
|
9247
9270
|
async function w(a) {
|
|
@@ -9251,7 +9274,7 @@ function aN(I = {}) {
|
|
|
9251
9274
|
} catch (V) {
|
|
9252
9275
|
return C || (A.value = V instanceof Error ? V.message : "加载失败"), null;
|
|
9253
9276
|
} finally {
|
|
9254
|
-
|
|
9277
|
+
i();
|
|
9255
9278
|
}
|
|
9256
9279
|
}
|
|
9257
9280
|
function s() {
|
|
@@ -9266,7 +9289,7 @@ function aN(I = {}) {
|
|
|
9266
9289
|
reset: s
|
|
9267
9290
|
};
|
|
9268
9291
|
}
|
|
9269
|
-
function
|
|
9292
|
+
function yN(I) {
|
|
9270
9293
|
const {
|
|
9271
9294
|
containerRef: g,
|
|
9272
9295
|
autoScroll: C = !0,
|
|
@@ -9295,7 +9318,7 @@ function RN(I) {
|
|
|
9295
9318
|
behavior: Z
|
|
9296
9319
|
});
|
|
9297
9320
|
}
|
|
9298
|
-
function
|
|
9321
|
+
function i() {
|
|
9299
9322
|
l.value = !0;
|
|
9300
9323
|
}
|
|
9301
9324
|
function w() {
|
|
@@ -9316,12 +9339,12 @@ function RN(I) {
|
|
|
9316
9339
|
isAtBottom: d,
|
|
9317
9340
|
autoScrollEnabled: l,
|
|
9318
9341
|
checkIfAtBottom: c,
|
|
9319
|
-
enableAutoScroll:
|
|
9342
|
+
enableAutoScroll: i,
|
|
9320
9343
|
disableAutoScroll: w
|
|
9321
9344
|
};
|
|
9322
9345
|
}
|
|
9323
9346
|
const tC = /* @__PURE__ */ new Map();
|
|
9324
|
-
function
|
|
9347
|
+
function uN(I) {
|
|
9325
9348
|
const {
|
|
9326
9349
|
url: g,
|
|
9327
9350
|
token: C,
|
|
@@ -9346,11 +9369,11 @@ function HN(I) {
|
|
|
9346
9369
|
token: C
|
|
9347
9370
|
}, tC.set(g, l)), l.refCount += 1, l.reconnectInterval = A, l.maxRetries = d, l.token = C;
|
|
9348
9371
|
const c = [], G = l.status, b = () => gd(Z);
|
|
9349
|
-
function
|
|
9372
|
+
function i() {
|
|
9350
9373
|
l && (l.pingTimer && clearInterval(l.pingTimer), l.pongTimer && clearTimeout(l.pongTimer), l.pingTimer = null, l.pongTimer = null);
|
|
9351
9374
|
}
|
|
9352
9375
|
function w() {
|
|
9353
|
-
l && (
|
|
9376
|
+
l && (i(), l.pingTimer = setInterval(() => {
|
|
9354
9377
|
!(l != null && l.ws) || l.ws.readyState !== WebSocket.OPEN || (l.ws.send(JSON.stringify({ action: "ping" })), l.pongTimer && clearTimeout(l.pongTimer), l.pongTimer = setTimeout(() => {
|
|
9355
9378
|
var K;
|
|
9356
9379
|
(K = l == null ? void 0 : l.ws) == null || K.close();
|
|
@@ -9432,7 +9455,7 @@ function HN(I) {
|
|
|
9432
9455
|
}, K.onerror = () => {
|
|
9433
9456
|
l && (l.status.value = "error");
|
|
9434
9457
|
}, K.onclose = () => {
|
|
9435
|
-
l && (
|
|
9458
|
+
l && (i(), l.ws = null, l.subscribedProjects.clear(), l.intentionalClose ? l.status.value = "closed" : (l.status.value = "closed", s()));
|
|
9436
9459
|
};
|
|
9437
9460
|
}
|
|
9438
9461
|
function S() {
|
|
@@ -9445,7 +9468,7 @@ function HN(I) {
|
|
|
9445
9468
|
}
|
|
9446
9469
|
function k() {
|
|
9447
9470
|
var K;
|
|
9448
|
-
l && (S(), l.refCount = Math.max(0, l.refCount - 1), !(l.refCount > 0) && (l.intentionalClose = !0, l.reconnectTimer && clearTimeout(l.reconnectTimer),
|
|
9471
|
+
l && (S(), l.refCount = Math.max(0, l.refCount - 1), !(l.refCount > 0) && (l.intentionalClose = !0, l.reconnectTimer && clearTimeout(l.reconnectTimer), i(), (K = l.ws) == null || K.close(), l.ws = null, l.status.value = "closed", tC.delete(g), l = void 0));
|
|
9449
9472
|
}
|
|
9450
9473
|
function L(K, e) {
|
|
9451
9474
|
var J;
|
|
@@ -9470,7 +9493,7 @@ function HN(I) {
|
|
|
9470
9493
|
k();
|
|
9471
9494
|
}), { status: G, connect: o, disconnect: k, on: L };
|
|
9472
9495
|
}
|
|
9473
|
-
function
|
|
9496
|
+
function nN(I) {
|
|
9474
9497
|
if (!I) return "操作失败";
|
|
9475
9498
|
if (typeof I == "string") return I;
|
|
9476
9499
|
if (I instanceof Error) return I.message || "操作失败";
|
|
@@ -9487,9 +9510,9 @@ function yN(I) {
|
|
|
9487
9510
|
}
|
|
9488
9511
|
return "操作失败";
|
|
9489
9512
|
}
|
|
9490
|
-
const
|
|
9513
|
+
const cV = /\/(?:schema-platform\/)?api\/ai\/documents\/([^/?#]+)\/file/i, TZ = /\.(mp4|webm|mov|m4v)(?:\?|#|$|\s)/i, bV = /\.(png|jpe?g|gif|webp|bmp|svg)(?:\?|#|$|\s)/i, TC = /\.pdf(?:\?|#|$|\s)/i, xC = /\.(docx?|xlsx?|csv|txt|md)(?:\?|#|$|\s)/i, xZ = /(?:https?:\/\/[^\s"'<>\]]+|\/(?:schema-platform\/)?api\/ai\/documents\/[^/\s"'<>\]]+\/file)/gi;
|
|
9491
9514
|
function kg(I) {
|
|
9492
|
-
const g = I.trim().match(
|
|
9515
|
+
const g = I.trim().match(cV);
|
|
9493
9516
|
if (g != null && g[1]) return g[1];
|
|
9494
9517
|
if (/^[0-9a-f]{24}$/i.test(I.trim())) return I.trim();
|
|
9495
9518
|
}
|
|
@@ -9504,7 +9527,7 @@ function og(I) {
|
|
|
9504
9527
|
return TC.test(c) || Z.includes("pdf") ? "pdf" : xC.test(c) || /word|sheet|excel|csv|text/.test(Z) ? "office" : "file";
|
|
9505
9528
|
}
|
|
9506
9529
|
const d = [g, C].filter(Boolean).join(" ").toLowerCase(), l = Z.toLowerCase();
|
|
9507
|
-
return l.startsWith("video/") || TZ.test(d) ? "video" : l.startsWith("image/") ||
|
|
9530
|
+
return l.startsWith("video/") || TZ.test(d) ? "video" : l.startsWith("image/") || bV.test(d) ? "image" : l.includes("pdf") || TC.test(d) ? "pdf" : xC.test(d) || l.includes("word") || l.includes("sheet") || l.includes("excel") || l.includes("csv") || l.startsWith("text/") ? "office" : kg(g) && !TC.test(g) && !xC.test(g) && !TZ.test(g) ? "image" : "file";
|
|
9508
9531
|
}
|
|
9509
9532
|
function _I(I, g, C) {
|
|
9510
9533
|
var A;
|
|
@@ -9526,7 +9549,7 @@ function jZ(I) {
|
|
|
9526
9549
|
}
|
|
9527
9550
|
return null;
|
|
9528
9551
|
}
|
|
9529
|
-
function
|
|
9552
|
+
function MN(I, g = "art") {
|
|
9530
9553
|
if (I == null) return [];
|
|
9531
9554
|
const C = [], Z = /* @__PURE__ */ new Set();
|
|
9532
9555
|
let A = 0;
|
|
@@ -9534,10 +9557,10 @@ function uN(I, g = "art") {
|
|
|
9534
9557
|
if (typeof I == "string") {
|
|
9535
9558
|
const G = I.match(xZ) ?? [];
|
|
9536
9559
|
for (const b of G) {
|
|
9537
|
-
const
|
|
9560
|
+
const i = og({ url: b });
|
|
9538
9561
|
_I(C, Z, {
|
|
9539
9562
|
id: d(),
|
|
9540
|
-
kind:
|
|
9563
|
+
kind: i,
|
|
9541
9564
|
url: b,
|
|
9542
9565
|
documentId: kg(b),
|
|
9543
9566
|
source: "text"
|
|
@@ -9564,12 +9587,12 @@ function uN(I, g = "art") {
|
|
|
9564
9587
|
documentId: kg(l.videoUrl),
|
|
9565
9588
|
source: "videoUrl"
|
|
9566
9589
|
});
|
|
9567
|
-
const c = (G, b,
|
|
9590
|
+
const c = (G, b, i) => {
|
|
9568
9591
|
if (Array.isArray(G))
|
|
9569
9592
|
for (const w of G) {
|
|
9570
9593
|
let s = "";
|
|
9571
9594
|
if (typeof w == "string" ? s = w : w && typeof w == "object" && "url" in w && (s = String(w.url ?? "")), !s.trim()) continue;
|
|
9572
|
-
const a = og({ url: s, hint:
|
|
9595
|
+
const a = og({ url: s, hint: i });
|
|
9573
9596
|
_I(C, Z, {
|
|
9574
9597
|
id: d(),
|
|
9575
9598
|
kind: a,
|
|
@@ -9599,8 +9622,8 @@ function uN(I, g = "art") {
|
|
|
9599
9622
|
for (const G of ["text", "message", "confirmMessage", "prompt"]) {
|
|
9600
9623
|
const b = l[G];
|
|
9601
9624
|
if (typeof b != "string" || !b.trim()) continue;
|
|
9602
|
-
const
|
|
9603
|
-
for (const w of
|
|
9625
|
+
const i = b.match(xZ) ?? [];
|
|
9626
|
+
for (const w of i)
|
|
9604
9627
|
_I(C, Z, {
|
|
9605
9628
|
id: d(),
|
|
9606
9629
|
kind: og({ url: w }),
|
|
@@ -9608,7 +9631,7 @@ function uN(I, g = "art") {
|
|
|
9608
9631
|
documentId: kg(w),
|
|
9609
9632
|
source: G
|
|
9610
9633
|
});
|
|
9611
|
-
if (!
|
|
9634
|
+
if (!i.length && (G === "text" || G === "message")) {
|
|
9612
9635
|
const w = G === "text" ? jZ(b) : null;
|
|
9613
9636
|
_I(C, Z, {
|
|
9614
9637
|
id: d(),
|
|
@@ -9621,7 +9644,7 @@ function uN(I, g = "art") {
|
|
|
9621
9644
|
}
|
|
9622
9645
|
return C;
|
|
9623
9646
|
}
|
|
9624
|
-
function
|
|
9647
|
+
function KN(I) {
|
|
9625
9648
|
return I.map((g, C) => {
|
|
9626
9649
|
const Z = og({
|
|
9627
9650
|
url: g.url,
|
|
@@ -9640,96 +9663,96 @@ function nN(I) {
|
|
|
9640
9663
|
};
|
|
9641
9664
|
});
|
|
9642
9665
|
}
|
|
9643
|
-
const
|
|
9666
|
+
const SN = "1.10.1", DN = "2.14.2", FN = "2026-08-27";
|
|
9644
9667
|
export {
|
|
9645
|
-
|
|
9646
|
-
|
|
9668
|
+
BV as APP_ICON_NAMES,
|
|
9669
|
+
eV as AVATAR_SIZE,
|
|
9647
9670
|
IA as AppDialog,
|
|
9648
9671
|
RI as AppIcon,
|
|
9649
|
-
|
|
9650
|
-
|
|
9651
|
-
|
|
9672
|
+
sV as AppPagination,
|
|
9673
|
+
yV as AppUserPanel,
|
|
9674
|
+
WN as ApprovalCard,
|
|
9652
9675
|
GA as ArtifactGallery,
|
|
9653
|
-
|
|
9676
|
+
wN as AssistantPicker,
|
|
9654
9677
|
y2 as AttachmentPreviewModal,
|
|
9655
|
-
|
|
9656
|
-
|
|
9678
|
+
zV as BORDER_RADIUS,
|
|
9679
|
+
rV as BreadcrumbNav,
|
|
9657
9680
|
JI as CHART_COLORS,
|
|
9658
9681
|
QI as COLORS,
|
|
9659
|
-
|
|
9660
|
-
|
|
9661
|
-
|
|
9662
|
-
|
|
9663
|
-
|
|
9682
|
+
DV as CONTROL_HEIGHT,
|
|
9683
|
+
RV as CardGridSkeleton,
|
|
9684
|
+
qV as CardTable,
|
|
9685
|
+
iN as Composer,
|
|
9686
|
+
wV as ConfirmDialog,
|
|
9664
9687
|
H0 as ContentPanel,
|
|
9665
|
-
|
|
9688
|
+
sN as ConversationHeader,
|
|
9666
9689
|
Gl as DEFAULT_PAGE_SIZE,
|
|
9667
|
-
|
|
9668
|
-
|
|
9690
|
+
LV as DURATION,
|
|
9691
|
+
dN as DocumentPreviewDrawer,
|
|
9669
9692
|
bB as DocumentPreviewPanel,
|
|
9670
9693
|
d2 as DocumentSummaryList,
|
|
9671
|
-
|
|
9672
|
-
|
|
9694
|
+
DN as EP_FORK_BASE,
|
|
9695
|
+
FN as EP_FORK_DATE,
|
|
9673
9696
|
cg as EmptyState,
|
|
9674
|
-
|
|
9697
|
+
oV as ErrorBoundary,
|
|
9675
9698
|
$W as ExcelPreviewCard,
|
|
9676
|
-
|
|
9677
|
-
|
|
9678
|
-
|
|
9679
|
-
|
|
9699
|
+
bN as ExecutionArtifactPanel,
|
|
9700
|
+
KV as FONT_SIZE,
|
|
9701
|
+
kV as FORM,
|
|
9702
|
+
IN as FieldRow,
|
|
9680
9703
|
nB as FileChip,
|
|
9681
|
-
|
|
9682
|
-
|
|
9683
|
-
|
|
9684
|
-
|
|
9685
|
-
|
|
9704
|
+
fV as FilterBar,
|
|
9705
|
+
NV as FilterTabs,
|
|
9706
|
+
VV as FormDialog,
|
|
9707
|
+
gN as HintText,
|
|
9708
|
+
cN as HitlArtifactPanel,
|
|
9686
9709
|
ZA as ICON_MAP,
|
|
9687
|
-
|
|
9710
|
+
pV as ICON_SIZE,
|
|
9688
9711
|
BB as ImagePreviewCard,
|
|
9689
9712
|
VW as JsonCard,
|
|
9690
9713
|
oW as JsonDetailDialog,
|
|
9691
|
-
|
|
9692
|
-
|
|
9693
|
-
|
|
9714
|
+
FV as LAYOUT_HEIGHT,
|
|
9715
|
+
AN as LoadingDots,
|
|
9716
|
+
vV as LogStream,
|
|
9694
9717
|
qs as MessageAttachmentList,
|
|
9695
9718
|
f2 as MessageBubble,
|
|
9696
|
-
|
|
9719
|
+
mN as MessageList,
|
|
9697
9720
|
js as MessageParts,
|
|
9698
|
-
|
|
9699
|
-
|
|
9700
|
-
|
|
9701
|
-
|
|
9721
|
+
TV as MetricChart,
|
|
9722
|
+
VN as ModelPicker,
|
|
9723
|
+
GN as NodeArtifactStrip,
|
|
9724
|
+
JV as PAGE,
|
|
9702
9725
|
ub as PAGE_SIZE_OPTIONS,
|
|
9703
9726
|
nb as PAGINATION_LAYOUT,
|
|
9704
|
-
|
|
9705
|
-
|
|
9727
|
+
PV as PageHeader,
|
|
9728
|
+
EV as PageShell,
|
|
9706
9729
|
cl as PdfPreviewCard,
|
|
9707
|
-
|
|
9730
|
+
YN as ProcessingDrawer,
|
|
9708
9731
|
hw as RunStatusBar,
|
|
9709
|
-
|
|
9732
|
+
SN as SCHEMA_UI_VERSION,
|
|
9710
9733
|
y0 as SHADOWS,
|
|
9711
|
-
|
|
9712
|
-
|
|
9713
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
9718
|
-
|
|
9719
|
-
|
|
9720
|
-
|
|
9721
|
-
|
|
9722
|
-
|
|
9723
|
-
|
|
9724
|
-
|
|
9734
|
+
SV as SPACING,
|
|
9735
|
+
ZN as SchemaLitePreview,
|
|
9736
|
+
$V as SearchForm,
|
|
9737
|
+
CN as SectionToggle,
|
|
9738
|
+
QV as ServiceGrid,
|
|
9739
|
+
BN as SessionSidebar,
|
|
9740
|
+
jV as SeverityBadge,
|
|
9741
|
+
aV as Skeleton,
|
|
9742
|
+
uV as SliderCaptcha,
|
|
9743
|
+
xV as StatCard,
|
|
9744
|
+
hV as StatusTag,
|
|
9745
|
+
UV as StatusTimeline,
|
|
9746
|
+
MV as TEXT_COLORS,
|
|
9747
|
+
_V as TableRowActions,
|
|
9725
9748
|
RB as TextPreviewCard,
|
|
9726
|
-
|
|
9727
|
-
|
|
9728
|
-
|
|
9749
|
+
OV as ThresholdSlider,
|
|
9750
|
+
nV as TimeRangePicker,
|
|
9751
|
+
XV as Toast,
|
|
9729
9752
|
_i as TruncatedTooltipText,
|
|
9730
|
-
|
|
9753
|
+
HV as UserAvatar,
|
|
9731
9754
|
wB as VideoPreviewCard,
|
|
9732
|
-
|
|
9755
|
+
tV as Z_INDEX,
|
|
9733
9756
|
og as detectArtifactKind,
|
|
9734
9757
|
kg as extractDocumentId,
|
|
9735
9758
|
lA as fileKind,
|
|
@@ -9737,22 +9760,22 @@ export {
|
|
|
9737
9760
|
Rg as isImage,
|
|
9738
9761
|
WZ as isOffice,
|
|
9739
9762
|
Lg as isPdf,
|
|
9740
|
-
|
|
9741
|
-
|
|
9742
|
-
|
|
9743
|
-
|
|
9744
|
-
|
|
9763
|
+
lN as isPreviewable,
|
|
9764
|
+
YV as isRegisteredAppIcon,
|
|
9765
|
+
KN as normalizeAttachments,
|
|
9766
|
+
MN as normalizeNodeOutput,
|
|
9767
|
+
NN as provideToast,
|
|
9745
9768
|
us as renderMarkdown,
|
|
9746
|
-
|
|
9769
|
+
nN as resolveApiErrorMessage,
|
|
9747
9770
|
ys as splitTextAndCodeBlocks,
|
|
9748
9771
|
jZ as tryParseJsonText,
|
|
9749
|
-
|
|
9750
|
-
|
|
9772
|
+
yN as useChatScroll,
|
|
9773
|
+
RN as useClientPagination,
|
|
9751
9774
|
VB as useClipboard,
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
9775
|
+
oN as useConfirm,
|
|
9776
|
+
HN as useDataLoading,
|
|
9777
|
+
aN as useDebounceFn,
|
|
9778
|
+
hN as useMessage,
|
|
9779
|
+
uN as useRealtime,
|
|
9780
|
+
XN as useToast
|
|
9758
9781
|
};
|