tsviewer 1.0.31 → 1.0.32
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/README.md +3 -11
- package/dist/{BFLibraryButton-Cogtl8Vh.mjs → BFLibraryButton-BNlclUro.mjs} +1 -1
- package/dist/{IconSelection-Bs00CxIF.mjs → IconSelection-CzE3ngGY.mjs} +1 -1
- package/dist/{TSAnnotationCanvas-HQV-UW-j.mjs → TSAnnotationCanvas-CoRxWjXn.mjs} +3 -3
- package/dist/{TSAnnotationModal-CboTV3Bd.mjs → TSAnnotationModal-B-OHQVza.mjs} +3 -3
- package/dist/{TSFilterModal-BiX6ocf2.mjs → TSFilterModal-ZewnIuXD.mjs} +3 -3
- package/dist/{TSScrubber-D04stxRB.mjs → TSScrubber-CfI0H_CE.mjs} +1 -1
- package/dist/{TSViewerCanvas-7tyEpUbF.mjs → TSViewerCanvas-BZitVLGc.mjs} +2 -2
- package/dist/{TSViewerLayerWindow-ChwzPfuz.mjs → TSViewerLayerWindow-U3NyH3nc.mjs} +2 -2
- package/dist/{TSViewerToolbar-BHvdhd1h.mjs → TSViewerToolbar-BwtRehDx.mjs} +1 -1
- package/dist/{TsAnnotationDeleteDialog-D4aggIW6.mjs → TsAnnotationDeleteDialog-Ce9pB5DQ.mjs} +3 -3
- package/dist/{index-BXlfFRwy.mjs → index-BPrTaCv-.mjs} +199 -193
- package/dist/{pathOr-1B5szOyh.mjs → pathOr-B0o1s29P.mjs} +1 -1
- package/dist/tsviewer.es.js +1 -1
- package/dist/tsviewer.umd.js +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ref as y, computed as z, defineAsyncComponent as Z, watch as Te, nextTick as ne, onMounted as
|
|
2
|
-
import { defineStore as
|
|
3
|
-
import { fetchAuthSession as
|
|
1
|
+
import { ref as y, computed as z, defineAsyncComponent as Z, watch as Te, nextTick as ne, onMounted as Vt, onBeforeUnmount as Wt, createElementBlock as Ie, openBlock as de, normalizeClass as _e, createVNode as re, createElementVNode as ue, createBlock as $t, createCommentVNode as Ft, unref as J, Fragment as xt, renderList as qt, toDisplayString as je } from "vue";
|
|
2
|
+
import { defineStore as Bt, storeToRefs as Ze } from "pinia";
|
|
3
|
+
import { fetchAuthSession as zt } from "aws-amplify/auth";
|
|
4
4
|
function S(t) {
|
|
5
5
|
return t != null && typeof t == "object" && t["@@functional/placeholder"] === !0;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function D(t) {
|
|
8
8
|
return function e(n) {
|
|
9
9
|
return arguments.length === 0 || S(n) ? e : t.apply(this, arguments);
|
|
10
10
|
};
|
|
@@ -15,19 +15,19 @@ function N(t) {
|
|
|
15
15
|
case 0:
|
|
16
16
|
return e;
|
|
17
17
|
case 1:
|
|
18
|
-
return S(n) ? e :
|
|
18
|
+
return S(n) ? e : D(function(i) {
|
|
19
19
|
return t(n, i);
|
|
20
20
|
});
|
|
21
21
|
default:
|
|
22
|
-
return S(n) && S(o) ? e : S(n) ?
|
|
22
|
+
return S(n) && S(o) ? e : S(n) ? D(function(i) {
|
|
23
23
|
return t(i, o);
|
|
24
|
-
}) : S(o) ?
|
|
24
|
+
}) : S(o) ? D(function(i) {
|
|
25
25
|
return t(n, i);
|
|
26
26
|
}) : t(n, o);
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Xt(t, e) {
|
|
31
31
|
t = t || [], e = e || [];
|
|
32
32
|
var n, o = t.length, i = e.length, u = [];
|
|
33
33
|
for (n = 0; n < o; )
|
|
@@ -100,7 +100,7 @@ function ge(t) {
|
|
|
100
100
|
return t(u, o, g);
|
|
101
101
|
}) : S(o) ? N(function(u, g) {
|
|
102
102
|
return t(n, u, g);
|
|
103
|
-
}) :
|
|
103
|
+
}) : D(function(u) {
|
|
104
104
|
return t(n, o, u);
|
|
105
105
|
});
|
|
106
106
|
default:
|
|
@@ -110,11 +110,11 @@ function ge(t) {
|
|
|
110
110
|
return t(u, o, g);
|
|
111
111
|
}) : S(o) && S(i) ? N(function(u, g) {
|
|
112
112
|
return t(n, u, g);
|
|
113
|
-
}) : S(n) ?
|
|
113
|
+
}) : S(n) ? D(function(u) {
|
|
114
114
|
return t(u, o, i);
|
|
115
|
-
}) : S(o) ?
|
|
115
|
+
}) : S(o) ? D(function(u) {
|
|
116
116
|
return t(n, u, i);
|
|
117
|
-
}) : S(i) ?
|
|
117
|
+
}) : S(i) ? D(function(u) {
|
|
118
118
|
return t(n, o, u);
|
|
119
119
|
}) : t(n, o, i);
|
|
120
120
|
}
|
|
@@ -123,10 +123,10 @@ function ge(t) {
|
|
|
123
123
|
const ye = Array.isArray || function(e) {
|
|
124
124
|
return e != null && e.length >= 0 && Object.prototype.toString.call(e) === "[object Array]";
|
|
125
125
|
};
|
|
126
|
-
function
|
|
126
|
+
function Gt(t) {
|
|
127
127
|
return t != null && typeof t["@@transducer/step"] == "function";
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Ht(t, e, n) {
|
|
130
130
|
return function() {
|
|
131
131
|
if (arguments.length === 0)
|
|
132
132
|
return n();
|
|
@@ -137,7 +137,7 @@ function zt(t, e, n) {
|
|
|
137
137
|
return o[t[i]].apply(o, Array.prototype.slice.call(arguments, 0, -1));
|
|
138
138
|
i += 1;
|
|
139
139
|
}
|
|
140
|
-
if (
|
|
140
|
+
if (Gt(o)) {
|
|
141
141
|
var u = e.apply(null, Array.prototype.slice.call(arguments, 0, -1));
|
|
142
142
|
return u(o);
|
|
143
143
|
}
|
|
@@ -145,13 +145,13 @@ function zt(t, e, n) {
|
|
|
145
145
|
return n.apply(this, arguments);
|
|
146
146
|
};
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function Zt(t) {
|
|
149
149
|
return t && t["@@transducer/reduced"] ? t : {
|
|
150
150
|
"@@transducer/value": t,
|
|
151
151
|
"@@transducer/reduced": !0
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
-
const
|
|
154
|
+
const Jt = {
|
|
155
155
|
init: function() {
|
|
156
156
|
return this.xf["@@transducer/init"]();
|
|
157
157
|
},
|
|
@@ -162,9 +162,9 @@ const Gt = {
|
|
|
162
162
|
function me(t) {
|
|
163
163
|
return Object.prototype.toString.call(t) === "[object String]";
|
|
164
164
|
}
|
|
165
|
-
var
|
|
165
|
+
var Yt = /* @__PURE__ */ D(function(e) {
|
|
166
166
|
return ye(e) ? !0 : !e || typeof e != "object" || me(e) ? !1 : e.length === 0 ? !0 : e.length > 0 ? e.hasOwnProperty(0) && e.hasOwnProperty(e.length - 1) : !1;
|
|
167
|
-
}),
|
|
167
|
+
}), Kt = /* @__PURE__ */ function() {
|
|
168
168
|
function t(e) {
|
|
169
169
|
this.f = e;
|
|
170
170
|
}
|
|
@@ -176,15 +176,15 @@ var Ht = /* @__PURE__ */ k(function(e) {
|
|
|
176
176
|
return this.f(e, n);
|
|
177
177
|
}, t;
|
|
178
178
|
}();
|
|
179
|
-
function
|
|
180
|
-
return new
|
|
179
|
+
function Qt(t) {
|
|
180
|
+
return new Kt(t);
|
|
181
181
|
}
|
|
182
|
-
var
|
|
182
|
+
var en = /* @__PURE__ */ N(function(e, n) {
|
|
183
183
|
return Ee(e.length, function() {
|
|
184
184
|
return e.apply(n, arguments);
|
|
185
185
|
});
|
|
186
186
|
});
|
|
187
|
-
function
|
|
187
|
+
function tn(t, e, n) {
|
|
188
188
|
for (var o = 0, i = n.length; o < i; ) {
|
|
189
189
|
if (e = t["@@transducer/step"](e, n[o]), e && e["@@transducer/reduced"]) {
|
|
190
190
|
e = e["@@transducer/value"];
|
|
@@ -205,12 +205,12 @@ function Me(t, e, n) {
|
|
|
205
205
|
return t["@@transducer/result"](e);
|
|
206
206
|
}
|
|
207
207
|
function Ve(t, e, n, o) {
|
|
208
|
-
return t["@@transducer/result"](n[o](
|
|
208
|
+
return t["@@transducer/result"](n[o](en(t["@@transducer/step"], t), e));
|
|
209
209
|
}
|
|
210
210
|
var We = typeof Symbol < "u" ? Symbol.iterator : "@@iterator";
|
|
211
|
-
function
|
|
212
|
-
if (typeof t == "function" && (t =
|
|
213
|
-
return
|
|
211
|
+
function nn(t, e, n) {
|
|
212
|
+
if (typeof t == "function" && (t = Qt(t)), Yt(n))
|
|
213
|
+
return tn(t, e, n);
|
|
214
214
|
if (typeof n["fantasy-land/reduce"] == "function")
|
|
215
215
|
return Ve(t, e, n, "fantasy-land/reduce");
|
|
216
216
|
if (n[We] != null)
|
|
@@ -230,18 +230,18 @@ var $e = Object.prototype.toString, Je = /* @__PURE__ */ function() {
|
|
|
230
230
|
} : function(e) {
|
|
231
231
|
return ve("callee", e);
|
|
232
232
|
};
|
|
233
|
-
}(),
|
|
233
|
+
}(), rn = !/* @__PURE__ */ {
|
|
234
234
|
toString: null
|
|
235
235
|
}.propertyIsEnumerable("toString"), Fe = ["constructor", "valueOf", "isPrototypeOf", "toString", "propertyIsEnumerable", "hasOwnProperty", "toLocaleString"], xe = /* @__PURE__ */ function() {
|
|
236
236
|
return arguments.propertyIsEnumerable("length");
|
|
237
|
-
}(),
|
|
237
|
+
}(), on = function(e, n) {
|
|
238
238
|
for (var o = 0; o < e.length; ) {
|
|
239
239
|
if (e[o] === n)
|
|
240
240
|
return !0;
|
|
241
241
|
o += 1;
|
|
242
242
|
}
|
|
243
243
|
return !1;
|
|
244
|
-
}, qe = /* @__PURE__ */
|
|
244
|
+
}, qe = /* @__PURE__ */ D(typeof Object.keys == "function" && !xe ? function(e) {
|
|
245
245
|
return Object(e) !== e ? [] : Object.keys(e);
|
|
246
246
|
} : function(e) {
|
|
247
247
|
if (Object(e) !== e)
|
|
@@ -249,24 +249,24 @@ var $e = Object.prototype.toString, Je = /* @__PURE__ */ function() {
|
|
|
249
249
|
var n, o, i = [], u = xe && Je(e);
|
|
250
250
|
for (n in e)
|
|
251
251
|
ve(n, e) && (!u || n !== "length") && (i[i.length] = n);
|
|
252
|
-
if (
|
|
252
|
+
if (rn)
|
|
253
253
|
for (o = Fe.length - 1; o >= 0; )
|
|
254
|
-
n = Fe[o], ve(n, e) && !
|
|
254
|
+
n = Fe[o], ve(n, e) && !on(i, n) && (i[i.length] = n), o -= 1;
|
|
255
255
|
return i;
|
|
256
256
|
});
|
|
257
|
-
const
|
|
257
|
+
const an = Number.isInteger || function(e) {
|
|
258
258
|
return e << 0 === e;
|
|
259
259
|
};
|
|
260
|
-
var
|
|
260
|
+
var sn = /* @__PURE__ */ N(function(e, n) {
|
|
261
261
|
var o = e < 0 ? n.length + e : e;
|
|
262
262
|
return me(n) ? n.charAt(o) : n[o];
|
|
263
263
|
}), Y = /* @__PURE__ */ N(function(e, n) {
|
|
264
264
|
if (n != null)
|
|
265
|
-
return
|
|
266
|
-
}),
|
|
265
|
+
return an(e) ? sn(e, n) : n[e];
|
|
266
|
+
}), ln = /* @__PURE__ */ ge(nn), Be = /* @__PURE__ */ D(function(e) {
|
|
267
267
|
return e === null ? "Null" : e === void 0 ? "Undefined" : Object.prototype.toString.call(e).slice(8, -1);
|
|
268
268
|
});
|
|
269
|
-
function
|
|
269
|
+
function un(t, e) {
|
|
270
270
|
return function() {
|
|
271
271
|
return e.call(this, t.apply(this, arguments));
|
|
272
272
|
};
|
|
@@ -280,28 +280,28 @@ function Ye(t, e) {
|
|
|
280
280
|
return ye(o) || typeof o[t] != "function" ? e.apply(this, arguments) : o[t].apply(o, Array.prototype.slice.call(arguments, 0, n - 1));
|
|
281
281
|
};
|
|
282
282
|
}
|
|
283
|
-
var
|
|
283
|
+
var cn = /* @__PURE__ */ ge(
|
|
284
284
|
/* @__PURE__ */ Ye("slice", function(e, n, o) {
|
|
285
285
|
return Array.prototype.slice.call(o, e, n);
|
|
286
286
|
})
|
|
287
|
-
),
|
|
287
|
+
), dn = /* @__PURE__ */ D(
|
|
288
288
|
/* @__PURE__ */ Ye(
|
|
289
289
|
"tail",
|
|
290
|
-
/* @__PURE__ */
|
|
290
|
+
/* @__PURE__ */ cn(1, 1 / 0)
|
|
291
291
|
)
|
|
292
292
|
);
|
|
293
|
-
function
|
|
293
|
+
function fn() {
|
|
294
294
|
if (arguments.length === 0)
|
|
295
295
|
throw new Error("pipe requires at least one argument");
|
|
296
|
-
return Ee(arguments[0].length,
|
|
296
|
+
return Ee(arguments[0].length, ln(un, arguments[0], dn(arguments)));
|
|
297
297
|
}
|
|
298
|
-
var
|
|
298
|
+
var vn = /* @__PURE__ */ D(function(e) {
|
|
299
299
|
return me(e) ? e.split("").reverse().join("") : Array.prototype.slice.call(e, 0).reverse();
|
|
300
300
|
});
|
|
301
301
|
function ze() {
|
|
302
302
|
if (arguments.length === 0)
|
|
303
303
|
throw new Error("compose requires at least one argument");
|
|
304
|
-
return
|
|
304
|
+
return fn.apply(this, vn(arguments));
|
|
305
305
|
}
|
|
306
306
|
function Xe(t) {
|
|
307
307
|
for (var e = [], n; !(n = t.next()).done; )
|
|
@@ -316,14 +316,14 @@ function Ge(t, e, n) {
|
|
|
316
316
|
}
|
|
317
317
|
return !1;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function pn(t) {
|
|
320
320
|
var e = String(t).match(/^function (\w*)/);
|
|
321
321
|
return e == null ? "" : e[1];
|
|
322
322
|
}
|
|
323
|
-
function
|
|
323
|
+
function hn(t, e) {
|
|
324
324
|
return t === e ? t !== 0 || 1 / t === 1 / e : t !== t && e !== e;
|
|
325
325
|
}
|
|
326
|
-
const be = typeof Object.is == "function" ? Object.is :
|
|
326
|
+
const be = typeof Object.is == "function" ? Object.is : hn;
|
|
327
327
|
function He(t, e, n, o) {
|
|
328
328
|
var i = Xe(t), u = Xe(e);
|
|
329
329
|
function g(A, l) {
|
|
@@ -347,7 +347,7 @@ function Oe(t, e, n, o) {
|
|
|
347
347
|
case "Arguments":
|
|
348
348
|
case "Array":
|
|
349
349
|
case "Object":
|
|
350
|
-
if (typeof t.constructor == "function" &&
|
|
350
|
+
if (typeof t.constructor == "function" && pn(t.constructor) === "Promise")
|
|
351
351
|
return t === e;
|
|
352
352
|
break;
|
|
353
353
|
case "Boolean":
|
|
@@ -415,33 +415,33 @@ function Oe(t, e, n, o) {
|
|
|
415
415
|
var Ke = /* @__PURE__ */ N(function(e, n) {
|
|
416
416
|
return Oe(e, n, [], []);
|
|
417
417
|
});
|
|
418
|
-
function
|
|
418
|
+
function gn(t) {
|
|
419
419
|
return Object.prototype.toString.call(t) === "[object Object]";
|
|
420
420
|
}
|
|
421
421
|
var pe = /* @__PURE__ */ N(function(e, n) {
|
|
422
422
|
return n == null || n !== n ? e : n;
|
|
423
423
|
});
|
|
424
|
-
function
|
|
424
|
+
function yn(t) {
|
|
425
425
|
var e = Object.prototype.toString.call(t);
|
|
426
426
|
return e === "[object Uint8ClampedArray]" || e === "[object Int8Array]" || e === "[object Uint8Array]" || e === "[object Int16Array]" || e === "[object Uint16Array]" || e === "[object Int32Array]" || e === "[object Uint32Array]" || e === "[object Float32Array]" || e === "[object Float64Array]" || e === "[object BigInt64Array]" || e === "[object BigUint64Array]";
|
|
427
427
|
}
|
|
428
|
-
var
|
|
429
|
-
return e != null && typeof e["fantasy-land/empty"] == "function" ? e["fantasy-land/empty"]() : e != null && e.constructor != null && typeof e.constructor["fantasy-land/empty"] == "function" ? e.constructor["fantasy-land/empty"]() : e != null && typeof e.empty == "function" ? e.empty() : e != null && e.constructor != null && typeof e.constructor.empty == "function" ? e.constructor.empty() : ye(e) ? [] : me(e) ? "" :
|
|
428
|
+
var mn = /* @__PURE__ */ D(function(e) {
|
|
429
|
+
return e != null && typeof e["fantasy-land/empty"] == "function" ? e["fantasy-land/empty"]() : e != null && e.constructor != null && typeof e.constructor["fantasy-land/empty"] == "function" ? e.constructor["fantasy-land/empty"]() : e != null && typeof e.empty == "function" ? e.empty() : e != null && e.constructor != null && typeof e.constructor.empty == "function" ? e.constructor.empty() : ye(e) ? [] : me(e) ? "" : gn(e) ? {} : Je(e) ? /* @__PURE__ */ function() {
|
|
430
430
|
return arguments;
|
|
431
|
-
}() :
|
|
432
|
-
}),
|
|
431
|
+
}() : yn(e) ? e.constructor.from("") : void 0;
|
|
432
|
+
}), wn = /* @__PURE__ */ function() {
|
|
433
433
|
function t(e, n) {
|
|
434
434
|
this.xf = n, this.f = e, this.idx = -1, this.found = !1;
|
|
435
435
|
}
|
|
436
|
-
return t.prototype["@@transducer/init"] =
|
|
436
|
+
return t.prototype["@@transducer/init"] = Jt.init, t.prototype["@@transducer/result"] = function(e) {
|
|
437
437
|
return this.found || (e = this.xf["@@transducer/step"](e, -1)), this.xf["@@transducer/result"](e);
|
|
438
438
|
}, t.prototype["@@transducer/step"] = function(e, n) {
|
|
439
|
-
return this.idx += 1, this.f(n) && (this.found = !0, e =
|
|
439
|
+
return this.idx += 1, this.f(n) && (this.found = !0, e = Zt(this.xf["@@transducer/step"](e, this.idx))), e;
|
|
440
440
|
}, t;
|
|
441
|
-
}(),
|
|
442
|
-
return new
|
|
441
|
+
}(), An = /* @__PURE__ */ N(function(e, n) {
|
|
442
|
+
return new wn(e, n);
|
|
443
443
|
}), $ = /* @__PURE__ */ N(
|
|
444
|
-
/* @__PURE__ */
|
|
444
|
+
/* @__PURE__ */ Ht([], An, function(e, n) {
|
|
445
445
|
for (var o = 0, i = n.length; o < i; ) {
|
|
446
446
|
if (e(n[o]))
|
|
447
447
|
return o;
|
|
@@ -449,39 +449,45 @@ var hn = /* @__PURE__ */ k(function(e) {
|
|
|
449
449
|
}
|
|
450
450
|
return -1;
|
|
451
451
|
})
|
|
452
|
-
),
|
|
453
|
-
return e != null && Ke(e,
|
|
452
|
+
), Sn = /* @__PURE__ */ D(function(e) {
|
|
453
|
+
return e != null && Ke(e, mn(e));
|
|
454
454
|
}), F = /* @__PURE__ */ ge(function(e, n, o) {
|
|
455
455
|
return Ke(n, Y(e, o));
|
|
456
456
|
}), he = /* @__PURE__ */ ge(function(e, n, o) {
|
|
457
457
|
return pe(e, Y(n, o));
|
|
458
|
-
}),
|
|
458
|
+
}), Tn = /* @__PURE__ */ N(function(e, n) {
|
|
459
459
|
return Ee(e.length, function() {
|
|
460
460
|
try {
|
|
461
461
|
return e.apply(this, arguments);
|
|
462
462
|
} catch (o) {
|
|
463
|
-
return n.apply(this,
|
|
463
|
+
return n.apply(this, Xt([o], arguments));
|
|
464
464
|
}
|
|
465
465
|
});
|
|
466
466
|
});
|
|
467
|
-
const Qe = "https://api.pennsieve.
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
467
|
+
const Qe = "https://api.pennsieve.io", et = "https://api.pennsieve.net", tt = "https://api2.pennsieve.io", nt = "https://api2.pennsieve.net", rt = "wss://api.pennsieve.io/streaming/discover/ts/query", ot = "wss://api.pennsieve.net/streaming/discover/ts/query", at = "https://api.pennsieve.io/streaming", st = "https://api.pennsieve.net/streaming", In = {
|
|
468
|
+
pennsieveApiUrl: Qe,
|
|
469
|
+
pennsieveApiUrlDev: et,
|
|
470
|
+
pennsieveApi2Url: tt,
|
|
471
|
+
pennsieveApi2UrlDev: nt,
|
|
472
|
+
timeSeriesPublicUrl: rt,
|
|
473
|
+
timeSeriesPublicUrlDev: ot,
|
|
474
|
+
timeSeriesApi: at,
|
|
475
|
+
timeSeriesApiDev: st
|
|
476
|
+
}, _n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
474
477
|
__proto__: null,
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
478
|
+
default: In,
|
|
479
|
+
pennsieveApi2Url: tt,
|
|
480
|
+
pennsieveApi2UrlDev: nt,
|
|
481
|
+
pennsieveApiUrl: Qe,
|
|
482
|
+
pennsieveApiUrlDev: et,
|
|
483
|
+
timeSeriesApi: at,
|
|
484
|
+
timeSeriesApiDev: st,
|
|
485
|
+
timeSeriesPublicUrl: rt,
|
|
486
|
+
timeSeriesPublicUrlDev: ot
|
|
481
487
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
482
488
|
async function fe() {
|
|
483
489
|
try {
|
|
484
|
-
return
|
|
490
|
+
return zt().then(
|
|
485
491
|
(t) => {
|
|
486
492
|
var e;
|
|
487
493
|
return (e = t == null ? void 0 : t.tokens) == null ? void 0 : e.accessToken.toString();
|
|
@@ -491,7 +497,7 @@ async function fe() {
|
|
|
491
497
|
console.error(t);
|
|
492
498
|
}
|
|
493
499
|
}
|
|
494
|
-
const
|
|
500
|
+
const bn = () => ({
|
|
495
501
|
openConnection: async (e, n, o) => await new Promise((g, A) => {
|
|
496
502
|
const l = e + "?session=" + o + "&package=" + n;
|
|
497
503
|
console.log("Opening WebSocket connection to:", l);
|
|
@@ -502,15 +508,15 @@ const Tn = () => ({
|
|
|
502
508
|
const h = { montage: "NOT_MONTAGED", packageId: n };
|
|
503
509
|
console.log("🎛️ Sending message payload"), m.send(JSON.stringify(h));
|
|
504
510
|
}, m.onclose = () => {
|
|
505
|
-
console.log("🔌 WebSocket closed for package:", n), s && s.channelDetails ?
|
|
511
|
+
console.log("🔌 WebSocket closed for package:", n), s && s.channelDetails ? g({ res: s.channelDetails, status: "websocket closed" }) : (console.warn("No channel details received"), g({ res: null, status: "websocket closed without data" }));
|
|
506
512
|
}, m.onmessage = (h) => {
|
|
507
513
|
console.log("WebSocket message received:", h.data), s = JSON.parse(h.data), m.close();
|
|
508
514
|
}, m.onerror = (h) => {
|
|
509
515
|
console.error("WebSocket error:", h), A(h);
|
|
510
516
|
};
|
|
511
517
|
})
|
|
512
|
-
}),
|
|
513
|
-
const t =
|
|
518
|
+
}), it = Bt("tsviewer", () => {
|
|
519
|
+
const t = _n, e = y([]), n = y("NOT_MONTAGED"), o = y({}), i = y([]), u = y(null), g = y(null), A = y({}), l = y([]), s = y({}), m = y({}), h = y("POINTER"), { openConnection: b } = bn(), M = z(() => (a) => i.value.find((c) => c.name === a)), R = z(() => e.value.filter((a) => a.selected)), _ = z(() => () => {
|
|
514
520
|
const a = l.value.find((c) => c.selected);
|
|
515
521
|
return a || (console.warn("No active layer found, available layers:", l.value), l.value.length > 0 ? l.value[0] : null);
|
|
516
522
|
}), V = () => {
|
|
@@ -539,7 +545,7 @@ const Tn = () => ({
|
|
|
539
545
|
}, H = () => (a) => {
|
|
540
546
|
var p;
|
|
541
547
|
return ((p = a == null ? void 0 : a.content) == null ? void 0 : p.state) === "READY";
|
|
542
|
-
},
|
|
548
|
+
}, k = (a) => {
|
|
543
549
|
const c = a.map((p) => (!p.id && p.id !== 0 && (console.warn("Annotation layer missing ID:", p), p.id = Math.random().toString(36).substr(2, 9)), p.annotations || (p.annotations = []), p.name || (p.name = `Layer ${p.id}`), p));
|
|
544
550
|
l.value = c, console.log("Set annotations with validated structure:", c);
|
|
545
551
|
}, j = (a) => {
|
|
@@ -640,7 +646,7 @@ const Tn = () => ({
|
|
|
640
646
|
setCustomMontageMap: T,
|
|
641
647
|
setWorkspaceMontages: W,
|
|
642
648
|
setViewerErrors: O,
|
|
643
|
-
setAnnotations:
|
|
649
|
+
setAnnotations: k,
|
|
644
650
|
setActiveAnnotationLayer: j,
|
|
645
651
|
setActiveAnnotation: X,
|
|
646
652
|
setActiveTool: K,
|
|
@@ -678,25 +684,25 @@ const Tn = () => ({
|
|
|
678
684
|
setActiveViewer: E
|
|
679
685
|
};
|
|
680
686
|
});
|
|
681
|
-
function
|
|
687
|
+
function Cn(t) {
|
|
682
688
|
if (useRoute().name === "docs-login")
|
|
683
689
|
return;
|
|
684
690
|
pe(!1, Y("shouldShowToast", t));
|
|
685
691
|
const n = pe(!1, Y("shouldRedirect", t));
|
|
686
692
|
this.clearState(), n && this.$route.fullPath;
|
|
687
693
|
}
|
|
688
|
-
const
|
|
694
|
+
const En = (t) => Object.prototype.toString.call(t) === "[object String]", On = (t) => {
|
|
689
695
|
Object.keys(t).forEach((e) => {
|
|
690
|
-
|
|
696
|
+
En(t[e]) && (t[e] = t[e].trim());
|
|
691
697
|
});
|
|
692
698
|
};
|
|
693
|
-
function
|
|
699
|
+
function $n(t, e) {
|
|
694
700
|
if (!t)
|
|
695
701
|
return Promise.reject({ status: 400, message: "Url is missing!" });
|
|
696
702
|
const n = he("GET", "method", e), o = he({}, "header", e), i = Object.assign({}, { "Content-type": "application/json" }, o), u = Y("body", e);
|
|
697
703
|
let g = { headers: i, method: n };
|
|
698
704
|
if (u) {
|
|
699
|
-
typeof u == "object" &&
|
|
705
|
+
typeof u == "object" && On(u);
|
|
700
706
|
const A = JSON.stringify(u);
|
|
701
707
|
g = Object.assign({}, g, { body: A });
|
|
702
708
|
}
|
|
@@ -713,13 +719,13 @@ function Ce(t) {
|
|
|
713
719
|
if (n === 400 && t.body)
|
|
714
720
|
t.body.getReader().read().then(({ done: o, value: i }) => {
|
|
715
721
|
const u = i instanceof Uint8Array ? String.fromCharCode.apply(null, i) : i;
|
|
716
|
-
ze(pe(u),
|
|
722
|
+
ze(pe(u), Tn(ze(Y("message"), JSON.parse), (g, A) => A))(u);
|
|
717
723
|
});
|
|
718
724
|
else if (n === 401)
|
|
719
|
-
return
|
|
725
|
+
return Cn();
|
|
720
726
|
}
|
|
721
|
-
function
|
|
722
|
-
const t =
|
|
727
|
+
function Pn() {
|
|
728
|
+
const t = it(), { viewerChannels: e, viewerAnnotations: n } = Ze(t), o = (l) => l.id || "", i = (l) => {
|
|
723
729
|
l.sort(function(m, h) {
|
|
724
730
|
return m.start < h.start ? -1 : m.start > h.start ? 1 : 0;
|
|
725
731
|
});
|
|
@@ -897,12 +903,12 @@ function Cn() {
|
|
|
897
903
|
getChannelId: o
|
|
898
904
|
};
|
|
899
905
|
}
|
|
900
|
-
const
|
|
906
|
+
const Dn = (t, e) => {
|
|
901
907
|
const n = t.__vccOpts || t;
|
|
902
908
|
for (const [o, i] of e)
|
|
903
909
|
n[o] = i;
|
|
904
910
|
return n;
|
|
905
|
-
},
|
|
911
|
+
}, kn = { id: "channelCanvas" }, Ln = ["data-id"], Nn = ["hidden"], Un = ["hidden"], Rn = {
|
|
906
912
|
__name: "TSViewer",
|
|
907
913
|
props: {
|
|
908
914
|
pkg: {
|
|
@@ -920,7 +926,7 @@ const En = (t, e) => {
|
|
|
920
926
|
}
|
|
921
927
|
},
|
|
922
928
|
setup(t, { expose: e }) {
|
|
923
|
-
const n = Z(() => import("./TSScrubber-
|
|
929
|
+
const n = Z(() => import("./TSScrubber-CfI0H_CE.mjs")), o = Z(() => import("./TSViewerCanvas-BZitVLGc.mjs").then((r) => r.T)), i = Z(() => import("./TSViewerToolbar-BwtRehDx.mjs")), u = Z(() => import("./TSFilterModal-ZewnIuXD.mjs")), g = Z(() => import("./TSAnnotationModal-B-OHQVza.mjs")), A = Z(() => import("./TsAnnotationDeleteDialog-Ce9pB5DQ.mjs")), l = Z(() => import("./TSViewerLayerWindow-U3NyH3nc.mjs")), s = {
|
|
924
930
|
TIMEUNIT: "microSeconds",
|
|
925
931
|
// Basis for time
|
|
926
932
|
XOFFSET: 0,
|
|
@@ -957,11 +963,11 @@ const En = (t, e) => {
|
|
|
957
963
|
// Maximum duration window (5min)
|
|
958
964
|
INITDURATION: 15e6
|
|
959
965
|
// Initial duration window (15sec)
|
|
960
|
-
}, m = t, h =
|
|
966
|
+
}, m = t, h = it(), { viewerChannels: b, needsRerender: M } = Ze(h), {
|
|
961
967
|
addAnnotation: R,
|
|
962
968
|
updateAnnotation: _,
|
|
963
969
|
removeAnnotation: V
|
|
964
|
-
} =
|
|
970
|
+
} = Pn(), P = y(null), E = y(null), I = y(null), v = y(null), T = y(null), W = y(null), O = y(null), C = y(null), G = y(0), H = y(0), k = y(0), j = y(0), X = y(0), K = y(0), oe = y(0), x = y(1), Q = y(1 / 10), q = y(!1), ae = y(!1), ce = y(null), B = y(!1), se = y(!1), ie = z(() => h.activeViewer), Pe = z(() => b.value.map((r) => ({
|
|
965
971
|
...r,
|
|
966
972
|
selected: !!r.selected
|
|
967
973
|
}))), we = z(() => Pe.value.filter((r) => r.visible)), Ae = z(() => {
|
|
@@ -1014,24 +1020,24 @@ const En = (t, e) => {
|
|
|
1014
1020
|
}
|
|
1015
1021
|
q.value = !1;
|
|
1016
1022
|
try {
|
|
1017
|
-
r.id ? (console.log("📍 TSViewer: Updating annotation via composable"), await _(r), ee()) : (console.log("📍 TSViewer: Creating annotation via composable"), await R(r),
|
|
1023
|
+
r.id ? (console.log("📍 TSViewer: Updating annotation via composable"), await _(r), ee()) : (console.log("📍 TSViewer: Creating annotation via composable"), await R(r), ft()), console.log("📍 TSViewer: Annotation operation completed successfully");
|
|
1018
1024
|
} catch (f) {
|
|
1019
1025
|
console.error("📍 TSViewer: Error creating/updating annotation:", f), q.value = !0;
|
|
1020
1026
|
}
|
|
1021
1027
|
}, ee = () => {
|
|
1022
1028
|
v.value.renderAnnotationCanvas();
|
|
1023
|
-
},
|
|
1029
|
+
}, lt = (r) => {
|
|
1024
1030
|
ce.value = r, B.value = !0;
|
|
1025
|
-
},
|
|
1031
|
+
}, ut = async (r) => {
|
|
1026
1032
|
B.value = !1;
|
|
1027
1033
|
try {
|
|
1028
|
-
await V(r),
|
|
1034
|
+
await V(r), ct(), console.log("📍 TSViewer: Annotation deleted successfully");
|
|
1029
1035
|
} catch (f) {
|
|
1030
1036
|
console.error("📍 TSViewer: Error deleting annotation:", f);
|
|
1031
1037
|
}
|
|
1032
|
-
},
|
|
1038
|
+
}, ct = () => {
|
|
1033
1039
|
v.value.renderAnnotationCanvas();
|
|
1034
|
-
},
|
|
1040
|
+
}, dt = (r, f, d, w, U, le) => {
|
|
1035
1041
|
if (console.log("📍 TSViewer: onAddAnnotation called with:", {
|
|
1036
1042
|
startTime: r,
|
|
1037
1043
|
duration: f,
|
|
@@ -1043,124 +1049,124 @@ const En = (t, e) => {
|
|
|
1043
1049
|
console.error("Invalid layer provided to onAddAnnotation:", le);
|
|
1044
1050
|
return;
|
|
1045
1051
|
}
|
|
1046
|
-
const
|
|
1052
|
+
const Rt = h.viewerSelectedChannels || [], jt = d ? [] : Rt.map((Mt) => Mt.id), Re = {
|
|
1047
1053
|
id: null,
|
|
1048
1054
|
label: w || "Event",
|
|
1049
1055
|
description: U || "",
|
|
1050
1056
|
start: Math.floor(r),
|
|
1051
1057
|
end: Math.floor(r + f),
|
|
1052
1058
|
duration: Math.floor(f),
|
|
1053
|
-
channelIds:
|
|
1059
|
+
channelIds: jt,
|
|
1054
1060
|
allChannels: d,
|
|
1055
1061
|
layer_id: le.id,
|
|
1056
1062
|
selected: !0,
|
|
1057
1063
|
userId: null
|
|
1058
1064
|
};
|
|
1059
1065
|
console.log("📍 TSViewer: Created annotation object:", Re), h.setActiveAnnotation(Re), console.log("📍 TSViewer: Store now contains:", h.activeAnnotation), q.value = !0, console.log("📍 TSViewer: Modal opened with annotation data");
|
|
1060
|
-
},
|
|
1066
|
+
}, ft = () => {
|
|
1061
1067
|
v.value.renderAnnotationCanvas();
|
|
1062
|
-
},
|
|
1068
|
+
}, vt = (r) => {
|
|
1063
1069
|
v.value.createAnnotationLayer(r);
|
|
1064
|
-
},
|
|
1070
|
+
}, De = () => {
|
|
1065
1071
|
ae.value = !1;
|
|
1066
|
-
},
|
|
1072
|
+
}, pt = () => {
|
|
1067
1073
|
v.value.resetFocusedAnnotation(), v.value.renderAnnotationCanvas(), q.value = !1;
|
|
1068
|
-
},
|
|
1074
|
+
}, ht = () => {
|
|
1069
1075
|
se.value = !1;
|
|
1070
|
-
},
|
|
1076
|
+
}, gt = (r) => {
|
|
1071
1077
|
r.stopPropagation(), r.preventDefault();
|
|
1072
1078
|
const f = r.detail.sourceEvent.metaKey;
|
|
1073
|
-
|
|
1074
|
-
}, pt = () => {
|
|
1075
|
-
D.value = v.value.getNextAnnotation();
|
|
1076
|
-
}, ht = () => {
|
|
1077
|
-
D.value = v.value.getPreviousAnnotation();
|
|
1078
|
-
}, gt = (r) => {
|
|
1079
|
-
Le(r * 1e6);
|
|
1079
|
+
ke({ channelId: r.currentTarget.dataset.id, append: f }), v.value.renderAll();
|
|
1080
1080
|
}, yt = () => {
|
|
1081
|
-
|
|
1081
|
+
k.value = v.value.getNextAnnotation();
|
|
1082
1082
|
}, mt = () => {
|
|
1083
|
-
|
|
1084
|
-
}, wt = () => {
|
|
1085
|
-
|
|
1083
|
+
k.value = v.value.getPreviousAnnotation();
|
|
1084
|
+
}, wt = (r) => {
|
|
1085
|
+
Le(r * 1e6);
|
|
1086
1086
|
}, At = () => {
|
|
1087
|
+
x.value = x.value * 1.25;
|
|
1087
1088
|
}, St = () => {
|
|
1089
|
+
x.value = x.value * 0.8;
|
|
1090
|
+
}, Tt = () => {
|
|
1091
|
+
E.value.getAnnotations();
|
|
1092
|
+
}, It = () => {
|
|
1093
|
+
}, _t = () => {
|
|
1088
1094
|
console.log("Page forward triggered from toolbar");
|
|
1089
1095
|
const r = Math.max(
|
|
1090
|
-
|
|
1096
|
+
k.value - 3 / 4 * j.value,
|
|
1091
1097
|
O.value
|
|
1092
1098
|
);
|
|
1093
1099
|
te(r), ne(() => {
|
|
1094
1100
|
var f;
|
|
1095
1101
|
(f = v.value) == null || f.renderAll();
|
|
1096
1102
|
});
|
|
1097
|
-
},
|
|
1103
|
+
}, bt = () => {
|
|
1098
1104
|
console.log("Page forward triggered from toolbar");
|
|
1099
1105
|
const r = Math.min(
|
|
1100
|
-
|
|
1106
|
+
k.value + 3 / 4 * j.value,
|
|
1101
1107
|
C.value - j.value
|
|
1102
1108
|
);
|
|
1103
|
-
console.log(`Moving from ${
|
|
1109
|
+
console.log(`Moving from ${k.value} to ${r}`), te(r), ne(() => {
|
|
1104
1110
|
var f, d;
|
|
1105
1111
|
(f = v.value) != null && f.invalidate && v.value.invalidate(), (d = v.value) != null && d.renderAll && v.value.renderAll();
|
|
1106
1112
|
});
|
|
1107
|
-
},
|
|
1113
|
+
}, Ct = (r) => {
|
|
1108
1114
|
let f = v.value.rsPeriod;
|
|
1109
1115
|
te(r.annotation.start - (Q.value * X.value - s.CURSOROFFSET) * f), ne(() => {
|
|
1110
1116
|
var d;
|
|
1111
1117
|
(d = v.value) == null || d.renderAll();
|
|
1112
1118
|
});
|
|
1113
|
-
},
|
|
1119
|
+
}, ke = (r) => {
|
|
1114
1120
|
const f = b.value.map((d) => {
|
|
1115
1121
|
const w = d.selected;
|
|
1116
1122
|
return r.append === !1 && (d.selected = !1), r.channelId === d.id && (d.selected = !w), d;
|
|
1117
1123
|
});
|
|
1118
1124
|
h.setChannels(f);
|
|
1119
|
-
},
|
|
1125
|
+
}, Et = (r, f) => {
|
|
1120
1126
|
const d = b.value.map((w) => (f === !1 && (w.selected = !1), w.id in r && (w.selected = !0), w));
|
|
1121
1127
|
h.setChannels(d);
|
|
1122
1128
|
}, te = (r) => {
|
|
1123
|
-
|
|
1124
|
-
},
|
|
1129
|
+
k.value = r;
|
|
1130
|
+
}, Ot = (r) => {
|
|
1125
1131
|
Q.value = r;
|
|
1126
|
-
},
|
|
1132
|
+
}, Pt = (r) => {
|
|
1127
1133
|
x.value = r;
|
|
1128
1134
|
}, Le = (r) => {
|
|
1129
1135
|
r > s.MAXDURATION ? j.value = s.MAXDURATION : j.value = r;
|
|
1130
|
-
},
|
|
1136
|
+
}, Dt = (r, f, d) => (s.DEFAULTDPI * window.devicePixelRatio / (f * d) / 25.4).toFixed(1) + " " + r.unit + "/mm", Ne = () => {
|
|
1131
1137
|
var f;
|
|
1132
1138
|
const r = (f = ie.value) == null ? void 0 : f.channels;
|
|
1133
1139
|
if (console.log("🔄 initTimeRange called with channels:", (r == null ? void 0 : r.length) || 0), r && r.length > 0) {
|
|
1134
1140
|
O.value = r[0].start, C.value = r[0].end;
|
|
1135
1141
|
for (let w = 1; w < r.length; w++)
|
|
1136
1142
|
r[w].start < O.value && (O.value = r[w].start), r[w].end > C.value && (C.value = r[w].end);
|
|
1137
|
-
const d =
|
|
1138
|
-
|
|
1143
|
+
const d = k.value;
|
|
1144
|
+
k.value = O.value, console.log("📅 Time range initialized:", {
|
|
1139
1145
|
ts_start: O.value,
|
|
1140
1146
|
ts_end: C.value,
|
|
1141
1147
|
oldStart: d,
|
|
1142
|
-
newStart:
|
|
1148
|
+
newStart: k.value,
|
|
1143
1149
|
duration: j.value,
|
|
1144
1150
|
startDate: new Date(O.value / 1e3).toISOString(),
|
|
1145
1151
|
endDate: new Date(C.value / 1e3).toISOString()
|
|
1146
1152
|
});
|
|
1147
1153
|
} else
|
|
1148
1154
|
console.warn("⚠️ initTimeRange: No channels found in activeViewer");
|
|
1149
|
-
},
|
|
1155
|
+
}, kt = () => {
|
|
1150
1156
|
Ne();
|
|
1151
|
-
},
|
|
1157
|
+
}, Lt = (r) => {
|
|
1152
1158
|
ae.value = !0;
|
|
1153
|
-
},
|
|
1159
|
+
}, Nt = (r) => {
|
|
1154
1160
|
const f = he([], "channels", r), d = he("", "filter", r), w = T.value;
|
|
1155
|
-
w.onChannels = f,
|
|
1156
|
-
},
|
|
1161
|
+
w.onChannels = f, Sn(d) ? (w.input0 = NaN, w.input1 = NaN, w.selectedFilter = null, w.selectedNotch = null) : (w.input0 = d.input0, w.input1 = d.input1), se.value = !0;
|
|
1162
|
+
}, Ut = (r) => {
|
|
1157
1163
|
v.value.setFilters(r);
|
|
1158
1164
|
}, Ue = () => {
|
|
1159
1165
|
var r, f;
|
|
1160
1166
|
(r = v.value) == null || r.initViewerCanvas(), (f = v.value) == null || f.renderAll();
|
|
1161
1167
|
};
|
|
1162
|
-
return
|
|
1163
|
-
|
|
1168
|
+
return Vt(() => {
|
|
1169
|
+
kt();
|
|
1164
1170
|
const r = document.getElementById("ts_viewer");
|
|
1165
1171
|
if (!r) {
|
|
1166
1172
|
console.warn("ts_viewer element not found");
|
|
@@ -1171,17 +1177,17 @@ const En = (t, e) => {
|
|
|
1171
1177
|
G.value = d - w, P.value && (H.value = P.value.offsetWidth), window.addEventListener("resize", a);
|
|
1172
1178
|
const U = I.value;
|
|
1173
1179
|
U && (oe.value = U.clientWidth, X.value = H.value - U.clientWidth - 5 - 10, K.value = G.value - 88), j.value = s.INITDURATION, Ue();
|
|
1174
|
-
}),
|
|
1180
|
+
}), Wt(() => {
|
|
1175
1181
|
window.removeEventListener("resize", a);
|
|
1176
1182
|
}), e({
|
|
1177
1183
|
openEditAnnotationDialog: c,
|
|
1178
|
-
confirmDeleteAnnotation:
|
|
1179
|
-
selectAnnotation:
|
|
1180
|
-
selectChannel:
|
|
1181
|
-
selectChannels:
|
|
1182
|
-
openLayerWindow:
|
|
1183
|
-
openFilterWindow:
|
|
1184
|
-
setTimeseriesFilters:
|
|
1184
|
+
confirmDeleteAnnotation: lt,
|
|
1185
|
+
selectAnnotation: Ct,
|
|
1186
|
+
selectChannel: ke,
|
|
1187
|
+
selectChannels: Et,
|
|
1188
|
+
openLayerWindow: Lt,
|
|
1189
|
+
openFilterWindow: Nt,
|
|
1190
|
+
setTimeseriesFilters: Ut
|
|
1185
1191
|
}), (r, f) => (de(), Ie("div", {
|
|
1186
1192
|
id: "ts_viewer",
|
|
1187
1193
|
ref_key: "ts_viewer",
|
|
@@ -1196,23 +1202,23 @@ const En = (t, e) => {
|
|
|
1196
1202
|
"c-width": X.value,
|
|
1197
1203
|
"label-width": oe.value,
|
|
1198
1204
|
"cursor-loc": Q.value,
|
|
1199
|
-
start:
|
|
1205
|
+
start: k.value,
|
|
1200
1206
|
duration: j.value,
|
|
1201
1207
|
constants: s,
|
|
1202
1208
|
"active-viewer": ie.value,
|
|
1203
1209
|
onSetStart: te
|
|
1204
1210
|
}, null, 8, ["ts_start", "ts_end", "c-width", "label-width", "cursor-loc", "start", "duration", "active-viewer"]),
|
|
1205
|
-
ue("div",
|
|
1211
|
+
ue("div", kn, [
|
|
1206
1212
|
ue("div", {
|
|
1207
1213
|
id: "channelLabels",
|
|
1208
1214
|
ref_key: "channelLabels",
|
|
1209
1215
|
ref: I
|
|
1210
1216
|
}, [
|
|
1211
|
-
(de(!0), Ie(
|
|
1217
|
+
(de(!0), Ie(xt, null, qt(we.value, (d) => (de(), Ie("div", {
|
|
1212
1218
|
key: d.displayName,
|
|
1213
1219
|
class: "chLabelWrap",
|
|
1214
1220
|
"data-id": d.id,
|
|
1215
|
-
onTap:
|
|
1221
|
+
onTap: gt
|
|
1216
1222
|
}, [
|
|
1217
1223
|
ue("div", {
|
|
1218
1224
|
class: _e([d.selected ? "labelDiv selected" : "labelDiv"])
|
|
@@ -1224,9 +1230,9 @@ const En = (t, e) => {
|
|
|
1224
1230
|
ue("div", {
|
|
1225
1231
|
class: "chLabelInd",
|
|
1226
1232
|
hidden: Ae.value
|
|
1227
|
-
}, je(
|
|
1228
|
-
], 10,
|
|
1229
|
-
], 40,
|
|
1233
|
+
}, je(Dt(d, x.value, d.rowScale)), 9, Un)
|
|
1234
|
+
], 10, Nn)
|
|
1235
|
+
], 40, Ln))), 128))
|
|
1230
1236
|
], 512),
|
|
1231
1237
|
re(J(o), {
|
|
1232
1238
|
ref_key: "viewerCanvas",
|
|
@@ -1234,7 +1240,7 @@ const En = (t, e) => {
|
|
|
1234
1240
|
window_height: G.value,
|
|
1235
1241
|
window_width: H.value,
|
|
1236
1242
|
duration: j.value,
|
|
1237
|
-
start:
|
|
1243
|
+
start: k.value,
|
|
1238
1244
|
"c-width": X.value,
|
|
1239
1245
|
"c-height": K.value,
|
|
1240
1246
|
constants: s,
|
|
@@ -1244,28 +1250,28 @@ const En = (t, e) => {
|
|
|
1244
1250
|
"global-zoom-mult": x.value,
|
|
1245
1251
|
"active-viewer": ie.value,
|
|
1246
1252
|
onSetStart: te,
|
|
1247
|
-
onSetCursor:
|
|
1248
|
-
onSetGlobalZoom:
|
|
1253
|
+
onSetCursor: Ot,
|
|
1254
|
+
onSetGlobalZoom: Pt,
|
|
1249
1255
|
onSetDuration: Le,
|
|
1250
|
-
onChannelsInitialized:
|
|
1251
|
-
onAnnLayersInitialized:
|
|
1252
|
-
onCloseAnnotationLayerWindow:
|
|
1253
|
-
onAddAnnotation:
|
|
1256
|
+
onChannelsInitialized: It,
|
|
1257
|
+
onAnnLayersInitialized: Tt,
|
|
1258
|
+
onCloseAnnotationLayerWindow: De,
|
|
1259
|
+
onAddAnnotation: dt,
|
|
1254
1260
|
onUpdateAnnotation: p
|
|
1255
1261
|
}, null, 8, ["window_height", "window_width", "duration", "start", "c-width", "c-height", "ts-start", "ts-end", "cursor-loc", "global-zoom-mult", "active-viewer"])
|
|
1256
1262
|
]),
|
|
1257
|
-
t.isPreview ?
|
|
1263
|
+
t.isPreview ? Ft("", !0) : (de(), $t(J(i), {
|
|
1258
1264
|
key: 0,
|
|
1259
1265
|
constants: s,
|
|
1260
1266
|
duration: j.value,
|
|
1261
|
-
start:
|
|
1262
|
-
onPageBack:
|
|
1263
|
-
onPageForward:
|
|
1264
|
-
onIncrementZoom:
|
|
1265
|
-
onDecrementZoom:
|
|
1266
|
-
onUpdateDuration:
|
|
1267
|
-
onNextAnnotation:
|
|
1268
|
-
onPreviousAnnotation:
|
|
1267
|
+
start: k.value,
|
|
1268
|
+
onPageBack: _t,
|
|
1269
|
+
onPageForward: bt,
|
|
1270
|
+
onIncrementZoom: At,
|
|
1271
|
+
onDecrementZoom: St,
|
|
1272
|
+
onUpdateDuration: wt,
|
|
1273
|
+
onNextAnnotation: yt,
|
|
1274
|
+
onPreviousAnnotation: mt,
|
|
1269
1275
|
onSetStart: te
|
|
1270
1276
|
}, null, 8, ["duration", "start"])),
|
|
1271
1277
|
re(J(u), {
|
|
@@ -1273,55 +1279,55 @@ const En = (t, e) => {
|
|
|
1273
1279
|
ref: T,
|
|
1274
1280
|
visible: se.value,
|
|
1275
1281
|
"onUpdate:visible": f[0] || (f[0] = (d) => se.value = d),
|
|
1276
|
-
onCloseWindow:
|
|
1282
|
+
onCloseWindow: ht
|
|
1277
1283
|
}, null, 8, ["visible"]),
|
|
1278
1284
|
re(J(g), {
|
|
1279
1285
|
ref_key: "annotationModal",
|
|
1280
1286
|
ref: W,
|
|
1281
1287
|
visible: q.value,
|
|
1282
1288
|
"onUpdate:visible": f[1] || (f[1] = (d) => q.value = d),
|
|
1283
|
-
onCloseWindow:
|
|
1289
|
+
onCloseWindow: pt,
|
|
1284
1290
|
onCreateUpdateAnnotation: L
|
|
1285
1291
|
}, null, 8, ["visible"]),
|
|
1286
1292
|
re(J(A), {
|
|
1287
1293
|
visible: B.value,
|
|
1288
1294
|
"delete-annotation": ce.value,
|
|
1289
1295
|
"onUpdate:visible": f[2] || (f[2] = (d) => B.value = d),
|
|
1290
|
-
onDelete:
|
|
1296
|
+
onDelete: ut
|
|
1291
1297
|
}, null, 8, ["visible", "delete-annotation"]),
|
|
1292
1298
|
re(J(l), {
|
|
1293
1299
|
visible: ae.value,
|
|
1294
|
-
onCloseWindow:
|
|
1295
|
-
onCreateLayer:
|
|
1300
|
+
onCloseWindow: De,
|
|
1301
|
+
onCreateLayer: vt
|
|
1296
1302
|
}, null, 8, ["visible"])
|
|
1297
1303
|
], 2));
|
|
1298
1304
|
}
|
|
1299
|
-
},
|
|
1305
|
+
}, jn = /* @__PURE__ */ Dn(Rn, [["__scopeId", "data-v-d5eda6cd"]]), Fn = {
|
|
1300
1306
|
install(t) {
|
|
1301
|
-
t.component("TSViewer",
|
|
1307
|
+
t.component("TSViewer", jn);
|
|
1302
1308
|
}
|
|
1303
1309
|
};
|
|
1304
1310
|
export {
|
|
1305
|
-
|
|
1311
|
+
jn as T,
|
|
1306
1312
|
S as _,
|
|
1307
1313
|
Ee as a,
|
|
1308
1314
|
N as b,
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1315
|
+
D as c,
|
|
1316
|
+
Jt as d,
|
|
1317
|
+
Ht as e,
|
|
1318
|
+
nn as f,
|
|
1319
|
+
Dn as g,
|
|
1314
1320
|
fe as h,
|
|
1315
|
-
|
|
1321
|
+
$n as i,
|
|
1316
1322
|
Ce as j,
|
|
1317
1323
|
qe as k,
|
|
1318
|
-
|
|
1324
|
+
Zt as l,
|
|
1319
1325
|
F as m,
|
|
1320
|
-
|
|
1326
|
+
sn as n,
|
|
1321
1327
|
pe as o,
|
|
1322
1328
|
he as p,
|
|
1323
|
-
|
|
1329
|
+
an as q,
|
|
1324
1330
|
ge as r,
|
|
1325
|
-
|
|
1326
|
-
|
|
1331
|
+
Fn as s,
|
|
1332
|
+
it as u
|
|
1327
1333
|
};
|