nxd-plugin 1.8.37 → 1.8.39
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/chunks/YCServiceSummary-CP4xYmeZ.mjs +2 -0
- package/dist/chunks/{component-Agent-DqXO06Ql.mjs → component-Agent-Cm2BEfcV.mjs} +2451 -2405
- package/dist/chunks/{component-AiChat-C8NFYtVc.mjs → component-AiChat-C0nCRTDL.mjs} +202 -202
- package/dist/chunks/{component-AqiMonitor-WvrknfI9.mjs → component-AqiMonitor-buvqeOgY.mjs} +9 -9
- package/dist/chunks/{component-ChartCumulativePre-B9Prk8Sx.mjs → component-ChartCumulativePre-C4PgcnVy.mjs} +7 -7
- package/dist/chunks/{component-ChartServiceMaterial-dSZ_Pec0.mjs → component-ChartServiceMaterial-C7a1Qqo_.mjs} +6 -6
- package/dist/chunks/{component-Duty-CcPTE385.mjs → component-Duty-DOs3Ug6k.mjs} +6 -6
- package/dist/chunks/{component-EarlyWarningStatistic-Ug-1jfiU.mjs → component-EarlyWarningStatistic-CXmSRC_Z.mjs} +6 -6
- package/dist/chunks/{component-EarlyWarningStatistic2-BnZqgK4P.mjs → component-EarlyWarningStatistic2-DBipE3hf.mjs} +15 -15
- package/dist/chunks/{component-Forecast72h-5DGIhVUd.mjs → component-Forecast72h-CU8p9veB.mjs} +16 -16
- package/dist/chunks/{component-GeologyLiveAlarm-Bg710d1g.mjs → component-GeologyLiveAlarm-Br4JKabm.mjs} +7 -7
- package/dist/chunks/{component-GridForecastMsg-D0jzurbN.mjs → component-GridForecastMsg-8ERFdIt7.mjs} +8 -8
- package/dist/chunks/{component-HDSeaLegend-D5FWHvmR.mjs → component-HDSeaLegend-DQXZYgpR.mjs} +2 -2
- package/dist/chunks/{component-HdCameraList-4ArboSf0.mjs → component-HdCameraList-CzJDCIUd.mjs} +151 -150
- package/dist/chunks/{component-HdFarmStation-D9qZ2csY.mjs → component-HdFarmStation-Bw9K6NJn.mjs} +11 -11
- package/dist/chunks/{component-HdFarmStationDialog-DHGlfkae.mjs → component-HdFarmStationDialog-jR-LBbQP.mjs} +33 -33
- package/dist/chunks/{component-HdForecastProducts-qj9Yzh7D.mjs → component-HdForecastProducts-TXRVg26S.mjs} +10 -10
- package/dist/chunks/{component-HdHeatChart-Br63YpFN.mjs → component-HdHeatChart-DZak9Ft6.mjs} +12 -12
- package/dist/chunks/{component-HdHeatChartDialog-DOkB8heB.mjs → component-HdHeatChartDialog-D1fXxl0L.mjs} +11 -11
- package/dist/chunks/{component-HdHeatService-BeUpAmBA.mjs → component-HdHeatService-B6jbZMfm.mjs} +34 -34
- package/dist/chunks/{component-HdInsectDetailList-C9tAtciq.mjs → component-HdInsectDetailList-B3sikKhM.mjs} +16 -16
- package/dist/chunks/{component-HdInsectList-pU1-mQ-C.mjs → component-HdInsectList-BhwtKWGc.mjs} +18 -18
- package/dist/chunks/{component-HdMajorActivity-DSPYsbdQ.mjs → component-HdMajorActivity-EC4Hvfqb.mjs} +23 -23
- package/dist/chunks/{component-HdObservation-osOGizJv.mjs → component-HdObservation-DZLNEWhN.mjs} +10 -10
- package/dist/chunks/{component-HdPreSituation-Ca_d4L11.mjs → component-HdPreSituation-DBGR2Ryu.mjs} +9 -9
- package/dist/chunks/{component-HdQxServiceEffects-CtlLJVdx.mjs → component-HdQxServiceEffects-dREiY6bN.mjs} +10 -10
- package/dist/chunks/{component-HdRadarList-CgWMdwBo.mjs → component-HdRadarList-BxHqX6lK.mjs} +3 -3
- package/dist/chunks/{component-HdRadarTime-Bp7D80GJ.mjs → component-HdRadarTime-BmXlFJFB.mjs} +12 -12
- package/dist/chunks/{component-HdRadarTimeLine-DfOce6fK.mjs → component-HdRadarTimeLine-DuKt7347.mjs} +13 -13
- package/dist/chunks/{component-HdRisk-Bd3if-1-.mjs → component-HdRisk-CAF1JxIu.mjs} +11 -11
- package/dist/chunks/{component-HdSeaCase-CbY3FsOy.mjs → component-HdSeaCase-DVhbtYSc.mjs} +26 -26
- package/dist/chunks/{component-HdServiceMarterial-B7FEviHO.mjs → component-HdServiceMarterial-CAXKIPOW.mjs} +17 -17
- package/dist/chunks/{component-HdServiceRequirements-DKJ8uQja.mjs → component-HdServiceRequirements-ByhUd4ey.mjs} +13 -13
- package/dist/chunks/{component-HdSoil-ztBxJspH.mjs → component-HdSoil-qNATYOOB.mjs} +11 -11
- package/dist/chunks/{component-HdSoilDetailList-1gMQt-uL.mjs → component-HdSoilDetailList-BbihIcJ9.mjs} +12 -12
- package/dist/chunks/{component-HdStationTem-DfJ0I_2S.mjs → component-HdStationTem-C7eTBEla.mjs} +17 -17
- package/dist/chunks/{component-HdSuggestion-FXvLu_OD.mjs → component-HdSuggestion-BGz6-uaw.mjs} +13 -13
- package/dist/chunks/{component-HdThreeWeatherTrend-DGLSVUb8.mjs → component-HdThreeWeatherTrend-CZTzNuEZ.mjs} +18 -18
- package/dist/chunks/{component-HdWaveForcast-dTEB0h8d.mjs → component-HdWaveForcast-CFfbmxOJ.mjs} +11 -11
- package/dist/chunks/{component-HighQuality-DZGJXvJC.mjs → component-HighQuality-qHBWb-O7.mjs} +16 -16
- package/dist/chunks/{component-HighWayEarlyWarningRed-F0q1FCTw.mjs → component-HighWayEarlyWarningRed-D5xK5D0V.mjs} +16 -16
- package/dist/chunks/{component-HighWayFreeze-d4Xwkwf1.mjs → component-HighWayFreeze-Bfzy5Py4.mjs} +8 -8
- package/dist/chunks/{component-HighwayLiveAlarm-ChAdlgNB.mjs → component-HighwayLiveAlarm-C0NVxNlc.mjs} +6 -6
- package/dist/chunks/{component-HighwayLiveAlarmNew-B-KnOey_.mjs → component-HighwayLiveAlarmNew-BkPc1uHT.mjs} +11 -11
- package/dist/chunks/{component-HighwayStations-CknEywO_.mjs → component-HighwayStations-gLCzqaFg.mjs} +6 -6
- package/dist/chunks/{component-HighwayWeatherForecast-B4szOq2G.mjs → component-HighwayWeatherForecast-Di4k_gXe.mjs} +9 -9
- package/dist/chunks/{component-IframeWeb-iDh9lrPn.mjs → component-IframeWeb-BI6ARPim.mjs} +1 -1
- package/dist/chunks/{component-ImageGeneration-CsIZ2Kz2.mjs → component-ImageGeneration-HZcmty4a.mjs} +2 -2
- package/dist/chunks/{component-IntroducePic-BggfUWvz.mjs → component-IntroducePic-BzcpXcDu.mjs} +13 -13
- package/dist/chunks/{component-LithiumBatteryMiningArea-RpuBju1r.mjs → component-LithiumBatteryMiningArea-CWmowyvH.mjs} +12 -12
- package/dist/chunks/{component-MapPopup-LFWUnUl3.mjs → component-MapPopup-BMpK3HDv.mjs} +1 -1
- package/dist/chunks/{component-MaterialPreview-DvNKoDNy.mjs → component-MaterialPreview-opXV5MsP.mjs} +5 -5
- package/dist/chunks/{component-PieLegend-B2Nor3pz.mjs → component-PieLegend-DbYkitpz.mjs} +1 -1
- package/dist/chunks/{component-PrecipitationRanking-ClwjH24B.mjs → component-PrecipitationRanking-DCkl4WcA.mjs} +27 -27
- package/dist/chunks/{component-RadarChart-BMoy8MXR.mjs → component-RadarChart-elpvJJcV.mjs} +10 -10
- package/dist/chunks/{component-RadarLegend-rXlAb8lF.mjs → component-RadarLegend-CooXza3E.mjs} +1 -1
- package/dist/chunks/{component-RadarShortTerm-4RS7HYWc.mjs → component-RadarShortTerm-CThl2lDU.mjs} +20 -20
- package/dist/chunks/{component-RadarTime-W1ZVEA9e.mjs → component-RadarTime-CvudM45Q.mjs} +18 -18
- package/dist/chunks/{component-RenderMarkdown-DO4bEFoj.mjs → component-RenderMarkdown-hrLIIwgE.mjs} +6 -6
- package/dist/chunks/{component-ReservoirLiveAlarm-ZD1RSFHm.mjs → component-ReservoirLiveAlarm-CzZpNTun.mjs} +8 -8
- package/dist/chunks/{component-ServiceMaterial-DrxeAmRt.mjs → component-ServiceMaterial-9oH_DZq1.mjs} +9 -9
- package/dist/chunks/{component-ServiceMaterialsBtn-CZFRzpDr.mjs → component-ServiceMaterialsBtn-ckhadvV7.mjs} +2 -2
- package/dist/chunks/{component-StationDialog-NhNr3lY1.mjs → component-StationDialog-XTeGI3qA.mjs} +9 -9
- package/dist/chunks/{component-StationList-CSU1nUgF.mjs → component-StationList-rrmZM7q1.mjs} +9 -9
- package/dist/chunks/{component-TimeBasedForecast-BObdyMNh.mjs → component-TimeBasedForecast-C8eEmt7r.mjs} +10 -10
- package/dist/chunks/{component-Typhoon-AxGQ8VuM.mjs → component-Typhoon-RsStDsjO.mjs} +16 -16
- package/dist/chunks/{component-WarningLine-Biz0NEC8.mjs → component-WarningLine-gmXFFeUv.mjs} +2 -2
- package/dist/chunks/{component-WarningSignal-D5ux6LCy.mjs → component-WarningSignal-CjQjyTr4.mjs} +17 -17
- package/dist/chunks/{component-WeatherForecast-DnvELAB8.mjs → component-WeatherForecast-CtNxOx9i.mjs} +16 -16
- package/dist/chunks/{component-YCDataMonitor-Dumu7_mw.mjs → component-YCDataMonitor-CI7XRJ83.mjs} +16 -16
- package/dist/chunks/{component-YCDataService-CibX3y21.mjs → component-YCDataService-DkIDLzWF.mjs} +10 -10
- package/dist/chunks/{component-YCHighWaySummary-B4rfNY9B.mjs → component-YCHighWaySummary-B3VElvls.mjs} +7 -7
- package/dist/chunks/{component-YCHome-BgH2uOoL.mjs → component-YCHome-CiN9AggT.mjs} +36 -36
- package/dist/chunks/{component-YCHomeLegend-BpForfu4.mjs → component-YCHomeLegend-DzDo8zz6.mjs} +2 -2
- package/dist/chunks/{component-YCLoginNew-BsQr4jFy.mjs → component-YCLoginNew-IfVsyv0t.mjs} +23 -23
- package/dist/chunks/{component-YCServiceSummary-CnnEfTaE.mjs → component-YCServiceSummary-Dy_GyJoy.mjs} +161 -161
- package/dist/nxd-plugin.mjs +73 -73
- package/dist/styles/component-Agent.css +1 -1
- package/dist/styles/component-RadarShortTerm.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/YCServiceSummary-tHEqhFHj.mjs +0 -2
package/dist/chunks/{component-HdCameraList-4ArboSf0.mjs → component-HdCameraList-CzJDCIUd.mjs}
RENAMED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { i as e, t } from "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import "./component-Forecast72h-
|
|
4
|
-
import { Fragment as
|
|
2
|
+
import { a as n, g as r, i, n as a, p as o, r as s } from "./component-Agent-Cm2BEfcV.mjs";
|
|
3
|
+
import "./component-Forecast72h-CU8p9veB.mjs";
|
|
4
|
+
import { Fragment as c, Teleport as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineComponent as g, getCurrentInstance as _, nextTick as v, onMounted as y, onUnmounted as b, openBlock as x, ref as S, renderList as C, toDisplayString as w, unref as T, vModelCheckbox as ee, vModelText as te, vShow as ne, watch as E, withCtx as re, withDirectives as D, withKeys as ie, withModifiers as ae } from "vue";
|
|
5
5
|
import "element-plus/es/components/select/style/css";
|
|
6
6
|
import "element-plus/es/components/option/style/css";
|
|
7
|
-
import { ElOption as
|
|
8
|
-
//#
|
|
9
|
-
|
|
7
|
+
import { ElOption as oe, ElSelect as se } from "element-plus";
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region node_modules/flv.js/src/utils/logger.js
|
|
10
|
+
var O = /* @__PURE__ */ e((/* @__PURE__ */ t(((e, t) => {
|
|
10
11
|
var n = typeof Reflect == "object" ? Reflect : null, r = n && typeof n.apply == "function" ? n.apply : function(e, t, n) {
|
|
11
12
|
return Function.prototype.apply.call(e, t, n);
|
|
12
13
|
}, i = n && typeof n.ownKeys == "function" ? n.ownKeys : Object.getOwnPropertySymbols ? function(e) {
|
|
@@ -181,7 +182,7 @@ var le = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFYAAABQCAMAAAC00XLYAAAA
|
|
|
181
182
|
});
|
|
182
183
|
else throw TypeError("The \"emitter\" argument must be of type EventEmitter. Received type " + typeof e);
|
|
183
184
|
}
|
|
184
|
-
})))()),
|
|
185
|
+
})))()), k = class e {
|
|
185
186
|
static e(t, n) {
|
|
186
187
|
(!t || e.FORCE_GLOBAL_TAG) && (t = e.GLOBAL_TAG);
|
|
187
188
|
let r = `[${t}] > ${n}`;
|
|
@@ -208,11 +209,11 @@ var le = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFYAAABQCAMAAAC00XLYAAAA
|
|
|
208
209
|
e.ENABLE_CALLBACK && e.emitter.emit("log", "verbose", r), e.ENABLE_VERBOSE && console.log(r);
|
|
209
210
|
}
|
|
210
211
|
};
|
|
211
|
-
|
|
212
|
+
k.GLOBAL_TAG = "flv.js", k.FORCE_GLOBAL_TAG = !1, k.ENABLE_ERROR = !0, k.ENABLE_INFO = !0, k.ENABLE_WARN = !0, k.ENABLE_DEBUG = !0, k.ENABLE_VERBOSE = !0, k.ENABLE_CALLBACK = !1, k.emitter = new O.default();
|
|
212
213
|
//#endregion
|
|
213
214
|
//#region node_modules/flv.js/src/utils/browser.js
|
|
214
|
-
var
|
|
215
|
-
function
|
|
215
|
+
var A = {};
|
|
216
|
+
function j() {
|
|
216
217
|
let e = self.navigator.userAgent.toLowerCase(), t = /(edge)\/([\w.]+)/.exec(e) || /(opr)[\/]([\w.]+)/.exec(e) || /(chrome)[ \/]([\w.]+)/.exec(e) || /(iemobile)[\/]([\w.]+)/.exec(e) || /(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e) || /(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e) || /(webkit)[ \/]([\w.]+)/.exec(e) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e) || /(msie) ([\w.]+)/.exec(e) || e.indexOf("trident") >= 0 && /(rv)(?::| )([\w.]+)/.exec(e) || e.indexOf("compatible") < 0 && /(firefox)[ \/]([\w.]+)/.exec(e) || [], n = /(ipad)/.exec(e) || /(ipod)/.exec(e) || /(windows phone)/.exec(e) || /(iphone)/.exec(e) || /(kindle)/.exec(e) || /(android)/.exec(e) || /(windows)/.exec(e) || /(mac)/.exec(e) || /(linux)/.exec(e) || /(cros)/.exec(e) || [], r = {
|
|
217
218
|
browser: t[5] || t[3] || t[1] || "",
|
|
218
219
|
version: t[2] || t[4] || "0",
|
|
@@ -246,13 +247,13 @@ function O() {
|
|
|
246
247
|
r.browser = e, i[e] = !0;
|
|
247
248
|
}
|
|
248
249
|
i.name = r.browser, i.platform = r.platform;
|
|
249
|
-
for (let e in
|
|
250
|
-
Object.assign(
|
|
250
|
+
for (let e in A) A.hasOwnProperty(e) && delete A[e];
|
|
251
|
+
Object.assign(A, i);
|
|
251
252
|
}
|
|
252
|
-
|
|
253
|
+
j();
|
|
253
254
|
//#endregion
|
|
254
255
|
//#region node_modules/flv.js/src/utils/exception.js
|
|
255
|
-
var
|
|
256
|
+
var M = class {
|
|
256
257
|
constructor(e) {
|
|
257
258
|
this._message = e;
|
|
258
259
|
}
|
|
@@ -265,35 +266,35 @@ var k = class {
|
|
|
265
266
|
toString() {
|
|
266
267
|
return this.name + ": " + this.message;
|
|
267
268
|
}
|
|
268
|
-
},
|
|
269
|
+
}, N = class extends M {
|
|
269
270
|
constructor(e) {
|
|
270
271
|
super(e);
|
|
271
272
|
}
|
|
272
273
|
get name() {
|
|
273
274
|
return "NotImplementedException";
|
|
274
275
|
}
|
|
275
|
-
},
|
|
276
|
+
}, P = {
|
|
276
277
|
kIdle: 0,
|
|
277
278
|
kConnecting: 1,
|
|
278
279
|
kBuffering: 2,
|
|
279
280
|
kError: 3,
|
|
280
281
|
kComplete: 4
|
|
281
|
-
},
|
|
282
|
+
}, F = {
|
|
282
283
|
OK: "OK",
|
|
283
284
|
EXCEPTION: "Exception",
|
|
284
285
|
HTTP_STATUS_CODE_INVALID: "HttpStatusCodeInvalid",
|
|
285
286
|
CONNECTING_TIMEOUT: "ConnectingTimeout",
|
|
286
287
|
EARLY_EOF: "EarlyEof",
|
|
287
288
|
UNRECOVERABLE_EARLY_EOF: "UnrecoverableEarlyEof"
|
|
288
|
-
},
|
|
289
|
+
}, I = class {
|
|
289
290
|
constructor(e) {
|
|
290
|
-
this._type = e || "undefined", this._status =
|
|
291
|
+
this._type = e || "undefined", this._status = P.kIdle, this._needStash = !1, this._onContentLengthKnown = null, this._onURLRedirect = null, this._onDataArrival = null, this._onError = null, this._onComplete = null;
|
|
291
292
|
}
|
|
292
293
|
destroy() {
|
|
293
|
-
this._status =
|
|
294
|
+
this._status = P.kIdle, this._onContentLengthKnown = null, this._onURLRedirect = null, this._onDataArrival = null, this._onError = null, this._onComplete = null;
|
|
294
295
|
}
|
|
295
296
|
isWorking() {
|
|
296
|
-
return this._status ===
|
|
297
|
+
return this._status === P.kConnecting || this._status === P.kBuffering;
|
|
297
298
|
}
|
|
298
299
|
get type() {
|
|
299
300
|
return this._type;
|
|
@@ -335,15 +336,15 @@ var k = class {
|
|
|
335
336
|
this._onComplete = e;
|
|
336
337
|
}
|
|
337
338
|
open(e, t) {
|
|
338
|
-
throw new
|
|
339
|
+
throw new N("Unimplemented abstract function!");
|
|
339
340
|
}
|
|
340
341
|
abort() {
|
|
341
|
-
throw new
|
|
342
|
+
throw new N("Unimplemented abstract function!");
|
|
342
343
|
}
|
|
343
|
-
},
|
|
344
|
+
}, ce = class extends I {
|
|
344
345
|
static isSupported() {
|
|
345
346
|
try {
|
|
346
|
-
let e =
|
|
347
|
+
let e = A.msedge && A.version.minor >= 15048, t = A.msedge ? e : !0;
|
|
347
348
|
return self.fetch && self.ReadableStream && t;
|
|
348
349
|
} catch {
|
|
349
350
|
return !1;
|
|
@@ -372,9 +373,9 @@ var k = class {
|
|
|
372
373
|
referrerPolicy: "no-referrer-when-downgrade"
|
|
373
374
|
};
|
|
374
375
|
if (typeof this._config.headers == "object") for (let e in this._config.headers) i.append(e, this._config.headers[e]);
|
|
375
|
-
e.cors === !1 && (a.mode = "same-origin"), e.withCredentials && (a.credentials = "include"), e.referrerPolicy && (a.referrerPolicy = e.referrerPolicy), self.AbortController && (this._abortController = new self.AbortController(), a.signal = this._abortController.signal), this._status =
|
|
376
|
+
e.cors === !1 && (a.mode = "same-origin"), e.withCredentials && (a.credentials = "include"), e.referrerPolicy && (a.referrerPolicy = e.referrerPolicy), self.AbortController && (this._abortController = new self.AbortController(), a.signal = this._abortController.signal), this._status = P.kConnecting, self.fetch(r.url, a).then((e) => {
|
|
376
377
|
if (this._requestAbort) {
|
|
377
|
-
this._status =
|
|
378
|
+
this._status = P.kIdle, e.body.cancel();
|
|
378
379
|
return;
|
|
379
380
|
}
|
|
380
381
|
if (e.ok && e.status >= 200 && e.status <= 299) {
|
|
@@ -384,13 +385,13 @@ var k = class {
|
|
|
384
385
|
}
|
|
385
386
|
let t = e.headers.get("Content-Length");
|
|
386
387
|
return t != null && (this._contentLength = parseInt(t), this._contentLength !== 0 && this._onContentLengthKnown && this._onContentLengthKnown(this._contentLength)), this._pump.call(this, e.body.getReader());
|
|
387
|
-
} else if (this._status =
|
|
388
|
+
} else if (this._status = P.kError, this._onError) this._onError(F.HTTP_STATUS_CODE_INVALID, {
|
|
388
389
|
code: e.status,
|
|
389
390
|
msg: e.statusText
|
|
390
391
|
});
|
|
391
|
-
else throw new
|
|
392
|
+
else throw new M("FetchStreamLoader: Http code invalid, " + e.status + " " + e.statusText);
|
|
392
393
|
}).catch((e) => {
|
|
393
|
-
if (!(this._abortController && this._abortController.signal.aborted)) if (this._status =
|
|
394
|
+
if (!(this._abortController && this._abortController.signal.aborted)) if (this._status = P.kError, this._onError) this._onError(F.EXCEPTION, {
|
|
394
395
|
code: -1,
|
|
395
396
|
msg: e.message
|
|
396
397
|
});
|
|
@@ -398,49 +399,49 @@ var k = class {
|
|
|
398
399
|
});
|
|
399
400
|
}
|
|
400
401
|
abort() {
|
|
401
|
-
if (this._requestAbort = !0, (this._status !==
|
|
402
|
+
if (this._requestAbort = !0, (this._status !== P.kBuffering || !A.chrome) && this._abortController) try {
|
|
402
403
|
this._abortController.abort();
|
|
403
404
|
} catch {}
|
|
404
405
|
}
|
|
405
406
|
_pump(e) {
|
|
406
407
|
return e.read().then((t) => {
|
|
407
408
|
if (t.done) if (this._contentLength !== null && this._receivedLength < this._contentLength) {
|
|
408
|
-
this._status =
|
|
409
|
-
let e =
|
|
409
|
+
this._status = P.kError;
|
|
410
|
+
let e = F.EARLY_EOF, t = {
|
|
410
411
|
code: -1,
|
|
411
412
|
msg: "Fetch stream meet Early-EOF"
|
|
412
413
|
};
|
|
413
414
|
if (this._onError) this._onError(e, t);
|
|
414
|
-
else throw new
|
|
415
|
-
} else this._status =
|
|
415
|
+
else throw new M(t.msg);
|
|
416
|
+
} else this._status = P.kComplete, this._onComplete && this._onComplete(this._range.from, this._range.from + this._receivedLength - 1);
|
|
416
417
|
else {
|
|
417
418
|
if (this._abortController && this._abortController.signal.aborted) {
|
|
418
|
-
this._status =
|
|
419
|
+
this._status = P.kComplete;
|
|
419
420
|
return;
|
|
420
|
-
} else if (this._requestAbort === !0) return this._status =
|
|
421
|
-
this._status =
|
|
421
|
+
} else if (this._requestAbort === !0) return this._status = P.kComplete, e.cancel();
|
|
422
|
+
this._status = P.kBuffering;
|
|
422
423
|
let n = t.value.buffer, r = this._range.from + this._receivedLength;
|
|
423
424
|
this._receivedLength += n.byteLength, this._onDataArrival && this._onDataArrival(n, r, this._receivedLength), this._pump(e);
|
|
424
425
|
}
|
|
425
426
|
}).catch((e) => {
|
|
426
427
|
if (this._abortController && this._abortController.signal.aborted) {
|
|
427
|
-
this._status =
|
|
428
|
+
this._status = P.kComplete;
|
|
428
429
|
return;
|
|
429
430
|
}
|
|
430
|
-
if (e.code === 11 &&
|
|
431
|
-
this._status =
|
|
431
|
+
if (e.code === 11 && A.msedge) return;
|
|
432
|
+
this._status = P.kError;
|
|
432
433
|
let t = 0, n = null;
|
|
433
|
-
if ((e.code === 19 || e.message === "network error") && (this._contentLength === null || this._contentLength !== null && this._receivedLength < this._contentLength) ? (t =
|
|
434
|
+
if ((e.code === 19 || e.message === "network error") && (this._contentLength === null || this._contentLength !== null && this._receivedLength < this._contentLength) ? (t = F.EARLY_EOF, n = {
|
|
434
435
|
code: e.code,
|
|
435
436
|
msg: "Fetch stream meet Early-EOF"
|
|
436
|
-
}) : (t =
|
|
437
|
+
}) : (t = F.EXCEPTION, n = {
|
|
437
438
|
code: e.code,
|
|
438
439
|
msg: e.message
|
|
439
440
|
}), this._onError) this._onError(t, n);
|
|
440
|
-
else throw new
|
|
441
|
+
else throw new M(n.msg);
|
|
441
442
|
});
|
|
442
443
|
}
|
|
443
|
-
},
|
|
444
|
+
}, L = /* @__PURE__ */ e(s()), le = { class: "HdCameraList" }, ue = { class: "HdCameraList-header" }, de = { class: "HdCameraList-headerContent" }, fe = { class: "HdCameraList-title" }, pe = { class: "HdCameraList-markerCheck" }, me = { class: "HdCameraList-toolbar" }, he = { class: "HdCameraList-search" }, ge = { class: "HdCameraList-count" }, _e = { class: "HdCameraList-body" }, ve = ["onClick"], ye = { class: "HdCameraList-thumb" }, be = ["src"], xe = {
|
|
444
445
|
key: 1,
|
|
445
446
|
class: "HdCameraList-thumbPlaceholder"
|
|
446
447
|
}, Se = { class: "HdCameraList-info" }, Ce = ["title"], we = {
|
|
@@ -455,7 +456,7 @@ var k = class {
|
|
|
455
456
|
}, je = {
|
|
456
457
|
key: 1,
|
|
457
458
|
class: "HdCameraList-videoState HdCameraList-videoState--error"
|
|
458
|
-
}, R = /* @__PURE__ */
|
|
459
|
+
}, R = /* @__PURE__ */ o(/* @__PURE__ */ g({
|
|
459
460
|
__name: "HdCameraList",
|
|
460
461
|
props: {
|
|
461
462
|
serviceTypeID: { default: "" },
|
|
@@ -483,12 +484,12 @@ var k = class {
|
|
|
483
484
|
"clearMarker"
|
|
484
485
|
],
|
|
485
486
|
setup(e, { emit: t }) {
|
|
486
|
-
let
|
|
487
|
-
|
|
488
|
-
let
|
|
487
|
+
let o = _()?.appContext.config.globalProperties.$bus, s = e, g = t;
|
|
488
|
+
S([]);
|
|
489
|
+
let O = S({
|
|
489
490
|
title: "",
|
|
490
491
|
list: []
|
|
491
|
-
}),
|
|
492
|
+
}), k = S("all"), A = S(""), j = S(""), M = S(!1), N = S(null), P = S(""), F = S(!1), I = S(""), R = S(null), z = S(null), B = S(null), V = S(!1), Me = u(() => s.title || O.value.title || "实景监控"), H = u(() => s.list.length ? s.list : O.value.list), Ne = u(() => {
|
|
492
493
|
let e = /* @__PURE__ */ new Map();
|
|
493
494
|
return e.set("all", "全部"), H.value.forEach((t) => {
|
|
494
495
|
t.location && !e.has(t.location) && e.set(t.location, t.location);
|
|
@@ -496,17 +497,17 @@ var k = class {
|
|
|
496
497
|
value: e,
|
|
497
498
|
label: t
|
|
498
499
|
}));
|
|
499
|
-
}), U =
|
|
500
|
+
}), U = u(() => {
|
|
500
501
|
let e = H.value;
|
|
501
|
-
|
|
502
|
-
let t =
|
|
502
|
+
k.value !== "all" && (e = e.filter((e) => e.location === k.value));
|
|
503
|
+
let t = j.value.trim().toLowerCase();
|
|
503
504
|
return t && (e = e.filter((e) => e.name.toLowerCase().includes(t))), e;
|
|
504
505
|
}), W = () => {
|
|
505
|
-
|
|
506
|
+
j.value = A.value;
|
|
506
507
|
}, Pe = (e) => /^https?:\/\//i.test(e), Fe = (e) => {
|
|
507
508
|
if (!e) return "";
|
|
508
509
|
if (Pe(e)) return e;
|
|
509
|
-
let t =
|
|
510
|
+
let t = s.baseHttp || "";
|
|
510
511
|
return `${t}${t && !t.endsWith("/") && !e.startsWith("/") ? "/" : ""}${e}`;
|
|
511
512
|
}, Ie = () => {
|
|
512
513
|
if (z.value) {
|
|
@@ -529,25 +530,25 @@ var k = class {
|
|
|
529
530
|
}, G = () => {
|
|
530
531
|
Ie(), Le(), R.value && (R.value.pause(), R.value.removeAttribute("src"), R.value.load());
|
|
531
532
|
}, K = (e) => {
|
|
532
|
-
if (!
|
|
533
|
-
enabled:
|
|
533
|
+
if (!s.streamProxyEnabled || !e || !s.streamProxyPrefix || !s.streamProxyTarget) return console.log("[HdCameraList] proxyStreamUrl skip", {
|
|
534
|
+
enabled: s.streamProxyEnabled,
|
|
534
535
|
url: e,
|
|
535
|
-
prefix:
|
|
536
|
-
target:
|
|
536
|
+
prefix: s.streamProxyPrefix,
|
|
537
|
+
target: s.streamProxyTarget
|
|
537
538
|
}), e;
|
|
538
539
|
try {
|
|
539
|
-
let t = new URL(
|
|
540
|
+
let t = new URL(s.streamProxyTarget), n = new URL(e);
|
|
540
541
|
if (n.host === t.host) {
|
|
541
|
-
let t = `${
|
|
542
|
+
let t = `${s.streamProxyPrefix}${n.pathname}${n.search}`;
|
|
542
543
|
return console.log("[HdCameraList] proxyStreamUrl rewrite", e, "->", t), t;
|
|
543
544
|
}
|
|
544
545
|
} catch {
|
|
545
|
-
if (e.startsWith(
|
|
546
|
-
let t = e.replace(
|
|
546
|
+
if (e.startsWith(s.streamProxyTarget)) {
|
|
547
|
+
let t = e.replace(s.streamProxyTarget, s.streamProxyPrefix);
|
|
547
548
|
return console.log("[HdCameraList] proxyStreamUrl rewrite fallback", e, "->", t), t;
|
|
548
549
|
}
|
|
549
550
|
}
|
|
550
|
-
return console.log("[HdCameraList] proxyStreamUrl no match", e,
|
|
551
|
+
return console.log("[HdCameraList] proxyStreamUrl no match", e, s.streamProxyTarget), e;
|
|
551
552
|
}, Re = (e) => {
|
|
552
553
|
let t = e.toLowerCase();
|
|
553
554
|
return t.includes(".m3u8") || t.includes("/hls/") || t.includes("application/x-mpegurl");
|
|
@@ -556,25 +557,25 @@ var k = class {
|
|
|
556
557
|
G();
|
|
557
558
|
try {
|
|
558
559
|
let t = K(e);
|
|
559
|
-
|
|
560
|
+
a.isSupported() ? (B.value = new a({ liveDurationInfinity: !0 }), B.value.loadSource(t), B.value.attachMedia(R.value), B.value.on(a.Events.MANIFEST_PARSED, () => {
|
|
560
561
|
R.value?.play().catch(() => {});
|
|
561
|
-
}), B.value.on(
|
|
562
|
-
console.error("[HdCameraList] hls error", t), t.fatal && (
|
|
563
|
-
})) : R.value.canPlayType("application/vnd.apple.mpegurl") ? (R.value.src = t, R.value.play().catch(() => {})) :
|
|
562
|
+
}), B.value.on(a.Events.ERROR, (e, t) => {
|
|
563
|
+
console.error("[HdCameraList] hls error", t), t.fatal && (I.value = "HLS 视频流播放失败");
|
|
564
|
+
})) : R.value.canPlayType("application/vnd.apple.mpegurl") ? (R.value.src = t, R.value.play().catch(() => {})) : I.value = "当前浏览器不支持 HLS 视频播放";
|
|
564
565
|
} catch (e) {
|
|
565
|
-
|
|
566
|
+
I.value = "HLS 播放器初始化失败", console.error("HdCameraList hls 播放器初始化失败", e);
|
|
566
567
|
}
|
|
567
568
|
}
|
|
568
569
|
}, Be = (e) => {
|
|
569
570
|
if (R.value) {
|
|
570
|
-
if (!
|
|
571
|
-
|
|
571
|
+
if (!L.default.isSupported()) {
|
|
572
|
+
I.value = "当前浏览器不支持 FLV 视频播放";
|
|
572
573
|
return;
|
|
573
574
|
}
|
|
574
575
|
G();
|
|
575
576
|
try {
|
|
576
577
|
let t = K(e);
|
|
577
|
-
console.log("[HdCameraList] try http flv", t), z.value =
|
|
578
|
+
console.log("[HdCameraList] try http flv", t), z.value = L.default.createPlayer({
|
|
578
579
|
type: "flv",
|
|
579
580
|
url: t,
|
|
580
581
|
isLive: !0,
|
|
@@ -586,12 +587,12 @@ var k = class {
|
|
|
586
587
|
enableStashBuffer: !1,
|
|
587
588
|
stashInitialSize: 1280,
|
|
588
589
|
autoCleanupSourceBuffer: !0,
|
|
589
|
-
customLoader:
|
|
590
|
-
}), z.value.attachMediaElement(R.value), z.value.load(), z.value.play().catch(() => {}), z.value.on(
|
|
591
|
-
console.error("[HdCameraList] http flv error", e, t, n),
|
|
590
|
+
customLoader: ce
|
|
591
|
+
}), z.value.attachMediaElement(R.value), z.value.load(), z.value.play().catch(() => {}), z.value.on(L.default.Events.ERROR, (e, t, n) => {
|
|
592
|
+
console.error("[HdCameraList] http flv error", e, t, n), I.value = "FLV 视频流播放失败";
|
|
592
593
|
});
|
|
593
594
|
} catch (e) {
|
|
594
|
-
|
|
595
|
+
I.value = "视频播放器初始化失败", console.error("HdCameraList flv 播放器初始化失败", e);
|
|
595
596
|
}
|
|
596
597
|
}
|
|
597
598
|
}, Ve = (e) => {
|
|
@@ -602,50 +603,50 @@ var k = class {
|
|
|
602
603
|
let r = n.flv || n.flvUrl || n.flv_url || "";
|
|
603
604
|
return r ? String(r) : Object.values(n).find((e) => typeof e == "string" && /^rtmp:/i.test(e)) || "";
|
|
604
605
|
}, Ue = async (e) => {
|
|
605
|
-
let t =
|
|
606
|
+
let t = s.ids?.camera;
|
|
606
607
|
if (!t?.id) throw Error("缺少摄像头流工作流配置");
|
|
607
|
-
let n = e[
|
|
608
|
+
let n = e[s.cameraCodeField] ?? e.monitoring_id, i = {
|
|
608
609
|
reqParams: String(n),
|
|
609
|
-
url:
|
|
610
|
-
serviceTypeID:
|
|
610
|
+
url: s.httpUrl || "https://xha.qdlimap.com:3030/xhayg/rest/videos/getVedioUrl",
|
|
611
|
+
serviceTypeID: s.serviceTypeID
|
|
611
612
|
};
|
|
612
|
-
|
|
613
|
-
let
|
|
613
|
+
s.cameraApiUrl && (i.url = s.cameraApiUrl);
|
|
614
|
+
let a = He(await r({
|
|
614
615
|
id: t.id,
|
|
615
|
-
baseHttp:
|
|
616
|
+
baseHttp: s.baseHttp,
|
|
616
617
|
reqType: t.reqType,
|
|
617
618
|
variables: i,
|
|
618
619
|
isFormData: t.isFormData,
|
|
619
|
-
appKey:
|
|
620
|
-
appSalt:
|
|
620
|
+
appKey: s.appKey,
|
|
621
|
+
appSalt: s.appSalt
|
|
621
622
|
}));
|
|
622
|
-
if (!
|
|
623
|
-
return
|
|
623
|
+
if (!a) throw Error("未获取到视频流地址");
|
|
624
|
+
return a;
|
|
624
625
|
}, q = async (e) => {
|
|
625
|
-
|
|
626
|
+
N.value = e, P.value = "", I.value = "", F.value = !0, M.value = !0, g("play", e);
|
|
626
627
|
try {
|
|
627
628
|
let t = "";
|
|
628
|
-
if (
|
|
629
|
+
if (s.playType === "农业" && e.videoUrl) t = e.videoUrl;
|
|
629
630
|
else if (e.streamUrl) t = Fe(e.streamUrl);
|
|
630
|
-
else if (
|
|
631
|
+
else if (s.playType === "农业" && e.previewpic) {
|
|
631
632
|
let { videoUrl: n } = Q(e.previewpic);
|
|
632
633
|
t = n;
|
|
633
634
|
} else t = await Ue(e);
|
|
634
635
|
if (!t) throw Error("未获取到视频流地址");
|
|
635
|
-
|
|
636
|
+
P.value = t, await v(), Ve(t);
|
|
636
637
|
} catch (e) {
|
|
637
|
-
|
|
638
|
+
I.value = e?.message || "视频流加载失败", console.error("HdCameraList 加载视频流失败", e);
|
|
638
639
|
} finally {
|
|
639
|
-
|
|
640
|
+
F.value = !1;
|
|
640
641
|
}
|
|
641
642
|
}, J = () => {
|
|
642
|
-
G(),
|
|
643
|
+
G(), M.value = !1, N.value = null, P.value = "", I.value = "";
|
|
643
644
|
}, We = () => {
|
|
644
|
-
|
|
645
|
+
g("close", "HdCameraList", Y());
|
|
645
646
|
}, Ge = (e) => {
|
|
646
647
|
console.log(e, "row"), q(e);
|
|
647
648
|
}, Y = () => {
|
|
648
|
-
|
|
649
|
+
g("clearMarker", "hdCamera");
|
|
649
650
|
}, X = () => {
|
|
650
651
|
let e = H.value.filter((e) => e.lat && e.lon);
|
|
651
652
|
if (!e.length) {
|
|
@@ -657,9 +658,9 @@ var k = class {
|
|
|
657
658
|
return {
|
|
658
659
|
...e,
|
|
659
660
|
name: e.name.replace("摄像头", ""),
|
|
660
|
-
cameraImage: t ?
|
|
661
|
+
cameraImage: t ? i : n
|
|
661
662
|
};
|
|
662
|
-
}),
|
|
663
|
+
}), r = {
|
|
663
664
|
clickOpen: !0,
|
|
664
665
|
spotObject: [{
|
|
665
666
|
offsetX: -12,
|
|
@@ -681,15 +682,15 @@ var k = class {
|
|
|
681
682
|
-->
|
|
682
683
|
</div>
|
|
683
684
|
`;
|
|
684
|
-
|
|
685
|
+
r.spotObject[0].spotArrone.push({
|
|
685
686
|
lng: Number(e.lon),
|
|
686
687
|
lat: Number(e.lat),
|
|
687
688
|
htmlString: t,
|
|
688
689
|
data: e,
|
|
689
690
|
otherData: { markId: "hdCamera" }
|
|
690
691
|
});
|
|
691
|
-
}),
|
|
692
|
-
mapMarker:
|
|
692
|
+
}), g("addMarker", {
|
|
693
|
+
mapMarker: r,
|
|
693
694
|
removeMarker: "hdCamera"
|
|
694
695
|
});
|
|
695
696
|
}, Z = (e) => {
|
|
@@ -702,7 +703,7 @@ var k = class {
|
|
|
702
703
|
}
|
|
703
704
|
return t;
|
|
704
705
|
}, Ke = async () => {
|
|
705
|
-
let e =
|
|
706
|
+
let e = s.ids.data;
|
|
706
707
|
if (!e?.id) {
|
|
707
708
|
console.warn("HdCameraList 缺少数据工作流配置");
|
|
708
709
|
return;
|
|
@@ -710,16 +711,16 @@ var k = class {
|
|
|
710
711
|
try {
|
|
711
712
|
let t = Z(await r({
|
|
712
713
|
id: e.id,
|
|
713
|
-
baseHttp:
|
|
714
|
+
baseHttp: s.baseHttp,
|
|
714
715
|
reqType: e.reqType,
|
|
715
|
-
variables: { serviceTypeID:
|
|
716
|
+
variables: { serviceTypeID: s.serviceTypeID },
|
|
716
717
|
isFormData: e.isFormData,
|
|
717
|
-
appKey:
|
|
718
|
-
appSalt:
|
|
718
|
+
appKey: s.appKey,
|
|
719
|
+
appSalt: s.appSalt
|
|
719
720
|
}));
|
|
720
721
|
console.log(t, "output");
|
|
721
722
|
let n = qe(t);
|
|
722
|
-
|
|
723
|
+
O.value = {
|
|
723
724
|
title: t?.title || "",
|
|
724
725
|
list: n.map((e) => Je(e))
|
|
725
726
|
};
|
|
@@ -755,7 +756,7 @@ var k = class {
|
|
|
755
756
|
}, $ = async () => {
|
|
756
757
|
await Ke(), V.value && X();
|
|
757
758
|
};
|
|
758
|
-
|
|
759
|
+
E(V, (e) => {
|
|
759
760
|
e ? X() : Y();
|
|
760
761
|
});
|
|
761
762
|
let Ye = !1, Xe = () => {
|
|
@@ -763,89 +764,89 @@ var k = class {
|
|
|
763
764
|
let t = e.target.closest(".hd-camera-marker");
|
|
764
765
|
if (!t) return;
|
|
765
766
|
e.stopPropagation();
|
|
766
|
-
let n = t.getAttribute("data-markerId")?.replace("camera-", "") || "", r =
|
|
767
|
+
let n = t.getAttribute("data-markerId")?.replace("camera-", "") || "", r = O.value.list.find((e) => e.id == n);
|
|
767
768
|
r && Ge(r);
|
|
768
769
|
}), !0);
|
|
769
770
|
};
|
|
770
|
-
return
|
|
771
|
-
Xe(),
|
|
771
|
+
return y(() => {
|
|
772
|
+
Xe(), o?.on("toComponent", (e) => {
|
|
772
773
|
e.componentName === "HdCameraList" && ($(), X());
|
|
773
774
|
}), $();
|
|
774
|
-
}),
|
|
775
|
+
}), b(() => {
|
|
775
776
|
Y();
|
|
776
|
-
}), (e, t) => (
|
|
777
|
-
|
|
777
|
+
}), (e, t) => (x(), p("div", le, [
|
|
778
|
+
m("button", {
|
|
778
779
|
class: "HdCameraList-close",
|
|
779
780
|
onClick: We
|
|
780
|
-
}, [...t[3] ||= [
|
|
781
|
-
|
|
781
|
+
}, [...t[3] ||= [m("span", null, "✕", -1)]]),
|
|
782
|
+
m("div", ue, [m("div", de, [m("h3", fe, w(Me.value), 1), m("label", pe, [D(m("input", {
|
|
782
783
|
"onUpdate:modelValue": t[0] ||= (e) => V.value = e,
|
|
783
784
|
type: "checkbox"
|
|
784
|
-
}, null, 512), [[ee, V.value]]), t[4] ||=
|
|
785
|
+
}, null, 512), [[ee, V.value]]), t[4] ||= m("span", null, "地图标记", -1)])]), t[5] ||= m("img", {
|
|
785
786
|
class: "HdCameraList-headerLine",
|
|
786
787
|
src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAbsAAAASBAMAAAAwI22/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAwUExURQAAAAem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/wem/5bu5GYAAAAPdFJOUwAFwAwc2M8ULQYDn/hGXGnV2UoAAAGZSURBVEjH7ZM/S8NAGId/JYGmmeLspptThurk0CHWRXGo0Nk/S50y6CYSHMRF7Efo4uQXEIpbwUnM6OhnEIeChXjv5ZLLXdLtLCX68vDCe0eGJ7/3AJN1VcL+UImB/SruVJwYTqSAW5V3LLyaPR1c+IIdH12OPZiLcyTAjccZEdccZ0Nn4bXpC3KpCuFu5tkdziX3FJxBSBZZdFk9HempCduMk4xSitJTpOgJSSIPrx10YAUB0tYOwrQ1g12k7ZyODIYXZmQpppLV26rtbDFOXVhua2Fn7WTWwUEyAe5Zc2hiLWTTC3jjk8Hw+jrSM9/Z8raKOAtZVmyr9jbpee4lU9hvSUStw6YvOpqwiXlK9d8IL0Oq5tuqvc3KLMs7q9uyCC0y22aKvDVp4u2SjnJ1c+Wecg7h9gV4CFV8NHpEaw7yF2wVGcIa6OBx/Ax3PI6pRWx6Am98alBbpSODNVTxgAbQUpF3KeVv0s80xMUow8N//YVaqWEV9BJDdby2PBUZ1/te0uU0YzeLa623jjrrvaLOep/+str9ACyAtv25BhHcAAAAAElFTkSuQmCC",
|
|
787
788
|
alt: ""
|
|
788
789
|
}, null, -1)]),
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
modelValue:
|
|
792
|
-
"onUpdate:modelValue": t[1] ||= (e) =>
|
|
790
|
+
m("div", me, [
|
|
791
|
+
h(T(se), {
|
|
792
|
+
modelValue: k.value,
|
|
793
|
+
"onUpdate:modelValue": t[1] ||= (e) => k.value = e,
|
|
793
794
|
class: "HdCameraList-select",
|
|
794
795
|
size: "small",
|
|
795
796
|
"popper-class": "HdCameraList-selectPopper",
|
|
796
797
|
placeholder: "全部",
|
|
797
798
|
onChange: W
|
|
798
799
|
}, {
|
|
799
|
-
default:
|
|
800
|
+
default: re(() => [(x(!0), p(c, null, C(Ne.value, (e) => (x(), d(T(oe), {
|
|
800
801
|
key: e.value,
|
|
801
802
|
label: e.label,
|
|
802
803
|
value: e.value
|
|
803
804
|
}, null, 8, ["label", "value"]))), 128))]),
|
|
804
805
|
_: 1
|
|
805
806
|
}, 8, ["modelValue"]),
|
|
806
|
-
|
|
807
|
-
"onUpdate:modelValue": t[2] ||= (e) =>
|
|
807
|
+
m("div", he, [D(m("input", {
|
|
808
|
+
"onUpdate:modelValue": t[2] ||= (e) => A.value = e,
|
|
808
809
|
type: "text",
|
|
809
810
|
class: "HdCameraList-searchInput",
|
|
810
811
|
placeholder: "搜索摄像头",
|
|
811
|
-
onKeyup:
|
|
812
|
-
}, null, 544), [[te,
|
|
812
|
+
onKeyup: ie(W, ["enter"])
|
|
813
|
+
}, null, 544), [[te, A.value]]), (x(), p("svg", {
|
|
813
814
|
class: "HdCameraList-searchIcon",
|
|
814
815
|
viewBox: "0 0 24 24",
|
|
815
816
|
width: "14",
|
|
816
817
|
height: "14",
|
|
817
818
|
onClick: W
|
|
818
|
-
}, [...t[6] ||= [
|
|
819
|
+
}, [...t[6] ||= [m("circle", {
|
|
819
820
|
cx: "11",
|
|
820
821
|
cy: "11",
|
|
821
822
|
r: "7",
|
|
822
823
|
fill: "none",
|
|
823
824
|
stroke: "currentColor",
|
|
824
825
|
"stroke-width": "1.5"
|
|
825
|
-
}, null, -1),
|
|
826
|
+
}, null, -1), m("path", {
|
|
826
827
|
d: "M16 16 L20 20",
|
|
827
828
|
fill: "none",
|
|
828
829
|
stroke: "currentColor",
|
|
829
830
|
"stroke-width": "1.5",
|
|
830
831
|
"stroke-linecap": "round"
|
|
831
832
|
}, null, -1)]]))]),
|
|
832
|
-
|
|
833
|
+
m("span", ge, "共 " + w(U.value.length) + " 路", 1)
|
|
833
834
|
]),
|
|
834
|
-
|
|
835
|
+
m("div", _e, [(x(!0), p(c, null, C(U.value, (e) => (x(), p("div", {
|
|
835
836
|
key: e.id,
|
|
836
837
|
class: "HdCameraList-item",
|
|
837
838
|
onClick: (t) => q(e)
|
|
838
839
|
}, [
|
|
839
|
-
|
|
840
|
+
m("div", ye, [e.previewpic ? (x(), p("img", {
|
|
840
841
|
key: 0,
|
|
841
842
|
src: e.previewpic,
|
|
842
843
|
alt: ""
|
|
843
|
-
}, null, 8, be)) : (
|
|
844
|
+
}, null, 8, be)) : (x(), p("div", xe, [...t[7] ||= [m("svg", {
|
|
844
845
|
viewBox: "0 0 24 24",
|
|
845
846
|
width: "20",
|
|
846
847
|
height: "20"
|
|
847
848
|
}, [
|
|
848
|
-
|
|
849
|
+
m("rect", {
|
|
849
850
|
x: "2",
|
|
850
851
|
y: "6",
|
|
851
852
|
width: "20",
|
|
@@ -855,7 +856,7 @@ var k = class {
|
|
|
855
856
|
stroke: "currentColor",
|
|
856
857
|
"stroke-width": "1.5"
|
|
857
858
|
}),
|
|
858
|
-
|
|
859
|
+
m("circle", {
|
|
859
860
|
cx: "12",
|
|
860
861
|
cy: "12",
|
|
861
862
|
r: "3",
|
|
@@ -863,52 +864,52 @@ var k = class {
|
|
|
863
864
|
stroke: "currentColor",
|
|
864
865
|
"stroke-width": "1.5"
|
|
865
866
|
}),
|
|
866
|
-
|
|
867
|
+
m("circle", {
|
|
867
868
|
cx: "12",
|
|
868
869
|
cy: "12",
|
|
869
870
|
r: "1",
|
|
870
871
|
fill: "currentColor"
|
|
871
872
|
})
|
|
872
873
|
], -1)]]))]),
|
|
873
|
-
|
|
874
|
+
m("div", Se, [m("div", {
|
|
874
875
|
class: "HdCameraList-name",
|
|
875
876
|
title: e.name
|
|
876
|
-
},
|
|
877
|
-
t[8] ||=
|
|
877
|
+
}, w(e.name), 9, Ce), e.location ? (x(), p("div", we, w(e.location), 1)) : f("", !0)]),
|
|
878
|
+
t[8] ||= m("div", { class: "HdCameraList-play" }, [m("svg", {
|
|
878
879
|
viewBox: "0 0 24 24",
|
|
879
880
|
width: "18",
|
|
880
881
|
height: "18"
|
|
881
|
-
}, [
|
|
882
|
+
}, [m("circle", {
|
|
882
883
|
cx: "12",
|
|
883
884
|
cy: "12",
|
|
884
885
|
r: "10",
|
|
885
886
|
fill: "none",
|
|
886
887
|
stroke: "currentColor",
|
|
887
888
|
"stroke-width": "1.5"
|
|
888
|
-
}),
|
|
889
|
+
}), m("polygon", {
|
|
889
890
|
points: "10 8 16 12 10 16",
|
|
890
891
|
fill: "currentColor"
|
|
891
892
|
})])], -1)
|
|
892
|
-
], 8, ve))), 128)), U.value.length ?
|
|
893
|
-
(
|
|
893
|
+
], 8, ve))), 128)), U.value.length ? f("", !0) : (x(), p("div", Te, "暂无摄像头"))]),
|
|
894
|
+
(x(), d(l, { to: "body" }, [M.value ? (x(), p("div", {
|
|
894
895
|
key: 0,
|
|
895
896
|
class: "HdCameraList-mask",
|
|
896
|
-
onClick:
|
|
897
|
-
}, [
|
|
898
|
-
t[10] ||=
|
|
899
|
-
|
|
900
|
-
|
|
897
|
+
onClick: ae(J, ["self"])
|
|
898
|
+
}, [m("div", Ee, [m("div", De, [
|
|
899
|
+
t[10] ||= m("i", { class: "HdCameraList-playerHeadBar" }, null, -1),
|
|
900
|
+
m("span", Oe, w(N.value?.name), 1),
|
|
901
|
+
m("button", {
|
|
901
902
|
class: "HdCameraList-playerClose",
|
|
902
903
|
onClick: J
|
|
903
|
-
}, [...t[9] ||= [
|
|
904
|
-
]),
|
|
904
|
+
}, [...t[9] ||= [m("span", null, "✕", -1)]])
|
|
905
|
+
]), m("div", ke, [D(m("video", {
|
|
905
906
|
ref_key: "videoRef",
|
|
906
907
|
ref: R,
|
|
907
908
|
class: "HdCameraList-video",
|
|
908
909
|
controls: "",
|
|
909
910
|
autoplay: "",
|
|
910
911
|
playsinline: ""
|
|
911
|
-
}, null, 512), [[ne, !
|
|
912
|
+
}, null, 512), [[ne, !F.value && !I.value]]), F.value ? (x(), p("div", Ae, [...t[11] ||= [m("span", null, "视频加载中...", -1)]])) : I.value ? (x(), p("div", je, [m("span", null, w(I.value), 1)])) : f("", !0)])])])) : f("", !0)]))
|
|
912
913
|
]));
|
|
913
914
|
}
|
|
914
915
|
}), [["__scopeId", "data-v-002d015d"]]);
|