hzzt-kfb-slide 0.1.0 → 0.1.1
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/components/{annotateBjK38kC5.js → annotateB3lFxMEo.js} +3 -3
- package/dist/components/{annotateDswEmgoP.js → annotateB8zoDimf.js} +1 -1
- package/dist/components/{annotateBe1iGjLm.js → annotateCLaAaHN_.js} +1 -1
- package/dist/components/{annotateBCPPxCOM.js → annotateDa-PLWsY.js} +1 -1
- package/dist/components/{arrowCircleDcEhXBbb.js → arrowCircleCiliVlpQ.js} +1 -1
- package/dist/components/{arrowCircleCwh64ps_.js → arrowCircleD-pOtQNL.js} +1 -1
- package/dist/components/{arrowB_iF_C7o.js → arrowCmICz6PS.js} +1 -1
- package/dist/components/{arrowBsGolew1.js → arrowDjWPvUqv.js} +1 -1
- package/dist/components/{arrowDownGBYuSng0.js → arrowDownBiQp1p0i.js} +1 -1
- package/dist/components/{arrowDownBO1BfpJc.js → arrowDownCLuKnhgC.js} +1 -1
- package/dist/components/{arrowLeftC5fR0o6a.js → arrowLeftC5Xn0ZKF.js} +1 -1
- package/dist/components/{arrowLeftD5sInyYk.js → arrowLeftCBSwbPg8.js} +1 -1
- package/dist/components/{arrowRightD8w_2T2p.js → arrowRightC-gQEqoF.js} +1 -1
- package/dist/components/{arrowRightDZ5B3UGP.js → arrowRightDxs4lV9Z.js} +1 -1
- package/dist/components/{arrowUpBeusa4Lo.js → arrowUpBfRL3fhE.js} +1 -1
- package/dist/components/{arrowUpBc9Kyfxz.js → arrowUpCs2jBl9R.js} +1 -1
- package/dist/components/{bilateralCZQNj8IO.js → bilateral1NHhlA6z.js} +1 -1
- package/dist/components/{bilateraliBpUezXT.js → bilateralxnj69N0V.js} +1 -1
- package/dist/components/{channelD-i4fzni.js → channelChBho3_o.js} +1 -1
- package/dist/components/{channelCex9iiR2.js → channelD9KcPJ4H.js} +1 -1
- package/dist/components/{checkCt32HIH2.js → checkDJiCkpCP.js} +1 -1
- package/dist/components/{checkDdnX-C4X.js → checkPjfQU2X-.js} +1 -1
- package/dist/components/{configBFvCGNtv.js → configBVvJPXEW.js} +1 -1
- package/dist/components/{configBwkv57gw.js → configBoVZz6t_.js} +1 -1
- package/dist/components/{customCjYE_yPK.js → customBqUoJeja.js} +1 -1
- package/dist/components/{customCGjGRDJm.js → customCuFCEEmf.js} +1 -1
- package/dist/components/{deleteBpbziZfN.js → deleteBK4VaII7.js} +1 -1
- package/dist/components/{deleteB9iRvKYT.js → deleteBbL8JyJH.js} +1 -1
- package/dist/components/{dotDeJyIiYJ.js → dotC3ho5Naw.js} +1 -1
- package/dist/components/{dotD_biewxL.js → dotCZFwvsGJ.js} +4 -4
- package/dist/components/{dotDcO8K7mJ.js → dotCZmc5XHw.js} +1 -1
- package/dist/components/{dotDvq6YQgW.js → dotD0RUyAOF.js} +1 -1
- package/dist/components/{dotBlqZNkl0.js → dotDdB7hEiU.js} +1 -1
- package/dist/components/{dotCF84g70n.js → dotDf3m-ZtS.js} +1 -1
- package/dist/components/{downloadDy93WSTG.js → downloadBPbhAwsC.js} +1 -1
- package/dist/components/{downloadBnieQIP8.js → downloadC9SBQxWS.js} +1 -1
- package/dist/components/{downloadC8nKUjq6.js → downloadGVNhdAbp.js} +3 -3
- package/dist/components/{downloadBwUL0Ea7.js → downloadi5H6HjoE.js} +1 -1
- package/dist/components/{ellipseBxnZw_Wq.js → ellipseBBwG5L6y.js} +1 -1
- package/dist/components/{ellipseCp5zAGAh.js → ellipseGq_BKpIA.js} +1 -1
- package/dist/components/{expandLeftC1Ta5tGY.js → expandLeftBVBh6iI1.js} +1 -1
- package/dist/components/{expandLeft0jc4WZXg.js → expandLeftCWohfvHq.js} +1 -1
- package/dist/components/{expandRightBH8iguKS.js → expandRight-KeLeoCw.js} +1 -1
- package/dist/components/{expandRightDb0-tlNj.js → expandRightCuU0Ktmj.js} +1 -1
- package/dist/components/{flagDbfaF80Z.js → flagCNdHcaOr.js} +1 -1
- package/dist/components/{flagBEcBfVBz.js → flagDNqPx5NT.js} +1 -1
- package/dist/components/{flipBIarRte4.js → flip2i6pDnun.js} +1 -1
- package/dist/components/{flipChZNTRna.js → flipBJRiEs27.js} +1 -1
- package/dist/components/{fontBuHpTztq.js → fontBvWU1Zty.js} +1 -1
- package/dist/components/{fontU7S814K8.js → fontCsdG88OT.js} +1 -1
- package/dist/components/{fullscreenuBLuHv03.js → fullscreenB7VOC9nF.js} +1 -1
- package/dist/components/{fullscreenBpAk7wDb.js → fullscreenCfE6L14I.js} +1 -1
- package/dist/components/{fullscreenBiMgHdq_.js → fullscreenilcy7g6R.js} +2 -2
- package/dist/components/{fullscreenBQ1YkrN_.js → fullscreenkPWhn6hX.js} +1 -1
- package/dist/components/{indexCiVL4LuE.js → indexBk8PrnQT.js} +1077 -1065
- package/dist/components/indexh_hCt-Tc.js +4 -0
- package/dist/components/{infoCp7ve5DR.js → infoBKGJei_W.js} +1 -1
- package/dist/components/{infoC4hGYJaF.js → infoDD1pEfcw.js} +1 -1
- package/dist/components/{levelKqcfU9Ld.js → level0LJ8aEMv.js} +1 -1
- package/dist/components/{levelCeI--h7X.js → levelCkmf3f6J.js} +1 -1
- package/dist/components/{lineC3B9m1Ug.js → lineCFav17ki.js} +1 -1
- package/dist/components/{lineOSorc3WE.js → linerlsB9JL7.js} +1 -1
- package/dist/components/{microscopeBFEz_lq4.js → microscopeBBz0yD7E.js} +1 -1
- package/dist/components/{microscopeD9m8Vj5p.js → microscopeCLmgCovH.js} +3 -3
- package/dist/components/{microscopeD9DoPiHa.js → microscopeCgg0Ym67.js} +1 -1
- package/dist/components/{microscopemifUUWdo.js → microscopeCq6kF8bY.js} +1 -1
- package/dist/components/{moveCoqqrHrF.js → moveB41ZcoNK.js} +1 -1
- package/dist/components/{moveP1udjvew.js → moveB8_22tie.js} +1 -1
- package/dist/components/{move67AZY9GV.js → moveBGpoQ1-D.js} +3 -3
- package/dist/components/{move0dbwvgpp.js → moveCkVAoMeQ.js} +1 -1
- package/dist/components/{next949tlxwI.js → nextD5Z4bZnT.js} +1 -1
- package/dist/components/{nextF-0K-c0T.js → nextDRedCGZe.js} +1 -1
- package/dist/components/{polygonCVRu0jGg.js → polygonCp9oWQ3l.js} +1 -1
- package/dist/components/{polygonCY1umCDA.js → polygongm9CHAwB.js} +1 -1
- package/dist/components/{prevBoMShTVJ.js → prevCPX6EC1A.js} +1 -1
- package/dist/components/{prevZJi0HBQa.js → prevgL7_Qz0_.js} +1 -1
- package/dist/components/{process3Kd9iKAC.js → processBAq39ThA.js} +1 -1
- package/dist/components/{processDFHVq7yX.js → processDgdAEClC.js} +1 -1
- package/dist/components/{processX0dS45XF.js → processMgvhvblB.js} +1 -1
- package/dist/components/{processBtDhC5cN.js → processnL7rVPu0.js} +3 -3
- package/dist/components/{rectangleBRcZJKiG.js → rectangleDDWXtsEU.js} +1 -1
- package/dist/components/{rectangleD42v1SqR.js → rectangleqZeguu3p.js} +1 -1
- package/dist/components/{rotate7jt-EuDp.js → rotate7bzyW-OB.js} +1 -1
- package/dist/components/{rotateDu_mkWYc.js → rotateCEBfde_V.js} +4 -4
- package/dist/components/{rotateHyLr1dia.js → rotateCUUn3DGL.js} +1 -1
- package/dist/components/{rotate5_xJfsZ2.js → rotateb49G-Q8z.js} +1 -1
- package/dist/components/{setting3Ugpfl6Q.js → settingB3EwckOT.js} +1 -1
- package/dist/components/{settingCutO8H2U.js → settingDFygEEDe.js} +1 -1
- package/dist/components/{settingonwvagGo.js → settingDWDMPbdO.js} +3 -3
- package/dist/components/{settingBdsG5NNP.js → settingh3PMi-mk.js} +1 -1
- package/dist/components/{starB6lZrSR_.js → starBXSy-NoI.js} +1 -1
- package/dist/components/{starBuk9Zpe8.js → starCx7mYpn2.js} +1 -1
- package/dist/components/{tailorCxS09ZPn.js → tailorBzcPtJBg.js} +1 -1
- package/dist/components/{tailorC1nOu9Zx.js → tailorCvYJnrbK.js} +1 -1
- package/dist/components/{useCommon_E1byFLe.js → useCommonBRWUFIsx.js} +1 -1
- package/dist/components/{useCommonDvVbDPSe.js → useCommonBT6Pfwp3.js} +1 -1
- package/dist/components/{voiceDFacjiIM.js → voiceCCipOfTa.js} +1 -1
- package/dist/components/{voiceCifc7IPf.js → voiceDJghWoc3.js} +1 -1
- package/dist/components/{zoomB7VyAZrz.js → zoomDePdFm9E.js} +1 -1
- package/dist/components/{zoomInCf25h6Us.js → zoomInC4xFE1uN.js} +1 -1
- package/dist/components/{zoomInRDq1eDLi.js → zoomInDzq-DbIa.js} +1 -1
- package/dist/components/{zoomOutDdDapD_E.js → zoomOutBQz07s5R.js} +1 -1
- package/dist/components/{zoomOutjIFNPuhT.js → zoomOutDnt66Lz5.js} +1 -1
- package/dist/components/{zoomBFx-vjsG.js → zoomqK-uW5RK.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/package.json +1 -1
- package/types/components/ai/useAiResult.d.ts +7 -0
- package/dist/components/indexCFzrAiFg.js +0 -4
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var qt = Object.defineProperty, Yt = Object.defineProperties;
|
|
2
|
+
var Xt = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var yt = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var _t = (
|
|
6
|
-
for (var
|
|
7
|
-
|
|
4
|
+
var Qt = Object.prototype.hasOwnProperty, Jt = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var _t = (u, e, n) => e in u ? qt(u, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : u[e] = n, j = (u, e) => {
|
|
6
|
+
for (var n in e || (e = {}))
|
|
7
|
+
Qt.call(e, n) && _t(u, n, e[n]);
|
|
8
8
|
if (yt)
|
|
9
|
-
for (var
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
}, me = (
|
|
13
|
-
var Ce = (
|
|
14
|
-
var
|
|
9
|
+
for (var n of yt(e))
|
|
10
|
+
Jt.call(e, n) && _t(u, n, e[n]);
|
|
11
|
+
return u;
|
|
12
|
+
}, me = (u, e) => Yt(u, Xt(e));
|
|
13
|
+
var Ce = (u, e, n) => new Promise((t, y) => {
|
|
14
|
+
var d = (f) => {
|
|
15
15
|
try {
|
|
16
|
-
i(
|
|
16
|
+
i(n.next(f));
|
|
17
17
|
} catch (g) {
|
|
18
|
-
|
|
18
|
+
y(g);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, c = (f) => {
|
|
21
21
|
try {
|
|
22
|
-
i(
|
|
22
|
+
i(n.throw(f));
|
|
23
23
|
} catch (g) {
|
|
24
|
-
|
|
24
|
+
y(g);
|
|
25
25
|
}
|
|
26
|
-
}, i = (f) => f.done ? t(f.value) : Promise.resolve(f.value).then(
|
|
27
|
-
i((
|
|
26
|
+
}, i = (f) => f.done ? t(f.value) : Promise.resolve(f.value).then(d, c);
|
|
27
|
+
i((n = n.apply(u, e)).next());
|
|
28
28
|
});
|
|
29
|
-
import { inject as J, ref as $, markRaw as H, defineAsyncComponent as
|
|
30
|
-
import { ElIcon as _e, ElRow as
|
|
31
|
-
import { KfbView as
|
|
32
|
-
import
|
|
33
|
-
function
|
|
34
|
-
const
|
|
29
|
+
import { inject as J, ref as $, markRaw as H, defineAsyncComponent as V, defineComponent as ee, createBlock as P, openBlock as _, unref as o, normalizeProps as el, guardReactiveProps as tl, withCtx as x, resolveDynamicComponent as xe, useModel as Ee, computed as B, createElementBlock as L, createElementVNode as b, createVNode as T, toDisplayString as E, Fragment as le, renderList as oe, createTextVNode as G, isRef as Ve, watch as ne, h as ll, provide as ue, renderSlot as de, mergeProps as Ke, createCommentVNode as A, reactive as ot, onMounted as pe, onBeforeUnmount as Ie, normalizeStyle as Z, mergeDefaults as ol, withDirectives as $e, vShow as Pe, getCurrentInstance as nl, mergeModels as we, normalizeClass as ye, Teleport as Fe, withModifiers as Be } from "vue";
|
|
30
|
+
import { ElIcon as _e, ElRow as al, ElCol as sl, ElSwitch as Le, ElRadioGroup as bt, ElRadio as De, ElDialog as je, ElForm as tt, ElFormItem as se, ElInput as et, ElButton as ge, ElMessage as kt, ElLoading as Ct, ElSlider as il, ElTag as Tt, ElCheckbox as Oe, ElTooltip as zt, ElPopover as rl, ElCheckboxGroup as ul, ElPagination as cl } from "element-plus";
|
|
31
|
+
import { KfbView as ce, OpenSeadragon as Te } from "kfb-view";
|
|
32
|
+
import dl from "v-lazy-image";
|
|
33
|
+
function ie() {
|
|
34
|
+
const u = J("i18n"), e = (n) => n;
|
|
35
35
|
return {
|
|
36
|
-
locale:
|
|
37
|
-
t: (
|
|
36
|
+
locale: u == null ? void 0 : u.locale,
|
|
37
|
+
t: (u == null ? void 0 : u.t) || e
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
const
|
|
41
|
-
install(
|
|
42
|
-
|
|
40
|
+
const vl = {
|
|
41
|
+
install(u, e) {
|
|
42
|
+
u.provide("i18n", e == null ? void 0 : e.global);
|
|
43
43
|
}
|
|
44
44
|
}, O = $({
|
|
45
|
-
annotate: H(
|
|
46
|
-
arrowCircle: H(
|
|
47
|
-
check: H(
|
|
48
|
-
dot: H(
|
|
49
|
-
flip: H(
|
|
50
|
-
info: H(
|
|
51
|
-
microscope: H(
|
|
52
|
-
move: H(
|
|
53
|
-
next: H(
|
|
54
|
-
prev: H(
|
|
55
|
-
process: H(
|
|
56
|
-
rotate: H(
|
|
57
|
-
fullscreen: H(
|
|
58
|
-
setting: H(
|
|
59
|
-
tailor: H(
|
|
60
|
-
download: H(
|
|
61
|
-
config: H(
|
|
62
|
-
arrowDown: H(
|
|
63
|
-
arrowUp: H(
|
|
64
|
-
arrowLeft: H(
|
|
65
|
-
arrowRight: H(
|
|
66
|
-
zoomIn: H(
|
|
67
|
-
zoomOut: H(
|
|
68
|
-
level: H(
|
|
69
|
-
channel: H(
|
|
70
|
-
delete: H(
|
|
71
|
-
expandLeft: H(
|
|
72
|
-
expandRight: H(
|
|
73
|
-
markLine: H(
|
|
74
|
-
markArrow: H(
|
|
75
|
-
markBilateral: H(
|
|
76
|
-
markRectangle: H(
|
|
77
|
-
markEllipse: H(
|
|
78
|
-
markPolygon: H(
|
|
79
|
-
markFlag: H(
|
|
80
|
-
markStar: H(
|
|
81
|
-
markDot: H(
|
|
82
|
-
markFont: H(
|
|
83
|
-
markVoice: H(
|
|
45
|
+
annotate: H(V(() => import("./annotateDa-PLWsY.js"))),
|
|
46
|
+
arrowCircle: H(V(() => import("./arrowCircleCiliVlpQ.js"))),
|
|
47
|
+
check: H(V(() => import("./checkPjfQU2X-.js"))),
|
|
48
|
+
dot: H(V(() => import("./dotCZmc5XHw.js"))),
|
|
49
|
+
flip: H(V(() => import("./flip2i6pDnun.js"))),
|
|
50
|
+
info: H(V(() => import("./infoBKGJei_W.js"))),
|
|
51
|
+
microscope: H(V(() => import("./microscopeCgg0Ym67.js"))),
|
|
52
|
+
move: H(V(() => import("./moveB41ZcoNK.js"))),
|
|
53
|
+
next: H(V(() => import("./nextD5Z4bZnT.js"))),
|
|
54
|
+
prev: H(V(() => import("./prevCPX6EC1A.js"))),
|
|
55
|
+
process: H(V(() => import("./processBAq39ThA.js"))),
|
|
56
|
+
rotate: H(V(() => import("./rotateCUUn3DGL.js"))),
|
|
57
|
+
fullscreen: H(V(() => import("./fullscreenkPWhn6hX.js"))),
|
|
58
|
+
setting: H(V(() => import("./settingDFygEEDe.js"))),
|
|
59
|
+
tailor: H(V(() => import("./tailorBzcPtJBg.js"))),
|
|
60
|
+
download: H(V(() => import("./downloadBPbhAwsC.js"))),
|
|
61
|
+
config: H(V(() => import("./configBVvJPXEW.js"))),
|
|
62
|
+
arrowDown: H(V(() => import("./arrowDownBiQp1p0i.js"))),
|
|
63
|
+
arrowUp: H(V(() => import("./arrowUpBfRL3fhE.js"))),
|
|
64
|
+
arrowLeft: H(V(() => import("./arrowLeftCBSwbPg8.js"))),
|
|
65
|
+
arrowRight: H(V(() => import("./arrowRightDxs4lV9Z.js"))),
|
|
66
|
+
zoomIn: H(V(() => import("./zoomInDzq-DbIa.js"))),
|
|
67
|
+
zoomOut: H(V(() => import("./zoomOutDnt66Lz5.js"))),
|
|
68
|
+
level: H(V(() => import("./level0LJ8aEMv.js"))),
|
|
69
|
+
channel: H(V(() => import("./channelD9KcPJ4H.js"))),
|
|
70
|
+
delete: H(V(() => import("./deleteBK4VaII7.js"))),
|
|
71
|
+
expandLeft: H(V(() => import("./expandLeftCWohfvHq.js"))),
|
|
72
|
+
expandRight: H(V(() => import("./expandRight-KeLeoCw.js"))),
|
|
73
|
+
markLine: H(V(() => import("./linerlsB9JL7.js"))),
|
|
74
|
+
markArrow: H(V(() => import("./arrowDjWPvUqv.js"))),
|
|
75
|
+
markBilateral: H(V(() => import("./bilateralxnj69N0V.js"))),
|
|
76
|
+
markRectangle: H(V(() => import("./rectangleqZeguu3p.js"))),
|
|
77
|
+
markEllipse: H(V(() => import("./ellipseGq_BKpIA.js"))),
|
|
78
|
+
markPolygon: H(V(() => import("./polygonCp9oWQ3l.js"))),
|
|
79
|
+
markFlag: H(V(() => import("./flagCNdHcaOr.js"))),
|
|
80
|
+
markStar: H(V(() => import("./starBXSy-NoI.js"))),
|
|
81
|
+
markDot: H(V(() => import("./dotDf3m-ZtS.js"))),
|
|
82
|
+
markFont: H(V(() => import("./fontBvWU1Zty.js"))),
|
|
83
|
+
markVoice: H(V(() => import("./voiceDJghWoc3.js")))
|
|
84
84
|
}), X = /* @__PURE__ */ ee({
|
|
85
85
|
__name: "KfbIcon",
|
|
86
86
|
props: {
|
|
@@ -89,21 +89,21 @@ const cl = {
|
|
|
89
89
|
required: !0
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
|
-
setup(
|
|
93
|
-
return (e,
|
|
92
|
+
setup(u) {
|
|
93
|
+
return (e, n) => (_(), P(o(_e), el(tl(e.$attrs)), {
|
|
94
94
|
default: x(() => [
|
|
95
|
-
(
|
|
95
|
+
(_(), P(xe(o(O)[u.name])))
|
|
96
96
|
]),
|
|
97
97
|
_: 1
|
|
98
98
|
}, 16));
|
|
99
99
|
}
|
|
100
|
-
}),
|
|
100
|
+
}), fl = { class: "hzzt-kfb-tool-config" }, ml = { class: "hzzt-kfb-tool-config__title margin-b-2" }, pl = { class: "hzzt-kfb-tool-config__block flex align-items-center" }, hl = { class: "hzzt-kfb-tool-config__icon flex align-items-center justify-content-center" }, gl = { class: "margin-l-4 flex-1" }, wl = { class: "hzzt-kfb-tool-config__title" }, yl = { class: "flex align-items-center" }, _l = {
|
|
101
101
|
class: "margin-t-2 margin-b-2",
|
|
102
102
|
style: { width: "160px" }
|
|
103
|
-
},
|
|
103
|
+
}, bl = { class: "flex align-items-center" }, kl = {
|
|
104
104
|
class: "margin-t-2 margin-b-2",
|
|
105
105
|
style: { width: "160px" }
|
|
106
|
-
},
|
|
106
|
+
}, zl = /* @__PURE__ */ ee({
|
|
107
107
|
name: "KfbToolConfig",
|
|
108
108
|
__name: "KfbToolConfig",
|
|
109
109
|
props: {
|
|
@@ -115,8 +115,8 @@ const cl = {
|
|
|
115
115
|
showTextModifiers: {}
|
|
116
116
|
},
|
|
117
117
|
emits: ["update:menus", "update:showText"],
|
|
118
|
-
setup(
|
|
119
|
-
const e = Ee(
|
|
118
|
+
setup(u) {
|
|
119
|
+
const e = Ee(u, "menus"), n = Ee(u, "showText"), { t } = ie(), y = B(() => e.value.filter((g) => g.name !== "line" && g.name !== "config" && g.name !== "zoom")), d = {
|
|
120
120
|
fullscreen: t("全屏"),
|
|
121
121
|
next: t("上一张"),
|
|
122
122
|
prev: t("上一张"),
|
|
@@ -131,38 +131,38 @@ const cl = {
|
|
|
131
131
|
move: t("快速移动"),
|
|
132
132
|
info: t("信息"),
|
|
133
133
|
download: t("下载")
|
|
134
|
-
},
|
|
134
|
+
}, c = J("show-keyboard", $(!1));
|
|
135
135
|
function i(g) {
|
|
136
|
-
return g in
|
|
136
|
+
return g in d;
|
|
137
137
|
}
|
|
138
138
|
function f(g) {
|
|
139
139
|
var h;
|
|
140
|
-
return ((h = g.props) == null ? void 0 : h.text) || (i(g.name) ?
|
|
140
|
+
return ((h = g.props) == null ? void 0 : h.text) || (i(g.name) ? d[g.name] : "");
|
|
141
141
|
}
|
|
142
|
-
return (g, h) => (
|
|
143
|
-
b("h3",
|
|
144
|
-
T(
|
|
142
|
+
return (g, h) => (_(), L("div", fl, [
|
|
143
|
+
b("h3", ml, E(o(t)("显示管理")), 1),
|
|
144
|
+
T(o(al), { gutter: 10 }, {
|
|
145
145
|
default: x(() => [
|
|
146
|
-
(
|
|
146
|
+
(_(!0), L(le, null, oe(y.value, (l) => (_(), P(o(sl), {
|
|
147
147
|
key: l.name,
|
|
148
148
|
span: 8
|
|
149
149
|
}, {
|
|
150
150
|
default: x(() => {
|
|
151
|
-
var a,
|
|
151
|
+
var a, p;
|
|
152
152
|
return [
|
|
153
|
-
b("div",
|
|
154
|
-
b("div",
|
|
155
|
-
(a = l.props) != null && a.component ? (
|
|
153
|
+
b("div", pl, [
|
|
154
|
+
b("div", hl, [
|
|
155
|
+
(a = l.props) != null && a.component ? (_(), P(xe((p = l.props) == null ? void 0 : p.component), {
|
|
156
156
|
key: 1,
|
|
157
157
|
size: 24
|
|
158
|
-
})) : (
|
|
158
|
+
})) : (_(), P(X, {
|
|
159
159
|
key: 0,
|
|
160
160
|
size: 24,
|
|
161
161
|
name: l.name
|
|
162
162
|
}, null, 8, ["name"]))
|
|
163
163
|
]),
|
|
164
|
-
b("p",
|
|
165
|
-
T(
|
|
164
|
+
b("p", gl, E(f(l)), 1),
|
|
165
|
+
T(o(Le), {
|
|
166
166
|
modelValue: l.show,
|
|
167
167
|
"onUpdate:modelValue": (r) => l.show = r,
|
|
168
168
|
"active-text": "",
|
|
@@ -177,23 +177,23 @@ const cl = {
|
|
|
177
177
|
_: 1
|
|
178
178
|
}),
|
|
179
179
|
b("div", null, [
|
|
180
|
-
b("h3",
|
|
181
|
-
b("div",
|
|
182
|
-
b("p",
|
|
183
|
-
T(
|
|
184
|
-
modelValue:
|
|
185
|
-
"onUpdate:modelValue": h[0] || (h[0] = (l) =>
|
|
180
|
+
b("h3", wl, E(o(t)("其他设置")), 1),
|
|
181
|
+
b("div", yl, [
|
|
182
|
+
b("p", _l, E(o(t)("工具列表显示切换")), 1),
|
|
183
|
+
T(o(bt), {
|
|
184
|
+
modelValue: n.value,
|
|
185
|
+
"onUpdate:modelValue": h[0] || (h[0] = (l) => n.value = l)
|
|
186
186
|
}, {
|
|
187
187
|
default: x(() => [
|
|
188
|
-
T(
|
|
188
|
+
T(o(De), { value: !0 }, {
|
|
189
189
|
default: x(() => [
|
|
190
|
-
G(
|
|
190
|
+
G(E(o(t)("显示工具名称")), 1)
|
|
191
191
|
]),
|
|
192
192
|
_: 1
|
|
193
193
|
}),
|
|
194
|
-
T(
|
|
194
|
+
T(o(De), { value: !1 }, {
|
|
195
195
|
default: x(() => [
|
|
196
|
-
G(
|
|
196
|
+
G(E(o(t)("隐藏工具名称")), 1)
|
|
197
197
|
]),
|
|
198
198
|
_: 1
|
|
199
199
|
})
|
|
@@ -201,22 +201,22 @@ const cl = {
|
|
|
201
201
|
_: 1
|
|
202
202
|
}, 8, ["modelValue"])
|
|
203
203
|
]),
|
|
204
|
-
b("div",
|
|
205
|
-
b("p",
|
|
206
|
-
T(
|
|
207
|
-
modelValue:
|
|
208
|
-
"onUpdate:modelValue": h[1] || (h[1] = (l) => Ve(
|
|
204
|
+
b("div", bl, [
|
|
205
|
+
b("p", kl, E(o(t)("小键盘显示切换")), 1),
|
|
206
|
+
T(o(bt), {
|
|
207
|
+
modelValue: o(c),
|
|
208
|
+
"onUpdate:modelValue": h[1] || (h[1] = (l) => Ve(c) ? c.value = l : null)
|
|
209
209
|
}, {
|
|
210
210
|
default: x(() => [
|
|
211
|
-
T(
|
|
211
|
+
T(o(De), { value: !0 }, {
|
|
212
212
|
default: x(() => [
|
|
213
|
-
G(
|
|
213
|
+
G(E(o(t)("显示小键盘")), 1)
|
|
214
214
|
]),
|
|
215
215
|
_: 1
|
|
216
216
|
}),
|
|
217
|
-
T(
|
|
217
|
+
T(o(De), { value: !1 }, {
|
|
218
218
|
default: x(() => [
|
|
219
|
-
G(
|
|
219
|
+
G(E(o(t)("隐藏小键盘")), 1)
|
|
220
220
|
]),
|
|
221
221
|
_: 1
|
|
222
222
|
})
|
|
@@ -227,7 +227,7 @@ const cl = {
|
|
|
227
227
|
])
|
|
228
228
|
]));
|
|
229
229
|
}
|
|
230
|
-
}),
|
|
230
|
+
}), Cl = { class: "hzzt-kfb-toolbox" }, Tl = { class: "hzzt-kfb-toolbox__component" }, Re = /* @__PURE__ */ ee({
|
|
231
231
|
name: "KfbToolbox",
|
|
232
232
|
__name: "KfbToolbox",
|
|
233
233
|
props: {
|
|
@@ -237,129 +237,129 @@ const cl = {
|
|
|
237
237
|
showMenuText: { type: Boolean }
|
|
238
238
|
},
|
|
239
239
|
emits: ["tool"],
|
|
240
|
-
setup(
|
|
241
|
-
const
|
|
242
|
-
prev:
|
|
243
|
-
next:
|
|
244
|
-
config:
|
|
245
|
-
info:
|
|
246
|
-
flip:
|
|
247
|
-
tailor:
|
|
248
|
-
},
|
|
249
|
-
fullscreen:
|
|
250
|
-
line:
|
|
251
|
-
setting:
|
|
252
|
-
rotate:
|
|
253
|
-
dot:
|
|
254
|
-
annotate:
|
|
255
|
-
process:
|
|
256
|
-
microscope:
|
|
257
|
-
move:
|
|
258
|
-
custom:
|
|
259
|
-
zoom:
|
|
260
|
-
download:
|
|
240
|
+
setup(u, { emit: e }) {
|
|
241
|
+
const n = u, t = e, { t: y } = ie(), d = {
|
|
242
|
+
prev: y("上一张"),
|
|
243
|
+
next: y("下一张"),
|
|
244
|
+
config: y("配置"),
|
|
245
|
+
info: y("信息"),
|
|
246
|
+
flip: y("镜像"),
|
|
247
|
+
tailor: y("截图")
|
|
248
|
+
}, c = J("kfbViewRef"), i = $(!1), f = $(n.showMenuText), g = $(a(n.menu)), h = {
|
|
249
|
+
fullscreen: V(() => import("./fullscreenilcy7g6R.js")),
|
|
250
|
+
line: V(() => import("./lineBIoJpzbf.js")),
|
|
251
|
+
setting: V(() => import("./settingDWDMPbdO.js")),
|
|
252
|
+
rotate: V(() => import("./rotateCEBfde_V.js")),
|
|
253
|
+
dot: V(() => import("./dotCZFwvsGJ.js")),
|
|
254
|
+
annotate: V(() => import("./annotateB3lFxMEo.js")),
|
|
255
|
+
process: V(() => import("./processnL7rVPu0.js")),
|
|
256
|
+
microscope: V(() => import("./microscopeCLmgCovH.js")),
|
|
257
|
+
move: V(() => import("./moveBGpoQ1-D.js")),
|
|
258
|
+
custom: V(() => import("./customBqUoJeja.js")),
|
|
259
|
+
zoom: V(() => import("./zoomqK-uW5RK.js")),
|
|
260
|
+
download: V(() => import("./downloadGVNhdAbp.js"))
|
|
261
261
|
}, l = B(() => g.value.filter((r) => r.show !== !1).map((r) => ({
|
|
262
262
|
component: h[r.name],
|
|
263
263
|
props: r.props,
|
|
264
264
|
slots: r.slots
|
|
265
265
|
})));
|
|
266
|
-
ne(() =>
|
|
266
|
+
ne(() => n.menu, (r) => {
|
|
267
267
|
g.value = a(r);
|
|
268
268
|
});
|
|
269
269
|
function a(r) {
|
|
270
270
|
return r.map((s) => {
|
|
271
|
-
const
|
|
272
|
-
return
|
|
271
|
+
const m = typeof s == "string" ? s : s.name;
|
|
272
|
+
return d[m] ? {
|
|
273
273
|
name: "custom",
|
|
274
274
|
show: typeof s == "string" ? !0 : s.show !== !1,
|
|
275
275
|
props: me(j({
|
|
276
|
-
text:
|
|
276
|
+
text: d[m]
|
|
277
277
|
}, typeof s == "string" ? {} : s.props), {
|
|
278
|
-
name:
|
|
279
|
-
component:
|
|
280
|
-
name:
|
|
278
|
+
name: m,
|
|
279
|
+
component: ll(X, {
|
|
280
|
+
name: m
|
|
281
281
|
})
|
|
282
282
|
})
|
|
283
|
-
} :
|
|
284
|
-
name:
|
|
283
|
+
} : m === "process" ? {
|
|
284
|
+
name: m,
|
|
285
285
|
props: typeof s == "string" ? {
|
|
286
|
-
process:
|
|
286
|
+
process: n.process
|
|
287
287
|
} : j({
|
|
288
|
-
process:
|
|
288
|
+
process: n.process
|
|
289
289
|
}, s.props),
|
|
290
290
|
slots: typeof s == "string" ? void 0 : s.slots,
|
|
291
291
|
show: typeof s == "string" ? !0 : s.show !== !1
|
|
292
|
-
} :
|
|
293
|
-
name:
|
|
292
|
+
} : m === "microscope" ? {
|
|
293
|
+
name: m,
|
|
294
294
|
props: typeof s == "string" ? {
|
|
295
|
-
process:
|
|
295
|
+
process: n.process
|
|
296
296
|
} : j({
|
|
297
|
-
microscope:
|
|
297
|
+
microscope: n.microscope
|
|
298
298
|
}, s.props),
|
|
299
299
|
slots: typeof s == "string" ? void 0 : s.slots,
|
|
300
300
|
show: typeof s == "string" ? !0 : s.show !== !1
|
|
301
301
|
} : {
|
|
302
|
-
name:
|
|
302
|
+
name: m,
|
|
303
303
|
props: typeof s == "string" ? {} : s.props,
|
|
304
304
|
slots: typeof s == "string" ? void 0 : s.slots,
|
|
305
305
|
show: typeof s == "string" ? !0 : s.show !== !1
|
|
306
306
|
};
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
|
-
function
|
|
310
|
-
const
|
|
311
|
-
annotate: () =>
|
|
312
|
-
tailor: () =>
|
|
313
|
-
process: () =>
|
|
314
|
-
microscope: () =>
|
|
315
|
-
move: () =>
|
|
316
|
-
endDraw: () =>
|
|
317
|
-
info: () =>
|
|
318
|
-
zoom: () =>
|
|
319
|
-
flip: () =>
|
|
309
|
+
function p(r, s) {
|
|
310
|
+
const m = {
|
|
311
|
+
annotate: () => c.value.startDraw(s),
|
|
312
|
+
tailor: () => c.value.shotScreen(s),
|
|
313
|
+
process: () => c.value.forceRedraw(s),
|
|
314
|
+
microscope: () => c.value.scopeChange(s),
|
|
315
|
+
move: () => c.value.fastMove(s),
|
|
316
|
+
endDraw: () => c.value.endDraw(),
|
|
317
|
+
info: () => c.value.info(),
|
|
318
|
+
zoom: () => c.value.zoomTo(s),
|
|
319
|
+
flip: () => c.value.toggleFlip(s),
|
|
320
320
|
config: () => i.value = !0,
|
|
321
|
-
grid: () =>
|
|
322
|
-
ruler: () =>
|
|
323
|
-
graduation: () =>
|
|
324
|
-
navigator: () =>
|
|
321
|
+
grid: () => c.value.updateGrid(s),
|
|
322
|
+
ruler: () => c.value.updateGrid(s),
|
|
323
|
+
graduation: () => c.value.updateGraduation(s),
|
|
324
|
+
navigator: () => c.value.updateNavigator(s),
|
|
325
325
|
tool: () => {
|
|
326
|
-
|
|
326
|
+
c.value.updateGrid({
|
|
327
327
|
show: s
|
|
328
|
-
}),
|
|
328
|
+
}), c.value.updateGraduation({
|
|
329
329
|
show: s
|
|
330
|
-
}),
|
|
330
|
+
}), c.value.updateGrid({
|
|
331
331
|
ruler: s
|
|
332
|
-
}),
|
|
332
|
+
}), c.value.updateNavigator(s);
|
|
333
333
|
}
|
|
334
334
|
};
|
|
335
|
-
|
|
335
|
+
m[r] ? m[r]() : t("tool", r, s);
|
|
336
336
|
}
|
|
337
|
-
return
|
|
338
|
-
|
|
339
|
-
b("div",
|
|
340
|
-
(
|
|
337
|
+
return ue("show-text", f), (r, s) => (_(), L("div", Cl, [
|
|
338
|
+
de(r.$slots, "left"),
|
|
339
|
+
b("div", Tl, [
|
|
340
|
+
(_(!0), L(le, null, oe(l.value, (m, w) => (_(), P(xe(m.component), Ke({ ref_for: !0 }, m.props, {
|
|
341
341
|
key: w,
|
|
342
|
-
onTool:
|
|
342
|
+
onTool: p
|
|
343
343
|
}), {
|
|
344
344
|
default: x(() => [
|
|
345
|
-
|
|
345
|
+
m.slots ? (_(!0), L(le, { key: 0 }, oe(m.slots, (k) => (_(), P(xe(k)))), 256)) : A("", !0)
|
|
346
346
|
]),
|
|
347
347
|
_: 2
|
|
348
348
|
}, 1040))), 128))
|
|
349
349
|
]),
|
|
350
|
-
|
|
351
|
-
T(
|
|
350
|
+
de(r.$slots, "right"),
|
|
351
|
+
T(o(je), {
|
|
352
352
|
modelValue: i.value,
|
|
353
|
-
"onUpdate:modelValue": s[2] || (s[2] = (
|
|
353
|
+
"onUpdate:modelValue": s[2] || (s[2] = (m) => i.value = m),
|
|
354
354
|
width: "800px",
|
|
355
|
-
title:
|
|
355
|
+
title: o(y)("阅片工具设置中心")
|
|
356
356
|
}, {
|
|
357
357
|
default: x(() => [
|
|
358
|
-
T(
|
|
358
|
+
T(zl, {
|
|
359
359
|
menus: g.value,
|
|
360
|
-
"onUpdate:menus": s[0] || (s[0] = (
|
|
360
|
+
"onUpdate:menus": s[0] || (s[0] = (m) => g.value = m),
|
|
361
361
|
showText: f.value,
|
|
362
|
-
"onUpdate:showText": s[1] || (s[1] = (
|
|
362
|
+
"onUpdate:showText": s[1] || (s[1] = (m) => f.value = m)
|
|
363
363
|
}, null, 8, ["menus", "showText"])
|
|
364
364
|
]),
|
|
365
365
|
_: 1
|
|
@@ -380,19 +380,19 @@ const cl = {
|
|
|
380
380
|
l: 0,
|
|
381
381
|
ga: 1
|
|
382
382
|
};
|
|
383
|
-
function
|
|
384
|
-
const e = ot(j(j({}, $t),
|
|
385
|
-
ne(() =>
|
|
386
|
-
|
|
383
|
+
function $l(u) {
|
|
384
|
+
const e = ot(j(j({}, $t), u.process));
|
|
385
|
+
ne(() => u.process, (d) => {
|
|
386
|
+
y(d);
|
|
387
387
|
});
|
|
388
|
-
const
|
|
389
|
-
const
|
|
388
|
+
const n = B(() => {
|
|
389
|
+
const d = [
|
|
390
390
|
1 + e.r + e.l + 0.5 * e.c,
|
|
391
391
|
0,
|
|
392
392
|
0,
|
|
393
393
|
0,
|
|
394
394
|
-0.25 * e.c
|
|
395
|
-
],
|
|
395
|
+
], c = [
|
|
396
396
|
0,
|
|
397
397
|
1 + e.g + e.l + 0.5 * e.c,
|
|
398
398
|
0,
|
|
@@ -405,40 +405,40 @@ function Cl(c) {
|
|
|
405
405
|
0,
|
|
406
406
|
-0.25 * e.c
|
|
407
407
|
], f = [0, 0, 0, 1, 0];
|
|
408
|
-
return `${
|
|
409
|
-
${
|
|
408
|
+
return `${d.join(" ")}
|
|
409
|
+
${c.join(" ")}
|
|
410
410
|
${i.join(" ")}
|
|
411
411
|
${f.join(" ")}`;
|
|
412
412
|
}), t = B(() => String(1 + e.s));
|
|
413
|
-
function
|
|
414
|
-
|
|
413
|
+
function y(d) {
|
|
414
|
+
d && Object.assign(e, d);
|
|
415
415
|
}
|
|
416
416
|
return {
|
|
417
417
|
imageProcess: e,
|
|
418
|
-
matrixValues:
|
|
418
|
+
matrixValues: n,
|
|
419
419
|
saturateValues: t,
|
|
420
|
-
forceRedraw:
|
|
420
|
+
forceRedraw: y
|
|
421
421
|
};
|
|
422
422
|
}
|
|
423
|
-
function
|
|
424
|
-
function
|
|
425
|
-
e.value.$on(
|
|
423
|
+
function Ll(u, e) {
|
|
424
|
+
function n() {
|
|
425
|
+
e.value.$on(ce.events.EVENT_TAILORING_SCREENSHOT, t);
|
|
426
426
|
}
|
|
427
|
-
function t({ base64:
|
|
427
|
+
function t({ base64: c, region: i }) {
|
|
428
428
|
if (window.ClipboardItem && (navigator != null && navigator.clipboard)) {
|
|
429
|
-
const f =
|
|
429
|
+
const f = y(c, "image/png");
|
|
430
430
|
navigator.clipboard.write([
|
|
431
431
|
new window.ClipboardItem({
|
|
432
432
|
[f.type]: f
|
|
433
433
|
})
|
|
434
434
|
]);
|
|
435
435
|
}
|
|
436
|
-
|
|
436
|
+
u("tool", "screen-shot", { base64: c, region: i });
|
|
437
437
|
}
|
|
438
|
-
function
|
|
439
|
-
var a,
|
|
440
|
-
const f =
|
|
441
|
-
(
|
|
438
|
+
function y(c, i) {
|
|
439
|
+
var a, p;
|
|
440
|
+
const f = c.split(",");
|
|
441
|
+
(p = (a = f[0]) == null ? void 0 : a.match(/:(.*?);/)) == null || p[1];
|
|
442
442
|
const g = atob(f == null ? void 0 : f[1]);
|
|
443
443
|
let h = g.length;
|
|
444
444
|
const l = new Uint8Array(h);
|
|
@@ -446,9 +446,9 @@ function Tl(c, e) {
|
|
|
446
446
|
l[h] = g.charCodeAt(h);
|
|
447
447
|
return new Blob([l], { type: i });
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function d(c) {
|
|
450
450
|
const { width: i, height: f } = e.value.$options;
|
|
451
|
-
|
|
451
|
+
c ? i > f ? e.value.tailoring.init(
|
|
452
452
|
{
|
|
453
453
|
left: (i - f) / 2,
|
|
454
454
|
top: 0,
|
|
@@ -475,33 +475,33 @@ function Tl(c, e) {
|
|
|
475
475
|
);
|
|
476
476
|
}
|
|
477
477
|
return {
|
|
478
|
-
tailorEvent:
|
|
479
|
-
shotScreen:
|
|
478
|
+
tailorEvent: n,
|
|
479
|
+
shotScreen: d
|
|
480
480
|
};
|
|
481
481
|
}
|
|
482
|
-
const
|
|
482
|
+
const xl = ["onClick"], El = ["src"], Vl = {
|
|
483
483
|
key: 2,
|
|
484
484
|
style: { width: "18px" },
|
|
485
485
|
class: "margin-r-3"
|
|
486
|
-
},
|
|
486
|
+
}, Ml = {
|
|
487
487
|
key: 1,
|
|
488
488
|
class: "hzzt-kfb-sub-menu"
|
|
489
|
-
},
|
|
489
|
+
}, Il = ["onClick"], Sl = { class: "flex align-items-center" }, Hl = ["src"], Pl = {
|
|
490
490
|
key: 2,
|
|
491
491
|
style: { width: "18px" },
|
|
492
492
|
class: "margin-r-2"
|
|
493
|
-
},
|
|
493
|
+
}, Rl = /* @__PURE__ */ ee({
|
|
494
494
|
__name: "KfbMenu",
|
|
495
495
|
props: {
|
|
496
496
|
menus: {}
|
|
497
497
|
},
|
|
498
498
|
emits: ["tool"],
|
|
499
|
-
setup(
|
|
500
|
-
const
|
|
499
|
+
setup(u, { emit: e }) {
|
|
500
|
+
const n = $({
|
|
501
501
|
top: "0",
|
|
502
502
|
left: "0",
|
|
503
503
|
display: "none"
|
|
504
|
-
}), t = J("kfbView", $({})),
|
|
504
|
+
}), t = J("kfbView", $({})), y = J("currentLabel"), d = u, c = e, { t: i } = ie(), f = [
|
|
505
505
|
{
|
|
506
506
|
label: i("直线"),
|
|
507
507
|
value: "line",
|
|
@@ -559,11 +559,11 @@ const $l = ["onClick"], Ll = ["src"], xl = {
|
|
|
559
559
|
}
|
|
560
560
|
], g = B(() => {
|
|
561
561
|
var r;
|
|
562
|
-
return
|
|
562
|
+
return y != null && y.value ? [{
|
|
563
563
|
label: i("删除"),
|
|
564
564
|
value: "delete",
|
|
565
565
|
icon: O.value.delete
|
|
566
|
-
}] : (r =
|
|
566
|
+
}] : (r = d.menus) != null && r.length ? d.menus.map((s) => s.value === "annotate" ? me(j({}, s), {
|
|
567
567
|
children: f
|
|
568
568
|
}) : me(j({}, s), {
|
|
569
569
|
icon: s.icon || O.value[s.value]
|
|
@@ -613,115 +613,115 @@ const $l = ["onClick"], Ll = ["src"], xl = {
|
|
|
613
613
|
(r = t.value) != null && r.viewer && (t.value.viewer.removeHandler("canvas-contextmenu", h), t.value.viewer.removeHandler("canvas-click", l)), document.body.removeEventListener("click", l);
|
|
614
614
|
});
|
|
615
615
|
function h(r) {
|
|
616
|
-
r.preventDefault = !0,
|
|
616
|
+
r.preventDefault = !0, n.value.top = `${r.position.y}px`, n.value.left = `${r.position.x}px`, n.value.display === "block" ? n.value.display = "none" : n.value.display = "block";
|
|
617
617
|
}
|
|
618
618
|
function l() {
|
|
619
|
-
|
|
619
|
+
n.value.display = "none";
|
|
620
620
|
}
|
|
621
621
|
function a(r, s) {
|
|
622
|
-
r.children || ((s == null ? void 0 : s.value) === "annotate" ?
|
|
622
|
+
r.children || ((s == null ? void 0 : s.value) === "annotate" ? c("tool", "annotate", {
|
|
623
623
|
tool: r.value.substring(0, 1).toLocaleUpperCase() + r.value.substring(1),
|
|
624
624
|
once: !0
|
|
625
|
-
}) : r.value === "tailor_now" ?
|
|
625
|
+
}) : r.value === "tailor_now" ? c("tool", "tailor", !0) : c("tool", r.value), l());
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function p(r) {
|
|
628
628
|
return r == null || typeof r != "object" && typeof r != "function" ? !1 : (
|
|
629
629
|
// 函数式组件
|
|
630
630
|
typeof r == "function" || // 对象式组件
|
|
631
631
|
"render" in r || "setup" in r
|
|
632
632
|
);
|
|
633
633
|
}
|
|
634
|
-
return (r, s) => (
|
|
634
|
+
return (r, s) => (_(), L("div", {
|
|
635
635
|
class: "hzzt-kfb-menu",
|
|
636
|
-
style:
|
|
636
|
+
style: Z(n.value)
|
|
637
637
|
}, [
|
|
638
|
-
(
|
|
638
|
+
(_(!0), L(le, null, oe(g.value, (m, w) => (_(), L("div", {
|
|
639
639
|
key: w,
|
|
640
640
|
class: "hzzt-kfb-menu-item"
|
|
641
641
|
}, [
|
|
642
642
|
b("div", {
|
|
643
643
|
class: "flex align-items-center",
|
|
644
|
-
onClick: (k) => a(
|
|
644
|
+
onClick: (k) => a(m)
|
|
645
645
|
}, [
|
|
646
|
-
m
|
|
646
|
+
p(m.icon) ? (_(), P(o(_e), {
|
|
647
647
|
key: 0,
|
|
648
648
|
class: "margin-r-3",
|
|
649
649
|
size: 18
|
|
650
650
|
}, {
|
|
651
651
|
default: x(() => [
|
|
652
|
-
(
|
|
652
|
+
(_(), P(xe(m.icon)))
|
|
653
653
|
]),
|
|
654
654
|
_: 2
|
|
655
|
-
}, 1024)) :
|
|
655
|
+
}, 1024)) : m.icon ? (_(), L("img", {
|
|
656
656
|
key: 1,
|
|
657
657
|
style: { width: "18px" },
|
|
658
658
|
class: "margin-r-2",
|
|
659
|
-
src:
|
|
660
|
-
}, null, 8,
|
|
661
|
-
b("span", null,
|
|
662
|
-
], 8,
|
|
663
|
-
|
|
659
|
+
src: m.icon
|
|
660
|
+
}, null, 8, El)) : (_(), L("div", Vl)),
|
|
661
|
+
b("span", null, E(m.label), 1)
|
|
662
|
+
], 8, xl),
|
|
663
|
+
m.children ? (_(), P(X, {
|
|
664
664
|
key: 0,
|
|
665
665
|
name: "arrowRight",
|
|
666
666
|
class: "margin-r-2",
|
|
667
667
|
size: 14
|
|
668
668
|
})) : A("", !0),
|
|
669
|
-
|
|
670
|
-
(
|
|
671
|
-
key:
|
|
669
|
+
m.children ? (_(), L("div", Ml, [
|
|
670
|
+
(_(!0), L(le, null, oe(m.children, (k, v) => (_(), L("div", {
|
|
671
|
+
key: v,
|
|
672
672
|
class: "hzzt-kfb-menu-item",
|
|
673
|
-
onClick: (
|
|
673
|
+
onClick: (M) => a(k, m)
|
|
674
674
|
}, [
|
|
675
|
-
b("div",
|
|
676
|
-
|
|
675
|
+
b("div", Sl, [
|
|
676
|
+
p(k.icon) ? (_(), P(o(_e), {
|
|
677
677
|
key: 0,
|
|
678
678
|
class: "margin-r-2",
|
|
679
679
|
size: 18
|
|
680
680
|
}, {
|
|
681
681
|
default: x(() => [
|
|
682
|
-
(
|
|
682
|
+
(_(), P(xe(k.icon)))
|
|
683
683
|
]),
|
|
684
684
|
_: 2
|
|
685
|
-
}, 1024)) : k.icon ? (
|
|
685
|
+
}, 1024)) : k.icon ? (_(), L("img", {
|
|
686
686
|
key: 1,
|
|
687
687
|
style: { width: "18px" },
|
|
688
688
|
class: "margin-r-2",
|
|
689
689
|
src: k.icon
|
|
690
|
-
}, null, 8,
|
|
691
|
-
b("span", null,
|
|
690
|
+
}, null, 8, Hl)) : (_(), L("div", Pl)),
|
|
691
|
+
b("span", null, E(k.label), 1)
|
|
692
692
|
])
|
|
693
|
-
], 8,
|
|
693
|
+
], 8, Il))), 128))
|
|
694
694
|
])) : A("", !0)
|
|
695
695
|
]))), 128))
|
|
696
696
|
], 4));
|
|
697
697
|
}
|
|
698
|
-
}), he = (
|
|
699
|
-
const
|
|
700
|
-
for (const [t,
|
|
701
|
-
|
|
702
|
-
return
|
|
703
|
-
},
|
|
698
|
+
}), he = (u, e) => {
|
|
699
|
+
const n = u.__vccOpts || u;
|
|
700
|
+
for (const [t, y] of e)
|
|
701
|
+
n[t] = y;
|
|
702
|
+
return n;
|
|
703
|
+
}, Al = /* @__PURE__ */ he(Rl, [["__scopeId", "data-v-414722d0"]]), Nl = {
|
|
704
704
|
key: 0,
|
|
705
705
|
class: "hzzt-kfb-microscope"
|
|
706
|
-
},
|
|
706
|
+
}, Bl = /* @__PURE__ */ ee({
|
|
707
707
|
__name: "KfbMicroscope",
|
|
708
|
-
props: /* @__PURE__ */
|
|
708
|
+
props: /* @__PURE__ */ ol({
|
|
709
709
|
shape: {},
|
|
710
710
|
width: {},
|
|
711
711
|
color: {},
|
|
712
712
|
borderWidth: {}
|
|
713
713
|
}, j({}, lt)),
|
|
714
|
-
setup(
|
|
715
|
-
const
|
|
716
|
-
ne(() =>
|
|
714
|
+
setup(u, { expose: e }) {
|
|
715
|
+
const n = u, t = ot(j(j({}, lt), n));
|
|
716
|
+
ne(() => n, (l) => {
|
|
717
717
|
h({ name: "change", value: l });
|
|
718
718
|
});
|
|
719
|
-
const
|
|
719
|
+
const y = $("200px"), d = $(!1), c = B(() => ({
|
|
720
720
|
borderRadius: t.shape,
|
|
721
721
|
borderColor: t.color,
|
|
722
722
|
borderWidth: t.borderWidth + "px",
|
|
723
|
-
width:
|
|
724
|
-
height:
|
|
723
|
+
width: y.value,
|
|
724
|
+
height: y.value
|
|
725
725
|
})), i = J("kfbView", $({}));
|
|
726
726
|
ne(() => i.value, (l, a) => {
|
|
727
727
|
a != null && a.viewer && a.viewer.removeHandler("zoom", f), l != null && l.viewer && l.viewer.addHandler("zoom", f);
|
|
@@ -738,47 +738,47 @@ const $l = ["onClick"], Ll = ["src"], xl = {
|
|
|
738
738
|
}, 100);
|
|
739
739
|
}
|
|
740
740
|
function g(l) {
|
|
741
|
-
let { x: a, y:
|
|
742
|
-
l === "top" ?
|
|
741
|
+
let { x: a, y: p } = i.value.viewer.viewport.getCenter(!0);
|
|
742
|
+
l === "top" ? p -= 6e-3 : l === "bottom" ? p += 6e-3 : l === "left" ? a -= 6e-3 : l === "right" && (a += 6e-3), i.value.area.moveToLabel({ x: a, y: p });
|
|
743
743
|
}
|
|
744
744
|
function h({ name: l, value: a }) {
|
|
745
745
|
var r, s;
|
|
746
|
-
const
|
|
746
|
+
const p = (s = (r = i.value.$options) == null ? void 0 : r.pxConversion) == null ? void 0 : s.imageCapRes;
|
|
747
747
|
if (l === "visible") {
|
|
748
|
-
if (
|
|
749
|
-
const
|
|
748
|
+
if (d.value = a, a) {
|
|
749
|
+
const m = i.value.area.imageToViewerElementRectangle(
|
|
750
750
|
{
|
|
751
751
|
x: 0,
|
|
752
752
|
y: 0,
|
|
753
|
-
width: t.width * 1e3 /
|
|
754
|
-
height: t.width * 1e3 /
|
|
753
|
+
width: t.width * 1e3 / p,
|
|
754
|
+
height: t.width * 1e3 / p
|
|
755
755
|
}
|
|
756
756
|
);
|
|
757
|
-
|
|
757
|
+
y.value = m.width + "px";
|
|
758
758
|
}
|
|
759
759
|
} else if (l === "change") {
|
|
760
760
|
Object.assign(t, a);
|
|
761
|
-
const
|
|
761
|
+
const m = i.value.area.imageToViewerElementRectangle(
|
|
762
762
|
{
|
|
763
763
|
x: 0,
|
|
764
764
|
y: 0,
|
|
765
|
-
width: t.width * 1e3 /
|
|
766
|
-
height: t.width * 1e3 /
|
|
765
|
+
width: t.width * 1e3 / p,
|
|
766
|
+
height: t.width * 1e3 / p
|
|
767
767
|
}
|
|
768
768
|
);
|
|
769
|
-
|
|
769
|
+
y.value = m.width + "px";
|
|
770
770
|
}
|
|
771
771
|
}
|
|
772
772
|
return e({
|
|
773
773
|
scopeChange: h
|
|
774
|
-
}), (l, a) =>
|
|
774
|
+
}), (l, a) => d.value ? (_(), L("div", Nl, [
|
|
775
775
|
b("div", {
|
|
776
776
|
class: "hzzt-kfb-microscope__container",
|
|
777
|
-
style:
|
|
777
|
+
style: Z(c.value)
|
|
778
778
|
}, null, 4),
|
|
779
779
|
b("div", {
|
|
780
780
|
class: "hzzt-kfb-microscope__top",
|
|
781
|
-
onClick: a[0] || (a[0] = (
|
|
781
|
+
onClick: a[0] || (a[0] = (p) => g("top"))
|
|
782
782
|
}, [
|
|
783
783
|
T(X, {
|
|
784
784
|
size: "24",
|
|
@@ -787,7 +787,7 @@ const $l = ["onClick"], Ll = ["src"], xl = {
|
|
|
787
787
|
]),
|
|
788
788
|
b("div", {
|
|
789
789
|
class: "hzzt-kfb-microscope__bottom",
|
|
790
|
-
onClick: a[1] || (a[1] = (
|
|
790
|
+
onClick: a[1] || (a[1] = (p) => g("bottom"))
|
|
791
791
|
}, [
|
|
792
792
|
T(X, {
|
|
793
793
|
size: "24",
|
|
@@ -796,7 +796,7 @@ const $l = ["onClick"], Ll = ["src"], xl = {
|
|
|
796
796
|
]),
|
|
797
797
|
b("div", {
|
|
798
798
|
class: "hzzt-kfb-microscope__left",
|
|
799
|
-
onClick: a[2] || (a[2] = (
|
|
799
|
+
onClick: a[2] || (a[2] = (p) => g("left"))
|
|
800
800
|
}, [
|
|
801
801
|
T(X, {
|
|
802
802
|
size: "24",
|
|
@@ -805,7 +805,7 @@ const $l = ["onClick"], Ll = ["src"], xl = {
|
|
|
805
805
|
]),
|
|
806
806
|
b("div", {
|
|
807
807
|
class: "hzzt-kfb-microscope__right",
|
|
808
|
-
onClick: a[3] || (a[3] = (
|
|
808
|
+
onClick: a[3] || (a[3] = (p) => g("right"))
|
|
809
809
|
}, [
|
|
810
810
|
T(X, {
|
|
811
811
|
size: "24",
|
|
@@ -814,13 +814,13 @@ const $l = ["onClick"], Ll = ["src"], xl = {
|
|
|
814
814
|
])
|
|
815
815
|
])) : A("", !0);
|
|
816
816
|
}
|
|
817
|
-
}),
|
|
817
|
+
}), Dl = /* @__PURE__ */ he(Bl, [["__scopeId", "data-v-e8b36101"]]), Ul = { class: "hzzt-kfb-label flex column" }, Fl = { class: "hzzt-kfb-label__img flex justify-content-center" }, Kl = ["src"], jl = { class: "ellipsis flex-1" }, Ol = {
|
|
818
818
|
class: "flex margin-b-4",
|
|
819
819
|
style: { width: "100%" }
|
|
820
|
-
},
|
|
820
|
+
}, Gl = {
|
|
821
821
|
class: "flex margin overflow-hidden",
|
|
822
822
|
style: { height: "132px" }
|
|
823
|
-
},
|
|
823
|
+
}, Wl = ["src"], Zl = ["src"], ql = /* @__PURE__ */ ee({
|
|
824
824
|
__name: "KfbLabel",
|
|
825
825
|
props: {
|
|
826
826
|
info: {},
|
|
@@ -828,136 +828,136 @@ const $l = ["onClick"], Ll = ["src"], xl = {
|
|
|
828
828
|
pathologyHandle: { type: Function }
|
|
829
829
|
},
|
|
830
830
|
emits: ["tool"],
|
|
831
|
-
setup(
|
|
832
|
-
const { t:
|
|
831
|
+
setup(u, { emit: e }) {
|
|
832
|
+
const { t: n } = ie(), t = u, y = e, d = $(!0), c = $(!1), i = B(() => t.slide.pathology_id ? n("修改病理号") : n("绑定病理号"));
|
|
833
833
|
function f() {
|
|
834
|
-
t.slide.angle || (t.slide.angle = 0), t.slide.angle += 90, t.slide.angle > 360 && (t.slide.angle = t.slide.angle % 360),
|
|
834
|
+
t.slide.angle || (t.slide.angle = 0), t.slide.angle += 90, t.slide.angle > 360 && (t.slide.angle = t.slide.angle % 360), y("tool", "rotate", t.slide.angle);
|
|
835
835
|
}
|
|
836
836
|
function g() {
|
|
837
|
-
|
|
837
|
+
c.value = !0;
|
|
838
838
|
}
|
|
839
839
|
function h() {
|
|
840
840
|
t.pathologyHandle && t.pathologyHandle(t.slide).then(() => {
|
|
841
|
-
|
|
841
|
+
c.value = !1;
|
|
842
842
|
});
|
|
843
843
|
}
|
|
844
|
-
return (l, a) => (
|
|
845
|
-
$e(b("div", { class: "hzzt-kfb-label__title" },
|
|
846
|
-
[
|
|
844
|
+
return (l, a) => (_(), L("div", Ul, [
|
|
845
|
+
$e(b("div", { class: "hzzt-kfb-label__title" }, E(o(n)(`点击标签旋转${l.pathologyHandle ? ",点击病理号重绑" : ""}`)), 513), [
|
|
846
|
+
[Pe, d.value]
|
|
847
847
|
]),
|
|
848
|
-
$e(b("div",
|
|
848
|
+
$e(b("div", Fl, [
|
|
849
849
|
b("img", {
|
|
850
850
|
src: l.info.labelImg,
|
|
851
|
-
style:
|
|
851
|
+
style: Z({ transform: `rotate(${l.slide.angle}deg)` }),
|
|
852
852
|
onClick: f
|
|
853
|
-
}, null, 12,
|
|
853
|
+
}, null, 12, Kl)
|
|
854
854
|
], 512), [
|
|
855
|
-
[
|
|
855
|
+
[Pe, d.value]
|
|
856
856
|
]),
|
|
857
|
-
l.pathologyHandle ? $e((
|
|
857
|
+
l.pathologyHandle ? $e((_(), L("div", {
|
|
858
858
|
key: 0,
|
|
859
859
|
class: "hzzt-kfb-label__pathology flex align-items-center justify-content-between",
|
|
860
860
|
onClick: g
|
|
861
861
|
}, [
|
|
862
|
-
b("span",
|
|
862
|
+
b("span", jl, E(l.slide.pathology_number), 1),
|
|
863
863
|
T(X, {
|
|
864
864
|
size: "14",
|
|
865
865
|
name: "annotate"
|
|
866
866
|
})
|
|
867
867
|
], 512)), [
|
|
868
|
-
[
|
|
868
|
+
[Pe, d.value]
|
|
869
869
|
]) : A("", !0),
|
|
870
870
|
b("span", {
|
|
871
|
-
onClick: a[0] || (a[0] = (
|
|
872
|
-
style:
|
|
873
|
-
transform: `translateY(${
|
|
871
|
+
onClick: a[0] || (a[0] = (p) => d.value = !d.value),
|
|
872
|
+
style: Z({
|
|
873
|
+
transform: `translateY(${d.value ? "-50%" : 0})`
|
|
874
874
|
}),
|
|
875
875
|
class: "hzzt-kfb-label__expend flex align-items-center justify-content-center"
|
|
876
876
|
}, [
|
|
877
|
-
|
|
877
|
+
d.value ? (_(), P(X, {
|
|
878
878
|
key: 0,
|
|
879
879
|
size: "10",
|
|
880
880
|
name: "arrowLeft"
|
|
881
|
-
})) : (
|
|
881
|
+
})) : (_(), P(X, {
|
|
882
882
|
key: 1,
|
|
883
883
|
size: "10",
|
|
884
884
|
name: "arrowRight"
|
|
885
885
|
}))
|
|
886
886
|
], 4),
|
|
887
|
-
T(
|
|
888
|
-
modelValue:
|
|
889
|
-
"onUpdate:modelValue": a[5] || (a[5] = (
|
|
887
|
+
T(o(je), {
|
|
888
|
+
modelValue: c.value,
|
|
889
|
+
"onUpdate:modelValue": a[5] || (a[5] = (p) => c.value = p),
|
|
890
890
|
"append-to-body": !0,
|
|
891
891
|
title: i.value,
|
|
892
892
|
width: "450px"
|
|
893
893
|
}, {
|
|
894
894
|
footer: x(() => [
|
|
895
|
-
T(
|
|
896
|
-
onClick: a[4] || (a[4] = (
|
|
895
|
+
T(o(ge), {
|
|
896
|
+
onClick: a[4] || (a[4] = (p) => c.value = !1)
|
|
897
897
|
}, {
|
|
898
898
|
default: x(() => [
|
|
899
|
-
G(
|
|
899
|
+
G(E(o(n)("取消")), 1)
|
|
900
900
|
]),
|
|
901
901
|
_: 1
|
|
902
902
|
}),
|
|
903
|
-
T(
|
|
903
|
+
T(o(ge), {
|
|
904
904
|
type: "primary",
|
|
905
905
|
onClick: h
|
|
906
906
|
}, {
|
|
907
907
|
default: x(() => [
|
|
908
|
-
G(
|
|
908
|
+
G(E(o(n)("确认")), 1)
|
|
909
909
|
]),
|
|
910
910
|
_: 1
|
|
911
911
|
})
|
|
912
912
|
]),
|
|
913
913
|
default: x(() => [
|
|
914
|
-
b("div",
|
|
915
|
-
b("div",
|
|
914
|
+
b("div", Ol, [
|
|
915
|
+
b("div", Gl, [
|
|
916
916
|
b("img", {
|
|
917
917
|
src: l.slide.labelImg
|
|
918
|
-
}, null, 8,
|
|
918
|
+
}, null, 8, Wl),
|
|
919
919
|
b("img", {
|
|
920
920
|
src: l.slide.previewImg
|
|
921
|
-
}, null, 8,
|
|
921
|
+
}, null, 8, Zl)
|
|
922
922
|
])
|
|
923
923
|
]),
|
|
924
|
-
T(
|
|
924
|
+
T(o(tt), { class: "margin-t-2" }, {
|
|
925
925
|
default: x(() => [
|
|
926
|
-
T(
|
|
927
|
-
label: n
|
|
926
|
+
T(o(se), {
|
|
927
|
+
label: o(n)("病理号")
|
|
928
928
|
}, {
|
|
929
929
|
default: x(() => [
|
|
930
|
-
T(
|
|
930
|
+
T(o(et), {
|
|
931
931
|
modelValue: l.slide.pathology_number,
|
|
932
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
933
|
-
placeholder: n
|
|
932
|
+
"onUpdate:modelValue": a[1] || (a[1] = (p) => l.slide.pathology_number = p),
|
|
933
|
+
placeholder: o(n)("输入病理号"),
|
|
934
934
|
clearable: ""
|
|
935
935
|
}, null, 8, ["modelValue", "placeholder"])
|
|
936
936
|
]),
|
|
937
937
|
_: 1
|
|
938
938
|
}, 8, ["label"]),
|
|
939
|
-
T(
|
|
940
|
-
label: n
|
|
939
|
+
T(o(se), {
|
|
940
|
+
label: o(n)("蜡块号")
|
|
941
941
|
}, {
|
|
942
942
|
default: x(() => [
|
|
943
|
-
T(
|
|
943
|
+
T(o(et), {
|
|
944
944
|
modelValue: l.slide.paraffin_block_number,
|
|
945
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
946
|
-
placeholder: n
|
|
945
|
+
"onUpdate:modelValue": a[2] || (a[2] = (p) => l.slide.paraffin_block_number = p),
|
|
946
|
+
placeholder: o(n)("输入蜡块号"),
|
|
947
947
|
clearable: ""
|
|
948
948
|
}, null, 8, ["modelValue", "placeholder"])
|
|
949
949
|
]),
|
|
950
950
|
_: 1
|
|
951
951
|
}, 8, ["label"]),
|
|
952
|
-
l.slide.slide_id ? A("", !0) : (
|
|
952
|
+
l.slide.slide_id ? A("", !0) : (_(), P(o(se), {
|
|
953
953
|
key: 0,
|
|
954
|
-
label: n
|
|
954
|
+
label: o(n)("试剂")
|
|
955
955
|
}, {
|
|
956
956
|
default: x(() => [
|
|
957
|
-
T(
|
|
957
|
+
T(o(et), {
|
|
958
958
|
modelValue: l.slide.reagent,
|
|
959
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
960
|
-
placeholder: n
|
|
959
|
+
"onUpdate:modelValue": a[3] || (a[3] = (p) => l.slide.reagent = p),
|
|
960
|
+
placeholder: o(n)("输入试剂"),
|
|
961
961
|
clearable: ""
|
|
962
962
|
}, null, 8, ["modelValue", "placeholder"])
|
|
963
963
|
]),
|
|
@@ -971,87 +971,87 @@ const $l = ["onClick"], Ll = ["src"], xl = {
|
|
|
971
971
|
}, 8, ["modelValue", "title"])
|
|
972
972
|
]));
|
|
973
973
|
}
|
|
974
|
-
}),
|
|
975
|
-
function
|
|
976
|
-
const
|
|
977
|
-
function
|
|
978
|
-
|
|
974
|
+
}), Yl = /* @__PURE__ */ he(ql, [["__scopeId", "data-v-7397de48"]]);
|
|
975
|
+
function Xl(u, e) {
|
|
976
|
+
const n = $(1), t = $(null), y = $(null);
|
|
977
|
+
function d() {
|
|
978
|
+
u.value.viewer.addHandler("canvas-drag", (i) => {
|
|
979
979
|
t.value || (t.value = i.position);
|
|
980
|
-
}),
|
|
981
|
-
if (
|
|
982
|
-
|
|
983
|
-
const f =
|
|
984
|
-
|
|
980
|
+
}), u.value.viewer.addHandler("canvas-drag-end", (i) => {
|
|
981
|
+
if (n.value !== 1) {
|
|
982
|
+
y.value = i.position;
|
|
983
|
+
const f = u.value.viewer.viewport.containerSize.x, g = u.value.viewer.viewport.containerSize.y, h = (y.value.x - t.value.x) / (f * e.value) * (n.value - 1), l = (y.value.y - t.value.y) / (g * e.value) * (n.value - 1), a = u.value.viewer.viewport.getCenter(), p = new Te.Point(a.x - h, a.y - l);
|
|
984
|
+
u.value.viewer.viewport.panTo(p), t.value = null;
|
|
985
985
|
}
|
|
986
986
|
});
|
|
987
987
|
}
|
|
988
|
-
function
|
|
989
|
-
i === "ratio" && (
|
|
988
|
+
function c({ name: i, value: f }) {
|
|
989
|
+
i === "ratio" && (n.value = f / 1);
|
|
990
990
|
}
|
|
991
991
|
return {
|
|
992
|
-
moveEvent:
|
|
993
|
-
fastMove:
|
|
992
|
+
moveEvent: d,
|
|
993
|
+
fastMove: c
|
|
994
994
|
};
|
|
995
995
|
}
|
|
996
|
-
function
|
|
997
|
-
const
|
|
998
|
-
ne(() =>
|
|
996
|
+
function Ql(u, e, n, t, y) {
|
|
997
|
+
const d = $(void 0), c = $([]);
|
|
998
|
+
ne(() => u.aiLabelList, h);
|
|
999
999
|
function i() {
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
}),
|
|
1003
|
-
|
|
1000
|
+
n.value.$on(ce.events.EVENT_END_PAINTING, f("add")), n.value.$on(ce.events.EVENT_AREA_MOVE_END, f("move")), n.value.$on(ce.events.EVENT_ADD_POLYGON_POINT, f("add-point")), n.value.$on(ce.events.EVENT_DELETE_POLYGON_POINT, f("delete-point")), n.value.$on(ce.events.EVENT_DELETE_LABEL, f("delete")), n.value.$on(ce.events.EVENT_SELECT_LABEL, (r) => {
|
|
1001
|
+
d.value = r, p(), e("tool", "select-label", d.value);
|
|
1002
|
+
}), n.value.$on(ce.events.EVENT_CANCEL_SELECT_LABEL, () => {
|
|
1003
|
+
d.value = void 0, e("tool", "cancel-select-label", d.value);
|
|
1004
1004
|
}), f("list")();
|
|
1005
1005
|
}
|
|
1006
1006
|
function f(r) {
|
|
1007
1007
|
return (s) => g(r, s);
|
|
1008
1008
|
}
|
|
1009
1009
|
function g(r, s) {
|
|
1010
|
-
var
|
|
1011
|
-
if (r === "add" && s && ((s == null ? void 0 : s.subType) || ((
|
|
1010
|
+
var m;
|
|
1011
|
+
if (r === "add" && s && ((s == null ? void 0 : s.subType) || ((m = s == null ? void 0 : s.__data__) == null ? void 0 : m.subType)) === "voice")
|
|
1012
1012
|
t(s);
|
|
1013
1013
|
else
|
|
1014
|
-
return
|
|
1015
|
-
|
|
1014
|
+
return u.labelHandle(r, u.slide, s).then((w) => {
|
|
1015
|
+
c.value = w, h();
|
|
1016
1016
|
}).catch(() => {
|
|
1017
1017
|
h();
|
|
1018
1018
|
});
|
|
1019
1019
|
}
|
|
1020
1020
|
function h() {
|
|
1021
1021
|
var r;
|
|
1022
|
-
if ((r =
|
|
1023
|
-
const s = [...
|
|
1024
|
-
s.find(({ id:
|
|
1022
|
+
if ((r = n.value) != null && r.initLabelList) {
|
|
1023
|
+
const s = [...c.value, ...u.aiLabelList || []];
|
|
1024
|
+
s.find(({ id: m }) => {
|
|
1025
1025
|
var w;
|
|
1026
|
-
return
|
|
1027
|
-
}) || (
|
|
1026
|
+
return m === ((w = d.value) == null ? void 0 : w.id);
|
|
1027
|
+
}) || (d.value = void 0), n.value.initLabelList(s);
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
1030
|
function l(r, s) {
|
|
1031
1031
|
var w, k;
|
|
1032
|
-
|
|
1033
|
-
const
|
|
1034
|
-
if (
|
|
1035
|
-
|
|
1036
|
-
const
|
|
1037
|
-
|
|
1038
|
-
}
|
|
1039
|
-
s &&
|
|
1032
|
+
d.value && (d.value.select = !1, d.value = void 0);
|
|
1033
|
+
const m = (n.value.labelList || []).findIndex((v) => v.id === r.id);
|
|
1034
|
+
if (m > -1) {
|
|
1035
|
+
d.value = (w = n.value.labelList) == null ? void 0 : w[m], d.value.select = !0;
|
|
1036
|
+
const v = n.value.area.getCenterPoint(r.region);
|
|
1037
|
+
n.value.area.moveToLabel(v), (k = n.value.viewer) != null && k.canvas && n.value.viewer.canvas.focus(), p();
|
|
1038
|
+
}
|
|
1039
|
+
s && y(s);
|
|
1040
1040
|
}
|
|
1041
1041
|
function a(r) {
|
|
1042
|
-
return
|
|
1043
|
-
|
|
1042
|
+
return u.labelHandle("add", u.slide, r).then((s) => {
|
|
1043
|
+
c.value = s, h();
|
|
1044
1044
|
}).catch(() => {
|
|
1045
1045
|
h();
|
|
1046
1046
|
});
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1049
|
-
var s,
|
|
1050
|
-
(((s =
|
|
1048
|
+
function p() {
|
|
1049
|
+
var s, m, w, k;
|
|
1050
|
+
(((s = d.value) == null ? void 0 : s.subType) || ((w = (m = d.value) == null ? void 0 : m.__data__) == null ? void 0 : w.subType)) === "voice" && ((k = d.value) != null && k.src) && new Audio(d.value.src).play();
|
|
1051
1051
|
}
|
|
1052
1052
|
return {
|
|
1053
|
-
currentLabel:
|
|
1054
|
-
localLabelList:
|
|
1053
|
+
currentLabel: d,
|
|
1054
|
+
localLabelList: c,
|
|
1055
1055
|
initLabel: i,
|
|
1056
1056
|
jumpToLabel: l,
|
|
1057
1057
|
reloadLabelList: h,
|
|
@@ -1059,74 +1059,74 @@ function Yl(c, e, o, t, _) {
|
|
|
1059
1059
|
addHandle: a
|
|
1060
1060
|
};
|
|
1061
1061
|
}
|
|
1062
|
-
function
|
|
1063
|
-
function
|
|
1064
|
-
e.save(), e.strokeStyle = "rgba(0,0,0,0)", e.miterLimit = 4, e.font = "15px", e.fillStyle =
|
|
1062
|
+
function Jl() {
|
|
1063
|
+
function u(e, n) {
|
|
1064
|
+
e.save(), e.strokeStyle = "rgba(0,0,0,0)", e.miterLimit = 4, e.font = "15px", e.fillStyle = n, e.font = "15px", e.scale(0.02734375, 0.02734375), e.save(), e.font = "15px", e.beginPath(), e.moveTo(512, 427.023), e.moveTo(422, 427.023), e.translate(512, 427.023), e.rotate(0), e.arc(0, 0, 90, 3.141592653589793, 6.283185307179586, !0), e.rotate(0), e.translate(-512, -427.023), e.translate(512, 427.023), e.rotate(0), e.arc(0, 0, 90, 0, 3.141592653589793, !0), e.rotate(0), e.translate(-512, -427.023), e.fill(), e.stroke(), e.restore(), e.save(), e.font = "15px", e.beginPath(), e.moveTo(512, 910.402), e.bezierCurveTo(492.86, 910.402, 474.51800000000003, 904.548, 458.95799999999997, 893.4730000000001), e.bezierCurveTo(444.895, 883.4630000000001, 434.032, 869.8770000000001, 427.36899999999997, 854.013), e.lineTo(255.043, 585.177), e.lineTo(254.889, 584.927), e.bezierCurveTo(225.522, 537.209, 210, 482.605, 210, 427.021), e.bezierCurveTo(210, 346.35400000000004, 241.414, 270.515, 298.454, 213.47500000000002), e.bezierCurveTo(355.494, 156.43500000000006, 431.333, 125.021, 512, 125.021), e.bezierCurveTo(592.6669999999999, 125.021, 668.506, 156.435, 725.546, 213.475), e.bezierCurveTo(782.587, 270.515, 814, 346.354, 814, 427.021), e.bezierCurveTo(814, 482.87, 798.345, 537.692, 768.726, 585.56), e.lineTo(768.462, 585.9789999999999), e.lineTo(596.381, 854.6949999999999), e.bezierCurveTo(589.626, 870.4209999999999, 578.721, 883.871, 564.677, 893.7499999999999), e.bezierCurveTo(549.192, 904.6449999999999, 530.977, 910.4019999999999, 512, 910.4019999999999), e.closePath(), e.moveTo(309.246, 551.141), e.lineTo(484.74, 824.9209999999999), e.lineTo(485.934, 828.1179999999999), e.bezierCurveTo(490.083, 839.2249999999999, 500.31500000000005, 846.4019999999999, 512, 846.4019999999999), e.bezierCurveTo(523.584, 846.4019999999999, 533.791, 839.3309999999999, 538.004, 828.387), e.lineTo(539.169, 825.3589999999999), e.lineTo(714.43, 551.678), e.bezierCurveTo(737.701, 513.983, 750, 470.884, 750, 427.021), e.bezierCurveTo(750, 363.449, 725.244, 303.682, 680.2909999999999, 258.72900000000004), e.bezierCurveTo(635.3389999999999, 213.77800000000005, 575.5719999999999, 189.02100000000004, 511.99999999999994, 189.02100000000004), e.bezierCurveTo(448.428, 189.02100000000004, 388.66099999999994, 213.77700000000004, 343.70799999999997, 258.72900000000004), e.bezierCurveTo(298.755, 303.68100000000004, 274, 363.449, 274, 427.021), e.bezierCurveTo(274, 470.661, 286.186, 513.573, 309.246, 551.1410000000001), e.closePath(), e.fill(), e.stroke(), e.restore(), e.restore();
|
|
1065
1065
|
}
|
|
1066
1066
|
return {
|
|
1067
|
-
drawDot:
|
|
1067
|
+
drawDot: u
|
|
1068
1068
|
};
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1071
|
-
const { t:
|
|
1072
|
-
let
|
|
1073
|
-
const
|
|
1070
|
+
function eo(u, e) {
|
|
1071
|
+
const { t: n } = ie(), t = $(!1), y = $();
|
|
1072
|
+
let d = null;
|
|
1073
|
+
const c = $(!1), i = $(0);
|
|
1074
1074
|
let f = 0;
|
|
1075
1075
|
const g = $([]), h = $(void 0);
|
|
1076
1076
|
let l = !1;
|
|
1077
|
-
function a(
|
|
1078
|
-
|
|
1077
|
+
function a(v, M) {
|
|
1078
|
+
v.save(), v.strokeStyle = "rgba(0,0,0,0)", v.miterLimit = 4, v.font = "15px ''", v.fillStyle = M, v.font = " 15px ''", v.scale(0.03125, 0.03125), v.save(), v.font = " 15px ''", v.beginPath(), v.moveTo(515.041727, 670.617766), v.bezierCurveTo(606.625894, 670.617766, 681.137374, 596.113511, 681.137374, 504.52212), v.lineTo(681.137374, 229.350568), v.bezierCurveTo(681.137374, 137.76640100000003, 606.625894, 63.254920999999996, 515.041727, 63.254920999999996), v.bezierCurveTo(423.44311000000005, 63.254920999999996, 348.93885500000005, 137.766401, 348.93885600000004, 229.350568), v.lineTo(348.93885600000004, 504.52212), v.bezierCurveTo(348.93885600000004, 596.113512, 423.44311100000004, 670.617767, 515.041727, 670.617766), v.closePath(), v.fill(), v.stroke(), v.restore(), v.save(), v.font = " 15px ''", v.beginPath(), v.moveTo(801.643237, 874.001665), v.lineTo(558.391759, 874.001665), v.lineTo(558.391759, 828.578057), v.bezierCurveTo(719.899527, 807.264291, 844.993269, 668.7898399999999, 844.993269, 501.55986699999994), v.translate(801.643237, 501.55986699999994), v.rotate(0), v.arc(0, 0, 43.350032, 0, 3.141592653589793, !0), v.rotate(0), v.translate(-801.643237, -501.55986699999994), v.bezierCurveTo(758.2932050000001, 635.684865, 649.166725, 744.811345, 515.0345020000001, 744.811346), v.bezierCurveTo(380.9095040000001, 744.811346, 271.79024900000013, 635.6848659999999, 271.79024900000013, 501.55986699999994), v.translate(228.44021750000013, 501.5664510740879), v.rotate(0), v.arc(0, 0, 43.350032, -15188164315591997e-20, -3.1414407719461273, !0), v.rotate(0), v.translate(-228.44021750000013, -501.5664510740879), v.bezierCurveTo(185.09018600000013, 668.7898389999999, 310.1911530000001, 807.271516, 471.69169500000015, 828.578057), v.lineTo(471.69169500000015, 874.001665), v.lineTo(228.440217, 874.001665), v.translate(228.440217, 917.3516970000001), v.rotate(0), v.arc(0, 0, 43.350032, -1.5707963267948966, 1.5707963267948966, !0), v.rotate(0), v.translate(-228.440217, -917.3516970000001), v.lineTo(801.643237, 960.701729), v.translate(801.643237, 917.3516970000001), v.rotate(0), v.arc(0, 0, 43.350032, 1.5707963267948966, 4.71238898038469, !0), v.rotate(0), v.translate(-801.643237, -917.3516970000001), v.closePath(), v.fill(), v.stroke(), v.restore(), v.restore();
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1080
|
+
function p() {
|
|
1081
1081
|
return Ce(this, null, function* () {
|
|
1082
1082
|
try {
|
|
1083
|
-
|
|
1084
|
-
g.value.push(
|
|
1085
|
-
}),
|
|
1083
|
+
y.value = yield navigator.mediaDevices.getUserMedia({ audio: !0 }), d = new MediaRecorder(y.value), g.value = [], d.addEventListener("dataavailable", (v) => {
|
|
1084
|
+
g.value.push(v.data);
|
|
1085
|
+
}), d.addEventListener("stop", () => Ce(this, null, function* () {
|
|
1086
1086
|
if (h.value) {
|
|
1087
|
-
const
|
|
1088
|
-
h.value.src = URL.createObjectURL(
|
|
1087
|
+
const v = new Blob(g.value, { type: u.audioType || "audio/wav" });
|
|
1088
|
+
h.value.src = URL.createObjectURL(v);
|
|
1089
1089
|
}
|
|
1090
|
-
|
|
1091
|
-
})),
|
|
1090
|
+
c.value = !1, l && (yield k());
|
|
1091
|
+
})), d.start(), c.value = !0, f = window.setInterval(() => {
|
|
1092
1092
|
i.value++;
|
|
1093
1093
|
}, 1e3);
|
|
1094
|
-
} catch (
|
|
1095
|
-
kt.error(
|
|
1094
|
+
} catch (v) {
|
|
1095
|
+
kt.error(n("麦克风启用失败,请确认是否开启麦克风权限"));
|
|
1096
1096
|
}
|
|
1097
1097
|
});
|
|
1098
1098
|
}
|
|
1099
1099
|
function r() {
|
|
1100
|
-
|
|
1100
|
+
y.value && d ? (d.stop(), y.value.getTracks().forEach((v) => v.stop()), d = null, y.value = void 0) : (d = null, y.value = void 0), c.value = !1, f && (clearInterval(f), f = 0), i.value = 0;
|
|
1101
1101
|
}
|
|
1102
|
-
function s(
|
|
1103
|
-
t.value = !0, h.value =
|
|
1102
|
+
function s(v) {
|
|
1103
|
+
t.value = !0, h.value = v, g.value = [], l = !1;
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1106
|
-
|
|
1105
|
+
function m() {
|
|
1106
|
+
c.value && r(), t.value = !1, c.value = !1, l = !1;
|
|
1107
1107
|
}
|
|
1108
1108
|
function w() {
|
|
1109
1109
|
return Ce(this, null, function* () {
|
|
1110
|
-
if (!
|
|
1111
|
-
kt.error(
|
|
1110
|
+
if (!c.value && !g.value.length) {
|
|
1111
|
+
kt.error(n("请先录音"));
|
|
1112
1112
|
return;
|
|
1113
1113
|
}
|
|
1114
|
-
|
|
1114
|
+
c.value && r(), c.value = !1, l = !0, g.value.length && (yield k()), t.value = !1;
|
|
1115
1115
|
});
|
|
1116
1116
|
}
|
|
1117
1117
|
function k() {
|
|
1118
1118
|
return Ce(this, null, function* () {
|
|
1119
|
-
if (
|
|
1120
|
-
const
|
|
1121
|
-
text:
|
|
1122
|
-
}),
|
|
1119
|
+
if (u.uploadHandle && h.value) {
|
|
1120
|
+
const v = Ct.service({
|
|
1121
|
+
text: n("录音上传中")
|
|
1122
|
+
}), M = new Blob(g.value, { type: u.audioType || "audio/wav" });
|
|
1123
1123
|
g.value = [];
|
|
1124
1124
|
try {
|
|
1125
|
-
yield
|
|
1125
|
+
yield u.uploadHandle(u.slide, h.value, M).then((R) => {
|
|
1126
1126
|
h.value.src = R;
|
|
1127
|
-
}),
|
|
1127
|
+
}), v.close(), e(h.value);
|
|
1128
1128
|
} catch (R) {
|
|
1129
|
-
|
|
1129
|
+
v.close();
|
|
1130
1130
|
}
|
|
1131
1131
|
}
|
|
1132
1132
|
});
|
|
@@ -1135,24 +1135,24 @@ function Ql(c, e) {
|
|
|
1135
1135
|
voiceVisible: t,
|
|
1136
1136
|
voiceForm: h,
|
|
1137
1137
|
recordTime: i,
|
|
1138
|
-
isRecording:
|
|
1138
|
+
isRecording: c,
|
|
1139
1139
|
drawVoice: a,
|
|
1140
|
-
startRecording:
|
|
1140
|
+
startRecording: p,
|
|
1141
1141
|
stopRecording: r,
|
|
1142
1142
|
initVoice: s,
|
|
1143
|
-
cancelRecord:
|
|
1143
|
+
cancelRecord: m,
|
|
1144
1144
|
confirmRecord: w
|
|
1145
1145
|
};
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1148
|
-
const
|
|
1149
|
-
let
|
|
1147
|
+
function to(u, e) {
|
|
1148
|
+
const n = $([]), t = $(0), y = $(!1);
|
|
1149
|
+
let d = null;
|
|
1150
1150
|
ne(() => {
|
|
1151
1151
|
var a;
|
|
1152
|
-
return (a =
|
|
1152
|
+
return (a = u.hotmap) == null ? void 0 : a.enable;
|
|
1153
1153
|
}, () => {
|
|
1154
|
-
var a,
|
|
1155
|
-
if ((
|
|
1154
|
+
var a, p;
|
|
1155
|
+
if ((p = (a = e.value) == null ? void 0 : a.viewer) != null && p.world) {
|
|
1156
1156
|
t.value = 0;
|
|
1157
1157
|
const r = e.value.viewer.world.getItemAt(0);
|
|
1158
1158
|
r && (r.tilesMatrix = {}, r.draw());
|
|
@@ -1162,158 +1162,158 @@ function Jl(c, e) {
|
|
|
1162
1162
|
}), Ie(() => {
|
|
1163
1163
|
window.removeEventListener("mousemove", f), window.removeEventListener("mouseup", h);
|
|
1164
1164
|
});
|
|
1165
|
-
function
|
|
1166
|
-
var
|
|
1167
|
-
const s = me(j({},
|
|
1168
|
-
file: (
|
|
1165
|
+
function c(a, p, r) {
|
|
1166
|
+
var m, w, k, v, M, R;
|
|
1167
|
+
const s = me(j({}, p), {
|
|
1168
|
+
file: (m = u.hotmap) == null ? void 0 : m.file
|
|
1169
1169
|
});
|
|
1170
|
-
if ((w =
|
|
1171
|
-
if (r[
|
|
1172
|
-
if (((k =
|
|
1173
|
-
return
|
|
1174
|
-
if (((
|
|
1170
|
+
if ((w = u.hotmap) != null && w.info) {
|
|
1171
|
+
if (r[p.x + "_" + p.y + "_" + Number(p.scale)]) {
|
|
1172
|
+
if (((k = u.hotmap) == null ? void 0 : k.type) === "switch")
|
|
1173
|
+
return u.tileHandle(s);
|
|
1174
|
+
if (((v = u.hotmap) == null ? void 0 : v.type) === "drag")
|
|
1175
1175
|
return i(a, s), a;
|
|
1176
1176
|
}
|
|
1177
|
-
} else return ((
|
|
1177
|
+
} else return ((M = u.hotmap) == null ? void 0 : M.type) === "switch" ? u.tileHandle(s) : (((R = u.hotmap) == null ? void 0 : R.type) === "drag" && i(a, s), a);
|
|
1178
1178
|
}
|
|
1179
|
-
function i(a,
|
|
1180
|
-
const r =
|
|
1179
|
+
function i(a, p) {
|
|
1180
|
+
const r = n.value.find((s) => s.url === a) || {
|
|
1181
1181
|
url: a,
|
|
1182
|
-
x:
|
|
1183
|
-
y:
|
|
1182
|
+
x: p.x,
|
|
1183
|
+
y: p.y,
|
|
1184
1184
|
img: void 0,
|
|
1185
1185
|
load: ""
|
|
1186
1186
|
};
|
|
1187
|
-
if (!(r != null && r.img) && (
|
|
1187
|
+
if (!(r != null && r.img) && (n.value.push(r), r.load !== "success")) {
|
|
1188
1188
|
const s = new Image();
|
|
1189
|
-
s.src =
|
|
1189
|
+
s.src = u.tileHandle(p), s.onload = () => {
|
|
1190
1190
|
r.load = "success";
|
|
1191
1191
|
}, r.img = s;
|
|
1192
1192
|
}
|
|
1193
1193
|
}
|
|
1194
1194
|
function f(a) {
|
|
1195
|
-
|
|
1195
|
+
y.value && d && (t.value += a.x - d.x, t.value < 0 ? t.value = 0 : t.value > e.value.$options.width && (t.value = e.value.$options.width, y.value = !1), e.value.viewer.forceRedraw()), d = { x: a.x, y: a.y };
|
|
1196
1196
|
}
|
|
1197
1197
|
function g(a) {
|
|
1198
|
-
const { x:
|
|
1199
|
-
|
|
1198
|
+
const { x: p, y: r } = a;
|
|
1199
|
+
y.value = !0, d = { x: p, y: r };
|
|
1200
1200
|
}
|
|
1201
1201
|
function h() {
|
|
1202
|
-
|
|
1202
|
+
y.value = !1, d = null;
|
|
1203
1203
|
}
|
|
1204
1204
|
function l(a) {
|
|
1205
1205
|
const {
|
|
1206
|
-
context:
|
|
1206
|
+
context: p,
|
|
1207
1207
|
sourceWidth: r,
|
|
1208
1208
|
sourceHeight: s,
|
|
1209
|
-
position:
|
|
1209
|
+
position: m,
|
|
1210
1210
|
size: w,
|
|
1211
1211
|
initRendered: k,
|
|
1212
|
-
tile:
|
|
1213
|
-
pixelDensityRatio:
|
|
1214
|
-
} = a, R =
|
|
1215
|
-
if (
|
|
1216
|
-
const
|
|
1217
|
-
|
|
1212
|
+
tile: v,
|
|
1213
|
+
pixelDensityRatio: M
|
|
1214
|
+
} = a, R = v.getUrl(), S = t.value * M, Q = m.original.x;
|
|
1215
|
+
if (Q < S && Q + w.x > S) {
|
|
1216
|
+
const W = S - Q, ve = w.x - W, te = n.value.find((Se) => Se.url === R), be = (te == null ? void 0 : te.load) === "success" ? te.img : k.canvas;
|
|
1217
|
+
p.drawImage(
|
|
1218
1218
|
be,
|
|
1219
1219
|
0,
|
|
1220
1220
|
0,
|
|
1221
|
-
r *
|
|
1221
|
+
r * W / w.x,
|
|
1222
1222
|
s,
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1223
|
+
m.x,
|
|
1224
|
+
m.y,
|
|
1225
|
+
W,
|
|
1226
1226
|
w.y
|
|
1227
|
-
),
|
|
1227
|
+
), p.drawImage(
|
|
1228
1228
|
k.canvas,
|
|
1229
|
-
r *
|
|
1229
|
+
r * W / w.x,
|
|
1230
1230
|
0,
|
|
1231
1231
|
r * ve / w.x,
|
|
1232
1232
|
s,
|
|
1233
|
-
|
|
1234
|
-
|
|
1233
|
+
m.x + W,
|
|
1234
|
+
m.y,
|
|
1235
1235
|
ve,
|
|
1236
1236
|
w.y
|
|
1237
1237
|
);
|
|
1238
|
-
} else if (
|
|
1239
|
-
const
|
|
1240
|
-
|
|
1238
|
+
} else if (Q + w.x <= S) {
|
|
1239
|
+
const W = n.value.find((te) => te.url === R), ve = (W == null ? void 0 : W.load) === "success" ? W.img : k.canvas;
|
|
1240
|
+
p.drawImage(
|
|
1241
1241
|
ve,
|
|
1242
1242
|
0,
|
|
1243
1243
|
0,
|
|
1244
1244
|
r,
|
|
1245
1245
|
s,
|
|
1246
|
-
|
|
1247
|
-
|
|
1246
|
+
m.x,
|
|
1247
|
+
m.y,
|
|
1248
1248
|
w.x,
|
|
1249
1249
|
w.y
|
|
1250
1250
|
);
|
|
1251
|
-
} else
|
|
1251
|
+
} else Q >= S && p.drawImage(
|
|
1252
1252
|
k.canvas,
|
|
1253
1253
|
0,
|
|
1254
1254
|
0,
|
|
1255
1255
|
r,
|
|
1256
1256
|
s,
|
|
1257
|
-
|
|
1258
|
-
|
|
1257
|
+
m.x,
|
|
1258
|
+
m.y,
|
|
1259
1259
|
w.x,
|
|
1260
1260
|
w.y
|
|
1261
1261
|
);
|
|
1262
1262
|
}
|
|
1263
1263
|
return {
|
|
1264
|
-
getHotmapUrl:
|
|
1265
|
-
hotmapImgs:
|
|
1264
|
+
getHotmapUrl: c,
|
|
1265
|
+
hotmapImgs: n,
|
|
1266
1266
|
handlerImage: l,
|
|
1267
1267
|
hotmapLine: t,
|
|
1268
1268
|
lineMouseDown: g
|
|
1269
1269
|
};
|
|
1270
1270
|
}
|
|
1271
|
-
function
|
|
1272
|
-
const t =
|
|
1273
|
-
|
|
1271
|
+
function lo(u, e, n) {
|
|
1272
|
+
const t = nl(), y = $(!1), d = new BroadcastChannel("sync_kfb_view");
|
|
1273
|
+
d.onmessage = (l) => {
|
|
1274
1274
|
const a = l.data;
|
|
1275
1275
|
g(a);
|
|
1276
1276
|
}, pe(() => {
|
|
1277
|
-
var l, a,
|
|
1278
|
-
(l =
|
|
1277
|
+
var l, a, p;
|
|
1278
|
+
(l = n.value) == null || l.addEventListener("mouseenter", c), (a = n.value) == null || a.addEventListener("mousemove", c), (p = n.value) == null || p.addEventListener("mouseleave", i);
|
|
1279
1279
|
}), Ie(() => {
|
|
1280
|
-
var l, a,
|
|
1281
|
-
(l =
|
|
1280
|
+
var l, a, p;
|
|
1281
|
+
(l = n.value) == null || l.removeEventListener("mouseenter", c), (a = n.value) == null || a.removeEventListener("mousemove", c), (p = n.value) == null || p.removeEventListener("mouseleave", i), d.close();
|
|
1282
1282
|
});
|
|
1283
|
-
function
|
|
1284
|
-
|
|
1283
|
+
function c() {
|
|
1284
|
+
y.value = !0;
|
|
1285
1285
|
}
|
|
1286
1286
|
function i() {
|
|
1287
|
-
|
|
1287
|
+
y.value = !1;
|
|
1288
1288
|
}
|
|
1289
1289
|
function f() {
|
|
1290
1290
|
let l;
|
|
1291
1291
|
e.value.viewer.addHandler("pan", (a) => {
|
|
1292
|
-
var s,
|
|
1292
|
+
var s, m, w, k;
|
|
1293
1293
|
if (!l) {
|
|
1294
|
-
l = (
|
|
1294
|
+
l = (m = (s = a.center) == null ? void 0 : s.clone) == null ? void 0 : m.call(s);
|
|
1295
1295
|
return;
|
|
1296
1296
|
}
|
|
1297
|
-
const
|
|
1298
|
-
l = (k =
|
|
1297
|
+
const p = a.center, r = (w = p == null ? void 0 : p.minus) == null ? void 0 : w.call(p, l);
|
|
1298
|
+
l = (k = p == null ? void 0 : p.clone) == null ? void 0 : k.call(p), u.syncPosition && h({
|
|
1299
1299
|
position: r,
|
|
1300
1300
|
type: "sync_position"
|
|
1301
1301
|
});
|
|
1302
1302
|
}), e.value.viewer.addHandler("zoom", (a) => {
|
|
1303
|
-
|
|
1303
|
+
u.syncZoom && h({
|
|
1304
1304
|
zoom: a.zoom,
|
|
1305
1305
|
type: "sync_zoom"
|
|
1306
1306
|
});
|
|
1307
1307
|
}), e.value.viewer.addHandler("animation-finish", () => {
|
|
1308
1308
|
var r;
|
|
1309
|
-
if (
|
|
1309
|
+
if (u.syncZoom && h({
|
|
1310
1310
|
zoom: e.value.viewer.viewport.getZoom(!0),
|
|
1311
1311
|
type: "sync_zoom"
|
|
1312
1312
|
}), !l)
|
|
1313
1313
|
return;
|
|
1314
|
-
const a = e.value.viewer.viewport.getCenter(!0),
|
|
1315
|
-
l = void 0,
|
|
1316
|
-
position:
|
|
1314
|
+
const a = e.value.viewer.viewport.getCenter(!0), p = (r = a == null ? void 0 : a.minus) == null ? void 0 : r.call(a, l);
|
|
1315
|
+
l = void 0, u.syncPosition && h({
|
|
1316
|
+
position: p,
|
|
1317
1317
|
type: "sync_position"
|
|
1318
1318
|
});
|
|
1319
1319
|
});
|
|
@@ -1323,18 +1323,18 @@ function eo(c, e, o) {
|
|
|
1323
1323
|
}
|
|
1324
1324
|
function h(l) {
|
|
1325
1325
|
var a;
|
|
1326
|
-
|
|
1326
|
+
y.value && d.postMessage(me(j({}, l), {
|
|
1327
1327
|
uuid: t == null ? void 0 : t.uid,
|
|
1328
|
-
fileName: (a =
|
|
1328
|
+
fileName: (a = u.slide) == null ? void 0 : a.file
|
|
1329
1329
|
}));
|
|
1330
1330
|
}
|
|
1331
1331
|
return {
|
|
1332
1332
|
initSync: f
|
|
1333
1333
|
};
|
|
1334
1334
|
}
|
|
1335
|
-
const
|
|
1335
|
+
const oo = { class: "hzzt-kfb-keyword flex wrap" }, no = ["onMouseenter"], ao = /* @__PURE__ */ ee({
|
|
1336
1336
|
__name: "KfbKeyword",
|
|
1337
|
-
setup(
|
|
1337
|
+
setup(u) {
|
|
1338
1338
|
const e = $([
|
|
1339
1339
|
{ code: "Q", icon: "zoomIn" },
|
|
1340
1340
|
{ code: "W", icon: "arrowUp" },
|
|
@@ -1342,89 +1342,89 @@ const to = { class: "hzzt-kfb-keyword flex wrap" }, lo = ["onMouseenter"], oo =
|
|
|
1342
1342
|
{ code: "A", icon: "arrowLeft" },
|
|
1343
1343
|
{ code: "S", icon: "arrowDown" },
|
|
1344
1344
|
{ code: "D", icon: "arrowRight" }
|
|
1345
|
-
]),
|
|
1345
|
+
]), n = J("kfbView", $({}));
|
|
1346
1346
|
let t = null;
|
|
1347
|
-
function
|
|
1348
|
-
|
|
1349
|
-
i === "E" && (
|
|
1347
|
+
function y(c, i) {
|
|
1348
|
+
c.preventDefault(), t && clearTimeout(t), t = setInterval(() => {
|
|
1349
|
+
i === "E" && (n.value.viewer.viewport.zoomBy(1.1), n.value.viewer.viewport.applyConstraints()), i === "Q" && (n.value.viewer.viewport.zoomBy(0.9), n.value.viewer.viewport.applyConstraints()), i === "W" && (n.value.viewer.viewport.panBy(n.value.viewer.viewport.deltaPointsFromPixels(new Te.Point(0, -40))), n.value.viewer.viewport.applyConstraints()), i === "S" && (n.value.viewer.viewport.panBy(n.value.viewer.viewport.deltaPointsFromPixels(new Te.Point(0, 40))), n.value.viewer.viewport.applyConstraints()), i === "A" && (n.value.viewer.viewport.panBy(n.value.viewer.viewport.deltaPointsFromPixels(new Te.Point(-40, 0))), n.value.viewer.viewport.applyConstraints()), i === "D" && (n.value.viewer.viewport.panBy(n.value.viewer.viewport.deltaPointsFromPixels(new Te.Point(40, 0))), n.value.viewer.viewport.applyConstraints());
|
|
1350
1350
|
}, 120);
|
|
1351
1351
|
}
|
|
1352
|
-
function
|
|
1352
|
+
function d() {
|
|
1353
1353
|
t && (clearInterval(t), t = null);
|
|
1354
1354
|
}
|
|
1355
1355
|
return Ie(() => {
|
|
1356
1356
|
clearTimeout(t);
|
|
1357
|
-
}), (
|
|
1358
|
-
(
|
|
1357
|
+
}), (c, i) => (_(), L("div", oo, [
|
|
1358
|
+
(_(!0), L(le, null, oe(e.value, (f) => (_(), L("div", {
|
|
1359
1359
|
key: f.code,
|
|
1360
1360
|
class: "hzzt-kfb-keyword__code flex column align-items-center justify-content-center",
|
|
1361
|
-
onMouseenter: (g) =>
|
|
1362
|
-
onMouseleave:
|
|
1361
|
+
onMouseenter: (g) => y(g, f.code),
|
|
1362
|
+
onMouseleave: d
|
|
1363
1363
|
}, [
|
|
1364
|
-
b("p", null,
|
|
1364
|
+
b("p", null, E(f.code), 1),
|
|
1365
1365
|
T(X, {
|
|
1366
1366
|
size: "14",
|
|
1367
1367
|
name: f.icon
|
|
1368
1368
|
}, null, 8, ["name"])
|
|
1369
|
-
], 40,
|
|
1369
|
+
], 40, no))), 128))
|
|
1370
1370
|
]));
|
|
1371
1371
|
}
|
|
1372
|
-
}),
|
|
1373
|
-
function
|
|
1372
|
+
}), so = /* @__PURE__ */ he(ao, [["__scopeId", "data-v-c8d940f0"]]);
|
|
1373
|
+
function io(u, e, n = {}) {
|
|
1374
1374
|
const {
|
|
1375
1375
|
panSensitivity: t = 0.2,
|
|
1376
1376
|
// 值越大,鼠标移动时图像移动越快
|
|
1377
|
-
zoomSensitivity:
|
|
1377
|
+
zoomSensitivity: y = 1.1,
|
|
1378
1378
|
// 值越大,滚轮缩放幅度越大
|
|
1379
|
-
damping:
|
|
1379
|
+
damping: d = 0.6,
|
|
1380
1380
|
// 值越大,惯性滑动时间越长
|
|
1381
|
-
minThreshold:
|
|
1381
|
+
minThreshold: c = 0.05
|
|
1382
1382
|
// 值越小,停止移动时的精度越高
|
|
1383
|
-
} =
|
|
1383
|
+
} = n;
|
|
1384
1384
|
let i = !1, f = null, g = 0, h = 0, l = !1;
|
|
1385
1385
|
const a = () => {
|
|
1386
|
-
i = document.pointerLockElement === e.value, i ||
|
|
1387
|
-
},
|
|
1386
|
+
i = document.pointerLockElement === e.value, i || p();
|
|
1387
|
+
}, p = () => {
|
|
1388
1388
|
g = 0, h = 0, f && (cancelAnimationFrame(f), f = null), l = !1;
|
|
1389
|
-
}, r = (
|
|
1389
|
+
}, r = (v) => Ce(this, null, function* () {
|
|
1390
1390
|
try {
|
|
1391
|
-
|
|
1392
|
-
} catch (
|
|
1393
|
-
console.error("无法锁定鼠标:",
|
|
1391
|
+
v.key === "l" && e.value && (document.pointerLockElement ? (document.exitPointerLock(), console.log("鼠标已解锁!")) : (yield e.value.requestPointerLock(), console.log("鼠标已锁定!")));
|
|
1392
|
+
} catch (M) {
|
|
1393
|
+
console.error("无法锁定鼠标:", M);
|
|
1394
1394
|
}
|
|
1395
|
-
}), s = (
|
|
1395
|
+
}), s = (v) => {
|
|
1396
1396
|
if (i) {
|
|
1397
|
-
|
|
1398
|
-
const
|
|
1399
|
-
|
|
1397
|
+
v.preventDefault();
|
|
1398
|
+
const M = Math.pow(y, Math.sign(v.deltaY) * -1);
|
|
1399
|
+
u.value.viewer.viewport.zoomBy(M), u.value.viewer.viewport.applyConstraints();
|
|
1400
1400
|
}
|
|
1401
|
-
},
|
|
1402
|
-
i && (g +=
|
|
1401
|
+
}, m = (v) => {
|
|
1402
|
+
i && (g += v.movementX * t, h += v.movementY * t, !l && (Math.abs(g) > 1 || Math.abs(h) > 1) && (l = !0, f = requestAnimationFrame(w)));
|
|
1403
1403
|
}, w = () => {
|
|
1404
|
-
const
|
|
1405
|
-
if (Math.abs(g) >
|
|
1406
|
-
const
|
|
1404
|
+
const v = u.value.viewer.viewport;
|
|
1405
|
+
if (Math.abs(g) > c || Math.abs(h) > c) {
|
|
1406
|
+
const M = v.deltaPointsFromPixels(
|
|
1407
1407
|
new Te.Point(g, h)
|
|
1408
1408
|
);
|
|
1409
|
-
|
|
1409
|
+
v.panBy(M), v.applyConstraints();
|
|
1410
1410
|
}
|
|
1411
|
-
g *=
|
|
1411
|
+
g *= d, h *= d, Math.abs(g) > c || Math.abs(h) > c ? f = requestAnimationFrame(w) : p();
|
|
1412
1412
|
}, k = () => {
|
|
1413
1413
|
i && document.exitPointerLock();
|
|
1414
1414
|
};
|
|
1415
1415
|
return pe(() => {
|
|
1416
|
-
var
|
|
1417
|
-
(
|
|
1416
|
+
var v;
|
|
1417
|
+
(v = e.value) == null || v.addEventListener("keydown", r), document.addEventListener("wheel", s, { passive: !1 }), document.addEventListener("click", k), document.addEventListener("mousemove", m), document.addEventListener("pointerlockchange", a);
|
|
1418
1418
|
}), Ie(() => {
|
|
1419
|
-
var
|
|
1420
|
-
(
|
|
1419
|
+
var v;
|
|
1420
|
+
(v = e.value) == null || v.removeEventListener("keydown", r), document.removeEventListener("click", k), document.removeEventListener("wheel", s), document.removeEventListener("mousemove", m), document.removeEventListener("pointerlockchange", a), p();
|
|
1421
1421
|
}), {
|
|
1422
|
-
setConfig: (
|
|
1423
|
-
Object.assign(
|
|
1422
|
+
setConfig: (v) => {
|
|
1423
|
+
Object.assign(n, v);
|
|
1424
1424
|
}
|
|
1425
1425
|
};
|
|
1426
1426
|
}
|
|
1427
|
-
const
|
|
1427
|
+
const ro = /* @__PURE__ */ ee({
|
|
1428
1428
|
__name: "KfbLevel",
|
|
1429
1429
|
props: /* @__PURE__ */ we({
|
|
1430
1430
|
slides: { default: () => [] }
|
|
@@ -1435,41 +1435,41 @@ const so = /* @__PURE__ */ ee({
|
|
|
1435
1435
|
"model-valueModifiers": {}
|
|
1436
1436
|
}),
|
|
1437
1437
|
emits: ["update:model-value"],
|
|
1438
|
-
setup(
|
|
1439
|
-
const e =
|
|
1440
|
-
function
|
|
1441
|
-
const
|
|
1438
|
+
setup(u) {
|
|
1439
|
+
const e = u, n = Ee(u, "model-value"), t = J("kfbView", $({})), y = B(() => Array.from(new Array(e.slides.length + 1)).map((c, i) => i));
|
|
1440
|
+
function d() {
|
|
1441
|
+
const c = t.value.viewer.world.getItemAt(0), i = Object.keys(c.tilesMatrix);
|
|
1442
1442
|
i.forEach((f, g) => {
|
|
1443
|
-
g > i.length - 4 && (
|
|
1444
|
-
}),
|
|
1443
|
+
g > i.length - 4 && (c.tilesMatrix[f] = {});
|
|
1444
|
+
}), c.draw();
|
|
1445
1445
|
}
|
|
1446
|
-
return (
|
|
1447
|
-
class: ye(["hzzt-kfb-level flex column align-items-center",
|
|
1446
|
+
return (c, i) => (_(), L("div", {
|
|
1447
|
+
class: ye(["hzzt-kfb-level flex column align-items-center", c.slides.length > 5 ? "hzzt-kfb-level--large" : ""])
|
|
1448
1448
|
}, [
|
|
1449
1449
|
T(X, {
|
|
1450
1450
|
name: "level",
|
|
1451
1451
|
size: "24",
|
|
1452
1452
|
class: "margin-b-4 margin-t-2"
|
|
1453
1453
|
}),
|
|
1454
|
-
T(
|
|
1455
|
-
modelValue:
|
|
1456
|
-
"onUpdate:modelValue": i[0] || (i[0] = (f) =>
|
|
1454
|
+
T(o(il), {
|
|
1455
|
+
modelValue: n.value,
|
|
1456
|
+
"onUpdate:modelValue": i[0] || (i[0] = (f) => n.value = f),
|
|
1457
1457
|
vertical: "",
|
|
1458
|
-
min:
|
|
1458
|
+
min: y.value[0],
|
|
1459
1459
|
step: 1,
|
|
1460
|
-
max:
|
|
1460
|
+
max: y.value[y.value.length - 1],
|
|
1461
1461
|
"show-stops": "",
|
|
1462
1462
|
"show-tooltip": !0,
|
|
1463
1463
|
placement: "left",
|
|
1464
|
-
height:
|
|
1465
|
-
onInput:
|
|
1464
|
+
height: c.slides.length > 5 ? "180px" : "130px",
|
|
1465
|
+
onInput: d
|
|
1466
1466
|
}, null, 8, ["modelValue", "min", "max", "height"])
|
|
1467
1467
|
], 2));
|
|
1468
1468
|
}
|
|
1469
|
-
}),
|
|
1469
|
+
}), uo = {
|
|
1470
1470
|
key: 0,
|
|
1471
1471
|
class: "flex hzzt-kfb-channel"
|
|
1472
|
-
},
|
|
1472
|
+
}, co = ["onClick"], vo = /* @__PURE__ */ ee({
|
|
1473
1473
|
__name: "KfbChannel",
|
|
1474
1474
|
props: /* @__PURE__ */ we({
|
|
1475
1475
|
info: {}
|
|
@@ -1480,8 +1480,8 @@ const so = /* @__PURE__ */ ee({
|
|
|
1480
1480
|
"model-valueModifiers": {}
|
|
1481
1481
|
}),
|
|
1482
1482
|
emits: /* @__PURE__ */ we(["load"], ["update:model-value"]),
|
|
1483
|
-
setup(
|
|
1484
|
-
const
|
|
1483
|
+
setup(u, { emit: e }) {
|
|
1484
|
+
const n = u, t = e, y = Ee(u, "model-value"), d = [
|
|
1485
1485
|
{ key: "DAPI", color: "#4A6CF7" },
|
|
1486
1486
|
{ key: "480", color: "#00BFFF" },
|
|
1487
1487
|
{ key: "520", color: "#32CD32" },
|
|
@@ -1489,10 +1489,10 @@ const so = /* @__PURE__ */ ee({
|
|
|
1489
1489
|
{ key: "620", color: "#FF6347" },
|
|
1490
1490
|
{ key: "670", color: "#DC143C" },
|
|
1491
1491
|
{ key: "780", color: "#4B0082" }
|
|
1492
|
-
],
|
|
1492
|
+
], c = B(() => {
|
|
1493
1493
|
var f;
|
|
1494
|
-
return (((f =
|
|
1495
|
-
const h =
|
|
1494
|
+
return (((f = n.info) == null ? void 0 : f.channel) || []).map((g) => {
|
|
1495
|
+
const h = d.find((l) => l.key === g.eqt_num);
|
|
1496
1496
|
return {
|
|
1497
1497
|
label: g.eqt_num,
|
|
1498
1498
|
color: g.r ? `rgb(${g.r}, ${g.g}, ${g.b})` : h == null ? void 0 : h.color
|
|
@@ -1500,22 +1500,22 @@ const so = /* @__PURE__ */ ee({
|
|
|
1500
1500
|
});
|
|
1501
1501
|
});
|
|
1502
1502
|
function i(f) {
|
|
1503
|
-
|
|
1503
|
+
y.value.includes(f) ? y.value = y.value.filter((g) => g !== f) : y.value.push(f), t("load");
|
|
1504
1504
|
}
|
|
1505
|
-
return (f, g) =>
|
|
1505
|
+
return (f, g) => c.value.length > 0 ? (_(), L("div", uo, [
|
|
1506
1506
|
T(X, {
|
|
1507
1507
|
name: "channel",
|
|
1508
1508
|
size: "32"
|
|
1509
1509
|
}),
|
|
1510
|
-
(
|
|
1510
|
+
(_(!0), L(le, null, oe(c.value, (h) => (_(), L("div", {
|
|
1511
1511
|
key: h.label,
|
|
1512
|
-
style:
|
|
1513
|
-
class: ye(["hzzt-kfb-channel__box",
|
|
1512
|
+
style: Z({ background: h.color }),
|
|
1513
|
+
class: ye(["hzzt-kfb-channel__box", y.value.includes(h.label) ? "" : "hzzt-kfb-channel__box--unactive"]),
|
|
1514
1514
|
onClick: (l) => i(h.label)
|
|
1515
|
-
},
|
|
1515
|
+
}, E(h.label), 15, co))), 128))
|
|
1516
1516
|
])) : A("", !0);
|
|
1517
1517
|
}
|
|
1518
|
-
}),
|
|
1518
|
+
}), fo = { class: "flex align-items-center justify-content-between" }, mo = { class: "hzzt-kfb-title" }, po = { class: "hzzt-kfb-annotation__container flex-1" }, ho = ["onClick"], go = /* @__PURE__ */ ee({
|
|
1519
1519
|
__name: "KfbAnnotation",
|
|
1520
1520
|
props: /* @__PURE__ */ we({
|
|
1521
1521
|
annotation: {},
|
|
@@ -1525,58 +1525,85 @@ const so = /* @__PURE__ */ ee({
|
|
|
1525
1525
|
expandModifiers: {}
|
|
1526
1526
|
}),
|
|
1527
1527
|
emits: /* @__PURE__ */ we(["select"], ["update:expand"]),
|
|
1528
|
-
setup(
|
|
1529
|
-
const
|
|
1530
|
-
function
|
|
1528
|
+
setup(u, { emit: e }) {
|
|
1529
|
+
const n = Ee(u, "expand"), t = e, { t: y } = ie();
|
|
1530
|
+
function d(i) {
|
|
1531
1531
|
const f = i.subType || i.tool || "";
|
|
1532
1532
|
return `mark${f.substring(0, 1).toLocaleUpperCase()}${f.substring(1)}`;
|
|
1533
1533
|
}
|
|
1534
|
-
function
|
|
1534
|
+
function c(i) {
|
|
1535
1535
|
t("select", i);
|
|
1536
1536
|
}
|
|
1537
|
-
return (i, f) => (
|
|
1538
|
-
class: ye(["hzzt-kfb-annotation flex column",
|
|
1537
|
+
return (i, f) => (_(), L("div", {
|
|
1538
|
+
class: ye(["hzzt-kfb-annotation flex column", n.value ? "hzzt-kfb-annotation--expand" : ""])
|
|
1539
1539
|
}, [
|
|
1540
|
-
b("div",
|
|
1541
|
-
$e(b("div",
|
|
1542
|
-
b("span", null,
|
|
1540
|
+
b("div", fo, [
|
|
1541
|
+
$e(b("div", mo, [
|
|
1542
|
+
b("span", null, E(o(y)("标注列表")), 1)
|
|
1543
1543
|
], 512), [
|
|
1544
|
-
[
|
|
1544
|
+
[Pe, n.value]
|
|
1545
1545
|
]),
|
|
1546
1546
|
T(X, {
|
|
1547
1547
|
class: "hzzt-kfb-annotation__icon",
|
|
1548
|
-
name:
|
|
1549
|
-
onClick: f[0] || (f[0] = (g) =>
|
|
1548
|
+
name: n.value ? "expandLeft" : "expandRight",
|
|
1549
|
+
onClick: f[0] || (f[0] = (g) => n.value = !n.value)
|
|
1550
1550
|
}, null, 8, ["name"])
|
|
1551
1551
|
]),
|
|
1552
|
-
$e(b("div",
|
|
1553
|
-
(
|
|
1552
|
+
$e(b("div", po, [
|
|
1553
|
+
(_(!0), L(le, null, oe(i.annotations, (g, h) => {
|
|
1554
1554
|
var l;
|
|
1555
|
-
return
|
|
1555
|
+
return _(), L("div", {
|
|
1556
1556
|
class: ye(["hzzt-kfb-annotation__item", ((l = i.annotation) == null ? void 0 : l.id) === g.id ? "hzzt-kfb-annotation__item--active" : ""]),
|
|
1557
1557
|
key: h,
|
|
1558
|
-
onClick: (a) =>
|
|
1558
|
+
onClick: (a) => c(g)
|
|
1559
1559
|
}, [
|
|
1560
1560
|
T(X, {
|
|
1561
1561
|
size: "16",
|
|
1562
|
-
name:
|
|
1562
|
+
name: d(g)
|
|
1563
1563
|
}, null, 8, ["name"]),
|
|
1564
|
-
b("span", null,
|
|
1565
|
-
], 10,
|
|
1564
|
+
b("span", null, E(o(y)("标注")) + E(h + 1), 1)
|
|
1565
|
+
], 10, ho);
|
|
1566
1566
|
}), 128))
|
|
1567
1567
|
], 512), [
|
|
1568
|
-
[
|
|
1568
|
+
[Pe, n.value]
|
|
1569
1569
|
])
|
|
1570
1570
|
], 2));
|
|
1571
1571
|
}
|
|
1572
|
-
}),
|
|
1572
|
+
}), wo = /* @__PURE__ */ he(go, [["__scopeId", "data-v-bfc56a3e"]]);
|
|
1573
|
+
function Lt(u) {
|
|
1574
|
+
const { t: e } = ie();
|
|
1575
|
+
return B(() => {
|
|
1576
|
+
var y, d;
|
|
1577
|
+
const t = ((d = (y = u == null ? void 0 : u.slide) == null ? void 0 : y.analysis) == null ? void 0 : d.result) || "";
|
|
1578
|
+
return t.indexOf("疑似阳性") > -1 ? {
|
|
1579
|
+
type: "warning",
|
|
1580
|
+
name: t
|
|
1581
|
+
} : t.indexOf("阳性") > -1 ? {
|
|
1582
|
+
type: "danger",
|
|
1583
|
+
name: t
|
|
1584
|
+
} : t.indexOf("阴性") > -1 ? {
|
|
1585
|
+
type: "success",
|
|
1586
|
+
name: t
|
|
1587
|
+
} : t.indexOf("不合格") > -1 ? {
|
|
1588
|
+
type: "danger",
|
|
1589
|
+
name: t
|
|
1590
|
+
} : t.indexOf("合格") > -1 ? {
|
|
1591
|
+
type: "success",
|
|
1592
|
+
name: t
|
|
1593
|
+
} : {
|
|
1594
|
+
type: "info",
|
|
1595
|
+
name: t || e("未知")
|
|
1596
|
+
};
|
|
1597
|
+
});
|
|
1598
|
+
}
|
|
1599
|
+
const yo = ["element-loading-text"], _o = {
|
|
1573
1600
|
key: 1,
|
|
1574
1601
|
class: "hzzt-kfb-view__main flex align-items-center justify-content-center"
|
|
1575
|
-
},
|
|
1602
|
+
}, bo = {
|
|
1576
1603
|
class: "hzzt-kfb-view__filter",
|
|
1577
1604
|
height: "0",
|
|
1578
1605
|
width: "0"
|
|
1579
|
-
},
|
|
1606
|
+
}, ko = { id: "colorMatrixFilter" }, zo = ["values"], Co = ["values"], To = ["exponent"], $o = ["exponent"], Lo = ["exponent"], xo = { class: "flex nowrap justify-content-center overflow-hidden" }, Eo = ["src"], Vo = ["src"], Mo = { class: "flex-1" }, Io = { class: "flex-1" }, So = { class: "flex-1" }, Ho = { class: "flex-1" }, Po = { class: "flex-1" }, Ro = { class: "flex-1" }, Ao = ["src"], No = {
|
|
1580
1607
|
key: 2,
|
|
1581
1608
|
class: "margin-l-2"
|
|
1582
1609
|
}, Me = /* @__PURE__ */ ee({
|
|
@@ -1602,77 +1629,77 @@ const so = /* @__PURE__ */ ee({
|
|
|
1602
1629
|
audioType: {}
|
|
1603
1630
|
},
|
|
1604
1631
|
emits: ["tool"],
|
|
1605
|
-
setup(
|
|
1606
|
-
const t =
|
|
1632
|
+
setup(u, { expose: e, emit: n }) {
|
|
1633
|
+
const t = u, y = n, { t: d, locale: c } = ie(), i = $(), f = $(), g = $(), h = $(!1), l = $({}), a = $(!1), p = $(0), r = $(0), s = $(0), m = $([]), w = $({
|
|
1607
1634
|
width: 0,
|
|
1608
1635
|
height: 0,
|
|
1609
1636
|
fileNum: 0,
|
|
1610
1637
|
scanScale: 1,
|
|
1611
1638
|
fileName: "",
|
|
1612
1639
|
ratiomap: {}
|
|
1613
|
-
}), k = J("show-kfb-label", $(!0)),
|
|
1640
|
+
}), k = J("show-kfb-label", $(!0)), v = J("show-keyboard", $(!1)), M = J("hidden-all-label", $(!1)), R = $(!1), S = Ct.directive;
|
|
1614
1641
|
ne(() => {
|
|
1615
1642
|
var z;
|
|
1616
1643
|
return (z = t.slide) == null ? void 0 : z.file;
|
|
1617
1644
|
}, () => {
|
|
1618
|
-
|
|
1645
|
+
jt(), setTimeout(() => {
|
|
1619
1646
|
it();
|
|
1620
1647
|
}, 100);
|
|
1621
1648
|
}), pe(() => {
|
|
1622
1649
|
it();
|
|
1623
1650
|
});
|
|
1624
|
-
const {
|
|
1625
|
-
imageProcess:
|
|
1626
|
-
matrixValues:
|
|
1627
|
-
saturateValues:
|
|
1628
|
-
forceRedraw:
|
|
1629
|
-
} =
|
|
1630
|
-
tailorEvent:
|
|
1631
|
-
shotScreen:
|
|
1632
|
-
} =
|
|
1651
|
+
const Q = Lt(t), {
|
|
1652
|
+
imageProcess: W,
|
|
1653
|
+
matrixValues: ve,
|
|
1654
|
+
saturateValues: te,
|
|
1655
|
+
forceRedraw: be
|
|
1656
|
+
} = $l(t), {
|
|
1657
|
+
tailorEvent: Se,
|
|
1658
|
+
shotScreen: Ae
|
|
1659
|
+
} = Ll(y, l), {
|
|
1633
1660
|
moveEvent: Ze,
|
|
1634
1661
|
fastMove: qe
|
|
1635
|
-
} =
|
|
1636
|
-
|
|
1637
|
-
const { drawDot: Xe } =
|
|
1638
|
-
voiceVisible:
|
|
1639
|
-
voiceForm:
|
|
1640
|
-
drawVoice:
|
|
1641
|
-
recordTime:
|
|
1642
|
-
isRecording:
|
|
1643
|
-
startRecording:
|
|
1644
|
-
stopRecording:
|
|
1645
|
-
initVoice:
|
|
1646
|
-
cancelRecord:
|
|
1647
|
-
confirmRecord:
|
|
1648
|
-
} =
|
|
1662
|
+
} = Xl(l, r), { initSync: Ye } = lo(t, l, i);
|
|
1663
|
+
io(l, i);
|
|
1664
|
+
const { drawDot: Xe } = Jl(), {
|
|
1665
|
+
voiceVisible: C,
|
|
1666
|
+
voiceForm: N,
|
|
1667
|
+
drawVoice: F,
|
|
1668
|
+
recordTime: re,
|
|
1669
|
+
isRecording: ke,
|
|
1670
|
+
startRecording: xt,
|
|
1671
|
+
stopRecording: Et,
|
|
1672
|
+
initVoice: Vt,
|
|
1673
|
+
cancelRecord: Mt,
|
|
1674
|
+
confirmRecord: It
|
|
1675
|
+
} = eo(t, At), {
|
|
1649
1676
|
currentLabel: Qe,
|
|
1650
1677
|
localLabelList: nt,
|
|
1651
|
-
initLabel:
|
|
1678
|
+
initLabel: St,
|
|
1652
1679
|
jumpToLabel: at,
|
|
1653
|
-
reloadLabelList:
|
|
1654
|
-
eventHandel:
|
|
1655
|
-
addHandle:
|
|
1656
|
-
} =
|
|
1657
|
-
function
|
|
1658
|
-
|
|
1680
|
+
reloadLabelList: Ht,
|
|
1681
|
+
eventHandel: Pt,
|
|
1682
|
+
addHandle: Rt
|
|
1683
|
+
} = Ql(t, y, l, Vt, Je);
|
|
1684
|
+
function At(z) {
|
|
1685
|
+
Rt(z);
|
|
1659
1686
|
}
|
|
1660
1687
|
const {
|
|
1661
|
-
getHotmapUrl:
|
|
1662
|
-
handlerImage:
|
|
1663
|
-
hotmapLine:
|
|
1688
|
+
getHotmapUrl: Nt,
|
|
1689
|
+
handlerImage: Bt,
|
|
1690
|
+
hotmapLine: Dt,
|
|
1664
1691
|
lineMouseDown: st,
|
|
1665
|
-
hotmapImgs:
|
|
1666
|
-
} =
|
|
1692
|
+
hotmapImgs: Ut
|
|
1693
|
+
} = to(t, l);
|
|
1667
1694
|
function it() {
|
|
1668
1695
|
var z;
|
|
1669
|
-
(z = t.slide) != null && z.file && t.fileHandle && (a.value || (a.value = !0, t.fileHandle(t.slide).then((
|
|
1696
|
+
(z = t.slide) != null && z.file && t.fileHandle && (a.value || (a.value = !0, t.fileHandle(t.slide).then((I) => {
|
|
1670
1697
|
var q, ae, fe, K;
|
|
1671
|
-
w.value =
|
|
1698
|
+
w.value = I, m.value = (((q = w.value) == null ? void 0 : q.channel) || []).map((U) => U.eqt_num), l.value = new ce(j({
|
|
1672
1699
|
el: f.value,
|
|
1673
1700
|
fileName: (ae = t.slide) == null ? void 0 : ae.file,
|
|
1674
1701
|
scale: w.value.scanScale,
|
|
1675
|
-
lang: (
|
|
1702
|
+
lang: (c == null ? void 0 : c.value) === "en-US" ? "en" : c == null ? void 0 : c.value,
|
|
1676
1703
|
navigator: {
|
|
1677
1704
|
style: "left: 0;bottom: 0",
|
|
1678
1705
|
thumbnail: w.value.thumbnailImg,
|
|
@@ -1707,21 +1734,21 @@ const so = /* @__PURE__ */ ee({
|
|
|
1707
1734
|
animationTime: 0,
|
|
1708
1735
|
tileSources: rt()
|
|
1709
1736
|
},
|
|
1710
|
-
tileDrawing:
|
|
1737
|
+
tileDrawing: Bt,
|
|
1711
1738
|
label: {
|
|
1712
1739
|
drawing: (U, D, ze) => {
|
|
1713
1740
|
var Ne;
|
|
1714
1741
|
if (D != null && D.custom) {
|
|
1715
1742
|
const Y = U.getContext("2d");
|
|
1716
1743
|
Y.save(), Y.beginPath();
|
|
1717
|
-
const
|
|
1718
|
-
|
|
1744
|
+
const He = (D == null ? void 0 : D.subType) || ((Ne = D == null ? void 0 : D.__data__) == null ? void 0 : Ne.subType);
|
|
1745
|
+
He === "count" ? (Y.translate(ze.x - 14, ze.y - 22), Xe(Y, (D == null ? void 0 : D.strokeStyle) || "")) : He === "voice" ? (Y.translate(ze.x - 16, ze.y - 18), F(Y, (D == null ? void 0 : D.strokeStyle) || "")) : t.labelDrawing && t.labelDrawing(Y, D), Y.restore();
|
|
1719
1746
|
}
|
|
1720
1747
|
}
|
|
1721
1748
|
}
|
|
1722
|
-
}, t.options || {})), l.value.viewer.drawer.canvas.style.filter = "url(#colorMatrixFilter)",
|
|
1749
|
+
}, t.options || {})), l.value.viewer.drawer.canvas.style.filter = "url(#colorMatrixFilter)", St(), Kt(), Ye();
|
|
1723
1750
|
}).finally(() => {
|
|
1724
|
-
a.value = !1,
|
|
1751
|
+
a.value = !1, M.value && (vt({
|
|
1725
1752
|
show: !1,
|
|
1726
1753
|
ruler: !1
|
|
1727
1754
|
}), ft({
|
|
@@ -1731,11 +1758,11 @@ const so = /* @__PURE__ */ ee({
|
|
|
1731
1758
|
}, 100));
|
|
1732
1759
|
})));
|
|
1733
1760
|
}
|
|
1734
|
-
function
|
|
1761
|
+
function Ft() {
|
|
1735
1762
|
const z = l.value.viewer;
|
|
1736
1763
|
if (z.world) {
|
|
1737
|
-
const
|
|
1738
|
-
z.world.removeItem(
|
|
1764
|
+
const I = z.world.getItemAt(0), q = z.viewport.getZoom(), ae = z.viewport.getCenter();
|
|
1765
|
+
z.world.removeItem(I), z.addTiledImage({
|
|
1739
1766
|
tileSource: rt(),
|
|
1740
1767
|
success: function() {
|
|
1741
1768
|
z.viewport.zoomTo(q), z.viewport.panTo(ae);
|
|
@@ -1745,9 +1772,9 @@ const so = /* @__PURE__ */ ee({
|
|
|
1745
1772
|
}
|
|
1746
1773
|
function rt() {
|
|
1747
1774
|
var fe, K;
|
|
1748
|
-
const z = w.value.tileWidth || w.value.imageBlockLen || 256,
|
|
1775
|
+
const z = w.value.tileWidth || w.value.imageBlockLen || 256, I = w.value.tileHeight || w.value.imageBlockLen || 256, q = {};
|
|
1749
1776
|
(fe = t.hotmap) != null && fe.enable && (((K = t.hotmap) == null ? void 0 : K.info) || []).forEach((U) => {
|
|
1750
|
-
q[U[0] / z + "_" + U[1] /
|
|
1777
|
+
q[U[0] / z + "_" + U[1] / I + "_" + U[2]] = !0;
|
|
1751
1778
|
});
|
|
1752
1779
|
let ae = 10;
|
|
1753
1780
|
return Object.keys(w.value.ratiomap).forEach((U) => {
|
|
@@ -1757,7 +1784,7 @@ const so = /* @__PURE__ */ ee({
|
|
|
1757
1784
|
height: w.value.height,
|
|
1758
1785
|
width: w.value.width,
|
|
1759
1786
|
tileWidth: z,
|
|
1760
|
-
tileHeight:
|
|
1787
|
+
tileHeight: I,
|
|
1761
1788
|
minLevel: Math.floor(ae || 8),
|
|
1762
1789
|
getTileUrl: (U, D, ze) => {
|
|
1763
1790
|
var pt, ht, gt, wt;
|
|
@@ -1767,30 +1794,30 @@ const so = /* @__PURE__ */ ee({
|
|
|
1767
1794
|
y: ze,
|
|
1768
1795
|
scale: "0",
|
|
1769
1796
|
level: U,
|
|
1770
|
-
channel: JSON.stringify(
|
|
1797
|
+
channel: JSON.stringify(m.value)
|
|
1771
1798
|
};
|
|
1772
1799
|
w.value.fileNum === U ? (U = w.value.scanScale, Y.scale = U.toFixed(6)) : (U = w.value.scanScale / Math.pow(2, w.value.fileNum - U), Y.scale = U.toFixed(6)), Y.level = Ne, Y.file = s.value === 0 ? Y.file : ((gt = (ht = t.slide) == null ? void 0 : ht.children) == null ? void 0 : gt[s.value - 1]) || "";
|
|
1773
|
-
const
|
|
1774
|
-
return (wt = t.hotmap) != null && wt.enable ?
|
|
1800
|
+
const He = t.tileHandle(Y);
|
|
1801
|
+
return (wt = t.hotmap) != null && wt.enable ? Nt(He, Y, q) : He;
|
|
1775
1802
|
}
|
|
1776
1803
|
};
|
|
1777
1804
|
}
|
|
1778
|
-
function
|
|
1805
|
+
function Kt() {
|
|
1779
1806
|
l.value.viewer.addHandler("rotate", (z) => {
|
|
1780
|
-
|
|
1807
|
+
p.value = z.degrees || 0;
|
|
1781
1808
|
}), l.value.viewer.addHandler("zoom", (z) => {
|
|
1782
|
-
const
|
|
1809
|
+
const I = l.value.viewer.viewport.viewportToImageZoom(
|
|
1783
1810
|
z.zoom || 0
|
|
1784
1811
|
) * Number(l.value.$options.scale);
|
|
1785
|
-
r.value = Number(
|
|
1786
|
-
}), l.value.$on(
|
|
1812
|
+
r.value = Number(I.toFixed(2));
|
|
1813
|
+
}), l.value.$on(ce.events.EVENT_NAVIGATOR_VESTIGE, (z) => {
|
|
1787
1814
|
t.navigatorHandle && t.navigatorHandle("add", t.slide, z);
|
|
1788
1815
|
}), t.navigatorHandle && t.navigatorHandle("list", t.slide).then((z) => {
|
|
1789
|
-
var
|
|
1790
|
-
(q = (
|
|
1791
|
-
}),
|
|
1816
|
+
var I, q;
|
|
1817
|
+
(q = (I = l.value.navigator) == null ? void 0 : I.drawPointList) == null || q.call(I, z);
|
|
1818
|
+
}), Se(), Ze();
|
|
1792
1819
|
}
|
|
1793
|
-
function
|
|
1820
|
+
function jt() {
|
|
1794
1821
|
var z;
|
|
1795
1822
|
(z = l.value) != null && z.destroy && (l.value.destroy(), l.value = {}, w.value = {
|
|
1796
1823
|
width: 0,
|
|
@@ -1799,25 +1826,25 @@ const so = /* @__PURE__ */ ee({
|
|
|
1799
1826
|
scanScale: 1,
|
|
1800
1827
|
fileName: "",
|
|
1801
1828
|
ratiomap: {}
|
|
1802
|
-
},
|
|
1829
|
+
}, Ut.value = [], m.value = [], r.value = 0, p.value = 0, s.value = 0);
|
|
1803
1830
|
}
|
|
1804
|
-
function ut(z,
|
|
1805
|
-
z === "annotate" ? ct(
|
|
1831
|
+
function ut(z, I) {
|
|
1832
|
+
z === "annotate" ? ct(I) : z === "tailor" ? Ae(I) : z === "info" ? h.value = !0 : z === "flip" ? dt() : z === "delete" ? Pt("delete")(Qe.value) : y("tool", z, I);
|
|
1806
1833
|
}
|
|
1807
1834
|
function ct(z) {
|
|
1808
1835
|
z.tool === "Voice" && (z.subType = "voice", z.tool = "Dot", z.custom = !0), l.value.board.startDraw(z);
|
|
1809
1836
|
}
|
|
1810
|
-
function
|
|
1837
|
+
function Ot() {
|
|
1811
1838
|
l.value.board.endDraw();
|
|
1812
1839
|
}
|
|
1813
1840
|
function dt() {
|
|
1814
1841
|
l.value.viewer.viewport.toggleFlip();
|
|
1815
1842
|
}
|
|
1816
|
-
function
|
|
1817
|
-
var
|
|
1818
|
-
(q = (
|
|
1843
|
+
function Gt(z) {
|
|
1844
|
+
var I, q;
|
|
1845
|
+
(q = (I = g.value) == null ? void 0 : I.scopeChange) == null || q.call(I, z);
|
|
1819
1846
|
}
|
|
1820
|
-
function
|
|
1847
|
+
function Wt() {
|
|
1821
1848
|
h.value = !0;
|
|
1822
1849
|
}
|
|
1823
1850
|
function vt(z) {
|
|
@@ -1830,216 +1857,217 @@ const so = /* @__PURE__ */ ee({
|
|
|
1830
1857
|
l.value.navigator.element.style.display = z ? "flex" : "none";
|
|
1831
1858
|
}
|
|
1832
1859
|
function Je(z) {
|
|
1833
|
-
const
|
|
1834
|
-
l.value.viewer.viewport.zoomTo(
|
|
1860
|
+
const I = l.value.viewer.viewport.imageToViewportZoom(Number(z / l.value.$options.scale));
|
|
1861
|
+
l.value.viewer.viewport.zoomTo(I);
|
|
1835
1862
|
}
|
|
1836
|
-
function
|
|
1863
|
+
function Zt(z, I) {
|
|
1837
1864
|
l.value.area && (l.value.area.moveToLabel(l.value.viewer.viewport.imageToViewportCoordinates(
|
|
1838
1865
|
z.x + z.width / 2,
|
|
1839
1866
|
z.y + z.height / 2
|
|
1840
|
-
)), Je(
|
|
1867
|
+
)), Je(I));
|
|
1841
1868
|
}
|
|
1842
|
-
return
|
|
1869
|
+
return ue("kfbView", l), ue("currentLabel", Qe), e({
|
|
1843
1870
|
kfbView: l,
|
|
1844
|
-
degrees:
|
|
1871
|
+
degrees: p,
|
|
1845
1872
|
zoom: r,
|
|
1846
|
-
forceRedraw:
|
|
1873
|
+
forceRedraw: be,
|
|
1847
1874
|
toggleFlip: dt,
|
|
1848
1875
|
startDraw: ct,
|
|
1849
|
-
endDraw:
|
|
1850
|
-
shotScreen:
|
|
1851
|
-
info:
|
|
1852
|
-
scopeChange:
|
|
1876
|
+
endDraw: Ot,
|
|
1877
|
+
shotScreen: Ae,
|
|
1878
|
+
info: Wt,
|
|
1879
|
+
scopeChange: Gt,
|
|
1853
1880
|
updateGrid: vt,
|
|
1854
1881
|
updateGraduation: ft,
|
|
1855
1882
|
updateNavigator: mt,
|
|
1856
1883
|
fastMove: qe,
|
|
1857
1884
|
zoomTo: Je,
|
|
1858
1885
|
jumpToLabel: at,
|
|
1859
|
-
jumpToPosition:
|
|
1860
|
-
reloadLabelList:
|
|
1861
|
-
}), (z,
|
|
1886
|
+
jumpToPosition: Zt,
|
|
1887
|
+
reloadLabelList: Ht
|
|
1888
|
+
}), (z, I) => {
|
|
1862
1889
|
var q, ae, fe;
|
|
1863
|
-
return
|
|
1890
|
+
return _(), L("div", {
|
|
1864
1891
|
ref_key: "mainKfbViewRef",
|
|
1865
1892
|
ref: i,
|
|
1866
1893
|
class: "hzzt-kfb-view"
|
|
1867
1894
|
}, [
|
|
1868
|
-
z.slide.file ? $e((
|
|
1895
|
+
z.slide.file ? $e((_(), L("div", {
|
|
1869
1896
|
key: 0,
|
|
1870
1897
|
ref_key: "kfbViewMainRef",
|
|
1871
1898
|
ref: f,
|
|
1872
1899
|
class: "hzzt-kfb-view__main",
|
|
1873
|
-
"element-loading-text":
|
|
1900
|
+
"element-loading-text": o(d)("加载中"),
|
|
1874
1901
|
"element-loading-background": "rgba(0, 0, 0, 0.8)"
|
|
1875
|
-
}, null, 8,
|
|
1876
|
-
[
|
|
1877
|
-
]) : (
|
|
1902
|
+
}, null, 8, yo)), [
|
|
1903
|
+
[o(S), a.value]
|
|
1904
|
+
]) : (_(), L("div", _o, I[5] || (I[5] = [
|
|
1878
1905
|
b("img", {
|
|
1879
1906
|
style: { width: "50%" },
|
|
1880
1907
|
src: Ge
|
|
1881
1908
|
}, null, -1)
|
|
1882
1909
|
]))),
|
|
1883
|
-
z.slide.analysis && z.slide.analysis.result ? (
|
|
1910
|
+
z.slide.analysis && z.slide.analysis.result ? (_(), P(o(Tt), {
|
|
1884
1911
|
key: 2,
|
|
1885
|
-
class: "hzzt-kfb-view__tag"
|
|
1912
|
+
class: "hzzt-kfb-view__tag",
|
|
1913
|
+
type: o(Q).type
|
|
1886
1914
|
}, {
|
|
1887
1915
|
default: x(() => [
|
|
1888
|
-
G(
|
|
1916
|
+
G(E(o(Q).name), 1)
|
|
1889
1917
|
]),
|
|
1890
1918
|
_: 1
|
|
1891
|
-
})) : A("", !0),
|
|
1892
|
-
(
|
|
1893
|
-
b("filter",
|
|
1919
|
+
}, 8, ["type"])) : A("", !0),
|
|
1920
|
+
(_(), L("svg", bo, [
|
|
1921
|
+
b("filter", ko, [
|
|
1894
1922
|
b("feColorMatrix", {
|
|
1895
|
-
values:
|
|
1923
|
+
values: o(ve),
|
|
1896
1924
|
type: "matrix"
|
|
1897
|
-
}, null, 8,
|
|
1925
|
+
}, null, 8, zo),
|
|
1898
1926
|
b("feColorMatrix", {
|
|
1899
|
-
values:
|
|
1927
|
+
values: o(te),
|
|
1900
1928
|
type: "saturate"
|
|
1901
|
-
}, null, 8,
|
|
1929
|
+
}, null, 8, Co),
|
|
1902
1930
|
b("feComponentTransfer", null, [
|
|
1903
1931
|
b("feFuncR", {
|
|
1904
1932
|
id: "feFuncR",
|
|
1905
1933
|
type: "gamma",
|
|
1906
|
-
exponent:
|
|
1934
|
+
exponent: o(W).ga,
|
|
1907
1935
|
amplitude: "1",
|
|
1908
1936
|
offset: "0"
|
|
1909
|
-
}, null, 8,
|
|
1937
|
+
}, null, 8, To),
|
|
1910
1938
|
b("feFuncG", {
|
|
1911
1939
|
id: "feFuncG",
|
|
1912
1940
|
type: "gamma",
|
|
1913
|
-
exponent:
|
|
1941
|
+
exponent: o(W).ga,
|
|
1914
1942
|
amplitude: "1",
|
|
1915
1943
|
offset: "0"
|
|
1916
|
-
}, null, 8,
|
|
1944
|
+
}, null, 8, $o),
|
|
1917
1945
|
b("feFuncB", {
|
|
1918
1946
|
id: "feFuncB",
|
|
1919
1947
|
type: "gamma",
|
|
1920
|
-
exponent:
|
|
1948
|
+
exponent: o(W).ga,
|
|
1921
1949
|
amplitude: "1",
|
|
1922
1950
|
offset: "0"
|
|
1923
|
-
}, null, 8,
|
|
1951
|
+
}, null, 8, Lo)
|
|
1924
1952
|
])
|
|
1925
1953
|
])
|
|
1926
1954
|
])),
|
|
1927
|
-
T(
|
|
1955
|
+
T(Al, {
|
|
1928
1956
|
menus: z.menus,
|
|
1929
1957
|
onTool: ut
|
|
1930
1958
|
}, null, 8, ["menus"]),
|
|
1931
|
-
T(
|
|
1959
|
+
T(Dl, Ke(z.microscope, {
|
|
1932
1960
|
ref_key: "microscopeRef",
|
|
1933
1961
|
ref: g
|
|
1934
1962
|
}), null, 16),
|
|
1935
|
-
|
|
1963
|
+
o(k) && z.slide.file ? (_(), P(Yl, {
|
|
1936
1964
|
key: 3,
|
|
1937
1965
|
info: w.value,
|
|
1938
1966
|
slide: z.slide,
|
|
1939
1967
|
pathologyHandle: z.pathologyHandle,
|
|
1940
1968
|
onTool: ut
|
|
1941
1969
|
}, null, 8, ["info", "slide", "pathologyHandle"])) : A("", !0),
|
|
1942
|
-
|
|
1943
|
-
(q = z.slide.children) != null && q.length ? (
|
|
1970
|
+
o(v) ? (_(), P(so, { key: 4 })) : A("", !0),
|
|
1971
|
+
(q = z.slide.children) != null && q.length ? (_(), P(ro, {
|
|
1944
1972
|
key: 5,
|
|
1945
1973
|
modelValue: s.value,
|
|
1946
|
-
"onUpdate:modelValue":
|
|
1974
|
+
"onUpdate:modelValue": I[0] || (I[0] = (K) => s.value = K),
|
|
1947
1975
|
slides: z.slide.children
|
|
1948
1976
|
}, null, 8, ["modelValue", "slides"])) : A("", !0),
|
|
1949
|
-
(fe = (ae = w.value) == null ? void 0 : ae.channel) != null && fe.length ? (
|
|
1977
|
+
(fe = (ae = w.value) == null ? void 0 : ae.channel) != null && fe.length ? (_(), P(vo, {
|
|
1950
1978
|
key: 6,
|
|
1951
|
-
modelValue:
|
|
1952
|
-
"onUpdate:modelValue":
|
|
1979
|
+
modelValue: m.value,
|
|
1980
|
+
"onUpdate:modelValue": I[1] || (I[1] = (K) => m.value = K),
|
|
1953
1981
|
info: w.value,
|
|
1954
|
-
onLoad:
|
|
1982
|
+
onLoad: Ft
|
|
1955
1983
|
}, null, 8, ["modelValue", "info"])) : A("", !0),
|
|
1956
|
-
|
|
1984
|
+
o(nt).length ? (_(), P(wo, {
|
|
1957
1985
|
key: 7,
|
|
1958
1986
|
expand: R.value,
|
|
1959
|
-
"onUpdate:expand":
|
|
1960
|
-
style:
|
|
1987
|
+
"onUpdate:expand": I[2] || (I[2] = (K) => R.value = K),
|
|
1988
|
+
style: Z({
|
|
1961
1989
|
top: z.slide.analysis && z.slide.analysis.result ? "24px" : "4px"
|
|
1962
1990
|
}),
|
|
1963
|
-
annotation:
|
|
1964
|
-
annotations:
|
|
1965
|
-
onSelect:
|
|
1991
|
+
annotation: o(Qe),
|
|
1992
|
+
annotations: o(nt),
|
|
1993
|
+
onSelect: o(at)
|
|
1966
1994
|
}, null, 8, ["expand", "style", "annotation", "annotations", "onSelect"])) : A("", !0),
|
|
1967
|
-
T(
|
|
1995
|
+
T(o(je), {
|
|
1968
1996
|
modelValue: h.value,
|
|
1969
|
-
"onUpdate:modelValue":
|
|
1997
|
+
"onUpdate:modelValue": I[3] || (I[3] = (K) => h.value = K),
|
|
1970
1998
|
"append-to-body": !0,
|
|
1971
|
-
title:
|
|
1999
|
+
title: o(d)("图像信息"),
|
|
1972
2000
|
width: "700px",
|
|
1973
2001
|
top: "5vh"
|
|
1974
2002
|
}, {
|
|
1975
2003
|
default: x(() => [
|
|
1976
|
-
T(
|
|
2004
|
+
T(o(tt), { "label-position": "left" }, {
|
|
1977
2005
|
default: x(() => [
|
|
1978
|
-
T(
|
|
2006
|
+
T(o(se), {
|
|
1979
2007
|
class: "flex",
|
|
1980
2008
|
"label-width": "0px"
|
|
1981
2009
|
}, {
|
|
1982
2010
|
default: x(() => [
|
|
1983
|
-
b("div",
|
|
2011
|
+
b("div", xo, [
|
|
1984
2012
|
b("img", {
|
|
1985
2013
|
src: w.value.labelImg,
|
|
1986
2014
|
style: { height: "180px" }
|
|
1987
|
-
}, null, 8,
|
|
2015
|
+
}, null, 8, Eo),
|
|
1988
2016
|
b("img", {
|
|
1989
2017
|
src: w.value.previewImg,
|
|
1990
2018
|
style: { height: "180px" },
|
|
1991
2019
|
class: "flex-1"
|
|
1992
|
-
}, null, 8,
|
|
2020
|
+
}, null, 8, Vo)
|
|
1993
2021
|
])
|
|
1994
2022
|
]),
|
|
1995
2023
|
_: 1
|
|
1996
2024
|
}),
|
|
1997
|
-
T(
|
|
1998
|
-
label:
|
|
2025
|
+
T(o(se), {
|
|
2026
|
+
label: o(d)("文件名")
|
|
1999
2027
|
}, {
|
|
2000
2028
|
default: x(() => [
|
|
2001
|
-
b("span",
|
|
2029
|
+
b("span", Mo, E(w.value.fileName), 1)
|
|
2002
2030
|
]),
|
|
2003
2031
|
_: 1
|
|
2004
2032
|
}, 8, ["label"]),
|
|
2005
|
-
T(
|
|
2006
|
-
label:
|
|
2033
|
+
T(o(se), {
|
|
2034
|
+
label: o(d)("图像像素")
|
|
2007
2035
|
}, {
|
|
2008
2036
|
default: x(() => [
|
|
2009
|
-
b("span",
|
|
2037
|
+
b("span", Io, E(w.value.width) + "Pixel - " + E(w.value.height) + "Pixel", 1)
|
|
2010
2038
|
]),
|
|
2011
2039
|
_: 1
|
|
2012
2040
|
}, 8, ["label"]),
|
|
2013
|
-
T(
|
|
2014
|
-
label:
|
|
2041
|
+
T(o(se), {
|
|
2042
|
+
label: o(d)("扫描倍率")
|
|
2015
2043
|
}, {
|
|
2016
2044
|
default: x(() => [
|
|
2017
|
-
b("span",
|
|
2045
|
+
b("span", So, E(w.value.scanScale), 1)
|
|
2018
2046
|
]),
|
|
2019
2047
|
_: 1
|
|
2020
2048
|
}, 8, ["label"]),
|
|
2021
|
-
T(
|
|
2022
|
-
label:
|
|
2049
|
+
T(o(se), {
|
|
2050
|
+
label: o(d)("扫描时刻")
|
|
2023
2051
|
}, {
|
|
2024
2052
|
default: x(() => [
|
|
2025
|
-
b("span",
|
|
2053
|
+
b("span", Ho, E(w.value.scanTime), 1)
|
|
2026
2054
|
]),
|
|
2027
2055
|
_: 1
|
|
2028
2056
|
}, 8, ["label"]),
|
|
2029
|
-
T(
|
|
2030
|
-
label:
|
|
2057
|
+
T(o(se), {
|
|
2058
|
+
label: o(d)("扫描时间")
|
|
2031
2059
|
}, {
|
|
2032
2060
|
default: x(() => [
|
|
2033
|
-
b("span",
|
|
2061
|
+
b("span", Po, E(w.value.scanDuration || 0) + "s", 1)
|
|
2034
2062
|
]),
|
|
2035
2063
|
_: 1
|
|
2036
2064
|
}, 8, ["label"]),
|
|
2037
|
-
w.value.ext ? (
|
|
2065
|
+
w.value.ext ? (_(), P(o(se), {
|
|
2038
2066
|
key: 0,
|
|
2039
|
-
label:
|
|
2067
|
+
label: o(d)("扫描设备")
|
|
2040
2068
|
}, {
|
|
2041
2069
|
default: x(() => [
|
|
2042
|
-
b("span",
|
|
2070
|
+
b("span", Ro, E(w.value.ext.machineNum || ""), 1)
|
|
2043
2071
|
]),
|
|
2044
2072
|
_: 1
|
|
2045
2073
|
}, 8, ["label"])) : A("", !0)
|
|
@@ -2049,73 +2077,73 @@ const so = /* @__PURE__ */ ee({
|
|
|
2049
2077
|
]),
|
|
2050
2078
|
_: 1
|
|
2051
2079
|
}, 8, ["modelValue", "title"]),
|
|
2052
|
-
T(
|
|
2053
|
-
modelValue:
|
|
2054
|
-
"onUpdate:modelValue":
|
|
2080
|
+
T(o(je), {
|
|
2081
|
+
modelValue: o(C),
|
|
2082
|
+
"onUpdate:modelValue": I[4] || (I[4] = (K) => Ve(C) ? C.value = K : null),
|
|
2055
2083
|
"append-to-body": !0,
|
|
2056
|
-
title:
|
|
2084
|
+
title: o(d)("语音输入"),
|
|
2057
2085
|
width: "500px",
|
|
2058
2086
|
top: "5vh"
|
|
2059
2087
|
}, {
|
|
2060
2088
|
footer: x(() => [
|
|
2061
|
-
T(
|
|
2089
|
+
T(o(ge), { onClick: o(Mt) }, {
|
|
2062
2090
|
default: x(() => [
|
|
2063
|
-
G(
|
|
2091
|
+
G(E(o(d)("取消")), 1)
|
|
2064
2092
|
]),
|
|
2065
2093
|
_: 1
|
|
2066
2094
|
}, 8, ["onClick"]),
|
|
2067
|
-
T(
|
|
2095
|
+
T(o(ge), {
|
|
2068
2096
|
type: "primary",
|
|
2069
|
-
onClick:
|
|
2097
|
+
onClick: o(It)
|
|
2070
2098
|
}, {
|
|
2071
2099
|
default: x(() => [
|
|
2072
|
-
G(
|
|
2100
|
+
G(E(o(d)("确定")), 1)
|
|
2073
2101
|
]),
|
|
2074
2102
|
_: 1
|
|
2075
2103
|
}, 8, ["onClick"])
|
|
2076
2104
|
]),
|
|
2077
2105
|
default: x(() => [
|
|
2078
|
-
T(
|
|
2106
|
+
T(o(tt), { "label-position": "left" }, {
|
|
2079
2107
|
default: x(() => {
|
|
2080
2108
|
var K;
|
|
2081
2109
|
return [
|
|
2082
|
-
T(
|
|
2110
|
+
T(o(se), null, {
|
|
2083
2111
|
default: x(() => {
|
|
2084
2112
|
var U;
|
|
2085
2113
|
return [
|
|
2086
|
-
(U =
|
|
2114
|
+
(U = o(N)) != null && U.src ? (_(), L("audio", {
|
|
2087
2115
|
key: 0,
|
|
2088
2116
|
class: "width-100%",
|
|
2089
|
-
src:
|
|
2117
|
+
src: o(N).src,
|
|
2090
2118
|
controls: "",
|
|
2091
2119
|
preload: "auto"
|
|
2092
|
-
}, null, 8,
|
|
2120
|
+
}, null, 8, Ao)) : A("", !0)
|
|
2093
2121
|
];
|
|
2094
2122
|
}),
|
|
2095
2123
|
_: 1
|
|
2096
2124
|
}),
|
|
2097
|
-
(K =
|
|
2125
|
+
(K = o(N)) != null && K.src ? A("", !0) : (_(), P(o(se), { key: 0 }, {
|
|
2098
2126
|
default: x(() => [
|
|
2099
|
-
|
|
2127
|
+
o(ke) ? (_(), P(o(ge), {
|
|
2100
2128
|
key: 1,
|
|
2101
2129
|
type: "danger",
|
|
2102
|
-
onClick:
|
|
2130
|
+
onClick: o(Et)
|
|
2103
2131
|
}, {
|
|
2104
2132
|
default: x(() => [
|
|
2105
|
-
G(
|
|
2133
|
+
G(E(o(d)("结束录音")), 1)
|
|
2106
2134
|
]),
|
|
2107
2135
|
_: 1
|
|
2108
|
-
}, 8, ["onClick"])) : (
|
|
2136
|
+
}, 8, ["onClick"])) : (_(), P(o(ge), {
|
|
2109
2137
|
key: 0,
|
|
2110
2138
|
type: "primary",
|
|
2111
|
-
onClick:
|
|
2139
|
+
onClick: o(xt)
|
|
2112
2140
|
}, {
|
|
2113
2141
|
default: x(() => [
|
|
2114
|
-
G(
|
|
2142
|
+
G(E(o(d)("开始录音")), 1)
|
|
2115
2143
|
]),
|
|
2116
2144
|
_: 1
|
|
2117
2145
|
}, 8, ["onClick"])),
|
|
2118
|
-
|
|
2146
|
+
o(ke) ? (_(), L("span", No, E(o(d)("录音时长")) + ":" + E(o(re)) + "s", 1)) : A("", !0)
|
|
2119
2147
|
]),
|
|
2120
2148
|
_: 1
|
|
2121
2149
|
}))
|
|
@@ -2126,17 +2154,17 @@ const so = /* @__PURE__ */ ee({
|
|
|
2126
2154
|
]),
|
|
2127
2155
|
_: 1
|
|
2128
2156
|
}, 8, ["modelValue", "title"]),
|
|
2129
|
-
z.hotmap && z.hotmap.enable && z.hotmap.type !== "switch" ? (
|
|
2157
|
+
z.hotmap && z.hotmap.enable && z.hotmap.type !== "switch" ? (_(), L("div", {
|
|
2130
2158
|
key: 8,
|
|
2131
2159
|
class: "hzzt-kfb-view__hotmap",
|
|
2132
|
-
style:
|
|
2160
|
+
style: Z({ left: o(Dt) + "px" })
|
|
2133
2161
|
}, [
|
|
2134
|
-
T(
|
|
2162
|
+
T(o(_e), {
|
|
2135
2163
|
class: "icon-caret-left",
|
|
2136
2164
|
size: "30",
|
|
2137
|
-
onMousedown:
|
|
2165
|
+
onMousedown: o(st)
|
|
2138
2166
|
}, {
|
|
2139
|
-
default: x(() =>
|
|
2167
|
+
default: x(() => I[6] || (I[6] = [
|
|
2140
2168
|
b("svg", {
|
|
2141
2169
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2142
2170
|
viewBox: "0 0 1024 1024"
|
|
@@ -2150,12 +2178,12 @@ const so = /* @__PURE__ */ ee({
|
|
|
2150
2178
|
_: 1,
|
|
2151
2179
|
__: [6]
|
|
2152
2180
|
}, 8, ["onMousedown"]),
|
|
2153
|
-
T(
|
|
2181
|
+
T(o(_e), {
|
|
2154
2182
|
class: "icon-caret-right",
|
|
2155
2183
|
size: "30",
|
|
2156
|
-
onMousedown:
|
|
2184
|
+
onMousedown: o(st)
|
|
2157
2185
|
}, {
|
|
2158
|
-
default: x(() =>
|
|
2186
|
+
default: x(() => I[7] || (I[7] = [
|
|
2159
2187
|
b("svg", {
|
|
2160
2188
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2161
2189
|
viewBox: "0 0 1024 1024"
|
|
@@ -2170,58 +2198,58 @@ const so = /* @__PURE__ */ ee({
|
|
|
2170
2198
|
__: [7]
|
|
2171
2199
|
}, 8, ["onMousedown"])
|
|
2172
2200
|
], 4)) : A("", !0),
|
|
2173
|
-
|
|
2201
|
+
de(z.$slots, "default")
|
|
2174
2202
|
], 512);
|
|
2175
2203
|
};
|
|
2176
2204
|
}
|
|
2177
2205
|
});
|
|
2178
|
-
function
|
|
2206
|
+
function Bo(u, e) {
|
|
2179
2207
|
var h, l;
|
|
2180
|
-
const
|
|
2208
|
+
const n = $(!!((h = u.ai) != null && h.default)), t = $(!!((l = u.ai) != null && l.default)), y = $([]), d = B(
|
|
2181
2209
|
() => {
|
|
2182
|
-
var a,
|
|
2183
|
-
return (
|
|
2210
|
+
var a, p, r, s;
|
|
2211
|
+
return (p = (a = e.value) == null ? void 0 : a.analysis) != null && p.id ? ((s = (r = e.value) == null ? void 0 : r.analysis) == null ? void 0 : s.class) || "auto" : "";
|
|
2184
2212
|
}
|
|
2185
2213
|
);
|
|
2186
2214
|
ne(() => {
|
|
2187
2215
|
var a;
|
|
2188
|
-
return (a =
|
|
2216
|
+
return (a = u.ai) == null ? void 0 : a.default;
|
|
2189
2217
|
}, (a) => {
|
|
2190
|
-
|
|
2218
|
+
n.value = !!a, t.value = !!a;
|
|
2191
2219
|
}), ne(() => {
|
|
2192
2220
|
var a;
|
|
2193
2221
|
return (a = e == null ? void 0 : e.value) == null ? void 0 : a.id;
|
|
2194
|
-
},
|
|
2195
|
-
var a,
|
|
2196
|
-
|
|
2222
|
+
}, c), pe(() => {
|
|
2223
|
+
var a, p;
|
|
2224
|
+
n.value = !!((a = u.ai) != null && a.default), t.value = !!((p = u.ai) != null && p.default), c();
|
|
2197
2225
|
});
|
|
2198
|
-
function
|
|
2226
|
+
function c() {
|
|
2199
2227
|
var a;
|
|
2200
|
-
(a = e.value) != null && a.id &&
|
|
2228
|
+
(a = e.value) != null && a.id && d.value ? n.value || t.value ? i() : y.value = [] : y.value = [];
|
|
2201
2229
|
}
|
|
2202
2230
|
function i() {
|
|
2203
|
-
|
|
2204
|
-
|
|
2231
|
+
u.ai.handle(d.value, e.value).then((a) => {
|
|
2232
|
+
y.value = a;
|
|
2205
2233
|
}).catch(() => {
|
|
2206
|
-
|
|
2234
|
+
y.value = [], d.value === "IQC" ? t.value = !1 : n.value = !1;
|
|
2207
2235
|
});
|
|
2208
2236
|
}
|
|
2209
2237
|
function f() {
|
|
2210
|
-
t.value = !1,
|
|
2238
|
+
t.value = !1, c();
|
|
2211
2239
|
}
|
|
2212
2240
|
function g() {
|
|
2213
|
-
|
|
2241
|
+
n.value = !1, c();
|
|
2214
2242
|
}
|
|
2215
2243
|
return {
|
|
2216
|
-
analysisClass:
|
|
2217
|
-
aiLabelList:
|
|
2218
|
-
enableAi:
|
|
2244
|
+
analysisClass: d,
|
|
2245
|
+
aiLabelList: y,
|
|
2246
|
+
enableAi: n,
|
|
2219
2247
|
enableIqc: t,
|
|
2220
2248
|
toggleIqc: g,
|
|
2221
2249
|
toggleAi: f
|
|
2222
2250
|
};
|
|
2223
2251
|
}
|
|
2224
|
-
const
|
|
2252
|
+
const Do = ["src", "fit"], Uo = ["src", "fit"], Ue = /* @__PURE__ */ ee({
|
|
2225
2253
|
name: "KfbImage",
|
|
2226
2254
|
__name: "KfbImage",
|
|
2227
2255
|
props: {
|
|
@@ -2232,7 +2260,7 @@ const No = ["src", "fit"], Bo = ["src", "fit"], Ue = /* @__PURE__ */ ee({
|
|
|
2232
2260
|
},
|
|
2233
2261
|
fit: {
|
|
2234
2262
|
type: String,
|
|
2235
|
-
validator: (
|
|
2263
|
+
validator: (u) => ["", "contain", "cover", "fill", "none", "scale-down"].includes(u),
|
|
2236
2264
|
default: ""
|
|
2237
2265
|
},
|
|
2238
2266
|
retryTimes: {
|
|
@@ -2244,68 +2272,68 @@ const No = ["src", "fit"], Bo = ["src", "fit"], Ue = /* @__PURE__ */ ee({
|
|
|
2244
2272
|
default: () => ({})
|
|
2245
2273
|
}
|
|
2246
2274
|
},
|
|
2247
|
-
setup(
|
|
2248
|
-
const e =
|
|
2249
|
-
let
|
|
2250
|
-
const t = $(!1),
|
|
2275
|
+
setup(u) {
|
|
2276
|
+
const e = u;
|
|
2277
|
+
let n = 0;
|
|
2278
|
+
const t = $(!1), y = ot({
|
|
2251
2279
|
x: 0,
|
|
2252
2280
|
y: 0
|
|
2253
|
-
}),
|
|
2254
|
-
top: `${
|
|
2255
|
-
left: `${
|
|
2281
|
+
}), d = B(() => ({
|
|
2282
|
+
top: `${y.y + 10}px`,
|
|
2283
|
+
left: `${y.x}px`,
|
|
2256
2284
|
transform: "translateY(-50%)",
|
|
2257
2285
|
width: `${4 * 300 / 3}px`,
|
|
2258
2286
|
height: "300px",
|
|
2259
2287
|
background: "rgba(0,0,0,0.8)",
|
|
2260
2288
|
zIndex: "10000"
|
|
2261
2289
|
}));
|
|
2262
|
-
function
|
|
2290
|
+
function c(h) {
|
|
2263
2291
|
const l = h.target;
|
|
2264
|
-
|
|
2292
|
+
n < e.retryTimes ? (l.src = e.src, n++) : l.src = Ge;
|
|
2265
2293
|
}
|
|
2266
2294
|
function i(h) {
|
|
2267
2295
|
if (h.target) {
|
|
2268
|
-
const s = h.target,
|
|
2296
|
+
const s = h.target, m = s.tagName;
|
|
2269
2297
|
let w = "";
|
|
2270
|
-
if (s.tagName === "IMG" ? w = s.src || "" :
|
|
2298
|
+
if (s.tagName === "IMG" ? w = s.src || "" : m === "DIV" && (w = s.children[0].src || ""), w.indexOf(Ge) > -1)
|
|
2271
2299
|
return;
|
|
2272
2300
|
}
|
|
2273
|
-
const { x: l, y: a } = f(h),
|
|
2274
|
-
|
|
2301
|
+
const { x: l, y: a } = f(h), p = 4 * 300 / 3, r = 300;
|
|
2302
|
+
y.x = Math.min(Math.max(l, p / 2), window.innerWidth - p / 2), y.y = Math.min(Math.max(a, r / 2), window.innerHeight - r / 2), t.value = !0;
|
|
2275
2303
|
}
|
|
2276
2304
|
function f(h) {
|
|
2277
|
-
const l = h.target, a = h.offsetX,
|
|
2305
|
+
const l = h.target, a = h.offsetX, p = h.offsetY, r = l.clientWidth, s = l.clientHeight;
|
|
2278
2306
|
return {
|
|
2279
2307
|
x: h.clientX + r - a,
|
|
2280
|
-
y: h.clientY -
|
|
2308
|
+
y: h.clientY - p + s / 2
|
|
2281
2309
|
};
|
|
2282
2310
|
}
|
|
2283
2311
|
function g() {
|
|
2284
2312
|
t.value = !1;
|
|
2285
2313
|
}
|
|
2286
|
-
return (h, l) => (
|
|
2314
|
+
return (h, l) => (_(), L("div", {
|
|
2287
2315
|
class: "relative",
|
|
2288
2316
|
onMouseenter: i,
|
|
2289
2317
|
onMouseleave: g
|
|
2290
2318
|
}, [
|
|
2291
2319
|
b("img", {
|
|
2292
|
-
src:
|
|
2293
|
-
fit:
|
|
2294
|
-
onError:
|
|
2320
|
+
src: u.src,
|
|
2321
|
+
fit: u.fit,
|
|
2322
|
+
onError: c,
|
|
2295
2323
|
style: {
|
|
2296
2324
|
height: "100%",
|
|
2297
2325
|
width: "100%"
|
|
2298
2326
|
}
|
|
2299
|
-
}, null, 40,
|
|
2300
|
-
(
|
|
2301
|
-
t.value ? (
|
|
2327
|
+
}, null, 40, Do),
|
|
2328
|
+
(_(), P(Fe, { to: "body" }, [
|
|
2329
|
+
t.value ? (_(), L("div", {
|
|
2302
2330
|
key: 0,
|
|
2303
2331
|
class: "fixed hzzt-kfb-img-triangle-left",
|
|
2304
|
-
style:
|
|
2332
|
+
style: Z(d.value)
|
|
2305
2333
|
}, [
|
|
2306
2334
|
b("img", {
|
|
2307
|
-
src:
|
|
2308
|
-
fit:
|
|
2335
|
+
src: u.src,
|
|
2336
|
+
fit: u.fit,
|
|
2309
2337
|
style: {
|
|
2310
2338
|
objectFit: "contain",
|
|
2311
2339
|
height: "100%",
|
|
@@ -2315,32 +2343,32 @@ const No = ["src", "fit"], Bo = ["src", "fit"], Ue = /* @__PURE__ */ ee({
|
|
|
2315
2343
|
t.value = !0;
|
|
2316
2344
|
}),
|
|
2317
2345
|
onMouseleave: g
|
|
2318
|
-
}, null, 40,
|
|
2346
|
+
}, null, 40, Uo)
|
|
2319
2347
|
], 4)) : A("", !0)
|
|
2320
2348
|
]))
|
|
2321
2349
|
], 32));
|
|
2322
2350
|
}
|
|
2323
|
-
}),
|
|
2351
|
+
}), Fo = {}, Ko = {
|
|
2324
2352
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2325
2353
|
viewBox: "0 0 1024 1024"
|
|
2326
2354
|
};
|
|
2327
|
-
function
|
|
2328
|
-
return
|
|
2355
|
+
function jo(u, e) {
|
|
2356
|
+
return _(), L("svg", Ko, e[0] || (e[0] = [
|
|
2329
2357
|
b("path", {
|
|
2330
2358
|
fill: "currentColor",
|
|
2331
2359
|
d: "M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"
|
|
2332
2360
|
}, null, -1)
|
|
2333
2361
|
]));
|
|
2334
2362
|
}
|
|
2335
|
-
const
|
|
2363
|
+
const Oo = /* @__PURE__ */ he(Fo, [["render", jo]]), Go = {}, Wo = {
|
|
2336
2364
|
width: "16",
|
|
2337
2365
|
height: "16",
|
|
2338
2366
|
viewBox: "0 0 16 16",
|
|
2339
2367
|
fill: "none",
|
|
2340
2368
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2341
2369
|
};
|
|
2342
|
-
function
|
|
2343
|
-
return
|
|
2370
|
+
function Zo(u, e) {
|
|
2371
|
+
return _(), L("svg", Wo, e[0] || (e[0] = [
|
|
2344
2372
|
b("g", { id: "Frame" }, [
|
|
2345
2373
|
b("path", {
|
|
2346
2374
|
id: "Vector",
|
|
@@ -2351,69 +2379,69 @@ function Go(c, e) {
|
|
|
2351
2379
|
], -1)
|
|
2352
2380
|
]));
|
|
2353
2381
|
}
|
|
2354
|
-
const
|
|
2382
|
+
const qo = /* @__PURE__ */ he(Go, [["render", Zo]]), Yo = { class: "hzzt-kfb-slides" }, Xo = { class: "hzzt-kfb-slides__row" }, Qo = { class: "hzzt-kfb-slides__top" }, Jo = { class: "text-primary" }, en = { class: "flex align-items-center" }, tn = { key: 0 }, ln = ["data-index", "onClick"], on = { class: "hzzt-kfb-slides__gallery" }, nn = ["onClick"], an = {
|
|
2355
2383
|
key: 0,
|
|
2356
2384
|
class: "hzzt-kfb-slides__read"
|
|
2357
|
-
},
|
|
2385
|
+
}, sn = ["onClick"], rn = {
|
|
2358
2386
|
key: 1,
|
|
2359
2387
|
class: "flex column"
|
|
2360
|
-
},
|
|
2388
|
+
}, un = { class: "hzzt-kfb-slides__header" }, cn = { class: "w-30%" }, dn = { class: "w-40%" }, vn = { class: "w-20%" }, fn = ["data-index", "onClick"], mn = { class: "w-30% flex" }, pn = { class: "hzzt-kfb-slides__gallery" }, hn = {
|
|
2361
2389
|
key: 0,
|
|
2362
2390
|
class: "hzzt-kfb-slides__read"
|
|
2363
|
-
},
|
|
2391
|
+
}, gn = { class: "w-40% flex" }, wn = ["onClick"], yn = ["onClick"], _n = {
|
|
2364
2392
|
key: 0,
|
|
2365
2393
|
class: "flex column py-2"
|
|
2366
|
-
},
|
|
2394
|
+
}, bn = { class: "flex align-items-center justify-content-center" }, kn = { class: "margin-r-1" }, zn = {
|
|
2367
2395
|
key: 0,
|
|
2368
2396
|
class: "margin-r-1 margin-l-2"
|
|
2369
|
-
},
|
|
2397
|
+
}, Cn = /* @__PURE__ */ ee({
|
|
2370
2398
|
__name: "KfbSlideList",
|
|
2371
2399
|
props: {
|
|
2372
2400
|
slides: {}
|
|
2373
2401
|
},
|
|
2374
2402
|
emits: ["select", "tool"],
|
|
2375
|
-
setup(
|
|
2376
|
-
const t =
|
|
2403
|
+
setup(u, { expose: e, emit: n }) {
|
|
2404
|
+
const t = u, y = n, d = J("file-index", {
|
|
2377
2405
|
value: 0
|
|
2378
|
-
}),
|
|
2406
|
+
}), c = J("divide", {
|
|
2379
2407
|
value: !1
|
|
2380
2408
|
}), i = J("sync", {
|
|
2381
2409
|
value: !1
|
|
2382
|
-
}), f = $(!1), g = $(), h = B(() => t.slides.filter(({ read:
|
|
2383
|
-
function m
|
|
2384
|
-
|
|
2410
|
+
}), f = $(!1), g = $(), h = B(() => t.slides.filter(({ read: m }) => m)), l = B(() => t.slides.filter(({ check: m }) => m)), { t: a } = ie();
|
|
2411
|
+
function p(m) {
|
|
2412
|
+
d.value = m, y("select", m);
|
|
2385
2413
|
}
|
|
2386
|
-
function r(
|
|
2387
|
-
|
|
2414
|
+
function r(m) {
|
|
2415
|
+
m.check = !m.check;
|
|
2388
2416
|
}
|
|
2389
|
-
function s(
|
|
2390
|
-
var k,
|
|
2391
|
-
const w = ((
|
|
2392
|
-
g.value.scrollTop = g.value.querySelector(`[data-index="${
|
|
2417
|
+
function s(m) {
|
|
2418
|
+
var k, v, M;
|
|
2419
|
+
const w = ((M = (v = (k = g.value.querySelector('[data-index="0"]')) == null ? void 0 : k.getBoundingClientRect) == null ? void 0 : v.call(k)) == null ? void 0 : M.y) || 0;
|
|
2420
|
+
g.value.scrollTop = g.value.querySelector(`[data-index="${m}"]`).getBoundingClientRect().y - w;
|
|
2393
2421
|
}
|
|
2394
2422
|
return e({
|
|
2395
2423
|
jumpToSlide: s
|
|
2396
|
-
}), (
|
|
2397
|
-
b("div",
|
|
2398
|
-
b("div",
|
|
2424
|
+
}), (m, w) => (_(), L("div", Yo, [
|
|
2425
|
+
b("div", Xo, [
|
|
2426
|
+
b("div", Qo, [
|
|
2399
2427
|
b("span", null, [
|
|
2400
2428
|
w[4] || (w[4] = G("已读:")),
|
|
2401
|
-
b("span",
|
|
2402
|
-
G("/" +
|
|
2429
|
+
b("span", Jo, E(h.value.length), 1),
|
|
2430
|
+
G("/" + E(m.slides.length), 1)
|
|
2403
2431
|
]),
|
|
2404
|
-
b("div",
|
|
2405
|
-
T(
|
|
2432
|
+
b("div", en, [
|
|
2433
|
+
T(o(_e), {
|
|
2406
2434
|
class: "margin-r-2 pointer",
|
|
2407
2435
|
size: "16",
|
|
2408
2436
|
color: f.value ? "#999" : "#000",
|
|
2409
2437
|
onClick: w[0] || (w[0] = (k) => f.value = !f.value)
|
|
2410
2438
|
}, {
|
|
2411
2439
|
default: x(() => [
|
|
2412
|
-
T(
|
|
2440
|
+
T(Oo)
|
|
2413
2441
|
]),
|
|
2414
2442
|
_: 1
|
|
2415
2443
|
}, 8, ["color"]),
|
|
2416
|
-
T(
|
|
2444
|
+
T(o(_e), {
|
|
2417
2445
|
class: "pointer",
|
|
2418
2446
|
name: "cus-list",
|
|
2419
2447
|
size: "16",
|
|
@@ -2421,7 +2449,7 @@ const Wo = /* @__PURE__ */ he(jo, [["render", Go]]), Zo = { class: "hzzt-kfb-sli
|
|
|
2421
2449
|
onClick: w[1] || (w[1] = (k) => f.value = !f.value)
|
|
2422
2450
|
}, {
|
|
2423
2451
|
default: x(() => [
|
|
2424
|
-
T(
|
|
2452
|
+
T(qo)
|
|
2425
2453
|
]),
|
|
2426
2454
|
_: 1
|
|
2427
2455
|
}, 8, ["color"])
|
|
@@ -2433,37 +2461,37 @@ const Wo = /* @__PURE__ */ he(jo, [["render", Go]]), Zo = { class: "hzzt-kfb-sli
|
|
|
2433
2461
|
ref_key: "slidesRef",
|
|
2434
2462
|
ref: g
|
|
2435
2463
|
}, [
|
|
2436
|
-
f.value ? (
|
|
2437
|
-
b("li",
|
|
2464
|
+
f.value ? (_(), L("ul", rn, [
|
|
2465
|
+
b("li", un, [
|
|
2438
2466
|
w[5] || (w[5] = b("div", { class: "w-10%" }, null, -1)),
|
|
2439
|
-
b("div",
|
|
2440
|
-
b("div",
|
|
2441
|
-
b("div",
|
|
2467
|
+
b("div", cn, E(o(a)("缩略图")), 1),
|
|
2468
|
+
b("div", dn, E(o(a)("切片名")), 1),
|
|
2469
|
+
b("div", vn, E(o(a)("评分")), 1)
|
|
2442
2470
|
]),
|
|
2443
|
-
(
|
|
2444
|
-
key:
|
|
2445
|
-
"data-index":
|
|
2471
|
+
(_(!0), L(le, null, oe(m.slides, (k, v) => (_(), L("li", {
|
|
2472
|
+
key: v,
|
|
2473
|
+
"data-index": v,
|
|
2446
2474
|
class: "flex align-items-center overflow-hidden",
|
|
2447
|
-
style:
|
|
2448
|
-
backgroundColor:
|
|
2475
|
+
style: Z({
|
|
2476
|
+
backgroundColor: o(d) === v ? "rgba(6, 85, 195, 0.1)" : "#fff"
|
|
2449
2477
|
}),
|
|
2450
|
-
onClick: (
|
|
2478
|
+
onClick: (M) => p(v)
|
|
2451
2479
|
}, [
|
|
2452
2480
|
b("div", {
|
|
2453
2481
|
class: "w-10% text-center",
|
|
2454
2482
|
onClick: Be(() => {
|
|
2455
2483
|
}, ["stop"])
|
|
2456
2484
|
}, [
|
|
2457
|
-
T(
|
|
2485
|
+
T(o(Oe), {
|
|
2458
2486
|
modelValue: k.check,
|
|
2459
|
-
"onUpdate:modelValue": (
|
|
2487
|
+
"onUpdate:modelValue": (M) => k.check = M,
|
|
2460
2488
|
style: { width: "14px", height: "16px" }
|
|
2461
2489
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
2462
2490
|
]),
|
|
2463
|
-
b("div",
|
|
2464
|
-
b("div",
|
|
2491
|
+
b("div", mn, [
|
|
2492
|
+
b("div", pn, [
|
|
2465
2493
|
T(Ue, {
|
|
2466
|
-
style:
|
|
2494
|
+
style: Z([{ transform: `rotate(${k.angle}deg)` }, { height: "45px" }]),
|
|
2467
2495
|
"retry-times": 1,
|
|
2468
2496
|
src: k.labelImg,
|
|
2469
2497
|
fit: "cover",
|
|
@@ -2476,11 +2504,11 @@ const Wo = /* @__PURE__ */ he(jo, [["render", Go]]), Zo = { class: "hzzt-kfb-sli
|
|
|
2476
2504
|
style: { height: "45px" },
|
|
2477
2505
|
class: "flex-1"
|
|
2478
2506
|
}, null, 8, ["src"]),
|
|
2479
|
-
k.read ? A("", !0) : (
|
|
2507
|
+
k.read ? A("", !0) : (_(), L("div", hn, E(o(a)("未读")), 1))
|
|
2480
2508
|
])
|
|
2481
2509
|
]),
|
|
2482
|
-
b("div",
|
|
2483
|
-
T(
|
|
2510
|
+
b("div", gn, [
|
|
2511
|
+
T(o(zt), {
|
|
2484
2512
|
effect: "dark",
|
|
2485
2513
|
placement: "bottom",
|
|
2486
2514
|
content: `${k.name}`
|
|
@@ -2490,30 +2518,30 @@ const Wo = /* @__PURE__ */ he(jo, [["render", Go]]), Zo = { class: "hzzt-kfb-sli
|
|
|
2490
2518
|
style: { "line-height": "16px" },
|
|
2491
2519
|
class: "margin-l-1 ellipsis hzzt-kfb-slides__text",
|
|
2492
2520
|
dir: "rtl",
|
|
2493
|
-
onClick: Be((
|
|
2494
|
-
},
|
|
2521
|
+
onClick: Be((M) => r(k), ["stop"])
|
|
2522
|
+
}, E(k.name), 9, wn)
|
|
2495
2523
|
]),
|
|
2496
2524
|
_: 2
|
|
2497
2525
|
}, 1032, ["content"])
|
|
2498
2526
|
]),
|
|
2499
2527
|
b("div", {
|
|
2500
2528
|
class: "w-20% flex text-center pointer",
|
|
2501
|
-
style:
|
|
2529
|
+
style: Z({
|
|
2502
2530
|
color: k.gradeColor
|
|
2503
2531
|
}),
|
|
2504
|
-
onClick: (
|
|
2505
|
-
},
|
|
2506
|
-
], 12,
|
|
2507
|
-
])) : (
|
|
2508
|
-
(
|
|
2509
|
-
key:
|
|
2510
|
-
class: ye(["hzzt-kfb-slides__box",
|
|
2511
|
-
"data-index":
|
|
2512
|
-
onClick: (
|
|
2532
|
+
onClick: (M) => y("tool", "grade", k)
|
|
2533
|
+
}, E(k.grade), 13, yn)
|
|
2534
|
+
], 12, fn))), 128))
|
|
2535
|
+
])) : (_(), L("div", tn, [
|
|
2536
|
+
(_(!0), L(le, null, oe(m.slides, (k, v) => (_(), L("div", {
|
|
2537
|
+
key: v,
|
|
2538
|
+
class: ye(["hzzt-kfb-slides__box", o(d) === v ? "hzzt-kfb-slides__box--active" : ""]),
|
|
2539
|
+
"data-index": v,
|
|
2540
|
+
onClick: (M) => p(v)
|
|
2513
2541
|
}, [
|
|
2514
|
-
b("div",
|
|
2542
|
+
b("div", on, [
|
|
2515
2543
|
T(Ue, {
|
|
2516
|
-
style:
|
|
2544
|
+
style: Z({ transform: `rotate(${k.angle}deg)` }),
|
|
2517
2545
|
"retry-times": 1,
|
|
2518
2546
|
src: k.labelImg,
|
|
2519
2547
|
class: "hzzt-kfb-slides__img",
|
|
@@ -2531,12 +2559,12 @@ const Wo = /* @__PURE__ */ he(jo, [["render", Go]]), Zo = { class: "hzzt-kfb-sli
|
|
|
2531
2559
|
onClick: Be(() => {
|
|
2532
2560
|
}, ["stop"])
|
|
2533
2561
|
}, [
|
|
2534
|
-
T(
|
|
2562
|
+
T(o(Oe), {
|
|
2535
2563
|
modelValue: k.check,
|
|
2536
|
-
"onUpdate:modelValue": (
|
|
2564
|
+
"onUpdate:modelValue": (M) => k.check = M,
|
|
2537
2565
|
style: { width: "14px", height: "16px" }
|
|
2538
2566
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
2539
|
-
T(
|
|
2567
|
+
T(o(zt), {
|
|
2540
2568
|
effect: "dark",
|
|
2541
2569
|
placement: "bottom",
|
|
2542
2570
|
content: `${k.name}`
|
|
@@ -2545,36 +2573,36 @@ const Wo = /* @__PURE__ */ he(jo, [["render", Go]]), Zo = { class: "hzzt-kfb-sli
|
|
|
2545
2573
|
b("span", {
|
|
2546
2574
|
style: { "line-height": "16px", "text-align": "center", width: "calc(100% - 14px)" },
|
|
2547
2575
|
class: "margin-l-1 ellipsis",
|
|
2548
|
-
onClick: Be((
|
|
2549
|
-
},
|
|
2576
|
+
onClick: Be((M) => r(k), ["stop"])
|
|
2577
|
+
}, E(k.name), 9, nn)
|
|
2550
2578
|
]),
|
|
2551
2579
|
_: 2
|
|
2552
2580
|
}, 1032, ["content"])
|
|
2553
2581
|
]),
|
|
2554
|
-
k.read ? A("", !0) : (
|
|
2555
|
-
k.grade ? (
|
|
2582
|
+
k.read ? A("", !0) : (_(), L("div", an, E(o(a)("未读")), 1)),
|
|
2583
|
+
k.grade ? (_(), L("div", {
|
|
2556
2584
|
key: 1,
|
|
2557
2585
|
class: "hzzt-kfb-slides__grade",
|
|
2558
|
-
style:
|
|
2586
|
+
style: Z({
|
|
2559
2587
|
background: k.gradeColor
|
|
2560
2588
|
}),
|
|
2561
|
-
onClick: (
|
|
2562
|
-
},
|
|
2563
|
-
|
|
2564
|
-
], 10,
|
|
2589
|
+
onClick: (M) => y("tool", "grade", k)
|
|
2590
|
+
}, E(k.grade), 13, sn)) : A("", !0),
|
|
2591
|
+
de(m.$slots, "slide", { slide: k }, void 0, !0)
|
|
2592
|
+
], 10, ln))), 128))
|
|
2565
2593
|
]))
|
|
2566
2594
|
], 512),
|
|
2567
|
-
l.value.length > 1 ? (
|
|
2568
|
-
b("div",
|
|
2569
|
-
b("span",
|
|
2570
|
-
T(
|
|
2571
|
-
modelValue:
|
|
2572
|
-
"onUpdate:modelValue": w[2] || (w[2] = (k) => Ve(
|
|
2595
|
+
l.value.length > 1 ? (_(), L("div", _n, [
|
|
2596
|
+
b("div", bn, [
|
|
2597
|
+
b("span", kn, E(o(a)("分屏")), 1),
|
|
2598
|
+
T(o(Le), {
|
|
2599
|
+
modelValue: o(c),
|
|
2600
|
+
"onUpdate:modelValue": w[2] || (w[2] = (k) => Ve(c) ? c.value = k : null)
|
|
2573
2601
|
}, null, 8, ["modelValue"]),
|
|
2574
|
-
|
|
2575
|
-
|
|
2602
|
+
o(c) ? (_(), L("span", zn, E(o(a)("同步")), 1)) : A("", !0),
|
|
2603
|
+
o(c) ? (_(), P(o(Le), {
|
|
2576
2604
|
key: 1,
|
|
2577
|
-
modelValue:
|
|
2605
|
+
modelValue: o(i),
|
|
2578
2606
|
"onUpdate:modelValue": w[3] || (w[3] = (k) => Ve(i) ? i.value = k : null)
|
|
2579
2607
|
}, null, 8, ["modelValue"])) : A("", !0)
|
|
2580
2608
|
])
|
|
@@ -2582,78 +2610,62 @@ const Wo = /* @__PURE__ */ he(jo, [["render", Go]]), Zo = { class: "hzzt-kfb-sli
|
|
|
2582
2610
|
])
|
|
2583
2611
|
]));
|
|
2584
2612
|
}
|
|
2585
|
-
}),
|
|
2613
|
+
}), Tn = /* @__PURE__ */ he(Cn, [["__scopeId", "data-v-d3cde57c"]]), $n = { class: "hzzt-kfb-ai overflow-hidden" }, Ln = { class: "flex align-items-center margin-t-1" }, xn = { style: { color: "var(--el-color-success)" } }, En = { class: "flex-1 flex overflow-auto wrap margin-t-1" }, Vn = ["onClick"], Mn = {
|
|
2586
2614
|
key: 0,
|
|
2587
2615
|
style: { "margin-left": "2px" }
|
|
2588
|
-
},
|
|
2616
|
+
}, In = /* @__PURE__ */ ee({
|
|
2589
2617
|
name: "KfbAiList",
|
|
2590
2618
|
__name: "list",
|
|
2591
2619
|
props: {
|
|
2592
2620
|
data: { default: () => [] },
|
|
2593
2621
|
slide: { default: () => ({}) }
|
|
2594
2622
|
},
|
|
2595
|
-
setup(
|
|
2596
|
-
const
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
} : E.indexOf("阴性") > -1 ? {
|
|
2606
|
-
type: "success",
|
|
2607
|
-
name: E
|
|
2608
|
-
} : {
|
|
2609
|
-
type: "info",
|
|
2610
|
-
name: E || t("未知")
|
|
2611
|
-
};
|
|
2612
|
-
}), m = B(() => {
|
|
2613
|
-
const E = /* @__PURE__ */ new Set();
|
|
2614
|
-
return o.data.forEach((R) => {
|
|
2615
|
-
const I = R.cls || "";
|
|
2616
|
-
I && !E.has(I) && E.add(I);
|
|
2617
|
-
}), Array.from(E);
|
|
2618
|
-
}), r = B(() => g.value.length !== 0 && g.value.length !== m.value.length);
|
|
2619
|
-
ne(() => m.value, (E) => {
|
|
2620
|
-
s(), g.value = [...E];
|
|
2623
|
+
setup(u, { expose: e }) {
|
|
2624
|
+
const n = u, { t } = ie(), y = J("kfbViewRef"), d = $(-1), c = $(1), i = $(100), f = $(!0), g = $([]), h = B(() => n.data.filter((M) => g.value.includes(M.cls || ""))), l = B(() => h.value.slice((c.value - 1) * i.value, c.value * i.value)), a = B(() => {
|
|
2625
|
+
const M = /* @__PURE__ */ new Set();
|
|
2626
|
+
return n.data.forEach((R) => {
|
|
2627
|
+
const S = R.cls || "";
|
|
2628
|
+
S && !M.has(S) && M.add(S);
|
|
2629
|
+
}), Array.from(M);
|
|
2630
|
+
}), p = B(() => g.value.length !== 0 && g.value.length !== a.value.length), r = Lt(n);
|
|
2631
|
+
ne(() => a.value, (M) => {
|
|
2632
|
+
s(), g.value = [...M];
|
|
2621
2633
|
}), pe(() => {
|
|
2622
|
-
g.value = [...
|
|
2634
|
+
g.value = [...a.value];
|
|
2623
2635
|
});
|
|
2624
2636
|
function s() {
|
|
2625
|
-
|
|
2637
|
+
d.value = -1, c.value = 1, i.value = 100, f.value = !0;
|
|
2626
2638
|
}
|
|
2627
|
-
function
|
|
2628
|
-
const R = h.value.findIndex((
|
|
2629
|
-
|
|
2639
|
+
function m(M) {
|
|
2640
|
+
const R = h.value.findIndex((S) => S.id === M.id);
|
|
2641
|
+
d.value = R, y.value.jumpToLabel(M, 5);
|
|
2630
2642
|
}
|
|
2631
|
-
function w(
|
|
2632
|
-
const R =
|
|
2643
|
+
function w(M) {
|
|
2644
|
+
const R = n.data.filter((S) => S.cls === M);
|
|
2633
2645
|
return R.length ? `(${R.length})` : "";
|
|
2634
2646
|
}
|
|
2635
2647
|
function k() {
|
|
2636
|
-
|
|
2648
|
+
d.value = -1, f.value = g.value.length == a.value.length;
|
|
2637
2649
|
}
|
|
2638
|
-
function
|
|
2639
|
-
g.value =
|
|
2650
|
+
function v(M) {
|
|
2651
|
+
g.value = M ? [...a.value] : [], d.value = -1;
|
|
2640
2652
|
}
|
|
2641
2653
|
return e({
|
|
2642
2654
|
labelList: h
|
|
2643
|
-
}), (
|
|
2644
|
-
b("div",
|
|
2645
|
-
T(
|
|
2655
|
+
}), (M, R) => (_(), L("div", $n, [
|
|
2656
|
+
b("div", Ln, [
|
|
2657
|
+
T(o(rl), {
|
|
2646
2658
|
placement: "bottom",
|
|
2647
2659
|
trigger: "click",
|
|
2648
2660
|
width: "160"
|
|
2649
2661
|
}, {
|
|
2650
2662
|
reference: x(() => [
|
|
2651
|
-
T(
|
|
2663
|
+
T(o(ge), {
|
|
2652
2664
|
class: "margin-r-1",
|
|
2653
2665
|
type: "primary"
|
|
2654
2666
|
}, {
|
|
2655
2667
|
default: x(() => [
|
|
2656
|
-
G(
|
|
2668
|
+
G(E(o(t)("分类")) + " ", 1),
|
|
2657
2669
|
T(X, { name: "arrowDown" })
|
|
2658
2670
|
]),
|
|
2659
2671
|
_: 1
|
|
@@ -2661,31 +2673,31 @@ const Wo = /* @__PURE__ */ he(jo, [["render", Go]]), Zo = { class: "hzzt-kfb-sli
|
|
|
2661
2673
|
]),
|
|
2662
2674
|
default: x(() => [
|
|
2663
2675
|
b("div", null, [
|
|
2664
|
-
T(
|
|
2676
|
+
T(o(Oe), {
|
|
2665
2677
|
modelValue: f.value,
|
|
2666
|
-
"onUpdate:modelValue": R[0] || (R[0] = (
|
|
2667
|
-
indeterminate:
|
|
2668
|
-
onChange:
|
|
2678
|
+
"onUpdate:modelValue": R[0] || (R[0] = (S) => f.value = S),
|
|
2679
|
+
indeterminate: p.value,
|
|
2680
|
+
onChange: v
|
|
2669
2681
|
}, {
|
|
2670
2682
|
default: x(() => [
|
|
2671
|
-
G(
|
|
2683
|
+
G(E(o(t)("全选")), 1)
|
|
2672
2684
|
]),
|
|
2673
2685
|
_: 1
|
|
2674
2686
|
}, 8, ["modelValue", "indeterminate"]),
|
|
2675
|
-
T(
|
|
2687
|
+
T(o(ul), {
|
|
2676
2688
|
modelValue: g.value,
|
|
2677
|
-
"onUpdate:modelValue": R[1] || (R[1] = (
|
|
2689
|
+
"onUpdate:modelValue": R[1] || (R[1] = (S) => g.value = S),
|
|
2678
2690
|
class: "flex column",
|
|
2679
2691
|
onChange: k
|
|
2680
2692
|
}, {
|
|
2681
2693
|
default: x(() => [
|
|
2682
|
-
(
|
|
2683
|
-
key:
|
|
2684
|
-
value:
|
|
2694
|
+
(_(!0), L(le, null, oe(a.value, (S) => (_(), P(o(Oe), {
|
|
2695
|
+
key: S,
|
|
2696
|
+
value: S
|
|
2685
2697
|
}, {
|
|
2686
2698
|
default: x(() => [
|
|
2687
|
-
G(
|
|
2688
|
-
b("span",
|
|
2699
|
+
G(E(S) + " ", 1),
|
|
2700
|
+
b("span", xn, E(w(S)), 1)
|
|
2689
2701
|
]),
|
|
2690
2702
|
_: 2
|
|
2691
2703
|
}, 1032, ["value"]))), 128))
|
|
@@ -2696,53 +2708,53 @@ const Wo = /* @__PURE__ */ he(jo, [["render", Go]]), Zo = { class: "hzzt-kfb-sli
|
|
|
2696
2708
|
]),
|
|
2697
2709
|
_: 1
|
|
2698
2710
|
}),
|
|
2699
|
-
T(
|
|
2700
|
-
type:
|
|
2711
|
+
T(o(Tt), {
|
|
2712
|
+
type: o(r).type,
|
|
2701
2713
|
class: "margin-l-1"
|
|
2702
2714
|
}, {
|
|
2703
2715
|
default: x(() => [
|
|
2704
|
-
G(
|
|
2716
|
+
G(E(o(r).name), 1)
|
|
2705
2717
|
]),
|
|
2706
2718
|
_: 1
|
|
2707
2719
|
}, 8, ["type"])
|
|
2708
2720
|
]),
|
|
2709
|
-
b("div",
|
|
2710
|
-
(
|
|
2711
|
-
key:
|
|
2712
|
-
class: ye(`hzzt-kfb-ai__img ${
|
|
2713
|
-
onClick: (
|
|
2721
|
+
b("div", En, [
|
|
2722
|
+
(_(!0), L(le, null, oe(l.value, (S, Q) => (_(), L("div", {
|
|
2723
|
+
key: Q + (c.value - 1) * i.value,
|
|
2724
|
+
class: ye(`hzzt-kfb-ai__img ${d.value === Q + (c.value - 1) * i.value ? "hzzt-kfb-ai__img--active" : ""}`),
|
|
2725
|
+
onClick: (W) => m(S)
|
|
2714
2726
|
}, [
|
|
2715
|
-
T(
|
|
2727
|
+
T(o(dl), {
|
|
2716
2728
|
"retry-times": 1,
|
|
2717
|
-
src:
|
|
2718
|
-
"error-src":
|
|
2729
|
+
src: S.imageUrl,
|
|
2730
|
+
"error-src": o(Ge)
|
|
2719
2731
|
}, null, 8, ["src", "error-src"]),
|
|
2720
2732
|
b("div", {
|
|
2721
|
-
style:
|
|
2733
|
+
style: Z({ color: S.strokeStyle }),
|
|
2722
2734
|
class: "ellipsis"
|
|
2723
2735
|
}, [
|
|
2724
|
-
G(
|
|
2725
|
-
|
|
2736
|
+
G(E(S.cls) + " ", 1),
|
|
2737
|
+
S.score ? (_(), L("span", Mn, E(S.score), 1)) : A("", !0)
|
|
2726
2738
|
], 4)
|
|
2727
|
-
], 10,
|
|
2739
|
+
], 10, Vn))), 128))
|
|
2728
2740
|
]),
|
|
2729
|
-
T(
|
|
2741
|
+
T(o(cl), {
|
|
2730
2742
|
class: "wrap",
|
|
2731
|
-
"current-page":
|
|
2732
|
-
"onUpdate:currentPage": R[2] || (R[2] = (
|
|
2743
|
+
"current-page": c.value,
|
|
2744
|
+
"onUpdate:currentPage": R[2] || (R[2] = (S) => c.value = S),
|
|
2733
2745
|
"page-size": i.value,
|
|
2734
|
-
"onUpdate:pageSize": R[3] || (R[3] = (
|
|
2746
|
+
"onUpdate:pageSize": R[3] || (R[3] = (S) => i.value = S),
|
|
2735
2747
|
"page-sizes": [100, 200, 300, 400],
|
|
2736
2748
|
layout: "total, sizes, prev, pager, next",
|
|
2737
2749
|
total: h.value.length
|
|
2738
2750
|
}, null, 8, ["current-page", "page-size", "total"])
|
|
2739
2751
|
]));
|
|
2740
2752
|
}
|
|
2741
|
-
}),
|
|
2753
|
+
}), Sn = { class: "hzzt-kfb-slide" }, Hn = { class: "flex flex-1 overflow-hidden" }, Pn = { class: "flex flex-1" }, Rn = {
|
|
2742
2754
|
key: 0,
|
|
2743
2755
|
style: { height: "100%", width: "100%" },
|
|
2744
2756
|
class: "flex wrap"
|
|
2745
|
-
},
|
|
2757
|
+
}, An = ["onClick"], We = /* @__PURE__ */ ee({
|
|
2746
2758
|
name: "HzztKfbSlide",
|
|
2747
2759
|
__name: "index",
|
|
2748
2760
|
props: /* @__PURE__ */ we({
|
|
@@ -2764,18 +2776,18 @@ const Wo = /* @__PURE__ */ he(jo, [["render", Go]]), Zo = { class: "hzzt-kfb-sli
|
|
|
2764
2776
|
indexModifiers: {}
|
|
2765
2777
|
}),
|
|
2766
2778
|
emits: /* @__PURE__ */ we(["tool"], ["update:index"]),
|
|
2767
|
-
setup(
|
|
2768
|
-
const t =
|
|
2779
|
+
setup(u, { expose: e, emit: n }) {
|
|
2780
|
+
const t = u, y = n, d = Ee(u, "index"), c = B(() => t.slides[d.value]), i = B(() => t.slides.filter(({ check: C }) => C)), f = $(), g = $(), h = $(), l = $(), a = $(t.showKeyboard), p = $(t.showKfbLabel), r = $(!1), s = $(!1), m = $(!1), { t: w } = ie(), k = B(() => {
|
|
2769
2781
|
var C;
|
|
2770
2782
|
if (r.value) {
|
|
2771
2783
|
const N = i.value.findIndex(({ id: F }) => {
|
|
2772
|
-
var
|
|
2773
|
-
return F === ((
|
|
2784
|
+
var re;
|
|
2785
|
+
return F === ((re = c.value) == null ? void 0 : re.id);
|
|
2774
2786
|
});
|
|
2775
2787
|
return ((C = h.value) == null ? void 0 : C[N]) || g.value;
|
|
2776
2788
|
} else
|
|
2777
2789
|
return g.value;
|
|
2778
|
-
}),
|
|
2790
|
+
}), v = B(() => i.value.length <= 1 ? {
|
|
2779
2791
|
height: "100%",
|
|
2780
2792
|
width: "100%"
|
|
2781
2793
|
} : i.value.length <= 2 ? {
|
|
@@ -2796,81 +2808,81 @@ const Wo = /* @__PURE__ */ he(jo, [["render", Go]]), Zo = { class: "hzzt-kfb-sli
|
|
|
2796
2808
|
});
|
|
2797
2809
|
ne(() => i.value, (C) => {
|
|
2798
2810
|
r.value && C.length <= 1 && (r.value = !1);
|
|
2799
|
-
}), ne(() =>
|
|
2811
|
+
}), ne(() => c.value, (C) => {
|
|
2800
2812
|
if (C) {
|
|
2801
2813
|
const N = C.read;
|
|
2802
|
-
C.read = !0,
|
|
2814
|
+
C.read = !0, y("tool", "choose", {
|
|
2803
2815
|
slide: C,
|
|
2804
2816
|
read: N
|
|
2805
2817
|
});
|
|
2806
2818
|
}
|
|
2807
2819
|
});
|
|
2808
2820
|
const {
|
|
2809
|
-
analysisClass:
|
|
2821
|
+
analysisClass: M,
|
|
2810
2822
|
aiLabelList: R,
|
|
2811
|
-
enableAi:
|
|
2812
|
-
enableIqc:
|
|
2813
|
-
toggleIqc:
|
|
2823
|
+
enableAi: S,
|
|
2824
|
+
enableIqc: Q,
|
|
2825
|
+
toggleIqc: W,
|
|
2814
2826
|
toggleAi: ve
|
|
2815
|
-
} =
|
|
2827
|
+
} = Bo(t, c);
|
|
2816
2828
|
function te(C, N) {
|
|
2817
|
-
C === "next" && t.slides[
|
|
2829
|
+
C === "next" && t.slides[d.value + 1] && d.value++, C === "prev" && t.slides[d.value - 1] && d.value--, (C === "label" || C === "tool") && (p.value = N), y("tool", C, N);
|
|
2818
2830
|
}
|
|
2819
2831
|
function be(C) {
|
|
2820
|
-
var F,
|
|
2832
|
+
var F, re, ke;
|
|
2821
2833
|
const N = me(j({}, t.kfb), {
|
|
2822
2834
|
process: t.process,
|
|
2823
2835
|
microscope: t.microscope,
|
|
2824
2836
|
slide: C,
|
|
2825
|
-
aiLabelList:
|
|
2826
|
-
hotmap: (
|
|
2827
|
-
enable:
|
|
2837
|
+
aiLabelList: c.value.id === C.id ? ((F = l.value) == null ? void 0 : F.labelList) || [] : [],
|
|
2838
|
+
hotmap: (re = C == null ? void 0 : C.hotmap) != null && re.file ? me(j({}, (C == null ? void 0 : C.hotmap) || {}), {
|
|
2839
|
+
enable: S.value
|
|
2828
2840
|
}) : void 0,
|
|
2829
2841
|
syncPosition: s.value,
|
|
2830
2842
|
syncZoom: s.value,
|
|
2831
2843
|
handle: void 0
|
|
2832
2844
|
});
|
|
2833
|
-
return (
|
|
2845
|
+
return (ke = t.kfb) != null && ke.handle ? t.kfb.handle(C, N) : N;
|
|
2834
2846
|
}
|
|
2835
|
-
function
|
|
2836
|
-
|
|
2847
|
+
function Se(C) {
|
|
2848
|
+
d.value = t.slides.findIndex((N) => N.id === C.id);
|
|
2837
2849
|
}
|
|
2838
|
-
function
|
|
2850
|
+
function Ae(C) {
|
|
2839
2851
|
r.value && (t.slides[C].check = !0);
|
|
2840
2852
|
}
|
|
2841
|
-
function
|
|
2853
|
+
function Ze() {
|
|
2842
2854
|
var C;
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
show: !
|
|
2846
|
-
ruler: !
|
|
2847
|
-
}), a.value = !
|
|
2848
|
-
show: !
|
|
2849
|
-
}), N.updateNavigator(!
|
|
2855
|
+
p.value = !m.value, (C = r.value ? h.value : [g.value]) == null || C.forEach((N) => {
|
|
2856
|
+
m.value && (N.updateGrid({
|
|
2857
|
+
show: !m.value,
|
|
2858
|
+
ruler: !m.value
|
|
2859
|
+
}), a.value = !m.value), N.updateGraduation({
|
|
2860
|
+
show: !m.value
|
|
2861
|
+
}), N.updateNavigator(!m.value);
|
|
2850
2862
|
});
|
|
2851
2863
|
}
|
|
2852
|
-
function
|
|
2853
|
-
|
|
2864
|
+
function qe(C) {
|
|
2865
|
+
d.value = C, f.value && f.value.jumpToSlide(C);
|
|
2854
2866
|
}
|
|
2855
|
-
function
|
|
2867
|
+
function Ye(C, N) {
|
|
2856
2868
|
k.value && k.value.jumpToLabel(C, N);
|
|
2857
2869
|
}
|
|
2858
|
-
function
|
|
2870
|
+
function Xe(C, N) {
|
|
2859
2871
|
k.value && k.value.jumpToPosition(C, N);
|
|
2860
2872
|
}
|
|
2861
|
-
return
|
|
2873
|
+
return ue("kfbViewRef", k), ue("show-keyboard", a), ue("show-kfb-label", p), ue("hidden-all-label", m), ue("file-index", d), ue("divide", r), ue("sync", s), e({
|
|
2862
2874
|
divide: r,
|
|
2863
|
-
slide:
|
|
2875
|
+
slide: c,
|
|
2864
2876
|
kfbViewRef: k,
|
|
2865
|
-
jumpToSlide:
|
|
2866
|
-
jumpToLabel:
|
|
2867
|
-
jumpToPosition:
|
|
2877
|
+
jumpToSlide: qe,
|
|
2878
|
+
jumpToLabel: Ye,
|
|
2879
|
+
jumpToPosition: Xe,
|
|
2868
2880
|
enableAI: B(() => {
|
|
2869
2881
|
var C;
|
|
2870
2882
|
return ((C = t.ai) == null ? void 0 : C.enable) && R.value.length;
|
|
2871
2883
|
})
|
|
2872
|
-
}), (C, N) => (
|
|
2873
|
-
C.menus.length ? (
|
|
2884
|
+
}), (C, N) => (_(), L("div", Sn, [
|
|
2885
|
+
C.menus.length ? (_(), P(Re, {
|
|
2874
2886
|
key: 0,
|
|
2875
2887
|
menu: C.menus,
|
|
2876
2888
|
"show-menu-text": C.showMenuText,
|
|
@@ -2879,122 +2891,122 @@ const Wo = /* @__PURE__ */ he(jo, [["render", Go]]), Zo = { class: "hzzt-kfb-sli
|
|
|
2879
2891
|
onTool: te
|
|
2880
2892
|
}, {
|
|
2881
2893
|
left: x(() => [
|
|
2882
|
-
|
|
2894
|
+
de(C.$slots, "left")
|
|
2883
2895
|
]),
|
|
2884
2896
|
right: x(() => [
|
|
2885
|
-
T(
|
|
2886
|
-
modelValue:
|
|
2887
|
-
"onUpdate:modelValue": N[0] || (N[0] = (F) =>
|
|
2888
|
-
"active-text":
|
|
2897
|
+
T(o(Le), {
|
|
2898
|
+
modelValue: m.value,
|
|
2899
|
+
"onUpdate:modelValue": N[0] || (N[0] = (F) => m.value = F),
|
|
2900
|
+
"active-text": o(w)("隐藏标签"),
|
|
2889
2901
|
class: "margin-r-2",
|
|
2890
|
-
onChange:
|
|
2902
|
+
onChange: Ze
|
|
2891
2903
|
}, null, 8, ["modelValue", "active-text"]),
|
|
2892
|
-
C.ai && C.ai.enable &&
|
|
2904
|
+
C.ai && C.ai.enable && o(M) === "IQC" ? (_(), P(o(Le), {
|
|
2893
2905
|
key: 0,
|
|
2894
|
-
modelValue:
|
|
2895
|
-
"onUpdate:modelValue": N[1] || (N[1] = (F) => Ve(
|
|
2896
|
-
"active-text":
|
|
2906
|
+
modelValue: o(Q),
|
|
2907
|
+
"onUpdate:modelValue": N[1] || (N[1] = (F) => Ve(Q) ? Q.value = F : null),
|
|
2908
|
+
"active-text": o(w)("AI质控"),
|
|
2897
2909
|
class: "margin-r-2",
|
|
2898
|
-
onChange:
|
|
2899
|
-
}, null, 8, ["modelValue", "active-text", "onChange"])) : C.ai && C.ai.enable &&
|
|
2910
|
+
onChange: o(W)
|
|
2911
|
+
}, null, 8, ["modelValue", "active-text", "onChange"])) : C.ai && C.ai.enable && o(M) ? (_(), P(o(Le), {
|
|
2900
2912
|
key: 1,
|
|
2901
|
-
modelValue:
|
|
2902
|
-
"onUpdate:modelValue": N[2] || (N[2] = (F) => Ve(
|
|
2903
|
-
"active-text":
|
|
2913
|
+
modelValue: o(S),
|
|
2914
|
+
"onUpdate:modelValue": N[2] || (N[2] = (F) => Ve(S) ? S.value = F : null),
|
|
2915
|
+
"active-text": o(w)("AI分析"),
|
|
2904
2916
|
class: "margin-r-2",
|
|
2905
|
-
onChange:
|
|
2917
|
+
onChange: o(ve)
|
|
2906
2918
|
}, null, 8, ["modelValue", "active-text", "onChange"])) : A("", !0),
|
|
2907
|
-
|
|
2919
|
+
de(C.$slots, "right")
|
|
2908
2920
|
]),
|
|
2909
2921
|
_: 3
|
|
2910
2922
|
}, 8, ["menu", "show-menu-text", "process", "microscope"])) : A("", !0),
|
|
2911
|
-
b("div",
|
|
2912
|
-
C.showList ? (
|
|
2923
|
+
b("div", Hn, [
|
|
2924
|
+
C.showList ? (_(), P(Fe, {
|
|
2913
2925
|
key: 0,
|
|
2914
2926
|
defer: "",
|
|
2915
2927
|
to: "#kfb-slide-list",
|
|
2916
2928
|
disabled: !C.teleport
|
|
2917
2929
|
}, [
|
|
2918
|
-
T(
|
|
2930
|
+
T(Tn, {
|
|
2919
2931
|
ref_key: "slidesRef",
|
|
2920
2932
|
ref: f,
|
|
2921
|
-
style:
|
|
2933
|
+
style: Z(C.teleport ? "" : "width: 250px"),
|
|
2922
2934
|
slides: C.slides,
|
|
2923
|
-
onSelect:
|
|
2935
|
+
onSelect: Ae,
|
|
2924
2936
|
onTool: te
|
|
2925
2937
|
}, {
|
|
2926
2938
|
slide: x(({ slide: F }) => [
|
|
2927
|
-
|
|
2939
|
+
de(C.$slots, "list", { slide: F })
|
|
2928
2940
|
]),
|
|
2929
2941
|
_: 3
|
|
2930
2942
|
}, 8, ["style", "slides"])
|
|
2931
2943
|
], 8, ["disabled"])) : A("", !0),
|
|
2932
|
-
(
|
|
2944
|
+
(_(), P(Fe, {
|
|
2933
2945
|
defer: "",
|
|
2934
2946
|
to: "#kfb-slide-view",
|
|
2935
2947
|
disabled: !C.teleport
|
|
2936
2948
|
}, [
|
|
2937
|
-
b("div",
|
|
2938
|
-
i.value.length && r.value ? (
|
|
2939
|
-
(
|
|
2940
|
-
key:
|
|
2941
|
-
style:
|
|
2942
|
-
class: ye(
|
|
2943
|
-
onClick: (
|
|
2949
|
+
b("div", Pn, [
|
|
2950
|
+
i.value.length && r.value ? (_(), L("ul", Rn, [
|
|
2951
|
+
(_(!0), L(le, null, oe(i.value, (F, re) => (_(), L("li", {
|
|
2952
|
+
key: re,
|
|
2953
|
+
style: Z(v.value),
|
|
2954
|
+
class: ye(c.value.id === F.id ? "hzzt-kfb-view-screen-active" : ""),
|
|
2955
|
+
onClick: (ke) => Se(F)
|
|
2944
2956
|
}, [
|
|
2945
|
-
(
|
|
2957
|
+
(_(), P(Me, Ke({
|
|
2946
2958
|
ref_for: !0,
|
|
2947
2959
|
ref_key: "kfbViewRefs",
|
|
2948
2960
|
ref: h,
|
|
2949
|
-
key: `kfb-${
|
|
2961
|
+
key: `kfb-${re}`
|
|
2950
2962
|
}, { ref_for: !0 }, be(F), { onTool: te }), {
|
|
2951
2963
|
default: x(() => [
|
|
2952
|
-
|
|
2964
|
+
de(C.$slots, "kfb", { slide: F })
|
|
2953
2965
|
]),
|
|
2954
2966
|
_: 2
|
|
2955
2967
|
}, 1040))
|
|
2956
|
-
], 14,
|
|
2957
|
-
])) :
|
|
2968
|
+
], 14, An))), 128))
|
|
2969
|
+
])) : c.value ? (_(), P(Me, Ke({
|
|
2958
2970
|
key: 1,
|
|
2959
2971
|
ref_key: "kfbViewRef",
|
|
2960
2972
|
ref: g
|
|
2961
|
-
}, be(
|
|
2973
|
+
}, be(c.value), { onTool: te }), {
|
|
2962
2974
|
default: x(() => [
|
|
2963
|
-
|
|
2975
|
+
de(C.$slots, "kfb", { slide: c.value })
|
|
2964
2976
|
]),
|
|
2965
2977
|
_: 3
|
|
2966
2978
|
}, 16)) : A("", !0)
|
|
2967
2979
|
])
|
|
2968
2980
|
], 8, ["disabled"])),
|
|
2969
|
-
C.ai && C.ai.enable &&
|
|
2981
|
+
C.ai && C.ai.enable && o(R).length ? (_(), P(Fe, {
|
|
2970
2982
|
key: 1,
|
|
2971
2983
|
defer: "",
|
|
2972
2984
|
to: "#kfb-slide-ai",
|
|
2973
2985
|
disabled: !C.teleport
|
|
2974
2986
|
}, [
|
|
2975
|
-
T(
|
|
2976
|
-
style:
|
|
2987
|
+
T(In, {
|
|
2988
|
+
style: Z(C.teleport ? "" : "width: 350px"),
|
|
2977
2989
|
ref_key: "kfbAiRef",
|
|
2978
2990
|
ref: l,
|
|
2979
|
-
data:
|
|
2980
|
-
slide:
|
|
2991
|
+
data: o(R),
|
|
2992
|
+
slide: c.value
|
|
2981
2993
|
}, null, 8, ["style", "data", "slide"])
|
|
2982
2994
|
], 8, ["disabled"])) : A("", !0),
|
|
2983
|
-
|
|
2995
|
+
de(C.$slots, "default")
|
|
2984
2996
|
])
|
|
2985
2997
|
]));
|
|
2986
2998
|
}
|
|
2987
2999
|
});
|
|
2988
3000
|
We.name = "HzztKfbSlide";
|
|
2989
3001
|
Me.name = "HzztKfbView";
|
|
2990
|
-
|
|
2991
|
-
const
|
|
2992
|
-
|
|
2993
|
-
},
|
|
2994
|
-
install:
|
|
3002
|
+
Re.name = "HzztKfbToolbox";
|
|
3003
|
+
const Nn = (u, e) => {
|
|
3004
|
+
u.use(vl, e == null ? void 0 : e.i18n), u.component(We.name, We), u.component(Me.name, Me), u.component(Re.name, Re);
|
|
3005
|
+
}, jn = {
|
|
3006
|
+
install: Nn,
|
|
2995
3007
|
HzztKfbSlide: We,
|
|
2996
3008
|
HzztKfbView: Me,
|
|
2997
|
-
HzztKfbToolbox:
|
|
3009
|
+
HzztKfbToolbox: Re
|
|
2998
3010
|
};
|
|
2999
3011
|
export {
|
|
3000
3012
|
$t as D,
|
|
@@ -3003,7 +3015,7 @@ export {
|
|
|
3003
3015
|
lt as b,
|
|
3004
3016
|
We as c,
|
|
3005
3017
|
Me as d,
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3018
|
+
Re as e,
|
|
3019
|
+
jn as i,
|
|
3020
|
+
ie as u
|
|
3009
3021
|
};
|